@zixt/host 0.0.134 → 0.0.135
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 +73 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import { homedir as homedir4 } from "node:os";
|
|
|
28
28
|
// package.json
|
|
29
29
|
var package_default = {
|
|
30
30
|
name: "@zixt/host",
|
|
31
|
-
version: "0.0.
|
|
31
|
+
version: "0.0.135",
|
|
32
32
|
type: "module",
|
|
33
33
|
exports: {
|
|
34
34
|
".": "./src/client.ts",
|
|
@@ -22261,10 +22261,34 @@ var InterviewTurn = InterviewQuestion.extend({
|
|
|
22261
22261
|
/** Tailored options fetched by "Not sure, suggest for me"; the person picks, edits, then continues. */
|
|
22262
22262
|
suggestions: external_exports.array(external_exports.string().trim().min(1).max(200)).max(8).default([]),
|
|
22263
22263
|
/** The answer here was passed to the Zixt team as product feedback (MG-23); the transcript says so. */
|
|
22264
|
-
feedbackNoted: external_exports.boolean().default(false)
|
|
22264
|
+
feedbackNoted: external_exports.boolean().default(false),
|
|
22265
|
+
/**
|
|
22266
|
+
* A correction of an earlier round's answer to the same question (OB-13). It
|
|
22267
|
+
* is not a new question: the round's question budget ignores it and the
|
|
22268
|
+
* rendered transcript shows a one-line note instead of re-asking.
|
|
22269
|
+
*/
|
|
22270
|
+
restates: external_exports.object({ id: Key, round: external_exports.number().int().min(1) }).nullable().default(null)
|
|
22265
22271
|
});
|
|
22272
|
+
var InterviewSubject = external_exports.enum([
|
|
22273
|
+
"business",
|
|
22274
|
+
"channels",
|
|
22275
|
+
"tools",
|
|
22276
|
+
"handoff",
|
|
22277
|
+
"watch",
|
|
22278
|
+
"human_gate",
|
|
22279
|
+
"team",
|
|
22280
|
+
"computer",
|
|
22281
|
+
"purpose",
|
|
22282
|
+
"personal_goals",
|
|
22283
|
+
/** A model-generated or legacy question. Never enters the recap, never settles a subject. */
|
|
22284
|
+
"other"
|
|
22285
|
+
]);
|
|
22286
|
+
var INTERVIEW_SUBJECTS = InterviewSubject.options.filter(
|
|
22287
|
+
(subject) => subject !== "other"
|
|
22288
|
+
);
|
|
22266
22289
|
var CompanySetupInterview = external_exports.object({
|
|
22267
|
-
turns
|
|
22290
|
+
/** Check-in rounds accumulate turns, and a correction appends one more. */
|
|
22291
|
+
turns: external_exports.array(InterviewTurn).max(120),
|
|
22268
22292
|
/** Increments each time the interview is re-run for an additive re-plan. */
|
|
22269
22293
|
round: external_exports.number().int().min(1),
|
|
22270
22294
|
complete: external_exports.boolean(),
|
|
@@ -22453,6 +22477,34 @@ var CompanySetupApproval = external_exports.object({
|
|
|
22453
22477
|
by: MemberId.nullable(),
|
|
22454
22478
|
createdAgentIds: external_exports.array(AgentId)
|
|
22455
22479
|
});
|
|
22480
|
+
var InterviewFact = external_exports.object({
|
|
22481
|
+
subject: InterviewSubject,
|
|
22482
|
+
label: external_exports.string().trim().min(1).max(60),
|
|
22483
|
+
question: InterviewQuestion,
|
|
22484
|
+
/** Null when the subject was asked but skipped or answered "Not sure, suggest for me". */
|
|
22485
|
+
value: external_exports.string().trim().min(1).max(2e3).nullable(),
|
|
22486
|
+
round: external_exports.number().int().min(1),
|
|
22487
|
+
answeredAt: IsoDate.nullable(),
|
|
22488
|
+
/** The answer was corrected in the round now open. */
|
|
22489
|
+
correctedThisRound: external_exports.boolean()
|
|
22490
|
+
});
|
|
22491
|
+
var CheckInTeammate = external_exports.object({
|
|
22492
|
+
agentId: AgentId,
|
|
22493
|
+
name: external_exports.string().trim().min(1).max(120),
|
|
22494
|
+
roleTitle: external_exports.string().trim().min(1).max(80),
|
|
22495
|
+
/** Successful receipts only (done or nothing_to_do); never every terminated attempt. */
|
|
22496
|
+
finishedTasks: external_exports.number().int().min(0),
|
|
22497
|
+
lastFinishedAt: IsoDate.nullable()
|
|
22498
|
+
});
|
|
22499
|
+
var COMPANY_SETUP_MAX_FACTS = 16;
|
|
22500
|
+
var COMPANY_SETUP_MAX_CHECK_IN_TEAM = 12;
|
|
22501
|
+
var COMPANY_SETUP_MAX_CHECK_IN_TOOLS = 8;
|
|
22502
|
+
var CompanySetupCheckIn = external_exports.object({
|
|
22503
|
+
round: external_exports.number().int().min(1),
|
|
22504
|
+
facts: external_exports.array(InterviewFact).max(COMPANY_SETUP_MAX_FACTS),
|
|
22505
|
+
team: external_exports.array(CheckInTeammate).max(COMPANY_SETUP_MAX_CHECK_IN_TEAM),
|
|
22506
|
+
connectedTools: external_exports.array(external_exports.object({ kind: CompanyToolKind, name: external_exports.string().trim().min(1).max(120) })).max(COMPANY_SETUP_MAX_CHECK_IN_TOOLS)
|
|
22507
|
+
});
|
|
22456
22508
|
var CompanySetupView = external_exports.object({
|
|
22457
22509
|
id: CompanySetupId.nullable(),
|
|
22458
22510
|
orgId: OrgId,
|
|
@@ -22461,6 +22513,12 @@ var CompanySetupView = external_exports.object({
|
|
|
22461
22513
|
interview: CompanySetupInterview.nullable(),
|
|
22462
22514
|
/** The next unanswered question, when the interview is open. */
|
|
22463
22515
|
currentQuestion: InterviewTurn.nullable(),
|
|
22516
|
+
/**
|
|
22517
|
+
* The returning-organization check-in (OB-13). Present only for an Admin
|
|
22518
|
+
* whose team already exists and whose interview is open again; null for a
|
|
22519
|
+
* Member, and null on a first run.
|
|
22520
|
+
*/
|
|
22521
|
+
checkIn: CompanySetupCheckIn.nullable(),
|
|
22464
22522
|
plan: CompanySetupPlan.nullable(),
|
|
22465
22523
|
/**
|
|
22466
22524
|
* The plan is being proposed in the background (a planner call can take a
|
|
@@ -22487,8 +22545,18 @@ var CompanySetupView = external_exports.object({
|
|
|
22487
22545
|
});
|
|
22488
22546
|
var AnswerCompanySetupQuestionRequest = external_exports.object({
|
|
22489
22547
|
questionId: Key,
|
|
22490
|
-
answer: InterviewAnswer
|
|
22491
|
-
|
|
22548
|
+
answer: InterviewAnswer,
|
|
22549
|
+
/**
|
|
22550
|
+
* Correct an earlier round's answer to this question (OB-13). The answer
|
|
22551
|
+
* must be text: a correction replaces what was said, so it cannot be a
|
|
22552
|
+
* skip. The pending question is untouched and no question is consumed.
|
|
22553
|
+
*/
|
|
22554
|
+
restatesRound: external_exports.number().int().min(1).optional()
|
|
22555
|
+
}).strict().refine((value) => value.restatesRound === void 0 || value.answer.kind === "text", {
|
|
22556
|
+
message: "a correction must be an answer in your own words",
|
|
22557
|
+
path: ["answer"]
|
|
22558
|
+
});
|
|
22559
|
+
var CloseCompanyCheckInRequest = external_exports.object({}).strict();
|
|
22492
22560
|
var SuggestCompanySetupAnswersRequest = external_exports.object({
|
|
22493
22561
|
questionId: Key
|
|
22494
22562
|
}).strict();
|