@raystack/frontier 0.0.0 → 0.0.2

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