@zarel-ai/sdk 0.6.0 → 0.7.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 +1 -1
- package/README.md +29 -31
- package/dist/_internal/auth-headers.d.ts +3 -3
- package/dist/_internal/auth-headers.d.ts.map +1 -1
- package/dist/_internal/auth-headers.js +5 -3
- package/dist/_internal/auth-headers.js.map +1 -1
- package/dist/_internal/confirmation.d.ts +1 -1
- package/dist/_internal/confirmation.d.ts.map +1 -1
- package/dist/_internal/confirmation.js +3 -1
- package/dist/_internal/confirmation.js.map +1 -1
- package/dist/_internal/event-iterator.d.ts.map +1 -1
- package/dist/_internal/event-iterator.js +3 -1
- package/dist/_internal/event-iterator.js.map +1 -1
- package/dist/_internal/fetch-client.d.ts +26 -18
- package/dist/_internal/fetch-client.d.ts.map +1 -1
- package/dist/_internal/fetch-client.js +40 -35
- package/dist/_internal/fetch-client.js.map +1 -1
- package/dist/_internal/interceptors.d.ts.map +1 -1
- package/dist/_internal/interceptors.js.map +1 -1
- package/dist/_internal/mcp.d.ts.map +1 -1
- package/dist/_internal/mcp.js +6 -4
- package/dist/_internal/mcp.js.map +1 -1
- package/dist/_internal/pagination.d.ts +5 -5
- package/dist/_internal/pagination.d.ts.map +1 -1
- package/dist/_internal/pagination.js +7 -5
- package/dist/_internal/pagination.js.map +1 -1
- package/dist/_internal/require-token.d.ts +4 -4
- package/dist/_internal/require-token.d.ts.map +1 -1
- package/dist/_internal/require-token.js +6 -4
- package/dist/_internal/require-token.js.map +1 -1
- package/dist/_internal/retry-after.d.ts.map +1 -1
- package/dist/_internal/retry-after.js +2 -0
- package/dist/_internal/retry-after.js.map +1 -1
- package/dist/_internal/sse-client.d.ts.map +1 -1
- package/dist/_internal/sse-client.js +4 -3
- package/dist/_internal/sse-client.js.map +1 -1
- package/dist/_internal/version.d.ts +2 -2
- package/dist/_internal/version.d.ts.map +1 -1
- package/dist/_internal/version.js +4 -2
- package/dist/_internal/version.js.map +1 -1
- package/dist/client.d.ts +8 -8
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -10
- package/dist/client.js.map +1 -1
- package/dist/contract/_singleton.d.ts +31 -6
- package/dist/contract/_singleton.d.ts.map +1 -1
- package/dist/contract/_singleton.js +30 -6
- package/dist/contract/_singleton.js.map +1 -1
- package/dist/contract/actions.d.ts +16 -4
- package/dist/contract/actions.d.ts.map +1 -1
- package/dist/contract/actions.js +13 -12
- package/dist/contract/actions.js.map +1 -1
- package/dist/contract/assistant.d.ts +3 -3
- package/dist/contract/assistant.d.ts.map +1 -1
- package/dist/contract/assistant.js +13 -11
- package/dist/contract/assistant.js.map +1 -1
- package/dist/contract/batch.d.ts +9 -20
- package/dist/contract/batch.d.ts.map +1 -1
- package/dist/contract/batch.js +14 -6
- package/dist/contract/batch.js.map +1 -1
- package/dist/contract/capabilities.d.ts +7 -13
- package/dist/contract/capabilities.d.ts.map +1 -1
- package/dist/contract/capabilities.js +10 -8
- package/dist/contract/capabilities.js.map +1 -1
- package/dist/contract/constraints.d.ts +7 -13
- package/dist/contract/constraints.d.ts.map +1 -1
- package/dist/contract/constraints.js +10 -8
- package/dist/contract/constraints.js.map +1 -1
- package/dist/contract/events.d.ts +9 -13
- package/dist/contract/events.d.ts.map +1 -1
- package/dist/contract/events.js +12 -13
- package/dist/contract/events.js.map +1 -1
- package/dist/contract/flows.d.ts +30 -19
- package/dist/contract/flows.d.ts.map +1 -1
- package/dist/contract/flows.js +46 -29
- package/dist/contract/flows.js.map +1 -1
- package/dist/contract/index.d.ts +207 -32
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +13 -14
- package/dist/contract/index.js.map +1 -1
- package/dist/contract/metadata.d.ts +6 -20
- package/dist/contract/metadata.d.ts.map +1 -1
- package/dist/contract/metadata.js +16 -8
- package/dist/contract/metadata.js.map +1 -1
- package/dist/contract/process-model.d.ts +10 -15
- package/dist/contract/process-model.d.ts.map +1 -1
- package/dist/contract/process-model.js +11 -9
- package/dist/contract/process-model.js.map +1 -1
- package/dist/contract/roots/channels.d.ts.map +1 -1
- package/dist/contract/roots/channels.js +12 -10
- package/dist/contract/roots/channels.js.map +1 -1
- package/dist/contract/roots/events.d.ts.map +1 -1
- package/dist/contract/roots/events.js +2 -0
- package/dist/contract/roots/events.js.map +1 -1
- package/dist/contract/roots/index.d.ts +3 -2
- package/dist/contract/roots/index.d.ts.map +1 -1
- package/dist/contract/roots/index.js +13 -12
- package/dist/contract/roots/index.js.map +1 -1
- package/dist/contract/roots/mcp-servers.d.ts +11 -29
- package/dist/contract/roots/mcp-servers.d.ts.map +1 -1
- package/dist/contract/roots/mcp-servers.js +22 -18
- package/dist/contract/roots/mcp-servers.js.map +1 -1
- package/dist/contract/roots/profiles.d.ts +13 -12
- package/dist/contract/roots/profiles.d.ts.map +1 -1
- package/dist/contract/roots/profiles.js +18 -7
- package/dist/contract/roots/profiles.js.map +1 -1
- package/dist/contract/roots/timezone.d.ts +3 -3
- package/dist/contract/roots/timezone.d.ts.map +1 -1
- package/dist/contract/roots/timezone.js +5 -2
- package/dist/contract/roots/timezone.js.map +1 -1
- package/dist/contract/roots/treatment.d.ts +3 -2
- package/dist/contract/roots/treatment.d.ts.map +1 -1
- package/dist/contract/roots/treatment.js +8 -8
- package/dist/contract/roots/treatment.js.map +1 -1
- package/dist/contract/roots/vocabulary.d.ts +20 -13
- package/dist/contract/roots/vocabulary.d.ts.map +1 -1
- package/dist/contract/roots/vocabulary.js +28 -9
- package/dist/contract/roots/vocabulary.js.map +1 -1
- package/dist/contract/schemas.d.ts +7 -10
- package/dist/contract/schemas.d.ts.map +1 -1
- package/dist/contract/schemas.js +10 -8
- package/dist/contract/schemas.js.map +1 -1
- package/dist/contract/skills.d.ts +14 -4
- package/dist/contract/skills.d.ts.map +1 -1
- package/dist/contract/skills.js +11 -11
- package/dist/contract/skills.js.map +1 -1
- package/dist/errors.d.ts +4 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +4 -4
- package/dist/errors.js.map +1 -1
- package/dist/generated/contract.d.ts +4494 -706
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/index.d.ts +119 -7
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/runtime.d.ts +1490 -368
- package/dist/generated/runtime.d.ts.map +1 -1
- package/dist/generated/unwrap-map.d.ts +5 -2
- package/dist/generated/unwrap-map.d.ts.map +1 -1
- package/dist/generated/unwrap-map.js +5 -5
- package/dist/generated/unwrap-map.js.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/resources/actions.d.ts +5 -6
- package/dist/resources/actions.d.ts.map +1 -1
- package/dist/resources/actions.js +9 -10
- package/dist/resources/actions.js.map +1 -1
- package/dist/resources/audit.d.ts +6 -6
- package/dist/resources/audit.d.ts.map +1 -1
- package/dist/resources/audit.js +3 -25
- package/dist/resources/audit.js.map +1 -1
- package/dist/resources/authorization-ceiling.d.ts +2 -2
- package/dist/resources/authorization-ceiling.d.ts.map +1 -1
- package/dist/resources/authorization-ceiling.js +8 -7
- package/dist/resources/authorization-ceiling.js.map +1 -1
- package/dist/resources/authorization-operation-ids.d.ts +1 -1
- package/dist/resources/authorization-operation-ids.d.ts.map +1 -1
- package/dist/resources/authorization-operation-ids.js +4 -2
- package/dist/resources/authorization-operation-ids.js.map +1 -1
- package/dist/resources/authorization.d.ts +53 -19
- package/dist/resources/authorization.d.ts.map +1 -1
- package/dist/resources/authorization.js +24 -6
- package/dist/resources/authorization.js.map +1 -1
- package/dist/resources/authorizations.d.ts +3 -5
- package/dist/resources/authorizations.d.ts.map +1 -1
- package/dist/resources/authorizations.js +4 -2
- package/dist/resources/authorizations.js.map +1 -1
- package/dist/resources/channels.d.ts +7 -7
- package/dist/resources/channels.d.ts.map +1 -1
- package/dist/resources/channels.js +10 -10
- package/dist/resources/channels.js.map +1 -1
- package/dist/resources/contracts.d.ts +2 -2
- package/dist/resources/contracts.d.ts.map +1 -1
- package/dist/resources/contracts.js +15 -14
- package/dist/resources/contracts.js.map +1 -1
- package/dist/resources/conversation-sessions.d.ts +19 -20
- package/dist/resources/conversation-sessions.d.ts.map +1 -1
- package/dist/resources/conversation-sessions.js +17 -22
- package/dist/resources/conversation-sessions.js.map +1 -1
- package/dist/resources/conversation.d.ts +4 -4
- package/dist/resources/conversation.d.ts.map +1 -1
- package/dist/resources/conversation.js +13 -11
- package/dist/resources/conversation.js.map +1 -1
- package/dist/resources/embedding-credentials.d.ts +3 -3
- package/dist/resources/embedding-credentials.d.ts.map +1 -1
- package/dist/resources/embedding-credentials.js +8 -6
- package/dist/resources/embedding-credentials.js.map +1 -1
- package/dist/resources/entities.d.ts +50 -32
- package/dist/resources/entities.d.ts.map +1 -1
- package/dist/resources/entities.js +51 -32
- package/dist/resources/entities.js.map +1 -1
- package/dist/resources/events.d.ts +4 -5
- package/dist/resources/events.d.ts.map +1 -1
- package/dist/resources/events.js +12 -11
- package/dist/resources/events.js.map +1 -1
- package/dist/resources/flows.d.ts +18 -15
- package/dist/resources/flows.d.ts.map +1 -1
- package/dist/resources/flows.js +41 -27
- package/dist/resources/flows.js.map +1 -1
- package/dist/resources/imports.d.ts.map +1 -1
- package/dist/resources/imports.js +1 -1
- package/dist/resources/imports.js.map +1 -1
- package/dist/resources/index.d.ts +3 -2
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +6 -2
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/llm-credentials.d.ts +21 -6
- package/dist/resources/llm-credentials.d.ts.map +1 -1
- package/dist/resources/llm-credentials.js +25 -10
- package/dist/resources/llm-credentials.js.map +1 -1
- package/dist/resources/llm-services.d.ts +8 -8
- package/dist/resources/llm-services.d.ts.map +1 -1
- package/dist/resources/llm-services.js +11 -9
- package/dist/resources/llm-services.js.map +1 -1
- package/dist/resources/mcp.d.ts.map +1 -1
- package/dist/resources/mcp.js +5 -3
- package/dist/resources/mcp.js.map +1 -1
- package/dist/resources/receipts.d.ts +1 -1
- package/dist/resources/receipts.d.ts.map +1 -1
- package/dist/resources/receipts.js +1 -1
- package/dist/resources/receipts.js.map +1 -1
- package/dist/resources/records.d.ts +1 -1
- package/dist/resources/records.d.ts.map +1 -1
- package/dist/resources/records.js +7 -5
- package/dist/resources/records.js.map +1 -1
- package/dist/resources/role-assignments.d.ts +4 -5
- package/dist/resources/role-assignments.d.ts.map +1 -1
- package/dist/resources/role-assignments.js +8 -7
- package/dist/resources/role-assignments.js.map +1 -1
- package/dist/resources/roles.d.ts +23 -23
- package/dist/resources/roles.d.ts.map +1 -1
- package/dist/resources/roles.js +20 -14
- package/dist/resources/roles.js.map +1 -1
- package/dist/resources/runtime-entities.d.ts +12 -9
- package/dist/resources/runtime-entities.d.ts.map +1 -1
- package/dist/resources/runtime-entities.js +5 -8
- package/dist/resources/runtime-entities.js.map +1 -1
- package/dist/resources/state-machine.d.ts +6 -12
- package/dist/resources/state-machine.d.ts.map +1 -1
- package/dist/resources/state-machine.js +17 -21
- package/dist/resources/state-machine.js.map +1 -1
- package/dist/resources/system.d.ts.map +1 -1
- package/dist/resources/system.js +5 -5
- package/dist/resources/system.js.map +1 -1
- package/dist/resources/tools.d.ts +2 -2
- package/dist/resources/tools.d.ts.map +1 -1
- package/dist/resources/tools.js +7 -5
- package/dist/resources/tools.js.map +1 -1
- package/dist/resources/traces.d.ts +1 -7
- package/dist/resources/traces.d.ts.map +1 -1
- package/dist/resources/traces.js +4 -29
- package/dist/resources/traces.js.map +1 -1
- package/dist/runtime/index.d.ts +4 -2
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +21 -17
- package/dist/runtime/index.js.map +1 -1
- package/dist/types/actions.d.ts +7 -8
- package/dist/types/actions.d.ts.map +1 -1
- package/dist/types/actions.js +4 -2
- package/dist/types/actions.js.map +1 -1
- package/dist/types/audit.d.ts +5 -7
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/audit.js +6 -6
- package/dist/types/audit.js.map +1 -1
- package/dist/types/channels.d.ts +1 -1
- package/dist/types/channels.d.ts.map +1 -1
- package/dist/types/channels.js +5 -3
- package/dist/types/channels.js.map +1 -1
- package/dist/types/collections-contract.d.ts +50 -0
- package/dist/types/collections-contract.d.ts.map +1 -0
- package/dist/types/collections-contract.js +22 -0
- package/dist/types/collections-contract.js.map +1 -0
- package/dist/types/confirmation.d.ts +4 -4
- package/dist/types/confirmation.d.ts.map +1 -1
- package/dist/types/confirmation.js +6 -4
- package/dist/types/confirmation.js.map +1 -1
- package/dist/types/contracts.d.ts +12 -15
- package/dist/types/contracts.d.ts.map +1 -1
- package/dist/types/contracts.js +5 -4
- package/dist/types/contracts.js.map +1 -1
- package/dist/types/conversation-sessions.d.ts +1 -1
- package/dist/types/conversation-sessions.d.ts.map +1 -1
- package/dist/types/conversation-sessions.js +3 -1
- package/dist/types/conversation-sessions.js.map +1 -1
- package/dist/types/conversation.d.ts +13 -40
- package/dist/types/conversation.d.ts.map +1 -1
- package/dist/types/entities.d.ts +52 -16
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/types/entities.js +12 -0
- package/dist/types/entities.js.map +1 -1
- package/dist/types/events-stream.d.ts +2 -2
- package/dist/types/events-stream.d.ts.map +1 -1
- package/dist/types/events-stream.js +6 -4
- package/dist/types/events-stream.js.map +1 -1
- package/dist/types/flows-contract.d.ts +28 -7
- package/dist/types/flows-contract.d.ts.map +1 -1
- package/dist/types/flows-contract.js +11 -4
- package/dist/types/flows-contract.js.map +1 -1
- package/dist/types/flows.d.ts +27 -58
- package/dist/types/flows.d.ts.map +1 -1
- package/dist/types/flows.js +8 -20
- package/dist/types/flows.js.map +1 -1
- package/dist/types/imports.d.ts +9 -0
- package/dist/types/imports.d.ts.map +1 -1
- package/dist/types/index.d.ts +8 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/locale.d.ts +2 -2
- package/dist/types/locale.d.ts.map +1 -1
- package/dist/types/locale.js +4 -2
- package/dist/types/locale.js.map +1 -1
- package/dist/types/mcp-and-events-contract.d.ts +51 -0
- package/dist/types/mcp-and-events-contract.d.ts.map +1 -0
- package/dist/types/mcp-and-events-contract.js +20 -0
- package/dist/types/mcp-and-events-contract.js.map +1 -0
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/types/mcp.js +3 -1
- package/dist/types/mcp.js.map +1 -1
- package/dist/types/platform.d.ts +12 -12
- package/dist/types/platform.d.ts.map +1 -1
- package/dist/types/platform.js +0 -1
- package/dist/types/platform.js.map +1 -1
- package/dist/types/receipt.d.ts +3 -5
- package/dist/types/receipt.d.ts.map +1 -1
- package/dist/types/receipt.js +5 -5
- package/dist/types/receipt.js.map +1 -1
- package/dist/types/records.d.ts +3 -3
- package/dist/types/records.d.ts.map +1 -1
- package/dist/types/records.js +2 -0
- package/dist/types/records.js.map +1 -1
- package/dist/types/spec.d.ts +2 -2
- package/dist/types/spec.d.ts.map +1 -1
- package/dist/types/state-machine.d.ts +48 -84
- package/dist/types/state-machine.d.ts.map +1 -1
- package/dist/types/state-machine.js +9 -4
- package/dist/types/state-machine.js.map +1 -1
- package/dist/types/system.d.ts.map +1 -1
- package/dist/types/tools.d.ts +36 -28
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/types/tools.js +6 -6
- package/dist/types/tools.js.map +1 -1
- package/dist/types/traces.d.ts +6 -9
- package/dist/types/traces.d.ts.map +1 -1
- package/dist/types/traces.js +5 -5
- package/dist/types/traces.js.map +1 -1
- package/dist/types/treatment-contract.d.ts +70 -0
- package/dist/types/treatment-contract.d.ts.map +1 -0
- package/dist/types/treatment-contract.js +20 -0
- package/dist/types/treatment-contract.js.map +1 -0
- package/dist/types/workflows.d.ts +14 -0
- package/dist/types/workflows.d.ts.map +1 -1
- package/dist/types/workflows.js +7 -6
- package/dist/types/workflows.js.map +1 -1
- package/package.json +93 -96
- package/dist/contract/governance.d.ts +0 -6
- package/dist/contract/governance.d.ts.map +0 -1
- package/dist/contract/governance.js +0 -17
- package/dist/contract/governance.js.map +0 -1
|
@@ -33,7 +33,7 @@ export interface ConversationActionRecord {
|
|
|
33
33
|
export interface ConversationSessionDetail {
|
|
34
34
|
session: ConversationSessionSummary & {
|
|
35
35
|
/**
|
|
36
|
-
* Session-level snapshot of the actor's roles
|
|
36
|
+
* Session-level snapshot of the actor's roles. NOT
|
|
37
37
|
* a security gate — exposed for observability / UI display only.
|
|
38
38
|
*/
|
|
39
39
|
roles_snapshot: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-sessions.d.ts","sourceRoot":"","sources":["../../src/types/conversation-sessions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation-sessions.d.ts","sourceRoot":"","sources":["../../src/types/conversation-sessions.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,0BAA0B;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,yBAAyB,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACtC,OAAO,EAAE,0BAA0B,GAAG;QAClC;;;WAGG;QACH,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAClC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,6BAA6B;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,+BAA+B,GAAG,0BAA0B,EAAE,CAAC;AAE3E,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CAAC;AAE1E,MAAM,MAAM,kCAAkC,GAAG,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright 2026 Nicolas Moreno
|
|
2
4
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
3
|
-
// Conversation session history types — derived from
|
|
5
|
+
// Conversation session history types — derived from the runtime API's OpenAPI document
|
|
4
6
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
//# sourceMappingURL=conversation-sessions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-sessions.js","sourceRoot":"","sources":["../../src/types/conversation-sessions.ts"],"names":[],"mappings":";AAAA,8EAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"conversation-sessions.js","sourceRoot":"","sources":["../../src/types/conversation-sessions.ts"],"names":[],"mappings":";AAAA,+BAA+B;AAC/B,gCAAgC;AAChC,8EAA8E;AAC9E,uFAAuF;AACvF,8EAA8E"}
|
|
@@ -1,43 +1,16 @@
|
|
|
1
1
|
import type { operations } from '../generated/runtime';
|
|
2
|
+
import type { ConversationSendBodyPayload } from '../generated';
|
|
2
3
|
export type Channel = NonNullable<NonNullable<operations['listConversationSessions']['parameters']['query']>['channel_name']>;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/** SpecKit 010 / FR-C07 (T077): explicit session lookup — sessions must be created first via `client.runtime.conversationSessions.create`. */
|
|
14
|
-
session_key?: string;
|
|
15
|
-
/** SpecKit 010 / FR-C04 (T077): per-turn LLM service override. Must be authorized for the actor in the session's scope. */
|
|
16
|
-
llm_service?: string;
|
|
17
|
-
/**
|
|
18
|
-
* ADR-0133 §B.4 / FR-C03: the inbound at-most-once dedupe token
|
|
19
|
-
* `deriveIdempotencyKey(channel, channel_message_id)` (a public sha256 hex).
|
|
20
|
-
* Set by a channel adapter's party turn so a redelivered provider message
|
|
21
|
-
* (a re-fired WhatsApp `wamid`) never creates a second turn; the runtime
|
|
22
|
-
* enforces it unique per `(tenant, channel)` — the channel is trust-rooted
|
|
23
|
-
* from the credential, never this body. Omit on ordinary tenant turns.
|
|
24
|
-
*/
|
|
25
|
-
idempotency_key?: string;
|
|
26
|
-
/**
|
|
27
|
-
* ADR-0133 §B.7 / FR-E01: the edge-attestation of the inbound boundary crossing,
|
|
28
|
-
* from which the runtime builds the `channel.ingress` audit row — whether the
|
|
29
|
-
* adapter verified the provider signature, who attests the crossing (runtime vs
|
|
30
|
-
* channel_provider), the provider's clock, and the opaque provider message id (which
|
|
31
|
-
* MUST be hashed by the adapter if address-shaped, FR-E03). Set by a channel
|
|
32
|
-
* adapter's party turn; omit on ordinary tenant turns.
|
|
33
|
-
*/
|
|
34
|
-
channel_attestation?: {
|
|
35
|
-
signature_verified: boolean;
|
|
36
|
-
attested_by: 'runtime' | 'channel_provider';
|
|
37
|
-
provider_timestamp?: string;
|
|
38
|
-
channel_message_id?: string;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* THE TURN BODY, DERIVED from the runtime API's OpenAPI document, so there is one description
|
|
6
|
+
* of it.
|
|
7
|
+
*
|
|
8
|
+
* `session_key` is REQUIRED: the route does not create a session lazily, and answers 400
|
|
9
|
+
* without one. There is no `role` key.
|
|
10
|
+
*/
|
|
11
|
+
export type ConversationRequest = ConversationSendBodyPayload;
|
|
12
|
+
/** The per-turn treatment overrides, as the published body declares them. */
|
|
13
|
+
export type InteractionContext = NonNullable<ConversationRequest['interaction']>;
|
|
41
14
|
export interface ConversationDebugInfo {
|
|
42
15
|
enabled?: boolean;
|
|
43
16
|
system_prompt?: string;
|
|
@@ -66,9 +39,9 @@ export interface ConversationResponse {
|
|
|
66
39
|
options?: string[];
|
|
67
40
|
suggestions?: string[];
|
|
68
41
|
error?: string;
|
|
69
|
-
/**
|
|
42
|
+
/** The turn's correlation id, to tie it to its receipts. */
|
|
70
43
|
trace_id?: string;
|
|
71
|
-
/**
|
|
44
|
+
/** The inbound turn's sequence number (present on channel party turns). */
|
|
72
45
|
conversation_turn_seq?: number;
|
|
73
46
|
_debug?: ConversationDebugInfo;
|
|
74
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/types/conversation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/types/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAShE,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;AAE9H;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AAE9D,6EAA6E;AAC7E,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC;AAMjF,MAAM,WAAW,qBAAqB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC;QACX,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtC,CAAC,CAAC;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE;QACV,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import type { EntityCreateBodyPayload, EntityFieldCreateBodyPayload, EntityFieldListPayload, EntityFieldPayload, EntityFieldRecordPayload, EntityFieldRefPayload, EntityFieldPatchBodyPayload, EntityFieldReplaceBodyPayload, EntityListPayload, EntityPayload, EntityRecordPayload, EntityPatchBodyPayload, EntityReplaceBodyPayload, EntitySummaryPayload, FieldTransitionPayload } from '../generated';
|
|
2
|
+
/** One entity in `GET /contract/entities`. */
|
|
3
|
+
export type ContractEntitySummary = EntitySummaryPayload;
|
|
4
|
+
/** The payload of `GET /contract/entities`. */
|
|
5
|
+
export type ContractEntityList = EntityListPayload;
|
|
6
|
+
/** The payload of `GET /contract/entities/{entity_name}`. */
|
|
7
|
+
export type ContractEntity = EntityPayload;
|
|
8
|
+
/** A field as every READ answers it. */
|
|
9
|
+
export type ContractEntityField = EntityFieldPayload;
|
|
10
|
+
/** A field as the entity LIST names it — `{name, type}`. */
|
|
11
|
+
export type ContractEntityFieldRef = EntityFieldRefPayload;
|
|
12
|
+
/** The payload of `GET /contract/entities/{entity_name}/fields`. */
|
|
13
|
+
export type ContractEntityFieldList = EntityFieldListPayload;
|
|
14
|
+
/** An entity as every MUTATION answers it — the stored definition, `i18n` hydrated. */
|
|
15
|
+
export type ContractEntityRecord = EntityRecordPayload;
|
|
16
|
+
/** A field as every MUTATION answers it — the stored definition, `i18n` hydrated. */
|
|
17
|
+
export type ContractEntityFieldRecord = EntityFieldRecordPayload;
|
|
18
|
+
/** One transition edge, as the `/transitions*` routes answer it. */
|
|
19
|
+
export type ContractFieldTransition = FieldTransitionPayload;
|
|
20
|
+
/** `POST /contract/entities`. */
|
|
21
|
+
export type EntityInput = EntityCreateBodyPayload;
|
|
22
|
+
/**
|
|
23
|
+
* `PUT /contract/entities/{entity_name}` — a TOTAL declaration.
|
|
24
|
+
*
|
|
25
|
+
* Every mutable property is REQUIRED, and that is not pedantry: no read on this surface returns
|
|
26
|
+
* `display_field`, `semantic_triggers`, `tool_hints` or `checks`, so a caller cannot GET-edit-PUT
|
|
27
|
+
* and an omitted key read as "clear it" would destroy an entity's write-time verdicts
|
|
28
|
+
* with nothing in any response to show it. `null` clears, explicitly.
|
|
29
|
+
*/
|
|
30
|
+
export type EntityReplaceInput = EntityReplaceBodyPayload;
|
|
31
|
+
/**
|
|
32
|
+
* `PATCH /contract/entities/{entity_name}` — a partial. An absent key is untouched; `null` clears.
|
|
33
|
+
*
|
|
34
|
+
* A separate type from {@link EntityInput}, not `Partial<EntityInput>`: `name` is the PATH identity
|
|
35
|
+
* on this side, optional and not mutable, while it is required on create. `Partial<>` said neither.
|
|
36
|
+
*/
|
|
37
|
+
export type EntityWriteInput = EntityPatchBodyPayload;
|
|
38
|
+
/** `POST /contract/entities/{entity_name}/fields`. */
|
|
39
|
+
export type FieldDefinitionInput = EntityFieldCreateBodyPayload;
|
|
40
|
+
/**
|
|
41
|
+
* `PUT /contract/entities/{entity_name}/fields/{field_name}` — a TOTAL declaration, every mutable
|
|
42
|
+
* property required. See {@link EntityReplaceInput} for why; `ContractEntityField` returns neither
|
|
43
|
+
* `position` nor `transitions`, so an omission cannot mean "clear it".
|
|
44
|
+
*/
|
|
45
|
+
export type FieldReplaceInput = EntityFieldReplaceBodyPayload;
|
|
46
|
+
/**
|
|
47
|
+
* `PATCH /contract/entities/{entity_name}/fields/{field_name}` — a partial.
|
|
48
|
+
*
|
|
49
|
+
* `name` and `field_type` are identity here — a body may repeat either and is REFUSED when it
|
|
50
|
+
* disagrees, because no update path writes a field's type.
|
|
51
|
+
*/
|
|
52
|
+
export type FieldWriteInput = EntityFieldPatchBodyPayload;
|
|
17
53
|
export interface ToolExecutionResult {
|
|
18
54
|
success: boolean;
|
|
19
55
|
data?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/types/entities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/types/entities.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACR,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACzB,MAAM,cAAc,CAAC;AAetB,8CAA8C;AAC9C,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AACzD,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AACnD,6DAA6D;AAC7D,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC;AAC3C,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AACrD,4DAA4D;AAC5D,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAC3D,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAAC;AAC7D,uFAAuF;AACvF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AACvD,qFAAqF;AACrF,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,CAAC;AACjE,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAAC;AAE7D,iCAAiC;AACjC,MAAM,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAEtD,sDAAsD;AACtD,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,6BAA6B,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,2BAA2B,CAAC;AAO1D,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/types/entities.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright 2026 Nicolas Moreno
|
|
2
4
|
// ── Entities ─────────────────────────────────────────────────────────────
|
|
5
|
+
//
|
|
6
|
+
// EVERY SHAPE HERE IS DERIVED from the contract API's OpenAPI document (through
|
|
7
|
+
// `generated/contract.ts`), so there is one description of the `/contract/entities*` wire, as in
|
|
8
|
+
// `types/flows-contract.ts`.
|
|
9
|
+
//
|
|
10
|
+
// `label` and `description` are not accepted on these bodies: an entity's semantic content is
|
|
11
|
+
// written by a contract publish.
|
|
12
|
+
//
|
|
13
|
+
// The bodies are published and CLOSED now (`additionalProperties: false`, enforced by the route,
|
|
14
|
+
// which names every key it refuses), so these are aliases rather than declarations.
|
|
3
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
16
|
//# sourceMappingURL=entities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/types/entities.ts"],"names":[],"mappings":";AAAA,4EAA4E"}
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/types/entities.ts"],"names":[],"mappings":";AAAA,+BAA+B;AAC/B,gCAAgC;AAChC,4EAA4E;AAC5E,EAAE;AACF,gFAAgF;AAChF,iGAAiG;AACjG,6BAA6B;AAC7B,EAAE;AACF,8FAA8F;AAC9F,iCAAiC;AACjC,EAAE;AACF,iGAAiG;AACjG,oFAAoF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SseConversationTurnCreatedData, SseConversationTurnCreatedPayload } from '../generated';
|
|
2
|
-
/** Metadata-only payload of a `conversation.turn_created` event
|
|
2
|
+
/** Metadata-only payload of a `conversation.turn_created` event. */
|
|
3
3
|
export type ConversationTurnCreatedPayload = SseConversationTurnCreatedPayload;
|
|
4
4
|
/** The SSE bridge wraps every event's data as `{entity, record_id, payload, timestamp}`. */
|
|
5
5
|
export type ConversationTurnCreatedData = SseConversationTurnCreatedData;
|
|
@@ -68,7 +68,7 @@ export interface EventIterateOptions extends EventStreamOptions {
|
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Runtime type-guard for a `conversation.turn_created` event's `data` envelope (the
|
|
71
|
-
* single boundary-validation authority for the typed arm —
|
|
71
|
+
* single boundary-validation authority for the typed arm — no `as`).
|
|
72
72
|
*/
|
|
73
73
|
export declare function isConversationTurnCreatedData(data: unknown): data is ConversationTurnCreatedData;
|
|
74
74
|
/** Narrowing guard so consumers get the typed `conversation.turn_created` `data` shape. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-stream.d.ts","sourceRoot":"","sources":["../../src/types/events-stream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events-stream.d.ts","sourceRoot":"","sources":["../../src/types/events-stream.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,8BAA8B,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAQtG,oEAAoE;AACpE,MAAM,MAAM,8BAA8B,GAAG,iCAAiC,CAAC;AAE/E,4FAA4F;AAC5F,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CAAC;AAEzE,gHAAgH;AAChH,MAAM,WAAW,4BAA4B;IACzC,KAAK,EAAE,2BAA2B,CAAC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,2BAA2B,CAAC;CACrC;AAED,kEAAkE;AAClE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AAO,EACb,EAAE,EAAE,MAAM,GAAG,SAAS,GACvB,kBAAkB,GAAG,SAAS,CAQhC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright 2026 Nicolas Moreno
|
|
4
|
+
// Typed runtime SSE event map for `client.runtime.events.stream`.
|
|
3
5
|
//
|
|
4
|
-
// The runtime event stream (`GET /runtime/events/stream
|
|
6
|
+
// The runtime event stream (`GET /runtime/events/stream`) emits NAMED
|
|
5
7
|
// SSE frames. `conversation.turn_created` carries a fixed metadata-only envelope; all
|
|
6
8
|
// other named events (record mutations, state transitions, …) pass through as
|
|
7
9
|
// the generic arm with `data: unknown`.
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
// ships ZERO runtime dependencies, so it follows the hand-written envelope-shape
|
|
11
13
|
// guard precedent in `fetch-client.ts`. A frame whose JSON is malformed or whose shape
|
|
12
14
|
// fails the guard is dropped (never thrown into `onEvent`) — the leg is
|
|
13
|
-
// loss-tolerant
|
|
15
|
+
// loss-tolerant.
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.isConversationTurnCreatedData = isConversationTurnCreatedData;
|
|
16
18
|
exports.isConversationTurnCreatedEvent = isConversationTurnCreatedEvent;
|
|
@@ -21,7 +23,7 @@ function isRecord(value) {
|
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Runtime type-guard for a `conversation.turn_created` event's `data` envelope (the
|
|
24
|
-
* single boundary-validation authority for the typed arm —
|
|
26
|
+
* single boundary-validation authority for the typed arm — no `as`).
|
|
25
27
|
*/
|
|
26
28
|
function isConversationTurnCreatedData(data) {
|
|
27
29
|
if (!isRecord(data))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-stream.js","sourceRoot":"","sources":["../../src/types/events-stream.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3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,CAAC,KAAK,KAAK,yBAAyB,CAAC;AACrD,CAAC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAChC,SAAiB,EACjB,IAAa,EACb,EAAsB;IAEtB,IAAI,SAAS,KAAK,yBAAyB,EAAE,CAAC;QAC1C,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC;YAAE,OAAO,SAAS,CAAC;QAC3D,OAAO,EAAE,KAAK,SAAS;YACnB,CAAC,CAAC,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAE,EAAE,IAAI,EAAE;YAChD,CAAC,CAAC,EAAE,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,CAAC;IACrD,CAAC;IACD,OAAO,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAC1F,CAAC"}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { FlowPatchPayload, FlowWritePayload, ContractDeletedAckPayload, ContractFlowOnCompletionCreatePayload, ContractFlowOnCompletionInlinePayload, ContractFlowOnCompletionPayload, ContractFlowOnCompletionWritePayload, ContractFlowPayload, ContractFlowStepCreatePayload, ContractFlowStepInlinePayload, ContractFlowStepPayload, ContractFlowStepWritePayload } from '../generated';
|
|
2
|
+
/** One flow, as every `/contract/flows*` parent route answers it — list, get, create, replace
|
|
3
|
+
* and patch all send this same shape. */
|
|
4
|
+
export type ContractFlow = ContractFlowPayload;
|
|
5
|
+
/** A step nested inside a flow object: no `tenant_name` or `flow_name`, no `position`. */
|
|
6
|
+
export type ContractFlowStepInline = ContractFlowStepInlinePayload;
|
|
7
|
+
/** A step from the dedicated `/steps` routes: with `tenant_name`, `flow_name` and `position`. */
|
|
8
|
+
export type ContractFlowStep = ContractFlowStepPayload;
|
|
9
|
+
/** An on_completion entry nested inside a flow object. */
|
|
10
|
+
export type ContractFlowOnCompletionInline = ContractFlowOnCompletionInlinePayload;
|
|
11
|
+
/** An on_completion entry from the dedicated routes: the full stored entry. */
|
|
12
|
+
export type ContractFlowOnCompletion = ContractFlowOnCompletionPayload;
|
|
13
|
+
/** What a contract DELETE answers — flow, skill, action and the two flow children.
|
|
14
|
+
* Not an empty body. */
|
|
15
|
+
export type ContractDeletedAck = ContractDeletedAckPayload;
|
|
16
|
+
/** The upsert body `POST /contract/flows` and `PUT /contract/flows/{flow_name}` accept.
|
|
17
|
+
* DERIVED from the contract API's OpenAPI document. */
|
|
18
|
+
export type ContractFlowInput = FlowWritePayload;
|
|
19
|
+
/** `PATCH /contract/flows/{flow_name}` — every key optional, `name` restatable and not changeable. */
|
|
20
|
+
export type ContractFlowPatchInput = FlowPatchPayload;
|
|
21
|
+
/** `POST /contract/flows/{flow_name}/steps`. `flow_name` may be echoed and must agree. */
|
|
22
|
+
export type ContractFlowStepCreate = ContractFlowStepCreatePayload;
|
|
23
|
+
/** `PUT` / `PATCH` on one step — one shape for both, because both MERGE. */
|
|
24
|
+
export type ContractFlowStepWrite = ContractFlowStepWritePayload;
|
|
25
|
+
/** `POST /contract/flows/{flow_name}/on-completion`. */
|
|
26
|
+
export type ContractFlowOnCompletionCreate = ContractFlowOnCompletionCreatePayload;
|
|
27
|
+
/** `PUT` / `PATCH` on one on-completion entry. */
|
|
28
|
+
export type ContractFlowOnCompletionWrite = ContractFlowOnCompletionWritePayload;
|
|
8
29
|
//# sourceMappingURL=flows-contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows-contract.d.ts","sourceRoot":"","sources":["../../src/types/flows-contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flows-contract.d.ts","sourceRoot":"","sources":["../../src/types/flows-contract.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACR,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,qCAAqC,EACrC,qCAAqC,EACrC,+BAA+B,EAC/B,oCAAoC,EACpC,mBAAmB,EACnB,6BAA6B,EAC7B,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC/B,MAAM,cAAc,CAAC;AAEtB;0CAC0C;AAC1C,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAE/C,0FAA0F;AAC1F,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;AACnE,iGAAiG;AACjG,MAAM,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AAEvD,0DAA0D;AAC1D,MAAM,MAAM,8BAA8B,GAAG,qCAAqC,CAAC;AACnF,+EAA+E;AAC/E,MAAM,MAAM,wBAAwB,GAAG,+BAA+B,CAAC;AAEvE;yBACyB;AACzB,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AAE3D;wDACwD;AACxD,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AACjD,sGAAsG;AACtG,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAEtD,0FAA0F;AAC1F,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;AACnE,4EAA4E;AAC5E,MAAM,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AACjE,wDAAwD;AACxD,MAAM,MAAM,8BAA8B,GAAG,qCAAqC,CAAC;AACnF,kDAAkD;AAClD,MAAM,MAAM,6BAA6B,GAAG,oCAAoC,CAAC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright 2026 Nicolas Moreno
|
|
4
|
+
// Types for the `contract.flows` resource. Flow *definitions* live on the contract plane
|
|
5
|
+
// (`contract.flows`); flow *instances/runs* are runtime-plane and typed in `./flows`.
|
|
6
|
+
//
|
|
7
|
+
// EVERY SHAPE HERE IS DERIVED from the contract API's OpenAPI document (through
|
|
8
|
+
// `generated/contract.ts`), so there is one description of the `/contract/flows*` wire.
|
|
9
|
+
//
|
|
10
|
+
// A step has TWO shapes: nested inside a flow it carries no `tenant_name`, `flow_name` or
|
|
11
|
+
// `position`; from `/contract/flows/{f}/steps` it carries all three. On-completion entries
|
|
12
|
+
// likewise. The child DELETEs answer `{success, data: {message}}`, not an empty body.
|
|
6
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
14
|
//# sourceMappingURL=flows-contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows-contract.js","sourceRoot":"","sources":["../../src/types/flows-contract.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"flows-contract.js","sourceRoot":"","sources":["../../src/types/flows-contract.ts"],"names":[],"mappings":";AAAA,+BAA+B;AAC/B,gCAAgC;AAChC,yFAAyF;AACzF,sFAAsF;AACtF,EAAE;AACF,gFAAgF;AAChF,wFAAwF;AACxF,EAAE;AACF,0FAA0F;AAC1F,2FAA2F;AAC3F,sFAAsF"}
|
package/dist/types/flows.d.ts
CHANGED
|
@@ -1,66 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
}
|
|
1
|
+
import type { FlowCallbackPayload, FlowCallbackResolveBodyPayload, FlowEventKindPayload, FlowEventPayload, FlowInstancePayload } from '../generated';
|
|
2
|
+
/** A flow run, as the route sends it. */
|
|
3
|
+
export type FlowInstance = FlowInstancePayload;
|
|
28
4
|
/**
|
|
29
|
-
* One appended flow lifecycle event.
|
|
5
|
+
* One appended flow lifecycle event — where per-step history lives. A step is an
|
|
6
|
+
* event whose `step_name` is set and whose `event_type` is one of the `FlowStep*`
|
|
7
|
+
* kinds.
|
|
8
|
+
*/
|
|
9
|
+
export type FlowEvent = FlowEventPayload;
|
|
10
|
+
/**
|
|
11
|
+
* The persisted flow-event vocabulary, as a union.
|
|
12
|
+
*
|
|
13
|
+
* Derived from the runtime API's OpenAPI enum, not copied by hand: the SDK is
|
|
14
|
+
* dependency-free and does not import `@zarel-ai/contract`, where the vocabulary
|
|
15
|
+
* is defined.
|
|
16
|
+
*/
|
|
17
|
+
export type FlowEventKind = FlowEventKindPayload;
|
|
18
|
+
/** A suspended flow's resumption point. The `id` is the capability token. */
|
|
19
|
+
export type FlowCallback = FlowCallbackPayload;
|
|
20
|
+
/**
|
|
21
|
+
* The body `PATCH /runtime/flows/callbacks/{id}` accepts — a CLOSED, enumerable pair, which is
|
|
22
|
+
* why it is a union and not a bag. DERIVED from the runtime API's OpenAPI document.
|
|
30
23
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
24
|
+
* The route refuses anything whose `action` is not `'complete'` or `'fail'`, and for `complete`
|
|
25
|
+
* requires `payload` to be a plain object. It settles the callback in opposite directions
|
|
26
|
+
* depending on `action`.
|
|
34
27
|
*/
|
|
35
|
-
export
|
|
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
|
-
}
|
|
28
|
+
export type FlowCallbackResolution = FlowCallbackResolveBodyPayload;
|
|
62
29
|
export type FlowInstanceListResponse = FlowInstance[];
|
|
63
30
|
export type FlowInstanceResponse = FlowInstance;
|
|
64
31
|
export type FlowEventListResponse = FlowEvent[];
|
|
65
32
|
export type FlowEventResponse = FlowEvent;
|
|
33
|
+
export type FlowCallbackListResponse = FlowCallback[];
|
|
34
|
+
export type FlowCallbackResponse = FlowCallback;
|
|
66
35
|
//# sourceMappingURL=flows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/types/flows.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/types/flows.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACR,mBAAmB,EACnB,8BAA8B,EAC9B,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACtB,MAAM,cAAc,CAAC;AAEtB,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAEjD,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,8BAA8B,CAAC;AAIpE,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;AAC1C,MAAM,MAAM,wBAAwB,GAAG,YAAY,EAAE,CAAC;AACtD,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC"}
|
package/dist/types/flows.js
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright 2026 Nicolas Moreno
|
|
2
4
|
// ── Flows ────────────────────────────────────────────────────────────────
|
|
3
5
|
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
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.
|
|
6
|
+
// THIS FILE DECLARES NO SHAPE. Every type below is the generated projection of
|
|
7
|
+
// the published response schema (the runtime API's OpenAPI document →
|
|
8
|
+
// `generated/runtime.ts`), so there is exactly one description of the
|
|
9
|
+
// `/runtime/flows/*` wire and the SDK cannot disagree with it. Nullable fields
|
|
10
|
+
// such as `error`, `step_name`, `output_key` and `duration_ms` arrive as `null`,
|
|
11
|
+
// not absent.
|
|
24
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
13
|
//# sourceMappingURL=flows.js.map
|
package/dist/types/flows.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../src/types/flows.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../src/types/flows.ts"],"names":[],"mappings":";AAAA,+BAA+B;AAC/B,gCAAgC;AAChC,4EAA4E;AAC5E,EAAE;AACF,+EAA+E;AAC/E,sEAAsE;AACtE,sEAAsE;AACtE,+EAA+E;AAC/E,iFAAiF;AACjF,cAAc"}
|
package/dist/types/imports.d.ts
CHANGED
|
@@ -42,6 +42,15 @@ export interface SnapshotImportFile {
|
|
|
42
42
|
data: Record<string, unknown>;
|
|
43
43
|
}>>;
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* NARROWER THAN THE WIRE ON `data`, for the reason `WorkflowReplayRequest` states: the published
|
|
47
|
+
* `SnapshotImportBody.data` is an open bag — a tenant's own records, judged against that tenant's
|
|
48
|
+
* contract — and `SnapshotImportFile` is the useful shape a caller wants help with. Not derived.
|
|
49
|
+
*
|
|
50
|
+
* The two MODES are the wire's exactly, and both are optional here and there: the published body
|
|
51
|
+
* carries no `default:` keywords, because openapi-typescript emits a property carrying one as
|
|
52
|
+
* REQUIRED, which had made the generated type disagree with this one.
|
|
53
|
+
*/
|
|
45
54
|
export interface SnapshotImportRequest {
|
|
46
55
|
data: SnapshotImportFile;
|
|
47
56
|
mode?: 'clean' | 'restore';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/types/imports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/types/imports.ts"],"names":[],"mappings":"AAEA,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;IACz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;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,11 +3,15 @@ export type { ActionDispatchParams, ActionDispatchSuccessResponse, } from './act
|
|
|
3
3
|
export type { ConfirmationGuard, ConfirmationChallenge, ConfirmationRetryOptions, } from './confirmation';
|
|
4
4
|
export type { ToolCatalogResponse, McpToolsResponse, ToolCallRequest, ToolCallResponse, UserToolCatalog, UserVisibleEntityTool, UserVisibleAction, UserVisibleTransitionTool, TransitionEdge, UserVisibleActionTool, FieldToolDefinition, McpToolDefinition, } from './tools';
|
|
5
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';
|
|
6
|
+
export type { StateMachineInstance, StateMachineInstanceListResponse, StateMachineInstanceResponse, StateMachineEventListParams, StateMachineEvent, StateMachineEventListResponse, StateMachineEventResponse, TransitionRequestStatus, TransitionRequestListParams, TransitionRequestItem, TransitionRequestListResponse, TransitionRequestResponse, TransitionRequestCreateBody, TransitionRequestPatchBody, TransitionRequestResolveInput, TransitionRequestPatchResponse, } from './state-machine';
|
|
7
|
+
export type { FlowInstance, FlowInstanceListResponse, FlowInstanceResponse, FlowEvent, FlowEventKind, FlowEventListResponse, FlowEventResponse, FlowCallback, FlowCallbackListResponse, FlowCallbackResolution, FlowCallbackResponse, } from './flows';
|
|
8
8
|
export type { RecordData, RefLabel, RecordListParams, RecordListResponse, RecordResponse, } from './records';
|
|
9
|
-
export type {
|
|
10
|
-
export type {
|
|
9
|
+
export type { ContractFlow, ContractFlowInput, ContractFlowStep, ContractFlowStepInline, ContractFlowOnCompletion, ContractFlowOnCompletionInline, ContractDeletedAck, } from './flows-contract';
|
|
10
|
+
export type { ContractTreatment, ContractTreatmentWrite, ContractTreatmentRails, ContractVocabularyEntry, ContractVocabularyCreate, ContractVocabularyWrite, ContractProfile, ContractProfileWrite, ContractProfileCreate, ContractTenantMetadata, ContractTenantMetadataWrite, } from './treatment-contract';
|
|
11
|
+
export type { CapabilityRecord, CapabilityCreate, CapabilityWrite, SchemaRecord, SchemaCreate, SchemaWrite, ConstraintRecord, ConstraintCreate, ConstraintWrite, PhaseRecord, PhaseCreate, PhaseWrite, PhaseEntryCondition, PhaseActionScope, } from './collections-contract';
|
|
12
|
+
export type { McpRetryPolicy, McpServerRecord, McpServerCreate, McpServerWrite, McpAllowedToolRecord, McpAllowedToolCreate, McpAllowedToolWrite, WebhookEventEffect, FlowEventEffect, EventRuleEffect, EventRuleRecord, RecordCreatedRule, RecordUpdatedRule, RecordDeletedRule, StateTransitionedRule, SystemEventRule, EventRuleWrite, EventRulePatch, } from './mcp-and-events-contract';
|
|
13
|
+
export type { ContractEntity, ContractEntityField, ContractEntityFieldList, ContractEntityFieldRecord, ContractEntityFieldRef, ContractEntityList, ContractEntityRecord, ContractEntitySummary, ContractFieldTransition, EntityInput, EntityReplaceInput, EntityWriteInput, FieldDefinitionInput, FieldReplaceInput, FieldWriteInput, ToolExecutionResult, } from './entities';
|
|
14
|
+
export type { RoleAssignRequest, EventRecord, EventListResponse, EventSubscriptionInput, ErrorBody, } from './platform';
|
|
11
15
|
export type { HealthResponse, MetricsResponse, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyListItem, ApiKeyListResponse, ApiKeyDeleteResponse, } from './system';
|
|
12
16
|
export type { ImportExecutionMode, BulkImportItem, BulkImportRequest, BulkImportItemResult, BulkImportResponse, SnapshotImportFile, SnapshotImportRequest, SnapshotImportResponse, } from './imports';
|
|
13
17
|
export type { Trace, TraceEvent, TraceEventError, TraceOutcome, TraceStage, TraceSummary, TraceUserRef, TraceListParams, TraceListResponse, } from './traces';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,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,EACf,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,GACpB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACR,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,GACzB,MAAM,aAAa,CAAC;AAErB,YAAY,EACR,oBAAoB,EACpB,gCAAgC,EAChC,4BAA4B,EAC5B,2BAA2B,EAC3B,iBAAiB,EACjB,6BAA6B,EAC7B,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,EAC7B,yBAAyB,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BAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAClB,MAAM,OAAO,CAAC"}
|
package/dist/types/locale.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Locale option for SDK methods that hit
|
|
3
3
|
* locale-aware GET endpoints.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* When locale is omitted the SDK MUST omit the `?locale=`
|
|
6
6
|
* query param entirely; the server then applies its own resolution chain
|
|
7
7
|
* (JWT preferences.language → canonical). Setting locale to an
|
|
8
8
|
* explicit value sends `?locale=<value>`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/types/locale.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/types/locale.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;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"}
|