@raystack/frontier 0.44.2 → 0.46.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.
@@ -644,6 +644,7 @@ interface V1Beta1FeatureRequestBody {
644
644
  product_ids?: string[];
645
645
  metadata?: object;
646
646
  }
647
+ type V1Beta1GenerateInvoicesRequest = object;
647
648
  interface V1Beta1GetBillingAccountResponse {
648
649
  /** Billing account */
649
650
  billing_account?: V1Beta1BillingAccount;
@@ -1055,6 +1056,8 @@ interface V1Beta1ListProjectUsersResponseRolePair {
1055
1056
  interface V1Beta1ListProjectsByCurrentUserResponse {
1056
1057
  projects?: V1Beta1Project[];
1057
1058
  access_pairs?: V1Beta1ListProjectsByCurrentUserResponseAccessPair[];
1059
+ /** @format int32 */
1060
+ count?: number;
1058
1061
  }
1059
1062
  interface V1Beta1ListProjectsByCurrentUserResponseAccessPair {
1060
1063
  project_id?: string;
@@ -1082,6 +1085,14 @@ interface V1Beta1ListServiceUserCredentialsResponse {
1082
1085
  interface V1Beta1ListServiceUserJWKsResponse {
1083
1086
  keys?: V1Beta1ServiceUserJWK[];
1084
1087
  }
1088
+ interface V1Beta1ListServiceUserProjectsResponse {
1089
+ projects?: V1Beta1Project[];
1090
+ access_pairs?: V1Beta1ListServiceUserProjectsResponseAccessPair[];
1091
+ }
1092
+ interface V1Beta1ListServiceUserProjectsResponseAccessPair {
1093
+ project_id?: string;
1094
+ permissions?: string[];
1095
+ }
1085
1096
  interface V1Beta1ListServiceUserTokensResponse {
1086
1097
  tokens?: V1Beta1ServiceUserToken[];
1087
1098
  }
@@ -1871,6 +1882,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1871
1882
  */
1872
1883
  page_num?: number;
1873
1884
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllInvoicesResponse, RpcStatus>>;
1885
+ /**
1886
+ * @description Triggers the creation of credit overdraft invoices for all billing accounts.
1887
+ *
1888
+ * @tags Invoice
1889
+ * @name AdminServiceGenerateInvoices
1890
+ * @summary Trigger invoice generation
1891
+ * @request POST:/v1beta1/admin/billing/invoices/generate
1892
+ * @secure
1893
+ */
1894
+ adminServiceGenerateInvoices: (body: V1Beta1GenerateInvoicesRequest, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1874
1895
  /**
1875
1896
  * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user, group or a service account.
1876
1897
  *
@@ -2568,6 +2589,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2568
2589
  user_id?: string;
2569
2590
  /** The state to filter by. It can be `enabled` or `disabled`. */
2570
2591
  state?: string;
2592
+ /**
2593
+ * The maximum number of users to return per page. The default is 1000.
2594
+ * @format int32
2595
+ */
2596
+ page_size?: number;
2597
+ /**
2598
+ * The page number to return. The default is 1.
2599
+ * @format int32
2600
+ */
2601
+ page_num?: number;
2571
2602
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsResponse, RpcStatus>>;
2572
2603
  /**
2573
2604
  * No description
@@ -2697,6 +2728,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2697
2728
  frontierServiceListOrganizationUsers: (id: string, query?: {
2698
2729
  permission_filter?: string;
2699
2730
  with_roles?: boolean;
2731
+ role_filters?: string[];
2700
2732
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationUsersResponse, RpcStatus>>;
2701
2733
  /**
2702
2734
  * @description Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists
@@ -3611,6 +3643,23 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3611
3643
  * @secure
3612
3644
  */
3613
3645
  frontierServiceDeleteServiceUserJwk: (orgId: string, id: string, keyId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
3646
+ /**
3647
+ * @description List all projects the service user belongs to
3648
+ *
3649
+ * @tags ServiceUser
3650
+ * @name FrontierServiceListServiceUserProjects
3651
+ * @summary List service sser projects
3652
+ * @request GET:/v1beta1/organizations/{org_id}/serviceusers/{id}/projects
3653
+ * @secure
3654
+ */
3655
+ frontierServiceListServiceUserProjects: (orgId: string, id: string, query?: {
3656
+ /**
3657
+ * list of permissions needs to be checked against each project
3658
+ * query params are set as with_permissions=get&with_permissions=delete
3659
+ * to be represented as array
3660
+ */
3661
+ with_permissions?: string[];
3662
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserProjectsResponse, RpcStatus>>;
3614
3663
  /**
3615
3664
  * @description List all the credentials of a service user.
3616
3665
  *
@@ -4139,7 +4188,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4139
4188
  */
4140
4189
  frontierServiceListUsers: (query?: {
4141
4190
  /**
4142
- * The maximum number of users to return per page. The default is 50.
4191
+ * The maximum number of users to return per page. The default is 1000.
4143
4192
  * @format int32
4144
4193
  */
4145
4194
  page_size?: number;
@@ -4388,6 +4437,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
4388
4437
  */
4389
4438
  non_inherited?: boolean;
4390
4439
  with_member_count?: boolean;
4440
+ /**
4441
+ * The maximum number of users to return per page. The default is 1000.
4442
+ * @format int32
4443
+ */
4444
+ page_size?: number;
4445
+ /**
4446
+ * The page number to return. The default is 1.
4447
+ * @format int32
4448
+ */
4449
+ page_num?: number;
4391
4450
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByCurrentUserResponse, RpcStatus>>;
4392
4451
  }
4393
4452
 
@@ -4457,7 +4516,9 @@ declare const router: _tanstack_react_router.Router<_tanstack_react_router.RootR
4457
4516
  customRoutes: CustomRoutes;
4458
4517
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys/$id", "/api-keys/$id", string, "/api-keys/$id", undefined, Record<"id", 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"> & {
4459
4518
  customRoutes: CustomRoutes;
4460
- }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys/$id", "/api-keys/$id", string, "/api-keys/$id", undefined, Record<"id", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/key/$tokenId/delete", "/api-keys/$id/key/$tokenId/delete", string, "/api-keys/$id/key/$tokenId/delete", undefined, Record<"tokenId", 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"> & {
4519
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys/$id", "/api-keys/$id", string, "/api-keys/$id", undefined, Record<"id", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/key/$tokenId/delete", "/api-keys/$id/key/$tokenId/delete", string, "/api-keys/$id/key/$tokenId/delete", undefined, Record<"tokenId", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, _tanstack_react_router.Route<_tanstack_react_router.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
4520
+ customRoutes: CustomRoutes;
4521
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/api-keys/$id", "/api-keys/$id", string, "/api-keys/$id", undefined, Record<"id", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/projects", "/api-keys/$id/projects", string, "/api-keys/$id/projects", 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"> & {
4461
4522
  customRoutes: CustomRoutes;
4462
4523
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, string, "/", string, "__root__", undefined, Record<never, string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>[]], unknown>, _tanstack_react_router.TrailingSlashOption, Record<string, any>, Record<string, any>>;
4463
4524
  declare const OrganizationProfile: ({ organizationId, defaultRoute, showBilling, showTokens, showAPIKeys, showPreferences, hideToast, customScreens }: OrganizationProfileProps) => react_jsx_runtime.JSX.Element;