@nexgencloud/hyperstack-sdk-typescript 1.52.3-alpha → 1.54.7-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 +582 -0
- package/common.ts +2 -2
- package/dist/api.d.ts +595 -219
- package/dist/api.js +370 -4
- package/dist/esm/api.d.ts +595 -219
- package/dist/esm/api.js +362 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @nexgencloud/hyperstack-sdk-typescript@v1.
|
|
1
|
+
## @nexgencloud/hyperstack-sdk-typescript@v1.54.7-alpha
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @nexgencloud/hyperstack-sdk-typescript@v1.
|
|
39
|
+
npm install @nexgencloud/hyperstack-sdk-typescript@v1.54.7-alpha --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -80,6 +80,25 @@ export interface AllocatedGPUCountGraph {
|
|
|
80
80
|
*/
|
|
81
81
|
'value'?: number;
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @export
|
|
86
|
+
* @interface AllowedCountriesResponse
|
|
87
|
+
*/
|
|
88
|
+
export interface AllowedCountriesResponse {
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<string>}
|
|
92
|
+
* @memberof AllowedCountriesResponse
|
|
93
|
+
*/
|
|
94
|
+
'countries'?: Array<string>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof AllowedCountriesResponse
|
|
99
|
+
*/
|
|
100
|
+
'status'?: boolean;
|
|
101
|
+
}
|
|
83
102
|
/**
|
|
84
103
|
*
|
|
85
104
|
* @export
|
|
@@ -3391,6 +3410,129 @@ export interface EditLabelOfAnExistingVMPayload {
|
|
|
3391
3410
|
*/
|
|
3392
3411
|
'labels'?: Array<string>;
|
|
3393
3412
|
}
|
|
3413
|
+
/**
|
|
3414
|
+
*
|
|
3415
|
+
* @export
|
|
3416
|
+
* @interface EmailCategory
|
|
3417
|
+
*/
|
|
3418
|
+
export interface EmailCategory {
|
|
3419
|
+
/**
|
|
3420
|
+
*
|
|
3421
|
+
* @type {Array<EmailCategoryChild>}
|
|
3422
|
+
* @memberof EmailCategory
|
|
3423
|
+
*/
|
|
3424
|
+
'childs'?: Array<EmailCategoryChild>;
|
|
3425
|
+
/**
|
|
3426
|
+
*
|
|
3427
|
+
* @type {string}
|
|
3428
|
+
* @memberof EmailCategory
|
|
3429
|
+
*/
|
|
3430
|
+
'description'?: string;
|
|
3431
|
+
/**
|
|
3432
|
+
*
|
|
3433
|
+
* @type {string}
|
|
3434
|
+
* @memberof EmailCategory
|
|
3435
|
+
*/
|
|
3436
|
+
'display_name'?: string;
|
|
3437
|
+
/**
|
|
3438
|
+
*
|
|
3439
|
+
* @type {string}
|
|
3440
|
+
* @memberof EmailCategory
|
|
3441
|
+
*/
|
|
3442
|
+
'icon'?: string;
|
|
3443
|
+
/**
|
|
3444
|
+
*
|
|
3445
|
+
* @type {boolean}
|
|
3446
|
+
* @memberof EmailCategory
|
|
3447
|
+
*/
|
|
3448
|
+
'opted_in'?: boolean;
|
|
3449
|
+
/**
|
|
3450
|
+
*
|
|
3451
|
+
* @type {number}
|
|
3452
|
+
* @memberof EmailCategory
|
|
3453
|
+
*/
|
|
3454
|
+
'position'?: number;
|
|
3455
|
+
/**
|
|
3456
|
+
*
|
|
3457
|
+
* @type {boolean}
|
|
3458
|
+
* @memberof EmailCategory
|
|
3459
|
+
*/
|
|
3460
|
+
'required'?: boolean;
|
|
3461
|
+
/**
|
|
3462
|
+
*
|
|
3463
|
+
* @type {string}
|
|
3464
|
+
* @memberof EmailCategory
|
|
3465
|
+
*/
|
|
3466
|
+
'slug'?: string;
|
|
3467
|
+
}
|
|
3468
|
+
/**
|
|
3469
|
+
*
|
|
3470
|
+
* @export
|
|
3471
|
+
* @interface EmailCategoryChild
|
|
3472
|
+
*/
|
|
3473
|
+
export interface EmailCategoryChild {
|
|
3474
|
+
/**
|
|
3475
|
+
*
|
|
3476
|
+
* @type {string}
|
|
3477
|
+
* @memberof EmailCategoryChild
|
|
3478
|
+
*/
|
|
3479
|
+
'description'?: string;
|
|
3480
|
+
/**
|
|
3481
|
+
*
|
|
3482
|
+
* @type {string}
|
|
3483
|
+
* @memberof EmailCategoryChild
|
|
3484
|
+
*/
|
|
3485
|
+
'display_name'?: string;
|
|
3486
|
+
/**
|
|
3487
|
+
*
|
|
3488
|
+
* @type {number}
|
|
3489
|
+
* @memberof EmailCategoryChild
|
|
3490
|
+
*/
|
|
3491
|
+
'email_category_id'?: number;
|
|
3492
|
+
/**
|
|
3493
|
+
*
|
|
3494
|
+
* @type {string}
|
|
3495
|
+
* @memberof EmailCategoryChild
|
|
3496
|
+
*/
|
|
3497
|
+
'icon'?: string;
|
|
3498
|
+
/**
|
|
3499
|
+
*
|
|
3500
|
+
* @type {boolean}
|
|
3501
|
+
* @memberof EmailCategoryChild
|
|
3502
|
+
*/
|
|
3503
|
+
'opted_in'?: boolean;
|
|
3504
|
+
/**
|
|
3505
|
+
*
|
|
3506
|
+
* @type {number}
|
|
3507
|
+
* @memberof EmailCategoryChild
|
|
3508
|
+
*/
|
|
3509
|
+
'position'?: number;
|
|
3510
|
+
/**
|
|
3511
|
+
*
|
|
3512
|
+
* @type {boolean}
|
|
3513
|
+
* @memberof EmailCategoryChild
|
|
3514
|
+
*/
|
|
3515
|
+
'required'?: boolean;
|
|
3516
|
+
/**
|
|
3517
|
+
*
|
|
3518
|
+
* @type {string}
|
|
3519
|
+
* @memberof EmailCategoryChild
|
|
3520
|
+
*/
|
|
3521
|
+
'slug'?: string;
|
|
3522
|
+
}
|
|
3523
|
+
/**
|
|
3524
|
+
*
|
|
3525
|
+
* @export
|
|
3526
|
+
* @interface EmailPreferencesResponse
|
|
3527
|
+
*/
|
|
3528
|
+
export interface EmailPreferencesResponse {
|
|
3529
|
+
/**
|
|
3530
|
+
*
|
|
3531
|
+
* @type {Array<EmailCategory>}
|
|
3532
|
+
* @memberof EmailPreferencesResponse
|
|
3533
|
+
*/
|
|
3534
|
+
'email_categories'?: Array<EmailCategory>;
|
|
3535
|
+
}
|
|
3394
3536
|
/**
|
|
3395
3537
|
*
|
|
3396
3538
|
* @export
|
|
@@ -9387,6 +9529,31 @@ export interface SubscribeOrUnsubscribeUpdatePayload {
|
|
|
9387
9529
|
*/
|
|
9388
9530
|
'subscribe': boolean;
|
|
9389
9531
|
}
|
|
9532
|
+
/**
|
|
9533
|
+
*
|
|
9534
|
+
* @export
|
|
9535
|
+
* @interface SupportedKeypairPublicKeyTypesResponse
|
|
9536
|
+
*/
|
|
9537
|
+
export interface SupportedKeypairPublicKeyTypesResponse {
|
|
9538
|
+
/**
|
|
9539
|
+
*
|
|
9540
|
+
* @type {string}
|
|
9541
|
+
* @memberof SupportedKeypairPublicKeyTypesResponse
|
|
9542
|
+
*/
|
|
9543
|
+
'message'?: string;
|
|
9544
|
+
/**
|
|
9545
|
+
*
|
|
9546
|
+
* @type {boolean}
|
|
9547
|
+
* @memberof SupportedKeypairPublicKeyTypesResponse
|
|
9548
|
+
*/
|
|
9549
|
+
'status'?: boolean;
|
|
9550
|
+
/**
|
|
9551
|
+
*
|
|
9552
|
+
* @type {Array<string>}
|
|
9553
|
+
* @memberof SupportedKeypairPublicKeyTypesResponse
|
|
9554
|
+
*/
|
|
9555
|
+
'supported_key_types'?: Array<string>;
|
|
9556
|
+
}
|
|
9390
9557
|
/**
|
|
9391
9558
|
*
|
|
9392
9559
|
* @export
|
|
@@ -9669,6 +9836,32 @@ export const UpdateConsentRequestConsentMethodEnum = {
|
|
|
9669
9836
|
|
|
9670
9837
|
export type UpdateConsentRequestConsentMethodEnum = typeof UpdateConsentRequestConsentMethodEnum[keyof typeof UpdateConsentRequestConsentMethodEnum];
|
|
9671
9838
|
|
|
9839
|
+
/**
|
|
9840
|
+
*
|
|
9841
|
+
* @export
|
|
9842
|
+
* @interface UpdateEmailPreferenceInput
|
|
9843
|
+
*/
|
|
9844
|
+
export interface UpdateEmailPreferenceInput {
|
|
9845
|
+
/**
|
|
9846
|
+
* Set opted_in status
|
|
9847
|
+
* @type {boolean}
|
|
9848
|
+
* @memberof UpdateEmailPreferenceInput
|
|
9849
|
+
*/
|
|
9850
|
+
'opted_in': boolean;
|
|
9851
|
+
}
|
|
9852
|
+
/**
|
|
9853
|
+
*
|
|
9854
|
+
* @export
|
|
9855
|
+
* @interface UpdateEmailPreferenceResponse
|
|
9856
|
+
*/
|
|
9857
|
+
export interface UpdateEmailPreferenceResponse {
|
|
9858
|
+
/**
|
|
9859
|
+
*
|
|
9860
|
+
* @type {string}
|
|
9861
|
+
* @memberof UpdateEmailPreferenceResponse
|
|
9862
|
+
*/
|
|
9863
|
+
'message'?: string;
|
|
9864
|
+
}
|
|
9672
9865
|
/**
|
|
9673
9866
|
*
|
|
9674
9867
|
* @export
|
|
@@ -19919,6 +20112,265 @@ export class DeploymentApi extends BaseAPI {
|
|
|
19919
20112
|
|
|
19920
20113
|
|
|
19921
20114
|
|
|
20115
|
+
/**
|
|
20116
|
+
* EmailOptInOutApi - axios parameter creator
|
|
20117
|
+
* @export
|
|
20118
|
+
*/
|
|
20119
|
+
export const EmailOptInOutApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20120
|
+
return {
|
|
20121
|
+
/**
|
|
20122
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
20123
|
+
* @summary Get all email preferences for the authenticated user
|
|
20124
|
+
* @param {*} [options] Override http request option.
|
|
20125
|
+
* @throws {RequiredError}
|
|
20126
|
+
*/
|
|
20127
|
+
getEmailPreferencesForAUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20128
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
20129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20131
|
+
let baseOptions;
|
|
20132
|
+
if (configuration) {
|
|
20133
|
+
baseOptions = configuration.baseOptions;
|
|
20134
|
+
}
|
|
20135
|
+
|
|
20136
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20137
|
+
const localVarHeaderParameter = {} as any;
|
|
20138
|
+
const localVarQueryParameter = {} as any;
|
|
20139
|
+
|
|
20140
|
+
// authentication apiKey required
|
|
20141
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
20142
|
+
|
|
20143
|
+
|
|
20144
|
+
|
|
20145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20147
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20148
|
+
|
|
20149
|
+
return {
|
|
20150
|
+
url: toPathString(localVarUrlObj),
|
|
20151
|
+
options: localVarRequestOptions,
|
|
20152
|
+
};
|
|
20153
|
+
},
|
|
20154
|
+
/**
|
|
20155
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
20156
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
20157
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20158
|
+
* @param {*} [options] Override http request option.
|
|
20159
|
+
* @throws {RequiredError}
|
|
20160
|
+
*/
|
|
20161
|
+
toggleAllOptionalEmailPreferencesForTheUser: async (payload: UpdateEmailPreferenceInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20162
|
+
// verify required parameter 'payload' is not null or undefined
|
|
20163
|
+
assertParamExists('toggleAllOptionalEmailPreferencesForTheUser', 'payload', payload)
|
|
20164
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
20165
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20166
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20167
|
+
let baseOptions;
|
|
20168
|
+
if (configuration) {
|
|
20169
|
+
baseOptions = configuration.baseOptions;
|
|
20170
|
+
}
|
|
20171
|
+
|
|
20172
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
20173
|
+
const localVarHeaderParameter = {} as any;
|
|
20174
|
+
const localVarQueryParameter = {} as any;
|
|
20175
|
+
|
|
20176
|
+
// authentication apiKey required
|
|
20177
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
20178
|
+
|
|
20179
|
+
|
|
20180
|
+
|
|
20181
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20182
|
+
|
|
20183
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20185
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20186
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
20187
|
+
|
|
20188
|
+
return {
|
|
20189
|
+
url: toPathString(localVarUrlObj),
|
|
20190
|
+
options: localVarRequestOptions,
|
|
20191
|
+
};
|
|
20192
|
+
},
|
|
20193
|
+
/**
|
|
20194
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
20195
|
+
* @summary Update email preference opted_in status for a category slug
|
|
20196
|
+
* @param {string} slug
|
|
20197
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20198
|
+
* @param {*} [options] Override http request option.
|
|
20199
|
+
* @throws {RequiredError}
|
|
20200
|
+
*/
|
|
20201
|
+
updateEmailPreferenceForACategoryBySlug: async (slug: string, payload: UpdateEmailPreferenceInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20202
|
+
// verify required parameter 'slug' is not null or undefined
|
|
20203
|
+
assertParamExists('updateEmailPreferenceForACategoryBySlug', 'slug', slug)
|
|
20204
|
+
// verify required parameter 'payload' is not null or undefined
|
|
20205
|
+
assertParamExists('updateEmailPreferenceForACategoryBySlug', 'payload', payload)
|
|
20206
|
+
const localVarPath = `/auth/email/opt-out/{slug}`
|
|
20207
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
20208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20210
|
+
let baseOptions;
|
|
20211
|
+
if (configuration) {
|
|
20212
|
+
baseOptions = configuration.baseOptions;
|
|
20213
|
+
}
|
|
20214
|
+
|
|
20215
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
20216
|
+
const localVarHeaderParameter = {} as any;
|
|
20217
|
+
const localVarQueryParameter = {} as any;
|
|
20218
|
+
|
|
20219
|
+
// authentication apiKey required
|
|
20220
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
20221
|
+
|
|
20222
|
+
|
|
20223
|
+
|
|
20224
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20225
|
+
|
|
20226
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20227
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20228
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20229
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
20230
|
+
|
|
20231
|
+
return {
|
|
20232
|
+
url: toPathString(localVarUrlObj),
|
|
20233
|
+
options: localVarRequestOptions,
|
|
20234
|
+
};
|
|
20235
|
+
},
|
|
20236
|
+
}
|
|
20237
|
+
};
|
|
20238
|
+
|
|
20239
|
+
/**
|
|
20240
|
+
* EmailOptInOutApi - functional programming interface
|
|
20241
|
+
* @export
|
|
20242
|
+
*/
|
|
20243
|
+
export const EmailOptInOutApiFp = function(configuration?: Configuration) {
|
|
20244
|
+
const localVarAxiosParamCreator = EmailOptInOutApiAxiosParamCreator(configuration)
|
|
20245
|
+
return {
|
|
20246
|
+
/**
|
|
20247
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
20248
|
+
* @summary Get all email preferences for the authenticated user
|
|
20249
|
+
* @param {*} [options] Override http request option.
|
|
20250
|
+
* @throws {RequiredError}
|
|
20251
|
+
*/
|
|
20252
|
+
async getEmailPreferencesForAUser(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailPreferencesResponse>> {
|
|
20253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEmailPreferencesForAUser(options);
|
|
20254
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20255
|
+
const localVarOperationServerBasePath = operationServerMap['EmailOptInOutApi.getEmailPreferencesForAUser']?.[localVarOperationServerIndex]?.url;
|
|
20256
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20257
|
+
},
|
|
20258
|
+
/**
|
|
20259
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
20260
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
20261
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20262
|
+
* @param {*} [options] Override http request option.
|
|
20263
|
+
* @throws {RequiredError}
|
|
20264
|
+
*/
|
|
20265
|
+
async toggleAllOptionalEmailPreferencesForTheUser(payload: UpdateEmailPreferenceInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateEmailPreferenceResponse>> {
|
|
20266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toggleAllOptionalEmailPreferencesForTheUser(payload, options);
|
|
20267
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20268
|
+
const localVarOperationServerBasePath = operationServerMap['EmailOptInOutApi.toggleAllOptionalEmailPreferencesForTheUser']?.[localVarOperationServerIndex]?.url;
|
|
20269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20270
|
+
},
|
|
20271
|
+
/**
|
|
20272
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
20273
|
+
* @summary Update email preference opted_in status for a category slug
|
|
20274
|
+
* @param {string} slug
|
|
20275
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20276
|
+
* @param {*} [options] Override http request option.
|
|
20277
|
+
* @throws {RequiredError}
|
|
20278
|
+
*/
|
|
20279
|
+
async updateEmailPreferenceForACategoryBySlug(slug: string, payload: UpdateEmailPreferenceInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateEmailPreferenceResponse>> {
|
|
20280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEmailPreferenceForACategoryBySlug(slug, payload, options);
|
|
20281
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20282
|
+
const localVarOperationServerBasePath = operationServerMap['EmailOptInOutApi.updateEmailPreferenceForACategoryBySlug']?.[localVarOperationServerIndex]?.url;
|
|
20283
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20284
|
+
},
|
|
20285
|
+
}
|
|
20286
|
+
};
|
|
20287
|
+
|
|
20288
|
+
/**
|
|
20289
|
+
* EmailOptInOutApi - factory interface
|
|
20290
|
+
* @export
|
|
20291
|
+
*/
|
|
20292
|
+
export const EmailOptInOutApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20293
|
+
const localVarFp = EmailOptInOutApiFp(configuration)
|
|
20294
|
+
return {
|
|
20295
|
+
/**
|
|
20296
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
20297
|
+
* @summary Get all email preferences for the authenticated user
|
|
20298
|
+
* @param {*} [options] Override http request option.
|
|
20299
|
+
* @throws {RequiredError}
|
|
20300
|
+
*/
|
|
20301
|
+
getEmailPreferencesForAUser(options?: RawAxiosRequestConfig): AxiosPromise<EmailPreferencesResponse> {
|
|
20302
|
+
return localVarFp.getEmailPreferencesForAUser(options).then((request) => request(axios, basePath));
|
|
20303
|
+
},
|
|
20304
|
+
/**
|
|
20305
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
20306
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
20307
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20308
|
+
* @param {*} [options] Override http request option.
|
|
20309
|
+
* @throws {RequiredError}
|
|
20310
|
+
*/
|
|
20311
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload: UpdateEmailPreferenceInput, options?: RawAxiosRequestConfig): AxiosPromise<UpdateEmailPreferenceResponse> {
|
|
20312
|
+
return localVarFp.toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(axios, basePath));
|
|
20313
|
+
},
|
|
20314
|
+
/**
|
|
20315
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
20316
|
+
* @summary Update email preference opted_in status for a category slug
|
|
20317
|
+
* @param {string} slug
|
|
20318
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20319
|
+
* @param {*} [options] Override http request option.
|
|
20320
|
+
* @throws {RequiredError}
|
|
20321
|
+
*/
|
|
20322
|
+
updateEmailPreferenceForACategoryBySlug(slug: string, payload: UpdateEmailPreferenceInput, options?: RawAxiosRequestConfig): AxiosPromise<UpdateEmailPreferenceResponse> {
|
|
20323
|
+
return localVarFp.updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(axios, basePath));
|
|
20324
|
+
},
|
|
20325
|
+
};
|
|
20326
|
+
};
|
|
20327
|
+
|
|
20328
|
+
/**
|
|
20329
|
+
* EmailOptInOutApi - object-oriented interface
|
|
20330
|
+
* @export
|
|
20331
|
+
* @class EmailOptInOutApi
|
|
20332
|
+
* @extends {BaseAPI}
|
|
20333
|
+
*/
|
|
20334
|
+
export class EmailOptInOutApi extends BaseAPI {
|
|
20335
|
+
/**
|
|
20336
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
20337
|
+
* @summary Get all email preferences for the authenticated user
|
|
20338
|
+
* @param {*} [options] Override http request option.
|
|
20339
|
+
* @throws {RequiredError}
|
|
20340
|
+
* @memberof EmailOptInOutApi
|
|
20341
|
+
*/
|
|
20342
|
+
public getEmailPreferencesForAUser(options?: RawAxiosRequestConfig) {
|
|
20343
|
+
return EmailOptInOutApiFp(this.configuration).getEmailPreferencesForAUser(options).then((request) => request(this.axios, this.basePath));
|
|
20344
|
+
}
|
|
20345
|
+
|
|
20346
|
+
/**
|
|
20347
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
20348
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
20349
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20350
|
+
* @param {*} [options] Override http request option.
|
|
20351
|
+
* @throws {RequiredError}
|
|
20352
|
+
* @memberof EmailOptInOutApi
|
|
20353
|
+
*/
|
|
20354
|
+
public toggleAllOptionalEmailPreferencesForTheUser(payload: UpdateEmailPreferenceInput, options?: RawAxiosRequestConfig) {
|
|
20355
|
+
return EmailOptInOutApiFp(this.configuration).toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
20356
|
+
}
|
|
20357
|
+
|
|
20358
|
+
/**
|
|
20359
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
20360
|
+
* @summary Update email preference opted_in status for a category slug
|
|
20361
|
+
* @param {string} slug
|
|
20362
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
20363
|
+
* @param {*} [options] Override http request option.
|
|
20364
|
+
* @throws {RequiredError}
|
|
20365
|
+
* @memberof EmailOptInOutApi
|
|
20366
|
+
*/
|
|
20367
|
+
public updateEmailPreferenceForACategoryBySlug(slug: string, payload: UpdateEmailPreferenceInput, options?: RawAxiosRequestConfig) {
|
|
20368
|
+
return EmailOptInOutApiFp(this.configuration).updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(this.axios, this.basePath));
|
|
20369
|
+
}
|
|
20370
|
+
}
|
|
20371
|
+
|
|
20372
|
+
|
|
20373
|
+
|
|
19922
20374
|
/**
|
|
19923
20375
|
* EnvironmentApi - axios parameter creator
|
|
19924
20376
|
* @export
|
|
@@ -22545,6 +22997,39 @@ export const KeypairApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
22545
22997
|
|
|
22546
22998
|
|
|
22547
22999
|
|
|
23000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23002
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
23003
|
+
|
|
23004
|
+
return {
|
|
23005
|
+
url: toPathString(localVarUrlObj),
|
|
23006
|
+
options: localVarRequestOptions,
|
|
23007
|
+
};
|
|
23008
|
+
},
|
|
23009
|
+
/**
|
|
23010
|
+
* Retrieves the SSH public key types supported for import.
|
|
23011
|
+
* @summary List supported key pair types
|
|
23012
|
+
* @param {*} [options] Override http request option.
|
|
23013
|
+
* @throws {RequiredError}
|
|
23014
|
+
*/
|
|
23015
|
+
listSupportedKeyPairTypes: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23016
|
+
const localVarPath = `/core/supported-keypairs`;
|
|
23017
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23018
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23019
|
+
let baseOptions;
|
|
23020
|
+
if (configuration) {
|
|
23021
|
+
baseOptions = configuration.baseOptions;
|
|
23022
|
+
}
|
|
23023
|
+
|
|
23024
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
23025
|
+
const localVarHeaderParameter = {} as any;
|
|
23026
|
+
const localVarQueryParameter = {} as any;
|
|
23027
|
+
|
|
23028
|
+
// authentication apiKey required
|
|
23029
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
23030
|
+
|
|
23031
|
+
|
|
23032
|
+
|
|
22548
23033
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22549
23034
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22550
23035
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -22648,6 +23133,18 @@ export const KeypairApiFp = function(configuration?: Configuration) {
|
|
|
22648
23133
|
const localVarOperationServerBasePath = operationServerMap['KeypairApi.listKeyPairs']?.[localVarOperationServerIndex]?.url;
|
|
22649
23134
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22650
23135
|
},
|
|
23136
|
+
/**
|
|
23137
|
+
* Retrieves the SSH public key types supported for import.
|
|
23138
|
+
* @summary List supported key pair types
|
|
23139
|
+
* @param {*} [options] Override http request option.
|
|
23140
|
+
* @throws {RequiredError}
|
|
23141
|
+
*/
|
|
23142
|
+
async listSupportedKeyPairTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportedKeypairPublicKeyTypesResponse>> {
|
|
23143
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSupportedKeyPairTypes(options);
|
|
23144
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
23145
|
+
const localVarOperationServerBasePath = operationServerMap['KeypairApi.listSupportedKeyPairTypes']?.[localVarOperationServerIndex]?.url;
|
|
23146
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23147
|
+
},
|
|
22651
23148
|
/**
|
|
22652
23149
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
22653
23150
|
* @summary Update key pair name
|
|
@@ -22704,6 +23201,15 @@ export const KeypairApiFactory = function (configuration?: Configuration, basePa
|
|
|
22704
23201
|
listKeyPairs(page?: string, pageSize?: string, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<Keypairs> {
|
|
22705
23202
|
return localVarFp.listKeyPairs(page, pageSize, search, options).then((request) => request(axios, basePath));
|
|
22706
23203
|
},
|
|
23204
|
+
/**
|
|
23205
|
+
* Retrieves the SSH public key types supported for import.
|
|
23206
|
+
* @summary List supported key pair types
|
|
23207
|
+
* @param {*} [options] Override http request option.
|
|
23208
|
+
* @throws {RequiredError}
|
|
23209
|
+
*/
|
|
23210
|
+
listSupportedKeyPairTypes(options?: RawAxiosRequestConfig): AxiosPromise<SupportedKeypairPublicKeyTypesResponse> {
|
|
23211
|
+
return localVarFp.listSupportedKeyPairTypes(options).then((request) => request(axios, basePath));
|
|
23212
|
+
},
|
|
22707
23213
|
/**
|
|
22708
23214
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
22709
23215
|
* @summary Update key pair name
|
|
@@ -22763,6 +23269,17 @@ export class KeypairApi extends BaseAPI {
|
|
|
22763
23269
|
return KeypairApiFp(this.configuration).listKeyPairs(page, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
22764
23270
|
}
|
|
22765
23271
|
|
|
23272
|
+
/**
|
|
23273
|
+
* Retrieves the SSH public key types supported for import.
|
|
23274
|
+
* @summary List supported key pair types
|
|
23275
|
+
* @param {*} [options] Override http request option.
|
|
23276
|
+
* @throws {RequiredError}
|
|
23277
|
+
* @memberof KeypairApi
|
|
23278
|
+
*/
|
|
23279
|
+
public listSupportedKeyPairTypes(options?: RawAxiosRequestConfig) {
|
|
23280
|
+
return KeypairApiFp(this.configuration).listSupportedKeyPairTypes(options).then((request) => request(this.axios, this.basePath));
|
|
23281
|
+
}
|
|
23282
|
+
|
|
22766
23283
|
/**
|
|
22767
23284
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
22768
23285
|
* @summary Update key pair name
|
|
@@ -26011,6 +26528,39 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
26011
26528
|
options: localVarRequestOptions,
|
|
26012
26529
|
};
|
|
26013
26530
|
},
|
|
26531
|
+
/**
|
|
26532
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
26533
|
+
* @summary GET: Retrieve allowed country codes
|
|
26534
|
+
* @param {*} [options] Override http request option.
|
|
26535
|
+
* @throws {RequiredError}
|
|
26536
|
+
*/
|
|
26537
|
+
getAllowedCountryCodes: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26538
|
+
const localVarPath = `/billing/user/countries`;
|
|
26539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26540
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26541
|
+
let baseOptions;
|
|
26542
|
+
if (configuration) {
|
|
26543
|
+
baseOptions = configuration.baseOptions;
|
|
26544
|
+
}
|
|
26545
|
+
|
|
26546
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26547
|
+
const localVarHeaderParameter = {} as any;
|
|
26548
|
+
const localVarQueryParameter = {} as any;
|
|
26549
|
+
|
|
26550
|
+
// authentication apiKey required
|
|
26551
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
26552
|
+
|
|
26553
|
+
|
|
26554
|
+
|
|
26555
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26557
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26558
|
+
|
|
26559
|
+
return {
|
|
26560
|
+
url: toPathString(localVarUrlObj),
|
|
26561
|
+
options: localVarRequestOptions,
|
|
26562
|
+
};
|
|
26563
|
+
},
|
|
26014
26564
|
/**
|
|
26015
26565
|
* Retrieve the billing details associated with your user.
|
|
26016
26566
|
* @summary GET: Retrieve billing info
|
|
@@ -26106,6 +26656,18 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
26106
26656
|
const localVarOperationServerBasePath = operationServerMap['UserApi.addUserBillingInfo']?.[localVarOperationServerIndex]?.url;
|
|
26107
26657
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26108
26658
|
},
|
|
26659
|
+
/**
|
|
26660
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
26661
|
+
* @summary GET: Retrieve allowed country codes
|
|
26662
|
+
* @param {*} [options] Override http request option.
|
|
26663
|
+
* @throws {RequiredError}
|
|
26664
|
+
*/
|
|
26665
|
+
async getAllowedCountryCodes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllowedCountriesResponse>> {
|
|
26666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllowedCountryCodes(options);
|
|
26667
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26668
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getAllowedCountryCodes']?.[localVarOperationServerIndex]?.url;
|
|
26669
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26670
|
+
},
|
|
26109
26671
|
/**
|
|
26110
26672
|
* Retrieve the billing details associated with your user.
|
|
26111
26673
|
* @summary GET: Retrieve billing info
|
|
@@ -26151,6 +26713,15 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
26151
26713
|
addUserBillingInfo(payload: UserInfoPostPayload, options?: RawAxiosRequestConfig): AxiosPromise<AddUserInfoSuccessResponseModel> {
|
|
26152
26714
|
return localVarFp.addUserBillingInfo(payload, options).then((request) => request(axios, basePath));
|
|
26153
26715
|
},
|
|
26716
|
+
/**
|
|
26717
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
26718
|
+
* @summary GET: Retrieve allowed country codes
|
|
26719
|
+
* @param {*} [options] Override http request option.
|
|
26720
|
+
* @throws {RequiredError}
|
|
26721
|
+
*/
|
|
26722
|
+
getAllowedCountryCodes(options?: RawAxiosRequestConfig): AxiosPromise<AllowedCountriesResponse> {
|
|
26723
|
+
return localVarFp.getAllowedCountryCodes(options).then((request) => request(axios, basePath));
|
|
26724
|
+
},
|
|
26154
26725
|
/**
|
|
26155
26726
|
* Retrieve the billing details associated with your user.
|
|
26156
26727
|
* @summary GET: Retrieve billing info
|
|
@@ -26192,6 +26763,17 @@ export class UserApi extends BaseAPI {
|
|
|
26192
26763
|
return UserApiFp(this.configuration).addUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
|
|
26193
26764
|
}
|
|
26194
26765
|
|
|
26766
|
+
/**
|
|
26767
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
26768
|
+
* @summary GET: Retrieve allowed country codes
|
|
26769
|
+
* @param {*} [options] Override http request option.
|
|
26770
|
+
* @throws {RequiredError}
|
|
26771
|
+
* @memberof UserApi
|
|
26772
|
+
*/
|
|
26773
|
+
public getAllowedCountryCodes(options?: RawAxiosRequestConfig) {
|
|
26774
|
+
return UserApiFp(this.configuration).getAllowedCountryCodes(options).then((request) => request(this.axios, this.basePath));
|
|
26775
|
+
}
|
|
26776
|
+
|
|
26195
26777
|
/**
|
|
26196
26778
|
* Retrieve the billing details associated with your user.
|
|
26197
26779
|
* @summary GET: Retrieve billing info
|