@raystack/frontier 0.66.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.
@@ -119,8 +119,8 @@ interface CustomRoutes {
119
119
  }
120
120
 
121
121
  type QueryParamsType = Record<string | number, any>;
122
- type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
123
- interface FullRequestParams extends Omit<RequestInit, 'body'> {
122
+ type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
123
+ interface FullRequestParams extends Omit<RequestInit, "body"> {
124
124
  /** set parameter to `true` for call `securityWorker` for this request */
125
125
  secure?: boolean;
126
126
  /** request path */
@@ -138,10 +138,10 @@ interface FullRequestParams extends Omit<RequestInit, 'body'> {
138
138
  /** request cancellation token */
139
139
  cancelToken?: CancelToken;
140
140
  }
141
- type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
141
+ type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
142
142
  interface ApiConfig<SecurityDataType = unknown> {
143
143
  baseUrl?: string;
144
- baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
144
+ baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
145
145
  securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
146
146
  customFetch?: typeof fetch;
147
147
  }
@@ -152,6 +152,7 @@ interface HttpResponse<D extends unknown, E extends unknown = unknown> extends R
152
152
  type CancelToken = Symbol | string | number;
153
153
  declare enum ContentType {
154
154
  Json = "application/json",
155
+ JsonApi = "application/vnd.api+json",
155
156
  FormData = "multipart/form-data",
156
157
  UrlEncoded = "application/x-www-form-urlencoded",
157
158
  Text = "text/plain"
@@ -177,6 +178,15 @@ declare class HttpClient<SecurityDataType = unknown> {
177
178
  request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
178
179
  }
179
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
+ }
180
190
  interface BillingAccountAddress {
181
191
  line1?: string;
182
192
  line2?: string;
@@ -251,6 +261,14 @@ interface SearchOrganizationServiceUserCredentialsResponseOrganizationServiceUse
251
261
  created_at?: string;
252
262
  org_id?: string;
253
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
+ }
254
272
  interface SearchOrganizationTokensResponseOrganizationToken {
255
273
  /** @format int64 */
256
274
  amount?: string;
@@ -308,6 +326,33 @@ interface SearchProjectUsersResponseProjectUser {
308
326
  role_ids?: string[];
309
327
  project_id?: string;
310
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
+ }
311
356
  interface SubscriptionPhase {
312
357
  /** @format date-time */
313
358
  effective_at?: string;
@@ -318,6 +363,72 @@ interface WebhookSecret {
318
363
  id?: string;
319
364
  value?: string;
320
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
+ }
321
432
  interface GooglerpcStatus {
322
433
  /** @format int32 */
323
434
  code?: number;
@@ -442,9 +553,10 @@ interface ProtobufAny {
442
553
  * Schemes other than `http`, `https` (or the empty scheme) might be
443
554
  * used with implementation specific semantics.
444
555
  */
445
- '@type'?: string;
556
+ "@type"?: string;
446
557
  [key: string]: any;
447
558
  }
559
+ type V1Beta1AcceptOrganizationInvitationResponse = object;
448
560
  interface V1Beta1AddPlatformUserRequest {
449
561
  /** The user id to add to the platform. */
450
562
  user_id?: string;
@@ -453,6 +565,28 @@ interface V1Beta1AddPlatformUserRequest {
453
565
  /** The relation to add as in the platform. It can be admin or member. */
454
566
  relation: string;
455
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
+ }
456
590
  interface V1Beta1AuditLog {
457
591
  /** A unique identifier of the audit log if not supplied will be autogenerated */
458
592
  id?: string;
@@ -563,6 +697,22 @@ interface V1Beta1BillingAccount {
563
697
  updated_at?: string;
564
698
  organization?: V1Beta1Organization;
565
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
+ }
566
716
  interface V1Beta1BillingAccountRequestBody {
567
717
  name?: string;
568
718
  email?: string;
@@ -594,6 +744,14 @@ interface V1Beta1BillingTransaction {
594
744
  interface V1Beta1ChangeSubscriptionResponse {
595
745
  phase?: SubscriptionPhase;
596
746
  }
747
+ interface V1Beta1CheckCreditEntitlementRequest {
748
+ org_id?: string;
749
+ /** @format int64 */
750
+ amount?: string;
751
+ }
752
+ interface V1Beta1CheckCreditEntitlementResponse {
753
+ status?: boolean;
754
+ }
597
755
  interface V1Beta1CheckFeatureEntitlementRequest {
598
756
  org_id?: string;
599
757
  /** ID of the billing account to update the subscription for */
@@ -773,7 +931,7 @@ interface V1Beta1CreateProjectResourceResponse {
773
931
  resource?: V1Beta1Resource;
774
932
  }
775
933
  interface V1Beta1CreateProjectResponse {
776
- project?: V1Beta1Project;
934
+ project?: Frontierv1Beta1Project;
777
935
  }
778
936
  interface V1Beta1CreateProspectPublicRequest {
779
937
  /** full name of the user */
@@ -910,11 +1068,29 @@ interface V1Beta1FeatureRequestBody {
910
1068
  metadata?: object;
911
1069
  }
912
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
+ }
913
1087
  interface V1Beta1GetBillingAccountResponse {
914
1088
  /** Billing account */
915
1089
  billing_account?: V1Beta1BillingAccount;
916
1090
  /** List of payment methods */
917
1091
  payment_methods?: V1Beta1PaymentMethod[];
1092
+ /** Billing details */
1093
+ billing_details?: V1Beta1BillingAccountDetails;
918
1094
  }
919
1095
  interface V1Beta1GetBillingBalanceResponse {
920
1096
  /** Balance of the billing account */
@@ -981,7 +1157,7 @@ interface V1Beta1GetProjectResourceResponse {
981
1157
  resource?: V1Beta1Resource;
982
1158
  }
983
1159
  interface V1Beta1GetProjectResponse {
984
- project?: V1Beta1Project;
1160
+ project?: Frontierv1Beta1Project;
985
1161
  }
986
1162
  interface V1Beta1GetProspectResponse {
987
1163
  prospect?: V1Beta1Prospect;
@@ -1000,7 +1176,7 @@ interface V1Beta1GetSubscriptionResponse {
1000
1176
  }
1001
1177
  interface V1Beta1GetUpcomingInvoiceResponse {
1002
1178
  /** Upcoming invoice */
1003
- invoice?: V1Beta1Invoice;
1179
+ invoice?: Frontierv1Beta1Invoice;
1004
1180
  }
1005
1181
  interface V1Beta1GetUserResponse {
1006
1182
  user?: V1Beta1User;
@@ -1087,34 +1263,6 @@ interface V1Beta1Invitation {
1087
1263
  */
1088
1264
  role_ids?: string[];
1089
1265
  }
1090
- interface V1Beta1Invoice {
1091
- id?: string;
1092
- customer_id?: string;
1093
- provider_id?: string;
1094
- state?: string;
1095
- currency?: string;
1096
- /** @format int64 */
1097
- amount?: string;
1098
- hosted_url?: string;
1099
- /**
1100
- * The date on which payment for this invoice is due
1101
- * @format date-time
1102
- */
1103
- due_date?: string;
1104
- /**
1105
- * The date when this invoice is in effect.
1106
- * @format date-time
1107
- */
1108
- effective_at?: string;
1109
- /** @format date-time */
1110
- period_start_at?: string;
1111
- /** @format date-time */
1112
- period_end_at?: string;
1113
- metadata?: object;
1114
- /** @format date-time */
1115
- created_at?: string;
1116
- customer?: V1Beta1BillingAccount;
1117
- }
1118
1266
  /** JSON Web Key as specified in RFC 7517 */
1119
1267
  interface V1Beta1JSONWebKey {
1120
1268
  /** Key Type. */
@@ -1147,7 +1295,7 @@ interface V1Beta1ListAllBillingAccountsResponse {
1147
1295
  billing_accounts?: V1Beta1BillingAccount[];
1148
1296
  }
1149
1297
  interface V1Beta1ListAllInvoicesResponse {
1150
- invoices?: V1Beta1Invoice[];
1298
+ invoices?: Frontierv1Beta1Invoice[];
1151
1299
  /**
1152
1300
  * Total number of records present
1153
1301
  * @format int32
@@ -1162,6 +1310,9 @@ interface V1Beta1ListAllOrganizationsResponse {
1162
1310
  */
1163
1311
  count?: number;
1164
1312
  }
1313
+ interface V1Beta1ListAllServiceUsersResponse {
1314
+ service_users?: V1Beta1ServiceUser[];
1315
+ }
1165
1316
  interface V1Beta1ListAllUsersResponse {
1166
1317
  /** @format int32 */
1167
1318
  count?: number;
@@ -1216,7 +1367,7 @@ interface V1Beta1ListGroupsResponse {
1216
1367
  }
1217
1368
  interface V1Beta1ListInvoicesResponse {
1218
1369
  /** List of invoices */
1219
- invoices?: V1Beta1Invoice[];
1370
+ invoices?: Frontierv1Beta1Invoice[];
1220
1371
  }
1221
1372
  interface V1Beta1ListMetaSchemasResponse {
1222
1373
  metaschemas?: V1Beta1MetaSchema[];
@@ -1243,7 +1394,7 @@ interface V1Beta1ListOrganizationPreferencesResponse {
1243
1394
  preferences?: V1Beta1Preference[];
1244
1395
  }
1245
1396
  interface V1Beta1ListOrganizationProjectsResponse {
1246
- projects?: V1Beta1Project[];
1397
+ projects?: Frontierv1Beta1Project[];
1247
1398
  }
1248
1399
  interface V1Beta1ListOrganizationRolesResponse {
1249
1400
  roles?: V1Beta1Role[];
@@ -1328,7 +1479,7 @@ interface V1Beta1ListProjectUsersResponseRolePair {
1328
1479
  roles?: V1Beta1Role[];
1329
1480
  }
1330
1481
  interface V1Beta1ListProjectsByCurrentUserResponse {
1331
- projects?: V1Beta1Project[];
1482
+ projects?: Frontierv1Beta1Project[];
1332
1483
  access_pairs?: V1Beta1ListProjectsByCurrentUserResponseAccessPair[];
1333
1484
  /** @format int32 */
1334
1485
  count?: number;
@@ -1338,10 +1489,10 @@ interface V1Beta1ListProjectsByCurrentUserResponseAccessPair {
1338
1489
  permissions?: string[];
1339
1490
  }
1340
1491
  interface V1Beta1ListProjectsByUserResponse {
1341
- projects?: V1Beta1Project[];
1492
+ projects?: Frontierv1Beta1Project[];
1342
1493
  }
1343
1494
  interface V1Beta1ListProjectsResponse {
1344
- projects?: V1Beta1Project[];
1495
+ projects?: Frontierv1Beta1Project[];
1345
1496
  }
1346
1497
  interface V1Beta1ListProspectsResponse {
1347
1498
  prospects?: V1Beta1Prospect[];
@@ -1365,7 +1516,7 @@ interface V1Beta1ListServiceUserJWKsResponse {
1365
1516
  keys?: V1Beta1ServiceUserJWK[];
1366
1517
  }
1367
1518
  interface V1Beta1ListServiceUserProjectsResponse {
1368
- projects?: V1Beta1Project[];
1519
+ projects?: Frontierv1Beta1Project[];
1369
1520
  access_pairs?: V1Beta1ListServiceUserProjectsResponseAccessPair[];
1370
1521
  }
1371
1522
  interface V1Beta1ListServiceUserProjectsResponseAccessPair {
@@ -1490,19 +1641,6 @@ interface V1Beta1OrganizationKyc {
1490
1641
  */
1491
1642
  updated_at?: string;
1492
1643
  }
1493
- interface V1Beta1OrganizationRequestBody {
1494
- /** 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"` */
1495
- name: string;
1496
- /** 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"` */
1497
- title?: string;
1498
- /** 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"}` */
1499
- metadata?: object;
1500
- /**
1501
- * 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})+$`.
1502
- * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
1503
- */
1504
- avatar?: string;
1505
- }
1506
1644
  interface V1Beta1PaymentMethod {
1507
1645
  id?: string;
1508
1646
  customer_id?: string;
@@ -1727,31 +1865,6 @@ interface V1Beta1ProductRequestBody {
1727
1865
  behavior_config?: ProductBehaviorConfig;
1728
1866
  metadata?: object;
1729
1867
  }
1730
- interface V1Beta1Project {
1731
- id?: string;
1732
- name?: string;
1733
- title?: string;
1734
- org_id?: string;
1735
- metadata?: object;
1736
- /**
1737
- * The time the project was created.
1738
- * @format date-time
1739
- * @example "2023-06-07T05:39:56.961Z"
1740
- */
1741
- created_at?: string;
1742
- /**
1743
- * The time the project was last updated.
1744
- * @format date-time
1745
- * @example "2023-06-07T05:39:56.961Z"
1746
- */
1747
- updated_at?: string;
1748
- /**
1749
- * The number of members explicitly added in the project.
1750
- * @format int32
1751
- * @example 2
1752
- */
1753
- members_count?: number;
1754
- }
1755
1868
  interface V1Beta1ProjectRequestBody {
1756
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` */
1757
1870
  name: string;
@@ -1779,15 +1892,6 @@ interface V1Beta1Prospect {
1779
1892
  updated_at?: string;
1780
1893
  metadata?: object;
1781
1894
  }
1782
- /**
1783
- * subscription status
1784
- * @default "STATUS_UNSPECIFIED"
1785
- */
1786
- declare enum V1Beta1ProspectStatus {
1787
- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
1788
- STATUS_UNSUBSCRIBED = "STATUS_UNSUBSCRIBED",
1789
- STATUS_SUBSCRIBED = "STATUS_SUBSCRIBED"
1790
- }
1791
1895
  interface V1Beta1RQLFilter {
1792
1896
  name?: string;
1793
1897
  operator?: string;
@@ -1945,6 +2049,24 @@ interface V1Beta1RoleRequestBody {
1945
2049
  title?: string;
1946
2050
  scopes?: string[];
1947
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
+ }
1948
2070
  interface V1Beta1SearchOrganizationInvoicesResponse {
1949
2071
  organization_invoices?: SearchOrganizationInvoicesResponseOrganizationInvoice[];
1950
2072
  pagination?: V1Beta1RQLQueryPaginationResponse;
@@ -1960,6 +2082,16 @@ interface V1Beta1SearchOrganizationServiceUserCredentialsResponse {
1960
2082
  pagination?: V1Beta1RQLQueryPaginationResponse;
1961
2083
  group?: V1Beta1RQLQueryGroupResponse;
1962
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
+ }
1963
2095
  interface V1Beta1SearchOrganizationTokensResponse {
1964
2096
  organization_tokens?: SearchOrganizationTokensResponseOrganizationToken[];
1965
2097
  pagination?: V1Beta1RQLQueryPaginationResponse;
@@ -1980,6 +2112,21 @@ interface V1Beta1SearchProjectUsersResponse {
1980
2112
  pagination?: V1Beta1RQLQueryPaginationResponse;
1981
2113
  group?: V1Beta1RQLQueryGroupResponse;
1982
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
+ }
1983
2130
  interface V1Beta1SecretCredential {
1984
2131
  id?: string;
1985
2132
  title?: string;
@@ -2128,7 +2275,7 @@ interface V1Beta1UpdateProjectResourceResponse {
2128
2275
  resource?: V1Beta1Resource;
2129
2276
  }
2130
2277
  interface V1Beta1UpdateProjectResponse {
2131
- project?: V1Beta1Project;
2278
+ project?: Frontierv1Beta1Project;
2132
2279
  }
2133
2280
  interface V1Beta1UpdateProspectResponse {
2134
2281
  prospect?: V1Beta1Prospect;
@@ -2323,6 +2470,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2323
2470
  /** The state to filter by. It can be enabled or disabled. */
2324
2471
  state?: string;
2325
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>>;
2326
2483
  /**
2327
2484
  * @description Lists all the organizations in a Frontier instance. It can be filtered by user and state.
2328
2485
  *
@@ -2348,6 +2505,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2348
2505
  */
2349
2506
  page_num?: number;
2350
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>>;
2351
2518
  /**
2352
2519
  * No description
2353
2520
  *
@@ -2388,6 +2555,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2388
2555
  * @secure
2389
2556
  */
2390
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>>;
2391
2568
  /**
2392
2569
  * @description Export organization tokens
2393
2570
  *
@@ -2460,6 +2637,41 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2460
2637
  */
2461
2638
  amount?: string;
2462
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>>;
2463
2675
  /**
2464
2676
  * @description Update billing account limits.
2465
2677
  *
@@ -2467,6 +2679,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2467
2679
  * @name AdminServiceUpdateBillingAccountLimits
2468
2680
  * @summary Update billing account limits
2469
2681
  * @request PUT:/v1beta1/admin/organizations/{org_id}/billing/{id}/limits
2682
+ * @deprecated
2470
2683
  * @secure
2471
2684
  */
2472
2685
  adminServiceUpdateBillingAccountLimits: (orgId: string, id: string, body: {
@@ -2694,6 +2907,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2694
2907
  /** The namespace to filter by. */
2695
2908
  namespace?: string;
2696
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>>;
2697
2920
  /**
2698
2921
  * @description Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state.
2699
2922
  *
@@ -2723,6 +2946,46 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2723
2946
  /** The state to filter by. It can be enabled or disabled. */
2724
2947
  state?: string;
2725
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>>;
2726
2989
  /**
2727
2990
  * @description List all webhooks.
2728
2991
  *
@@ -2940,6 +3203,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2940
3203
  * @secure
2941
3204
  */
2942
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>>;
2943
3216
  /**
2944
3217
  * @description List all features
2945
3218
  *
@@ -3215,7 +3488,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3215
3488
  * @request POST:/v1beta1/organizations
3216
3489
  * @secure
3217
3490
  */
3218
- frontierServiceCreateOrganization: (body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationResponse, GooglerpcStatus>>;
3491
+ frontierServiceCreateOrganization: (body: Frontierv1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateOrganizationResponse, GooglerpcStatus>>;
3219
3492
  /**
3220
3493
  * @description Get organization by ID or name
3221
3494
  *
@@ -3245,7 +3518,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3245
3518
  * @request PUT:/v1beta1/organizations/{id}
3246
3519
  * @secure
3247
3520
  */
3248
- frontierServiceUpdateOrganization: (id: string, body: V1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationResponse, GooglerpcStatus>>;
3521
+ frontierServiceUpdateOrganization: (id: string, body: Frontierv1Beta1OrganizationRequestBody, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateOrganizationResponse, GooglerpcStatus>>;
3249
3522
  /**
3250
3523
  * @description Returns a list admins of an organization
3251
3524
  *
@@ -3265,7 +3538,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3265
3538
  * @request POST:/v1beta1/organizations/{id}/disable
3266
3539
  * @secure
3267
3540
  */
3268
- frontierServiceDisableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3541
+ frontierServiceDisableOrganization: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3269
3542
  /**
3270
3543
  * @description Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources.
3271
3544
  *
@@ -3275,7 +3548,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3275
3548
  * @request POST:/v1beta1/organizations/{id}/enable
3276
3549
  * @secure
3277
3550
  */
3278
- frontierServiceEnableOrganization: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3551
+ frontierServiceEnableOrganization: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
3279
3552
  /**
3280
3553
  * @description List an organization preferences by ID.
3281
3554
  *
@@ -3640,6 +3913,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3640
3913
  */
3641
3914
  frontierServiceGetBillingAccount: (orgId: string, id: string, query?: {
3642
3915
  with_payment_methods?: boolean;
3916
+ with_billing_details?: boolean;
3643
3917
  expand?: string[];
3644
3918
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetBillingAccountResponse, GooglerpcStatus>>;
3645
3919
  /**
@@ -3684,7 +3958,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3684
3958
  * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/disable
3685
3959
  * @secure
3686
3960
  */
3687
- 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>>;
3688
3962
  /**
3689
3963
  * @description Enable a billing account by ID.
3690
3964
  *
@@ -3694,7 +3968,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3694
3968
  * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/enable
3695
3969
  * @secure
3696
3970
  */
3697
- 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>>;
3698
3972
  /**
3699
3973
  * @description Check if a billing account has trialed.
3700
3974
  *
@@ -3714,7 +3988,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3714
3988
  * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/register
3715
3989
  * @secure
3716
3990
  */
3717
- 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>>;
3718
3992
  /**
3719
3993
  * @description List all checkouts of a billing account.
3720
3994
  *
@@ -3949,7 +4223,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3949
4223
  * @request POST:/v1beta1/organizations/{org_id}/domains/{id}/verify
3950
4224
  * @secure
3951
4225
  */
3952
- 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>>;
3953
4227
  /**
3954
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.
3955
4229
  *
@@ -4017,7 +4291,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4017
4291
  * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/disable
4018
4292
  * @secure
4019
4293
  */
4020
- 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>>;
4021
4295
  /**
4022
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.
4023
4297
  *
@@ -4027,7 +4301,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4027
4301
  * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/enable
4028
4302
  * @secure
4029
4303
  */
4030
- 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>>;
4031
4305
  /**
4032
4306
  * @description Returns a list of users that belong to a group.
4033
4307
  *
@@ -4121,7 +4395,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4121
4395
  * @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
4122
4396
  * @secure
4123
4397
  */
4124
- 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>>;
4125
4399
  /**
4126
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.
4127
4401
  *
@@ -4131,7 +4405,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4131
4405
  * @request POST:/v1beta1/organizations/{org_id}/join
4132
4406
  * @secure
4133
4407
  */
4134
- frontierServiceJoinOrganization: (orgId: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4408
+ frontierServiceJoinOrganization: (orgId: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4135
4409
  /**
4136
4410
  * @description Get KYC info of an organization using ID or name
4137
4411
  *
@@ -4590,7 +4864,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4590
4864
  * @request POST:/v1beta1/projects/{id}/disable
4591
4865
  * @secure
4592
4866
  */
4593
- frontierServiceDisableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4867
+ frontierServiceDisableProject: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4594
4868
  /**
4595
4869
  * No description
4596
4870
  *
@@ -4600,7 +4874,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4600
4874
  * @request POST:/v1beta1/projects/{id}/enable
4601
4875
  * @secure
4602
4876
  */
4603
- frontierServiceEnableProject: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4877
+ frontierServiceEnableProject: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4604
4878
  /**
4605
4879
  * @description Returns a collection of groups of a project.
4606
4880
  *
@@ -4890,7 +5164,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4890
5164
  * @request POST:/v1beta1/users/{id}/disable
4891
5165
  * @secure
4892
5166
  */
4893
- frontierServiceDisableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
5167
+ frontierServiceDisableUser: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4894
5168
  /**
4895
5169
  * @description Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance.
4896
5170
  *
@@ -4900,7 +5174,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4900
5174
  * @request POST:/v1beta1/users/{id}/enable
4901
5175
  * @secure
4902
5176
  */
4903
- frontierServiceEnableUser: (id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
5177
+ frontierServiceEnableUser: (id: string, body: V1Beta1AcceptOrganizationInvitationResponse, params?: RequestParams) => Promise<HttpResponse<object, GooglerpcStatus>>;
4904
5178
  /**
4905
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.
4906
5180
  *
@@ -5142,7 +5416,9 @@ declare const router: _tanstack_react_router.Router<_tanstack_react_router.RootR
5142
5416
  customRoutes: CustomRoutes;
5143
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"> & {
5144
5418
  customRoutes: CustomRoutes;
5145
- }, _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"> & {
5146
5422
  customRoutes: CustomRoutes;
5147
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"> & {
5148
5424
  customRoutes: CustomRoutes;
@@ -5262,6 +5538,8 @@ interface FrontierContextProviderProps {
5262
5538
  setOrganizationKyc: Dispatch<SetStateAction<V1Beta1OrganizationKyc | undefined>>;
5263
5539
  isOrganizationKycLoading: boolean;
5264
5540
  setIsOrganizationKycLoading: Dispatch<SetStateAction<boolean>>;
5541
+ billingDetails: V1Beta1BillingAccountDetails | undefined;
5542
+ setBillingDetails: Dispatch<SetStateAction<V1Beta1BillingAccountDetails | undefined>>;
5265
5543
  }
5266
5544
  declare function useFrontier(): FrontierContextProviderProps;
5267
5545