@pellux/goodvibes-contracts 0.30.3 → 0.33.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.
Files changed (37) hide show
  1. package/README.md +2 -2
  2. package/artifacts/operator-contract.json +31 -417
  3. package/dist/generated/foundation-client-types.d.ts +18 -72
  4. package/dist/generated/foundation-client-types.d.ts.map +1 -1
  5. package/dist/generated/foundation-metadata.d.ts +2 -2
  6. package/dist/generated/foundation-metadata.js +2 -2
  7. package/dist/generated/operator-contract.d.ts.map +1 -1
  8. package/dist/generated/operator-contract.js +31 -417
  9. package/dist/generated/operator-method-ids.d.ts +1 -1
  10. package/dist/generated/operator-method-ids.d.ts.map +1 -1
  11. package/dist/generated/operator-method-ids.js +0 -1
  12. package/dist/generated/runtime-event-domains.d.ts +8 -0
  13. package/dist/generated/runtime-event-domains.d.ts.map +1 -1
  14. package/dist/index.d.ts +4 -3
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +38 -6
  17. package/dist/node.d.ts.map +1 -1
  18. package/dist/node.js +26 -2
  19. package/dist/types.d.ts +30 -23
  20. package/dist/types.d.ts.map +1 -1
  21. package/dist/types.js +7 -1
  22. package/dist/zod-schemas/accounts.d.ts +4 -4
  23. package/dist/zod-schemas/accounts.d.ts.map +1 -1
  24. package/dist/zod-schemas/accounts.js +4 -4
  25. package/dist/zod-schemas/events.d.ts +5 -5
  26. package/dist/zod-schemas/events.d.ts.map +1 -1
  27. package/dist/zod-schemas/events.js +4 -3
  28. package/dist/zod-schemas/index.d.ts +2 -2
  29. package/dist/zod-schemas/index.d.ts.map +1 -1
  30. package/dist/zod-schemas/index.js +1 -1
  31. package/dist/zod-schemas/providers.d.ts +30 -30
  32. package/dist/zod-schemas/providers.d.ts.map +1 -1
  33. package/dist/zod-schemas/providers.js +19 -19
  34. package/dist/zod-schemas/session.d.ts +17 -10
  35. package/dist/zod-schemas/session.d.ts.map +1 -1
  36. package/dist/zod-schemas/session.js +20 -6
  37. package/package.json +3 -2
@@ -1,3 +1,3 @@
1
- export declare const OPERATOR_METHOD_IDS: readonly ["accounts.snapshot", "approvals.approve", "approvals.cancel", "approvals.claim", "approvals.deny", "approvals.list", "artifacts.content.get", "artifacts.create", "artifacts.get", "artifacts.list", "automation.heartbeat.list", "automation.heartbeat.run", "automation.integration.snapshot", "automation.jobs.create", "automation.jobs.delete", "automation.jobs.disable", "automation.jobs.enable", "automation.jobs.list", "automation.jobs.patch", "automation.jobs.pause", "automation.jobs.resume", "automation.jobs.run", "automation.runs.cancel", "automation.runs.get", "automation.runs.list", "automation.runs.retry", "channels.accounts.action.default", "channels.accounts.action.named", "channels.accounts.get", "channels.accounts.list", "channels.accounts.surface.list", "channels.actions.invoke", "channels.actions.list", "channels.actions.surface.list", "channels.agent_tools.list", "channels.agent_tools.surface.list", "channels.allowlist.edit", "channels.allowlist.resolve", "channels.authorize", "channels.capabilities.list", "channels.capabilities.surface.list", "channels.directory.query", "channels.doctor.get", "channels.lifecycle.get", "channels.lifecycle.migrate", "channels.policies.audit", "channels.policies.list", "channels.policies.update", "channels.repairs.list", "channels.setup.get", "channels.status", "channels.targets.resolve", "channels.tools.invoke", "channels.tools.list", "channels.tools.surface.list", "companion.chat.events.stream", "companion.chat.messages.create", "companion.chat.messages.list", "companion.chat.sessions.create", "companion.chat.sessions.delete", "companion.chat.sessions.get", "companion.chat.sessions.update", "config.get", "config.set", "continuity.snapshot", "control.auth.current", "control.auth.login", "control.clients.list", "control.contract", "control.events.catalog", "control.events.stream", "control.messages.list", "control.methods.get", "control.methods.list", "control.snapshot", "control.status", "control.web", "deliveries.get", "deliveries.list", "health.snapshot", "homeassistant.homeGraph.askHomeGraph", "homeassistant.homeGraph.browse", "homeassistant.homeGraph.export", "homeassistant.homeGraph.generateHomeGraphPacket", "homeassistant.homeGraph.generateRoomPage", "homeassistant.homeGraph.import", "homeassistant.homeGraph.ingestHomeGraphArtifact", "homeassistant.homeGraph.ingestHomeGraphNote", "homeassistant.homeGraph.ingestHomeGraphUrl", "homeassistant.homeGraph.linkHomeGraphKnowledge", "homeassistant.homeGraph.listHomeGraphIssues", "homeassistant.homeGraph.map", "homeassistant.homeGraph.pages.list", "homeassistant.homeGraph.refinement.run", "homeassistant.homeGraph.refinement.task.cancel", "homeassistant.homeGraph.refinement.task.get", "homeassistant.homeGraph.refinement.tasks.list", "homeassistant.homeGraph.refreshDevicePassport", "homeassistant.homeGraph.reindex", "homeassistant.homeGraph.reset", "homeassistant.homeGraph.reviewHomeGraphFact", "homeassistant.homeGraph.sources.list", "homeassistant.homeGraph.status", "homeassistant.homeGraph.syncHomeGraph", "homeassistant.homeGraph.unlinkHomeGraphKnowledge", "intelligence.snapshot", "knowledge.ask", "knowledge.candidate.decide", "knowledge.candidate.get", "knowledge.candidates.list", "knowledge.connector.doctor", "knowledge.connector.get", "knowledge.connectors.list", "knowledge.extraction.get", "knowledge.extractions.list", "knowledge.graphql.execute", "knowledge.graphql.schema", "knowledge.ingest.artifact", "knowledge.ingest.bookmarks", "knowledge.ingest.browserHistory", "knowledge.ingest.connector", "knowledge.ingest.url", "knowledge.ingest.urls", "knowledge.issue.review", "knowledge.issues.list", "knowledge.item.get", "knowledge.job-runs.list", "knowledge.job.get", "knowledge.job.run", "knowledge.jobs.list", "knowledge.lint", "knowledge.map", "knowledge.nodes.list", "knowledge.packet", "knowledge.projection.materialize", "knowledge.projection.render", "knowledge.projections.list", "knowledge.refinement.run", "knowledge.refinement.task.cancel", "knowledge.refinement.task.get", "knowledge.refinement.tasks.list", "knowledge.reindex", "knowledge.report.get", "knowledge.reports.list", "knowledge.schedule.delete", "knowledge.schedule.enable", "knowledge.schedule.get", "knowledge.schedule.save", "knowledge.schedules.list", "knowledge.search", "knowledge.source.extraction.get", "knowledge.sources.list", "knowledge.status", "knowledge.usage.list", "local_auth.bootstrap.delete", "local_auth.sessions.delete", "local_auth.status", "local_auth.users.create", "local_auth.users.delete", "local_auth.users.password.rotate", "media.analyze", "media.generate", "media.providers.list", "media.transform", "memory.doctor", "memory.embeddings.default.set", "memory.vector.rebuild", "memory.vector.stats", "multimodal.analyze", "multimodal.packet", "multimodal.providers.list", "multimodal.status", "multimodal.writeback", "panels.list", "panels.open", "projectPlanning.decisions.list", "projectPlanning.decisions.record", "projectPlanning.evaluate", "projectPlanning.language.get", "projectPlanning.language.upsert", "projectPlanning.state.get", "projectPlanning.state.upsert", "projectPlanning.status", "providers.get", "providers.list", "providers.usage.get", "remote.node_host.contract", "remote.pair.requests.approve", "remote.pair.requests.list", "remote.pair.requests.reject", "remote.peers.disconnect", "remote.peers.invoke", "remote.peers.list", "remote.peers.token.revoke", "remote.peers.token.rotate", "remote.snapshot", "remote.work.cancel", "remote.work.list", "review.snapshot", "routes.bindings.create", "routes.bindings.delete", "routes.bindings.list", "routes.bindings.patch", "routes.snapshot", "scheduler.capacity", "schedules.create", "schedules.delete", "schedules.disable", "schedules.enable", "schedules.list", "schedules.run", "security.settings", "services.install", "services.restart", "services.start", "services.status", "services.stop", "services.uninstall", "sessions.close", "sessions.create", "sessions.followUp", "sessions.get", "sessions.inputs.cancel", "sessions.inputs.list", "sessions.integration.snapshot", "sessions.list", "sessions.messages.create", "sessions.messages.list", "sessions.reopen", "sessions.steer", "settings.snapshot", "surfaces.list", "tasks.cancel", "tasks.create", "tasks.get", "tasks.list", "tasks.retry", "tasks.status", "telemetry.errors.list", "telemetry.events.list", "telemetry.metrics.get", "telemetry.otlp.logs", "telemetry.otlp.metrics", "telemetry.otlp.traces", "telemetry.snapshot", "telemetry.stream", "telemetry.traces.list", "voice.providers.list", "voice.realtime.session", "voice.status", "voice.stt", "voice.tts", "voice.tts.stream", "voice.voices.list", "watchers.create", "watchers.delete", "watchers.list", "watchers.patch", "watchers.run", "watchers.start", "watchers.stop", "web_search.providers.list", "web_search.query", "worktrees.snapshot"];
1
+ export declare const OPERATOR_METHOD_IDS: readonly ["accounts.snapshot", "approvals.approve", "approvals.cancel", "approvals.claim", "approvals.deny", "approvals.list", "artifacts.content.get", "artifacts.create", "artifacts.get", "artifacts.list", "automation.heartbeat.list", "automation.heartbeat.run", "automation.integration.snapshot", "automation.jobs.create", "automation.jobs.delete", "automation.jobs.disable", "automation.jobs.enable", "automation.jobs.list", "automation.jobs.patch", "automation.jobs.pause", "automation.jobs.resume", "automation.jobs.run", "automation.runs.cancel", "automation.runs.get", "automation.runs.list", "automation.runs.retry", "channels.accounts.action.default", "channels.accounts.action.named", "channels.accounts.get", "channels.accounts.list", "channels.accounts.surface.list", "channels.actions.invoke", "channels.actions.list", "channels.actions.surface.list", "channels.agent_tools.list", "channels.agent_tools.surface.list", "channels.allowlist.edit", "channels.allowlist.resolve", "channels.authorize", "channels.capabilities.list", "channels.capabilities.surface.list", "channels.directory.query", "channels.doctor.get", "channels.lifecycle.get", "channels.policies.audit", "channels.policies.list", "channels.policies.update", "channels.repairs.list", "channels.setup.get", "channels.status", "channels.targets.resolve", "channels.tools.invoke", "channels.tools.list", "channels.tools.surface.list", "companion.chat.events.stream", "companion.chat.messages.create", "companion.chat.messages.list", "companion.chat.sessions.create", "companion.chat.sessions.delete", "companion.chat.sessions.get", "companion.chat.sessions.update", "config.get", "config.set", "continuity.snapshot", "control.auth.current", "control.auth.login", "control.clients.list", "control.contract", "control.events.catalog", "control.events.stream", "control.messages.list", "control.methods.get", "control.methods.list", "control.snapshot", "control.status", "control.web", "deliveries.get", "deliveries.list", "health.snapshot", "homeassistant.homeGraph.askHomeGraph", "homeassistant.homeGraph.browse", "homeassistant.homeGraph.export", "homeassistant.homeGraph.generateHomeGraphPacket", "homeassistant.homeGraph.generateRoomPage", "homeassistant.homeGraph.import", "homeassistant.homeGraph.ingestHomeGraphArtifact", "homeassistant.homeGraph.ingestHomeGraphNote", "homeassistant.homeGraph.ingestHomeGraphUrl", "homeassistant.homeGraph.linkHomeGraphKnowledge", "homeassistant.homeGraph.listHomeGraphIssues", "homeassistant.homeGraph.map", "homeassistant.homeGraph.pages.list", "homeassistant.homeGraph.refinement.run", "homeassistant.homeGraph.refinement.task.cancel", "homeassistant.homeGraph.refinement.task.get", "homeassistant.homeGraph.refinement.tasks.list", "homeassistant.homeGraph.refreshDevicePassport", "homeassistant.homeGraph.reindex", "homeassistant.homeGraph.reset", "homeassistant.homeGraph.reviewHomeGraphFact", "homeassistant.homeGraph.sources.list", "homeassistant.homeGraph.status", "homeassistant.homeGraph.syncHomeGraph", "homeassistant.homeGraph.unlinkHomeGraphKnowledge", "intelligence.snapshot", "knowledge.ask", "knowledge.candidate.decide", "knowledge.candidate.get", "knowledge.candidates.list", "knowledge.connector.doctor", "knowledge.connector.get", "knowledge.connectors.list", "knowledge.extraction.get", "knowledge.extractions.list", "knowledge.graphql.execute", "knowledge.graphql.schema", "knowledge.ingest.artifact", "knowledge.ingest.bookmarks", "knowledge.ingest.browserHistory", "knowledge.ingest.connector", "knowledge.ingest.url", "knowledge.ingest.urls", "knowledge.issue.review", "knowledge.issues.list", "knowledge.item.get", "knowledge.job-runs.list", "knowledge.job.get", "knowledge.job.run", "knowledge.jobs.list", "knowledge.lint", "knowledge.map", "knowledge.nodes.list", "knowledge.packet", "knowledge.projection.materialize", "knowledge.projection.render", "knowledge.projections.list", "knowledge.refinement.run", "knowledge.refinement.task.cancel", "knowledge.refinement.task.get", "knowledge.refinement.tasks.list", "knowledge.reindex", "knowledge.report.get", "knowledge.reports.list", "knowledge.schedule.delete", "knowledge.schedule.enable", "knowledge.schedule.get", "knowledge.schedule.save", "knowledge.schedules.list", "knowledge.search", "knowledge.source.extraction.get", "knowledge.sources.list", "knowledge.status", "knowledge.usage.list", "local_auth.bootstrap.delete", "local_auth.sessions.delete", "local_auth.status", "local_auth.users.create", "local_auth.users.delete", "local_auth.users.password.rotate", "media.analyze", "media.generate", "media.providers.list", "media.transform", "memory.doctor", "memory.embeddings.default.set", "memory.vector.rebuild", "memory.vector.stats", "multimodal.analyze", "multimodal.packet", "multimodal.providers.list", "multimodal.status", "multimodal.writeback", "panels.list", "panels.open", "projectPlanning.decisions.list", "projectPlanning.decisions.record", "projectPlanning.evaluate", "projectPlanning.language.get", "projectPlanning.language.upsert", "projectPlanning.state.get", "projectPlanning.state.upsert", "projectPlanning.status", "providers.get", "providers.list", "providers.usage.get", "remote.node_host.contract", "remote.pair.requests.approve", "remote.pair.requests.list", "remote.pair.requests.reject", "remote.peers.disconnect", "remote.peers.invoke", "remote.peers.list", "remote.peers.token.revoke", "remote.peers.token.rotate", "remote.snapshot", "remote.work.cancel", "remote.work.list", "review.snapshot", "routes.bindings.create", "routes.bindings.delete", "routes.bindings.list", "routes.bindings.patch", "routes.snapshot", "scheduler.capacity", "schedules.create", "schedules.delete", "schedules.disable", "schedules.enable", "schedules.list", "schedules.run", "security.settings", "services.install", "services.restart", "services.start", "services.status", "services.stop", "services.uninstall", "sessions.close", "sessions.create", "sessions.followUp", "sessions.get", "sessions.inputs.cancel", "sessions.inputs.list", "sessions.integration.snapshot", "sessions.list", "sessions.messages.create", "sessions.messages.list", "sessions.reopen", "sessions.steer", "settings.snapshot", "surfaces.list", "tasks.cancel", "tasks.create", "tasks.get", "tasks.list", "tasks.retry", "tasks.status", "telemetry.errors.list", "telemetry.events.list", "telemetry.metrics.get", "telemetry.otlp.logs", "telemetry.otlp.metrics", "telemetry.otlp.traces", "telemetry.snapshot", "telemetry.stream", "telemetry.traces.list", "voice.providers.list", "voice.realtime.session", "voice.status", "voice.stt", "voice.tts", "voice.tts.stream", "voice.voices.list", "watchers.create", "watchers.delete", "watchers.list", "watchers.patch", "watchers.run", "watchers.start", "watchers.stop", "web_search.providers.list", "web_search.query", "worktrees.snapshot"];
2
2
  export type OperatorMethodId = typeof OPERATOR_METHOD_IDS[number];
3
3
  //# sourceMappingURL=operator-method-ids.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operator-method-ids.d.ts","sourceRoot":"","sources":["../../src/generated/operator-method-ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,uuNAyQtB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"operator-method-ids.d.ts","sourceRoot":"","sources":["../../src/generated/operator-method-ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,ysNAwQtB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC"}
@@ -43,7 +43,6 @@ export const OPERATOR_METHOD_IDS = [
43
43
  "channels.directory.query",
44
44
  "channels.doctor.get",
45
45
  "channels.lifecycle.get",
46
- "channels.lifecycle.migrate",
47
46
  "channels.policies.audit",
48
47
  "channels.policies.list",
49
48
  "channels.policies.update",
@@ -1,4 +1,12 @@
1
1
  export declare const RUNTIME_EVENT_DOMAINS: readonly ["session", "turn", "providers", "tools", "tasks", "agents", "workflows", "orchestration", "communication", "planner", "permissions", "plugins", "mcp", "transport", "compaction", "ui", "ops", "forensics", "security", "automation", "routes", "control-plane", "deliveries", "watchers", "surfaces", "knowledge", "workspace"];
2
2
  export type RuntimeEventDomain = typeof RUNTIME_EVENT_DOMAINS[number];
3
+ /**
4
+ * Minimal structural constraint for a runtime event record.
5
+ * All concrete event types satisfy `{ readonly type: string }`.
6
+ * Canonical home for this type — transport packages import from here.
7
+ */
8
+ export type RuntimeEventRecord = {
9
+ readonly type: string;
10
+ };
3
11
  export declare function isRuntimeEventDomain(value: string): value is RuntimeEventDomain;
4
12
  //# sourceMappingURL=runtime-event-domains.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-event-domains.d.ts","sourceRoot":"","sources":["../../src/generated/runtime-event-domains.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,4UA4BxB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAEtE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAE/E"}
1
+ {"version":3,"file":"runtime-event-domains.d.ts","sourceRoot":"","sources":["../../src/generated/runtime-event-domains.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,4UA4BxB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAE/E"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import type { OperatorContractManifest, OperatorMethodContract, PeerContractManifest, PeerEndpointContract } from './types.js';
2
2
  import { OPERATOR_METHOD_IDS } from './generated/operator-method-ids.js';
3
3
  import { PEER_ENDPOINT_IDS } from './generated/peer-endpoint-ids.js';
4
- export type { ContractHttpDefinition, JsonSchema, OperatorContractManifest, OperatorEventCoverageContract, OperatorEventContract, OperatorMethodContract, OperatorSchemaCoverageContract, PeerContractManifest, PeerEndpointContract, } from './types.js';
4
+ export type { ContractHttpDefinition, DistributedPeerKind, DistributedWorkStatus, DistributedWorkType, GatewayEventTransport, GatewayMethodAccess, GatewayMethodSource, GatewayMethodTransport, JsonSchema, OperatorContractManifest, OperatorEventCoverageContract, OperatorEventContract, OperatorMethodContract, OperatorSchemaCoverageContract, PeerContractManifest, PeerEndpointContract, } from './types.js';
5
+ export { DISTRIBUTED_WORK_TYPES } from './types.js';
5
6
  export { FOUNDATION_METADATA } from './generated/foundation-metadata.js';
6
- export type { OperatorEventPayload, OperatorEventPayloadMap, OperatorMethodInput, OperatorMethodInputMap, OperatorMethodOutput, OperatorMethodOutputMap, OperatorStreamMethodId, OperatorTypedEventId, OperatorTypedMethodId, PeerEndpointInput, PeerEndpointInputMap, PeerEndpointOutput, PeerEndpointOutputMap, PeerTypedEndpointId, RuntimeDomainEventPayload, RuntimeDomainEventPayloadMap, RuntimeDomainEventType, RuntimeEventTypedDomain, } from './generated/foundation-client-types.js';
7
+ export type { JsonPrimitive, JsonValue, SharedSessionConversationRouteOutput, OperatorEventPayload, OperatorEventPayloadMap, OperatorMethodInput, OperatorMethodInputMap, OperatorMethodOutput, OperatorMethodOutputMap, OperatorStreamMethodId, OperatorTypedEventId, OperatorTypedMethodId, PeerEndpointInput, PeerEndpointInputMap, PeerEndpointOutput, PeerEndpointOutputMap, PeerTypedEndpointId, RuntimeDomainEventPayload, RuntimeDomainEventPayloadMap, RuntimeDomainEventType, RuntimeEventTypedDomain, } from './generated/foundation-client-types.js';
7
8
  export { OPERATOR_CONTRACT } from './generated/operator-contract.js';
8
9
  export { OPERATOR_METHOD_IDS } from './generated/operator-method-ids.js';
9
10
  export type { OperatorMethodId } from './generated/operator-method-ids.js';
@@ -11,7 +12,7 @@ export { PEER_CONTRACT } from './generated/peer-contract.js';
11
12
  export { PEER_ENDPOINT_IDS } from './generated/peer-endpoint-ids.js';
12
13
  export type { PeerEndpointId } from './generated/peer-endpoint-ids.js';
13
14
  export { RUNTIME_EVENT_DOMAINS, isRuntimeEventDomain } from './generated/runtime-event-domains.js';
14
- export type { RuntimeEventDomain } from './generated/runtime-event-domains.js';
15
+ export type { RuntimeEventDomain, RuntimeEventRecord } from './generated/runtime-event-domains.js';
15
16
  export declare function getOperatorContract(): OperatorContractManifest;
16
17
  export declare function getPeerContract(): PeerContractManifest;
17
18
  export declare function getOperatorMethod(methodId: string): OperatorMethodContract | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,Y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IDS } from './generated/operator-method-ids.js';
4
4
  import { PEER_CONTRACT } from './generated/peer-contract.js';
5
5
  import { PEER_ENDPOINT_IDS } from './generated/peer-endpoint-ids.js';
6
+ export { DISTRIBUTED_WORK_TYPES } from './types.js';
6
7
  export { FOUNDATION_METADATA } from './generated/foundation-metadata.js';
7
8
  export { OPERATOR_CONTRACT } from './generated/operator-contract.js';
8
9
  export { OPERATOR_METHOD_IDS } from './generated/operator-method-ids.js';
@@ -15,13 +16,42 @@ export function getOperatorContract() {
15
16
  export function getPeerContract() {
16
17
  return PEER_CONTRACT;
17
18
  }
18
- const OPERATOR_METHODS_BY_ID = new Map(OPERATOR_CONTRACT.operator.methods.map((method) => [method.id, method]));
19
- const PEER_ENDPOINTS_BY_ID = new Map(PEER_CONTRACT.endpoints.map((endpoint) => [endpoint.id, endpoint]));
19
+ // Lazy-init maps so tree-shake-conscious bundles that only need
20
+ // OPERATOR_METHOD_IDS / PEER_ENDPOINT_IDS don't pay the map-construction cost.
21
+ let _operatorMethodsById;
22
+ let _peerEndpointsById;
23
+ function getOperatorMethodsById() {
24
+ if (!_operatorMethodsById) {
25
+ _operatorMethodsById = new Map(OPERATOR_CONTRACT.operator.methods.map((method) => [method.id, method]));
26
+ }
27
+ return _operatorMethodsById;
28
+ }
29
+ function getPeerEndpointsById() {
30
+ if (!_peerEndpointsById) {
31
+ _peerEndpointsById = new Map(PEER_CONTRACT.endpoints.map((endpoint) => [endpoint.id, endpoint]));
32
+ }
33
+ return _peerEndpointsById;
34
+ }
35
+ // Precomputed Sets for O(1) membership tests. Also lazy.
36
+ let _operatorMethodIdSet;
37
+ let _peerEndpointIdSet;
38
+ function getOperatorMethodIdSet() {
39
+ if (!_operatorMethodIdSet) {
40
+ _operatorMethodIdSet = new Set(OPERATOR_METHOD_IDS);
41
+ }
42
+ return _operatorMethodIdSet;
43
+ }
44
+ function getPeerEndpointIdSet() {
45
+ if (!_peerEndpointIdSet) {
46
+ _peerEndpointIdSet = new Set(PEER_ENDPOINT_IDS);
47
+ }
48
+ return _peerEndpointIdSet;
49
+ }
20
50
  export function getOperatorMethod(methodId) {
21
- return OPERATOR_METHODS_BY_ID.get(methodId);
51
+ return getOperatorMethodsById().get(methodId);
22
52
  }
23
53
  export function getPeerEndpoint(endpointId) {
24
- return PEER_ENDPOINTS_BY_ID.get(endpointId);
54
+ return getPeerEndpointsById().get(endpointId);
25
55
  }
26
56
  export function listOperatorMethods() {
27
57
  return getOperatorContract().operator.methods;
@@ -30,10 +60,12 @@ export function listPeerEndpoints() {
30
60
  return getPeerContract().endpoints;
31
61
  }
32
62
  export function isOperatorMethodId(value) {
33
- return OPERATOR_METHOD_IDS.includes(value);
63
+ // O(1) Set lookup instead of O(n) linear .includes over the readonly tuple.
64
+ return getOperatorMethodIdSet().has(value);
34
65
  }
35
66
  export function isPeerEndpointId(value) {
36
- return PEER_ENDPOINT_IDS.includes(value);
67
+ // O(1) Set lookup instead of O(n) linear .includes over the readonly tuple.
68
+ return getPeerEndpointIdSet().has(value);
37
69
  }
38
70
  // Re-export Zod schemas + inferred shapes for runtime validation.
39
71
  export * from './zod-schemas/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AA8BA,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
package/dist/node.js CHANGED
@@ -1,7 +1,31 @@
1
1
  import { fileURLToPath } from 'node:url';
2
+ import { existsSync } from 'node:fs';
3
+ // These helpers resolve artifact paths relative to the bundled
4
+ // import.meta.url. This works when consumers import from the published npm
5
+ // package (artifacts are copied alongside dist/). It breaks when a bundler
6
+ // inlines this module without copying the artifact files. We validate the
7
+ // resolved path exists and throw a ConfigurationError with actionable guidance.
8
+ function resolveArtifactPath(artifactRelativePath) {
9
+ let resolved;
10
+ try {
11
+ resolved = fileURLToPath(new URL(artifactRelativePath, import.meta.url));
12
+ }
13
+ catch (cause) {
14
+ throw new Error(`Cannot resolve contract artifact path "${artifactRelativePath}". ` +
15
+ 'This usually means the module was bundled without copying the artifacts/ directory. ' +
16
+ 'Ensure the @pellux/goodvibes-contracts package is not inlined by your bundler. ' +
17
+ `Caused by: ${String(cause)}`);
18
+ }
19
+ if (!existsSync(resolved)) {
20
+ throw new Error(`Contract artifact not found at resolved path: ${resolved}. ` +
21
+ 'Ensure the @pellux/goodvibes-contracts package includes the artifacts/ directory ' +
22
+ '(check that your package manager did not strip non-JS files from node_modules).');
23
+ }
24
+ return resolved;
25
+ }
2
26
  export function getOperatorContractPath() {
3
- return fileURLToPath(new URL('../artifacts/operator-contract.json', import.meta.url));
27
+ return resolveArtifactPath('../artifacts/operator-contract.json');
4
28
  }
5
29
  export function getPeerContractPath() {
6
- return fileURLToPath(new URL('../artifacts/peer-contract.json', import.meta.url));
30
+ return resolveArtifactPath('../artifacts/peer-contract.json');
7
31
  }
package/dist/types.d.ts CHANGED
@@ -6,7 +6,8 @@ export type GatewayMethodAccess = 'public' | 'authenticated' | 'admin' | 'remote
6
6
  export type GatewayEventTransport = 'sse' | 'ws' | 'internal';
7
7
  export type { RuntimeEventDomain } from './generated/runtime-event-domains.js';
8
8
  export type DistributedPeerKind = 'node' | 'device';
9
- export type DistributedWorkType = 'invoke' | 'status.request' | 'location.request' | 'session.message' | 'automation.run';
9
+ export declare const DISTRIBUTED_WORK_TYPES: readonly ["invoke", "status.request", "location.request", "session.message", "automation.run"];
10
+ export type DistributedWorkType = (typeof DISTRIBUTED_WORK_TYPES)[number];
10
11
  export type DistributedWorkStatus = 'queued' | 'claimed' | 'completed' | 'failed' | 'cancelled' | 'expired';
11
12
  export interface ContractHttpDefinition {
12
13
  readonly method: 'GET' | 'POST' | 'PATCH' | 'DELETE';
@@ -21,16 +22,22 @@ export interface OperatorMethodContract {
21
22
  readonly access: GatewayMethodAccess;
22
23
  readonly transport: readonly GatewayMethodTransport[];
23
24
  readonly scopes: readonly string[];
24
- readonly http?: ContractHttpDefinition;
25
- readonly events?: readonly string[];
26
- readonly inputSchema?: JsonSchema;
27
- readonly outputSchema?: JsonSchema;
28
- readonly pluginId?: string;
29
- readonly dangerous?: boolean;
30
- readonly invokable?: boolean;
25
+ readonly http?: ContractHttpDefinition | undefined;
26
+ readonly events?: readonly string[] | undefined;
27
+ readonly inputSchema?: JsonSchema | undefined;
28
+ readonly outputSchema?: JsonSchema | undefined;
29
+ readonly pluginId?: string | undefined;
30
+ readonly dangerous?: boolean | undefined;
31
+ readonly invokable?: boolean | undefined;
31
32
  /** Whether this method is idempotent. When true, safe to retry on 5xx + network errors. */
32
- readonly idempotent?: boolean;
33
- readonly metadata?: Record<string, unknown>;
33
+ readonly idempotent?: boolean | undefined;
34
+ /**
35
+ * Intentionally open bag for generator-supplied extension fields (e.g.
36
+ * plugin manifests, analytics tags, UI hints). Consumers must not rely on any
37
+ * specific key being present — treat as advisory display metadata only.
38
+ * Narrowing this type would require a versioned generator ABI bump.
39
+ */
40
+ readonly metadata?: Record<string, unknown> | undefined;
34
41
  }
35
42
  export interface OperatorEventContract {
36
43
  readonly id: string;
@@ -40,12 +47,12 @@ export interface OperatorEventContract {
40
47
  readonly source: GatewayMethodSource;
41
48
  readonly transport: readonly GatewayEventTransport[];
42
49
  readonly scopes: readonly string[];
43
- readonly domains?: readonly RuntimeEventDomain[];
44
- readonly wireEvents?: readonly string[];
45
- readonly payloadSchema?: JsonSchema;
46
- readonly outputSchema?: JsonSchema;
47
- readonly pluginId?: string;
48
- readonly metadata?: Record<string, unknown>;
50
+ readonly domains?: readonly RuntimeEventDomain[] | undefined;
51
+ readonly wireEvents?: readonly string[] | undefined;
52
+ readonly payloadSchema?: JsonSchema | undefined;
53
+ readonly outputSchema?: JsonSchema | undefined;
54
+ readonly pluginId?: string | undefined;
55
+ readonly metadata?: Record<string, unknown> | undefined;
49
56
  }
50
57
  export interface OperatorSchemaCoverageContract {
51
58
  readonly methods: number;
@@ -77,7 +84,7 @@ export interface OperatorContractManifest {
77
84
  readonly current: {
78
85
  readonly method: string;
79
86
  readonly path: string;
80
- readonly aliasPaths?: readonly string[];
87
+ readonly aliasPaths?: readonly string[] | undefined;
81
88
  readonly responseSchema: JsonSchema;
82
89
  };
83
90
  readonly sessionCookie: {
@@ -107,11 +114,11 @@ export interface OperatorContractManifest {
107
114
  readonly path: string;
108
115
  readonly clientFrames: readonly {
109
116
  readonly type: string;
110
- readonly fields?: readonly string[];
117
+ readonly fields?: readonly string[] | undefined;
111
118
  }[];
112
119
  readonly serverFrames: readonly {
113
120
  readonly type: string;
114
- readonly fields?: readonly string[];
121
+ readonly fields?: readonly string[] | undefined;
115
122
  }[];
116
123
  };
117
124
  };
@@ -131,12 +138,12 @@ export interface PeerEndpointContract {
131
138
  readonly method: 'GET' | 'POST';
132
139
  readonly path: string;
133
140
  readonly auth: 'none' | 'bearer-peer-token' | 'bearer-operator-token';
134
- readonly requiredScope?: string;
141
+ readonly requiredScope?: string | undefined;
135
142
  readonly description: string;
136
- readonly inputSchema?: JsonSchema;
137
- readonly outputSchema?: JsonSchema;
143
+ readonly inputSchema?: JsonSchema | undefined;
144
+ readonly outputSchema?: JsonSchema | undefined;
138
145
  /** Whether this endpoint is idempotent. When true, safe to retry on 5xx + network errors. */
139
- readonly idempotent?: boolean;
146
+ readonly idempotent?: boolean | undefined;
140
147
  }
141
148
  export interface PeerContractManifest {
142
149
  readonly schemaVersion: 1;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACjD,M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AC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/C,6FAA6F;IAC7F,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3C;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACnD,QAAQ,CAAC,SAAS,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACpD,QAAQ,CAAC,sBAAsB,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAClE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC5C"}
package/dist/types.js CHANGED
@@ -1 +1,7 @@
1
- export {};
1
+ export const DISTRIBUTED_WORK_TYPES = [
2
+ 'invoke',
3
+ 'status.request',
4
+ 'location.request',
5
+ 'session.message',
6
+ 'automation.run',
7
+ ];
@@ -52,7 +52,7 @@ export declare const AccountsSnapshotResponseSchema: z.ZodObject<{
52
52
  usageWindows: z.ZodArray<z.ZodObject<{
53
53
  label: z.ZodString;
54
54
  detail: z.ZodString;
55
- }, z.core.$strip>>;
55
+ }, z.core.$strict>>;
56
56
  issues: z.ZodArray<z.ZodString>;
57
57
  recommendedActions: z.ZodArray<z.ZodString>;
58
58
  routeRecords: z.ZodArray<z.ZodObject<{
@@ -72,10 +72,10 @@ export declare const AccountsSnapshotResponseSchema: z.ZodObject<{
72
72
  }>;
73
73
  detail: z.ZodString;
74
74
  issues: z.ZodArray<z.ZodString>;
75
- }, z.core.$strip>>;
76
- }, z.core.$catchall<z.ZodUnknown>>>;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>>;
77
77
  configuredCount: z.ZodNumber;
78
78
  issueCount: z.ZodNumber;
79
- }, z.core.$strip>;
79
+ }, z.core.$strict>;
80
80
  export type AccountsSnapshotResponse = z.infer<typeof AccountsSnapshotResponseSchema>;
81
81
  //# sourceMappingURL=accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAyC3B;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAyC3B;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKhC,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -7,11 +7,11 @@ const ProviderRouteRecordSchema = z.object({
7
7
  freshness: AuthFreshnessSchema,
8
8
  detail: z.string(),
9
9
  issues: z.array(z.string()),
10
- });
10
+ }).strict();
11
11
  const UsageWindowSchema = z.object({
12
12
  label: z.string(),
13
13
  detail: z.string(),
14
- });
14
+ }).strict();
15
15
  const ProviderSnapshotSchema = z.object({
16
16
  providerId: z.string(),
17
17
  active: z.boolean(),
@@ -33,7 +33,7 @@ const ProviderSnapshotSchema = z.object({
33
33
  issues: z.array(z.string()),
34
34
  recommendedActions: z.array(z.string()),
35
35
  routeRecords: z.array(ProviderRouteRecordSchema),
36
- }).catchall(z.unknown());
36
+ }).strict();
37
37
  /**
38
38
  * Schema for `accounts.snapshot` response.
39
39
  *
@@ -44,4 +44,4 @@ export const AccountsSnapshotResponseSchema = z.object({
44
44
  providers: z.array(ProviderSnapshotSchema),
45
45
  configuredCount: z.number(),
46
46
  issueCount: z.number(),
47
- });
47
+ }).strict();
@@ -7,24 +7,24 @@ import { z } from 'zod/v4';
7
7
  */
8
8
  export declare const SerializedEventEnvelopeSchema: z.ZodObject<{
9
9
  type: z.ZodString;
10
- timestamp: z.ZodOptional<z.ZodNumber>;
11
10
  ts: z.ZodOptional<z.ZodNumber>;
12
11
  traceId: z.ZodOptional<z.ZodString>;
13
12
  sessionId: z.ZodOptional<z.ZodString>;
14
13
  source: z.ZodOptional<z.ZodString>;
15
14
  payload: z.ZodUnknown;
16
- }, z.core.$strip>;
15
+ }, z.core.$strict>;
17
16
  export type SerializedEventEnvelopeShape = z.infer<typeof SerializedEventEnvelopeSchema>;
18
17
  /**
19
18
  * Schema for a typed SSE / WS event envelope where the payload is a known
20
- * runtime event record (has a `type` discriminant string).
19
+ * runtime event record (has a `type` discriminant string). Event-specific
20
+ * payload validation happens at each domain boundary; this base schema keeps
21
+ * the discriminant plus the event fields that belong to that domain event.
21
22
  */
22
23
  export declare const RuntimeEventRecordSchema: z.ZodObject<{
23
24
  type: z.ZodString;
24
25
  }, z.core.$catchall<z.ZodUnknown>>;
25
26
  export declare const TypedSerializedEventEnvelopeSchema: z.ZodObject<{
26
27
  type: z.ZodString;
27
- timestamp: z.ZodOptional<z.ZodNumber>;
28
28
  ts: z.ZodOptional<z.ZodNumber>;
29
29
  traceId: z.ZodOptional<z.ZodString>;
30
30
  sessionId: z.ZodOptional<z.ZodString>;
@@ -32,6 +32,6 @@ export declare const TypedSerializedEventEnvelopeSchema: z.ZodObject<{
32
32
  payload: z.ZodObject<{
33
33
  type: z.ZodString;
34
34
  }, z.core.$catchall<z.ZodUnknown>>;
35
- }, z.core.$strip>;
35
+ }, z.core.$strict>;
36
36
  export type TypedSerializedEventEnvelopeShape = z.infer<typeof TypedSerializedEventEnvelopeSchema>;
37
37
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;iBAQxC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;kCAEb,CAAC;AAEzB,eAAO,MAAM,kCAAkC;;;;;;;;;;iBAE7C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;;kBAO/B,CAAC;AAEZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;kCAEb,CAAC;AAEzB,eAAO,MAAM,kCAAkC;;;;;;;;;kBAE7C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
@@ -7,16 +7,17 @@ import { z } from 'zod/v4';
7
7
  */
8
8
  export const SerializedEventEnvelopeSchema = z.object({
9
9
  type: z.string(),
10
- timestamp: z.number().optional(),
11
10
  ts: z.number().optional(),
12
11
  traceId: z.string().optional(),
13
12
  sessionId: z.string().optional(),
14
13
  source: z.string().optional(),
15
14
  payload: z.unknown(),
16
- });
15
+ }).strict();
17
16
  /**
18
17
  * Schema for a typed SSE / WS event envelope where the payload is a known
19
- * runtime event record (has a `type` discriminant string).
18
+ * runtime event record (has a `type` discriminant string). Event-specific
19
+ * payload validation happens at each domain boundary; this base schema keeps
20
+ * the discriminant plus the event fields that belong to that domain event.
20
21
  */
21
22
  export const RuntimeEventRecordSchema = z.object({
22
23
  type: z.string(),
@@ -6,6 +6,6 @@ export { SerializedEventEnvelopeSchema, TypedSerializedEventEnvelopeSchema, Runt
6
6
  export type { SerializedEventEnvelopeShape, TypedSerializedEventEnvelopeShape, } from './events.js';
7
7
  export { ControlStatusResponseSchema, LocalAuthStatusResponseSchema, } from './session.js';
8
8
  export type { ControlStatusResponse, LocalAuthStatusResponse, } from './session.js';
9
- export { ProviderModelRefSchema, ProviderModelEntrySchema, ConfiguredViaSchema, ProviderEntrySchema, ListProvidersResponseSchema, CurrentModelResponseSchema, PatchCurrentModelBodySchema, PatchCurrentModelErrorSchema, PatchCurrentModelResponseSchema, ModelChangedEventSchema, } from './providers.js';
10
- export type { ProviderModelRef, ProviderModelEntry, ConfiguredVia, ProviderEntry, ListProvidersResponse, CurrentModelResponse, PatchCurrentModelBody, PatchCurrentModelError, PatchCurrentModelResponse, ModelChangedEvent, } from './providers.js';
9
+ export { ProviderModelRefSchema, ProviderModelEntrySchema, ConfiguredViaSchema, ProviderAuthRouteDescriptorSchema, ProviderModelProviderSchema, ListProviderModelsResponseSchema, CurrentModelResponseSchema, PatchCurrentModelBodySchema, PatchCurrentModelErrorSchema, PatchCurrentModelResponseSchema, ModelChangedEventSchema, } from './providers.js';
10
+ export type { ProviderModelRef, ProviderModelEntry, ConfiguredVia, ProviderAuthRouteDescriptor, ProviderModelProvider, ListProviderModelsResponse, CurrentModelResponse, PatchCurrentModelBody, PatchCurrentModelError, PatchCurrentModelResponse, ModelChangedEvent, } from './providers.js';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,8BAA8B,GAC/B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,wBAAwB,GACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,8BAA8B,GAC/B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,wBAAwB,GACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,iCAAiC,EACjC,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
@@ -2,4 +2,4 @@ export { ControlAuthLoginResponseSchema, ControlAuthCurrentResponseSchema, } fro
2
2
  export { AccountsSnapshotResponseSchema, } from './accounts.js';
3
3
  export { SerializedEventEnvelopeSchema, TypedSerializedEventEnvelopeSchema, RuntimeEventRecordSchema, } from './events.js';
4
4
  export { ControlStatusResponseSchema, LocalAuthStatusResponseSchema, } from './session.js';
5
- export { ProviderModelRefSchema, ProviderModelEntrySchema, ConfiguredViaSchema, ProviderEntrySchema, ListProvidersResponseSchema, CurrentModelResponseSchema, PatchCurrentModelBodySchema, PatchCurrentModelErrorSchema, PatchCurrentModelResponseSchema, ModelChangedEventSchema, } from './providers.js';
5
+ export { ProviderModelRefSchema, ProviderModelEntrySchema, ConfiguredViaSchema, ProviderAuthRouteDescriptorSchema, ProviderModelProviderSchema, ListProviderModelsResponseSchema, CurrentModelResponseSchema, PatchCurrentModelBodySchema, PatchCurrentModelErrorSchema, PatchCurrentModelResponseSchema, ModelChangedEventSchema, } from './providers.js';