@contractspec/lib.contracts 1.44.1 → 1.45.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/README.md +1 -1
- package/dist/app-config/app-config.feature.js +6 -6
- package/dist/app-config/contracts.d.ts +1 -1
- package/dist/app-config/contracts.js +13 -13
- package/dist/app-config/events.d.ts +8 -8
- package/dist/app-config/events.js +12 -12
- package/dist/app-config/lifecycle-contracts.d.ts +11 -11
- package/dist/app-config/lifecycle-contracts.js +19 -19
- package/dist/app-config/lifecycle.d.ts +2 -2
- package/dist/app-config/runtime.d.ts +3 -3
- package/dist/app-config/spec.d.ts +10 -12
- package/dist/app-config/spec.js +5 -26
- package/dist/capabilities/capabilities.d.ts +4 -11
- package/dist/capabilities/capabilities.js +3 -5
- package/dist/capabilities/openbanking.js +10 -10
- package/dist/client/react/form-render.js +1 -0
- package/dist/contract-registry/schemas.d.ts +8 -8
- package/dist/contract-registry/schemas.js +1 -1
- package/dist/contract-registry/types.d.ts +1 -1
- package/dist/data-views/data-views.js +1 -0
- package/dist/data-views/registry.d.ts +3 -37
- package/dist/data-views/registry.js +4 -66
- package/dist/data-views/runtime.d.ts +1 -1
- package/dist/data-views/runtime.js +2 -0
- package/dist/data-views/spec.d.ts +2 -2
- package/dist/docs/index.d.ts +2 -2
- package/dist/docs/index.js +2 -2
- package/dist/docs/presentations.d.ts +2 -4
- package/dist/docs/presentations.js +2 -4
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +1 -1
- package/dist/docs/tech/contracts/tests.docblock.js +1 -1
- package/dist/docs/tech-contracts.docs.js +1 -1
- package/dist/docs/types.d.ts +1 -1
- package/dist/events.d.ts +3 -3
- package/dist/examples/docs/examples.docblock.d.ts +6 -0
- package/dist/examples/docs/examples.docblock.js +165 -0
- package/dist/examples/index.d.ts +5 -0
- package/dist/examples/index.js +6 -0
- package/dist/examples/registry.d.ts +65 -0
- package/dist/examples/registry.js +144 -0
- package/dist/examples/schema.d.ts +282 -0
- package/dist/examples/schema.js +125 -0
- package/dist/examples/types.d.ts +167 -0
- package/dist/examples/types.js +43 -0
- package/dist/examples/validation.d.ts +65 -0
- package/dist/examples/validation.js +144 -0
- package/dist/experiments/docs/experiments.docblock.js +1 -1
- package/dist/experiments/evaluator.d.ts +1 -1
- package/dist/experiments/spec-resolver.d.ts +2 -2
- package/dist/experiments/spec.d.ts +6 -8
- package/dist/experiments/spec.js +5 -23
- package/dist/features/index.d.ts +9 -1
- package/dist/features/index.js +8 -1
- package/dist/features/install.js +2 -2
- package/dist/features/types.d.ts +7 -7
- package/dist/forms/forms.d.ts +2 -2
- package/dist/forms/forms.js +3 -6
- package/dist/index.d.ts +13 -8
- package/dist/index.js +11 -2
- package/dist/install.d.ts +9 -9
- package/dist/integrations/connection.d.ts +1 -1
- package/dist/integrations/integrations.feature.js +8 -8
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/accounts.js +3 -3
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/balances.js +2 -2
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/contracts/transactions.js +2 -2
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/openbanking/openbanking.feature.js +10 -10
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/integrations/operations.js +10 -10
- package/dist/integrations/providers/elevenlabs.js +2 -2
- package/dist/integrations/providers/gcs-storage.js +2 -2
- package/dist/integrations/providers/gmail.js +3 -3
- package/dist/integrations/providers/google-calendar.js +2 -2
- package/dist/integrations/providers/mistral.js +3 -3
- package/dist/integrations/providers/postmark.js +2 -2
- package/dist/integrations/providers/powens.js +4 -4
- package/dist/integrations/providers/qdrant.js +3 -3
- package/dist/integrations/providers/stripe.js +2 -2
- package/dist/integrations/providers/twilio-sms.js +2 -2
- package/dist/integrations/runtime.d.ts +5 -5
- package/dist/integrations/spec.d.ts +3 -5
- package/dist/integrations/spec.js +5 -26
- package/dist/jobs/gcp-cloud-tasks.js +1 -1
- package/dist/jobs/gcp-pubsub.js +1 -1
- package/dist/jobs/handlers/ping-handler.d.ts +3 -3
- package/dist/jobs/handlers/ping-handler.js +2 -2
- package/dist/jobs/memory-queue.js +1 -1
- package/dist/jobs/queue.d.ts +4 -4
- package/dist/jobs/scaleway-sqs-queue.js +2 -2
- package/dist/jsonschema.d.ts +4 -4
- package/dist/knowledge/binding.d.ts +1 -1
- package/dist/knowledge/knowledge.feature.js +8 -8
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/knowledge/operations.js +12 -12
- package/dist/knowledge/source.d.ts +1 -1
- package/dist/knowledge/spaces/email-threads.js +2 -2
- package/dist/knowledge/spaces/financial-docs.js +2 -2
- package/dist/knowledge/spaces/financial-overview.js +2 -2
- package/dist/knowledge/spaces/product-canon.js +2 -2
- package/dist/knowledge/spaces/support-faq.js +2 -2
- package/dist/knowledge/spaces/uploaded-docs.js +2 -2
- package/dist/knowledge/spec.d.ts +3 -5
- package/dist/knowledge/spec.js +6 -28
- package/dist/llm/exporters.js +2 -2
- package/dist/llm/types.d.ts +4 -4
- package/dist/markdown.js +1 -1
- package/dist/migrations.d.ts +2 -2
- package/dist/migrations.js +7 -9
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/onboarding-base.js +4 -4
- package/dist/openapi.js +9 -2
- package/dist/operations/operation.d.ts +3 -3
- package/dist/operations/registry.d.ts +9 -58
- package/dist/operations/registry.js +17 -93
- package/dist/ownership.d.ts +1 -1
- package/dist/policy/docs/policy.docblock.js +1 -1
- package/dist/policy/engine.js +2 -0
- package/dist/policy/spec.d.ts +1 -1
- package/dist/prompt.d.ts +6 -6
- package/dist/promptRegistry.d.ts +4 -4
- package/dist/promptRegistry.js +2 -5
- package/dist/regenerator/docs/regenerator.docblock.js +1 -1
- package/dist/regenerator/types.d.ts +1 -1
- package/dist/registry.d.ts +3 -2
- package/dist/registry.js +5 -5
- package/dist/resources.d.ts +5 -5
- package/dist/server/graphql-pothos.js +2 -2
- package/dist/server/mcp/registerTools.js +1 -1
- package/dist/server/rest-elysia.d.ts +1 -1
- package/dist/server/rest-elysia.js +1 -1
- package/dist/server/rest-express.d.ts +1 -1
- package/dist/server/rest-express.js +1 -1
- package/dist/server/rest-generic.d.ts +1 -1
- package/dist/server/rest-generic.js +1 -1
- package/dist/server/rest-next-app.d.ts +1 -1
- package/dist/server/rest-next-mcp.d.ts +1 -1
- package/dist/server/rest-next-mcp.js +1 -1
- package/dist/server/rest-next-pages.d.ts +1 -1
- package/dist/telemetry/docs/telemetry.docblock.js +1 -1
- package/dist/telemetry/spec.d.ts +7 -7
- package/dist/telemetry/spec.js +17 -44
- package/dist/telemetry/tracker.d.ts +2 -2
- package/dist/tests/runner.d.ts +1 -1
- package/dist/tests/spec.d.ts +5 -5
- package/dist/tests/spec.js +3 -5
- package/dist/themes.d.ts +4 -6
- package/dist/themes.js +5 -27
- package/dist/translations/catalog.d.ts +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/workflow/adapters/db-adapter.js +3 -3
- package/dist/workflow/runner.d.ts +4 -2
- package/dist/workflow/spec.d.ts +4 -17
- package/dist/workflow/spec.js +4 -48
- package/dist/workflow/state.d.ts +1 -1
- package/dist/workflow/validation.js +1 -1
- package/dist/workspace-config/contractsrc-schema.d.ts +419 -419
- package/dist/workspace-config/contractsrc-schema.js +86 -86
- package/package.json +19 -12
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const gmailIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "email.gmail",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "email",
|
|
9
9
|
title: "Google Gmail API",
|
|
10
10
|
description: "Gmail integration supporting inbound thread ingestion and outbound transactional email.",
|
|
@@ -16,10 +16,10 @@ const gmailIntegrationSpec = {
|
|
|
16
16
|
supportedModes: ["managed", "byok"],
|
|
17
17
|
capabilities: { provides: [{
|
|
18
18
|
key: "email.inbound",
|
|
19
|
-
version: 1
|
|
19
|
+
version: "1.0.0"
|
|
20
20
|
}, {
|
|
21
21
|
key: "email.outbound",
|
|
22
|
-
version: 1
|
|
22
|
+
version: "1.0.0"
|
|
23
23
|
}] },
|
|
24
24
|
configSchema: {
|
|
25
25
|
schema: {
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const googleCalendarIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "calendar.google",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "calendar",
|
|
9
9
|
title: "Google Calendar API",
|
|
10
10
|
description: "Google Calendar integration for event creation, updates, and scheduling automations.",
|
|
@@ -16,7 +16,7 @@ const googleCalendarIntegrationSpec = {
|
|
|
16
16
|
supportedModes: ["managed", "byok"],
|
|
17
17
|
capabilities: { provides: [{
|
|
18
18
|
key: "calendar.events",
|
|
19
|
-
version: 1
|
|
19
|
+
version: "1.0.0"
|
|
20
20
|
}] },
|
|
21
21
|
configSchema: {
|
|
22
22
|
schema: {
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const mistralIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "ai-llm.mistral",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "ai-llm",
|
|
9
9
|
title: "Mistral Large Language Model",
|
|
10
10
|
description: "Mistral integration providing chat completions and embedding generation.",
|
|
@@ -20,10 +20,10 @@ const mistralIntegrationSpec = {
|
|
|
20
20
|
supportedModes: ["managed", "byok"],
|
|
21
21
|
capabilities: { provides: [{
|
|
22
22
|
key: "ai.chat",
|
|
23
|
-
version: 1
|
|
23
|
+
version: "1.0.0"
|
|
24
24
|
}, {
|
|
25
25
|
key: "ai.embeddings",
|
|
26
|
-
version: 1
|
|
26
|
+
version: "1.0.0"
|
|
27
27
|
}] },
|
|
28
28
|
configSchema: {
|
|
29
29
|
schema: {
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const postmarkIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "email.postmark",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "email",
|
|
9
9
|
title: "Postmark Transactional Email",
|
|
10
10
|
description: "Postmark integration for transactional email delivery.",
|
|
@@ -17,7 +17,7 @@ const postmarkIntegrationSpec = {
|
|
|
17
17
|
capabilities: {
|
|
18
18
|
provides: [{
|
|
19
19
|
key: "email.transactional",
|
|
20
|
-
version: 1
|
|
20
|
+
version: "1.0.0"
|
|
21
21
|
}],
|
|
22
22
|
requires: [{
|
|
23
23
|
key: "platform.webhooks",
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const powensIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "openbanking.powens",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "open-banking",
|
|
9
9
|
title: "Powens Open Banking (Read)",
|
|
10
10
|
description: "Read-only Open Banking integration powered by Powens, exposing accounts, transactions, and balances.",
|
|
@@ -21,15 +21,15 @@ const powensIntegrationSpec = {
|
|
|
21
21
|
capabilities: { provides: [
|
|
22
22
|
{
|
|
23
23
|
key: "openbanking.accounts.read",
|
|
24
|
-
version: 1
|
|
24
|
+
version: "1.0.0"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
key: "openbanking.transactions.read",
|
|
28
|
-
version: 1
|
|
28
|
+
version: "1.0.0"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
key: "openbanking.balances.read",
|
|
32
|
-
version: 1
|
|
32
|
+
version: "1.0.0"
|
|
33
33
|
}
|
|
34
34
|
] },
|
|
35
35
|
configSchema: {
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const qdrantIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "vectordb.qdrant",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "vector-db",
|
|
9
9
|
title: "Qdrant Vector Database",
|
|
10
10
|
description: "Qdrant integration for vector search and embeddings storage.",
|
|
@@ -17,10 +17,10 @@ const qdrantIntegrationSpec = {
|
|
|
17
17
|
capabilities: {
|
|
18
18
|
provides: [{
|
|
19
19
|
key: "vector-db.search",
|
|
20
|
-
version: 1
|
|
20
|
+
version: "1.0.0"
|
|
21
21
|
}, {
|
|
22
22
|
key: "vector-db.storage",
|
|
23
|
-
version: 1
|
|
23
|
+
version: "1.0.0"
|
|
24
24
|
}],
|
|
25
25
|
requires: [{
|
|
26
26
|
key: "ai.embeddings",
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const stripeIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "payments.stripe",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "payments",
|
|
9
9
|
title: "Stripe Payments",
|
|
10
10
|
description: "Stripe integration for payment processing, charges, and payouts.",
|
|
@@ -17,7 +17,7 @@ const stripeIntegrationSpec = {
|
|
|
17
17
|
capabilities: {
|
|
18
18
|
provides: [{
|
|
19
19
|
key: "payments.psp",
|
|
20
|
-
version: 1
|
|
20
|
+
version: "1.0.0"
|
|
21
21
|
}],
|
|
22
22
|
requires: [{
|
|
23
23
|
key: "platform.webhooks",
|
|
@@ -4,7 +4,7 @@ import { StabilityEnum } from "../../ownership.js";
|
|
|
4
4
|
const twilioSmsIntegrationSpec = {
|
|
5
5
|
meta: {
|
|
6
6
|
key: "sms.twilio",
|
|
7
|
-
version: 1,
|
|
7
|
+
version: "1.0.0",
|
|
8
8
|
category: "sms",
|
|
9
9
|
title: "Twilio Messaging",
|
|
10
10
|
description: "Twilio SMS integration for transactional and notification messaging.",
|
|
@@ -16,7 +16,7 @@ const twilioSmsIntegrationSpec = {
|
|
|
16
16
|
supportedModes: ["managed", "byok"],
|
|
17
17
|
capabilities: { provides: [{
|
|
18
18
|
key: "sms.outbound",
|
|
19
|
-
version: 1
|
|
19
|
+
version: "1.0.0"
|
|
20
20
|
}] },
|
|
21
21
|
configSchema: {
|
|
22
22
|
schema: {
|
|
@@ -6,8 +6,8 @@ import { SecretProvider } from "./secrets/provider.js";
|
|
|
6
6
|
//#region src/integrations/runtime.d.ts
|
|
7
7
|
interface IntegrationTraceMetadata {
|
|
8
8
|
blueprintName: string;
|
|
9
|
-
blueprintVersion:
|
|
10
|
-
configVersion:
|
|
9
|
+
blueprintVersion: string;
|
|
10
|
+
configVersion: string;
|
|
11
11
|
}
|
|
12
12
|
interface IntegrationTelemetryEvent {
|
|
13
13
|
tenantId: string;
|
|
@@ -15,7 +15,7 @@ interface IntegrationTelemetryEvent {
|
|
|
15
15
|
environment?: string;
|
|
16
16
|
slotId?: string;
|
|
17
17
|
integrationKey: string;
|
|
18
|
-
integrationVersion:
|
|
18
|
+
integrationVersion: string;
|
|
19
19
|
connectionId: string;
|
|
20
20
|
status: 'success' | 'error';
|
|
21
21
|
durationMs?: number;
|
|
@@ -45,8 +45,8 @@ interface IntegrationCallContext {
|
|
|
45
45
|
appId: string;
|
|
46
46
|
environment?: string;
|
|
47
47
|
blueprintName: string;
|
|
48
|
-
blueprintVersion:
|
|
49
|
-
configVersion:
|
|
48
|
+
blueprintVersion: string;
|
|
49
|
+
configVersion: string;
|
|
50
50
|
slotId: string;
|
|
51
51
|
operation: string;
|
|
52
52
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OwnerShipMeta } from "../ownership.js";
|
|
2
2
|
import { CapabilityRef, CapabilityRequirement } from "../capabilities/capabilities.js";
|
|
3
3
|
import "../capabilities/index.js";
|
|
4
|
+
import { SpecContractRegistry } from "../registry.js";
|
|
4
5
|
|
|
5
6
|
//#region src/integrations/spec.d.ts
|
|
6
7
|
type IntegrationCategory = 'payments' | 'email' | 'calendar' | 'sms' | 'ai-llm' | 'ai-voice' | 'speech-to-text' | 'vector-db' | 'storage' | 'accounting' | 'crm' | 'helpdesk' | 'open-banking' | 'custom';
|
|
@@ -63,11 +64,8 @@ interface IntegrationSpec {
|
|
|
63
64
|
/** Provider-specific metadata for BYOK setup flows. */
|
|
64
65
|
byokSetup?: IntegrationByokSetup;
|
|
65
66
|
}
|
|
66
|
-
declare class IntegrationSpecRegistry {
|
|
67
|
-
|
|
68
|
-
register(spec: IntegrationSpec): this;
|
|
69
|
-
list(): IntegrationSpec[];
|
|
70
|
-
get(key: string, version?: number): IntegrationSpec | undefined;
|
|
67
|
+
declare class IntegrationSpecRegistry extends SpecContractRegistry<'integration', IntegrationSpec> {
|
|
68
|
+
constructor(items?: IntegrationSpec[]);
|
|
71
69
|
getByCategory(category: IntegrationCategory): IntegrationSpec[];
|
|
72
70
|
}
|
|
73
71
|
declare function makeIntegrationSpecKey(meta: IntegrationMeta): string;
|
|
@@ -1,31 +1,10 @@
|
|
|
1
|
+
import { SpecContractRegistry } from "../registry.js";
|
|
2
|
+
|
|
1
3
|
//#region src/integrations/spec.ts
|
|
2
4
|
const integrationKey = (meta) => `${meta.key}.v${meta.version}`;
|
|
3
|
-
var IntegrationSpecRegistry = class {
|
|
4
|
-
items
|
|
5
|
-
|
|
6
|
-
const key = integrationKey(spec.meta);
|
|
7
|
-
if (this.items.has(key)) throw new Error(`Duplicate IntegrationSpec ${key}`);
|
|
8
|
-
this.items.set(key, spec);
|
|
9
|
-
return this;
|
|
10
|
-
}
|
|
11
|
-
list() {
|
|
12
|
-
return [...this.items.values()];
|
|
13
|
-
}
|
|
14
|
-
get(key, version) {
|
|
15
|
-
if (version != null) return this.items.get(integrationKey({
|
|
16
|
-
key,
|
|
17
|
-
version
|
|
18
|
-
}));
|
|
19
|
-
let latest;
|
|
20
|
-
let maxVersion = -Infinity;
|
|
21
|
-
for (const spec of this.items.values()) {
|
|
22
|
-
if (spec.meta.key !== key) continue;
|
|
23
|
-
if (spec.meta.version > maxVersion) {
|
|
24
|
-
maxVersion = spec.meta.version;
|
|
25
|
-
latest = spec;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return latest;
|
|
5
|
+
var IntegrationSpecRegistry = class extends SpecContractRegistry {
|
|
6
|
+
constructor(items) {
|
|
7
|
+
super("integration", items);
|
|
29
8
|
}
|
|
30
9
|
getByCategory(category) {
|
|
31
10
|
return this.list().filter((spec) => spec.meta.category === category);
|
package/dist/jobs/gcp-pubsub.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DefinedJob } from "../define-job.js";
|
|
2
|
-
import * as z$
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/jobs/handlers/ping-handler.d.ts
|
|
5
5
|
declare const PING_JOB_TYPE: "core.ping";
|
|
6
|
-
declare const PingPayloadSchema: z$
|
|
7
|
-
type PingPayload = z$
|
|
6
|
+
declare const PingPayloadSchema: z$2.ZodObject<{}, z$2.core.$strip>;
|
|
7
|
+
type PingPayload = z$2.infer<typeof PingPayloadSchema>;
|
|
8
8
|
declare const pingJob: DefinedJob<PingPayload>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { PING_JOB_TYPE, PingPayload, PingPayloadSchema, pingJob };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as z$
|
|
1
|
+
import * as z$2 from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/jobs/handlers/ping-handler.ts
|
|
4
4
|
const PING_JOB_TYPE = "core.ping";
|
|
5
|
-
const PingPayloadSchema = z$
|
|
5
|
+
const PingPayloadSchema = z$2.object({});
|
|
6
6
|
const pingJob = {
|
|
7
7
|
type: PING_JOB_TYPE,
|
|
8
8
|
schema: PingPayloadSchema,
|
package/dist/jobs/queue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z$
|
|
1
|
+
import * as z$2 from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/jobs/queue.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ type JobStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' |
|
|
|
12
12
|
interface Job<TPayload = unknown> {
|
|
13
13
|
id: string;
|
|
14
14
|
type: string;
|
|
15
|
-
version:
|
|
15
|
+
version: string;
|
|
16
16
|
payload: TPayload;
|
|
17
17
|
status: JobStatus;
|
|
18
18
|
priority: number;
|
|
@@ -116,8 +116,8 @@ declare function calculateBackoff(attempt: number, policy?: RetryPolicy): number
|
|
|
116
116
|
*/
|
|
117
117
|
interface JobTypeDef<TPayload = unknown> {
|
|
118
118
|
type: string;
|
|
119
|
-
version:
|
|
120
|
-
payload: z$
|
|
119
|
+
version: string;
|
|
120
|
+
payload: z$2.ZodType<TPayload>;
|
|
121
121
|
options?: Partial<RetryPolicy & {
|
|
122
122
|
timeoutMs: number;
|
|
123
123
|
}>;
|
|
@@ -44,7 +44,7 @@ var ScalewaySqsJobQueue = class {
|
|
|
44
44
|
return {
|
|
45
45
|
id,
|
|
46
46
|
type: jobType,
|
|
47
|
-
version: 1,
|
|
47
|
+
version: "1.0.0",
|
|
48
48
|
payload,
|
|
49
49
|
status: "pending",
|
|
50
50
|
priority: options.priority ?? 0,
|
|
@@ -104,7 +104,7 @@ var ScalewaySqsJobQueue = class {
|
|
|
104
104
|
const job = {
|
|
105
105
|
id: envelope.id,
|
|
106
106
|
type: envelope.type,
|
|
107
|
-
version: 1,
|
|
107
|
+
version: "1.0.0",
|
|
108
108
|
payload: envelope.payload,
|
|
109
109
|
status: "pending",
|
|
110
110
|
priority: 0,
|
package/dist/jsonschema.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare function jsonSchemaForSpec(spec: OperationSpec<AnySchemaModel, AnySchema
|
|
|
10
10
|
output: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> | null;
|
|
11
11
|
meta: {
|
|
12
12
|
name: string;
|
|
13
|
-
version:
|
|
13
|
+
version: string;
|
|
14
14
|
kind: OpKind;
|
|
15
15
|
description: string;
|
|
16
16
|
tags: Tag[];
|
|
@@ -18,10 +18,10 @@ declare function jsonSchemaForSpec(spec: OperationSpec<AnySchemaModel, AnySchema
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
/** Helper to derive default REST path */
|
|
21
|
-
declare function defaultRestPath(name: string, version:
|
|
21
|
+
declare function defaultRestPath(name: string, version: string): string;
|
|
22
22
|
/** Helper to derive default MCP tool name */
|
|
23
|
-
declare function defaultMcpTool(name: string, version:
|
|
23
|
+
declare function defaultMcpTool(name: string, version: string): string;
|
|
24
24
|
/** Helper to derive default GraphQL field name */
|
|
25
|
-
declare function defaultGqlField(name: string, version:
|
|
25
|
+
declare function defaultGqlField(name: string, version: string): string;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { defaultGqlField, defaultMcpTool, defaultRestPath, jsonSchemaForSpec };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const KnowledgeFeature = {
|
|
7
7
|
meta: {
|
|
8
8
|
key: "platform.knowledge",
|
|
9
|
-
version: 1,
|
|
9
|
+
version: "1.0.0",
|
|
10
10
|
title: "Knowledge Sources",
|
|
11
11
|
description: "Manage knowledge source bindings for ingestion (e.g., Notion, uploads)",
|
|
12
12
|
domain: "platform",
|
|
@@ -22,23 +22,23 @@ const KnowledgeFeature = {
|
|
|
22
22
|
operations: [
|
|
23
23
|
{
|
|
24
24
|
key: "knowledge.source.create",
|
|
25
|
-
version: 1
|
|
25
|
+
version: "1.0.0"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
key: "knowledge.source.update",
|
|
29
|
-
version: 1
|
|
29
|
+
version: "1.0.0"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
key: "knowledge.source.delete",
|
|
33
|
-
version: 1
|
|
33
|
+
version: "1.0.0"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
key: "knowledge.source.list",
|
|
37
|
-
version: 1
|
|
37
|
+
version: "1.0.0"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
key: "knowledge.source.triggerSync",
|
|
41
|
-
version: 1
|
|
41
|
+
version: "1.0.0"
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
events: [],
|
|
@@ -48,11 +48,11 @@ const KnowledgeFeature = {
|
|
|
48
48
|
capabilities: {
|
|
49
49
|
provides: [{
|
|
50
50
|
key: "knowledge",
|
|
51
|
-
version: 1
|
|
51
|
+
version: "1.0.0"
|
|
52
52
|
}],
|
|
53
53
|
requires: [{
|
|
54
54
|
key: "identity",
|
|
55
|
-
version: 1
|
|
55
|
+
version: "1.0.0"
|
|
56
56
|
}]
|
|
57
57
|
}
|
|
58
58
|
};
|