@epam/ai-dial-usage-dashboard 1.2.0-dev.6 → 1.2.0-dev.61
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/components/UsageLimitCard/UsageLimitCard.d.ts.map +1 -1
- package/components/UsageLimitCardGroup/UsageLimitCardGroup.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +7 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +255 -233
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsageLimitCard.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCard/UsageLimitCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"UsageLimitCard.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCard/UsageLimitCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EACL,mBAAmB,EAEpB,MAAM,qCAAqC,CAAC;AAiB7C,2NAA2N;AAC3N,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAqKlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsageLimitCardGroup.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCardGroup/UsageLimitCardGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UsageLimitCardGroup.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCardGroup/UsageLimitCardGroup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAG/E,sJAAsJ;AACtJ,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA2B5D,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const USAGE_DASHBOARD_CLASS: {
|
|
2
|
+
/** One usage-limit card, which carries the themed CSS variables. */
|
|
3
|
+
readonly card: "dial-usage-dashboard-card";
|
|
4
|
+
/** The responsive grid a `UsageLimitCardGroup` lays its cards out in. */
|
|
5
|
+
readonly cardGroup: "dial-usage-dashboard-card-group";
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=public-class-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB;IAChC,oEAAoE;;IAEpE,yEAAyE;;CAEjE,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
._card_97w0r_1{background:var(--uld-card-bg,var(--bg-layer-raised,#fcfcfc))}._title_97w0r_5{color:var(--uld-title,var(--text-primary,#161b2d))}._secondaryAmount_97w0r_9{color:var(--uld-secondary-amount,var(--text-secondary,#57647a))}._usedPercentLabel_97w0r_13{color:var(--uld-used-percent-label,var(--text-secondary,#57647a))}._amount_97w0r_18._defaultAccent_97w0r_23{color:var(--uld-default-accent,var(--text-accent,#1d4ed8))}._amount_97w0r_18._warningAccent_97w0r_27{color:var(--uld-warning-accent,var(--text-warning,#7f6300))}._amount_97w0r_18._errorAccent_97w0r_31{color:var(--uld-error-accent,var(--text-error,#ae2f2f))}._progressTrack_97w0r_37{background:var(--uld-progress-track,var(--bg-layer-sunken,#eef1f7))!important}._progressFillDefault_97w0r_42>div{background:var(--uld-default-progress,var(--text-control-accent-hover,#5976e9))!important}._progressFillWarning_97w0r_46>div{background:var(--uld-warning-progress,var(--text-warning-icon,#eec840))!important}._progressFillDanger_97w0r_50>div{background:var(--uld-error-progress,var(--bg-control-error-active,#cc4545))!important}._defaultBadge_97w0r_54{background:var(--uld-default-badge-bg,var(--bg-success,#dbf1eb));color:var(--uld-default-badge-text,var(--text-success,#007274))}._warningBadge_97w0r_59{background:var(--uld-warning-badge-bg,var(--bg-warning,#faf0cf));color:var(--uld-warning-badge-text,var(--text-warning,#7f6300))}._errorBadge_97w0r_64{background:var(--uld-error-badge-bg,var(--bg-error,#f3d6d8));color:var(--uld-error-badge-text,var(--text-error,#ae2f2f))}._container_jkj20_1{background:var(--mls-container-bg,var(--bg-layer-raised,#fcfcfc))}._heading_jkj20_5{color:var(--mls-heading,var(--text-primary,#161b2d))}._headingCount_jkj20_9{color:var(--mls-heading-count,var(--text-tertiary,#848e9c))}._columnHeader_jkj20_13{color:var(--mls-column-header,var(--text-secondary,#57647a))}._headerRow_jkj20_17{border-block-end:.5px solid var(--mls-row-divider,var(--stroke-tertiary,#e0e6f0))}._row_jkj20_23{border-block-start:.5px solid var(--mls-row-divider,var(--stroke-tertiary,#e0e6f0))}._row_jkj20_23:first-child{border-block-start:none}._mobileColumnLabel_jkj20_31{color:var(--mls-column-header,var(--text-secondary,#57647a))}._name_jkj20_35{color:var(--mls-name,var(--text-primary,#161b2d))}._modelType_jkj20_39{color:var(--mls-model-type,var(--text-accent,#1d4ed8))}._version_jkj20_43{color:var(--mls-version,var(--text-secondary,#57647a))}._value_jkj20_47{color:var(--mls-value,var(--text-primary,#161b2d))}._secondaryValue_jkj20_51{color:var(--mls-secondary-value,var(--text-secondary,#57647a))}._progressTrack_jkj20_57{background:var(--mls-progress-track,var(--bg-layer-sunken,#eef1f7))!important}._progressFillDefault_jkj20_62>div{background:var(--mls-progress-default,var(--text-control-accent-hover,#5976e9))!important}._progressFillWarning_jkj20_66>div{background:var(--mls-progress-warning,var(--text-warning-icon,#eec840))!important}._progressFillError_jkj20_70>div{background:var(--mls-progress-error,var(--bg-control-error-active,#cc4545))!important}._warningIndicator_jkj20_74{color:var(--mls-indicator-warning,var(--text-warning-icon,#eec840))}._errorIndicator_jkj20_78{color:var(--mls-indicator-error,var(--text-error,#ae2f2f))}._defaultBadge_jkj20_82{background:var(--mls-badge-default-bg,var(--bg-success,#dbf1eb));color:var(--mls-badge-default-text,var(--text-success,#007274))}._warningBadge_jkj20_87{background:var(--mls-badge-warning-bg,var(--bg-warning,#faf0cf));color:var(--mls-badge-warning-text,var(--text-warning,#7f6300))}._errorBadge_jkj20_92{background:var(--mls-badge-error-bg,var(--bg-error,#f3d6d8));color:var(--mls-badge-error-text,var(--text-error,#ae2f2f))}._neutralStatus_jkj20_97{color:var(--mls-badge-neutral-text,var(--text-secondary,#57647a))}
|
|
2
|
-
/*$vite$:1
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.fixed{position:fixed}.m-0{margin:0}.ms-auto{margin-inline-start:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-cell{display:table-cell}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-11{height:2.75rem;width:2.75rem}.\!h-1{height:.25rem!important}.h-6{height:1.5rem}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-\[30\%\]{max-width:30%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.self-start{align-self:flex-start}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\!rounded-xl{border-radius:.75rem!important}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.\!text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.shadow-md{--tw-shadow:0 8px 24px 0 var(--shadow-md,#2764d90f);--tw-shadow-colored:0 8px 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width:1280px){.desktop\:grid{display:grid}.desktop\:hidden{display:none}.desktop\:size-4{height:1rem;width:1rem}.desktop\:min-h-16{min-height:4rem}.desktop\:grid-cols-\[minmax\(12rem\2c 1\.25fr\)_repeat\(3\2c minmax\(0\2c 1fr\)\)_minmax\(8rem\2c 10rem\)\]{grid-template-columns:minmax(12rem,1.25fr) repeat(3,minmax(0,1fr)) minmax(8rem,10rem)}.desktop\:grid-cols-\[repeat\(var\(--uld-card-count\)\2c minmax\(0\2c 1fr\)\)\]{grid-template-columns:repeat(var(--uld-card-count),minmax(0,1fr))}.desktop\:items-center{align-items:center}.desktop\:gap-4{gap:1rem}.desktop\:px-6{padding-left:1.5rem;padding-right:1.5rem}.desktop\:py-0{padding-bottom:0;padding-top:0}}
|
package/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export type { FormatResetTime, ResetTimeDisplayLike, } from './utils/map-usage-d
|
|
|
8
8
|
export { USAGE_MODEL_LIMITS_I18N_KEYS, mapOverallCostLimitsToPeriodStatuses, mapUserUsageToModelLimits, } from './utils/map-user-usage-to-model-limits';
|
|
9
9
|
export { ModelLimitMetricKind, ModelLimitStatus, } from './models/model-limits-props';
|
|
10
10
|
export type { ModelLimitMetricCell, ModelLimitPeriodCell, ModelLimitPeriodStatus, ModelLimitPeriodStatuses, ModelLimitRow, ModelLimitsColors, ModelLimitsLabels, ModelLimitsSectionProps, ModelLimitsStyles, ModelLimitsTypography, } from './models/model-limits-props';
|
|
11
|
+
export { USAGE_DASHBOARD_CLASS } from './constants/public-class-names';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,YAAY,EACV,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,eAAe,EACf,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,YAAY,EACV,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,eAAe,EACf,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/index.js
CHANGED
|
@@ -3,20 +3,23 @@ import { ElementSize as o, EllipsisTooltip as s, ProgressBar as c, Tooltip as l
|
|
|
3
3
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
4
|
import { createElement as p, forwardRef as m } from "react";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
|
-
var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.getOwnPropertyNames, v = Object.prototype.hasOwnProperty,
|
|
6
|
+
var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.getOwnPropertyNames, v = Object.prototype.hasOwnProperty, ee = (e, t) => () => (e && (t = e(e = 0)), t), y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), te = (e, t) => {
|
|
7
7
|
let n = {};
|
|
8
8
|
for (var r in e) h(n, r, {
|
|
9
9
|
get: e[r],
|
|
10
10
|
enumerable: !0
|
|
11
11
|
});
|
|
12
12
|
return t || h(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
13
|
-
},
|
|
13
|
+
}, ne = (e, t, n, r) => {
|
|
14
14
|
if (t && typeof t == "object" || typeof t == "function") for (var i = _(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !v.call(e, s) && s !== n && h(e, s, {
|
|
15
15
|
get: ((e) => t[e]).bind(null, s),
|
|
16
16
|
enumerable: !(r = g(t, s)) || r.enumerable
|
|
17
17
|
});
|
|
18
18
|
return e;
|
|
19
|
-
},
|
|
19
|
+
}, b = (e) => v.call(e, "module.exports") ? e["module.exports"] : ne(h({}, "__esModule", { value: !0 }), e), x = {
|
|
20
|
+
card: "dial-usage-dashboard-card",
|
|
21
|
+
cardGroup: "dial-usage-dashboard-card-group"
|
|
22
|
+
}, S = /* @__PURE__ */ function(e) {
|
|
20
23
|
return e.Default = "default", e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
21
24
|
}({}), C = {
|
|
22
25
|
card: "_card_97w0r_1",
|
|
@@ -34,13 +37,13 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
34
37
|
defaultBadge: "_defaultBadge_97w0r_54",
|
|
35
38
|
warningBadge: "_warningBadge_97w0r_59",
|
|
36
39
|
errorBadge: "_errorBadge_97w0r_64"
|
|
37
|
-
},
|
|
40
|
+
}, re = (e, t) => {
|
|
38
41
|
switch (e) {
|
|
39
42
|
case S.RunningLow: return t.runningLowBadgeLabel;
|
|
40
43
|
case S.LimitReached: return t.limitReachedBadgeLabel;
|
|
41
44
|
case S.Default: return t.defaultBadgeLabel;
|
|
42
45
|
}
|
|
43
|
-
},
|
|
46
|
+
}, ie = ({ data: e, labels: t, styles: n }) => {
|
|
44
47
|
let { colors: i, typography: s } = n ?? {}, { titleClassName: l = "dial-body-semi-text", amountClassName: p = "dial-display1-text", secondaryAmountClassName: m = "dial-small-text", badgeClassName: h = "dial-caption-lead-semi-text", usedPercentLabelClassName: g = "dial-small-text", resetLabelClassName: _ = "dial-tiny-text" } = s ?? {}, v = r({
|
|
45
48
|
"--uld-card-bg": i?.cardBackground,
|
|
46
49
|
"--uld-title": i?.titleColor,
|
|
@@ -59,9 +62,9 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
59
62
|
"--uld-error-badge-bg": i?.errorBadgeBackground,
|
|
60
63
|
"--uld-error-badge-text": i?.errorBadgeColor,
|
|
61
64
|
"--uld-used-percent-label": i?.usedPercentLabelColor
|
|
62
|
-
}),
|
|
65
|
+
}), ee = re(e.status, t);
|
|
63
66
|
return /* @__PURE__ */ f("div", {
|
|
64
|
-
className: a("flex min-w-0 flex-col gap-4 rounded-xl px-6 py-5 shadow-md", C.card),
|
|
67
|
+
className: a("flex min-w-0 flex-col gap-4 rounded-xl px-6 py-5 shadow-md", C.card, x.card),
|
|
65
68
|
style: v,
|
|
66
69
|
role: "group",
|
|
67
70
|
"aria-label": `${e.title}, ${e.periodDescription}`,
|
|
@@ -72,7 +75,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
72
75
|
children: e.title
|
|
73
76
|
}), /* @__PURE__ */ d("span", {
|
|
74
77
|
className: a("shrink-0 rounded-full px-2 py-1", h, e.status === S.Default && C.defaultBadge, e.status === S.RunningLow && C.warningBadge, e.status === S.LimitReached && C.errorBadge),
|
|
75
|
-
children:
|
|
78
|
+
children: ee
|
|
76
79
|
})]
|
|
77
80
|
}), /* @__PURE__ */ f("div", {
|
|
78
81
|
className: "flex flex-col gap-2",
|
|
@@ -119,10 +122,10 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
119
122
|
]
|
|
120
123
|
})]
|
|
121
124
|
});
|
|
122
|
-
},
|
|
123
|
-
className: "grid grid-cols-1 gap-4 desktop:grid-cols-[repeat(var(--uld-card-count),minmax(0,1fr))]",
|
|
125
|
+
}, ae = ({ cards: e, labels: t, styles: n }) => e.length === 0 ? null : /* @__PURE__ */ d("div", {
|
|
126
|
+
className: a("grid grid-cols-1 gap-4 desktop:grid-cols-[repeat(var(--uld-card-count),minmax(0,1fr))]", x.cardGroup),
|
|
124
127
|
style: { "--uld-card-count": e.length },
|
|
125
|
-
children: e.map((e) => /* @__PURE__ */ d(
|
|
128
|
+
children: e.map((e) => /* @__PURE__ */ d(ie, {
|
|
126
129
|
data: e,
|
|
127
130
|
labels: t,
|
|
128
131
|
styles: n
|
|
@@ -154,13 +157,13 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
154
157
|
warningBadge: "_warningBadge_jkj20_87",
|
|
155
158
|
errorBadge: "_errorBadge_jkj20_92",
|
|
156
159
|
neutralStatus: "_neutralStatus_jkj20_97"
|
|
157
|
-
},
|
|
160
|
+
}, oe = (e) => {
|
|
158
161
|
switch (e) {
|
|
159
162
|
case w.RunningLow: return E.progressFillWarning;
|
|
160
163
|
case w.LimitReached: return E.progressFillError;
|
|
161
164
|
default: return E.progressFillDefault;
|
|
162
165
|
}
|
|
163
|
-
},
|
|
166
|
+
}, se = ({ cell: e, label: t, progressAriaLabel: n, showProgress: r, labels: i, typography: s }) => {
|
|
164
167
|
let { valueClassName: l = "dial-small-text", secondaryValueClassName: u = "dial-tiny-text" } = s, p = /* @__PURE__ */ d("span", {
|
|
165
168
|
className: a(l, E.value),
|
|
166
169
|
children: e.usedLabel
|
|
@@ -210,14 +213,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
210
213
|
value: Math.min(e.usedPercent ?? 0, 100),
|
|
211
214
|
max: 100,
|
|
212
215
|
size: o.Small,
|
|
213
|
-
className: a("!h-1 w-full", E.progressTrack,
|
|
216
|
+
className: a("!h-1 w-full", E.progressTrack, oe(e.status)),
|
|
214
217
|
"aria-label": n,
|
|
215
218
|
"aria-valuetext": e.ariaLabel
|
|
216
219
|
})]
|
|
217
220
|
})
|
|
218
221
|
]
|
|
219
222
|
});
|
|
220
|
-
},
|
|
223
|
+
}, ce = {
|
|
221
224
|
outline: {
|
|
222
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
223
226
|
width: 24,
|
|
@@ -237,10 +240,10 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
237
240
|
fill: "currentColor",
|
|
238
241
|
stroke: "none"
|
|
239
242
|
}
|
|
240
|
-
},
|
|
243
|
+
}, le = (e, t, n, r) => {
|
|
241
244
|
let i = m(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => p("svg", {
|
|
242
245
|
ref: u,
|
|
243
|
-
...
|
|
246
|
+
...ce[e],
|
|
244
247
|
width: i,
|
|
245
248
|
height: i,
|
|
246
249
|
className: [
|
|
@@ -259,16 +262,16 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
259
262
|
...Array.isArray(c) ? c : [c]
|
|
260
263
|
]));
|
|
261
264
|
return i.displayName = `${n}`, i;
|
|
262
|
-
},
|
|
265
|
+
}, ue = le("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
|
|
263
266
|
d: "M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm.01 13l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",
|
|
264
267
|
key: "svg-0"
|
|
265
|
-
}]]),
|
|
268
|
+
}]]), de = le("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
|
|
266
269
|
d: "M12 1.67c.955 0 1.845 .467 2.39 1.247l.105 .16l8.114 13.548a2.914 2.914 0 0 1 -2.307 4.363l-.195 .008h-16.225a2.914 2.914 0 0 1 -2.582 -4.2l.099 -.185l8.11 -13.538a2.914 2.914 0 0 1 2.491 -1.403zm.01 13.33l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -7a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",
|
|
267
270
|
key: "svg-0"
|
|
268
|
-
}]]),
|
|
271
|
+
}]]), fe = ({ periodStatus: e }) => {
|
|
269
272
|
let { status: t, tooltipLabel: n } = e;
|
|
270
273
|
if (n == null || t !== w.RunningLow && t !== w.LimitReached) return null;
|
|
271
|
-
let r = t === w.LimitReached ?
|
|
274
|
+
let r = t === w.LimitReached ? ue : de;
|
|
272
275
|
return /* @__PURE__ */ d(l, {
|
|
273
276
|
tooltip: n,
|
|
274
277
|
asChild: !0,
|
|
@@ -283,7 +286,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
283
286
|
})
|
|
284
287
|
})
|
|
285
288
|
});
|
|
286
|
-
},
|
|
289
|
+
}, pe = ({ cell: e, label: t, unavailableLabel: n, typography: r }) => {
|
|
287
290
|
let { secondaryValueClassName: i = "dial-tiny-text" } = r, o = e.kind === T.Unavailable;
|
|
288
291
|
return /* @__PURE__ */ f("div", {
|
|
289
292
|
className: "flex min-w-0 items-baseline gap-1",
|
|
@@ -296,7 +299,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
296
299
|
children: o ? n : e.usedLabel
|
|
297
300
|
})]
|
|
298
301
|
});
|
|
299
|
-
},
|
|
302
|
+
}, D = ({ cell: e, periodLabel: t, periodStatus: n, labels: r, typography: i, resetLabelClassName: o }) => /* @__PURE__ */ f("div", {
|
|
300
303
|
role: "cell",
|
|
301
304
|
className: "flex min-w-0 flex-col gap-2 py-2 desktop:py-0",
|
|
302
305
|
children: [
|
|
@@ -313,9 +316,9 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
313
316
|
className: "sr-only",
|
|
314
317
|
children: n.resetAriaLabel
|
|
315
318
|
})] })]
|
|
316
|
-
}), /* @__PURE__ */ d(
|
|
319
|
+
}), /* @__PURE__ */ d(fe, { periodStatus: n })]
|
|
317
320
|
}),
|
|
318
|
-
/* @__PURE__ */ d(
|
|
321
|
+
/* @__PURE__ */ d(se, {
|
|
319
322
|
cell: e.tokens,
|
|
320
323
|
label: r.tokensLabel,
|
|
321
324
|
progressAriaLabel: `${t} ${r.tokensLabel}`,
|
|
@@ -323,14 +326,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
323
326
|
labels: r,
|
|
324
327
|
typography: i
|
|
325
328
|
}),
|
|
326
|
-
/* @__PURE__ */ d(
|
|
329
|
+
/* @__PURE__ */ d(pe, {
|
|
327
330
|
cell: e.cost,
|
|
328
331
|
label: r.costLabel,
|
|
329
332
|
unavailableLabel: r.unavailableLabel,
|
|
330
333
|
typography: i
|
|
331
334
|
})
|
|
332
335
|
]
|
|
333
|
-
}),
|
|
336
|
+
}), me = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]", he = (e) => {
|
|
334
337
|
switch (e) {
|
|
335
338
|
case w.WithinLimits: return E.defaultBadge;
|
|
336
339
|
case w.RunningLow: return E.warningBadge;
|
|
@@ -338,7 +341,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
338
341
|
case w.NoLimit:
|
|
339
342
|
case w.Unavailable: return;
|
|
340
343
|
}
|
|
341
|
-
},
|
|
344
|
+
}, ge = (e, t) => {
|
|
342
345
|
switch (e) {
|
|
343
346
|
case w.WithinLimits: return t.withinLimitsBadgeLabel;
|
|
344
347
|
case w.RunningLow: return t.runningLowBadgeLabel;
|
|
@@ -346,11 +349,11 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
346
349
|
case w.NoLimit: return t.noLimitBadgeLabel;
|
|
347
350
|
case w.Unavailable: return t.unavailableBadgeLabel;
|
|
348
351
|
}
|
|
349
|
-
},
|
|
352
|
+
}, _e = ({ row: n, labels: r, periodStatuses: i, typography: o, avatarSize: c }) => {
|
|
350
353
|
let { nameClassName: l = "dial-small-semi-text", modelTypeClassName: u = "dial-caption-lead-semi-text", versionClassName: p = "dial-small-text", valueClassName: m = "dial-small-text", badgeClassName: h = "dial-caption-lead-semi-text", resetLabelClassName: g = "dial-tiny-text" } = o, _ = n.status !== w.NoLimit && n.status !== w.Unavailable;
|
|
351
354
|
return /* @__PURE__ */ f("div", {
|
|
352
355
|
role: "row",
|
|
353
|
-
className: a("grid grid-cols-1 gap-2 px-4 py-3 desktop:min-h-16 desktop:items-center desktop:gap-4 desktop:px-6",
|
|
356
|
+
className: a("grid grid-cols-1 gap-2 px-4 py-3 desktop:min-h-16 desktop:items-center desktop:gap-4 desktop:px-6", me, E.row),
|
|
354
357
|
children: [
|
|
355
358
|
/* @__PURE__ */ f("div", {
|
|
356
359
|
role: "cell",
|
|
@@ -387,7 +390,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
387
390
|
})]
|
|
388
391
|
})]
|
|
389
392
|
}),
|
|
390
|
-
/* @__PURE__ */ d(
|
|
393
|
+
/* @__PURE__ */ d(D, {
|
|
391
394
|
cell: n.day,
|
|
392
395
|
periodLabel: r.dayColumnLabel,
|
|
393
396
|
periodStatus: i.day,
|
|
@@ -395,7 +398,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
395
398
|
typography: o,
|
|
396
399
|
resetLabelClassName: g
|
|
397
400
|
}),
|
|
398
|
-
/* @__PURE__ */ d(
|
|
401
|
+
/* @__PURE__ */ d(D, {
|
|
399
402
|
cell: n.week,
|
|
400
403
|
periodLabel: r.weekColumnLabel,
|
|
401
404
|
periodStatus: i.week,
|
|
@@ -403,7 +406,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
403
406
|
typography: o,
|
|
404
407
|
resetLabelClassName: g
|
|
405
408
|
}),
|
|
406
|
-
/* @__PURE__ */ d(
|
|
409
|
+
/* @__PURE__ */ d(D, {
|
|
407
410
|
cell: n.month,
|
|
408
411
|
periodLabel: r.monthColumnLabel,
|
|
409
412
|
periodStatus: i.month,
|
|
@@ -418,16 +421,16 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
418
421
|
className: a("dial-caption-lead-semi-text block desktop:hidden", E.mobileColumnLabel),
|
|
419
422
|
children: r.statusColumnLabel
|
|
420
423
|
}), _ ? /* @__PURE__ */ d("span", {
|
|
421
|
-
className: a("inline-flex h-6 shrink-0 items-center self-start rounded-full px-2", h,
|
|
422
|
-
children:
|
|
424
|
+
className: a("inline-flex h-6 shrink-0 items-center self-start rounded-full px-2", h, he(n.status)),
|
|
425
|
+
children: ge(n.status, r)
|
|
423
426
|
}) : /* @__PURE__ */ d("span", {
|
|
424
427
|
className: a(m, E.neutralStatus),
|
|
425
|
-
children:
|
|
428
|
+
children: ge(n.status, r)
|
|
426
429
|
})]
|
|
427
430
|
})
|
|
428
431
|
]
|
|
429
432
|
});
|
|
430
|
-
},
|
|
433
|
+
}, ve = 40, O = ({ label: e, periodStatus: t, className: n, resetLabelClassName: r }) => /* @__PURE__ */ f("span", {
|
|
431
434
|
role: "columnheader",
|
|
432
435
|
className: a("flex min-w-0 items-center justify-between gap-2", n, E.columnHeader),
|
|
433
436
|
children: [/* @__PURE__ */ f("span", {
|
|
@@ -444,8 +447,8 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
444
447
|
className: "sr-only",
|
|
445
448
|
children: t.resetAriaLabel
|
|
446
449
|
})] })]
|
|
447
|
-
}), /* @__PURE__ */ d(
|
|
448
|
-
}),
|
|
450
|
+
}), /* @__PURE__ */ d(fe, { periodStatus: t })]
|
|
451
|
+
}), ye = ({ rows: e, labels: t, periodStatuses: i, styles: o }) => {
|
|
449
452
|
let { colors: s, typography: c = {} } = o ?? {}, { headingClassName: l = "dial-body-semi-text", headingCountClassName: p = "dial-tiny-semi-text", columnHeaderClassName: m = "dial-caption-lead-semi-text", resetLabelClassName: h = "dial-tiny-text" } = c, g = r({
|
|
450
453
|
"--mls-container-bg": s?.containerBackground,
|
|
451
454
|
"--mls-heading": s?.headingColor,
|
|
@@ -495,26 +498,26 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
495
498
|
children: /* @__PURE__ */ d(n, { label: t.emptyStateLabel })
|
|
496
499
|
}) : /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
|
|
497
500
|
role: "row",
|
|
498
|
-
className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center",
|
|
501
|
+
className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center", me, E.headerRow),
|
|
499
502
|
children: [
|
|
500
503
|
/* @__PURE__ */ d("span", {
|
|
501
504
|
role: "columnheader",
|
|
502
505
|
className: a(m, E.columnHeader),
|
|
503
506
|
children: t.itemColumnLabel
|
|
504
507
|
}),
|
|
505
|
-
/* @__PURE__ */ d(
|
|
508
|
+
/* @__PURE__ */ d(O, {
|
|
506
509
|
label: t.dayColumnLabel,
|
|
507
510
|
periodStatus: i.day,
|
|
508
511
|
className: m,
|
|
509
512
|
resetLabelClassName: h
|
|
510
513
|
}),
|
|
511
|
-
/* @__PURE__ */ d(
|
|
514
|
+
/* @__PURE__ */ d(O, {
|
|
512
515
|
label: t.weekColumnLabel,
|
|
513
516
|
periodStatus: i.week,
|
|
514
517
|
className: m,
|
|
515
518
|
resetLabelClassName: h
|
|
516
519
|
}),
|
|
517
|
-
/* @__PURE__ */ d(
|
|
520
|
+
/* @__PURE__ */ d(O, {
|
|
518
521
|
label: t.monthColumnLabel,
|
|
519
522
|
periodStatus: i.month,
|
|
520
523
|
className: m,
|
|
@@ -528,23 +531,23 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
528
531
|
]
|
|
529
532
|
}), /* @__PURE__ */ d("div", {
|
|
530
533
|
role: "rowgroup",
|
|
531
|
-
children: e.map((e) => /* @__PURE__ */ d(
|
|
534
|
+
children: e.map((e) => /* @__PURE__ */ d(_e, {
|
|
532
535
|
row: e,
|
|
533
536
|
labels: t,
|
|
534
537
|
periodStatuses: i,
|
|
535
538
|
typography: c,
|
|
536
|
-
avatarSize:
|
|
539
|
+
avatarSize: ve
|
|
537
540
|
}, e.id))
|
|
538
541
|
})] })
|
|
539
542
|
})]
|
|
540
543
|
});
|
|
541
|
-
},
|
|
544
|
+
}, be = 2 ** 53, xe = 75, Se = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), Ce = (e) => e >= 100 ? S.LimitReached : e >= xe ? S.RunningLow : S.Default, we = (e) => e ? {
|
|
542
545
|
resetLabel: e.label,
|
|
543
546
|
resetIsoValue: e.isoValue,
|
|
544
547
|
resetAriaLabel: e.ariaLabel
|
|
545
|
-
} : {},
|
|
546
|
-
let o = Math.max(0, e.used), s = i(o), c =
|
|
547
|
-
if (e.total >=
|
|
548
|
+
} : {}, Te = (e, t, n, r, a) => {
|
|
549
|
+
let o = Math.max(0, e.used), s = i(o), c = we(a);
|
|
550
|
+
if (e.total >= be) return {
|
|
548
551
|
title: t,
|
|
549
552
|
periodDescription: n,
|
|
550
553
|
used: o,
|
|
@@ -552,7 +555,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
552
555
|
usedLabel: s,
|
|
553
556
|
isUnlimited: !0,
|
|
554
557
|
status: S.Default,
|
|
555
|
-
progressAriaLabel: r(
|
|
558
|
+
progressAriaLabel: r(k.unlimitedProgressAriaLabel, { used: s }),
|
|
556
559
|
...c
|
|
557
560
|
};
|
|
558
561
|
let l = Math.max(e.total, 0), u = Math.max(l - o, 0), d = l > 0 ? o / l * 100 : 100, f = i(l);
|
|
@@ -565,15 +568,15 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
565
568
|
totalLabel: f,
|
|
566
569
|
remainingLabel: i(u),
|
|
567
570
|
usedPercent: d,
|
|
568
|
-
status:
|
|
569
|
-
progressAriaLabel: r(
|
|
571
|
+
status: Ce(d),
|
|
572
|
+
progressAriaLabel: r(k.progressAriaLabel, {
|
|
570
573
|
used: s,
|
|
571
574
|
total: f,
|
|
572
575
|
percent: Math.round(d)
|
|
573
576
|
}),
|
|
574
577
|
...c
|
|
575
578
|
};
|
|
576
|
-
},
|
|
579
|
+
}, k = {
|
|
577
580
|
todayTitle: "usage.todayTitle",
|
|
578
581
|
todayPeriodDescription: "usage.todayPeriodDescription",
|
|
579
582
|
thisWeekTitle: "usage.thisWeekTitle",
|
|
@@ -582,58 +585,58 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
582
585
|
thisMonthPeriodDescription: "usage.thisMonthPeriodDescription",
|
|
583
586
|
unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel",
|
|
584
587
|
progressAriaLabel: "usage.progressAriaLabel"
|
|
585
|
-
},
|
|
588
|
+
}, Ee = (e, t, n) => [
|
|
586
589
|
{
|
|
587
590
|
stats: e?.dayCostStats,
|
|
588
|
-
titleKey:
|
|
589
|
-
periodDescriptionKey:
|
|
591
|
+
titleKey: k.todayTitle,
|
|
592
|
+
periodDescriptionKey: k.todayPeriodDescription
|
|
590
593
|
},
|
|
591
594
|
{
|
|
592
595
|
stats: e?.weekCostStats,
|
|
593
|
-
titleKey:
|
|
594
|
-
periodDescriptionKey:
|
|
596
|
+
titleKey: k.thisWeekTitle,
|
|
597
|
+
periodDescriptionKey: k.thisWeekPeriodDescription
|
|
595
598
|
},
|
|
596
599
|
{
|
|
597
600
|
stats: e?.monthCostStats,
|
|
598
|
-
titleKey:
|
|
599
|
-
periodDescriptionKey:
|
|
601
|
+
titleKey: k.thisMonthTitle,
|
|
602
|
+
periodDescriptionKey: k.thisMonthPeriodDescription
|
|
600
603
|
}
|
|
601
|
-
].flatMap(({ stats: e, titleKey: r, periodDescriptionKey: i }) =>
|
|
602
|
-
__addDisposableResource: () =>
|
|
604
|
+
].flatMap(({ stats: e, titleKey: r, periodDescriptionKey: i }) => Se(e) ? [Te(e, t(r), t(i), t, n(e.resetsAt))] : []), A = /* @__PURE__ */ te({
|
|
605
|
+
__addDisposableResource: () => qe,
|
|
603
606
|
__assign: () => z,
|
|
604
|
-
__asyncDelegator: () =>
|
|
605
|
-
__asyncGenerator: () =>
|
|
606
|
-
__asyncValues: () =>
|
|
607
|
+
__asyncDelegator: () => ze,
|
|
608
|
+
__asyncGenerator: () => Re,
|
|
609
|
+
__asyncValues: () => Be,
|
|
607
610
|
__await: () => L,
|
|
608
|
-
__awaiter: () =>
|
|
609
|
-
__classPrivateFieldGet: () =>
|
|
610
|
-
__classPrivateFieldIn: () =>
|
|
611
|
-
__classPrivateFieldSet: () =>
|
|
611
|
+
__awaiter: () => Me,
|
|
612
|
+
__classPrivateFieldGet: () => We,
|
|
613
|
+
__classPrivateFieldIn: () => Ke,
|
|
614
|
+
__classPrivateFieldSet: () => Ge,
|
|
612
615
|
__createBinding: () => B,
|
|
613
|
-
__decorate: () =>
|
|
614
|
-
__disposeResources: () =>
|
|
615
|
-
__esDecorate: () =>
|
|
616
|
-
__exportStar: () =>
|
|
617
|
-
__extends: () =>
|
|
618
|
-
__generator: () =>
|
|
619
|
-
__importDefault: () =>
|
|
620
|
-
__importStar: () =>
|
|
621
|
-
__makeTemplateObject: () =>
|
|
622
|
-
__metadata: () =>
|
|
623
|
-
__param: () =>
|
|
624
|
-
__propKey: () =>
|
|
616
|
+
__decorate: () => N,
|
|
617
|
+
__disposeResources: () => Je,
|
|
618
|
+
__esDecorate: () => De,
|
|
619
|
+
__exportStar: () => Pe,
|
|
620
|
+
__extends: () => j,
|
|
621
|
+
__generator: () => Ne,
|
|
622
|
+
__importDefault: () => Ue,
|
|
623
|
+
__importStar: () => He,
|
|
624
|
+
__makeTemplateObject: () => Ve,
|
|
625
|
+
__metadata: () => je,
|
|
626
|
+
__param: () => P,
|
|
627
|
+
__propKey: () => ke,
|
|
625
628
|
__read: () => I,
|
|
626
|
-
__rest: () =>
|
|
627
|
-
__rewriteRelativeImportExtension: () =>
|
|
628
|
-
__runInitializers: () =>
|
|
629
|
-
__setFunctionName: () =>
|
|
630
|
-
__spread: () =>
|
|
631
|
-
__spreadArray: () =>
|
|
632
|
-
__spreadArrays: () =>
|
|
629
|
+
__rest: () => M,
|
|
630
|
+
__rewriteRelativeImportExtension: () => Ye,
|
|
631
|
+
__runInitializers: () => Oe,
|
|
632
|
+
__setFunctionName: () => Ae,
|
|
633
|
+
__spread: () => Fe,
|
|
634
|
+
__spreadArray: () => Le,
|
|
635
|
+
__spreadArrays: () => Ie,
|
|
633
636
|
__values: () => F,
|
|
634
|
-
default: () =>
|
|
637
|
+
default: () => Qe
|
|
635
638
|
});
|
|
636
|
-
function
|
|
639
|
+
function j(e, t) {
|
|
637
640
|
if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
638
641
|
R(e, t);
|
|
639
642
|
function n() {
|
|
@@ -641,24 +644,24 @@ function M(e, t) {
|
|
|
641
644
|
}
|
|
642
645
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
643
646
|
}
|
|
644
|
-
function
|
|
647
|
+
function M(e, t) {
|
|
645
648
|
var n = {};
|
|
646
649
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
647
650
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
648
651
|
return n;
|
|
649
652
|
}
|
|
650
|
-
function
|
|
653
|
+
function N(e, t, n, r) {
|
|
651
654
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
652
655
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
653
656
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
654
657
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
655
658
|
}
|
|
656
|
-
function
|
|
659
|
+
function P(e, t) {
|
|
657
660
|
return function(n, r) {
|
|
658
661
|
t(n, r, e);
|
|
659
662
|
};
|
|
660
663
|
}
|
|
661
|
-
function
|
|
664
|
+
function De(e, t, n, r, i, a) {
|
|
662
665
|
function o(e) {
|
|
663
666
|
if (e !== void 0 && typeof e != "function") throw TypeError("Function expected");
|
|
664
667
|
return e;
|
|
@@ -683,23 +686,23 @@ function Ee(e, t, n, r, i, a) {
|
|
|
683
686
|
}
|
|
684
687
|
l && Object.defineProperty(l, r.name, u), f = !0;
|
|
685
688
|
}
|
|
686
|
-
function
|
|
689
|
+
function Oe(e, t, n) {
|
|
687
690
|
for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
|
|
688
691
|
return r ? n : void 0;
|
|
689
692
|
}
|
|
690
|
-
function
|
|
693
|
+
function ke(e) {
|
|
691
694
|
return typeof e == "symbol" ? e : `${e}`;
|
|
692
695
|
}
|
|
693
|
-
function
|
|
696
|
+
function Ae(e, t, n) {
|
|
694
697
|
return typeof t == "symbol" && (t = t.description ? `[${t.description}]` : ""), Object.defineProperty(e, "name", {
|
|
695
698
|
configurable: !0,
|
|
696
699
|
value: n ? `${n} ${t}` : t
|
|
697
700
|
});
|
|
698
701
|
}
|
|
699
|
-
function
|
|
702
|
+
function je(e, t) {
|
|
700
703
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
701
704
|
}
|
|
702
|
-
function
|
|
705
|
+
function Me(e, t, n, r) {
|
|
703
706
|
function i(e) {
|
|
704
707
|
return e instanceof n ? e : new n(function(t) {
|
|
705
708
|
t(e);
|
|
@@ -726,7 +729,7 @@ function je(e, t, n, r) {
|
|
|
726
729
|
c((r = r.apply(e, t || [])).next());
|
|
727
730
|
});
|
|
728
731
|
}
|
|
729
|
-
function
|
|
732
|
+
function Ne(e, t) {
|
|
730
733
|
var n = {
|
|
731
734
|
label: 0,
|
|
732
735
|
sent: function() {
|
|
@@ -796,7 +799,7 @@ function Me(e, t) {
|
|
|
796
799
|
};
|
|
797
800
|
}
|
|
798
801
|
}
|
|
799
|
-
function
|
|
802
|
+
function Pe(e, t) {
|
|
800
803
|
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && B(t, e, n);
|
|
801
804
|
}
|
|
802
805
|
function F(e) {
|
|
@@ -827,23 +830,23 @@ function I(e, t) {
|
|
|
827
830
|
}
|
|
828
831
|
return a;
|
|
829
832
|
}
|
|
830
|
-
function
|
|
833
|
+
function Fe() {
|
|
831
834
|
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(I(arguments[t]));
|
|
832
835
|
return e;
|
|
833
836
|
}
|
|
834
|
-
function
|
|
837
|
+
function Ie() {
|
|
835
838
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
836
839
|
for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
|
|
837
840
|
return r;
|
|
838
841
|
}
|
|
839
|
-
function
|
|
842
|
+
function Le(e, t, n) {
|
|
840
843
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
841
844
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
842
845
|
}
|
|
843
846
|
function L(e) {
|
|
844
847
|
return this instanceof L ? (this.v = e, this) : new L(e);
|
|
845
848
|
}
|
|
846
|
-
function
|
|
849
|
+
function Re(e, t, n) {
|
|
847
850
|
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
848
851
|
var r = n.apply(e, t || []), i, a = [];
|
|
849
852
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", o), i[Symbol.asyncIterator] = function() {
|
|
@@ -886,7 +889,7 @@ function Le(e, t, n) {
|
|
|
886
889
|
e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
887
890
|
}
|
|
888
891
|
}
|
|
889
|
-
function
|
|
892
|
+
function ze(e) {
|
|
890
893
|
var t, n;
|
|
891
894
|
return t = {}, r("next"), r("throw", function(e) {
|
|
892
895
|
throw e;
|
|
@@ -902,7 +905,7 @@ function Re(e) {
|
|
|
902
905
|
} : i;
|
|
903
906
|
}
|
|
904
907
|
}
|
|
905
|
-
function
|
|
908
|
+
function Be(e) {
|
|
906
909
|
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
907
910
|
var t = e[Symbol.asyncIterator], n;
|
|
908
911
|
return t ? t.call(e) : (e = typeof F == "function" ? F(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
|
|
@@ -924,34 +927,34 @@ function ze(e) {
|
|
|
924
927
|
}, t);
|
|
925
928
|
}
|
|
926
929
|
}
|
|
927
|
-
function
|
|
930
|
+
function Ve(e, t) {
|
|
928
931
|
return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
|
|
929
932
|
}
|
|
930
|
-
function
|
|
933
|
+
function He(e) {
|
|
931
934
|
if (e && e.__esModule) return e;
|
|
932
935
|
var t = {};
|
|
933
936
|
if (e != null) for (var n = V(e), r = 0; r < n.length; r++) n[r] !== "default" && B(t, e, n[r]);
|
|
934
|
-
return
|
|
937
|
+
return Xe(t, e), t;
|
|
935
938
|
}
|
|
936
|
-
function
|
|
939
|
+
function Ue(e) {
|
|
937
940
|
return e && e.__esModule ? e : { default: e };
|
|
938
941
|
}
|
|
939
|
-
function
|
|
942
|
+
function We(e, t, n, r) {
|
|
940
943
|
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
941
944
|
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
|
|
942
945
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
943
946
|
}
|
|
944
|
-
function
|
|
947
|
+
function Ge(e, t, n, r, i) {
|
|
945
948
|
if (r === "m") throw TypeError("Private method is not writable");
|
|
946
949
|
if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
|
|
947
950
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
|
|
948
951
|
return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
949
952
|
}
|
|
950
|
-
function
|
|
953
|
+
function Ke(e, t) {
|
|
951
954
|
if (t === null || typeof t != "object" && typeof t != "function") throw TypeError("Cannot use 'in' operator on non-object");
|
|
952
955
|
return typeof e == "function" ? t === e : e.has(t);
|
|
953
956
|
}
|
|
954
|
-
function
|
|
957
|
+
function qe(e, t, n) {
|
|
955
958
|
if (t != null) {
|
|
956
959
|
if (typeof t != "object" && typeof t != "function") throw TypeError("Object expected.");
|
|
957
960
|
var r, i;
|
|
@@ -978,9 +981,9 @@ function Ke(e, t, n) {
|
|
|
978
981
|
} else n && e.stack.push({ async: !0 });
|
|
979
982
|
return t;
|
|
980
983
|
}
|
|
981
|
-
function
|
|
984
|
+
function Je(e) {
|
|
982
985
|
function t(t) {
|
|
983
|
-
e.error = e.hasError ? new
|
|
986
|
+
e.error = e.hasError ? new Ze(t, e.error, "An error was suppressed during disposal.") : t, e.hasError = !0;
|
|
984
987
|
}
|
|
985
988
|
var n, r = 0;
|
|
986
989
|
function i() {
|
|
@@ -1000,12 +1003,12 @@ function qe(e) {
|
|
|
1000
1003
|
}
|
|
1001
1004
|
return i();
|
|
1002
1005
|
}
|
|
1003
|
-
function
|
|
1006
|
+
function Ye(e, t) {
|
|
1004
1007
|
return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
|
|
1005
1008
|
return n ? t ? ".jsx" : ".js" : r && (!i || !a) ? e : r + i + "." + a.toLowerCase() + "js";
|
|
1006
1009
|
}) : e;
|
|
1007
1010
|
}
|
|
1008
|
-
var R, z, B,
|
|
1011
|
+
var R, z, B, Xe, V, Ze, Qe, H = ee((() => {
|
|
1009
1012
|
R = function(e, t) {
|
|
1010
1013
|
return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
1011
1014
|
e.__proto__ = t;
|
|
@@ -1028,7 +1031,7 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1028
1031
|
}), Object.defineProperty(e, r, i);
|
|
1029
1032
|
}) : (function(e, t, n, r) {
|
|
1030
1033
|
r === void 0 && (r = n), e[r] = t[n];
|
|
1031
|
-
}),
|
|
1034
|
+
}), Xe = Object.create ? (function(e, t) {
|
|
1032
1035
|
Object.defineProperty(e, "default", {
|
|
1033
1036
|
enumerable: !0,
|
|
1034
1037
|
value: t
|
|
@@ -1041,44 +1044,44 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1041
1044
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
|
|
1042
1045
|
return t;
|
|
1043
1046
|
}, V(e);
|
|
1044
|
-
},
|
|
1047
|
+
}, Ze = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
|
|
1045
1048
|
var r = Error(n);
|
|
1046
1049
|
return r.name = "SuppressedError", r.error = e, r.suppressed = t, r;
|
|
1047
|
-
},
|
|
1048
|
-
__extends:
|
|
1050
|
+
}, Qe = {
|
|
1051
|
+
__extends: j,
|
|
1049
1052
|
__assign: z,
|
|
1050
|
-
__rest:
|
|
1051
|
-
__decorate:
|
|
1052
|
-
__param:
|
|
1053
|
-
__esDecorate:
|
|
1054
|
-
__runInitializers:
|
|
1055
|
-
__propKey:
|
|
1056
|
-
__setFunctionName:
|
|
1057
|
-
__metadata:
|
|
1058
|
-
__awaiter:
|
|
1059
|
-
__generator:
|
|
1053
|
+
__rest: M,
|
|
1054
|
+
__decorate: N,
|
|
1055
|
+
__param: P,
|
|
1056
|
+
__esDecorate: De,
|
|
1057
|
+
__runInitializers: Oe,
|
|
1058
|
+
__propKey: ke,
|
|
1059
|
+
__setFunctionName: Ae,
|
|
1060
|
+
__metadata: je,
|
|
1061
|
+
__awaiter: Me,
|
|
1062
|
+
__generator: Ne,
|
|
1060
1063
|
__createBinding: B,
|
|
1061
|
-
__exportStar:
|
|
1064
|
+
__exportStar: Pe,
|
|
1062
1065
|
__values: F,
|
|
1063
1066
|
__read: I,
|
|
1064
|
-
__spread:
|
|
1065
|
-
__spreadArrays:
|
|
1066
|
-
__spreadArray:
|
|
1067
|
+
__spread: Fe,
|
|
1068
|
+
__spreadArrays: Ie,
|
|
1069
|
+
__spreadArray: Le,
|
|
1067
1070
|
__await: L,
|
|
1068
|
-
__asyncGenerator:
|
|
1069
|
-
__asyncDelegator:
|
|
1070
|
-
__asyncValues:
|
|
1071
|
-
__makeTemplateObject:
|
|
1072
|
-
__importStar:
|
|
1073
|
-
__importDefault:
|
|
1074
|
-
__classPrivateFieldGet:
|
|
1075
|
-
__classPrivateFieldSet:
|
|
1076
|
-
__classPrivateFieldIn:
|
|
1077
|
-
__addDisposableResource:
|
|
1078
|
-
__disposeResources:
|
|
1079
|
-
__rewriteRelativeImportExtension:
|
|
1071
|
+
__asyncGenerator: Re,
|
|
1072
|
+
__asyncDelegator: ze,
|
|
1073
|
+
__asyncValues: Be,
|
|
1074
|
+
__makeTemplateObject: Ve,
|
|
1075
|
+
__importStar: He,
|
|
1076
|
+
__importDefault: Ue,
|
|
1077
|
+
__classPrivateFieldGet: We,
|
|
1078
|
+
__classPrivateFieldSet: Ge,
|
|
1079
|
+
__classPrivateFieldIn: Ke,
|
|
1080
|
+
__addDisposableResource: qe,
|
|
1081
|
+
__disposeResources: Je,
|
|
1082
|
+
__rewriteRelativeImportExtension: Ye
|
|
1080
1083
|
};
|
|
1081
|
-
})),
|
|
1084
|
+
})), U = /* @__PURE__ */ y(((e) => {
|
|
1082
1085
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.TextApiResponse = e.BlobApiResponse = e.VoidApiResponse = e.JSONApiResponse = e.COLLECTION_FORMATS = e.RequiredError = e.FetchError = e.ResponseError = e.BaseAPI = e.DefaultConfig = e.Configuration = e.BASE_PATH = void 0, e.querystring = o, e.exists = c, e.canConsumeForm = l, e.BASE_PATH = "http://localhost:5000".replace(/\/+$/, "");
|
|
1083
1086
|
var t = class {
|
|
1084
1087
|
configuration;
|
|
@@ -1293,9 +1296,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1293
1296
|
return await this.raw.text();
|
|
1294
1297
|
}
|
|
1295
1298
|
};
|
|
1296
|
-
})),
|
|
1299
|
+
})), $e = /* @__PURE__ */ y(((e) => {
|
|
1297
1300
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.AppConfigApi = void 0;
|
|
1298
|
-
var t =
|
|
1301
|
+
var t = U();
|
|
1299
1302
|
e.AppConfigApi = class extends t.BaseAPI {
|
|
1300
1303
|
async getClientConfigRaw(e, n) {
|
|
1301
1304
|
if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getClientConfig().");
|
|
@@ -1313,9 +1316,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1313
1316
|
return await (await this.getClientConfigRaw(e, t)).value();
|
|
1314
1317
|
}
|
|
1315
1318
|
};
|
|
1316
|
-
})),
|
|
1319
|
+
})), et = /* @__PURE__ */ y(((e) => {
|
|
1317
1320
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ApplicationsApi = void 0;
|
|
1318
|
-
var t =
|
|
1321
|
+
var t = U();
|
|
1319
1322
|
e.ApplicationsApi = class extends t.BaseAPI {
|
|
1320
1323
|
async createApplicationRaw(e, n) {
|
|
1321
1324
|
if (e.createApplicationBodyDto == null) throw new t.RequiredError("createApplicationBodyDto", "Required parameter \"createApplicationBodyDto\" was null or undefined when calling createApplication().");
|
|
@@ -1407,9 +1410,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1407
1410
|
return await (await this.updateApplicationRaw(e, t)).value();
|
|
1408
1411
|
}
|
|
1409
1412
|
};
|
|
1410
|
-
})),
|
|
1413
|
+
})), tt = /* @__PURE__ */ y(((e) => {
|
|
1411
1414
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthApi = void 0;
|
|
1412
|
-
var t =
|
|
1415
|
+
var t = U();
|
|
1413
1416
|
e.AuthApi = class extends t.BaseAPI {
|
|
1414
1417
|
async callbackRaw(e, n) {
|
|
1415
1418
|
if (e.providerId == null) throw new t.RequiredError("providerId", "Required parameter \"providerId\" was null or undefined when calling callback().");
|
|
@@ -1483,9 +1486,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1483
1486
|
await this.logoutRaw(e);
|
|
1484
1487
|
}
|
|
1485
1488
|
};
|
|
1486
|
-
})),
|
|
1489
|
+
})), nt = /* @__PURE__ */ y(((e) => {
|
|
1487
1490
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ChatApi = void 0;
|
|
1488
|
-
var t =
|
|
1491
|
+
var t = U();
|
|
1489
1492
|
e.ChatApi = class extends t.BaseAPI {
|
|
1490
1493
|
async sendCompletionRaw(e, n) {
|
|
1491
1494
|
if (e.chatCompletionDto == null) throw new t.RequiredError("chatCompletionDto", "Required parameter \"chatCompletionDto\" was null or undefined when calling sendCompletion().");
|
|
@@ -1504,9 +1507,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1504
1507
|
return await (await this.sendCompletionRaw(e, t)).value();
|
|
1505
1508
|
}
|
|
1506
1509
|
};
|
|
1507
|
-
})),
|
|
1510
|
+
})), rt = /* @__PURE__ */ y(((e) => {
|
|
1508
1511
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannelApi = void 0;
|
|
1509
|
-
var t =
|
|
1512
|
+
var t = U();
|
|
1510
1513
|
e.ClientChannelApi = class extends t.BaseAPI {
|
|
1511
1514
|
async reportClientChannelRaw(e, n) {
|
|
1512
1515
|
if (e.xDialClientChannelId == null) throw new t.RequiredError("xDialClientChannelId", "Required parameter \"xDialClientChannelId\" was null or undefined when calling reportClientChannel().");
|
|
@@ -1555,9 +1558,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1555
1558
|
await this.unsubscribeClientChannelRaw(e, t);
|
|
1556
1559
|
}
|
|
1557
1560
|
};
|
|
1558
|
-
})),
|
|
1561
|
+
})), it = /* @__PURE__ */ y(((e) => {
|
|
1559
1562
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ConversationsApi = void 0;
|
|
1560
|
-
var t =
|
|
1563
|
+
var t = U();
|
|
1561
1564
|
e.ConversationsApi = class extends t.BaseAPI {
|
|
1562
1565
|
async attachToGenerationRaw(e, n) {
|
|
1563
1566
|
if (e.attachGenerationDto == null) throw new t.RequiredError("attachGenerationDto", "Required parameter \"attachGenerationDto\" was null or undefined when calling attachToGeneration().");
|
|
@@ -1867,9 +1870,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1867
1870
|
await this.watchConversationRaw(e, t);
|
|
1868
1871
|
}
|
|
1869
1872
|
};
|
|
1870
|
-
})),
|
|
1873
|
+
})), at = /* @__PURE__ */ y(((e) => {
|
|
1871
1874
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListDeploymentsInterfaceTypeEnum = e.DeploymentsApi = void 0;
|
|
1872
|
-
var t =
|
|
1875
|
+
var t = U();
|
|
1873
1876
|
e.DeploymentsApi = class extends t.BaseAPI {
|
|
1874
1877
|
async getDeploymentConfigurationRaw(e, n) {
|
|
1875
1878
|
if (e.deployment == null) throw new t.RequiredError("deployment", "Required parameter \"deployment\" was null or undefined when calling getDeploymentConfiguration().");
|
|
@@ -1937,9 +1940,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1937
1940
|
CustomUi: "custom_ui",
|
|
1938
1941
|
All: "all"
|
|
1939
1942
|
};
|
|
1940
|
-
})),
|
|
1943
|
+
})), ot = /* @__PURE__ */ y(((e) => {
|
|
1941
1944
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ExternalServicesApi = void 0;
|
|
1942
|
-
var t =
|
|
1945
|
+
var t = U();
|
|
1943
1946
|
e.ExternalServicesApi = class extends t.BaseAPI {
|
|
1944
1947
|
async getExternalServiceRaw(e, n) {
|
|
1945
1948
|
if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getExternalService().");
|
|
@@ -1998,9 +2001,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
1998
2001
|
return await (await this.signOutExternalServiceRaw(e, t)).value();
|
|
1999
2002
|
}
|
|
2000
2003
|
};
|
|
2001
|
-
})),
|
|
2004
|
+
})), st = /* @__PURE__ */ y(((e) => {
|
|
2002
2005
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UploadFileUploadModeEnum = e.FilesApi = void 0;
|
|
2003
|
-
var t =
|
|
2006
|
+
var t = U();
|
|
2004
2007
|
e.FilesApi = class extends t.BaseAPI {
|
|
2005
2008
|
async copyFilesRaw(e, n) {
|
|
2006
2009
|
if (e.copyFilesDto == null) throw new t.RequiredError("copyFilesDto", "Required parameter \"copyFilesDto\" was null or undefined when calling copyFiles().");
|
|
@@ -2260,9 +2263,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2260
2263
|
Overwrite: "overwrite",
|
|
2261
2264
|
CreateOnly: "create-only"
|
|
2262
2265
|
};
|
|
2263
|
-
})),
|
|
2266
|
+
})), ct = /* @__PURE__ */ y(((e) => {
|
|
2264
2267
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.HealthApi = void 0;
|
|
2265
|
-
var t =
|
|
2268
|
+
var t = U();
|
|
2266
2269
|
e.HealthApi = class extends t.BaseAPI {
|
|
2267
2270
|
async checkRaw(e) {
|
|
2268
2271
|
let n = await this.request({
|
|
@@ -2277,9 +2280,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2277
2280
|
return await (await this.checkRaw(e)).value();
|
|
2278
2281
|
}
|
|
2279
2282
|
};
|
|
2280
|
-
})),
|
|
2283
|
+
})), lt = /* @__PURE__ */ y(((e) => {
|
|
2281
2284
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ModelsApi = void 0;
|
|
2282
|
-
var t =
|
|
2285
|
+
var t = U();
|
|
2283
2286
|
e.ModelsApi = class extends t.BaseAPI {
|
|
2284
2287
|
async getModelRaw(e, n) {
|
|
2285
2288
|
if (e.modelName == null) throw new t.RequiredError("modelName", "Required parameter \"modelName\" was null or undefined when calling getModel().");
|
|
@@ -2309,9 +2312,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2309
2312
|
return await (await this.listModelsRaw(e)).value();
|
|
2310
2313
|
}
|
|
2311
2314
|
};
|
|
2312
|
-
})),
|
|
2315
|
+
})), ut = /* @__PURE__ */ y(((e) => {
|
|
2313
2316
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.OfflineCredentialsApi = void 0;
|
|
2314
|
-
var t =
|
|
2317
|
+
var t = U();
|
|
2315
2318
|
e.OfflineCredentialsApi = class extends t.BaseAPI {
|
|
2316
2319
|
async getOfflineCredentialsRaw(e) {
|
|
2317
2320
|
let n = await this.request({
|
|
@@ -2342,9 +2345,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2342
2345
|
return await (await this.signInOfflineCredentialsRaw(e, t)).value();
|
|
2343
2346
|
}
|
|
2344
2347
|
};
|
|
2345
|
-
})),
|
|
2348
|
+
})), dt = /* @__PURE__ */ y(((e) => {
|
|
2346
2349
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.PromptsApi = void 0;
|
|
2347
|
-
var t =
|
|
2350
|
+
var t = U();
|
|
2348
2351
|
e.PromptsApi = class extends t.BaseAPI {
|
|
2349
2352
|
async createPromptRaw(e, n) {
|
|
2350
2353
|
if (e.createPromptDto == null) throw new t.RequiredError("createPromptDto", "Required parameter \"createPromptDto\" was null or undefined when calling createPrompt().");
|
|
@@ -2520,9 +2523,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2520
2523
|
return await (await this.updatePromptRaw(e, t)).value();
|
|
2521
2524
|
}
|
|
2522
2525
|
};
|
|
2523
|
-
})),
|
|
2526
|
+
})), ft = /* @__PURE__ */ y(((e) => {
|
|
2524
2527
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UnpublishCatalogEntityEntityTypeEnum = e.PublishCatalogEntityEntityTypeEnum = e.GetCatalogPublishHistoryEntityTypeEnum = e.PublishApi = void 0;
|
|
2525
|
-
var t =
|
|
2528
|
+
var t = U();
|
|
2526
2529
|
e.PublishApi = class extends t.BaseAPI {
|
|
2527
2530
|
async getCatalogPublishHistoryRaw(e, n) {
|
|
2528
2531
|
if (e.entityType == null) throw new t.RequiredError("entityType", "Required parameter \"entityType\" was null or undefined when calling getCatalogPublishHistory().");
|
|
@@ -2614,9 +2617,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2614
2617
|
Prompt: "prompt",
|
|
2615
2618
|
Skill: "skill"
|
|
2616
2619
|
};
|
|
2617
|
-
})),
|
|
2620
|
+
})), pt = /* @__PURE__ */ y(((e) => {
|
|
2618
2621
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.RateApi = void 0;
|
|
2619
|
-
var t =
|
|
2622
|
+
var t = U();
|
|
2620
2623
|
e.RateApi = class extends t.BaseAPI {
|
|
2621
2624
|
async rateMessageRaw(e, n) {
|
|
2622
2625
|
if (e.rateMessageDto == null) throw new t.RequiredError("rateMessageDto", "Required parameter \"rateMessageDto\" was null or undefined when calling rateMessage().");
|
|
@@ -2635,9 +2638,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2635
2638
|
await this.rateMessageRaw(e, t);
|
|
2636
2639
|
}
|
|
2637
2640
|
};
|
|
2638
|
-
})),
|
|
2641
|
+
})), mt = /* @__PURE__ */ y(((e) => {
|
|
2639
2642
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListScheduledTasksSortEnum = e.ScheduledTasksApi = void 0;
|
|
2640
|
-
var t =
|
|
2643
|
+
var t = U();
|
|
2641
2644
|
e.ScheduledTasksApi = class extends t.BaseAPI {
|
|
2642
2645
|
async createScheduledTaskRaw(e, n) {
|
|
2643
2646
|
if (e.createScheduledTaskBodyDto == null) throw new t.RequiredError("createScheduledTaskBodyDto", "Required parameter \"createScheduledTaskBodyDto\" was null or undefined when calling createScheduledTask().");
|
|
@@ -2771,9 +2774,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2771
2774
|
Newest: "newest",
|
|
2772
2775
|
NameAz: "nameAZ"
|
|
2773
2776
|
};
|
|
2774
|
-
})),
|
|
2777
|
+
})), ht = /* @__PURE__ */ y(((e) => {
|
|
2775
2778
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ShareApi = void 0;
|
|
2776
|
-
var t =
|
|
2779
|
+
var t = U();
|
|
2777
2780
|
e.ShareApi = class extends t.BaseAPI {
|
|
2778
2781
|
async acceptInvitationRaw(e, n) {
|
|
2779
2782
|
if (e.invitationId == null) throw new t.RequiredError("invitationId", "Required parameter \"invitationId\" was null or undefined when calling acceptInvitation().");
|
|
@@ -2854,9 +2857,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2854
2857
|
return await (await this.revokeSharedAccessRaw(e, t)).value();
|
|
2855
2858
|
}
|
|
2856
2859
|
};
|
|
2857
|
-
})),
|
|
2860
|
+
})), gt = /* @__PURE__ */ y(((e) => {
|
|
2858
2861
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.SkillsApi = void 0;
|
|
2859
|
-
var t =
|
|
2862
|
+
var t = U();
|
|
2860
2863
|
e.SkillsApi = class extends t.BaseAPI {
|
|
2861
2864
|
async createSkillRaw(e, n) {
|
|
2862
2865
|
if (e.bucket == null) throw new t.RequiredError("bucket", "Required parameter \"bucket\" was null or undefined when calling createSkill().");
|
|
@@ -2983,6 +2986,22 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
2983
2986
|
async downloadSkillFile(e, t) {
|
|
2984
2987
|
return await (await this.downloadSkillFileRaw(e, t)).value();
|
|
2985
2988
|
}
|
|
2989
|
+
async getSkillMetadataRaw(e, n) {
|
|
2990
|
+
if (e.bucket == null) throw new t.RequiredError("bucket", "Required parameter \"bucket\" was null or undefined when calling getSkillMetadata().");
|
|
2991
|
+
if (e.path == null) throw new t.RequiredError("path", "Required parameter \"path\" was null or undefined when calling getSkillMetadata().");
|
|
2992
|
+
let r = {};
|
|
2993
|
+
e.bucket != null && (r.bucket = e.bucket), e.path != null && (r.path = e.path);
|
|
2994
|
+
let i = await this.request({
|
|
2995
|
+
path: "/api/v1/skills/metadata",
|
|
2996
|
+
method: "GET",
|
|
2997
|
+
headers: {},
|
|
2998
|
+
query: r
|
|
2999
|
+
}, n);
|
|
3000
|
+
return new t.JSONApiResponse(i);
|
|
3001
|
+
}
|
|
3002
|
+
async getSkillMetadata(e, t) {
|
|
3003
|
+
return await (await this.getSkillMetadataRaw(e, t)).value();
|
|
3004
|
+
}
|
|
2986
3005
|
async importSkillArchiveRaw(e, n) {
|
|
2987
3006
|
if (e.file == null) throw new t.RequiredError("file", "Required parameter \"file\" was null or undefined when calling importSkillArchive().");
|
|
2988
3007
|
let r = {}, i = {}, a = t.canConsumeForm([{ contentType: "multipart/form-data" }]), o, s = !1;
|
|
@@ -3088,9 +3107,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3088
3107
|
return await (await this.uploadSkillFileRaw(e, t)).value();
|
|
3089
3108
|
}
|
|
3090
3109
|
};
|
|
3091
|
-
})),
|
|
3110
|
+
})), _t = /* @__PURE__ */ y(((e) => {
|
|
3092
3111
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ThemesApi = void 0;
|
|
3093
|
-
var t =
|
|
3112
|
+
var t = U();
|
|
3094
3113
|
e.ThemesApi = class extends t.BaseAPI {
|
|
3095
3114
|
async getThemeIconRaw(e, n) {
|
|
3096
3115
|
if (e.iconName == null) throw new t.RequiredError("iconName", "Required parameter \"iconName\" was null or undefined when calling getThemeIcon().");
|
|
@@ -3120,9 +3139,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3120
3139
|
return await (await this.getThemesRaw(e)).value();
|
|
3121
3140
|
}
|
|
3122
3141
|
};
|
|
3123
|
-
})),
|
|
3142
|
+
})), vt = /* @__PURE__ */ y(((e) => {
|
|
3124
3143
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListMcpToolNamesKindEnum = e.ListMcpAppToolsKindEnum = e.ToolsetsApi = void 0;
|
|
3125
|
-
var t =
|
|
3144
|
+
var t = U();
|
|
3126
3145
|
e.ToolsetsApi = class extends t.BaseAPI {
|
|
3127
3146
|
async callToolsetMcpAppToolRaw(e, n) {
|
|
3128
3147
|
if (e.toolsetName == null) throw new t.RequiredError("toolsetName", "Required parameter \"toolsetName\" was null or undefined when calling callToolsetMcpAppTool().");
|
|
@@ -3315,9 +3334,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3315
3334
|
Toolset: "toolset",
|
|
3316
3335
|
Application: "application"
|
|
3317
3336
|
};
|
|
3318
|
-
})),
|
|
3337
|
+
})), yt = /* @__PURE__ */ y(((e) => {
|
|
3319
3338
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.TranscriptionApi = void 0;
|
|
3320
|
-
var t =
|
|
3339
|
+
var t = U();
|
|
3321
3340
|
e.TranscriptionApi = class extends t.BaseAPI {
|
|
3322
3341
|
async transcribeAudioRaw(e, n) {
|
|
3323
3342
|
if (e.transcribeAudioDto == null) throw new t.RequiredError("transcribeAudioDto", "Required parameter \"transcribeAudioDto\" was null or undefined when calling transcribeAudio().");
|
|
@@ -3336,9 +3355,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3336
3355
|
return await (await this.transcribeAudioRaw(e, t)).value();
|
|
3337
3356
|
}
|
|
3338
3357
|
};
|
|
3339
|
-
})),
|
|
3358
|
+
})), bt = /* @__PURE__ */ y(((e) => {
|
|
3340
3359
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UserApi = void 0;
|
|
3341
|
-
var t =
|
|
3360
|
+
var t = U();
|
|
3342
3361
|
e.UserApi = class extends t.BaseAPI {
|
|
3343
3362
|
async getUserLimitsRaw(e) {
|
|
3344
3363
|
let n = await this.request({
|
|
@@ -3365,9 +3384,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3365
3384
|
return await (await this.getUserUsageRaw(e)).value();
|
|
3366
3385
|
}
|
|
3367
3386
|
};
|
|
3368
|
-
})),
|
|
3387
|
+
})), xt = /* @__PURE__ */ y(((e) => {
|
|
3369
3388
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UserConfigApi = void 0;
|
|
3370
|
-
var t =
|
|
3389
|
+
var t = U();
|
|
3371
3390
|
e.UserConfigApi = class extends t.BaseAPI {
|
|
3372
3391
|
async getUserConfigRaw(e) {
|
|
3373
3392
|
let n = await this.request({
|
|
@@ -3478,12 +3497,12 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3478
3497
|
await this.updateSelectedDeploymentRaw(e, t);
|
|
3479
3498
|
}
|
|
3480
3499
|
};
|
|
3481
|
-
})),
|
|
3500
|
+
})), St = /* @__PURE__ */ y(((e) => {
|
|
3482
3501
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3483
|
-
var t = (
|
|
3484
|
-
t.__exportStar(
|
|
3485
|
-
})),
|
|
3486
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.UpdatedScheduledTaskDtoTriggerTypeEnum = e.UnpublishResultDtoEntityTypeEnum = e.ToolsetLogoutBodyDtoAuthenticationTypeEnum = e.ToolsetLogoutBodyDtoCredentialsLevelEnum = e.ToolsetLoginBodyDtoAuthenticationTypeEnum = e.ToolsetLoginBodyDtoCredentialsLevelEnum = e.ToolsetBodyDtoTransportEnum = e.ToolsetAuthSettingsDtoUserLevelAuthStatusEnum = e.ToolsetAuthSettingsDtoAppLevelAuthStatusEnum = e.ToolsetAuthSettingsDtoGlobalAuthStatusEnum = e.ToolsetAuthSettingsDtoAuthenticationTypeEnum = e.ToolsetAuthSettingsBodyDtoAuthenticationTypeEnum = e.SkillMetadataItemDtoNodeTypeEnum = e.ShareLinkResponseDtoAccessEnum = e.SendCompletionDtoModeEnum = e.ScheduledTaskRunDtoStatusEnum = e.ScheduledTaskDtoTriggerTypeEnum = e.ReportClientChannelDtoResultEnum = e.RenameItemDtoNodeTypeEnum = e.RateMessageDtoRateEnum = e.PublishRuleDtoFunctionEnum = e.PublishResultDtoEntityTypeEnum = e.PublishHistoryEntryDtoEntityTypeEnum = e.MoveItemDtoNodeTypeEnum = e.MessageDtoRoleEnum = e.McpAppToolCallRequestDtoKindEnum = e.ListFilesItemDtoNodeTypeEnum = e.GetExternalServiceResponseDtoAuthenticationTypeEnum = e.ExternalServiceSigninBodyDtoAuthenticationTypeEnum = e.ExternalServiceSigninBodyDtoCredentialsLevelEnum = e.ExternalServiceLogoutBodyDtoAuthenticationTypeEnum = e.ExternalServiceLogoutBodyDtoCredentialsLevelEnum = e.DialToolsetAuthSettingsDtoUserLevelAuthStatusEnum = e.DialToolsetAuthSettingsDtoGlobalAuthStatusEnum = e.DialToolsetAuthSettingsDtoAuthenticationTypeEnum = e.DeploymentItemDtoTypeEnum = e.DeploymentDetailsDtoTypeEnum = e.DeleteItemDtoNodeTypeEnum = e.CreatedScheduledTaskDtoTriggerTypeEnum = e.CreateShareLinkDtoAccessEnum = e.CopyItemDtoNodeTypeEnum = e.ConversationResponseDtoResponseFormatEnum = e.ConversationMessageDtoRoleEnum = e.ConversationMessageCustomContentDtoEventTypeEnum = e.ConversationDeletionFailureDtoCodeEnum = e.ClientConfigDtoMcpAppThemeEnum = e.ArchiveItemDtoNodeTypeEnum = void 0, e.ArchiveItemDtoNodeTypeEnum = {
|
|
3502
|
+
var t = (H(), b(A));
|
|
3503
|
+
t.__exportStar($e(), e), t.__exportStar(et(), e), t.__exportStar(tt(), e), t.__exportStar(nt(), e), t.__exportStar(rt(), e), t.__exportStar(it(), e), t.__exportStar(at(), e), t.__exportStar(ot(), e), t.__exportStar(st(), e), t.__exportStar(ct(), e), t.__exportStar(lt(), e), t.__exportStar(ut(), e), t.__exportStar(dt(), e), t.__exportStar(ft(), e), t.__exportStar(pt(), e), t.__exportStar(mt(), e), t.__exportStar(ht(), e), t.__exportStar(gt(), e), t.__exportStar(_t(), e), t.__exportStar(vt(), e), t.__exportStar(yt(), e), t.__exportStar(bt(), e), t.__exportStar(xt(), e);
|
|
3504
|
+
})), Ct = /* @__PURE__ */ y(((e) => {
|
|
3505
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.UpdatedScheduledTaskDtoTriggerTypeEnum = e.UnpublishResultDtoEntityTypeEnum = e.ToolsetLogoutBodyDtoAuthenticationTypeEnum = e.ToolsetLogoutBodyDtoCredentialsLevelEnum = e.ToolsetLoginBodyDtoAuthenticationTypeEnum = e.ToolsetLoginBodyDtoCredentialsLevelEnum = e.ToolsetBodyDtoTransportEnum = e.ToolsetAuthSettingsDtoUserLevelAuthStatusEnum = e.ToolsetAuthSettingsDtoAppLevelAuthStatusEnum = e.ToolsetAuthSettingsDtoGlobalAuthStatusEnum = e.ToolsetAuthSettingsDtoAuthenticationTypeEnum = e.ToolsetAuthSettingsBodyDtoAuthenticationTypeEnum = e.StageDtoStatusEnum = e.SkillMetadataItemDtoNodeTypeEnum = e.ShareLinkResponseDtoAccessEnum = e.SendCompletionDtoModeEnum = e.ScheduledTaskRunDtoStatusEnum = e.ScheduledTaskDtoTriggerTypeEnum = e.ReportClientChannelDtoResultEnum = e.RenameItemDtoNodeTypeEnum = e.RateMessageDtoRateEnum = e.PublishRuleDtoFunctionEnum = e.PublishResultDtoEntityTypeEnum = e.PublishHistoryEntryDtoEntityTypeEnum = e.MoveItemDtoNodeTypeEnum = e.MessageDtoRoleEnum = e.McpAppToolCallRequestDtoKindEnum = e.ListFilesItemDtoNodeTypeEnum = e.GetExternalServiceResponseDtoAuthenticationTypeEnum = e.ExternalServiceSigninBodyDtoAuthenticationTypeEnum = e.ExternalServiceSigninBodyDtoCredentialsLevelEnum = e.ExternalServiceLogoutBodyDtoAuthenticationTypeEnum = e.ExternalServiceLogoutBodyDtoCredentialsLevelEnum = e.DialToolsetAuthSettingsDtoUserLevelAuthStatusEnum = e.DialToolsetAuthSettingsDtoGlobalAuthStatusEnum = e.DialToolsetAuthSettingsDtoAuthenticationTypeEnum = e.DeploymentItemDtoTypeEnum = e.DeploymentDetailsDtoTypeEnum = e.DeleteItemDtoNodeTypeEnum = e.CreatedScheduledTaskDtoTriggerTypeEnum = e.CreateShareLinkDtoAccessEnum = e.CopyItemDtoNodeTypeEnum = e.ConversationResponseDtoResponseFormatEnum = e.ConversationMessageDtoRoleEnum = e.ConversationMessageCustomContentDtoEventTypeEnum = e.ConversationDeletionFailureDtoCodeEnum = e.ClientConfigDtoMcpAppThemeEnum = e.ArchiveItemDtoNodeTypeEnum = void 0, e.ArchiveItemDtoNodeTypeEnum = {
|
|
3487
3506
|
Item: "item",
|
|
3488
3507
|
Folder: "folder"
|
|
3489
3508
|
}, e.ClientConfigDtoMcpAppThemeEnum = {
|
|
@@ -3608,6 +3627,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3608
3627
|
}, e.SkillMetadataItemDtoNodeTypeEnum = {
|
|
3609
3628
|
Folder: "folder",
|
|
3610
3629
|
Item: "item"
|
|
3630
|
+
}, e.StageDtoStatusEnum = {
|
|
3631
|
+
Completed: "completed",
|
|
3632
|
+
Failed: "failed"
|
|
3611
3633
|
}, e.ToolsetAuthSettingsBodyDtoAuthenticationTypeEnum = {
|
|
3612
3634
|
None: "NONE",
|
|
3613
3635
|
ApiKey: "API_KEY",
|
|
@@ -3654,13 +3676,13 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3654
3676
|
Cron: "cron",
|
|
3655
3677
|
Date: "date"
|
|
3656
3678
|
};
|
|
3657
|
-
})),
|
|
3679
|
+
})), wt = /* @__PURE__ */ y(((e) => {
|
|
3658
3680
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3659
|
-
var t = (
|
|
3660
|
-
t.__exportStar(
|
|
3661
|
-
})),
|
|
3662
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), (
|
|
3663
|
-
})))(),
|
|
3681
|
+
var t = (H(), b(A));
|
|
3682
|
+
t.__exportStar(U(), e), t.__exportStar(St(), e), t.__exportStar(Ct(), e);
|
|
3683
|
+
})), Tt = (/* @__PURE__ */ y(((e) => {
|
|
3684
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), (H(), b(A)).__exportStar(wt(), e);
|
|
3685
|
+
})))(), W = 2 ** 53, Et = 75, G = new Intl.NumberFormat(void 0, {
|
|
3664
3686
|
notation: "compact",
|
|
3665
3687
|
maximumFractionDigits: 1
|
|
3666
3688
|
}), K = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), q = {
|
|
@@ -3702,13 +3724,13 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3702
3724
|
field: "monthCostStats",
|
|
3703
3725
|
labelKey: q.thisMonthPeriodDescription
|
|
3704
3726
|
}
|
|
3705
|
-
}, X = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), Z = (e) => e >= 100 ? w.LimitReached : e >=
|
|
3727
|
+
}, X = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), Z = (e) => e >= 100 ? w.LimitReached : e >= Et ? w.RunningLow : w.WithinLimits, Dt = (e) => {
|
|
3706
3728
|
if (!X(e)) return w.Unavailable;
|
|
3707
|
-
if (e.total >=
|
|
3729
|
+
if (e.total >= W) return w.NoLimit;
|
|
3708
3730
|
let t = Math.max(0, e.used), n = Math.max(0, e.total);
|
|
3709
3731
|
return Z(n > 0 ? t / n * 100 : 100);
|
|
3710
|
-
},
|
|
3711
|
-
let a = e?.[t.field], o =
|
|
3732
|
+
}, Ot = (e) => e === w.WithinLimits || e === w.RunningLow || e === w.LimitReached, Q = (e, t, n, r, i) => {
|
|
3733
|
+
let a = e?.[t.field], o = Dt(a), s = i(a?.resetsAt), c = r(t.labelKey).toLocaleLowerCase(n);
|
|
3712
3734
|
return {
|
|
3713
3735
|
status: o,
|
|
3714
3736
|
tooltipLabel: o === w.LimitReached ? r(q.overallCostLimitReachedTooltip, { period: c }) : o === w.RunningLow ? r(q.overallCostLimitRunningLowTooltip, { period: c }) : void 0,
|
|
@@ -3718,18 +3740,18 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3718
3740
|
resetAriaLabel: s.ariaLabel
|
|
3719
3741
|
} : {}
|
|
3720
3742
|
};
|
|
3721
|
-
},
|
|
3743
|
+
}, kt = () => void 0, At = (e, t, n, r = kt) => ({
|
|
3722
3744
|
day: Q(e, Y.day, t, n, r),
|
|
3723
3745
|
week: Q(e, Y.week, t, n, r),
|
|
3724
3746
|
month: Q(e, Y.month, t, n, r)
|
|
3725
|
-
}),
|
|
3747
|
+
}), jt = (e) => ({
|
|
3726
3748
|
kind: T.Unavailable,
|
|
3727
3749
|
ariaLabel: e(q.unavailableLabel)
|
|
3728
|
-
}),
|
|
3729
|
-
if (!X(e)) return
|
|
3730
|
-
let r = Math.max(0, e.used), i =
|
|
3731
|
-
if (e.total >=
|
|
3732
|
-
let e =
|
|
3750
|
+
}), Mt = (e, t, n) => {
|
|
3751
|
+
if (!X(e)) return jt(n);
|
|
3752
|
+
let r = Math.max(0, e.used), i = G.format(r);
|
|
3753
|
+
if (e.total >= W) {
|
|
3754
|
+
let e = Ot(t);
|
|
3733
3755
|
return {
|
|
3734
3756
|
kind: T.Unlimited,
|
|
3735
3757
|
usedLabel: i,
|
|
@@ -3737,7 +3759,7 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3737
3759
|
ariaLabel: n(e ? q.followsCostLimitAriaLabel : q.unlimitedProgressAriaLabel, { used: K.format(r) })
|
|
3738
3760
|
};
|
|
3739
3761
|
}
|
|
3740
|
-
let a = Math.max(e.total, 0), o =
|
|
3762
|
+
let a = Math.max(e.total, 0), o = G.format(a), s = a > 0 ? r / a * 100 : 100, c = Z(s);
|
|
3741
3763
|
return {
|
|
3742
3764
|
kind: T.Finite,
|
|
3743
3765
|
usedLabel: i,
|
|
@@ -3750,10 +3772,10 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3750
3772
|
percent: Math.round(s)
|
|
3751
3773
|
})
|
|
3752
3774
|
};
|
|
3753
|
-
},
|
|
3754
|
-
if (!X(e)) return
|
|
3775
|
+
}, Nt = (e, t) => {
|
|
3776
|
+
if (!X(e)) return jt(t);
|
|
3755
3777
|
let n = Math.max(0, e.used), r = t(q.spentLabel, { amount: i(n) });
|
|
3756
|
-
if (e.total >=
|
|
3778
|
+
if (e.total >= W) return {
|
|
3757
3779
|
kind: T.Unlimited,
|
|
3758
3780
|
usedLabel: r,
|
|
3759
3781
|
ariaLabel: r
|
|
@@ -3772,19 +3794,19 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3772
3794
|
})
|
|
3773
3795
|
};
|
|
3774
3796
|
}, $ = (e, t, n, r) => ({
|
|
3775
|
-
tokens:
|
|
3776
|
-
cost:
|
|
3777
|
-
}),
|
|
3797
|
+
tokens: Mt(e[t.tokens], n, r),
|
|
3798
|
+
cost: Nt(e[t.cost], r)
|
|
3799
|
+
}), Pt = (e) => e.filter((e) => e.kind === T.Finite).map((e) => e.status), Ft = (e, t, n) => {
|
|
3778
3800
|
let r = [
|
|
3779
|
-
...
|
|
3780
|
-
...
|
|
3801
|
+
...Pt(e),
|
|
3802
|
+
...Pt(t),
|
|
3781
3803
|
...n
|
|
3782
|
-
].filter((e) => e != null &&
|
|
3804
|
+
].filter((e) => e != null && Ot(e));
|
|
3783
3805
|
return r.includes(w.LimitReached) ? w.LimitReached : r.includes(w.RunningLow) ? w.RunningLow : r.includes(w.WithinLimits) ? w.WithinLimits : e.some((e) => e.kind === T.Unlimited) || n.includes(w.NoLimit) ? w.NoLimit : w.Unavailable;
|
|
3784
|
-
},
|
|
3806
|
+
}, It = (e) => e.some((e) => X(e) && e.used > 0), Lt = (e, t, n, r, i, a) => {
|
|
3785
3807
|
let o = e?.deployments;
|
|
3786
3808
|
if (o == null) return [];
|
|
3787
|
-
let s = new Map(t.filter((e) => e.type ===
|
|
3809
|
+
let s = new Map(t.filter((e) => e.type === Tt.DeploymentItemDtoTypeEnum.Model).map((e) => [e.id, e])), c = At(e, n, r);
|
|
3788
3810
|
return Object.keys(o).map((e) => {
|
|
3789
3811
|
let t = s.get(e), l = t == null ? e : a(t.displayName, n) || t.id, u = o[e], d = i(t?.iconUrl), f = $(u, J.day, c.day.status, r), p = $(u, J.week, c.week.status, r), m = $(u, J.month, c.month.status, r), h = Object.values(J).flatMap(({ cost: e, tokens: t }) => [u[e], u[t]]);
|
|
3790
3812
|
return {
|
|
@@ -3796,7 +3818,7 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3796
3818
|
day: f,
|
|
3797
3819
|
week: p,
|
|
3798
3820
|
month: m,
|
|
3799
|
-
status:
|
|
3821
|
+
status: Ft([
|
|
3800
3822
|
f.tokens,
|
|
3801
3823
|
p.tokens,
|
|
3802
3824
|
m.tokens
|
|
@@ -3810,9 +3832,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
|
|
|
3810
3832
|
c.month.status
|
|
3811
3833
|
])
|
|
3812
3834
|
},
|
|
3813
|
-
hasUsage:
|
|
3835
|
+
hasUsage: It(h)
|
|
3814
3836
|
};
|
|
3815
3837
|
}).filter(({ hasUsage: e }) => e).map(({ row: e }) => e);
|
|
3816
3838
|
};
|
|
3817
3839
|
//#endregion
|
|
3818
|
-
export { T as ModelLimitMetricKind, w as ModelLimitStatus,
|
|
3840
|
+
export { T as ModelLimitMetricKind, w as ModelLimitStatus, ye as ModelLimitsSection, x as USAGE_DASHBOARD_CLASS, k as USAGE_DATA_I18N_KEYS, q as USAGE_MODEL_LIMITS_I18N_KEYS, ie as UsageLimitCard, ae as UsageLimitCardGroup, S as UsageLimitStatus, At as mapOverallCostLimitsToPeriodStatuses, Ee as mapUsageDataToDashboard, Lt as mapUserUsageToModelLimits };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-usage-dashboard",
|
|
3
3
|
"description": "Presentational aggregate cost-limit cards for the Usage settings dashboard",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.61",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-chat-api-client": "1.2.0-dev.
|
|
21
|
+
"@epam/ai-dial-chat-api-client": "1.2.0-dev.61"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
25
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
24
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.61",
|
|
25
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.9",
|
|
26
26
|
"react": "^19.2.8"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|