better-supabase 0.13.0 → 0.15.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 +67 -345
- package/dist/access-sql-B-MkVARa.js +207 -0
- package/dist/actor-go7p9-CJ.js +150 -0
- package/dist/adapter-B0b6MXYS.js +2299 -0
- package/dist/agents-5n8DWRfP.d.ts +117 -0
- package/dist/ai-cache-Cu8j6aQQ.js +87 -0
- package/dist/ai-cache-DyHohbFP.d.ts +82 -0
- package/dist/ai-chat-D1GuRnke.d.ts +619 -0
- package/dist/ai-files-CgFCRsnU.js +339 -0
- package/dist/ai-schedules-CAquecT_.d.ts +166 -0
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/agents/index.js +4 -4
- package/dist/ai-sdk/batches/index.d.ts +5 -5
- package/dist/ai-sdk/batches/index.js +4 -4
- package/dist/ai-sdk/cache/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.js +2 -2
- package/dist/ai-sdk/chat/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.js +5 -5
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/embeddings/index.js +1 -1
- package/dist/ai-sdk/files/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.js +5 -5
- package/dist/ai-sdk/index.d.ts +30 -9
- package/dist/ai-sdk/index.js +42 -4
- package/dist/ai-sdk/mcp/index.d.ts +4 -4
- package/dist/ai-sdk/mcp/index.js +7 -7
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.js +2 -2
- package/dist/ai-sdk/workflow/index.d.ts +4 -4
- package/dist/ai-sdk/workflow/index.js +7 -7
- package/dist/anchors-7F34QyHa.d.ts +40 -0
- package/dist/api-DxAPqMrE.d.ts +495 -0
- package/dist/api-keys-D5k63K6y.d.ts +213 -0
- package/dist/app-tables-CF2DD-Mu.d.ts +28 -0
- package/dist/app-tables-D29Rahtg.js +16350 -0
- package/dist/approvals-Crutd4-o.d.ts +129 -0
- package/dist/assistant-CD_h8Vxx.d.ts +157 -0
- package/dist/astro/index.d.ts +19 -16
- package/dist/astro/index.js +8 -8
- package/dist/attachments-aJYgdYtB.js +369 -0
- package/dist/attributes-Bzf51_nc.js +47 -0
- package/dist/auth-module-BEFESDC4.js +44 -0
- package/dist/auth-reply-tlXB2FQ9.js +31 -0
- package/dist/authorization-HZdJCaVm.d.ts +3595 -0
- package/dist/authorization-hooks-Cs1vP_ej.d.ts +217 -0
- package/dist/authorizer-B6X09otb.d.ts +118 -0
- package/dist/authorizer-BGhXaDmo.js +172 -0
- package/dist/automation-D41DXyvT.js +75 -0
- package/dist/automations-BYsz43AG.js +314 -0
- package/dist/automations-Bc2ue55V.js +26 -0
- package/dist/automations-CD1XlL2W.js +33 -0
- package/dist/automations-CIwRq7zm.js +30 -0
- package/dist/availability-vguUvEK2.d.ts +226 -0
- package/dist/better-result/index.d.ts +20 -30
- package/dist/better-result/index.js +2 -2
- package/dist/bind-CrMBwrPN.d.ts +104 -0
- package/dist/block-authors-BDV3y1SP.js +14 -0
- package/dist/block-authors-DzXLUiIq.d.ts +12 -0
- package/dist/block-env-B_uEM2xz.d.ts +32 -0
- package/dist/block-event-listener-Bu6G0TFH.js +16 -0
- package/dist/block-events-pBXPzwnW.js +83 -0
- package/dist/block-fields-BE7pInWZ.d.ts +58 -0
- package/dist/block-fields-DE_FgpOU.js +139 -0
- package/dist/block-helpers-CRpAHrp_.d.ts +62 -0
- package/dist/block-helpers-CtBdjgO4.js +353 -0
- package/dist/block-hooks-BfxX3682.js +130 -0
- package/dist/block-hooks-DZN2w69m.d.ts +117 -0
- package/dist/block-method-C9hWdHom.js +21 -0
- package/dist/block-method-CiVa2G-J.d.ts +14 -0
- package/dist/block-subjects-BhDKK_j7.js +55 -0
- package/dist/block-subjects-CphkQPxp.d.ts +6 -0
- package/dist/block-tenant-DHp7subc.js +14 -0
- package/dist/block-transport-DWZSJrwN.d.ts +69 -0
- package/dist/blocks/access-requests/index.d.ts +8 -8
- package/dist/blocks/access-requests/index.js +6 -7
- package/dist/blocks/activities/index.d.ts +215 -0
- package/dist/blocks/activities/index.js +414 -0
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/agents/index.js +5 -6
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-cache/index.js +3 -3
- package/dist/blocks/ai-chat/index.d.ts +119 -6
- package/dist/blocks/ai-chat/index.js +1067 -5
- package/dist/blocks/ai-files/index.d.ts +5 -5
- package/dist/blocks/ai-files/index.js +3 -3
- package/dist/blocks/ai-keys/index.d.ts +22 -0
- package/dist/blocks/ai-keys/index.js +236 -0
- package/dist/blocks/ai-schedules/index.d.ts +10 -0
- package/dist/blocks/ai-schedules/index.js +258 -0
- package/dist/blocks/announcements/index.d.ts +134 -5
- package/dist/blocks/announcements/index.js +179 -4
- package/dist/blocks/api-keys/index.d.ts +69 -8
- package/dist/blocks/api-keys/index.js +417 -7
- package/dist/blocks/approvals/index.d.ts +4 -4
- package/dist/blocks/approvals/index.js +25 -24
- package/dist/blocks/assets/index.d.ts +281 -0
- package/dist/blocks/assets/index.js +288 -0
- package/dist/blocks/assignment/index.d.ts +124 -0
- package/dist/blocks/assignment/index.js +141 -0
- package/dist/blocks/attachments/index.d.ts +130 -6
- package/dist/blocks/attachments/index.js +328 -7
- package/dist/blocks/audit/index.d.ts +476 -7
- package/dist/blocks/audit/index.js +863 -7
- package/dist/blocks/automations/index.d.ts +524 -0
- package/dist/blocks/automations/index.js +553 -0
- package/dist/blocks/billable-time/index.d.ts +201 -0
- package/dist/blocks/billable-time/index.js +260 -0
- package/dist/blocks/billing/index.d.ts +146 -16
- package/dist/blocks/billing/index.js +231 -41
- package/dist/blocks/bookings/index.d.ts +54 -5
- package/dist/blocks/bookings/index.js +423 -6
- package/dist/blocks/bulk/index.d.ts +6 -6
- package/dist/blocks/bulk/index.js +4 -4
- package/dist/blocks/calendar/index.d.ts +186 -5
- package/dist/blocks/calendar/index.js +1180 -4
- package/dist/blocks/catalog/index.d.ts +134 -28
- package/dist/blocks/catalog/index.js +183 -54
- package/dist/blocks/channels/index.d.ts +113 -0
- package/dist/blocks/channels/index.js +189 -0
- package/dist/blocks/collections/index.d.ts +90 -17
- package/dist/blocks/collections/index.js +85 -10
- package/dist/blocks/comments/index.d.ts +263 -45
- package/dist/blocks/comments/index.js +360 -16
- package/dist/blocks/compliance/index.d.ts +325 -0
- package/dist/blocks/compliance/index.js +410 -0
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/connectors/index.js +8 -9
- package/dist/blocks/contacts/index.d.ts +182 -0
- package/dist/blocks/contacts/index.js +358 -0
- package/dist/blocks/content/index.d.ts +188 -0
- package/dist/blocks/content/index.js +219 -0
- package/dist/blocks/contracts/index.d.ts +239 -0
- package/dist/blocks/contracts/index.js +361 -0
- package/dist/blocks/courses/index.d.ts +341 -0
- package/dist/blocks/courses/index.js +445 -0
- package/dist/blocks/created-by/index.d.ts +27 -0
- package/dist/blocks/created-by/index.js +14 -0
- package/dist/blocks/custom-fields/index.d.ts +44 -13
- package/dist/blocks/custom-fields/index.js +25 -20
- package/dist/blocks/data-lifecycle/index.d.ts +9 -9
- package/dist/blocks/data-lifecycle/index.js +7 -8
- package/dist/blocks/deals/index.d.ts +20 -40
- package/dist/blocks/deals/index.js +156 -66
- package/dist/blocks/dispatch/index.d.ts +325 -0
- package/dist/blocks/dispatch/index.js +406 -0
- package/dist/blocks/documents/index.d.ts +8 -5
- package/dist/blocks/documents/index.js +66 -7
- package/dist/blocks/domains/index.d.ts +7 -7
- package/dist/blocks/domains/index.js +6 -7
- package/dist/blocks/donations/index.d.ts +350 -0
- package/dist/blocks/donations/index.js +610 -0
- package/dist/blocks/drive/index.d.ts +56 -11
- package/dist/blocks/drive/index.js +62 -11
- package/dist/blocks/employees/index.d.ts +41 -23
- package/dist/blocks/employees/index.js +125 -33
- package/dist/blocks/enrichment/index.d.ts +176 -0
- package/dist/blocks/enrichment/index.js +251 -0
- package/dist/blocks/enrollments/index.d.ts +182 -0
- package/dist/blocks/enrollments/index.js +173 -0
- package/dist/blocks/entitlements/index.d.ts +48 -8
- package/dist/blocks/entitlements/index.js +62 -4
- package/dist/blocks/expenses/index.d.ts +214 -0
- package/dist/blocks/expenses/index.js +279 -0
- package/dist/blocks/field-history/index.d.ts +63 -0
- package/dist/blocks/field-history/index.js +46 -0
- package/dist/blocks/flags/index.d.ts +17 -13
- package/dist/blocks/flags/index.js +7 -8
- package/dist/blocks/forecasts/index.d.ts +119 -0
- package/dist/blocks/forecasts/index.js +129 -0
- package/dist/blocks/forms/index.d.ts +208 -140
- package/dist/blocks/forms/index.js +488 -149
- package/dist/blocks/goals/index.d.ts +82 -0
- package/dist/blocks/goals/index.js +72 -0
- package/dist/blocks/guests/index.d.ts +198 -0
- package/dist/blocks/guests/index.js +224 -0
- package/dist/blocks/hiring/index.d.ts +20 -10
- package/dist/blocks/hiring/index.js +10 -10
- package/dist/blocks/identities/index.d.ts +7 -7
- package/dist/blocks/identities/index.js +4 -5
- package/dist/blocks/imports/index.d.ts +8 -8
- package/dist/blocks/imports/index.js +6 -6
- package/dist/blocks/inbox/index.d.ts +138 -6
- package/dist/blocks/inbox/index.js +383 -85
- package/dist/blocks/incidents/index.d.ts +337 -0
- package/dist/blocks/incidents/index.js +477 -0
- package/dist/blocks/index.d.ts +145 -11
- package/dist/blocks/index.js +184 -187
- package/dist/blocks/inventory/index.d.ts +10 -10
- package/dist/blocks/inventory/index.js +6 -7
- package/dist/blocks/invoices/index.d.ts +11 -11
- package/dist/blocks/invoices/index.js +8 -9
- package/dist/blocks/knowledge/index.d.ts +3 -3
- package/dist/blocks/knowledge/index.js +4 -4
- package/dist/blocks/lead-scoring/index.d.ts +50 -0
- package/dist/blocks/lead-scoring/index.js +87 -0
- package/dist/blocks/leases/index.d.ts +221 -0
- package/dist/blocks/leases/index.js +244 -0
- package/dist/blocks/leave/index.d.ts +8 -8
- package/dist/blocks/leave/index.js +5 -6
- package/dist/blocks/ledger/index.d.ts +279 -0
- package/dist/blocks/ledger/index.js +229 -0
- package/dist/blocks/mail-sync/index.d.ts +37 -0
- package/dist/blocks/mail-sync/index.js +906 -0
- package/dist/blocks/memberships/index.d.ts +67 -0
- package/dist/blocks/memberships/index.js +14 -0
- package/dist/blocks/memory/index.d.ts +4 -4
- package/dist/blocks/memory/index.js +8 -9
- package/dist/blocks/messaging/index.d.ts +186 -0
- package/dist/blocks/messaging/index.js +619 -0
- package/dist/blocks/metrics/index.d.ts +7 -7
- package/dist/blocks/metrics/index.js +6 -7
- package/dist/blocks/mfa/index.d.ts +145 -3
- package/dist/blocks/mfa/index.js +211 -2
- package/dist/blocks/moderation/index.d.ts +203 -0
- package/dist/blocks/moderation/index.js +199 -0
- package/dist/blocks/notifications/index.d.ts +67 -15
- package/dist/blocks/notifications/index.js +64 -16
- package/dist/blocks/numbering/index.d.ts +45 -0
- package/dist/blocks/numbering/index.js +49 -0
- package/dist/blocks/oauth-server/index.d.ts +6 -6
- package/dist/blocks/oauth-server/index.js +6 -7
- package/dist/blocks/onboarding/index.d.ts +112 -4
- package/dist/blocks/onboarding/index.js +107 -4
- package/dist/blocks/orders/index.d.ts +152 -13
- package/dist/blocks/orders/index.js +188 -18
- package/dist/blocks/organizations/index.d.ts +452 -6
- package/dist/blocks/organizations/index.js +689 -5
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/outbox/index.js +20 -8
- package/dist/blocks/passes/index.d.ts +306 -0
- package/dist/blocks/passes/index.js +411 -0
- package/dist/blocks/permissions/index.d.ts +92 -0
- package/dist/blocks/permissions/index.js +127 -0
- package/dist/blocks/pipelines/index.d.ts +15 -15
- package/dist/blocks/pipelines/index.js +12 -13
- package/dist/blocks/posts/index.d.ts +190 -0
- package/dist/blocks/posts/index.js +230 -0
- package/dist/blocks/profiles/index.d.ts +7 -7
- package/dist/blocks/profiles/index.js +5 -6
- package/dist/blocks/promotions/index.d.ts +9 -9
- package/dist/blocks/promotions/index.js +7 -8
- package/dist/blocks/push/index.d.ts +9 -9
- package/dist/blocks/push/index.js +4 -5
- package/dist/blocks/queue/index.d.ts +562 -0
- package/dist/blocks/queue/index.js +1407 -0
- package/dist/blocks/quotes/index.d.ts +29 -14
- package/dist/blocks/quotes/index.js +14 -14
- package/dist/blocks/rank/index.d.ts +7 -7
- package/dist/blocks/rank/index.js +4 -4
- package/dist/blocks/reactions/index.d.ts +154 -5
- package/dist/blocks/reactions/index.js +168 -4
- package/dist/blocks/relations/index.d.ts +59 -42
- package/dist/blocks/relations/index.js +117 -59
- package/dist/blocks/reminders/index.d.ts +21 -17
- package/dist/blocks/reminders/index.js +26 -27
- package/dist/blocks/reviews/index.d.ts +8 -8
- package/dist/blocks/reviews/index.js +6 -7
- package/dist/blocks/saved-views/index.d.ts +311 -4
- package/dist/blocks/saved-views/index.js +437 -2
- package/dist/blocks/scores/index.d.ts +48 -0
- package/dist/blocks/scores/index.js +40 -0
- package/dist/blocks/search/index.d.ts +168 -5
- package/dist/blocks/search/index.js +277 -6
- package/dist/blocks/security-events/index.d.ts +440 -0
- package/dist/blocks/security-events/index.js +885 -0
- package/dist/blocks/segments/index.d.ts +130 -0
- package/dist/blocks/segments/index.js +135 -0
- package/dist/blocks/sequences/index.d.ts +259 -0
- package/dist/blocks/sequences/index.js +376 -0
- package/dist/blocks/service-accounts/index.d.ts +132 -0
- package/dist/blocks/service-accounts/index.js +109 -0
- package/dist/blocks/sessions/index.d.ts +138 -3
- package/dist/blocks/sessions/index.js +173 -2
- package/dist/blocks/settings/index.d.ts +181 -5
- package/dist/blocks/settings/index.js +226 -4
- package/dist/blocks/share-links/index.d.ts +46 -19
- package/dist/blocks/share-links/index.js +74 -23
- package/dist/blocks/shipments/index.d.ts +236 -0
- package/dist/blocks/shipments/index.js +548 -0
- package/dist/blocks/signatures/index.d.ts +151 -0
- package/dist/blocks/signatures/index.js +149 -0
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/signing-keys/index.js +4 -165
- package/dist/blocks/sla/index.d.ts +37 -27
- package/dist/blocks/sla/index.js +48 -13
- package/dist/blocks/sso/index.d.ts +7 -7
- package/dist/blocks/sso/index.js +4 -5
- package/dist/blocks/state-machine/index.d.ts +14 -14
- package/dist/blocks/state-machine/index.js +26 -26
- package/dist/blocks/subjects/index.d.ts +45 -0
- package/dist/blocks/subjects/index.js +203 -0
- package/dist/blocks/tags/index.d.ts +170 -5
- package/dist/blocks/tags/index.js +265 -5
- package/dist/blocks/tasks/index.d.ts +346 -0
- package/dist/blocks/tasks/index.js +626 -0
- package/dist/blocks/teams/index.d.ts +7 -7
- package/dist/blocks/teams/index.js +4 -4
- package/dist/blocks/templates/index.d.ts +18 -18
- package/dist/blocks/templates/index.js +11 -12
- package/dist/blocks/time-tracking/index.d.ts +40 -32
- package/dist/blocks/time-tracking/index.js +40 -40
- package/dist/blocks/timeline/index.d.ts +116 -0
- package/dist/blocks/timeline/index.js +164 -0
- package/dist/blocks/trash/index.d.ts +47 -9
- package/dist/blocks/trash/index.js +9 -8
- package/dist/blocks/undo/index.d.ts +48 -5
- package/dist/blocks/undo/index.js +60 -4
- package/dist/blocks/updated-at/index.d.ts +20 -0
- package/dist/blocks/updated-at/index.js +14 -0
- package/dist/blocks/usage/index.d.ts +40 -6
- package/dist/blocks/usage/index.js +301 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +7 -7
- package/dist/blocks/vercel-marketplace/index.js +8 -9
- package/dist/blocks/versions/index.d.ts +38 -19
- package/dist/blocks/versions/index.js +66 -19
- package/dist/blocks/waitlist/index.d.ts +9 -9
- package/dist/blocks/waitlist/index.js +5 -6
- package/dist/blocks/webhooks/index.d.ts +21 -21
- package/dist/blocks/webhooks/index.js +18 -19
- package/dist/blocks/workflow-editor/index.d.ts +99 -0
- package/dist/blocks/workflow-editor/index.js +733 -0
- package/dist/blocks/workflows/index.d.ts +72 -6
- package/dist/blocks/workflows/index.js +379 -4
- package/dist/bookings-D4dvGXiR.d.ts +290 -0
- package/dist/bucket-CiNi8sIw.d.ts +666 -0
- package/dist/build-BFC8nFiL.js +797 -0
- package/dist/build-QitPVzzO.js +2073 -0
- package/dist/carrier-KzeYXVrW.d.ts +169 -0
- package/dist/chat-sdk/index.d.ts +43 -11
- package/dist/chat-sdk/index.js +51 -24
- package/dist/claims-DTy6R6my.js +63 -0
- package/dist/cli/add-BgsUjCan.js +1252 -0
- package/dist/cli/add-DCI5JKjA.js +99 -0
- package/dist/cli/add-DWjlVwvP.js +1 -0
- package/dist/cli/args-UEwg0l-N.js +27 -0
- package/dist/cli/backfill-nxPbcsns.js +293 -0
- package/dist/cli/bin.js +1 -1
- package/dist/cli/blocks-BZHI8mRC.js +156 -0
- package/dist/cli/blocks-Cr4HGePW.js +1 -0
- package/dist/cli/cache-CXgR_Ahi.js +607 -0
- package/dist/cli/codemod-DSN7iAdg.js +2343 -0
- package/dist/cli/codemod-block-renames-BuSaTE_G.js +239 -0
- package/dist/cli/command-CQ61x6gN.js +941 -0
- package/dist/cli/completion-2Y3D_eNu.js +211 -0
- package/dist/cli/completion-BwI0_Ap5.js +30 -0
- package/dist/cli/completion-Dlu5AdUW.js +1 -0
- package/dist/cli/config-9t5ec_N7.js +1642 -0
- package/dist/cli/config-CBqkQjjN.js +1 -0
- package/dist/cli/config-CPux9Wa7.js +47 -0
- package/dist/cli/config-edit-CrWfk8s3.js +621 -0
- package/dist/cli/config-group-C8tjut39.js +391 -0
- package/dist/cli/content-mapper-DNs7lTu7.js +182 -0
- package/dist/cli/db-DrBI_HNv.js +223 -0
- package/dist/cli/doctor-DDrEM6S1.js +4561 -0
- package/dist/cli/env-BBl5L8Bf.js +143 -0
- package/dist/cli/env-CAU1nknN.js +1 -0
- package/dist/cli/files-CX71yBm8.js +1010 -0
- package/dist/cli/gen-MtijJQ9r.js +387 -0
- package/dist/cli/in-stack-diff-DQTW53Vf.js +257 -0
- package/dist/cli/index.d.ts +51 -5
- package/dist/cli/index.js +8 -8
- package/dist/cli/init-D-aDv9r5.js +440 -0
- package/dist/cli/keys-DGEpMbeB.js +106 -0
- package/dist/cli/live-iEeH15ck.js +341 -0
- package/dist/cli/mcp-BAPyaQ62.js +249 -0
- package/dist/cli/metadata-DVx9Zgbj.js +150 -0
- package/dist/cli/migration-safety-D7PhzFxm.js +928 -0
- package/dist/cli/module-migration-aPCckev6.js +734 -0
- package/dist/cli/moved-CsfDQcyk.js +254 -0
- package/dist/cli/orphans-BAboqyVM.js +28 -0
- package/dist/cli/parse-B9Iv_-Pf.js +182 -0
- package/dist/cli/preset-BwmIfFnh.js +101 -0
- package/dist/cli/print-BeWO7OJY.js +67 -0
- package/dist/cli/remove-B46Dmd2M.js +238 -0
- package/dist/cli/render-ucJmUyuM.js +2170 -0
- package/dist/cli/run-BXx6D1aR.js +63 -0
- package/dist/cli/run-CvYVAztY.js +1427 -0
- package/dist/cli/run-DYhLBcFW.js +702 -0
- package/dist/cli/seed-Cz8PcXeT.js +188 -0
- package/dist/cli/seed-D6XijwbR.js +1 -0
- package/dist/cli/shared-LZroULBe.js +151 -0
- package/dist/cli/skills-toUan_OV.js +121 -0
- package/dist/cli/snapshot-C8MVPyO8.js +729 -0
- package/dist/cli/source-DANaJJVc.js +320 -0
- package/dist/cli/source-args-IpJRJO5t.js +59 -0
- package/dist/cli/spec-DGVNMSSB.js +7530 -0
- package/dist/cli/spec-g8_G5K7o.js +1 -0
- package/dist/cli/stack-CWEHdO0b.js +135 -0
- package/dist/cli/sync-btj01bcM.js +319 -0
- package/dist/cli/upgrade-B596d4t8.js +403 -0
- package/dist/cli/upgrade-Dw3TMQzn.js +41 -0
- package/dist/cli/version-Du4CgONY.js +4 -0
- package/dist/client/index.d.ts +8 -7
- package/dist/client/index.js +11 -7
- package/dist/client/native/index.d.ts +6 -6
- package/dist/client/native/index.js +3 -3
- package/dist/client-BAEbEA7t.js +287 -0
- package/dist/cloud-event-CzZTJkXv.d.ts +64 -0
- package/dist/codecs-CMWlhHZ0.d.ts +222 -0
- package/dist/codecs-TylXqU_I.js +358 -0
- package/dist/commerce/index.d.ts +4 -3
- package/dist/commerce/index.js +6 -6
- package/dist/compiler-D3UmE7ao.d.ts +14 -0
- package/dist/compose-DKW0Tr3e.js +53 -0
- package/dist/composite-BARuBEDE.js +130 -0
- package/dist/composite-Dsxj7T5K.d.ts +82 -0
- package/dist/config/index.d.ts +6 -7
- package/dist/config/index.js +6 -6
- package/dist/config-CcehOvbz.js +1698 -0
- package/dist/config-DWGgUQCh.js +1108 -0
- package/dist/connectors-Fud4amxp.d.ts +147 -0
- package/dist/context-CEuTKrkz.d.ts +4129 -0
- package/dist/context-DBicfUNz.js +41 -0
- package/dist/controller-BNZKd6bJ.js +73 -0
- package/dist/controller-BrP0gn47.d.ts +52 -0
- package/dist/conversion-BAbucuXq.d.ts +86 -0
- package/dist/conversion-Dq1S7xzE.js +77 -0
- package/dist/create/index.d.ts +34 -23
- package/dist/create/index.js +35 -27
- package/dist/create/lite/index.d.ts +2 -2
- package/dist/create/supabase/index.d.ts +2 -2
- package/dist/create/supabase/index.js +2 -2
- package/dist/create-blocks-Bu4H5TXw.js +352 -0
- package/dist/credentials/index.d.ts +5 -5
- package/dist/credentials/index.js +6 -7
- package/dist/cron-CgHTKwYG.js +148 -0
- package/dist/cron-route-UU9i5i9J.js +24 -0
- package/dist/data-engine-BWoz9lED.d.ts +273 -0
- package/dist/data-engine-D1BkmBoR.js +173 -0
- package/dist/data-hooks-tgF1Ct0F.js +280 -0
- package/dist/db-blocks-DJGbjIPz.js +62 -0
- package/dist/db-exception-Lngc1W49.js +31 -0
- package/dist/deal-forecast-Bv52QMyX.js +39 -0
- package/dist/deal-forecast-LwO-Z4_C.d.ts +23 -0
- package/dist/define-DFBnQyYg.d.ts +1255 -0
- package/dist/define-DlUeKHce.js +2011 -0
- package/dist/define-block-BGqOO8B3.js +64 -0
- package/dist/define-block-BVcLQ3DF.d.ts +1657 -0
- package/dist/delegation--93jRsVO.js +146 -0
- package/dist/documents-Cup1rpjF.d.ts +152 -0
- package/dist/edge/index.d.ts +23 -23
- package/dist/edge/index.js +14 -14
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/embeddings-kFbRvuic.d.ts +78 -0
- package/dist/embeddings-vVzseUw0.js +128 -0
- package/dist/ended-gUsMZVNg.d.ts +26 -0
- package/dist/entitlements-CJpYQXeE.d.ts +54 -0
- package/dist/entitlements-NZAE_vLj.js +45 -0
- package/dist/entity-naming-Dtyq5sKE.js +131 -0
- package/dist/entity-schema-BDv6w-OQ.js +39 -0
- package/dist/envelope-Bzu0JnY2.js +90 -0
- package/dist/errors-BVFgt8BZ.js +328 -0
- package/dist/errors-CyxMxzlu.js +44 -0
- package/dist/escape-like-PReMbEEU.d.ts +30 -0
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +4 -4
- package/dist/eve-BFSwTu1z.d.ts +157 -0
- package/dist/event-calendar-DCufbihU.d.ts +65 -0
- package/dist/events/index.d.ts +4 -4
- package/dist/events/index.js +2 -1
- package/dist/events-vcqenSYU.d.ts +852 -0
- package/dist/executor-3qcMhg6R.js +207 -0
- package/dist/executor-BQ7dYw4E.js +843 -0
- package/dist/executor-CVIn6JHa.d.ts +174 -0
- package/dist/executor-D3gB-9si.js +486 -0
- package/dist/executor-_2ekNofh.d.ts +104 -0
- package/dist/executor-hGjrop3A.d.ts +37 -0
- package/dist/expo/index.d.ts +12 -11
- package/dist/expo/index.js +12 -11
- package/dist/extension-B-lajjex.js +58 -0
- package/dist/extension-B0EjCYhO.js +61 -0
- package/dist/extension-DeAd_MqI.js +121 -0
- package/dist/extension-DzCc0IOd.js +103 -0
- package/dist/extension-shared-Djm8mGHD.js +60 -0
- package/dist/field-errors-fsbFktYF.d.ts +216 -0
- package/dist/field-formats-CAFNkKSN.d.ts +38 -0
- package/dist/fields-B0zaJAO3.js +107 -0
- package/dist/fields-C3q2ypnO.d.ts +78 -0
- package/dist/filter-evaluate-CPxeae5X.d.ts +37 -0
- package/dist/filter-evaluate-w1XOIUOL.js +217 -0
- package/dist/filter-query-BXLs72G9.d.ts +133 -0
- package/dist/filter-query-DMoKo82_.js +566 -0
- package/dist/flags-BOdA_ETQ.js +279 -0
- package/dist/flags-C01PLMJ-.d.ts +246 -0
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/flags-sdk/index.js +2 -2
- package/dist/form-definition-BTpM_tz1.js +363 -0
- package/dist/form-definition-BjEtH8BT.d.ts +119 -0
- package/dist/format-u-65igKI.d.ts +79 -0
- package/dist/framework-BKyTeS-j.d.ts +47 -0
- package/dist/framework-DDdkR7FX.js +58 -0
- package/dist/function-contract-DxFNOmsm.d.ts +27 -0
- package/dist/gateway-TD1pRfTP.d.ts +115 -0
- package/dist/guest-actions-1T1DeS5Y.d.ts +5 -0
- package/dist/guest-actions-B7zdhfnh.js +9 -0
- package/dist/h3/index.d.ts +2 -4
- package/dist/h3/index.js +2 -4
- package/dist/h3/v1/index.d.ts +2 -3
- package/dist/h3/v1/index.js +2 -3
- package/dist/hono/index.d.ts +27 -21
- package/dist/hono/index.js +22 -20
- package/dist/http-7-UvHjQe.js +28 -0
- package/dist/impersonation-DM3oWNoD.js +62 -0
- package/dist/inbox-NDKwSk_H.d.ts +321 -0
- package/dist/index-B938YqY-.d.ts +188 -0
- package/dist/index-BUuVq1co.d.ts +158 -0
- package/dist/index-BnH4Gomw.d.ts +633 -0
- package/dist/index-BxYOB1Oc.d.ts +149 -0
- package/dist/index-C-qpk8EQ.d.ts +262 -0
- package/dist/index-CG9rA8H8.d.ts +407 -0
- package/dist/index-CguFm716.d.ts +518 -0
- package/dist/index-DLq69k3F.d.ts +588 -0
- package/dist/index-Do2ChN_y.d.ts +287 -0
- package/dist/index.d.ts +39 -92
- package/dist/index.js +95 -16
- package/dist/instances-BHjCZoF8.js +277 -0
- package/dist/invalidate-DMp4eqfF.d.ts +21 -0
- package/dist/json-schema-Ca6gYbEP.js +888 -0
- package/dist/jwks-cache-DEsKI0hJ.js +49 -0
- package/dist/kit-5l-o8RxL.js +133 -0
- package/dist/kit-DOwKpSkA.d.ts +94 -0
- package/dist/knowledge-BGbtxMP9.js +300 -0
- package/dist/knowledge-CtL-Vfgy.d.ts +217 -0
- package/dist/lint/index.d.ts +94 -11
- package/dist/lint/index.js +268 -26
- package/dist/list/index.d.ts +4 -4
- package/dist/list/index.js +3 -3
- package/dist/list-query-BDVutLFr.d.ts +222 -0
- package/dist/list-query-BKy2zBaT.js +559 -0
- package/dist/live-C21DgbsD.js +275 -0
- package/dist/mapper/bin.js +380 -0
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +11 -11
- package/dist/mcp/sdk/index.d.ts +10 -10
- package/dist/mcp/sdk/index.js +11 -11
- package/dist/messages-D4XWuRTj.js +492 -0
- package/dist/messaging-C_Pr9tGx.d.ts +297 -0
- package/dist/methods-B3o7BFOW.js +11 -0
- package/dist/mfa-oIOYTpvc.d.ts +36 -0
- package/dist/model-hwpvole9.d.ts +340 -0
- package/dist/model-messages-CKG0zwdF.js +206 -0
- package/dist/money-codec-BzddguAQ.js +41 -0
- package/dist/my-work-kinds-BU3SlA-6.js +11 -0
- package/dist/nestjs/index.d.ts +3 -3
- package/dist/nestjs/index.js +2 -2
- package/dist/next/index.d.ts +296 -57
- package/dist/next/index.js +310 -54
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +6 -8
- package/dist/operations-CSc_IsHO.d.ts +6 -0
- package/dist/options-0qvUckqt.js +9 -0
- package/dist/options-1GgseJq5.js +10 -0
- package/dist/options-21s0dpnX.js +9 -0
- package/dist/options-2EMA_x6_.js +16 -0
- package/dist/options-63AKQNv0.js +5 -0
- package/dist/options-9gvPo1BC.js +8 -0
- package/dist/options-B-cxGmRA.js +5 -0
- package/dist/options-B0EJULm5.js +5 -0
- package/dist/options-B2swWnJW.js +9 -0
- package/dist/options-B5VUf4IT.js +8 -0
- package/dist/options-BMGClqoa.js +11 -0
- package/dist/options-BPDiwSa-.js +5 -0
- package/dist/options-BQIYfx9F.js +9 -0
- package/dist/options-BVg58avP.js +5 -0
- package/dist/options-BYOtaF7w.js +5 -0
- package/dist/options-BZOliZvb.js +9 -0
- package/dist/options-BbnPv6p7.js +12 -0
- package/dist/options-BfLmA375.js +5 -0
- package/dist/options-BjtrC7o6.js +8 -0
- package/dist/options-BlncUmIc.js +9 -0
- package/dist/options-BlzSfWxC.d.ts +10 -0
- package/dist/options-BnZS7IK-.js +9 -0
- package/dist/options-Bpl-WFPk.js +15 -0
- package/dist/options-Br1Xi2Hw.js +9 -0
- package/dist/options-Bt0bYMLl.js +24 -0
- package/dist/options-BvtnxHfK.js +24 -0
- package/dist/options-C-dQHH5-.js +8 -0
- package/dist/options-C3RgtOLo.js +5 -0
- package/dist/options-CE93HOYi.d.ts +7 -0
- package/dist/options-CF7nRWXS.js +5 -0
- package/dist/options-CM6-18FQ.d.ts +13 -0
- package/dist/options-CPK2nQER.js +5 -0
- package/dist/options-CRz8Ht_4.js +9 -0
- package/dist/options-CSCXNYJO.d.ts +8 -0
- package/dist/options-CW9wTqOk.js +11 -0
- package/dist/options-CYV4iZiQ.js +5 -0
- package/dist/options-Cl9Ag2Pt.js +8 -0
- package/dist/options-Cp0HyUEk.js +9 -0
- package/dist/options-Cqq2jUww.js +10 -0
- package/dist/options-CsGl5BLH.d.ts +52 -0
- package/dist/options-CtUUU71w.js +20 -0
- package/dist/options-CvD9vNvx.js +9 -0
- package/dist/options-CyAhRKKm.d.ts +14 -0
- package/dist/options-Cyu0hgmN.js +9 -0
- package/dist/options-D0G06Zm9.js +8 -0
- package/dist/options-D0bzZx9a.d.ts +10 -0
- package/dist/options-D1hSuf50.d.ts +12 -0
- package/dist/options-D6as77gU.d.ts +16 -0
- package/dist/options-DChZoVfs.d.ts +11 -0
- package/dist/options-DINdgVih.d.ts +9 -0
- package/dist/options-DJ-aYPVN.js +5 -0
- package/dist/options-DPgdAXO5.js +11 -0
- package/dist/options-DWML05Cp.js +5 -0
- package/dist/options-DWVYM8P0.d.ts +17 -0
- package/dist/options-DWbA9buW.js +9 -0
- package/dist/options-DXnBN2E7.js +8 -0
- package/dist/options-D_bBVCXg.js +5 -0
- package/dist/options-DcOx8_3X.d.ts +19 -0
- package/dist/options-DeNejBtq.js +8 -0
- package/dist/options-DgQo80Xh.js +5 -0
- package/dist/options-DlohRAYd.d.ts +13 -0
- package/dist/options-DplE18Ko.d.ts +12 -0
- package/dist/options-DrSkIBCD.js +9 -0
- package/dist/options-E7KcmHQv.js +8 -0
- package/dist/options-HLwOuF2H.js +10 -0
- package/dist/options-IHPg8ZoA.js +5 -0
- package/dist/options-KV84gAxl.js +10 -0
- package/dist/options-Li1Dyu88.d.ts +10 -0
- package/dist/options-Q1Bzgqpr.js +5 -0
- package/dist/options-_F-enoBs.d.ts +26 -0
- package/dist/options-c5WCsky5.js +21 -0
- package/dist/options-nFzfgtA6.js +5 -0
- package/dist/options-o2kfYU2x.js +8 -0
- package/dist/options-pOVWwbAK.d.ts +10 -0
- package/dist/options-t_O5ldT6.js +5 -0
- package/dist/options-xD4_FRUq.js +10 -0
- package/dist/options-y_-AkVCs.d.ts +15 -0
- package/dist/options-zkyhM3qi.js +8 -0
- package/dist/orpc/index.d.ts +76 -20
- package/dist/orpc/index.js +174 -9
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +7 -7
- package/dist/outbox-HvGAJuBe.d.ts +199 -0
- package/dist/payments-BXvabJOw.js +16 -0
- package/dist/payments-BYcN34Fp.d.ts +114 -0
- package/dist/permissions-controller-BMsqIE5T.js +34 -0
- package/dist/plugin-AKwwe2gF.js +48 -0
- package/dist/pool-CrtT4dg-.d.ts +123 -0
- package/dist/pool-errors-JUBcGrre.js +27 -0
- package/dist/ports-DOhtuw3c.js +152 -0
- package/dist/ports-sx226JUL.d.ts +89 -0
- package/dist/postgres/index.d.ts +5 -5
- package/dist/postgres/index.js +3 -3
- package/dist/postgrest-executor-BFW4oWte.js +1064 -0
- package/dist/postgrest-z-T0l23T.d.ts +53 -0
- package/dist/powersync/index.d.ts +106 -7
- package/dist/powersync/index.js +169 -23
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +4 -4
- package/dist/preset-CsHnIBJF.js +875 -0
- package/dist/problem-Bf0cJ7tk.js +162 -0
- package/dist/problem-DNwN8iGz.d.ts +79 -0
- package/dist/provider-B6g7rBZX.js +57 -0
- package/dist/provider-CqwEOLCA.d.ts +112 -0
- package/dist/push-token-D3Vcf0Pf.d.ts +24 -0
- package/dist/queries-BWYYS9um.js +239 -0
- package/dist/query/index.d.ts +4 -4
- package/dist/query/index.js +357 -3
- package/dist/rank-result-BBJIK-k_.js +18 -0
- package/dist/rank-result-Bwe7igy-.d.ts +14 -0
- package/dist/rate-limit-BWKGlhTM.js +49 -0
- package/dist/rate-limit-Bztf32cl.d.ts +50 -0
- package/dist/rate-limit-o44SYkVY.js +327 -0
- package/dist/react/index.d.ts +10 -9
- package/dist/react/index.js +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +2 -3
- package/dist/react/server.d.ts +72 -13
- package/dist/react/server.js +71 -9
- package/dist/react/session.d.ts +3 -3
- package/dist/react-BuDYI62C.js +979 -0
- package/dist/react-router/index.d.ts +19 -13
- package/dist/react-router/index.js +10 -10
- package/dist/read-set-BnKnofIj.js +199 -0
- package/dist/realtime/index.d.ts +7 -7
- package/dist/realtime/index.js +36 -4
- package/dist/record-bindings-DkBJpC5A.js +26 -0
- package/dist/record-form-BYs9xv_N.d.ts +82 -0
- package/dist/record-type-DRbnlj5q.js +221 -0
- package/dist/recordings-BBSJt_YV.d.ts +119 -0
- package/dist/records/index.d.ts +83 -0
- package/dist/records/index.js +314 -0
- package/dist/refresh-DT_ICaK-.d.ts +54 -0
- package/dist/refusal-ByBZcm0V.js +64 -0
- package/dist/refusal-CSntB_x8.d.ts +32 -0
- package/dist/replicas-Dyoh3CEg.js +94 -0
- package/dist/resolve-B0mW2m7f.js +932 -0
- package/dist/resolve-CXX6DHv3.d.ts +288 -0
- package/dist/resource-D8pzB5Qf.d.ts +123 -0
- package/dist/resource-DV2GC2dB.js +520 -0
- package/dist/resource-DvgXqZB_.js +105 -0
- package/dist/resource-execute-CzHuDsil.d.ts +15 -0
- package/dist/resource-types-DnKiH4G2.d.ts +157 -0
- package/dist/resources-B9cQxhjw.d.ts +7 -0
- package/dist/resources-C02l_YBJ.js +64 -0
- package/dist/respond-C3CcOZlA.js +100 -0
- package/dist/respond-Dn1_YhC1.d.ts +106 -0
- package/dist/result-DZeA5KS6.d.ts +351 -0
- package/dist/result-ntFBW2p2.js +146 -0
- package/dist/rows-BDLZStp4.js +80 -0
- package/dist/rows-Bm6sskji.js +39 -0
- package/dist/rrule-79K2c3Nr.js +290 -0
- package/dist/run-state-BMCD_1Lt.d.ts +13 -0
- package/dist/sales-lines-Bk4mbLH1.d.ts +37 -0
- package/dist/sales-lines-D-sf9PIB.js +43 -0
- package/dist/sales-shared-DXGFJP4g.js +22 -0
- package/dist/schemas-l2aF78zQ.js +216 -0
- package/dist/scores-B2BiNuVJ.d.ts +174 -0
- package/dist/scores-CRp3vvQU.js +177 -0
- package/dist/server/index.d.ts +103 -42
- package/dist/server/index.js +98 -30
- package/dist/server-types-CFtehAsr.d.ts +946 -0
- package/dist/session-CH0SKgIz.d.ts +99 -0
- package/dist/shared-C47zAh2A.js +17 -0
- package/dist/sign-in-BAjR49fq.d.ts +24 -0
- package/dist/sign-in-BsIaNx2C.js +392 -0
- package/dist/sign-in-DNCdrk05.js +608 -0
- package/dist/signatures-CNcoq392.js +145 -0
- package/dist/signatures-Dkx9OE8j.d.ts +43 -0
- package/dist/signers-BAEzvTJ0.d.ts +390 -0
- package/dist/signing-keys-BNDUxpQL.d.ts +119 -0
- package/dist/signing-keys-wGKh4vtt.js +164 -0
- package/dist/solid/index.d.ts +67 -15
- package/dist/solid/index.js +93 -11
- package/dist/solid-start/index.d.ts +17 -14
- package/dist/solid-start/index.js +8 -8
- package/dist/spec/index.d.ts +691 -9
- package/dist/spec/index.js +2487 -5
- package/dist/spec-DTWkHzYZ.js +124 -0
- package/dist/spec-pins-C1Vm8OBl.js +61 -0
- package/dist/spec-pins-DIx95afw.d.ts +125 -0
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/sql-BPbbPzRJ.js +421 -0
- package/dist/sql-ClHIdgKS.js +126996 -0
- package/dist/sqlite/index.d.ts +126 -0
- package/dist/sqlite/index.js +197 -0
- package/dist/sso-B0Txid2-.d.ts +161 -0
- package/dist/sso-d2S4x_f9.js +217 -0
- package/dist/ssr/index.d.ts +5 -4
- package/dist/ssr/index.js +3 -3
- package/dist/standard-BA3mLh6w.js +25 -0
- package/dist/standard-DBV730sF.d.ts +7 -0
- package/dist/stats-BHl1-zj9.js +83 -0
- package/dist/statuses-DMMDwXpZ.js +29 -0
- package/dist/statuses-zRcc2TeZ.js +28 -0
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +11 -11
- package/dist/store-CpheI-lN.d.ts +83 -0
- package/dist/streams/index.d.ts +3 -3
- package/dist/streams/index.js +2 -3
- package/dist/streams/redis/index.d.ts +2 -2
- package/dist/streams/redis/index.js +3 -3
- package/dist/stripe/index.d.ts +1 -1
- package/dist/stripe-X22LjuH-.d.ts +156 -0
- package/dist/subject-readers-B-pQ9Mmo.js +49 -0
- package/dist/subject-readers-BNSzkqw_.d.ts +21 -0
- package/dist/subjects-BpIEN1MS.d.ts +90 -0
- package/dist/subjects-DvmQeF_F.d.ts +79 -0
- package/dist/summaries-8jQTELIX.d.ts +69 -0
- package/dist/support-view-BYOgwXsJ.d.ts +17 -0
- package/dist/svelte/index.d.ts +67 -12
- package/dist/svelte/index.js +108 -11
- package/dist/sveltekit/index.d.ts +19 -16
- package/dist/sveltekit/index.js +14 -14
- package/dist/table-schema-BlF6k62Q.d.ts +81 -0
- package/dist/table-schema-CD8cJz_M.js +293 -0
- package/dist/tags-BjHflcHF.d.ts +30 -0
- package/dist/tags-CIZTqtlY.js +39 -0
- package/dist/tanstack-db/index.d.ts +50 -6
- package/dist/tanstack-db/index.js +44 -3
- package/dist/tanstack-start/index.d.ts +15 -12
- package/dist/tanstack-start/index.js +9 -9
- package/dist/tax-BkCNWWMc.js +140 -0
- package/dist/tax-DPShHual.d.ts +170 -0
- package/dist/tee-V97_v1ZS.js +101 -0
- package/dist/template-Drgg3v2J.js +126 -0
- package/dist/temporal-required-Dy0GGD8E.js +20 -0
- package/dist/tenant-BgIiMQpo.js +27 -0
- package/dist/tenant-source-bqWpSr86.js +8 -0
- package/dist/tenant-yYg0E2-n.d.ts +17 -0
- package/dist/testing/index.d.ts +183 -58
- package/dist/testing/index.js +405 -97
- package/dist/timeline--VU3A1e4.js +50 -0
- package/dist/timeline-CtG0sehj.d.ts +151 -0
- package/dist/timing-dypS0nxW.js +95 -0
- package/dist/topic-CJrQZQaa.d.ts +415 -0
- package/dist/topic-ikV_pLTX.js +643 -0
- package/dist/types-BBQLbui9.d.ts +659 -0
- package/dist/types-CAQBmpDx.d.ts +217 -0
- package/dist/types-DFdg_4yN.d.ts +912 -0
- package/dist/types-Dp3UCr1e.d.ts +194 -0
- package/dist/types-Dr9wZgNy.d.ts +251 -0
- package/dist/types-EO2crSX_.d.ts +177 -0
- package/dist/types-SFRomQF7.d.ts +624 -0
- package/dist/undo-B1jwnVyN.d.ts +46 -0
- package/dist/undo-BjCChCmH.js +44 -0
- package/dist/upload-claim-B1ZU8ydB.js +33 -0
- package/dist/usage-D7QkrwzV.d.ts +232 -0
- package/dist/user-change-DgWC6RRC.js +135 -0
- package/dist/variants-Cy--Ub-a.js +53 -0
- package/dist/vault-O-YlAyHb.d.ts +62 -0
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-connect/index.js +3 -3
- package/dist/verify-CMou8dWZ.d.ts +146 -0
- package/dist/verify-ZLFUdlqE.js +130 -0
- package/dist/view-C8Ve14ja.js +247 -0
- package/dist/view-DyFdMCqg.d.ts +97 -0
- package/dist/vue/index.d.ts +67 -20
- package/dist/vue/index.js +102 -14
- package/dist/watch-topic-BcGfvZOE.d.ts +31 -0
- package/dist/wiring-CDNuQoJJ.js +13 -0
- package/dist/workflow-sdk/builder/index.d.ts +12 -12
- package/dist/workflow-sdk/builder/index.js +16 -17
- package/dist/workflow-sdk/index.d.ts +18 -15
- package/dist/workflow-sdk/index.js +2 -2
- package/dist/workflow-sdk/world/index.d.ts +6 -6
- package/dist/workflow-sdk/world/index.js +12 -12
- package/dist/workflow-sdk-BFHu4sci.d.ts +163 -0
- package/dist/workflow-sdk-BVlFEB5Q.js +242 -0
- package/dist/workflow-sdk-Bw6_u0ar.js +2446 -0
- package/dist/workflows-B0ZPAQu0.d.ts +255 -0
- package/dist/yjs/index.d.ts +28 -4
- package/dist/yjs/index.js +52 -10
- package/package.json +201 -540
- package/schemas/config-v1.json +2720 -1693
- package/schemas/design-v1.json +147 -5
- package/schemas/doctor-report-v1.json +14 -0
- package/schemas/snapshot-v2.json +25 -0
- package/skills/better-supabase/SKILL.md +71 -28
- package/skills/better-supabase/references/block-extensions.md +64 -0
- package/skills/better-supabase/references/frontend.md +29 -26
- package/skills/better-supabase/references/troubleshooting.md +19 -19
- package/skills/better-supabase/references/ui-recipes.md +12837 -8039
- package/skills/better-supabase-api/SKILL.md +49 -38
- package/skills/better-supabase-api/references/adapters.md +42 -39
- package/skills/better-supabase-api/references/ai.md +4 -4
- package/skills/better-supabase-api/references/expo.md +8 -8
- package/skills/better-supabase-api/references/powersync.md +25 -11
- package/skills/better-supabase-api/references/streams-credentials.md +3 -3
- package/skills/better-supabase-auth/SKILL.md +17 -17
- package/skills/better-supabase-auth/references/authorization-providers.md +8 -6
- package/skills/better-supabase-testing/SKILL.md +8 -8
- package/dist/access-sql-BpOdJvfj.js +0 -205
- package/dist/actor-C9pwyCVz.js +0 -150
- package/dist/adapter-D8dW6p2A.js +0 -2190
- package/dist/agents-CuxuXVWv.d.ts +0 -117
- package/dist/ai-cache-BXMXRhkx.d.ts +0 -82
- package/dist/ai-cache-Byy5q6EZ.js +0 -87
- package/dist/ai-chat-B00sIOjY.d.ts +0 -619
- package/dist/ai-files-DTbIJcxQ.js +0 -339
- package/dist/ai-tasks-DN-AV7qB.d.ts +0 -166
- package/dist/announcements-DqiLxtKK.js +0 -128
- package/dist/api-CmcTYuFT.js +0 -685
- package/dist/api-DwLhJS1j.d.ts +0 -444
- package/dist/api-keys-Bade6Qtl.d.ts +0 -213
- package/dist/api-keys-CO24Ffil.js +0 -318
- package/dist/app-tables-0YZ9IskE.js +0 -831
- package/dist/app-tables-CbWUI7h_.d.ts +0 -35
- package/dist/approvals-C-4MOWdV.d.ts +0 -127
- package/dist/arazzo/index.d.ts +0 -277
- package/dist/arazzo/index.js +0 -630
- package/dist/assistant-CcP_kpu7.d.ts +0 -157
- package/dist/asyncapi/index.d.ts +0 -109
- package/dist/asyncapi/index.js +0 -572
- package/dist/attachments-CPkGJVfk.js +0 -270
- package/dist/attributes-BOFl922R.js +0 -44
- package/dist/audit-log-5aTnl7W2.js +0 -788
- package/dist/auth-module-CwCIY97x.js +0 -10
- package/dist/auth-reply-D02x5NSv.js +0 -31
- package/dist/authorization-CB69cvnA.d.ts +0 -1504
- package/dist/authorization-hooks-HXVZXxUk.d.ts +0 -217
- package/dist/authorizer-BVR2vPGA.js +0 -125
- package/dist/authorizer-DFP3gHv8.d.ts +0 -82
- package/dist/bind-DcXLU1ul.d.ts +0 -76
- package/dist/block-env-YfPmSNa1.js +0 -32
- package/dist/block-env-kFcaaJLM.d.ts +0 -10
- package/dist/block-events-BURaqwyp.js +0 -96
- package/dist/block-fields-Cwd4c8m-.js +0 -139
- package/dist/block-fields-DnXkMney.d.ts +0 -58
- package/dist/block-helpers-DwE32_gT.js +0 -272
- package/dist/block-helpers-DyA5BAW4.d.ts +0 -43
- package/dist/block-hooks-BadAniNI.d.ts +0 -117
- package/dist/block-hooks-C1r-R2r0.js +0 -130
- package/dist/block-transport-DBPhgF3W.d.ts +0 -69
- package/dist/block-transport-Ds0C2mUf.js +0 -84
- package/dist/blocks/ai-chat/react/index.d.ts +0 -52
- package/dist/blocks/ai-chat/react/index.js +0 -95
- package/dist/blocks/ai-chat/react/server.d.ts +0 -25
- package/dist/blocks/ai-chat/react/server.js +0 -23
- package/dist/blocks/ai-chat/solid/index.d.ts +0 -34
- package/dist/blocks/ai-chat/solid/index.js +0 -41
- package/dist/blocks/ai-chat/svelte/index.d.ts +0 -34
- package/dist/blocks/ai-chat/svelte/index.js +0 -41
- package/dist/blocks/ai-chat/vue/index.d.ts +0 -34
- package/dist/blocks/ai-chat/vue/index.js +0 -41
- package/dist/blocks/ai-providers/index.d.ts +0 -22
- package/dist/blocks/ai-providers/index.js +0 -237
- package/dist/blocks/ai-tasks/index.d.ts +0 -10
- package/dist/blocks/ai-tasks/index.js +0 -253
- package/dist/blocks/announcements/react/index.d.ts +0 -28
- package/dist/blocks/announcements/react/index.js +0 -38
- package/dist/blocks/announcements/react/server.d.ts +0 -9
- package/dist/blocks/announcements/react/server.js +0 -10
- package/dist/blocks/announcements/solid/index.d.ts +0 -13
- package/dist/blocks/announcements/solid/index.js +0 -14
- package/dist/blocks/announcements/svelte/index.d.ts +0 -13
- package/dist/blocks/announcements/svelte/index.js +0 -14
- package/dist/blocks/announcements/vue/index.d.ts +0 -13
- package/dist/blocks/announcements/vue/index.js +0 -14
- package/dist/blocks/api-keys/react/index.d.ts +0 -32
- package/dist/blocks/api-keys/react/index.js +0 -43
- package/dist/blocks/api-keys/react/server.d.ts +0 -7
- package/dist/blocks/api-keys/react/server.js +0 -7
- package/dist/blocks/api-keys/solid/index.d.ts +0 -13
- package/dist/blocks/api-keys/solid/index.js +0 -14
- package/dist/blocks/api-keys/svelte/index.d.ts +0 -13
- package/dist/blocks/api-keys/svelte/index.js +0 -14
- package/dist/blocks/api-keys/vue/index.d.ts +0 -13
- package/dist/blocks/api-keys/vue/index.js +0 -14
- package/dist/blocks/audit/react/index.d.ts +0 -31
- package/dist/blocks/audit/react/index.js +0 -46
- package/dist/blocks/audit/react/server.d.ts +0 -7
- package/dist/blocks/audit/react/server.js +0 -7
- package/dist/blocks/audit/solid/index.d.ts +0 -13
- package/dist/blocks/audit/solid/index.js +0 -14
- package/dist/blocks/audit/svelte/index.d.ts +0 -13
- package/dist/blocks/audit/svelte/index.js +0 -14
- package/dist/blocks/audit/vue/index.d.ts +0 -13
- package/dist/blocks/audit/vue/index.js +0 -14
- package/dist/blocks/billing/react/index.d.ts +0 -44
- package/dist/blocks/billing/react/index.js +0 -40
- package/dist/blocks/billing/react/server.d.ts +0 -10
- package/dist/blocks/billing/react/server.js +0 -10
- package/dist/blocks/billing/solid/index.d.ts +0 -15
- package/dist/blocks/billing/solid/index.js +0 -14
- package/dist/blocks/billing/svelte/index.d.ts +0 -15
- package/dist/blocks/billing/svelte/index.js +0 -14
- package/dist/blocks/billing/vue/index.d.ts +0 -15
- package/dist/blocks/billing/vue/index.js +0 -14
- package/dist/blocks/bookings/react/index.d.ts +0 -35
- package/dist/blocks/bookings/react/index.js +0 -63
- package/dist/blocks/bookings/react/server.d.ts +0 -9
- package/dist/blocks/bookings/react/server.js +0 -10
- package/dist/blocks/bookings/solid/index.d.ts +0 -13
- package/dist/blocks/bookings/solid/index.js +0 -14
- package/dist/blocks/bookings/svelte/index.d.ts +0 -13
- package/dist/blocks/bookings/svelte/index.js +0 -14
- package/dist/blocks/bookings/vue/index.d.ts +0 -13
- package/dist/blocks/bookings/vue/index.js +0 -14
- package/dist/blocks/calendar/react/index.d.ts +0 -26
- package/dist/blocks/calendar/react/index.js +0 -58
- package/dist/blocks/calendar/react/server.d.ts +0 -9
- package/dist/blocks/calendar/react/server.js +0 -10
- package/dist/blocks/calendar/solid/index.d.ts +0 -13
- package/dist/blocks/calendar/solid/index.js +0 -14
- package/dist/blocks/calendar/svelte/index.d.ts +0 -13
- package/dist/blocks/calendar/svelte/index.js +0 -14
- package/dist/blocks/calendar/vue/index.d.ts +0 -13
- package/dist/blocks/calendar/vue/index.js +0 -14
- package/dist/blocks/comments/react/index.d.ts +0 -34
- package/dist/blocks/comments/react/index.js +0 -49
- package/dist/blocks/comments/react/server.d.ts +0 -7
- package/dist/blocks/comments/react/server.js +0 -7
- package/dist/blocks/comments/solid/index.d.ts +0 -13
- package/dist/blocks/comments/solid/index.js +0 -14
- package/dist/blocks/comments/svelte/index.d.ts +0 -13
- package/dist/blocks/comments/svelte/index.js +0 -14
- package/dist/blocks/comments/vue/index.d.ts +0 -13
- package/dist/blocks/comments/vue/index.js +0 -14
- package/dist/blocks/engagements/index.d.ts +0 -134
- package/dist/blocks/engagements/index.js +0 -143
- package/dist/blocks/entitlements/react/index.d.ts +0 -27
- package/dist/blocks/entitlements/react/index.js +0 -35
- package/dist/blocks/entitlements/react/server.d.ts +0 -9
- package/dist/blocks/entitlements/react/server.js +0 -10
- package/dist/blocks/entitlements/solid/index.d.ts +0 -13
- package/dist/blocks/entitlements/solid/index.js +0 -14
- package/dist/blocks/entitlements/svelte/index.d.ts +0 -13
- package/dist/blocks/entitlements/svelte/index.js +0 -14
- package/dist/blocks/entitlements/vue/index.d.ts +0 -13
- package/dist/blocks/entitlements/vue/index.js +0 -14
- package/dist/blocks/forms/react/index.d.ts +0 -19
- package/dist/blocks/forms/react/index.js +0 -28
- package/dist/blocks/forms/react/server.d.ts +0 -9
- package/dist/blocks/forms/react/server.js +0 -10
- package/dist/blocks/forms/solid/index.d.ts +0 -13
- package/dist/blocks/forms/solid/index.js +0 -14
- package/dist/blocks/forms/svelte/index.d.ts +0 -13
- package/dist/blocks/forms/svelte/index.js +0 -14
- package/dist/blocks/forms/vue/index.d.ts +0 -13
- package/dist/blocks/forms/vue/index.js +0 -14
- package/dist/blocks/inbox/react/index.d.ts +0 -3
- package/dist/blocks/inbox/react/index.js +0 -81
- package/dist/blocks/inbox/react/server.d.ts +0 -17
- package/dist/blocks/inbox/react/server.js +0 -18
- package/dist/blocks/inbox/solid/index.d.ts +0 -27
- package/dist/blocks/inbox/solid/index.js +0 -32
- package/dist/blocks/inbox/svelte/index.d.ts +0 -27
- package/dist/blocks/inbox/svelte/index.js +0 -32
- package/dist/blocks/inbox/vue/index.d.ts +0 -27
- package/dist/blocks/inbox/vue/index.js +0 -32
- package/dist/blocks/jobs/index.d.ts +0 -523
- package/dist/blocks/jobs/index.js +0 -1346
- package/dist/blocks/mfa/react/index.d.ts +0 -30
- package/dist/blocks/mfa/react/index.js +0 -45
- package/dist/blocks/mfa/react/server.d.ts +0 -9
- package/dist/blocks/mfa/react/server.js +0 -12
- package/dist/blocks/mfa/solid/index.d.ts +0 -20
- package/dist/blocks/mfa/solid/index.js +0 -23
- package/dist/blocks/mfa/svelte/index.d.ts +0 -20
- package/dist/blocks/mfa/svelte/index.js +0 -23
- package/dist/blocks/mfa/vue/index.d.ts +0 -20
- package/dist/blocks/mfa/vue/index.js +0 -23
- package/dist/blocks/notifications/react/index.d.ts +0 -19
- package/dist/blocks/notifications/react/index.js +0 -41
- package/dist/blocks/notifications/react/server.d.ts +0 -10
- package/dist/blocks/notifications/react/server.js +0 -10
- package/dist/blocks/notifications/solid/index.d.ts +0 -13
- package/dist/blocks/notifications/solid/index.js +0 -14
- package/dist/blocks/notifications/svelte/index.d.ts +0 -13
- package/dist/blocks/notifications/svelte/index.js +0 -14
- package/dist/blocks/notifications/vue/index.d.ts +0 -13
- package/dist/blocks/notifications/vue/index.js +0 -14
- package/dist/blocks/number-sequences/index.d.ts +0 -48
- package/dist/blocks/number-sequences/index.js +0 -52
- package/dist/blocks/onboarding/react/index.d.ts +0 -24
- package/dist/blocks/onboarding/react/index.js +0 -38
- package/dist/blocks/onboarding/react/server.d.ts +0 -10
- package/dist/blocks/onboarding/react/server.js +0 -10
- package/dist/blocks/onboarding/solid/index.d.ts +0 -13
- package/dist/blocks/onboarding/solid/index.js +0 -14
- package/dist/blocks/onboarding/svelte/index.d.ts +0 -13
- package/dist/blocks/onboarding/svelte/index.js +0 -14
- package/dist/blocks/onboarding/vue/index.d.ts +0 -13
- package/dist/blocks/onboarding/vue/index.js +0 -14
- package/dist/blocks/organizations/react/index.d.ts +0 -127
- package/dist/blocks/organizations/react/index.js +0 -113
- package/dist/blocks/organizations/react/server.d.ts +0 -20
- package/dist/blocks/organizations/react/server.js +0 -24
- package/dist/blocks/organizations/solid/index.d.ts +0 -34
- package/dist/blocks/organizations/solid/index.js +0 -32
- package/dist/blocks/organizations/svelte/index.d.ts +0 -34
- package/dist/blocks/organizations/svelte/index.js +0 -32
- package/dist/blocks/organizations/vue/index.d.ts +0 -34
- package/dist/blocks/organizations/vue/index.js +0 -32
- package/dist/blocks/parties/index.d.ts +0 -190
- package/dist/blocks/parties/index.js +0 -261
- package/dist/blocks/reactions/react/index.d.ts +0 -33
- package/dist/blocks/reactions/react/index.js +0 -50
- package/dist/blocks/reactions/react/server.d.ts +0 -9
- package/dist/blocks/reactions/react/server.js +0 -10
- package/dist/blocks/reactions/solid/index.d.ts +0 -13
- package/dist/blocks/reactions/solid/index.js +0 -14
- package/dist/blocks/reactions/svelte/index.d.ts +0 -13
- package/dist/blocks/reactions/svelte/index.js +0 -14
- package/dist/blocks/reactions/vue/index.d.ts +0 -13
- package/dist/blocks/reactions/vue/index.js +0 -14
- package/dist/blocks/rules/index.d.ts +0 -171
- package/dist/blocks/rules/index.js +0 -162
- package/dist/blocks/rules/react/index.d.ts +0 -38
- package/dist/blocks/rules/react/index.js +0 -59
- package/dist/blocks/rules/react/server.d.ts +0 -6
- package/dist/blocks/rules/react/server.js +0 -7
- package/dist/blocks/rules/solid/index.d.ts +0 -13
- package/dist/blocks/rules/solid/index.js +0 -14
- package/dist/blocks/rules/svelte/index.d.ts +0 -13
- package/dist/blocks/rules/svelte/index.js +0 -14
- package/dist/blocks/rules/vue/index.d.ts +0 -13
- package/dist/blocks/rules/vue/index.js +0 -14
- package/dist/blocks/saved-views/react/index.d.ts +0 -40
- package/dist/blocks/saved-views/react/index.js +0 -60
- package/dist/blocks/saved-views/react/server.d.ts +0 -10
- package/dist/blocks/saved-views/react/server.js +0 -10
- package/dist/blocks/saved-views/solid/index.d.ts +0 -13
- package/dist/blocks/saved-views/solid/index.js +0 -14
- package/dist/blocks/saved-views/svelte/index.d.ts +0 -13
- package/dist/blocks/saved-views/svelte/index.js +0 -14
- package/dist/blocks/saved-views/vue/index.d.ts +0 -13
- package/dist/blocks/saved-views/vue/index.js +0 -14
- package/dist/blocks/search/react/index.d.ts +0 -39
- package/dist/blocks/search/react/index.js +0 -49
- package/dist/blocks/search/react/server.d.ts +0 -10
- package/dist/blocks/search/react/server.js +0 -11
- package/dist/blocks/search/solid/index.d.ts +0 -13
- package/dist/blocks/search/solid/index.js +0 -14
- package/dist/blocks/search/svelte/index.d.ts +0 -13
- package/dist/blocks/search/svelte/index.js +0 -14
- package/dist/blocks/search/vue/index.d.ts +0 -13
- package/dist/blocks/search/vue/index.js +0 -14
- package/dist/blocks/service-principals/index.d.ts +0 -132
- package/dist/blocks/service-principals/index.js +0 -110
- package/dist/blocks/sessions/react/index.d.ts +0 -36
- package/dist/blocks/sessions/react/index.js +0 -53
- package/dist/blocks/sessions/react/server.d.ts +0 -15
- package/dist/blocks/sessions/react/server.js +0 -17
- package/dist/blocks/sessions/solid/index.d.ts +0 -20
- package/dist/blocks/sessions/solid/index.js +0 -23
- package/dist/blocks/sessions/svelte/index.d.ts +0 -20
- package/dist/blocks/sessions/svelte/index.js +0 -23
- package/dist/blocks/sessions/vue/index.d.ts +0 -20
- package/dist/blocks/sessions/vue/index.js +0 -23
- package/dist/blocks/settings/react/index.d.ts +0 -31
- package/dist/blocks/settings/react/index.js +0 -37
- package/dist/blocks/settings/react/server.d.ts +0 -10
- package/dist/blocks/settings/react/server.js +0 -10
- package/dist/blocks/settings/solid/index.d.ts +0 -13
- package/dist/blocks/settings/solid/index.js +0 -14
- package/dist/blocks/settings/svelte/index.d.ts +0 -13
- package/dist/blocks/settings/svelte/index.js +0 -14
- package/dist/blocks/settings/vue/index.d.ts +0 -13
- package/dist/blocks/settings/vue/index.js +0 -14
- package/dist/blocks/shared-signals/index.d.ts +0 -440
- package/dist/blocks/shared-signals/index.js +0 -886
- package/dist/blocks/tags/react/index.d.ts +0 -36
- package/dist/blocks/tags/react/index.js +0 -52
- package/dist/blocks/tags/react/server.d.ts +0 -7
- package/dist/blocks/tags/react/server.js +0 -7
- package/dist/blocks/tags/solid/index.d.ts +0 -13
- package/dist/blocks/tags/solid/index.js +0 -14
- package/dist/blocks/tags/svelte/index.d.ts +0 -13
- package/dist/blocks/tags/svelte/index.js +0 -14
- package/dist/blocks/tags/vue/index.d.ts +0 -13
- package/dist/blocks/tags/vue/index.js +0 -14
- package/dist/blocks/targets/index.d.ts +0 -82
- package/dist/blocks/targets/index.js +0 -73
- package/dist/blocks/undo/react/index.d.ts +0 -17
- package/dist/blocks/undo/react/index.js +0 -24
- package/dist/blocks/undo/react/server.d.ts +0 -10
- package/dist/blocks/undo/react/server.js +0 -10
- package/dist/blocks/undo/solid/index.d.ts +0 -13
- package/dist/blocks/undo/solid/index.js +0 -14
- package/dist/blocks/undo/svelte/index.d.ts +0 -13
- package/dist/blocks/undo/svelte/index.js +0 -14
- package/dist/blocks/undo/vue/index.d.ts +0 -13
- package/dist/blocks/undo/vue/index.js +0 -14
- package/dist/blocks/usage/react/index.d.ts +0 -29
- package/dist/blocks/usage/react/index.js +0 -38
- package/dist/blocks/usage/react/server.d.ts +0 -7
- package/dist/blocks/usage/react/server.js +0 -7
- package/dist/blocks/usage/solid/index.d.ts +0 -13
- package/dist/blocks/usage/solid/index.js +0 -14
- package/dist/blocks/usage/svelte/index.d.ts +0 -13
- package/dist/blocks/usage/svelte/index.js +0 -14
- package/dist/blocks/usage/vue/index.d.ts +0 -13
- package/dist/blocks/usage/vue/index.js +0 -14
- package/dist/blocks/work-items/index.d.ts +0 -210
- package/dist/blocks/work-items/index.js +0 -304
- package/dist/blocks/workflow-builder/index.d.ts +0 -43
- package/dist/blocks/workflow-builder/index.js +0 -33
- package/dist/blocks/workflow-builder/react/index.d.ts +0 -32
- package/dist/blocks/workflow-builder/react/index.js +0 -75
- package/dist/blocks/workflow-builder/react/server.d.ts +0 -14
- package/dist/blocks/workflow-builder/react/server.js +0 -17
- package/dist/blocks/workflow-builder/solid/index.d.ts +0 -20
- package/dist/blocks/workflow-builder/solid/index.js +0 -23
- package/dist/blocks/workflow-builder/svelte/index.d.ts +0 -20
- package/dist/blocks/workflow-builder/svelte/index.js +0 -23
- package/dist/blocks/workflow-builder/vue/index.d.ts +0 -20
- package/dist/blocks/workflow-builder/vue/index.js +0 -23
- package/dist/blocks/workflows/react/index.d.ts +0 -39
- package/dist/blocks/workflows/react/index.js +0 -65
- package/dist/blocks/workflows/react/server.d.ts +0 -14
- package/dist/blocks/workflows/react/server.js +0 -17
- package/dist/blocks/workflows/solid/index.d.ts +0 -20
- package/dist/blocks/workflows/solid/index.js +0 -23
- package/dist/blocks/workflows/svelte/index.d.ts +0 -20
- package/dist/blocks/workflows/svelte/index.js +0 -23
- package/dist/blocks/workflows/vue/index.d.ts +0 -20
- package/dist/blocks/workflows/vue/index.js +0 -23
- package/dist/blocks-CR3vCYhj.js +0 -88
- package/dist/bookings-DJflcGqs.js +0 -184
- package/dist/bucket-DBay-ICp.d.ts +0 -667
- package/dist/build-DxzJf79X.js +0 -1839
- package/dist/build-UqJeGtsH.js +0 -703
- package/dist/calendar-DvbYFkrh.js +0 -801
- package/dist/chat-sdk/react/index.d.ts +0 -3
- package/dist/chat-sdk/react/index.js +0 -2
- package/dist/chat-sdk/react/server.d.ts +0 -4
- package/dist/chat-sdk/react/server.js +0 -1
- package/dist/claims-T8TWZ53E.js +0 -63
- package/dist/cli/add-BRjL7LuG.js +0 -1
- package/dist/cli/add-Cf0uxfZ2.js +0 -672
- package/dist/cli/add-DPfdDRq7.js +0 -75
- package/dist/cli/adopt-B28iUeGg.js +0 -1
- package/dist/cli/adopt-C0VugVMu.js +0 -421
- package/dist/cli/apply-BlxtZPxe.js +0 -329
- package/dist/cli/blocks-CHQ7K8Yz.js +0 -1
- package/dist/cli/blocks-D3tsq-mR.js +0 -124
- package/dist/cli/cache-DdgzhoaL.js +0 -516
- package/dist/cli/catalog-DwTUdJaQ.js +0 -188
- package/dist/cli/codemod-Dz4R-tVY.js +0 -1127
- package/dist/cli/command-33pu13LT.js +0 -963
- package/dist/cli/completion-6M6Hr8TL.js +0 -211
- package/dist/cli/completion-Bqu8yq0q.js +0 -1
- package/dist/cli/completion-Ddr3yqd3.js +0 -30
- package/dist/cli/config-2qlSTi2o.js +0 -1503
- package/dist/cli/config-B31tIvAl.js +0 -42
- package/dist/cli/config-DVksOjSr.js +0 -1
- package/dist/cli/config-edit-D46H0UHp.js +0 -613
- package/dist/cli/db-D8iId4R8.js +0 -473
- package/dist/cli/design-edit-B2aBiarJ.js +0 -205
- package/dist/cli/doctor-pIek4vIO.js +0 -3897
- package/dist/cli/emit-CJKf47Bi.js +0 -1078
- package/dist/cli/env-BrLZfqsL.js +0 -143
- package/dist/cli/env-cbCEa79W.js +0 -1
- package/dist/cli/files-C5JfVnj5.js +0 -972
- package/dist/cli/gen-DquZzY5a.js +0 -307
- package/dist/cli/init-Dd-UdrE0.js +0 -397
- package/dist/cli/introspect-IMQCji2l.js +0 -51
- package/dist/cli/keys-iJs_1WT8.js +0 -106
- package/dist/cli/live-BfAO5YRX.js +0 -344
- package/dist/cli/mcp-D8Az0FNn.js +0 -240
- package/dist/cli/metadata-CTStQPfV.js +0 -144
- package/dist/cli/migration-safety-Dg1lxomi.js +0 -305
- package/dist/cli/module-migration-CbX-jRhV.js +0 -606
- package/dist/cli/moved-CdNtCf4t.js +0 -161
- package/dist/cli/names-D6LrQnOv.js +0 -6
- package/dist/cli/parse-CRZLku1b.js +0 -182
- package/dist/cli/preset-DEvwDc7U.js +0 -129
- package/dist/cli/run-BXhJoghZ.js +0 -1602
- package/dist/cli/run-DdxNRTr0.js +0 -63
- package/dist/cli/run-dTu_PD4I.js +0 -711
- package/dist/cli/scaffold-Bx3bcy2R.js +0 -901
- package/dist/cli/scaffold-mbNAQE19.js +0 -1
- package/dist/cli/seed-CLseQdXQ.js +0 -188
- package/dist/cli/seed-DSHSUsYy.js +0 -1
- package/dist/cli/shared-CAdIkTR7.js +0 -151
- package/dist/cli/skills-Bz4INB8f.js +0 -121
- package/dist/cli/snapshot-GfdB9Cjl.js +0 -350
- package/dist/cli/source-args-Dy3j1-H-.js +0 -59
- package/dist/cli/spec-BfEK0_04.js +0 -1
- package/dist/cli/spec-DXTdodlO.js +0 -7534
- package/dist/cli/sql-BUhpAvrW.js +0 -2
- package/dist/cli/sql-CLbWk3Yb.js +0 -332
- package/dist/cli/stack-_F_JhllX.js +0 -135
- package/dist/cli/sync-BBzNO-v9.js +0 -91
- package/dist/cli/typegen-F9GEjpvD.js +0 -502
- package/dist/cli/typegen-version-BNBPI4Eu.js +0 -9
- package/dist/cli/version-DiwcIKOL.js +0 -4
- package/dist/cli/write-DZKk5rSF.js +0 -201
- package/dist/client--tyFmxDT.js +0 -52
- package/dist/client-0qFNkNhT.js +0 -1060
- package/dist/client-2z1aHG57.d.ts +0 -475
- package/dist/client-5IVhjmtl.d.ts +0 -74
- package/dist/client-B3WBilR2.d.ts +0 -69
- package/dist/client-B4JPQgf-.d.ts +0 -165
- package/dist/client-BAYh7P2h.js +0 -211
- package/dist/client-BKGVUgo7.js +0 -380
- package/dist/client-BNaOcfeH.js +0 -58
- package/dist/client-BOuaQA0h.js +0 -173
- package/dist/client-BP-8vn9G.d.ts +0 -37
- package/dist/client-BU5Yd0yO.d.ts +0 -103
- package/dist/client-Bb_Pj9wL.js +0 -137
- package/dist/client-BkH-Vh3s.d.ts +0 -112
- package/dist/client-BsfsRHae.d.ts +0 -136
- package/dist/client-Bta7yl1C.d.ts +0 -451
- package/dist/client-BwKXlohx.js +0 -121
- package/dist/client-C1zOmnS8.js +0 -89
- package/dist/client-CMqO1gCn.d.ts +0 -64
- package/dist/client-CPirbPPi.js +0 -85
- package/dist/client-CQPB-VJx.d.ts +0 -110
- package/dist/client-CXbP_p02.d.ts +0 -156
- package/dist/client-C_S9avzV.d.ts +0 -420
- package/dist/client-Cb1g45Hc.js +0 -99
- package/dist/client-CebKlRU7.js +0 -157
- package/dist/client-Ch-dDfTB.js +0 -437
- package/dist/client-CuFD4o56.d.ts +0 -111
- package/dist/client-D2y_CfhU.d.ts +0 -137
- package/dist/client-DAcVF-YJ.js +0 -134
- package/dist/client-DCuE1rFm.js +0 -441
- package/dist/client-DD02cst6.d.ts +0 -245
- package/dist/client-DD3EcytK.js +0 -65
- package/dist/client-DEE57s9m.d.ts +0 -132
- package/dist/client-DScMvaty.js +0 -38
- package/dist/client-DVRFa59w.d.ts +0 -309
- package/dist/client-DXb1Nmr3.js +0 -111
- package/dist/client-DkI0oyR7.js +0 -76
- package/dist/client-DkQcRKhm.js +0 -67
- package/dist/client-DoXBX3vS.d.ts +0 -116
- package/dist/client-Dsuy9wfA.d.ts +0 -59
- package/dist/client-EQvEzUQg.d.ts +0 -276
- package/dist/client-G7NGXZKe.d.ts +0 -43
- package/dist/client-OhTiAol1.js +0 -213
- package/dist/client-Wt19DaEb.js +0 -291
- package/dist/client-Y-kaHabc.d.ts +0 -46
- package/dist/client-YASsOslj.js +0 -321
- package/dist/client-Y_HnZGF4.js +0 -51
- package/dist/client-_mL998Gl.js +0 -129
- package/dist/client-i_u1e0Kf.d.ts +0 -144
- package/dist/client-kRvHKAKS.js +0 -60
- package/dist/client-nieeGXdg.d.ts +0 -178
- package/dist/client-pxXoQOdC.js +0 -40
- package/dist/client-ysVOUgxM.d.ts +0 -54
- package/dist/cloud-event-CidL9jiw.d.ts +0 -64
- package/dist/codecs-Du_zE1xu.js +0 -358
- package/dist/codecs-WHpM3Byy.d.ts +0 -221
- package/dist/codegen-DGtOsqz9.d.ts +0 -1809
- package/dist/comments-Ceqo9bwE.js +0 -230
- package/dist/compiler-DCotQWcs.d.ts +0 -14
- package/dist/compose-VBQL7zIO.js +0 -53
- package/dist/composite-BgBzdYP-.d.ts +0 -82
- package/dist/composite-BgSdL5tk.js +0 -130
- package/dist/config-V6HMvce5.js +0 -3930
- package/dist/config-xUf0dj0t.js +0 -562
- package/dist/connector-CKcTPJRV.d.ts +0 -107
- package/dist/connectors-CgWuPQks.d.ts +0 -147
- package/dist/context-B8_p3MXo.js +0 -11
- package/dist/context-C-bHOtoD.js +0 -5
- package/dist/context-CCz6ZgyI.js +0 -19
- package/dist/context-CMxVnPMY.js +0 -9
- package/dist/context-CrojkPNC.js +0 -41
- package/dist/context-DvBEhsXX.d.ts +0 -403
- package/dist/controller-lWRcKqCl.d.ts +0 -52
- package/dist/cron-CI1kP-t5.js +0 -148
- package/dist/cron-route-BbVtwXZz.js +0 -24
- package/dist/db-exception-CnWcYPxL.js +0 -15
- package/dist/define-D0LSXmUP.d.ts +0 -1117
- package/dist/define-DwZ_LQVO.js +0 -2011
- package/dist/define-block-B6Gjs57G.js +0 -52
- package/dist/define-block-MyM4lH42.d.ts +0 -281
- package/dist/delegation-DeAJehLk.js +0 -146
- package/dist/documents-BijGGIjr.d.ts +0 -99
- package/dist/embeddings-DRGIc8ti.js +0 -128
- package/dist/embeddings-Deusi99x.d.ts +0 -78
- package/dist/ended-D_Twxl8v.d.ts +0 -76
- package/dist/entitlements-CMGsO4gL.d.ts +0 -54
- package/dist/entitlements-_tw0V3BY.js +0 -45
- package/dist/envelope-BDShQQ7-.js +0 -90
- package/dist/errors-Cq72lONT.js +0 -44
- package/dist/errors-D7u24ZJH.js +0 -321
- package/dist/escape-like-DuKupGUV.d.ts +0 -15
- package/dist/eve-dWNqpd9Z.d.ts +0 -157
- package/dist/event-calendar-E6AI-dgg.d.ts +0 -217
- package/dist/events-DhGgwqQA.d.ts +0 -842
- package/dist/executor-C29668fO.d.ts +0 -281
- package/dist/executor-C5uyGttm.js +0 -207
- package/dist/executor-Cy1nk4MZ.d.ts +0 -104
- package/dist/executor-DK2F9Zis.js +0 -746
- package/dist/executor-DXfgDsKd.d.ts +0 -37
- package/dist/executor-D_viYkhf.d.ts +0 -179
- package/dist/executor-QtVn0axs.js +0 -147
- package/dist/expo-sqlite/index.d.ts +0 -61
- package/dist/expo-sqlite/index.js +0 -110
- package/dist/field-errors-CKEqR38q.d.ts +0 -119
- package/dist/field-errors-DZVRWRkf.js +0 -13
- package/dist/field-formats-BX2FqLle.d.ts +0 -39
- package/dist/filter-evaluate-CRDXv0Dl.js +0 -217
- package/dist/filter-evaluate-CSWhzYWN.d.ts +0 -37
- package/dist/filter-query-C7qgRYYv.d.ts +0 -133
- package/dist/filter-query-D4ZSwbcJ.js +0 -524
- package/dist/flags-C--SBMT9.js +0 -279
- package/dist/flags-CJFDNAvL.d.ts +0 -246
- package/dist/form-definition-BjeElHsB.js +0 -311
- package/dist/form-definition-DcVnFzl4.d.ts +0 -95
- package/dist/format-AYHceC2m.d.ts +0 -79
- package/dist/framework-BpEnOfAo.js +0 -57
- package/dist/framework-CMeAuJts.d.ts +0 -41
- package/dist/function-contract-4vfi93Y5.d.ts +0 -27
- package/dist/gateway-Dar9C0uP.d.ts +0 -115
- package/dist/graph-B4eubUQG.js +0 -365
- package/dist/groups-CxonH3u5.js +0 -16
- package/dist/http-AkLjqOuB.js +0 -28
- package/dist/impersonation-DFfDVJHk.js +0 -62
- package/dist/inbox-CLsIrPXs.d.ts +0 -417
- package/dist/index-B5XcM3VY.d.ts +0 -230
- package/dist/index-B5dVVZtW.d.ts +0 -142
- package/dist/index-Brm8I8iZ.d.ts +0 -232
- package/dist/index-C7-2ZS9f.d.ts +0 -127
- package/dist/index-CE0p3st5.d.ts +0 -227
- package/dist/index-CcpGT2GI.d.ts +0 -151
- package/dist/index-CrAKHNJF.d.ts +0 -287
- package/dist/index-DLjs7j_z.d.ts +0 -61
- package/dist/index-DdZcWH6q.d.ts +0 -820
- package/dist/index-Dh5ZFCtu.d.ts +0 -61
- package/dist/index-PADpaDku.d.ts +0 -447
- package/dist/index-eoAU_QaY.d.ts +0 -357
- package/dist/invalidate-BLiBFbLy.d.ts +0 -19
- package/dist/json-schema-Bu4YCRbZ.js +0 -551
- package/dist/jwks-cache-DbgNmSgV.js +0 -49
- package/dist/kit-BeXTrlZn.js +0 -127
- package/dist/kit-LeQGMzLH.d.ts +0 -94
- package/dist/knowledge-Bx_qehoZ.js +0 -272
- package/dist/knowledge-CYdNJasZ.d.ts +0 -202
- package/dist/list-query-CuS1w2Af.js +0 -559
- package/dist/list-query-Dx5cAqG6.d.ts +0 -223
- package/dist/live-CZtRMh62.js +0 -246
- package/dist/messages-Bd5-5ZjP.js +0 -492
- package/dist/methods-7u6vSgz_.js +0 -11
- package/dist/mfa-Dt8AdWht.d.ts +0 -36
- package/dist/model-Btl8X9cs.d.ts +0 -326
- package/dist/model-messages-BWyXXA4s.js +0 -206
- package/dist/money-codec-BdnIiFFX.js +0 -41
- package/dist/onboarding-DjXV4rgO.js +0 -68
- package/dist/openapi/index.d.ts +0 -4
- package/dist/openapi/index.js +0 -36
- package/dist/operations-Cc27HkTG.d.ts +0 -6
- package/dist/options-B7EJaOX-.js +0 -5
- package/dist/options-BAW2ZlZ8.js +0 -8
- package/dist/options-Blg8lAkz.js +0 -9
- package/dist/options-Bn4cu0gt.js +0 -5
- package/dist/options-BnoJOwXK.js +0 -8
- package/dist/options-C1HR4UZd.js +0 -13
- package/dist/options-C2HesT4A.js +0 -9
- package/dist/options-C3EzJATk.js +0 -10
- package/dist/options-C3hZ1fbC.js +0 -10
- package/dist/options-CAzVf-1T.js +0 -8
- package/dist/options-CGKSUFUq.js +0 -5
- package/dist/options-CGjGE8xS.js +0 -12
- package/dist/options-CIf3xni7.d.ts +0 -52
- package/dist/options-CUqQ9pm7.js +0 -9
- package/dist/options-ChD15QxJ.js +0 -9
- package/dist/options-CyD7OObW.js +0 -17
- package/dist/options-D1blDihM.js +0 -9
- package/dist/options-D2Gd6VfS.js +0 -8
- package/dist/options-D7f2VKzj.js +0 -25
- package/dist/options-DXqcJyOP.js +0 -10
- package/dist/options-Dh4wu9Ks.js +0 -15
- package/dist/options-Dmg1Da9P.js +0 -25
- package/dist/options-DsUgamiy.js +0 -5
- package/dist/options-HSv8R6h5.js +0 -13
- package/dist/options-I8zVkB_y.js +0 -8
- package/dist/options-MHhjOoWz.js +0 -5
- package/dist/options-MLxMkd5B.js +0 -11
- package/dist/options-OJ5zmgr8.js +0 -10
- package/dist/options-QKP9FFcK.js +0 -8
- package/dist/options-XgfTctbI.js +0 -5
- package/dist/options-_9arpsX9.js +0 -11
- package/dist/options-kLKILdIu.js +0 -10
- package/dist/options-n22NK3PL.js +0 -8
- package/dist/options-qU8vgxhO.js +0 -18
- package/dist/options-vXMBEWSH.js +0 -5
- package/dist/options-wFnK3qWl.js +0 -9
- package/dist/options-xVAy3UsV.js +0 -9
- package/dist/organizations-R98kfFwF.js +0 -401
- package/dist/outbox-Bsk-HJnq.d.ts +0 -199
- package/dist/overlay/index.d.ts +0 -249
- package/dist/overlay/index.js +0 -561
- package/dist/payments-6uuergov.js +0 -16
- package/dist/plugin-D9bYbYli.js +0 -45
- package/dist/plugin-DouW0Kvg.d.ts +0 -203
- package/dist/plugins/actor/index.d.ts +0 -19
- package/dist/plugins/actor/index.js +0 -57
- package/dist/plugins/rules/index.d.ts +0 -96
- package/dist/plugins/rules/index.js +0 -235
- package/dist/plugins/soft-delete/index.d.ts +0 -39
- package/dist/plugins/soft-delete/index.js +0 -90
- package/dist/plugins/tenant/index.d.ts +0 -60
- package/dist/plugins/tenant/index.js +0 -119
- package/dist/plugins/timestamps/index.d.ts +0 -11
- package/dist/plugins/timestamps/index.js +0 -47
- package/dist/plugins/validation/index.d.ts +0 -24
- package/dist/plugins/validation/index.js +0 -83
- package/dist/pool-Bu8zXGzI.d.ts +0 -123
- package/dist/pool-errors-DOZ3oDeS.js +0 -27
- package/dist/ports-BltcWsHf.d.ts +0 -312
- package/dist/ports-CM3aG3zn.js +0 -137
- package/dist/ports-n3ZWSS_I.d.ts +0 -89
- package/dist/postgrest-DGjrW4sK.d.ts +0 -53
- package/dist/powersync/react/index.d.ts +0 -93
- package/dist/powersync/react/index.js +0 -120
- package/dist/preset-HNFqCWaD.js +0 -838
- package/dist/problem-D0KDiYPk.js +0 -162
- package/dist/problem-D_DEBfMn.d.ts +0 -79
- package/dist/provider-BhIkKBOh.js +0 -57
- package/dist/provider-Dmsbl8ug.d.ts +0 -112
- package/dist/push-token-8lvtOEv4.d.ts +0 -24
- package/dist/query-DgPYlU82.js +0 -311
- package/dist/rank-result-C6vsw27N.js +0 -18
- package/dist/rank-result-DHflCNwo.d.ts +0 -14
- package/dist/rate-limit-B7N1ZGl6.d.ts +0 -50
- package/dist/rate-limit-CXpPm4_l.js +0 -49
- package/dist/rate-limit-CpTD_WHm.js +0 -328
- package/dist/react-controller-CKSdtJ10.js +0 -43
- package/dist/react-env-CodKZgPk.js +0 -16
- package/dist/react-uvu_KcVY.js +0 -599
- package/dist/read-set-DP6fm21F.js +0 -316
- package/dist/refusal-BEyNVFy7.d.ts +0 -32
- package/dist/refusal-Ce2p81VW.js +0 -64
- package/dist/replicas-BvIL4_jL.js +0 -94
- package/dist/resolve-D57oDWNr.d.ts +0 -289
- package/dist/resolve-sy3_Gz0i.js +0 -892
- package/dist/resource-BRRU-A7j.js +0 -91
- package/dist/resource-BVvIiuX_.js +0 -469
- package/dist/resource-DxQOPkZ5.d.ts +0 -115
- package/dist/resource-execute-BbjuiXwD.d.ts +0 -15
- package/dist/resource-types-NXau9LJE.d.ts +0 -153
- package/dist/resources-CIi7sw1T.js +0 -64
- package/dist/resources-CZ60Vqwq.d.ts +0 -7
- package/dist/respond-DjEmE_DN.js +0 -100
- package/dist/respond-QW-f1yio.d.ts +0 -101
- package/dist/result-DIT_qp4G.js +0 -146
- package/dist/result-mijqfoJN.d.ts +0 -346
- package/dist/rrule-CesB9Rxd.js +0 -290
- package/dist/rules-D75V7dAE.js +0 -286
- package/dist/run-state-CPo-1X2B.d.ts +0 -12
- package/dist/sales-lines-9HsX89aO.d.ts +0 -28
- package/dist/sales-lines-DgXeOEar.js +0 -41
- package/dist/sales-shared-CjXsy0NJ.js +0 -22
- package/dist/sales-shared-DAAGwQwN.d.ts +0 -8
- package/dist/search-9hoZ8rN1.js +0 -106
- package/dist/server-types-D_cQ6OxZ.d.ts +0 -809
- package/dist/session-DNRYXIOU.d.ts +0 -97
- package/dist/settings-DzQtMwfl.js +0 -93
- package/dist/shared-C80IHf4B.js +0 -60
- package/dist/shared-D11SWNLx.js +0 -17
- package/dist/sign-in-B_QJ2u62.js +0 -386
- package/dist/signatures-CzqfLlfV.d.ts +0 -43
- package/dist/signatures-D8IoN3Rw.js +0 -145
- package/dist/signers-BuVQKDfK.d.ts +0 -390
- package/dist/signing-keys-i2Rsll6L.d.ts +0 -119
- package/dist/solid-controller-7TxGaJNy.js +0 -33
- package/dist/solid-controller-BnF3ovwV.d.ts +0 -11
- package/dist/spec-pins-CZ2CL8YZ.d.ts +0 -120
- package/dist/spec-pins-D3Tm6HJi.js +0 -60
- package/dist/sql-CQIikLnQ.js +0 -421
- package/dist/sql-frpIs51D.js +0 -89308
- package/dist/sso-C86TPpZr.js +0 -217
- package/dist/sso-D_am-gBz.d.ts +0 -161
- package/dist/standard-16AIDny5.d.ts +0 -7
- package/dist/standard-l10kE0yS.js +0 -25
- package/dist/stats-Bt1RyT-F.js +0 -1147
- package/dist/store-DKqbuNvw.d.ts +0 -83
- package/dist/stripe-BSEwKCni.d.ts +0 -140
- package/dist/subject-readers-BJzh7WF7.js +0 -49
- package/dist/subject-readers-Bbq1i0Ol.d.ts +0 -21
- package/dist/subjects-DQ2SU4cA.d.ts +0 -77
- package/dist/support-CWVTM2AB.js +0 -534
- package/dist/support-view-BOJJSZKv.d.ts +0 -17
- package/dist/svelte-controller-BmRhHvFz.js +0 -50
- package/dist/svelte-controller-DXO7gsmS.d.ts +0 -13
- package/dist/table-schema-xqSXrjCN.js +0 -284
- package/dist/tags-C_ym1yDM.js +0 -39
- package/dist/tags-Co-QIHeK.js +0 -84
- package/dist/tags-tbiuHHMV.d.ts +0 -30
- package/dist/tanstack-db/supabase/index.d.ts +0 -66
- package/dist/tanstack-db/supabase/index.js +0 -271
- package/dist/tax-BHSCb5Rw.d.ts +0 -280
- package/dist/tax-keSd-q_1.js +0 -140
- package/dist/tee-1fsH3bEz.js +0 -101
- package/dist/template-DXsGm_R0.js +0 -126
- package/dist/temporal-required-Dt4mcPsi.js +0 -20
- package/dist/tenant-DnMqeNIM.js +0 -27
- package/dist/tenant-l3H2ouv7.d.ts +0 -17
- package/dist/tenant-naming-Bsj3Uvap.js +0 -27
- package/dist/timing-C5NzaEgy.js +0 -95
- package/dist/topic-CZvLXFND.d.ts +0 -415
- package/dist/topic-Cr01EHZy.js +0 -643
- package/dist/types-BTK75521.js +0 -8
- package/dist/types-Bzm0OgJk.d.ts +0 -177
- package/dist/types-CB5MvzuE.d.ts +0 -624
- package/dist/types-DYXhFhmQ.d.ts +0 -251
- package/dist/types-DmshMaXz.d.ts +0 -421
- package/dist/types-EUrisY2U.d.ts +0 -217
- package/dist/types-vVsLvOUJ.d.ts +0 -700
- package/dist/undo-CClrTbm9.d.ts +0 -46
- package/dist/undo-HHonvNeg.js +0 -44
- package/dist/upload-claim-DCuklVyh.js +0 -33
- package/dist/usage-BFwuH7GK.d.ts +0 -232
- package/dist/usage-CJmmCGzd.js +0 -264
- package/dist/user-change-CSR_prhd.js +0 -133
- package/dist/variants-Bat9zU8l.js +0 -53
- package/dist/vault-BQThkbws.d.ts +0 -62
- package/dist/verify-BCmBaHlN.js +0 -130
- package/dist/verify-BTAEsJbF.d.ts +0 -146
- package/dist/view-CKzCp8FW.d.ts +0 -90
- package/dist/view-CfUd5vI9.js +0 -108
- package/dist/vue-controller-DCOtUOA_.d.ts +0 -11
- package/dist/vue-controller-EzyTjqca.js +0 -32
- package/dist/watch-CYeMXFtj.d.ts +0 -92
- package/dist/watch-Cnd6XDnU.js +0 -139
- package/dist/watch-topic-CloXeDTO.d.ts +0 -31
- package/dist/wire-BJhepFbv.js +0 -66
- package/dist/workflow-builder-DzZNlI45.js +0 -699
- package/dist/workflow-sdk-BXwl1THQ.d.ts +0 -163
- package/dist/workflow-sdk-CPGiFE1B.js +0 -242
- package/dist/workflow-sdk-world-BOEsvWmx.js +0 -2123
- package/dist/workflows-BHyYAR6c.d.ts +0 -258
- package/dist/workflows-otOMN33L.js +0 -285
- package/skills/better-supabase/references/plugins.md +0 -71
package/dist/testing/index.js
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import { t as DbException } from "../db-exception-
|
|
2
|
-
import { n as dbError } from "../errors-
|
|
3
|
-
import { d as temporalText } from "../temporal-DLZlWbOi.js";
|
|
4
|
-
import { t as temporal } from "../temporal-required-Dt4mcPsi.js";
|
|
5
|
-
import { a as ok } from "../result-DIT_qp4G.js";
|
|
6
|
-
import { t as BetterSupabase } from "../define-DwZ_LQVO.js";
|
|
1
|
+
import { t as DbException } from "../db-exception-Lngc1W49.js";
|
|
2
|
+
import { n as dbError } from "../errors-BVFgt8BZ.js";
|
|
7
3
|
import { t as isList } from "../guards-6F2bCtQR.js";
|
|
4
|
+
import { d as temporalText } from "../temporal-DLZlWbOi.js";
|
|
5
|
+
import { t as temporal } from "../temporal-required-Dy0GGD8E.js";
|
|
6
|
+
import { a as ok } from "../result-ntFBW2p2.js";
|
|
7
|
+
import { t as BetterSupabase } from "../define-DlUeKHce.js";
|
|
8
8
|
import { a as toBase64Url, r as fromBase64, t as base64ToText } from "../base64-B9Wlsdj7.js";
|
|
9
|
-
import {
|
|
10
|
-
import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-
|
|
9
|
+
import { c as resolveConfig } from "../config-DWGgUQCh.js";
|
|
10
|
+
import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-B-MkVARa.js";
|
|
11
|
+
import { r as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-zRcc2TeZ.js";
|
|
11
12
|
import { i as seedLite, n as loadLite, r as migrateLite, t as LITE_INSTALL } from "../runtime-CoKxZibd.js";
|
|
12
13
|
import { ENV_VARIABLES } from "../env/index.js";
|
|
13
14
|
import { t as defineController } from "../controller-BEliOBOv.js";
|
|
14
|
-
import "../
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { n as parseDbStats } from "../timing-
|
|
15
|
+
import { t as onBlockEvent } from "../block-event-listener-Bu6G0TFH.js";
|
|
16
|
+
import { V as rawError } from "../block-helpers-CtBdjgO4.js";
|
|
17
|
+
import "../replicas-Dyoh3CEg.js";
|
|
18
|
+
import { i as defineAuthorizer, r as checkPermission, s as requestOf } from "../authorizer-BGhXaDmo.js";
|
|
19
|
+
import { a as tenantCredentialRef } from "../provider-B6g7rBZX.js";
|
|
20
|
+
import { t as postgresExecutor } from "../executor-3qcMhg6R.js";
|
|
21
|
+
import { n as parseDbStats } from "../timing-dypS0nxW.js";
|
|
22
|
+
import { r as subjectKey } from "../block-subjects-BhDKK_j7.js";
|
|
21
23
|
import { t as organizationsEvents } from "../events-SqJLbb8q.js";
|
|
22
24
|
import { t as mailHeaders } from "../delivery-Bm0jxmzI.js";
|
|
23
25
|
import { toCloudEvents } from "../events/index.js";
|
|
24
|
-
import { d as money, l as isRate } from "../money-BZl985O-.js";
|
|
25
|
-
import { t as SHIPPING_LINE } from "../tax-
|
|
26
|
-
import { t as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
26
|
+
import { c as isMoney, d as money, l as isRate } from "../money-BZl985O-.js";
|
|
27
|
+
import { t as SHIPPING_LINE } from "../tax-BkCNWWMc.js";
|
|
28
|
+
import { t as trashExtension } from "../extension-DzCc0IOd.js";
|
|
29
|
+
import { t as membershipsExtension } from "../extension-DeAd_MqI.js";
|
|
30
|
+
import { t as createdByExtension } from "../extension-B-lajjex.js";
|
|
31
|
+
import { t as updatedAtExtension } from "../extension-B0EjCYhO.js";
|
|
32
|
+
import { t as buildApiModel } from "../build-QitPVzzO.js";
|
|
31
33
|
import { createClient } from "@supabase/supabase-js";
|
|
32
34
|
import { existsSync } from "node:fs";
|
|
33
35
|
import { readFile } from "node:fs/promises";
|
|
@@ -175,13 +177,13 @@ async function findSigningKeys(from) {
|
|
|
175
177
|
const isSigningKey = (value) => typeof value === "object" && value !== null && "kid" in value && typeof value.kid === "string" && "d" in value && typeof value.d === "string";
|
|
176
178
|
/**
|
|
177
179
|
* The key the local stack signs with: the first entry of the file
|
|
178
|
-
* `better-supabase keys` wrote. `path` defaults to
|
|
180
|
+
* `better-supabase dev keys` wrote. `path` defaults to
|
|
179
181
|
* `$SUPABASE_SIGNING_KEYS_PATH`, then `signing_keys_path` from the nearest
|
|
180
182
|
* `supabase/config.toml`.
|
|
181
183
|
*/
|
|
182
184
|
async function localSigningKey(path) {
|
|
183
185
|
const file = path ?? process.env["SUPABASE_SIGNING_KEYS_PATH"] ?? await findSigningKeys(process.cwd());
|
|
184
|
-
if (!file || !existsSync(file)) throw new TypeError("No local signing key. Run `better-supabase keys`, set `signing_keys_path` in supabase/config.toml and restart the stack, or pass { alg: \"HS256\" } to sign with the local JWT secret.");
|
|
186
|
+
if (!file || !existsSync(file)) throw new TypeError("No local signing key. Run `better-supabase dev keys`, set `signing_keys_path` in supabase/config.toml and restart the stack, or pass { alg: \"HS256\" } to sign with the local JWT secret.");
|
|
185
187
|
const keys = JSON.parse(await readFile(file, "utf-8"));
|
|
186
188
|
const first = Array.isArray(keys) ? keys[0] : void 0;
|
|
187
189
|
if (!isSigningKey(first)) throw new TypeError(`${file} has no private ES256 key first.`);
|
|
@@ -224,7 +226,7 @@ async function signFor(stack, url, claims) {
|
|
|
224
226
|
switch (alg) {
|
|
225
227
|
case "ES256": return signTestJwtWithKey(stack.signingKey ?? await localSigningKey(stack.signingKeysPath), claims);
|
|
226
228
|
case "HS256":
|
|
227
|
-
if (!LOCAL_HOSTS.has(new URL(url).hostname)) throw new TypeError(`asUser signs HS256 tokens only for a local stack, not ${url}. Use the ES256 key from \`better-supabase keys\`.`);
|
|
229
|
+
if (!LOCAL_HOSTS.has(new URL(url).hostname)) throw new TypeError(`asUser signs HS256 tokens only for a local stack, not ${url}. Use the ES256 key from \`better-supabase dev keys\`.`);
|
|
228
230
|
return signTestJwt(stack.jwtSecret ?? env$2("SUPABASE_JWT_SECRET") ?? "super-secret-jwt-token-with-at-least-32-characters-long", claims);
|
|
229
231
|
default: throw new TypeError(`asUser: unknown alg "${String(alg)}"`);
|
|
230
232
|
}
|
|
@@ -232,8 +234,8 @@ async function signFor(stack, url, claims) {
|
|
|
232
234
|
/**
|
|
233
235
|
* A test user against the local stack: a signed token and repositories that run
|
|
234
236
|
* as that user, for live RLS tests. The token is ES256-signed with the key from
|
|
235
|
-
* `better-supabase keys`; pass `{ alg: 'HS256' }` for a stack that still
|
|
236
|
-
* the shared JWT secret.
|
|
237
|
+
* `better-supabase dev keys`; pass `{ alg: 'HS256' }` for a stack that still
|
|
238
|
+
* uses the shared JWT secret.
|
|
237
239
|
*
|
|
238
240
|
* ```ts
|
|
239
241
|
* const alice = await asUser(betterSupabase, {
|
|
@@ -246,7 +248,7 @@ async function signFor(stack, url, claims) {
|
|
|
246
248
|
async function asUser(betterSupabase, claims, stack = {}) {
|
|
247
249
|
const url = stack.url ?? env$2(...ENV_VARIABLES.url) ?? "http://127.0.0.1:54321";
|
|
248
250
|
const publishableKey = stack.publishableKey ?? env$2(...ENV_VARIABLES.publishableKey, "SUPABASE_ANON_KEY");
|
|
249
|
-
if (!publishableKey) throw new TypeError("asUser needs publishableKey or $SUPABASE_PUBLISHABLE_KEY. Run `better-supabase env` to write it to .env.local.");
|
|
251
|
+
if (!publishableKey) throw new TypeError("asUser needs publishableKey or $SUPABASE_PUBLISHABLE_KEY. Run `better-supabase dev env` to write it to .env.local.");
|
|
250
252
|
const token = await signFor(stack, url, claims);
|
|
251
253
|
const full = {
|
|
252
254
|
role: "authenticated",
|
|
@@ -395,7 +397,7 @@ function settle(promise, ms) {
|
|
|
395
397
|
});
|
|
396
398
|
}
|
|
397
399
|
function expectResponseBudget(response, expectation) {
|
|
398
|
-
const header = expectation.header ?? "x-
|
|
400
|
+
const header = expectation.header ?? "x-bsb-db-calls";
|
|
399
401
|
const stats = parseDbStats(response.headers.get(header));
|
|
400
402
|
if (!stats) throw new Error(`expectDbBudget: the response has no ${header} header. Add withDbStats() to the entries.`);
|
|
401
403
|
if (expectation.maxCalls !== void 0 && stats.calls > expectation.maxCalls || expectation.maxWaves !== void 0 && stats.waves > expectation.maxWaves) throw new Error(`expectDbBudget: ${stats.calls} calls in ${stats.waves} waves, over the budget of ${expectation.maxCalls ?? "∞"} calls and ${expectation.maxWaves ?? "∞"} waves`);
|
|
@@ -410,8 +412,8 @@ async function expectPageBudget(page, expectation) {
|
|
|
410
412
|
let lastSeen = 0;
|
|
411
413
|
const listener = (response) => {
|
|
412
414
|
const headers = response.headers();
|
|
413
|
-
const id = headers["x-
|
|
414
|
-
const stats = headers["x-
|
|
415
|
+
const id = headers["x-bsb-request-id"];
|
|
416
|
+
const stats = headers["x-bsb-stats"];
|
|
415
417
|
if (!id || !stats || !expectation.prefetches && isPrefetch(response)) return;
|
|
416
418
|
lastSeen = Date.now();
|
|
417
419
|
seen.push({
|
|
@@ -456,7 +458,7 @@ async function expectPageBudget(page, expectation) {
|
|
|
456
458
|
}
|
|
457
459
|
if (seen.length === 0) {
|
|
458
460
|
if (expectation.requireRequest === false) return [];
|
|
459
|
-
throw new Error("expectDbBudget: no response carried x-
|
|
461
|
+
throw new Error("expectDbBudget: no response carried x-bsb-request-id. Enable createNext(betterSupabase, { debug: { enabled: true } }) and run the proxy.");
|
|
460
462
|
}
|
|
461
463
|
await Promise.all(seen.map(({ response }) => settle(ended(response), timeoutMs)));
|
|
462
464
|
} finally {
|
|
@@ -465,7 +467,7 @@ async function expectPageBudget(page, expectation) {
|
|
|
465
467
|
const renders = [];
|
|
466
468
|
for (const { response, id, url } of seen) {
|
|
467
469
|
const reply = await page.request.get(url);
|
|
468
|
-
if (!reply.ok()) throw new Error(`expectDbBudget: ${url} answered ${reply.status()}. Mount
|
|
470
|
+
if (!reply.ok()) throw new Error(`expectDbBudget: ${url} answered ${reply.status()}. Mount bsb.debugRoute() at that path.`);
|
|
469
471
|
renders.push({
|
|
470
472
|
url: response.url(),
|
|
471
473
|
requestId: id,
|
|
@@ -613,7 +615,7 @@ function statementsOf(meta, fixtures, label) {
|
|
|
613
615
|
}
|
|
614
616
|
/**
|
|
615
617
|
* Typed fixtures shared by `supabase/seeds` and your tests. Rows use app casing
|
|
616
|
-
* and Insert types; `better-supabase seed` renders them to SQL.
|
|
618
|
+
* and Insert types; `better-supabase db seed` renders them to SQL.
|
|
617
619
|
*
|
|
618
620
|
* ```ts
|
|
619
621
|
* export const seed = defineSeed(betterSupabase, {
|
|
@@ -639,9 +641,9 @@ function isTenantSeed(value) {
|
|
|
639
641
|
return typeof value === "object" && value !== null && TENANT_SEED in value;
|
|
640
642
|
}
|
|
641
643
|
/**
|
|
642
|
-
* Fixtures for one tenant, built from its id. `better-supabase seed
|
|
643
|
-
* applies them to existing tenants, and `seedTenantOnCreate` to each
|
|
644
|
-
* created in development.
|
|
644
|
+
* Fixtures for one tenant, built from its id. `better-supabase db seed
|
|
645
|
+
* --tenant` applies them to existing tenants, and `seedTenantOnCreate` to each
|
|
646
|
+
* tenant created in development.
|
|
645
647
|
*
|
|
646
648
|
* ```ts
|
|
647
649
|
* export const seed = defineTenantSeed(betterSupabase, (tenant) => ({
|
|
@@ -725,7 +727,7 @@ async function scopedSeed(betterSupabase, build, options = {}) {
|
|
|
725
727
|
const created = result.data;
|
|
726
728
|
if (meta && meta.primaryKey.length > 0) {
|
|
727
729
|
const where = Object.fromEntries(meta.primaryKey.map((column) => [column, created[column]]));
|
|
728
|
-
cleanup.push(() => repository.
|
|
730
|
+
cleanup.push(() => repository.delete({ where }));
|
|
729
731
|
}
|
|
730
732
|
return created;
|
|
731
733
|
};
|
|
@@ -820,6 +822,57 @@ async function rolledBack(postgres, claims, fn) {
|
|
|
820
822
|
return outcome.value;
|
|
821
823
|
}
|
|
822
824
|
//#endregion
|
|
825
|
+
//#region src/testing/factory.ts
|
|
826
|
+
function isRow(value) {
|
|
827
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* A factory from the defaults of call `n` and the foreign keys it resolves,
|
|
831
|
+
* each mapped to the column it references in the parent row. `factories()`
|
|
832
|
+
* generates one per table:
|
|
833
|
+
*
|
|
834
|
+
* ```ts
|
|
835
|
+
* const tasks = defineFactory<
|
|
836
|
+
* InsertOf<"tasks">,
|
|
837
|
+
* "customerId",
|
|
838
|
+
* "customerId"
|
|
839
|
+
* >((n) => ({ title: `title ${n}` }), { customerId: "id" });
|
|
840
|
+
* tasks({ customerId: acme });
|
|
841
|
+
* ```
|
|
842
|
+
*/
|
|
843
|
+
function defineFactory(defaults, refs) {
|
|
844
|
+
const columns = refs;
|
|
845
|
+
let calls = 0;
|
|
846
|
+
const build = (input = {}) => {
|
|
847
|
+
calls += 1;
|
|
848
|
+
const row = { ...defaults(calls) };
|
|
849
|
+
for (const [key, value] of Object.entries(input)) {
|
|
850
|
+
const column = columns[key];
|
|
851
|
+
row[key] = column !== void 0 && isRow(value) ? value[column] : value;
|
|
852
|
+
}
|
|
853
|
+
return row;
|
|
854
|
+
};
|
|
855
|
+
const factory = (...args) => build(args[0]);
|
|
856
|
+
return Object.assign(factory, {
|
|
857
|
+
many: (count, ...args) => Array.from({ length: count }, () => build(args[0])),
|
|
858
|
+
create: (repository, ...args) => repository.create(build(args[0]))
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
/** A storage path in bucket `B` for a factory default. */
|
|
862
|
+
function factoryPath(_bucket, path) {
|
|
863
|
+
return path;
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* The fixed times the generated factories use (2026-01-01), read through the
|
|
867
|
+
* Temporal the app provides.
|
|
868
|
+
*/
|
|
869
|
+
const factoryTime = {
|
|
870
|
+
instant: () => temporal().Instant.from("2026-01-01T00:00:00Z"),
|
|
871
|
+
plainDate: () => temporal().PlainDate.from("2026-01-01"),
|
|
872
|
+
plainDateTime: () => temporal().PlainDateTime.from("2026-01-01T00:00:00"),
|
|
873
|
+
plainTime: () => temporal().PlainTime.from("00:00:00")
|
|
874
|
+
};
|
|
875
|
+
//#endregion
|
|
823
876
|
//#region src/testing/conformance.ts
|
|
824
877
|
/**
|
|
825
878
|
* Thrown by a conformance kit when any check fails. Lists every failure, not
|
|
@@ -896,8 +949,9 @@ function env(names) {
|
|
|
896
949
|
* Checks row-level security between two tenants against a running stack: for
|
|
897
950
|
* each table, a user of one tenant must not select, insert, update or delete
|
|
898
951
|
* the other tenant's rows. Runs without `betterSupabase`'s plugins, so the
|
|
899
|
-
* `
|
|
900
|
-
* naming each table and command that leaks; removes every
|
|
952
|
+
* `membershipsExtension()` plugin can't hide a missing policy. Throws a
|
|
953
|
+
* `ConformanceError` naming each table and command that leaks; removes every
|
|
954
|
+
* row it created.
|
|
901
955
|
*
|
|
902
956
|
* ```ts
|
|
903
957
|
* await expectTenantIsolation(betterSupabase, {
|
|
@@ -942,7 +996,7 @@ async function expectTenantIsolation(betterSupabase, options) {
|
|
|
942
996
|
for (const tenant of tenants) {
|
|
943
997
|
const [row] = await rowsOf(admin[key].create(spec.row(tenant, 0)));
|
|
944
998
|
const where = keyOf(table, row);
|
|
945
|
-
cleanup.push(() => admin[key].
|
|
999
|
+
cleanup.push(() => admin[key].delete({ where }));
|
|
946
1000
|
seeded.push(row);
|
|
947
1001
|
}
|
|
948
1002
|
for (const [self, other] of [[0, 1], [1, 0]]) {
|
|
@@ -951,17 +1005,17 @@ async function expectTenantIsolation(betterSupabase, options) {
|
|
|
951
1005
|
const whose = `${label(tenants[other])}'s`;
|
|
952
1006
|
const own = keyOf(table, seeded[self]);
|
|
953
1007
|
const target = keyOf(table, seeded[other]);
|
|
954
|
-
const current = async () => (await rowsOf(admin[key].
|
|
1008
|
+
const current = async () => (await rowsOf(admin[key].list({ where: target })))[0];
|
|
955
1009
|
reads.push([`${key}: ${who} reads its own row`, async () => {
|
|
956
|
-
expect((await rowsOf(user.
|
|
1010
|
+
expect((await rowsOf(user.list({ where: own }))).length === 1, `${who} can't read its own row, so the other checks prove nothing; check its claims and memberships`);
|
|
957
1011
|
}], [`${key}: ${who} can't select ${whose} rows`, async () => {
|
|
958
|
-
expect((await rowsOf(user.
|
|
1012
|
+
expect((await rowsOf(user.list({ where: target }))).length === 0, `select returned ${whose} row`);
|
|
959
1013
|
}], [`${key}: ${who} can't insert ${whose} rows`, async () => {
|
|
960
1014
|
const row = spec.row(tenants[other], 1);
|
|
961
1015
|
const result = await user.create(row, { returning: false });
|
|
962
1016
|
if (result.ok) {
|
|
963
1017
|
const where = Object.fromEntries(Object.entries(row).filter(([, value]) => scalar(value)));
|
|
964
|
-
cleanup.push(() => admin[key].
|
|
1018
|
+
cleanup.push(() => admin[key].delete({ where }));
|
|
965
1019
|
}
|
|
966
1020
|
expect(!result.ok, `insert of a row for ${whose} tenant succeeded`);
|
|
967
1021
|
expect(result.error.kind === "forbidden", `insert failed with ${result.error.kind} (${result.error.message}), not an RLS error; check the row factory`);
|
|
@@ -969,16 +1023,12 @@ async function expectTenantIsolation(betterSupabase, options) {
|
|
|
969
1023
|
const before = await current();
|
|
970
1024
|
const patch = spec.update;
|
|
971
1025
|
expect(Object.entries(patch).some(([column, value]) => before?.[column] !== value), "update must change the row to detect a leak");
|
|
972
|
-
await user.
|
|
973
|
-
where: target,
|
|
974
|
-
data: patch,
|
|
975
|
-
returning: false
|
|
976
|
-
});
|
|
1026
|
+
await user.update({ where: target }, patch, { returning: false });
|
|
977
1027
|
const after = await current();
|
|
978
1028
|
expect(Object.entries(patch).every(([column]) => after?.[column] === before?.[column]), `update changed ${whose} row`);
|
|
979
1029
|
}]);
|
|
980
1030
|
deletes.push([`${key}: ${who} can't delete ${whose} rows`, async () => {
|
|
981
|
-
await user.
|
|
1031
|
+
await user.delete({ where: target });
|
|
982
1032
|
expect(await current() !== void 0, `delete removed ${whose} row`);
|
|
983
1033
|
}]);
|
|
984
1034
|
}
|
|
@@ -1342,7 +1392,7 @@ const hasName = (subject) => ["has a name", () => {
|
|
|
1342
1392
|
/**
|
|
1343
1393
|
* Proves an `Executor` meets the contract: rows keyed by the selection's
|
|
1344
1394
|
* aliases, counts, `aborted` errors, failures returned as `Result`s rather than
|
|
1345
|
-
* thrown, and (with `create`) a write round trip and a `
|
|
1395
|
+
* thrown, and (with `create`) a write round trip and a `delete({ where })` that
|
|
1346
1396
|
* `maxAffected` refuses without deleting anything.
|
|
1347
1397
|
*
|
|
1348
1398
|
* ```ts
|
|
@@ -1358,7 +1408,7 @@ function testExecutor(executor, options) {
|
|
|
1358
1408
|
const { betterSupabase } = options;
|
|
1359
1409
|
const table = tableKey(betterSupabase, options.table);
|
|
1360
1410
|
const context = { errorMappers: [] };
|
|
1361
|
-
const read = () => captureOp(betterSupabase, (db) => db[table]["
|
|
1411
|
+
const read = () => captureOp(betterSupabase, (db) => db[table]["list"]({ limit: 2 }));
|
|
1362
1412
|
const create = options.create;
|
|
1363
1413
|
return conform(`Executor "${executor.name}"`, [
|
|
1364
1414
|
hasName(executor),
|
|
@@ -1454,7 +1504,7 @@ function testExecutor(executor, options) {
|
|
|
1454
1504
|
expect(primary, "write checks need a table with a primary key");
|
|
1455
1505
|
const removed = await repository["delete"](row[primary]);
|
|
1456
1506
|
expect(removed.ok, `delete failed: ${JSON.stringify(removed.error)}`);
|
|
1457
|
-
const again = await repository["
|
|
1507
|
+
const again = await repository["get"](row[primary], { optional: true });
|
|
1458
1508
|
expect(again.ok && again.data === null, "the deleted row is still readable");
|
|
1459
1509
|
}],
|
|
1460
1510
|
create && ["refuses a write past maxAffected and writes nothing", async () => {
|
|
@@ -1465,20 +1515,14 @@ function testExecutor(executor, options) {
|
|
|
1465
1515
|
expect(created.ok, `create failed: ${JSON.stringify(created.error)}`);
|
|
1466
1516
|
const id = created.data[primary];
|
|
1467
1517
|
try {
|
|
1468
|
-
const refused = await repository["
|
|
1469
|
-
|
|
1470
|
-
maxAffected: 0
|
|
1471
|
-
});
|
|
1472
|
-
expect(!refused.ok, "deleteMany past maxAffected must fail");
|
|
1518
|
+
const refused = await repository["delete"]({ where: { [primary]: id } }, { maxAffected: 0 });
|
|
1519
|
+
expect(!refused.ok, "a delete past maxAffected must fail");
|
|
1473
1520
|
const kind = refused.error?.kind;
|
|
1474
1521
|
expect(kind === "max_affected", `expected kind "max_affected", got "${String(kind)}"`);
|
|
1475
|
-
const kept = await repository["
|
|
1476
|
-
expect(kept.ok && kept.data !== null, "a refused
|
|
1477
|
-
const allowed = await repository["
|
|
1478
|
-
|
|
1479
|
-
maxAffected: 1
|
|
1480
|
-
});
|
|
1481
|
-
expect(allowed.ok, `deleteMany within maxAffected failed: ${JSON.stringify(allowed.error)}`);
|
|
1522
|
+
const kept = await repository["get"](id, { optional: true });
|
|
1523
|
+
expect(kept.ok && kept.data !== null, "a refused delete must not delete the row");
|
|
1524
|
+
const allowed = await repository["delete"]({ where: { [primary]: id } }, { maxAffected: 1 });
|
|
1525
|
+
expect(allowed.ok, `a delete within maxAffected failed: ${JSON.stringify(allowed.error)}`);
|
|
1482
1526
|
} finally {
|
|
1483
1527
|
await repository["delete"](id);
|
|
1484
1528
|
}
|
|
@@ -1599,7 +1643,7 @@ function testEventSink(sink, options = {}) {
|
|
|
1599
1643
|
}
|
|
1600
1644
|
//#endregion
|
|
1601
1645
|
//#region src/testing/kits/payment-provider.ts
|
|
1602
|
-
const kindOf$
|
|
1646
|
+
const kindOf$3 = (result) => result.ok ? "ok" : result.error.kind;
|
|
1603
1647
|
const half = (value) => ({
|
|
1604
1648
|
amount: value.amount / 2n,
|
|
1605
1649
|
currency: value.currency
|
|
@@ -1639,12 +1683,12 @@ function testPaymentProvider(provider, options = {}) {
|
|
|
1639
1683
|
},
|
|
1640
1684
|
reference: reference()
|
|
1641
1685
|
});
|
|
1642
|
-
expect(kindOf$
|
|
1686
|
+
expect(kindOf$3(zero) === "invalid_input", `zero gave ${kindOf$3(zero)}`);
|
|
1643
1687
|
const plain = await provider.createPayment({
|
|
1644
1688
|
amount: 1e3,
|
|
1645
1689
|
reference: reference()
|
|
1646
1690
|
});
|
|
1647
|
-
expect(kindOf$
|
|
1691
|
+
expect(kindOf$3(plain) === "invalid_input", `a number gave ${kindOf$3(plain)}`);
|
|
1648
1692
|
}],
|
|
1649
1693
|
["creates a payment with its amount, reference and provider", async () => {
|
|
1650
1694
|
const ref = reference();
|
|
@@ -1672,9 +1716,9 @@ function testPaymentProvider(provider, options = {}) {
|
|
|
1672
1716
|
["returns not_found for an unknown payment", async () => {
|
|
1673
1717
|
const id = `conformance_missing_${crypto.randomUUID()}`;
|
|
1674
1718
|
const captured = await provider.capture(id);
|
|
1675
|
-
expect(kindOf$
|
|
1719
|
+
expect(kindOf$3(captured) === "not_found", `capture gave ${kindOf$3(captured)}`);
|
|
1676
1720
|
const refunded = await provider.refund(id);
|
|
1677
|
-
expect(kindOf$
|
|
1721
|
+
expect(kindOf$3(refunded) === "not_found", `refund gave ${kindOf$3(refunded)}`);
|
|
1678
1722
|
}],
|
|
1679
1723
|
provider.get !== void 0 && ["reads a payment back", async () => {
|
|
1680
1724
|
const created = await provider.createPayment({
|
|
@@ -1700,7 +1744,7 @@ function testPaymentProvider(provider, options = {}) {
|
|
|
1700
1744
|
expect(refund.amount.amount === part.amount, `refunded ${String(refund.amount.amount)}`);
|
|
1701
1745
|
expect(refund.status === "succeeded" || refund.status === "pending", `refund status is ${refund.status}`);
|
|
1702
1746
|
const tooMuch = await provider.refund(payment.id, { amount });
|
|
1703
|
-
expect(kindOf$
|
|
1747
|
+
expect(kindOf$3(tooMuch) === "invalid_input", `refunding more than is left gave ${kindOf$3(tooMuch)}`);
|
|
1704
1748
|
}],
|
|
1705
1749
|
provider.cancel !== void 0 && ["cancels a payment that was not captured", async () => {
|
|
1706
1750
|
const created = await provider.createPayment({
|
|
@@ -1724,13 +1768,13 @@ function testPaymentProvider(provider, options = {}) {
|
|
|
1724
1768
|
expect(event.paymentId === payment.id, `an event names payment ${event.paymentId}`);
|
|
1725
1769
|
}
|
|
1726
1770
|
const refused = await provider.parseWebhook(tampered);
|
|
1727
|
-
expect(kindOf$
|
|
1771
|
+
expect(kindOf$3(refused) === "unauthorized", `a tampered delivery gave ${kindOf$3(refused)}`);
|
|
1728
1772
|
}]
|
|
1729
1773
|
]);
|
|
1730
1774
|
}
|
|
1731
1775
|
//#endregion
|
|
1732
1776
|
//#region src/testing/kits/tax-provider.ts
|
|
1733
|
-
const kindOf$
|
|
1777
|
+
const kindOf$2 = (result) => result.ok ? "ok" : result.error.kind;
|
|
1734
1778
|
const sum = (values) => values.reduce((total, value) => total + value.amount, 0n);
|
|
1735
1779
|
/**
|
|
1736
1780
|
* Runs the `TaxProvider` contract against `provider`: the API version, refused
|
|
@@ -1782,12 +1826,12 @@ function testTaxProvider(provider, options) {
|
|
|
1782
1826
|
id: "a",
|
|
1783
1827
|
amount: money(100n, other)
|
|
1784
1828
|
}] }));
|
|
1785
|
-
expect(kindOf$
|
|
1829
|
+
expect(kindOf$2(mixed) === "invalid_input", `mixed currencies gave ${kindOf$2(mixed)}`);
|
|
1786
1830
|
const nowhere = await provider.quote(cart({ address: {
|
|
1787
1831
|
...address,
|
|
1788
1832
|
country: ""
|
|
1789
1833
|
} }));
|
|
1790
|
-
expect(kindOf$
|
|
1834
|
+
expect(kindOf$2(nowhere) === "invalid_input", `no country gave ${kindOf$2(nowhere)}`);
|
|
1791
1835
|
}],
|
|
1792
1836
|
["quotes one line per cart line, in order, with a total that adds up", async () => {
|
|
1793
1837
|
const quote = await provider.quote(cart()).orThrow();
|
|
@@ -1853,7 +1897,7 @@ function testTaxProvider(provider, options) {
|
|
|
1853
1897
|
amount: money(sold.taxable.amount + 1n, currency)
|
|
1854
1898
|
}]
|
|
1855
1899
|
});
|
|
1856
|
-
expect(kindOf$
|
|
1900
|
+
expect(kindOf$2(tooMuch) === "invalid_input", `reversing more than was sold gave ${kindOf$2(tooMuch)}`);
|
|
1857
1901
|
const unknown = await provider.reverse({
|
|
1858
1902
|
transaction: sale,
|
|
1859
1903
|
reference: reference(),
|
|
@@ -1862,7 +1906,135 @@ function testTaxProvider(provider, options) {
|
|
|
1862
1906
|
lineId: "conformance-unknown"
|
|
1863
1907
|
}]
|
|
1864
1908
|
});
|
|
1865
|
-
expect(kindOf$
|
|
1909
|
+
expect(kindOf$2(unknown) === "invalid_input", `an unknown line gave ${kindOf$2(unknown)}`);
|
|
1910
|
+
}]
|
|
1911
|
+
]);
|
|
1912
|
+
}
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region src/testing/kits/shipping-provider.ts
|
|
1915
|
+
const kindOf$1 = (result) => result.ok ? "ok" : result.error.kind;
|
|
1916
|
+
const formats = LABEL_FORMATS;
|
|
1917
|
+
const statuses = TRACKING_STATUSES;
|
|
1918
|
+
function eventsValid(events, where, ordered) {
|
|
1919
|
+
for (const [index, event] of events.entries()) {
|
|
1920
|
+
expect(event.id.length > 0, `${where}: event ${index} has no id`);
|
|
1921
|
+
expect(statuses.includes(event.status), `${where}: event ${event.id} has status "${event.status}"`);
|
|
1922
|
+
const previous = events[index - 1];
|
|
1923
|
+
expect(!ordered || previous === void 0 || previous.occurredAt.epochNanoseconds <= event.occurredAt.epochNanoseconds, `${where}: events are not oldest first`);
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* Runs the `ShippingProvider` contract against `carrier`: the API version,
|
|
1928
|
+
* refused requests, rates, a label with idempotent retries, tracking, voiding
|
|
1929
|
+
* the label and, with `webhook`, signed and forged tracking webhooks. Run it
|
|
1930
|
+
* against a carrier's test account: it buys one label and voids it.
|
|
1931
|
+
*/
|
|
1932
|
+
function testShippingProvider(carrier, options) {
|
|
1933
|
+
const request = {
|
|
1934
|
+
from: options.from,
|
|
1935
|
+
to: options.to,
|
|
1936
|
+
parcels: [{
|
|
1937
|
+
weightGrams: 1200,
|
|
1938
|
+
lengthMm: 300,
|
|
1939
|
+
widthMm: 200,
|
|
1940
|
+
heightMm: 100
|
|
1941
|
+
}],
|
|
1942
|
+
...options.currency === void 0 ? {} : { currency: options.currency }
|
|
1943
|
+
};
|
|
1944
|
+
const reference = `conformance-${crypto.randomUUID()}`;
|
|
1945
|
+
const key = `conformance-${crypto.randomUUID()}`;
|
|
1946
|
+
let label;
|
|
1947
|
+
const bought = async () => {
|
|
1948
|
+
label ??= await carrier.createLabel({
|
|
1949
|
+
...request,
|
|
1950
|
+
service: options.service,
|
|
1951
|
+
reference
|
|
1952
|
+
}, { idempotencyKey: key }).orThrow();
|
|
1953
|
+
return label;
|
|
1954
|
+
};
|
|
1955
|
+
return conform(`ShippingProvider "${carrier.name}"`, [
|
|
1956
|
+
["has apiVersion 1 and a name", () => {
|
|
1957
|
+
const version = carrier.apiVersion;
|
|
1958
|
+
expect(version === 1, `apiVersion is ${String(version)}`);
|
|
1959
|
+
expect(carrier.name.length > 0, "name is empty");
|
|
1960
|
+
}],
|
|
1961
|
+
["refuses a request without packages or with a bad country", async () => {
|
|
1962
|
+
const empty = await carrier.rates({
|
|
1963
|
+
...request,
|
|
1964
|
+
parcels: []
|
|
1965
|
+
});
|
|
1966
|
+
expect(kindOf$1(empty) === "invalid_input", `no packages gave ${kindOf$1(empty)}`);
|
|
1967
|
+
const nowhere = await carrier.rates({
|
|
1968
|
+
...request,
|
|
1969
|
+
to: {
|
|
1970
|
+
...request.to,
|
|
1971
|
+
country: ""
|
|
1972
|
+
}
|
|
1973
|
+
});
|
|
1974
|
+
expect(kindOf$1(nowhere) === "invalid_input", `no country gave ${kindOf$1(nowhere)}`);
|
|
1975
|
+
}],
|
|
1976
|
+
["quotes the service in the asked currency", async () => {
|
|
1977
|
+
const rates = await carrier.rates(request).orThrow();
|
|
1978
|
+
expect(rates.some((rate) => rate.service === options.service), `no rate for the "${options.service}" service`);
|
|
1979
|
+
for (const rate of rates) {
|
|
1980
|
+
expect(rate.carrier === carrier.name, `rate carrier is "${rate.carrier}"`);
|
|
1981
|
+
expect(isMoney(rate.amount) && rate.amount.amount >= 0n, `the ${rate.service} rate is not a Money of zero or more`);
|
|
1982
|
+
expect(options.currency === void 0 || rate.amount.currency === options.currency, `the ${rate.service} rate is in ${rate.amount.currency}`);
|
|
1983
|
+
}
|
|
1984
|
+
}],
|
|
1985
|
+
["refuses an unknown service", async () => {
|
|
1986
|
+
const unknown = await carrier.createLabel({
|
|
1987
|
+
...request,
|
|
1988
|
+
service: `conformance-${crypto.randomUUID()}`,
|
|
1989
|
+
reference
|
|
1990
|
+
});
|
|
1991
|
+
expect(kindOf$1(unknown) === "invalid_input", `an unknown service gave ${kindOf$1(unknown)}`);
|
|
1992
|
+
}],
|
|
1993
|
+
["buys a label with a tracking number, a cost and a known format", async () => {
|
|
1994
|
+
const found = await bought();
|
|
1995
|
+
expect(found.labelId.length > 0, "labelId is empty");
|
|
1996
|
+
expect(found.trackingNumber.length > 0, "trackingNumber is empty");
|
|
1997
|
+
expect(isMoney(found.cost), "cost is not a Money");
|
|
1998
|
+
expect(formats.includes(found.format), `format is "${found.format}"`);
|
|
1999
|
+
for (const url of [found.labelUrl, found.trackingUrl]) expect(url === void 0 || url.startsWith("https://"), `${String(url)} is not an https URL`);
|
|
2000
|
+
}],
|
|
2001
|
+
["returns the same label for the same idempotency key", async () => {
|
|
2002
|
+
const first = await bought();
|
|
2003
|
+
expect((await carrier.createLabel({
|
|
2004
|
+
...request,
|
|
2005
|
+
service: options.service,
|
|
2006
|
+
reference
|
|
2007
|
+
}, { idempotencyKey: key }).orThrow()).labelId === first.labelId, "a retry with the same key bought another label");
|
|
2008
|
+
}],
|
|
2009
|
+
["tracks the label, oldest event first", async () => {
|
|
2010
|
+
const found = await bought();
|
|
2011
|
+
eventsValid(await carrier.track(found.trackingNumber).orThrow(), "track", true);
|
|
2012
|
+
}],
|
|
2013
|
+
["answers not_found for an unknown tracking number", async () => {
|
|
2014
|
+
const unknown = await carrier.track(`conformance-${crypto.randomUUID()}`);
|
|
2015
|
+
expect(kindOf$1(unknown) === "not_found", `an unknown tracking number gave ${kindOf$1(unknown)}`);
|
|
2016
|
+
}],
|
|
2017
|
+
["voids the label", async () => {
|
|
2018
|
+
const found = await bought();
|
|
2019
|
+
expect((await carrier.cancel({
|
|
2020
|
+
labelId: found.labelId,
|
|
2021
|
+
trackingNumber: found.trackingNumber
|
|
2022
|
+
}).orThrow()).cancelled, "cancel did not report cancelled");
|
|
2023
|
+
}],
|
|
2024
|
+
["reads signed tracking webhooks and refuses forged ones", async () => {
|
|
2025
|
+
const { webhook } = options;
|
|
2026
|
+
if (webhook === void 0 || carrier.parseWebhook === void 0) {
|
|
2027
|
+
expect(webhook === void 0 && carrier.parseWebhook === void 0, webhook === void 0 ? "the carrier has parseWebhook; pass webhook to test it" : "webhook was passed but the carrier has no parseWebhook");
|
|
2028
|
+
return;
|
|
2029
|
+
}
|
|
2030
|
+
const updates = await carrier.parseWebhook(await webhook.valid()).orThrow();
|
|
2031
|
+
expect(updates.length > 0, "a valid webhook gave no updates");
|
|
2032
|
+
for (const update of updates) {
|
|
2033
|
+
expect(update.trackingNumber.length > 0, "an update has no tracking number");
|
|
2034
|
+
eventsValid(update.events, update.trackingNumber, false);
|
|
2035
|
+
}
|
|
2036
|
+
const forged = await carrier.parseWebhook(await webhook.forged());
|
|
2037
|
+
expect(kindOf$1(forged) === "unauthorized", `a forged webhook gave ${kindOf$1(forged)}`);
|
|
1866
2038
|
}]
|
|
1867
2039
|
]);
|
|
1868
2040
|
}
|
|
@@ -1914,10 +2086,9 @@ function testIncomingDestination(destination, options) {
|
|
|
1914
2086
|
//#region src/testing/kits/plugin.ts
|
|
1915
2087
|
/**
|
|
1916
2088
|
* Proves a `Plugin` targets API v1, installs cleanly on its own and next to the
|
|
1917
|
-
*
|
|
1918
|
-
*
|
|
1919
|
-
*
|
|
1920
|
-
* them.
|
|
2089
|
+
* block extensions in either order, adds repository methods without replacing
|
|
2090
|
+
* base ones, keeps `context`, `transformQuery` and `beforeMutation` pure and
|
|
2091
|
+
* deterministic, and keeps executors' results intact when it wraps them.
|
|
1921
2092
|
*/
|
|
1922
2093
|
function testPlugin(plugin, options) {
|
|
1923
2094
|
const { betterSupabase } = options;
|
|
@@ -1944,12 +2115,12 @@ function testPlugin(plugin, options) {
|
|
|
1944
2115
|
const enforce = plugin.enforce;
|
|
1945
2116
|
expect(enforce === void 0 || enforce === "first" || enforce === "pre" || enforce === "post", `enforce is ${String(enforce)}; use "first", "pre", "post" or leave it out`);
|
|
1946
2117
|
}],
|
|
1947
|
-
["installs next to the
|
|
2118
|
+
["installs next to the block extensions in either order", () => {
|
|
1948
2119
|
const others = [
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
2120
|
+
updatedAtExtension(),
|
|
2121
|
+
trashExtension(),
|
|
2122
|
+
membershipsExtension(),
|
|
2123
|
+
createdByExtension()
|
|
1953
2124
|
].filter((other) => other.name !== plugin.name);
|
|
1954
2125
|
let before = betterSupabase;
|
|
1955
2126
|
for (const other of others) before = before.use(other);
|
|
@@ -1976,7 +2147,7 @@ function testPlugin(plugin, options) {
|
|
|
1976
2147
|
}
|
|
1977
2148
|
}],
|
|
1978
2149
|
plugin.transformQuery && ["transformQuery is pure and deterministic", async () => {
|
|
1979
|
-
const op = await captureOp(betterSupabase, (db) => db[table]["
|
|
2150
|
+
const op = await captureOp(betterSupabase, (db) => db[table]["list"]({ limit: 1 }));
|
|
1980
2151
|
const first = plugin.transformQuery(frozenCopy(op), hook(op));
|
|
1981
2152
|
const second = plugin.transformQuery(frozenCopy(op), hook(op));
|
|
1982
2153
|
expect(typeof first === "object" && first !== null && first.kind === op.kind, "must return an operation of the same kind");
|
|
@@ -2006,7 +2177,7 @@ function testPlugin(plugin, options) {
|
|
|
2006
2177
|
expect(same(result.data, row), "afterMutation changed the returned row");
|
|
2007
2178
|
}],
|
|
2008
2179
|
plugin.wrapExecutor && ["wrapExecutor keeps results intact", async () => {
|
|
2009
|
-
const op = await captureOp(betterSupabase, (db) => db[table]["
|
|
2180
|
+
const op = await captureOp(betterSupabase, (db) => db[table]["list"]({ limit: 1 }));
|
|
2010
2181
|
const data = {
|
|
2011
2182
|
rows: [{ marker: "conformance" }],
|
|
2012
2183
|
count: 1
|
|
@@ -2037,7 +2208,7 @@ function testPlugin(plugin, options) {
|
|
|
2037
2208
|
]);
|
|
2038
2209
|
}
|
|
2039
2210
|
//#endregion
|
|
2040
|
-
//#region src/testing/kits/queue-
|
|
2211
|
+
//#region src/testing/kits/queue-provider.ts
|
|
2041
2212
|
function claimedJob(queue, row) {
|
|
2042
2213
|
const instant = temporal().Instant.fromEpochMilliseconds(0);
|
|
2043
2214
|
return {
|
|
@@ -2053,18 +2224,18 @@ function claimedJob(queue, row) {
|
|
|
2053
2224
|
};
|
|
2054
2225
|
}
|
|
2055
2226
|
/**
|
|
2056
|
-
* Proves a `
|
|
2227
|
+
* Proves a `QueueProvider` round-trips payloads, hides claimed messages for
|
|
2057
2228
|
* their lease, counts attempts, retries and dead-letters on `fail`, and (when
|
|
2058
2229
|
* it has `leases`) rejects a stale attempt and extends a lease. It writes to
|
|
2059
2230
|
* `options.queue` on the backend's real store.
|
|
2060
2231
|
*/
|
|
2061
|
-
function
|
|
2232
|
+
function testQueueProvider(backend, options) {
|
|
2062
2233
|
const { queue } = options;
|
|
2063
2234
|
const claimOne = async () => {
|
|
2064
2235
|
const [row] = await backend.read(queue, 30, 1);
|
|
2065
2236
|
return row && claimedJob(queue, row);
|
|
2066
2237
|
};
|
|
2067
|
-
return conform(`
|
|
2238
|
+
return conform(`QueueProvider "${backend.name}"`, [
|
|
2068
2239
|
hasName(backend),
|
|
2069
2240
|
["has apiVersion 1", () => {
|
|
2070
2241
|
const version = backend.apiVersion;
|
|
@@ -2387,7 +2558,7 @@ function testAdapter(name, options) {
|
|
|
2387
2558
|
return { pinned: true };
|
|
2388
2559
|
});
|
|
2389
2560
|
expect(replica, "ctx.replica is unset: pass `server` to the adapter");
|
|
2390
|
-
expect(response.headers.getSetCookie().some((cookie) => cookie.startsWith(`
|
|
2561
|
+
expect(response.headers.getSetCookie().some((cookie) => cookie.startsWith(`bsb-primary-until=`)), `a write must send bsb-primary-until; apply ctx.apply() or ctx.cookies()`);
|
|
2391
2562
|
}],
|
|
2392
2563
|
["hands pending event sends to waitUntil", async () => {
|
|
2393
2564
|
const { promise: send, resolve } = Promise.withResolvers();
|
|
@@ -3007,7 +3178,7 @@ function sampleModel() {
|
|
|
3007
3178
|
} },
|
|
3008
3179
|
channels: [{
|
|
3009
3180
|
id: "customers",
|
|
3010
|
-
address: "
|
|
3181
|
+
address: "bsb:t:public.customers",
|
|
3011
3182
|
protocol: "ws",
|
|
3012
3183
|
messages: ["customerChanged"],
|
|
3013
3184
|
operations: [{
|
|
@@ -3181,7 +3352,24 @@ function modelFromMeta(meta) {
|
|
|
3181
3352
|
schema: "public",
|
|
3182
3353
|
name,
|
|
3183
3354
|
values
|
|
3184
|
-
}))
|
|
3355
|
+
})),
|
|
3356
|
+
functions: Object.entries(meta.functions).flatMap(([key, fn]) => (fn.overloads ?? [fn]).map((signature) => ({
|
|
3357
|
+
key,
|
|
3358
|
+
schema: fn.schema,
|
|
3359
|
+
args: signature.args.map((arg) => {
|
|
3360
|
+
const values = meta.enums[arg.type];
|
|
3361
|
+
return {
|
|
3362
|
+
name: arg.name,
|
|
3363
|
+
tsType: values === void 0 ? "unknown" : values.map((value) => JSON.stringify(value)).join(" | "),
|
|
3364
|
+
optional: arg.optional === true,
|
|
3365
|
+
values
|
|
3366
|
+
};
|
|
3367
|
+
}),
|
|
3368
|
+
returns: "unknown",
|
|
3369
|
+
returnsSet: signature.returnsSet,
|
|
3370
|
+
volatility: signature.volatility
|
|
3371
|
+
}))),
|
|
3372
|
+
blocks: []
|
|
3185
3373
|
};
|
|
3186
3374
|
}
|
|
3187
3375
|
const EMPTY_INTROSPECTION = {
|
|
@@ -3363,6 +3551,87 @@ function testEveDocumentBackend(backend, options = {}) {
|
|
|
3363
3551
|
expect((await backend.read({ key }))?.content === "two", "a refused write changed the document");
|
|
3364
3552
|
}]]);
|
|
3365
3553
|
}
|
|
3554
|
+
const FAKE_RECORDING = {
|
|
3555
|
+
file: {
|
|
3556
|
+
id: "recording",
|
|
3557
|
+
filename: "call.webm",
|
|
3558
|
+
mediaType: "audio/webm"
|
|
3559
|
+
},
|
|
3560
|
+
url: "https://example.com/call.webm",
|
|
3561
|
+
read: () => Promise.resolve(/* @__PURE__ */ new Uint8Array())
|
|
3562
|
+
};
|
|
3563
|
+
/**
|
|
3564
|
+
* Proves a `Transcriber` for the engagements block names its model, returns
|
|
3565
|
+
* speaker turns in order with `startMs` at most `endMs` and text on each, and
|
|
3566
|
+
* rejects once its signal is aborted. Pass a real recording in `input` to call
|
|
3567
|
+
* the real provider.
|
|
3568
|
+
*/
|
|
3569
|
+
function testTranscriber(transcriber, options = {}) {
|
|
3570
|
+
const input = options.input ?? FAKE_RECORDING;
|
|
3571
|
+
return conform(`Transcriber "${transcriber.model}"`, [
|
|
3572
|
+
hasApiVersion(transcriber),
|
|
3573
|
+
["names its model", () => {
|
|
3574
|
+
expect(typeof transcriber.model === "string" && transcriber.model !== "", "model must be a non-empty string");
|
|
3575
|
+
}],
|
|
3576
|
+
["returns ordered speaker turns", async () => {
|
|
3577
|
+
const { segments } = await transcriber.transcribe(input);
|
|
3578
|
+
let last = 0;
|
|
3579
|
+
for (const segment of segments) {
|
|
3580
|
+
expect(typeof segment.text === "string", "every segment needs its text");
|
|
3581
|
+
expect(Number.isFinite(segment.startMs) && Number.isFinite(segment.endMs) && segment.startMs <= segment.endMs, `segment ${segment.startMs}-${segment.endMs} must start before it ends`);
|
|
3582
|
+
expect(segment.startMs >= last, "segments must be ordered by startMs");
|
|
3583
|
+
last = segment.startMs;
|
|
3584
|
+
}
|
|
3585
|
+
}],
|
|
3586
|
+
["rejects once aborted", async () => {
|
|
3587
|
+
expect(await rejects(() => transcriber.transcribe(input, { signal: AbortSignal.abort() })), "transcribe must reject when its signal is aborted");
|
|
3588
|
+
}]
|
|
3589
|
+
]);
|
|
3590
|
+
}
|
|
3591
|
+
const FAKE_CALL = {
|
|
3592
|
+
engagement: {
|
|
3593
|
+
id: "engagement",
|
|
3594
|
+
kind: "call",
|
|
3595
|
+
title: "Intro call"
|
|
3596
|
+
},
|
|
3597
|
+
transcript: [{
|
|
3598
|
+
recordingId: "recording",
|
|
3599
|
+
position: 1,
|
|
3600
|
+
speaker: "Speaker 1",
|
|
3601
|
+
startMs: 0,
|
|
3602
|
+
endMs: 4e3,
|
|
3603
|
+
text: "Can you send the proposal by Friday?"
|
|
3604
|
+
}, {
|
|
3605
|
+
recordingId: "recording",
|
|
3606
|
+
position: 2,
|
|
3607
|
+
speaker: "Speaker 2",
|
|
3608
|
+
startMs: 4e3,
|
|
3609
|
+
endMs: 7e3,
|
|
3610
|
+
text: "Yes, I will send it on Thursday."
|
|
3611
|
+
}]
|
|
3612
|
+
};
|
|
3613
|
+
/**
|
|
3614
|
+
* Proves a `NoteTaker` for the engagements block names its model, returns a
|
|
3615
|
+
* non-empty summary with well-formed action items, and rejects once its signal
|
|
3616
|
+
* is aborted. It calls the real model.
|
|
3617
|
+
*/
|
|
3618
|
+
function testNoteTaker(noteTaker, options = {}) {
|
|
3619
|
+
const input = options.input ?? FAKE_CALL;
|
|
3620
|
+
return conform(`NoteTaker "${noteTaker.model}"`, [
|
|
3621
|
+
hasApiVersion(noteTaker),
|
|
3622
|
+
["names its model", () => {
|
|
3623
|
+
expect(typeof noteTaker.model === "string" && noteTaker.model !== "", "model must be a non-empty string");
|
|
3624
|
+
}],
|
|
3625
|
+
["writes a summary and action items", async () => {
|
|
3626
|
+
const notes = await noteTaker.summarize(input);
|
|
3627
|
+
expect(typeof notes.summary === "string" && notes.summary.trim() !== "", "summary must be a non-empty string");
|
|
3628
|
+
expect((notes.actionItems ?? []).every((item) => typeof item.text === "string" && item.text !== ""), "every action item needs its text");
|
|
3629
|
+
}],
|
|
3630
|
+
["rejects once aborted", async () => {
|
|
3631
|
+
expect(await rejects(() => noteTaker.summarize(input, { signal: AbortSignal.abort() })), "summarize must reject when its signal is aborted");
|
|
3632
|
+
}]
|
|
3633
|
+
]);
|
|
3634
|
+
}
|
|
3366
3635
|
//#endregion
|
|
3367
3636
|
//#region src/testing/notification-channel.ts
|
|
3368
3637
|
const STATUSES = /* @__PURE__ */ new Set(["sent", "skipped"]);
|
|
@@ -3424,6 +3693,45 @@ function testNotificationChannel(channel, options = {}) {
|
|
|
3424
3693
|
]);
|
|
3425
3694
|
}
|
|
3426
3695
|
//#endregion
|
|
3696
|
+
//#region src/testing/record-binding.ts
|
|
3697
|
+
const callable = (value) => typeof value === "function";
|
|
3698
|
+
/**
|
|
3699
|
+
* Runs the `defineRecordBinding` contract against `binding`: the API version, a
|
|
3700
|
+
* read permission, the event patterns, a `load` that settles, and a `count`
|
|
3701
|
+
* keyed by `subjectKey` with a whole number per record. Throws a
|
|
3702
|
+
* `ConformanceError` listing every failed check.
|
|
3703
|
+
*/
|
|
3704
|
+
function testRecordBinding(name, binding, options) {
|
|
3705
|
+
const subjects = options.subjects ?? [options.subject];
|
|
3706
|
+
const load = binding.load;
|
|
3707
|
+
const count = binding.count;
|
|
3708
|
+
return conform(`Record binding "${name}"`, [
|
|
3709
|
+
["has apiVersion 1", () => {
|
|
3710
|
+
const version = binding.apiVersion;
|
|
3711
|
+
expect(version === 1, "apiVersion must be 1");
|
|
3712
|
+
}],
|
|
3713
|
+
["names a read permission", () => {
|
|
3714
|
+
expect(typeof binding.permissions.read === "string" && binding.permissions.read.length > 0, "permissions.read must be a non-empty action name");
|
|
3715
|
+
}],
|
|
3716
|
+
["lists event types", () => {
|
|
3717
|
+
expect(binding.events.every((event) => typeof event === "string" && event.length > 0), "events must be non-empty strings");
|
|
3718
|
+
}],
|
|
3719
|
+
["loads a record", async () => {
|
|
3720
|
+
expect(callable(binding.load), "load must be a function");
|
|
3721
|
+
expect((await load(options.client, options.subject, void 0)).ok, "load must succeed for a record the client holds");
|
|
3722
|
+
}],
|
|
3723
|
+
count !== void 0 && ["counts records by subject key", async () => {
|
|
3724
|
+
const result = await count(options.client, subjects);
|
|
3725
|
+
expect(result.ok, "count must succeed");
|
|
3726
|
+
const wanted = new Set(subjects.map((subject) => subjectKey(subject)));
|
|
3727
|
+
for (const [key, value] of Object.entries(result.data)) {
|
|
3728
|
+
expect(wanted.has(key), `count returned "${key}", not a type:id key asked for`);
|
|
3729
|
+
expect(Number.isInteger(value) && value >= 0, `count for "${key}" must be a whole number`);
|
|
3730
|
+
}
|
|
3731
|
+
}]
|
|
3732
|
+
]);
|
|
3733
|
+
}
|
|
3734
|
+
//#endregion
|
|
3427
3735
|
//#region src/testing/webhooks.ts
|
|
3428
3736
|
const SECRET = "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw";
|
|
3429
3737
|
function signInput(body, timestamp) {
|
|
@@ -4223,4 +4531,4 @@ const actCases = {
|
|
|
4223
4531
|
]
|
|
4224
4532
|
};
|
|
4225
4533
|
//#endregion
|
|
4226
|
-
export { ConformanceError, LOCAL_JWT_SECRET, PROBE_INITIAL, actCases, asUser, createTestSigner, defineSeed, defineTenantSeed, expectDbBudget, expectInstant, expectTenantIsolation, isSeed, isTenantSeed, liteStack, localAuth, localSigningKey, scopedSeed, seedTenantOnCreate, signLocalJwt, signTestJwt, signTestJwtWithKey, staticAuthorizer, supabaseClaimFixtures, supabaseInvalidClaimFixtures, testAdapter, testAiTaskRunner, testAuthResolver, testAuthorizationHooks, testAuthorizationProvider, testAuthorizer, testBlockTransportMiddleware, testBuilderStarter, testCacheAdapter, testChatState, testControllerBinding, testCredentialProvider, testDeliveryTransport, testDocumentFormat, testEmbedder, testEveDocumentBackend, testEventSink, testExecutor, testGenerator, testGraphCompiler, testIncomingDestination, testNotificationChannel, testPaymentProvider, testPlugin,
|
|
4534
|
+
export { ConformanceError, LOCAL_JWT_SECRET, PROBE_INITIAL, actCases, asUser, createTestSigner, defineFactory, defineSeed, defineTenantSeed, expectDbBudget, expectInstant, expectTenantIsolation, factoryPath, factoryTime, isSeed, isTenantSeed, liteStack, localAuth, localSigningKey, scopedSeed, seedTenantOnCreate, signLocalJwt, signTestJwt, signTestJwtWithKey, staticAuthorizer, supabaseClaimFixtures, supabaseInvalidClaimFixtures, testAdapter, testAiTaskRunner, testAuthResolver, testAuthorizationHooks, testAuthorizationProvider, testAuthorizer, testBlockTransportMiddleware, testBuilderStarter, testCacheAdapter, testChatState, testControllerBinding, testCredentialProvider, testDeliveryTransport, testDocumentFormat, testEmbedder, testEveDocumentBackend, testEventSink, testExecutor, testGenerator, testGraphCompiler, testIncomingDestination, testNoteTaker, testNotificationChannel, testPaymentProvider, testPlugin, testQueueProvider, testRecordBinding, testShippingProvider, testStreamStore, testSupportSessionStore, testTaxProvider, testTranscriber, testWebhookSecretStore, testWebhookSigner, testWebhookTransport, withClaims, withRollback };
|