@lssm/lib.feature-flags 0.0.0-canary-20251217083314 → 1.41.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/contracts/index.js +1 -910
- package/dist/docs/feature-flags.docblock.js +2 -21
- package/dist/docs/index.js +1 -1
- package/dist/entities/index.js +1 -325
- package/dist/evaluation/index.js +1 -220
- package/dist/events.js +1 -459
- package/dist/feature-flags.feature.js +1 -139
- package/dist/index.js +1 -8
- package/package.json +13 -14
- package/dist/contracts/dist/capabilities/openbanking.js +0 -88
- package/dist/contracts/dist/client/index.js +0 -5
- package/dist/contracts/dist/client/react/feature-render.js +0 -2
- package/dist/contracts/dist/client/react/form-render.js +0 -4
- package/dist/contracts/dist/client/react/index.js +0 -4
- package/dist/contracts/dist/contract-registry/index.js +0 -1
- package/dist/contracts/dist/contract-registry/schemas.js +0 -60
- package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/contracts/dist/docs/index.js +0 -29
- package/dist/contracts/dist/docs/presentations.js +0 -71
- package/dist/contracts/dist/docs/registry.js +0 -44
- package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/contracts/dist/events.js +0 -10
- package/dist/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/contracts/dist/index.js +0 -71
- package/dist/contracts/dist/install.js +0 -2
- package/dist/contracts/dist/integrations/contracts.js +0 -377
- package/dist/contracts/dist/integrations/index.js +0 -18
- package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/contracts/dist/integrations/openbanking/models.js +0 -242
- package/dist/contracts/dist/integrations/openbanking/telemetry.js +0 -13
- package/dist/contracts/dist/integrations/providers/elevenlabs.js +0 -52
- package/dist/contracts/dist/integrations/providers/gcs-storage.js +0 -75
- package/dist/contracts/dist/integrations/providers/gmail.js +0 -87
- package/dist/contracts/dist/integrations/providers/google-calendar.js +0 -66
- package/dist/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/contracts/dist/integrations/providers/mistral.js +0 -68
- package/dist/contracts/dist/integrations/providers/postmark.js +0 -68
- package/dist/contracts/dist/integrations/providers/powens.js +0 -116
- package/dist/contracts/dist/integrations/providers/qdrant.js +0 -73
- package/dist/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/contracts/dist/integrations/providers/stripe.js +0 -83
- package/dist/contracts/dist/integrations/providers/twilio-sms.js +0 -61
- package/dist/contracts/dist/jsonschema.js +0 -1
- package/dist/contracts/dist/knowledge/contracts.js +0 -306
- package/dist/contracts/dist/knowledge/index.js +0 -7
- package/dist/contracts/dist/knowledge/spaces/email-threads.js +0 -34
- package/dist/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
- package/dist/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
- package/dist/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/contracts/dist/knowledge/spaces/product-canon.js +0 -34
- package/dist/contracts/dist/knowledge/spaces/support-faq.js +0 -37
- package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
- package/dist/contracts/dist/llm/exporters.js +0 -19
- package/dist/contracts/dist/llm/index.js +0 -2
- package/dist/contracts/dist/llm/prompts.js +0 -1
- package/dist/contracts/dist/onboarding-base.js +0 -196
- package/dist/contracts/dist/openapi.js +0 -1
- package/dist/contracts/dist/ownership.js +0 -21
- package/dist/contracts/dist/presentations.js +0 -1
- package/dist/contracts/dist/presentations.v2.js +0 -11
- package/dist/contracts/dist/prompt.js +0 -1
- package/dist/contracts/dist/promptRegistry.js +0 -1
- package/dist/contracts/dist/regenerator/index.js +0 -1
- package/dist/contracts/dist/regenerator/service.js +0 -6
- package/dist/contracts/dist/registry.js +0 -2
- package/dist/contracts/dist/resources.js +0 -1
- package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/contracts/dist/schema/dist/index.js +0 -6
- package/dist/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/contracts/dist/server/index.js +0 -8
- package/dist/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/contracts/dist/server/mcp/registerPresentations.js +0 -2
- package/dist/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/contracts/dist/server/rest-express.js +0 -1
- package/dist/contracts/dist/server/rest-generic.js +0 -1
- package/dist/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/contracts/dist/spec.js +0 -34
- package/dist/contracts/dist/telemetry/index.js +0 -1
- package/dist/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/contracts/dist/tests/index.js +0 -1
- package/dist/contracts/dist/tests/runner.js +0 -2
- package/dist/contracts/dist/workflow/index.js +0 -1
- package/dist/contracts/dist/workflow/runner.js +0 -1
- package/dist/contracts/index.d.ts +0 -1006
- package/dist/docs/feature-flags.docblock.d.ts +0 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/entities/index.d.ts +0 -200
- package/dist/evaluation/index.d.ts +0 -162
- package/dist/events.d.ts +0 -624
- package/dist/feature-flags.feature.d.ts +0 -11
- package/dist/index.d.ts +0 -6
- package/dist/schema/dist/EnumType.js +0 -2
- package/dist/schema/dist/FieldType.js +0 -49
- package/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/schema/dist/SchemaModel.js +0 -39
- package/dist/schema/dist/entity/defineEntity.js +0 -236
- package/dist/schema/dist/entity/index.js +0 -2
- package/dist/schema/dist/entity/types.js +0 -1
- package/dist/schema/dist/index.js +0 -6
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region ../contracts/dist/integrations/providers/powens.js
|
|
4
|
-
const powensIntegrationSpec = {
|
|
5
|
-
meta: {
|
|
6
|
-
key: "openbanking.powens",
|
|
7
|
-
version: 1,
|
|
8
|
-
category: "open-banking",
|
|
9
|
-
displayName: "Powens Open Banking",
|
|
10
|
-
title: "Powens Open Banking (Read)",
|
|
11
|
-
description: "Read-only Open Banking integration powered by Powens, exposing accounts, transactions, and balances.",
|
|
12
|
-
domain: "finance",
|
|
13
|
-
owners: ["platform.finance"],
|
|
14
|
-
tags: [
|
|
15
|
-
"open-banking",
|
|
16
|
-
"powens",
|
|
17
|
-
"finance"
|
|
18
|
-
],
|
|
19
|
-
stability: StabilityEnum.Experimental
|
|
20
|
-
},
|
|
21
|
-
supportedModes: ["byok"],
|
|
22
|
-
capabilities: { provides: [
|
|
23
|
-
{
|
|
24
|
-
key: "openbanking.accounts.read",
|
|
25
|
-
version: 1
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
key: "openbanking.transactions.read",
|
|
29
|
-
version: 1
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
key: "openbanking.balances.read",
|
|
33
|
-
version: 1
|
|
34
|
-
}
|
|
35
|
-
] },
|
|
36
|
-
configSchema: {
|
|
37
|
-
schema: {
|
|
38
|
-
type: "object",
|
|
39
|
-
required: ["environment"],
|
|
40
|
-
properties: {
|
|
41
|
-
environment: {
|
|
42
|
-
type: "string",
|
|
43
|
-
enum: ["sandbox", "production"],
|
|
44
|
-
description: "Powens environment to target. Sandbox uses Powens test API base URL, production uses live endpoints."
|
|
45
|
-
},
|
|
46
|
-
baseUrl: {
|
|
47
|
-
type: "string",
|
|
48
|
-
description: "Optional override for the Powens API base URL. Defaults to Powens environment defaults."
|
|
49
|
-
},
|
|
50
|
-
region: {
|
|
51
|
-
type: "string",
|
|
52
|
-
description: "Optional Powens region identifier when targeting a specific data residency cluster."
|
|
53
|
-
},
|
|
54
|
-
pollingIntervalMs: {
|
|
55
|
-
type: "number",
|
|
56
|
-
description: "Optional custom polling interval in milliseconds for background sync jobs (defaults to platform standard)."
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
example: {
|
|
61
|
-
environment: "sandbox",
|
|
62
|
-
baseUrl: "https://api-sandbox.powens.com/v2",
|
|
63
|
-
region: "eu-west-1",
|
|
64
|
-
pollingIntervalMs: 3e5
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
secretSchema: {
|
|
68
|
-
schema: {
|
|
69
|
-
type: "object",
|
|
70
|
-
required: ["clientId", "clientSecret"],
|
|
71
|
-
properties: {
|
|
72
|
-
clientId: {
|
|
73
|
-
type: "string",
|
|
74
|
-
description: "Powens OAuth client identifier obtained from the Powens Console (BYOK project)."
|
|
75
|
-
},
|
|
76
|
-
clientSecret: {
|
|
77
|
-
type: "string",
|
|
78
|
-
description: "Powens OAuth client secret used to exchange for access tokens."
|
|
79
|
-
},
|
|
80
|
-
apiKey: {
|
|
81
|
-
type: "string",
|
|
82
|
-
description: "Optional Powens API key (if the tenant project exposes a dedicated API token)."
|
|
83
|
-
},
|
|
84
|
-
webhookSecret: {
|
|
85
|
-
type: "string",
|
|
86
|
-
description: "Optional webhook signing secret used to verify Powens webhook payloads."
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
example: {
|
|
91
|
-
clientId: "powens-client-id",
|
|
92
|
-
clientSecret: "powens-client-secret",
|
|
93
|
-
apiKey: "powens-api-key",
|
|
94
|
-
webhookSecret: "powens-webhook-secret"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
healthCheck: {
|
|
98
|
-
method: "ping",
|
|
99
|
-
timeoutMs: 8e3
|
|
100
|
-
},
|
|
101
|
-
docsUrl: "https://docs.powens.com/",
|
|
102
|
-
constraints: { rateLimit: {
|
|
103
|
-
rph: 1e4,
|
|
104
|
-
rpm: 600
|
|
105
|
-
} },
|
|
106
|
-
byokSetup: {
|
|
107
|
-
setupInstructions: "Create a Powens BYOK project, generate OAuth credentials, and optionally configure webhook delivery for account/transaction updates.",
|
|
108
|
-
requiredScopes: [
|
|
109
|
-
"accounts:read",
|
|
110
|
-
"transactions:read",
|
|
111
|
-
"balances:read"
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
//#endregion
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region ../contracts/dist/integrations/providers/qdrant.js
|
|
4
|
-
const qdrantIntegrationSpec = {
|
|
5
|
-
meta: {
|
|
6
|
-
key: "vectordb.qdrant",
|
|
7
|
-
version: 1,
|
|
8
|
-
category: "vector-db",
|
|
9
|
-
displayName: "Qdrant",
|
|
10
|
-
title: "Qdrant Vector Database",
|
|
11
|
-
description: "Qdrant integration for vector search and embeddings storage.",
|
|
12
|
-
domain: "ai",
|
|
13
|
-
owners: ["platform.ai"],
|
|
14
|
-
tags: ["vector-db", "search"],
|
|
15
|
-
stability: StabilityEnum.Experimental
|
|
16
|
-
},
|
|
17
|
-
supportedModes: ["managed", "byok"],
|
|
18
|
-
capabilities: {
|
|
19
|
-
provides: [{
|
|
20
|
-
key: "vector-db.search",
|
|
21
|
-
version: 1
|
|
22
|
-
}, {
|
|
23
|
-
key: "vector-db.storage",
|
|
24
|
-
version: 1
|
|
25
|
-
}],
|
|
26
|
-
requires: [{
|
|
27
|
-
key: "ai.embeddings",
|
|
28
|
-
optional: true,
|
|
29
|
-
reason: "Required if vectors are generated via hosted embedding services"
|
|
30
|
-
}]
|
|
31
|
-
},
|
|
32
|
-
configSchema: {
|
|
33
|
-
schema: {
|
|
34
|
-
type: "object",
|
|
35
|
-
properties: {
|
|
36
|
-
apiUrl: {
|
|
37
|
-
type: "string",
|
|
38
|
-
description: "Base URL for the Qdrant instance (e.g., https://qdrant.example.com)."
|
|
39
|
-
},
|
|
40
|
-
collectionPrefix: {
|
|
41
|
-
type: "string",
|
|
42
|
-
description: "Prefix applied to all collection names for this tenant."
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
example: {
|
|
47
|
-
apiUrl: "https://qdrant.example.com",
|
|
48
|
-
collectionPrefix: "tenant_"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
secretSchema: {
|
|
52
|
-
schema: {
|
|
53
|
-
type: "object",
|
|
54
|
-
properties: { apiKey: {
|
|
55
|
-
type: "string",
|
|
56
|
-
description: "API key or token when authentication is enabled."
|
|
57
|
-
} }
|
|
58
|
-
},
|
|
59
|
-
example: { apiKey: "qdrant-api-key" }
|
|
60
|
-
},
|
|
61
|
-
healthCheck: {
|
|
62
|
-
method: "ping",
|
|
63
|
-
timeoutMs: 4e3
|
|
64
|
-
},
|
|
65
|
-
docsUrl: "https://qdrant.tech/documentation/quick-start/",
|
|
66
|
-
constraints: { quotas: {
|
|
67
|
-
collections: 100,
|
|
68
|
-
pointsPerCollection: 1e6
|
|
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." }
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./stripe.js";
|
|
2
|
-
import "./postmark.js";
|
|
3
|
-
import "./qdrant.js";
|
|
4
|
-
import "./mistral.js";
|
|
5
|
-
import "./elevenlabs.js";
|
|
6
|
-
import "./gmail.js";
|
|
7
|
-
import "./google-calendar.js";
|
|
8
|
-
import "./twilio-sms.js";
|
|
9
|
-
import "./gcs-storage.js";
|
|
10
|
-
import "./powens.js";
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region ../contracts/dist/integrations/providers/stripe.js
|
|
4
|
-
const stripeIntegrationSpec = {
|
|
5
|
-
meta: {
|
|
6
|
-
key: "payments.stripe",
|
|
7
|
-
version: 1,
|
|
8
|
-
category: "payments",
|
|
9
|
-
displayName: "Stripe",
|
|
10
|
-
title: "Stripe Payments",
|
|
11
|
-
description: "Stripe integration for payment processing, charges, and payouts.",
|
|
12
|
-
domain: "payments",
|
|
13
|
-
owners: ["platform.payments"],
|
|
14
|
-
tags: ["payments", "psp"],
|
|
15
|
-
stability: StabilityEnum.Stable
|
|
16
|
-
},
|
|
17
|
-
supportedModes: ["managed", "byok"],
|
|
18
|
-
capabilities: {
|
|
19
|
-
provides: [{
|
|
20
|
-
key: "payments.psp",
|
|
21
|
-
version: 1
|
|
22
|
-
}],
|
|
23
|
-
requires: [{
|
|
24
|
-
key: "platform.webhooks",
|
|
25
|
-
optional: true,
|
|
26
|
-
reason: "Recommended for reliable event ingestion"
|
|
27
|
-
}]
|
|
28
|
-
},
|
|
29
|
-
configSchema: {
|
|
30
|
-
schema: {
|
|
31
|
-
type: "object",
|
|
32
|
-
properties: {
|
|
33
|
-
accountId: {
|
|
34
|
-
type: "string",
|
|
35
|
-
description: "Connected account ID when using Stripe Connect (BYOK)."
|
|
36
|
-
},
|
|
37
|
-
region: {
|
|
38
|
-
type: "string",
|
|
39
|
-
description: "Optional Stripe region or data residency hint."
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
example: {
|
|
44
|
-
accountId: "acct_123",
|
|
45
|
-
region: "us-east-1"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
secretSchema: {
|
|
49
|
-
schema: {
|
|
50
|
-
type: "object",
|
|
51
|
-
required: ["apiKey", "webhookSecret"],
|
|
52
|
-
properties: {
|
|
53
|
-
apiKey: {
|
|
54
|
-
type: "string",
|
|
55
|
-
description: "Stripe secret API key (sk_live_... or sk_test_...)."
|
|
56
|
-
},
|
|
57
|
-
webhookSecret: {
|
|
58
|
-
type: "string",
|
|
59
|
-
description: "Signing secret for webhook verification."
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
example: {
|
|
64
|
-
apiKey: "sk_live_***",
|
|
65
|
-
webhookSecret: "whsec_***"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
healthCheck: {
|
|
69
|
-
method: "ping",
|
|
70
|
-
timeoutMs: 5e3
|
|
71
|
-
},
|
|
72
|
-
docsUrl: "https://stripe.com/docs/api",
|
|
73
|
-
constraints: { rateLimit: {
|
|
74
|
-
rpm: 1e3,
|
|
75
|
-
rph: 2e4
|
|
76
|
-
} },
|
|
77
|
-
byokSetup: {
|
|
78
|
-
setupInstructions: "Create a restricted Stripe API key with write access to Charges and provide a webhook signing secret.",
|
|
79
|
-
requiredScopes: ["charges:write", "customers:read"]
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
//#endregion
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region ../contracts/dist/integrations/providers/twilio-sms.js
|
|
4
|
-
const twilioSmsIntegrationSpec = {
|
|
5
|
-
meta: {
|
|
6
|
-
key: "sms.twilio",
|
|
7
|
-
version: 1,
|
|
8
|
-
category: "sms",
|
|
9
|
-
displayName: "Twilio SMS",
|
|
10
|
-
title: "Twilio Messaging",
|
|
11
|
-
description: "Twilio SMS integration for transactional and notification messaging.",
|
|
12
|
-
domain: "communications",
|
|
13
|
-
owners: ["platform.messaging"],
|
|
14
|
-
tags: ["sms", "messaging"],
|
|
15
|
-
stability: StabilityEnum.Stable
|
|
16
|
-
},
|
|
17
|
-
supportedModes: ["managed", "byok"],
|
|
18
|
-
capabilities: { provides: [{
|
|
19
|
-
key: "sms.outbound",
|
|
20
|
-
version: 1
|
|
21
|
-
}] },
|
|
22
|
-
configSchema: {
|
|
23
|
-
schema: {
|
|
24
|
-
type: "object",
|
|
25
|
-
properties: { fromNumber: {
|
|
26
|
-
type: "string",
|
|
27
|
-
description: "Default Twilio phone number used as sender."
|
|
28
|
-
} }
|
|
29
|
-
},
|
|
30
|
-
example: { fromNumber: "+15551234567" }
|
|
31
|
-
},
|
|
32
|
-
secretSchema: {
|
|
33
|
-
schema: {
|
|
34
|
-
type: "object",
|
|
35
|
-
required: ["accountSid", "authToken"],
|
|
36
|
-
properties: {
|
|
37
|
-
accountSid: {
|
|
38
|
-
type: "string",
|
|
39
|
-
description: "Twilio Account SID."
|
|
40
|
-
},
|
|
41
|
-
authToken: {
|
|
42
|
-
type: "string",
|
|
43
|
-
description: "Twilio Auth Token."
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
example: {
|
|
48
|
-
accountSid: "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
49
|
-
authToken: "auth-token"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
healthCheck: {
|
|
53
|
-
method: "custom",
|
|
54
|
-
timeoutMs: 3e3
|
|
55
|
-
},
|
|
56
|
-
docsUrl: "https://www.twilio.com/docs/sms/api",
|
|
57
|
-
constraints: { rateLimit: { rpm: 200 } },
|
|
58
|
-
byokSetup: { setupInstructions: "Provide a Twilio account SID, auth token, and verify the outbound sending numbers used by the integration." }
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { SchemaModel } from "../schema/dist/SchemaModel.js";
|
|
2
|
-
import { ScalarTypeEnum } from "../schema/dist/ScalarTypeEnum.js";
|
|
3
|
-
import "../schema/dist/index.js";
|
|
4
|
-
import { defineCommand, defineQuery } from "../spec.js";
|
|
5
|
-
|
|
6
|
-
//#region ../contracts/dist/knowledge/contracts.js
|
|
7
|
-
const KnowledgeSyncSchedule = new SchemaModel({
|
|
8
|
-
name: "KnowledgeSyncSchedule",
|
|
9
|
-
fields: {
|
|
10
|
-
enabled: {
|
|
11
|
-
type: ScalarTypeEnum.Boolean(),
|
|
12
|
-
isOptional: false
|
|
13
|
-
},
|
|
14
|
-
cron: {
|
|
15
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
16
|
-
isOptional: true
|
|
17
|
-
},
|
|
18
|
-
intervalMs: {
|
|
19
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
20
|
-
isOptional: true
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const KnowledgeSourceRecord = new SchemaModel({
|
|
25
|
-
name: "KnowledgeSourceRecord",
|
|
26
|
-
fields: {
|
|
27
|
-
id: {
|
|
28
|
-
type: ScalarTypeEnum.ID(),
|
|
29
|
-
isOptional: false
|
|
30
|
-
},
|
|
31
|
-
tenantId: {
|
|
32
|
-
type: ScalarTypeEnum.ID(),
|
|
33
|
-
isOptional: false
|
|
34
|
-
},
|
|
35
|
-
spaceKey: {
|
|
36
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
37
|
-
isOptional: false
|
|
38
|
-
},
|
|
39
|
-
spaceVersion: {
|
|
40
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
41
|
-
isOptional: false
|
|
42
|
-
},
|
|
43
|
-
label: {
|
|
44
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
45
|
-
isOptional: false
|
|
46
|
-
},
|
|
47
|
-
sourceType: {
|
|
48
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
49
|
-
isOptional: false
|
|
50
|
-
},
|
|
51
|
-
syncSchedule: {
|
|
52
|
-
type: KnowledgeSyncSchedule,
|
|
53
|
-
isOptional: true
|
|
54
|
-
},
|
|
55
|
-
lastSyncStatus: {
|
|
56
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
57
|
-
isOptional: true
|
|
58
|
-
},
|
|
59
|
-
lastSyncAt: {
|
|
60
|
-
type: ScalarTypeEnum.DateTime(),
|
|
61
|
-
isOptional: true
|
|
62
|
-
},
|
|
63
|
-
itemsProcessed: {
|
|
64
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
65
|
-
isOptional: true
|
|
66
|
-
},
|
|
67
|
-
createdAt: {
|
|
68
|
-
type: ScalarTypeEnum.DateTime(),
|
|
69
|
-
isOptional: true
|
|
70
|
-
},
|
|
71
|
-
updatedAt: {
|
|
72
|
-
type: ScalarTypeEnum.DateTime(),
|
|
73
|
-
isOptional: true
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
const CreateKnowledgeSourceInput = new SchemaModel({
|
|
78
|
-
name: "CreateKnowledgeSourceInput",
|
|
79
|
-
fields: {
|
|
80
|
-
tenantId: {
|
|
81
|
-
type: ScalarTypeEnum.ID(),
|
|
82
|
-
isOptional: false
|
|
83
|
-
},
|
|
84
|
-
spaceKey: {
|
|
85
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
86
|
-
isOptional: false
|
|
87
|
-
},
|
|
88
|
-
spaceVersion: {
|
|
89
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
90
|
-
isOptional: false
|
|
91
|
-
},
|
|
92
|
-
label: {
|
|
93
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
94
|
-
isOptional: false
|
|
95
|
-
},
|
|
96
|
-
sourceType: {
|
|
97
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
98
|
-
isOptional: false
|
|
99
|
-
},
|
|
100
|
-
config: {
|
|
101
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
102
|
-
isOptional: false
|
|
103
|
-
},
|
|
104
|
-
syncSchedule: {
|
|
105
|
-
type: KnowledgeSyncSchedule,
|
|
106
|
-
isOptional: true
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
const UpdateKnowledgeSourceInput = new SchemaModel({
|
|
111
|
-
name: "UpdateKnowledgeSourceInput",
|
|
112
|
-
fields: {
|
|
113
|
-
sourceId: {
|
|
114
|
-
type: ScalarTypeEnum.ID(),
|
|
115
|
-
isOptional: false
|
|
116
|
-
},
|
|
117
|
-
label: {
|
|
118
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
119
|
-
isOptional: true
|
|
120
|
-
},
|
|
121
|
-
config: {
|
|
122
|
-
type: ScalarTypeEnum.JSONObject(),
|
|
123
|
-
isOptional: true
|
|
124
|
-
},
|
|
125
|
-
syncSchedule: {
|
|
126
|
-
type: KnowledgeSyncSchedule,
|
|
127
|
-
isOptional: true
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
const DeleteKnowledgeSourceInput = new SchemaModel({
|
|
132
|
-
name: "DeleteKnowledgeSourceInput",
|
|
133
|
-
fields: { sourceId: {
|
|
134
|
-
type: ScalarTypeEnum.ID(),
|
|
135
|
-
isOptional: false
|
|
136
|
-
} }
|
|
137
|
-
});
|
|
138
|
-
const DeleteKnowledgeSourceOutput = new SchemaModel({
|
|
139
|
-
name: "DeleteKnowledgeSourceOutput",
|
|
140
|
-
fields: { success: {
|
|
141
|
-
type: ScalarTypeEnum.Boolean(),
|
|
142
|
-
isOptional: false
|
|
143
|
-
} }
|
|
144
|
-
});
|
|
145
|
-
const ListKnowledgeSourcesInput = new SchemaModel({
|
|
146
|
-
name: "ListKnowledgeSourcesInput",
|
|
147
|
-
fields: {
|
|
148
|
-
tenantId: {
|
|
149
|
-
type: ScalarTypeEnum.ID(),
|
|
150
|
-
isOptional: false
|
|
151
|
-
},
|
|
152
|
-
spaceKey: {
|
|
153
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
154
|
-
isOptional: true
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
const ListKnowledgeSourcesOutput = new SchemaModel({
|
|
159
|
-
name: "ListKnowledgeSourcesOutput",
|
|
160
|
-
fields: { sources: {
|
|
161
|
-
type: KnowledgeSourceRecord,
|
|
162
|
-
isOptional: false,
|
|
163
|
-
isArray: true
|
|
164
|
-
} }
|
|
165
|
-
});
|
|
166
|
-
const TriggerKnowledgeSyncInput = new SchemaModel({
|
|
167
|
-
name: "TriggerKnowledgeSyncInput",
|
|
168
|
-
fields: { sourceId: {
|
|
169
|
-
type: ScalarTypeEnum.ID(),
|
|
170
|
-
isOptional: false
|
|
171
|
-
} }
|
|
172
|
-
});
|
|
173
|
-
const TriggerKnowledgeSyncOutput = new SchemaModel({
|
|
174
|
-
name: "TriggerKnowledgeSyncOutput",
|
|
175
|
-
fields: {
|
|
176
|
-
success: {
|
|
177
|
-
type: ScalarTypeEnum.Boolean(),
|
|
178
|
-
isOptional: false
|
|
179
|
-
},
|
|
180
|
-
itemsProcessed: {
|
|
181
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
182
|
-
isOptional: true
|
|
183
|
-
},
|
|
184
|
-
error: {
|
|
185
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
186
|
-
isOptional: true
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
const CreateKnowledgeSource = defineCommand({
|
|
191
|
-
meta: {
|
|
192
|
-
name: "knowledge.source.create",
|
|
193
|
-
version: 1,
|
|
194
|
-
description: "Create a knowledge source binding for a tenant.",
|
|
195
|
-
goal: "Onboard a new knowledge ingestion source such as Notion or uploads.",
|
|
196
|
-
context: "Used by Ops and App Studio to configure knowledge ingestion per tenant and space.",
|
|
197
|
-
owners: ["platform.knowledge"],
|
|
198
|
-
tags: ["knowledge", "sources"],
|
|
199
|
-
stability: "experimental"
|
|
200
|
-
},
|
|
201
|
-
io: {
|
|
202
|
-
input: CreateKnowledgeSourceInput,
|
|
203
|
-
output: KnowledgeSourceRecord
|
|
204
|
-
},
|
|
205
|
-
policy: {
|
|
206
|
-
auth: "admin",
|
|
207
|
-
policies: [{
|
|
208
|
-
name: "platform.knowledge.manage",
|
|
209
|
-
version: 1
|
|
210
|
-
}]
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
const UpdateKnowledgeSource = defineCommand({
|
|
214
|
-
meta: {
|
|
215
|
-
name: "knowledge.source.update",
|
|
216
|
-
version: 1,
|
|
217
|
-
description: "Update metadata or configuration for a knowledge source.",
|
|
218
|
-
goal: "Allow rotation of credentials, sync schedules, and labels.",
|
|
219
|
-
context: "Supports editing how a tenant ingests knowledge (e.g., toggling sync cadence).",
|
|
220
|
-
owners: ["platform.knowledge"],
|
|
221
|
-
tags: ["knowledge", "sources"],
|
|
222
|
-
stability: "experimental"
|
|
223
|
-
},
|
|
224
|
-
io: {
|
|
225
|
-
input: UpdateKnowledgeSourceInput,
|
|
226
|
-
output: KnowledgeSourceRecord
|
|
227
|
-
},
|
|
228
|
-
policy: {
|
|
229
|
-
auth: "admin",
|
|
230
|
-
policies: [{
|
|
231
|
-
name: "platform.knowledge.manage",
|
|
232
|
-
version: 1
|
|
233
|
-
}]
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
const DeleteKnowledgeSource = defineCommand({
|
|
237
|
-
meta: {
|
|
238
|
-
name: "knowledge.source.delete",
|
|
239
|
-
version: 1,
|
|
240
|
-
description: "Delete a knowledge source binding for a tenant.",
|
|
241
|
-
goal: "Remove obsolete or compromised knowledge ingestion paths.",
|
|
242
|
-
context: "Ensures ephemeral or external sources can be removed cleanly without leaving residual bindings.",
|
|
243
|
-
owners: ["platform.knowledge"],
|
|
244
|
-
tags: ["knowledge", "sources"],
|
|
245
|
-
stability: "experimental"
|
|
246
|
-
},
|
|
247
|
-
io: {
|
|
248
|
-
input: DeleteKnowledgeSourceInput,
|
|
249
|
-
output: DeleteKnowledgeSourceOutput
|
|
250
|
-
},
|
|
251
|
-
policy: {
|
|
252
|
-
auth: "admin",
|
|
253
|
-
policies: [{
|
|
254
|
-
name: "platform.knowledge.manage",
|
|
255
|
-
version: 1
|
|
256
|
-
}]
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
const ListKnowledgeSources = defineQuery({
|
|
260
|
-
meta: {
|
|
261
|
-
name: "knowledge.source.list",
|
|
262
|
-
version: 1,
|
|
263
|
-
description: "List knowledge sources configured for a tenant.",
|
|
264
|
-
goal: "Provide visibility into knowledge ingest configuration and schedules.",
|
|
265
|
-
context: "Used by App Studio and Ops flows to surface knowledge sources and their health.",
|
|
266
|
-
owners: ["platform.knowledge"],
|
|
267
|
-
tags: ["knowledge", "sources"],
|
|
268
|
-
stability: "experimental"
|
|
269
|
-
},
|
|
270
|
-
io: {
|
|
271
|
-
input: ListKnowledgeSourcesInput,
|
|
272
|
-
output: ListKnowledgeSourcesOutput
|
|
273
|
-
},
|
|
274
|
-
policy: {
|
|
275
|
-
auth: "admin",
|
|
276
|
-
policies: [{
|
|
277
|
-
name: "platform.knowledge.read",
|
|
278
|
-
version: 1
|
|
279
|
-
}]
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
const TriggerKnowledgeSourceSync = defineCommand({
|
|
283
|
-
meta: {
|
|
284
|
-
name: "knowledge.source.triggerSync",
|
|
285
|
-
version: 1,
|
|
286
|
-
description: "Trigger an immediate sync for a knowledge source.",
|
|
287
|
-
goal: "Support manual or automated sync retries for knowledge ingestion.",
|
|
288
|
-
context: "Invoked by Ops tooling or monitors when knowledge content must be refreshed or reprocessed.",
|
|
289
|
-
owners: ["platform.knowledge"],
|
|
290
|
-
tags: ["knowledge", "sources"],
|
|
291
|
-
stability: "experimental"
|
|
292
|
-
},
|
|
293
|
-
io: {
|
|
294
|
-
input: TriggerKnowledgeSyncInput,
|
|
295
|
-
output: TriggerKnowledgeSyncOutput
|
|
296
|
-
},
|
|
297
|
-
policy: {
|
|
298
|
-
auth: "admin",
|
|
299
|
-
policies: [{
|
|
300
|
-
name: "platform.knowledge.manage",
|
|
301
|
-
version: 1
|
|
302
|
-
}]
|
|
303
|
-
}
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
//#endregion
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region ../contracts/dist/knowledge/spaces/email-threads.js
|
|
4
|
-
const emailThreadsKnowledgeSpace = {
|
|
5
|
-
meta: {
|
|
6
|
-
key: "knowledge.email-threads",
|
|
7
|
-
version: 1,
|
|
8
|
-
category: "operational",
|
|
9
|
-
displayName: "Email Threads",
|
|
10
|
-
title: "Operational Email Threads",
|
|
11
|
-
description: "Indexed copies of operational email threads used for support, onboarding, and workflows.",
|
|
12
|
-
domain: "operations",
|
|
13
|
-
owners: ["platform.operations"],
|
|
14
|
-
tags: ["email", "operations"],
|
|
15
|
-
stability: StabilityEnum.Beta
|
|
16
|
-
},
|
|
17
|
-
retention: { ttlDays: 365 },
|
|
18
|
-
access: {
|
|
19
|
-
policy: {
|
|
20
|
-
name: "knowledge.access.email-threads",
|
|
21
|
-
version: 1
|
|
22
|
-
},
|
|
23
|
-
trustLevel: "medium",
|
|
24
|
-
automationWritable: true
|
|
25
|
-
},
|
|
26
|
-
indexing: {
|
|
27
|
-
embeddingModel: "mistral-embed",
|
|
28
|
-
chunkSize: 600,
|
|
29
|
-
vectorDbIntegration: "vectordb.qdrant"
|
|
30
|
-
},
|
|
31
|
-
description: "Operational email threads synchronized from Gmail to support automations and contextual assistance."
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
//#endregion
|