@openfort/openfort-js 0.2.4 → 0.2.6
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/generated/api.d.ts +211 -208
- package/dist/generated/api.js +52 -101
- package/dist/generated/api.js.map +1 -1
- package/dist/key-pair.js +1 -1
- package/dist/key-pair.js.map +1 -1
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
package/dist/generated/api.js
CHANGED
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.TransactionIntentsApi = exports.TransactionIntentsApiFactory = exports.TransactionIntentsApiFp = exports.TransactionIntentsApiAxiosParamCreator = exports.SessionsApi = exports.SessionsApiFactory = exports.SessionsApiFp = exports.SessionsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.PolicyRulesApi = exports.PolicyRulesApiFactory = exports.PolicyRulesApiFp = exports.PolicyRulesApiAxiosParamCreator = exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = exports.PlayersApi = exports.PlayersApiFactory = exports.PlayersApiFp = exports.PlayersApiAxiosParamCreator = exports.ContractsApi = exports.ContractsApiFactory = exports.ContractsApiFp = exports.ContractsApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.SortOrder = exports.PolicySchema = exports.PKPolicy = exports.PKLocation = exports.AssetType = void 0;
|
|
19
|
+
exports.TransactionIntentsApi = exports.TransactionIntentsApiFactory = exports.TransactionIntentsApiFp = exports.TransactionIntentsApiAxiosParamCreator = exports.SessionsApi = exports.SessionsApiFactory = exports.SessionsApiFp = exports.SessionsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.PolicyRulesApi = exports.PolicyRulesApiFactory = exports.PolicyRulesApiFp = exports.PolicyRulesApiAxiosParamCreator = exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = exports.PlayersApi = exports.PlayersApiFactory = exports.PlayersApiFp = exports.PlayersApiAxiosParamCreator = exports.ContractsApi = exports.ContractsApiFactory = exports.ContractsApiFp = exports.ContractsApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.SponsorSchema = exports.SortOrder = exports.PolicySchema = exports.PKPolicy = exports.PKLocation = exports.AssetType = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -71,6 +71,15 @@ exports.SortOrder = {
|
|
|
71
71
|
Asc: 'asc',
|
|
72
72
|
Desc: 'desc'
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
* @enum {string}
|
|
78
|
+
*/
|
|
79
|
+
exports.SponsorSchema = {
|
|
80
|
+
PayForUser: 'pay_for_user',
|
|
81
|
+
ChargeCustomTokens: 'charge_custom_tokens'
|
|
82
|
+
};
|
|
74
83
|
/**
|
|
75
84
|
* AccountsApi - axios parameter creator
|
|
76
85
|
* @export
|
|
@@ -237,39 +246,6 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
237
246
|
options: localVarRequestOptions,
|
|
238
247
|
};
|
|
239
248
|
},
|
|
240
|
-
/**
|
|
241
|
-
* Sign a given text
|
|
242
|
-
* @param {string} id Specifies the unique account ID.
|
|
243
|
-
* @param {SignTextRequest} signTextRequest
|
|
244
|
-
* @param {*} [options] Override http request option.
|
|
245
|
-
* @throws {RequiredError}
|
|
246
|
-
*/
|
|
247
|
-
signText: async (id, signTextRequest, options = {}) => {
|
|
248
|
-
// verify required parameter 'id' is not null or undefined
|
|
249
|
-
(0, common_1.assertParamExists)('signText', 'id', id);
|
|
250
|
-
// verify required parameter 'signTextRequest' is not null or undefined
|
|
251
|
-
(0, common_1.assertParamExists)('signText', 'signTextRequest', signTextRequest);
|
|
252
|
-
const localVarPath = `/v1/accounts/{id}/sign-text`
|
|
253
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
254
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
255
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
256
|
-
let baseOptions;
|
|
257
|
-
if (configuration) {
|
|
258
|
-
baseOptions = configuration.baseOptions;
|
|
259
|
-
}
|
|
260
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
261
|
-
const localVarHeaderParameter = {};
|
|
262
|
-
const localVarQueryParameter = {};
|
|
263
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
264
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
265
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
266
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
267
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(signTextRequest, localVarRequestOptions, configuration);
|
|
268
|
-
return {
|
|
269
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
270
|
-
options: localVarRequestOptions,
|
|
271
|
-
};
|
|
272
|
-
},
|
|
273
249
|
/**
|
|
274
250
|
* Request the ownership transfer of an account to a given address.
|
|
275
251
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -367,17 +343,6 @@ const AccountsApiFp = function (configuration) {
|
|
|
367
343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.signPayload(id, signPayloadRequest, options);
|
|
368
344
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
369
345
|
},
|
|
370
|
-
/**
|
|
371
|
-
* Sign a given text
|
|
372
|
-
* @param {string} id Specifies the unique account ID.
|
|
373
|
-
* @param {SignTextRequest} signTextRequest
|
|
374
|
-
* @param {*} [options] Override http request option.
|
|
375
|
-
* @throws {RequiredError}
|
|
376
|
-
*/
|
|
377
|
-
async signText(id, signTextRequest, options) {
|
|
378
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.signText(id, signTextRequest, options);
|
|
379
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
380
|
-
},
|
|
381
346
|
/**
|
|
382
347
|
* Request the ownership transfer of an account to a given address.
|
|
383
348
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -448,16 +413,6 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
448
413
|
signPayload(id, signPayloadRequest, options) {
|
|
449
414
|
return localVarFp.signPayload(id, signPayloadRequest, options).then((request) => request(axios, basePath));
|
|
450
415
|
},
|
|
451
|
-
/**
|
|
452
|
-
* Sign a given text
|
|
453
|
-
* @param {string} id Specifies the unique account ID.
|
|
454
|
-
* @param {SignTextRequest} signTextRequest
|
|
455
|
-
* @param {*} [options] Override http request option.
|
|
456
|
-
* @throws {RequiredError}
|
|
457
|
-
*/
|
|
458
|
-
signText(id, signTextRequest, options) {
|
|
459
|
-
return localVarFp.signText(id, signTextRequest, options).then((request) => request(axios, basePath));
|
|
460
|
-
},
|
|
461
416
|
/**
|
|
462
417
|
* Request the ownership transfer of an account to a given address.
|
|
463
418
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -532,17 +487,6 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
532
487
|
signPayload(id, signPayloadRequest, options) {
|
|
533
488
|
return (0, exports.AccountsApiFp)(this.configuration).signPayload(id, signPayloadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
534
489
|
}
|
|
535
|
-
/**
|
|
536
|
-
* Sign a given text
|
|
537
|
-
* @param {string} id Specifies the unique account ID.
|
|
538
|
-
* @param {SignTextRequest} signTextRequest
|
|
539
|
-
* @param {*} [options] Override http request option.
|
|
540
|
-
* @throws {RequiredError}
|
|
541
|
-
* @memberof AccountsApi
|
|
542
|
-
*/
|
|
543
|
-
signText(id, signTextRequest, options) {
|
|
544
|
-
return (0, exports.AccountsApiFp)(this.configuration).signText(id, signTextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
545
|
-
}
|
|
546
490
|
/**
|
|
547
491
|
* Request the ownership transfer of an account to a given address.
|
|
548
492
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -1545,13 +1489,13 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
1545
1489
|
return {
|
|
1546
1490
|
/**
|
|
1547
1491
|
* Creates a policy object.
|
|
1548
|
-
* @param {
|
|
1492
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
1549
1493
|
* @param {*} [options] Override http request option.
|
|
1550
1494
|
* @throws {RequiredError}
|
|
1551
1495
|
*/
|
|
1552
|
-
createPolicy: async (
|
|
1553
|
-
// verify required parameter '
|
|
1554
|
-
(0, common_1.assertParamExists)('createPolicy', '
|
|
1496
|
+
createPolicy: async (createPolicyRequest, options = {}) => {
|
|
1497
|
+
// verify required parameter 'createPolicyRequest' is not null or undefined
|
|
1498
|
+
(0, common_1.assertParamExists)('createPolicy', 'createPolicyRequest', createPolicyRequest);
|
|
1555
1499
|
const localVarPath = `/v1/policies`;
|
|
1556
1500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1557
1501
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1566,7 +1510,7 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
1566
1510
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1567
1511
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1568
1512
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1569
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1513
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPolicyRequest, localVarRequestOptions, configuration);
|
|
1570
1514
|
return {
|
|
1571
1515
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1572
1516
|
options: localVarRequestOptions,
|
|
@@ -1638,10 +1582,11 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
1638
1582
|
* @param {number} [limit]
|
|
1639
1583
|
* @param {Array<string>} [expand]
|
|
1640
1584
|
* @param {number} [skip]
|
|
1585
|
+
* @param {SortOrder} [order]
|
|
1641
1586
|
* @param {*} [options] Override http request option.
|
|
1642
1587
|
* @throws {RequiredError}
|
|
1643
1588
|
*/
|
|
1644
|
-
getPolicies: async (limit, expand, skip, options = {}) => {
|
|
1589
|
+
getPolicies: async (limit, expand, skip, order, options = {}) => {
|
|
1645
1590
|
const localVarPath = `/v1/policies`;
|
|
1646
1591
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1647
1592
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1661,6 +1606,9 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
1661
1606
|
if (skip !== undefined) {
|
|
1662
1607
|
localVarQueryParameter['skip'] = skip;
|
|
1663
1608
|
}
|
|
1609
|
+
if (order !== undefined) {
|
|
1610
|
+
localVarQueryParameter['order'] = order;
|
|
1611
|
+
}
|
|
1664
1612
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1665
1613
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1666
1614
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1808,15 +1756,15 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
1808
1756
|
/**
|
|
1809
1757
|
* Updates a policy object.
|
|
1810
1758
|
* @param {string} id
|
|
1811
|
-
* @param {
|
|
1759
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
1812
1760
|
* @param {*} [options] Override http request option.
|
|
1813
1761
|
* @throws {RequiredError}
|
|
1814
1762
|
*/
|
|
1815
|
-
updatePolicy: async (id,
|
|
1763
|
+
updatePolicy: async (id, updatePolicyRequest, options = {}) => {
|
|
1816
1764
|
// verify required parameter 'id' is not null or undefined
|
|
1817
1765
|
(0, common_1.assertParamExists)('updatePolicy', 'id', id);
|
|
1818
|
-
// verify required parameter '
|
|
1819
|
-
(0, common_1.assertParamExists)('updatePolicy', '
|
|
1766
|
+
// verify required parameter 'updatePolicyRequest' is not null or undefined
|
|
1767
|
+
(0, common_1.assertParamExists)('updatePolicy', 'updatePolicyRequest', updatePolicyRequest);
|
|
1820
1768
|
const localVarPath = `/v1/policies/{id}`
|
|
1821
1769
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1822
1770
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1832,7 +1780,7 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
1832
1780
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1833
1781
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1834
1782
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1835
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1783
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePolicyRequest, localVarRequestOptions, configuration);
|
|
1836
1784
|
return {
|
|
1837
1785
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1838
1786
|
options: localVarRequestOptions,
|
|
@@ -1887,12 +1835,12 @@ const PoliciesApiFp = function (configuration) {
|
|
|
1887
1835
|
return {
|
|
1888
1836
|
/**
|
|
1889
1837
|
* Creates a policy object.
|
|
1890
|
-
* @param {
|
|
1838
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
1891
1839
|
* @param {*} [options] Override http request option.
|
|
1892
1840
|
* @throws {RequiredError}
|
|
1893
1841
|
*/
|
|
1894
|
-
async createPolicy(
|
|
1895
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicy(
|
|
1842
|
+
async createPolicy(createPolicyRequest, options) {
|
|
1843
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicy(createPolicyRequest, options);
|
|
1896
1844
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1897
1845
|
},
|
|
1898
1846
|
/**
|
|
@@ -1921,11 +1869,12 @@ const PoliciesApiFp = function (configuration) {
|
|
|
1921
1869
|
* @param {number} [limit]
|
|
1922
1870
|
* @param {Array<string>} [expand]
|
|
1923
1871
|
* @param {number} [skip]
|
|
1872
|
+
* @param {SortOrder} [order]
|
|
1924
1873
|
* @param {*} [options] Override http request option.
|
|
1925
1874
|
* @throws {RequiredError}
|
|
1926
1875
|
*/
|
|
1927
|
-
async getPolicies(limit, expand, skip, options) {
|
|
1928
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicies(limit, expand, skip, options);
|
|
1876
|
+
async getPolicies(limit, expand, skip, order, options) {
|
|
1877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicies(limit, expand, skip, order, options);
|
|
1929
1878
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1930
1879
|
},
|
|
1931
1880
|
/**
|
|
@@ -1977,12 +1926,12 @@ const PoliciesApiFp = function (configuration) {
|
|
|
1977
1926
|
/**
|
|
1978
1927
|
* Updates a policy object.
|
|
1979
1928
|
* @param {string} id
|
|
1980
|
-
* @param {
|
|
1929
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
1981
1930
|
* @param {*} [options] Override http request option.
|
|
1982
1931
|
* @throws {RequiredError}
|
|
1983
1932
|
*/
|
|
1984
|
-
async updatePolicy(id,
|
|
1985
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePolicy(id,
|
|
1933
|
+
async updatePolicy(id, updatePolicyRequest, options) {
|
|
1934
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePolicy(id, updatePolicyRequest, options);
|
|
1986
1935
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1987
1936
|
},
|
|
1988
1937
|
/**
|
|
@@ -2009,12 +1958,12 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
2009
1958
|
return {
|
|
2010
1959
|
/**
|
|
2011
1960
|
* Creates a policy object.
|
|
2012
|
-
* @param {
|
|
1961
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
2013
1962
|
* @param {*} [options] Override http request option.
|
|
2014
1963
|
* @throws {RequiredError}
|
|
2015
1964
|
*/
|
|
2016
|
-
createPolicy(
|
|
2017
|
-
return localVarFp.createPolicy(
|
|
1965
|
+
createPolicy(createPolicyRequest, options) {
|
|
1966
|
+
return localVarFp.createPolicy(createPolicyRequest, options).then((request) => request(axios, basePath));
|
|
2018
1967
|
},
|
|
2019
1968
|
/**
|
|
2020
1969
|
*
|
|
@@ -2040,11 +1989,12 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
2040
1989
|
* @param {number} [limit]
|
|
2041
1990
|
* @param {Array<string>} [expand]
|
|
2042
1991
|
* @param {number} [skip]
|
|
1992
|
+
* @param {SortOrder} [order]
|
|
2043
1993
|
* @param {*} [options] Override http request option.
|
|
2044
1994
|
* @throws {RequiredError}
|
|
2045
1995
|
*/
|
|
2046
|
-
getPolicies(limit, expand, skip, options) {
|
|
2047
|
-
return localVarFp.getPolicies(limit, expand, skip, options).then((request) => request(axios, basePath));
|
|
1996
|
+
getPolicies(limit, expand, skip, order, options) {
|
|
1997
|
+
return localVarFp.getPolicies(limit, expand, skip, order, options).then((request) => request(axios, basePath));
|
|
2048
1998
|
},
|
|
2049
1999
|
/**
|
|
2050
2000
|
* Gets a policy object for a given project.
|
|
@@ -2091,12 +2041,12 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
2091
2041
|
/**
|
|
2092
2042
|
* Updates a policy object.
|
|
2093
2043
|
* @param {string} id
|
|
2094
|
-
* @param {
|
|
2044
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
2095
2045
|
* @param {*} [options] Override http request option.
|
|
2096
2046
|
* @throws {RequiredError}
|
|
2097
2047
|
*/
|
|
2098
|
-
updatePolicy(id,
|
|
2099
|
-
return localVarFp.updatePolicy(id,
|
|
2048
|
+
updatePolicy(id, updatePolicyRequest, options) {
|
|
2049
|
+
return localVarFp.updatePolicy(id, updatePolicyRequest, options).then((request) => request(axios, basePath));
|
|
2100
2050
|
},
|
|
2101
2051
|
/**
|
|
2102
2052
|
*
|
|
@@ -2121,13 +2071,13 @@ exports.PoliciesApiFactory = PoliciesApiFactory;
|
|
|
2121
2071
|
class PoliciesApi extends base_1.BaseAPI {
|
|
2122
2072
|
/**
|
|
2123
2073
|
* Creates a policy object.
|
|
2124
|
-
* @param {
|
|
2074
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
2125
2075
|
* @param {*} [options] Override http request option.
|
|
2126
2076
|
* @throws {RequiredError}
|
|
2127
2077
|
* @memberof PoliciesApi
|
|
2128
2078
|
*/
|
|
2129
|
-
createPolicy(
|
|
2130
|
-
return (0, exports.PoliciesApiFp)(this.configuration).createPolicy(
|
|
2079
|
+
createPolicy(createPolicyRequest, options) {
|
|
2080
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createPolicy(createPolicyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2131
2081
|
}
|
|
2132
2082
|
/**
|
|
2133
2083
|
*
|
|
@@ -2155,12 +2105,13 @@ class PoliciesApi extends base_1.BaseAPI {
|
|
|
2155
2105
|
* @param {number} [limit]
|
|
2156
2106
|
* @param {Array<string>} [expand]
|
|
2157
2107
|
* @param {number} [skip]
|
|
2108
|
+
* @param {SortOrder} [order]
|
|
2158
2109
|
* @param {*} [options] Override http request option.
|
|
2159
2110
|
* @throws {RequiredError}
|
|
2160
2111
|
* @memberof PoliciesApi
|
|
2161
2112
|
*/
|
|
2162
|
-
getPolicies(limit, expand, skip, options) {
|
|
2163
|
-
return (0, exports.PoliciesApiFp)(this.configuration).getPolicies(limit, expand, skip, options).then((request) => request(this.axios, this.basePath));
|
|
2113
|
+
getPolicies(limit, expand, skip, order, options) {
|
|
2114
|
+
return (0, exports.PoliciesApiFp)(this.configuration).getPolicies(limit, expand, skip, order, options).then((request) => request(this.axios, this.basePath));
|
|
2164
2115
|
}
|
|
2165
2116
|
/**
|
|
2166
2117
|
* Gets a policy object for a given project.
|
|
@@ -2211,13 +2162,13 @@ class PoliciesApi extends base_1.BaseAPI {
|
|
|
2211
2162
|
/**
|
|
2212
2163
|
* Updates a policy object.
|
|
2213
2164
|
* @param {string} id
|
|
2214
|
-
* @param {
|
|
2165
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
2215
2166
|
* @param {*} [options] Override http request option.
|
|
2216
2167
|
* @throws {RequiredError}
|
|
2217
2168
|
* @memberof PoliciesApi
|
|
2218
2169
|
*/
|
|
2219
|
-
updatePolicy(id,
|
|
2220
|
-
return (0, exports.PoliciesApiFp)(this.configuration).updatePolicy(id,
|
|
2170
|
+
updatePolicy(id, updatePolicyRequest, options) {
|
|
2171
|
+
return (0, exports.PoliciesApiFp)(this.configuration).updatePolicy(id, updatePolicyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2221
2172
|
}
|
|
2222
2173
|
/**
|
|
2223
2174
|
*
|