@wayai/cli 0.3.370 → 0.3.372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +880 -719
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10648,127 +10648,565 @@ var init_chunk_LWMLR2WI = __esm({
|
|
|
10648
10648
|
}
|
|
10649
10649
|
});
|
|
10650
10650
|
|
|
10651
|
-
// ../../packages/core/dist/chunk-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10651
|
+
// ../../packages/core/dist/chunk-ZANBA4K4.js
|
|
10652
|
+
function isEventRelativeFollowupType(type) {
|
|
10653
|
+
return typeof type === "string" && EVENT_RELATIVE_FOLLOWUP_TYPES.includes(type);
|
|
10654
|
+
}
|
|
10655
|
+
function validateFollowupLinks(followups, label3, ctx) {
|
|
10656
|
+
const linkTargets = /* @__PURE__ */ new Set();
|
|
10657
|
+
followups.forEach((followup, i) => {
|
|
10658
|
+
const ref = followup?.after_followup_id;
|
|
10659
|
+
const path55 = ["followups", i, "after_followup_id"];
|
|
10660
|
+
if (followup?.type !== "inactivity_after_before_event") {
|
|
10661
|
+
if (ref !== void 0) {
|
|
10662
|
+
ctx.addIssue({
|
|
10663
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10664
|
+
path: path55,
|
|
10665
|
+
message: `kanban status ${label3}: after_followup_id is only valid on inactivity_after_before_event followups (this one is ${followup?.type})`
|
|
10666
|
+
});
|
|
10667
|
+
}
|
|
10668
|
+
return;
|
|
10669
|
+
}
|
|
10670
|
+
if (ref === void 0) {
|
|
10671
|
+
ctx.addIssue({
|
|
10672
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10673
|
+
path: path55,
|
|
10674
|
+
message: `kanban status ${label3}: inactivity_after_before_event requires after_followup_id naming the id of a before_event followup in the same status`
|
|
10675
|
+
});
|
|
10676
|
+
return;
|
|
10677
|
+
}
|
|
10678
|
+
linkTargets.add(ref);
|
|
10679
|
+
const matches = followups.filter((candidate) => candidate?.id === ref);
|
|
10680
|
+
if (matches.length > 1) {
|
|
10681
|
+
ctx.addIssue({
|
|
10682
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10683
|
+
path: path55,
|
|
10684
|
+
message: `kanban status ${label3}: after_followup_id "${ref}" matches ${matches.length} followups \u2014 a link must name exactly one`
|
|
10685
|
+
});
|
|
10686
|
+
return;
|
|
10687
|
+
}
|
|
10688
|
+
const target = matches[0];
|
|
10689
|
+
if (!target) {
|
|
10690
|
+
const hasIdlessBeforeEvent = followups.some(
|
|
10691
|
+
(candidate) => candidate?.type === "before_event" && candidate?.id === void 0
|
|
10692
|
+
);
|
|
10693
|
+
ctx.addIssue({
|
|
10694
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10695
|
+
path: path55,
|
|
10696
|
+
message: hasIdlessBeforeEvent ? `kanban status ${label3}: after_followup_id "${ref}" matches no followup \u2014 a link target must declare an explicit id, and this status has before_event followups without one` : `kanban status ${label3}: after_followup_id "${ref}" matches no followup in this status`
|
|
10697
|
+
});
|
|
10698
|
+
return;
|
|
10699
|
+
}
|
|
10700
|
+
if (target.type !== "before_event") {
|
|
10701
|
+
ctx.addIssue({
|
|
10702
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10703
|
+
path: path55,
|
|
10704
|
+
message: `kanban status ${label3}: after_followup_id "${ref}" points at a ${target.type} followup \u2014 only before_event followups can anchor a chain`
|
|
10705
|
+
});
|
|
10706
|
+
}
|
|
10707
|
+
});
|
|
10708
|
+
if (linkTargets.size > MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS) {
|
|
10709
|
+
ctx.addIssue({
|
|
10710
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10711
|
+
path: ["followups"],
|
|
10712
|
+
message: `kanban status ${label3}: at most ${MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS} distinct after_followup_id targets per status (found ${linkTargets.size}) \u2014 each one rebuilds a chain on every inbound message`
|
|
10665
10713
|
});
|
|
10666
10714
|
}
|
|
10667
|
-
}
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10715
|
+
}
|
|
10716
|
+
function printableName(value) {
|
|
10717
|
+
return typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? value : "<unnamed>";
|
|
10718
|
+
}
|
|
10719
|
+
function validateLaneReferences(lanes, statuses) {
|
|
10720
|
+
const issues = [];
|
|
10721
|
+
if (!Array.isArray(statuses) || statuses.length === 0) return issues;
|
|
10722
|
+
const declared = new Set((Array.isArray(lanes) ? lanes : []).map((l) => l.slug).filter(Boolean));
|
|
10723
|
+
statuses.forEach((s, i) => {
|
|
10724
|
+
if (s === null) return;
|
|
10725
|
+
const lane = s.lane_slug;
|
|
10726
|
+
if (typeof lane !== "string" || lane.length === 0) return;
|
|
10727
|
+
const label3 = s.slug ? `"${printableName(s.slug)}"` : `[${i}]`;
|
|
10728
|
+
if (s.isInitialStatus === true) {
|
|
10729
|
+
issues.push({
|
|
10730
|
+
path: [i, "lane_slug"],
|
|
10731
|
+
message: `kanban status ${label3}: the initial status cannot belong to a lane (it is the shared entry point)`
|
|
10732
|
+
});
|
|
10733
|
+
return;
|
|
10734
|
+
}
|
|
10735
|
+
if (!declared.has(lane)) {
|
|
10736
|
+
issues.push({
|
|
10737
|
+
path: [i, "lane_slug"],
|
|
10738
|
+
message: `kanban status ${label3}: lane_slug references unknown lane "${lane}"`
|
|
10739
|
+
});
|
|
10740
|
+
}
|
|
10741
|
+
});
|
|
10742
|
+
return issues;
|
|
10743
|
+
}
|
|
10744
|
+
var MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupTypeSchema, EVENT_RELATIVE_FOLLOWUP_TYPES, followupTimeUnitSchema, followupIdSchema, SELECTABLE_FOLLOWUP_TYPES, MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS, followupSchema, MAX_OUTCOMES_PER_STATUS, kanbanOutcomeSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema, kanbanLintWarningSchema;
|
|
10745
|
+
var init_chunk_ZANBA4K4 = __esm({
|
|
10746
|
+
"../../packages/core/dist/chunk-ZANBA4K4.js"() {
|
|
10673
10747
|
"use strict";
|
|
10674
10748
|
init_chunk_6TSQ5HXC();
|
|
10749
|
+
init_chunk_HZ6CADSY();
|
|
10675
10750
|
init_zod();
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10751
|
+
MAX_KANBAN_STATUSES = 50;
|
|
10752
|
+
MAX_FOLLOWUPS_PER_STATUS = 20;
|
|
10753
|
+
MAX_LANES = 20;
|
|
10754
|
+
MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES = 16384;
|
|
10755
|
+
RESERVED_TEMPLATE_DUMP_NAME = "additional_data";
|
|
10756
|
+
kanbanStatusSlugSchema = slugSchema;
|
|
10757
|
+
followupTypeSchema = external_exports.enum([
|
|
10758
|
+
"inactivity",
|
|
10759
|
+
"before_event",
|
|
10760
|
+
"inactivity_after_event",
|
|
10761
|
+
"inactivity_after_before_event"
|
|
10762
|
+
]);
|
|
10763
|
+
EVENT_RELATIVE_FOLLOWUP_TYPES = [
|
|
10764
|
+
"before_event",
|
|
10765
|
+
"inactivity_after_event",
|
|
10766
|
+
"inactivity_after_before_event"
|
|
10767
|
+
];
|
|
10768
|
+
followupTimeUnitSchema = external_exports.enum(["seconds", "minutes", "hours", "days"]);
|
|
10769
|
+
followupIdSchema = external_exports.string().min(1, "must not be empty").refine((v) => v === v.trim(), "must not have leading or trailing whitespace");
|
|
10770
|
+
SELECTABLE_FOLLOWUP_TYPES = followupTypeSchema.options;
|
|
10771
|
+
MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS = 5;
|
|
10772
|
+
followupSchema = external_exports.object({
|
|
10773
|
+
/** Optional author-supplied identifier; also the `after_followup_id` link target. */
|
|
10774
|
+
id: followupIdSchema.optional(),
|
|
10775
|
+
order: external_exports.number().int().nonnegative(),
|
|
10776
|
+
type: followupTypeSchema,
|
|
10777
|
+
threshold: external_exports.number().int().positive(),
|
|
10778
|
+
timeUnit: followupTimeUnitSchema,
|
|
10779
|
+
instructions: external_exports.string().optional(),
|
|
10780
|
+
excludedWeekDays: external_exports.array(external_exports.number().int().min(0).max(6)).optional(),
|
|
10781
|
+
excludeHolidays: external_exports.boolean().optional(),
|
|
10782
|
+
excludedTimeStart: external_exports.string().optional(),
|
|
10783
|
+
excludedTimeEnd: external_exports.string().optional(),
|
|
10784
|
+
delivery_mode: external_exports.enum(["agent_generated", "direct"]).optional(),
|
|
10785
|
+
direct_text: external_exports.string().optional(),
|
|
10786
|
+
template_whatsapp_id: external_exports.string().nullable().optional(),
|
|
10787
|
+
outside_window_policy: external_exports.enum(["route_to_team", "skip"]).optional(),
|
|
10788
|
+
include_tools: external_exports.boolean().optional(),
|
|
10680
10789
|
/**
|
|
10681
|
-
*
|
|
10682
|
-
*
|
|
10790
|
+
* The `before_event` followup whose fire anchors this chain — its `id`, in
|
|
10791
|
+
* the same status. One name, one meaning, contract and schedule column
|
|
10792
|
+
* alike: "the followup whose fire anchors this chain". Required on
|
|
10793
|
+
* `inactivity_after_before_event`, forbidden on every other type; both are
|
|
10794
|
+
* enforced per status, where the sibling followups are visible.
|
|
10683
10795
|
*/
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10796
|
+
after_followup_id: followupIdSchema.optional()
|
|
10797
|
+
}).passthrough().superRefine((followup, ctx) => {
|
|
10798
|
+
if (followup.delivery_mode === "direct" && !followup.direct_text?.trim()) {
|
|
10799
|
+
ctx.addIssue({
|
|
10800
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10801
|
+
path: ["direct_text"],
|
|
10802
|
+
message: 'direct_text is required and must be non-empty when delivery_mode="direct"'
|
|
10803
|
+
});
|
|
10804
|
+
}
|
|
10688
10805
|
});
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
"
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10806
|
+
MAX_OUTCOMES_PER_STATUS = 20;
|
|
10807
|
+
kanbanOutcomeSchema = external_exports.object({
|
|
10808
|
+
slug: kanbanStatusSlugSchema,
|
|
10809
|
+
name: external_exports.string().min(1, "name is required").max(100, "name must be 100 characters or fewer").refine((v) => visibleLength(v) > 0, "name must not be blank"),
|
|
10810
|
+
color: external_exports.string().optional(),
|
|
10811
|
+
/** Source status slugs that may select this outcome. Omission means any
|
|
10812
|
+
* source; an empty allowlist is invalid. Cross-references are validated by
|
|
10813
|
+
* `kanbanStatusesArraySchema`, which can see all sibling statuses. */
|
|
10814
|
+
from_statuses: external_exports.array(kanbanStatusSlugSchema).min(1, "from_statuses cannot be empty \u2014 omit it to allow any source status").optional()
|
|
10815
|
+
}).passthrough();
|
|
10816
|
+
EXCLUSIVE_FLAG_PAIRS = [
|
|
10817
|
+
["isInitialStatus", "triggersAgentResponse"],
|
|
10818
|
+
["isInitialStatus", "allowsAgentUpdate"],
|
|
10819
|
+
["isInitialStatus", "isTerminalStatus"],
|
|
10820
|
+
["isInitialStatus", "isSchedulingStatus"],
|
|
10821
|
+
["triggersAgentResponse", "allowsAgentUpdate"],
|
|
10822
|
+
["triggersAgentResponse", "isTerminalStatus"]
|
|
10823
|
+
];
|
|
10824
|
+
kanbanStatusSchema = external_exports.object({
|
|
10825
|
+
slug: kanbanStatusSlugSchema,
|
|
10826
|
+
name: external_exports.string().min(1, "name is required").max(100, "name must be 100 characters or fewer").refine((v) => visibleLength(v) > 0, "name must not be blank"),
|
|
10827
|
+
order: external_exports.number().int().nonnegative().optional(),
|
|
10828
|
+
color: external_exports.string().optional(),
|
|
10829
|
+
isInitialStatus: external_exports.boolean().optional(),
|
|
10830
|
+
triggersAgentResponse: external_exports.boolean().optional(),
|
|
10831
|
+
allowsAgentUpdate: external_exports.boolean().optional(),
|
|
10832
|
+
isTerminalStatus: external_exports.boolean().optional(),
|
|
10833
|
+
isSchedulingStatus: external_exports.boolean().optional(),
|
|
10834
|
+
eventName: external_exports.string().optional(),
|
|
10835
|
+
/** Minutes after the scheduled event date at which the conversation is
|
|
10836
|
+
* flagged `event_due` for the support team. Only meaningful on a
|
|
10837
|
+
* scheduling status (enforced in the superRefine below). 0 = flag at the
|
|
10838
|
+
* event's start instant. */
|
|
10839
|
+
event_due_delay_minutes: external_exports.number().int().nonnegative().optional(),
|
|
10840
|
+
additional_instructions: external_exports.string().optional(),
|
|
10841
|
+
additional_context_schema: external_exports.record(external_exports.unknown()).refine(
|
|
10842
|
+
(s) => withinJsonLength(s, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES),
|
|
10843
|
+
`additional_context_schema must be at most ${MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES} bytes when JSON-serialized`
|
|
10844
|
+
).optional(),
|
|
10845
|
+
followups: external_exports.array(followupSchema).max(MAX_FOLLOWUPS_PER_STATUS, `followups must have at most ${MAX_FOLLOWUPS_PER_STATUS} entries`).optional(),
|
|
10846
|
+
/** Slugs this status may transition to. `undefined` = unrestricted (any
|
|
10847
|
+
* next status). Empty array `[]` is rejected — author must use
|
|
10848
|
+
* `isTerminalStatus: true` to express "no outbound transitions". */
|
|
10849
|
+
allowed_next_statuses: external_exports.array(external_exports.string()).min(1, "allowed_next_statuses cannot be empty \u2014 use isTerminalStatus: true for no outbound transitions").optional(),
|
|
10850
|
+
/** Optional presentational grouping — the slug of a hub `lanes[]` entry this
|
|
10851
|
+
* status belongs to. `undefined` = ungrouped. Purely a board-filter/organization
|
|
10852
|
+
* concept; it does NOT constrain transitions (those live in `allowed_next_statuses`)
|
|
10853
|
+
* and is not exposed to agents. The cross-reference invariant (must point at a
|
|
10854
|
+
* declared lane; the initial status must not have one) is enforced at the hub
|
|
10855
|
+
* level via `validateLaneReferences` — this schema only sees the status array. */
|
|
10856
|
+
lane_slug: kanbanStatusSlugSchema.optional(),
|
|
10857
|
+
/** Closing outcomes offered on the terminal transition. Only valid when
|
|
10858
|
+
* `isTerminalStatus === true` (enforced in the superRefine below). */
|
|
10859
|
+
outcomes: external_exports.array(kanbanOutcomeSchema).max(MAX_OUTCOMES_PER_STATUS, `outcomes must have at most ${MAX_OUTCOMES_PER_STATUS} entries`).optional()
|
|
10860
|
+
}).passthrough().superRefine((status, ctx) => {
|
|
10861
|
+
const label3 = status.name ? `"${status.name}"` : status.slug ? `"${status.slug}"` : "<unnamed>";
|
|
10862
|
+
for (const [a, b] of EXCLUSIVE_FLAG_PAIRS) {
|
|
10863
|
+
if (status[a] === true && status[b] === true) {
|
|
10864
|
+
ctx.addIssue({
|
|
10865
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10866
|
+
path: [b],
|
|
10867
|
+
message: `kanban status ${label3}: ${a} and ${b} cannot both be true`
|
|
10868
|
+
});
|
|
10869
|
+
}
|
|
10870
|
+
}
|
|
10871
|
+
if (status.isSchedulingStatus === true && !status.eventName?.trim()) {
|
|
10872
|
+
ctx.addIssue({
|
|
10873
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10874
|
+
path: ["eventName"],
|
|
10875
|
+
message: `kanban status ${label3}: eventName is required when isSchedulingStatus=true`
|
|
10876
|
+
});
|
|
10877
|
+
}
|
|
10878
|
+
if (status.event_due_delay_minutes !== void 0 && status.isSchedulingStatus !== true) {
|
|
10879
|
+
ctx.addIssue({
|
|
10880
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10881
|
+
path: ["event_due_delay_minutes"],
|
|
10882
|
+
message: `kanban status ${label3}: event_due_delay_minutes requires isSchedulingStatus=true`
|
|
10883
|
+
});
|
|
10884
|
+
}
|
|
10885
|
+
if (Array.isArray(status.followups) && status.isSchedulingStatus !== true) {
|
|
10886
|
+
const offending = status.followups.find(
|
|
10887
|
+
(f) => isEventRelativeFollowupType(f?.type)
|
|
10888
|
+
);
|
|
10889
|
+
if (offending) {
|
|
10890
|
+
ctx.addIssue({
|
|
10891
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10892
|
+
path: ["followups"],
|
|
10893
|
+
message: `kanban status ${label3}: ${offending.type} followups require isSchedulingStatus=true on the parent status`
|
|
10894
|
+
});
|
|
10895
|
+
}
|
|
10896
|
+
}
|
|
10897
|
+
if (Array.isArray(status.followups)) {
|
|
10898
|
+
validateFollowupLinks(status.followups, label3, ctx);
|
|
10899
|
+
}
|
|
10900
|
+
if (status.additional_context_schema && typeof status.additional_context_schema === "object") {
|
|
10901
|
+
const schema = status.additional_context_schema;
|
|
10902
|
+
const props = schema.properties;
|
|
10903
|
+
if (props && typeof props === "object" && RESERVED_TEMPLATE_DUMP_NAME in props) {
|
|
10904
|
+
ctx.addIssue({
|
|
10905
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10906
|
+
path: ["additional_context_schema", "properties", RESERVED_TEMPLATE_DUMP_NAME],
|
|
10907
|
+
message: `kanban status ${label3}: "${RESERVED_TEMPLATE_DUMP_NAME}" is a reserved template placeholder name and cannot be used as a top-level schema property`
|
|
10908
|
+
});
|
|
10909
|
+
}
|
|
10910
|
+
}
|
|
10911
|
+
if (Array.isArray(status.outcomes) && status.outcomes.length > 0) {
|
|
10912
|
+
if (status.isTerminalStatus !== true) {
|
|
10913
|
+
ctx.addIssue({
|
|
10914
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10915
|
+
path: ["outcomes"],
|
|
10916
|
+
message: `kanban status ${label3}: outcomes are only allowed on the terminal status (set isTerminalStatus=true)`
|
|
10917
|
+
});
|
|
10918
|
+
}
|
|
10919
|
+
const seen = /* @__PURE__ */ new Map();
|
|
10920
|
+
status.outcomes.forEach((o, j) => {
|
|
10921
|
+
if (!o?.slug) return;
|
|
10922
|
+
const arr = seen.get(o.slug) ?? [];
|
|
10923
|
+
arr.push(j);
|
|
10924
|
+
seen.set(o.slug, arr);
|
|
10925
|
+
});
|
|
10926
|
+
for (const [slug, indices] of seen) {
|
|
10927
|
+
if (indices.length > 1) {
|
|
10928
|
+
for (const j of indices) {
|
|
10929
|
+
ctx.addIssue({
|
|
10930
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10931
|
+
path: ["outcomes", j, "slug"],
|
|
10932
|
+
message: `kanban status ${label3}: duplicate outcome slug "${slug}"`
|
|
10933
|
+
});
|
|
10934
|
+
}
|
|
10935
|
+
}
|
|
10936
|
+
}
|
|
10937
|
+
}
|
|
10938
|
+
});
|
|
10939
|
+
kanbanStatusesArraySchema = external_exports.array(kanbanStatusSchema).max(MAX_KANBAN_STATUSES, `kanban_statuses must have at most ${MAX_KANBAN_STATUSES} entries`).superRefine((statuses, ctx) => {
|
|
10940
|
+
if (statuses.length === 0) return;
|
|
10941
|
+
const initialIndices = statuses.map((s, i) => ({ s, i })).filter(({ s }) => s.isInitialStatus === true);
|
|
10942
|
+
if (initialIndices.length === 0) {
|
|
10943
|
+
ctx.addIssue({
|
|
10944
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10945
|
+
path: [],
|
|
10946
|
+
message: "kanban_statuses: exactly one status must have isInitialStatus=true (found 0)"
|
|
10947
|
+
});
|
|
10948
|
+
} else if (initialIndices.length > 1) {
|
|
10949
|
+
const slugs = initialIndices.map(({ s }) => s.slug).join(", ");
|
|
10950
|
+
for (const { i } of initialIndices) {
|
|
10951
|
+
ctx.addIssue({
|
|
10952
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10953
|
+
path: [i, "isInitialStatus"],
|
|
10954
|
+
message: `kanban_statuses: only one status may have isInitialStatus=true (found ${initialIndices.length}: ${slugs})`
|
|
10955
|
+
});
|
|
10956
|
+
}
|
|
10957
|
+
}
|
|
10958
|
+
const terminalIndices = statuses.map((s, i) => ({ s, i })).filter(({ s }) => s.isTerminalStatus === true);
|
|
10959
|
+
if (terminalIndices.length > 1) {
|
|
10960
|
+
const slugs = terminalIndices.map(({ s }) => s.slug).join(", ");
|
|
10961
|
+
for (const { i } of terminalIndices) {
|
|
10962
|
+
ctx.addIssue({
|
|
10963
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10964
|
+
path: [i, "isTerminalStatus"],
|
|
10965
|
+
message: `kanban_statuses: at most one status may have isTerminalStatus=true (found ${terminalIndices.length}: ${slugs})`
|
|
10966
|
+
});
|
|
10967
|
+
}
|
|
10968
|
+
}
|
|
10969
|
+
const seenSlugs = /* @__PURE__ */ new Map();
|
|
10970
|
+
statuses.forEach((s, i) => {
|
|
10971
|
+
const key = s.slug;
|
|
10972
|
+
if (!key) return;
|
|
10973
|
+
const arr = seenSlugs.get(key) ?? [];
|
|
10974
|
+
arr.push(i);
|
|
10975
|
+
seenSlugs.set(key, arr);
|
|
10976
|
+
});
|
|
10977
|
+
for (const [slug, indices] of seenSlugs) {
|
|
10978
|
+
if (indices.length > 1) {
|
|
10979
|
+
for (const i of indices) {
|
|
10980
|
+
ctx.addIssue({
|
|
10981
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10982
|
+
path: [i, "slug"],
|
|
10983
|
+
message: `kanban_statuses: duplicate slug "${slug}"`
|
|
10984
|
+
});
|
|
10985
|
+
}
|
|
10986
|
+
}
|
|
10987
|
+
}
|
|
10988
|
+
const validSlugs = new Set(statuses.map((s) => s.slug).filter(Boolean));
|
|
10989
|
+
statuses.forEach((s, i) => {
|
|
10990
|
+
if (!Array.isArray(s.allowed_next_statuses)) return;
|
|
10991
|
+
s.allowed_next_statuses.forEach((target, j) => {
|
|
10992
|
+
if (typeof target !== "string" || target.length === 0) return;
|
|
10993
|
+
if (!validSlugs.has(target)) {
|
|
10994
|
+
ctx.addIssue({
|
|
10995
|
+
code: external_exports.ZodIssueCode.custom,
|
|
10996
|
+
path: [i, "allowed_next_statuses", j],
|
|
10997
|
+
message: `kanban_statuses[${i}] (slug "${s.slug}"): allowed_next_statuses references unknown slug "${target}"`
|
|
10998
|
+
});
|
|
10999
|
+
}
|
|
11000
|
+
});
|
|
11001
|
+
});
|
|
11002
|
+
statuses.forEach((s, i) => {
|
|
11003
|
+
if (!Array.isArray(s.outcomes)) return;
|
|
11004
|
+
s.outcomes.forEach((outcome, outcomeIndex) => {
|
|
11005
|
+
if (!Array.isArray(outcome.from_statuses)) return;
|
|
11006
|
+
outcome.from_statuses.forEach((source, sourceIndex) => {
|
|
11007
|
+
if (!validSlugs.has(source)) {
|
|
11008
|
+
ctx.addIssue({
|
|
11009
|
+
code: external_exports.ZodIssueCode.custom,
|
|
11010
|
+
path: [i, "outcomes", outcomeIndex, "from_statuses", sourceIndex],
|
|
11011
|
+
message: `kanban_statuses[${i}] outcome "${outcome.slug}": from_statuses references unknown slug "${source}"`
|
|
11012
|
+
});
|
|
11013
|
+
} else if (source === s.slug) {
|
|
11014
|
+
ctx.addIssue({
|
|
11015
|
+
code: external_exports.ZodIssueCode.custom,
|
|
11016
|
+
path: [i, "outcomes", outcomeIndex, "from_statuses", sourceIndex],
|
|
11017
|
+
message: `kanban_statuses[${i}] outcome "${outcome.slug}": terminal status "${s.slug}" cannot be its own source`
|
|
11018
|
+
});
|
|
11019
|
+
}
|
|
11020
|
+
});
|
|
11021
|
+
});
|
|
11022
|
+
});
|
|
11023
|
+
});
|
|
11024
|
+
laneSchema = external_exports.object({
|
|
11025
|
+
slug: kanbanStatusSlugSchema,
|
|
11026
|
+
name: external_exports.string().min(1, "name is required").max(100, "name must be 100 characters or fewer").refine((v) => visibleLength(v) > 0, "name must not be blank"),
|
|
11027
|
+
color: external_exports.string().optional(),
|
|
11028
|
+
order: external_exports.number().int().nonnegative().optional()
|
|
11029
|
+
}).passthrough();
|
|
11030
|
+
lanesArraySchema = external_exports.array(laneSchema).max(MAX_LANES, `lanes must have at most ${MAX_LANES} entries`).superRefine((lanes, ctx) => {
|
|
11031
|
+
const seen = /* @__PURE__ */ new Map();
|
|
11032
|
+
lanes.forEach((l, i) => {
|
|
11033
|
+
if (!l.slug) return;
|
|
11034
|
+
const arr = seen.get(l.slug) ?? [];
|
|
11035
|
+
arr.push(i);
|
|
11036
|
+
seen.set(l.slug, arr);
|
|
11037
|
+
});
|
|
11038
|
+
for (const [slug, indices] of seen) {
|
|
11039
|
+
if (indices.length > 1) {
|
|
11040
|
+
for (const i of indices) {
|
|
11041
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [i, "slug"], message: `lanes: duplicate slug "${slug}"` });
|
|
11042
|
+
}
|
|
11043
|
+
}
|
|
11044
|
+
}
|
|
11045
|
+
});
|
|
11046
|
+
kanbanLintWarningSchema = external_exports.object({
|
|
11047
|
+
code: external_exports.enum([
|
|
11048
|
+
"unreachable",
|
|
11049
|
+
"placeholder_unresolved",
|
|
11050
|
+
"unused_lane",
|
|
11051
|
+
"no_eligible_outcome",
|
|
11052
|
+
"terminal_outcomes_all_restricted",
|
|
11053
|
+
"duplicate_followup_id"
|
|
11054
|
+
]),
|
|
11055
|
+
slug: external_exports.string(),
|
|
11056
|
+
name: external_exports.string(),
|
|
11057
|
+
message: external_exports.string()
|
|
11058
|
+
});
|
|
11059
|
+
}
|
|
11060
|
+
});
|
|
11061
|
+
|
|
11062
|
+
// ../../packages/core/dist/chunk-MMVZ65BL.js
|
|
11063
|
+
var listPendingSchedulesQuery, pendingScheduleEntry, listPendingSchedulesResponse, listHubAggregateSchedulesQuery;
|
|
11064
|
+
var init_chunk_MMVZ65BL = __esm({
|
|
11065
|
+
"../../packages/core/dist/chunk-MMVZ65BL.js"() {
|
|
11066
|
+
"use strict";
|
|
11067
|
+
init_chunk_ZANBA4K4();
|
|
11068
|
+
init_zod();
|
|
11069
|
+
listPendingSchedulesQuery = external_exports.object({
|
|
11070
|
+
hub_id: external_exports.string().uuid(),
|
|
11071
|
+
conversation_id: external_exports.string().uuid().optional(),
|
|
11072
|
+
user_id: external_exports.string().optional()
|
|
11073
|
+
});
|
|
11074
|
+
pendingScheduleEntry = external_exports.object({
|
|
11075
|
+
conversation_schedule_id: external_exports.string(),
|
|
11076
|
+
schedule_type: external_exports.string(),
|
|
11077
|
+
/** ISO-8601 UTC. */
|
|
11078
|
+
run_at: external_exports.string(),
|
|
11079
|
+
message_text: external_exports.string(),
|
|
11080
|
+
conversation_id: external_exports.string().nullable(),
|
|
11081
|
+
user_id: external_exports.string().nullable(),
|
|
11082
|
+
hub_id: external_exports.string(),
|
|
11083
|
+
hub_type: external_exports.string(),
|
|
11084
|
+
agent_id: external_exports.string().nullable(),
|
|
11085
|
+
receiver_type: external_exports.string(),
|
|
11086
|
+
followup_order: external_exports.number().nullable(),
|
|
11087
|
+
followup_source: external_exports.enum(["kanban", "default_open", "default_closed"]).nullable(),
|
|
11088
|
+
followup_type: followupTypeSchema.nullable(),
|
|
11089
|
+
end_conversation: external_exports.boolean(),
|
|
11090
|
+
sender_type: external_exports.string().nullable(),
|
|
11091
|
+
/** ISO-8601 UTC. */
|
|
11092
|
+
created_at: external_exports.string(),
|
|
11093
|
+
/** The row keeps no update time: the same value as `created_at`. */
|
|
11094
|
+
updated_at: external_exports.string()
|
|
11095
|
+
});
|
|
11096
|
+
listPendingSchedulesResponse = external_exports.object({
|
|
11097
|
+
entries: external_exports.array(pendingScheduleEntry),
|
|
11098
|
+
total: external_exports.number().int().nonnegative()
|
|
11099
|
+
});
|
|
11100
|
+
listHubAggregateSchedulesQuery = external_exports.object({
|
|
11101
|
+
hub_id: external_exports.string().uuid(),
|
|
11102
|
+
limit: external_exports.coerce.number().int().min(1).max(1e3).optional()
|
|
11103
|
+
});
|
|
11104
|
+
}
|
|
11105
|
+
});
|
|
11106
|
+
|
|
11107
|
+
// ../../packages/core/dist/chunk-MH4O3YEX.js
|
|
11108
|
+
var stateOperationBody;
|
|
11109
|
+
var init_chunk_MH4O3YEX = __esm({
|
|
11110
|
+
"../../packages/core/dist/chunk-MH4O3YEX.js"() {
|
|
11111
|
+
"use strict";
|
|
11112
|
+
init_chunk_6TSQ5HXC();
|
|
11113
|
+
init_zod();
|
|
11114
|
+
stateOperationBody = external_exports.object({
|
|
11115
|
+
hub_id: external_exports.string().uuid(),
|
|
11116
|
+
operation: external_exports.enum(["get", "update", "set_path", "reset"]),
|
|
11117
|
+
state_slug: slugSchema,
|
|
11118
|
+
/**
|
|
11119
|
+
* Deprecated and ignored. Scope is derived from the hub's state definition.
|
|
11120
|
+
* Kept on the schema so legacy bodies still validate.
|
|
11121
|
+
*/
|
|
11122
|
+
state_scope: external_exports.enum(["conversation", "user"]).optional(),
|
|
11123
|
+
updates: external_exports.record(external_exports.unknown()).optional(),
|
|
11124
|
+
path: external_exports.array(external_exports.string()).optional(),
|
|
11125
|
+
value: external_exports.unknown().optional()
|
|
11126
|
+
});
|
|
11127
|
+
}
|
|
11128
|
+
});
|
|
11129
|
+
|
|
11130
|
+
// ../../packages/core/dist/chunk-IBL7FANV.js
|
|
11131
|
+
var SUMMARIZATION_THRESHOLD_MIN, SUMMARIZATION_THRESHOLD_MAX;
|
|
11132
|
+
var init_chunk_IBL7FANV = __esm({
|
|
11133
|
+
"../../packages/core/dist/chunk-IBL7FANV.js"() {
|
|
11134
|
+
"use strict";
|
|
11135
|
+
SUMMARIZATION_THRESHOLD_MIN = 1e3;
|
|
11136
|
+
SUMMARIZATION_THRESHOLD_MAX = 1e6;
|
|
11137
|
+
}
|
|
11138
|
+
});
|
|
11139
|
+
|
|
11140
|
+
// ../../packages/core/dist/chunk-JP7XIMUA.js
|
|
11141
|
+
function isNativeToolName(name) {
|
|
11142
|
+
return NATIVE_TOOL_NAMES.has(name);
|
|
11143
|
+
}
|
|
11144
|
+
function catalogToolSideEffects(toolName) {
|
|
11145
|
+
const sideEffects = CATALOG_SIDE_EFFECTS.get(toolName);
|
|
11146
|
+
if (sideEffects === void 0) return "unknown";
|
|
11147
|
+
return sideEffects ? "side_effects" : "none";
|
|
11148
|
+
}
|
|
11149
|
+
function idempotencyHeaderRefusal(value) {
|
|
11150
|
+
if (typeof value !== "string" || !/^[A-Za-z0-9][A-Za-z0-9-]{0,63}$/.test(value)) {
|
|
11151
|
+
return "idempotency_header must be a header name: letters, digits and dashes, at most 64";
|
|
11152
|
+
}
|
|
11153
|
+
if (RESERVED_HEADERS.has(value.toLowerCase())) {
|
|
11154
|
+
return `idempotency_header cannot be ${value}: the platform sets that header`;
|
|
11155
|
+
}
|
|
11156
|
+
return null;
|
|
11157
|
+
}
|
|
11158
|
+
var NATIVE_TOOL_SCHEMAS, WAYAI_CONNECTOR, SANDBOX_AGENT_ROLES, BASE_NATIVE_TOOLS, NATIVE_TOOLS, NATIVE_TOOL_NAMES, CATALOG_SIDE_EFFECTS, CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
|
|
11159
|
+
var init_chunk_JP7XIMUA = __esm({
|
|
11160
|
+
"../../packages/core/dist/chunk-JP7XIMUA.js"() {
|
|
11161
|
+
"use strict";
|
|
11162
|
+
init_chunk_ZTNFLGW5();
|
|
11163
|
+
NATIVE_TOOL_SCHEMAS = {
|
|
11164
|
+
"close_conversation": {
|
|
11165
|
+
"tool_config": {
|
|
11166
|
+
"name": "close_conversation",
|
|
11167
|
+
"description": "Closes the current conversation and marks it as resolved",
|
|
11168
|
+
// Non-strict, mirroring the `update_kanban_status` sibling below: under strict
|
|
11169
|
+
// mode there are no optional fields, so `outcome` outside `required` makes the
|
|
11170
|
+
// provider reject the definition and `outcome` inside `required` forces the
|
|
11171
|
+
// model to emit it on every call. Requiredness is enforced SERVER-side instead
|
|
11172
|
+
// (ops `outcomeRequired`) — and it must stay out of `required` here, or
|
|
11173
|
+
// validateAndSanitizeToolParams would refuse the "retry without an outcome"
|
|
11174
|
+
// recovery path a re-close depends on.
|
|
11175
|
+
"strict": false,
|
|
11176
|
+
"parameters": {
|
|
11177
|
+
"type": "object",
|
|
11178
|
+
"properties": {
|
|
11179
|
+
"outcome": {
|
|
11180
|
+
"type": "string",
|
|
11181
|
+
"enum": "[KANBAN_OUTCOME_VALUES]",
|
|
11182
|
+
"description": "Required only when the hub's terminal (conversation-ending) status declares outcomes: the closing outcome. Available outcomes: [KANBAN_OUTCOME_NAMES]"
|
|
11183
|
+
}
|
|
11184
|
+
},
|
|
11185
|
+
"required": [],
|
|
11186
|
+
"additionalProperties": false
|
|
11187
|
+
}
|
|
11188
|
+
},
|
|
11189
|
+
"tool_instructions": "Use when the user's issue has been fully resolved."
|
|
11190
|
+
},
|
|
11191
|
+
"transfer_to_team": {
|
|
11192
|
+
"tool_config": {
|
|
11193
|
+
"name": "transfer_to_team",
|
|
11194
|
+
"description": "Hand off conversation to a human support team",
|
|
11195
|
+
"strict": true,
|
|
11196
|
+
"parameters": {
|
|
11197
|
+
"type": "object",
|
|
11198
|
+
"properties": {
|
|
11199
|
+
"team_name": {
|
|
11200
|
+
"type": "string",
|
|
11201
|
+
"description": "Name of the team to transfer to"
|
|
11202
|
+
}
|
|
11203
|
+
},
|
|
11204
|
+
"required": [
|
|
11205
|
+
"team_name"
|
|
11206
|
+
],
|
|
11207
|
+
"additionalProperties": false
|
|
11208
|
+
}
|
|
11209
|
+
},
|
|
10772
11210
|
"tool_instructions": "Use when the user needs assistance that requires human intervention. The team will receive the full conversation history."
|
|
10773
11211
|
},
|
|
10774
11212
|
"delegate_to_hub": {
|
|
@@ -12546,10 +12984,10 @@ var init_chunk_3JKCOY5P = __esm({
|
|
|
12546
12984
|
}
|
|
12547
12985
|
});
|
|
12548
12986
|
|
|
12549
|
-
// ../../packages/core/dist/chunk-
|
|
12550
|
-
var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
|
|
12551
|
-
var
|
|
12552
|
-
"../../packages/core/dist/chunk-
|
|
12987
|
+
// ../../packages/core/dist/chunk-TCGHUG76.js
|
|
12988
|
+
var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, annotateConversationResponse, observabilitySystemInstructionPartSchema, observabilityMessagePartSchema, observabilityInputMessageSchema, observabilityOutputMessageSchema, observabilityToolDefinitionSchema, otelObservabilityRecordSchema, providerRoutingMetadataSchema, wayaiMetadataRecordSchema, llmObservabilityRecordSchema, observabilityResponse, observabilityListResponse, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, sendMessageResponse, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
|
|
12989
|
+
var init_chunk_TCGHUG76 = __esm({
|
|
12990
|
+
"../../packages/core/dist/chunk-TCGHUG76.js"() {
|
|
12553
12991
|
"use strict";
|
|
12554
12992
|
init_chunk_3JKCOY5P();
|
|
12555
12993
|
init_chunk_HZ6CADSY();
|
|
@@ -12658,7 +13096,116 @@ var init_chunk_HLYZCZLV = __esm({
|
|
|
12658
13096
|
conversationId: external_exports.string().uuid(),
|
|
12659
13097
|
messageId: external_exports.string().uuid()
|
|
12660
13098
|
});
|
|
12661
|
-
observabilityListParams = observabilityParams.pick({ conversationId: true });
|
|
13099
|
+
observabilityListParams = observabilityParams.pick({ conversationId: true });
|
|
13100
|
+
annotateConversationResponse = external_exports.object({
|
|
13101
|
+
success: external_exports.literal(true),
|
|
13102
|
+
operation_type: external_exports.literal("set_annotation"),
|
|
13103
|
+
conversation_id: external_exports.string().uuid(),
|
|
13104
|
+
key: external_exports.string()
|
|
13105
|
+
});
|
|
13106
|
+
observabilitySystemInstructionPartSchema = external_exports.object({
|
|
13107
|
+
type: external_exports.literal("text"),
|
|
13108
|
+
content: external_exports.string()
|
|
13109
|
+
});
|
|
13110
|
+
observabilityMessagePartSchema = external_exports.discriminatedUnion("type", [
|
|
13111
|
+
external_exports.object({ type: external_exports.literal("text"), content: external_exports.string() }),
|
|
13112
|
+
external_exports.object({
|
|
13113
|
+
type: external_exports.literal("tool_call"),
|
|
13114
|
+
id: external_exports.string(),
|
|
13115
|
+
name: external_exports.string(),
|
|
13116
|
+
/** The call's arguments as parsed; an argument string that is not a JSON object is kept as `{ _raw_invalid_json }`. */
|
|
13117
|
+
arguments: external_exports.record(external_exports.unknown())
|
|
13118
|
+
}),
|
|
13119
|
+
/** `result` is the tool's output as stored: JSON-string layers peeled, so any JSON value or plain text. */
|
|
13120
|
+
external_exports.object({ type: external_exports.literal("tool_call_response"), id: external_exports.string(), result: external_exports.unknown() })
|
|
13121
|
+
]);
|
|
13122
|
+
observabilityInputMessageSchema = external_exports.object({
|
|
13123
|
+
role: external_exports.enum(["user", "assistant", "tool", "system"]),
|
|
13124
|
+
parts: external_exports.array(observabilityMessagePartSchema)
|
|
13125
|
+
});
|
|
13126
|
+
observabilityOutputMessageSchema = external_exports.object({
|
|
13127
|
+
role: external_exports.literal("assistant"),
|
|
13128
|
+
parts: external_exports.array(observabilityMessagePartSchema),
|
|
13129
|
+
finish_reason: external_exports.string().optional()
|
|
13130
|
+
});
|
|
13131
|
+
observabilityToolDefinitionSchema = external_exports.object({
|
|
13132
|
+
type: external_exports.literal("function"),
|
|
13133
|
+
name: external_exports.string(),
|
|
13134
|
+
description: external_exports.string(),
|
|
13135
|
+
parameters: external_exports.record(external_exports.unknown())
|
|
13136
|
+
});
|
|
13137
|
+
otelObservabilityRecordSchema = external_exports.object({
|
|
13138
|
+
/** The provider (e.g. "anthropic", "openai", "google"). */
|
|
13139
|
+
"gen_ai.system": external_exports.string(),
|
|
13140
|
+
/** The model requested. */
|
|
13141
|
+
"gen_ai.request.model": external_exports.string(),
|
|
13142
|
+
"gen_ai.request.max_tokens": external_exports.number().optional(),
|
|
13143
|
+
"gen_ai.request.temperature": external_exports.number().optional(),
|
|
13144
|
+
"gen_ai.request.top_p": external_exports.number().optional(),
|
|
13145
|
+
/** The provider's response/message id. */
|
|
13146
|
+
"gen_ai.response.id": external_exports.string().optional(),
|
|
13147
|
+
/** The model that answered, when the provider router names it (may differ from the one requested). */
|
|
13148
|
+
"gen_ai.response.model": external_exports.string().optional(),
|
|
13149
|
+
"gen_ai.usage.input_tokens": external_exports.number(),
|
|
13150
|
+
"gen_ai.usage.output_tokens": external_exports.number(),
|
|
13151
|
+
"gen_ai.usage.cache_read_input_tokens": external_exports.number().optional(),
|
|
13152
|
+
/**
|
|
13153
|
+
* The cache-read count under its old key: written from #1453 until #1924 (2026-04-10 to
|
|
13154
|
+
* 04-28) renamed it `cache_read_input_tokens`, with no backfill. No writer sets it today; an
|
|
13155
|
+
* archived record of that window still answers it.
|
|
13156
|
+
*/
|
|
13157
|
+
"gen_ai.usage.cached_input_tokens": external_exports.number().optional(),
|
|
13158
|
+
"gen_ai.usage.cache_creation_input_tokens": external_exports.number().optional(),
|
|
13159
|
+
/** System prompts, apart from the chat history. */
|
|
13160
|
+
"gen_ai.system_instructions": external_exports.array(observabilitySystemInstructionPartSchema).optional(),
|
|
13161
|
+
"gen_ai.input.messages": external_exports.array(observabilityInputMessageSchema),
|
|
13162
|
+
"gen_ai.output.messages": external_exports.array(observabilityOutputMessageSchema),
|
|
13163
|
+
"gen_ai.tool.definitions": external_exports.array(observabilityToolDefinitionSchema).optional()
|
|
13164
|
+
});
|
|
13165
|
+
providerRoutingMetadataSchema = external_exports.object({
|
|
13166
|
+
provider: external_exports.string().optional(),
|
|
13167
|
+
model: external_exports.string().optional(),
|
|
13168
|
+
region: external_exports.string().optional(),
|
|
13169
|
+
strategy: external_exports.string().optional(),
|
|
13170
|
+
attempt: external_exports.number().optional()
|
|
13171
|
+
});
|
|
13172
|
+
wayaiMetadataRecordSchema = external_exports.object({
|
|
13173
|
+
/** ISO-8601 time of the completion. */
|
|
13174
|
+
timestamp: external_exports.string(),
|
|
13175
|
+
/** Total latency in milliseconds. */
|
|
13176
|
+
latency_ms: external_exports.number(),
|
|
13177
|
+
hub_id: external_exports.string(),
|
|
13178
|
+
conversation_id: external_exports.string(),
|
|
13179
|
+
/** The assistant message the completion created. */
|
|
13180
|
+
message_id: external_exports.string(),
|
|
13181
|
+
agent_id: external_exports.string().optional(),
|
|
13182
|
+
/** The agent's role (e.g. "Assistant", "Support"). */
|
|
13183
|
+
agent_role: external_exports.string().optional(),
|
|
13184
|
+
/** Tool execution iterations. */
|
|
13185
|
+
tool_iterations: external_exports.number().optional(),
|
|
13186
|
+
/** Tool calls executed in all. */
|
|
13187
|
+
tool_calls_total: external_exports.number().optional(),
|
|
13188
|
+
/** Whether this was a system reinvoke. */
|
|
13189
|
+
system_reinvoke: external_exports.boolean().optional(),
|
|
13190
|
+
/** The error message, when the completion failed. */
|
|
13191
|
+
error: external_exports.string().optional(),
|
|
13192
|
+
provider_routing: providerRoutingMetadataSchema.optional()
|
|
13193
|
+
});
|
|
13194
|
+
llmObservabilityRecordSchema = external_exports.object({
|
|
13195
|
+
observability: otelObservabilityRecordSchema,
|
|
13196
|
+
metadata: wayaiMetadataRecordSchema
|
|
13197
|
+
});
|
|
13198
|
+
observabilityResponse = external_exports.object({
|
|
13199
|
+
data: llmObservabilityRecordSchema
|
|
13200
|
+
});
|
|
13201
|
+
observabilityListResponse = external_exports.object({
|
|
13202
|
+
data: external_exports.object({
|
|
13203
|
+
hub_id: external_exports.string().uuid(),
|
|
13204
|
+
conversation_id: external_exports.string().uuid(),
|
|
13205
|
+
entries: external_exports.array(wayaiMetadataRecordSchema),
|
|
13206
|
+
truncated: external_exports.boolean()
|
|
13207
|
+
})
|
|
13208
|
+
});
|
|
12662
13209
|
deleteUserConversationsBody = external_exports.discriminatedUnion("mode", [
|
|
12663
13210
|
external_exports.object({
|
|
12664
13211
|
hub_id: external_exports.string().uuid(),
|
|
@@ -12715,6 +13262,31 @@ var init_chunk_HLYZCZLV = __esm({
|
|
|
12715
13262
|
(b) => (b.message?.length ?? 0) > 0 || (b.attachments?.length ?? 0) > 0,
|
|
12716
13263
|
{ message: "message or attachments required" }
|
|
12717
13264
|
);
|
|
13265
|
+
sendMessageResponse = external_exports.object({
|
|
13266
|
+
conversation_id: external_exports.string().uuid(),
|
|
13267
|
+
hub_type: external_exports.enum(["chat", "task"]),
|
|
13268
|
+
user_message_id: external_exports.string().uuid(),
|
|
13269
|
+
agent_reply: external_exports.object({
|
|
13270
|
+
message_id: external_exports.string(),
|
|
13271
|
+
message_text: external_exports.string()
|
|
13272
|
+
}).nullable(),
|
|
13273
|
+
/**
|
|
13274
|
+
* - `replied` — agent produced a reply (in `agent_reply`), or its turn continues
|
|
13275
|
+
* asynchronously (`agent_reply` null; the reply arrives out-of-band).
|
|
13276
|
+
* - `skipped` — AI mode off / responder is team without copilot (no reply expected).
|
|
13277
|
+
* - `empty_response` — turn completed but produced no text; do NOT retry.
|
|
13278
|
+
* - `error` — genuine failure; the user message was stored, but no reply is coming.
|
|
13279
|
+
* - `processing` — the turn is running/continuing asynchronously (a retryable
|
|
13280
|
+
* provider error rescheduled it, or it crossed the synchronous wall-clock cap
|
|
13281
|
+
* while still progressing). The reply arrives out-of-band via live-update /
|
|
13282
|
+
* on re-poll once the DO turn completes — clients should wait/poll, NOT retry.
|
|
13283
|
+
* - `quota_exceeded` — the org's operations quota is exhausted; the turn was
|
|
13284
|
+
* refused (not an error). No reply is coming until quota resets/upgrades.
|
|
13285
|
+
*/
|
|
13286
|
+
status: external_exports.enum(["replied", "skipped", "error", "empty_response", "processing", "quota_exceeded"]),
|
|
13287
|
+
/** Why, with every status but `replied`. */
|
|
13288
|
+
status_reason: external_exports.string().optional()
|
|
13289
|
+
});
|
|
12718
13290
|
listConversationsQuery = external_exports.object({
|
|
12719
13291
|
hub_id: external_exports.string().uuid(),
|
|
12720
13292
|
status: external_exports.enum(["agent", "team", "ended"]).optional(),
|
|
@@ -15015,590 +15587,179 @@ var init_chunk_BFG4ZWR4 = __esm({
|
|
|
15015
15587
|
mobileVersionPolicyQuery = external_exports.object({
|
|
15016
15588
|
platform: mobilePlatformSchema
|
|
15017
15589
|
});
|
|
15018
|
-
mobileVersionPolicySchema = external_exports.object({
|
|
15019
|
-
/** An install below this version is blocked, and sent to the store to update. */
|
|
15020
|
-
minimum_version: mobileAppVersionSchema,
|
|
15021
|
-
/** An install below this version is asked to update, and may dismiss the prompt. */
|
|
15022
|
-
recommended_version: mobileAppVersionSchema
|
|
15023
|
-
});
|
|
15024
|
-
mobileVersionPolicyResponse = external_exports.object({
|
|
15025
|
-
data: mobileVersionPolicySchema
|
|
15026
|
-
});
|
|
15027
|
-
}
|
|
15028
|
-
});
|
|
15029
|
-
|
|
15030
|
-
// ../../packages/core/dist/chunk-UY32MQHG.js
|
|
15031
|
-
var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
|
|
15032
|
-
var init_chunk_UY32MQHG = __esm({
|
|
15033
|
-
"../../packages/core/dist/chunk-UY32MQHG.js"() {
|
|
15034
|
-
"use strict";
|
|
15035
|
-
init_zod();
|
|
15036
|
-
dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
|
|
15037
|
-
DEBUG_READ_MAX_LIMIT = 100;
|
|
15038
|
-
DEBUG_READ_DEFAULT_LIMIT = 20;
|
|
15039
|
-
}
|
|
15040
|
-
});
|
|
15041
|
-
|
|
15042
|
-
// ../../packages/core/dist/chunk-AZOWABU5.js
|
|
15043
|
-
var billingOrgIdParam, subscriptionItemParams, planKeySchema, billingStatusSchema, paidTierSchema, spendCapBody, growthPacksBody, portalSessionBody, checkoutSessionBody, changeTierBody, updateBillingCurrencyBody, invoicesQuery, billingPlanTypeSchema, dataUsageCountersSchema, REKOR_ENTITLEMENT_CONTRACT_VERSION, entitlementProjectionSchema, rekorEntitlementRefreshMessageSchema;
|
|
15044
|
-
var init_chunk_AZOWABU5 = __esm({
|
|
15045
|
-
"../../packages/core/dist/chunk-AZOWABU5.js"() {
|
|
15046
|
-
"use strict";
|
|
15047
|
-
init_zod();
|
|
15048
|
-
billingOrgIdParam = external_exports.object({
|
|
15049
|
-
organizationId: external_exports.string().uuid()
|
|
15050
|
-
});
|
|
15051
|
-
subscriptionItemParams = external_exports.object({
|
|
15052
|
-
organizationId: external_exports.string().uuid(),
|
|
15053
|
-
itemId: external_exports.string()
|
|
15054
|
-
});
|
|
15055
|
-
planKeySchema = external_exports.enum(["free", "solo", "team"]);
|
|
15056
|
-
billingStatusSchema = external_exports.enum(["active", "past_due", "cancelled"]);
|
|
15057
|
-
paidTierSchema = planKeySchema.exclude(["free"]);
|
|
15058
|
-
spendCapBody = external_exports.object({
|
|
15059
|
-
enabled: external_exports.boolean()
|
|
15060
|
-
});
|
|
15061
|
-
growthPacksBody = external_exports.object({
|
|
15062
|
-
quantity: external_exports.number().int().min(1).max(100).default(1)
|
|
15063
|
-
});
|
|
15064
|
-
portalSessionBody = external_exports.object({
|
|
15065
|
-
return_url: external_exports.string().url().optional()
|
|
15066
|
-
});
|
|
15067
|
-
checkoutSessionBody = external_exports.object({
|
|
15068
|
-
tier: paidTierSchema
|
|
15069
|
-
});
|
|
15070
|
-
changeTierBody = external_exports.object({
|
|
15071
|
-
tier: paidTierSchema
|
|
15072
|
-
});
|
|
15073
|
-
updateBillingCurrencyBody = external_exports.object({
|
|
15074
|
-
currency: external_exports.enum(["USD", "BRL"])
|
|
15075
|
-
});
|
|
15076
|
-
invoicesQuery = external_exports.object({
|
|
15077
|
-
limit: external_exports.string().regex(/^\d+$/).optional()
|
|
15078
|
-
});
|
|
15079
|
-
billingPlanTypeSchema = external_exports.enum(["free", "paid", "comped"]);
|
|
15080
|
-
dataUsageCountersSchema = external_exports.object({
|
|
15081
|
-
ops_tenths_this_month: external_exports.number().nonnegative(),
|
|
15082
|
-
records_count: external_exports.number().nonnegative(),
|
|
15083
|
-
month_key: external_exports.string(),
|
|
15084
|
-
// The closed window's meter reading (the prior-window snapshot). OPTIONAL for the same
|
|
15085
|
-
// reason this object is not `.strict()`: the producer deploys on its own cadence, and a
|
|
15086
|
-
// required field would fail the parse for every counter on any producer build that predates
|
|
15087
|
-
// it — turning an additive wire change into an outage of the gauge above. Absence and a
|
|
15088
|
-
// non-matching key are the SAME outcome for a reader (do not bill), so
|
|
15089
|
-
// nothing is lost by tolerating it.
|
|
15090
|
-
prior_window_key: external_exports.string().optional(),
|
|
15091
|
-
prior_window_ops_tenths: external_exports.number().nonnegative().optional()
|
|
15092
|
-
});
|
|
15093
|
-
REKOR_ENTITLEMENT_CONTRACT_VERSION = 1;
|
|
15094
|
-
entitlementProjectionSchema = external_exports.object({
|
|
15095
|
-
contract_version: external_exports.literal(REKOR_ENTITLEMENT_CONTRACT_VERSION),
|
|
15096
|
-
/**
|
|
15097
|
-
* Monotonic per org, WayAI-assigned. An ordering guard for concurrent WayAI
|
|
15098
|
-
* writers (a plan change racing a token mint) — NOT a cross-repo CAS. Gaps are
|
|
15099
|
-
* expected: a version is allocated per push attempt, and an idempotency skip
|
|
15100
|
-
* burns none while a failed KV put burns one.
|
|
15101
|
-
*/
|
|
15102
|
-
projection_version: external_exports.number().int().nonnegative(),
|
|
15103
|
-
/** Diagnostic only — never gates. Freshness is `window_resets_at`'s job. */
|
|
15104
|
-
written_at: external_exports.string().datetime(),
|
|
15105
|
-
/** The WayAI org UUID. The `account_id` spelling is Rekor's documented carve-out. */
|
|
15106
|
-
account_id: external_exports.string().uuid(),
|
|
15107
|
-
/** The EFFECTIVE plan, not the subscribed one. Never gates. */
|
|
15108
|
-
plan_key: planKeySchema,
|
|
15109
|
-
/** Informational only. `cancelled` spelling matches `BillingRecord`. */
|
|
15110
|
-
billing_status: billingStatusSchema,
|
|
15111
|
-
/** Tenths, matching Rekor's meter granularity (write 10, point-read 1, list/SQL 10). */
|
|
15112
|
-
ops_tenths_included: external_exports.number().int().nonnegative(),
|
|
15113
|
-
max_records: external_exports.number().int().nonnegative(),
|
|
15114
|
-
/** Its own field, no longer derived from `max_records`. */
|
|
15115
|
-
import_rows_included: external_exports.number().int().nonnegative(),
|
|
15116
|
-
/** REQUIRED — absence is malformed, never coerced to `false`. */
|
|
15117
|
-
production_bases: external_exports.boolean(),
|
|
15118
|
-
/** Opaque to Rekor; compared for equality only, to reset `usage:` counters. */
|
|
15119
|
-
window_key: external_exports.string().min(1),
|
|
15120
|
-
/**
|
|
15121
|
-
* The window's TRUE lower bound, for the reconcile's `operations_log` sum.
|
|
15122
|
-
*
|
|
15123
|
-
* OPTIONAL, and that is not a rollout convenience — it is what "never gates" means
|
|
15124
|
-
* on the writer's side. The tier sources can be absent (a paid row carrying
|
|
15125
|
-
* `current_period_end` with no `current_period_start`) and inverted pairs are a
|
|
15126
|
-
* diagnostic, so requiring it here would let an inert field throw the strict
|
|
15127
|
-
* parse and leave the org with NO projection — permanently stale, with the
|
|
15128
|
-
* fail-closed gates refusing base creation and 503-ing every import. The
|
|
15129
|
-
* writer emits it whenever it has a sound value and omits it otherwise; Rekor's
|
|
15130
|
-
* observed-flip fallback covers the gap, and rollout step 3 keeps that fallback
|
|
15131
|
-
* for exactly this reason.
|
|
15132
|
-
*/
|
|
15133
|
-
window_start: external_exports.string().datetime().optional(),
|
|
15134
|
-
/** The sole staleness authority. Never triggers a counter reset. */
|
|
15135
|
-
window_resets_at: external_exports.string().datetime()
|
|
15136
|
-
}).strict();
|
|
15137
|
-
rekorEntitlementRefreshMessageSchema = external_exports.object({
|
|
15138
|
-
org_id: external_exports.string().uuid(),
|
|
15139
|
-
reason: external_exports.enum(["window_elapsed", "projection_missing", "projection_malformed"])
|
|
15140
|
-
});
|
|
15141
|
-
}
|
|
15142
|
-
});
|
|
15143
|
-
|
|
15144
|
-
// ../../packages/core/dist/chunk-D3EP4TDU.js
|
|
15145
|
-
var primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody;
|
|
15146
|
-
var init_chunk_D3EP4TDU = __esm({
|
|
15147
|
-
"../../packages/core/dist/chunk-D3EP4TDU.js"() {
|
|
15148
|
-
"use strict";
|
|
15149
|
-
init_chunk_HZ6CADSY();
|
|
15150
|
-
init_zod();
|
|
15151
|
-
primaryRegionSchema = external_exports.enum([
|
|
15152
|
-
"wnam",
|
|
15153
|
-
"enam",
|
|
15154
|
-
"sam",
|
|
15155
|
-
"weur",
|
|
15156
|
-
"eeur",
|
|
15157
|
-
"apac",
|
|
15158
|
-
"oc",
|
|
15159
|
-
"afr",
|
|
15160
|
-
"me"
|
|
15161
|
-
]);
|
|
15162
|
-
placementSourceSchema = external_exports.enum([
|
|
15163
|
-
"hub_config",
|
|
15164
|
-
"org_config",
|
|
15165
|
-
"parent_cascade",
|
|
15166
|
-
"cf_colo",
|
|
15167
|
-
"country",
|
|
15168
|
-
"fallback",
|
|
15169
|
-
"unpinned"
|
|
15170
|
-
]);
|
|
15171
|
-
orgIdParam = external_exports.object({
|
|
15172
|
-
id: uuidSchema
|
|
15173
|
-
});
|
|
15174
|
-
orgAdminIdParam = external_exports.object({
|
|
15175
|
-
id: uuidSchema,
|
|
15176
|
-
adminId: external_exports.string().min(1)
|
|
15177
|
-
});
|
|
15178
|
-
createOrganizationBody = external_exports.object({
|
|
15179
|
-
organization_name: external_exports.string().min(1, "organization_name is required"),
|
|
15180
|
-
// Write-once at creation; updateOrganizationBody does not accept this.
|
|
15181
|
-
primary_region: primaryRegionSchema.optional()
|
|
15182
|
-
});
|
|
15183
|
-
updateOrganizationBody = external_exports.object({
|
|
15184
|
-
organization_name: external_exports.string().min(1).optional(),
|
|
15185
|
-
organization_avatar_url: external_exports.string().url().nullable().optional(),
|
|
15186
|
-
timezone: external_exports.string().optional(),
|
|
15187
|
-
business_hours: external_exports.unknown().optional()
|
|
15188
|
-
}).passthrough();
|
|
15189
|
-
addOrgAdminBody = external_exports.object({
|
|
15190
|
-
user_email: external_exports.string().email("valid email is required")
|
|
15191
|
-
});
|
|
15192
|
-
}
|
|
15193
|
-
});
|
|
15194
|
-
|
|
15195
|
-
// ../../packages/core/dist/chunk-ZANBA4K4.js
|
|
15196
|
-
function isEventRelativeFollowupType(type) {
|
|
15197
|
-
return typeof type === "string" && EVENT_RELATIVE_FOLLOWUP_TYPES.includes(type);
|
|
15198
|
-
}
|
|
15199
|
-
function validateFollowupLinks(followups, label3, ctx) {
|
|
15200
|
-
const linkTargets = /* @__PURE__ */ new Set();
|
|
15201
|
-
followups.forEach((followup, i) => {
|
|
15202
|
-
const ref = followup?.after_followup_id;
|
|
15203
|
-
const path55 = ["followups", i, "after_followup_id"];
|
|
15204
|
-
if (followup?.type !== "inactivity_after_before_event") {
|
|
15205
|
-
if (ref !== void 0) {
|
|
15206
|
-
ctx.addIssue({
|
|
15207
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15208
|
-
path: path55,
|
|
15209
|
-
message: `kanban status ${label3}: after_followup_id is only valid on inactivity_after_before_event followups (this one is ${followup?.type})`
|
|
15210
|
-
});
|
|
15211
|
-
}
|
|
15212
|
-
return;
|
|
15213
|
-
}
|
|
15214
|
-
if (ref === void 0) {
|
|
15215
|
-
ctx.addIssue({
|
|
15216
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15217
|
-
path: path55,
|
|
15218
|
-
message: `kanban status ${label3}: inactivity_after_before_event requires after_followup_id naming the id of a before_event followup in the same status`
|
|
15219
|
-
});
|
|
15220
|
-
return;
|
|
15221
|
-
}
|
|
15222
|
-
linkTargets.add(ref);
|
|
15223
|
-
const matches = followups.filter((candidate) => candidate?.id === ref);
|
|
15224
|
-
if (matches.length > 1) {
|
|
15225
|
-
ctx.addIssue({
|
|
15226
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15227
|
-
path: path55,
|
|
15228
|
-
message: `kanban status ${label3}: after_followup_id "${ref}" matches ${matches.length} followups \u2014 a link must name exactly one`
|
|
15229
|
-
});
|
|
15230
|
-
return;
|
|
15231
|
-
}
|
|
15232
|
-
const target = matches[0];
|
|
15233
|
-
if (!target) {
|
|
15234
|
-
const hasIdlessBeforeEvent = followups.some(
|
|
15235
|
-
(candidate) => candidate?.type === "before_event" && candidate?.id === void 0
|
|
15236
|
-
);
|
|
15237
|
-
ctx.addIssue({
|
|
15238
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15239
|
-
path: path55,
|
|
15240
|
-
message: hasIdlessBeforeEvent ? `kanban status ${label3}: after_followup_id "${ref}" matches no followup \u2014 a link target must declare an explicit id, and this status has before_event followups without one` : `kanban status ${label3}: after_followup_id "${ref}" matches no followup in this status`
|
|
15241
|
-
});
|
|
15242
|
-
return;
|
|
15243
|
-
}
|
|
15244
|
-
if (target.type !== "before_event") {
|
|
15245
|
-
ctx.addIssue({
|
|
15246
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15247
|
-
path: path55,
|
|
15248
|
-
message: `kanban status ${label3}: after_followup_id "${ref}" points at a ${target.type} followup \u2014 only before_event followups can anchor a chain`
|
|
15249
|
-
});
|
|
15250
|
-
}
|
|
15251
|
-
});
|
|
15252
|
-
if (linkTargets.size > MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS) {
|
|
15253
|
-
ctx.addIssue({
|
|
15254
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15255
|
-
path: ["followups"],
|
|
15256
|
-
message: `kanban status ${label3}: at most ${MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS} distinct after_followup_id targets per status (found ${linkTargets.size}) \u2014 each one rebuilds a chain on every inbound message`
|
|
15590
|
+
mobileVersionPolicySchema = external_exports.object({
|
|
15591
|
+
/** An install below this version is blocked, and sent to the store to update. */
|
|
15592
|
+
minimum_version: mobileAppVersionSchema,
|
|
15593
|
+
/** An install below this version is asked to update, and may dismiss the prompt. */
|
|
15594
|
+
recommended_version: mobileAppVersionSchema
|
|
15595
|
+
});
|
|
15596
|
+
mobileVersionPolicyResponse = external_exports.object({
|
|
15597
|
+
data: mobileVersionPolicySchema
|
|
15257
15598
|
});
|
|
15258
15599
|
}
|
|
15259
|
-
}
|
|
15260
|
-
|
|
15261
|
-
|
|
15262
|
-
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
if (!Array.isArray(statuses) || statuses.length === 0) return issues;
|
|
15266
|
-
const declared = new Set((Array.isArray(lanes) ? lanes : []).map((l) => l.slug).filter(Boolean));
|
|
15267
|
-
statuses.forEach((s, i) => {
|
|
15268
|
-
if (s === null) return;
|
|
15269
|
-
const lane = s.lane_slug;
|
|
15270
|
-
if (typeof lane !== "string" || lane.length === 0) return;
|
|
15271
|
-
const label3 = s.slug ? `"${printableName(s.slug)}"` : `[${i}]`;
|
|
15272
|
-
if (s.isInitialStatus === true) {
|
|
15273
|
-
issues.push({
|
|
15274
|
-
path: [i, "lane_slug"],
|
|
15275
|
-
message: `kanban status ${label3}: the initial status cannot belong to a lane (it is the shared entry point)`
|
|
15276
|
-
});
|
|
15277
|
-
return;
|
|
15278
|
-
}
|
|
15279
|
-
if (!declared.has(lane)) {
|
|
15280
|
-
issues.push({
|
|
15281
|
-
path: [i, "lane_slug"],
|
|
15282
|
-
message: `kanban status ${label3}: lane_slug references unknown lane "${lane}"`
|
|
15283
|
-
});
|
|
15284
|
-
}
|
|
15285
|
-
});
|
|
15286
|
-
return issues;
|
|
15287
|
-
}
|
|
15288
|
-
var MAX_KANBAN_STATUSES, MAX_FOLLOWUPS_PER_STATUS, MAX_LANES, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES, RESERVED_TEMPLATE_DUMP_NAME, kanbanStatusSlugSchema, followupTypeSchema, EVENT_RELATIVE_FOLLOWUP_TYPES, followupTimeUnitSchema, followupIdSchema, SELECTABLE_FOLLOWUP_TYPES, MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS, followupSchema, MAX_OUTCOMES_PER_STATUS, kanbanOutcomeSchema, EXCLUSIVE_FLAG_PAIRS, kanbanStatusSchema, kanbanStatusesArraySchema, laneSchema, lanesArraySchema, kanbanLintWarningSchema;
|
|
15289
|
-
var init_chunk_ZANBA4K4 = __esm({
|
|
15290
|
-
"../../packages/core/dist/chunk-ZANBA4K4.js"() {
|
|
15600
|
+
});
|
|
15601
|
+
|
|
15602
|
+
// ../../packages/core/dist/chunk-UY32MQHG.js
|
|
15603
|
+
var dataExplorerDebugDoType, DEBUG_READ_MAX_LIMIT, DEBUG_READ_DEFAULT_LIMIT;
|
|
15604
|
+
var init_chunk_UY32MQHG = __esm({
|
|
15605
|
+
"../../packages/core/dist/chunk-UY32MQHG.js"() {
|
|
15291
15606
|
"use strict";
|
|
15292
|
-
init_chunk_6TSQ5HXC();
|
|
15293
|
-
init_chunk_HZ6CADSY();
|
|
15294
15607
|
init_zod();
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
"inactivity_after_event",
|
|
15310
|
-
"inactivity_after_before_event"
|
|
15311
|
-
];
|
|
15312
|
-
followupTimeUnitSchema = external_exports.enum(["seconds", "minutes", "hours", "days"]);
|
|
15313
|
-
followupIdSchema = external_exports.string().min(1, "must not be empty").refine((v) => v === v.trim(), "must not have leading or trailing whitespace");
|
|
15314
|
-
SELECTABLE_FOLLOWUP_TYPES = followupTypeSchema.options;
|
|
15315
|
-
MAX_LINKED_FOLLOWUP_TARGETS_PER_STATUS = 5;
|
|
15316
|
-
followupSchema = external_exports.object({
|
|
15317
|
-
/** Optional author-supplied identifier; also the `after_followup_id` link target. */
|
|
15318
|
-
id: followupIdSchema.optional(),
|
|
15319
|
-
order: external_exports.number().int().nonnegative(),
|
|
15320
|
-
type: followupTypeSchema,
|
|
15321
|
-
threshold: external_exports.number().int().positive(),
|
|
15322
|
-
timeUnit: followupTimeUnitSchema,
|
|
15323
|
-
instructions: external_exports.string().optional(),
|
|
15324
|
-
excludedWeekDays: external_exports.array(external_exports.number().int().min(0).max(6)).optional(),
|
|
15325
|
-
excludeHolidays: external_exports.boolean().optional(),
|
|
15326
|
-
excludedTimeStart: external_exports.string().optional(),
|
|
15327
|
-
excludedTimeEnd: external_exports.string().optional(),
|
|
15328
|
-
delivery_mode: external_exports.enum(["agent_generated", "direct"]).optional(),
|
|
15329
|
-
direct_text: external_exports.string().optional(),
|
|
15330
|
-
template_whatsapp_id: external_exports.string().nullable().optional(),
|
|
15331
|
-
outside_window_policy: external_exports.enum(["route_to_team", "skip"]).optional(),
|
|
15332
|
-
include_tools: external_exports.boolean().optional(),
|
|
15333
|
-
/**
|
|
15334
|
-
* The `before_event` followup whose fire anchors this chain — its `id`, in
|
|
15335
|
-
* the same status. One name, one meaning, contract and schedule column
|
|
15336
|
-
* alike: "the followup whose fire anchors this chain". Required on
|
|
15337
|
-
* `inactivity_after_before_event`, forbidden on every other type; both are
|
|
15338
|
-
* enforced per status, where the sibling followups are visible.
|
|
15339
|
-
*/
|
|
15340
|
-
after_followup_id: followupIdSchema.optional()
|
|
15341
|
-
}).passthrough().superRefine((followup, ctx) => {
|
|
15342
|
-
if (followup.delivery_mode === "direct" && !followup.direct_text?.trim()) {
|
|
15343
|
-
ctx.addIssue({
|
|
15344
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15345
|
-
path: ["direct_text"],
|
|
15346
|
-
message: 'direct_text is required and must be non-empty when delivery_mode="direct"'
|
|
15347
|
-
});
|
|
15348
|
-
}
|
|
15608
|
+
dataExplorerDebugDoType = external_exports.enum(["hub", "org", "conversation", "user", "platform", "thread", "community", "contact_book", "batch"]);
|
|
15609
|
+
DEBUG_READ_MAX_LIMIT = 100;
|
|
15610
|
+
DEBUG_READ_DEFAULT_LIMIT = 20;
|
|
15611
|
+
}
|
|
15612
|
+
});
|
|
15613
|
+
|
|
15614
|
+
// ../../packages/core/dist/chunk-AZOWABU5.js
|
|
15615
|
+
var billingOrgIdParam, subscriptionItemParams, planKeySchema, billingStatusSchema, paidTierSchema, spendCapBody, growthPacksBody, portalSessionBody, checkoutSessionBody, changeTierBody, updateBillingCurrencyBody, invoicesQuery, billingPlanTypeSchema, dataUsageCountersSchema, REKOR_ENTITLEMENT_CONTRACT_VERSION, entitlementProjectionSchema, rekorEntitlementRefreshMessageSchema;
|
|
15616
|
+
var init_chunk_AZOWABU5 = __esm({
|
|
15617
|
+
"../../packages/core/dist/chunk-AZOWABU5.js"() {
|
|
15618
|
+
"use strict";
|
|
15619
|
+
init_zod();
|
|
15620
|
+
billingOrgIdParam = external_exports.object({
|
|
15621
|
+
organizationId: external_exports.string().uuid()
|
|
15349
15622
|
});
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
}).passthrough();
|
|
15360
|
-
EXCLUSIVE_FLAG_PAIRS = [
|
|
15361
|
-
["isInitialStatus", "triggersAgentResponse"],
|
|
15362
|
-
["isInitialStatus", "allowsAgentUpdate"],
|
|
15363
|
-
["isInitialStatus", "isTerminalStatus"],
|
|
15364
|
-
["isInitialStatus", "isSchedulingStatus"],
|
|
15365
|
-
["triggersAgentResponse", "allowsAgentUpdate"],
|
|
15366
|
-
["triggersAgentResponse", "isTerminalStatus"]
|
|
15367
|
-
];
|
|
15368
|
-
kanbanStatusSchema = external_exports.object({
|
|
15369
|
-
slug: kanbanStatusSlugSchema,
|
|
15370
|
-
name: external_exports.string().min(1, "name is required").max(100, "name must be 100 characters or fewer").refine((v) => visibleLength(v) > 0, "name must not be blank"),
|
|
15371
|
-
order: external_exports.number().int().nonnegative().optional(),
|
|
15372
|
-
color: external_exports.string().optional(),
|
|
15373
|
-
isInitialStatus: external_exports.boolean().optional(),
|
|
15374
|
-
triggersAgentResponse: external_exports.boolean().optional(),
|
|
15375
|
-
allowsAgentUpdate: external_exports.boolean().optional(),
|
|
15376
|
-
isTerminalStatus: external_exports.boolean().optional(),
|
|
15377
|
-
isSchedulingStatus: external_exports.boolean().optional(),
|
|
15378
|
-
eventName: external_exports.string().optional(),
|
|
15379
|
-
/** Minutes after the scheduled event date at which the conversation is
|
|
15380
|
-
* flagged `event_due` for the support team. Only meaningful on a
|
|
15381
|
-
* scheduling status (enforced in the superRefine below). 0 = flag at the
|
|
15382
|
-
* event's start instant. */
|
|
15383
|
-
event_due_delay_minutes: external_exports.number().int().nonnegative().optional(),
|
|
15384
|
-
additional_instructions: external_exports.string().optional(),
|
|
15385
|
-
additional_context_schema: external_exports.record(external_exports.unknown()).refine(
|
|
15386
|
-
(s) => withinJsonLength(s, MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES),
|
|
15387
|
-
`additional_context_schema must be at most ${MAX_ADDITIONAL_CONTEXT_SCHEMA_BYTES} bytes when JSON-serialized`
|
|
15388
|
-
).optional(),
|
|
15389
|
-
followups: external_exports.array(followupSchema).max(MAX_FOLLOWUPS_PER_STATUS, `followups must have at most ${MAX_FOLLOWUPS_PER_STATUS} entries`).optional(),
|
|
15390
|
-
/** Slugs this status may transition to. `undefined` = unrestricted (any
|
|
15391
|
-
* next status). Empty array `[]` is rejected — author must use
|
|
15392
|
-
* `isTerminalStatus: true` to express "no outbound transitions". */
|
|
15393
|
-
allowed_next_statuses: external_exports.array(external_exports.string()).min(1, "allowed_next_statuses cannot be empty \u2014 use isTerminalStatus: true for no outbound transitions").optional(),
|
|
15394
|
-
/** Optional presentational grouping — the slug of a hub `lanes[]` entry this
|
|
15395
|
-
* status belongs to. `undefined` = ungrouped. Purely a board-filter/organization
|
|
15396
|
-
* concept; it does NOT constrain transitions (those live in `allowed_next_statuses`)
|
|
15397
|
-
* and is not exposed to agents. The cross-reference invariant (must point at a
|
|
15398
|
-
* declared lane; the initial status must not have one) is enforced at the hub
|
|
15399
|
-
* level via `validateLaneReferences` — this schema only sees the status array. */
|
|
15400
|
-
lane_slug: kanbanStatusSlugSchema.optional(),
|
|
15401
|
-
/** Closing outcomes offered on the terminal transition. Only valid when
|
|
15402
|
-
* `isTerminalStatus === true` (enforced in the superRefine below). */
|
|
15403
|
-
outcomes: external_exports.array(kanbanOutcomeSchema).max(MAX_OUTCOMES_PER_STATUS, `outcomes must have at most ${MAX_OUTCOMES_PER_STATUS} entries`).optional()
|
|
15404
|
-
}).passthrough().superRefine((status, ctx) => {
|
|
15405
|
-
const label3 = status.name ? `"${status.name}"` : status.slug ? `"${status.slug}"` : "<unnamed>";
|
|
15406
|
-
for (const [a, b] of EXCLUSIVE_FLAG_PAIRS) {
|
|
15407
|
-
if (status[a] === true && status[b] === true) {
|
|
15408
|
-
ctx.addIssue({
|
|
15409
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15410
|
-
path: [b],
|
|
15411
|
-
message: `kanban status ${label3}: ${a} and ${b} cannot both be true`
|
|
15412
|
-
});
|
|
15413
|
-
}
|
|
15414
|
-
}
|
|
15415
|
-
if (status.isSchedulingStatus === true && !status.eventName?.trim()) {
|
|
15416
|
-
ctx.addIssue({
|
|
15417
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15418
|
-
path: ["eventName"],
|
|
15419
|
-
message: `kanban status ${label3}: eventName is required when isSchedulingStatus=true`
|
|
15420
|
-
});
|
|
15421
|
-
}
|
|
15422
|
-
if (status.event_due_delay_minutes !== void 0 && status.isSchedulingStatus !== true) {
|
|
15423
|
-
ctx.addIssue({
|
|
15424
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15425
|
-
path: ["event_due_delay_minutes"],
|
|
15426
|
-
message: `kanban status ${label3}: event_due_delay_minutes requires isSchedulingStatus=true`
|
|
15427
|
-
});
|
|
15428
|
-
}
|
|
15429
|
-
if (Array.isArray(status.followups) && status.isSchedulingStatus !== true) {
|
|
15430
|
-
const offending = status.followups.find(
|
|
15431
|
-
(f) => isEventRelativeFollowupType(f?.type)
|
|
15432
|
-
);
|
|
15433
|
-
if (offending) {
|
|
15434
|
-
ctx.addIssue({
|
|
15435
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15436
|
-
path: ["followups"],
|
|
15437
|
-
message: `kanban status ${label3}: ${offending.type} followups require isSchedulingStatus=true on the parent status`
|
|
15438
|
-
});
|
|
15439
|
-
}
|
|
15440
|
-
}
|
|
15441
|
-
if (Array.isArray(status.followups)) {
|
|
15442
|
-
validateFollowupLinks(status.followups, label3, ctx);
|
|
15443
|
-
}
|
|
15444
|
-
if (status.additional_context_schema && typeof status.additional_context_schema === "object") {
|
|
15445
|
-
const schema = status.additional_context_schema;
|
|
15446
|
-
const props = schema.properties;
|
|
15447
|
-
if (props && typeof props === "object" && RESERVED_TEMPLATE_DUMP_NAME in props) {
|
|
15448
|
-
ctx.addIssue({
|
|
15449
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15450
|
-
path: ["additional_context_schema", "properties", RESERVED_TEMPLATE_DUMP_NAME],
|
|
15451
|
-
message: `kanban status ${label3}: "${RESERVED_TEMPLATE_DUMP_NAME}" is a reserved template placeholder name and cannot be used as a top-level schema property`
|
|
15452
|
-
});
|
|
15453
|
-
}
|
|
15454
|
-
}
|
|
15455
|
-
if (Array.isArray(status.outcomes) && status.outcomes.length > 0) {
|
|
15456
|
-
if (status.isTerminalStatus !== true) {
|
|
15457
|
-
ctx.addIssue({
|
|
15458
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15459
|
-
path: ["outcomes"],
|
|
15460
|
-
message: `kanban status ${label3}: outcomes are only allowed on the terminal status (set isTerminalStatus=true)`
|
|
15461
|
-
});
|
|
15462
|
-
}
|
|
15463
|
-
const seen = /* @__PURE__ */ new Map();
|
|
15464
|
-
status.outcomes.forEach((o, j) => {
|
|
15465
|
-
if (!o?.slug) return;
|
|
15466
|
-
const arr = seen.get(o.slug) ?? [];
|
|
15467
|
-
arr.push(j);
|
|
15468
|
-
seen.set(o.slug, arr);
|
|
15469
|
-
});
|
|
15470
|
-
for (const [slug, indices] of seen) {
|
|
15471
|
-
if (indices.length > 1) {
|
|
15472
|
-
for (const j of indices) {
|
|
15473
|
-
ctx.addIssue({
|
|
15474
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15475
|
-
path: ["outcomes", j, "slug"],
|
|
15476
|
-
message: `kanban status ${label3}: duplicate outcome slug "${slug}"`
|
|
15477
|
-
});
|
|
15478
|
-
}
|
|
15479
|
-
}
|
|
15480
|
-
}
|
|
15481
|
-
}
|
|
15623
|
+
subscriptionItemParams = external_exports.object({
|
|
15624
|
+
organizationId: external_exports.string().uuid(),
|
|
15625
|
+
itemId: external_exports.string()
|
|
15626
|
+
});
|
|
15627
|
+
planKeySchema = external_exports.enum(["free", "solo", "team"]);
|
|
15628
|
+
billingStatusSchema = external_exports.enum(["active", "past_due", "cancelled"]);
|
|
15629
|
+
paidTierSchema = planKeySchema.exclude(["free"]);
|
|
15630
|
+
spendCapBody = external_exports.object({
|
|
15631
|
+
enabled: external_exports.boolean()
|
|
15482
15632
|
});
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
const initialIndices = statuses.map((s, i) => ({ s, i })).filter(({ s }) => s.isInitialStatus === true);
|
|
15486
|
-
if (initialIndices.length === 0) {
|
|
15487
|
-
ctx.addIssue({
|
|
15488
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15489
|
-
path: [],
|
|
15490
|
-
message: "kanban_statuses: exactly one status must have isInitialStatus=true (found 0)"
|
|
15491
|
-
});
|
|
15492
|
-
} else if (initialIndices.length > 1) {
|
|
15493
|
-
const slugs = initialIndices.map(({ s }) => s.slug).join(", ");
|
|
15494
|
-
for (const { i } of initialIndices) {
|
|
15495
|
-
ctx.addIssue({
|
|
15496
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15497
|
-
path: [i, "isInitialStatus"],
|
|
15498
|
-
message: `kanban_statuses: only one status may have isInitialStatus=true (found ${initialIndices.length}: ${slugs})`
|
|
15499
|
-
});
|
|
15500
|
-
}
|
|
15501
|
-
}
|
|
15502
|
-
const terminalIndices = statuses.map((s, i) => ({ s, i })).filter(({ s }) => s.isTerminalStatus === true);
|
|
15503
|
-
if (terminalIndices.length > 1) {
|
|
15504
|
-
const slugs = terminalIndices.map(({ s }) => s.slug).join(", ");
|
|
15505
|
-
for (const { i } of terminalIndices) {
|
|
15506
|
-
ctx.addIssue({
|
|
15507
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15508
|
-
path: [i, "isTerminalStatus"],
|
|
15509
|
-
message: `kanban_statuses: at most one status may have isTerminalStatus=true (found ${terminalIndices.length}: ${slugs})`
|
|
15510
|
-
});
|
|
15511
|
-
}
|
|
15512
|
-
}
|
|
15513
|
-
const seenSlugs = /* @__PURE__ */ new Map();
|
|
15514
|
-
statuses.forEach((s, i) => {
|
|
15515
|
-
const key = s.slug;
|
|
15516
|
-
if (!key) return;
|
|
15517
|
-
const arr = seenSlugs.get(key) ?? [];
|
|
15518
|
-
arr.push(i);
|
|
15519
|
-
seenSlugs.set(key, arr);
|
|
15520
|
-
});
|
|
15521
|
-
for (const [slug, indices] of seenSlugs) {
|
|
15522
|
-
if (indices.length > 1) {
|
|
15523
|
-
for (const i of indices) {
|
|
15524
|
-
ctx.addIssue({
|
|
15525
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15526
|
-
path: [i, "slug"],
|
|
15527
|
-
message: `kanban_statuses: duplicate slug "${slug}"`
|
|
15528
|
-
});
|
|
15529
|
-
}
|
|
15530
|
-
}
|
|
15531
|
-
}
|
|
15532
|
-
const validSlugs = new Set(statuses.map((s) => s.slug).filter(Boolean));
|
|
15533
|
-
statuses.forEach((s, i) => {
|
|
15534
|
-
if (!Array.isArray(s.allowed_next_statuses)) return;
|
|
15535
|
-
s.allowed_next_statuses.forEach((target, j) => {
|
|
15536
|
-
if (typeof target !== "string" || target.length === 0) return;
|
|
15537
|
-
if (!validSlugs.has(target)) {
|
|
15538
|
-
ctx.addIssue({
|
|
15539
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15540
|
-
path: [i, "allowed_next_statuses", j],
|
|
15541
|
-
message: `kanban_statuses[${i}] (slug "${s.slug}"): allowed_next_statuses references unknown slug "${target}"`
|
|
15542
|
-
});
|
|
15543
|
-
}
|
|
15544
|
-
});
|
|
15545
|
-
});
|
|
15546
|
-
statuses.forEach((s, i) => {
|
|
15547
|
-
if (!Array.isArray(s.outcomes)) return;
|
|
15548
|
-
s.outcomes.forEach((outcome, outcomeIndex) => {
|
|
15549
|
-
if (!Array.isArray(outcome.from_statuses)) return;
|
|
15550
|
-
outcome.from_statuses.forEach((source, sourceIndex) => {
|
|
15551
|
-
if (!validSlugs.has(source)) {
|
|
15552
|
-
ctx.addIssue({
|
|
15553
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15554
|
-
path: [i, "outcomes", outcomeIndex, "from_statuses", sourceIndex],
|
|
15555
|
-
message: `kanban_statuses[${i}] outcome "${outcome.slug}": from_statuses references unknown slug "${source}"`
|
|
15556
|
-
});
|
|
15557
|
-
} else if (source === s.slug) {
|
|
15558
|
-
ctx.addIssue({
|
|
15559
|
-
code: external_exports.ZodIssueCode.custom,
|
|
15560
|
-
path: [i, "outcomes", outcomeIndex, "from_statuses", sourceIndex],
|
|
15561
|
-
message: `kanban_statuses[${i}] outcome "${outcome.slug}": terminal status "${s.slug}" cannot be its own source`
|
|
15562
|
-
});
|
|
15563
|
-
}
|
|
15564
|
-
});
|
|
15565
|
-
});
|
|
15566
|
-
});
|
|
15633
|
+
growthPacksBody = external_exports.object({
|
|
15634
|
+
quantity: external_exports.number().int().min(1).max(100).default(1)
|
|
15567
15635
|
});
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
name: external_exports.string().min(1, "name is required").max(100, "name must be 100 characters or fewer").refine((v) => visibleLength(v) > 0, "name must not be blank"),
|
|
15571
|
-
color: external_exports.string().optional(),
|
|
15572
|
-
order: external_exports.number().int().nonnegative().optional()
|
|
15573
|
-
}).passthrough();
|
|
15574
|
-
lanesArraySchema = external_exports.array(laneSchema).max(MAX_LANES, `lanes must have at most ${MAX_LANES} entries`).superRefine((lanes, ctx) => {
|
|
15575
|
-
const seen = /* @__PURE__ */ new Map();
|
|
15576
|
-
lanes.forEach((l, i) => {
|
|
15577
|
-
if (!l.slug) return;
|
|
15578
|
-
const arr = seen.get(l.slug) ?? [];
|
|
15579
|
-
arr.push(i);
|
|
15580
|
-
seen.set(l.slug, arr);
|
|
15581
|
-
});
|
|
15582
|
-
for (const [slug, indices] of seen) {
|
|
15583
|
-
if (indices.length > 1) {
|
|
15584
|
-
for (const i of indices) {
|
|
15585
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [i, "slug"], message: `lanes: duplicate slug "${slug}"` });
|
|
15586
|
-
}
|
|
15587
|
-
}
|
|
15588
|
-
}
|
|
15636
|
+
portalSessionBody = external_exports.object({
|
|
15637
|
+
return_url: external_exports.string().url().optional()
|
|
15589
15638
|
});
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15600
|
-
|
|
15601
|
-
|
|
15639
|
+
checkoutSessionBody = external_exports.object({
|
|
15640
|
+
tier: paidTierSchema
|
|
15641
|
+
});
|
|
15642
|
+
changeTierBody = external_exports.object({
|
|
15643
|
+
tier: paidTierSchema
|
|
15644
|
+
});
|
|
15645
|
+
updateBillingCurrencyBody = external_exports.object({
|
|
15646
|
+
currency: external_exports.enum(["USD", "BRL"])
|
|
15647
|
+
});
|
|
15648
|
+
invoicesQuery = external_exports.object({
|
|
15649
|
+
limit: external_exports.string().regex(/^\d+$/).optional()
|
|
15650
|
+
});
|
|
15651
|
+
billingPlanTypeSchema = external_exports.enum(["free", "paid", "comped"]);
|
|
15652
|
+
dataUsageCountersSchema = external_exports.object({
|
|
15653
|
+
ops_tenths_this_month: external_exports.number().nonnegative(),
|
|
15654
|
+
records_count: external_exports.number().nonnegative(),
|
|
15655
|
+
month_key: external_exports.string(),
|
|
15656
|
+
// The closed window's meter reading (the prior-window snapshot). OPTIONAL for the same
|
|
15657
|
+
// reason this object is not `.strict()`: the producer deploys on its own cadence, and a
|
|
15658
|
+
// required field would fail the parse for every counter on any producer build that predates
|
|
15659
|
+
// it — turning an additive wire change into an outage of the gauge above. Absence and a
|
|
15660
|
+
// non-matching key are the SAME outcome for a reader (do not bill), so
|
|
15661
|
+
// nothing is lost by tolerating it.
|
|
15662
|
+
prior_window_key: external_exports.string().optional(),
|
|
15663
|
+
prior_window_ops_tenths: external_exports.number().nonnegative().optional()
|
|
15664
|
+
});
|
|
15665
|
+
REKOR_ENTITLEMENT_CONTRACT_VERSION = 1;
|
|
15666
|
+
entitlementProjectionSchema = external_exports.object({
|
|
15667
|
+
contract_version: external_exports.literal(REKOR_ENTITLEMENT_CONTRACT_VERSION),
|
|
15668
|
+
/**
|
|
15669
|
+
* Monotonic per org, WayAI-assigned. An ordering guard for concurrent WayAI
|
|
15670
|
+
* writers (a plan change racing a token mint) — NOT a cross-repo CAS. Gaps are
|
|
15671
|
+
* expected: a version is allocated per push attempt, and an idempotency skip
|
|
15672
|
+
* burns none while a failed KV put burns one.
|
|
15673
|
+
*/
|
|
15674
|
+
projection_version: external_exports.number().int().nonnegative(),
|
|
15675
|
+
/** Diagnostic only — never gates. Freshness is `window_resets_at`'s job. */
|
|
15676
|
+
written_at: external_exports.string().datetime(),
|
|
15677
|
+
/** The WayAI org UUID. The `account_id` spelling is Rekor's documented carve-out. */
|
|
15678
|
+
account_id: external_exports.string().uuid(),
|
|
15679
|
+
/** The EFFECTIVE plan, not the subscribed one. Never gates. */
|
|
15680
|
+
plan_key: planKeySchema,
|
|
15681
|
+
/** Informational only. `cancelled` spelling matches `BillingRecord`. */
|
|
15682
|
+
billing_status: billingStatusSchema,
|
|
15683
|
+
/** Tenths, matching Rekor's meter granularity (write 10, point-read 1, list/SQL 10). */
|
|
15684
|
+
ops_tenths_included: external_exports.number().int().nonnegative(),
|
|
15685
|
+
max_records: external_exports.number().int().nonnegative(),
|
|
15686
|
+
/** Its own field, no longer derived from `max_records`. */
|
|
15687
|
+
import_rows_included: external_exports.number().int().nonnegative(),
|
|
15688
|
+
/** REQUIRED — absence is malformed, never coerced to `false`. */
|
|
15689
|
+
production_bases: external_exports.boolean(),
|
|
15690
|
+
/** Opaque to Rekor; compared for equality only, to reset `usage:` counters. */
|
|
15691
|
+
window_key: external_exports.string().min(1),
|
|
15692
|
+
/**
|
|
15693
|
+
* The window's TRUE lower bound, for the reconcile's `operations_log` sum.
|
|
15694
|
+
*
|
|
15695
|
+
* OPTIONAL, and that is not a rollout convenience — it is what "never gates" means
|
|
15696
|
+
* on the writer's side. The tier sources can be absent (a paid row carrying
|
|
15697
|
+
* `current_period_end` with no `current_period_start`) and inverted pairs are a
|
|
15698
|
+
* diagnostic, so requiring it here would let an inert field throw the strict
|
|
15699
|
+
* parse and leave the org with NO projection — permanently stale, with the
|
|
15700
|
+
* fail-closed gates refusing base creation and 503-ing every import. The
|
|
15701
|
+
* writer emits it whenever it has a sound value and omits it otherwise; Rekor's
|
|
15702
|
+
* observed-flip fallback covers the gap, and rollout step 3 keeps that fallback
|
|
15703
|
+
* for exactly this reason.
|
|
15704
|
+
*/
|
|
15705
|
+
window_start: external_exports.string().datetime().optional(),
|
|
15706
|
+
/** The sole staleness authority. Never triggers a counter reset. */
|
|
15707
|
+
window_resets_at: external_exports.string().datetime()
|
|
15708
|
+
}).strict();
|
|
15709
|
+
rekorEntitlementRefreshMessageSchema = external_exports.object({
|
|
15710
|
+
org_id: external_exports.string().uuid(),
|
|
15711
|
+
reason: external_exports.enum(["window_elapsed", "projection_missing", "projection_malformed"])
|
|
15712
|
+
});
|
|
15713
|
+
}
|
|
15714
|
+
});
|
|
15715
|
+
|
|
15716
|
+
// ../../packages/core/dist/chunk-D3EP4TDU.js
|
|
15717
|
+
var primaryRegionSchema, placementSourceSchema, orgIdParam, orgAdminIdParam, createOrganizationBody, updateOrganizationBody, addOrgAdminBody;
|
|
15718
|
+
var init_chunk_D3EP4TDU = __esm({
|
|
15719
|
+
"../../packages/core/dist/chunk-D3EP4TDU.js"() {
|
|
15720
|
+
"use strict";
|
|
15721
|
+
init_chunk_HZ6CADSY();
|
|
15722
|
+
init_zod();
|
|
15723
|
+
primaryRegionSchema = external_exports.enum([
|
|
15724
|
+
"wnam",
|
|
15725
|
+
"enam",
|
|
15726
|
+
"sam",
|
|
15727
|
+
"weur",
|
|
15728
|
+
"eeur",
|
|
15729
|
+
"apac",
|
|
15730
|
+
"oc",
|
|
15731
|
+
"afr",
|
|
15732
|
+
"me"
|
|
15733
|
+
]);
|
|
15734
|
+
placementSourceSchema = external_exports.enum([
|
|
15735
|
+
"hub_config",
|
|
15736
|
+
"org_config",
|
|
15737
|
+
"parent_cascade",
|
|
15738
|
+
"cf_colo",
|
|
15739
|
+
"country",
|
|
15740
|
+
"fallback",
|
|
15741
|
+
"unpinned"
|
|
15742
|
+
]);
|
|
15743
|
+
orgIdParam = external_exports.object({
|
|
15744
|
+
id: uuidSchema
|
|
15745
|
+
});
|
|
15746
|
+
orgAdminIdParam = external_exports.object({
|
|
15747
|
+
id: uuidSchema,
|
|
15748
|
+
adminId: external_exports.string().min(1)
|
|
15749
|
+
});
|
|
15750
|
+
createOrganizationBody = external_exports.object({
|
|
15751
|
+
organization_name: external_exports.string().min(1, "organization_name is required"),
|
|
15752
|
+
// Write-once at creation; updateOrganizationBody does not accept this.
|
|
15753
|
+
primary_region: primaryRegionSchema.optional()
|
|
15754
|
+
});
|
|
15755
|
+
updateOrganizationBody = external_exports.object({
|
|
15756
|
+
organization_name: external_exports.string().min(1).optional(),
|
|
15757
|
+
organization_avatar_url: external_exports.string().url().nullable().optional(),
|
|
15758
|
+
timezone: external_exports.string().optional(),
|
|
15759
|
+
business_hours: external_exports.unknown().optional()
|
|
15760
|
+
}).passthrough();
|
|
15761
|
+
addOrgAdminBody = external_exports.object({
|
|
15762
|
+
user_email: external_exports.string().email("valid email is required")
|
|
15602
15763
|
});
|
|
15603
15764
|
}
|
|
15604
15765
|
});
|
|
@@ -15646,7 +15807,7 @@ var init_chunk_QT7R3TGR = __esm({
|
|
|
15646
15807
|
}
|
|
15647
15808
|
});
|
|
15648
15809
|
|
|
15649
|
-
// ../../packages/core/dist/chunk-
|
|
15810
|
+
// ../../packages/core/dist/chunk-TIGPOH22.js
|
|
15650
15811
|
function refineLaneReferences(val, ctx) {
|
|
15651
15812
|
const lanes = val.lanes;
|
|
15652
15813
|
const statuses = val.kanban_statuses;
|
|
@@ -15670,12 +15831,12 @@ function describeSyncWarning(warning) {
|
|
|
15670
15831
|
return `${label3}: ${parts.join("; ")}. Promote the base so production's tools match the preview's.`;
|
|
15671
15832
|
}
|
|
15672
15833
|
var hubIdParam, hubAdminIdParam, hubUserIdParam, hubAgentIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, HUB_USERS_PAGE_SIZE_MAX, HUB_USERS_SEARCH_MAX, HUB_USERS_CHANNEL_TYPES, getHubUsersQuery, PREVIEW_LABEL_MAX_LENGTH, MAX_ENDED_INDEX_RETENTION_DAYS, MAX_EVAL_RETENTION_DAYS, MAX_END_USER_DAILY_MESSAGE_LIMIT, endUserDailyMessageLimitField, previewLabelField, hubTagsField, hubTypeSchema, supportModelSchema, unassignedPolicySchema, hubLanguageSchema, accessApprovalRoleSchema, createHubBody, updateHubBody, HUB_TAG_CHANGE_REFUSED, hubTagChangeRefusalSchema, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, CONTACT_ACCESS_PAGE_SIZE_MAX, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, hubRowObjectListSchema, createdHubRowSchema, createHubResponseSchema, diffEntrySchema, diffEntriesSchema, hubDiffResultSchema, HUB_DIFF_SECTION_SET, HUB_DIFF_SECTIONS, getHubDiffResponseSchema, publishHubResponseSchema, syncWarningSchema, syncHubResponseSchema, replicatePreviewHubResponseSchema, updateChannelTestIdentitiesBody, claimCodeChannelParam, claimCodeDeleteParam;
|
|
15673
|
-
var
|
|
15674
|
-
"../../packages/core/dist/chunk-
|
|
15834
|
+
var init_chunk_TIGPOH22 = __esm({
|
|
15835
|
+
"../../packages/core/dist/chunk-TIGPOH22.js"() {
|
|
15675
15836
|
"use strict";
|
|
15676
15837
|
init_chunk_D3EP4TDU();
|
|
15677
|
-
init_chunk_ZANBA4K4();
|
|
15678
15838
|
init_chunk_QT7R3TGR();
|
|
15839
|
+
init_chunk_ZANBA4K4();
|
|
15679
15840
|
init_chunk_HZ6CADSY();
|
|
15680
15841
|
init_chunk_ZTNFLGW5();
|
|
15681
15842
|
init_zod();
|
|
@@ -15997,7 +16158,7 @@ var init_chunk_25BLQS73 = __esm({
|
|
|
15997
16158
|
}
|
|
15998
16159
|
});
|
|
15999
16160
|
|
|
16000
|
-
// ../../packages/core/dist/chunk-
|
|
16161
|
+
// ../../packages/core/dist/chunk-3DDFBKA2.js
|
|
16001
16162
|
function refineScopedTarget(data, ctx) {
|
|
16002
16163
|
if (data.scope === "org") {
|
|
16003
16164
|
if (!data.org_id) {
|
|
@@ -16023,14 +16184,14 @@ function refineScopedTarget(data, ctx) {
|
|
|
16023
16184
|
}
|
|
16024
16185
|
}
|
|
16025
16186
|
var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, casesLimit, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminDryRunByDefaultTargetBody, WAYAI_HOST_TOKEN_TARGET_KINDS, WAYAI_HOST_TOKEN_MAX_TARGETS, adminClearWayaiHostTokensBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCredentialServicesBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
|
|
16026
|
-
var
|
|
16027
|
-
"../../packages/core/dist/chunk-
|
|
16187
|
+
var init_chunk_3DDFBKA2 = __esm({
|
|
16188
|
+
"../../packages/core/dist/chunk-3DDFBKA2.js"() {
|
|
16028
16189
|
"use strict";
|
|
16029
16190
|
init_chunk_FECLIZTY();
|
|
16030
16191
|
init_chunk_BFG4ZWR4();
|
|
16031
16192
|
init_chunk_UY32MQHG();
|
|
16032
16193
|
init_chunk_AZOWABU5();
|
|
16033
|
-
|
|
16194
|
+
init_chunk_TIGPOH22();
|
|
16034
16195
|
init_chunk_MIWZOSPI();
|
|
16035
16196
|
init_chunk_HZ6CADSY();
|
|
16036
16197
|
init_zod();
|
|
@@ -17749,7 +17910,7 @@ var init_chunk_S4VDZ7PZ = __esm({
|
|
|
17749
17910
|
}
|
|
17750
17911
|
});
|
|
17751
17912
|
|
|
17752
|
-
// ../../packages/core/dist/chunk-
|
|
17913
|
+
// ../../packages/core/dist/chunk-PTPA35JY.js
|
|
17753
17914
|
function declaresNoConnection(agent) {
|
|
17754
17915
|
return agent.connection === null && !agent.connection_id;
|
|
17755
17916
|
}
|
|
@@ -18481,15 +18642,15 @@ function skillSectionsAsResources(scope) {
|
|
|
18481
18642
|
};
|
|
18482
18643
|
}
|
|
18483
18644
|
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, hubAsCodeKanbanFollowupSchema, hubAsCodeKanbanOutcomeSchema, hubAsCodeKanbanStatusSchema, hubAsCodeLaneSchema, hubAsCodePageSchema, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, hubAsCodeCallOpeningSchema, hubAsCodeCallOpeningFileSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, hubAsCodeEvaluationVariableSchema, hubAsCodeNativeToolSchema, hubAsCodeMcpToolSchema, hubAsCodeCustomToolSchema, hubAsCodeStateSchema, hubAsCodeTeamSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, hubAsCodeAgentResourceSchema, hubAsCodeDelegationToolSchema, hubAsCodeAgentSchema, HUB_AS_CODE_AGENT_KEYS, HUB_AS_CODE_AGENT_TOOL_KEYS, orgAsCodeResourceFolderSchema, orgAsCodeResourceSchema, orgResourcesPayloadSchema, hubAsCodeAutomationSchema, HUB_AS_CODE_AUTOMATION_KEYS, HUB_AS_CODE_AUTOMATION_TRIGGER_KEYS, HUB_AS_CODE_AUTOMATION_TARGET_KEYS, HUB_AS_CODE_AUTOMATION_ACTION_KEYS, HUB_AS_CODE_AUTOMATION_GATE_KEYS, hubAsCodeContactListSchema, HUB_AS_CODE_CONTACT_LIST_KEYS, HUB_AS_CODE_CONTACT_LIST_FILTER_KEYS, hubAsCodeEvalMessageFields, hubAsCodeHistoryTurnSchema, hubAsCodeEvalSchema, hubAsCodeEvalAttachmentFileSchema, hubAsCodeJourneyTurnSchema, hubAsCodeJourneyStepOverrideSchema, hubAsCodeJourneySchema, uuidPattern, ciUuidSchema, flagEntriesOf, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, MAX_HUB_AS_CODE_DEPTH, NAMED_DEPTH_SEGMENTS, NAMED_DEPTH_KEY_CHARS, fieldName, hubAsCodeConfigObjectSchema, hubAsCodeConfigSchema, hubAsCodeConnectionSchema, hubAsCodePayloadSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciDiffDirectionSchema, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, ciDiffHunkSectionSchema, ciDiffHunkSchema, PAGE_DESIGN_RULES, ciPageDesignFindingSchema, ciDiffResponseFields, ciDiffResponseSchema, ciOrgSkillsDiffResponseSchema, ciHubIdentitySchema, ciLookupResponseSchema, ciOrganizationsResponseSchema, ciCreateOrganizationResponseSchema, ciHubListItemSchema, ciHubListResponseSchema, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, CI_SKIPPABLE_TOOL_GROUPS, ciSkippedEntrySchema, ciSyncResponseSchema, ciPublishResponseSchema, ciMcpDriftEntrySchema, ciSyncMcpResponseSchema, ciPublishPreviewResponseSchema, ciBranchInfoSchema, ciBranchListResponseSchema, ciBranchDeleteResponseSchema, ciOrgResourcesPullFileSchema, ciOrgResourcesPullFolderSchema, ciOrgResourcesPullResourceSchema, ciOrgResourcesPullResponseSchema, ciOrgResourcesPushResponseSchema;
|
|
18484
|
-
var
|
|
18485
|
-
"../../packages/core/dist/chunk-
|
|
18645
|
+
var init_chunk_PTPA35JY = __esm({
|
|
18646
|
+
"../../packages/core/dist/chunk-PTPA35JY.js"() {
|
|
18486
18647
|
"use strict";
|
|
18487
18648
|
init_chunk_QG3XMUEN();
|
|
18488
18649
|
init_chunk_EBUWHIFV();
|
|
18489
18650
|
init_chunk_LBDH7LCG();
|
|
18490
|
-
|
|
18491
|
-
init_chunk_ZANBA4K4();
|
|
18651
|
+
init_chunk_TIGPOH22();
|
|
18492
18652
|
init_chunk_QT7R3TGR();
|
|
18653
|
+
init_chunk_ZANBA4K4();
|
|
18493
18654
|
init_chunk_3JKCOY5P();
|
|
18494
18655
|
init_chunk_ZDTX3DG5();
|
|
18495
18656
|
init_chunk_JP7XIMUA();
|
|
@@ -19805,9 +19966,9 @@ var init_contracts = __esm({
|
|
|
19805
19966
|
init_chunk_OPETF4GS();
|
|
19806
19967
|
init_chunk_V4FRPRH5();
|
|
19807
19968
|
init_chunk_LWMLR2WI();
|
|
19808
|
-
|
|
19969
|
+
init_chunk_MMVZ65BL();
|
|
19809
19970
|
init_chunk_MH4O3YEX();
|
|
19810
|
-
|
|
19971
|
+
init_chunk_TCGHUG76();
|
|
19811
19972
|
init_chunk_KSTYTQ7I();
|
|
19812
19973
|
init_chunk_7CYHPF35();
|
|
19813
19974
|
init_chunk_NETRUHZF();
|
|
@@ -19841,7 +20002,7 @@ var init_contracts = __esm({
|
|
|
19841
20002
|
init_chunk_UMM5CTTH();
|
|
19842
20003
|
init_chunk_IRY6N2QR();
|
|
19843
20004
|
init_chunk_NVKU5PPQ();
|
|
19844
|
-
|
|
20005
|
+
init_chunk_3DDFBKA2();
|
|
19845
20006
|
init_chunk_FECLIZTY();
|
|
19846
20007
|
init_chunk_BFG4ZWR4();
|
|
19847
20008
|
init_chunk_UY32MQHG();
|
|
@@ -19853,14 +20014,14 @@ var init_contracts = __esm({
|
|
|
19853
20014
|
init_chunk_R6Y377AW();
|
|
19854
20015
|
init_chunk_UAOHHCW5();
|
|
19855
20016
|
init_chunk_ULQGJUXZ();
|
|
19856
|
-
|
|
20017
|
+
init_chunk_PTPA35JY();
|
|
19857
20018
|
init_chunk_QG3XMUEN();
|
|
19858
20019
|
init_chunk_EBUWHIFV();
|
|
19859
20020
|
init_chunk_LBDH7LCG();
|
|
19860
|
-
|
|
20021
|
+
init_chunk_TIGPOH22();
|
|
19861
20022
|
init_chunk_D3EP4TDU();
|
|
19862
|
-
init_chunk_ZANBA4K4();
|
|
19863
20023
|
init_chunk_QT7R3TGR();
|
|
20024
|
+
init_chunk_ZANBA4K4();
|
|
19864
20025
|
init_chunk_3JKCOY5P();
|
|
19865
20026
|
init_chunk_AUD5MVHU();
|
|
19866
20027
|
init_chunk_SOJMWM63();
|
|
@@ -26740,14 +26901,14 @@ var init_hub_materializer = __esm({
|
|
|
26740
26901
|
var init_ci = __esm({
|
|
26741
26902
|
"../../packages/core/dist/contracts/ci.js"() {
|
|
26742
26903
|
"use strict";
|
|
26743
|
-
|
|
26904
|
+
init_chunk_PTPA35JY();
|
|
26744
26905
|
init_chunk_QG3XMUEN();
|
|
26745
26906
|
init_chunk_EBUWHIFV();
|
|
26746
26907
|
init_chunk_LBDH7LCG();
|
|
26747
|
-
|
|
26908
|
+
init_chunk_TIGPOH22();
|
|
26748
26909
|
init_chunk_D3EP4TDU();
|
|
26749
|
-
init_chunk_ZANBA4K4();
|
|
26750
26910
|
init_chunk_QT7R3TGR();
|
|
26911
|
+
init_chunk_ZANBA4K4();
|
|
26751
26912
|
init_chunk_3JKCOY5P();
|
|
26752
26913
|
init_chunk_IBL7FANV();
|
|
26753
26914
|
init_chunk_ZDTX3DG5();
|
|
@@ -27271,14 +27432,14 @@ var nativeEntryName, SKIPPABLE_ENTRY_IDENTITY;
|
|
|
27271
27432
|
var init_skipped_tool_entries = __esm({
|
|
27272
27433
|
"../../packages/core/dist/skipped-tool-entries.js"() {
|
|
27273
27434
|
"use strict";
|
|
27274
|
-
|
|
27435
|
+
init_chunk_PTPA35JY();
|
|
27275
27436
|
init_chunk_QG3XMUEN();
|
|
27276
27437
|
init_chunk_EBUWHIFV();
|
|
27277
27438
|
init_chunk_LBDH7LCG();
|
|
27278
|
-
|
|
27439
|
+
init_chunk_TIGPOH22();
|
|
27279
27440
|
init_chunk_D3EP4TDU();
|
|
27280
|
-
init_chunk_ZANBA4K4();
|
|
27281
27441
|
init_chunk_QT7R3TGR();
|
|
27442
|
+
init_chunk_ZANBA4K4();
|
|
27282
27443
|
init_chunk_3JKCOY5P();
|
|
27283
27444
|
init_chunk_IBL7FANV();
|
|
27284
27445
|
init_chunk_ZDTX3DG5();
|