@structured-id/ui-core 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -10
- package/package.json +25 -43
- package/src/components/SidStatusBadge.vue +1 -5
- package/src/composables/useAccountTransport.test.ts +2 -1
- package/src/composables/useGrpc.test.ts +17 -14
- package/src/composables/useGrpc.ts +4 -2
- package/src/index.ts +2 -120
- package/src/profile/components/ConsentManager.vue +5 -1
- package/src/profile/components/ProfileEditor.vue +1 -1
- package/src/profile/components/SecuritySettings.vue +5 -1
- package/src/profile/components/SessionList.vue +2 -1
- package/src/profile/components/SidRegistrationForm.test.ts +173 -1
- package/src/profile/components/SidRegistrationForm.vue +88 -32
- package/src/profile/components/index.ts +1 -4
- package/src/profile/composables/index.ts +1 -0
- package/src/profile/composables/operationPlan.test.ts +155 -0
- package/src/profile/composables/operationPlan.ts +218 -0
- package/src/profile/composables/useAccountApi.ts +4 -4
- package/src/profile/composables/useAuth.test.ts +312 -31
- package/src/profile/composables/useAuth.ts +176 -30
- package/src/profile/composables/useAuthApi.opaque.test.ts +13 -6
- package/src/profile/composables/useAuthApi.ts +40 -18
- package/src/profile/composables/useCurrentPasswordRequirement.test.ts +196 -0
- package/src/profile/composables/useCurrentPasswordRequirement.ts +95 -0
- package/src/profile/composables/useEnrollmentApi.test.ts +7 -3
- package/src/profile/composables/useEnrollmentApi.ts +3 -5
- package/src/profile/composables/useIdentityApi.ts +4 -4
- package/src/profile/composables/useSecurityLevel.test.ts +1 -1
- package/src/profile/composables/useSecurityLevel.ts +1 -1
- package/src/quasar/SidPasswordCeremony.test.ts +253 -0
- package/src/quasar/SidPasswordCeremony.vue +456 -0
- package/src/quasar/index.ts +2 -0
- package/src/utils/rpcRefusal.test.ts +4 -4
- package/src/utils/rpcRefusal.ts +8 -4
- package/dist/browser-vp/index.cjs +0 -349
- package/dist/browser-vp/index.d.cts +0 -276
- package/dist/browser-vp/index.d.ts +0 -276
- package/dist/browser-vp/index.js +0 -349
- package/dist/chunk-C3Q766CY.cjs +0 -125
- package/dist/chunk-J5YXRXB5.js +0 -125
- package/dist/index.cjs +0 -23581
- package/dist/index.d.cts +0 -11539
- package/dist/index.d.ts +0 -11539
- package/dist/index.js +0 -23581
- package/dist/storage-4CB2JTLW.cjs +0 -22
- package/dist/storage-THRWREZP.js +0 -22
- package/src/browser-vp/crypto.ts +0 -253
- package/src/browser-vp/index.test.ts +0 -10
- package/src/browser-vp/index.ts +0 -116
- package/src/browser-vp/prf.ts +0 -179
- package/src/browser-vp/storage.test.ts +0 -9
- package/src/browser-vp/storage.ts +0 -163
- package/src/browser-vp/types.ts +0 -95
- package/src/browser-vp/vp.test.ts +0 -43
- package/src/browser-vp/vp.ts +0 -111
- package/src/generated/google/api/http.ts +0 -687
- package/src/generated/google/api/httpbody.ts +0 -159
- package/src/generated/google/protobuf/any.ts +0 -326
- package/src/generated/google/protobuf/descriptor.ts +0 -4865
- package/src/generated/google/protobuf/duration.ts +0 -230
- package/src/generated/google/protobuf/empty.ts +0 -94
- package/src/generated/google/protobuf/struct.ts +0 -484
- package/src/generated/google/protobuf/timestamp.ts +0 -287
- package/src/generated/google/rpc/error_details.ts +0 -1386
- package/src/generated/google/rpc/status.ts +0 -127
- package/src/generated/sid/v1/account/account.client.ts +0 -527
- package/src/generated/sid/v1/account/account.ts +0 -3261
- package/src/generated/sid/v1/admin/admin.client.ts +0 -139
- package/src/generated/sid/v1/admin/admin.ts +0 -781
- package/src/generated/sid/v1/admin/admin_roles.client.ts +0 -181
- package/src/generated/sid/v1/admin/admin_roles.ts +0 -1606
- package/src/generated/sid/v1/admin/analytics.client.ts +0 -106
- package/src/generated/sid/v1/admin/analytics.ts +0 -1017
- package/src/generated/sid/v1/admin/branding.client.ts +0 -166
- package/src/generated/sid/v1/admin/branding.ts +0 -1906
- package/src/generated/sid/v1/admin/enrollment.client.ts +0 -177
- package/src/generated/sid/v1/admin/enrollment.ts +0 -1766
- package/src/generated/sid/v1/admin/events.client.ts +0 -195
- package/src/generated/sid/v1/admin/events.ts +0 -1900
- package/src/generated/sid/v1/admin/flow.client.ts +0 -183
- package/src/generated/sid/v1/admin/flow.ts +0 -1552
- package/src/generated/sid/v1/admin/keys.client.ts +0 -107
- package/src/generated/sid/v1/admin/keys.ts +0 -931
- package/src/generated/sid/v1/admin/login_experience.client.ts +0 -160
- package/src/generated/sid/v1/admin/login_experience.ts +0 -1061
- package/src/generated/sid/v1/admin/migration.client.ts +0 -127
- package/src/generated/sid/v1/admin/migration.ts +0 -1948
- package/src/generated/sid/v1/admin/notifications.client.ts +0 -134
- package/src/generated/sid/v1/admin/notifications.ts +0 -1273
- package/src/generated/sid/v1/admin/operations.client.ts +0 -241
- package/src/generated/sid/v1/admin/operations.ts +0 -2633
- package/src/generated/sid/v1/admin/organizations.client.ts +0 -57
- package/src/generated/sid/v1/admin/organizations.ts +0 -332
- package/src/generated/sid/v1/admin/provisioning.client.ts +0 -232
- package/src/generated/sid/v1/admin/provisioning.ts +0 -1383
- package/src/generated/sid/v1/admin/scopes.client.ts +0 -171
- package/src/generated/sid/v1/admin/scopes.ts +0 -1324
- package/src/generated/sid/v1/admin/security.client.ts +0 -410
- package/src/generated/sid/v1/admin/security.ts +0 -4077
- package/src/generated/sid/v1/admin/sessions.client.ts +0 -114
- package/src/generated/sid/v1/admin/sessions.ts +0 -923
- package/src/generated/sid/v1/admin/settings.client.ts +0 -351
- package/src/generated/sid/v1/admin/settings.ts +0 -2458
- package/src/generated/sid/v1/admin/user_profile.client.ts +0 -57
- package/src/generated/sid/v1/admin/user_profile.ts +0 -730
- package/src/generated/sid/v1/admin/webhooks.client.ts +0 -269
- package/src/generated/sid/v1/admin/webhooks.ts +0 -2804
- package/src/generated/sid/v1/attestation/attestation.client.ts +0 -115
- package/src/generated/sid/v1/attestation/attestation.ts +0 -813
- package/src/generated/sid/v1/authn/auth.client.ts +0 -943
- package/src/generated/sid/v1/authn/auth.ts +0 -9719
- package/src/generated/sid/v1/authn/flows.client.ts +0 -413
- package/src/generated/sid/v1/authn/flows.ts +0 -3205
- package/src/generated/sid/v1/authn/issuer.client.ts +0 -489
- package/src/generated/sid/v1/authn/issuer.ts +0 -1600
- package/src/generated/sid/v1/authn/password_history.client.ts +0 -57
- package/src/generated/sid/v1/authn/password_history.ts +0 -578
- package/src/generated/sid/v1/authn/system_integration.client.ts +0 -73
- package/src/generated/sid/v1/authn/system_integration.ts +0 -218
- package/src/generated/sid/v1/authz/authz.client.ts +0 -459
- package/src/generated/sid/v1/authz/authz.ts +0 -6524
- package/src/generated/sid/v1/authz/forward_auth.client.ts +0 -97
- package/src/generated/sid/v1/authz/forward_auth.ts +0 -79
- package/src/generated/sid/v1/authz/governance.client.ts +0 -102
- package/src/generated/sid/v1/authz/governance.ts +0 -875
- package/src/generated/sid/v1/common/errors.ts +0 -710
- package/src/generated/sid/v1/common/pagination.ts +0 -152
- package/src/generated/sid/v1/common/transport.ts +0 -227
- package/src/generated/sid/v1/common/types.ts +0 -151
- package/src/generated/sid/v1/events/event_stream.client.ts +0 -67
- package/src/generated/sid/v1/events/event_stream.ts +0 -375
- package/src/generated/sid/v1/federation/upstream.client.ts +0 -142
- package/src/generated/sid/v1/federation/upstream.ts +0 -1736
- package/src/generated/sid/v1/identity/identity.client.ts +0 -467
- package/src/generated/sid/v1/identity/identity.ts +0 -5676
- package/src/generated/sid/v1/ids/ids.ts +0 -395
- package/src/generated/sid/v1/machine/machine_user.client.ts +0 -219
- package/src/generated/sid/v1/machine/machine_user.ts +0 -2364
- package/src/generated/sid/v1/machine/pat.client.ts +0 -130
- package/src/generated/sid/v1/machine/pat.ts +0 -1083
- package/src/generated/sid/v1/projects/projects.client.ts +0 -404
- package/src/generated/sid/v1/projects/projects.ts +0 -4446
- package/src/generated/sid/v1/scim/scim.client.ts +0 -520
- package/src/generated/sid/v1/scim/scim.ts +0 -3182
- package/src/generated/sid/v1/test/test.client.ts +0 -232
- package/src/generated/sid/v1/test/test.ts +0 -1136
- package/src/transport/adaptive.test.ts +0 -728
- package/src/transport/adaptive.ts +0 -308
- package/src/transport/framing.test.ts +0 -227
- package/src/transport/framing.ts +0 -98
- package/src/transport/webtransport.test.ts +0 -728
- package/src/transport/webtransport.ts +0 -323
|
@@ -1,4446 +0,0 @@
|
|
|
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
|
-
* A managed application: the registration of one product or integration in a
|
|
54
|
-
* project. It has an OAuth client role (software that obtains tokens), a
|
|
55
|
-
* protected-resource role (an API or application at which access is
|
|
56
|
-
* enforced), or both. The roles are independent: a resource needs no client,
|
|
57
|
-
* secret or callback of its own, and a client obtains tokens only for
|
|
58
|
-
* resources it has explicit access to.
|
|
59
|
-
*
|
|
60
|
-
* @generated from protobuf message sid.v1.projects.Application
|
|
61
|
-
*/
|
|
62
|
-
export interface Application {
|
|
63
|
-
/**
|
|
64
|
-
* Server-assigned application identifier (UUIDv7). Stable for the
|
|
65
|
-
* application's lifetime; not a credential and not a token audience.
|
|
66
|
-
*
|
|
67
|
-
* @generated from protobuf field: string id = 1
|
|
68
|
-
*/
|
|
69
|
-
id: string;
|
|
70
|
-
/**
|
|
71
|
-
* Project (UUID) whose authorization vocabulary the application uses.
|
|
72
|
-
*
|
|
73
|
-
* @generated from protobuf field: string project_id = 2
|
|
74
|
-
*/
|
|
75
|
-
projectId: string;
|
|
76
|
-
/**
|
|
77
|
-
* Name shown to administrators.
|
|
78
|
-
*
|
|
79
|
-
* @generated from protobuf field: string name = 3
|
|
80
|
-
*/
|
|
81
|
-
name: string;
|
|
82
|
-
/**
|
|
83
|
-
* The OAuth client role, when the application has one.
|
|
84
|
-
*
|
|
85
|
-
* @generated from protobuf field: optional sid.v1.projects.OAuthClient client = 4
|
|
86
|
-
*/
|
|
87
|
-
client?: OAuthClient;
|
|
88
|
-
/**
|
|
89
|
-
* The protected-resource role, when the application has one.
|
|
90
|
-
*
|
|
91
|
-
* @generated from protobuf field: optional sid.v1.projects.ProtectedResource resource = 5
|
|
92
|
-
*/
|
|
93
|
-
resource?: ProtectedResource;
|
|
94
|
-
/**
|
|
95
|
-
* Stored revision of the application record; moves on with every change
|
|
96
|
-
* of its name.
|
|
97
|
-
*
|
|
98
|
-
* @generated from protobuf field: uint64 revision = 6
|
|
99
|
-
*/
|
|
100
|
-
revision: bigint;
|
|
101
|
-
/**
|
|
102
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 7
|
|
103
|
-
*/
|
|
104
|
-
createdAt?: Timestamp;
|
|
105
|
-
/**
|
|
106
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 8
|
|
107
|
-
*/
|
|
108
|
-
updatedAt?: Timestamp;
|
|
109
|
-
/**
|
|
110
|
-
* Set when the application is one of the installation's own integrations,
|
|
111
|
-
* which SID provisions and keeps; unset for an administrator's application.
|
|
112
|
-
* Its roles and access are shown like any other application's.
|
|
113
|
-
*
|
|
114
|
-
* @generated from protobuf field: sid.v1.projects.SystemIntegration system_integration = 9
|
|
115
|
-
*/
|
|
116
|
-
systemIntegration: SystemIntegration;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* The OAuth client role of an application: software that obtains tokens.
|
|
120
|
-
*
|
|
121
|
-
* @generated from protobuf message sid.v1.projects.OAuthClient
|
|
122
|
-
*/
|
|
123
|
-
export interface OAuthClient {
|
|
124
|
-
/**
|
|
125
|
-
* OAuth `client_id`, assigned by the server; unique within the installation.
|
|
126
|
-
*
|
|
127
|
-
* @generated from protobuf field: string client_id = 1
|
|
128
|
-
*/
|
|
129
|
-
clientId: string;
|
|
130
|
-
/**
|
|
131
|
-
* Application (UUIDv7) whose client role this is.
|
|
132
|
-
*
|
|
133
|
-
* @generated from protobuf field: string application_id = 2
|
|
134
|
-
*/
|
|
135
|
-
applicationId: string;
|
|
136
|
-
/**
|
|
137
|
-
* Project (UUID) of the application.
|
|
138
|
-
*
|
|
139
|
-
* @generated from protobuf field: string project_id = 3
|
|
140
|
-
*/
|
|
141
|
-
projectId: string;
|
|
142
|
-
/**
|
|
143
|
-
* Client name shown to users (RFC 7591 §2 `client_name`).
|
|
144
|
-
*
|
|
145
|
-
* @generated from protobuf field: string name = 4
|
|
146
|
-
*/
|
|
147
|
-
name: string;
|
|
148
|
-
/**
|
|
149
|
-
* Kind of client software; decides whether it can hold a secret.
|
|
150
|
-
*
|
|
151
|
-
* @generated from protobuf field: sid.v1.projects.ApplicationType type = 5
|
|
152
|
-
*/
|
|
153
|
-
type: ApplicationType;
|
|
154
|
-
/**
|
|
155
|
-
* @generated from protobuf field: repeated string redirect_uris = 6
|
|
156
|
-
*/
|
|
157
|
-
redirectUris: string[];
|
|
158
|
-
/**
|
|
159
|
-
* Scopes this client may request at all; access to a resource further
|
|
160
|
-
* limits them to what that access grants.
|
|
161
|
-
*
|
|
162
|
-
* @generated from protobuf field: repeated string allowed_scopes = 7
|
|
163
|
-
*/
|
|
164
|
-
allowedScopes: string[];
|
|
165
|
-
/**
|
|
166
|
-
* @generated from protobuf field: repeated string grant_types = 8
|
|
167
|
-
*/
|
|
168
|
-
grantTypes: string[];
|
|
169
|
-
/**
|
|
170
|
-
* @generated from protobuf field: bool active = 9
|
|
171
|
-
*/
|
|
172
|
-
active: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 10
|
|
175
|
-
*/
|
|
176
|
-
createdAt?: Timestamp;
|
|
177
|
-
/**
|
|
178
|
-
* How the client authenticates at the token endpoint (RFC 7591 §2).
|
|
179
|
-
*
|
|
180
|
-
* @generated from protobuf field: sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 11
|
|
181
|
-
*/
|
|
182
|
-
tokenEndpointAuthMethod: TokenEndpointAuthMethod;
|
|
183
|
-
/**
|
|
184
|
-
* @generated from protobuf field: repeated string response_types = 12
|
|
185
|
-
*/
|
|
186
|
-
responseTypes: string[];
|
|
187
|
-
/**
|
|
188
|
-
* @generated from protobuf field: sid.v1.projects.SubjectType subject_type = 13
|
|
189
|
-
*/
|
|
190
|
-
subjectType: SubjectType;
|
|
191
|
-
/**
|
|
192
|
-
* @generated from protobuf field: optional string sector_identifier_uri = 14
|
|
193
|
-
*/
|
|
194
|
-
sectorIdentifierUri?: string;
|
|
195
|
-
/**
|
|
196
|
-
* @generated from protobuf field: repeated string contacts = 15
|
|
197
|
-
*/
|
|
198
|
-
contacts: string[];
|
|
199
|
-
/**
|
|
200
|
-
* @generated from protobuf field: google.protobuf.Timestamp client_id_issued_at = 16
|
|
201
|
-
*/
|
|
202
|
-
clientIdIssuedAt?: Timestamp;
|
|
203
|
-
/**
|
|
204
|
-
* @generated from protobuf field: optional google.protobuf.Timestamp client_secret_expires_at = 17
|
|
205
|
-
*/
|
|
206
|
-
clientSecretExpiresAt?: Timestamp;
|
|
207
|
-
/**
|
|
208
|
-
* Registered through Dynamic Client Registration (RFC 7591).
|
|
209
|
-
*
|
|
210
|
-
* @generated from protobuf field: bool dynamically_registered = 18
|
|
211
|
-
*/
|
|
212
|
-
dynamicallyRegistered: boolean;
|
|
213
|
-
/**
|
|
214
|
-
* Recipient organization of this client (UUIDv7). A pairwise recipient's
|
|
215
|
-
* subject is the stored BindingId of the (Profile, organization) pair, so
|
|
216
|
-
* every client of one organization sees the same subject for a user and
|
|
217
|
-
* redirect domains do not change it. Assigned at registration.
|
|
218
|
-
*
|
|
219
|
-
* @generated from protobuf field: optional string org_id = 19
|
|
220
|
-
*/
|
|
221
|
-
orgId?: string;
|
|
222
|
-
/**
|
|
223
|
-
* Exact OIDC issuer identifier this client is registered under, the
|
|
224
|
-
* canonical URL `https://<host>/i/<handle>`. Part of the connection details
|
|
225
|
-
* a relying party configures verbatim: it discovers endpoints at
|
|
226
|
-
* `<issuer>/.well-known/openid-configuration` and keys accounts by
|
|
227
|
-
* (issuer, sub). Assigned by the server at registration and never changed
|
|
228
|
-
* by an ordinary update; every client has one.
|
|
229
|
-
*
|
|
230
|
-
* @generated from protobuf field: string issuer = 20
|
|
231
|
-
*/
|
|
232
|
-
issuer: string;
|
|
233
|
-
/**
|
|
234
|
-
* The protected resource (ProtectedResource.id, UUIDv7) a token is issued
|
|
235
|
-
* for when a token request names none (RFC 8707 §2). Effective only while
|
|
236
|
-
* the client has access to that resource. Without it, a request naming no
|
|
237
|
-
* resource is refused with `invalid_target`; no other audience is
|
|
238
|
-
* substituted.
|
|
239
|
-
*
|
|
240
|
-
* @generated from protobuf field: optional string default_resource_id = 21
|
|
241
|
-
*/
|
|
242
|
-
defaultResourceId?: string;
|
|
243
|
-
/**
|
|
244
|
-
* Stored revision of the client role.
|
|
245
|
-
*
|
|
246
|
-
* @generated from protobuf field: uint64 revision = 22
|
|
247
|
-
*/
|
|
248
|
-
revision: bigint;
|
|
249
|
-
/**
|
|
250
|
-
* The client's registered public signing keys (RFC 7591 §2 `jwks`), the
|
|
251
|
-
* JSON text of a JWK Set, when it has any. Public material only.
|
|
252
|
-
*
|
|
253
|
-
* @generated from protobuf field: optional string jwks = 23
|
|
254
|
-
*/
|
|
255
|
-
jwks?: string;
|
|
256
|
-
/**
|
|
257
|
-
* Where the end-session endpoint may send the browser after logout (OIDC
|
|
258
|
-
* RP-Initiated Logout 1.0 §3.1): absolute URIs without a fragment, compared
|
|
259
|
-
* exactly. Empty means the endpoint never redirects for this client.
|
|
260
|
-
*
|
|
261
|
-
* @generated from protobuf field: repeated string post_logout_redirect_uris = 24
|
|
262
|
-
*/
|
|
263
|
-
postLogoutRedirectUris: string[];
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* The protected-resource role of an application: an API or application at
|
|
267
|
-
* which access tokens are accepted and access is enforced.
|
|
268
|
-
*
|
|
269
|
-
* @generated from protobuf message sid.v1.projects.ProtectedResource
|
|
270
|
-
*/
|
|
271
|
-
export interface ProtectedResource {
|
|
272
|
-
/**
|
|
273
|
-
* Server-assigned resource identifier (UUIDv7), used to manage the resource
|
|
274
|
-
* and its access. Not the token audience.
|
|
275
|
-
*
|
|
276
|
-
* @generated from protobuf field: string id = 1
|
|
277
|
-
*/
|
|
278
|
-
id: string;
|
|
279
|
-
/**
|
|
280
|
-
* Application (UUIDv7) holding this role; absent once the resource is
|
|
281
|
-
* retired with its application.
|
|
282
|
-
*
|
|
283
|
-
* @generated from protobuf field: optional string application_id = 2
|
|
284
|
-
*/
|
|
285
|
-
applicationId?: string;
|
|
286
|
-
/**
|
|
287
|
-
* The resource indicator (RFC 8707 §2): an absolute URI without a fragment,
|
|
288
|
-
* in canonical form, e.g. `https://api.example.com/orders`. It is the `aud`
|
|
289
|
-
* of every access token issued for this resource and the `resource` value
|
|
290
|
-
* clients send. An identifier, not a URL SID fetches. Unique within its
|
|
291
|
-
* issuer for ever: a retired indicator is never given to another resource.
|
|
292
|
-
*
|
|
293
|
-
* @generated from protobuf field: string indicator = 3
|
|
294
|
-
*/
|
|
295
|
-
indicator: string;
|
|
296
|
-
/**
|
|
297
|
-
* Exact OIDC issuer identifier whose tokens this resource accepts, the
|
|
298
|
-
* canonical URL `https://<host>/i/<handle>`. Fixed at registration.
|
|
299
|
-
*
|
|
300
|
-
* @generated from protobuf field: string issuer = 4
|
|
301
|
-
*/
|
|
302
|
-
issuer: string;
|
|
303
|
-
/**
|
|
304
|
-
* Scopes this resource understands; access to it grants no others.
|
|
305
|
-
*
|
|
306
|
-
* @generated from protobuf field: repeated string scopes = 5
|
|
307
|
-
*/
|
|
308
|
-
scopes: string[];
|
|
309
|
-
/**
|
|
310
|
-
* @generated from protobuf field: sid.v1.projects.ResourceState state = 6
|
|
311
|
-
*/
|
|
312
|
-
state: ResourceState;
|
|
313
|
-
/**
|
|
314
|
-
* Stored revision of the resource role.
|
|
315
|
-
*
|
|
316
|
-
* @generated from protobuf field: uint64 revision = 7
|
|
317
|
-
*/
|
|
318
|
-
revision: bigint;
|
|
319
|
-
/**
|
|
320
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 8
|
|
321
|
-
*/
|
|
322
|
-
createdAt?: Timestamp;
|
|
323
|
-
/**
|
|
324
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 9
|
|
325
|
-
*/
|
|
326
|
-
updatedAt?: Timestamp;
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* Explicit permission for one client to obtain access tokens for one
|
|
330
|
-
* resource, limited to `scopes`. Project membership, a shared issuer or an
|
|
331
|
-
* equal subject grant no access by themselves.
|
|
332
|
-
*
|
|
333
|
-
* @generated from protobuf message sid.v1.projects.ResourceAccess
|
|
334
|
-
*/
|
|
335
|
-
export interface ResourceAccess {
|
|
336
|
-
/**
|
|
337
|
-
* Identifier (RFC 6749 §2.2) of the client given access: an OAuth client
|
|
338
|
-
* of an application, or a machine user requesting tokens for itself.
|
|
339
|
-
*
|
|
340
|
-
* @generated from protobuf field: string client_id = 1
|
|
341
|
-
*/
|
|
342
|
-
clientId: string;
|
|
343
|
-
/**
|
|
344
|
-
* The resource (ProtectedResource.id, UUIDv7) it may obtain tokens for.
|
|
345
|
-
*
|
|
346
|
-
* @generated from protobuf field: string resource_id = 2
|
|
347
|
-
*/
|
|
348
|
-
resourceId: string;
|
|
349
|
-
/**
|
|
350
|
-
* Scopes this access grants; always a subset of the resource's scopes.
|
|
351
|
-
*
|
|
352
|
-
* @generated from protobuf field: repeated string scopes = 3
|
|
353
|
-
*/
|
|
354
|
-
scopes: string[];
|
|
355
|
-
/**
|
|
356
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 4
|
|
357
|
-
*/
|
|
358
|
-
createdAt?: Timestamp;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Initial Access Token constrains DCR registrations.
|
|
362
|
-
*
|
|
363
|
-
* @generated from protobuf message sid.v1.projects.InitialAccessToken
|
|
364
|
-
*/
|
|
365
|
-
export interface InitialAccessToken {
|
|
366
|
-
/**
|
|
367
|
-
* @generated from protobuf field: string id = 1
|
|
368
|
-
*/
|
|
369
|
-
id: string;
|
|
370
|
-
/**
|
|
371
|
-
* @generated from protobuf field: string project_id = 2
|
|
372
|
-
*/
|
|
373
|
-
projectId: string;
|
|
374
|
-
/**
|
|
375
|
-
* @generated from protobuf field: uint32 max_clients = 3
|
|
376
|
-
*/
|
|
377
|
-
maxClients: number;
|
|
378
|
-
/**
|
|
379
|
-
* @generated from protobuf field: uint32 clients_registered = 4
|
|
380
|
-
*/
|
|
381
|
-
clientsRegistered: number;
|
|
382
|
-
/**
|
|
383
|
-
* @generated from protobuf field: repeated string allowed_scopes = 5
|
|
384
|
-
*/
|
|
385
|
-
allowedScopes: string[];
|
|
386
|
-
/**
|
|
387
|
-
* @generated from protobuf field: repeated string allowed_grant_types = 6
|
|
388
|
-
*/
|
|
389
|
-
allowedGrantTypes: string[];
|
|
390
|
-
/**
|
|
391
|
-
* @generated from protobuf field: repeated string allowed_redirect_patterns = 7
|
|
392
|
-
*/
|
|
393
|
-
allowedRedirectPatterns: string[];
|
|
394
|
-
/**
|
|
395
|
-
* @generated from protobuf field: google.protobuf.Timestamp expires_at = 8
|
|
396
|
-
*/
|
|
397
|
-
expiresAt?: Timestamp;
|
|
398
|
-
/**
|
|
399
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 9
|
|
400
|
-
*/
|
|
401
|
-
createdAt?: Timestamp;
|
|
402
|
-
/**
|
|
403
|
-
* @generated from protobuf field: string created_by = 10
|
|
404
|
-
*/
|
|
405
|
-
createdBy: string;
|
|
406
|
-
/**
|
|
407
|
-
* @generated from protobuf field: bool revoked = 11
|
|
408
|
-
*/
|
|
409
|
-
revoked: boolean;
|
|
410
|
-
}
|
|
411
|
-
// ── Project messages ──
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* @generated from protobuf message sid.v1.projects.CreateProjectRequest
|
|
415
|
-
*/
|
|
416
|
-
export interface CreateProjectRequest {
|
|
417
|
-
/**
|
|
418
|
-
* @generated from protobuf field: string name = 1
|
|
419
|
-
*/
|
|
420
|
-
name: string;
|
|
421
|
-
/**
|
|
422
|
-
* @generated from protobuf field: string description = 2
|
|
423
|
-
*/
|
|
424
|
-
description: string;
|
|
425
|
-
/**
|
|
426
|
-
* @generated from protobuf field: string owner_profile_id = 3
|
|
427
|
-
*/
|
|
428
|
-
ownerProfileId: string;
|
|
429
|
-
}
|
|
430
|
-
/**
|
|
431
|
-
* @generated from protobuf message sid.v1.projects.GetProjectRequest
|
|
432
|
-
*/
|
|
433
|
-
export interface GetProjectRequest {
|
|
434
|
-
/**
|
|
435
|
-
* @generated from protobuf field: string id = 1
|
|
436
|
-
*/
|
|
437
|
-
id: string;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* @generated from protobuf message sid.v1.projects.ListProjectsRequest
|
|
441
|
-
*/
|
|
442
|
-
export interface ListProjectsRequest {
|
|
443
|
-
/**
|
|
444
|
-
* @generated from protobuf field: int32 page_size = 1
|
|
445
|
-
*/
|
|
446
|
-
pageSize: number;
|
|
447
|
-
/**
|
|
448
|
-
* @generated from protobuf field: string page_token = 2
|
|
449
|
-
*/
|
|
450
|
-
pageToken: string;
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* @generated from protobuf message sid.v1.projects.ListProjectsResponse
|
|
454
|
-
*/
|
|
455
|
-
export interface ListProjectsResponse {
|
|
456
|
-
/**
|
|
457
|
-
* @generated from protobuf field: repeated sid.v1.projects.Project projects = 1
|
|
458
|
-
*/
|
|
459
|
-
projects: Project[];
|
|
460
|
-
/**
|
|
461
|
-
* @generated from protobuf field: string next_page_token = 2
|
|
462
|
-
*/
|
|
463
|
-
nextPageToken: string;
|
|
464
|
-
}
|
|
465
|
-
/**
|
|
466
|
-
* @generated from protobuf message sid.v1.projects.UpdateProjectRequest
|
|
467
|
-
*/
|
|
468
|
-
export interface UpdateProjectRequest {
|
|
469
|
-
/**
|
|
470
|
-
* @generated from protobuf field: string id = 1
|
|
471
|
-
*/
|
|
472
|
-
id: string;
|
|
473
|
-
/**
|
|
474
|
-
* @generated from protobuf field: optional string name = 2
|
|
475
|
-
*/
|
|
476
|
-
name?: string;
|
|
477
|
-
/**
|
|
478
|
-
* @generated from protobuf field: optional string description = 3
|
|
479
|
-
*/
|
|
480
|
-
description?: string;
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* @generated from protobuf message sid.v1.projects.DeleteProjectRequest
|
|
484
|
-
*/
|
|
485
|
-
export interface DeleteProjectRequest {
|
|
486
|
-
/**
|
|
487
|
-
* @generated from protobuf field: string id = 1
|
|
488
|
-
*/
|
|
489
|
-
id: string;
|
|
490
|
-
}
|
|
491
|
-
// ── Application messages ──
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Settings of a new OAuth client role.
|
|
495
|
-
*
|
|
496
|
-
* @generated from protobuf message sid.v1.projects.ClientRoleSettings
|
|
497
|
-
*/
|
|
498
|
-
export interface ClientRoleSettings {
|
|
499
|
-
/**
|
|
500
|
-
* Kind of client software. Web and API clients get a secret; native and
|
|
501
|
-
* single-page clients are public and authenticate with PKCE alone.
|
|
502
|
-
* Unspecified is web.
|
|
503
|
-
*
|
|
504
|
-
* @generated from protobuf field: sid.v1.projects.ApplicationType type = 1
|
|
505
|
-
*/
|
|
506
|
-
type: ApplicationType;
|
|
507
|
-
/**
|
|
508
|
-
* @generated from protobuf field: repeated string redirect_uris = 2
|
|
509
|
-
*/
|
|
510
|
-
redirectUris: string[];
|
|
511
|
-
/**
|
|
512
|
-
* Scopes the client may request; empty is `openid profile email`.
|
|
513
|
-
*
|
|
514
|
-
* @generated from protobuf field: repeated string allowed_scopes = 3
|
|
515
|
-
*/
|
|
516
|
-
allowedScopes: string[];
|
|
517
|
-
/**
|
|
518
|
-
* Grant types; empty is `authorization_code refresh_token`.
|
|
519
|
-
*
|
|
520
|
-
* @generated from protobuf field: repeated string grant_types = 4
|
|
521
|
-
*/
|
|
522
|
-
grantTypes: string[];
|
|
523
|
-
/**
|
|
524
|
-
* The client's public signing keys, the JSON text of a JWK Set (RFC 7591 §2
|
|
525
|
-
* `jwks`; see RegisterClientRequest.jwks for the accepted keys). Given, a
|
|
526
|
-
* web or API client authenticates with `private_key_jwt` (RFC 7523 §2.2)
|
|
527
|
-
* and gets no secret: its private key never reaches SID. Refused for a
|
|
528
|
-
* native or single-page client, which is public.
|
|
529
|
-
*
|
|
530
|
-
* @generated from protobuf field: optional string jwks = 5
|
|
531
|
-
*/
|
|
532
|
-
jwks?: string;
|
|
533
|
-
/**
|
|
534
|
-
* Post-logout redirect URIs (see OAuthClient.post_logout_redirect_uris),
|
|
535
|
-
* validated like redirect URIs for the client's type; an invalid one is
|
|
536
|
-
* INVALID_ARGUMENT, field `post_logout_redirect_uris`.
|
|
537
|
-
*
|
|
538
|
-
* @generated from protobuf field: repeated string post_logout_redirect_uris = 6
|
|
539
|
-
*/
|
|
540
|
-
postLogoutRedirectUris: string[];
|
|
541
|
-
}
|
|
542
|
-
/**
|
|
543
|
-
* A list of URIs, set as a whole by an update.
|
|
544
|
-
*
|
|
545
|
-
* @generated from protobuf message sid.v1.projects.UriList
|
|
546
|
-
*/
|
|
547
|
-
export interface UriList {
|
|
548
|
-
/**
|
|
549
|
-
* The URIs; empty clears the list.
|
|
550
|
-
*
|
|
551
|
-
* @generated from protobuf field: repeated string uris = 1
|
|
552
|
-
*/
|
|
553
|
-
uris: string[];
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* Settings of a new protected-resource role.
|
|
557
|
-
*
|
|
558
|
-
* @generated from protobuf message sid.v1.projects.ResourceRoleSettings
|
|
559
|
-
*/
|
|
560
|
-
export interface ResourceRoleSettings {
|
|
561
|
-
/**
|
|
562
|
-
* Resource indicator (RFC 8707 §2): an absolute URI without a fragment in
|
|
563
|
-
* canonical form. Refused (INVALID_ARGUMENT, field `indicator`) otherwise,
|
|
564
|
-
* with the canonical spelling in the message when that is the only fault;
|
|
565
|
-
* ALREADY_EXISTS when the issuer already has, or had, a resource with it.
|
|
566
|
-
*
|
|
567
|
-
* @generated from protobuf field: string indicator = 1
|
|
568
|
-
*/
|
|
569
|
-
indicator: string;
|
|
570
|
-
/**
|
|
571
|
-
* Scopes the resource understands.
|
|
572
|
-
*
|
|
573
|
-
* @generated from protobuf field: repeated string scopes = 2
|
|
574
|
-
*/
|
|
575
|
-
scopes: string[];
|
|
576
|
-
}
|
|
577
|
-
/**
|
|
578
|
-
* @generated from protobuf message sid.v1.projects.CreateApplicationRequest
|
|
579
|
-
*/
|
|
580
|
-
export interface CreateApplicationRequest {
|
|
581
|
-
/**
|
|
582
|
-
* @generated from protobuf field: string project_id = 1
|
|
583
|
-
*/
|
|
584
|
-
projectId: string;
|
|
585
|
-
/**
|
|
586
|
-
* @generated from protobuf field: string name = 2
|
|
587
|
-
*/
|
|
588
|
-
name: string;
|
|
589
|
-
/**
|
|
590
|
-
* At least one role is required.
|
|
591
|
-
*
|
|
592
|
-
* @generated from protobuf field: optional sid.v1.projects.ClientRoleSettings client = 3
|
|
593
|
-
*/
|
|
594
|
-
client?: ClientRoleSettings;
|
|
595
|
-
/**
|
|
596
|
-
* @generated from protobuf field: optional sid.v1.projects.ResourceRoleSettings resource = 4
|
|
597
|
-
*/
|
|
598
|
-
resource?: ResourceRoleSettings;
|
|
599
|
-
/**
|
|
600
|
-
* Recipient organization (UUIDv7). Empty means the installation's
|
|
601
|
-
* organization; naming any other organization is refused.
|
|
602
|
-
*
|
|
603
|
-
* @generated from protobuf field: optional string org_id = 5
|
|
604
|
-
*/
|
|
605
|
-
orgId?: string;
|
|
606
|
-
}
|
|
607
|
-
/**
|
|
608
|
-
* The application, and the client secret when a client role that holds a
|
|
609
|
-
* secret was created. The secret is returned only here and never stored in
|
|
610
|
-
* plaintext.
|
|
611
|
-
*
|
|
612
|
-
* @generated from protobuf message sid.v1.projects.CreateApplicationResponse
|
|
613
|
-
*/
|
|
614
|
-
export interface CreateApplicationResponse {
|
|
615
|
-
/**
|
|
616
|
-
* @generated from protobuf field: sid.v1.projects.Application application = 1
|
|
617
|
-
*/
|
|
618
|
-
application?: Application;
|
|
619
|
-
/**
|
|
620
|
-
* @generated from protobuf field: string client_secret = 2
|
|
621
|
-
*/
|
|
622
|
-
clientSecret: string;
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* @generated from protobuf message sid.v1.projects.GetApplicationRequest
|
|
626
|
-
*/
|
|
627
|
-
export interface GetApplicationRequest {
|
|
628
|
-
/**
|
|
629
|
-
* @generated from protobuf field: string id = 1
|
|
630
|
-
*/
|
|
631
|
-
id: string;
|
|
632
|
-
}
|
|
633
|
-
/**
|
|
634
|
-
* @generated from protobuf message sid.v1.projects.ListApplicationsRequest
|
|
635
|
-
*/
|
|
636
|
-
export interface ListApplicationsRequest {
|
|
637
|
-
/**
|
|
638
|
-
* @generated from protobuf field: string project_id = 1
|
|
639
|
-
*/
|
|
640
|
-
projectId: string;
|
|
641
|
-
/**
|
|
642
|
-
* @generated from protobuf field: int32 page_size = 2
|
|
643
|
-
*/
|
|
644
|
-
pageSize: number;
|
|
645
|
-
/**
|
|
646
|
-
* @generated from protobuf field: string page_token = 3
|
|
647
|
-
*/
|
|
648
|
-
pageToken: string;
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* @generated from protobuf message sid.v1.projects.ListApplicationsResponse
|
|
652
|
-
*/
|
|
653
|
-
export interface ListApplicationsResponse {
|
|
654
|
-
/**
|
|
655
|
-
* @generated from protobuf field: repeated sid.v1.projects.Application applications = 1
|
|
656
|
-
*/
|
|
657
|
-
applications: Application[];
|
|
658
|
-
/**
|
|
659
|
-
* @generated from protobuf field: string next_page_token = 2
|
|
660
|
-
*/
|
|
661
|
-
nextPageToken: string;
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* @generated from protobuf message sid.v1.projects.UpdateApplicationRequest
|
|
665
|
-
*/
|
|
666
|
-
export interface UpdateApplicationRequest {
|
|
667
|
-
/**
|
|
668
|
-
* @generated from protobuf field: string id = 1
|
|
669
|
-
*/
|
|
670
|
-
id: string;
|
|
671
|
-
/**
|
|
672
|
-
* @generated from protobuf field: optional string name = 2
|
|
673
|
-
*/
|
|
674
|
-
name?: string;
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* @generated from protobuf message sid.v1.projects.DeleteApplicationRequest
|
|
678
|
-
*/
|
|
679
|
-
export interface DeleteApplicationRequest {
|
|
680
|
-
/**
|
|
681
|
-
* @generated from protobuf field: string id = 1
|
|
682
|
-
*/
|
|
683
|
-
id: string;
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* @generated from protobuf message sid.v1.projects.AddClientRoleRequest
|
|
687
|
-
*/
|
|
688
|
-
export interface AddClientRoleRequest {
|
|
689
|
-
/**
|
|
690
|
-
* Application (UUIDv7) without a client role yet; ALREADY_EXISTS otherwise.
|
|
691
|
-
*
|
|
692
|
-
* @generated from protobuf field: string application_id = 1
|
|
693
|
-
*/
|
|
694
|
-
applicationId: string;
|
|
695
|
-
/**
|
|
696
|
-
* @generated from protobuf field: sid.v1.projects.ClientRoleSettings settings = 2
|
|
697
|
-
*/
|
|
698
|
-
settings?: ClientRoleSettings;
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* @generated from protobuf message sid.v1.projects.UpdateClientRoleRequest
|
|
702
|
-
*/
|
|
703
|
-
export interface UpdateClientRoleRequest {
|
|
704
|
-
/**
|
|
705
|
-
* @generated from protobuf field: string client_id = 1
|
|
706
|
-
*/
|
|
707
|
-
clientId: string;
|
|
708
|
-
/**
|
|
709
|
-
* @generated from protobuf field: optional string name = 2
|
|
710
|
-
*/
|
|
711
|
-
name?: string;
|
|
712
|
-
/**
|
|
713
|
-
* @generated from protobuf field: repeated string redirect_uris = 3
|
|
714
|
-
*/
|
|
715
|
-
redirectUris: string[];
|
|
716
|
-
/**
|
|
717
|
-
* @generated from protobuf field: repeated string allowed_scopes = 4
|
|
718
|
-
*/
|
|
719
|
-
allowedScopes: string[];
|
|
720
|
-
/**
|
|
721
|
-
* @generated from protobuf field: repeated string grant_types = 5
|
|
722
|
-
*/
|
|
723
|
-
grantTypes: string[];
|
|
724
|
-
/**
|
|
725
|
-
* @generated from protobuf field: optional bool active = 6
|
|
726
|
-
*/
|
|
727
|
-
active?: boolean;
|
|
728
|
-
/**
|
|
729
|
-
* OIDC subject type metadata. Only "public" is accepted: each issuer
|
|
730
|
-
* advertises `subject_types_supported: ["public"]` and SID's pairwise
|
|
731
|
-
* privacy comes from the recipient's BindingId, not from this value. Any
|
|
732
|
-
* other value is INVALID_ARGUMENT (ErrorInfo metadata `oauth_error` =
|
|
733
|
-
* `invalid_client_metadata`) and nothing is changed. Moving an application's
|
|
734
|
-
* users to another identifier is an explicit account migration, never an
|
|
735
|
-
* update.
|
|
736
|
-
*
|
|
737
|
-
* @generated from protobuf field: optional string subject_type = 7
|
|
738
|
-
*/
|
|
739
|
-
subjectType?: string;
|
|
740
|
-
/**
|
|
741
|
-
* The resource (ProtectedResource.id) tokens are for when a request names
|
|
742
|
-
* none. The client must already have access to it (INVALID_ARGUMENT,
|
|
743
|
-
* field `default_resource_id`, otherwise). An empty value removes the
|
|
744
|
-
* default.
|
|
745
|
-
*
|
|
746
|
-
* @generated from protobuf field: optional string default_resource_id = 8
|
|
747
|
-
*/
|
|
748
|
-
defaultResourceId?: string;
|
|
749
|
-
/**
|
|
750
|
-
* Replaces the post-logout redirect URIs (see ClientRoleSettings); left out,
|
|
751
|
-
* they are unchanged.
|
|
752
|
-
*
|
|
753
|
-
* @generated from protobuf field: optional sid.v1.projects.UriList post_logout_redirect_uris = 9
|
|
754
|
-
*/
|
|
755
|
-
postLogoutRedirectUris?: UriList;
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* @generated from protobuf message sid.v1.projects.AddResourceRoleRequest
|
|
759
|
-
*/
|
|
760
|
-
export interface AddResourceRoleRequest {
|
|
761
|
-
/**
|
|
762
|
-
* Application (UUIDv7) without a resource role yet; ALREADY_EXISTS otherwise.
|
|
763
|
-
*
|
|
764
|
-
* @generated from protobuf field: string application_id = 1
|
|
765
|
-
*/
|
|
766
|
-
applicationId: string;
|
|
767
|
-
/**
|
|
768
|
-
* @generated from protobuf field: sid.v1.projects.ResourceRoleSettings settings = 2
|
|
769
|
-
*/
|
|
770
|
-
settings?: ResourceRoleSettings;
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* A replacement list of scopes, set as a whole.
|
|
774
|
-
*
|
|
775
|
-
* @generated from protobuf message sid.v1.projects.ScopeList
|
|
776
|
-
*/
|
|
777
|
-
export interface ScopeList {
|
|
778
|
-
/**
|
|
779
|
-
* @generated from protobuf field: repeated string scopes = 1
|
|
780
|
-
*/
|
|
781
|
-
scopes: string[];
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
* @generated from protobuf message sid.v1.projects.UpdateResourceRoleRequest
|
|
785
|
-
*/
|
|
786
|
-
export interface UpdateResourceRoleRequest {
|
|
787
|
-
/**
|
|
788
|
-
* @generated from protobuf field: string resource_id = 1
|
|
789
|
-
*/
|
|
790
|
-
resourceId: string;
|
|
791
|
-
/**
|
|
792
|
-
* Replaces the scopes the resource understands. Access already granted
|
|
793
|
-
* keeps its scopes but grants only those the resource still understands.
|
|
794
|
-
*
|
|
795
|
-
* @generated from protobuf field: optional sid.v1.projects.ScopeList scopes = 2
|
|
796
|
-
*/
|
|
797
|
-
scopes?: ScopeList;
|
|
798
|
-
/**
|
|
799
|
-
* ACTIVE or INACTIVE. A resource is retired only by removing its
|
|
800
|
-
* application; RETIRED here, or any change of a retired resource, is
|
|
801
|
-
* FAILED_PRECONDITION.
|
|
802
|
-
*
|
|
803
|
-
* @generated from protobuf field: optional sid.v1.projects.ResourceState state = 3
|
|
804
|
-
*/
|
|
805
|
-
state?: ResourceState;
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
|
-
* @generated from protobuf message sid.v1.projects.SetResourceAccessRequest
|
|
809
|
-
*/
|
|
810
|
-
export interface SetResourceAccessRequest {
|
|
811
|
-
/**
|
|
812
|
-
* Identifier of the client to give access: an OAuth client, or a machine
|
|
813
|
-
* user (served by the installation organization's issuer). Unknown to both
|
|
814
|
-
* is NOT_FOUND.
|
|
815
|
-
*
|
|
816
|
-
* @generated from protobuf field: string client_id = 1
|
|
817
|
-
*/
|
|
818
|
-
clientId: string;
|
|
819
|
-
/**
|
|
820
|
-
* The resource (ProtectedResource.id, UUIDv7).
|
|
821
|
-
*
|
|
822
|
-
* @generated from protobuf field: string resource_id = 2
|
|
823
|
-
*/
|
|
824
|
-
resourceId: string;
|
|
825
|
-
/**
|
|
826
|
-
* Replaces the scopes of this access. Each must be a scope of the resource
|
|
827
|
-
* (INVALID_ARGUMENT otherwise). The client and the resource must belong to
|
|
828
|
-
* the same issuer (FAILED_PRECONDITION, ISSUER_MISMATCH), and a retired
|
|
829
|
-
* resource accepts no access (FAILED_PRECONDITION, RESOURCE_RETIRED).
|
|
830
|
-
*
|
|
831
|
-
* @generated from protobuf field: repeated string scopes = 3
|
|
832
|
-
*/
|
|
833
|
-
scopes: string[];
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* @generated from protobuf message sid.v1.projects.RemoveResourceAccessRequest
|
|
837
|
-
*/
|
|
838
|
-
export interface RemoveResourceAccessRequest {
|
|
839
|
-
/**
|
|
840
|
-
* Identifier of the OAuth client or machine user losing access.
|
|
841
|
-
*
|
|
842
|
-
* @generated from protobuf field: string client_id = 1
|
|
843
|
-
*/
|
|
844
|
-
clientId: string;
|
|
845
|
-
/**
|
|
846
|
-
* The resource (ProtectedResource.id, UUIDv7).
|
|
847
|
-
*
|
|
848
|
-
* @generated from protobuf field: string resource_id = 2
|
|
849
|
-
*/
|
|
850
|
-
resourceId: string;
|
|
851
|
-
}
|
|
852
|
-
/**
|
|
853
|
-
* @generated from protobuf message sid.v1.projects.ListResourceAccessRequest
|
|
854
|
-
*/
|
|
855
|
-
export interface ListResourceAccessRequest {
|
|
856
|
-
/**
|
|
857
|
-
* Every access of one client, or every access to one resource.
|
|
858
|
-
*
|
|
859
|
-
* @generated from protobuf oneof: subject
|
|
860
|
-
*/
|
|
861
|
-
subject: {
|
|
862
|
-
oneofKind: "clientId";
|
|
863
|
-
/**
|
|
864
|
-
* @generated from protobuf field: string client_id = 1
|
|
865
|
-
*/
|
|
866
|
-
clientId: string;
|
|
867
|
-
} | {
|
|
868
|
-
oneofKind: "resourceId";
|
|
869
|
-
/**
|
|
870
|
-
* @generated from protobuf field: string resource_id = 2
|
|
871
|
-
*/
|
|
872
|
-
resourceId: string;
|
|
873
|
-
} | {
|
|
874
|
-
oneofKind: undefined;
|
|
875
|
-
};
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* @generated from protobuf message sid.v1.projects.ListResourceAccessResponse
|
|
879
|
-
*/
|
|
880
|
-
export interface ListResourceAccessResponse {
|
|
881
|
-
/**
|
|
882
|
-
* @generated from protobuf field: repeated sid.v1.projects.ResourceAccess access = 1
|
|
883
|
-
*/
|
|
884
|
-
access: ResourceAccess[];
|
|
885
|
-
}
|
|
886
|
-
// ── Role messages (AddRole/RemoveRole specific to ProjectService) ──
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* @generated from protobuf message sid.v1.projects.AddRoleRequest
|
|
890
|
-
*/
|
|
891
|
-
export interface AddRoleRequest {
|
|
892
|
-
/**
|
|
893
|
-
* @generated from protobuf field: string project_id = 1
|
|
894
|
-
*/
|
|
895
|
-
projectId: string;
|
|
896
|
-
/**
|
|
897
|
-
* @generated from protobuf field: string key = 2
|
|
898
|
-
*/
|
|
899
|
-
key: string;
|
|
900
|
-
/**
|
|
901
|
-
* @generated from protobuf field: string display_name = 3
|
|
902
|
-
*/
|
|
903
|
-
displayName: string;
|
|
904
|
-
/**
|
|
905
|
-
* @generated from protobuf field: optional string description = 4
|
|
906
|
-
*/
|
|
907
|
-
description?: string;
|
|
908
|
-
/**
|
|
909
|
-
* @generated from protobuf field: optional string group = 5
|
|
910
|
-
*/
|
|
911
|
-
group?: string;
|
|
912
|
-
/**
|
|
913
|
-
* @generated from protobuf field: repeated string permissions = 6
|
|
914
|
-
*/
|
|
915
|
-
permissions: string[];
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* @generated from protobuf message sid.v1.projects.RemoveRoleRequest
|
|
919
|
-
*/
|
|
920
|
-
export interface RemoveRoleRequest {
|
|
921
|
-
/**
|
|
922
|
-
* @generated from protobuf field: string project_id = 1
|
|
923
|
-
*/
|
|
924
|
-
projectId: string;
|
|
925
|
-
/**
|
|
926
|
-
* @generated from protobuf field: string role_id = 2
|
|
927
|
-
*/
|
|
928
|
-
roleId: string;
|
|
929
|
-
}
|
|
930
|
-
// ── Dynamic Client Registration messages (RFC 7591/7592) ──
|
|
931
|
-
|
|
932
|
-
/**
|
|
933
|
-
* @generated from protobuf message sid.v1.projects.RegisterClientRequest
|
|
934
|
-
*/
|
|
935
|
-
export interface RegisterClientRequest {
|
|
936
|
-
/**
|
|
937
|
-
* Bearer initial_access_token in gRPC metadata (authorization header).
|
|
938
|
-
*
|
|
939
|
-
* @generated from protobuf field: string client_name = 1
|
|
940
|
-
*/
|
|
941
|
-
clientName: string;
|
|
942
|
-
/**
|
|
943
|
-
* @generated from protobuf field: repeated string redirect_uris = 2
|
|
944
|
-
*/
|
|
945
|
-
redirectUris: string[];
|
|
946
|
-
/**
|
|
947
|
-
* @generated from protobuf field: repeated string grant_types = 3
|
|
948
|
-
*/
|
|
949
|
-
grantTypes: string[];
|
|
950
|
-
/**
|
|
951
|
-
* @generated from protobuf field: repeated string response_types = 4
|
|
952
|
-
*/
|
|
953
|
-
responseTypes: string[];
|
|
954
|
-
/**
|
|
955
|
-
* @generated from protobuf field: sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 5
|
|
956
|
-
*/
|
|
957
|
-
tokenEndpointAuthMethod: TokenEndpointAuthMethod;
|
|
958
|
-
/**
|
|
959
|
-
* @generated from protobuf field: sid.v1.projects.ApplicationType application_type = 6
|
|
960
|
-
*/
|
|
961
|
-
applicationType: ApplicationType;
|
|
962
|
-
/**
|
|
963
|
-
* @generated from protobuf field: sid.v1.projects.SubjectType subject_type = 7
|
|
964
|
-
*/
|
|
965
|
-
subjectType: SubjectType;
|
|
966
|
-
/**
|
|
967
|
-
* @generated from protobuf field: optional string sector_identifier_uri = 8
|
|
968
|
-
*/
|
|
969
|
-
sectorIdentifierUri?: string;
|
|
970
|
-
/**
|
|
971
|
-
* @generated from protobuf field: repeated string contacts = 9
|
|
972
|
-
*/
|
|
973
|
-
contacts: string[];
|
|
974
|
-
/**
|
|
975
|
-
* @generated from protobuf field: repeated string scope = 10
|
|
976
|
-
*/
|
|
977
|
-
scope: string[];
|
|
978
|
-
/**
|
|
979
|
-
* Handle of the OIDC issuer the client registers under, the `<handle>` of
|
|
980
|
-
* `https://<host>/i/<handle>`. The client belongs to the organization this
|
|
981
|
-
* issuer serves, and its registration access token manages it only under
|
|
982
|
-
* this issuer. An unknown handle is NOT_FOUND (OIDC_ISSUER_NOT_FOUND).
|
|
983
|
-
*
|
|
984
|
-
* @generated from protobuf field: string issuer_handle = 11
|
|
985
|
-
*/
|
|
986
|
-
issuerHandle: string;
|
|
987
|
-
/**
|
|
988
|
-
* The client's public signing keys (RFC 7591 §2 `jwks`), the JSON text of a
|
|
989
|
-
* JWK Set (RFC 7517 §5): Ed25519, P-256/P-384 or RSA (at least 2048 bits)
|
|
990
|
-
* public keys, each with a distinct `kid`, no private members. Required for
|
|
991
|
-
* `private_key_jwt`, whose token endpoint assertions they verify.
|
|
992
|
-
*
|
|
993
|
-
* @generated from protobuf field: optional string jwks = 12
|
|
994
|
-
*/
|
|
995
|
-
jwks?: string;
|
|
996
|
-
/**
|
|
997
|
-
* Post-logout redirect URIs (OIDC RP-Initiated Logout 1.0 §3.1), validated
|
|
998
|
-
* like `redirect_uris` and against the initial access token's redirect
|
|
999
|
-
* patterns; refused as `invalid_client_metadata`.
|
|
1000
|
-
*
|
|
1001
|
-
* @generated from protobuf field: repeated string post_logout_redirect_uris = 13
|
|
1002
|
-
*/
|
|
1003
|
-
postLogoutRedirectUris: string[];
|
|
1004
|
-
}
|
|
1005
|
-
/**
|
|
1006
|
-
* @generated from protobuf message sid.v1.projects.RegisterClientResponse
|
|
1007
|
-
*/
|
|
1008
|
-
export interface RegisterClientResponse {
|
|
1009
|
-
/**
|
|
1010
|
-
* The registered client, the client role of a new application.
|
|
1011
|
-
*
|
|
1012
|
-
* @generated from protobuf field: sid.v1.projects.OAuthClient client = 1
|
|
1013
|
-
*/
|
|
1014
|
-
client?: OAuthClient;
|
|
1015
|
-
/**
|
|
1016
|
-
* Plaintext secret, returned only on registration. Never stored.
|
|
1017
|
-
*
|
|
1018
|
-
* @generated from protobuf field: optional string client_secret = 2
|
|
1019
|
-
*/
|
|
1020
|
-
clientSecret?: string;
|
|
1021
|
-
/**
|
|
1022
|
-
* Registration Access Token for future management (RFC 7592).
|
|
1023
|
-
*
|
|
1024
|
-
* @generated from protobuf field: string registration_access_token = 3
|
|
1025
|
-
*/
|
|
1026
|
-
registrationAccessToken: string;
|
|
1027
|
-
}
|
|
1028
|
-
/**
|
|
1029
|
-
* RFC 7592: client reads own registration. RAT in authorization header.
|
|
1030
|
-
*
|
|
1031
|
-
* @generated from protobuf message sid.v1.projects.GetRegisteredClientRequest
|
|
1032
|
-
*/
|
|
1033
|
-
export interface GetRegisteredClientRequest {
|
|
1034
|
-
/**
|
|
1035
|
-
* @generated from protobuf field: string client_id = 1
|
|
1036
|
-
*/
|
|
1037
|
-
clientId: string;
|
|
1038
|
-
/**
|
|
1039
|
-
* Handle of the issuer the client is registered under. A client of another
|
|
1040
|
-
* issuer, or none, is refused exactly like an invalid registration access
|
|
1041
|
-
* token (RFC 7592 §2.1).
|
|
1042
|
-
*
|
|
1043
|
-
* @generated from protobuf field: string issuer_handle = 2
|
|
1044
|
-
*/
|
|
1045
|
-
issuerHandle: string;
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* RFC 7592: client updates own registration. RAT in authorization header.
|
|
1049
|
-
* The request is the client's whole metadata and replaces its registration
|
|
1050
|
-
* (RFC 7592 §2.2): a field left out is removed, an absent authentication
|
|
1051
|
-
* method is `client_secret_basic` (RFC 7591 §2), and the result is validated
|
|
1052
|
-
* as a registration; a refused update changes nothing.
|
|
1053
|
-
*
|
|
1054
|
-
* @generated from protobuf message sid.v1.projects.UpdateRegisteredClientRequest
|
|
1055
|
-
*/
|
|
1056
|
-
export interface UpdateRegisteredClientRequest {
|
|
1057
|
-
/**
|
|
1058
|
-
* @generated from protobuf field: string client_id = 1
|
|
1059
|
-
*/
|
|
1060
|
-
clientId: string;
|
|
1061
|
-
/**
|
|
1062
|
-
* @generated from protobuf field: optional string client_name = 2
|
|
1063
|
-
*/
|
|
1064
|
-
clientName?: string;
|
|
1065
|
-
/**
|
|
1066
|
-
* @generated from protobuf field: repeated string redirect_uris = 3
|
|
1067
|
-
*/
|
|
1068
|
-
redirectUris: string[];
|
|
1069
|
-
/**
|
|
1070
|
-
* @generated from protobuf field: repeated string grant_types = 4
|
|
1071
|
-
*/
|
|
1072
|
-
grantTypes: string[];
|
|
1073
|
-
/**
|
|
1074
|
-
* @generated from protobuf field: repeated string response_types = 5
|
|
1075
|
-
*/
|
|
1076
|
-
responseTypes: string[];
|
|
1077
|
-
/**
|
|
1078
|
-
* @generated from protobuf field: optional sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 6
|
|
1079
|
-
*/
|
|
1080
|
-
tokenEndpointAuthMethod?: TokenEndpointAuthMethod;
|
|
1081
|
-
/**
|
|
1082
|
-
* @generated from protobuf field: optional sid.v1.projects.SubjectType subject_type = 7
|
|
1083
|
-
*/
|
|
1084
|
-
subjectType?: SubjectType;
|
|
1085
|
-
/**
|
|
1086
|
-
* @generated from protobuf field: optional string sector_identifier_uri = 8
|
|
1087
|
-
*/
|
|
1088
|
-
sectorIdentifierUri?: string;
|
|
1089
|
-
/**
|
|
1090
|
-
* @generated from protobuf field: repeated string contacts = 9
|
|
1091
|
-
*/
|
|
1092
|
-
contacts: string[];
|
|
1093
|
-
/**
|
|
1094
|
-
* @generated from protobuf field: repeated string scope = 10
|
|
1095
|
-
*/
|
|
1096
|
-
scope: string[];
|
|
1097
|
-
/**
|
|
1098
|
-
* Handle of the issuer the client is registered under (see
|
|
1099
|
-
* GetRegisteredClientRequest).
|
|
1100
|
-
*
|
|
1101
|
-
* @generated from protobuf field: string issuer_handle = 11
|
|
1102
|
-
*/
|
|
1103
|
-
issuerHandle: string;
|
|
1104
|
-
/**
|
|
1105
|
-
* The client's current secret, when the client sends it back with its
|
|
1106
|
-
* metadata. It must equal the issued secret (RFC 7592 §2.2); it never sets
|
|
1107
|
-
* a new one.
|
|
1108
|
-
*
|
|
1109
|
-
* @generated from protobuf field: optional string client_secret = 12
|
|
1110
|
-
*/
|
|
1111
|
-
clientSecret?: string;
|
|
1112
|
-
/**
|
|
1113
|
-
* The client's public signing keys (see RegisterClientRequest.jwks); left
|
|
1114
|
-
* out, the client registers none. A rotation sends the next key beside the
|
|
1115
|
-
* current one, then the next key alone.
|
|
1116
|
-
*
|
|
1117
|
-
* @generated from protobuf field: optional string jwks = 13
|
|
1118
|
-
*/
|
|
1119
|
-
jwks?: string;
|
|
1120
|
-
/**
|
|
1121
|
-
* Post-logout redirect URIs (see RegisterClientRequest); left out, the
|
|
1122
|
-
* client registers none.
|
|
1123
|
-
*
|
|
1124
|
-
* @generated from protobuf field: repeated string post_logout_redirect_uris = 14
|
|
1125
|
-
*/
|
|
1126
|
-
postLogoutRedirectUris: string[];
|
|
1127
|
-
}
|
|
1128
|
-
/**
|
|
1129
|
-
* RFC 7592: client deletes own registration. RAT in authorization header.
|
|
1130
|
-
*
|
|
1131
|
-
* @generated from protobuf message sid.v1.projects.DeleteRegisteredClientRequest
|
|
1132
|
-
*/
|
|
1133
|
-
export interface DeleteRegisteredClientRequest {
|
|
1134
|
-
/**
|
|
1135
|
-
* @generated from protobuf field: string client_id = 1
|
|
1136
|
-
*/
|
|
1137
|
-
clientId: string;
|
|
1138
|
-
/**
|
|
1139
|
-
* Handle of the issuer the client is registered under (see
|
|
1140
|
-
* GetRegisteredClientRequest).
|
|
1141
|
-
*
|
|
1142
|
-
* @generated from protobuf field: string issuer_handle = 2
|
|
1143
|
-
*/
|
|
1144
|
-
issuerHandle: string;
|
|
1145
|
-
}
|
|
1146
|
-
// ── Initial Access Token messages ──
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* @generated from protobuf message sid.v1.projects.CreateInitialAccessTokenRequest
|
|
1150
|
-
*/
|
|
1151
|
-
export interface CreateInitialAccessTokenRequest {
|
|
1152
|
-
/**
|
|
1153
|
-
* @generated from protobuf field: string project_id = 1
|
|
1154
|
-
*/
|
|
1155
|
-
projectId: string;
|
|
1156
|
-
/**
|
|
1157
|
-
* @generated from protobuf field: uint32 max_clients = 2
|
|
1158
|
-
*/
|
|
1159
|
-
maxClients: number;
|
|
1160
|
-
/**
|
|
1161
|
-
* @generated from protobuf field: repeated string allowed_scopes = 3
|
|
1162
|
-
*/
|
|
1163
|
-
allowedScopes: string[];
|
|
1164
|
-
/**
|
|
1165
|
-
* @generated from protobuf field: repeated string allowed_grant_types = 4
|
|
1166
|
-
*/
|
|
1167
|
-
allowedGrantTypes: string[];
|
|
1168
|
-
/**
|
|
1169
|
-
* @generated from protobuf field: repeated string allowed_redirect_patterns = 5
|
|
1170
|
-
*/
|
|
1171
|
-
allowedRedirectPatterns: string[];
|
|
1172
|
-
/**
|
|
1173
|
-
* Token lifetime in seconds.
|
|
1174
|
-
*
|
|
1175
|
-
* @generated from protobuf field: int64 expires_in_seconds = 6
|
|
1176
|
-
*/
|
|
1177
|
-
expiresInSeconds: bigint;
|
|
1178
|
-
}
|
|
1179
|
-
/**
|
|
1180
|
-
* Returns the plaintext token, only on creation.
|
|
1181
|
-
*
|
|
1182
|
-
* @generated from protobuf message sid.v1.projects.CreateInitialAccessTokenResponse
|
|
1183
|
-
*/
|
|
1184
|
-
export interface CreateInitialAccessTokenResponse {
|
|
1185
|
-
/**
|
|
1186
|
-
* @generated from protobuf field: sid.v1.projects.InitialAccessToken token = 1
|
|
1187
|
-
*/
|
|
1188
|
-
token?: InitialAccessToken;
|
|
1189
|
-
/**
|
|
1190
|
-
* Plaintext bearer token: never stored, never returned again.
|
|
1191
|
-
*
|
|
1192
|
-
* @generated from protobuf field: string token_value = 2
|
|
1193
|
-
*/
|
|
1194
|
-
tokenValue: string;
|
|
1195
|
-
}
|
|
1196
|
-
/**
|
|
1197
|
-
* @generated from protobuf message sid.v1.projects.ListInitialAccessTokensRequest
|
|
1198
|
-
*/
|
|
1199
|
-
export interface ListInitialAccessTokensRequest {
|
|
1200
|
-
/**
|
|
1201
|
-
* @generated from protobuf field: string project_id = 1
|
|
1202
|
-
*/
|
|
1203
|
-
projectId: string;
|
|
1204
|
-
}
|
|
1205
|
-
/**
|
|
1206
|
-
* @generated from protobuf message sid.v1.projects.ListInitialAccessTokensResponse
|
|
1207
|
-
*/
|
|
1208
|
-
export interface ListInitialAccessTokensResponse {
|
|
1209
|
-
/**
|
|
1210
|
-
* @generated from protobuf field: repeated sid.v1.projects.InitialAccessToken tokens = 1
|
|
1211
|
-
*/
|
|
1212
|
-
tokens: InitialAccessToken[];
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* @generated from protobuf message sid.v1.projects.RevokeInitialAccessTokenRequest
|
|
1216
|
-
*/
|
|
1217
|
-
export interface RevokeInitialAccessTokenRequest {
|
|
1218
|
-
/**
|
|
1219
|
-
* @generated from protobuf field: string id = 1
|
|
1220
|
-
*/
|
|
1221
|
-
id: string;
|
|
1222
|
-
}
|
|
1223
|
-
/**
|
|
1224
|
-
* An integration of the installation with itself, provisioned by SID.
|
|
1225
|
-
*
|
|
1226
|
-
* @generated from protobuf enum sid.v1.projects.SystemIntegration
|
|
1227
|
-
*/
|
|
1228
|
-
export enum SystemIntegration {
|
|
1229
|
-
/**
|
|
1230
|
-
* An administrator's application.
|
|
1231
|
-
*
|
|
1232
|
-
* @generated from protobuf enum value: SYSTEM_INTEGRATION_UNSPECIFIED = 0;
|
|
1233
|
-
*/
|
|
1234
|
-
UNSPECIFIED = 0,
|
|
1235
|
-
/**
|
|
1236
|
-
* SID's own account UI: its confidential web client, the account API it
|
|
1237
|
-
* calls and the client's explicit access to that API.
|
|
1238
|
-
*
|
|
1239
|
-
* @generated from protobuf enum value: SYSTEM_INTEGRATION_ACCOUNT = 1;
|
|
1240
|
-
*/
|
|
1241
|
-
ACCOUNT = 1
|
|
1242
|
-
}
|
|
1243
|
-
/**
|
|
1244
|
-
* Lifecycle of a protected resource.
|
|
1245
|
-
*
|
|
1246
|
-
* @generated from protobuf enum sid.v1.projects.ResourceState
|
|
1247
|
-
*/
|
|
1248
|
-
export enum ResourceState {
|
|
1249
|
-
/**
|
|
1250
|
-
* @generated from protobuf enum value: RESOURCE_STATE_UNSPECIFIED = 0;
|
|
1251
|
-
*/
|
|
1252
|
-
UNSPECIFIED = 0,
|
|
1253
|
-
/**
|
|
1254
|
-
* Tokens are issued for it and accepted by it.
|
|
1255
|
-
*
|
|
1256
|
-
* @generated from protobuf enum value: RESOURCE_STATE_ACTIVE = 1;
|
|
1257
|
-
*/
|
|
1258
|
-
ACTIVE = 1,
|
|
1259
|
-
/**
|
|
1260
|
-
* Temporarily not a target; can be activated again.
|
|
1261
|
-
*
|
|
1262
|
-
* @generated from protobuf enum value: RESOURCE_STATE_INACTIVE = 2;
|
|
1263
|
-
*/
|
|
1264
|
-
INACTIVE = 2,
|
|
1265
|
-
/**
|
|
1266
|
-
* Its application was removed. The indicator stays reserved; a retired
|
|
1267
|
-
* resource never becomes active again.
|
|
1268
|
-
*
|
|
1269
|
-
* @generated from protobuf enum value: RESOURCE_STATE_RETIRED = 3;
|
|
1270
|
-
*/
|
|
1271
|
-
RETIRED = 3
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1274
|
-
* @generated from protobuf enum sid.v1.projects.TokenEndpointAuthMethod
|
|
1275
|
-
*/
|
|
1276
|
-
export enum TokenEndpointAuthMethod {
|
|
1277
|
-
/**
|
|
1278
|
-
* @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_UNSPECIFIED = 0;
|
|
1279
|
-
*/
|
|
1280
|
-
UNSPECIFIED = 0,
|
|
1281
|
-
/**
|
|
1282
|
-
* @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_POST = 1;
|
|
1283
|
-
*/
|
|
1284
|
-
CLIENT_SECRET_POST = 1,
|
|
1285
|
-
/**
|
|
1286
|
-
* @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_BASIC = 2;
|
|
1287
|
-
*/
|
|
1288
|
-
CLIENT_SECRET_BASIC = 2,
|
|
1289
|
-
/**
|
|
1290
|
-
* @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_NONE = 3;
|
|
1291
|
-
*/
|
|
1292
|
-
NONE = 3,
|
|
1293
|
-
/**
|
|
1294
|
-
* @generated from protobuf enum value: TOKEN_ENDPOINT_AUTH_METHOD_PRIVATE_KEY_JWT = 4;
|
|
1295
|
-
*/
|
|
1296
|
-
PRIVATE_KEY_JWT = 4
|
|
1297
|
-
}
|
|
1298
|
-
/**
|
|
1299
|
-
* @generated from protobuf enum sid.v1.projects.SubjectType
|
|
1300
|
-
*/
|
|
1301
|
-
export enum SubjectType {
|
|
1302
|
-
/**
|
|
1303
|
-
* @generated from protobuf enum value: SUBJECT_TYPE_UNSPECIFIED = 0;
|
|
1304
|
-
*/
|
|
1305
|
-
UNSPECIFIED = 0,
|
|
1306
|
-
/**
|
|
1307
|
-
* @generated from protobuf enum value: SUBJECT_TYPE_PAIRWISE = 1;
|
|
1308
|
-
*/
|
|
1309
|
-
PAIRWISE = 1,
|
|
1310
|
-
/**
|
|
1311
|
-
* @generated from protobuf enum value: SUBJECT_TYPE_PUBLIC = 2;
|
|
1312
|
-
*/
|
|
1313
|
-
PUBLIC = 2
|
|
1314
|
-
}
|
|
1315
|
-
/**
|
|
1316
|
-
* Kind of client software.
|
|
1317
|
-
*
|
|
1318
|
-
* @generated from protobuf enum sid.v1.projects.ApplicationType
|
|
1319
|
-
*/
|
|
1320
|
-
export enum ApplicationType {
|
|
1321
|
-
/**
|
|
1322
|
-
* @generated from protobuf enum value: APPLICATION_TYPE_UNSPECIFIED = 0;
|
|
1323
|
-
*/
|
|
1324
|
-
UNSPECIFIED = 0,
|
|
1325
|
-
/**
|
|
1326
|
-
* Server-side web application; can hold a secret.
|
|
1327
|
-
*
|
|
1328
|
-
* @generated from protobuf enum value: APPLICATION_TYPE_WEB = 1;
|
|
1329
|
-
*/
|
|
1330
|
-
WEB = 1,
|
|
1331
|
-
/**
|
|
1332
|
-
* Mobile or desktop application; public client.
|
|
1333
|
-
*
|
|
1334
|
-
* @generated from protobuf enum value: APPLICATION_TYPE_NATIVE = 2;
|
|
1335
|
-
*/
|
|
1336
|
-
NATIVE = 2,
|
|
1337
|
-
/**
|
|
1338
|
-
* Machine client (client credentials); can hold a secret. An API that only
|
|
1339
|
-
* receives requests needs no client role at all.
|
|
1340
|
-
*
|
|
1341
|
-
* @generated from protobuf enum value: APPLICATION_TYPE_API = 3;
|
|
1342
|
-
*/
|
|
1343
|
-
API = 3,
|
|
1344
|
-
/**
|
|
1345
|
-
* Single-page application; public client.
|
|
1346
|
-
*
|
|
1347
|
-
* @generated from protobuf enum value: APPLICATION_TYPE_SPA = 4;
|
|
1348
|
-
*/
|
|
1349
|
-
SPA = 4
|
|
1350
|
-
}
|
|
1351
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1352
|
-
class Project$Type extends MessageType<Project> {
|
|
1353
|
-
constructor() {
|
|
1354
|
-
super("sid.v1.projects.Project", [
|
|
1355
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1356
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1357
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1358
|
-
{ no: 4, name: "owner_profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1359
|
-
{ no: 5, name: "is_system", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1360
|
-
{ no: 6, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1361
|
-
{ no: 7, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
1362
|
-
]);
|
|
1363
|
-
}
|
|
1364
|
-
create(value?: PartialMessage<Project>): Project {
|
|
1365
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1366
|
-
message.id = "";
|
|
1367
|
-
message.name = "";
|
|
1368
|
-
message.description = "";
|
|
1369
|
-
message.ownerProfileId = "";
|
|
1370
|
-
message.isSystem = false;
|
|
1371
|
-
if (value !== undefined)
|
|
1372
|
-
reflectionMergePartial<Project>(this, message, value);
|
|
1373
|
-
return message;
|
|
1374
|
-
}
|
|
1375
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project): Project {
|
|
1376
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1377
|
-
while (reader.pos < end) {
|
|
1378
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1379
|
-
switch (fieldNo) {
|
|
1380
|
-
case /* string id */ 1:
|
|
1381
|
-
message.id = reader.string();
|
|
1382
|
-
break;
|
|
1383
|
-
case /* string name */ 2:
|
|
1384
|
-
message.name = reader.string();
|
|
1385
|
-
break;
|
|
1386
|
-
case /* string description */ 3:
|
|
1387
|
-
message.description = reader.string();
|
|
1388
|
-
break;
|
|
1389
|
-
case /* string owner_profile_id */ 4:
|
|
1390
|
-
message.ownerProfileId = reader.string();
|
|
1391
|
-
break;
|
|
1392
|
-
case /* bool is_system */ 5:
|
|
1393
|
-
message.isSystem = reader.bool();
|
|
1394
|
-
break;
|
|
1395
|
-
case /* google.protobuf.Timestamp created_at */ 6:
|
|
1396
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1397
|
-
break;
|
|
1398
|
-
case /* google.protobuf.Timestamp updated_at */ 7:
|
|
1399
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
1400
|
-
break;
|
|
1401
|
-
default:
|
|
1402
|
-
let u = options.readUnknownField;
|
|
1403
|
-
if (u === "throw")
|
|
1404
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1405
|
-
let d = reader.skip(wireType);
|
|
1406
|
-
if (u !== false)
|
|
1407
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
return message;
|
|
1411
|
-
}
|
|
1412
|
-
internalBinaryWrite(message: Project, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1413
|
-
/* string id = 1; */
|
|
1414
|
-
if (message.id !== "")
|
|
1415
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
1416
|
-
/* string name = 2; */
|
|
1417
|
-
if (message.name !== "")
|
|
1418
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1419
|
-
/* string description = 3; */
|
|
1420
|
-
if (message.description !== "")
|
|
1421
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
1422
|
-
/* string owner_profile_id = 4; */
|
|
1423
|
-
if (message.ownerProfileId !== "")
|
|
1424
|
-
writer.tag(4, WireType.LengthDelimited).string(message.ownerProfileId);
|
|
1425
|
-
/* bool is_system = 5; */
|
|
1426
|
-
if (message.isSystem !== false)
|
|
1427
|
-
writer.tag(5, WireType.Varint).bool(message.isSystem);
|
|
1428
|
-
/* google.protobuf.Timestamp created_at = 6; */
|
|
1429
|
-
if (message.createdAt)
|
|
1430
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1431
|
-
/* google.protobuf.Timestamp updated_at = 7; */
|
|
1432
|
-
if (message.updatedAt)
|
|
1433
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1434
|
-
let u = options.writeUnknownFields;
|
|
1435
|
-
if (u !== false)
|
|
1436
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1437
|
-
return writer;
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
/**
|
|
1441
|
-
* @generated MessageType for protobuf message sid.v1.projects.Project
|
|
1442
|
-
*/
|
|
1443
|
-
export const Project = new Project$Type();
|
|
1444
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1445
|
-
class Application$Type extends MessageType<Application> {
|
|
1446
|
-
constructor() {
|
|
1447
|
-
super("sid.v1.projects.Application", [
|
|
1448
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1449
|
-
{ no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1450
|
-
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1451
|
-
{ no: 4, name: "client", kind: "message", T: () => OAuthClient },
|
|
1452
|
-
{ no: 5, name: "resource", kind: "message", T: () => ProtectedResource },
|
|
1453
|
-
{ no: 6, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1454
|
-
{ no: 7, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1455
|
-
{ no: 8, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
1456
|
-
{ no: 9, name: "system_integration", kind: "enum", T: () => ["sid.v1.projects.SystemIntegration", SystemIntegration, "SYSTEM_INTEGRATION_"] }
|
|
1457
|
-
]);
|
|
1458
|
-
}
|
|
1459
|
-
create(value?: PartialMessage<Application>): Application {
|
|
1460
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1461
|
-
message.id = "";
|
|
1462
|
-
message.projectId = "";
|
|
1463
|
-
message.name = "";
|
|
1464
|
-
message.revision = 0n;
|
|
1465
|
-
message.systemIntegration = 0;
|
|
1466
|
-
if (value !== undefined)
|
|
1467
|
-
reflectionMergePartial<Application>(this, message, value);
|
|
1468
|
-
return message;
|
|
1469
|
-
}
|
|
1470
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Application): Application {
|
|
1471
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1472
|
-
while (reader.pos < end) {
|
|
1473
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1474
|
-
switch (fieldNo) {
|
|
1475
|
-
case /* string id */ 1:
|
|
1476
|
-
message.id = reader.string();
|
|
1477
|
-
break;
|
|
1478
|
-
case /* string project_id */ 2:
|
|
1479
|
-
message.projectId = reader.string();
|
|
1480
|
-
break;
|
|
1481
|
-
case /* string name */ 3:
|
|
1482
|
-
message.name = reader.string();
|
|
1483
|
-
break;
|
|
1484
|
-
case /* optional sid.v1.projects.OAuthClient client */ 4:
|
|
1485
|
-
message.client = OAuthClient.internalBinaryRead(reader, reader.uint32(), options, message.client);
|
|
1486
|
-
break;
|
|
1487
|
-
case /* optional sid.v1.projects.ProtectedResource resource */ 5:
|
|
1488
|
-
message.resource = ProtectedResource.internalBinaryRead(reader, reader.uint32(), options, message.resource);
|
|
1489
|
-
break;
|
|
1490
|
-
case /* uint64 revision */ 6:
|
|
1491
|
-
message.revision = reader.uint64().toBigInt();
|
|
1492
|
-
break;
|
|
1493
|
-
case /* google.protobuf.Timestamp created_at */ 7:
|
|
1494
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1495
|
-
break;
|
|
1496
|
-
case /* google.protobuf.Timestamp updated_at */ 8:
|
|
1497
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
1498
|
-
break;
|
|
1499
|
-
case /* sid.v1.projects.SystemIntegration system_integration */ 9:
|
|
1500
|
-
message.systemIntegration = reader.int32();
|
|
1501
|
-
break;
|
|
1502
|
-
default:
|
|
1503
|
-
let u = options.readUnknownField;
|
|
1504
|
-
if (u === "throw")
|
|
1505
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1506
|
-
let d = reader.skip(wireType);
|
|
1507
|
-
if (u !== false)
|
|
1508
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
return message;
|
|
1512
|
-
}
|
|
1513
|
-
internalBinaryWrite(message: Application, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1514
|
-
/* string id = 1; */
|
|
1515
|
-
if (message.id !== "")
|
|
1516
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
1517
|
-
/* string project_id = 2; */
|
|
1518
|
-
if (message.projectId !== "")
|
|
1519
|
-
writer.tag(2, WireType.LengthDelimited).string(message.projectId);
|
|
1520
|
-
/* string name = 3; */
|
|
1521
|
-
if (message.name !== "")
|
|
1522
|
-
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
|
1523
|
-
/* optional sid.v1.projects.OAuthClient client = 4; */
|
|
1524
|
-
if (message.client)
|
|
1525
|
-
OAuthClient.internalBinaryWrite(message.client, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1526
|
-
/* optional sid.v1.projects.ProtectedResource resource = 5; */
|
|
1527
|
-
if (message.resource)
|
|
1528
|
-
ProtectedResource.internalBinaryWrite(message.resource, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1529
|
-
/* uint64 revision = 6; */
|
|
1530
|
-
if (message.revision !== 0n)
|
|
1531
|
-
writer.tag(6, WireType.Varint).uint64(message.revision);
|
|
1532
|
-
/* google.protobuf.Timestamp created_at = 7; */
|
|
1533
|
-
if (message.createdAt)
|
|
1534
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1535
|
-
/* google.protobuf.Timestamp updated_at = 8; */
|
|
1536
|
-
if (message.updatedAt)
|
|
1537
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1538
|
-
/* sid.v1.projects.SystemIntegration system_integration = 9; */
|
|
1539
|
-
if (message.systemIntegration !== 0)
|
|
1540
|
-
writer.tag(9, WireType.Varint).int32(message.systemIntegration);
|
|
1541
|
-
let u = options.writeUnknownFields;
|
|
1542
|
-
if (u !== false)
|
|
1543
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1544
|
-
return writer;
|
|
1545
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
/**
|
|
1548
|
-
* @generated MessageType for protobuf message sid.v1.projects.Application
|
|
1549
|
-
*/
|
|
1550
|
-
export const Application = new Application$Type();
|
|
1551
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1552
|
-
class OAuthClient$Type extends MessageType<OAuthClient> {
|
|
1553
|
-
constructor() {
|
|
1554
|
-
super("sid.v1.projects.OAuthClient", [
|
|
1555
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1556
|
-
{ no: 2, name: "application_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1557
|
-
{ no: 3, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1558
|
-
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1559
|
-
{ no: 5, name: "type", kind: "enum", T: () => ["sid.v1.projects.ApplicationType", ApplicationType, "APPLICATION_TYPE_"] },
|
|
1560
|
-
{ no: 6, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1561
|
-
{ no: 7, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1562
|
-
{ no: 8, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1563
|
-
{ no: 9, name: "active", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1564
|
-
{ no: 10, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1565
|
-
{ no: 11, name: "token_endpoint_auth_method", kind: "enum", T: () => ["sid.v1.projects.TokenEndpointAuthMethod", TokenEndpointAuthMethod, "TOKEN_ENDPOINT_AUTH_METHOD_"] },
|
|
1566
|
-
{ no: 12, name: "response_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1567
|
-
{ no: 13, name: "subject_type", kind: "enum", T: () => ["sid.v1.projects.SubjectType", SubjectType, "SUBJECT_TYPE_"] },
|
|
1568
|
-
{ no: 14, name: "sector_identifier_uri", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1569
|
-
{ no: 15, name: "contacts", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1570
|
-
{ no: 16, name: "client_id_issued_at", kind: "message", T: () => Timestamp },
|
|
1571
|
-
{ no: 17, name: "client_secret_expires_at", kind: "message", T: () => Timestamp },
|
|
1572
|
-
{ no: 18, name: "dynamically_registered", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1573
|
-
{ no: 19, name: "org_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1574
|
-
{ no: 20, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1575
|
-
{ no: 21, name: "default_resource_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1576
|
-
{ no: 22, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1577
|
-
{ no: 23, name: "jwks", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1578
|
-
{ no: 24, name: "post_logout_redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1579
|
-
]);
|
|
1580
|
-
}
|
|
1581
|
-
create(value?: PartialMessage<OAuthClient>): OAuthClient {
|
|
1582
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1583
|
-
message.clientId = "";
|
|
1584
|
-
message.applicationId = "";
|
|
1585
|
-
message.projectId = "";
|
|
1586
|
-
message.name = "";
|
|
1587
|
-
message.type = 0;
|
|
1588
|
-
message.redirectUris = [];
|
|
1589
|
-
message.allowedScopes = [];
|
|
1590
|
-
message.grantTypes = [];
|
|
1591
|
-
message.active = false;
|
|
1592
|
-
message.tokenEndpointAuthMethod = 0;
|
|
1593
|
-
message.responseTypes = [];
|
|
1594
|
-
message.subjectType = 0;
|
|
1595
|
-
message.contacts = [];
|
|
1596
|
-
message.dynamicallyRegistered = false;
|
|
1597
|
-
message.issuer = "";
|
|
1598
|
-
message.revision = 0n;
|
|
1599
|
-
message.postLogoutRedirectUris = [];
|
|
1600
|
-
if (value !== undefined)
|
|
1601
|
-
reflectionMergePartial<OAuthClient>(this, message, value);
|
|
1602
|
-
return message;
|
|
1603
|
-
}
|
|
1604
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OAuthClient): OAuthClient {
|
|
1605
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1606
|
-
while (reader.pos < end) {
|
|
1607
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1608
|
-
switch (fieldNo) {
|
|
1609
|
-
case /* string client_id */ 1:
|
|
1610
|
-
message.clientId = reader.string();
|
|
1611
|
-
break;
|
|
1612
|
-
case /* string application_id */ 2:
|
|
1613
|
-
message.applicationId = reader.string();
|
|
1614
|
-
break;
|
|
1615
|
-
case /* string project_id */ 3:
|
|
1616
|
-
message.projectId = reader.string();
|
|
1617
|
-
break;
|
|
1618
|
-
case /* string name */ 4:
|
|
1619
|
-
message.name = reader.string();
|
|
1620
|
-
break;
|
|
1621
|
-
case /* sid.v1.projects.ApplicationType type */ 5:
|
|
1622
|
-
message.type = reader.int32();
|
|
1623
|
-
break;
|
|
1624
|
-
case /* repeated string redirect_uris */ 6:
|
|
1625
|
-
message.redirectUris.push(reader.string());
|
|
1626
|
-
break;
|
|
1627
|
-
case /* repeated string allowed_scopes */ 7:
|
|
1628
|
-
message.allowedScopes.push(reader.string());
|
|
1629
|
-
break;
|
|
1630
|
-
case /* repeated string grant_types */ 8:
|
|
1631
|
-
message.grantTypes.push(reader.string());
|
|
1632
|
-
break;
|
|
1633
|
-
case /* bool active */ 9:
|
|
1634
|
-
message.active = reader.bool();
|
|
1635
|
-
break;
|
|
1636
|
-
case /* google.protobuf.Timestamp created_at */ 10:
|
|
1637
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1638
|
-
break;
|
|
1639
|
-
case /* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method */ 11:
|
|
1640
|
-
message.tokenEndpointAuthMethod = reader.int32();
|
|
1641
|
-
break;
|
|
1642
|
-
case /* repeated string response_types */ 12:
|
|
1643
|
-
message.responseTypes.push(reader.string());
|
|
1644
|
-
break;
|
|
1645
|
-
case /* sid.v1.projects.SubjectType subject_type */ 13:
|
|
1646
|
-
message.subjectType = reader.int32();
|
|
1647
|
-
break;
|
|
1648
|
-
case /* optional string sector_identifier_uri */ 14:
|
|
1649
|
-
message.sectorIdentifierUri = reader.string();
|
|
1650
|
-
break;
|
|
1651
|
-
case /* repeated string contacts */ 15:
|
|
1652
|
-
message.contacts.push(reader.string());
|
|
1653
|
-
break;
|
|
1654
|
-
case /* google.protobuf.Timestamp client_id_issued_at */ 16:
|
|
1655
|
-
message.clientIdIssuedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.clientIdIssuedAt);
|
|
1656
|
-
break;
|
|
1657
|
-
case /* optional google.protobuf.Timestamp client_secret_expires_at */ 17:
|
|
1658
|
-
message.clientSecretExpiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.clientSecretExpiresAt);
|
|
1659
|
-
break;
|
|
1660
|
-
case /* bool dynamically_registered */ 18:
|
|
1661
|
-
message.dynamicallyRegistered = reader.bool();
|
|
1662
|
-
break;
|
|
1663
|
-
case /* optional string org_id */ 19:
|
|
1664
|
-
message.orgId = reader.string();
|
|
1665
|
-
break;
|
|
1666
|
-
case /* string issuer */ 20:
|
|
1667
|
-
message.issuer = reader.string();
|
|
1668
|
-
break;
|
|
1669
|
-
case /* optional string default_resource_id */ 21:
|
|
1670
|
-
message.defaultResourceId = reader.string();
|
|
1671
|
-
break;
|
|
1672
|
-
case /* uint64 revision */ 22:
|
|
1673
|
-
message.revision = reader.uint64().toBigInt();
|
|
1674
|
-
break;
|
|
1675
|
-
case /* optional string jwks */ 23:
|
|
1676
|
-
message.jwks = reader.string();
|
|
1677
|
-
break;
|
|
1678
|
-
case /* repeated string post_logout_redirect_uris */ 24:
|
|
1679
|
-
message.postLogoutRedirectUris.push(reader.string());
|
|
1680
|
-
break;
|
|
1681
|
-
default:
|
|
1682
|
-
let u = options.readUnknownField;
|
|
1683
|
-
if (u === "throw")
|
|
1684
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1685
|
-
let d = reader.skip(wireType);
|
|
1686
|
-
if (u !== false)
|
|
1687
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1688
|
-
}
|
|
1689
|
-
}
|
|
1690
|
-
return message;
|
|
1691
|
-
}
|
|
1692
|
-
internalBinaryWrite(message: OAuthClient, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1693
|
-
/* string client_id = 1; */
|
|
1694
|
-
if (message.clientId !== "")
|
|
1695
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
1696
|
-
/* string application_id = 2; */
|
|
1697
|
-
if (message.applicationId !== "")
|
|
1698
|
-
writer.tag(2, WireType.LengthDelimited).string(message.applicationId);
|
|
1699
|
-
/* string project_id = 3; */
|
|
1700
|
-
if (message.projectId !== "")
|
|
1701
|
-
writer.tag(3, WireType.LengthDelimited).string(message.projectId);
|
|
1702
|
-
/* string name = 4; */
|
|
1703
|
-
if (message.name !== "")
|
|
1704
|
-
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
1705
|
-
/* sid.v1.projects.ApplicationType type = 5; */
|
|
1706
|
-
if (message.type !== 0)
|
|
1707
|
-
writer.tag(5, WireType.Varint).int32(message.type);
|
|
1708
|
-
/* repeated string redirect_uris = 6; */
|
|
1709
|
-
for (let i = 0; i < message.redirectUris.length; i++)
|
|
1710
|
-
writer.tag(6, WireType.LengthDelimited).string(message.redirectUris[i]);
|
|
1711
|
-
/* repeated string allowed_scopes = 7; */
|
|
1712
|
-
for (let i = 0; i < message.allowedScopes.length; i++)
|
|
1713
|
-
writer.tag(7, WireType.LengthDelimited).string(message.allowedScopes[i]);
|
|
1714
|
-
/* repeated string grant_types = 8; */
|
|
1715
|
-
for (let i = 0; i < message.grantTypes.length; i++)
|
|
1716
|
-
writer.tag(8, WireType.LengthDelimited).string(message.grantTypes[i]);
|
|
1717
|
-
/* bool active = 9; */
|
|
1718
|
-
if (message.active !== false)
|
|
1719
|
-
writer.tag(9, WireType.Varint).bool(message.active);
|
|
1720
|
-
/* google.protobuf.Timestamp created_at = 10; */
|
|
1721
|
-
if (message.createdAt)
|
|
1722
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
1723
|
-
/* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 11; */
|
|
1724
|
-
if (message.tokenEndpointAuthMethod !== 0)
|
|
1725
|
-
writer.tag(11, WireType.Varint).int32(message.tokenEndpointAuthMethod);
|
|
1726
|
-
/* repeated string response_types = 12; */
|
|
1727
|
-
for (let i = 0; i < message.responseTypes.length; i++)
|
|
1728
|
-
writer.tag(12, WireType.LengthDelimited).string(message.responseTypes[i]);
|
|
1729
|
-
/* sid.v1.projects.SubjectType subject_type = 13; */
|
|
1730
|
-
if (message.subjectType !== 0)
|
|
1731
|
-
writer.tag(13, WireType.Varint).int32(message.subjectType);
|
|
1732
|
-
/* optional string sector_identifier_uri = 14; */
|
|
1733
|
-
if (message.sectorIdentifierUri !== undefined)
|
|
1734
|
-
writer.tag(14, WireType.LengthDelimited).string(message.sectorIdentifierUri);
|
|
1735
|
-
/* repeated string contacts = 15; */
|
|
1736
|
-
for (let i = 0; i < message.contacts.length; i++)
|
|
1737
|
-
writer.tag(15, WireType.LengthDelimited).string(message.contacts[i]);
|
|
1738
|
-
/* google.protobuf.Timestamp client_id_issued_at = 16; */
|
|
1739
|
-
if (message.clientIdIssuedAt)
|
|
1740
|
-
Timestamp.internalBinaryWrite(message.clientIdIssuedAt, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
1741
|
-
/* optional google.protobuf.Timestamp client_secret_expires_at = 17; */
|
|
1742
|
-
if (message.clientSecretExpiresAt)
|
|
1743
|
-
Timestamp.internalBinaryWrite(message.clientSecretExpiresAt, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
1744
|
-
/* bool dynamically_registered = 18; */
|
|
1745
|
-
if (message.dynamicallyRegistered !== false)
|
|
1746
|
-
writer.tag(18, WireType.Varint).bool(message.dynamicallyRegistered);
|
|
1747
|
-
/* optional string org_id = 19; */
|
|
1748
|
-
if (message.orgId !== undefined)
|
|
1749
|
-
writer.tag(19, WireType.LengthDelimited).string(message.orgId);
|
|
1750
|
-
/* string issuer = 20; */
|
|
1751
|
-
if (message.issuer !== "")
|
|
1752
|
-
writer.tag(20, WireType.LengthDelimited).string(message.issuer);
|
|
1753
|
-
/* optional string default_resource_id = 21; */
|
|
1754
|
-
if (message.defaultResourceId !== undefined)
|
|
1755
|
-
writer.tag(21, WireType.LengthDelimited).string(message.defaultResourceId);
|
|
1756
|
-
/* uint64 revision = 22; */
|
|
1757
|
-
if (message.revision !== 0n)
|
|
1758
|
-
writer.tag(22, WireType.Varint).uint64(message.revision);
|
|
1759
|
-
/* optional string jwks = 23; */
|
|
1760
|
-
if (message.jwks !== undefined)
|
|
1761
|
-
writer.tag(23, WireType.LengthDelimited).string(message.jwks);
|
|
1762
|
-
/* repeated string post_logout_redirect_uris = 24; */
|
|
1763
|
-
for (let i = 0; i < message.postLogoutRedirectUris.length; i++)
|
|
1764
|
-
writer.tag(24, WireType.LengthDelimited).string(message.postLogoutRedirectUris[i]);
|
|
1765
|
-
let u = options.writeUnknownFields;
|
|
1766
|
-
if (u !== false)
|
|
1767
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1768
|
-
return writer;
|
|
1769
|
-
}
|
|
1770
|
-
}
|
|
1771
|
-
/**
|
|
1772
|
-
* @generated MessageType for protobuf message sid.v1.projects.OAuthClient
|
|
1773
|
-
*/
|
|
1774
|
-
export const OAuthClient = new OAuthClient$Type();
|
|
1775
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1776
|
-
class ProtectedResource$Type extends MessageType<ProtectedResource> {
|
|
1777
|
-
constructor() {
|
|
1778
|
-
super("sid.v1.projects.ProtectedResource", [
|
|
1779
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1780
|
-
{ no: 2, name: "application_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1781
|
-
{ no: 3, name: "indicator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1782
|
-
{ no: 4, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1783
|
-
{ no: 5, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1784
|
-
{ no: 6, name: "state", kind: "enum", T: () => ["sid.v1.projects.ResourceState", ResourceState, "RESOURCE_STATE_"] },
|
|
1785
|
-
{ no: 7, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1786
|
-
{ no: 8, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1787
|
-
{ no: 9, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
1788
|
-
]);
|
|
1789
|
-
}
|
|
1790
|
-
create(value?: PartialMessage<ProtectedResource>): ProtectedResource {
|
|
1791
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1792
|
-
message.id = "";
|
|
1793
|
-
message.indicator = "";
|
|
1794
|
-
message.issuer = "";
|
|
1795
|
-
message.scopes = [];
|
|
1796
|
-
message.state = 0;
|
|
1797
|
-
message.revision = 0n;
|
|
1798
|
-
if (value !== undefined)
|
|
1799
|
-
reflectionMergePartial<ProtectedResource>(this, message, value);
|
|
1800
|
-
return message;
|
|
1801
|
-
}
|
|
1802
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProtectedResource): ProtectedResource {
|
|
1803
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1804
|
-
while (reader.pos < end) {
|
|
1805
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1806
|
-
switch (fieldNo) {
|
|
1807
|
-
case /* string id */ 1:
|
|
1808
|
-
message.id = reader.string();
|
|
1809
|
-
break;
|
|
1810
|
-
case /* optional string application_id */ 2:
|
|
1811
|
-
message.applicationId = reader.string();
|
|
1812
|
-
break;
|
|
1813
|
-
case /* string indicator */ 3:
|
|
1814
|
-
message.indicator = reader.string();
|
|
1815
|
-
break;
|
|
1816
|
-
case /* string issuer */ 4:
|
|
1817
|
-
message.issuer = reader.string();
|
|
1818
|
-
break;
|
|
1819
|
-
case /* repeated string scopes */ 5:
|
|
1820
|
-
message.scopes.push(reader.string());
|
|
1821
|
-
break;
|
|
1822
|
-
case /* sid.v1.projects.ResourceState state */ 6:
|
|
1823
|
-
message.state = reader.int32();
|
|
1824
|
-
break;
|
|
1825
|
-
case /* uint64 revision */ 7:
|
|
1826
|
-
message.revision = reader.uint64().toBigInt();
|
|
1827
|
-
break;
|
|
1828
|
-
case /* google.protobuf.Timestamp created_at */ 8:
|
|
1829
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1830
|
-
break;
|
|
1831
|
-
case /* google.protobuf.Timestamp updated_at */ 9:
|
|
1832
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
1833
|
-
break;
|
|
1834
|
-
default:
|
|
1835
|
-
let u = options.readUnknownField;
|
|
1836
|
-
if (u === "throw")
|
|
1837
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1838
|
-
let d = reader.skip(wireType);
|
|
1839
|
-
if (u !== false)
|
|
1840
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
return message;
|
|
1844
|
-
}
|
|
1845
|
-
internalBinaryWrite(message: ProtectedResource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1846
|
-
/* string id = 1; */
|
|
1847
|
-
if (message.id !== "")
|
|
1848
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
1849
|
-
/* optional string application_id = 2; */
|
|
1850
|
-
if (message.applicationId !== undefined)
|
|
1851
|
-
writer.tag(2, WireType.LengthDelimited).string(message.applicationId);
|
|
1852
|
-
/* string indicator = 3; */
|
|
1853
|
-
if (message.indicator !== "")
|
|
1854
|
-
writer.tag(3, WireType.LengthDelimited).string(message.indicator);
|
|
1855
|
-
/* string issuer = 4; */
|
|
1856
|
-
if (message.issuer !== "")
|
|
1857
|
-
writer.tag(4, WireType.LengthDelimited).string(message.issuer);
|
|
1858
|
-
/* repeated string scopes = 5; */
|
|
1859
|
-
for (let i = 0; i < message.scopes.length; i++)
|
|
1860
|
-
writer.tag(5, WireType.LengthDelimited).string(message.scopes[i]);
|
|
1861
|
-
/* sid.v1.projects.ResourceState state = 6; */
|
|
1862
|
-
if (message.state !== 0)
|
|
1863
|
-
writer.tag(6, WireType.Varint).int32(message.state);
|
|
1864
|
-
/* uint64 revision = 7; */
|
|
1865
|
-
if (message.revision !== 0n)
|
|
1866
|
-
writer.tag(7, WireType.Varint).uint64(message.revision);
|
|
1867
|
-
/* google.protobuf.Timestamp created_at = 8; */
|
|
1868
|
-
if (message.createdAt)
|
|
1869
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1870
|
-
/* google.protobuf.Timestamp updated_at = 9; */
|
|
1871
|
-
if (message.updatedAt)
|
|
1872
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1873
|
-
let u = options.writeUnknownFields;
|
|
1874
|
-
if (u !== false)
|
|
1875
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1876
|
-
return writer;
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
|
-
/**
|
|
1880
|
-
* @generated MessageType for protobuf message sid.v1.projects.ProtectedResource
|
|
1881
|
-
*/
|
|
1882
|
-
export const ProtectedResource = new ProtectedResource$Type();
|
|
1883
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1884
|
-
class ResourceAccess$Type extends MessageType<ResourceAccess> {
|
|
1885
|
-
constructor() {
|
|
1886
|
-
super("sid.v1.projects.ResourceAccess", [
|
|
1887
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1888
|
-
{ no: 2, name: "resource_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1889
|
-
{ no: 3, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1890
|
-
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp }
|
|
1891
|
-
]);
|
|
1892
|
-
}
|
|
1893
|
-
create(value?: PartialMessage<ResourceAccess>): ResourceAccess {
|
|
1894
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1895
|
-
message.clientId = "";
|
|
1896
|
-
message.resourceId = "";
|
|
1897
|
-
message.scopes = [];
|
|
1898
|
-
if (value !== undefined)
|
|
1899
|
-
reflectionMergePartial<ResourceAccess>(this, message, value);
|
|
1900
|
-
return message;
|
|
1901
|
-
}
|
|
1902
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceAccess): ResourceAccess {
|
|
1903
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1904
|
-
while (reader.pos < end) {
|
|
1905
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1906
|
-
switch (fieldNo) {
|
|
1907
|
-
case /* string client_id */ 1:
|
|
1908
|
-
message.clientId = reader.string();
|
|
1909
|
-
break;
|
|
1910
|
-
case /* string resource_id */ 2:
|
|
1911
|
-
message.resourceId = reader.string();
|
|
1912
|
-
break;
|
|
1913
|
-
case /* repeated string scopes */ 3:
|
|
1914
|
-
message.scopes.push(reader.string());
|
|
1915
|
-
break;
|
|
1916
|
-
case /* google.protobuf.Timestamp created_at */ 4:
|
|
1917
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
1918
|
-
break;
|
|
1919
|
-
default:
|
|
1920
|
-
let u = options.readUnknownField;
|
|
1921
|
-
if (u === "throw")
|
|
1922
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1923
|
-
let d = reader.skip(wireType);
|
|
1924
|
-
if (u !== false)
|
|
1925
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
return message;
|
|
1929
|
-
}
|
|
1930
|
-
internalBinaryWrite(message: ResourceAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1931
|
-
/* string client_id = 1; */
|
|
1932
|
-
if (message.clientId !== "")
|
|
1933
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
1934
|
-
/* string resource_id = 2; */
|
|
1935
|
-
if (message.resourceId !== "")
|
|
1936
|
-
writer.tag(2, WireType.LengthDelimited).string(message.resourceId);
|
|
1937
|
-
/* repeated string scopes = 3; */
|
|
1938
|
-
for (let i = 0; i < message.scopes.length; i++)
|
|
1939
|
-
writer.tag(3, WireType.LengthDelimited).string(message.scopes[i]);
|
|
1940
|
-
/* google.protobuf.Timestamp created_at = 4; */
|
|
1941
|
-
if (message.createdAt)
|
|
1942
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1943
|
-
let u = options.writeUnknownFields;
|
|
1944
|
-
if (u !== false)
|
|
1945
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1946
|
-
return writer;
|
|
1947
|
-
}
|
|
1948
|
-
}
|
|
1949
|
-
/**
|
|
1950
|
-
* @generated MessageType for protobuf message sid.v1.projects.ResourceAccess
|
|
1951
|
-
*/
|
|
1952
|
-
export const ResourceAccess = new ResourceAccess$Type();
|
|
1953
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1954
|
-
class InitialAccessToken$Type extends MessageType<InitialAccessToken> {
|
|
1955
|
-
constructor() {
|
|
1956
|
-
super("sid.v1.projects.InitialAccessToken", [
|
|
1957
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1958
|
-
{ no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1959
|
-
{ no: 3, name: "max_clients", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1960
|
-
{ no: 4, name: "clients_registered", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1961
|
-
{ no: 5, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1962
|
-
{ no: 6, name: "allowed_grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1963
|
-
{ no: 7, name: "allowed_redirect_patterns", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1964
|
-
{ no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
1965
|
-
{ no: 9, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1966
|
-
{ no: 10, name: "created_by", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1967
|
-
{ no: 11, name: "revoked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1968
|
-
]);
|
|
1969
|
-
}
|
|
1970
|
-
create(value?: PartialMessage<InitialAccessToken>): InitialAccessToken {
|
|
1971
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1972
|
-
message.id = "";
|
|
1973
|
-
message.projectId = "";
|
|
1974
|
-
message.maxClients = 0;
|
|
1975
|
-
message.clientsRegistered = 0;
|
|
1976
|
-
message.allowedScopes = [];
|
|
1977
|
-
message.allowedGrantTypes = [];
|
|
1978
|
-
message.allowedRedirectPatterns = [];
|
|
1979
|
-
message.createdBy = "";
|
|
1980
|
-
message.revoked = false;
|
|
1981
|
-
if (value !== undefined)
|
|
1982
|
-
reflectionMergePartial<InitialAccessToken>(this, message, value);
|
|
1983
|
-
return message;
|
|
1984
|
-
}
|
|
1985
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitialAccessToken): InitialAccessToken {
|
|
1986
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1987
|
-
while (reader.pos < end) {
|
|
1988
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1989
|
-
switch (fieldNo) {
|
|
1990
|
-
case /* string id */ 1:
|
|
1991
|
-
message.id = reader.string();
|
|
1992
|
-
break;
|
|
1993
|
-
case /* string project_id */ 2:
|
|
1994
|
-
message.projectId = reader.string();
|
|
1995
|
-
break;
|
|
1996
|
-
case /* uint32 max_clients */ 3:
|
|
1997
|
-
message.maxClients = reader.uint32();
|
|
1998
|
-
break;
|
|
1999
|
-
case /* uint32 clients_registered */ 4:
|
|
2000
|
-
message.clientsRegistered = reader.uint32();
|
|
2001
|
-
break;
|
|
2002
|
-
case /* repeated string allowed_scopes */ 5:
|
|
2003
|
-
message.allowedScopes.push(reader.string());
|
|
2004
|
-
break;
|
|
2005
|
-
case /* repeated string allowed_grant_types */ 6:
|
|
2006
|
-
message.allowedGrantTypes.push(reader.string());
|
|
2007
|
-
break;
|
|
2008
|
-
case /* repeated string allowed_redirect_patterns */ 7:
|
|
2009
|
-
message.allowedRedirectPatterns.push(reader.string());
|
|
2010
|
-
break;
|
|
2011
|
-
case /* google.protobuf.Timestamp expires_at */ 8:
|
|
2012
|
-
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
2013
|
-
break;
|
|
2014
|
-
case /* google.protobuf.Timestamp created_at */ 9:
|
|
2015
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
2016
|
-
break;
|
|
2017
|
-
case /* string created_by */ 10:
|
|
2018
|
-
message.createdBy = reader.string();
|
|
2019
|
-
break;
|
|
2020
|
-
case /* bool revoked */ 11:
|
|
2021
|
-
message.revoked = reader.bool();
|
|
2022
|
-
break;
|
|
2023
|
-
default:
|
|
2024
|
-
let u = options.readUnknownField;
|
|
2025
|
-
if (u === "throw")
|
|
2026
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2027
|
-
let d = reader.skip(wireType);
|
|
2028
|
-
if (u !== false)
|
|
2029
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
return message;
|
|
2033
|
-
}
|
|
2034
|
-
internalBinaryWrite(message: InitialAccessToken, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2035
|
-
/* string id = 1; */
|
|
2036
|
-
if (message.id !== "")
|
|
2037
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2038
|
-
/* string project_id = 2; */
|
|
2039
|
-
if (message.projectId !== "")
|
|
2040
|
-
writer.tag(2, WireType.LengthDelimited).string(message.projectId);
|
|
2041
|
-
/* uint32 max_clients = 3; */
|
|
2042
|
-
if (message.maxClients !== 0)
|
|
2043
|
-
writer.tag(3, WireType.Varint).uint32(message.maxClients);
|
|
2044
|
-
/* uint32 clients_registered = 4; */
|
|
2045
|
-
if (message.clientsRegistered !== 0)
|
|
2046
|
-
writer.tag(4, WireType.Varint).uint32(message.clientsRegistered);
|
|
2047
|
-
/* repeated string allowed_scopes = 5; */
|
|
2048
|
-
for (let i = 0; i < message.allowedScopes.length; i++)
|
|
2049
|
-
writer.tag(5, WireType.LengthDelimited).string(message.allowedScopes[i]);
|
|
2050
|
-
/* repeated string allowed_grant_types = 6; */
|
|
2051
|
-
for (let i = 0; i < message.allowedGrantTypes.length; i++)
|
|
2052
|
-
writer.tag(6, WireType.LengthDelimited).string(message.allowedGrantTypes[i]);
|
|
2053
|
-
/* repeated string allowed_redirect_patterns = 7; */
|
|
2054
|
-
for (let i = 0; i < message.allowedRedirectPatterns.length; i++)
|
|
2055
|
-
writer.tag(7, WireType.LengthDelimited).string(message.allowedRedirectPatterns[i]);
|
|
2056
|
-
/* google.protobuf.Timestamp expires_at = 8; */
|
|
2057
|
-
if (message.expiresAt)
|
|
2058
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
2059
|
-
/* google.protobuf.Timestamp created_at = 9; */
|
|
2060
|
-
if (message.createdAt)
|
|
2061
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
2062
|
-
/* string created_by = 10; */
|
|
2063
|
-
if (message.createdBy !== "")
|
|
2064
|
-
writer.tag(10, WireType.LengthDelimited).string(message.createdBy);
|
|
2065
|
-
/* bool revoked = 11; */
|
|
2066
|
-
if (message.revoked !== false)
|
|
2067
|
-
writer.tag(11, WireType.Varint).bool(message.revoked);
|
|
2068
|
-
let u = options.writeUnknownFields;
|
|
2069
|
-
if (u !== false)
|
|
2070
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2071
|
-
return writer;
|
|
2072
|
-
}
|
|
2073
|
-
}
|
|
2074
|
-
/**
|
|
2075
|
-
* @generated MessageType for protobuf message sid.v1.projects.InitialAccessToken
|
|
2076
|
-
*/
|
|
2077
|
-
export const InitialAccessToken = new InitialAccessToken$Type();
|
|
2078
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2079
|
-
class CreateProjectRequest$Type extends MessageType<CreateProjectRequest> {
|
|
2080
|
-
constructor() {
|
|
2081
|
-
super("sid.v1.projects.CreateProjectRequest", [
|
|
2082
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2083
|
-
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2084
|
-
{ no: 3, name: "owner_profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2085
|
-
]);
|
|
2086
|
-
}
|
|
2087
|
-
create(value?: PartialMessage<CreateProjectRequest>): CreateProjectRequest {
|
|
2088
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2089
|
-
message.name = "";
|
|
2090
|
-
message.description = "";
|
|
2091
|
-
message.ownerProfileId = "";
|
|
2092
|
-
if (value !== undefined)
|
|
2093
|
-
reflectionMergePartial<CreateProjectRequest>(this, message, value);
|
|
2094
|
-
return message;
|
|
2095
|
-
}
|
|
2096
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateProjectRequest): CreateProjectRequest {
|
|
2097
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2098
|
-
while (reader.pos < end) {
|
|
2099
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2100
|
-
switch (fieldNo) {
|
|
2101
|
-
case /* string name */ 1:
|
|
2102
|
-
message.name = reader.string();
|
|
2103
|
-
break;
|
|
2104
|
-
case /* string description */ 2:
|
|
2105
|
-
message.description = reader.string();
|
|
2106
|
-
break;
|
|
2107
|
-
case /* string owner_profile_id */ 3:
|
|
2108
|
-
message.ownerProfileId = reader.string();
|
|
2109
|
-
break;
|
|
2110
|
-
default:
|
|
2111
|
-
let u = options.readUnknownField;
|
|
2112
|
-
if (u === "throw")
|
|
2113
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2114
|
-
let d = reader.skip(wireType);
|
|
2115
|
-
if (u !== false)
|
|
2116
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2117
|
-
}
|
|
2118
|
-
}
|
|
2119
|
-
return message;
|
|
2120
|
-
}
|
|
2121
|
-
internalBinaryWrite(message: CreateProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2122
|
-
/* string name = 1; */
|
|
2123
|
-
if (message.name !== "")
|
|
2124
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
2125
|
-
/* string description = 2; */
|
|
2126
|
-
if (message.description !== "")
|
|
2127
|
-
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
2128
|
-
/* string owner_profile_id = 3; */
|
|
2129
|
-
if (message.ownerProfileId !== "")
|
|
2130
|
-
writer.tag(3, WireType.LengthDelimited).string(message.ownerProfileId);
|
|
2131
|
-
let u = options.writeUnknownFields;
|
|
2132
|
-
if (u !== false)
|
|
2133
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2134
|
-
return writer;
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
/**
|
|
2138
|
-
* @generated MessageType for protobuf message sid.v1.projects.CreateProjectRequest
|
|
2139
|
-
*/
|
|
2140
|
-
export const CreateProjectRequest = new CreateProjectRequest$Type();
|
|
2141
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2142
|
-
class GetProjectRequest$Type extends MessageType<GetProjectRequest> {
|
|
2143
|
-
constructor() {
|
|
2144
|
-
super("sid.v1.projects.GetProjectRequest", [
|
|
2145
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2146
|
-
]);
|
|
2147
|
-
}
|
|
2148
|
-
create(value?: PartialMessage<GetProjectRequest>): GetProjectRequest {
|
|
2149
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2150
|
-
message.id = "";
|
|
2151
|
-
if (value !== undefined)
|
|
2152
|
-
reflectionMergePartial<GetProjectRequest>(this, message, value);
|
|
2153
|
-
return message;
|
|
2154
|
-
}
|
|
2155
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectRequest): GetProjectRequest {
|
|
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 /* string id */ 1:
|
|
2161
|
-
message.id = reader.string();
|
|
2162
|
-
break;
|
|
2163
|
-
default:
|
|
2164
|
-
let u = options.readUnknownField;
|
|
2165
|
-
if (u === "throw")
|
|
2166
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2167
|
-
let d = reader.skip(wireType);
|
|
2168
|
-
if (u !== false)
|
|
2169
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
return message;
|
|
2173
|
-
}
|
|
2174
|
-
internalBinaryWrite(message: GetProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2175
|
-
/* string id = 1; */
|
|
2176
|
-
if (message.id !== "")
|
|
2177
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2178
|
-
let u = options.writeUnknownFields;
|
|
2179
|
-
if (u !== false)
|
|
2180
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2181
|
-
return writer;
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
/**
|
|
2185
|
-
* @generated MessageType for protobuf message sid.v1.projects.GetProjectRequest
|
|
2186
|
-
*/
|
|
2187
|
-
export const GetProjectRequest = new GetProjectRequest$Type();
|
|
2188
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2189
|
-
class ListProjectsRequest$Type extends MessageType<ListProjectsRequest> {
|
|
2190
|
-
constructor() {
|
|
2191
|
-
super("sid.v1.projects.ListProjectsRequest", [
|
|
2192
|
-
{ no: 1, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2193
|
-
{ no: 2, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2194
|
-
]);
|
|
2195
|
-
}
|
|
2196
|
-
create(value?: PartialMessage<ListProjectsRequest>): ListProjectsRequest {
|
|
2197
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2198
|
-
message.pageSize = 0;
|
|
2199
|
-
message.pageToken = "";
|
|
2200
|
-
if (value !== undefined)
|
|
2201
|
-
reflectionMergePartial<ListProjectsRequest>(this, message, value);
|
|
2202
|
-
return message;
|
|
2203
|
-
}
|
|
2204
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectsRequest): ListProjectsRequest {
|
|
2205
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2206
|
-
while (reader.pos < end) {
|
|
2207
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2208
|
-
switch (fieldNo) {
|
|
2209
|
-
case /* int32 page_size */ 1:
|
|
2210
|
-
message.pageSize = reader.int32();
|
|
2211
|
-
break;
|
|
2212
|
-
case /* string page_token */ 2:
|
|
2213
|
-
message.pageToken = reader.string();
|
|
2214
|
-
break;
|
|
2215
|
-
default:
|
|
2216
|
-
let u = options.readUnknownField;
|
|
2217
|
-
if (u === "throw")
|
|
2218
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2219
|
-
let d = reader.skip(wireType);
|
|
2220
|
-
if (u !== false)
|
|
2221
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2222
|
-
}
|
|
2223
|
-
}
|
|
2224
|
-
return message;
|
|
2225
|
-
}
|
|
2226
|
-
internalBinaryWrite(message: ListProjectsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2227
|
-
/* int32 page_size = 1; */
|
|
2228
|
-
if (message.pageSize !== 0)
|
|
2229
|
-
writer.tag(1, WireType.Varint).int32(message.pageSize);
|
|
2230
|
-
/* string page_token = 2; */
|
|
2231
|
-
if (message.pageToken !== "")
|
|
2232
|
-
writer.tag(2, WireType.LengthDelimited).string(message.pageToken);
|
|
2233
|
-
let u = options.writeUnknownFields;
|
|
2234
|
-
if (u !== false)
|
|
2235
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2236
|
-
return writer;
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
/**
|
|
2240
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListProjectsRequest
|
|
2241
|
-
*/
|
|
2242
|
-
export const ListProjectsRequest = new ListProjectsRequest$Type();
|
|
2243
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2244
|
-
class ListProjectsResponse$Type extends MessageType<ListProjectsResponse> {
|
|
2245
|
-
constructor() {
|
|
2246
|
-
super("sid.v1.projects.ListProjectsResponse", [
|
|
2247
|
-
{ no: 1, name: "projects", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Project },
|
|
2248
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2249
|
-
]);
|
|
2250
|
-
}
|
|
2251
|
-
create(value?: PartialMessage<ListProjectsResponse>): ListProjectsResponse {
|
|
2252
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2253
|
-
message.projects = [];
|
|
2254
|
-
message.nextPageToken = "";
|
|
2255
|
-
if (value !== undefined)
|
|
2256
|
-
reflectionMergePartial<ListProjectsResponse>(this, message, value);
|
|
2257
|
-
return message;
|
|
2258
|
-
}
|
|
2259
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectsResponse): ListProjectsResponse {
|
|
2260
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2261
|
-
while (reader.pos < end) {
|
|
2262
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2263
|
-
switch (fieldNo) {
|
|
2264
|
-
case /* repeated sid.v1.projects.Project projects */ 1:
|
|
2265
|
-
message.projects.push(Project.internalBinaryRead(reader, reader.uint32(), options));
|
|
2266
|
-
break;
|
|
2267
|
-
case /* string next_page_token */ 2:
|
|
2268
|
-
message.nextPageToken = reader.string();
|
|
2269
|
-
break;
|
|
2270
|
-
default:
|
|
2271
|
-
let u = options.readUnknownField;
|
|
2272
|
-
if (u === "throw")
|
|
2273
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2274
|
-
let d = reader.skip(wireType);
|
|
2275
|
-
if (u !== false)
|
|
2276
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2277
|
-
}
|
|
2278
|
-
}
|
|
2279
|
-
return message;
|
|
2280
|
-
}
|
|
2281
|
-
internalBinaryWrite(message: ListProjectsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2282
|
-
/* repeated sid.v1.projects.Project projects = 1; */
|
|
2283
|
-
for (let i = 0; i < message.projects.length; i++)
|
|
2284
|
-
Project.internalBinaryWrite(message.projects[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2285
|
-
/* string next_page_token = 2; */
|
|
2286
|
-
if (message.nextPageToken !== "")
|
|
2287
|
-
writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
|
|
2288
|
-
let u = options.writeUnknownFields;
|
|
2289
|
-
if (u !== false)
|
|
2290
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2291
|
-
return writer;
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
/**
|
|
2295
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListProjectsResponse
|
|
2296
|
-
*/
|
|
2297
|
-
export const ListProjectsResponse = new ListProjectsResponse$Type();
|
|
2298
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2299
|
-
class UpdateProjectRequest$Type extends MessageType<UpdateProjectRequest> {
|
|
2300
|
-
constructor() {
|
|
2301
|
-
super("sid.v1.projects.UpdateProjectRequest", [
|
|
2302
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2303
|
-
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2304
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2305
|
-
]);
|
|
2306
|
-
}
|
|
2307
|
-
create(value?: PartialMessage<UpdateProjectRequest>): UpdateProjectRequest {
|
|
2308
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2309
|
-
message.id = "";
|
|
2310
|
-
if (value !== undefined)
|
|
2311
|
-
reflectionMergePartial<UpdateProjectRequest>(this, message, value);
|
|
2312
|
-
return message;
|
|
2313
|
-
}
|
|
2314
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateProjectRequest): UpdateProjectRequest {
|
|
2315
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2316
|
-
while (reader.pos < end) {
|
|
2317
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2318
|
-
switch (fieldNo) {
|
|
2319
|
-
case /* string id */ 1:
|
|
2320
|
-
message.id = reader.string();
|
|
2321
|
-
break;
|
|
2322
|
-
case /* optional string name */ 2:
|
|
2323
|
-
message.name = reader.string();
|
|
2324
|
-
break;
|
|
2325
|
-
case /* optional string description */ 3:
|
|
2326
|
-
message.description = reader.string();
|
|
2327
|
-
break;
|
|
2328
|
-
default:
|
|
2329
|
-
let u = options.readUnknownField;
|
|
2330
|
-
if (u === "throw")
|
|
2331
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2332
|
-
let d = reader.skip(wireType);
|
|
2333
|
-
if (u !== false)
|
|
2334
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
return message;
|
|
2338
|
-
}
|
|
2339
|
-
internalBinaryWrite(message: UpdateProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2340
|
-
/* string id = 1; */
|
|
2341
|
-
if (message.id !== "")
|
|
2342
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2343
|
-
/* optional string name = 2; */
|
|
2344
|
-
if (message.name !== undefined)
|
|
2345
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2346
|
-
/* optional string description = 3; */
|
|
2347
|
-
if (message.description !== undefined)
|
|
2348
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
2349
|
-
let u = options.writeUnknownFields;
|
|
2350
|
-
if (u !== false)
|
|
2351
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2352
|
-
return writer;
|
|
2353
|
-
}
|
|
2354
|
-
}
|
|
2355
|
-
/**
|
|
2356
|
-
* @generated MessageType for protobuf message sid.v1.projects.UpdateProjectRequest
|
|
2357
|
-
*/
|
|
2358
|
-
export const UpdateProjectRequest = new UpdateProjectRequest$Type();
|
|
2359
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2360
|
-
class DeleteProjectRequest$Type extends MessageType<DeleteProjectRequest> {
|
|
2361
|
-
constructor() {
|
|
2362
|
-
super("sid.v1.projects.DeleteProjectRequest", [
|
|
2363
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2364
|
-
]);
|
|
2365
|
-
}
|
|
2366
|
-
create(value?: PartialMessage<DeleteProjectRequest>): DeleteProjectRequest {
|
|
2367
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2368
|
-
message.id = "";
|
|
2369
|
-
if (value !== undefined)
|
|
2370
|
-
reflectionMergePartial<DeleteProjectRequest>(this, message, value);
|
|
2371
|
-
return message;
|
|
2372
|
-
}
|
|
2373
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectRequest): DeleteProjectRequest {
|
|
2374
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2375
|
-
while (reader.pos < end) {
|
|
2376
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2377
|
-
switch (fieldNo) {
|
|
2378
|
-
case /* string id */ 1:
|
|
2379
|
-
message.id = reader.string();
|
|
2380
|
-
break;
|
|
2381
|
-
default:
|
|
2382
|
-
let u = options.readUnknownField;
|
|
2383
|
-
if (u === "throw")
|
|
2384
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2385
|
-
let d = reader.skip(wireType);
|
|
2386
|
-
if (u !== false)
|
|
2387
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2388
|
-
}
|
|
2389
|
-
}
|
|
2390
|
-
return message;
|
|
2391
|
-
}
|
|
2392
|
-
internalBinaryWrite(message: DeleteProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2393
|
-
/* string id = 1; */
|
|
2394
|
-
if (message.id !== "")
|
|
2395
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2396
|
-
let u = options.writeUnknownFields;
|
|
2397
|
-
if (u !== false)
|
|
2398
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2399
|
-
return writer;
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
/**
|
|
2403
|
-
* @generated MessageType for protobuf message sid.v1.projects.DeleteProjectRequest
|
|
2404
|
-
*/
|
|
2405
|
-
export const DeleteProjectRequest = new DeleteProjectRequest$Type();
|
|
2406
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2407
|
-
class ClientRoleSettings$Type extends MessageType<ClientRoleSettings> {
|
|
2408
|
-
constructor() {
|
|
2409
|
-
super("sid.v1.projects.ClientRoleSettings", [
|
|
2410
|
-
{ no: 1, name: "type", kind: "enum", T: () => ["sid.v1.projects.ApplicationType", ApplicationType, "APPLICATION_TYPE_"] },
|
|
2411
|
-
{ no: 2, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2412
|
-
{ no: 3, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2413
|
-
{ no: 4, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2414
|
-
{ no: 5, name: "jwks", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2415
|
-
{ no: 6, name: "post_logout_redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
2416
|
-
]);
|
|
2417
|
-
}
|
|
2418
|
-
create(value?: PartialMessage<ClientRoleSettings>): ClientRoleSettings {
|
|
2419
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2420
|
-
message.type = 0;
|
|
2421
|
-
message.redirectUris = [];
|
|
2422
|
-
message.allowedScopes = [];
|
|
2423
|
-
message.grantTypes = [];
|
|
2424
|
-
message.postLogoutRedirectUris = [];
|
|
2425
|
-
if (value !== undefined)
|
|
2426
|
-
reflectionMergePartial<ClientRoleSettings>(this, message, value);
|
|
2427
|
-
return message;
|
|
2428
|
-
}
|
|
2429
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClientRoleSettings): ClientRoleSettings {
|
|
2430
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2431
|
-
while (reader.pos < end) {
|
|
2432
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2433
|
-
switch (fieldNo) {
|
|
2434
|
-
case /* sid.v1.projects.ApplicationType type */ 1:
|
|
2435
|
-
message.type = reader.int32();
|
|
2436
|
-
break;
|
|
2437
|
-
case /* repeated string redirect_uris */ 2:
|
|
2438
|
-
message.redirectUris.push(reader.string());
|
|
2439
|
-
break;
|
|
2440
|
-
case /* repeated string allowed_scopes */ 3:
|
|
2441
|
-
message.allowedScopes.push(reader.string());
|
|
2442
|
-
break;
|
|
2443
|
-
case /* repeated string grant_types */ 4:
|
|
2444
|
-
message.grantTypes.push(reader.string());
|
|
2445
|
-
break;
|
|
2446
|
-
case /* optional string jwks */ 5:
|
|
2447
|
-
message.jwks = reader.string();
|
|
2448
|
-
break;
|
|
2449
|
-
case /* repeated string post_logout_redirect_uris */ 6:
|
|
2450
|
-
message.postLogoutRedirectUris.push(reader.string());
|
|
2451
|
-
break;
|
|
2452
|
-
default:
|
|
2453
|
-
let u = options.readUnknownField;
|
|
2454
|
-
if (u === "throw")
|
|
2455
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2456
|
-
let d = reader.skip(wireType);
|
|
2457
|
-
if (u !== false)
|
|
2458
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2459
|
-
}
|
|
2460
|
-
}
|
|
2461
|
-
return message;
|
|
2462
|
-
}
|
|
2463
|
-
internalBinaryWrite(message: ClientRoleSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2464
|
-
/* sid.v1.projects.ApplicationType type = 1; */
|
|
2465
|
-
if (message.type !== 0)
|
|
2466
|
-
writer.tag(1, WireType.Varint).int32(message.type);
|
|
2467
|
-
/* repeated string redirect_uris = 2; */
|
|
2468
|
-
for (let i = 0; i < message.redirectUris.length; i++)
|
|
2469
|
-
writer.tag(2, WireType.LengthDelimited).string(message.redirectUris[i]);
|
|
2470
|
-
/* repeated string allowed_scopes = 3; */
|
|
2471
|
-
for (let i = 0; i < message.allowedScopes.length; i++)
|
|
2472
|
-
writer.tag(3, WireType.LengthDelimited).string(message.allowedScopes[i]);
|
|
2473
|
-
/* repeated string grant_types = 4; */
|
|
2474
|
-
for (let i = 0; i < message.grantTypes.length; i++)
|
|
2475
|
-
writer.tag(4, WireType.LengthDelimited).string(message.grantTypes[i]);
|
|
2476
|
-
/* optional string jwks = 5; */
|
|
2477
|
-
if (message.jwks !== undefined)
|
|
2478
|
-
writer.tag(5, WireType.LengthDelimited).string(message.jwks);
|
|
2479
|
-
/* repeated string post_logout_redirect_uris = 6; */
|
|
2480
|
-
for (let i = 0; i < message.postLogoutRedirectUris.length; i++)
|
|
2481
|
-
writer.tag(6, WireType.LengthDelimited).string(message.postLogoutRedirectUris[i]);
|
|
2482
|
-
let u = options.writeUnknownFields;
|
|
2483
|
-
if (u !== false)
|
|
2484
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2485
|
-
return writer;
|
|
2486
|
-
}
|
|
2487
|
-
}
|
|
2488
|
-
/**
|
|
2489
|
-
* @generated MessageType for protobuf message sid.v1.projects.ClientRoleSettings
|
|
2490
|
-
*/
|
|
2491
|
-
export const ClientRoleSettings = new ClientRoleSettings$Type();
|
|
2492
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2493
|
-
class UriList$Type extends MessageType<UriList> {
|
|
2494
|
-
constructor() {
|
|
2495
|
-
super("sid.v1.projects.UriList", [
|
|
2496
|
-
{ no: 1, name: "uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
2497
|
-
]);
|
|
2498
|
-
}
|
|
2499
|
-
create(value?: PartialMessage<UriList>): UriList {
|
|
2500
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2501
|
-
message.uris = [];
|
|
2502
|
-
if (value !== undefined)
|
|
2503
|
-
reflectionMergePartial<UriList>(this, message, value);
|
|
2504
|
-
return message;
|
|
2505
|
-
}
|
|
2506
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UriList): UriList {
|
|
2507
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2508
|
-
while (reader.pos < end) {
|
|
2509
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2510
|
-
switch (fieldNo) {
|
|
2511
|
-
case /* repeated string uris */ 1:
|
|
2512
|
-
message.uris.push(reader.string());
|
|
2513
|
-
break;
|
|
2514
|
-
default:
|
|
2515
|
-
let u = options.readUnknownField;
|
|
2516
|
-
if (u === "throw")
|
|
2517
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2518
|
-
let d = reader.skip(wireType);
|
|
2519
|
-
if (u !== false)
|
|
2520
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
return message;
|
|
2524
|
-
}
|
|
2525
|
-
internalBinaryWrite(message: UriList, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2526
|
-
/* repeated string uris = 1; */
|
|
2527
|
-
for (let i = 0; i < message.uris.length; i++)
|
|
2528
|
-
writer.tag(1, WireType.LengthDelimited).string(message.uris[i]);
|
|
2529
|
-
let u = options.writeUnknownFields;
|
|
2530
|
-
if (u !== false)
|
|
2531
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2532
|
-
return writer;
|
|
2533
|
-
}
|
|
2534
|
-
}
|
|
2535
|
-
/**
|
|
2536
|
-
* @generated MessageType for protobuf message sid.v1.projects.UriList
|
|
2537
|
-
*/
|
|
2538
|
-
export const UriList = new UriList$Type();
|
|
2539
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2540
|
-
class ResourceRoleSettings$Type extends MessageType<ResourceRoleSettings> {
|
|
2541
|
-
constructor() {
|
|
2542
|
-
super("sid.v1.projects.ResourceRoleSettings", [
|
|
2543
|
-
{ no: 1, name: "indicator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2544
|
-
{ no: 2, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
2545
|
-
]);
|
|
2546
|
-
}
|
|
2547
|
-
create(value?: PartialMessage<ResourceRoleSettings>): ResourceRoleSettings {
|
|
2548
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2549
|
-
message.indicator = "";
|
|
2550
|
-
message.scopes = [];
|
|
2551
|
-
if (value !== undefined)
|
|
2552
|
-
reflectionMergePartial<ResourceRoleSettings>(this, message, value);
|
|
2553
|
-
return message;
|
|
2554
|
-
}
|
|
2555
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceRoleSettings): ResourceRoleSettings {
|
|
2556
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2557
|
-
while (reader.pos < end) {
|
|
2558
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2559
|
-
switch (fieldNo) {
|
|
2560
|
-
case /* string indicator */ 1:
|
|
2561
|
-
message.indicator = reader.string();
|
|
2562
|
-
break;
|
|
2563
|
-
case /* repeated string scopes */ 2:
|
|
2564
|
-
message.scopes.push(reader.string());
|
|
2565
|
-
break;
|
|
2566
|
-
default:
|
|
2567
|
-
let u = options.readUnknownField;
|
|
2568
|
-
if (u === "throw")
|
|
2569
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2570
|
-
let d = reader.skip(wireType);
|
|
2571
|
-
if (u !== false)
|
|
2572
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
return message;
|
|
2576
|
-
}
|
|
2577
|
-
internalBinaryWrite(message: ResourceRoleSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2578
|
-
/* string indicator = 1; */
|
|
2579
|
-
if (message.indicator !== "")
|
|
2580
|
-
writer.tag(1, WireType.LengthDelimited).string(message.indicator);
|
|
2581
|
-
/* repeated string scopes = 2; */
|
|
2582
|
-
for (let i = 0; i < message.scopes.length; i++)
|
|
2583
|
-
writer.tag(2, WireType.LengthDelimited).string(message.scopes[i]);
|
|
2584
|
-
let u = options.writeUnknownFields;
|
|
2585
|
-
if (u !== false)
|
|
2586
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2587
|
-
return writer;
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
/**
|
|
2591
|
-
* @generated MessageType for protobuf message sid.v1.projects.ResourceRoleSettings
|
|
2592
|
-
*/
|
|
2593
|
-
export const ResourceRoleSettings = new ResourceRoleSettings$Type();
|
|
2594
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2595
|
-
class CreateApplicationRequest$Type extends MessageType<CreateApplicationRequest> {
|
|
2596
|
-
constructor() {
|
|
2597
|
-
super("sid.v1.projects.CreateApplicationRequest", [
|
|
2598
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2599
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2600
|
-
{ no: 3, name: "client", kind: "message", T: () => ClientRoleSettings },
|
|
2601
|
-
{ no: 4, name: "resource", kind: "message", T: () => ResourceRoleSettings },
|
|
2602
|
-
{ no: 5, name: "org_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2603
|
-
]);
|
|
2604
|
-
}
|
|
2605
|
-
create(value?: PartialMessage<CreateApplicationRequest>): CreateApplicationRequest {
|
|
2606
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2607
|
-
message.projectId = "";
|
|
2608
|
-
message.name = "";
|
|
2609
|
-
if (value !== undefined)
|
|
2610
|
-
reflectionMergePartial<CreateApplicationRequest>(this, message, value);
|
|
2611
|
-
return message;
|
|
2612
|
-
}
|
|
2613
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateApplicationRequest): CreateApplicationRequest {
|
|
2614
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2615
|
-
while (reader.pos < end) {
|
|
2616
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2617
|
-
switch (fieldNo) {
|
|
2618
|
-
case /* string project_id */ 1:
|
|
2619
|
-
message.projectId = reader.string();
|
|
2620
|
-
break;
|
|
2621
|
-
case /* string name */ 2:
|
|
2622
|
-
message.name = reader.string();
|
|
2623
|
-
break;
|
|
2624
|
-
case /* optional sid.v1.projects.ClientRoleSettings client */ 3:
|
|
2625
|
-
message.client = ClientRoleSettings.internalBinaryRead(reader, reader.uint32(), options, message.client);
|
|
2626
|
-
break;
|
|
2627
|
-
case /* optional sid.v1.projects.ResourceRoleSettings resource */ 4:
|
|
2628
|
-
message.resource = ResourceRoleSettings.internalBinaryRead(reader, reader.uint32(), options, message.resource);
|
|
2629
|
-
break;
|
|
2630
|
-
case /* optional string org_id */ 5:
|
|
2631
|
-
message.orgId = reader.string();
|
|
2632
|
-
break;
|
|
2633
|
-
default:
|
|
2634
|
-
let u = options.readUnknownField;
|
|
2635
|
-
if (u === "throw")
|
|
2636
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2637
|
-
let d = reader.skip(wireType);
|
|
2638
|
-
if (u !== false)
|
|
2639
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
return message;
|
|
2643
|
-
}
|
|
2644
|
-
internalBinaryWrite(message: CreateApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2645
|
-
/* string project_id = 1; */
|
|
2646
|
-
if (message.projectId !== "")
|
|
2647
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
2648
|
-
/* string name = 2; */
|
|
2649
|
-
if (message.name !== "")
|
|
2650
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2651
|
-
/* optional sid.v1.projects.ClientRoleSettings client = 3; */
|
|
2652
|
-
if (message.client)
|
|
2653
|
-
ClientRoleSettings.internalBinaryWrite(message.client, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2654
|
-
/* optional sid.v1.projects.ResourceRoleSettings resource = 4; */
|
|
2655
|
-
if (message.resource)
|
|
2656
|
-
ResourceRoleSettings.internalBinaryWrite(message.resource, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2657
|
-
/* optional string org_id = 5; */
|
|
2658
|
-
if (message.orgId !== undefined)
|
|
2659
|
-
writer.tag(5, WireType.LengthDelimited).string(message.orgId);
|
|
2660
|
-
let u = options.writeUnknownFields;
|
|
2661
|
-
if (u !== false)
|
|
2662
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2663
|
-
return writer;
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
/**
|
|
2667
|
-
* @generated MessageType for protobuf message sid.v1.projects.CreateApplicationRequest
|
|
2668
|
-
*/
|
|
2669
|
-
export const CreateApplicationRequest = new CreateApplicationRequest$Type();
|
|
2670
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2671
|
-
class CreateApplicationResponse$Type extends MessageType<CreateApplicationResponse> {
|
|
2672
|
-
constructor() {
|
|
2673
|
-
super("sid.v1.projects.CreateApplicationResponse", [
|
|
2674
|
-
{ no: 1, name: "application", kind: "message", T: () => Application },
|
|
2675
|
-
{ no: 2, name: "client_secret", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2676
|
-
]);
|
|
2677
|
-
}
|
|
2678
|
-
create(value?: PartialMessage<CreateApplicationResponse>): CreateApplicationResponse {
|
|
2679
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2680
|
-
message.clientSecret = "";
|
|
2681
|
-
if (value !== undefined)
|
|
2682
|
-
reflectionMergePartial<CreateApplicationResponse>(this, message, value);
|
|
2683
|
-
return message;
|
|
2684
|
-
}
|
|
2685
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateApplicationResponse): CreateApplicationResponse {
|
|
2686
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2687
|
-
while (reader.pos < end) {
|
|
2688
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2689
|
-
switch (fieldNo) {
|
|
2690
|
-
case /* sid.v1.projects.Application application */ 1:
|
|
2691
|
-
message.application = Application.internalBinaryRead(reader, reader.uint32(), options, message.application);
|
|
2692
|
-
break;
|
|
2693
|
-
case /* string client_secret */ 2:
|
|
2694
|
-
message.clientSecret = reader.string();
|
|
2695
|
-
break;
|
|
2696
|
-
default:
|
|
2697
|
-
let u = options.readUnknownField;
|
|
2698
|
-
if (u === "throw")
|
|
2699
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2700
|
-
let d = reader.skip(wireType);
|
|
2701
|
-
if (u !== false)
|
|
2702
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
return message;
|
|
2706
|
-
}
|
|
2707
|
-
internalBinaryWrite(message: CreateApplicationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2708
|
-
/* sid.v1.projects.Application application = 1; */
|
|
2709
|
-
if (message.application)
|
|
2710
|
-
Application.internalBinaryWrite(message.application, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2711
|
-
/* string client_secret = 2; */
|
|
2712
|
-
if (message.clientSecret !== "")
|
|
2713
|
-
writer.tag(2, WireType.LengthDelimited).string(message.clientSecret);
|
|
2714
|
-
let u = options.writeUnknownFields;
|
|
2715
|
-
if (u !== false)
|
|
2716
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2717
|
-
return writer;
|
|
2718
|
-
}
|
|
2719
|
-
}
|
|
2720
|
-
/**
|
|
2721
|
-
* @generated MessageType for protobuf message sid.v1.projects.CreateApplicationResponse
|
|
2722
|
-
*/
|
|
2723
|
-
export const CreateApplicationResponse = new CreateApplicationResponse$Type();
|
|
2724
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2725
|
-
class GetApplicationRequest$Type extends MessageType<GetApplicationRequest> {
|
|
2726
|
-
constructor() {
|
|
2727
|
-
super("sid.v1.projects.GetApplicationRequest", [
|
|
2728
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2729
|
-
]);
|
|
2730
|
-
}
|
|
2731
|
-
create(value?: PartialMessage<GetApplicationRequest>): GetApplicationRequest {
|
|
2732
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2733
|
-
message.id = "";
|
|
2734
|
-
if (value !== undefined)
|
|
2735
|
-
reflectionMergePartial<GetApplicationRequest>(this, message, value);
|
|
2736
|
-
return message;
|
|
2737
|
-
}
|
|
2738
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetApplicationRequest): GetApplicationRequest {
|
|
2739
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2740
|
-
while (reader.pos < end) {
|
|
2741
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2742
|
-
switch (fieldNo) {
|
|
2743
|
-
case /* string id */ 1:
|
|
2744
|
-
message.id = reader.string();
|
|
2745
|
-
break;
|
|
2746
|
-
default:
|
|
2747
|
-
let u = options.readUnknownField;
|
|
2748
|
-
if (u === "throw")
|
|
2749
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2750
|
-
let d = reader.skip(wireType);
|
|
2751
|
-
if (u !== false)
|
|
2752
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
return message;
|
|
2756
|
-
}
|
|
2757
|
-
internalBinaryWrite(message: GetApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2758
|
-
/* string id = 1; */
|
|
2759
|
-
if (message.id !== "")
|
|
2760
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2761
|
-
let u = options.writeUnknownFields;
|
|
2762
|
-
if (u !== false)
|
|
2763
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2764
|
-
return writer;
|
|
2765
|
-
}
|
|
2766
|
-
}
|
|
2767
|
-
/**
|
|
2768
|
-
* @generated MessageType for protobuf message sid.v1.projects.GetApplicationRequest
|
|
2769
|
-
*/
|
|
2770
|
-
export const GetApplicationRequest = new GetApplicationRequest$Type();
|
|
2771
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2772
|
-
class ListApplicationsRequest$Type extends MessageType<ListApplicationsRequest> {
|
|
2773
|
-
constructor() {
|
|
2774
|
-
super("sid.v1.projects.ListApplicationsRequest", [
|
|
2775
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2776
|
-
{ no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2777
|
-
{ no: 3, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2778
|
-
]);
|
|
2779
|
-
}
|
|
2780
|
-
create(value?: PartialMessage<ListApplicationsRequest>): ListApplicationsRequest {
|
|
2781
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2782
|
-
message.projectId = "";
|
|
2783
|
-
message.pageSize = 0;
|
|
2784
|
-
message.pageToken = "";
|
|
2785
|
-
if (value !== undefined)
|
|
2786
|
-
reflectionMergePartial<ListApplicationsRequest>(this, message, value);
|
|
2787
|
-
return message;
|
|
2788
|
-
}
|
|
2789
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListApplicationsRequest): ListApplicationsRequest {
|
|
2790
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2791
|
-
while (reader.pos < end) {
|
|
2792
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2793
|
-
switch (fieldNo) {
|
|
2794
|
-
case /* string project_id */ 1:
|
|
2795
|
-
message.projectId = reader.string();
|
|
2796
|
-
break;
|
|
2797
|
-
case /* int32 page_size */ 2:
|
|
2798
|
-
message.pageSize = reader.int32();
|
|
2799
|
-
break;
|
|
2800
|
-
case /* string page_token */ 3:
|
|
2801
|
-
message.pageToken = reader.string();
|
|
2802
|
-
break;
|
|
2803
|
-
default:
|
|
2804
|
-
let u = options.readUnknownField;
|
|
2805
|
-
if (u === "throw")
|
|
2806
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2807
|
-
let d = reader.skip(wireType);
|
|
2808
|
-
if (u !== false)
|
|
2809
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2810
|
-
}
|
|
2811
|
-
}
|
|
2812
|
-
return message;
|
|
2813
|
-
}
|
|
2814
|
-
internalBinaryWrite(message: ListApplicationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2815
|
-
/* string project_id = 1; */
|
|
2816
|
-
if (message.projectId !== "")
|
|
2817
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
2818
|
-
/* int32 page_size = 2; */
|
|
2819
|
-
if (message.pageSize !== 0)
|
|
2820
|
-
writer.tag(2, WireType.Varint).int32(message.pageSize);
|
|
2821
|
-
/* string page_token = 3; */
|
|
2822
|
-
if (message.pageToken !== "")
|
|
2823
|
-
writer.tag(3, WireType.LengthDelimited).string(message.pageToken);
|
|
2824
|
-
let u = options.writeUnknownFields;
|
|
2825
|
-
if (u !== false)
|
|
2826
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2827
|
-
return writer;
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2830
|
-
/**
|
|
2831
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListApplicationsRequest
|
|
2832
|
-
*/
|
|
2833
|
-
export const ListApplicationsRequest = new ListApplicationsRequest$Type();
|
|
2834
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2835
|
-
class ListApplicationsResponse$Type extends MessageType<ListApplicationsResponse> {
|
|
2836
|
-
constructor() {
|
|
2837
|
-
super("sid.v1.projects.ListApplicationsResponse", [
|
|
2838
|
-
{ no: 1, name: "applications", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Application },
|
|
2839
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2840
|
-
]);
|
|
2841
|
-
}
|
|
2842
|
-
create(value?: PartialMessage<ListApplicationsResponse>): ListApplicationsResponse {
|
|
2843
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2844
|
-
message.applications = [];
|
|
2845
|
-
message.nextPageToken = "";
|
|
2846
|
-
if (value !== undefined)
|
|
2847
|
-
reflectionMergePartial<ListApplicationsResponse>(this, message, value);
|
|
2848
|
-
return message;
|
|
2849
|
-
}
|
|
2850
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListApplicationsResponse): ListApplicationsResponse {
|
|
2851
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2852
|
-
while (reader.pos < end) {
|
|
2853
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2854
|
-
switch (fieldNo) {
|
|
2855
|
-
case /* repeated sid.v1.projects.Application applications */ 1:
|
|
2856
|
-
message.applications.push(Application.internalBinaryRead(reader, reader.uint32(), options));
|
|
2857
|
-
break;
|
|
2858
|
-
case /* string next_page_token */ 2:
|
|
2859
|
-
message.nextPageToken = reader.string();
|
|
2860
|
-
break;
|
|
2861
|
-
default:
|
|
2862
|
-
let u = options.readUnknownField;
|
|
2863
|
-
if (u === "throw")
|
|
2864
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2865
|
-
let d = reader.skip(wireType);
|
|
2866
|
-
if (u !== false)
|
|
2867
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
return message;
|
|
2871
|
-
}
|
|
2872
|
-
internalBinaryWrite(message: ListApplicationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2873
|
-
/* repeated sid.v1.projects.Application applications = 1; */
|
|
2874
|
-
for (let i = 0; i < message.applications.length; i++)
|
|
2875
|
-
Application.internalBinaryWrite(message.applications[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2876
|
-
/* string next_page_token = 2; */
|
|
2877
|
-
if (message.nextPageToken !== "")
|
|
2878
|
-
writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
|
|
2879
|
-
let u = options.writeUnknownFields;
|
|
2880
|
-
if (u !== false)
|
|
2881
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2882
|
-
return writer;
|
|
2883
|
-
}
|
|
2884
|
-
}
|
|
2885
|
-
/**
|
|
2886
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListApplicationsResponse
|
|
2887
|
-
*/
|
|
2888
|
-
export const ListApplicationsResponse = new ListApplicationsResponse$Type();
|
|
2889
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2890
|
-
class UpdateApplicationRequest$Type extends MessageType<UpdateApplicationRequest> {
|
|
2891
|
-
constructor() {
|
|
2892
|
-
super("sid.v1.projects.UpdateApplicationRequest", [
|
|
2893
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2894
|
-
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2895
|
-
]);
|
|
2896
|
-
}
|
|
2897
|
-
create(value?: PartialMessage<UpdateApplicationRequest>): UpdateApplicationRequest {
|
|
2898
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2899
|
-
message.id = "";
|
|
2900
|
-
if (value !== undefined)
|
|
2901
|
-
reflectionMergePartial<UpdateApplicationRequest>(this, message, value);
|
|
2902
|
-
return message;
|
|
2903
|
-
}
|
|
2904
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateApplicationRequest): UpdateApplicationRequest {
|
|
2905
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2906
|
-
while (reader.pos < end) {
|
|
2907
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2908
|
-
switch (fieldNo) {
|
|
2909
|
-
case /* string id */ 1:
|
|
2910
|
-
message.id = reader.string();
|
|
2911
|
-
break;
|
|
2912
|
-
case /* optional string name */ 2:
|
|
2913
|
-
message.name = reader.string();
|
|
2914
|
-
break;
|
|
2915
|
-
default:
|
|
2916
|
-
let u = options.readUnknownField;
|
|
2917
|
-
if (u === "throw")
|
|
2918
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2919
|
-
let d = reader.skip(wireType);
|
|
2920
|
-
if (u !== false)
|
|
2921
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2922
|
-
}
|
|
2923
|
-
}
|
|
2924
|
-
return message;
|
|
2925
|
-
}
|
|
2926
|
-
internalBinaryWrite(message: UpdateApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2927
|
-
/* string id = 1; */
|
|
2928
|
-
if (message.id !== "")
|
|
2929
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2930
|
-
/* optional string name = 2; */
|
|
2931
|
-
if (message.name !== undefined)
|
|
2932
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2933
|
-
let u = options.writeUnknownFields;
|
|
2934
|
-
if (u !== false)
|
|
2935
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2936
|
-
return writer;
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
|
-
/**
|
|
2940
|
-
* @generated MessageType for protobuf message sid.v1.projects.UpdateApplicationRequest
|
|
2941
|
-
*/
|
|
2942
|
-
export const UpdateApplicationRequest = new UpdateApplicationRequest$Type();
|
|
2943
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2944
|
-
class DeleteApplicationRequest$Type extends MessageType<DeleteApplicationRequest> {
|
|
2945
|
-
constructor() {
|
|
2946
|
-
super("sid.v1.projects.DeleteApplicationRequest", [
|
|
2947
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2948
|
-
]);
|
|
2949
|
-
}
|
|
2950
|
-
create(value?: PartialMessage<DeleteApplicationRequest>): DeleteApplicationRequest {
|
|
2951
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2952
|
-
message.id = "";
|
|
2953
|
-
if (value !== undefined)
|
|
2954
|
-
reflectionMergePartial<DeleteApplicationRequest>(this, message, value);
|
|
2955
|
-
return message;
|
|
2956
|
-
}
|
|
2957
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteApplicationRequest): DeleteApplicationRequest {
|
|
2958
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2959
|
-
while (reader.pos < end) {
|
|
2960
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2961
|
-
switch (fieldNo) {
|
|
2962
|
-
case /* string id */ 1:
|
|
2963
|
-
message.id = reader.string();
|
|
2964
|
-
break;
|
|
2965
|
-
default:
|
|
2966
|
-
let u = options.readUnknownField;
|
|
2967
|
-
if (u === "throw")
|
|
2968
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2969
|
-
let d = reader.skip(wireType);
|
|
2970
|
-
if (u !== false)
|
|
2971
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2972
|
-
}
|
|
2973
|
-
}
|
|
2974
|
-
return message;
|
|
2975
|
-
}
|
|
2976
|
-
internalBinaryWrite(message: DeleteApplicationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2977
|
-
/* string id = 1; */
|
|
2978
|
-
if (message.id !== "")
|
|
2979
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2980
|
-
let u = options.writeUnknownFields;
|
|
2981
|
-
if (u !== false)
|
|
2982
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2983
|
-
return writer;
|
|
2984
|
-
}
|
|
2985
|
-
}
|
|
2986
|
-
/**
|
|
2987
|
-
* @generated MessageType for protobuf message sid.v1.projects.DeleteApplicationRequest
|
|
2988
|
-
*/
|
|
2989
|
-
export const DeleteApplicationRequest = new DeleteApplicationRequest$Type();
|
|
2990
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2991
|
-
class AddClientRoleRequest$Type extends MessageType<AddClientRoleRequest> {
|
|
2992
|
-
constructor() {
|
|
2993
|
-
super("sid.v1.projects.AddClientRoleRequest", [
|
|
2994
|
-
{ no: 1, name: "application_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2995
|
-
{ no: 2, name: "settings", kind: "message", T: () => ClientRoleSettings }
|
|
2996
|
-
]);
|
|
2997
|
-
}
|
|
2998
|
-
create(value?: PartialMessage<AddClientRoleRequest>): AddClientRoleRequest {
|
|
2999
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3000
|
-
message.applicationId = "";
|
|
3001
|
-
if (value !== undefined)
|
|
3002
|
-
reflectionMergePartial<AddClientRoleRequest>(this, message, value);
|
|
3003
|
-
return message;
|
|
3004
|
-
}
|
|
3005
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddClientRoleRequest): AddClientRoleRequest {
|
|
3006
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3007
|
-
while (reader.pos < end) {
|
|
3008
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3009
|
-
switch (fieldNo) {
|
|
3010
|
-
case /* string application_id */ 1:
|
|
3011
|
-
message.applicationId = reader.string();
|
|
3012
|
-
break;
|
|
3013
|
-
case /* sid.v1.projects.ClientRoleSettings settings */ 2:
|
|
3014
|
-
message.settings = ClientRoleSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
3015
|
-
break;
|
|
3016
|
-
default:
|
|
3017
|
-
let u = options.readUnknownField;
|
|
3018
|
-
if (u === "throw")
|
|
3019
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3020
|
-
let d = reader.skip(wireType);
|
|
3021
|
-
if (u !== false)
|
|
3022
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3023
|
-
}
|
|
3024
|
-
}
|
|
3025
|
-
return message;
|
|
3026
|
-
}
|
|
3027
|
-
internalBinaryWrite(message: AddClientRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3028
|
-
/* string application_id = 1; */
|
|
3029
|
-
if (message.applicationId !== "")
|
|
3030
|
-
writer.tag(1, WireType.LengthDelimited).string(message.applicationId);
|
|
3031
|
-
/* sid.v1.projects.ClientRoleSettings settings = 2; */
|
|
3032
|
-
if (message.settings)
|
|
3033
|
-
ClientRoleSettings.internalBinaryWrite(message.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3034
|
-
let u = options.writeUnknownFields;
|
|
3035
|
-
if (u !== false)
|
|
3036
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3037
|
-
return writer;
|
|
3038
|
-
}
|
|
3039
|
-
}
|
|
3040
|
-
/**
|
|
3041
|
-
* @generated MessageType for protobuf message sid.v1.projects.AddClientRoleRequest
|
|
3042
|
-
*/
|
|
3043
|
-
export const AddClientRoleRequest = new AddClientRoleRequest$Type();
|
|
3044
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3045
|
-
class UpdateClientRoleRequest$Type extends MessageType<UpdateClientRoleRequest> {
|
|
3046
|
-
constructor() {
|
|
3047
|
-
super("sid.v1.projects.UpdateClientRoleRequest", [
|
|
3048
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3049
|
-
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3050
|
-
{ no: 3, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3051
|
-
{ no: 4, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3052
|
-
{ no: 5, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3053
|
-
{ no: 6, name: "active", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3054
|
-
{ no: 7, name: "subject_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3055
|
-
{ no: 8, name: "default_resource_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3056
|
-
{ no: 9, name: "post_logout_redirect_uris", kind: "message", T: () => UriList }
|
|
3057
|
-
]);
|
|
3058
|
-
}
|
|
3059
|
-
create(value?: PartialMessage<UpdateClientRoleRequest>): UpdateClientRoleRequest {
|
|
3060
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3061
|
-
message.clientId = "";
|
|
3062
|
-
message.redirectUris = [];
|
|
3063
|
-
message.allowedScopes = [];
|
|
3064
|
-
message.grantTypes = [];
|
|
3065
|
-
if (value !== undefined)
|
|
3066
|
-
reflectionMergePartial<UpdateClientRoleRequest>(this, message, value);
|
|
3067
|
-
return message;
|
|
3068
|
-
}
|
|
3069
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateClientRoleRequest): UpdateClientRoleRequest {
|
|
3070
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3071
|
-
while (reader.pos < end) {
|
|
3072
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3073
|
-
switch (fieldNo) {
|
|
3074
|
-
case /* string client_id */ 1:
|
|
3075
|
-
message.clientId = reader.string();
|
|
3076
|
-
break;
|
|
3077
|
-
case /* optional string name */ 2:
|
|
3078
|
-
message.name = reader.string();
|
|
3079
|
-
break;
|
|
3080
|
-
case /* repeated string redirect_uris */ 3:
|
|
3081
|
-
message.redirectUris.push(reader.string());
|
|
3082
|
-
break;
|
|
3083
|
-
case /* repeated string allowed_scopes */ 4:
|
|
3084
|
-
message.allowedScopes.push(reader.string());
|
|
3085
|
-
break;
|
|
3086
|
-
case /* repeated string grant_types */ 5:
|
|
3087
|
-
message.grantTypes.push(reader.string());
|
|
3088
|
-
break;
|
|
3089
|
-
case /* optional bool active */ 6:
|
|
3090
|
-
message.active = reader.bool();
|
|
3091
|
-
break;
|
|
3092
|
-
case /* optional string subject_type */ 7:
|
|
3093
|
-
message.subjectType = reader.string();
|
|
3094
|
-
break;
|
|
3095
|
-
case /* optional string default_resource_id */ 8:
|
|
3096
|
-
message.defaultResourceId = reader.string();
|
|
3097
|
-
break;
|
|
3098
|
-
case /* optional sid.v1.projects.UriList post_logout_redirect_uris */ 9:
|
|
3099
|
-
message.postLogoutRedirectUris = UriList.internalBinaryRead(reader, reader.uint32(), options, message.postLogoutRedirectUris);
|
|
3100
|
-
break;
|
|
3101
|
-
default:
|
|
3102
|
-
let u = options.readUnknownField;
|
|
3103
|
-
if (u === "throw")
|
|
3104
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3105
|
-
let d = reader.skip(wireType);
|
|
3106
|
-
if (u !== false)
|
|
3107
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3110
|
-
return message;
|
|
3111
|
-
}
|
|
3112
|
-
internalBinaryWrite(message: UpdateClientRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3113
|
-
/* string client_id = 1; */
|
|
3114
|
-
if (message.clientId !== "")
|
|
3115
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
3116
|
-
/* optional string name = 2; */
|
|
3117
|
-
if (message.name !== undefined)
|
|
3118
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
3119
|
-
/* repeated string redirect_uris = 3; */
|
|
3120
|
-
for (let i = 0; i < message.redirectUris.length; i++)
|
|
3121
|
-
writer.tag(3, WireType.LengthDelimited).string(message.redirectUris[i]);
|
|
3122
|
-
/* repeated string allowed_scopes = 4; */
|
|
3123
|
-
for (let i = 0; i < message.allowedScopes.length; i++)
|
|
3124
|
-
writer.tag(4, WireType.LengthDelimited).string(message.allowedScopes[i]);
|
|
3125
|
-
/* repeated string grant_types = 5; */
|
|
3126
|
-
for (let i = 0; i < message.grantTypes.length; i++)
|
|
3127
|
-
writer.tag(5, WireType.LengthDelimited).string(message.grantTypes[i]);
|
|
3128
|
-
/* optional bool active = 6; */
|
|
3129
|
-
if (message.active !== undefined)
|
|
3130
|
-
writer.tag(6, WireType.Varint).bool(message.active);
|
|
3131
|
-
/* optional string subject_type = 7; */
|
|
3132
|
-
if (message.subjectType !== undefined)
|
|
3133
|
-
writer.tag(7, WireType.LengthDelimited).string(message.subjectType);
|
|
3134
|
-
/* optional string default_resource_id = 8; */
|
|
3135
|
-
if (message.defaultResourceId !== undefined)
|
|
3136
|
-
writer.tag(8, WireType.LengthDelimited).string(message.defaultResourceId);
|
|
3137
|
-
/* optional sid.v1.projects.UriList post_logout_redirect_uris = 9; */
|
|
3138
|
-
if (message.postLogoutRedirectUris)
|
|
3139
|
-
UriList.internalBinaryWrite(message.postLogoutRedirectUris, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
3140
|
-
let u = options.writeUnknownFields;
|
|
3141
|
-
if (u !== false)
|
|
3142
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3143
|
-
return writer;
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
/**
|
|
3147
|
-
* @generated MessageType for protobuf message sid.v1.projects.UpdateClientRoleRequest
|
|
3148
|
-
*/
|
|
3149
|
-
export const UpdateClientRoleRequest = new UpdateClientRoleRequest$Type();
|
|
3150
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3151
|
-
class AddResourceRoleRequest$Type extends MessageType<AddResourceRoleRequest> {
|
|
3152
|
-
constructor() {
|
|
3153
|
-
super("sid.v1.projects.AddResourceRoleRequest", [
|
|
3154
|
-
{ no: 1, name: "application_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3155
|
-
{ no: 2, name: "settings", kind: "message", T: () => ResourceRoleSettings }
|
|
3156
|
-
]);
|
|
3157
|
-
}
|
|
3158
|
-
create(value?: PartialMessage<AddResourceRoleRequest>): AddResourceRoleRequest {
|
|
3159
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3160
|
-
message.applicationId = "";
|
|
3161
|
-
if (value !== undefined)
|
|
3162
|
-
reflectionMergePartial<AddResourceRoleRequest>(this, message, value);
|
|
3163
|
-
return message;
|
|
3164
|
-
}
|
|
3165
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddResourceRoleRequest): AddResourceRoleRequest {
|
|
3166
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3167
|
-
while (reader.pos < end) {
|
|
3168
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3169
|
-
switch (fieldNo) {
|
|
3170
|
-
case /* string application_id */ 1:
|
|
3171
|
-
message.applicationId = reader.string();
|
|
3172
|
-
break;
|
|
3173
|
-
case /* sid.v1.projects.ResourceRoleSettings settings */ 2:
|
|
3174
|
-
message.settings = ResourceRoleSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
3175
|
-
break;
|
|
3176
|
-
default:
|
|
3177
|
-
let u = options.readUnknownField;
|
|
3178
|
-
if (u === "throw")
|
|
3179
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3180
|
-
let d = reader.skip(wireType);
|
|
3181
|
-
if (u !== false)
|
|
3182
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3183
|
-
}
|
|
3184
|
-
}
|
|
3185
|
-
return message;
|
|
3186
|
-
}
|
|
3187
|
-
internalBinaryWrite(message: AddResourceRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3188
|
-
/* string application_id = 1; */
|
|
3189
|
-
if (message.applicationId !== "")
|
|
3190
|
-
writer.tag(1, WireType.LengthDelimited).string(message.applicationId);
|
|
3191
|
-
/* sid.v1.projects.ResourceRoleSettings settings = 2; */
|
|
3192
|
-
if (message.settings)
|
|
3193
|
-
ResourceRoleSettings.internalBinaryWrite(message.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3194
|
-
let u = options.writeUnknownFields;
|
|
3195
|
-
if (u !== false)
|
|
3196
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3197
|
-
return writer;
|
|
3198
|
-
}
|
|
3199
|
-
}
|
|
3200
|
-
/**
|
|
3201
|
-
* @generated MessageType for protobuf message sid.v1.projects.AddResourceRoleRequest
|
|
3202
|
-
*/
|
|
3203
|
-
export const AddResourceRoleRequest = new AddResourceRoleRequest$Type();
|
|
3204
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3205
|
-
class ScopeList$Type extends MessageType<ScopeList> {
|
|
3206
|
-
constructor() {
|
|
3207
|
-
super("sid.v1.projects.ScopeList", [
|
|
3208
|
-
{ no: 1, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3209
|
-
]);
|
|
3210
|
-
}
|
|
3211
|
-
create(value?: PartialMessage<ScopeList>): ScopeList {
|
|
3212
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3213
|
-
message.scopes = [];
|
|
3214
|
-
if (value !== undefined)
|
|
3215
|
-
reflectionMergePartial<ScopeList>(this, message, value);
|
|
3216
|
-
return message;
|
|
3217
|
-
}
|
|
3218
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ScopeList): ScopeList {
|
|
3219
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3220
|
-
while (reader.pos < end) {
|
|
3221
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3222
|
-
switch (fieldNo) {
|
|
3223
|
-
case /* repeated string scopes */ 1:
|
|
3224
|
-
message.scopes.push(reader.string());
|
|
3225
|
-
break;
|
|
3226
|
-
default:
|
|
3227
|
-
let u = options.readUnknownField;
|
|
3228
|
-
if (u === "throw")
|
|
3229
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3230
|
-
let d = reader.skip(wireType);
|
|
3231
|
-
if (u !== false)
|
|
3232
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3233
|
-
}
|
|
3234
|
-
}
|
|
3235
|
-
return message;
|
|
3236
|
-
}
|
|
3237
|
-
internalBinaryWrite(message: ScopeList, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3238
|
-
/* repeated string scopes = 1; */
|
|
3239
|
-
for (let i = 0; i < message.scopes.length; i++)
|
|
3240
|
-
writer.tag(1, WireType.LengthDelimited).string(message.scopes[i]);
|
|
3241
|
-
let u = options.writeUnknownFields;
|
|
3242
|
-
if (u !== false)
|
|
3243
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3244
|
-
return writer;
|
|
3245
|
-
}
|
|
3246
|
-
}
|
|
3247
|
-
/**
|
|
3248
|
-
* @generated MessageType for protobuf message sid.v1.projects.ScopeList
|
|
3249
|
-
*/
|
|
3250
|
-
export const ScopeList = new ScopeList$Type();
|
|
3251
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3252
|
-
class UpdateResourceRoleRequest$Type extends MessageType<UpdateResourceRoleRequest> {
|
|
3253
|
-
constructor() {
|
|
3254
|
-
super("sid.v1.projects.UpdateResourceRoleRequest", [
|
|
3255
|
-
{ no: 1, name: "resource_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3256
|
-
{ no: 2, name: "scopes", kind: "message", T: () => ScopeList },
|
|
3257
|
-
{ no: 3, name: "state", kind: "enum", opt: true, T: () => ["sid.v1.projects.ResourceState", ResourceState, "RESOURCE_STATE_"] }
|
|
3258
|
-
]);
|
|
3259
|
-
}
|
|
3260
|
-
create(value?: PartialMessage<UpdateResourceRoleRequest>): UpdateResourceRoleRequest {
|
|
3261
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3262
|
-
message.resourceId = "";
|
|
3263
|
-
if (value !== undefined)
|
|
3264
|
-
reflectionMergePartial<UpdateResourceRoleRequest>(this, message, value);
|
|
3265
|
-
return message;
|
|
3266
|
-
}
|
|
3267
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateResourceRoleRequest): UpdateResourceRoleRequest {
|
|
3268
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3269
|
-
while (reader.pos < end) {
|
|
3270
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3271
|
-
switch (fieldNo) {
|
|
3272
|
-
case /* string resource_id */ 1:
|
|
3273
|
-
message.resourceId = reader.string();
|
|
3274
|
-
break;
|
|
3275
|
-
case /* optional sid.v1.projects.ScopeList scopes */ 2:
|
|
3276
|
-
message.scopes = ScopeList.internalBinaryRead(reader, reader.uint32(), options, message.scopes);
|
|
3277
|
-
break;
|
|
3278
|
-
case /* optional sid.v1.projects.ResourceState state */ 3:
|
|
3279
|
-
message.state = reader.int32();
|
|
3280
|
-
break;
|
|
3281
|
-
default:
|
|
3282
|
-
let u = options.readUnknownField;
|
|
3283
|
-
if (u === "throw")
|
|
3284
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3285
|
-
let d = reader.skip(wireType);
|
|
3286
|
-
if (u !== false)
|
|
3287
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3288
|
-
}
|
|
3289
|
-
}
|
|
3290
|
-
return message;
|
|
3291
|
-
}
|
|
3292
|
-
internalBinaryWrite(message: UpdateResourceRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3293
|
-
/* string resource_id = 1; */
|
|
3294
|
-
if (message.resourceId !== "")
|
|
3295
|
-
writer.tag(1, WireType.LengthDelimited).string(message.resourceId);
|
|
3296
|
-
/* optional sid.v1.projects.ScopeList scopes = 2; */
|
|
3297
|
-
if (message.scopes)
|
|
3298
|
-
ScopeList.internalBinaryWrite(message.scopes, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3299
|
-
/* optional sid.v1.projects.ResourceState state = 3; */
|
|
3300
|
-
if (message.state !== undefined)
|
|
3301
|
-
writer.tag(3, WireType.Varint).int32(message.state);
|
|
3302
|
-
let u = options.writeUnknownFields;
|
|
3303
|
-
if (u !== false)
|
|
3304
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3305
|
-
return writer;
|
|
3306
|
-
}
|
|
3307
|
-
}
|
|
3308
|
-
/**
|
|
3309
|
-
* @generated MessageType for protobuf message sid.v1.projects.UpdateResourceRoleRequest
|
|
3310
|
-
*/
|
|
3311
|
-
export const UpdateResourceRoleRequest = new UpdateResourceRoleRequest$Type();
|
|
3312
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3313
|
-
class SetResourceAccessRequest$Type extends MessageType<SetResourceAccessRequest> {
|
|
3314
|
-
constructor() {
|
|
3315
|
-
super("sid.v1.projects.SetResourceAccessRequest", [
|
|
3316
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3317
|
-
{ no: 2, name: "resource_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3318
|
-
{ no: 3, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3319
|
-
]);
|
|
3320
|
-
}
|
|
3321
|
-
create(value?: PartialMessage<SetResourceAccessRequest>): SetResourceAccessRequest {
|
|
3322
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3323
|
-
message.clientId = "";
|
|
3324
|
-
message.resourceId = "";
|
|
3325
|
-
message.scopes = [];
|
|
3326
|
-
if (value !== undefined)
|
|
3327
|
-
reflectionMergePartial<SetResourceAccessRequest>(this, message, value);
|
|
3328
|
-
return message;
|
|
3329
|
-
}
|
|
3330
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetResourceAccessRequest): SetResourceAccessRequest {
|
|
3331
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3332
|
-
while (reader.pos < end) {
|
|
3333
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3334
|
-
switch (fieldNo) {
|
|
3335
|
-
case /* string client_id */ 1:
|
|
3336
|
-
message.clientId = reader.string();
|
|
3337
|
-
break;
|
|
3338
|
-
case /* string resource_id */ 2:
|
|
3339
|
-
message.resourceId = reader.string();
|
|
3340
|
-
break;
|
|
3341
|
-
case /* repeated string scopes */ 3:
|
|
3342
|
-
message.scopes.push(reader.string());
|
|
3343
|
-
break;
|
|
3344
|
-
default:
|
|
3345
|
-
let u = options.readUnknownField;
|
|
3346
|
-
if (u === "throw")
|
|
3347
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3348
|
-
let d = reader.skip(wireType);
|
|
3349
|
-
if (u !== false)
|
|
3350
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3351
|
-
}
|
|
3352
|
-
}
|
|
3353
|
-
return message;
|
|
3354
|
-
}
|
|
3355
|
-
internalBinaryWrite(message: SetResourceAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3356
|
-
/* string client_id = 1; */
|
|
3357
|
-
if (message.clientId !== "")
|
|
3358
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
3359
|
-
/* string resource_id = 2; */
|
|
3360
|
-
if (message.resourceId !== "")
|
|
3361
|
-
writer.tag(2, WireType.LengthDelimited).string(message.resourceId);
|
|
3362
|
-
/* repeated string scopes = 3; */
|
|
3363
|
-
for (let i = 0; i < message.scopes.length; i++)
|
|
3364
|
-
writer.tag(3, WireType.LengthDelimited).string(message.scopes[i]);
|
|
3365
|
-
let u = options.writeUnknownFields;
|
|
3366
|
-
if (u !== false)
|
|
3367
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3368
|
-
return writer;
|
|
3369
|
-
}
|
|
3370
|
-
}
|
|
3371
|
-
/**
|
|
3372
|
-
* @generated MessageType for protobuf message sid.v1.projects.SetResourceAccessRequest
|
|
3373
|
-
*/
|
|
3374
|
-
export const SetResourceAccessRequest = new SetResourceAccessRequest$Type();
|
|
3375
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3376
|
-
class RemoveResourceAccessRequest$Type extends MessageType<RemoveResourceAccessRequest> {
|
|
3377
|
-
constructor() {
|
|
3378
|
-
super("sid.v1.projects.RemoveResourceAccessRequest", [
|
|
3379
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3380
|
-
{ no: 2, name: "resource_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3381
|
-
]);
|
|
3382
|
-
}
|
|
3383
|
-
create(value?: PartialMessage<RemoveResourceAccessRequest>): RemoveResourceAccessRequest {
|
|
3384
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3385
|
-
message.clientId = "";
|
|
3386
|
-
message.resourceId = "";
|
|
3387
|
-
if (value !== undefined)
|
|
3388
|
-
reflectionMergePartial<RemoveResourceAccessRequest>(this, message, value);
|
|
3389
|
-
return message;
|
|
3390
|
-
}
|
|
3391
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveResourceAccessRequest): RemoveResourceAccessRequest {
|
|
3392
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3393
|
-
while (reader.pos < end) {
|
|
3394
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3395
|
-
switch (fieldNo) {
|
|
3396
|
-
case /* string client_id */ 1:
|
|
3397
|
-
message.clientId = reader.string();
|
|
3398
|
-
break;
|
|
3399
|
-
case /* string resource_id */ 2:
|
|
3400
|
-
message.resourceId = reader.string();
|
|
3401
|
-
break;
|
|
3402
|
-
default:
|
|
3403
|
-
let u = options.readUnknownField;
|
|
3404
|
-
if (u === "throw")
|
|
3405
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3406
|
-
let d = reader.skip(wireType);
|
|
3407
|
-
if (u !== false)
|
|
3408
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3409
|
-
}
|
|
3410
|
-
}
|
|
3411
|
-
return message;
|
|
3412
|
-
}
|
|
3413
|
-
internalBinaryWrite(message: RemoveResourceAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3414
|
-
/* string client_id = 1; */
|
|
3415
|
-
if (message.clientId !== "")
|
|
3416
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
3417
|
-
/* string resource_id = 2; */
|
|
3418
|
-
if (message.resourceId !== "")
|
|
3419
|
-
writer.tag(2, WireType.LengthDelimited).string(message.resourceId);
|
|
3420
|
-
let u = options.writeUnknownFields;
|
|
3421
|
-
if (u !== false)
|
|
3422
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3423
|
-
return writer;
|
|
3424
|
-
}
|
|
3425
|
-
}
|
|
3426
|
-
/**
|
|
3427
|
-
* @generated MessageType for protobuf message sid.v1.projects.RemoveResourceAccessRequest
|
|
3428
|
-
*/
|
|
3429
|
-
export const RemoveResourceAccessRequest = new RemoveResourceAccessRequest$Type();
|
|
3430
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3431
|
-
class ListResourceAccessRequest$Type extends MessageType<ListResourceAccessRequest> {
|
|
3432
|
-
constructor() {
|
|
3433
|
-
super("sid.v1.projects.ListResourceAccessRequest", [
|
|
3434
|
-
{ no: 1, name: "client_id", kind: "scalar", oneof: "subject", T: 9 /*ScalarType.STRING*/ },
|
|
3435
|
-
{ no: 2, name: "resource_id", kind: "scalar", oneof: "subject", T: 9 /*ScalarType.STRING*/ }
|
|
3436
|
-
]);
|
|
3437
|
-
}
|
|
3438
|
-
create(value?: PartialMessage<ListResourceAccessRequest>): ListResourceAccessRequest {
|
|
3439
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3440
|
-
message.subject = { oneofKind: undefined };
|
|
3441
|
-
if (value !== undefined)
|
|
3442
|
-
reflectionMergePartial<ListResourceAccessRequest>(this, message, value);
|
|
3443
|
-
return message;
|
|
3444
|
-
}
|
|
3445
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListResourceAccessRequest): ListResourceAccessRequest {
|
|
3446
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3447
|
-
while (reader.pos < end) {
|
|
3448
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3449
|
-
switch (fieldNo) {
|
|
3450
|
-
case /* string client_id */ 1:
|
|
3451
|
-
message.subject = {
|
|
3452
|
-
oneofKind: "clientId",
|
|
3453
|
-
clientId: reader.string()
|
|
3454
|
-
};
|
|
3455
|
-
break;
|
|
3456
|
-
case /* string resource_id */ 2:
|
|
3457
|
-
message.subject = {
|
|
3458
|
-
oneofKind: "resourceId",
|
|
3459
|
-
resourceId: reader.string()
|
|
3460
|
-
};
|
|
3461
|
-
break;
|
|
3462
|
-
default:
|
|
3463
|
-
let u = options.readUnknownField;
|
|
3464
|
-
if (u === "throw")
|
|
3465
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3466
|
-
let d = reader.skip(wireType);
|
|
3467
|
-
if (u !== false)
|
|
3468
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3469
|
-
}
|
|
3470
|
-
}
|
|
3471
|
-
return message;
|
|
3472
|
-
}
|
|
3473
|
-
internalBinaryWrite(message: ListResourceAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3474
|
-
/* string client_id = 1; */
|
|
3475
|
-
if (message.subject.oneofKind === "clientId")
|
|
3476
|
-
writer.tag(1, WireType.LengthDelimited).string(message.subject.clientId);
|
|
3477
|
-
/* string resource_id = 2; */
|
|
3478
|
-
if (message.subject.oneofKind === "resourceId")
|
|
3479
|
-
writer.tag(2, WireType.LengthDelimited).string(message.subject.resourceId);
|
|
3480
|
-
let u = options.writeUnknownFields;
|
|
3481
|
-
if (u !== false)
|
|
3482
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3483
|
-
return writer;
|
|
3484
|
-
}
|
|
3485
|
-
}
|
|
3486
|
-
/**
|
|
3487
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListResourceAccessRequest
|
|
3488
|
-
*/
|
|
3489
|
-
export const ListResourceAccessRequest = new ListResourceAccessRequest$Type();
|
|
3490
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3491
|
-
class ListResourceAccessResponse$Type extends MessageType<ListResourceAccessResponse> {
|
|
3492
|
-
constructor() {
|
|
3493
|
-
super("sid.v1.projects.ListResourceAccessResponse", [
|
|
3494
|
-
{ no: 1, name: "access", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ResourceAccess }
|
|
3495
|
-
]);
|
|
3496
|
-
}
|
|
3497
|
-
create(value?: PartialMessage<ListResourceAccessResponse>): ListResourceAccessResponse {
|
|
3498
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3499
|
-
message.access = [];
|
|
3500
|
-
if (value !== undefined)
|
|
3501
|
-
reflectionMergePartial<ListResourceAccessResponse>(this, message, value);
|
|
3502
|
-
return message;
|
|
3503
|
-
}
|
|
3504
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListResourceAccessResponse): ListResourceAccessResponse {
|
|
3505
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3506
|
-
while (reader.pos < end) {
|
|
3507
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3508
|
-
switch (fieldNo) {
|
|
3509
|
-
case /* repeated sid.v1.projects.ResourceAccess access */ 1:
|
|
3510
|
-
message.access.push(ResourceAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
3511
|
-
break;
|
|
3512
|
-
default:
|
|
3513
|
-
let u = options.readUnknownField;
|
|
3514
|
-
if (u === "throw")
|
|
3515
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3516
|
-
let d = reader.skip(wireType);
|
|
3517
|
-
if (u !== false)
|
|
3518
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3519
|
-
}
|
|
3520
|
-
}
|
|
3521
|
-
return message;
|
|
3522
|
-
}
|
|
3523
|
-
internalBinaryWrite(message: ListResourceAccessResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3524
|
-
/* repeated sid.v1.projects.ResourceAccess access = 1; */
|
|
3525
|
-
for (let i = 0; i < message.access.length; i++)
|
|
3526
|
-
ResourceAccess.internalBinaryWrite(message.access[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3527
|
-
let u = options.writeUnknownFields;
|
|
3528
|
-
if (u !== false)
|
|
3529
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3530
|
-
return writer;
|
|
3531
|
-
}
|
|
3532
|
-
}
|
|
3533
|
-
/**
|
|
3534
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListResourceAccessResponse
|
|
3535
|
-
*/
|
|
3536
|
-
export const ListResourceAccessResponse = new ListResourceAccessResponse$Type();
|
|
3537
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3538
|
-
class AddRoleRequest$Type extends MessageType<AddRoleRequest> {
|
|
3539
|
-
constructor() {
|
|
3540
|
-
super("sid.v1.projects.AddRoleRequest", [
|
|
3541
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3542
|
-
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3543
|
-
{ no: 3, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3544
|
-
{ no: 4, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3545
|
-
{ no: 5, name: "group", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3546
|
-
{ no: 6, name: "permissions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3547
|
-
]);
|
|
3548
|
-
}
|
|
3549
|
-
create(value?: PartialMessage<AddRoleRequest>): AddRoleRequest {
|
|
3550
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3551
|
-
message.projectId = "";
|
|
3552
|
-
message.key = "";
|
|
3553
|
-
message.displayName = "";
|
|
3554
|
-
message.permissions = [];
|
|
3555
|
-
if (value !== undefined)
|
|
3556
|
-
reflectionMergePartial<AddRoleRequest>(this, message, value);
|
|
3557
|
-
return message;
|
|
3558
|
-
}
|
|
3559
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddRoleRequest): AddRoleRequest {
|
|
3560
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3561
|
-
while (reader.pos < end) {
|
|
3562
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3563
|
-
switch (fieldNo) {
|
|
3564
|
-
case /* string project_id */ 1:
|
|
3565
|
-
message.projectId = reader.string();
|
|
3566
|
-
break;
|
|
3567
|
-
case /* string key */ 2:
|
|
3568
|
-
message.key = reader.string();
|
|
3569
|
-
break;
|
|
3570
|
-
case /* string display_name */ 3:
|
|
3571
|
-
message.displayName = reader.string();
|
|
3572
|
-
break;
|
|
3573
|
-
case /* optional string description */ 4:
|
|
3574
|
-
message.description = reader.string();
|
|
3575
|
-
break;
|
|
3576
|
-
case /* optional string group */ 5:
|
|
3577
|
-
message.group = reader.string();
|
|
3578
|
-
break;
|
|
3579
|
-
case /* repeated string permissions */ 6:
|
|
3580
|
-
message.permissions.push(reader.string());
|
|
3581
|
-
break;
|
|
3582
|
-
default:
|
|
3583
|
-
let u = options.readUnknownField;
|
|
3584
|
-
if (u === "throw")
|
|
3585
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3586
|
-
let d = reader.skip(wireType);
|
|
3587
|
-
if (u !== false)
|
|
3588
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3589
|
-
}
|
|
3590
|
-
}
|
|
3591
|
-
return message;
|
|
3592
|
-
}
|
|
3593
|
-
internalBinaryWrite(message: AddRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3594
|
-
/* string project_id = 1; */
|
|
3595
|
-
if (message.projectId !== "")
|
|
3596
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
3597
|
-
/* string key = 2; */
|
|
3598
|
-
if (message.key !== "")
|
|
3599
|
-
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
3600
|
-
/* string display_name = 3; */
|
|
3601
|
-
if (message.displayName !== "")
|
|
3602
|
-
writer.tag(3, WireType.LengthDelimited).string(message.displayName);
|
|
3603
|
-
/* optional string description = 4; */
|
|
3604
|
-
if (message.description !== undefined)
|
|
3605
|
-
writer.tag(4, WireType.LengthDelimited).string(message.description);
|
|
3606
|
-
/* optional string group = 5; */
|
|
3607
|
-
if (message.group !== undefined)
|
|
3608
|
-
writer.tag(5, WireType.LengthDelimited).string(message.group);
|
|
3609
|
-
/* repeated string permissions = 6; */
|
|
3610
|
-
for (let i = 0; i < message.permissions.length; i++)
|
|
3611
|
-
writer.tag(6, WireType.LengthDelimited).string(message.permissions[i]);
|
|
3612
|
-
let u = options.writeUnknownFields;
|
|
3613
|
-
if (u !== false)
|
|
3614
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3615
|
-
return writer;
|
|
3616
|
-
}
|
|
3617
|
-
}
|
|
3618
|
-
/**
|
|
3619
|
-
* @generated MessageType for protobuf message sid.v1.projects.AddRoleRequest
|
|
3620
|
-
*/
|
|
3621
|
-
export const AddRoleRequest = new AddRoleRequest$Type();
|
|
3622
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3623
|
-
class RemoveRoleRequest$Type extends MessageType<RemoveRoleRequest> {
|
|
3624
|
-
constructor() {
|
|
3625
|
-
super("sid.v1.projects.RemoveRoleRequest", [
|
|
3626
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3627
|
-
{ no: 2, name: "role_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3628
|
-
]);
|
|
3629
|
-
}
|
|
3630
|
-
create(value?: PartialMessage<RemoveRoleRequest>): RemoveRoleRequest {
|
|
3631
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3632
|
-
message.projectId = "";
|
|
3633
|
-
message.roleId = "";
|
|
3634
|
-
if (value !== undefined)
|
|
3635
|
-
reflectionMergePartial<RemoveRoleRequest>(this, message, value);
|
|
3636
|
-
return message;
|
|
3637
|
-
}
|
|
3638
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveRoleRequest): RemoveRoleRequest {
|
|
3639
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3640
|
-
while (reader.pos < end) {
|
|
3641
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3642
|
-
switch (fieldNo) {
|
|
3643
|
-
case /* string project_id */ 1:
|
|
3644
|
-
message.projectId = reader.string();
|
|
3645
|
-
break;
|
|
3646
|
-
case /* string role_id */ 2:
|
|
3647
|
-
message.roleId = reader.string();
|
|
3648
|
-
break;
|
|
3649
|
-
default:
|
|
3650
|
-
let u = options.readUnknownField;
|
|
3651
|
-
if (u === "throw")
|
|
3652
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3653
|
-
let d = reader.skip(wireType);
|
|
3654
|
-
if (u !== false)
|
|
3655
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3656
|
-
}
|
|
3657
|
-
}
|
|
3658
|
-
return message;
|
|
3659
|
-
}
|
|
3660
|
-
internalBinaryWrite(message: RemoveRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3661
|
-
/* string project_id = 1; */
|
|
3662
|
-
if (message.projectId !== "")
|
|
3663
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
3664
|
-
/* string role_id = 2; */
|
|
3665
|
-
if (message.roleId !== "")
|
|
3666
|
-
writer.tag(2, WireType.LengthDelimited).string(message.roleId);
|
|
3667
|
-
let u = options.writeUnknownFields;
|
|
3668
|
-
if (u !== false)
|
|
3669
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3670
|
-
return writer;
|
|
3671
|
-
}
|
|
3672
|
-
}
|
|
3673
|
-
/**
|
|
3674
|
-
* @generated MessageType for protobuf message sid.v1.projects.RemoveRoleRequest
|
|
3675
|
-
*/
|
|
3676
|
-
export const RemoveRoleRequest = new RemoveRoleRequest$Type();
|
|
3677
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3678
|
-
class RegisterClientRequest$Type extends MessageType<RegisterClientRequest> {
|
|
3679
|
-
constructor() {
|
|
3680
|
-
super("sid.v1.projects.RegisterClientRequest", [
|
|
3681
|
-
{ no: 1, name: "client_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3682
|
-
{ no: 2, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3683
|
-
{ no: 3, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3684
|
-
{ no: 4, name: "response_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3685
|
-
{ no: 5, name: "token_endpoint_auth_method", kind: "enum", T: () => ["sid.v1.projects.TokenEndpointAuthMethod", TokenEndpointAuthMethod, "TOKEN_ENDPOINT_AUTH_METHOD_"] },
|
|
3686
|
-
{ no: 6, name: "application_type", kind: "enum", T: () => ["sid.v1.projects.ApplicationType", ApplicationType, "APPLICATION_TYPE_"] },
|
|
3687
|
-
{ no: 7, name: "subject_type", kind: "enum", T: () => ["sid.v1.projects.SubjectType", SubjectType, "SUBJECT_TYPE_"] },
|
|
3688
|
-
{ no: 8, name: "sector_identifier_uri", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3689
|
-
{ no: 9, name: "contacts", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3690
|
-
{ no: 10, name: "scope", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3691
|
-
{ no: 11, name: "issuer_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3692
|
-
{ no: 12, name: "jwks", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3693
|
-
{ no: 13, name: "post_logout_redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3694
|
-
]);
|
|
3695
|
-
}
|
|
3696
|
-
create(value?: PartialMessage<RegisterClientRequest>): RegisterClientRequest {
|
|
3697
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3698
|
-
message.clientName = "";
|
|
3699
|
-
message.redirectUris = [];
|
|
3700
|
-
message.grantTypes = [];
|
|
3701
|
-
message.responseTypes = [];
|
|
3702
|
-
message.tokenEndpointAuthMethod = 0;
|
|
3703
|
-
message.applicationType = 0;
|
|
3704
|
-
message.subjectType = 0;
|
|
3705
|
-
message.contacts = [];
|
|
3706
|
-
message.scope = [];
|
|
3707
|
-
message.issuerHandle = "";
|
|
3708
|
-
message.postLogoutRedirectUris = [];
|
|
3709
|
-
if (value !== undefined)
|
|
3710
|
-
reflectionMergePartial<RegisterClientRequest>(this, message, value);
|
|
3711
|
-
return message;
|
|
3712
|
-
}
|
|
3713
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterClientRequest): RegisterClientRequest {
|
|
3714
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3715
|
-
while (reader.pos < end) {
|
|
3716
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3717
|
-
switch (fieldNo) {
|
|
3718
|
-
case /* string client_name */ 1:
|
|
3719
|
-
message.clientName = reader.string();
|
|
3720
|
-
break;
|
|
3721
|
-
case /* repeated string redirect_uris */ 2:
|
|
3722
|
-
message.redirectUris.push(reader.string());
|
|
3723
|
-
break;
|
|
3724
|
-
case /* repeated string grant_types */ 3:
|
|
3725
|
-
message.grantTypes.push(reader.string());
|
|
3726
|
-
break;
|
|
3727
|
-
case /* repeated string response_types */ 4:
|
|
3728
|
-
message.responseTypes.push(reader.string());
|
|
3729
|
-
break;
|
|
3730
|
-
case /* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method */ 5:
|
|
3731
|
-
message.tokenEndpointAuthMethod = reader.int32();
|
|
3732
|
-
break;
|
|
3733
|
-
case /* sid.v1.projects.ApplicationType application_type */ 6:
|
|
3734
|
-
message.applicationType = reader.int32();
|
|
3735
|
-
break;
|
|
3736
|
-
case /* sid.v1.projects.SubjectType subject_type */ 7:
|
|
3737
|
-
message.subjectType = reader.int32();
|
|
3738
|
-
break;
|
|
3739
|
-
case /* optional string sector_identifier_uri */ 8:
|
|
3740
|
-
message.sectorIdentifierUri = reader.string();
|
|
3741
|
-
break;
|
|
3742
|
-
case /* repeated string contacts */ 9:
|
|
3743
|
-
message.contacts.push(reader.string());
|
|
3744
|
-
break;
|
|
3745
|
-
case /* repeated string scope */ 10:
|
|
3746
|
-
message.scope.push(reader.string());
|
|
3747
|
-
break;
|
|
3748
|
-
case /* string issuer_handle */ 11:
|
|
3749
|
-
message.issuerHandle = reader.string();
|
|
3750
|
-
break;
|
|
3751
|
-
case /* optional string jwks */ 12:
|
|
3752
|
-
message.jwks = reader.string();
|
|
3753
|
-
break;
|
|
3754
|
-
case /* repeated string post_logout_redirect_uris */ 13:
|
|
3755
|
-
message.postLogoutRedirectUris.push(reader.string());
|
|
3756
|
-
break;
|
|
3757
|
-
default:
|
|
3758
|
-
let u = options.readUnknownField;
|
|
3759
|
-
if (u === "throw")
|
|
3760
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3761
|
-
let d = reader.skip(wireType);
|
|
3762
|
-
if (u !== false)
|
|
3763
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3764
|
-
}
|
|
3765
|
-
}
|
|
3766
|
-
return message;
|
|
3767
|
-
}
|
|
3768
|
-
internalBinaryWrite(message: RegisterClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3769
|
-
/* string client_name = 1; */
|
|
3770
|
-
if (message.clientName !== "")
|
|
3771
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientName);
|
|
3772
|
-
/* repeated string redirect_uris = 2; */
|
|
3773
|
-
for (let i = 0; i < message.redirectUris.length; i++)
|
|
3774
|
-
writer.tag(2, WireType.LengthDelimited).string(message.redirectUris[i]);
|
|
3775
|
-
/* repeated string grant_types = 3; */
|
|
3776
|
-
for (let i = 0; i < message.grantTypes.length; i++)
|
|
3777
|
-
writer.tag(3, WireType.LengthDelimited).string(message.grantTypes[i]);
|
|
3778
|
-
/* repeated string response_types = 4; */
|
|
3779
|
-
for (let i = 0; i < message.responseTypes.length; i++)
|
|
3780
|
-
writer.tag(4, WireType.LengthDelimited).string(message.responseTypes[i]);
|
|
3781
|
-
/* sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 5; */
|
|
3782
|
-
if (message.tokenEndpointAuthMethod !== 0)
|
|
3783
|
-
writer.tag(5, WireType.Varint).int32(message.tokenEndpointAuthMethod);
|
|
3784
|
-
/* sid.v1.projects.ApplicationType application_type = 6; */
|
|
3785
|
-
if (message.applicationType !== 0)
|
|
3786
|
-
writer.tag(6, WireType.Varint).int32(message.applicationType);
|
|
3787
|
-
/* sid.v1.projects.SubjectType subject_type = 7; */
|
|
3788
|
-
if (message.subjectType !== 0)
|
|
3789
|
-
writer.tag(7, WireType.Varint).int32(message.subjectType);
|
|
3790
|
-
/* optional string sector_identifier_uri = 8; */
|
|
3791
|
-
if (message.sectorIdentifierUri !== undefined)
|
|
3792
|
-
writer.tag(8, WireType.LengthDelimited).string(message.sectorIdentifierUri);
|
|
3793
|
-
/* repeated string contacts = 9; */
|
|
3794
|
-
for (let i = 0; i < message.contacts.length; i++)
|
|
3795
|
-
writer.tag(9, WireType.LengthDelimited).string(message.contacts[i]);
|
|
3796
|
-
/* repeated string scope = 10; */
|
|
3797
|
-
for (let i = 0; i < message.scope.length; i++)
|
|
3798
|
-
writer.tag(10, WireType.LengthDelimited).string(message.scope[i]);
|
|
3799
|
-
/* string issuer_handle = 11; */
|
|
3800
|
-
if (message.issuerHandle !== "")
|
|
3801
|
-
writer.tag(11, WireType.LengthDelimited).string(message.issuerHandle);
|
|
3802
|
-
/* optional string jwks = 12; */
|
|
3803
|
-
if (message.jwks !== undefined)
|
|
3804
|
-
writer.tag(12, WireType.LengthDelimited).string(message.jwks);
|
|
3805
|
-
/* repeated string post_logout_redirect_uris = 13; */
|
|
3806
|
-
for (let i = 0; i < message.postLogoutRedirectUris.length; i++)
|
|
3807
|
-
writer.tag(13, WireType.LengthDelimited).string(message.postLogoutRedirectUris[i]);
|
|
3808
|
-
let u = options.writeUnknownFields;
|
|
3809
|
-
if (u !== false)
|
|
3810
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3811
|
-
return writer;
|
|
3812
|
-
}
|
|
3813
|
-
}
|
|
3814
|
-
/**
|
|
3815
|
-
* @generated MessageType for protobuf message sid.v1.projects.RegisterClientRequest
|
|
3816
|
-
*/
|
|
3817
|
-
export const RegisterClientRequest = new RegisterClientRequest$Type();
|
|
3818
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3819
|
-
class RegisterClientResponse$Type extends MessageType<RegisterClientResponse> {
|
|
3820
|
-
constructor() {
|
|
3821
|
-
super("sid.v1.projects.RegisterClientResponse", [
|
|
3822
|
-
{ no: 1, name: "client", kind: "message", T: () => OAuthClient },
|
|
3823
|
-
{ no: 2, name: "client_secret", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3824
|
-
{ no: 3, name: "registration_access_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3825
|
-
]);
|
|
3826
|
-
}
|
|
3827
|
-
create(value?: PartialMessage<RegisterClientResponse>): RegisterClientResponse {
|
|
3828
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3829
|
-
message.registrationAccessToken = "";
|
|
3830
|
-
if (value !== undefined)
|
|
3831
|
-
reflectionMergePartial<RegisterClientResponse>(this, message, value);
|
|
3832
|
-
return message;
|
|
3833
|
-
}
|
|
3834
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterClientResponse): RegisterClientResponse {
|
|
3835
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3836
|
-
while (reader.pos < end) {
|
|
3837
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3838
|
-
switch (fieldNo) {
|
|
3839
|
-
case /* sid.v1.projects.OAuthClient client */ 1:
|
|
3840
|
-
message.client = OAuthClient.internalBinaryRead(reader, reader.uint32(), options, message.client);
|
|
3841
|
-
break;
|
|
3842
|
-
case /* optional string client_secret */ 2:
|
|
3843
|
-
message.clientSecret = reader.string();
|
|
3844
|
-
break;
|
|
3845
|
-
case /* string registration_access_token */ 3:
|
|
3846
|
-
message.registrationAccessToken = reader.string();
|
|
3847
|
-
break;
|
|
3848
|
-
default:
|
|
3849
|
-
let u = options.readUnknownField;
|
|
3850
|
-
if (u === "throw")
|
|
3851
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3852
|
-
let d = reader.skip(wireType);
|
|
3853
|
-
if (u !== false)
|
|
3854
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3855
|
-
}
|
|
3856
|
-
}
|
|
3857
|
-
return message;
|
|
3858
|
-
}
|
|
3859
|
-
internalBinaryWrite(message: RegisterClientResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3860
|
-
/* sid.v1.projects.OAuthClient client = 1; */
|
|
3861
|
-
if (message.client)
|
|
3862
|
-
OAuthClient.internalBinaryWrite(message.client, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3863
|
-
/* optional string client_secret = 2; */
|
|
3864
|
-
if (message.clientSecret !== undefined)
|
|
3865
|
-
writer.tag(2, WireType.LengthDelimited).string(message.clientSecret);
|
|
3866
|
-
/* string registration_access_token = 3; */
|
|
3867
|
-
if (message.registrationAccessToken !== "")
|
|
3868
|
-
writer.tag(3, WireType.LengthDelimited).string(message.registrationAccessToken);
|
|
3869
|
-
let u = options.writeUnknownFields;
|
|
3870
|
-
if (u !== false)
|
|
3871
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3872
|
-
return writer;
|
|
3873
|
-
}
|
|
3874
|
-
}
|
|
3875
|
-
/**
|
|
3876
|
-
* @generated MessageType for protobuf message sid.v1.projects.RegisterClientResponse
|
|
3877
|
-
*/
|
|
3878
|
-
export const RegisterClientResponse = new RegisterClientResponse$Type();
|
|
3879
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3880
|
-
class GetRegisteredClientRequest$Type extends MessageType<GetRegisteredClientRequest> {
|
|
3881
|
-
constructor() {
|
|
3882
|
-
super("sid.v1.projects.GetRegisteredClientRequest", [
|
|
3883
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3884
|
-
{ no: 2, name: "issuer_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3885
|
-
]);
|
|
3886
|
-
}
|
|
3887
|
-
create(value?: PartialMessage<GetRegisteredClientRequest>): GetRegisteredClientRequest {
|
|
3888
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3889
|
-
message.clientId = "";
|
|
3890
|
-
message.issuerHandle = "";
|
|
3891
|
-
if (value !== undefined)
|
|
3892
|
-
reflectionMergePartial<GetRegisteredClientRequest>(this, message, value);
|
|
3893
|
-
return message;
|
|
3894
|
-
}
|
|
3895
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetRegisteredClientRequest): GetRegisteredClientRequest {
|
|
3896
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3897
|
-
while (reader.pos < end) {
|
|
3898
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3899
|
-
switch (fieldNo) {
|
|
3900
|
-
case /* string client_id */ 1:
|
|
3901
|
-
message.clientId = reader.string();
|
|
3902
|
-
break;
|
|
3903
|
-
case /* string issuer_handle */ 2:
|
|
3904
|
-
message.issuerHandle = reader.string();
|
|
3905
|
-
break;
|
|
3906
|
-
default:
|
|
3907
|
-
let u = options.readUnknownField;
|
|
3908
|
-
if (u === "throw")
|
|
3909
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3910
|
-
let d = reader.skip(wireType);
|
|
3911
|
-
if (u !== false)
|
|
3912
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3913
|
-
}
|
|
3914
|
-
}
|
|
3915
|
-
return message;
|
|
3916
|
-
}
|
|
3917
|
-
internalBinaryWrite(message: GetRegisteredClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3918
|
-
/* string client_id = 1; */
|
|
3919
|
-
if (message.clientId !== "")
|
|
3920
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
3921
|
-
/* string issuer_handle = 2; */
|
|
3922
|
-
if (message.issuerHandle !== "")
|
|
3923
|
-
writer.tag(2, WireType.LengthDelimited).string(message.issuerHandle);
|
|
3924
|
-
let u = options.writeUnknownFields;
|
|
3925
|
-
if (u !== false)
|
|
3926
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3927
|
-
return writer;
|
|
3928
|
-
}
|
|
3929
|
-
}
|
|
3930
|
-
/**
|
|
3931
|
-
* @generated MessageType for protobuf message sid.v1.projects.GetRegisteredClientRequest
|
|
3932
|
-
*/
|
|
3933
|
-
export const GetRegisteredClientRequest = new GetRegisteredClientRequest$Type();
|
|
3934
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3935
|
-
class UpdateRegisteredClientRequest$Type extends MessageType<UpdateRegisteredClientRequest> {
|
|
3936
|
-
constructor() {
|
|
3937
|
-
super("sid.v1.projects.UpdateRegisteredClientRequest", [
|
|
3938
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3939
|
-
{ no: 2, name: "client_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3940
|
-
{ no: 3, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3941
|
-
{ no: 4, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3942
|
-
{ no: 5, name: "response_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3943
|
-
{ no: 6, name: "token_endpoint_auth_method", kind: "enum", opt: true, T: () => ["sid.v1.projects.TokenEndpointAuthMethod", TokenEndpointAuthMethod, "TOKEN_ENDPOINT_AUTH_METHOD_"] },
|
|
3944
|
-
{ no: 7, name: "subject_type", kind: "enum", opt: true, T: () => ["sid.v1.projects.SubjectType", SubjectType, "SUBJECT_TYPE_"] },
|
|
3945
|
-
{ no: 8, name: "sector_identifier_uri", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3946
|
-
{ no: 9, name: "contacts", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3947
|
-
{ no: 10, name: "scope", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3948
|
-
{ no: 11, name: "issuer_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3949
|
-
{ no: 12, name: "client_secret", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3950
|
-
{ no: 13, name: "jwks", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3951
|
-
{ no: 14, name: "post_logout_redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3952
|
-
]);
|
|
3953
|
-
}
|
|
3954
|
-
create(value?: PartialMessage<UpdateRegisteredClientRequest>): UpdateRegisteredClientRequest {
|
|
3955
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3956
|
-
message.clientId = "";
|
|
3957
|
-
message.redirectUris = [];
|
|
3958
|
-
message.grantTypes = [];
|
|
3959
|
-
message.responseTypes = [];
|
|
3960
|
-
message.contacts = [];
|
|
3961
|
-
message.scope = [];
|
|
3962
|
-
message.issuerHandle = "";
|
|
3963
|
-
message.postLogoutRedirectUris = [];
|
|
3964
|
-
if (value !== undefined)
|
|
3965
|
-
reflectionMergePartial<UpdateRegisteredClientRequest>(this, message, value);
|
|
3966
|
-
return message;
|
|
3967
|
-
}
|
|
3968
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateRegisteredClientRequest): UpdateRegisteredClientRequest {
|
|
3969
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3970
|
-
while (reader.pos < end) {
|
|
3971
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3972
|
-
switch (fieldNo) {
|
|
3973
|
-
case /* string client_id */ 1:
|
|
3974
|
-
message.clientId = reader.string();
|
|
3975
|
-
break;
|
|
3976
|
-
case /* optional string client_name */ 2:
|
|
3977
|
-
message.clientName = reader.string();
|
|
3978
|
-
break;
|
|
3979
|
-
case /* repeated string redirect_uris */ 3:
|
|
3980
|
-
message.redirectUris.push(reader.string());
|
|
3981
|
-
break;
|
|
3982
|
-
case /* repeated string grant_types */ 4:
|
|
3983
|
-
message.grantTypes.push(reader.string());
|
|
3984
|
-
break;
|
|
3985
|
-
case /* repeated string response_types */ 5:
|
|
3986
|
-
message.responseTypes.push(reader.string());
|
|
3987
|
-
break;
|
|
3988
|
-
case /* optional sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method */ 6:
|
|
3989
|
-
message.tokenEndpointAuthMethod = reader.int32();
|
|
3990
|
-
break;
|
|
3991
|
-
case /* optional sid.v1.projects.SubjectType subject_type */ 7:
|
|
3992
|
-
message.subjectType = reader.int32();
|
|
3993
|
-
break;
|
|
3994
|
-
case /* optional string sector_identifier_uri */ 8:
|
|
3995
|
-
message.sectorIdentifierUri = reader.string();
|
|
3996
|
-
break;
|
|
3997
|
-
case /* repeated string contacts */ 9:
|
|
3998
|
-
message.contacts.push(reader.string());
|
|
3999
|
-
break;
|
|
4000
|
-
case /* repeated string scope */ 10:
|
|
4001
|
-
message.scope.push(reader.string());
|
|
4002
|
-
break;
|
|
4003
|
-
case /* string issuer_handle */ 11:
|
|
4004
|
-
message.issuerHandle = reader.string();
|
|
4005
|
-
break;
|
|
4006
|
-
case /* optional string client_secret */ 12:
|
|
4007
|
-
message.clientSecret = reader.string();
|
|
4008
|
-
break;
|
|
4009
|
-
case /* optional string jwks */ 13:
|
|
4010
|
-
message.jwks = reader.string();
|
|
4011
|
-
break;
|
|
4012
|
-
case /* repeated string post_logout_redirect_uris */ 14:
|
|
4013
|
-
message.postLogoutRedirectUris.push(reader.string());
|
|
4014
|
-
break;
|
|
4015
|
-
default:
|
|
4016
|
-
let u = options.readUnknownField;
|
|
4017
|
-
if (u === "throw")
|
|
4018
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4019
|
-
let d = reader.skip(wireType);
|
|
4020
|
-
if (u !== false)
|
|
4021
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
return message;
|
|
4025
|
-
}
|
|
4026
|
-
internalBinaryWrite(message: UpdateRegisteredClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4027
|
-
/* string client_id = 1; */
|
|
4028
|
-
if (message.clientId !== "")
|
|
4029
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
4030
|
-
/* optional string client_name = 2; */
|
|
4031
|
-
if (message.clientName !== undefined)
|
|
4032
|
-
writer.tag(2, WireType.LengthDelimited).string(message.clientName);
|
|
4033
|
-
/* repeated string redirect_uris = 3; */
|
|
4034
|
-
for (let i = 0; i < message.redirectUris.length; i++)
|
|
4035
|
-
writer.tag(3, WireType.LengthDelimited).string(message.redirectUris[i]);
|
|
4036
|
-
/* repeated string grant_types = 4; */
|
|
4037
|
-
for (let i = 0; i < message.grantTypes.length; i++)
|
|
4038
|
-
writer.tag(4, WireType.LengthDelimited).string(message.grantTypes[i]);
|
|
4039
|
-
/* repeated string response_types = 5; */
|
|
4040
|
-
for (let i = 0; i < message.responseTypes.length; i++)
|
|
4041
|
-
writer.tag(5, WireType.LengthDelimited).string(message.responseTypes[i]);
|
|
4042
|
-
/* optional sid.v1.projects.TokenEndpointAuthMethod token_endpoint_auth_method = 6; */
|
|
4043
|
-
if (message.tokenEndpointAuthMethod !== undefined)
|
|
4044
|
-
writer.tag(6, WireType.Varint).int32(message.tokenEndpointAuthMethod);
|
|
4045
|
-
/* optional sid.v1.projects.SubjectType subject_type = 7; */
|
|
4046
|
-
if (message.subjectType !== undefined)
|
|
4047
|
-
writer.tag(7, WireType.Varint).int32(message.subjectType);
|
|
4048
|
-
/* optional string sector_identifier_uri = 8; */
|
|
4049
|
-
if (message.sectorIdentifierUri !== undefined)
|
|
4050
|
-
writer.tag(8, WireType.LengthDelimited).string(message.sectorIdentifierUri);
|
|
4051
|
-
/* repeated string contacts = 9; */
|
|
4052
|
-
for (let i = 0; i < message.contacts.length; i++)
|
|
4053
|
-
writer.tag(9, WireType.LengthDelimited).string(message.contacts[i]);
|
|
4054
|
-
/* repeated string scope = 10; */
|
|
4055
|
-
for (let i = 0; i < message.scope.length; i++)
|
|
4056
|
-
writer.tag(10, WireType.LengthDelimited).string(message.scope[i]);
|
|
4057
|
-
/* string issuer_handle = 11; */
|
|
4058
|
-
if (message.issuerHandle !== "")
|
|
4059
|
-
writer.tag(11, WireType.LengthDelimited).string(message.issuerHandle);
|
|
4060
|
-
/* optional string client_secret = 12; */
|
|
4061
|
-
if (message.clientSecret !== undefined)
|
|
4062
|
-
writer.tag(12, WireType.LengthDelimited).string(message.clientSecret);
|
|
4063
|
-
/* optional string jwks = 13; */
|
|
4064
|
-
if (message.jwks !== undefined)
|
|
4065
|
-
writer.tag(13, WireType.LengthDelimited).string(message.jwks);
|
|
4066
|
-
/* repeated string post_logout_redirect_uris = 14; */
|
|
4067
|
-
for (let i = 0; i < message.postLogoutRedirectUris.length; i++)
|
|
4068
|
-
writer.tag(14, WireType.LengthDelimited).string(message.postLogoutRedirectUris[i]);
|
|
4069
|
-
let u = options.writeUnknownFields;
|
|
4070
|
-
if (u !== false)
|
|
4071
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4072
|
-
return writer;
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4075
|
-
/**
|
|
4076
|
-
* @generated MessageType for protobuf message sid.v1.projects.UpdateRegisteredClientRequest
|
|
4077
|
-
*/
|
|
4078
|
-
export const UpdateRegisteredClientRequest = new UpdateRegisteredClientRequest$Type();
|
|
4079
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4080
|
-
class DeleteRegisteredClientRequest$Type extends MessageType<DeleteRegisteredClientRequest> {
|
|
4081
|
-
constructor() {
|
|
4082
|
-
super("sid.v1.projects.DeleteRegisteredClientRequest", [
|
|
4083
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4084
|
-
{ no: 2, name: "issuer_handle", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4085
|
-
]);
|
|
4086
|
-
}
|
|
4087
|
-
create(value?: PartialMessage<DeleteRegisteredClientRequest>): DeleteRegisteredClientRequest {
|
|
4088
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4089
|
-
message.clientId = "";
|
|
4090
|
-
message.issuerHandle = "";
|
|
4091
|
-
if (value !== undefined)
|
|
4092
|
-
reflectionMergePartial<DeleteRegisteredClientRequest>(this, message, value);
|
|
4093
|
-
return message;
|
|
4094
|
-
}
|
|
4095
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteRegisteredClientRequest): DeleteRegisteredClientRequest {
|
|
4096
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4097
|
-
while (reader.pos < end) {
|
|
4098
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4099
|
-
switch (fieldNo) {
|
|
4100
|
-
case /* string client_id */ 1:
|
|
4101
|
-
message.clientId = reader.string();
|
|
4102
|
-
break;
|
|
4103
|
-
case /* string issuer_handle */ 2:
|
|
4104
|
-
message.issuerHandle = reader.string();
|
|
4105
|
-
break;
|
|
4106
|
-
default:
|
|
4107
|
-
let u = options.readUnknownField;
|
|
4108
|
-
if (u === "throw")
|
|
4109
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4110
|
-
let d = reader.skip(wireType);
|
|
4111
|
-
if (u !== false)
|
|
4112
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4113
|
-
}
|
|
4114
|
-
}
|
|
4115
|
-
return message;
|
|
4116
|
-
}
|
|
4117
|
-
internalBinaryWrite(message: DeleteRegisteredClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4118
|
-
/* string client_id = 1; */
|
|
4119
|
-
if (message.clientId !== "")
|
|
4120
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
4121
|
-
/* string issuer_handle = 2; */
|
|
4122
|
-
if (message.issuerHandle !== "")
|
|
4123
|
-
writer.tag(2, WireType.LengthDelimited).string(message.issuerHandle);
|
|
4124
|
-
let u = options.writeUnknownFields;
|
|
4125
|
-
if (u !== false)
|
|
4126
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4127
|
-
return writer;
|
|
4128
|
-
}
|
|
4129
|
-
}
|
|
4130
|
-
/**
|
|
4131
|
-
* @generated MessageType for protobuf message sid.v1.projects.DeleteRegisteredClientRequest
|
|
4132
|
-
*/
|
|
4133
|
-
export const DeleteRegisteredClientRequest = new DeleteRegisteredClientRequest$Type();
|
|
4134
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4135
|
-
class CreateInitialAccessTokenRequest$Type extends MessageType<CreateInitialAccessTokenRequest> {
|
|
4136
|
-
constructor() {
|
|
4137
|
-
super("sid.v1.projects.CreateInitialAccessTokenRequest", [
|
|
4138
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4139
|
-
{ no: 2, name: "max_clients", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
4140
|
-
{ no: 3, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
4141
|
-
{ no: 4, name: "allowed_grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
4142
|
-
{ no: 5, name: "allowed_redirect_patterns", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
4143
|
-
{ no: 6, name: "expires_in_seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
4144
|
-
]);
|
|
4145
|
-
}
|
|
4146
|
-
create(value?: PartialMessage<CreateInitialAccessTokenRequest>): CreateInitialAccessTokenRequest {
|
|
4147
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4148
|
-
message.projectId = "";
|
|
4149
|
-
message.maxClients = 0;
|
|
4150
|
-
message.allowedScopes = [];
|
|
4151
|
-
message.allowedGrantTypes = [];
|
|
4152
|
-
message.allowedRedirectPatterns = [];
|
|
4153
|
-
message.expiresInSeconds = 0n;
|
|
4154
|
-
if (value !== undefined)
|
|
4155
|
-
reflectionMergePartial<CreateInitialAccessTokenRequest>(this, message, value);
|
|
4156
|
-
return message;
|
|
4157
|
-
}
|
|
4158
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateInitialAccessTokenRequest): CreateInitialAccessTokenRequest {
|
|
4159
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4160
|
-
while (reader.pos < end) {
|
|
4161
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4162
|
-
switch (fieldNo) {
|
|
4163
|
-
case /* string project_id */ 1:
|
|
4164
|
-
message.projectId = reader.string();
|
|
4165
|
-
break;
|
|
4166
|
-
case /* uint32 max_clients */ 2:
|
|
4167
|
-
message.maxClients = reader.uint32();
|
|
4168
|
-
break;
|
|
4169
|
-
case /* repeated string allowed_scopes */ 3:
|
|
4170
|
-
message.allowedScopes.push(reader.string());
|
|
4171
|
-
break;
|
|
4172
|
-
case /* repeated string allowed_grant_types */ 4:
|
|
4173
|
-
message.allowedGrantTypes.push(reader.string());
|
|
4174
|
-
break;
|
|
4175
|
-
case /* repeated string allowed_redirect_patterns */ 5:
|
|
4176
|
-
message.allowedRedirectPatterns.push(reader.string());
|
|
4177
|
-
break;
|
|
4178
|
-
case /* int64 expires_in_seconds */ 6:
|
|
4179
|
-
message.expiresInSeconds = reader.int64().toBigInt();
|
|
4180
|
-
break;
|
|
4181
|
-
default:
|
|
4182
|
-
let u = options.readUnknownField;
|
|
4183
|
-
if (u === "throw")
|
|
4184
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4185
|
-
let d = reader.skip(wireType);
|
|
4186
|
-
if (u !== false)
|
|
4187
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4190
|
-
return message;
|
|
4191
|
-
}
|
|
4192
|
-
internalBinaryWrite(message: CreateInitialAccessTokenRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4193
|
-
/* string project_id = 1; */
|
|
4194
|
-
if (message.projectId !== "")
|
|
4195
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
4196
|
-
/* uint32 max_clients = 2; */
|
|
4197
|
-
if (message.maxClients !== 0)
|
|
4198
|
-
writer.tag(2, WireType.Varint).uint32(message.maxClients);
|
|
4199
|
-
/* repeated string allowed_scopes = 3; */
|
|
4200
|
-
for (let i = 0; i < message.allowedScopes.length; i++)
|
|
4201
|
-
writer.tag(3, WireType.LengthDelimited).string(message.allowedScopes[i]);
|
|
4202
|
-
/* repeated string allowed_grant_types = 4; */
|
|
4203
|
-
for (let i = 0; i < message.allowedGrantTypes.length; i++)
|
|
4204
|
-
writer.tag(4, WireType.LengthDelimited).string(message.allowedGrantTypes[i]);
|
|
4205
|
-
/* repeated string allowed_redirect_patterns = 5; */
|
|
4206
|
-
for (let i = 0; i < message.allowedRedirectPatterns.length; i++)
|
|
4207
|
-
writer.tag(5, WireType.LengthDelimited).string(message.allowedRedirectPatterns[i]);
|
|
4208
|
-
/* int64 expires_in_seconds = 6; */
|
|
4209
|
-
if (message.expiresInSeconds !== 0n)
|
|
4210
|
-
writer.tag(6, WireType.Varint).int64(message.expiresInSeconds);
|
|
4211
|
-
let u = options.writeUnknownFields;
|
|
4212
|
-
if (u !== false)
|
|
4213
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4214
|
-
return writer;
|
|
4215
|
-
}
|
|
4216
|
-
}
|
|
4217
|
-
/**
|
|
4218
|
-
* @generated MessageType for protobuf message sid.v1.projects.CreateInitialAccessTokenRequest
|
|
4219
|
-
*/
|
|
4220
|
-
export const CreateInitialAccessTokenRequest = new CreateInitialAccessTokenRequest$Type();
|
|
4221
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4222
|
-
class CreateInitialAccessTokenResponse$Type extends MessageType<CreateInitialAccessTokenResponse> {
|
|
4223
|
-
constructor() {
|
|
4224
|
-
super("sid.v1.projects.CreateInitialAccessTokenResponse", [
|
|
4225
|
-
{ no: 1, name: "token", kind: "message", T: () => InitialAccessToken },
|
|
4226
|
-
{ no: 2, name: "token_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4227
|
-
]);
|
|
4228
|
-
}
|
|
4229
|
-
create(value?: PartialMessage<CreateInitialAccessTokenResponse>): CreateInitialAccessTokenResponse {
|
|
4230
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4231
|
-
message.tokenValue = "";
|
|
4232
|
-
if (value !== undefined)
|
|
4233
|
-
reflectionMergePartial<CreateInitialAccessTokenResponse>(this, message, value);
|
|
4234
|
-
return message;
|
|
4235
|
-
}
|
|
4236
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateInitialAccessTokenResponse): CreateInitialAccessTokenResponse {
|
|
4237
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4238
|
-
while (reader.pos < end) {
|
|
4239
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4240
|
-
switch (fieldNo) {
|
|
4241
|
-
case /* sid.v1.projects.InitialAccessToken token */ 1:
|
|
4242
|
-
message.token = InitialAccessToken.internalBinaryRead(reader, reader.uint32(), options, message.token);
|
|
4243
|
-
break;
|
|
4244
|
-
case /* string token_value */ 2:
|
|
4245
|
-
message.tokenValue = reader.string();
|
|
4246
|
-
break;
|
|
4247
|
-
default:
|
|
4248
|
-
let u = options.readUnknownField;
|
|
4249
|
-
if (u === "throw")
|
|
4250
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4251
|
-
let d = reader.skip(wireType);
|
|
4252
|
-
if (u !== false)
|
|
4253
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4254
|
-
}
|
|
4255
|
-
}
|
|
4256
|
-
return message;
|
|
4257
|
-
}
|
|
4258
|
-
internalBinaryWrite(message: CreateInitialAccessTokenResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4259
|
-
/* sid.v1.projects.InitialAccessToken token = 1; */
|
|
4260
|
-
if (message.token)
|
|
4261
|
-
InitialAccessToken.internalBinaryWrite(message.token, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4262
|
-
/* string token_value = 2; */
|
|
4263
|
-
if (message.tokenValue !== "")
|
|
4264
|
-
writer.tag(2, WireType.LengthDelimited).string(message.tokenValue);
|
|
4265
|
-
let u = options.writeUnknownFields;
|
|
4266
|
-
if (u !== false)
|
|
4267
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4268
|
-
return writer;
|
|
4269
|
-
}
|
|
4270
|
-
}
|
|
4271
|
-
/**
|
|
4272
|
-
* @generated MessageType for protobuf message sid.v1.projects.CreateInitialAccessTokenResponse
|
|
4273
|
-
*/
|
|
4274
|
-
export const CreateInitialAccessTokenResponse = new CreateInitialAccessTokenResponse$Type();
|
|
4275
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4276
|
-
class ListInitialAccessTokensRequest$Type extends MessageType<ListInitialAccessTokensRequest> {
|
|
4277
|
-
constructor() {
|
|
4278
|
-
super("sid.v1.projects.ListInitialAccessTokensRequest", [
|
|
4279
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4280
|
-
]);
|
|
4281
|
-
}
|
|
4282
|
-
create(value?: PartialMessage<ListInitialAccessTokensRequest>): ListInitialAccessTokensRequest {
|
|
4283
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4284
|
-
message.projectId = "";
|
|
4285
|
-
if (value !== undefined)
|
|
4286
|
-
reflectionMergePartial<ListInitialAccessTokensRequest>(this, message, value);
|
|
4287
|
-
return message;
|
|
4288
|
-
}
|
|
4289
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInitialAccessTokensRequest): ListInitialAccessTokensRequest {
|
|
4290
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4291
|
-
while (reader.pos < end) {
|
|
4292
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4293
|
-
switch (fieldNo) {
|
|
4294
|
-
case /* string project_id */ 1:
|
|
4295
|
-
message.projectId = reader.string();
|
|
4296
|
-
break;
|
|
4297
|
-
default:
|
|
4298
|
-
let u = options.readUnknownField;
|
|
4299
|
-
if (u === "throw")
|
|
4300
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4301
|
-
let d = reader.skip(wireType);
|
|
4302
|
-
if (u !== false)
|
|
4303
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4304
|
-
}
|
|
4305
|
-
}
|
|
4306
|
-
return message;
|
|
4307
|
-
}
|
|
4308
|
-
internalBinaryWrite(message: ListInitialAccessTokensRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4309
|
-
/* string project_id = 1; */
|
|
4310
|
-
if (message.projectId !== "")
|
|
4311
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
4312
|
-
let u = options.writeUnknownFields;
|
|
4313
|
-
if (u !== false)
|
|
4314
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4315
|
-
return writer;
|
|
4316
|
-
}
|
|
4317
|
-
}
|
|
4318
|
-
/**
|
|
4319
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListInitialAccessTokensRequest
|
|
4320
|
-
*/
|
|
4321
|
-
export const ListInitialAccessTokensRequest = new ListInitialAccessTokensRequest$Type();
|
|
4322
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4323
|
-
class ListInitialAccessTokensResponse$Type extends MessageType<ListInitialAccessTokensResponse> {
|
|
4324
|
-
constructor() {
|
|
4325
|
-
super("sid.v1.projects.ListInitialAccessTokensResponse", [
|
|
4326
|
-
{ no: 1, name: "tokens", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => InitialAccessToken }
|
|
4327
|
-
]);
|
|
4328
|
-
}
|
|
4329
|
-
create(value?: PartialMessage<ListInitialAccessTokensResponse>): ListInitialAccessTokensResponse {
|
|
4330
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4331
|
-
message.tokens = [];
|
|
4332
|
-
if (value !== undefined)
|
|
4333
|
-
reflectionMergePartial<ListInitialAccessTokensResponse>(this, message, value);
|
|
4334
|
-
return message;
|
|
4335
|
-
}
|
|
4336
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListInitialAccessTokensResponse): ListInitialAccessTokensResponse {
|
|
4337
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4338
|
-
while (reader.pos < end) {
|
|
4339
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4340
|
-
switch (fieldNo) {
|
|
4341
|
-
case /* repeated sid.v1.projects.InitialAccessToken tokens */ 1:
|
|
4342
|
-
message.tokens.push(InitialAccessToken.internalBinaryRead(reader, reader.uint32(), options));
|
|
4343
|
-
break;
|
|
4344
|
-
default:
|
|
4345
|
-
let u = options.readUnknownField;
|
|
4346
|
-
if (u === "throw")
|
|
4347
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4348
|
-
let d = reader.skip(wireType);
|
|
4349
|
-
if (u !== false)
|
|
4350
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4351
|
-
}
|
|
4352
|
-
}
|
|
4353
|
-
return message;
|
|
4354
|
-
}
|
|
4355
|
-
internalBinaryWrite(message: ListInitialAccessTokensResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4356
|
-
/* repeated sid.v1.projects.InitialAccessToken tokens = 1; */
|
|
4357
|
-
for (let i = 0; i < message.tokens.length; i++)
|
|
4358
|
-
InitialAccessToken.internalBinaryWrite(message.tokens[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4359
|
-
let u = options.writeUnknownFields;
|
|
4360
|
-
if (u !== false)
|
|
4361
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4362
|
-
return writer;
|
|
4363
|
-
}
|
|
4364
|
-
}
|
|
4365
|
-
/**
|
|
4366
|
-
* @generated MessageType for protobuf message sid.v1.projects.ListInitialAccessTokensResponse
|
|
4367
|
-
*/
|
|
4368
|
-
export const ListInitialAccessTokensResponse = new ListInitialAccessTokensResponse$Type();
|
|
4369
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4370
|
-
class RevokeInitialAccessTokenRequest$Type extends MessageType<RevokeInitialAccessTokenRequest> {
|
|
4371
|
-
constructor() {
|
|
4372
|
-
super("sid.v1.projects.RevokeInitialAccessTokenRequest", [
|
|
4373
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4374
|
-
]);
|
|
4375
|
-
}
|
|
4376
|
-
create(value?: PartialMessage<RevokeInitialAccessTokenRequest>): RevokeInitialAccessTokenRequest {
|
|
4377
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4378
|
-
message.id = "";
|
|
4379
|
-
if (value !== undefined)
|
|
4380
|
-
reflectionMergePartial<RevokeInitialAccessTokenRequest>(this, message, value);
|
|
4381
|
-
return message;
|
|
4382
|
-
}
|
|
4383
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeInitialAccessTokenRequest): RevokeInitialAccessTokenRequest {
|
|
4384
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4385
|
-
while (reader.pos < end) {
|
|
4386
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4387
|
-
switch (fieldNo) {
|
|
4388
|
-
case /* string id */ 1:
|
|
4389
|
-
message.id = reader.string();
|
|
4390
|
-
break;
|
|
4391
|
-
default:
|
|
4392
|
-
let u = options.readUnknownField;
|
|
4393
|
-
if (u === "throw")
|
|
4394
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4395
|
-
let d = reader.skip(wireType);
|
|
4396
|
-
if (u !== false)
|
|
4397
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4398
|
-
}
|
|
4399
|
-
}
|
|
4400
|
-
return message;
|
|
4401
|
-
}
|
|
4402
|
-
internalBinaryWrite(message: RevokeInitialAccessTokenRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4403
|
-
/* string id = 1; */
|
|
4404
|
-
if (message.id !== "")
|
|
4405
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
4406
|
-
let u = options.writeUnknownFields;
|
|
4407
|
-
if (u !== false)
|
|
4408
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4409
|
-
return writer;
|
|
4410
|
-
}
|
|
4411
|
-
}
|
|
4412
|
-
/**
|
|
4413
|
-
* @generated MessageType for protobuf message sid.v1.projects.RevokeInitialAccessTokenRequest
|
|
4414
|
-
*/
|
|
4415
|
-
export const RevokeInitialAccessTokenRequest = new RevokeInitialAccessTokenRequest$Type();
|
|
4416
|
-
/**
|
|
4417
|
-
* @generated ServiceType for protobuf service sid.v1.projects.ProjectService
|
|
4418
|
-
*/
|
|
4419
|
-
export const ProjectService = new ServiceType("sid.v1.projects.ProjectService", [
|
|
4420
|
-
{ name: "CreateProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects", body: "*" } }, I: CreateProjectRequest, O: Project },
|
|
4421
|
-
{ name: "GetProject", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{id}" } }, I: GetProjectRequest, O: Project },
|
|
4422
|
-
{ name: "ListProjects", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects" } }, I: ListProjectsRequest, O: ListProjectsResponse },
|
|
4423
|
-
{ name: "UpdateProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{id}", body: "*" } }, I: UpdateProjectRequest, O: Project },
|
|
4424
|
-
{ name: "DeleteProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{id}" } }, I: DeleteProjectRequest, O: Empty },
|
|
4425
|
-
{ name: "CreateApplication", options: { "google.api.http": { post: "/v1/projects/{project_id}/applications", body: "*" } }, I: CreateApplicationRequest, O: CreateApplicationResponse },
|
|
4426
|
-
{ name: "GetApplication", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/applications/{id}" } }, I: GetApplicationRequest, O: Application },
|
|
4427
|
-
{ name: "ListApplications", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/applications" } }, I: ListApplicationsRequest, O: ListApplicationsResponse },
|
|
4428
|
-
{ name: "UpdateApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/applications/{id}", body: "*" } }, I: UpdateApplicationRequest, O: Application },
|
|
4429
|
-
{ name: "DeleteApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/applications/{id}" } }, I: DeleteApplicationRequest, O: Empty },
|
|
4430
|
-
{ name: "AddClientRole", options: { "google.api.http": { post: "/v1/applications/{application_id}/client", body: "*" } }, I: AddClientRoleRequest, O: CreateApplicationResponse },
|
|
4431
|
-
{ name: "UpdateClientRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/clients/{client_id}", body: "*" } }, I: UpdateClientRoleRequest, O: Application },
|
|
4432
|
-
{ name: "AddResourceRole", options: { "google.api.http": { post: "/v1/applications/{application_id}/resource", body: "*" } }, I: AddResourceRoleRequest, O: Application },
|
|
4433
|
-
{ name: "UpdateResourceRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/resources/{resource_id}", body: "*" } }, I: UpdateResourceRoleRequest, O: ProtectedResource },
|
|
4434
|
-
{ name: "SetResourceAccess", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/clients/{client_id}/resources/{resource_id}", body: "*" } }, I: SetResourceAccessRequest, O: ResourceAccess },
|
|
4435
|
-
{ name: "RemoveResourceAccess", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/clients/{client_id}/resources/{resource_id}" } }, I: RemoveResourceAccessRequest, O: Empty },
|
|
4436
|
-
{ name: "ListResourceAccess", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/clients/{client_id}/resources", additionalBindings: [{ get: "/v1/resources/{resource_id}/clients" }] } }, I: ListResourceAccessRequest, O: ListResourceAccessResponse },
|
|
4437
|
-
{ name: "AddRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/roles", body: "*" } }, I: AddRoleRequest, O: Role },
|
|
4438
|
-
{ name: "RemoveRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id}/roles/{role_id}" } }, I: RemoveRoleRequest, O: Empty },
|
|
4439
|
-
{ name: "RegisterClient", options: {}, I: RegisterClientRequest, O: RegisterClientResponse },
|
|
4440
|
-
{ name: "GetRegisteredClient", idempotency: "NO_SIDE_EFFECTS", options: {}, I: GetRegisteredClientRequest, O: OAuthClient },
|
|
4441
|
-
{ name: "UpdateRegisteredClient", idempotency: "IDEMPOTENT", options: {}, I: UpdateRegisteredClientRequest, O: OAuthClient },
|
|
4442
|
-
{ name: "DeleteRegisteredClient", idempotency: "IDEMPOTENT", options: {}, I: DeleteRegisteredClientRequest, O: Empty },
|
|
4443
|
-
{ name: "CreateInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/iat", body: "*" } }, I: CreateInitialAccessTokenRequest, O: CreateInitialAccessTokenResponse },
|
|
4444
|
-
{ name: "ListInitialAccessTokens", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/iat" } }, I: ListInitialAccessTokensRequest, O: ListInitialAccessTokensResponse },
|
|
4445
|
-
{ name: "RevokeInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/iat/{id}" } }, I: RevokeInitialAccessTokenRequest, O: Empty }
|
|
4446
|
-
]);
|