@digipair/skill-openai 0.114.1 → 0.114.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +5 -91566
- package/dist/index.esm.js +646 -654
- package/package.json +4 -2
package/dist/index.esm.js
CHANGED
|
@@ -398,12 +398,12 @@ function setShims(shims) {
|
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
400
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
401
|
-
*/ function _class_call_check$
|
|
401
|
+
*/ function _class_call_check$1Z(instance, Constructor) {
|
|
402
402
|
if (!(instance instanceof Constructor)) {
|
|
403
403
|
throw new TypeError("Cannot call a class as a function");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function _defineProperties$
|
|
406
|
+
function _defineProperties$1E(target, props) {
|
|
407
407
|
for(var i = 0; i < props.length; i++){
|
|
408
408
|
var descriptor = props[i];
|
|
409
409
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -412,16 +412,16 @@ function _defineProperties$1D(target, props) {
|
|
|
412
412
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function _create_class$
|
|
416
|
-
if (protoProps) _defineProperties$
|
|
415
|
+
function _create_class$1E(Constructor, protoProps, staticProps) {
|
|
416
|
+
if (protoProps) _defineProperties$1E(Constructor.prototype, protoProps);
|
|
417
417
|
return Constructor;
|
|
418
418
|
}
|
|
419
419
|
var MultipartBody = /*#__PURE__*/ function() {
|
|
420
420
|
function MultipartBody(body) {
|
|
421
|
-
_class_call_check$
|
|
421
|
+
_class_call_check$1Z(this, MultipartBody);
|
|
422
422
|
this.body = body;
|
|
423
423
|
}
|
|
424
|
-
_create_class$
|
|
424
|
+
_create_class$1E(MultipartBody, [
|
|
425
425
|
{
|
|
426
426
|
key: Symbol.toStringTag,
|
|
427
427
|
get: function get() {
|
|
@@ -462,7 +462,7 @@ function _async_to_generator$S(fn) {
|
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function _class_call_check$
|
|
465
|
+
function _class_call_check$1Y(instance, Constructor) {
|
|
466
466
|
if (!(instance instanceof Constructor)) {
|
|
467
467
|
throw new TypeError("Cannot call a class as a function");
|
|
468
468
|
}
|
|
@@ -633,21 +633,21 @@ function getRuntime() {
|
|
|
633
633
|
Headers: _Headers,
|
|
634
634
|
FormData: // @ts-ignore
|
|
635
635
|
typeof FormData !== 'undefined' ? FormData : function FormData1() {
|
|
636
|
-
_class_call_check$
|
|
636
|
+
_class_call_check$1Y(this, FormData1);
|
|
637
637
|
throw new Error("file uploads aren't supported in this environment yet as 'FormData' is undefined. ".concat(recommendation));
|
|
638
638
|
},
|
|
639
639
|
Blob: typeof Blob !== 'undefined' ? Blob : function Blob1() {
|
|
640
|
-
_class_call_check$
|
|
640
|
+
_class_call_check$1Y(this, Blob1);
|
|
641
641
|
throw new Error("file uploads aren't supported in this environment yet as 'Blob' is undefined. ".concat(recommendation));
|
|
642
642
|
},
|
|
643
643
|
File: // @ts-ignore
|
|
644
644
|
typeof File !== 'undefined' ? File : function File1() {
|
|
645
|
-
_class_call_check$
|
|
645
|
+
_class_call_check$1Y(this, File1);
|
|
646
646
|
throw new Error("file uploads aren't supported in this environment yet as 'File' is undefined. ".concat(recommendation));
|
|
647
647
|
},
|
|
648
648
|
ReadableStream: // @ts-ignore
|
|
649
649
|
typeof ReadableStream !== 'undefined' ? ReadableStream : function ReadableStream1() {
|
|
650
|
-
_class_call_check$
|
|
650
|
+
_class_call_check$1Y(this, ReadableStream1);
|
|
651
651
|
throw new Error("streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ".concat(recommendation));
|
|
652
652
|
},
|
|
653
653
|
getMultipartRequestOptions: function() {
|
|
@@ -692,7 +692,7 @@ function _assert_this_initialized$1A(self) {
|
|
|
692
692
|
}
|
|
693
693
|
return self;
|
|
694
694
|
}
|
|
695
|
-
function _class_call_check$
|
|
695
|
+
function _class_call_check$1X(instance, Constructor) {
|
|
696
696
|
if (!(instance instanceof Constructor)) {
|
|
697
697
|
throw new TypeError("Cannot call a class as a function");
|
|
698
698
|
}
|
|
@@ -714,7 +714,7 @@ function _construct$b(Parent, args, Class) {
|
|
|
714
714
|
}
|
|
715
715
|
return _construct$b.apply(null, arguments);
|
|
716
716
|
}
|
|
717
|
-
function _defineProperties$
|
|
717
|
+
function _defineProperties$1D(target, props) {
|
|
718
718
|
for(var i = 0; i < props.length; i++){
|
|
719
719
|
var descriptor = props[i];
|
|
720
720
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -723,8 +723,8 @@ function _defineProperties$1C(target, props) {
|
|
|
723
723
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
function _create_class$
|
|
727
|
-
if (staticProps) _defineProperties$
|
|
726
|
+
function _create_class$1D(Constructor, protoProps, staticProps) {
|
|
727
|
+
if (staticProps) _defineProperties$1D(Constructor, staticProps);
|
|
728
728
|
return Constructor;
|
|
729
729
|
}
|
|
730
730
|
function _get_prototype_of$1A(o) {
|
|
@@ -820,7 +820,7 @@ var OpenAIError = /*#__PURE__*/ function(Error1) {
|
|
|
820
820
|
_inherits$1A(OpenAIError, Error1);
|
|
821
821
|
var _super = _create_super$1A(OpenAIError);
|
|
822
822
|
function OpenAIError() {
|
|
823
|
-
_class_call_check$
|
|
823
|
+
_class_call_check$1X(this, OpenAIError);
|
|
824
824
|
return _super.apply(this, arguments);
|
|
825
825
|
}
|
|
826
826
|
return OpenAIError;
|
|
@@ -829,7 +829,7 @@ var APIError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
829
829
|
_inherits$1A(APIError, OpenAIError);
|
|
830
830
|
var _super = _create_super$1A(APIError);
|
|
831
831
|
function APIError(status, error, message, headers) {
|
|
832
|
-
_class_call_check$
|
|
832
|
+
_class_call_check$1X(this, APIError);
|
|
833
833
|
var _this;
|
|
834
834
|
_this = _super.call(this, "".concat(APIError.makeMessage(status, error, message)));
|
|
835
835
|
_this.status = status;
|
|
@@ -842,7 +842,7 @@ var APIError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
842
842
|
_this.type = data === null || data === void 0 ? void 0 : data['type'];
|
|
843
843
|
return _this;
|
|
844
844
|
}
|
|
845
|
-
_create_class$
|
|
845
|
+
_create_class$1D(APIError, null, [
|
|
846
846
|
{
|
|
847
847
|
key: "makeMessage",
|
|
848
848
|
value: function makeMessage(status, error, message) {
|
|
@@ -904,7 +904,7 @@ var APIUserAbortError = /*#__PURE__*/ function(APIError) {
|
|
|
904
904
|
var _super = _create_super$1A(APIUserAbortError);
|
|
905
905
|
function APIUserAbortError() {
|
|
906
906
|
var message = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).message;
|
|
907
|
-
_class_call_check$
|
|
907
|
+
_class_call_check$1X(this, APIUserAbortError);
|
|
908
908
|
return _super.call(this, undefined, undefined, message || 'Request was aborted.', undefined);
|
|
909
909
|
}
|
|
910
910
|
return APIUserAbortError;
|
|
@@ -914,7 +914,7 @@ var APIConnectionError = /*#__PURE__*/ function(APIError) {
|
|
|
914
914
|
var _super = _create_super$1A(APIConnectionError);
|
|
915
915
|
function APIConnectionError(param) {
|
|
916
916
|
var message = param.message, cause = param.cause;
|
|
917
|
-
_class_call_check$
|
|
917
|
+
_class_call_check$1X(this, APIConnectionError);
|
|
918
918
|
var _this;
|
|
919
919
|
_this = _super.call(this, undefined, undefined, message || 'Connection error.', undefined);
|
|
920
920
|
// in some environments the 'cause' property is already declared
|
|
@@ -929,7 +929,7 @@ var APIConnectionTimeoutError = /*#__PURE__*/ function(APIConnectionError) {
|
|
|
929
929
|
var _super = _create_super$1A(APIConnectionTimeoutError);
|
|
930
930
|
function APIConnectionTimeoutError() {
|
|
931
931
|
var message = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).message;
|
|
932
|
-
_class_call_check$
|
|
932
|
+
_class_call_check$1X(this, APIConnectionTimeoutError);
|
|
933
933
|
return _super.call(this, {
|
|
934
934
|
message: message !== null && message !== void 0 ? message : 'Request timed out.'
|
|
935
935
|
});
|
|
@@ -940,7 +940,7 @@ var BadRequestError = /*#__PURE__*/ function(APIError) {
|
|
|
940
940
|
_inherits$1A(BadRequestError, APIError);
|
|
941
941
|
var _super = _create_super$1A(BadRequestError);
|
|
942
942
|
function BadRequestError() {
|
|
943
|
-
_class_call_check$
|
|
943
|
+
_class_call_check$1X(this, BadRequestError);
|
|
944
944
|
return _super.apply(this, arguments);
|
|
945
945
|
}
|
|
946
946
|
return BadRequestError;
|
|
@@ -949,7 +949,7 @@ var AuthenticationError = /*#__PURE__*/ function(APIError) {
|
|
|
949
949
|
_inherits$1A(AuthenticationError, APIError);
|
|
950
950
|
var _super = _create_super$1A(AuthenticationError);
|
|
951
951
|
function AuthenticationError() {
|
|
952
|
-
_class_call_check$
|
|
952
|
+
_class_call_check$1X(this, AuthenticationError);
|
|
953
953
|
return _super.apply(this, arguments);
|
|
954
954
|
}
|
|
955
955
|
return AuthenticationError;
|
|
@@ -958,7 +958,7 @@ var PermissionDeniedError = /*#__PURE__*/ function(APIError) {
|
|
|
958
958
|
_inherits$1A(PermissionDeniedError, APIError);
|
|
959
959
|
var _super = _create_super$1A(PermissionDeniedError);
|
|
960
960
|
function PermissionDeniedError() {
|
|
961
|
-
_class_call_check$
|
|
961
|
+
_class_call_check$1X(this, PermissionDeniedError);
|
|
962
962
|
return _super.apply(this, arguments);
|
|
963
963
|
}
|
|
964
964
|
return PermissionDeniedError;
|
|
@@ -967,7 +967,7 @@ var NotFoundError = /*#__PURE__*/ function(APIError) {
|
|
|
967
967
|
_inherits$1A(NotFoundError, APIError);
|
|
968
968
|
var _super = _create_super$1A(NotFoundError);
|
|
969
969
|
function NotFoundError() {
|
|
970
|
-
_class_call_check$
|
|
970
|
+
_class_call_check$1X(this, NotFoundError);
|
|
971
971
|
return _super.apply(this, arguments);
|
|
972
972
|
}
|
|
973
973
|
return NotFoundError;
|
|
@@ -976,7 +976,7 @@ var ConflictError = /*#__PURE__*/ function(APIError) {
|
|
|
976
976
|
_inherits$1A(ConflictError, APIError);
|
|
977
977
|
var _super = _create_super$1A(ConflictError);
|
|
978
978
|
function ConflictError() {
|
|
979
|
-
_class_call_check$
|
|
979
|
+
_class_call_check$1X(this, ConflictError);
|
|
980
980
|
return _super.apply(this, arguments);
|
|
981
981
|
}
|
|
982
982
|
return ConflictError;
|
|
@@ -985,7 +985,7 @@ var UnprocessableEntityError = /*#__PURE__*/ function(APIError) {
|
|
|
985
985
|
_inherits$1A(UnprocessableEntityError, APIError);
|
|
986
986
|
var _super = _create_super$1A(UnprocessableEntityError);
|
|
987
987
|
function UnprocessableEntityError() {
|
|
988
|
-
_class_call_check$
|
|
988
|
+
_class_call_check$1X(this, UnprocessableEntityError);
|
|
989
989
|
return _super.apply(this, arguments);
|
|
990
990
|
}
|
|
991
991
|
return UnprocessableEntityError;
|
|
@@ -994,7 +994,7 @@ var RateLimitError = /*#__PURE__*/ function(APIError) {
|
|
|
994
994
|
_inherits$1A(RateLimitError, APIError);
|
|
995
995
|
var _super = _create_super$1A(RateLimitError);
|
|
996
996
|
function RateLimitError() {
|
|
997
|
-
_class_call_check$
|
|
997
|
+
_class_call_check$1X(this, RateLimitError);
|
|
998
998
|
return _super.apply(this, arguments);
|
|
999
999
|
}
|
|
1000
1000
|
return RateLimitError;
|
|
@@ -1003,7 +1003,7 @@ var InternalServerError = /*#__PURE__*/ function(APIError) {
|
|
|
1003
1003
|
_inherits$1A(InternalServerError, APIError);
|
|
1004
1004
|
var _super = _create_super$1A(InternalServerError);
|
|
1005
1005
|
function InternalServerError() {
|
|
1006
|
-
_class_call_check$
|
|
1006
|
+
_class_call_check$1X(this, InternalServerError);
|
|
1007
1007
|
return _super.apply(this, arguments);
|
|
1008
1008
|
}
|
|
1009
1009
|
return InternalServerError;
|
|
@@ -1012,7 +1012,7 @@ var LengthFinishReasonError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
1012
1012
|
_inherits$1A(LengthFinishReasonError, OpenAIError);
|
|
1013
1013
|
var _super = _create_super$1A(LengthFinishReasonError);
|
|
1014
1014
|
function LengthFinishReasonError() {
|
|
1015
|
-
_class_call_check$
|
|
1015
|
+
_class_call_check$1X(this, LengthFinishReasonError);
|
|
1016
1016
|
return _super.call(this, "Could not parse response content as the length limit was reached");
|
|
1017
1017
|
}
|
|
1018
1018
|
return LengthFinishReasonError;
|
|
@@ -1021,19 +1021,19 @@ var ContentFilterFinishReasonError = /*#__PURE__*/ function(OpenAIError) {
|
|
|
1021
1021
|
_inherits$1A(ContentFilterFinishReasonError, OpenAIError);
|
|
1022
1022
|
var _super = _create_super$1A(ContentFilterFinishReasonError);
|
|
1023
1023
|
function ContentFilterFinishReasonError() {
|
|
1024
|
-
_class_call_check$
|
|
1024
|
+
_class_call_check$1X(this, ContentFilterFinishReasonError);
|
|
1025
1025
|
return _super.call(this, "Could not parse response content as the request was rejected by the content filter");
|
|
1026
1026
|
}
|
|
1027
1027
|
return ContentFilterFinishReasonError;
|
|
1028
1028
|
}
|
|
1029
1029
|
(OpenAIError);
|
|
1030
1030
|
|
|
1031
|
-
function _class_call_check$
|
|
1031
|
+
function _class_call_check$1W(instance, Constructor) {
|
|
1032
1032
|
if (!(instance instanceof Constructor)) {
|
|
1033
1033
|
throw new TypeError("Cannot call a class as a function");
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function _defineProperties$
|
|
1036
|
+
function _defineProperties$1C(target, props) {
|
|
1037
1037
|
for(var i = 0; i < props.length; i++){
|
|
1038
1038
|
var descriptor = props[i];
|
|
1039
1039
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1042,8 +1042,8 @@ function _defineProperties$1B(target, props) {
|
|
|
1042
1042
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
function _create_class$
|
|
1046
|
-
if (protoProps) _defineProperties$
|
|
1045
|
+
function _create_class$1C(Constructor, protoProps, staticProps) {
|
|
1046
|
+
if (protoProps) _defineProperties$1C(Constructor.prototype, protoProps);
|
|
1047
1047
|
return Constructor;
|
|
1048
1048
|
}
|
|
1049
1049
|
function _instanceof$r(left, right) {
|
|
@@ -1072,12 +1072,12 @@ var _LineDecoder_carriageReturnIndex;
|
|
|
1072
1072
|
* https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258
|
|
1073
1073
|
*/ var LineDecoder = /*#__PURE__*/ function() {
|
|
1074
1074
|
function LineDecoder() {
|
|
1075
|
-
_class_call_check$
|
|
1075
|
+
_class_call_check$1W(this, LineDecoder);
|
|
1076
1076
|
_LineDecoder_carriageReturnIndex.set(this, void 0);
|
|
1077
1077
|
this.buffer = new Uint8Array();
|
|
1078
1078
|
__classPrivateFieldSet$5(this, _LineDecoder_carriageReturnIndex, null, "f");
|
|
1079
1079
|
}
|
|
1080
|
-
_create_class$
|
|
1080
|
+
_create_class$1C(LineDecoder, [
|
|
1081
1081
|
{
|
|
1082
1082
|
key: "decode",
|
|
1083
1083
|
value: function decode(chunk) {
|
|
@@ -1587,12 +1587,12 @@ function _await_async_generator$b(value) {
|
|
|
1587
1587
|
function _await_value$b(value) {
|
|
1588
1588
|
this.wrapped = value;
|
|
1589
1589
|
}
|
|
1590
|
-
function _class_call_check$
|
|
1590
|
+
function _class_call_check$1V(instance, Constructor) {
|
|
1591
1591
|
if (!(instance instanceof Constructor)) {
|
|
1592
1592
|
throw new TypeError("Cannot call a class as a function");
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
function _defineProperties$
|
|
1595
|
+
function _defineProperties$1B(target, props) {
|
|
1596
1596
|
for(var i = 0; i < props.length; i++){
|
|
1597
1597
|
var descriptor = props[i];
|
|
1598
1598
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1601,9 +1601,9 @@ function _defineProperties$1A(target, props) {
|
|
|
1601
1601
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
function _create_class$
|
|
1605
|
-
if (protoProps) _defineProperties$
|
|
1606
|
-
if (staticProps) _defineProperties$
|
|
1604
|
+
function _create_class$1B(Constructor, protoProps, staticProps) {
|
|
1605
|
+
if (protoProps) _defineProperties$1B(Constructor.prototype, protoProps);
|
|
1606
|
+
if (staticProps) _defineProperties$1B(Constructor, staticProps);
|
|
1607
1607
|
return Constructor;
|
|
1608
1608
|
}
|
|
1609
1609
|
function _instanceof$q(left, right) {
|
|
@@ -1753,11 +1753,11 @@ function _ts_generator$S(thisArg, body) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
var Stream = /*#__PURE__*/ function() {
|
|
1755
1755
|
function Stream(iterator, controller) {
|
|
1756
|
-
_class_call_check$
|
|
1756
|
+
_class_call_check$1V(this, Stream);
|
|
1757
1757
|
this.iterator = iterator;
|
|
1758
1758
|
this.controller = controller;
|
|
1759
1759
|
}
|
|
1760
|
-
_create_class$
|
|
1760
|
+
_create_class$1B(Stream, [
|
|
1761
1761
|
{
|
|
1762
1762
|
key: Symbol.asyncIterator,
|
|
1763
1763
|
value: function value() {
|
|
@@ -2802,12 +2802,12 @@ function _iterSSEChunks() {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
var SSEDecoder = /*#__PURE__*/ function() {
|
|
2804
2804
|
function SSEDecoder() {
|
|
2805
|
-
_class_call_check$
|
|
2805
|
+
_class_call_check$1V(this, SSEDecoder);
|
|
2806
2806
|
this.event = null;
|
|
2807
2807
|
this.data = [];
|
|
2808
2808
|
this.chunks = [];
|
|
2809
2809
|
}
|
|
2810
|
-
_create_class$
|
|
2810
|
+
_create_class$1B(SSEDecoder, [
|
|
2811
2811
|
{
|
|
2812
2812
|
key: "decode",
|
|
2813
2813
|
value: function decode(line) {
|
|
@@ -3711,7 +3711,7 @@ function _await_async_generator$a(value) {
|
|
|
3711
3711
|
function _await_value$a(value) {
|
|
3712
3712
|
this.wrapped = value;
|
|
3713
3713
|
}
|
|
3714
|
-
function _class_call_check$
|
|
3714
|
+
function _class_call_check$1U(instance, Constructor) {
|
|
3715
3715
|
if (!(instance instanceof Constructor)) {
|
|
3716
3716
|
throw new TypeError("Cannot call a class as a function");
|
|
3717
3717
|
}
|
|
@@ -3733,7 +3733,7 @@ function _construct$a(Parent, args, Class) {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
return _construct$a.apply(null, arguments);
|
|
3735
3735
|
}
|
|
3736
|
-
function _defineProperties$
|
|
3736
|
+
function _defineProperties$1A(target, props) {
|
|
3737
3737
|
for(var i = 0; i < props.length; i++){
|
|
3738
3738
|
var descriptor = props[i];
|
|
3739
3739
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3742,8 +3742,8 @@ function _defineProperties$1z(target, props) {
|
|
|
3742
3742
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
3745
|
-
function _create_class$
|
|
3746
|
-
if (protoProps) _defineProperties$
|
|
3745
|
+
function _create_class$1A(Constructor, protoProps, staticProps) {
|
|
3746
|
+
if (protoProps) _defineProperties$1A(Constructor.prototype, protoProps);
|
|
3747
3747
|
return Constructor;
|
|
3748
3748
|
}
|
|
3749
3749
|
function _define_property$20(obj, key, value) {
|
|
@@ -4168,7 +4168,7 @@ function _addRequestID(value, response) {
|
|
|
4168
4168
|
var _super = _create_super$1z(APIPromise);
|
|
4169
4169
|
function APIPromise(responsePromise) {
|
|
4170
4170
|
var parseResponse = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultParseResponse;
|
|
4171
|
-
_class_call_check$
|
|
4171
|
+
_class_call_check$1U(this, APIPromise);
|
|
4172
4172
|
var _this;
|
|
4173
4173
|
_this = _super.call(this, function(resolve) {
|
|
4174
4174
|
// this is maybe a bit weird but this has to be a no-op to not implicitly
|
|
@@ -4180,7 +4180,7 @@ function _addRequestID(value, response) {
|
|
|
4180
4180
|
_this.parseResponse = parseResponse;
|
|
4181
4181
|
return _this;
|
|
4182
4182
|
}
|
|
4183
|
-
_create_class$
|
|
4183
|
+
_create_class$1A(APIPromise, [
|
|
4184
4184
|
{
|
|
4185
4185
|
key: "_thenUnwrap",
|
|
4186
4186
|
value: function _thenUnwrap(transform) {
|
|
@@ -4315,14 +4315,14 @@ function _addRequestID(value, response) {
|
|
|
4315
4315
|
var APIClient = /*#__PURE__*/ function() {
|
|
4316
4316
|
function APIClient(param) {
|
|
4317
4317
|
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;
|
|
4318
|
-
_class_call_check$
|
|
4318
|
+
_class_call_check$1U(this, APIClient);
|
|
4319
4319
|
this.baseURL = baseURL;
|
|
4320
4320
|
this.maxRetries = validatePositiveInteger('maxRetries', maxRetries);
|
|
4321
4321
|
this.timeout = validatePositiveInteger('timeout', timeout);
|
|
4322
4322
|
this.httpAgent = httpAgent;
|
|
4323
4323
|
this.fetch = overriddenFetch !== null && overriddenFetch !== void 0 ? overriddenFetch : fetch$1;
|
|
4324
4324
|
}
|
|
4325
|
-
_create_class$
|
|
4325
|
+
_create_class$1A(APIClient, [
|
|
4326
4326
|
{
|
|
4327
4327
|
key: "authHeaders",
|
|
4328
4328
|
value: function authHeaders(opts) {
|
|
@@ -4872,14 +4872,14 @@ var APIClient = /*#__PURE__*/ function() {
|
|
|
4872
4872
|
}();
|
|
4873
4873
|
var AbstractPage = /*#__PURE__*/ function() {
|
|
4874
4874
|
function AbstractPage(client, response, body, options) {
|
|
4875
|
-
_class_call_check$
|
|
4875
|
+
_class_call_check$1U(this, AbstractPage);
|
|
4876
4876
|
_AbstractPage_client.set(this, void 0);
|
|
4877
4877
|
__classPrivateFieldSet$4(this, _AbstractPage_client, client, "f");
|
|
4878
4878
|
this.options = options;
|
|
4879
4879
|
this.response = response;
|
|
4880
4880
|
this.body = body;
|
|
4881
4881
|
}
|
|
4882
|
-
_create_class$
|
|
4882
|
+
_create_class$1A(AbstractPage, [
|
|
4883
4883
|
{
|
|
4884
4884
|
key: "hasNextPage",
|
|
4885
4885
|
value: function hasNextPage() {
|
|
@@ -5156,7 +5156,7 @@ var AbstractPage = /*#__PURE__*/ function() {
|
|
|
5156
5156
|
_inherits$1z(PagePromise, APIPromise);
|
|
5157
5157
|
var _super = _create_super$1z(PagePromise);
|
|
5158
5158
|
function PagePromise(client, request, Page) {
|
|
5159
|
-
_class_call_check$
|
|
5159
|
+
_class_call_check$1U(this, PagePromise);
|
|
5160
5160
|
return _super.call(this, request, function() {
|
|
5161
5161
|
var _ref = _async_to_generator$O(function(props) {
|
|
5162
5162
|
var _, _tmp;
|
|
@@ -5189,7 +5189,7 @@ var AbstractPage = /*#__PURE__*/ function() {
|
|
|
5189
5189
|
};
|
|
5190
5190
|
}());
|
|
5191
5191
|
}
|
|
5192
|
-
_create_class$
|
|
5192
|
+
_create_class$1A(PagePromise, [
|
|
5193
5193
|
{
|
|
5194
5194
|
key: Symbol.asyncIterator,
|
|
5195
5195
|
value: /**
|
|
@@ -5720,12 +5720,12 @@ function _assert_this_initialized$1y(self) {
|
|
|
5720
5720
|
}
|
|
5721
5721
|
return self;
|
|
5722
5722
|
}
|
|
5723
|
-
function _class_call_check$
|
|
5723
|
+
function _class_call_check$1T(instance, Constructor) {
|
|
5724
5724
|
if (!(instance instanceof Constructor)) {
|
|
5725
5725
|
throw new TypeError("Cannot call a class as a function");
|
|
5726
5726
|
}
|
|
5727
5727
|
}
|
|
5728
|
-
function _defineProperties$
|
|
5728
|
+
function _defineProperties$1z(target, props) {
|
|
5729
5729
|
for(var i = 0; i < props.length; i++){
|
|
5730
5730
|
var descriptor = props[i];
|
|
5731
5731
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5734,8 +5734,8 @@ function _defineProperties$1y(target, props) {
|
|
|
5734
5734
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5735
5735
|
}
|
|
5736
5736
|
}
|
|
5737
|
-
function _create_class$
|
|
5738
|
-
if (protoProps) _defineProperties$
|
|
5737
|
+
function _create_class$1z(Constructor, protoProps, staticProps) {
|
|
5738
|
+
if (protoProps) _defineProperties$1z(Constructor.prototype, protoProps);
|
|
5739
5739
|
return Constructor;
|
|
5740
5740
|
}
|
|
5741
5741
|
function _get$d(target, property, receiver) {
|
|
@@ -5827,14 +5827,14 @@ function _create_super$1y(Derived) {
|
|
|
5827
5827
|
_inherits$1y(Page, AbstractPage);
|
|
5828
5828
|
var _super = _create_super$1y(Page);
|
|
5829
5829
|
function Page(client, response, body, options) {
|
|
5830
|
-
_class_call_check$
|
|
5830
|
+
_class_call_check$1T(this, Page);
|
|
5831
5831
|
var _this;
|
|
5832
5832
|
_this = _super.call(this, client, response, body, options);
|
|
5833
5833
|
_this.data = body.data || [];
|
|
5834
5834
|
_this.object = body.object;
|
|
5835
5835
|
return _this;
|
|
5836
5836
|
}
|
|
5837
|
-
_create_class$
|
|
5837
|
+
_create_class$1z(Page, [
|
|
5838
5838
|
{
|
|
5839
5839
|
key: "getPaginatedItems",
|
|
5840
5840
|
value: function getPaginatedItems() {
|
|
@@ -5865,14 +5865,14 @@ var CursorPage = /*#__PURE__*/ function(AbstractPage) {
|
|
|
5865
5865
|
_inherits$1y(CursorPage, AbstractPage);
|
|
5866
5866
|
var _super = _create_super$1y(CursorPage);
|
|
5867
5867
|
function CursorPage(client, response, body, options) {
|
|
5868
|
-
_class_call_check$
|
|
5868
|
+
_class_call_check$1T(this, CursorPage);
|
|
5869
5869
|
var _this;
|
|
5870
5870
|
_this = _super.call(this, client, response, body, options);
|
|
5871
5871
|
_this.data = body.data || [];
|
|
5872
5872
|
_this.has_more = body.has_more || false;
|
|
5873
5873
|
return _this;
|
|
5874
5874
|
}
|
|
5875
|
-
_create_class$
|
|
5875
|
+
_create_class$1z(CursorPage, [
|
|
5876
5876
|
{
|
|
5877
5877
|
key: "getPaginatedItems",
|
|
5878
5878
|
value: function getPaginatedItems() {
|
|
@@ -5926,13 +5926,13 @@ var CursorPage = /*#__PURE__*/ function(AbstractPage) {
|
|
|
5926
5926
|
(AbstractPage);
|
|
5927
5927
|
|
|
5928
5928
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
5929
|
-
function _class_call_check$
|
|
5929
|
+
function _class_call_check$1S(instance, Constructor) {
|
|
5930
5930
|
if (!(instance instanceof Constructor)) {
|
|
5931
5931
|
throw new TypeError("Cannot call a class as a function");
|
|
5932
5932
|
}
|
|
5933
5933
|
}
|
|
5934
5934
|
var APIResource = function APIResource(client) {
|
|
5935
|
-
_class_call_check$
|
|
5935
|
+
_class_call_check$1S(this, APIResource);
|
|
5936
5936
|
this._client = client;
|
|
5937
5937
|
}
|
|
5938
5938
|
;
|
|
@@ -5944,12 +5944,12 @@ function _assert_this_initialized$1x(self) {
|
|
|
5944
5944
|
}
|
|
5945
5945
|
return self;
|
|
5946
5946
|
}
|
|
5947
|
-
function _class_call_check$
|
|
5947
|
+
function _class_call_check$1R(instance, Constructor) {
|
|
5948
5948
|
if (!(instance instanceof Constructor)) {
|
|
5949
5949
|
throw new TypeError("Cannot call a class as a function");
|
|
5950
5950
|
}
|
|
5951
5951
|
}
|
|
5952
|
-
function _defineProperties$
|
|
5952
|
+
function _defineProperties$1y(target, props) {
|
|
5953
5953
|
for(var i = 0; i < props.length; i++){
|
|
5954
5954
|
var descriptor = props[i];
|
|
5955
5955
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5958,8 +5958,8 @@ function _defineProperties$1x(target, props) {
|
|
|
5958
5958
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5959
5959
|
}
|
|
5960
5960
|
}
|
|
5961
|
-
function _create_class$
|
|
5962
|
-
if (protoProps) _defineProperties$
|
|
5961
|
+
function _create_class$1y(Constructor, protoProps, staticProps) {
|
|
5962
|
+
if (protoProps) _defineProperties$1y(Constructor.prototype, protoProps);
|
|
5963
5963
|
return Constructor;
|
|
5964
5964
|
}
|
|
5965
5965
|
function _define_property$1$(obj, key, value) {
|
|
@@ -6054,10 +6054,10 @@ var Messages$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
6054
6054
|
_inherits$1x(Messages, APIResource);
|
|
6055
6055
|
var _super = _create_super$1x(Messages);
|
|
6056
6056
|
function Messages() {
|
|
6057
|
-
_class_call_check$
|
|
6057
|
+
_class_call_check$1R(this, Messages);
|
|
6058
6058
|
return _super.apply(this, arguments);
|
|
6059
6059
|
}
|
|
6060
|
-
_create_class$
|
|
6060
|
+
_create_class$1y(Messages, [
|
|
6061
6061
|
{
|
|
6062
6062
|
key: "list",
|
|
6063
6063
|
value: function list(completionId) {
|
|
@@ -6081,12 +6081,12 @@ function _assert_this_initialized$1w(self) {
|
|
|
6081
6081
|
}
|
|
6082
6082
|
return self;
|
|
6083
6083
|
}
|
|
6084
|
-
function _class_call_check$
|
|
6084
|
+
function _class_call_check$1Q(instance, Constructor) {
|
|
6085
6085
|
if (!(instance instanceof Constructor)) {
|
|
6086
6086
|
throw new TypeError("Cannot call a class as a function");
|
|
6087
6087
|
}
|
|
6088
6088
|
}
|
|
6089
|
-
function _defineProperties$
|
|
6089
|
+
function _defineProperties$1x(target, props) {
|
|
6090
6090
|
for(var i = 0; i < props.length; i++){
|
|
6091
6091
|
var descriptor = props[i];
|
|
6092
6092
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6095,8 +6095,8 @@ function _defineProperties$1w(target, props) {
|
|
|
6095
6095
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6096
6096
|
}
|
|
6097
6097
|
}
|
|
6098
|
-
function _create_class$
|
|
6099
|
-
if (protoProps) _defineProperties$
|
|
6098
|
+
function _create_class$1x(Constructor, protoProps, staticProps) {
|
|
6099
|
+
if (protoProps) _defineProperties$1x(Constructor.prototype, protoProps);
|
|
6100
6100
|
return Constructor;
|
|
6101
6101
|
}
|
|
6102
6102
|
function _define_property$1_(obj, key, value) {
|
|
@@ -6210,7 +6210,7 @@ var Completions$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
6210
6210
|
_inherits$1w(Completions, APIResource);
|
|
6211
6211
|
var _super = _create_super$1w(Completions);
|
|
6212
6212
|
function Completions() {
|
|
6213
|
-
_class_call_check$
|
|
6213
|
+
_class_call_check$1Q(this, Completions);
|
|
6214
6214
|
var _this;
|
|
6215
6215
|
_this = _super.call.apply(_super, [
|
|
6216
6216
|
this
|
|
@@ -6218,7 +6218,7 @@ var Completions$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
6218
6218
|
_this.messages = new Messages$1(_this._client);
|
|
6219
6219
|
return _this;
|
|
6220
6220
|
}
|
|
6221
|
-
_create_class$
|
|
6221
|
+
_create_class$1x(Completions, [
|
|
6222
6222
|
{
|
|
6223
6223
|
key: "create",
|
|
6224
6224
|
value: function create(body, options) {
|
|
@@ -6299,7 +6299,7 @@ var ChatCompletionsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
6299
6299
|
_inherits$1w(ChatCompletionsPage, CursorPage);
|
|
6300
6300
|
var _super = _create_super$1w(ChatCompletionsPage);
|
|
6301
6301
|
function ChatCompletionsPage() {
|
|
6302
|
-
_class_call_check$
|
|
6302
|
+
_class_call_check$1Q(this, ChatCompletionsPage);
|
|
6303
6303
|
return _super.apply(this, arguments);
|
|
6304
6304
|
}
|
|
6305
6305
|
return ChatCompletionsPage;
|
|
@@ -6308,7 +6308,7 @@ var ChatCompletionStoreMessagesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
6308
6308
|
_inherits$1w(ChatCompletionStoreMessagesPage, CursorPage);
|
|
6309
6309
|
var _super = _create_super$1w(ChatCompletionStoreMessagesPage);
|
|
6310
6310
|
function ChatCompletionStoreMessagesPage() {
|
|
6311
|
-
_class_call_check$
|
|
6311
|
+
_class_call_check$1Q(this, ChatCompletionStoreMessagesPage);
|
|
6312
6312
|
return _super.apply(this, arguments);
|
|
6313
6313
|
}
|
|
6314
6314
|
return ChatCompletionStoreMessagesPage;
|
|
@@ -6323,7 +6323,7 @@ function _assert_this_initialized$1v(self) {
|
|
|
6323
6323
|
}
|
|
6324
6324
|
return self;
|
|
6325
6325
|
}
|
|
6326
|
-
function _class_call_check$
|
|
6326
|
+
function _class_call_check$1P(instance, Constructor) {
|
|
6327
6327
|
if (!(instance instanceof Constructor)) {
|
|
6328
6328
|
throw new TypeError("Cannot call a class as a function");
|
|
6329
6329
|
}
|
|
@@ -6392,7 +6392,7 @@ var Chat$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
6392
6392
|
_inherits$1v(Chat, APIResource);
|
|
6393
6393
|
var _super = _create_super$1v(Chat);
|
|
6394
6394
|
function Chat() {
|
|
6395
|
-
_class_call_check$
|
|
6395
|
+
_class_call_check$1P(this, Chat);
|
|
6396
6396
|
var _this;
|
|
6397
6397
|
_this = _super.call.apply(_super, [
|
|
6398
6398
|
this
|
|
@@ -6412,12 +6412,12 @@ function _assert_this_initialized$1u(self) {
|
|
|
6412
6412
|
}
|
|
6413
6413
|
return self;
|
|
6414
6414
|
}
|
|
6415
|
-
function _class_call_check$
|
|
6415
|
+
function _class_call_check$1O(instance, Constructor) {
|
|
6416
6416
|
if (!(instance instanceof Constructor)) {
|
|
6417
6417
|
throw new TypeError("Cannot call a class as a function");
|
|
6418
6418
|
}
|
|
6419
6419
|
}
|
|
6420
|
-
function _defineProperties$
|
|
6420
|
+
function _defineProperties$1w(target, props) {
|
|
6421
6421
|
for(var i = 0; i < props.length; i++){
|
|
6422
6422
|
var descriptor = props[i];
|
|
6423
6423
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6426,8 +6426,8 @@ function _defineProperties$1v(target, props) {
|
|
|
6426
6426
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6427
6427
|
}
|
|
6428
6428
|
}
|
|
6429
|
-
function _create_class$
|
|
6430
|
-
if (protoProps) _defineProperties$
|
|
6429
|
+
function _create_class$1w(Constructor, protoProps, staticProps) {
|
|
6430
|
+
if (protoProps) _defineProperties$1w(Constructor.prototype, protoProps);
|
|
6431
6431
|
return Constructor;
|
|
6432
6432
|
}
|
|
6433
6433
|
function _define_property$1Z(obj, key, value) {
|
|
@@ -6541,10 +6541,10 @@ var Speech = /*#__PURE__*/ function(APIResource) {
|
|
|
6541
6541
|
_inherits$1u(Speech, APIResource);
|
|
6542
6542
|
var _super = _create_super$1u(Speech);
|
|
6543
6543
|
function Speech() {
|
|
6544
|
-
_class_call_check$
|
|
6544
|
+
_class_call_check$1O(this, Speech);
|
|
6545
6545
|
return _super.apply(this, arguments);
|
|
6546
6546
|
}
|
|
6547
|
-
_create_class$
|
|
6547
|
+
_create_class$1w(Speech, [
|
|
6548
6548
|
{
|
|
6549
6549
|
/**
|
|
6550
6550
|
* Generates audio from the input text.
|
|
@@ -6584,12 +6584,12 @@ function _assert_this_initialized$1t(self) {
|
|
|
6584
6584
|
}
|
|
6585
6585
|
return self;
|
|
6586
6586
|
}
|
|
6587
|
-
function _class_call_check$
|
|
6587
|
+
function _class_call_check$1N(instance, Constructor) {
|
|
6588
6588
|
if (!(instance instanceof Constructor)) {
|
|
6589
6589
|
throw new TypeError("Cannot call a class as a function");
|
|
6590
6590
|
}
|
|
6591
6591
|
}
|
|
6592
|
-
function _defineProperties$
|
|
6592
|
+
function _defineProperties$1v(target, props) {
|
|
6593
6593
|
for(var i = 0; i < props.length; i++){
|
|
6594
6594
|
var descriptor = props[i];
|
|
6595
6595
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6598,8 +6598,8 @@ function _defineProperties$1u(target, props) {
|
|
|
6598
6598
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
|
-
function _create_class$
|
|
6602
|
-
if (protoProps) _defineProperties$
|
|
6601
|
+
function _create_class$1v(Constructor, protoProps, staticProps) {
|
|
6602
|
+
if (protoProps) _defineProperties$1v(Constructor.prototype, protoProps);
|
|
6603
6603
|
return Constructor;
|
|
6604
6604
|
}
|
|
6605
6605
|
function _define_property$1Y(obj, key, value) {
|
|
@@ -6713,10 +6713,10 @@ var Transcriptions = /*#__PURE__*/ function(APIResource) {
|
|
|
6713
6713
|
_inherits$1t(Transcriptions, APIResource);
|
|
6714
6714
|
var _super = _create_super$1t(Transcriptions);
|
|
6715
6715
|
function Transcriptions() {
|
|
6716
|
-
_class_call_check$
|
|
6716
|
+
_class_call_check$1N(this, Transcriptions);
|
|
6717
6717
|
return _super.apply(this, arguments);
|
|
6718
6718
|
}
|
|
6719
|
-
_create_class$
|
|
6719
|
+
_create_class$1v(Transcriptions, [
|
|
6720
6720
|
{
|
|
6721
6721
|
key: "create",
|
|
6722
6722
|
value: function create(body, options) {
|
|
@@ -6743,12 +6743,12 @@ function _assert_this_initialized$1s(self) {
|
|
|
6743
6743
|
}
|
|
6744
6744
|
return self;
|
|
6745
6745
|
}
|
|
6746
|
-
function _class_call_check$
|
|
6746
|
+
function _class_call_check$1M(instance, Constructor) {
|
|
6747
6747
|
if (!(instance instanceof Constructor)) {
|
|
6748
6748
|
throw new TypeError("Cannot call a class as a function");
|
|
6749
6749
|
}
|
|
6750
6750
|
}
|
|
6751
|
-
function _defineProperties$
|
|
6751
|
+
function _defineProperties$1u(target, props) {
|
|
6752
6752
|
for(var i = 0; i < props.length; i++){
|
|
6753
6753
|
var descriptor = props[i];
|
|
6754
6754
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6757,8 +6757,8 @@ function _defineProperties$1t(target, props) {
|
|
|
6757
6757
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6758
6758
|
}
|
|
6759
6759
|
}
|
|
6760
|
-
function _create_class$
|
|
6761
|
-
if (protoProps) _defineProperties$
|
|
6760
|
+
function _create_class$1u(Constructor, protoProps, staticProps) {
|
|
6761
|
+
if (protoProps) _defineProperties$1u(Constructor.prototype, protoProps);
|
|
6762
6762
|
return Constructor;
|
|
6763
6763
|
}
|
|
6764
6764
|
function _define_property$1X(obj, key, value) {
|
|
@@ -6872,10 +6872,10 @@ var Translations = /*#__PURE__*/ function(APIResource) {
|
|
|
6872
6872
|
_inherits$1s(Translations, APIResource);
|
|
6873
6873
|
var _super = _create_super$1s(Translations);
|
|
6874
6874
|
function Translations() {
|
|
6875
|
-
_class_call_check$
|
|
6875
|
+
_class_call_check$1M(this, Translations);
|
|
6876
6876
|
return _super.apply(this, arguments);
|
|
6877
6877
|
}
|
|
6878
|
-
_create_class$
|
|
6878
|
+
_create_class$1u(Translations, [
|
|
6879
6879
|
{
|
|
6880
6880
|
key: "create",
|
|
6881
6881
|
value: function create(body, options) {
|
|
@@ -6900,7 +6900,7 @@ function _assert_this_initialized$1r(self) {
|
|
|
6900
6900
|
}
|
|
6901
6901
|
return self;
|
|
6902
6902
|
}
|
|
6903
|
-
function _class_call_check$
|
|
6903
|
+
function _class_call_check$1L(instance, Constructor) {
|
|
6904
6904
|
if (!(instance instanceof Constructor)) {
|
|
6905
6905
|
throw new TypeError("Cannot call a class as a function");
|
|
6906
6906
|
}
|
|
@@ -6969,7 +6969,7 @@ var Audio = /*#__PURE__*/ function(APIResource) {
|
|
|
6969
6969
|
_inherits$1r(Audio, APIResource);
|
|
6970
6970
|
var _super = _create_super$1r(Audio);
|
|
6971
6971
|
function Audio() {
|
|
6972
|
-
_class_call_check$
|
|
6972
|
+
_class_call_check$1L(this, Audio);
|
|
6973
6973
|
var _this;
|
|
6974
6974
|
_this = _super.call.apply(_super, [
|
|
6975
6975
|
this
|
|
@@ -6992,12 +6992,12 @@ function _assert_this_initialized$1q(self) {
|
|
|
6992
6992
|
}
|
|
6993
6993
|
return self;
|
|
6994
6994
|
}
|
|
6995
|
-
function _class_call_check$
|
|
6995
|
+
function _class_call_check$1K(instance, Constructor) {
|
|
6996
6996
|
if (!(instance instanceof Constructor)) {
|
|
6997
6997
|
throw new TypeError("Cannot call a class as a function");
|
|
6998
6998
|
}
|
|
6999
6999
|
}
|
|
7000
|
-
function _defineProperties$
|
|
7000
|
+
function _defineProperties$1t(target, props) {
|
|
7001
7001
|
for(var i = 0; i < props.length; i++){
|
|
7002
7002
|
var descriptor = props[i];
|
|
7003
7003
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7006,8 +7006,8 @@ function _defineProperties$1s(target, props) {
|
|
|
7006
7006
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7007
7007
|
}
|
|
7008
7008
|
}
|
|
7009
|
-
function _create_class$
|
|
7010
|
-
if (protoProps) _defineProperties$
|
|
7009
|
+
function _create_class$1t(Constructor, protoProps, staticProps) {
|
|
7010
|
+
if (protoProps) _defineProperties$1t(Constructor.prototype, protoProps);
|
|
7011
7011
|
return Constructor;
|
|
7012
7012
|
}
|
|
7013
7013
|
function _define_property$1W(obj, key, value) {
|
|
@@ -7102,10 +7102,10 @@ var Batches = /*#__PURE__*/ function(APIResource) {
|
|
|
7102
7102
|
_inherits$1q(Batches, APIResource);
|
|
7103
7103
|
var _super = _create_super$1q(Batches);
|
|
7104
7104
|
function Batches() {
|
|
7105
|
-
_class_call_check$
|
|
7105
|
+
_class_call_check$1K(this, Batches);
|
|
7106
7106
|
return _super.apply(this, arguments);
|
|
7107
7107
|
}
|
|
7108
|
-
_create_class$
|
|
7108
|
+
_create_class$1t(Batches, [
|
|
7109
7109
|
{
|
|
7110
7110
|
/**
|
|
7111
7111
|
* Creates and executes a batch from an uploaded file of requests
|
|
@@ -7153,7 +7153,7 @@ var BatchesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
7153
7153
|
_inherits$1q(BatchesPage, CursorPage);
|
|
7154
7154
|
var _super = _create_super$1q(BatchesPage);
|
|
7155
7155
|
function BatchesPage() {
|
|
7156
|
-
_class_call_check$
|
|
7156
|
+
_class_call_check$1K(this, BatchesPage);
|
|
7157
7157
|
return _super.apply(this, arguments);
|
|
7158
7158
|
}
|
|
7159
7159
|
return BatchesPage;
|
|
@@ -7197,12 +7197,12 @@ function _async_to_generator$N(fn) {
|
|
|
7197
7197
|
});
|
|
7198
7198
|
};
|
|
7199
7199
|
}
|
|
7200
|
-
function _class_call_check$
|
|
7200
|
+
function _class_call_check$1J(instance, Constructor) {
|
|
7201
7201
|
if (!(instance instanceof Constructor)) {
|
|
7202
7202
|
throw new TypeError("Cannot call a class as a function");
|
|
7203
7203
|
}
|
|
7204
7204
|
}
|
|
7205
|
-
function _defineProperties$
|
|
7205
|
+
function _defineProperties$1s(target, props) {
|
|
7206
7206
|
for(var i = 0; i < props.length; i++){
|
|
7207
7207
|
var descriptor = props[i];
|
|
7208
7208
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7211,8 +7211,8 @@ function _defineProperties$1r(target, props) {
|
|
|
7211
7211
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7212
7212
|
}
|
|
7213
7213
|
}
|
|
7214
|
-
function _create_class$
|
|
7215
|
-
if (protoProps) _defineProperties$
|
|
7214
|
+
function _create_class$1s(Constructor, protoProps, staticProps) {
|
|
7215
|
+
if (protoProps) _defineProperties$1s(Constructor.prototype, protoProps);
|
|
7216
7216
|
return Constructor;
|
|
7217
7217
|
}
|
|
7218
7218
|
function _instanceof$n(left, right) {
|
|
@@ -7349,7 +7349,7 @@ var _EventStream_instances, _EventStream_connectedPromise, _EventStream_resolveC
|
|
|
7349
7349
|
var EventStream = /*#__PURE__*/ function() {
|
|
7350
7350
|
function EventStream() {
|
|
7351
7351
|
var _this = this;
|
|
7352
|
-
_class_call_check$
|
|
7352
|
+
_class_call_check$1J(this, EventStream);
|
|
7353
7353
|
_EventStream_instances.add(this);
|
|
7354
7354
|
this.controller = new AbortController();
|
|
7355
7355
|
_EventStream_connectedPromise.set(this, void 0);
|
|
@@ -7378,7 +7378,7 @@ var EventStream = /*#__PURE__*/ function() {
|
|
|
7378
7378
|
__classPrivateFieldGet$4(this, _EventStream_connectedPromise, "f").catch(function() {});
|
|
7379
7379
|
__classPrivateFieldGet$4(this, _EventStream_endPromise, "f").catch(function() {});
|
|
7380
7380
|
}
|
|
7381
|
-
_create_class$
|
|
7381
|
+
_create_class$1s(EventStream, [
|
|
7382
7382
|
{
|
|
7383
7383
|
key: "_run",
|
|
7384
7384
|
value: function _run(executor) {
|
|
@@ -7685,12 +7685,12 @@ function _async_to_generator$M(fn) {
|
|
|
7685
7685
|
});
|
|
7686
7686
|
};
|
|
7687
7687
|
}
|
|
7688
|
-
function _class_call_check$
|
|
7688
|
+
function _class_call_check$1I(instance, Constructor) {
|
|
7689
7689
|
if (!(instance instanceof Constructor)) {
|
|
7690
7690
|
throw new TypeError("Cannot call a class as a function");
|
|
7691
7691
|
}
|
|
7692
7692
|
}
|
|
7693
|
-
function _defineProperties$
|
|
7693
|
+
function _defineProperties$1r(target, props) {
|
|
7694
7694
|
for(var i = 0; i < props.length; i++){
|
|
7695
7695
|
var descriptor = props[i];
|
|
7696
7696
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7699,9 +7699,9 @@ function _defineProperties$1q(target, props) {
|
|
|
7699
7699
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7700
7700
|
}
|
|
7701
7701
|
}
|
|
7702
|
-
function _create_class$
|
|
7703
|
-
if (protoProps) _defineProperties$
|
|
7704
|
-
if (staticProps) _defineProperties$
|
|
7702
|
+
function _create_class$1r(Constructor, protoProps, staticProps) {
|
|
7703
|
+
if (protoProps) _defineProperties$1r(Constructor.prototype, protoProps);
|
|
7704
|
+
if (staticProps) _defineProperties$1r(Constructor, staticProps);
|
|
7705
7705
|
return Constructor;
|
|
7706
7706
|
}
|
|
7707
7707
|
function _define_property$1V(obj, key, value) {
|
|
@@ -7969,7 +7969,7 @@ var AssistantStream = /*#__PURE__*/ function(EventStream) {
|
|
|
7969
7969
|
_inherits$1p(AssistantStream, EventStream);
|
|
7970
7970
|
var _super = _create_super$1p(AssistantStream);
|
|
7971
7971
|
function AssistantStream() {
|
|
7972
|
-
_class_call_check$
|
|
7972
|
+
_class_call_check$1I(this, AssistantStream);
|
|
7973
7973
|
var _this;
|
|
7974
7974
|
_this = _super.call.apply(_super, [
|
|
7975
7975
|
this
|
|
@@ -7993,7 +7993,7 @@ var AssistantStream = /*#__PURE__*/ function(EventStream) {
|
|
|
7993
7993
|
_AssistantStream_currentRunStepSnapshot.set(_assert_this_initialized$1p(_this), void 0);
|
|
7994
7994
|
return _this;
|
|
7995
7995
|
}
|
|
7996
|
-
_create_class$
|
|
7996
|
+
_create_class$1r(AssistantStream, [
|
|
7997
7997
|
{
|
|
7998
7998
|
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),
|
|
7999
7999
|
value: function value() {
|
|
@@ -9258,12 +9258,12 @@ function _assert_this_initialized$1o(self) {
|
|
|
9258
9258
|
}
|
|
9259
9259
|
return self;
|
|
9260
9260
|
}
|
|
9261
|
-
function _class_call_check$
|
|
9261
|
+
function _class_call_check$1H(instance, Constructor) {
|
|
9262
9262
|
if (!(instance instanceof Constructor)) {
|
|
9263
9263
|
throw new TypeError("Cannot call a class as a function");
|
|
9264
9264
|
}
|
|
9265
9265
|
}
|
|
9266
|
-
function _defineProperties$
|
|
9266
|
+
function _defineProperties$1q(target, props) {
|
|
9267
9267
|
for(var i = 0; i < props.length; i++){
|
|
9268
9268
|
var descriptor = props[i];
|
|
9269
9269
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9272,8 +9272,8 @@ function _defineProperties$1p(target, props) {
|
|
|
9272
9272
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9273
9273
|
}
|
|
9274
9274
|
}
|
|
9275
|
-
function _create_class$
|
|
9276
|
-
if (protoProps) _defineProperties$
|
|
9275
|
+
function _create_class$1q(Constructor, protoProps, staticProps) {
|
|
9276
|
+
if (protoProps) _defineProperties$1q(Constructor.prototype, protoProps);
|
|
9277
9277
|
return Constructor;
|
|
9278
9278
|
}
|
|
9279
9279
|
function _define_property$1U(obj, key, value) {
|
|
@@ -9387,10 +9387,10 @@ var Assistants = /*#__PURE__*/ function(APIResource) {
|
|
|
9387
9387
|
_inherits$1o(Assistants, APIResource);
|
|
9388
9388
|
var _super = _create_super$1o(Assistants);
|
|
9389
9389
|
function Assistants() {
|
|
9390
|
-
_class_call_check$
|
|
9390
|
+
_class_call_check$1H(this, Assistants);
|
|
9391
9391
|
return _super.apply(this, arguments);
|
|
9392
9392
|
}
|
|
9393
|
-
_create_class$
|
|
9393
|
+
_create_class$1q(Assistants, [
|
|
9394
9394
|
{
|
|
9395
9395
|
/**
|
|
9396
9396
|
* Create an assistant with a model and instructions.
|
|
@@ -9494,7 +9494,7 @@ var AssistantsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
9494
9494
|
_inherits$1o(AssistantsPage, CursorPage);
|
|
9495
9495
|
var _super = _create_super$1o(AssistantsPage);
|
|
9496
9496
|
function AssistantsPage() {
|
|
9497
|
-
_class_call_check$
|
|
9497
|
+
_class_call_check$1H(this, AssistantsPage);
|
|
9498
9498
|
return _super.apply(this, arguments);
|
|
9499
9499
|
}
|
|
9500
9500
|
return AssistantsPage;
|
|
@@ -9759,12 +9759,12 @@ function _async_to_generator$L(fn) {
|
|
|
9759
9759
|
});
|
|
9760
9760
|
};
|
|
9761
9761
|
}
|
|
9762
|
-
function _class_call_check$
|
|
9762
|
+
function _class_call_check$1G(instance, Constructor) {
|
|
9763
9763
|
if (!(instance instanceof Constructor)) {
|
|
9764
9764
|
throw new TypeError("Cannot call a class as a function");
|
|
9765
9765
|
}
|
|
9766
9766
|
}
|
|
9767
|
-
function _defineProperties$
|
|
9767
|
+
function _defineProperties$1p(target, props) {
|
|
9768
9768
|
for(var i = 0; i < props.length; i++){
|
|
9769
9769
|
var descriptor = props[i];
|
|
9770
9770
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9773,8 +9773,8 @@ function _defineProperties$1o(target, props) {
|
|
|
9773
9773
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9774
9774
|
}
|
|
9775
9775
|
}
|
|
9776
|
-
function _create_class$
|
|
9777
|
-
if (protoProps) _defineProperties$
|
|
9776
|
+
function _create_class$1p(Constructor, protoProps, staticProps) {
|
|
9777
|
+
if (protoProps) _defineProperties$1p(Constructor.prototype, protoProps);
|
|
9778
9778
|
return Constructor;
|
|
9779
9779
|
}
|
|
9780
9780
|
function _define_property$1S(obj, key, value) {
|
|
@@ -10041,7 +10041,7 @@ var AbstractChatCompletionRunner = /*#__PURE__*/ function(EventStream) {
|
|
|
10041
10041
|
_inherits$1n(AbstractChatCompletionRunner, EventStream);
|
|
10042
10042
|
var _super = _create_super$1n(AbstractChatCompletionRunner);
|
|
10043
10043
|
function AbstractChatCompletionRunner() {
|
|
10044
|
-
_class_call_check$
|
|
10044
|
+
_class_call_check$1G(this, AbstractChatCompletionRunner);
|
|
10045
10045
|
var _this;
|
|
10046
10046
|
_this = _super.call.apply(_super, [
|
|
10047
10047
|
this
|
|
@@ -10051,7 +10051,7 @@ var AbstractChatCompletionRunner = /*#__PURE__*/ function(EventStream) {
|
|
|
10051
10051
|
_this.messages = [];
|
|
10052
10052
|
return _this;
|
|
10053
10053
|
}
|
|
10054
|
-
_create_class$
|
|
10054
|
+
_create_class$1p(AbstractChatCompletionRunner, [
|
|
10055
10055
|
{
|
|
10056
10056
|
key: "_addChatCompletion",
|
|
10057
10057
|
value: function _addChatCompletion(chatCompletion) {
|
|
@@ -10936,12 +10936,12 @@ function _assert_this_initialized$1m(self) {
|
|
|
10936
10936
|
}
|
|
10937
10937
|
return self;
|
|
10938
10938
|
}
|
|
10939
|
-
function _class_call_check$
|
|
10939
|
+
function _class_call_check$1F(instance, Constructor) {
|
|
10940
10940
|
if (!(instance instanceof Constructor)) {
|
|
10941
10941
|
throw new TypeError("Cannot call a class as a function");
|
|
10942
10942
|
}
|
|
10943
10943
|
}
|
|
10944
|
-
function _defineProperties$
|
|
10944
|
+
function _defineProperties$1o(target, props) {
|
|
10945
10945
|
for(var i = 0; i < props.length; i++){
|
|
10946
10946
|
var descriptor = props[i];
|
|
10947
10947
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10950,9 +10950,9 @@ function _defineProperties$1n(target, props) {
|
|
|
10950
10950
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10951
10951
|
}
|
|
10952
10952
|
}
|
|
10953
|
-
function _create_class$
|
|
10954
|
-
if (protoProps) _defineProperties$
|
|
10955
|
-
if (staticProps) _defineProperties$
|
|
10953
|
+
function _create_class$1o(Constructor, protoProps, staticProps) {
|
|
10954
|
+
if (protoProps) _defineProperties$1o(Constructor.prototype, protoProps);
|
|
10955
|
+
if (staticProps) _defineProperties$1o(Constructor, staticProps);
|
|
10956
10956
|
return Constructor;
|
|
10957
10957
|
}
|
|
10958
10958
|
function _define_property$1R(obj, key, value) {
|
|
@@ -11089,10 +11089,10 @@ var ChatCompletionRunner = /*#__PURE__*/ function(AbstractChatCompletionRunner)
|
|
|
11089
11089
|
_inherits$1m(ChatCompletionRunner, AbstractChatCompletionRunner);
|
|
11090
11090
|
var _super = _create_super$1m(ChatCompletionRunner);
|
|
11091
11091
|
function ChatCompletionRunner() {
|
|
11092
|
-
_class_call_check$
|
|
11092
|
+
_class_call_check$1F(this, ChatCompletionRunner);
|
|
11093
11093
|
return _super.apply(this, arguments);
|
|
11094
11094
|
}
|
|
11095
|
-
_create_class$
|
|
11095
|
+
_create_class$1o(ChatCompletionRunner, [
|
|
11096
11096
|
{
|
|
11097
11097
|
key: "_addMessage",
|
|
11098
11098
|
value: function _addMessage(message) {
|
|
@@ -11145,7 +11145,7 @@ function _assert_this_initialized$1l(self) {
|
|
|
11145
11145
|
}
|
|
11146
11146
|
return self;
|
|
11147
11147
|
}
|
|
11148
|
-
function _class_call_check$
|
|
11148
|
+
function _class_call_check$1E(instance, Constructor) {
|
|
11149
11149
|
if (!(instance instanceof Constructor)) {
|
|
11150
11150
|
throw new TypeError("Cannot call a class as a function");
|
|
11151
11151
|
}
|
|
@@ -11291,7 +11291,7 @@ var PartialJSON = /*#__PURE__*/ function(Error1) {
|
|
|
11291
11291
|
_inherits$1l(PartialJSON, Error1);
|
|
11292
11292
|
var _super = _create_super$1l(PartialJSON);
|
|
11293
11293
|
function PartialJSON() {
|
|
11294
|
-
_class_call_check$
|
|
11294
|
+
_class_call_check$1E(this, PartialJSON);
|
|
11295
11295
|
return _super.apply(this, arguments);
|
|
11296
11296
|
}
|
|
11297
11297
|
return PartialJSON;
|
|
@@ -11300,7 +11300,7 @@ var MalformedJSON = /*#__PURE__*/ function(Error1) {
|
|
|
11300
11300
|
_inherits$1l(MalformedJSON, Error1);
|
|
11301
11301
|
var _super = _create_super$1l(MalformedJSON);
|
|
11302
11302
|
function MalformedJSON() {
|
|
11303
|
-
_class_call_check$
|
|
11303
|
+
_class_call_check$1E(this, MalformedJSON);
|
|
11304
11304
|
return _super.apply(this, arguments);
|
|
11305
11305
|
}
|
|
11306
11306
|
return MalformedJSON;
|
|
@@ -11566,12 +11566,12 @@ function _async_to_generator$K(fn) {
|
|
|
11566
11566
|
});
|
|
11567
11567
|
};
|
|
11568
11568
|
}
|
|
11569
|
-
function _class_call_check$
|
|
11569
|
+
function _class_call_check$1D(instance, Constructor) {
|
|
11570
11570
|
if (!(instance instanceof Constructor)) {
|
|
11571
11571
|
throw new TypeError("Cannot call a class as a function");
|
|
11572
11572
|
}
|
|
11573
11573
|
}
|
|
11574
|
-
function _defineProperties$
|
|
11574
|
+
function _defineProperties$1n(target, props) {
|
|
11575
11575
|
for(var i = 0; i < props.length; i++){
|
|
11576
11576
|
var descriptor = props[i];
|
|
11577
11577
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11580,9 +11580,9 @@ function _defineProperties$1m(target, props) {
|
|
|
11580
11580
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11581
11581
|
}
|
|
11582
11582
|
}
|
|
11583
|
-
function _create_class$
|
|
11584
|
-
if (protoProps) _defineProperties$
|
|
11585
|
-
if (staticProps) _defineProperties$
|
|
11583
|
+
function _create_class$1n(Constructor, protoProps, staticProps) {
|
|
11584
|
+
if (protoProps) _defineProperties$1n(Constructor.prototype, protoProps);
|
|
11585
|
+
if (staticProps) _defineProperties$1n(Constructor, staticProps);
|
|
11586
11586
|
return Constructor;
|
|
11587
11587
|
}
|
|
11588
11588
|
function _define_property$1Q(obj, key, value) {
|
|
@@ -11870,7 +11870,7 @@ var ChatCompletionStream = /*#__PURE__*/ function(AbstractChatCompletionRunner)
|
|
|
11870
11870
|
_inherits$1k(ChatCompletionStream, AbstractChatCompletionRunner);
|
|
11871
11871
|
var _super = _create_super$1k(ChatCompletionStream);
|
|
11872
11872
|
function ChatCompletionStream(params) {
|
|
11873
|
-
_class_call_check$
|
|
11873
|
+
_class_call_check$1D(this, ChatCompletionStream);
|
|
11874
11874
|
var _this;
|
|
11875
11875
|
_this = _super.call(this);
|
|
11876
11876
|
_ChatCompletionStream_instances.add(_assert_this_initialized$1k(_this));
|
|
@@ -11881,7 +11881,7 @@ var ChatCompletionStream = /*#__PURE__*/ function(AbstractChatCompletionRunner)
|
|
|
11881
11881
|
__classPrivateFieldSet$1(_assert_this_initialized$1k(_this), _ChatCompletionStream_choiceEventStates, [], "f");
|
|
11882
11882
|
return _this;
|
|
11883
11883
|
}
|
|
11884
|
-
_create_class$
|
|
11884
|
+
_create_class$1n(ChatCompletionStream, [
|
|
11885
11885
|
{
|
|
11886
11886
|
key: "currentChatCompletionSnapshot",
|
|
11887
11887
|
get: function get() {
|
|
@@ -12830,12 +12830,12 @@ function _assert_this_initialized$1j(self) {
|
|
|
12830
12830
|
}
|
|
12831
12831
|
return self;
|
|
12832
12832
|
}
|
|
12833
|
-
function _class_call_check$
|
|
12833
|
+
function _class_call_check$1C(instance, Constructor) {
|
|
12834
12834
|
if (!(instance instanceof Constructor)) {
|
|
12835
12835
|
throw new TypeError("Cannot call a class as a function");
|
|
12836
12836
|
}
|
|
12837
12837
|
}
|
|
12838
|
-
function _defineProperties$
|
|
12838
|
+
function _defineProperties$1m(target, props) {
|
|
12839
12839
|
for(var i = 0; i < props.length; i++){
|
|
12840
12840
|
var descriptor = props[i];
|
|
12841
12841
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12844,8 +12844,8 @@ function _defineProperties$1l(target, props) {
|
|
|
12844
12844
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12845
12845
|
}
|
|
12846
12846
|
}
|
|
12847
|
-
function _create_class$
|
|
12848
|
-
if (staticProps) _defineProperties$
|
|
12847
|
+
function _create_class$1m(Constructor, protoProps, staticProps) {
|
|
12848
|
+
if (staticProps) _defineProperties$1m(Constructor, staticProps);
|
|
12849
12849
|
return Constructor;
|
|
12850
12850
|
}
|
|
12851
12851
|
function _define_property$1P(obj, key, value) {
|
|
@@ -12959,10 +12959,10 @@ var ChatCompletionStreamingRunner = /*#__PURE__*/ function(ChatCompletionStream)
|
|
|
12959
12959
|
_inherits$1j(ChatCompletionStreamingRunner, ChatCompletionStream);
|
|
12960
12960
|
var _super = _create_super$1j(ChatCompletionStreamingRunner);
|
|
12961
12961
|
function ChatCompletionStreamingRunner() {
|
|
12962
|
-
_class_call_check$
|
|
12962
|
+
_class_call_check$1C(this, ChatCompletionStreamingRunner);
|
|
12963
12963
|
return _super.apply(this, arguments);
|
|
12964
12964
|
}
|
|
12965
|
-
_create_class$
|
|
12965
|
+
_create_class$1m(ChatCompletionStreamingRunner, null, [
|
|
12966
12966
|
{
|
|
12967
12967
|
key: "fromReadableStream",
|
|
12968
12968
|
value: function fromReadableStream(stream) {
|
|
@@ -13016,12 +13016,12 @@ function _assert_this_initialized$1i(self) {
|
|
|
13016
13016
|
}
|
|
13017
13017
|
return self;
|
|
13018
13018
|
}
|
|
13019
|
-
function _class_call_check$
|
|
13019
|
+
function _class_call_check$1B(instance, Constructor) {
|
|
13020
13020
|
if (!(instance instanceof Constructor)) {
|
|
13021
13021
|
throw new TypeError("Cannot call a class as a function");
|
|
13022
13022
|
}
|
|
13023
13023
|
}
|
|
13024
|
-
function _defineProperties$
|
|
13024
|
+
function _defineProperties$1l(target, props) {
|
|
13025
13025
|
for(var i = 0; i < props.length; i++){
|
|
13026
13026
|
var descriptor = props[i];
|
|
13027
13027
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13030,8 +13030,8 @@ function _defineProperties$1k(target, props) {
|
|
|
13030
13030
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13031
13031
|
}
|
|
13032
13032
|
}
|
|
13033
|
-
function _create_class$
|
|
13034
|
-
if (protoProps) _defineProperties$
|
|
13033
|
+
function _create_class$1l(Constructor, protoProps, staticProps) {
|
|
13034
|
+
if (protoProps) _defineProperties$1l(Constructor.prototype, protoProps);
|
|
13035
13035
|
return Constructor;
|
|
13036
13036
|
}
|
|
13037
13037
|
function _define_property$1O(obj, key, value) {
|
|
@@ -13145,10 +13145,10 @@ var Completions$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
13145
13145
|
_inherits$1i(Completions, APIResource);
|
|
13146
13146
|
var _super = _create_super$1i(Completions);
|
|
13147
13147
|
function Completions() {
|
|
13148
|
-
_class_call_check$
|
|
13148
|
+
_class_call_check$1B(this, Completions);
|
|
13149
13149
|
return _super.apply(this, arguments);
|
|
13150
13150
|
}
|
|
13151
|
-
_create_class$
|
|
13151
|
+
_create_class$1l(Completions, [
|
|
13152
13152
|
{
|
|
13153
13153
|
key: "parse",
|
|
13154
13154
|
value: function parse(body, options) {
|
|
@@ -13200,7 +13200,7 @@ function _assert_this_initialized$1h(self) {
|
|
|
13200
13200
|
}
|
|
13201
13201
|
return self;
|
|
13202
13202
|
}
|
|
13203
|
-
function _class_call_check$
|
|
13203
|
+
function _class_call_check$1A(instance, Constructor) {
|
|
13204
13204
|
if (!(instance instanceof Constructor)) {
|
|
13205
13205
|
throw new TypeError("Cannot call a class as a function");
|
|
13206
13206
|
}
|
|
@@ -13269,7 +13269,7 @@ var Chat = /*#__PURE__*/ function(APIResource) {
|
|
|
13269
13269
|
_inherits$1h(Chat, APIResource);
|
|
13270
13270
|
var _super = _create_super$1h(Chat);
|
|
13271
13271
|
function Chat() {
|
|
13272
|
-
_class_call_check$
|
|
13272
|
+
_class_call_check$1A(this, Chat);
|
|
13273
13273
|
var _this;
|
|
13274
13274
|
_this = _super.call.apply(_super, [
|
|
13275
13275
|
this
|
|
@@ -13290,12 +13290,12 @@ function _assert_this_initialized$1g(self) {
|
|
|
13290
13290
|
}
|
|
13291
13291
|
return self;
|
|
13292
13292
|
}
|
|
13293
|
-
function _class_call_check$
|
|
13293
|
+
function _class_call_check$1z(instance, Constructor) {
|
|
13294
13294
|
if (!(instance instanceof Constructor)) {
|
|
13295
13295
|
throw new TypeError("Cannot call a class as a function");
|
|
13296
13296
|
}
|
|
13297
13297
|
}
|
|
13298
|
-
function _defineProperties$
|
|
13298
|
+
function _defineProperties$1k(target, props) {
|
|
13299
13299
|
for(var i = 0; i < props.length; i++){
|
|
13300
13300
|
var descriptor = props[i];
|
|
13301
13301
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13304,8 +13304,8 @@ function _defineProperties$1j(target, props) {
|
|
|
13304
13304
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13305
13305
|
}
|
|
13306
13306
|
}
|
|
13307
|
-
function _create_class$
|
|
13308
|
-
if (protoProps) _defineProperties$
|
|
13307
|
+
function _create_class$1k(Constructor, protoProps, staticProps) {
|
|
13308
|
+
if (protoProps) _defineProperties$1k(Constructor.prototype, protoProps);
|
|
13309
13309
|
return Constructor;
|
|
13310
13310
|
}
|
|
13311
13311
|
function _define_property$1N(obj, key, value) {
|
|
@@ -13419,10 +13419,10 @@ var Sessions = /*#__PURE__*/ function(APIResource) {
|
|
|
13419
13419
|
_inherits$1g(Sessions, APIResource);
|
|
13420
13420
|
var _super = _create_super$1g(Sessions);
|
|
13421
13421
|
function Sessions() {
|
|
13422
|
-
_class_call_check$
|
|
13422
|
+
_class_call_check$1z(this, Sessions);
|
|
13423
13423
|
return _super.apply(this, arguments);
|
|
13424
13424
|
}
|
|
13425
|
-
_create_class$
|
|
13425
|
+
_create_class$1k(Sessions, [
|
|
13426
13426
|
{
|
|
13427
13427
|
/**
|
|
13428
13428
|
* Create an ephemeral API token for use in client-side applications with the
|
|
@@ -13461,12 +13461,12 @@ function _assert_this_initialized$1f(self) {
|
|
|
13461
13461
|
}
|
|
13462
13462
|
return self;
|
|
13463
13463
|
}
|
|
13464
|
-
function _class_call_check$
|
|
13464
|
+
function _class_call_check$1y(instance, Constructor) {
|
|
13465
13465
|
if (!(instance instanceof Constructor)) {
|
|
13466
13466
|
throw new TypeError("Cannot call a class as a function");
|
|
13467
13467
|
}
|
|
13468
13468
|
}
|
|
13469
|
-
function _defineProperties$
|
|
13469
|
+
function _defineProperties$1j(target, props) {
|
|
13470
13470
|
for(var i = 0; i < props.length; i++){
|
|
13471
13471
|
var descriptor = props[i];
|
|
13472
13472
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13475,8 +13475,8 @@ function _defineProperties$1i(target, props) {
|
|
|
13475
13475
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13476
13476
|
}
|
|
13477
13477
|
}
|
|
13478
|
-
function _create_class$
|
|
13479
|
-
if (protoProps) _defineProperties$
|
|
13478
|
+
function _create_class$1j(Constructor, protoProps, staticProps) {
|
|
13479
|
+
if (protoProps) _defineProperties$1j(Constructor.prototype, protoProps);
|
|
13480
13480
|
return Constructor;
|
|
13481
13481
|
}
|
|
13482
13482
|
function _define_property$1M(obj, key, value) {
|
|
@@ -13590,10 +13590,10 @@ var TranscriptionSessions = /*#__PURE__*/ function(APIResource) {
|
|
|
13590
13590
|
_inherits$1f(TranscriptionSessions, APIResource);
|
|
13591
13591
|
var _super = _create_super$1f(TranscriptionSessions);
|
|
13592
13592
|
function TranscriptionSessions() {
|
|
13593
|
-
_class_call_check$
|
|
13593
|
+
_class_call_check$1y(this, TranscriptionSessions);
|
|
13594
13594
|
return _super.apply(this, arguments);
|
|
13595
13595
|
}
|
|
13596
|
-
_create_class$
|
|
13596
|
+
_create_class$1j(TranscriptionSessions, [
|
|
13597
13597
|
{
|
|
13598
13598
|
/**
|
|
13599
13599
|
* Create an ephemeral API token for use in client-side applications with the
|
|
@@ -13632,7 +13632,7 @@ function _assert_this_initialized$1e(self) {
|
|
|
13632
13632
|
}
|
|
13633
13633
|
return self;
|
|
13634
13634
|
}
|
|
13635
|
-
function _class_call_check$
|
|
13635
|
+
function _class_call_check$1x(instance, Constructor) {
|
|
13636
13636
|
if (!(instance instanceof Constructor)) {
|
|
13637
13637
|
throw new TypeError("Cannot call a class as a function");
|
|
13638
13638
|
}
|
|
@@ -13701,7 +13701,7 @@ var Realtime = /*#__PURE__*/ function(APIResource) {
|
|
|
13701
13701
|
_inherits$1e(Realtime, APIResource);
|
|
13702
13702
|
var _super = _create_super$1e(Realtime);
|
|
13703
13703
|
function Realtime() {
|
|
13704
|
-
_class_call_check$
|
|
13704
|
+
_class_call_check$1x(this, Realtime);
|
|
13705
13705
|
var _this;
|
|
13706
13706
|
_this = _super.call.apply(_super, [
|
|
13707
13707
|
this
|
|
@@ -13722,12 +13722,12 @@ function _assert_this_initialized$1d(self) {
|
|
|
13722
13722
|
}
|
|
13723
13723
|
return self;
|
|
13724
13724
|
}
|
|
13725
|
-
function _class_call_check$
|
|
13725
|
+
function _class_call_check$1w(instance, Constructor) {
|
|
13726
13726
|
if (!(instance instanceof Constructor)) {
|
|
13727
13727
|
throw new TypeError("Cannot call a class as a function");
|
|
13728
13728
|
}
|
|
13729
13729
|
}
|
|
13730
|
-
function _defineProperties$
|
|
13730
|
+
function _defineProperties$1i(target, props) {
|
|
13731
13731
|
for(var i = 0; i < props.length; i++){
|
|
13732
13732
|
var descriptor = props[i];
|
|
13733
13733
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13736,8 +13736,8 @@ function _defineProperties$1h(target, props) {
|
|
|
13736
13736
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13737
13737
|
}
|
|
13738
13738
|
}
|
|
13739
|
-
function _create_class$
|
|
13740
|
-
if (protoProps) _defineProperties$
|
|
13739
|
+
function _create_class$1i(Constructor, protoProps, staticProps) {
|
|
13740
|
+
if (protoProps) _defineProperties$1i(Constructor.prototype, protoProps);
|
|
13741
13741
|
return Constructor;
|
|
13742
13742
|
}
|
|
13743
13743
|
function _define_property$1L(obj, key, value) {
|
|
@@ -13853,10 +13853,10 @@ function _create_super$1d(Derived) {
|
|
|
13853
13853
|
_inherits$1d(Messages, APIResource);
|
|
13854
13854
|
var _super = _create_super$1d(Messages);
|
|
13855
13855
|
function Messages() {
|
|
13856
|
-
_class_call_check$
|
|
13856
|
+
_class_call_check$1w(this, Messages);
|
|
13857
13857
|
return _super.apply(this, arguments);
|
|
13858
13858
|
}
|
|
13859
|
-
_create_class$
|
|
13859
|
+
_create_class$1i(Messages, [
|
|
13860
13860
|
{
|
|
13861
13861
|
/**
|
|
13862
13862
|
* Create a message.
|
|
@@ -13940,7 +13940,7 @@ var MessagesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
13940
13940
|
_inherits$1d(MessagesPage, CursorPage);
|
|
13941
13941
|
var _super = _create_super$1d(MessagesPage);
|
|
13942
13942
|
function MessagesPage() {
|
|
13943
|
-
_class_call_check$
|
|
13943
|
+
_class_call_check$1w(this, MessagesPage);
|
|
13944
13944
|
return _super.apply(this, arguments);
|
|
13945
13945
|
}
|
|
13946
13946
|
return MessagesPage;
|
|
@@ -13954,12 +13954,12 @@ function _assert_this_initialized$1c(self) {
|
|
|
13954
13954
|
}
|
|
13955
13955
|
return self;
|
|
13956
13956
|
}
|
|
13957
|
-
function _class_call_check$
|
|
13957
|
+
function _class_call_check$1v(instance, Constructor) {
|
|
13958
13958
|
if (!(instance instanceof Constructor)) {
|
|
13959
13959
|
throw new TypeError("Cannot call a class as a function");
|
|
13960
13960
|
}
|
|
13961
13961
|
}
|
|
13962
|
-
function _defineProperties$
|
|
13962
|
+
function _defineProperties$1h(target, props) {
|
|
13963
13963
|
for(var i = 0; i < props.length; i++){
|
|
13964
13964
|
var descriptor = props[i];
|
|
13965
13965
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13968,8 +13968,8 @@ function _defineProperties$1g(target, props) {
|
|
|
13968
13968
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13969
13969
|
}
|
|
13970
13970
|
}
|
|
13971
|
-
function _create_class$
|
|
13972
|
-
if (protoProps) _defineProperties$
|
|
13971
|
+
function _create_class$1h(Constructor, protoProps, staticProps) {
|
|
13972
|
+
if (protoProps) _defineProperties$1h(Constructor.prototype, protoProps);
|
|
13973
13973
|
return Constructor;
|
|
13974
13974
|
}
|
|
13975
13975
|
function _define_property$1K(obj, key, value) {
|
|
@@ -14085,10 +14085,10 @@ function _create_super$1c(Derived) {
|
|
|
14085
14085
|
_inherits$1c(Steps, APIResource);
|
|
14086
14086
|
var _super = _create_super$1c(Steps);
|
|
14087
14087
|
function Steps() {
|
|
14088
|
-
_class_call_check$
|
|
14088
|
+
_class_call_check$1v(this, Steps);
|
|
14089
14089
|
return _super.apply(this, arguments);
|
|
14090
14090
|
}
|
|
14091
|
-
_create_class$
|
|
14091
|
+
_create_class$1h(Steps, [
|
|
14092
14092
|
{
|
|
14093
14093
|
key: "retrieve",
|
|
14094
14094
|
value: function retrieve(threadId, runId, stepId) {
|
|
@@ -14128,7 +14128,7 @@ var RunStepsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
14128
14128
|
_inherits$1c(RunStepsPage, CursorPage);
|
|
14129
14129
|
var _super = _create_super$1c(RunStepsPage);
|
|
14130
14130
|
function RunStepsPage() {
|
|
14131
|
-
_class_call_check$
|
|
14131
|
+
_class_call_check$1v(this, RunStepsPage);
|
|
14132
14132
|
return _super.apply(this, arguments);
|
|
14133
14133
|
}
|
|
14134
14134
|
return RunStepsPage;
|
|
@@ -14171,12 +14171,12 @@ function _async_to_generator$J(fn) {
|
|
|
14171
14171
|
});
|
|
14172
14172
|
};
|
|
14173
14173
|
}
|
|
14174
|
-
function _class_call_check$
|
|
14174
|
+
function _class_call_check$1u(instance, Constructor) {
|
|
14175
14175
|
if (!(instance instanceof Constructor)) {
|
|
14176
14176
|
throw new TypeError("Cannot call a class as a function");
|
|
14177
14177
|
}
|
|
14178
14178
|
}
|
|
14179
|
-
function _defineProperties$
|
|
14179
|
+
function _defineProperties$1g(target, props) {
|
|
14180
14180
|
for(var i = 0; i < props.length; i++){
|
|
14181
14181
|
var descriptor = props[i];
|
|
14182
14182
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14185,8 +14185,8 @@ function _defineProperties$1f(target, props) {
|
|
|
14185
14185
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14186
14186
|
}
|
|
14187
14187
|
}
|
|
14188
|
-
function _create_class$
|
|
14189
|
-
if (protoProps) _defineProperties$
|
|
14188
|
+
function _create_class$1g(Constructor, protoProps, staticProps) {
|
|
14189
|
+
if (protoProps) _defineProperties$1g(Constructor.prototype, protoProps);
|
|
14190
14190
|
return Constructor;
|
|
14191
14191
|
}
|
|
14192
14192
|
function _define_property$1J(obj, key, value) {
|
|
@@ -14424,7 +14424,7 @@ function _ts_generator$L(thisArg, body) {
|
|
|
14424
14424
|
_inherits$1b(Runs, APIResource);
|
|
14425
14425
|
var _super = _create_super$1b(Runs);
|
|
14426
14426
|
function Runs() {
|
|
14427
|
-
_class_call_check$
|
|
14427
|
+
_class_call_check$1u(this, Runs);
|
|
14428
14428
|
var _this;
|
|
14429
14429
|
_this = _super.call.apply(_super, [
|
|
14430
14430
|
this
|
|
@@ -14432,7 +14432,7 @@ function _ts_generator$L(thisArg, body) {
|
|
|
14432
14432
|
_this.steps = new Steps(_this._client);
|
|
14433
14433
|
return _this;
|
|
14434
14434
|
}
|
|
14435
|
-
_create_class$
|
|
14435
|
+
_create_class$1g(Runs, [
|
|
14436
14436
|
{
|
|
14437
14437
|
key: "create",
|
|
14438
14438
|
value: function create(threadId, params, options) {
|
|
@@ -14751,7 +14751,7 @@ var RunsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
14751
14751
|
_inherits$1b(RunsPage, CursorPage);
|
|
14752
14752
|
var _super = _create_super$1b(RunsPage);
|
|
14753
14753
|
function RunsPage() {
|
|
14754
|
-
_class_call_check$
|
|
14754
|
+
_class_call_check$1u(this, RunsPage);
|
|
14755
14755
|
return _super.apply(this, arguments);
|
|
14756
14756
|
}
|
|
14757
14757
|
return RunsPage;
|
|
@@ -14796,12 +14796,12 @@ function _async_to_generator$I(fn) {
|
|
|
14796
14796
|
});
|
|
14797
14797
|
};
|
|
14798
14798
|
}
|
|
14799
|
-
function _class_call_check$
|
|
14799
|
+
function _class_call_check$1t(instance, Constructor) {
|
|
14800
14800
|
if (!(instance instanceof Constructor)) {
|
|
14801
14801
|
throw new TypeError("Cannot call a class as a function");
|
|
14802
14802
|
}
|
|
14803
14803
|
}
|
|
14804
|
-
function _defineProperties$
|
|
14804
|
+
function _defineProperties$1f(target, props) {
|
|
14805
14805
|
for(var i = 0; i < props.length; i++){
|
|
14806
14806
|
var descriptor = props[i];
|
|
14807
14807
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14810,8 +14810,8 @@ function _defineProperties$1e(target, props) {
|
|
|
14810
14810
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14811
14811
|
}
|
|
14812
14812
|
}
|
|
14813
|
-
function _create_class$
|
|
14814
|
-
if (protoProps) _defineProperties$
|
|
14813
|
+
function _create_class$1f(Constructor, protoProps, staticProps) {
|
|
14814
|
+
if (protoProps) _defineProperties$1f(Constructor.prototype, protoProps);
|
|
14815
14815
|
return Constructor;
|
|
14816
14816
|
}
|
|
14817
14817
|
function _define_property$1I(obj, key, value) {
|
|
@@ -15022,7 +15022,7 @@ function _ts_generator$K(thisArg, body) {
|
|
|
15022
15022
|
_inherits$1a(Threads, APIResource);
|
|
15023
15023
|
var _super = _create_super$1a(Threads);
|
|
15024
15024
|
function Threads() {
|
|
15025
|
-
_class_call_check$
|
|
15025
|
+
_class_call_check$1t(this, Threads);
|
|
15026
15026
|
var _this;
|
|
15027
15027
|
_this = _super.call.apply(_super, [
|
|
15028
15028
|
this
|
|
@@ -15031,7 +15031,7 @@ function _ts_generator$K(thisArg, body) {
|
|
|
15031
15031
|
_this.messages = new Messages(_this._client);
|
|
15032
15032
|
return _this;
|
|
15033
15033
|
}
|
|
15034
|
-
_create_class$
|
|
15034
|
+
_create_class$1f(Threads, [
|
|
15035
15035
|
{
|
|
15036
15036
|
key: "create",
|
|
15037
15037
|
value: function create() {
|
|
@@ -15162,7 +15162,7 @@ function _assert_this_initialized$19(self) {
|
|
|
15162
15162
|
}
|
|
15163
15163
|
return self;
|
|
15164
15164
|
}
|
|
15165
|
-
function _class_call_check$
|
|
15165
|
+
function _class_call_check$1s(instance, Constructor) {
|
|
15166
15166
|
if (!(instance instanceof Constructor)) {
|
|
15167
15167
|
throw new TypeError("Cannot call a class as a function");
|
|
15168
15168
|
}
|
|
@@ -15231,7 +15231,7 @@ var Beta = /*#__PURE__*/ function(APIResource) {
|
|
|
15231
15231
|
_inherits$19(Beta, APIResource);
|
|
15232
15232
|
var _super = _create_super$19(Beta);
|
|
15233
15233
|
function Beta() {
|
|
15234
|
-
_class_call_check$
|
|
15234
|
+
_class_call_check$1s(this, Beta);
|
|
15235
15235
|
var _this;
|
|
15236
15236
|
_this = _super.call.apply(_super, [
|
|
15237
15237
|
this
|
|
@@ -15256,12 +15256,12 @@ function _assert_this_initialized$18(self) {
|
|
|
15256
15256
|
}
|
|
15257
15257
|
return self;
|
|
15258
15258
|
}
|
|
15259
|
-
function _class_call_check$
|
|
15259
|
+
function _class_call_check$1r(instance, Constructor) {
|
|
15260
15260
|
if (!(instance instanceof Constructor)) {
|
|
15261
15261
|
throw new TypeError("Cannot call a class as a function");
|
|
15262
15262
|
}
|
|
15263
15263
|
}
|
|
15264
|
-
function _defineProperties$
|
|
15264
|
+
function _defineProperties$1e(target, props) {
|
|
15265
15265
|
for(var i = 0; i < props.length; i++){
|
|
15266
15266
|
var descriptor = props[i];
|
|
15267
15267
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15270,8 +15270,8 @@ function _defineProperties$1d(target, props) {
|
|
|
15270
15270
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15271
15271
|
}
|
|
15272
15272
|
}
|
|
15273
|
-
function _create_class$
|
|
15274
|
-
if (protoProps) _defineProperties$
|
|
15273
|
+
function _create_class$1e(Constructor, protoProps, staticProps) {
|
|
15274
|
+
if (protoProps) _defineProperties$1e(Constructor.prototype, protoProps);
|
|
15275
15275
|
return Constructor;
|
|
15276
15276
|
}
|
|
15277
15277
|
function _define_property$1H(obj, key, value) {
|
|
@@ -15385,10 +15385,10 @@ var Completions = /*#__PURE__*/ function(APIResource) {
|
|
|
15385
15385
|
_inherits$18(Completions, APIResource);
|
|
15386
15386
|
var _super = _create_super$18(Completions);
|
|
15387
15387
|
function Completions() {
|
|
15388
|
-
_class_call_check$
|
|
15388
|
+
_class_call_check$1r(this, Completions);
|
|
15389
15389
|
return _super.apply(this, arguments);
|
|
15390
15390
|
}
|
|
15391
|
-
_create_class$
|
|
15391
|
+
_create_class$1e(Completions, [
|
|
15392
15392
|
{
|
|
15393
15393
|
key: "create",
|
|
15394
15394
|
value: function create(body, options) {
|
|
@@ -15412,12 +15412,12 @@ function _assert_this_initialized$17(self) {
|
|
|
15412
15412
|
}
|
|
15413
15413
|
return self;
|
|
15414
15414
|
}
|
|
15415
|
-
function _class_call_check$
|
|
15415
|
+
function _class_call_check$1q(instance, Constructor) {
|
|
15416
15416
|
if (!(instance instanceof Constructor)) {
|
|
15417
15417
|
throw new TypeError("Cannot call a class as a function");
|
|
15418
15418
|
}
|
|
15419
15419
|
}
|
|
15420
|
-
function _defineProperties$
|
|
15420
|
+
function _defineProperties$1d(target, props) {
|
|
15421
15421
|
for(var i = 0; i < props.length; i++){
|
|
15422
15422
|
var descriptor = props[i];
|
|
15423
15423
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15426,8 +15426,8 @@ function _defineProperties$1c(target, props) {
|
|
|
15426
15426
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15427
15427
|
}
|
|
15428
15428
|
}
|
|
15429
|
-
function _create_class$
|
|
15430
|
-
if (protoProps) _defineProperties$
|
|
15429
|
+
function _create_class$1d(Constructor, protoProps, staticProps) {
|
|
15430
|
+
if (protoProps) _defineProperties$1d(Constructor.prototype, protoProps);
|
|
15431
15431
|
return Constructor;
|
|
15432
15432
|
}
|
|
15433
15433
|
function _define_property$1G(obj, key, value) {
|
|
@@ -15541,10 +15541,10 @@ var Content = /*#__PURE__*/ function(APIResource) {
|
|
|
15541
15541
|
_inherits$17(Content, APIResource);
|
|
15542
15542
|
var _super = _create_super$17(Content);
|
|
15543
15543
|
function Content() {
|
|
15544
|
-
_class_call_check$
|
|
15544
|
+
_class_call_check$1q(this, Content);
|
|
15545
15545
|
return _super.apply(this, arguments);
|
|
15546
15546
|
}
|
|
15547
|
-
_create_class$
|
|
15547
|
+
_create_class$1d(Content, [
|
|
15548
15548
|
{
|
|
15549
15549
|
/**
|
|
15550
15550
|
* Retrieve Container File Content
|
|
@@ -15570,12 +15570,12 @@ function _assert_this_initialized$16(self) {
|
|
|
15570
15570
|
}
|
|
15571
15571
|
return self;
|
|
15572
15572
|
}
|
|
15573
|
-
function _class_call_check$
|
|
15573
|
+
function _class_call_check$1p(instance, Constructor) {
|
|
15574
15574
|
if (!(instance instanceof Constructor)) {
|
|
15575
15575
|
throw new TypeError("Cannot call a class as a function");
|
|
15576
15576
|
}
|
|
15577
15577
|
}
|
|
15578
|
-
function _defineProperties$
|
|
15578
|
+
function _defineProperties$1c(target, props) {
|
|
15579
15579
|
for(var i = 0; i < props.length; i++){
|
|
15580
15580
|
var descriptor = props[i];
|
|
15581
15581
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15584,8 +15584,8 @@ function _defineProperties$1b(target, props) {
|
|
|
15584
15584
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15585
15585
|
}
|
|
15586
15586
|
}
|
|
15587
|
-
function _create_class$
|
|
15588
|
-
if (protoProps) _defineProperties$
|
|
15587
|
+
function _create_class$1c(Constructor, protoProps, staticProps) {
|
|
15588
|
+
if (protoProps) _defineProperties$1c(Constructor.prototype, protoProps);
|
|
15589
15589
|
return Constructor;
|
|
15590
15590
|
}
|
|
15591
15591
|
function _define_property$1F(obj, key, value) {
|
|
@@ -15699,7 +15699,7 @@ var Files$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
15699
15699
|
_inherits$16(Files, APIResource);
|
|
15700
15700
|
var _super = _create_super$16(Files);
|
|
15701
15701
|
function Files() {
|
|
15702
|
-
_class_call_check$
|
|
15702
|
+
_class_call_check$1p(this, Files);
|
|
15703
15703
|
var _this;
|
|
15704
15704
|
_this = _super.call.apply(_super, [
|
|
15705
15705
|
this
|
|
@@ -15707,7 +15707,7 @@ var Files$2 = /*#__PURE__*/ function(APIResource) {
|
|
|
15707
15707
|
_this.content = new Content(_this._client);
|
|
15708
15708
|
return _this;
|
|
15709
15709
|
}
|
|
15710
|
-
_create_class$
|
|
15710
|
+
_create_class$1c(Files, [
|
|
15711
15711
|
{
|
|
15712
15712
|
/**
|
|
15713
15713
|
* Create a Container File
|
|
@@ -15760,7 +15760,7 @@ var FileListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
15760
15760
|
_inherits$16(FileListResponsesPage, CursorPage);
|
|
15761
15761
|
var _super = _create_super$16(FileListResponsesPage);
|
|
15762
15762
|
function FileListResponsesPage() {
|
|
15763
|
-
_class_call_check$
|
|
15763
|
+
_class_call_check$1p(this, FileListResponsesPage);
|
|
15764
15764
|
return _super.apply(this, arguments);
|
|
15765
15765
|
}
|
|
15766
15766
|
return FileListResponsesPage;
|
|
@@ -15775,12 +15775,12 @@ function _assert_this_initialized$15(self) {
|
|
|
15775
15775
|
}
|
|
15776
15776
|
return self;
|
|
15777
15777
|
}
|
|
15778
|
-
function _class_call_check$
|
|
15778
|
+
function _class_call_check$1o(instance, Constructor) {
|
|
15779
15779
|
if (!(instance instanceof Constructor)) {
|
|
15780
15780
|
throw new TypeError("Cannot call a class as a function");
|
|
15781
15781
|
}
|
|
15782
15782
|
}
|
|
15783
|
-
function _defineProperties$
|
|
15783
|
+
function _defineProperties$1b(target, props) {
|
|
15784
15784
|
for(var i = 0; i < props.length; i++){
|
|
15785
15785
|
var descriptor = props[i];
|
|
15786
15786
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15789,8 +15789,8 @@ function _defineProperties$1a(target, props) {
|
|
|
15789
15789
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15790
15790
|
}
|
|
15791
15791
|
}
|
|
15792
|
-
function _create_class$
|
|
15793
|
-
if (protoProps) _defineProperties$
|
|
15792
|
+
function _create_class$1b(Constructor, protoProps, staticProps) {
|
|
15793
|
+
if (protoProps) _defineProperties$1b(Constructor.prototype, protoProps);
|
|
15794
15794
|
return Constructor;
|
|
15795
15795
|
}
|
|
15796
15796
|
function _define_property$1E(obj, key, value) {
|
|
@@ -15904,7 +15904,7 @@ var Containers = /*#__PURE__*/ function(APIResource) {
|
|
|
15904
15904
|
_inherits$15(Containers, APIResource);
|
|
15905
15905
|
var _super = _create_super$15(Containers);
|
|
15906
15906
|
function Containers() {
|
|
15907
|
-
_class_call_check$
|
|
15907
|
+
_class_call_check$1o(this, Containers);
|
|
15908
15908
|
var _this;
|
|
15909
15909
|
_this = _super.call.apply(_super, [
|
|
15910
15910
|
this
|
|
@@ -15912,7 +15912,7 @@ var Containers = /*#__PURE__*/ function(APIResource) {
|
|
|
15912
15912
|
_this.files = new Files$2(_this._client);
|
|
15913
15913
|
return _this;
|
|
15914
15914
|
}
|
|
15915
|
-
_create_class$
|
|
15915
|
+
_create_class$1b(Containers, [
|
|
15916
15916
|
{
|
|
15917
15917
|
/**
|
|
15918
15918
|
* Create Container
|
|
@@ -15962,7 +15962,7 @@ var ContainerListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
15962
15962
|
_inherits$15(ContainerListResponsesPage, CursorPage);
|
|
15963
15963
|
var _super = _create_super$15(ContainerListResponsesPage);
|
|
15964
15964
|
function ContainerListResponsesPage() {
|
|
15965
|
-
_class_call_check$
|
|
15965
|
+
_class_call_check$1o(this, ContainerListResponsesPage);
|
|
15966
15966
|
return _super.apply(this, arguments);
|
|
15967
15967
|
}
|
|
15968
15968
|
return ContainerListResponsesPage;
|
|
@@ -15978,12 +15978,12 @@ function _assert_this_initialized$14(self) {
|
|
|
15978
15978
|
}
|
|
15979
15979
|
return self;
|
|
15980
15980
|
}
|
|
15981
|
-
function _class_call_check$
|
|
15981
|
+
function _class_call_check$1n(instance, Constructor) {
|
|
15982
15982
|
if (!(instance instanceof Constructor)) {
|
|
15983
15983
|
throw new TypeError("Cannot call a class as a function");
|
|
15984
15984
|
}
|
|
15985
15985
|
}
|
|
15986
|
-
function _defineProperties$
|
|
15986
|
+
function _defineProperties$1a(target, props) {
|
|
15987
15987
|
for(var i = 0; i < props.length; i++){
|
|
15988
15988
|
var descriptor = props[i];
|
|
15989
15989
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15992,8 +15992,8 @@ function _defineProperties$19(target, props) {
|
|
|
15992
15992
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15993
15993
|
}
|
|
15994
15994
|
}
|
|
15995
|
-
function _create_class$
|
|
15996
|
-
if (protoProps) _defineProperties$
|
|
15995
|
+
function _create_class$1a(Constructor, protoProps, staticProps) {
|
|
15996
|
+
if (protoProps) _defineProperties$1a(Constructor.prototype, protoProps);
|
|
15997
15997
|
return Constructor;
|
|
15998
15998
|
}
|
|
15999
15999
|
function _define_property$1D(obj, key, value) {
|
|
@@ -16107,10 +16107,10 @@ var Embeddings$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
16107
16107
|
_inherits$14(Embeddings, APIResource);
|
|
16108
16108
|
var _super = _create_super$14(Embeddings);
|
|
16109
16109
|
function Embeddings() {
|
|
16110
|
-
_class_call_check$
|
|
16110
|
+
_class_call_check$1n(this, Embeddings);
|
|
16111
16111
|
return _super.apply(this, arguments);
|
|
16112
16112
|
}
|
|
16113
|
-
_create_class$
|
|
16113
|
+
_create_class$1a(Embeddings, [
|
|
16114
16114
|
{
|
|
16115
16115
|
/**
|
|
16116
16116
|
* Creates an embedding vector representing the input text.
|
|
@@ -16169,12 +16169,12 @@ function _assert_this_initialized$13(self) {
|
|
|
16169
16169
|
}
|
|
16170
16170
|
return self;
|
|
16171
16171
|
}
|
|
16172
|
-
function _class_call_check$
|
|
16172
|
+
function _class_call_check$1m(instance, Constructor) {
|
|
16173
16173
|
if (!(instance instanceof Constructor)) {
|
|
16174
16174
|
throw new TypeError("Cannot call a class as a function");
|
|
16175
16175
|
}
|
|
16176
16176
|
}
|
|
16177
|
-
function _defineProperties$
|
|
16177
|
+
function _defineProperties$19(target, props) {
|
|
16178
16178
|
for(var i = 0; i < props.length; i++){
|
|
16179
16179
|
var descriptor = props[i];
|
|
16180
16180
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16183,8 +16183,8 @@ function _defineProperties$18(target, props) {
|
|
|
16183
16183
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16184
16184
|
}
|
|
16185
16185
|
}
|
|
16186
|
-
function _create_class$
|
|
16187
|
-
if (protoProps) _defineProperties$
|
|
16186
|
+
function _create_class$19(Constructor, protoProps, staticProps) {
|
|
16187
|
+
if (protoProps) _defineProperties$19(Constructor.prototype, protoProps);
|
|
16188
16188
|
return Constructor;
|
|
16189
16189
|
}
|
|
16190
16190
|
function _define_property$1C(obj, key, value) {
|
|
@@ -16279,10 +16279,10 @@ var OutputItems = /*#__PURE__*/ function(APIResource) {
|
|
|
16279
16279
|
_inherits$13(OutputItems, APIResource);
|
|
16280
16280
|
var _super = _create_super$13(OutputItems);
|
|
16281
16281
|
function OutputItems() {
|
|
16282
|
-
_class_call_check$
|
|
16282
|
+
_class_call_check$1m(this, OutputItems);
|
|
16283
16283
|
return _super.apply(this, arguments);
|
|
16284
16284
|
}
|
|
16285
|
-
_create_class$
|
|
16285
|
+
_create_class$19(OutputItems, [
|
|
16286
16286
|
{
|
|
16287
16287
|
/**
|
|
16288
16288
|
* Get an evaluation run output item by ID.
|
|
@@ -16310,7 +16310,7 @@ var OutputItemListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
16310
16310
|
_inherits$13(OutputItemListResponsesPage, CursorPage);
|
|
16311
16311
|
var _super = _create_super$13(OutputItemListResponsesPage);
|
|
16312
16312
|
function OutputItemListResponsesPage() {
|
|
16313
|
-
_class_call_check$
|
|
16313
|
+
_class_call_check$1m(this, OutputItemListResponsesPage);
|
|
16314
16314
|
return _super.apply(this, arguments);
|
|
16315
16315
|
}
|
|
16316
16316
|
return OutputItemListResponsesPage;
|
|
@@ -16324,12 +16324,12 @@ function _assert_this_initialized$12(self) {
|
|
|
16324
16324
|
}
|
|
16325
16325
|
return self;
|
|
16326
16326
|
}
|
|
16327
|
-
function _class_call_check$
|
|
16327
|
+
function _class_call_check$1l(instance, Constructor) {
|
|
16328
16328
|
if (!(instance instanceof Constructor)) {
|
|
16329
16329
|
throw new TypeError("Cannot call a class as a function");
|
|
16330
16330
|
}
|
|
16331
16331
|
}
|
|
16332
|
-
function _defineProperties$
|
|
16332
|
+
function _defineProperties$18(target, props) {
|
|
16333
16333
|
for(var i = 0; i < props.length; i++){
|
|
16334
16334
|
var descriptor = props[i];
|
|
16335
16335
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16338,8 +16338,8 @@ function _defineProperties$17(target, props) {
|
|
|
16338
16338
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16339
16339
|
}
|
|
16340
16340
|
}
|
|
16341
|
-
function _create_class$
|
|
16342
|
-
if (protoProps) _defineProperties$
|
|
16341
|
+
function _create_class$18(Constructor, protoProps, staticProps) {
|
|
16342
|
+
if (protoProps) _defineProperties$18(Constructor.prototype, protoProps);
|
|
16343
16343
|
return Constructor;
|
|
16344
16344
|
}
|
|
16345
16345
|
function _define_property$1B(obj, key, value) {
|
|
@@ -16434,7 +16434,7 @@ var Runs = /*#__PURE__*/ function(APIResource) {
|
|
|
16434
16434
|
_inherits$12(Runs, APIResource);
|
|
16435
16435
|
var _super = _create_super$12(Runs);
|
|
16436
16436
|
function Runs() {
|
|
16437
|
-
_class_call_check$
|
|
16437
|
+
_class_call_check$1l(this, Runs);
|
|
16438
16438
|
var _this;
|
|
16439
16439
|
_this = _super.call.apply(_super, [
|
|
16440
16440
|
this
|
|
@@ -16442,7 +16442,7 @@ var Runs = /*#__PURE__*/ function(APIResource) {
|
|
|
16442
16442
|
_this.outputItems = new OutputItems(_this._client);
|
|
16443
16443
|
return _this;
|
|
16444
16444
|
}
|
|
16445
|
-
_create_class$
|
|
16445
|
+
_create_class$18(Runs, [
|
|
16446
16446
|
{
|
|
16447
16447
|
/**
|
|
16448
16448
|
* Kicks off a new run for a given evaluation, specifying the data source, and what
|
|
@@ -16498,7 +16498,7 @@ var RunListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
16498
16498
|
_inherits$12(RunListResponsesPage, CursorPage);
|
|
16499
16499
|
var _super = _create_super$12(RunListResponsesPage);
|
|
16500
16500
|
function RunListResponsesPage() {
|
|
16501
|
-
_class_call_check$
|
|
16501
|
+
_class_call_check$1l(this, RunListResponsesPage);
|
|
16502
16502
|
return _super.apply(this, arguments);
|
|
16503
16503
|
}
|
|
16504
16504
|
return RunListResponsesPage;
|
|
@@ -16514,12 +16514,12 @@ function _assert_this_initialized$11(self) {
|
|
|
16514
16514
|
}
|
|
16515
16515
|
return self;
|
|
16516
16516
|
}
|
|
16517
|
-
function _class_call_check$
|
|
16517
|
+
function _class_call_check$1k(instance, Constructor) {
|
|
16518
16518
|
if (!(instance instanceof Constructor)) {
|
|
16519
16519
|
throw new TypeError("Cannot call a class as a function");
|
|
16520
16520
|
}
|
|
16521
16521
|
}
|
|
16522
|
-
function _defineProperties$
|
|
16522
|
+
function _defineProperties$17(target, props) {
|
|
16523
16523
|
for(var i = 0; i < props.length; i++){
|
|
16524
16524
|
var descriptor = props[i];
|
|
16525
16525
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16528,8 +16528,8 @@ function _defineProperties$16(target, props) {
|
|
|
16528
16528
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16529
16529
|
}
|
|
16530
16530
|
}
|
|
16531
|
-
function _create_class$
|
|
16532
|
-
if (protoProps) _defineProperties$
|
|
16531
|
+
function _create_class$17(Constructor, protoProps, staticProps) {
|
|
16532
|
+
if (protoProps) _defineProperties$17(Constructor.prototype, protoProps);
|
|
16533
16533
|
return Constructor;
|
|
16534
16534
|
}
|
|
16535
16535
|
function _define_property$1A(obj, key, value) {
|
|
@@ -16624,7 +16624,7 @@ var Evals = /*#__PURE__*/ function(APIResource) {
|
|
|
16624
16624
|
_inherits$11(Evals, APIResource);
|
|
16625
16625
|
var _super = _create_super$11(Evals);
|
|
16626
16626
|
function Evals() {
|
|
16627
|
-
_class_call_check$
|
|
16627
|
+
_class_call_check$1k(this, Evals);
|
|
16628
16628
|
var _this;
|
|
16629
16629
|
_this = _super.call.apply(_super, [
|
|
16630
16630
|
this
|
|
@@ -16632,7 +16632,7 @@ var Evals = /*#__PURE__*/ function(APIResource) {
|
|
|
16632
16632
|
_this.runs = new Runs(_this._client);
|
|
16633
16633
|
return _this;
|
|
16634
16634
|
}
|
|
16635
|
-
_create_class$
|
|
16635
|
+
_create_class$17(Evals, [
|
|
16636
16636
|
{
|
|
16637
16637
|
/**
|
|
16638
16638
|
* Create the structure of an evaluation that can be used to test a model's
|
|
@@ -16693,7 +16693,7 @@ var EvalListResponsesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
16693
16693
|
_inherits$11(EvalListResponsesPage, CursorPage);
|
|
16694
16694
|
var _super = _create_super$11(EvalListResponsesPage);
|
|
16695
16695
|
function EvalListResponsesPage() {
|
|
16696
|
-
_class_call_check$
|
|
16696
|
+
_class_call_check$1k(this, EvalListResponsesPage);
|
|
16697
16697
|
return _super.apply(this, arguments);
|
|
16698
16698
|
}
|
|
16699
16699
|
return EvalListResponsesPage;
|
|
@@ -16738,12 +16738,12 @@ function _async_to_generator$H(fn) {
|
|
|
16738
16738
|
});
|
|
16739
16739
|
};
|
|
16740
16740
|
}
|
|
16741
|
-
function _class_call_check$
|
|
16741
|
+
function _class_call_check$1j(instance, Constructor) {
|
|
16742
16742
|
if (!(instance instanceof Constructor)) {
|
|
16743
16743
|
throw new TypeError("Cannot call a class as a function");
|
|
16744
16744
|
}
|
|
16745
16745
|
}
|
|
16746
|
-
function _defineProperties$
|
|
16746
|
+
function _defineProperties$16(target, props) {
|
|
16747
16747
|
for(var i = 0; i < props.length; i++){
|
|
16748
16748
|
var descriptor = props[i];
|
|
16749
16749
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16752,8 +16752,8 @@ function _defineProperties$15(target, props) {
|
|
|
16752
16752
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16753
16753
|
}
|
|
16754
16754
|
}
|
|
16755
|
-
function _create_class$
|
|
16756
|
-
if (protoProps) _defineProperties$
|
|
16755
|
+
function _create_class$16(Constructor, protoProps, staticProps) {
|
|
16756
|
+
if (protoProps) _defineProperties$16(Constructor.prototype, protoProps);
|
|
16757
16757
|
return Constructor;
|
|
16758
16758
|
}
|
|
16759
16759
|
function _define_property$1z(obj, key, value) {
|
|
@@ -16962,10 +16962,10 @@ var Files$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
16962
16962
|
_inherits$10(Files, APIResource);
|
|
16963
16963
|
var _super = _create_super$10(Files);
|
|
16964
16964
|
function Files() {
|
|
16965
|
-
_class_call_check$
|
|
16965
|
+
_class_call_check$1j(this, Files);
|
|
16966
16966
|
return _super.apply(this, arguments);
|
|
16967
16967
|
}
|
|
16968
|
-
_create_class$
|
|
16968
|
+
_create_class$16(Files, [
|
|
16969
16969
|
{
|
|
16970
16970
|
/**
|
|
16971
16971
|
* Upload a file that can be used across various endpoints. Individual files can be
|
|
@@ -17115,7 +17115,7 @@ var FileObjectsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
17115
17115
|
_inherits$10(FileObjectsPage, CursorPage);
|
|
17116
17116
|
var _super = _create_super$10(FileObjectsPage);
|
|
17117
17117
|
function FileObjectsPage() {
|
|
17118
|
-
_class_call_check$
|
|
17118
|
+
_class_call_check$1j(this, FileObjectsPage);
|
|
17119
17119
|
return _super.apply(this, arguments);
|
|
17120
17120
|
}
|
|
17121
17121
|
return FileObjectsPage;
|
|
@@ -17129,7 +17129,7 @@ function _assert_this_initialized$$(self) {
|
|
|
17129
17129
|
}
|
|
17130
17130
|
return self;
|
|
17131
17131
|
}
|
|
17132
|
-
function _class_call_check$
|
|
17132
|
+
function _class_call_check$1i(instance, Constructor) {
|
|
17133
17133
|
if (!(instance instanceof Constructor)) {
|
|
17134
17134
|
throw new TypeError("Cannot call a class as a function");
|
|
17135
17135
|
}
|
|
@@ -17198,7 +17198,7 @@ var Methods = /*#__PURE__*/ function(APIResource) {
|
|
|
17198
17198
|
_inherits$$(Methods, APIResource);
|
|
17199
17199
|
var _super = _create_super$$(Methods);
|
|
17200
17200
|
function Methods() {
|
|
17201
|
-
_class_call_check$
|
|
17201
|
+
_class_call_check$1i(this, Methods);
|
|
17202
17202
|
return _super.apply(this, arguments);
|
|
17203
17203
|
}
|
|
17204
17204
|
return Methods;
|
|
@@ -17212,12 +17212,12 @@ function _assert_this_initialized$_(self) {
|
|
|
17212
17212
|
}
|
|
17213
17213
|
return self;
|
|
17214
17214
|
}
|
|
17215
|
-
function _class_call_check$
|
|
17215
|
+
function _class_call_check$1h(instance, Constructor) {
|
|
17216
17216
|
if (!(instance instanceof Constructor)) {
|
|
17217
17217
|
throw new TypeError("Cannot call a class as a function");
|
|
17218
17218
|
}
|
|
17219
17219
|
}
|
|
17220
|
-
function _defineProperties$
|
|
17220
|
+
function _defineProperties$15(target, props) {
|
|
17221
17221
|
for(var i = 0; i < props.length; i++){
|
|
17222
17222
|
var descriptor = props[i];
|
|
17223
17223
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17226,8 +17226,8 @@ function _defineProperties$14(target, props) {
|
|
|
17226
17226
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17227
17227
|
}
|
|
17228
17228
|
}
|
|
17229
|
-
function _create_class$
|
|
17230
|
-
if (protoProps) _defineProperties$
|
|
17229
|
+
function _create_class$15(Constructor, protoProps, staticProps) {
|
|
17230
|
+
if (protoProps) _defineProperties$15(Constructor.prototype, protoProps);
|
|
17231
17231
|
return Constructor;
|
|
17232
17232
|
}
|
|
17233
17233
|
function _define_property$1y(obj, key, value) {
|
|
@@ -17322,10 +17322,10 @@ var Graders$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
17322
17322
|
_inherits$_(Graders, APIResource);
|
|
17323
17323
|
var _super = _create_super$_(Graders);
|
|
17324
17324
|
function Graders() {
|
|
17325
|
-
_class_call_check$
|
|
17325
|
+
_class_call_check$1h(this, Graders);
|
|
17326
17326
|
return _super.apply(this, arguments);
|
|
17327
17327
|
}
|
|
17328
|
-
_create_class$
|
|
17328
|
+
_create_class$15(Graders, [
|
|
17329
17329
|
{
|
|
17330
17330
|
/**
|
|
17331
17331
|
* Run a grader.
|
|
@@ -17387,7 +17387,7 @@ function _assert_this_initialized$Z(self) {
|
|
|
17387
17387
|
}
|
|
17388
17388
|
return self;
|
|
17389
17389
|
}
|
|
17390
|
-
function _class_call_check$
|
|
17390
|
+
function _class_call_check$1g(instance, Constructor) {
|
|
17391
17391
|
if (!(instance instanceof Constructor)) {
|
|
17392
17392
|
throw new TypeError("Cannot call a class as a function");
|
|
17393
17393
|
}
|
|
@@ -17456,7 +17456,7 @@ var Alpha = /*#__PURE__*/ function(APIResource) {
|
|
|
17456
17456
|
_inherits$Z(Alpha, APIResource);
|
|
17457
17457
|
var _super = _create_super$Z(Alpha);
|
|
17458
17458
|
function Alpha() {
|
|
17459
|
-
_class_call_check$
|
|
17459
|
+
_class_call_check$1g(this, Alpha);
|
|
17460
17460
|
var _this;
|
|
17461
17461
|
_this = _super.call.apply(_super, [
|
|
17462
17462
|
this
|
|
@@ -17475,12 +17475,12 @@ function _assert_this_initialized$Y(self) {
|
|
|
17475
17475
|
}
|
|
17476
17476
|
return self;
|
|
17477
17477
|
}
|
|
17478
|
-
function _class_call_check$
|
|
17478
|
+
function _class_call_check$1f(instance, Constructor) {
|
|
17479
17479
|
if (!(instance instanceof Constructor)) {
|
|
17480
17480
|
throw new TypeError("Cannot call a class as a function");
|
|
17481
17481
|
}
|
|
17482
17482
|
}
|
|
17483
|
-
function _defineProperties$
|
|
17483
|
+
function _defineProperties$14(target, props) {
|
|
17484
17484
|
for(var i = 0; i < props.length; i++){
|
|
17485
17485
|
var descriptor = props[i];
|
|
17486
17486
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17489,8 +17489,8 @@ function _defineProperties$13(target, props) {
|
|
|
17489
17489
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17490
17490
|
}
|
|
17491
17491
|
}
|
|
17492
|
-
function _create_class$
|
|
17493
|
-
if (protoProps) _defineProperties$
|
|
17492
|
+
function _create_class$14(Constructor, protoProps, staticProps) {
|
|
17493
|
+
if (protoProps) _defineProperties$14(Constructor.prototype, protoProps);
|
|
17494
17494
|
return Constructor;
|
|
17495
17495
|
}
|
|
17496
17496
|
function _define_property$1x(obj, key, value) {
|
|
@@ -17585,10 +17585,10 @@ var Permissions = /*#__PURE__*/ function(APIResource) {
|
|
|
17585
17585
|
_inherits$Y(Permissions, APIResource);
|
|
17586
17586
|
var _super = _create_super$Y(Permissions);
|
|
17587
17587
|
function Permissions() {
|
|
17588
|
-
_class_call_check$
|
|
17588
|
+
_class_call_check$1f(this, Permissions);
|
|
17589
17589
|
return _super.apply(this, arguments);
|
|
17590
17590
|
}
|
|
17591
|
-
_create_class$
|
|
17591
|
+
_create_class$14(Permissions, [
|
|
17592
17592
|
{
|
|
17593
17593
|
/**
|
|
17594
17594
|
* **NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).
|
|
@@ -17655,7 +17655,7 @@ var Permissions = /*#__PURE__*/ function(APIResource) {
|
|
|
17655
17655
|
_inherits$Y(PermissionCreateResponsesPage, Page);
|
|
17656
17656
|
var _super = _create_super$Y(PermissionCreateResponsesPage);
|
|
17657
17657
|
function PermissionCreateResponsesPage() {
|
|
17658
|
-
_class_call_check$
|
|
17658
|
+
_class_call_check$1f(this, PermissionCreateResponsesPage);
|
|
17659
17659
|
return _super.apply(this, arguments);
|
|
17660
17660
|
}
|
|
17661
17661
|
return PermissionCreateResponsesPage;
|
|
@@ -17669,7 +17669,7 @@ function _assert_this_initialized$X(self) {
|
|
|
17669
17669
|
}
|
|
17670
17670
|
return self;
|
|
17671
17671
|
}
|
|
17672
|
-
function _class_call_check$
|
|
17672
|
+
function _class_call_check$1e(instance, Constructor) {
|
|
17673
17673
|
if (!(instance instanceof Constructor)) {
|
|
17674
17674
|
throw new TypeError("Cannot call a class as a function");
|
|
17675
17675
|
}
|
|
@@ -17738,7 +17738,7 @@ var Checkpoints$1 = /*#__PURE__*/ function(APIResource) {
|
|
|
17738
17738
|
_inherits$X(Checkpoints, APIResource);
|
|
17739
17739
|
var _super = _create_super$X(Checkpoints);
|
|
17740
17740
|
function Checkpoints() {
|
|
17741
|
-
_class_call_check$
|
|
17741
|
+
_class_call_check$1e(this, Checkpoints);
|
|
17742
17742
|
var _this;
|
|
17743
17743
|
_this = _super.call.apply(_super, [
|
|
17744
17744
|
this
|
|
@@ -17758,12 +17758,12 @@ function _assert_this_initialized$W(self) {
|
|
|
17758
17758
|
}
|
|
17759
17759
|
return self;
|
|
17760
17760
|
}
|
|
17761
|
-
function _class_call_check$
|
|
17761
|
+
function _class_call_check$1d(instance, Constructor) {
|
|
17762
17762
|
if (!(instance instanceof Constructor)) {
|
|
17763
17763
|
throw new TypeError("Cannot call a class as a function");
|
|
17764
17764
|
}
|
|
17765
17765
|
}
|
|
17766
|
-
function _defineProperties$
|
|
17766
|
+
function _defineProperties$13(target, props) {
|
|
17767
17767
|
for(var i = 0; i < props.length; i++){
|
|
17768
17768
|
var descriptor = props[i];
|
|
17769
17769
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17772,8 +17772,8 @@ function _defineProperties$12(target, props) {
|
|
|
17772
17772
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17773
17773
|
}
|
|
17774
17774
|
}
|
|
17775
|
-
function _create_class$
|
|
17776
|
-
if (protoProps) _defineProperties$
|
|
17775
|
+
function _create_class$13(Constructor, protoProps, staticProps) {
|
|
17776
|
+
if (protoProps) _defineProperties$13(Constructor.prototype, protoProps);
|
|
17777
17777
|
return Constructor;
|
|
17778
17778
|
}
|
|
17779
17779
|
function _define_property$1w(obj, key, value) {
|
|
@@ -17868,10 +17868,10 @@ var Checkpoints = /*#__PURE__*/ function(APIResource) {
|
|
|
17868
17868
|
_inherits$W(Checkpoints, APIResource);
|
|
17869
17869
|
var _super = _create_super$W(Checkpoints);
|
|
17870
17870
|
function Checkpoints() {
|
|
17871
|
-
_class_call_check$
|
|
17871
|
+
_class_call_check$1d(this, Checkpoints);
|
|
17872
17872
|
return _super.apply(this, arguments);
|
|
17873
17873
|
}
|
|
17874
|
-
_create_class$
|
|
17874
|
+
_create_class$13(Checkpoints, [
|
|
17875
17875
|
{
|
|
17876
17876
|
key: "list",
|
|
17877
17877
|
value: function list(fineTuningJobId) {
|
|
@@ -17891,7 +17891,7 @@ var FineTuningJobCheckpointsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
17891
17891
|
_inherits$W(FineTuningJobCheckpointsPage, CursorPage);
|
|
17892
17892
|
var _super = _create_super$W(FineTuningJobCheckpointsPage);
|
|
17893
17893
|
function FineTuningJobCheckpointsPage() {
|
|
17894
|
-
_class_call_check$
|
|
17894
|
+
_class_call_check$1d(this, FineTuningJobCheckpointsPage);
|
|
17895
17895
|
return _super.apply(this, arguments);
|
|
17896
17896
|
}
|
|
17897
17897
|
return FineTuningJobCheckpointsPage;
|
|
@@ -17905,12 +17905,12 @@ function _assert_this_initialized$V(self) {
|
|
|
17905
17905
|
}
|
|
17906
17906
|
return self;
|
|
17907
17907
|
}
|
|
17908
|
-
function _class_call_check$
|
|
17908
|
+
function _class_call_check$1c(instance, Constructor) {
|
|
17909
17909
|
if (!(instance instanceof Constructor)) {
|
|
17910
17910
|
throw new TypeError("Cannot call a class as a function");
|
|
17911
17911
|
}
|
|
17912
17912
|
}
|
|
17913
|
-
function _defineProperties$
|
|
17913
|
+
function _defineProperties$12(target, props) {
|
|
17914
17914
|
for(var i = 0; i < props.length; i++){
|
|
17915
17915
|
var descriptor = props[i];
|
|
17916
17916
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -17919,8 +17919,8 @@ function _defineProperties$11(target, props) {
|
|
|
17919
17919
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17920
17920
|
}
|
|
17921
17921
|
}
|
|
17922
|
-
function _create_class$
|
|
17923
|
-
if (protoProps) _defineProperties$
|
|
17922
|
+
function _create_class$12(Constructor, protoProps, staticProps) {
|
|
17923
|
+
if (protoProps) _defineProperties$12(Constructor.prototype, protoProps);
|
|
17924
17924
|
return Constructor;
|
|
17925
17925
|
}
|
|
17926
17926
|
function _define_property$1v(obj, key, value) {
|
|
@@ -18015,7 +18015,7 @@ var Jobs = /*#__PURE__*/ function(APIResource) {
|
|
|
18015
18015
|
_inherits$V(Jobs, APIResource);
|
|
18016
18016
|
var _super = _create_super$V(Jobs);
|
|
18017
18017
|
function Jobs() {
|
|
18018
|
-
_class_call_check$
|
|
18018
|
+
_class_call_check$1c(this, Jobs);
|
|
18019
18019
|
var _this;
|
|
18020
18020
|
_this = _super.call.apply(_super, [
|
|
18021
18021
|
this
|
|
@@ -18023,7 +18023,7 @@ var Jobs = /*#__PURE__*/ function(APIResource) {
|
|
|
18023
18023
|
_this.checkpoints = new Checkpoints(_this._client);
|
|
18024
18024
|
return _this;
|
|
18025
18025
|
}
|
|
18026
|
-
_create_class$
|
|
18026
|
+
_create_class$12(Jobs, [
|
|
18027
18027
|
{
|
|
18028
18028
|
/**
|
|
18029
18029
|
* Creates a fine-tuning job which begins the process of creating a new model from
|
|
@@ -18141,7 +18141,7 @@ var FineTuningJobsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
18141
18141
|
_inherits$V(FineTuningJobsPage, CursorPage);
|
|
18142
18142
|
var _super = _create_super$V(FineTuningJobsPage);
|
|
18143
18143
|
function FineTuningJobsPage() {
|
|
18144
|
-
_class_call_check$
|
|
18144
|
+
_class_call_check$1c(this, FineTuningJobsPage);
|
|
18145
18145
|
return _super.apply(this, arguments);
|
|
18146
18146
|
}
|
|
18147
18147
|
return FineTuningJobsPage;
|
|
@@ -18150,7 +18150,7 @@ var FineTuningJobEventsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
18150
18150
|
_inherits$V(FineTuningJobEventsPage, CursorPage);
|
|
18151
18151
|
var _super = _create_super$V(FineTuningJobEventsPage);
|
|
18152
18152
|
function FineTuningJobEventsPage() {
|
|
18153
|
-
_class_call_check$
|
|
18153
|
+
_class_call_check$1c(this, FineTuningJobEventsPage);
|
|
18154
18154
|
return _super.apply(this, arguments);
|
|
18155
18155
|
}
|
|
18156
18156
|
return FineTuningJobEventsPage;
|
|
@@ -18167,7 +18167,7 @@ function _assert_this_initialized$U(self) {
|
|
|
18167
18167
|
}
|
|
18168
18168
|
return self;
|
|
18169
18169
|
}
|
|
18170
|
-
function _class_call_check$
|
|
18170
|
+
function _class_call_check$1b(instance, Constructor) {
|
|
18171
18171
|
if (!(instance instanceof Constructor)) {
|
|
18172
18172
|
throw new TypeError("Cannot call a class as a function");
|
|
18173
18173
|
}
|
|
@@ -18236,7 +18236,7 @@ var FineTuning = /*#__PURE__*/ function(APIResource) {
|
|
|
18236
18236
|
_inherits$U(FineTuning, APIResource);
|
|
18237
18237
|
var _super = _create_super$U(FineTuning);
|
|
18238
18238
|
function FineTuning() {
|
|
18239
|
-
_class_call_check$
|
|
18239
|
+
_class_call_check$1b(this, FineTuning);
|
|
18240
18240
|
var _this;
|
|
18241
18241
|
_this = _super.call.apply(_super, [
|
|
18242
18242
|
this
|
|
@@ -18263,7 +18263,7 @@ function _assert_this_initialized$T(self) {
|
|
|
18263
18263
|
}
|
|
18264
18264
|
return self;
|
|
18265
18265
|
}
|
|
18266
|
-
function _class_call_check$
|
|
18266
|
+
function _class_call_check$1a(instance, Constructor) {
|
|
18267
18267
|
if (!(instance instanceof Constructor)) {
|
|
18268
18268
|
throw new TypeError("Cannot call a class as a function");
|
|
18269
18269
|
}
|
|
@@ -18332,7 +18332,7 @@ var GraderModels = /*#__PURE__*/ function(APIResource) {
|
|
|
18332
18332
|
_inherits$T(GraderModels, APIResource);
|
|
18333
18333
|
var _super = _create_super$T(GraderModels);
|
|
18334
18334
|
function GraderModels() {
|
|
18335
|
-
_class_call_check$
|
|
18335
|
+
_class_call_check$1a(this, GraderModels);
|
|
18336
18336
|
return _super.apply(this, arguments);
|
|
18337
18337
|
}
|
|
18338
18338
|
return GraderModels;
|
|
@@ -18346,7 +18346,7 @@ function _assert_this_initialized$S(self) {
|
|
|
18346
18346
|
}
|
|
18347
18347
|
return self;
|
|
18348
18348
|
}
|
|
18349
|
-
function _class_call_check$
|
|
18349
|
+
function _class_call_check$19(instance, Constructor) {
|
|
18350
18350
|
if (!(instance instanceof Constructor)) {
|
|
18351
18351
|
throw new TypeError("Cannot call a class as a function");
|
|
18352
18352
|
}
|
|
@@ -18415,7 +18415,7 @@ var Graders = /*#__PURE__*/ function(APIResource) {
|
|
|
18415
18415
|
_inherits$S(Graders, APIResource);
|
|
18416
18416
|
var _super = _create_super$S(Graders);
|
|
18417
18417
|
function Graders() {
|
|
18418
|
-
_class_call_check$
|
|
18418
|
+
_class_call_check$19(this, Graders);
|
|
18419
18419
|
var _this;
|
|
18420
18420
|
_this = _super.call.apply(_super, [
|
|
18421
18421
|
this
|
|
@@ -18434,12 +18434,12 @@ function _assert_this_initialized$R(self) {
|
|
|
18434
18434
|
}
|
|
18435
18435
|
return self;
|
|
18436
18436
|
}
|
|
18437
|
-
function _class_call_check$
|
|
18437
|
+
function _class_call_check$18(instance, Constructor) {
|
|
18438
18438
|
if (!(instance instanceof Constructor)) {
|
|
18439
18439
|
throw new TypeError("Cannot call a class as a function");
|
|
18440
18440
|
}
|
|
18441
18441
|
}
|
|
18442
|
-
function _defineProperties$
|
|
18442
|
+
function _defineProperties$11(target, props) {
|
|
18443
18443
|
for(var i = 0; i < props.length; i++){
|
|
18444
18444
|
var descriptor = props[i];
|
|
18445
18445
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -18448,8 +18448,8 @@ function _defineProperties$10(target, props) {
|
|
|
18448
18448
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
18449
18449
|
}
|
|
18450
18450
|
}
|
|
18451
|
-
function _create_class$
|
|
18452
|
-
if (protoProps) _defineProperties$
|
|
18451
|
+
function _create_class$11(Constructor, protoProps, staticProps) {
|
|
18452
|
+
if (protoProps) _defineProperties$11(Constructor.prototype, protoProps);
|
|
18453
18453
|
return Constructor;
|
|
18454
18454
|
}
|
|
18455
18455
|
function _define_property$1u(obj, key, value) {
|
|
@@ -18544,10 +18544,10 @@ var Images = /*#__PURE__*/ function(APIResource) {
|
|
|
18544
18544
|
_inherits$R(Images, APIResource);
|
|
18545
18545
|
var _super = _create_super$R(Images);
|
|
18546
18546
|
function Images() {
|
|
18547
|
-
_class_call_check$
|
|
18547
|
+
_class_call_check$18(this, Images);
|
|
18548
18548
|
return _super.apply(this, arguments);
|
|
18549
18549
|
}
|
|
18550
|
-
_create_class$
|
|
18550
|
+
_create_class$11(Images, [
|
|
18551
18551
|
{
|
|
18552
18552
|
/**
|
|
18553
18553
|
* Creates a variation of a given image. This endpoint only supports `dall-e-2`.
|
|
@@ -18614,12 +18614,12 @@ function _assert_this_initialized$Q(self) {
|
|
|
18614
18614
|
}
|
|
18615
18615
|
return self;
|
|
18616
18616
|
}
|
|
18617
|
-
function _class_call_check$
|
|
18617
|
+
function _class_call_check$17(instance, Constructor) {
|
|
18618
18618
|
if (!(instance instanceof Constructor)) {
|
|
18619
18619
|
throw new TypeError("Cannot call a class as a function");
|
|
18620
18620
|
}
|
|
18621
18621
|
}
|
|
18622
|
-
function _defineProperties
|
|
18622
|
+
function _defineProperties$10(target, props) {
|
|
18623
18623
|
for(var i = 0; i < props.length; i++){
|
|
18624
18624
|
var descriptor = props[i];
|
|
18625
18625
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -18628,8 +18628,8 @@ function _defineProperties$$(target, props) {
|
|
|
18628
18628
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
18629
18629
|
}
|
|
18630
18630
|
}
|
|
18631
|
-
function _create_class
|
|
18632
|
-
if (protoProps) _defineProperties
|
|
18631
|
+
function _create_class$10(Constructor, protoProps, staticProps) {
|
|
18632
|
+
if (protoProps) _defineProperties$10(Constructor.prototype, protoProps);
|
|
18633
18633
|
return Constructor;
|
|
18634
18634
|
}
|
|
18635
18635
|
function _get_prototype_of$Q(o) {
|
|
@@ -18696,10 +18696,10 @@ var Models = /*#__PURE__*/ function(APIResource) {
|
|
|
18696
18696
|
_inherits$Q(Models, APIResource);
|
|
18697
18697
|
var _super = _create_super$Q(Models);
|
|
18698
18698
|
function Models() {
|
|
18699
|
-
_class_call_check$
|
|
18699
|
+
_class_call_check$17(this, Models);
|
|
18700
18700
|
return _super.apply(this, arguments);
|
|
18701
18701
|
}
|
|
18702
|
-
_create_class
|
|
18702
|
+
_create_class$10(Models, [
|
|
18703
18703
|
{
|
|
18704
18704
|
/**
|
|
18705
18705
|
* Retrieves a model instance, providing basic information about the model such as
|
|
@@ -18736,7 +18736,7 @@ var Models = /*#__PURE__*/ function(APIResource) {
|
|
|
18736
18736
|
_inherits$Q(ModelsPage, Page);
|
|
18737
18737
|
var _super = _create_super$Q(ModelsPage);
|
|
18738
18738
|
function ModelsPage() {
|
|
18739
|
-
_class_call_check$
|
|
18739
|
+
_class_call_check$17(this, ModelsPage);
|
|
18740
18740
|
return _super.apply(this, arguments);
|
|
18741
18741
|
}
|
|
18742
18742
|
return ModelsPage;
|
|
@@ -18750,12 +18750,12 @@ function _assert_this_initialized$P(self) {
|
|
|
18750
18750
|
}
|
|
18751
18751
|
return self;
|
|
18752
18752
|
}
|
|
18753
|
-
function _class_call_check$
|
|
18753
|
+
function _class_call_check$16(instance, Constructor) {
|
|
18754
18754
|
if (!(instance instanceof Constructor)) {
|
|
18755
18755
|
throw new TypeError("Cannot call a class as a function");
|
|
18756
18756
|
}
|
|
18757
18757
|
}
|
|
18758
|
-
function _defineProperties
|
|
18758
|
+
function _defineProperties$$(target, props) {
|
|
18759
18759
|
for(var i = 0; i < props.length; i++){
|
|
18760
18760
|
var descriptor = props[i];
|
|
18761
18761
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -18764,8 +18764,8 @@ function _defineProperties$_(target, props) {
|
|
|
18764
18764
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
18765
18765
|
}
|
|
18766
18766
|
}
|
|
18767
|
-
function _create_class
|
|
18768
|
-
if (protoProps) _defineProperties
|
|
18767
|
+
function _create_class$$(Constructor, protoProps, staticProps) {
|
|
18768
|
+
if (protoProps) _defineProperties$$(Constructor.prototype, protoProps);
|
|
18769
18769
|
return Constructor;
|
|
18770
18770
|
}
|
|
18771
18771
|
function _define_property$1t(obj, key, value) {
|
|
@@ -18860,10 +18860,10 @@ var Moderations = /*#__PURE__*/ function(APIResource) {
|
|
|
18860
18860
|
_inherits$P(Moderations, APIResource);
|
|
18861
18861
|
var _super = _create_super$P(Moderations);
|
|
18862
18862
|
function Moderations() {
|
|
18863
|
-
_class_call_check$
|
|
18863
|
+
_class_call_check$16(this, Moderations);
|
|
18864
18864
|
return _super.apply(this, arguments);
|
|
18865
18865
|
}
|
|
18866
|
-
_create_class
|
|
18866
|
+
_create_class$$(Moderations, [
|
|
18867
18867
|
{
|
|
18868
18868
|
/**
|
|
18869
18869
|
* Classifies if text and/or image inputs are potentially harmful. Learn more in
|
|
@@ -19123,12 +19123,12 @@ function _assert_this_initialized$O(self) {
|
|
|
19123
19123
|
}
|
|
19124
19124
|
return self;
|
|
19125
19125
|
}
|
|
19126
|
-
function _class_call_check$
|
|
19126
|
+
function _class_call_check$15(instance, Constructor) {
|
|
19127
19127
|
if (!(instance instanceof Constructor)) {
|
|
19128
19128
|
throw new TypeError("Cannot call a class as a function");
|
|
19129
19129
|
}
|
|
19130
19130
|
}
|
|
19131
|
-
function _defineProperties$
|
|
19131
|
+
function _defineProperties$_(target, props) {
|
|
19132
19132
|
for(var i = 0; i < props.length; i++){
|
|
19133
19133
|
var descriptor = props[i];
|
|
19134
19134
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -19137,8 +19137,8 @@ function _defineProperties$Z(target, props) {
|
|
|
19137
19137
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19138
19138
|
}
|
|
19139
19139
|
}
|
|
19140
|
-
function _create_class$
|
|
19141
|
-
if (protoProps) _defineProperties$
|
|
19140
|
+
function _create_class$_(Constructor, protoProps, staticProps) {
|
|
19141
|
+
if (protoProps) _defineProperties$_(Constructor.prototype, protoProps);
|
|
19142
19142
|
return Constructor;
|
|
19143
19143
|
}
|
|
19144
19144
|
function _define_property$1r(obj, key, value) {
|
|
@@ -19233,10 +19233,10 @@ var InputItems = /*#__PURE__*/ function(APIResource) {
|
|
|
19233
19233
|
_inherits$O(InputItems, APIResource);
|
|
19234
19234
|
var _super = _create_super$O(InputItems);
|
|
19235
19235
|
function InputItems() {
|
|
19236
|
-
_class_call_check$
|
|
19236
|
+
_class_call_check$15(this, InputItems);
|
|
19237
19237
|
return _super.apply(this, arguments);
|
|
19238
19238
|
}
|
|
19239
|
-
_create_class$
|
|
19239
|
+
_create_class$_(InputItems, [
|
|
19240
19240
|
{
|
|
19241
19241
|
key: "list",
|
|
19242
19242
|
value: function list(responseId) {
|
|
@@ -19329,12 +19329,12 @@ function _async_to_generator$G(fn) {
|
|
|
19329
19329
|
});
|
|
19330
19330
|
};
|
|
19331
19331
|
}
|
|
19332
|
-
function _class_call_check$
|
|
19332
|
+
function _class_call_check$14(instance, Constructor) {
|
|
19333
19333
|
if (!(instance instanceof Constructor)) {
|
|
19334
19334
|
throw new TypeError("Cannot call a class as a function");
|
|
19335
19335
|
}
|
|
19336
19336
|
}
|
|
19337
|
-
function _defineProperties$
|
|
19337
|
+
function _defineProperties$Z(target, props) {
|
|
19338
19338
|
for(var i = 0; i < props.length; i++){
|
|
19339
19339
|
var descriptor = props[i];
|
|
19340
19340
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -19343,9 +19343,9 @@ function _defineProperties$Y(target, props) {
|
|
|
19343
19343
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19344
19344
|
}
|
|
19345
19345
|
}
|
|
19346
|
-
function _create_class$
|
|
19347
|
-
if (protoProps) _defineProperties$
|
|
19348
|
-
if (staticProps) _defineProperties$
|
|
19346
|
+
function _create_class$Z(Constructor, protoProps, staticProps) {
|
|
19347
|
+
if (protoProps) _defineProperties$Z(Constructor.prototype, protoProps);
|
|
19348
|
+
if (staticProps) _defineProperties$Z(Constructor, staticProps);
|
|
19349
19349
|
return Constructor;
|
|
19350
19350
|
}
|
|
19351
19351
|
function _define_property$1q(obj, key, value) {
|
|
@@ -19566,7 +19566,7 @@ var ResponseStream = /*#__PURE__*/ function(EventStream) {
|
|
|
19566
19566
|
_inherits$N(ResponseStream, EventStream);
|
|
19567
19567
|
var _super = _create_super$N(ResponseStream);
|
|
19568
19568
|
function ResponseStream(params) {
|
|
19569
|
-
_class_call_check$
|
|
19569
|
+
_class_call_check$14(this, ResponseStream);
|
|
19570
19570
|
var _this;
|
|
19571
19571
|
_this = _super.call(this);
|
|
19572
19572
|
_ResponseStream_instances.add(_assert_this_initialized$N(_this));
|
|
@@ -19576,7 +19576,7 @@ var ResponseStream = /*#__PURE__*/ function(EventStream) {
|
|
|
19576
19576
|
__classPrivateFieldSet(_assert_this_initialized$N(_this), _ResponseStream_params, params, "f");
|
|
19577
19577
|
return _this;
|
|
19578
19578
|
}
|
|
19579
|
-
_create_class$
|
|
19579
|
+
_create_class$Z(ResponseStream, [
|
|
19580
19580
|
{
|
|
19581
19581
|
key: "_createOrRetrieveResponse",
|
|
19582
19582
|
value: function _createOrRetrieveResponse(client, params, options) {
|
|
@@ -20047,12 +20047,12 @@ function _assert_this_initialized$M(self) {
|
|
|
20047
20047
|
}
|
|
20048
20048
|
return self;
|
|
20049
20049
|
}
|
|
20050
|
-
function _class_call_check$
|
|
20050
|
+
function _class_call_check$13(instance, Constructor) {
|
|
20051
20051
|
if (!(instance instanceof Constructor)) {
|
|
20052
20052
|
throw new TypeError("Cannot call a class as a function");
|
|
20053
20053
|
}
|
|
20054
20054
|
}
|
|
20055
|
-
function _defineProperties$
|
|
20055
|
+
function _defineProperties$Y(target, props) {
|
|
20056
20056
|
for(var i = 0; i < props.length; i++){
|
|
20057
20057
|
var descriptor = props[i];
|
|
20058
20058
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20061,8 +20061,8 @@ function _defineProperties$X(target, props) {
|
|
|
20061
20061
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20062
20062
|
}
|
|
20063
20063
|
}
|
|
20064
|
-
function _create_class$
|
|
20065
|
-
if (protoProps) _defineProperties$
|
|
20064
|
+
function _create_class$Y(Constructor, protoProps, staticProps) {
|
|
20065
|
+
if (protoProps) _defineProperties$Y(Constructor.prototype, protoProps);
|
|
20066
20066
|
return Constructor;
|
|
20067
20067
|
}
|
|
20068
20068
|
function _define_property$1p(obj, key, value) {
|
|
@@ -20176,7 +20176,7 @@ var Responses = /*#__PURE__*/ function(APIResource) {
|
|
|
20176
20176
|
_inherits$M(Responses, APIResource);
|
|
20177
20177
|
var _super = _create_super$M(Responses);
|
|
20178
20178
|
function Responses() {
|
|
20179
|
-
_class_call_check$
|
|
20179
|
+
_class_call_check$13(this, Responses);
|
|
20180
20180
|
var _this;
|
|
20181
20181
|
_this = _super.call.apply(_super, [
|
|
20182
20182
|
this
|
|
@@ -20184,7 +20184,7 @@ var Responses = /*#__PURE__*/ function(APIResource) {
|
|
|
20184
20184
|
_this.inputItems = new InputItems(_this._client);
|
|
20185
20185
|
return _this;
|
|
20186
20186
|
}
|
|
20187
|
-
_create_class$
|
|
20187
|
+
_create_class$Y(Responses, [
|
|
20188
20188
|
{
|
|
20189
20189
|
key: "create",
|
|
20190
20190
|
value: function create(body, options) {
|
|
@@ -20276,7 +20276,7 @@ var ResponseItemsPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
20276
20276
|
_inherits$M(ResponseItemsPage, CursorPage);
|
|
20277
20277
|
var _super = _create_super$M(ResponseItemsPage);
|
|
20278
20278
|
function ResponseItemsPage() {
|
|
20279
|
-
_class_call_check$
|
|
20279
|
+
_class_call_check$13(this, ResponseItemsPage);
|
|
20280
20280
|
return _super.apply(this, arguments);
|
|
20281
20281
|
}
|
|
20282
20282
|
return ResponseItemsPage;
|
|
@@ -20290,12 +20290,12 @@ function _assert_this_initialized$L(self) {
|
|
|
20290
20290
|
}
|
|
20291
20291
|
return self;
|
|
20292
20292
|
}
|
|
20293
|
-
function _class_call_check$
|
|
20293
|
+
function _class_call_check$12(instance, Constructor) {
|
|
20294
20294
|
if (!(instance instanceof Constructor)) {
|
|
20295
20295
|
throw new TypeError("Cannot call a class as a function");
|
|
20296
20296
|
}
|
|
20297
20297
|
}
|
|
20298
|
-
function _defineProperties$
|
|
20298
|
+
function _defineProperties$X(target, props) {
|
|
20299
20299
|
for(var i = 0; i < props.length; i++){
|
|
20300
20300
|
var descriptor = props[i];
|
|
20301
20301
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20304,8 +20304,8 @@ function _defineProperties$W(target, props) {
|
|
|
20304
20304
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20305
20305
|
}
|
|
20306
20306
|
}
|
|
20307
|
-
function _create_class$
|
|
20308
|
-
if (protoProps) _defineProperties$
|
|
20307
|
+
function _create_class$X(Constructor, protoProps, staticProps) {
|
|
20308
|
+
if (protoProps) _defineProperties$X(Constructor.prototype, protoProps);
|
|
20309
20309
|
return Constructor;
|
|
20310
20310
|
}
|
|
20311
20311
|
function _define_property$1o(obj, key, value) {
|
|
@@ -20400,10 +20400,10 @@ var Parts = /*#__PURE__*/ function(APIResource) {
|
|
|
20400
20400
|
_inherits$L(Parts, APIResource);
|
|
20401
20401
|
var _super = _create_super$L(Parts);
|
|
20402
20402
|
function Parts() {
|
|
20403
|
-
_class_call_check$
|
|
20403
|
+
_class_call_check$12(this, Parts);
|
|
20404
20404
|
return _super.apply(this, arguments);
|
|
20405
20405
|
}
|
|
20406
|
-
_create_class$
|
|
20406
|
+
_create_class$X(Parts, [
|
|
20407
20407
|
{
|
|
20408
20408
|
/**
|
|
20409
20409
|
* Adds a
|
|
@@ -20436,12 +20436,12 @@ function _assert_this_initialized$K(self) {
|
|
|
20436
20436
|
}
|
|
20437
20437
|
return self;
|
|
20438
20438
|
}
|
|
20439
|
-
function _class_call_check$
|
|
20439
|
+
function _class_call_check$11(instance, Constructor) {
|
|
20440
20440
|
if (!(instance instanceof Constructor)) {
|
|
20441
20441
|
throw new TypeError("Cannot call a class as a function");
|
|
20442
20442
|
}
|
|
20443
20443
|
}
|
|
20444
|
-
function _defineProperties$
|
|
20444
|
+
function _defineProperties$W(target, props) {
|
|
20445
20445
|
for(var i = 0; i < props.length; i++){
|
|
20446
20446
|
var descriptor = props[i];
|
|
20447
20447
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20450,8 +20450,8 @@ function _defineProperties$V(target, props) {
|
|
|
20450
20450
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20451
20451
|
}
|
|
20452
20452
|
}
|
|
20453
|
-
function _create_class$
|
|
20454
|
-
if (protoProps) _defineProperties$
|
|
20453
|
+
function _create_class$W(Constructor, protoProps, staticProps) {
|
|
20454
|
+
if (protoProps) _defineProperties$W(Constructor.prototype, protoProps);
|
|
20455
20455
|
return Constructor;
|
|
20456
20456
|
}
|
|
20457
20457
|
function _define_property$1n(obj, key, value) {
|
|
@@ -20546,7 +20546,7 @@ var Uploads = /*#__PURE__*/ function(APIResource) {
|
|
|
20546
20546
|
_inherits$K(Uploads, APIResource);
|
|
20547
20547
|
var _super = _create_super$K(Uploads);
|
|
20548
20548
|
function Uploads() {
|
|
20549
|
-
_class_call_check$
|
|
20549
|
+
_class_call_check$11(this, Uploads);
|
|
20550
20550
|
var _this;
|
|
20551
20551
|
_this = _super.call.apply(_super, [
|
|
20552
20552
|
this
|
|
@@ -20554,7 +20554,7 @@ var Uploads = /*#__PURE__*/ function(APIResource) {
|
|
|
20554
20554
|
_this.parts = new Parts(_this._client);
|
|
20555
20555
|
return _this;
|
|
20556
20556
|
}
|
|
20557
|
-
_create_class$
|
|
20557
|
+
_create_class$W(Uploads, [
|
|
20558
20558
|
{
|
|
20559
20559
|
/**
|
|
20560
20560
|
* Creates an intermediate
|
|
@@ -20854,12 +20854,12 @@ function _async_to_generator$E(fn) {
|
|
|
20854
20854
|
});
|
|
20855
20855
|
};
|
|
20856
20856
|
}
|
|
20857
|
-
function _class_call_check
|
|
20857
|
+
function _class_call_check$10(instance, Constructor) {
|
|
20858
20858
|
if (!(instance instanceof Constructor)) {
|
|
20859
20859
|
throw new TypeError("Cannot call a class as a function");
|
|
20860
20860
|
}
|
|
20861
20861
|
}
|
|
20862
|
-
function _defineProperties$
|
|
20862
|
+
function _defineProperties$V(target, props) {
|
|
20863
20863
|
for(var i = 0; i < props.length; i++){
|
|
20864
20864
|
var descriptor = props[i];
|
|
20865
20865
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -20868,8 +20868,8 @@ function _defineProperties$U(target, props) {
|
|
|
20868
20868
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
20869
20869
|
}
|
|
20870
20870
|
}
|
|
20871
|
-
function _create_class$
|
|
20872
|
-
if (protoProps) _defineProperties$
|
|
20871
|
+
function _create_class$V(Constructor, protoProps, staticProps) {
|
|
20872
|
+
if (protoProps) _defineProperties$V(Constructor.prototype, protoProps);
|
|
20873
20873
|
return Constructor;
|
|
20874
20874
|
}
|
|
20875
20875
|
function _define_property$1m(obj, key, value) {
|
|
@@ -21078,10 +21078,10 @@ var Files = /*#__PURE__*/ function(APIResource) {
|
|
|
21078
21078
|
_inherits$J(Files, APIResource);
|
|
21079
21079
|
var _super = _create_super$J(Files);
|
|
21080
21080
|
function Files() {
|
|
21081
|
-
_class_call_check
|
|
21081
|
+
_class_call_check$10(this, Files);
|
|
21082
21082
|
return _super.apply(this, arguments);
|
|
21083
21083
|
}
|
|
21084
|
-
_create_class$
|
|
21084
|
+
_create_class$V(Files, [
|
|
21085
21085
|
{
|
|
21086
21086
|
/**
|
|
21087
21087
|
* Create a vector store file by attaching a
|
|
@@ -21365,7 +21365,7 @@ var VectorStoreFilesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
21365
21365
|
_inherits$J(VectorStoreFilesPage, CursorPage);
|
|
21366
21366
|
var _super = _create_super$J(VectorStoreFilesPage);
|
|
21367
21367
|
function VectorStoreFilesPage() {
|
|
21368
|
-
_class_call_check
|
|
21368
|
+
_class_call_check$10(this, VectorStoreFilesPage);
|
|
21369
21369
|
return _super.apply(this, arguments);
|
|
21370
21370
|
}
|
|
21371
21371
|
return VectorStoreFilesPage;
|
|
@@ -21376,7 +21376,7 @@ var VectorStoreFilesPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
21376
21376
|
_inherits$J(FileContentResponsesPage, Page);
|
|
21377
21377
|
var _super = _create_super$J(FileContentResponsesPage);
|
|
21378
21378
|
function FileContentResponsesPage() {
|
|
21379
|
-
_class_call_check
|
|
21379
|
+
_class_call_check$10(this, FileContentResponsesPage);
|
|
21380
21380
|
return _super.apply(this, arguments);
|
|
21381
21381
|
}
|
|
21382
21382
|
return FileContentResponsesPage;
|
|
@@ -21428,12 +21428,12 @@ function _async_to_generator$D(fn) {
|
|
|
21428
21428
|
});
|
|
21429
21429
|
};
|
|
21430
21430
|
}
|
|
21431
|
-
function _class_call_check
|
|
21431
|
+
function _class_call_check$$(instance, Constructor) {
|
|
21432
21432
|
if (!(instance instanceof Constructor)) {
|
|
21433
21433
|
throw new TypeError("Cannot call a class as a function");
|
|
21434
21434
|
}
|
|
21435
21435
|
}
|
|
21436
|
-
function _defineProperties$
|
|
21436
|
+
function _defineProperties$U(target, props) {
|
|
21437
21437
|
for(var i = 0; i < props.length; i++){
|
|
21438
21438
|
var descriptor = props[i];
|
|
21439
21439
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -21442,8 +21442,8 @@ function _defineProperties$T(target, props) {
|
|
|
21442
21442
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
21443
21443
|
}
|
|
21444
21444
|
}
|
|
21445
|
-
function _create_class$
|
|
21446
|
-
if (protoProps) _defineProperties$
|
|
21445
|
+
function _create_class$U(Constructor, protoProps, staticProps) {
|
|
21446
|
+
if (protoProps) _defineProperties$U(Constructor.prototype, protoProps);
|
|
21447
21447
|
return Constructor;
|
|
21448
21448
|
}
|
|
21449
21449
|
function _define_property$1l(obj, key, value) {
|
|
@@ -21669,10 +21669,10 @@ var FileBatches = /*#__PURE__*/ function(APIResource) {
|
|
|
21669
21669
|
_inherits$I(FileBatches, APIResource);
|
|
21670
21670
|
var _super = _create_super$I(FileBatches);
|
|
21671
21671
|
function FileBatches() {
|
|
21672
|
-
_class_call_check
|
|
21672
|
+
_class_call_check$$(this, FileBatches);
|
|
21673
21673
|
return _super.apply(this, arguments);
|
|
21674
21674
|
}
|
|
21675
|
-
_create_class$
|
|
21675
|
+
_create_class$U(FileBatches, [
|
|
21676
21676
|
{
|
|
21677
21677
|
/**
|
|
21678
21678
|
* Create a vector store file batch.
|
|
@@ -21997,12 +21997,12 @@ function _assert_this_initialized$H(self) {
|
|
|
21997
21997
|
}
|
|
21998
21998
|
return self;
|
|
21999
21999
|
}
|
|
22000
|
-
function _class_call_check$
|
|
22000
|
+
function _class_call_check$_(instance, Constructor) {
|
|
22001
22001
|
if (!(instance instanceof Constructor)) {
|
|
22002
22002
|
throw new TypeError("Cannot call a class as a function");
|
|
22003
22003
|
}
|
|
22004
22004
|
}
|
|
22005
|
-
function _defineProperties$
|
|
22005
|
+
function _defineProperties$T(target, props) {
|
|
22006
22006
|
for(var i = 0; i < props.length; i++){
|
|
22007
22007
|
var descriptor = props[i];
|
|
22008
22008
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -22011,8 +22011,8 @@ function _defineProperties$S(target, props) {
|
|
|
22011
22011
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22012
22012
|
}
|
|
22013
22013
|
}
|
|
22014
|
-
function _create_class$
|
|
22015
|
-
if (protoProps) _defineProperties$
|
|
22014
|
+
function _create_class$T(Constructor, protoProps, staticProps) {
|
|
22015
|
+
if (protoProps) _defineProperties$T(Constructor.prototype, protoProps);
|
|
22016
22016
|
return Constructor;
|
|
22017
22017
|
}
|
|
22018
22018
|
function _define_property$1k(obj, key, value) {
|
|
@@ -22126,7 +22126,7 @@ var VectorStores = /*#__PURE__*/ function(APIResource) {
|
|
|
22126
22126
|
_inherits$H(VectorStores, APIResource);
|
|
22127
22127
|
var _super = _create_super$H(VectorStores);
|
|
22128
22128
|
function VectorStores() {
|
|
22129
|
-
_class_call_check$
|
|
22129
|
+
_class_call_check$_(this, VectorStores);
|
|
22130
22130
|
var _this;
|
|
22131
22131
|
_this = _super.call.apply(_super, [
|
|
22132
22132
|
this
|
|
@@ -22135,7 +22135,7 @@ var VectorStores = /*#__PURE__*/ function(APIResource) {
|
|
|
22135
22135
|
_this.fileBatches = new FileBatches(_this._client);
|
|
22136
22136
|
return _this;
|
|
22137
22137
|
}
|
|
22138
|
-
_create_class$
|
|
22138
|
+
_create_class$T(VectorStores, [
|
|
22139
22139
|
{
|
|
22140
22140
|
/**
|
|
22141
22141
|
* Create a vector store.
|
|
@@ -22227,7 +22227,7 @@ var VectorStoresPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
22227
22227
|
_inherits$H(VectorStoresPage, CursorPage);
|
|
22228
22228
|
var _super = _create_super$H(VectorStoresPage);
|
|
22229
22229
|
function VectorStoresPage() {
|
|
22230
|
-
_class_call_check$
|
|
22230
|
+
_class_call_check$_(this, VectorStoresPage);
|
|
22231
22231
|
return _super.apply(this, arguments);
|
|
22232
22232
|
}
|
|
22233
22233
|
return VectorStoresPage;
|
|
@@ -22238,7 +22238,7 @@ var VectorStoresPage = /*#__PURE__*/ function(CursorPage) {
|
|
|
22238
22238
|
_inherits$H(VectorStoreSearchResponsesPage, Page);
|
|
22239
22239
|
var _super = _create_super$H(VectorStoreSearchResponsesPage);
|
|
22240
22240
|
function VectorStoreSearchResponsesPage() {
|
|
22241
|
-
_class_call_check$
|
|
22241
|
+
_class_call_check$_(this, VectorStoreSearchResponsesPage);
|
|
22242
22242
|
return _super.apply(this, arguments);
|
|
22243
22243
|
}
|
|
22244
22244
|
return VectorStoreSearchResponsesPage;
|
|
@@ -22286,12 +22286,12 @@ function _async_to_generator$C(fn) {
|
|
|
22286
22286
|
});
|
|
22287
22287
|
};
|
|
22288
22288
|
}
|
|
22289
|
-
function _class_call_check$
|
|
22289
|
+
function _class_call_check$Z(instance, Constructor) {
|
|
22290
22290
|
if (!(instance instanceof Constructor)) {
|
|
22291
22291
|
throw new TypeError("Cannot call a class as a function");
|
|
22292
22292
|
}
|
|
22293
22293
|
}
|
|
22294
|
-
function _defineProperties$
|
|
22294
|
+
function _defineProperties$S(target, props) {
|
|
22295
22295
|
for(var i = 0; i < props.length; i++){
|
|
22296
22296
|
var descriptor = props[i];
|
|
22297
22297
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -22300,8 +22300,8 @@ function _defineProperties$R(target, props) {
|
|
|
22300
22300
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22301
22301
|
}
|
|
22302
22302
|
}
|
|
22303
|
-
function _create_class$
|
|
22304
|
-
if (protoProps) _defineProperties$
|
|
22303
|
+
function _create_class$S(Constructor, protoProps, staticProps) {
|
|
22304
|
+
if (protoProps) _defineProperties$S(Constructor.prototype, protoProps);
|
|
22305
22305
|
return Constructor;
|
|
22306
22306
|
}
|
|
22307
22307
|
function _define_property$1j(obj, key, value) {
|
|
@@ -22565,7 +22565,7 @@ var _Core_readEnv, _Core_readEnv1;
|
|
|
22565
22565
|
var _super = _create_super$G(OpenAI);
|
|
22566
22566
|
function OpenAI() {
|
|
22567
22567
|
var _param = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
22568
|
-
_class_call_check$
|
|
22568
|
+
_class_call_check$Z(this, OpenAI);
|
|
22569
22569
|
var _this;
|
|
22570
22570
|
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, [
|
|
22571
22571
|
"baseURL",
|
|
@@ -22617,7 +22617,7 @@ var _Core_readEnv, _Core_readEnv1;
|
|
|
22617
22617
|
_this.project = project;
|
|
22618
22618
|
return _this;
|
|
22619
22619
|
}
|
|
22620
|
-
_create_class$
|
|
22620
|
+
_create_class$S(OpenAI, [
|
|
22621
22621
|
{
|
|
22622
22622
|
key: "defaultQuery",
|
|
22623
22623
|
value: function defaultQuery() {
|
|
@@ -22700,7 +22700,7 @@ OpenAI.ContainerListResponsesPage = ContainerListResponsesPage;
|
|
|
22700
22700
|
var _super = _create_super$G(AzureOpenAI);
|
|
22701
22701
|
function AzureOpenAI() {
|
|
22702
22702
|
var _param = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
22703
|
-
_class_call_check$
|
|
22703
|
+
_class_call_check$Z(this, AzureOpenAI);
|
|
22704
22704
|
var _this;
|
|
22705
22705
|
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, [
|
|
22706
22706
|
"baseURL",
|
|
@@ -22753,7 +22753,7 @@ OpenAI.ContainerListResponsesPage = ContainerListResponsesPage;
|
|
|
22753
22753
|
_this.deploymentName = deployment;
|
|
22754
22754
|
return _this;
|
|
22755
22755
|
}
|
|
22756
|
-
_create_class$
|
|
22756
|
+
_create_class$S(AzureOpenAI, [
|
|
22757
22757
|
{
|
|
22758
22758
|
key: "buildRequest",
|
|
22759
22759
|
value: function buildRequest(options) {
|
|
@@ -23152,12 +23152,12 @@ function _array_with_holes$u(arr) {
|
|
|
23152
23152
|
function _array_without_holes$T(arr) {
|
|
23153
23153
|
if (Array.isArray(arr)) return _array_like_to_array$13(arr);
|
|
23154
23154
|
}
|
|
23155
|
-
function _class_call_check$
|
|
23155
|
+
function _class_call_check$Y(instance, Constructor) {
|
|
23156
23156
|
if (!(instance instanceof Constructor)) {
|
|
23157
23157
|
throw new TypeError("Cannot call a class as a function");
|
|
23158
23158
|
}
|
|
23159
23159
|
}
|
|
23160
|
-
function _defineProperties$
|
|
23160
|
+
function _defineProperties$R(target, props) {
|
|
23161
23161
|
for(var i = 0; i < props.length; i++){
|
|
23162
23162
|
var descriptor = props[i];
|
|
23163
23163
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -23166,9 +23166,9 @@ function _defineProperties$Q(target, props) {
|
|
|
23166
23166
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23167
23167
|
}
|
|
23168
23168
|
}
|
|
23169
|
-
function _create_class$
|
|
23170
|
-
if (protoProps) _defineProperties$
|
|
23171
|
-
if (staticProps) _defineProperties$
|
|
23169
|
+
function _create_class$R(Constructor, protoProps, staticProps) {
|
|
23170
|
+
if (protoProps) _defineProperties$R(Constructor.prototype, protoProps);
|
|
23171
|
+
if (staticProps) _defineProperties$R(Constructor, staticProps);
|
|
23172
23172
|
return Constructor;
|
|
23173
23173
|
}
|
|
23174
23174
|
function _define_property$1h(obj, key, value) {
|
|
@@ -23343,7 +23343,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
23343
23343
|
for(var _len = arguments.length, _args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
23344
23344
|
_args[_key - 1] = arguments[_key];
|
|
23345
23345
|
}
|
|
23346
|
-
_class_call_check$
|
|
23346
|
+
_class_call_check$Y(this, Serializable);
|
|
23347
23347
|
Object.defineProperty(this, "lc_serializable", {
|
|
23348
23348
|
enumerable: true,
|
|
23349
23349
|
configurable: true,
|
|
@@ -23366,7 +23366,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
23366
23366
|
this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
|
|
23367
23367
|
}
|
|
23368
23368
|
}
|
|
23369
|
-
_create_class$
|
|
23369
|
+
_create_class$R(Serializable, [
|
|
23370
23370
|
{
|
|
23371
23371
|
key: "lc_id",
|
|
23372
23372
|
get: /**
|
|
@@ -23575,12 +23575,12 @@ function _assert_this_initialized$F(self) {
|
|
|
23575
23575
|
}
|
|
23576
23576
|
return self;
|
|
23577
23577
|
}
|
|
23578
|
-
function _class_call_check$
|
|
23578
|
+
function _class_call_check$X(instance, Constructor) {
|
|
23579
23579
|
if (!(instance instanceof Constructor)) {
|
|
23580
23580
|
throw new TypeError("Cannot call a class as a function");
|
|
23581
23581
|
}
|
|
23582
23582
|
}
|
|
23583
|
-
function _defineProperties$
|
|
23583
|
+
function _defineProperties$Q(target, props) {
|
|
23584
23584
|
for(var i = 0; i < props.length; i++){
|
|
23585
23585
|
var descriptor = props[i];
|
|
23586
23586
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -23589,9 +23589,9 @@ function _defineProperties$P(target, props) {
|
|
|
23589
23589
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23590
23590
|
}
|
|
23591
23591
|
}
|
|
23592
|
-
function _create_class$
|
|
23593
|
-
if (protoProps) _defineProperties$
|
|
23594
|
-
if (staticProps) _defineProperties$
|
|
23592
|
+
function _create_class$Q(Constructor, protoProps, staticProps) {
|
|
23593
|
+
if (protoProps) _defineProperties$Q(Constructor.prototype, protoProps);
|
|
23594
|
+
if (staticProps) _defineProperties$Q(Constructor, staticProps);
|
|
23595
23595
|
return Constructor;
|
|
23596
23596
|
}
|
|
23597
23597
|
function _define_property$1g(obj, key, value) {
|
|
@@ -23846,7 +23846,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
23846
23846
|
_inherits$F(BaseMessage, Serializable);
|
|
23847
23847
|
var _super = _create_super$F(BaseMessage);
|
|
23848
23848
|
function BaseMessage(fields, /** @deprecated */ kwargs) {
|
|
23849
|
-
_class_call_check$
|
|
23849
|
+
_class_call_check$X(this, BaseMessage);
|
|
23850
23850
|
var _this;
|
|
23851
23851
|
if (typeof fields === "string") {
|
|
23852
23852
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -23921,7 +23921,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
23921
23921
|
_this.id = fields.id;
|
|
23922
23922
|
return _this;
|
|
23923
23923
|
}
|
|
23924
|
-
_create_class$
|
|
23924
|
+
_create_class$Q(BaseMessage, [
|
|
23925
23925
|
{
|
|
23926
23926
|
key: "lc_aliases",
|
|
23927
23927
|
get: function get() {
|
|
@@ -24150,7 +24150,7 @@ function _mergeObj(left, right) {
|
|
|
24150
24150
|
_inherits$F(BaseMessageChunk, BaseMessage);
|
|
24151
24151
|
var _super = _create_super$F(BaseMessageChunk);
|
|
24152
24152
|
function BaseMessageChunk() {
|
|
24153
|
-
_class_call_check$
|
|
24153
|
+
_class_call_check$X(this, BaseMessageChunk);
|
|
24154
24154
|
return _super.apply(this, arguments);
|
|
24155
24155
|
}
|
|
24156
24156
|
return BaseMessageChunk;
|
|
@@ -24171,12 +24171,12 @@ function _assert_this_initialized$E(self) {
|
|
|
24171
24171
|
}
|
|
24172
24172
|
return self;
|
|
24173
24173
|
}
|
|
24174
|
-
function _class_call_check$
|
|
24174
|
+
function _class_call_check$W(instance, Constructor) {
|
|
24175
24175
|
if (!(instance instanceof Constructor)) {
|
|
24176
24176
|
throw new TypeError("Cannot call a class as a function");
|
|
24177
24177
|
}
|
|
24178
24178
|
}
|
|
24179
|
-
function _defineProperties$
|
|
24179
|
+
function _defineProperties$P(target, props) {
|
|
24180
24180
|
for(var i = 0; i < props.length; i++){
|
|
24181
24181
|
var descriptor = props[i];
|
|
24182
24182
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -24185,9 +24185,9 @@ function _defineProperties$O(target, props) {
|
|
|
24185
24185
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
24186
24186
|
}
|
|
24187
24187
|
}
|
|
24188
|
-
function _create_class$
|
|
24189
|
-
if (protoProps) _defineProperties$
|
|
24190
|
-
if (staticProps) _defineProperties$
|
|
24188
|
+
function _create_class$P(Constructor, protoProps, staticProps) {
|
|
24189
|
+
if (protoProps) _defineProperties$P(Constructor.prototype, protoProps);
|
|
24190
|
+
if (staticProps) _defineProperties$P(Constructor, staticProps);
|
|
24191
24191
|
return Constructor;
|
|
24192
24192
|
}
|
|
24193
24193
|
function _define_property$1f(obj, key, value) {
|
|
@@ -24326,7 +24326,7 @@ function _create_super$E(Derived) {
|
|
|
24326
24326
|
_inherits$E(ToolMessage, BaseMessage);
|
|
24327
24327
|
var _super = _create_super$E(ToolMessage);
|
|
24328
24328
|
function ToolMessage(fields, tool_call_id, name) {
|
|
24329
|
-
_class_call_check$
|
|
24329
|
+
_class_call_check$W(this, ToolMessage);
|
|
24330
24330
|
var _this;
|
|
24331
24331
|
if (typeof fields === "string") {
|
|
24332
24332
|
// eslint-disable-next-line no-param-reassign, @typescript-eslint/no-non-null-assertion
|
|
@@ -24383,7 +24383,7 @@ function _create_super$E(Derived) {
|
|
|
24383
24383
|
_this.metadata = fields.metadata;
|
|
24384
24384
|
return _this;
|
|
24385
24385
|
}
|
|
24386
|
-
_create_class$
|
|
24386
|
+
_create_class$P(ToolMessage, [
|
|
24387
24387
|
{
|
|
24388
24388
|
key: "lc_aliases",
|
|
24389
24389
|
get: function get() {
|
|
@@ -24431,7 +24431,7 @@ function _create_super$E(Derived) {
|
|
|
24431
24431
|
_inherits$E(ToolMessageChunk, BaseMessageChunk);
|
|
24432
24432
|
var _super = _create_super$E(ToolMessageChunk);
|
|
24433
24433
|
function ToolMessageChunk(fields) {
|
|
24434
|
-
_class_call_check$
|
|
24434
|
+
_class_call_check$W(this, ToolMessageChunk);
|
|
24435
24435
|
var _this;
|
|
24436
24436
|
_this = _super.call(this, fields);
|
|
24437
24437
|
Object.defineProperty(_assert_this_initialized$E(_this), "tool_call_id", {
|
|
@@ -24467,7 +24467,7 @@ function _create_super$E(Derived) {
|
|
|
24467
24467
|
_this.status = fields.status;
|
|
24468
24468
|
return _this;
|
|
24469
24469
|
}
|
|
24470
|
-
_create_class$
|
|
24470
|
+
_create_class$P(ToolMessageChunk, [
|
|
24471
24471
|
{
|
|
24472
24472
|
key: "_getType",
|
|
24473
24473
|
value: function _getType() {
|
|
@@ -24572,12 +24572,12 @@ function _assert_this_initialized$D(self) {
|
|
|
24572
24572
|
}
|
|
24573
24573
|
return self;
|
|
24574
24574
|
}
|
|
24575
|
-
function _class_call_check$
|
|
24575
|
+
function _class_call_check$V(instance, Constructor) {
|
|
24576
24576
|
if (!(instance instanceof Constructor)) {
|
|
24577
24577
|
throw new TypeError("Cannot call a class as a function");
|
|
24578
24578
|
}
|
|
24579
24579
|
}
|
|
24580
|
-
function _defineProperties$
|
|
24580
|
+
function _defineProperties$O(target, props) {
|
|
24581
24581
|
for(var i = 0; i < props.length; i++){
|
|
24582
24582
|
var descriptor = props[i];
|
|
24583
24583
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -24586,9 +24586,9 @@ function _defineProperties$N(target, props) {
|
|
|
24586
24586
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
24587
24587
|
}
|
|
24588
24588
|
}
|
|
24589
|
-
function _create_class$
|
|
24590
|
-
if (protoProps) _defineProperties$
|
|
24591
|
-
if (staticProps) _defineProperties$
|
|
24589
|
+
function _create_class$O(Constructor, protoProps, staticProps) {
|
|
24590
|
+
if (protoProps) _defineProperties$O(Constructor.prototype, protoProps);
|
|
24591
|
+
if (staticProps) _defineProperties$O(Constructor, staticProps);
|
|
24592
24592
|
return Constructor;
|
|
24593
24593
|
}
|
|
24594
24594
|
function _define_property$1e(obj, key, value) {
|
|
@@ -24765,7 +24765,7 @@ function _create_super$D(Derived) {
|
|
|
24765
24765
|
_inherits$D(AIMessage, BaseMessage);
|
|
24766
24766
|
var _super = _create_super$D(AIMessage);
|
|
24767
24767
|
function AIMessage(fields, /** @deprecated */ kwargs) {
|
|
24768
|
-
_class_call_check$
|
|
24768
|
+
_class_call_check$V(this, AIMessage);
|
|
24769
24769
|
var _this;
|
|
24770
24770
|
var initParams;
|
|
24771
24771
|
if (typeof fields === "string") {
|
|
@@ -24839,7 +24839,7 @@ function _create_super$D(Derived) {
|
|
|
24839
24839
|
_this.usage_metadata = initParams.usage_metadata;
|
|
24840
24840
|
return _this;
|
|
24841
24841
|
}
|
|
24842
|
-
_create_class$
|
|
24842
|
+
_create_class$O(AIMessage, [
|
|
24843
24843
|
{
|
|
24844
24844
|
key: "lc_aliases",
|
|
24845
24845
|
get: function get() {
|
|
@@ -24889,7 +24889,7 @@ function isAIMessageChunk(x) {
|
|
|
24889
24889
|
_inherits$D(AIMessageChunk, BaseMessageChunk);
|
|
24890
24890
|
var _super = _create_super$D(AIMessageChunk);
|
|
24891
24891
|
function AIMessageChunk(fields) {
|
|
24892
|
-
_class_call_check$
|
|
24892
|
+
_class_call_check$V(this, AIMessageChunk);
|
|
24893
24893
|
var _this;
|
|
24894
24894
|
var initParams;
|
|
24895
24895
|
if (typeof fields === "string") {
|
|
@@ -25031,7 +25031,7 @@ function isAIMessageChunk(x) {
|
|
|
25031
25031
|
_this.usage_metadata = initParams.usage_metadata;
|
|
25032
25032
|
return _this;
|
|
25033
25033
|
}
|
|
25034
|
-
_create_class$
|
|
25034
|
+
_create_class$O(AIMessageChunk, [
|
|
25035
25035
|
{
|
|
25036
25036
|
key: "lc_aliases",
|
|
25037
25037
|
get: function get() {
|
|
@@ -25136,12 +25136,12 @@ function _assert_this_initialized$C(self) {
|
|
|
25136
25136
|
}
|
|
25137
25137
|
return self;
|
|
25138
25138
|
}
|
|
25139
|
-
function _class_call_check$
|
|
25139
|
+
function _class_call_check$U(instance, Constructor) {
|
|
25140
25140
|
if (!(instance instanceof Constructor)) {
|
|
25141
25141
|
throw new TypeError("Cannot call a class as a function");
|
|
25142
25142
|
}
|
|
25143
25143
|
}
|
|
25144
|
-
function _defineProperties$
|
|
25144
|
+
function _defineProperties$N(target, props) {
|
|
25145
25145
|
for(var i = 0; i < props.length; i++){
|
|
25146
25146
|
var descriptor = props[i];
|
|
25147
25147
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25150,9 +25150,9 @@ function _defineProperties$M(target, props) {
|
|
|
25150
25150
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25151
25151
|
}
|
|
25152
25152
|
}
|
|
25153
|
-
function _create_class$
|
|
25154
|
-
if (protoProps) _defineProperties$
|
|
25155
|
-
if (staticProps) _defineProperties$
|
|
25153
|
+
function _create_class$N(Constructor, protoProps, staticProps) {
|
|
25154
|
+
if (protoProps) _defineProperties$N(Constructor.prototype, protoProps);
|
|
25155
|
+
if (staticProps) _defineProperties$N(Constructor, staticProps);
|
|
25156
25156
|
return Constructor;
|
|
25157
25157
|
}
|
|
25158
25158
|
function _define_property$1d(obj, key, value) {
|
|
@@ -25291,7 +25291,7 @@ function _create_super$C(Derived) {
|
|
|
25291
25291
|
_inherits$C(ChatMessage, BaseMessage);
|
|
25292
25292
|
var _super = _create_super$C(ChatMessage);
|
|
25293
25293
|
function ChatMessage(fields, role) {
|
|
25294
|
-
_class_call_check$
|
|
25294
|
+
_class_call_check$U(this, ChatMessage);
|
|
25295
25295
|
var _this;
|
|
25296
25296
|
if (typeof fields === "string") {
|
|
25297
25297
|
// eslint-disable-next-line no-param-reassign, @typescript-eslint/no-non-null-assertion
|
|
@@ -25310,7 +25310,7 @@ function _create_super$C(Derived) {
|
|
|
25310
25310
|
_this.role = fields.role;
|
|
25311
25311
|
return _this;
|
|
25312
25312
|
}
|
|
25313
|
-
_create_class$
|
|
25313
|
+
_create_class$N(ChatMessage, [
|
|
25314
25314
|
{
|
|
25315
25315
|
key: "_getType",
|
|
25316
25316
|
value: function _getType() {
|
|
@@ -25354,7 +25354,7 @@ function _create_super$C(Derived) {
|
|
|
25354
25354
|
_inherits$C(ChatMessageChunk, BaseMessageChunk);
|
|
25355
25355
|
var _super = _create_super$C(ChatMessageChunk);
|
|
25356
25356
|
function ChatMessageChunk(fields, role) {
|
|
25357
|
-
_class_call_check$
|
|
25357
|
+
_class_call_check$U(this, ChatMessageChunk);
|
|
25358
25358
|
var _this;
|
|
25359
25359
|
if (typeof fields === "string") {
|
|
25360
25360
|
// eslint-disable-next-line no-param-reassign, @typescript-eslint/no-non-null-assertion
|
|
@@ -25373,7 +25373,7 @@ function _create_super$C(Derived) {
|
|
|
25373
25373
|
_this.role = fields.role;
|
|
25374
25374
|
return _this;
|
|
25375
25375
|
}
|
|
25376
|
-
_create_class$
|
|
25376
|
+
_create_class$N(ChatMessageChunk, [
|
|
25377
25377
|
{
|
|
25378
25378
|
key: "_getType",
|
|
25379
25379
|
value: function _getType() {
|
|
@@ -25418,12 +25418,12 @@ function _assert_this_initialized$B(self) {
|
|
|
25418
25418
|
}
|
|
25419
25419
|
return self;
|
|
25420
25420
|
}
|
|
25421
|
-
function _class_call_check$
|
|
25421
|
+
function _class_call_check$T(instance, Constructor) {
|
|
25422
25422
|
if (!(instance instanceof Constructor)) {
|
|
25423
25423
|
throw new TypeError("Cannot call a class as a function");
|
|
25424
25424
|
}
|
|
25425
25425
|
}
|
|
25426
|
-
function _defineProperties$
|
|
25426
|
+
function _defineProperties$M(target, props) {
|
|
25427
25427
|
for(var i = 0; i < props.length; i++){
|
|
25428
25428
|
var descriptor = props[i];
|
|
25429
25429
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25432,9 +25432,9 @@ function _defineProperties$L(target, props) {
|
|
|
25432
25432
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25433
25433
|
}
|
|
25434
25434
|
}
|
|
25435
|
-
function _create_class$
|
|
25436
|
-
if (protoProps) _defineProperties$
|
|
25437
|
-
if (staticProps) _defineProperties$
|
|
25435
|
+
function _create_class$M(Constructor, protoProps, staticProps) {
|
|
25436
|
+
if (protoProps) _defineProperties$M(Constructor.prototype, protoProps);
|
|
25437
|
+
if (staticProps) _defineProperties$M(Constructor, staticProps);
|
|
25438
25438
|
return Constructor;
|
|
25439
25439
|
}
|
|
25440
25440
|
function _get_prototype_of$B(o) {
|
|
@@ -25504,10 +25504,10 @@ function _create_super$B(Derived) {
|
|
|
25504
25504
|
_inherits$B(FunctionMessageChunk, BaseMessageChunk);
|
|
25505
25505
|
var _super = _create_super$B(FunctionMessageChunk);
|
|
25506
25506
|
function FunctionMessageChunk() {
|
|
25507
|
-
_class_call_check$
|
|
25507
|
+
_class_call_check$T(this, FunctionMessageChunk);
|
|
25508
25508
|
return _super.apply(this, arguments);
|
|
25509
25509
|
}
|
|
25510
|
-
_create_class$
|
|
25510
|
+
_create_class$M(FunctionMessageChunk, [
|
|
25511
25511
|
{
|
|
25512
25512
|
key: "_getType",
|
|
25513
25513
|
value: function _getType() {
|
|
@@ -25544,12 +25544,12 @@ function _assert_this_initialized$A(self) {
|
|
|
25544
25544
|
}
|
|
25545
25545
|
return self;
|
|
25546
25546
|
}
|
|
25547
|
-
function _class_call_check$
|
|
25547
|
+
function _class_call_check$S(instance, Constructor) {
|
|
25548
25548
|
if (!(instance instanceof Constructor)) {
|
|
25549
25549
|
throw new TypeError("Cannot call a class as a function");
|
|
25550
25550
|
}
|
|
25551
25551
|
}
|
|
25552
|
-
function _defineProperties$
|
|
25552
|
+
function _defineProperties$L(target, props) {
|
|
25553
25553
|
for(var i = 0; i < props.length; i++){
|
|
25554
25554
|
var descriptor = props[i];
|
|
25555
25555
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25558,9 +25558,9 @@ function _defineProperties$K(target, props) {
|
|
|
25558
25558
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25559
25559
|
}
|
|
25560
25560
|
}
|
|
25561
|
-
function _create_class$
|
|
25562
|
-
if (protoProps) _defineProperties$
|
|
25563
|
-
if (staticProps) _defineProperties$
|
|
25561
|
+
function _create_class$L(Constructor, protoProps, staticProps) {
|
|
25562
|
+
if (protoProps) _defineProperties$L(Constructor.prototype, protoProps);
|
|
25563
|
+
if (staticProps) _defineProperties$L(Constructor, staticProps);
|
|
25564
25564
|
return Constructor;
|
|
25565
25565
|
}
|
|
25566
25566
|
function _get_prototype_of$A(o) {
|
|
@@ -25629,10 +25629,10 @@ function _create_super$A(Derived) {
|
|
|
25629
25629
|
_inherits$A(HumanMessage, BaseMessage);
|
|
25630
25630
|
var _super = _create_super$A(HumanMessage);
|
|
25631
25631
|
function HumanMessage(fields, /** @deprecated */ kwargs) {
|
|
25632
|
-
_class_call_check$
|
|
25632
|
+
_class_call_check$S(this, HumanMessage);
|
|
25633
25633
|
return _super.call(this, fields, kwargs);
|
|
25634
25634
|
}
|
|
25635
|
-
_create_class$
|
|
25635
|
+
_create_class$L(HumanMessage, [
|
|
25636
25636
|
{
|
|
25637
25637
|
key: "_getType",
|
|
25638
25638
|
value: function _getType() {
|
|
@@ -25656,10 +25656,10 @@ function _create_super$A(Derived) {
|
|
|
25656
25656
|
_inherits$A(HumanMessageChunk, BaseMessageChunk);
|
|
25657
25657
|
var _super = _create_super$A(HumanMessageChunk);
|
|
25658
25658
|
function HumanMessageChunk(fields, /** @deprecated */ kwargs) {
|
|
25659
|
-
_class_call_check$
|
|
25659
|
+
_class_call_check$S(this, HumanMessageChunk);
|
|
25660
25660
|
return _super.call(this, fields, kwargs);
|
|
25661
25661
|
}
|
|
25662
|
-
_create_class$
|
|
25662
|
+
_create_class$L(HumanMessageChunk, [
|
|
25663
25663
|
{
|
|
25664
25664
|
key: "_getType",
|
|
25665
25665
|
value: function _getType() {
|
|
@@ -25695,12 +25695,12 @@ function _assert_this_initialized$z(self) {
|
|
|
25695
25695
|
}
|
|
25696
25696
|
return self;
|
|
25697
25697
|
}
|
|
25698
|
-
function _class_call_check$
|
|
25698
|
+
function _class_call_check$R(instance, Constructor) {
|
|
25699
25699
|
if (!(instance instanceof Constructor)) {
|
|
25700
25700
|
throw new TypeError("Cannot call a class as a function");
|
|
25701
25701
|
}
|
|
25702
25702
|
}
|
|
25703
|
-
function _defineProperties$
|
|
25703
|
+
function _defineProperties$K(target, props) {
|
|
25704
25704
|
for(var i = 0; i < props.length; i++){
|
|
25705
25705
|
var descriptor = props[i];
|
|
25706
25706
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -25709,9 +25709,9 @@ function _defineProperties$J(target, props) {
|
|
|
25709
25709
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25710
25710
|
}
|
|
25711
25711
|
}
|
|
25712
|
-
function _create_class$
|
|
25713
|
-
if (protoProps) _defineProperties$
|
|
25714
|
-
if (staticProps) _defineProperties$
|
|
25712
|
+
function _create_class$K(Constructor, protoProps, staticProps) {
|
|
25713
|
+
if (protoProps) _defineProperties$K(Constructor.prototype, protoProps);
|
|
25714
|
+
if (staticProps) _defineProperties$K(Constructor, staticProps);
|
|
25715
25715
|
return Constructor;
|
|
25716
25716
|
}
|
|
25717
25717
|
function _get_prototype_of$z(o) {
|
|
@@ -25780,10 +25780,10 @@ function _create_super$z(Derived) {
|
|
|
25780
25780
|
_inherits$z(SystemMessage, BaseMessage);
|
|
25781
25781
|
var _super = _create_super$z(SystemMessage);
|
|
25782
25782
|
function SystemMessage(fields, /** @deprecated */ kwargs) {
|
|
25783
|
-
_class_call_check$
|
|
25783
|
+
_class_call_check$R(this, SystemMessage);
|
|
25784
25784
|
return _super.call(this, fields, kwargs);
|
|
25785
25785
|
}
|
|
25786
|
-
_create_class$
|
|
25786
|
+
_create_class$K(SystemMessage, [
|
|
25787
25787
|
{
|
|
25788
25788
|
key: "_getType",
|
|
25789
25789
|
value: function _getType() {
|
|
@@ -25807,10 +25807,10 @@ function _create_super$z(Derived) {
|
|
|
25807
25807
|
_inherits$z(SystemMessageChunk, BaseMessageChunk);
|
|
25808
25808
|
var _super = _create_super$z(SystemMessageChunk);
|
|
25809
25809
|
function SystemMessageChunk(fields, /** @deprecated */ kwargs) {
|
|
25810
|
-
_class_call_check$
|
|
25810
|
+
_class_call_check$R(this, SystemMessageChunk);
|
|
25811
25811
|
return _super.call(this, fields, kwargs);
|
|
25812
25812
|
}
|
|
25813
|
-
_create_class$
|
|
25813
|
+
_create_class$K(SystemMessageChunk, [
|
|
25814
25814
|
{
|
|
25815
25815
|
key: "_getType",
|
|
25816
25816
|
value: function _getType() {
|
|
@@ -25852,7 +25852,7 @@ function _assert_this_initialized$y(self) {
|
|
|
25852
25852
|
}
|
|
25853
25853
|
return self;
|
|
25854
25854
|
}
|
|
25855
|
-
function _class_call_check$
|
|
25855
|
+
function _class_call_check$Q(instance, Constructor) {
|
|
25856
25856
|
if (!(instance instanceof Constructor)) {
|
|
25857
25857
|
throw new TypeError("Cannot call a class as a function");
|
|
25858
25858
|
}
|
|
@@ -25974,7 +25974,7 @@ function _isToolCall(toolCall) {
|
|
|
25974
25974
|
_inherits$y(ToolInputParsingException, Error1);
|
|
25975
25975
|
var _super = _create_super$y(ToolInputParsingException);
|
|
25976
25976
|
function ToolInputParsingException(message, output) {
|
|
25977
|
-
_class_call_check$
|
|
25977
|
+
_class_call_check$Q(this, ToolInputParsingException);
|
|
25978
25978
|
var _this;
|
|
25979
25979
|
_this = _super.call(this, message);
|
|
25980
25980
|
Object.defineProperty(_assert_this_initialized$y(_this), "output", {
|
|
@@ -25995,12 +25995,12 @@ function _assert_this_initialized$x(self) {
|
|
|
25995
25995
|
}
|
|
25996
25996
|
return self;
|
|
25997
25997
|
}
|
|
25998
|
-
function _class_call_check$
|
|
25998
|
+
function _class_call_check$P(instance, Constructor) {
|
|
25999
25999
|
if (!(instance instanceof Constructor)) {
|
|
26000
26000
|
throw new TypeError("Cannot call a class as a function");
|
|
26001
26001
|
}
|
|
26002
26002
|
}
|
|
26003
|
-
function _defineProperties$
|
|
26003
|
+
function _defineProperties$J(target, props) {
|
|
26004
26004
|
for(var i = 0; i < props.length; i++){
|
|
26005
26005
|
var descriptor = props[i];
|
|
26006
26006
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -26009,8 +26009,8 @@ function _defineProperties$I(target, props) {
|
|
|
26009
26009
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
26010
26010
|
}
|
|
26011
26011
|
}
|
|
26012
|
-
function _create_class$
|
|
26013
|
-
if (protoProps) _defineProperties$
|
|
26012
|
+
function _create_class$J(Constructor, protoProps, staticProps) {
|
|
26013
|
+
if (protoProps) _defineProperties$J(Constructor.prototype, protoProps);
|
|
26014
26014
|
return Constructor;
|
|
26015
26015
|
}
|
|
26016
26016
|
function _define_property$1c(obj, key, value) {
|
|
@@ -26149,7 +26149,7 @@ function _create_super$x(Derived) {
|
|
|
26149
26149
|
_inherits$x(RemoveMessage, BaseMessage);
|
|
26150
26150
|
var _super = _create_super$x(RemoveMessage);
|
|
26151
26151
|
function RemoveMessage(fields) {
|
|
26152
|
-
_class_call_check$
|
|
26152
|
+
_class_call_check$P(this, RemoveMessage);
|
|
26153
26153
|
var _this;
|
|
26154
26154
|
_this = _super.call(this, _object_spread_props$W(_object_spread$1c({}, fields), {
|
|
26155
26155
|
content: ""
|
|
@@ -26165,7 +26165,7 @@ function _create_super$x(Derived) {
|
|
|
26165
26165
|
_this.id = fields.id;
|
|
26166
26166
|
return _this;
|
|
26167
26167
|
}
|
|
26168
|
-
_create_class$
|
|
26168
|
+
_create_class$J(RemoveMessage, [
|
|
26169
26169
|
{
|
|
26170
26170
|
key: "_getType",
|
|
26171
26171
|
value: function _getType() {
|
|
@@ -26739,7 +26739,7 @@ function _assert_this_initialized$w(self) {
|
|
|
26739
26739
|
}
|
|
26740
26740
|
return self;
|
|
26741
26741
|
}
|
|
26742
|
-
function _class_call_check$
|
|
26742
|
+
function _class_call_check$O(instance, Constructor) {
|
|
26743
26743
|
if (!(instance instanceof Constructor)) {
|
|
26744
26744
|
throw new TypeError("Cannot call a class as a function");
|
|
26745
26745
|
}
|
|
@@ -26761,7 +26761,7 @@ function _construct$7(Parent, args, Class) {
|
|
|
26761
26761
|
}
|
|
26762
26762
|
return _construct$7.apply(null, arguments);
|
|
26763
26763
|
}
|
|
26764
|
-
function _defineProperties$
|
|
26764
|
+
function _defineProperties$I(target, props) {
|
|
26765
26765
|
for(var i = 0; i < props.length; i++){
|
|
26766
26766
|
var descriptor = props[i];
|
|
26767
26767
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -26770,9 +26770,9 @@ function _defineProperties$H(target, props) {
|
|
|
26770
26770
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
26771
26771
|
}
|
|
26772
26772
|
}
|
|
26773
|
-
function _create_class$
|
|
26774
|
-
if (protoProps) _defineProperties$
|
|
26775
|
-
if (staticProps) _defineProperties$
|
|
26773
|
+
function _create_class$I(Constructor, protoProps, staticProps) {
|
|
26774
|
+
if (protoProps) _defineProperties$I(Constructor.prototype, protoProps);
|
|
26775
|
+
if (staticProps) _defineProperties$I(Constructor, staticProps);
|
|
26776
26776
|
return Constructor;
|
|
26777
26777
|
}
|
|
26778
26778
|
function _get_prototype_of$w(o) {
|
|
@@ -26910,7 +26910,7 @@ var ZodError = /*#__PURE__*/ function _target(Error1) {
|
|
|
26910
26910
|
_inherits$w(ZodError, Error1);
|
|
26911
26911
|
var _super = _create_super$w(ZodError);
|
|
26912
26912
|
function ZodError(issues) {
|
|
26913
|
-
_class_call_check$
|
|
26913
|
+
_class_call_check$O(this, ZodError);
|
|
26914
26914
|
var _this;
|
|
26915
26915
|
_this = _super.call(this);
|
|
26916
26916
|
_this.issues = [];
|
|
@@ -26934,7 +26934,7 @@ var ZodError = /*#__PURE__*/ function _target(Error1) {
|
|
|
26934
26934
|
_this.issues = issues;
|
|
26935
26935
|
return _this;
|
|
26936
26936
|
}
|
|
26937
|
-
_create_class$
|
|
26937
|
+
_create_class$I(ZodError, [
|
|
26938
26938
|
{
|
|
26939
26939
|
key: "errors",
|
|
26940
26940
|
get: function get() {
|
|
@@ -27228,12 +27228,12 @@ function _async_to_generator$B(fn) {
|
|
|
27228
27228
|
});
|
|
27229
27229
|
};
|
|
27230
27230
|
}
|
|
27231
|
-
function _class_call_check$
|
|
27231
|
+
function _class_call_check$N(instance, Constructor) {
|
|
27232
27232
|
if (!(instance instanceof Constructor)) {
|
|
27233
27233
|
throw new TypeError("Cannot call a class as a function");
|
|
27234
27234
|
}
|
|
27235
27235
|
}
|
|
27236
|
-
function _defineProperties$
|
|
27236
|
+
function _defineProperties$H(target, props) {
|
|
27237
27237
|
for(var i = 0; i < props.length; i++){
|
|
27238
27238
|
var descriptor = props[i];
|
|
27239
27239
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -27242,9 +27242,9 @@ function _defineProperties$G(target, props) {
|
|
|
27242
27242
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
27243
27243
|
}
|
|
27244
27244
|
}
|
|
27245
|
-
function _create_class$
|
|
27246
|
-
if (protoProps) _defineProperties$
|
|
27247
|
-
if (staticProps) _defineProperties$
|
|
27245
|
+
function _create_class$H(Constructor, protoProps, staticProps) {
|
|
27246
|
+
if (protoProps) _defineProperties$H(Constructor.prototype, protoProps);
|
|
27247
|
+
if (staticProps) _defineProperties$H(Constructor, staticProps);
|
|
27248
27248
|
return Constructor;
|
|
27249
27249
|
}
|
|
27250
27250
|
function _define_property$19(obj, key, value) {
|
|
@@ -27476,10 +27476,10 @@ function addIssueToContext(ctx, issueData) {
|
|
|
27476
27476
|
}
|
|
27477
27477
|
var ParseStatus = /*#__PURE__*/ function() {
|
|
27478
27478
|
function ParseStatus() {
|
|
27479
|
-
_class_call_check$
|
|
27479
|
+
_class_call_check$N(this, ParseStatus);
|
|
27480
27480
|
this.value = "valid";
|
|
27481
27481
|
}
|
|
27482
|
-
_create_class$
|
|
27482
|
+
_create_class$H(ParseStatus, [
|
|
27483
27483
|
{
|
|
27484
27484
|
key: "dirty",
|
|
27485
27485
|
value: function dirty() {
|
|
@@ -27737,12 +27737,12 @@ function _async_to_generator$A(fn) {
|
|
|
27737
27737
|
});
|
|
27738
27738
|
};
|
|
27739
27739
|
}
|
|
27740
|
-
function _class_call_check$
|
|
27740
|
+
function _class_call_check$M(instance, Constructor) {
|
|
27741
27741
|
if (!(instance instanceof Constructor)) {
|
|
27742
27742
|
throw new TypeError("Cannot call a class as a function");
|
|
27743
27743
|
}
|
|
27744
27744
|
}
|
|
27745
|
-
function _defineProperties$
|
|
27745
|
+
function _defineProperties$G(target, props) {
|
|
27746
27746
|
for(var i = 0; i < props.length; i++){
|
|
27747
27747
|
var descriptor = props[i];
|
|
27748
27748
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -27751,9 +27751,9 @@ function _defineProperties$F(target, props) {
|
|
|
27751
27751
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
27752
27752
|
}
|
|
27753
27753
|
}
|
|
27754
|
-
function _create_class$
|
|
27755
|
-
if (protoProps) _defineProperties$
|
|
27756
|
-
if (staticProps) _defineProperties$
|
|
27754
|
+
function _create_class$G(Constructor, protoProps, staticProps) {
|
|
27755
|
+
if (protoProps) _defineProperties$G(Constructor.prototype, protoProps);
|
|
27756
|
+
if (staticProps) _defineProperties$G(Constructor, staticProps);
|
|
27757
27757
|
return Constructor;
|
|
27758
27758
|
}
|
|
27759
27759
|
function _define_property$18(obj, key, value) {
|
|
@@ -28014,14 +28014,14 @@ function _ts_generator$C(thisArg, body) {
|
|
|
28014
28014
|
}
|
|
28015
28015
|
var ParseInputLazyPath = /*#__PURE__*/ function() {
|
|
28016
28016
|
function ParseInputLazyPath(parent, value, path, key) {
|
|
28017
|
-
_class_call_check$
|
|
28017
|
+
_class_call_check$M(this, ParseInputLazyPath);
|
|
28018
28018
|
this._cachedPath = [];
|
|
28019
28019
|
this.parent = parent;
|
|
28020
28020
|
this.data = value;
|
|
28021
28021
|
this._path = path;
|
|
28022
28022
|
this._key = key;
|
|
28023
28023
|
}
|
|
28024
|
-
_create_class$
|
|
28024
|
+
_create_class$G(ParseInputLazyPath, [
|
|
28025
28025
|
{
|
|
28026
28026
|
key: "path",
|
|
28027
28027
|
get: function get() {
|
|
@@ -28102,7 +28102,7 @@ function processCreateParams(params) {
|
|
|
28102
28102
|
var ZodType = /*#__PURE__*/ function() {
|
|
28103
28103
|
function ZodType(def) {
|
|
28104
28104
|
var _this = this;
|
|
28105
|
-
_class_call_check$
|
|
28105
|
+
_class_call_check$M(this, ZodType);
|
|
28106
28106
|
/** Alias of safeParseAsync */ this.spa = this.safeParseAsync;
|
|
28107
28107
|
this._def = def;
|
|
28108
28108
|
this.parse = this.parse.bind(this);
|
|
@@ -28137,7 +28137,7 @@ var ZodType = /*#__PURE__*/ function() {
|
|
|
28137
28137
|
}
|
|
28138
28138
|
};
|
|
28139
28139
|
}
|
|
28140
|
-
_create_class$
|
|
28140
|
+
_create_class$G(ZodType, [
|
|
28141
28141
|
{
|
|
28142
28142
|
key: "description",
|
|
28143
28143
|
get: function get() {
|
|
@@ -28651,10 +28651,10 @@ var ZodString = /*#__PURE__*/ function(ZodType) {
|
|
|
28651
28651
|
_inherits$v(ZodString, ZodType);
|
|
28652
28652
|
var _super = _create_super$v(ZodString);
|
|
28653
28653
|
function ZodString() {
|
|
28654
|
-
_class_call_check$
|
|
28654
|
+
_class_call_check$M(this, ZodString);
|
|
28655
28655
|
return _super.apply(this, arguments);
|
|
28656
28656
|
}
|
|
28657
|
-
_create_class$
|
|
28657
|
+
_create_class$G(ZodString, [
|
|
28658
28658
|
{
|
|
28659
28659
|
key: "_parse",
|
|
28660
28660
|
value: function _parse(input) {
|
|
@@ -29476,7 +29476,7 @@ var ZodAny = /*#__PURE__*/ function(ZodType) {
|
|
|
29476
29476
|
_inherits$v(ZodAny, ZodType);
|
|
29477
29477
|
var _super = _create_super$v(ZodAny);
|
|
29478
29478
|
function ZodAny() {
|
|
29479
|
-
_class_call_check$
|
|
29479
|
+
_class_call_check$M(this, ZodAny);
|
|
29480
29480
|
var _this;
|
|
29481
29481
|
_this = _super.call.apply(_super, [
|
|
29482
29482
|
this
|
|
@@ -29485,7 +29485,7 @@ var ZodAny = /*#__PURE__*/ function(ZodType) {
|
|
|
29485
29485
|
_this._any = true;
|
|
29486
29486
|
return _this;
|
|
29487
29487
|
}
|
|
29488
|
-
_create_class$
|
|
29488
|
+
_create_class$G(ZodAny, [
|
|
29489
29489
|
{
|
|
29490
29490
|
key: "_parse",
|
|
29491
29491
|
value: function _parse(input) {
|
|
@@ -29504,10 +29504,10 @@ var ZodNever = /*#__PURE__*/ function(ZodType) {
|
|
|
29504
29504
|
_inherits$v(ZodNever, ZodType);
|
|
29505
29505
|
var _super = _create_super$v(ZodNever);
|
|
29506
29506
|
function ZodNever() {
|
|
29507
|
-
_class_call_check$
|
|
29507
|
+
_class_call_check$M(this, ZodNever);
|
|
29508
29508
|
return _super.apply(this, arguments);
|
|
29509
29509
|
}
|
|
29510
|
-
_create_class$
|
|
29510
|
+
_create_class$G(ZodNever, [
|
|
29511
29511
|
{
|
|
29512
29512
|
key: "_parse",
|
|
29513
29513
|
value: function _parse(input) {
|
|
@@ -29532,10 +29532,10 @@ var ZodArray = /*#__PURE__*/ function(ZodType) {
|
|
|
29532
29532
|
_inherits$v(ZodArray, ZodType);
|
|
29533
29533
|
var _super = _create_super$v(ZodArray);
|
|
29534
29534
|
function ZodArray() {
|
|
29535
|
-
_class_call_check$
|
|
29535
|
+
_class_call_check$M(this, ZodArray);
|
|
29536
29536
|
return _super.apply(this, arguments);
|
|
29537
29537
|
}
|
|
29538
|
-
_create_class$
|
|
29538
|
+
_create_class$G(ZodArray, [
|
|
29539
29539
|
{
|
|
29540
29540
|
key: "_parse",
|
|
29541
29541
|
value: function _parse(input) {
|
|
@@ -29693,7 +29693,7 @@ var ZodObject = /*#__PURE__*/ function(ZodType) {
|
|
|
29693
29693
|
_inherits$v(ZodObject, ZodType);
|
|
29694
29694
|
var _super = _create_super$v(ZodObject);
|
|
29695
29695
|
function ZodObject() {
|
|
29696
|
-
_class_call_check$
|
|
29696
|
+
_class_call_check$M(this, ZodObject);
|
|
29697
29697
|
var _this;
|
|
29698
29698
|
_this = _super.call.apply(_super, [
|
|
29699
29699
|
this
|
|
@@ -29741,7 +29741,7 @@ var ZodObject = /*#__PURE__*/ function(ZodType) {
|
|
|
29741
29741
|
* */ _this.augment = _this.extend;
|
|
29742
29742
|
return _this;
|
|
29743
29743
|
}
|
|
29744
|
-
_create_class$
|
|
29744
|
+
_create_class$G(ZodObject, [
|
|
29745
29745
|
{
|
|
29746
29746
|
key: "_getCached",
|
|
29747
29747
|
value: function _getCached() {
|
|
@@ -30326,10 +30326,10 @@ var ZodUnion = /*#__PURE__*/ function(ZodType) {
|
|
|
30326
30326
|
_inherits$v(ZodUnion, ZodType);
|
|
30327
30327
|
var _super = _create_super$v(ZodUnion);
|
|
30328
30328
|
function ZodUnion() {
|
|
30329
|
-
_class_call_check$
|
|
30329
|
+
_class_call_check$M(this, ZodUnion);
|
|
30330
30330
|
return _super.apply(this, arguments);
|
|
30331
30331
|
}
|
|
30332
|
-
_create_class$
|
|
30332
|
+
_create_class$G(ZodUnion, [
|
|
30333
30333
|
{
|
|
30334
30334
|
key: "_parse",
|
|
30335
30335
|
value: function _parse(input) {
|
|
@@ -30584,10 +30584,10 @@ var ZodIntersection = /*#__PURE__*/ function(ZodType) {
|
|
|
30584
30584
|
_inherits$v(ZodIntersection, ZodType);
|
|
30585
30585
|
var _super = _create_super$v(ZodIntersection);
|
|
30586
30586
|
function ZodIntersection() {
|
|
30587
|
-
_class_call_check$
|
|
30587
|
+
_class_call_check$M(this, ZodIntersection);
|
|
30588
30588
|
return _super.apply(this, arguments);
|
|
30589
30589
|
}
|
|
30590
|
-
_create_class$
|
|
30590
|
+
_create_class$G(ZodIntersection, [
|
|
30591
30591
|
{
|
|
30592
30592
|
key: "_parse",
|
|
30593
30593
|
value: function _parse(input) {
|
|
@@ -30655,10 +30655,10 @@ var ZodTuple = /*#__PURE__*/ function(ZodType) {
|
|
|
30655
30655
|
_inherits$v(ZodTuple, ZodType);
|
|
30656
30656
|
var _super = _create_super$v(ZodTuple);
|
|
30657
30657
|
function ZodTuple() {
|
|
30658
|
-
_class_call_check$
|
|
30658
|
+
_class_call_check$M(this, ZodTuple);
|
|
30659
30659
|
return _super.apply(this, arguments);
|
|
30660
30660
|
}
|
|
30661
|
-
_create_class$
|
|
30661
|
+
_create_class$G(ZodTuple, [
|
|
30662
30662
|
{
|
|
30663
30663
|
key: "_parse",
|
|
30664
30664
|
value: function _parse(input) {
|
|
@@ -30746,10 +30746,10 @@ var ZodEnum = /*#__PURE__*/ function(ZodType) {
|
|
|
30746
30746
|
_inherits$v(ZodEnum, ZodType);
|
|
30747
30747
|
var _super = _create_super$v(ZodEnum);
|
|
30748
30748
|
function ZodEnum() {
|
|
30749
|
-
_class_call_check$
|
|
30749
|
+
_class_call_check$M(this, ZodEnum);
|
|
30750
30750
|
return _super.apply(this, arguments);
|
|
30751
30751
|
}
|
|
30752
|
-
_create_class$
|
|
30752
|
+
_create_class$G(ZodEnum, [
|
|
30753
30753
|
{
|
|
30754
30754
|
key: "_parse",
|
|
30755
30755
|
value: function _parse(input) {
|
|
@@ -30890,10 +30890,10 @@ var ZodPromise = /*#__PURE__*/ function(ZodType) {
|
|
|
30890
30890
|
_inherits$v(ZodPromise, ZodType);
|
|
30891
30891
|
var _super = _create_super$v(ZodPromise);
|
|
30892
30892
|
function ZodPromise() {
|
|
30893
|
-
_class_call_check$
|
|
30893
|
+
_class_call_check$M(this, ZodPromise);
|
|
30894
30894
|
return _super.apply(this, arguments);
|
|
30895
30895
|
}
|
|
30896
|
-
_create_class$
|
|
30896
|
+
_create_class$G(ZodPromise, [
|
|
30897
30897
|
{
|
|
30898
30898
|
key: "unwrap",
|
|
30899
30899
|
value: function unwrap() {
|
|
@@ -30935,10 +30935,10 @@ var ZodEffects = /*#__PURE__*/ function(ZodType) {
|
|
|
30935
30935
|
_inherits$v(ZodEffects, ZodType);
|
|
30936
30936
|
var _super = _create_super$v(ZodEffects);
|
|
30937
30937
|
function ZodEffects() {
|
|
30938
|
-
_class_call_check$
|
|
30938
|
+
_class_call_check$M(this, ZodEffects);
|
|
30939
30939
|
return _super.apply(this, arguments);
|
|
30940
30940
|
}
|
|
30941
|
-
_create_class$
|
|
30941
|
+
_create_class$G(ZodEffects, [
|
|
30942
30942
|
{
|
|
30943
30943
|
key: "innerType",
|
|
30944
30944
|
value: function innerType() {
|
|
@@ -31131,10 +31131,10 @@ var ZodOptional = /*#__PURE__*/ function(ZodType) {
|
|
|
31131
31131
|
_inherits$v(ZodOptional, ZodType);
|
|
31132
31132
|
var _super = _create_super$v(ZodOptional);
|
|
31133
31133
|
function ZodOptional() {
|
|
31134
|
-
_class_call_check$
|
|
31134
|
+
_class_call_check$M(this, ZodOptional);
|
|
31135
31135
|
return _super.apply(this, arguments);
|
|
31136
31136
|
}
|
|
31137
|
-
_create_class$
|
|
31137
|
+
_create_class$G(ZodOptional, [
|
|
31138
31138
|
{
|
|
31139
31139
|
key: "_parse",
|
|
31140
31140
|
value: function _parse(input) {
|
|
@@ -31164,10 +31164,10 @@ var ZodNullable = /*#__PURE__*/ function(ZodType) {
|
|
|
31164
31164
|
_inherits$v(ZodNullable, ZodType);
|
|
31165
31165
|
var _super = _create_super$v(ZodNullable);
|
|
31166
31166
|
function ZodNullable() {
|
|
31167
|
-
_class_call_check$
|
|
31167
|
+
_class_call_check$M(this, ZodNullable);
|
|
31168
31168
|
return _super.apply(this, arguments);
|
|
31169
31169
|
}
|
|
31170
|
-
_create_class$
|
|
31170
|
+
_create_class$G(ZodNullable, [
|
|
31171
31171
|
{
|
|
31172
31172
|
key: "_parse",
|
|
31173
31173
|
value: function _parse(input) {
|
|
@@ -31197,10 +31197,10 @@ var ZodDefault = /*#__PURE__*/ function(ZodType) {
|
|
|
31197
31197
|
_inherits$v(ZodDefault, ZodType);
|
|
31198
31198
|
var _super = _create_super$v(ZodDefault);
|
|
31199
31199
|
function ZodDefault() {
|
|
31200
|
-
_class_call_check$
|
|
31200
|
+
_class_call_check$M(this, ZodDefault);
|
|
31201
31201
|
return _super.apply(this, arguments);
|
|
31202
31202
|
}
|
|
31203
|
-
_create_class$
|
|
31203
|
+
_create_class$G(ZodDefault, [
|
|
31204
31204
|
{
|
|
31205
31205
|
key: "_parse",
|
|
31206
31206
|
value: function _parse(input) {
|
|
@@ -31238,10 +31238,10 @@ var ZodCatch = /*#__PURE__*/ function(ZodType) {
|
|
|
31238
31238
|
_inherits$v(ZodCatch, ZodType);
|
|
31239
31239
|
var _super = _create_super$v(ZodCatch);
|
|
31240
31240
|
function ZodCatch() {
|
|
31241
|
-
_class_call_check$
|
|
31241
|
+
_class_call_check$M(this, ZodCatch);
|
|
31242
31242
|
return _super.apply(this, arguments);
|
|
31243
31243
|
}
|
|
31244
|
-
_create_class$
|
|
31244
|
+
_create_class$G(ZodCatch, [
|
|
31245
31245
|
{
|
|
31246
31246
|
key: "_parse",
|
|
31247
31247
|
value: function _parse(input) {
|
|
@@ -31305,10 +31305,10 @@ var ZodBranded = /*#__PURE__*/ function(ZodType) {
|
|
|
31305
31305
|
_inherits$v(ZodBranded, ZodType);
|
|
31306
31306
|
var _super = _create_super$v(ZodBranded);
|
|
31307
31307
|
function ZodBranded() {
|
|
31308
|
-
_class_call_check$
|
|
31308
|
+
_class_call_check$M(this, ZodBranded);
|
|
31309
31309
|
return _super.apply(this, arguments);
|
|
31310
31310
|
}
|
|
31311
|
-
_create_class$
|
|
31311
|
+
_create_class$G(ZodBranded, [
|
|
31312
31312
|
{
|
|
31313
31313
|
key: "_parse",
|
|
31314
31314
|
value: function _parse(input) {
|
|
@@ -31334,10 +31334,10 @@ var ZodPipeline = /*#__PURE__*/ function(ZodType) {
|
|
|
31334
31334
|
_inherits$v(ZodPipeline, ZodType);
|
|
31335
31335
|
var _super = _create_super$v(ZodPipeline);
|
|
31336
31336
|
function ZodPipeline() {
|
|
31337
|
-
_class_call_check$
|
|
31337
|
+
_class_call_check$M(this, ZodPipeline);
|
|
31338
31338
|
return _super.apply(this, arguments);
|
|
31339
31339
|
}
|
|
31340
|
-
_create_class$
|
|
31340
|
+
_create_class$G(ZodPipeline, [
|
|
31341
31341
|
{
|
|
31342
31342
|
key: "_parse",
|
|
31343
31343
|
value: function _parse(input) {
|
|
@@ -31429,10 +31429,10 @@ var ZodReadonly = /*#__PURE__*/ function(ZodType) {
|
|
|
31429
31429
|
_inherits$v(ZodReadonly, ZodType);
|
|
31430
31430
|
var _super = _create_super$v(ZodReadonly);
|
|
31431
31431
|
function ZodReadonly() {
|
|
31432
|
-
_class_call_check$
|
|
31432
|
+
_class_call_check$M(this, ZodReadonly);
|
|
31433
31433
|
return _super.apply(this, arguments);
|
|
31434
31434
|
}
|
|
31435
|
-
_create_class$
|
|
31435
|
+
_create_class$G(ZodReadonly, [
|
|
31436
31436
|
{
|
|
31437
31437
|
key: "_parse",
|
|
31438
31438
|
value: function _parse(input) {
|
|
@@ -31790,7 +31790,7 @@ function _async_to_generator$z(fn) {
|
|
|
31790
31790
|
});
|
|
31791
31791
|
};
|
|
31792
31792
|
}
|
|
31793
|
-
function _class_call_check$
|
|
31793
|
+
function _class_call_check$L(instance, Constructor) {
|
|
31794
31794
|
if (!(instance instanceof Constructor)) {
|
|
31795
31795
|
throw new TypeError("Cannot call a class as a function");
|
|
31796
31796
|
}
|
|
@@ -32042,7 +32042,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
32042
32042
|
_inherits$u(AbortError, Error1);
|
|
32043
32043
|
var _super = _create_super$u(AbortError);
|
|
32044
32044
|
function AbortError(message) {
|
|
32045
|
-
_class_call_check$
|
|
32045
|
+
_class_call_check$L(this, AbortError);
|
|
32046
32046
|
var _this;
|
|
32047
32047
|
_this = _super.call(this);
|
|
32048
32048
|
if (_instanceof$g(message, Error)) {
|
|
@@ -32432,12 +32432,12 @@ function sha1(bytes) {
|
|
|
32432
32432
|
|
|
32433
32433
|
var v5 = v35('v5', 0x50, sha1);
|
|
32434
32434
|
|
|
32435
|
-
function _class_call_check$
|
|
32435
|
+
function _class_call_check$K(instance, Constructor) {
|
|
32436
32436
|
if (!(instance instanceof Constructor)) {
|
|
32437
32437
|
throw new TypeError("Cannot call a class as a function");
|
|
32438
32438
|
}
|
|
32439
32439
|
}
|
|
32440
|
-
function _defineProperties$
|
|
32440
|
+
function _defineProperties$F(target, props) {
|
|
32441
32441
|
for(var i = 0; i < props.length; i++){
|
|
32442
32442
|
var descriptor = props[i];
|
|
32443
32443
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -32446,15 +32446,15 @@ function _defineProperties$E(target, props) {
|
|
|
32446
32446
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32447
32447
|
}
|
|
32448
32448
|
}
|
|
32449
|
-
function _create_class$
|
|
32450
|
-
if (protoProps) _defineProperties$
|
|
32449
|
+
function _create_class$F(Constructor, protoProps, staticProps) {
|
|
32450
|
+
if (protoProps) _defineProperties$F(Constructor.prototype, protoProps);
|
|
32451
32451
|
return Constructor;
|
|
32452
32452
|
}
|
|
32453
32453
|
var MockAsyncLocalStorage$1 = /*#__PURE__*/ function() {
|
|
32454
32454
|
function MockAsyncLocalStorage() {
|
|
32455
|
-
_class_call_check$
|
|
32455
|
+
_class_call_check$K(this, MockAsyncLocalStorage);
|
|
32456
32456
|
}
|
|
32457
|
-
_create_class$
|
|
32457
|
+
_create_class$F(MockAsyncLocalStorage, [
|
|
32458
32458
|
{
|
|
32459
32459
|
key: "getStore",
|
|
32460
32460
|
value: function getStore() {
|
|
@@ -32474,9 +32474,9 @@ var TRACING_ALS_KEY$1 = Symbol.for("ls:tracing_async_local_storage");
|
|
|
32474
32474
|
var mockAsyncLocalStorage$1 = new MockAsyncLocalStorage$1();
|
|
32475
32475
|
var AsyncLocalStorageProvider$1 = /*#__PURE__*/ function() {
|
|
32476
32476
|
function AsyncLocalStorageProvider() {
|
|
32477
|
-
_class_call_check$
|
|
32477
|
+
_class_call_check$K(this, AsyncLocalStorageProvider);
|
|
32478
32478
|
}
|
|
32479
|
-
_create_class$
|
|
32479
|
+
_create_class$F(AsyncLocalStorageProvider, [
|
|
32480
32480
|
{
|
|
32481
32481
|
key: "getInstance",
|
|
32482
32482
|
value: function getInstance() {
|
|
@@ -32523,7 +32523,7 @@ function isTraceableFunction(x) {
|
|
|
32523
32523
|
}
|
|
32524
32524
|
return self;
|
|
32525
32525
|
}
|
|
32526
|
-
function _class_call_check$
|
|
32526
|
+
function _class_call_check$J(instance, Constructor) {
|
|
32527
32527
|
if (!(instance instanceof Constructor)) {
|
|
32528
32528
|
throw new TypeError("Cannot call a class as a function");
|
|
32529
32529
|
}
|
|
@@ -32750,7 +32750,7 @@ var PatchError = /*#__PURE__*/ function _target(Error1) {
|
|
|
32750
32750
|
_inherits$t(PatchError, Error1);
|
|
32751
32751
|
var _super = _create_super$t(PatchError);
|
|
32752
32752
|
function PatchError(message, name, index, operation, tree) {
|
|
32753
|
-
_class_call_check$
|
|
32753
|
+
_class_call_check$J(this, PatchError);
|
|
32754
32754
|
var _this;
|
|
32755
32755
|
_this = _super.call(this, patchErrorMessageFormatter(message, {
|
|
32756
32756
|
name: name,
|
|
@@ -33979,12 +33979,12 @@ function getOtelEnabled() {
|
|
|
33979
33979
|
}
|
|
33980
33980
|
|
|
33981
33981
|
// Should not import any OTEL packages to avoid pulling in optional deps.
|
|
33982
|
-
function _class_call_check$
|
|
33982
|
+
function _class_call_check$I(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$E(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,13 +33993,13 @@ function _defineProperties$D(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$E(Constructor, protoProps, staticProps) {
|
|
33997
|
+
if (protoProps) _defineProperties$E(Constructor.prototype, protoProps);
|
|
33998
33998
|
return Constructor;
|
|
33999
33999
|
}
|
|
34000
34000
|
var MockTracer = /*#__PURE__*/ function() {
|
|
34001
34001
|
function MockTracer() {
|
|
34002
|
-
_class_call_check$
|
|
34002
|
+
_class_call_check$I(this, MockTracer);
|
|
34003
34003
|
Object.defineProperty(this, "hasWarned", {
|
|
34004
34004
|
enumerable: true,
|
|
34005
34005
|
configurable: true,
|
|
@@ -34007,7 +34007,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
34007
34007
|
value: false
|
|
34008
34008
|
});
|
|
34009
34009
|
}
|
|
34010
|
-
_create_class$
|
|
34010
|
+
_create_class$E(MockTracer, [
|
|
34011
34011
|
{
|
|
34012
34012
|
key: "startActiveSpan",
|
|
34013
34013
|
value: function startActiveSpan(_name) {
|
|
@@ -34041,7 +34041,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
34041
34041
|
}();
|
|
34042
34042
|
var MockOTELTrace = /*#__PURE__*/ function() {
|
|
34043
34043
|
function MockOTELTrace() {
|
|
34044
|
-
_class_call_check$
|
|
34044
|
+
_class_call_check$I(this, MockOTELTrace);
|
|
34045
34045
|
Object.defineProperty(this, "mockTracer", {
|
|
34046
34046
|
enumerable: true,
|
|
34047
34047
|
configurable: true,
|
|
@@ -34049,7 +34049,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
34049
34049
|
value: new MockTracer()
|
|
34050
34050
|
});
|
|
34051
34051
|
}
|
|
34052
|
-
_create_class$
|
|
34052
|
+
_create_class$E(MockOTELTrace, [
|
|
34053
34053
|
{
|
|
34054
34054
|
key: "getTracer",
|
|
34055
34055
|
value: function getTracer(_name, _version) {
|
|
@@ -34097,9 +34097,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
34097
34097
|
}();
|
|
34098
34098
|
var MockOTELContext = /*#__PURE__*/ function() {
|
|
34099
34099
|
function MockOTELContext() {
|
|
34100
|
-
_class_call_check$
|
|
34100
|
+
_class_call_check$I(this, MockOTELContext);
|
|
34101
34101
|
}
|
|
34102
|
-
_create_class$
|
|
34102
|
+
_create_class$E(MockOTELContext, [
|
|
34103
34103
|
{
|
|
34104
34104
|
key: "active",
|
|
34105
34105
|
value: function active() {
|
|
@@ -34122,9 +34122,9 @@ var mockOTELTrace = new MockOTELTrace();
|
|
|
34122
34122
|
var mockOTELContext = new MockOTELContext();
|
|
34123
34123
|
var OTELProvider = /*#__PURE__*/ function() {
|
|
34124
34124
|
function OTELProvider() {
|
|
34125
|
-
_class_call_check$
|
|
34125
|
+
_class_call_check$I(this, OTELProvider);
|
|
34126
34126
|
}
|
|
34127
|
-
_create_class$
|
|
34127
|
+
_create_class$E(OTELProvider, [
|
|
34128
34128
|
{
|
|
34129
34129
|
key: "getTraceInstance",
|
|
34130
34130
|
value: function getTraceInstance() {
|
|
@@ -34201,12 +34201,12 @@ function _array_like_to_array$W(arr, len) {
|
|
|
34201
34201
|
function _array_with_holes$n(arr) {
|
|
34202
34202
|
if (Array.isArray(arr)) return arr;
|
|
34203
34203
|
}
|
|
34204
|
-
function _class_call_check$
|
|
34204
|
+
function _class_call_check$H(instance, Constructor) {
|
|
34205
34205
|
if (!(instance instanceof Constructor)) {
|
|
34206
34206
|
throw new TypeError("Cannot call a class as a function");
|
|
34207
34207
|
}
|
|
34208
34208
|
}
|
|
34209
|
-
function _defineProperties$
|
|
34209
|
+
function _defineProperties$D(target, props) {
|
|
34210
34210
|
for(var i = 0; i < props.length; i++){
|
|
34211
34211
|
var descriptor = props[i];
|
|
34212
34212
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -34215,8 +34215,8 @@ function _defineProperties$C(target, props) {
|
|
|
34215
34215
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34216
34216
|
}
|
|
34217
34217
|
}
|
|
34218
|
-
function _create_class$
|
|
34219
|
-
if (protoProps) _defineProperties$
|
|
34218
|
+
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
34219
|
+
if (protoProps) _defineProperties$D(Constructor.prototype, protoProps);
|
|
34220
34220
|
return Constructor;
|
|
34221
34221
|
}
|
|
34222
34222
|
function _iterable_to_array_limit$n(arr, i) {
|
|
@@ -34273,7 +34273,7 @@ function getOperationName(runType) {
|
|
|
34273
34273
|
}
|
|
34274
34274
|
var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
34275
34275
|
function LangSmithToOTELTranslator() {
|
|
34276
|
-
_class_call_check$
|
|
34276
|
+
_class_call_check$H(this, LangSmithToOTELTranslator);
|
|
34277
34277
|
Object.defineProperty(this, "spans", {
|
|
34278
34278
|
enumerable: true,
|
|
34279
34279
|
configurable: true,
|
|
@@ -34281,7 +34281,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
|
34281
34281
|
value: new Map()
|
|
34282
34282
|
});
|
|
34283
34283
|
}
|
|
34284
|
-
_create_class$
|
|
34284
|
+
_create_class$D(LangSmithToOTELTranslator, [
|
|
34285
34285
|
{
|
|
34286
34286
|
key: "exportBatch",
|
|
34287
34287
|
value: function exportBatch(operations, otelContextMap) {
|
|
@@ -35065,7 +35065,7 @@ function _assert_this_initialized$s(self) {
|
|
|
35065
35065
|
}
|
|
35066
35066
|
return self;
|
|
35067
35067
|
}
|
|
35068
|
-
function _class_call_check$
|
|
35068
|
+
function _class_call_check$G(instance, Constructor) {
|
|
35069
35069
|
if (!(instance instanceof Constructor)) {
|
|
35070
35070
|
throw new TypeError("Cannot call a class as a function");
|
|
35071
35071
|
}
|
|
@@ -35188,7 +35188,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
35188
35188
|
_inherits$s(TimeoutError, Error1);
|
|
35189
35189
|
var _super = _create_super$s(TimeoutError);
|
|
35190
35190
|
function TimeoutError(message) {
|
|
35191
|
-
_class_call_check$
|
|
35191
|
+
_class_call_check$G(this, TimeoutError);
|
|
35192
35192
|
var _this;
|
|
35193
35193
|
_this = _super.call(this, message);
|
|
35194
35194
|
_this.name = 'TimeoutError';
|
|
@@ -35261,12 +35261,12 @@ function lowerBound(array, value, comparator) {
|
|
|
35261
35261
|
}
|
|
35262
35262
|
lowerBound$1.default = lowerBound;
|
|
35263
35263
|
|
|
35264
|
-
function _class_call_check$
|
|
35264
|
+
function _class_call_check$F(instance, Constructor) {
|
|
35265
35265
|
if (!(instance instanceof Constructor)) {
|
|
35266
35266
|
throw new TypeError("Cannot call a class as a function");
|
|
35267
35267
|
}
|
|
35268
35268
|
}
|
|
35269
|
-
function _defineProperties$
|
|
35269
|
+
function _defineProperties$C(target, props) {
|
|
35270
35270
|
for(var i = 0; i < props.length; i++){
|
|
35271
35271
|
var descriptor = props[i];
|
|
35272
35272
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -35275,8 +35275,8 @@ function _defineProperties$B(target, props) {
|
|
|
35275
35275
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35276
35276
|
}
|
|
35277
35277
|
}
|
|
35278
|
-
function _create_class$
|
|
35279
|
-
if (protoProps) _defineProperties$
|
|
35278
|
+
function _create_class$C(Constructor, protoProps, staticProps) {
|
|
35279
|
+
if (protoProps) _defineProperties$C(Constructor.prototype, protoProps);
|
|
35280
35280
|
return Constructor;
|
|
35281
35281
|
}
|
|
35282
35282
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -35285,10 +35285,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
35285
35285
|
var lower_bound_1 = lowerBound$1;
|
|
35286
35286
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
35287
35287
|
function PriorityQueue() {
|
|
35288
|
-
_class_call_check$
|
|
35288
|
+
_class_call_check$F(this, PriorityQueue);
|
|
35289
35289
|
this._queue = [];
|
|
35290
35290
|
}
|
|
35291
|
-
_create_class$
|
|
35291
|
+
_create_class$C(PriorityQueue, [
|
|
35292
35292
|
{
|
|
35293
35293
|
key: "enqueue",
|
|
35294
35294
|
value: function enqueue(run, options) {
|
|
@@ -35372,12 +35372,12 @@ function _async_to_generator$x(fn) {
|
|
|
35372
35372
|
});
|
|
35373
35373
|
};
|
|
35374
35374
|
}
|
|
35375
|
-
function _class_call_check$
|
|
35375
|
+
function _class_call_check$E(instance, Constructor) {
|
|
35376
35376
|
if (!(instance instanceof Constructor)) {
|
|
35377
35377
|
throw new TypeError("Cannot call a class as a function");
|
|
35378
35378
|
}
|
|
35379
35379
|
}
|
|
35380
|
-
function _defineProperties$
|
|
35380
|
+
function _defineProperties$B(target, props) {
|
|
35381
35381
|
for(var i = 0; i < props.length; i++){
|
|
35382
35382
|
var descriptor = props[i];
|
|
35383
35383
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -35386,8 +35386,8 @@ function _defineProperties$A(target, props) {
|
|
|
35386
35386
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35387
35387
|
}
|
|
35388
35388
|
}
|
|
35389
|
-
function _create_class$
|
|
35390
|
-
if (protoProps) _defineProperties$
|
|
35389
|
+
function _create_class$B(Constructor, protoProps, staticProps) {
|
|
35390
|
+
if (protoProps) _defineProperties$B(Constructor.prototype, protoProps);
|
|
35391
35391
|
return Constructor;
|
|
35392
35392
|
}
|
|
35393
35393
|
function _get_prototype_of$r(o) {
|
|
@@ -35560,7 +35560,7 @@ Promise queue with concurrency control.
|
|
|
35560
35560
|
_inherits$r(PQueue, EventEmitter);
|
|
35561
35561
|
var _super = _create_super$r(PQueue);
|
|
35562
35562
|
function PQueue(options) {
|
|
35563
|
-
_class_call_check$
|
|
35563
|
+
_class_call_check$E(this, PQueue);
|
|
35564
35564
|
var _this;
|
|
35565
35565
|
var _a, _b, _c, _d;
|
|
35566
35566
|
_this = _super.call(this);
|
|
@@ -35596,7 +35596,7 @@ Promise queue with concurrency control.
|
|
|
35596
35596
|
_this._isPaused = options.autoStart === false;
|
|
35597
35597
|
return _this;
|
|
35598
35598
|
}
|
|
35599
|
-
_create_class$
|
|
35599
|
+
_create_class$B(PQueue, [
|
|
35600
35600
|
{
|
|
35601
35601
|
key: "_doesIntervalAllowAnother",
|
|
35602
35602
|
get: function get() {
|
|
@@ -36019,12 +36019,12 @@ function _async_to_generator$w(fn) {
|
|
|
36019
36019
|
});
|
|
36020
36020
|
};
|
|
36021
36021
|
}
|
|
36022
|
-
function _class_call_check$
|
|
36022
|
+
function _class_call_check$D(instance, Constructor) {
|
|
36023
36023
|
if (!(instance instanceof Constructor)) {
|
|
36024
36024
|
throw new TypeError("Cannot call a class as a function");
|
|
36025
36025
|
}
|
|
36026
36026
|
}
|
|
36027
|
-
function _defineProperties$
|
|
36027
|
+
function _defineProperties$A(target, props) {
|
|
36028
36028
|
for(var i = 0; i < props.length; i++){
|
|
36029
36029
|
var descriptor = props[i];
|
|
36030
36030
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -36033,8 +36033,8 @@ function _defineProperties$z(target, props) {
|
|
|
36033
36033
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
36034
36034
|
}
|
|
36035
36035
|
}
|
|
36036
|
-
function _create_class$
|
|
36037
|
-
if (protoProps) _defineProperties$
|
|
36036
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
36037
|
+
if (protoProps) _defineProperties$A(Constructor.prototype, protoProps);
|
|
36038
36038
|
return Constructor;
|
|
36039
36039
|
}
|
|
36040
36040
|
function _instanceof$c(left, right) {
|
|
@@ -36177,7 +36177,7 @@ var STATUS_RETRYABLE = [
|
|
|
36177
36177
|
* exponential backoff between each attempt.
|
|
36178
36178
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
36179
36179
|
function AsyncCaller(params) {
|
|
36180
|
-
_class_call_check$
|
|
36180
|
+
_class_call_check$D(this, AsyncCaller);
|
|
36181
36181
|
Object.defineProperty(this, "maxConcurrency", {
|
|
36182
36182
|
enumerable: true,
|
|
36183
36183
|
configurable: true,
|
|
@@ -36219,7 +36219,7 @@ var STATUS_RETRYABLE = [
|
|
|
36219
36219
|
}
|
|
36220
36220
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
36221
36221
|
}
|
|
36222
|
-
_create_class$
|
|
36222
|
+
_create_class$A(AsyncCaller, [
|
|
36223
36223
|
{
|
|
36224
36224
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36225
36225
|
key: "call",
|
|
@@ -36714,12 +36714,12 @@ var identifiers$1 = {
|
|
|
36714
36714
|
rcompareIdentifiers: rcompareIdentifiers
|
|
36715
36715
|
};
|
|
36716
36716
|
|
|
36717
|
-
function _class_call_check$
|
|
36717
|
+
function _class_call_check$C(instance, Constructor) {
|
|
36718
36718
|
if (!(instance instanceof Constructor)) {
|
|
36719
36719
|
throw new TypeError("Cannot call a class as a function");
|
|
36720
36720
|
}
|
|
36721
36721
|
}
|
|
36722
|
-
function _defineProperties$
|
|
36722
|
+
function _defineProperties$z(target, props) {
|
|
36723
36723
|
for(var i = 0; i < props.length; i++){
|
|
36724
36724
|
var descriptor = props[i];
|
|
36725
36725
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -36728,8 +36728,8 @@ function _defineProperties$y(target, props) {
|
|
|
36728
36728
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
36729
36729
|
}
|
|
36730
36730
|
}
|
|
36731
|
-
function _create_class$
|
|
36732
|
-
if (protoProps) _defineProperties$
|
|
36731
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
36732
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
36733
36733
|
return Constructor;
|
|
36734
36734
|
}
|
|
36735
36735
|
function _instanceof$b(left, right) {
|
|
@@ -36750,7 +36750,7 @@ var parseOptions = parseOptions_1;
|
|
|
36750
36750
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
36751
36751
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
36752
36752
|
function SemVer(version, options) {
|
|
36753
|
-
_class_call_check$
|
|
36753
|
+
_class_call_check$C(this, SemVer);
|
|
36754
36754
|
options = parseOptions(options);
|
|
36755
36755
|
if (_instanceof$b(version, SemVer)) {
|
|
36756
36756
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -36805,7 +36805,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
36805
36805
|
this.build = m[5] ? m[5].split('.') : [];
|
|
36806
36806
|
this.format();
|
|
36807
36807
|
}
|
|
36808
|
-
_create_class$
|
|
36808
|
+
_create_class$z(SemVer, [
|
|
36809
36809
|
{
|
|
36810
36810
|
key: "format",
|
|
36811
36811
|
value: function format() {
|
|
@@ -37163,78 +37163,70 @@ var cmp_1 = cmp;
|
|
|
37163
37163
|
|
|
37164
37164
|
var _require = reExports; _require.safeRe; _require.t;
|
|
37165
37165
|
|
|
37166
|
-
|
|
37167
|
-
|
|
37168
|
-
|
|
37169
|
-
|
|
37170
|
-
|
|
37171
|
-
|
|
37172
|
-
|
|
37173
|
-
|
|
37174
|
-
|
|
37175
|
-
|
|
37176
|
-
|
|
37177
|
-
|
|
37178
|
-
|
|
37179
|
-
var descriptor = props[i];
|
|
37180
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
37181
|
-
descriptor.configurable = true;
|
|
37182
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
37183
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
37184
|
-
}
|
|
37185
|
-
}
|
|
37186
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37187
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
37188
|
-
return Constructor;
|
|
37189
|
-
}
|
|
37190
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
37191
|
-
function LRUCache() {
|
|
37192
|
-
_class_call_check(this, LRUCache);
|
|
37193
|
-
this.max = 1000;
|
|
37194
|
-
this.map = new Map();
|
|
37195
|
-
}
|
|
37196
|
-
_create_class(LRUCache, [
|
|
37197
|
-
{
|
|
37198
|
-
key: "get",
|
|
37199
|
-
value: function get(key) {
|
|
37200
|
-
var value = this.map.get(key);
|
|
37201
|
-
if (value === undefined) {
|
|
37202
|
-
return undefined;
|
|
37203
|
-
} else {
|
|
37204
|
-
// Remove the key from the map and add it to the end
|
|
37205
|
-
this.map.delete(key);
|
|
37206
|
-
this.map.set(key, value);
|
|
37207
|
-
return value;
|
|
37208
|
-
}
|
|
37209
|
-
}
|
|
37210
|
-
},
|
|
37211
|
-
{
|
|
37212
|
-
key: "delete",
|
|
37213
|
-
value: function _delete(key) {
|
|
37214
|
-
return this.map.delete(key);
|
|
37215
|
-
}
|
|
37216
|
-
},
|
|
37217
|
-
{
|
|
37218
|
-
key: "set",
|
|
37219
|
-
value: function set(key, value) {
|
|
37220
|
-
var deleted = this.delete(key);
|
|
37221
|
-
if (!deleted && value !== undefined) {
|
|
37222
|
-
// If cache is full, delete the least recently used item
|
|
37223
|
-
if (this.map.size >= this.max) {
|
|
37224
|
-
var firstKey = this.map.keys().next().value;
|
|
37225
|
-
this.delete(firstKey);
|
|
37226
|
-
}
|
|
37227
|
-
this.map.set(key, value);
|
|
37228
|
-
}
|
|
37229
|
-
return this;
|
|
37230
|
-
}
|
|
37231
|
-
}
|
|
37232
|
-
]);
|
|
37233
|
-
return LRUCache;
|
|
37234
|
-
}();
|
|
37235
|
-
lrucache = LRUCache;
|
|
37236
|
-
return lrucache;
|
|
37166
|
+
function _class_call_check$B(instance, Constructor) {
|
|
37167
|
+
if (!(instance instanceof Constructor)) {
|
|
37168
|
+
throw new TypeError("Cannot call a class as a function");
|
|
37169
|
+
}
|
|
37170
|
+
}
|
|
37171
|
+
function _defineProperties$y(target, props) {
|
|
37172
|
+
for(var i = 0; i < props.length; i++){
|
|
37173
|
+
var descriptor = props[i];
|
|
37174
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
37175
|
+
descriptor.configurable = true;
|
|
37176
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
37177
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
37178
|
+
}
|
|
37237
37179
|
}
|
|
37180
|
+
function _create_class$y(Constructor, protoProps, staticProps) {
|
|
37181
|
+
if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
|
|
37182
|
+
return Constructor;
|
|
37183
|
+
}
|
|
37184
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
37185
|
+
function LRUCache() {
|
|
37186
|
+
_class_call_check$B(this, LRUCache);
|
|
37187
|
+
this.max = 1000;
|
|
37188
|
+
this.map = new Map();
|
|
37189
|
+
}
|
|
37190
|
+
_create_class$y(LRUCache, [
|
|
37191
|
+
{
|
|
37192
|
+
key: "get",
|
|
37193
|
+
value: function get(key) {
|
|
37194
|
+
var value = this.map.get(key);
|
|
37195
|
+
if (value === undefined) {
|
|
37196
|
+
return undefined;
|
|
37197
|
+
} else {
|
|
37198
|
+
// Remove the key from the map and add it to the end
|
|
37199
|
+
this.map.delete(key);
|
|
37200
|
+
this.map.set(key, value);
|
|
37201
|
+
return value;
|
|
37202
|
+
}
|
|
37203
|
+
}
|
|
37204
|
+
},
|
|
37205
|
+
{
|
|
37206
|
+
key: "delete",
|
|
37207
|
+
value: function _delete(key) {
|
|
37208
|
+
return this.map.delete(key);
|
|
37209
|
+
}
|
|
37210
|
+
},
|
|
37211
|
+
{
|
|
37212
|
+
key: "set",
|
|
37213
|
+
value: function set(key, value) {
|
|
37214
|
+
var deleted = this.delete(key);
|
|
37215
|
+
if (!deleted && value !== undefined) {
|
|
37216
|
+
// If cache is full, delete the least recently used item
|
|
37217
|
+
if (this.map.size >= this.max) {
|
|
37218
|
+
var firstKey = this.map.keys().next().value;
|
|
37219
|
+
this.delete(firstKey);
|
|
37220
|
+
}
|
|
37221
|
+
this.map.set(key, value);
|
|
37222
|
+
}
|
|
37223
|
+
return this;
|
|
37224
|
+
}
|
|
37225
|
+
}
|
|
37226
|
+
]);
|
|
37227
|
+
return LRUCache;
|
|
37228
|
+
}();
|
|
37229
|
+
var lrucache = LRUCache;
|
|
37238
37230
|
|
|
37239
37231
|
var range;
|
|
37240
37232
|
var hasRequiredRange;
|
|
@@ -37538,7 +37530,7 @@ function requireRange () {
|
|
|
37538
37530
|
return Range;
|
|
37539
37531
|
}();
|
|
37540
37532
|
range = Range;
|
|
37541
|
-
var LRU =
|
|
37533
|
+
var LRU = lrucache;
|
|
37542
37534
|
var cache = new LRU();
|
|
37543
37535
|
var parseOptions = parseOptions_1;
|
|
37544
37536
|
var Comparator = requireComparator();
|