@raystack/frontier 0.43.0 → 0.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2101,7 +2101,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2101
2101
  * @secure
2102
2102
  */
2103
2103
  adminServiceUpdateWebhook: (id: string, body: {
2104
- body?: V1Beta1WebhookRequestBody;
2104
+ body?: V1Beta1WebhookRequestBody | undefined;
2105
2105
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, RpcStatus>>;
2106
2106
  /**
2107
2107
  * @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
@@ -2319,7 +2319,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2319
2319
  */
2320
2320
  frontierServiceUpdateFeature: (id: string, body: {
2321
2321
  /** Feature to update */
2322
- body?: V1Beta1FeatureRequestBody;
2322
+ body?: V1Beta1FeatureRequestBody | undefined;
2323
2323
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, RpcStatus>>;
2324
2324
  /**
2325
2325
  * @description List all plans.
@@ -2362,7 +2362,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2362
2362
  */
2363
2363
  frontierServiceUpdatePlan: (id: string, body: {
2364
2364
  /** Plan to update */
2365
- body?: V1Beta1PlanRequestBody;
2365
+ body?: V1Beta1PlanRequestBody | undefined;
2366
2366
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, RpcStatus>>;
2367
2367
  /**
2368
2368
  * @description List all products of a platform.
@@ -2405,7 +2405,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2405
2405
  */
2406
2406
  frontierServiceUpdateProduct: (id: string, body: {
2407
2407
  /** Product to update */
2408
- body?: V1Beta1ProductRequestBody;
2408
+ body?: V1Beta1ProductRequestBody | undefined;
2409
2409
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, RpcStatus>>;
2410
2410
  /**
2411
2411
  * @description Accepts a Billing webhook and processes it.
@@ -2752,9 +2752,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2752
2752
  */
2753
2753
  frontierServiceCreateBillingAccount: (orgId: string, body: {
2754
2754
  /** Billing account to create. */
2755
- body?: V1Beta1BillingAccountRequestBody;
2755
+ body?: V1Beta1BillingAccountRequestBody | undefined;
2756
2756
  /** Offline billing account don't get registered with billing provider */
2757
- offline?: boolean;
2757
+ offline?: boolean | undefined;
2758
2758
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, RpcStatus>>;
2759
2759
  /**
2760
2760
  * @description Check if a billing account is entitled to a feature.
@@ -2980,7 +2980,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2980
2980
  */
2981
2981
  frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
2982
2982
  /** Billing account to update. */
2983
- body?: V1Beta1BillingAccountRequestBody;
2983
+ body?: V1Beta1BillingAccountRequestBody | undefined;
2984
2984
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, RpcStatus>>;
2985
2985
  /**
2986
2986
  * @description Get the balance of a billing account by ID.
@@ -3512,7 +3512,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3512
3512
  * @secure
3513
3513
  */
3514
3514
  frontierServiceCreateServiceUser: (orgId: string, body: {
3515
- body?: V1Beta1ServiceUserRequestBody;
3515
+ body?: V1Beta1ServiceUserRequestBody | undefined;
3516
3516
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, RpcStatus>>;
3517
3517
  /**
3518
3518
  * @description Get service user details by its id.
package/dist/index.d.ts CHANGED
@@ -2101,7 +2101,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2101
2101
  * @secure
2102
2102
  */
2103
2103
  adminServiceUpdateWebhook: (id: string, body: {
2104
- body?: V1Beta1WebhookRequestBody;
2104
+ body?: V1Beta1WebhookRequestBody | undefined;
2105
2105
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, RpcStatus>>;
2106
2106
  /**
2107
2107
  * @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
@@ -2319,7 +2319,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2319
2319
  */
2320
2320
  frontierServiceUpdateFeature: (id: string, body: {
2321
2321
  /** Feature to update */
2322
- body?: V1Beta1FeatureRequestBody;
2322
+ body?: V1Beta1FeatureRequestBody | undefined;
2323
2323
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, RpcStatus>>;
2324
2324
  /**
2325
2325
  * @description List all plans.
@@ -2362,7 +2362,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2362
2362
  */
2363
2363
  frontierServiceUpdatePlan: (id: string, body: {
2364
2364
  /** Plan to update */
2365
- body?: V1Beta1PlanRequestBody;
2365
+ body?: V1Beta1PlanRequestBody | undefined;
2366
2366
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, RpcStatus>>;
2367
2367
  /**
2368
2368
  * @description List all products of a platform.
@@ -2405,7 +2405,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2405
2405
  */
2406
2406
  frontierServiceUpdateProduct: (id: string, body: {
2407
2407
  /** Product to update */
2408
- body?: V1Beta1ProductRequestBody;
2408
+ body?: V1Beta1ProductRequestBody | undefined;
2409
2409
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, RpcStatus>>;
2410
2410
  /**
2411
2411
  * @description Accepts a Billing webhook and processes it.
@@ -2752,9 +2752,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2752
2752
  */
2753
2753
  frontierServiceCreateBillingAccount: (orgId: string, body: {
2754
2754
  /** Billing account to create. */
2755
- body?: V1Beta1BillingAccountRequestBody;
2755
+ body?: V1Beta1BillingAccountRequestBody | undefined;
2756
2756
  /** Offline billing account don't get registered with billing provider */
2757
- offline?: boolean;
2757
+ offline?: boolean | undefined;
2758
2758
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, RpcStatus>>;
2759
2759
  /**
2760
2760
  * @description Check if a billing account is entitled to a feature.
@@ -2980,7 +2980,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2980
2980
  */
2981
2981
  frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
2982
2982
  /** Billing account to update. */
2983
- body?: V1Beta1BillingAccountRequestBody;
2983
+ body?: V1Beta1BillingAccountRequestBody | undefined;
2984
2984
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, RpcStatus>>;
2985
2985
  /**
2986
2986
  * @description Get the balance of a billing account by ID.
@@ -3512,7 +3512,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3512
3512
  * @secure
3513
3513
  */
3514
3514
  frontierServiceCreateServiceUser: (orgId: string, body: {
3515
- body?: V1Beta1ServiceUserRequestBody;
3515
+ body?: V1Beta1ServiceUserRequestBody | undefined;
3516
3516
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, RpcStatus>>;
3517
3517
  /**
3518
3518
  * @description Get service user details by its id.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.43.0",
3
+ "version": "0.44.1",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -71,6 +71,7 @@
71
71
  "@types/react": "^18.2.22",
72
72
  "@types/react-dom": "^18.2.7",
73
73
  "@types/uuid": "^10.0.0",
74
+ "@types/validator": "^13.12.2",
74
75
  "esbuild-css-modules-plugin": "^2.7.1",
75
76
  "esbuild-plugin-external-global": "^1.0.1",
76
77
  "eslint": "^7.32.0",
@@ -99,6 +100,7 @@
99
100
  "slugify": "^1.6.6",
100
101
  "sonner": "^0.6.2",
101
102
  "uuid": "^10.0.0",
103
+ "validator": "^13.12.0",
102
104
  "yup": "^1.2.0"
103
105
  },
104
106
  "peerDependencies": {
@@ -2136,7 +2136,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2136
2136
  * @secure
2137
2137
  */
2138
2138
  adminServiceUpdateWebhook: (id: string, body: {
2139
- body?: V1Beta1WebhookRequestBody;
2139
+ body?: V1Beta1WebhookRequestBody | undefined;
2140
2140
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, RpcStatus>>;
2141
2141
  /**
2142
2142
  * @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
@@ -2354,7 +2354,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2354
2354
  */
2355
2355
  frontierServiceUpdateFeature: (id: string, body: {
2356
2356
  /** Feature to update */
2357
- body?: V1Beta1FeatureRequestBody;
2357
+ body?: V1Beta1FeatureRequestBody | undefined;
2358
2358
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, RpcStatus>>;
2359
2359
  /**
2360
2360
  * @description List all plans.
@@ -2397,7 +2397,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2397
2397
  */
2398
2398
  frontierServiceUpdatePlan: (id: string, body: {
2399
2399
  /** Plan to update */
2400
- body?: V1Beta1PlanRequestBody;
2400
+ body?: V1Beta1PlanRequestBody | undefined;
2401
2401
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, RpcStatus>>;
2402
2402
  /**
2403
2403
  * @description List all products of a platform.
@@ -2440,7 +2440,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2440
2440
  */
2441
2441
  frontierServiceUpdateProduct: (id: string, body: {
2442
2442
  /** Product to update */
2443
- body?: V1Beta1ProductRequestBody;
2443
+ body?: V1Beta1ProductRequestBody | undefined;
2444
2444
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, RpcStatus>>;
2445
2445
  /**
2446
2446
  * @description Accepts a Billing webhook and processes it.
@@ -2787,9 +2787,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2787
2787
  */
2788
2788
  frontierServiceCreateBillingAccount: (orgId: string, body: {
2789
2789
  /** Billing account to create. */
2790
- body?: V1Beta1BillingAccountRequestBody;
2790
+ body?: V1Beta1BillingAccountRequestBody | undefined;
2791
2791
  /** Offline billing account don't get registered with billing provider */
2792
- offline?: boolean;
2792
+ offline?: boolean | undefined;
2793
2793
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, RpcStatus>>;
2794
2794
  /**
2795
2795
  * @description Check if a billing account is entitled to a feature.
@@ -3015,7 +3015,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3015
3015
  */
3016
3016
  frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
3017
3017
  /** Billing account to update. */
3018
- body?: V1Beta1BillingAccountRequestBody;
3018
+ body?: V1Beta1BillingAccountRequestBody | undefined;
3019
3019
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, RpcStatus>>;
3020
3020
  /**
3021
3021
  * @description Get the balance of a billing account by ID.
@@ -3547,7 +3547,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
3547
3547
  * @secure
3548
3548
  */
3549
3549
  frontierServiceCreateServiceUser: (orgId: string, body: {
3550
- body?: V1Beta1ServiceUserRequestBody;
3550
+ body?: V1Beta1ServiceUserRequestBody | undefined;
3551
3551
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, RpcStatus>>;
3552
3552
  /**
3553
3553
  * @description Get service user details by its id.
@@ -4431,7 +4431,9 @@ declare const router: _tanstack_react_router.Router<_tanstack_react_router.RootR
4431
4431
  customRoutes: CustomRoutes;
4432
4432
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", undefined, Record<"projectId", 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"> & {
4433
4433
  customRoutes: CustomRoutes;
4434
- }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", undefined, Record<"projectId", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/delete", "/projects/$projectId/delete", string, "/projects/$projectId/delete", 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"> & {
4434
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", undefined, Record<"projectId", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/delete", "/projects/$projectId/delete", string, "/projects/$projectId/delete", 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.Route<_tanstack_react_router.RootRoute<undefined, Pick<OrganizationProfileProps, "organizationId" | "showBilling" | "showTokens" | "showAPIKeys" | "hideToast" | "showPreferences"> & {
4435
+ customRoutes: CustomRoutes;
4436
+ }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", undefined, Record<"projectId", string>, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown>, "/$membertype/$memberId/remove", "/projects/$projectId/$membertype/$memberId/remove", string, "/projects/$projectId/$membertype/$memberId/remove", undefined, Record<"memberId" | "membertype", 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"> & {
4435
4437
  customRoutes: CustomRoutes;
4436
4438
  }, _tanstack_react_router.AnyContext, _tanstack_react_router.AnyContext, {}, undefined, unknown, unknown>, "/profile", "/profile", string, "/profile", 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"> & {
4437
4439
  customRoutes: CustomRoutes;