@lssm/example.pocket-family-office 0.0.0-canary-20251220002821 → 0.0.0-canary-20251220021406

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.
Files changed (109) hide show
  1. package/dist/blueprint.d.ts +4 -7
  2. package/dist/blueprint.d.ts.map +1 -1
  3. package/dist/connections/samples.d.ts +3 -7
  4. package/dist/connections/samples.d.ts.map +1 -1
  5. package/dist/contracts/index.d.ts +491 -118
  6. package/dist/contracts/index.d.ts.map +1 -1
  7. package/dist/index.d.ts +9 -16
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +89 -17
  10. package/dist/knowledge/sources.sample.d.ts +2 -6
  11. package/dist/knowledge/sources.sample.d.ts.map +1 -1
  12. package/dist/pocket-family-office.feature.d.ts +7 -7
  13. package/dist/pocket-family-office.feature.d.ts.map +1 -1
  14. package/dist/telemetry.d.ts +3 -7
  15. package/dist/telemetry.d.ts.map +1 -1
  16. package/dist/tenant.sample.d.ts +2 -6
  17. package/dist/tenant.sample.d.ts.map +1 -1
  18. package/dist/tests/pocket-family-office.test.d.ts +2 -0
  19. package/dist/tests/pocket-family-office.test.d.ts.map +1 -0
  20. package/dist/workflows/generate-financial-summary.d.ts +2 -6
  21. package/dist/workflows/generate-financial-summary.d.ts.map +1 -1
  22. package/dist/workflows/generate-openbanking-overview.d.ts +2 -6
  23. package/dist/workflows/generate-openbanking-overview.d.ts.map +1 -1
  24. package/dist/workflows/index.d.ts +9 -9
  25. package/dist/workflows/index.d.ts.map +1 -0
  26. package/dist/workflows/ingest-email-threads.d.ts +2 -6
  27. package/dist/workflows/ingest-email-threads.d.ts.map +1 -1
  28. package/dist/workflows/process-uploaded-document.d.ts +2 -6
  29. package/dist/workflows/process-uploaded-document.d.ts.map +1 -1
  30. package/dist/workflows/refresh-openbanking-balances.d.ts +2 -6
  31. package/dist/workflows/refresh-openbanking-balances.d.ts.map +1 -1
  32. package/dist/workflows/sync-openbanking-accounts.d.ts +2 -6
  33. package/dist/workflows/sync-openbanking-accounts.d.ts.map +1 -1
  34. package/dist/workflows/sync-openbanking-transactions.d.ts +2 -6
  35. package/dist/workflows/sync-openbanking-transactions.d.ts.map +1 -1
  36. package/dist/workflows/upcoming-payments-reminder.d.ts +2 -6
  37. package/dist/workflows/upcoming-payments-reminder.d.ts.map +1 -1
  38. package/package.json +12 -11
  39. package/dist/blueprint.js +0 -201
  40. package/dist/blueprint.js.map +0 -1
  41. package/dist/connections/samples.js +0 -227
  42. package/dist/connections/samples.js.map +0 -1
  43. package/dist/contracts/index.js +0 -271
  44. package/dist/contracts/index.js.map +0 -1
  45. package/dist/knowledge/sources.sample.js +0 -50
  46. package/dist/knowledge/sources.sample.js.map +0 -1
  47. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  48. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -227
  49. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
  50. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -158
  51. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
  52. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  53. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -209
  54. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
  55. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
  56. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
  57. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -26
  58. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
  59. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
  60. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
  61. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
  62. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
  63. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
  64. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
  65. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
  66. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
  67. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  68. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
  69. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
  70. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
  71. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
  72. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
  73. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
  74. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
  75. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
  76. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  77. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
  78. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
  79. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
  80. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
  81. package/dist/libs/contracts/dist/ownership.js +0 -38
  82. package/dist/libs/contracts/dist/ownership.js.map +0 -1
  83. package/dist/libs/contracts/dist/schema/dist/index.js +0 -3873
  84. package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
  85. package/dist/libs/contracts/dist/spec.js +0 -35
  86. package/dist/libs/contracts/dist/spec.js.map +0 -1
  87. package/dist/pocket-family-office.feature.js +0 -47
  88. package/dist/pocket-family-office.feature.js.map +0 -1
  89. package/dist/telemetry.js +0 -171
  90. package/dist/telemetry.js.map +0 -1
  91. package/dist/tenant.sample.js +0 -90
  92. package/dist/tenant.sample.js.map +0 -1
  93. package/dist/workflows/generate-financial-summary.js +0 -61
  94. package/dist/workflows/generate-financial-summary.js.map +0 -1
  95. package/dist/workflows/generate-openbanking-overview.js +0 -58
  96. package/dist/workflows/generate-openbanking-overview.js.map +0 -1
  97. package/dist/workflows/index.js +0 -10
  98. package/dist/workflows/ingest-email-threads.js +0 -53
  99. package/dist/workflows/ingest-email-threads.js.map +0 -1
  100. package/dist/workflows/process-uploaded-document.js +0 -51
  101. package/dist/workflows/process-uploaded-document.js.map +0 -1
  102. package/dist/workflows/refresh-openbanking-balances.js +0 -67
  103. package/dist/workflows/refresh-openbanking-balances.js.map +0 -1
  104. package/dist/workflows/sync-openbanking-accounts.js +0 -67
  105. package/dist/workflows/sync-openbanking-accounts.js.map +0 -1
  106. package/dist/workflows/sync-openbanking-transactions.js +0 -67
  107. package/dist/workflows/sync-openbanking-transactions.js.map +0 -1
  108. package/dist/workflows/upcoming-payments-reminder.js +0 -56
  109. package/dist/workflows/upcoming-payments-reminder.js.map +0 -1
@@ -1,35 +0,0 @@
1
- //#region ../../libs/contracts/dist/spec.js
2
- /**
3
- * Helper to define a Command (write operation).
4
- * Sets `kind: 'command'` and defaults `idempotent: false`.
5
- */
6
- const defineCommand = (spec) => ({
7
- ...spec,
8
- meta: {
9
- ...spec.meta,
10
- kind: "command"
11
- },
12
- policy: {
13
- ...spec.policy,
14
- idempotent: spec.policy?.["policy"]?.idempotent ?? false
15
- }
16
- });
17
- /**
18
- * Helper to define a Query (read-only operation).
19
- * Sets `kind: 'query'` and forces `idempotent: true`.
20
- */
21
- const defineQuery = (spec) => ({
22
- ...spec,
23
- meta: {
24
- ...spec.meta,
25
- kind: "query"
26
- },
27
- policy: {
28
- ...spec.policy,
29
- idempotent: true
30
- }
31
- });
32
-
33
- //#endregion
34
- export { defineCommand, defineQuery };
35
- //# sourceMappingURL=spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../libs/contracts/dist/spec.js"],"sourcesContent":["//#region src/spec.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
@@ -1,47 +0,0 @@
1
- //#region src/pocket-family-office.feature.ts
2
- /**
3
- * Pocket Family Office feature module that bundles financial document
4
- * management, open banking integration, and automated summaries.
5
- */
6
- const PocketFamilyOfficeFeature = {
7
- meta: {
8
- key: "pocket-family-office",
9
- title: "Pocket Family Office",
10
- description: "Personal finance automation with document ingestion, open banking, and AI summaries",
11
- domain: "finance",
12
- owners: ["@platform.finance"],
13
- tags: [
14
- "finance",
15
- "open-banking",
16
- "documents",
17
- "automation",
18
- "family-office"
19
- ],
20
- stability: "experimental"
21
- },
22
- operations: [{
23
- name: "pfo.documents.upload",
24
- version: 1
25
- }],
26
- events: [],
27
- presentations: [],
28
- opToPresentation: [],
29
- presentationsTargets: [],
30
- capabilities: {
31
- provides: [{
32
- key: "pocket-family-office",
33
- version: 1
34
- }],
35
- requires: [{
36
- key: "identity",
37
- version: 1
38
- }, {
39
- key: "openbanking",
40
- version: 1
41
- }]
42
- }
43
- };
44
-
45
- //#endregion
46
- export { PocketFamilyOfficeFeature };
47
- //# sourceMappingURL=pocket-family-office.feature.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pocket-family-office.feature.js","names":["PocketFamilyOfficeFeature: FeatureModuleSpec"],"sources":["../src/pocket-family-office.feature.ts"],"sourcesContent":["/**\n * Pocket Family Office Feature Module Specification\n *\n * Defines the feature module for personal finance automation.\n */\nimport type { FeatureModuleSpec } from '@lssm/lib.contracts';\n\n/**\n * Pocket Family Office feature module that bundles financial document\n * management, open banking integration, and automated summaries.\n */\nexport const PocketFamilyOfficeFeature: FeatureModuleSpec = {\n meta: {\n key: 'pocket-family-office',\n title: 'Pocket Family Office',\n description:\n 'Personal finance automation with document ingestion, open banking, and AI summaries',\n domain: 'finance',\n owners: ['@platform.finance'],\n tags: [\n 'finance',\n 'open-banking',\n 'documents',\n 'automation',\n 'family-office',\n ],\n stability: 'experimental',\n },\n\n // All contract operations included in this feature\n // Note: Only pfo.documents.upload is defined using defineCommand and is scanned.\n // Other contracts use raw ContractSpec objects and are not automatically scanned.\n operations: [{ name: 'pfo.documents.upload', version: 1 }],\n\n // No events defined separately for this feature\n events: [],\n\n // No presentations for this example feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [{ key: 'pocket-family-office', version: 1 }],\n requires: [\n { key: 'identity', version: 1 },\n { key: 'openbanking', version: 1 },\n ],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,4BAA+C;CAC1D,MAAM;EACJ,KAAK;EACL,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GACJ;GACA;GACA;GACA;GACA;GACD;EACD,WAAW;EACZ;CAKD,YAAY,CAAC;EAAE,MAAM;EAAwB,SAAS;EAAG,CAAC;CAG1D,QAAQ,EAAE;CAGV,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CAGxB,cAAc;EACZ,UAAU,CAAC;GAAE,KAAK;GAAwB,SAAS;GAAG,CAAC;EACvD,UAAU,CACR;GAAE,KAAK;GAAY,SAAS;GAAG,EAC/B;GAAE,KAAK;GAAe,SAAS;GAAG,CACnC;EACF;CACF"}
package/dist/telemetry.js DELETED
@@ -1,171 +0,0 @@
1
- import { OwnersEnum, StabilityEnum, TagsEnum } from "./libs/contracts/dist/ownership.js";
2
- import { OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS } from "./libs/contracts/dist/integrations/openbanking/telemetry.js";
3
- import "./libs/contracts/dist/integrations/index.js";
4
-
5
- //#region src/telemetry.ts
6
- const commonProperties = {
7
- tenantId: {
8
- type: "string",
9
- required: true,
10
- description: "Tenant identifier for multi-tenant isolation."
11
- },
12
- appId: {
13
- type: "string",
14
- required: true,
15
- description: "Application identifier associated with the event."
16
- },
17
- blueprint: {
18
- type: "string",
19
- required: true,
20
- description: "Blueprint name@version emitting the telemetry."
21
- },
22
- configVersion: {
23
- type: "number",
24
- required: true,
25
- description: "Resolved app config version when the event was generated."
26
- },
27
- slotId: {
28
- type: "string",
29
- required: true,
30
- description: "Integration slot identifier (e.g., primaryOpenBanking)."
31
- },
32
- connectionId: {
33
- type: "string",
34
- required: true,
35
- description: "Integration connection ID used for the sync."
36
- }
37
- };
38
- function piiSafeString(description) {
39
- return {
40
- type: "string",
41
- description,
42
- pii: false
43
- };
44
- }
45
- const pocketFamilyOfficeTelemetry = {
46
- meta: {
47
- name: "pfo.telemetry",
48
- version: 1,
49
- title: "Pocket Family Office Telemetry",
50
- description: "Operational telemetry for Pocket Family Office workflows, including Powens open banking syncs.",
51
- domain: "finance",
52
- owners: [OwnersEnum.PlatformFinance],
53
- tags: ["open-banking", TagsEnum.Automation],
54
- stability: StabilityEnum.Experimental
55
- },
56
- config: {
57
- defaultRetentionDays: 180,
58
- defaultSamplingRate: 1
59
- },
60
- events: [
61
- {
62
- name: OPENBANKING_TELEMETRY_EVENTS.accountsSynced,
63
- version: 1,
64
- semantics: {
65
- what: "Open banking account synchronisation completed.",
66
- why: "Refresh canonical account metadata for reporting and workflows."
67
- },
68
- privacy: "internal",
69
- properties: {
70
- ...commonProperties,
71
- syncedCount: {
72
- type: "number",
73
- description: "Number of accounts synced successfully."
74
- },
75
- failedCount: {
76
- type: "number",
77
- description: "Number of accounts that failed to sync."
78
- },
79
- durationMs: {
80
- type: "number",
81
- description: "Duration of the sync job in milliseconds."
82
- }
83
- }
84
- },
85
- {
86
- name: OPENBANKING_TELEMETRY_EVENTS.transactionsSynced,
87
- version: 1,
88
- semantics: {
89
- what: "Open banking transaction synchronisation completed.",
90
- why: "Keep canonical transaction ledger in sync for analytics."
91
- },
92
- privacy: "internal",
93
- properties: {
94
- ...commonProperties,
95
- accountId: {
96
- type: "string",
97
- description: "Bank account identifier used during the sync.",
98
- pii: false
99
- },
100
- syncedCount: {
101
- type: "number",
102
- description: "Number of transactions synced successfully."
103
- },
104
- failedCount: {
105
- type: "number",
106
- description: "Number of transactions that failed to sync."
107
- },
108
- from: {
109
- type: "timestamp",
110
- description: "Start timestamp for the sync window."
111
- },
112
- to: {
113
- type: "timestamp",
114
- description: "End timestamp for the sync window."
115
- }
116
- }
117
- },
118
- {
119
- name: OPENBANKING_TELEMETRY_EVENTS.balancesRefreshed,
120
- version: 1,
121
- semantics: {
122
- what: "Open banking balances refreshed.",
123
- why: "Provide accurate cash position for dashboards and alerts."
124
- },
125
- privacy: "internal",
126
- properties: {
127
- ...commonProperties,
128
- accountId: piiSafeString("Bank account identifier."),
129
- balanceTypes: {
130
- type: "json",
131
- description: "Balance types included in the refresh."
132
- },
133
- refreshedAt: {
134
- type: "timestamp",
135
- description: "Timestamp when balances were refreshed."
136
- }
137
- }
138
- },
139
- {
140
- name: OPENBANKING_TELEMETRY_EVENTS.overviewGenerated,
141
- version: 1,
142
- semantics: {
143
- what: "Derived financial overview generated.",
144
- why: "Persist cashflow and category summaries into knowledge space."
145
- },
146
- privacy: "internal",
147
- properties: {
148
- ...commonProperties,
149
- knowledgeEntryId: piiSafeString("Identifier of the knowledge document containing the overview."),
150
- period: {
151
- type: "string",
152
- description: "Aggregation period used (week, month, quarter)."
153
- },
154
- periodStart: {
155
- type: "timestamp",
156
- description: "Start timestamp for the aggregation window."
157
- },
158
- periodEnd: {
159
- type: "timestamp",
160
- description: "End timestamp for the aggregation window."
161
- }
162
- },
163
- tags: ["knowledge", "analytics"]
164
- }
165
- ]
166
- };
167
- const OPENBANKING_SENSITIVE_FIELDS = OPENBANKING_PII_FIELDS;
168
-
169
- //#endregion
170
- export { OPENBANKING_SENSITIVE_FIELDS, pocketFamilyOfficeTelemetry };
171
- //# sourceMappingURL=telemetry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetry.js","names":["pocketFamilyOfficeTelemetry: TelemetrySpec"],"sources":["../src/telemetry.ts"],"sourcesContent":["import type { TelemetrySpec } from '@lssm/lib.contracts/telemetry/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\nimport {\n OPENBANKING_PII_FIELDS,\n OPENBANKING_TELEMETRY_EVENTS,\n} from '@lssm/lib.contracts/integrations';\n\nconst commonProperties = {\n tenantId: {\n type: 'string',\n required: true,\n description: 'Tenant identifier for multi-tenant isolation.',\n },\n appId: {\n type: 'string',\n required: true,\n description: 'Application identifier associated with the event.',\n },\n blueprint: {\n type: 'string',\n required: true,\n description: 'Blueprint name@version emitting the telemetry.',\n },\n configVersion: {\n type: 'number',\n required: true,\n description: 'Resolved app config version when the event was generated.',\n },\n slotId: {\n type: 'string',\n required: true,\n description: 'Integration slot identifier (e.g., primaryOpenBanking).',\n },\n connectionId: {\n type: 'string',\n required: true,\n description: 'Integration connection ID used for the sync.',\n },\n};\n\nfunction piiSafeString(description: string) {\n return {\n type: 'string' as const,\n description,\n pii: false,\n };\n}\n\nexport const pocketFamilyOfficeTelemetry: TelemetrySpec = {\n meta: {\n name: 'pfo.telemetry',\n version: 1,\n title: 'Pocket Family Office Telemetry',\n description:\n 'Operational telemetry for Pocket Family Office workflows, including Powens open banking syncs.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['open-banking', TagsEnum.Automation],\n stability: StabilityEnum.Experimental,\n },\n config: {\n defaultRetentionDays: 180,\n defaultSamplingRate: 1,\n },\n events: [\n {\n name: OPENBANKING_TELEMETRY_EVENTS.accountsSynced,\n version: 1,\n semantics: {\n what: 'Open banking account synchronisation completed.',\n why: 'Refresh canonical account metadata for reporting and workflows.',\n },\n privacy: 'internal',\n properties: {\n ...commonProperties,\n syncedCount: {\n type: 'number',\n description: 'Number of accounts synced successfully.',\n },\n failedCount: {\n type: 'number',\n description: 'Number of accounts that failed to sync.',\n },\n durationMs: {\n type: 'number',\n description: 'Duration of the sync job in milliseconds.',\n },\n },\n },\n {\n name: OPENBANKING_TELEMETRY_EVENTS.transactionsSynced,\n version: 1,\n semantics: {\n what: 'Open banking transaction synchronisation completed.',\n why: 'Keep canonical transaction ledger in sync for analytics.',\n },\n privacy: 'internal',\n properties: {\n ...commonProperties,\n accountId: {\n type: 'string',\n description: 'Bank account identifier used during the sync.',\n pii: false,\n },\n syncedCount: {\n type: 'number',\n description: 'Number of transactions synced successfully.',\n },\n failedCount: {\n type: 'number',\n description: 'Number of transactions that failed to sync.',\n },\n from: {\n type: 'timestamp',\n description: 'Start timestamp for the sync window.',\n },\n to: {\n type: 'timestamp',\n description: 'End timestamp for the sync window.',\n },\n },\n },\n {\n name: OPENBANKING_TELEMETRY_EVENTS.balancesRefreshed,\n version: 1,\n semantics: {\n what: 'Open banking balances refreshed.',\n why: 'Provide accurate cash position for dashboards and alerts.',\n },\n privacy: 'internal',\n properties: {\n ...commonProperties,\n accountId: piiSafeString('Bank account identifier.'),\n balanceTypes: {\n type: 'json',\n description: 'Balance types included in the refresh.',\n },\n refreshedAt: {\n type: 'timestamp',\n description: 'Timestamp when balances were refreshed.',\n },\n },\n },\n {\n name: OPENBANKING_TELEMETRY_EVENTS.overviewGenerated,\n version: 1,\n semantics: {\n what: 'Derived financial overview generated.',\n why: 'Persist cashflow and category summaries into knowledge space.',\n },\n privacy: 'internal',\n properties: {\n ...commonProperties,\n knowledgeEntryId: piiSafeString(\n 'Identifier of the knowledge document containing the overview.'\n ),\n period: {\n type: 'string',\n description: 'Aggregation period used (week, month, quarter).',\n },\n periodStart: {\n type: 'timestamp',\n description: 'Start timestamp for the aggregation window.',\n },\n periodEnd: {\n type: 'timestamp',\n description: 'End timestamp for the aggregation window.',\n },\n },\n tags: ['knowledge', 'analytics'],\n },\n ],\n};\n\nexport const OPENBANKING_SENSITIVE_FIELDS = OPENBANKING_PII_FIELDS;\n"],"mappings":";;;;;AAWA,MAAM,mBAAmB;CACvB,UAAU;EACR,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACD,OAAO;EACL,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACD,WAAW;EACT,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACD,eAAe;EACb,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACD,QAAQ;EACN,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACD,cAAc;EACZ,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACF;AAED,SAAS,cAAc,aAAqB;AAC1C,QAAO;EACL,MAAM;EACN;EACA,KAAK;EACN;;AAGH,MAAaA,8BAA6C;CACxD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM,CAAC,gBAAgB,SAAS,WAAW;EAC3C,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,sBAAsB;EACtB,qBAAqB;EACtB;CACD,QAAQ;EACN;GACE,MAAM,6BAA6B;GACnC,SAAS;GACT,WAAW;IACT,MAAM;IACN,KAAK;IACN;GACD,SAAS;GACT,YAAY;IACV,GAAG;IACH,aAAa;KACX,MAAM;KACN,aAAa;KACd;IACD,aAAa;KACX,MAAM;KACN,aAAa;KACd;IACD,YAAY;KACV,MAAM;KACN,aAAa;KACd;IACF;GACF;EACD;GACE,MAAM,6BAA6B;GACnC,SAAS;GACT,WAAW;IACT,MAAM;IACN,KAAK;IACN;GACD,SAAS;GACT,YAAY;IACV,GAAG;IACH,WAAW;KACT,MAAM;KACN,aAAa;KACb,KAAK;KACN;IACD,aAAa;KACX,MAAM;KACN,aAAa;KACd;IACD,aAAa;KACX,MAAM;KACN,aAAa;KACd;IACD,MAAM;KACJ,MAAM;KACN,aAAa;KACd;IACD,IAAI;KACF,MAAM;KACN,aAAa;KACd;IACF;GACF;EACD;GACE,MAAM,6BAA6B;GACnC,SAAS;GACT,WAAW;IACT,MAAM;IACN,KAAK;IACN;GACD,SAAS;GACT,YAAY;IACV,GAAG;IACH,WAAW,cAAc,2BAA2B;IACpD,cAAc;KACZ,MAAM;KACN,aAAa;KACd;IACD,aAAa;KACX,MAAM;KACN,aAAa;KACd;IACF;GACF;EACD;GACE,MAAM,6BAA6B;GACnC,SAAS;GACT,WAAW;IACT,MAAM;IACN,KAAK;IACN;GACD,SAAS;GACT,YAAY;IACV,GAAG;IACH,kBAAkB,cAChB,gEACD;IACD,QAAQ;KACN,MAAM;KACN,aAAa;KACd;IACD,aAAa;KACX,MAAM;KACN,aAAa;KACd;IACD,WAAW;KACT,MAAM;KACN,aAAa;KACd;IACF;GACD,MAAM,CAAC,aAAa,YAAY;GACjC;EACF;CACF;AAED,MAAa,+BAA+B"}
@@ -1,90 +0,0 @@
1
- //#region src/tenant.sample.ts
2
- const pocketFamilyOfficeTenantSample = {
3
- meta: {
4
- id: "tenant-pfo-sample",
5
- tenantId: "tenant.family-office",
6
- appId: "pocket-family-office",
7
- blueprintName: "pocket-family-office.app",
8
- blueprintVersion: 1,
9
- environment: "production",
10
- version: 1,
11
- createdAt: (/* @__PURE__ */ new Date()).toISOString(),
12
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
13
- },
14
- featureFlags: [{
15
- key: "voice-summaries",
16
- enabled: true,
17
- description: "Enable spoken ElevenLabs summaries for daily briefings."
18
- }],
19
- integrations: [
20
- {
21
- slotId: "primaryLLM",
22
- connectionId: "conn-mistral-primary"
23
- },
24
- {
25
- slotId: "primaryVectorDb",
26
- connectionId: "conn-qdrant-finance"
27
- },
28
- {
29
- slotId: "primaryStorage",
30
- connectionId: "conn-gcs-documents"
31
- },
32
- {
33
- slotId: "primaryOpenBanking",
34
- connectionId: "conn-powens-primary"
35
- },
36
- {
37
- slotId: "emailInbound",
38
- connectionId: "conn-gmail-threads"
39
- },
40
- {
41
- slotId: "emailOutbound",
42
- connectionId: "conn-postmark-outbound"
43
- },
44
- {
45
- slotId: "calendarScheduling",
46
- connectionId: "conn-google-calendar"
47
- },
48
- {
49
- slotId: "voicePlayback",
50
- connectionId: "conn-elevenlabs-voice"
51
- },
52
- {
53
- slotId: "smsNotifications",
54
- connectionId: "conn-twilio-sms"
55
- },
56
- {
57
- slotId: "paymentsProcessing",
58
- connectionId: "conn-stripe-recurring"
59
- }
60
- ],
61
- knowledge: [
62
- {
63
- spaceKey: "knowledge.financial-docs",
64
- scope: { workflows: ["pfo.workflow.process-uploaded-document", "pfo.workflow.generate-financial-summary"] }
65
- },
66
- {
67
- spaceKey: "knowledge.email-threads",
68
- scope: { workflows: ["pfo.workflow.ingest-email-threads"] }
69
- },
70
- {
71
- spaceKey: "knowledge.financial-overview",
72
- scope: { workflows: [
73
- "pfo.workflow.sync-openbanking-transactions",
74
- "pfo.workflow.refresh-openbanking-balances",
75
- "pfo.workflow.generate-financial-summary",
76
- "pfo.workflow.generate-openbanking-overview"
77
- ] },
78
- required: false
79
- }
80
- ],
81
- locales: {
82
- defaultLocale: "en",
83
- enabledLocales: ["en"]
84
- },
85
- notes: "Sample tenant configuration for hackathon demos. Replace connection IDs with tenant-specific bindings when provisioning."
86
- };
87
-
88
- //#endregion
89
- export { pocketFamilyOfficeTenantSample };
90
- //# sourceMappingURL=tenant.sample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tenant.sample.js","names":["pocketFamilyOfficeTenantSample: TenantAppConfig"],"sources":["../src/tenant.sample.ts"],"sourcesContent":["import type { TenantAppConfig } from '@lssm/lib.contracts/app-config/spec';\n\nexport const pocketFamilyOfficeTenantSample: TenantAppConfig = {\n meta: {\n id: 'tenant-pfo-sample',\n tenantId: 'tenant.family-office',\n appId: 'pocket-family-office',\n blueprintName: 'pocket-family-office.app',\n blueprintVersion: 1,\n environment: 'production',\n version: 1,\n createdAt: new Date().toISOString(),\n updatedAt: new Date().toISOString(),\n },\n featureFlags: [\n {\n key: 'voice-summaries',\n enabled: true,\n description: 'Enable spoken ElevenLabs summaries for daily briefings.',\n },\n ],\n integrations: [\n { slotId: 'primaryLLM', connectionId: 'conn-mistral-primary' },\n { slotId: 'primaryVectorDb', connectionId: 'conn-qdrant-finance' },\n { slotId: 'primaryStorage', connectionId: 'conn-gcs-documents' },\n { slotId: 'primaryOpenBanking', connectionId: 'conn-powens-primary' },\n { slotId: 'emailInbound', connectionId: 'conn-gmail-threads' },\n { slotId: 'emailOutbound', connectionId: 'conn-postmark-outbound' },\n { slotId: 'calendarScheduling', connectionId: 'conn-google-calendar' },\n { slotId: 'voicePlayback', connectionId: 'conn-elevenlabs-voice' },\n { slotId: 'smsNotifications', connectionId: 'conn-twilio-sms' },\n { slotId: 'paymentsProcessing', connectionId: 'conn-stripe-recurring' },\n ],\n knowledge: [\n {\n spaceKey: 'knowledge.financial-docs',\n scope: {\n workflows: [\n 'pfo.workflow.process-uploaded-document',\n 'pfo.workflow.generate-financial-summary',\n ],\n },\n },\n {\n spaceKey: 'knowledge.email-threads',\n scope: {\n workflows: ['pfo.workflow.ingest-email-threads'],\n },\n },\n {\n spaceKey: 'knowledge.financial-overview',\n scope: {\n workflows: [\n 'pfo.workflow.sync-openbanking-transactions',\n 'pfo.workflow.refresh-openbanking-balances',\n 'pfo.workflow.generate-financial-summary',\n 'pfo.workflow.generate-openbanking-overview',\n ],\n },\n required: false,\n },\n ],\n locales: {\n defaultLocale: 'en',\n enabledLocales: ['en'],\n },\n notes:\n 'Sample tenant configuration for hackathon demos. Replace connection IDs with tenant-specific bindings when provisioning.',\n};\n"],"mappings":";AAEA,MAAaA,iCAAkD;CAC7D,MAAM;EACJ,IAAI;EACJ,UAAU;EACV,OAAO;EACP,eAAe;EACf,kBAAkB;EAClB,aAAa;EACb,SAAS;EACT,4BAAW,IAAI,MAAM,EAAC,aAAa;EACnC,4BAAW,IAAI,MAAM,EAAC,aAAa;EACpC;CACD,cAAc,CACZ;EACE,KAAK;EACL,SAAS;EACT,aAAa;EACd,CACF;CACD,cAAc;EACZ;GAAE,QAAQ;GAAc,cAAc;GAAwB;EAC9D;GAAE,QAAQ;GAAmB,cAAc;GAAuB;EAClE;GAAE,QAAQ;GAAkB,cAAc;GAAsB;EAChE;GAAE,QAAQ;GAAsB,cAAc;GAAuB;EACrE;GAAE,QAAQ;GAAgB,cAAc;GAAsB;EAC9D;GAAE,QAAQ;GAAiB,cAAc;GAA0B;EACnE;GAAE,QAAQ;GAAsB,cAAc;GAAwB;EACtE;GAAE,QAAQ;GAAiB,cAAc;GAAyB;EAClE;GAAE,QAAQ;GAAoB,cAAc;GAAmB;EAC/D;GAAE,QAAQ;GAAsB,cAAc;GAAyB;EACxE;CACD,WAAW;EACT;GACE,UAAU;GACV,OAAO,EACL,WAAW,CACT,0CACA,0CACD,EACF;GACF;EACD;GACE,UAAU;GACV,OAAO,EACL,WAAW,CAAC,oCAAoC,EACjD;GACF;EACD;GACE,UAAU;GACV,OAAO,EACL,WAAW;IACT;IACA;IACA;IACA;IACD,EACF;GACD,UAAU;GACX;EACF;CACD,SAAS;EACP,eAAe;EACf,gBAAgB,CAAC,KAAK;EACvB;CACD,OACE;CACH"}
@@ -1,61 +0,0 @@
1
- import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
2
-
3
- //#region src/workflows/generate-financial-summary.ts
4
- const generateFinancialSummaryWorkflow = {
5
- meta: {
6
- name: "pfo.workflow.generate-financial-summary",
7
- version: 1,
8
- title: "Generate Financial Summary",
9
- description: "Retrieves the latest financial signals, generates an AI summary, and optionally distributes it by voice or email.",
10
- domain: "finance",
11
- owners: [OwnersEnum.PlatformFinance],
12
- tags: [
13
- "summary",
14
- "ai",
15
- TagsEnum.Automation
16
- ],
17
- stability: StabilityEnum.Beta
18
- },
19
- definition: {
20
- entryStepId: "summarise",
21
- steps: [{
22
- id: "summarise",
23
- type: "automation",
24
- label: "Generate Summary",
25
- description: "Run retrieval augmented generation over the knowledge base to produce a household summary.",
26
- action: { operation: {
27
- name: "pfo.summary.generate",
28
- version: 1
29
- } },
30
- requiredIntegrations: ["primaryLLM", "primaryVectorDb"],
31
- retry: {
32
- maxAttempts: 3,
33
- backoff: "exponential",
34
- delayMs: 750
35
- }
36
- }, {
37
- id: "distribute",
38
- type: "automation",
39
- label: "Distribute Summary",
40
- description: "Send the generated summary via email and optionally synthesise a voice note.",
41
- action: { operation: {
42
- name: "pfo.summary.dispatch",
43
- version: 1
44
- } },
45
- requiredIntegrations: ["emailOutbound"],
46
- retry: {
47
- maxAttempts: 2,
48
- backoff: "linear",
49
- delayMs: 500
50
- }
51
- }],
52
- transitions: [{
53
- from: "summarise",
54
- to: "distribute"
55
- }]
56
- }
57
- };
58
-
59
- //#endregion
60
- export { generateFinancialSummaryWorkflow };
61
- //# sourceMappingURL=generate-financial-summary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-financial-summary.js","names":["generateFinancialSummaryWorkflow: WorkflowSpec"],"sources":["../../src/workflows/generate-financial-summary.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nexport const generateFinancialSummaryWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.generate-financial-summary',\n version: 1,\n title: 'Generate Financial Summary',\n description:\n 'Retrieves the latest financial signals, generates an AI summary, and optionally distributes it by voice or email.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['summary', 'ai', TagsEnum.Automation],\n stability: StabilityEnum.Beta,\n },\n definition: {\n entryStepId: 'summarise',\n steps: [\n {\n id: 'summarise',\n type: 'automation',\n label: 'Generate Summary',\n description:\n 'Run retrieval augmented generation over the knowledge base to produce a household summary.',\n action: {\n operation: { name: 'pfo.summary.generate', version: 1 },\n },\n requiredIntegrations: ['primaryLLM', 'primaryVectorDb'],\n retry: {\n maxAttempts: 3,\n backoff: 'exponential',\n delayMs: 750,\n },\n },\n {\n id: 'distribute',\n type: 'automation',\n label: 'Distribute Summary',\n description:\n 'Send the generated summary via email and optionally synthesise a voice note.',\n action: {\n operation: { name: 'pfo.summary.dispatch', version: 1 },\n },\n requiredIntegrations: ['emailOutbound'],\n retry: {\n maxAttempts: 2,\n backoff: 'linear',\n delayMs: 500,\n },\n },\n ],\n transitions: [{ from: 'summarise', to: 'distribute' }],\n },\n};\n"],"mappings":";;;AAOA,MAAaA,mCAAiD;CAC5D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAW;GAAM,SAAS;GAAW;EAC5C,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAAwB,SAAS;IAAG,EACxD;GACD,sBAAsB,CAAC,cAAc,kBAAkB;GACvD,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,EACD;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAAwB,SAAS;IAAG,EACxD;GACD,sBAAsB,CAAC,gBAAgB;GACvC,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,CACF;EACD,aAAa,CAAC;GAAE,MAAM;GAAa,IAAI;GAAc,CAAC;EACvD;CACF"}
@@ -1,58 +0,0 @@
1
- import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
2
-
3
- //#region src/workflows/generate-openbanking-overview.ts
4
- const OPEN_BANKING_CAPABILITIES = [
5
- {
6
- key: "openbanking.accounts.read",
7
- version: 1
8
- },
9
- {
10
- key: "openbanking.transactions.read",
11
- version: 1
12
- },
13
- {
14
- key: "openbanking.balances.read",
15
- version: 1
16
- }
17
- ];
18
- const generateOpenBankingOverviewWorkflow = {
19
- meta: {
20
- name: "pfo.workflow.generate-openbanking-overview",
21
- version: 1,
22
- title: "Generate Open Banking Overview",
23
- description: "Produces a derived financial overview and stores it in the operational knowledge space.",
24
- domain: "finance",
25
- owners: [OwnersEnum.PlatformFinance],
26
- tags: [
27
- "open-banking",
28
- "summary",
29
- TagsEnum.Automation
30
- ],
31
- stability: StabilityEnum.Experimental
32
- },
33
- definition: {
34
- entryStepId: "generate-overview",
35
- steps: [{
36
- id: "generate-overview",
37
- type: "automation",
38
- label: "Generate Overview",
39
- description: "Aggregate balances, cashflow, and category breakdowns into a knowledge entry.",
40
- action: { operation: {
41
- name: "pfo.openbanking.generate-overview",
42
- version: 1
43
- } },
44
- requiredIntegrations: ["primaryOpenBanking"],
45
- requiredCapabilities: OPEN_BANKING_CAPABILITIES,
46
- retry: {
47
- maxAttempts: 3,
48
- backoff: "exponential",
49
- delayMs: 1500
50
- }
51
- }],
52
- transitions: []
53
- }
54
- };
55
-
56
- //#endregion
57
- export { generateOpenBankingOverviewWorkflow };
58
- //# sourceMappingURL=generate-openbanking-overview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-openbanking-overview.js","names":["generateOpenBankingOverviewWorkflow: WorkflowSpec"],"sources":["../../src/workflows/generate-openbanking-overview.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nconst OPEN_BANKING_CAPABILITIES = [\n { key: 'openbanking.accounts.read', version: 1 },\n { key: 'openbanking.transactions.read', version: 1 },\n { key: 'openbanking.balances.read', version: 1 },\n];\n\nexport const generateOpenBankingOverviewWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.generate-openbanking-overview',\n version: 1,\n title: 'Generate Open Banking Overview',\n description:\n 'Produces a derived financial overview and stores it in the operational knowledge space.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['open-banking', 'summary', TagsEnum.Automation],\n stability: StabilityEnum.Experimental,\n },\n definition: {\n entryStepId: 'generate-overview',\n steps: [\n {\n id: 'generate-overview',\n type: 'automation',\n label: 'Generate Overview',\n description:\n 'Aggregate balances, cashflow, and category breakdowns into a knowledge entry.',\n action: {\n operation: { name: 'pfo.openbanking.generate-overview', version: 1 },\n },\n requiredIntegrations: ['primaryOpenBanking'],\n requiredCapabilities: OPEN_BANKING_CAPABILITIES,\n retry: {\n maxAttempts: 3,\n backoff: 'exponential',\n delayMs: 1_500,\n },\n },\n ],\n transitions: [],\n },\n};\n"],"mappings":";;;AAOA,MAAM,4BAA4B;CAChC;EAAE,KAAK;EAA6B,SAAS;EAAG;CAChD;EAAE,KAAK;EAAiC,SAAS;EAAG;CACpD;EAAE,KAAK;EAA6B,SAAS;EAAG;CACjD;AAED,MAAaA,sCAAoD;CAC/D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAgB;GAAW,SAAS;GAAW;EACtD,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAAqC,SAAS;IAAG,EACrE;GACD,sBAAsB,CAAC,qBAAqB;GAC5C,sBAAsB;GACtB,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,CACF;EACD,aAAa,EAAE;EAChB;CACF"}
@@ -1,10 +0,0 @@
1
- import { processUploadedDocumentWorkflow } from "./process-uploaded-document.js";
2
- import { upcomingPaymentsReminderWorkflow } from "./upcoming-payments-reminder.js";
3
- import { generateFinancialSummaryWorkflow } from "./generate-financial-summary.js";
4
- import { ingestEmailThreadsWorkflow } from "./ingest-email-threads.js";
5
- import { syncOpenBankingAccountsWorkflow } from "./sync-openbanking-accounts.js";
6
- import { syncOpenBankingTransactionsWorkflow } from "./sync-openbanking-transactions.js";
7
- import { refreshOpenBankingBalancesWorkflow } from "./refresh-openbanking-balances.js";
8
- import { generateOpenBankingOverviewWorkflow } from "./generate-openbanking-overview.js";
9
-
10
- export { generateFinancialSummaryWorkflow, generateOpenBankingOverviewWorkflow, ingestEmailThreadsWorkflow, processUploadedDocumentWorkflow, refreshOpenBankingBalancesWorkflow, syncOpenBankingAccountsWorkflow, syncOpenBankingTransactionsWorkflow, upcomingPaymentsReminderWorkflow };
@@ -1,53 +0,0 @@
1
- import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
2
-
3
- //#region src/workflows/ingest-email-threads.ts
4
- const ingestEmailThreadsWorkflow = {
5
- meta: {
6
- name: "pfo.workflow.ingest-email-threads",
7
- version: 1,
8
- title: "Ingest Email Threads",
9
- description: "Synchronises Gmail threads tagged with finance labels and indexes them into operational knowledge spaces.",
10
- domain: "communications",
11
- owners: [OwnersEnum.PlatformMessaging],
12
- tags: [
13
- "gmail",
14
- "knowledge",
15
- TagsEnum.Automation
16
- ],
17
- stability: StabilityEnum.Experimental
18
- },
19
- definition: {
20
- entryStepId: "sync",
21
- steps: [{
22
- id: "sync",
23
- type: "automation",
24
- label: "Sync Gmail Threads",
25
- description: "Fetches Gmail threads and transforms them into knowledge fragments before vector indexing.",
26
- action: { operation: {
27
- name: "pfo.email.sync-threads",
28
- version: 1
29
- } },
30
- requiredIntegrations: ["emailInbound", "primaryVectorDb"],
31
- retry: {
32
- maxAttempts: 3,
33
- backoff: "exponential",
34
- delayMs: 1e3
35
- }
36
- }, {
37
- id: "triage",
38
- type: "human",
39
- label: "Triage Exceptions",
40
- description: "Operators can resolve sync failures or tag important threads for follow-up."
41
- }],
42
- transitions: [{
43
- from: "sync",
44
- to: "triage",
45
- condition: "output?.syncedThreads === 0",
46
- label: "No new threads"
47
- }]
48
- }
49
- };
50
-
51
- //#endregion
52
- export { ingestEmailThreadsWorkflow };
53
- //# sourceMappingURL=ingest-email-threads.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ingest-email-threads.js","names":["ingestEmailThreadsWorkflow: WorkflowSpec"],"sources":["../../src/workflows/ingest-email-threads.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nexport const ingestEmailThreadsWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.ingest-email-threads',\n version: 1,\n title: 'Ingest Email Threads',\n description:\n 'Synchronises Gmail threads tagged with finance labels and indexes them into operational knowledge spaces.',\n domain: 'communications',\n owners: [OwnersEnum.PlatformMessaging],\n tags: ['gmail', 'knowledge', TagsEnum.Automation],\n stability: StabilityEnum.Experimental,\n },\n definition: {\n entryStepId: 'sync',\n steps: [\n {\n id: 'sync',\n type: 'automation',\n label: 'Sync Gmail Threads',\n description:\n 'Fetches Gmail threads and transforms them into knowledge fragments before vector indexing.',\n action: {\n operation: { name: 'pfo.email.sync-threads', version: 1 },\n },\n requiredIntegrations: ['emailInbound', 'primaryVectorDb'],\n retry: {\n maxAttempts: 3,\n backoff: 'exponential',\n delayMs: 1000,\n },\n },\n {\n id: 'triage',\n type: 'human',\n label: 'Triage Exceptions',\n description:\n 'Operators can resolve sync failures or tag important threads for follow-up.',\n },\n ],\n transitions: [\n {\n from: 'sync',\n to: 'triage',\n condition: 'output?.syncedThreads === 0',\n label: 'No new threads',\n },\n ],\n },\n};\n"],"mappings":";;;AAOA,MAAaA,6BAA2C;CACtD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,kBAAkB;EACtC,MAAM;GAAC;GAAS;GAAa,SAAS;GAAW;EACjD,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAA0B,SAAS;IAAG,EAC1D;GACD,sBAAsB,CAAC,gBAAgB,kBAAkB;GACzD,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,EACD;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACH,CACF;EACD,aAAa,CACX;GACE,MAAM;GACN,IAAI;GACJ,WAAW;GACX,OAAO;GACR,CACF;EACF;CACF"}
@@ -1,51 +0,0 @@
1
- import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
2
-
3
- //#region src/workflows/process-uploaded-document.ts
4
- const processUploadedDocumentWorkflow = {
5
- meta: {
6
- name: "pfo.workflow.process-uploaded-document",
7
- version: 1,
8
- title: "Process Uploaded Document",
9
- description: "Stores an uploaded invoice/contract, queues ingestion, and records any follow-up reminders.",
10
- domain: "finance",
11
- owners: [OwnersEnum.PlatformFinance],
12
- tags: [
13
- "documents",
14
- "ingestion",
15
- TagsEnum.Automation
16
- ],
17
- stability: StabilityEnum.Experimental
18
- },
19
- definition: {
20
- entryStepId: "store",
21
- steps: [{
22
- id: "store",
23
- type: "automation",
24
- label: "Store and Queue Ingestion",
25
- description: "Persist the document to storage and enqueue the knowledge ingestion pipeline.",
26
- action: { operation: {
27
- name: "pfo.documents.upload",
28
- version: 1
29
- } },
30
- requiredIntegrations: ["primaryStorage", "primaryVectorDb"],
31
- retry: {
32
- maxAttempts: 3,
33
- backoff: "exponential",
34
- delayMs: 500
35
- }
36
- }, {
37
- id: "review",
38
- type: "human",
39
- label: "Optional Human Classification",
40
- description: "Finance lead can categorise the document while ingestion completes."
41
- }],
42
- transitions: [{
43
- from: "store",
44
- to: "review"
45
- }]
46
- }
47
- };
48
-
49
- //#endregion
50
- export { processUploadedDocumentWorkflow };
51
- //# sourceMappingURL=process-uploaded-document.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-uploaded-document.js","names":["processUploadedDocumentWorkflow: WorkflowSpec"],"sources":["../../src/workflows/process-uploaded-document.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nexport const processUploadedDocumentWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.process-uploaded-document',\n version: 1,\n title: 'Process Uploaded Document',\n description:\n 'Stores an uploaded invoice/contract, queues ingestion, and records any follow-up reminders.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['documents', 'ingestion', TagsEnum.Automation],\n stability: StabilityEnum.Experimental,\n },\n definition: {\n entryStepId: 'store',\n steps: [\n {\n id: 'store',\n type: 'automation',\n label: 'Store and Queue Ingestion',\n description:\n 'Persist the document to storage and enqueue the knowledge ingestion pipeline.',\n action: {\n operation: { name: 'pfo.documents.upload', version: 1 },\n },\n requiredIntegrations: ['primaryStorage', 'primaryVectorDb'],\n retry: {\n maxAttempts: 3,\n backoff: 'exponential',\n delayMs: 500,\n },\n },\n {\n id: 'review',\n type: 'human',\n label: 'Optional Human Classification',\n description:\n 'Finance lead can categorise the document while ingestion completes.',\n },\n ],\n transitions: [\n {\n from: 'store',\n to: 'review',\n },\n ],\n },\n};\n"],"mappings":";;;AAOA,MAAaA,kCAAgD;CAC3D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAa;GAAa,SAAS;GAAW;EACrD,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAAwB,SAAS;IAAG,EACxD;GACD,sBAAsB,CAAC,kBAAkB,kBAAkB;GAC3D,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,EACD;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACH,CACF;EACD,aAAa,CACX;GACE,MAAM;GACN,IAAI;GACL,CACF;EACF;CACF"}