@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,358 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OAuthApiResponseProcessor = exports.OAuthApiRequestFactory = void 0;
|
|
4
|
+
// TODO: better import syntax?
|
|
5
|
+
const baseapi_1 = require("./baseapi");
|
|
6
|
+
const http_1 = require("../http/http");
|
|
7
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
8
|
+
const exception_1 = require("./exception");
|
|
9
|
+
const util_1 = require("../util");
|
|
10
|
+
/**
|
|
11
|
+
* no description
|
|
12
|
+
*/
|
|
13
|
+
class OAuthApiRequestFactory extends baseapi_1.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
|
+
async auth(provider, oAuthRequest, _options) {
|
|
21
|
+
let _config = _options || this.configuration;
|
|
22
|
+
// verify required parameter 'provider' is not null or undefined
|
|
23
|
+
if (provider === null || provider === undefined) {
|
|
24
|
+
throw new baseapi_1.RequiredError("OAuthApi", "auth", "provider");
|
|
25
|
+
}
|
|
26
|
+
// verify required parameter 'oAuthRequest' is not null or undefined
|
|
27
|
+
if (oAuthRequest === null || oAuthRequest === undefined) {
|
|
28
|
+
throw new baseapi_1.RequiredError("OAuthApi", "auth", "oAuthRequest");
|
|
29
|
+
}
|
|
30
|
+
// Path Params
|
|
31
|
+
const localVarPath = '/iam/v1/oauth/{provider}/authorize'
|
|
32
|
+
.replace('{' + 'provider' + '}', encodeURIComponent(String(provider)));
|
|
33
|
+
// Make Request Context
|
|
34
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
35
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
36
|
+
// Body Params
|
|
37
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
38
|
+
"application/json"
|
|
39
|
+
]);
|
|
40
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
41
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(oAuthRequest, "OAuthRequest", ""), contentType);
|
|
42
|
+
requestContext.setBody(serializedBody);
|
|
43
|
+
let authMethod;
|
|
44
|
+
// Apply auth methods
|
|
45
|
+
authMethod = _config.authMethods["pk"];
|
|
46
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
47
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
48
|
+
}
|
|
49
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
50
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
51
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
52
|
+
}
|
|
53
|
+
return requestContext;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The endpoint creates oauth configuration for the current project environment.
|
|
57
|
+
* Create oauth configuration.
|
|
58
|
+
* @param provider Specifies the oauth provider type.
|
|
59
|
+
* @param oAuthConfigRequest Specifies the oauth provider specific configuration.
|
|
60
|
+
*/
|
|
61
|
+
async createOAuthConfig(provider, oAuthConfigRequest, _options) {
|
|
62
|
+
let _config = _options || this.configuration;
|
|
63
|
+
// verify required parameter 'provider' is not null or undefined
|
|
64
|
+
if (provider === null || provider === undefined) {
|
|
65
|
+
throw new baseapi_1.RequiredError("OAuthApi", "createOAuthConfig", "provider");
|
|
66
|
+
}
|
|
67
|
+
// verify required parameter 'oAuthConfigRequest' is not null or undefined
|
|
68
|
+
if (oAuthConfigRequest === null || oAuthConfigRequest === undefined) {
|
|
69
|
+
throw new baseapi_1.RequiredError("OAuthApi", "createOAuthConfig", "oAuthConfigRequest");
|
|
70
|
+
}
|
|
71
|
+
// Path Params
|
|
72
|
+
const localVarPath = '/iam/v1/oauth/{provider}/config'
|
|
73
|
+
.replace('{' + 'provider' + '}', encodeURIComponent(String(provider)));
|
|
74
|
+
// Make Request Context
|
|
75
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
76
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
77
|
+
// Body Params
|
|
78
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
79
|
+
"application/json"
|
|
80
|
+
]);
|
|
81
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
82
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(oAuthConfigRequest, "OAuthConfigRequest", ""), contentType);
|
|
83
|
+
requestContext.setBody(serializedBody);
|
|
84
|
+
let authMethod;
|
|
85
|
+
// Apply auth methods
|
|
86
|
+
authMethod = _config.authMethods["sk"];
|
|
87
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
88
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
89
|
+
}
|
|
90
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
91
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
92
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
93
|
+
}
|
|
94
|
+
return requestContext;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
98
|
+
* Delete oauth configuration.
|
|
99
|
+
* @param provider Specifies the oauth provider type.
|
|
100
|
+
*/
|
|
101
|
+
async deleteOAuthConfig(provider, _options) {
|
|
102
|
+
let _config = _options || this.configuration;
|
|
103
|
+
// verify required parameter 'provider' is not null or undefined
|
|
104
|
+
if (provider === null || provider === undefined) {
|
|
105
|
+
throw new baseapi_1.RequiredError("OAuthApi", "deleteOAuthConfig", "provider");
|
|
106
|
+
}
|
|
107
|
+
// Path Params
|
|
108
|
+
const localVarPath = '/iam/v1/oauth/{provider}/config'
|
|
109
|
+
.replace('{' + 'provider' + '}', encodeURIComponent(String(provider)));
|
|
110
|
+
// Make Request Context
|
|
111
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
112
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
113
|
+
let authMethod;
|
|
114
|
+
// Apply auth methods
|
|
115
|
+
authMethod = _config.authMethods["sk"];
|
|
116
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
117
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
118
|
+
}
|
|
119
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
120
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
121
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
122
|
+
}
|
|
123
|
+
return requestContext;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
127
|
+
* Get oauth configuration.
|
|
128
|
+
* @param provider Specifies the oauth provider type.
|
|
129
|
+
*/
|
|
130
|
+
async getOAuthConfig(provider, _options) {
|
|
131
|
+
let _config = _options || this.configuration;
|
|
132
|
+
// verify required parameter 'provider' is not null or undefined
|
|
133
|
+
if (provider === null || provider === undefined) {
|
|
134
|
+
throw new baseapi_1.RequiredError("OAuthApi", "getOAuthConfig", "provider");
|
|
135
|
+
}
|
|
136
|
+
// Path Params
|
|
137
|
+
const localVarPath = '/iam/v1/oauth/{provider}/config'
|
|
138
|
+
.replace('{' + 'provider' + '}', encodeURIComponent(String(provider)));
|
|
139
|
+
// Make Request Context
|
|
140
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
141
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
142
|
+
let authMethod;
|
|
143
|
+
// Apply auth methods
|
|
144
|
+
authMethod = _config.authMethods["sk"];
|
|
145
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
146
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
147
|
+
}
|
|
148
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
149
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
150
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
151
|
+
}
|
|
152
|
+
return requestContext;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* The endpoint retrieves the list of oauth configurations for the current project environment.
|
|
156
|
+
* List of oauth configurations.
|
|
157
|
+
*/
|
|
158
|
+
async listOAuthConfig(_options) {
|
|
159
|
+
let _config = _options || this.configuration;
|
|
160
|
+
// Path Params
|
|
161
|
+
const localVarPath = '/iam/v1/oauth/config';
|
|
162
|
+
// Make Request Context
|
|
163
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
164
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
165
|
+
let authMethod;
|
|
166
|
+
// Apply auth methods
|
|
167
|
+
authMethod = _config.authMethods["sk"];
|
|
168
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
169
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
170
|
+
}
|
|
171
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
172
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
173
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
174
|
+
}
|
|
175
|
+
return requestContext;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The endpoint updates oauth configuration for specified provider for the current project environment.
|
|
179
|
+
* Update oauth configuration.
|
|
180
|
+
* @param provider Specifies the oauth provider type.
|
|
181
|
+
* @param oAuthConfigRequest Specifies the oauth provider specific configuration.
|
|
182
|
+
*/
|
|
183
|
+
async updateOAuthConfig(provider, oAuthConfigRequest, _options) {
|
|
184
|
+
let _config = _options || this.configuration;
|
|
185
|
+
// verify required parameter 'provider' is not null or undefined
|
|
186
|
+
if (provider === null || provider === undefined) {
|
|
187
|
+
throw new baseapi_1.RequiredError("OAuthApi", "updateOAuthConfig", "provider");
|
|
188
|
+
}
|
|
189
|
+
// verify required parameter 'oAuthConfigRequest' is not null or undefined
|
|
190
|
+
if (oAuthConfigRequest === null || oAuthConfigRequest === undefined) {
|
|
191
|
+
throw new baseapi_1.RequiredError("OAuthApi", "updateOAuthConfig", "oAuthConfigRequest");
|
|
192
|
+
}
|
|
193
|
+
// Path Params
|
|
194
|
+
const localVarPath = '/iam/v1/oauth/{provider}/config'
|
|
195
|
+
.replace('{' + 'provider' + '}', encodeURIComponent(String(provider)));
|
|
196
|
+
// Make Request Context
|
|
197
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
198
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
199
|
+
// Body Params
|
|
200
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
201
|
+
"application/json"
|
|
202
|
+
]);
|
|
203
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
204
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(oAuthConfigRequest, "OAuthConfigRequest", ""), contentType);
|
|
205
|
+
requestContext.setBody(serializedBody);
|
|
206
|
+
let authMethod;
|
|
207
|
+
// Apply auth methods
|
|
208
|
+
authMethod = _config.authMethods["sk"];
|
|
209
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
210
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
211
|
+
}
|
|
212
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
213
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
214
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
215
|
+
}
|
|
216
|
+
return requestContext;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
exports.OAuthApiRequestFactory = OAuthApiRequestFactory;
|
|
220
|
+
class OAuthApiResponseProcessor {
|
|
221
|
+
/**
|
|
222
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
223
|
+
* to the expected objects
|
|
224
|
+
*
|
|
225
|
+
* @params response Response returned by the server for a request to auth
|
|
226
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
227
|
+
*/
|
|
228
|
+
async auth(response) {
|
|
229
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
230
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
231
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "AuthResponse", "");
|
|
232
|
+
return body;
|
|
233
|
+
}
|
|
234
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
235
|
+
throw new exception_1.ApiException(response.httpStatusCode, "", undefined, response.headers);
|
|
236
|
+
}
|
|
237
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
238
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
239
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "AuthResponse", "");
|
|
240
|
+
return body;
|
|
241
|
+
}
|
|
242
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
246
|
+
* to the expected objects
|
|
247
|
+
*
|
|
248
|
+
* @params response Response returned by the server for a request to createOAuthConfig
|
|
249
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
250
|
+
*/
|
|
251
|
+
async createOAuthConfig(response) {
|
|
252
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
253
|
+
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
257
|
+
throw new exception_1.ApiException(response.httpStatusCode, "", undefined, response.headers);
|
|
258
|
+
}
|
|
259
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
260
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
261
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "void", "");
|
|
262
|
+
return body;
|
|
263
|
+
}
|
|
264
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
268
|
+
* to the expected objects
|
|
269
|
+
*
|
|
270
|
+
* @params response Response returned by the server for a request to deleteOAuthConfig
|
|
271
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
272
|
+
*/
|
|
273
|
+
async deleteOAuthConfig(response) {
|
|
274
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
275
|
+
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
279
|
+
throw new exception_1.ApiException(response.httpStatusCode, "", undefined, response.headers);
|
|
280
|
+
}
|
|
281
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
282
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
283
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "void", "");
|
|
284
|
+
return body;
|
|
285
|
+
}
|
|
286
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
290
|
+
* to the expected objects
|
|
291
|
+
*
|
|
292
|
+
* @params response Response returned by the server for a request to getOAuthConfig
|
|
293
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
294
|
+
*/
|
|
295
|
+
async getOAuthConfig(response) {
|
|
296
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
297
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
298
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "OAuthConfigResponse", "");
|
|
299
|
+
return body;
|
|
300
|
+
}
|
|
301
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
302
|
+
throw new exception_1.ApiException(response.httpStatusCode, "", undefined, response.headers);
|
|
303
|
+
}
|
|
304
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
305
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
306
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "OAuthConfigResponse", "");
|
|
307
|
+
return body;
|
|
308
|
+
}
|
|
309
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
313
|
+
* to the expected objects
|
|
314
|
+
*
|
|
315
|
+
* @params response Response returned by the server for a request to listOAuthConfig
|
|
316
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
317
|
+
*/
|
|
318
|
+
async listOAuthConfig(response) {
|
|
319
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
320
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
321
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "OAuthConfigListResponse", "");
|
|
322
|
+
return body;
|
|
323
|
+
}
|
|
324
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
325
|
+
throw new exception_1.ApiException(response.httpStatusCode, "", undefined, response.headers);
|
|
326
|
+
}
|
|
327
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
328
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
329
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "OAuthConfigListResponse", "");
|
|
330
|
+
return body;
|
|
331
|
+
}
|
|
332
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
336
|
+
* to the expected objects
|
|
337
|
+
*
|
|
338
|
+
* @params response Response returned by the server for a request to updateOAuthConfig
|
|
339
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
340
|
+
*/
|
|
341
|
+
async updateOAuthConfig(response) {
|
|
342
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
343
|
+
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
347
|
+
throw new exception_1.ApiException(response.httpStatusCode, "", undefined, response.headers);
|
|
348
|
+
}
|
|
349
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
350
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
351
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "void", "");
|
|
352
|
+
return body;
|
|
353
|
+
}
|
|
354
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
exports.OAuthApiResponseProcessor = OAuthApiResponseProcessor;
|
|
358
|
+
//# sourceMappingURL=OAuthApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthApi.js","sourceRoot":"","sources":["../../../src/generated/apis/OAuthApi.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,uCAAmF;AAEnF,uCAAmF;AAGnF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsD;AAWtD;;GAEG;AACH,MAAa,sBAAuB,SAAQ,+BAAqB;IAE7D;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CAAC,QAAuB,EAAE,YAA0B,EAAE,QAAwB;QAC3F,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;QAE7C,gEAAgE;QAChE,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC7C,MAAM,IAAI,uBAAa,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SAC3D;QAGD,oEAAoE;QACpE,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,SAAS,EAAE;YACrD,MAAM,IAAI,uBAAa,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;SAC/D;QAGD,cAAc;QACd,MAAM,YAAY,GAAG,oCAAoC;aACpD,OAAO,CAAC,GAAG,GAAG,UAAU,GAAG,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAE3E,uBAAuB;QACvB,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,IAAI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AAC,CAAC;QAC1F,IAAI,IAAA,oBAAa,EAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE;YAC/C,OAAO;SACV;QACD,IAAI,IAAA,oBAAa,EAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE;YAC/C,MAAM,IAAI,wBAAY,CAAY,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;SAC/F;QAED,6EAA6E;QAC7E,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;YAClE,MAAM,IAAI,GAAS,mCAAgB,CAAC,WAAW,CAC3C,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,MAAM,EAAE,EAAE,CACL,CAAC;YACV,OAAO,IAAI,CAAC;SACf;QAED,MAAM,IAAI,wBAAY,CAA8B,QAAQ,CAAC,cAAc,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC,YAAY,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9J,CAAC;CAEJ;AAtLD,8DAsLC"}
|
|
@@ -36,25 +36,25 @@ export declare class PlayersApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
36
36
|
createPlayer(createPlayerRequest: CreatePlayerRequest, _options?: Configuration): Promise<RequestContext>;
|
|
37
37
|
/**
|
|
38
38
|
* Create account object for a player.
|
|
39
|
-
* @param id Specifies the unique player ID.
|
|
39
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
40
40
|
* @param createPlayerAccountRequest
|
|
41
41
|
*/
|
|
42
42
|
createPlayerAccount(id: string, createPlayerAccountRequest: CreatePlayerAccountRequest, _options?: Configuration): Promise<RequestContext>;
|
|
43
43
|
/**
|
|
44
44
|
* Create session object for a player.
|
|
45
|
-
* @param id Specifies the unique player ID.
|
|
45
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
46
46
|
* @param createPlayerSessionRequest
|
|
47
47
|
*/
|
|
48
48
|
createPlayerSession(id: string, createPlayerSessionRequest: CreatePlayerSessionRequest, _options?: Configuration): Promise<RequestContext>;
|
|
49
49
|
/**
|
|
50
50
|
* Retrieves the details of an existing player.
|
|
51
|
-
* @param id Specifies the unique player ID.
|
|
51
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
52
52
|
* @param expand Specifies the expandable fields.
|
|
53
53
|
*/
|
|
54
54
|
getPlayer(id: string, expand?: Array<PlayerResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
|
|
55
55
|
/**
|
|
56
56
|
* List of accounts of a player.
|
|
57
|
-
* @param id Specifies the unique player ID.
|
|
57
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
58
58
|
* @param expand Specifies the expandable fields.
|
|
59
59
|
*/
|
|
60
60
|
getPlayerAccounts(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
|
|
@@ -78,26 +78,26 @@ export declare class PlayersApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
78
78
|
/**
|
|
79
79
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
80
80
|
* Request transfer ownership of account.
|
|
81
|
-
* @param id Specifies the unique player ID.
|
|
81
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
82
82
|
* @param playerTransferOwnershipRequest
|
|
83
83
|
*/
|
|
84
84
|
obsoleteRequestTransferAccountOwnership(id: string, playerTransferOwnershipRequest: PlayerTransferOwnershipRequest, _options?: Configuration): Promise<RequestContext>;
|
|
85
85
|
/**
|
|
86
86
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
87
87
|
* Request transfer ownership of account.
|
|
88
|
-
* @param id Specifies the unique player ID.
|
|
88
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
89
89
|
* @param playerTransferOwnershipRequest
|
|
90
90
|
*/
|
|
91
91
|
requestTransferAccountOwnership(id: string, playerTransferOwnershipRequest: PlayerTransferOwnershipRequest, _options?: Configuration): Promise<RequestContext>;
|
|
92
92
|
/**
|
|
93
93
|
* Revoke session object for a player.
|
|
94
|
-
* @param id Specifies the unique player ID.
|
|
94
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
95
95
|
* @param revokeSessionPlayerRequest
|
|
96
96
|
*/
|
|
97
97
|
revokePlayerSession(id: string, revokeSessionPlayerRequest: RevokeSessionPlayerRequest, _options?: Configuration): Promise<RequestContext>;
|
|
98
98
|
/**
|
|
99
99
|
* Updates a player object.
|
|
100
|
-
* @param id Specifies the unique player ID.
|
|
100
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
101
101
|
* @param playerRequest
|
|
102
102
|
*/
|
|
103
103
|
updatePlayer(id: string, playerRequest: PlayerRequest, _options?: Configuration): Promise<RequestContext>;
|
|
@@ -89,7 +89,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* Create account object for a player.
|
|
92
|
-
* @param id Specifies the unique player ID.
|
|
92
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
93
93
|
* @param createPlayerAccountRequest
|
|
94
94
|
*/
|
|
95
95
|
async createPlayerAccount(id, createPlayerAccountRequest, _options) {
|
|
@@ -129,7 +129,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* Create session object for a player.
|
|
132
|
-
* @param id Specifies the unique player ID.
|
|
132
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
133
133
|
* @param createPlayerSessionRequest
|
|
134
134
|
*/
|
|
135
135
|
async createPlayerSession(id, createPlayerSessionRequest, _options) {
|
|
@@ -169,7 +169,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
171
|
* Retrieves the details of an existing player.
|
|
172
|
-
* @param id Specifies the unique player ID.
|
|
172
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
173
173
|
* @param expand Specifies the expandable fields.
|
|
174
174
|
*/
|
|
175
175
|
async getPlayer(id, expand, _options) {
|
|
@@ -202,7 +202,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* List of accounts of a player.
|
|
205
|
-
* @param id Specifies the unique player ID.
|
|
205
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
206
206
|
* @param expand Specifies the expandable fields.
|
|
207
207
|
*/
|
|
208
208
|
async getPlayerAccounts(id, expand, _options) {
|
|
@@ -325,7 +325,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
325
325
|
/**
|
|
326
326
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
327
327
|
* Request transfer ownership of account.
|
|
328
|
-
* @param id Specifies the unique player ID.
|
|
328
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
329
329
|
* @param playerTransferOwnershipRequest
|
|
330
330
|
*/
|
|
331
331
|
async obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, _options) {
|
|
@@ -366,7 +366,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
366
366
|
/**
|
|
367
367
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
368
368
|
* Request transfer ownership of account.
|
|
369
|
-
* @param id Specifies the unique player ID.
|
|
369
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
370
370
|
* @param playerTransferOwnershipRequest
|
|
371
371
|
*/
|
|
372
372
|
async requestTransferAccountOwnership(id, playerTransferOwnershipRequest, _options) {
|
|
@@ -406,7 +406,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* Revoke session object for a player.
|
|
409
|
-
* @param id Specifies the unique player ID.
|
|
409
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
410
410
|
* @param revokeSessionPlayerRequest
|
|
411
411
|
*/
|
|
412
412
|
async revokePlayerSession(id, revokeSessionPlayerRequest, _options) {
|
|
@@ -446,7 +446,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
448
|
* Updates a player object.
|
|
449
|
-
* @param id Specifies the unique player ID.
|
|
449
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
450
450
|
* @param playerRequest
|
|
451
451
|
*/
|
|
452
452
|
async updatePlayer(id, playerRequest, _options) {
|
|
@@ -24,23 +24,23 @@ export declare class PoliciesApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
24
24
|
createPolicy(createPolicyRequest: CreatePolicyRequest, _options?: Configuration): Promise<RequestContext>;
|
|
25
25
|
/**
|
|
26
26
|
* Create a policy rule object for a policy.
|
|
27
|
-
* @param id Specifies the unique policy ID.
|
|
27
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
28
28
|
* @param createPolicyAllowFunctionRequest
|
|
29
29
|
*/
|
|
30
30
|
createPolicyAllowFunction(id: string, createPolicyAllowFunctionRequest: CreatePolicyAllowFunctionRequest, _options?: Configuration): Promise<RequestContext>;
|
|
31
31
|
/**
|
|
32
32
|
* Delete a policy object.
|
|
33
|
-
* @param id Specifies the unique policy ID.
|
|
33
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
34
34
|
*/
|
|
35
35
|
deletePolicy(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
36
36
|
/**
|
|
37
37
|
* Disable a policy object.
|
|
38
|
-
* @param id Specifies the unique policy ID.
|
|
38
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
39
39
|
*/
|
|
40
40
|
disablePolicy(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
41
41
|
/**
|
|
42
42
|
* Enable a policy object.
|
|
43
|
-
* @param id Specifies the unique policy ID.
|
|
43
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
44
44
|
*/
|
|
45
45
|
enablePolicy(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
46
46
|
/**
|
|
@@ -57,24 +57,24 @@ export declare class PoliciesApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
57
57
|
getPolicies(limit?: number, skip?: number, order?: SortOrder, expand?: Array<PolicyResponseExpandable>, name?: string, deleted?: boolean, chainId?: number, enabled?: boolean, _options?: Configuration): Promise<RequestContext>;
|
|
58
58
|
/**
|
|
59
59
|
* Get a policy object.
|
|
60
|
-
* @param id Specifies the unique policy ID.
|
|
60
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
61
61
|
* @param expand Specifies the fields to expand.
|
|
62
62
|
*/
|
|
63
63
|
getPolicy(id: string, expand?: Array<PolicyResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
|
|
64
64
|
/**
|
|
65
65
|
* List policy rules of a policy.
|
|
66
|
-
* @param id Specifies the unique policy ID.
|
|
66
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
67
67
|
* @param expand Specifies the fields to expand.
|
|
68
68
|
*/
|
|
69
69
|
getPolicyAllowFunctions(id: string, expand?: Array<'contract'>, _options?: Configuration): Promise<RequestContext>;
|
|
70
70
|
/**
|
|
71
71
|
* List all gas reports of a policy.
|
|
72
|
-
* @param id Specifies the unique policy ID.
|
|
72
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
73
73
|
*/
|
|
74
74
|
getPolicyTotalGasUsage(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
75
75
|
/**
|
|
76
76
|
* Update a policy object.
|
|
77
|
-
* @param id Specifies the unique policy ID.
|
|
77
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
78
78
|
* @param updatePolicyRequest
|
|
79
79
|
*/
|
|
80
80
|
updatePolicy(id: string, updatePolicyRequest: UpdatePolicyRequest, _options?: Configuration): Promise<RequestContext>;
|
|
@@ -47,7 +47,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Create a policy rule object for a policy.
|
|
50
|
-
* @param id Specifies the unique policy ID.
|
|
50
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
51
51
|
* @param createPolicyAllowFunctionRequest
|
|
52
52
|
*/
|
|
53
53
|
async createPolicyAllowFunction(id, createPolicyAllowFunctionRequest, _options) {
|
|
@@ -87,7 +87,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* Delete a policy object.
|
|
90
|
-
* @param id Specifies the unique policy ID.
|
|
90
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
91
91
|
*/
|
|
92
92
|
async deletePolicy(id, _options) {
|
|
93
93
|
let _config = _options || this.configuration;
|
|
@@ -115,7 +115,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* Disable a policy object.
|
|
118
|
-
* @param id Specifies the unique policy ID.
|
|
118
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
119
119
|
*/
|
|
120
120
|
async disablePolicy(id, _options) {
|
|
121
121
|
let _config = _options || this.configuration;
|
|
@@ -143,7 +143,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
145
|
* Enable a policy object.
|
|
146
|
-
* @param id Specifies the unique policy ID.
|
|
146
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
147
147
|
*/
|
|
148
148
|
async enablePolicy(id, _options) {
|
|
149
149
|
let _config = _options || this.configuration;
|
|
@@ -233,7 +233,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
235
|
* Get a policy object.
|
|
236
|
-
* @param id Specifies the unique policy ID.
|
|
236
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
237
237
|
* @param expand Specifies the fields to expand.
|
|
238
238
|
*/
|
|
239
239
|
async getPolicy(id, expand, _options) {
|
|
@@ -266,7 +266,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
268
|
* List policy rules of a policy.
|
|
269
|
-
* @param id Specifies the unique policy ID.
|
|
269
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
270
270
|
* @param expand Specifies the fields to expand.
|
|
271
271
|
*/
|
|
272
272
|
async getPolicyAllowFunctions(id, expand, _options) {
|
|
@@ -299,7 +299,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
301
|
* List all gas reports of a policy.
|
|
302
|
-
* @param id Specifies the unique policy ID.
|
|
302
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
303
303
|
*/
|
|
304
304
|
async getPolicyTotalGasUsage(id, _options) {
|
|
305
305
|
let _config = _options || this.configuration;
|
|
@@ -327,7 +327,7 @@ class PoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
329
329
|
* Update a policy object.
|
|
330
|
-
* @param id Specifies the unique policy ID.
|
|
330
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
331
331
|
* @param updatePolicyRequest
|
|
332
332
|
*/
|
|
333
333
|
async updatePolicy(id, updatePolicyRequest, _options) {
|
|
@@ -23,7 +23,7 @@ export declare class PolicyRulesApiRequestFactory extends BaseAPIRequestFactory
|
|
|
23
23
|
deletePolicyRules(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
24
24
|
/**
|
|
25
25
|
* List policy rules of a policy.
|
|
26
|
-
* @param policy Specifies the unique policy ID.
|
|
26
|
+
* @param policy Specifies the unique policy ID (starts with pol_).
|
|
27
27
|
* @param limit Specifies the maximum number of records to return.
|
|
28
28
|
* @param skip Specifies the offset for the first records to return.
|
|
29
29
|
* @param order Specifies the order in which to sort the results.
|