@oxy-hq/sdk 2.3.0 → 2.4.0

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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import * as React from "react";
2
+ import { A as UseSemanticQueryOpts, B as CustomerAppErrorReport, C as UseProcedureRunInput, D as UseQueryOpts, E as UseQueryInput, F as useProcedureRun, G as OxyAppFunctionManifest, H as apiErrorFromResponse, I as useQuery, J as _resetCustomerAppManifestCacheForTest, K as OxyAppManifest, L as useResolvedManifest, M as useAgentRun, N as useFunction, O as UseQueryResult, P as useOxyApp, R as useSemanticQuery, S as UseFunctionResult, T as UseProcedureRunResult, U as interpretCustomerAppError, V as OxyApiError, W as LoadManifestOptions, Y as loadCustomerAppManifest, _ as SemanticFilter, a as AppFetcher, b as UseAgentRunInput, c as OxyAppProvider, d as OxyChatProps, f as ProcedureProgress, g as SemanticDateRangeOp, h as SemanticArrayOp, i as AgentSqlArtifact, j as UseSemanticQueryResult, k as UseSemanticQueryInput, l as OxyAppProviderProps, m as ProcedureRunState, n as AgentRunEvent, o as OxyAnswer, p as ProcedureResult, q as ResolvedCustomerAppManifest, r as AgentRunState, s as OxyAnswerProps, t as AgentArtifact, u as OxyChat, v as SemanticScalarOp, w as UseProcedureRunOpts, x as UseAgentRunResult, y as SemanticTimeDimension, z as useTrackEvent } from "./react-BLsczFL4.cjs";
3
3
  //#region src/config.d.ts
4
4
  /**
5
5
  * Configuration for the Oxy SDK
@@ -432,179 +432,6 @@ declare class AnomaliesClient {
432
432
  explain(anomalyId: string): Promise<ExplainResult>;
433
433
  }
434
434
  //#endregion
435
- //#region src/customer-app/manifest.d.ts
436
- /**
437
- * Declaration of a single Oxy Function shipped in the bundle's
438
- * `functions/` dir. See `internal-docs/2026-06-12-customer-apps-functions-design.md`.
439
- *
440
- * All fields optional except that at least one invocation surface
441
- * (`route`, `schedule`, or `airwayStep`) must be active. Absent =
442
- * `route: true` (HTTP-invocable via `useFunction`).
443
- */
444
- interface OxyAppFunctionManifest {
445
- /** Source entry, relative to the app dir. Default: `functions/<name>.ts`. */
446
- entry?: string;
447
- /** Cron expression. When set, the function fires on this schedule. */
448
- schedule?: string;
449
- /** IANA timezone for `schedule`. Default: `UTC`. */
450
- timezone?: string;
451
- /** Expose `POST .../fn/<name>` (called via `useFunction`). Default: true. */
452
- route?: boolean;
453
- /** Wire the function in as an Airway pipeline transform step. */
454
- airwayStep?: {
455
- pipeline: string;
456
- resource: string;
457
- };
458
- /** Wall-clock timeout. Default 30, max 300. */
459
- timeoutSeconds?: number;
460
- /**
461
- * Opt-in result caching for route invocations. Omit (the default) to never
462
- * cache — the safe choice for a side-effectful function (writes, external
463
- * POSTs, ELT). Set `ttlSeconds` ONLY for read-only / idempotent functions:
464
- * results are then cached per (build, function, user, request body) for that
465
- * window, and a repeat `useFunction().invoke(sameBody)` returns the cached
466
- * result without re-running. A `?refresh` query bypasses it.
467
- */
468
- cache?: {
469
- ttlSeconds?: number;
470
- };
471
- /**
472
- * Databases this function's `ctx.warehouse.*` writes may target. Omit (or
473
- * leave empty) and the function may NOT write to any database — writes are
474
- * fail-closed and rejected before any connection is opened. Declare a
475
- * destination here ONLY for a function that legitimately writes to it; a
476
- * read-only function omits it. This scopes writes away from the project's
477
- * source warehouse.
478
- */
479
- destinations?: string[];
480
- /**
481
- * Capability to write app-scoped secrets via `ctx.secrets.set` (fail-closed:
482
- * omit → writes rejected). Only the app's own `apps/<app-id>/` namespace is
483
- * writable. Declare for a function that persists state — e.g. a scheduled
484
- * token-refresher that writes the rotated token back to Oxy Secrets.
485
- */
486
- secrets?: {
487
- write?: boolean;
488
- };
489
- /**
490
- * Capability to send email via `ctx.email.send` (fail-closed: omit → the
491
- * host rejects `ctx.email.send` before any provider call). Declare for a
492
- * function that emails the app's users — e.g. a `notify` route that sends a
493
- * welcome message, or a scheduled digest. The sender mailbox is
494
- * platform-controlled; a function may set `replyTo` but never `from`.
495
- */
496
- email?: {
497
- send?: boolean;
498
- };
499
- /**
500
- * Retry policy for **background** runs (a `schedule` fire or a manual job
501
- * trigger). Omit → a job run is attempted once. Route (HTTP) invocations are
502
- * request-scoped and never retried. `maxAttempts` counts the first try
503
- * (`maxAttempts: 3` = up to 2 retries); backoff is exponential (doubling)
504
- * between `minTimeoutMs` and `maxTimeoutMs`. Maps to the durable queue's
505
- * retry policy — a transient failure re-runs the whole isolate.
506
- */
507
- retries?: {
508
- maxAttempts?: number;
509
- minTimeoutMs?: number;
510
- maxTimeoutMs?: number;
511
- };
512
- /**
513
- * Example input params for the function — a sample JSON body the admin "Run
514
- * now" surface prefills so an operator knows what to pass (the function reads
515
- * it as its `req` body, same as a route invocation). Advisory only; not
516
- * enforced at runtime.
517
- */
518
- inputExample?: unknown;
519
- }
520
- /** Wire shape of `oxy-app.json` (v2 only). */
521
- interface OxyAppManifest {
522
- /** Must be 2. v1 manifests are no longer supported. */
523
- schemaVersion: 2;
524
- /**
525
- * Optional display name. The admin "Link existing" dialog prefills
526
- * its Name field from this. Omit to let oxy fall back to the
527
- * folder basename.
528
- */
529
- name?: string;
530
- /**
531
- * URL slug. **Required.** The canonical source of truth — the
532
- * dialog locks the slug field to this value, and
533
- * `OXY_APP_BASE_PATH=/customer-apps/<org>/<slug>/` baked into the
534
- * build must match.
535
- */
536
- slug: string;
537
- /**
538
- * Optional org slug. Prefills the dialog's org picker; operator
539
- * can still override. Carries no security weight — the actual
540
- * access check is on the linked row.
541
- */
542
- orgSlug?: string;
543
- /**
544
- * Optional project (workspace) uuid the bundle expects to read
545
- * from. Used by `useQuery` to construct the
546
- * `/api/projects/:id/query` URL.
547
- */
548
- projectId?: string;
549
- /**
550
- * Optional map of Oxy Functions (server-side handlers) shipped in the
551
- * bundle's `functions/` dir, keyed by function name. Omit for a pure
552
- * static bundle (today's default). See the functions design doc.
553
- */
554
- functions?: Record<string, OxyAppFunctionManifest>;
555
- }
556
- /**
557
- * Manifest + runtime-injected identity needed to call oxy. Callers
558
- * should treat this as the only source of truth for "which org/app
559
- * does this bundle belong to."
560
- */
561
- interface ResolvedCustomerAppManifest {
562
- manifest: OxyAppManifest;
563
- /**
564
- * Always an empty array for v2 manifests. Kept for API compatibility;
565
- * callers that previously iterated product names should switch to
566
- * explicit `useQuery` calls.
567
- * @deprecated Will be removed in a future version.
568
- */
569
- productNames: string[];
570
- /** Org slug injected by oxy. */
571
- orgSlug: string;
572
- /** App slug injected by oxy. */
573
- appSlug: string;
574
- /**
575
- * The oxy server's API base URL. Empty string when oxy serves the
576
- * bundle itself (same-origin, the common case); a full URL only
577
- * when the bundle is running under a dev server proxy.
578
- */
579
- apiBaseUrl: string;
580
- /** App UUID; informational. */
581
- appId?: string;
582
- /**
583
- * Project (workspace) UUID. Injection (`window.__OXY_APP__.projectId`)
584
- * wins over the manifest's `projectId` field — the admin row is
585
- * authoritative. Manifest `projectId` is a dev-time hint used only
586
- * when running without a server. Used by `useQuery` to construct the
587
- * `/api/projects/:id/query` URL.
588
- */
589
- projectId?: string;
590
- }
591
- interface LoadManifestOptions {
592
- /**
593
- * Override the URL the manifest is fetched from. Default:
594
- * `<injected_base>/oxy-app.json` or `/oxy-app.json`.
595
- * Useful for non-Next bundlers — set explicitly to wherever your
596
- * bundler emits static assets.
597
- */
598
- manifestUrl?: string;
599
- }
600
- /**
601
- * Load + validate the manifest. Cached after the first call so callers
602
- * can invoke this from every component without coordinating.
603
- */
604
- declare function loadCustomerAppManifest(options?: LoadManifestOptions): Promise<ResolvedCustomerAppManifest>;
605
- /** For tests: reset the cache between runs. */
606
- declare function _resetCustomerAppManifestCacheForTest(): void;
607
- //#endregion
608
435
  //#region src/customer-app/debug.d.ts
609
436
  /** Untyped at the boundary — keep it loose so server-side schema
610
437
  * additions don't break older bundles. Stable enough for inspection
@@ -639,40 +466,6 @@ interface CustomerAppDebugSnapshot {
639
466
  */
640
467
  declare function getCustomerAppDebug(resolved: ResolvedCustomerAppManifest): Promise<CustomerAppDebugSnapshot>;
641
468
  //#endregion
642
- //#region src/customer-app/errors.d.ts
643
- /**
644
- * Error thrown by all customer-app hooks when an API call returns a
645
- * non-2xx response. Carries the structured `code` + `hint` the server
646
- * emits so bundle UIs can render an actionable message instead of
647
- * "404: { ...json... }".
648
- */
649
- declare class OxyApiError extends Error {
650
- readonly status: number;
651
- readonly code: string | null;
652
- readonly hint: string | null;
653
- constructor(opts: {
654
- status: number;
655
- message: string;
656
- code?: string | null;
657
- hint?: string | null;
658
- });
659
- }
660
- /**
661
- * Read a non-2xx response from oxy and return an `OxyApiError`.
662
- * Parses the JSON envelope when present; falls back to raw text
663
- * (truncated to 240 chars so a runaway HTML error page doesn't
664
- * dominate the bundle UI).
665
- */
666
- declare function apiErrorFromResponse(resp: Response): Promise<OxyApiError>;
667
- interface CustomerAppErrorReport {
668
- title: string;
669
- message: string;
670
- hint: string;
671
- docs?: string;
672
- }
673
- /** Interpret a thrown error as a structured report for UI display. */
674
- declare function interpretCustomerAppError(err: unknown): CustomerAppErrorReport;
675
- //#endregion
676
469
  //#region src/customer-app/function-context.d.ts
677
470
  /**
678
471
  * The request passed as the first argument to a function's default export.
@@ -824,417 +617,5 @@ declare function setOxyAppLogger(logger: OxyAppLogger | null): void;
824
617
  /** Used by the SDK internals; not part of the public surface. */
825
618
  declare function getOxyAppLogger(): OxyAppLogger;
826
619
  //#endregion
827
- //#region src/customer-app/function-sse.d.ts
828
- /** A captured `console.*` / `ctx.log` line from a function run. */
829
- interface FunctionLog {
830
- level: string;
831
- message: string;
832
- }
833
- //#endregion
834
- //#region src/customer-app/react.d.ts
835
- /**
836
- * Credentialed fetch wrapper stored in context so `useQuery` can share
837
- * the same request mechanism without coupling it to the global `fetch`.
838
- *
839
- * Sends `credentials: "include"` so the session cookie rides along when
840
- * the app is served by oxy (in-workspace / admin preview) — that cookie
841
- * authorizes data calls. For local dev (cross-origin), the
842
- * `@oxy-hq/vite-plugin` proxy attaches the developer's token. Bundles may
843
- * override the fetcher for test/proxy environments.
844
- */
845
- type AppFetcher = typeof fetch;
846
- interface OxyAppProviderProps {
847
- /** Optional manifest load options. Same shape as `loadCustomerAppManifest`. */
848
- manifestOptions?: LoadManifestOptions;
849
- /**
850
- * Rendered while the manifest is loading. Defaults to nothing; pass a
851
- * spinner if you want one.
852
- */
853
- fallback?: React.ReactNode;
854
- /**
855
- * Rendered on manifest load failure. Receives the structured error
856
- * report so the bundle can show its own branded error card. Defaults
857
- * to a minimal text-only fallback (better than a blank page).
858
- */
859
- errorFallback?: (err: CustomerAppErrorReport) => React.ReactNode;
860
- /**
861
- * Override the fetch implementation used by all hooks (`useQuery`).
862
- * Useful for test environments or proxy setups. Defaults to a wrapper
863
- * that sets `credentials: "include"` on every request.
864
- */
865
- fetcher?: AppFetcher;
866
- children: React.ReactNode;
867
- }
868
- /**
869
- * Top-level provider. Loads the manifest once on mount; children only
870
- * render after the manifest is ready (or the error fallback fires).
871
- */
872
- declare function OxyAppProvider(props: OxyAppProviderProps): React.JSX.Element;
873
- /**
874
- * Read the resolved manifest from context. Throws if called outside
875
- * `<OxyAppProvider>` — that's a programmer error worth surfacing
876
- * loudly, not silently swallowing.
877
- */
878
- declare function useResolvedManifest(): ResolvedCustomerAppManifest;
879
- interface UseQueryInput {
880
- sql: string;
881
- database?: string;
882
- }
883
- interface UseQueryOpts {
884
- params?: Record<string, string | number | boolean | null | undefined>;
885
- /** Set false to skip the request (e.g., waiting on user input). */
886
- enabled?: boolean;
887
- }
888
- interface UseQueryResult<Row = Record<string, unknown>> {
889
- rows: Row[];
890
- columns: string[];
891
- loading: boolean;
892
- error: Error | null;
893
- refetch: () => void;
894
- }
895
- /**
896
- * Execute an ad-hoc SQL query against the project linked to this
897
- * customer app. The query is specified inline by the caller; no
898
- * manifest declaration is involved.
899
- *
900
- * Re-runs whenever `input` or enabled `params` change. Use the
901
- * `enabled` option to defer the first fetch until required data is
902
- * available (e.g. a user-supplied filter value).
903
- */
904
- declare function useQuery<Row = Record<string, unknown>>(input: UseQueryInput, opts?: UseQueryOpts): UseQueryResult<Row>;
905
- interface UseFunctionResult<Data = unknown> {
906
- /**
907
- * Invoke the function with an optional JSON body. Resolves to the parsed
908
- * result. Pass `{ idempotencyKey }` to make a side-effectful invocation
909
- * exactly-once: a retry with the same key replays the stored result instead
910
- * of re-executing. Send a fresh key per logical action (e.g. a UUID per
911
- * journal entry).
912
- */
913
- invoke: (body?: unknown, opts?: {
914
- idempotencyKey?: string;
915
- }) => Promise<Data>;
916
- /** Last successful result, or null before the first invoke. */
917
- data: Data | null;
918
- /** True while an invocation is in flight. */
919
- isLoading: boolean;
920
- /** Last invocation error, or null. On error this carries `.logs` too. */
921
- error: Error | null;
922
- /**
923
- * `console.*` / `ctx.log` output from the last invoke (success or error), so
924
- * a developer can see what the function printed without opening the oxy
925
- * server logs. Empty for a cache hit or idempotent replay — no run happened,
926
- * so there is nothing to log.
927
- */
928
- logs: FunctionLog[];
929
- }
930
- /**
931
- * Imperative hook for invoking an Oxy Function by name.
932
- *
933
- * ```tsx
934
- * const refresh = useFunction("refresh-sales");
935
- * <button disabled={refresh.isLoading} onClick={() => refresh.invoke({ full: true })}>
936
- * Refresh
937
- * </button>
938
- * ```
939
- */
940
- declare function useFunction<Data = unknown>(name: string): UseFunctionResult<Data>;
941
- /** Scalar filter operators (compared against a single value). */
942
- type SemanticScalarOp = "eq" | "neq" | "lt" | "lte" | "gt" | "gte";
943
- /** Array filter operators (compared against a list). */
944
- type SemanticArrayOp = "in" | "not_in";
945
- /** Date-range filter operators. `from` / `to` accept ISO date strings. */
946
- type SemanticDateRangeOp = "in_date_range" | "not_in_date_range";
947
- /**
948
- * One filter clause. The `field` references a dimension name within
949
- * the topic; the `op` discriminator picks which other fields are
950
- * meaningful. Wire shape matches `agentic_semantic::SemanticFilter`
951
- * verbatim — the bundle's request body is forwarded to airlayer's
952
- * compiler with no translation.
953
- */
954
- type SemanticFilter = {
955
- field: string;
956
- op: SemanticScalarOp;
957
- value: string | number | boolean | null;
958
- } | {
959
- field: string;
960
- op: SemanticArrayOp;
961
- values: Array<string | number | boolean | null>;
962
- } | {
963
- field: string;
964
- op: SemanticDateRangeOp;
965
- from: string;
966
- to: string;
967
- };
968
- /** Time dimensions with optional granularity (e.g. "day", "month"). */
969
- interface SemanticTimeDimension {
970
- dimension: string;
971
- granularity?: "day" | "week" | "month" | "quarter" | "year";
972
- }
973
- interface UseSemanticQueryInput {
974
- topic: string;
975
- dimensions?: string[];
976
- measures?: string[];
977
- time_dimensions?: SemanticTimeDimension[];
978
- filters?: SemanticFilter[];
979
- limit?: number;
980
- }
981
- interface UseSemanticQueryOpts {
982
- /** Set false to skip the request (e.g., waiting on user input). */
983
- enabled?: boolean;
984
- /**
985
- * When true, the response includes the compiled SQL string at
986
- * `sql`. Off by default — production callers shouldn't bake the
987
- * warehouse SQL into their UI. Bundle authors flip this on while
988
- * debugging.
989
- */
990
- debug?: boolean;
991
- }
992
- interface UseSemanticQueryResult<Row = Record<string, unknown>> {
993
- rows: Row[];
994
- columns: string[];
995
- /** True when the result was capped at the server's row limit. */
996
- truncated: boolean;
997
- /** Compiled SQL — populated only when `opts.debug` is true. */
998
- sql: string | null;
999
- loading: boolean;
1000
- error: Error | null;
1001
- refetch: () => void;
1002
- }
1003
- /**
1004
- * Run a semantic-layer query against the project's `.view.yml` /
1005
- * `.topic.yml` definitions. The server compiles to SQL and executes
1006
- * through the same connector path as `useQuery`, so result shape
1007
- * matches.
1008
- *
1009
- * Re-runs whenever the input shape changes (deep-compared via JSON).
1010
- * Use `opts.enabled = false` to defer the first fetch until required
1011
- * inputs (e.g. a user-picked filter value) are available.
1012
- */
1013
- declare function useSemanticQuery<Row = Record<string, unknown>>(input: UseSemanticQueryInput, opts?: UseSemanticQueryOpts): UseSemanticQueryResult<Row>;
1014
- type ProcedureRunState = "idle" | "running" | "done" | "failed";
1015
- interface UseProcedureRunInput {
1016
- procedureId: string;
1017
- }
1018
- interface UseProcedureRunOpts {
1019
- /** Polling cadence in ms while running. Default: 2000 (procedures
1020
- * are typically minutes-long; tighter cadence wastes resources). */
1021
- pollIntervalMs?: number;
1022
- pollIntervalBackoffMs?: number;
1023
- /** Max client-side wait in ms. Default: 1 hour. */
1024
- maxWaitMs?: number;
1025
- }
1026
- interface ProcedureProgress {
1027
- step: string;
1028
- percent: number;
1029
- }
1030
- interface ProcedureResult {
1031
- summary: string;
1032
- outputs: Record<string, unknown>;
1033
- }
1034
- interface UseProcedureRunResult {
1035
- state: ProcedureRunState;
1036
- run: (params?: Record<string, unknown>) => void;
1037
- /** Cancel the in-flight run. Idempotent. */
1038
- cancel: () => void;
1039
- progress: ProcedureProgress | null;
1040
- result: ProcedureResult | null;
1041
- error: Error | null;
1042
- }
1043
- /**
1044
- * @beta Long-running procedure runner. The wire shape works end-to-end
1045
- * (start → poll → cancel; runs survive server restarts via the
1046
- * `customer_app_procedure_runs` table) but a few rough edges remain
1047
- * before this is GA-ready:
1048
- *
1049
- * - Hint surfaces for `procedure_not_found` are correct but the
1050
- * procedure-discovery rules (which directories the server scans,
1051
- * case-sensitivity, branch awareness) aren't documented yet.
1052
- * - Cancellation across multi-instance deployments leans on a
1053
- * periodic sweep — fine for now, but expect occasional latency
1054
- * between `cancel()` and the run actually stopping.
1055
- * - Progress reporting requires the procedure to emit named
1056
- * steps; bundles get `progress: null` until that lands.
1057
- *
1058
- * The API surface is stable; expect breaking changes only if the
1059
- * server-side `customer_app_procedure_runs` schema changes.
1060
- */
1061
- declare function useProcedureRun(input: UseProcedureRunInput, opts?: UseProcedureRunOpts): UseProcedureRunResult;
1062
- type AgentRunState = "idle" | "running" | "needs_clarification" | "done" | "failed";
1063
- interface AgentRunEvent {
1064
- type: string;
1065
- data: unknown;
1066
- }
1067
- /** SQL produced and (optionally) executed by the agent. Extracted
1068
- * from `query_generated` / `query_executed` / `verified_sql` /
1069
- * `semantic_query` / `omni_query` SSE events so callers don't have
1070
- * to scan the raw event stream themselves. */
1071
- interface AgentSqlArtifact {
1072
- type: "sql";
1073
- /** Stable id derived from the SSE event id so React keys stay
1074
- * stable across re-renders / reconnects. */
1075
- id: string;
1076
- /** Originating UI event type — preserves the verified/semantic/etc.
1077
- * flavor in case the renderer wants a badge. */
1078
- source: string;
1079
- sql: string;
1080
- /** Present when the SQL was executed and rows came back. */
1081
- results?: {
1082
- columns: string[];
1083
- rows: unknown[][];
1084
- rowCount: number;
1085
- };
1086
- /** Present when execution failed — surface it so the bundle UI can
1087
- * show the failure inline next to the SQL instead of swallowing
1088
- * it inside the agent's final answer. */
1089
- error?: string;
1090
- }
1091
- type AgentArtifact = AgentSqlArtifact;
1092
- interface UseAgentRunInput {
1093
- agentId: string;
1094
- }
1095
- interface UseAgentRunResult {
1096
- state: AgentRunState;
1097
- /** Submit a question and open the SSE stream. */
1098
- ask: (question: string, opts?: {
1099
- threadId?: string;
1100
- }) => void;
1101
- /** Cancel the in-flight stream + the server-side run. Idempotent. */
1102
- cancel: () => void;
1103
- /** Accumulated raw events for advanced consumers. */
1104
- events: AgentRunEvent[];
1105
- /** SQL artifacts extracted from the event stream — convenience
1106
- * view over `events` so renderers don't have to know which event
1107
- * types carry SQL. */
1108
- artifacts: AgentArtifact[];
1109
- /** Final answer once a `done` event arrives. Markdown. */
1110
- answer: string | null;
1111
- /** Clarification text once a suspension event arrives. */
1112
- clarification: string | null;
1113
- /** Thread id used by the active run (stable across follow-ups). */
1114
- threadId: string | null;
1115
- /**
1116
- * @beta Relative path to the full thread view in oxy (e.g.
1117
- * `/threads/<id>` for local mode, or
1118
- * `/<org_slug>/workspaces/<ws_id>/threads/<id>` in cloud). Set
1119
- * once the run starts so a bundle can render a "Continue in Oxy"
1120
- * link without constructing the URL itself.
1121
- *
1122
- * Caveats while in beta:
1123
- * - The bundle's origin and the oxy app shell's origin can
1124
- * differ in cloud deployments. If they do, this relative URL
1125
- * resolves against the bundle's origin and 404s. A future
1126
- * release will expose the oxy app origin via the manifest;
1127
- * for now, prefix at the call site if you know your
1128
- * deployment topology, or hide the link entirely.
1129
- * - The thread row may not be queryable until the run produces
1130
- * its first event — clicking the link immediately after
1131
- * `ask()` can land on a "thread not found" page.
1132
- */
1133
- threadUrl: string | null;
1134
- error: Error | null;
1135
- }
1136
- declare function useAgentRun(input: UseAgentRunInput): UseAgentRunResult;
1137
- /**
1138
- * Engineer-tagged usage event. Free-form `event_name` (≤ 64 chars,
1139
- * `[a-z][a-z0-9-]*` validated server-side) + optional JSON `payload`
1140
- * (object, ≤ 4 KiB serialized). Surfaces in the admin Activity tab
1141
- * grouped by name, with drill-down into recent occurrences.
1142
- *
1143
- * The handler returned by [`useTrackEvent`] is **fire-and-forget**:
1144
- * it enqueues the event into an in-memory batch flushed every second
1145
- * (and on `pagehide` so a navigation away doesn't drop the tail).
1146
- * No await semantics — call it inline from a click handler without
1147
- * awaiting it. Server-side validation errors are logged to the
1148
- * console; the call site doesn't need to handle them.
1149
- *
1150
- * Example:
1151
- * ```tsx
1152
- * const track = useTrackEvent();
1153
- * <button
1154
- * onClick={() => {
1155
- * track("export-clicked", { format: "csv", rowCount });
1156
- * doExport();
1157
- * }}
1158
- * >Export</button>
1159
- * ```
1160
- *
1161
- * Rate-limited at 60/min per (user, app) on the server. A burst that
1162
- * trips the limit drops the excess events with a console warning;
1163
- * within-limit events are unaffected.
1164
- */
1165
- declare function useTrackEvent(): (name: string, payload?: Record<string, unknown>) => void;
1166
- interface OxyAnswerProps {
1167
- /** Markdown answer text from `useAgentRun().answer`. */
1168
- answer: string | null;
1169
- /** SQL artifacts from `useAgentRun().artifacts`. */
1170
- artifacts?: AgentArtifact[];
1171
- /** Lifecycle state — drives the placeholder, spinner, error UI. */
1172
- state: AgentRunState;
1173
- /** Clarification text when `state === "needs_clarification"`. */
1174
- clarification?: string | null;
1175
- /** Failure reason when `state === "failed"`. */
1176
- error?: Error | null;
1177
- /**
1178
- * @beta Relative URL to the thread view in oxy — renders a
1179
- * "Continue in Oxy (beta)" link when set. Pass `null` to suppress
1180
- * the link entirely; the link is marked beta because the resolved
1181
- * URL may not reach a live thread in every deployment topology
1182
- * (see `UseAgentRunResult.threadUrl`).
1183
- */
1184
- threadUrl?: string | null;
1185
- /** Override the link label. Default: "Continue this thread in Oxy". */
1186
- threadLinkLabel?: string;
1187
- /** Maximum number of SQL result rows to render per artifact. Older
1188
- * rows truncated with a "+N more" note. Default: 10. */
1189
- maxArtifactRows?: number;
1190
- /** Class on the outer container — for callers using utility CSS. */
1191
- className?: string;
1192
- }
1193
- /**
1194
- * Renders an agent run's answer + artifacts + thread link as a
1195
- * single block. The default styling is intentionally neutral
1196
- * (system fonts, gray surfaces) so it blends into any bundle.
1197
- *
1198
- * Designed to be paired with `useAgentRun`:
1199
- *
1200
- * ```tsx
1201
- * const run = useAgentRun({ agentId: "analyst" });
1202
- * return (
1203
- * <>
1204
- * <button onClick={() => run.ask("how many users last week?")}>Ask</button>
1205
- * <OxyAnswer {...run} />
1206
- * </>
1207
- * );
1208
- * ```
1209
- */
1210
- declare function OxyAnswer(props: OxyAnswerProps): React.JSX.Element;
1211
- interface OxyChatProps {
1212
- /** Agent id (matches `<id>.agentic.yml` in the project). */
1213
- agentId: string;
1214
- /** Placeholder for the question input. */
1215
- placeholder?: string;
1216
- /** Button label. Default: "Ask". */
1217
- submitLabel?: string;
1218
- /** Rendered when the user hasn't asked anything yet. */
1219
- emptyState?: React.ReactNode;
1220
- /** Forwarded to the inner `<OxyAnswer>`. */
1221
- maxArtifactRows?: number;
1222
- /** Class on the outer container. */
1223
- className?: string;
1224
- }
1225
- /**
1226
- * Complete drop-in chat surface. One agent, one input, one answer
1227
- * view. The chat is single-turn by default — each new question
1228
- * cancels the previous run and clears the answer. Bundles that
1229
- * want a multi-turn conversation history compose their own UI
1230
- * using `useAgentRun` directly.
1231
- *
1232
- * Single-turn keeps the surface dead simple: bundles use this for
1233
- * the "ask anything about your data" widget that sits next to
1234
- * structured panels. Multi-turn is rare in those contexts and
1235
- * better expressed by the bundle.
1236
- */
1237
- declare function OxyChat(props: OxyChatProps): React.JSX.Element;
1238
- //#endregion
1239
- export { type AgentArtifact, type AgentRunEvent, type AgentRunState, type AgentSqlArtifact, AnomaliesClient, type Anomaly, type AnomalySeverity, type AnomalyStatus, type AppFetcher, type CustomerAppDebugSnapshot, type CustomerAppErrorReport, type DimensionOpportunity, type DriverAttribution, type DriverConfidence, type DriverDirection, type DriverForm, type DriverStrength, type EdgeKind, type EmailSendInput, type EmailSendResult, type ExplainConfigOverride, type ExplainNode, type ExplainRequest, type ExplainResult, type ExplainSibling, type ExplainWarning, type ListAnomaliesOptions, type ListAnomaliesResponse, type LoadManifestOptions, type MetricEdge, type MetricNode, type MetricTree, MetricTreeClient, type OpportunityRequest, type OpportunityResult, type OxyAirwayApi, OxyAnswer, type OxyAnswerProps, OxyApiError, type OxyAppFunctionManifest, type OxyAppLogLevel, type OxyAppLogger, type OxyAppManifest, OxyAppProvider, type OxyAppProviderProps, OxyChat, type OxyChatProps, type OxyEmailApi, type OxyFetchResult, type OxyFunctionContext, type OxyFunctionHandler, type OxyFunctionRequest, type OxyFunctionRow, type OxyFunctionUser, type OxyInjectedAppConfig, type OxySecretsApi, type OxySemanticApi, type OxyWarehouseApi, type PredictChange, type PredictImpact, type PredictResult, type ProcedureProgress, type ProcedureResult, type ProcedureRunState, type ResolvedCustomerAppManifest, type ScanOptions, type ScanResponse, type SegmentOpportunity, type SemanticArrayOp, type SemanticDateRangeOp, type SemanticFilter, type SemanticScalarOp, type SemanticTimeDimension, type SensitivityDriver, type SensitivityResult, type SkippedDimension, type SplitKind, type UseAgentRunInput, type UseAgentRunResult, type UseFunctionResult, type UseProcedureRunInput, type UseProcedureRunOpts, type UseProcedureRunResult, type UseQueryInput, type UseQueryOpts, type UseQueryResult, type UseSemanticQueryInput, type UseSemanticQueryOpts, type UseSemanticQueryResult, _resetCustomerAppManifestCacheForTest, apiErrorFromResponse, getCustomerAppDebug, getOxyAppLogger, interpretCustomerAppError, loadCustomerAppManifest, readInjectedAppConfig, setOxyAppLogger, useAgentRun, useFunction, useProcedureRun, useQuery, useResolvedManifest, useSemanticQuery, useTrackEvent };
620
+ export { type AgentArtifact, type AgentRunEvent, type AgentRunState, type AgentSqlArtifact, AnomaliesClient, type Anomaly, type AnomalySeverity, type AnomalyStatus, type AppFetcher, type CustomerAppDebugSnapshot, type CustomerAppErrorReport, type DimensionOpportunity, type DriverAttribution, type DriverConfidence, type DriverDirection, type DriverForm, type DriverStrength, type EdgeKind, type EmailSendInput, type EmailSendResult, type ExplainConfigOverride, type ExplainNode, type ExplainRequest, type ExplainResult, type ExplainSibling, type ExplainWarning, type ListAnomaliesOptions, type ListAnomaliesResponse, type LoadManifestOptions, type MetricEdge, type MetricNode, type MetricTree, MetricTreeClient, type OpportunityRequest, type OpportunityResult, type OxyAirwayApi, OxyAnswer, type OxyAnswerProps, OxyApiError, type OxyAppFunctionManifest, type OxyAppLogLevel, type OxyAppLogger, type OxyAppManifest, OxyAppProvider, type OxyAppProviderProps, OxyChat, type OxyChatProps, type OxyEmailApi, type OxyFetchResult, type OxyFunctionContext, type OxyFunctionHandler, type OxyFunctionRequest, type OxyFunctionRow, type OxyFunctionUser, type OxyInjectedAppConfig, type OxySecretsApi, type OxySemanticApi, type OxyWarehouseApi, type PredictChange, type PredictImpact, type PredictResult, type ProcedureProgress, type ProcedureResult, type ProcedureRunState, type ResolvedCustomerAppManifest, type ScanOptions, type ScanResponse, type SegmentOpportunity, type SemanticArrayOp, type SemanticDateRangeOp, type SemanticFilter, type SemanticScalarOp, type SemanticTimeDimension, type SensitivityDriver, type SensitivityResult, type SkippedDimension, type SplitKind, type UseAgentRunInput, type UseAgentRunResult, type UseFunctionResult, type UseProcedureRunInput, type UseProcedureRunOpts, type UseProcedureRunResult, type UseQueryInput, type UseQueryOpts, type UseQueryResult, type UseSemanticQueryInput, type UseSemanticQueryOpts, type UseSemanticQueryResult, _resetCustomerAppManifestCacheForTest, apiErrorFromResponse, getCustomerAppDebug, getOxyAppLogger, interpretCustomerAppError, loadCustomerAppManifest, readInjectedAppConfig, setOxyAppLogger, useAgentRun, useFunction, useOxyApp, useProcedureRun, useQuery, useResolvedManifest, useSemanticQuery, useTrackEvent };
1240
621
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/config.ts","../src/metricTree.ts","../src/anomalies.ts","../src/customer-app/manifest.ts","../src/customer-app/debug.ts","../src/customer-app/errors.ts","../src/customer-app/function-context.ts","../src/customer-app/inject.ts","../src/customer-app/logger.ts","../src/customer-app/function-sse.ts","../src/customer-app/react.tsx"],"mappings":";;;;;;UAGiB;;;;EAIf;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;;EAQA;;;;;EAMA;;;;KCjCU;KACA;KACA;KACA;KACA;UAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,MAAM;;EAEN;EACA,WAAW;EACX,UAAU;EACV,YAAY;EACZ;EACA,MAAM;EACN;EACA;EACA;EACA;;UAGe;EACf,OAAO;EACP,OAAO;EACP;;UAKe;EACf;EACA;EACA;EACA;EACA,OAAO;EACP,WAAW;EACX,UAAU;EACV;EACA;;UAGe;EACf;EACA,SAAS;;UAKM;EACf;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,MAAM;EACN;;UAGe;EACf,QAAQ;EACR,SAAS;;KAKC;EACN;EAAmB;;EACnB;EAAmB;EAAmB;;EACtC;EAA6B;EAAmB;;EAChD;EAAuB;EAAmB;EAAe;;UAE9C;EACf,OAAO;EACP;EACA;EACA;;UAGe;EACf,OAAO;EACP;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;EACA,WAAW;;UAGI;EACf;EACA;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;;KAGU;EAEN;EACA;EACA;EACA;;EAGA;EACA;EACA;EACA;EACA;;EAGA;EACA;EACA;EACA;;UAGW;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,SAAS;;UAGM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;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EA;EACA;EACA,OAAO;EACP;;;;;;;;;;;;iBAac,iBAAiB,MAAM,yBACrC,OAAO,uBACP,OAAM,uBACL,uBAAuB;KAoHd;UAEK;EACf;;UAGe;;;EAGf;EACA;;EAEA;;UAGe;EACf;EACA;;UAGe;EACf;EACA,SAAS;;UAGM;EACf,OAAO;EACP,MAAM,SAAS;;EAEf;EACA,UAAU;EACV,QAAQ;EACR,OAAO;;;;;;;;;;;;;;;;;;;;iBAyBO,gBACd,OAAO,sBACP,OAAM,sBACL;KAsLS;UAEK;EACf;EACA;;;;;;UAOe;EACf;;;EAGA;;;EAGA;EACA;;EAEA;IACE;IACA;IACA;;;;;EAKF;;KAGU,gBAAgB;UAEX;EACf;;UAGe;EACf,OAAO;;EAEP,MAAM,kBAAkB;IAAS;;;EAEjC;;EAEA,QAAQ;;;;EAIR,WAAW;;EAEX;;EAEA;;EAEA;;;;;;;;;;;;;;;;;;;EAmBA;EACA,OAAO;;iBAGO,YAAY,OAAO,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAigBtC,kBAAkB,cAAc,UAAU;UA6GzC;;EAEf;;EAEA,YAAY;;EAEZ,OAAO;;EAEP;;EAEA,QAAQ;;;;;;;;EAQR;;EAEA;;;EAGA;;EAEA;;;;;;;;;;;;;;;;;;;iBAoBc,UAAU,OAAO,iBAAiB,MAAM,IAAI;UA+D3C;;EAEf;;EAEA;;EAEA;;EAEA,aAAa,MAAM;;EAEnB;;EAEA;;;;;;;;;;;;;;iBAec,QAAQ,OAAO,eAAe,MAAM,IAAI"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/config.ts","../src/metricTree.ts","../src/anomalies.ts","../src/customer-app/debug.ts","../src/customer-app/function-context.ts","../src/customer-app/inject.ts","../src/customer-app/logger.ts"],"mappings":";;;;;;UAGiB;;;;EAIf;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;;EAQA;;;;;EAMA;;;;KCjCU;KACA;KACA;KACA;KACA;UAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,MAAM;;EAEN;EACA,WAAW;EACX,UAAU;EACV,YAAY;EACZ;EACA,MAAM;EACN;EACA;EACA;EACA;;UAGe;EACf,OAAO;EACP,OAAO;EACP;;UAKe;EACf;EACA;EACA;EACA;EACA,OAAO;EACP,WAAW;EACX,UAAU;EACV;EACA;;UAGe;EACf;EACA,SAAS;;UAKM;EACf;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,MAAM;EACN;;UAGe;EACf,QAAQ;EACR,SAAS;;KAKC;EACN;EAAmB;;EACnB;EAAmB;EAAmB;;EACtC;EAA6B;EAAmB;;EAChD;EAAuB;EAAmB;EAAe;;UAE9C;EACf,OAAO;EACP;EACA;EACA;;UAGe;EACf,OAAO;EACP;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;EACA,WAAW;;UAGI;EACf;EACA;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;;KAGU;EAEN;EACA;EACA;EACA;;EAGA;EACA;EACA;EACA;EACA;;EAGA;EACA;EACA;EACA;;UAGW;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,SAAS;;UAGM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA,qBAAqB;EACrB;EACA,WAAW;;UAKI;EACf;EACA;EACA;EACA;EACA;;EAEA;;UAGe;EACf;EACA;;EAEA;EACA;EACA,UAAU;EACV;;UAGe;EACf;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;;EAEA;EACA,YAAY;EACZ,oBAAoB;EACpB,YAAY;;;;;;;KAUF,eAAa,GAAG,kBAAkB,UAAU,gBAAgB,QAAQ;;;;;;;;;;;;;;;;cAiBnE;mBACM;mBACA;EAEjB,YAAY,QAAQ,WAAW,SAAS;UAKhC;UAIA;;;;;;;;;;;;;EAmBF,QAAQ,gBAAgB,QAAQ;;;;;;;;;;;;;;EAkBhC,eAAe,oBAA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