@contractspec/lib.contracts 1.46.2 → 1.47.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 (103) hide show
  1. package/dist/app-config/app-config.capability.d.ts +7 -0
  2. package/dist/app-config/app-config.capability.js +23 -0
  3. package/dist/app-config/app-config.feature.d.ts +1 -2
  4. package/dist/app-config/app-config.feature.js +9 -2
  5. package/dist/app-config/contracts.d.ts +50 -50
  6. package/dist/app-config/events.d.ts +27 -27
  7. package/dist/app-config/index.d.ts +4 -3
  8. package/dist/app-config/index.js +3 -2
  9. package/dist/app-config/lifecycle-contracts.d.ts +55 -55
  10. package/dist/app-config/runtime.d.ts +6 -6
  11. package/dist/app-config/spec.d.ts +9 -5
  12. package/dist/app-config/spec.js +5 -1
  13. package/dist/contract-registry/schemas.d.ts +2 -2
  14. package/dist/data-views/runtime.d.ts +5 -1
  15. package/dist/data-views/runtime.js +34 -7
  16. package/dist/data-views/spec.d.ts +1 -1
  17. package/dist/docs/index.js +2 -1
  18. package/dist/docs/tech/cli.docblock.d.ts +6 -0
  19. package/dist/docs/tech/cli.docblock.js +138 -0
  20. package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +106 -1
  21. package/dist/docs/tech/studio/project-access-teams.docblock.js +3 -1
  22. package/dist/examples/index.d.ts +9 -1
  23. package/dist/examples/index.js +8 -1
  24. package/dist/examples/registry.d.ts +3 -25
  25. package/dist/examples/registry.js +4 -60
  26. package/dist/examples/schema.d.ts +17 -17
  27. package/dist/examples/types.d.ts +1 -1
  28. package/dist/features/types.d.ts +1 -1
  29. package/dist/index.d.ts +27 -26
  30. package/dist/index.js +6 -6
  31. package/dist/install.d.ts +1 -1
  32. package/dist/integrations/index.d.ts +2 -2
  33. package/dist/integrations/index.js +2 -2
  34. package/dist/integrations/integrations.capability.d.ts +7 -0
  35. package/dist/integrations/integrations.capability.js +17 -0
  36. package/dist/integrations/integrations.feature.d.ts +1 -2
  37. package/dist/integrations/integrations.feature.js +9 -2
  38. package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
  39. package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
  40. package/dist/integrations/openbanking/models.d.ts +55 -55
  41. package/dist/integrations/openbanking/openbanking.capability.d.ts +7 -0
  42. package/dist/integrations/openbanking/openbanking.capability.js +21 -0
  43. package/dist/integrations/openbanking/openbanking.feature.d.ts +1 -2
  44. package/dist/integrations/openbanking/openbanking.feature.js +9 -2
  45. package/dist/integrations/operations.d.ts +102 -102
  46. package/dist/integrations/providers/elevenlabs.d.ts +1 -0
  47. package/dist/integrations/providers/elevenlabs.js +3 -2
  48. package/dist/integrations/providers/gcs-storage.d.ts +1 -0
  49. package/dist/integrations/providers/gcs-storage.js +3 -2
  50. package/dist/integrations/providers/gmail.d.ts +1 -0
  51. package/dist/integrations/providers/gmail.js +3 -2
  52. package/dist/integrations/providers/google-calendar.d.ts +1 -0
  53. package/dist/integrations/providers/google-calendar.js +3 -2
  54. package/dist/integrations/providers/impls/provider-factory.js +2 -1
  55. package/dist/integrations/providers/mistral.d.ts +1 -0
  56. package/dist/integrations/providers/mistral.js +3 -2
  57. package/dist/integrations/providers/postmark.d.ts +1 -0
  58. package/dist/integrations/providers/postmark.js +3 -2
  59. package/dist/integrations/providers/powens.d.ts +1 -0
  60. package/dist/integrations/providers/powens.js +3 -2
  61. package/dist/integrations/providers/qdrant.d.ts +1 -0
  62. package/dist/integrations/providers/qdrant.js +3 -2
  63. package/dist/integrations/providers/stripe.d.ts +1 -0
  64. package/dist/integrations/providers/stripe.js +3 -2
  65. package/dist/integrations/providers/twilio-sms.d.ts +1 -0
  66. package/dist/integrations/providers/twilio-sms.js +3 -2
  67. package/dist/integrations/spec.d.ts +5 -1
  68. package/dist/integrations/spec.js +5 -1
  69. package/dist/knowledge/knowledge.capability.d.ts +7 -0
  70. package/dist/knowledge/knowledge.capability.js +21 -0
  71. package/dist/knowledge/knowledge.feature.d.ts +1 -2
  72. package/dist/knowledge/knowledge.feature.js +9 -2
  73. package/dist/knowledge/operations.d.ts +66 -66
  74. package/dist/llm/exporters.d.ts +1 -1
  75. package/dist/llm/types.d.ts +1 -1
  76. package/dist/onboarding-base.d.ts +29 -29
  77. package/dist/operations/operation.d.ts +1 -1
  78. package/dist/server/mcp/createMcpServer.js +1 -1
  79. package/dist/server/mcp/mcpTypes.d.ts +1 -1
  80. package/dist/server/mcp/registerPresentations.js +1 -1
  81. package/dist/server/mcp/registerResources.js +2 -2
  82. package/dist/tests/index.d.ts +2 -2
  83. package/dist/tests/index.js +2 -2
  84. package/dist/tests/spec.d.ts +2 -1
  85. package/dist/tests/spec.js +4 -1
  86. package/dist/types.d.ts +2 -2
  87. package/dist/workflow/index.d.ts +8 -1
  88. package/dist/workflow/index.js +8 -1
  89. package/dist/workflow/runner.d.ts +2 -2
  90. package/dist/workflow/spec.d.ts +1 -1
  91. package/dist/workflow/validation.d.ts +1 -1
  92. package/dist/workspace-config/contractsrc-schema.d.ts +45 -974
  93. package/dist/workspace-config/contractsrc-schema.js +89 -55
  94. package/dist/workspace-config/contractsrc-types.d.ts +346 -0
  95. package/dist/workspace-config/contractsrc-types.js +0 -0
  96. package/dist/workspace-config/index.d.ts +3 -2
  97. package/package.json +27 -25
  98. package/dist/docs/tech/contracts/create-subscription.docblock.d.ts +0 -6
  99. package/dist/docs/tech/contracts/create-subscription.docblock.js +0 -21
  100. package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts +0 -6
  101. package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.js +0 -21
  102. package/dist/docs/tech/templates/runtime.docblock.d.ts +0 -6
  103. package/dist/docs/tech/templates/runtime.docblock.js +0 -21
package/dist/index.js CHANGED
@@ -54,14 +54,14 @@ import { TelemetryRegistry, makeTelemetryKey } from "./telemetry/spec.js";
54
54
  import { TelemetryTracker } from "./telemetry/tracker.js";
55
55
  import { TelemetryAnomalyMonitor } from "./telemetry/anomaly.js";
56
56
  import "./telemetry/index.js";
57
- import { TestRegistry, makeTestKey } from "./tests/spec.js";
57
+ import { TestRegistry, defineTestSpec, makeTestKey } from "./tests/spec.js";
58
58
  import { TestRunner } from "./tests/runner.js";
59
59
  import "./tests/index.js";
60
60
  import { ExperimentRegistry, makeExperimentKey } from "./experiments/spec.js";
61
61
  import { ExperimentEvaluator } from "./experiments/evaluator.js";
62
- import { AppBlueprintRegistry, makeAppBlueprintKey } from "./app-config/spec.js";
62
+ import { AppBlueprintRegistry, defineAppConfig, makeAppBlueprintKey } from "./app-config/spec.js";
63
63
  import { composeAppConfig, resolveAppConfig } from "./app-config/runtime.js";
64
- import { IntegrationSpecRegistry, makeIntegrationSpecKey } from "./integrations/spec.js";
64
+ import { IntegrationSpecRegistry, defineIntegration, makeIntegrationSpecKey } from "./integrations/spec.js";
65
65
  import { registerStripeIntegration, stripeIntegrationSpec } from "./integrations/providers/stripe.js";
66
66
  import { postmarkIntegrationSpec, registerPostmarkIntegration } from "./integrations/providers/postmark.js";
67
67
  import { qdrantIntegrationSpec, registerQdrantIntegration } from "./integrations/providers/qdrant.js";
@@ -106,7 +106,7 @@ import { WorkflowPreFlightError, WorkflowRunner } from "./workflow/runner.js";
106
106
  import { InMemoryStateStore } from "./workflow/adapters/memory-store.js";
107
107
  import { PrismaStateStore } from "./workflow/adapters/db-adapter.js";
108
108
  import { createFileStateStore } from "./workflow/adapters/file-adapter.js";
109
- import "./workflow/index.js";
109
+ import { defineWorkflow } from "./workflow/index.js";
110
110
  import { docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from "./docs/presentations.js";
111
111
  import { DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from "./docs/registry.js";
112
112
  import { techContractsDocs } from "./docs/tech-contracts.docs.js";
@@ -120,7 +120,7 @@ import { ExampleKindEnum, ExampleSandboxModeEnum, ExampleVisibilityEnum, isExamp
120
120
  import { ExampleDocumentationSchema, ExampleEntrypointsSchema, ExampleKindSchema, ExampleMetaSchema, ExampleSandboxModeSchema, ExampleSpecSchema, ExampleSurfacesSchema, ExampleVisibilitySchema, parseExampleDocumentation, parseExampleEntrypoints, parseExampleMeta, parseExampleSpec, parseExampleSurfaces, safeParseExampleSpec } from "./examples/schema.js";
121
121
  import { ExampleRegistry } from "./examples/registry.js";
122
122
  import { validateExample, validateExampleReferences, validateExamples } from "./examples/validation.js";
123
- import "./examples/index.js";
123
+ import { defineExample } from "./examples/index.js";
124
124
  import { isChangeType, isChangelogDocBlock, isVersionBumpType } from "./versioning/types.js";
125
125
  import { bumpVersion, compareVersions, determineBumpType, formatVersion, getBumpTypePriority, getMaxBumpType, isValidVersion, isVersionEqual, isVersionGreater, isVersionLess, parseVersion, parseVersionStrict, validateVersion } from "./versioning/utils.js";
126
126
  import { defineSchemaModel } from "@contractspec/lib.schema";
@@ -129,4 +129,4 @@ import { defineSchemaModel } from "@contractspec/lib.schema";
129
129
  init_registry_utils();
130
130
 
131
131
  //#endregion
132
- export { AGENT_SYSTEM_PROMPTS, AccountBalanceRecord, AppBlueprintRegistry, BankAccountRecord, BankTransactionRecord, BumpStrategySchema, CapabilityRegistry, ChangelogFormatSchema, ChangelogTierSchema, CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema, ContractsrcSchema, CreateIntegrationConnection, CreateKnowledgeSource, DEFAULT_CONTRACTSRC, DataViewRegistry, DeleteIntegrationConnection, DeleteKnowledgeSource, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, DocRegistry, EventRegistry, ExampleDocumentationSchema, ExampleEntrypointsSchema, ExampleKindEnum, ExampleKindSchema, ExampleMetaSchema, ExampleRegistry, ExampleSandboxModeEnum, ExampleSandboxModeSchema, ExampleSpecSchema, ExampleSurfacesSchema, ExampleVisibilityEnum, ExampleVisibilitySchema, ExecutorProposalSink, ExperimentEvaluator, ExperimentRegistry, FeatureRegistry, FolderConventionsSchema, FormRegistry, FormatterConfigSchema, FormatterTypeSchema, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, GroupingStrategies, InMemoryStateStore, IntegrationSpecRegistry, KnowledgeSpaceRegistry, ListIntegrationConnections, ListKnowledgeSources, MigrationRegistry, ModelRegistry, OPAPolicyAdapter, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetBalances, OpenBankingListAccounts, OpenBankingListTransactions, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, OperationSpecRegistry, Owners, OwnersEnum, PolicyEngine, PolicyRegistry, PresentationRegistry, PrismaStateStore, PromptRegistry, ProposalExecutor, RegeneratorService, ResourceRegistry, RuleSyncConfigSchema, RuleSyncTargetSchema, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput, SchemaFormatSchema, StabilityEnum, Tags, TagsEnum, TelemetryAnomalyMonitor, TelemetryRegistry, TelemetryTracker, TestIntegrationConnection, TestRegistry, TestRunner, ThemeRegistry, TransformEngine, TriggerKnowledgeSourceSync, UpdateIntegrationConnection, UpdateKnowledgeSource, VersioningConfigSchema, WorkflowPreFlightError, WorkflowRegistry, WorkflowRunner, WorkflowValidationError, assertPrimaryOpenBankingReady, assertWorkflowSpecValid, behaviorToEnvelope, buildOPAInput, buildZodWithRelations, bumpVersion, capabilityKey, compareVersions, composeAppConfig, createDefaultIntegrationSpecRegistry, createDefaultTransformEngine, createEngineWithDefaults, createFeatureModule, createFetchHandler, createFileStateStore, createFormRenderer, createMcpServer, dataViewKey, defaultDocRegistry, defaultGqlField, defaultMcpPrompt, defaultMcpTool, defaultRestPath, defineCapability, defineCommand, defineDataView, defineEvent, defineFeature, defineFormSpec, definePresentation, definePrompt, defineQuery, defineResourceTemplate, defineSchemaModel, determineBumpType, docBlockToMarkdown, docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, elevenLabsIntegrationSpec, elysiaPlugin, emailThreadsKnowledgeSpace, ensurePrimaryOpenBankingIntegration, errorToEnvelope, evalPredicate, evaluateExpression, eventKey, eventToMarkdown, exportFeature, exportSpec, expressRouter, featureToMarkdown, filterBy, financialDocsKnowledgeSpace, financialOverviewKnowledgeSpace, formatPlanForAgent, formatVersion, gcsStorageIntegrationSpec, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt, getBumpTypePriority, getMaxBumpType, getUniqueDomains, getUniqueOwners, getUniqueTags, gmailIntegrationSpec, googleCalendarIntegrationSpec, groupBy, groupByMultiple, groupByToArray, installFeature, installOp, integrationContracts, isChangeType, isChangelogDocBlock, isEmitDeclRef, isExampleKind, isExampleVisibility, isFeatureRef, isResourceRef, isSpecPointer, isValidVersion, isVersionBumpType, isVersionEqual, isVersionGreater, isVersionLess, jsonSchemaForSpec, knowledgeContracts, listRegisteredDocBlocks, makeAppBlueprintKey, makeEmit, makeExperimentKey, makeIntegrationSpecKey, makeKnowledgeSpaceKey, makeNextAppHandler, makeNextPagesHandler, makeTelemetryKey, makeTestKey, makeThemeRef, mapDocRoutes, metaDocs, mistralIntegrationSpec, op, opKey, openApiForRegistry, openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, parseExampleDocumentation, parseExampleEntrypoints, parseExampleMeta, parseExampleSpec, parseExampleSurfaces, parseVersion, parseVersionStrict, postmarkIntegrationSpec, powensIntegrationSpec, presentationToMarkdown, productCanonKnowledgeSpace, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerBasicValidation, registerContractsOnBuilder, registerDefaultReactRenderer, registerDocBlocks, registerElevenLabsIntegration, registerEmailThreadsKnowledgeSpace, registerFeature, registerFinancialDocsKnowledgeSpace, registerFinancialOverviewKnowledgeSpace, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerIntegrationContracts, registerKnowledgeContracts, registerMistralIntegration, registerOpenBankingCapabilities, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerProductCanonKnowledgeSpace, registerQdrantIntegration, registerReactToMarkdownRenderer, registerStripeIntegration, registerSupportFaqKnowledgeSpace, registerTwilioSmsIntegration, registerUploadedDocsKnowledgeSpace, renderFeaturePresentation, resolveAppConfig, resourceRef, rnReusablesDriver, safeParseExampleSpec, sanitizeMcpName, schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable, shadcnDriver, stripeIntegrationSpec, supportFaqKnowledgeSpace, techContractsDocs, telemetryToEnvelope, twilioSmsIntegrationSpec, uploadedDocsKnowledgeSpace, validateBlueprint, validateConfig, validateExample, validateExampleReferences, validateExamples, validateFeatureTargetsV2, validateResolvedConfig, validateTenantConfig, validateVersion, validateWorkflowSpec };
132
+ export { AGENT_SYSTEM_PROMPTS, AccountBalanceRecord, AppBlueprintRegistry, BankAccountRecord, BankTransactionRecord, BumpStrategySchema, CapabilityRegistry, ChangelogFormatSchema, ChangelogTierSchema, CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema, ContractsrcSchema, CreateIntegrationConnection, CreateKnowledgeSource, DEFAULT_CONTRACTSRC, DataViewRegistry, DeleteIntegrationConnection, DeleteKnowledgeSource, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, DocRegistry, EventRegistry, ExampleDocumentationSchema, ExampleEntrypointsSchema, ExampleKindEnum, ExampleKindSchema, ExampleMetaSchema, ExampleRegistry, ExampleSandboxModeEnum, ExampleSandboxModeSchema, ExampleSpecSchema, ExampleSurfacesSchema, ExampleVisibilityEnum, ExampleVisibilitySchema, ExecutorProposalSink, ExperimentEvaluator, ExperimentRegistry, FeatureRegistry, FolderConventionsSchema, FormRegistry, FormatterConfigSchema, FormatterTypeSchema, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, GroupingStrategies, InMemoryStateStore, IntegrationSpecRegistry, KnowledgeSpaceRegistry, ListIntegrationConnections, ListKnowledgeSources, MigrationRegistry, ModelRegistry, OPAPolicyAdapter, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetBalances, OpenBankingListAccounts, OpenBankingListTransactions, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, OperationSpecRegistry, Owners, OwnersEnum, PolicyEngine, PolicyRegistry, PresentationRegistry, PrismaStateStore, PromptRegistry, ProposalExecutor, RegeneratorService, ResourceRegistry, RuleSyncConfigSchema, RuleSyncTargetSchema, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput, SchemaFormatSchema, StabilityEnum, Tags, TagsEnum, TelemetryAnomalyMonitor, TelemetryRegistry, TelemetryTracker, TestIntegrationConnection, TestRegistry, TestRunner, ThemeRegistry, TransformEngine, TriggerKnowledgeSourceSync, UpdateIntegrationConnection, UpdateKnowledgeSource, VersioningConfigSchema, WorkflowPreFlightError, WorkflowRegistry, WorkflowRunner, WorkflowValidationError, assertPrimaryOpenBankingReady, assertWorkflowSpecValid, behaviorToEnvelope, buildOPAInput, buildZodWithRelations, bumpVersion, capabilityKey, compareVersions, composeAppConfig, createDefaultIntegrationSpecRegistry, createDefaultTransformEngine, createEngineWithDefaults, createFeatureModule, createFetchHandler, createFileStateStore, createFormRenderer, createMcpServer, dataViewKey, defaultDocRegistry, defaultGqlField, defaultMcpPrompt, defaultMcpTool, defaultRestPath, defineAppConfig, defineCapability, defineCommand, defineDataView, defineEvent, defineExample, defineFeature, defineFormSpec, defineIntegration, definePresentation, definePrompt, defineQuery, defineResourceTemplate, defineSchemaModel, defineTestSpec, defineWorkflow, determineBumpType, docBlockToMarkdown, docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, elevenLabsIntegrationSpec, elysiaPlugin, emailThreadsKnowledgeSpace, ensurePrimaryOpenBankingIntegration, errorToEnvelope, evalPredicate, evaluateExpression, eventKey, eventToMarkdown, exportFeature, exportSpec, expressRouter, featureToMarkdown, filterBy, financialDocsKnowledgeSpace, financialOverviewKnowledgeSpace, formatPlanForAgent, formatVersion, gcsStorageIntegrationSpec, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt, getBumpTypePriority, getMaxBumpType, getUniqueDomains, getUniqueOwners, getUniqueTags, gmailIntegrationSpec, googleCalendarIntegrationSpec, groupBy, groupByMultiple, groupByToArray, installFeature, installOp, integrationContracts, isChangeType, isChangelogDocBlock, isEmitDeclRef, isExampleKind, isExampleVisibility, isFeatureRef, isResourceRef, isSpecPointer, isValidVersion, isVersionBumpType, isVersionEqual, isVersionGreater, isVersionLess, jsonSchemaForSpec, knowledgeContracts, listRegisteredDocBlocks, makeAppBlueprintKey, makeEmit, makeExperimentKey, makeIntegrationSpecKey, makeKnowledgeSpaceKey, makeNextAppHandler, makeNextPagesHandler, makeTelemetryKey, makeTestKey, makeThemeRef, mapDocRoutes, metaDocs, mistralIntegrationSpec, op, opKey, openApiForRegistry, openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, parseExampleDocumentation, parseExampleEntrypoints, parseExampleMeta, parseExampleSpec, parseExampleSurfaces, parseVersion, parseVersionStrict, postmarkIntegrationSpec, powensIntegrationSpec, presentationToMarkdown, productCanonKnowledgeSpace, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerBasicValidation, registerContractsOnBuilder, registerDefaultReactRenderer, registerDocBlocks, registerElevenLabsIntegration, registerEmailThreadsKnowledgeSpace, registerFeature, registerFinancialDocsKnowledgeSpace, registerFinancialOverviewKnowledgeSpace, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerIntegrationContracts, registerKnowledgeContracts, registerMistralIntegration, registerOpenBankingCapabilities, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerProductCanonKnowledgeSpace, registerQdrantIntegration, registerReactToMarkdownRenderer, registerStripeIntegration, registerSupportFaqKnowledgeSpace, registerTwilioSmsIntegration, registerUploadedDocsKnowledgeSpace, renderFeaturePresentation, resolveAppConfig, resourceRef, rnReusablesDriver, safeParseExampleSpec, sanitizeMcpName, schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable, shadcnDriver, stripeIntegrationSpec, supportFaqKnowledgeSpace, techContractsDocs, telemetryToEnvelope, twilioSmsIntegrationSpec, uploadedDocsKnowledgeSpace, validateBlueprint, validateConfig, validateExample, validateExampleReferences, validateExamples, validateFeatureTargetsV2, validateResolvedConfig, validateTenantConfig, validateVersion, validateWorkflowSpec };
package/dist/install.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { EventSpec } from "./events.js";
2
1
  import { ResourceRefDescriptor } from "./resources.js";
3
2
  import { AnyOperationSpec, EmitDecl, OperationSpec } from "./operations/operation.js";
4
3
  import { OperationSpecRegistry } from "./operations/registry.js";
5
4
  import "./operations/index.js";
6
5
  import { HandlerCtx } from "./types.js";
6
+ import { EventSpec } from "./events.js";
7
7
  import { AnySchemaModel, ZodSchemaModel } from "@contractspec/lib.schema";
8
8
  import * as z$2 from "zod";
9
9
 
@@ -1,4 +1,4 @@
1
- import { IntegrationByokSetup, IntegrationCapabilityMapping, IntegrationCategory, IntegrationConfigSchema, IntegrationHealthCheck, IntegrationMeta, IntegrationOwnershipMode, IntegrationSecretSchema, IntegrationSpec, IntegrationSpecRegistry, makeIntegrationSpecKey } from "./spec.js";
1
+ import { IntegrationByokSetup, IntegrationCapabilityMapping, IntegrationCategory, IntegrationConfigSchema, IntegrationHealthCheck, IntegrationMeta, IntegrationOwnershipMode, IntegrationSecretSchema, IntegrationSpec, IntegrationSpecRegistry, defineIntegration, makeIntegrationSpecKey } from "./spec.js";
2
2
  import { ConnectionStatus, IntegrationConnection, IntegrationConnectionHealth, IntegrationConnectionMeta, IntegrationUsageMetrics } from "./connection.js";
3
3
  import { AppIntegrationBinding } from "./binding.js";
4
4
  import { CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, ListInvoicesQuery, ListTransactionsQuery, Money, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, RefundPaymentInput } from "./providers/payments.js";
@@ -31,4 +31,4 @@ import { OpenBankingFeature } from "./openbanking/openbanking.feature.js";
31
31
  import { registerOpenBankingContracts } from "./openbanking/contracts/index.js";
32
32
  import { OpenBankingGuardResult, assertPrimaryOpenBankingReady, ensurePrimaryOpenBankingIntegration } from "./openbanking/guards.js";
33
33
  import { OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenBankingTelemetryEvent, redactOpenBankingTelemetryPayload } from "./openbanking/telemetry.js";
34
- export { AccountBalanceRecord, AppIntegrationBinding, BankAccountRecord, BankTransactionRecord, CalendarAttendee, CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider, CalendarReminder, CapturePaymentInput, ConnectionStatus, CreateCustomerInput, CreatePaymentIntentInput, DeleteObjectInput, EmailAddress, EmailAttachment, EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult, EmailThread, EmailThreadListQuery, EmbeddingDocument, EmbeddingProvider, EmbeddingResult, EmbeddingVector, GetObjectResult, IntegrationByokSetup, IntegrationCapabilityMapping, IntegrationCategory, IntegrationConfigSchema, IntegrationConnection, IntegrationConnectionHealth, IntegrationConnectionMeta, IntegrationHealthCheck, IntegrationMeta, IntegrationOwnershipMode, IntegrationSecretSchema, IntegrationSpec, IntegrationSpecRegistry, IntegrationUsageMetrics, LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, ListInvoicesQuery, ListObjectsQuery, ListObjectsResult, ListTransactionsQuery, Money, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, ObjectStorageProvider, OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetAccountDetailsParams, OpenBankingGetBalances, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingGuardResult, OpenBankingListAccounts, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactions, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, OpenBankingTelemetryEvent, OpenBankingTransaction, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, PutObjectInput, RefundPaymentInput, SendSmsInput, SignedUrlOptions, SmsDeliveryStatus, SmsMessage, SmsProvider, StorageObjectBody, StorageObjectMetadata, TokenCountResult, VectorDeleteRequest, VectorDocument, VectorSearchQuery, VectorSearchResult, VectorStoreProvider, VectorUpsertRequest, Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult, assertPrimaryOpenBankingReady, createDefaultIntegrationSpecRegistry, elevenLabsIntegrationSpec, ensurePrimaryOpenBankingIntegration, gcsStorageIntegrationSpec, gmailIntegrationSpec, googleCalendarIntegrationSpec, makeIntegrationSpecKey, mistralIntegrationSpec, postmarkIntegrationSpec, powensIntegrationSpec, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerElevenLabsIntegration, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerMistralIntegration, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerQdrantIntegration, registerStripeIntegration, registerTwilioSmsIntegration, stripeIntegrationSpec, twilioSmsIntegrationSpec };
34
+ export { AccountBalanceRecord, AppIntegrationBinding, BankAccountRecord, BankTransactionRecord, CalendarAttendee, CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider, CalendarReminder, CapturePaymentInput, ConnectionStatus, CreateCustomerInput, CreatePaymentIntentInput, DeleteObjectInput, EmailAddress, EmailAttachment, EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult, EmailThread, EmailThreadListQuery, EmbeddingDocument, EmbeddingProvider, EmbeddingResult, EmbeddingVector, GetObjectResult, IntegrationByokSetup, IntegrationCapabilityMapping, IntegrationCategory, IntegrationConfigSchema, IntegrationConnection, IntegrationConnectionHealth, IntegrationConnectionMeta, IntegrationHealthCheck, IntegrationMeta, IntegrationOwnershipMode, IntegrationSecretSchema, IntegrationSpec, IntegrationSpecRegistry, IntegrationUsageMetrics, LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, ListInvoicesQuery, ListObjectsQuery, ListObjectsResult, ListTransactionsQuery, Money, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, ObjectStorageProvider, OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetAccountDetailsParams, OpenBankingGetBalances, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingGuardResult, OpenBankingListAccounts, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactions, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, OpenBankingTelemetryEvent, OpenBankingTransaction, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, PutObjectInput, RefundPaymentInput, SendSmsInput, SignedUrlOptions, SmsDeliveryStatus, SmsMessage, SmsProvider, StorageObjectBody, StorageObjectMetadata, TokenCountResult, VectorDeleteRequest, VectorDocument, VectorSearchQuery, VectorSearchResult, VectorStoreProvider, VectorUpsertRequest, Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult, assertPrimaryOpenBankingReady, createDefaultIntegrationSpecRegistry, defineIntegration, elevenLabsIntegrationSpec, ensurePrimaryOpenBankingIntegration, gcsStorageIntegrationSpec, gmailIntegrationSpec, googleCalendarIntegrationSpec, makeIntegrationSpecKey, mistralIntegrationSpec, postmarkIntegrationSpec, powensIntegrationSpec, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerElevenLabsIntegration, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerMistralIntegration, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerQdrantIntegration, registerStripeIntegration, registerTwilioSmsIntegration, stripeIntegrationSpec, twilioSmsIntegrationSpec };
@@ -1,4 +1,4 @@
1
- import { IntegrationSpecRegistry, makeIntegrationSpecKey } from "./spec.js";
1
+ import { IntegrationSpecRegistry, defineIntegration, makeIntegrationSpecKey } from "./spec.js";
2
2
  import { registerStripeIntegration, stripeIntegrationSpec } from "./providers/stripe.js";
3
3
  import { postmarkIntegrationSpec, registerPostmarkIntegration } from "./providers/postmark.js";
4
4
  import { qdrantIntegrationSpec, registerQdrantIntegration } from "./providers/qdrant.js";
@@ -20,4 +20,4 @@ import { OpenBankingFeature } from "./openbanking/openbanking.feature.js";
20
20
  import { registerOpenBankingContracts } from "./openbanking/contracts/index.js";
21
21
  import { assertPrimaryOpenBankingReady, ensurePrimaryOpenBankingIntegration } from "./openbanking/guards.js";
22
22
 
23
- export { AccountBalanceRecord, BankAccountRecord, BankTransactionRecord, IntegrationSpecRegistry, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetBalances, OpenBankingListAccounts, OpenBankingListTransactions, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, assertPrimaryOpenBankingReady, createDefaultIntegrationSpecRegistry, elevenLabsIntegrationSpec, ensurePrimaryOpenBankingIntegration, gcsStorageIntegrationSpec, gmailIntegrationSpec, googleCalendarIntegrationSpec, makeIntegrationSpecKey, mistralIntegrationSpec, postmarkIntegrationSpec, powensIntegrationSpec, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerElevenLabsIntegration, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerMistralIntegration, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerQdrantIntegration, registerStripeIntegration, registerTwilioSmsIntegration, stripeIntegrationSpec, twilioSmsIntegrationSpec };
23
+ export { AccountBalanceRecord, BankAccountRecord, BankTransactionRecord, IntegrationSpecRegistry, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetBalances, OpenBankingListAccounts, OpenBankingListTransactions, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, assertPrimaryOpenBankingReady, createDefaultIntegrationSpecRegistry, defineIntegration, elevenLabsIntegrationSpec, ensurePrimaryOpenBankingIntegration, gcsStorageIntegrationSpec, gmailIntegrationSpec, googleCalendarIntegrationSpec, makeIntegrationSpecKey, mistralIntegrationSpec, postmarkIntegrationSpec, powensIntegrationSpec, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerElevenLabsIntegration, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerMistralIntegration, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerQdrantIntegration, registerStripeIntegration, registerTwilioSmsIntegration, stripeIntegrationSpec, twilioSmsIntegrationSpec };
@@ -0,0 +1,7 @@
1
+ import { CapabilitySpec } from "../capabilities/capabilities.js";
2
+ import "../index.js";
3
+
4
+ //#region src/integrations/integrations.capability.d.ts
5
+ declare const IntegrationsCapability: CapabilitySpec;
6
+ //#endregion
7
+ export { IntegrationsCapability };
@@ -0,0 +1,17 @@
1
+ import { defineCapability } from "../capabilities/capabilities.js";
2
+ import { StabilityEnum } from "../ownership.js";
3
+ import "../capabilities/index.js";
4
+
5
+ //#region src/integrations/integrations.capability.ts
6
+ const IntegrationsCapability = defineCapability({ meta: {
7
+ key: "integrations",
8
+ version: "1.0.0",
9
+ kind: "integration",
10
+ stability: StabilityEnum.Experimental,
11
+ description: "Core integrations capability for third-party connections",
12
+ owners: ["@platform.core"],
13
+ tags: ["integrations", "platform"]
14
+ } });
15
+
16
+ //#endregion
17
+ export { IntegrationsCapability };
@@ -1,8 +1,7 @@
1
1
  import { FeatureModuleSpec } from "../features/types.js";
2
- import "../features/index.js";
2
+ import "../index.js";
3
3
 
4
4
  //#region src/integrations/integrations.feature.d.ts
5
-
6
5
  /**
7
6
  * Platform Integrations feature module that bundles
8
7
  * integration connection management capabilities.
@@ -1,9 +1,16 @@
1
+ import { defineFeature } from "../features/index.js";
2
+
1
3
  //#region src/integrations/integrations.feature.ts
2
4
  /**
5
+ * Platform Integrations Feature Module Specification
6
+ *
7
+ * Defines the feature module for managing integration connections.
8
+ */
9
+ /**
3
10
  * Platform Integrations feature module that bundles
4
11
  * integration connection management capabilities.
5
12
  */
6
- const IntegrationsFeature = {
13
+ const IntegrationsFeature = defineFeature({
7
14
  meta: {
8
15
  key: "platform.integrations",
9
16
  version: "1.0.0",
@@ -54,7 +61,7 @@ const IntegrationsFeature = {
54
61
  version: "1.0.0"
55
62
  }]
56
63
  }
57
- };
64
+ });
58
65
 
59
66
  //#endregion
60
67
  export { IntegrationsFeature };
@@ -2,124 +2,124 @@ import { AnyOperationSpec, OperationSpec } from "../../../operations/operation.j
2
2
  import { OperationSpecRegistry } from "../../../operations/registry.js";
3
3
  import "../../../operations/index.js";
4
4
  import "../../../index.js";
5
- import * as _contractspec_lib_schema375 from "@contractspec/lib.schema";
5
+ import * as _contractspec_lib_schema408 from "@contractspec/lib.schema";
6
6
  import { SchemaModel } from "@contractspec/lib.schema";
7
7
 
8
8
  //#region src/integrations/openbanking/contracts/accounts.d.ts
9
9
  declare const OpenBankingListAccounts: OperationSpec<SchemaModel<{
10
10
  tenantId: {
11
- type: _contractspec_lib_schema375.FieldType<string, string>;
11
+ type: _contractspec_lib_schema408.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  userId: {
15
- type: _contractspec_lib_schema375.FieldType<string, string>;
15
+ type: _contractspec_lib_schema408.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  connectionId: {
19
- type: _contractspec_lib_schema375.FieldType<string, string>;
19
+ type: _contractspec_lib_schema408.FieldType<string, string>;
20
20
  isOptional: true;
21
21
  };
22
22
  includeBalances: {
23
- type: _contractspec_lib_schema375.FieldType<boolean, boolean>;
23
+ type: _contractspec_lib_schema408.FieldType<boolean, boolean>;
24
24
  isOptional: true;
25
25
  };
26
26
  institutionId: {
27
- type: _contractspec_lib_schema375.FieldType<string, string>;
27
+ type: _contractspec_lib_schema408.FieldType<string, string>;
28
28
  isOptional: true;
29
29
  };
30
30
  cursor: {
31
- type: _contractspec_lib_schema375.FieldType<string, string>;
31
+ type: _contractspec_lib_schema408.FieldType<string, string>;
32
32
  isOptional: true;
33
33
  };
34
34
  pageSize: {
35
- type: _contractspec_lib_schema375.FieldType<number, number>;
35
+ type: _contractspec_lib_schema408.FieldType<number, number>;
36
36
  isOptional: true;
37
37
  };
38
38
  }>, SchemaModel<{
39
39
  accounts: {
40
40
  type: SchemaModel<{
41
41
  id: {
42
- type: _contractspec_lib_schema375.FieldType<string, string>;
42
+ type: _contractspec_lib_schema408.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  tenantId: {
46
- type: _contractspec_lib_schema375.FieldType<string, string>;
46
+ type: _contractspec_lib_schema408.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  userId: {
50
- type: _contractspec_lib_schema375.FieldType<string, string>;
50
+ type: _contractspec_lib_schema408.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  connectionId: {
54
- type: _contractspec_lib_schema375.FieldType<string, string>;
54
+ type: _contractspec_lib_schema408.FieldType<string, string>;
55
55
  isOptional: false;
56
56
  };
57
57
  externalId: {
58
- type: _contractspec_lib_schema375.FieldType<string, string>;
58
+ type: _contractspec_lib_schema408.FieldType<string, string>;
59
59
  isOptional: false;
60
60
  };
61
61
  institutionId: {
62
- type: _contractspec_lib_schema375.FieldType<string, string>;
62
+ type: _contractspec_lib_schema408.FieldType<string, string>;
63
63
  isOptional: false;
64
64
  };
65
65
  institutionName: {
66
- type: _contractspec_lib_schema375.FieldType<string, string>;
66
+ type: _contractspec_lib_schema408.FieldType<string, string>;
67
67
  isOptional: false;
68
68
  };
69
69
  institutionLogoUrl: {
70
- type: _contractspec_lib_schema375.FieldType<string, string>;
70
+ type: _contractspec_lib_schema408.FieldType<string, string>;
71
71
  isOptional: true;
72
72
  };
73
73
  iban: {
74
- type: _contractspec_lib_schema375.FieldType<string, string>;
74
+ type: _contractspec_lib_schema408.FieldType<string, string>;
75
75
  isOptional: true;
76
76
  };
77
77
  bic: {
78
- type: _contractspec_lib_schema375.FieldType<string, string>;
78
+ type: _contractspec_lib_schema408.FieldType<string, string>;
79
79
  isOptional: true;
80
80
  };
81
81
  accountType: {
82
- type: _contractspec_lib_schema375.FieldType<string, string>;
82
+ type: _contractspec_lib_schema408.FieldType<string, string>;
83
83
  isOptional: false;
84
84
  };
85
85
  currency: {
86
- type: _contractspec_lib_schema375.FieldType<string, string>;
86
+ type: _contractspec_lib_schema408.FieldType<string, string>;
87
87
  isOptional: false;
88
88
  };
89
89
  displayName: {
90
- type: _contractspec_lib_schema375.FieldType<string, string>;
90
+ type: _contractspec_lib_schema408.FieldType<string, string>;
91
91
  isOptional: false;
92
92
  };
93
93
  accountNumberMasked: {
94
- type: _contractspec_lib_schema375.FieldType<string, string>;
94
+ type: _contractspec_lib_schema408.FieldType<string, string>;
95
95
  isOptional: true;
96
96
  };
97
97
  productCode: {
98
- type: _contractspec_lib_schema375.FieldType<string, string>;
98
+ type: _contractspec_lib_schema408.FieldType<string, string>;
99
99
  isOptional: true;
100
100
  };
101
101
  balance: {
102
- type: _contractspec_lib_schema375.FieldType<number, number>;
102
+ type: _contractspec_lib_schema408.FieldType<number, number>;
103
103
  isOptional: true;
104
104
  };
105
105
  availableBalance: {
106
- type: _contractspec_lib_schema375.FieldType<number, number>;
106
+ type: _contractspec_lib_schema408.FieldType<number, number>;
107
107
  isOptional: true;
108
108
  };
109
109
  lastSyncedAt: {
110
- type: _contractspec_lib_schema375.FieldType<Date, string>;
110
+ type: _contractspec_lib_schema408.FieldType<Date, string>;
111
111
  isOptional: false;
112
112
  };
113
113
  createdAt: {
114
- type: _contractspec_lib_schema375.FieldType<Date, string>;
114
+ type: _contractspec_lib_schema408.FieldType<Date, string>;
115
115
  isOptional: false;
116
116
  };
117
117
  updatedAt: {
118
- type: _contractspec_lib_schema375.FieldType<Date, string>;
118
+ type: _contractspec_lib_schema408.FieldType<Date, string>;
119
119
  isOptional: false;
120
120
  };
121
121
  metadata: {
122
- type: _contractspec_lib_schema375.FieldType<Record<string, unknown>, Record<string, unknown>>;
122
+ type: _contractspec_lib_schema408.FieldType<Record<string, unknown>, Record<string, unknown>>;
123
123
  isOptional: true;
124
124
  };
125
125
  }>;
@@ -127,159 +127,159 @@ declare const OpenBankingListAccounts: OperationSpec<SchemaModel<{
127
127
  isArray: true;
128
128
  };
129
129
  nextCursor: {
130
- type: _contractspec_lib_schema375.FieldType<string, string>;
130
+ type: _contractspec_lib_schema408.FieldType<string, string>;
131
131
  isOptional: true;
132
132
  };
133
133
  hasMore: {
134
- type: _contractspec_lib_schema375.FieldType<boolean, boolean>;
134
+ type: _contractspec_lib_schema408.FieldType<boolean, boolean>;
135
135
  isOptional: true;
136
136
  };
137
137
  }>, undefined>;
138
138
  declare const OpenBankingGetAccount: OperationSpec<SchemaModel<{
139
139
  tenantId: {
140
- type: _contractspec_lib_schema375.FieldType<string, string>;
140
+ type: _contractspec_lib_schema408.FieldType<string, string>;
141
141
  isOptional: false;
142
142
  };
143
143
  accountId: {
144
- type: _contractspec_lib_schema375.FieldType<string, string>;
144
+ type: _contractspec_lib_schema408.FieldType<string, string>;
145
145
  isOptional: false;
146
146
  };
147
147
  includeBalances: {
148
- type: _contractspec_lib_schema375.FieldType<boolean, boolean>;
148
+ type: _contractspec_lib_schema408.FieldType<boolean, boolean>;
149
149
  isOptional: true;
150
150
  };
151
151
  includeLatestTransactions: {
152
- type: _contractspec_lib_schema375.FieldType<boolean, boolean>;
152
+ type: _contractspec_lib_schema408.FieldType<boolean, boolean>;
153
153
  isOptional: true;
154
154
  };
155
155
  }>, SchemaModel<{
156
156
  id: {
157
- type: _contractspec_lib_schema375.FieldType<string, string>;
157
+ type: _contractspec_lib_schema408.FieldType<string, string>;
158
158
  isOptional: false;
159
159
  };
160
160
  tenantId: {
161
- type: _contractspec_lib_schema375.FieldType<string, string>;
161
+ type: _contractspec_lib_schema408.FieldType<string, string>;
162
162
  isOptional: false;
163
163
  };
164
164
  userId: {
165
- type: _contractspec_lib_schema375.FieldType<string, string>;
165
+ type: _contractspec_lib_schema408.FieldType<string, string>;
166
166
  isOptional: false;
167
167
  };
168
168
  connectionId: {
169
- type: _contractspec_lib_schema375.FieldType<string, string>;
169
+ type: _contractspec_lib_schema408.FieldType<string, string>;
170
170
  isOptional: false;
171
171
  };
172
172
  externalId: {
173
- type: _contractspec_lib_schema375.FieldType<string, string>;
173
+ type: _contractspec_lib_schema408.FieldType<string, string>;
174
174
  isOptional: false;
175
175
  };
176
176
  institutionId: {
177
- type: _contractspec_lib_schema375.FieldType<string, string>;
177
+ type: _contractspec_lib_schema408.FieldType<string, string>;
178
178
  isOptional: false;
179
179
  };
180
180
  institutionName: {
181
- type: _contractspec_lib_schema375.FieldType<string, string>;
181
+ type: _contractspec_lib_schema408.FieldType<string, string>;
182
182
  isOptional: false;
183
183
  };
184
184
  institutionLogoUrl: {
185
- type: _contractspec_lib_schema375.FieldType<string, string>;
185
+ type: _contractspec_lib_schema408.FieldType<string, string>;
186
186
  isOptional: true;
187
187
  };
188
188
  iban: {
189
- type: _contractspec_lib_schema375.FieldType<string, string>;
189
+ type: _contractspec_lib_schema408.FieldType<string, string>;
190
190
  isOptional: true;
191
191
  };
192
192
  bic: {
193
- type: _contractspec_lib_schema375.FieldType<string, string>;
193
+ type: _contractspec_lib_schema408.FieldType<string, string>;
194
194
  isOptional: true;
195
195
  };
196
196
  accountType: {
197
- type: _contractspec_lib_schema375.FieldType<string, string>;
197
+ type: _contractspec_lib_schema408.FieldType<string, string>;
198
198
  isOptional: false;
199
199
  };
200
200
  currency: {
201
- type: _contractspec_lib_schema375.FieldType<string, string>;
201
+ type: _contractspec_lib_schema408.FieldType<string, string>;
202
202
  isOptional: false;
203
203
  };
204
204
  displayName: {
205
- type: _contractspec_lib_schema375.FieldType<string, string>;
205
+ type: _contractspec_lib_schema408.FieldType<string, string>;
206
206
  isOptional: false;
207
207
  };
208
208
  accountNumberMasked: {
209
- type: _contractspec_lib_schema375.FieldType<string, string>;
209
+ type: _contractspec_lib_schema408.FieldType<string, string>;
210
210
  isOptional: true;
211
211
  };
212
212
  productCode: {
213
- type: _contractspec_lib_schema375.FieldType<string, string>;
213
+ type: _contractspec_lib_schema408.FieldType<string, string>;
214
214
  isOptional: true;
215
215
  };
216
216
  balance: {
217
- type: _contractspec_lib_schema375.FieldType<number, number>;
217
+ type: _contractspec_lib_schema408.FieldType<number, number>;
218
218
  isOptional: true;
219
219
  };
220
220
  availableBalance: {
221
- type: _contractspec_lib_schema375.FieldType<number, number>;
221
+ type: _contractspec_lib_schema408.FieldType<number, number>;
222
222
  isOptional: true;
223
223
  };
224
224
  lastSyncedAt: {
225
- type: _contractspec_lib_schema375.FieldType<Date, string>;
225
+ type: _contractspec_lib_schema408.FieldType<Date, string>;
226
226
  isOptional: false;
227
227
  };
228
228
  createdAt: {
229
- type: _contractspec_lib_schema375.FieldType<Date, string>;
229
+ type: _contractspec_lib_schema408.FieldType<Date, string>;
230
230
  isOptional: false;
231
231
  };
232
232
  updatedAt: {
233
- type: _contractspec_lib_schema375.FieldType<Date, string>;
233
+ type: _contractspec_lib_schema408.FieldType<Date, string>;
234
234
  isOptional: false;
235
235
  };
236
236
  metadata: {
237
- type: _contractspec_lib_schema375.FieldType<Record<string, unknown>, Record<string, unknown>>;
237
+ type: _contractspec_lib_schema408.FieldType<Record<string, unknown>, Record<string, unknown>>;
238
238
  isOptional: true;
239
239
  };
240
240
  }>, undefined>;
241
241
  declare const OpenBankingSyncAccounts: OperationSpec<SchemaModel<{
242
242
  tenantId: {
243
- type: _contractspec_lib_schema375.FieldType<string, string>;
243
+ type: _contractspec_lib_schema408.FieldType<string, string>;
244
244
  isOptional: false;
245
245
  };
246
246
  userId: {
247
- type: _contractspec_lib_schema375.FieldType<string, string>;
247
+ type: _contractspec_lib_schema408.FieldType<string, string>;
248
248
  isOptional: true;
249
249
  };
250
250
  connectionId: {
251
- type: _contractspec_lib_schema375.FieldType<string, string>;
251
+ type: _contractspec_lib_schema408.FieldType<string, string>;
252
252
  isOptional: false;
253
253
  };
254
254
  accountIds: {
255
- type: _contractspec_lib_schema375.FieldType<string, string>;
255
+ type: _contractspec_lib_schema408.FieldType<string, string>;
256
256
  isArray: true;
257
257
  isOptional: true;
258
258
  };
259
259
  forceFullRefresh: {
260
- type: _contractspec_lib_schema375.FieldType<boolean, boolean>;
260
+ type: _contractspec_lib_schema408.FieldType<boolean, boolean>;
261
261
  isOptional: true;
262
262
  };
263
263
  triggerWorkflows: {
264
- type: _contractspec_lib_schema375.FieldType<boolean, boolean>;
264
+ type: _contractspec_lib_schema408.FieldType<boolean, boolean>;
265
265
  isOptional: true;
266
266
  };
267
267
  }>, SchemaModel<{
268
268
  synced: {
269
- type: _contractspec_lib_schema375.FieldType<number, number>;
269
+ type: _contractspec_lib_schema408.FieldType<number, number>;
270
270
  isOptional: false;
271
271
  };
272
272
  failed: {
273
- type: _contractspec_lib_schema375.FieldType<number, number>;
273
+ type: _contractspec_lib_schema408.FieldType<number, number>;
274
274
  isOptional: false;
275
275
  };
276
276
  errors: {
277
- type: _contractspec_lib_schema375.FieldType<string, string>;
277
+ type: _contractspec_lib_schema408.FieldType<string, string>;
278
278
  isArray: true;
279
279
  isOptional: true;
280
280
  };
281
281
  nextSyncSuggestedAt: {
282
- type: _contractspec_lib_schema375.FieldType<Date, string>;
282
+ type: _contractspec_lib_schema408.FieldType<Date, string>;
283
283
  isOptional: true;
284
284
  };
285
285
  }>, undefined>;