@contractspec/lib.contracts 1.46.1 → 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.
- package/dist/app-config/app-config.capability.d.ts +7 -0
- package/dist/app-config/app-config.capability.js +23 -0
- package/dist/app-config/app-config.feature.d.ts +1 -2
- package/dist/app-config/app-config.feature.js +9 -2
- package/dist/app-config/contracts.d.ts +50 -50
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/index.d.ts +4 -3
- package/dist/app-config/index.js +3 -2
- package/dist/app-config/lifecycle-contracts.d.ts +55 -55
- package/dist/app-config/runtime.d.ts +6 -6
- package/dist/app-config/spec.d.ts +9 -5
- package/dist/app-config/spec.js +5 -1
- package/dist/contract-registry/schemas.d.ts +2 -2
- package/dist/data-views/runtime.d.ts +5 -1
- package/dist/data-views/runtime.js +34 -7
- package/dist/data-views/spec.d.ts +1 -1
- package/dist/docs/index.js +2 -1
- package/dist/docs/tech/cli.docblock.d.ts +6 -0
- package/dist/docs/tech/cli.docblock.js +138 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +106 -1
- package/dist/docs/tech/studio/project-access-teams.docblock.js +3 -1
- package/dist/examples/index.d.ts +9 -1
- package/dist/examples/index.js +8 -1
- package/dist/examples/registry.d.ts +3 -25
- package/dist/examples/registry.js +4 -60
- package/dist/examples/schema.d.ts +17 -17
- package/dist/examples/types.d.ts +1 -1
- package/dist/features/types.d.ts +1 -1
- package/dist/index.d.ts +27 -26
- package/dist/index.js +6 -6
- package/dist/install.d.ts +1 -1
- package/dist/integrations/index.d.ts +2 -2
- package/dist/integrations/index.js +2 -2
- package/dist/integrations/integrations.capability.d.ts +7 -0
- package/dist/integrations/integrations.capability.js +17 -0
- package/dist/integrations/integrations.feature.d.ts +1 -2
- package/dist/integrations/integrations.feature.js +9 -2
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/openbanking/openbanking.capability.d.ts +7 -0
- package/dist/integrations/openbanking/openbanking.capability.js +21 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +1 -2
- package/dist/integrations/openbanking/openbanking.feature.js +9 -2
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/integrations/providers/elevenlabs.d.ts +1 -0
- package/dist/integrations/providers/elevenlabs.js +3 -2
- package/dist/integrations/providers/gcs-storage.d.ts +1 -0
- package/dist/integrations/providers/gcs-storage.js +3 -2
- package/dist/integrations/providers/gmail.d.ts +1 -0
- package/dist/integrations/providers/gmail.js +3 -2
- package/dist/integrations/providers/google-calendar.d.ts +1 -0
- package/dist/integrations/providers/google-calendar.js +3 -2
- package/dist/integrations/providers/impls/provider-factory.js +2 -1
- package/dist/integrations/providers/mistral.d.ts +1 -0
- package/dist/integrations/providers/mistral.js +3 -2
- package/dist/integrations/providers/postmark.d.ts +1 -0
- package/dist/integrations/providers/postmark.js +3 -2
- package/dist/integrations/providers/powens.d.ts +1 -0
- package/dist/integrations/providers/powens.js +3 -2
- package/dist/integrations/providers/qdrant.d.ts +1 -0
- package/dist/integrations/providers/qdrant.js +3 -2
- package/dist/integrations/providers/stripe.d.ts +1 -0
- package/dist/integrations/providers/stripe.js +3 -2
- package/dist/integrations/providers/twilio-sms.d.ts +1 -0
- package/dist/integrations/providers/twilio-sms.js +3 -2
- package/dist/integrations/spec.d.ts +5 -1
- package/dist/integrations/spec.js +5 -1
- package/dist/knowledge/knowledge.capability.d.ts +7 -0
- package/dist/knowledge/knowledge.capability.js +21 -0
- package/dist/knowledge/knowledge.feature.d.ts +1 -2
- package/dist/knowledge/knowledge.feature.js +9 -2
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/llm/exporters.d.ts +1 -1
- package/dist/llm/types.d.ts +1 -1
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/operations/operation.d.ts +1 -1
- package/dist/server/mcp/createMcpServer.js +1 -1
- package/dist/server/mcp/mcpTypes.d.ts +1 -1
- package/dist/server/mcp/registerPresentations.js +1 -1
- package/dist/server/mcp/registerResources.js +2 -2
- package/dist/tests/index.d.ts +2 -2
- package/dist/tests/index.js +2 -2
- package/dist/tests/spec.d.ts +2 -1
- package/dist/tests/spec.js +4 -1
- package/dist/types.d.ts +2 -2
- package/dist/workflow/index.d.ts +8 -1
- package/dist/workflow/index.js +8 -1
- package/dist/workflow/runner.d.ts +2 -2
- package/dist/workflow/spec.d.ts +1 -1
- package/dist/workflow/validation.d.ts +1 -1
- package/dist/workspace-config/contractsrc-schema.d.ts +45 -974
- package/dist/workspace-config/contractsrc-schema.js +89 -55
- package/dist/workspace-config/contractsrc-types.d.ts +346 -0
- package/dist/workspace-config/contractsrc-types.js +0 -0
- package/dist/workspace-config/index.d.ts +3 -2
- package/package.json +27 -25
- package/dist/docs/tech/contracts/create-subscription.docblock.d.ts +0 -6
- package/dist/docs/tech/contracts/create-subscription.docblock.js +0 -21
- package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts +0 -6
- package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.js +0 -21
- package/dist/docs/tech/templates/runtime.docblock.d.ts +0 -6
- package/dist/docs/tech/templates/runtime.docblock.js +0 -21
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
2
3
|
|
|
3
4
|
//#region src/integrations/providers/mistral.ts
|
|
4
|
-
const mistralIntegrationSpec = {
|
|
5
|
+
const mistralIntegrationSpec = defineIntegration({
|
|
5
6
|
meta: {
|
|
6
7
|
key: "ai-llm.mistral",
|
|
7
8
|
version: "1.0.0",
|
|
@@ -62,7 +63,7 @@ const mistralIntegrationSpec = {
|
|
|
62
63
|
docsUrl: "https://docs.mistral.ai/platform/endpoints",
|
|
63
64
|
constraints: { rateLimit: { rpm: 600 } },
|
|
64
65
|
byokSetup: { setupInstructions: "Generate an API key within the Mistral console and ensure the selected models are enabled for the account." }
|
|
65
|
-
};
|
|
66
|
+
});
|
|
66
67
|
function registerMistralIntegration(registry) {
|
|
67
68
|
return registry.register(mistralIntegrationSpec);
|
|
68
69
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
2
3
|
|
|
3
4
|
//#region src/integrations/providers/postmark.ts
|
|
4
|
-
const postmarkIntegrationSpec = {
|
|
5
|
+
const postmarkIntegrationSpec = defineIntegration({
|
|
5
6
|
meta: {
|
|
6
7
|
key: "email.postmark",
|
|
7
8
|
version: "1.0.0",
|
|
@@ -62,7 +63,7 @@ const postmarkIntegrationSpec = {
|
|
|
62
63
|
docsUrl: "https://postmarkapp.com/developer",
|
|
63
64
|
constraints: { rateLimit: { rpm: 500 } },
|
|
64
65
|
byokSetup: { setupInstructions: "Create a Postmark server token with outbound send permissions and configure allowed from addresses." }
|
|
65
|
-
};
|
|
66
|
+
});
|
|
66
67
|
function registerPostmarkIntegration(registry) {
|
|
67
68
|
return registry.register(postmarkIntegrationSpec);
|
|
68
69
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
2
3
|
|
|
3
4
|
//#region src/integrations/providers/powens.ts
|
|
4
|
-
const powensIntegrationSpec = {
|
|
5
|
+
const powensIntegrationSpec = defineIntegration({
|
|
5
6
|
meta: {
|
|
6
7
|
key: "openbanking.powens",
|
|
7
8
|
version: "1.0.0",
|
|
@@ -110,7 +111,7 @@ const powensIntegrationSpec = {
|
|
|
110
111
|
"balances:read"
|
|
111
112
|
]
|
|
112
113
|
}
|
|
113
|
-
};
|
|
114
|
+
});
|
|
114
115
|
function registerPowensIntegration(registry) {
|
|
115
116
|
return registry.register(powensIntegrationSpec);
|
|
116
117
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
2
3
|
|
|
3
4
|
//#region src/integrations/providers/qdrant.ts
|
|
4
|
-
const qdrantIntegrationSpec = {
|
|
5
|
+
const qdrantIntegrationSpec = defineIntegration({
|
|
5
6
|
meta: {
|
|
6
7
|
key: "vectordb.qdrant",
|
|
7
8
|
version: "1.0.0",
|
|
@@ -67,7 +68,7 @@ const qdrantIntegrationSpec = {
|
|
|
67
68
|
pointsPerCollection: 1e6
|
|
68
69
|
} },
|
|
69
70
|
byokSetup: { setupInstructions: "Provide the HTTPS endpoint of your Qdrant cluster and generate an API key with read/write access to the collections that will be managed." }
|
|
70
|
-
};
|
|
71
|
+
});
|
|
71
72
|
function registerQdrantIntegration(registry) {
|
|
72
73
|
return registry.register(qdrantIntegrationSpec);
|
|
73
74
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
2
3
|
|
|
3
4
|
//#region src/integrations/providers/stripe.ts
|
|
4
|
-
const stripeIntegrationSpec = {
|
|
5
|
+
const stripeIntegrationSpec = defineIntegration({
|
|
5
6
|
meta: {
|
|
6
7
|
key: "payments.stripe",
|
|
7
8
|
version: "1.0.0",
|
|
@@ -77,7 +78,7 @@ const stripeIntegrationSpec = {
|
|
|
77
78
|
setupInstructions: "Create a restricted Stripe API key with write access to Charges and provide a webhook signing secret.",
|
|
78
79
|
requiredScopes: ["charges:write", "customers:read"]
|
|
79
80
|
}
|
|
80
|
-
};
|
|
81
|
+
});
|
|
81
82
|
function registerStripeIntegration(registry) {
|
|
82
83
|
return registry.register(stripeIntegrationSpec);
|
|
83
84
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
2
3
|
|
|
3
4
|
//#region src/integrations/providers/twilio-sms.ts
|
|
4
|
-
const twilioSmsIntegrationSpec = {
|
|
5
|
+
const twilioSmsIntegrationSpec = defineIntegration({
|
|
5
6
|
meta: {
|
|
6
7
|
key: "sms.twilio",
|
|
7
8
|
version: "1.0.0",
|
|
@@ -55,7 +56,7 @@ const twilioSmsIntegrationSpec = {
|
|
|
55
56
|
docsUrl: "https://www.twilio.com/docs/sms/api",
|
|
56
57
|
constraints: { rateLimit: { rpm: 200 } },
|
|
57
58
|
byokSetup: { setupInstructions: "Provide a Twilio account SID, auth token, and verify the outbound sending numbers used by the integration." }
|
|
58
|
-
};
|
|
59
|
+
});
|
|
59
60
|
function registerTwilioSmsIntegration(registry) {
|
|
60
61
|
return registry.register(twilioSmsIntegrationSpec);
|
|
61
62
|
}
|
|
@@ -69,5 +69,9 @@ declare class IntegrationSpecRegistry extends SpecContractRegistry<'integration'
|
|
|
69
69
|
getByCategory(category: IntegrationCategory): IntegrationSpec[];
|
|
70
70
|
}
|
|
71
71
|
declare function makeIntegrationSpecKey(meta: IntegrationMeta): string;
|
|
72
|
+
/**
|
|
73
|
+
* Helper to define an Integration.
|
|
74
|
+
*/
|
|
75
|
+
declare const defineIntegration: (spec: IntegrationSpec) => IntegrationSpec;
|
|
72
76
|
//#endregion
|
|
73
|
-
export { IntegrationByokSetup, IntegrationCapabilityMapping, IntegrationCategory, IntegrationConfigSchema, IntegrationHealthCheck, IntegrationMeta, IntegrationOwnershipMode, IntegrationSecretSchema, IntegrationSpec, IntegrationSpecRegistry, makeIntegrationSpecKey };
|
|
77
|
+
export { IntegrationByokSetup, IntegrationCapabilityMapping, IntegrationCategory, IntegrationConfigSchema, IntegrationHealthCheck, IntegrationMeta, IntegrationOwnershipMode, IntegrationSecretSchema, IntegrationSpec, IntegrationSpecRegistry, defineIntegration, makeIntegrationSpecKey };
|
|
@@ -13,6 +13,10 @@ var IntegrationSpecRegistry = class extends SpecContractRegistry {
|
|
|
13
13
|
function makeIntegrationSpecKey(meta) {
|
|
14
14
|
return integrationKey(meta);
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Helper to define an Integration.
|
|
18
|
+
*/
|
|
19
|
+
const defineIntegration = (spec) => spec;
|
|
16
20
|
|
|
17
21
|
//#endregion
|
|
18
|
-
export { IntegrationSpecRegistry, makeIntegrationSpecKey };
|
|
22
|
+
export { IntegrationSpecRegistry, defineIntegration, makeIntegrationSpecKey };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCapability } from "../capabilities/capabilities.js";
|
|
2
|
+
import { StabilityEnum } from "../ownership.js";
|
|
3
|
+
import "../capabilities/index.js";
|
|
4
|
+
|
|
5
|
+
//#region src/knowledge/knowledge.capability.ts
|
|
6
|
+
const KnowledgeCapability = defineCapability({ meta: {
|
|
7
|
+
key: "knowledge",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
kind: "data",
|
|
10
|
+
stability: StabilityEnum.Experimental,
|
|
11
|
+
description: "Knowledge base and content management capability",
|
|
12
|
+
owners: ["@platform.content"],
|
|
13
|
+
tags: [
|
|
14
|
+
"knowledge",
|
|
15
|
+
"content",
|
|
16
|
+
"data"
|
|
17
|
+
]
|
|
18
|
+
} });
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { KnowledgeCapability };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FeatureModuleSpec } from "../features/types.js";
|
|
2
|
-
import "../
|
|
2
|
+
import "../index.js";
|
|
3
3
|
|
|
4
4
|
//#region src/knowledge/knowledge.feature.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Knowledge Sources feature module that bundles
|
|
8
7
|
* knowledge source management capabilities.
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { defineFeature } from "../features/index.js";
|
|
2
|
+
|
|
1
3
|
//#region src/knowledge/knowledge.feature.ts
|
|
2
4
|
/**
|
|
5
|
+
* Knowledge Sources Feature Module Specification
|
|
6
|
+
*
|
|
7
|
+
* Defines the feature module for managing knowledge sources.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
3
10
|
* Knowledge Sources feature module that bundles
|
|
4
11
|
* knowledge source management capabilities.
|
|
5
12
|
*/
|
|
6
|
-
const KnowledgeFeature = {
|
|
13
|
+
const KnowledgeFeature = defineFeature({
|
|
7
14
|
meta: {
|
|
8
15
|
key: "platform.knowledge",
|
|
9
16
|
version: "1.0.0",
|
|
@@ -55,7 +62,7 @@ const KnowledgeFeature = {
|
|
|
55
62
|
version: "1.0.0"
|
|
56
63
|
}]
|
|
57
64
|
}
|
|
58
|
-
};
|
|
65
|
+
});
|
|
59
66
|
|
|
60
67
|
//#endregion
|
|
61
68
|
export { KnowledgeFeature };
|
|
@@ -2,47 +2,47 @@ import { AnyOperationSpec, OperationSpec } from "../operations/operation.js";
|
|
|
2
2
|
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
3
3
|
import "../operations/index.js";
|
|
4
4
|
import "../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
6
6
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
7
7
|
|
|
8
8
|
//#region src/knowledge/operations.d.ts
|
|
9
9
|
declare const CreateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
10
10
|
tenantId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
spaceKey: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
spaceVersion: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
label: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
sourceType: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
config: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
syncSchedule: {
|
|
35
35
|
type: SchemaModel<{
|
|
36
36
|
enabled: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
cron: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
intervalMs: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
46
46
|
isOptional: true;
|
|
47
47
|
};
|
|
48
48
|
}>;
|
|
@@ -50,92 +50,92 @@ declare const CreateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
|
50
50
|
};
|
|
51
51
|
}>, SchemaModel<{
|
|
52
52
|
id: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
tenantId: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
spaceKey: {
|
|
61
|
-
type:
|
|
61
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
spaceVersion: {
|
|
65
|
-
type:
|
|
65
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
label: {
|
|
69
|
-
type:
|
|
69
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
sourceType: {
|
|
73
|
-
type:
|
|
73
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
syncSchedule: {
|
|
77
77
|
type: SchemaModel<{
|
|
78
78
|
enabled: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
cron: {
|
|
83
|
-
type:
|
|
83
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
84
84
|
isOptional: true;
|
|
85
85
|
};
|
|
86
86
|
intervalMs: {
|
|
87
|
-
type:
|
|
87
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
91
|
isOptional: true;
|
|
92
92
|
};
|
|
93
93
|
lastSyncStatus: {
|
|
94
|
-
type:
|
|
94
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
95
95
|
isOptional: true;
|
|
96
96
|
};
|
|
97
97
|
lastSyncAt: {
|
|
98
|
-
type:
|
|
98
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
itemsProcessed: {
|
|
102
|
-
type:
|
|
102
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
103
103
|
isOptional: true;
|
|
104
104
|
};
|
|
105
105
|
createdAt: {
|
|
106
|
-
type:
|
|
106
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
107
107
|
isOptional: true;
|
|
108
108
|
};
|
|
109
109
|
updatedAt: {
|
|
110
|
-
type:
|
|
110
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
111
111
|
isOptional: true;
|
|
112
112
|
};
|
|
113
113
|
}>, undefined>;
|
|
114
114
|
declare const UpdateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
115
115
|
sourceId: {
|
|
116
|
-
type:
|
|
116
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
label: {
|
|
120
|
-
type:
|
|
120
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
121
121
|
isOptional: true;
|
|
122
122
|
};
|
|
123
123
|
config: {
|
|
124
|
-
type:
|
|
124
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
125
125
|
isOptional: true;
|
|
126
126
|
};
|
|
127
127
|
syncSchedule: {
|
|
128
128
|
type: SchemaModel<{
|
|
129
129
|
enabled: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
cron: {
|
|
134
|
-
type:
|
|
134
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
intervalMs: {
|
|
138
|
-
type:
|
|
138
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
139
139
|
isOptional: true;
|
|
140
140
|
};
|
|
141
141
|
}>;
|
|
@@ -143,149 +143,149 @@ declare const UpdateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
|
143
143
|
};
|
|
144
144
|
}>, SchemaModel<{
|
|
145
145
|
id: {
|
|
146
|
-
type:
|
|
146
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
147
147
|
isOptional: false;
|
|
148
148
|
};
|
|
149
149
|
tenantId: {
|
|
150
|
-
type:
|
|
150
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
spaceKey: {
|
|
154
|
-
type:
|
|
154
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
spaceVersion: {
|
|
158
|
-
type:
|
|
158
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
label: {
|
|
162
|
-
type:
|
|
162
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
sourceType: {
|
|
166
|
-
type:
|
|
166
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
syncSchedule: {
|
|
170
170
|
type: SchemaModel<{
|
|
171
171
|
enabled: {
|
|
172
|
-
type:
|
|
172
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
cron: {
|
|
176
|
-
type:
|
|
176
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
177
177
|
isOptional: true;
|
|
178
178
|
};
|
|
179
179
|
intervalMs: {
|
|
180
|
-
type:
|
|
180
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
181
181
|
isOptional: true;
|
|
182
182
|
};
|
|
183
183
|
}>;
|
|
184
184
|
isOptional: true;
|
|
185
185
|
};
|
|
186
186
|
lastSyncStatus: {
|
|
187
|
-
type:
|
|
187
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
188
188
|
isOptional: true;
|
|
189
189
|
};
|
|
190
190
|
lastSyncAt: {
|
|
191
|
-
type:
|
|
191
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
192
192
|
isOptional: true;
|
|
193
193
|
};
|
|
194
194
|
itemsProcessed: {
|
|
195
|
-
type:
|
|
195
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
196
196
|
isOptional: true;
|
|
197
197
|
};
|
|
198
198
|
createdAt: {
|
|
199
|
-
type:
|
|
199
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
updatedAt: {
|
|
203
|
-
type:
|
|
203
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
}>, undefined>;
|
|
207
207
|
declare const DeleteKnowledgeSource: OperationSpec<SchemaModel<{
|
|
208
208
|
sourceId: {
|
|
209
|
-
type:
|
|
209
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
210
210
|
isOptional: false;
|
|
211
211
|
};
|
|
212
212
|
}>, SchemaModel<{
|
|
213
213
|
success: {
|
|
214
|
-
type:
|
|
214
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
}>, undefined>;
|
|
218
218
|
declare const ListKnowledgeSources: OperationSpec<SchemaModel<{
|
|
219
219
|
tenantId: {
|
|
220
|
-
type:
|
|
220
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
spaceKey: {
|
|
224
|
-
type:
|
|
224
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
225
225
|
isOptional: true;
|
|
226
226
|
};
|
|
227
227
|
}>, SchemaModel<{
|
|
228
228
|
sources: {
|
|
229
229
|
type: SchemaModel<{
|
|
230
230
|
id: {
|
|
231
|
-
type:
|
|
231
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
tenantId: {
|
|
235
|
-
type:
|
|
235
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
236
236
|
isOptional: false;
|
|
237
237
|
};
|
|
238
238
|
spaceKey: {
|
|
239
|
-
type:
|
|
239
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
240
240
|
isOptional: false;
|
|
241
241
|
};
|
|
242
242
|
spaceVersion: {
|
|
243
|
-
type:
|
|
243
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
244
244
|
isOptional: false;
|
|
245
245
|
};
|
|
246
246
|
label: {
|
|
247
|
-
type:
|
|
247
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
248
248
|
isOptional: false;
|
|
249
249
|
};
|
|
250
250
|
sourceType: {
|
|
251
|
-
type:
|
|
251
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
syncSchedule: {
|
|
255
255
|
type: SchemaModel<{
|
|
256
256
|
enabled: {
|
|
257
|
-
type:
|
|
257
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
258
258
|
isOptional: false;
|
|
259
259
|
};
|
|
260
260
|
cron: {
|
|
261
|
-
type:
|
|
261
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
262
262
|
isOptional: true;
|
|
263
263
|
};
|
|
264
264
|
intervalMs: {
|
|
265
|
-
type:
|
|
265
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
266
266
|
isOptional: true;
|
|
267
267
|
};
|
|
268
268
|
}>;
|
|
269
269
|
isOptional: true;
|
|
270
270
|
};
|
|
271
271
|
lastSyncStatus: {
|
|
272
|
-
type:
|
|
272
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
273
273
|
isOptional: true;
|
|
274
274
|
};
|
|
275
275
|
lastSyncAt: {
|
|
276
|
-
type:
|
|
276
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
277
277
|
isOptional: true;
|
|
278
278
|
};
|
|
279
279
|
itemsProcessed: {
|
|
280
|
-
type:
|
|
280
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
281
281
|
isOptional: true;
|
|
282
282
|
};
|
|
283
283
|
createdAt: {
|
|
284
|
-
type:
|
|
284
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
285
285
|
isOptional: true;
|
|
286
286
|
};
|
|
287
287
|
updatedAt: {
|
|
288
|
-
type:
|
|
288
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
289
289
|
isOptional: true;
|
|
290
290
|
};
|
|
291
291
|
}>;
|
|
@@ -295,20 +295,20 @@ declare const ListKnowledgeSources: OperationSpec<SchemaModel<{
|
|
|
295
295
|
}>, undefined>;
|
|
296
296
|
declare const TriggerKnowledgeSourceSync: OperationSpec<SchemaModel<{
|
|
297
297
|
sourceId: {
|
|
298
|
-
type:
|
|
298
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
299
299
|
isOptional: false;
|
|
300
300
|
};
|
|
301
301
|
}>, SchemaModel<{
|
|
302
302
|
success: {
|
|
303
|
-
type:
|
|
303
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
itemsProcessed: {
|
|
307
|
-
type:
|
|
307
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
308
308
|
isOptional: true;
|
|
309
309
|
};
|
|
310
310
|
error: {
|
|
311
|
-
type:
|
|
311
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
312
312
|
isOptional: true;
|
|
313
313
|
};
|
|
314
314
|
}>, undefined>;
|
package/dist/llm/exporters.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocBlock } from "../docs/types.js";
|
|
2
2
|
import { PresentationSpec } from "../presentations/presentations.js";
|
|
3
|
-
import { EventSpec } from "../events.js";
|
|
4
3
|
import { AnyOperationSpec } from "../operations/operation.js";
|
|
5
4
|
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
6
5
|
import "../operations/index.js";
|
|
@@ -8,6 +7,7 @@ import { FeatureModuleSpec } from "../features/types.js";
|
|
|
8
7
|
import { PresentationRegistry } from "../presentations/registry.js";
|
|
9
8
|
import "../presentations/index.js";
|
|
10
9
|
import "../features/index.js";
|
|
10
|
+
import { EventSpec } from "../events.js";
|
|
11
11
|
import { FeatureExportOptions, FeatureExportResult, SpecExportOptions, SpecExportResult } from "./types.js";
|
|
12
12
|
import { AnySchemaModel } from "@contractspec/lib.schema";
|
|
13
13
|
|
package/dist/llm/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DocBlock } from "../docs/types.js";
|
|
2
2
|
import { PresentationSpec } from "../presentations/presentations.js";
|
|
3
|
-
import { EventSpec } from "../events.js";
|
|
4
3
|
import { AnyOperationSpec } from "../operations/operation.js";
|
|
5
4
|
import "../operations/index.js";
|
|
6
5
|
import { FeatureModuleSpec } from "../features/types.js";
|
|
7
6
|
import "../features/index.js";
|
|
7
|
+
import { EventSpec } from "../events.js";
|
|
8
8
|
import { AnySchemaModel } from "@contractspec/lib.schema";
|
|
9
9
|
|
|
10
10
|
//#region src/llm/types.d.ts
|