@raystack/frontier 0.0.0 → 0.0.1

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/dist/index.d.ts CHANGED
@@ -1,4 +1,2199 @@
1
- declare class Frontier {
1
+ type QueryParamsType = Record<string | number, any>;
2
+ type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
3
+ interface FullRequestParams extends Omit<RequestInit, 'body'> {
4
+ /** set parameter to `true` for call `securityWorker` for this request */
5
+ secure?: boolean;
6
+ /** request path */
7
+ path: string;
8
+ /** content type of request body */
9
+ type?: ContentType;
10
+ /** query params */
11
+ query?: QueryParamsType;
12
+ /** format of response (i.e. response.json() -> format: "json") */
13
+ format?: ResponseFormat;
14
+ /** request body */
15
+ body?: unknown;
16
+ /** base url */
17
+ baseUrl?: string;
18
+ /** request cancellation token */
19
+ cancelToken?: CancelToken;
2
20
  }
21
+ type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
22
+ interface ApiConfig<SecurityDataType = unknown> {
23
+ baseUrl?: string;
24
+ baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
25
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
26
+ customFetch?: typeof fetch;
27
+ }
28
+ interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
29
+ data: D;
30
+ error: E;
31
+ }
32
+ type CancelToken = Symbol | string | number;
33
+ declare enum ContentType {
34
+ Json = "application/json",
35
+ FormData = "multipart/form-data",
36
+ UrlEncoded = "application/x-www-form-urlencoded",
37
+ Text = "text/plain"
38
+ }
39
+ declare class HttpClient<SecurityDataType = unknown> {
40
+ baseUrl: string;
41
+ private securityData;
42
+ private securityWorker?;
43
+ private abortControllers;
44
+ private customFetch;
45
+ private baseApiParams;
46
+ constructor(apiConfig?: ApiConfig<SecurityDataType>);
47
+ setSecurityData: (data: SecurityDataType | null) => void;
48
+ protected encodeQueryParam(key: string, value: any): string;
49
+ protected addQueryParam(query: QueryParamsType, key: string): string;
50
+ protected addArrayQueryParam(query: QueryParamsType, key: string): any;
51
+ protected toQueryString(rawQuery?: QueryParamsType): string;
52
+ protected addQueryParams(rawQuery?: QueryParamsType): string;
53
+ private contentFormatters;
54
+ protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
55
+ protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
56
+ abortRequest: (cancelToken: CancelToken) => void;
57
+ request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
58
+ }
59
+
60
+ interface ProtobufAny {
61
+ '@type'?: string;
62
+ [key: string]: any;
63
+ }
64
+ interface RpcStatus {
65
+ /** @format int32 */
66
+ code?: number;
67
+ message?: string;
68
+ details?: ProtobufAny[];
69
+ }
70
+ interface V1Beta1AuditLog {
71
+ /** A unique identifier of the audit log if not supplied will be autogenerated */
72
+ id?: string;
73
+ /**
74
+ * Source service generating the event
75
+ * The source service generating the event.
76
+ * @example "auth"
77
+ */
78
+ source: string;
79
+ /** Action performed, e.g. project.create, user.update, serviceuser.delete */
80
+ action: string;
81
+ /** Actor performing the action */
82
+ actor?: V1Beta1AuditLogActor;
83
+ /** Target of the action */
84
+ target?: V1Beta1AuditLogTarget;
85
+ /** Context contains additional information about the event */
86
+ context?: Record<string, string>;
87
+ /**
88
+ * The time the log was created.
89
+ * @format date-time
90
+ * @example "2023-06-07T05:39:56.961Z"
91
+ */
92
+ createdAt?: string;
93
+ }
94
+ interface V1Beta1AuditLogActor {
95
+ id?: string;
96
+ type?: string;
97
+ name?: string;
98
+ }
99
+ interface V1Beta1AuditLogTarget {
100
+ id?: string;
101
+ type?: string;
102
+ name?: string;
103
+ }
104
+ interface V1Beta1AuthCallbackRequest {
105
+ /** strategy_name will not be set for oidc but can be utilized for methods like email magic links */
106
+ strategyName?: string;
107
+ /** for oidc & magic links */
108
+ state?: string;
109
+ code?: string;
110
+ }
111
+ interface V1Beta1AuthStrategy {
112
+ name?: string;
113
+ params?: object;
114
+ }
115
+ interface V1Beta1AuthTokenRequest {
116
+ /**
117
+ * grant_type can be one of the following:
118
+ * - client_credentials
119
+ * - urn:ietf:params:oauth:grant-type:jwt-bearer
120
+ */
121
+ grantType?: string;
122
+ /** client_id and client_secret are required for grant_type client_credentials */
123
+ clientId?: string;
124
+ clientSecret?: string;
125
+ /** assertion is required for grant_type urn:ietf:params:oauth:grant-type:jwt-bearer */
126
+ assertion?: string;
127
+ }
128
+ interface V1Beta1AuthTokenResponse {
129
+ accessToken?: string;
130
+ tokenType?: string;
131
+ }
132
+ interface V1Beta1AuthenticateResponse {
133
+ endpoint?: string;
134
+ state?: string;
135
+ }
136
+ interface V1Beta1CheckResourcePermissionRequest {
137
+ /** Deprecated. Use `resource` field instead. */
138
+ objectId?: string;
139
+ /** Deprecated. Use `resource` field instead. */
140
+ objectNamespace?: string;
141
+ /** the permission name to check. <br/> *Example:* `get` or `list` */
142
+ permission: string;
143
+ /** `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` */
144
+ resource?: string;
145
+ }
146
+ interface V1Beta1CheckResourcePermissionResponse {
147
+ status?: boolean;
148
+ }
149
+ interface V1Beta1CreateGroupResponse {
150
+ group?: V1Beta1Group;
151
+ }
152
+ interface V1Beta1CreateMetaSchemaResponse {
153
+ metaschema?: V1Beta1MetaSchema;
154
+ }
155
+ interface V1Beta1CreateOrganizationInvitationResponse {
156
+ invitation?: V1Beta1Invitation;
157
+ }
158
+ interface V1Beta1CreateOrganizationResponse {
159
+ organization?: V1Beta1Organization;
160
+ }
161
+ interface V1Beta1CreateOrganizationRoleResponse {
162
+ role?: V1Beta1Role;
163
+ }
164
+ interface V1Beta1CreatePermissionRequest {
165
+ bodies?: V1Beta1PermissionRequestBody[];
166
+ }
167
+ interface V1Beta1CreatePermissionResponse {
168
+ permissions?: V1Beta1Permission[];
169
+ }
170
+ interface V1Beta1CreatePolicyResponse {
171
+ policy?: V1Beta1Policy;
172
+ }
173
+ interface V1Beta1CreateProjectResourceResponse {
174
+ resource?: V1Beta1Resource;
175
+ }
176
+ interface V1Beta1CreateProjectResponse {
177
+ project?: V1Beta1Project;
178
+ }
179
+ interface V1Beta1CreateRelationResponse {
180
+ relation?: V1Beta1Relation;
181
+ }
182
+ interface V1Beta1CreateRoleResponse {
183
+ role?: V1Beta1Role;
184
+ }
185
+ interface V1Beta1CreateServiceUserKeyResponse {
186
+ key?: V1Beta1KeyCredential;
187
+ }
188
+ interface V1Beta1CreateServiceUserRequest {
189
+ body?: V1Beta1ServiceUserRequestBody;
190
+ /** The organization ID to which the service user belongs to. */
191
+ orgId: string;
192
+ }
193
+ interface V1Beta1CreateServiceUserResponse {
194
+ serviceuser?: V1Beta1ServiceUser;
195
+ }
196
+ interface V1Beta1CreateServiceUserSecretResponse {
197
+ secret?: V1Beta1SecretCredential;
198
+ }
199
+ interface V1Beta1CreateUserResponse {
200
+ user?: V1Beta1User;
201
+ }
202
+ interface V1Beta1GetCurrentUserResponse {
203
+ user?: V1Beta1User;
204
+ serviceuser?: V1Beta1ServiceUser;
205
+ }
206
+ interface V1Beta1GetGroupResponse {
207
+ group?: V1Beta1Group;
208
+ }
209
+ /** GetJWKsResponse is a valid JSON Web Key Set as specififed in rfc 7517 */
210
+ interface V1Beta1GetJWKsResponse {
211
+ keys?: V1Beta1JSONWebKey[];
212
+ }
213
+ interface V1Beta1GetMetaSchemaResponse {
214
+ metaschema?: V1Beta1MetaSchema;
215
+ }
216
+ interface V1Beta1GetNamespaceResponse {
217
+ namespace?: V1Beta1Namespace;
218
+ }
219
+ interface V1Beta1GetOrganizationAuditLogResponse {
220
+ log?: V1Beta1AuditLog;
221
+ }
222
+ interface V1Beta1GetOrganizationInvitationResponse {
223
+ invitation?: V1Beta1Invitation;
224
+ }
225
+ interface V1Beta1GetOrganizationResponse {
226
+ organization?: V1Beta1Organization;
227
+ }
228
+ interface V1Beta1GetOrganizationRoleResponse {
229
+ role?: V1Beta1Role;
230
+ }
231
+ interface V1Beta1GetOrganizationsByCurrentUserResponse {
232
+ organizations?: V1Beta1Organization[];
233
+ }
234
+ interface V1Beta1GetOrganizationsByUserResponse {
235
+ organizations?: V1Beta1Organization[];
236
+ }
237
+ interface V1Beta1GetPermissionResponse {
238
+ permission?: V1Beta1Permission;
239
+ }
240
+ interface V1Beta1GetPolicyResponse {
241
+ policy?: V1Beta1Policy;
242
+ }
243
+ interface V1Beta1GetProjectResourceResponse {
244
+ resource?: V1Beta1Resource;
245
+ }
246
+ interface V1Beta1GetProjectResponse {
247
+ project?: V1Beta1Project;
248
+ }
249
+ interface V1Beta1GetProjectsByCurrentUserResponse {
250
+ projects?: V1Beta1Project[];
251
+ }
252
+ interface V1Beta1GetProjectsByUserResponse {
253
+ projects?: V1Beta1Project[];
254
+ }
255
+ interface V1Beta1GetRelationResponse {
256
+ relation?: V1Beta1Relation;
257
+ }
258
+ interface V1Beta1GetServiceUserKeyResponse {
259
+ keys?: V1Beta1JSONWebKey[];
260
+ }
261
+ interface V1Beta1GetServiceUserResponse {
262
+ serviceuser?: V1Beta1ServiceUser;
263
+ }
264
+ interface V1Beta1GetUserResponse {
265
+ user?: V1Beta1User;
266
+ }
267
+ interface V1Beta1Group {
268
+ id?: string;
269
+ name?: string;
270
+ title?: string;
271
+ orgId?: string;
272
+ metadata?: object;
273
+ /**
274
+ * The time the group was created.
275
+ * @format date-time
276
+ * @example "2023-06-07T05:39:56.961Z"
277
+ */
278
+ createdAt?: string;
279
+ /**
280
+ * The time the group was last updated.
281
+ * @format date-time
282
+ * @example "2023-06-07T05:39:56.961Z"
283
+ */
284
+ updatedAt?: string;
285
+ }
286
+ interface V1Beta1GroupRequestBody {
287
+ /** The name of the group. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores. */
288
+ name: string;
289
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the group. Can also be left empty. */
290
+ title?: string;
291
+ /** Metadata object for groups that can hold key value pairs defined in Group Metaschema. The metadata object can be used to store arbitrary information about the group such as labels, descriptions etc. The default Group Metaschema contains labels and descripton fields. Update the Group Metaschema to add more fields.<br/>*Example:*`{"labels": {"key": "value"}, "description": "Group description"}` */
292
+ metadata?: object;
293
+ }
294
+ interface V1Beta1Invitation {
295
+ /**
296
+ * The unique invitation identifier.
297
+ * @example "k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
298
+ */
299
+ id?: string;
300
+ /**
301
+ * The user email of the invited user.
302
+ * @example "john.doe@raystack.org"
303
+ */
304
+ userId?: string;
305
+ /**
306
+ * The organization id to which the user is invited.
307
+ * @example "b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
308
+ */
309
+ orgId?: string;
310
+ /**
311
+ * The list of group ids to which the user is invited.
312
+ * @example "c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
313
+ */
314
+ groupIds?: string[];
315
+ /**
316
+ * The metadata of the invitation.
317
+ * @example {"key":"value"}
318
+ */
319
+ metadata?: object;
320
+ /**
321
+ * The time when the invitation was created.
322
+ * @format date-time
323
+ * @example "2023-06-07T05:39:56.961Z"
324
+ */
325
+ createdAt?: string;
326
+ /**
327
+ * The time when the invitation expires.
328
+ * @format date-time
329
+ * @example "2023-06-07T05:39:56.961Z"
330
+ */
331
+ expiresAt?: string;
332
+ }
333
+ /** JSON Web Key as specified in RFC 7517 */
334
+ interface V1Beta1JSONWebKey {
335
+ /** Key Type. */
336
+ kty?: string;
337
+ /** Algorithm. */
338
+ alg?: string;
339
+ /** Permitted uses for the public keys. */
340
+ use?: string;
341
+ /** Key ID. */
342
+ kid?: string;
343
+ /** Used for RSA keys. */
344
+ n?: string;
345
+ /** Used for RSA keys. */
346
+ e?: string;
347
+ /** Used for ECDSA keys. */
348
+ x?: string;
349
+ /** Used for ECDSA keys. */
350
+ y?: string;
351
+ /** Used for ECDSA keys. */
352
+ crv?: string;
353
+ }
354
+ interface V1Beta1KeyCredential {
355
+ type?: string;
356
+ kid?: string;
357
+ principalId?: string;
358
+ /** RSA private key as string */
359
+ privateKey?: string;
360
+ }
361
+ interface V1Beta1ListAllOrganizationsResponse {
362
+ organizations?: V1Beta1Organization[];
363
+ }
364
+ interface V1Beta1ListAllUsersResponse {
365
+ /** @format int32 */
366
+ count?: number;
367
+ users?: V1Beta1User[];
368
+ }
369
+ interface V1Beta1ListAuthStrategiesResponse {
370
+ strategies?: V1Beta1AuthStrategy[];
371
+ }
372
+ interface V1Beta1ListCurrentUserGroupsResponse {
373
+ groups?: V1Beta1Group[];
374
+ }
375
+ interface V1Beta1ListGroupUsersResponse {
376
+ users?: V1Beta1User[];
377
+ }
378
+ interface V1Beta1ListGroupsResponse {
379
+ groups?: V1Beta1Group[];
380
+ }
381
+ interface V1Beta1ListMetaSchemasResponse {
382
+ metaschemas?: V1Beta1MetaSchema[];
383
+ }
384
+ interface V1Beta1ListNamespacesResponse {
385
+ namespaces?: V1Beta1Namespace[];
386
+ }
387
+ interface V1Beta1ListOrganizationAdminsResponse {
388
+ users?: V1Beta1User[];
389
+ }
390
+ interface V1Beta1ListOrganizationAuditLogsResponse {
391
+ logs?: V1Beta1AuditLog[];
392
+ }
393
+ interface V1Beta1ListOrganizationGroupsResponse {
394
+ groups?: V1Beta1Group[];
395
+ }
396
+ interface V1Beta1ListOrganizationInvitationsResponse {
397
+ invitations?: V1Beta1Invitation[];
398
+ }
399
+ interface V1Beta1ListOrganizationProjectsResponse {
400
+ projects?: V1Beta1Project[];
401
+ }
402
+ interface V1Beta1ListOrganizationRolesResponse {
403
+ roles?: V1Beta1Role[];
404
+ }
405
+ interface V1Beta1ListOrganizationServiceUsersResponse {
406
+ serviceusers?: V1Beta1ServiceUser[];
407
+ }
408
+ interface V1Beta1ListOrganizationUsersResponse {
409
+ users?: V1Beta1User[];
410
+ }
411
+ interface V1Beta1ListOrganizationsResponse {
412
+ organizations?: V1Beta1Organization[];
413
+ }
414
+ interface V1Beta1ListPermissionsResponse {
415
+ permissions?: V1Beta1Permission[];
416
+ }
417
+ interface V1Beta1ListPoliciesResponse {
418
+ policies?: V1Beta1Policy[];
419
+ }
420
+ interface V1Beta1ListProjectAdminsResponse {
421
+ users?: V1Beta1User[];
422
+ }
423
+ interface V1Beta1ListProjectResourcesResponse {
424
+ resources?: V1Beta1Resource[];
425
+ }
426
+ interface V1Beta1ListProjectUsersResponse {
427
+ users?: V1Beta1User[];
428
+ }
429
+ interface V1Beta1ListProjectsResponse {
430
+ projects?: V1Beta1Project[];
431
+ }
432
+ interface V1Beta1ListRelationsResponse {
433
+ relations?: V1Beta1Relation[];
434
+ }
435
+ interface V1Beta1ListResourcesResponse {
436
+ resources?: V1Beta1Resource[];
437
+ }
438
+ interface V1Beta1ListRolesResponse {
439
+ roles?: V1Beta1Role[];
440
+ }
441
+ interface V1Beta1ListServiceUserKeysResponse {
442
+ keys?: V1Beta1ServiceUserKey[];
443
+ }
444
+ interface V1Beta1ListServiceUserSecretsResponse {
445
+ /** secrets will be listed without the secret value */
446
+ secrets?: V1Beta1SecretCredential[];
447
+ }
448
+ interface V1Beta1ListServiceUsersResponse {
449
+ serviceusers?: V1Beta1ServiceUser[];
450
+ }
451
+ interface V1Beta1ListUserGroupsResponse {
452
+ groups?: V1Beta1Group[];
453
+ }
454
+ interface V1Beta1ListUserInvitationsResponse {
455
+ invitations?: V1Beta1Invitation[];
456
+ }
457
+ interface V1Beta1ListUsersResponse {
458
+ /** @format int32 */
459
+ count?: number;
460
+ users?: V1Beta1User[];
461
+ }
462
+ interface V1Beta1MetaSchema {
463
+ /**
464
+ * The unique metaschema uuid.
465
+ * @example "a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
466
+ */
467
+ id?: string;
468
+ name?: string;
469
+ /**
470
+ * The metaschema json schema.
471
+ * @example {"type":"object"}
472
+ */
473
+ schema?: string;
474
+ /**
475
+ * The time when the metaschema was created.
476
+ * @format date-time
477
+ * @example "2023-06-07T05:39:56.961Z"
478
+ */
479
+ createdAt?: string;
480
+ /**
481
+ * The time when the metaschema was updated.
482
+ * @format date-time
483
+ * @example "2023-06-07T05:39:56.961Z"
484
+ */
485
+ updatedAt?: string;
486
+ }
487
+ interface V1Beta1MetaSchemaRequestBody {
488
+ /** The name of the metaschema. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores. */
489
+ name: string;
490
+ /** The schema of the metaschema. The schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema. */
491
+ schema: string;
492
+ }
493
+ interface V1Beta1Namespace {
494
+ id?: string;
495
+ /** name could be in a format like: app/organization */
496
+ name?: string;
497
+ metadata?: object;
498
+ /**
499
+ * The time the namespace was created.
500
+ * @format date-time
501
+ * @example "2023-06-07T05:39:56.961Z"
502
+ */
503
+ createdAt?: string;
504
+ /**
505
+ * The time the namespace was last updated.
506
+ * @format date-time
507
+ * @example "2023-06-07T05:39:56.961Z"
508
+ */
509
+ updatedAt?: string;
510
+ }
511
+ interface V1Beta1Organization {
512
+ id?: string;
513
+ name?: string;
514
+ title?: string;
515
+ metadata?: object;
516
+ /**
517
+ * The time the organization was created.
518
+ * @format date-time
519
+ * @example "2023-06-07T05:39:56.961Z"
520
+ */
521
+ createdAt?: string;
522
+ /**
523
+ * The time the organization was last updated.
524
+ * @format date-time
525
+ * @example "2023-06-07T05:39:56.961Z"
526
+ */
527
+ updatedAt?: string;
528
+ }
529
+ interface V1Beta1OrganizationRequestBody {
530
+ /** The name of the organization. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/>*Example:*`"frontier-org1-acme"` */
531
+ name: string;
532
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the organization. Can also be left empty.<br/> *Example*: `"Acme Inc"` */
533
+ title?: string;
534
+ /** Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields. <br/>*Example*:`{"labels": {"key": "value"}, "description": "Organization description"}` */
535
+ metadata?: object;
536
+ }
537
+ interface V1Beta1Permission {
538
+ id?: string;
539
+ name?: string;
540
+ title?: string;
541
+ /**
542
+ * The time the permission was created.
543
+ * @format date-time
544
+ * @example "2023-06-07T05:39:56.961Z"
545
+ */
546
+ createdAt?: string;
547
+ /**
548
+ * The time the permission was last updated.
549
+ * @format date-time
550
+ * @example "2023-06-07T05:39:56.961Z"
551
+ */
552
+ updatedAt?: string;
553
+ namespace?: string;
554
+ metadata?: object;
555
+ /**
556
+ * Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
557
+ * @example "compute.instance.get"
558
+ */
559
+ key?: string;
560
+ }
561
+ interface V1Beta1PermissionRequestBody {
562
+ /** The name of the permission. It should be unique across a Frontier instance and can contain only alphanumeric characters. */
563
+ name?: string;
564
+ /**
565
+ * namespace should be in service/resource format
566
+ * The namespace of the permission.The namespace should be in service/resource format.<br/>*Example:*`app/guardian`
567
+ */
568
+ namespace?: string;
569
+ /** The metadata object for permissions that can hold key value pairs. */
570
+ metadata?: object;
571
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty. */
572
+ title?: string;
573
+ /**
574
+ * Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
575
+ * @example "compute.instance.get"
576
+ */
577
+ key?: string;
578
+ }
579
+ interface V1Beta1Policy {
580
+ id?: string;
581
+ title?: string;
582
+ /**
583
+ * The time the policy was created.
584
+ * @format date-time
585
+ * @example "2023-06-07T05:39:56.961Z"
586
+ */
587
+ createdAt?: string;
588
+ /**
589
+ * The time the policy was last updated.
590
+ * @format date-time
591
+ * @example "2023-06-07T05:39:56.961Z"
592
+ */
593
+ updatedAt?: string;
594
+ roleId?: string;
595
+ /** namespace:uuid */
596
+ resource?: string;
597
+ /** namespace:uuid */
598
+ principal?: string;
599
+ metadata?: object;
600
+ }
601
+ interface V1Beta1PolicyRequestBody {
602
+ /** unique id of the role to which policy is assigned */
603
+ roleId: string;
604
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the policy. Can also be left empty. <br/> *Example:* `Policy title` */
605
+ title?: string;
606
+ /** The resource to which policy is assigned in this format `namespace:uuid`. <br/> *Example:* `app/guardian:70f69c3a-334b-4f25-90b8-4d4f3be6b8e2` */
607
+ resource: string;
608
+ /** principal is the user or group to which policy is assigned. The principal id must be prefixed with its namespace id in this format `namespace:uuid`. The namespace can be `app/user`, `app/group` or `app/serviceuser` (coming up!) and uuid is the unique id of the principal. <br/> *Example:* `app/user:92f69c3a-334b-4f25-90b8-4d4f3be6b825` */
609
+ principal: string;
610
+ /** Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> *Example:* `{"labels": {"key": "value"}, "description": "Policy description"}` */
611
+ metadata?: object;
612
+ }
613
+ interface V1Beta1Project {
614
+ id?: string;
615
+ name?: string;
616
+ title?: string;
617
+ orgId?: string;
618
+ metadata?: object;
619
+ /**
620
+ * The time the project was created.
621
+ * @format date-time
622
+ * @example "2023-06-07T05:39:56.961Z"
623
+ */
624
+ createdAt?: string;
625
+ /**
626
+ * The time the project was last updated.
627
+ * @format date-time
628
+ * @example "2023-06-07T05:39:56.961Z"
629
+ */
630
+ updatedAt?: string;
631
+ }
632
+ interface V1Beta1ProjectRequestBody {
633
+ /** The name of the project. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/> *Example:* `frontier-playground` */
634
+ name: string;
635
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the project. Can also be left empty. <br/> *Example:* `Frontier Playground` */
636
+ title?: string;
637
+ /** Metadata object for projects that can hold key value pairs defined in Project Metaschema. */
638
+ metadata?: object;
639
+ /** unique id of the organization to which project belongs */
640
+ orgId: string;
641
+ }
642
+ interface V1Beta1Relation {
643
+ id?: string;
644
+ /**
645
+ * The time the relation was created.
646
+ * @format date-time
647
+ * @example "2023-06-07T05:39:56.961Z"
648
+ */
649
+ createdAt?: string;
650
+ /**
651
+ * The time the relation was last updated.
652
+ * @format date-time
653
+ * @example "2023-06-07T05:39:56.961Z"
654
+ */
655
+ updatedAt?: string;
656
+ subjectSubRelation?: string;
657
+ relation?: string;
658
+ /** objectnamespace:id */
659
+ object?: string;
660
+ /** subjectnamespace:id */
661
+ subject?: string;
662
+ }
663
+ interface V1Beta1RelationRequestBody {
664
+ /** objectnamespace:uuid */
665
+ object?: string;
666
+ /** subjectnamespace:uuid */
667
+ subject?: string;
668
+ relation?: string;
669
+ subjectSubRelation?: string;
670
+ }
671
+ interface V1Beta1Resource {
672
+ id?: string;
673
+ /** Name of the resource. Must be unique within the project. */
674
+ name?: string;
675
+ /**
676
+ * The time the resource was created.
677
+ * @format date-time
678
+ * @example "2023-06-07T05:39:56.961Z"
679
+ */
680
+ createdAt?: string;
681
+ /**
682
+ * The time the resource was last updated.
683
+ * @format date-time
684
+ * @example "2023-06-07T05:39:56.961Z"
685
+ */
686
+ updatedAt?: string;
687
+ urn?: string;
688
+ projectId?: string;
689
+ namespace?: string;
690
+ principal?: string;
691
+ metadata?: object;
692
+ }
693
+ interface V1Beta1ResourceRequestBody {
694
+ /** The name of the resource. Must be unique within the project. <br/> *Example:* `my-resource` */
695
+ name: string;
696
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the resource. Can also be left empty. */
697
+ title?: string;
698
+ /** The namespace of the resource. The resource namespace are created when permissions for that resource is created in Frontier. If namespace doesn't exists the request will fail. <br/> *Example:* `compute/instance` */
699
+ namespace: string;
700
+ /**
701
+ * format namespace:uuid or just uuid for user
702
+ * UserID or ServiceUserID that should be marked as owner of the resource. If not provided, the current logged in user will be made the resource owner. <br/> *Example:* `user:92f69c3a-334b-4f25-90b8-4d4f3be6b825`
703
+ */
704
+ principal?: string;
705
+ metadata?: object;
706
+ }
707
+ interface V1Beta1Role {
708
+ id?: string;
709
+ name?: string;
710
+ permissions?: string[];
711
+ title?: string;
712
+ metadata?: object;
713
+ /**
714
+ * The time the role was created.
715
+ * @format date-time
716
+ * @example "2023-06-07T05:39:56.961Z"
717
+ */
718
+ createdAt?: string;
719
+ /**
720
+ * The time the role was last updated.
721
+ * @format date-time
722
+ * @example "2023-06-07T05:39:56.961Z"
723
+ */
724
+ updatedAt?: string;
725
+ orgId?: string;
726
+ state?: string;
727
+ }
728
+ interface V1Beta1RoleRequestBody {
729
+ name?: string;
730
+ permissions?: string[];
731
+ metadata?: object;
732
+ title?: string;
733
+ }
734
+ interface V1Beta1SecretCredential {
735
+ id?: string;
736
+ title?: string;
737
+ /**
738
+ * secret will only be returned once as part of the create process
739
+ * this value is never persisted in the system so if lost, can't be recovered
740
+ */
741
+ secret?: string;
742
+ /**
743
+ * The time when the secret was created.
744
+ * @format date-time
745
+ * @example "2023-06-07T05:39:56.961Z"
746
+ */
747
+ createdAt?: string;
748
+ }
749
+ interface V1Beta1ServiceUser {
750
+ id?: string;
751
+ /**
752
+ * User friendly name of the service user.
753
+ * @example "Order Service"
754
+ */
755
+ title?: string;
756
+ metadata?: object;
757
+ /**
758
+ * The time the user was created.
759
+ * @format date-time
760
+ * @example "2023-06-07T05:39:56.961Z"
761
+ */
762
+ createdAt?: string;
763
+ /**
764
+ * The time the user was last updated.
765
+ * @format date-time
766
+ * @example "2023-06-07T05:39:56.961Z"
767
+ */
768
+ updatedAt?: string;
769
+ state?: string;
770
+ orgId?: string;
771
+ }
772
+ interface V1Beta1ServiceUserKey {
773
+ id?: string;
774
+ title?: string;
775
+ principalId?: string;
776
+ publicKey?: string;
777
+ /**
778
+ * The time when the secret was created.
779
+ * @format date-time
780
+ * @example "2023-06-07T05:39:56.961Z"
781
+ */
782
+ createdAt?: string;
783
+ }
784
+ interface V1Beta1ServiceUserRequestBody {
785
+ /**
786
+ * User friendly name of the service user.
787
+ * @example "Order Service"
788
+ */
789
+ title?: string;
790
+ metadata?: object;
791
+ }
792
+ interface V1Beta1UpdateCurrentUserResponse {
793
+ user?: V1Beta1User;
794
+ }
795
+ interface V1Beta1UpdateGroupResponse {
796
+ group?: V1Beta1Group;
797
+ }
798
+ interface V1Beta1UpdateMetaSchemaResponse {
799
+ metaschema?: V1Beta1MetaSchema;
800
+ }
801
+ interface V1Beta1UpdateOrganizationResponse {
802
+ organization?: V1Beta1Organization;
803
+ }
804
+ interface V1Beta1UpdateOrganizationRoleResponse {
805
+ role?: V1Beta1Role;
806
+ }
807
+ interface V1Beta1UpdatePermissionResponse {
808
+ permission?: V1Beta1Permission;
809
+ }
810
+ interface V1Beta1UpdatePolicyResponse {
811
+ policies?: V1Beta1Policy[];
812
+ }
813
+ interface V1Beta1UpdateProjectResourceResponse {
814
+ resource?: V1Beta1Resource;
815
+ }
816
+ interface V1Beta1UpdateProjectResponse {
817
+ project?: V1Beta1Project;
818
+ }
819
+ interface V1Beta1UpdateUserResponse {
820
+ user?: V1Beta1User;
821
+ }
822
+ interface V1Beta1User {
823
+ id?: string;
824
+ /**
825
+ * can either be empty or must start with a character
826
+ * Unique name of the user.
827
+ * @example "johndoe"
828
+ */
829
+ name?: string;
830
+ /**
831
+ * Name of the user.
832
+ * @example "John Doe"
833
+ */
834
+ title?: string;
835
+ email?: string;
836
+ metadata?: object;
837
+ /**
838
+ * The time the user was created.
839
+ * @format date-time
840
+ * @example "2023-06-07T05:39:56.961Z"
841
+ */
842
+ createdAt?: string;
843
+ /**
844
+ * The time the user was last updated.
845
+ * @format date-time
846
+ * @example "2023-06-07T05:39:56.961Z"
847
+ */
848
+ updatedAt?: string;
849
+ state?: string;
850
+ }
851
+ interface V1Beta1UserRequestBody {
852
+ /** The name of the user. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores and must start with a letter. If not provided, Frontier automatically generates a name from the user email. */
853
+ name?: string;
854
+ /** The email of the user. The email must be unique within the entire Frontier instance.<br/>*Example:*`"john.doe@raystack.org"` */
855
+ email: string;
856
+ /** Metadata object for users that can hold key value pairs pre-defined in User Metaschema. The metadata object can be used to store arbitrary information about the user such as label, description etc. By default the user metaschema contains labels and descriptions for the user. Update the same to add more fields to the user metadata object. <br/>*Example:*`{"label": {"key1": "value1"}, "description": "User Description"}` */
857
+ metadata?: object;
858
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty. <br/>*Example:*`"John Doe"` */
859
+ title?: string;
860
+ }
861
+
862
+ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
863
+ /**
864
+ * @description Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state.
865
+ *
866
+ * @tags Group
867
+ * @name AdminServiceListGroups
868
+ * @summary List all groups
869
+ * @request GET:/v1beta1/admin/groups
870
+ * @secure
871
+ */
872
+ adminServiceListGroups: (query?: {
873
+ /** The organization id to filter by. */
874
+ orgId?: string;
875
+ /** The state to filter by. It can be enabled or disabled. */
876
+ state?: string;
877
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupsResponse, RpcStatus>>;
878
+ /**
879
+ * @description Lists all the organizations in a Frontier instance. It can be filtered by user and state.
880
+ *
881
+ * @tags Organization
882
+ * @name AdminServiceListAllOrganizations
883
+ * @summary List all organizations
884
+ * @request GET:/v1beta1/admin/organizations
885
+ * @secure
886
+ */
887
+ adminServiceListAllOrganizations: (query?: {
888
+ /** The user id to filter by. */
889
+ userId?: string;
890
+ /** The state to filter by. It can be enabled or disabled. */
891
+ state?: string;
892
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllOrganizationsResponse, RpcStatus>>;
893
+ /**
894
+ * @description Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state.
895
+ *
896
+ * @tags Project
897
+ * @name AdminServiceListProjects
898
+ * @summary List all projects
899
+ * @request GET:/v1beta1/admin/projects
900
+ * @secure
901
+ */
902
+ adminServiceListProjects: (query?: {
903
+ /** The organization id to filter by. */
904
+ orgId?: string;
905
+ /** The state to filter by. It can be enabled or disabled. */
906
+ state?: string;
907
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsResponse, RpcStatus>>;
908
+ /**
909
+ * No description
910
+ *
911
+ * @tags Relation
912
+ * @name AdminServiceListRelations
913
+ * @summary List all relations
914
+ * @request GET:/v1beta1/admin/relations
915
+ * @secure
916
+ */
917
+ adminServiceListRelations: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListRelationsResponse, RpcStatus>>;
918
+ /**
919
+ * @description Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace.
920
+ *
921
+ * @tags Resource
922
+ * @name AdminServiceListResources
923
+ * @summary List all resources
924
+ * @request GET:/v1beta1/admin/resources
925
+ * @secure
926
+ */
927
+ adminServiceListResources: (query?: {
928
+ /** The user id to filter by. */
929
+ userId?: string;
930
+ /** The project id to filter by. */
931
+ projectId?: string;
932
+ /** The organization id to filter by. */
933
+ organizationId?: string;
934
+ /** The namespace to filter by. */
935
+ namespace?: string;
936
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListResourcesResponse, RpcStatus>>;
937
+ /**
938
+ * @description Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state.
939
+ *
940
+ * @tags User
941
+ * @name AdminServiceListAllUsers
942
+ * @summary List all users
943
+ * @request GET:/v1beta1/admin/users
944
+ * @secure
945
+ */
946
+ adminServiceListAllUsers: (query?: {
947
+ /**
948
+ * The maximum number of users to return per page. The default is 50.
949
+ * @format int32
950
+ */
951
+ pageSize?: number;
952
+ /**
953
+ * The page number to return. The default is 1.
954
+ * @format int32
955
+ */
956
+ pageNum?: number;
957
+ /** The keyword to search for. It can be a user's name, email,metadata or id. */
958
+ keyword?: string;
959
+ /** The organization id to filter by. */
960
+ orgId?: string;
961
+ /** The group id to filter by. */
962
+ groupId?: string;
963
+ /** The state to filter by. It can be enabled or disabled. */
964
+ state?: string;
965
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllUsersResponse, RpcStatus>>;
966
+ /**
967
+ * @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
968
+ *
969
+ * @tags Authn
970
+ * @name FrontierServiceListAuthStrategies
971
+ * @summary List authentication strategies
972
+ * @request GET:/v1beta1/auth
973
+ * @secure
974
+ */
975
+ frontierServiceListAuthStrategies: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAuthStrategiesResponse, RpcStatus>>;
976
+ /**
977
+ * @description Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url.
978
+ *
979
+ * @tags Authn
980
+ * @name FrontierServiceAuthCallback
981
+ * @summary Callback from a strategy
982
+ * @request GET:/v1beta1/auth/callback
983
+ * @secure
984
+ */
985
+ frontierServiceAuthCallback: (query?: {
986
+ /** strategy_name will not be set for oidc but can be utilized for methods like email magic links */
987
+ strategyName?: string;
988
+ /** for oidc & magic links */
989
+ state?: string;
990
+ code?: string;
991
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
992
+ /**
993
+ * @description Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url.
994
+ *
995
+ * @tags Authn
996
+ * @name FrontierServiceAuthCallback2
997
+ * @summary Callback from a strategy
998
+ * @request POST:/v1beta1/auth/callback
999
+ * @secure
1000
+ */
1001
+ frontierServiceAuthCallback2: (body: V1Beta1AuthCallbackRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1002
+ /**
1003
+ * No description
1004
+ *
1005
+ * @tags Authz
1006
+ * @name FrontierServiceGetJwKs
1007
+ * @summary Get well known JWKs
1008
+ * @request GET:/v1beta1/auth/jwks
1009
+ * @secure
1010
+ */
1011
+ frontierServiceGetJwKs: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetJWKsResponse, RpcStatus>>;
1012
+ /**
1013
+ * No description
1014
+ *
1015
+ * @tags Authn
1016
+ * @name FrontierServiceAuthLogout
1017
+ * @summary Logout from a strategy
1018
+ * @request GET:/v1beta1/auth/logout
1019
+ * @secure
1020
+ */
1021
+ frontierServiceAuthLogout: (params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1022
+ /**
1023
+ * No description
1024
+ *
1025
+ * @tags Authn
1026
+ * @name FrontierServiceAuthLogout2
1027
+ * @summary Logout from a strategy
1028
+ * @request DELETE:/v1beta1/auth/logout
1029
+ * @secure
1030
+ */
1031
+ frontierServiceAuthLogout2: (params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1032
+ /**
1033
+ * @description Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication.
1034
+ *
1035
+ * @tags Authn
1036
+ * @name FrontierServiceAuthenticate
1037
+ * @summary Authenticate with a strategy
1038
+ * @request GET:/v1beta1/auth/register/{strategyName}
1039
+ * @secure
1040
+ */
1041
+ frontierServiceAuthenticate: (strategyName: string, query?: {
1042
+ /**
1043
+ * by default, location redirect header for starting authentication flow if applicable
1044
+ * will be skipped unless this is set to true, useful in browser
1045
+ *
1046
+ * If set to true, location header will be set for redirect
1047
+ */
1048
+ redirect?: boolean;
1049
+ /**
1050
+ * by default, after successful authentication no operation will be performed
1051
+ * to apply redirection in case of browsers, provide a url that will be used
1052
+ * for redirection after authentication
1053
+ *
1054
+ * URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
1055
+ */
1056
+ returnTo?: string;
1057
+ /**
1058
+ * email of the user for magic links
1059
+ *
1060
+ * Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
1061
+ */
1062
+ email?: string;
1063
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
1064
+ /**
1065
+ * @description Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication.
1066
+ *
1067
+ * @tags Authn
1068
+ * @name FrontierServiceAuthenticate2
1069
+ * @summary Authenticate with a strategy
1070
+ * @request POST:/v1beta1/auth/register/{strategyName}
1071
+ * @secure
1072
+ */
1073
+ frontierServiceAuthenticate2: (strategyName: string, body: {
1074
+ /**
1075
+ * by default, location redirect header for starting authentication flow if applicable
1076
+ * will be skipped unless this is set to true, useful in browser
1077
+ * If set to true, location header will be set for redirect
1078
+ */
1079
+ redirect?: boolean;
1080
+ /**
1081
+ * by default, after successful authentication no operation will be performed
1082
+ * to apply redirection in case of browsers, provide a url that will be used
1083
+ * for redirection after authentication
1084
+ * URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
1085
+ */
1086
+ returnTo?: string;
1087
+ /**
1088
+ * email of the user for magic links
1089
+ * Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
1090
+ */
1091
+ email?: string;
1092
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
1093
+ /**
1094
+ * @description Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources.
1095
+ *
1096
+ * @tags Authn
1097
+ * @name FrontierServiceAuthToken
1098
+ * @summary Generate access token by given credentials
1099
+ * @request POST:/v1beta1/auth/token
1100
+ * @secure
1101
+ */
1102
+ frontierServiceAuthToken: (body: V1Beta1AuthTokenRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthTokenResponse, RpcStatus>>;
1103
+ /**
1104
+ * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
1105
+ *
1106
+ * @tags Authz
1107
+ * @name FrontierServiceCheckResourcePermission
1108
+ * @summary Check
1109
+ * @request POST:/v1beta1/check
1110
+ * @secure
1111
+ */
1112
+ frontierServiceCheckResourcePermission: (body: V1Beta1CheckResourcePermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckResourcePermissionResponse, RpcStatus>>;
1113
+ /**
1114
+ * @description Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc
1115
+ *
1116
+ * @tags MetaSchema
1117
+ * @name FrontierServiceListMetaSchemas
1118
+ * @summary List metaschemas
1119
+ * @request GET:/v1beta1/meta/schemas
1120
+ * @secure
1121
+ */
1122
+ frontierServiceListMetaSchemas: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListMetaSchemasResponse, RpcStatus>>;
1123
+ /**
1124
+ * @description Create a new metadata schema. The metaschema **name** must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema **schema** must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema. <br/>*Example:* `{name:"user",schema:{"type":"object","properties":{"label":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":"string"}}}}`
1125
+ *
1126
+ * @tags MetaSchema
1127
+ * @name FrontierServiceCreateMetaSchema
1128
+ * @summary Create metaschema
1129
+ * @request POST:/v1beta1/meta/schemas
1130
+ * @secure
1131
+ */
1132
+ frontierServiceCreateMetaSchema: (body: V1Beta1MetaSchemaRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateMetaSchemaResponse, RpcStatus>>;
1133
+ /**
1134
+ * @description Get a metadata schema by ID.
1135
+ *
1136
+ * @tags MetaSchema
1137
+ * @name FrontierServiceGetMetaSchema
1138
+ * @summary Get metaschema
1139
+ * @request GET:/v1beta1/meta/schemas/{id}
1140
+ * @secure
1141
+ */
1142
+ frontierServiceGetMetaSchema: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetMetaSchemaResponse, RpcStatus>>;
1143
+ /**
1144
+ * @description Delete a metadata schema permanently. Once deleted the metaschema won't be used to validate the metadata. For example, if a metaschema(with `label` and `description` fields) is used to validate the metadata of a user, then deleting the metaschema will not validate the metadata of the user and metadata field can contain any key-value pair(and say another field called `foo` can be inserted in a user's metadata).
1145
+ *
1146
+ * @tags MetaSchema
1147
+ * @name FrontierServiceDeleteMetaSchema
1148
+ * @summary Delete metaschema
1149
+ * @request DELETE:/v1beta1/meta/schemas/{id}
1150
+ * @secure
1151
+ */
1152
+ frontierServiceDeleteMetaSchema: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1153
+ /**
1154
+ * @description Update a metadata schema. Only `schema` field of a metaschema can be updated. The metaschema `schema` must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema. <br/>*Example:* `{name:"user",schema:{"type":"object","properties":{"label":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":"string"}}}}`
1155
+ *
1156
+ * @tags MetaSchema
1157
+ * @name FrontierServiceUpdateMetaSchema
1158
+ * @summary Update metaschema
1159
+ * @request PUT:/v1beta1/meta/schemas/{id}
1160
+ * @secure
1161
+ */
1162
+ frontierServiceUpdateMetaSchema: (id: string, body: V1Beta1MetaSchemaRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateMetaSchemaResponse, RpcStatus>>;
1163
+ /**
1164
+ * @description Returns the list of all namespaces in a Frontier instance
1165
+ *
1166
+ * @tags Namespace
1167
+ * @name FrontierServiceListNamespaces
1168
+ * @summary Get all namespaces
1169
+ * @request GET:/v1beta1/namespaces
1170
+ * @secure
1171
+ */
1172
+ frontierServiceListNamespaces: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListNamespacesResponse, RpcStatus>>;
1173
+ /**
1174
+ * @description Returns a namespace by ID
1175
+ *
1176
+ * @tags Namespace
1177
+ * @name FrontierServiceGetNamespace
1178
+ * @summary Get namespace
1179
+ * @request GET:/v1beta1/namespaces/{id}
1180
+ * @secure
1181
+ */
1182
+ frontierServiceGetNamespace: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetNamespaceResponse, RpcStatus>>;
1183
+ /**
1184
+ * @description Returns a list of audit logs of an organization in Frontier.
1185
+ *
1186
+ * @tags AuditLog
1187
+ * @name FrontierServiceListOrganizationAuditLogs
1188
+ * @summary List audit logs
1189
+ * @request GET:/v1beta1/organization/{orgId}/auditlogs
1190
+ * @secure
1191
+ */
1192
+ frontierServiceListOrganizationAuditLogs: (orgId: string, query?: {
1193
+ source?: string;
1194
+ action?: string;
1195
+ /**
1196
+ * start_time and end_time are inclusive
1197
+ * @format date-time
1198
+ */
1199
+ startTime?: string;
1200
+ /** @format date-time */
1201
+ endTime?: string;
1202
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationAuditLogsResponse, RpcStatus>>;
1203
+ /**
1204
+ * @description Create new audit logs in a batch.
1205
+ *
1206
+ * @tags AuditLog
1207
+ * @name FrontierServiceCreateOrganizationAuditLogs
1208
+ * @summary Create audit log
1209
+ * @request POST:/v1beta1/organization/{orgId}/auditlogs
1210
+ * @secure
1211
+ */
1212
+ frontierServiceCreateOrganizationAuditLogs: (orgId: string, body: {
1213
+ logs?: V1Beta1AuditLog[];
1214
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1215
+ /**
1216
+ * @description Get an audit log by ID.
1217
+ *
1218
+ * @tags AuditLog
1219
+ * @name FrontierServiceGetOrganizationAuditLog
1220
+ * @summary Get audit log
1221
+ * @request GET:/v1beta1/organization/{orgId}/auditlogs/{id}
1222
+ * @secure
1223
+ */
1224
+ frontierServiceGetOrganizationAuditLog: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationAuditLogResponse, RpcStatus>>;
1225
+ /**
1226
+ * @description Returns a list of organizations. It can be filtered by userID or organization state.
1227
+ *
1228
+ * @tags Organization
1229
+ * @name FrontierServiceListOrganizations
1230
+ * @summary List organizations
1231
+ * @request GET:/v1beta1/organizations
1232
+ * @secure
1233
+ */
1234
+ frontierServiceListOrganizations: (query?: {
1235
+ /** The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed. */
1236
+ userId?: string;
1237
+ /** The state to filter by. It can be `enabled` or `disabled`. */
1238
+ state?: string;
1239
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsResponse, RpcStatus>>;
1240
+ /**
1241
+ * No description
1242
+ *
1243
+ * @tags Organization
1244
+ * @name FrontierServiceCreateOrganization
1245
+ * @summary Create organization
1246
+ * @request POST:/v1beta1/organizations
1247
+ * @secure
1248
+ */
1249
+ frontierServiceCreateOrganization: (body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationResponse, RpcStatus>>;
1250
+ /**
1251
+ * @description Get organization by ID or name
1252
+ *
1253
+ * @tags Organization
1254
+ * @name FrontierServiceGetOrganization
1255
+ * @summary Get organization
1256
+ * @request GET:/v1beta1/organizations/{id}
1257
+ * @secure
1258
+ */
1259
+ frontierServiceGetOrganization: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationResponse, RpcStatus>>;
1260
+ /**
1261
+ * @description Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier.
1262
+ *
1263
+ * @tags Organization
1264
+ * @name FrontierServiceDeleteOrganization
1265
+ * @summary Delete organization
1266
+ * @request DELETE:/v1beta1/organizations/{id}
1267
+ * @secure
1268
+ */
1269
+ frontierServiceDeleteOrganization: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1270
+ /**
1271
+ * @description Update organization by ID
1272
+ *
1273
+ * @tags Organization
1274
+ * @name FrontierServiceUpdateOrganization
1275
+ * @summary Update organization
1276
+ * @request PUT:/v1beta1/organizations/{id}
1277
+ * @secure
1278
+ */
1279
+ frontierServiceUpdateOrganization: (id: string, body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationResponse, RpcStatus>>;
1280
+ /**
1281
+ * @description Returns a list admins of an organization
1282
+ *
1283
+ * @tags Organization
1284
+ * @name FrontierServiceListOrganizationAdmins
1285
+ * @summary List organization admins
1286
+ * @request GET:/v1beta1/organizations/{id}/admins
1287
+ * @secure
1288
+ */
1289
+ frontierServiceListOrganizationAdmins: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationAdminsResponse, RpcStatus>>;
1290
+ /**
1291
+ * @description Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources.
1292
+ *
1293
+ * @tags Organization
1294
+ * @name FrontierServiceDisableOrganization
1295
+ * @summary Disable organization
1296
+ * @request POST:/v1beta1/organizations/{id}/disable
1297
+ * @secure
1298
+ */
1299
+ frontierServiceDisableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1300
+ /**
1301
+ * @description Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources.
1302
+ *
1303
+ * @tags Organization
1304
+ * @name FrontierServiceEnableOrganization
1305
+ * @summary Enable organization
1306
+ * @request POST:/v1beta1/organizations/{id}/enable
1307
+ * @secure
1308
+ */
1309
+ frontierServiceEnableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1310
+ /**
1311
+ * @description Get all projects that belong to an organization
1312
+ *
1313
+ * @tags Organization
1314
+ * @name FrontierServiceListOrganizationProjects
1315
+ * @summary Get organization projects
1316
+ * @request GET:/v1beta1/organizations/{id}/projects
1317
+ * @secure
1318
+ */
1319
+ frontierServiceListOrganizationProjects: (id: string, query?: {
1320
+ /** Filter projects by state. If not specified, all projects are returned. <br/> *Possible values:* `enabled` or `disabled` */
1321
+ state?: string;
1322
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationProjectsResponse, RpcStatus>>;
1323
+ /**
1324
+ * No description
1325
+ *
1326
+ * @tags Organization
1327
+ * @name FrontierServiceListOrganizationServiceUsers
1328
+ * @summary List organization service users
1329
+ * @request GET:/v1beta1/organizations/{id}/serviceusers
1330
+ * @secure
1331
+ */
1332
+ frontierServiceListOrganizationServiceUsers: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationServiceUsersResponse, RpcStatus>>;
1333
+ /**
1334
+ * No description
1335
+ *
1336
+ * @tags Organization
1337
+ * @name FrontierServiceListOrganizationUsers
1338
+ * @summary List organization users
1339
+ * @request GET:/v1beta1/organizations/{id}/users
1340
+ * @secure
1341
+ */
1342
+ frontierServiceListOrganizationUsers: (id: string, query?: {
1343
+ permissionFilter?: string;
1344
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationUsersResponse, RpcStatus>>;
1345
+ /**
1346
+ * @description Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists
1347
+ *
1348
+ * @tags Organization
1349
+ * @name FrontierServiceAddOrganizationUsers
1350
+ * @summary Add organization user
1351
+ * @request POST:/v1beta1/organizations/{id}/users
1352
+ * @secure
1353
+ */
1354
+ frontierServiceAddOrganizationUsers: (id: string, body: {
1355
+ /** List of user IDs to be added to the organization. */
1356
+ userIds?: string[];
1357
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1358
+ /**
1359
+ * @description Remove a user from an organization
1360
+ *
1361
+ * @tags Organization
1362
+ * @name FrontierServiceRemoveOrganizationUser
1363
+ * @summary Remove organization user
1364
+ * @request DELETE:/v1beta1/organizations/{id}/users/{userId}
1365
+ * @secure
1366
+ */
1367
+ frontierServiceRemoveOrganizationUser: (id: string, userId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1368
+ /**
1369
+ * @description Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled.
1370
+ *
1371
+ * @tags Group
1372
+ * @name FrontierServiceListOrganizationGroups
1373
+ * @summary List organization groups
1374
+ * @request GET:/v1beta1/organizations/{orgId}/groups
1375
+ * @secure
1376
+ */
1377
+ frontierServiceListOrganizationGroups: (orgId: string, query?: {
1378
+ /** The state of the group to filter by. It can be enabled or disabled. */
1379
+ state?: string;
1380
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationGroupsResponse, RpcStatus>>;
1381
+ /**
1382
+ * @description Create a new group in an organization which serves as a container for users. The group can be assigned roles and permissions and can be used to manage access to resources. Also a group can also be assigned to other groups.
1383
+ *
1384
+ * @tags Group
1385
+ * @name FrontierServiceCreateGroup
1386
+ * @summary Create group
1387
+ * @request POST:/v1beta1/organizations/{orgId}/groups
1388
+ * @secure
1389
+ */
1390
+ frontierServiceCreateGroup: (orgId: string, body: V1Beta1GroupRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateGroupResponse, RpcStatus>>;
1391
+ /**
1392
+ * No description
1393
+ *
1394
+ * @tags Group
1395
+ * @name FrontierServiceGetGroup
1396
+ * @summary Get group
1397
+ * @request GET:/v1beta1/organizations/{orgId}/groups/{id}
1398
+ * @secure
1399
+ */
1400
+ frontierServiceGetGroup: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetGroupResponse, RpcStatus>>;
1401
+ /**
1402
+ * @description Delete an organization group permanently and all of its relations
1403
+ *
1404
+ * @tags Group
1405
+ * @name FrontierServiceDeleteGroup
1406
+ * @summary Delete group
1407
+ * @request DELETE:/v1beta1/organizations/{orgId}/groups/{id}
1408
+ * @secure
1409
+ */
1410
+ frontierServiceDeleteGroup: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1411
+ /**
1412
+ * No description
1413
+ *
1414
+ * @tags Group
1415
+ * @name FrontierServiceUpdateGroup
1416
+ * @summary Update group
1417
+ * @request PUT:/v1beta1/organizations/{orgId}/groups/{id}
1418
+ * @secure
1419
+ */
1420
+ frontierServiceUpdateGroup: (orgId: string, id: string, body: V1Beta1GroupRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateGroupResponse, RpcStatus>>;
1421
+ /**
1422
+ * @description Sets the state of the group as disabled. The group will not be available for access control and the existing users in the group will not be able to access any resources that are assigned to the group. No other users can be added to the group while it is disabled.
1423
+ *
1424
+ * @tags Group
1425
+ * @name FrontierServiceDisableGroup
1426
+ * @summary Disable group
1427
+ * @request POST:/v1beta1/organizations/{orgId}/groups/{id}/disable
1428
+ * @secure
1429
+ */
1430
+ frontierServiceDisableGroup: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1431
+ /**
1432
+ * @description Sets the state of the group as enabled. The `enabled` flag is used to determine if the group can be used for access control.
1433
+ *
1434
+ * @tags Group
1435
+ * @name FrontierServiceEnableGroup
1436
+ * @summary Enable group
1437
+ * @request POST:/v1beta1/organizations/{orgId}/groups/{id}/enable
1438
+ * @secure
1439
+ */
1440
+ frontierServiceEnableGroup: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1441
+ /**
1442
+ * @description Returns a list of users that belong to a group.
1443
+ *
1444
+ * @tags Group
1445
+ * @name FrontierServiceListGroupUsers
1446
+ * @summary List group users
1447
+ * @request GET:/v1beta1/organizations/{orgId}/groups/{id}/users
1448
+ * @secure
1449
+ */
1450
+ frontierServiceListGroupUsers: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupUsersResponse, RpcStatus>>;
1451
+ /**
1452
+ * @description Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members.
1453
+ *
1454
+ * @tags Group
1455
+ * @name FrontierServiceAddGroupUsers
1456
+ * @summary Add group user
1457
+ * @request POST:/v1beta1/organizations/{orgId}/groups/{id}/users
1458
+ * @secure
1459
+ */
1460
+ frontierServiceAddGroupUsers: (orgId: string, id: string, body: {
1461
+ userIds?: string[];
1462
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1463
+ /**
1464
+ * @description Removes a principle(user and service-users) from a group. If the user is not in the group, the request will succeed but no changes will be made.
1465
+ *
1466
+ * @tags Group
1467
+ * @name FrontierServiceRemoveGroupUser
1468
+ * @summary Remove group user
1469
+ * @request DELETE:/v1beta1/organizations/{orgId}/groups/{id}/users/{userId}
1470
+ * @secure
1471
+ */
1472
+ frontierServiceRemoveGroupUser: (orgId: string, id: string, userId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1473
+ /**
1474
+ * @description Returns all pending invitations queued for an organization
1475
+ *
1476
+ * @tags Organization
1477
+ * @name FrontierServiceListOrganizationInvitations
1478
+ * @summary List pending invitations
1479
+ * @request GET:/v1beta1/organizations/{orgId}/invitations
1480
+ * @secure
1481
+ */
1482
+ frontierServiceListOrganizationInvitations: (orgId: string, query?: {
1483
+ /** user_id filter is the email id of user who are invited inside the organization. */
1484
+ userId?: string;
1485
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationInvitationsResponse, RpcStatus>>;
1486
+ /**
1487
+ * @description Invite users to an organization, if the user doesn't exists, it will be created and notified. Invitations expire in 7 days
1488
+ *
1489
+ * @tags Organization
1490
+ * @name FrontierServiceCreateOrganizationInvitation
1491
+ * @summary Invite user
1492
+ * @request POST:/v1beta1/organizations/{orgId}/invitations
1493
+ * @secure
1494
+ */
1495
+ frontierServiceCreateOrganizationInvitation: (orgId: string, body: {
1496
+ /** user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified */
1497
+ userId: string;
1498
+ /** list of group ids to which user needs to be added as a member. */
1499
+ groupIds?: string[];
1500
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationInvitationResponse, RpcStatus>>;
1501
+ /**
1502
+ * @description Returns a pending invitation queued for an organization
1503
+ *
1504
+ * @tags Organization
1505
+ * @name FrontierServiceGetOrganizationInvitation
1506
+ * @summary Get pending invitation
1507
+ * @request GET:/v1beta1/organizations/{orgId}/invitations/{id}
1508
+ * @secure
1509
+ */
1510
+ frontierServiceGetOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationInvitationResponse, RpcStatus>>;
1511
+ /**
1512
+ * @description Delete a pending invitation queued for an organization
1513
+ *
1514
+ * @tags Organization
1515
+ * @name FrontierServiceDeleteOrganizationInvitation
1516
+ * @summary Delete pending invitation
1517
+ * @request DELETE:/v1beta1/organizations/{orgId}/invitations/{id}
1518
+ * @secure
1519
+ */
1520
+ frontierServiceDeleteOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1521
+ /**
1522
+ * @description Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation
1523
+ *
1524
+ * @tags Organization
1525
+ * @name FrontierServiceAcceptOrganizationInvitation
1526
+ * @summary Accept pending invitation
1527
+ * @request POST:/v1beta1/organizations/{orgId}/invitations/{id}/accept
1528
+ * @secure
1529
+ */
1530
+ frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1531
+ /**
1532
+ * @description Returns a list of custom roles created under an organization with their associated permissions
1533
+ *
1534
+ * @tags Role
1535
+ * @name FrontierServiceListOrganizationRoles
1536
+ * @summary List organization roles
1537
+ * @request GET:/v1beta1/organizations/{orgId}/roles
1538
+ * @secure
1539
+ */
1540
+ frontierServiceListOrganizationRoles: (orgId: string, query?: {
1541
+ state?: string;
1542
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationRolesResponse, RpcStatus>>;
1543
+ /**
1544
+ * @description Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization.
1545
+ *
1546
+ * @tags Role
1547
+ * @name FrontierServiceCreateOrganizationRole
1548
+ * @summary Create organization role
1549
+ * @request POST:/v1beta1/organizations/{orgId}/roles
1550
+ * @secure
1551
+ */
1552
+ frontierServiceCreateOrganizationRole: (orgId: string, body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationRoleResponse, RpcStatus>>;
1553
+ /**
1554
+ * @description Returns a custom role under an organization along with its associated permissions
1555
+ *
1556
+ * @tags Role
1557
+ * @name FrontierServiceGetOrganizationRole
1558
+ * @summary Get organization role
1559
+ * @request GET:/v1beta1/organizations/{orgId}/roles/{id}
1560
+ * @secure
1561
+ */
1562
+ frontierServiceGetOrganizationRole: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationRoleResponse, RpcStatus>>;
1563
+ /**
1564
+ * @description Delete a custom role and all of its relations under an organization permanently.
1565
+ *
1566
+ * @tags Role
1567
+ * @name FrontierServiceDeleteOrganizationRole
1568
+ * @summary Delete organization role
1569
+ * @request DELETE:/v1beta1/organizations/{orgId}/roles/{id}
1570
+ * @secure
1571
+ */
1572
+ frontierServiceDeleteOrganizationRole: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1573
+ /**
1574
+ * @description Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization.
1575
+ *
1576
+ * @tags Role
1577
+ * @name FrontierServiceUpdateOrganizationRole
1578
+ * @summary Update organization role
1579
+ * @request PUT:/v1beta1/organizations/{orgId}/roles/{id}
1580
+ * @secure
1581
+ */
1582
+ frontierServiceUpdateOrganizationRole: (orgId: string, id: string, body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationRoleResponse, RpcStatus>>;
1583
+ /**
1584
+ * No description
1585
+ *
1586
+ * @tags Permission
1587
+ * @name FrontierServiceListPermissions
1588
+ * @summary Get all permissions
1589
+ * @request GET:/v1beta1/permissions
1590
+ * @secure
1591
+ */
1592
+ frontierServiceListPermissions: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPermissionsResponse, RpcStatus>>;
1593
+ /**
1594
+ * @description Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance.
1595
+ *
1596
+ * @tags Permission
1597
+ * @name AdminServiceCreatePermission
1598
+ * @summary Create platform permission
1599
+ * @request POST:/v1beta1/permissions
1600
+ * @secure
1601
+ */
1602
+ adminServiceCreatePermission: (body: V1Beta1CreatePermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePermissionResponse, RpcStatus>>;
1603
+ /**
1604
+ * @description Returns a permission by ID
1605
+ *
1606
+ * @tags Permission
1607
+ * @name FrontierServiceGetPermission
1608
+ * @summary Get permission
1609
+ * @request GET:/v1beta1/permissions/{id}
1610
+ * @secure
1611
+ */
1612
+ frontierServiceGetPermission: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetPermissionResponse, RpcStatus>>;
1613
+ /**
1614
+ * No description
1615
+ *
1616
+ * @tags Permission
1617
+ * @name AdminServiceDeletePermission
1618
+ * @summary Delete platform permission
1619
+ * @request DELETE:/v1beta1/permissions/{id}
1620
+ * @secure
1621
+ */
1622
+ adminServiceDeletePermission: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1623
+ /**
1624
+ * @description Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance.
1625
+ *
1626
+ * @tags Permission
1627
+ * @name AdminServiceUpdatePermission
1628
+ * @summary Update platform permission
1629
+ * @request PUT:/v1beta1/permissions/{id}
1630
+ * @secure
1631
+ */
1632
+ adminServiceUpdatePermission: (id: string, body: V1Beta1PermissionRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePermissionResponse, RpcStatus>>;
1633
+ /**
1634
+ * @description Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group.
1635
+ *
1636
+ * @tags Policy
1637
+ * @name AdminServiceListPolicies
1638
+ * @summary List all policies
1639
+ * @request GET:/v1beta1/policies
1640
+ * @secure
1641
+ */
1642
+ adminServiceListPolicies: (query?: {
1643
+ /** The organization id to filter by. */
1644
+ orgId?: string;
1645
+ /** The project id to filter by. */
1646
+ projectId?: string;
1647
+ /** The user id to filter by. */
1648
+ userId?: string;
1649
+ /** The role id to filter by. */
1650
+ roleId?: string;
1651
+ /** The group id to filter by. */
1652
+ groupId?: string;
1653
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPoliciesResponse, RpcStatus>>;
1654
+ /**
1655
+ * @description Creates a policy
1656
+ *
1657
+ * @tags Policy
1658
+ * @name FrontierServiceCreatePolicy
1659
+ * @summary Create policy
1660
+ * @request POST:/v1beta1/policies
1661
+ * @secure
1662
+ */
1663
+ frontierServiceCreatePolicy: (body: V1Beta1PolicyRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePolicyResponse, RpcStatus>>;
1664
+ /**
1665
+ * @description Returns a policy by ID
1666
+ *
1667
+ * @tags Policy
1668
+ * @name FrontierServiceGetPolicy
1669
+ * @summary Get policy
1670
+ * @request GET:/v1beta1/policies/{id}
1671
+ * @secure
1672
+ */
1673
+ frontierServiceGetPolicy: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetPolicyResponse, RpcStatus>>;
1674
+ /**
1675
+ * @description Delete a policy all of its relations permanently.
1676
+ *
1677
+ * @tags Policy
1678
+ * @name FrontierServiceDeletePolicy
1679
+ * @summary Delete Policy
1680
+ * @request DELETE:/v1beta1/policies/{id}
1681
+ * @secure
1682
+ */
1683
+ frontierServiceDeletePolicy: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1684
+ /**
1685
+ * @description Updates a policy by ID
1686
+ *
1687
+ * @tags Policy
1688
+ * @name FrontierServiceUpdatePolicy
1689
+ * @summary Update policy
1690
+ * @request PUT:/v1beta1/policies/{id}
1691
+ * @secure
1692
+ */
1693
+ frontierServiceUpdatePolicy: (id: string, body: V1Beta1PolicyRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePolicyResponse, RpcStatus>>;
1694
+ /**
1695
+ * No description
1696
+ *
1697
+ * @tags Project
1698
+ * @name FrontierServiceCreateProject
1699
+ * @summary Create project
1700
+ * @request POST:/v1beta1/projects
1701
+ * @secure
1702
+ */
1703
+ frontierServiceCreateProject: (body: V1Beta1ProjectRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectResponse, RpcStatus>>;
1704
+ /**
1705
+ * @description Returns a project by ID
1706
+ *
1707
+ * @tags Project
1708
+ * @name FrontierServiceGetProject
1709
+ * @summary Get project
1710
+ * @request GET:/v1beta1/projects/{id}
1711
+ * @secure
1712
+ */
1713
+ frontierServiceGetProject: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectResponse, RpcStatus>>;
1714
+ /**
1715
+ * @description Delete a project all of its relations permanently.
1716
+ *
1717
+ * @tags Project
1718
+ * @name FrontierServiceDeleteProject
1719
+ * @summary Delete Project
1720
+ * @request DELETE:/v1beta1/projects/{id}
1721
+ * @secure
1722
+ */
1723
+ frontierServiceDeleteProject: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1724
+ /**
1725
+ * @description Updates a project by ID
1726
+ *
1727
+ * @tags Project
1728
+ * @name FrontierServiceUpdateProject
1729
+ * @summary Update project
1730
+ * @request PUT:/v1beta1/projects/{id}
1731
+ * @secure
1732
+ */
1733
+ frontierServiceUpdateProject: (id: string, body: V1Beta1ProjectRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProjectResponse, RpcStatus>>;
1734
+ /**
1735
+ * @description Returns a collection of admins of a project
1736
+ *
1737
+ * @tags Project
1738
+ * @name FrontierServiceListProjectAdmins
1739
+ * @summary List project admins
1740
+ * @request GET:/v1beta1/projects/{id}/admins
1741
+ * @secure
1742
+ */
1743
+ frontierServiceListProjectAdmins: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectAdminsResponse, RpcStatus>>;
1744
+ /**
1745
+ * No description
1746
+ *
1747
+ * @tags Project
1748
+ * @name FrontierServiceDisableProject
1749
+ * @summary Disable project
1750
+ * @request POST:/v1beta1/projects/{id}/disable
1751
+ * @secure
1752
+ */
1753
+ frontierServiceDisableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1754
+ /**
1755
+ * No description
1756
+ *
1757
+ * @tags Project
1758
+ * @name FrontierServiceEnableProject
1759
+ * @summary Enable project
1760
+ * @request POST:/v1beta1/projects/{id}/enable
1761
+ * @secure
1762
+ */
1763
+ frontierServiceEnableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1764
+ /**
1765
+ * @description Returns a collection of users of a project. Filter by user permissions is supported.
1766
+ *
1767
+ * @tags Project
1768
+ * @name FrontierServiceListProjectUsers
1769
+ * @summary List project users
1770
+ * @request GET:/v1beta1/projects/{id}/users
1771
+ * @secure
1772
+ */
1773
+ frontierServiceListProjectUsers: (id: string, query?: {
1774
+ permissionFilter?: string;
1775
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectUsersResponse, RpcStatus>>;
1776
+ /**
1777
+ * No description
1778
+ *
1779
+ * @tags Resource
1780
+ * @name FrontierServiceListProjectResources
1781
+ * @summary Get all resources
1782
+ * @request GET:/v1beta1/projects/{projectId}/resources
1783
+ * @secure
1784
+ */
1785
+ frontierServiceListProjectResources: (projectId: string, query?: {
1786
+ namespace?: string;
1787
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectResourcesResponse, RpcStatus>>;
1788
+ /**
1789
+ * @description Creates a resource in a project
1790
+ *
1791
+ * @tags Resource
1792
+ * @name FrontierServiceCreateProjectResource
1793
+ * @summary Create resource
1794
+ * @request POST:/v1beta1/projects/{projectId}/resources
1795
+ * @secure
1796
+ */
1797
+ frontierServiceCreateProjectResource: (projectId: string, body: V1Beta1ResourceRequestBody, query?: {
1798
+ /** Autogenerated if skipped. */
1799
+ id?: string;
1800
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectResourceResponse, RpcStatus>>;
1801
+ /**
1802
+ * @description Returns a project resource by ID
1803
+ *
1804
+ * @tags Resource
1805
+ * @name FrontierServiceGetProjectResource
1806
+ * @summary Get resource
1807
+ * @request GET:/v1beta1/projects/{projectId}/resources/{id}
1808
+ * @secure
1809
+ */
1810
+ frontierServiceGetProjectResource: (projectId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectResourceResponse, RpcStatus>>;
1811
+ /**
1812
+ * @description Deletes a resource from a project permanently
1813
+ *
1814
+ * @tags Resource
1815
+ * @name FrontierServiceDeleteProjectResource
1816
+ * @summary Delete resource
1817
+ * @request DELETE:/v1beta1/projects/{projectId}/resources/{id}
1818
+ * @secure
1819
+ */
1820
+ frontierServiceDeleteProjectResource: (projectId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1821
+ /**
1822
+ * @description Updates a resource in a project
1823
+ *
1824
+ * @tags Resource
1825
+ * @name FrontierServiceUpdateProjectResource
1826
+ * @summary Update resource
1827
+ * @request PUT:/v1beta1/projects/{projectId}/resources/{id}
1828
+ * @secure
1829
+ */
1830
+ frontierServiceUpdateProjectResource: (projectId: string, id: string, body: V1Beta1ResourceRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProjectResourceResponse, RpcStatus>>;
1831
+ /**
1832
+ * No description
1833
+ *
1834
+ * @tags Relation
1835
+ * @name FrontierServiceCreateRelation
1836
+ * @summary Create relation
1837
+ * @request POST:/v1beta1/relations
1838
+ * @secure
1839
+ */
1840
+ frontierServiceCreateRelation: (body: V1Beta1RelationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateRelationResponse, RpcStatus>>;
1841
+ /**
1842
+ * @description Returns a relation by ID
1843
+ *
1844
+ * @tags Relation
1845
+ * @name FrontierServiceGetRelation
1846
+ * @summary Get relation
1847
+ * @request GET:/v1beta1/relations/{id}
1848
+ * @secure
1849
+ */
1850
+ frontierServiceGetRelation: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetRelationResponse, RpcStatus>>;
1851
+ /**
1852
+ * @description Remove a subject having a relation from an object
1853
+ *
1854
+ * @tags Relation
1855
+ * @name FrontierServiceDeleteRelation
1856
+ * @summary Delete relation
1857
+ * @request DELETE:/v1beta1/relations/{relation}/object/{object}/subject/{subject}
1858
+ * @secure
1859
+ */
1860
+ frontierServiceDeleteRelation: (relation: string, object: string, subject: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1861
+ /**
1862
+ * @description Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions
1863
+ *
1864
+ * @tags Role
1865
+ * @name FrontierServiceListRoles
1866
+ * @summary List platform roles
1867
+ * @request GET:/v1beta1/roles
1868
+ * @secure
1869
+ */
1870
+ frontierServiceListRoles: (query?: {
1871
+ state?: string;
1872
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListRolesResponse, RpcStatus>>;
1873
+ /**
1874
+ * @description Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance.
1875
+ *
1876
+ * @tags Role
1877
+ * @name AdminServiceCreateRole
1878
+ * @summary Create platform role
1879
+ * @request POST:/v1beta1/roles
1880
+ * @secure
1881
+ */
1882
+ adminServiceCreateRole: (body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateRoleResponse, RpcStatus>>;
1883
+ /**
1884
+ * @description Delete a platform wide role and all of its relations.
1885
+ *
1886
+ * @tags Role
1887
+ * @name AdminServiceDeleteRole
1888
+ * @summary Delete platform role
1889
+ * @request DELETE:/v1beta1/roles/{id}
1890
+ * @secure
1891
+ */
1892
+ adminServiceDeleteRole: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1893
+ /**
1894
+ * @description Returns the service user of an organization in a Frontier instance. It can be filter by it's state
1895
+ *
1896
+ * @tags ServiceUser
1897
+ * @name FrontierServiceListServiceUsers
1898
+ * @summary List org service users
1899
+ * @request GET:/v1beta1/serviceusers
1900
+ * @secure
1901
+ */
1902
+ frontierServiceListServiceUsers: (query: {
1903
+ /** The organization ID to filter service users by. */
1904
+ orgId: string;
1905
+ /** The state to filter by. It can be enabled or disabled. */
1906
+ state?: string;
1907
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUsersResponse, RpcStatus>>;
1908
+ /**
1909
+ * @description Create a service user.
1910
+ *
1911
+ * @tags ServiceUser
1912
+ * @name FrontierServiceCreateServiceUser
1913
+ * @summary Create service user
1914
+ * @request POST:/v1beta1/serviceusers
1915
+ * @secure
1916
+ */
1917
+ frontierServiceCreateServiceUser: (body: V1Beta1CreateServiceUserRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, RpcStatus>>;
1918
+ /**
1919
+ * @description Get service user details by its id.
1920
+ *
1921
+ * @tags ServiceUser
1922
+ * @name FrontierServiceGetServiceUser
1923
+ * @summary Get service user
1924
+ * @request GET:/v1beta1/serviceusers/{id}
1925
+ * @secure
1926
+ */
1927
+ frontierServiceGetServiceUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetServiceUserResponse, RpcStatus>>;
1928
+ /**
1929
+ * @description Delete a service user permanently and all of its relations (keys, organizations, roles, etc)
1930
+ *
1931
+ * @tags ServiceUser
1932
+ * @name FrontierServiceDeleteServiceUser
1933
+ * @summary Delete service user
1934
+ * @request DELETE:/v1beta1/serviceusers/{id}
1935
+ * @secure
1936
+ */
1937
+ frontierServiceDeleteServiceUser: (id: string, query?: {
1938
+ orgId?: string;
1939
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1940
+ /**
1941
+ * @description List all the keys of a service user with its details except jwk.
1942
+ *
1943
+ * @tags ServiceUser
1944
+ * @name FrontierServiceListServiceUserKeys
1945
+ * @summary List service user keys
1946
+ * @request GET:/v1beta1/serviceusers/{id}/keys
1947
+ * @secure
1948
+ */
1949
+ frontierServiceListServiceUserKeys: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserKeysResponse, RpcStatus>>;
1950
+ /**
1951
+ * @description Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client.
1952
+ *
1953
+ * @tags ServiceUser
1954
+ * @name FrontierServiceCreateServiceUserKey
1955
+ * @summary Create service user key
1956
+ * @request POST:/v1beta1/serviceusers/{id}/keys
1957
+ * @secure
1958
+ */
1959
+ frontierServiceCreateServiceUserKey: (id: string, body: {
1960
+ title?: string;
1961
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserKeyResponse, RpcStatus>>;
1962
+ /**
1963
+ * @description Get a service user public RSA JWK set.
1964
+ *
1965
+ * @tags ServiceUser
1966
+ * @name FrontierServiceGetServiceUserKey
1967
+ * @summary Get service user key
1968
+ * @request GET:/v1beta1/serviceusers/{id}/keys/{keyId}
1969
+ * @secure
1970
+ */
1971
+ frontierServiceGetServiceUserKey: (id: string, keyId: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetServiceUserKeyResponse, RpcStatus>>;
1972
+ /**
1973
+ * @description Delete a service user key permanently.
1974
+ *
1975
+ * @tags ServiceUser
1976
+ * @name FrontierServiceDeleteServiceUserKey
1977
+ * @summary Delete service user key
1978
+ * @request DELETE:/v1beta1/serviceusers/{id}/keys/{keyId}
1979
+ * @secure
1980
+ */
1981
+ frontierServiceDeleteServiceUserKey: (id: string, keyId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1982
+ /**
1983
+ * @description List all the secrets of a service user.
1984
+ *
1985
+ * @tags ServiceUser
1986
+ * @name FrontierServiceListServiceUserSecrets
1987
+ * @summary List service user secrets
1988
+ * @request GET:/v1beta1/serviceusers/{id}/secrets
1989
+ * @secure
1990
+ */
1991
+ frontierServiceListServiceUserSecrets: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserSecretsResponse, RpcStatus>>;
1992
+ /**
1993
+ * @description Generate a service user secret and return it. The secret value will not be persisted and should be securely stored by client.
1994
+ *
1995
+ * @tags ServiceUser
1996
+ * @name FrontierServiceCreateServiceUserSecret
1997
+ * @summary Create service user secret
1998
+ * @request POST:/v1beta1/serviceusers/{id}/secrets
1999
+ * @secure
2000
+ */
2001
+ frontierServiceCreateServiceUserSecret: (id: string, body: {
2002
+ title?: string;
2003
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserSecretResponse, RpcStatus>>;
2004
+ /**
2005
+ * @description Delete a service user secret credential.
2006
+ *
2007
+ * @tags ServiceUser
2008
+ * @name FrontierServiceDeleteServiceUserSecret
2009
+ * @summary Delete service user secret
2010
+ * @request DELETE:/v1beta1/serviceusers/{id}/secrets/{secretId}
2011
+ * @secure
2012
+ */
2013
+ frontierServiceDeleteServiceUserSecret: (id: string, secretId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2014
+ /**
2015
+ * @description Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination.
2016
+ *
2017
+ * @tags User
2018
+ * @name FrontierServiceListUsers
2019
+ * @summary List public users
2020
+ * @request GET:/v1beta1/users
2021
+ * @secure
2022
+ */
2023
+ frontierServiceListUsers: (query?: {
2024
+ /**
2025
+ * The maximum number of users to return per page. The default is 50.
2026
+ * @format int32
2027
+ */
2028
+ pageSize?: number;
2029
+ /**
2030
+ * The page number to return. The default is 1.
2031
+ * @format int32
2032
+ */
2033
+ pageNum?: number;
2034
+ /** The keyword to search for in name or email. */
2035
+ keyword?: string;
2036
+ /** The organization ID to filter users by. */
2037
+ orgId?: string;
2038
+ /** The group id to filter by. */
2039
+ groupId?: string;
2040
+ /** The state to filter by. It can be enabled or disabled. */
2041
+ state?: string;
2042
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUsersResponse, RpcStatus>>;
2043
+ /**
2044
+ * @description Create a user with the given details. A user is not attached to an organization or a group by default,and can be invited to the org/group. The name of the user must be unique within the entire Frontier instance. If a user name is not provided, Frontier automatically generates a name from the user email. The user metadata is validated against the user metaschema. By default the user metaschema contains `labels` and `descriptions` for the user. The `title` field can be optionally added for a user-friendly name. <br/><br/>*Example:*`{"email":"john.doe@raystack.org","title":"John Doe",metadata:{"label": {"key1": "value1"}, "description": "User Description"}}`
2045
+ *
2046
+ * @tags User
2047
+ * @name FrontierServiceCreateUser
2048
+ * @summary Create user
2049
+ * @request POST:/v1beta1/users
2050
+ */
2051
+ frontierServiceCreateUser: (body: V1Beta1UserRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateUserResponse, RpcStatus>>;
2052
+ /**
2053
+ * @description Get a user by id searched over all organizations in Frontier.
2054
+ *
2055
+ * @tags User
2056
+ * @name FrontierServiceGetUser
2057
+ * @summary Get user
2058
+ * @request GET:/v1beta1/users/{id}
2059
+ * @secure
2060
+ */
2061
+ frontierServiceGetUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetUserResponse, RpcStatus>>;
2062
+ /**
2063
+ * @description Delete an user permanently forever and all of its relations (organizations, groups, etc)
2064
+ *
2065
+ * @tags User
2066
+ * @name FrontierServiceDeleteUser
2067
+ * @summary Delete user
2068
+ * @request DELETE:/v1beta1/users/{id}
2069
+ * @secure
2070
+ */
2071
+ frontierServiceDeleteUser: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2072
+ /**
2073
+ * No description
2074
+ *
2075
+ * @tags User
2076
+ * @name FrontierServiceUpdateUser
2077
+ * @summary Update user
2078
+ * @request PUT:/v1beta1/users/{id}
2079
+ * @secure
2080
+ */
2081
+ frontierServiceUpdateUser: (id: string, body: V1Beta1UserRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateUserResponse, RpcStatus>>;
2082
+ /**
2083
+ * @description Sets the state of the user as diabled.The user's membership to groups and organizations will still exist along with all it's roles for access control, but the user will not be able to log in and access the Frontier instance.
2084
+ *
2085
+ * @tags User
2086
+ * @name FrontierServiceDisableUser
2087
+ * @summary Disable user
2088
+ * @request POST:/v1beta1/users/{id}/disable
2089
+ * @secure
2090
+ */
2091
+ frontierServiceDisableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2092
+ /**
2093
+ * @description Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance.
2094
+ *
2095
+ * @tags User
2096
+ * @name FrontierServiceEnableUser
2097
+ * @summary Enable user
2098
+ * @request POST:/v1beta1/users/{id}/enable
2099
+ * @secure
2100
+ */
2101
+ frontierServiceEnableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2102
+ /**
2103
+ * @description Lists all the groups a user belongs to across all organization in Frontier. To get the groups of a user in a specific organization, use the org_id filter in the query parameter.
2104
+ *
2105
+ * @tags User
2106
+ * @name FrontierServiceListUserGroups
2107
+ * @summary List user groups
2108
+ * @request GET:/v1beta1/users/{id}/groups
2109
+ * @secure
2110
+ */
2111
+ frontierServiceListUserGroups: (id: string, query?: {
2112
+ /** The organization ID to filter groups by. If not provided, groups from all organizations are returned. */
2113
+ orgId?: string;
2114
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserGroupsResponse, RpcStatus>>;
2115
+ /**
2116
+ * @description List all the invitations sent to a user.
2117
+ *
2118
+ * @tags User
2119
+ * @name FrontierServiceListUserInvitations
2120
+ * @summary List user invitations
2121
+ * @request GET:/v1beta1/users/{id}/invitations
2122
+ * @secure
2123
+ */
2124
+ frontierServiceListUserInvitations: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserInvitationsResponse, RpcStatus>>;
2125
+ /**
2126
+ * @description Get all the organizations a user belongs to.
2127
+ *
2128
+ * @tags User
2129
+ * @name FrontierServiceGetOrganizationsByUser
2130
+ * @summary Get user organizations
2131
+ * @request GET:/v1beta1/users/{id}/organizations
2132
+ * @secure
2133
+ */
2134
+ frontierServiceGetOrganizationsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByUserResponse, RpcStatus>>;
2135
+ /**
2136
+ * @description Get all the projects a user belongs to.
2137
+ *
2138
+ * @tags User
2139
+ * @name FrontierServiceGetProjectsByUser
2140
+ * @summary Get user projects
2141
+ * @request GET:/v1beta1/users/{id}/projects
2142
+ * @secure
2143
+ */
2144
+ frontierServiceGetProjectsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectsByUserResponse, RpcStatus>>;
2145
+ /**
2146
+ * No description
2147
+ *
2148
+ * @tags User
2149
+ * @name FrontierServiceGetCurrentUser
2150
+ * @summary Get current user
2151
+ * @request GET:/v1beta1/users/self
2152
+ * @secure
2153
+ */
2154
+ frontierServiceGetCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetCurrentUserResponse, RpcStatus>>;
2155
+ /**
2156
+ * No description
2157
+ *
2158
+ * @tags User
2159
+ * @name FrontierServiceUpdateCurrentUser
2160
+ * @summary Update current user
2161
+ * @request PUT:/v1beta1/users/self
2162
+ * @secure
2163
+ */
2164
+ frontierServiceUpdateCurrentUser: (body: V1Beta1UserRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateCurrentUserResponse, RpcStatus>>;
2165
+ /**
2166
+ * No description
2167
+ *
2168
+ * @tags User
2169
+ * @name FrontierServiceListCurrentUserGroups
2170
+ * @summary List my groups
2171
+ * @request GET:/v1beta1/users/self/groups
2172
+ * @secure
2173
+ */
2174
+ frontierServiceListCurrentUserGroups: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserGroupsResponse, RpcStatus>>;
2175
+ /**
2176
+ * @description Get all organizations the current user belongs to
2177
+ *
2178
+ * @tags User
2179
+ * @name FrontierServiceGetOrganizationsByCurrentUser
2180
+ * @summary Get my organizations
2181
+ * @request GET:/v1beta1/users/self/organizations
2182
+ * @secure
2183
+ */
2184
+ frontierServiceGetOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationsByCurrentUserResponse, RpcStatus>>;
2185
+ /**
2186
+ * @description Get all projects the current user belongs to
2187
+ *
2188
+ * @tags User
2189
+ * @name FrontierServiceGetProjectsByCurrentUser
2190
+ * @summary Get my projects
2191
+ * @request GET:/v1beta1/users/self/projects
2192
+ * @secure
2193
+ */
2194
+ frontierServiceGetProjectsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectsByCurrentUserResponse, RpcStatus>>;
2195
+ }
2196
+
2197
+ declare const FrontierClient: typeof V1Beta1;
3
2198
 
4
- export { Frontier };
2199
+ export { FrontierClient };