@contractspec/lib.contracts 1.48.1 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-config/contracts.d.ts +50 -50
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +54 -54
- package/dist/contract-registry/schemas.d.ts +2 -2
- package/dist/data-views/data-views.d.ts +2 -1
- package/dist/data-views/index.d.ts +2 -1
- package/dist/data-views/spec.d.ts +2 -8
- package/dist/examples/schema.d.ts +8 -8
- package/dist/features/index.d.ts +2 -2
- package/dist/index.d.ts +7 -4
- package/dist/index.js +2 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/serialization/index.d.ts +3 -0
- package/dist/serialization/index.js +3 -0
- package/dist/serialization/serializers.d.ts +40 -0
- package/dist/serialization/serializers.js +148 -0
- package/dist/serialization/types.d.ts +103 -0
- package/dist/serialization/types.js +0 -0
- package/dist/workflow/index.d.ts +2 -1
- package/dist/workflow/spec.d.ts +2 -9
- package/package.json +8 -5
package/dist/workflow/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormRef } from "../features/types.js";
|
|
2
|
+
import { CompensationStep, CompensationStrategy, GuardCondition, GuardConditionKind, RetryPolicy, SLA, Step, StepAction, StepType, Transition, WorkflowDefinition, WorkflowMeta, WorkflowRegistry, WorkflowSpec, WorkflowStatus } from "./spec.js";
|
|
2
3
|
import { ValidateWorkflowSpecOptions, WorkflowValidationError, WorkflowValidationIssue, WorkflowValidationLevel, assertWorkflowSpecValid, validateWorkflowSpec } from "./validation.js";
|
|
3
4
|
import { StateStore, StepExecution, WorkflowState, WorkflowStateFilters } from "./state.js";
|
|
4
5
|
import { GuardContext, GuardEvaluator, OperationExecutor, OperationExecutorContext, WorkflowPreFlightError, WorkflowPreFlightIssue, WorkflowPreFlightIssueSeverity, WorkflowPreFlightIssueType, WorkflowPreFlightResult, WorkflowRunner, WorkflowRunnerConfig } from "./runner.js";
|
package/dist/workflow/spec.d.ts
CHANGED
|
@@ -2,18 +2,11 @@ import { OwnerShipMeta } from "../ownership.js";
|
|
|
2
2
|
import { CapabilityRef } from "../capabilities/capabilities.js";
|
|
3
3
|
import "../capabilities/index.js";
|
|
4
4
|
import { ExperimentRef } from "../experiments/spec.js";
|
|
5
|
-
import { OpRef } from "../features/types.js";
|
|
5
|
+
import { FormRef, OpRef } from "../features/types.js";
|
|
6
6
|
import "../features/index.js";
|
|
7
7
|
import { SpecContractRegistry } from "../registry.js";
|
|
8
8
|
|
|
9
9
|
//#region src/workflow/spec.d.ts
|
|
10
|
-
/**
|
|
11
|
-
* Reference to a form spec declared in {@link FormRegistry}.
|
|
12
|
-
*/
|
|
13
|
-
interface FormRef {
|
|
14
|
-
key: string;
|
|
15
|
-
version: string;
|
|
16
|
-
}
|
|
17
10
|
type StepType = 'human' | 'automation' | 'decision';
|
|
18
11
|
type WorkflowStatus = 'running' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
19
12
|
type GuardConditionKind = 'policy' | 'expression';
|
|
@@ -90,4 +83,4 @@ declare class WorkflowRegistry extends SpecContractRegistry<'workflow', Workflow
|
|
|
90
83
|
constructor(items?: WorkflowSpec[]);
|
|
91
84
|
}
|
|
92
85
|
//#endregion
|
|
93
|
-
export { CompensationStep, CompensationStrategy, FormRef, GuardCondition, GuardConditionKind, RetryPolicy, SLA, Step, StepAction, StepType, Transition, WorkflowDefinition, WorkflowMeta, WorkflowRegistry, WorkflowSpec, WorkflowStatus };
|
|
86
|
+
export { CompensationStep, CompensationStrategy, type FormRef, GuardCondition, GuardConditionKind, RetryPolicy, SLA, Step, StepAction, StepType, Transition, WorkflowDefinition, WorkflowMeta, WorkflowRegistry, WorkflowSpec, WorkflowStatus };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0",
|
|
4
4
|
"description": "Core contract specification definitions and runtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"test": "bun test"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@contractspec/tool.tsdown": "1.
|
|
29
|
-
"@contractspec/tool.typescript": "1.
|
|
28
|
+
"@contractspec/tool.tsdown": "1.49.0",
|
|
29
|
+
"@contractspec/tool.typescript": "1.49.0",
|
|
30
30
|
"@types/express": "^5.0.3",
|
|
31
31
|
"@types/turndown": "^5.0.6",
|
|
32
32
|
"tsdown": "^0.19.0",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@aws-sdk/client-secrets-manager": "^3.966.0",
|
|
37
37
|
"@aws-sdk/client-sqs": "^3.966.0",
|
|
38
|
-
"@contractspec/lib.logger": "1.
|
|
39
|
-
"@contractspec/lib.schema": "1.
|
|
38
|
+
"@contractspec/lib.logger": "1.49.0",
|
|
39
|
+
"@contractspec/lib.schema": "1.49.0",
|
|
40
40
|
"@elevenlabs/elevenlabs-js": "^2.30.0",
|
|
41
41
|
"@google-cloud/secret-manager": "^6.1.1",
|
|
42
42
|
"@google-cloud/storage": "^7.18.0",
|
|
@@ -306,6 +306,9 @@
|
|
|
306
306
|
"./registry-utils": "./dist/registry-utils.js",
|
|
307
307
|
"./resources": "./dist/resources.js",
|
|
308
308
|
"./schema-to-markdown": "./dist/schema-to-markdown.js",
|
|
309
|
+
"./serialization": "./dist/serialization/index.js",
|
|
310
|
+
"./serialization/serializers": "./dist/serialization/serializers.js",
|
|
311
|
+
"./serialization/types": "./dist/serialization/types.js",
|
|
309
312
|
"./server": "./dist/server/index.js",
|
|
310
313
|
"./server/contracts-adapter-hydration": "./dist/server/contracts-adapter-hydration.js",
|
|
311
314
|
"./server/contracts-adapter-input": "./dist/server/contracts-adapter-input.js",
|