glitch-javascript-sdk 0.5.5 → 0.5.7

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/cjs/index.js CHANGED
@@ -526,7 +526,7 @@ var isTypedArray = (function(TypedArray) {
526
526
  };
527
527
  })(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array));
528
528
 
529
- var utils$9 = {
529
+ var utils$b = {
530
530
  isArray: isArray,
531
531
  isArrayBuffer: isArrayBuffer,
532
532
  isBuffer: isBuffer,
@@ -559,7 +559,7 @@ var utils$9 = {
559
559
  isFileList: isFileList
560
560
  };
561
561
 
562
- var utils$8 = utils$9;
562
+ var utils$a = utils$b;
563
563
 
564
564
  function encode(val) {
565
565
  return encodeURIComponent(val).
@@ -587,26 +587,26 @@ var buildURL$1 = function buildURL(url, params, paramsSerializer) {
587
587
  var serializedParams;
588
588
  if (paramsSerializer) {
589
589
  serializedParams = paramsSerializer(params);
590
- } else if (utils$8.isURLSearchParams(params)) {
590
+ } else if (utils$a.isURLSearchParams(params)) {
591
591
  serializedParams = params.toString();
592
592
  } else {
593
593
  var parts = [];
594
594
 
595
- utils$8.forEach(params, function serialize(val, key) {
595
+ utils$a.forEach(params, function serialize(val, key) {
596
596
  if (val === null || typeof val === 'undefined') {
597
597
  return;
598
598
  }
599
599
 
600
- if (utils$8.isArray(val)) {
600
+ if (utils$a.isArray(val)) {
601
601
  key = key + '[]';
602
602
  } else {
603
603
  val = [val];
604
604
  }
605
605
 
606
- utils$8.forEach(val, function parseValue(v) {
607
- if (utils$8.isDate(v)) {
606
+ utils$a.forEach(val, function parseValue(v) {
607
+ if (utils$a.isDate(v)) {
608
608
  v = v.toISOString();
609
- } else if (utils$8.isObject(v)) {
609
+ } else if (utils$a.isObject(v)) {
610
610
  v = JSON.stringify(v);
611
611
  }
612
612
  parts.push(encode(key) + '=' + encode(v));
@@ -628,7 +628,7 @@ var buildURL$1 = function buildURL(url, params, paramsSerializer) {
628
628
  return url;
629
629
  };
630
630
 
631
- var utils$7 = utils$9;
631
+ var utils$9 = utils$b;
632
632
 
633
633
  function InterceptorManager$1() {
634
634
  this.handlers = [];
@@ -672,7 +672,7 @@ InterceptorManager$1.prototype.eject = function eject(id) {
672
672
  * @param {Function} fn The function to call for each interceptor
673
673
  */
674
674
  InterceptorManager$1.prototype.forEach = function forEach(fn) {
675
- utils$7.forEach(this.handlers, function forEachHandler(h) {
675
+ utils$9.forEach(this.handlers, function forEachHandler(h) {
676
676
  if (h !== null) {
677
677
  fn(h);
678
678
  }
@@ -681,10 +681,10 @@ InterceptorManager$1.prototype.forEach = function forEach(fn) {
681
681
 
682
682
  var InterceptorManager_1 = InterceptorManager$1;
683
683
 
684
- var utils$6 = utils$9;
684
+ var utils$8 = utils$b;
685
685
 
686
686
  var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
687
- utils$6.forEach(headers, function processHeader(value, name) {
687
+ utils$8.forEach(headers, function processHeader(value, name) {
688
688
  if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
689
689
  headers[normalizedName] = value;
690
690
  delete headers[name];
@@ -692,99 +692,90 @@ var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName
692
692
  });
693
693
  };
694
694
 
695
- var AxiosError_1;
696
- var hasRequiredAxiosError;
695
+ var utils$7 = utils$b;
697
696
 
698
- function requireAxiosError () {
699
- if (hasRequiredAxiosError) return AxiosError_1;
700
- hasRequiredAxiosError = 1;
701
-
702
- var utils = utils$9;
703
-
704
- /**
705
- * Create an Error with the specified message, config, error code, request and response.
706
- *
707
- * @param {string} message The error message.
708
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
709
- * @param {Object} [config] The config.
710
- * @param {Object} [request] The request.
711
- * @param {Object} [response] The response.
712
- * @returns {Error} The created error.
713
- */
714
- function AxiosError(message, code, config, request, response) {
715
- Error.call(this);
716
- this.message = message;
717
- this.name = 'AxiosError';
718
- code && (this.code = code);
719
- config && (this.config = config);
720
- request && (this.request = request);
721
- response && (this.response = response);
722
- }
723
-
724
- utils.inherits(AxiosError, Error, {
725
- toJSON: function toJSON() {
726
- return {
727
- // Standard
728
- message: this.message,
729
- name: this.name,
730
- // Microsoft
731
- description: this.description,
732
- number: this.number,
733
- // Mozilla
734
- fileName: this.fileName,
735
- lineNumber: this.lineNumber,
736
- columnNumber: this.columnNumber,
737
- stack: this.stack,
738
- // Axios
739
- config: this.config,
740
- code: this.code,
741
- status: this.response && this.response.status ? this.response.status : null
742
- };
743
- }
744
- });
697
+ /**
698
+ * Create an Error with the specified message, config, error code, request and response.
699
+ *
700
+ * @param {string} message The error message.
701
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
702
+ * @param {Object} [config] The config.
703
+ * @param {Object} [request] The request.
704
+ * @param {Object} [response] The response.
705
+ * @returns {Error} The created error.
706
+ */
707
+ function AxiosError$2(message, code, config, request, response) {
708
+ Error.call(this);
709
+ this.message = message;
710
+ this.name = 'AxiosError';
711
+ code && (this.code = code);
712
+ config && (this.config = config);
713
+ request && (this.request = request);
714
+ response && (this.response = response);
715
+ }
745
716
 
746
- var prototype = AxiosError.prototype;
747
- var descriptors = {};
717
+ utils$7.inherits(AxiosError$2, Error, {
718
+ toJSON: function toJSON() {
719
+ return {
720
+ // Standard
721
+ message: this.message,
722
+ name: this.name,
723
+ // Microsoft
724
+ description: this.description,
725
+ number: this.number,
726
+ // Mozilla
727
+ fileName: this.fileName,
728
+ lineNumber: this.lineNumber,
729
+ columnNumber: this.columnNumber,
730
+ stack: this.stack,
731
+ // Axios
732
+ config: this.config,
733
+ code: this.code,
734
+ status: this.response && this.response.status ? this.response.status : null
735
+ };
736
+ }
737
+ });
748
738
 
749
- [
750
- 'ERR_BAD_OPTION_VALUE',
751
- 'ERR_BAD_OPTION',
752
- 'ECONNABORTED',
753
- 'ETIMEDOUT',
754
- 'ERR_NETWORK',
755
- 'ERR_FR_TOO_MANY_REDIRECTS',
756
- 'ERR_DEPRECATED',
757
- 'ERR_BAD_RESPONSE',
758
- 'ERR_BAD_REQUEST',
759
- 'ERR_CANCELED'
760
- // eslint-disable-next-line func-names
761
- ].forEach(function(code) {
762
- descriptors[code] = {value: code};
763
- });
739
+ var prototype = AxiosError$2.prototype;
740
+ var descriptors = {};
741
+
742
+ [
743
+ 'ERR_BAD_OPTION_VALUE',
744
+ 'ERR_BAD_OPTION',
745
+ 'ECONNABORTED',
746
+ 'ETIMEDOUT',
747
+ 'ERR_NETWORK',
748
+ 'ERR_FR_TOO_MANY_REDIRECTS',
749
+ 'ERR_DEPRECATED',
750
+ 'ERR_BAD_RESPONSE',
751
+ 'ERR_BAD_REQUEST',
752
+ 'ERR_CANCELED'
753
+ // eslint-disable-next-line func-names
754
+ ].forEach(function(code) {
755
+ descriptors[code] = {value: code};
756
+ });
764
757
 
765
- Object.defineProperties(AxiosError, descriptors);
766
- Object.defineProperty(prototype, 'isAxiosError', {value: true});
758
+ Object.defineProperties(AxiosError$2, descriptors);
759
+ Object.defineProperty(prototype, 'isAxiosError', {value: true});
767
760
 
768
- // eslint-disable-next-line func-names
769
- AxiosError.from = function(error, code, config, request, response, customProps) {
770
- var axiosError = Object.create(prototype);
761
+ // eslint-disable-next-line func-names
762
+ AxiosError$2.from = function(error, code, config, request, response, customProps) {
763
+ var axiosError = Object.create(prototype);
771
764
 
772
- utils.toFlatObject(error, axiosError, function filter(obj) {
773
- return obj !== Error.prototype;
774
- });
765
+ utils$7.toFlatObject(error, axiosError, function filter(obj) {
766
+ return obj !== Error.prototype;
767
+ });
775
768
 
776
- AxiosError.call(axiosError, error.message, code, config, request, response);
769
+ AxiosError$2.call(axiosError, error.message, code, config, request, response);
777
770
 
778
- axiosError.name = error.name;
771
+ axiosError.name = error.name;
779
772
 
780
- customProps && Object.assign(axiosError, customProps);
773
+ customProps && Object.assign(axiosError, customProps);
781
774
 
782
- return axiosError;
783
- };
775
+ return axiosError;
776
+ };
784
777
 
785
- AxiosError_1 = AxiosError;
786
- return AxiosError_1;
787
- }
778
+ var AxiosError_1 = AxiosError$2;
788
779
 
789
780
  var transitional = {
790
781
  silentJSONParsing: true,
@@ -792,86 +783,77 @@ var transitional = {
792
783
  clarifyTimeoutError: false
793
784
  };
794
785
 
795
- var toFormData_1;
796
- var hasRequiredToFormData;
797
-
798
- function requireToFormData () {
799
- if (hasRequiredToFormData) return toFormData_1;
800
- hasRequiredToFormData = 1;
786
+ var utils$6 = utils$b;
801
787
 
802
- var utils = utils$9;
803
-
804
- /**
805
- * Convert a data object to FormData
806
- * @param {Object} obj
807
- * @param {?Object} [formData]
808
- * @returns {Object}
809
- **/
788
+ /**
789
+ * Convert a data object to FormData
790
+ * @param {Object} obj
791
+ * @param {?Object} [formData]
792
+ * @returns {Object}
793
+ **/
810
794
 
811
- function toFormData(obj, formData) {
812
- // eslint-disable-next-line no-param-reassign
813
- formData = formData || new FormData();
795
+ function toFormData$1(obj, formData) {
796
+ // eslint-disable-next-line no-param-reassign
797
+ formData = formData || new FormData();
814
798
 
815
- var stack = [];
799
+ var stack = [];
816
800
 
817
- function convertValue(value) {
818
- if (value === null) return '';
801
+ function convertValue(value) {
802
+ if (value === null) return '';
819
803
 
820
- if (utils.isDate(value)) {
821
- return value.toISOString();
822
- }
804
+ if (utils$6.isDate(value)) {
805
+ return value.toISOString();
806
+ }
823
807
 
824
- if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
825
- return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
826
- }
808
+ if (utils$6.isArrayBuffer(value) || utils$6.isTypedArray(value)) {
809
+ return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
810
+ }
827
811
 
828
- return value;
829
- }
812
+ return value;
813
+ }
830
814
 
831
- function build(data, parentKey) {
832
- if (utils.isPlainObject(data) || utils.isArray(data)) {
833
- if (stack.indexOf(data) !== -1) {
834
- throw Error('Circular reference detected in ' + parentKey);
835
- }
815
+ function build(data, parentKey) {
816
+ if (utils$6.isPlainObject(data) || utils$6.isArray(data)) {
817
+ if (stack.indexOf(data) !== -1) {
818
+ throw Error('Circular reference detected in ' + parentKey);
819
+ }
836
820
 
837
- stack.push(data);
838
-
839
- utils.forEach(data, function each(value, key) {
840
- if (utils.isUndefined(value)) return;
841
- var fullKey = parentKey ? parentKey + '.' + key : key;
842
- var arr;
843
-
844
- if (value && !parentKey && typeof value === 'object') {
845
- if (utils.endsWith(key, '{}')) {
846
- // eslint-disable-next-line no-param-reassign
847
- value = JSON.stringify(value);
848
- } else if (utils.endsWith(key, '[]') && (arr = utils.toArray(value))) {
849
- // eslint-disable-next-line func-names
850
- arr.forEach(function(el) {
851
- !utils.isUndefined(el) && formData.append(fullKey, convertValue(el));
852
- });
853
- return;
854
- }
855
- }
821
+ stack.push(data);
822
+
823
+ utils$6.forEach(data, function each(value, key) {
824
+ if (utils$6.isUndefined(value)) return;
825
+ var fullKey = parentKey ? parentKey + '.' + key : key;
826
+ var arr;
827
+
828
+ if (value && !parentKey && typeof value === 'object') {
829
+ if (utils$6.endsWith(key, '{}')) {
830
+ // eslint-disable-next-line no-param-reassign
831
+ value = JSON.stringify(value);
832
+ } else if (utils$6.endsWith(key, '[]') && (arr = utils$6.toArray(value))) {
833
+ // eslint-disable-next-line func-names
834
+ arr.forEach(function(el) {
835
+ !utils$6.isUndefined(el) && formData.append(fullKey, convertValue(el));
836
+ });
837
+ return;
838
+ }
839
+ }
856
840
 
857
- build(value, fullKey);
858
- });
841
+ build(value, fullKey);
842
+ });
859
843
 
860
- stack.pop();
861
- } else {
862
- formData.append(parentKey, convertValue(data));
863
- }
864
- }
844
+ stack.pop();
845
+ } else {
846
+ formData.append(parentKey, convertValue(data));
847
+ }
848
+ }
865
849
 
866
- build(obj);
850
+ build(obj);
867
851
 
868
- return formData;
869
- }
870
-
871
- toFormData_1 = toFormData;
872
- return toFormData_1;
852
+ return formData;
873
853
  }
874
854
 
855
+ var toFormData_1 = toFormData$1;
856
+
875
857
  var settle;
876
858
  var hasRequiredSettle;
877
859
 
@@ -879,7 +861,7 @@ function requireSettle () {
879
861
  if (hasRequiredSettle) return settle;
880
862
  hasRequiredSettle = 1;
881
863
 
882
- var AxiosError = requireAxiosError();
864
+ var AxiosError = AxiosError_1;
883
865
 
884
866
  /**
885
867
  * Resolve or reject a Promise based on response status.
@@ -912,7 +894,7 @@ function requireCookies () {
912
894
  if (hasRequiredCookies) return cookies;
913
895
  hasRequiredCookies = 1;
914
896
 
915
- var utils = utils$9;
897
+ var utils = utils$b;
916
898
 
917
899
  cookies = (
918
900
  utils.isStandardBrowserEnv() ?
@@ -1018,7 +1000,7 @@ function requireParseHeaders () {
1018
1000
  if (hasRequiredParseHeaders) return parseHeaders;
1019
1001
  hasRequiredParseHeaders = 1;
1020
1002
 
1021
- var utils = utils$9;
1003
+ var utils = utils$b;
1022
1004
 
1023
1005
  // Headers whose duplicates are ignored by node
1024
1006
  // c.f. https://nodejs.org/api/http.html#http_message_headers
@@ -1079,7 +1061,7 @@ function requireIsURLSameOrigin () {
1079
1061
  if (hasRequiredIsURLSameOrigin) return isURLSameOrigin;
1080
1062
  hasRequiredIsURLSameOrigin = 1;
1081
1063
 
1082
- var utils = utils$9;
1064
+ var utils = utils$b;
1083
1065
 
1084
1066
  isURLSameOrigin = (
1085
1067
  utils.isStandardBrowserEnv() ?
@@ -1155,8 +1137,8 @@ function requireCanceledError () {
1155
1137
  if (hasRequiredCanceledError) return CanceledError_1;
1156
1138
  hasRequiredCanceledError = 1;
1157
1139
 
1158
- var AxiosError = requireAxiosError();
1159
- var utils = utils$9;
1140
+ var AxiosError = AxiosError_1;
1141
+ var utils = utils$b;
1160
1142
 
1161
1143
  /**
1162
1144
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -1199,7 +1181,7 @@ function requireXhr () {
1199
1181
  if (hasRequiredXhr) return xhr;
1200
1182
  hasRequiredXhr = 1;
1201
1183
 
1202
- var utils = utils$9;
1184
+ var utils = utils$b;
1203
1185
  var settle = requireSettle();
1204
1186
  var cookies = requireCookies();
1205
1187
  var buildURL = buildURL$1;
@@ -1207,7 +1189,7 @@ function requireXhr () {
1207
1189
  var parseHeaders = requireParseHeaders();
1208
1190
  var isURLSameOrigin = requireIsURLSameOrigin();
1209
1191
  var transitionalDefaults = transitional;
1210
- var AxiosError = requireAxiosError();
1192
+ var AxiosError = AxiosError_1;
1211
1193
  var CanceledError = requireCanceledError();
1212
1194
  var parseProtocol = requireParseProtocol();
1213
1195
 
@@ -2100,7 +2082,7 @@ function requireHttp () {
2100
2082
  if (hasRequiredHttp) return http_1;
2101
2083
  hasRequiredHttp = 1;
2102
2084
 
2103
- var utils = utils$9;
2085
+ var utils = utils$b;
2104
2086
  var settle = requireSettle();
2105
2087
  var buildFullPath = buildFullPath$1;
2106
2088
  var buildURL = buildURL$1;
@@ -2112,7 +2094,7 @@ function requireHttp () {
2112
2094
  var zlib = require$$8;
2113
2095
  var VERSION = requireData().version;
2114
2096
  var transitionalDefaults = transitional;
2115
- var AxiosError = requireAxiosError();
2097
+ var AxiosError = AxiosError_1;
2116
2098
  var CanceledError = requireCanceledError();
2117
2099
 
2118
2100
  var isHttps = /https:?/;
@@ -14799,11 +14781,11 @@ function requireFormData () {
14799
14781
  return FormDataExports;
14800
14782
  }
14801
14783
 
14802
- var utils$5 = utils$9;
14784
+ var utils$5 = utils$b;
14803
14785
  var normalizeHeaderName = normalizeHeaderName$1;
14804
- var AxiosError$1 = requireAxiosError();
14786
+ var AxiosError$1 = AxiosError_1;
14805
14787
  var transitionalDefaults = transitional;
14806
- var toFormData = requireToFormData();
14788
+ var toFormData = toFormData_1;
14807
14789
 
14808
14790
  var DEFAULT_CONTENT_TYPE = {
14809
14791
  'Content-Type': 'application/x-www-form-urlencoded'
@@ -14944,7 +14926,7 @@ utils$5.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
14944
14926
 
14945
14927
  var defaults_1 = defaults$3;
14946
14928
 
14947
- var utils$4 = utils$9;
14929
+ var utils$4 = utils$b;
14948
14930
  var defaults$2 = defaults_1;
14949
14931
 
14950
14932
  /**
@@ -14978,7 +14960,7 @@ function requireIsCancel () {
14978
14960
  return isCancel$1;
14979
14961
  }
14980
14962
 
14981
- var utils$3 = utils$9;
14963
+ var utils$3 = utils$b;
14982
14964
  var transformData = transformData$1;
14983
14965
  var isCancel = requireIsCancel();
14984
14966
  var defaults$1 = defaults_1;
@@ -15064,7 +15046,7 @@ var dispatchRequest$1 = function dispatchRequest(config) {
15064
15046
  });
15065
15047
  };
15066
15048
 
15067
- var utils$2 = utils$9;
15049
+ var utils$2 = utils$b;
15068
15050
 
15069
15051
  /**
15070
15052
  * Config-specific merge-function which creates a new config-object
@@ -15164,7 +15146,7 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
15164
15146
  };
15165
15147
 
15166
15148
  var VERSION = requireData().version;
15167
- var AxiosError = requireAxiosError();
15149
+ var AxiosError = AxiosError_1;
15168
15150
 
15169
15151
  var validators$1 = {};
15170
15152
 
@@ -15248,7 +15230,7 @@ var validator$1 = {
15248
15230
  validators: validators$1
15249
15231
  };
15250
15232
 
15251
- var utils$1 = utils$9;
15233
+ var utils$1 = utils$b;
15252
15234
  var buildURL = buildURL$1;
15253
15235
  var InterceptorManager = InterceptorManager_1;
15254
15236
  var dispatchRequest = dispatchRequest$1;
@@ -15576,7 +15558,7 @@ function requireIsAxiosError () {
15576
15558
  if (hasRequiredIsAxiosError) return isAxiosError;
15577
15559
  hasRequiredIsAxiosError = 1;
15578
15560
 
15579
- var utils = utils$9;
15561
+ var utils = utils$b;
15580
15562
 
15581
15563
  /**
15582
15564
  * Determines whether the payload is an error thrown by Axios
@@ -15590,7 +15572,7 @@ function requireIsAxiosError () {
15590
15572
  return isAxiosError;
15591
15573
  }
15592
15574
 
15593
- var utils = utils$9;
15575
+ var utils = utils$b;
15594
15576
  var bind = bind$2;
15595
15577
  var Axios = Axios_1;
15596
15578
  var mergeConfig = mergeConfig$2;
@@ -15631,10 +15613,10 @@ axios$1.CanceledError = requireCanceledError();
15631
15613
  axios$1.CancelToken = requireCancelToken();
15632
15614
  axios$1.isCancel = requireIsCancel();
15633
15615
  axios$1.VERSION = requireData().version;
15634
- axios$1.toFormData = requireToFormData();
15616
+ axios$1.toFormData = toFormData_1;
15635
15617
 
15636
15618
  // Expose AxiosError class
15637
- axios$1.AxiosError = requireAxiosError();
15619
+ axios$1.AxiosError = AxiosError_1;
15638
15620
 
15639
15621
  // alias for CanceledError for backward compatibility
15640
15622
  axios$1.Cancel = axios$1.CanceledError;
@@ -17138,10 +17120,12 @@ var UserRoutes = /** @class */ (function () {
17138
17120
  clearStripeAuth: { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
17139
17121
  clearTikTokAuth: { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
17140
17122
  clearYoutubeAuth: { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
17123
+ clearStreamElementsAuth: { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
17141
17124
  getTipsReceivedForMonth: { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
17142
17125
  getTipsGivenForMonth: { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },
17143
17126
  aggregateMonthlyReceivedTips: { url: '/users/aggregateMonthlyReceivedTips', method: HTTP_METHODS.GET },
17144
17127
  aggregateMonthlyGivenTips: { url: '/users/aggregateMonthlyGivenTips', method: HTTP_METHODS.GET },
17128
+ getYoutubeChannels: { url: '/users/getYoutubeChannels', method: HTTP_METHODS.GET },
17145
17129
  };
17146
17130
  return UserRoutes;
17147
17131
  }());
@@ -17381,6 +17365,16 @@ var Users = /** @class */ (function () {
17381
17365
  Users.aggregateMonthlyGivenTips = function (params) {
17382
17366
  return Requests.processRoute(UserRoutes.routes.aggregateMonthlyGivenTips, undefined, undefined, params);
17383
17367
  };
17368
+ /**
17369
+ * Returns the user associated Youtube a channels a user has.
17370
+ *
17371
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
17372
+ *
17373
+ * @returns promise
17374
+ */
17375
+ Users.getYoutubeChannels = function (params) {
17376
+ return Requests.processRoute(UserRoutes.routes.getYoutubeChannels, undefined, undefined, params);
17377
+ };
17384
17378
  return Users;
17385
17379
  }());
17386
17380
 
@@ -17417,6 +17411,11 @@ var EventsRoutes = /** @class */ (function () {
17417
17411
  enableWidget: { url: '/events/{event_id}/enableWidget/{widget_id}', method: HTTP_METHODS.POST },
17418
17412
  disableWidget: { url: '/events/{event_id}/disableWidget/{widget_id}', method: HTTP_METHODS.DELETE },
17419
17413
  getTips: { url: '/events/{event_id}/tips', method: HTTP_METHODS.GET },
17414
+ setAIAvatarPersonalityAttribute: { url: '/events/{event_id}/setAIAvatarPersonalityAttribute', method: HTTP_METHODS.POST },
17415
+ setAIAvatarName: { url: '/events/{event_id}/setAIAvatarName', method: HTTP_METHODS.POST },
17416
+ setAIAccent: { url: '/events/{event_id}/setAIAccent', method: HTTP_METHODS.POST },
17417
+ setAIAvatarRespondToChat: { url: '/events/{event_id}/setAIAvatarRespondToChat', method: HTTP_METHODS.POST },
17418
+ setAIAvatarRespondToMe: { url: '/events/{event_id}/setAIAvatarRespondToMe', method: HTTP_METHODS.POST },
17420
17419
  };
17421
17420
  return EventsRoutes;
17422
17421
  }());
@@ -17836,6 +17835,66 @@ var Events = /** @class */ (function () {
17836
17835
  Events.getTips = function (event_id, params) {
17837
17836
  return Requests.processRoute(EventsRoutes.routes.getTips, {}, { event_id: event_id }, params);
17838
17837
  };
17838
+ /**
17839
+ * Sets the personality attribute of the AI to adjust how it will respond.
17840
+ *
17841
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
17842
+ *
17843
+ * @param event_id The id of the event.
17844
+ *
17845
+ * @returns promise
17846
+ */
17847
+ Events.setAIAvatarPersonalityAttribute = function (event_id, data, params) {
17848
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarPersonalityAttribute, data, { event_id: event_id }, params);
17849
+ };
17850
+ /**
17851
+ * Sets the AI Avatars name, which it can respond too.
17852
+ *
17853
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
17854
+ *
17855
+ * @param event_id The id of the event.
17856
+ *
17857
+ * @returns promise
17858
+ */
17859
+ Events.setAIAvatarName = function (event_id, data, params) {
17860
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarName, data, { event_id: event_id }, params);
17861
+ };
17862
+ /**
17863
+ * Sets the AI Avatars accent, that will dictate the void in which it responds.
17864
+ *
17865
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
17866
+ *
17867
+ * @param event_id The id of the event.
17868
+ *
17869
+ * @returns promise
17870
+ */
17871
+ Events.setAIAccent = function (event_id, data, params) {
17872
+ return Requests.processRoute(EventsRoutes.routes.setAIAccent, data, { event_id: event_id }, params);
17873
+ };
17874
+ /**
17875
+ * Sets the AI Avatar to that it willr respond to users in the chat.
17876
+ *
17877
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
17878
+ *
17879
+ * @param event_id The id of the event.
17880
+ *
17881
+ * @returns promise
17882
+ */
17883
+ Events.setAIAvatarRespondToChat = function (event_id, data, params) {
17884
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarRespondToChat, data, { event_id: event_id }, params);
17885
+ };
17886
+ /**
17887
+ * Sets the AI Avatar so that it will respond to you.
17888
+ *
17889
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
17890
+ *
17891
+ * @param event_id The id of the event.
17892
+ *
17893
+ * @returns promise
17894
+ */
17895
+ Events.setAIAvatarRespondToMe = function (event_id, data, params) {
17896
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarRespondToMe, data, { event_id: event_id }, params);
17897
+ };
17839
17898
  return Events;
17840
17899
  }());
17841
17900