flexinet-api 0.0.737-prerelease0 → 0.0.738-prerelease0
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 +12 -25
- package/dist/api.d.ts +8 -21
- package/dist/api.js +12 -12
- package/dist/esm/api.d.ts +8 -21
- package/dist/esm/api.js +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.738-prerelease0
|
|
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 flexinet-api@0.0.
|
|
39
|
+
npm install flexinet-api@0.0.738-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -896,19 +896,6 @@ export interface FeaturesResponse {
|
|
|
896
896
|
*/
|
|
897
897
|
'features': Array<Feature>;
|
|
898
898
|
}
|
|
899
|
-
/**
|
|
900
|
-
*
|
|
901
|
-
* @export
|
|
902
|
-
* @interface GenerateApiKeyRequest
|
|
903
|
-
*/
|
|
904
|
-
export interface GenerateApiKeyRequest {
|
|
905
|
-
/**
|
|
906
|
-
*
|
|
907
|
-
* @type {ApiKeyCreationRequest}
|
|
908
|
-
* @memberof GenerateApiKeyRequest
|
|
909
|
-
*/
|
|
910
|
-
'tag'?: ApiKeyCreationRequest;
|
|
911
|
-
}
|
|
912
899
|
/**
|
|
913
900
|
*
|
|
914
901
|
* @export
|
|
@@ -5585,11 +5572,11 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5585
5572
|
/**
|
|
5586
5573
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5587
5574
|
* @summary Generate API key for the current tenant
|
|
5588
|
-
* @param {
|
|
5575
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5589
5576
|
* @param {*} [options] Override http request option.
|
|
5590
5577
|
* @throws {RequiredError}
|
|
5591
5578
|
*/
|
|
5592
|
-
generateApiKey: async (
|
|
5579
|
+
generateApiKey: async (apiKeyCreationRequest?: ApiKeyCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5593
5580
|
const localVarPath = `/admins/integrations/apikey`;
|
|
5594
5581
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5595
5582
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5613,7 +5600,7 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5613
5600
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5614
5601
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5615
5602
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5616
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
5603
|
+
localVarRequestOptions.data = serializeDataIfNeeded(apiKeyCreationRequest, localVarRequestOptions, configuration)
|
|
5617
5604
|
|
|
5618
5605
|
return {
|
|
5619
5606
|
url: toPathString(localVarUrlObj),
|
|
@@ -5707,12 +5694,12 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
5707
5694
|
/**
|
|
5708
5695
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5709
5696
|
* @summary Generate API key for the current tenant
|
|
5710
|
-
* @param {
|
|
5697
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5711
5698
|
* @param {*} [options] Override http request option.
|
|
5712
5699
|
* @throws {RequiredError}
|
|
5713
5700
|
*/
|
|
5714
|
-
async generateApiKey(
|
|
5715
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(
|
|
5701
|
+
async generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>> {
|
|
5702
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(apiKeyCreationRequest, options);
|
|
5716
5703
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5717
5704
|
},
|
|
5718
5705
|
/**
|
|
@@ -5749,12 +5736,12 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
5749
5736
|
/**
|
|
5750
5737
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5751
5738
|
* @summary Generate API key for the current tenant
|
|
5752
|
-
* @param {
|
|
5739
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5753
5740
|
* @param {*} [options] Override http request option.
|
|
5754
5741
|
* @throws {RequiredError}
|
|
5755
5742
|
*/
|
|
5756
|
-
generateApiKey(
|
|
5757
|
-
return localVarFp.generateApiKey(
|
|
5743
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey> {
|
|
5744
|
+
return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
|
|
5758
5745
|
},
|
|
5759
5746
|
/**
|
|
5760
5747
|
* List all webhooks for current tenant
|
|
@@ -5788,13 +5775,13 @@ export class IntegrationApi extends BaseAPI {
|
|
|
5788
5775
|
/**
|
|
5789
5776
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5790
5777
|
* @summary Generate API key for the current tenant
|
|
5791
|
-
* @param {
|
|
5778
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5792
5779
|
* @param {*} [options] Override http request option.
|
|
5793
5780
|
* @throws {RequiredError}
|
|
5794
5781
|
* @memberof IntegrationApi
|
|
5795
5782
|
*/
|
|
5796
|
-
public generateApiKey(
|
|
5797
|
-
return IntegrationApiFp(this.configuration).generateApiKey(
|
|
5783
|
+
public generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) {
|
|
5784
|
+
return IntegrationApiFp(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5798
5785
|
}
|
|
5799
5786
|
|
|
5800
5787
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -835,19 +835,6 @@ export interface FeaturesResponse {
|
|
|
835
835
|
*/
|
|
836
836
|
'features': Array<Feature>;
|
|
837
837
|
}
|
|
838
|
-
/**
|
|
839
|
-
*
|
|
840
|
-
* @export
|
|
841
|
-
* @interface GenerateApiKeyRequest
|
|
842
|
-
*/
|
|
843
|
-
export interface GenerateApiKeyRequest {
|
|
844
|
-
/**
|
|
845
|
-
*
|
|
846
|
-
* @type {ApiKeyCreationRequest}
|
|
847
|
-
* @memberof GenerateApiKeyRequest
|
|
848
|
-
*/
|
|
849
|
-
'tag'?: ApiKeyCreationRequest;
|
|
850
|
-
}
|
|
851
838
|
/**
|
|
852
839
|
*
|
|
853
840
|
* @export
|
|
@@ -4473,11 +4460,11 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4473
4460
|
/**
|
|
4474
4461
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4475
4462
|
* @summary Generate API key for the current tenant
|
|
4476
|
-
* @param {
|
|
4463
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4477
4464
|
* @param {*} [options] Override http request option.
|
|
4478
4465
|
* @throws {RequiredError}
|
|
4479
4466
|
*/
|
|
4480
|
-
generateApiKey: (
|
|
4467
|
+
generateApiKey: (apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4481
4468
|
/**
|
|
4482
4469
|
* List all webhooks for current tenant
|
|
4483
4470
|
* @summary List webhooks
|
|
@@ -4502,11 +4489,11 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4502
4489
|
/**
|
|
4503
4490
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4504
4491
|
* @summary Generate API key for the current tenant
|
|
4505
|
-
* @param {
|
|
4492
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4506
4493
|
* @param {*} [options] Override http request option.
|
|
4507
4494
|
* @throws {RequiredError}
|
|
4508
4495
|
*/
|
|
4509
|
-
generateApiKey(
|
|
4496
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4510
4497
|
/**
|
|
4511
4498
|
* List all webhooks for current tenant
|
|
4512
4499
|
* @summary List webhooks
|
|
@@ -4531,11 +4518,11 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4531
4518
|
/**
|
|
4532
4519
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4533
4520
|
* @summary Generate API key for the current tenant
|
|
4534
|
-
* @param {
|
|
4521
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4535
4522
|
* @param {*} [options] Override http request option.
|
|
4536
4523
|
* @throws {RequiredError}
|
|
4537
4524
|
*/
|
|
4538
|
-
generateApiKey(
|
|
4525
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey>;
|
|
4539
4526
|
/**
|
|
4540
4527
|
* List all webhooks for current tenant
|
|
4541
4528
|
* @summary List webhooks
|
|
@@ -4562,12 +4549,12 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4562
4549
|
/**
|
|
4563
4550
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4564
4551
|
* @summary Generate API key for the current tenant
|
|
4565
|
-
* @param {
|
|
4552
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4566
4553
|
* @param {*} [options] Override http request option.
|
|
4567
4554
|
* @throws {RequiredError}
|
|
4568
4555
|
* @memberof IntegrationApi
|
|
4569
4556
|
*/
|
|
4570
|
-
generateApiKey(
|
|
4557
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4571
4558
|
/**
|
|
4572
4559
|
* List all webhooks for current tenant
|
|
4573
4560
|
* @summary List webhooks
|
package/dist/api.js
CHANGED
|
@@ -2062,11 +2062,11 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2064
2064
|
* @summary Generate API key for the current tenant
|
|
2065
|
-
* @param {
|
|
2065
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2066
2066
|
* @param {*} [options] Override http request option.
|
|
2067
2067
|
* @throws {RequiredError}
|
|
2068
2068
|
*/
|
|
2069
|
-
generateApiKey: (
|
|
2069
|
+
generateApiKey: (apiKeyCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2070
2070
|
const localVarPath = `/admins/integrations/apikey`;
|
|
2071
2071
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2072
2072
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2084,7 +2084,7 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2084
2084
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2085
2085
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2086
2086
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2087
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2087
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(apiKeyCreationRequest, localVarRequestOptions, configuration);
|
|
2088
2088
|
return {
|
|
2089
2089
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2090
2090
|
options: localVarRequestOptions,
|
|
@@ -2164,13 +2164,13 @@ const IntegrationApiFp = function (configuration) {
|
|
|
2164
2164
|
/**
|
|
2165
2165
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2166
2166
|
* @summary Generate API key for the current tenant
|
|
2167
|
-
* @param {
|
|
2167
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2168
2168
|
* @param {*} [options] Override http request option.
|
|
2169
2169
|
* @throws {RequiredError}
|
|
2170
2170
|
*/
|
|
2171
|
-
generateApiKey(
|
|
2171
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2172
2172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2173
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(
|
|
2173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(apiKeyCreationRequest, options);
|
|
2174
2174
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2175
2175
|
});
|
|
2176
2176
|
},
|
|
@@ -2212,12 +2212,12 @@ const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2214
2214
|
* @summary Generate API key for the current tenant
|
|
2215
|
-
* @param {
|
|
2215
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2216
2216
|
* @param {*} [options] Override http request option.
|
|
2217
2217
|
* @throws {RequiredError}
|
|
2218
2218
|
*/
|
|
2219
|
-
generateApiKey(
|
|
2220
|
-
return localVarFp.generateApiKey(
|
|
2219
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2220
|
+
return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
|
|
2221
2221
|
},
|
|
2222
2222
|
/**
|
|
2223
2223
|
* List all webhooks for current tenant
|
|
@@ -2251,13 +2251,13 @@ class IntegrationApi extends base_1.BaseAPI {
|
|
|
2251
2251
|
/**
|
|
2252
2252
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2253
2253
|
* @summary Generate API key for the current tenant
|
|
2254
|
-
* @param {
|
|
2254
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2255
2255
|
* @param {*} [options] Override http request option.
|
|
2256
2256
|
* @throws {RequiredError}
|
|
2257
2257
|
* @memberof IntegrationApi
|
|
2258
2258
|
*/
|
|
2259
|
-
generateApiKey(
|
|
2260
|
-
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(
|
|
2259
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2260
|
+
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2261
2261
|
}
|
|
2262
2262
|
/**
|
|
2263
2263
|
* List all webhooks for current tenant
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -835,19 +835,6 @@ export interface FeaturesResponse {
|
|
|
835
835
|
*/
|
|
836
836
|
'features': Array<Feature>;
|
|
837
837
|
}
|
|
838
|
-
/**
|
|
839
|
-
*
|
|
840
|
-
* @export
|
|
841
|
-
* @interface GenerateApiKeyRequest
|
|
842
|
-
*/
|
|
843
|
-
export interface GenerateApiKeyRequest {
|
|
844
|
-
/**
|
|
845
|
-
*
|
|
846
|
-
* @type {ApiKeyCreationRequest}
|
|
847
|
-
* @memberof GenerateApiKeyRequest
|
|
848
|
-
*/
|
|
849
|
-
'tag'?: ApiKeyCreationRequest;
|
|
850
|
-
}
|
|
851
838
|
/**
|
|
852
839
|
*
|
|
853
840
|
* @export
|
|
@@ -4473,11 +4460,11 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4473
4460
|
/**
|
|
4474
4461
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4475
4462
|
* @summary Generate API key for the current tenant
|
|
4476
|
-
* @param {
|
|
4463
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4477
4464
|
* @param {*} [options] Override http request option.
|
|
4478
4465
|
* @throws {RequiredError}
|
|
4479
4466
|
*/
|
|
4480
|
-
generateApiKey: (
|
|
4467
|
+
generateApiKey: (apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4481
4468
|
/**
|
|
4482
4469
|
* List all webhooks for current tenant
|
|
4483
4470
|
* @summary List webhooks
|
|
@@ -4502,11 +4489,11 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4502
4489
|
/**
|
|
4503
4490
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4504
4491
|
* @summary Generate API key for the current tenant
|
|
4505
|
-
* @param {
|
|
4492
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4506
4493
|
* @param {*} [options] Override http request option.
|
|
4507
4494
|
* @throws {RequiredError}
|
|
4508
4495
|
*/
|
|
4509
|
-
generateApiKey(
|
|
4496
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4510
4497
|
/**
|
|
4511
4498
|
* List all webhooks for current tenant
|
|
4512
4499
|
* @summary List webhooks
|
|
@@ -4531,11 +4518,11 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4531
4518
|
/**
|
|
4532
4519
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4533
4520
|
* @summary Generate API key for the current tenant
|
|
4534
|
-
* @param {
|
|
4521
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4535
4522
|
* @param {*} [options] Override http request option.
|
|
4536
4523
|
* @throws {RequiredError}
|
|
4537
4524
|
*/
|
|
4538
|
-
generateApiKey(
|
|
4525
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey>;
|
|
4539
4526
|
/**
|
|
4540
4527
|
* List all webhooks for current tenant
|
|
4541
4528
|
* @summary List webhooks
|
|
@@ -4562,12 +4549,12 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4562
4549
|
/**
|
|
4563
4550
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4564
4551
|
* @summary Generate API key for the current tenant
|
|
4565
|
-
* @param {
|
|
4552
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4566
4553
|
* @param {*} [options] Override http request option.
|
|
4567
4554
|
* @throws {RequiredError}
|
|
4568
4555
|
* @memberof IntegrationApi
|
|
4569
4556
|
*/
|
|
4570
|
-
generateApiKey(
|
|
4557
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4571
4558
|
/**
|
|
4572
4559
|
* List all webhooks for current tenant
|
|
4573
4560
|
* @summary List webhooks
|
package/dist/esm/api.js
CHANGED
|
@@ -2025,11 +2025,11 @@ export const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2025
2025
|
/**
|
|
2026
2026
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2027
2027
|
* @summary Generate API key for the current tenant
|
|
2028
|
-
* @param {
|
|
2028
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2029
2029
|
* @param {*} [options] Override http request option.
|
|
2030
2030
|
* @throws {RequiredError}
|
|
2031
2031
|
*/
|
|
2032
|
-
generateApiKey: (
|
|
2032
|
+
generateApiKey: (apiKeyCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2033
2033
|
const localVarPath = `/admins/integrations/apikey`;
|
|
2034
2034
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2035
2035
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2047,7 +2047,7 @@ export const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2047
2047
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2048
2048
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2049
2049
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2050
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2050
|
+
localVarRequestOptions.data = serializeDataIfNeeded(apiKeyCreationRequest, localVarRequestOptions, configuration);
|
|
2051
2051
|
return {
|
|
2052
2052
|
url: toPathString(localVarUrlObj),
|
|
2053
2053
|
options: localVarRequestOptions,
|
|
@@ -2126,13 +2126,13 @@ export const IntegrationApiFp = function (configuration) {
|
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2128
2128
|
* @summary Generate API key for the current tenant
|
|
2129
|
-
* @param {
|
|
2129
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2130
2130
|
* @param {*} [options] Override http request option.
|
|
2131
2131
|
* @throws {RequiredError}
|
|
2132
2132
|
*/
|
|
2133
|
-
generateApiKey(
|
|
2133
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2134
2134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2135
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(
|
|
2135
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(apiKeyCreationRequest, options);
|
|
2136
2136
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2137
2137
|
});
|
|
2138
2138
|
},
|
|
@@ -2173,12 +2173,12 @@ export const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2173
2173
|
/**
|
|
2174
2174
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2175
2175
|
* @summary Generate API key for the current tenant
|
|
2176
|
-
* @param {
|
|
2176
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2177
2177
|
* @param {*} [options] Override http request option.
|
|
2178
2178
|
* @throws {RequiredError}
|
|
2179
2179
|
*/
|
|
2180
|
-
generateApiKey(
|
|
2181
|
-
return localVarFp.generateApiKey(
|
|
2180
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2181
|
+
return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
|
|
2182
2182
|
},
|
|
2183
2183
|
/**
|
|
2184
2184
|
* List all webhooks for current tenant
|
|
@@ -2211,13 +2211,13 @@ export class IntegrationApi extends BaseAPI {
|
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2213
2213
|
* @summary Generate API key for the current tenant
|
|
2214
|
-
* @param {
|
|
2214
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2215
2215
|
* @param {*} [options] Override http request option.
|
|
2216
2216
|
* @throws {RequiredError}
|
|
2217
2217
|
* @memberof IntegrationApi
|
|
2218
2218
|
*/
|
|
2219
|
-
generateApiKey(
|
|
2220
|
-
return IntegrationApiFp(this.configuration).generateApiKey(
|
|
2219
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2220
|
+
return IntegrationApiFp(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2221
2221
|
}
|
|
2222
2222
|
/**
|
|
2223
2223
|
* List all webhooks for current tenant
|