@digipair/skill-openai 0.94.0-4 → 0.94.0-8
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.cjs.js +620 -612
- package/dist/index.esm.js +620 -612
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -411,12 +411,12 @@ function setShims(shims) {
|
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
414
|
-
*/ function _class_call_check$
|
|
414
|
+
*/ function _class_call_check$1V(instance, Constructor) {
|
|
415
415
|
if (!(instance instanceof Constructor)) {
|
|
416
416
|
throw new TypeError("Cannot call a class as a function");
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function _defineProperties$
|
|
419
|
+
function _defineProperties$1A(target, props) {
|
|
420
420
|
for(var i = 0; i < props.length; i++){
|
|
421
421
|
var descriptor = props[i];
|
|
422
422
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -425,16 +425,16 @@ function _defineProperties$1B(target, props) {
|
|
|
425
425
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
function _create_class$
|
|
429
|
-
if (protoProps) _defineProperties$
|
|
428
|
+
function _create_class$1A(Constructor, protoProps, staticProps) {
|
|
429
|
+
if (protoProps) _defineProperties$1A(Constructor.prototype, protoProps);
|
|
430
430
|
return Constructor;
|
|
431
431
|
}
|
|
432
432
|
var MultipartBody = /*#__PURE__*/ function() {
|
|
433
433
|
function MultipartBody(body) {
|
|
434
|
-
_class_call_check$
|
|
434
|
+
_class_call_check$1V(this, MultipartBody);
|
|
435
435
|
this.body = body;
|
|
436
436
|
}
|
|
437
|
-
_create_class$
|
|
437
|
+
_create_class$1A(MultipartBody, [
|
|
438
438
|
{
|
|
439
439
|
key: Symbol.toStringTag,
|
|
440
440
|
get: function get() {
|
|
@@ -475,7 +475,7 @@ function _async_to_generator$S(fn) {
|
|
|
475
475
|
});
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function _class_call_check$
|
|
478
|
+
function _class_call_check$1U(instance, Constructor) {
|
|
479
479
|
if (!(instance instanceof Constructor)) {
|
|
480
480
|
throw new TypeError("Cannot call a class as a function");
|
|
481
481
|
}
|
|
@@ -646,21 +646,21 @@ function getRuntime() {
|
|
|
646
646
|
Headers: _Headers,
|
|
647
647
|
FormData: // @ts-ignore
|
|
648
648
|
typeof FormData !== 'undefined' ? FormData : function FormData1() {
|
|
649
|
-
_class_call_check$
|
|
649
|
+
_class_call_check$1U(this, FormData1);
|
|
650
650
|
throw new Error("file uploads aren't supported in this environment yet as 'FormData' is undefined. ".concat(recommendation));
|
|
651
651
|
},
|
|
652
652
|
Blob: typeof Blob !== 'undefined' ? Blob : function Blob1() {
|
|
653
|
-
_class_call_check$
|
|
653
|
+
_class_call_check$1U(this, Blob1);
|
|
654
654
|
throw new Error("file uploads aren't supported in this environment yet as 'Blob' is undefined. ".concat(recommendation));
|
|
655
655
|
},
|
|
656
656
|
File: // @ts-ignore
|
|
657
657
|
typeof File !== 'undefined' ? File : function File1() {
|
|
658
|
-
_class_call_check$
|
|
658
|
+
_class_call_check$1U(this, File1);
|
|
659
659
|
throw new Error("file uploads aren't supported in this environment yet as 'File' is undefined. ".concat(recommendation));
|
|
660
660
|
},
|
|
661
661
|
ReadableStream: // @ts-ignore
|
|
662
662
|
typeof ReadableStream !== 'undefined' ? ReadableStream : function ReadableStream1() {
|
|
663
|
-
_class_call_check$
|
|
663
|
+
_class_call_check$1U(this, ReadableStream1);
|
|
664
664
|
throw new Error("streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ".concat(recommendation));
|
|
665
665
|
},
|
|
666
666
|
getMultipartRequestOptions: function() {
|
|
@@ -705,7 +705,7 @@ function _assert_this_initialized$1z(self) {
|
|
|
705
705
|
}
|
|
706
706
|
return self;
|
|
707
707
|
}
|
|
708
|
-
function _class_call_check$
|
|
708
|
+
function _class_call_check$1T(instance, Constructor) {
|
|
709
709
|
if (!(instance instanceof Constructor)) {
|
|
710
710
|
throw new TypeError("Cannot call a class as a function");
|
|
711
711
|
}
|
|
@@ -727,7 +727,7 @@ function _construct$b(Parent, args, Class) {
|
|
|
727
727
|
}
|
|
728
728
|
return _construct$b.apply(null, arguments);
|
|
729
729
|
}
|
|
730
|
-
function _defineProperties$
|
|
730
|
+
function _defineProperties$1z(target, props) {
|
|
731
731
|
for(var i = 0; i < props.length; i++){
|
|
732
732
|
var descriptor = props[i];
|
|
733
733
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -736,8 +736,8 @@ function _defineProperties$1A(target, props) {
|
|
|
736
736
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
function _create_class$
|
|
740
|
-
if (staticProps) _defineProperties$
|
|
739
|
+
function _create_class$1z(Constructor, protoProps, staticProps) {
|
|
740
|
+
if (staticProps) _defineProperties$1z(Constructor, staticProps);
|
|
741
741
|
return Constructor;
|
|
742
742
|
}
|
|
743
743
|
function _get_prototype_of$1z(o) {
|
|
@@ -833,7 +833,7 @@ var OpenAIError = /*#__PURE__*/ function(Error1) {
|
|
|
833
833
|
_inherits$1z(OpenAIError, Error1);
|
|
834
834
|
var _super = _create_super$1z(OpenAIError);
|
|
835
835
|
function OpenAIError() {
|
|
836
|
-
_class_call_check$
|
|
836
|
+
_class_call_check$1T(this, OpenAIError);
|
|
837
837
|
return _super.apply(this, arguments);
|
|
838
838
|
}
|
|
839
839
|
return OpenAIError;
|
|
@@ -842,7 +842,7 @@ var APIError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
842
842
|
_inherits$1z(APIError, OpenAIError);
|
|
843
843
|
var _super = _create_super$1z(APIError);
|
|
844
844
|
function APIError(status, error, message, headers) {
|
|
845
|
-
_class_call_check$
|
|
845
|
+
_class_call_check$1T(this, APIError);
|
|
846
846
|
var _this;
|
|
847
847
|
_this = _super.call(this, "".concat(APIError.makeMessage(status, error, message)));
|
|
848
848
|
_this.status = status;
|
|
@@ -855,7 +855,7 @@ var APIError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
855
855
|
_this.type = data === null || data === void 0 ? void 0 : data['type'];
|
|
856
856
|
return _this;
|
|
857
857
|
}
|
|
858
|
-
_create_class$
|
|
858
|
+
_create_class$1z(APIError, null, [
|
|
859
859
|
{
|
|
860
860
|
key: "makeMessage",
|
|
861
861
|
value: function makeMessage(status, error, message) {
|
|
@@ -917,7 +917,7 @@ var APIUserAbortError = /*#__PURE__*/ function(APIError) {
|
|
|
917
917
|
var _super = _create_super$1z(APIUserAbortError);
|
|
918
918
|
function APIUserAbortError() {
|
|
919
919
|
var message = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).message;
|
|
920
|
-
_class_call_check$
|
|
920
|
+
_class_call_check$1T(this, APIUserAbortError);
|
|
921
921
|
return _super.call(this, undefined, undefined, message || 'Request was aborted.', undefined);
|
|
922
922
|
}
|
|
923
923
|
return APIUserAbortError;
|
|
@@ -927,7 +927,7 @@ var APIConnectionError = /*#__PURE__*/ function(APIError) {
|
|
|
927
927
|
var _super = _create_super$1z(APIConnectionError);
|
|
928
928
|
function APIConnectionError(param) {
|
|
929
929
|
var message = param.message, cause = param.cause;
|
|
930
|
-
_class_call_check$
|
|
930
|
+
_class_call_check$1T(this, APIConnectionError);
|
|
931
931
|
var _this;
|
|
932
932
|
_this = _super.call(this, undefined, undefined, message || 'Connection error.', undefined);
|
|
933
933
|
// in some environments the 'cause' property is already declared
|
|
@@ -942,7 +942,7 @@ var APIConnectionTimeoutError = /*#__PURE__*/ function(APIConnectionError) {
|
|
|
942
942
|
var _super = _create_super$1z(APIConnectionTimeoutError);
|
|
943
943
|
function APIConnectionTimeoutError() {
|
|
944
944
|
var message = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).message;
|
|
945
|
-
_class_call_check$
|
|
945
|
+
_class_call_check$1T(this, APIConnectionTimeoutError);
|
|
946
946
|
return _super.call(this, {
|
|
947
947
|
message: message !== null && message !== void 0 ? message : 'Request timed out.'
|
|
948
948
|
});
|
|
@@ -953,7 +953,7 @@ var BadRequestError = /*#__PURE__*/ function(APIError) {
|
|
|
953
953
|
_inherits$1z(BadRequestError, APIError);
|
|
954
954
|
var _super = _create_super$1z(BadRequestError);
|
|
955
955
|
function BadRequestError() {
|
|
956
|
-
_class_call_check$
|
|
956
|
+
_class_call_check$1T(this, BadRequestError);
|
|
957
957
|
return _super.apply(this, arguments);
|
|
958
958
|
}
|
|
959
959
|
return BadRequestError;
|
|
@@ -962,7 +962,7 @@ var AuthenticationError = /*#__PURE__*/ function(APIError) {
|
|
|
962
962
|
_inherits$1z(AuthenticationError, APIError);
|
|
963
963
|
var _super = _create_super$1z(AuthenticationError);
|
|
964
964
|
function AuthenticationError() {
|
|
965
|
-
_class_call_check$
|
|
965
|
+
_class_call_check$1T(this, AuthenticationError);
|
|
966
966
|
return _super.apply(this, arguments);
|
|
967
967
|
}
|
|
968
968
|
return AuthenticationError;
|
|
@@ -971,7 +971,7 @@ var PermissionDeniedError = /*#__PURE__*/ function(APIError) {
|
|
|
971
971
|
_inherits$1z(PermissionDeniedError, APIError);
|
|
972
972
|
var _super = _create_super$1z(PermissionDeniedError);
|
|
973
973
|
function PermissionDeniedError() {
|
|
974
|
-
_class_call_check$
|
|
974
|
+
_class_call_check$1T(this, PermissionDeniedError);
|
|
975
975
|
return _super.apply(this, arguments);
|
|
976
976
|
}
|
|
977
977
|
return PermissionDeniedError;
|
|
@@ -980,7 +980,7 @@ var NotFoundError = /*#__PURE__*/ function(APIError) {
|
|
|
980
980
|
_inherits$1z(NotFoundError, APIError);
|
|
981
981
|
var _super = _create_super$1z(NotFoundError);
|
|
982
982
|
function NotFoundError() {
|
|
983
|
-
_class_call_check$
|
|
983
|
+
_class_call_check$1T(this, NotFoundError);
|
|
984
984
|
return _super.apply(this, arguments);
|
|
985
985
|
}
|
|
986
986
|
return NotFoundError;
|
|
@@ -989,7 +989,7 @@ var ConflictError = /*#__PURE__*/ function(APIError) {
|
|
|
989
989
|
_inherits$1z(ConflictError, APIError);
|
|
990
990
|
var _super = _create_super$1z(ConflictError);
|
|
991
991
|
function ConflictError() {
|
|
992
|
-
_class_call_check$
|
|
992
|
+
_class_call_check$1T(this, ConflictError);
|
|
993
993
|
return _super.apply(this, arguments);
|
|
994
994
|
}
|
|
995
995
|
return ConflictError;
|
|
@@ -998,7 +998,7 @@ var UnprocessableEntityError = /*#__PURE__*/ function(APIError) {
|
|
|
998
998
|
_inherits$1z(UnprocessableEntityError, APIError);
|
|
999
999
|
var _super = _create_super$1z(UnprocessableEntityError);
|
|
1000
1000
|
function UnprocessableEntityError() {
|
|
1001
|
-
_class_call_check$
|
|
1001
|
+
_class_call_check$1T(this, UnprocessableEntityError);
|
|
1002
1002
|
return _super.apply(this, arguments);
|
|
1003
1003
|
}
|
|
1004
1004
|
return UnprocessableEntityError;
|
|
@@ -1007,7 +1007,7 @@ var RateLimitError = /*#__PURE__*/ function(APIError) {
|
|
|
1007
1007
|
_inherits$1z(RateLimitError, APIError);
|
|
1008
1008
|
var _super = _create_super$1z(RateLimitError);
|
|
1009
1009
|
function RateLimitError() {
|
|
1010
|
-
_class_call_check$
|
|
1010
|
+
_class_call_check$1T(this, RateLimitError);
|
|
1011
1011
|
return _super.apply(this, arguments);
|
|
1012
1012
|
}
|
|
1013
1013
|
return RateLimitError;
|
|
@@ -1016,7 +1016,7 @@ var InternalServerError = /*#__PURE__*/ function(APIError) {
|
|
|
1016
1016
|
_inherits$1z(InternalServerError, APIError);
|
|
1017
1017
|
var _super = _create_super$1z(InternalServerError);
|
|
1018
1018
|
function InternalServerError() {
|
|
1019
|
-
_class_call_check$
|
|
1019
|
+
_class_call_check$1T(this, InternalServerError);
|
|
1020
1020
|
return _super.apply(this, arguments);
|
|
1021
1021
|
}
|
|
1022
1022
|
return InternalServerError;
|
|
@@ -1025,7 +1025,7 @@ var LengthFinishReasonError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
1025
1025
|
_inherits$1z(LengthFinishReasonError, OpenAIError);
|
|
1026
1026
|
var _super = _create_super$1z(LengthFinishReasonError);
|
|
1027
1027
|
function LengthFinishReasonError() {
|
|
1028
|
-
_class_call_check$
|
|
1028
|
+
_class_call_check$1T(this, LengthFinishReasonError);
|
|
1029
1029
|
return _super.call(this, "Could not parse response content as the length limit was reached");
|
|
1030
1030
|
}
|
|
1031
1031
|
return LengthFinishReasonError;
|
|
@@ -1034,19 +1034,19 @@ var ContentFilterFinishReasonError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
1034
1034
|
_inherits$1z(ContentFilterFinishReasonError, OpenAIError);
|
|
1035
1035
|
var _super = _create_super$1z(ContentFilterFinishReasonError);
|
|
1036
1036
|
function ContentFilterFinishReasonError() {
|
|
1037
|
-
_class_call_check$
|
|
1037
|
+
_class_call_check$1T(this, ContentFilterFinishReasonError);
|
|
1038
1038
|
return _super.call(this, "Could not parse response content as the request was rejected by the content filter");
|
|
1039
1039
|
}
|
|
1040
1040
|
return ContentFilterFinishReasonError;
|
|
1041
1041
|
}
|
|
1042
1042
|
(OpenAIError);
|
|
1043
1043
|
|
|
1044
|
-
function _class_call_check$
|
|
1044
|
+
function _class_call_check$1S(instance, Constructor) {
|
|
1045
1045
|
if (!(instance instanceof Constructor)) {
|
|
1046
1046
|
throw new TypeError("Cannot call a class as a function");
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
function _defineProperties$
|
|
1049
|
+
function _defineProperties$1y(target, props) {
|
|
1050
1050
|
for(var i = 0; i < props.length; i++){
|
|
1051
1051
|
var descriptor = props[i];
|
|
1052
1052
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1055,8 +1055,8 @@ function _defineProperties$1z(target, props) {
|
|
|
1055
1055
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
|
-
function _create_class$
|
|
1059
|
-
if (protoProps) _defineProperties$
|
|
1058
|
+
function _create_class$1y(Constructor, protoProps, staticProps) {
|
|
1059
|
+
if (protoProps) _defineProperties$1y(Constructor.prototype, protoProps);
|
|
1060
1060
|
return Constructor;
|
|
1061
1061
|
}
|
|
1062
1062
|
function _instanceof$q(left, right) {
|
|
@@ -1085,12 +1085,12 @@ var _LineDecoder_carriageReturnIndex;
|
|
|
1085
1085
|
* https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258
|
|
1086
1086
|
*/ var LineDecoder = /*#__PURE__*/ function() {
|
|
1087
1087
|
function LineDecoder() {
|
|
1088
|
-
_class_call_check$
|
|
1088
|
+
_class_call_check$1S(this, LineDecoder);
|
|
1089
1089
|
_LineDecoder_carriageReturnIndex.set(this, void 0);
|
|
1090
1090
|
this.buffer = new Uint8Array();
|
|
1091
1091
|
__classPrivateFieldSet$5(this, _LineDecoder_carriageReturnIndex, null, "f");
|
|
1092
1092
|
}
|
|
1093
|
-
_create_class$
|
|
1093
|
+
_create_class$1y(LineDecoder, [
|
|
1094
1094
|
{
|
|
1095
1095
|
key: "decode",
|
|
1096
1096
|
value: function decode(chunk) {
|
|
@@ -1600,12 +1600,12 @@ function _await_async_generator$b(value) {
|
|
|
1600
1600
|
function _await_value$b(value) {
|
|
1601
1601
|
this.wrapped = value;
|
|
1602
1602
|
}
|
|
1603
|
-
function _class_call_check$
|
|
1603
|
+
function _class_call_check$1R(instance, Constructor) {
|
|
1604
1604
|
if (!(instance instanceof Constructor)) {
|
|
1605
1605
|
throw new TypeError("Cannot call a class as a function");
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
|
-
function _defineProperties$
|
|
1608
|
+
function _defineProperties$1x(target, props) {
|
|
1609
1609
|
for(var i = 0; i < props.length; i++){
|
|
1610
1610
|
var descriptor = props[i];
|
|
1611
1611
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1614,9 +1614,9 @@ function _defineProperties$1y(target, props) {
|
|
|
1614
1614
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
function _create_class$
|
|
1618
|
-
if (protoProps) _defineProperties$
|
|
1619
|
-
if (staticProps) _defineProperties$
|
|
1617
|
+
function _create_class$1x(Constructor, protoProps, staticProps) {
|
|
1618
|
+
if (protoProps) _defineProperties$1x(Constructor.prototype, protoProps);
|
|
1619
|
+
if (staticProps) _defineProperties$1x(Constructor, staticProps);
|
|
1620
1620
|
return Constructor;
|
|
1621
1621
|
}
|
|
1622
1622
|
function _instanceof$p(left, right) {
|
|
@@ -1766,11 +1766,11 @@ function _ts_generator$S(thisArg, body) {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
var Stream = /*#__PURE__*/ function() {
|
|
1768
1768
|
function Stream(iterator, controller) {
|
|
1769
|
-
_class_call_check$
|
|
1769
|
+
_class_call_check$1R(this, Stream);
|
|
1770
1770
|
this.iterator = iterator;
|
|
1771
1771
|
this.controller = controller;
|
|
1772
1772
|
}
|
|
1773
|
-
_create_class$
|
|
1773
|
+
_create_class$1x(Stream, [
|
|
1774
1774
|
{
|
|
1775
1775
|
key: Symbol.asyncIterator,
|
|
1776
1776
|
value: function value() {
|
|
@@ -2815,12 +2815,12 @@ function _iterSSEChunks() {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
var SSEDecoder = /*#__PURE__*/ function() {
|
|
2817
2817
|
function SSEDecoder() {
|
|
2818
|
-
_class_call_check$
|
|
2818
|
+
_class_call_check$1R(this, SSEDecoder);
|
|
2819
2819
|
this.event = null;
|
|
2820
2820
|
this.data = [];
|
|
2821
2821
|
this.chunks = [];
|
|
2822
2822
|
}
|
|
2823
|
-
_create_class$
|
|
2823
|
+
_create_class$1x(SSEDecoder, [
|
|
2824
2824
|
{
|
|
2825
2825
|
key: "decode",
|
|
2826
2826
|
value: function decode(line) {
|
|
@@ -3724,7 +3724,7 @@ function _await_async_generator$a(value) {
|
|
|
3724
3724
|
function _await_value$a(value) {
|
|
3725
3725
|
this.wrapped = value;
|
|
3726
3726
|
}
|
|
3727
|
-
function _class_call_check$
|
|
3727
|
+
function _class_call_check$1Q(instance, Constructor) {
|
|
3728
3728
|
if (!(instance instanceof Constructor)) {
|
|
3729
3729
|
throw new TypeError("Cannot call a class as a function");
|
|
3730
3730
|
}
|
|
@@ -3746,7 +3746,7 @@ function _construct$a(Parent, args, Class) {
|
|
|
3746
3746
|
}
|
|
3747
3747
|
return _construct$a.apply(null, arguments);
|
|
3748
3748
|
}
|
|
3749
|
-
function _defineProperties$
|
|
3749
|
+
function _defineProperties$1w(target, props) {
|
|
3750
3750
|
for(var i = 0; i < props.length; i++){
|
|
3751
3751
|
var descriptor = props[i];
|
|
3752
3752
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3755,8 +3755,8 @@ function _defineProperties$1x(target, props) {
|
|
|
3755
3755
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
|
-
function _create_class$
|
|
3759
|
-
if (protoProps) _defineProperties$
|
|
3758
|
+
function _create_class$1w(Constructor, protoProps, staticProps) {
|
|
3759
|
+
if (protoProps) _defineProperties$1w(Constructor.prototype, protoProps);
|
|
3760
3760
|
return Constructor;
|
|
3761
3761
|
}
|
|
3762
3762
|
function _define_property$1$(obj, key, value) {
|
|
@@ -4181,7 +4181,7 @@ function _addRequestID(value, response) {
|
|
|
4181
4181
|
var _super = _create_super$1y(APIPromise);
|
|
4182
4182
|
function APIPromise(responsePromise) {
|
|
4183
4183
|
var parseResponse = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultParseResponse;
|
|
4184
|
-
_class_call_check$
|
|
4184
|
+
_class_call_check$1Q(this, APIPromise);
|
|
4185
4185
|
var _this;
|
|
4186
4186
|
_this = _super.call(this, function(resolve) {
|
|
4187
4187
|
// this is maybe a bit weird but this has to be a no-op to not implicitly
|
|
@@ -4193,7 +4193,7 @@ function _addRequestID(value, response) {
|
|
|
4193
4193
|
_this.parseResponse = parseResponse;
|
|
4194
4194
|
return _this;
|
|
4195
4195
|
}
|
|
4196
|
-
_create_class$
|
|
4196
|
+
_create_class$1w(APIPromise, [
|
|
4197
4197
|
{
|
|
4198
4198
|
key: "_thenUnwrap",
|
|
4199
4199
|
value: function _thenUnwrap(transform) {
|
|
@@ -4328,14 +4328,14 @@ function _addRequestID(value, response) {
|
|
|
4328
4328
|
var APIClient = /*#__PURE__*/ function() {
|
|
4329
4329
|
function APIClient(param) {
|
|
4330
4330
|
var baseURL = param.baseURL, _param_maxRetries = param.maxRetries, maxRetries = _param_maxRetries === void 0 ? 2 : _param_maxRetries, _param_timeout = param.timeout, timeout = _param_timeout === void 0 ? 600000 : _param_timeout, httpAgent = param.httpAgent, overriddenFetch = param.fetch;
|
|
4331
|
-
_class_call_check$
|
|
4331
|
+
_class_call_check$1Q(this, APIClient);
|
|
4332
4332
|
this.baseURL = baseURL;
|
|
4333
4333
|
this.maxRetries = validatePositiveInteger('maxRetries', maxRetries);
|
|
4334
4334
|
this.timeout = validatePositiveInteger('timeout', timeout);
|
|
4335
4335
|
this.httpAgent = httpAgent;
|
|
4336
4336
|
this.fetch = overriddenFetch !== null && overriddenFetch !== void 0 ? overriddenFetch : fetch$1;
|
|
4337
4337
|
}
|
|
4338
|
-
_create_class$
|
|
4338
|
+
_create_class$1w(APIClient, [
|
|
4339
4339
|
{
|
|
4340
4340
|
key: "authHeaders",
|
|
4341
4341
|
value: function authHeaders(opts) {
|
|
@@ -4885,14 +4885,14 @@ var APIClient = /*#__PURE__*/ function() {
|
|
|
4885
4885
|
}();
|
|
4886
4886
|
var AbstractPage = /*#__PURE__*/ function() {
|
|
4887
4887
|
function AbstractPage(client, response, body, options) {
|
|
4888
|
-
_class_call_check$
|
|
4888
|
+
_class_call_check$1Q(this, AbstractPage);
|
|
4889
4889
|
_AbstractPage_client.set(this, void 0);
|
|
4890
4890
|
__classPrivateFieldSet$4(this, _AbstractPage_client, client, "f");
|
|
4891
4891
|
this.options = options;
|
|
4892
4892
|
this.response = response;
|
|
4893
4893
|
this.body = body;
|
|
4894
4894
|
}
|
|
4895
|
-
_create_class$
|
|
4895
|
+
_create_class$1w(AbstractPage, [
|
|
4896
4896
|
{
|
|
4897
4897
|
key: "hasNextPage",
|
|
4898
4898
|
value: function hasNextPage() {
|
|
@@ -5169,7 +5169,7 @@ var AbstractPage = /*#__PURE__*/ function() {
|
|
|
5169
5169
|
_inherits$1y(PagePromise, APIPromise);
|
|
5170
5170
|
var _super = _create_super$1y(PagePromise);
|
|
5171
5171
|
function PagePromise(client, request, Page) {
|
|
5172
|
-
_class_call_check$
|
|
5172
|
+
_class_call_check$1Q(this, PagePromise);
|
|
5173
5173
|
return _super.call(this, request, function() {
|
|
5174
5174
|
var _ref = _async_to_generator$O(function(props) {
|
|
5175
5175
|
var _, _tmp;
|
|
@@ -5202,7 +5202,7 @@ var AbstractPage = /*#__PURE__*/ function() {
|
|
|
5202
5202
|
};
|
|
5203
5203
|
}());
|
|
5204
5204
|
}
|
|
5205
|
-
_create_class$
|
|
5205
|
+
_create_class$1w(PagePromise, [
|
|
5206
5206
|
{
|
|
5207
5207
|
key: Symbol.asyncIterator,
|
|
5208
5208
|
value: /**
|
|
@@ -5733,12 +5733,12 @@ function _assert_this_initialized$1x(self) {
|
|
|
5733
5733
|
}
|
|
5734
5734
|
return self;
|
|
5735
5735
|
}
|
|
5736
|
-
function _class_call_check$
|
|
5736
|
+
function _class_call_check$1P(instance, Constructor) {
|
|
5737
5737
|
if (!(instance instanceof Constructor)) {
|
|
5738
5738
|
throw new TypeError("Cannot call a class as a function");
|
|
5739
5739
|
}
|
|
5740
5740
|
}
|
|
5741
|
-
function _defineProperties$
|
|
5741
|
+
function _defineProperties$1v(target, props) {
|
|
5742
5742
|
for(var i = 0; i < props.length; i++){
|
|
5743
5743
|
var descriptor = props[i];
|
|
5744
5744
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5747,8 +5747,8 @@ function _defineProperties$1w(target, props) {
|
|
|
5747
5747
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5748
5748
|
}
|
|
5749
5749
|
}
|
|
5750
|
-
function _create_class$
|
|
5751
|
-
if (protoProps) _defineProperties$
|
|
5750
|
+
function _create_class$1v(Constructor, protoProps, staticProps) {
|
|
5751
|
+
if (protoProps) _defineProperties$1v(Constructor.prototype, protoProps);
|
|
5752
5752
|
return Constructor;
|
|
5753
5753
|
}
|
|
5754
5754
|
function _get$b(target, property, receiver) {
|
|
@@ -5840,14 +5840,14 @@ function _create_super$1x(Derived) {
|
|
|
5840
5840
|
_inherits$1x(Page, AbstractPage);
|
|
5841
5841
|
var _super = _create_super$1x(Page);
|
|
5842
5842
|
function Page(client, response, body, options) {
|
|
5843
|
-
_class_call_check$
|
|
5843
|
+
_class_call_check$1P(this, Page);
|
|
5844
5844
|
var _this;
|
|
5845
5845
|
_this = _super.call(this, client, response, body, options);
|
|
5846
5846
|
_this.data = body.data || [];
|
|
5847
5847
|
_this.object = body.object;
|
|
5848
5848
|
return _this;
|
|
5849
5849
|
}
|
|
5850
|
-
_create_class$
|
|
5850
|
+
_create_class$1v(Page, [
|
|
5851
5851
|
{
|
|
5852
5852
|
key: "getPaginatedItems",
|
|
5853
5853
|
value: function getPaginatedItems() {
|
|
@@ -5878,14 +5878,14 @@ var CursorPage = /*#__PURE__*/ function(AbstractPage) {
|
|
|
5878
5878
|
_inherits$1x(CursorPage, AbstractPage);
|
|
5879
5879
|
var _super = _create_super$1x(CursorPage);
|
|
5880
5880
|
function CursorPage(client, response, body, options) {
|
|
5881
|
-
_class_call_check$
|
|
5881
|
+
_class_call_check$1P(this, CursorPage);
|
|
5882
5882
|
var _this;
|
|
5883
5883
|
_this = _super.call(this, client, response, body, options);
|
|
5884
5884
|
_this.data = body.data || [];
|
|
5885
5885
|
_this.has_more = body.has_more || false;
|
|
5886
5886
|
return _this;
|
|
5887
5887
|
}
|
|
5888
|
-
_create_class$
|
|
5888
|
+
_create_class$1v(CursorPage, [
|
|
5889
5889
|
{
|
|
5890
5890
|
key: "getPaginatedItems",
|
|
5891
5891
|
value: function getPaginatedItems() {
|
|
@@ -5939,13 +5939,13 @@ var CursorPage = /*#__PURE__*/ function(AbstractPage) {
|
|
|
5939
5939
|
(AbstractPage);
|
|
5940
5940
|
|
|
5941
5941
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
5942
|
-
function _class_call_check$
|
|
5942
|
+
function _class_call_check$1O(instance, Constructor) {
|
|
5943
5943
|
if (!(instance instanceof Constructor)) {
|
|
5944
5944
|
throw new TypeError("Cannot call a class as a function");
|
|
5945
5945
|
}
|
|
5946
5946
|
}
|
|
5947
5947
|
var APIResource = function APIResource(client) {
|
|
5948
|
-
_class_call_check$
|
|
5948
|
+
_class_call_check$1O(this, APIResource);
|
|
5949
5949
|
this._client = client;
|
|
5950
5950
|
}
|
|
5951
5951
|
;
|
|
@@ -5957,12 +5957,12 @@ function _assert_this_initialized$1w(self) {
|
|
|
5957
5957
|
}
|
|
5958
5958
|
return self;
|
|
5959
5959
|
}
|
|
5960
|
-
function _class_call_check$
|
|
5960
|
+
function _class_call_check$1N(instance, Constructor) {
|
|
5961
5961
|
if (!(instance instanceof Constructor)) {
|
|
5962
5962
|
throw new TypeError("Cannot call a class as a function");
|
|
5963
5963
|
}
|
|
5964
5964
|
}
|
|
5965
|
-
function _defineProperties$
|
|
5965
|
+
function _defineProperties$1u(target, props) {
|
|
5966
5966
|
for(var i = 0; i < props.length; i++){
|
|
5967
5967
|
var descriptor = props[i];
|
|
5968
5968
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5971,8 +5971,8 @@ function _defineProperties$1v(target, props) {
|
|
|
5971
5971
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5972
5972
|
}
|
|
5973
5973
|
}
|
|
5974
|
-
function _create_class$
|
|
5975
|
-
if (protoProps) _defineProperties$
|
|
5974
|
+
function _create_class$1u(Constructor, protoProps, staticProps) {
|
|
5975
|
+
if (protoProps) _defineProperties$1u(Constructor.prototype, protoProps);
|
|
5976
5976
|
return Constructor;
|
|
5977
5977
|
}
|
|
5978
5978
|
function _define_property$1_(obj, key, value) {
|
|
@@ -6067,10 +6067,10 @@ var Messages$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
6067
6067
|
_inherits$1w(Messages, APIResource);
|
|
6068
6068
|
var _super = _create_super$1w(Messages);
|
|
6069
6069
|
function Messages() {
|
|
6070
|
-
_class_call_check$
|
|
6070
|
+
_class_call_check$1N(this, Messages);
|
|
6071
6071
|
return _super.apply(this, arguments);
|
|
6072
6072
|
}
|
|
6073
|
-
_create_class$
|
|
6073
|
+
_create_class$1u(Messages, [
|
|
6074
6074
|
{
|
|
6075
6075
|
key: "list",
|
|
6076
6076
|
value: function list(completionId) {
|
|
@@ -6094,12 +6094,12 @@ function _assert_this_initialized$1v(self) {
|
|
|
6094
6094
|
}
|
|
6095
6095
|
return self;
|
|
6096
6096
|
}
|
|
6097
|
-
function _class_call_check$
|
|
6097
|
+
function _class_call_check$1M(instance, Constructor) {
|
|
6098
6098
|
if (!(instance instanceof Constructor)) {
|
|
6099
6099
|
throw new TypeError("Cannot call a class as a function");
|
|
6100
6100
|
}
|
|
6101
6101
|
}
|
|
6102
|
-
function _defineProperties$
|
|
6102
|
+
function _defineProperties$1t(target, props) {
|
|
6103
6103
|
for(var i = 0; i < props.length; i++){
|
|
6104
6104
|
var descriptor = props[i];
|
|
6105
6105
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6108,8 +6108,8 @@ function _defineProperties$1u(target, props) {
|
|
|
6108
6108
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6109
6109
|
}
|
|
6110
6110
|
}
|
|
6111
|
-
function _create_class$
|
|
6112
|
-
if (protoProps) _defineProperties$
|
|
6111
|
+
function _create_class$1t(Constructor, protoProps, staticProps) {
|
|
6112
|
+
if (protoProps) _defineProperties$1t(Constructor.prototype, protoProps);
|
|
6113
6113
|
return Constructor;
|
|
6114
6114
|
}
|
|
6115
6115
|
function _define_property$1Z(obj, key, value) {
|
|
@@ -6223,7 +6223,7 @@ var Completions$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
6223
6223
|
_inherits$1v(Completions, APIResource);
|
|
6224
6224
|
var _super = _create_super$1v(Completions);
|
|
6225
6225
|
function Completions() {
|
|
6226
|
-
_class_call_check$
|
|
6226
|
+
_class_call_check$1M(this, Completions);
|
|
6227
6227
|
var _this;
|
|
6228
6228
|
_this = _super.call.apply(_super, [
|
|
6229
6229
|
this
|
|
@@ -6231,7 +6231,7 @@ var Completions$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
6231
6231
|
_this.messages = new Messages$1(_this._client);
|
|
6232
6232
|
return _this;
|
|
6233
6233
|
}
|
|
6234
|
-
_create_class$
|
|
6234
|
+
_create_class$1t(Completions, [
|
|
6235
6235
|
{
|
|
6236
6236
|
key: "create",
|
|
6237
6237
|
value: function create(body, options) {
|
|
@@ -6312,7 +6312,7 @@ var ChatCompletionsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
6312
6312
|
_inherits$1v(ChatCompletionsPage, CursorPage);
|
|
6313
6313
|
var _super = _create_super$1v(ChatCompletionsPage);
|
|
6314
6314
|
function ChatCompletionsPage() {
|
|
6315
|
-
_class_call_check$
|
|
6315
|
+
_class_call_check$1M(this, ChatCompletionsPage);
|
|
6316
6316
|
return _super.apply(this, arguments);
|
|
6317
6317
|
}
|
|
6318
6318
|
return ChatCompletionsPage;
|
|
@@ -6321,7 +6321,7 @@ var ChatCompletionStoreMessagesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
6321
6321
|
_inherits$1v(ChatCompletionStoreMessagesPage, CursorPage);
|
|
6322
6322
|
var _super = _create_super$1v(ChatCompletionStoreMessagesPage);
|
|
6323
6323
|
function ChatCompletionStoreMessagesPage() {
|
|
6324
|
-
_class_call_check$
|
|
6324
|
+
_class_call_check$1M(this, ChatCompletionStoreMessagesPage);
|
|
6325
6325
|
return _super.apply(this, arguments);
|
|
6326
6326
|
}
|
|
6327
6327
|
return ChatCompletionStoreMessagesPage;
|
|
@@ -6336,7 +6336,7 @@ function _assert_this_initialized$1u(self) {
|
|
|
6336
6336
|
}
|
|
6337
6337
|
return self;
|
|
6338
6338
|
}
|
|
6339
|
-
function _class_call_check$
|
|
6339
|
+
function _class_call_check$1L(instance, Constructor) {
|
|
6340
6340
|
if (!(instance instanceof Constructor)) {
|
|
6341
6341
|
throw new TypeError("Cannot call a class as a function");
|
|
6342
6342
|
}
|
|
@@ -6405,7 +6405,7 @@ var Chat$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
6405
6405
|
_inherits$1u(Chat, APIResource);
|
|
6406
6406
|
var _super = _create_super$1u(Chat);
|
|
6407
6407
|
function Chat() {
|
|
6408
|
-
_class_call_check$
|
|
6408
|
+
_class_call_check$1L(this, Chat);
|
|
6409
6409
|
var _this;
|
|
6410
6410
|
_this = _super.call.apply(_super, [
|
|
6411
6411
|
this
|
|
@@ -6425,12 +6425,12 @@ function _assert_this_initialized$1t(self) {
|
|
|
6425
6425
|
}
|
|
6426
6426
|
return self;
|
|
6427
6427
|
}
|
|
6428
|
-
function _class_call_check$
|
|
6428
|
+
function _class_call_check$1K(instance, Constructor) {
|
|
6429
6429
|
if (!(instance instanceof Constructor)) {
|
|
6430
6430
|
throw new TypeError("Cannot call a class as a function");
|
|
6431
6431
|
}
|
|
6432
6432
|
}
|
|
6433
|
-
function _defineProperties$
|
|
6433
|
+
function _defineProperties$1s(target, props) {
|
|
6434
6434
|
for(var i = 0; i < props.length; i++){
|
|
6435
6435
|
var descriptor = props[i];
|
|
6436
6436
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6439,8 +6439,8 @@ function _defineProperties$1t(target, props) {
|
|
|
6439
6439
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6440
6440
|
}
|
|
6441
6441
|
}
|
|
6442
|
-
function _create_class$
|
|
6443
|
-
if (protoProps) _defineProperties$
|
|
6442
|
+
function _create_class$1s(Constructor, protoProps, staticProps) {
|
|
6443
|
+
if (protoProps) _defineProperties$1s(Constructor.prototype, protoProps);
|
|
6444
6444
|
return Constructor;
|
|
6445
6445
|
}
|
|
6446
6446
|
function _define_property$1Y(obj, key, value) {
|
|
@@ -6554,10 +6554,10 @@ var Speech = /*#__PURE__*/ function(APIResource) {
|
|
|
6554
6554
|
_inherits$1t(Speech, APIResource);
|
|
6555
6555
|
var _super = _create_super$1t(Speech);
|
|
6556
6556
|
function Speech() {
|
|
6557
|
-
_class_call_check$
|
|
6557
|
+
_class_call_check$1K(this, Speech);
|
|
6558
6558
|
return _super.apply(this, arguments);
|
|
6559
6559
|
}
|
|
6560
|
-
_create_class$
|
|
6560
|
+
_create_class$1s(Speech, [
|
|
6561
6561
|
{
|
|
6562
6562
|
/**
|
|
6563
6563
|
* Generates audio from the input text.
|
|
@@ -6597,12 +6597,12 @@ function _assert_this_initialized$1s(self) {
|
|
|
6597
6597
|
}
|
|
6598
6598
|
return self;
|
|
6599
6599
|
}
|
|
6600
|
-
function _class_call_check$
|
|
6600
|
+
function _class_call_check$1J(instance, Constructor) {
|
|
6601
6601
|
if (!(instance instanceof Constructor)) {
|
|
6602
6602
|
throw new TypeError("Cannot call a class as a function");
|
|
6603
6603
|
}
|
|
6604
6604
|
}
|
|
6605
|
-
function _defineProperties$
|
|
6605
|
+
function _defineProperties$1r(target, props) {
|
|
6606
6606
|
for(var i = 0; i < props.length; i++){
|
|
6607
6607
|
var descriptor = props[i];
|
|
6608
6608
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6611,8 +6611,8 @@ function _defineProperties$1s(target, props) {
|
|
|
6611
6611
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6612
6612
|
}
|
|
6613
6613
|
}
|
|
6614
|
-
function _create_class$
|
|
6615
|
-
if (protoProps) _defineProperties$
|
|
6614
|
+
function _create_class$1r(Constructor, protoProps, staticProps) {
|
|
6615
|
+
if (protoProps) _defineProperties$1r(Constructor.prototype, protoProps);
|
|
6616
6616
|
return Constructor;
|
|
6617
6617
|
}
|
|
6618
6618
|
function _define_property$1X(obj, key, value) {
|
|
@@ -6726,10 +6726,10 @@ var Transcriptions = /*#__PURE__*/ function(APIResource) {
|
|
|
6726
6726
|
_inherits$1s(Transcriptions, APIResource);
|
|
6727
6727
|
var _super = _create_super$1s(Transcriptions);
|
|
6728
6728
|
function Transcriptions() {
|
|
6729
|
-
_class_call_check$
|
|
6729
|
+
_class_call_check$1J(this, Transcriptions);
|
|
6730
6730
|
return _super.apply(this, arguments);
|
|
6731
6731
|
}
|
|
6732
|
-
_create_class$
|
|
6732
|
+
_create_class$1r(Transcriptions, [
|
|
6733
6733
|
{
|
|
6734
6734
|
key: "create",
|
|
6735
6735
|
value: function create(body, options) {
|
|
@@ -6756,12 +6756,12 @@ function _assert_this_initialized$1r(self) {
|
|
|
6756
6756
|
}
|
|
6757
6757
|
return self;
|
|
6758
6758
|
}
|
|
6759
|
-
function _class_call_check$
|
|
6759
|
+
function _class_call_check$1I(instance, Constructor) {
|
|
6760
6760
|
if (!(instance instanceof Constructor)) {
|
|
6761
6761
|
throw new TypeError("Cannot call a class as a function");
|
|
6762
6762
|
}
|
|
6763
6763
|
}
|
|
6764
|
-
function _defineProperties$
|
|
6764
|
+
function _defineProperties$1q(target, props) {
|
|
6765
6765
|
for(var i = 0; i < props.length; i++){
|
|
6766
6766
|
var descriptor = props[i];
|
|
6767
6767
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6770,8 +6770,8 @@ function _defineProperties$1r(target, props) {
|
|
|
6770
6770
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6771
6771
|
}
|
|
6772
6772
|
}
|
|
6773
|
-
function _create_class$
|
|
6774
|
-
if (protoProps) _defineProperties$
|
|
6773
|
+
function _create_class$1q(Constructor, protoProps, staticProps) {
|
|
6774
|
+
if (protoProps) _defineProperties$1q(Constructor.prototype, protoProps);
|
|
6775
6775
|
return Constructor;
|
|
6776
6776
|
}
|
|
6777
6777
|
function _define_property$1W(obj, key, value) {
|
|
@@ -6885,10 +6885,10 @@ var Translations = /*#__PURE__*/ function(APIResource) {
|
|
|
6885
6885
|
_inherits$1r(Translations, APIResource);
|
|
6886
6886
|
var _super = _create_super$1r(Translations);
|
|
6887
6887
|
function Translations() {
|
|
6888
|
-
_class_call_check$
|
|
6888
|
+
_class_call_check$1I(this, Translations);
|
|
6889
6889
|
return _super.apply(this, arguments);
|
|
6890
6890
|
}
|
|
6891
|
-
_create_class$
|
|
6891
|
+
_create_class$1q(Translations, [
|
|
6892
6892
|
{
|
|
6893
6893
|
key: "create",
|
|
6894
6894
|
value: function create(body, options) {
|
|
@@ -6913,7 +6913,7 @@ function _assert_this_initialized$1q(self) {
|
|
|
6913
6913
|
}
|
|
6914
6914
|
return self;
|
|
6915
6915
|
}
|
|
6916
|
-
function _class_call_check$
|
|
6916
|
+
function _class_call_check$1H(instance, Constructor) {
|
|
6917
6917
|
if (!(instance instanceof Constructor)) {
|
|
6918
6918
|
throw new TypeError("Cannot call a class as a function");
|
|
6919
6919
|
}
|
|
@@ -6982,7 +6982,7 @@ var Audio = /*#__PURE__*/ function(APIResource) {
|
|
|
6982
6982
|
_inherits$1q(Audio, APIResource);
|
|
6983
6983
|
var _super = _create_super$1q(Audio);
|
|
6984
6984
|
function Audio() {
|
|
6985
|
-
_class_call_check$
|
|
6985
|
+
_class_call_check$1H(this, Audio);
|
|
6986
6986
|
var _this;
|
|
6987
6987
|
_this = _super.call.apply(_super, [
|
|
6988
6988
|
this
|
|
@@ -7005,12 +7005,12 @@ function _assert_this_initialized$1p(self) {
|
|
|
7005
7005
|
}
|
|
7006
7006
|
return self;
|
|
7007
7007
|
}
|
|
7008
|
-
function _class_call_check$
|
|
7008
|
+
function _class_call_check$1G(instance, Constructor) {
|
|
7009
7009
|
if (!(instance instanceof Constructor)) {
|
|
7010
7010
|
throw new TypeError("Cannot call a class as a function");
|
|
7011
7011
|
}
|
|
7012
7012
|
}
|
|
7013
|
-
function _defineProperties$
|
|
7013
|
+
function _defineProperties$1p(target, props) {
|
|
7014
7014
|
for(var i = 0; i < props.length; i++){
|
|
7015
7015
|
var descriptor = props[i];
|
|
7016
7016
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7019,8 +7019,8 @@ function _defineProperties$1q(target, props) {
|
|
|
7019
7019
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7020
7020
|
}
|
|
7021
7021
|
}
|
|
7022
|
-
function _create_class$
|
|
7023
|
-
if (protoProps) _defineProperties$
|
|
7022
|
+
function _create_class$1p(Constructor, protoProps, staticProps) {
|
|
7023
|
+
if (protoProps) _defineProperties$1p(Constructor.prototype, protoProps);
|
|
7024
7024
|
return Constructor;
|
|
7025
7025
|
}
|
|
7026
7026
|
function _define_property$1V(obj, key, value) {
|
|
@@ -7115,10 +7115,10 @@ var Batches = /*#__PURE__*/ function(APIResource) {
|
|
|
7115
7115
|
_inherits$1p(Batches, APIResource);
|
|
7116
7116
|
var _super = _create_super$1p(Batches);
|
|
7117
7117
|
function Batches() {
|
|
7118
|
-
_class_call_check$
|
|
7118
|
+
_class_call_check$1G(this, Batches);
|
|
7119
7119
|
return _super.apply(this, arguments);
|
|
7120
7120
|
}
|
|
7121
|
-
_create_class$
|
|
7121
|
+
_create_class$1p(Batches, [
|
|
7122
7122
|
{
|
|
7123
7123
|
/**
|
|
7124
7124
|
* Creates and executes a batch from an uploaded file of requests
|
|
@@ -7166,7 +7166,7 @@ var BatchesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
7166
7166
|
_inherits$1p(BatchesPage, CursorPage);
|
|
7167
7167
|
var _super = _create_super$1p(BatchesPage);
|
|
7168
7168
|
function BatchesPage() {
|
|
7169
|
-
_class_call_check$
|
|
7169
|
+
_class_call_check$1G(this, BatchesPage);
|
|
7170
7170
|
return _super.apply(this, arguments);
|
|
7171
7171
|
}
|
|
7172
7172
|
return BatchesPage;
|
|
@@ -7210,12 +7210,12 @@ function _async_to_generator$N(fn) {
|
|
|
7210
7210
|
});
|
|
7211
7211
|
};
|
|
7212
7212
|
}
|
|
7213
|
-
function _class_call_check$
|
|
7213
|
+
function _class_call_check$1F(instance, Constructor) {
|
|
7214
7214
|
if (!(instance instanceof Constructor)) {
|
|
7215
7215
|
throw new TypeError("Cannot call a class as a function");
|
|
7216
7216
|
}
|
|
7217
7217
|
}
|
|
7218
|
-
function _defineProperties$
|
|
7218
|
+
function _defineProperties$1o(target, props) {
|
|
7219
7219
|
for(var i = 0; i < props.length; i++){
|
|
7220
7220
|
var descriptor = props[i];
|
|
7221
7221
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7224,8 +7224,8 @@ function _defineProperties$1p(target, props) {
|
|
|
7224
7224
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7225
7225
|
}
|
|
7226
7226
|
}
|
|
7227
|
-
function _create_class$
|
|
7228
|
-
if (protoProps) _defineProperties$
|
|
7227
|
+
function _create_class$1o(Constructor, protoProps, staticProps) {
|
|
7228
|
+
if (protoProps) _defineProperties$1o(Constructor.prototype, protoProps);
|
|
7229
7229
|
return Constructor;
|
|
7230
7230
|
}
|
|
7231
7231
|
function _instanceof$m(left, right) {
|
|
@@ -7362,7 +7362,7 @@ var _EventStream_instances, _EventStream_connectedPromise, _EventStream_resolveC
|
|
|
7362
7362
|
var EventStream = /*#__PURE__*/ function() {
|
|
7363
7363
|
function EventStream() {
|
|
7364
7364
|
var _this = this;
|
|
7365
|
-
_class_call_check$
|
|
7365
|
+
_class_call_check$1F(this, EventStream);
|
|
7366
7366
|
_EventStream_instances.add(this);
|
|
7367
7367
|
this.controller = new AbortController();
|
|
7368
7368
|
_EventStream_connectedPromise.set(this, void 0);
|
|
@@ -7391,7 +7391,7 @@ var EventStream = /*#__PURE__*/ function() {
|
|
|
7391
7391
|
__classPrivateFieldGet$4(this, _EventStream_connectedPromise, "f").catch(function() {});
|
|
7392
7392
|
__classPrivateFieldGet$4(this, _EventStream_endPromise, "f").catch(function() {});
|
|
7393
7393
|
}
|
|
7394
|
-
_create_class$
|
|
7394
|
+
_create_class$1o(EventStream, [
|
|
7395
7395
|
{
|
|
7396
7396
|
key: "_run",
|
|
7397
7397
|
value: function _run(executor) {
|
|
@@ -7698,12 +7698,12 @@ function _async_to_generator$M(fn) {
|
|
|
7698
7698
|
});
|
|
7699
7699
|
};
|
|
7700
7700
|
}
|
|
7701
|
-
function _class_call_check$
|
|
7701
|
+
function _class_call_check$1E(instance, Constructor) {
|
|
7702
7702
|
if (!(instance instanceof Constructor)) {
|
|
7703
7703
|
throw new TypeError("Cannot call a class as a function");
|
|
7704
7704
|
}
|
|
7705
7705
|
}
|
|
7706
|
-
function _defineProperties$
|
|
7706
|
+
function _defineProperties$1n(target, props) {
|
|
7707
7707
|
for(var i = 0; i < props.length; i++){
|
|
7708
7708
|
var descriptor = props[i];
|
|
7709
7709
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7712,9 +7712,9 @@ function _defineProperties$1o(target, props) {
|
|
|
7712
7712
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
|
-
function _create_class$
|
|
7716
|
-
if (protoProps) _defineProperties$
|
|
7717
|
-
if (staticProps) _defineProperties$
|
|
7715
|
+
function _create_class$1n(Constructor, protoProps, staticProps) {
|
|
7716
|
+
if (protoProps) _defineProperties$1n(Constructor.prototype, protoProps);
|
|
7717
|
+
if (staticProps) _defineProperties$1n(Constructor, staticProps);
|
|
7718
7718
|
return Constructor;
|
|
7719
7719
|
}
|
|
7720
7720
|
function _define_property$1U(obj, key, value) {
|
|
@@ -7982,7 +7982,7 @@ var AssistantStream = /*#__PURE__*/ function(EventStream) {
|
|
|
7982
7982
|
_inherits$1o(AssistantStream, EventStream);
|
|
7983
7983
|
var _super = _create_super$1o(AssistantStream);
|
|
7984
7984
|
function AssistantStream() {
|
|
7985
|
-
_class_call_check$
|
|
7985
|
+
_class_call_check$1E(this, AssistantStream);
|
|
7986
7986
|
var _this;
|
|
7987
7987
|
_this = _super.call.apply(_super, [
|
|
7988
7988
|
this
|
|
@@ -8006,7 +8006,7 @@ var AssistantStream = /*#__PURE__*/ function(EventStream) {
|
|
|
8006
8006
|
_AssistantStream_currentRunStepSnapshot.set(_assert_this_initialized$1o(_this), void 0);
|
|
8007
8007
|
return _this;
|
|
8008
8008
|
}
|
|
8009
|
-
_create_class$
|
|
8009
|
+
_create_class$1n(AssistantStream, [
|
|
8010
8010
|
{
|
|
8011
8011
|
key: (_AssistantStream_events = new WeakMap(), _AssistantStream_runStepSnapshots = new WeakMap(), _AssistantStream_messageSnapshots = new WeakMap(), _AssistantStream_messageSnapshot = new WeakMap(), _AssistantStream_finalRun = new WeakMap(), _AssistantStream_currentContentIndex = new WeakMap(), _AssistantStream_currentContent = new WeakMap(), _AssistantStream_currentToolCallIndex = new WeakMap(), _AssistantStream_currentToolCall = new WeakMap(), _AssistantStream_currentEvent = new WeakMap(), _AssistantStream_currentRunSnapshot = new WeakMap(), _AssistantStream_currentRunStepSnapshot = new WeakMap(), _AssistantStream_instances = new WeakSet(), Symbol.asyncIterator),
|
|
8012
8012
|
value: function value() {
|
|
@@ -9271,12 +9271,12 @@ function _assert_this_initialized$1n(self) {
|
|
|
9271
9271
|
}
|
|
9272
9272
|
return self;
|
|
9273
9273
|
}
|
|
9274
|
-
function _class_call_check$
|
|
9274
|
+
function _class_call_check$1D(instance, Constructor) {
|
|
9275
9275
|
if (!(instance instanceof Constructor)) {
|
|
9276
9276
|
throw new TypeError("Cannot call a class as a function");
|
|
9277
9277
|
}
|
|
9278
9278
|
}
|
|
9279
|
-
function _defineProperties$
|
|
9279
|
+
function _defineProperties$1m(target, props) {
|
|
9280
9280
|
for(var i = 0; i < props.length; i++){
|
|
9281
9281
|
var descriptor = props[i];
|
|
9282
9282
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9285,8 +9285,8 @@ function _defineProperties$1n(target, props) {
|
|
|
9285
9285
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9286
9286
|
}
|
|
9287
9287
|
}
|
|
9288
|
-
function _create_class$
|
|
9289
|
-
if (protoProps) _defineProperties$
|
|
9288
|
+
function _create_class$1m(Constructor, protoProps, staticProps) {
|
|
9289
|
+
if (protoProps) _defineProperties$1m(Constructor.prototype, protoProps);
|
|
9290
9290
|
return Constructor;
|
|
9291
9291
|
}
|
|
9292
9292
|
function _define_property$1T(obj, key, value) {
|
|
@@ -9400,10 +9400,10 @@ var Assistants = /*#__PURE__*/ function(APIResource) {
|
|
|
9400
9400
|
_inherits$1n(Assistants, APIResource);
|
|
9401
9401
|
var _super = _create_super$1n(Assistants);
|
|
9402
9402
|
function Assistants() {
|
|
9403
|
-
_class_call_check$
|
|
9403
|
+
_class_call_check$1D(this, Assistants);
|
|
9404
9404
|
return _super.apply(this, arguments);
|
|
9405
9405
|
}
|
|
9406
|
-
_create_class$
|
|
9406
|
+
_create_class$1m(Assistants, [
|
|
9407
9407
|
{
|
|
9408
9408
|
/**
|
|
9409
9409
|
* Create an assistant with a model and instructions.
|
|
@@ -9507,7 +9507,7 @@ var AssistantsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
9507
9507
|
_inherits$1n(AssistantsPage, CursorPage);
|
|
9508
9508
|
var _super = _create_super$1n(AssistantsPage);
|
|
9509
9509
|
function AssistantsPage() {
|
|
9510
|
-
_class_call_check$
|
|
9510
|
+
_class_call_check$1D(this, AssistantsPage);
|
|
9511
9511
|
return _super.apply(this, arguments);
|
|
9512
9512
|
}
|
|
9513
9513
|
return AssistantsPage;
|
|
@@ -9772,12 +9772,12 @@ function _async_to_generator$L(fn) {
|
|
|
9772
9772
|
});
|
|
9773
9773
|
};
|
|
9774
9774
|
}
|
|
9775
|
-
function _class_call_check$
|
|
9775
|
+
function _class_call_check$1C(instance, Constructor) {
|
|
9776
9776
|
if (!(instance instanceof Constructor)) {
|
|
9777
9777
|
throw new TypeError("Cannot call a class as a function");
|
|
9778
9778
|
}
|
|
9779
9779
|
}
|
|
9780
|
-
function _defineProperties$
|
|
9780
|
+
function _defineProperties$1l(target, props) {
|
|
9781
9781
|
for(var i = 0; i < props.length; i++){
|
|
9782
9782
|
var descriptor = props[i];
|
|
9783
9783
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9786,8 +9786,8 @@ function _defineProperties$1m(target, props) {
|
|
|
9786
9786
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9787
9787
|
}
|
|
9788
9788
|
}
|
|
9789
|
-
function _create_class$
|
|
9790
|
-
if (protoProps) _defineProperties$
|
|
9789
|
+
function _create_class$1l(Constructor, protoProps, staticProps) {
|
|
9790
|
+
if (protoProps) _defineProperties$1l(Constructor.prototype, protoProps);
|
|
9791
9791
|
return Constructor;
|
|
9792
9792
|
}
|
|
9793
9793
|
function _define_property$1R(obj, key, value) {
|
|
@@ -10054,7 +10054,7 @@ var AbstractChatCompletionRunner = /*#__PURE__*/ function(EventStream) {
|
|
|
10054
10054
|
_inherits$1m(AbstractChatCompletionRunner, EventStream);
|
|
10055
10055
|
var _super = _create_super$1m(AbstractChatCompletionRunner);
|
|
10056
10056
|
function AbstractChatCompletionRunner() {
|
|
10057
|
-
_class_call_check$
|
|
10057
|
+
_class_call_check$1C(this, AbstractChatCompletionRunner);
|
|
10058
10058
|
var _this;
|
|
10059
10059
|
_this = _super.call.apply(_super, [
|
|
10060
10060
|
this
|
|
@@ -10064,7 +10064,7 @@ var AbstractChatCompletionRunner = /*#__PURE__*/ function(EventStream) {
|
|
|
10064
10064
|
_this.messages = [];
|
|
10065
10065
|
return _this;
|
|
10066
10066
|
}
|
|
10067
|
-
_create_class$
|
|
10067
|
+
_create_class$1l(AbstractChatCompletionRunner, [
|
|
10068
10068
|
{
|
|
10069
10069
|
key: "_addChatCompletion",
|
|
10070
10070
|
value: function _addChatCompletion(chatCompletion) {
|
|
@@ -10949,12 +10949,12 @@ function _assert_this_initialized$1l(self) {
|
|
|
10949
10949
|
}
|
|
10950
10950
|
return self;
|
|
10951
10951
|
}
|
|
10952
|
-
function _class_call_check$
|
|
10952
|
+
function _class_call_check$1B(instance, Constructor) {
|
|
10953
10953
|
if (!(instance instanceof Constructor)) {
|
|
10954
10954
|
throw new TypeError("Cannot call a class as a function");
|
|
10955
10955
|
}
|
|
10956
10956
|
}
|
|
10957
|
-
function _defineProperties$
|
|
10957
|
+
function _defineProperties$1k(target, props) {
|
|
10958
10958
|
for(var i = 0; i < props.length; i++){
|
|
10959
10959
|
var descriptor = props[i];
|
|
10960
10960
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10963,9 +10963,9 @@ function _defineProperties$1l(target, props) {
|
|
|
10963
10963
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10964
10964
|
}
|
|
10965
10965
|
}
|
|
10966
|
-
function _create_class$
|
|
10967
|
-
if (protoProps) _defineProperties$
|
|
10968
|
-
if (staticProps) _defineProperties$
|
|
10966
|
+
function _create_class$1k(Constructor, protoProps, staticProps) {
|
|
10967
|
+
if (protoProps) _defineProperties$1k(Constructor.prototype, protoProps);
|
|
10968
|
+
if (staticProps) _defineProperties$1k(Constructor, staticProps);
|
|
10969
10969
|
return Constructor;
|
|
10970
10970
|
}
|
|
10971
10971
|
function _define_property$1Q(obj, key, value) {
|
|
@@ -11102,10 +11102,10 @@ var ChatCompletionRunner = /*#__PURE__*/ function(AbstractChatCompletionRunner)
|
|
|
11102
11102
|
_inherits$1l(ChatCompletionRunner, AbstractChatCompletionRunner);
|
|
11103
11103
|
var _super = _create_super$1l(ChatCompletionRunner);
|
|
11104
11104
|
function ChatCompletionRunner() {
|
|
11105
|
-
_class_call_check$
|
|
11105
|
+
_class_call_check$1B(this, ChatCompletionRunner);
|
|
11106
11106
|
return _super.apply(this, arguments);
|
|
11107
11107
|
}
|
|
11108
|
-
_create_class$
|
|
11108
|
+
_create_class$1k(ChatCompletionRunner, [
|
|
11109
11109
|
{
|
|
11110
11110
|
key: "_addMessage",
|
|
11111
11111
|
value: function _addMessage(message) {
|
|
@@ -11158,7 +11158,7 @@ function _assert_this_initialized$1k(self) {
|
|
|
11158
11158
|
}
|
|
11159
11159
|
return self;
|
|
11160
11160
|
}
|
|
11161
|
-
function _class_call_check$
|
|
11161
|
+
function _class_call_check$1A(instance, Constructor) {
|
|
11162
11162
|
if (!(instance instanceof Constructor)) {
|
|
11163
11163
|
throw new TypeError("Cannot call a class as a function");
|
|
11164
11164
|
}
|
|
@@ -11304,7 +11304,7 @@ var PartialJSON = /*#__PURE__*/ function(Error1) {
|
|
|
11304
11304
|
_inherits$1k(PartialJSON, Error1);
|
|
11305
11305
|
var _super = _create_super$1k(PartialJSON);
|
|
11306
11306
|
function PartialJSON() {
|
|
11307
|
-
_class_call_check$
|
|
11307
|
+
_class_call_check$1A(this, PartialJSON);
|
|
11308
11308
|
return _super.apply(this, arguments);
|
|
11309
11309
|
}
|
|
11310
11310
|
return PartialJSON;
|
|
@@ -11313,7 +11313,7 @@ var MalformedJSON = /*#__PURE__*/ function(Error1) {
|
|
|
11313
11313
|
_inherits$1k(MalformedJSON, Error1);
|
|
11314
11314
|
var _super = _create_super$1k(MalformedJSON);
|
|
11315
11315
|
function MalformedJSON() {
|
|
11316
|
-
_class_call_check$
|
|
11316
|
+
_class_call_check$1A(this, MalformedJSON);
|
|
11317
11317
|
return _super.apply(this, arguments);
|
|
11318
11318
|
}
|
|
11319
11319
|
return MalformedJSON;
|
|
@@ -11579,12 +11579,12 @@ function _async_to_generator$K(fn) {
|
|
|
11579
11579
|
});
|
|
11580
11580
|
};
|
|
11581
11581
|
}
|
|
11582
|
-
function _class_call_check$
|
|
11582
|
+
function _class_call_check$1z(instance, Constructor) {
|
|
11583
11583
|
if (!(instance instanceof Constructor)) {
|
|
11584
11584
|
throw new TypeError("Cannot call a class as a function");
|
|
11585
11585
|
}
|
|
11586
11586
|
}
|
|
11587
|
-
function _defineProperties$
|
|
11587
|
+
function _defineProperties$1j(target, props) {
|
|
11588
11588
|
for(var i = 0; i < props.length; i++){
|
|
11589
11589
|
var descriptor = props[i];
|
|
11590
11590
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11593,9 +11593,9 @@ function _defineProperties$1k(target, props) {
|
|
|
11593
11593
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11594
11594
|
}
|
|
11595
11595
|
}
|
|
11596
|
-
function _create_class$
|
|
11597
|
-
if (protoProps) _defineProperties$
|
|
11598
|
-
if (staticProps) _defineProperties$
|
|
11596
|
+
function _create_class$1j(Constructor, protoProps, staticProps) {
|
|
11597
|
+
if (protoProps) _defineProperties$1j(Constructor.prototype, protoProps);
|
|
11598
|
+
if (staticProps) _defineProperties$1j(Constructor, staticProps);
|
|
11599
11599
|
return Constructor;
|
|
11600
11600
|
}
|
|
11601
11601
|
function _define_property$1P(obj, key, value) {
|
|
@@ -11883,7 +11883,7 @@ var ChatCompletionStream = /*#__PURE__*/ function(AbstractChatCompletionRunner)
|
|
|
11883
11883
|
_inherits$1j(ChatCompletionStream, AbstractChatCompletionRunner);
|
|
11884
11884
|
var _super = _create_super$1j(ChatCompletionStream);
|
|
11885
11885
|
function ChatCompletionStream(params) {
|
|
11886
|
-
_class_call_check$
|
|
11886
|
+
_class_call_check$1z(this, ChatCompletionStream);
|
|
11887
11887
|
var _this;
|
|
11888
11888
|
_this = _super.call(this);
|
|
11889
11889
|
_ChatCompletionStream_instances.add(_assert_this_initialized$1j(_this));
|
|
@@ -11894,7 +11894,7 @@ var ChatCompletionStream = /*#__PURE__*/ function(AbstractChatCompletionRunner)
|
|
|
11894
11894
|
__classPrivateFieldSet$1(_assert_this_initialized$1j(_this), _ChatCompletionStream_choiceEventStates, [], "f");
|
|
11895
11895
|
return _this;
|
|
11896
11896
|
}
|
|
11897
|
-
_create_class$
|
|
11897
|
+
_create_class$1j(ChatCompletionStream, [
|
|
11898
11898
|
{
|
|
11899
11899
|
key: "currentChatCompletionSnapshot",
|
|
11900
11900
|
get: function get() {
|
|
@@ -12843,12 +12843,12 @@ function _assert_this_initialized$1i(self) {
|
|
|
12843
12843
|
}
|
|
12844
12844
|
return self;
|
|
12845
12845
|
}
|
|
12846
|
-
function _class_call_check$
|
|
12846
|
+
function _class_call_check$1y(instance, Constructor) {
|
|
12847
12847
|
if (!(instance instanceof Constructor)) {
|
|
12848
12848
|
throw new TypeError("Cannot call a class as a function");
|
|
12849
12849
|
}
|
|
12850
12850
|
}
|
|
12851
|
-
function _defineProperties$
|
|
12851
|
+
function _defineProperties$1i(target, props) {
|
|
12852
12852
|
for(var i = 0; i < props.length; i++){
|
|
12853
12853
|
var descriptor = props[i];
|
|
12854
12854
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12857,8 +12857,8 @@ function _defineProperties$1j(target, props) {
|
|
|
12857
12857
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12858
12858
|
}
|
|
12859
12859
|
}
|
|
12860
|
-
function _create_class$
|
|
12861
|
-
if (staticProps) _defineProperties$
|
|
12860
|
+
function _create_class$1i(Constructor, protoProps, staticProps) {
|
|
12861
|
+
if (staticProps) _defineProperties$1i(Constructor, staticProps);
|
|
12862
12862
|
return Constructor;
|
|
12863
12863
|
}
|
|
12864
12864
|
function _define_property$1O(obj, key, value) {
|
|
@@ -12972,10 +12972,10 @@ var ChatCompletionStreamingRunner = /*#__PURE__*/ function(ChatCompletionStream)
|
|
|
12972
12972
|
_inherits$1i(ChatCompletionStreamingRunner, ChatCompletionStream);
|
|
12973
12973
|
var _super = _create_super$1i(ChatCompletionStreamingRunner);
|
|
12974
12974
|
function ChatCompletionStreamingRunner() {
|
|
12975
|
-
_class_call_check$
|
|
12975
|
+
_class_call_check$1y(this, ChatCompletionStreamingRunner);
|
|
12976
12976
|
return _super.apply(this, arguments);
|
|
12977
12977
|
}
|
|
12978
|
-
_create_class$
|
|
12978
|
+
_create_class$1i(ChatCompletionStreamingRunner, null, [
|
|
12979
12979
|
{
|
|
12980
12980
|
key: "fromReadableStream",
|
|
12981
12981
|
value: function fromReadableStream(stream) {
|
|
@@ -13029,12 +13029,12 @@ function _assert_this_initialized$1h(self) {
|
|
|
13029
13029
|
}
|
|
13030
13030
|
return self;
|
|
13031
13031
|
}
|
|
13032
|
-
function _class_call_check$
|
|
13032
|
+
function _class_call_check$1x(instance, Constructor) {
|
|
13033
13033
|
if (!(instance instanceof Constructor)) {
|
|
13034
13034
|
throw new TypeError("Cannot call a class as a function");
|
|
13035
13035
|
}
|
|
13036
13036
|
}
|
|
13037
|
-
function _defineProperties$
|
|
13037
|
+
function _defineProperties$1h(target, props) {
|
|
13038
13038
|
for(var i = 0; i < props.length; i++){
|
|
13039
13039
|
var descriptor = props[i];
|
|
13040
13040
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13043,8 +13043,8 @@ function _defineProperties$1i(target, props) {
|
|
|
13043
13043
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13044
13044
|
}
|
|
13045
13045
|
}
|
|
13046
|
-
function _create_class$
|
|
13047
|
-
if (protoProps) _defineProperties$
|
|
13046
|
+
function _create_class$1h(Constructor, protoProps, staticProps) {
|
|
13047
|
+
if (protoProps) _defineProperties$1h(Constructor.prototype, protoProps);
|
|
13048
13048
|
return Constructor;
|
|
13049
13049
|
}
|
|
13050
13050
|
function _define_property$1N(obj, key, value) {
|
|
@@ -13158,10 +13158,10 @@ var Completions$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
13158
13158
|
_inherits$1h(Completions, APIResource);
|
|
13159
13159
|
var _super = _create_super$1h(Completions);
|
|
13160
13160
|
function Completions() {
|
|
13161
|
-
_class_call_check$
|
|
13161
|
+
_class_call_check$1x(this, Completions);
|
|
13162
13162
|
return _super.apply(this, arguments);
|
|
13163
13163
|
}
|
|
13164
|
-
_create_class$
|
|
13164
|
+
_create_class$1h(Completions, [
|
|
13165
13165
|
{
|
|
13166
13166
|
key: "parse",
|
|
13167
13167
|
value: function parse(body, options) {
|
|
@@ -13213,7 +13213,7 @@ function _assert_this_initialized$1g(self) {
|
|
|
13213
13213
|
}
|
|
13214
13214
|
return self;
|
|
13215
13215
|
}
|
|
13216
|
-
function _class_call_check$
|
|
13216
|
+
function _class_call_check$1w(instance, Constructor) {
|
|
13217
13217
|
if (!(instance instanceof Constructor)) {
|
|
13218
13218
|
throw new TypeError("Cannot call a class as a function");
|
|
13219
13219
|
}
|
|
@@ -13282,7 +13282,7 @@ var Chat = /*#__PURE__*/ function(APIResource) {
|
|
|
13282
13282
|
_inherits$1g(Chat, APIResource);
|
|
13283
13283
|
var _super = _create_super$1g(Chat);
|
|
13284
13284
|
function Chat() {
|
|
13285
|
-
_class_call_check$
|
|
13285
|
+
_class_call_check$1w(this, Chat);
|
|
13286
13286
|
var _this;
|
|
13287
13287
|
_this = _super.call.apply(_super, [
|
|
13288
13288
|
this
|
|
@@ -13303,12 +13303,12 @@ function _assert_this_initialized$1f(self) {
|
|
|
13303
13303
|
}
|
|
13304
13304
|
return self;
|
|
13305
13305
|
}
|
|
13306
|
-
function _class_call_check$
|
|
13306
|
+
function _class_call_check$1v(instance, Constructor) {
|
|
13307
13307
|
if (!(instance instanceof Constructor)) {
|
|
13308
13308
|
throw new TypeError("Cannot call a class as a function");
|
|
13309
13309
|
}
|
|
13310
13310
|
}
|
|
13311
|
-
function _defineProperties$
|
|
13311
|
+
function _defineProperties$1g(target, props) {
|
|
13312
13312
|
for(var i = 0; i < props.length; i++){
|
|
13313
13313
|
var descriptor = props[i];
|
|
13314
13314
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13317,8 +13317,8 @@ function _defineProperties$1h(target, props) {
|
|
|
13317
13317
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13318
13318
|
}
|
|
13319
13319
|
}
|
|
13320
|
-
function _create_class$
|
|
13321
|
-
if (protoProps) _defineProperties$
|
|
13320
|
+
function _create_class$1g(Constructor, protoProps, staticProps) {
|
|
13321
|
+
if (protoProps) _defineProperties$1g(Constructor.prototype, protoProps);
|
|
13322
13322
|
return Constructor;
|
|
13323
13323
|
}
|
|
13324
13324
|
function _define_property$1M(obj, key, value) {
|
|
@@ -13432,10 +13432,10 @@ var Sessions = /*#__PURE__*/ function(APIResource) {
|
|
|
13432
13432
|
_inherits$1f(Sessions, APIResource);
|
|
13433
13433
|
var _super = _create_super$1f(Sessions);
|
|
13434
13434
|
function Sessions() {
|
|
13435
|
-
_class_call_check$
|
|
13435
|
+
_class_call_check$1v(this, Sessions);
|
|
13436
13436
|
return _super.apply(this, arguments);
|
|
13437
13437
|
}
|
|
13438
|
-
_create_class$
|
|
13438
|
+
_create_class$1g(Sessions, [
|
|
13439
13439
|
{
|
|
13440
13440
|
/**
|
|
13441
13441
|
* Create an ephemeral API token for use in client-side applications with the
|
|
@@ -13474,12 +13474,12 @@ function _assert_this_initialized$1e(self) {
|
|
|
13474
13474
|
}
|
|
13475
13475
|
return self;
|
|
13476
13476
|
}
|
|
13477
|
-
function _class_call_check$
|
|
13477
|
+
function _class_call_check$1u(instance, Constructor) {
|
|
13478
13478
|
if (!(instance instanceof Constructor)) {
|
|
13479
13479
|
throw new TypeError("Cannot call a class as a function");
|
|
13480
13480
|
}
|
|
13481
13481
|
}
|
|
13482
|
-
function _defineProperties$
|
|
13482
|
+
function _defineProperties$1f(target, props) {
|
|
13483
13483
|
for(var i = 0; i < props.length; i++){
|
|
13484
13484
|
var descriptor = props[i];
|
|
13485
13485
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13488,8 +13488,8 @@ function _defineProperties$1g(target, props) {
|
|
|
13488
13488
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13489
13489
|
}
|
|
13490
13490
|
}
|
|
13491
|
-
function _create_class$
|
|
13492
|
-
if (protoProps) _defineProperties$
|
|
13491
|
+
function _create_class$1f(Constructor, protoProps, staticProps) {
|
|
13492
|
+
if (protoProps) _defineProperties$1f(Constructor.prototype, protoProps);
|
|
13493
13493
|
return Constructor;
|
|
13494
13494
|
}
|
|
13495
13495
|
function _define_property$1L(obj, key, value) {
|
|
@@ -13603,10 +13603,10 @@ var TranscriptionSessions = /*#__PURE__*/ function(APIResource) {
|
|
|
13603
13603
|
_inherits$1e(TranscriptionSessions, APIResource);
|
|
13604
13604
|
var _super = _create_super$1e(TranscriptionSessions);
|
|
13605
13605
|
function TranscriptionSessions() {
|
|
13606
|
-
_class_call_check$
|
|
13606
|
+
_class_call_check$1u(this, TranscriptionSessions);
|
|
13607
13607
|
return _super.apply(this, arguments);
|
|
13608
13608
|
}
|
|
13609
|
-
_create_class$
|
|
13609
|
+
_create_class$1f(TranscriptionSessions, [
|
|
13610
13610
|
{
|
|
13611
13611
|
/**
|
|
13612
13612
|
* Create an ephemeral API token for use in client-side applications with the
|
|
@@ -13645,7 +13645,7 @@ function _assert_this_initialized$1d(self) {
|
|
|
13645
13645
|
}
|
|
13646
13646
|
return self;
|
|
13647
13647
|
}
|
|
13648
|
-
function _class_call_check$
|
|
13648
|
+
function _class_call_check$1t(instance, Constructor) {
|
|
13649
13649
|
if (!(instance instanceof Constructor)) {
|
|
13650
13650
|
throw new TypeError("Cannot call a class as a function");
|
|
13651
13651
|
}
|
|
@@ -13714,7 +13714,7 @@ var Realtime = /*#__PURE__*/ function(APIResource) {
|
|
|
13714
13714
|
_inherits$1d(Realtime, APIResource);
|
|
13715
13715
|
var _super = _create_super$1d(Realtime);
|
|
13716
13716
|
function Realtime() {
|
|
13717
|
-
_class_call_check$
|
|
13717
|
+
_class_call_check$1t(this, Realtime);
|
|
13718
13718
|
var _this;
|
|
13719
13719
|
_this = _super.call.apply(_super, [
|
|
13720
13720
|
this
|
|
@@ -13735,12 +13735,12 @@ function _assert_this_initialized$1c(self) {
|
|
|
13735
13735
|
}
|
|
13736
13736
|
return self;
|
|
13737
13737
|
}
|
|
13738
|
-
function _class_call_check$
|
|
13738
|
+
function _class_call_check$1s(instance, Constructor) {
|
|
13739
13739
|
if (!(instance instanceof Constructor)) {
|
|
13740
13740
|
throw new TypeError("Cannot call a class as a function");
|
|
13741
13741
|
}
|
|
13742
13742
|
}
|
|
13743
|
-
function _defineProperties$
|
|
13743
|
+
function _defineProperties$1e(target, props) {
|
|
13744
13744
|
for(var i = 0; i < props.length; i++){
|
|
13745
13745
|
var descriptor = props[i];
|
|
13746
13746
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13749,8 +13749,8 @@ function _defineProperties$1f(target, props) {
|
|
|
13749
13749
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13750
13750
|
}
|
|
13751
13751
|
}
|
|
13752
|
-
function _create_class$
|
|
13753
|
-
if (protoProps) _defineProperties$
|
|
13752
|
+
function _create_class$1e(Constructor, protoProps, staticProps) {
|
|
13753
|
+
if (protoProps) _defineProperties$1e(Constructor.prototype, protoProps);
|
|
13754
13754
|
return Constructor;
|
|
13755
13755
|
}
|
|
13756
13756
|
function _define_property$1K(obj, key, value) {
|
|
@@ -13866,10 +13866,10 @@ function _create_super$1c(Derived) {
|
|
|
13866
13866
|
_inherits$1c(Messages, APIResource);
|
|
13867
13867
|
var _super = _create_super$1c(Messages);
|
|
13868
13868
|
function Messages() {
|
|
13869
|
-
_class_call_check$
|
|
13869
|
+
_class_call_check$1s(this, Messages);
|
|
13870
13870
|
return _super.apply(this, arguments);
|
|
13871
13871
|
}
|
|
13872
|
-
_create_class$
|
|
13872
|
+
_create_class$1e(Messages, [
|
|
13873
13873
|
{
|
|
13874
13874
|
/**
|
|
13875
13875
|
* Create a message.
|
|
@@ -13953,7 +13953,7 @@ var MessagesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
13953
13953
|
_inherits$1c(MessagesPage, CursorPage);
|
|
13954
13954
|
var _super = _create_super$1c(MessagesPage);
|
|
13955
13955
|
function MessagesPage() {
|
|
13956
|
-
_class_call_check$
|
|
13956
|
+
_class_call_check$1s(this, MessagesPage);
|
|
13957
13957
|
return _super.apply(this, arguments);
|
|
13958
13958
|
}
|
|
13959
13959
|
return MessagesPage;
|
|
@@ -13967,12 +13967,12 @@ function _assert_this_initialized$1b(self) {
|
|
|
13967
13967
|
}
|
|
13968
13968
|
return self;
|
|
13969
13969
|
}
|
|
13970
|
-
function _class_call_check$
|
|
13970
|
+
function _class_call_check$1r(instance, Constructor) {
|
|
13971
13971
|
if (!(instance instanceof Constructor)) {
|
|
13972
13972
|
throw new TypeError("Cannot call a class as a function");
|
|
13973
13973
|
}
|
|
13974
13974
|
}
|
|
13975
|
-
function _defineProperties$
|
|
13975
|
+
function _defineProperties$1d(target, props) {
|
|
13976
13976
|
for(var i = 0; i < props.length; i++){
|
|
13977
13977
|
var descriptor = props[i];
|
|
13978
13978
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13981,8 +13981,8 @@ function _defineProperties$1e(target, props) {
|
|
|
13981
13981
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13982
13982
|
}
|
|
13983
13983
|
}
|
|
13984
|
-
function _create_class$
|
|
13985
|
-
if (protoProps) _defineProperties$
|
|
13984
|
+
function _create_class$1d(Constructor, protoProps, staticProps) {
|
|
13985
|
+
if (protoProps) _defineProperties$1d(Constructor.prototype, protoProps);
|
|
13986
13986
|
return Constructor;
|
|
13987
13987
|
}
|
|
13988
13988
|
function _define_property$1J(obj, key, value) {
|
|
@@ -14098,10 +14098,10 @@ function _create_super$1b(Derived) {
|
|
|
14098
14098
|
_inherits$1b(Steps, APIResource);
|
|
14099
14099
|
var _super = _create_super$1b(Steps);
|
|
14100
14100
|
function Steps() {
|
|
14101
|
-
_class_call_check$
|
|
14101
|
+
_class_call_check$1r(this, Steps);
|
|
14102
14102
|
return _super.apply(this, arguments);
|
|
14103
14103
|
}
|
|
14104
|
-
_create_class$
|
|
14104
|
+
_create_class$1d(Steps, [
|
|
14105
14105
|
{
|
|
14106
14106
|
key: "retrieve",
|
|
14107
14107
|
value: function retrieve(threadId, runId, stepId) {
|
|
@@ -14141,7 +14141,7 @@ var RunStepsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
14141
14141
|
_inherits$1b(RunStepsPage, CursorPage);
|
|
14142
14142
|
var _super = _create_super$1b(RunStepsPage);
|
|
14143
14143
|
function RunStepsPage() {
|
|
14144
|
-
_class_call_check$
|
|
14144
|
+
_class_call_check$1r(this, RunStepsPage);
|
|
14145
14145
|
return _super.apply(this, arguments);
|
|
14146
14146
|
}
|
|
14147
14147
|
return RunStepsPage;
|
|
@@ -14184,12 +14184,12 @@ function _async_to_generator$J(fn) {
|
|
|
14184
14184
|
});
|
|
14185
14185
|
};
|
|
14186
14186
|
}
|
|
14187
|
-
function _class_call_check$
|
|
14187
|
+
function _class_call_check$1q(instance, Constructor) {
|
|
14188
14188
|
if (!(instance instanceof Constructor)) {
|
|
14189
14189
|
throw new TypeError("Cannot call a class as a function");
|
|
14190
14190
|
}
|
|
14191
14191
|
}
|
|
14192
|
-
function _defineProperties$
|
|
14192
|
+
function _defineProperties$1c(target, props) {
|
|
14193
14193
|
for(var i = 0; i < props.length; i++){
|
|
14194
14194
|
var descriptor = props[i];
|
|
14195
14195
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14198,8 +14198,8 @@ function _defineProperties$1d(target, props) {
|
|
|
14198
14198
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14199
14199
|
}
|
|
14200
14200
|
}
|
|
14201
|
-
function _create_class$
|
|
14202
|
-
if (protoProps) _defineProperties$
|
|
14201
|
+
function _create_class$1c(Constructor, protoProps, staticProps) {
|
|
14202
|
+
if (protoProps) _defineProperties$1c(Constructor.prototype, protoProps);
|
|
14203
14203
|
return Constructor;
|
|
14204
14204
|
}
|
|
14205
14205
|
function _define_property$1I(obj, key, value) {
|
|
@@ -14437,7 +14437,7 @@ function _ts_generator$L(thisArg, body) {
|
|
|
14437
14437
|
_inherits$1a(Runs, APIResource);
|
|
14438
14438
|
var _super = _create_super$1a(Runs);
|
|
14439
14439
|
function Runs() {
|
|
14440
|
-
_class_call_check$
|
|
14440
|
+
_class_call_check$1q(this, Runs);
|
|
14441
14441
|
var _this;
|
|
14442
14442
|
_this = _super.call.apply(_super, [
|
|
14443
14443
|
this
|
|
@@ -14445,7 +14445,7 @@ function _ts_generator$L(thisArg, body) {
|
|
|
14445
14445
|
_this.steps = new Steps(_this._client);
|
|
14446
14446
|
return _this;
|
|
14447
14447
|
}
|
|
14448
|
-
_create_class$
|
|
14448
|
+
_create_class$1c(Runs, [
|
|
14449
14449
|
{
|
|
14450
14450
|
key: "create",
|
|
14451
14451
|
value: function create(threadId, params, options) {
|
|
@@ -14764,7 +14764,7 @@ var RunsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
14764
14764
|
_inherits$1a(RunsPage, CursorPage);
|
|
14765
14765
|
var _super = _create_super$1a(RunsPage);
|
|
14766
14766
|
function RunsPage() {
|
|
14767
|
-
_class_call_check$
|
|
14767
|
+
_class_call_check$1q(this, RunsPage);
|
|
14768
14768
|
return _super.apply(this, arguments);
|
|
14769
14769
|
}
|
|
14770
14770
|
return RunsPage;
|
|
@@ -14809,12 +14809,12 @@ function _async_to_generator$I(fn) {
|
|
|
14809
14809
|
});
|
|
14810
14810
|
};
|
|
14811
14811
|
}
|
|
14812
|
-
function _class_call_check$
|
|
14812
|
+
function _class_call_check$1p(instance, Constructor) {
|
|
14813
14813
|
if (!(instance instanceof Constructor)) {
|
|
14814
14814
|
throw new TypeError("Cannot call a class as a function");
|
|
14815
14815
|
}
|
|
14816
14816
|
}
|
|
14817
|
-
function _defineProperties$
|
|
14817
|
+
function _defineProperties$1b(target, props) {
|
|
14818
14818
|
for(var i = 0; i < props.length; i++){
|
|
14819
14819
|
var descriptor = props[i];
|
|
14820
14820
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14823,8 +14823,8 @@ function _defineProperties$1c(target, props) {
|
|
|
14823
14823
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14824
14824
|
}
|
|
14825
14825
|
}
|
|
14826
|
-
function _create_class$
|
|
14827
|
-
if (protoProps) _defineProperties$
|
|
14826
|
+
function _create_class$1b(Constructor, protoProps, staticProps) {
|
|
14827
|
+
if (protoProps) _defineProperties$1b(Constructor.prototype, protoProps);
|
|
14828
14828
|
return Constructor;
|
|
14829
14829
|
}
|
|
14830
14830
|
function _define_property$1H(obj, key, value) {
|
|
@@ -15035,7 +15035,7 @@ function _ts_generator$K(thisArg, body) {
|
|
|
15035
15035
|
_inherits$19(Threads, APIResource);
|
|
15036
15036
|
var _super = _create_super$19(Threads);
|
|
15037
15037
|
function Threads() {
|
|
15038
|
-
_class_call_check$
|
|
15038
|
+
_class_call_check$1p(this, Threads);
|
|
15039
15039
|
var _this;
|
|
15040
15040
|
_this = _super.call.apply(_super, [
|
|
15041
15041
|
this
|
|
@@ -15044,7 +15044,7 @@ function _ts_generator$K(thisArg, body) {
|
|
|
15044
15044
|
_this.messages = new Messages(_this._client);
|
|
15045
15045
|
return _this;
|
|
15046
15046
|
}
|
|
15047
|
-
_create_class$
|
|
15047
|
+
_create_class$1b(Threads, [
|
|
15048
15048
|
{
|
|
15049
15049
|
key: "create",
|
|
15050
15050
|
value: function create() {
|
|
@@ -15175,7 +15175,7 @@ function _assert_this_initialized$18(self) {
|
|
|
15175
15175
|
}
|
|
15176
15176
|
return self;
|
|
15177
15177
|
}
|
|
15178
|
-
function _class_call_check$
|
|
15178
|
+
function _class_call_check$1o(instance, Constructor) {
|
|
15179
15179
|
if (!(instance instanceof Constructor)) {
|
|
15180
15180
|
throw new TypeError("Cannot call a class as a function");
|
|
15181
15181
|
}
|
|
@@ -15244,7 +15244,7 @@ var Beta = /*#__PURE__*/ function(APIResource) {
|
|
|
15244
15244
|
_inherits$18(Beta, APIResource);
|
|
15245
15245
|
var _super = _create_super$18(Beta);
|
|
15246
15246
|
function Beta() {
|
|
15247
|
-
_class_call_check$
|
|
15247
|
+
_class_call_check$1o(this, Beta);
|
|
15248
15248
|
var _this;
|
|
15249
15249
|
_this = _super.call.apply(_super, [
|
|
15250
15250
|
this
|
|
@@ -15269,12 +15269,12 @@ function _assert_this_initialized$17(self) {
|
|
|
15269
15269
|
}
|
|
15270
15270
|
return self;
|
|
15271
15271
|
}
|
|
15272
|
-
function _class_call_check$
|
|
15272
|
+
function _class_call_check$1n(instance, Constructor) {
|
|
15273
15273
|
if (!(instance instanceof Constructor)) {
|
|
15274
15274
|
throw new TypeError("Cannot call a class as a function");
|
|
15275
15275
|
}
|
|
15276
15276
|
}
|
|
15277
|
-
function _defineProperties$
|
|
15277
|
+
function _defineProperties$1a(target, props) {
|
|
15278
15278
|
for(var i = 0; i < props.length; i++){
|
|
15279
15279
|
var descriptor = props[i];
|
|
15280
15280
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15283,8 +15283,8 @@ function _defineProperties$1b(target, props) {
|
|
|
15283
15283
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15284
15284
|
}
|
|
15285
15285
|
}
|
|
15286
|
-
function _create_class$
|
|
15287
|
-
if (protoProps) _defineProperties$
|
|
15286
|
+
function _create_class$1a(Constructor, protoProps, staticProps) {
|
|
15287
|
+
if (protoProps) _defineProperties$1a(Constructor.prototype, protoProps);
|
|
15288
15288
|
return Constructor;
|
|
15289
15289
|
}
|
|
15290
15290
|
function _define_property$1G(obj, key, value) {
|
|
@@ -15398,10 +15398,10 @@ var Completions = /*#__PURE__*/ function(APIResource) {
|
|
|
15398
15398
|
_inherits$17(Completions, APIResource);
|
|
15399
15399
|
var _super = _create_super$17(Completions);
|
|
15400
15400
|
function Completions() {
|
|
15401
|
-
_class_call_check$
|
|
15401
|
+
_class_call_check$1n(this, Completions);
|
|
15402
15402
|
return _super.apply(this, arguments);
|
|
15403
15403
|
}
|
|
15404
|
-
_create_class$
|
|
15404
|
+
_create_class$1a(Completions, [
|
|
15405
15405
|
{
|
|
15406
15406
|
key: "create",
|
|
15407
15407
|
value: function create(body, options) {
|
|
@@ -15425,12 +15425,12 @@ function _assert_this_initialized$16(self) {
|
|
|
15425
15425
|
}
|
|
15426
15426
|
return self;
|
|
15427
15427
|
}
|
|
15428
|
-
function _class_call_check$
|
|
15428
|
+
function _class_call_check$1m(instance, Constructor) {
|
|
15429
15429
|
if (!(instance instanceof Constructor)) {
|
|
15430
15430
|
throw new TypeError("Cannot call a class as a function");
|
|
15431
15431
|
}
|
|
15432
15432
|
}
|
|
15433
|
-
function _defineProperties$
|
|
15433
|
+
function _defineProperties$19(target, props) {
|
|
15434
15434
|
for(var i = 0; i < props.length; i++){
|
|
15435
15435
|
var descriptor = props[i];
|
|
15436
15436
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15439,8 +15439,8 @@ function _defineProperties$1a(target, props) {
|
|
|
15439
15439
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15440
15440
|
}
|
|
15441
15441
|
}
|
|
15442
|
-
function _create_class$
|
|
15443
|
-
if (protoProps) _defineProperties$
|
|
15442
|
+
function _create_class$19(Constructor, protoProps, staticProps) {
|
|
15443
|
+
if (protoProps) _defineProperties$19(Constructor.prototype, protoProps);
|
|
15444
15444
|
return Constructor;
|
|
15445
15445
|
}
|
|
15446
15446
|
function _define_property$1F(obj, key, value) {
|
|
@@ -15554,10 +15554,10 @@ var Content = /*#__PURE__*/ function(APIResource) {
|
|
|
15554
15554
|
_inherits$16(Content, APIResource);
|
|
15555
15555
|
var _super = _create_super$16(Content);
|
|
15556
15556
|
function Content() {
|
|
15557
|
-
_class_call_check$
|
|
15557
|
+
_class_call_check$1m(this, Content);
|
|
15558
15558
|
return _super.apply(this, arguments);
|
|
15559
15559
|
}
|
|
15560
|
-
_create_class$
|
|
15560
|
+
_create_class$19(Content, [
|
|
15561
15561
|
{
|
|
15562
15562
|
/**
|
|
15563
15563
|
* Retrieve Container File Content
|
|
@@ -15583,12 +15583,12 @@ function _assert_this_initialized$15(self) {
|
|
|
15583
15583
|
}
|
|
15584
15584
|
return self;
|
|
15585
15585
|
}
|
|
15586
|
-
function _class_call_check$
|
|
15586
|
+
function _class_call_check$1l(instance, Constructor) {
|
|
15587
15587
|
if (!(instance instanceof Constructor)) {
|
|
15588
15588
|
throw new TypeError("Cannot call a class as a function");
|
|
15589
15589
|
}
|
|
15590
15590
|
}
|
|
15591
|
-
function _defineProperties$
|
|
15591
|
+
function _defineProperties$18(target, props) {
|
|
15592
15592
|
for(var i = 0; i < props.length; i++){
|
|
15593
15593
|
var descriptor = props[i];
|
|
15594
15594
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15597,8 +15597,8 @@ function _defineProperties$19(target, props) {
|
|
|
15597
15597
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15598
15598
|
}
|
|
15599
15599
|
}
|
|
15600
|
-
function _create_class$
|
|
15601
|
-
if (protoProps) _defineProperties$
|
|
15600
|
+
function _create_class$18(Constructor, protoProps, staticProps) {
|
|
15601
|
+
if (protoProps) _defineProperties$18(Constructor.prototype, protoProps);
|
|
15602
15602
|
return Constructor;
|
|
15603
15603
|
}
|
|
15604
15604
|
function _define_property$1E(obj, key, value) {
|
|
@@ -15712,7 +15712,7 @@ var Files$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
15712
15712
|
_inherits$15(Files, APIResource);
|
|
15713
15713
|
var _super = _create_super$15(Files);
|
|
15714
15714
|
function Files() {
|
|
15715
|
-
_class_call_check$
|
|
15715
|
+
_class_call_check$1l(this, Files);
|
|
15716
15716
|
var _this;
|
|
15717
15717
|
_this = _super.call.apply(_super, [
|
|
15718
15718
|
this
|
|
@@ -15720,7 +15720,7 @@ var Files$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
15720
15720
|
_this.content = new Content(_this._client);
|
|
15721
15721
|
return _this;
|
|
15722
15722
|
}
|
|
15723
|
-
_create_class$
|
|
15723
|
+
_create_class$18(Files, [
|
|
15724
15724
|
{
|
|
15725
15725
|
/**
|
|
15726
15726
|
* Create a Container File
|
|
@@ -15773,7 +15773,7 @@ var FileListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
15773
15773
|
_inherits$15(FileListResponsesPage, CursorPage);
|
|
15774
15774
|
var _super = _create_super$15(FileListResponsesPage);
|
|
15775
15775
|
function FileListResponsesPage() {
|
|
15776
|
-
_class_call_check$
|
|
15776
|
+
_class_call_check$1l(this, FileListResponsesPage);
|
|
15777
15777
|
return _super.apply(this, arguments);
|
|
15778
15778
|
}
|
|
15779
15779
|
return FileListResponsesPage;
|
|
@@ -15788,12 +15788,12 @@ function _assert_this_initialized$14(self) {
|
|
|
15788
15788
|
}
|
|
15789
15789
|
return self;
|
|
15790
15790
|
}
|
|
15791
|
-
function _class_call_check$
|
|
15791
|
+
function _class_call_check$1k(instance, Constructor) {
|
|
15792
15792
|
if (!(instance instanceof Constructor)) {
|
|
15793
15793
|
throw new TypeError("Cannot call a class as a function");
|
|
15794
15794
|
}
|
|
15795
15795
|
}
|
|
15796
|
-
function _defineProperties$
|
|
15796
|
+
function _defineProperties$17(target, props) {
|
|
15797
15797
|
for(var i = 0; i < props.length; i++){
|
|
15798
15798
|
var descriptor = props[i];
|
|
15799
15799
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15802,8 +15802,8 @@ function _defineProperties$18(target, props) {
|
|
|
15802
15802
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15803
15803
|
}
|
|
15804
15804
|
}
|
|
15805
|
-
function _create_class$
|
|
15806
|
-
if (protoProps) _defineProperties$
|
|
15805
|
+
function _create_class$17(Constructor, protoProps, staticProps) {
|
|
15806
|
+
if (protoProps) _defineProperties$17(Constructor.prototype, protoProps);
|
|
15807
15807
|
return Constructor;
|
|
15808
15808
|
}
|
|
15809
15809
|
function _define_property$1D(obj, key, value) {
|
|
@@ -15917,7 +15917,7 @@ var Containers = /*#__PURE__*/ function(APIResource) {
|
|
|
15917
15917
|
_inherits$14(Containers, APIResource);
|
|
15918
15918
|
var _super = _create_super$14(Containers);
|
|
15919
15919
|
function Containers() {
|
|
15920
|
-
_class_call_check$
|
|
15920
|
+
_class_call_check$1k(this, Containers);
|
|
15921
15921
|
var _this;
|
|
15922
15922
|
_this = _super.call.apply(_super, [
|
|
15923
15923
|
this
|
|
@@ -15925,7 +15925,7 @@ var Containers = /*#__PURE__*/ function(APIResource) {
|
|
|
15925
15925
|
_this.files = new Files$2(_this._client);
|
|
15926
15926
|
return _this;
|
|
15927
15927
|
}
|
|
15928
|
-
_create_class$
|
|
15928
|
+
_create_class$17(Containers, [
|
|
15929
15929
|
{
|
|
15930
15930
|
/**
|
|
15931
15931
|
* Create Container
|
|
@@ -15975,7 +15975,7 @@ var ContainerListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
15975
15975
|
_inherits$14(ContainerListResponsesPage, CursorPage);
|
|
15976
15976
|
var _super = _create_super$14(ContainerListResponsesPage);
|
|
15977
15977
|
function ContainerListResponsesPage() {
|
|
15978
|
-
_class_call_check$
|
|
15978
|
+
_class_call_check$1k(this, ContainerListResponsesPage);
|
|
15979
15979
|
return _super.apply(this, arguments);
|
|
15980
15980
|
}
|
|
15981
15981
|
return ContainerListResponsesPage;
|
|
@@ -15991,12 +15991,12 @@ function _assert_this_initialized$13(self) {
|
|
|
15991
15991
|
}
|
|
15992
15992
|
return self;
|
|
15993
15993
|
}
|
|
15994
|
-
function _class_call_check$
|
|
15994
|
+
function _class_call_check$1j(instance, Constructor) {
|
|
15995
15995
|
if (!(instance instanceof Constructor)) {
|
|
15996
15996
|
throw new TypeError("Cannot call a class as a function");
|
|
15997
15997
|
}
|
|
15998
15998
|
}
|
|
15999
|
-
function _defineProperties$
|
|
15999
|
+
function _defineProperties$16(target, props) {
|
|
16000
16000
|
for(var i = 0; i < props.length; i++){
|
|
16001
16001
|
var descriptor = props[i];
|
|
16002
16002
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16005,8 +16005,8 @@ function _defineProperties$17(target, props) {
|
|
|
16005
16005
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16006
16006
|
}
|
|
16007
16007
|
}
|
|
16008
|
-
function _create_class$
|
|
16009
|
-
if (protoProps) _defineProperties$
|
|
16008
|
+
function _create_class$16(Constructor, protoProps, staticProps) {
|
|
16009
|
+
if (protoProps) _defineProperties$16(Constructor.prototype, protoProps);
|
|
16010
16010
|
return Constructor;
|
|
16011
16011
|
}
|
|
16012
16012
|
function _define_property$1C(obj, key, value) {
|
|
@@ -16120,10 +16120,10 @@ var Embeddings$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
16120
16120
|
_inherits$13(Embeddings, APIResource);
|
|
16121
16121
|
var _super = _create_super$13(Embeddings);
|
|
16122
16122
|
function Embeddings() {
|
|
16123
|
-
_class_call_check$
|
|
16123
|
+
_class_call_check$1j(this, Embeddings);
|
|
16124
16124
|
return _super.apply(this, arguments);
|
|
16125
16125
|
}
|
|
16126
|
-
_create_class$
|
|
16126
|
+
_create_class$16(Embeddings, [
|
|
16127
16127
|
{
|
|
16128
16128
|
/**
|
|
16129
16129
|
* Creates an embedding vector representing the input text.
|
|
@@ -16182,12 +16182,12 @@ function _assert_this_initialized$12(self) {
|
|
|
16182
16182
|
}
|
|
16183
16183
|
return self;
|
|
16184
16184
|
}
|
|
16185
|
-
function _class_call_check$
|
|
16185
|
+
function _class_call_check$1i(instance, Constructor) {
|
|
16186
16186
|
if (!(instance instanceof Constructor)) {
|
|
16187
16187
|
throw new TypeError("Cannot call a class as a function");
|
|
16188
16188
|
}
|
|
16189
16189
|
}
|
|
16190
|
-
function _defineProperties$
|
|
16190
|
+
function _defineProperties$15(target, props) {
|
|
16191
16191
|
for(var i = 0; i < props.length; i++){
|
|
16192
16192
|
var descriptor = props[i];
|
|
16193
16193
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16196,8 +16196,8 @@ function _defineProperties$16(target, props) {
|
|
|
16196
16196
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16197
16197
|
}
|
|
16198
16198
|
}
|
|
16199
|
-
function _create_class$
|
|
16200
|
-
if (protoProps) _defineProperties$
|
|
16199
|
+
function _create_class$15(Constructor, protoProps, staticProps) {
|
|
16200
|
+
if (protoProps) _defineProperties$15(Constructor.prototype, protoProps);
|
|
16201
16201
|
return Constructor;
|
|
16202
16202
|
}
|
|
16203
16203
|
function _define_property$1B(obj, key, value) {
|
|
@@ -16292,10 +16292,10 @@ var OutputItems = /*#__PURE__*/ function(APIResource) {
|
|
|
16292
16292
|
_inherits$12(OutputItems, APIResource);
|
|
16293
16293
|
var _super = _create_super$12(OutputItems);
|
|
16294
16294
|
function OutputItems() {
|
|
16295
|
-
_class_call_check$
|
|
16295
|
+
_class_call_check$1i(this, OutputItems);
|
|
16296
16296
|
return _super.apply(this, arguments);
|
|
16297
16297
|
}
|
|
16298
|
-
_create_class$
|
|
16298
|
+
_create_class$15(OutputItems, [
|
|
16299
16299
|
{
|
|
16300
16300
|
/**
|
|
16301
16301
|
* Get an evaluation run output item by ID.
|
|
@@ -16323,7 +16323,7 @@ var OutputItemListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
16323
16323
|
_inherits$12(OutputItemListResponsesPage, CursorPage);
|
|
16324
16324
|
var _super = _create_super$12(OutputItemListResponsesPage);
|
|
16325
16325
|
function OutputItemListResponsesPage() {
|
|
16326
|
-
_class_call_check$
|
|
16326
|
+
_class_call_check$1i(this, OutputItemListResponsesPage);
|
|
16327
16327
|
return _super.apply(this, arguments);
|
|
16328
16328
|
}
|
|
16329
16329
|
return OutputItemListResponsesPage;
|
|
@@ -16337,12 +16337,12 @@ function _assert_this_initialized$11(self) {
|
|
|
16337
16337
|
}
|
|
16338
16338
|
return self;
|
|
16339
16339
|
}
|
|
16340
|
-
function _class_call_check$
|
|
16340
|
+
function _class_call_check$1h(instance, Constructor) {
|
|
16341
16341
|
if (!(instance instanceof Constructor)) {
|
|
16342
16342
|
throw new TypeError("Cannot call a class as a function");
|
|
16343
16343
|
}
|
|
16344
16344
|
}
|
|
16345
|
-
function _defineProperties$
|
|
16345
|
+
function _defineProperties$14(target, props) {
|
|
16346
16346
|
for(var i = 0; i < props.length; i++){
|
|
16347
16347
|
var descriptor = props[i];
|
|
16348
16348
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16351,8 +16351,8 @@ function _defineProperties$15(target, props) {
|
|
|
16351
16351
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16352
16352
|
}
|
|
16353
16353
|
}
|
|
16354
|
-
function _create_class$
|
|
16355
|
-
if (protoProps) _defineProperties$
|
|
16354
|
+
function _create_class$14(Constructor, protoProps, staticProps) {
|
|
16355
|
+
if (protoProps) _defineProperties$14(Constructor.prototype, protoProps);
|
|
16356
16356
|
return Constructor;
|
|
16357
16357
|
}
|
|
16358
16358
|
function _define_property$1A(obj, key, value) {
|
|
@@ -16447,7 +16447,7 @@ var Runs = /*#__PURE__*/ function(APIResource) {
|
|
|
16447
16447
|
_inherits$11(Runs, APIResource);
|
|
16448
16448
|
var _super = _create_super$11(Runs);
|
|
16449
16449
|
function Runs() {
|
|
16450
|
-
_class_call_check$
|
|
16450
|
+
_class_call_check$1h(this, Runs);
|
|
16451
16451
|
var _this;
|
|
16452
16452
|
_this = _super.call.apply(_super, [
|
|
16453
16453
|
this
|
|
@@ -16455,7 +16455,7 @@ var Runs = /*#__PURE__*/ function(APIResource) {
|
|
|
16455
16455
|
_this.outputItems = new OutputItems(_this._client);
|
|
16456
16456
|
return _this;
|
|
16457
16457
|
}
|
|
16458
|
-
_create_class$
|
|
16458
|
+
_create_class$14(Runs, [
|
|
16459
16459
|
{
|
|
16460
16460
|
/**
|
|
16461
16461
|
* Kicks off a new run for a given evaluation, specifying the data source, and what
|
|
@@ -16511,7 +16511,7 @@ var RunListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
16511
16511
|
_inherits$11(RunListResponsesPage, CursorPage);
|
|
16512
16512
|
var _super = _create_super$11(RunListResponsesPage);
|
|
16513
16513
|
function RunListResponsesPage() {
|
|
16514
|
-
_class_call_check$
|
|
16514
|
+
_class_call_check$1h(this, RunListResponsesPage);
|
|
16515
16515
|
return _super.apply(this, arguments);
|
|
16516
16516
|
}
|
|
16517
16517
|
return RunListResponsesPage;
|
|
@@ -16527,12 +16527,12 @@ function _assert_this_initialized$10(self) {
|
|
|
16527
16527
|
}
|
|
16528
16528
|
return self;
|
|
16529
16529
|
}
|
|
16530
|
-
function _class_call_check$
|
|
16530
|
+
function _class_call_check$1g(instance, Constructor) {
|
|
16531
16531
|
if (!(instance instanceof Constructor)) {
|
|
16532
16532
|
throw new TypeError("Cannot call a class as a function");
|
|
16533
16533
|
}
|
|
16534
16534
|
}
|
|
16535
|
-
function _defineProperties$
|
|
16535
|
+
function _defineProperties$13(target, props) {
|
|
16536
16536
|
for(var i = 0; i < props.length; i++){
|
|
16537
16537
|
var descriptor = props[i];
|
|
16538
16538
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16541,8 +16541,8 @@ function _defineProperties$14(target, props) {
|
|
|
16541
16541
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16542
16542
|
}
|
|
16543
16543
|
}
|
|
16544
|
-
function _create_class$
|
|
16545
|
-
if (protoProps) _defineProperties$
|
|
16544
|
+
function _create_class$13(Constructor, protoProps, staticProps) {
|
|
16545
|
+
if (protoProps) _defineProperties$13(Constructor.prototype, protoProps);
|
|
16546
16546
|
return Constructor;
|
|
16547
16547
|
}
|
|
16548
16548
|
function _define_property$1z(obj, key, value) {
|
|
@@ -16637,7 +16637,7 @@ var Evals = /*#__PURE__*/ function(APIResource) {
|
|
|
16637
16637
|
_inherits$10(Evals, APIResource);
|
|
16638
16638
|
var _super = _create_super$10(Evals);
|
|
16639
16639
|
function Evals() {
|
|
16640
|
-
_class_call_check$
|
|
16640
|
+
_class_call_check$1g(this, Evals);
|
|
16641
16641
|
var _this;
|
|
16642
16642
|
_this = _super.call.apply(_super, [
|
|
16643
16643
|
this
|
|
@@ -16645,7 +16645,7 @@ var Evals = /*#__PURE__*/ function(APIResource) {
|
|
|
16645
16645
|
_this.runs = new Runs(_this._client);
|
|
16646
16646
|
return _this;
|
|
16647
16647
|
}
|
|
16648
|
-
_create_class$
|
|
16648
|
+
_create_class$13(Evals, [
|
|
16649
16649
|
{
|
|
16650
16650
|
/**
|
|
16651
16651
|
* Create the structure of an evaluation that can be used to test a model's
|
|
@@ -16706,7 +16706,7 @@ var EvalListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
16706
16706
|
_inherits$10(EvalListResponsesPage, CursorPage);
|
|
16707
16707
|
var _super = _create_super$10(EvalListResponsesPage);
|
|
16708
16708
|
function EvalListResponsesPage() {
|
|
16709
|
-
_class_call_check$
|
|
16709
|
+
_class_call_check$1g(this, EvalListResponsesPage);
|
|
16710
16710
|
return _super.apply(this, arguments);
|
|
16711
16711
|
}
|
|
16712
16712
|
return EvalListResponsesPage;
|
|
@@ -16751,12 +16751,12 @@ function _async_to_generator$H(fn) {
|
|
|
16751
16751
|
});
|
|
16752
16752
|
};
|
|
16753
16753
|
}
|
|
16754
|
-
function _class_call_check$
|
|
16754
|
+
function _class_call_check$1f(instance, Constructor) {
|
|
16755
16755
|
if (!(instance instanceof Constructor)) {
|
|
16756
16756
|
throw new TypeError("Cannot call a class as a function");
|
|
16757
16757
|
}
|
|
16758
16758
|
}
|
|
16759
|
-
function _defineProperties$
|
|
16759
|
+
function _defineProperties$12(target, props) {
|
|
16760
16760
|
for(var i = 0; i < props.length; i++){
|
|
16761
16761
|
var descriptor = props[i];
|
|
16762
16762
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16765,8 +16765,8 @@ function _defineProperties$13(target, props) {
|
|
|
16765
16765
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16766
16766
|
}
|
|
16767
16767
|
}
|
|
16768
|
-
function _create_class$
|
|
16769
|
-
if (protoProps) _defineProperties$
|
|
16768
|
+
function _create_class$12(Constructor, protoProps, staticProps) {
|
|
16769
|
+
if (protoProps) _defineProperties$12(Constructor.prototype, protoProps);
|
|
16770
16770
|
return Constructor;
|
|
16771
16771
|
}
|
|
16772
16772
|
function _define_property$1y(obj, key, value) {
|
|
@@ -16975,10 +16975,10 @@ var Files$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
16975
16975
|
_inherits$$(Files, APIResource);
|
|
16976
16976
|
var _super = _create_super$$(Files);
|
|
16977
16977
|
function Files() {
|
|
16978
|
-
_class_call_check$
|
|
16978
|
+
_class_call_check$1f(this, Files);
|
|
16979
16979
|
return _super.apply(this, arguments);
|
|
16980
16980
|
}
|
|
16981
|
-
_create_class$
|
|
16981
|
+
_create_class$12(Files, [
|
|
16982
16982
|
{
|
|
16983
16983
|
/**
|
|
16984
16984
|
* Upload a file that can be used across various endpoints. Individual files can be
|
|
@@ -17128,7 +17128,7 @@ var FileObjectsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
17128
17128
|
_inherits$$(FileObjectsPage, CursorPage);
|
|
17129
17129
|
var _super = _create_super$$(FileObjectsPage);
|
|
17130
17130
|
function FileObjectsPage() {
|
|
17131
|
-
_class_call_check$
|
|
17131
|
+
_class_call_check$1f(this, FileObjectsPage);
|
|
17132
17132
|
return _super.apply(this, arguments);
|
|
17133
17133
|
}
|
|
17134
17134
|
return FileObjectsPage;
|
|
@@ -17142,7 +17142,7 @@ function _assert_this_initialized$_(self) {
|
|
|
17142
17142
|
}
|
|
17143
17143
|
return self;
|
|
17144
17144
|
}
|
|
17145
|
-
function _class_call_check$
|
|
17145
|
+
function _class_call_check$1e(instance, Constructor) {
|
|
17146
17146
|
if (!(instance instanceof Constructor)) {
|
|
17147
17147
|
throw new TypeError("Cannot call a class as a function");
|
|
17148
17148
|
}
|
|
@@ -17211,7 +17211,7 @@ var Methods = /*#__PURE__*/ function(APIResource) {
|
|
|
17211
17211
|
_inherits$_(Methods, APIResource);
|
|
17212
17212
|
var _super = _create_super$_(Methods);
|
|
17213
17213
|
function Methods() {
|
|
17214
|
-
_class_call_check$
|
|
17214
|
+
_class_call_check$1e(this, Methods);
|
|
17215
17215
|
return _super.apply(this, arguments);
|
|
17216
17216
|
}
|
|
17217
17217
|
return Methods;
|
|
@@ -17225,12 +17225,12 @@ function _assert_this_initialized$Z(self) {
|
|
|
17225
17225
|
}
|
|
17226
17226
|
return self;
|
|
17227
17227
|
}
|
|
17228
|
-
function _class_call_check$
|
|
17228
|
+
function _class_call_check$1d(instance, Constructor) {
|
|
17229
17229
|
if (!(instance instanceof Constructor)) {
|
|
17230
17230
|
throw new TypeError("Cannot call a class as a function");
|
|
17231
17231
|
}
|
|
17232
17232
|
}
|
|
17233
|
-
function _defineProperties$
|
|
17233
|
+
function _defineProperties$11(target, props) {
|
|
17234
17234
|
for(var i = 0; i < props.length; i++){
|
|
17235
17235
|
var descriptor = props[i];
|
|
17236
17236
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17239,8 +17239,8 @@ function _defineProperties$12(target, props) {
|
|
|
17239
17239
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17240
17240
|
}
|
|
17241
17241
|
}
|
|
17242
|
-
function _create_class$
|
|
17243
|
-
if (protoProps) _defineProperties$
|
|
17242
|
+
function _create_class$11(Constructor, protoProps, staticProps) {
|
|
17243
|
+
if (protoProps) _defineProperties$11(Constructor.prototype, protoProps);
|
|
17244
17244
|
return Constructor;
|
|
17245
17245
|
}
|
|
17246
17246
|
function _define_property$1x(obj, key, value) {
|
|
@@ -17335,10 +17335,10 @@ var Graders$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
17335
17335
|
_inherits$Z(Graders, APIResource);
|
|
17336
17336
|
var _super = _create_super$Z(Graders);
|
|
17337
17337
|
function Graders() {
|
|
17338
|
-
_class_call_check$
|
|
17338
|
+
_class_call_check$1d(this, Graders);
|
|
17339
17339
|
return _super.apply(this, arguments);
|
|
17340
17340
|
}
|
|
17341
|
-
_create_class$
|
|
17341
|
+
_create_class$11(Graders, [
|
|
17342
17342
|
{
|
|
17343
17343
|
/**
|
|
17344
17344
|
* Run a grader.
|
|
@@ -17400,7 +17400,7 @@ function _assert_this_initialized$Y(self) {
|
|
|
17400
17400
|
}
|
|
17401
17401
|
return self;
|
|
17402
17402
|
}
|
|
17403
|
-
function _class_call_check$
|
|
17403
|
+
function _class_call_check$1c(instance, Constructor) {
|
|
17404
17404
|
if (!(instance instanceof Constructor)) {
|
|
17405
17405
|
throw new TypeError("Cannot call a class as a function");
|
|
17406
17406
|
}
|
|
@@ -17469,7 +17469,7 @@ var Alpha = /*#__PURE__*/ function(APIResource) {
|
|
|
17469
17469
|
_inherits$Y(Alpha, APIResource);
|
|
17470
17470
|
var _super = _create_super$Y(Alpha);
|
|
17471
17471
|
function Alpha() {
|
|
17472
|
-
_class_call_check$
|
|
17472
|
+
_class_call_check$1c(this, Alpha);
|
|
17473
17473
|
var _this;
|
|
17474
17474
|
_this = _super.call.apply(_super, [
|
|
17475
17475
|
this
|
|
@@ -17488,12 +17488,12 @@ function _assert_this_initialized$X(self) {
|
|
|
17488
17488
|
}
|
|
17489
17489
|
return self;
|
|
17490
17490
|
}
|
|
17491
|
-
function _class_call_check$
|
|
17491
|
+
function _class_call_check$1b(instance, Constructor) {
|
|
17492
17492
|
if (!(instance instanceof Constructor)) {
|
|
17493
17493
|
throw new TypeError("Cannot call a class as a function");
|
|
17494
17494
|
}
|
|
17495
17495
|
}
|
|
17496
|
-
function _defineProperties$
|
|
17496
|
+
function _defineProperties$10(target, props) {
|
|
17497
17497
|
for(var i = 0; i < props.length; i++){
|
|
17498
17498
|
var descriptor = props[i];
|
|
17499
17499
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17502,8 +17502,8 @@ function _defineProperties$11(target, props) {
|
|
|
17502
17502
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17503
17503
|
}
|
|
17504
17504
|
}
|
|
17505
|
-
function _create_class$
|
|
17506
|
-
if (protoProps) _defineProperties$
|
|
17505
|
+
function _create_class$10(Constructor, protoProps, staticProps) {
|
|
17506
|
+
if (protoProps) _defineProperties$10(Constructor.prototype, protoProps);
|
|
17507
17507
|
return Constructor;
|
|
17508
17508
|
}
|
|
17509
17509
|
function _define_property$1w(obj, key, value) {
|
|
@@ -17598,10 +17598,10 @@ var Permissions = /*#__PURE__*/ function(APIResource) {
|
|
|
17598
17598
|
_inherits$X(Permissions, APIResource);
|
|
17599
17599
|
var _super = _create_super$X(Permissions);
|
|
17600
17600
|
function Permissions() {
|
|
17601
|
-
_class_call_check$
|
|
17601
|
+
_class_call_check$1b(this, Permissions);
|
|
17602
17602
|
return _super.apply(this, arguments);
|
|
17603
17603
|
}
|
|
17604
|
-
_create_class$
|
|
17604
|
+
_create_class$10(Permissions, [
|
|
17605
17605
|
{
|
|
17606
17606
|
/**
|
|
17607
17607
|
* **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).
|
|
@@ -17668,7 +17668,7 @@ var Permissions = /*#__PURE__*/ function(APIResource) {
|
|
|
17668
17668
|
_inherits$X(PermissionCreateResponsesPage, Page);
|
|
17669
17669
|
var _super = _create_super$X(PermissionCreateResponsesPage);
|
|
17670
17670
|
function PermissionCreateResponsesPage() {
|
|
17671
|
-
_class_call_check$
|
|
17671
|
+
_class_call_check$1b(this, PermissionCreateResponsesPage);
|
|
17672
17672
|
return _super.apply(this, arguments);
|
|
17673
17673
|
}
|
|
17674
17674
|
return PermissionCreateResponsesPage;
|
|
@@ -17682,7 +17682,7 @@ function _assert_this_initialized$W(self) {
|
|
|
17682
17682
|
}
|
|
17683
17683
|
return self;
|
|
17684
17684
|
}
|
|
17685
|
-
function _class_call_check$
|
|
17685
|
+
function _class_call_check$1a(instance, Constructor) {
|
|
17686
17686
|
if (!(instance instanceof Constructor)) {
|
|
17687
17687
|
throw new TypeError("Cannot call a class as a function");
|
|
17688
17688
|
}
|
|
@@ -17751,7 +17751,7 @@ var Checkpoints$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
17751
17751
|
_inherits$W(Checkpoints, APIResource);
|
|
17752
17752
|
var _super = _create_super$W(Checkpoints);
|
|
17753
17753
|
function Checkpoints() {
|
|
17754
|
-
_class_call_check$
|
|
17754
|
+
_class_call_check$1a(this, Checkpoints);
|
|
17755
17755
|
var _this;
|
|
17756
17756
|
_this = _super.call.apply(_super, [
|
|
17757
17757
|
this
|
|
@@ -17771,12 +17771,12 @@ function _assert_this_initialized$V(self) {
|
|
|
17771
17771
|
}
|
|
17772
17772
|
return self;
|
|
17773
17773
|
}
|
|
17774
|
-
function _class_call_check$
|
|
17774
|
+
function _class_call_check$19(instance, Constructor) {
|
|
17775
17775
|
if (!(instance instanceof Constructor)) {
|
|
17776
17776
|
throw new TypeError("Cannot call a class as a function");
|
|
17777
17777
|
}
|
|
17778
17778
|
}
|
|
17779
|
-
function _defineProperties
|
|
17779
|
+
function _defineProperties$$(target, props) {
|
|
17780
17780
|
for(var i = 0; i < props.length; i++){
|
|
17781
17781
|
var descriptor = props[i];
|
|
17782
17782
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17785,8 +17785,8 @@ function _defineProperties$10(target, props) {
|
|
|
17785
17785
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17786
17786
|
}
|
|
17787
17787
|
}
|
|
17788
|
-
function _create_class
|
|
17789
|
-
if (protoProps) _defineProperties
|
|
17788
|
+
function _create_class$$(Constructor, protoProps, staticProps) {
|
|
17789
|
+
if (protoProps) _defineProperties$$(Constructor.prototype, protoProps);
|
|
17790
17790
|
return Constructor;
|
|
17791
17791
|
}
|
|
17792
17792
|
function _define_property$1v(obj, key, value) {
|
|
@@ -17881,10 +17881,10 @@ var Checkpoints = /*#__PURE__*/ function(APIResource) {
|
|
|
17881
17881
|
_inherits$V(Checkpoints, APIResource);
|
|
17882
17882
|
var _super = _create_super$V(Checkpoints);
|
|
17883
17883
|
function Checkpoints() {
|
|
17884
|
-
_class_call_check$
|
|
17884
|
+
_class_call_check$19(this, Checkpoints);
|
|
17885
17885
|
return _super.apply(this, arguments);
|
|
17886
17886
|
}
|
|
17887
|
-
_create_class
|
|
17887
|
+
_create_class$$(Checkpoints, [
|
|
17888
17888
|
{
|
|
17889
17889
|
key: "list",
|
|
17890
17890
|
value: function list(fineTuningJobId) {
|
|
@@ -17904,7 +17904,7 @@ var FineTuningJobCheckpointsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
17904
17904
|
_inherits$V(FineTuningJobCheckpointsPage, CursorPage);
|
|
17905
17905
|
var _super = _create_super$V(FineTuningJobCheckpointsPage);
|
|
17906
17906
|
function FineTuningJobCheckpointsPage() {
|
|
17907
|
-
_class_call_check$
|
|
17907
|
+
_class_call_check$19(this, FineTuningJobCheckpointsPage);
|
|
17908
17908
|
return _super.apply(this, arguments);
|
|
17909
17909
|
}
|
|
17910
17910
|
return FineTuningJobCheckpointsPage;
|
|
@@ -17918,12 +17918,12 @@ function _assert_this_initialized$U(self) {
|
|
|
17918
17918
|
}
|
|
17919
17919
|
return self;
|
|
17920
17920
|
}
|
|
17921
|
-
function _class_call_check$
|
|
17921
|
+
function _class_call_check$18(instance, Constructor) {
|
|
17922
17922
|
if (!(instance instanceof Constructor)) {
|
|
17923
17923
|
throw new TypeError("Cannot call a class as a function");
|
|
17924
17924
|
}
|
|
17925
17925
|
}
|
|
17926
|
-
function _defineProperties
|
|
17926
|
+
function _defineProperties$_(target, props) {
|
|
17927
17927
|
for(var i = 0; i < props.length; i++){
|
|
17928
17928
|
var descriptor = props[i];
|
|
17929
17929
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17932,8 +17932,8 @@ function _defineProperties$$(target, props) {
|
|
|
17932
17932
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17933
17933
|
}
|
|
17934
17934
|
}
|
|
17935
|
-
function _create_class
|
|
17936
|
-
if (protoProps) _defineProperties
|
|
17935
|
+
function _create_class$_(Constructor, protoProps, staticProps) {
|
|
17936
|
+
if (protoProps) _defineProperties$_(Constructor.prototype, protoProps);
|
|
17937
17937
|
return Constructor;
|
|
17938
17938
|
}
|
|
17939
17939
|
function _define_property$1u(obj, key, value) {
|
|
@@ -18028,7 +18028,7 @@ var Jobs = /*#__PURE__*/ function(APIResource) {
|
|
|
18028
18028
|
_inherits$U(Jobs, APIResource);
|
|
18029
18029
|
var _super = _create_super$U(Jobs);
|
|
18030
18030
|
function Jobs() {
|
|
18031
|
-
_class_call_check$
|
|
18031
|
+
_class_call_check$18(this, Jobs);
|
|
18032
18032
|
var _this;
|
|
18033
18033
|
_this = _super.call.apply(_super, [
|
|
18034
18034
|
this
|
|
@@ -18036,7 +18036,7 @@ var Jobs = /*#__PURE__*/ function(APIResource) {
|
|
|
18036
18036
|
_this.checkpoints = new Checkpoints(_this._client);
|
|
18037
18037
|
return _this;
|
|
18038
18038
|
}
|
|
18039
|
-
_create_class
|
|
18039
|
+
_create_class$_(Jobs, [
|
|
18040
18040
|
{
|
|
18041
18041
|
/**
|
|
18042
18042
|
* Creates a fine-tuning job which begins the process of creating a new model from
|
|
@@ -18154,7 +18154,7 @@ var FineTuningJobsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
18154
18154
|
_inherits$U(FineTuningJobsPage, CursorPage);
|
|
18155
18155
|
var _super = _create_super$U(FineTuningJobsPage);
|
|
18156
18156
|
function FineTuningJobsPage() {
|
|
18157
|
-
_class_call_check$
|
|
18157
|
+
_class_call_check$18(this, FineTuningJobsPage);
|
|
18158
18158
|
return _super.apply(this, arguments);
|
|
18159
18159
|
}
|
|
18160
18160
|
return FineTuningJobsPage;
|
|
@@ -18163,7 +18163,7 @@ var FineTuningJobEventsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
18163
18163
|
_inherits$U(FineTuningJobEventsPage, CursorPage);
|
|
18164
18164
|
var _super = _create_super$U(FineTuningJobEventsPage);
|
|
18165
18165
|
function FineTuningJobEventsPage() {
|
|
18166
|
-
_class_call_check$
|
|
18166
|
+
_class_call_check$18(this, FineTuningJobEventsPage);
|
|
18167
18167
|
return _super.apply(this, arguments);
|
|
18168
18168
|
}
|
|
18169
18169
|
return FineTuningJobEventsPage;
|
|
@@ -18180,7 +18180,7 @@ function _assert_this_initialized$T(self) {
|
|
|
18180
18180
|
}
|
|
18181
18181
|
return self;
|
|
18182
18182
|
}
|
|
18183
|
-
function _class_call_check$
|
|
18183
|
+
function _class_call_check$17(instance, Constructor) {
|
|
18184
18184
|
if (!(instance instanceof Constructor)) {
|
|
18185
18185
|
throw new TypeError("Cannot call a class as a function");
|
|
18186
18186
|
}
|
|
@@ -18249,7 +18249,7 @@ var FineTuning = /*#__PURE__*/ function(APIResource) {
|
|
|
18249
18249
|
_inherits$T(FineTuning, APIResource);
|
|
18250
18250
|
var _super = _create_super$T(FineTuning);
|
|
18251
18251
|
function FineTuning() {
|
|
18252
|
-
_class_call_check$
|
|
18252
|
+
_class_call_check$17(this, FineTuning);
|
|
18253
18253
|
var _this;
|
|
18254
18254
|
_this = _super.call.apply(_super, [
|
|
18255
18255
|
this
|
|
@@ -18276,7 +18276,7 @@ function _assert_this_initialized$S(self) {
|
|
|
18276
18276
|
}
|
|
18277
18277
|
return self;
|
|
18278
18278
|
}
|
|
18279
|
-
function _class_call_check$
|
|
18279
|
+
function _class_call_check$16(instance, Constructor) {
|
|
18280
18280
|
if (!(instance instanceof Constructor)) {
|
|
18281
18281
|
throw new TypeError("Cannot call a class as a function");
|
|
18282
18282
|
}
|
|
@@ -18345,7 +18345,7 @@ var GraderModels = /*#__PURE__*/ function(APIResource) {
|
|
|
18345
18345
|
_inherits$S(GraderModels, APIResource);
|
|
18346
18346
|
var _super = _create_super$S(GraderModels);
|
|
18347
18347
|
function GraderModels() {
|
|
18348
|
-
_class_call_check$
|
|
18348
|
+
_class_call_check$16(this, GraderModels);
|
|
18349
18349
|
return _super.apply(this, arguments);
|
|
18350
18350
|
}
|
|
18351
18351
|
return GraderModels;
|
|
@@ -18359,7 +18359,7 @@ function _assert_this_initialized$R(self) {
|
|
|
18359
18359
|
}
|
|
18360
18360
|
return self;
|
|
18361
18361
|
}
|
|
18362
|
-
function _class_call_check$
|
|
18362
|
+
function _class_call_check$15(instance, Constructor) {
|
|
18363
18363
|
if (!(instance instanceof Constructor)) {
|
|
18364
18364
|
throw new TypeError("Cannot call a class as a function");
|
|
18365
18365
|
}
|
|
@@ -18428,7 +18428,7 @@ var Graders = /*#__PURE__*/ function(APIResource) {
|
|
|
18428
18428
|
_inherits$R(Graders, APIResource);
|
|
18429
18429
|
var _super = _create_super$R(Graders);
|
|
18430
18430
|
function Graders() {
|
|
18431
|
-
_class_call_check$
|
|
18431
|
+
_class_call_check$15(this, Graders);
|
|
18432
18432
|
var _this;
|
|
18433
18433
|
_this = _super.call.apply(_super, [
|
|
18434
18434
|
this
|
|
@@ -18447,12 +18447,12 @@ function _assert_this_initialized$Q(self) {
|
|
|
18447
18447
|
}
|
|
18448
18448
|
return self;
|
|
18449
18449
|
}
|
|
18450
|
-
function _class_call_check$
|
|
18450
|
+
function _class_call_check$14(instance, Constructor) {
|
|
18451
18451
|
if (!(instance instanceof Constructor)) {
|
|
18452
18452
|
throw new TypeError("Cannot call a class as a function");
|
|
18453
18453
|
}
|
|
18454
18454
|
}
|
|
18455
|
-
function _defineProperties$
|
|
18455
|
+
function _defineProperties$Z(target, props) {
|
|
18456
18456
|
for(var i = 0; i < props.length; i++){
|
|
18457
18457
|
var descriptor = props[i];
|
|
18458
18458
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -18461,8 +18461,8 @@ function _defineProperties$_(target, props) {
|
|
|
18461
18461
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
18462
18462
|
}
|
|
18463
18463
|
}
|
|
18464
|
-
function _create_class$
|
|
18465
|
-
if (protoProps) _defineProperties$
|
|
18464
|
+
function _create_class$Z(Constructor, protoProps, staticProps) {
|
|
18465
|
+
if (protoProps) _defineProperties$Z(Constructor.prototype, protoProps);
|
|
18466
18466
|
return Constructor;
|
|
18467
18467
|
}
|
|
18468
18468
|
function _define_property$1t(obj, key, value) {
|
|
@@ -18557,10 +18557,10 @@ var Images = /*#__PURE__*/ function(APIResource) {
|
|
|
18557
18557
|
_inherits$Q(Images, APIResource);
|
|
18558
18558
|
var _super = _create_super$Q(Images);
|
|
18559
18559
|
function Images() {
|
|
18560
|
-
_class_call_check$
|
|
18560
|
+
_class_call_check$14(this, Images);
|
|
18561
18561
|
return _super.apply(this, arguments);
|
|
18562
18562
|
}
|
|
18563
|
-
_create_class$
|
|
18563
|
+
_create_class$Z(Images, [
|
|
18564
18564
|
{
|
|
18565
18565
|
/**
|
|
18566
18566
|
* Creates a variation of a given image. This endpoint only supports `dall-e-2`.
|
|
@@ -18627,12 +18627,12 @@ function _assert_this_initialized$P(self) {
|
|
|
18627
18627
|
}
|
|
18628
18628
|
return self;
|
|
18629
18629
|
}
|
|
18630
|
-
function _class_call_check$
|
|
18630
|
+
function _class_call_check$13(instance, Constructor) {
|
|
18631
18631
|
if (!(instance instanceof Constructor)) {
|
|
18632
18632
|
throw new TypeError("Cannot call a class as a function");
|
|
18633
18633
|
}
|
|
18634
18634
|
}
|
|
18635
|
-
function _defineProperties$
|
|
18635
|
+
function _defineProperties$Y(target, props) {
|
|
18636
18636
|
for(var i = 0; i < props.length; i++){
|
|
18637
18637
|
var descriptor = props[i];
|
|
18638
18638
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -18641,8 +18641,8 @@ function _defineProperties$Z(target, props) {
|
|
|
18641
18641
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
18642
18642
|
}
|
|
18643
18643
|
}
|
|
18644
|
-
function _create_class$
|
|
18645
|
-
if (protoProps) _defineProperties$
|
|
18644
|
+
function _create_class$Y(Constructor, protoProps, staticProps) {
|
|
18645
|
+
if (protoProps) _defineProperties$Y(Constructor.prototype, protoProps);
|
|
18646
18646
|
return Constructor;
|
|
18647
18647
|
}
|
|
18648
18648
|
function _get_prototype_of$P(o) {
|
|
@@ -18709,10 +18709,10 @@ var Models = /*#__PURE__*/ function(APIResource) {
|
|
|
18709
18709
|
_inherits$P(Models, APIResource);
|
|
18710
18710
|
var _super = _create_super$P(Models);
|
|
18711
18711
|
function Models() {
|
|
18712
|
-
_class_call_check$
|
|
18712
|
+
_class_call_check$13(this, Models);
|
|
18713
18713
|
return _super.apply(this, arguments);
|
|
18714
18714
|
}
|
|
18715
|
-
_create_class$
|
|
18715
|
+
_create_class$Y(Models, [
|
|
18716
18716
|
{
|
|
18717
18717
|
/**
|
|
18718
18718
|
* Retrieves a model instance, providing basic information about the model such as
|
|
@@ -18749,7 +18749,7 @@ var Models = /*#__PURE__*/ function(APIResource) {
|
|
|
18749
18749
|
_inherits$P(ModelsPage, Page);
|
|
18750
18750
|
var _super = _create_super$P(ModelsPage);
|
|
18751
18751
|
function ModelsPage() {
|
|
18752
|
-
_class_call_check$
|
|
18752
|
+
_class_call_check$13(this, ModelsPage);
|
|
18753
18753
|
return _super.apply(this, arguments);
|
|
18754
18754
|
}
|
|
18755
18755
|
return ModelsPage;
|
|
@@ -18763,12 +18763,12 @@ function _assert_this_initialized$O(self) {
|
|
|
18763
18763
|
}
|
|
18764
18764
|
return self;
|
|
18765
18765
|
}
|
|
18766
|
-
function _class_call_check$
|
|
18766
|
+
function _class_call_check$12(instance, Constructor) {
|
|
18767
18767
|
if (!(instance instanceof Constructor)) {
|
|
18768
18768
|
throw new TypeError("Cannot call a class as a function");
|
|
18769
18769
|
}
|
|
18770
18770
|
}
|
|
18771
|
-
function _defineProperties$
|
|
18771
|
+
function _defineProperties$X(target, props) {
|
|
18772
18772
|
for(var i = 0; i < props.length; i++){
|
|
18773
18773
|
var descriptor = props[i];
|
|
18774
18774
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -18777,8 +18777,8 @@ function _defineProperties$Y(target, props) {
|
|
|
18777
18777
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
18778
18778
|
}
|
|
18779
18779
|
}
|
|
18780
|
-
function _create_class$
|
|
18781
|
-
if (protoProps) _defineProperties$
|
|
18780
|
+
function _create_class$X(Constructor, protoProps, staticProps) {
|
|
18781
|
+
if (protoProps) _defineProperties$X(Constructor.prototype, protoProps);
|
|
18782
18782
|
return Constructor;
|
|
18783
18783
|
}
|
|
18784
18784
|
function _define_property$1s(obj, key, value) {
|
|
@@ -18873,10 +18873,10 @@ var Moderations = /*#__PURE__*/ function(APIResource) {
|
|
|
18873
18873
|
_inherits$O(Moderations, APIResource);
|
|
18874
18874
|
var _super = _create_super$O(Moderations);
|
|
18875
18875
|
function Moderations() {
|
|
18876
|
-
_class_call_check$
|
|
18876
|
+
_class_call_check$12(this, Moderations);
|
|
18877
18877
|
return _super.apply(this, arguments);
|
|
18878
18878
|
}
|
|
18879
|
-
_create_class$
|
|
18879
|
+
_create_class$X(Moderations, [
|
|
18880
18880
|
{
|
|
18881
18881
|
/**
|
|
18882
18882
|
* Classifies if text and/or image inputs are potentially harmful. Learn more in
|
|
@@ -19136,12 +19136,12 @@ function _assert_this_initialized$N(self) {
|
|
|
19136
19136
|
}
|
|
19137
19137
|
return self;
|
|
19138
19138
|
}
|
|
19139
|
-
function _class_call_check$
|
|
19139
|
+
function _class_call_check$11(instance, Constructor) {
|
|
19140
19140
|
if (!(instance instanceof Constructor)) {
|
|
19141
19141
|
throw new TypeError("Cannot call a class as a function");
|
|
19142
19142
|
}
|
|
19143
19143
|
}
|
|
19144
|
-
function _defineProperties$
|
|
19144
|
+
function _defineProperties$W(target, props) {
|
|
19145
19145
|
for(var i = 0; i < props.length; i++){
|
|
19146
19146
|
var descriptor = props[i];
|
|
19147
19147
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -19150,8 +19150,8 @@ function _defineProperties$X(target, props) {
|
|
|
19150
19150
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19151
19151
|
}
|
|
19152
19152
|
}
|
|
19153
|
-
function _create_class$
|
|
19154
|
-
if (protoProps) _defineProperties$
|
|
19153
|
+
function _create_class$W(Constructor, protoProps, staticProps) {
|
|
19154
|
+
if (protoProps) _defineProperties$W(Constructor.prototype, protoProps);
|
|
19155
19155
|
return Constructor;
|
|
19156
19156
|
}
|
|
19157
19157
|
function _define_property$1q(obj, key, value) {
|
|
@@ -19246,10 +19246,10 @@ var InputItems = /*#__PURE__*/ function(APIResource) {
|
|
|
19246
19246
|
_inherits$N(InputItems, APIResource);
|
|
19247
19247
|
var _super = _create_super$N(InputItems);
|
|
19248
19248
|
function InputItems() {
|
|
19249
|
-
_class_call_check$
|
|
19249
|
+
_class_call_check$11(this, InputItems);
|
|
19250
19250
|
return _super.apply(this, arguments);
|
|
19251
19251
|
}
|
|
19252
|
-
_create_class$
|
|
19252
|
+
_create_class$W(InputItems, [
|
|
19253
19253
|
{
|
|
19254
19254
|
key: "list",
|
|
19255
19255
|
value: function list(responseId) {
|
|
@@ -19342,12 +19342,12 @@ function _async_to_generator$G(fn) {
|
|
|
19342
19342
|
});
|
|
19343
19343
|
};
|
|
19344
19344
|
}
|
|
19345
|
-
function _class_call_check$
|
|
19345
|
+
function _class_call_check$10(instance, Constructor) {
|
|
19346
19346
|
if (!(instance instanceof Constructor)) {
|
|
19347
19347
|
throw new TypeError("Cannot call a class as a function");
|
|
19348
19348
|
}
|
|
19349
19349
|
}
|
|
19350
|
-
function _defineProperties$
|
|
19350
|
+
function _defineProperties$V(target, props) {
|
|
19351
19351
|
for(var i = 0; i < props.length; i++){
|
|
19352
19352
|
var descriptor = props[i];
|
|
19353
19353
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -19356,9 +19356,9 @@ function _defineProperties$W(target, props) {
|
|
|
19356
19356
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19357
19357
|
}
|
|
19358
19358
|
}
|
|
19359
|
-
function _create_class$
|
|
19360
|
-
if (protoProps) _defineProperties$
|
|
19361
|
-
if (staticProps) _defineProperties$
|
|
19359
|
+
function _create_class$V(Constructor, protoProps, staticProps) {
|
|
19360
|
+
if (protoProps) _defineProperties$V(Constructor.prototype, protoProps);
|
|
19361
|
+
if (staticProps) _defineProperties$V(Constructor, staticProps);
|
|
19362
19362
|
return Constructor;
|
|
19363
19363
|
}
|
|
19364
19364
|
function _define_property$1p(obj, key, value) {
|
|
@@ -19579,7 +19579,7 @@ var ResponseStream = /*#__PURE__*/ function(EventStream) {
|
|
|
19579
19579
|
_inherits$M(ResponseStream, EventStream);
|
|
19580
19580
|
var _super = _create_super$M(ResponseStream);
|
|
19581
19581
|
function ResponseStream(params) {
|
|
19582
|
-
_class_call_check$
|
|
19582
|
+
_class_call_check$10(this, ResponseStream);
|
|
19583
19583
|
var _this;
|
|
19584
19584
|
_this = _super.call(this);
|
|
19585
19585
|
_ResponseStream_instances.add(_assert_this_initialized$M(_this));
|
|
@@ -19589,7 +19589,7 @@ var ResponseStream = /*#__PURE__*/ function(EventStream) {
|
|
|
19589
19589
|
__classPrivateFieldSet(_assert_this_initialized$M(_this), _ResponseStream_params, params, "f");
|
|
19590
19590
|
return _this;
|
|
19591
19591
|
}
|
|
19592
|
-
_create_class$
|
|
19592
|
+
_create_class$V(ResponseStream, [
|
|
19593
19593
|
{
|
|
19594
19594
|
key: "_createOrRetrieveResponse",
|
|
19595
19595
|
value: function _createOrRetrieveResponse(client, params, options) {
|
|
@@ -20060,12 +20060,12 @@ function _assert_this_initialized$L(self) {
|
|
|
20060
20060
|
}
|
|
20061
20061
|
return self;
|
|
20062
20062
|
}
|
|
20063
|
-
function _class_call_check
|
|
20063
|
+
function _class_call_check$$(instance, Constructor) {
|
|
20064
20064
|
if (!(instance instanceof Constructor)) {
|
|
20065
20065
|
throw new TypeError("Cannot call a class as a function");
|
|
20066
20066
|
}
|
|
20067
20067
|
}
|
|
20068
|
-
function _defineProperties$
|
|
20068
|
+
function _defineProperties$U(target, props) {
|
|
20069
20069
|
for(var i = 0; i < props.length; i++){
|
|
20070
20070
|
var descriptor = props[i];
|
|
20071
20071
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20074,8 +20074,8 @@ function _defineProperties$V(target, props) {
|
|
|
20074
20074
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20075
20075
|
}
|
|
20076
20076
|
}
|
|
20077
|
-
function _create_class$
|
|
20078
|
-
if (protoProps) _defineProperties$
|
|
20077
|
+
function _create_class$U(Constructor, protoProps, staticProps) {
|
|
20078
|
+
if (protoProps) _defineProperties$U(Constructor.prototype, protoProps);
|
|
20079
20079
|
return Constructor;
|
|
20080
20080
|
}
|
|
20081
20081
|
function _define_property$1o(obj, key, value) {
|
|
@@ -20189,7 +20189,7 @@ var Responses = /*#__PURE__*/ function(APIResource) {
|
|
|
20189
20189
|
_inherits$L(Responses, APIResource);
|
|
20190
20190
|
var _super = _create_super$L(Responses);
|
|
20191
20191
|
function Responses() {
|
|
20192
|
-
_class_call_check
|
|
20192
|
+
_class_call_check$$(this, Responses);
|
|
20193
20193
|
var _this;
|
|
20194
20194
|
_this = _super.call.apply(_super, [
|
|
20195
20195
|
this
|
|
@@ -20197,7 +20197,7 @@ var Responses = /*#__PURE__*/ function(APIResource) {
|
|
|
20197
20197
|
_this.inputItems = new InputItems(_this._client);
|
|
20198
20198
|
return _this;
|
|
20199
20199
|
}
|
|
20200
|
-
_create_class$
|
|
20200
|
+
_create_class$U(Responses, [
|
|
20201
20201
|
{
|
|
20202
20202
|
key: "create",
|
|
20203
20203
|
value: function create(body, options) {
|
|
@@ -20289,7 +20289,7 @@ var ResponseItemsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
20289
20289
|
_inherits$L(ResponseItemsPage, CursorPage);
|
|
20290
20290
|
var _super = _create_super$L(ResponseItemsPage);
|
|
20291
20291
|
function ResponseItemsPage() {
|
|
20292
|
-
_class_call_check
|
|
20292
|
+
_class_call_check$$(this, ResponseItemsPage);
|
|
20293
20293
|
return _super.apply(this, arguments);
|
|
20294
20294
|
}
|
|
20295
20295
|
return ResponseItemsPage;
|
|
@@ -20303,12 +20303,12 @@ function _assert_this_initialized$K(self) {
|
|
|
20303
20303
|
}
|
|
20304
20304
|
return self;
|
|
20305
20305
|
}
|
|
20306
|
-
function _class_call_check
|
|
20306
|
+
function _class_call_check$_(instance, Constructor) {
|
|
20307
20307
|
if (!(instance instanceof Constructor)) {
|
|
20308
20308
|
throw new TypeError("Cannot call a class as a function");
|
|
20309
20309
|
}
|
|
20310
20310
|
}
|
|
20311
|
-
function _defineProperties$
|
|
20311
|
+
function _defineProperties$T(target, props) {
|
|
20312
20312
|
for(var i = 0; i < props.length; i++){
|
|
20313
20313
|
var descriptor = props[i];
|
|
20314
20314
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20317,8 +20317,8 @@ function _defineProperties$U(target, props) {
|
|
|
20317
20317
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20318
20318
|
}
|
|
20319
20319
|
}
|
|
20320
|
-
function _create_class$
|
|
20321
|
-
if (protoProps) _defineProperties$
|
|
20320
|
+
function _create_class$T(Constructor, protoProps, staticProps) {
|
|
20321
|
+
if (protoProps) _defineProperties$T(Constructor.prototype, protoProps);
|
|
20322
20322
|
return Constructor;
|
|
20323
20323
|
}
|
|
20324
20324
|
function _define_property$1n(obj, key, value) {
|
|
@@ -20413,10 +20413,10 @@ var Parts = /*#__PURE__*/ function(APIResource) {
|
|
|
20413
20413
|
_inherits$K(Parts, APIResource);
|
|
20414
20414
|
var _super = _create_super$K(Parts);
|
|
20415
20415
|
function Parts() {
|
|
20416
|
-
_class_call_check
|
|
20416
|
+
_class_call_check$_(this, Parts);
|
|
20417
20417
|
return _super.apply(this, arguments);
|
|
20418
20418
|
}
|
|
20419
|
-
_create_class$
|
|
20419
|
+
_create_class$T(Parts, [
|
|
20420
20420
|
{
|
|
20421
20421
|
/**
|
|
20422
20422
|
* Adds a
|
|
@@ -20449,12 +20449,12 @@ function _assert_this_initialized$J(self) {
|
|
|
20449
20449
|
}
|
|
20450
20450
|
return self;
|
|
20451
20451
|
}
|
|
20452
|
-
function _class_call_check$
|
|
20452
|
+
function _class_call_check$Z(instance, Constructor) {
|
|
20453
20453
|
if (!(instance instanceof Constructor)) {
|
|
20454
20454
|
throw new TypeError("Cannot call a class as a function");
|
|
20455
20455
|
}
|
|
20456
20456
|
}
|
|
20457
|
-
function _defineProperties$
|
|
20457
|
+
function _defineProperties$S(target, props) {
|
|
20458
20458
|
for(var i = 0; i < props.length; i++){
|
|
20459
20459
|
var descriptor = props[i];
|
|
20460
20460
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20463,8 +20463,8 @@ function _defineProperties$T(target, props) {
|
|
|
20463
20463
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20464
20464
|
}
|
|
20465
20465
|
}
|
|
20466
|
-
function _create_class$
|
|
20467
|
-
if (protoProps) _defineProperties$
|
|
20466
|
+
function _create_class$S(Constructor, protoProps, staticProps) {
|
|
20467
|
+
if (protoProps) _defineProperties$S(Constructor.prototype, protoProps);
|
|
20468
20468
|
return Constructor;
|
|
20469
20469
|
}
|
|
20470
20470
|
function _define_property$1m(obj, key, value) {
|
|
@@ -20559,7 +20559,7 @@ var Uploads = /*#__PURE__*/ function(APIResource) {
|
|
|
20559
20559
|
_inherits$J(Uploads, APIResource);
|
|
20560
20560
|
var _super = _create_super$J(Uploads);
|
|
20561
20561
|
function Uploads() {
|
|
20562
|
-
_class_call_check$
|
|
20562
|
+
_class_call_check$Z(this, Uploads);
|
|
20563
20563
|
var _this;
|
|
20564
20564
|
_this = _super.call.apply(_super, [
|
|
20565
20565
|
this
|
|
@@ -20567,7 +20567,7 @@ var Uploads = /*#__PURE__*/ function(APIResource) {
|
|
|
20567
20567
|
_this.parts = new Parts(_this._client);
|
|
20568
20568
|
return _this;
|
|
20569
20569
|
}
|
|
20570
|
-
_create_class$
|
|
20570
|
+
_create_class$S(Uploads, [
|
|
20571
20571
|
{
|
|
20572
20572
|
/**
|
|
20573
20573
|
* Creates an intermediate
|
|
@@ -20867,12 +20867,12 @@ function _async_to_generator$E(fn) {
|
|
|
20867
20867
|
});
|
|
20868
20868
|
};
|
|
20869
20869
|
}
|
|
20870
|
-
function _class_call_check$
|
|
20870
|
+
function _class_call_check$Y(instance, Constructor) {
|
|
20871
20871
|
if (!(instance instanceof Constructor)) {
|
|
20872
20872
|
throw new TypeError("Cannot call a class as a function");
|
|
20873
20873
|
}
|
|
20874
20874
|
}
|
|
20875
|
-
function _defineProperties$
|
|
20875
|
+
function _defineProperties$R(target, props) {
|
|
20876
20876
|
for(var i = 0; i < props.length; i++){
|
|
20877
20877
|
var descriptor = props[i];
|
|
20878
20878
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20881,8 +20881,8 @@ function _defineProperties$S(target, props) {
|
|
|
20881
20881
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20882
20882
|
}
|
|
20883
20883
|
}
|
|
20884
|
-
function _create_class$
|
|
20885
|
-
if (protoProps) _defineProperties$
|
|
20884
|
+
function _create_class$R(Constructor, protoProps, staticProps) {
|
|
20885
|
+
if (protoProps) _defineProperties$R(Constructor.prototype, protoProps);
|
|
20886
20886
|
return Constructor;
|
|
20887
20887
|
}
|
|
20888
20888
|
function _define_property$1l(obj, key, value) {
|
|
@@ -21091,10 +21091,10 @@ var Files = /*#__PURE__*/ function(APIResource) {
|
|
|
21091
21091
|
_inherits$I(Files, APIResource);
|
|
21092
21092
|
var _super = _create_super$I(Files);
|
|
21093
21093
|
function Files() {
|
|
21094
|
-
_class_call_check$
|
|
21094
|
+
_class_call_check$Y(this, Files);
|
|
21095
21095
|
return _super.apply(this, arguments);
|
|
21096
21096
|
}
|
|
21097
|
-
_create_class$
|
|
21097
|
+
_create_class$R(Files, [
|
|
21098
21098
|
{
|
|
21099
21099
|
/**
|
|
21100
21100
|
* Create a vector store file by attaching a
|
|
@@ -21378,7 +21378,7 @@ var VectorStoreFilesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
21378
21378
|
_inherits$I(VectorStoreFilesPage, CursorPage);
|
|
21379
21379
|
var _super = _create_super$I(VectorStoreFilesPage);
|
|
21380
21380
|
function VectorStoreFilesPage() {
|
|
21381
|
-
_class_call_check$
|
|
21381
|
+
_class_call_check$Y(this, VectorStoreFilesPage);
|
|
21382
21382
|
return _super.apply(this, arguments);
|
|
21383
21383
|
}
|
|
21384
21384
|
return VectorStoreFilesPage;
|
|
@@ -21389,7 +21389,7 @@ var VectorStoreFilesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
21389
21389
|
_inherits$I(FileContentResponsesPage, Page);
|
|
21390
21390
|
var _super = _create_super$I(FileContentResponsesPage);
|
|
21391
21391
|
function FileContentResponsesPage() {
|
|
21392
|
-
_class_call_check$
|
|
21392
|
+
_class_call_check$Y(this, FileContentResponsesPage);
|
|
21393
21393
|
return _super.apply(this, arguments);
|
|
21394
21394
|
}
|
|
21395
21395
|
return FileContentResponsesPage;
|
|
@@ -21441,12 +21441,12 @@ function _async_to_generator$D(fn) {
|
|
|
21441
21441
|
});
|
|
21442
21442
|
};
|
|
21443
21443
|
}
|
|
21444
|
-
function _class_call_check$
|
|
21444
|
+
function _class_call_check$X(instance, Constructor) {
|
|
21445
21445
|
if (!(instance instanceof Constructor)) {
|
|
21446
21446
|
throw new TypeError("Cannot call a class as a function");
|
|
21447
21447
|
}
|
|
21448
21448
|
}
|
|
21449
|
-
function _defineProperties$
|
|
21449
|
+
function _defineProperties$Q(target, props) {
|
|
21450
21450
|
for(var i = 0; i < props.length; i++){
|
|
21451
21451
|
var descriptor = props[i];
|
|
21452
21452
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -21455,8 +21455,8 @@ function _defineProperties$R(target, props) {
|
|
|
21455
21455
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
21456
21456
|
}
|
|
21457
21457
|
}
|
|
21458
|
-
function _create_class$
|
|
21459
|
-
if (protoProps) _defineProperties$
|
|
21458
|
+
function _create_class$Q(Constructor, protoProps, staticProps) {
|
|
21459
|
+
if (protoProps) _defineProperties$Q(Constructor.prototype, protoProps);
|
|
21460
21460
|
return Constructor;
|
|
21461
21461
|
}
|
|
21462
21462
|
function _define_property$1k(obj, key, value) {
|
|
@@ -21682,10 +21682,10 @@ var FileBatches = /*#__PURE__*/ function(APIResource) {
|
|
|
21682
21682
|
_inherits$H(FileBatches, APIResource);
|
|
21683
21683
|
var _super = _create_super$H(FileBatches);
|
|
21684
21684
|
function FileBatches() {
|
|
21685
|
-
_class_call_check$
|
|
21685
|
+
_class_call_check$X(this, FileBatches);
|
|
21686
21686
|
return _super.apply(this, arguments);
|
|
21687
21687
|
}
|
|
21688
|
-
_create_class$
|
|
21688
|
+
_create_class$Q(FileBatches, [
|
|
21689
21689
|
{
|
|
21690
21690
|
/**
|
|
21691
21691
|
* Create a vector store file batch.
|
|
@@ -22010,12 +22010,12 @@ function _assert_this_initialized$G(self) {
|
|
|
22010
22010
|
}
|
|
22011
22011
|
return self;
|
|
22012
22012
|
}
|
|
22013
|
-
function _class_call_check$
|
|
22013
|
+
function _class_call_check$W(instance, Constructor) {
|
|
22014
22014
|
if (!(instance instanceof Constructor)) {
|
|
22015
22015
|
throw new TypeError("Cannot call a class as a function");
|
|
22016
22016
|
}
|
|
22017
22017
|
}
|
|
22018
|
-
function _defineProperties$
|
|
22018
|
+
function _defineProperties$P(target, props) {
|
|
22019
22019
|
for(var i = 0; i < props.length; i++){
|
|
22020
22020
|
var descriptor = props[i];
|
|
22021
22021
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -22024,8 +22024,8 @@ function _defineProperties$Q(target, props) {
|
|
|
22024
22024
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22025
22025
|
}
|
|
22026
22026
|
}
|
|
22027
|
-
function _create_class$
|
|
22028
|
-
if (protoProps) _defineProperties$
|
|
22027
|
+
function _create_class$P(Constructor, protoProps, staticProps) {
|
|
22028
|
+
if (protoProps) _defineProperties$P(Constructor.prototype, protoProps);
|
|
22029
22029
|
return Constructor;
|
|
22030
22030
|
}
|
|
22031
22031
|
function _define_property$1j(obj, key, value) {
|
|
@@ -22139,7 +22139,7 @@ var VectorStores = /*#__PURE__*/ function(APIResource) {
|
|
|
22139
22139
|
_inherits$G(VectorStores, APIResource);
|
|
22140
22140
|
var _super = _create_super$G(VectorStores);
|
|
22141
22141
|
function VectorStores() {
|
|
22142
|
-
_class_call_check$
|
|
22142
|
+
_class_call_check$W(this, VectorStores);
|
|
22143
22143
|
var _this;
|
|
22144
22144
|
_this = _super.call.apply(_super, [
|
|
22145
22145
|
this
|
|
@@ -22148,7 +22148,7 @@ var VectorStores = /*#__PURE__*/ function(APIResource) {
|
|
|
22148
22148
|
_this.fileBatches = new FileBatches(_this._client);
|
|
22149
22149
|
return _this;
|
|
22150
22150
|
}
|
|
22151
|
-
_create_class$
|
|
22151
|
+
_create_class$P(VectorStores, [
|
|
22152
22152
|
{
|
|
22153
22153
|
/**
|
|
22154
22154
|
* Create a vector store.
|
|
@@ -22240,7 +22240,7 @@ var VectorStoresPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
22240
22240
|
_inherits$G(VectorStoresPage, CursorPage);
|
|
22241
22241
|
var _super = _create_super$G(VectorStoresPage);
|
|
22242
22242
|
function VectorStoresPage() {
|
|
22243
|
-
_class_call_check$
|
|
22243
|
+
_class_call_check$W(this, VectorStoresPage);
|
|
22244
22244
|
return _super.apply(this, arguments);
|
|
22245
22245
|
}
|
|
22246
22246
|
return VectorStoresPage;
|
|
@@ -22251,7 +22251,7 @@ var VectorStoresPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
22251
22251
|
_inherits$G(VectorStoreSearchResponsesPage, Page);
|
|
22252
22252
|
var _super = _create_super$G(VectorStoreSearchResponsesPage);
|
|
22253
22253
|
function VectorStoreSearchResponsesPage() {
|
|
22254
|
-
_class_call_check$
|
|
22254
|
+
_class_call_check$W(this, VectorStoreSearchResponsesPage);
|
|
22255
22255
|
return _super.apply(this, arguments);
|
|
22256
22256
|
}
|
|
22257
22257
|
return VectorStoreSearchResponsesPage;
|
|
@@ -22299,12 +22299,12 @@ function _async_to_generator$C(fn) {
|
|
|
22299
22299
|
});
|
|
22300
22300
|
};
|
|
22301
22301
|
}
|
|
22302
|
-
function _class_call_check$
|
|
22302
|
+
function _class_call_check$V(instance, Constructor) {
|
|
22303
22303
|
if (!(instance instanceof Constructor)) {
|
|
22304
22304
|
throw new TypeError("Cannot call a class as a function");
|
|
22305
22305
|
}
|
|
22306
22306
|
}
|
|
22307
|
-
function _defineProperties$
|
|
22307
|
+
function _defineProperties$O(target, props) {
|
|
22308
22308
|
for(var i = 0; i < props.length; i++){
|
|
22309
22309
|
var descriptor = props[i];
|
|
22310
22310
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -22313,8 +22313,8 @@ function _defineProperties$P(target, props) {
|
|
|
22313
22313
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22314
22314
|
}
|
|
22315
22315
|
}
|
|
22316
|
-
function _create_class$
|
|
22317
|
-
if (protoProps) _defineProperties$
|
|
22316
|
+
function _create_class$O(Constructor, protoProps, staticProps) {
|
|
22317
|
+
if (protoProps) _defineProperties$O(Constructor.prototype, protoProps);
|
|
22318
22318
|
return Constructor;
|
|
22319
22319
|
}
|
|
22320
22320
|
function _define_property$1i(obj, key, value) {
|
|
@@ -22578,7 +22578,7 @@ var _Core_readEnv, _Core_readEnv1;
|
|
|
22578
22578
|
var _super = _create_super$F(OpenAI);
|
|
22579
22579
|
function OpenAI() {
|
|
22580
22580
|
var _param = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
22581
|
-
_class_call_check$
|
|
22581
|
+
_class_call_check$V(this, OpenAI);
|
|
22582
22582
|
var _this;
|
|
22583
22583
|
var _param_baseURL = _param.baseURL, baseURL = _param_baseURL === void 0 ? readEnv('OPENAI_BASE_URL') : _param_baseURL, _param_apiKey = _param.apiKey, apiKey = _param_apiKey === void 0 ? readEnv('OPENAI_API_KEY') : _param_apiKey, _param_organization = _param.organization, organization = _param_organization === void 0 ? (_Core_readEnv = readEnv('OPENAI_ORG_ID')) !== null && _Core_readEnv !== void 0 ? _Core_readEnv : null : _param_organization, _param_project = _param.project, project = _param_project === void 0 ? (_Core_readEnv1 = readEnv('OPENAI_PROJECT_ID')) !== null && _Core_readEnv1 !== void 0 ? _Core_readEnv1 : null : _param_project, opts = _object_without_properties$a(_param, [
|
|
22584
22584
|
"baseURL",
|
|
@@ -22630,7 +22630,7 @@ var _Core_readEnv, _Core_readEnv1;
|
|
|
22630
22630
|
_this.project = project;
|
|
22631
22631
|
return _this;
|
|
22632
22632
|
}
|
|
22633
|
-
_create_class$
|
|
22633
|
+
_create_class$O(OpenAI, [
|
|
22634
22634
|
{
|
|
22635
22635
|
key: "defaultQuery",
|
|
22636
22636
|
value: function defaultQuery() {
|
|
@@ -22713,7 +22713,7 @@ OpenAI.ContainerListResponsesPage = ContainerListResponsesPage;
|
|
|
22713
22713
|
var _super = _create_super$F(AzureOpenAI);
|
|
22714
22714
|
function AzureOpenAI() {
|
|
22715
22715
|
var _param = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
22716
|
-
_class_call_check$
|
|
22716
|
+
_class_call_check$V(this, AzureOpenAI);
|
|
22717
22717
|
var _this;
|
|
22718
22718
|
var _param_baseURL = _param.baseURL, baseURL = _param_baseURL === void 0 ? readEnv('OPENAI_BASE_URL') : _param_baseURL, _param_apiKey = _param.apiKey, apiKey = _param_apiKey === void 0 ? readEnv('AZURE_OPENAI_API_KEY') : _param_apiKey, _param_apiVersion = _param.apiVersion, apiVersion = _param_apiVersion === void 0 ? readEnv('OPENAI_API_VERSION') : _param_apiVersion, endpoint = _param.endpoint, deployment = _param.deployment, azureADTokenProvider = _param.azureADTokenProvider, dangerouslyAllowBrowser = _param.dangerouslyAllowBrowser, opts = _object_without_properties$a(_param, [
|
|
22719
22719
|
"baseURL",
|
|
@@ -22766,7 +22766,7 @@ OpenAI.ContainerListResponsesPage = ContainerListResponsesPage;
|
|
|
22766
22766
|
_this.deploymentName = deployment;
|
|
22767
22767
|
return _this;
|
|
22768
22768
|
}
|
|
22769
|
-
_create_class$
|
|
22769
|
+
_create_class$O(AzureOpenAI, [
|
|
22770
22770
|
{
|
|
22771
22771
|
key: "buildRequest",
|
|
22772
22772
|
value: function buildRequest(options) {
|
|
@@ -23165,12 +23165,12 @@ function _array_with_holes$t(arr) {
|
|
|
23165
23165
|
function _array_without_holes$T(arr) {
|
|
23166
23166
|
if (Array.isArray(arr)) return _array_like_to_array$12(arr);
|
|
23167
23167
|
}
|
|
23168
|
-
function _class_call_check$
|
|
23168
|
+
function _class_call_check$U(instance, Constructor) {
|
|
23169
23169
|
if (!(instance instanceof Constructor)) {
|
|
23170
23170
|
throw new TypeError("Cannot call a class as a function");
|
|
23171
23171
|
}
|
|
23172
23172
|
}
|
|
23173
|
-
function _defineProperties$
|
|
23173
|
+
function _defineProperties$N(target, props) {
|
|
23174
23174
|
for(var i = 0; i < props.length; i++){
|
|
23175
23175
|
var descriptor = props[i];
|
|
23176
23176
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -23179,9 +23179,9 @@ function _defineProperties$O(target, props) {
|
|
|
23179
23179
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23180
23180
|
}
|
|
23181
23181
|
}
|
|
23182
|
-
function _create_class$
|
|
23183
|
-
if (protoProps) _defineProperties$
|
|
23184
|
-
if (staticProps) _defineProperties$
|
|
23182
|
+
function _create_class$N(Constructor, protoProps, staticProps) {
|
|
23183
|
+
if (protoProps) _defineProperties$N(Constructor.prototype, protoProps);
|
|
23184
|
+
if (staticProps) _defineProperties$N(Constructor, staticProps);
|
|
23185
23185
|
return Constructor;
|
|
23186
23186
|
}
|
|
23187
23187
|
function _define_property$1g(obj, key, value) {
|
|
@@ -23356,7 +23356,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
23356
23356
|
for(var _len = arguments.length, _args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
23357
23357
|
_args[_key - 1] = arguments[_key];
|
|
23358
23358
|
}
|
|
23359
|
-
_class_call_check$
|
|
23359
|
+
_class_call_check$U(this, Serializable);
|
|
23360
23360
|
Object.defineProperty(this, "lc_serializable", {
|
|
23361
23361
|
enumerable: true,
|
|
23362
23362
|
configurable: true,
|
|
@@ -23379,7 +23379,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
23379
23379
|
this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
|
|
23380
23380
|
}
|
|
23381
23381
|
}
|
|
23382
|
-
_create_class$
|
|
23382
|
+
_create_class$N(Serializable, [
|
|
23383
23383
|
{
|
|
23384
23384
|
key: "lc_id",
|
|
23385
23385
|
get: /**
|
|
@@ -23588,12 +23588,12 @@ function _assert_this_initialized$E(self) {
|
|
|
23588
23588
|
}
|
|
23589
23589
|
return self;
|
|
23590
23590
|
}
|
|
23591
|
-
function _class_call_check$
|
|
23591
|
+
function _class_call_check$T(instance, Constructor) {
|
|
23592
23592
|
if (!(instance instanceof Constructor)) {
|
|
23593
23593
|
throw new TypeError("Cannot call a class as a function");
|
|
23594
23594
|
}
|
|
23595
23595
|
}
|
|
23596
|
-
function _defineProperties$
|
|
23596
|
+
function _defineProperties$M(target, props) {
|
|
23597
23597
|
for(var i = 0; i < props.length; i++){
|
|
23598
23598
|
var descriptor = props[i];
|
|
23599
23599
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -23602,9 +23602,9 @@ function _defineProperties$N(target, props) {
|
|
|
23602
23602
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23603
23603
|
}
|
|
23604
23604
|
}
|
|
23605
|
-
function _create_class$
|
|
23606
|
-
if (protoProps) _defineProperties$
|
|
23607
|
-
if (staticProps) _defineProperties$
|
|
23605
|
+
function _create_class$M(Constructor, protoProps, staticProps) {
|
|
23606
|
+
if (protoProps) _defineProperties$M(Constructor.prototype, protoProps);
|
|
23607
|
+
if (staticProps) _defineProperties$M(Constructor, staticProps);
|
|
23608
23608
|
return Constructor;
|
|
23609
23609
|
}
|
|
23610
23610
|
function _define_property$1f(obj, key, value) {
|
|
@@ -23859,7 +23859,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
23859
23859
|
_inherits$E(BaseMessage, Serializable);
|
|
23860
23860
|
var _super = _create_super$E(BaseMessage);
|
|
23861
23861
|
function BaseMessage(fields, /** @deprecated */ kwargs) {
|
|
23862
|
-
_class_call_check$
|
|
23862
|
+
_class_call_check$T(this, BaseMessage);
|
|
23863
23863
|
var _this;
|
|
23864
23864
|
if (typeof fields === "string") {
|
|
23865
23865
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -23934,7 +23934,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
23934
23934
|
_this.id = fields.id;
|
|
23935
23935
|
return _this;
|
|
23936
23936
|
}
|
|
23937
|
-
_create_class$
|
|
23937
|
+
_create_class$M(BaseMessage, [
|
|
23938
23938
|
{
|
|
23939
23939
|
key: "lc_aliases",
|
|
23940
23940
|
get: function get() {
|
|
@@ -24151,7 +24151,7 @@ function _mergeObj(left, right) {
|
|
|
24151
24151
|
_inherits$E(BaseMessageChunk, BaseMessage);
|
|
24152
24152
|
var _super = _create_super$E(BaseMessageChunk);
|
|
24153
24153
|
function BaseMessageChunk() {
|
|
24154
|
-
_class_call_check$
|
|
24154
|
+
_class_call_check$T(this, BaseMessageChunk);
|
|
24155
24155
|
return _super.apply(this, arguments);
|
|
24156
24156
|
}
|
|
24157
24157
|
return BaseMessageChunk;
|
|
@@ -24172,12 +24172,12 @@ function _assert_this_initialized$D(self) {
|
|
|
24172
24172
|
}
|
|
24173
24173
|
return self;
|
|
24174
24174
|
}
|
|
24175
|
-
function _class_call_check$
|
|
24175
|
+
function _class_call_check$S(instance, Constructor) {
|
|
24176
24176
|
if (!(instance instanceof Constructor)) {
|
|
24177
24177
|
throw new TypeError("Cannot call a class as a function");
|
|
24178
24178
|
}
|
|
24179
24179
|
}
|
|
24180
|
-
function _defineProperties$
|
|
24180
|
+
function _defineProperties$L(target, props) {
|
|
24181
24181
|
for(var i = 0; i < props.length; i++){
|
|
24182
24182
|
var descriptor = props[i];
|
|
24183
24183
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -24186,9 +24186,9 @@ function _defineProperties$M(target, props) {
|
|
|
24186
24186
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
24187
24187
|
}
|
|
24188
24188
|
}
|
|
24189
|
-
function _create_class$
|
|
24190
|
-
if (protoProps) _defineProperties$
|
|
24191
|
-
if (staticProps) _defineProperties$
|
|
24189
|
+
function _create_class$L(Constructor, protoProps, staticProps) {
|
|
24190
|
+
if (protoProps) _defineProperties$L(Constructor.prototype, protoProps);
|
|
24191
|
+
if (staticProps) _defineProperties$L(Constructor, staticProps);
|
|
24192
24192
|
return Constructor;
|
|
24193
24193
|
}
|
|
24194
24194
|
function _define_property$1e(obj, key, value) {
|
|
@@ -24327,7 +24327,7 @@ function _create_super$D(Derived) {
|
|
|
24327
24327
|
_inherits$D(ToolMessage, BaseMessage);
|
|
24328
24328
|
var _super = _create_super$D(ToolMessage);
|
|
24329
24329
|
function ToolMessage(fields, tool_call_id, name) {
|
|
24330
|
-
_class_call_check$
|
|
24330
|
+
_class_call_check$S(this, ToolMessage);
|
|
24331
24331
|
var _this;
|
|
24332
24332
|
if (typeof fields === "string") {
|
|
24333
24333
|
// eslint-disable-next-line no-param-reassign, @typescript-eslint/no-non-null-assertion
|
|
@@ -24377,7 +24377,7 @@ function _create_super$D(Derived) {
|
|
|
24377
24377
|
_this.status = fields.status;
|
|
24378
24378
|
return _this;
|
|
24379
24379
|
}
|
|
24380
|
-
_create_class$
|
|
24380
|
+
_create_class$L(ToolMessage, [
|
|
24381
24381
|
{
|
|
24382
24382
|
key: "lc_aliases",
|
|
24383
24383
|
get: function get() {
|
|
@@ -24425,7 +24425,7 @@ function _create_super$D(Derived) {
|
|
|
24425
24425
|
_inherits$D(ToolMessageChunk, BaseMessageChunk);
|
|
24426
24426
|
var _super = _create_super$D(ToolMessageChunk);
|
|
24427
24427
|
function ToolMessageChunk(fields) {
|
|
24428
|
-
_class_call_check$
|
|
24428
|
+
_class_call_check$S(this, ToolMessageChunk);
|
|
24429
24429
|
var _this;
|
|
24430
24430
|
_this = _super.call(this, fields);
|
|
24431
24431
|
Object.defineProperty(_assert_this_initialized$D(_this), "tool_call_id", {
|
|
@@ -24461,7 +24461,7 @@ function _create_super$D(Derived) {
|
|
|
24461
24461
|
_this.status = fields.status;
|
|
24462
24462
|
return _this;
|
|
24463
24463
|
}
|
|
24464
|
-
_create_class$
|
|
24464
|
+
_create_class$L(ToolMessageChunk, [
|
|
24465
24465
|
{
|
|
24466
24466
|
key: "_getType",
|
|
24467
24467
|
value: function _getType() {
|
|
@@ -24566,12 +24566,12 @@ function _assert_this_initialized$C(self) {
|
|
|
24566
24566
|
}
|
|
24567
24567
|
return self;
|
|
24568
24568
|
}
|
|
24569
|
-
function _class_call_check$
|
|
24569
|
+
function _class_call_check$R(instance, Constructor) {
|
|
24570
24570
|
if (!(instance instanceof Constructor)) {
|
|
24571
24571
|
throw new TypeError("Cannot call a class as a function");
|
|
24572
24572
|
}
|
|
24573
24573
|
}
|
|
24574
|
-
function _defineProperties$
|
|
24574
|
+
function _defineProperties$K(target, props) {
|
|
24575
24575
|
for(var i = 0; i < props.length; i++){
|
|
24576
24576
|
var descriptor = props[i];
|
|
24577
24577
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -24580,9 +24580,9 @@ function _defineProperties$L(target, props) {
|
|
|
24580
24580
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
24581
24581
|
}
|
|
24582
24582
|
}
|
|
24583
|
-
function _create_class$
|
|
24584
|
-
if (protoProps) _defineProperties$
|
|
24585
|
-
if (staticProps) _defineProperties$
|
|
24583
|
+
function _create_class$K(Constructor, protoProps, staticProps) {
|
|
24584
|
+
if (protoProps) _defineProperties$K(Constructor.prototype, protoProps);
|
|
24585
|
+
if (staticProps) _defineProperties$K(Constructor, staticProps);
|
|
24586
24586
|
return Constructor;
|
|
24587
24587
|
}
|
|
24588
24588
|
function _define_property$1d(obj, key, value) {
|
|
@@ -24759,7 +24759,7 @@ function _create_super$C(Derived) {
|
|
|
24759
24759
|
_inherits$C(AIMessage, BaseMessage);
|
|
24760
24760
|
var _super = _create_super$C(AIMessage);
|
|
24761
24761
|
function AIMessage(fields, /** @deprecated */ kwargs) {
|
|
24762
|
-
_class_call_check$
|
|
24762
|
+
_class_call_check$R(this, AIMessage);
|
|
24763
24763
|
var _this;
|
|
24764
24764
|
var initParams;
|
|
24765
24765
|
if (typeof fields === "string") {
|
|
@@ -24833,7 +24833,7 @@ function _create_super$C(Derived) {
|
|
|
24833
24833
|
_this.usage_metadata = initParams.usage_metadata;
|
|
24834
24834
|
return _this;
|
|
24835
24835
|
}
|
|
24836
|
-
_create_class$
|
|
24836
|
+
_create_class$K(AIMessage, [
|
|
24837
24837
|
{
|
|
24838
24838
|
key: "lc_aliases",
|
|
24839
24839
|
get: function get() {
|
|
@@ -24883,7 +24883,7 @@ function isAIMessageChunk(x) {
|
|
|
24883
24883
|
_inherits$C(AIMessageChunk, BaseMessageChunk);
|
|
24884
24884
|
var _super = _create_super$C(AIMessageChunk);
|
|
24885
24885
|
function AIMessageChunk(fields) {
|
|
24886
|
-
_class_call_check$
|
|
24886
|
+
_class_call_check$R(this, AIMessageChunk);
|
|
24887
24887
|
var _this;
|
|
24888
24888
|
var initParams;
|
|
24889
24889
|
if (typeof fields === "string") {
|
|
@@ -24992,7 +24992,7 @@ function isAIMessageChunk(x) {
|
|
|
24992
24992
|
_this.usage_metadata = initParams.usage_metadata;
|
|
24993
24993
|
return _this;
|
|
24994
24994
|
}
|
|
24995
|
-
_create_class$
|
|
24995
|
+
_create_class$K(AIMessageChunk, [
|
|
24996
24996
|
{
|
|
24997
24997
|
key: "lc_aliases",
|
|
24998
24998
|
get: function get() {
|
|
@@ -25097,12 +25097,12 @@ function _assert_this_initialized$B(self) {
|
|
|
25097
25097
|
}
|
|
25098
25098
|
return self;
|
|
25099
25099
|
}
|
|
25100
|
-
function _class_call_check$
|
|
25100
|
+
function _class_call_check$Q(instance, Constructor) {
|
|
25101
25101
|
if (!(instance instanceof Constructor)) {
|
|
25102
25102
|
throw new TypeError("Cannot call a class as a function");
|
|
25103
25103
|
}
|
|
25104
25104
|
}
|
|
25105
|
-
function _defineProperties$
|
|
25105
|
+
function _defineProperties$J(target, props) {
|
|
25106
25106
|
for(var i = 0; i < props.length; i++){
|
|
25107
25107
|
var descriptor = props[i];
|
|
25108
25108
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25111,9 +25111,9 @@ function _defineProperties$K(target, props) {
|
|
|
25111
25111
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25112
25112
|
}
|
|
25113
25113
|
}
|
|
25114
|
-
function _create_class$
|
|
25115
|
-
if (protoProps) _defineProperties$
|
|
25116
|
-
if (staticProps) _defineProperties$
|
|
25114
|
+
function _create_class$J(Constructor, protoProps, staticProps) {
|
|
25115
|
+
if (protoProps) _defineProperties$J(Constructor.prototype, protoProps);
|
|
25116
|
+
if (staticProps) _defineProperties$J(Constructor, staticProps);
|
|
25117
25117
|
return Constructor;
|
|
25118
25118
|
}
|
|
25119
25119
|
function _define_property$1c(obj, key, value) {
|
|
@@ -25252,7 +25252,7 @@ function _create_super$B(Derived) {
|
|
|
25252
25252
|
_inherits$B(ChatMessage, BaseMessage);
|
|
25253
25253
|
var _super = _create_super$B(ChatMessage);
|
|
25254
25254
|
function ChatMessage(fields, role) {
|
|
25255
|
-
_class_call_check$
|
|
25255
|
+
_class_call_check$Q(this, ChatMessage);
|
|
25256
25256
|
var _this;
|
|
25257
25257
|
if (typeof fields === "string") {
|
|
25258
25258
|
// eslint-disable-next-line no-param-reassign, @typescript-eslint/no-non-null-assertion
|
|
@@ -25271,7 +25271,7 @@ function _create_super$B(Derived) {
|
|
|
25271
25271
|
_this.role = fields.role;
|
|
25272
25272
|
return _this;
|
|
25273
25273
|
}
|
|
25274
|
-
_create_class$
|
|
25274
|
+
_create_class$J(ChatMessage, [
|
|
25275
25275
|
{
|
|
25276
25276
|
key: "_getType",
|
|
25277
25277
|
value: function _getType() {
|
|
@@ -25315,7 +25315,7 @@ function _create_super$B(Derived) {
|
|
|
25315
25315
|
_inherits$B(ChatMessageChunk, BaseMessageChunk);
|
|
25316
25316
|
var _super = _create_super$B(ChatMessageChunk);
|
|
25317
25317
|
function ChatMessageChunk(fields, role) {
|
|
25318
|
-
_class_call_check$
|
|
25318
|
+
_class_call_check$Q(this, ChatMessageChunk);
|
|
25319
25319
|
var _this;
|
|
25320
25320
|
if (typeof fields === "string") {
|
|
25321
25321
|
// eslint-disable-next-line no-param-reassign, @typescript-eslint/no-non-null-assertion
|
|
@@ -25334,7 +25334,7 @@ function _create_super$B(Derived) {
|
|
|
25334
25334
|
_this.role = fields.role;
|
|
25335
25335
|
return _this;
|
|
25336
25336
|
}
|
|
25337
|
-
_create_class$
|
|
25337
|
+
_create_class$J(ChatMessageChunk, [
|
|
25338
25338
|
{
|
|
25339
25339
|
key: "_getType",
|
|
25340
25340
|
value: function _getType() {
|
|
@@ -25379,12 +25379,12 @@ function _assert_this_initialized$A(self) {
|
|
|
25379
25379
|
}
|
|
25380
25380
|
return self;
|
|
25381
25381
|
}
|
|
25382
|
-
function _class_call_check$
|
|
25382
|
+
function _class_call_check$P(instance, Constructor) {
|
|
25383
25383
|
if (!(instance instanceof Constructor)) {
|
|
25384
25384
|
throw new TypeError("Cannot call a class as a function");
|
|
25385
25385
|
}
|
|
25386
25386
|
}
|
|
25387
|
-
function _defineProperties$
|
|
25387
|
+
function _defineProperties$I(target, props) {
|
|
25388
25388
|
for(var i = 0; i < props.length; i++){
|
|
25389
25389
|
var descriptor = props[i];
|
|
25390
25390
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25393,9 +25393,9 @@ function _defineProperties$J(target, props) {
|
|
|
25393
25393
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25394
25394
|
}
|
|
25395
25395
|
}
|
|
25396
|
-
function _create_class$
|
|
25397
|
-
if (protoProps) _defineProperties$
|
|
25398
|
-
if (staticProps) _defineProperties$
|
|
25396
|
+
function _create_class$I(Constructor, protoProps, staticProps) {
|
|
25397
|
+
if (protoProps) _defineProperties$I(Constructor.prototype, protoProps);
|
|
25398
|
+
if (staticProps) _defineProperties$I(Constructor, staticProps);
|
|
25399
25399
|
return Constructor;
|
|
25400
25400
|
}
|
|
25401
25401
|
function _get_prototype_of$A(o) {
|
|
@@ -25465,10 +25465,10 @@ function _create_super$A(Derived) {
|
|
|
25465
25465
|
_inherits$A(FunctionMessageChunk, BaseMessageChunk);
|
|
25466
25466
|
var _super = _create_super$A(FunctionMessageChunk);
|
|
25467
25467
|
function FunctionMessageChunk() {
|
|
25468
|
-
_class_call_check$
|
|
25468
|
+
_class_call_check$P(this, FunctionMessageChunk);
|
|
25469
25469
|
return _super.apply(this, arguments);
|
|
25470
25470
|
}
|
|
25471
|
-
_create_class$
|
|
25471
|
+
_create_class$I(FunctionMessageChunk, [
|
|
25472
25472
|
{
|
|
25473
25473
|
key: "_getType",
|
|
25474
25474
|
value: function _getType() {
|
|
@@ -25505,12 +25505,12 @@ function _assert_this_initialized$z(self) {
|
|
|
25505
25505
|
}
|
|
25506
25506
|
return self;
|
|
25507
25507
|
}
|
|
25508
|
-
function _class_call_check$
|
|
25508
|
+
function _class_call_check$O(instance, Constructor) {
|
|
25509
25509
|
if (!(instance instanceof Constructor)) {
|
|
25510
25510
|
throw new TypeError("Cannot call a class as a function");
|
|
25511
25511
|
}
|
|
25512
25512
|
}
|
|
25513
|
-
function _defineProperties$
|
|
25513
|
+
function _defineProperties$H(target, props) {
|
|
25514
25514
|
for(var i = 0; i < props.length; i++){
|
|
25515
25515
|
var descriptor = props[i];
|
|
25516
25516
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25519,9 +25519,9 @@ function _defineProperties$I(target, props) {
|
|
|
25519
25519
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25520
25520
|
}
|
|
25521
25521
|
}
|
|
25522
|
-
function _create_class$
|
|
25523
|
-
if (protoProps) _defineProperties$
|
|
25524
|
-
if (staticProps) _defineProperties$
|
|
25522
|
+
function _create_class$H(Constructor, protoProps, staticProps) {
|
|
25523
|
+
if (protoProps) _defineProperties$H(Constructor.prototype, protoProps);
|
|
25524
|
+
if (staticProps) _defineProperties$H(Constructor, staticProps);
|
|
25525
25525
|
return Constructor;
|
|
25526
25526
|
}
|
|
25527
25527
|
function _get_prototype_of$z(o) {
|
|
@@ -25590,10 +25590,10 @@ function _create_super$z(Derived) {
|
|
|
25590
25590
|
_inherits$z(HumanMessage, BaseMessage);
|
|
25591
25591
|
var _super = _create_super$z(HumanMessage);
|
|
25592
25592
|
function HumanMessage(fields, /** @deprecated */ kwargs) {
|
|
25593
|
-
_class_call_check$
|
|
25593
|
+
_class_call_check$O(this, HumanMessage);
|
|
25594
25594
|
return _super.call(this, fields, kwargs);
|
|
25595
25595
|
}
|
|
25596
|
-
_create_class$
|
|
25596
|
+
_create_class$H(HumanMessage, [
|
|
25597
25597
|
{
|
|
25598
25598
|
key: "_getType",
|
|
25599
25599
|
value: function _getType() {
|
|
@@ -25617,10 +25617,10 @@ function _create_super$z(Derived) {
|
|
|
25617
25617
|
_inherits$z(HumanMessageChunk, BaseMessageChunk);
|
|
25618
25618
|
var _super = _create_super$z(HumanMessageChunk);
|
|
25619
25619
|
function HumanMessageChunk(fields, /** @deprecated */ kwargs) {
|
|
25620
|
-
_class_call_check$
|
|
25620
|
+
_class_call_check$O(this, HumanMessageChunk);
|
|
25621
25621
|
return _super.call(this, fields, kwargs);
|
|
25622
25622
|
}
|
|
25623
|
-
_create_class$
|
|
25623
|
+
_create_class$H(HumanMessageChunk, [
|
|
25624
25624
|
{
|
|
25625
25625
|
key: "_getType",
|
|
25626
25626
|
value: function _getType() {
|
|
@@ -25656,12 +25656,12 @@ function _assert_this_initialized$y(self) {
|
|
|
25656
25656
|
}
|
|
25657
25657
|
return self;
|
|
25658
25658
|
}
|
|
25659
|
-
function _class_call_check$
|
|
25659
|
+
function _class_call_check$N(instance, Constructor) {
|
|
25660
25660
|
if (!(instance instanceof Constructor)) {
|
|
25661
25661
|
throw new TypeError("Cannot call a class as a function");
|
|
25662
25662
|
}
|
|
25663
25663
|
}
|
|
25664
|
-
function _defineProperties$
|
|
25664
|
+
function _defineProperties$G(target, props) {
|
|
25665
25665
|
for(var i = 0; i < props.length; i++){
|
|
25666
25666
|
var descriptor = props[i];
|
|
25667
25667
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25670,9 +25670,9 @@ function _defineProperties$H(target, props) {
|
|
|
25670
25670
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25671
25671
|
}
|
|
25672
25672
|
}
|
|
25673
|
-
function _create_class$
|
|
25674
|
-
if (protoProps) _defineProperties$
|
|
25675
|
-
if (staticProps) _defineProperties$
|
|
25673
|
+
function _create_class$G(Constructor, protoProps, staticProps) {
|
|
25674
|
+
if (protoProps) _defineProperties$G(Constructor.prototype, protoProps);
|
|
25675
|
+
if (staticProps) _defineProperties$G(Constructor, staticProps);
|
|
25676
25676
|
return Constructor;
|
|
25677
25677
|
}
|
|
25678
25678
|
function _get_prototype_of$y(o) {
|
|
@@ -25741,10 +25741,10 @@ function _create_super$y(Derived) {
|
|
|
25741
25741
|
_inherits$y(SystemMessage, BaseMessage);
|
|
25742
25742
|
var _super = _create_super$y(SystemMessage);
|
|
25743
25743
|
function SystemMessage(fields, /** @deprecated */ kwargs) {
|
|
25744
|
-
_class_call_check$
|
|
25744
|
+
_class_call_check$N(this, SystemMessage);
|
|
25745
25745
|
return _super.call(this, fields, kwargs);
|
|
25746
25746
|
}
|
|
25747
|
-
_create_class$
|
|
25747
|
+
_create_class$G(SystemMessage, [
|
|
25748
25748
|
{
|
|
25749
25749
|
key: "_getType",
|
|
25750
25750
|
value: function _getType() {
|
|
@@ -25768,10 +25768,10 @@ function _create_super$y(Derived) {
|
|
|
25768
25768
|
_inherits$y(SystemMessageChunk, BaseMessageChunk);
|
|
25769
25769
|
var _super = _create_super$y(SystemMessageChunk);
|
|
25770
25770
|
function SystemMessageChunk(fields, /** @deprecated */ kwargs) {
|
|
25771
|
-
_class_call_check$
|
|
25771
|
+
_class_call_check$N(this, SystemMessageChunk);
|
|
25772
25772
|
return _super.call(this, fields, kwargs);
|
|
25773
25773
|
}
|
|
25774
|
-
_create_class$
|
|
25774
|
+
_create_class$G(SystemMessageChunk, [
|
|
25775
25775
|
{
|
|
25776
25776
|
key: "_getType",
|
|
25777
25777
|
value: function _getType() {
|
|
@@ -25813,7 +25813,7 @@ function _assert_this_initialized$x(self) {
|
|
|
25813
25813
|
}
|
|
25814
25814
|
return self;
|
|
25815
25815
|
}
|
|
25816
|
-
function _class_call_check$
|
|
25816
|
+
function _class_call_check$M(instance, Constructor) {
|
|
25817
25817
|
if (!(instance instanceof Constructor)) {
|
|
25818
25818
|
throw new TypeError("Cannot call a class as a function");
|
|
25819
25819
|
}
|
|
@@ -25935,7 +25935,7 @@ function _isToolCall(toolCall) {
|
|
|
25935
25935
|
_inherits$x(ToolInputParsingException, Error1);
|
|
25936
25936
|
var _super = _create_super$x(ToolInputParsingException);
|
|
25937
25937
|
function ToolInputParsingException(message, output) {
|
|
25938
|
-
_class_call_check$
|
|
25938
|
+
_class_call_check$M(this, ToolInputParsingException);
|
|
25939
25939
|
var _this;
|
|
25940
25940
|
_this = _super.call(this, message);
|
|
25941
25941
|
Object.defineProperty(_assert_this_initialized$x(_this), "output", {
|
|
@@ -26501,7 +26501,7 @@ function _assert_this_initialized$w(self) {
|
|
|
26501
26501
|
}
|
|
26502
26502
|
return self;
|
|
26503
26503
|
}
|
|
26504
|
-
function _class_call_check$
|
|
26504
|
+
function _class_call_check$L(instance, Constructor) {
|
|
26505
26505
|
if (!(instance instanceof Constructor)) {
|
|
26506
26506
|
throw new TypeError("Cannot call a class as a function");
|
|
26507
26507
|
}
|
|
@@ -26523,7 +26523,7 @@ function _construct$7(Parent, args, Class) {
|
|
|
26523
26523
|
}
|
|
26524
26524
|
return _construct$7.apply(null, arguments);
|
|
26525
26525
|
}
|
|
26526
|
-
function _defineProperties$
|
|
26526
|
+
function _defineProperties$F(target, props) {
|
|
26527
26527
|
for(var i = 0; i < props.length; i++){
|
|
26528
26528
|
var descriptor = props[i];
|
|
26529
26529
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -26532,9 +26532,9 @@ function _defineProperties$G(target, props) {
|
|
|
26532
26532
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
26533
26533
|
}
|
|
26534
26534
|
}
|
|
26535
|
-
function _create_class$
|
|
26536
|
-
if (protoProps) _defineProperties$
|
|
26537
|
-
if (staticProps) _defineProperties$
|
|
26535
|
+
function _create_class$F(Constructor, protoProps, staticProps) {
|
|
26536
|
+
if (protoProps) _defineProperties$F(Constructor.prototype, protoProps);
|
|
26537
|
+
if (staticProps) _defineProperties$F(Constructor, staticProps);
|
|
26538
26538
|
return Constructor;
|
|
26539
26539
|
}
|
|
26540
26540
|
function _get_prototype_of$w(o) {
|
|
@@ -26672,7 +26672,7 @@ var ZodError = /*#__PURE__*/ function _target(Error1) {
|
|
|
26672
26672
|
_inherits$w(ZodError, Error1);
|
|
26673
26673
|
var _super = _create_super$w(ZodError);
|
|
26674
26674
|
function ZodError(issues) {
|
|
26675
|
-
_class_call_check$
|
|
26675
|
+
_class_call_check$L(this, ZodError);
|
|
26676
26676
|
var _this;
|
|
26677
26677
|
_this = _super.call(this);
|
|
26678
26678
|
_this.issues = [];
|
|
@@ -26696,7 +26696,7 @@ var ZodError = /*#__PURE__*/ function _target(Error1) {
|
|
|
26696
26696
|
_this.issues = issues;
|
|
26697
26697
|
return _this;
|
|
26698
26698
|
}
|
|
26699
|
-
_create_class$
|
|
26699
|
+
_create_class$F(ZodError, [
|
|
26700
26700
|
{
|
|
26701
26701
|
key: "errors",
|
|
26702
26702
|
get: function get() {
|
|
@@ -26988,12 +26988,12 @@ function _async_to_generator$B(fn) {
|
|
|
26988
26988
|
});
|
|
26989
26989
|
};
|
|
26990
26990
|
}
|
|
26991
|
-
function _class_call_check$
|
|
26991
|
+
function _class_call_check$K(instance, Constructor) {
|
|
26992
26992
|
if (!(instance instanceof Constructor)) {
|
|
26993
26993
|
throw new TypeError("Cannot call a class as a function");
|
|
26994
26994
|
}
|
|
26995
26995
|
}
|
|
26996
|
-
function _defineProperties$
|
|
26996
|
+
function _defineProperties$E(target, props) {
|
|
26997
26997
|
for(var i = 0; i < props.length; i++){
|
|
26998
26998
|
var descriptor = props[i];
|
|
26999
26999
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -27002,9 +27002,9 @@ function _defineProperties$F(target, props) {
|
|
|
27002
27002
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
27003
27003
|
}
|
|
27004
27004
|
}
|
|
27005
|
-
function _create_class$
|
|
27006
|
-
if (protoProps) _defineProperties$
|
|
27007
|
-
if (staticProps) _defineProperties$
|
|
27005
|
+
function _create_class$E(Constructor, protoProps, staticProps) {
|
|
27006
|
+
if (protoProps) _defineProperties$E(Constructor.prototype, protoProps);
|
|
27007
|
+
if (staticProps) _defineProperties$E(Constructor, staticProps);
|
|
27008
27008
|
return Constructor;
|
|
27009
27009
|
}
|
|
27010
27010
|
function _define_property$19(obj, key, value) {
|
|
@@ -27236,10 +27236,10 @@ function addIssueToContext(ctx, issueData) {
|
|
|
27236
27236
|
}
|
|
27237
27237
|
var ParseStatus = /*#__PURE__*/ function() {
|
|
27238
27238
|
function ParseStatus() {
|
|
27239
|
-
_class_call_check$
|
|
27239
|
+
_class_call_check$K(this, ParseStatus);
|
|
27240
27240
|
this.value = "valid";
|
|
27241
27241
|
}
|
|
27242
|
-
_create_class$
|
|
27242
|
+
_create_class$E(ParseStatus, [
|
|
27243
27243
|
{
|
|
27244
27244
|
key: "dirty",
|
|
27245
27245
|
value: function dirty() {
|
|
@@ -27497,12 +27497,12 @@ function _async_to_generator$A(fn) {
|
|
|
27497
27497
|
});
|
|
27498
27498
|
};
|
|
27499
27499
|
}
|
|
27500
|
-
function _class_call_check$
|
|
27500
|
+
function _class_call_check$J(instance, Constructor) {
|
|
27501
27501
|
if (!(instance instanceof Constructor)) {
|
|
27502
27502
|
throw new TypeError("Cannot call a class as a function");
|
|
27503
27503
|
}
|
|
27504
27504
|
}
|
|
27505
|
-
function _defineProperties$
|
|
27505
|
+
function _defineProperties$D(target, props) {
|
|
27506
27506
|
for(var i = 0; i < props.length; i++){
|
|
27507
27507
|
var descriptor = props[i];
|
|
27508
27508
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -27511,9 +27511,9 @@ function _defineProperties$E(target, props) {
|
|
|
27511
27511
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
27512
27512
|
}
|
|
27513
27513
|
}
|
|
27514
|
-
function _create_class$
|
|
27515
|
-
if (protoProps) _defineProperties$
|
|
27516
|
-
if (staticProps) _defineProperties$
|
|
27514
|
+
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
27515
|
+
if (protoProps) _defineProperties$D(Constructor.prototype, protoProps);
|
|
27516
|
+
if (staticProps) _defineProperties$D(Constructor, staticProps);
|
|
27517
27517
|
return Constructor;
|
|
27518
27518
|
}
|
|
27519
27519
|
function _define_property$18(obj, key, value) {
|
|
@@ -27774,14 +27774,14 @@ function _ts_generator$C(thisArg, body) {
|
|
|
27774
27774
|
}
|
|
27775
27775
|
var ParseInputLazyPath = /*#__PURE__*/ function() {
|
|
27776
27776
|
function ParseInputLazyPath(parent, value, path, key) {
|
|
27777
|
-
_class_call_check$
|
|
27777
|
+
_class_call_check$J(this, ParseInputLazyPath);
|
|
27778
27778
|
this._cachedPath = [];
|
|
27779
27779
|
this.parent = parent;
|
|
27780
27780
|
this.data = value;
|
|
27781
27781
|
this._path = path;
|
|
27782
27782
|
this._key = key;
|
|
27783
27783
|
}
|
|
27784
|
-
_create_class$
|
|
27784
|
+
_create_class$D(ParseInputLazyPath, [
|
|
27785
27785
|
{
|
|
27786
27786
|
key: "path",
|
|
27787
27787
|
get: function get() {
|
|
@@ -27862,7 +27862,7 @@ function processCreateParams(params) {
|
|
|
27862
27862
|
var ZodType = /*#__PURE__*/ function() {
|
|
27863
27863
|
function ZodType(def) {
|
|
27864
27864
|
var _this = this;
|
|
27865
|
-
_class_call_check$
|
|
27865
|
+
_class_call_check$J(this, ZodType);
|
|
27866
27866
|
/** Alias of safeParseAsync */ this.spa = this.safeParseAsync;
|
|
27867
27867
|
this._def = def;
|
|
27868
27868
|
this.parse = this.parse.bind(this);
|
|
@@ -27897,7 +27897,7 @@ var ZodType = /*#__PURE__*/ function() {
|
|
|
27897
27897
|
}
|
|
27898
27898
|
};
|
|
27899
27899
|
}
|
|
27900
|
-
_create_class$
|
|
27900
|
+
_create_class$D(ZodType, [
|
|
27901
27901
|
{
|
|
27902
27902
|
key: "description",
|
|
27903
27903
|
get: function get() {
|
|
@@ -28410,10 +28410,10 @@ var ZodString = /*#__PURE__*/ function(ZodType) {
|
|
|
28410
28410
|
_inherits$v(ZodString, ZodType);
|
|
28411
28411
|
var _super = _create_super$v(ZodString);
|
|
28412
28412
|
function ZodString() {
|
|
28413
|
-
_class_call_check$
|
|
28413
|
+
_class_call_check$J(this, ZodString);
|
|
28414
28414
|
return _super.apply(this, arguments);
|
|
28415
28415
|
}
|
|
28416
|
-
_create_class$
|
|
28416
|
+
_create_class$D(ZodString, [
|
|
28417
28417
|
{
|
|
28418
28418
|
key: "_parse",
|
|
28419
28419
|
value: function _parse(input) {
|
|
@@ -29235,7 +29235,7 @@ var ZodAny = /*#__PURE__*/ function(ZodType) {
|
|
|
29235
29235
|
_inherits$v(ZodAny, ZodType);
|
|
29236
29236
|
var _super = _create_super$v(ZodAny);
|
|
29237
29237
|
function ZodAny() {
|
|
29238
|
-
_class_call_check$
|
|
29238
|
+
_class_call_check$J(this, ZodAny);
|
|
29239
29239
|
var _this;
|
|
29240
29240
|
_this = _super.call.apply(_super, [
|
|
29241
29241
|
this
|
|
@@ -29244,7 +29244,7 @@ var ZodAny = /*#__PURE__*/ function(ZodType) {
|
|
|
29244
29244
|
_this._any = true;
|
|
29245
29245
|
return _this;
|
|
29246
29246
|
}
|
|
29247
|
-
_create_class$
|
|
29247
|
+
_create_class$D(ZodAny, [
|
|
29248
29248
|
{
|
|
29249
29249
|
key: "_parse",
|
|
29250
29250
|
value: function _parse(input) {
|
|
@@ -29263,10 +29263,10 @@ var ZodNever = /*#__PURE__*/ function(ZodType) {
|
|
|
29263
29263
|
_inherits$v(ZodNever, ZodType);
|
|
29264
29264
|
var _super = _create_super$v(ZodNever);
|
|
29265
29265
|
function ZodNever() {
|
|
29266
|
-
_class_call_check$
|
|
29266
|
+
_class_call_check$J(this, ZodNever);
|
|
29267
29267
|
return _super.apply(this, arguments);
|
|
29268
29268
|
}
|
|
29269
|
-
_create_class$
|
|
29269
|
+
_create_class$D(ZodNever, [
|
|
29270
29270
|
{
|
|
29271
29271
|
key: "_parse",
|
|
29272
29272
|
value: function _parse(input) {
|
|
@@ -29291,10 +29291,10 @@ var ZodArray = /*#__PURE__*/ function(ZodType) {
|
|
|
29291
29291
|
_inherits$v(ZodArray, ZodType);
|
|
29292
29292
|
var _super = _create_super$v(ZodArray);
|
|
29293
29293
|
function ZodArray() {
|
|
29294
|
-
_class_call_check$
|
|
29294
|
+
_class_call_check$J(this, ZodArray);
|
|
29295
29295
|
return _super.apply(this, arguments);
|
|
29296
29296
|
}
|
|
29297
|
-
_create_class$
|
|
29297
|
+
_create_class$D(ZodArray, [
|
|
29298
29298
|
{
|
|
29299
29299
|
key: "_parse",
|
|
29300
29300
|
value: function _parse(input) {
|
|
@@ -29452,7 +29452,7 @@ var ZodObject = /*#__PURE__*/ function(ZodType) {
|
|
|
29452
29452
|
_inherits$v(ZodObject, ZodType);
|
|
29453
29453
|
var _super = _create_super$v(ZodObject);
|
|
29454
29454
|
function ZodObject() {
|
|
29455
|
-
_class_call_check$
|
|
29455
|
+
_class_call_check$J(this, ZodObject);
|
|
29456
29456
|
var _this;
|
|
29457
29457
|
_this = _super.call.apply(_super, [
|
|
29458
29458
|
this
|
|
@@ -29500,7 +29500,7 @@ var ZodObject = /*#__PURE__*/ function(ZodType) {
|
|
|
29500
29500
|
* */ _this.augment = _this.extend;
|
|
29501
29501
|
return _this;
|
|
29502
29502
|
}
|
|
29503
|
-
_create_class$
|
|
29503
|
+
_create_class$D(ZodObject, [
|
|
29504
29504
|
{
|
|
29505
29505
|
key: "_getCached",
|
|
29506
29506
|
value: function _getCached() {
|
|
@@ -30085,10 +30085,10 @@ var ZodUnion = /*#__PURE__*/ function(ZodType) {
|
|
|
30085
30085
|
_inherits$v(ZodUnion, ZodType);
|
|
30086
30086
|
var _super = _create_super$v(ZodUnion);
|
|
30087
30087
|
function ZodUnion() {
|
|
30088
|
-
_class_call_check$
|
|
30088
|
+
_class_call_check$J(this, ZodUnion);
|
|
30089
30089
|
return _super.apply(this, arguments);
|
|
30090
30090
|
}
|
|
30091
|
-
_create_class$
|
|
30091
|
+
_create_class$D(ZodUnion, [
|
|
30092
30092
|
{
|
|
30093
30093
|
key: "_parse",
|
|
30094
30094
|
value: function _parse(input) {
|
|
@@ -30343,10 +30343,10 @@ var ZodIntersection = /*#__PURE__*/ function(ZodType) {
|
|
|
30343
30343
|
_inherits$v(ZodIntersection, ZodType);
|
|
30344
30344
|
var _super = _create_super$v(ZodIntersection);
|
|
30345
30345
|
function ZodIntersection() {
|
|
30346
|
-
_class_call_check$
|
|
30346
|
+
_class_call_check$J(this, ZodIntersection);
|
|
30347
30347
|
return _super.apply(this, arguments);
|
|
30348
30348
|
}
|
|
30349
|
-
_create_class$
|
|
30349
|
+
_create_class$D(ZodIntersection, [
|
|
30350
30350
|
{
|
|
30351
30351
|
key: "_parse",
|
|
30352
30352
|
value: function _parse(input) {
|
|
@@ -30414,10 +30414,10 @@ var ZodTuple = /*#__PURE__*/ function(ZodType) {
|
|
|
30414
30414
|
_inherits$v(ZodTuple, ZodType);
|
|
30415
30415
|
var _super = _create_super$v(ZodTuple);
|
|
30416
30416
|
function ZodTuple() {
|
|
30417
|
-
_class_call_check$
|
|
30417
|
+
_class_call_check$J(this, ZodTuple);
|
|
30418
30418
|
return _super.apply(this, arguments);
|
|
30419
30419
|
}
|
|
30420
|
-
_create_class$
|
|
30420
|
+
_create_class$D(ZodTuple, [
|
|
30421
30421
|
{
|
|
30422
30422
|
key: "_parse",
|
|
30423
30423
|
value: function _parse(input) {
|
|
@@ -30505,10 +30505,10 @@ var ZodEnum = /*#__PURE__*/ function(ZodType) {
|
|
|
30505
30505
|
_inherits$v(ZodEnum, ZodType);
|
|
30506
30506
|
var _super = _create_super$v(ZodEnum);
|
|
30507
30507
|
function ZodEnum() {
|
|
30508
|
-
_class_call_check$
|
|
30508
|
+
_class_call_check$J(this, ZodEnum);
|
|
30509
30509
|
return _super.apply(this, arguments);
|
|
30510
30510
|
}
|
|
30511
|
-
_create_class$
|
|
30511
|
+
_create_class$D(ZodEnum, [
|
|
30512
30512
|
{
|
|
30513
30513
|
key: "_parse",
|
|
30514
30514
|
value: function _parse(input) {
|
|
@@ -30649,10 +30649,10 @@ var ZodPromise = /*#__PURE__*/ function(ZodType) {
|
|
|
30649
30649
|
_inherits$v(ZodPromise, ZodType);
|
|
30650
30650
|
var _super = _create_super$v(ZodPromise);
|
|
30651
30651
|
function ZodPromise() {
|
|
30652
|
-
_class_call_check$
|
|
30652
|
+
_class_call_check$J(this, ZodPromise);
|
|
30653
30653
|
return _super.apply(this, arguments);
|
|
30654
30654
|
}
|
|
30655
|
-
_create_class$
|
|
30655
|
+
_create_class$D(ZodPromise, [
|
|
30656
30656
|
{
|
|
30657
30657
|
key: "unwrap",
|
|
30658
30658
|
value: function unwrap() {
|
|
@@ -30694,10 +30694,10 @@ var ZodEffects = /*#__PURE__*/ function(ZodType) {
|
|
|
30694
30694
|
_inherits$v(ZodEffects, ZodType);
|
|
30695
30695
|
var _super = _create_super$v(ZodEffects);
|
|
30696
30696
|
function ZodEffects() {
|
|
30697
|
-
_class_call_check$
|
|
30697
|
+
_class_call_check$J(this, ZodEffects);
|
|
30698
30698
|
return _super.apply(this, arguments);
|
|
30699
30699
|
}
|
|
30700
|
-
_create_class$
|
|
30700
|
+
_create_class$D(ZodEffects, [
|
|
30701
30701
|
{
|
|
30702
30702
|
key: "innerType",
|
|
30703
30703
|
value: function innerType() {
|
|
@@ -30890,10 +30890,10 @@ var ZodOptional = /*#__PURE__*/ function(ZodType) {
|
|
|
30890
30890
|
_inherits$v(ZodOptional, ZodType);
|
|
30891
30891
|
var _super = _create_super$v(ZodOptional);
|
|
30892
30892
|
function ZodOptional() {
|
|
30893
|
-
_class_call_check$
|
|
30893
|
+
_class_call_check$J(this, ZodOptional);
|
|
30894
30894
|
return _super.apply(this, arguments);
|
|
30895
30895
|
}
|
|
30896
|
-
_create_class$
|
|
30896
|
+
_create_class$D(ZodOptional, [
|
|
30897
30897
|
{
|
|
30898
30898
|
key: "_parse",
|
|
30899
30899
|
value: function _parse(input) {
|
|
@@ -30923,10 +30923,10 @@ var ZodNullable = /*#__PURE__*/ function(ZodType) {
|
|
|
30923
30923
|
_inherits$v(ZodNullable, ZodType);
|
|
30924
30924
|
var _super = _create_super$v(ZodNullable);
|
|
30925
30925
|
function ZodNullable() {
|
|
30926
|
-
_class_call_check$
|
|
30926
|
+
_class_call_check$J(this, ZodNullable);
|
|
30927
30927
|
return _super.apply(this, arguments);
|
|
30928
30928
|
}
|
|
30929
|
-
_create_class$
|
|
30929
|
+
_create_class$D(ZodNullable, [
|
|
30930
30930
|
{
|
|
30931
30931
|
key: "_parse",
|
|
30932
30932
|
value: function _parse(input) {
|
|
@@ -30956,10 +30956,10 @@ var ZodDefault = /*#__PURE__*/ function(ZodType) {
|
|
|
30956
30956
|
_inherits$v(ZodDefault, ZodType);
|
|
30957
30957
|
var _super = _create_super$v(ZodDefault);
|
|
30958
30958
|
function ZodDefault() {
|
|
30959
|
-
_class_call_check$
|
|
30959
|
+
_class_call_check$J(this, ZodDefault);
|
|
30960
30960
|
return _super.apply(this, arguments);
|
|
30961
30961
|
}
|
|
30962
|
-
_create_class$
|
|
30962
|
+
_create_class$D(ZodDefault, [
|
|
30963
30963
|
{
|
|
30964
30964
|
key: "_parse",
|
|
30965
30965
|
value: function _parse(input) {
|
|
@@ -30997,10 +30997,10 @@ var ZodCatch = /*#__PURE__*/ function(ZodType) {
|
|
|
30997
30997
|
_inherits$v(ZodCatch, ZodType);
|
|
30998
30998
|
var _super = _create_super$v(ZodCatch);
|
|
30999
30999
|
function ZodCatch() {
|
|
31000
|
-
_class_call_check$
|
|
31000
|
+
_class_call_check$J(this, ZodCatch);
|
|
31001
31001
|
return _super.apply(this, arguments);
|
|
31002
31002
|
}
|
|
31003
|
-
_create_class$
|
|
31003
|
+
_create_class$D(ZodCatch, [
|
|
31004
31004
|
{
|
|
31005
31005
|
key: "_parse",
|
|
31006
31006
|
value: function _parse(input) {
|
|
@@ -31064,10 +31064,10 @@ var ZodBranded = /*#__PURE__*/ function(ZodType) {
|
|
|
31064
31064
|
_inherits$v(ZodBranded, ZodType);
|
|
31065
31065
|
var _super = _create_super$v(ZodBranded);
|
|
31066
31066
|
function ZodBranded() {
|
|
31067
|
-
_class_call_check$
|
|
31067
|
+
_class_call_check$J(this, ZodBranded);
|
|
31068
31068
|
return _super.apply(this, arguments);
|
|
31069
31069
|
}
|
|
31070
|
-
_create_class$
|
|
31070
|
+
_create_class$D(ZodBranded, [
|
|
31071
31071
|
{
|
|
31072
31072
|
key: "_parse",
|
|
31073
31073
|
value: function _parse(input) {
|
|
@@ -31093,10 +31093,10 @@ var ZodPipeline = /*#__PURE__*/ function(ZodType) {
|
|
|
31093
31093
|
_inherits$v(ZodPipeline, ZodType);
|
|
31094
31094
|
var _super = _create_super$v(ZodPipeline);
|
|
31095
31095
|
function ZodPipeline() {
|
|
31096
|
-
_class_call_check$
|
|
31096
|
+
_class_call_check$J(this, ZodPipeline);
|
|
31097
31097
|
return _super.apply(this, arguments);
|
|
31098
31098
|
}
|
|
31099
|
-
_create_class$
|
|
31099
|
+
_create_class$D(ZodPipeline, [
|
|
31100
31100
|
{
|
|
31101
31101
|
key: "_parse",
|
|
31102
31102
|
value: function _parse(input) {
|
|
@@ -31188,10 +31188,10 @@ var ZodReadonly = /*#__PURE__*/ function(ZodType) {
|
|
|
31188
31188
|
_inherits$v(ZodReadonly, ZodType);
|
|
31189
31189
|
var _super = _create_super$v(ZodReadonly);
|
|
31190
31190
|
function ZodReadonly() {
|
|
31191
|
-
_class_call_check$
|
|
31191
|
+
_class_call_check$J(this, ZodReadonly);
|
|
31192
31192
|
return _super.apply(this, arguments);
|
|
31193
31193
|
}
|
|
31194
|
-
_create_class$
|
|
31194
|
+
_create_class$D(ZodReadonly, [
|
|
31195
31195
|
{
|
|
31196
31196
|
key: "_parse",
|
|
31197
31197
|
value: function _parse(input) {
|
|
@@ -31549,7 +31549,7 @@ function _async_to_generator$z(fn) {
|
|
|
31549
31549
|
});
|
|
31550
31550
|
};
|
|
31551
31551
|
}
|
|
31552
|
-
function _class_call_check$
|
|
31552
|
+
function _class_call_check$I(instance, Constructor) {
|
|
31553
31553
|
if (!(instance instanceof Constructor)) {
|
|
31554
31554
|
throw new TypeError("Cannot call a class as a function");
|
|
31555
31555
|
}
|
|
@@ -31801,7 +31801,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
31801
31801
|
_inherits$u(AbortError, Error1);
|
|
31802
31802
|
var _super = _create_super$u(AbortError);
|
|
31803
31803
|
function AbortError(message) {
|
|
31804
|
-
_class_call_check$
|
|
31804
|
+
_class_call_check$I(this, AbortError);
|
|
31805
31805
|
var _this;
|
|
31806
31806
|
_this = _super.call(this);
|
|
31807
31807
|
if (_instanceof$f(message, Error)) {
|
|
@@ -32504,7 +32504,7 @@ function _assert_this_initialized$t(self) {
|
|
|
32504
32504
|
}
|
|
32505
32505
|
return self;
|
|
32506
32506
|
}
|
|
32507
|
-
function _class_call_check$
|
|
32507
|
+
function _class_call_check$H(instance, Constructor) {
|
|
32508
32508
|
if (!(instance instanceof Constructor)) {
|
|
32509
32509
|
throw new TypeError("Cannot call a class as a function");
|
|
32510
32510
|
}
|
|
@@ -32627,7 +32627,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
32627
32627
|
_inherits$t(TimeoutError, Error1);
|
|
32628
32628
|
var _super = _create_super$t(TimeoutError);
|
|
32629
32629
|
function TimeoutError(message) {
|
|
32630
|
-
_class_call_check$
|
|
32630
|
+
_class_call_check$H(this, TimeoutError);
|
|
32631
32631
|
var _this;
|
|
32632
32632
|
_this = _super.call(this, message);
|
|
32633
32633
|
_this.name = 'TimeoutError';
|
|
@@ -32700,12 +32700,12 @@ function lowerBound(array, value, comparator) {
|
|
|
32700
32700
|
}
|
|
32701
32701
|
lowerBound$1.default = lowerBound;
|
|
32702
32702
|
|
|
32703
|
-
function _class_call_check$
|
|
32703
|
+
function _class_call_check$G(instance, Constructor) {
|
|
32704
32704
|
if (!(instance instanceof Constructor)) {
|
|
32705
32705
|
throw new TypeError("Cannot call a class as a function");
|
|
32706
32706
|
}
|
|
32707
32707
|
}
|
|
32708
|
-
function _defineProperties$
|
|
32708
|
+
function _defineProperties$C(target, props) {
|
|
32709
32709
|
for(var i = 0; i < props.length; i++){
|
|
32710
32710
|
var descriptor = props[i];
|
|
32711
32711
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -32714,8 +32714,8 @@ function _defineProperties$D(target, props) {
|
|
|
32714
32714
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32715
32715
|
}
|
|
32716
32716
|
}
|
|
32717
|
-
function _create_class$
|
|
32718
|
-
if (protoProps) _defineProperties$
|
|
32717
|
+
function _create_class$C(Constructor, protoProps, staticProps) {
|
|
32718
|
+
if (protoProps) _defineProperties$C(Constructor.prototype, protoProps);
|
|
32719
32719
|
return Constructor;
|
|
32720
32720
|
}
|
|
32721
32721
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -32724,10 +32724,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
32724
32724
|
var lower_bound_1 = lowerBound$1;
|
|
32725
32725
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
32726
32726
|
function PriorityQueue() {
|
|
32727
|
-
_class_call_check$
|
|
32727
|
+
_class_call_check$G(this, PriorityQueue);
|
|
32728
32728
|
this._queue = [];
|
|
32729
32729
|
}
|
|
32730
|
-
_create_class$
|
|
32730
|
+
_create_class$C(PriorityQueue, [
|
|
32731
32731
|
{
|
|
32732
32732
|
key: "enqueue",
|
|
32733
32733
|
value: function enqueue(run, options) {
|
|
@@ -32811,12 +32811,12 @@ function _async_to_generator$y(fn) {
|
|
|
32811
32811
|
});
|
|
32812
32812
|
};
|
|
32813
32813
|
}
|
|
32814
|
-
function _class_call_check$
|
|
32814
|
+
function _class_call_check$F(instance, Constructor) {
|
|
32815
32815
|
if (!(instance instanceof Constructor)) {
|
|
32816
32816
|
throw new TypeError("Cannot call a class as a function");
|
|
32817
32817
|
}
|
|
32818
32818
|
}
|
|
32819
|
-
function _defineProperties$
|
|
32819
|
+
function _defineProperties$B(target, props) {
|
|
32820
32820
|
for(var i = 0; i < props.length; i++){
|
|
32821
32821
|
var descriptor = props[i];
|
|
32822
32822
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -32825,8 +32825,8 @@ function _defineProperties$C(target, props) {
|
|
|
32825
32825
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32826
32826
|
}
|
|
32827
32827
|
}
|
|
32828
|
-
function _create_class$
|
|
32829
|
-
if (protoProps) _defineProperties$
|
|
32828
|
+
function _create_class$B(Constructor, protoProps, staticProps) {
|
|
32829
|
+
if (protoProps) _defineProperties$B(Constructor.prototype, protoProps);
|
|
32830
32830
|
return Constructor;
|
|
32831
32831
|
}
|
|
32832
32832
|
function _get_prototype_of$s(o) {
|
|
@@ -32999,7 +32999,7 @@ Promise queue with concurrency control.
|
|
|
32999
32999
|
_inherits$s(PQueue, EventEmitter);
|
|
33000
33000
|
var _super = _create_super$s(PQueue);
|
|
33001
33001
|
function PQueue(options) {
|
|
33002
|
-
_class_call_check$
|
|
33002
|
+
_class_call_check$F(this, PQueue);
|
|
33003
33003
|
var _this;
|
|
33004
33004
|
var _a, _b, _c, _d;
|
|
33005
33005
|
_this = _super.call(this);
|
|
@@ -33035,7 +33035,7 @@ Promise queue with concurrency control.
|
|
|
33035
33035
|
_this._isPaused = options.autoStart === false;
|
|
33036
33036
|
return _this;
|
|
33037
33037
|
}
|
|
33038
|
-
_create_class$
|
|
33038
|
+
_create_class$B(PQueue, [
|
|
33039
33039
|
{
|
|
33040
33040
|
key: "_doesIntervalAllowAnother",
|
|
33041
33041
|
get: function get() {
|
|
@@ -33979,12 +33979,12 @@ function _async_to_generator$w(fn) {
|
|
|
33979
33979
|
});
|
|
33980
33980
|
};
|
|
33981
33981
|
}
|
|
33982
|
-
function _class_call_check$
|
|
33982
|
+
function _class_call_check$E(instance, Constructor) {
|
|
33983
33983
|
if (!(instance instanceof Constructor)) {
|
|
33984
33984
|
throw new TypeError("Cannot call a class as a function");
|
|
33985
33985
|
}
|
|
33986
33986
|
}
|
|
33987
|
-
function _defineProperties$
|
|
33987
|
+
function _defineProperties$A(target, props) {
|
|
33988
33988
|
for(var i = 0; i < props.length; i++){
|
|
33989
33989
|
var descriptor = props[i];
|
|
33990
33990
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -33993,8 +33993,8 @@ function _defineProperties$B(target, props) {
|
|
|
33993
33993
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
33994
33994
|
}
|
|
33995
33995
|
}
|
|
33996
|
-
function _create_class$
|
|
33997
|
-
if (protoProps) _defineProperties$
|
|
33996
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
33997
|
+
if (protoProps) _defineProperties$A(Constructor.prototype, protoProps);
|
|
33998
33998
|
return Constructor;
|
|
33999
33999
|
}
|
|
34000
34000
|
function _instanceof$d(left, right) {
|
|
@@ -34143,7 +34143,7 @@ var STATUS_IGNORE = [
|
|
|
34143
34143
|
* exponential backoff between each attempt.
|
|
34144
34144
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
34145
34145
|
function AsyncCaller(params) {
|
|
34146
|
-
_class_call_check$
|
|
34146
|
+
_class_call_check$E(this, AsyncCaller);
|
|
34147
34147
|
Object.defineProperty(this, "maxConcurrency", {
|
|
34148
34148
|
enumerable: true,
|
|
34149
34149
|
configurable: true,
|
|
@@ -34192,7 +34192,7 @@ var STATUS_IGNORE = [
|
|
|
34192
34192
|
}
|
|
34193
34193
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
34194
34194
|
}
|
|
34195
|
-
_create_class$
|
|
34195
|
+
_create_class$A(AsyncCaller, [
|
|
34196
34196
|
{
|
|
34197
34197
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34198
34198
|
key: "call",
|
|
@@ -34698,12 +34698,12 @@ var identifiers$1 = {
|
|
|
34698
34698
|
rcompareIdentifiers: rcompareIdentifiers
|
|
34699
34699
|
};
|
|
34700
34700
|
|
|
34701
|
-
function _class_call_check$
|
|
34701
|
+
function _class_call_check$D(instance, Constructor) {
|
|
34702
34702
|
if (!(instance instanceof Constructor)) {
|
|
34703
34703
|
throw new TypeError("Cannot call a class as a function");
|
|
34704
34704
|
}
|
|
34705
34705
|
}
|
|
34706
|
-
function _defineProperties$
|
|
34706
|
+
function _defineProperties$z(target, props) {
|
|
34707
34707
|
for(var i = 0; i < props.length; i++){
|
|
34708
34708
|
var descriptor = props[i];
|
|
34709
34709
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -34712,8 +34712,8 @@ function _defineProperties$A(target, props) {
|
|
|
34712
34712
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34713
34713
|
}
|
|
34714
34714
|
}
|
|
34715
|
-
function _create_class$
|
|
34716
|
-
if (protoProps) _defineProperties$
|
|
34715
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
34716
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
34717
34717
|
return Constructor;
|
|
34718
34718
|
}
|
|
34719
34719
|
function _instanceof$c(left, right) {
|
|
@@ -34734,7 +34734,7 @@ var parseOptions = parseOptions_1;
|
|
|
34734
34734
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
34735
34735
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
34736
34736
|
function SemVer(version, options) {
|
|
34737
|
-
_class_call_check$
|
|
34737
|
+
_class_call_check$D(this, SemVer);
|
|
34738
34738
|
options = parseOptions(options);
|
|
34739
34739
|
if (_instanceof$c(version, SemVer)) {
|
|
34740
34740
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -34789,7 +34789,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
34789
34789
|
this.build = m[5] ? m[5].split('.') : [];
|
|
34790
34790
|
this.format();
|
|
34791
34791
|
}
|
|
34792
|
-
_create_class$
|
|
34792
|
+
_create_class$z(SemVer, [
|
|
34793
34793
|
{
|
|
34794
34794
|
key: "format",
|
|
34795
34795
|
value: function format() {
|
|
@@ -35129,70 +35129,78 @@ var cmp_1 = cmp;
|
|
|
35129
35129
|
|
|
35130
35130
|
var _require = reExports; _require.safeRe; _require.t;
|
|
35131
35131
|
|
|
35132
|
-
|
|
35133
|
-
|
|
35134
|
-
|
|
35135
|
-
|
|
35136
|
-
|
|
35137
|
-
|
|
35138
|
-
|
|
35139
|
-
|
|
35140
|
-
|
|
35141
|
-
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35145
|
-
|
|
35146
|
-
|
|
35147
|
-
|
|
35148
|
-
|
|
35132
|
+
var lrucache;
|
|
35133
|
+
var hasRequiredLrucache;
|
|
35134
|
+
|
|
35135
|
+
function requireLrucache () {
|
|
35136
|
+
if (hasRequiredLrucache) return lrucache;
|
|
35137
|
+
hasRequiredLrucache = 1;
|
|
35138
|
+
function _class_call_check(instance, Constructor) {
|
|
35139
|
+
if (!(instance instanceof Constructor)) {
|
|
35140
|
+
throw new TypeError("Cannot call a class as a function");
|
|
35141
|
+
}
|
|
35142
|
+
}
|
|
35143
|
+
function _defineProperties(target, props) {
|
|
35144
|
+
for(var i = 0; i < props.length; i++){
|
|
35145
|
+
var descriptor = props[i];
|
|
35146
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
35147
|
+
descriptor.configurable = true;
|
|
35148
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
35149
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35150
|
+
}
|
|
35151
|
+
}
|
|
35152
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
35153
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
35154
|
+
return Constructor;
|
|
35155
|
+
}
|
|
35156
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
35157
|
+
function LRUCache() {
|
|
35158
|
+
_class_call_check(this, LRUCache);
|
|
35159
|
+
this.max = 1000;
|
|
35160
|
+
this.map = new Map();
|
|
35161
|
+
}
|
|
35162
|
+
_create_class(LRUCache, [
|
|
35163
|
+
{
|
|
35164
|
+
key: "get",
|
|
35165
|
+
value: function get(key) {
|
|
35166
|
+
var value = this.map.get(key);
|
|
35167
|
+
if (value === undefined) {
|
|
35168
|
+
return undefined;
|
|
35169
|
+
} else {
|
|
35170
|
+
// Remove the key from the map and add it to the end
|
|
35171
|
+
this.map.delete(key);
|
|
35172
|
+
this.map.set(key, value);
|
|
35173
|
+
return value;
|
|
35174
|
+
}
|
|
35175
|
+
}
|
|
35176
|
+
},
|
|
35177
|
+
{
|
|
35178
|
+
key: "delete",
|
|
35179
|
+
value: function _delete(key) {
|
|
35180
|
+
return this.map.delete(key);
|
|
35181
|
+
}
|
|
35182
|
+
},
|
|
35183
|
+
{
|
|
35184
|
+
key: "set",
|
|
35185
|
+
value: function set(key, value) {
|
|
35186
|
+
var deleted = this.delete(key);
|
|
35187
|
+
if (!deleted && value !== undefined) {
|
|
35188
|
+
// If cache is full, delete the least recently used item
|
|
35189
|
+
if (this.map.size >= this.max) {
|
|
35190
|
+
var firstKey = this.map.keys().next().value;
|
|
35191
|
+
this.delete(firstKey);
|
|
35192
|
+
}
|
|
35193
|
+
this.map.set(key, value);
|
|
35194
|
+
}
|
|
35195
|
+
return this;
|
|
35196
|
+
}
|
|
35197
|
+
}
|
|
35198
|
+
]);
|
|
35199
|
+
return LRUCache;
|
|
35200
|
+
}();
|
|
35201
|
+
lrucache = LRUCache;
|
|
35202
|
+
return lrucache;
|
|
35149
35203
|
}
|
|
35150
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
35151
|
-
function LRUCache() {
|
|
35152
|
-
_class_call_check$D(this, LRUCache);
|
|
35153
|
-
this.max = 1000;
|
|
35154
|
-
this.map = new Map();
|
|
35155
|
-
}
|
|
35156
|
-
_create_class$z(LRUCache, [
|
|
35157
|
-
{
|
|
35158
|
-
key: "get",
|
|
35159
|
-
value: function get(key) {
|
|
35160
|
-
var value = this.map.get(key);
|
|
35161
|
-
if (value === undefined) {
|
|
35162
|
-
return undefined;
|
|
35163
|
-
} else {
|
|
35164
|
-
// Remove the key from the map and add it to the end
|
|
35165
|
-
this.map.delete(key);
|
|
35166
|
-
this.map.set(key, value);
|
|
35167
|
-
return value;
|
|
35168
|
-
}
|
|
35169
|
-
}
|
|
35170
|
-
},
|
|
35171
|
-
{
|
|
35172
|
-
key: "delete",
|
|
35173
|
-
value: function _delete(key) {
|
|
35174
|
-
return this.map.delete(key);
|
|
35175
|
-
}
|
|
35176
|
-
},
|
|
35177
|
-
{
|
|
35178
|
-
key: "set",
|
|
35179
|
-
value: function set(key, value) {
|
|
35180
|
-
var deleted = this.delete(key);
|
|
35181
|
-
if (!deleted && value !== undefined) {
|
|
35182
|
-
// If cache is full, delete the least recently used item
|
|
35183
|
-
if (this.map.size >= this.max) {
|
|
35184
|
-
var firstKey = this.map.keys().next().value;
|
|
35185
|
-
this.delete(firstKey);
|
|
35186
|
-
}
|
|
35187
|
-
this.map.set(key, value);
|
|
35188
|
-
}
|
|
35189
|
-
return this;
|
|
35190
|
-
}
|
|
35191
|
-
}
|
|
35192
|
-
]);
|
|
35193
|
-
return LRUCache;
|
|
35194
|
-
}();
|
|
35195
|
-
var lrucache = LRUCache;
|
|
35196
35204
|
|
|
35197
35205
|
var range;
|
|
35198
35206
|
var hasRequiredRange;
|
|
@@ -35496,7 +35504,7 @@ function requireRange () {
|
|
|
35496
35504
|
return Range;
|
|
35497
35505
|
}();
|
|
35498
35506
|
range = Range;
|
|
35499
|
-
var LRU =
|
|
35507
|
+
var LRU = requireLrucache();
|
|
35500
35508
|
var cache = new LRU();
|
|
35501
35509
|
var parseOptions = parseOptions_1;
|
|
35502
35510
|
var Comparator = requireComparator();
|