@platzio/sdk 0.6.0-beta.1-1 → 0.6.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +642 -8
- package/dist/index.d.ts +642 -8
- package/dist/index.js +508 -0
- package/dist/index.mjs +500 -0
- package/openapi.yaml +337 -0
- package/package.json +1 -1
- package/src/api.ts +998 -7
- package/version-override.txt +0 -1
package/dist/index.js
CHANGED
|
@@ -71,6 +71,14 @@ __export(src_exports, {
|
|
|
71
71
|
AuthenticationApiAxiosParamCreator: () => AuthenticationApiAxiosParamCreator,
|
|
72
72
|
AuthenticationApiFactory: () => AuthenticationApiFactory,
|
|
73
73
|
AuthenticationApiFp: () => AuthenticationApiFp,
|
|
74
|
+
BotTokensApi: () => BotTokensApi,
|
|
75
|
+
BotTokensApiAxiosParamCreator: () => BotTokensApiAxiosParamCreator,
|
|
76
|
+
BotTokensApiFactory: () => BotTokensApiFactory,
|
|
77
|
+
BotTokensApiFp: () => BotTokensApiFp,
|
|
78
|
+
BotsApi: () => BotsApi,
|
|
79
|
+
BotsApiAxiosParamCreator: () => BotsApiAxiosParamCreator,
|
|
80
|
+
BotsApiFactory: () => BotsApiFactory,
|
|
81
|
+
BotsApiFp: () => BotsApiFp,
|
|
74
82
|
ChartExtActionEndpoint: () => ChartExtActionEndpoint,
|
|
75
83
|
ChartExtActionMethod: () => ChartExtActionMethod,
|
|
76
84
|
ChartExtActionUserDeploymentRole: () => ChartExtActionUserDeploymentRole,
|
|
@@ -298,6 +306,7 @@ var DbEventOperation = {
|
|
|
298
306
|
Delete: "DELETE"
|
|
299
307
|
};
|
|
300
308
|
var DbTable = {
|
|
309
|
+
Bots: "bots",
|
|
301
310
|
DeploymentKinds: "deployment_kinds",
|
|
302
311
|
DeploymentResources: "deployment_resources",
|
|
303
312
|
DeploymentResourceTypes: "deployment_resource_types",
|
|
@@ -547,6 +556,497 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
547
556
|
return AuthenticationApiFp(this.configuration).startGoogleLogin(options).then((request) => request(this.axios, this.basePath));
|
|
548
557
|
}
|
|
549
558
|
};
|
|
559
|
+
var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
560
|
+
return {
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @param {string | null} [botId]
|
|
564
|
+
* @param {string | null} [createdByUserId]
|
|
565
|
+
* @param {number | null} [page]
|
|
566
|
+
* @param {number | null} [perPage]
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
allBotTokens: (_0, _1, _2, _3, ..._4) => __async(this, [_0, _1, _2, _3, ..._4], function* (botId, createdByUserId, page, perPage, options = {}) {
|
|
571
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
572
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
573
|
+
let baseOptions;
|
|
574
|
+
if (configuration) {
|
|
575
|
+
baseOptions = configuration.baseOptions;
|
|
576
|
+
}
|
|
577
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
578
|
+
const localVarHeaderParameter = {};
|
|
579
|
+
const localVarQueryParameter = {};
|
|
580
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
581
|
+
if (botId !== void 0) {
|
|
582
|
+
localVarQueryParameter["bot_id"] = botId;
|
|
583
|
+
}
|
|
584
|
+
if (createdByUserId !== void 0) {
|
|
585
|
+
localVarQueryParameter["created_by_user_id"] = createdByUserId;
|
|
586
|
+
}
|
|
587
|
+
if (page !== void 0) {
|
|
588
|
+
localVarQueryParameter["page"] = page;
|
|
589
|
+
}
|
|
590
|
+
if (perPage !== void 0) {
|
|
591
|
+
localVarQueryParameter["per_page"] = perPage;
|
|
592
|
+
}
|
|
593
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
594
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
596
|
+
return {
|
|
597
|
+
url: toPathString(localVarUrlObj),
|
|
598
|
+
options: localVarRequestOptions
|
|
599
|
+
};
|
|
600
|
+
}),
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @param {CreateBotToken} createBotToken
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
*/
|
|
607
|
+
createBotToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (createBotToken, options = {}) {
|
|
608
|
+
assertParamExists("createBotToken", "createBotToken", createBotToken);
|
|
609
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
610
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
611
|
+
let baseOptions;
|
|
612
|
+
if (configuration) {
|
|
613
|
+
baseOptions = configuration.baseOptions;
|
|
614
|
+
}
|
|
615
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
|
|
616
|
+
const localVarHeaderParameter = {};
|
|
617
|
+
const localVarQueryParameter = {};
|
|
618
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
619
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
620
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
622
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
623
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBotToken, localVarRequestOptions, configuration);
|
|
624
|
+
return {
|
|
625
|
+
url: toPathString(localVarUrlObj),
|
|
626
|
+
options: localVarRequestOptions
|
|
627
|
+
};
|
|
628
|
+
}),
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @param {string} id
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
deleteBotToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
|
|
636
|
+
assertParamExists("deleteBotToken", "id", id);
|
|
637
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
638
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
639
|
+
let baseOptions;
|
|
640
|
+
if (configuration) {
|
|
641
|
+
baseOptions = configuration.baseOptions;
|
|
642
|
+
}
|
|
643
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
|
|
644
|
+
const localVarHeaderParameter = {};
|
|
645
|
+
const localVarQueryParameter = {};
|
|
646
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
647
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
648
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
649
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
650
|
+
return {
|
|
651
|
+
url: toPathString(localVarUrlObj),
|
|
652
|
+
options: localVarRequestOptions
|
|
653
|
+
};
|
|
654
|
+
}),
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @param {string} id
|
|
658
|
+
* @param {*} [options] Override http request option.
|
|
659
|
+
* @throws {RequiredError}
|
|
660
|
+
*/
|
|
661
|
+
getBotToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
|
|
662
|
+
assertParamExists("getBotToken", "id", id);
|
|
663
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
664
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
665
|
+
let baseOptions;
|
|
666
|
+
if (configuration) {
|
|
667
|
+
baseOptions = configuration.baseOptions;
|
|
668
|
+
}
|
|
669
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
670
|
+
const localVarHeaderParameter = {};
|
|
671
|
+
const localVarQueryParameter = {};
|
|
672
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
676
|
+
return {
|
|
677
|
+
url: toPathString(localVarUrlObj),
|
|
678
|
+
options: localVarRequestOptions
|
|
679
|
+
};
|
|
680
|
+
})
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
var BotTokensApiFp = function(configuration) {
|
|
684
|
+
const localVarAxiosParamCreator = BotTokensApiAxiosParamCreator(configuration);
|
|
685
|
+
return {
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @param {string | null} [botId]
|
|
689
|
+
* @param {string | null} [createdByUserId]
|
|
690
|
+
* @param {number | null} [page]
|
|
691
|
+
* @param {number | null} [perPage]
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
*/
|
|
695
|
+
allBotTokens(botId, createdByUserId, page, perPage, options) {
|
|
696
|
+
return __async(this, null, function* () {
|
|
697
|
+
var _a2, _b, _c;
|
|
698
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBotTokens(botId, createdByUserId, page, perPage, options);
|
|
699
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
700
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.allBotTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
701
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
702
|
+
});
|
|
703
|
+
},
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @param {CreateBotToken} createBotToken
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
*/
|
|
710
|
+
createBotToken(createBotToken, options) {
|
|
711
|
+
return __async(this, null, function* () {
|
|
712
|
+
var _a2, _b, _c;
|
|
713
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBotToken(createBotToken, options);
|
|
714
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
715
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.createBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
716
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
717
|
+
});
|
|
718
|
+
},
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @param {string} id
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
*/
|
|
725
|
+
deleteBotToken(id, options) {
|
|
726
|
+
return __async(this, null, function* () {
|
|
727
|
+
var _a2, _b, _c;
|
|
728
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBotToken(id, options);
|
|
729
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
730
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.deleteBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
731
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
732
|
+
});
|
|
733
|
+
},
|
|
734
|
+
/**
|
|
735
|
+
*
|
|
736
|
+
* @param {string} id
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
getBotToken(id, options) {
|
|
741
|
+
return __async(this, null, function* () {
|
|
742
|
+
var _a2, _b, _c;
|
|
743
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBotToken(id, options);
|
|
744
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
745
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.getBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
746
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
var BotTokensApiFactory = function(configuration, basePath, axios) {
|
|
752
|
+
const localVarFp = BotTokensApiFp(configuration);
|
|
753
|
+
return {
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
*/
|
|
760
|
+
allBotTokens(requestParameters = {}, options) {
|
|
761
|
+
return localVarFp.allBotTokens(requestParameters.botId, requestParameters.createdByUserId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
|
|
762
|
+
},
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
createBotToken(requestParameters, options) {
|
|
770
|
+
return localVarFp.createBotToken(requestParameters.createBotToken, options).then((request) => request(axios, basePath));
|
|
771
|
+
},
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
deleteBotToken(requestParameters, options) {
|
|
779
|
+
return localVarFp.deleteBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
780
|
+
},
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
*/
|
|
787
|
+
getBotToken(requestParameters, options) {
|
|
788
|
+
return localVarFp.getBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
var BotTokensApi = class extends BaseAPI {
|
|
793
|
+
/**
|
|
794
|
+
*
|
|
795
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
* @memberof BotTokensApi
|
|
799
|
+
*/
|
|
800
|
+
allBotTokens(requestParameters = {}, options) {
|
|
801
|
+
return BotTokensApiFp(this.configuration).allBotTokens(requestParameters.botId, requestParameters.createdByUserId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
* @memberof BotTokensApi
|
|
809
|
+
*/
|
|
810
|
+
createBotToken(requestParameters, options) {
|
|
811
|
+
return BotTokensApiFp(this.configuration).createBotToken(requestParameters.createBotToken, options).then((request) => request(this.axios, this.basePath));
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
*
|
|
815
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
* @memberof BotTokensApi
|
|
819
|
+
*/
|
|
820
|
+
deleteBotToken(requestParameters, options) {
|
|
821
|
+
return BotTokensApiFp(this.configuration).deleteBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
* @memberof BotTokensApi
|
|
829
|
+
*/
|
|
830
|
+
getBotToken(requestParameters, options) {
|
|
831
|
+
return BotTokensApiFp(this.configuration).getBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
var BotsApiAxiosParamCreator = function(configuration) {
|
|
835
|
+
return {
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @param {string | null} [displayName]
|
|
839
|
+
* @param {number | null} [page]
|
|
840
|
+
* @param {number | null} [perPage]
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
allBots: (_0, _1, _2, ..._3) => __async(this, [_0, _1, _2, ..._3], function* (displayName, page, perPage, options = {}) {
|
|
845
|
+
const localVarPath = `/api/v2/bots`;
|
|
846
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
847
|
+
let baseOptions;
|
|
848
|
+
if (configuration) {
|
|
849
|
+
baseOptions = configuration.baseOptions;
|
|
850
|
+
}
|
|
851
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
852
|
+
const localVarHeaderParameter = {};
|
|
853
|
+
const localVarQueryParameter = {};
|
|
854
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
855
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
856
|
+
if (displayName !== void 0) {
|
|
857
|
+
localVarQueryParameter["display_name"] = displayName;
|
|
858
|
+
}
|
|
859
|
+
if (page !== void 0) {
|
|
860
|
+
localVarQueryParameter["page"] = page;
|
|
861
|
+
}
|
|
862
|
+
if (perPage !== void 0) {
|
|
863
|
+
localVarQueryParameter["per_page"] = perPage;
|
|
864
|
+
}
|
|
865
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
867
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
868
|
+
return {
|
|
869
|
+
url: toPathString(localVarUrlObj),
|
|
870
|
+
options: localVarRequestOptions
|
|
871
|
+
};
|
|
872
|
+
}),
|
|
873
|
+
/**
|
|
874
|
+
*
|
|
875
|
+
* @param {string} id
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
getBot: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
|
|
880
|
+
assertParamExists("getBot", "id", id);
|
|
881
|
+
const localVarPath = `/api/v2/bots/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
883
|
+
let baseOptions;
|
|
884
|
+
if (configuration) {
|
|
885
|
+
baseOptions = configuration.baseOptions;
|
|
886
|
+
}
|
|
887
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
888
|
+
const localVarHeaderParameter = {};
|
|
889
|
+
const localVarQueryParameter = {};
|
|
890
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
891
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
894
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
895
|
+
return {
|
|
896
|
+
url: toPathString(localVarUrlObj),
|
|
897
|
+
options: localVarRequestOptions
|
|
898
|
+
};
|
|
899
|
+
}),
|
|
900
|
+
/**
|
|
901
|
+
*
|
|
902
|
+
* @param {string} id
|
|
903
|
+
* @param {UpdateBot} updateBot
|
|
904
|
+
* @param {*} [options] Override http request option.
|
|
905
|
+
* @throws {RequiredError}
|
|
906
|
+
*/
|
|
907
|
+
updateBot: (_0, _1, ..._2) => __async(this, [_0, _1, ..._2], function* (id, updateBot, options = {}) {
|
|
908
|
+
assertParamExists("updateBot", "id", id);
|
|
909
|
+
assertParamExists("updateBot", "updateBot", updateBot);
|
|
910
|
+
const localVarPath = `/api/v2/bots/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
911
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
912
|
+
let baseOptions;
|
|
913
|
+
if (configuration) {
|
|
914
|
+
baseOptions = configuration.baseOptions;
|
|
915
|
+
}
|
|
916
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "PUT" }, baseOptions), options);
|
|
917
|
+
const localVarHeaderParameter = {};
|
|
918
|
+
const localVarQueryParameter = {};
|
|
919
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
920
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
921
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
922
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
923
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
924
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
925
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBot, localVarRequestOptions, configuration);
|
|
926
|
+
return {
|
|
927
|
+
url: toPathString(localVarUrlObj),
|
|
928
|
+
options: localVarRequestOptions
|
|
929
|
+
};
|
|
930
|
+
})
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
var BotsApiFp = function(configuration) {
|
|
934
|
+
const localVarAxiosParamCreator = BotsApiAxiosParamCreator(configuration);
|
|
935
|
+
return {
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @param {string | null} [displayName]
|
|
939
|
+
* @param {number | null} [page]
|
|
940
|
+
* @param {number | null} [perPage]
|
|
941
|
+
* @param {*} [options] Override http request option.
|
|
942
|
+
* @throws {RequiredError}
|
|
943
|
+
*/
|
|
944
|
+
allBots(displayName, page, perPage, options) {
|
|
945
|
+
return __async(this, null, function* () {
|
|
946
|
+
var _a2, _b, _c;
|
|
947
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBots(displayName, page, perPage, options);
|
|
948
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
949
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotsApi.allBots"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
950
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
951
|
+
});
|
|
952
|
+
},
|
|
953
|
+
/**
|
|
954
|
+
*
|
|
955
|
+
* @param {string} id
|
|
956
|
+
* @param {*} [options] Override http request option.
|
|
957
|
+
* @throws {RequiredError}
|
|
958
|
+
*/
|
|
959
|
+
getBot(id, options) {
|
|
960
|
+
return __async(this, null, function* () {
|
|
961
|
+
var _a2, _b, _c;
|
|
962
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBot(id, options);
|
|
963
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
964
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotsApi.getBot"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
965
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
966
|
+
});
|
|
967
|
+
},
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @param {string} id
|
|
971
|
+
* @param {UpdateBot} updateBot
|
|
972
|
+
* @param {*} [options] Override http request option.
|
|
973
|
+
* @throws {RequiredError}
|
|
974
|
+
*/
|
|
975
|
+
updateBot(id, updateBot, options) {
|
|
976
|
+
return __async(this, null, function* () {
|
|
977
|
+
var _a2, _b, _c;
|
|
978
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBot(id, updateBot, options);
|
|
979
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
980
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotsApi.updateBot"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
981
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
var BotsApiFactory = function(configuration, basePath, axios) {
|
|
987
|
+
const localVarFp = BotsApiFp(configuration);
|
|
988
|
+
return {
|
|
989
|
+
/**
|
|
990
|
+
*
|
|
991
|
+
* @param {BotsApiAllBotsRequest} requestParameters Request parameters.
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
*/
|
|
995
|
+
allBots(requestParameters = {}, options) {
|
|
996
|
+
return localVarFp.allBots(requestParameters.displayName, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
|
|
997
|
+
},
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @param {BotsApiGetBotRequest} requestParameters Request parameters.
|
|
1001
|
+
* @param {*} [options] Override http request option.
|
|
1002
|
+
* @throws {RequiredError}
|
|
1003
|
+
*/
|
|
1004
|
+
getBot(requestParameters, options) {
|
|
1005
|
+
return localVarFp.getBot(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1006
|
+
},
|
|
1007
|
+
/**
|
|
1008
|
+
*
|
|
1009
|
+
* @param {BotsApiUpdateBotRequest} requestParameters Request parameters.
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
updateBot(requestParameters, options) {
|
|
1014
|
+
return localVarFp.updateBot(requestParameters.id, requestParameters.updateBot, options).then((request) => request(axios, basePath));
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
var BotsApi = class extends BaseAPI {
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @param {BotsApiAllBotsRequest} requestParameters Request parameters.
|
|
1022
|
+
* @param {*} [options] Override http request option.
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
* @memberof BotsApi
|
|
1025
|
+
*/
|
|
1026
|
+
allBots(requestParameters = {}, options) {
|
|
1027
|
+
return BotsApiFp(this.configuration).allBots(requestParameters.displayName, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @param {BotsApiGetBotRequest} requestParameters Request parameters.
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
* @memberof BotsApi
|
|
1035
|
+
*/
|
|
1036
|
+
getBot(requestParameters, options) {
|
|
1037
|
+
return BotsApiFp(this.configuration).getBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
*
|
|
1041
|
+
* @param {BotsApiUpdateBotRequest} requestParameters Request parameters.
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
* @memberof BotsApi
|
|
1045
|
+
*/
|
|
1046
|
+
updateBot(requestParameters, options) {
|
|
1047
|
+
return BotsApiFp(this.configuration).updateBot(requestParameters.id, requestParameters.updateBot, options).then((request) => request(this.axios, this.basePath));
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
550
1050
|
var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
551
1051
|
return {
|
|
552
1052
|
/**
|
|
@@ -4782,6 +5282,14 @@ var Configuration = class {
|
|
|
4782
5282
|
AuthenticationApiAxiosParamCreator,
|
|
4783
5283
|
AuthenticationApiFactory,
|
|
4784
5284
|
AuthenticationApiFp,
|
|
5285
|
+
BotTokensApi,
|
|
5286
|
+
BotTokensApiAxiosParamCreator,
|
|
5287
|
+
BotTokensApiFactory,
|
|
5288
|
+
BotTokensApiFp,
|
|
5289
|
+
BotsApi,
|
|
5290
|
+
BotsApiAxiosParamCreator,
|
|
5291
|
+
BotsApiFactory,
|
|
5292
|
+
BotsApiFp,
|
|
4785
5293
|
ChartExtActionEndpoint,
|
|
4786
5294
|
ChartExtActionMethod,
|
|
4787
5295
|
ChartExtActionUserDeploymentRole,
|