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