@zarel-ai/sdk 0.6.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/LICENSE +21 -0
- package/README.md +412 -0
- package/dist/_internal/auth-headers.d.ts +19 -0
- package/dist/_internal/auth-headers.d.ts.map +1 -0
- package/dist/_internal/auth-headers.js +30 -0
- package/dist/_internal/auth-headers.js.map +1 -0
- package/dist/_internal/confirmation.d.ts +24 -0
- package/dist/_internal/confirmation.d.ts.map +1 -0
- package/dist/_internal/confirmation.js +54 -0
- package/dist/_internal/confirmation.js.map +1 -0
- package/dist/_internal/event-iterator.d.ts +18 -0
- package/dist/_internal/event-iterator.d.ts.map +1 -0
- package/dist/_internal/event-iterator.js +151 -0
- package/dist/_internal/event-iterator.js.map +1 -0
- package/dist/_internal/fetch-client.d.ts +141 -0
- package/dist/_internal/fetch-client.d.ts.map +1 -0
- package/dist/_internal/fetch-client.js +471 -0
- package/dist/_internal/fetch-client.js.map +1 -0
- package/dist/_internal/interceptors.d.ts +40 -0
- package/dist/_internal/interceptors.d.ts.map +1 -0
- package/dist/_internal/interceptors.js +28 -0
- package/dist/_internal/interceptors.js.map +1 -0
- package/dist/_internal/mcp.d.ts +11 -0
- package/dist/_internal/mcp.d.ts.map +1 -0
- package/dist/_internal/mcp.js +79 -0
- package/dist/_internal/mcp.js.map +1 -0
- package/dist/_internal/pagination.d.ts +71 -0
- package/dist/_internal/pagination.d.ts.map +1 -0
- package/dist/_internal/pagination.js +130 -0
- package/dist/_internal/pagination.js.map +1 -0
- package/dist/_internal/require-token.d.ts +17 -0
- package/dist/_internal/require-token.d.ts.map +1 -0
- package/dist/_internal/require-token.js +25 -0
- package/dist/_internal/require-token.js.map +1 -0
- package/dist/_internal/retry-after.d.ts +2 -0
- package/dist/_internal/retry-after.d.ts.map +1 -0
- package/dist/_internal/retry-after.js +34 -0
- package/dist/_internal/retry-after.js.map +1 -0
- package/dist/_internal/sse-client.d.ts +43 -0
- package/dist/_internal/sse-client.d.ts.map +1 -0
- package/dist/_internal/sse-client.js +250 -0
- package/dist/_internal/sse-client.js.map +1 -0
- package/dist/_internal/version.d.ts +5 -0
- package/dist/_internal/version.d.ts.map +1 -0
- package/dist/_internal/version.js +12 -0
- package/dist/_internal/version.js.map +1 -0
- package/dist/client.d.ts +74 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +86 -0
- package/dist/client.js.map +1 -0
- package/dist/contract/_singleton.d.ts +18 -0
- package/dist/contract/_singleton.d.ts.map +1 -0
- package/dist/contract/_singleton.js +27 -0
- package/dist/contract/_singleton.js.map +1 -0
- package/dist/contract/actions.d.ts +18 -0
- package/dist/contract/actions.d.ts.map +1 -0
- package/dist/contract/actions.js +36 -0
- package/dist/contract/actions.js.map +1 -0
- package/dist/contract/assistant.d.ts +65 -0
- package/dist/contract/assistant.d.ts.map +1 -0
- package/dist/contract/assistant.js +44 -0
- package/dist/contract/assistant.js.map +1 -0
- package/dist/contract/batch.d.ts +27 -0
- package/dist/contract/batch.d.ts.map +1 -0
- package/dist/contract/batch.js +20 -0
- package/dist/contract/batch.js.map +1 -0
- package/dist/contract/capabilities.d.ts +21 -0
- package/dist/contract/capabilities.d.ts.map +1 -0
- package/dist/contract/capabilities.js +31 -0
- package/dist/contract/capabilities.js.map +1 -0
- package/dist/contract/constraints.d.ts +21 -0
- package/dist/contract/constraints.d.ts.map +1 -0
- package/dist/contract/constraints.js +31 -0
- package/dist/contract/constraints.js.map +1 -0
- package/dist/contract/events.d.ts +33 -0
- package/dist/contract/events.d.ts.map +1 -0
- package/dist/contract/events.js +56 -0
- package/dist/contract/events.js.map +1 -0
- package/dist/contract/flows.d.ts +44 -0
- package/dist/contract/flows.d.ts.map +1 -0
- package/dist/contract/flows.js +109 -0
- package/dist/contract/flows.js.map +1 -0
- package/dist/contract/governance.d.ts +6 -0
- package/dist/contract/governance.d.ts.map +1 -0
- package/dist/contract/governance.js +17 -0
- package/dist/contract/governance.js.map +1 -0
- package/dist/contract/index.d.ts +137 -0
- package/dist/contract/index.d.ts.map +1 -0
- package/dist/contract/index.js +177 -0
- package/dist/contract/index.js.map +1 -0
- package/dist/contract/metadata.d.ts +26 -0
- package/dist/contract/metadata.d.ts.map +1 -0
- package/dist/contract/metadata.js +25 -0
- package/dist/contract/metadata.js.map +1 -0
- package/dist/contract/process-model.d.ts +31 -0
- package/dist/contract/process-model.d.ts.map +1 -0
- package/dist/contract/process-model.js +51 -0
- package/dist/contract/process-model.js.map +1 -0
- package/dist/contract/roots/channels.d.ts +27 -0
- package/dist/contract/roots/channels.d.ts.map +1 -0
- package/dist/contract/roots/channels.js +53 -0
- package/dist/contract/roots/channels.js.map +1 -0
- package/dist/contract/roots/events.d.ts +7 -0
- package/dist/contract/roots/events.d.ts.map +1 -0
- package/dist/contract/roots/events.js +19 -0
- package/dist/contract/roots/events.js.map +1 -0
- package/dist/contract/roots/index.d.ts +15 -0
- package/dist/contract/roots/index.d.ts.map +1 -0
- package/dist/contract/roots/index.js +38 -0
- package/dist/contract/roots/index.js.map +1 -0
- package/dist/contract/roots/mcp-servers.d.ts +46 -0
- package/dist/contract/roots/mcp-servers.d.ts.map +1 -0
- package/dist/contract/roots/mcp-servers.js +68 -0
- package/dist/contract/roots/mcp-servers.js.map +1 -0
- package/dist/contract/roots/profiles.d.ts +18 -0
- package/dist/contract/roots/profiles.d.ts.map +1 -0
- package/dist/contract/roots/profiles.js +31 -0
- package/dist/contract/roots/profiles.js.map +1 -0
- package/dist/contract/roots/timezone.d.ts +10 -0
- package/dist/contract/roots/timezone.d.ts.map +1 -0
- package/dist/contract/roots/timezone.js +19 -0
- package/dist/contract/roots/timezone.js.map +1 -0
- package/dist/contract/roots/treatment.d.ts +11 -0
- package/dist/contract/roots/treatment.d.ts.map +1 -0
- package/dist/contract/roots/treatment.js +37 -0
- package/dist/contract/roots/treatment.js.map +1 -0
- package/dist/contract/roots/vocabulary.d.ts +18 -0
- package/dist/contract/roots/vocabulary.d.ts.map +1 -0
- package/dist/contract/roots/vocabulary.js +31 -0
- package/dist/contract/roots/vocabulary.js.map +1 -0
- package/dist/contract/schemas.d.ts +18 -0
- package/dist/contract/schemas.d.ts.map +1 -0
- package/dist/contract/schemas.js +31 -0
- package/dist/contract/schemas.js.map +1 -0
- package/dist/contract/skills.d.ts +20 -0
- package/dist/contract/skills.d.ts.map +1 -0
- package/dist/contract/skills.js +36 -0
- package/dist/contract/skills.js.map +1 -0
- package/dist/errors.d.ts +65 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +80 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/contract.d.ts +7688 -0
- package/dist/generated/contract.d.ts.map +1 -0
- package/dist/generated/contract.js +7 -0
- package/dist/generated/contract.js.map +1 -0
- package/dist/generated/index.d.ts +41 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +3 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/runtime.d.ts +4020 -0
- package/dist/generated/runtime.d.ts.map +1 -0
- package/dist/generated/runtime.js +7 -0
- package/dist/generated/runtime.js.map +1 -0
- package/dist/generated/unwrap-map.d.ts +989 -0
- package/dist/generated/unwrap-map.d.ts.map +1 -0
- package/dist/generated/unwrap-map.js +344 -0
- package/dist/generated/unwrap-map.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/actions.d.ts +33 -0
- package/dist/resources/actions.d.ts.map +1 -0
- package/dist/resources/actions.js +52 -0
- package/dist/resources/actions.js.map +1 -0
- package/dist/resources/audit.d.ts +52 -0
- package/dist/resources/audit.d.ts.map +1 -0
- package/dist/resources/audit.js +86 -0
- package/dist/resources/audit.js.map +1 -0
- package/dist/resources/authorization-ceiling.d.ts +25 -0
- package/dist/resources/authorization-ceiling.d.ts.map +1 -0
- package/dist/resources/authorization-ceiling.js +26 -0
- package/dist/resources/authorization-ceiling.js.map +1 -0
- package/dist/resources/authorization-operation-ids.d.ts +15 -0
- package/dist/resources/authorization-operation-ids.d.ts.map +1 -0
- package/dist/resources/authorization-operation-ids.js +31 -0
- package/dist/resources/authorization-operation-ids.js.map +1 -0
- package/dist/resources/authorization.d.ts +60 -0
- package/dist/resources/authorization.d.ts.map +1 -0
- package/dist/resources/authorization.js +51 -0
- package/dist/resources/authorization.js.map +1 -0
- package/dist/resources/authorizations.d.ts +38 -0
- package/dist/resources/authorizations.d.ts.map +1 -0
- package/dist/resources/authorizations.js +19 -0
- package/dist/resources/authorizations.js.map +1 -0
- package/dist/resources/channels.d.ts +36 -0
- package/dist/resources/channels.d.ts.map +1 -0
- package/dist/resources/channels.js +61 -0
- package/dist/resources/channels.js.map +1 -0
- package/dist/resources/contracts.d.ts +46 -0
- package/dist/resources/contracts.d.ts.map +1 -0
- package/dist/resources/contracts.js +86 -0
- package/dist/resources/contracts.js.map +1 -0
- package/dist/resources/conversation-sessions.d.ts +62 -0
- package/dist/resources/conversation-sessions.d.ts.map +1 -0
- package/dist/resources/conversation-sessions.js +48 -0
- package/dist/resources/conversation-sessions.js.map +1 -0
- package/dist/resources/conversation.d.ts +48 -0
- package/dist/resources/conversation.d.ts.map +1 -0
- package/dist/resources/conversation.js +104 -0
- package/dist/resources/conversation.js.map +1 -0
- package/dist/resources/embedding-credentials.d.ts +60 -0
- package/dist/resources/embedding-credentials.d.ts.map +1 -0
- package/dist/resources/embedding-credentials.js +53 -0
- package/dist/resources/embedding-credentials.js.map +1 -0
- package/dist/resources/entities.d.ts +66 -0
- package/dist/resources/entities.d.ts.map +1 -0
- package/dist/resources/entities.js +106 -0
- package/dist/resources/entities.js.map +1 -0
- package/dist/resources/events.d.ts +45 -0
- package/dist/resources/events.d.ts.map +1 -0
- package/dist/resources/events.js +71 -0
- package/dist/resources/events.js.map +1 -0
- package/dist/resources/flows.d.ts +45 -0
- package/dist/resources/flows.d.ts.map +1 -0
- package/dist/resources/flows.js +82 -0
- package/dist/resources/flows.js.map +1 -0
- package/dist/resources/imports.d.ts +8 -0
- package/dist/resources/imports.d.ts.map +1 -0
- package/dist/resources/imports.js +14 -0
- package/dist/resources/imports.js.map +1 -0
- package/dist/resources/index.d.ts +24 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +41 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/llm-credentials.d.ts +47 -0
- package/dist/resources/llm-credentials.d.ts.map +1 -0
- package/dist/resources/llm-credentials.js +46 -0
- package/dist/resources/llm-credentials.js.map +1 -0
- package/dist/resources/llm-services.d.ts +46 -0
- package/dist/resources/llm-services.d.ts.map +1 -0
- package/dist/resources/llm-services.js +41 -0
- package/dist/resources/llm-services.js.map +1 -0
- package/dist/resources/mcp.d.ts +8 -0
- package/dist/resources/mcp.d.ts.map +1 -0
- package/dist/resources/mcp.js +25 -0
- package/dist/resources/mcp.js.map +1 -0
- package/dist/resources/receipts.d.ts +25 -0
- package/dist/resources/receipts.d.ts.map +1 -0
- package/dist/resources/receipts.js +54 -0
- package/dist/resources/receipts.js.map +1 -0
- package/dist/resources/records.d.ts +51 -0
- package/dist/resources/records.d.ts.map +1 -0
- package/dist/resources/records.js +103 -0
- package/dist/resources/records.js.map +1 -0
- package/dist/resources/role-assignments.d.ts +27 -0
- package/dist/resources/role-assignments.d.ts.map +1 -0
- package/dist/resources/role-assignments.js +40 -0
- package/dist/resources/role-assignments.js.map +1 -0
- package/dist/resources/roles.d.ts +39 -0
- package/dist/resources/roles.d.ts.map +1 -0
- package/dist/resources/roles.js +42 -0
- package/dist/resources/roles.js.map +1 -0
- package/dist/resources/runtime-entities.d.ts +23 -0
- package/dist/resources/runtime-entities.d.ts.map +1 -0
- package/dist/resources/runtime-entities.js +29 -0
- package/dist/resources/runtime-entities.js.map +1 -0
- package/dist/resources/state-machine.d.ts +45 -0
- package/dist/resources/state-machine.d.ts.map +1 -0
- package/dist/resources/state-machine.js +86 -0
- package/dist/resources/state-machine.js.map +1 -0
- package/dist/resources/system.d.ts +12 -0
- package/dist/resources/system.d.ts.map +1 -0
- package/dist/resources/system.js +26 -0
- package/dist/resources/system.js.map +1 -0
- package/dist/resources/tools.d.ts +22 -0
- package/dist/resources/tools.d.ts.map +1 -0
- package/dist/resources/tools.js +33 -0
- package/dist/resources/tools.js.map +1 -0
- package/dist/resources/traces.d.ts +65 -0
- package/dist/resources/traces.d.ts.map +1 -0
- package/dist/resources/traces.js +97 -0
- package/dist/resources/traces.js.map +1 -0
- package/dist/runtime/index.d.ts +128 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +210 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/types/actions.d.ts +32 -0
- package/dist/types/actions.d.ts.map +1 -0
- package/dist/types/actions.js +9 -0
- package/dist/types/actions.js.map +1 -0
- package/dist/types/audit.d.ts +65 -0
- package/dist/types/audit.d.ts.map +1 -0
- package/dist/types/audit.js +14 -0
- package/dist/types/audit.js.map +1 -0
- package/dist/types/channels.d.ts +37 -0
- package/dist/types/channels.d.ts.map +1 -0
- package/dist/types/channels.js +6 -0
- package/dist/types/channels.js.map +1 -0
- package/dist/types/confirmation.d.ts +53 -0
- package/dist/types/confirmation.d.ts.map +1 -0
- package/dist/types/confirmation.js +17 -0
- package/dist/types/confirmation.js.map +1 -0
- package/dist/types/contracts.d.ts +194 -0
- package/dist/types/contracts.d.ts.map +1 -0
- package/dist/types/contracts.js +10 -0
- package/dist/types/contracts.js.map +1 -0
- package/dist/types/conversation-sessions.d.ts +58 -0
- package/dist/types/conversation-sessions.d.ts.map +1 -0
- package/dist/types/conversation-sessions.js +6 -0
- package/dist/types/conversation-sessions.js.map +1 -0
- package/dist/types/conversation.d.ts +96 -0
- package/dist/types/conversation.d.ts.map +1 -0
- package/dist/types/conversation.js +3 -0
- package/dist/types/conversation.js.map +1 -0
- package/dist/types/entities.d.ts +22 -0
- package/dist/types/entities.d.ts.map +1 -0
- package/dist/types/entities.js +4 -0
- package/dist/types/entities.js.map +1 -0
- package/dist/types/events-stream.d.ts +82 -0
- package/dist/types/events-stream.d.ts.map +1 -0
- package/dist/types/events-stream.js +65 -0
- package/dist/types/events-stream.js.map +1 -0
- package/dist/types/flows-contract.d.ts +8 -0
- package/dist/types/flows-contract.d.ts.map +1 -0
- package/dist/types/flows-contract.js +7 -0
- package/dist/types/flows-contract.js.map +1 -0
- package/dist/types/flows.d.ts +66 -0
- package/dist/types/flows.d.ts.map +1 -0
- package/dist/types/flows.js +25 -0
- package/dist/types/flows.js.map +1 -0
- package/dist/types/imports.d.ts +57 -0
- package/dist/types/imports.d.ts.map +1 -0
- package/dist/types/imports.js +3 -0
- package/dist/types/imports.js.map +1 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/locale.d.ts +24 -0
- package/dist/types/locale.d.ts.map +1 -0
- package/dist/types/locale.js +17 -0
- package/dist/types/locale.js.map +1 -0
- package/dist/types/mcp.d.ts +28 -0
- package/dist/types/mcp.d.ts.map +1 -0
- package/dist/types/mcp.js +12 -0
- package/dist/types/mcp.js.map +1 -0
- package/dist/types/platform.d.ts +51 -0
- package/dist/types/platform.d.ts.map +1 -0
- package/dist/types/platform.js +4 -0
- package/dist/types/platform.js.map +1 -0
- package/dist/types/receipt.d.ts +79 -0
- package/dist/types/receipt.d.ts.map +1 -0
- package/dist/types/receipt.js +15 -0
- package/dist/types/receipt.js.map +1 -0
- package/dist/types/records.d.ts +45 -0
- package/dist/types/records.d.ts.map +1 -0
- package/dist/types/records.js +4 -0
- package/dist/types/records.js.map +1 -0
- package/dist/types/spec.d.ts +6 -0
- package/dist/types/spec.d.ts.map +1 -0
- package/dist/types/spec.js +3 -0
- package/dist/types/spec.js.map +1 -0
- package/dist/types/state-machine.d.ts +100 -0
- package/dist/types/state-machine.d.ts.map +1 -0
- package/dist/types/state-machine.js +9 -0
- package/dist/types/state-machine.js.map +1 -0
- package/dist/types/system.d.ts +28 -0
- package/dist/types/system.d.ts.map +1 -0
- package/dist/types/system.js +3 -0
- package/dist/types/system.js.map +1 -0
- package/dist/types/tools.d.ts +188 -0
- package/dist/types/tools.d.ts.map +1 -0
- package/dist/types/tools.js +22 -0
- package/dist/types/tools.js.map +1 -0
- package/dist/types/traces.d.ts +77 -0
- package/dist/types/traces.d.ts.map +1 -0
- package/dist/types/traces.js +11 -0
- package/dist/types/traces.js.map +1 -0
- package/dist/types/workflows.d.ts +42 -0
- package/dist/types/workflows.d.ts.map +1 -0
- package/dist/types/workflows.js +11 -0
- package/dist/types/workflows.js.map +1 -0
- package/package.json +103 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** A flow run. Mirrors `FlowInstanceRow` — every field the route actually sends. */
|
|
2
|
+
export interface FlowInstance {
|
|
3
|
+
id: string;
|
|
4
|
+
tenant_name: string;
|
|
5
|
+
flow_name: string;
|
|
6
|
+
session_id: string;
|
|
7
|
+
/** Who started the run. `'anonymous'` for every channel party — see `party_ref`. */
|
|
8
|
+
actor: string;
|
|
9
|
+
/** ADR-0133 §B.5 — the party pair that owns the run; null for a non-party actor. */
|
|
10
|
+
party_ref?: string | null;
|
|
11
|
+
channel_name?: string | null;
|
|
12
|
+
status: 'running' | 'paused' | 'resuming' | 'completed' | 'failed';
|
|
13
|
+
trigger_data?: Record<string, unknown>;
|
|
14
|
+
final_state?: Record<string, unknown>;
|
|
15
|
+
error?: string;
|
|
16
|
+
/** When the run started. This is the column the table has; there is no `started_at`. */
|
|
17
|
+
created_at: string;
|
|
18
|
+
/**
|
|
19
|
+
* Last write to the row. For a run in a TERMINAL status (`completed` / `failed`)
|
|
20
|
+
* this is when it ended — the terminal status write is the last one — so
|
|
21
|
+
* `updated_at - created_at` is the run's duration. It is NOT a completion
|
|
22
|
+
* timestamp for a run still in flight; check `status` before reading it as one.
|
|
23
|
+
* For an exact per-run figure prefer the `FlowCompleted` / `FlowFailed` event's
|
|
24
|
+
* `duration_ms`, which the engine measures rather than infers.
|
|
25
|
+
*/
|
|
26
|
+
updated_at: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* One appended flow lifecycle event. Mirrors `FlowEventRow`.
|
|
30
|
+
*
|
|
31
|
+
* This is where per-step history lives — the thing `FlowInstance.steps` claimed to
|
|
32
|
+
* be. A step appears as an event whose `step_name` is set and whose `event_type` is
|
|
33
|
+
* one of the `FlowStep*` kinds.
|
|
34
|
+
*/
|
|
35
|
+
export interface FlowEvent {
|
|
36
|
+
id: string;
|
|
37
|
+
tenant_name: string;
|
|
38
|
+
instance_id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The lifecycle kind: `FlowStarted`, `FlowStepCompleted`, `FlowStepFailed`,
|
|
41
|
+
* `FlowStepSkipped`, `FlowStepAlreadyCompleted`, `FlowPaused`, `FlowResumed`,
|
|
42
|
+
* `FlowCompleted`, `FlowFailed`, `FlowConstraintViolated`,
|
|
43
|
+
* `FlowConstraintUnverifiable`.
|
|
44
|
+
*
|
|
45
|
+
* Deliberately `string` and not a union. The vocabulary is owned by
|
|
46
|
+
* `FlowEventKind` in `@zarel-ai/contract`, which this package cannot import —
|
|
47
|
+
* the SDK is dependency-free by design. A union here would be a FOURTH
|
|
48
|
+
* hand-synced copy of that list, and `flow-vocabulary-parity.ts` exists in
|
|
49
|
+
* `data-access` precisely because copies of it had already drifted twice.
|
|
50
|
+
*/
|
|
51
|
+
event_type: string;
|
|
52
|
+
/** Present on the per-step kinds; absent on run-level ones (`FlowStarted`, …). */
|
|
53
|
+
step_name?: string;
|
|
54
|
+
output_key?: string;
|
|
55
|
+
payload?: Record<string, unknown>;
|
|
56
|
+
/** Measured elapsed time for the step, or for the whole run on a terminal event. */
|
|
57
|
+
duration_ms?: number;
|
|
58
|
+
/** Which run of the instance appended this row (resume increments it). */
|
|
59
|
+
attempt: number;
|
|
60
|
+
created_at: string;
|
|
61
|
+
}
|
|
62
|
+
export type FlowInstanceListResponse = FlowInstance[];
|
|
63
|
+
export type FlowInstanceResponse = FlowInstance;
|
|
64
|
+
export type FlowEventListResponse = FlowEvent[];
|
|
65
|
+
export type FlowEventResponse = FlowEvent;
|
|
66
|
+
//# sourceMappingURL=flows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/types/flows.ts"],"names":[],"mappings":"AAuBA,oFAAoF;AACpF,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,MAAM,wBAAwB,GAAG,YAAY,EAAE,CAAC;AACtD,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAChD,MAAM,MAAM,qBAAqB,GAAG,SAAS,EAAE,CAAC;AAChD,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ── Flows ────────────────────────────────────────────────────────────────
|
|
3
|
+
//
|
|
4
|
+
// Canonical runtime-scope flow types. Backing tables:
|
|
5
|
+
// runtime."flows/instances" (readonly)
|
|
6
|
+
// runtime."flows/events" (readonly)
|
|
7
|
+
// runtime."flows/callbacks" (mutable — PATCH to resolve a pending callback)
|
|
8
|
+
//
|
|
9
|
+
// THESE TYPES ARE THE WIRE, and until now they were not. `FlowInstance` declared
|
|
10
|
+
// `started_at: string` (required), `completed_at`, and a `steps: FlowStep[]`
|
|
11
|
+
// collection. The route returns the repository row verbatim
|
|
12
|
+
// (`FlowInstanceRepository.mapRow`) and that row has none of the three: the table
|
|
13
|
+
// carries `created_at` / `updated_at` and keeps per-step history in the SIBLING
|
|
14
|
+
// `flows/events` table. So every consumer that read `started_at` got `undefined`
|
|
15
|
+
// (`new Date(undefined)` → "Invalid Date") and every consumer that mapped `steps`
|
|
16
|
+
// crashed on `undefined`.
|
|
17
|
+
//
|
|
18
|
+
// Nothing caught it because the OpenAPI types both responses as a bare
|
|
19
|
+
// `$ref: OkEnvelope` with no schema, so there is no generated type to disagree
|
|
20
|
+
// with and no parity gate that could compare them. The hand-written declaration
|
|
21
|
+
// was the only description of the shape, and it described a shape that never
|
|
22
|
+
// existed. Keep this file matched to `FlowInstanceRow` / `FlowEventRow` in
|
|
23
|
+
// `@zarel-ai/data-access`; those are the producers.
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
//# sourceMappingURL=flows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../src/types/flows.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,EAAE;AACF,sDAAsD;AACtD,2CAA2C;AAC3C,2CAA2C;AAC3C,gFAAgF;AAChF,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAC7E,4DAA4D;AAC5D,kFAAkF;AAClF,gFAAgF;AAChF,iFAAiF;AACjF,kFAAkF;AAClF,0BAA0B;AAC1B,EAAE;AACF,uEAAuE;AACvE,+EAA+E;AAC/E,gFAAgF;AAChF,6EAA6E;AAC7E,2EAA2E;AAC3E,oDAAoD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type ImportExecutionMode = 'strict' | 'best_effort';
|
|
2
|
+
export interface BulkImportItem {
|
|
3
|
+
data: Record<string, unknown>;
|
|
4
|
+
owner_name?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BulkImportRequest {
|
|
7
|
+
items: BulkImportItem[];
|
|
8
|
+
mode?: ImportExecutionMode;
|
|
9
|
+
}
|
|
10
|
+
export interface BulkImportItemResult {
|
|
11
|
+
index: number;
|
|
12
|
+
status: 'created' | 'failed' | 'skipped';
|
|
13
|
+
record?: unknown;
|
|
14
|
+
error?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface BulkImportResponse {
|
|
17
|
+
success: boolean;
|
|
18
|
+
entity_name: string;
|
|
19
|
+
mode: ImportExecutionMode;
|
|
20
|
+
total_items: number;
|
|
21
|
+
processed_items: number;
|
|
22
|
+
imported_count: number;
|
|
23
|
+
failed_count: number;
|
|
24
|
+
skipped_count: number;
|
|
25
|
+
items: BulkImportItemResult[];
|
|
26
|
+
}
|
|
27
|
+
export interface SnapshotImportFile {
|
|
28
|
+
metadata: {
|
|
29
|
+
format_version: string;
|
|
30
|
+
tenant: string;
|
|
31
|
+
exported_at?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
};
|
|
34
|
+
users: Array<{
|
|
35
|
+
user_name: string;
|
|
36
|
+
roles: [string, ...string[]];
|
|
37
|
+
}>;
|
|
38
|
+
records: Record<string, Array<{
|
|
39
|
+
owner_name: string;
|
|
40
|
+
id?: number;
|
|
41
|
+
created_at?: string;
|
|
42
|
+
data: Record<string, unknown>;
|
|
43
|
+
}>>;
|
|
44
|
+
}
|
|
45
|
+
export interface SnapshotImportRequest {
|
|
46
|
+
data: SnapshotImportFile;
|
|
47
|
+
mode?: 'clean' | 'restore';
|
|
48
|
+
validation_mode?: 'fail-fast' | 'collect-errors';
|
|
49
|
+
}
|
|
50
|
+
export interface SnapshotImportResponse {
|
|
51
|
+
success: boolean;
|
|
52
|
+
tenant_name: string;
|
|
53
|
+
users_imported: number;
|
|
54
|
+
records_imported: number;
|
|
55
|
+
errors: string[];
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/types/imports.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE3D,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,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
|
+
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../src/types/imports.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type { ConversationRequest, ConversationResponse, ConversationTurn, InteractionContext, ConversationDebugInfo, } from './conversation';
|
|
2
|
+
export type { ActionDispatchParams, ActionDispatchSuccessResponse, } from './actions';
|
|
3
|
+
export type { ConfirmationGuard, ConfirmationChallenge, ConfirmationRetryOptions, } from './confirmation';
|
|
4
|
+
export type { ToolCatalogResponse, McpToolsResponse, ToolCallRequest, ToolCallResponse, UserToolCatalog, UserVisibleEntityTool, UserVisibleAction, UserVisibleTransitionTool, TransitionEdge, UserVisibleActionTool, FieldToolDefinition, McpToolDefinition, } from './tools';
|
|
5
|
+
export type { WorkflowReplayRequest, WorkflowReplayResponse, WorkflowReplayResult, WorkflowReplayEmptyResult, WorkflowReplayEventResult, WorkflowStateMachineConfig, WorkflowTransitionConfig, WorkflowTransitionRule, } from './workflows';
|
|
6
|
+
export type { StateMachineInstance, StateMachineInstanceListResponse, StateMachineInstanceResponse, StateMachineEventListParams, StateMachineEvent, StateMachineEventListResponse, StateMachineEventResponse, TransitionRequestStatus, TransitionRequestListParams, TransitionRequestItem, TransitionRequestListResponse, TransitionRequestResponse, TransitionRequestCreateBody, TransitionRequestPatchBody, TransitionRequestPatchResponse, } from './state-machine';
|
|
7
|
+
export type { FlowInstance, FlowInstanceListResponse, FlowInstanceResponse, FlowEvent, FlowEventListResponse, FlowEventResponse, } from './flows';
|
|
8
|
+
export type { RecordData, RefLabel, RecordListParams, RecordListResponse, RecordResponse, } from './records';
|
|
9
|
+
export type { EntityInput, FieldDefinitionInput, ToolExecutionResult, } from './entities';
|
|
10
|
+
export type { RoleAssignRequest, EventRecord, EventListResponse, EventSubscriptionInput, FlowCallbackResponse, ErrorBody, } from './platform';
|
|
11
|
+
export type { HealthResponse, MetricsResponse, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyListItem, ApiKeyListResponse, ApiKeyDeleteResponse, } from './system';
|
|
12
|
+
export type { ImportExecutionMode, BulkImportItem, BulkImportRequest, BulkImportItemResult, BulkImportResponse, SnapshotImportFile, SnapshotImportRequest, SnapshotImportResponse, } from './imports';
|
|
13
|
+
export type { Trace, TraceEvent, TraceEventError, TraceOutcome, TraceStage, TraceSummary, TraceUserRef, TraceListParams, TraceListResponse, } from './traces';
|
|
14
|
+
export type { SpecSection, ChangeKind, ImpactClass, ReviewerRole, SpecHashes, SpecChange, ImpactSummary, SpecDiff, SpecApplyMode, SpecFiles, SpecPublishRequest, SpecPublishResponse, StrippedGrant, SpecDiffRequest, SpecApplyGating, SpecApplyRequest, SpecApplyResponse, SpecSnapshotV1Response, SpecDryRunStatus, SpecDryRunSubmitRequest, SpecDryRunSubmitResponse, SpecDryRunReport, SpecDryRunJob, } from './contracts';
|
|
15
|
+
export type { ConversationSessionStatus, ConversationSessionSummary, ConversationTurnRecord, ConversationActionRecord, ConversationSessionDetail, ConversationSessionListParams, ConversationSessionListResponse, ConversationSessionDetailResponse, ConversationSessionActionsResponse, } from './conversation-sessions';
|
|
16
|
+
export type { McpJsonRpcRequest, McpJsonRpcResponse, McpJsonRpcSuccess, McpJsonRpcError, } from './mcp';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACR,oBAAoB,EACpB,6BAA6B,GAChC,MAAM,WAAW,CAAC;AAEnB,YAAY,EACR,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,GAC3B,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACR,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,eAAe,E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R,KAAK,EACL,UAAU,EACV,eAAe,EACf,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,iBAAiB,GACpB,MAAM,UAAU,CAAC;AAElB,YAAY,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,QAAQ,EACR,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,GAChB,MAAM,aAAa,CAAC;AAErB,YAAY,EACR,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B,EAC/B,iCAAiC,EACjC,kCAAkC,GACrC,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACR,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAClB,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spec-039 T089-T090 — Locale option for SDK methods that hit
|
|
3
|
+
* locale-aware GET endpoints.
|
|
4
|
+
*
|
|
5
|
+
* Per FR-023: when locale is omitted the SDK MUST omit the `?locale=`
|
|
6
|
+
* query param entirely; the server then applies its own resolution chain
|
|
7
|
+
* (JWT preferences.language → canonical). Setting locale to an
|
|
8
|
+
* explicit value sends `?locale=<value>`.
|
|
9
|
+
*
|
|
10
|
+
* The closed enum mirrors the OpenAPI parameter (en | es). Accepts
|
|
11
|
+
* `string` too so callers using a future-locale code (`'fr'`) get a
|
|
12
|
+
* 400 from the server rather than a TS compile error — keeps the SDK
|
|
13
|
+
* surface forward-compatible.
|
|
14
|
+
*/
|
|
15
|
+
export type SdkLocale = 'en' | 'es' | (string & {});
|
|
16
|
+
export interface LocaleOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Optional locale for semantic content (labels, descriptions) in the
|
|
19
|
+
* response. Server falls back to JWT preferences.language → canonical
|
|
20
|
+
* when omitted.
|
|
21
|
+
*/
|
|
22
|
+
locale?: SdkLocale;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/types/locale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* spec-039 T089-T090 — Locale option for SDK methods that hit
|
|
4
|
+
* locale-aware GET endpoints.
|
|
5
|
+
*
|
|
6
|
+
* Per FR-023: when locale is omitted the SDK MUST omit the `?locale=`
|
|
7
|
+
* query param entirely; the server then applies its own resolution chain
|
|
8
|
+
* (JWT preferences.language → canonical). Setting locale to an
|
|
9
|
+
* explicit value sends `?locale=<value>`.
|
|
10
|
+
*
|
|
11
|
+
* The closed enum mirrors the OpenAPI parameter (en | es). Accepts
|
|
12
|
+
* `string` too so callers using a future-locale code (`'fr'`) get a
|
|
13
|
+
* 400 from the server rather than a TS compile error — keeps the SDK
|
|
14
|
+
* surface forward-compatible.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
//# sourceMappingURL=locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/types/locale.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** A single MCP JSON-RPC 2.0 request message. */
|
|
2
|
+
export interface McpJsonRpcRequest {
|
|
3
|
+
jsonrpc: '2.0';
|
|
4
|
+
/** Omitted for notifications. */
|
|
5
|
+
id?: string | number;
|
|
6
|
+
/** e.g. `initialize`, `tools/list`, `tools/call`. */
|
|
7
|
+
method: string;
|
|
8
|
+
params?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
/** A successful MCP JSON-RPC response. */
|
|
11
|
+
export interface McpJsonRpcSuccess {
|
|
12
|
+
jsonrpc: '2.0';
|
|
13
|
+
id: string | number | null;
|
|
14
|
+
/** Method-agnostic — per-method typing is out of scope. */
|
|
15
|
+
result: unknown;
|
|
16
|
+
}
|
|
17
|
+
/** A protocol-level MCP JSON-RPC error (returned in the union, NOT thrown). */
|
|
18
|
+
export interface McpJsonRpcError {
|
|
19
|
+
jsonrpc: '2.0';
|
|
20
|
+
id: string | number | null;
|
|
21
|
+
error: {
|
|
22
|
+
code: number;
|
|
23
|
+
message: string;
|
|
24
|
+
data?: unknown;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export type McpJsonRpcResponse = McpJsonRpcSuccess | McpJsonRpcError;
|
|
28
|
+
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/types/mcp.ts"],"names":[],"mappings":"AAUA,iDAAiD;AACjD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,KAAK,CAAC;IACf,iCAAiC;IACjC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,0CAA0C;AAC1C,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,2DAA2D;IAC3D,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC5D;AAED,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Spec 2 (track G, MCP transport follow-up) — MCP JSON-RPC transport types.
|
|
3
|
+
//
|
|
4
|
+
// `client.runtime.mcp.call` speaks the MCP "Streamable HTTP" transport
|
|
5
|
+
// (POST /runtime/mcp, stateless, one logical JSON-RPC response per request).
|
|
6
|
+
// These are hand-authored (zero runtime deps — no @modelcontextprotocol/sdk):
|
|
7
|
+
// the OpenAPI types the body/response as opaque objects, so there is nothing to
|
|
8
|
+
// codegen, and MCP methods are open (not enumerated) → `result`/`error.data`
|
|
9
|
+
// stay `unknown`. The response is a discriminated union over `result` xor
|
|
10
|
+
// `error`; callers discriminate with `'error' in response`.
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=mcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/types/mcp.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,EAAE;AACF,uEAAuE;AACvE,6EAA6E;AAC7E,8EAA8E;AAC9E,gFAAgF;AAChF,6EAA6E;AAC7E,0EAA0E;AAC1E,4DAA4D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface RoleAssignRequest {
|
|
2
|
+
target_user_name: string;
|
|
3
|
+
role_name: string;
|
|
4
|
+
expires_at?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface EventSubscriptionInput {
|
|
7
|
+
event_name: string;
|
|
8
|
+
webhook_url: string;
|
|
9
|
+
secret?: string;
|
|
10
|
+
headers?: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
export interface EventRecord {
|
|
13
|
+
id: string;
|
|
14
|
+
type: string;
|
|
15
|
+
source: string;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
payload?: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export interface EventListResponse {
|
|
20
|
+
events: EventRecord[];
|
|
21
|
+
}
|
|
22
|
+
export interface EventSubscription {
|
|
23
|
+
id: number;
|
|
24
|
+
tenant_name?: string;
|
|
25
|
+
event_name: string;
|
|
26
|
+
webhook_url: string;
|
|
27
|
+
secret?: string | null;
|
|
28
|
+
is_active: boolean;
|
|
29
|
+
headers?: Record<string, string> | null;
|
|
30
|
+
created_at: string;
|
|
31
|
+
updated_at?: string;
|
|
32
|
+
}
|
|
33
|
+
export type EventSubscriptionResponse = EventSubscription;
|
|
34
|
+
export type EventSubscriptionListResponse = EventSubscription[];
|
|
35
|
+
export interface EventSubscriptionDeactivateResponse {
|
|
36
|
+
id: number;
|
|
37
|
+
}
|
|
38
|
+
export interface FlowCallbackResponse {
|
|
39
|
+
success: true;
|
|
40
|
+
message?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ErrorBody {
|
|
43
|
+
error: {
|
|
44
|
+
type: string;
|
|
45
|
+
code: string;
|
|
46
|
+
message: string;
|
|
47
|
+
request_id?: string;
|
|
48
|
+
field?: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -0,0 +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ACd;AAID,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE;QACH,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/types/platform.ts"],"names":[],"mappings":";AAAA,4EAA4E"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Receipt read-surface types (Desk Spec 3 — end-user verifiable receipts).
|
|
3
|
+
*
|
|
4
|
+
* Wire shapes mirror the runtime contract module's `Receipt` DTO (see
|
|
5
|
+
* authoring/packages/contract/src/domain/types/receipt.ts). Kept as plain
|
|
6
|
+
* interfaces so SDK consumers need not depend on the runtime contract package
|
|
7
|
+
* (same convention as `types/audit.ts`).
|
|
8
|
+
*
|
|
9
|
+
* A `Receipt` is the caller's OWN governance event, normalized over the three
|
|
10
|
+
* audit signals. It carries only a non-reversible proof (hash + masked value +
|
|
11
|
+
* contract version, per signal) — never the raw value, never `tenant_name`.
|
|
12
|
+
*/
|
|
13
|
+
export type ReceiptSignal = 'refusal' | 'binding_violation' | 'validation_violation';
|
|
14
|
+
export interface ReceiptProof {
|
|
15
|
+
readonly input_sha256?: string;
|
|
16
|
+
readonly input_masked?: string;
|
|
17
|
+
readonly contract_version?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface RefusalReceipt {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly signal: 'refusal';
|
|
22
|
+
readonly created_at: string;
|
|
23
|
+
readonly trace_id: string;
|
|
24
|
+
readonly proof: ReceiptProof;
|
|
25
|
+
readonly detail: {
|
|
26
|
+
readonly kind: 'refusal';
|
|
27
|
+
readonly category: string;
|
|
28
|
+
readonly reason: 'matched' | 'no_verdict' | 'unscored';
|
|
29
|
+
readonly verdict: string;
|
|
30
|
+
readonly confidence: number | null;
|
|
31
|
+
readonly channel_name: string | null;
|
|
32
|
+
readonly fallback_used: boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface BindingReceipt {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly signal: 'binding_violation';
|
|
38
|
+
readonly created_at: string;
|
|
39
|
+
readonly trace_id: string;
|
|
40
|
+
readonly proof: ReceiptProof;
|
|
41
|
+
readonly detail: {
|
|
42
|
+
readonly kind: 'binding';
|
|
43
|
+
readonly entity: string;
|
|
44
|
+
readonly field: string;
|
|
45
|
+
readonly binding_mode: 'bind' | 'assert' | 'immutable';
|
|
46
|
+
readonly reason: string;
|
|
47
|
+
readonly path_context: string | null;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface ValidationReceipt {
|
|
51
|
+
readonly id: string;
|
|
52
|
+
readonly signal: 'validation_violation';
|
|
53
|
+
readonly created_at: string;
|
|
54
|
+
readonly trace_id: string;
|
|
55
|
+
readonly proof: ReceiptProof;
|
|
56
|
+
readonly detail: {
|
|
57
|
+
readonly kind: 'validation';
|
|
58
|
+
readonly entity: string;
|
|
59
|
+
readonly rule_name: string;
|
|
60
|
+
readonly op: 'create' | 'update' | 'delete';
|
|
61
|
+
readonly message_key: string;
|
|
62
|
+
readonly details: Record<string, unknown>;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export type Receipt = RefusalReceipt | BindingReceipt | ValidationReceipt;
|
|
66
|
+
/** Query filters for `client.runtime.receipts.list`. `from`/`to` are inclusive ISO date-time bounds. */
|
|
67
|
+
export interface ReceiptListParams {
|
|
68
|
+
readonly signal?: ReceiptSignal;
|
|
69
|
+
readonly trace_id?: string;
|
|
70
|
+
readonly from?: string;
|
|
71
|
+
readonly to?: string;
|
|
72
|
+
readonly limit?: number;
|
|
73
|
+
readonly cursor?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface ReceiptListResponse {
|
|
76
|
+
readonly items: ReadonlyArray<Receipt>;
|
|
77
|
+
readonly next_cursor: string | null;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=receipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../src/types/receipt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,mBAAmB,GAAG,sBAAsB,CAAC;AAErF,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE;QACb,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;QACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;QACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QACrC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;KACnC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AM,MAAM,OAAO,GAAG,cAAc,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAE1E,wGAAwG;AACxG,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Receipt read-surface types (Desk Spec 3 — end-user verifiable receipts).
|
|
4
|
+
*
|
|
5
|
+
* Wire shapes mirror the runtime contract module's `Receipt` DTO (see
|
|
6
|
+
* authoring/packages/contract/src/domain/types/receipt.ts). Kept as plain
|
|
7
|
+
* interfaces so SDK consumers need not depend on the runtime contract package
|
|
8
|
+
* (same convention as `types/audit.ts`).
|
|
9
|
+
*
|
|
10
|
+
* A `Receipt` is the caller's OWN governance event, normalized over the three
|
|
11
|
+
* audit signals. It carries only a non-reversible proof (hash + masked value +
|
|
12
|
+
* contract version, per signal) — never the raw value, never `tenant_name`.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
//# sourceMappingURL=receipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipt.js","sourceRoot":"","sources":["../../src/types/receipt.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADR-0134: a resolved reference label as delivered in the `ref_labels` sidecar.
|
|
3
|
+
* A `string` for a single `reference`; a positional array (aligned to the id
|
|
4
|
+
* array, `null` where the target row was not visible) for a `reference[]`. This
|
|
5
|
+
* single-shape union is the wire contract — consumers should read it through the
|
|
6
|
+
* `@zarel-ai/react` `singleRefLabel` / `refLabelAt` accessors rather than
|
|
7
|
+
* hand-narrowing `typeof` / `Array.isArray`.
|
|
8
|
+
*/
|
|
9
|
+
export type RefLabel = string | Array<string | null>;
|
|
10
|
+
export interface RecordData {
|
|
11
|
+
id?: number;
|
|
12
|
+
owner_name?: string;
|
|
13
|
+
created_at?: string;
|
|
14
|
+
updated_at?: string;
|
|
15
|
+
/**
|
|
16
|
+
* ADR-0134: resolved reference labels, keyed by reference field name. Absent
|
|
17
|
+
* when the field has no resolvable label — consumers fall back to `<entity>#<id>`.
|
|
18
|
+
*/
|
|
19
|
+
ref_labels?: Record<string, RefLabel>;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export type FilterOp = 'eq' | 'neq' | 'contains' | 'startsWith' | 'endsWith' | 'gt' | 'gte' | 'lt' | 'lte' | 'between' | 'in' | 'not_in' | 'before' | 'after' | 'is_empty' | 'is_not_empty';
|
|
23
|
+
export interface FilterExpr {
|
|
24
|
+
op: FilterOp;
|
|
25
|
+
value?: unknown;
|
|
26
|
+
}
|
|
27
|
+
export type FilterValue = string | number | boolean | FilterExpr | FilterExpr[];
|
|
28
|
+
export type SortDir = 'asc' | 'desc';
|
|
29
|
+
export interface SortSpec {
|
|
30
|
+
field: string;
|
|
31
|
+
dir: SortDir;
|
|
32
|
+
}
|
|
33
|
+
export interface RecordListParams {
|
|
34
|
+
limit?: number;
|
|
35
|
+
offset?: number;
|
|
36
|
+
filters?: Record<string, FilterValue>;
|
|
37
|
+
sort?: SortSpec[];
|
|
38
|
+
}
|
|
39
|
+
export interface RecordListResponse {
|
|
40
|
+
records: RecordData[];
|
|
41
|
+
total: number;
|
|
42
|
+
}
|
|
43
|
+
export type RecordResponse = RecordData;
|
|
44
|
+
export type { BulkImportRequest, BulkImportResponse } from './imports';
|
|
45
|
+
//# sourceMappingURL=records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/types/records.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AAErD,MAAM,WAAW,UAAU;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,QAAQ,GACd,IAAI,GAAG,KAAK,GACZ,UAAU,GAAG,YAAY,GAAG,UAAU,GACtC,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAC3B,SAAS,GACT,IAAI,GAAG,QAAQ,GACf,QAAQ,GAAG,OAAO,GAClB,UAAU,GAAG,cAAc,CAAC;AAElC,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,QAAQ,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,EAAE,CAAC;AAEhF,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAErC,MAAM,WAAW,QAAQ;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;CACrB;AAID,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC;AAExC,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.js","sourceRoot":"","sources":["../../src/types/records.ts"],"names":[],"mappings":";AAAA,4EAA4E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec-document types (spec-051 US2). Re-exports from contracts.ts which
|
|
3
|
+
* retains the primary type definitions alongside deprecated aliases.
|
|
4
|
+
*/
|
|
5
|
+
export type { SpecSection, ChangeKind, ImpactClass, ReviewerRole, SpecHashes, SpecChange, ImpactSummary, SpecDiff, SpecApplyMode, SpecFiles, SpecPublishRequest, SpecPublishResponse, SpecDiffRequest, SpecApplyGating, SpecApplyRequest, SpecApplyResponse, SpecSnapshotV1Response, SpecDryRunStatus, SpecDryRunOutcome, SpecDryRunUnknownCause, SpecDryRunReplayWindow, SpecDryRunFilter, SpecDryRunSubmitRequest, SpecDryRunSubmitResponse, SpecDryRunChangeBreakdown, SpecDryRunUnknown, SpecDryRunAffectedUser, SpecDryRunOperationalImplications, SpecDryRunReport, SpecDryRunJobProgress, SpecDryRunJobFailure, SpecDryRunJob, } from './contracts';
|
|
6
|
+
//# sourceMappingURL=spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../src/types/spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,YAAY,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,QAAQ,EACR,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,iCAAiC,EACjC,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,GAChB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../../src/types/spec.ts"],"names":[],"mappings":""}
|