@openfort/openfort-node 0.6.10 → 0.6.12
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 +10 -0
- package/dist/apis/iamApiWrapper.js +33 -0
- package/dist/apis/iamApiWrapper.js.map +1 -0
- package/dist/generated/apis/AccountsApi.d.ts +1 -1
- package/dist/generated/apis/AccountsApi.js +1 -1
- package/dist/generated/apis/ContractsApi.d.ts +3 -3
- package/dist/generated/apis/ContractsApi.js +3 -3
- package/dist/generated/apis/InventoriesApi.d.ts +6 -6
- package/dist/generated/apis/InventoriesApi.js +6 -6
- package/dist/generated/apis/OAuthApi.d.ts +102 -0
- package/dist/generated/apis/OAuthApi.js +358 -0
- package/dist/generated/apis/OAuthApi.js.map +1 -0
- package/dist/generated/apis/PlayersApi.d.ts +8 -8
- package/dist/generated/apis/PlayersApi.js +8 -8
- package/dist/generated/apis/PoliciesApi.d.ts +8 -8
- package/dist/generated/apis/PoliciesApi.js +8 -8
- package/dist/generated/apis/PolicyRulesApi.d.ts +1 -1
- package/dist/generated/apis/PolicyRulesApi.js +1 -1
- package/dist/generated/apis/SessionsApi.d.ts +3 -3
- package/dist/generated/apis/SessionsApi.js +3 -3
- package/dist/generated/apis/TransactionIntentsApi.d.ts +6 -6
- package/dist/generated/apis/TransactionIntentsApi.js +6 -6
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.js +2 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/AccelbyteOauthConfig.d.ts +48 -0
- package/dist/generated/models/AccelbyteOauthConfig.js +59 -0
- package/dist/generated/models/AccelbyteOauthConfig.js.map +1 -0
- package/dist/generated/models/AccountListQueries.d.ts +1 -1
- package/dist/generated/models/AuthResponse.d.ts +6 -0
- package/dist/generated/models/AuthResponse.js.map +1 -1
- package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/CompleteRecoveryRequest.d.ts +1 -1
- package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
- package/dist/generated/models/CreatePlayerSessionRequest.d.ts +1 -1
- package/dist/generated/models/CreateSessionRequest.d.ts +2 -2
- package/dist/generated/models/CreateTransactionIntentRequest.d.ts +2 -2
- package/dist/generated/models/EstimateTransactionIntentGasResult.d.ts +16 -0
- package/dist/generated/models/EstimateTransactionIntentGasResult.js +24 -0
- package/dist/generated/models/EstimateTransactionIntentGasResult.js.map +1 -1
- package/dist/generated/models/OAuthConfigListResponse.d.ts +35 -0
- package/dist/generated/models/OAuthConfigListResponse.js +35 -0
- package/dist/generated/models/OAuthConfigListResponse.js.map +1 -0
- package/dist/generated/models/OAuthConfigRequest.d.ts +32 -0
- package/dist/generated/models/OAuthConfigRequest.js +35 -0
- package/dist/generated/models/OAuthConfigRequest.js.map +1 -0
- package/dist/generated/models/OAuthConfigResponse.d.ts +32 -0
- package/dist/generated/models/OAuthConfigResponse.js +35 -0
- package/dist/generated/models/OAuthConfigResponse.js.map +1 -0
- package/dist/generated/models/OAuthProvider.d.ts +15 -0
- package/dist/generated/models/OAuthProvider.js +14 -0
- package/dist/generated/models/OAuthProvider.js.map +1 -0
- package/dist/generated/models/OAuthProviderACCELBYTE.d.ts +12 -0
- package/dist/generated/models/OAuthProviderACCELBYTE.js +14 -0
- package/dist/generated/models/OAuthProviderACCELBYTE.js.map +1 -0
- package/dist/generated/models/OAuthRequest.d.ts +34 -0
- package/dist/generated/models/OAuthRequest.js +35 -0
- package/dist/generated/models/OAuthRequest.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +7 -0
- package/dist/generated/models/ObjectSerializer.js +19 -0
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/PlayerInventoryListQueries.d.ts +1 -1
- package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +2 -2
- package/dist/generated/models/PolicyRuleListQueries.d.ts +1 -1
- package/dist/generated/models/PolicyStrategyRequest.d.ts +3 -3
- package/dist/generated/models/ResponseResponse.d.ts +2 -2
- package/dist/generated/models/RevokeSessionPlayerRequest.d.ts +1 -1
- package/dist/generated/models/RevokeSessionRequest.d.ts +2 -2
- package/dist/generated/models/SessionListQueries.d.ts +1 -1
- package/dist/generated/models/StartRecoveryRequest.d.ts +1 -1
- package/dist/generated/models/TransactionIntentListQueries.d.ts +2 -2
- package/dist/generated/models/TransactionIntentResponsePlayer.d.ts +1 -1
- package/dist/generated/models/TransactionIntentResponsePlayer.js +1 -1
- package/dist/generated/models/TransactionIntentResponsePolicy.d.ts +1 -1
- package/dist/generated/models/TransactionIntentResponsePolicy.js +1 -1
- package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/all.d.ts +7 -0
- package/dist/generated/models/all.js +7 -0
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +142 -36
- package/dist/generated/types/ObjectParamAPI.js +69 -14
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +86 -36
- package/dist/generated/types/ObservableAPI.js +174 -37
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +84 -36
- package/dist/generated/types/PromiseAPI.js +111 -48
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- 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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuthenticationApi, PlayerResponse } from "../generated";
|
|
2
|
+
import { BaseApiWrapper } from "./baseApiWrapper";
|
|
3
|
+
export declare class IamApiWrapper extends BaseApiWrapper<AuthenticationApi> {
|
|
4
|
+
constructor(accessToken: string, basePath?: string);
|
|
5
|
+
/**
|
|
6
|
+
* Verify an auth token.
|
|
7
|
+
* @param token Specifies the auth token.
|
|
8
|
+
*/
|
|
9
|
+
verifyToken(token: string): Promise<PlayerResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IamApiWrapper = void 0;
|
|
13
|
+
const generated_1 = require("../generated");
|
|
14
|
+
const baseApiWrapper_1 = require("./baseApiWrapper");
|
|
15
|
+
const httpErrorHandler_1 = require("../utilities/httpErrorHandler");
|
|
16
|
+
let IamApiWrapper = class IamApiWrapper extends baseApiWrapper_1.BaseApiWrapper {
|
|
17
|
+
constructor(accessToken, basePath) {
|
|
18
|
+
super(generated_1.AuthenticationApi, accessToken, basePath);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Verify an auth token.
|
|
22
|
+
* @param token Specifies the auth token.
|
|
23
|
+
*/
|
|
24
|
+
async verifyToken(token) {
|
|
25
|
+
return await this.api.verifyAuthToken(token);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
IamApiWrapper = __decorate([
|
|
29
|
+
httpErrorHandler_1.httpErrorHandler,
|
|
30
|
+
__metadata("design:paramtypes", [String, String])
|
|
31
|
+
], IamApiWrapper);
|
|
32
|
+
exports.IamApiWrapper = IamApiWrapper;
|
|
33
|
+
//# sourceMappingURL=iamApiWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iamApiWrapper.js","sourceRoot":"","sources":["../../src/apis/iamApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAiE;AACjE,qDAAkD;AAClD,oEAAiE;AAG1D,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+BAAiC;IAChE,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,6BAAiB,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,WAAW,CAAC,KAAa;QAClC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;CACJ,CAAA;AAZY,aAAa;IADzB,mCAAgB;;GACJ,aAAa,CAYzB;AAZY,sCAAa"}
|
|
@@ -46,7 +46,7 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
46
46
|
/**
|
|
47
47
|
* 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 ten accounts are shown per page.
|
|
48
48
|
* List accounts of a player.
|
|
49
|
-
* @param player Specifies the unique player ID
|
|
49
|
+
* @param player Specifies the unique player ID (starts with pla_)
|
|
50
50
|
* @param limit Specifies the maximum number of records to return.
|
|
51
51
|
* @param skip Specifies the offset for the first records to return.
|
|
52
52
|
* @param order Specifies the order in which to sort the results.
|
|
@@ -164,7 +164,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
164
164
|
/**
|
|
165
165
|
* 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 ten accounts are shown per page.
|
|
166
166
|
* List accounts of a player.
|
|
167
|
-
* @param player Specifies the unique player ID
|
|
167
|
+
* @param player Specifies the unique player ID (starts with pla_)
|
|
168
168
|
* @param limit Specifies the maximum number of records to return.
|
|
169
169
|
* @param skip Specifies the offset for the first records to return.
|
|
170
170
|
* @param order Specifies the order in which to sort the results.
|
|
@@ -20,13 +20,13 @@ export declare class ContractsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
20
20
|
/**
|
|
21
21
|
* Delete a contract from the project by providing its contract id.
|
|
22
22
|
* Deletes a contract object.
|
|
23
|
-
* @param id Specifies the unique contract ID.
|
|
23
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
24
24
|
*/
|
|
25
25
|
deleteContract(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
26
26
|
/**
|
|
27
27
|
* Retrieve a contract by providing their contract id.
|
|
28
28
|
* Get a contract.
|
|
29
|
-
* @param id Specifies the unique contract ID.
|
|
29
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
30
30
|
*/
|
|
31
31
|
getContract(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
32
32
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class ContractsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
43
43
|
getContracts(limit?: number, skip?: number, order?: SortOrder, name?: string, deleted?: boolean, chainId?: number, address?: string, _options?: Configuration): Promise<RequestContext>;
|
|
44
44
|
/**
|
|
45
45
|
* Updates a contract object.
|
|
46
|
-
* @param id Specifies the unique contract ID.
|
|
46
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
47
47
|
* @param updateContractRequest
|
|
48
48
|
*/
|
|
49
49
|
updateContract(id: string, updateContractRequest: UpdateContractRequest, _options?: Configuration): Promise<RequestContext>;
|
|
@@ -49,7 +49,7 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
49
49
|
/**
|
|
50
50
|
* Delete a contract from the project by providing its contract id.
|
|
51
51
|
* Deletes a contract object.
|
|
52
|
-
* @param id Specifies the unique contract ID.
|
|
52
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
53
53
|
*/
|
|
54
54
|
async deleteContract(id, _options) {
|
|
55
55
|
let _config = _options || this.configuration;
|
|
@@ -78,7 +78,7 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
78
78
|
/**
|
|
79
79
|
* Retrieve a contract by providing their contract id.
|
|
80
80
|
* Get a contract.
|
|
81
|
-
* @param id Specifies the unique contract ID.
|
|
81
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
82
82
|
*/
|
|
83
83
|
async getContract(id, _options) {
|
|
84
84
|
let _config = _options || this.configuration;
|
|
@@ -164,7 +164,7 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* Updates a contract object.
|
|
167
|
-
* @param id Specifies the unique contract ID.
|
|
167
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
168
168
|
* @param updateContractRequest
|
|
169
169
|
*/
|
|
170
170
|
async updateContract(id, updateContractRequest, _options) {
|
|
@@ -39,34 +39,34 @@ export declare class InventoriesApiRequestFactory extends BaseAPIRequestFactory
|
|
|
39
39
|
getAccountNftInventory(id: string, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
|
|
40
40
|
/**
|
|
41
41
|
* Get cryptocurrency list of player.
|
|
42
|
-
* @param id Specifies the unique player ID.
|
|
42
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
43
43
|
* @param chainId Filter by chain id.
|
|
44
44
|
* @param limit Specifies the maximum number of records to return.
|
|
45
45
|
* @param skip Specifies the offset for the first records to return.
|
|
46
46
|
* @param order Specifies the order in which to sort the results.
|
|
47
|
-
* @param contractId Filter by contract ID.
|
|
47
|
+
* @param contractId Filter by contract ID (starts with con_).
|
|
48
48
|
*/
|
|
49
49
|
getPlayerCryptoCurrencyInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
|
|
50
50
|
/**
|
|
51
51
|
* Get inventory of player.
|
|
52
|
-
* @param id Specifies the unique player ID.
|
|
52
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
53
53
|
* @param chainId Filter by chain id.
|
|
54
54
|
*/
|
|
55
55
|
getPlayerInventory(id: string, chainId: number, _options?: Configuration): Promise<RequestContext>;
|
|
56
56
|
/**
|
|
57
57
|
* Get native token list of player.
|
|
58
|
-
* @param id Specifies the unique player ID.
|
|
58
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
59
59
|
* @param chainId Filter by chain id.
|
|
60
60
|
*/
|
|
61
61
|
getPlayerNativeInventory(id: string, chainId: number, _options?: Configuration): Promise<RequestContext>;
|
|
62
62
|
/**
|
|
63
63
|
* Get NFTs list of player.
|
|
64
|
-
* @param id Specifies the unique player ID.
|
|
64
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
65
65
|
* @param chainId Filter by chain id.
|
|
66
66
|
* @param limit Specifies the maximum number of records to return.
|
|
67
67
|
* @param skip Specifies the offset for the first records to return.
|
|
68
68
|
* @param order Specifies the order in which to sort the results.
|
|
69
|
-
* @param contractId Filter by contract ID.
|
|
69
|
+
* @param contractId Filter by contract ID (starts with con_).
|
|
70
70
|
*/
|
|
71
71
|
getPlayerNftInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
|
|
72
72
|
}
|
|
@@ -165,12 +165,12 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Get cryptocurrency list of player.
|
|
168
|
-
* @param id Specifies the unique player ID.
|
|
168
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
169
169
|
* @param chainId Filter by chain id.
|
|
170
170
|
* @param limit Specifies the maximum number of records to return.
|
|
171
171
|
* @param skip Specifies the offset for the first records to return.
|
|
172
172
|
* @param order Specifies the order in which to sort the results.
|
|
173
|
-
* @param contractId Filter by contract ID.
|
|
173
|
+
* @param contractId Filter by contract ID (starts with con_).
|
|
174
174
|
*/
|
|
175
175
|
async getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order, contractId, _options) {
|
|
176
176
|
let _config = _options || this.configuration;
|
|
@@ -222,7 +222,7 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* Get inventory of player.
|
|
225
|
-
* @param id Specifies the unique player ID.
|
|
225
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
226
226
|
* @param chainId Filter by chain id.
|
|
227
227
|
*/
|
|
228
228
|
async getPlayerInventory(id, chainId, _options) {
|
|
@@ -259,7 +259,7 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
259
259
|
}
|
|
260
260
|
/**
|
|
261
261
|
* Get native token list of player.
|
|
262
|
-
* @param id Specifies the unique player ID.
|
|
262
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
263
263
|
* @param chainId Filter by chain id.
|
|
264
264
|
*/
|
|
265
265
|
async getPlayerNativeInventory(id, chainId, _options) {
|
|
@@ -296,12 +296,12 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
296
296
|
}
|
|
297
297
|
/**
|
|
298
298
|
* Get NFTs list of player.
|
|
299
|
-
* @param id Specifies the unique player ID.
|
|
299
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
300
300
|
* @param chainId Filter by chain id.
|
|
301
301
|
* @param limit Specifies the maximum number of records to return.
|
|
302
302
|
* @param skip Specifies the offset for the first records to return.
|
|
303
303
|
* @param order Specifies the order in which to sort the results.
|
|
304
|
-
* @param contractId Filter by contract ID.
|
|
304
|
+
* @param contractId Filter by contract ID (starts with con_).
|
|
305
305
|
*/
|
|
306
306
|
async getPlayerNftInventory(id, chainId, limit, skip, order, contractId, _options) {
|
|
307
307
|
let _config = _options || this.configuration;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { RequestContext, ResponseContext } from '../http/http';
|
|
4
|
+
import { AuthResponse } from '../models/AuthResponse';
|
|
5
|
+
import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
|
|
6
|
+
import { OAuthConfigRequest } from '../models/OAuthConfigRequest';
|
|
7
|
+
import { OAuthConfigResponse } from '../models/OAuthConfigResponse';
|
|
8
|
+
import { OAuthProvider } from '../models/OAuthProvider';
|
|
9
|
+
import { OAuthRequest } from '../models/OAuthRequest';
|
|
10
|
+
/**
|
|
11
|
+
* no description
|
|
12
|
+
*/
|
|
13
|
+
export declare class OAuthApiRequestFactory extends BaseAPIRequestFactory {
|
|
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 user with token.
|
|
17
|
+
* @param provider OAuth provider
|
|
18
|
+
* @param oAuthRequest Request body
|
|
19
|
+
*/
|
|
20
|
+
auth(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<RequestContext>;
|
|
21
|
+
/**
|
|
22
|
+
* The endpoint creates oauth configuration for the current project environment.
|
|
23
|
+
* Create oauth configuration.
|
|
24
|
+
* @param provider Specifies the oauth provider type.
|
|
25
|
+
* @param oAuthConfigRequest Specifies the oauth provider specific configuration.
|
|
26
|
+
*/
|
|
27
|
+
createOAuthConfig(provider: OAuthProvider, oAuthConfigRequest: OAuthConfigRequest, _options?: Configuration): Promise<RequestContext>;
|
|
28
|
+
/**
|
|
29
|
+
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
30
|
+
* Delete oauth configuration.
|
|
31
|
+
* @param provider Specifies the oauth provider type.
|
|
32
|
+
*/
|
|
33
|
+
deleteOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<RequestContext>;
|
|
34
|
+
/**
|
|
35
|
+
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
36
|
+
* Get oauth configuration.
|
|
37
|
+
* @param provider Specifies the oauth provider type.
|
|
38
|
+
*/
|
|
39
|
+
getOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<RequestContext>;
|
|
40
|
+
/**
|
|
41
|
+
* The endpoint retrieves the list of oauth configurations for the current project environment.
|
|
42
|
+
* List of oauth configurations.
|
|
43
|
+
*/
|
|
44
|
+
listOAuthConfig(_options?: Configuration): Promise<RequestContext>;
|
|
45
|
+
/**
|
|
46
|
+
* The endpoint updates oauth configuration for specified provider for the current project environment.
|
|
47
|
+
* Update oauth configuration.
|
|
48
|
+
* @param provider Specifies the oauth provider type.
|
|
49
|
+
* @param oAuthConfigRequest Specifies the oauth provider specific configuration.
|
|
50
|
+
*/
|
|
51
|
+
updateOAuthConfig(provider: OAuthProvider, oAuthConfigRequest: OAuthConfigRequest, _options?: Configuration): Promise<RequestContext>;
|
|
52
|
+
}
|
|
53
|
+
export declare class OAuthApiResponseProcessor {
|
|
54
|
+
/**
|
|
55
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
56
|
+
* to the expected objects
|
|
57
|
+
*
|
|
58
|
+
* @params response Response returned by the server for a request to auth
|
|
59
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
60
|
+
*/
|
|
61
|
+
auth(response: ResponseContext): Promise<AuthResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
64
|
+
* to the expected objects
|
|
65
|
+
*
|
|
66
|
+
* @params response Response returned by the server for a request to createOAuthConfig
|
|
67
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
68
|
+
*/
|
|
69
|
+
createOAuthConfig(response: ResponseContext): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
72
|
+
* to the expected objects
|
|
73
|
+
*
|
|
74
|
+
* @params response Response returned by the server for a request to deleteOAuthConfig
|
|
75
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
76
|
+
*/
|
|
77
|
+
deleteOAuthConfig(response: ResponseContext): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
80
|
+
* to the expected objects
|
|
81
|
+
*
|
|
82
|
+
* @params response Response returned by the server for a request to getOAuthConfig
|
|
83
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
84
|
+
*/
|
|
85
|
+
getOAuthConfig(response: ResponseContext): Promise<OAuthConfigResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
88
|
+
* to the expected objects
|
|
89
|
+
*
|
|
90
|
+
* @params response Response returned by the server for a request to listOAuthConfig
|
|
91
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
92
|
+
*/
|
|
93
|
+
listOAuthConfig(response: ResponseContext): Promise<OAuthConfigListResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
96
|
+
* to the expected objects
|
|
97
|
+
*
|
|
98
|
+
* @params response Response returned by the server for a request to updateOAuthConfig
|
|
99
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
100
|
+
*/
|
|
101
|
+
updateOAuthConfig(response: ResponseContext): Promise<void>;
|
|
102
|
+
}
|