@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,122 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/integrations/meeting-recorder/models.ts
|
|
3
|
+
import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
|
|
4
|
+
var MeetingParticipantRecord = new SchemaModel({
|
|
5
|
+
name: "MeetingParticipantRecord",
|
|
6
|
+
description: "Canonical participant entry for meetings and transcripts from recorder providers.",
|
|
7
|
+
fields: {
|
|
8
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
9
|
+
externalId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
10
|
+
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
11
|
+
email: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
12
|
+
role: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
13
|
+
isExternal: { type: ScalarTypeEnum.Boolean(), isOptional: true },
|
|
14
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var MeetingTranscriptSegmentRecord = new SchemaModel({
|
|
18
|
+
name: "MeetingTranscriptSegmentRecord",
|
|
19
|
+
description: "A single transcript segment with speaker attribution.",
|
|
20
|
+
fields: {
|
|
21
|
+
index: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
22
|
+
speakerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
23
|
+
speakerName: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
24
|
+
speakerEmail: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
25
|
+
text: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
26
|
+
startTimeMs: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
27
|
+
endTimeMs: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
28
|
+
startTime: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
29
|
+
endTime: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
30
|
+
confidence: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
31
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
var MeetingRecord = new SchemaModel({
|
|
35
|
+
name: "MeetingRecord",
|
|
36
|
+
description: "Canonical meeting metadata synced from meeting recorder providers.",
|
|
37
|
+
fields: {
|
|
38
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
39
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
40
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
41
|
+
externalId: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
42
|
+
title: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
43
|
+
summary: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
44
|
+
organizer: { type: MeetingParticipantRecord, isOptional: true },
|
|
45
|
+
invitees: {
|
|
46
|
+
type: MeetingParticipantRecord,
|
|
47
|
+
isArray: true,
|
|
48
|
+
isOptional: true
|
|
49
|
+
},
|
|
50
|
+
participants: {
|
|
51
|
+
type: MeetingParticipantRecord,
|
|
52
|
+
isArray: true,
|
|
53
|
+
isOptional: true
|
|
54
|
+
},
|
|
55
|
+
scheduledStartAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
56
|
+
scheduledEndAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
57
|
+
recordingStartAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
58
|
+
recordingEndAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
59
|
+
durationSeconds: {
|
|
60
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
61
|
+
isOptional: true
|
|
62
|
+
},
|
|
63
|
+
meetingUrl: { type: ScalarTypeEnum.URL(), isOptional: true },
|
|
64
|
+
recordingUrl: { type: ScalarTypeEnum.URL(), isOptional: true },
|
|
65
|
+
shareUrl: { type: ScalarTypeEnum.URL(), isOptional: true },
|
|
66
|
+
sourcePlatform: {
|
|
67
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
68
|
+
isOptional: true
|
|
69
|
+
},
|
|
70
|
+
language: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
71
|
+
transcriptAvailable: { type: ScalarTypeEnum.Boolean(), isOptional: true },
|
|
72
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
73
|
+
updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
74
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
var MeetingTranscriptRecord = new SchemaModel({
|
|
78
|
+
name: "MeetingTranscriptRecord",
|
|
79
|
+
description: "Canonical transcript payload for a recorded meeting.",
|
|
80
|
+
fields: {
|
|
81
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
82
|
+
meetingId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
83
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
84
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
85
|
+
externalId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
86
|
+
format: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
87
|
+
text: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
88
|
+
segments: {
|
|
89
|
+
type: MeetingTranscriptSegmentRecord,
|
|
90
|
+
isArray: true,
|
|
91
|
+
isOptional: true
|
|
92
|
+
},
|
|
93
|
+
language: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
94
|
+
sourceUrl: { type: ScalarTypeEnum.URL(), isOptional: true },
|
|
95
|
+
generatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
96
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
97
|
+
raw: { type: ScalarTypeEnum.JSON(), isOptional: true }
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
var MeetingRecorderWebhookEventRecord = new SchemaModel({
|
|
101
|
+
name: "MeetingRecorderWebhookEventRecord",
|
|
102
|
+
description: "Normalized webhook event from a meeting recorder provider.",
|
|
103
|
+
fields: {
|
|
104
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
105
|
+
providerKey: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
106
|
+
eventType: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
107
|
+
meetingId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
108
|
+
transcriptId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
109
|
+
recordingId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
110
|
+
receivedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
111
|
+
verified: { type: ScalarTypeEnum.Boolean(), isOptional: true },
|
|
112
|
+
payload: { type: ScalarTypeEnum.JSON(), isOptional: true },
|
|
113
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
MeetingTranscriptSegmentRecord,
|
|
118
|
+
MeetingTranscriptRecord,
|
|
119
|
+
MeetingRecorderWebhookEventRecord,
|
|
120
|
+
MeetingRecord,
|
|
121
|
+
MeetingParticipantRecord
|
|
122
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const MEETING_RECORDER_PII_FIELDS: readonly ["email", "organizerEmail", "participantEmail", "participants", "invitees", "attendees", "speakerName", "speakerEmail", "name", "phone", "phoneNumber", "displayName"];
|
|
2
|
+
export declare const MEETING_RECORDER_TELEMETRY_EVENTS: {
|
|
3
|
+
readonly meetingsSynced: "meeting-recorder.meetings.synced";
|
|
4
|
+
readonly meetingsSyncFailed: "meeting-recorder.meetings.sync_failed";
|
|
5
|
+
readonly transcriptsFetched: "meeting-recorder.transcripts.fetched";
|
|
6
|
+
readonly transcriptsFetchFailed: "meeting-recorder.transcripts.fetch_failed";
|
|
7
|
+
readonly transcriptsSynced: "meeting-recorder.transcripts.synced";
|
|
8
|
+
readonly transcriptsSyncFailed: "meeting-recorder.transcripts.sync_failed";
|
|
9
|
+
readonly webhookReceived: "meeting-recorder.webhooks.received";
|
|
10
|
+
readonly webhookRejected: "meeting-recorder.webhooks.rejected";
|
|
11
|
+
};
|
|
12
|
+
export type MeetingRecorderTelemetryEvent = (typeof MEETING_RECORDER_TELEMETRY_EVENTS)[keyof typeof MEETING_RECORDER_TELEMETRY_EVENTS];
|
|
13
|
+
export declare function redactMeetingRecorderTelemetryPayload<T extends Record<string, unknown>>(payload: T): T;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/integrations/meeting-recorder/telemetry.ts
|
|
3
|
+
var MEETING_RECORDER_PII_FIELDS = [
|
|
4
|
+
"email",
|
|
5
|
+
"organizerEmail",
|
|
6
|
+
"participantEmail",
|
|
7
|
+
"participants",
|
|
8
|
+
"invitees",
|
|
9
|
+
"attendees",
|
|
10
|
+
"speakerName",
|
|
11
|
+
"speakerEmail",
|
|
12
|
+
"name",
|
|
13
|
+
"phone",
|
|
14
|
+
"phoneNumber",
|
|
15
|
+
"displayName"
|
|
16
|
+
];
|
|
17
|
+
var MEETING_RECORDER_TELEMETRY_EVENTS = {
|
|
18
|
+
meetingsSynced: "meeting-recorder.meetings.synced",
|
|
19
|
+
meetingsSyncFailed: "meeting-recorder.meetings.sync_failed",
|
|
20
|
+
transcriptsFetched: "meeting-recorder.transcripts.fetched",
|
|
21
|
+
transcriptsFetchFailed: "meeting-recorder.transcripts.fetch_failed",
|
|
22
|
+
transcriptsSynced: "meeting-recorder.transcripts.synced",
|
|
23
|
+
transcriptsSyncFailed: "meeting-recorder.transcripts.sync_failed",
|
|
24
|
+
webhookReceived: "meeting-recorder.webhooks.received",
|
|
25
|
+
webhookRejected: "meeting-recorder.webhooks.rejected"
|
|
26
|
+
};
|
|
27
|
+
function redactMeetingRecorderTelemetryPayload(payload) {
|
|
28
|
+
const redacted = {};
|
|
29
|
+
for (const [key, value] of Object.entries(payload)) {
|
|
30
|
+
if (MEETING_RECORDER_PII_FIELDS.includes(key)) {
|
|
31
|
+
redacted[key] = maskValue(value);
|
|
32
|
+
} else if (Array.isArray(value)) {
|
|
33
|
+
redacted[key] = value.map((item) => typeof item === "object" && item !== null ? redactMeetingRecorderTelemetryPayload(item) : item);
|
|
34
|
+
} else if (typeof value === "object" && value !== null) {
|
|
35
|
+
redacted[key] = redactMeetingRecorderTelemetryPayload(value);
|
|
36
|
+
} else {
|
|
37
|
+
redacted[key] = value;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return redacted;
|
|
41
|
+
}
|
|
42
|
+
function maskValue(value) {
|
|
43
|
+
if (value == null)
|
|
44
|
+
return "";
|
|
45
|
+
const str = String(value);
|
|
46
|
+
if (str.length <= 4)
|
|
47
|
+
return "*".repeat(str.length);
|
|
48
|
+
return `${"*".repeat(Math.max(str.length - 4, 0))}${str.slice(-4)}`;
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
redactMeetingRecorderTelemetryPayload,
|
|
52
|
+
MEETING_RECORDER_TELEMETRY_EVENTS,
|
|
53
|
+
MEETING_RECORDER_PII_FIELDS
|
|
54
|
+
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { SchemaModel } from '@contractspec/lib.schema';
|
|
2
|
+
import { type AnyOperationSpec } from '@contractspec/lib.contracts-spec/operations';
|
|
3
|
+
import type { OperationSpecRegistry } from '@contractspec/lib.contracts-spec/operations/registry';
|
|
4
|
+
export declare const OpenBankingListAccounts: import("@contractspec/lib.contracts-spec").OperationSpec<SchemaModel<{
|
|
5
|
+
tenantId: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
userId: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
connectionId: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: true;
|
|
16
|
+
};
|
|
17
|
+
includeBalances: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
};
|
|
21
|
+
institutionId: {
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
23
|
+
isOptional: true;
|
|
24
|
+
};
|
|
25
|
+
cursor: {
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
pageSize: {
|
|
30
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
33
|
+
}>, SchemaModel<{
|
|
34
|
+
accounts: {
|
|
35
|
+
type: SchemaModel<{
|
|
36
|
+
id: {
|
|
37
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
38
|
+
isOptional: false;
|
|
39
|
+
};
|
|
40
|
+
tenantId: {
|
|
41
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
userId: {
|
|
45
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
connectionId: {
|
|
49
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
50
|
+
isOptional: false;
|
|
51
|
+
};
|
|
52
|
+
externalId: {
|
|
53
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
54
|
+
isOptional: false;
|
|
55
|
+
};
|
|
56
|
+
institutionId: {
|
|
57
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
58
|
+
isOptional: false;
|
|
59
|
+
};
|
|
60
|
+
institutionName: {
|
|
61
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
62
|
+
isOptional: false;
|
|
63
|
+
};
|
|
64
|
+
institutionLogoUrl: {
|
|
65
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
66
|
+
isOptional: true;
|
|
67
|
+
};
|
|
68
|
+
iban: {
|
|
69
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
70
|
+
isOptional: true;
|
|
71
|
+
};
|
|
72
|
+
bic: {
|
|
73
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
74
|
+
isOptional: true;
|
|
75
|
+
};
|
|
76
|
+
accountType: {
|
|
77
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
78
|
+
isOptional: false;
|
|
79
|
+
};
|
|
80
|
+
currency: {
|
|
81
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
82
|
+
isOptional: false;
|
|
83
|
+
};
|
|
84
|
+
displayName: {
|
|
85
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
accountNumberMasked: {
|
|
89
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
90
|
+
isOptional: true;
|
|
91
|
+
};
|
|
92
|
+
productCode: {
|
|
93
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
94
|
+
isOptional: true;
|
|
95
|
+
};
|
|
96
|
+
balance: {
|
|
97
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
98
|
+
isOptional: true;
|
|
99
|
+
};
|
|
100
|
+
availableBalance: {
|
|
101
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
};
|
|
104
|
+
lastSyncedAt: {
|
|
105
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
106
|
+
isOptional: false;
|
|
107
|
+
};
|
|
108
|
+
createdAt: {
|
|
109
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
110
|
+
isOptional: false;
|
|
111
|
+
};
|
|
112
|
+
updatedAt: {
|
|
113
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
114
|
+
isOptional: false;
|
|
115
|
+
};
|
|
116
|
+
metadata: {
|
|
117
|
+
type: import("@contractspec/lib.schema").FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
118
|
+
isOptional: true;
|
|
119
|
+
};
|
|
120
|
+
}>;
|
|
121
|
+
isOptional: false;
|
|
122
|
+
isArray: true;
|
|
123
|
+
};
|
|
124
|
+
nextCursor: {
|
|
125
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
126
|
+
isOptional: true;
|
|
127
|
+
};
|
|
128
|
+
hasMore: {
|
|
129
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
130
|
+
isOptional: true;
|
|
131
|
+
};
|
|
132
|
+
}>, undefined>;
|
|
133
|
+
export declare const OpenBankingGetAccount: import("@contractspec/lib.contracts-spec").OperationSpec<SchemaModel<{
|
|
134
|
+
tenantId: {
|
|
135
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
136
|
+
isOptional: false;
|
|
137
|
+
};
|
|
138
|
+
accountId: {
|
|
139
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
140
|
+
isOptional: false;
|
|
141
|
+
};
|
|
142
|
+
includeBalances: {
|
|
143
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
144
|
+
isOptional: true;
|
|
145
|
+
};
|
|
146
|
+
includeLatestTransactions: {
|
|
147
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
148
|
+
isOptional: true;
|
|
149
|
+
};
|
|
150
|
+
}>, SchemaModel<{
|
|
151
|
+
id: {
|
|
152
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
153
|
+
isOptional: false;
|
|
154
|
+
};
|
|
155
|
+
tenantId: {
|
|
156
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
157
|
+
isOptional: false;
|
|
158
|
+
};
|
|
159
|
+
userId: {
|
|
160
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
161
|
+
isOptional: false;
|
|
162
|
+
};
|
|
163
|
+
connectionId: {
|
|
164
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
165
|
+
isOptional: false;
|
|
166
|
+
};
|
|
167
|
+
externalId: {
|
|
168
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
169
|
+
isOptional: false;
|
|
170
|
+
};
|
|
171
|
+
institutionId: {
|
|
172
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
173
|
+
isOptional: false;
|
|
174
|
+
};
|
|
175
|
+
institutionName: {
|
|
176
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
177
|
+
isOptional: false;
|
|
178
|
+
};
|
|
179
|
+
institutionLogoUrl: {
|
|
180
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
181
|
+
isOptional: true;
|
|
182
|
+
};
|
|
183
|
+
iban: {
|
|
184
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
185
|
+
isOptional: true;
|
|
186
|
+
};
|
|
187
|
+
bic: {
|
|
188
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
189
|
+
isOptional: true;
|
|
190
|
+
};
|
|
191
|
+
accountType: {
|
|
192
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
193
|
+
isOptional: false;
|
|
194
|
+
};
|
|
195
|
+
currency: {
|
|
196
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
197
|
+
isOptional: false;
|
|
198
|
+
};
|
|
199
|
+
displayName: {
|
|
200
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
201
|
+
isOptional: false;
|
|
202
|
+
};
|
|
203
|
+
accountNumberMasked: {
|
|
204
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
205
|
+
isOptional: true;
|
|
206
|
+
};
|
|
207
|
+
productCode: {
|
|
208
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
209
|
+
isOptional: true;
|
|
210
|
+
};
|
|
211
|
+
balance: {
|
|
212
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
213
|
+
isOptional: true;
|
|
214
|
+
};
|
|
215
|
+
availableBalance: {
|
|
216
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
217
|
+
isOptional: true;
|
|
218
|
+
};
|
|
219
|
+
lastSyncedAt: {
|
|
220
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
221
|
+
isOptional: false;
|
|
222
|
+
};
|
|
223
|
+
createdAt: {
|
|
224
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
225
|
+
isOptional: false;
|
|
226
|
+
};
|
|
227
|
+
updatedAt: {
|
|
228
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
229
|
+
isOptional: false;
|
|
230
|
+
};
|
|
231
|
+
metadata: {
|
|
232
|
+
type: import("@contractspec/lib.schema").FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
233
|
+
isOptional: true;
|
|
234
|
+
};
|
|
235
|
+
}>, undefined>;
|
|
236
|
+
export declare const OpenBankingSyncAccounts: import("@contractspec/lib.contracts-spec").OperationSpec<SchemaModel<{
|
|
237
|
+
tenantId: {
|
|
238
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
239
|
+
isOptional: false;
|
|
240
|
+
};
|
|
241
|
+
userId: {
|
|
242
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
243
|
+
isOptional: true;
|
|
244
|
+
};
|
|
245
|
+
connectionId: {
|
|
246
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
247
|
+
isOptional: false;
|
|
248
|
+
};
|
|
249
|
+
accountIds: {
|
|
250
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
251
|
+
isArray: true;
|
|
252
|
+
isOptional: true;
|
|
253
|
+
};
|
|
254
|
+
forceFullRefresh: {
|
|
255
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
256
|
+
isOptional: true;
|
|
257
|
+
};
|
|
258
|
+
triggerWorkflows: {
|
|
259
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
260
|
+
isOptional: true;
|
|
261
|
+
};
|
|
262
|
+
}>, SchemaModel<{
|
|
263
|
+
synced: {
|
|
264
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
265
|
+
isOptional: false;
|
|
266
|
+
};
|
|
267
|
+
failed: {
|
|
268
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
269
|
+
isOptional: false;
|
|
270
|
+
};
|
|
271
|
+
errors: {
|
|
272
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
273
|
+
isArray: true;
|
|
274
|
+
isOptional: true;
|
|
275
|
+
};
|
|
276
|
+
nextSyncSuggestedAt: {
|
|
277
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
278
|
+
isOptional: true;
|
|
279
|
+
};
|
|
280
|
+
}>, undefined>;
|
|
281
|
+
export declare const openBankingAccountContracts: Record<string, AnyOperationSpec>;
|
|
282
|
+
export declare function registerOpenBankingAccountContracts(registry: OperationSpecRegistry): OperationSpecRegistry;
|