@openfort/openfort-node 0.6.44 → 0.6.45
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/apis/iamApiWrapper.d.ts +47 -4
- package/dist/apis/iamApiWrapper.js +60 -3
- package/dist/apis/iamApiWrapper.js.map +1 -1
- package/dist/generated/apis/AccountsApi.d.ts +2 -2
- package/dist/generated/apis/AccountsApi.js +2 -2
- package/dist/generated/apis/{OAuthApi.d.ts → AdminAuthenticationApi.d.ts} +59 -26
- package/dist/generated/apis/{OAuthApi.js → AdminAuthenticationApi.js} +189 -87
- package/dist/generated/apis/AdminAuthenticationApi.js.map +1 -0
- package/dist/generated/apis/AuthenticationApi.d.ts +194 -16
- package/dist/generated/apis/AuthenticationApi.js +716 -43
- package/dist/generated/apis/AuthenticationApi.js.map +1 -1
- package/dist/generated/apis/EmbeddedApi.d.ts +78 -0
- package/dist/generated/apis/{PlayersAuthenticationApi.js → EmbeddedApi.js} +136 -60
- package/dist/generated/apis/EmbeddedApi.js.map +1 -0
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.js +2 -4
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/AuthPlayerResponse.d.ts +2 -6
- package/dist/generated/models/AuthPlayerResponse.js +3 -27
- package/dist/generated/models/AuthPlayerResponse.js.map +1 -1
- package/dist/generated/models/AuthProvider.d.ts +15 -0
- package/dist/generated/models/AuthProvider.js +14 -0
- package/dist/generated/models/AuthProvider.js.map +1 -0
- package/dist/generated/models/AuthResponse.d.ts +6 -4
- package/dist/generated/models/AuthResponse.js +9 -3
- package/dist/generated/models/AuthResponse.js.map +1 -1
- package/dist/generated/models/AuthSessionResponse.d.ts +34 -0
- package/dist/generated/models/{RetrievePlayerEncryptedKeyResponse.js → AuthSessionResponse.js} +29 -23
- package/dist/generated/models/AuthSessionResponse.js.map +1 -0
- package/dist/generated/models/AuthenticateOAuthRequest.d.ts +33 -0
- package/dist/generated/models/AuthenticateOAuthRequest.js +38 -0
- package/dist/generated/models/AuthenticateOAuthRequest.js.map +1 -0
- package/dist/generated/models/BaseEntityListResponseDeviceResponse.d.ts +35 -0
- package/dist/generated/models/BaseEntityListResponseDeviceResponse.js +62 -0
- package/dist/generated/models/BaseEntityListResponseDeviceResponse.js.map +1 -0
- package/dist/generated/models/BaseEntityListResponseShareResponse.d.ts +35 -0
- package/dist/generated/models/BaseEntityListResponseShareResponse.js +62 -0
- package/dist/generated/models/BaseEntityListResponseShareResponse.js.map +1 -0
- package/dist/generated/models/{RegisterPlayerEncryptedKeyResponse.d.ts → CheckoutSubscriptionRequest.d.ts} +4 -5
- package/dist/generated/models/{RegisterPlayerEncryptedKeyRequest.js → CheckoutSubscriptionRequest.js} +13 -13
- package/dist/generated/models/CheckoutSubscriptionRequest.js.map +1 -0
- package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
- package/dist/generated/models/CreateDeviceRequest.d.ts +31 -0
- package/dist/generated/models/{AuthenticatedPlayerResponse.js → CreateDeviceRequest.js} +9 -9
- package/dist/generated/models/CreateDeviceRequest.js.map +1 -0
- package/dist/generated/models/{RegisterPlayerEncryptedKeyRequest.d.ts → CreateShareRequest.d.ts} +7 -9
- package/dist/generated/models/CreateShareRequest.js +44 -0
- package/dist/generated/models/CreateShareRequest.js.map +1 -0
- package/dist/generated/models/{AuthorizeWithOAuthToken200Response.d.ts → DeprecatedAuthenticatedPlayerResponse.d.ts} +2 -2
- package/dist/generated/models/{AuthorizeWithOAuthToken200Response.js → DeprecatedAuthenticatedPlayerResponse.js} +7 -7
- package/dist/generated/models/DeprecatedAuthenticatedPlayerResponse.js.map +1 -0
- package/dist/generated/models/DeviceListQueries.d.ts +41 -0
- package/dist/generated/models/DeviceListQueries.js +50 -0
- package/dist/generated/models/DeviceListQueries.js.map +1 -0
- package/dist/generated/models/{RetrievePlayerEncryptedKeyResponse.d.ts → DeviceResponse.d.ts} +5 -6
- package/dist/generated/models/{RegisterPlayerEncryptedKeyResponse.js → DeviceResponse.js} +17 -17
- package/dist/generated/models/DeviceResponse.js.map +1 -0
- package/dist/generated/models/EntityTypeDEVICE.d.ts +12 -0
- package/dist/generated/models/EntityTypeDEVICE.js +14 -0
- package/dist/generated/models/EntityTypeDEVICE.js.map +1 -0
- package/dist/generated/models/EntityTypeSHARE.d.ts +12 -0
- package/dist/generated/models/EntityTypeSHARE.js +14 -0
- package/dist/generated/models/EntityTypeSHARE.js.map +1 -0
- package/dist/generated/models/JwtKey.d.ts +34 -0
- package/dist/generated/models/JwtKey.js +68 -0
- package/dist/generated/models/JwtKey.js.map +1 -0
- package/dist/generated/models/JwtKeyResponse.d.ts +29 -0
- package/dist/generated/models/JwtKeyResponse.js +32 -0
- package/dist/generated/models/JwtKeyResponse.js.map +1 -0
- package/dist/generated/models/LinkRequest.d.ts +36 -0
- package/dist/generated/models/LinkRequest.js +41 -0
- package/dist/generated/models/LinkRequest.js.map +1 -0
- package/dist/generated/models/LinkedAccountResponse.d.ts +36 -0
- package/dist/generated/models/LinkedAccountResponse.js +68 -0
- package/dist/generated/models/LinkedAccountResponse.js.map +1 -0
- package/dist/generated/models/{AuthenticatedPlayerResponse.d.ts → LogoutRequest.d.ts} +3 -3
- package/dist/generated/models/LogoutRequest.js +32 -0
- package/dist/generated/models/LogoutRequest.js.map +1 -0
- package/dist/generated/models/OAuthInitRequest.d.ts +33 -0
- package/dist/generated/models/OAuthInitRequest.js +38 -0
- package/dist/generated/models/OAuthInitRequest.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +29 -5
- package/dist/generated/models/ObjectSerializer.js +84 -15
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/Plan.d.ts +33 -0
- package/dist/generated/models/Plan.js +56 -0
- package/dist/generated/models/Plan.js.map +1 -0
- package/dist/generated/models/PlansResponse.d.ts +29 -0
- package/dist/generated/models/PlansResponse.js +32 -0
- package/dist/generated/models/PlansResponse.js.map +1 -0
- package/dist/generated/models/RefreshTokenRequest.d.ts +31 -0
- package/dist/generated/models/RefreshTokenRequest.js +32 -0
- package/dist/generated/models/RefreshTokenRequest.js.map +1 -0
- package/dist/generated/models/SIWEAuthenticateRequest.d.ts +43 -0
- package/dist/generated/models/SIWEAuthenticateRequest.js +50 -0
- package/dist/generated/models/SIWEAuthenticateRequest.js.map +1 -0
- package/dist/generated/models/SIWEInitResponse.d.ts +33 -0
- package/dist/generated/models/SIWEInitResponse.js +44 -0
- package/dist/generated/models/SIWEInitResponse.js.map +1 -0
- package/dist/generated/models/SIWERequest.d.ts +31 -0
- package/dist/generated/models/SIWERequest.js +32 -0
- package/dist/generated/models/SIWERequest.js.map +1 -0
- package/dist/generated/models/ShareResponse.d.ts +35 -0
- package/dist/generated/models/ShareResponse.js +62 -0
- package/dist/generated/models/ShareResponse.js.map +1 -0
- package/dist/generated/models/ShareType.d.ts +12 -0
- package/dist/generated/models/ShareType.js +14 -0
- package/dist/generated/models/ShareType.js.map +1 -0
- package/dist/generated/models/SubscriptionResponse.d.ts +32 -0
- package/dist/generated/models/SubscriptionResponse.js +50 -0
- package/dist/generated/models/SubscriptionResponse.js.map +1 -0
- package/dist/generated/models/SubscriptionResponsePlan.d.ts +30 -0
- package/dist/generated/models/SubscriptionResponsePlan.js +44 -0
- package/dist/generated/models/SubscriptionResponsePlan.js.map +1 -0
- package/dist/generated/models/all.d.ts +29 -5
- package/dist/generated/models/all.js +29 -5
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +439 -207
- package/dist/generated/types/ObjectParamAPI.js +233 -137
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +190 -99
- package/dist/generated/types/ObservableAPI.js +534 -264
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +188 -95
- package/dist/generated/types/PromiseAPI.js +270 -154
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/apis/oauthApiWrapper.d.ts +0 -14
- package/dist/apis/oauthApiWrapper.js +0 -38
- package/dist/apis/oauthApiWrapper.js.map +0 -1
- package/dist/generated/apis/GoogleAuthenticationApi.d.ts +0 -37
- package/dist/generated/apis/GoogleAuthenticationApi.js +0 -118
- package/dist/generated/apis/GoogleAuthenticationApi.js.map +0 -1
- package/dist/generated/apis/OAuthApi.js.map +0 -1
- package/dist/generated/apis/PlayersAuthenticationApi.d.ts +0 -56
- package/dist/generated/apis/PlayersAuthenticationApi.js.map +0 -1
- package/dist/generated/models/AuthenticatedPlayerResponse.js.map +0 -1
- package/dist/generated/models/AuthorizeWithOAuthToken200Response.js.map +0 -1
- package/dist/generated/models/RegisterPlayerEncryptedKeyRequest.js.map +0 -1
- package/dist/generated/models/RegisterPlayerEncryptedKeyResponse.js.map +0 -1
- package/dist/generated/models/RetrievePlayerEncryptedKeyResponse.js.map +0 -1
|
@@ -1,10 +1,53 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminAuthenticationApi, AuthPlayerListQueries, AuthPlayerListResponse, AuthSessionResponse, AuthenticateOAuthRequest, OAuthConfig, OAuthConfigListResponse, OAuthProvider, PlayerDeleteResponse, PlayerResponse } from "../generated";
|
|
2
2
|
import { BaseApiWrapper } from "./baseApiWrapper";
|
|
3
|
-
export declare class IamApiWrapper extends BaseApiWrapper<
|
|
3
|
+
export declare class IamApiWrapper extends BaseApiWrapper<AdminAuthenticationApi> {
|
|
4
4
|
constructor(accessToken: string, basePath?: string);
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Verifies the token generated by Openfort Auth.
|
|
7
7
|
* @param token Specifies the auth token.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
verifyAuthToken(token: string): Promise<AuthSessionResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
12
|
+
* @param token Specifies the auth token.
|
|
13
|
+
*/
|
|
14
|
+
verifyOAuthToken(req: AuthenticateOAuthRequest): Promise<PlayerResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* The endpoint creates oauth configuration for the current project environment.
|
|
17
|
+
* Create oauth configuration.
|
|
18
|
+
* @param body Specifies the oauth provider specific configuration.
|
|
19
|
+
*/
|
|
20
|
+
createOAuthConfig(req: OAuthConfig): Promise<OAuthConfig>;
|
|
21
|
+
/**
|
|
22
|
+
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
|
|
23
|
+
* Deletes a player auth object.
|
|
24
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
25
|
+
*/
|
|
26
|
+
deleteAuthPlayer(id: string): Promise<PlayerDeleteResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
29
|
+
* Delete oauth configuration.
|
|
30
|
+
* @param provider Specifies the oauth provider type.
|
|
31
|
+
*/
|
|
32
|
+
deleteOAuthConfig(provider: OAuthProvider): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a list of authenticated players. Players have linked accounts and are authenticated with a provider.
|
|
35
|
+
* List authenticated players.
|
|
36
|
+
* @param limit Specifies the maximum number of records to return.
|
|
37
|
+
* @param skip Specifies the offset for the first records to return.
|
|
38
|
+
* @param order Specifies the order in which to sort the results.
|
|
39
|
+
* @param email Specifies the email address of the user.
|
|
40
|
+
*/
|
|
41
|
+
listAuthPlayers(req: AuthPlayerListQueries): Promise<AuthPlayerListResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
44
|
+
* Get oauth configuration.
|
|
45
|
+
* @param provider Specifies the oauth provider type.
|
|
46
|
+
*/
|
|
47
|
+
getOAuthConfig(provider: OAuthProvider): Promise<OAuthConfig>;
|
|
48
|
+
/**
|
|
49
|
+
* List configured OAuth methods for the current project environment.
|
|
50
|
+
* List of oauth configurations.
|
|
51
|
+
*/
|
|
52
|
+
listOAuthConfig(): Promise<OAuthConfigListResponse>;
|
|
10
53
|
}
|
|
@@ -15,15 +15,72 @@ const baseApiWrapper_1 = require("./baseApiWrapper");
|
|
|
15
15
|
const httpErrorHandler_1 = require("../utilities/httpErrorHandler");
|
|
16
16
|
let IamApiWrapper = class IamApiWrapper extends baseApiWrapper_1.BaseApiWrapper {
|
|
17
17
|
constructor(accessToken, basePath) {
|
|
18
|
-
super(generated_1.
|
|
18
|
+
super(generated_1.AdminAuthenticationApi, accessToken, basePath);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Verifies the token generated by Openfort Auth.
|
|
22
22
|
* @param token Specifies the auth token.
|
|
23
23
|
*/
|
|
24
|
-
async
|
|
24
|
+
async verifyAuthToken(token) {
|
|
25
25
|
return await this.api.verifyAuthToken(token);
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
29
|
+
* @param token Specifies the auth token.
|
|
30
|
+
*/
|
|
31
|
+
async verifyOAuthToken(req) {
|
|
32
|
+
return await this.api.verifyOAuthToken(req.provider, req);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The endpoint creates oauth configuration for the current project environment.
|
|
36
|
+
* Create oauth configuration.
|
|
37
|
+
* @param body Specifies the oauth provider specific configuration.
|
|
38
|
+
*/
|
|
39
|
+
async createOAuthConfig(req) {
|
|
40
|
+
return await this.api.createOAuthConfig(req);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
|
|
44
|
+
* Deletes a player auth object.
|
|
45
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
46
|
+
*/
|
|
47
|
+
async deleteAuthPlayer(id) {
|
|
48
|
+
return await this.api.deleteAuthPlayer(id);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
52
|
+
* Delete oauth configuration.
|
|
53
|
+
* @param provider Specifies the oauth provider type.
|
|
54
|
+
*/
|
|
55
|
+
async deleteOAuthConfig(provider) {
|
|
56
|
+
return await this.api.deleteOAuthConfig(provider);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves a list of authenticated players. Players have linked accounts and are authenticated with a provider.
|
|
60
|
+
* List authenticated players.
|
|
61
|
+
* @param limit Specifies the maximum number of records to return.
|
|
62
|
+
* @param skip Specifies the offset for the first records to return.
|
|
63
|
+
* @param order Specifies the order in which to sort the results.
|
|
64
|
+
* @param email Specifies the email address of the user.
|
|
65
|
+
*/
|
|
66
|
+
async listAuthPlayers(req) {
|
|
67
|
+
return await this.api.getAuthPlayers(req.limit, req.skip, req.order, req.email);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
71
|
+
* Get oauth configuration.
|
|
72
|
+
* @param provider Specifies the oauth provider type.
|
|
73
|
+
*/
|
|
74
|
+
async getOAuthConfig(provider) {
|
|
75
|
+
return await this.api.getOAuthConfig(provider);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* List configured OAuth methods for the current project environment.
|
|
79
|
+
* List of oauth configurations.
|
|
80
|
+
*/
|
|
81
|
+
async listOAuthConfig() {
|
|
82
|
+
return await this.api.listOAuthConfig();
|
|
83
|
+
}
|
|
27
84
|
};
|
|
28
85
|
IamApiWrapper = __decorate([
|
|
29
86
|
httpErrorHandler_1.httpErrorHandler,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iamApiWrapper.js","sourceRoot":"","sources":["../../src/apis/iamApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"iamApiWrapper.js","sourceRoot":"","sources":["../../src/apis/iamApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAWsB;AACtB,qDAAkD;AAClD,oEAAiE;AAG1D,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+BAAsC;IACrE,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,kCAAsB,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,eAAe,CAAC,KAAa;QACtC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB,CAAC,GAA6B;QACvD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,iBAAiB,CAAC,GAAgB;QAC3C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,gBAAgB,CAAC,EAAU;QACpC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,iBAAiB,CAAC,QAAuB;QAClD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACtD,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,eAAe,CAAC,GAA0B;QACnD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACpF,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,cAAc,CAAC,QAAuB;QAC/C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,eAAe;QACxB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC;IAC5C,CAAC;CACJ,CAAA;AA5EY,aAAa;IADzB,mCAAgB;;GACJ,aAAa,CA4EzB;AA5EY,sCAAa"}
|
|
@@ -38,7 +38,7 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
38
38
|
*/
|
|
39
39
|
createAccount(createAccountRequest: CreateAccountRequest, _options?: Configuration): Promise<RequestContext>;
|
|
40
40
|
/**
|
|
41
|
-
* This endpoint can be used to deploy
|
|
41
|
+
* This endpoint can be used to deploy a smart contract account that was counterfactually generated.
|
|
42
42
|
* Deploy an account.
|
|
43
43
|
* @param id Specifies the unique account ID (starts with acc_).
|
|
44
44
|
* @param deployRequest
|
|
@@ -52,7 +52,7 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
52
52
|
*/
|
|
53
53
|
getAccount(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
|
|
54
54
|
/**
|
|
55
|
-
* Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 accounts are shown per page.
|
|
55
|
+
* Returns a list of accounts for the given player. This object represents a player\'s account, which is a blockchain smart account that can be used to interact with the blockchain. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 accounts are shown per page.
|
|
56
56
|
* List accounts of a player.
|
|
57
57
|
* @param player Specifies the unique player ID (starts with pla_)
|
|
58
58
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -128,7 +128,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
128
128
|
return requestContext;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
* This endpoint can be used to deploy
|
|
131
|
+
* This endpoint can be used to deploy a smart contract account that was counterfactually generated.
|
|
132
132
|
* Deploy an account.
|
|
133
133
|
* @param id Specifies the unique account ID (starts with acc_).
|
|
134
134
|
* @param deployRequest
|
|
@@ -203,7 +203,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
203
203
|
return requestContext;
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
|
-
* Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 accounts are shown per page.
|
|
206
|
+
* Returns a list of accounts for the given player. This object represents a player\'s account, which is a blockchain smart account that can be used to interact with the blockchain. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 accounts are shown per page.
|
|
207
207
|
* List accounts of a player.
|
|
208
208
|
* @param player Specifies the unique player ID (starts with pla_)
|
|
209
209
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -1,35 +1,47 @@
|
|
|
1
1
|
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
2
|
import { Configuration } from '../configuration';
|
|
3
3
|
import { RequestContext, ResponseContext } from '../http/http';
|
|
4
|
-
import {
|
|
4
|
+
import { AuthPlayerListResponse } from '../models/AuthPlayerListResponse';
|
|
5
|
+
import { AuthSessionResponse } from '../models/AuthSessionResponse';
|
|
6
|
+
import { AuthenticateOAuthRequest } from '../models/AuthenticateOAuthRequest';
|
|
5
7
|
import { OAuthConfig } from '../models/OAuthConfig';
|
|
6
8
|
import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
|
|
7
9
|
import { OAuthProvider } from '../models/OAuthProvider';
|
|
8
10
|
import { OAuthRequest } from '../models/OAuthRequest';
|
|
11
|
+
import { PlayerDeleteResponse } from '../models/PlayerDeleteResponse';
|
|
9
12
|
import { PlayerResponse } from '../models/PlayerResponse';
|
|
13
|
+
import { SortOrder } from '../models/SortOrder';
|
|
10
14
|
/**
|
|
11
15
|
* no description
|
|
12
16
|
*/
|
|
13
|
-
export declare class
|
|
14
|
-
/**
|
|
15
|
-
* The endpoint verifies the token generated by OAuth provider, creates or retrieves a player based on his email, and returns the jwt token for the player together with the player id.
|
|
16
|
-
* Authorize player with token.
|
|
17
|
-
* @param provider OAuth provider
|
|
18
|
-
* @param oAuthRequest
|
|
19
|
-
*/
|
|
20
|
-
authorizeWithOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<RequestContext>;
|
|
17
|
+
export declare class AdminAuthenticationApiRequestFactory extends BaseAPIRequestFactory {
|
|
21
18
|
/**
|
|
22
19
|
* The endpoint creates oauth configuration for the current project environment.
|
|
23
20
|
* Create oauth configuration.
|
|
24
21
|
* @param body Specifies the oauth provider specific configuration.
|
|
25
22
|
*/
|
|
26
23
|
createOAuthConfig(body: OAuthConfig, _options?: Configuration): Promise<RequestContext>;
|
|
24
|
+
/**
|
|
25
|
+
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
|
|
26
|
+
* Deletes a player auth object.
|
|
27
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
28
|
+
*/
|
|
29
|
+
deleteAuthPlayer(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
27
30
|
/**
|
|
28
31
|
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
29
32
|
* Delete oauth configuration.
|
|
30
33
|
* @param provider Specifies the oauth provider type.
|
|
31
34
|
*/
|
|
32
35
|
deleteOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<RequestContext>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a list of authenticated players. Players have linked accounts and are authenticated with a provider.
|
|
38
|
+
* List authenticated players.
|
|
39
|
+
* @param limit Specifies the maximum number of records to return.
|
|
40
|
+
* @param skip Specifies the offset for the first records to return.
|
|
41
|
+
* @param order Specifies the order in which to sort the results.
|
|
42
|
+
* @param email Specifies the email address of the user.
|
|
43
|
+
*/
|
|
44
|
+
getAuthPlayers(limit?: number, skip?: number, order?: SortOrder, email?: string, _options?: Configuration): Promise<RequestContext>;
|
|
33
45
|
/**
|
|
34
46
|
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
35
47
|
* Get oauth configuration.
|
|
@@ -37,17 +49,22 @@ export declare class OAuthApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
37
49
|
*/
|
|
38
50
|
getOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<RequestContext>;
|
|
39
51
|
/**
|
|
40
|
-
*
|
|
41
|
-
* Retrieve player by external id.
|
|
42
|
-
* @param provider OAuth provider
|
|
43
|
-
* @param externalUserId External user id
|
|
44
|
-
*/
|
|
45
|
-
getPlayerByExternalId(provider: OAuthProvider, externalUserId: string, _options?: Configuration): Promise<RequestContext>;
|
|
46
|
-
/**
|
|
47
|
-
* The endpoint retrieves the list of oauth configurations for the current project environment.
|
|
52
|
+
* List configured OAuth methods for the current project environment.
|
|
48
53
|
* List of oauth configurations.
|
|
49
54
|
*/
|
|
50
55
|
listOAuthConfig(_options?: Configuration): Promise<RequestContext>;
|
|
56
|
+
/**
|
|
57
|
+
* Verifies the token generated by Openfort Auth.
|
|
58
|
+
* Verify auth token.
|
|
59
|
+
* @param token Specifies the auth token.
|
|
60
|
+
*/
|
|
61
|
+
verifyAuthToken(token: string, _options?: Configuration): Promise<RequestContext>;
|
|
62
|
+
/**
|
|
63
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
64
|
+
* Retrieve player by oauth token.
|
|
65
|
+
* @param authenticateOAuthRequest
|
|
66
|
+
*/
|
|
67
|
+
verifyOAuth(authenticateOAuthRequest: AuthenticateOAuthRequest, _options?: Configuration): Promise<RequestContext>;
|
|
51
68
|
/**
|
|
52
69
|
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
53
70
|
* Retrieve player by token.
|
|
@@ -56,23 +73,23 @@ export declare class OAuthApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
56
73
|
*/
|
|
57
74
|
verifyOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<RequestContext>;
|
|
58
75
|
}
|
|
59
|
-
export declare class
|
|
76
|
+
export declare class AdminAuthenticationApiResponseProcessor {
|
|
60
77
|
/**
|
|
61
78
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
62
79
|
* to the expected objects
|
|
63
80
|
*
|
|
64
|
-
* @params response Response returned by the server for a request to
|
|
81
|
+
* @params response Response returned by the server for a request to createOAuthConfig
|
|
65
82
|
* @throws ApiException if the response code was not in [200, 299]
|
|
66
83
|
*/
|
|
67
|
-
|
|
84
|
+
createOAuthConfig(response: ResponseContext): Promise<OAuthConfig>;
|
|
68
85
|
/**
|
|
69
86
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
70
87
|
* to the expected objects
|
|
71
88
|
*
|
|
72
|
-
* @params response Response returned by the server for a request to
|
|
89
|
+
* @params response Response returned by the server for a request to deleteAuthPlayer
|
|
73
90
|
* @throws ApiException if the response code was not in [200, 299]
|
|
74
91
|
*/
|
|
75
|
-
|
|
92
|
+
deleteAuthPlayer(response: ResponseContext): Promise<PlayerDeleteResponse>;
|
|
76
93
|
/**
|
|
77
94
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
78
95
|
* to the expected objects
|
|
@@ -85,18 +102,18 @@ export declare class OAuthApiResponseProcessor {
|
|
|
85
102
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
86
103
|
* to the expected objects
|
|
87
104
|
*
|
|
88
|
-
* @params response Response returned by the server for a request to
|
|
105
|
+
* @params response Response returned by the server for a request to getAuthPlayers
|
|
89
106
|
* @throws ApiException if the response code was not in [200, 299]
|
|
90
107
|
*/
|
|
91
|
-
|
|
108
|
+
getAuthPlayers(response: ResponseContext): Promise<AuthPlayerListResponse>;
|
|
92
109
|
/**
|
|
93
110
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
94
111
|
* to the expected objects
|
|
95
112
|
*
|
|
96
|
-
* @params response Response returned by the server for a request to
|
|
113
|
+
* @params response Response returned by the server for a request to getOAuthConfig
|
|
97
114
|
* @throws ApiException if the response code was not in [200, 299]
|
|
98
115
|
*/
|
|
99
|
-
|
|
116
|
+
getOAuthConfig(response: ResponseContext): Promise<OAuthConfig>;
|
|
100
117
|
/**
|
|
101
118
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
102
119
|
* to the expected objects
|
|
@@ -105,6 +122,22 @@ export declare class OAuthApiResponseProcessor {
|
|
|
105
122
|
* @throws ApiException if the response code was not in [200, 299]
|
|
106
123
|
*/
|
|
107
124
|
listOAuthConfig(response: ResponseContext): Promise<OAuthConfigListResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
127
|
+
* to the expected objects
|
|
128
|
+
*
|
|
129
|
+
* @params response Response returned by the server for a request to verifyAuthToken
|
|
130
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
131
|
+
*/
|
|
132
|
+
verifyAuthToken(response: ResponseContext): Promise<AuthSessionResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
135
|
+
* to the expected objects
|
|
136
|
+
*
|
|
137
|
+
* @params response Response returned by the server for a request to verifyOAuth
|
|
138
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
139
|
+
*/
|
|
140
|
+
verifyOAuth(response: ResponseContext): Promise<PlayerResponse>;
|
|
108
141
|
/**
|
|
109
142
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
110
143
|
* to the expected objects
|