@raystack/frontier 0.38.0 → 0.40.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.
- package/api-client/dist/index.d.ts +161 -145
- package/api-client/dist/index.js +219 -202
- package/api-client/dist/index.mjs +219 -202
- package/dist/index.d.ts +161 -145
- package/dist/index.js +219 -202
- package/dist/index.mjs +219 -202
- package/package.json +2 -2
- package/react/dist/index.d.ts +250 -218
- package/react/dist/index.js +1854 -489
- package/react/dist/index.mjs +1785 -418
package/dist/index.mjs
CHANGED
|
@@ -298,6 +298,23 @@ var V1Beta1 = class extends HttpClient {
|
|
|
298
298
|
type: "application/json" /* Json */,
|
|
299
299
|
format: "json"
|
|
300
300
|
}, params));
|
|
301
|
+
/**
|
|
302
|
+
* @description Update billing account limits.
|
|
303
|
+
*
|
|
304
|
+
* @tags Billing
|
|
305
|
+
* @name AdminServiceUpdateBillingAccountLimits
|
|
306
|
+
* @summary Update billing account limits
|
|
307
|
+
* @request PUT:/v1beta1/admin/organizations/{org_id}/billing/{id}/limits
|
|
308
|
+
* @secure
|
|
309
|
+
*/
|
|
310
|
+
this.adminServiceUpdateBillingAccountLimits = (orgId, id, body, params = {}) => this.request(__spreadValues({
|
|
311
|
+
path: `/v1beta1/admin/organizations/${orgId}/billing/${id}/limits`,
|
|
312
|
+
method: "PUT",
|
|
313
|
+
body,
|
|
314
|
+
secure: true,
|
|
315
|
+
type: "application/json" /* Json */,
|
|
316
|
+
format: "json"
|
|
317
|
+
}, params));
|
|
301
318
|
/**
|
|
302
319
|
* @description Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
|
|
303
320
|
*
|
|
@@ -2260,6 +2277,206 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2260
2277
|
secure: true,
|
|
2261
2278
|
format: "json"
|
|
2262
2279
|
}, params));
|
|
2280
|
+
/**
|
|
2281
|
+
* @description Create a service user.
|
|
2282
|
+
*
|
|
2283
|
+
* @tags ServiceUser
|
|
2284
|
+
* @name FrontierServiceCreateServiceUser
|
|
2285
|
+
* @summary Create service user
|
|
2286
|
+
* @request POST:/v1beta1/organizations/{org_id}/serviceusers
|
|
2287
|
+
* @secure
|
|
2288
|
+
*/
|
|
2289
|
+
this.frontierServiceCreateServiceUser = (orgId, body, params = {}) => this.request(__spreadValues({
|
|
2290
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers`,
|
|
2291
|
+
method: "POST",
|
|
2292
|
+
body,
|
|
2293
|
+
secure: true,
|
|
2294
|
+
type: "application/json" /* Json */,
|
|
2295
|
+
format: "json"
|
|
2296
|
+
}, params));
|
|
2297
|
+
/**
|
|
2298
|
+
* @description Get service user details by its id.
|
|
2299
|
+
*
|
|
2300
|
+
* @tags ServiceUser
|
|
2301
|
+
* @name FrontierServiceGetServiceUser
|
|
2302
|
+
* @summary Get service user
|
|
2303
|
+
* @request GET:/v1beta1/organizations/{org_id}/serviceusers/{id}
|
|
2304
|
+
* @secure
|
|
2305
|
+
*/
|
|
2306
|
+
this.frontierServiceGetServiceUser = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
2307
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}`,
|
|
2308
|
+
method: "GET",
|
|
2309
|
+
secure: true,
|
|
2310
|
+
format: "json"
|
|
2311
|
+
}, params));
|
|
2312
|
+
/**
|
|
2313
|
+
* @description Delete a service user permanently and all of its relations (keys, organizations, roles, etc)
|
|
2314
|
+
*
|
|
2315
|
+
* @tags ServiceUser
|
|
2316
|
+
* @name FrontierServiceDeleteServiceUser
|
|
2317
|
+
* @summary Delete service user
|
|
2318
|
+
* @request DELETE:/v1beta1/organizations/{org_id}/serviceusers/{id}
|
|
2319
|
+
* @secure
|
|
2320
|
+
*/
|
|
2321
|
+
this.frontierServiceDeleteServiceUser = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
2322
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}`,
|
|
2323
|
+
method: "DELETE",
|
|
2324
|
+
secure: true,
|
|
2325
|
+
format: "json"
|
|
2326
|
+
}, params));
|
|
2327
|
+
/**
|
|
2328
|
+
* @description List all the keys of a service user with its details except jwk.
|
|
2329
|
+
*
|
|
2330
|
+
* @tags ServiceUser
|
|
2331
|
+
* @name FrontierServiceListServiceUserJwKs
|
|
2332
|
+
* @summary List service user keys
|
|
2333
|
+
* @request GET:/v1beta1/organizations/{org_id}/serviceusers/{id}/keys
|
|
2334
|
+
* @secure
|
|
2335
|
+
*/
|
|
2336
|
+
this.frontierServiceListServiceUserJwKs = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
2337
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/keys`,
|
|
2338
|
+
method: "GET",
|
|
2339
|
+
secure: true,
|
|
2340
|
+
format: "json"
|
|
2341
|
+
}, params));
|
|
2342
|
+
/**
|
|
2343
|
+
* @description Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client.
|
|
2344
|
+
*
|
|
2345
|
+
* @tags ServiceUser
|
|
2346
|
+
* @name FrontierServiceCreateServiceUserJwk
|
|
2347
|
+
* @summary Create service user public/private key pair
|
|
2348
|
+
* @request POST:/v1beta1/organizations/{org_id}/serviceusers/{id}/keys
|
|
2349
|
+
* @secure
|
|
2350
|
+
*/
|
|
2351
|
+
this.frontierServiceCreateServiceUserJwk = (orgId, id, body, params = {}) => this.request(__spreadValues({
|
|
2352
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/keys`,
|
|
2353
|
+
method: "POST",
|
|
2354
|
+
body,
|
|
2355
|
+
secure: true,
|
|
2356
|
+
format: "json"
|
|
2357
|
+
}, params));
|
|
2358
|
+
/**
|
|
2359
|
+
* @description Get a service user public RSA JWK set.
|
|
2360
|
+
*
|
|
2361
|
+
* @tags ServiceUser
|
|
2362
|
+
* @name FrontierServiceGetServiceUserJwk
|
|
2363
|
+
* @summary Get service user key
|
|
2364
|
+
* @request GET:/v1beta1/organizations/{org_id}/serviceusers/{id}/keys/{key_id}
|
|
2365
|
+
* @secure
|
|
2366
|
+
*/
|
|
2367
|
+
this.frontierServiceGetServiceUserJwk = (orgId, id, keyId, params = {}) => this.request(__spreadValues({
|
|
2368
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/keys/${keyId}`,
|
|
2369
|
+
method: "GET",
|
|
2370
|
+
secure: true,
|
|
2371
|
+
format: "json"
|
|
2372
|
+
}, params));
|
|
2373
|
+
/**
|
|
2374
|
+
* @description Delete a service user key permanently.
|
|
2375
|
+
*
|
|
2376
|
+
* @tags ServiceUser
|
|
2377
|
+
* @name FrontierServiceDeleteServiceUserJwk
|
|
2378
|
+
* @summary Delete service user key
|
|
2379
|
+
* @request DELETE:/v1beta1/organizations/{org_id}/serviceusers/{id}/keys/{key_id}
|
|
2380
|
+
* @secure
|
|
2381
|
+
*/
|
|
2382
|
+
this.frontierServiceDeleteServiceUserJwk = (orgId, id, keyId, params = {}) => this.request(__spreadValues({
|
|
2383
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/keys/${keyId}`,
|
|
2384
|
+
method: "DELETE",
|
|
2385
|
+
secure: true,
|
|
2386
|
+
format: "json"
|
|
2387
|
+
}, params));
|
|
2388
|
+
/**
|
|
2389
|
+
* @description List all the credentials of a service user.
|
|
2390
|
+
*
|
|
2391
|
+
* @tags ServiceUser
|
|
2392
|
+
* @name FrontierServiceListServiceUserCredentials
|
|
2393
|
+
* @summary List service user credentials
|
|
2394
|
+
* @request GET:/v1beta1/organizations/{org_id}/serviceusers/{id}/secrets
|
|
2395
|
+
* @secure
|
|
2396
|
+
*/
|
|
2397
|
+
this.frontierServiceListServiceUserCredentials = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
2398
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/secrets`,
|
|
2399
|
+
method: "GET",
|
|
2400
|
+
secure: true,
|
|
2401
|
+
format: "json"
|
|
2402
|
+
}, params));
|
|
2403
|
+
/**
|
|
2404
|
+
* @description Generate a service user credential and return it. The credential value will not be persisted and should be securely stored by client.
|
|
2405
|
+
*
|
|
2406
|
+
* @tags ServiceUser
|
|
2407
|
+
* @name FrontierServiceCreateServiceUserCredential
|
|
2408
|
+
* @summary Create service user client credentials
|
|
2409
|
+
* @request POST:/v1beta1/organizations/{org_id}/serviceusers/{id}/secrets
|
|
2410
|
+
* @secure
|
|
2411
|
+
*/
|
|
2412
|
+
this.frontierServiceCreateServiceUserCredential = (orgId, id, body, params = {}) => this.request(__spreadValues({
|
|
2413
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/secrets`,
|
|
2414
|
+
method: "POST",
|
|
2415
|
+
body,
|
|
2416
|
+
secure: true,
|
|
2417
|
+
format: "json"
|
|
2418
|
+
}, params));
|
|
2419
|
+
/**
|
|
2420
|
+
* @description Delete a service user credential.
|
|
2421
|
+
*
|
|
2422
|
+
* @tags ServiceUser
|
|
2423
|
+
* @name FrontierServiceDeleteServiceUserCredential
|
|
2424
|
+
* @summary Delete service user credentials
|
|
2425
|
+
* @request DELETE:/v1beta1/organizations/{org_id}/serviceusers/{id}/secrets/{secret_id}
|
|
2426
|
+
* @secure
|
|
2427
|
+
*/
|
|
2428
|
+
this.frontierServiceDeleteServiceUserCredential = (orgId, id, secretId, params = {}) => this.request(__spreadValues({
|
|
2429
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/secrets/${secretId}`,
|
|
2430
|
+
method: "DELETE",
|
|
2431
|
+
secure: true,
|
|
2432
|
+
format: "json"
|
|
2433
|
+
}, params));
|
|
2434
|
+
/**
|
|
2435
|
+
* @description List all the tokens of a service user.
|
|
2436
|
+
*
|
|
2437
|
+
* @tags ServiceUser
|
|
2438
|
+
* @name FrontierServiceListServiceUserTokens
|
|
2439
|
+
* @summary List service user tokens
|
|
2440
|
+
* @request GET:/v1beta1/organizations/{org_id}/serviceusers/{id}/tokens
|
|
2441
|
+
* @secure
|
|
2442
|
+
*/
|
|
2443
|
+
this.frontierServiceListServiceUserTokens = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
2444
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/tokens`,
|
|
2445
|
+
method: "GET",
|
|
2446
|
+
secure: true,
|
|
2447
|
+
format: "json"
|
|
2448
|
+
}, params));
|
|
2449
|
+
/**
|
|
2450
|
+
* @description Generate a service user token and return it. The token value will not be persisted and should be securely stored by client.
|
|
2451
|
+
*
|
|
2452
|
+
* @tags ServiceUser
|
|
2453
|
+
* @name FrontierServiceCreateServiceUserToken
|
|
2454
|
+
* @summary Create service user token
|
|
2455
|
+
* @request POST:/v1beta1/organizations/{org_id}/serviceusers/{id}/tokens
|
|
2456
|
+
* @secure
|
|
2457
|
+
*/
|
|
2458
|
+
this.frontierServiceCreateServiceUserToken = (orgId, id, body, params = {}) => this.request(__spreadValues({
|
|
2459
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/tokens`,
|
|
2460
|
+
method: "POST",
|
|
2461
|
+
body,
|
|
2462
|
+
secure: true,
|
|
2463
|
+
format: "json"
|
|
2464
|
+
}, params));
|
|
2465
|
+
/**
|
|
2466
|
+
* @description Delete a service user token.
|
|
2467
|
+
*
|
|
2468
|
+
* @tags ServiceUser
|
|
2469
|
+
* @name FrontierServiceDeleteServiceUserToken
|
|
2470
|
+
* @summary Delete service user token
|
|
2471
|
+
* @request DELETE:/v1beta1/organizations/{org_id}/serviceusers/{id}/tokens/{token_id}
|
|
2472
|
+
* @secure
|
|
2473
|
+
*/
|
|
2474
|
+
this.frontierServiceDeleteServiceUserToken = (orgId, id, tokenId, params = {}) => this.request(__spreadValues({
|
|
2475
|
+
path: `/v1beta1/organizations/${orgId}/serviceusers/${id}/tokens/${tokenId}`,
|
|
2476
|
+
method: "DELETE",
|
|
2477
|
+
secure: true,
|
|
2478
|
+
format: "json"
|
|
2479
|
+
}, params));
|
|
2263
2480
|
/**
|
|
2264
2481
|
* @description Check if a billing account is entitled to a feature.
|
|
2265
2482
|
*
|
|
@@ -2925,207 +3142,6 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2925
3142
|
secure: true,
|
|
2926
3143
|
format: "json"
|
|
2927
3144
|
}, params));
|
|
2928
|
-
/**
|
|
2929
|
-
* @description Create a service user.
|
|
2930
|
-
*
|
|
2931
|
-
* @tags ServiceUser
|
|
2932
|
-
* @name FrontierServiceCreateServiceUser
|
|
2933
|
-
* @summary Create service user
|
|
2934
|
-
* @request POST:/v1beta1/serviceusers
|
|
2935
|
-
* @secure
|
|
2936
|
-
*/
|
|
2937
|
-
this.frontierServiceCreateServiceUser = (body, params = {}) => this.request(__spreadValues({
|
|
2938
|
-
path: `/v1beta1/serviceusers`,
|
|
2939
|
-
method: "POST",
|
|
2940
|
-
body,
|
|
2941
|
-
secure: true,
|
|
2942
|
-
type: "application/json" /* Json */,
|
|
2943
|
-
format: "json"
|
|
2944
|
-
}, params));
|
|
2945
|
-
/**
|
|
2946
|
-
* @description Get service user details by its id.
|
|
2947
|
-
*
|
|
2948
|
-
* @tags ServiceUser
|
|
2949
|
-
* @name FrontierServiceGetServiceUser
|
|
2950
|
-
* @summary Get service user
|
|
2951
|
-
* @request GET:/v1beta1/serviceusers/{id}
|
|
2952
|
-
* @secure
|
|
2953
|
-
*/
|
|
2954
|
-
this.frontierServiceGetServiceUser = (id, params = {}) => this.request(__spreadValues({
|
|
2955
|
-
path: `/v1beta1/serviceusers/${id}`,
|
|
2956
|
-
method: "GET",
|
|
2957
|
-
secure: true,
|
|
2958
|
-
format: "json"
|
|
2959
|
-
}, params));
|
|
2960
|
-
/**
|
|
2961
|
-
* @description Delete a service user permanently and all of its relations (keys, organizations, roles, etc)
|
|
2962
|
-
*
|
|
2963
|
-
* @tags ServiceUser
|
|
2964
|
-
* @name FrontierServiceDeleteServiceUser
|
|
2965
|
-
* @summary Delete service user
|
|
2966
|
-
* @request DELETE:/v1beta1/serviceusers/{id}
|
|
2967
|
-
* @secure
|
|
2968
|
-
*/
|
|
2969
|
-
this.frontierServiceDeleteServiceUser = (id, query, params = {}) => this.request(__spreadValues({
|
|
2970
|
-
path: `/v1beta1/serviceusers/${id}`,
|
|
2971
|
-
method: "DELETE",
|
|
2972
|
-
query,
|
|
2973
|
-
secure: true,
|
|
2974
|
-
format: "json"
|
|
2975
|
-
}, params));
|
|
2976
|
-
/**
|
|
2977
|
-
* @description List all the keys of a service user with its details except jwk.
|
|
2978
|
-
*
|
|
2979
|
-
* @tags ServiceUser
|
|
2980
|
-
* @name FrontierServiceListServiceUserJwKs
|
|
2981
|
-
* @summary List service user keys
|
|
2982
|
-
* @request GET:/v1beta1/serviceusers/{id}/keys
|
|
2983
|
-
* @secure
|
|
2984
|
-
*/
|
|
2985
|
-
this.frontierServiceListServiceUserJwKs = (id, params = {}) => this.request(__spreadValues({
|
|
2986
|
-
path: `/v1beta1/serviceusers/${id}/keys`,
|
|
2987
|
-
method: "GET",
|
|
2988
|
-
secure: true,
|
|
2989
|
-
format: "json"
|
|
2990
|
-
}, params));
|
|
2991
|
-
/**
|
|
2992
|
-
* @description Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client.
|
|
2993
|
-
*
|
|
2994
|
-
* @tags ServiceUser
|
|
2995
|
-
* @name FrontierServiceCreateServiceUserJwk
|
|
2996
|
-
* @summary Create service user public/private key pair
|
|
2997
|
-
* @request POST:/v1beta1/serviceusers/{id}/keys
|
|
2998
|
-
* @secure
|
|
2999
|
-
*/
|
|
3000
|
-
this.frontierServiceCreateServiceUserJwk = (id, body, params = {}) => this.request(__spreadValues({
|
|
3001
|
-
path: `/v1beta1/serviceusers/${id}/keys`,
|
|
3002
|
-
method: "POST",
|
|
3003
|
-
body,
|
|
3004
|
-
secure: true,
|
|
3005
|
-
format: "json"
|
|
3006
|
-
}, params));
|
|
3007
|
-
/**
|
|
3008
|
-
* @description Get a service user public RSA JWK set.
|
|
3009
|
-
*
|
|
3010
|
-
* @tags ServiceUser
|
|
3011
|
-
* @name FrontierServiceGetServiceUserJwk
|
|
3012
|
-
* @summary Get service user key
|
|
3013
|
-
* @request GET:/v1beta1/serviceusers/{id}/keys/{key_id}
|
|
3014
|
-
* @secure
|
|
3015
|
-
*/
|
|
3016
|
-
this.frontierServiceGetServiceUserJwk = (id, keyId, params = {}) => this.request(__spreadValues({
|
|
3017
|
-
path: `/v1beta1/serviceusers/${id}/keys/${keyId}`,
|
|
3018
|
-
method: "GET",
|
|
3019
|
-
secure: true,
|
|
3020
|
-
format: "json"
|
|
3021
|
-
}, params));
|
|
3022
|
-
/**
|
|
3023
|
-
* @description Delete a service user key permanently.
|
|
3024
|
-
*
|
|
3025
|
-
* @tags ServiceUser
|
|
3026
|
-
* @name FrontierServiceDeleteServiceUserJwk
|
|
3027
|
-
* @summary Delete service user key
|
|
3028
|
-
* @request DELETE:/v1beta1/serviceusers/{id}/keys/{key_id}
|
|
3029
|
-
* @secure
|
|
3030
|
-
*/
|
|
3031
|
-
this.frontierServiceDeleteServiceUserJwk = (id, keyId, params = {}) => this.request(__spreadValues({
|
|
3032
|
-
path: `/v1beta1/serviceusers/${id}/keys/${keyId}`,
|
|
3033
|
-
method: "DELETE",
|
|
3034
|
-
secure: true,
|
|
3035
|
-
format: "json"
|
|
3036
|
-
}, params));
|
|
3037
|
-
/**
|
|
3038
|
-
* @description List all the credentials of a service user.
|
|
3039
|
-
*
|
|
3040
|
-
* @tags ServiceUser
|
|
3041
|
-
* @name FrontierServiceListServiceUserCredentials
|
|
3042
|
-
* @summary List service user credentials
|
|
3043
|
-
* @request GET:/v1beta1/serviceusers/{id}/secrets
|
|
3044
|
-
* @secure
|
|
3045
|
-
*/
|
|
3046
|
-
this.frontierServiceListServiceUserCredentials = (id, params = {}) => this.request(__spreadValues({
|
|
3047
|
-
path: `/v1beta1/serviceusers/${id}/secrets`,
|
|
3048
|
-
method: "GET",
|
|
3049
|
-
secure: true,
|
|
3050
|
-
format: "json"
|
|
3051
|
-
}, params));
|
|
3052
|
-
/**
|
|
3053
|
-
* @description Generate a service user credential and return it. The credential value will not be persisted and should be securely stored by client.
|
|
3054
|
-
*
|
|
3055
|
-
* @tags ServiceUser
|
|
3056
|
-
* @name FrontierServiceCreateServiceUserCredential
|
|
3057
|
-
* @summary Create service user client credentials
|
|
3058
|
-
* @request POST:/v1beta1/serviceusers/{id}/secrets
|
|
3059
|
-
* @secure
|
|
3060
|
-
*/
|
|
3061
|
-
this.frontierServiceCreateServiceUserCredential = (id, body, params = {}) => this.request(__spreadValues({
|
|
3062
|
-
path: `/v1beta1/serviceusers/${id}/secrets`,
|
|
3063
|
-
method: "POST",
|
|
3064
|
-
body,
|
|
3065
|
-
secure: true,
|
|
3066
|
-
format: "json"
|
|
3067
|
-
}, params));
|
|
3068
|
-
/**
|
|
3069
|
-
* @description Delete a service user credential.
|
|
3070
|
-
*
|
|
3071
|
-
* @tags ServiceUser
|
|
3072
|
-
* @name FrontierServiceDeleteServiceUserCredential
|
|
3073
|
-
* @summary Delete service user credentials
|
|
3074
|
-
* @request DELETE:/v1beta1/serviceusers/{id}/secrets/{secret_id}
|
|
3075
|
-
* @secure
|
|
3076
|
-
*/
|
|
3077
|
-
this.frontierServiceDeleteServiceUserCredential = (id, secretId, params = {}) => this.request(__spreadValues({
|
|
3078
|
-
path: `/v1beta1/serviceusers/${id}/secrets/${secretId}`,
|
|
3079
|
-
method: "DELETE",
|
|
3080
|
-
secure: true,
|
|
3081
|
-
format: "json"
|
|
3082
|
-
}, params));
|
|
3083
|
-
/**
|
|
3084
|
-
* @description List all the tokens of a service user.
|
|
3085
|
-
*
|
|
3086
|
-
* @tags ServiceUser
|
|
3087
|
-
* @name FrontierServiceListServiceUserTokens
|
|
3088
|
-
* @summary List service user tokens
|
|
3089
|
-
* @request GET:/v1beta1/serviceusers/{id}/tokens
|
|
3090
|
-
* @secure
|
|
3091
|
-
*/
|
|
3092
|
-
this.frontierServiceListServiceUserTokens = (id, params = {}) => this.request(__spreadValues({
|
|
3093
|
-
path: `/v1beta1/serviceusers/${id}/tokens`,
|
|
3094
|
-
method: "GET",
|
|
3095
|
-
secure: true,
|
|
3096
|
-
format: "json"
|
|
3097
|
-
}, params));
|
|
3098
|
-
/**
|
|
3099
|
-
* @description Generate a service user token and return it. The token value will not be persisted and should be securely stored by client.
|
|
3100
|
-
*
|
|
3101
|
-
* @tags ServiceUser
|
|
3102
|
-
* @name FrontierServiceCreateServiceUserToken
|
|
3103
|
-
* @summary Create service user token
|
|
3104
|
-
* @request POST:/v1beta1/serviceusers/{id}/tokens
|
|
3105
|
-
* @secure
|
|
3106
|
-
*/
|
|
3107
|
-
this.frontierServiceCreateServiceUserToken = (id, body, params = {}) => this.request(__spreadValues({
|
|
3108
|
-
path: `/v1beta1/serviceusers/${id}/tokens`,
|
|
3109
|
-
method: "POST",
|
|
3110
|
-
body,
|
|
3111
|
-
secure: true,
|
|
3112
|
-
format: "json"
|
|
3113
|
-
}, params));
|
|
3114
|
-
/**
|
|
3115
|
-
* @description Delete a service user token.
|
|
3116
|
-
*
|
|
3117
|
-
* @tags ServiceUser
|
|
3118
|
-
* @name FrontierServiceDeleteServiceUserToken
|
|
3119
|
-
* @summary Delete service user token
|
|
3120
|
-
* @request DELETE:/v1beta1/serviceusers/{id}/tokens/{token_id}
|
|
3121
|
-
* @secure
|
|
3122
|
-
*/
|
|
3123
|
-
this.frontierServiceDeleteServiceUserToken = (id, tokenId, params = {}) => this.request(__spreadValues({
|
|
3124
|
-
path: `/v1beta1/serviceusers/${id}/tokens/${tokenId}`,
|
|
3125
|
-
method: "DELETE",
|
|
3126
|
-
secure: true,
|
|
3127
|
-
format: "json"
|
|
3128
|
-
}, params));
|
|
3129
3145
|
/**
|
|
3130
3146
|
* @description Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination.
|
|
3131
3147
|
*
|
|
@@ -3274,9 +3290,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
3274
3290
|
* @request GET:/v1beta1/users/{id}/organizations
|
|
3275
3291
|
* @secure
|
|
3276
3292
|
*/
|
|
3277
|
-
this.frontierServiceListOrganizationsByUser = (id, params = {}) => this.request(__spreadValues({
|
|
3293
|
+
this.frontierServiceListOrganizationsByUser = (id, query, params = {}) => this.request(__spreadValues({
|
|
3278
3294
|
path: `/v1beta1/users/${id}/organizations`,
|
|
3279
3295
|
method: "GET",
|
|
3296
|
+
query,
|
|
3280
3297
|
secure: true,
|
|
3281
3298
|
format: "json"
|
|
3282
3299
|
}, params));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/frontier",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "A js library for frontier",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@jest/globals": "^29.7.0",
|
|
63
63
|
"@radix-ui/react-icons": "^1.3.0",
|
|
64
|
-
"@raystack/apsara": "^0.
|
|
64
|
+
"@raystack/apsara": "^0.25.0",
|
|
65
65
|
"@raystack/eslint-config": "workspace:^",
|
|
66
66
|
"@raystack/frontier-tsconfig": "workspace:^",
|
|
67
67
|
"@size-limit/preset-small-lib": "^8.2.6",
|