@nexgencloud/hyperstack-sdk-typescript 1.51.1-alpha → 1.52.0-alpha
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/README.md +2 -2
- package/api.ts +841 -0
- package/dist/api.d.ts +564 -0
- package/dist/api.js +519 -5
- package/dist/esm/api.d.ts +564 -0
- package/dist/esm/api.js +506 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -38,6 +38,13 @@ export const BetaAccessStatusItemStatusEnum = {
|
|
|
38
38
|
Denied: 'denied',
|
|
39
39
|
Revoked: 'revoked'
|
|
40
40
|
};
|
|
41
|
+
export const ConsentBlockTypeEnum = {
|
|
42
|
+
Text: 'text',
|
|
43
|
+
Warning: 'warning',
|
|
44
|
+
Info: 'info',
|
|
45
|
+
Success: 'success',
|
|
46
|
+
Failure: 'failure'
|
|
47
|
+
};
|
|
41
48
|
export const CreateClusterNodeFieldsRoleEnum = {
|
|
42
49
|
Worker: 'worker',
|
|
43
50
|
Master: 'master'
|
|
@@ -123,11 +130,32 @@ export const KeypairEnvironmentFeaturesGreenStatusEnum = {
|
|
|
123
130
|
export const ObjectStorageRegionsEnum = {
|
|
124
131
|
Canada1: 'CANADA-1'
|
|
125
132
|
};
|
|
133
|
+
export const RecordConsentRequestActionEnum = {
|
|
134
|
+
Granted: 'granted',
|
|
135
|
+
Revoked: 'revoked'
|
|
136
|
+
};
|
|
137
|
+
export const RecordConsentRequestConsentMethodEnum = {
|
|
138
|
+
WebCheckbox: 'web_checkbox',
|
|
139
|
+
Api: 'api',
|
|
140
|
+
AdminOverride: 'admin_override'
|
|
141
|
+
};
|
|
142
|
+
export const RecordConsentRequestConsentTypeEnum = {
|
|
143
|
+
AutoTopUp: 'auto_top_up'
|
|
144
|
+
};
|
|
126
145
|
export const RegionFieldsGreenStatusEnum = {
|
|
127
146
|
Green: 'GREEN',
|
|
128
147
|
PartiallyGreen: 'PARTIALLY_GREEN',
|
|
129
148
|
NotGreen: 'NOT_GREEN'
|
|
130
149
|
};
|
|
150
|
+
export const UpdateConsentRequestActionEnum = {
|
|
151
|
+
Granted: 'granted',
|
|
152
|
+
Revoked: 'revoked'
|
|
153
|
+
};
|
|
154
|
+
export const UpdateConsentRequestConsentMethodEnum = {
|
|
155
|
+
WebCheckbox: 'web_checkbox',
|
|
156
|
+
Api: 'api',
|
|
157
|
+
AdminOverride: 'admin_override'
|
|
158
|
+
};
|
|
131
159
|
/**
|
|
132
160
|
* AccessKeysApi - axios parameter creator
|
|
133
161
|
* @export
|
|
@@ -13811,6 +13839,484 @@ export class UserApi extends BaseAPI {
|
|
|
13811
13839
|
return UserApiFp(this.configuration).updateUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
|
|
13812
13840
|
}
|
|
13813
13841
|
}
|
|
13842
|
+
/**
|
|
13843
|
+
* UserConsentApi - axios parameter creator
|
|
13844
|
+
* @export
|
|
13845
|
+
*/
|
|
13846
|
+
export const UserConsentApiAxiosParamCreator = function (configuration) {
|
|
13847
|
+
return {
|
|
13848
|
+
/**
|
|
13849
|
+
* Add a new consent given by the User
|
|
13850
|
+
* @summary Add a new User consent
|
|
13851
|
+
* @param {RecordConsentRequest} payload
|
|
13852
|
+
* @param {*} [options] Override http request option.
|
|
13853
|
+
* @throws {RequiredError}
|
|
13854
|
+
*/
|
|
13855
|
+
addANewConsentForAUser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
13856
|
+
// verify required parameter 'payload' is not null or undefined
|
|
13857
|
+
assertParamExists('addANewConsentForAUser', 'payload', payload);
|
|
13858
|
+
const localVarPath = `/auth/user-consent`;
|
|
13859
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13860
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13861
|
+
let baseOptions;
|
|
13862
|
+
if (configuration) {
|
|
13863
|
+
baseOptions = configuration.baseOptions;
|
|
13864
|
+
}
|
|
13865
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13866
|
+
const localVarHeaderParameter = {};
|
|
13867
|
+
const localVarQueryParameter = {};
|
|
13868
|
+
// authentication apiKey required
|
|
13869
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
13870
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13871
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13873
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13874
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
|
|
13875
|
+
return {
|
|
13876
|
+
url: toPathString(localVarUrlObj),
|
|
13877
|
+
options: localVarRequestOptions,
|
|
13878
|
+
};
|
|
13879
|
+
}),
|
|
13880
|
+
/**
|
|
13881
|
+
* Returns current consent templates for all consent types
|
|
13882
|
+
* @summary Get all consent templates
|
|
13883
|
+
* @param {*} [options] Override http request option.
|
|
13884
|
+
* @throws {RequiredError}
|
|
13885
|
+
*/
|
|
13886
|
+
getAllConsentTemplates: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
13887
|
+
const localVarPath = `/auth/user-consent/templates`;
|
|
13888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13890
|
+
let baseOptions;
|
|
13891
|
+
if (configuration) {
|
|
13892
|
+
baseOptions = configuration.baseOptions;
|
|
13893
|
+
}
|
|
13894
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13895
|
+
const localVarHeaderParameter = {};
|
|
13896
|
+
const localVarQueryParameter = {};
|
|
13897
|
+
// authentication apiKey required
|
|
13898
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
13899
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13900
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13901
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13902
|
+
return {
|
|
13903
|
+
url: toPathString(localVarUrlObj),
|
|
13904
|
+
options: localVarRequestOptions,
|
|
13905
|
+
};
|
|
13906
|
+
}),
|
|
13907
|
+
/**
|
|
13908
|
+
* Fetch all the recorded consents given from a User
|
|
13909
|
+
* @summary Get Consents for a User
|
|
13910
|
+
* @param {string} [consentType] Filter by consent type
|
|
13911
|
+
* @param {*} [options] Override http request option.
|
|
13912
|
+
* @throws {RequiredError}
|
|
13913
|
+
*/
|
|
13914
|
+
getAllConsentsForAUser: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
|
|
13915
|
+
const localVarPath = `/auth/user-consent`;
|
|
13916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13917
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13918
|
+
let baseOptions;
|
|
13919
|
+
if (configuration) {
|
|
13920
|
+
baseOptions = configuration.baseOptions;
|
|
13921
|
+
}
|
|
13922
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13923
|
+
const localVarHeaderParameter = {};
|
|
13924
|
+
const localVarQueryParameter = {};
|
|
13925
|
+
// authentication apiKey required
|
|
13926
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
13927
|
+
if (consentType !== undefined) {
|
|
13928
|
+
localVarQueryParameter['consent_type'] = consentType;
|
|
13929
|
+
}
|
|
13930
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13931
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13932
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13933
|
+
return {
|
|
13934
|
+
url: toPathString(localVarUrlObj),
|
|
13935
|
+
options: localVarRequestOptions,
|
|
13936
|
+
};
|
|
13937
|
+
}),
|
|
13938
|
+
/**
|
|
13939
|
+
* Returns the current consent template for a specific consent type
|
|
13940
|
+
* @summary Get consent template for a specific type
|
|
13941
|
+
* @param {string} consentType
|
|
13942
|
+
* @param {*} [options] Override http request option.
|
|
13943
|
+
* @throws {RequiredError}
|
|
13944
|
+
*/
|
|
13945
|
+
getConsentTemplateByType: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
|
|
13946
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
13947
|
+
assertParamExists('getConsentTemplateByType', 'consentType', consentType);
|
|
13948
|
+
const localVarPath = `/auth/user-consent/templates/{consent_type}`
|
|
13949
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
13950
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13951
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13952
|
+
let baseOptions;
|
|
13953
|
+
if (configuration) {
|
|
13954
|
+
baseOptions = configuration.baseOptions;
|
|
13955
|
+
}
|
|
13956
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13957
|
+
const localVarHeaderParameter = {};
|
|
13958
|
+
const localVarQueryParameter = {};
|
|
13959
|
+
// authentication apiKey required
|
|
13960
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
13961
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13963
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13964
|
+
return {
|
|
13965
|
+
url: toPathString(localVarUrlObj),
|
|
13966
|
+
options: localVarRequestOptions,
|
|
13967
|
+
};
|
|
13968
|
+
}),
|
|
13969
|
+
/**
|
|
13970
|
+
* Revoke or grant a consent to the User
|
|
13971
|
+
* @summary Grant or revoke an existing consent
|
|
13972
|
+
* @param {string} consentType
|
|
13973
|
+
* @param {UpdateConsentRequest} payload
|
|
13974
|
+
* @param {*} [options] Override http request option.
|
|
13975
|
+
* @throws {RequiredError}
|
|
13976
|
+
*/
|
|
13977
|
+
updateAConsentActionByType: (consentType_1, payload_1, ...args_1) => __awaiter(this, [consentType_1, payload_1, ...args_1], void 0, function* (consentType, payload, options = {}) {
|
|
13978
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
13979
|
+
assertParamExists('updateAConsentActionByType', 'consentType', consentType);
|
|
13980
|
+
// verify required parameter 'payload' is not null or undefined
|
|
13981
|
+
assertParamExists('updateAConsentActionByType', 'payload', payload);
|
|
13982
|
+
const localVarPath = `/auth/user-consent/{consent_type}`
|
|
13983
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
13984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13986
|
+
let baseOptions;
|
|
13987
|
+
if (configuration) {
|
|
13988
|
+
baseOptions = configuration.baseOptions;
|
|
13989
|
+
}
|
|
13990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
13991
|
+
const localVarHeaderParameter = {};
|
|
13992
|
+
const localVarQueryParameter = {};
|
|
13993
|
+
// authentication apiKey required
|
|
13994
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
13995
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13996
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13997
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13998
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13999
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
|
|
14000
|
+
return {
|
|
14001
|
+
url: toPathString(localVarUrlObj),
|
|
14002
|
+
options: localVarRequestOptions,
|
|
14003
|
+
};
|
|
14004
|
+
}),
|
|
14005
|
+
};
|
|
14006
|
+
};
|
|
14007
|
+
/**
|
|
14008
|
+
* UserConsentApi - functional programming interface
|
|
14009
|
+
* @export
|
|
14010
|
+
*/
|
|
14011
|
+
export const UserConsentApiFp = function (configuration) {
|
|
14012
|
+
const localVarAxiosParamCreator = UserConsentApiAxiosParamCreator(configuration);
|
|
14013
|
+
return {
|
|
14014
|
+
/**
|
|
14015
|
+
* Add a new consent given by the User
|
|
14016
|
+
* @summary Add a new User consent
|
|
14017
|
+
* @param {RecordConsentRequest} payload
|
|
14018
|
+
* @param {*} [options] Override http request option.
|
|
14019
|
+
* @throws {RequiredError}
|
|
14020
|
+
*/
|
|
14021
|
+
addANewConsentForAUser(payload, options) {
|
|
14022
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14023
|
+
var _a, _b, _c;
|
|
14024
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addANewConsentForAUser(payload, options);
|
|
14025
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14026
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.addANewConsentForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14027
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14028
|
+
});
|
|
14029
|
+
},
|
|
14030
|
+
/**
|
|
14031
|
+
* Returns current consent templates for all consent types
|
|
14032
|
+
* @summary Get all consent templates
|
|
14033
|
+
* @param {*} [options] Override http request option.
|
|
14034
|
+
* @throws {RequiredError}
|
|
14035
|
+
*/
|
|
14036
|
+
getAllConsentTemplates(options) {
|
|
14037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14038
|
+
var _a, _b, _c;
|
|
14039
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentTemplates(options);
|
|
14040
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14041
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.getAllConsentTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14042
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14043
|
+
});
|
|
14044
|
+
},
|
|
14045
|
+
/**
|
|
14046
|
+
* Fetch all the recorded consents given from a User
|
|
14047
|
+
* @summary Get Consents for a User
|
|
14048
|
+
* @param {string} [consentType] Filter by consent type
|
|
14049
|
+
* @param {*} [options] Override http request option.
|
|
14050
|
+
* @throws {RequiredError}
|
|
14051
|
+
*/
|
|
14052
|
+
getAllConsentsForAUser(consentType, options) {
|
|
14053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14054
|
+
var _a, _b, _c;
|
|
14055
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentsForAUser(consentType, options);
|
|
14056
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14057
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.getAllConsentsForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14058
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14059
|
+
});
|
|
14060
|
+
},
|
|
14061
|
+
/**
|
|
14062
|
+
* Returns the current consent template for a specific consent type
|
|
14063
|
+
* @summary Get consent template for a specific type
|
|
14064
|
+
* @param {string} consentType
|
|
14065
|
+
* @param {*} [options] Override http request option.
|
|
14066
|
+
* @throws {RequiredError}
|
|
14067
|
+
*/
|
|
14068
|
+
getConsentTemplateByType(consentType, options) {
|
|
14069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14070
|
+
var _a, _b, _c;
|
|
14071
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentTemplateByType(consentType, options);
|
|
14072
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14073
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.getConsentTemplateByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14074
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14075
|
+
});
|
|
14076
|
+
},
|
|
14077
|
+
/**
|
|
14078
|
+
* Revoke or grant a consent to the User
|
|
14079
|
+
* @summary Grant or revoke an existing consent
|
|
14080
|
+
* @param {string} consentType
|
|
14081
|
+
* @param {UpdateConsentRequest} payload
|
|
14082
|
+
* @param {*} [options] Override http request option.
|
|
14083
|
+
* @throws {RequiredError}
|
|
14084
|
+
*/
|
|
14085
|
+
updateAConsentActionByType(consentType, payload, options) {
|
|
14086
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14087
|
+
var _a, _b, _c;
|
|
14088
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAConsentActionByType(consentType, payload, options);
|
|
14089
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14090
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.updateAConsentActionByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14091
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14092
|
+
});
|
|
14093
|
+
},
|
|
14094
|
+
};
|
|
14095
|
+
};
|
|
14096
|
+
/**
|
|
14097
|
+
* UserConsentApi - factory interface
|
|
14098
|
+
* @export
|
|
14099
|
+
*/
|
|
14100
|
+
export const UserConsentApiFactory = function (configuration, basePath, axios) {
|
|
14101
|
+
const localVarFp = UserConsentApiFp(configuration);
|
|
14102
|
+
return {
|
|
14103
|
+
/**
|
|
14104
|
+
* Add a new consent given by the User
|
|
14105
|
+
* @summary Add a new User consent
|
|
14106
|
+
* @param {RecordConsentRequest} payload
|
|
14107
|
+
* @param {*} [options] Override http request option.
|
|
14108
|
+
* @throws {RequiredError}
|
|
14109
|
+
*/
|
|
14110
|
+
addANewConsentForAUser(payload, options) {
|
|
14111
|
+
return localVarFp.addANewConsentForAUser(payload, options).then((request) => request(axios, basePath));
|
|
14112
|
+
},
|
|
14113
|
+
/**
|
|
14114
|
+
* Returns current consent templates for all consent types
|
|
14115
|
+
* @summary Get all consent templates
|
|
14116
|
+
* @param {*} [options] Override http request option.
|
|
14117
|
+
* @throws {RequiredError}
|
|
14118
|
+
*/
|
|
14119
|
+
getAllConsentTemplates(options) {
|
|
14120
|
+
return localVarFp.getAllConsentTemplates(options).then((request) => request(axios, basePath));
|
|
14121
|
+
},
|
|
14122
|
+
/**
|
|
14123
|
+
* Fetch all the recorded consents given from a User
|
|
14124
|
+
* @summary Get Consents for a User
|
|
14125
|
+
* @param {string} [consentType] Filter by consent type
|
|
14126
|
+
* @param {*} [options] Override http request option.
|
|
14127
|
+
* @throws {RequiredError}
|
|
14128
|
+
*/
|
|
14129
|
+
getAllConsentsForAUser(consentType, options) {
|
|
14130
|
+
return localVarFp.getAllConsentsForAUser(consentType, options).then((request) => request(axios, basePath));
|
|
14131
|
+
},
|
|
14132
|
+
/**
|
|
14133
|
+
* Returns the current consent template for a specific consent type
|
|
14134
|
+
* @summary Get consent template for a specific type
|
|
14135
|
+
* @param {string} consentType
|
|
14136
|
+
* @param {*} [options] Override http request option.
|
|
14137
|
+
* @throws {RequiredError}
|
|
14138
|
+
*/
|
|
14139
|
+
getConsentTemplateByType(consentType, options) {
|
|
14140
|
+
return localVarFp.getConsentTemplateByType(consentType, options).then((request) => request(axios, basePath));
|
|
14141
|
+
},
|
|
14142
|
+
/**
|
|
14143
|
+
* Revoke or grant a consent to the User
|
|
14144
|
+
* @summary Grant or revoke an existing consent
|
|
14145
|
+
* @param {string} consentType
|
|
14146
|
+
* @param {UpdateConsentRequest} payload
|
|
14147
|
+
* @param {*} [options] Override http request option.
|
|
14148
|
+
* @throws {RequiredError}
|
|
14149
|
+
*/
|
|
14150
|
+
updateAConsentActionByType(consentType, payload, options) {
|
|
14151
|
+
return localVarFp.updateAConsentActionByType(consentType, payload, options).then((request) => request(axios, basePath));
|
|
14152
|
+
},
|
|
14153
|
+
};
|
|
14154
|
+
};
|
|
14155
|
+
/**
|
|
14156
|
+
* UserConsentApi - object-oriented interface
|
|
14157
|
+
* @export
|
|
14158
|
+
* @class UserConsentApi
|
|
14159
|
+
* @extends {BaseAPI}
|
|
14160
|
+
*/
|
|
14161
|
+
export class UserConsentApi extends BaseAPI {
|
|
14162
|
+
/**
|
|
14163
|
+
* Add a new consent given by the User
|
|
14164
|
+
* @summary Add a new User consent
|
|
14165
|
+
* @param {RecordConsentRequest} payload
|
|
14166
|
+
* @param {*} [options] Override http request option.
|
|
14167
|
+
* @throws {RequiredError}
|
|
14168
|
+
* @memberof UserConsentApi
|
|
14169
|
+
*/
|
|
14170
|
+
addANewConsentForAUser(payload, options) {
|
|
14171
|
+
return UserConsentApiFp(this.configuration).addANewConsentForAUser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
14172
|
+
}
|
|
14173
|
+
/**
|
|
14174
|
+
* Returns current consent templates for all consent types
|
|
14175
|
+
* @summary Get all consent templates
|
|
14176
|
+
* @param {*} [options] Override http request option.
|
|
14177
|
+
* @throws {RequiredError}
|
|
14178
|
+
* @memberof UserConsentApi
|
|
14179
|
+
*/
|
|
14180
|
+
getAllConsentTemplates(options) {
|
|
14181
|
+
return UserConsentApiFp(this.configuration).getAllConsentTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
14182
|
+
}
|
|
14183
|
+
/**
|
|
14184
|
+
* Fetch all the recorded consents given from a User
|
|
14185
|
+
* @summary Get Consents for a User
|
|
14186
|
+
* @param {string} [consentType] Filter by consent type
|
|
14187
|
+
* @param {*} [options] Override http request option.
|
|
14188
|
+
* @throws {RequiredError}
|
|
14189
|
+
* @memberof UserConsentApi
|
|
14190
|
+
*/
|
|
14191
|
+
getAllConsentsForAUser(consentType, options) {
|
|
14192
|
+
return UserConsentApiFp(this.configuration).getAllConsentsForAUser(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
14193
|
+
}
|
|
14194
|
+
/**
|
|
14195
|
+
* Returns the current consent template for a specific consent type
|
|
14196
|
+
* @summary Get consent template for a specific type
|
|
14197
|
+
* @param {string} consentType
|
|
14198
|
+
* @param {*} [options] Override http request option.
|
|
14199
|
+
* @throws {RequiredError}
|
|
14200
|
+
* @memberof UserConsentApi
|
|
14201
|
+
*/
|
|
14202
|
+
getConsentTemplateByType(consentType, options) {
|
|
14203
|
+
return UserConsentApiFp(this.configuration).getConsentTemplateByType(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
14204
|
+
}
|
|
14205
|
+
/**
|
|
14206
|
+
* Revoke or grant a consent to the User
|
|
14207
|
+
* @summary Grant or revoke an existing consent
|
|
14208
|
+
* @param {string} consentType
|
|
14209
|
+
* @param {UpdateConsentRequest} payload
|
|
14210
|
+
* @param {*} [options] Override http request option.
|
|
14211
|
+
* @throws {RequiredError}
|
|
14212
|
+
* @memberof UserConsentApi
|
|
14213
|
+
*/
|
|
14214
|
+
updateAConsentActionByType(consentType, payload, options) {
|
|
14215
|
+
return UserConsentApiFp(this.configuration).updateAConsentActionByType(consentType, payload, options).then((request) => request(this.axios, this.basePath));
|
|
14216
|
+
}
|
|
14217
|
+
}
|
|
14218
|
+
/**
|
|
14219
|
+
* UserConsentEventsApi - axios parameter creator
|
|
14220
|
+
* @export
|
|
14221
|
+
*/
|
|
14222
|
+
export const UserConsentEventsApiAxiosParamCreator = function (configuration) {
|
|
14223
|
+
return {
|
|
14224
|
+
/**
|
|
14225
|
+
* Get all consent audit events
|
|
14226
|
+
* @summary Get audit trail for a consent
|
|
14227
|
+
* @param {string} consentType
|
|
14228
|
+
* @param {*} [options] Override http request option.
|
|
14229
|
+
* @throws {RequiredError}
|
|
14230
|
+
*/
|
|
14231
|
+
getConsentAuditEvents: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
|
|
14232
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
14233
|
+
assertParamExists('getConsentAuditEvents', 'consentType', consentType);
|
|
14234
|
+
const localVarPath = `/auth/user-consent-events/{consent_type}/events`
|
|
14235
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
14236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14238
|
+
let baseOptions;
|
|
14239
|
+
if (configuration) {
|
|
14240
|
+
baseOptions = configuration.baseOptions;
|
|
14241
|
+
}
|
|
14242
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14243
|
+
const localVarHeaderParameter = {};
|
|
14244
|
+
const localVarQueryParameter = {};
|
|
14245
|
+
// authentication apiKey required
|
|
14246
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
14247
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14249
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14250
|
+
return {
|
|
14251
|
+
url: toPathString(localVarUrlObj),
|
|
14252
|
+
options: localVarRequestOptions,
|
|
14253
|
+
};
|
|
14254
|
+
}),
|
|
14255
|
+
};
|
|
14256
|
+
};
|
|
14257
|
+
/**
|
|
14258
|
+
* UserConsentEventsApi - functional programming interface
|
|
14259
|
+
* @export
|
|
14260
|
+
*/
|
|
14261
|
+
export const UserConsentEventsApiFp = function (configuration) {
|
|
14262
|
+
const localVarAxiosParamCreator = UserConsentEventsApiAxiosParamCreator(configuration);
|
|
14263
|
+
return {
|
|
14264
|
+
/**
|
|
14265
|
+
* Get all consent audit events
|
|
14266
|
+
* @summary Get audit trail for a consent
|
|
14267
|
+
* @param {string} consentType
|
|
14268
|
+
* @param {*} [options] Override http request option.
|
|
14269
|
+
* @throws {RequiredError}
|
|
14270
|
+
*/
|
|
14271
|
+
getConsentAuditEvents(consentType, options) {
|
|
14272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14273
|
+
var _a, _b, _c;
|
|
14274
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentAuditEvents(consentType, options);
|
|
14275
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14276
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentEventsApi.getConsentAuditEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14277
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14278
|
+
});
|
|
14279
|
+
},
|
|
14280
|
+
};
|
|
14281
|
+
};
|
|
14282
|
+
/**
|
|
14283
|
+
* UserConsentEventsApi - factory interface
|
|
14284
|
+
* @export
|
|
14285
|
+
*/
|
|
14286
|
+
export const UserConsentEventsApiFactory = function (configuration, basePath, axios) {
|
|
14287
|
+
const localVarFp = UserConsentEventsApiFp(configuration);
|
|
14288
|
+
return {
|
|
14289
|
+
/**
|
|
14290
|
+
* Get all consent audit events
|
|
14291
|
+
* @summary Get audit trail for a consent
|
|
14292
|
+
* @param {string} consentType
|
|
14293
|
+
* @param {*} [options] Override http request option.
|
|
14294
|
+
* @throws {RequiredError}
|
|
14295
|
+
*/
|
|
14296
|
+
getConsentAuditEvents(consentType, options) {
|
|
14297
|
+
return localVarFp.getConsentAuditEvents(consentType, options).then((request) => request(axios, basePath));
|
|
14298
|
+
},
|
|
14299
|
+
};
|
|
14300
|
+
};
|
|
14301
|
+
/**
|
|
14302
|
+
* UserConsentEventsApi - object-oriented interface
|
|
14303
|
+
* @export
|
|
14304
|
+
* @class UserConsentEventsApi
|
|
14305
|
+
* @extends {BaseAPI}
|
|
14306
|
+
*/
|
|
14307
|
+
export class UserConsentEventsApi extends BaseAPI {
|
|
14308
|
+
/**
|
|
14309
|
+
* Get all consent audit events
|
|
14310
|
+
* @summary Get audit trail for a consent
|
|
14311
|
+
* @param {string} consentType
|
|
14312
|
+
* @param {*} [options] Override http request option.
|
|
14313
|
+
* @throws {RequiredError}
|
|
14314
|
+
* @memberof UserConsentEventsApi
|
|
14315
|
+
*/
|
|
14316
|
+
getConsentAuditEvents(consentType, options) {
|
|
14317
|
+
return UserConsentEventsApiFp(this.configuration).getConsentAuditEvents(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
14318
|
+
}
|
|
14319
|
+
}
|
|
13814
14320
|
/**
|
|
13815
14321
|
* UserDetailChoiceApi - axios parameter creator
|
|
13816
14322
|
* @export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexgencloud/hyperstack-sdk-typescript",
|
|
3
|
-
"version": "v1.
|
|
3
|
+
"version": "v1.52.0-alpha",
|
|
4
4
|
"description": "Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|