@ablehi/server-execution-contract 0.1.6 → 0.1.8
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/index.d.ts +4 -3
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -656,11 +656,12 @@ type PackageInputDiscoveryDescriptor = {
|
|
|
656
656
|
default_limit: number;
|
|
657
657
|
max_limit: number;
|
|
658
658
|
};
|
|
659
|
-
type DiscoveryExecutionBinding = {
|
|
659
|
+
type DiscoveryExecutionBinding<TIntegrationDescriptor = Record<string, unknown>> = {
|
|
660
660
|
subject: IntegrationDiscoverySubject;
|
|
661
661
|
input: string;
|
|
662
662
|
discoveryRef: string;
|
|
663
663
|
discoveryModuleRef: string;
|
|
664
|
+
integrationDescriptor: TIntegrationDescriptor;
|
|
664
665
|
descriptor: PackageInputDiscoveryDescriptor;
|
|
665
666
|
connection: ExecutionBindingConnection | null;
|
|
666
667
|
};
|
|
@@ -672,7 +673,7 @@ type DiscoveryRuntimeCredentialBinding = {
|
|
|
672
673
|
token: string;
|
|
673
674
|
expiresAt: string;
|
|
674
675
|
};
|
|
675
|
-
type DiscoveryDispatchBody = {
|
|
676
|
+
type DiscoveryDispatchBody<TIntegrationDescriptor = Record<string, unknown>> = {
|
|
676
677
|
discoveryInvocationId: string;
|
|
677
678
|
metadata: {
|
|
678
679
|
workspaceId: string;
|
|
@@ -681,7 +682,7 @@ type DiscoveryDispatchBody = {
|
|
|
681
682
|
scriptName: string;
|
|
682
683
|
};
|
|
683
684
|
request: DiscoveryInvokeRequest;
|
|
684
|
-
executionBinding: DiscoveryExecutionBinding
|
|
685
|
+
executionBinding: DiscoveryExecutionBinding<TIntegrationDescriptor>;
|
|
685
686
|
egressGrantBinding?: DiscoveryEgressGrantBinding;
|
|
686
687
|
runtimeCredentialBinding?: DiscoveryRuntimeCredentialBinding;
|
|
687
688
|
serverCallbackBaseUrl: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ablehi/server-execution-contract",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Ablehi server to Cloudflare execution contract.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,16 +23,9 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "tsup",
|
|
28
|
-
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
29
|
-
"test": "vitest run --passWithNoTests",
|
|
30
|
-
"lint": "eslint src --ext .ts",
|
|
31
|
-
"check": "pnpm build && pnpm typecheck && pnpm lint && pnpm test"
|
|
32
|
-
},
|
|
33
26
|
"dependencies": {
|
|
34
|
-
"@ablehi/error-contract": "
|
|
35
|
-
"@ablehi/flow-contract": "
|
|
27
|
+
"@ablehi/error-contract": "0.0.1",
|
|
28
|
+
"@ablehi/flow-contract": "0.1.1"
|
|
36
29
|
},
|
|
37
30
|
"devDependencies": {
|
|
38
31
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
@@ -41,5 +34,12 @@
|
|
|
41
34
|
"tsup": "^8.5.1",
|
|
42
35
|
"typescript": "^6.0.3",
|
|
43
36
|
"vitest": "^4.1.9"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsup",
|
|
40
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
41
|
+
"test": "vitest run --passWithNoTests",
|
|
42
|
+
"lint": "eslint src --ext .ts",
|
|
43
|
+
"check": "pnpm build && pnpm typecheck && pnpm lint && pnpm test"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|