@raystack/frontier 0.7.14 → 0.7.16

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.
package/dist/index.d.ts CHANGED
@@ -122,6 +122,11 @@ interface V1Beta1AuthCallbackRequest {
122
122
  /** for oidc & magic links */
123
123
  state?: string;
124
124
  code?: string;
125
+ /**
126
+ * state_options has additional configurations for the authentication flow at hand
127
+ * for example, in case of passkey, it has challenge and public key
128
+ */
129
+ stateOptions?: object;
125
130
  }
126
131
  type V1Beta1AuthCallbackResponse = object;
127
132
  type V1Beta1AuthLogoutResponse = object;
@@ -151,6 +156,8 @@ interface V1Beta1AuthenticateResponse {
151
156
  endpoint?: string;
152
157
  /** state is used for resuming authentication flow in applicable strategies */
153
158
  state?: string;
159
+ /** state_options has additional configurations for the authentication flow at hand */
160
+ stateOptions?: object;
154
161
  }
155
162
  interface V1Beta1BatchCheckPermissionBody {
156
163
  /** the permission name to check. <br/> *Example:* `get` or `list` */
@@ -947,6 +954,7 @@ interface V1Beta1Resource {
947
954
  namespace?: string;
948
955
  principal?: string;
949
956
  metadata?: object;
957
+ title?: string;
950
958
  }
951
959
  interface V1Beta1ResourceRequestBody {
952
960
  /** The name of the resource. Must be unique within the project. <br/> *Example:* `my-resource` */
@@ -1265,6 +1273,11 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1265
1273
  /** for oidc & magic links */
1266
1274
  state?: string;
1267
1275
  code?: string;
1276
+ /**
1277
+ * state_options has additional configurations for the authentication flow at hand
1278
+ * for example, in case of passkey, it has challenge and public key
1279
+ */
1280
+ stateOptions?: object;
1268
1281
  }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1269
1282
  /**
1270
1283
  * @description Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url.
@@ -2728,7 +2741,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2728
2741
  * @request GET:/v1beta1/users/self/organizations
2729
2742
  * @secure
2730
2743
  */
2731
- frontierServiceListOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByCurrentUserResponse, RpcStatus>>;
2744
+ frontierServiceListOrganizationsByCurrentUser: (query?: {
2745
+ state?: string;
2746
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByCurrentUserResponse, RpcStatus>>;
2732
2747
  /**
2733
2748
  * @description List a user preferences by ID.
2734
2749
  *
package/dist/index.js CHANGED
@@ -2331,9 +2331,10 @@ var V1Beta1 = class extends HttpClient {
2331
2331
  * @request GET:/v1beta1/users/self/organizations
2332
2332
  * @secure
2333
2333
  */
2334
- this.frontierServiceListOrganizationsByCurrentUser = (params = {}) => this.request(__spreadValues({
2334
+ this.frontierServiceListOrganizationsByCurrentUser = (query, params = {}) => this.request(__spreadValues({
2335
2335
  path: `/v1beta1/users/self/organizations`,
2336
2336
  method: "GET",
2337
+ query,
2337
2338
  secure: true,
2338
2339
  format: "json"
2339
2340
  }, params));
package/dist/index.mjs CHANGED
@@ -2306,9 +2306,10 @@ var V1Beta1 = class extends HttpClient {
2306
2306
  * @request GET:/v1beta1/users/self/organizations
2307
2307
  * @secure
2308
2308
  */
2309
- this.frontierServiceListOrganizationsByCurrentUser = (params = {}) => this.request(__spreadValues({
2309
+ this.frontierServiceListOrganizationsByCurrentUser = (query, params = {}) => this.request(__spreadValues({
2310
2310
  path: `/v1beta1/users/self/organizations`,
2311
2311
  method: "GET",
2312
+ query,
2312
2313
  secure: true,
2313
2314
  format: "json"
2314
2315
  }, params));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.7.14",
3
+ "version": "v0.7.16",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@hookform/resolvers": "^3.3.1",
74
- "@raystack/apsara": "^0.11.4",
74
+ "@raystack/apsara": "^0.11.5",
75
75
  "@tanstack/react-router": "0.0.1-beta.174",
76
76
  "axios": "^1.5.0",
77
77
  "class-variance-authority": "^0.7.0",
@@ -187,6 +187,11 @@ interface V1Beta1AuthCallbackRequest {
187
187
  /** for oidc & magic links */
188
188
  state?: string;
189
189
  code?: string;
190
+ /**
191
+ * state_options has additional configurations for the authentication flow at hand
192
+ * for example, in case of passkey, it has challenge and public key
193
+ */
194
+ stateOptions?: object;
190
195
  }
191
196
  interface V1Beta1AuthStrategy {
192
197
  name?: string;
@@ -214,6 +219,8 @@ interface V1Beta1AuthenticateResponse {
214
219
  endpoint?: string;
215
220
  /** state is used for resuming authentication flow in applicable strategies */
216
221
  state?: string;
222
+ /** state_options has additional configurations for the authentication flow at hand */
223
+ stateOptions?: object;
217
224
  }
218
225
  interface V1Beta1BatchCheckPermissionBody {
219
226
  /** the permission name to check. <br/> *Example:* `get` or `list` */
@@ -982,6 +989,7 @@ interface V1Beta1Resource {
982
989
  namespace?: string;
983
990
  principal?: string;
984
991
  metadata?: object;
992
+ title?: string;
985
993
  }
986
994
  interface V1Beta1ResourceRequestBody {
987
995
  /** The name of the resource. Must be unique within the project. <br/> *Example:* `my-resource` */
@@ -1300,6 +1308,11 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1300
1308
  /** for oidc & magic links */
1301
1309
  state?: string;
1302
1310
  code?: string;
1311
+ /**
1312
+ * state_options has additional configurations for the authentication flow at hand
1313
+ * for example, in case of passkey, it has challenge and public key
1314
+ */
1315
+ stateOptions?: object;
1303
1316
  }, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
1304
1317
  /**
1305
1318
  * @description Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url.
@@ -2763,7 +2776,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2763
2776
  * @request GET:/v1beta1/users/self/organizations
2764
2777
  * @secure
2765
2778
  */
2766
- frontierServiceListOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByCurrentUserResponse, RpcStatus>>;
2779
+ frontierServiceListOrganizationsByCurrentUser: (query?: {
2780
+ state?: string;
2781
+ }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByCurrentUserResponse, RpcStatus>>;
2767
2782
  /**
2768
2783
  * @description List a user preferences by ID.
2769
2784
  *