@raystack/frontier 0.9.2 → 0.10.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/dist/index.d.ts +96 -35
- package/dist/index.js +66 -20
- package/dist/index.mjs +66 -20
- package/package.json +1 -1
- package/react/dist/index.d.ts +91 -31
- package/react/dist/index.js +799 -504
- package/react/dist/index.mjs +746 -451
package/react/dist/index.d.ts
CHANGED
|
@@ -411,6 +411,10 @@ interface ProductBehaviorConfig {
|
|
|
411
411
|
credit_amount?: string;
|
|
412
412
|
/** @format int64 */
|
|
413
413
|
seat_limit?: string;
|
|
414
|
+
/** @format int64 */
|
|
415
|
+
min_quantity?: string;
|
|
416
|
+
/** @format int64 */
|
|
417
|
+
max_quantity?: string;
|
|
414
418
|
}
|
|
415
419
|
interface SubscriptionPhase {
|
|
416
420
|
/** @format date-time */
|
|
@@ -617,6 +621,8 @@ interface V1Beta1CheckResourcePermissionResponse {
|
|
|
617
621
|
}
|
|
618
622
|
interface V1Beta1CheckoutProductBody {
|
|
619
623
|
product?: string;
|
|
624
|
+
/** @format int64 */
|
|
625
|
+
quantity?: string;
|
|
620
626
|
}
|
|
621
627
|
interface V1Beta1CheckoutSession {
|
|
622
628
|
id?: string;
|
|
@@ -636,6 +642,7 @@ interface V1Beta1CheckoutSession {
|
|
|
636
642
|
}
|
|
637
643
|
interface V1Beta1CheckoutSetupBody {
|
|
638
644
|
payment_method?: boolean;
|
|
645
|
+
customer_portal?: boolean;
|
|
639
646
|
}
|
|
640
647
|
interface V1Beta1CheckoutSubscriptionBody {
|
|
641
648
|
plan?: string;
|
|
@@ -752,7 +759,10 @@ interface V1Beta1CreateRelationResponse {
|
|
|
752
759
|
interface V1Beta1CreateRoleResponse {
|
|
753
760
|
role?: V1Beta1Role;
|
|
754
761
|
}
|
|
755
|
-
interface
|
|
762
|
+
interface V1Beta1CreateServiceUserCredentialResponse {
|
|
763
|
+
secret?: V1Beta1SecretCredential;
|
|
764
|
+
}
|
|
765
|
+
interface V1Beta1CreateServiceUserJWKResponse {
|
|
756
766
|
key?: V1Beta1KeyCredential;
|
|
757
767
|
}
|
|
758
768
|
interface V1Beta1CreateServiceUserRequest {
|
|
@@ -763,8 +773,8 @@ interface V1Beta1CreateServiceUserRequest {
|
|
|
763
773
|
interface V1Beta1CreateServiceUserResponse {
|
|
764
774
|
serviceuser?: V1Beta1ServiceUser;
|
|
765
775
|
}
|
|
766
|
-
interface
|
|
767
|
-
|
|
776
|
+
interface V1Beta1CreateServiceUserTokenResponse {
|
|
777
|
+
token?: V1Beta1ServiceUserToken;
|
|
768
778
|
}
|
|
769
779
|
interface V1Beta1CreateUserPreferencesResponse {
|
|
770
780
|
preferences?: V1Beta1Preference[];
|
|
@@ -910,7 +920,7 @@ interface V1Beta1GetProjectResponse {
|
|
|
910
920
|
interface V1Beta1GetRelationResponse {
|
|
911
921
|
relation?: V1Beta1Relation;
|
|
912
922
|
}
|
|
913
|
-
interface
|
|
923
|
+
interface V1Beta1GetServiceUserJWKResponse {
|
|
914
924
|
keys?: V1Beta1JSONWebKey[];
|
|
915
925
|
}
|
|
916
926
|
interface V1Beta1GetServiceUserResponse {
|
|
@@ -1258,13 +1268,16 @@ interface V1Beta1ListResourcesResponse {
|
|
|
1258
1268
|
interface V1Beta1ListRolesResponse {
|
|
1259
1269
|
roles?: V1Beta1Role[];
|
|
1260
1270
|
}
|
|
1261
|
-
interface
|
|
1262
|
-
keys?: V1Beta1ServiceUserKey[];
|
|
1263
|
-
}
|
|
1264
|
-
interface V1Beta1ListServiceUserSecretsResponse {
|
|
1271
|
+
interface V1Beta1ListServiceUserCredentialsResponse {
|
|
1265
1272
|
/** secrets will be listed without the secret value */
|
|
1266
1273
|
secrets?: V1Beta1SecretCredential[];
|
|
1267
1274
|
}
|
|
1275
|
+
interface V1Beta1ListServiceUserJWKsResponse {
|
|
1276
|
+
keys?: V1Beta1ServiceUserJWK[];
|
|
1277
|
+
}
|
|
1278
|
+
interface V1Beta1ListServiceUserTokensResponse {
|
|
1279
|
+
tokens?: V1Beta1ServiceUserToken[];
|
|
1280
|
+
}
|
|
1268
1281
|
interface V1Beta1ListServiceUsersResponse {
|
|
1269
1282
|
serviceusers?: V1Beta1ServiceUser[];
|
|
1270
1283
|
}
|
|
@@ -1782,7 +1795,7 @@ interface V1Beta1ServiceUser {
|
|
|
1782
1795
|
state?: string;
|
|
1783
1796
|
org_id?: string;
|
|
1784
1797
|
}
|
|
1785
|
-
interface
|
|
1798
|
+
interface V1Beta1ServiceUserJWK {
|
|
1786
1799
|
id?: string;
|
|
1787
1800
|
title?: string;
|
|
1788
1801
|
principal_id?: string;
|
|
@@ -1802,6 +1815,21 @@ interface V1Beta1ServiceUserRequestBody {
|
|
|
1802
1815
|
title?: string;
|
|
1803
1816
|
metadata?: object;
|
|
1804
1817
|
}
|
|
1818
|
+
interface V1Beta1ServiceUserToken {
|
|
1819
|
+
id?: string;
|
|
1820
|
+
title?: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* token will only be returned once as part of the create process
|
|
1823
|
+
* this value is never persisted in the system so if lost, can't be recovered
|
|
1824
|
+
*/
|
|
1825
|
+
token?: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* The time when the token was created.
|
|
1828
|
+
* @format date-time
|
|
1829
|
+
* @example "2023-06-07T05:39:56.961Z"
|
|
1830
|
+
*/
|
|
1831
|
+
created_at?: string;
|
|
1832
|
+
}
|
|
1805
1833
|
interface V1Beta1Subscription {
|
|
1806
1834
|
id?: string;
|
|
1807
1835
|
customer_id?: string;
|
|
@@ -3824,76 +3852,108 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3824
3852
|
* @description List all the keys of a service user with its details except jwk.
|
|
3825
3853
|
*
|
|
3826
3854
|
* @tags ServiceUser
|
|
3827
|
-
* @name
|
|
3855
|
+
* @name FrontierServiceListServiceUserJwKs
|
|
3828
3856
|
* @summary List service user keys
|
|
3829
3857
|
* @request GET:/v1beta1/serviceusers/{id}/keys
|
|
3830
3858
|
* @secure
|
|
3831
3859
|
*/
|
|
3832
|
-
|
|
3860
|
+
frontierServiceListServiceUserJwKs: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserJWKsResponse, RpcStatus>>;
|
|
3833
3861
|
/**
|
|
3834
3862
|
* @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.
|
|
3835
3863
|
*
|
|
3836
3864
|
* @tags ServiceUser
|
|
3837
|
-
* @name
|
|
3865
|
+
* @name FrontierServiceCreateServiceUserJwk
|
|
3838
3866
|
* @summary Create service user public/private key pair
|
|
3839
3867
|
* @request POST:/v1beta1/serviceusers/{id}/keys
|
|
3840
3868
|
* @secure
|
|
3841
3869
|
*/
|
|
3842
|
-
|
|
3870
|
+
frontierServiceCreateServiceUserJwk: (id: string, body: {
|
|
3843
3871
|
title?: string;
|
|
3844
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
3872
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserJWKResponse, RpcStatus>>;
|
|
3845
3873
|
/**
|
|
3846
3874
|
* @description Get a service user public RSA JWK set.
|
|
3847
3875
|
*
|
|
3848
3876
|
* @tags ServiceUser
|
|
3849
|
-
* @name
|
|
3877
|
+
* @name FrontierServiceGetServiceUserJwk
|
|
3850
3878
|
* @summary Get service user key
|
|
3851
3879
|
* @request GET:/v1beta1/serviceusers/{id}/keys/{key_id}
|
|
3852
3880
|
* @secure
|
|
3853
3881
|
*/
|
|
3854
|
-
|
|
3882
|
+
frontierServiceGetServiceUserJwk: (id: string, keyId: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1GetServiceUserJWKResponse, RpcStatus>>;
|
|
3855
3883
|
/**
|
|
3856
3884
|
* @description Delete a service user key permanently.
|
|
3857
3885
|
*
|
|
3858
3886
|
* @tags ServiceUser
|
|
3859
|
-
* @name
|
|
3887
|
+
* @name FrontierServiceDeleteServiceUserJwk
|
|
3860
3888
|
* @summary Delete service user key
|
|
3861
3889
|
* @request DELETE:/v1beta1/serviceusers/{id}/keys/{key_id}
|
|
3862
3890
|
* @secure
|
|
3863
3891
|
*/
|
|
3864
|
-
|
|
3892
|
+
frontierServiceDeleteServiceUserJwk: (id: string, keyId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3865
3893
|
/**
|
|
3866
|
-
* @description List all the
|
|
3894
|
+
* @description List all the credentials of a service user.
|
|
3867
3895
|
*
|
|
3868
3896
|
* @tags ServiceUser
|
|
3869
|
-
* @name
|
|
3870
|
-
* @summary List service user
|
|
3897
|
+
* @name FrontierServiceListServiceUserCredentials
|
|
3898
|
+
* @summary List service user credentials
|
|
3871
3899
|
* @request GET:/v1beta1/serviceusers/{id}/secrets
|
|
3872
3900
|
* @secure
|
|
3873
3901
|
*/
|
|
3874
|
-
|
|
3902
|
+
frontierServiceListServiceUserCredentials: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserCredentialsResponse, RpcStatus>>;
|
|
3875
3903
|
/**
|
|
3876
|
-
* @description Generate a service user
|
|
3904
|
+
* @description Generate a service user credential and return it. The credential value will not be persisted and should be securely stored by client.
|
|
3877
3905
|
*
|
|
3878
3906
|
* @tags ServiceUser
|
|
3879
|
-
* @name
|
|
3880
|
-
* @summary Create service user client
|
|
3907
|
+
* @name FrontierServiceCreateServiceUserCredential
|
|
3908
|
+
* @summary Create service user client credentials
|
|
3881
3909
|
* @request POST:/v1beta1/serviceusers/{id}/secrets
|
|
3882
3910
|
* @secure
|
|
3883
3911
|
*/
|
|
3884
|
-
|
|
3912
|
+
frontierServiceCreateServiceUserCredential: (id: string, body: {
|
|
3885
3913
|
title?: string;
|
|
3886
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
3914
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserCredentialResponse, RpcStatus>>;
|
|
3887
3915
|
/**
|
|
3888
|
-
* @description Delete a service user
|
|
3916
|
+
* @description Delete a service user credential.
|
|
3889
3917
|
*
|
|
3890
3918
|
* @tags ServiceUser
|
|
3891
|
-
* @name
|
|
3892
|
-
* @summary Delete service user
|
|
3919
|
+
* @name FrontierServiceDeleteServiceUserCredential
|
|
3920
|
+
* @summary Delete service user credentials
|
|
3893
3921
|
* @request DELETE:/v1beta1/serviceusers/{id}/secrets/{secret_id}
|
|
3894
3922
|
* @secure
|
|
3895
3923
|
*/
|
|
3896
|
-
|
|
3924
|
+
frontierServiceDeleteServiceUserCredential: (id: string, secretId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3925
|
+
/**
|
|
3926
|
+
* @description List all the tokens of a service user.
|
|
3927
|
+
*
|
|
3928
|
+
* @tags ServiceUser
|
|
3929
|
+
* @name FrontierServiceListServiceUserTokens
|
|
3930
|
+
* @summary List service user tokens
|
|
3931
|
+
* @request GET:/v1beta1/serviceusers/{id}/tokens
|
|
3932
|
+
* @secure
|
|
3933
|
+
*/
|
|
3934
|
+
frontierServiceListServiceUserTokens: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListServiceUserTokensResponse, RpcStatus>>;
|
|
3935
|
+
/**
|
|
3936
|
+
* @description Generate a service user token and return it. The token value will not be persisted and should be securely stored by client.
|
|
3937
|
+
*
|
|
3938
|
+
* @tags ServiceUser
|
|
3939
|
+
* @name FrontierServiceCreateServiceUserToken
|
|
3940
|
+
* @summary Create service user token
|
|
3941
|
+
* @request POST:/v1beta1/serviceusers/{id}/tokens
|
|
3942
|
+
* @secure
|
|
3943
|
+
*/
|
|
3944
|
+
frontierServiceCreateServiceUserToken: (id: string, body: {
|
|
3945
|
+
title?: string;
|
|
3946
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserTokenResponse, RpcStatus>>;
|
|
3947
|
+
/**
|
|
3948
|
+
* @description Delete a service user token.
|
|
3949
|
+
*
|
|
3950
|
+
* @tags ServiceUser
|
|
3951
|
+
* @name FrontierServiceDeleteServiceUserToken
|
|
3952
|
+
* @summary Delete service user token
|
|
3953
|
+
* @request DELETE:/v1beta1/serviceusers/{id}/tokens/{token_id}
|
|
3954
|
+
* @secure
|
|
3955
|
+
*/
|
|
3956
|
+
frontierServiceDeleteServiceUserToken: (id: string, tokenId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3897
3957
|
/**
|
|
3898
3958
|
* @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.
|
|
3899
3959
|
*
|