@contractspec/example.pocket-family-office 3.7.17 → 3.7.18

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 (64) hide show
  1. package/dist/blueprint.js +1 -197
  2. package/dist/browser/blueprint.js +1 -197
  3. package/dist/browser/connections/samples.js +1 -197
  4. package/dist/browser/docs/index.js +3 -48
  5. package/dist/browser/docs/pocket-family-office.docblock.js +3 -48
  6. package/dist/browser/example.js +1 -42
  7. package/dist/browser/index.js +4 -1660
  8. package/dist/browser/knowledge/sources.sample.js +1 -70
  9. package/dist/browser/operations/index.js +1 -314
  10. package/dist/browser/pocket-family-office.capability.js +1 -19
  11. package/dist/browser/pocket-family-office.feature.js +2 -86
  12. package/dist/browser/telemetry.js +1 -176
  13. package/dist/browser/tenant.sample.js +1 -71
  14. package/dist/browser/workflows/generate-financial-summary.js +1 -58
  15. package/dist/browser/workflows/generate-openbanking-overview.js +1 -52
  16. package/dist/browser/workflows/index.js +1 -467
  17. package/dist/browser/workflows/ingest-email-threads.js +1 -56
  18. package/dist/browser/workflows/process-uploaded-document.js +1 -54
  19. package/dist/browser/workflows/refresh-openbanking-balances.js +1 -64
  20. package/dist/browser/workflows/sync-openbanking-accounts.js +1 -64
  21. package/dist/browser/workflows/sync-openbanking-transactions.js +1 -64
  22. package/dist/browser/workflows/upcoming-payments-reminder.js +1 -62
  23. package/dist/connections/samples.js +1 -197
  24. package/dist/docs/index.js +3 -48
  25. package/dist/docs/pocket-family-office.docblock.js +3 -48
  26. package/dist/example.js +1 -42
  27. package/dist/index.js +4 -1660
  28. package/dist/knowledge/sources.sample.js +1 -70
  29. package/dist/node/blueprint.js +1 -197
  30. package/dist/node/connections/samples.js +1 -197
  31. package/dist/node/docs/index.js +3 -48
  32. package/dist/node/docs/pocket-family-office.docblock.js +3 -48
  33. package/dist/node/example.js +1 -42
  34. package/dist/node/index.js +4 -1660
  35. package/dist/node/knowledge/sources.sample.js +1 -70
  36. package/dist/node/operations/index.js +1 -314
  37. package/dist/node/pocket-family-office.capability.js +1 -19
  38. package/dist/node/pocket-family-office.feature.js +2 -86
  39. package/dist/node/telemetry.js +1 -176
  40. package/dist/node/tenant.sample.js +1 -71
  41. package/dist/node/workflows/generate-financial-summary.js +1 -58
  42. package/dist/node/workflows/generate-openbanking-overview.js +1 -52
  43. package/dist/node/workflows/index.js +1 -467
  44. package/dist/node/workflows/ingest-email-threads.js +1 -56
  45. package/dist/node/workflows/process-uploaded-document.js +1 -54
  46. package/dist/node/workflows/refresh-openbanking-balances.js +1 -64
  47. package/dist/node/workflows/sync-openbanking-accounts.js +1 -64
  48. package/dist/node/workflows/sync-openbanking-transactions.js +1 -64
  49. package/dist/node/workflows/upcoming-payments-reminder.js +1 -62
  50. package/dist/operations/index.js +1 -314
  51. package/dist/pocket-family-office.capability.js +1 -19
  52. package/dist/pocket-family-office.feature.js +2 -86
  53. package/dist/telemetry.js +1 -176
  54. package/dist/tenant.sample.js +1 -71
  55. package/dist/workflows/generate-financial-summary.js +1 -58
  56. package/dist/workflows/generate-openbanking-overview.js +1 -52
  57. package/dist/workflows/index.js +1 -467
  58. package/dist/workflows/ingest-email-threads.js +1 -56
  59. package/dist/workflows/process-uploaded-document.js +1 -54
  60. package/dist/workflows/refresh-openbanking-balances.js +1 -64
  61. package/dist/workflows/sync-openbanking-accounts.js +1 -64
  62. package/dist/workflows/sync-openbanking-transactions.js +1 -64
  63. package/dist/workflows/upcoming-payments-reminder.js +1 -62
  64. package/package.json +7 -7
@@ -1,65 +1,2 @@
1
1
  // @bun
2
- // src/workflows/sync-openbanking-accounts.ts
3
- import {
4
- OwnersEnum,
5
- StabilityEnum,
6
- TagsEnum
7
- } from "@contractspec/lib.contracts-spec";
8
- import { defineWorkflow } from "@contractspec/lib.contracts-spec/workflow/spec";
9
- var ACCOUNT_CAPABILITY = {
10
- key: "openbanking.accounts.read",
11
- version: "1.0.0"
12
- };
13
- var syncOpenBankingAccountsWorkflow = defineWorkflow({
14
- meta: {
15
- key: "pfo.workflow.sync-openbanking-accounts",
16
- version: "1.0.0",
17
- title: "Synchronise Open Banking Accounts",
18
- description: "Validates Powens connectivity and synchronises bank account metadata into the canonical ledger.",
19
- domain: "finance",
20
- owners: [OwnersEnum.PlatformFinance],
21
- tags: ["open-banking", "powens", TagsEnum.Automation],
22
- stability: StabilityEnum.Experimental
23
- },
24
- definition: {
25
- entryStepId: "sync-accounts",
26
- steps: [
27
- {
28
- id: "sync-accounts",
29
- type: "automation",
30
- label: "Sync Accounts",
31
- description: "Refresh linked bank accounts via Powens and upsert canonical BankAccount records.",
32
- action: {
33
- operation: { key: "openbanking.accounts.sync", version: "1.0.0" }
34
- },
35
- requiredIntegrations: ["primaryOpenBanking"],
36
- requiredCapabilities: [ACCOUNT_CAPABILITY],
37
- retry: {
38
- maxAttempts: 3,
39
- backoff: "exponential",
40
- delayMs: 1000
41
- }
42
- },
43
- {
44
- id: "fetch-accounts",
45
- type: "automation",
46
- label: "Fetch Accounts",
47
- description: "Retrieve the latest canonical account snapshot for downstream consumers.",
48
- action: {
49
- operation: { key: "openbanking.accounts.list", version: "1.0.0" }
50
- },
51
- requiredIntegrations: ["primaryOpenBanking"],
52
- requiredCapabilities: [ACCOUNT_CAPABILITY],
53
- retry: {
54
- maxAttempts: 2,
55
- backoff: "linear",
56
- delayMs: 750
57
- }
58
- }
59
- ],
60
- transitions: [{ from: "sync-accounts", to: "fetch-accounts" }]
61
- }
62
- });
63
- export {
64
- syncOpenBankingAccountsWorkflow
65
- };
2
+ import{OwnersEnum as j,StabilityEnum as q,TagsEnum as v}from"@contractspec/lib.contracts-spec";import{defineWorkflow as x}from"@contractspec/lib.contracts-spec/workflow/spec";var h={key:"openbanking.accounts.read",version:"1.0.0"},F=x({meta:{key:"pfo.workflow.sync-openbanking-accounts",version:"1.0.0",title:"Synchronise Open Banking Accounts",description:"Validates Powens connectivity and synchronises bank account metadata into the canonical ledger.",domain:"finance",owners:[j.PlatformFinance],tags:["open-banking","powens",v.Automation],stability:q.Experimental},definition:{entryStepId:"sync-accounts",steps:[{id:"sync-accounts",type:"automation",label:"Sync Accounts",description:"Refresh linked bank accounts via Powens and upsert canonical BankAccount records.",action:{operation:{key:"openbanking.accounts.sync",version:"1.0.0"}},requiredIntegrations:["primaryOpenBanking"],requiredCapabilities:[h],retry:{maxAttempts:3,backoff:"exponential",delayMs:1000}},{id:"fetch-accounts",type:"automation",label:"Fetch Accounts",description:"Retrieve the latest canonical account snapshot for downstream consumers.",action:{operation:{key:"openbanking.accounts.list",version:"1.0.0"}},requiredIntegrations:["primaryOpenBanking"],requiredCapabilities:[h],retry:{maxAttempts:2,backoff:"linear",delayMs:750}}],transitions:[{from:"sync-accounts",to:"fetch-accounts"}]}});export{F as syncOpenBankingAccountsWorkflow};
@@ -1,65 +1,2 @@
1
1
  // @bun
2
- // src/workflows/sync-openbanking-transactions.ts
3
- import {
4
- OwnersEnum,
5
- StabilityEnum,
6
- TagsEnum
7
- } from "@contractspec/lib.contracts-spec";
8
- import { defineWorkflow } from "@contractspec/lib.contracts-spec/workflow/spec";
9
- var TRANSACTION_CAPABILITY = {
10
- key: "openbanking.transactions.read",
11
- version: "1.0.0"
12
- };
13
- var syncOpenBankingTransactionsWorkflow = defineWorkflow({
14
- meta: {
15
- key: "pfo.workflow.sync-openbanking-transactions",
16
- version: "1.0.0",
17
- title: "Synchronise Open Banking Transactions",
18
- description: "Fetches recent transactions from Powens for each linked account and stores them in the canonical ledger.",
19
- domain: "finance",
20
- owners: [OwnersEnum.PlatformFinance],
21
- tags: ["open-banking", "powens", TagsEnum.Automation],
22
- stability: StabilityEnum.Experimental
23
- },
24
- definition: {
25
- entryStepId: "sync-transactions",
26
- steps: [
27
- {
28
- id: "sync-transactions",
29
- type: "automation",
30
- label: "Sync Transactions",
31
- description: "Call the Powens provider to pull incremental transactions for active accounts.",
32
- action: {
33
- operation: { key: "openbanking.transactions.sync", version: "1.0.0" }
34
- },
35
- requiredIntegrations: ["primaryOpenBanking"],
36
- requiredCapabilities: [TRANSACTION_CAPABILITY],
37
- retry: {
38
- maxAttempts: 4,
39
- backoff: "exponential",
40
- delayMs: 1500
41
- }
42
- },
43
- {
44
- id: "list-transactions",
45
- type: "automation",
46
- label: "List Transactions",
47
- description: "Retrieve the canonical transaction list for reporting and downstream analytics.",
48
- action: {
49
- operation: { key: "openbanking.transactions.list", version: "1.0.0" }
50
- },
51
- requiredIntegrations: ["primaryOpenBanking"],
52
- requiredCapabilities: [TRANSACTION_CAPABILITY],
53
- retry: {
54
- maxAttempts: 2,
55
- backoff: "linear",
56
- delayMs: 1000
57
- }
58
- }
59
- ],
60
- transitions: [{ from: "sync-transactions", to: "list-transactions" }]
61
- }
62
- });
63
- export {
64
- syncOpenBankingTransactionsWorkflow
65
- };
2
+ import{OwnersEnum as j,StabilityEnum as q,TagsEnum as v}from"@contractspec/lib.contracts-spec";import{defineWorkflow as x}from"@contractspec/lib.contracts-spec/workflow/spec";var h={key:"openbanking.transactions.read",version:"1.0.0"},F=x({meta:{key:"pfo.workflow.sync-openbanking-transactions",version:"1.0.0",title:"Synchronise Open Banking Transactions",description:"Fetches recent transactions from Powens for each linked account and stores them in the canonical ledger.",domain:"finance",owners:[j.PlatformFinance],tags:["open-banking","powens",v.Automation],stability:q.Experimental},definition:{entryStepId:"sync-transactions",steps:[{id:"sync-transactions",type:"automation",label:"Sync Transactions",description:"Call the Powens provider to pull incremental transactions for active accounts.",action:{operation:{key:"openbanking.transactions.sync",version:"1.0.0"}},requiredIntegrations:["primaryOpenBanking"],requiredCapabilities:[h],retry:{maxAttempts:4,backoff:"exponential",delayMs:1500}},{id:"list-transactions",type:"automation",label:"List Transactions",description:"Retrieve the canonical transaction list for reporting and downstream analytics.",action:{operation:{key:"openbanking.transactions.list",version:"1.0.0"}},requiredIntegrations:["primaryOpenBanking"],requiredCapabilities:[h],retry:{maxAttempts:2,backoff:"linear",delayMs:1000}}],transitions:[{from:"sync-transactions",to:"list-transactions"}]}});export{F as syncOpenBankingTransactionsWorkflow};
@@ -1,63 +1,2 @@
1
1
  // @bun
2
- // src/workflows/upcoming-payments-reminder.ts
3
- import {
4
- OwnersEnum,
5
- StabilityEnum,
6
- TagsEnum
7
- } from "@contractspec/lib.contracts-spec";
8
- import { defineWorkflow } from "@contractspec/lib.contracts-spec/workflow/spec";
9
- var upcomingPaymentsReminderWorkflow = defineWorkflow({
10
- meta: {
11
- key: "pfo.workflow.upcoming-payments-reminder",
12
- version: "1.0.0",
13
- title: "Schedule Upcoming Payment Reminder",
14
- description: "Collects payment metadata and schedules multi-channel reminders for bills that are due soon.",
15
- domain: "finance",
16
- owners: [OwnersEnum.PlatformFinance],
17
- tags: ["payments", "reminders", TagsEnum.Automation],
18
- stability: StabilityEnum.Beta
19
- },
20
- definition: {
21
- entryStepId: "collect",
22
- steps: [
23
- {
24
- id: "collect",
25
- type: "human",
26
- label: "Review Upcoming Bill",
27
- description: "Confirm amount, due date, and preferred delivery channels before scheduling reminder."
28
- },
29
- {
30
- id: "schedule",
31
- type: "automation",
32
- label: "Schedule Reminder",
33
- action: {
34
- operation: {
35
- key: "pfo.reminders.schedule-payment",
36
- version: "1.0.0"
37
- }
38
- },
39
- requiredIntegrations: [
40
- "emailOutbound",
41
- "smsNotifications",
42
- "calendarScheduling"
43
- ],
44
- retry: {
45
- maxAttempts: 2,
46
- backoff: "linear",
47
- delayMs: 1000
48
- }
49
- }
50
- ],
51
- transitions: [
52
- {
53
- from: "collect",
54
- to: "schedule",
55
- condition: "output?.confirmed === true",
56
- label: "Reminder confirmed"
57
- }
58
- ]
59
- }
60
- });
61
- export {
62
- upcomingPaymentsReminderWorkflow
63
- };
2
+ import{OwnersEnum as h,StabilityEnum as j,TagsEnum as q}from"@contractspec/lib.contracts-spec";import{defineWorkflow as v}from"@contractspec/lib.contracts-spec/workflow/spec";var A=v({meta:{key:"pfo.workflow.upcoming-payments-reminder",version:"1.0.0",title:"Schedule Upcoming Payment Reminder",description:"Collects payment metadata and schedules multi-channel reminders for bills that are due soon.",domain:"finance",owners:[h.PlatformFinance],tags:["payments","reminders",q.Automation],stability:j.Beta},definition:{entryStepId:"collect",steps:[{id:"collect",type:"human",label:"Review Upcoming Bill",description:"Confirm amount, due date, and preferred delivery channels before scheduling reminder."},{id:"schedule",type:"automation",label:"Schedule Reminder",action:{operation:{key:"pfo.reminders.schedule-payment",version:"1.0.0"}},requiredIntegrations:["emailOutbound","smsNotifications","calendarScheduling"],retry:{maxAttempts:2,backoff:"linear",delayMs:1000}}],transitions:[{from:"collect",to:"schedule",condition:"output?.confirmed === true",label:"Reminder confirmed"}]}});export{A as upcomingPaymentsReminderWorkflow};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.pocket-family-office",
3
- "version": "3.7.17",
3
+ "version": "3.7.18",
4
4
  "description": "Pocket Family Office example - personal finance automation with open banking",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -22,22 +22,22 @@
22
22
  "dev": "contractspec-bun-build dev",
23
23
  "clean": "bun rimraf dist .turbo",
24
24
  "lint": "bun lint:fix",
25
- "lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
26
- "lint:check": "biome check .",
25
+ "lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
26
+ "lint:check": "node ../../../scripts/biome.cjs check .",
27
27
  "prebuild": "contractspec-bun-build prebuild",
28
28
  "test": "bun test",
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@contractspec/lib.knowledge": "3.7.17",
33
- "@contractspec/lib.contracts-spec": "5.1.0",
34
- "@contractspec/lib.contracts-integrations": "3.8.9",
32
+ "@contractspec/lib.knowledge": "3.7.18",
33
+ "@contractspec/lib.contracts-spec": "5.2.0",
34
+ "@contractspec/lib.contracts-integrations": "3.8.10",
35
35
  "@contractspec/lib.schema": "3.7.14"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@contractspec/tool.typescript": "3.7.13",
39
39
  "typescript": "^5.9.3",
40
- "@contractspec/tool.bun": "3.7.13"
40
+ "@contractspec/tool.bun": "3.7.14"
41
41
  },
42
42
  "exports": {
43
43
  ".": {