@raystack/frontier 0.29.1 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4315 @@
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;
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 BillingAccountAddress {
61
+ line1?: string;
62
+ line2?: string;
63
+ city?: string;
64
+ state?: string;
65
+ postal_code?: string;
66
+ country?: string;
67
+ }
68
+ interface BillingAccountBalance {
69
+ /** @format int64 */
70
+ amount?: string;
71
+ currency?: string;
72
+ /** @format date-time */
73
+ updated_at?: string;
74
+ }
75
+ interface BillingAccountTax {
76
+ /**
77
+ * tax type like "vat", "gst", "sales_tax" or if it's
78
+ * provider specific us_ein, uk_vat, in_gst, etc
79
+ */
80
+ type?: string;
81
+ /** unique identifier provided by the tax agency */
82
+ id?: string;
83
+ }
84
+ interface ChangeSubscriptionRequestPhaseChange {
85
+ /** should the upcoming changes be cancelled */
86
+ cancel_upcoming_changes?: boolean;
87
+ }
88
+ interface ChangeSubscriptionRequestPlanChange {
89
+ /** plan to change to */
90
+ plan?: string;
91
+ /** should the change be immediate or at the end of the current billing period */
92
+ immediate?: boolean;
93
+ }
94
+ interface ProductBehaviorConfig {
95
+ /** @format int64 */
96
+ credit_amount?: string;
97
+ /** @format int64 */
98
+ seat_limit?: string;
99
+ /** @format int64 */
100
+ min_quantity?: string;
101
+ /** @format int64 */
102
+ max_quantity?: string;
103
+ }
104
+ interface SubscriptionPhase {
105
+ /** @format date-time */
106
+ effective_at?: string;
107
+ plan_id?: string;
108
+ reason?: string;
109
+ }
110
+ interface WebhookSecret {
111
+ id?: string;
112
+ value?: string;
113
+ }
114
+ interface ProtobufAny {
115
+ '@type'?: string;
116
+ [key: string]: any;
117
+ }
118
+ /**
119
+ * `NullValue` is a singleton enumeration to represent the null value for the
120
+ * `Value` type union.
121
+ *
122
+ * The JSON representation for `NullValue` is JSON `null`.
123
+ *
124
+ * - NULL_VALUE: Null value.
125
+ * @default "NULL_VALUE"
126
+ */
127
+ declare enum ProtobufNullValue {
128
+ NULL_VALUE = "NULL_VALUE"
129
+ }
130
+ interface RpcStatus {
131
+ /** @format int32 */
132
+ code?: number;
133
+ message?: string;
134
+ details?: ProtobufAny[];
135
+ }
136
+ type V1Beta1AcceptOrganizationInvitationResponse = object;
137
+ type V1Beta1AddGroupUsersResponse = object;
138
+ type V1Beta1AddOrganizationUsersResponse = object;
139
+ interface V1Beta1AddPlatformUserRequest {
140
+ /** The user id to add to the platform. */
141
+ user_id?: string;
142
+ /** The service user id to add to the platform. */
143
+ serviceuser_id?: string;
144
+ /** The relation to add as in the platform. It can be admin or member. */
145
+ relation: string;
146
+ }
147
+ type V1Beta1AddPlatformUserResponse = object;
148
+ interface V1Beta1AuditLog {
149
+ /** A unique identifier of the audit log if not supplied will be autogenerated */
150
+ id?: string;
151
+ /**
152
+ * Source service generating the event
153
+ * The source service generating the event.
154
+ * @example "auth"
155
+ */
156
+ source: string;
157
+ /** Action performed, e.g. project.create, user.update, serviceuser.delete */
158
+ action: string;
159
+ /** Actor performing the action */
160
+ actor?: V1Beta1AuditLogActor;
161
+ /** Target of the action */
162
+ target?: V1Beta1AuditLogTarget;
163
+ /** Context contains additional information about the event */
164
+ context?: Record<string, string>;
165
+ /**
166
+ * The time the log was created.
167
+ * @format date-time
168
+ * @example "2023-06-07T05:39:56.961Z"
169
+ */
170
+ created_at?: string;
171
+ }
172
+ interface V1Beta1AuditLogActor {
173
+ id?: string;
174
+ type?: string;
175
+ name?: string;
176
+ }
177
+ interface V1Beta1AuditLogTarget {
178
+ id?: string;
179
+ type?: string;
180
+ name?: string;
181
+ }
182
+ interface V1Beta1AuthCallbackRequest {
183
+ /** strategy_name will not be set for oidc but can be utilized for methods like email magic links */
184
+ strategy_name?: string;
185
+ /** for oidc & magic links */
186
+ state?: string;
187
+ code?: string;
188
+ /**
189
+ * state_options has additional configurations for the authentication flow at hand
190
+ * for example, in case of passkey, it has challenge and public key
191
+ */
192
+ state_options?: object;
193
+ }
194
+ type V1Beta1AuthCallbackResponse = object;
195
+ type V1Beta1AuthLogoutResponse = object;
196
+ interface V1Beta1AuthStrategy {
197
+ name?: string;
198
+ params?: object;
199
+ }
200
+ interface V1Beta1AuthTokenRequest {
201
+ /**
202
+ * grant_type can be one of the following:
203
+ * - client_credentials
204
+ * - urn:ietf:params:oauth:grant-type:jwt-bearer
205
+ */
206
+ grant_type?: string;
207
+ /** client_id and client_secret are required for grant_type client_credentials */
208
+ client_id?: string;
209
+ client_secret?: string;
210
+ /** assertion is required for grant_type urn:ietf:params:oauth:grant-type:jwt-bearer */
211
+ assertion?: string;
212
+ }
213
+ interface V1Beta1AuthTokenResponse {
214
+ access_token?: string;
215
+ token_type?: string;
216
+ }
217
+ interface V1Beta1AuthenticateResponse {
218
+ /** endpoint specifies the url to redirect user for starting authentication flow */
219
+ endpoint?: string;
220
+ /** state is used for resuming authentication flow in applicable strategies */
221
+ state?: string;
222
+ /** state_options has additional configurations for the authentication flow at hand */
223
+ state_options?: object;
224
+ }
225
+ interface V1Beta1BatchCheckPermissionBody {
226
+ /** the permission name to check. <br/> *Example:* `get` or `list` */
227
+ permission: string;
228
+ /** `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` */
229
+ resource?: string;
230
+ }
231
+ interface V1Beta1BatchCheckPermissionRequest {
232
+ bodies?: V1Beta1BatchCheckPermissionBody[];
233
+ }
234
+ interface V1Beta1BatchCheckPermissionResponse {
235
+ pairs?: V1Beta1BatchCheckPermissionResponsePair[];
236
+ }
237
+ interface V1Beta1BatchCheckPermissionResponsePair {
238
+ body?: V1Beta1BatchCheckPermissionBody;
239
+ status?: boolean;
240
+ }
241
+ interface V1Beta1BillingAccount {
242
+ id?: string;
243
+ org_id?: string;
244
+ name?: string;
245
+ email?: string;
246
+ phone?: string;
247
+ address?: BillingAccountAddress;
248
+ provider_id?: string;
249
+ provider?: string;
250
+ currency?: string;
251
+ state?: string;
252
+ tax_data?: BillingAccountTax[];
253
+ metadata?: object;
254
+ /** @format date-time */
255
+ created_at?: string;
256
+ /** @format date-time */
257
+ updated_at?: string;
258
+ organization?: V1Beta1Organization;
259
+ }
260
+ interface V1Beta1BillingAccountRequestBody {
261
+ name?: string;
262
+ email?: string;
263
+ phone?: string;
264
+ address?: BillingAccountAddress;
265
+ currency?: string;
266
+ tax_data?: BillingAccountTax[];
267
+ metadata?: object;
268
+ }
269
+ interface V1Beta1BillingTransaction {
270
+ id?: string;
271
+ customer_id?: string;
272
+ /** additional metadata for storing event/service that triggered this usage */
273
+ source?: string;
274
+ /** @format int64 */
275
+ amount?: string;
276
+ type?: string;
277
+ description?: string;
278
+ /** user_id is the user that triggered this usage */
279
+ user_id?: string;
280
+ metadata?: object;
281
+ /** @format date-time */
282
+ created_at?: string;
283
+ /** @format date-time */
284
+ updated_at?: string;
285
+ user?: V1Beta1User;
286
+ customer?: V1Beta1BillingAccount;
287
+ }
288
+ type V1Beta1BillingWebhookCallbackResponse = object;
289
+ type V1Beta1CancelSubscriptionResponse = object;
290
+ interface V1Beta1ChangeSubscriptionResponse {
291
+ phase?: SubscriptionPhase;
292
+ }
293
+ interface V1Beta1CheckFeatureEntitlementRequest {
294
+ org_id?: string;
295
+ /** ID of the billing account to update the subscription for */
296
+ billing_id?: string;
297
+ /**
298
+ * either provide billing_id of the org or API can infer the default
299
+ * billing ID from either org_id or project_id, not both
300
+ */
301
+ project_id?: string;
302
+ /** feature or product name */
303
+ feature?: string;
304
+ }
305
+ interface V1Beta1CheckFeatureEntitlementResponse {
306
+ status?: boolean;
307
+ }
308
+ interface V1Beta1CheckFederatedResourcePermissionRequest {
309
+ /** the subject to check. <br/> *Example:* `user:..uuidofuser..` */
310
+ subject: string;
311
+ /** `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` */
312
+ resource: string;
313
+ /** the permission name to check. <br/> *Example:* `get`, `list`, `compute.instance.create` */
314
+ permission: string;
315
+ }
316
+ interface V1Beta1CheckFederatedResourcePermissionResponse {
317
+ status?: boolean;
318
+ }
319
+ interface V1Beta1CheckResourcePermissionRequest {
320
+ /** Deprecated. Use `resource` field instead. */
321
+ object_id?: string;
322
+ /** Deprecated. Use `resource` field instead. */
323
+ object_namespace?: string;
324
+ /** the permission name to check. <br/> *Example:* `get`, `list`, `compute.instance.create` */
325
+ permission: string;
326
+ /** `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` */
327
+ resource?: string;
328
+ }
329
+ interface V1Beta1CheckResourcePermissionResponse {
330
+ status?: boolean;
331
+ }
332
+ interface V1Beta1CheckoutProductBody {
333
+ product?: string;
334
+ /** @format int64 */
335
+ quantity?: string;
336
+ }
337
+ interface V1Beta1CheckoutSession {
338
+ id?: string;
339
+ checkout_url?: string;
340
+ success_url?: string;
341
+ cancel_url?: string;
342
+ state?: string;
343
+ plan?: string;
344
+ product?: string;
345
+ metadata?: object;
346
+ /** @format date-time */
347
+ created_at?: string;
348
+ /** @format date-time */
349
+ updated_at?: string;
350
+ /** @format date-time */
351
+ expire_at?: string;
352
+ }
353
+ interface V1Beta1CheckoutSetupBody {
354
+ payment_method?: boolean;
355
+ customer_portal?: boolean;
356
+ }
357
+ interface V1Beta1CheckoutSubscriptionBody {
358
+ plan?: string;
359
+ skip_trial?: boolean;
360
+ cancel_after_trial?: boolean;
361
+ /**
362
+ * provider_coupon_id is the coupon code that will be applied to the subscription
363
+ * generated by the billing provider, this will be deprecated once coupons are
364
+ * managed by the platform
365
+ */
366
+ provider_coupon_id?: string;
367
+ }
368
+ interface V1Beta1CreateBillingAccountResponse {
369
+ /** Created billing account */
370
+ billing_account?: V1Beta1BillingAccount;
371
+ }
372
+ interface V1Beta1CreateBillingUsageRequest {
373
+ org_id?: string;
374
+ /** ID of the billing account to update the subscription for */
375
+ billing_id?: string;
376
+ /**
377
+ * either provide billing_id of the org or API can infer the default
378
+ * billing ID from either org_id or project_id, not both
379
+ */
380
+ project_id?: string;
381
+ /** Usage to create */
382
+ usages?: V1Beta1Usage[];
383
+ }
384
+ type V1Beta1CreateBillingUsageResponse = object;
385
+ interface V1Beta1CreateCheckoutResponse {
386
+ /** Checkout session */
387
+ checkout_session?: V1Beta1CheckoutSession;
388
+ }
389
+ interface V1Beta1CreateCurrentUserPreferencesRequest {
390
+ bodies?: V1Beta1PreferenceRequestBody[];
391
+ }
392
+ interface V1Beta1CreateCurrentUserPreferencesResponse {
393
+ preferences?: V1Beta1Preference[];
394
+ }
395
+ interface V1Beta1CreateFeatureRequest {
396
+ /** Feature to create */
397
+ body?: V1Beta1FeatureRequestBody;
398
+ }
399
+ interface V1Beta1CreateFeatureResponse {
400
+ /** Created feature */
401
+ feature?: V1Beta1Feature;
402
+ }
403
+ interface V1Beta1CreateGroupPreferencesResponse {
404
+ preferences?: V1Beta1Preference[];
405
+ }
406
+ interface V1Beta1CreateGroupResponse {
407
+ group?: V1Beta1Group;
408
+ }
409
+ interface V1Beta1CreateMetaSchemaResponse {
410
+ metaschema?: V1Beta1MetaSchema;
411
+ }
412
+ type V1Beta1CreateOrganizationAuditLogsResponse = object;
413
+ interface V1Beta1CreateOrganizationDomainResponse {
414
+ domain?: V1Beta1Domain;
415
+ }
416
+ interface V1Beta1CreateOrganizationInvitationResponse {
417
+ invitations?: V1Beta1Invitation[];
418
+ }
419
+ interface V1Beta1CreateOrganizationPreferencesResponse {
420
+ preferences?: V1Beta1Preference[];
421
+ }
422
+ interface V1Beta1CreateOrganizationResponse {
423
+ organization?: V1Beta1Organization;
424
+ }
425
+ interface V1Beta1CreateOrganizationRoleResponse {
426
+ role?: V1Beta1Role;
427
+ }
428
+ interface V1Beta1CreatePermissionRequest {
429
+ bodies?: V1Beta1PermissionRequestBody[];
430
+ }
431
+ interface V1Beta1CreatePermissionResponse {
432
+ permissions?: V1Beta1Permission[];
433
+ }
434
+ interface V1Beta1CreatePlanRequest {
435
+ /** Plan to create */
436
+ body?: V1Beta1PlanRequestBody;
437
+ }
438
+ interface V1Beta1CreatePlanResponse {
439
+ /** Created plan */
440
+ plan?: V1Beta1Plan;
441
+ }
442
+ interface V1Beta1CreatePolicyForProjectBody {
443
+ /** unique id of the role to which policy is assigned */
444
+ role_id: string;
445
+ /** 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` */
446
+ title?: string;
447
+ /** 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` */
448
+ principal: string;
449
+ }
450
+ type V1Beta1CreatePolicyForProjectResponse = object;
451
+ interface V1Beta1CreatePolicyResponse {
452
+ policy?: V1Beta1Policy;
453
+ }
454
+ interface V1Beta1CreatePreferencesRequest {
455
+ preferences?: V1Beta1PreferenceRequestBody[];
456
+ }
457
+ interface V1Beta1CreatePreferencesResponse {
458
+ preference?: V1Beta1Preference[];
459
+ }
460
+ interface V1Beta1CreateProductRequest {
461
+ /** Product to create */
462
+ body?: V1Beta1ProductRequestBody;
463
+ }
464
+ interface V1Beta1CreateProductResponse {
465
+ /** Created product */
466
+ product?: V1Beta1Product;
467
+ }
468
+ interface V1Beta1CreateProjectPreferencesResponse {
469
+ preferences?: V1Beta1Preference[];
470
+ }
471
+ interface V1Beta1CreateProjectResourceResponse {
472
+ resource?: V1Beta1Resource;
473
+ }
474
+ interface V1Beta1CreateProjectResponse {
475
+ project?: V1Beta1Project;
476
+ }
477
+ interface V1Beta1CreateRelationResponse {
478
+ relation?: V1Beta1Relation;
479
+ }
480
+ interface V1Beta1CreateRoleResponse {
481
+ role?: V1Beta1Role;
482
+ }
483
+ interface V1Beta1CreateServiceUserCredentialResponse {
484
+ secret?: V1Beta1SecretCredential;
485
+ }
486
+ interface V1Beta1CreateServiceUserJWKResponse {
487
+ key?: V1Beta1KeyCredential;
488
+ }
489
+ interface V1Beta1CreateServiceUserRequest {
490
+ body?: V1Beta1ServiceUserRequestBody;
491
+ /** The organization ID to which the service user belongs to. */
492
+ org_id: string;
493
+ }
494
+ interface V1Beta1CreateServiceUserResponse {
495
+ serviceuser?: V1Beta1ServiceUser;
496
+ }
497
+ interface V1Beta1CreateServiceUserTokenResponse {
498
+ token?: V1Beta1ServiceUserToken;
499
+ }
500
+ interface V1Beta1CreateUserPreferencesResponse {
501
+ preferences?: V1Beta1Preference[];
502
+ }
503
+ interface V1Beta1CreateUserResponse {
504
+ user?: V1Beta1User;
505
+ }
506
+ interface V1Beta1CreateWebhookRequest {
507
+ body?: V1Beta1WebhookRequestBody;
508
+ }
509
+ interface V1Beta1CreateWebhookResponse {
510
+ webhook?: V1Beta1Webhook;
511
+ }
512
+ interface V1Beta1DelegatedCheckoutResponse {
513
+ /** subscription if created */
514
+ subscription?: V1Beta1Subscription;
515
+ /** product if bought */
516
+ product?: V1Beta1Product;
517
+ }
518
+ type V1Beta1DeleteBillingAccountResponse = object;
519
+ type V1Beta1DeleteGroupResponse = object;
520
+ type V1Beta1DeleteMetaSchemaResponse = object;
521
+ type V1Beta1DeleteOrganizationDomainResponse = object;
522
+ type V1Beta1DeleteOrganizationInvitationResponse = object;
523
+ type V1Beta1DeleteOrganizationResponse = object;
524
+ type V1Beta1DeleteOrganizationRoleResponse = object;
525
+ type V1Beta1DeletePermissionResponse = object;
526
+ type V1Beta1DeletePolicyResponse = object;
527
+ type V1Beta1DeleteProjectResourceResponse = object;
528
+ type V1Beta1DeleteProjectResponse = object;
529
+ type V1Beta1DeleteRelationResponse = object;
530
+ type V1Beta1DeleteRoleResponse = object;
531
+ type V1Beta1DeleteServiceUserCredentialResponse = object;
532
+ type V1Beta1DeleteServiceUserJWKResponse = object;
533
+ type V1Beta1DeleteServiceUserResponse = object;
534
+ type V1Beta1DeleteServiceUserTokenResponse = object;
535
+ type V1Beta1DeleteUserResponse = object;
536
+ type V1Beta1DeleteWebhookResponse = object;
537
+ interface V1Beta1DescribePreferencesResponse {
538
+ traits?: V1Beta1PreferenceTrait[];
539
+ }
540
+ type V1Beta1DisableBillingAccountResponse = object;
541
+ type V1Beta1DisableGroupResponse = object;
542
+ type V1Beta1DisableOrganizationResponse = object;
543
+ type V1Beta1DisableProjectResponse = object;
544
+ type V1Beta1DisableUserResponse = object;
545
+ interface V1Beta1Domain {
546
+ /**
547
+ * The domain id
548
+ * @example "943e4567-e89b-12d3-a456-426655440000"
549
+ */
550
+ id?: string;
551
+ /**
552
+ * The domain name
553
+ * @example "raystack.org"
554
+ */
555
+ name?: string;
556
+ /**
557
+ * The organization id
558
+ * @example "123e4567-e89b-12d3-a456-426655440000"
559
+ */
560
+ org_id?: string;
561
+ /**
562
+ * The dns TXT record token to verify the domain
563
+ * @example "_frontier-domain-verification=LB6U2lSQgGS55HOy6kpWFqkngRC8TMEjyrakfmYC2D0s+nfy/WkFSg=="
564
+ */
565
+ token?: string;
566
+ /**
567
+ * The domain state either pending or verified
568
+ * @example "pending"
569
+ */
570
+ state?: string;
571
+ /**
572
+ * The time the domain whitelist request was created
573
+ * @format date-time
574
+ * @example "2023-06-07T05:39:56.961Z"
575
+ */
576
+ created_at?: string;
577
+ /**
578
+ * The time the org domain was updated
579
+ * @format date-time
580
+ * @example "2023-06-07T05:39:56.961Z"
581
+ */
582
+ updated_at?: string;
583
+ }
584
+ type V1Beta1EnableBillingAccountResponse = object;
585
+ type V1Beta1EnableGroupResponse = object;
586
+ type V1Beta1EnableOrganizationResponse = object;
587
+ type V1Beta1EnableProjectResponse = object;
588
+ type V1Beta1EnableUserResponse = object;
589
+ interface V1Beta1Feature {
590
+ id?: string;
591
+ /** machine friendly name */
592
+ name?: string;
593
+ product_ids?: string[];
594
+ /** human friendly name */
595
+ title?: string;
596
+ metadata?: object;
597
+ /** @format date-time */
598
+ created_at?: string;
599
+ /** @format date-time */
600
+ updated_at?: string;
601
+ }
602
+ interface V1Beta1FeatureRequestBody {
603
+ /** machine friendly name */
604
+ name?: string;
605
+ /** human friendly title */
606
+ title?: string;
607
+ product_ids?: string[];
608
+ metadata?: object;
609
+ }
610
+ interface V1Beta1GetBillingAccountResponse {
611
+ /** Billing account */
612
+ billing_account?: V1Beta1BillingAccount;
613
+ /** List of payment methods */
614
+ payment_methods?: V1Beta1PaymentMethod[];
615
+ }
616
+ interface V1Beta1GetBillingBalanceResponse {
617
+ /** Balance of the billing account */
618
+ balance?: BillingAccountBalance;
619
+ }
620
+ interface V1Beta1GetCheckoutResponse {
621
+ /** Checkout session */
622
+ checkout_session?: V1Beta1CheckoutSession;
623
+ }
624
+ interface V1Beta1GetCurrentUserResponse {
625
+ user?: V1Beta1User;
626
+ serviceuser?: V1Beta1ServiceUser;
627
+ }
628
+ interface V1Beta1GetFeatureResponse {
629
+ /** Feature */
630
+ feature?: V1Beta1Feature;
631
+ }
632
+ interface V1Beta1GetGroupResponse {
633
+ group?: V1Beta1Group;
634
+ }
635
+ /** GetJWKsResponse is a valid JSON Web Key Set as specififed in rfc 7517 */
636
+ interface V1Beta1GetJWKsResponse {
637
+ keys?: V1Beta1JSONWebKey[];
638
+ }
639
+ interface V1Beta1GetMetaSchemaResponse {
640
+ metaschema?: V1Beta1MetaSchema;
641
+ }
642
+ interface V1Beta1GetNamespaceResponse {
643
+ namespace?: V1Beta1Namespace;
644
+ }
645
+ interface V1Beta1GetOrganizationAuditLogResponse {
646
+ log?: V1Beta1AuditLog;
647
+ }
648
+ interface V1Beta1GetOrganizationDomainResponse {
649
+ domain?: V1Beta1Domain;
650
+ }
651
+ interface V1Beta1GetOrganizationInvitationResponse {
652
+ invitation?: V1Beta1Invitation;
653
+ }
654
+ interface V1Beta1GetOrganizationResponse {
655
+ organization?: V1Beta1Organization;
656
+ }
657
+ interface V1Beta1GetOrganizationRoleResponse {
658
+ role?: V1Beta1Role;
659
+ }
660
+ interface V1Beta1GetPermissionResponse {
661
+ permission?: V1Beta1Permission;
662
+ }
663
+ interface V1Beta1GetPlanResponse {
664
+ /** Plan */
665
+ plan?: V1Beta1Plan;
666
+ }
667
+ interface V1Beta1GetPolicyResponse {
668
+ policy?: V1Beta1Policy;
669
+ }
670
+ interface V1Beta1GetProductResponse {
671
+ /** Product */
672
+ product?: V1Beta1Product;
673
+ }
674
+ interface V1Beta1GetProjectResourceResponse {
675
+ resource?: V1Beta1Resource;
676
+ }
677
+ interface V1Beta1GetProjectResponse {
678
+ project?: V1Beta1Project;
679
+ }
680
+ interface V1Beta1GetRelationResponse {
681
+ relation?: V1Beta1Relation;
682
+ }
683
+ interface V1Beta1GetServiceUserJWKResponse {
684
+ keys?: V1Beta1JSONWebKey[];
685
+ }
686
+ interface V1Beta1GetServiceUserResponse {
687
+ serviceuser?: V1Beta1ServiceUser;
688
+ }
689
+ interface V1Beta1GetSubscriptionResponse {
690
+ subscription?: V1Beta1Subscription;
691
+ }
692
+ interface V1Beta1GetUpcomingInvoiceResponse {
693
+ /** Upcoming invoice */
694
+ invoice?: V1Beta1Invoice;
695
+ }
696
+ interface V1Beta1GetUserResponse {
697
+ user?: V1Beta1User;
698
+ }
699
+ interface V1Beta1Group {
700
+ id?: string;
701
+ name?: string;
702
+ title?: string;
703
+ org_id?: string;
704
+ metadata?: object;
705
+ /**
706
+ * The time the group was created.
707
+ * @format date-time
708
+ * @example "2023-06-07T05:39:56.961Z"
709
+ */
710
+ created_at?: string;
711
+ /**
712
+ * The time the group was last updated.
713
+ * @format date-time
714
+ * @example "2023-06-07T05:39:56.961Z"
715
+ */
716
+ updated_at?: string;
717
+ users?: V1Beta1User[];
718
+ /**
719
+ * The number of members explicitly added in the project.
720
+ * @format int32
721
+ * @example 2
722
+ */
723
+ members_count?: number;
724
+ }
725
+ interface V1Beta1GroupRequestBody {
726
+ /** 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. */
727
+ name: string;
728
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the group. Can also be left empty. */
729
+ title?: string;
730
+ /** 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"}` */
731
+ metadata?: object;
732
+ }
733
+ interface V1Beta1HasTrialedResponse {
734
+ /** Has the billing account trialed the plan */
735
+ trialed?: boolean;
736
+ }
737
+ interface V1Beta1Invitation {
738
+ /**
739
+ * The unique invitation identifier.
740
+ * @example "k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
741
+ */
742
+ id?: string;
743
+ /**
744
+ * The user email of the invited user.
745
+ * @example "john.doe@raystack.org"
746
+ */
747
+ user_id?: string;
748
+ /**
749
+ * The organization id to which the user is invited.
750
+ * @example "b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
751
+ */
752
+ org_id?: string;
753
+ /**
754
+ * The list of group ids to which the user is invited.
755
+ * @example "c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
756
+ */
757
+ group_ids?: string[];
758
+ /**
759
+ * The metadata of the invitation.
760
+ * @example {"key":"value"}
761
+ */
762
+ metadata?: object;
763
+ /**
764
+ * The time when the invitation was created.
765
+ * @format date-time
766
+ * @example "2023-06-07T05:39:56.961Z"
767
+ */
768
+ created_at?: string;
769
+ /**
770
+ * The time when the invitation expires.
771
+ * @format date-time
772
+ * @example "2023-06-07T05:39:56.961Z"
773
+ */
774
+ expires_at?: string;
775
+ /**
776
+ * The list of role ids to which the user is invited in an organization.
777
+ * @example "d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
778
+ */
779
+ role_ids?: string[];
780
+ }
781
+ interface V1Beta1Invoice {
782
+ id?: string;
783
+ customer_id?: string;
784
+ provider_id?: string;
785
+ state?: string;
786
+ currency?: string;
787
+ /** @format int64 */
788
+ amount?: string;
789
+ hosted_url?: string;
790
+ /**
791
+ * The date on which payment for this invoice is due
792
+ * @format date-time
793
+ */
794
+ due_date?: string;
795
+ /**
796
+ * The date when this invoice is in effect.
797
+ * @format date-time
798
+ */
799
+ effective_at?: string;
800
+ /** @format date-time */
801
+ period_start_at?: string;
802
+ /** @format date-time */
803
+ period_end_at?: string;
804
+ metadata?: object;
805
+ /** @format date-time */
806
+ created_at?: string;
807
+ customer?: V1Beta1BillingAccount;
808
+ }
809
+ /** JSON Web Key as specified in RFC 7517 */
810
+ interface V1Beta1JSONWebKey {
811
+ /** Key Type. */
812
+ kty?: string;
813
+ /** Algorithm. */
814
+ alg?: string;
815
+ /** Permitted uses for the public keys. */
816
+ use?: string;
817
+ /** Key ID. */
818
+ kid?: string;
819
+ /** Used for RSA keys. */
820
+ n?: string;
821
+ /** Used for RSA keys. */
822
+ e?: string;
823
+ /** Used for ECDSA keys. */
824
+ x?: string;
825
+ /** Used for ECDSA keys. */
826
+ y?: string;
827
+ /** Used for ECDSA keys. */
828
+ crv?: string;
829
+ }
830
+ type V1Beta1JoinOrganizationResponse = object;
831
+ interface V1Beta1KeyCredential {
832
+ type?: string;
833
+ kid?: string;
834
+ principal_id?: string;
835
+ /** RSA private key as string */
836
+ private_key?: string;
837
+ }
838
+ interface V1Beta1ListAllBillingAccountsResponse {
839
+ billing_accounts?: V1Beta1BillingAccount[];
840
+ }
841
+ interface V1Beta1ListAllInvoicesResponse {
842
+ invoices?: V1Beta1Invoice[];
843
+ }
844
+ interface V1Beta1ListAllOrganizationsResponse {
845
+ organizations?: V1Beta1Organization[];
846
+ }
847
+ interface V1Beta1ListAllUsersResponse {
848
+ /** @format int32 */
849
+ count?: number;
850
+ users?: V1Beta1User[];
851
+ }
852
+ interface V1Beta1ListAuthStrategiesResponse {
853
+ strategies?: V1Beta1AuthStrategy[];
854
+ }
855
+ interface V1Beta1ListBillingAccountsResponse {
856
+ /** List of billing accounts */
857
+ billing_accounts?: V1Beta1BillingAccount[];
858
+ }
859
+ interface V1Beta1ListBillingTransactionsResponse {
860
+ /** List of transactions */
861
+ transactions?: V1Beta1BillingTransaction[];
862
+ }
863
+ interface V1Beta1ListCheckoutsResponse {
864
+ /** List of checkouts */
865
+ checkout_sessions?: V1Beta1CheckoutSession[];
866
+ }
867
+ interface V1Beta1ListCurrentUserGroupsResponse {
868
+ groups?: V1Beta1Group[];
869
+ access_pairs?: V1Beta1ListCurrentUserGroupsResponseAccessPair[];
870
+ }
871
+ interface V1Beta1ListCurrentUserGroupsResponseAccessPair {
872
+ group_id?: string;
873
+ permissions?: string[];
874
+ }
875
+ interface V1Beta1ListCurrentUserInvitationsResponse {
876
+ invitations?: V1Beta1Invitation[];
877
+ orgs?: V1Beta1Organization[];
878
+ }
879
+ interface V1Beta1ListCurrentUserPreferencesResponse {
880
+ preferences?: V1Beta1Preference[];
881
+ }
882
+ interface V1Beta1ListFeaturesResponse {
883
+ features?: V1Beta1Feature[];
884
+ }
885
+ interface V1Beta1ListGroupPreferencesResponse {
886
+ preferences?: V1Beta1Preference[];
887
+ }
888
+ interface V1Beta1ListGroupUsersResponse {
889
+ users?: V1Beta1User[];
890
+ role_pairs?: V1Beta1ListGroupUsersResponseRolePair[];
891
+ }
892
+ interface V1Beta1ListGroupUsersResponseRolePair {
893
+ user_id?: string;
894
+ roles?: V1Beta1Role[];
895
+ }
896
+ interface V1Beta1ListGroupsResponse {
897
+ groups?: V1Beta1Group[];
898
+ }
899
+ interface V1Beta1ListInvoicesResponse {
900
+ /** List of invoices */
901
+ invoices?: V1Beta1Invoice[];
902
+ }
903
+ interface V1Beta1ListMetaSchemasResponse {
904
+ metaschemas?: V1Beta1MetaSchema[];
905
+ }
906
+ interface V1Beta1ListNamespacesResponse {
907
+ namespaces?: V1Beta1Namespace[];
908
+ }
909
+ interface V1Beta1ListOrganizationAdminsResponse {
910
+ users?: V1Beta1User[];
911
+ }
912
+ interface V1Beta1ListOrganizationAuditLogsResponse {
913
+ logs?: V1Beta1AuditLog[];
914
+ }
915
+ interface V1Beta1ListOrganizationDomainsResponse {
916
+ domains?: V1Beta1Domain[];
917
+ }
918
+ interface V1Beta1ListOrganizationGroupsResponse {
919
+ groups?: V1Beta1Group[];
920
+ }
921
+ interface V1Beta1ListOrganizationInvitationsResponse {
922
+ invitations?: V1Beta1Invitation[];
923
+ }
924
+ interface V1Beta1ListOrganizationPreferencesResponse {
925
+ preferences?: V1Beta1Preference[];
926
+ }
927
+ interface V1Beta1ListOrganizationProjectsResponse {
928
+ projects?: V1Beta1Project[];
929
+ }
930
+ interface V1Beta1ListOrganizationRolesResponse {
931
+ roles?: V1Beta1Role[];
932
+ }
933
+ interface V1Beta1ListOrganizationServiceUsersResponse {
934
+ serviceusers?: V1Beta1ServiceUser[];
935
+ }
936
+ interface V1Beta1ListOrganizationUsersResponse {
937
+ users?: V1Beta1User[];
938
+ role_pairs?: V1Beta1ListOrganizationUsersResponseRolePair[];
939
+ }
940
+ interface V1Beta1ListOrganizationUsersResponseRolePair {
941
+ user_id?: string;
942
+ roles?: V1Beta1Role[];
943
+ }
944
+ interface V1Beta1ListOrganizationsByCurrentUserResponse {
945
+ organizations?: V1Beta1Organization[];
946
+ joinable_via_domain?: V1Beta1Organization[];
947
+ }
948
+ interface V1Beta1ListOrganizationsByUserResponse {
949
+ organizations?: V1Beta1Organization[];
950
+ joinable_via_domain?: V1Beta1Organization[];
951
+ }
952
+ interface V1Beta1ListOrganizationsResponse {
953
+ organizations?: V1Beta1Organization[];
954
+ }
955
+ interface V1Beta1ListPermissionsResponse {
956
+ permissions?: V1Beta1Permission[];
957
+ }
958
+ interface V1Beta1ListPlansResponse {
959
+ /** List of plans */
960
+ plans?: V1Beta1Plan[];
961
+ }
962
+ interface V1Beta1ListPlatformUsersResponse {
963
+ users?: V1Beta1User[];
964
+ serviceusers?: V1Beta1ServiceUser[];
965
+ }
966
+ interface V1Beta1ListPoliciesResponse {
967
+ policies?: V1Beta1Policy[];
968
+ }
969
+ interface V1Beta1ListPreferencesResponse {
970
+ preferences?: V1Beta1Preference[];
971
+ }
972
+ interface V1Beta1ListProductsResponse {
973
+ /** List of products */
974
+ products?: V1Beta1Product[];
975
+ }
976
+ interface V1Beta1ListProjectAdminsResponse {
977
+ users?: V1Beta1User[];
978
+ }
979
+ interface V1Beta1ListProjectGroupsResponse {
980
+ groups?: V1Beta1Group[];
981
+ role_pairs?: V1Beta1ListProjectGroupsResponseRolePair[];
982
+ }
983
+ interface V1Beta1ListProjectGroupsResponseRolePair {
984
+ group_id?: string;
985
+ roles?: V1Beta1Role[];
986
+ }
987
+ interface V1Beta1ListProjectPreferencesResponse {
988
+ preferences?: V1Beta1Preference[];
989
+ }
990
+ interface V1Beta1ListProjectResourcesResponse {
991
+ resources?: V1Beta1Resource[];
992
+ }
993
+ interface V1Beta1ListProjectServiceUsersResponse {
994
+ serviceusers?: V1Beta1ServiceUser[];
995
+ role_pairs?: V1Beta1ListProjectServiceUsersResponseRolePair[];
996
+ }
997
+ interface V1Beta1ListProjectServiceUsersResponseRolePair {
998
+ serviceuser_id?: string;
999
+ roles?: V1Beta1Role[];
1000
+ }
1001
+ interface V1Beta1ListProjectUsersResponse {
1002
+ users?: V1Beta1User[];
1003
+ role_pairs?: V1Beta1ListProjectUsersResponseRolePair[];
1004
+ }
1005
+ interface V1Beta1ListProjectUsersResponseRolePair {
1006
+ user_id?: string;
1007
+ roles?: V1Beta1Role[];
1008
+ }
1009
+ interface V1Beta1ListProjectsByCurrentUserResponse {
1010
+ projects?: V1Beta1Project[];
1011
+ access_pairs?: V1Beta1ListProjectsByCurrentUserResponseAccessPair[];
1012
+ }
1013
+ interface V1Beta1ListProjectsByCurrentUserResponseAccessPair {
1014
+ project_id?: string;
1015
+ permissions?: string[];
1016
+ }
1017
+ interface V1Beta1ListProjectsByUserResponse {
1018
+ projects?: V1Beta1Project[];
1019
+ }
1020
+ interface V1Beta1ListProjectsResponse {
1021
+ projects?: V1Beta1Project[];
1022
+ }
1023
+ interface V1Beta1ListRelationsResponse {
1024
+ relations?: V1Beta1Relation[];
1025
+ }
1026
+ interface V1Beta1ListResourcesResponse {
1027
+ resources?: V1Beta1Resource[];
1028
+ }
1029
+ interface V1Beta1ListRolesResponse {
1030
+ roles?: V1Beta1Role[];
1031
+ }
1032
+ interface V1Beta1ListServiceUserCredentialsResponse {
1033
+ /** secrets will be listed without the secret value */
1034
+ secrets?: V1Beta1SecretCredential[];
1035
+ }
1036
+ interface V1Beta1ListServiceUserJWKsResponse {
1037
+ keys?: V1Beta1ServiceUserJWK[];
1038
+ }
1039
+ interface V1Beta1ListServiceUserTokensResponse {
1040
+ tokens?: V1Beta1ServiceUserToken[];
1041
+ }
1042
+ interface V1Beta1ListServiceUsersResponse {
1043
+ serviceusers?: V1Beta1ServiceUser[];
1044
+ }
1045
+ interface V1Beta1ListSubscriptionsResponse {
1046
+ /** List of subscriptions */
1047
+ subscriptions?: V1Beta1Subscription[];
1048
+ }
1049
+ interface V1Beta1ListUserGroupsResponse {
1050
+ groups?: V1Beta1Group[];
1051
+ }
1052
+ interface V1Beta1ListUserInvitationsResponse {
1053
+ invitations?: V1Beta1Invitation[];
1054
+ }
1055
+ interface V1Beta1ListUserPreferencesResponse {
1056
+ preferences?: V1Beta1Preference[];
1057
+ }
1058
+ interface V1Beta1ListUsersResponse {
1059
+ /** @format int32 */
1060
+ count?: number;
1061
+ users?: V1Beta1User[];
1062
+ }
1063
+ interface V1Beta1ListWebhooksResponse {
1064
+ webhooks?: V1Beta1Webhook[];
1065
+ }
1066
+ interface V1Beta1MetaSchema {
1067
+ /**
1068
+ * The unique metaschema uuid.
1069
+ * @example "a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b"
1070
+ */
1071
+ id?: string;
1072
+ name?: string;
1073
+ /**
1074
+ * The metaschema json schema.
1075
+ * @example {"type":"object"}
1076
+ */
1077
+ schema?: string;
1078
+ /**
1079
+ * The time when the metaschema was created.
1080
+ * @format date-time
1081
+ * @example "2023-06-07T05:39:56.961Z"
1082
+ */
1083
+ created_at?: string;
1084
+ /**
1085
+ * The time when the metaschema was updated.
1086
+ * @format date-time
1087
+ * @example "2023-06-07T05:39:56.961Z"
1088
+ */
1089
+ updated_at?: string;
1090
+ }
1091
+ interface V1Beta1MetaSchemaRequestBody {
1092
+ /** 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. */
1093
+ name: string;
1094
+ /** 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. */
1095
+ schema: string;
1096
+ }
1097
+ interface V1Beta1Namespace {
1098
+ id?: string;
1099
+ /** name could be in a format like: app/organization */
1100
+ name?: string;
1101
+ metadata?: object;
1102
+ /**
1103
+ * The time the namespace was created.
1104
+ * @format date-time
1105
+ * @example "2023-06-07T05:39:56.961Z"
1106
+ */
1107
+ created_at?: string;
1108
+ /**
1109
+ * The time the namespace was last updated.
1110
+ * @format date-time
1111
+ * @example "2023-06-07T05:39:56.961Z"
1112
+ */
1113
+ updated_at?: string;
1114
+ }
1115
+ interface V1Beta1Organization {
1116
+ id?: string;
1117
+ name?: string;
1118
+ title?: string;
1119
+ metadata?: object;
1120
+ /**
1121
+ * The time the organization was created.
1122
+ * @format date-time
1123
+ * @example "2023-06-07T05:39:56.961Z"
1124
+ */
1125
+ created_at?: string;
1126
+ /**
1127
+ * The time the organization was last updated.
1128
+ * @format date-time
1129
+ * @example "2023-06-07T05:39:56.961Z"
1130
+ */
1131
+ updated_at?: string;
1132
+ /**
1133
+ * The state of the organization (enabled or disabled).
1134
+ * @example "enabled"
1135
+ */
1136
+ state?: string;
1137
+ /** The base64 encoded image string of the organization avatar. Should be less than 2MB. */
1138
+ avatar?: string;
1139
+ }
1140
+ interface V1Beta1OrganizationRequestBody {
1141
+ /** 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"` */
1142
+ name: string;
1143
+ /** 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"` */
1144
+ title?: string;
1145
+ /** 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"}` */
1146
+ metadata?: object;
1147
+ /**
1148
+ * The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.
1149
+ * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
1150
+ */
1151
+ avatar?: string;
1152
+ }
1153
+ interface V1Beta1PaymentMethod {
1154
+ id?: string;
1155
+ customer_id?: string;
1156
+ provider_id?: string;
1157
+ type?: string;
1158
+ card_brand?: string;
1159
+ card_last4?: string;
1160
+ /** @format int64 */
1161
+ card_expiry_month?: string;
1162
+ /** @format int64 */
1163
+ card_expiry_year?: string;
1164
+ metadata?: object;
1165
+ /** @format date-time */
1166
+ created_at?: string;
1167
+ }
1168
+ interface V1Beta1Permission {
1169
+ id?: string;
1170
+ name?: string;
1171
+ title?: string;
1172
+ /**
1173
+ * The time the permission was created.
1174
+ * @format date-time
1175
+ * @example "2023-06-07T05:39:56.961Z"
1176
+ */
1177
+ created_at?: string;
1178
+ /**
1179
+ * The time the permission was last updated.
1180
+ * @format date-time
1181
+ * @example "2023-06-07T05:39:56.961Z"
1182
+ */
1183
+ updated_at?: string;
1184
+ namespace?: string;
1185
+ metadata?: object;
1186
+ /**
1187
+ * Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
1188
+ * @example "compute.instance.get"
1189
+ */
1190
+ key?: string;
1191
+ }
1192
+ interface V1Beta1PermissionRequestBody {
1193
+ /** The name of the permission. It should be unique across a Frontier instance and can contain only alphanumeric characters. */
1194
+ name?: string;
1195
+ /**
1196
+ * namespace should be in service/resource format
1197
+ * The namespace of the permission. The namespace should be in service/resource format.<br/>*Example:*`compute/guardian`
1198
+ */
1199
+ namespace?: string;
1200
+ /** The metadata object for permissions that can hold key value pairs. */
1201
+ metadata?: object;
1202
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty. */
1203
+ title?: string;
1204
+ /**
1205
+ * key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
1206
+ * Use this instead of using name and namespace fields
1207
+ * Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. Namespace name cannot be `app` as it's reserved for core permissions.
1208
+ * @example "compute.instance.get"
1209
+ */
1210
+ key?: string;
1211
+ }
1212
+ interface V1Beta1Plan {
1213
+ id?: string;
1214
+ name?: string;
1215
+ title?: string;
1216
+ description?: string;
1217
+ products?: V1Beta1Product[];
1218
+ /** known intervals are "day", "week", "month", and "year" */
1219
+ interval?: string;
1220
+ /** @format int64 */
1221
+ on_start_credits?: string;
1222
+ /** @format int64 */
1223
+ trial_days?: string;
1224
+ metadata?: object;
1225
+ /** @format date-time */
1226
+ created_at?: string;
1227
+ /** @format date-time */
1228
+ updated_at?: string;
1229
+ }
1230
+ interface V1Beta1PlanRequestBody {
1231
+ name?: string;
1232
+ title?: string;
1233
+ description?: string;
1234
+ products?: V1Beta1Product[];
1235
+ /** known intervals are "day", "week", "month", and "year" */
1236
+ interval?: string;
1237
+ /** @format int64 */
1238
+ on_start_credits?: string;
1239
+ /** @format int64 */
1240
+ trial_days?: string;
1241
+ metadata?: object;
1242
+ }
1243
+ interface V1Beta1Policy {
1244
+ id?: string;
1245
+ title?: string;
1246
+ /**
1247
+ * The time the policy was created.
1248
+ * @format date-time
1249
+ * @example "2023-06-07T05:39:56.961Z"
1250
+ */
1251
+ created_at?: string;
1252
+ /**
1253
+ * The time the policy was last updated.
1254
+ * @format date-time
1255
+ * @example "2023-06-07T05:39:56.961Z"
1256
+ */
1257
+ updated_at?: string;
1258
+ role_id?: string;
1259
+ /** namespace:uuid */
1260
+ resource?: string;
1261
+ /** namespace:uuid */
1262
+ principal?: string;
1263
+ metadata?: object;
1264
+ }
1265
+ interface V1Beta1PolicyRequestBody {
1266
+ /** unique id of the role to which policy is assigned */
1267
+ role_id: string;
1268
+ /** 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` */
1269
+ title?: string;
1270
+ /** The resource to which policy is assigned in this format `namespace:uuid`. <br/> *Example:* `app/guardian:70f69c3a-334b-4f25-90b8-4d4f3be6b8e2` */
1271
+ resource: string;
1272
+ /** 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` */
1273
+ principal: string;
1274
+ /** Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> *Example:* `{"labels": {"key": "value"}, "description": "Policy description"}` */
1275
+ metadata?: object;
1276
+ }
1277
+ interface V1Beta1Preference {
1278
+ id?: string;
1279
+ name?: string;
1280
+ value?: string;
1281
+ resource_id?: string;
1282
+ resource_type?: string;
1283
+ /**
1284
+ * The time when the preference was created.
1285
+ * @format date-time
1286
+ * @example "2023-06-07T05:39:56.961Z"
1287
+ */
1288
+ created_at?: string;
1289
+ /**
1290
+ * The time when the preference was updated.
1291
+ * @format date-time
1292
+ * @example "2023-06-07T05:39:56.961Z"
1293
+ */
1294
+ updated_at?: string;
1295
+ }
1296
+ interface V1Beta1PreferenceRequestBody {
1297
+ name?: string;
1298
+ value?: string;
1299
+ }
1300
+ /**
1301
+ * PreferenceTrait is a trait that can be used to add preferences to a resource
1302
+ * it explains what preferences are available for a resource
1303
+ */
1304
+ interface V1Beta1PreferenceTrait {
1305
+ resource_type?: string;
1306
+ name?: string;
1307
+ title?: string;
1308
+ description?: string;
1309
+ long_description?: string;
1310
+ heading?: string;
1311
+ sub_heading?: string;
1312
+ breadcrumb?: string;
1313
+ default?: string;
1314
+ input_hints?: string;
1315
+ text?: string;
1316
+ textarea?: string;
1317
+ select?: string;
1318
+ combobox?: string;
1319
+ checkbox?: string;
1320
+ multiselect?: string;
1321
+ number?: string;
1322
+ }
1323
+ interface V1Beta1Price {
1324
+ id?: string;
1325
+ product_id?: string;
1326
+ provider_id?: string;
1327
+ name?: string;
1328
+ /** known intervals are "day", "week", "month", and "year" */
1329
+ interval?: string;
1330
+ /** usage_type known types are "licensed" and "metered" */
1331
+ usage_type?: string;
1332
+ /** billing_scheme known schemes are "tiered" and "flat" */
1333
+ billing_scheme?: string;
1334
+ state?: string;
1335
+ /** currency like "usd", "eur", "gbp" */
1336
+ currency?: string;
1337
+ /** @format int64 */
1338
+ amount?: string;
1339
+ /** metered_aggregate known aggregations are "sum", "last_during_period" and "max" */
1340
+ metered_aggregate?: string;
1341
+ /** tier_mode known modes are "graduated" and "volume" */
1342
+ tier_mode?: string;
1343
+ metadata?: object;
1344
+ /** @format date-time */
1345
+ created_at?: string;
1346
+ /** @format date-time */
1347
+ updated_at?: string;
1348
+ }
1349
+ interface V1Beta1Product {
1350
+ id?: string;
1351
+ name?: string;
1352
+ title?: string;
1353
+ description?: string;
1354
+ plan_ids?: string[];
1355
+ state?: string;
1356
+ prices?: V1Beta1Price[];
1357
+ behavior?: string;
1358
+ features?: V1Beta1Feature[];
1359
+ behavior_config?: ProductBehaviorConfig;
1360
+ metadata?: object;
1361
+ /** @format date-time */
1362
+ created_at?: string;
1363
+ /** @format date-time */
1364
+ updated_at?: string;
1365
+ }
1366
+ interface V1Beta1ProductRequestBody {
1367
+ name?: string;
1368
+ title?: string;
1369
+ description?: string;
1370
+ plan_id?: string;
1371
+ prices?: V1Beta1Price[];
1372
+ behavior?: string;
1373
+ features?: V1Beta1Feature[];
1374
+ behavior_config?: ProductBehaviorConfig;
1375
+ metadata?: object;
1376
+ }
1377
+ interface V1Beta1Project {
1378
+ id?: string;
1379
+ name?: string;
1380
+ title?: string;
1381
+ org_id?: string;
1382
+ metadata?: object;
1383
+ /**
1384
+ * The time the project was created.
1385
+ * @format date-time
1386
+ * @example "2023-06-07T05:39:56.961Z"
1387
+ */
1388
+ created_at?: string;
1389
+ /**
1390
+ * The time the project was last updated.
1391
+ * @format date-time
1392
+ * @example "2023-06-07T05:39:56.961Z"
1393
+ */
1394
+ updated_at?: string;
1395
+ /**
1396
+ * The number of members explicitly added in the project.
1397
+ * @format int32
1398
+ * @example 2
1399
+ */
1400
+ members_count?: number;
1401
+ }
1402
+ interface V1Beta1ProjectRequestBody {
1403
+ /** 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` */
1404
+ name: string;
1405
+ /** 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` */
1406
+ title?: string;
1407
+ /** Metadata object for projects that can hold key value pairs defined in Project Metaschema. */
1408
+ metadata?: object;
1409
+ /** unique id of the organization to which project belongs */
1410
+ org_id: string;
1411
+ }
1412
+ type V1Beta1RegisterBillingAccountResponse = object;
1413
+ interface V1Beta1Relation {
1414
+ id?: string;
1415
+ /**
1416
+ * The time the relation was created.
1417
+ * @format date-time
1418
+ * @example "2023-06-07T05:39:56.961Z"
1419
+ */
1420
+ created_at?: string;
1421
+ /**
1422
+ * The time the relation was last updated.
1423
+ * @format date-time
1424
+ * @example "2023-06-07T05:39:56.961Z"
1425
+ */
1426
+ updated_at?: string;
1427
+ subject_sub_relation?: string;
1428
+ relation?: string;
1429
+ /** objectnamespace:id */
1430
+ object?: string;
1431
+ /** subjectnamespace:id */
1432
+ subject?: string;
1433
+ }
1434
+ interface V1Beta1RelationRequestBody {
1435
+ /** objectnamespace:uuid */
1436
+ object?: string;
1437
+ /** subjectnamespace:uuid */
1438
+ subject?: string;
1439
+ relation?: string;
1440
+ subject_sub_relation?: string;
1441
+ }
1442
+ type V1Beta1RemoveGroupUserResponse = object;
1443
+ type V1Beta1RemoveOrganizationUserResponse = object;
1444
+ interface V1Beta1RemovePlatformUserRequest {
1445
+ /** The user id to remove from the the platform. */
1446
+ user_id?: string;
1447
+ /** The service user id to remove from the the platform. */
1448
+ serviceuser_id?: string;
1449
+ }
1450
+ type V1Beta1RemovePlatformUserResponse = object;
1451
+ interface V1Beta1Resource {
1452
+ id?: string;
1453
+ /** Name of the resource. Must be unique within the project. */
1454
+ name?: string;
1455
+ /**
1456
+ * The time the resource was created.
1457
+ * @format date-time
1458
+ * @example "2023-06-07T05:39:56.961Z"
1459
+ */
1460
+ created_at?: string;
1461
+ /**
1462
+ * The time the resource was last updated.
1463
+ * @format date-time
1464
+ * @example "2023-06-07T05:39:56.961Z"
1465
+ */
1466
+ updated_at?: string;
1467
+ urn?: string;
1468
+ project_id?: string;
1469
+ namespace?: string;
1470
+ principal?: string;
1471
+ metadata?: object;
1472
+ title?: string;
1473
+ }
1474
+ interface V1Beta1ResourceRequestBody {
1475
+ /** The name of the resource. Must be unique within the project. <br/> *Example:* `my-resource` */
1476
+ name: string;
1477
+ /** The title can contain any UTF-8 character, used to provide a human-readable name for the resource. Can also be left empty. */
1478
+ title?: string;
1479
+ /** 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` */
1480
+ namespace: string;
1481
+ /**
1482
+ * format namespace:uuid or just uuid for user
1483
+ * 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`
1484
+ */
1485
+ principal?: string;
1486
+ metadata?: object;
1487
+ }
1488
+ interface V1Beta1RevertBillingUsageRequest {
1489
+ /** either provide org_id or infer org from project_id */
1490
+ org_id?: string;
1491
+ project_id?: string;
1492
+ /**
1493
+ * either provide billing_id of the org or API can infer the default
1494
+ * billing ID from either org_id or project_id, not both
1495
+ */
1496
+ billing_id?: string;
1497
+ /** usage id to revert, a usage can only be allowed to revert once */
1498
+ usage_id?: string;
1499
+ /**
1500
+ * amount should be equal or less than the usage amount
1501
+ * @format int64
1502
+ */
1503
+ amount?: string;
1504
+ }
1505
+ type V1Beta1RevertBillingUsageResponse = object;
1506
+ interface V1Beta1Role {
1507
+ id?: string;
1508
+ name?: string;
1509
+ permissions?: string[];
1510
+ title?: string;
1511
+ metadata?: object;
1512
+ /**
1513
+ * The time the role was created.
1514
+ * @format date-time
1515
+ * @example "2023-06-07T05:39:56.961Z"
1516
+ */
1517
+ created_at?: string;
1518
+ /**
1519
+ * The time the role was last updated.
1520
+ * @format date-time
1521
+ * @example "2023-06-07T05:39:56.961Z"
1522
+ */
1523
+ updated_at?: string;
1524
+ org_id?: string;
1525
+ state?: string;
1526
+ scopes?: string[];
1527
+ }
1528
+ interface V1Beta1RoleRequestBody {
1529
+ name?: string;
1530
+ permissions?: string[];
1531
+ metadata?: object;
1532
+ title?: string;
1533
+ scopes?: string[];
1534
+ }
1535
+ interface V1Beta1SecretCredential {
1536
+ id?: string;
1537
+ title?: string;
1538
+ /**
1539
+ * secret will only be returned once as part of the create process
1540
+ * this value is never persisted in the system so if lost, can't be recovered
1541
+ */
1542
+ secret?: string;
1543
+ /**
1544
+ * The time when the secret was created.
1545
+ * @format date-time
1546
+ * @example "2023-06-07T05:39:56.961Z"
1547
+ */
1548
+ created_at?: string;
1549
+ }
1550
+ interface V1Beta1ServiceUser {
1551
+ id?: string;
1552
+ /**
1553
+ * User friendly name of the service user.
1554
+ * @example "Order Service"
1555
+ */
1556
+ title?: string;
1557
+ metadata?: object;
1558
+ /**
1559
+ * The time the user was created.
1560
+ * @format date-time
1561
+ * @example "2023-06-07T05:39:56.961Z"
1562
+ */
1563
+ created_at?: string;
1564
+ /**
1565
+ * The time the user was last updated.
1566
+ * @format date-time
1567
+ * @example "2023-06-07T05:39:56.961Z"
1568
+ */
1569
+ updated_at?: string;
1570
+ state?: string;
1571
+ org_id?: string;
1572
+ }
1573
+ interface V1Beta1ServiceUserJWK {
1574
+ id?: string;
1575
+ title?: string;
1576
+ principal_id?: string;
1577
+ public_key?: string;
1578
+ /**
1579
+ * The time when the secret was created.
1580
+ * @format date-time
1581
+ * @example "2023-06-07T05:39:56.961Z"
1582
+ */
1583
+ created_at?: string;
1584
+ }
1585
+ interface V1Beta1ServiceUserRequestBody {
1586
+ /**
1587
+ * User friendly name of the service user.
1588
+ * @example "Order Service"
1589
+ */
1590
+ title?: string;
1591
+ metadata?: object;
1592
+ }
1593
+ interface V1Beta1ServiceUserToken {
1594
+ id?: string;
1595
+ title?: string;
1596
+ /**
1597
+ * token will only be returned once as part of the create process
1598
+ * this value is never persisted in the system so if lost, can't be recovered
1599
+ */
1600
+ token?: string;
1601
+ /**
1602
+ * The time when the token was created.
1603
+ * @format date-time
1604
+ * @example "2023-06-07T05:39:56.961Z"
1605
+ */
1606
+ created_at?: string;
1607
+ }
1608
+ interface V1Beta1Subscription {
1609
+ id?: string;
1610
+ customer_id?: string;
1611
+ provider_id?: string;
1612
+ plan_id?: string;
1613
+ state?: string;
1614
+ metadata?: object;
1615
+ /** @format date-time */
1616
+ created_at?: string;
1617
+ /** @format date-time */
1618
+ updated_at?: string;
1619
+ /** @format date-time */
1620
+ canceled_at?: string;
1621
+ /** @format date-time */
1622
+ ended_at?: string;
1623
+ /** @format date-time */
1624
+ trial_ends_at?: string;
1625
+ /** @format date-time */
1626
+ current_period_start_at?: string;
1627
+ /** @format date-time */
1628
+ current_period_end_at?: string;
1629
+ /** @format date-time */
1630
+ billing_cycle_anchor_at?: string;
1631
+ phases?: SubscriptionPhase[];
1632
+ customer?: V1Beta1BillingAccount;
1633
+ plan?: V1Beta1Plan;
1634
+ }
1635
+ interface V1Beta1UpdateBillingAccountResponse {
1636
+ /** Updated billing account */
1637
+ billing_account?: V1Beta1BillingAccount;
1638
+ }
1639
+ interface V1Beta1UpdateCurrentUserResponse {
1640
+ user?: V1Beta1User;
1641
+ }
1642
+ interface V1Beta1UpdateFeatureResponse {
1643
+ /** Updated feature */
1644
+ feature?: V1Beta1Feature;
1645
+ }
1646
+ interface V1Beta1UpdateGroupResponse {
1647
+ group?: V1Beta1Group;
1648
+ }
1649
+ interface V1Beta1UpdateMetaSchemaResponse {
1650
+ metaschema?: V1Beta1MetaSchema;
1651
+ }
1652
+ interface V1Beta1UpdateOrganizationResponse {
1653
+ organization?: V1Beta1Organization;
1654
+ }
1655
+ interface V1Beta1UpdateOrganizationRoleResponse {
1656
+ role?: V1Beta1Role;
1657
+ }
1658
+ interface V1Beta1UpdatePermissionResponse {
1659
+ permission?: V1Beta1Permission;
1660
+ }
1661
+ interface V1Beta1UpdatePlanResponse {
1662
+ /** Updated plan */
1663
+ plan?: V1Beta1Plan;
1664
+ }
1665
+ interface V1Beta1UpdatePolicyResponse {
1666
+ policies?: V1Beta1Policy[];
1667
+ }
1668
+ interface V1Beta1UpdateProductResponse {
1669
+ /** Updated product */
1670
+ product?: V1Beta1Product;
1671
+ }
1672
+ interface V1Beta1UpdateProjectResourceResponse {
1673
+ resource?: V1Beta1Resource;
1674
+ }
1675
+ interface V1Beta1UpdateProjectResponse {
1676
+ project?: V1Beta1Project;
1677
+ }
1678
+ interface V1Beta1UpdateRoleResponse {
1679
+ role?: V1Beta1Role;
1680
+ }
1681
+ interface V1Beta1UpdateSubscriptionResponse {
1682
+ /** Updated subscription */
1683
+ subscription?: V1Beta1Subscription;
1684
+ }
1685
+ interface V1Beta1UpdateUserResponse {
1686
+ user?: V1Beta1User;
1687
+ }
1688
+ interface V1Beta1UpdateWebhookResponse {
1689
+ webhook?: V1Beta1Webhook;
1690
+ }
1691
+ interface V1Beta1Usage {
1692
+ /** uuid used as an idempotent key */
1693
+ id?: string;
1694
+ customer_id?: string;
1695
+ /** additional metadata for storing event/service that triggered this usage */
1696
+ source?: string;
1697
+ description?: string;
1698
+ /**
1699
+ * Type is the type of usage, it can be credit or feature
1700
+ * if credit, the amount is the amount of credits that were consumed
1701
+ * if feature, the amount is the amount of features that were used
1702
+ */
1703
+ type?: string;
1704
+ /** @format int64 */
1705
+ amount?: string;
1706
+ /** user_id is the user that triggered this usage */
1707
+ user_id?: string;
1708
+ metadata?: object;
1709
+ /** @format date-time */
1710
+ created_at?: string;
1711
+ /** @format date-time */
1712
+ updated_at?: string;
1713
+ }
1714
+ interface V1Beta1User {
1715
+ id?: string;
1716
+ /**
1717
+ * can either be empty or must start with a character
1718
+ * Unique name of the user.
1719
+ * @example "johndoe"
1720
+ */
1721
+ name?: string;
1722
+ /**
1723
+ * Name of the user.
1724
+ * @example "John Doe"
1725
+ */
1726
+ title?: string;
1727
+ email?: string;
1728
+ metadata?: object;
1729
+ /**
1730
+ * The time the user was created.
1731
+ * @format date-time
1732
+ * @example "2023-06-07T05:39:56.961Z"
1733
+ */
1734
+ created_at?: string;
1735
+ /**
1736
+ * The time the user was last updated.
1737
+ * @format date-time
1738
+ * @example "2023-06-07T05:39:56.961Z"
1739
+ */
1740
+ updated_at?: string;
1741
+ /**
1742
+ * The state of the user (enabled or disabled).
1743
+ * @example "enabled"
1744
+ */
1745
+ state?: string;
1746
+ /** The base64 encoded image string of the user avatar. Should be less than 2MB. */
1747
+ avatar?: string;
1748
+ }
1749
+ interface V1Beta1UserRequestBody {
1750
+ /** 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. */
1751
+ name?: string;
1752
+ /** The email of the user. The email must be unique within the entire Frontier instance.<br/>*Example:*`"john.doe@raystack.org"` */
1753
+ email: string;
1754
+ /** 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"}` */
1755
+ metadata?: object;
1756
+ /** 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"` */
1757
+ title?: string;
1758
+ /**
1759
+ * The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.
1760
+ * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
1761
+ */
1762
+ avatar?: string;
1763
+ }
1764
+ interface V1Beta1VerifyOrganizationDomainResponse {
1765
+ state?: string;
1766
+ }
1767
+ interface V1Beta1Webhook {
1768
+ id?: string;
1769
+ description?: string;
1770
+ url?: string;
1771
+ subscribed_events?: string[];
1772
+ /** headers to be sent with the webhook */
1773
+ headers?: Record<string, string>;
1774
+ /**
1775
+ * secret to sign the payload, there could be multiple enabled secrets for a webhook
1776
+ * but only one will be used to sign the payload, this is useful for rotating secrets
1777
+ */
1778
+ secrets?: WebhookSecret[];
1779
+ state?: string;
1780
+ metadata?: object;
1781
+ /** @format date-time */
1782
+ created_at?: string;
1783
+ /** @format date-time */
1784
+ updated_at?: string;
1785
+ }
1786
+ interface V1Beta1WebhookRequestBody {
1787
+ /** URL to send the webhook to (valid absolute URI via RFC 3986) */
1788
+ url?: string;
1789
+ description?: string;
1790
+ /** events to subscribe to, if empty all events are subscribed */
1791
+ subscribed_events?: string[];
1792
+ /** headers to be sent with the webhook */
1793
+ headers?: Record<string, string>;
1794
+ state?: string;
1795
+ metadata?: object;
1796
+ }
1797
+
1798
+ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
1799
+ /**
1800
+ * @description Lists all the billing accounts from all the organizations in a Frontier instance. It can be filtered by organization.
1801
+ *
1802
+ * @tags Billing
1803
+ * @name AdminServiceListAllBillingAccounts
1804
+ * @summary List all billing accounts
1805
+ * @request GET:/v1beta1/admin/billing/accounts
1806
+ * @secure
1807
+ */
1808
+ adminServiceListAllBillingAccounts: (query?: {
1809
+ org_id?: string;
1810
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllBillingAccountsResponse, RpcStatus>>;
1811
+ /**
1812
+ * @description Lists all the invoices from all the organizations in a Frontier instance. It can be filtered by organization.
1813
+ *
1814
+ * @tags Invoice
1815
+ * @name AdminServiceListAllInvoices
1816
+ * @summary List all invoices
1817
+ * @request GET:/v1beta1/admin/billing/invoices
1818
+ * @secure
1819
+ */
1820
+ adminServiceListAllInvoices: (query?: {
1821
+ org_id?: string;
1822
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllInvoicesResponse, RpcStatus>>;
1823
+ /**
1824
+ * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user, group or a service account.
1825
+ *
1826
+ * @tags Authz
1827
+ * @name AdminServiceCheckFederatedResourcePermission
1828
+ * @summary Check
1829
+ * @request POST:/v1beta1/admin/check
1830
+ * @secure
1831
+ */
1832
+ adminServiceCheckFederatedResourcePermission: (body: V1Beta1CheckFederatedResourcePermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckFederatedResourcePermissionResponse, RpcStatus>>;
1833
+ /**
1834
+ * @description Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state.
1835
+ *
1836
+ * @tags Group
1837
+ * @name AdminServiceListGroups
1838
+ * @summary List all groups
1839
+ * @request GET:/v1beta1/admin/groups
1840
+ * @secure
1841
+ */
1842
+ adminServiceListGroups: (query?: {
1843
+ /** The organization id to filter by. */
1844
+ org_id?: string;
1845
+ /** The state to filter by. It can be enabled or disabled. */
1846
+ state?: string;
1847
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupsResponse, RpcStatus>>;
1848
+ /**
1849
+ * @description Lists all the organizations in a Frontier instance. It can be filtered by user and state.
1850
+ *
1851
+ * @tags Organization
1852
+ * @name AdminServiceListAllOrganizations
1853
+ * @summary List all organizations
1854
+ * @request GET:/v1beta1/admin/organizations
1855
+ * @secure
1856
+ */
1857
+ adminServiceListAllOrganizations: (query?: {
1858
+ /** The user id to filter by. */
1859
+ user_id?: string;
1860
+ /** The state to filter by. It can be enabled or disabled. */
1861
+ state?: string;
1862
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllOrganizationsResponse, RpcStatus>>;
1863
+ /**
1864
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
1865
+ *
1866
+ * @tags Checkout
1867
+ * @name AdminServiceDelegatedCheckout
1868
+ * @summary Checkout a product or subscription
1869
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/checkouts
1870
+ * @secure
1871
+ */
1872
+ adminServiceDelegatedCheckout: (orgId: string, billingId: string, body: {
1873
+ /** Subscription to create */
1874
+ subscription_body?: V1Beta1CheckoutSubscriptionBody;
1875
+ /** Product to buy */
1876
+ product_body?: V1Beta1CheckoutProductBody;
1877
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1DelegatedCheckoutResponse, RpcStatus>>;
1878
+ /**
1879
+ * @description Revert billing usage for a billing account.
1880
+ *
1881
+ * @tags Billing
1882
+ * @name AdminServiceRevertBillingUsage
1883
+ * @summary Revert billing usage
1884
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/usage/{usage_id}/revert
1885
+ * @secure
1886
+ */
1887
+ adminServiceRevertBillingUsage: (orgId: string, billingId: string, usageId: string, body: {
1888
+ project_id?: string;
1889
+ /**
1890
+ * amount should be equal or less than the usage amount
1891
+ * @format int64
1892
+ */
1893
+ amount?: string;
1894
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1895
+ /**
1896
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
1897
+ *
1898
+ * @tags Checkout
1899
+ * @name AdminServiceDelegatedCheckout2
1900
+ * @summary Checkout a product or subscription
1901
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/checkouts
1902
+ * @secure
1903
+ */
1904
+ adminServiceDelegatedCheckout2: (orgId: string, body: {
1905
+ /** ID of the billing account to update the subscription for */
1906
+ billing_id?: string;
1907
+ /** Subscription to create */
1908
+ subscription_body?: V1Beta1CheckoutSubscriptionBody;
1909
+ /** Product to buy */
1910
+ product_body?: V1Beta1CheckoutProductBody;
1911
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1DelegatedCheckoutResponse, RpcStatus>>;
1912
+ /**
1913
+ * @description Lists all the users added to the platform.
1914
+ *
1915
+ * @tags Platform
1916
+ * @name AdminServiceListPlatformUsers
1917
+ * @summary List platform users
1918
+ * @request GET:/v1beta1/admin/platform/users
1919
+ * @secure
1920
+ */
1921
+ adminServiceListPlatformUsers: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPlatformUsersResponse, RpcStatus>>;
1922
+ /**
1923
+ * @description Adds a user to the platform.
1924
+ *
1925
+ * @tags Platform
1926
+ * @name AdminServiceAddPlatformUser
1927
+ * @summary Add platform user
1928
+ * @request POST:/v1beta1/admin/platform/users
1929
+ * @secure
1930
+ */
1931
+ adminServiceAddPlatformUser: (body: V1Beta1AddPlatformUserRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1932
+ /**
1933
+ * @description Removes a user from the platform.
1934
+ *
1935
+ * @tags Platform
1936
+ * @name AdminServiceRemovePlatformUser
1937
+ * @summary Remove platform user
1938
+ * @request POST:/v1beta1/admin/platform/users/remove
1939
+ * @secure
1940
+ */
1941
+ adminServiceRemovePlatformUser: (body: V1Beta1RemovePlatformUserRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1942
+ /**
1943
+ * @description Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state.
1944
+ *
1945
+ * @tags Project
1946
+ * @name AdminServiceListProjects
1947
+ * @summary List all projects
1948
+ * @request GET:/v1beta1/admin/projects
1949
+ * @secure
1950
+ */
1951
+ adminServiceListProjects: (query?: {
1952
+ /** The organization id to filter by. */
1953
+ org_id?: string;
1954
+ /** The state to filter by. It can be enabled or disabled. */
1955
+ state?: string;
1956
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsResponse, RpcStatus>>;
1957
+ /**
1958
+ * No description
1959
+ *
1960
+ * @tags Relation
1961
+ * @name AdminServiceListRelations
1962
+ * @summary List all relations
1963
+ * @request GET:/v1beta1/admin/relations
1964
+ * @secure
1965
+ */
1966
+ adminServiceListRelations: (query?: {
1967
+ /** The subject to filter by. */
1968
+ subject?: string;
1969
+ /** The object to filter by. */
1970
+ object?: string;
1971
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListRelationsResponse, RpcStatus>>;
1972
+ /**
1973
+ * @description Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace.
1974
+ *
1975
+ * @tags Resource
1976
+ * @name AdminServiceListResources
1977
+ * @summary List all resources
1978
+ * @request GET:/v1beta1/admin/resources
1979
+ * @secure
1980
+ */
1981
+ adminServiceListResources: (query?: {
1982
+ /** The user id to filter by. */
1983
+ user_id?: string;
1984
+ /** The project id to filter by. */
1985
+ project_id?: string;
1986
+ /** The organization id to filter by. */
1987
+ organization_id?: string;
1988
+ /** The namespace to filter by. */
1989
+ namespace?: string;
1990
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListResourcesResponse, RpcStatus>>;
1991
+ /**
1992
+ * @description Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state.
1993
+ *
1994
+ * @tags User
1995
+ * @name AdminServiceListAllUsers
1996
+ * @summary List all users
1997
+ * @request GET:/v1beta1/admin/users
1998
+ * @secure
1999
+ */
2000
+ adminServiceListAllUsers: (query?: {
2001
+ /**
2002
+ * The maximum number of users to return per page. The default is 50.
2003
+ * @format int32
2004
+ */
2005
+ page_size?: number;
2006
+ /**
2007
+ * The page number to return. The default is 1.
2008
+ * @format int32
2009
+ */
2010
+ page_num?: number;
2011
+ /** The keyword to search for. It can be a user's name, email,metadata or id. */
2012
+ keyword?: string;
2013
+ /** The organization id to filter by. */
2014
+ org_id?: string;
2015
+ /** The group id to filter by. */
2016
+ group_id?: string;
2017
+ /** The state to filter by. It can be enabled or disabled. */
2018
+ state?: string;
2019
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllUsersResponse, RpcStatus>>;
2020
+ /**
2021
+ * @description List all webhooks.
2022
+ *
2023
+ * @tags Webhook
2024
+ * @name AdminServiceListWebhooks
2025
+ * @summary List webhooks
2026
+ * @request GET:/v1beta1/admin/webhooks
2027
+ * @secure
2028
+ */
2029
+ adminServiceListWebhooks: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListWebhooksResponse, RpcStatus>>;
2030
+ /**
2031
+ * @description Create a new webhook.
2032
+ *
2033
+ * @tags Webhook
2034
+ * @name AdminServiceCreateWebhook
2035
+ * @summary Create webhook
2036
+ * @request POST:/v1beta1/admin/webhooks
2037
+ * @secure
2038
+ */
2039
+ adminServiceCreateWebhook: (body: V1Beta1CreateWebhookRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateWebhookResponse, RpcStatus>>;
2040
+ /**
2041
+ * @description Delete a webhook.
2042
+ *
2043
+ * @tags Webhook
2044
+ * @name AdminServiceDeleteWebhook
2045
+ * @summary Delete webhook
2046
+ * @request DELETE:/v1beta1/admin/webhooks/{id}
2047
+ * @secure
2048
+ */
2049
+ adminServiceDeleteWebhook: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2050
+ /**
2051
+ * @description Update a webhook.
2052
+ *
2053
+ * @tags Webhook
2054
+ * @name AdminServiceUpdateWebhook
2055
+ * @summary Update webhook
2056
+ * @request PUT:/v1beta1/admin/webhooks/{id}
2057
+ * @secure
2058
+ */
2059
+ adminServiceUpdateWebhook: (id: string, body: {
2060
+ body?: V1Beta1WebhookRequestBody | undefined;
2061
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, RpcStatus>>;
2062
+ /**
2063
+ * @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
2064
+ *
2065
+ * @tags Authn
2066
+ * @name FrontierServiceListAuthStrategies
2067
+ * @summary List authentication strategies
2068
+ * @request GET:/v1beta1/auth
2069
+ * @secure
2070
+ */
2071
+ frontierServiceListAuthStrategies: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAuthStrategiesResponse, RpcStatus>>;
2072
+ /**
2073
+ * @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.
2074
+ *
2075
+ * @tags Authn
2076
+ * @name FrontierServiceAuthCallback
2077
+ * @summary Callback from a strategy
2078
+ * @request GET:/v1beta1/auth/callback
2079
+ * @secure
2080
+ */
2081
+ frontierServiceAuthCallback: (query?: {
2082
+ /** strategy_name will not be set for oidc but can be utilized for methods like email magic links */
2083
+ strategy_name?: string;
2084
+ /** for oidc & magic links */
2085
+ state?: string;
2086
+ code?: string;
2087
+ /**
2088
+ * state_options has additional configurations for the authentication flow at hand
2089
+ * for example, in case of passkey, it has challenge and public key
2090
+ */
2091
+ state_options?: object;
2092
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2093
+ /**
2094
+ * @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.
2095
+ *
2096
+ * @tags Authn
2097
+ * @name FrontierServiceAuthCallback2
2098
+ * @summary Callback from a strategy
2099
+ * @request POST:/v1beta1/auth/callback
2100
+ * @secure
2101
+ */
2102
+ frontierServiceAuthCallback2: (body: V1Beta1AuthCallbackRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2103
+ /**
2104
+ * No description
2105
+ *
2106
+ * @tags Authz
2107
+ * @name FrontierServiceGetJwKs
2108
+ * @summary Get well known JWKs
2109
+ * @request GET:/v1beta1/auth/jwks
2110
+ * @secure
2111
+ */
2112
+ frontierServiceGetJwKs: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetJWKsResponse, RpcStatus>>;
2113
+ /**
2114
+ * No description
2115
+ *
2116
+ * @tags Authn
2117
+ * @name FrontierServiceAuthLogout
2118
+ * @summary Logout from a strategy
2119
+ * @request GET:/v1beta1/auth/logout
2120
+ * @secure
2121
+ */
2122
+ frontierServiceAuthLogout: (params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2123
+ /**
2124
+ * No description
2125
+ *
2126
+ * @tags Authn
2127
+ * @name FrontierServiceAuthLogout2
2128
+ * @summary Logout from a strategy
2129
+ * @request DELETE:/v1beta1/auth/logout
2130
+ * @secure
2131
+ */
2132
+ frontierServiceAuthLogout2: (params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2133
+ /**
2134
+ * @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.
2135
+ *
2136
+ * @tags Authn
2137
+ * @name FrontierServiceAuthenticate
2138
+ * @summary Authenticate with a strategy
2139
+ * @request GET:/v1beta1/auth/register/{strategy_name}
2140
+ * @secure
2141
+ */
2142
+ frontierServiceAuthenticate: (strategyName: string, query?: {
2143
+ /**
2144
+ * by default, location redirect header for starting authentication flow if applicable
2145
+ * will be skipped unless this is set to true, useful in browser, same value will
2146
+ * also be returned as endpoint in response anyway
2147
+ *
2148
+ * If set to true, location header will be set for redirect to start auth flow
2149
+ */
2150
+ redirect_onstart?: boolean;
2151
+ /**
2152
+ * by default, after successful authentication(flow completes) no operation will be performed,
2153
+ * to apply redirection in case of browsers, provide an url that will be used
2154
+ * after authentication where users are sent from frontier.
2155
+ * return_to should be one of the allowed urls configured at instance level
2156
+ *
2157
+ * URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
2158
+ */
2159
+ return_to?: string;
2160
+ /**
2161
+ * email of the user for magic links
2162
+ *
2163
+ * Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
2164
+ */
2165
+ email?: string;
2166
+ /**
2167
+ * callback_url will be used by strategy as last step to finish authentication flow
2168
+ * in OIDC this host will receive "state" and "code" query params, in case of magic links
2169
+ * this will be the url where user is redirected after clicking on magic link.
2170
+ * For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
2171
+ * callback_url should be one of the allowed urls configured at instance level
2172
+ *
2173
+ * Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.<br/> *Example:*`https://frontier.example.com/v1beta1/auth/callback`
2174
+ */
2175
+ callback_url?: string;
2176
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
2177
+ /**
2178
+ * @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.
2179
+ *
2180
+ * @tags Authn
2181
+ * @name FrontierServiceAuthenticate2
2182
+ * @summary Authenticate with a strategy
2183
+ * @request POST:/v1beta1/auth/register/{strategy_name}
2184
+ * @secure
2185
+ */
2186
+ frontierServiceAuthenticate2: (strategyName: string, body: {
2187
+ /**
2188
+ * by default, location redirect header for starting authentication flow if applicable
2189
+ * will be skipped unless this is set to true, useful in browser, same value will
2190
+ * also be returned as endpoint in response anyway
2191
+ * If set to true, location header will be set for redirect to start auth flow
2192
+ */
2193
+ redirect_onstart?: boolean;
2194
+ /**
2195
+ * by default, after successful authentication(flow completes) no operation will be performed,
2196
+ * to apply redirection in case of browsers, provide an url that will be used
2197
+ * after authentication where users are sent from frontier.
2198
+ * return_to should be one of the allowed urls configured at instance level
2199
+ * URL to redirect after successful authentication.<br/> *Example:*`"https://frontier.example.com"`
2200
+ */
2201
+ return_to?: string;
2202
+ /**
2203
+ * email of the user for magic links
2204
+ * Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org`
2205
+ */
2206
+ email?: string;
2207
+ /**
2208
+ * callback_url will be used by strategy as last step to finish authentication flow
2209
+ * in OIDC this host will receive "state" and "code" query params, in case of magic links
2210
+ * this will be the url where user is redirected after clicking on magic link.
2211
+ * For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
2212
+ * callback_url should be one of the allowed urls configured at instance level
2213
+ * Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.<br/> *Example:*`https://frontier.example.com/v1beta1/auth/callback`
2214
+ */
2215
+ callback_url?: string;
2216
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthenticateResponse, RpcStatus>>;
2217
+ /**
2218
+ * @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.
2219
+ *
2220
+ * @tags Authn
2221
+ * @name FrontierServiceAuthToken
2222
+ * @summary Generate access token by given credentials
2223
+ * @request POST:/v1beta1/auth/token
2224
+ * @secure
2225
+ */
2226
+ frontierServiceAuthToken: (body: V1Beta1AuthTokenRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthTokenResponse, RpcStatus>>;
2227
+ /**
2228
+ * @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).
2229
+ *
2230
+ * @tags Authz
2231
+ * @name FrontierServiceBatchCheckPermission
2232
+ * @summary Batch check
2233
+ * @request POST:/v1beta1/batchcheck
2234
+ * @secure
2235
+ */
2236
+ frontierServiceBatchCheckPermission: (body: V1Beta1BatchCheckPermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1BatchCheckPermissionResponse, RpcStatus>>;
2237
+ /**
2238
+ * @description List all features
2239
+ *
2240
+ * @tags Feature
2241
+ * @name FrontierServiceListFeatures
2242
+ * @summary List features
2243
+ * @request GET:/v1beta1/billing/features
2244
+ * @secure
2245
+ */
2246
+ frontierServiceListFeatures: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListFeaturesResponse, RpcStatus>>;
2247
+ /**
2248
+ * @description Create a new feature for platform.
2249
+ *
2250
+ * @tags Feature
2251
+ * @name FrontierServiceCreateFeature
2252
+ * @summary Create feature
2253
+ * @request POST:/v1beta1/billing/features
2254
+ * @secure
2255
+ */
2256
+ frontierServiceCreateFeature: (body: V1Beta1CreateFeatureRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateFeatureResponse, RpcStatus>>;
2257
+ /**
2258
+ * @description Get a feature by ID.
2259
+ *
2260
+ * @tags Feature
2261
+ * @name FrontierServiceGetFeature
2262
+ * @summary Get feature
2263
+ * @request GET:/v1beta1/billing/features/{id}
2264
+ * @secure
2265
+ */
2266
+ frontierServiceGetFeature: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetFeatureResponse, RpcStatus>>;
2267
+ /**
2268
+ * @description Update a feature by ID.
2269
+ *
2270
+ * @tags Feature
2271
+ * @name FrontierServiceUpdateFeature
2272
+ * @summary Update feature
2273
+ * @request PUT:/v1beta1/billing/features/{id}
2274
+ * @secure
2275
+ */
2276
+ frontierServiceUpdateFeature: (id: string, body: {
2277
+ /** Feature to update */
2278
+ body?: V1Beta1FeatureRequestBody | undefined;
2279
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, RpcStatus>>;
2280
+ /**
2281
+ * @description List all plans.
2282
+ *
2283
+ * @tags Plan
2284
+ * @name FrontierServiceListPlans
2285
+ * @summary List plans
2286
+ * @request GET:/v1beta1/billing/plans
2287
+ * @secure
2288
+ */
2289
+ frontierServiceListPlans: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPlansResponse, RpcStatus>>;
2290
+ /**
2291
+ * @description Create a new plan for platform.
2292
+ *
2293
+ * @tags Plan
2294
+ * @name FrontierServiceCreatePlan
2295
+ * @summary Create plan
2296
+ * @request POST:/v1beta1/billing/plans
2297
+ * @secure
2298
+ */
2299
+ frontierServiceCreatePlan: (body: V1Beta1CreatePlanRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePlanResponse, RpcStatus>>;
2300
+ /**
2301
+ * @description Get a plan by ID.
2302
+ *
2303
+ * @tags Plan
2304
+ * @name FrontierServiceGetPlan
2305
+ * @summary Get plan
2306
+ * @request GET:/v1beta1/billing/plans/{id}
2307
+ * @secure
2308
+ */
2309
+ frontierServiceGetPlan: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetPlanResponse, RpcStatus>>;
2310
+ /**
2311
+ * @description Update a plan by ID.
2312
+ *
2313
+ * @tags Plan
2314
+ * @name FrontierServiceUpdatePlan
2315
+ * @summary Update plan
2316
+ * @request PUT:/v1beta1/billing/plans/{id}
2317
+ * @secure
2318
+ */
2319
+ frontierServiceUpdatePlan: (id: string, body: {
2320
+ /** Plan to update */
2321
+ body?: V1Beta1PlanRequestBody | undefined;
2322
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, RpcStatus>>;
2323
+ /**
2324
+ * @description List all products of a platform.
2325
+ *
2326
+ * @tags Product
2327
+ * @name FrontierServiceListProducts
2328
+ * @summary List products
2329
+ * @request GET:/v1beta1/billing/products
2330
+ * @secure
2331
+ */
2332
+ frontierServiceListProducts: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProductsResponse, RpcStatus>>;
2333
+ /**
2334
+ * @description Create a new product for platform.
2335
+ *
2336
+ * @tags Product
2337
+ * @name FrontierServiceCreateProduct
2338
+ * @summary Create product
2339
+ * @request POST:/v1beta1/billing/products
2340
+ * @secure
2341
+ */
2342
+ frontierServiceCreateProduct: (body: V1Beta1CreateProductRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProductResponse, RpcStatus>>;
2343
+ /**
2344
+ * @description Get a product by ID.
2345
+ *
2346
+ * @tags Product
2347
+ * @name FrontierServiceGetProduct
2348
+ * @summary Get product
2349
+ * @request GET:/v1beta1/billing/products/{id}
2350
+ * @secure
2351
+ */
2352
+ frontierServiceGetProduct: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProductResponse, RpcStatus>>;
2353
+ /**
2354
+ * @description Update a product by ID.
2355
+ *
2356
+ * @tags Product
2357
+ * @name FrontierServiceUpdateProduct
2358
+ * @summary Update product
2359
+ * @request PUT:/v1beta1/billing/products/{id}
2360
+ * @secure
2361
+ */
2362
+ frontierServiceUpdateProduct: (id: string, body: {
2363
+ /** Product to update */
2364
+ body?: V1Beta1ProductRequestBody | undefined;
2365
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, RpcStatus>>;
2366
+ /**
2367
+ * @description Accepts a Billing webhook and processes it.
2368
+ *
2369
+ * @tags Webhook
2370
+ * @name FrontierServiceBillingWebhookCallback
2371
+ * @summary Accept Billing webhook
2372
+ * @request POST:/v1beta1/billing/webhooks/callback/{provider}
2373
+ * @secure
2374
+ */
2375
+ frontierServiceBillingWebhookCallback: (provider: string, body: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2376
+ /**
2377
+ * @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. Frontier will extract principal from the current logged in session cookie (if any), or the client id and secret (in case of service users) or the access token.
2378
+ *
2379
+ * @tags Authz
2380
+ * @name FrontierServiceCheckResourcePermission
2381
+ * @summary Check
2382
+ * @request POST:/v1beta1/check
2383
+ * @secure
2384
+ */
2385
+ frontierServiceCheckResourcePermission: (body: V1Beta1CheckResourcePermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckResourcePermissionResponse, RpcStatus>>;
2386
+ /**
2387
+ * @description List a group preferences by ID.
2388
+ *
2389
+ * @tags Preference
2390
+ * @name FrontierServiceListGroupPreferences
2391
+ * @summary List group preferences
2392
+ * @request GET:/v1beta1/groups/{id}/preferences
2393
+ * @secure
2394
+ */
2395
+ frontierServiceListGroupPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupPreferencesResponse, RpcStatus>>;
2396
+ /**
2397
+ * @description Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores.
2398
+ *
2399
+ * @tags Preference
2400
+ * @name FrontierServiceCreateGroupPreferences
2401
+ * @summary Create group preferences
2402
+ * @request POST:/v1beta1/groups/{id}/preferences
2403
+ * @secure
2404
+ */
2405
+ frontierServiceCreateGroupPreferences: (id: string, body: {
2406
+ bodies?: V1Beta1PreferenceRequestBody[];
2407
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateGroupPreferencesResponse, RpcStatus>>;
2408
+ /**
2409
+ * @description Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc
2410
+ *
2411
+ * @tags MetaSchema
2412
+ * @name FrontierServiceListMetaSchemas
2413
+ * @summary List metaschemas
2414
+ * @request GET:/v1beta1/meta/schemas
2415
+ * @secure
2416
+ */
2417
+ frontierServiceListMetaSchemas: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListMetaSchemasResponse, RpcStatus>>;
2418
+ /**
2419
+ * @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"}}}}`
2420
+ *
2421
+ * @tags MetaSchema
2422
+ * @name FrontierServiceCreateMetaSchema
2423
+ * @summary Create metaschema
2424
+ * @request POST:/v1beta1/meta/schemas
2425
+ * @secure
2426
+ */
2427
+ frontierServiceCreateMetaSchema: (body: V1Beta1MetaSchemaRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateMetaSchemaResponse, RpcStatus>>;
2428
+ /**
2429
+ * @description Get a metadata schema by ID.
2430
+ *
2431
+ * @tags MetaSchema
2432
+ * @name FrontierServiceGetMetaSchema
2433
+ * @summary Get metaschema
2434
+ * @request GET:/v1beta1/meta/schemas/{id}
2435
+ * @secure
2436
+ */
2437
+ frontierServiceGetMetaSchema: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetMetaSchemaResponse, RpcStatus>>;
2438
+ /**
2439
+ * @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).
2440
+ *
2441
+ * @tags MetaSchema
2442
+ * @name FrontierServiceDeleteMetaSchema
2443
+ * @summary Delete metaschema
2444
+ * @request DELETE:/v1beta1/meta/schemas/{id}
2445
+ * @secure
2446
+ */
2447
+ frontierServiceDeleteMetaSchema: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2448
+ /**
2449
+ * @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"}}}}`
2450
+ *
2451
+ * @tags MetaSchema
2452
+ * @name FrontierServiceUpdateMetaSchema
2453
+ * @summary Update metaschema
2454
+ * @request PUT:/v1beta1/meta/schemas/{id}
2455
+ * @secure
2456
+ */
2457
+ frontierServiceUpdateMetaSchema: (id: string, body: V1Beta1MetaSchemaRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateMetaSchemaResponse, RpcStatus>>;
2458
+ /**
2459
+ * @description Returns the list of all namespaces in a Frontier instance
2460
+ *
2461
+ * @tags Namespace
2462
+ * @name FrontierServiceListNamespaces
2463
+ * @summary Get all namespaces
2464
+ * @request GET:/v1beta1/namespaces
2465
+ * @secure
2466
+ */
2467
+ frontierServiceListNamespaces: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListNamespacesResponse, RpcStatus>>;
2468
+ /**
2469
+ * @description Returns a namespace by ID
2470
+ *
2471
+ * @tags Namespace
2472
+ * @name FrontierServiceGetNamespace
2473
+ * @summary Get namespace
2474
+ * @request GET:/v1beta1/namespaces/{id}
2475
+ * @secure
2476
+ */
2477
+ frontierServiceGetNamespace: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetNamespaceResponse, RpcStatus>>;
2478
+ /**
2479
+ * @description Returns a list of organizations. It can be filtered by userID or organization state.
2480
+ *
2481
+ * @tags Organization
2482
+ * @name FrontierServiceListOrganizations
2483
+ * @summary List organizations
2484
+ * @request GET:/v1beta1/organizations
2485
+ * @secure
2486
+ */
2487
+ frontierServiceListOrganizations: (query?: {
2488
+ /** 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. */
2489
+ user_id?: string;
2490
+ /** The state to filter by. It can be `enabled` or `disabled`. */
2491
+ state?: string;
2492
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsResponse, RpcStatus>>;
2493
+ /**
2494
+ * No description
2495
+ *
2496
+ * @tags Organization
2497
+ * @name FrontierServiceCreateOrganization
2498
+ * @summary Create organization
2499
+ * @request POST:/v1beta1/organizations
2500
+ * @secure
2501
+ */
2502
+ frontierServiceCreateOrganization: (body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationResponse, RpcStatus>>;
2503
+ /**
2504
+ * @description Get organization by ID or name
2505
+ *
2506
+ * @tags Organization
2507
+ * @name FrontierServiceGetOrganization
2508
+ * @summary Get organization
2509
+ * @request GET:/v1beta1/organizations/{id}
2510
+ * @secure
2511
+ */
2512
+ frontierServiceGetOrganization: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationResponse, RpcStatus>>;
2513
+ /**
2514
+ * @description Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier.
2515
+ *
2516
+ * @tags Organization
2517
+ * @name FrontierServiceDeleteOrganization
2518
+ * @summary Delete organization
2519
+ * @request DELETE:/v1beta1/organizations/{id}
2520
+ * @secure
2521
+ */
2522
+ frontierServiceDeleteOrganization: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2523
+ /**
2524
+ * @description Update organization by ID
2525
+ *
2526
+ * @tags Organization
2527
+ * @name FrontierServiceUpdateOrganization
2528
+ * @summary Update organization
2529
+ * @request PUT:/v1beta1/organizations/{id}
2530
+ * @secure
2531
+ */
2532
+ frontierServiceUpdateOrganization: (id: string, body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationResponse, RpcStatus>>;
2533
+ /**
2534
+ * @description Returns a list admins of an organization
2535
+ *
2536
+ * @tags Organization
2537
+ * @name FrontierServiceListOrganizationAdmins
2538
+ * @summary List organization admins
2539
+ * @request GET:/v1beta1/organizations/{id}/admins
2540
+ * @secure
2541
+ */
2542
+ frontierServiceListOrganizationAdmins: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationAdminsResponse, RpcStatus>>;
2543
+ /**
2544
+ * @description Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources.
2545
+ *
2546
+ * @tags Organization
2547
+ * @name FrontierServiceDisableOrganization
2548
+ * @summary Disable organization
2549
+ * @request POST:/v1beta1/organizations/{id}/disable
2550
+ * @secure
2551
+ */
2552
+ frontierServiceDisableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2553
+ /**
2554
+ * @description Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources.
2555
+ *
2556
+ * @tags Organization
2557
+ * @name FrontierServiceEnableOrganization
2558
+ * @summary Enable organization
2559
+ * @request POST:/v1beta1/organizations/{id}/enable
2560
+ * @secure
2561
+ */
2562
+ frontierServiceEnableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2563
+ /**
2564
+ * @description List an organization preferences by ID.
2565
+ *
2566
+ * @tags Preference
2567
+ * @name FrontierServiceListOrganizationPreferences
2568
+ * @summary List organization preferences
2569
+ * @request GET:/v1beta1/organizations/{id}/preferences
2570
+ * @secure
2571
+ */
2572
+ frontierServiceListOrganizationPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationPreferencesResponse, RpcStatus>>;
2573
+ /**
2574
+ * @description Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores.
2575
+ *
2576
+ * @tags Preference
2577
+ * @name FrontierServiceCreateOrganizationPreferences
2578
+ * @summary Create organization preferences
2579
+ * @request POST:/v1beta1/organizations/{id}/preferences
2580
+ * @secure
2581
+ */
2582
+ frontierServiceCreateOrganizationPreferences: (id: string, body: {
2583
+ bodies?: V1Beta1PreferenceRequestBody[];
2584
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationPreferencesResponse, RpcStatus>>;
2585
+ /**
2586
+ * @description Get all projects that belong to an organization
2587
+ *
2588
+ * @tags Organization
2589
+ * @name FrontierServiceListOrganizationProjects
2590
+ * @summary Get organization projects
2591
+ * @request GET:/v1beta1/organizations/{id}/projects
2592
+ * @secure
2593
+ */
2594
+ frontierServiceListOrganizationProjects: (id: string, query?: {
2595
+ /** Filter projects by state. If not specified, all projects are returned. <br/> *Possible values:* `enabled` or `disabled` */
2596
+ state?: string;
2597
+ with_member_count?: boolean;
2598
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationProjectsResponse, RpcStatus>>;
2599
+ /**
2600
+ * No description
2601
+ *
2602
+ * @tags Organization
2603
+ * @name FrontierServiceListOrganizationServiceUsers
2604
+ * @summary List organization service users
2605
+ * @request GET:/v1beta1/organizations/{id}/serviceusers
2606
+ * @secure
2607
+ */
2608
+ frontierServiceListOrganizationServiceUsers: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationServiceUsersResponse, RpcStatus>>;
2609
+ /**
2610
+ * No description
2611
+ *
2612
+ * @tags Organization
2613
+ * @name FrontierServiceListOrganizationUsers
2614
+ * @summary List organization users
2615
+ * @request GET:/v1beta1/organizations/{id}/users
2616
+ * @secure
2617
+ */
2618
+ frontierServiceListOrganizationUsers: (id: string, query?: {
2619
+ permission_filter?: string;
2620
+ with_roles?: boolean;
2621
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationUsersResponse, RpcStatus>>;
2622
+ /**
2623
+ * @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
2624
+ *
2625
+ * @tags Organization
2626
+ * @name FrontierServiceAddOrganizationUsers
2627
+ * @summary Add organization user
2628
+ * @request POST:/v1beta1/organizations/{id}/users
2629
+ * @secure
2630
+ */
2631
+ frontierServiceAddOrganizationUsers: (id: string, body: {
2632
+ /** List of user IDs to be added to the organization. */
2633
+ user_ids?: string[];
2634
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2635
+ /**
2636
+ * @description Remove a user from an organization
2637
+ *
2638
+ * @tags Organization
2639
+ * @name FrontierServiceRemoveOrganizationUser
2640
+ * @summary Remove organization user
2641
+ * @request DELETE:/v1beta1/organizations/{id}/users/{user_id}
2642
+ * @secure
2643
+ */
2644
+ frontierServiceRemoveOrganizationUser: (id: string, userId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2645
+ /**
2646
+ * @description Returns a list of audit logs of an organization in Frontier.
2647
+ *
2648
+ * @tags AuditLog
2649
+ * @name FrontierServiceListOrganizationAuditLogs
2650
+ * @summary List audit logs
2651
+ * @request GET:/v1beta1/organizations/{org_id}/auditlogs
2652
+ * @secure
2653
+ */
2654
+ frontierServiceListOrganizationAuditLogs: (orgId: string, query?: {
2655
+ source?: string;
2656
+ action?: string;
2657
+ ignore_system?: boolean;
2658
+ /**
2659
+ * start_time and end_time are inclusive
2660
+ * @format date-time
2661
+ */
2662
+ start_time?: string;
2663
+ /** @format date-time */
2664
+ end_time?: string;
2665
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationAuditLogsResponse, RpcStatus>>;
2666
+ /**
2667
+ * @description Create new audit logs in a batch.
2668
+ *
2669
+ * @tags AuditLog
2670
+ * @name FrontierServiceCreateOrganizationAuditLogs
2671
+ * @summary Create audit log
2672
+ * @request POST:/v1beta1/organizations/{org_id}/auditlogs
2673
+ * @secure
2674
+ */
2675
+ frontierServiceCreateOrganizationAuditLogs: (orgId: string, body: {
2676
+ logs?: V1Beta1AuditLog[];
2677
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2678
+ /**
2679
+ * @description Get an audit log by ID.
2680
+ *
2681
+ * @tags AuditLog
2682
+ * @name FrontierServiceGetOrganizationAuditLog
2683
+ * @summary Get audit log
2684
+ * @request GET:/v1beta1/organizations/{org_id}/auditlogs/{id}
2685
+ * @secure
2686
+ */
2687
+ frontierServiceGetOrganizationAuditLog: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationAuditLogResponse, RpcStatus>>;
2688
+ /**
2689
+ * @description List billing accounts of an organization.
2690
+ *
2691
+ * @tags Billing
2692
+ * @name FrontierServiceListBillingAccounts
2693
+ * @summary List billing accounts
2694
+ * @request GET:/v1beta1/organizations/{org_id}/billing
2695
+ * @secure
2696
+ */
2697
+ frontierServiceListBillingAccounts: (orgId: string, query?: {
2698
+ expand?: string[];
2699
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListBillingAccountsResponse, RpcStatus>>;
2700
+ /**
2701
+ * @description Create a new billing account for an organization.
2702
+ *
2703
+ * @tags Billing
2704
+ * @name FrontierServiceCreateBillingAccount
2705
+ * @summary Create billing account
2706
+ * @request POST:/v1beta1/organizations/{org_id}/billing
2707
+ * @secure
2708
+ */
2709
+ frontierServiceCreateBillingAccount: (orgId: string, body: {
2710
+ /** Billing account to create. */
2711
+ body?: V1Beta1BillingAccountRequestBody | undefined;
2712
+ /** Offline billing account don't get registered with billing provider */
2713
+ offline?: boolean | undefined;
2714
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, RpcStatus>>;
2715
+ /**
2716
+ * @description Check if a billing account is entitled to a feature.
2717
+ *
2718
+ * @tags Entitlement
2719
+ * @name FrontierServiceCheckFeatureEntitlement
2720
+ * @summary Check entitlement
2721
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/check
2722
+ * @secure
2723
+ */
2724
+ frontierServiceCheckFeatureEntitlement: (orgId: string, billingId: string, body: {
2725
+ /**
2726
+ * either provide billing_id of the org or API can infer the default
2727
+ * billing ID from either org_id or project_id, not both
2728
+ */
2729
+ project_id?: string;
2730
+ /** feature or product name */
2731
+ feature?: string;
2732
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckFeatureEntitlementResponse, RpcStatus>>;
2733
+ /**
2734
+ * @description List all checkouts of a billing account.
2735
+ *
2736
+ * @tags Checkout
2737
+ * @name FrontierServiceListCheckouts
2738
+ * @summary List checkouts
2739
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts
2740
+ * @secure
2741
+ */
2742
+ frontierServiceListCheckouts: (orgId: string, billingId: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCheckoutsResponse, RpcStatus>>;
2743
+ /**
2744
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account.
2745
+ *
2746
+ * @tags Checkout
2747
+ * @name FrontierServiceCreateCheckout
2748
+ * @summary Checkout a product or subscription
2749
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts
2750
+ * @secure
2751
+ */
2752
+ frontierServiceCreateCheckout: (orgId: string, billingId: string, body: {
2753
+ success_url?: string;
2754
+ cancel_url?: string;
2755
+ /** Subscription to create */
2756
+ subscription_body?: V1Beta1CheckoutSubscriptionBody;
2757
+ /** Product to buy */
2758
+ product_body?: V1Beta1CheckoutProductBody;
2759
+ /** Payment method setup */
2760
+ setup_body?: V1Beta1CheckoutSetupBody;
2761
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateCheckoutResponse, RpcStatus>>;
2762
+ /**
2763
+ * @description Get a checkout by ID.
2764
+ *
2765
+ * @tags Checkout
2766
+ * @name FrontierServiceGetCheckout
2767
+ * @summary Get checkout
2768
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts/{id}
2769
+ * @secure
2770
+ */
2771
+ frontierServiceGetCheckout: (orgId: string, billingId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetCheckoutResponse, RpcStatus>>;
2772
+ /**
2773
+ * @description List all invoices of a billing account.
2774
+ *
2775
+ * @tags Invoice
2776
+ * @name FrontierServiceListInvoices
2777
+ * @summary List invoices
2778
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices
2779
+ * @secure
2780
+ */
2781
+ frontierServiceListInvoices: (orgId: string, billingId: string, query?: {
2782
+ nonzero_amount_only?: boolean;
2783
+ expand?: string[];
2784
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListInvoicesResponse, RpcStatus>>;
2785
+ /**
2786
+ * @description Get the upcoming invoice of a billing account.
2787
+ *
2788
+ * @tags Invoice
2789
+ * @name FrontierServiceGetUpcomingInvoice
2790
+ * @summary Get upcoming invoice
2791
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices/upcoming
2792
+ * @secure
2793
+ */
2794
+ frontierServiceGetUpcomingInvoice: (orgId: string, billingId: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetUpcomingInvoiceResponse, RpcStatus>>;
2795
+ /**
2796
+ * @description List subscriptions of a billing account.
2797
+ *
2798
+ * @tags Subscription
2799
+ * @name FrontierServiceListSubscriptions
2800
+ * @summary List subscriptions
2801
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions
2802
+ * @secure
2803
+ */
2804
+ frontierServiceListSubscriptions: (orgId: string, billingId: string, query?: {
2805
+ /** Filter subscriptions by state */
2806
+ state?: string;
2807
+ plan?: string;
2808
+ expand?: string[];
2809
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListSubscriptionsResponse, RpcStatus>>;
2810
+ /**
2811
+ * @description Get a subscription by ID.
2812
+ *
2813
+ * @tags Subscription
2814
+ * @name FrontierServiceGetSubscription
2815
+ * @summary Get subscription
2816
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}
2817
+ * @secure
2818
+ */
2819
+ frontierServiceGetSubscription: (orgId: string, billingId: string, id: string, query?: {
2820
+ expand?: string[];
2821
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetSubscriptionResponse, RpcStatus>>;
2822
+ /**
2823
+ * @description Update a subscription by ID.
2824
+ *
2825
+ * @tags Subscription
2826
+ * @name FrontierServiceUpdateSubscription
2827
+ * @summary Update subscription
2828
+ * @request PUT:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}
2829
+ * @secure
2830
+ */
2831
+ frontierServiceUpdateSubscription: (orgId: string, billingId: string, id: string, body: {
2832
+ metadata?: object;
2833
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateSubscriptionResponse, RpcStatus>>;
2834
+ /**
2835
+ * @description Cancel a subscription by ID.
2836
+ *
2837
+ * @tags Subscription
2838
+ * @name FrontierServiceCancelSubscription
2839
+ * @summary Cancel subscription
2840
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/cancel
2841
+ * @secure
2842
+ */
2843
+ frontierServiceCancelSubscription: (orgId: string, billingId: string, id: string, body: {
2844
+ immediate?: boolean;
2845
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2846
+ /**
2847
+ * @description Change a subscription plan by ID.
2848
+ *
2849
+ * @tags Subscription
2850
+ * @name FrontierServiceChangeSubscription
2851
+ * @summary Change subscription plan
2852
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/change
2853
+ * @secure
2854
+ */
2855
+ frontierServiceChangeSubscription: (orgId: string, billingId: string, id: string, body: {
2856
+ /**
2857
+ * plan to change to
2858
+ * deprecated in favor of plan_change
2859
+ */
2860
+ plan?: string;
2861
+ /**
2862
+ * should the change be immediate or at the end of the current billing period
2863
+ * deprecated in favor of plan_change
2864
+ */
2865
+ immediate?: boolean;
2866
+ plan_change?: ChangeSubscriptionRequestPlanChange;
2867
+ phase_change?: ChangeSubscriptionRequestPhaseChange;
2868
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ChangeSubscriptionResponse, RpcStatus>>;
2869
+ /**
2870
+ * @description List all transactions of a billing account.
2871
+ *
2872
+ * @tags Transaction
2873
+ * @name FrontierServiceListBillingTransactions
2874
+ * @summary List billing transactions
2875
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/transactions
2876
+ * @secure
2877
+ */
2878
+ frontierServiceListBillingTransactions: (orgId: string, billingId: string, query?: {
2879
+ /** @format date-time */
2880
+ since?: string;
2881
+ /** @format date-time */
2882
+ start_range?: string;
2883
+ /** @format date-time */
2884
+ end_range?: string;
2885
+ expand?: string[];
2886
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListBillingTransactionsResponse, RpcStatus>>;
2887
+ /**
2888
+ * @description Report a new billing usage for a billing account.
2889
+ *
2890
+ * @tags Usage
2891
+ * @name FrontierServiceCreateBillingUsage
2892
+ * @summary Create billing usage
2893
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/usages
2894
+ * @secure
2895
+ */
2896
+ frontierServiceCreateBillingUsage: (orgId: string, billingId: string, body: {
2897
+ /**
2898
+ * either provide billing_id of the org or API can infer the default
2899
+ * billing ID from either org_id or project_id, not both
2900
+ */
2901
+ project_id?: string;
2902
+ /** Usage to create */
2903
+ usages?: V1Beta1Usage[];
2904
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2905
+ /**
2906
+ * @description Get a billing account by ID.
2907
+ *
2908
+ * @tags Billing
2909
+ * @name FrontierServiceGetBillingAccount
2910
+ * @summary Get billing account
2911
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{id}
2912
+ * @secure
2913
+ */
2914
+ frontierServiceGetBillingAccount: (orgId: string, id: string, query?: {
2915
+ with_payment_methods?: boolean;
2916
+ expand?: string[];
2917
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetBillingAccountResponse, RpcStatus>>;
2918
+ /**
2919
+ * @description Delete a billing account by ID.
2920
+ *
2921
+ * @tags Billing
2922
+ * @name FrontierServiceDeleteBillingAccount
2923
+ * @summary Delete billing account
2924
+ * @request DELETE:/v1beta1/organizations/{org_id}/billing/{id}
2925
+ * @secure
2926
+ */
2927
+ frontierServiceDeleteBillingAccount: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2928
+ /**
2929
+ * @description Update a billing account by ID.
2930
+ *
2931
+ * @tags Billing
2932
+ * @name FrontierServiceUpdateBillingAccount
2933
+ * @summary Update billing account
2934
+ * @request PUT:/v1beta1/organizations/{org_id}/billing/{id}
2935
+ * @secure
2936
+ */
2937
+ frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
2938
+ /** Billing account to update. */
2939
+ body?: V1Beta1BillingAccountRequestBody | undefined;
2940
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, RpcStatus>>;
2941
+ /**
2942
+ * @description Get the balance of a billing account by ID.
2943
+ *
2944
+ * @tags Billing
2945
+ * @name FrontierServiceGetBillingBalance
2946
+ * @summary Get billing balance
2947
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{id}/balance
2948
+ * @secure
2949
+ */
2950
+ frontierServiceGetBillingBalance: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetBillingBalanceResponse, RpcStatus>>;
2951
+ /**
2952
+ * @description Disable a billing account by ID. Disabling a billing account doesn't automatically disable it's active subscriptions.
2953
+ *
2954
+ * @tags Billing
2955
+ * @name FrontierServiceDisableBillingAccount
2956
+ * @summary Disable billing account
2957
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/disable
2958
+ * @secure
2959
+ */
2960
+ frontierServiceDisableBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2961
+ /**
2962
+ * @description Enable a billing account by ID.
2963
+ *
2964
+ * @tags Billing
2965
+ * @name FrontierServiceEnableBillingAccount
2966
+ * @summary Enable billing account
2967
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/enable
2968
+ * @secure
2969
+ */
2970
+ frontierServiceEnableBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2971
+ /**
2972
+ * @description Check if a billing account has trialed.
2973
+ *
2974
+ * @tags Billing
2975
+ * @name FrontierServiceHasTrialed
2976
+ * @summary Has trialed
2977
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{id}/plans/{plan_id}/trialed
2978
+ * @secure
2979
+ */
2980
+ frontierServiceHasTrialed: (orgId: string, id: string, planId: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1HasTrialedResponse, RpcStatus>>;
2981
+ /**
2982
+ * @description Register a billing account to a provider if it's not already.
2983
+ *
2984
+ * @tags Billing
2985
+ * @name FrontierServiceRegisterBillingAccount
2986
+ * @summary Register billing account to provider
2987
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/register
2988
+ * @secure
2989
+ */
2990
+ frontierServiceRegisterBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
2991
+ /**
2992
+ * @description List all checkouts of a billing account.
2993
+ *
2994
+ * @tags Checkout
2995
+ * @name FrontierServiceListCheckouts2
2996
+ * @summary List checkouts
2997
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts
2998
+ * @secure
2999
+ */
3000
+ frontierServiceListCheckouts2: (orgId: string, query?: {
3001
+ /** ID of the billing account to get the subscriptions for */
3002
+ billing_id?: string;
3003
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCheckoutsResponse, RpcStatus>>;
3004
+ /**
3005
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account.
3006
+ *
3007
+ * @tags Checkout
3008
+ * @name FrontierServiceCreateCheckout2
3009
+ * @summary Checkout a product or subscription
3010
+ * @request POST:/v1beta1/organizations/{org_id}/billing/checkouts
3011
+ * @secure
3012
+ */
3013
+ frontierServiceCreateCheckout2: (orgId: string, body: {
3014
+ /** ID of the billing account to update the subscription for */
3015
+ billing_id?: string;
3016
+ success_url?: string;
3017
+ cancel_url?: string;
3018
+ /** Subscription to create */
3019
+ subscription_body?: V1Beta1CheckoutSubscriptionBody;
3020
+ /** Product to buy */
3021
+ product_body?: V1Beta1CheckoutProductBody;
3022
+ /** Payment method setup */
3023
+ setup_body?: V1Beta1CheckoutSetupBody;
3024
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateCheckoutResponse, RpcStatus>>;
3025
+ /**
3026
+ * @description Get a checkout by ID.
3027
+ *
3028
+ * @tags Checkout
3029
+ * @name FrontierServiceGetCheckout2
3030
+ * @summary Get checkout
3031
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts/{id}
3032
+ * @secure
3033
+ */
3034
+ frontierServiceGetCheckout2: (orgId: string, id: string, query?: {
3035
+ /** ID of the billing account to get the subscriptions for */
3036
+ billing_id?: string;
3037
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetCheckoutResponse, RpcStatus>>;
3038
+ /**
3039
+ * @description List all invoices of a billing account.
3040
+ *
3041
+ * @tags Invoice
3042
+ * @name FrontierServiceListInvoices2
3043
+ * @summary List invoices
3044
+ * @request GET:/v1beta1/organizations/{org_id}/billing/invoices
3045
+ * @secure
3046
+ */
3047
+ frontierServiceListInvoices2: (orgId: string, query?: {
3048
+ /** ID of the billing account to list invoices for */
3049
+ billing_id?: string;
3050
+ nonzero_amount_only?: boolean;
3051
+ expand?: string[];
3052
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListInvoicesResponse, RpcStatus>>;
3053
+ /**
3054
+ * @description Get the upcoming invoice of a billing account.
3055
+ *
3056
+ * @tags Invoice
3057
+ * @name FrontierServiceGetUpcomingInvoice2
3058
+ * @summary Get upcoming invoice
3059
+ * @request GET:/v1beta1/organizations/{org_id}/billing/invoices/upcoming
3060
+ * @secure
3061
+ */
3062
+ frontierServiceGetUpcomingInvoice2: (orgId: string, query?: {
3063
+ /** ID of the billing account to get the upcoming invoice for */
3064
+ billing_id?: string;
3065
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetUpcomingInvoiceResponse, RpcStatus>>;
3066
+ /**
3067
+ * @description List subscriptions of a billing account.
3068
+ *
3069
+ * @tags Subscription
3070
+ * @name FrontierServiceListSubscriptions2
3071
+ * @summary List subscriptions
3072
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions
3073
+ * @secure
3074
+ */
3075
+ frontierServiceListSubscriptions2: (orgId: string, query?: {
3076
+ /** ID of the billing account to list subscriptions for */
3077
+ billing_id?: string;
3078
+ /** Filter subscriptions by state */
3079
+ state?: string;
3080
+ plan?: string;
3081
+ expand?: string[];
3082
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListSubscriptionsResponse, RpcStatus>>;
3083
+ /**
3084
+ * @description Get a subscription by ID.
3085
+ *
3086
+ * @tags Subscription
3087
+ * @name FrontierServiceGetSubscription2
3088
+ * @summary Get subscription
3089
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
3090
+ * @secure
3091
+ */
3092
+ frontierServiceGetSubscription2: (orgId: string, id: string, query?: {
3093
+ /** ID of the billing account to get the subscription for */
3094
+ billing_id?: string;
3095
+ expand?: string[];
3096
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetSubscriptionResponse, RpcStatus>>;
3097
+ /**
3098
+ * @description Update a subscription by ID.
3099
+ *
3100
+ * @tags Subscription
3101
+ * @name FrontierServiceUpdateSubscription2
3102
+ * @summary Update subscription
3103
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
3104
+ * @secure
3105
+ */
3106
+ frontierServiceUpdateSubscription2: (orgId: string, id: string, body: {
3107
+ /** ID of the billing account to update the subscription for */
3108
+ billing_id?: string;
3109
+ metadata?: object;
3110
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateSubscriptionResponse, RpcStatus>>;
3111
+ /**
3112
+ * @description Cancel a subscription by ID.
3113
+ *
3114
+ * @tags Subscription
3115
+ * @name FrontierServiceCancelSubscription2
3116
+ * @summary Cancel subscription
3117
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/cancel
3118
+ * @secure
3119
+ */
3120
+ frontierServiceCancelSubscription2: (orgId: string, id: string, body: {
3121
+ /** ID of the billing account to update the subscription for */
3122
+ billing_id?: string;
3123
+ immediate?: boolean;
3124
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3125
+ /**
3126
+ * @description Change a subscription plan by ID.
3127
+ *
3128
+ * @tags Subscription
3129
+ * @name FrontierServiceChangeSubscription2
3130
+ * @summary Change subscription plan
3131
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/change
3132
+ * @secure
3133
+ */
3134
+ frontierServiceChangeSubscription2: (orgId: string, id: string, body: {
3135
+ /** ID of the billing account to update the subscription for */
3136
+ billing_id?: string;
3137
+ /**
3138
+ * plan to change to
3139
+ * deprecated in favor of plan_change
3140
+ */
3141
+ plan?: string;
3142
+ /**
3143
+ * should the change be immediate or at the end of the current billing period
3144
+ * deprecated in favor of plan_change
3145
+ */
3146
+ immediate?: boolean;
3147
+ plan_change?: ChangeSubscriptionRequestPlanChange;
3148
+ phase_change?: ChangeSubscriptionRequestPhaseChange;
3149
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ChangeSubscriptionResponse, RpcStatus>>;
3150
+ /**
3151
+ * @description List all transactions of a billing account.
3152
+ *
3153
+ * @tags Transaction
3154
+ * @name FrontierServiceListBillingTransactions2
3155
+ * @summary List billing transactions
3156
+ * @request GET:/v1beta1/organizations/{org_id}/billing/transactions
3157
+ * @secure
3158
+ */
3159
+ frontierServiceListBillingTransactions2: (orgId: string, query?: {
3160
+ /** ID of the billing account to update the subscription for */
3161
+ billing_id?: string;
3162
+ /** @format date-time */
3163
+ since?: string;
3164
+ /** @format date-time */
3165
+ start_range?: string;
3166
+ /** @format date-time */
3167
+ end_range?: string;
3168
+ expand?: string[];
3169
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListBillingTransactionsResponse, RpcStatus>>;
3170
+ /**
3171
+ * @description Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation.
3172
+ *
3173
+ * @tags Organization
3174
+ * @name FrontierServiceListOrganizationDomains
3175
+ * @summary List org domains
3176
+ * @request GET:/v1beta1/organizations/{org_id}/domains
3177
+ * @secure
3178
+ */
3179
+ frontierServiceListOrganizationDomains: (orgId: string, query?: {
3180
+ /** filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed */
3181
+ state?: string;
3182
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationDomainsResponse, RpcStatus>>;
3183
+ /**
3184
+ * @description Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users.
3185
+ *
3186
+ * @tags Organization
3187
+ * @name FrontierServiceCreateOrganizationDomain
3188
+ * @summary Create org domain
3189
+ * @request POST:/v1beta1/organizations/{org_id}/domains
3190
+ * @secure
3191
+ */
3192
+ frontierServiceCreateOrganizationDomain: (orgId: string, body: {
3193
+ /** domain name to be added to the trusted domain list */
3194
+ domain: string;
3195
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationDomainResponse, RpcStatus>>;
3196
+ /**
3197
+ * @description Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID
3198
+ *
3199
+ * @tags Organization
3200
+ * @name FrontierServiceGetOrganizationDomain
3201
+ * @summary Get org domain
3202
+ * @request GET:/v1beta1/organizations/{org_id}/domains/{id}
3203
+ * @secure
3204
+ */
3205
+ frontierServiceGetOrganizationDomain: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationDomainResponse, RpcStatus>>;
3206
+ /**
3207
+ * @description Remove a domain from the list of an organization's trusted domains list
3208
+ *
3209
+ * @tags Organization
3210
+ * @name FrontierServiceDeleteOrganizationDomain
3211
+ * @summary Delete org domain
3212
+ * @request DELETE:/v1beta1/organizations/{org_id}/domains/{id}
3213
+ * @secure
3214
+ */
3215
+ frontierServiceDeleteOrganizationDomain: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3216
+ /**
3217
+ * @description Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification.
3218
+ *
3219
+ * @tags Organization
3220
+ * @name FrontierServiceVerifyOrganizationDomain
3221
+ * @summary Verify org domain
3222
+ * @request POST:/v1beta1/organizations/{org_id}/domains/{id}/verify
3223
+ * @secure
3224
+ */
3225
+ frontierServiceVerifyOrganizationDomain: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<V1Beta1VerifyOrganizationDomainResponse, RpcStatus>>;
3226
+ /**
3227
+ * @description Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled.
3228
+ *
3229
+ * @tags Group
3230
+ * @name FrontierServiceListOrganizationGroups
3231
+ * @summary List organization groups
3232
+ * @request GET:/v1beta1/organizations/{org_id}/groups
3233
+ * @secure
3234
+ */
3235
+ frontierServiceListOrganizationGroups: (orgId: string, query?: {
3236
+ /** The state of the group to filter by. It can be enabled or disabled. */
3237
+ state?: string;
3238
+ group_ids?: string[];
3239
+ with_members?: boolean;
3240
+ with_member_count?: boolean;
3241
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationGroupsResponse, RpcStatus>>;
3242
+ /**
3243
+ * @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.
3244
+ *
3245
+ * @tags Group
3246
+ * @name FrontierServiceCreateGroup
3247
+ * @summary Create group
3248
+ * @request POST:/v1beta1/organizations/{org_id}/groups
3249
+ * @secure
3250
+ */
3251
+ frontierServiceCreateGroup: (orgId: string, body: V1Beta1GroupRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateGroupResponse, RpcStatus>>;
3252
+ /**
3253
+ * No description
3254
+ *
3255
+ * @tags Group
3256
+ * @name FrontierServiceGetGroup
3257
+ * @summary Get group
3258
+ * @request GET:/v1beta1/organizations/{org_id}/groups/{id}
3259
+ * @secure
3260
+ */
3261
+ frontierServiceGetGroup: (orgId: string, id: string, query?: {
3262
+ with_members?: boolean;
3263
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetGroupResponse, RpcStatus>>;
3264
+ /**
3265
+ * @description Delete an organization group permanently and all of its relations
3266
+ *
3267
+ * @tags Group
3268
+ * @name FrontierServiceDeleteGroup
3269
+ * @summary Delete group
3270
+ * @request DELETE:/v1beta1/organizations/{org_id}/groups/{id}
3271
+ * @secure
3272
+ */
3273
+ frontierServiceDeleteGroup: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3274
+ /**
3275
+ * No description
3276
+ *
3277
+ * @tags Group
3278
+ * @name FrontierServiceUpdateGroup
3279
+ * @summary Update group
3280
+ * @request PUT:/v1beta1/organizations/{org_id}/groups/{id}
3281
+ * @secure
3282
+ */
3283
+ frontierServiceUpdateGroup: (orgId: string, id: string, body: V1Beta1GroupRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateGroupResponse, RpcStatus>>;
3284
+ /**
3285
+ * @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.
3286
+ *
3287
+ * @tags Group
3288
+ * @name FrontierServiceDisableGroup
3289
+ * @summary Disable group
3290
+ * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/disable
3291
+ * @secure
3292
+ */
3293
+ frontierServiceDisableGroup: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3294
+ /**
3295
+ * @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.
3296
+ *
3297
+ * @tags Group
3298
+ * @name FrontierServiceEnableGroup
3299
+ * @summary Enable group
3300
+ * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/enable
3301
+ * @secure
3302
+ */
3303
+ frontierServiceEnableGroup: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3304
+ /**
3305
+ * @description Returns a list of users that belong to a group.
3306
+ *
3307
+ * @tags Group
3308
+ * @name FrontierServiceListGroupUsers
3309
+ * @summary List group users
3310
+ * @request GET:/v1beta1/organizations/{org_id}/groups/{id}/users
3311
+ * @secure
3312
+ */
3313
+ frontierServiceListGroupUsers: (orgId: string, id: string, query?: {
3314
+ with_roles?: boolean;
3315
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupUsersResponse, RpcStatus>>;
3316
+ /**
3317
+ * @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.
3318
+ *
3319
+ * @tags Group
3320
+ * @name FrontierServiceAddGroupUsers
3321
+ * @summary Add group user
3322
+ * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/users
3323
+ * @secure
3324
+ */
3325
+ frontierServiceAddGroupUsers: (orgId: string, id: string, body: {
3326
+ user_ids?: string[];
3327
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3328
+ /**
3329
+ * @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.
3330
+ *
3331
+ * @tags Group
3332
+ * @name FrontierServiceRemoveGroupUser
3333
+ * @summary Remove group user
3334
+ * @request DELETE:/v1beta1/organizations/{org_id}/groups/{id}/users/{user_id}
3335
+ * @secure
3336
+ */
3337
+ frontierServiceRemoveGroupUser: (orgId: string, id: string, userId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3338
+ /**
3339
+ * @description Returns all pending invitations queued for an organization
3340
+ *
3341
+ * @tags Organization
3342
+ * @name FrontierServiceListOrganizationInvitations
3343
+ * @summary List pending invitations
3344
+ * @request GET:/v1beta1/organizations/{org_id}/invitations
3345
+ * @secure
3346
+ */
3347
+ frontierServiceListOrganizationInvitations: (orgId: string, query?: {
3348
+ /** user_id filter is the email id of user who are invited inside the organization. */
3349
+ user_id?: string;
3350
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationInvitationsResponse, RpcStatus>>;
3351
+ /**
3352
+ * @description Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days
3353
+ *
3354
+ * @tags Organization
3355
+ * @name FrontierServiceCreateOrganizationInvitation
3356
+ * @summary Invite user
3357
+ * @request POST:/v1beta1/organizations/{org_id}/invitations
3358
+ * @secure
3359
+ */
3360
+ frontierServiceCreateOrganizationInvitation: (orgId: string, body: {
3361
+ /** 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 */
3362
+ user_ids: string[];
3363
+ /** list of group ids to which user needs to be added as a member. */
3364
+ group_ids?: string[];
3365
+ /** list of role ids to which user needs to be added as a member. Roles are binded at organization level by default. */
3366
+ role_ids?: string[];
3367
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationInvitationResponse, RpcStatus>>;
3368
+ /**
3369
+ * @description Returns a pending invitation queued for an organization
3370
+ *
3371
+ * @tags Organization
3372
+ * @name FrontierServiceGetOrganizationInvitation
3373
+ * @summary Get pending invitation
3374
+ * @request GET:/v1beta1/organizations/{org_id}/invitations/{id}
3375
+ * @secure
3376
+ */
3377
+ frontierServiceGetOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationInvitationResponse, RpcStatus>>;
3378
+ /**
3379
+ * @description Delete a pending invitation queued for an organization
3380
+ *
3381
+ * @tags Organization
3382
+ * @name FrontierServiceDeleteOrganizationInvitation
3383
+ * @summary Delete pending invitation
3384
+ * @request DELETE:/v1beta1/organizations/{org_id}/invitations/{id}
3385
+ * @secure
3386
+ */
3387
+ frontierServiceDeleteOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3388
+ /**
3389
+ * @description Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation
3390
+ *
3391
+ * @tags Organization
3392
+ * @name FrontierServiceAcceptOrganizationInvitation
3393
+ * @summary Accept pending invitation
3394
+ * @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
3395
+ * @secure
3396
+ */
3397
+ frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3398
+ /**
3399
+ * @description Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains.
3400
+ *
3401
+ * @tags Organization
3402
+ * @name FrontierServiceJoinOrganization
3403
+ * @summary Join organization
3404
+ * @request POST:/v1beta1/organizations/{org_id}/join
3405
+ * @secure
3406
+ */
3407
+ frontierServiceJoinOrganization: (orgId: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3408
+ /**
3409
+ * @description Returns a list of custom roles created under an organization with their associated permissions
3410
+ *
3411
+ * @tags Role
3412
+ * @name FrontierServiceListOrganizationRoles
3413
+ * @summary List organization roles
3414
+ * @request GET:/v1beta1/organizations/{org_id}/roles
3415
+ * @secure
3416
+ */
3417
+ frontierServiceListOrganizationRoles: (orgId: string, query?: {
3418
+ state?: string;
3419
+ scopes?: string[];
3420
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationRolesResponse, RpcStatus>>;
3421
+ /**
3422
+ * @description Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization.
3423
+ *
3424
+ * @tags Role
3425
+ * @name FrontierServiceCreateOrganizationRole
3426
+ * @summary Create organization role
3427
+ * @request POST:/v1beta1/organizations/{org_id}/roles
3428
+ * @secure
3429
+ */
3430
+ frontierServiceCreateOrganizationRole: (orgId: string, body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationRoleResponse, RpcStatus>>;
3431
+ /**
3432
+ * @description Returns a custom role under an organization along with its associated permissions
3433
+ *
3434
+ * @tags Role
3435
+ * @name FrontierServiceGetOrganizationRole
3436
+ * @summary Get organization role
3437
+ * @request GET:/v1beta1/organizations/{org_id}/roles/{id}
3438
+ * @secure
3439
+ */
3440
+ frontierServiceGetOrganizationRole: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetOrganizationRoleResponse, RpcStatus>>;
3441
+ /**
3442
+ * @description Delete a custom role and all of its relations under an organization permanently.
3443
+ *
3444
+ * @tags Role
3445
+ * @name FrontierServiceDeleteOrganizationRole
3446
+ * @summary Delete organization role
3447
+ * @request DELETE:/v1beta1/organizations/{org_id}/roles/{id}
3448
+ * @secure
3449
+ */
3450
+ frontierServiceDeleteOrganizationRole: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3451
+ /**
3452
+ * @description Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization.
3453
+ *
3454
+ * @tags Role
3455
+ * @name FrontierServiceUpdateOrganizationRole
3456
+ * @summary Update organization role
3457
+ * @request PUT:/v1beta1/organizations/{org_id}/roles/{id}
3458
+ * @secure
3459
+ */
3460
+ frontierServiceUpdateOrganizationRole: (orgId: string, id: string, body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationRoleResponse, RpcStatus>>;
3461
+ /**
3462
+ * @description Check if a billing account is entitled to a feature.
3463
+ *
3464
+ * @tags Entitlement
3465
+ * @name FrontierServiceCheckFeatureEntitlement2
3466
+ * @summary Check entitlement
3467
+ * @request POST:/v1beta1/organizations/billing/check
3468
+ * @secure
3469
+ */
3470
+ frontierServiceCheckFeatureEntitlement2: (body: V1Beta1CheckFeatureEntitlementRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckFeatureEntitlementResponse, RpcStatus>>;
3471
+ /**
3472
+ * @description Report a new billing usage for a billing account.
3473
+ *
3474
+ * @tags Usage
3475
+ * @name FrontierServiceCreateBillingUsage2
3476
+ * @summary Create billing usage
3477
+ * @request POST:/v1beta1/organizations/billing/usages
3478
+ * @secure
3479
+ */
3480
+ frontierServiceCreateBillingUsage2: (body: V1Beta1CreateBillingUsageRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3481
+ /**
3482
+ * @description Revert billing usage for a billing account.
3483
+ *
3484
+ * @tags Billing
3485
+ * @name AdminServiceRevertBillingUsage2
3486
+ * @summary Revert billing usage
3487
+ * @request POST:/v1beta1/organizations/billing/usages/revert
3488
+ * @secure
3489
+ */
3490
+ adminServiceRevertBillingUsage2: (body: V1Beta1RevertBillingUsageRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3491
+ /**
3492
+ * No description
3493
+ *
3494
+ * @tags Permission
3495
+ * @name FrontierServiceListPermissions
3496
+ * @summary Get all permissions
3497
+ * @request GET:/v1beta1/permissions
3498
+ * @secure
3499
+ */
3500
+ frontierServiceListPermissions: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPermissionsResponse, RpcStatus>>;
3501
+ /**
3502
+ * @description Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance.
3503
+ *
3504
+ * @tags Permission
3505
+ * @name AdminServiceCreatePermission
3506
+ * @summary Create platform permission
3507
+ * @request POST:/v1beta1/permissions
3508
+ * @secure
3509
+ */
3510
+ adminServiceCreatePermission: (body: V1Beta1CreatePermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePermissionResponse, RpcStatus>>;
3511
+ /**
3512
+ * @description Returns a permission by ID
3513
+ *
3514
+ * @tags Permission
3515
+ * @name FrontierServiceGetPermission
3516
+ * @summary Get permission
3517
+ * @request GET:/v1beta1/permissions/{id}
3518
+ * @secure
3519
+ */
3520
+ frontierServiceGetPermission: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetPermissionResponse, RpcStatus>>;
3521
+ /**
3522
+ * No description
3523
+ *
3524
+ * @tags Permission
3525
+ * @name AdminServiceDeletePermission
3526
+ * @summary Delete platform permission
3527
+ * @request DELETE:/v1beta1/permissions/{id}
3528
+ * @secure
3529
+ */
3530
+ adminServiceDeletePermission: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3531
+ /**
3532
+ * @description Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance.
3533
+ *
3534
+ * @tags Permission
3535
+ * @name AdminServiceUpdatePermission
3536
+ * @summary Update platform permission
3537
+ * @request PUT:/v1beta1/permissions/{id}
3538
+ * @secure
3539
+ */
3540
+ adminServiceUpdatePermission: (id: string, body: V1Beta1PermissionRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePermissionResponse, RpcStatus>>;
3541
+ /**
3542
+ * @description Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group.
3543
+ *
3544
+ * @tags Policy
3545
+ * @name FrontierServiceListPolicies
3546
+ * @summary List all policies
3547
+ * @request GET:/v1beta1/policies
3548
+ * @secure
3549
+ */
3550
+ frontierServiceListPolicies: (query?: {
3551
+ /** The organization id to filter by. */
3552
+ org_id?: string;
3553
+ /** The project id to filter by. */
3554
+ project_id?: string;
3555
+ /** The user id to filter by. */
3556
+ user_id?: string;
3557
+ /** The role id to filter by. */
3558
+ role_id?: string;
3559
+ /** The group id to filter by. */
3560
+ group_id?: string;
3561
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPoliciesResponse, RpcStatus>>;
3562
+ /**
3563
+ * @description Creates a policy
3564
+ *
3565
+ * @tags Policy
3566
+ * @name FrontierServiceCreatePolicy
3567
+ * @summary Create policy
3568
+ * @request POST:/v1beta1/policies
3569
+ * @secure
3570
+ */
3571
+ frontierServiceCreatePolicy: (body: V1Beta1PolicyRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePolicyResponse, RpcStatus>>;
3572
+ /**
3573
+ * @description Returns a policy by ID
3574
+ *
3575
+ * @tags Policy
3576
+ * @name FrontierServiceGetPolicy
3577
+ * @summary Get policy
3578
+ * @request GET:/v1beta1/policies/{id}
3579
+ * @secure
3580
+ */
3581
+ frontierServiceGetPolicy: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetPolicyResponse, RpcStatus>>;
3582
+ /**
3583
+ * @description Delete a policy all of its relations permanently.
3584
+ *
3585
+ * @tags Policy
3586
+ * @name FrontierServiceDeletePolicy
3587
+ * @summary Delete Policy
3588
+ * @request DELETE:/v1beta1/policies/{id}
3589
+ * @secure
3590
+ */
3591
+ frontierServiceDeletePolicy: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3592
+ /**
3593
+ * @description Updates a policy by ID
3594
+ *
3595
+ * @tags Policy
3596
+ * @name FrontierServiceUpdatePolicy
3597
+ * @summary Update policy
3598
+ * @request PUT:/v1beta1/policies/{id}
3599
+ * @secure
3600
+ */
3601
+ frontierServiceUpdatePolicy: (id: string, body: V1Beta1PolicyRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePolicyResponse, RpcStatus>>;
3602
+ /**
3603
+ * @description Create a policy for a project
3604
+ *
3605
+ * @tags Policy
3606
+ * @name FrontierServiceCreatePolicyForProject
3607
+ * @summary Create Policy for Project
3608
+ * @request POST:/v1beta1/policies/projects/{project_id}
3609
+ * @secure
3610
+ */
3611
+ frontierServiceCreatePolicyForProject: (projectId: string, body: V1Beta1CreatePolicyForProjectBody, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3612
+ /**
3613
+ * @description Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc
3614
+ *
3615
+ * @tags Preference
3616
+ * @name AdminServiceListPreferences
3617
+ * @summary List platform preferences
3618
+ * @request GET:/v1beta1/preferences
3619
+ * @secure
3620
+ */
3621
+ adminServiceListPreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListPreferencesResponse, RpcStatus>>;
3622
+ /**
3623
+ * @description Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores.
3624
+ *
3625
+ * @tags Preference
3626
+ * @name AdminServiceCreatePreferences
3627
+ * @summary Create platform preferences
3628
+ * @request POST:/v1beta1/preferences
3629
+ * @secure
3630
+ */
3631
+ adminServiceCreatePreferences: (body: V1Beta1CreatePreferencesRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreatePreferencesResponse, RpcStatus>>;
3632
+ /**
3633
+ * @description Returns a list of all preferences supported by Frontier.
3634
+ *
3635
+ * @tags Preference
3636
+ * @name FrontierServiceDescribePreferences
3637
+ * @summary Describe preferences
3638
+ * @request GET:/v1beta1/preferences/traits
3639
+ * @secure
3640
+ */
3641
+ frontierServiceDescribePreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1DescribePreferencesResponse, RpcStatus>>;
3642
+ /**
3643
+ * No description
3644
+ *
3645
+ * @tags Project
3646
+ * @name FrontierServiceCreateProject
3647
+ * @summary Create project
3648
+ * @request POST:/v1beta1/projects
3649
+ * @secure
3650
+ */
3651
+ frontierServiceCreateProject: (body: V1Beta1ProjectRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectResponse, RpcStatus>>;
3652
+ /**
3653
+ * @description Returns a project by ID
3654
+ *
3655
+ * @tags Project
3656
+ * @name FrontierServiceGetProject
3657
+ * @summary Get project
3658
+ * @request GET:/v1beta1/projects/{id}
3659
+ * @secure
3660
+ */
3661
+ frontierServiceGetProject: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectResponse, RpcStatus>>;
3662
+ /**
3663
+ * @description Delete a project all of its relations permanently.
3664
+ *
3665
+ * @tags Project
3666
+ * @name FrontierServiceDeleteProject
3667
+ * @summary Delete Project
3668
+ * @request DELETE:/v1beta1/projects/{id}
3669
+ * @secure
3670
+ */
3671
+ frontierServiceDeleteProject: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3672
+ /**
3673
+ * @description Updates a project by ID
3674
+ *
3675
+ * @tags Project
3676
+ * @name FrontierServiceUpdateProject
3677
+ * @summary Update project
3678
+ * @request PUT:/v1beta1/projects/{id}
3679
+ * @secure
3680
+ */
3681
+ frontierServiceUpdateProject: (id: string, body: V1Beta1ProjectRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProjectResponse, RpcStatus>>;
3682
+ /**
3683
+ * @description Returns a collection of admins of a project
3684
+ *
3685
+ * @tags Project
3686
+ * @name FrontierServiceListProjectAdmins
3687
+ * @summary List project admins
3688
+ * @request GET:/v1beta1/projects/{id}/admins
3689
+ * @secure
3690
+ */
3691
+ frontierServiceListProjectAdmins: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectAdminsResponse, RpcStatus>>;
3692
+ /**
3693
+ * No description
3694
+ *
3695
+ * @tags Project
3696
+ * @name FrontierServiceDisableProject
3697
+ * @summary Disable project
3698
+ * @request POST:/v1beta1/projects/{id}/disable
3699
+ * @secure
3700
+ */
3701
+ frontierServiceDisableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3702
+ /**
3703
+ * No description
3704
+ *
3705
+ * @tags Project
3706
+ * @name FrontierServiceEnableProject
3707
+ * @summary Enable project
3708
+ * @request POST:/v1beta1/projects/{id}/enable
3709
+ * @secure
3710
+ */
3711
+ frontierServiceEnableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3712
+ /**
3713
+ * @description Returns a collection of groups of a project.
3714
+ *
3715
+ * @tags Project
3716
+ * @name FrontierServiceListProjectGroups
3717
+ * @summary List project groups
3718
+ * @request GET:/v1beta1/projects/{id}/groups
3719
+ * @secure
3720
+ */
3721
+ frontierServiceListProjectGroups: (id: string, query?: {
3722
+ with_roles?: boolean;
3723
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectGroupsResponse, RpcStatus>>;
3724
+ /**
3725
+ * @description List a project preferences by ID.
3726
+ *
3727
+ * @tags Preference
3728
+ * @name FrontierServiceListProjectPreferences
3729
+ * @summary List project preferences
3730
+ * @request GET:/v1beta1/projects/{id}/preferences
3731
+ * @secure
3732
+ */
3733
+ frontierServiceListProjectPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectPreferencesResponse, RpcStatus>>;
3734
+ /**
3735
+ * @description Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores.
3736
+ *
3737
+ * @tags Preference
3738
+ * @name FrontierServiceCreateProjectPreferences
3739
+ * @summary Create project preferences
3740
+ * @request POST:/v1beta1/projects/{id}/preferences
3741
+ * @secure
3742
+ */
3743
+ frontierServiceCreateProjectPreferences: (id: string, body: {
3744
+ bodies?: V1Beta1PreferenceRequestBody[];
3745
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectPreferencesResponse, RpcStatus>>;
3746
+ /**
3747
+ * @description Returns a collection of users of a project.
3748
+ *
3749
+ * @tags Project
3750
+ * @name FrontierServiceListProjectServiceUsers
3751
+ * @summary List project serviceusers
3752
+ * @request GET:/v1beta1/projects/{id}/serviceusers
3753
+ * @secure
3754
+ */
3755
+ frontierServiceListProjectServiceUsers: (id: string, query?: {
3756
+ with_roles?: boolean;
3757
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectServiceUsersResponse, RpcStatus>>;
3758
+ /**
3759
+ * @description Returns a collection of users of a project. Filter by user permissions is supported.
3760
+ *
3761
+ * @tags Project
3762
+ * @name FrontierServiceListProjectUsers
3763
+ * @summary List project users
3764
+ * @request GET:/v1beta1/projects/{id}/users
3765
+ * @secure
3766
+ */
3767
+ frontierServiceListProjectUsers: (id: string, query?: {
3768
+ permission_filter?: string;
3769
+ with_roles?: boolean;
3770
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectUsersResponse, RpcStatus>>;
3771
+ /**
3772
+ * No description
3773
+ *
3774
+ * @tags Resource
3775
+ * @name FrontierServiceListProjectResources
3776
+ * @summary Get all resources
3777
+ * @request GET:/v1beta1/projects/{project_id}/resources
3778
+ * @secure
3779
+ */
3780
+ frontierServiceListProjectResources: (projectId: string, query?: {
3781
+ namespace?: string;
3782
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectResourcesResponse, RpcStatus>>;
3783
+ /**
3784
+ * @description Creates a resource in a project
3785
+ *
3786
+ * @tags Resource
3787
+ * @name FrontierServiceCreateProjectResource
3788
+ * @summary Create resource
3789
+ * @request POST:/v1beta1/projects/{project_id}/resources
3790
+ * @secure
3791
+ */
3792
+ frontierServiceCreateProjectResource: (projectId: string, body: V1Beta1ResourceRequestBody, query?: {
3793
+ /** Autogenerated if skipped. */
3794
+ id?: string;
3795
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectResourceResponse, RpcStatus>>;
3796
+ /**
3797
+ * @description Returns a project resource by ID
3798
+ *
3799
+ * @tags Resource
3800
+ * @name FrontierServiceGetProjectResource
3801
+ * @summary Get resource
3802
+ * @request GET:/v1beta1/projects/{project_id}/resources/{id}
3803
+ * @secure
3804
+ */
3805
+ frontierServiceGetProjectResource: (projectId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetProjectResourceResponse, RpcStatus>>;
3806
+ /**
3807
+ * @description Deletes a resource from a project permanently
3808
+ *
3809
+ * @tags Resource
3810
+ * @name FrontierServiceDeleteProjectResource
3811
+ * @summary Delete resource
3812
+ * @request DELETE:/v1beta1/projects/{project_id}/resources/{id}
3813
+ * @secure
3814
+ */
3815
+ frontierServiceDeleteProjectResource: (projectId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3816
+ /**
3817
+ * @description Updates a resource in a project
3818
+ *
3819
+ * @tags Resource
3820
+ * @name FrontierServiceUpdateProjectResource
3821
+ * @summary Update resource
3822
+ * @request PUT:/v1beta1/projects/{project_id}/resources/{id}
3823
+ * @secure
3824
+ */
3825
+ frontierServiceUpdateProjectResource: (projectId: string, id: string, body: V1Beta1ResourceRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProjectResourceResponse, RpcStatus>>;
3826
+ /**
3827
+ * No description
3828
+ *
3829
+ * @tags Relation
3830
+ * @name FrontierServiceCreateRelation
3831
+ * @summary Create relation
3832
+ * @request POST:/v1beta1/relations
3833
+ * @secure
3834
+ */
3835
+ frontierServiceCreateRelation: (body: V1Beta1RelationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateRelationResponse, RpcStatus>>;
3836
+ /**
3837
+ * @description Returns a relation by ID
3838
+ *
3839
+ * @tags Relation
3840
+ * @name FrontierServiceGetRelation
3841
+ * @summary Get relation
3842
+ * @request GET:/v1beta1/relations/{id}
3843
+ * @secure
3844
+ */
3845
+ frontierServiceGetRelation: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetRelationResponse, RpcStatus>>;
3846
+ /**
3847
+ * @description Remove a subject having a relation from an object
3848
+ *
3849
+ * @tags Relation
3850
+ * @name FrontierServiceDeleteRelation
3851
+ * @summary Delete relation
3852
+ * @request DELETE:/v1beta1/relations/{relation}/object/{object}/subject/{subject}
3853
+ * @secure
3854
+ */
3855
+ frontierServiceDeleteRelation: (relation: string, object: string, subject: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3856
+ /**
3857
+ * @description Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions
3858
+ *
3859
+ * @tags Role
3860
+ * @name FrontierServiceListRoles
3861
+ * @summary List platform roles
3862
+ * @request GET:/v1beta1/roles
3863
+ * @secure
3864
+ */
3865
+ frontierServiceListRoles: (query?: {
3866
+ state?: string;
3867
+ scopes?: string[];
3868
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListRolesResponse, RpcStatus>>;
3869
+ /**
3870
+ * @description Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance.
3871
+ *
3872
+ * @tags Role
3873
+ * @name AdminServiceCreateRole
3874
+ * @summary Create platform role
3875
+ * @request POST:/v1beta1/roles
3876
+ * @secure
3877
+ */
3878
+ adminServiceCreateRole: (body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateRoleResponse, RpcStatus>>;
3879
+ /**
3880
+ * @description Delete a platform wide role and all of its relations.
3881
+ *
3882
+ * @tags Role
3883
+ * @name AdminServiceDeleteRole
3884
+ * @summary Delete platform role
3885
+ * @request DELETE:/v1beta1/roles/{id}
3886
+ * @secure
3887
+ */
3888
+ adminServiceDeleteRole: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3889
+ /**
3890
+ * @description Update a role title, description and permissions.
3891
+ *
3892
+ * @tags Role
3893
+ * @name AdminServiceUpdateRole
3894
+ * @summary Update role
3895
+ * @request PUT:/v1beta1/roles/{id}
3896
+ * @secure
3897
+ */
3898
+ adminServiceUpdateRole: (id: string, body: V1Beta1RoleRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateRoleResponse, RpcStatus>>;
3899
+ /**
3900
+ * @description Returns the service user of an organization in a Frontier instance. It can be filter by it's state
3901
+ *
3902
+ * @tags ServiceUser
3903
+ * @name FrontierServiceListServiceUsers
3904
+ * @summary List org service users
3905
+ * @request GET:/v1beta1/serviceusers
3906
+ * @secure
3907
+ */
3908
+ frontierServiceListServiceUsers: (query: {
3909
+ /** The organization ID to filter service users by. */
3910
+ org_id: string;
3911
+ /** The state to filter by. It can be enabled or disabled. */
3912
+ state?: string;
3913
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUsersResponse, RpcStatus>>;
3914
+ /**
3915
+ * @description Create a service user.
3916
+ *
3917
+ * @tags ServiceUser
3918
+ * @name FrontierServiceCreateServiceUser
3919
+ * @summary Create service user
3920
+ * @request POST:/v1beta1/serviceusers
3921
+ * @secure
3922
+ */
3923
+ frontierServiceCreateServiceUser: (body: V1Beta1CreateServiceUserRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, RpcStatus>>;
3924
+ /**
3925
+ * @description Get service user details by its id.
3926
+ *
3927
+ * @tags ServiceUser
3928
+ * @name FrontierServiceGetServiceUser
3929
+ * @summary Get service user
3930
+ * @request GET:/v1beta1/serviceusers/{id}
3931
+ * @secure
3932
+ */
3933
+ frontierServiceGetServiceUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetServiceUserResponse, RpcStatus>>;
3934
+ /**
3935
+ * @description Delete a service user permanently and all of its relations (keys, organizations, roles, etc)
3936
+ *
3937
+ * @tags ServiceUser
3938
+ * @name FrontierServiceDeleteServiceUser
3939
+ * @summary Delete service user
3940
+ * @request DELETE:/v1beta1/serviceusers/{id}
3941
+ * @secure
3942
+ */
3943
+ frontierServiceDeleteServiceUser: (id: string, query?: {
3944
+ org_id?: string;
3945
+ }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3946
+ /**
3947
+ * @description List all the keys of a service user with its details except jwk.
3948
+ *
3949
+ * @tags ServiceUser
3950
+ * @name FrontierServiceListServiceUserJwKs
3951
+ * @summary List service user keys
3952
+ * @request GET:/v1beta1/serviceusers/{id}/keys
3953
+ * @secure
3954
+ */
3955
+ frontierServiceListServiceUserJwKs: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserJWKsResponse, RpcStatus>>;
3956
+ /**
3957
+ * @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.
3958
+ *
3959
+ * @tags ServiceUser
3960
+ * @name FrontierServiceCreateServiceUserJwk
3961
+ * @summary Create service user public/private key pair
3962
+ * @request POST:/v1beta1/serviceusers/{id}/keys
3963
+ * @secure
3964
+ */
3965
+ frontierServiceCreateServiceUserJwk: (id: string, body: {
3966
+ title?: string;
3967
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserJWKResponse, RpcStatus>>;
3968
+ /**
3969
+ * @description Get a service user public RSA JWK set.
3970
+ *
3971
+ * @tags ServiceUser
3972
+ * @name FrontierServiceGetServiceUserJwk
3973
+ * @summary Get service user key
3974
+ * @request GET:/v1beta1/serviceusers/{id}/keys/{key_id}
3975
+ * @secure
3976
+ */
3977
+ frontierServiceGetServiceUserJwk: (id: string, keyId: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetServiceUserJWKResponse, RpcStatus>>;
3978
+ /**
3979
+ * @description Delete a service user key permanently.
3980
+ *
3981
+ * @tags ServiceUser
3982
+ * @name FrontierServiceDeleteServiceUserJwk
3983
+ * @summary Delete service user key
3984
+ * @request DELETE:/v1beta1/serviceusers/{id}/keys/{key_id}
3985
+ * @secure
3986
+ */
3987
+ frontierServiceDeleteServiceUserJwk: (id: string, keyId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3988
+ /**
3989
+ * @description List all the credentials of a service user.
3990
+ *
3991
+ * @tags ServiceUser
3992
+ * @name FrontierServiceListServiceUserCredentials
3993
+ * @summary List service user credentials
3994
+ * @request GET:/v1beta1/serviceusers/{id}/secrets
3995
+ * @secure
3996
+ */
3997
+ frontierServiceListServiceUserCredentials: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserCredentialsResponse, RpcStatus>>;
3998
+ /**
3999
+ * @description Generate a service user credential and return it. The credential value will not be persisted and should be securely stored by client.
4000
+ *
4001
+ * @tags ServiceUser
4002
+ * @name FrontierServiceCreateServiceUserCredential
4003
+ * @summary Create service user client credentials
4004
+ * @request POST:/v1beta1/serviceusers/{id}/secrets
4005
+ * @secure
4006
+ */
4007
+ frontierServiceCreateServiceUserCredential: (id: string, body: {
4008
+ title?: string;
4009
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserCredentialResponse, RpcStatus>>;
4010
+ /**
4011
+ * @description Delete a service user credential.
4012
+ *
4013
+ * @tags ServiceUser
4014
+ * @name FrontierServiceDeleteServiceUserCredential
4015
+ * @summary Delete service user credentials
4016
+ * @request DELETE:/v1beta1/serviceusers/{id}/secrets/{secret_id}
4017
+ * @secure
4018
+ */
4019
+ frontierServiceDeleteServiceUserCredential: (id: string, secretId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
4020
+ /**
4021
+ * @description List all the tokens of a service user.
4022
+ *
4023
+ * @tags ServiceUser
4024
+ * @name FrontierServiceListServiceUserTokens
4025
+ * @summary List service user tokens
4026
+ * @request GET:/v1beta1/serviceusers/{id}/tokens
4027
+ * @secure
4028
+ */
4029
+ frontierServiceListServiceUserTokens: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserTokensResponse, RpcStatus>>;
4030
+ /**
4031
+ * @description Generate a service user token and return it. The token value will not be persisted and should be securely stored by client.
4032
+ *
4033
+ * @tags ServiceUser
4034
+ * @name FrontierServiceCreateServiceUserToken
4035
+ * @summary Create service user token
4036
+ * @request POST:/v1beta1/serviceusers/{id}/tokens
4037
+ * @secure
4038
+ */
4039
+ frontierServiceCreateServiceUserToken: (id: string, body: {
4040
+ title?: string;
4041
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserTokenResponse, RpcStatus>>;
4042
+ /**
4043
+ * @description Delete a service user token.
4044
+ *
4045
+ * @tags ServiceUser
4046
+ * @name FrontierServiceDeleteServiceUserToken
4047
+ * @summary Delete service user token
4048
+ * @request DELETE:/v1beta1/serviceusers/{id}/tokens/{token_id}
4049
+ * @secure
4050
+ */
4051
+ frontierServiceDeleteServiceUserToken: (id: string, tokenId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
4052
+ /**
4053
+ * @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.
4054
+ *
4055
+ * @tags User
4056
+ * @name FrontierServiceListUsers
4057
+ * @summary List public users
4058
+ * @request GET:/v1beta1/users
4059
+ * @secure
4060
+ */
4061
+ frontierServiceListUsers: (query?: {
4062
+ /**
4063
+ * The maximum number of users to return per page. The default is 50.
4064
+ * @format int32
4065
+ */
4066
+ page_size?: number;
4067
+ /**
4068
+ * The page number to return. The default is 1.
4069
+ * @format int32
4070
+ */
4071
+ page_num?: number;
4072
+ /** The keyword to search for in name or email. */
4073
+ keyword?: string;
4074
+ /** The organization ID to filter users by. */
4075
+ org_id?: string;
4076
+ /** The group id to filter by. */
4077
+ group_id?: string;
4078
+ /** The state to filter by. It can be enabled or disabled. */
4079
+ state?: string;
4080
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUsersResponse, RpcStatus>>;
4081
+ /**
4082
+ * @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"}}`
4083
+ *
4084
+ * @tags User
4085
+ * @name FrontierServiceCreateUser
4086
+ * @summary Create user
4087
+ * @request POST:/v1beta1/users
4088
+ */
4089
+ frontierServiceCreateUser: (body: V1Beta1UserRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateUserResponse, RpcStatus>>;
4090
+ /**
4091
+ * @description Get a user by id searched over all organizations in Frontier.
4092
+ *
4093
+ * @tags User
4094
+ * @name FrontierServiceGetUser
4095
+ * @summary Get user
4096
+ * @request GET:/v1beta1/users/{id}
4097
+ * @secure
4098
+ */
4099
+ frontierServiceGetUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetUserResponse, RpcStatus>>;
4100
+ /**
4101
+ * @description Delete an user permanently forever and all of its relations (organizations, groups, etc)
4102
+ *
4103
+ * @tags User
4104
+ * @name FrontierServiceDeleteUser
4105
+ * @summary Delete user
4106
+ * @request DELETE:/v1beta1/users/{id}
4107
+ * @secure
4108
+ */
4109
+ frontierServiceDeleteUser: (id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
4110
+ /**
4111
+ * No description
4112
+ *
4113
+ * @tags User
4114
+ * @name FrontierServiceUpdateUser
4115
+ * @summary Update user
4116
+ * @request PUT:/v1beta1/users/{id}
4117
+ * @secure
4118
+ */
4119
+ frontierServiceUpdateUser: (id: string, body: V1Beta1UserRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateUserResponse, RpcStatus>>;
4120
+ /**
4121
+ * @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.
4122
+ *
4123
+ * @tags User
4124
+ * @name FrontierServiceDisableUser
4125
+ * @summary Disable user
4126
+ * @request POST:/v1beta1/users/{id}/disable
4127
+ * @secure
4128
+ */
4129
+ frontierServiceDisableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
4130
+ /**
4131
+ * @description Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance.
4132
+ *
4133
+ * @tags User
4134
+ * @name FrontierServiceEnableUser
4135
+ * @summary Enable user
4136
+ * @request POST:/v1beta1/users/{id}/enable
4137
+ * @secure
4138
+ */
4139
+ frontierServiceEnableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
4140
+ /**
4141
+ * @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.
4142
+ *
4143
+ * @tags User
4144
+ * @name FrontierServiceListUserGroups
4145
+ * @summary List user groups
4146
+ * @request GET:/v1beta1/users/{id}/groups
4147
+ * @secure
4148
+ */
4149
+ frontierServiceListUserGroups: (id: string, query?: {
4150
+ /** The organization ID to filter groups by. If not provided, groups from all organizations are returned. */
4151
+ org_id?: string;
4152
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserGroupsResponse, RpcStatus>>;
4153
+ /**
4154
+ * @description List all the invitations sent to a user.
4155
+ *
4156
+ * @tags User
4157
+ * @name FrontierServiceListUserInvitations
4158
+ * @summary List user invitations
4159
+ * @request GET:/v1beta1/users/{id}/invitations
4160
+ * @secure
4161
+ */
4162
+ frontierServiceListUserInvitations: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserInvitationsResponse, RpcStatus>>;
4163
+ /**
4164
+ * @description This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
4165
+ *
4166
+ * @tags User
4167
+ * @name FrontierServiceListOrganizationsByUser
4168
+ * @summary Get user organizations
4169
+ * @request GET:/v1beta1/users/{id}/organizations
4170
+ * @secure
4171
+ */
4172
+ frontierServiceListOrganizationsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByUserResponse, RpcStatus>>;
4173
+ /**
4174
+ * @description List a user preferences by ID.
4175
+ *
4176
+ * @tags Preference
4177
+ * @name FrontierServiceListUserPreferences
4178
+ * @summary List user preferences
4179
+ * @request GET:/v1beta1/users/{id}/preferences
4180
+ * @secure
4181
+ */
4182
+ frontierServiceListUserPreferences: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListUserPreferencesResponse, RpcStatus>>;
4183
+ /**
4184
+ * @description Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores.
4185
+ *
4186
+ * @tags Preference
4187
+ * @name FrontierServiceCreateUserPreferences
4188
+ * @summary Create user preferences
4189
+ * @request POST:/v1beta1/users/{id}/preferences
4190
+ * @secure
4191
+ */
4192
+ frontierServiceCreateUserPreferences: (id: string, body: {
4193
+ bodies?: V1Beta1PreferenceRequestBody[];
4194
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateUserPreferencesResponse, RpcStatus>>;
4195
+ /**
4196
+ * @description Get all the projects a user belongs to.
4197
+ *
4198
+ * @tags User
4199
+ * @name FrontierServiceListProjectsByUser
4200
+ * @summary Get user projects
4201
+ * @request GET:/v1beta1/users/{id}/projects
4202
+ * @secure
4203
+ */
4204
+ frontierServiceListProjectsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByUserResponse, RpcStatus>>;
4205
+ /**
4206
+ * No description
4207
+ *
4208
+ * @tags User
4209
+ * @name FrontierServiceGetCurrentUser
4210
+ * @summary Get current user
4211
+ * @request GET:/v1beta1/users/self
4212
+ * @secure
4213
+ */
4214
+ frontierServiceGetCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1GetCurrentUserResponse, RpcStatus>>;
4215
+ /**
4216
+ * No description
4217
+ *
4218
+ * @tags User
4219
+ * @name FrontierServiceUpdateCurrentUser
4220
+ * @summary Update current user
4221
+ * @request PUT:/v1beta1/users/self
4222
+ * @secure
4223
+ */
4224
+ frontierServiceUpdateCurrentUser: (body: V1Beta1UserRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateCurrentUserResponse, RpcStatus>>;
4225
+ /**
4226
+ * No description
4227
+ *
4228
+ * @tags User
4229
+ * @name FrontierServiceListCurrentUserGroups
4230
+ * @summary List my groups
4231
+ * @request GET:/v1beta1/users/self/groups
4232
+ * @secure
4233
+ */
4234
+ frontierServiceListCurrentUserGroups: (query?: {
4235
+ /** org_id is optional filter over an organization */
4236
+ org_id?: string;
4237
+ with_permissions?: string[];
4238
+ with_member_count?: boolean;
4239
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserGroupsResponse, RpcStatus>>;
4240
+ /**
4241
+ * @description List all the invitations sent to current user.
4242
+ *
4243
+ * @tags User
4244
+ * @name FrontierServiceListCurrentUserInvitations
4245
+ * @summary List user invitations
4246
+ * @request GET:/v1beta1/users/self/invitations
4247
+ * @secure
4248
+ */
4249
+ frontierServiceListCurrentUserInvitations: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserInvitationsResponse, RpcStatus>>;
4250
+ /**
4251
+ * @description This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
4252
+ *
4253
+ * @tags User
4254
+ * @name FrontierServiceListOrganizationsByCurrentUser
4255
+ * @summary Get my organizations
4256
+ * @request GET:/v1beta1/users/self/organizations
4257
+ * @secure
4258
+ */
4259
+ frontierServiceListOrganizationsByCurrentUser: (query?: {
4260
+ state?: string;
4261
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByCurrentUserResponse, RpcStatus>>;
4262
+ /**
4263
+ * @description List a user preferences by ID.
4264
+ *
4265
+ * @tags Preference
4266
+ * @name FrontierServiceListCurrentUserPreferences
4267
+ * @summary List current user preferences
4268
+ * @request GET:/v1beta1/users/self/preferences
4269
+ * @secure
4270
+ */
4271
+ frontierServiceListCurrentUserPreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserPreferencesResponse, RpcStatus>>;
4272
+ /**
4273
+ * @description Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores.
4274
+ *
4275
+ * @tags Preference
4276
+ * @name FrontierServiceCreateCurrentUserPreferences
4277
+ * @summary Create current user preferences
4278
+ * @request POST:/v1beta1/users/self/preferences
4279
+ * @secure
4280
+ */
4281
+ frontierServiceCreateCurrentUserPreferences: (body: V1Beta1CreateCurrentUserPreferencesRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateCurrentUserPreferencesResponse, RpcStatus>>;
4282
+ /**
4283
+ * @description Get all projects the current user belongs to
4284
+ *
4285
+ * @tags User
4286
+ * @name FrontierServiceListProjectsByCurrentUser
4287
+ * @summary Get my projects
4288
+ * @request GET:/v1beta1/users/self/projects
4289
+ * @secure
4290
+ */
4291
+ frontierServiceListProjectsByCurrentUser: (query?: {
4292
+ /** org_id is optional and filter projects by org */
4293
+ org_id?: string;
4294
+ /**
4295
+ * list of permissions needs to be checked against each project
4296
+ * query params are set as with_permissions=get&with_permissions=delete
4297
+ * to be represented as array
4298
+ */
4299
+ with_permissions?: string[];
4300
+ /**
4301
+ * Note: this is a bad design and would recommend against using this filter
4302
+ * It is used to list only projects which are explicitly given permission
4303
+ * to user. A user could get permission to access a project either via getting
4304
+ * access from organization level role or a group. But for some reason we want
4305
+ * only users who could have inherited these permissions from top but we only
4306
+ * want explictly added ones.
4307
+ */
4308
+ non_inherited?: boolean;
4309
+ with_member_count?: boolean;
4310
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByCurrentUserResponse, RpcStatus>>;
4311
+ }
4312
+
4313
+ declare const ApiClient: typeof V1Beta1;
4314
+
4315
+ export { ApiClient, BillingAccountAddress, BillingAccountBalance, BillingAccountTax, ChangeSubscriptionRequestPhaseChange, ChangeSubscriptionRequestPlanChange, ProductBehaviorConfig, ProtobufAny, ProtobufNullValue, RpcStatus, SubscriptionPhase, V1Beta1AcceptOrganizationInvitationResponse, V1Beta1AddGroupUsersResponse, V1Beta1AddOrganizationUsersResponse, V1Beta1AddPlatformUserRequest, V1Beta1AddPlatformUserResponse, V1Beta1AuditLog, V1Beta1AuditLogActor, V1Beta1AuditLogTarget, V1Beta1AuthCallbackRequest, V1Beta1AuthCallbackResponse, V1Beta1AuthLogoutResponse, V1Beta1AuthStrategy, V1Beta1AuthTokenRequest, V1Beta1AuthTokenResponse, V1Beta1AuthenticateResponse, V1Beta1BatchCheckPermissionBody, V1Beta1BatchCheckPermissionRequest, V1Beta1BatchCheckPermissionResponse, V1Beta1BatchCheckPermissionResponsePair, V1Beta1BillingAccount, V1Beta1BillingAccountRequestBody, V1Beta1BillingTransaction, V1Beta1BillingWebhookCallbackResponse, V1Beta1CancelSubscriptionResponse, V1Beta1ChangeSubscriptionResponse, V1Beta1CheckFeatureEntitlementRequest, V1Beta1CheckFeatureEntitlementResponse, V1Beta1CheckFederatedResourcePermissionRequest, V1Beta1CheckFederatedResourcePermissionResponse, V1Beta1CheckResourcePermissionRequest, V1Beta1CheckResourcePermissionResponse, V1Beta1CheckoutProductBody, V1Beta1CheckoutSession, V1Beta1CheckoutSetupBody, V1Beta1CheckoutSubscriptionBody, V1Beta1CreateBillingAccountResponse, V1Beta1CreateBillingUsageRequest, V1Beta1CreateBillingUsageResponse, V1Beta1CreateCheckoutResponse, V1Beta1CreateCurrentUserPreferencesRequest, V1Beta1CreateCurrentUserPreferencesResponse, V1Beta1CreateFeatureRequest, V1Beta1CreateFeatureResponse, V1Beta1CreateGroupPreferencesResponse, V1Beta1CreateGroupResponse, V1Beta1CreateMetaSchemaResponse, V1Beta1CreateOrganizationAuditLogsResponse, V1Beta1CreateOrganizationDomainResponse, V1Beta1CreateOrganizationInvitationResponse, V1Beta1CreateOrganizationPreferencesResponse, V1Beta1CreateOrganizationResponse, V1Beta1CreateOrganizationRoleResponse, V1Beta1CreatePermissionRequest, V1Beta1CreatePermissionResponse, V1Beta1CreatePlanRequest, V1Beta1CreatePlanResponse, V1Beta1CreatePolicyForProjectBody, V1Beta1CreatePolicyForProjectResponse, V1Beta1CreatePolicyResponse, V1Beta1CreatePreferencesRequest, V1Beta1CreatePreferencesResponse, V1Beta1CreateProductRequest, V1Beta1CreateProductResponse, V1Beta1CreateProjectPreferencesResponse, V1Beta1CreateProjectResourceResponse, V1Beta1CreateProjectResponse, V1Beta1CreateRelationResponse, V1Beta1CreateRoleResponse, V1Beta1CreateServiceUserCredentialResponse, V1Beta1CreateServiceUserJWKResponse, V1Beta1CreateServiceUserRequest, V1Beta1CreateServiceUserResponse, V1Beta1CreateServiceUserTokenResponse, V1Beta1CreateUserPreferencesResponse, V1Beta1CreateUserResponse, V1Beta1CreateWebhookRequest, V1Beta1CreateWebhookResponse, V1Beta1DelegatedCheckoutResponse, V1Beta1DeleteBillingAccountResponse, V1Beta1DeleteGroupResponse, V1Beta1DeleteMetaSchemaResponse, V1Beta1DeleteOrganizationDomainResponse, V1Beta1DeleteOrganizationInvitationResponse, V1Beta1DeleteOrganizationResponse, V1Beta1DeleteOrganizationRoleResponse, V1Beta1DeletePermissionResponse, V1Beta1DeletePolicyResponse, V1Beta1DeleteProjectResourceResponse, V1Beta1DeleteProjectResponse, V1Beta1DeleteRelationResponse, V1Beta1DeleteRoleResponse, V1Beta1DeleteServiceUserCredentialResponse, V1Beta1DeleteServiceUserJWKResponse, V1Beta1DeleteServiceUserResponse, V1Beta1DeleteServiceUserTokenResponse, V1Beta1DeleteUserResponse, V1Beta1DeleteWebhookResponse, V1Beta1DescribePreferencesResponse, V1Beta1DisableBillingAccountResponse, V1Beta1DisableGroupResponse, V1Beta1DisableOrganizationResponse, V1Beta1DisableProjectResponse, V1Beta1DisableUserResponse, V1Beta1Domain, V1Beta1EnableBillingAccountResponse, V1Beta1EnableGroupResponse, V1Beta1EnableOrganizationResponse, V1Beta1EnableProjectResponse, V1Beta1EnableUserResponse, V1Beta1Feature, V1Beta1FeatureRequestBody, V1Beta1GetBillingAccountResponse, V1Beta1GetBillingBalanceResponse, V1Beta1GetCheckoutResponse, V1Beta1GetCurrentUserResponse, V1Beta1GetFeatureResponse, V1Beta1GetGroupResponse, V1Beta1GetJWKsResponse, V1Beta1GetMetaSchemaResponse, V1Beta1GetNamespaceResponse, V1Beta1GetOrganizationAuditLogResponse, V1Beta1GetOrganizationDomainResponse, V1Beta1GetOrganizationInvitationResponse, V1Beta1GetOrganizationResponse, V1Beta1GetOrganizationRoleResponse, V1Beta1GetPermissionResponse, V1Beta1GetPlanResponse, V1Beta1GetPolicyResponse, V1Beta1GetProductResponse, V1Beta1GetProjectResourceResponse, V1Beta1GetProjectResponse, V1Beta1GetRelationResponse, V1Beta1GetServiceUserJWKResponse, V1Beta1GetServiceUserResponse, V1Beta1GetSubscriptionResponse, V1Beta1GetUpcomingInvoiceResponse, V1Beta1GetUserResponse, V1Beta1Group, V1Beta1GroupRequestBody, V1Beta1HasTrialedResponse, V1Beta1Invitation, V1Beta1Invoice, V1Beta1JSONWebKey, V1Beta1JoinOrganizationResponse, V1Beta1KeyCredential, V1Beta1ListAllBillingAccountsResponse, V1Beta1ListAllInvoicesResponse, V1Beta1ListAllOrganizationsResponse, V1Beta1ListAllUsersResponse, V1Beta1ListAuthStrategiesResponse, V1Beta1ListBillingAccountsResponse, V1Beta1ListBillingTransactionsResponse, V1Beta1ListCheckoutsResponse, V1Beta1ListCurrentUserGroupsResponse, V1Beta1ListCurrentUserGroupsResponseAccessPair, V1Beta1ListCurrentUserInvitationsResponse, V1Beta1ListCurrentUserPreferencesResponse, V1Beta1ListFeaturesResponse, V1Beta1ListGroupPreferencesResponse, V1Beta1ListGroupUsersResponse, V1Beta1ListGroupUsersResponseRolePair, V1Beta1ListGroupsResponse, V1Beta1ListInvoicesResponse, V1Beta1ListMetaSchemasResponse, V1Beta1ListNamespacesResponse, V1Beta1ListOrganizationAdminsResponse, V1Beta1ListOrganizationAuditLogsResponse, V1Beta1ListOrganizationDomainsResponse, V1Beta1ListOrganizationGroupsResponse, V1Beta1ListOrganizationInvitationsResponse, V1Beta1ListOrganizationPreferencesResponse, V1Beta1ListOrganizationProjectsResponse, V1Beta1ListOrganizationRolesResponse, V1Beta1ListOrganizationServiceUsersResponse, V1Beta1ListOrganizationUsersResponse, V1Beta1ListOrganizationUsersResponseRolePair, V1Beta1ListOrganizationsByCurrentUserResponse, V1Beta1ListOrganizationsByUserResponse, V1Beta1ListOrganizationsResponse, V1Beta1ListPermissionsResponse, V1Beta1ListPlansResponse, V1Beta1ListPlatformUsersResponse, V1Beta1ListPoliciesResponse, V1Beta1ListPreferencesResponse, V1Beta1ListProductsResponse, V1Beta1ListProjectAdminsResponse, V1Beta1ListProjectGroupsResponse, V1Beta1ListProjectGroupsResponseRolePair, V1Beta1ListProjectPreferencesResponse, V1Beta1ListProjectResourcesResponse, V1Beta1ListProjectServiceUsersResponse, V1Beta1ListProjectServiceUsersResponseRolePair, V1Beta1ListProjectUsersResponse, V1Beta1ListProjectUsersResponseRolePair, V1Beta1ListProjectsByCurrentUserResponse, V1Beta1ListProjectsByCurrentUserResponseAccessPair, V1Beta1ListProjectsByUserResponse, V1Beta1ListProjectsResponse, V1Beta1ListRelationsResponse, V1Beta1ListResourcesResponse, V1Beta1ListRolesResponse, V1Beta1ListServiceUserCredentialsResponse, V1Beta1ListServiceUserJWKsResponse, V1Beta1ListServiceUserTokensResponse, V1Beta1ListServiceUsersResponse, V1Beta1ListSubscriptionsResponse, V1Beta1ListUserGroupsResponse, V1Beta1ListUserInvitationsResponse, V1Beta1ListUserPreferencesResponse, V1Beta1ListUsersResponse, V1Beta1ListWebhooksResponse, V1Beta1MetaSchema, V1Beta1MetaSchemaRequestBody, V1Beta1Namespace, V1Beta1Organization, V1Beta1OrganizationRequestBody, V1Beta1PaymentMethod, V1Beta1Permission, V1Beta1PermissionRequestBody, V1Beta1Plan, V1Beta1PlanRequestBody, V1Beta1Policy, V1Beta1PolicyRequestBody, V1Beta1Preference, V1Beta1PreferenceRequestBody, V1Beta1PreferenceTrait, V1Beta1Price, V1Beta1Product, V1Beta1ProductRequestBody, V1Beta1Project, V1Beta1ProjectRequestBody, V1Beta1RegisterBillingAccountResponse, V1Beta1Relation, V1Beta1RelationRequestBody, V1Beta1RemoveGroupUserResponse, V1Beta1RemoveOrganizationUserResponse, V1Beta1RemovePlatformUserRequest, V1Beta1RemovePlatformUserResponse, V1Beta1Resource, V1Beta1ResourceRequestBody, V1Beta1RevertBillingUsageRequest, V1Beta1RevertBillingUsageResponse, V1Beta1Role, V1Beta1RoleRequestBody, V1Beta1SecretCredential, V1Beta1ServiceUser, V1Beta1ServiceUserJWK, V1Beta1ServiceUserRequestBody, V1Beta1ServiceUserToken, V1Beta1Subscription, V1Beta1UpdateBillingAccountResponse, V1Beta1UpdateCurrentUserResponse, V1Beta1UpdateFeatureResponse, V1Beta1UpdateGroupResponse, V1Beta1UpdateMetaSchemaResponse, V1Beta1UpdateOrganizationResponse, V1Beta1UpdateOrganizationRoleResponse, V1Beta1UpdatePermissionResponse, V1Beta1UpdatePlanResponse, V1Beta1UpdatePolicyResponse, V1Beta1UpdateProductResponse, V1Beta1UpdateProjectResourceResponse, V1Beta1UpdateProjectResponse, V1Beta1UpdateRoleResponse, V1Beta1UpdateSubscriptionResponse, V1Beta1UpdateUserResponse, V1Beta1UpdateWebhookResponse, V1Beta1Usage, V1Beta1User, V1Beta1UserRequestBody, V1Beta1VerifyOrganizationDomainResponse, V1Beta1Webhook, V1Beta1WebhookRequestBody, WebhookSecret };