@arbidocs/sdk 0.4.90 → 0.4.92

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.
@@ -4809,14 +4809,25 @@ interface StepField {
4809
4809
  type: string;
4810
4810
  label?: string | null;
4811
4811
  required?: boolean;
4812
- options?: {
4813
- value: string;
4814
- label?: string | null;
4815
- }[] | null;
4812
+ options?: StepFieldOption[] | null;
4816
4813
  min?: number | null;
4817
4814
  max?: number | null;
4818
4815
  [key: string]: unknown;
4819
4816
  }
4817
+ /**
4818
+ * The tones a choice can be shown in (the blocks' `Tone`): e.g. a risk rating's low `success`,
4819
+ * medium `warning`, high `danger`. Display only: the server passes it through.
4820
+ */
4821
+ declare const STEP_FIELD_OPTION_TONES: readonly ["neutral", "info", "success", "warning", "danger", "accent", "ai"];
4822
+ type StepFieldOptionTone = (typeof STEP_FIELD_OPTION_TONES)[number];
4823
+ /** One choice of a `select` field. */
4824
+ interface StepFieldOption {
4825
+ value: string;
4826
+ label?: string | null;
4827
+ /** How the choice is coloured where it is picked, chosen or not. */
4828
+ tone?: StepFieldOptionTone | null;
4829
+ [key: string]: unknown;
4830
+ }
4820
4831
  /** The types a step's `fields` can have (the server's `StepField.type`). */
4821
4832
  declare const STEP_FIELD_TYPES: readonly ["text", "longtext", "boolean", "select", "number", "date", "scope", "documents", "person"];
4822
4833
  /**
@@ -4864,6 +4875,7 @@ type workflowSteps_RaisedSignal = RaisedSignal;
4864
4875
  type workflowSteps_RunStep = RunStep;
4865
4876
  type workflowSteps_RunWaitingOn = RunWaitingOn;
4866
4877
  declare const workflowSteps_SIGNAL_NAME_PATTERN: typeof SIGNAL_NAME_PATTERN;
4878
+ declare const workflowSteps_STEP_FIELD_OPTION_TONES: typeof STEP_FIELD_OPTION_TONES;
4867
4879
  declare const workflowSteps_STEP_FIELD_TYPES: typeof STEP_FIELD_TYPES;
4868
4880
  declare const workflowSteps_STEP_ID_PATTERN: typeof STEP_ID_PATTERN;
4869
4881
  declare const workflowSteps_STEP_KINDS: typeof STEP_KINDS;
@@ -4871,6 +4883,8 @@ type workflowSteps_SendBack = SendBack;
4871
4883
  type workflowSteps_StepActivityEvent = StepActivityEvent;
4872
4884
  type workflowSteps_StepAssignee = StepAssignee;
4873
4885
  type workflowSteps_StepField = StepField;
4886
+ type workflowSteps_StepFieldOption = StepFieldOption;
4887
+ type workflowSteps_StepFieldOptionTone = StepFieldOptionTone;
4874
4888
  type workflowSteps_StepKind = StepKind;
4875
4889
  type workflowSteps_StepPhase = StepPhase;
4876
4890
  type workflowSteps_StepSignal = StepSignal;
@@ -4898,7 +4912,7 @@ declare const workflowSteps_stepStatesFromActivity: typeof stepStatesFromActivit
4898
4912
  declare const workflowSteps_stepsPlan: typeof stepsPlan;
4899
4913
  declare const workflowSteps_waitingForDocumentsText: typeof waitingForDocumentsText;
4900
4914
  declare namespace workflowSteps {
4901
- export { type workflowSteps_LinkedRun as LinkedRun, workflowSteps_PERSON_STEP_KINDS as PERSON_STEP_KINDS, workflowSteps_PlanStepsError as PlanStepsError, type workflowSteps_RaisedSignal as RaisedSignal, type workflowSteps_RunStep as RunStep, type workflowSteps_RunWaitingOn as RunWaitingOn, workflowSteps_SIGNAL_NAME_PATTERN as SIGNAL_NAME_PATTERN, workflowSteps_STEP_FIELD_TYPES as STEP_FIELD_TYPES, workflowSteps_STEP_ID_PATTERN as STEP_ID_PATTERN, workflowSteps_STEP_KINDS as STEP_KINDS, type workflowSteps_SendBack as SendBack, type workflowSteps_StepActivityEvent as StepActivityEvent, type workflowSteps_StepAssignee as StepAssignee, type workflowSteps_StepField as StepField, type workflowSteps_StepKind as StepKind, type workflowSteps_StepPhase as StepPhase, type workflowSteps_StepSignal as StepSignal, type workflowSteps_StepSignalWhen as StepSignalWhen, type workflowSteps_StepState as StepState, type workflowSteps_StepStatus as StepStatus, type workflowSteps_TaskPlanStep as TaskPlanStep, workflowSteps_checkStepInputs as checkStepInputs, workflowSteps_describeAssignee as describeAssignee, workflowSteps_describeInputProblems as describeInputProblems, workflowSteps_isPersonStep as isPersonStep, workflowSteps_linkedRuns as linkedRuns, workflowSteps_messageWorkflowStep as messageWorkflowStep, workflowSteps_missingRequiredFields as missingRequiredFields, workflowSteps_parseInputPairs as parseInputPairs, workflowSteps_parsePlanSteps as parsePlanSteps, workflowSteps_raisedSignals as raisedSignals, workflowSteps_runSteps as runSteps, workflowSteps_runWaitingOn as runWaitingOn, workflowSteps_sendBacks as sendBacks, workflowSteps_stepDependencies as stepDependencies, workflowSteps_stepFields as stepFields, workflowSteps_stepPhase as stepPhase, workflowSteps_stepStatesFromActivity as stepStatesFromActivity, workflowSteps_stepsPlan as stepsPlan, workflowSteps_waitingForDocumentsText as waitingForDocumentsText };
4915
+ export { type workflowSteps_LinkedRun as LinkedRun, workflowSteps_PERSON_STEP_KINDS as PERSON_STEP_KINDS, workflowSteps_PlanStepsError as PlanStepsError, type workflowSteps_RaisedSignal as RaisedSignal, type workflowSteps_RunStep as RunStep, type workflowSteps_RunWaitingOn as RunWaitingOn, workflowSteps_SIGNAL_NAME_PATTERN as SIGNAL_NAME_PATTERN, workflowSteps_STEP_FIELD_OPTION_TONES as STEP_FIELD_OPTION_TONES, workflowSteps_STEP_FIELD_TYPES as STEP_FIELD_TYPES, workflowSteps_STEP_ID_PATTERN as STEP_ID_PATTERN, workflowSteps_STEP_KINDS as STEP_KINDS, type workflowSteps_SendBack as SendBack, type workflowSteps_StepActivityEvent as StepActivityEvent, type workflowSteps_StepAssignee as StepAssignee, type workflowSteps_StepField as StepField, type workflowSteps_StepFieldOption as StepFieldOption, type workflowSteps_StepFieldOptionTone as StepFieldOptionTone, type workflowSteps_StepKind as StepKind, type workflowSteps_StepPhase as StepPhase, type workflowSteps_StepSignal as StepSignal, type workflowSteps_StepSignalWhen as StepSignalWhen, type workflowSteps_StepState as StepState, type workflowSteps_StepStatus as StepStatus, type workflowSteps_TaskPlanStep as TaskPlanStep, workflowSteps_checkStepInputs as checkStepInputs, workflowSteps_describeAssignee as describeAssignee, workflowSteps_describeInputProblems as describeInputProblems, workflowSteps_isPersonStep as isPersonStep, workflowSteps_linkedRuns as linkedRuns, workflowSteps_messageWorkflowStep as messageWorkflowStep, workflowSteps_missingRequiredFields as missingRequiredFields, workflowSteps_parseInputPairs as parseInputPairs, workflowSteps_parsePlanSteps as parsePlanSteps, workflowSteps_raisedSignals as raisedSignals, workflowSteps_runSteps as runSteps, workflowSteps_runWaitingOn as runWaitingOn, workflowSteps_sendBacks as sendBacks, workflowSteps_stepDependencies as stepDependencies, workflowSteps_stepFields as stepFields, workflowSteps_stepPhase as stepPhase, workflowSteps_stepStatesFromActivity as stepStatesFromActivity, workflowSteps_stepsPlan as stepsPlan, workflowSteps_waitingForDocumentsText as waitingForDocumentsText };
4902
4916
  }
4903
4917
 
4904
4918
  /**
@@ -10072,4 +10086,4 @@ declare namespace identity {
10072
10086
  export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
10073
10087
  }
10074
10088
 
10075
- export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TagResponse as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, SUPPORTED_EXTENSIONS as aF, type SendBack as aG, type SkillSummary as aH, type SkippedFile as aI, type StepActionRequest as aJ, type StepActivityEvent as aK, type StepAssignee as aL, type StepField as aM, type StepKind as aN, type StepPhase as aO, type StepSignal as aP, type StepSignalWhen as aQ, type StepState as aR, type StepStatus as aS, type SubmitBackgroundQueryOptions as aT, type TagChange as aU, type TagFieldDefinition as aV, type TagKind as aW, type TagKindField as aX, type TagKindSchema as aY, type TagLinks as aZ, type TagListQuery as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, mail as b$, type TaskPlan as b0, type TaskPlanStep as b1, type TokenBudgetContext as b2, type UpdateConversationRequest as b3, type UpdateFactRequest as b4, type UpdateWorkflowRequest as b5, type UploadBatchResult as b6, type UploadDirectOptions as b7, type UploadDirectResult as b8, type UploadOptions as b9, consumeSSEStream as bA, contacts as bB, conversations as bC, countCitations as bD, createAuthenticatedClient as bE, createDocumentWaiter as bF, dm as bG, doctags as bH, documents as bI, facts as bJ, files as bK, filterSkills as bL, formatAgentStepLabel as bM, formatFileSize as bN, formatItemLabel as bO, formatStreamSummary as bP, formatUserName as bQ, formatWorkspaceChoices as bR, formatWsMessage as bS, generateEncryptedWorkspaceKey as bT, generateNewWorkspaceKey as bU, getErrorCode as bV, getErrorMessage as bW, getRawWorkspaceKey as bX, health as bY, identity as bZ, identityErrorCode as b_, type UploadResult as ba, type UsageBreakdown as bb, type UserDailyUsageResponse as bc, type UserInfo as bd, type UserInputRequestEvent as be, type UserMessageEvent as bf, WebSocketAuthError as bg, type WorkStatus as bh, type WorkflowAuthMode as bi, type WorkflowResponse as bj, type WorkflowRunHistoryResponse as bk, type WorkflowRunResponse as bl, type WorkspaceContext as bm, type WsConnection as bn, account as bo, agentconfig as bp, agents as bq, assistant as br, authenticatedFetch as bs, buildDocNameMap as bt, buildFactsContextTool as bu, buildRetrievalChunkTool as bv, buildRetrievalFullContextTool as bw, buildRetrievalTocTool as bx, connectWebSocket as by, connectWithReconnect as bz, type AgentStepDeltaEvent as c, parseSSEEvents as c0, parseSlashCommand as c1, parseSlashTokenInProgress as c2, performPasswordLogin as c3, performSigningKeyLogin as c4, performSsoDeviceFlowLogin as c5, profile as c6, projects as c7, requireData as c8, requireOk as c9, resolveAuth as ca, resolveCitations as cb, resolveWorkspace as cc, responses as cd, selectWorkspace as ce, selectWorkspaceById as cf, sessions as cg, settings as ch, streamSSE as ci, stripCitationMarkdown as cj, summarizeCitations as ck, tags as cl, work as cm, workflowSteps as cn, workflows as co, workspaces as cp, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
10089
+ export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TagKindSchema as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, STEP_FIELD_OPTION_TONES as aF, SUPPORTED_EXTENSIONS as aG, type SendBack as aH, type SkillSummary as aI, type SkippedFile as aJ, type StepActionRequest as aK, type StepActivityEvent as aL, type StepAssignee as aM, type StepField as aN, type StepFieldOption as aO, type StepFieldOptionTone as aP, type StepKind as aQ, type StepPhase as aR, type StepSignal as aS, type StepSignalWhen as aT, type StepState as aU, type StepStatus as aV, type SubmitBackgroundQueryOptions as aW, type TagChange as aX, type TagFieldDefinition as aY, type TagKind as aZ, type TagKindField as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, health as b$, type TagLinks as b0, type TagListQuery as b1, type TagResponse as b2, type TaskPlan as b3, type TaskPlanStep as b4, type TokenBudgetContext as b5, type UpdateConversationRequest as b6, type UpdateFactRequest as b7, type UpdateWorkflowRequest as b8, type UploadBatchResult as b9, buildRetrievalTocTool as bA, connectWebSocket as bB, connectWithReconnect as bC, consumeSSEStream as bD, contacts as bE, conversations as bF, countCitations as bG, createAuthenticatedClient as bH, createDocumentWaiter as bI, dm as bJ, doctags as bK, documents as bL, facts as bM, files as bN, filterSkills as bO, formatAgentStepLabel as bP, formatFileSize as bQ, formatItemLabel as bR, formatStreamSummary as bS, formatUserName as bT, formatWorkspaceChoices as bU, formatWsMessage as bV, generateEncryptedWorkspaceKey as bW, generateNewWorkspaceKey as bX, getErrorCode as bY, getErrorMessage as bZ, getRawWorkspaceKey as b_, type UploadDirectOptions as ba, type UploadDirectResult as bb, type UploadOptions as bc, type UploadResult as bd, type UsageBreakdown as be, type UserDailyUsageResponse as bf, type UserInfo as bg, type UserInputRequestEvent as bh, type UserMessageEvent as bi, WebSocketAuthError as bj, type WorkStatus as bk, type WorkflowAuthMode as bl, type WorkflowResponse as bm, type WorkflowRunHistoryResponse as bn, type WorkflowRunResponse as bo, type WorkspaceContext as bp, type WsConnection as bq, account as br, agentconfig as bs, agents as bt, assistant as bu, authenticatedFetch as bv, buildDocNameMap as bw, buildFactsContextTool as bx, buildRetrievalChunkTool as by, buildRetrievalFullContextTool as bz, type AgentStepDeltaEvent as c, identity as c0, identityErrorCode as c1, mail as c2, parseSSEEvents as c3, parseSlashCommand as c4, parseSlashTokenInProgress as c5, performPasswordLogin as c6, performSigningKeyLogin as c7, performSsoDeviceFlowLogin as c8, profile as c9, projects as ca, requireData as cb, requireOk as cc, resolveAuth as cd, resolveCitations as ce, resolveWorkspace as cf, responses as cg, selectWorkspace as ch, selectWorkspaceById as ci, sessions as cj, settings as ck, streamSSE as cl, stripCitationMarkdown as cm, summarizeCitations as cn, tags as co, work as cp, workflowSteps as cq, workflows as cr, workspaces as cs, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
@@ -4809,14 +4809,25 @@ interface StepField {
4809
4809
  type: string;
4810
4810
  label?: string | null;
4811
4811
  required?: boolean;
4812
- options?: {
4813
- value: string;
4814
- label?: string | null;
4815
- }[] | null;
4812
+ options?: StepFieldOption[] | null;
4816
4813
  min?: number | null;
4817
4814
  max?: number | null;
4818
4815
  [key: string]: unknown;
4819
4816
  }
4817
+ /**
4818
+ * The tones a choice can be shown in (the blocks' `Tone`): e.g. a risk rating's low `success`,
4819
+ * medium `warning`, high `danger`. Display only: the server passes it through.
4820
+ */
4821
+ declare const STEP_FIELD_OPTION_TONES: readonly ["neutral", "info", "success", "warning", "danger", "accent", "ai"];
4822
+ type StepFieldOptionTone = (typeof STEP_FIELD_OPTION_TONES)[number];
4823
+ /** One choice of a `select` field. */
4824
+ interface StepFieldOption {
4825
+ value: string;
4826
+ label?: string | null;
4827
+ /** How the choice is coloured where it is picked, chosen or not. */
4828
+ tone?: StepFieldOptionTone | null;
4829
+ [key: string]: unknown;
4830
+ }
4820
4831
  /** The types a step's `fields` can have (the server's `StepField.type`). */
4821
4832
  declare const STEP_FIELD_TYPES: readonly ["text", "longtext", "boolean", "select", "number", "date", "scope", "documents", "person"];
4822
4833
  /**
@@ -4864,6 +4875,7 @@ type workflowSteps_RaisedSignal = RaisedSignal;
4864
4875
  type workflowSteps_RunStep = RunStep;
4865
4876
  type workflowSteps_RunWaitingOn = RunWaitingOn;
4866
4877
  declare const workflowSteps_SIGNAL_NAME_PATTERN: typeof SIGNAL_NAME_PATTERN;
4878
+ declare const workflowSteps_STEP_FIELD_OPTION_TONES: typeof STEP_FIELD_OPTION_TONES;
4867
4879
  declare const workflowSteps_STEP_FIELD_TYPES: typeof STEP_FIELD_TYPES;
4868
4880
  declare const workflowSteps_STEP_ID_PATTERN: typeof STEP_ID_PATTERN;
4869
4881
  declare const workflowSteps_STEP_KINDS: typeof STEP_KINDS;
@@ -4871,6 +4883,8 @@ type workflowSteps_SendBack = SendBack;
4871
4883
  type workflowSteps_StepActivityEvent = StepActivityEvent;
4872
4884
  type workflowSteps_StepAssignee = StepAssignee;
4873
4885
  type workflowSteps_StepField = StepField;
4886
+ type workflowSteps_StepFieldOption = StepFieldOption;
4887
+ type workflowSteps_StepFieldOptionTone = StepFieldOptionTone;
4874
4888
  type workflowSteps_StepKind = StepKind;
4875
4889
  type workflowSteps_StepPhase = StepPhase;
4876
4890
  type workflowSteps_StepSignal = StepSignal;
@@ -4898,7 +4912,7 @@ declare const workflowSteps_stepStatesFromActivity: typeof stepStatesFromActivit
4898
4912
  declare const workflowSteps_stepsPlan: typeof stepsPlan;
4899
4913
  declare const workflowSteps_waitingForDocumentsText: typeof waitingForDocumentsText;
4900
4914
  declare namespace workflowSteps {
4901
- export { type workflowSteps_LinkedRun as LinkedRun, workflowSteps_PERSON_STEP_KINDS as PERSON_STEP_KINDS, workflowSteps_PlanStepsError as PlanStepsError, type workflowSteps_RaisedSignal as RaisedSignal, type workflowSteps_RunStep as RunStep, type workflowSteps_RunWaitingOn as RunWaitingOn, workflowSteps_SIGNAL_NAME_PATTERN as SIGNAL_NAME_PATTERN, workflowSteps_STEP_FIELD_TYPES as STEP_FIELD_TYPES, workflowSteps_STEP_ID_PATTERN as STEP_ID_PATTERN, workflowSteps_STEP_KINDS as STEP_KINDS, type workflowSteps_SendBack as SendBack, type workflowSteps_StepActivityEvent as StepActivityEvent, type workflowSteps_StepAssignee as StepAssignee, type workflowSteps_StepField as StepField, type workflowSteps_StepKind as StepKind, type workflowSteps_StepPhase as StepPhase, type workflowSteps_StepSignal as StepSignal, type workflowSteps_StepSignalWhen as StepSignalWhen, type workflowSteps_StepState as StepState, type workflowSteps_StepStatus as StepStatus, type workflowSteps_TaskPlanStep as TaskPlanStep, workflowSteps_checkStepInputs as checkStepInputs, workflowSteps_describeAssignee as describeAssignee, workflowSteps_describeInputProblems as describeInputProblems, workflowSteps_isPersonStep as isPersonStep, workflowSteps_linkedRuns as linkedRuns, workflowSteps_messageWorkflowStep as messageWorkflowStep, workflowSteps_missingRequiredFields as missingRequiredFields, workflowSteps_parseInputPairs as parseInputPairs, workflowSteps_parsePlanSteps as parsePlanSteps, workflowSteps_raisedSignals as raisedSignals, workflowSteps_runSteps as runSteps, workflowSteps_runWaitingOn as runWaitingOn, workflowSteps_sendBacks as sendBacks, workflowSteps_stepDependencies as stepDependencies, workflowSteps_stepFields as stepFields, workflowSteps_stepPhase as stepPhase, workflowSteps_stepStatesFromActivity as stepStatesFromActivity, workflowSteps_stepsPlan as stepsPlan, workflowSteps_waitingForDocumentsText as waitingForDocumentsText };
4915
+ export { type workflowSteps_LinkedRun as LinkedRun, workflowSteps_PERSON_STEP_KINDS as PERSON_STEP_KINDS, workflowSteps_PlanStepsError as PlanStepsError, type workflowSteps_RaisedSignal as RaisedSignal, type workflowSteps_RunStep as RunStep, type workflowSteps_RunWaitingOn as RunWaitingOn, workflowSteps_SIGNAL_NAME_PATTERN as SIGNAL_NAME_PATTERN, workflowSteps_STEP_FIELD_OPTION_TONES as STEP_FIELD_OPTION_TONES, workflowSteps_STEP_FIELD_TYPES as STEP_FIELD_TYPES, workflowSteps_STEP_ID_PATTERN as STEP_ID_PATTERN, workflowSteps_STEP_KINDS as STEP_KINDS, type workflowSteps_SendBack as SendBack, type workflowSteps_StepActivityEvent as StepActivityEvent, type workflowSteps_StepAssignee as StepAssignee, type workflowSteps_StepField as StepField, type workflowSteps_StepFieldOption as StepFieldOption, type workflowSteps_StepFieldOptionTone as StepFieldOptionTone, type workflowSteps_StepKind as StepKind, type workflowSteps_StepPhase as StepPhase, type workflowSteps_StepSignal as StepSignal, type workflowSteps_StepSignalWhen as StepSignalWhen, type workflowSteps_StepState as StepState, type workflowSteps_StepStatus as StepStatus, type workflowSteps_TaskPlanStep as TaskPlanStep, workflowSteps_checkStepInputs as checkStepInputs, workflowSteps_describeAssignee as describeAssignee, workflowSteps_describeInputProblems as describeInputProblems, workflowSteps_isPersonStep as isPersonStep, workflowSteps_linkedRuns as linkedRuns, workflowSteps_messageWorkflowStep as messageWorkflowStep, workflowSteps_missingRequiredFields as missingRequiredFields, workflowSteps_parseInputPairs as parseInputPairs, workflowSteps_parsePlanSteps as parsePlanSteps, workflowSteps_raisedSignals as raisedSignals, workflowSteps_runSteps as runSteps, workflowSteps_runWaitingOn as runWaitingOn, workflowSteps_sendBacks as sendBacks, workflowSteps_stepDependencies as stepDependencies, workflowSteps_stepFields as stepFields, workflowSteps_stepPhase as stepPhase, workflowSteps_stepStatesFromActivity as stepStatesFromActivity, workflowSteps_stepsPlan as stepsPlan, workflowSteps_waitingForDocumentsText as waitingForDocumentsText };
4902
4916
  }
4903
4917
 
4904
4918
  /**
@@ -10072,4 +10086,4 @@ declare namespace identity {
10072
10086
  export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
10073
10087
  }
10074
10088
 
10075
- export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TagResponse as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, SUPPORTED_EXTENSIONS as aF, type SendBack as aG, type SkillSummary as aH, type SkippedFile as aI, type StepActionRequest as aJ, type StepActivityEvent as aK, type StepAssignee as aL, type StepField as aM, type StepKind as aN, type StepPhase as aO, type StepSignal as aP, type StepSignalWhen as aQ, type StepState as aR, type StepStatus as aS, type SubmitBackgroundQueryOptions as aT, type TagChange as aU, type TagFieldDefinition as aV, type TagKind as aW, type TagKindField as aX, type TagKindSchema as aY, type TagLinks as aZ, type TagListQuery as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, mail as b$, type TaskPlan as b0, type TaskPlanStep as b1, type TokenBudgetContext as b2, type UpdateConversationRequest as b3, type UpdateFactRequest as b4, type UpdateWorkflowRequest as b5, type UploadBatchResult as b6, type UploadDirectOptions as b7, type UploadDirectResult as b8, type UploadOptions as b9, consumeSSEStream as bA, contacts as bB, conversations as bC, countCitations as bD, createAuthenticatedClient as bE, createDocumentWaiter as bF, dm as bG, doctags as bH, documents as bI, facts as bJ, files as bK, filterSkills as bL, formatAgentStepLabel as bM, formatFileSize as bN, formatItemLabel as bO, formatStreamSummary as bP, formatUserName as bQ, formatWorkspaceChoices as bR, formatWsMessage as bS, generateEncryptedWorkspaceKey as bT, generateNewWorkspaceKey as bU, getErrorCode as bV, getErrorMessage as bW, getRawWorkspaceKey as bX, health as bY, identity as bZ, identityErrorCode as b_, type UploadResult as ba, type UsageBreakdown as bb, type UserDailyUsageResponse as bc, type UserInfo as bd, type UserInputRequestEvent as be, type UserMessageEvent as bf, WebSocketAuthError as bg, type WorkStatus as bh, type WorkflowAuthMode as bi, type WorkflowResponse as bj, type WorkflowRunHistoryResponse as bk, type WorkflowRunResponse as bl, type WorkspaceContext as bm, type WsConnection as bn, account as bo, agentconfig as bp, agents as bq, assistant as br, authenticatedFetch as bs, buildDocNameMap as bt, buildFactsContextTool as bu, buildRetrievalChunkTool as bv, buildRetrievalFullContextTool as bw, buildRetrievalTocTool as bx, connectWebSocket as by, connectWithReconnect as bz, type AgentStepDeltaEvent as c, parseSSEEvents as c0, parseSlashCommand as c1, parseSlashTokenInProgress as c2, performPasswordLogin as c3, performSigningKeyLogin as c4, performSsoDeviceFlowLogin as c5, profile as c6, projects as c7, requireData as c8, requireOk as c9, resolveAuth as ca, resolveCitations as cb, resolveWorkspace as cc, responses as cd, selectWorkspace as ce, selectWorkspaceById as cf, sessions as cg, settings as ch, streamSSE as ci, stripCitationMarkdown as cj, summarizeCitations as ck, tags as cl, work as cm, workflowSteps as cn, workflows as co, workspaces as cp, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
10089
+ export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TagKindSchema as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, STEP_FIELD_OPTION_TONES as aF, SUPPORTED_EXTENSIONS as aG, type SendBack as aH, type SkillSummary as aI, type SkippedFile as aJ, type StepActionRequest as aK, type StepActivityEvent as aL, type StepAssignee as aM, type StepField as aN, type StepFieldOption as aO, type StepFieldOptionTone as aP, type StepKind as aQ, type StepPhase as aR, type StepSignal as aS, type StepSignalWhen as aT, type StepState as aU, type StepStatus as aV, type SubmitBackgroundQueryOptions as aW, type TagChange as aX, type TagFieldDefinition as aY, type TagKind as aZ, type TagKindField as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, health as b$, type TagLinks as b0, type TagListQuery as b1, type TagResponse as b2, type TaskPlan as b3, type TaskPlanStep as b4, type TokenBudgetContext as b5, type UpdateConversationRequest as b6, type UpdateFactRequest as b7, type UpdateWorkflowRequest as b8, type UploadBatchResult as b9, buildRetrievalTocTool as bA, connectWebSocket as bB, connectWithReconnect as bC, consumeSSEStream as bD, contacts as bE, conversations as bF, countCitations as bG, createAuthenticatedClient as bH, createDocumentWaiter as bI, dm as bJ, doctags as bK, documents as bL, facts as bM, files as bN, filterSkills as bO, formatAgentStepLabel as bP, formatFileSize as bQ, formatItemLabel as bR, formatStreamSummary as bS, formatUserName as bT, formatWorkspaceChoices as bU, formatWsMessage as bV, generateEncryptedWorkspaceKey as bW, generateNewWorkspaceKey as bX, getErrorCode as bY, getErrorMessage as bZ, getRawWorkspaceKey as b_, type UploadDirectOptions as ba, type UploadDirectResult as bb, type UploadOptions as bc, type UploadResult as bd, type UsageBreakdown as be, type UserDailyUsageResponse as bf, type UserInfo as bg, type UserInputRequestEvent as bh, type UserMessageEvent as bi, WebSocketAuthError as bj, type WorkStatus as bk, type WorkflowAuthMode as bl, type WorkflowResponse as bm, type WorkflowRunHistoryResponse as bn, type WorkflowRunResponse as bo, type WorkspaceContext as bp, type WsConnection as bq, account as br, agentconfig as bs, agents as bt, assistant as bu, authenticatedFetch as bv, buildDocNameMap as bw, buildFactsContextTool as bx, buildRetrievalChunkTool as by, buildRetrievalFullContextTool as bz, type AgentStepDeltaEvent as c, identity as c0, identityErrorCode as c1, mail as c2, parseSSEEvents as c3, parseSlashCommand as c4, parseSlashTokenInProgress as c5, performPasswordLogin as c6, performSigningKeyLogin as c7, performSsoDeviceFlowLogin as c8, profile as c9, projects as ca, requireData as cb, requireOk as cc, resolveAuth as cd, resolveCitations as ce, resolveWorkspace as cf, responses as cg, selectWorkspace as ch, selectWorkspaceById as ci, sessions as cj, settings as ck, streamSSE as cl, stripCitationMarkdown as cm, summarizeCitations as cn, tags as co, work as cp, workflowSteps as cq, workflows as cr, workspaces as cs, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
package/dist/browser.cjs CHANGED
@@ -6293,6 +6293,7 @@ __export(workflow_steps_exports, {
6293
6293
  PERSON_STEP_KINDS: () => PERSON_STEP_KINDS,
6294
6294
  PlanStepsError: () => PlanStepsError,
6295
6295
  SIGNAL_NAME_PATTERN: () => SIGNAL_NAME_PATTERN,
6296
+ STEP_FIELD_OPTION_TONES: () => STEP_FIELD_OPTION_TONES,
6296
6297
  STEP_FIELD_TYPES: () => STEP_FIELD_TYPES,
6297
6298
  STEP_ID_PATTERN: () => STEP_ID_PATTERN,
6298
6299
  STEP_KINDS: () => STEP_KINDS,
@@ -6496,6 +6497,15 @@ function runWaitingOn(run) {
6496
6497
  if (run.some((s2) => s2.kind !== "agent" && s2.phase === "ready")) return "person";
6497
6498
  return "stuck";
6498
6499
  }
6500
+ var STEP_FIELD_OPTION_TONES = [
6501
+ "neutral",
6502
+ "info",
6503
+ "success",
6504
+ "warning",
6505
+ "danger",
6506
+ "accent",
6507
+ "ai"
6508
+ ];
6499
6509
  var STEP_FIELD_TYPES = [
6500
6510
  "text",
6501
6511
  "longtext",
@@ -6747,6 +6757,13 @@ function checkFields(value, at2, problems) {
6747
6757
  if (isSet(f2.options)) {
6748
6758
  if (!Array.isArray(f2.options) || f2.options.some((o2) => !isRecord(o2) || typeof o2.value !== "string"))
6749
6759
  problems.push(`${here}.options: a list of {value, label}, e.g. [{value: high}]`);
6760
+ else
6761
+ f2.options.forEach((o2, k2) => {
6762
+ if (isSet(o2.tone) && !STEP_FIELD_OPTION_TONES.includes(o2.tone))
6763
+ problems.push(
6764
+ `${here}.options[${k2}].tone: must be one of ${STEP_FIELD_OPTION_TONES.join(", ")} (got ${JSON.stringify(o2.tone)})`
6765
+ );
6766
+ });
6750
6767
  }
6751
6768
  });
6752
6769
  }