@raystack/frontier 0.65.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import React, { ComponentPropsWithRef, ReactNode as ReactNode$1, Dispatch, SetStateAction, PropsWithChildren } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as _tanstack_react_router from '@tanstack/react-router';
4
4
  import { ReactNode, RouteComponent } from '@tanstack/react-router';
5
5
  import * as yup from 'yup';
6
6
  import { ThemeProviderProps } from '@raystack/apsara/v1';
7
7
 
8
- interface AmountProps {
9
- value: number;
10
- currency?: string;
11
- className?: string;
12
- currencyClassName?: string;
13
- decimalClassName?: string;
14
- valueClassName?: string;
15
- hideDecimals?: boolean;
16
- }
17
- declare function Amount({ currency, value, className, currencyClassName, decimalClassName, valueClassName, hideDecimals }: AmountProps): react_jsx_runtime.JSX.Element;
18
-
19
8
  interface AvatarUploadProps {
20
9
  subText?: string;
21
10
  value?: string;
@@ -130,8 +119,8 @@ interface CustomRoutes {
130
119
  }
131
120
 
132
121
  type QueryParamsType = Record<string | number, any>;
133
- type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
134
- interface FullRequestParams extends Omit<RequestInit, 'body'> {
122
+ type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
123
+ interface FullRequestParams extends Omit<RequestInit, "body"> {
135
124
  /** set parameter to `true` for call `securityWorker` for this request */
136
125
  secure?: boolean;
137
126
  /** request path */
@@ -149,10 +138,10 @@ interface FullRequestParams extends Omit<RequestInit, 'body'> {
149
138
  /** request cancellation token */
150
139
  cancelToken?: CancelToken;
151
140
  }
152
- type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
141
+ type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
153
142
  interface ApiConfig<SecurityDataType = unknown> {
154
143
  baseUrl?: string;
155
- baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
144
+ baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
156
145
  securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
157
146
  customFetch?: typeof fetch;
158
147
  }
@@ -163,6 +152,7 @@ interface HttpResponse<D extends unknown, E extends unknown = unknown> extends R
163
152
  type CancelToken = Symbol | string | number;
164
153
  declare enum ContentType {
165
154
  Json = "application/json",
155
+ JsonApi = "application/vnd.api+json",
166
156
  FormData = "multipart/form-data",
167
157
  UrlEncoded = "application/x-www-form-urlencoded",
168
158
  Text = "text/plain"
@@ -188,6 +178,15 @@ declare class HttpClient<SecurityDataType = unknown> {
188
178
  request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
189
179
  }
190
180
 
181
+ /**
182
+ * subscription status
183
+ * @default "STATUS_UNSPECIFIED"
184
+ */
185
+ declare enum V1Beta1ProspectStatus {
186
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
187
+ STATUS_UNSUBSCRIBED = "STATUS_UNSUBSCRIBED",
188
+ STATUS_SUBSCRIBED = "STATUS_SUBSCRIBED"
189
+ }
191
190
  interface BillingAccountAddress {
192
191
  line1?: string;
193
192
  line2?: string;
@@ -262,6 +261,14 @@ interface SearchOrganizationServiceUserCredentialsResponseOrganizationServiceUse
262
261
  created_at?: string;
263
262
  org_id?: string;
264
263
  }
264
+ interface SearchOrganizationServiceUsersResponseOrganizationServiceUser {
265
+ id?: string;
266
+ title?: string;
267
+ org_id?: string;
268
+ projects?: V1Beta1SearchOrganizationServiceUsersResponseProject[];
269
+ /** @format date-time */
270
+ created_at?: string;
271
+ }
265
272
  interface SearchOrganizationTokensResponseOrganizationToken {
266
273
  /** @format int64 */
267
274
  amount?: string;
@@ -319,6 +326,33 @@ interface SearchProjectUsersResponseProjectUser {
319
326
  role_ids?: string[];
320
327
  project_id?: string;
321
328
  }
329
+ interface SearchUserOrganizationsResponseUserOrganization {
330
+ org_id?: string;
331
+ org_title?: string;
332
+ org_name?: string;
333
+ org_avatar?: string;
334
+ /** @format int64 */
335
+ project_count?: string;
336
+ role_names?: string[];
337
+ role_titles?: string[];
338
+ role_ids?: string[];
339
+ /** @format date-time */
340
+ org_joined_on?: string;
341
+ user_id?: string;
342
+ }
343
+ interface SearchUserProjectsResponseUserProject {
344
+ project_id?: string;
345
+ project_title?: string;
346
+ project_name?: string;
347
+ /** @format date-time */
348
+ project_created_on?: string;
349
+ user_names?: string[];
350
+ user_titles?: string[];
351
+ user_ids?: string[];
352
+ user_avatars?: string[];
353
+ org_id?: string;
354
+ user_id?: string;
355
+ }
322
356
  interface SubscriptionPhase {
323
357
  /** @format date-time */
324
358
  effective_at?: string;
@@ -329,6 +363,72 @@ interface WebhookSecret {
329
363
  id?: string;
330
364
  value?: string;
331
365
  }
366
+ interface Frontierv1Beta1Invoice {
367
+ id?: string;
368
+ customer_id?: string;
369
+ provider_id?: string;
370
+ state?: string;
371
+ currency?: string;
372
+ /** @format int64 */
373
+ amount?: string;
374
+ hosted_url?: string;
375
+ /**
376
+ * The date on which payment for this invoice is due
377
+ * @format date-time
378
+ */
379
+ due_date?: string;
380
+ /**
381
+ * The date when this invoice is in effect.
382
+ * @format date-time
383
+ */
384
+ effective_at?: string;
385
+ /** @format date-time */
386
+ period_start_at?: string;
387
+ /** @format date-time */
388
+ period_end_at?: string;
389
+ metadata?: object;
390
+ /** @format date-time */
391
+ created_at?: string;
392
+ customer?: V1Beta1BillingAccount;
393
+ }
394
+ interface Frontierv1Beta1OrganizationRequestBody {
395
+ /** 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"` */
396
+ name: string;
397
+ /** 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"` */
398
+ title?: string;
399
+ /** 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"}` */
400
+ metadata?: object;
401
+ /**
402
+ * 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})+$`.
403
+ * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
404
+ */
405
+ avatar?: string;
406
+ }
407
+ interface Frontierv1Beta1Project {
408
+ id?: string;
409
+ name?: string;
410
+ title?: string;
411
+ org_id?: string;
412
+ metadata?: object;
413
+ /**
414
+ * The time the project was created.
415
+ * @format date-time
416
+ * @example "2023-06-07T05:39:56.961Z"
417
+ */
418
+ created_at?: string;
419
+ /**
420
+ * The time the project was last updated.
421
+ * @format date-time
422
+ * @example "2023-06-07T05:39:56.961Z"
423
+ */
424
+ updated_at?: string;
425
+ /**
426
+ * The number of members explicitly added in the project.
427
+ * @format int32
428
+ * @example 2
429
+ */
430
+ members_count?: number;
431
+ }
332
432
  interface GooglerpcStatus {
333
433
  /** @format int32 */
334
434
  code?: number;
@@ -453,9 +553,10 @@ interface ProtobufAny {
453
553
  * Schemes other than `http`, `https` (or the empty scheme) might be
454
554
  * used with implementation specific semantics.
455
555
  */
456
- '@type'?: string;
556
+ "@type"?: string;
457
557
  [key: string]: any;
458
558
  }
559
+ type V1Beta1AcceptOrganizationInvitationResponse = object;
459
560
  interface V1Beta1AddPlatformUserRequest {
460
561
  /** The user id to add to the platform. */
461
562
  user_id?: string;
@@ -464,6 +565,28 @@ interface V1Beta1AddPlatformUserRequest {
464
565
  /** The relation to add as in the platform. It can be admin or member. */
465
566
  relation: string;
466
567
  }
568
+ interface V1Beta1AdminCreateOrganizationRequestOrganizationRequestBody {
569
+ /** 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"` */
570
+ name: string;
571
+ /** 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"` */
572
+ title?: string;
573
+ /** 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"}` */
574
+ metadata?: object;
575
+ /**
576
+ * 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})+$`.
577
+ * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
578
+ */
579
+ avatar?: string;
580
+ /**
581
+ * this user will be invited to org as owner.
582
+ * if this user doesn't exist, it will be created first
583
+ * The email of the user. The email must be unique within the entire Frontier instance.<br/>*Example:*`"john.doe@raystack.org"`
584
+ */
585
+ org_owner_email: string;
586
+ }
587
+ interface V1Beta1AdminCreateOrganizationResponse {
588
+ organization?: V1Beta1Organization;
589
+ }
467
590
  interface V1Beta1AuditLog {
468
591
  /** A unique identifier of the audit log if not supplied will be autogenerated */
469
592
  id?: string;
@@ -574,6 +697,22 @@ interface V1Beta1BillingAccount {
574
697
  updated_at?: string;
575
698
  organization?: V1Beta1Organization;
576
699
  }
700
+ interface V1Beta1BillingAccountDetails {
701
+ /**
702
+ * credit_min is the minimum credit limit for the billing account
703
+ * default is 0, negative numbers work as overdraft, positive
704
+ * numbers work as minimum purchase limit
705
+ * @format int64
706
+ */
707
+ credit_min?: string;
708
+ /**
709
+ * due_in_days is the number of days after the invoice finalization
710
+ * that it will be considered overdue, if set to 0, the customer will
711
+ * be charged immediately
712
+ * @format int64
713
+ */
714
+ due_in_days?: string;
715
+ }
577
716
  interface V1Beta1BillingAccountRequestBody {
578
717
  name?: string;
579
718
  email?: string;
@@ -605,6 +744,14 @@ interface V1Beta1BillingTransaction {
605
744
  interface V1Beta1ChangeSubscriptionResponse {
606
745
  phase?: SubscriptionPhase;
607
746
  }
747
+ interface V1Beta1CheckCreditEntitlementRequest {
748
+ org_id?: string;
749
+ /** @format int64 */
750
+ amount?: string;
751
+ }
752
+ interface V1Beta1CheckCreditEntitlementResponse {
753
+ status?: boolean;
754
+ }
608
755
  interface V1Beta1CheckFeatureEntitlementRequest {
609
756
  org_id?: string;
610
757
  /** ID of the billing account to update the subscription for */
@@ -784,7 +931,7 @@ interface V1Beta1CreateProjectResourceResponse {
784
931
  resource?: V1Beta1Resource;
785
932
  }
786
933
  interface V1Beta1CreateProjectResponse {
787
- project?: V1Beta1Project;
934
+ project?: Frontierv1Beta1Project;
788
935
  }
789
936
  interface V1Beta1CreateProspectPublicRequest {
790
937
  /** full name of the user */
@@ -921,11 +1068,29 @@ interface V1Beta1FeatureRequestBody {
921
1068
  metadata?: object;
922
1069
  }
923
1070
  type V1Beta1GenerateInvoicesRequest = object;
1071
+ interface V1Beta1GetBillingAccountDetailsResponse {
1072
+ /**
1073
+ * credit_min is the minimum credit limit for the billing account
1074
+ * default is 0, negative numbers work as overdraft, positive
1075
+ * numbers work as minimum purchase limit
1076
+ * @format int64
1077
+ */
1078
+ credit_min?: string;
1079
+ /**
1080
+ * due_in_days is the number of days after the invoice finalization
1081
+ * that it will be considered overdue, if set to 0, the customer will
1082
+ * be charged immediately
1083
+ * @format int64
1084
+ */
1085
+ due_in_days?: string;
1086
+ }
924
1087
  interface V1Beta1GetBillingAccountResponse {
925
1088
  /** Billing account */
926
1089
  billing_account?: V1Beta1BillingAccount;
927
1090
  /** List of payment methods */
928
1091
  payment_methods?: V1Beta1PaymentMethod[];
1092
+ /** Billing details */
1093
+ billing_details?: V1Beta1BillingAccountDetails;
929
1094
  }
930
1095
  interface V1Beta1GetBillingBalanceResponse {
931
1096
  /** Balance of the billing account */
@@ -992,7 +1157,7 @@ interface V1Beta1GetProjectResourceResponse {
992
1157
  resource?: V1Beta1Resource;
993
1158
  }
994
1159
  interface V1Beta1GetProjectResponse {
995
- project?: V1Beta1Project;
1160
+ project?: Frontierv1Beta1Project;
996
1161
  }
997
1162
  interface V1Beta1GetProspectResponse {
998
1163
  prospect?: V1Beta1Prospect;
@@ -1011,7 +1176,7 @@ interface V1Beta1GetSubscriptionResponse {
1011
1176
  }
1012
1177
  interface V1Beta1GetUpcomingInvoiceResponse {
1013
1178
  /** Upcoming invoice */
1014
- invoice?: V1Beta1Invoice;
1179
+ invoice?: Frontierv1Beta1Invoice;
1015
1180
  }
1016
1181
  interface V1Beta1GetUserResponse {
1017
1182
  user?: V1Beta1User;
@@ -1098,34 +1263,6 @@ interface V1Beta1Invitation {
1098
1263
  */
1099
1264
  role_ids?: string[];
1100
1265
  }
1101
- interface V1Beta1Invoice {
1102
- id?: string;
1103
- customer_id?: string;
1104
- provider_id?: string;
1105
- state?: string;
1106
- currency?: string;
1107
- /** @format int64 */
1108
- amount?: string;
1109
- hosted_url?: string;
1110
- /**
1111
- * The date on which payment for this invoice is due
1112
- * @format date-time
1113
- */
1114
- due_date?: string;
1115
- /**
1116
- * The date when this invoice is in effect.
1117
- * @format date-time
1118
- */
1119
- effective_at?: string;
1120
- /** @format date-time */
1121
- period_start_at?: string;
1122
- /** @format date-time */
1123
- period_end_at?: string;
1124
- metadata?: object;
1125
- /** @format date-time */
1126
- created_at?: string;
1127
- customer?: V1Beta1BillingAccount;
1128
- }
1129
1266
  /** JSON Web Key as specified in RFC 7517 */
1130
1267
  interface V1Beta1JSONWebKey {
1131
1268
  /** Key Type. */
@@ -1158,7 +1295,7 @@ interface V1Beta1ListAllBillingAccountsResponse {
1158
1295
  billing_accounts?: V1Beta1BillingAccount[];
1159
1296
  }
1160
1297
  interface V1Beta1ListAllInvoicesResponse {
1161
- invoices?: V1Beta1Invoice[];
1298
+ invoices?: Frontierv1Beta1Invoice[];
1162
1299
  /**
1163
1300
  * Total number of records present
1164
1301
  * @format int32
@@ -1173,6 +1310,9 @@ interface V1Beta1ListAllOrganizationsResponse {
1173
1310
  */
1174
1311
  count?: number;
1175
1312
  }
1313
+ interface V1Beta1ListAllServiceUsersResponse {
1314
+ service_users?: V1Beta1ServiceUser[];
1315
+ }
1176
1316
  interface V1Beta1ListAllUsersResponse {
1177
1317
  /** @format int32 */
1178
1318
  count?: number;
@@ -1227,7 +1367,7 @@ interface V1Beta1ListGroupsResponse {
1227
1367
  }
1228
1368
  interface V1Beta1ListInvoicesResponse {
1229
1369
  /** List of invoices */
1230
- invoices?: V1Beta1Invoice[];
1370
+ invoices?: Frontierv1Beta1Invoice[];
1231
1371
  }
1232
1372
  interface V1Beta1ListMetaSchemasResponse {
1233
1373
  metaschemas?: V1Beta1MetaSchema[];
@@ -1254,7 +1394,7 @@ interface V1Beta1ListOrganizationPreferencesResponse {
1254
1394
  preferences?: V1Beta1Preference[];
1255
1395
  }
1256
1396
  interface V1Beta1ListOrganizationProjectsResponse {
1257
- projects?: V1Beta1Project[];
1397
+ projects?: Frontierv1Beta1Project[];
1258
1398
  }
1259
1399
  interface V1Beta1ListOrganizationRolesResponse {
1260
1400
  roles?: V1Beta1Role[];
@@ -1339,7 +1479,7 @@ interface V1Beta1ListProjectUsersResponseRolePair {
1339
1479
  roles?: V1Beta1Role[];
1340
1480
  }
1341
1481
  interface V1Beta1ListProjectsByCurrentUserResponse {
1342
- projects?: V1Beta1Project[];
1482
+ projects?: Frontierv1Beta1Project[];
1343
1483
  access_pairs?: V1Beta1ListProjectsByCurrentUserResponseAccessPair[];
1344
1484
  /** @format int32 */
1345
1485
  count?: number;
@@ -1349,10 +1489,10 @@ interface V1Beta1ListProjectsByCurrentUserResponseAccessPair {
1349
1489
  permissions?: string[];
1350
1490
  }
1351
1491
  interface V1Beta1ListProjectsByUserResponse {
1352
- projects?: V1Beta1Project[];
1492
+ projects?: Frontierv1Beta1Project[];
1353
1493
  }
1354
1494
  interface V1Beta1ListProjectsResponse {
1355
- projects?: V1Beta1Project[];
1495
+ projects?: Frontierv1Beta1Project[];
1356
1496
  }
1357
1497
  interface V1Beta1ListProspectsResponse {
1358
1498
  prospects?: V1Beta1Prospect[];
@@ -1376,7 +1516,7 @@ interface V1Beta1ListServiceUserJWKsResponse {
1376
1516
  keys?: V1Beta1ServiceUserJWK[];
1377
1517
  }
1378
1518
  interface V1Beta1ListServiceUserProjectsResponse {
1379
- projects?: V1Beta1Project[];
1519
+ projects?: Frontierv1Beta1Project[];
1380
1520
  access_pairs?: V1Beta1ListServiceUserProjectsResponseAccessPair[];
1381
1521
  }
1382
1522
  interface V1Beta1ListServiceUserProjectsResponseAccessPair {
@@ -1501,19 +1641,6 @@ interface V1Beta1OrganizationKyc {
1501
1641
  */
1502
1642
  updated_at?: string;
1503
1643
  }
1504
- interface V1Beta1OrganizationRequestBody {
1505
- /** 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"` */
1506
- name: string;
1507
- /** 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"` */
1508
- title?: string;
1509
- /** 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"}` */
1510
- metadata?: object;
1511
- /**
1512
- * 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})+$`.
1513
- * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
1514
- */
1515
- avatar?: string;
1516
- }
1517
1644
  interface V1Beta1PaymentMethod {
1518
1645
  id?: string;
1519
1646
  customer_id?: string;
@@ -1738,31 +1865,6 @@ interface V1Beta1ProductRequestBody {
1738
1865
  behavior_config?: ProductBehaviorConfig;
1739
1866
  metadata?: object;
1740
1867
  }
1741
- interface V1Beta1Project {
1742
- id?: string;
1743
- name?: string;
1744
- title?: string;
1745
- org_id?: string;
1746
- metadata?: object;
1747
- /**
1748
- * The time the project was created.
1749
- * @format date-time
1750
- * @example "2023-06-07T05:39:56.961Z"
1751
- */
1752
- created_at?: string;
1753
- /**
1754
- * The time the project was last updated.
1755
- * @format date-time
1756
- * @example "2023-06-07T05:39:56.961Z"
1757
- */
1758
- updated_at?: string;
1759
- /**
1760
- * The number of members explicitly added in the project.
1761
- * @format int32
1762
- * @example 2
1763
- */
1764
- members_count?: number;
1765
- }
1766
1868
  interface V1Beta1ProjectRequestBody {
1767
1869
  /** 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` */
1768
1870
  name: string;
@@ -1790,15 +1892,6 @@ interface V1Beta1Prospect {
1790
1892
  updated_at?: string;
1791
1893
  metadata?: object;
1792
1894
  }
1793
- /**
1794
- * subscription status
1795
- * @default "STATUS_UNSPECIFIED"
1796
- */
1797
- declare enum V1Beta1ProspectStatus {
1798
- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
1799
- STATUS_UNSUBSCRIBED = "STATUS_UNSUBSCRIBED",
1800
- STATUS_SUBSCRIBED = "STATUS_SUBSCRIBED"
1801
- }
1802
1895
  interface V1Beta1RQLFilter {
1803
1896
  name?: string;
1804
1897
  operator?: string;
@@ -1956,6 +2049,24 @@ interface V1Beta1RoleRequestBody {
1956
2049
  title?: string;
1957
2050
  scopes?: string[];
1958
2051
  }
2052
+ interface V1Beta1SearchInvoicesResponse {
2053
+ invoices?: V1Beta1SearchInvoicesResponseInvoice[];
2054
+ pagination?: V1Beta1RQLQueryPaginationResponse;
2055
+ group?: V1Beta1RQLQueryGroupResponse;
2056
+ }
2057
+ interface V1Beta1SearchInvoicesResponseInvoice {
2058
+ id?: string;
2059
+ /** @format int64 */
2060
+ amount?: string;
2061
+ currency?: string;
2062
+ state?: string;
2063
+ invoice_link?: string;
2064
+ /** @format date-time */
2065
+ created_at?: string;
2066
+ org_id?: string;
2067
+ org_name?: string;
2068
+ org_title?: string;
2069
+ }
1959
2070
  interface V1Beta1SearchOrganizationInvoicesResponse {
1960
2071
  organization_invoices?: SearchOrganizationInvoicesResponseOrganizationInvoice[];
1961
2072
  pagination?: V1Beta1RQLQueryPaginationResponse;
@@ -1971,6 +2082,16 @@ interface V1Beta1SearchOrganizationServiceUserCredentialsResponse {
1971
2082
  pagination?: V1Beta1RQLQueryPaginationResponse;
1972
2083
  group?: V1Beta1RQLQueryGroupResponse;
1973
2084
  }
2085
+ interface V1Beta1SearchOrganizationServiceUsersResponse {
2086
+ organization_service_users?: SearchOrganizationServiceUsersResponseOrganizationServiceUser[];
2087
+ pagination?: V1Beta1RQLQueryPaginationResponse;
2088
+ group?: V1Beta1RQLQueryGroupResponse;
2089
+ }
2090
+ interface V1Beta1SearchOrganizationServiceUsersResponseProject {
2091
+ id?: string;
2092
+ title?: string;
2093
+ name?: string;
2094
+ }
1974
2095
  interface V1Beta1SearchOrganizationTokensResponse {
1975
2096
  organization_tokens?: SearchOrganizationTokensResponseOrganizationToken[];
1976
2097
  pagination?: V1Beta1RQLQueryPaginationResponse;
@@ -1991,6 +2112,21 @@ interface V1Beta1SearchProjectUsersResponse {
1991
2112
  pagination?: V1Beta1RQLQueryPaginationResponse;
1992
2113
  group?: V1Beta1RQLQueryGroupResponse;
1993
2114
  }
2115
+ interface V1Beta1SearchUserOrganizationsResponse {
2116
+ user_organizations?: SearchUserOrganizationsResponseUserOrganization[];
2117
+ pagination?: V1Beta1RQLQueryPaginationResponse;
2118
+ group?: V1Beta1RQLQueryGroupResponse;
2119
+ }
2120
+ interface V1Beta1SearchUserProjectsResponse {
2121
+ user_projects?: SearchUserProjectsResponseUserProject[];
2122
+ pagination?: V1Beta1RQLQueryPaginationResponse;
2123
+ group?: V1Beta1RQLQueryGroupResponse;
2124
+ }
2125
+ interface V1Beta1SearchUsersResponse {
2126
+ users?: V1Beta1User[];
2127
+ pagination?: V1Beta1RQLQueryPaginationResponse;
2128
+ group?: V1Beta1RQLQueryGroupResponse;
2129
+ }
1994
2130
  interface V1Beta1SecretCredential {
1995
2131
  id?: string;
1996
2132
  title?: string;
@@ -2139,7 +2275,7 @@ interface V1Beta1UpdateProjectResourceResponse {
2139
2275
  resource?: V1Beta1Resource;
2140
2276
  }
2141
2277
  interface V1Beta1UpdateProjectResponse {
2142
- project?: V1Beta1Project;
2278
+ project?: Frontierv1Beta1Project;
2143
2279
  }
2144
2280
  interface V1Beta1UpdateProspectResponse {
2145
2281
  prospect?: V1Beta1Prospect;
@@ -2334,6 +2470,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2334
2470
  /** The state to filter by. It can be enabled or disabled. */
2335
2471
  state?: string;
2336
2472
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupsResponse, GooglerpcStatus>>;
2473
+ /**
2474
+ * No description
2475
+ *
2476
+ * @tags invoice
2477
+ * @name AdminServiceSearchInvoices
2478
+ * @summary Search invoices across all organizations
2479
+ * @request POST:/v1beta1/admin/invoices/search
2480
+ * @secure
2481
+ */
2482
+ adminServiceSearchInvoices: (query: V1Beta1RQLRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1SearchInvoicesResponse, GooglerpcStatus>>;
2337
2483
  /**
2338
2484
  * @description Lists all the organizations in a Frontier instance. It can be filtered by user and state.
2339
2485
  *
@@ -2359,6 +2505,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2359
2505
  */
2360
2506
  page_num?: number;
2361
2507
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllOrganizationsResponse, GooglerpcStatus>>;
2508
+ /**
2509
+ * No description
2510
+ *
2511
+ * @tags Organization
2512
+ * @name AdminServiceAdminCreateOrganization
2513
+ * @summary Create organization as superadmin
2514
+ * @request POST:/v1beta1/admin/organizations
2515
+ * @secure
2516
+ */
2517
+ adminServiceAdminCreateOrganization: (body: V1Beta1AdminCreateOrganizationRequestOrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1AdminCreateOrganizationResponse, GooglerpcStatus>>;
2362
2518
  /**
2363
2519
  * No description
2364
2520
  *
@@ -2399,6 +2555,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2399
2555
  * @secure
2400
2556
  */
2401
2557
  adminServiceSearchOrganizationServiceUserCredentials: (id: string, query: V1Beta1RQLRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1SearchOrganizationServiceUserCredentialsResponse, GooglerpcStatus>>;
2558
+ /**
2559
+ * No description
2560
+ *
2561
+ * @tags Organization
2562
+ * @name AdminServiceSearchOrganizationServiceUsers
2563
+ * @summary Search organization service users
2564
+ * @request POST:/v1beta1/admin/organizations/{id}/serviceusers/search
2565
+ * @secure
2566
+ */
2567
+ adminServiceSearchOrganizationServiceUsers: (id: string, query: V1Beta1RQLRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1SearchOrganizationServiceUsersResponse, GooglerpcStatus>>;
2402
2568
  /**
2403
2569
  * @description Export organization tokens
2404
2570
  *
@@ -2471,6 +2637,41 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2471
2637
  */
2472
2638
  amount?: string;
2473
2639
  }, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
2640
+ /**
2641
+ * @description Get billing account details that can be updated.
2642
+ *
2643
+ * @tags Billing
2644
+ * @name AdminServiceGetBillingAccountDetails
2645
+ * @summary Get billing account details
2646
+ * @request GET:/v1beta1/admin/organizations/{org_id}/billing/{id}/details
2647
+ * @secure
2648
+ */
2649
+ adminServiceGetBillingAccountDetails: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetBillingAccountDetailsResponse, GooglerpcStatus>>;
2650
+ /**
2651
+ * @description Update billing account details.
2652
+ *
2653
+ * @tags Billing
2654
+ * @name AdminServiceUpdateBillingAccountDetails
2655
+ * @summary Update billing account details
2656
+ * @request PUT:/v1beta1/admin/organizations/{org_id}/billing/{id}/details
2657
+ * @secure
2658
+ */
2659
+ adminServiceUpdateBillingAccountDetails: (orgId: string, id: string, body: {
2660
+ /**
2661
+ * credit_min is the minimum credit limit for the billing account
2662
+ * default is 0, negative numbers work as overdraft, positive
2663
+ * numbers work as minimum purchase limit
2664
+ * @format int64
2665
+ */
2666
+ credit_min?: string;
2667
+ /**
2668
+ * due_in_days is the number of days after the invoice finalization
2669
+ * that it will be considered overdue, if set to 0, the customer will
2670
+ * be charged immediately
2671
+ * @format int64
2672
+ */
2673
+ due_in_days?: string;
2674
+ }, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
2474
2675
  /**
2475
2676
  * @description Update billing account limits.
2476
2677
  *
@@ -2478,6 +2679,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2478
2679
  * @name AdminServiceUpdateBillingAccountLimits
2479
2680
  * @summary Update billing account limits
2480
2681
  * @request PUT:/v1beta1/admin/organizations/{org_id}/billing/{id}/limits
2682
+ * @deprecated
2481
2683
  * @secure
2482
2684
  */
2483
2685
  adminServiceUpdateBillingAccountLimits: (orgId: string, id: string, body: {
@@ -2705,6 +2907,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2705
2907
  /** The namespace to filter by. */
2706
2908
  namespace?: string;
2707
2909
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListResourcesResponse, GooglerpcStatus>>;
2910
+ /**
2911
+ * @description Lists all the service users from all the organizations in a Frontier instance.
2912
+ *
2913
+ * @tags User
2914
+ * @name AdminServiceListAllServiceUsers
2915
+ * @summary List all service users
2916
+ * @request GET:/v1beta1/admin/serviceusers
2917
+ * @secure
2918
+ */
2919
+ adminServiceListAllServiceUsers: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllServiceUsersResponse, GooglerpcStatus>>;
2708
2920
  /**
2709
2921
  * @description Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state.
2710
2922
  *
@@ -2734,6 +2946,46 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2734
2946
  /** The state to filter by. It can be enabled or disabled. */
2735
2947
  state?: string;
2736
2948
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllUsersResponse, GooglerpcStatus>>;
2949
+ /**
2950
+ * No description
2951
+ *
2952
+ * @tags User
2953
+ * @name AdminServiceSearchUserOrganizations
2954
+ * @summary Search users organizations
2955
+ * @request POST:/v1beta1/admin/users/{id}/organizations/search
2956
+ * @secure
2957
+ */
2958
+ adminServiceSearchUserOrganizations: (id: string, query: V1Beta1RQLRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1SearchUserOrganizationsResponse, GooglerpcStatus>>;
2959
+ /**
2960
+ * No description
2961
+ *
2962
+ * @tags User
2963
+ * @name AdminServiceSearchUserProjects
2964
+ * @summary Search projects of a user within an org
2965
+ * @request POST:/v1beta1/admin/users/{user_id}/organizations/{org_id}/projects
2966
+ * @secure
2967
+ */
2968
+ adminServiceSearchUserProjects: (userId: string, orgId: string, query: V1Beta1RQLRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1SearchUserProjectsResponse, GooglerpcStatus>>;
2969
+ /**
2970
+ * @description Export user with demographic properties and billing plan details
2971
+ *
2972
+ * @tags User
2973
+ * @name AdminServiceExportUsers
2974
+ * @summary Export users
2975
+ * @request GET:/v1beta1/admin/users/export
2976
+ * @secure
2977
+ */
2978
+ adminServiceExportUsers: (params?: RequestParams) => Promise<HttpResponse<File, GooglerpcStatus>>;
2979
+ /**
2980
+ * @description Search users based on their properties
2981
+ *
2982
+ * @tags User
2983
+ * @name AdminServiceSearchUsers
2984
+ * @summary Search users
2985
+ * @request POST:/v1beta1/admin/users/search
2986
+ * @secure
2987
+ */
2988
+ adminServiceSearchUsers: (query: V1Beta1RQLRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1SearchUsersResponse, GooglerpcStatus>>;
2737
2989
  /**
2738
2990
  * @description List all webhooks.
2739
2991
  *
@@ -2774,7 +3026,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2774
3026
  * @secure
2775
3027
  */
2776
3028
  adminServiceUpdateWebhook: (id: string, body: {
2777
- body?: V1Beta1WebhookRequestBody | undefined;
3029
+ body?: V1Beta1WebhookRequestBody;
2778
3030
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, GooglerpcStatus>>;
2779
3031
  /**
2780
3032
  * @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
@@ -2951,6 +3203,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2951
3203
  * @secure
2952
3204
  */
2953
3205
  frontierServiceBatchCheckPermission: (body: V1Beta1BatchCheckPermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1BatchCheckPermissionResponse, GooglerpcStatus>>;
3206
+ /**
3207
+ * @description Check if a billing account has enough credits to cover the amount.
3208
+ *
3209
+ * @tags Entitlement
3210
+ * @name FrontierServiceCheckCreditEntitlement
3211
+ * @summary Check credit entitlement
3212
+ * @request POST:/v1beta1/billing/check
3213
+ * @secure
3214
+ */
3215
+ frontierServiceCheckCreditEntitlement: (body: V1Beta1CheckCreditEntitlementRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1CheckCreditEntitlementResponse, GooglerpcStatus>>;
2954
3216
  /**
2955
3217
  * @description List all features
2956
3218
  *
@@ -2992,7 +3254,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2992
3254
  */
2993
3255
  frontierServiceUpdateFeature: (id: string, body: {
2994
3256
  /** Feature to update */
2995
- body?: V1Beta1FeatureRequestBody | undefined;
3257
+ body?: V1Beta1FeatureRequestBody;
2996
3258
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, GooglerpcStatus>>;
2997
3259
  /**
2998
3260
  * @description List all plans.
@@ -3035,7 +3297,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3035
3297
  */
3036
3298
  frontierServiceUpdatePlan: (id: string, body: {
3037
3299
  /** Plan to update */
3038
- body?: V1Beta1PlanRequestBody | undefined;
3300
+ body?: V1Beta1PlanRequestBody;
3039
3301
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, GooglerpcStatus>>;
3040
3302
  /**
3041
3303
  * @description List all products of a platform.
@@ -3078,7 +3340,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3078
3340
  */
3079
3341
  frontierServiceUpdateProduct: (id: string, body: {
3080
3342
  /** Product to update */
3081
- body?: V1Beta1ProductRequestBody | undefined;
3343
+ body?: V1Beta1ProductRequestBody;
3082
3344
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, GooglerpcStatus>>;
3083
3345
  /**
3084
3346
  * @description Accepts a Billing webhook and processes it.
@@ -3226,7 +3488,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3226
3488
  * @request POST:/v1beta1/organizations
3227
3489
  * @secure
3228
3490
  */
3229
- frontierServiceCreateOrganization: (body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationResponse, GooglerpcStatus>>;
3491
+ frontierServiceCreateOrganization: (body: Frontierv1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationResponse, GooglerpcStatus>>;
3230
3492
  /**
3231
3493
  * @description Get organization by ID or name
3232
3494
  *
@@ -3256,7 +3518,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3256
3518
  * @request PUT:/v1beta1/organizations/{id}
3257
3519
  * @secure
3258
3520
  */
3259
- frontierServiceUpdateOrganization: (id: string, body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationResponse, GooglerpcStatus>>;
3521
+ frontierServiceUpdateOrganization: (id: string, body: Frontierv1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationResponse, GooglerpcStatus>>;
3260
3522
  /**
3261
3523
  * @description Returns a list admins of an organization
3262
3524
  *
@@ -3276,7 +3538,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3276
3538
  * @request POST:/v1beta1/organizations/{id}/disable
3277
3539
  * @secure
3278
3540
  */
3279
- frontierServiceDisableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3541
+ frontierServiceDisableOrganization: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3280
3542
  /**
3281
3543
  * @description Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources.
3282
3544
  *
@@ -3286,7 +3548,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3286
3548
  * @request POST:/v1beta1/organizations/{id}/enable
3287
3549
  * @secure
3288
3550
  */
3289
- frontierServiceEnableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3551
+ frontierServiceEnableOrganization: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3290
3552
  /**
3291
3553
  * @description List an organization preferences by ID.
3292
3554
  *
@@ -3436,9 +3698,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3436
3698
  */
3437
3699
  frontierServiceCreateBillingAccount: (orgId: string, body: {
3438
3700
  /** Billing account to create. */
3439
- body?: V1Beta1BillingAccountRequestBody | undefined;
3701
+ body?: V1Beta1BillingAccountRequestBody;
3440
3702
  /** Offline billing account don't get registered with billing provider */
3441
- offline?: boolean | undefined;
3703
+ offline?: boolean;
3442
3704
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, GooglerpcStatus>>;
3443
3705
  /**
3444
3706
  * @description Check if a billing account is entitled to a feature.
@@ -3651,6 +3913,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3651
3913
  */
3652
3914
  frontierServiceGetBillingAccount: (orgId: string, id: string, query?: {
3653
3915
  with_payment_methods?: boolean;
3916
+ with_billing_details?: boolean;
3654
3917
  expand?: string[];
3655
3918
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetBillingAccountResponse, GooglerpcStatus>>;
3656
3919
  /**
@@ -3674,7 +3937,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3674
3937
  */
3675
3938
  frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
3676
3939
  /** Billing account to update. */
3677
- body?: V1Beta1BillingAccountRequestBody | undefined;
3940
+ body?: V1Beta1BillingAccountRequestBody;
3678
3941
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, GooglerpcStatus>>;
3679
3942
  /**
3680
3943
  * @description Get the balance of a billing account by ID.
@@ -3695,7 +3958,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3695
3958
  * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/disable
3696
3959
  * @secure
3697
3960
  */
3698
- frontierServiceDisableBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3961
+ frontierServiceDisableBillingAccount: (orgId: string, id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3699
3962
  /**
3700
3963
  * @description Enable a billing account by ID.
3701
3964
  *
@@ -3705,7 +3968,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3705
3968
  * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/enable
3706
3969
  * @secure
3707
3970
  */
3708
- frontierServiceEnableBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3971
+ frontierServiceEnableBillingAccount: (orgId: string, id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3709
3972
  /**
3710
3973
  * @description Check if a billing account has trialed.
3711
3974
  *
@@ -3725,7 +3988,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3725
3988
  * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/register
3726
3989
  * @secure
3727
3990
  */
3728
- frontierServiceRegisterBillingAccount: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3991
+ frontierServiceRegisterBillingAccount: (orgId: string, id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3729
3992
  /**
3730
3993
  * @description List all checkouts of a billing account.
3731
3994
  *
@@ -3960,7 +4223,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3960
4223
  * @request POST:/v1beta1/organizations/{org_id}/domains/{id}/verify
3961
4224
  * @secure
3962
4225
  */
3963
- frontierServiceVerifyOrganizationDomain: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<V1Beta1VerifyOrganizationDomainResponse, GooglerpcStatus>>;
4226
+ frontierServiceVerifyOrganizationDomain: (orgId: string, id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<V1Beta1VerifyOrganizationDomainResponse, GooglerpcStatus>>;
3964
4227
  /**
3965
4228
  * @description Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled.
3966
4229
  *
@@ -4028,7 +4291,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4028
4291
  * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/disable
4029
4292
  * @secure
4030
4293
  */
4031
- frontierServiceDisableGroup: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4294
+ frontierServiceDisableGroup: (orgId: string, id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4032
4295
  /**
4033
4296
  * @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.
4034
4297
  *
@@ -4038,7 +4301,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4038
4301
  * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/enable
4039
4302
  * @secure
4040
4303
  */
4041
- frontierServiceEnableGroup: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4304
+ frontierServiceEnableGroup: (orgId: string, id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4042
4305
  /**
4043
4306
  * @description Returns a list of users that belong to a group.
4044
4307
  *
@@ -4132,7 +4395,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4132
4395
  * @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
4133
4396
  * @secure
4134
4397
  */
4135
- frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4398
+ frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4136
4399
  /**
4137
4400
  * @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.
4138
4401
  *
@@ -4142,7 +4405,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4142
4405
  * @request POST:/v1beta1/organizations/{org_id}/join
4143
4406
  * @secure
4144
4407
  */
4145
- frontierServiceJoinOrganization: (orgId: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4408
+ frontierServiceJoinOrganization: (orgId: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4146
4409
  /**
4147
4410
  * @description Get KYC info of an organization using ID or name
4148
4411
  *
@@ -4216,7 +4479,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4216
4479
  * @secure
4217
4480
  */
4218
4481
  frontierServiceCreateServiceUser: (orgId: string, body: {
4219
- body?: V1Beta1ServiceUserRequestBody | undefined;
4482
+ body?: V1Beta1ServiceUserRequestBody;
4220
4483
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, GooglerpcStatus>>;
4221
4484
  /**
4222
4485
  * @description Get service user details by its id.
@@ -4601,7 +4864,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4601
4864
  * @request POST:/v1beta1/projects/{id}/disable
4602
4865
  * @secure
4603
4866
  */
4604
- frontierServiceDisableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4867
+ frontierServiceDisableProject: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4605
4868
  /**
4606
4869
  * No description
4607
4870
  *
@@ -4611,7 +4874,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4611
4874
  * @request POST:/v1beta1/projects/{id}/enable
4612
4875
  * @secure
4613
4876
  */
4614
- frontierServiceEnableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4877
+ frontierServiceEnableProject: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4615
4878
  /**
4616
4879
  * @description Returns a collection of groups of a project.
4617
4880
  *
@@ -4901,7 +5164,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4901
5164
  * @request POST:/v1beta1/users/{id}/disable
4902
5165
  * @secure
4903
5166
  */
4904
- frontierServiceDisableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
5167
+ frontierServiceDisableUser: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4905
5168
  /**
4906
5169
  * @description Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance.
4907
5170
  *
@@ -4911,7 +5174,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4911
5174
  * @request POST:/v1beta1/users/{id}/enable
4912
5175
  * @secure
4913
5176
  */
4914
- frontierServiceEnableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
5177
+ frontierServiceEnableUser: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4915
5178
  /**
4916
5179
  * @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.
4917
5180
  *
@@ -5153,7 +5416,9 @@ declare const router: _tanstack_react_router.Router<_tanstack_react_router.RootR
5153
5416
  customRoutes: CustomRoutes;
5154
5417
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/plans", "/plans", string, "/plans", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/confirm-change/$planId", "/plans/confirm-change/$planId", string, "/plans/confirm-change/$planId", undefined, Record<"planId", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>]>, _tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
5155
5418
  customRoutes: CustomRoutes;
5156
- }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/tokens", "/tokens", string, "/tokens", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, _tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
5419
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/tokens", "/tokens", string, "/tokens", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, readonly [_tanstack_react_router.Route<_tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
5420
+ customRoutes: CustomRoutes;
5421
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/tokens", "/tokens", string, "/tokens", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/modal", "/tokens/modal", string, "/tokens/modal", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>]>, _tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
5157
5422
  customRoutes: CustomRoutes;
5158
5423
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys", "/api-keys", string, "/api-keys", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, readonly [_tanstack_react_router.Route<_tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
5159
5424
  customRoutes: CustomRoutes;
@@ -5273,6 +5538,8 @@ interface FrontierContextProviderProps {
5273
5538
  setOrganizationKyc: Dispatch<SetStateAction<V1Beta1OrganizationKyc | undefined>>;
5274
5539
  isOrganizationKycLoading: boolean;
5275
5540
  setIsOrganizationKycLoading: Dispatch<SetStateAction<boolean>>;
5541
+ billingDetails: V1Beta1BillingAccountDetails | undefined;
5542
+ setBillingDetails: Dispatch<SetStateAction<V1Beta1BillingAccountDetails | undefined>>;
5276
5543
  }
5277
5544
  declare function useFrontier(): FrontierContextProviderProps;
5278
5545
 
@@ -5314,4 +5581,4 @@ declare const PREFERENCE_OPTIONS: {
5314
5581
  readonly NEWSLETTER: "newsletter";
5315
5582
  };
5316
5583
 
5317
- export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, Updates, Window, useBillingPermission, useFrontier, usePreferences, useTokens };
5584
+ export { AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, Updates, Window, useBillingPermission, useFrontier, usePreferences, useTokens };