@platzio/sdk 0.6.0-beta.2 → 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.js CHANGED
@@ -71,6 +71,10 @@ __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,
74
78
  BotsApi: () => BotsApi,
75
79
  BotsApiAxiosParamCreator: () => BotsApiAxiosParamCreator,
76
80
  BotsApiFactory: () => BotsApiFactory,
@@ -552,6 +556,281 @@ var AuthenticationApi = class extends BaseAPI {
552
556
  return AuthenticationApiFp(this.configuration).startGoogleLogin(options).then((request) => request(this.axios, this.basePath));
553
557
  }
554
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
+ };
555
834
  var BotsApiAxiosParamCreator = function(configuration) {
556
835
  return {
557
836
  /**
@@ -5003,6 +5282,10 @@ var Configuration = class {
5003
5282
  AuthenticationApiAxiosParamCreator,
5004
5283
  AuthenticationApiFactory,
5005
5284
  AuthenticationApiFp,
5285
+ BotTokensApi,
5286
+ BotTokensApiAxiosParamCreator,
5287
+ BotTokensApiFactory,
5288
+ BotTokensApiFp,
5006
5289
  BotsApi,
5007
5290
  BotsApiAxiosParamCreator,
5008
5291
  BotsApiFactory,
package/dist/index.mjs CHANGED
@@ -423,6 +423,281 @@ var AuthenticationApi = class extends BaseAPI {
423
423
  return AuthenticationApiFp(this.configuration).startGoogleLogin(options).then((request) => request(this.axios, this.basePath));
424
424
  }
425
425
  };
426
+ var BotTokensApiAxiosParamCreator = function(configuration) {
427
+ return {
428
+ /**
429
+ *
430
+ * @param {string | null} [botId]
431
+ * @param {string | null} [createdByUserId]
432
+ * @param {number | null} [page]
433
+ * @param {number | null} [perPage]
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ allBotTokens: (_0, _1, _2, _3, ..._4) => __async(this, [_0, _1, _2, _3, ..._4], function* (botId, createdByUserId, page, perPage, options = {}) {
438
+ const localVarPath = `/api/v2/bot-tokens`;
439
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
440
+ let baseOptions;
441
+ if (configuration) {
442
+ baseOptions = configuration.baseOptions;
443
+ }
444
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
445
+ const localVarHeaderParameter = {};
446
+ const localVarQueryParameter = {};
447
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
448
+ if (botId !== void 0) {
449
+ localVarQueryParameter["bot_id"] = botId;
450
+ }
451
+ if (createdByUserId !== void 0) {
452
+ localVarQueryParameter["created_by_user_id"] = createdByUserId;
453
+ }
454
+ if (page !== void 0) {
455
+ localVarQueryParameter["page"] = page;
456
+ }
457
+ if (perPage !== void 0) {
458
+ localVarQueryParameter["per_page"] = perPage;
459
+ }
460
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
461
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
462
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
463
+ return {
464
+ url: toPathString(localVarUrlObj),
465
+ options: localVarRequestOptions
466
+ };
467
+ }),
468
+ /**
469
+ *
470
+ * @param {CreateBotToken} createBotToken
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ createBotToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (createBotToken, options = {}) {
475
+ assertParamExists("createBotToken", "createBotToken", createBotToken);
476
+ const localVarPath = `/api/v2/bot-tokens`;
477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
478
+ let baseOptions;
479
+ if (configuration) {
480
+ baseOptions = configuration.baseOptions;
481
+ }
482
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
483
+ const localVarHeaderParameter = {};
484
+ const localVarQueryParameter = {};
485
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
486
+ localVarHeaderParameter["Content-Type"] = "application/json";
487
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
489
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
490
+ localVarRequestOptions.data = serializeDataIfNeeded(createBotToken, localVarRequestOptions, configuration);
491
+ return {
492
+ url: toPathString(localVarUrlObj),
493
+ options: localVarRequestOptions
494
+ };
495
+ }),
496
+ /**
497
+ *
498
+ * @param {string} id
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ deleteBotToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
503
+ assertParamExists("deleteBotToken", "id", id);
504
+ const localVarPath = `/api/v2/bot-tokens/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
505
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
506
+ let baseOptions;
507
+ if (configuration) {
508
+ baseOptions = configuration.baseOptions;
509
+ }
510
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
511
+ const localVarHeaderParameter = {};
512
+ const localVarQueryParameter = {};
513
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
514
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
517
+ return {
518
+ url: toPathString(localVarUrlObj),
519
+ options: localVarRequestOptions
520
+ };
521
+ }),
522
+ /**
523
+ *
524
+ * @param {string} id
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ getBotToken: (_0, ..._1) => __async(this, [_0, ..._1], function* (id, options = {}) {
529
+ assertParamExists("getBotToken", "id", id);
530
+ const localVarPath = `/api/v2/bot-tokens/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
531
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
532
+ let baseOptions;
533
+ if (configuration) {
534
+ baseOptions = configuration.baseOptions;
535
+ }
536
+ const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
537
+ const localVarHeaderParameter = {};
538
+ const localVarQueryParameter = {};
539
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
540
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
541
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
542
+ localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
543
+ return {
544
+ url: toPathString(localVarUrlObj),
545
+ options: localVarRequestOptions
546
+ };
547
+ })
548
+ };
549
+ };
550
+ var BotTokensApiFp = function(configuration) {
551
+ const localVarAxiosParamCreator = BotTokensApiAxiosParamCreator(configuration);
552
+ return {
553
+ /**
554
+ *
555
+ * @param {string | null} [botId]
556
+ * @param {string | null} [createdByUserId]
557
+ * @param {number | null} [page]
558
+ * @param {number | null} [perPage]
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ allBotTokens(botId, createdByUserId, page, perPage, options) {
563
+ return __async(this, null, function* () {
564
+ var _a2, _b, _c;
565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.allBotTokens(botId, createdByUserId, page, perPage, options);
566
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
567
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.allBotTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
568
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
569
+ });
570
+ },
571
+ /**
572
+ *
573
+ * @param {CreateBotToken} createBotToken
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ createBotToken(createBotToken, options) {
578
+ return __async(this, null, function* () {
579
+ var _a2, _b, _c;
580
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBotToken(createBotToken, options);
581
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
582
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.createBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
583
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
584
+ });
585
+ },
586
+ /**
587
+ *
588
+ * @param {string} id
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ deleteBotToken(id, options) {
593
+ return __async(this, null, function* () {
594
+ var _a2, _b, _c;
595
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBotToken(id, options);
596
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
597
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.deleteBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
598
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
599
+ });
600
+ },
601
+ /**
602
+ *
603
+ * @param {string} id
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ getBotToken(id, options) {
608
+ return __async(this, null, function* () {
609
+ var _a2, _b, _c;
610
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBotToken(id, options);
611
+ const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
612
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.getBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
613
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
614
+ });
615
+ }
616
+ };
617
+ };
618
+ var BotTokensApiFactory = function(configuration, basePath, axios) {
619
+ const localVarFp = BotTokensApiFp(configuration);
620
+ return {
621
+ /**
622
+ *
623
+ * @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ allBotTokens(requestParameters = {}, options) {
628
+ return localVarFp.allBotTokens(requestParameters.botId, requestParameters.createdByUserId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
629
+ },
630
+ /**
631
+ *
632
+ * @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ createBotToken(requestParameters, options) {
637
+ return localVarFp.createBotToken(requestParameters.createBotToken, options).then((request) => request(axios, basePath));
638
+ },
639
+ /**
640
+ *
641
+ * @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ deleteBotToken(requestParameters, options) {
646
+ return localVarFp.deleteBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
647
+ },
648
+ /**
649
+ *
650
+ * @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ getBotToken(requestParameters, options) {
655
+ return localVarFp.getBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
656
+ }
657
+ };
658
+ };
659
+ var BotTokensApi = class extends BaseAPI {
660
+ /**
661
+ *
662
+ * @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ * @memberof BotTokensApi
666
+ */
667
+ allBotTokens(requestParameters = {}, options) {
668
+ return BotTokensApiFp(this.configuration).allBotTokens(requestParameters.botId, requestParameters.createdByUserId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
669
+ }
670
+ /**
671
+ *
672
+ * @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ * @memberof BotTokensApi
676
+ */
677
+ createBotToken(requestParameters, options) {
678
+ return BotTokensApiFp(this.configuration).createBotToken(requestParameters.createBotToken, options).then((request) => request(this.axios, this.basePath));
679
+ }
680
+ /**
681
+ *
682
+ * @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ * @memberof BotTokensApi
686
+ */
687
+ deleteBotToken(requestParameters, options) {
688
+ return BotTokensApiFp(this.configuration).deleteBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
689
+ }
690
+ /**
691
+ *
692
+ * @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ * @memberof BotTokensApi
696
+ */
697
+ getBotToken(requestParameters, options) {
698
+ return BotTokensApiFp(this.configuration).getBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
699
+ }
700
+ };
426
701
  var BotsApiAxiosParamCreator = function(configuration) {
427
702
  return {
428
703
  /**
@@ -4873,6 +5148,10 @@ export {
4873
5148
  AuthenticationApiAxiosParamCreator,
4874
5149
  AuthenticationApiFactory,
4875
5150
  AuthenticationApiFp,
5151
+ BotTokensApi,
5152
+ BotTokensApiAxiosParamCreator,
5153
+ BotTokensApiFactory,
5154
+ BotTokensApiFp,
4876
5155
  BotsApi,
4877
5156
  BotsApiAxiosParamCreator,
4878
5157
  BotsApiFactory,