@raystack/frontier 0.29.1 → 0.30.1

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