@contractspec/lib.contracts 1.56.1 → 1.57.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/_virtual/{rolldown_runtime.js → _rolldown/runtime.js} +3 -3
- package/dist/app-config/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/app-config/runtime.js +3 -3
- package/dist/app-config/validation.js +3 -3
- package/dist/capabilities/capabilities.js +20 -20
- package/dist/capabilities/context.d.ts +0 -1
- package/dist/capabilities/context.js +1 -1
- package/dist/capabilities/guards.d.ts +0 -1
- package/dist/capabilities/index.d.ts +2 -1
- package/dist/capabilities/index.js +2 -1
- package/dist/capabilities/meeting-recorder.d.ts +10 -0
- package/dist/capabilities/meeting-recorder.js +82 -0
- package/dist/capabilities/validation.d.ts +0 -1
- package/dist/client/react/drivers/rn-reusables.d.ts +0 -1
- package/dist/client/react/drivers/shadcn.d.ts +0 -1
- package/dist/client/react/form-render.js +3 -3
- package/dist/contract-registry/schemas.d.ts +2 -2
- package/dist/data-views/registry.d.ts +0 -1
- package/dist/data-views/spec.d.ts +0 -1
- package/dist/docs/commands/docsPublish.command.d.ts +13 -13
- package/dist/docs/contracts.d.ts +103 -103
- package/dist/docs/events/docsGenerated.event.d.ts +13 -13
- package/dist/docs/events/docsPublished.event.d.ts +15 -15
- package/dist/docs/forms/docsSearch.form.d.ts +4 -4
- package/dist/docs/queries/contractReference.query.d.ts +47 -47
- package/dist/docs/queries/docsIndex.query.d.ts +57 -57
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +0 -1
- package/dist/docs/tech/mcp-endpoints.docblock.js +5 -0
- package/dist/events.d.ts +0 -1
- package/dist/examples/index.d.ts +0 -1
- package/dist/examples/registry.d.ts +0 -1
- package/dist/examples/schema.d.ts +17 -17
- package/dist/experiments/spec.d.ts +2 -4
- package/dist/features/index.d.ts +0 -1
- package/dist/features/types.d.ts +2 -5
- package/dist/forms/forms.d.ts +1 -2
- package/dist/forms/forms.js +1 -2
- package/dist/index.d.ts +42 -1
- package/dist/index.js +36 -1
- package/dist/install.d.ts +2 -5
- package/dist/integrations/docs/integrations.docblock.js +19 -1
- package/dist/integrations/index.d.ts +26 -1
- package/dist/integrations/index.js +20 -1
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +10 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +12 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +458 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +149 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +173 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +156 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +92 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +82 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +7 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +21 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +11 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +67 -0
- package/dist/integrations/meeting-recorder/models.d.ts +407 -0
- package/dist/integrations/meeting-recorder/models.js +295 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +16 -0
- package/dist/integrations/meeting-recorder/telemetry.js +42 -0
- 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/integrations/providers/analytics-reader.d.ts +107 -0
- package/dist/integrations/providers/analytics-reader.js +0 -0
- package/dist/integrations/providers/analytics-writer.d.ts +10 -0
- package/dist/integrations/providers/analytics-writer.js +0 -0
- package/dist/integrations/providers/analytics.d.ts +49 -0
- package/dist/integrations/providers/analytics.js +0 -0
- package/dist/integrations/providers/database.d.ts +15 -0
- package/dist/integrations/providers/database.js +0 -0
- package/dist/integrations/providers/fal.d.ts +8 -0
- package/dist/integrations/providers/fal.js +94 -0
- package/dist/integrations/providers/fathom.d.ts +8 -0
- package/dist/integrations/providers/fathom.js +114 -0
- package/dist/integrations/providers/fireflies.d.ts +8 -0
- package/dist/integrations/providers/fireflies.js +98 -0
- package/dist/integrations/providers/gradium.d.ts +8 -0
- package/dist/integrations/providers/gradium.js +92 -0
- package/dist/integrations/providers/granola.d.ts +8 -0
- package/dist/integrations/providers/granola.js +71 -0
- package/dist/integrations/providers/index.d.ts +19 -1
- package/dist/integrations/providers/index.js +13 -1
- package/dist/integrations/providers/jira.d.ts +8 -0
- package/dist/integrations/providers/jira.js +90 -0
- package/dist/integrations/providers/linear.d.ts +8 -0
- package/dist/integrations/providers/linear.js +85 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +132 -0
- package/dist/integrations/providers/meeting-recorder.js +0 -0
- package/dist/integrations/providers/notion.d.ts +8 -0
- package/dist/integrations/providers/notion.js +91 -0
- package/dist/integrations/providers/posthog.d.ts +8 -0
- package/dist/integrations/providers/posthog.js +107 -0
- package/dist/integrations/providers/project-management.d.ts +35 -0
- package/dist/integrations/providers/project-management.js +0 -0
- package/dist/integrations/providers/registry.d.ts +0 -1
- package/dist/integrations/providers/registry.js +24 -0
- package/dist/integrations/providers/supabase-postgres.d.ts +8 -0
- package/dist/integrations/providers/supabase-postgres.js +73 -0
- package/dist/integrations/providers/supabase-vector.d.ts +8 -0
- package/dist/integrations/providers/supabase-vector.js +93 -0
- package/dist/integrations/providers/tldv.d.ts +8 -0
- package/dist/integrations/providers/tldv.js +98 -0
- package/dist/integrations/runtime.js +0 -1
- package/dist/integrations/spec.d.ts +1 -1
- package/dist/jobs/queue.d.ts +0 -1
- package/dist/knowledge/binding.d.ts +1 -3
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/llm/exporters.d.ts +0 -1
- package/dist/llm/exporters.js +0 -1
- package/dist/llm/prompts.d.ts +0 -1
- package/dist/llm/types.d.ts +0 -1
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/openapi.d.ts +0 -1
- package/dist/operations/operation.d.ts +19 -43
- package/dist/operations/registry.d.ts +0 -1
- package/dist/operations/registry.js +2 -2
- package/dist/operations/report/getContractVerificationStatus.d.ts +10 -10
- package/dist/ownership.d.ts +41 -88
- package/dist/policy/guards.d.ts +0 -1
- package/dist/policy/guards.js +3 -3
- package/dist/policy/index.d.ts +0 -1
- package/dist/policy/validation.d.ts +0 -1
- package/dist/product-intent/contract-patch-intent.d.ts +103 -0
- package/dist/product-intent/contract-patch-intent.js +33 -0
- package/dist/product-intent/contract-spec-patch.d.ts +89 -0
- package/dist/product-intent/contract-spec-patch.js +27 -0
- package/dist/product-intent/evidence.d.ts +17 -0
- package/dist/product-intent/evidence.js +13 -0
- package/dist/product-intent/findings.d.ts +60 -0
- package/dist/product-intent/findings.js +17 -0
- package/dist/product-intent/impact-report.d.ts +60 -0
- package/dist/product-intent/impact-report.js +27 -0
- package/dist/product-intent/index.d.ts +16 -0
- package/dist/product-intent/index.js +17 -0
- package/dist/product-intent/insights.d.ts +65 -0
- package/dist/product-intent/insights.js +23 -0
- package/dist/product-intent/opportunity-brief.d.ts +195 -0
- package/dist/product-intent/opportunity-brief.js +42 -0
- package/dist/product-intent/problems.d.ts +62 -0
- package/dist/product-intent/problems.js +22 -0
- package/dist/product-intent/registry.d.ts +32 -0
- package/dist/product-intent/registry.js +49 -0
- package/dist/product-intent/runtime.d.ts +103 -0
- package/dist/product-intent/runtime.js +101 -0
- package/dist/product-intent/spec.d.ts +676 -0
- package/dist/product-intent/spec.js +53 -0
- package/dist/product-intent/task-pack.d.ts +101 -0
- package/dist/product-intent/task-pack.js +34 -0
- package/dist/product-intent/tickets.d.ts +70 -0
- package/dist/product-intent/tickets.js +24 -0
- package/dist/product-intent/types.d.ts +12 -0
- package/dist/product-intent/types.js +13 -0
- package/dist/product-intent/ui-wireframe.d.ts +103 -0
- package/dist/product-intent/ui-wireframe.js +33 -0
- package/dist/registry-utils.d.ts +0 -1
- package/dist/registry-utils.js +3 -3
- package/dist/resources.js +1 -1
- package/dist/schema-to-markdown.d.ts +0 -1
- package/dist/server/contracts-adapter-input.js +2 -2
- package/dist/server/graphql-pothos.d.ts +0 -1
- package/dist/server/mcp/createMcpServer.d.ts +0 -1
- package/dist/server/rest-express.d.ts +0 -1
- package/dist/server/rest-generic.js +3 -3
- package/dist/server/rest-next-app.d.ts +0 -1
- package/dist/tests/spec.d.ts +0 -1
- package/dist/translations/registry.d.ts +0 -1
- package/dist/translations/spec.d.ts +0 -1
- package/dist/translations/validation.d.ts +0 -1
- package/dist/types.d.ts +5 -12
- package/dist/versioning/types.d.ts +0 -1
- package/dist/versioning/utils.d.ts +0 -1
- package/dist/workflow/adapters/memory-store.d.ts +0 -1
- package/dist/workflow/context.d.ts +0 -1
- package/dist/workflow/context.js +2 -2
- package/dist/workflow/runner.d.ts +1 -2
- package/dist/workspace-config/contractsrc-schema.d.ts +0 -1
- package/dist/workspace-config/contractsrc-types.d.ts +1 -3
- package/package.json +110 -32
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +0 -20
- package/dist/integrations/providers/impls/elevenlabs-voice.js +0 -95
- package/dist/integrations/providers/impls/gcs-storage.d.ts +0 -24
- package/dist/integrations/providers/impls/gcs-storage.js +0 -88
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +0 -26
- package/dist/integrations/providers/impls/gmail-inbound.js +0 -200
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +0 -18
- package/dist/integrations/providers/impls/gmail-outbound.js +0 -105
- package/dist/integrations/providers/impls/google-calendar.d.ts +0 -23
- package/dist/integrations/providers/impls/google-calendar.js +0 -154
- package/dist/integrations/providers/impls/index.d.ts +0 -15
- package/dist/integrations/providers/impls/index.js +0 -16
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +0 -23
- package/dist/integrations/providers/impls/mistral-embedding.js +0 -41
- package/dist/integrations/providers/impls/mistral-llm.d.ts +0 -31
- package/dist/integrations/providers/impls/mistral-llm.js +0 -247
- package/dist/integrations/providers/impls/postmark-email.d.ts +0 -19
- package/dist/integrations/providers/impls/postmark-email.js +0 -55
- package/dist/integrations/providers/impls/powens-client.d.ts +0 -124
- package/dist/integrations/providers/impls/powens-client.js +0 -171
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +0 -27
- package/dist/integrations/providers/impls/powens-openbanking.js +0 -218
- package/dist/integrations/providers/impls/provider-factory.d.ts +0 -26
- package/dist/integrations/providers/impls/provider-factory.js +0 -146
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +0 -24
- package/dist/integrations/providers/impls/qdrant-vector.js +0 -69
- package/dist/integrations/providers/impls/stripe-payments.d.ts +0 -28
- package/dist/integrations/providers/impls/stripe-payments.js +0 -202
- package/dist/integrations/providers/impls/twilio-sms.d.ts +0 -20
- package/dist/integrations/providers/impls/twilio-sms.js +0 -58
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StateStore, WorkflowState, WorkflowStateFilters } from "../state.js";
|
|
2
2
|
|
|
3
3
|
//#region src/workflow/adapters/memory-store.d.ts
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Naive in-memory state store. Suitable for tests and single-node development
|
|
7
6
|
* environments. Swap with a database-backed adapter in production.
|
package/dist/workflow/context.js
CHANGED
|
@@ -79,8 +79,8 @@ var WorkflowContextImpl = class {
|
|
|
79
79
|
const now = Date.now();
|
|
80
80
|
if (slaKey === "totalDuration") {
|
|
81
81
|
if (!sla.totalDurationMs) return null;
|
|
82
|
-
const elapsed
|
|
83
|
-
return Math.max(0, sla.totalDurationMs - elapsed
|
|
82
|
+
const elapsed = now - this.state.createdAt.getTime();
|
|
83
|
+
return Math.max(0, sla.totalDurationMs - elapsed);
|
|
84
84
|
}
|
|
85
85
|
const stepLimit = sla.stepDurationMs?.[slaKey];
|
|
86
86
|
if (!stepLimit) return null;
|
|
@@ -53,8 +53,7 @@ interface WorkflowRunnerConfig {
|
|
|
53
53
|
declare class WorkflowRunner {
|
|
54
54
|
private readonly config;
|
|
55
55
|
constructor(config: WorkflowRunnerConfig);
|
|
56
|
-
preFlightCheck(workflowName: string, version?: string,
|
|
57
|
-
// Update to string
|
|
56
|
+
preFlightCheck(workflowName: string, version?: string, // Update to string
|
|
58
57
|
resolvedConfig?: ResolvedAppConfig): Promise<WorkflowPreFlightResult>;
|
|
59
58
|
start(workflowName: string, version?: string, initialData?: Record<string, unknown>): Promise<string>;
|
|
60
59
|
executeStep(workflowId: string, input?: unknown): Promise<void>;
|
|
@@ -2,7 +2,6 @@ import { AgentMode, AgentProvider, BumpStrategy, ChangelogFormat, ChangelogTier,
|
|
|
2
2
|
import * as z$2 from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/workspace-config/contractsrc-schema.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Schema output format for code generation.
|
|
8
7
|
* Controls how imported/generated schemas are written.
|
|
@@ -270,9 +270,7 @@ interface TestingConfig {
|
|
|
270
270
|
autoGenerate?: boolean;
|
|
271
271
|
/** Integrity requirements for testing */
|
|
272
272
|
integrity?: {
|
|
273
|
-
/** Spec types that require test coverage */
|
|
274
|
-
requireTestsFor?: SpecKind[];
|
|
275
|
-
/** Minimum coverage percentage (if supported) */
|
|
273
|
+
/** Spec types that require test coverage */requireTestsFor?: SpecKind[]; /** Minimum coverage percentage (if supported) */
|
|
276
274
|
minCoverage?: number;
|
|
277
275
|
};
|
|
278
276
|
/** Test linking configuration for contract-first test discovery */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"description": "Core contract specification definitions and runtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -25,44 +25,47 @@
|
|
|
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.57.0",
|
|
29
|
+
"@contractspec/tool.typescript": "1.57.0",
|
|
30
30
|
"@types/express": "^5.0.3",
|
|
31
31
|
"@types/turndown": "^5.0.6",
|
|
32
|
-
"tsdown": "^0.
|
|
32
|
+
"tsdown": "^0.20.3",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
34
|
"vitest": "^4.0.18"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
38
|
-
"@aws-sdk/client-sqs": "^3.
|
|
39
|
-
"@contractspec/lib.logger": "1.
|
|
40
|
-
"@contractspec/lib.schema": "1.
|
|
41
|
-
"@elevenlabs/elevenlabs-js": "^2.
|
|
37
|
+
"@aws-sdk/client-secrets-manager": "^3.984.0",
|
|
38
|
+
"@aws-sdk/client-sqs": "^3.984.0",
|
|
39
|
+
"@contractspec/lib.logger": "1.57.0",
|
|
40
|
+
"@contractspec/lib.schema": "1.57.0",
|
|
41
|
+
"@elevenlabs/elevenlabs-js": "^2.34.0",
|
|
42
42
|
"@google-cloud/secret-manager": "^6.1.1",
|
|
43
|
-
"@google-cloud/storage": "^7.
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
43
|
+
"@google-cloud/storage": "^7.19.0",
|
|
44
|
+
"@linear/sdk": "^73.0.0",
|
|
45
|
+
"@mistralai/mistralai": "^1.14.0",
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
47
|
+
"@notionhq/client": "^5.9.0",
|
|
46
48
|
"@pothos/core": "^4.9.1",
|
|
47
49
|
"@pothos/plugin-complexity": "^4.1.2",
|
|
48
50
|
"@pothos/plugin-dataloader": "^4.4.2",
|
|
49
51
|
"@pothos/plugin-prisma": "^4.14.0",
|
|
50
|
-
"@pothos/plugin-relay": "^4.
|
|
52
|
+
"@pothos/plugin-relay": "^4.7.0",
|
|
51
53
|
"@pothos/plugin-tracing": "^1.1.2",
|
|
52
54
|
"@qdrant/js-client-rest": "^1.16.2",
|
|
53
55
|
"compare-versions": "^6.1.1",
|
|
56
|
+
"fathom-typescript": "^0.0.37",
|
|
54
57
|
"google-gax": "^5.0.6",
|
|
55
|
-
"googleapis": "^
|
|
58
|
+
"googleapis": "^171.4.0",
|
|
56
59
|
"mcp-handler": "^1.0.7",
|
|
57
60
|
"postmark": "^4.0.5",
|
|
58
|
-
"stripe": "^20.1
|
|
61
|
+
"stripe": "^20.3.1",
|
|
59
62
|
"turndown": "^7.2.2",
|
|
60
|
-
"twilio": "^5.
|
|
63
|
+
"twilio": "^5.12.1",
|
|
61
64
|
"zod": "^4.3.5"
|
|
62
65
|
},
|
|
63
66
|
"peerDependencies": {
|
|
64
67
|
"@pothos/core": "^4.9.1",
|
|
65
|
-
"@pothos/plugin-relay": "^4.
|
|
68
|
+
"@pothos/plugin-relay": "^4.7.0",
|
|
66
69
|
"elysia": "^1.4.21",
|
|
67
70
|
"express": "^5.2.1",
|
|
68
71
|
"graphql-scalars": "^1.24.2",
|
|
@@ -99,6 +102,7 @@
|
|
|
99
102
|
"./capabilities/context": "./dist/capabilities/context.js",
|
|
100
103
|
"./capabilities/docs/capabilities.docblock": "./dist/capabilities/docs/capabilities.docblock.js",
|
|
101
104
|
"./capabilities/guards": "./dist/capabilities/guards.js",
|
|
105
|
+
"./capabilities/meeting-recorder": "./dist/capabilities/meeting-recorder.js",
|
|
102
106
|
"./capabilities/openbanking": "./dist/capabilities/openbanking.js",
|
|
103
107
|
"./capabilities/validation": "./dist/capabilities/validation.js",
|
|
104
108
|
"./client": "./dist/client/index.js",
|
|
@@ -204,6 +208,14 @@
|
|
|
204
208
|
"./integrations/health": "./dist/integrations/health.js",
|
|
205
209
|
"./integrations/integrations.capability": "./dist/integrations/integrations.capability.js",
|
|
206
210
|
"./integrations/integrations.feature": "./dist/integrations/integrations.feature.js",
|
|
211
|
+
"./integrations/meeting-recorder/contracts": "./dist/integrations/meeting-recorder/contracts/index.js",
|
|
212
|
+
"./integrations/meeting-recorder/contracts/meetings": "./dist/integrations/meeting-recorder/contracts/meetings.js",
|
|
213
|
+
"./integrations/meeting-recorder/contracts/transcripts": "./dist/integrations/meeting-recorder/contracts/transcripts.js",
|
|
214
|
+
"./integrations/meeting-recorder/contracts/webhooks": "./dist/integrations/meeting-recorder/contracts/webhooks.js",
|
|
215
|
+
"./integrations/meeting-recorder/meeting-recorder.capability": "./dist/integrations/meeting-recorder/meeting-recorder.capability.js",
|
|
216
|
+
"./integrations/meeting-recorder/meeting-recorder.feature": "./dist/integrations/meeting-recorder/meeting-recorder.feature.js",
|
|
217
|
+
"./integrations/meeting-recorder/models": "./dist/integrations/meeting-recorder/models.js",
|
|
218
|
+
"./integrations/meeting-recorder/telemetry": "./dist/integrations/meeting-recorder/telemetry.js",
|
|
207
219
|
"./integrations/openbanking/contracts": "./dist/integrations/openbanking/contracts/index.js",
|
|
208
220
|
"./integrations/openbanking/contracts/accounts": "./dist/integrations/openbanking/contracts/accounts.js",
|
|
209
221
|
"./integrations/openbanking/contracts/balances": "./dist/integrations/openbanking/contracts/balances.js",
|
|
@@ -215,39 +227,42 @@
|
|
|
215
227
|
"./integrations/openbanking/telemetry": "./dist/integrations/openbanking/telemetry.js",
|
|
216
228
|
"./integrations/operations": "./dist/integrations/operations.js",
|
|
217
229
|
"./integrations/providers": "./dist/integrations/providers/index.js",
|
|
230
|
+
"./integrations/providers/analytics": "./dist/integrations/providers/analytics.js",
|
|
231
|
+
"./integrations/providers/analytics-reader": "./dist/integrations/providers/analytics-reader.js",
|
|
232
|
+
"./integrations/providers/analytics-writer": "./dist/integrations/providers/analytics-writer.js",
|
|
218
233
|
"./integrations/providers/calendar": "./dist/integrations/providers/calendar.js",
|
|
234
|
+
"./integrations/providers/database": "./dist/integrations/providers/database.js",
|
|
219
235
|
"./integrations/providers/elevenlabs": "./dist/integrations/providers/elevenlabs.js",
|
|
220
236
|
"./integrations/providers/email": "./dist/integrations/providers/email.js",
|
|
221
237
|
"./integrations/providers/embedding": "./dist/integrations/providers/embedding.js",
|
|
238
|
+
"./integrations/providers/fal": "./dist/integrations/providers/fal.js",
|
|
239
|
+
"./integrations/providers/fathom": "./dist/integrations/providers/fathom.js",
|
|
240
|
+
"./integrations/providers/fireflies": "./dist/integrations/providers/fireflies.js",
|
|
222
241
|
"./integrations/providers/gcs-storage": "./dist/integrations/providers/gcs-storage.js",
|
|
223
242
|
"./integrations/providers/gmail": "./dist/integrations/providers/gmail.js",
|
|
224
243
|
"./integrations/providers/google-calendar": "./dist/integrations/providers/google-calendar.js",
|
|
225
|
-
"./integrations/providers/
|
|
226
|
-
"./integrations/providers/
|
|
227
|
-
"./integrations/providers/
|
|
228
|
-
"./integrations/providers/
|
|
229
|
-
"./integrations/providers/impls/gmail-outbound": "./dist/integrations/providers/impls/gmail-outbound.js",
|
|
230
|
-
"./integrations/providers/impls/google-calendar": "./dist/integrations/providers/impls/google-calendar.js",
|
|
231
|
-
"./integrations/providers/impls/mistral-embedding": "./dist/integrations/providers/impls/mistral-embedding.js",
|
|
232
|
-
"./integrations/providers/impls/mistral-llm": "./dist/integrations/providers/impls/mistral-llm.js",
|
|
233
|
-
"./integrations/providers/impls/postmark-email": "./dist/integrations/providers/impls/postmark-email.js",
|
|
234
|
-
"./integrations/providers/impls/powens-client": "./dist/integrations/providers/impls/powens-client.js",
|
|
235
|
-
"./integrations/providers/impls/powens-openbanking": "./dist/integrations/providers/impls/powens-openbanking.js",
|
|
236
|
-
"./integrations/providers/impls/provider-factory": "./dist/integrations/providers/impls/provider-factory.js",
|
|
237
|
-
"./integrations/providers/impls/qdrant-vector": "./dist/integrations/providers/impls/qdrant-vector.js",
|
|
238
|
-
"./integrations/providers/impls/stripe-payments": "./dist/integrations/providers/impls/stripe-payments.js",
|
|
239
|
-
"./integrations/providers/impls/twilio-sms": "./dist/integrations/providers/impls/twilio-sms.js",
|
|
244
|
+
"./integrations/providers/gradium": "./dist/integrations/providers/gradium.js",
|
|
245
|
+
"./integrations/providers/granola": "./dist/integrations/providers/granola.js",
|
|
246
|
+
"./integrations/providers/jira": "./dist/integrations/providers/jira.js",
|
|
247
|
+
"./integrations/providers/linear": "./dist/integrations/providers/linear.js",
|
|
240
248
|
"./integrations/providers/llm": "./dist/integrations/providers/llm.js",
|
|
249
|
+
"./integrations/providers/meeting-recorder": "./dist/integrations/providers/meeting-recorder.js",
|
|
241
250
|
"./integrations/providers/mistral": "./dist/integrations/providers/mistral.js",
|
|
251
|
+
"./integrations/providers/notion": "./dist/integrations/providers/notion.js",
|
|
242
252
|
"./integrations/providers/openbanking": "./dist/integrations/providers/openbanking.js",
|
|
243
253
|
"./integrations/providers/payments": "./dist/integrations/providers/payments.js",
|
|
254
|
+
"./integrations/providers/posthog": "./dist/integrations/providers/posthog.js",
|
|
244
255
|
"./integrations/providers/postmark": "./dist/integrations/providers/postmark.js",
|
|
245
256
|
"./integrations/providers/powens": "./dist/integrations/providers/powens.js",
|
|
257
|
+
"./integrations/providers/project-management": "./dist/integrations/providers/project-management.js",
|
|
246
258
|
"./integrations/providers/qdrant": "./dist/integrations/providers/qdrant.js",
|
|
247
259
|
"./integrations/providers/registry": "./dist/integrations/providers/registry.js",
|
|
248
260
|
"./integrations/providers/sms": "./dist/integrations/providers/sms.js",
|
|
249
261
|
"./integrations/providers/storage": "./dist/integrations/providers/storage.js",
|
|
250
262
|
"./integrations/providers/stripe": "./dist/integrations/providers/stripe.js",
|
|
263
|
+
"./integrations/providers/supabase-postgres": "./dist/integrations/providers/supabase-postgres.js",
|
|
264
|
+
"./integrations/providers/supabase-vector": "./dist/integrations/providers/supabase-vector.js",
|
|
265
|
+
"./integrations/providers/tldv": "./dist/integrations/providers/tldv.js",
|
|
251
266
|
"./integrations/providers/twilio-sms": "./dist/integrations/providers/twilio-sms.js",
|
|
252
267
|
"./integrations/providers/vector-store": "./dist/integrations/providers/vector-store.js",
|
|
253
268
|
"./integrations/providers/voice": "./dist/integrations/providers/voice.js",
|
|
@@ -326,6 +341,22 @@
|
|
|
326
341
|
"./presentations/presentations": "./dist/presentations/presentations.js",
|
|
327
342
|
"./presentations/registry": "./dist/presentations/registry.js",
|
|
328
343
|
"./presentations/transform-engine": "./dist/presentations/transform-engine.js",
|
|
344
|
+
"./product-intent": "./dist/product-intent/index.js",
|
|
345
|
+
"./product-intent/contract-patch-intent": "./dist/product-intent/contract-patch-intent.js",
|
|
346
|
+
"./product-intent/contract-spec-patch": "./dist/product-intent/contract-spec-patch.js",
|
|
347
|
+
"./product-intent/evidence": "./dist/product-intent/evidence.js",
|
|
348
|
+
"./product-intent/findings": "./dist/product-intent/findings.js",
|
|
349
|
+
"./product-intent/impact-report": "./dist/product-intent/impact-report.js",
|
|
350
|
+
"./product-intent/insights": "./dist/product-intent/insights.js",
|
|
351
|
+
"./product-intent/opportunity-brief": "./dist/product-intent/opportunity-brief.js",
|
|
352
|
+
"./product-intent/problems": "./dist/product-intent/problems.js",
|
|
353
|
+
"./product-intent/registry": "./dist/product-intent/registry.js",
|
|
354
|
+
"./product-intent/runtime": "./dist/product-intent/runtime.js",
|
|
355
|
+
"./product-intent/spec": "./dist/product-intent/spec.js",
|
|
356
|
+
"./product-intent/task-pack": "./dist/product-intent/task-pack.js",
|
|
357
|
+
"./product-intent/tickets": "./dist/product-intent/tickets.js",
|
|
358
|
+
"./product-intent/types": "./dist/product-intent/types.js",
|
|
359
|
+
"./product-intent/ui-wireframe": "./dist/product-intent/ui-wireframe.js",
|
|
329
360
|
"./prompt": "./dist/prompt.js",
|
|
330
361
|
"./promptRegistry": "./dist/promptRegistry.js",
|
|
331
362
|
"./regenerator": "./dist/regenerator/index.js",
|
|
@@ -417,6 +448,7 @@
|
|
|
417
448
|
"./capabilities": "./dist/capabilities.js",
|
|
418
449
|
"./capabilities/docs/capabilities.docblock": "./dist/capabilities/docs/capabilities.docblock.js",
|
|
419
450
|
"./capabilities/openbanking": "./dist/capabilities/openbanking.js",
|
|
451
|
+
"./capabilities/meeting-recorder": "./dist/capabilities/meeting-recorder.js",
|
|
420
452
|
"./client": "./dist/client/index.js",
|
|
421
453
|
"./client/react": "./dist/client/react/index.js",
|
|
422
454
|
"./client/react/drivers/rn-reusables": "./dist/client/react/drivers/rn-reusables.js",
|
|
@@ -497,20 +529,49 @@
|
|
|
497
529
|
"./integrations/openbanking/models": "./dist/integrations/openbanking/models.js",
|
|
498
530
|
"./integrations/openbanking/openbanking.feature": "./dist/integrations/openbanking/openbanking.feature.js",
|
|
499
531
|
"./integrations/openbanking/telemetry": "./dist/integrations/openbanking/telemetry.js",
|
|
532
|
+
"./integrations/meeting-recorder/contracts": "./dist/integrations/meeting-recorder/contracts/index.js",
|
|
533
|
+
"./integrations/meeting-recorder/contracts/meetings": "./dist/integrations/meeting-recorder/contracts/meetings.js",
|
|
534
|
+
"./integrations/meeting-recorder/contracts/transcripts": "./dist/integrations/meeting-recorder/contracts/transcripts.js",
|
|
535
|
+
"./integrations/meeting-recorder/contracts/webhooks": "./dist/integrations/meeting-recorder/contracts/webhooks.js",
|
|
536
|
+
"./integrations/meeting-recorder/models": "./dist/integrations/meeting-recorder/models.js",
|
|
537
|
+
"./integrations/meeting-recorder/meeting-recorder.feature": "./dist/integrations/meeting-recorder/meeting-recorder.feature.js",
|
|
538
|
+
"./integrations/meeting-recorder/meeting-recorder.capability": "./dist/integrations/meeting-recorder/meeting-recorder.capability.js",
|
|
539
|
+
"./integrations/meeting-recorder/telemetry": "./dist/integrations/meeting-recorder/telemetry.js",
|
|
500
540
|
"./integrations/providers": "./dist/integrations/providers/index.js",
|
|
541
|
+
"./integrations/providers/analytics": "./dist/integrations/providers/analytics.js",
|
|
542
|
+
"./integrations/providers/analytics-reader": "./dist/integrations/providers/analytics-reader.js",
|
|
543
|
+
"./integrations/providers/analytics-writer": "./dist/integrations/providers/analytics-writer.js",
|
|
501
544
|
"./integrations/providers/calendar": "./dist/integrations/providers/calendar.js",
|
|
545
|
+
"./integrations/providers/database": "./dist/integrations/providers/database.js",
|
|
502
546
|
"./integrations/providers/elevenlabs": "./dist/integrations/providers/elevenlabs.js",
|
|
503
547
|
"./integrations/providers/email": "./dist/integrations/providers/email.js",
|
|
504
548
|
"./integrations/providers/embedding": "./dist/integrations/providers/embedding.js",
|
|
549
|
+
"./integrations/providers/fal": "./dist/integrations/providers/fal.js",
|
|
505
550
|
"./integrations/providers/gcs-storage": "./dist/integrations/providers/gcs-storage.js",
|
|
506
551
|
"./integrations/providers/gmail": "./dist/integrations/providers/gmail.js",
|
|
507
552
|
"./integrations/providers/google-calendar": "./dist/integrations/providers/google-calendar.js",
|
|
553
|
+
"./integrations/providers/fireflies": "./dist/integrations/providers/fireflies.js",
|
|
554
|
+
"./integrations/providers/fathom": "./dist/integrations/providers/fathom.js",
|
|
555
|
+
"./integrations/providers/gradium": "./dist/integrations/providers/gradium.js",
|
|
556
|
+
"./integrations/providers/granola": "./dist/integrations/providers/granola.js",
|
|
557
|
+
"./integrations/providers/meeting-recorder": "./dist/integrations/providers/meeting-recorder.js",
|
|
558
|
+
"./integrations/providers/tldv": "./dist/integrations/providers/tldv.js",
|
|
559
|
+
"./integrations/providers/project-management": "./dist/integrations/providers/project-management.js",
|
|
560
|
+
"./integrations/providers/linear": "./dist/integrations/providers/linear.js",
|
|
561
|
+
"./integrations/providers/jira": "./dist/integrations/providers/jira.js",
|
|
562
|
+
"./integrations/providers/notion": "./dist/integrations/providers/notion.js",
|
|
508
563
|
"./integrations/providers/impls": "./dist/integrations/providers/impls/index.js",
|
|
509
564
|
"./integrations/providers/impls/elevenlabs-voice": "./dist/integrations/providers/impls/elevenlabs-voice.js",
|
|
565
|
+
"./integrations/providers/impls/fireflies-meeting-recorder": "./dist/integrations/providers/impls/fireflies-meeting-recorder.js",
|
|
566
|
+
"./integrations/providers/impls/fathom-meeting-recorder": "./dist/integrations/providers/impls/fathom-meeting-recorder.js",
|
|
510
567
|
"./integrations/providers/impls/gcs-storage": "./dist/integrations/providers/impls/gcs-storage.js",
|
|
511
568
|
"./integrations/providers/impls/gmail-inbound": "./dist/integrations/providers/impls/gmail-inbound.js",
|
|
512
569
|
"./integrations/providers/impls/gmail-outbound": "./dist/integrations/providers/impls/gmail-outbound.js",
|
|
513
570
|
"./integrations/providers/impls/google-calendar": "./dist/integrations/providers/impls/google-calendar.js",
|
|
571
|
+
"./integrations/providers/impls/granola-meeting-recorder": "./dist/integrations/providers/impls/granola-meeting-recorder.js",
|
|
572
|
+
"./integrations/providers/impls/linear": "./dist/integrations/providers/impls/linear.js",
|
|
573
|
+
"./integrations/providers/impls/jira": "./dist/integrations/providers/impls/jira.js",
|
|
574
|
+
"./integrations/providers/impls/notion": "./dist/integrations/providers/impls/notion.js",
|
|
514
575
|
"./integrations/providers/impls/mistral-embedding": "./dist/integrations/providers/impls/mistral-embedding.js",
|
|
515
576
|
"./integrations/providers/impls/mistral-llm": "./dist/integrations/providers/impls/mistral-llm.js",
|
|
516
577
|
"./integrations/providers/impls/postmark-email": "./dist/integrations/providers/impls/postmark-email.js",
|
|
@@ -519,17 +580,21 @@
|
|
|
519
580
|
"./integrations/providers/impls/provider-factory": "./dist/integrations/providers/impls/provider-factory.js",
|
|
520
581
|
"./integrations/providers/impls/qdrant-vector": "./dist/integrations/providers/impls/qdrant-vector.js",
|
|
521
582
|
"./integrations/providers/impls/stripe-payments": "./dist/integrations/providers/impls/stripe-payments.js",
|
|
583
|
+
"./integrations/providers/impls/tldv-meeting-recorder": "./dist/integrations/providers/impls/tldv-meeting-recorder.js",
|
|
522
584
|
"./integrations/providers/impls/twilio-sms": "./dist/integrations/providers/impls/twilio-sms.js",
|
|
523
585
|
"./integrations/providers/llm": "./dist/integrations/providers/llm.js",
|
|
524
586
|
"./integrations/providers/mistral": "./dist/integrations/providers/mistral.js",
|
|
525
587
|
"./integrations/providers/openbanking": "./dist/integrations/providers/openbanking.js",
|
|
526
588
|
"./integrations/providers/payments": "./dist/integrations/providers/payments.js",
|
|
527
589
|
"./integrations/providers/postmark": "./dist/integrations/providers/postmark.js",
|
|
590
|
+
"./integrations/providers/posthog": "./dist/integrations/providers/posthog.js",
|
|
528
591
|
"./integrations/providers/powens": "./dist/integrations/providers/powens.js",
|
|
529
592
|
"./integrations/providers/qdrant": "./dist/integrations/providers/qdrant.js",
|
|
530
593
|
"./integrations/providers/registry": "./dist/integrations/providers/registry.js",
|
|
531
594
|
"./integrations/providers/sms": "./dist/integrations/providers/sms.js",
|
|
532
595
|
"./integrations/providers/storage": "./dist/integrations/providers/storage.js",
|
|
596
|
+
"./integrations/providers/supabase-postgres": "./dist/integrations/providers/supabase-postgres.js",
|
|
597
|
+
"./integrations/providers/supabase-vector": "./dist/integrations/providers/supabase-vector.js",
|
|
533
598
|
"./integrations/providers/stripe": "./dist/integrations/providers/stripe.js",
|
|
534
599
|
"./integrations/providers/twilio-sms": "./dist/integrations/providers/twilio-sms.js",
|
|
535
600
|
"./integrations/providers/vector-store": "./dist/integrations/providers/vector-store.js",
|
|
@@ -595,6 +660,19 @@
|
|
|
595
660
|
"./presentations.backcompat": "./dist/presentations.backcompat.js",
|
|
596
661
|
"./presentations/presentation": "./dist/presentations/presentation.js",
|
|
597
662
|
"./presentations/docs/presentations-conventions.docblock": "./dist/presentations/docs/presentations-conventions.docblock.js",
|
|
663
|
+
"./product-intent": "./dist/product-intent/index.js",
|
|
664
|
+
"./product-intent/registry": "./dist/product-intent/registry.js",
|
|
665
|
+
"./product-intent/runtime": "./dist/product-intent/runtime.js",
|
|
666
|
+
"./product-intent/spec": "./dist/product-intent/spec.js",
|
|
667
|
+
"./product-intent/types": "./dist/product-intent/types.js",
|
|
668
|
+
"./product-intent/contract-patch-intent": "./dist/product-intent/contract-patch-intent.js",
|
|
669
|
+
"./product-intent/contract-spec-patch": "./dist/product-intent/contract-spec-patch.js",
|
|
670
|
+
"./product-intent/evidence": "./dist/product-intent/evidence.js",
|
|
671
|
+
"./product-intent/impact-report": "./dist/product-intent/impact-report.js",
|
|
672
|
+
"./product-intent/insights": "./dist/product-intent/insights.js",
|
|
673
|
+
"./product-intent/opportunity-brief": "./dist/product-intent/opportunity-brief.js",
|
|
674
|
+
"./product-intent/task-pack": "./dist/product-intent/task-pack.js",
|
|
675
|
+
"./product-intent/ui-wireframe": "./dist/product-intent/ui-wireframe.js",
|
|
598
676
|
"./prompt": "./dist/prompt.js",
|
|
599
677
|
"./promptRegistry": "./dist/promptRegistry.js",
|
|
600
678
|
"./regenerator": "./dist/regenerator/index.js",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult } from "../voice.js";
|
|
2
|
-
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/elevenlabs-voice.d.ts
|
|
5
|
-
interface ElevenLabsVoiceProviderOptions {
|
|
6
|
-
apiKey: string;
|
|
7
|
-
defaultVoiceId?: string;
|
|
8
|
-
modelId?: string;
|
|
9
|
-
client?: ElevenLabsClient;
|
|
10
|
-
}
|
|
11
|
-
declare class ElevenLabsVoiceProvider implements VoiceProvider {
|
|
12
|
-
private readonly client;
|
|
13
|
-
private readonly defaultVoiceId?;
|
|
14
|
-
private readonly modelId?;
|
|
15
|
-
constructor(options: ElevenLabsVoiceProviderOptions);
|
|
16
|
-
listVoices(): Promise<Voice[]>;
|
|
17
|
-
synthesize(input: VoiceSynthesisInput): Promise<VoiceSynthesisResult>;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ElevenLabsVoiceProvider, ElevenLabsVoiceProviderOptions };
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
|
|
2
|
-
|
|
3
|
-
//#region src/integrations/providers/impls/elevenlabs-voice.ts
|
|
4
|
-
const FORMAT_MAP = {
|
|
5
|
-
mp3: "mp3_44100_128",
|
|
6
|
-
wav: "pcm_44100",
|
|
7
|
-
ogg: "mp3_44100_128",
|
|
8
|
-
pcm: "pcm_16000"
|
|
9
|
-
};
|
|
10
|
-
const SAMPLE_RATE = {
|
|
11
|
-
mp3_22050_32: 22050,
|
|
12
|
-
mp3_44100_32: 44100,
|
|
13
|
-
mp3_44100_64: 44100,
|
|
14
|
-
mp3_44100_96: 44100,
|
|
15
|
-
mp3_44100_128: 44100,
|
|
16
|
-
mp3_44100_192: 44100,
|
|
17
|
-
pcm_16000: 16e3,
|
|
18
|
-
pcm_22050: 22050,
|
|
19
|
-
pcm_24000: 24e3,
|
|
20
|
-
pcm_44100: 44100,
|
|
21
|
-
ulaw_8000: 8e3
|
|
22
|
-
};
|
|
23
|
-
var ElevenLabsVoiceProvider = class {
|
|
24
|
-
client;
|
|
25
|
-
defaultVoiceId;
|
|
26
|
-
modelId;
|
|
27
|
-
constructor(options) {
|
|
28
|
-
this.client = options.client ?? new ElevenLabsClient({ apiKey: options.apiKey });
|
|
29
|
-
this.defaultVoiceId = options.defaultVoiceId;
|
|
30
|
-
this.modelId = options.modelId;
|
|
31
|
-
}
|
|
32
|
-
async listVoices() {
|
|
33
|
-
return ((await this.client.voices.getAll()).voices ?? []).map((voice) => ({
|
|
34
|
-
id: voice.voiceId ?? "",
|
|
35
|
-
name: voice.name ?? voice.voiceId ?? "",
|
|
36
|
-
description: voice.description ?? void 0,
|
|
37
|
-
language: voice.labels?.language ?? void 0,
|
|
38
|
-
gender: normalizeGender(voice.labels?.gender),
|
|
39
|
-
previewUrl: voice.previewUrl ?? void 0,
|
|
40
|
-
metadata: {
|
|
41
|
-
category: voice.category ?? "",
|
|
42
|
-
...voice.labels
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
async synthesize(input) {
|
|
47
|
-
const voiceId = input.voiceId ?? this.defaultVoiceId;
|
|
48
|
-
if (!voiceId) throw new Error("Voice ID is required for ElevenLabs synthesis.");
|
|
49
|
-
const formatKey = input.format ?? "mp3";
|
|
50
|
-
const outputFormat = FORMAT_MAP[formatKey] ?? FORMAT_MAP.mp3;
|
|
51
|
-
const sampleRate = input.sampleRateHz ?? SAMPLE_RATE[outputFormat] ?? SAMPLE_RATE.mp3_44100_128 ?? 44100;
|
|
52
|
-
const voiceSettings = input.stability != null || input.similarityBoost != null || input.style != null ? {
|
|
53
|
-
...input.stability != null ? { stability: input.stability } : {},
|
|
54
|
-
...input.similarityBoost != null ? { similarityBoost: input.similarityBoost } : {},
|
|
55
|
-
...input.style != null ? { style: input.style } : {}
|
|
56
|
-
} : void 0;
|
|
57
|
-
return {
|
|
58
|
-
audio: await readWebStream(await this.client.textToSpeech.convert(voiceId, {
|
|
59
|
-
text: input.text,
|
|
60
|
-
modelId: this.modelId,
|
|
61
|
-
outputFormat,
|
|
62
|
-
voiceSettings
|
|
63
|
-
})),
|
|
64
|
-
format: formatKey,
|
|
65
|
-
sampleRateHz: sampleRate,
|
|
66
|
-
durationSeconds: void 0,
|
|
67
|
-
url: void 0
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
function normalizeGender(value) {
|
|
72
|
-
if (!value) return void 0;
|
|
73
|
-
const normalized = value.toLowerCase();
|
|
74
|
-
if (normalized === "male" || normalized === "female" || normalized === "neutral") return normalized;
|
|
75
|
-
}
|
|
76
|
-
async function readWebStream(stream) {
|
|
77
|
-
const reader = stream.getReader();
|
|
78
|
-
const chunks = [];
|
|
79
|
-
while (true) {
|
|
80
|
-
const { done, value } = await reader.read();
|
|
81
|
-
if (done) break;
|
|
82
|
-
if (value) chunks.push(value);
|
|
83
|
-
}
|
|
84
|
-
const length = chunks.reduce((total, chunk) => total + chunk.length, 0);
|
|
85
|
-
const result = new Uint8Array(length);
|
|
86
|
-
let offset = 0;
|
|
87
|
-
for (const chunk of chunks) {
|
|
88
|
-
result.set(chunk, offset);
|
|
89
|
-
offset += chunk.length;
|
|
90
|
-
}
|
|
91
|
-
return result;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
//#endregion
|
|
95
|
-
export { ElevenLabsVoiceProvider };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DeleteObjectInput, GetObjectResult, ListObjectsQuery, ListObjectsResult, ObjectStorageProvider, PutObjectInput, SignedUrlOptions, StorageObjectMetadata } from "../storage.js";
|
|
2
|
-
import { Storage, StorageOptions } from "@google-cloud/storage";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/gcs-storage.d.ts
|
|
5
|
-
interface GoogleCloudStorageProviderOptions {
|
|
6
|
-
bucket: string;
|
|
7
|
-
storage?: Storage;
|
|
8
|
-
clientOptions?: StorageOptions;
|
|
9
|
-
}
|
|
10
|
-
declare class GoogleCloudStorageProvider implements ObjectStorageProvider {
|
|
11
|
-
private readonly storage;
|
|
12
|
-
private readonly bucketName;
|
|
13
|
-
constructor(options: GoogleCloudStorageProviderOptions);
|
|
14
|
-
putObject(input: PutObjectInput): Promise<StorageObjectMetadata>;
|
|
15
|
-
getObject(input: DeleteObjectInput): Promise<GetObjectResult | null>;
|
|
16
|
-
deleteObject(input: DeleteObjectInput): Promise<void>;
|
|
17
|
-
generateSignedUrl(options: SignedUrlOptions): Promise<{
|
|
18
|
-
url: string;
|
|
19
|
-
expiresAt: Date;
|
|
20
|
-
}>;
|
|
21
|
-
listObjects(query: ListObjectsQuery): Promise<ListObjectsResult>;
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { GoogleCloudStorageProvider, GoogleCloudStorageProviderOptions };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Storage } from "@google-cloud/storage";
|
|
2
|
-
|
|
3
|
-
//#region src/integrations/providers/impls/gcs-storage.ts
|
|
4
|
-
var GoogleCloudStorageProvider = class {
|
|
5
|
-
storage;
|
|
6
|
-
bucketName;
|
|
7
|
-
constructor(options) {
|
|
8
|
-
this.storage = options.storage ?? new Storage(options.clientOptions ?? void 0);
|
|
9
|
-
this.bucketName = options.bucket;
|
|
10
|
-
}
|
|
11
|
-
async putObject(input) {
|
|
12
|
-
const bucketName = input.bucket ?? this.bucketName;
|
|
13
|
-
const file = this.storage.bucket(bucketName).file(input.key);
|
|
14
|
-
const buffer = toBuffer(input.data);
|
|
15
|
-
await file.save(buffer, {
|
|
16
|
-
resumable: false,
|
|
17
|
-
contentType: input.contentType,
|
|
18
|
-
metadata: input.metadata
|
|
19
|
-
});
|
|
20
|
-
if (input.makePublic) await file.makePublic();
|
|
21
|
-
const [metadata] = await file.getMetadata();
|
|
22
|
-
return toMetadata(metadata);
|
|
23
|
-
}
|
|
24
|
-
async getObject(input) {
|
|
25
|
-
const bucketName = input.bucket ?? this.bucketName;
|
|
26
|
-
const file = this.storage.bucket(bucketName).file(input.key);
|
|
27
|
-
const [exists] = await file.exists();
|
|
28
|
-
if (!exists) return null;
|
|
29
|
-
const [contents] = await file.download();
|
|
30
|
-
const [metadata] = await file.getMetadata();
|
|
31
|
-
return {
|
|
32
|
-
...toMetadata(metadata),
|
|
33
|
-
data: new Uint8Array(contents)
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
async deleteObject(input) {
|
|
37
|
-
const bucketName = input.bucket ?? this.bucketName;
|
|
38
|
-
await this.storage.bucket(bucketName).file(input.key).delete({ ignoreNotFound: true });
|
|
39
|
-
}
|
|
40
|
-
async generateSignedUrl(options) {
|
|
41
|
-
const bucketName = options.bucket ?? this.bucketName;
|
|
42
|
-
const file = this.storage.bucket(bucketName).file(options.key);
|
|
43
|
-
const action = options.method === "PUT" ? "write" : "read";
|
|
44
|
-
const expires = Date.now() + options.expiresInSeconds * 1e3;
|
|
45
|
-
const [url] = await file.getSignedUrl({
|
|
46
|
-
action,
|
|
47
|
-
expires,
|
|
48
|
-
contentType: options.contentType
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
url,
|
|
52
|
-
expiresAt: new Date(expires)
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
async listObjects(query) {
|
|
56
|
-
const bucketName = query.bucket ?? this.bucketName;
|
|
57
|
-
const [files, nextQuery, response] = await this.storage.bucket(bucketName).getFiles({
|
|
58
|
-
prefix: query.prefix,
|
|
59
|
-
maxResults: query.maxResults,
|
|
60
|
-
pageToken: query.pageToken
|
|
61
|
-
});
|
|
62
|
-
const nextTokenFromQuery = typeof nextQuery === "object" && nextQuery !== null && "pageToken" in nextQuery ? nextQuery.pageToken : void 0;
|
|
63
|
-
const nextTokenFromResponse = response && typeof response === "object" && "nextPageToken" in response ? response.nextPageToken : void 0;
|
|
64
|
-
return {
|
|
65
|
-
objects: files.map((file) => toMetadata(file.metadata)),
|
|
66
|
-
nextPageToken: nextTokenFromQuery ?? nextTokenFromResponse ?? void 0
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
function toBuffer(data) {
|
|
71
|
-
if (data instanceof Uint8Array) return Buffer.from(data);
|
|
72
|
-
return Buffer.from(data);
|
|
73
|
-
}
|
|
74
|
-
function toMetadata(metadata) {
|
|
75
|
-
return {
|
|
76
|
-
bucket: metadata.bucket ?? "",
|
|
77
|
-
key: metadata.name ?? "",
|
|
78
|
-
sizeBytes: metadata.size ? Number(metadata.size) : void 0,
|
|
79
|
-
contentType: metadata.contentType ?? void 0,
|
|
80
|
-
etag: metadata.etag ?? void 0,
|
|
81
|
-
checksum: metadata.md5Hash ?? void 0,
|
|
82
|
-
lastModified: metadata.updated ? new Date(metadata.updated) : void 0,
|
|
83
|
-
metadata: metadata.metadata
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
//#endregion
|
|
88
|
-
export { GoogleCloudStorageProvider };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailThread, EmailThreadListQuery } from "../email.js";
|
|
2
|
-
import { gmail_v1 } from "googleapis";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/gmail-inbound.d.ts
|
|
5
|
-
interface GmailInboundProviderOptions {
|
|
6
|
-
auth: gmail_v1.Options['auth'];
|
|
7
|
-
userId?: string;
|
|
8
|
-
gmail?: gmail_v1.Gmail;
|
|
9
|
-
includeSpamTrash?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare class GmailInboundProvider implements EmailInboundProvider {
|
|
12
|
-
private readonly gmail;
|
|
13
|
-
private readonly userId;
|
|
14
|
-
private readonly includeSpamTrash;
|
|
15
|
-
private readonly auth;
|
|
16
|
-
constructor(options: GmailInboundProviderOptions);
|
|
17
|
-
listThreads(query?: EmailThreadListQuery): Promise<EmailThread[]>;
|
|
18
|
-
getThread(threadId: string): Promise<EmailThread | null>;
|
|
19
|
-
listMessagesSince(query: EmailMessagesSinceQuery): Promise<{
|
|
20
|
-
messages: EmailMessage[];
|
|
21
|
-
nextPageToken: string | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
private transformMessage;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { GmailInboundProvider, GmailInboundProviderOptions };
|