@contractspec/lib.contracts-integrations 2.0.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 +3 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +3676 -0
- package/dist/integrations/binding.d.ts +14 -0
- package/dist/integrations/binding.js +1 -0
- package/dist/integrations/connection.d.ts +47 -0
- package/dist/integrations/connection.js +1 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +2 -0
- package/dist/integrations/docs/integrations.docblock.js +110 -0
- package/dist/integrations/health.d.ts +17 -0
- package/dist/integrations/health.js +73 -0
- package/dist/integrations/health.test.d.ts +1 -0
- package/dist/integrations/index.d.ts +11 -0
- package/dist/integrations/index.js +3264 -0
- package/dist/integrations/integrations.capability.d.ts +1 -0
- package/dist/integrations/integrations.capability.js +18 -0
- package/dist/integrations/integrations.feature.d.ts +5 -0
- package/dist/integrations/integrations.feature.js +33 -0
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +7 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +474 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +451 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +219 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +166 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +287 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +85 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +172 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +1 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +18 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +5 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +33 -0
- package/dist/integrations/meeting-recorder/models.d.ts +402 -0
- package/dist/integrations/meeting-recorder/models.js +122 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +13 -0
- package/dist/integrations/meeting-recorder/telemetry.js +54 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +282 -0
- package/dist/integrations/openbanking/contracts/accounts.js +328 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +158 -0
- package/dist/integrations/openbanking/contracts/balances.js +292 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +7 -0
- package/dist/integrations/openbanking/contracts/index.js +644 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +206 -0
- package/dist/integrations/openbanking/contracts/transactions.js +298 -0
- package/dist/integrations/openbanking/guards.d.ts +8 -0
- package/dist/integrations/openbanking/guards.js +42 -0
- package/dist/integrations/openbanking/guards.test.d.ts +1 -0
- package/dist/integrations/openbanking/models.d.ts +223 -0
- package/dist/integrations/openbanking/models.js +110 -0
- package/dist/integrations/openbanking/openbanking.capability.d.ts +1 -0
- package/dist/integrations/openbanking/openbanking.capability.js +18 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +5 -0
- package/dist/integrations/openbanking/openbanking.feature.js +35 -0
- package/dist/integrations/openbanking/telemetry.d.ts +12 -0
- package/dist/integrations/openbanking/telemetry.js +51 -0
- package/dist/integrations/operations.d.ts +430 -0
- package/dist/integrations/operations.js +297 -0
- package/dist/integrations/operations.test.d.ts +1 -0
- package/dist/integrations/providers/analytics-reader.d.ts +103 -0
- package/dist/integrations/providers/analytics-reader.js +1 -0
- package/dist/integrations/providers/analytics-writer.d.ts +6 -0
- package/dist/integrations/providers/analytics-writer.js +1 -0
- package/dist/integrations/providers/analytics.d.ts +47 -0
- package/dist/integrations/providers/analytics.js +1 -0
- package/dist/integrations/providers/calendar.d.ts +75 -0
- package/dist/integrations/providers/calendar.js +1 -0
- package/dist/integrations/providers/database.d.ts +12 -0
- package/dist/integrations/providers/database.js +1 -0
- package/dist/integrations/providers/elevenlabs.d.ts +3 -0
- package/dist/integrations/providers/elevenlabs.js +86 -0
- package/dist/integrations/providers/email.d.ts +83 -0
- package/dist/integrations/providers/email.js +1 -0
- package/dist/integrations/providers/embedding.d.ts +21 -0
- package/dist/integrations/providers/embedding.js +1 -0
- package/dist/integrations/providers/fal.d.ts +3 -0
- package/dist/integrations/providers/fal.js +112 -0
- package/dist/integrations/providers/fathom.d.ts +3 -0
- package/dist/integrations/providers/fathom.js +126 -0
- package/dist/integrations/providers/fireflies.d.ts +3 -0
- package/dist/integrations/providers/fireflies.js +106 -0
- package/dist/integrations/providers/gcs-storage.d.ts +3 -0
- package/dist/integrations/providers/gcs-storage.js +97 -0
- package/dist/integrations/providers/gmail.d.ts +3 -0
- package/dist/integrations/providers/gmail.js +109 -0
- package/dist/integrations/providers/google-calendar.d.ts +3 -0
- package/dist/integrations/providers/google-calendar.js +92 -0
- package/dist/integrations/providers/gradium.d.ts +3 -0
- package/dist/integrations/providers/gradium.js +110 -0
- package/dist/integrations/providers/granola.d.ts +3 -0
- package/dist/integrations/providers/granola.js +107 -0
- package/dist/integrations/providers/index.d.ts +38 -0
- package/dist/integrations/providers/index.js +2094 -0
- package/dist/integrations/providers/jira.d.ts +3 -0
- package/dist/integrations/providers/jira.js +108 -0
- package/dist/integrations/providers/linear.d.ts +3 -0
- package/dist/integrations/providers/linear.js +107 -0
- package/dist/integrations/providers/llm.d.ts +79 -0
- package/dist/integrations/providers/llm.js +1 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +129 -0
- package/dist/integrations/providers/meeting-recorder.js +1 -0
- package/dist/integrations/providers/mistral.d.ts +3 -0
- package/dist/integrations/providers/mistral.js +94 -0
- package/dist/integrations/providers/notion.d.ts +3 -0
- package/dist/integrations/providers/notion.js +113 -0
- package/dist/integrations/providers/openbanking.d.ts +125 -0
- package/dist/integrations/providers/openbanking.js +1 -0
- package/dist/integrations/providers/payments.d.ts +106 -0
- package/dist/integrations/providers/payments.js +1 -0
- package/dist/integrations/providers/posthog-llm-telemetry.d.ts +51 -0
- package/dist/integrations/providers/posthog-llm-telemetry.js +176 -0
- package/dist/integrations/providers/posthog.d.ts +3 -0
- package/dist/integrations/providers/posthog.js +106 -0
- package/dist/integrations/providers/postmark.d.ts +3 -0
- package/dist/integrations/providers/postmark.js +98 -0
- package/dist/integrations/providers/powens.d.ts +3 -0
- package/dist/integrations/providers/powens.js +124 -0
- package/dist/integrations/providers/project-management.d.ts +32 -0
- package/dist/integrations/providers/project-management.js +1 -0
- package/dist/integrations/providers/providers.test.d.ts +1 -0
- package/dist/integrations/providers/qdrant.d.ts +3 -0
- package/dist/integrations/providers/qdrant.js +101 -0
- package/dist/integrations/providers/registry.d.ts +6 -0
- package/dist/integrations/providers/registry.js +1878 -0
- package/dist/integrations/providers/sms.d.ts +31 -0
- package/dist/integrations/providers/sms.js +1 -0
- package/dist/integrations/providers/storage.d.ts +57 -0
- package/dist/integrations/providers/storage.js +1 -0
- package/dist/integrations/providers/stripe.d.ts +3 -0
- package/dist/integrations/providers/stripe.js +105 -0
- package/dist/integrations/providers/supabase-postgres.d.ts +3 -0
- package/dist/integrations/providers/supabase-postgres.js +87 -0
- package/dist/integrations/providers/supabase-vector.d.ts +3 -0
- package/dist/integrations/providers/supabase-vector.js +107 -0
- package/dist/integrations/providers/tldv.d.ts +3 -0
- package/dist/integrations/providers/tldv.js +106 -0
- package/dist/integrations/providers/twilio-sms.d.ts +3 -0
- package/dist/integrations/providers/twilio-sms.js +91 -0
- package/dist/integrations/providers/vector-store.d.ts +39 -0
- package/dist/integrations/providers/vector-store.js +1 -0
- package/dist/integrations/providers/voice.d.ts +31 -0
- package/dist/integrations/providers/voice.js +1 -0
- package/dist/integrations/runtime.d.ts +95 -0
- package/dist/integrations/runtime.js +209 -0
- package/dist/integrations/runtime.test.d.ts +1 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +28 -0
- package/dist/integrations/secrets/aws-secret-manager.js +346 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +28 -0
- package/dist/integrations/secrets/env-secret-provider.js +159 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +29 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +347 -0
- package/dist/integrations/secrets/index.d.ts +6 -0
- package/dist/integrations/secrets/index.js +1129 -0
- package/dist/integrations/secrets/manager.d.ts +44 -0
- package/dist/integrations/secrets/manager.js +183 -0
- package/dist/integrations/secrets/provider.d.ts +49 -0
- package/dist/integrations/secrets/provider.js +74 -0
- package/dist/integrations/secrets/provider.test.d.ts +1 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +35 -0
- package/dist/integrations/secrets/scaleway-secret-manager.js +375 -0
- package/dist/integrations/secrets-types.d.ts +14 -0
- package/dist/integrations/secrets-types.js +1 -0
- package/dist/integrations/spec.d.ts +72 -0
- package/dist/integrations/spec.js +22 -0
- package/dist/integrations/spec.test.d.ts +1 -0
- package/dist/node/index.js +3675 -0
- package/dist/node/integrations/binding.js +0 -0
- package/dist/node/integrations/connection.js +0 -0
- package/dist/node/integrations/docs/integrations.docblock.js +109 -0
- package/dist/node/integrations/health.js +72 -0
- package/dist/node/integrations/index.js +3263 -0
- package/dist/node/integrations/integrations.capability.js +17 -0
- package/dist/node/integrations/integrations.feature.js +32 -0
- package/dist/node/integrations/meeting-recorder/contracts/index.js +473 -0
- package/dist/node/integrations/meeting-recorder/contracts/meetings.js +218 -0
- package/dist/node/integrations/meeting-recorder/contracts/transcripts.js +286 -0
- package/dist/node/integrations/meeting-recorder/contracts/webhooks.js +171 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.capability.js +17 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.feature.js +32 -0
- package/dist/node/integrations/meeting-recorder/models.js +121 -0
- package/dist/node/integrations/meeting-recorder/telemetry.js +53 -0
- package/dist/node/integrations/openbanking/contracts/accounts.js +327 -0
- package/dist/node/integrations/openbanking/contracts/balances.js +291 -0
- package/dist/node/integrations/openbanking/contracts/index.js +643 -0
- package/dist/node/integrations/openbanking/contracts/transactions.js +297 -0
- package/dist/node/integrations/openbanking/guards.js +41 -0
- package/dist/node/integrations/openbanking/models.js +109 -0
- package/dist/node/integrations/openbanking/openbanking.capability.js +17 -0
- package/dist/node/integrations/openbanking/openbanking.feature.js +34 -0
- package/dist/node/integrations/openbanking/telemetry.js +50 -0
- package/dist/node/integrations/operations.js +296 -0
- package/dist/node/integrations/providers/analytics-reader.js +0 -0
- package/dist/node/integrations/providers/analytics-writer.js +0 -0
- package/dist/node/integrations/providers/analytics.js +0 -0
- package/dist/node/integrations/providers/calendar.js +0 -0
- package/dist/node/integrations/providers/database.js +0 -0
- package/dist/node/integrations/providers/elevenlabs.js +85 -0
- package/dist/node/integrations/providers/email.js +0 -0
- package/dist/node/integrations/providers/embedding.js +0 -0
- package/dist/node/integrations/providers/fal.js +111 -0
- package/dist/node/integrations/providers/fathom.js +125 -0
- package/dist/node/integrations/providers/fireflies.js +105 -0
- package/dist/node/integrations/providers/gcs-storage.js +96 -0
- package/dist/node/integrations/providers/gmail.js +108 -0
- package/dist/node/integrations/providers/google-calendar.js +91 -0
- package/dist/node/integrations/providers/gradium.js +109 -0
- package/dist/node/integrations/providers/granola.js +106 -0
- package/dist/node/integrations/providers/index.js +2093 -0
- package/dist/node/integrations/providers/jira.js +107 -0
- package/dist/node/integrations/providers/linear.js +106 -0
- package/dist/node/integrations/providers/llm.js +0 -0
- package/dist/node/integrations/providers/meeting-recorder.js +0 -0
- package/dist/node/integrations/providers/mistral.js +93 -0
- package/dist/node/integrations/providers/notion.js +112 -0
- package/dist/node/integrations/providers/openbanking.js +0 -0
- package/dist/node/integrations/providers/payments.js +0 -0
- package/dist/node/integrations/providers/posthog-llm-telemetry.js +175 -0
- package/dist/node/integrations/providers/posthog.js +105 -0
- package/dist/node/integrations/providers/postmark.js +97 -0
- package/dist/node/integrations/providers/powens.js +123 -0
- package/dist/node/integrations/providers/project-management.js +0 -0
- package/dist/node/integrations/providers/qdrant.js +100 -0
- package/dist/node/integrations/providers/registry.js +1877 -0
- package/dist/node/integrations/providers/sms.js +0 -0
- package/dist/node/integrations/providers/storage.js +0 -0
- package/dist/node/integrations/providers/stripe.js +104 -0
- package/dist/node/integrations/providers/supabase-postgres.js +86 -0
- package/dist/node/integrations/providers/supabase-vector.js +106 -0
- package/dist/node/integrations/providers/tldv.js +105 -0
- package/dist/node/integrations/providers/twilio-sms.js +90 -0
- package/dist/node/integrations/providers/vector-store.js +0 -0
- package/dist/node/integrations/providers/voice.js +0 -0
- package/dist/node/integrations/runtime.js +208 -0
- package/dist/node/integrations/secrets/aws-secret-manager.js +345 -0
- package/dist/node/integrations/secrets/env-secret-provider.js +158 -0
- package/dist/node/integrations/secrets/gcp-secret-manager.js +346 -0
- package/dist/node/integrations/secrets/index.js +1128 -0
- package/dist/node/integrations/secrets/manager.js +182 -0
- package/dist/node/integrations/secrets/provider.js +73 -0
- package/dist/node/integrations/secrets/scaleway-secret-manager.js +374 -0
- package/dist/node/integrations/secrets-types.js +0 -0
- package/dist/node/integrations/spec.js +21 -0
- package/package.json +1029 -0
|
@@ -0,0 +1,3675 @@
|
|
|
1
|
+
// src/integrations/spec.ts
|
|
2
|
+
import { SpecContractRegistry } from "@contractspec/lib.contracts-spec/registry";
|
|
3
|
+
var integrationKey = (meta) => `${meta.key}.v${meta.version}`;
|
|
4
|
+
|
|
5
|
+
class IntegrationSpecRegistry extends SpecContractRegistry {
|
|
6
|
+
constructor(items) {
|
|
7
|
+
super("integration", items);
|
|
8
|
+
}
|
|
9
|
+
getByCategory(category) {
|
|
10
|
+
return this.list().filter((spec) => spec.meta.category === category);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function makeIntegrationSpecKey(meta) {
|
|
14
|
+
return integrationKey(meta);
|
|
15
|
+
}
|
|
16
|
+
var defineIntegration = (spec) => spec;
|
|
17
|
+
// src/integrations/providers/stripe.ts
|
|
18
|
+
import { StabilityEnum } from "@contractspec/lib.contracts-spec/ownership";
|
|
19
|
+
var stripeIntegrationSpec = defineIntegration({
|
|
20
|
+
meta: {
|
|
21
|
+
key: "payments.stripe",
|
|
22
|
+
version: "1.0.0",
|
|
23
|
+
category: "payments",
|
|
24
|
+
title: "Stripe Payments",
|
|
25
|
+
description: "Stripe integration for payment processing, charges, and payouts.",
|
|
26
|
+
domain: "payments",
|
|
27
|
+
owners: ["platform.payments"],
|
|
28
|
+
tags: ["payments", "psp"],
|
|
29
|
+
stability: StabilityEnum.Stable
|
|
30
|
+
},
|
|
31
|
+
supportedModes: ["managed", "byok"],
|
|
32
|
+
capabilities: {
|
|
33
|
+
provides: [{ key: "payments.psp", version: "1.0.0" }],
|
|
34
|
+
requires: [
|
|
35
|
+
{
|
|
36
|
+
key: "platform.webhooks",
|
|
37
|
+
optional: true,
|
|
38
|
+
reason: "Recommended for reliable event ingestion"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
configSchema: {
|
|
43
|
+
schema: {
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: {
|
|
46
|
+
accountId: {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "Connected account ID when using Stripe Connect (BYOK)."
|
|
49
|
+
},
|
|
50
|
+
region: {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "Optional Stripe region or data residency hint."
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
example: {
|
|
57
|
+
accountId: "acct_123",
|
|
58
|
+
region: "us-east-1"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
secretSchema: {
|
|
62
|
+
schema: {
|
|
63
|
+
type: "object",
|
|
64
|
+
required: ["apiKey", "webhookSecret"],
|
|
65
|
+
properties: {
|
|
66
|
+
apiKey: {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "Stripe secret API key (sk_live_... or sk_test_...)."
|
|
69
|
+
},
|
|
70
|
+
webhookSecret: {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "Signing secret for webhook verification."
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
example: {
|
|
77
|
+
apiKey: "sk_live_***",
|
|
78
|
+
webhookSecret: "whsec_***"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
healthCheck: {
|
|
82
|
+
method: "ping",
|
|
83
|
+
timeoutMs: 5000
|
|
84
|
+
},
|
|
85
|
+
docsUrl: "https://stripe.com/docs/api",
|
|
86
|
+
constraints: {
|
|
87
|
+
rateLimit: {
|
|
88
|
+
rpm: 1000,
|
|
89
|
+
rph: 20000
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
byokSetup: {
|
|
93
|
+
setupInstructions: "Create a restricted Stripe API key with write access to Charges and provide a webhook signing secret.",
|
|
94
|
+
requiredScopes: ["charges:write", "customers:read"]
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
function registerStripeIntegration(registry) {
|
|
98
|
+
return registry.register(stripeIntegrationSpec);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// src/integrations/providers/postmark.ts
|
|
102
|
+
import { StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts-spec/ownership";
|
|
103
|
+
var postmarkIntegrationSpec = defineIntegration({
|
|
104
|
+
meta: {
|
|
105
|
+
key: "email.postmark",
|
|
106
|
+
version: "1.0.0",
|
|
107
|
+
category: "email",
|
|
108
|
+
title: "Postmark Transactional Email",
|
|
109
|
+
description: "Postmark integration for transactional email delivery.",
|
|
110
|
+
domain: "communications",
|
|
111
|
+
owners: ["platform.messaging"],
|
|
112
|
+
tags: ["email", "transactional"],
|
|
113
|
+
stability: StabilityEnum2.Stable
|
|
114
|
+
},
|
|
115
|
+
supportedModes: ["managed", "byok"],
|
|
116
|
+
capabilities: {
|
|
117
|
+
provides: [{ key: "email.transactional", version: "1.0.0" }],
|
|
118
|
+
requires: [
|
|
119
|
+
{
|
|
120
|
+
key: "platform.webhooks",
|
|
121
|
+
optional: true,
|
|
122
|
+
reason: "Optional for inbound bounce handling"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
configSchema: {
|
|
127
|
+
schema: {
|
|
128
|
+
type: "object",
|
|
129
|
+
properties: {
|
|
130
|
+
messageStream: {
|
|
131
|
+
type: "string",
|
|
132
|
+
description: "Optional message stream identifier (e.g., transactional)."
|
|
133
|
+
},
|
|
134
|
+
fromEmail: {
|
|
135
|
+
type: "string",
|
|
136
|
+
description: "Default From address used for outbound messages."
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
example: {
|
|
141
|
+
messageStream: "outbound",
|
|
142
|
+
fromEmail: "notifications@example.com"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
secretSchema: {
|
|
146
|
+
schema: {
|
|
147
|
+
type: "object",
|
|
148
|
+
required: ["serverToken"],
|
|
149
|
+
properties: {
|
|
150
|
+
serverToken: {
|
|
151
|
+
type: "string",
|
|
152
|
+
description: "Server token for the Postmark account."
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
example: {
|
|
157
|
+
serverToken: "server-***"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
healthCheck: {
|
|
161
|
+
method: "ping",
|
|
162
|
+
timeoutMs: 3000
|
|
163
|
+
},
|
|
164
|
+
docsUrl: "https://postmarkapp.com/developer",
|
|
165
|
+
constraints: {
|
|
166
|
+
rateLimit: {
|
|
167
|
+
rpm: 500
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
byokSetup: {
|
|
171
|
+
setupInstructions: "Create a Postmark server token with outbound send permissions and configure allowed from addresses."
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
function registerPostmarkIntegration(registry) {
|
|
175
|
+
return registry.register(postmarkIntegrationSpec);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// src/integrations/providers/qdrant.ts
|
|
179
|
+
import { StabilityEnum as StabilityEnum3 } from "@contractspec/lib.contracts-spec/ownership";
|
|
180
|
+
var qdrantIntegrationSpec = defineIntegration({
|
|
181
|
+
meta: {
|
|
182
|
+
key: "vectordb.qdrant",
|
|
183
|
+
version: "1.0.0",
|
|
184
|
+
category: "vector-db",
|
|
185
|
+
title: "Qdrant Vector Database",
|
|
186
|
+
description: "Qdrant integration for vector search and embeddings storage.",
|
|
187
|
+
domain: "ai",
|
|
188
|
+
owners: ["platform.ai"],
|
|
189
|
+
tags: ["vector-db", "search"],
|
|
190
|
+
stability: StabilityEnum3.Experimental
|
|
191
|
+
},
|
|
192
|
+
supportedModes: ["managed", "byok"],
|
|
193
|
+
capabilities: {
|
|
194
|
+
provides: [
|
|
195
|
+
{ key: "vector-db.search", version: "1.0.0" },
|
|
196
|
+
{ key: "vector-db.storage", version: "1.0.0" }
|
|
197
|
+
],
|
|
198
|
+
requires: [
|
|
199
|
+
{
|
|
200
|
+
key: "ai.embeddings",
|
|
201
|
+
optional: true,
|
|
202
|
+
reason: "Required if vectors are generated via hosted embedding services"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
configSchema: {
|
|
207
|
+
schema: {
|
|
208
|
+
type: "object",
|
|
209
|
+
properties: {
|
|
210
|
+
apiUrl: {
|
|
211
|
+
type: "string",
|
|
212
|
+
description: "Base URL for the Qdrant instance (e.g., https://qdrant.example.com)."
|
|
213
|
+
},
|
|
214
|
+
collectionPrefix: {
|
|
215
|
+
type: "string",
|
|
216
|
+
description: "Prefix applied to all collection names for this tenant."
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
example: {
|
|
221
|
+
apiUrl: "https://qdrant.example.com",
|
|
222
|
+
collectionPrefix: "tenant_"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
secretSchema: {
|
|
226
|
+
schema: {
|
|
227
|
+
type: "object",
|
|
228
|
+
properties: {
|
|
229
|
+
apiKey: {
|
|
230
|
+
type: "string",
|
|
231
|
+
description: "API key or token when authentication is enabled."
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
example: {
|
|
236
|
+
apiKey: "qdrant-api-key"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
healthCheck: {
|
|
240
|
+
method: "ping",
|
|
241
|
+
timeoutMs: 4000
|
|
242
|
+
},
|
|
243
|
+
docsUrl: "https://qdrant.tech/documentation/quick-start/",
|
|
244
|
+
constraints: {
|
|
245
|
+
quotas: {
|
|
246
|
+
collections: 100,
|
|
247
|
+
pointsPerCollection: 1e6
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
byokSetup: {
|
|
251
|
+
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."
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
function registerQdrantIntegration(registry) {
|
|
255
|
+
return registry.register(qdrantIntegrationSpec);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// src/integrations/providers/supabase-vector.ts
|
|
259
|
+
import { StabilityEnum as StabilityEnum4 } from "@contractspec/lib.contracts-spec/ownership";
|
|
260
|
+
var supabaseVectorIntegrationSpec = defineIntegration({
|
|
261
|
+
meta: {
|
|
262
|
+
key: "vectordb.supabase",
|
|
263
|
+
version: "1.0.0",
|
|
264
|
+
category: "vector-db",
|
|
265
|
+
title: "Supabase Vector Database (pgvector)",
|
|
266
|
+
description: "Supabase integration for embedding storage and vector similarity search using pgvector.",
|
|
267
|
+
domain: "ai",
|
|
268
|
+
owners: ["platform.ai"],
|
|
269
|
+
tags: ["vector-db", "supabase", "pgvector"],
|
|
270
|
+
stability: StabilityEnum4.Beta
|
|
271
|
+
},
|
|
272
|
+
supportedModes: ["managed", "byok"],
|
|
273
|
+
capabilities: {
|
|
274
|
+
provides: [
|
|
275
|
+
{ key: "vector-db.search", version: "1.0.0" },
|
|
276
|
+
{ key: "vector-db.storage", version: "1.0.0" }
|
|
277
|
+
],
|
|
278
|
+
requires: [
|
|
279
|
+
{
|
|
280
|
+
key: "ai.embeddings",
|
|
281
|
+
optional: true,
|
|
282
|
+
reason: "Required when vectors are generated by a hosted embedding provider."
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
configSchema: {
|
|
287
|
+
schema: {
|
|
288
|
+
type: "object",
|
|
289
|
+
properties: {
|
|
290
|
+
schema: {
|
|
291
|
+
type: "string",
|
|
292
|
+
description: "Schema name containing the pgvector table (default: public)."
|
|
293
|
+
},
|
|
294
|
+
table: {
|
|
295
|
+
type: "string",
|
|
296
|
+
description: "Table used to store vectors and metadata (default: contractspec_vectors)."
|
|
297
|
+
},
|
|
298
|
+
createTableIfMissing: {
|
|
299
|
+
type: "boolean",
|
|
300
|
+
description: "Automatically create pgvector extension and table when first writing vectors."
|
|
301
|
+
},
|
|
302
|
+
distanceMetric: {
|
|
303
|
+
type: "string",
|
|
304
|
+
enum: ["cosine", "l2", "inner_product"],
|
|
305
|
+
description: "Distance metric used for nearest-neighbor search."
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
example: {
|
|
310
|
+
schema: "public",
|
|
311
|
+
table: "contractspec_vectors",
|
|
312
|
+
createTableIfMissing: true,
|
|
313
|
+
distanceMetric: "cosine"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
secretSchema: {
|
|
317
|
+
schema: {
|
|
318
|
+
type: "object",
|
|
319
|
+
required: ["databaseUrl"],
|
|
320
|
+
properties: {
|
|
321
|
+
databaseUrl: {
|
|
322
|
+
type: "string",
|
|
323
|
+
description: "Supabase Postgres connection string with privileges to read/write vector rows."
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
example: {
|
|
328
|
+
databaseUrl: "postgresql://postgres.[project-ref]:password@aws-0-region.pooler.supabase.com:6543/postgres"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
healthCheck: {
|
|
332
|
+
method: "ping",
|
|
333
|
+
timeoutMs: 5000
|
|
334
|
+
},
|
|
335
|
+
docsUrl: "https://supabase.com/docs/guides/ai/vector-columns",
|
|
336
|
+
byokSetup: {
|
|
337
|
+
setupInstructions: "Create or reuse a Supabase project, enable pgvector, and provide a Postgres connection string with read/write access to the target vector table."
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
function registerSupabaseVectorIntegration(registry) {
|
|
341
|
+
return registry.register(supabaseVectorIntegrationSpec);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// src/integrations/providers/supabase-postgres.ts
|
|
345
|
+
import { StabilityEnum as StabilityEnum5 } from "@contractspec/lib.contracts-spec/ownership";
|
|
346
|
+
var supabasePostgresIntegrationSpec = defineIntegration({
|
|
347
|
+
meta: {
|
|
348
|
+
key: "database.supabase",
|
|
349
|
+
version: "1.0.0",
|
|
350
|
+
category: "database",
|
|
351
|
+
title: "Supabase Postgres",
|
|
352
|
+
description: "Supabase Postgres integration for SQL query execution and transactional workloads.",
|
|
353
|
+
domain: "infrastructure",
|
|
354
|
+
owners: ["platform.infrastructure"],
|
|
355
|
+
tags: ["database", "postgres", "supabase"],
|
|
356
|
+
stability: StabilityEnum5.Beta
|
|
357
|
+
},
|
|
358
|
+
supportedModes: ["managed", "byok"],
|
|
359
|
+
capabilities: {
|
|
360
|
+
provides: [{ key: "database.sql", version: "1.0.0" }]
|
|
361
|
+
},
|
|
362
|
+
configSchema: {
|
|
363
|
+
schema: {
|
|
364
|
+
type: "object",
|
|
365
|
+
properties: {
|
|
366
|
+
maxConnections: {
|
|
367
|
+
type: "number",
|
|
368
|
+
description: "Optional connection pool size when opening a Postgres client to Supabase."
|
|
369
|
+
},
|
|
370
|
+
sslMode: {
|
|
371
|
+
type: "string",
|
|
372
|
+
enum: ["require", "allow", "prefer"],
|
|
373
|
+
description: "TLS mode used by the Postgres client."
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
example: {
|
|
378
|
+
maxConnections: 10,
|
|
379
|
+
sslMode: "require"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
secretSchema: {
|
|
383
|
+
schema: {
|
|
384
|
+
type: "object",
|
|
385
|
+
required: ["databaseUrl"],
|
|
386
|
+
properties: {
|
|
387
|
+
databaseUrl: {
|
|
388
|
+
type: "string",
|
|
389
|
+
description: "Supabase Postgres connection string (transaction or session pooler endpoint)."
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
example: {
|
|
394
|
+
databaseUrl: "postgresql://postgres.[project-ref]:password@aws-0-region.pooler.supabase.com:6543/postgres"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
healthCheck: {
|
|
398
|
+
method: "ping",
|
|
399
|
+
timeoutMs: 5000
|
|
400
|
+
},
|
|
401
|
+
docsUrl: "https://supabase.com/docs/guides/database/connecting-to-postgres",
|
|
402
|
+
byokSetup: {
|
|
403
|
+
setupInstructions: "Create or reuse a Supabase project and provide a Postgres connection string with permissions aligned to your workload."
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
function registerSupabasePostgresIntegration(registry) {
|
|
407
|
+
return registry.register(supabasePostgresIntegrationSpec);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// src/integrations/providers/mistral.ts
|
|
411
|
+
import { StabilityEnum as StabilityEnum6 } from "@contractspec/lib.contracts-spec/ownership";
|
|
412
|
+
var mistralIntegrationSpec = defineIntegration({
|
|
413
|
+
meta: {
|
|
414
|
+
key: "ai-llm.mistral",
|
|
415
|
+
version: "1.0.0",
|
|
416
|
+
category: "ai-llm",
|
|
417
|
+
title: "Mistral Large Language Model",
|
|
418
|
+
description: "Mistral integration providing chat completions and embedding generation.",
|
|
419
|
+
domain: "ai",
|
|
420
|
+
owners: ["platform.ai"],
|
|
421
|
+
tags: ["ai", "llm", "embeddings"],
|
|
422
|
+
stability: StabilityEnum6.Experimental
|
|
423
|
+
},
|
|
424
|
+
supportedModes: ["managed", "byok"],
|
|
425
|
+
capabilities: {
|
|
426
|
+
provides: [
|
|
427
|
+
{ key: "ai.chat", version: "1.0.0" },
|
|
428
|
+
{ key: "ai.embeddings", version: "1.0.0" }
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
configSchema: {
|
|
432
|
+
schema: {
|
|
433
|
+
type: "object",
|
|
434
|
+
properties: {
|
|
435
|
+
model: {
|
|
436
|
+
type: "string",
|
|
437
|
+
description: "Default chat completion model (e.g., mistral-large-latest)."
|
|
438
|
+
},
|
|
439
|
+
embeddingModel: {
|
|
440
|
+
type: "string",
|
|
441
|
+
description: "Embedding model identifier."
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
example: {
|
|
446
|
+
model: "mistral-large-latest",
|
|
447
|
+
embeddingModel: "mistral-embed"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
secretSchema: {
|
|
451
|
+
schema: {
|
|
452
|
+
type: "object",
|
|
453
|
+
required: ["apiKey"],
|
|
454
|
+
properties: {
|
|
455
|
+
apiKey: {
|
|
456
|
+
type: "string",
|
|
457
|
+
description: "Mistral API key with access to chat and embeddings endpoints."
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
example: {
|
|
462
|
+
apiKey: "mistral-***"
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
healthCheck: {
|
|
466
|
+
method: "custom",
|
|
467
|
+
timeoutMs: 5000
|
|
468
|
+
},
|
|
469
|
+
docsUrl: "https://docs.mistral.ai/platform/endpoints",
|
|
470
|
+
constraints: {
|
|
471
|
+
rateLimit: {
|
|
472
|
+
rpm: 600
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
byokSetup: {
|
|
476
|
+
setupInstructions: "Generate an API key within the Mistral console and ensure the selected models are enabled for the account."
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
function registerMistralIntegration(registry) {
|
|
480
|
+
return registry.register(mistralIntegrationSpec);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// src/integrations/providers/elevenlabs.ts
|
|
484
|
+
import { StabilityEnum as StabilityEnum7 } from "@contractspec/lib.contracts-spec/ownership";
|
|
485
|
+
var elevenLabsIntegrationSpec = defineIntegration({
|
|
486
|
+
meta: {
|
|
487
|
+
key: "ai-voice.elevenlabs",
|
|
488
|
+
version: "1.0.0",
|
|
489
|
+
category: "ai-voice",
|
|
490
|
+
title: "ElevenLabs Text-to-Speech",
|
|
491
|
+
description: "ElevenLabs integration for neural voice synthesis and voice catalog access.",
|
|
492
|
+
domain: "ai",
|
|
493
|
+
owners: ["platform.ai"],
|
|
494
|
+
tags: ["voice", "tts"],
|
|
495
|
+
stability: StabilityEnum7.Beta
|
|
496
|
+
},
|
|
497
|
+
supportedModes: ["managed", "byok"],
|
|
498
|
+
capabilities: {
|
|
499
|
+
provides: [{ key: "ai.voice.synthesis", version: "1.0.0" }]
|
|
500
|
+
},
|
|
501
|
+
configSchema: {
|
|
502
|
+
schema: {
|
|
503
|
+
type: "object",
|
|
504
|
+
properties: {
|
|
505
|
+
defaultVoiceId: {
|
|
506
|
+
type: "string",
|
|
507
|
+
description: "Optional default voice identifier for synthesis requests."
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
example: {
|
|
512
|
+
defaultVoiceId: "pNInz6obpgDQGcFmaJgB"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
secretSchema: {
|
|
516
|
+
schema: {
|
|
517
|
+
type: "object",
|
|
518
|
+
required: ["apiKey"],
|
|
519
|
+
properties: {
|
|
520
|
+
apiKey: {
|
|
521
|
+
type: "string",
|
|
522
|
+
description: "ElevenLabs API key with text-to-speech permissions."
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
example: {
|
|
527
|
+
apiKey: "eleven-***"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
healthCheck: {
|
|
531
|
+
method: "custom",
|
|
532
|
+
timeoutMs: 4000
|
|
533
|
+
},
|
|
534
|
+
docsUrl: "https://elevenlabs.io/docs/api-reference/text-to-speech",
|
|
535
|
+
constraints: {
|
|
536
|
+
rateLimit: {
|
|
537
|
+
rpm: 120
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
byokSetup: {
|
|
541
|
+
setupInstructions: "Create an ElevenLabs API key and ensure the desired voices are accessible to the key scope."
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
function registerElevenLabsIntegration(registry) {
|
|
545
|
+
return registry.register(elevenLabsIntegrationSpec);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
// src/integrations/providers/gradium.ts
|
|
549
|
+
import { StabilityEnum as StabilityEnum8 } from "@contractspec/lib.contracts-spec/ownership";
|
|
550
|
+
var gradiumIntegrationSpec = defineIntegration({
|
|
551
|
+
meta: {
|
|
552
|
+
key: "ai-voice.gradium",
|
|
553
|
+
version: "1.0.0",
|
|
554
|
+
category: "ai-voice",
|
|
555
|
+
title: "Gradium Text-to-Speech",
|
|
556
|
+
description: "Gradium integration for low-latency voice synthesis and voice catalog access.",
|
|
557
|
+
domain: "ai",
|
|
558
|
+
owners: ["platform.ai"],
|
|
559
|
+
tags: ["voice", "tts", "realtime"],
|
|
560
|
+
stability: StabilityEnum8.Experimental
|
|
561
|
+
},
|
|
562
|
+
supportedModes: ["byok"],
|
|
563
|
+
capabilities: {
|
|
564
|
+
provides: [{ key: "ai.voice.synthesis", version: "1.0.0" }]
|
|
565
|
+
},
|
|
566
|
+
configSchema: {
|
|
567
|
+
schema: {
|
|
568
|
+
type: "object",
|
|
569
|
+
properties: {
|
|
570
|
+
defaultVoiceId: {
|
|
571
|
+
type: "string",
|
|
572
|
+
description: "Optional default voice identifier used for synthesis."
|
|
573
|
+
},
|
|
574
|
+
region: {
|
|
575
|
+
type: "string",
|
|
576
|
+
enum: ["eu", "us"],
|
|
577
|
+
description: "Gradium region used by the SDK (eu or us)."
|
|
578
|
+
},
|
|
579
|
+
baseUrl: {
|
|
580
|
+
type: "string",
|
|
581
|
+
description: "Optional API base URL override for private routing or proxies."
|
|
582
|
+
},
|
|
583
|
+
timeoutMs: {
|
|
584
|
+
type: "number",
|
|
585
|
+
description: "Optional request timeout in milliseconds."
|
|
586
|
+
},
|
|
587
|
+
outputFormat: {
|
|
588
|
+
type: "string",
|
|
589
|
+
enum: [
|
|
590
|
+
"wav",
|
|
591
|
+
"pcm",
|
|
592
|
+
"opus",
|
|
593
|
+
"ulaw_8000",
|
|
594
|
+
"alaw_8000",
|
|
595
|
+
"pcm_16000",
|
|
596
|
+
"pcm_24000"
|
|
597
|
+
],
|
|
598
|
+
description: "Optional default output format used when no format is specified."
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
example: {
|
|
603
|
+
defaultVoiceId: "YTpq7expH9539ERJ",
|
|
604
|
+
region: "eu",
|
|
605
|
+
timeoutMs: 15000,
|
|
606
|
+
outputFormat: "wav"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
secretSchema: {
|
|
610
|
+
schema: {
|
|
611
|
+
type: "object",
|
|
612
|
+
required: ["apiKey"],
|
|
613
|
+
properties: {
|
|
614
|
+
apiKey: {
|
|
615
|
+
type: "string",
|
|
616
|
+
description: "Gradium API key with TTS access."
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
example: {
|
|
621
|
+
apiKey: "gd_***"
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
healthCheck: {
|
|
625
|
+
method: "custom",
|
|
626
|
+
timeoutMs: 5000
|
|
627
|
+
},
|
|
628
|
+
docsUrl: "https://gradium.ai/api_docs.html",
|
|
629
|
+
byokSetup: {
|
|
630
|
+
setupInstructions: "Create a Gradium API key, select the target region, and store credentials in your tenant secret provider."
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
function registerGradiumIntegration(registry) {
|
|
634
|
+
return registry.register(gradiumIntegrationSpec);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
// src/integrations/providers/fal.ts
|
|
638
|
+
import { StabilityEnum as StabilityEnum9 } from "@contractspec/lib.contracts-spec/ownership";
|
|
639
|
+
var falIntegrationSpec = defineIntegration({
|
|
640
|
+
meta: {
|
|
641
|
+
key: "ai-voice.fal",
|
|
642
|
+
version: "1.0.0",
|
|
643
|
+
category: "ai-voice",
|
|
644
|
+
title: "Fal Chatterbox Text-to-Speech",
|
|
645
|
+
description: "Fal integration for voice synthesis using Chatterbox text-to-speech models.",
|
|
646
|
+
domain: "ai",
|
|
647
|
+
owners: ["platform.ai"],
|
|
648
|
+
tags: ["voice", "tts", "chatterbox"],
|
|
649
|
+
stability: StabilityEnum9.Experimental
|
|
650
|
+
},
|
|
651
|
+
supportedModes: ["byok"],
|
|
652
|
+
capabilities: {
|
|
653
|
+
provides: [{ key: "ai.voice.synthesis", version: "1.0.0" }]
|
|
654
|
+
},
|
|
655
|
+
configSchema: {
|
|
656
|
+
schema: {
|
|
657
|
+
type: "object",
|
|
658
|
+
properties: {
|
|
659
|
+
modelId: {
|
|
660
|
+
type: "string",
|
|
661
|
+
description: "Fal model endpoint identifier (e.g. fal-ai/chatterbox/text-to-speech)."
|
|
662
|
+
},
|
|
663
|
+
defaultVoiceUrl: {
|
|
664
|
+
type: "string",
|
|
665
|
+
description: "Optional reference audio URL used as default voice conditioning input."
|
|
666
|
+
},
|
|
667
|
+
defaultExaggeration: {
|
|
668
|
+
type: "number",
|
|
669
|
+
minimum: 0,
|
|
670
|
+
maximum: 1,
|
|
671
|
+
description: "Optional default exaggeration value for speech output."
|
|
672
|
+
},
|
|
673
|
+
defaultTemperature: {
|
|
674
|
+
type: "number",
|
|
675
|
+
minimum: 0.05,
|
|
676
|
+
maximum: 2,
|
|
677
|
+
description: "Optional default temperature for synthesis requests."
|
|
678
|
+
},
|
|
679
|
+
defaultCfg: {
|
|
680
|
+
type: "number",
|
|
681
|
+
minimum: 0.1,
|
|
682
|
+
maximum: 1,
|
|
683
|
+
description: "Optional default cfg value for synthesis requests."
|
|
684
|
+
},
|
|
685
|
+
pollIntervalMs: {
|
|
686
|
+
type: "number",
|
|
687
|
+
description: "Optional queue polling interval in milliseconds."
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
example: {
|
|
692
|
+
modelId: "fal-ai/chatterbox/text-to-speech",
|
|
693
|
+
defaultVoiceUrl: "https://storage.googleapis.com/chatterbox-demo-samples/prompts/male_rickmorty.mp3",
|
|
694
|
+
defaultExaggeration: 0.25,
|
|
695
|
+
defaultTemperature: 0.7,
|
|
696
|
+
defaultCfg: 0.5,
|
|
697
|
+
pollIntervalMs: 1000
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
secretSchema: {
|
|
701
|
+
schema: {
|
|
702
|
+
type: "object",
|
|
703
|
+
required: ["apiKey"],
|
|
704
|
+
properties: {
|
|
705
|
+
apiKey: {
|
|
706
|
+
type: "string",
|
|
707
|
+
description: "Fal API key (FAL_KEY)."
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
example: {
|
|
712
|
+
apiKey: "key-id:key-secret"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
healthCheck: {
|
|
716
|
+
method: "custom",
|
|
717
|
+
timeoutMs: 7000
|
|
718
|
+
},
|
|
719
|
+
docsUrl: "https://fal.ai/models/fal-ai/chatterbox/text-to-speech/api",
|
|
720
|
+
byokSetup: {
|
|
721
|
+
setupInstructions: "Create a Fal API key and configure the desired voice model endpoint before connecting tenants."
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
function registerFalIntegration(registry) {
|
|
725
|
+
return registry.register(falIntegrationSpec);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// src/integrations/providers/gmail.ts
|
|
729
|
+
import { StabilityEnum as StabilityEnum10 } from "@contractspec/lib.contracts-spec/ownership";
|
|
730
|
+
var gmailIntegrationSpec = defineIntegration({
|
|
731
|
+
meta: {
|
|
732
|
+
key: "email.gmail",
|
|
733
|
+
version: "1.0.0",
|
|
734
|
+
category: "email",
|
|
735
|
+
title: "Google Gmail API",
|
|
736
|
+
description: "Gmail integration supporting inbound thread ingestion and outbound transactional email.",
|
|
737
|
+
domain: "communications",
|
|
738
|
+
owners: ["platform.messaging"],
|
|
739
|
+
tags: ["email", "gmail"],
|
|
740
|
+
stability: StabilityEnum10.Beta
|
|
741
|
+
},
|
|
742
|
+
supportedModes: ["managed", "byok"],
|
|
743
|
+
capabilities: {
|
|
744
|
+
provides: [
|
|
745
|
+
{ key: "email.inbound", version: "1.0.0" },
|
|
746
|
+
{ key: "email.outbound", version: "1.0.0" }
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
configSchema: {
|
|
750
|
+
schema: {
|
|
751
|
+
type: "object",
|
|
752
|
+
properties: {
|
|
753
|
+
labelIds: {
|
|
754
|
+
type: "array",
|
|
755
|
+
items: { type: "string" },
|
|
756
|
+
description: "Optional list of label IDs to scope inbound sync."
|
|
757
|
+
},
|
|
758
|
+
includeSpamTrash: {
|
|
759
|
+
type: "boolean",
|
|
760
|
+
description: "Whether to include spam or trash messages during sync."
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
example: {
|
|
765
|
+
labelIds: ["INBOX"],
|
|
766
|
+
includeSpamTrash: false
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
secretSchema: {
|
|
770
|
+
schema: {
|
|
771
|
+
type: "object",
|
|
772
|
+
required: ["clientId", "clientSecret", "refreshToken"],
|
|
773
|
+
properties: {
|
|
774
|
+
clientId: {
|
|
775
|
+
type: "string",
|
|
776
|
+
description: "OAuth client ID for the Google Cloud project."
|
|
777
|
+
},
|
|
778
|
+
clientSecret: {
|
|
779
|
+
type: "string",
|
|
780
|
+
description: "OAuth client secret for the Google Cloud project."
|
|
781
|
+
},
|
|
782
|
+
refreshToken: {
|
|
783
|
+
type: "string",
|
|
784
|
+
description: "OAuth refresh token for delegated Gmail access."
|
|
785
|
+
},
|
|
786
|
+
redirectUri: {
|
|
787
|
+
type: "string",
|
|
788
|
+
description: "Optional redirect URI used when issuing the refresh token."
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
example: {
|
|
793
|
+
clientId: "xxx.apps.googleusercontent.com",
|
|
794
|
+
clientSecret: "secret",
|
|
795
|
+
refreshToken: "refresh-token"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
healthCheck: {
|
|
799
|
+
method: "custom",
|
|
800
|
+
timeoutMs: 4000
|
|
801
|
+
},
|
|
802
|
+
docsUrl: "https://developers.google.com/gmail/api",
|
|
803
|
+
constraints: {
|
|
804
|
+
rateLimit: {
|
|
805
|
+
rpm: 600
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
byokSetup: {
|
|
809
|
+
setupInstructions: "Create an OAuth consent screen and credentials within Google Cloud Console, then authorize the Gmail scopes and store the resulting refresh token."
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
function registerGmailIntegration(registry) {
|
|
813
|
+
return registry.register(gmailIntegrationSpec);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
// src/integrations/providers/google-calendar.ts
|
|
817
|
+
import { StabilityEnum as StabilityEnum11 } from "@contractspec/lib.contracts-spec/ownership";
|
|
818
|
+
var googleCalendarIntegrationSpec = defineIntegration({
|
|
819
|
+
meta: {
|
|
820
|
+
key: "calendar.google",
|
|
821
|
+
version: "1.0.0",
|
|
822
|
+
category: "calendar",
|
|
823
|
+
title: "Google Calendar API",
|
|
824
|
+
description: "Google Calendar integration for event creation, updates, and scheduling automations.",
|
|
825
|
+
domain: "productivity",
|
|
826
|
+
owners: ["platform.messaging"],
|
|
827
|
+
tags: ["calendar", "google"],
|
|
828
|
+
stability: StabilityEnum11.Beta
|
|
829
|
+
},
|
|
830
|
+
supportedModes: ["managed", "byok"],
|
|
831
|
+
capabilities: {
|
|
832
|
+
provides: [{ key: "calendar.events", version: "1.0.0" }]
|
|
833
|
+
},
|
|
834
|
+
configSchema: {
|
|
835
|
+
schema: {
|
|
836
|
+
type: "object",
|
|
837
|
+
properties: {
|
|
838
|
+
calendarId: {
|
|
839
|
+
type: "string",
|
|
840
|
+
description: "Default calendar identifier (defaults to primary)."
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
example: {
|
|
845
|
+
calendarId: "primary"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
secretSchema: {
|
|
849
|
+
schema: {
|
|
850
|
+
type: "object",
|
|
851
|
+
required: ["clientEmail", "privateKey"],
|
|
852
|
+
properties: {
|
|
853
|
+
clientEmail: {
|
|
854
|
+
type: "string",
|
|
855
|
+
description: "Service account client email."
|
|
856
|
+
},
|
|
857
|
+
privateKey: {
|
|
858
|
+
type: "string",
|
|
859
|
+
description: "Service account private key."
|
|
860
|
+
},
|
|
861
|
+
projectId: {
|
|
862
|
+
type: "string",
|
|
863
|
+
description: "Google Cloud project ID."
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
example: {
|
|
868
|
+
clientEmail: "svc-calendar@example.iam.gserviceaccount.com",
|
|
869
|
+
privateKey: "-----BEGIN PRIVATE KEY-----...",
|
|
870
|
+
projectId: "calendar-project"
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
healthCheck: {
|
|
874
|
+
method: "custom",
|
|
875
|
+
timeoutMs: 4000
|
|
876
|
+
},
|
|
877
|
+
docsUrl: "https://developers.google.com/calendar/api",
|
|
878
|
+
constraints: {},
|
|
879
|
+
byokSetup: {
|
|
880
|
+
setupInstructions: "Create a Google service account with Calendar access and share the target calendars with the service account email."
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
function registerGoogleCalendarIntegration(registry) {
|
|
884
|
+
return registry.register(googleCalendarIntegrationSpec);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
// src/integrations/providers/twilio-sms.ts
|
|
888
|
+
import { StabilityEnum as StabilityEnum12 } from "@contractspec/lib.contracts-spec/ownership";
|
|
889
|
+
var twilioSmsIntegrationSpec = defineIntegration({
|
|
890
|
+
meta: {
|
|
891
|
+
key: "sms.twilio",
|
|
892
|
+
version: "1.0.0",
|
|
893
|
+
category: "sms",
|
|
894
|
+
title: "Twilio Messaging",
|
|
895
|
+
description: "Twilio SMS integration for transactional and notification messaging.",
|
|
896
|
+
domain: "communications",
|
|
897
|
+
owners: ["platform.messaging"],
|
|
898
|
+
tags: ["sms", "messaging"],
|
|
899
|
+
stability: StabilityEnum12.Stable
|
|
900
|
+
},
|
|
901
|
+
supportedModes: ["managed", "byok"],
|
|
902
|
+
capabilities: {
|
|
903
|
+
provides: [{ key: "sms.outbound", version: "1.0.0" }]
|
|
904
|
+
},
|
|
905
|
+
configSchema: {
|
|
906
|
+
schema: {
|
|
907
|
+
type: "object",
|
|
908
|
+
properties: {
|
|
909
|
+
fromNumber: {
|
|
910
|
+
type: "string",
|
|
911
|
+
description: "Default Twilio phone number used as sender."
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
example: {
|
|
916
|
+
fromNumber: "+15551234567"
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
secretSchema: {
|
|
920
|
+
schema: {
|
|
921
|
+
type: "object",
|
|
922
|
+
required: ["accountSid", "authToken"],
|
|
923
|
+
properties: {
|
|
924
|
+
accountSid: {
|
|
925
|
+
type: "string",
|
|
926
|
+
description: "Twilio Account SID."
|
|
927
|
+
},
|
|
928
|
+
authToken: {
|
|
929
|
+
type: "string",
|
|
930
|
+
description: "Twilio Auth Token."
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
example: {
|
|
935
|
+
accountSid: "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
936
|
+
authToken: "auth-token"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
healthCheck: {
|
|
940
|
+
method: "custom",
|
|
941
|
+
timeoutMs: 3000
|
|
942
|
+
},
|
|
943
|
+
docsUrl: "https://www.twilio.com/docs/sms/api",
|
|
944
|
+
constraints: {
|
|
945
|
+
rateLimit: {
|
|
946
|
+
rpm: 200
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
byokSetup: {
|
|
950
|
+
setupInstructions: "Provide a Twilio account SID, auth token, and verify the outbound sending numbers used by the integration."
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
function registerTwilioSmsIntegration(registry) {
|
|
954
|
+
return registry.register(twilioSmsIntegrationSpec);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
// src/integrations/providers/gcs-storage.ts
|
|
958
|
+
import { StabilityEnum as StabilityEnum13 } from "@contractspec/lib.contracts-spec/ownership";
|
|
959
|
+
var gcsStorageIntegrationSpec = defineIntegration({
|
|
960
|
+
meta: {
|
|
961
|
+
key: "storage.gcs",
|
|
962
|
+
version: "1.0.0",
|
|
963
|
+
category: "storage",
|
|
964
|
+
title: "Google Cloud Storage Buckets",
|
|
965
|
+
description: "Google Cloud Storage integration for object storage and retrieval.",
|
|
966
|
+
domain: "infrastructure",
|
|
967
|
+
owners: ["platform.infrastructure"],
|
|
968
|
+
tags: ["storage", "gcs", "google-cloud"],
|
|
969
|
+
stability: StabilityEnum13.Beta
|
|
970
|
+
},
|
|
971
|
+
supportedModes: ["managed", "byok"],
|
|
972
|
+
capabilities: {
|
|
973
|
+
provides: [{ key: "storage.objects", version: "1.0.0" }]
|
|
974
|
+
},
|
|
975
|
+
configSchema: {
|
|
976
|
+
schema: {
|
|
977
|
+
type: "object",
|
|
978
|
+
required: ["bucket"],
|
|
979
|
+
properties: {
|
|
980
|
+
bucket: {
|
|
981
|
+
type: "string",
|
|
982
|
+
description: "Primary bucket name used for storing objects."
|
|
983
|
+
},
|
|
984
|
+
prefix: {
|
|
985
|
+
type: "string",
|
|
986
|
+
description: "Optional prefix applied to object keys."
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
example: {
|
|
991
|
+
bucket: "pfo-tenant-assets",
|
|
992
|
+
prefix: "documents/"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
secretSchema: {
|
|
996
|
+
schema: {
|
|
997
|
+
type: "object",
|
|
998
|
+
properties: {
|
|
999
|
+
type: {
|
|
1000
|
+
type: "string",
|
|
1001
|
+
description: "Service account type field from Google credentials JSON (if provided)."
|
|
1002
|
+
},
|
|
1003
|
+
client_email: { type: "string" },
|
|
1004
|
+
private_key: { type: "string" },
|
|
1005
|
+
project_id: { type: "string" }
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
example: {
|
|
1009
|
+
type: "service_account",
|
|
1010
|
+
client_email: "svc-account@example.iam.gserviceaccount.com",
|
|
1011
|
+
private_key: "-----BEGIN PRIVATE KEY-----...",
|
|
1012
|
+
project_id: "example-project"
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
healthCheck: {
|
|
1016
|
+
method: "ping",
|
|
1017
|
+
timeoutMs: 4000
|
|
1018
|
+
},
|
|
1019
|
+
docsUrl: "https://cloud.google.com/storage/docs/apis",
|
|
1020
|
+
constraints: {
|
|
1021
|
+
quotas: {
|
|
1022
|
+
storageGb: 5120
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
byokSetup: {
|
|
1026
|
+
setupInstructions: "Create a Google Cloud service account with Storage Object Admin role and upload the JSON credentials to the secret store."
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
function registerGcsStorageIntegration(registry) {
|
|
1030
|
+
return registry.register(gcsStorageIntegrationSpec);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
// src/integrations/providers/powens.ts
|
|
1034
|
+
import { StabilityEnum as StabilityEnum14 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1035
|
+
var powensIntegrationSpec = defineIntegration({
|
|
1036
|
+
meta: {
|
|
1037
|
+
key: "openbanking.powens",
|
|
1038
|
+
version: "1.0.0",
|
|
1039
|
+
category: "open-banking",
|
|
1040
|
+
title: "Powens Open Banking (Read)",
|
|
1041
|
+
description: "Read-only Open Banking integration powered by Powens, exposing accounts, transactions, and balances.",
|
|
1042
|
+
domain: "finance",
|
|
1043
|
+
owners: ["platform.finance"],
|
|
1044
|
+
tags: ["open-banking", "powens", "finance"],
|
|
1045
|
+
stability: StabilityEnum14.Experimental
|
|
1046
|
+
},
|
|
1047
|
+
supportedModes: ["byok"],
|
|
1048
|
+
capabilities: {
|
|
1049
|
+
provides: [
|
|
1050
|
+
{ key: "openbanking.accounts.read", version: "1.0.0" },
|
|
1051
|
+
{ key: "openbanking.transactions.read", version: "1.0.0" },
|
|
1052
|
+
{ key: "openbanking.balances.read", version: "1.0.0" }
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
configSchema: {
|
|
1056
|
+
schema: {
|
|
1057
|
+
type: "object",
|
|
1058
|
+
required: ["environment"],
|
|
1059
|
+
properties: {
|
|
1060
|
+
environment: {
|
|
1061
|
+
type: "string",
|
|
1062
|
+
enum: ["sandbox", "production"],
|
|
1063
|
+
description: "Powens environment to target. Sandbox uses Powens test API base URL, production uses live endpoints."
|
|
1064
|
+
},
|
|
1065
|
+
baseUrl: {
|
|
1066
|
+
type: "string",
|
|
1067
|
+
description: "Optional override for the Powens API base URL. Defaults to Powens environment defaults."
|
|
1068
|
+
},
|
|
1069
|
+
region: {
|
|
1070
|
+
type: "string",
|
|
1071
|
+
description: "Optional Powens region identifier when targeting a specific data residency cluster."
|
|
1072
|
+
},
|
|
1073
|
+
pollingIntervalMs: {
|
|
1074
|
+
type: "number",
|
|
1075
|
+
description: "Optional custom polling interval in milliseconds for background sync jobs (defaults to platform standard)."
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
example: {
|
|
1080
|
+
environment: "sandbox",
|
|
1081
|
+
baseUrl: "https://api-sandbox.powens.com/v2",
|
|
1082
|
+
region: "eu-west-1",
|
|
1083
|
+
pollingIntervalMs: 300000
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
secretSchema: {
|
|
1087
|
+
schema: {
|
|
1088
|
+
type: "object",
|
|
1089
|
+
required: ["clientId", "clientSecret"],
|
|
1090
|
+
properties: {
|
|
1091
|
+
clientId: {
|
|
1092
|
+
type: "string",
|
|
1093
|
+
description: "Powens OAuth client identifier obtained from the Powens Console (BYOK project)."
|
|
1094
|
+
},
|
|
1095
|
+
clientSecret: {
|
|
1096
|
+
type: "string",
|
|
1097
|
+
description: "Powens OAuth client secret used to exchange for access tokens."
|
|
1098
|
+
},
|
|
1099
|
+
apiKey: {
|
|
1100
|
+
type: "string",
|
|
1101
|
+
description: "Optional Powens API key (if the tenant project exposes a dedicated API token)."
|
|
1102
|
+
},
|
|
1103
|
+
webhookSecret: {
|
|
1104
|
+
type: "string",
|
|
1105
|
+
description: "Optional webhook signing secret used to verify Powens webhook payloads."
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
example: {
|
|
1110
|
+
clientId: "powens-client-id",
|
|
1111
|
+
clientSecret: "powens-client-secret",
|
|
1112
|
+
apiKey: "powens-api-key",
|
|
1113
|
+
webhookSecret: "powens-webhook-secret"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
healthCheck: {
|
|
1117
|
+
method: "ping",
|
|
1118
|
+
timeoutMs: 8000
|
|
1119
|
+
},
|
|
1120
|
+
docsUrl: "https://docs.powens.com/",
|
|
1121
|
+
constraints: {
|
|
1122
|
+
rateLimit: {
|
|
1123
|
+
rph: 1e4,
|
|
1124
|
+
rpm: 600
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
byokSetup: {
|
|
1128
|
+
setupInstructions: "Create a Powens BYOK project, generate OAuth credentials, and optionally configure webhook delivery for account/transaction updates.",
|
|
1129
|
+
requiredScopes: ["accounts:read", "transactions:read", "balances:read"]
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
function registerPowensIntegration(registry) {
|
|
1133
|
+
return registry.register(powensIntegrationSpec);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
// src/integrations/providers/posthog.ts
|
|
1137
|
+
import { StabilityEnum as StabilityEnum15 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1138
|
+
var posthogIntegrationSpec = defineIntegration({
|
|
1139
|
+
meta: {
|
|
1140
|
+
key: "analytics.posthog",
|
|
1141
|
+
version: "1.1.0",
|
|
1142
|
+
category: "analytics",
|
|
1143
|
+
title: "PostHog",
|
|
1144
|
+
description: "PostHog integration for product analytics, feature flags, HogQL queries, and LLM analytics with evaluations.",
|
|
1145
|
+
domain: "analytics",
|
|
1146
|
+
owners: ["@platform.integrations"],
|
|
1147
|
+
tags: ["analytics", "posthog", "llm", "ai"],
|
|
1148
|
+
stability: StabilityEnum15.Beta
|
|
1149
|
+
},
|
|
1150
|
+
supportedModes: ["managed", "byok"],
|
|
1151
|
+
capabilities: {
|
|
1152
|
+
provides: [
|
|
1153
|
+
{ key: "analytics.events", version: "1.0.0" },
|
|
1154
|
+
{ key: "analytics.feature-flags", version: "1.0.0" },
|
|
1155
|
+
{ key: "analytics.query", version: "1.0.0" },
|
|
1156
|
+
{ key: "analytics.events.read", version: "1.0.0" },
|
|
1157
|
+
{ key: "analytics.persons", version: "1.0.0" },
|
|
1158
|
+
{ key: "analytics.insights", version: "1.0.0" },
|
|
1159
|
+
{ key: "analytics.cohorts", version: "1.0.0" },
|
|
1160
|
+
{ key: "analytics.annotations", version: "1.0.0" },
|
|
1161
|
+
{ key: "analytics.llm-tracing", version: "1.0.0" },
|
|
1162
|
+
{ key: "analytics.llm-evaluations", version: "1.0.0" }
|
|
1163
|
+
]
|
|
1164
|
+
},
|
|
1165
|
+
configSchema: {
|
|
1166
|
+
schema: {
|
|
1167
|
+
type: "object",
|
|
1168
|
+
properties: {
|
|
1169
|
+
host: {
|
|
1170
|
+
type: "string",
|
|
1171
|
+
description: "PostHog host (e.g., https://app.posthog.com or self-hosted URL)."
|
|
1172
|
+
},
|
|
1173
|
+
projectId: {
|
|
1174
|
+
type: "string",
|
|
1175
|
+
description: "PostHog project ID for API queries."
|
|
1176
|
+
},
|
|
1177
|
+
mcpUrl: {
|
|
1178
|
+
type: "string",
|
|
1179
|
+
description: "Optional MCP endpoint URL for PostHog tools."
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
example: {
|
|
1184
|
+
host: "https://app.posthog.com",
|
|
1185
|
+
projectId: "12345"
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
secretSchema: {
|
|
1189
|
+
schema: {
|
|
1190
|
+
type: "object",
|
|
1191
|
+
required: ["personalApiKey"],
|
|
1192
|
+
properties: {
|
|
1193
|
+
personalApiKey: {
|
|
1194
|
+
type: "string",
|
|
1195
|
+
description: "PostHog personal API key (required for API reads/writes)."
|
|
1196
|
+
},
|
|
1197
|
+
projectApiKey: {
|
|
1198
|
+
type: "string",
|
|
1199
|
+
description: "PostHog project API key (required for capture/ingest events)."
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
example: {
|
|
1204
|
+
personalApiKey: "phx_personal_api_key",
|
|
1205
|
+
projectApiKey: "phc_project_api_key"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
healthCheck: {
|
|
1209
|
+
method: "custom",
|
|
1210
|
+
timeoutMs: 5000
|
|
1211
|
+
},
|
|
1212
|
+
docsUrl: "https://posthog.com/docs",
|
|
1213
|
+
byokSetup: {
|
|
1214
|
+
setupInstructions: "Generate a PostHog personal API key for read/write operations and a project API key for event capture."
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
function registerPosthogIntegration(registry) {
|
|
1218
|
+
return registry.register(posthogIntegrationSpec);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
// src/integrations/providers/posthog-llm-telemetry.ts
|
|
1222
|
+
import { StabilityEnum as StabilityEnum16 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1223
|
+
var posthogLLMTelemetrySpec = {
|
|
1224
|
+
meta: {
|
|
1225
|
+
key: "analytics.posthog.llm",
|
|
1226
|
+
version: "1.0.0",
|
|
1227
|
+
title: "PostHog LLM Analytics Telemetry",
|
|
1228
|
+
description: "Telemetry events for PostHog LLM Analytics: generation tracing, token usage, and evaluation-ready metadata.",
|
|
1229
|
+
domain: "analytics",
|
|
1230
|
+
owners: ["@platform.integrations"],
|
|
1231
|
+
tags: ["analytics", "posthog", "llm", "ai", "telemetry"],
|
|
1232
|
+
stability: StabilityEnum16.Beta
|
|
1233
|
+
},
|
|
1234
|
+
events: [
|
|
1235
|
+
{
|
|
1236
|
+
key: "posthog.llm.generation",
|
|
1237
|
+
version: "1.0.0",
|
|
1238
|
+
semantics: {
|
|
1239
|
+
who: "AI agent or LLM consumer",
|
|
1240
|
+
what: "Captures an LLM generation call with full observability metadata",
|
|
1241
|
+
why: "Enable LLM performance monitoring, cost tracking, and automated quality evaluations via PostHog"
|
|
1242
|
+
},
|
|
1243
|
+
properties: {
|
|
1244
|
+
$ai_model: {
|
|
1245
|
+
type: "string",
|
|
1246
|
+
required: true,
|
|
1247
|
+
description: "The LLM model identifier (e.g., gpt-4o, claude-sonnet-4-20250514)"
|
|
1248
|
+
},
|
|
1249
|
+
$ai_provider: {
|
|
1250
|
+
type: "string",
|
|
1251
|
+
required: true,
|
|
1252
|
+
description: "The LLM provider (e.g., openai, anthropic, contractspec)"
|
|
1253
|
+
},
|
|
1254
|
+
$ai_latency: {
|
|
1255
|
+
type: "number",
|
|
1256
|
+
required: false,
|
|
1257
|
+
description: "LLM call latency in seconds"
|
|
1258
|
+
},
|
|
1259
|
+
$ai_input_tokens: {
|
|
1260
|
+
type: "number",
|
|
1261
|
+
required: false,
|
|
1262
|
+
description: "Number of input/prompt tokens consumed"
|
|
1263
|
+
},
|
|
1264
|
+
$ai_output_tokens: {
|
|
1265
|
+
type: "number",
|
|
1266
|
+
required: false,
|
|
1267
|
+
description: "Number of output/completion tokens generated"
|
|
1268
|
+
},
|
|
1269
|
+
$ai_total_cost_usd: {
|
|
1270
|
+
type: "number",
|
|
1271
|
+
required: false,
|
|
1272
|
+
description: "Total cost in USD (input + output)"
|
|
1273
|
+
},
|
|
1274
|
+
$ai_is_error: {
|
|
1275
|
+
type: "boolean",
|
|
1276
|
+
required: false,
|
|
1277
|
+
description: "Whether the generation resulted in an error"
|
|
1278
|
+
},
|
|
1279
|
+
$ai_trace_id: {
|
|
1280
|
+
type: "string",
|
|
1281
|
+
required: false,
|
|
1282
|
+
description: "Trace ID for grouping related generations"
|
|
1283
|
+
},
|
|
1284
|
+
$ai_stream: {
|
|
1285
|
+
type: "boolean",
|
|
1286
|
+
required: false,
|
|
1287
|
+
description: "Whether the response was streamed"
|
|
1288
|
+
},
|
|
1289
|
+
$ai_time_to_first_token: {
|
|
1290
|
+
type: "number",
|
|
1291
|
+
required: false,
|
|
1292
|
+
description: "Time to first token in seconds (streaming only)"
|
|
1293
|
+
},
|
|
1294
|
+
$ai_tools: {
|
|
1295
|
+
type: "json",
|
|
1296
|
+
required: false,
|
|
1297
|
+
description: "Tools/functions available to the LLM"
|
|
1298
|
+
},
|
|
1299
|
+
$ai_input: {
|
|
1300
|
+
type: "json",
|
|
1301
|
+
required: false,
|
|
1302
|
+
pii: true,
|
|
1303
|
+
redact: true,
|
|
1304
|
+
description: "Messages sent to the LLM (may contain PII)"
|
|
1305
|
+
},
|
|
1306
|
+
$ai_output_choices: {
|
|
1307
|
+
type: "json",
|
|
1308
|
+
required: false,
|
|
1309
|
+
pii: true,
|
|
1310
|
+
redact: true,
|
|
1311
|
+
description: "Response choices from the LLM (may contain PII)"
|
|
1312
|
+
},
|
|
1313
|
+
contractspec_operation: {
|
|
1314
|
+
type: "string",
|
|
1315
|
+
required: false,
|
|
1316
|
+
description: "ContractSpec operation name"
|
|
1317
|
+
},
|
|
1318
|
+
contractspec_version: {
|
|
1319
|
+
type: "string",
|
|
1320
|
+
required: false,
|
|
1321
|
+
description: "ContractSpec operation version"
|
|
1322
|
+
},
|
|
1323
|
+
contractspec_agent_id: {
|
|
1324
|
+
type: "string",
|
|
1325
|
+
required: false,
|
|
1326
|
+
description: "ContractSpec agent identifier"
|
|
1327
|
+
},
|
|
1328
|
+
contractspec_finish_reason: {
|
|
1329
|
+
type: "string",
|
|
1330
|
+
required: false,
|
|
1331
|
+
description: "AI SDK finish reason (stop, tool-calls, error, etc.)"
|
|
1332
|
+
},
|
|
1333
|
+
contractspec_tool_count: {
|
|
1334
|
+
type: "number",
|
|
1335
|
+
required: false,
|
|
1336
|
+
description: "Number of tool calls made in this step"
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
privacy: "internal",
|
|
1340
|
+
tags: ["llm", "generation", "posthog"]
|
|
1341
|
+
}
|
|
1342
|
+
],
|
|
1343
|
+
config: {
|
|
1344
|
+
defaultRetentionDays: 90,
|
|
1345
|
+
defaultSamplingRate: 1,
|
|
1346
|
+
providers: [
|
|
1347
|
+
{
|
|
1348
|
+
type: "posthog",
|
|
1349
|
+
config: {
|
|
1350
|
+
eventName: "$ai_generation",
|
|
1351
|
+
enableEvaluations: true,
|
|
1352
|
+
evaluationTemplates: [
|
|
1353
|
+
"relevance",
|
|
1354
|
+
"helpfulness",
|
|
1355
|
+
"jailbreak",
|
|
1356
|
+
"hallucination",
|
|
1357
|
+
"toxicity"
|
|
1358
|
+
]
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
]
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1364
|
+
var POSTHOG_LLM_PII_FIELDS = [
|
|
1365
|
+
"$ai_input",
|
|
1366
|
+
"$ai_output_choices"
|
|
1367
|
+
];
|
|
1368
|
+
var POSTHOG_LLM_TELEMETRY_EVENTS = {
|
|
1369
|
+
generation: "$ai_generation",
|
|
1370
|
+
span: "$ai_span",
|
|
1371
|
+
evaluation: "$ai_evaluation"
|
|
1372
|
+
};
|
|
1373
|
+
var POSTHOG_EVALUATION_TEMPLATES = {
|
|
1374
|
+
relevance: "relevance",
|
|
1375
|
+
helpfulness: "helpfulness",
|
|
1376
|
+
jailbreak: "jailbreak",
|
|
1377
|
+
hallucination: "hallucination",
|
|
1378
|
+
toxicity: "toxicity"
|
|
1379
|
+
};
|
|
1380
|
+
function redactPostHogLLMTelemetryPayload(payload) {
|
|
1381
|
+
const redacted = { ...payload };
|
|
1382
|
+
for (const field of POSTHOG_LLM_PII_FIELDS) {
|
|
1383
|
+
if (field in redacted) {
|
|
1384
|
+
redacted[field] = "[REDACTED]";
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
return redacted;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
// src/integrations/providers/linear.ts
|
|
1391
|
+
import { StabilityEnum as StabilityEnum17 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1392
|
+
var linearIntegrationSpec = defineIntegration({
|
|
1393
|
+
meta: {
|
|
1394
|
+
key: "project-management.linear",
|
|
1395
|
+
version: "1.0.0",
|
|
1396
|
+
category: "project-management",
|
|
1397
|
+
title: "Linear",
|
|
1398
|
+
description: "Linear integration for issue tracking and project management workflows.",
|
|
1399
|
+
domain: "productivity",
|
|
1400
|
+
owners: ["@platform.integrations"],
|
|
1401
|
+
tags: ["project-management", "linear"],
|
|
1402
|
+
stability: StabilityEnum17.Beta
|
|
1403
|
+
},
|
|
1404
|
+
supportedModes: ["managed", "byok"],
|
|
1405
|
+
capabilities: {
|
|
1406
|
+
provides: [{ key: "project-management.work-items", version: "1.0.0" }]
|
|
1407
|
+
},
|
|
1408
|
+
configSchema: {
|
|
1409
|
+
schema: {
|
|
1410
|
+
type: "object",
|
|
1411
|
+
required: ["teamId"],
|
|
1412
|
+
properties: {
|
|
1413
|
+
teamId: {
|
|
1414
|
+
type: "string",
|
|
1415
|
+
description: "Linear team ID that owns created issues."
|
|
1416
|
+
},
|
|
1417
|
+
projectId: {
|
|
1418
|
+
type: "string",
|
|
1419
|
+
description: "Optional default project ID for new issues."
|
|
1420
|
+
},
|
|
1421
|
+
stateId: {
|
|
1422
|
+
type: "string",
|
|
1423
|
+
description: "Optional default workflow state ID."
|
|
1424
|
+
},
|
|
1425
|
+
assigneeId: {
|
|
1426
|
+
type: "string",
|
|
1427
|
+
description: "Optional default assignee ID."
|
|
1428
|
+
},
|
|
1429
|
+
labelIds: {
|
|
1430
|
+
type: "array",
|
|
1431
|
+
items: { type: "string" },
|
|
1432
|
+
description: "Optional label IDs applied to each issue."
|
|
1433
|
+
},
|
|
1434
|
+
tagLabelMap: {
|
|
1435
|
+
type: "object",
|
|
1436
|
+
additionalProperties: { type: "string" },
|
|
1437
|
+
description: "Optional mapping of tags to Linear label IDs (tag -> labelId)."
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
example: {
|
|
1442
|
+
teamId: "team_123",
|
|
1443
|
+
projectId: "proj_456",
|
|
1444
|
+
labelIds: ["label_1", "label_2"]
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
secretSchema: {
|
|
1448
|
+
schema: {
|
|
1449
|
+
type: "object",
|
|
1450
|
+
required: ["apiKey"],
|
|
1451
|
+
properties: {
|
|
1452
|
+
apiKey: {
|
|
1453
|
+
type: "string",
|
|
1454
|
+
description: "Linear API key (personal or service token)."
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
example: {
|
|
1459
|
+
apiKey: "lin_api_key"
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
healthCheck: {
|
|
1463
|
+
method: "custom",
|
|
1464
|
+
timeoutMs: 4000
|
|
1465
|
+
},
|
|
1466
|
+
docsUrl: "https://developers.linear.app",
|
|
1467
|
+
constraints: {},
|
|
1468
|
+
byokSetup: {
|
|
1469
|
+
setupInstructions: "Create a Linear API key with issue:write permission and store it as a secret."
|
|
1470
|
+
}
|
|
1471
|
+
});
|
|
1472
|
+
function registerLinearIntegration(registry) {
|
|
1473
|
+
return registry.register(linearIntegrationSpec);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
// src/integrations/providers/jira.ts
|
|
1477
|
+
import { StabilityEnum as StabilityEnum18 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1478
|
+
var jiraIntegrationSpec = defineIntegration({
|
|
1479
|
+
meta: {
|
|
1480
|
+
key: "project-management.jira",
|
|
1481
|
+
version: "1.0.0",
|
|
1482
|
+
category: "project-management",
|
|
1483
|
+
title: "Jira Cloud",
|
|
1484
|
+
description: "Jira Cloud integration for creating and tracking work items.",
|
|
1485
|
+
domain: "productivity",
|
|
1486
|
+
owners: ["@platform.integrations"],
|
|
1487
|
+
tags: ["project-management", "jira"],
|
|
1488
|
+
stability: StabilityEnum18.Beta
|
|
1489
|
+
},
|
|
1490
|
+
supportedModes: ["managed", "byok"],
|
|
1491
|
+
capabilities: {
|
|
1492
|
+
provides: [{ key: "project-management.work-items", version: "1.0.0" }]
|
|
1493
|
+
},
|
|
1494
|
+
configSchema: {
|
|
1495
|
+
schema: {
|
|
1496
|
+
type: "object",
|
|
1497
|
+
required: ["siteUrl"],
|
|
1498
|
+
properties: {
|
|
1499
|
+
siteUrl: {
|
|
1500
|
+
type: "string",
|
|
1501
|
+
description: "Jira Cloud site URL (e.g., https://acme.atlassian.net)."
|
|
1502
|
+
},
|
|
1503
|
+
projectKey: {
|
|
1504
|
+
type: "string",
|
|
1505
|
+
description: "Default Jira project key for new issues."
|
|
1506
|
+
},
|
|
1507
|
+
issueType: {
|
|
1508
|
+
type: "string",
|
|
1509
|
+
description: "Default Jira issue type (e.g., Task, Story)."
|
|
1510
|
+
},
|
|
1511
|
+
defaultLabels: {
|
|
1512
|
+
type: "array",
|
|
1513
|
+
items: { type: "string" },
|
|
1514
|
+
description: "Labels applied to each issue by default."
|
|
1515
|
+
},
|
|
1516
|
+
issueTypeMap: {
|
|
1517
|
+
type: "object",
|
|
1518
|
+
additionalProperties: { type: "string" },
|
|
1519
|
+
description: "Optional mapping from work item types to Jira issue types."
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
example: {
|
|
1524
|
+
siteUrl: "https://acme.atlassian.net",
|
|
1525
|
+
projectKey: "PM",
|
|
1526
|
+
issueType: "Task"
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
secretSchema: {
|
|
1530
|
+
schema: {
|
|
1531
|
+
type: "object",
|
|
1532
|
+
required: ["email", "apiToken"],
|
|
1533
|
+
properties: {
|
|
1534
|
+
email: {
|
|
1535
|
+
type: "string",
|
|
1536
|
+
description: "Jira account email used for API token auth."
|
|
1537
|
+
},
|
|
1538
|
+
apiToken: {
|
|
1539
|
+
type: "string",
|
|
1540
|
+
description: "Jira Cloud API token for the account."
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
example: {
|
|
1545
|
+
email: "user@acme.com",
|
|
1546
|
+
apiToken: "jira_api_token"
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
healthCheck: {
|
|
1550
|
+
method: "custom",
|
|
1551
|
+
timeoutMs: 4000
|
|
1552
|
+
},
|
|
1553
|
+
docsUrl: "https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/",
|
|
1554
|
+
constraints: {},
|
|
1555
|
+
byokSetup: {
|
|
1556
|
+
setupInstructions: "Create a Jira API token and store it with the associated account email."
|
|
1557
|
+
}
|
|
1558
|
+
});
|
|
1559
|
+
function registerJiraIntegration(registry) {
|
|
1560
|
+
return registry.register(jiraIntegrationSpec);
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
// src/integrations/providers/notion.ts
|
|
1564
|
+
import { StabilityEnum as StabilityEnum19 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1565
|
+
var notionIntegrationSpec = defineIntegration({
|
|
1566
|
+
meta: {
|
|
1567
|
+
key: "project-management.notion",
|
|
1568
|
+
version: "1.0.0",
|
|
1569
|
+
category: "project-management",
|
|
1570
|
+
title: "Notion",
|
|
1571
|
+
description: "Notion integration for creating shared project summaries and task entries.",
|
|
1572
|
+
domain: "productivity",
|
|
1573
|
+
owners: ["@platform.integrations"],
|
|
1574
|
+
tags: ["project-management", "notion"],
|
|
1575
|
+
stability: StabilityEnum19.Beta
|
|
1576
|
+
},
|
|
1577
|
+
supportedModes: ["managed", "byok"],
|
|
1578
|
+
capabilities: {
|
|
1579
|
+
provides: [{ key: "project-management.work-items", version: "1.0.0" }]
|
|
1580
|
+
},
|
|
1581
|
+
configSchema: {
|
|
1582
|
+
schema: {
|
|
1583
|
+
type: "object",
|
|
1584
|
+
properties: {
|
|
1585
|
+
databaseId: {
|
|
1586
|
+
type: "string",
|
|
1587
|
+
description: "Optional Notion database ID to store tasks."
|
|
1588
|
+
},
|
|
1589
|
+
summaryParentPageId: {
|
|
1590
|
+
type: "string",
|
|
1591
|
+
description: "Optional parent page ID for summary pages."
|
|
1592
|
+
},
|
|
1593
|
+
titleProperty: {
|
|
1594
|
+
type: "string",
|
|
1595
|
+
description: 'Database title property name (defaults to "Name").'
|
|
1596
|
+
},
|
|
1597
|
+
statusProperty: {
|
|
1598
|
+
type: "string",
|
|
1599
|
+
description: "Database status/select property name."
|
|
1600
|
+
},
|
|
1601
|
+
priorityProperty: {
|
|
1602
|
+
type: "string",
|
|
1603
|
+
description: "Database priority/select property name."
|
|
1604
|
+
},
|
|
1605
|
+
tagsProperty: {
|
|
1606
|
+
type: "string",
|
|
1607
|
+
description: "Database multi-select tags property name."
|
|
1608
|
+
},
|
|
1609
|
+
dueDateProperty: {
|
|
1610
|
+
type: "string",
|
|
1611
|
+
description: "Database date property name for due dates."
|
|
1612
|
+
},
|
|
1613
|
+
descriptionProperty: {
|
|
1614
|
+
type: "string",
|
|
1615
|
+
description: "Database rich-text property for descriptions."
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
example: {
|
|
1620
|
+
databaseId: "xxxxxxxxxxxxxxxx",
|
|
1621
|
+
summaryParentPageId: "yyyyyyyyyyyyyyyy",
|
|
1622
|
+
titleProperty: "Name",
|
|
1623
|
+
statusProperty: "Status"
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
secretSchema: {
|
|
1627
|
+
schema: {
|
|
1628
|
+
type: "object",
|
|
1629
|
+
required: ["apiKey"],
|
|
1630
|
+
properties: {
|
|
1631
|
+
apiKey: {
|
|
1632
|
+
type: "string",
|
|
1633
|
+
description: "Notion integration secret token."
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
example: {
|
|
1638
|
+
apiKey: "secret_notion_token"
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
healthCheck: {
|
|
1642
|
+
method: "custom",
|
|
1643
|
+
timeoutMs: 4000
|
|
1644
|
+
},
|
|
1645
|
+
docsUrl: "https://developers.notion.com",
|
|
1646
|
+
constraints: {},
|
|
1647
|
+
byokSetup: {
|
|
1648
|
+
setupInstructions: "Create a Notion internal integration, share the target database/page with it, and store the secret token."
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
function registerNotionIntegration(registry) {
|
|
1652
|
+
return registry.register(notionIntegrationSpec);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
// src/integrations/providers/granola.ts
|
|
1656
|
+
import { StabilityEnum as StabilityEnum20 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1657
|
+
var granolaIntegrationSpec = defineIntegration({
|
|
1658
|
+
meta: {
|
|
1659
|
+
key: "meeting-recorder.granola",
|
|
1660
|
+
version: "1.0.0",
|
|
1661
|
+
category: "meeting-recorder",
|
|
1662
|
+
title: "Granola Meeting Notes",
|
|
1663
|
+
description: "Granola meeting notes and transcripts via Enterprise API or MCP transport.",
|
|
1664
|
+
domain: "productivity",
|
|
1665
|
+
owners: ["platform.integrations"],
|
|
1666
|
+
tags: ["meeting-recorder", "granola", "transcripts"],
|
|
1667
|
+
stability: StabilityEnum20.Experimental
|
|
1668
|
+
},
|
|
1669
|
+
supportedModes: ["byok"],
|
|
1670
|
+
capabilities: {
|
|
1671
|
+
provides: [
|
|
1672
|
+
{ key: "meeting-recorder.meetings.read", version: "1.0.0" },
|
|
1673
|
+
{ key: "meeting-recorder.transcripts.read", version: "1.0.0" }
|
|
1674
|
+
]
|
|
1675
|
+
},
|
|
1676
|
+
configSchema: {
|
|
1677
|
+
schema: {
|
|
1678
|
+
type: "object",
|
|
1679
|
+
properties: {
|
|
1680
|
+
baseUrl: {
|
|
1681
|
+
type: "string",
|
|
1682
|
+
description: "Optional override for the Granola API base URL. Defaults to https://public-api.granola.ai for API transport."
|
|
1683
|
+
},
|
|
1684
|
+
transport: {
|
|
1685
|
+
type: "string",
|
|
1686
|
+
enum: ["api", "mcp"],
|
|
1687
|
+
description: "Transport mode for Granola integration. Use api for Enterprise API or mcp for broader MCP access."
|
|
1688
|
+
},
|
|
1689
|
+
mcpUrl: {
|
|
1690
|
+
type: "string",
|
|
1691
|
+
description: "Optional override for Granola MCP URL. Defaults to https://mcp.granola.ai/mcp."
|
|
1692
|
+
},
|
|
1693
|
+
mcpHeaders: {
|
|
1694
|
+
type: "object",
|
|
1695
|
+
additionalProperties: { type: "string" },
|
|
1696
|
+
description: "Optional static headers for MCP gateway/proxy setups."
|
|
1697
|
+
},
|
|
1698
|
+
pageSize: {
|
|
1699
|
+
type: "number",
|
|
1700
|
+
description: "Page size for listing notes (maximum 30 per Granola API)."
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
},
|
|
1704
|
+
example: {
|
|
1705
|
+
transport: "mcp",
|
|
1706
|
+
mcpUrl: "https://mcp.granola.ai/mcp",
|
|
1707
|
+
pageSize: 10
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
secretSchema: {
|
|
1711
|
+
schema: {
|
|
1712
|
+
type: "object",
|
|
1713
|
+
properties: {
|
|
1714
|
+
apiKey: {
|
|
1715
|
+
type: "string",
|
|
1716
|
+
description: "Granola API key used as a Bearer token for Enterprise API requests (transport=api)."
|
|
1717
|
+
},
|
|
1718
|
+
mcpAccessToken: {
|
|
1719
|
+
type: "string",
|
|
1720
|
+
description: "Optional bearer token for MCP proxy/gateway auth (transport=mcp)."
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
example: {
|
|
1725
|
+
mcpAccessToken: "granola-mcp-***"
|
|
1726
|
+
}
|
|
1727
|
+
},
|
|
1728
|
+
healthCheck: {
|
|
1729
|
+
method: "list",
|
|
1730
|
+
timeoutMs: 8000
|
|
1731
|
+
},
|
|
1732
|
+
docsUrl: "https://docs.granola.ai/help-center/sharing/integrations/mcp",
|
|
1733
|
+
byokSetup: {
|
|
1734
|
+
setupInstructions: "Use Granola MCP for browser OAuth access, or configure an Enterprise API key for REST transport."
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1737
|
+
function registerGranolaIntegration(registry) {
|
|
1738
|
+
return registry.register(granolaIntegrationSpec);
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
// src/integrations/providers/tldv.ts
|
|
1742
|
+
import { StabilityEnum as StabilityEnum21 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1743
|
+
var tldvIntegrationSpec = defineIntegration({
|
|
1744
|
+
meta: {
|
|
1745
|
+
key: "meeting-recorder.tldv",
|
|
1746
|
+
version: "1.0.0",
|
|
1747
|
+
category: "meeting-recorder",
|
|
1748
|
+
title: "tl;dv Meeting Recorder",
|
|
1749
|
+
description: "tl;dv Public API for meeting recordings, transcripts, and webhook events.",
|
|
1750
|
+
domain: "productivity",
|
|
1751
|
+
owners: ["platform.integrations"],
|
|
1752
|
+
tags: ["meeting-recorder", "tldv", "transcripts"],
|
|
1753
|
+
stability: StabilityEnum21.Experimental
|
|
1754
|
+
},
|
|
1755
|
+
supportedModes: ["byok"],
|
|
1756
|
+
capabilities: {
|
|
1757
|
+
provides: [
|
|
1758
|
+
{ key: "meeting-recorder.meetings.read", version: "1.0.0" },
|
|
1759
|
+
{ key: "meeting-recorder.transcripts.read", version: "1.0.0" },
|
|
1760
|
+
{ key: "meeting-recorder.webhooks", version: "1.0.0" }
|
|
1761
|
+
]
|
|
1762
|
+
},
|
|
1763
|
+
configSchema: {
|
|
1764
|
+
schema: {
|
|
1765
|
+
type: "object",
|
|
1766
|
+
properties: {
|
|
1767
|
+
baseUrl: {
|
|
1768
|
+
type: "string",
|
|
1769
|
+
description: "Optional override for the tl;dv API base URL. Defaults to https://pasta.tldv.io/v1alpha1."
|
|
1770
|
+
},
|
|
1771
|
+
webhookUrl: {
|
|
1772
|
+
type: "string",
|
|
1773
|
+
description: "Webhook destination URL configured in tl;dv settings (MeetingReady/TranscriptReady)."
|
|
1774
|
+
},
|
|
1775
|
+
webhookEvents: {
|
|
1776
|
+
type: "array",
|
|
1777
|
+
items: { type: "string" },
|
|
1778
|
+
description: "Webhook triggers to enable (MeetingReady, TranscriptReady)."
|
|
1779
|
+
},
|
|
1780
|
+
webhookScope: {
|
|
1781
|
+
type: "string",
|
|
1782
|
+
description: "Webhook scope to configure (user, team, or organization)."
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
example: {
|
|
1787
|
+
baseUrl: "https://pasta.tldv.io/v1alpha1",
|
|
1788
|
+
webhookUrl: "https://example.com/webhooks/tldv",
|
|
1789
|
+
webhookEvents: ["MeetingReady", "TranscriptReady"],
|
|
1790
|
+
webhookScope: "team"
|
|
1791
|
+
}
|
|
1792
|
+
},
|
|
1793
|
+
secretSchema: {
|
|
1794
|
+
schema: {
|
|
1795
|
+
type: "object",
|
|
1796
|
+
required: ["apiKey"],
|
|
1797
|
+
properties: {
|
|
1798
|
+
apiKey: {
|
|
1799
|
+
type: "string",
|
|
1800
|
+
description: "tl;dv API key used in the x-api-key header for API requests."
|
|
1801
|
+
},
|
|
1802
|
+
webhookSecret: {
|
|
1803
|
+
type: "string",
|
|
1804
|
+
description: "Optional shared secret for webhook verification if configured in your environment."
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
example: {
|
|
1809
|
+
apiKey: "tldv-***",
|
|
1810
|
+
webhookSecret: "tldv-webhook-secret"
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
healthCheck: {
|
|
1814
|
+
method: "ping",
|
|
1815
|
+
timeoutMs: 6000
|
|
1816
|
+
},
|
|
1817
|
+
docsUrl: "https://doc.tldv.io/index.html",
|
|
1818
|
+
byokSetup: {
|
|
1819
|
+
setupInstructions: "Generate a tl;dv API key and optionally configure MeetingReady/TranscriptReady webhooks."
|
|
1820
|
+
}
|
|
1821
|
+
});
|
|
1822
|
+
function registerTldvIntegration(registry) {
|
|
1823
|
+
return registry.register(tldvIntegrationSpec);
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
// src/integrations/providers/fireflies.ts
|
|
1827
|
+
import { StabilityEnum as StabilityEnum22 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1828
|
+
var firefliesIntegrationSpec = defineIntegration({
|
|
1829
|
+
meta: {
|
|
1830
|
+
key: "meeting-recorder.fireflies",
|
|
1831
|
+
version: "1.0.0",
|
|
1832
|
+
category: "meeting-recorder",
|
|
1833
|
+
title: "Fireflies.ai Meeting Recorder",
|
|
1834
|
+
description: "Fireflies GraphQL API for meeting transcripts, metadata, and webhook events.",
|
|
1835
|
+
domain: "productivity",
|
|
1836
|
+
owners: ["platform.integrations"],
|
|
1837
|
+
tags: ["meeting-recorder", "fireflies", "transcripts"],
|
|
1838
|
+
stability: StabilityEnum22.Experimental
|
|
1839
|
+
},
|
|
1840
|
+
supportedModes: ["byok"],
|
|
1841
|
+
capabilities: {
|
|
1842
|
+
provides: [
|
|
1843
|
+
{ key: "meeting-recorder.meetings.read", version: "1.0.0" },
|
|
1844
|
+
{ key: "meeting-recorder.transcripts.read", version: "1.0.0" },
|
|
1845
|
+
{ key: "meeting-recorder.webhooks", version: "1.0.0" }
|
|
1846
|
+
]
|
|
1847
|
+
},
|
|
1848
|
+
configSchema: {
|
|
1849
|
+
schema: {
|
|
1850
|
+
type: "object",
|
|
1851
|
+
properties: {
|
|
1852
|
+
baseUrl: {
|
|
1853
|
+
type: "string",
|
|
1854
|
+
description: "Optional override for the Fireflies GraphQL endpoint. Defaults to https://api.fireflies.ai/graphql."
|
|
1855
|
+
},
|
|
1856
|
+
webhookUrl: {
|
|
1857
|
+
type: "string",
|
|
1858
|
+
description: "Webhook destination URL configured in Fireflies developer settings."
|
|
1859
|
+
},
|
|
1860
|
+
webhookEvents: {
|
|
1861
|
+
type: "array",
|
|
1862
|
+
items: { type: "string" },
|
|
1863
|
+
description: "Webhook events to subscribe to (e.g., Transcription completed)."
|
|
1864
|
+
},
|
|
1865
|
+
transcriptsPageSize: {
|
|
1866
|
+
type: "number",
|
|
1867
|
+
description: "Number of transcripts to request per GraphQL query."
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
},
|
|
1871
|
+
example: {
|
|
1872
|
+
baseUrl: "https://api.fireflies.ai/graphql",
|
|
1873
|
+
webhookUrl: "https://example.com/webhooks/fireflies",
|
|
1874
|
+
webhookEvents: ["Transcription completed"],
|
|
1875
|
+
transcriptsPageSize: 25
|
|
1876
|
+
}
|
|
1877
|
+
},
|
|
1878
|
+
secretSchema: {
|
|
1879
|
+
schema: {
|
|
1880
|
+
type: "object",
|
|
1881
|
+
required: ["apiKey"],
|
|
1882
|
+
properties: {
|
|
1883
|
+
apiKey: {
|
|
1884
|
+
type: "string",
|
|
1885
|
+
description: "Fireflies API key for GraphQL requests."
|
|
1886
|
+
},
|
|
1887
|
+
webhookSecret: {
|
|
1888
|
+
type: "string",
|
|
1889
|
+
description: "Optional webhook secret used to verify x-hub-signature HMAC payloads."
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
example: {
|
|
1894
|
+
apiKey: "fireflies-***",
|
|
1895
|
+
webhookSecret: "fireflies-webhook-secret"
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
healthCheck: {
|
|
1899
|
+
method: "custom",
|
|
1900
|
+
timeoutMs: 6000
|
|
1901
|
+
},
|
|
1902
|
+
docsUrl: "https://docs.fireflies.ai/getting-started/introduction",
|
|
1903
|
+
byokSetup: {
|
|
1904
|
+
setupInstructions: "Create a Fireflies API key and optionally configure webhook settings in Developer Settings."
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1907
|
+
function registerFirefliesIntegration(registry) {
|
|
1908
|
+
return registry.register(firefliesIntegrationSpec);
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
// src/integrations/providers/fathom.ts
|
|
1912
|
+
import { StabilityEnum as StabilityEnum23 } from "@contractspec/lib.contracts-spec/ownership";
|
|
1913
|
+
var fathomIntegrationSpec = defineIntegration({
|
|
1914
|
+
meta: {
|
|
1915
|
+
key: "meeting-recorder.fathom",
|
|
1916
|
+
version: "1.0.0",
|
|
1917
|
+
category: "meeting-recorder",
|
|
1918
|
+
title: "Fathom Meeting Recorder",
|
|
1919
|
+
description: "Fathom External API for meetings, transcripts, and webhook events.",
|
|
1920
|
+
domain: "productivity",
|
|
1921
|
+
owners: ["platform.integrations"],
|
|
1922
|
+
tags: ["meeting-recorder", "fathom", "transcripts"],
|
|
1923
|
+
stability: StabilityEnum23.Experimental
|
|
1924
|
+
},
|
|
1925
|
+
supportedModes: ["byok"],
|
|
1926
|
+
capabilities: {
|
|
1927
|
+
provides: [
|
|
1928
|
+
{ key: "meeting-recorder.meetings.read", version: "1.0.0" },
|
|
1929
|
+
{ key: "meeting-recorder.transcripts.read", version: "1.0.0" },
|
|
1930
|
+
{ key: "meeting-recorder.webhooks", version: "1.0.0" }
|
|
1931
|
+
]
|
|
1932
|
+
},
|
|
1933
|
+
configSchema: {
|
|
1934
|
+
schema: {
|
|
1935
|
+
type: "object",
|
|
1936
|
+
properties: {
|
|
1937
|
+
baseUrl: {
|
|
1938
|
+
type: "string",
|
|
1939
|
+
description: "Optional override for the Fathom API base URL. Defaults to https://api.fathom.ai/external/v1."
|
|
1940
|
+
},
|
|
1941
|
+
webhookUrl: {
|
|
1942
|
+
type: "string",
|
|
1943
|
+
description: "Webhook destination URL used when registering Fathom webhooks."
|
|
1944
|
+
},
|
|
1945
|
+
includeTranscript: {
|
|
1946
|
+
type: "boolean",
|
|
1947
|
+
description: "Include transcript data in Fathom webhook payloads."
|
|
1948
|
+
},
|
|
1949
|
+
includeSummary: {
|
|
1950
|
+
type: "boolean",
|
|
1951
|
+
description: "Include summary data in Fathom webhook payloads."
|
|
1952
|
+
},
|
|
1953
|
+
includeActionItems: {
|
|
1954
|
+
type: "boolean",
|
|
1955
|
+
description: "Include action items in Fathom webhook payloads."
|
|
1956
|
+
},
|
|
1957
|
+
includeCrmMatches: {
|
|
1958
|
+
type: "boolean",
|
|
1959
|
+
description: "Include CRM matches in Fathom webhook payloads."
|
|
1960
|
+
},
|
|
1961
|
+
triggeredFor: {
|
|
1962
|
+
type: "array",
|
|
1963
|
+
items: { type: "string" },
|
|
1964
|
+
description: "Recording scopes to trigger webhooks for (e.g., my_recordings)."
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
example: {
|
|
1969
|
+
baseUrl: "https://api.fathom.ai/external/v1",
|
|
1970
|
+
webhookUrl: "https://example.com/webhooks/fathom",
|
|
1971
|
+
includeTranscript: true,
|
|
1972
|
+
includeSummary: true,
|
|
1973
|
+
includeActionItems: false,
|
|
1974
|
+
includeCrmMatches: false,
|
|
1975
|
+
triggeredFor: ["my_recordings"]
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
secretSchema: {
|
|
1979
|
+
schema: {
|
|
1980
|
+
type: "object",
|
|
1981
|
+
required: ["apiKey"],
|
|
1982
|
+
properties: {
|
|
1983
|
+
apiKey: {
|
|
1984
|
+
type: "string",
|
|
1985
|
+
description: "Fathom API key used in the X-Api-Key header."
|
|
1986
|
+
},
|
|
1987
|
+
webhookSecret: {
|
|
1988
|
+
type: "string",
|
|
1989
|
+
description: "Optional webhook secret used to verify Fathom webhook signatures."
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
example: {
|
|
1994
|
+
apiKey: "fathom-***",
|
|
1995
|
+
webhookSecret: "whsec_***"
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
healthCheck: {
|
|
1999
|
+
method: "list",
|
|
2000
|
+
timeoutMs: 8000
|
|
2001
|
+
},
|
|
2002
|
+
docsUrl: "https://developers.fathom.ai/",
|
|
2003
|
+
constraints: {
|
|
2004
|
+
rateLimit: {
|
|
2005
|
+
rpm: 60
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
byokSetup: {
|
|
2009
|
+
setupInstructions: "Generate an API key in Fathom settings and optionally configure webhooks for meeting content readiness."
|
|
2010
|
+
}
|
|
2011
|
+
});
|
|
2012
|
+
function registerFathomIntegration(registry) {
|
|
2013
|
+
return registry.register(fathomIntegrationSpec);
|
|
2014
|
+
}
|
|
2015
|
+
// src/integrations/providers/registry.ts
|
|
2016
|
+
function createDefaultIntegrationSpecRegistry() {
|
|
2017
|
+
const registry = new IntegrationSpecRegistry;
|
|
2018
|
+
registerStripeIntegration(registry);
|
|
2019
|
+
registerPostmarkIntegration(registry);
|
|
2020
|
+
registerQdrantIntegration(registry);
|
|
2021
|
+
registerSupabaseVectorIntegration(registry);
|
|
2022
|
+
registerSupabasePostgresIntegration(registry);
|
|
2023
|
+
registerMistralIntegration(registry);
|
|
2024
|
+
registerElevenLabsIntegration(registry);
|
|
2025
|
+
registerGradiumIntegration(registry);
|
|
2026
|
+
registerFalIntegration(registry);
|
|
2027
|
+
registerGmailIntegration(registry);
|
|
2028
|
+
registerGoogleCalendarIntegration(registry);
|
|
2029
|
+
registerPosthogIntegration(registry);
|
|
2030
|
+
registerTwilioSmsIntegration(registry);
|
|
2031
|
+
registerGcsStorageIntegration(registry);
|
|
2032
|
+
registerPowensIntegration(registry);
|
|
2033
|
+
registerLinearIntegration(registry);
|
|
2034
|
+
registerJiraIntegration(registry);
|
|
2035
|
+
registerNotionIntegration(registry);
|
|
2036
|
+
registerGranolaIntegration(registry);
|
|
2037
|
+
registerTldvIntegration(registry);
|
|
2038
|
+
registerFirefliesIntegration(registry);
|
|
2039
|
+
registerFathomIntegration(registry);
|
|
2040
|
+
return registry;
|
|
2041
|
+
}
|
|
2042
|
+
// src/integrations/openbanking/models.ts
|
|
2043
|
+
import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
|
|
2044
|
+
var BankAccountRecord = new SchemaModel({
|
|
2045
|
+
name: "BankAccountRecord",
|
|
2046
|
+
description: "Canonical representation of a bank account synced from an open banking provider.",
|
|
2047
|
+
fields: {
|
|
2048
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2049
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2050
|
+
userId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2051
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2052
|
+
externalId: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
2053
|
+
institutionId: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
2054
|
+
institutionName: {
|
|
2055
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
2056
|
+
isOptional: false
|
|
2057
|
+
},
|
|
2058
|
+
institutionLogoUrl: { type: ScalarTypeEnum.URL(), isOptional: true },
|
|
2059
|
+
iban: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
2060
|
+
bic: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
2061
|
+
accountType: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
2062
|
+
currency: { type: ScalarTypeEnum.Currency(), isOptional: false },
|
|
2063
|
+
displayName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
2064
|
+
accountNumberMasked: {
|
|
2065
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
2066
|
+
isOptional: true
|
|
2067
|
+
},
|
|
2068
|
+
productCode: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
2069
|
+
balance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
2070
|
+
availableBalance: {
|
|
2071
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
2072
|
+
isOptional: true
|
|
2073
|
+
},
|
|
2074
|
+
lastSyncedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
2075
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
2076
|
+
updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
2077
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
var BankTransactionRecord = new SchemaModel({
|
|
2081
|
+
name: "BankTransactionRecord",
|
|
2082
|
+
description: "Canonical transaction entry mapped from Powens into the open banking ledger.",
|
|
2083
|
+
fields: {
|
|
2084
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2085
|
+
accountId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2086
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2087
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2088
|
+
externalId: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
2089
|
+
amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
2090
|
+
currency: { type: ScalarTypeEnum.Currency(), isOptional: false },
|
|
2091
|
+
date: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
2092
|
+
bookingDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
2093
|
+
valueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
2094
|
+
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
2095
|
+
counterpartyName: {
|
|
2096
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
2097
|
+
isOptional: true
|
|
2098
|
+
},
|
|
2099
|
+
counterpartyAccount: {
|
|
2100
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
2101
|
+
isOptional: true
|
|
2102
|
+
},
|
|
2103
|
+
merchantCategoryCode: {
|
|
2104
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
2105
|
+
isOptional: true
|
|
2106
|
+
},
|
|
2107
|
+
rawCategory: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
2108
|
+
standardizedCategory: {
|
|
2109
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
2110
|
+
isOptional: true
|
|
2111
|
+
},
|
|
2112
|
+
transactionType: {
|
|
2113
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
2114
|
+
isOptional: false
|
|
2115
|
+
},
|
|
2116
|
+
status: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
2117
|
+
runningBalance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
2118
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
2119
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
2120
|
+
updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
2121
|
+
}
|
|
2122
|
+
});
|
|
2123
|
+
var AccountBalanceRecord = new SchemaModel({
|
|
2124
|
+
name: "AccountBalanceRecord",
|
|
2125
|
+
description: "Canonical balance snapshot computed from Powens balance payloads.",
|
|
2126
|
+
fields: {
|
|
2127
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2128
|
+
accountId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2129
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2130
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
2131
|
+
balanceType: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
2132
|
+
currentBalance: {
|
|
2133
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
2134
|
+
isOptional: false
|
|
2135
|
+
},
|
|
2136
|
+
availableBalance: {
|
|
2137
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
2138
|
+
isOptional: true
|
|
2139
|
+
},
|
|
2140
|
+
currency: { type: ScalarTypeEnum.Currency(), isOptional: false },
|
|
2141
|
+
lastUpdatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
2142
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
2143
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
2144
|
+
}
|
|
2145
|
+
});
|
|
2146
|
+
|
|
2147
|
+
// src/integrations/openbanking/telemetry.ts
|
|
2148
|
+
var OPENBANKING_PII_FIELDS = [
|
|
2149
|
+
"iban",
|
|
2150
|
+
"bic",
|
|
2151
|
+
"accountNumberMasked",
|
|
2152
|
+
"accountNumber",
|
|
2153
|
+
"counterpartyName",
|
|
2154
|
+
"counterpartyAccount",
|
|
2155
|
+
"description",
|
|
2156
|
+
"merchantName",
|
|
2157
|
+
"merchantCategoryCode",
|
|
2158
|
+
"reference"
|
|
2159
|
+
];
|
|
2160
|
+
var OPENBANKING_TELEMETRY_EVENTS = {
|
|
2161
|
+
accountsSynced: "openbanking.accounts.synced",
|
|
2162
|
+
accountsSyncFailed: "openbanking.accounts.sync_failed",
|
|
2163
|
+
transactionsSynced: "openbanking.transactions.synced",
|
|
2164
|
+
transactionsSyncFailed: "openbanking.transactions.sync_failed",
|
|
2165
|
+
balancesRefreshed: "openbanking.balances.refreshed",
|
|
2166
|
+
balancesRefreshFailed: "openbanking.balances.refresh_failed",
|
|
2167
|
+
overviewGenerated: "openbanking.overview.generated"
|
|
2168
|
+
};
|
|
2169
|
+
function redactOpenBankingTelemetryPayload(payload) {
|
|
2170
|
+
const redacted = {};
|
|
2171
|
+
for (const [key, value] of Object.entries(payload)) {
|
|
2172
|
+
if (OPENBANKING_PII_FIELDS.includes(key)) {
|
|
2173
|
+
redacted[key] = maskValue(value);
|
|
2174
|
+
} else if (Array.isArray(value)) {
|
|
2175
|
+
redacted[key] = value.map((item) => typeof item === "object" && item !== null ? redactOpenBankingTelemetryPayload(item) : item);
|
|
2176
|
+
} else if (typeof value === "object" && value !== null) {
|
|
2177
|
+
redacted[key] = redactOpenBankingTelemetryPayload(value);
|
|
2178
|
+
} else {
|
|
2179
|
+
redacted[key] = value;
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
return redacted;
|
|
2183
|
+
}
|
|
2184
|
+
function maskValue(value) {
|
|
2185
|
+
if (value == null)
|
|
2186
|
+
return "";
|
|
2187
|
+
const str = String(value);
|
|
2188
|
+
if (str.length <= 4)
|
|
2189
|
+
return "*".repeat(str.length);
|
|
2190
|
+
return `${"*".repeat(Math.max(str.length - 4, 0))}${str.slice(-4)}`;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
// src/integrations/openbanking/contracts/accounts.ts
|
|
2194
|
+
import { ScalarTypeEnum as ScalarTypeEnum2, SchemaModel as SchemaModel2 } from "@contractspec/lib.schema";
|
|
2195
|
+
import {
|
|
2196
|
+
defineCommand,
|
|
2197
|
+
defineQuery
|
|
2198
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
2199
|
+
var OpenBankingListAccountsInput = new SchemaModel2({
|
|
2200
|
+
name: "OpenBankingListAccountsInput",
|
|
2201
|
+
description: "Parameters for listing bank accounts through the open banking provider.",
|
|
2202
|
+
fields: {
|
|
2203
|
+
tenantId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
2204
|
+
userId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
2205
|
+
connectionId: { type: ScalarTypeEnum2.ID(), isOptional: true },
|
|
2206
|
+
includeBalances: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
2207
|
+
institutionId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
2208
|
+
cursor: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
2209
|
+
pageSize: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true }
|
|
2210
|
+
}
|
|
2211
|
+
});
|
|
2212
|
+
var OpenBankingListAccountsOutput = new SchemaModel2({
|
|
2213
|
+
name: "OpenBankingListAccountsOutput",
|
|
2214
|
+
description: "Paginated list of bank accounts available to the tenant and user.",
|
|
2215
|
+
fields: {
|
|
2216
|
+
accounts: {
|
|
2217
|
+
type: BankAccountRecord,
|
|
2218
|
+
isOptional: false,
|
|
2219
|
+
isArray: true
|
|
2220
|
+
},
|
|
2221
|
+
nextCursor: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
2222
|
+
hasMore: { type: ScalarTypeEnum2.Boolean(), isOptional: true }
|
|
2223
|
+
}
|
|
2224
|
+
});
|
|
2225
|
+
var OpenBankingGetAccountInput = new SchemaModel2({
|
|
2226
|
+
name: "OpenBankingGetAccountInput",
|
|
2227
|
+
description: "Parameters for retrieving a specific bank account.",
|
|
2228
|
+
fields: {
|
|
2229
|
+
tenantId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
2230
|
+
accountId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
2231
|
+
includeBalances: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
2232
|
+
includeLatestTransactions: {
|
|
2233
|
+
type: ScalarTypeEnum2.Boolean(),
|
|
2234
|
+
isOptional: true
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
});
|
|
2238
|
+
var OpenBankingSyncAccountsInput = new SchemaModel2({
|
|
2239
|
+
name: "OpenBankingSyncAccountsInput",
|
|
2240
|
+
description: "Command payload to trigger an account synchronisation against the open banking provider.",
|
|
2241
|
+
fields: {
|
|
2242
|
+
tenantId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
2243
|
+
userId: { type: ScalarTypeEnum2.ID(), isOptional: true },
|
|
2244
|
+
connectionId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
2245
|
+
accountIds: {
|
|
2246
|
+
type: ScalarTypeEnum2.ID(),
|
|
2247
|
+
isArray: true,
|
|
2248
|
+
isOptional: true
|
|
2249
|
+
},
|
|
2250
|
+
forceFullRefresh: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
2251
|
+
triggerWorkflows: { type: ScalarTypeEnum2.Boolean(), isOptional: true }
|
|
2252
|
+
}
|
|
2253
|
+
});
|
|
2254
|
+
var OpenBankingSyncAccountsOutput = new SchemaModel2({
|
|
2255
|
+
name: "OpenBankingSyncAccountsOutput",
|
|
2256
|
+
description: "Result of a bank account synchronisation run.",
|
|
2257
|
+
fields: {
|
|
2258
|
+
synced: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
2259
|
+
failed: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
2260
|
+
errors: {
|
|
2261
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
2262
|
+
isArray: true,
|
|
2263
|
+
isOptional: true
|
|
2264
|
+
},
|
|
2265
|
+
nextSyncSuggestedAt: {
|
|
2266
|
+
type: ScalarTypeEnum2.DateTime(),
|
|
2267
|
+
isOptional: true
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
});
|
|
2271
|
+
var OpenBankingListAccounts = defineQuery({
|
|
2272
|
+
meta: {
|
|
2273
|
+
key: "openbanking.accounts.list",
|
|
2274
|
+
version: "1.0.0",
|
|
2275
|
+
description: "List bank accounts available to a tenant/user via Powens Open Banking.",
|
|
2276
|
+
goal: "Provide downstream workflows with the set of accounts accessible via the configured open banking connection.",
|
|
2277
|
+
context: "Used by Pocket Family Office dashboards and sync workflows to enumerate bank accounts prior to syncing balances or transactions.",
|
|
2278
|
+
owners: ["@platform.finance"],
|
|
2279
|
+
tags: ["open-banking", "powens", "accounts"],
|
|
2280
|
+
stability: "experimental"
|
|
2281
|
+
},
|
|
2282
|
+
io: {
|
|
2283
|
+
input: OpenBankingListAccountsInput,
|
|
2284
|
+
output: OpenBankingListAccountsOutput
|
|
2285
|
+
},
|
|
2286
|
+
policy: {
|
|
2287
|
+
auth: "user"
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
var OpenBankingGetAccount = defineQuery({
|
|
2291
|
+
meta: {
|
|
2292
|
+
key: "openbanking.accounts.get",
|
|
2293
|
+
version: "1.0.0",
|
|
2294
|
+
description: "Retrieve the canonical bank account record for the given account identifier.",
|
|
2295
|
+
goal: "Allow user-facing experiences and automations to display up-to-date account metadata.",
|
|
2296
|
+
context: "Invoked by UI surfaces and workflow automation steps that require detailed metadata for a specific bank account.",
|
|
2297
|
+
owners: ["@platform.finance"],
|
|
2298
|
+
tags: ["open-banking", "powens", "accounts"],
|
|
2299
|
+
stability: "experimental"
|
|
2300
|
+
},
|
|
2301
|
+
io: {
|
|
2302
|
+
input: OpenBankingGetAccountInput,
|
|
2303
|
+
output: BankAccountRecord
|
|
2304
|
+
},
|
|
2305
|
+
policy: {
|
|
2306
|
+
auth: "user"
|
|
2307
|
+
}
|
|
2308
|
+
});
|
|
2309
|
+
var OpenBankingSyncAccounts = defineCommand({
|
|
2310
|
+
meta: {
|
|
2311
|
+
key: "openbanking.accounts.sync",
|
|
2312
|
+
version: "1.0.0",
|
|
2313
|
+
description: "Initiate a synchronisation run to refresh bank account metadata from Powens.",
|
|
2314
|
+
goal: "Keep canonical bank account records aligned with the external open banking provider.",
|
|
2315
|
+
context: "Triggered by scheduled workflows or manual operator actions to reconcile account metadata prior to transaction/balance syncs.",
|
|
2316
|
+
owners: ["@platform.finance"],
|
|
2317
|
+
tags: ["open-banking", "powens", "accounts"],
|
|
2318
|
+
stability: "experimental"
|
|
2319
|
+
},
|
|
2320
|
+
io: {
|
|
2321
|
+
input: OpenBankingSyncAccountsInput,
|
|
2322
|
+
output: OpenBankingSyncAccountsOutput
|
|
2323
|
+
},
|
|
2324
|
+
policy: {
|
|
2325
|
+
auth: "admin"
|
|
2326
|
+
},
|
|
2327
|
+
telemetry: {
|
|
2328
|
+
success: {
|
|
2329
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.accountsSynced },
|
|
2330
|
+
properties: ({ input, output }) => {
|
|
2331
|
+
const payload = input;
|
|
2332
|
+
const result = output;
|
|
2333
|
+
return {
|
|
2334
|
+
tenantId: payload?.tenantId,
|
|
2335
|
+
connectionId: payload?.connectionId,
|
|
2336
|
+
synced: result?.synced,
|
|
2337
|
+
failed: result?.failed
|
|
2338
|
+
};
|
|
2339
|
+
}
|
|
2340
|
+
},
|
|
2341
|
+
failure: {
|
|
2342
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.accountsSyncFailed },
|
|
2343
|
+
properties: ({ input, error }) => {
|
|
2344
|
+
const payload = input;
|
|
2345
|
+
return {
|
|
2346
|
+
tenantId: payload?.tenantId,
|
|
2347
|
+
connectionId: payload?.connectionId,
|
|
2348
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
2349
|
+
};
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
});
|
|
2354
|
+
var openBankingAccountContracts = {
|
|
2355
|
+
OpenBankingListAccounts,
|
|
2356
|
+
OpenBankingGetAccount,
|
|
2357
|
+
OpenBankingSyncAccounts
|
|
2358
|
+
};
|
|
2359
|
+
function registerOpenBankingAccountContracts(registry2) {
|
|
2360
|
+
return registry2.register(OpenBankingListAccounts).register(OpenBankingGetAccount).register(OpenBankingSyncAccounts);
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
// src/integrations/openbanking/contracts/transactions.ts
|
|
2364
|
+
import { ScalarTypeEnum as ScalarTypeEnum3, SchemaModel as SchemaModel3 } from "@contractspec/lib.schema";
|
|
2365
|
+
import {
|
|
2366
|
+
defineCommand as defineCommand2,
|
|
2367
|
+
defineQuery as defineQuery2
|
|
2368
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
2369
|
+
var OpenBankingListTransactionsInput = new SchemaModel3({
|
|
2370
|
+
name: "OpenBankingListTransactionsInput",
|
|
2371
|
+
description: "Parameters for listing bank transactions from the canonical ledger.",
|
|
2372
|
+
fields: {
|
|
2373
|
+
tenantId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
2374
|
+
accountId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
2375
|
+
from: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
2376
|
+
to: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
2377
|
+
cursor: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
2378
|
+
pageSize: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true },
|
|
2379
|
+
direction: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
2380
|
+
minimumAmount: { type: ScalarTypeEnum3.Float_unsecure(), isOptional: true },
|
|
2381
|
+
maximumAmount: { type: ScalarTypeEnum3.Float_unsecure(), isOptional: true },
|
|
2382
|
+
category: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true }
|
|
2383
|
+
}
|
|
2384
|
+
});
|
|
2385
|
+
var OpenBankingListTransactionsOutput = new SchemaModel3({
|
|
2386
|
+
name: "OpenBankingListTransactionsOutput",
|
|
2387
|
+
description: "Paginated list of transactions for a bank account.",
|
|
2388
|
+
fields: {
|
|
2389
|
+
transactions: {
|
|
2390
|
+
type: BankTransactionRecord,
|
|
2391
|
+
isOptional: false,
|
|
2392
|
+
isArray: true
|
|
2393
|
+
},
|
|
2394
|
+
nextCursor: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
2395
|
+
hasMore: { type: ScalarTypeEnum3.Boolean(), isOptional: true }
|
|
2396
|
+
}
|
|
2397
|
+
});
|
|
2398
|
+
var OpenBankingSyncTransactionsInput = new SchemaModel3({
|
|
2399
|
+
name: "OpenBankingSyncTransactionsInput",
|
|
2400
|
+
description: "Command payload to synchronise transactions from the open banking provider into the canonical ledger.",
|
|
2401
|
+
fields: {
|
|
2402
|
+
tenantId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
2403
|
+
accountId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
2404
|
+
from: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
2405
|
+
to: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
2406
|
+
connectionId: { type: ScalarTypeEnum3.ID(), isOptional: true },
|
|
2407
|
+
includePending: { type: ScalarTypeEnum3.Boolean(), isOptional: true },
|
|
2408
|
+
backfillDays: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true }
|
|
2409
|
+
}
|
|
2410
|
+
});
|
|
2411
|
+
var OpenBankingSyncTransactionsOutput = new SchemaModel3({
|
|
2412
|
+
name: "OpenBankingSyncTransactionsOutput",
|
|
2413
|
+
description: "Result of a transaction synchronisation run.",
|
|
2414
|
+
fields: {
|
|
2415
|
+
synced: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: false },
|
|
2416
|
+
failed: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: false },
|
|
2417
|
+
earliestSyncedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
2418
|
+
latestSyncedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
2419
|
+
nextSinceToken: {
|
|
2420
|
+
type: ScalarTypeEnum3.String_unsecure(),
|
|
2421
|
+
isOptional: true
|
|
2422
|
+
},
|
|
2423
|
+
errors: {
|
|
2424
|
+
type: ScalarTypeEnum3.String_unsecure(),
|
|
2425
|
+
isArray: true,
|
|
2426
|
+
isOptional: true
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
});
|
|
2430
|
+
var OpenBankingListTransactions = defineQuery2({
|
|
2431
|
+
meta: {
|
|
2432
|
+
key: "openbanking.transactions.list",
|
|
2433
|
+
version: "1.0.0",
|
|
2434
|
+
description: "List bank transactions that have been normalised into the canonical ledger.",
|
|
2435
|
+
goal: "Allow downstream analytics and UI surfaces to page through canonical bank transactions.",
|
|
2436
|
+
context: "Used by Pocket Family Office dashboards, reconciliation workflows, and analytics data views.",
|
|
2437
|
+
owners: ["@platform.finance"],
|
|
2438
|
+
tags: ["open-banking", "powens", "transactions"],
|
|
2439
|
+
stability: "experimental"
|
|
2440
|
+
},
|
|
2441
|
+
io: {
|
|
2442
|
+
input: OpenBankingListTransactionsInput,
|
|
2443
|
+
output: OpenBankingListTransactionsOutput
|
|
2444
|
+
},
|
|
2445
|
+
policy: {
|
|
2446
|
+
auth: "user"
|
|
2447
|
+
}
|
|
2448
|
+
});
|
|
2449
|
+
var OpenBankingSyncTransactions = defineCommand2({
|
|
2450
|
+
meta: {
|
|
2451
|
+
key: "openbanking.transactions.sync",
|
|
2452
|
+
version: "1.0.0",
|
|
2453
|
+
description: "Synchronise transactions for a bank account by calling the configured open banking provider.",
|
|
2454
|
+
goal: "Ensure the canonical transaction ledger stays aligned with the external provider.",
|
|
2455
|
+
context: "Triggered by scheduled workflows or on-demand actions when activity is expected on an account.",
|
|
2456
|
+
owners: ["@platform.finance"],
|
|
2457
|
+
tags: ["open-banking", "powens", "transactions"],
|
|
2458
|
+
stability: "experimental"
|
|
2459
|
+
},
|
|
2460
|
+
io: {
|
|
2461
|
+
input: OpenBankingSyncTransactionsInput,
|
|
2462
|
+
output: OpenBankingSyncTransactionsOutput
|
|
2463
|
+
},
|
|
2464
|
+
policy: {
|
|
2465
|
+
auth: "admin"
|
|
2466
|
+
},
|
|
2467
|
+
telemetry: {
|
|
2468
|
+
success: {
|
|
2469
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.transactionsSynced },
|
|
2470
|
+
properties: ({ input, output }) => {
|
|
2471
|
+
const payload = input;
|
|
2472
|
+
const result = output;
|
|
2473
|
+
return {
|
|
2474
|
+
tenantId: payload?.tenantId,
|
|
2475
|
+
accountId: payload?.accountId,
|
|
2476
|
+
synced: result?.synced,
|
|
2477
|
+
failed: result?.failed,
|
|
2478
|
+
earliestSyncedAt: result?.earliestSyncedAt,
|
|
2479
|
+
latestSyncedAt: result?.latestSyncedAt
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
failure: {
|
|
2484
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.transactionsSyncFailed },
|
|
2485
|
+
properties: ({ input, error }) => {
|
|
2486
|
+
const payload = input;
|
|
2487
|
+
return {
|
|
2488
|
+
tenantId: payload?.tenantId,
|
|
2489
|
+
accountId: payload?.accountId,
|
|
2490
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
2491
|
+
};
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
});
|
|
2496
|
+
var openBankingTransactionContracts = {
|
|
2497
|
+
OpenBankingListTransactions,
|
|
2498
|
+
OpenBankingSyncTransactions
|
|
2499
|
+
};
|
|
2500
|
+
function registerOpenBankingTransactionContracts(registry2) {
|
|
2501
|
+
return registry2.register(OpenBankingListTransactions).register(OpenBankingSyncTransactions);
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
// src/integrations/openbanking/contracts/balances.ts
|
|
2505
|
+
import { ScalarTypeEnum as ScalarTypeEnum4, SchemaModel as SchemaModel4 } from "@contractspec/lib.schema";
|
|
2506
|
+
import {
|
|
2507
|
+
defineCommand as defineCommand3,
|
|
2508
|
+
defineQuery as defineQuery3
|
|
2509
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
2510
|
+
var OpenBankingGetBalancesInput = new SchemaModel4({
|
|
2511
|
+
name: "OpenBankingGetBalancesInput",
|
|
2512
|
+
description: "Parameters for retrieving bank account balances from the canonical ledger.",
|
|
2513
|
+
fields: {
|
|
2514
|
+
tenantId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
2515
|
+
accountId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
2516
|
+
balanceTypes: {
|
|
2517
|
+
type: ScalarTypeEnum4.String_unsecure(),
|
|
2518
|
+
isArray: true,
|
|
2519
|
+
isOptional: true
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
});
|
|
2523
|
+
var OpenBankingGetBalancesOutput = new SchemaModel4({
|
|
2524
|
+
name: "OpenBankingGetBalancesOutput",
|
|
2525
|
+
description: "Canonical balances for a bank account.",
|
|
2526
|
+
fields: {
|
|
2527
|
+
balances: {
|
|
2528
|
+
type: AccountBalanceRecord,
|
|
2529
|
+
isOptional: false,
|
|
2530
|
+
isArray: true
|
|
2531
|
+
},
|
|
2532
|
+
asOf: { type: ScalarTypeEnum4.DateTime(), isOptional: true }
|
|
2533
|
+
}
|
|
2534
|
+
});
|
|
2535
|
+
var OpenBankingRefreshBalancesInput = new SchemaModel4({
|
|
2536
|
+
name: "OpenBankingRefreshBalancesInput",
|
|
2537
|
+
description: "Command payload to refresh balances for a bank account via the open banking provider.",
|
|
2538
|
+
fields: {
|
|
2539
|
+
tenantId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
2540
|
+
accountId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
2541
|
+
connectionId: { type: ScalarTypeEnum4.ID(), isOptional: true },
|
|
2542
|
+
balanceTypes: {
|
|
2543
|
+
type: ScalarTypeEnum4.String_unsecure(),
|
|
2544
|
+
isArray: true,
|
|
2545
|
+
isOptional: true
|
|
2546
|
+
},
|
|
2547
|
+
forceRefresh: { type: ScalarTypeEnum4.Boolean(), isOptional: true }
|
|
2548
|
+
}
|
|
2549
|
+
});
|
|
2550
|
+
var OpenBankingRefreshBalancesOutput = new SchemaModel4({
|
|
2551
|
+
name: "OpenBankingRefreshBalancesOutput",
|
|
2552
|
+
description: "Result of a balance refresh against the open banking provider.",
|
|
2553
|
+
fields: {
|
|
2554
|
+
balances: {
|
|
2555
|
+
type: AccountBalanceRecord,
|
|
2556
|
+
isOptional: false,
|
|
2557
|
+
isArray: true
|
|
2558
|
+
},
|
|
2559
|
+
refreshedAt: { type: ScalarTypeEnum4.DateTime(), isOptional: false },
|
|
2560
|
+
errors: {
|
|
2561
|
+
type: ScalarTypeEnum4.String_unsecure(),
|
|
2562
|
+
isArray: true,
|
|
2563
|
+
isOptional: true
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2566
|
+
});
|
|
2567
|
+
var OpenBankingGetBalances = defineQuery3({
|
|
2568
|
+
meta: {
|
|
2569
|
+
key: "openbanking.balances.get",
|
|
2570
|
+
version: "1.0.0",
|
|
2571
|
+
description: "Retrieve the latest cached balances for a bank account.",
|
|
2572
|
+
goal: "Expose current and available balances required by dashboards and analytics.",
|
|
2573
|
+
context: "Used by Pocket Family Office UI surfaces and automation steps that require balance totals prior to generating summaries.",
|
|
2574
|
+
owners: ["@platform.finance"],
|
|
2575
|
+
tags: ["open-banking", "powens", "balances"],
|
|
2576
|
+
stability: "experimental"
|
|
2577
|
+
},
|
|
2578
|
+
io: {
|
|
2579
|
+
input: OpenBankingGetBalancesInput,
|
|
2580
|
+
output: OpenBankingGetBalancesOutput
|
|
2581
|
+
},
|
|
2582
|
+
policy: {
|
|
2583
|
+
auth: "user"
|
|
2584
|
+
}
|
|
2585
|
+
});
|
|
2586
|
+
var OpenBankingRefreshBalances = defineCommand3({
|
|
2587
|
+
meta: {
|
|
2588
|
+
key: "openbanking.balances.refresh",
|
|
2589
|
+
version: "1.0.0",
|
|
2590
|
+
description: "Refresh balances for a bank account via the configured open banking provider.",
|
|
2591
|
+
goal: "Ensure canonical balance records reflect the latest values from Powens.",
|
|
2592
|
+
context: "Triggered by scheduled workflows before generating summaries or forecasting cashflow.",
|
|
2593
|
+
owners: ["@platform.finance"],
|
|
2594
|
+
tags: ["open-banking", "powens", "balances"],
|
|
2595
|
+
stability: "experimental"
|
|
2596
|
+
},
|
|
2597
|
+
io: {
|
|
2598
|
+
input: OpenBankingRefreshBalancesInput,
|
|
2599
|
+
output: OpenBankingRefreshBalancesOutput
|
|
2600
|
+
},
|
|
2601
|
+
policy: {
|
|
2602
|
+
auth: "admin"
|
|
2603
|
+
},
|
|
2604
|
+
telemetry: {
|
|
2605
|
+
success: {
|
|
2606
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.balancesRefreshed },
|
|
2607
|
+
properties: ({ input, output }) => {
|
|
2608
|
+
const payload = input;
|
|
2609
|
+
const result = output;
|
|
2610
|
+
return {
|
|
2611
|
+
tenantId: payload?.tenantId,
|
|
2612
|
+
accountId: payload?.accountId,
|
|
2613
|
+
refreshedAt: result?.refreshedAt,
|
|
2614
|
+
balanceCount: Array.isArray(result?.balances) ? result?.balances.length : undefined
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
failure: {
|
|
2619
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.balancesRefreshFailed },
|
|
2620
|
+
properties: ({ input, error }) => {
|
|
2621
|
+
const payload = input;
|
|
2622
|
+
return {
|
|
2623
|
+
tenantId: payload?.tenantId,
|
|
2624
|
+
accountId: payload?.accountId,
|
|
2625
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
2626
|
+
};
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
});
|
|
2631
|
+
var openBankingBalanceContracts = {
|
|
2632
|
+
OpenBankingGetBalances,
|
|
2633
|
+
OpenBankingRefreshBalances
|
|
2634
|
+
};
|
|
2635
|
+
function registerOpenBankingBalanceContracts(registry2) {
|
|
2636
|
+
return registry2.register(OpenBankingGetBalances).register(OpenBankingRefreshBalances);
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
// src/integrations/openbanking/openbanking.feature.ts
|
|
2640
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec/features";
|
|
2641
|
+
var OpenBankingFeature = defineFeature({
|
|
2642
|
+
meta: {
|
|
2643
|
+
key: "openbanking",
|
|
2644
|
+
version: "1.0.0",
|
|
2645
|
+
title: "Open Banking Integration",
|
|
2646
|
+
description: "Open banking account sync, balance refresh, and transaction synchronization",
|
|
2647
|
+
domain: "integrations",
|
|
2648
|
+
owners: ["@platform.finance"],
|
|
2649
|
+
tags: ["open-banking", "powens", "finance", "banking"],
|
|
2650
|
+
stability: "experimental"
|
|
2651
|
+
},
|
|
2652
|
+
operations: [
|
|
2653
|
+
{ key: "openbanking.accounts.sync", version: "1.0.0" },
|
|
2654
|
+
{ key: "openbanking.accounts.list", version: "1.0.0" },
|
|
2655
|
+
{ key: "openbanking.accounts.get", version: "1.0.0" },
|
|
2656
|
+
{ key: "openbanking.balances.refresh", version: "1.0.0" },
|
|
2657
|
+
{ key: "openbanking.balances.get", version: "1.0.0" },
|
|
2658
|
+
{ key: "openbanking.transactions.sync", version: "1.0.0" },
|
|
2659
|
+
{ key: "openbanking.transactions.list", version: "1.0.0" }
|
|
2660
|
+
],
|
|
2661
|
+
events: [],
|
|
2662
|
+
presentations: [],
|
|
2663
|
+
opToPresentation: [],
|
|
2664
|
+
presentationsTargets: [],
|
|
2665
|
+
capabilities: {
|
|
2666
|
+
provides: [{ key: "openbanking", version: "1.0.0" }],
|
|
2667
|
+
requires: [{ key: "identity", version: "1.0.0" }]
|
|
2668
|
+
}
|
|
2669
|
+
});
|
|
2670
|
+
// src/integrations/openbanking/contracts/index.ts
|
|
2671
|
+
function registerOpenBankingContracts(registry2) {
|
|
2672
|
+
return registerOpenBankingBalanceContracts(registerOpenBankingTransactionContracts(registerOpenBankingAccountContracts(registry2)));
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
// src/integrations/openbanking/guards.ts
|
|
2676
|
+
var PRIMARY_SLOT_ID = "primaryOpenBanking";
|
|
2677
|
+
function ensurePrimaryOpenBankingIntegration(config) {
|
|
2678
|
+
const integration = config.integrations.find((item) => item.slot.slotId === PRIMARY_SLOT_ID);
|
|
2679
|
+
if (!integration) {
|
|
2680
|
+
return {
|
|
2681
|
+
ok: false,
|
|
2682
|
+
error: "primaryOpenBanking slot is not bound in the resolved app config."
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2685
|
+
const status = integration.connection.status;
|
|
2686
|
+
if (status === "error" || status === "disconnected") {
|
|
2687
|
+
return {
|
|
2688
|
+
ok: false,
|
|
2689
|
+
integration,
|
|
2690
|
+
error: `primaryOpenBanking connection is in status "${status}".`
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
if (status === "unknown") {
|
|
2694
|
+
return {
|
|
2695
|
+
ok: false,
|
|
2696
|
+
integration,
|
|
2697
|
+
error: "primaryOpenBanking connection health is unknown."
|
|
2698
|
+
};
|
|
2699
|
+
}
|
|
2700
|
+
return { ok: true, integration };
|
|
2701
|
+
}
|
|
2702
|
+
function assertPrimaryOpenBankingReady(config) {
|
|
2703
|
+
const result = ensurePrimaryOpenBankingIntegration(config);
|
|
2704
|
+
if (!result.ok) {
|
|
2705
|
+
throw new Error(result.error ?? "Open banking integration not available.");
|
|
2706
|
+
}
|
|
2707
|
+
if (!result.integration) {
|
|
2708
|
+
throw new Error(result.error ?? "Open banking integration not available.");
|
|
2709
|
+
}
|
|
2710
|
+
return result.integration;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
// src/integrations/meeting-recorder/models.ts
|
|
2714
|
+
import { ScalarTypeEnum as ScalarTypeEnum5, SchemaModel as SchemaModel5 } from "@contractspec/lib.schema";
|
|
2715
|
+
var MeetingParticipantRecord = new SchemaModel5({
|
|
2716
|
+
name: "MeetingParticipantRecord",
|
|
2717
|
+
description: "Canonical participant entry for meetings and transcripts from recorder providers.",
|
|
2718
|
+
fields: {
|
|
2719
|
+
id: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2720
|
+
externalId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2721
|
+
name: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2722
|
+
email: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2723
|
+
role: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2724
|
+
isExternal: { type: ScalarTypeEnum5.Boolean(), isOptional: true },
|
|
2725
|
+
metadata: { type: ScalarTypeEnum5.JSONObject(), isOptional: true }
|
|
2726
|
+
}
|
|
2727
|
+
});
|
|
2728
|
+
var MeetingTranscriptSegmentRecord = new SchemaModel5({
|
|
2729
|
+
name: "MeetingTranscriptSegmentRecord",
|
|
2730
|
+
description: "A single transcript segment with speaker attribution.",
|
|
2731
|
+
fields: {
|
|
2732
|
+
index: { type: ScalarTypeEnum5.Int_unsecure(), isOptional: true },
|
|
2733
|
+
speakerId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2734
|
+
speakerName: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2735
|
+
speakerEmail: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2736
|
+
text: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
|
|
2737
|
+
startTimeMs: { type: ScalarTypeEnum5.Float_unsecure(), isOptional: true },
|
|
2738
|
+
endTimeMs: { type: ScalarTypeEnum5.Float_unsecure(), isOptional: true },
|
|
2739
|
+
startTime: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2740
|
+
endTime: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2741
|
+
confidence: { type: ScalarTypeEnum5.Float_unsecure(), isOptional: true },
|
|
2742
|
+
metadata: { type: ScalarTypeEnum5.JSONObject(), isOptional: true }
|
|
2743
|
+
}
|
|
2744
|
+
});
|
|
2745
|
+
var MeetingRecord = new SchemaModel5({
|
|
2746
|
+
name: "MeetingRecord",
|
|
2747
|
+
description: "Canonical meeting metadata synced from meeting recorder providers.",
|
|
2748
|
+
fields: {
|
|
2749
|
+
id: { type: ScalarTypeEnum5.ID(), isOptional: false },
|
|
2750
|
+
tenantId: { type: ScalarTypeEnum5.ID(), isOptional: false },
|
|
2751
|
+
connectionId: { type: ScalarTypeEnum5.ID(), isOptional: false },
|
|
2752
|
+
externalId: { type: ScalarTypeEnum5.NonEmptyString(), isOptional: false },
|
|
2753
|
+
title: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2754
|
+
summary: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2755
|
+
organizer: { type: MeetingParticipantRecord, isOptional: true },
|
|
2756
|
+
invitees: {
|
|
2757
|
+
type: MeetingParticipantRecord,
|
|
2758
|
+
isArray: true,
|
|
2759
|
+
isOptional: true
|
|
2760
|
+
},
|
|
2761
|
+
participants: {
|
|
2762
|
+
type: MeetingParticipantRecord,
|
|
2763
|
+
isArray: true,
|
|
2764
|
+
isOptional: true
|
|
2765
|
+
},
|
|
2766
|
+
scheduledStartAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2767
|
+
scheduledEndAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2768
|
+
recordingStartAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2769
|
+
recordingEndAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2770
|
+
durationSeconds: {
|
|
2771
|
+
type: ScalarTypeEnum5.Float_unsecure(),
|
|
2772
|
+
isOptional: true
|
|
2773
|
+
},
|
|
2774
|
+
meetingUrl: { type: ScalarTypeEnum5.URL(), isOptional: true },
|
|
2775
|
+
recordingUrl: { type: ScalarTypeEnum5.URL(), isOptional: true },
|
|
2776
|
+
shareUrl: { type: ScalarTypeEnum5.URL(), isOptional: true },
|
|
2777
|
+
sourcePlatform: {
|
|
2778
|
+
type: ScalarTypeEnum5.String_unsecure(),
|
|
2779
|
+
isOptional: true
|
|
2780
|
+
},
|
|
2781
|
+
language: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2782
|
+
transcriptAvailable: { type: ScalarTypeEnum5.Boolean(), isOptional: true },
|
|
2783
|
+
createdAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2784
|
+
updatedAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2785
|
+
metadata: { type: ScalarTypeEnum5.JSONObject(), isOptional: true }
|
|
2786
|
+
}
|
|
2787
|
+
});
|
|
2788
|
+
var MeetingTranscriptRecord = new SchemaModel5({
|
|
2789
|
+
name: "MeetingTranscriptRecord",
|
|
2790
|
+
description: "Canonical transcript payload for a recorded meeting.",
|
|
2791
|
+
fields: {
|
|
2792
|
+
id: { type: ScalarTypeEnum5.ID(), isOptional: false },
|
|
2793
|
+
meetingId: { type: ScalarTypeEnum5.ID(), isOptional: false },
|
|
2794
|
+
tenantId: { type: ScalarTypeEnum5.ID(), isOptional: false },
|
|
2795
|
+
connectionId: { type: ScalarTypeEnum5.ID(), isOptional: false },
|
|
2796
|
+
externalId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2797
|
+
format: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2798
|
+
text: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2799
|
+
segments: {
|
|
2800
|
+
type: MeetingTranscriptSegmentRecord,
|
|
2801
|
+
isArray: true,
|
|
2802
|
+
isOptional: true
|
|
2803
|
+
},
|
|
2804
|
+
language: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2805
|
+
sourceUrl: { type: ScalarTypeEnum5.URL(), isOptional: true },
|
|
2806
|
+
generatedAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2807
|
+
metadata: { type: ScalarTypeEnum5.JSONObject(), isOptional: true },
|
|
2808
|
+
raw: { type: ScalarTypeEnum5.JSON(), isOptional: true }
|
|
2809
|
+
}
|
|
2810
|
+
});
|
|
2811
|
+
var MeetingRecorderWebhookEventRecord = new SchemaModel5({
|
|
2812
|
+
name: "MeetingRecorderWebhookEventRecord",
|
|
2813
|
+
description: "Normalized webhook event from a meeting recorder provider.",
|
|
2814
|
+
fields: {
|
|
2815
|
+
id: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2816
|
+
providerKey: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2817
|
+
eventType: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2818
|
+
meetingId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2819
|
+
transcriptId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2820
|
+
recordingId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
2821
|
+
receivedAt: { type: ScalarTypeEnum5.DateTime(), isOptional: true },
|
|
2822
|
+
verified: { type: ScalarTypeEnum5.Boolean(), isOptional: true },
|
|
2823
|
+
payload: { type: ScalarTypeEnum5.JSON(), isOptional: true },
|
|
2824
|
+
metadata: { type: ScalarTypeEnum5.JSONObject(), isOptional: true }
|
|
2825
|
+
}
|
|
2826
|
+
});
|
|
2827
|
+
|
|
2828
|
+
// src/integrations/meeting-recorder/contracts/meetings.ts
|
|
2829
|
+
import { ScalarTypeEnum as ScalarTypeEnum6, SchemaModel as SchemaModel6 } from "@contractspec/lib.schema";
|
|
2830
|
+
import {
|
|
2831
|
+
defineQuery as defineQuery4
|
|
2832
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
2833
|
+
var MeetingRecorderListMeetingsInput = new SchemaModel6({
|
|
2834
|
+
name: "MeetingRecorderListMeetingsInput",
|
|
2835
|
+
description: "Parameters for listing meetings from a meeting recorder provider.",
|
|
2836
|
+
fields: {
|
|
2837
|
+
tenantId: { type: ScalarTypeEnum6.ID(), isOptional: false },
|
|
2838
|
+
connectionId: { type: ScalarTypeEnum6.ID(), isOptional: true },
|
|
2839
|
+
from: { type: ScalarTypeEnum6.DateTime(), isOptional: true },
|
|
2840
|
+
to: { type: ScalarTypeEnum6.DateTime(), isOptional: true },
|
|
2841
|
+
cursor: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
2842
|
+
pageSize: { type: ScalarTypeEnum6.Int_unsecure(), isOptional: true },
|
|
2843
|
+
query: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
2844
|
+
organizerEmail: {
|
|
2845
|
+
type: ScalarTypeEnum6.String_unsecure(),
|
|
2846
|
+
isOptional: true
|
|
2847
|
+
},
|
|
2848
|
+
participantEmail: {
|
|
2849
|
+
type: ScalarTypeEnum6.String_unsecure(),
|
|
2850
|
+
isOptional: true
|
|
2851
|
+
},
|
|
2852
|
+
includeTranscript: { type: ScalarTypeEnum6.Boolean(), isOptional: true },
|
|
2853
|
+
includeSummary: { type: ScalarTypeEnum6.Boolean(), isOptional: true }
|
|
2854
|
+
}
|
|
2855
|
+
});
|
|
2856
|
+
var MeetingRecorderListMeetingsOutput = new SchemaModel6({
|
|
2857
|
+
name: "MeetingRecorderListMeetingsOutput",
|
|
2858
|
+
description: "Paginated list of meetings for a recorder provider.",
|
|
2859
|
+
fields: {
|
|
2860
|
+
meetings: {
|
|
2861
|
+
type: MeetingRecord,
|
|
2862
|
+
isOptional: false,
|
|
2863
|
+
isArray: true
|
|
2864
|
+
},
|
|
2865
|
+
nextCursor: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
2866
|
+
hasMore: { type: ScalarTypeEnum6.Boolean(), isOptional: true }
|
|
2867
|
+
}
|
|
2868
|
+
});
|
|
2869
|
+
var MeetingRecorderGetMeetingInput = new SchemaModel6({
|
|
2870
|
+
name: "MeetingRecorderGetMeetingInput",
|
|
2871
|
+
description: "Parameters for retrieving a single meeting record.",
|
|
2872
|
+
fields: {
|
|
2873
|
+
tenantId: { type: ScalarTypeEnum6.ID(), isOptional: false },
|
|
2874
|
+
meetingId: { type: ScalarTypeEnum6.ID(), isOptional: false },
|
|
2875
|
+
connectionId: { type: ScalarTypeEnum6.ID(), isOptional: true },
|
|
2876
|
+
includeTranscript: { type: ScalarTypeEnum6.Boolean(), isOptional: true },
|
|
2877
|
+
includeSummary: { type: ScalarTypeEnum6.Boolean(), isOptional: true }
|
|
2878
|
+
}
|
|
2879
|
+
});
|
|
2880
|
+
var MeetingRecorderListMeetings = defineQuery4({
|
|
2881
|
+
meta: {
|
|
2882
|
+
key: "meeting-recorder.meetings.list",
|
|
2883
|
+
version: "1.0.0",
|
|
2884
|
+
description: "List meetings recorded by the configured meeting provider.",
|
|
2885
|
+
goal: "Provide downstream workflows with recent meetings and metadata.",
|
|
2886
|
+
context: "Used by integration hubs and sync workflows to enumerate meetings before pulling transcripts.",
|
|
2887
|
+
owners: ["@platform.integrations"],
|
|
2888
|
+
tags: ["meeting-recorder", "meetings", "transcripts"],
|
|
2889
|
+
stability: "experimental"
|
|
2890
|
+
},
|
|
2891
|
+
io: {
|
|
2892
|
+
input: MeetingRecorderListMeetingsInput,
|
|
2893
|
+
output: MeetingRecorderListMeetingsOutput
|
|
2894
|
+
},
|
|
2895
|
+
policy: {
|
|
2896
|
+
auth: "user"
|
|
2897
|
+
}
|
|
2898
|
+
});
|
|
2899
|
+
var MeetingRecorderGetMeeting = defineQuery4({
|
|
2900
|
+
meta: {
|
|
2901
|
+
key: "meeting-recorder.meetings.get",
|
|
2902
|
+
version: "1.0.0",
|
|
2903
|
+
description: "Retrieve metadata for a single meeting recording.",
|
|
2904
|
+
goal: "Allow downstream experiences to display detailed meeting metadata.",
|
|
2905
|
+
context: "Used when drilling into a specific meeting from a transcript or integration dashboard.",
|
|
2906
|
+
owners: ["@platform.integrations"],
|
|
2907
|
+
tags: ["meeting-recorder", "meetings"],
|
|
2908
|
+
stability: "experimental"
|
|
2909
|
+
},
|
|
2910
|
+
io: {
|
|
2911
|
+
input: MeetingRecorderGetMeetingInput,
|
|
2912
|
+
output: MeetingRecord
|
|
2913
|
+
},
|
|
2914
|
+
policy: {
|
|
2915
|
+
auth: "user"
|
|
2916
|
+
}
|
|
2917
|
+
});
|
|
2918
|
+
var meetingRecorderMeetingContracts = {
|
|
2919
|
+
MeetingRecorderListMeetings,
|
|
2920
|
+
MeetingRecorderGetMeeting
|
|
2921
|
+
};
|
|
2922
|
+
function registerMeetingRecorderMeetingContracts(registry2) {
|
|
2923
|
+
return registry2.register(MeetingRecorderListMeetings).register(MeetingRecorderGetMeeting);
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
// src/integrations/meeting-recorder/telemetry.ts
|
|
2927
|
+
var MEETING_RECORDER_PII_FIELDS = [
|
|
2928
|
+
"email",
|
|
2929
|
+
"organizerEmail",
|
|
2930
|
+
"participantEmail",
|
|
2931
|
+
"participants",
|
|
2932
|
+
"invitees",
|
|
2933
|
+
"attendees",
|
|
2934
|
+
"speakerName",
|
|
2935
|
+
"speakerEmail",
|
|
2936
|
+
"name",
|
|
2937
|
+
"phone",
|
|
2938
|
+
"phoneNumber",
|
|
2939
|
+
"displayName"
|
|
2940
|
+
];
|
|
2941
|
+
var MEETING_RECORDER_TELEMETRY_EVENTS = {
|
|
2942
|
+
meetingsSynced: "meeting-recorder.meetings.synced",
|
|
2943
|
+
meetingsSyncFailed: "meeting-recorder.meetings.sync_failed",
|
|
2944
|
+
transcriptsFetched: "meeting-recorder.transcripts.fetched",
|
|
2945
|
+
transcriptsFetchFailed: "meeting-recorder.transcripts.fetch_failed",
|
|
2946
|
+
transcriptsSynced: "meeting-recorder.transcripts.synced",
|
|
2947
|
+
transcriptsSyncFailed: "meeting-recorder.transcripts.sync_failed",
|
|
2948
|
+
webhookReceived: "meeting-recorder.webhooks.received",
|
|
2949
|
+
webhookRejected: "meeting-recorder.webhooks.rejected"
|
|
2950
|
+
};
|
|
2951
|
+
function redactMeetingRecorderTelemetryPayload(payload) {
|
|
2952
|
+
const redacted = {};
|
|
2953
|
+
for (const [key, value] of Object.entries(payload)) {
|
|
2954
|
+
if (MEETING_RECORDER_PII_FIELDS.includes(key)) {
|
|
2955
|
+
redacted[key] = maskValue2(value);
|
|
2956
|
+
} else if (Array.isArray(value)) {
|
|
2957
|
+
redacted[key] = value.map((item) => typeof item === "object" && item !== null ? redactMeetingRecorderTelemetryPayload(item) : item);
|
|
2958
|
+
} else if (typeof value === "object" && value !== null) {
|
|
2959
|
+
redacted[key] = redactMeetingRecorderTelemetryPayload(value);
|
|
2960
|
+
} else {
|
|
2961
|
+
redacted[key] = value;
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
return redacted;
|
|
2965
|
+
}
|
|
2966
|
+
function maskValue2(value) {
|
|
2967
|
+
if (value == null)
|
|
2968
|
+
return "";
|
|
2969
|
+
const str = String(value);
|
|
2970
|
+
if (str.length <= 4)
|
|
2971
|
+
return "*".repeat(str.length);
|
|
2972
|
+
return `${"*".repeat(Math.max(str.length - 4, 0))}${str.slice(-4)}`;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
// src/integrations/meeting-recorder/contracts/transcripts.ts
|
|
2976
|
+
import { ScalarTypeEnum as ScalarTypeEnum7, SchemaModel as SchemaModel7 } from "@contractspec/lib.schema";
|
|
2977
|
+
import {
|
|
2978
|
+
defineCommand as defineCommand4,
|
|
2979
|
+
defineQuery as defineQuery5
|
|
2980
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
2981
|
+
var MeetingRecorderGetTranscriptInput = new SchemaModel7({
|
|
2982
|
+
name: "MeetingRecorderGetTranscriptInput",
|
|
2983
|
+
description: "Parameters for fetching a meeting transcript.",
|
|
2984
|
+
fields: {
|
|
2985
|
+
tenantId: { type: ScalarTypeEnum7.ID(), isOptional: false },
|
|
2986
|
+
meetingId: { type: ScalarTypeEnum7.ID(), isOptional: false },
|
|
2987
|
+
connectionId: { type: ScalarTypeEnum7.ID(), isOptional: true },
|
|
2988
|
+
includeSegments: { type: ScalarTypeEnum7.Boolean(), isOptional: true },
|
|
2989
|
+
format: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true }
|
|
2990
|
+
}
|
|
2991
|
+
});
|
|
2992
|
+
var MeetingRecorderSyncTranscriptInput = new SchemaModel7({
|
|
2993
|
+
name: "MeetingRecorderSyncTranscriptInput",
|
|
2994
|
+
description: "Command payload to synchronise meeting transcripts.",
|
|
2995
|
+
fields: {
|
|
2996
|
+
tenantId: { type: ScalarTypeEnum7.ID(), isOptional: false },
|
|
2997
|
+
meetingId: { type: ScalarTypeEnum7.ID(), isOptional: false },
|
|
2998
|
+
connectionId: { type: ScalarTypeEnum7.ID(), isOptional: true },
|
|
2999
|
+
forceRefresh: { type: ScalarTypeEnum7.Boolean(), isOptional: true },
|
|
3000
|
+
triggerWebhooks: { type: ScalarTypeEnum7.Boolean(), isOptional: true }
|
|
3001
|
+
}
|
|
3002
|
+
});
|
|
3003
|
+
var MeetingRecorderSyncTranscriptOutput = new SchemaModel7({
|
|
3004
|
+
name: "MeetingRecorderSyncTranscriptOutput",
|
|
3005
|
+
description: "Result of a transcript synchronisation run.",
|
|
3006
|
+
fields: {
|
|
3007
|
+
synced: { type: ScalarTypeEnum7.Int_unsecure(), isOptional: false },
|
|
3008
|
+
failed: { type: ScalarTypeEnum7.Int_unsecure(), isOptional: false },
|
|
3009
|
+
errors: {
|
|
3010
|
+
type: ScalarTypeEnum7.String_unsecure(),
|
|
3011
|
+
isArray: true,
|
|
3012
|
+
isOptional: true
|
|
3013
|
+
},
|
|
3014
|
+
nextSyncSuggestedAt: {
|
|
3015
|
+
type: ScalarTypeEnum7.DateTime(),
|
|
3016
|
+
isOptional: true
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
});
|
|
3020
|
+
var MeetingRecorderGetTranscript = defineQuery5({
|
|
3021
|
+
meta: {
|
|
3022
|
+
key: "meeting-recorder.transcripts.get",
|
|
3023
|
+
version: "1.0.0",
|
|
3024
|
+
description: "Fetch the transcript for a specific meeting recording.",
|
|
3025
|
+
goal: "Expose meeting transcripts for downstream knowledge and analytics flows.",
|
|
3026
|
+
context: "Used by agents and dashboards to access the transcript for a selected meeting.",
|
|
3027
|
+
owners: ["@platform.integrations"],
|
|
3028
|
+
tags: ["meeting-recorder", "transcripts"],
|
|
3029
|
+
stability: "experimental"
|
|
3030
|
+
},
|
|
3031
|
+
io: {
|
|
3032
|
+
input: MeetingRecorderGetTranscriptInput,
|
|
3033
|
+
output: MeetingTranscriptRecord
|
|
3034
|
+
},
|
|
3035
|
+
policy: {
|
|
3036
|
+
auth: "user"
|
|
3037
|
+
}
|
|
3038
|
+
});
|
|
3039
|
+
var MeetingRecorderSyncTranscript = defineCommand4({
|
|
3040
|
+
meta: {
|
|
3041
|
+
key: "meeting-recorder.transcripts.sync",
|
|
3042
|
+
version: "1.0.0",
|
|
3043
|
+
description: "Trigger a transcript sync from the meeting recorder provider.",
|
|
3044
|
+
goal: "Keep canonical transcripts aligned with external meeting providers.",
|
|
3045
|
+
context: "Invoked by scheduled jobs or webhooks when new transcripts are ready.",
|
|
3046
|
+
owners: ["@platform.integrations"],
|
|
3047
|
+
tags: ["meeting-recorder", "transcripts", "sync"],
|
|
3048
|
+
stability: "experimental"
|
|
3049
|
+
},
|
|
3050
|
+
io: {
|
|
3051
|
+
input: MeetingRecorderSyncTranscriptInput,
|
|
3052
|
+
output: MeetingRecorderSyncTranscriptOutput
|
|
3053
|
+
},
|
|
3054
|
+
policy: {
|
|
3055
|
+
auth: "admin"
|
|
3056
|
+
},
|
|
3057
|
+
telemetry: {
|
|
3058
|
+
success: {
|
|
3059
|
+
event: { key: MEETING_RECORDER_TELEMETRY_EVENTS.transcriptsSynced },
|
|
3060
|
+
properties: ({ input, output }) => {
|
|
3061
|
+
const payload = input;
|
|
3062
|
+
const result = output;
|
|
3063
|
+
return {
|
|
3064
|
+
tenantId: payload?.tenantId,
|
|
3065
|
+
meetingId: payload?.meetingId,
|
|
3066
|
+
synced: result?.synced,
|
|
3067
|
+
failed: result?.failed
|
|
3068
|
+
};
|
|
3069
|
+
}
|
|
3070
|
+
},
|
|
3071
|
+
failure: {
|
|
3072
|
+
event: { key: MEETING_RECORDER_TELEMETRY_EVENTS.transcriptsSyncFailed },
|
|
3073
|
+
properties: ({ input, error }) => {
|
|
3074
|
+
const payload = input;
|
|
3075
|
+
return {
|
|
3076
|
+
tenantId: payload?.tenantId,
|
|
3077
|
+
meetingId: payload?.meetingId,
|
|
3078
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
3079
|
+
};
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
});
|
|
3084
|
+
var meetingRecorderTranscriptContracts = {
|
|
3085
|
+
MeetingRecorderGetTranscript,
|
|
3086
|
+
MeetingRecorderSyncTranscript
|
|
3087
|
+
};
|
|
3088
|
+
function registerMeetingRecorderTranscriptContracts(registry2) {
|
|
3089
|
+
return registry2.register(MeetingRecorderGetTranscript).register(MeetingRecorderSyncTranscript);
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
// src/integrations/meeting-recorder/contracts/webhooks.ts
|
|
3093
|
+
import { ScalarTypeEnum as ScalarTypeEnum8, SchemaModel as SchemaModel8 } from "@contractspec/lib.schema";
|
|
3094
|
+
import {
|
|
3095
|
+
defineCommand as defineCommand5
|
|
3096
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
3097
|
+
var MeetingRecorderWebhookIngestInput = new SchemaModel8({
|
|
3098
|
+
name: "MeetingRecorderWebhookIngestInput",
|
|
3099
|
+
description: "Payload for ingesting a meeting recorder webhook event.",
|
|
3100
|
+
fields: {
|
|
3101
|
+
tenantId: { type: ScalarTypeEnum8.ID(), isOptional: false },
|
|
3102
|
+
providerKey: { type: ScalarTypeEnum8.String_unsecure(), isOptional: false },
|
|
3103
|
+
connectionId: { type: ScalarTypeEnum8.ID(), isOptional: true },
|
|
3104
|
+
webhookId: { type: ScalarTypeEnum8.String_unsecure(), isOptional: true },
|
|
3105
|
+
headers: { type: ScalarTypeEnum8.JSON(), isOptional: true },
|
|
3106
|
+
payload: { type: ScalarTypeEnum8.JSON(), isOptional: false },
|
|
3107
|
+
receivedAt: { type: ScalarTypeEnum8.DateTime(), isOptional: true }
|
|
3108
|
+
}
|
|
3109
|
+
});
|
|
3110
|
+
var MeetingRecorderWebhookIngestOutput = new SchemaModel8({
|
|
3111
|
+
name: "MeetingRecorderWebhookIngestOutput",
|
|
3112
|
+
description: "Result of processing a meeting recorder webhook.",
|
|
3113
|
+
fields: {
|
|
3114
|
+
accepted: { type: ScalarTypeEnum8.Boolean(), isOptional: false },
|
|
3115
|
+
event: { type: MeetingRecorderWebhookEventRecord, isOptional: true }
|
|
3116
|
+
}
|
|
3117
|
+
});
|
|
3118
|
+
var MeetingRecorderWebhookIngest = defineCommand5({
|
|
3119
|
+
meta: {
|
|
3120
|
+
key: "meeting-recorder.webhooks.ingest",
|
|
3121
|
+
version: "1.0.0",
|
|
3122
|
+
description: "Ingest a webhook from a meeting recorder provider.",
|
|
3123
|
+
goal: "Trigger transcript syncs or downstream workflows without polling.",
|
|
3124
|
+
context: "Used by webhook handlers to validate and normalize provider webhook events.",
|
|
3125
|
+
owners: ["@platform.integrations"],
|
|
3126
|
+
tags: ["meeting-recorder", "webhooks", "transcripts"],
|
|
3127
|
+
stability: "experimental"
|
|
3128
|
+
},
|
|
3129
|
+
io: {
|
|
3130
|
+
input: MeetingRecorderWebhookIngestInput,
|
|
3131
|
+
output: MeetingRecorderWebhookIngestOutput
|
|
3132
|
+
},
|
|
3133
|
+
policy: {
|
|
3134
|
+
auth: "admin"
|
|
3135
|
+
}
|
|
3136
|
+
});
|
|
3137
|
+
var meetingRecorderWebhookContracts = {
|
|
3138
|
+
MeetingRecorderWebhookIngest
|
|
3139
|
+
};
|
|
3140
|
+
function registerMeetingRecorderWebhookContracts(registry2) {
|
|
3141
|
+
return registry2.register(MeetingRecorderWebhookIngest);
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
// src/integrations/meeting-recorder/meeting-recorder.feature.ts
|
|
3145
|
+
import { defineFeature as defineFeature2 } from "@contractspec/lib.contracts-spec/features";
|
|
3146
|
+
var MeetingRecorderFeature = defineFeature2({
|
|
3147
|
+
meta: {
|
|
3148
|
+
key: "meeting-recorder",
|
|
3149
|
+
version: "1.0.0",
|
|
3150
|
+
title: "Meeting Recorder Integration",
|
|
3151
|
+
description: "Meeting metadata, transcript retrieval, and webhook ingestion for meeting recorder providers.",
|
|
3152
|
+
domain: "integrations",
|
|
3153
|
+
owners: ["@platform.integrations"],
|
|
3154
|
+
tags: ["meeting-recorder", "transcripts", "integrations"],
|
|
3155
|
+
stability: "experimental"
|
|
3156
|
+
},
|
|
3157
|
+
operations: [
|
|
3158
|
+
{ key: "meeting-recorder.meetings.list", version: "1.0.0" },
|
|
3159
|
+
{ key: "meeting-recorder.meetings.get", version: "1.0.0" },
|
|
3160
|
+
{ key: "meeting-recorder.transcripts.get", version: "1.0.0" },
|
|
3161
|
+
{ key: "meeting-recorder.transcripts.sync", version: "1.0.0" },
|
|
3162
|
+
{ key: "meeting-recorder.webhooks.ingest", version: "1.0.0" }
|
|
3163
|
+
],
|
|
3164
|
+
events: [],
|
|
3165
|
+
presentations: [],
|
|
3166
|
+
opToPresentation: [],
|
|
3167
|
+
presentationsTargets: [],
|
|
3168
|
+
capabilities: {
|
|
3169
|
+
provides: [{ key: "meeting-recorder", version: "1.0.0" }],
|
|
3170
|
+
requires: [{ key: "identity", version: "1.0.0" }]
|
|
3171
|
+
}
|
|
3172
|
+
});
|
|
3173
|
+
// src/integrations/meeting-recorder/contracts/index.ts
|
|
3174
|
+
function registerMeetingRecorderContracts(registry2) {
|
|
3175
|
+
return registerMeetingRecorderWebhookContracts(registerMeetingRecorderTranscriptContracts(registerMeetingRecorderMeetingContracts(registry2)));
|
|
3176
|
+
}
|
|
3177
|
+
// src/integrations/health.ts
|
|
3178
|
+
class IntegrationHealthService {
|
|
3179
|
+
telemetry;
|
|
3180
|
+
nowFn;
|
|
3181
|
+
constructor(options = {}) {
|
|
3182
|
+
this.telemetry = options.telemetry;
|
|
3183
|
+
this.nowFn = options.now ?? (() => new Date);
|
|
3184
|
+
}
|
|
3185
|
+
async check(context, executor) {
|
|
3186
|
+
const start = this.nowFn();
|
|
3187
|
+
try {
|
|
3188
|
+
await executor(context);
|
|
3189
|
+
const end = this.nowFn();
|
|
3190
|
+
const result = {
|
|
3191
|
+
status: "connected",
|
|
3192
|
+
checkedAt: end,
|
|
3193
|
+
latencyMs: end.getTime() - start.getTime()
|
|
3194
|
+
};
|
|
3195
|
+
this.emitTelemetry(context, result, "success");
|
|
3196
|
+
return result;
|
|
3197
|
+
} catch (error) {
|
|
3198
|
+
const end = this.nowFn();
|
|
3199
|
+
const message = error instanceof Error ? error.message : "Unknown error";
|
|
3200
|
+
const code = extractErrorCode(error);
|
|
3201
|
+
const result = {
|
|
3202
|
+
status: "error",
|
|
3203
|
+
checkedAt: end,
|
|
3204
|
+
latencyMs: end.getTime() - start.getTime(),
|
|
3205
|
+
errorMessage: message,
|
|
3206
|
+
errorCode: code
|
|
3207
|
+
};
|
|
3208
|
+
this.emitTelemetry(context, result, "error", code, message);
|
|
3209
|
+
return result;
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
emitTelemetry(context, result, status, errorCode, errorMessage) {
|
|
3213
|
+
if (!this.telemetry)
|
|
3214
|
+
return;
|
|
3215
|
+
this.telemetry.record({
|
|
3216
|
+
tenantId: context.tenantId,
|
|
3217
|
+
appId: context.appId,
|
|
3218
|
+
environment: context.environment,
|
|
3219
|
+
slotId: context.slotId,
|
|
3220
|
+
integrationKey: context.spec.meta.key,
|
|
3221
|
+
integrationVersion: context.spec.meta.version,
|
|
3222
|
+
connectionId: context.connection.meta.id,
|
|
3223
|
+
status,
|
|
3224
|
+
durationMs: result.latencyMs,
|
|
3225
|
+
errorCode,
|
|
3226
|
+
errorMessage,
|
|
3227
|
+
occurredAt: result.checkedAt ?? this.nowFn(),
|
|
3228
|
+
metadata: {
|
|
3229
|
+
...context.trace ? {
|
|
3230
|
+
blueprint: `${context.trace.blueprintName}.v${context.trace.blueprintVersion}`,
|
|
3231
|
+
configVersion: context.trace.configVersion
|
|
3232
|
+
} : {},
|
|
3233
|
+
status: result.status
|
|
3234
|
+
}
|
|
3235
|
+
});
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
function extractErrorCode(error) {
|
|
3239
|
+
if (!error || typeof error !== "object")
|
|
3240
|
+
return;
|
|
3241
|
+
const candidate = error;
|
|
3242
|
+
if (candidate.code == null)
|
|
3243
|
+
return;
|
|
3244
|
+
return String(candidate.code);
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
// src/integrations/integrations.capability.ts
|
|
3248
|
+
import { defineCapability } from "@contractspec/lib.contracts-spec/capabilities";
|
|
3249
|
+
import { StabilityEnum as StabilityEnum24 } from "@contractspec/lib.contracts-spec/ownership";
|
|
3250
|
+
var IntegrationsCapability = defineCapability({
|
|
3251
|
+
meta: {
|
|
3252
|
+
key: "integrations",
|
|
3253
|
+
version: "1.0.0",
|
|
3254
|
+
kind: "integration",
|
|
3255
|
+
stability: StabilityEnum24.Experimental,
|
|
3256
|
+
description: "Core integrations capability for third-party connections",
|
|
3257
|
+
owners: ["@platform.core"],
|
|
3258
|
+
tags: ["integrations", "platform"]
|
|
3259
|
+
}
|
|
3260
|
+
});
|
|
3261
|
+
|
|
3262
|
+
// src/integrations/integrations.feature.ts
|
|
3263
|
+
import { defineFeature as defineFeature3 } from "@contractspec/lib.contracts-spec/features";
|
|
3264
|
+
var IntegrationsFeature = defineFeature3({
|
|
3265
|
+
meta: {
|
|
3266
|
+
key: "platform.integrations",
|
|
3267
|
+
version: "1.0.0",
|
|
3268
|
+
title: "Platform Integrations",
|
|
3269
|
+
description: "Manage integration connections to external providers (e.g., Stripe, Qdrant)",
|
|
3270
|
+
domain: "platform",
|
|
3271
|
+
owners: ["@platform.integrations"],
|
|
3272
|
+
tags: ["integrations", "connections", "platform"],
|
|
3273
|
+
stability: "experimental"
|
|
3274
|
+
},
|
|
3275
|
+
operations: [
|
|
3276
|
+
{ key: "integrations.connection.create", version: "1.0.0" },
|
|
3277
|
+
{ key: "integrations.connection.update", version: "1.0.0" },
|
|
3278
|
+
{ key: "integrations.connection.delete", version: "1.0.0" },
|
|
3279
|
+
{ key: "integrations.connection.list", version: "1.0.0" },
|
|
3280
|
+
{ key: "integrations.connection.test", version: "1.0.0" }
|
|
3281
|
+
],
|
|
3282
|
+
events: [],
|
|
3283
|
+
presentations: [],
|
|
3284
|
+
opToPresentation: [],
|
|
3285
|
+
presentationsTargets: [],
|
|
3286
|
+
capabilities: {
|
|
3287
|
+
provides: [{ key: "integrations", version: "1.0.0" }],
|
|
3288
|
+
requires: [{ key: "identity", version: "1.0.0" }]
|
|
3289
|
+
}
|
|
3290
|
+
});
|
|
3291
|
+
|
|
3292
|
+
// src/integrations/operations.ts
|
|
3293
|
+
import { ScalarTypeEnum as ScalarTypeEnum9, SchemaModel as SchemaModel9 } from "@contractspec/lib.schema";
|
|
3294
|
+
import {
|
|
3295
|
+
defineCommand as defineCommand6,
|
|
3296
|
+
defineQuery as defineQuery6
|
|
3297
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
3298
|
+
var IntegrationConnectionRecord = new SchemaModel9({
|
|
3299
|
+
name: "IntegrationConnectionRecord",
|
|
3300
|
+
fields: {
|
|
3301
|
+
id: { type: ScalarTypeEnum9.ID(), isOptional: false },
|
|
3302
|
+
tenantId: { type: ScalarTypeEnum9.ID(), isOptional: false },
|
|
3303
|
+
integrationKey: {
|
|
3304
|
+
type: ScalarTypeEnum9.NonEmptyString(),
|
|
3305
|
+
isOptional: false
|
|
3306
|
+
},
|
|
3307
|
+
integrationVersion: {
|
|
3308
|
+
type: ScalarTypeEnum9.Int_unsecure(),
|
|
3309
|
+
isOptional: false
|
|
3310
|
+
},
|
|
3311
|
+
label: { type: ScalarTypeEnum9.String_unsecure(), isOptional: false },
|
|
3312
|
+
ownershipMode: {
|
|
3313
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3314
|
+
isOptional: false
|
|
3315
|
+
},
|
|
3316
|
+
externalAccountId: {
|
|
3317
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3318
|
+
isOptional: true
|
|
3319
|
+
},
|
|
3320
|
+
secretProvider: {
|
|
3321
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3322
|
+
isOptional: false
|
|
3323
|
+
},
|
|
3324
|
+
secretRef: { type: ScalarTypeEnum9.String_unsecure(), isOptional: false },
|
|
3325
|
+
status: { type: ScalarTypeEnum9.String_unsecure(), isOptional: false },
|
|
3326
|
+
environment: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3327
|
+
healthStatus: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3328
|
+
healthCheckedAt: { type: ScalarTypeEnum9.DateTime(), isOptional: true },
|
|
3329
|
+
healthLatencyMs: {
|
|
3330
|
+
type: ScalarTypeEnum9.Float_unsecure(),
|
|
3331
|
+
isOptional: true
|
|
3332
|
+
},
|
|
3333
|
+
healthErrorCode: {
|
|
3334
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3335
|
+
isOptional: true
|
|
3336
|
+
},
|
|
3337
|
+
healthErrorMessage: {
|
|
3338
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3339
|
+
isOptional: true
|
|
3340
|
+
},
|
|
3341
|
+
usageRequestCount: {
|
|
3342
|
+
type: ScalarTypeEnum9.Int_unsecure(),
|
|
3343
|
+
isOptional: true
|
|
3344
|
+
},
|
|
3345
|
+
usageSuccessCount: {
|
|
3346
|
+
type: ScalarTypeEnum9.Int_unsecure(),
|
|
3347
|
+
isOptional: true
|
|
3348
|
+
},
|
|
3349
|
+
usageErrorCount: {
|
|
3350
|
+
type: ScalarTypeEnum9.Int_unsecure(),
|
|
3351
|
+
isOptional: true
|
|
3352
|
+
},
|
|
3353
|
+
usageLastUsedAt: {
|
|
3354
|
+
type: ScalarTypeEnum9.DateTime(),
|
|
3355
|
+
isOptional: true
|
|
3356
|
+
},
|
|
3357
|
+
usageLastErrorAt: {
|
|
3358
|
+
type: ScalarTypeEnum9.DateTime(),
|
|
3359
|
+
isOptional: true
|
|
3360
|
+
},
|
|
3361
|
+
usageLastErrorCode: {
|
|
3362
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3363
|
+
isOptional: true
|
|
3364
|
+
},
|
|
3365
|
+
createdAt: { type: ScalarTypeEnum9.DateTime(), isOptional: true },
|
|
3366
|
+
updatedAt: { type: ScalarTypeEnum9.DateTime(), isOptional: true }
|
|
3367
|
+
}
|
|
3368
|
+
});
|
|
3369
|
+
var CreateIntegrationConnectionInput = new SchemaModel9({
|
|
3370
|
+
name: "CreateIntegrationConnectionInput",
|
|
3371
|
+
fields: {
|
|
3372
|
+
tenantId: { type: ScalarTypeEnum9.ID(), isOptional: false },
|
|
3373
|
+
integrationKey: {
|
|
3374
|
+
type: ScalarTypeEnum9.NonEmptyString(),
|
|
3375
|
+
isOptional: false
|
|
3376
|
+
},
|
|
3377
|
+
integrationVersion: {
|
|
3378
|
+
type: ScalarTypeEnum9.Int_unsecure(),
|
|
3379
|
+
isOptional: false
|
|
3380
|
+
},
|
|
3381
|
+
label: { type: ScalarTypeEnum9.String_unsecure(), isOptional: false },
|
|
3382
|
+
ownershipMode: {
|
|
3383
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3384
|
+
isOptional: false
|
|
3385
|
+
},
|
|
3386
|
+
externalAccountId: {
|
|
3387
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3388
|
+
isOptional: true
|
|
3389
|
+
},
|
|
3390
|
+
secretProvider: {
|
|
3391
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3392
|
+
isOptional: false
|
|
3393
|
+
},
|
|
3394
|
+
secretRef: { type: ScalarTypeEnum9.String_unsecure(), isOptional: false },
|
|
3395
|
+
environment: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3396
|
+
config: { type: ScalarTypeEnum9.JSONObject(), isOptional: false }
|
|
3397
|
+
}
|
|
3398
|
+
});
|
|
3399
|
+
var UpdateIntegrationConnectionInput = new SchemaModel9({
|
|
3400
|
+
name: "UpdateIntegrationConnectionInput",
|
|
3401
|
+
fields: {
|
|
3402
|
+
connectionId: { type: ScalarTypeEnum9.ID(), isOptional: false },
|
|
3403
|
+
label: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3404
|
+
status: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3405
|
+
ownershipMode: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3406
|
+
externalAccountId: {
|
|
3407
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3408
|
+
isOptional: true
|
|
3409
|
+
},
|
|
3410
|
+
secretProvider: {
|
|
3411
|
+
type: ScalarTypeEnum9.String_unsecure(),
|
|
3412
|
+
isOptional: true
|
|
3413
|
+
},
|
|
3414
|
+
secretRef: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3415
|
+
config: { type: ScalarTypeEnum9.JSONObject(), isOptional: true }
|
|
3416
|
+
}
|
|
3417
|
+
});
|
|
3418
|
+
var DeleteIntegrationConnectionInput = new SchemaModel9({
|
|
3419
|
+
name: "DeleteIntegrationConnectionInput",
|
|
3420
|
+
fields: {
|
|
3421
|
+
connectionId: { type: ScalarTypeEnum9.ID(), isOptional: false }
|
|
3422
|
+
}
|
|
3423
|
+
});
|
|
3424
|
+
var ListIntegrationConnectionsInput = new SchemaModel9({
|
|
3425
|
+
name: "ListIntegrationConnectionsInput",
|
|
3426
|
+
fields: {
|
|
3427
|
+
tenantId: { type: ScalarTypeEnum9.ID(), isOptional: false },
|
|
3428
|
+
category: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3429
|
+
status: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true }
|
|
3430
|
+
}
|
|
3431
|
+
});
|
|
3432
|
+
var ListIntegrationConnectionsOutput = new SchemaModel9({
|
|
3433
|
+
name: "ListIntegrationConnectionsOutput",
|
|
3434
|
+
fields: {
|
|
3435
|
+
connections: {
|
|
3436
|
+
type: IntegrationConnectionRecord,
|
|
3437
|
+
isOptional: false,
|
|
3438
|
+
isArray: true
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
});
|
|
3442
|
+
var TestIntegrationConnectionInput = new SchemaModel9({
|
|
3443
|
+
name: "TestIntegrationConnectionInput",
|
|
3444
|
+
fields: {
|
|
3445
|
+
connectionId: { type: ScalarTypeEnum9.ID(), isOptional: false }
|
|
3446
|
+
}
|
|
3447
|
+
});
|
|
3448
|
+
var TestIntegrationConnectionOutput = new SchemaModel9({
|
|
3449
|
+
name: "TestIntegrationConnectionOutput",
|
|
3450
|
+
fields: {
|
|
3451
|
+
success: { type: ScalarTypeEnum9.Boolean(), isOptional: false },
|
|
3452
|
+
status: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3453
|
+
latencyMs: { type: ScalarTypeEnum9.Float_unsecure(), isOptional: true },
|
|
3454
|
+
error: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true },
|
|
3455
|
+
errorCode: { type: ScalarTypeEnum9.String_unsecure(), isOptional: true }
|
|
3456
|
+
}
|
|
3457
|
+
});
|
|
3458
|
+
var DeleteIntegrationConnectionOutput = new SchemaModel9({
|
|
3459
|
+
name: "DeleteIntegrationConnectionOutput",
|
|
3460
|
+
fields: {
|
|
3461
|
+
success: { type: ScalarTypeEnum9.Boolean(), isOptional: false }
|
|
3462
|
+
}
|
|
3463
|
+
});
|
|
3464
|
+
var CreateIntegrationConnection = defineCommand6({
|
|
3465
|
+
meta: {
|
|
3466
|
+
key: "integrations.connection.create",
|
|
3467
|
+
title: "Create Integration Connection",
|
|
3468
|
+
version: "1.0.0",
|
|
3469
|
+
description: "Create a new integration connection for a tenant.",
|
|
3470
|
+
goal: "Provision a tenant-scoped connection to an external provider.",
|
|
3471
|
+
context: "Used by Ops or the App Studio to configure external integrations such as Stripe or Qdrant.",
|
|
3472
|
+
owners: ["@platform.integrations"],
|
|
3473
|
+
tags: ["integration", "connections"],
|
|
3474
|
+
stability: "experimental"
|
|
3475
|
+
},
|
|
3476
|
+
io: {
|
|
3477
|
+
input: CreateIntegrationConnectionInput,
|
|
3478
|
+
output: IntegrationConnectionRecord
|
|
3479
|
+
},
|
|
3480
|
+
policy: {
|
|
3481
|
+
auth: "admin",
|
|
3482
|
+
policies: [{ key: "platform.integration.manage", version: "1.0.0" }]
|
|
3483
|
+
}
|
|
3484
|
+
});
|
|
3485
|
+
var UpdateIntegrationConnection = defineCommand6({
|
|
3486
|
+
meta: {
|
|
3487
|
+
key: "integrations.connection.update",
|
|
3488
|
+
title: "Update Integration Connection",
|
|
3489
|
+
version: "1.0.0",
|
|
3490
|
+
description: "Update metadata or credentials for an integration connection.",
|
|
3491
|
+
goal: "Allow secure rotation of credentials and metadata adjustments.",
|
|
3492
|
+
context: "Supports rotating API keys, toggling status, or updating labels for tenant integrations.",
|
|
3493
|
+
owners: ["@platform.integrations"],
|
|
3494
|
+
tags: ["integration", "connections"],
|
|
3495
|
+
stability: "experimental"
|
|
3496
|
+
},
|
|
3497
|
+
io: {
|
|
3498
|
+
input: UpdateIntegrationConnectionInput,
|
|
3499
|
+
output: IntegrationConnectionRecord
|
|
3500
|
+
},
|
|
3501
|
+
policy: {
|
|
3502
|
+
auth: "admin",
|
|
3503
|
+
policies: [{ key: "platform.integration.manage", version: "1.0.0" }]
|
|
3504
|
+
}
|
|
3505
|
+
});
|
|
3506
|
+
var DeleteIntegrationConnection = defineCommand6({
|
|
3507
|
+
meta: {
|
|
3508
|
+
key: "integrations.connection.delete",
|
|
3509
|
+
title: "Delete Integration Connection",
|
|
3510
|
+
version: "1.0.0",
|
|
3511
|
+
description: "Delete an integration connection for a tenant.",
|
|
3512
|
+
goal: "Safely remove credentials and disable connector usage.",
|
|
3513
|
+
context: "Ensures connections are de-provisioned when no longer needed or breached.",
|
|
3514
|
+
owners: ["@platform.integrations"],
|
|
3515
|
+
tags: ["integration", "connections"],
|
|
3516
|
+
stability: "experimental"
|
|
3517
|
+
},
|
|
3518
|
+
io: {
|
|
3519
|
+
input: DeleteIntegrationConnectionInput,
|
|
3520
|
+
output: DeleteIntegrationConnectionOutput
|
|
3521
|
+
},
|
|
3522
|
+
policy: {
|
|
3523
|
+
auth: "admin",
|
|
3524
|
+
policies: [{ key: "platform.integration.manage", version: "1.0.0" }]
|
|
3525
|
+
}
|
|
3526
|
+
});
|
|
3527
|
+
var ListIntegrationConnections = defineQuery6({
|
|
3528
|
+
meta: {
|
|
3529
|
+
key: "integrations.connection.list",
|
|
3530
|
+
title: "List Integration Connections",
|
|
3531
|
+
version: "1.0.0",
|
|
3532
|
+
description: "List integration connections for a tenant.",
|
|
3533
|
+
goal: "Provide visibility into configured integrations and their status.",
|
|
3534
|
+
context: "Used by the App Studio and Ops flows to show bindings and health.",
|
|
3535
|
+
owners: ["@platform.integrations"],
|
|
3536
|
+
tags: ["integration", "connections"],
|
|
3537
|
+
stability: "experimental"
|
|
3538
|
+
},
|
|
3539
|
+
io: {
|
|
3540
|
+
input: ListIntegrationConnectionsInput,
|
|
3541
|
+
output: ListIntegrationConnectionsOutput
|
|
3542
|
+
},
|
|
3543
|
+
policy: {
|
|
3544
|
+
auth: "admin",
|
|
3545
|
+
policies: [{ key: "platform.integration.read", version: "1.0.0" }]
|
|
3546
|
+
}
|
|
3547
|
+
});
|
|
3548
|
+
var TestIntegrationConnection = defineCommand6({
|
|
3549
|
+
meta: {
|
|
3550
|
+
key: "integrations.connection.test",
|
|
3551
|
+
title: "Test Integration Connection",
|
|
3552
|
+
version: "1.0.0",
|
|
3553
|
+
description: "Run a health check against a configured integration connection.",
|
|
3554
|
+
goal: "Validate credentials and connectivity for external providers.",
|
|
3555
|
+
context: "Triggered manually or by background monitors to confirm provider availability.",
|
|
3556
|
+
owners: ["@platform.integrations"],
|
|
3557
|
+
tags: ["integration", "connections"],
|
|
3558
|
+
stability: "experimental"
|
|
3559
|
+
},
|
|
3560
|
+
io: {
|
|
3561
|
+
input: TestIntegrationConnectionInput,
|
|
3562
|
+
output: TestIntegrationConnectionOutput
|
|
3563
|
+
},
|
|
3564
|
+
policy: {
|
|
3565
|
+
auth: "admin",
|
|
3566
|
+
policies: [{ key: "platform.integration.manage", version: "1.0.0" }]
|
|
3567
|
+
}
|
|
3568
|
+
});
|
|
3569
|
+
var integrationContracts = {
|
|
3570
|
+
CreateIntegrationConnection,
|
|
3571
|
+
UpdateIntegrationConnection,
|
|
3572
|
+
DeleteIntegrationConnection,
|
|
3573
|
+
ListIntegrationConnections,
|
|
3574
|
+
TestIntegrationConnection
|
|
3575
|
+
};
|
|
3576
|
+
function registerIntegrationContracts(registry2) {
|
|
3577
|
+
return registry2.register(CreateIntegrationConnection).register(UpdateIntegrationConnection).register(DeleteIntegrationConnection).register(ListIntegrationConnections).register(TestIntegrationConnection);
|
|
3578
|
+
}
|
|
3579
|
+
export {
|
|
3580
|
+
twilioSmsIntegrationSpec,
|
|
3581
|
+
tldvIntegrationSpec,
|
|
3582
|
+
supabaseVectorIntegrationSpec,
|
|
3583
|
+
supabasePostgresIntegrationSpec,
|
|
3584
|
+
stripeIntegrationSpec,
|
|
3585
|
+
registerTwilioSmsIntegration,
|
|
3586
|
+
registerTldvIntegration,
|
|
3587
|
+
registerSupabaseVectorIntegration,
|
|
3588
|
+
registerSupabasePostgresIntegration,
|
|
3589
|
+
registerStripeIntegration,
|
|
3590
|
+
registerQdrantIntegration,
|
|
3591
|
+
registerPowensIntegration,
|
|
3592
|
+
registerPostmarkIntegration,
|
|
3593
|
+
registerPosthogIntegration,
|
|
3594
|
+
registerOpenBankingContracts,
|
|
3595
|
+
registerNotionIntegration,
|
|
3596
|
+
registerMistralIntegration,
|
|
3597
|
+
registerMeetingRecorderContracts,
|
|
3598
|
+
registerLinearIntegration,
|
|
3599
|
+
registerJiraIntegration,
|
|
3600
|
+
registerIntegrationContracts,
|
|
3601
|
+
registerGranolaIntegration,
|
|
3602
|
+
registerGradiumIntegration,
|
|
3603
|
+
registerGoogleCalendarIntegration,
|
|
3604
|
+
registerGmailIntegration,
|
|
3605
|
+
registerGcsStorageIntegration,
|
|
3606
|
+
registerFirefliesIntegration,
|
|
3607
|
+
registerFathomIntegration,
|
|
3608
|
+
registerFalIntegration,
|
|
3609
|
+
registerElevenLabsIntegration,
|
|
3610
|
+
redactPostHogLLMTelemetryPayload,
|
|
3611
|
+
redactOpenBankingTelemetryPayload,
|
|
3612
|
+
redactMeetingRecorderTelemetryPayload,
|
|
3613
|
+
qdrantIntegrationSpec,
|
|
3614
|
+
powensIntegrationSpec,
|
|
3615
|
+
postmarkIntegrationSpec,
|
|
3616
|
+
posthogLLMTelemetrySpec,
|
|
3617
|
+
posthogIntegrationSpec,
|
|
3618
|
+
notionIntegrationSpec,
|
|
3619
|
+
mistralIntegrationSpec,
|
|
3620
|
+
makeIntegrationSpecKey,
|
|
3621
|
+
linearIntegrationSpec,
|
|
3622
|
+
jiraIntegrationSpec,
|
|
3623
|
+
integrationContracts,
|
|
3624
|
+
granolaIntegrationSpec,
|
|
3625
|
+
gradiumIntegrationSpec,
|
|
3626
|
+
googleCalendarIntegrationSpec,
|
|
3627
|
+
gmailIntegrationSpec,
|
|
3628
|
+
gcsStorageIntegrationSpec,
|
|
3629
|
+
firefliesIntegrationSpec,
|
|
3630
|
+
fathomIntegrationSpec,
|
|
3631
|
+
falIntegrationSpec,
|
|
3632
|
+
ensurePrimaryOpenBankingIntegration,
|
|
3633
|
+
elevenLabsIntegrationSpec,
|
|
3634
|
+
defineIntegration,
|
|
3635
|
+
createDefaultIntegrationSpecRegistry,
|
|
3636
|
+
assertPrimaryOpenBankingReady,
|
|
3637
|
+
UpdateIntegrationConnection,
|
|
3638
|
+
TestIntegrationConnection,
|
|
3639
|
+
POSTHOG_LLM_TELEMETRY_EVENTS,
|
|
3640
|
+
POSTHOG_LLM_PII_FIELDS,
|
|
3641
|
+
POSTHOG_EVALUATION_TEMPLATES,
|
|
3642
|
+
OpenBankingSyncTransactions,
|
|
3643
|
+
OpenBankingSyncAccounts,
|
|
3644
|
+
OpenBankingRefreshBalances,
|
|
3645
|
+
OpenBankingListTransactions,
|
|
3646
|
+
OpenBankingListAccounts,
|
|
3647
|
+
OpenBankingGetBalances,
|
|
3648
|
+
OpenBankingGetAccount,
|
|
3649
|
+
OpenBankingFeature,
|
|
3650
|
+
OPENBANKING_TELEMETRY_EVENTS,
|
|
3651
|
+
OPENBANKING_PII_FIELDS,
|
|
3652
|
+
MeetingTranscriptSegmentRecord,
|
|
3653
|
+
MeetingTranscriptRecord as MeetingTranscriptRecordModel,
|
|
3654
|
+
MeetingRecorderWebhookIngest,
|
|
3655
|
+
MeetingRecorderWebhookEventRecord,
|
|
3656
|
+
MeetingRecorderSyncTranscript,
|
|
3657
|
+
MeetingRecorderListMeetings,
|
|
3658
|
+
MeetingRecorderGetTranscript,
|
|
3659
|
+
MeetingRecorderGetMeeting,
|
|
3660
|
+
MeetingRecorderFeature,
|
|
3661
|
+
MeetingRecord as MeetingRecordModel,
|
|
3662
|
+
MeetingParticipantRecord,
|
|
3663
|
+
MEETING_RECORDER_TELEMETRY_EVENTS,
|
|
3664
|
+
MEETING_RECORDER_PII_FIELDS,
|
|
3665
|
+
ListIntegrationConnections,
|
|
3666
|
+
IntegrationsFeature,
|
|
3667
|
+
IntegrationsCapability,
|
|
3668
|
+
IntegrationSpecRegistry,
|
|
3669
|
+
IntegrationHealthService,
|
|
3670
|
+
DeleteIntegrationConnection,
|
|
3671
|
+
CreateIntegrationConnection,
|
|
3672
|
+
BankTransactionRecord,
|
|
3673
|
+
BankAccountRecord,
|
|
3674
|
+
AccountBalanceRecord
|
|
3675
|
+
};
|