better-supabase 0.18.2 → 0.19.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/dist/{ai-cache-Cu8j6aQQ.js → ai-cache-BuNbWEFI.js} +2 -2
- package/dist/{ai-files-CgFCRsnU.js → ai-files-DeMWQfzs.js} +2 -2
- package/dist/{ai-schedules-DzLh6BYI.d.ts → ai-schedules-B20M2SIi.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.js +1 -1
- package/dist/ai-sdk/cache/index.js +1 -1
- package/dist/ai-sdk/files/index.js +2 -2
- package/dist/ai-sdk/mcp/index.js +1 -1
- package/dist/{api-B6zteBya.d.ts → api-BiOgjXn5.d.ts} +1 -1
- package/dist/{app-tables-atP-tZKZ.d.ts → app-tables-Q29TR4W9.d.ts} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/{attachments-M-Dy79Ry.js → attachments-BTIwCuwm.js} +4 -4
- package/dist/{authorization-IiE__z2m.d.ts → authorization-08F77H2w.d.ts} +3 -0
- package/dist/{automations-B5P6vTvk.js → automations-EzXteupo.js} +2 -1
- package/dist/{automations-BYsz43AG.js → automations-jIIaT9EJ.js} +3 -3
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-pu5TLrla.d.ts → bind-wkfp7hgx.d.ts} +4 -4
- package/dist/{block-authors-BDV3y1SP.js → block-authors-D9hyCizs.js} +1 -1
- package/dist/{block-env-CA65ulTD.d.ts → block-env-D-zK3_Ta.d.ts} +4 -4
- package/dist/{block-helpers-CtBdjgO4.js → block-helpers-DnCtsKtv.js} +2 -83
- package/dist/{block-hooks-BfxX3682.js → block-hooks-DbIpkq7a.js} +1 -1
- package/dist/{block-subjects-BhDKK_j7.js → block-subjects-BRJO0IqO.js} +1 -1
- package/dist/block-transport-PNea4lfQ.js +84 -0
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +3 -2
- package/dist/blocks/activities/index.d.ts +1 -1
- package/dist/blocks/activities/index.js +3 -2
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +3 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +2 -2
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-chat/index.js +3 -2
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.js +2 -2
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +3 -2
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +3 -2
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +3 -2
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.js +3 -2
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +4 -3
- package/dist/blocks/assets/index.d.ts +1 -1
- package/dist/blocks/assets/index.js +3 -2
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +4 -3
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/attachments/index.js +3 -2
- package/dist/blocks/audit/index.d.ts +5 -5
- package/dist/blocks/audit/index.js +5 -4
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +4 -4
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +4 -3
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/billing/index.js +4 -3
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/index.js +3 -3
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/bulk/index.js +2 -2
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/calendar/index.js +2 -2
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/catalog/index.js +4 -3
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +3 -2
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +3 -2
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/comments/index.js +6 -5
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +3 -2
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +3 -2
- package/dist/blocks/contacts/index.d.ts +1 -1
- package/dist/blocks/contacts/index.js +3 -2
- package/dist/blocks/content/index.d.ts +1 -1
- package/dist/blocks/content/index.js +3 -2
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +5 -4
- package/dist/blocks/courses/index.d.ts +1 -1
- package/dist/blocks/courses/index.js +3 -2
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +2 -2
- package/dist/blocks/data-lifecycle/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.js +3 -2
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +8 -7
- package/dist/blocks/dispatch/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.js +4 -3
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +3 -2
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +4 -3
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +4 -3
- package/dist/blocks/drive/index.d.ts +1 -1
- package/dist/blocks/drive/index.js +4 -3
- package/dist/blocks/employees/index.d.ts +2 -2
- package/dist/blocks/employees/index.js +5 -4
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +3 -2
- package/dist/blocks/enrollments/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.js +3 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.js +2 -2
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +4 -3
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +3 -2
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +4 -3
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +6 -5
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/forms/index.js +3 -2
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +4 -3
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +3 -2
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +4 -3
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +3 -2
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/imports/index.js +2 -2
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/inbox/index.js +4 -3
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +3 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +4 -4
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +3 -2
- package/dist/blocks/invoices/index.d.ts +2 -2
- package/dist/blocks/invoices/index.js +7 -6
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.js +2 -2
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.js +5 -4
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +4 -3
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +3 -2
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +3 -2
- package/dist/blocks/mail-sync/index.d.ts +1 -1
- package/dist/blocks/mail-sync/index.js +3 -2
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +4 -3
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +5 -4
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +3 -2
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +1 -1
- package/dist/blocks/moderation/index.js +3 -2
- package/dist/blocks/notifications/index.d.ts +4 -4
- package/dist/blocks/notifications/index.js +4 -3
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/numbering/index.js +2 -2
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.js +3 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +3 -2
- package/dist/blocks/orders/index.d.ts +2 -2
- package/dist/blocks/orders/index.js +5 -4
- package/dist/blocks/organizations/index.d.ts +3 -3
- package/dist/blocks/organizations/index.js +3 -2
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +3 -2
- package/dist/blocks/passes/index.d.ts +1 -1
- package/dist/blocks/passes/index.js +5 -4
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +3 -2
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +4 -3
- package/dist/blocks/posts/index.d.ts +1 -1
- package/dist/blocks/posts/index.js +3 -2
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +3 -2
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +4 -3
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +3 -2
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/queue/index.js +4 -3
- package/dist/blocks/quotes/index.d.ts +2 -2
- package/dist/blocks/quotes/index.js +7 -6
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/rank/index.js +2 -2
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +4 -3
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/relations/index.js +4 -4
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reminders/index.js +4 -4
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +3 -2
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.js +2 -2
- package/dist/blocks/scores/index.d.ts +1 -1
- package/dist/blocks/scores/index.js +3 -3
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +3 -2
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +3 -2
- package/dist/blocks/segments/index.d.ts +1 -1
- package/dist/blocks/segments/index.js +4 -3
- package/dist/blocks/sequences/index.d.ts +1 -1
- package/dist/blocks/sequences/index.js +3 -2
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +3 -2
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +3 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +3 -3
- package/dist/blocks/shipments/index.d.ts +1 -1
- package/dist/blocks/shipments/index.js +5 -4
- package/dist/blocks/signatures/index.d.ts +1 -1
- package/dist/blocks/signatures/index.js +3 -2
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +5 -4
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +3 -2
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.js +3 -3
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/subjects/index.js +4 -3
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +2 -2
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +3 -2
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +2 -2
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/templates/index.js +3 -2
- package/dist/blocks/time-tracking/index.d.ts +1 -1
- package/dist/blocks/time-tracking/index.js +5 -4
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/timeline/index.js +4 -3
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +3 -2
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/index.js +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/index.js +3 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +3 -2
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +4 -3
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +3 -2
- package/dist/blocks/webhooks/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.js +5 -4
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflow-editor/index.js +3 -2
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/blocks/workflows/index.js +3 -2
- package/dist/{build-QitPVzzO.js → build-D9lWi5bk.js} +1 -1
- package/dist/chat-sdk/index.js +2 -1
- package/dist/cli/add-Bcw12jts.js +1 -0
- package/dist/cli/{add-ee805E_R.js → add-D5HxanFm.js} +2 -2
- package/dist/cli/{add-CbUFLPVA.js → add-Lr7uTZXQ.js} +11 -11
- package/dist/cli/{backfill-CCNXzDjt.js → backfill-Cl1zEel7.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CKp4EfLe.js → blocks-CsPua74J.js} +1 -1
- package/dist/cli/{blocks-DNgcfS8X.js → blocks-f0obMCxm.js} +1 -1
- package/dist/cli/{cache-CDNVq1vO.js → cache-tvTW5J9K.js} +1 -1
- package/dist/cli/{codemod-B621vQYQ.js → codemod-CVzRWS3j.js} +1 -1
- package/dist/cli/{config-BJSqMi04.js → config-BH0goim0.js} +3 -2
- package/dist/cli/{config-BlfVh0IP.js → config-CTRzkX0H.js} +1 -1
- package/dist/cli/{content-mapper-Chm3txER.js → content-mapper-C0LJDmVL.js} +2 -2
- package/dist/cli/{db-DYU5hUcd.js → db-DCeyHS1y.js} +2 -2
- package/dist/cli/{doctor-EWtWH8I9.js → doctor-q701Qif_.js} +16 -16
- package/dist/cli/{gen-D-g9TAmr.js → gen--vu_c2RF.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-D0SxtKH5.js → init-DGz5Hk9X.js} +6 -6
- package/dist/cli/{live-PaO1MC10.js → live-sBPXy0VE.js} +2 -2
- package/dist/cli/{mcp-CHpzdlOg.js → mcp-DY_YK_WV.js} +2 -2
- package/dist/cli/{metadata-KKCdxMLb.js → metadata-CoPGFRMb.js} +3 -3
- package/dist/cli/{migration-safety-Cgr44KLM.js → migration-safety-Cn7OLHJm.js} +2 -2
- package/dist/cli/{migrations-VmJloDtq.js → migrations-CUIEmdnS.js} +1 -1
- package/dist/cli/{module-migration-D4lirR47.js → module-migration-bWK0xO2_.js} +2 -2
- package/dist/cli/powersync-CG3Bp6FD.js +1 -0
- package/dist/cli/{powersync-Cc9Ad_Mn.js → powersync-DAM5JAmz.js} +2 -2
- package/dist/cli/{print-CXmXGe3Y.js → print-Dnbk8J2y.js} +2 -2
- package/dist/cli/{remove-CJi3fvpP.js → remove-DAVVPbWw.js} +5 -5
- package/dist/cli/{render-CVTKsacY.js → render-PJdiRcqF.js} +28 -5
- package/dist/cli/{run-DvK2vagi.js → run-6F72J0AQ.js} +25 -25
- package/dist/cli/{run-x9l841K2.js → run-D7-FuY6e.js} +8 -8
- package/dist/cli/seed-CXJvTU5D.js +1 -0
- package/dist/cli/{seed-D9mt8bnW.js → seed-CdSxunFT.js} +2 -2
- package/dist/cli/{shared-FhGSrA9E.js → shared-9O58FYPm.js} +1 -1
- package/dist/cli/{snapshot-B12QpZNf.js → snapshot-rTRe56PH.js} +3 -3
- package/dist/cli/{source-DP8KOgax.js → source-EHhEoKBD.js} +1 -1
- package/dist/cli/{source-args-DlckPVje.js → source-args-z-jkabmO.js} +1 -1
- package/dist/cli/{spec-D-NPgLTj.js → spec-CR4Y9kn8.js} +2 -2
- package/dist/cli/{spec-CIQBAQgr.js → spec-DqSbbTzD.js} +1 -1
- package/dist/cli/{sql-layout-DTczUfCt.js → sql-layout-BijeFLWv.js} +2 -2
- package/dist/cli/{sync-DHJ6UBod.js → sync-BAmWXRDR.js} +3 -3
- package/dist/cli/{upgrade-B69K7-JE.js → upgrade-BKN6eSx-.js} +4 -4
- package/dist/cli/{upgrade-C7SEKT4b.js → upgrade-oaUd22Il.js} +2 -2
- package/dist/cli/{version-DmaGTP3L.js → version-BkEOr4WS.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{codecs-TylXqU_I.js → codecs-BfmQSbM6.js} +2 -2
- package/dist/{composite-C-8A8qzi.d.ts → composite-COQJBDmG.d.ts} +3 -3
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +1 -1
- package/dist/{config-mbVyJwSc.js → config-D74JT0qL.js} +2 -1
- package/dist/{context-Cj-9gE6l.d.ts → context-BI1PPPkw.d.ts} +6 -3
- package/dist/{controller-BR7CZ1R9.d.ts → controller-DhT57SGq.d.ts} +1 -1
- package/dist/{conversion-BgtOfTaS.d.ts → conversion-DAV0hOJQ.d.ts} +1 -1
- package/dist/create/index.d.ts +2 -2
- package/dist/create/index.js +2 -2
- package/dist/{create-blocks-Bu4H5TXw.js → create-blocks-B-9HVf7m.js} +6 -4
- package/dist/credentials/index.js +2 -1
- package/dist/{deal-forecast-Bv52QMyX.js → deal-forecast-DikouYGj.js} +2 -2
- package/dist/{define-Cgru0_kF.d.ts → define-B_pxEy7d.d.ts} +2 -0
- package/dist/{define-DlUeKHce.js → define-Dt9DRqV_.js} +80 -4
- package/dist/{define-block-CJWiDWa5.d.ts → define-block-D4hZSb2G.d.ts} +2 -1
- package/dist/edge/index.d.ts +5 -5
- package/dist/{entitlements-DHcNt1aF.d.ts → entitlements-BhNzAcJR.d.ts} +1 -1
- package/dist/{entitlements-NZAE_vLj.js → entitlements-DBir2qwB.js} +2 -2
- package/dist/{executor-BWFfz0ik.d.ts → executor-D1UUQEGL.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/{field-errors-DkAemDoc.d.ts → field-errors-D7mzrKjR.d.ts} +6 -6
- package/dist/{fields-B0zaJAO3.js → fields--5a88KJe.js} +3 -2
- package/dist/{flags-BOdA_ETQ.js → flags-ClOQY-p5.js} +1 -1
- package/dist/flags-sdk/index.js +2 -2
- package/dist/{framework-x9Y4uB1q.d.ts → framework-BghlRbea.d.ts} +3 -3
- package/dist/hono/index.d.ts +4 -4
- package/dist/{index-DTbJAsrT.d.ts → index-B8iW3y2w.d.ts} +9 -9
- package/dist/{index-C6ruLtyx.d.ts → index-BJBwUM9l.d.ts} +3 -3
- package/dist/{index-C0t-vNIt.d.ts → index-BSXQlJt2.d.ts} +2 -2
- package/dist/{index-DZylLz7h.d.ts → index-Bc-EhTb-.d.ts} +3 -3
- package/dist/{index-DVYEoVMK.d.ts → index-DZ5VbYvy.d.ts} +1 -1
- package/dist/{index-DmbCyl6Z.d.ts → index-DsB7dy9R.d.ts} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/instance-property-hRh88y_s.js +7 -0
- package/dist/{knowledge-BGbtxMP9.js → knowledge-CV6OSirC.js} +2 -2
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-DxjuIHEL.d.ts → list-query-BIZBVEoF.d.ts} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/{money-codec-BzddguAQ.js → money-codec-uV5WbT60.js} +1 -1
- package/dist/next/index.d.ts +14 -14
- package/dist/next/index.js +2 -2
- package/dist/{operations-CAjMgNr9.d.ts → operations-DbNAgo7E.d.ts} +1 -1
- package/dist/{options-lsxJYfYx.js → options-BOqfYsM1.js} +2 -1
- package/dist/{options-Bc4xz5jQ.js → options-DZen3UiC.js} +2 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +1 -1
- package/dist/otel/index.js +4 -4
- package/dist/{ports-g0H1Kzwr.d.ts → ports-Dwe0JqBI.d.ts} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +3 -3
- package/dist/{push-token-Cl2EihRc.d.ts → push-token-C0dwbMZF.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/{rate-limit-Dt9vAY4E.js → rate-limit-BPuUWz4U.js} +3 -2
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +1 -1
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +6 -6
- package/dist/react/server.js +1 -1
- package/dist/{react-zBTxLsV6.js → react-GgLZ66FU.js} +2 -2
- package/dist/react-router/index.d.ts +3 -3
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +2 -2
- package/dist/{record-form-zMwz0Ayt.d.ts → record-form-eiqGbx9J.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{resource-execute-CKBtGL8-.d.ts → resource-execute-CWfzJmUd.d.ts} +1 -1
- package/dist/{resource-types-8Q5Klkpa.d.ts → resource-types-BdGAUbKw.d.ts} +1 -1
- package/dist/{resources-DxpqenZA.d.ts → resources-EeQWFMR8.d.ts} +1 -1
- package/dist/{rows-Bm6sskji.js → rows-Bh9QemqN.js} +1 -1
- package/dist/{rows-BDLZStp4.js → rows-EGAbu7MG.js} +2 -2
- package/dist/{sales-lines-D-sf9PIB.js → sales-lines-CP4Z_LyE.js} +6 -4
- package/dist/{sales-lines-Bk4mbLH1.d.ts → sales-lines-KxxStRzU.d.ts} +1 -0
- package/dist/{sales-shared-DXGFJP4g.js → sales-shared-BKXXA5qV.js} +1 -1
- package/dist/{schemas-l2aF78zQ.js → schemas-BSTNfGsQ.js} +1 -1
- package/dist/{scores-CRp3vvQU.js → scores-CsgM-dw7.js} +2 -2
- package/dist/server/index.d.ts +7 -7
- package/dist/server/index.js +2 -2
- package/dist/{server-types-gR4Q1aM0.d.ts → server-types-rmq2QzsD.d.ts} +1 -1
- package/dist/{session-Fcft5A39.d.ts → session-CpwxyojG.d.ts} +1 -1
- package/dist/{signing-keys-wGKh4vtt.js → signing-keys-DqI-gB_C.js} +2 -2
- package/dist/solid/index.d.ts +6 -6
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/spec/index.d.ts +1 -1
- package/dist/spec/index.js +1 -1
- package/dist/sql/index.d.ts +4 -4
- package/dist/sql/index.js +1 -1
- package/dist/{sql-D2Sc6BTr.js → sql-B0wb7XA5.js} +109 -65
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/{sso-d2S4x_f9.js → sso-Co2TbnEy.js} +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/streams/index.js +2 -1
- package/dist/{subject-readers-B-pQ9Mmo.js → subject-readers-F1xvRY-d.js} +1 -1
- package/dist/subject-type-BRnK7Av3.js +8 -0
- package/dist/svelte/index.d.ts +6 -6
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/{tags-sM-CH9Mn.d.ts → tags-CkO2erRP.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/{tenant-DyoVYFfC.d.ts → tenant-BXNF10H5.d.ts} +1 -1
- package/dist/testing/index.d.ts +7 -7
- package/dist/testing/index.js +5 -5
- package/dist/{timeline-CMmo0R7g.d.ts → timeline-CHtoY7NO.d.ts} +3 -3
- package/dist/{topic-nQYxoTaU.d.ts → topic-BNkdk7qe.d.ts} +2 -2
- package/dist/{undo-BjCChCmH.js → undo-B3FQvuAd.js} +2 -2
- package/dist/{verify-DEqY__0N.d.ts → verify-CJxqZQdd.d.ts} +1 -1
- package/dist/vue/index.d.ts +6 -6
- package/dist/{watch-topic-UGSEWAqR.d.ts → watch-topic-wl74gws-.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +22 -1
- package/dist/cli/add-k8gdux-e.js +0 -1
- package/dist/cli/powersync-Bo16K2S6.js +0 -1
- package/dist/cli/seed-EPO6AvLG.js +0 -1
- package/dist/db-blocks-DJGbjIPz.js +0 -62
- package/dist/{sign-in-BLkRU3lc.js → sign-in-BTaRWS-L.js} +1 -1
- package/dist/{topic-J9I3yu6f.js → topic-DXbA-jwr.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
2
|
-
import { C as optionalText, D as recordOf, I as textOf, N as sha256Hex, S as optionalInstant, h as instantOf, n as applyTemporal, o as blockCall } from "./block-helpers-
|
|
3
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
2
|
+
import { C as optionalText, D as recordOf, I as textOf, N as sha256Hex, S as optionalInstant, h as instantOf, n as applyTemporal, o as blockCall } from "./block-helpers-DnCtsKtv.js";
|
|
3
|
+
import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
|
|
4
4
|
//#region src/blocks/ai-cache/ai-cache.ts
|
|
5
5
|
const KINDS = /* @__PURE__ */ new Set([
|
|
6
6
|
"generate",
|
|
@@ -2,8 +2,8 @@ import { n as dbError } from "./errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
3
3
|
import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
4
4
|
import { t as fromStorageError } from "./errors-CyxMxzlu.js";
|
|
5
|
-
import { C as optionalText, D as recordOf, I as textOf, S as optionalInstant, _ as notFoundError, b as oneOf, h as instantOf, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall } from "./block-helpers-
|
|
6
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
5
|
+
import { C as optionalText, D as recordOf, I as textOf, S as optionalInstant, _ as notFoundError, b as oneOf, h as instantOf, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall } from "./block-helpers-DnCtsKtv.js";
|
|
6
|
+
import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
|
|
7
7
|
import { c as withFields, n as blockFields, r as extraFieldsArg, t as allWithFields } from "./block-fields-DE_FgpOU.js";
|
|
8
8
|
import { n as claimsUploads, t as claimUpload } from "./upload-claim-B1ZU8ydB.js";
|
|
9
9
|
//#region src/blocks/ai-files/rows.ts
|
|
@@ -8,7 +8,7 @@ import { t as BlockTransport } from "./block-transport-DWZSJrwN.js";
|
|
|
8
8
|
import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
|
|
9
9
|
import { g as JobHandler } from "./types-Czq9Xtpa.js";
|
|
10
10
|
import { r as RunState } from "./run-state-BMCD_1Lt.js";
|
|
11
|
-
import { I as Notifier } from "./define-block-
|
|
11
|
+
import { I as Notifier } from "./define-block-D4hZSb2G.js";
|
|
12
12
|
//#region src/blocks/ai-schedules/ai-schedules.d.ts
|
|
13
13
|
/** A task run's state, in the words ai-chat and workflow runs share. */
|
|
14
14
|
type AiTaskRunStatus = Extract<RunState, "queued" | "running" | "completed" | "failed">;
|
|
@@ -2,8 +2,8 @@ import { a as SessionActor, c as agentClaims, r as AgentActOptions } from "../..
|
|
|
2
2
|
import { d as KnowledgeSearchOptions, o as KnowledgeHit, r as Knowledge } from "../../knowledge-F1IhRI4Q.js";
|
|
3
3
|
import { t as Agent } from "../../agents-CMIB3802.js";
|
|
4
4
|
import { P as AiToolPolicy, _ as AiModerationAction, b as AiModerationStage, i as AiChat } from "../../ai-chat-BCaKsvLW.js";
|
|
5
|
-
import { r as AuthorizationOperation } from "../../authorization-
|
|
6
|
-
import { t as OperationTable } from "../../operations-
|
|
5
|
+
import { r as AuthorizationOperation } from "../../authorization-08F77H2w.js";
|
|
6
|
+
import { t as OperationTable } from "../../operations-DbNAgo7E.js";
|
|
7
7
|
import { i as SearchToolOptions, r as ResultsFilter } from "../../embeddings-D_RsS6ow.js";
|
|
8
8
|
import { n as GatewayOptions } from "../../gateway-options-BlVCqgb8.js";
|
|
9
9
|
import { LanguageModel, LanguageModelMiddleware, StopCondition, ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
|
|
@@ -2,7 +2,7 @@ import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { s as nowInstant } from "../../temporal-DLZlWbOi.js";
|
|
3
3
|
import { t as temporal } from "../../temporal-required-Dy0GGD8E.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
5
|
-
import { f as errorText } from "../../block-helpers-
|
|
5
|
+
import { f as errorText } from "../../block-helpers-DnCtsKtv.js";
|
|
6
6
|
import { experimental_cancelBatch, experimental_getBatchResults, experimental_getBatchStatus, experimental_startBatch } from "ai";
|
|
7
7
|
//#region src/ai-sdk/batches/batches.ts
|
|
8
8
|
const DEFAULT_API = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { t as cacheKey } from "../../ai-cache-
|
|
2
|
+
import { t as cacheKey } from "../../ai-cache-BuNbWEFI.js";
|
|
3
3
|
import { simulateReadableStream } from "ai";
|
|
4
4
|
//#region src/ai-sdk/cache/cache.ts
|
|
5
5
|
const BYTES = "$bytes";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
3
|
-
import { f as errorText } from "../../block-helpers-
|
|
4
|
-
import { r as parseAiFileUrl, t as aiFileUrl } from "../../ai-files-
|
|
3
|
+
import { f as errorText } from "../../block-helpers-DnCtsKtv.js";
|
|
4
|
+
import { r as parseAiFileUrl, t as aiFileUrl } from "../../ai-files-DeMWQfzs.js";
|
|
5
5
|
import { createDownload } from "ai";
|
|
6
6
|
//#region src/ai-sdk/files/files.ts
|
|
7
7
|
/** Thrown by the download function, so the SDK reports a failed file part. */
|
package/dist/ai-sdk/mcp/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
|
3
3
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
4
4
|
import { s as nowInstant } from "../../temporal-DLZlWbOi.js";
|
|
5
5
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
6
|
-
import { N as sha256Hex, f as errorText } from "../../block-helpers-
|
|
6
|
+
import { N as sha256Hex, f as errorText } from "../../block-helpers-DnCtsKtv.js";
|
|
7
7
|
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
|
|
8
8
|
import { n as loadSupabaseMcp } from "../../supabase-mcp-Dz9DgrKP.js";
|
|
9
9
|
import { fingerprintTools } from "ai";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { St as AnyPlugin, d as MutationIntent, ot as SchemaMeta } from "./types-DFdg_4yN.js";
|
|
2
2
|
import { bt as EventMap } from "./events-vcqenSYU.js";
|
|
3
3
|
import { o as Authorizer } from "./authorizer-B6X09otb.js";
|
|
4
|
-
import { f as DbBlockSource } from "./define-
|
|
4
|
+
import { f as DbBlockSource } from "./define-B_pxEy7d.js";
|
|
5
5
|
import { n as CloudEventOptions } from "./cloud-event-CzZTJkXv.js";
|
|
6
6
|
import { t as RealtimeStatus } from "./realtime-status-BhNkb-Ow.js";
|
|
7
7
|
import { C as ModelWebhook, E as OperationSource, O as SecurityRequirement, S as ModelTag, a as JsonSchema, b as ModelServer, d as ModelInfo, f as ModelMessage, i as JsonObject, m as ModelOperation, n as DataApiOperation, p as ModelMessageTrait, r as HttpMethod, s as ModelChannel, t as ApiModel, v as ModelSecurityProfileRequirement, w as ModelWorkflow, y as ModelSecurityScheme } from "./model-hwpvole9.js";
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
3
|
-
import { t as BetterSupabase } from "../define-
|
|
4
|
-
import { n as BetterServer } from "../server-types-
|
|
3
|
+
import { t as BetterSupabase } from "../define-B_pxEy7d.js";
|
|
4
|
+
import { n as BetterServer } from "../server-types-rmq2QzsD.js";
|
|
5
5
|
import { P as StorageImageOptions } from "../index-CQhPHHDF.js";
|
|
6
6
|
import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
|
|
7
7
|
import { t as RefusalRedirects } from "../refusal-OrlI3g4H.js";
|
|
8
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
8
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BghlRbea.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/astro/index.d.ts
|
|
11
11
|
/**
|
|
@@ -2,14 +2,14 @@ import { n as dbError } from "./errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
3
3
|
import { a as ok, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
4
4
|
import { t as fromStorageError } from "./errors-CyxMxzlu.js";
|
|
5
|
-
import { C as optionalText, D as recordOf, I as textOf, R as toInstant, S as optionalInstant, f as errorText, k as recordsOf, n as applyTemporal, o as blockCall } from "./block-helpers-
|
|
6
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
5
|
+
import { C as optionalText, D as recordOf, I as textOf, R as toInstant, S as optionalInstant, f as errorText, k as recordsOf, n as applyTemporal, o as blockCall } from "./block-helpers-DnCtsKtv.js";
|
|
6
|
+
import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
|
|
7
7
|
import { a as ttlSeconds, r as transformFor } from "./variants-Cy--Ub-a.js";
|
|
8
8
|
import { c as withFields, i as extraOf, n as blockFields, r as extraFieldsArg, t as allWithFields } from "./block-fields-DE_FgpOU.js";
|
|
9
|
-
import { n as optionalRecordRefOf } from "./block-subjects-
|
|
9
|
+
import { n as optionalRecordRefOf } from "./block-subjects-BRJO0IqO.js";
|
|
10
10
|
import { t as requireOrganization } from "./block-tenant-DHp7subc.js";
|
|
11
11
|
import { n as claimsUploads, t as claimUpload } from "./upload-claim-B1ZU8ydB.js";
|
|
12
|
-
import { t as authorOf } from "./block-authors-
|
|
12
|
+
import { t as authorOf } from "./block-authors-D9hyCizs.js";
|
|
13
13
|
//#region src/blocks/attachments/attachments.ts
|
|
14
14
|
const STATUSES = [
|
|
15
15
|
"pending",
|
|
@@ -2230,6 +2230,7 @@ type DealsSqlOptions = {
|
|
|
2230
2230
|
readonly prefix?: string;
|
|
2231
2231
|
readonly readAll?: boolean;
|
|
2232
2232
|
readonly extraColumns?: ExtraColumns;
|
|
2233
|
+
readonly lineExtraColumns?: ExtraColumns;
|
|
2233
2234
|
};
|
|
2234
2235
|
//#endregion
|
|
2235
2236
|
//#region src/blocks/documents/options.d.ts
|
|
@@ -2383,6 +2384,7 @@ type InvoicesSqlOptions = {
|
|
|
2383
2384
|
readonly creditPrefix?: string;
|
|
2384
2385
|
readonly termsDays?: number;
|
|
2385
2386
|
readonly extraColumns?: ExtraColumns;
|
|
2387
|
+
readonly lineExtraColumns?: ExtraColumns;
|
|
2386
2388
|
};
|
|
2387
2389
|
//#endregion
|
|
2388
2390
|
//#region src/blocks/knowledge/options.d.ts
|
|
@@ -2659,6 +2661,7 @@ type QuotesSqlOptions = {
|
|
|
2659
2661
|
readonly prefix?: string;
|
|
2660
2662
|
readonly validDays?: number;
|
|
2661
2663
|
readonly extraColumns?: ExtraColumns;
|
|
2664
|
+
readonly lineExtraColumns?: ExtraColumns;
|
|
2662
2665
|
};
|
|
2663
2666
|
//#endregion
|
|
2664
2667
|
//#region src/blocks/reactions/options.d.ts
|
|
@@ -5,7 +5,8 @@ const quotesSqlOptions = blockOptions({
|
|
|
5
5
|
contact: option.string({ default: "person" }),
|
|
6
6
|
prefix: option.string({ default: "Q-" }),
|
|
7
7
|
validDays: option.number({ default: 30 }),
|
|
8
|
-
extraColumns: option.extraColumns()
|
|
8
|
+
extraColumns: option.extraColumns(),
|
|
9
|
+
lineExtraColumns: option.extraColumns()
|
|
9
10
|
});
|
|
10
11
|
//#endregion
|
|
11
12
|
//#region src/blocks/quotes/automations.ts
|
|
@@ -2,11 +2,11 @@ import { n as dbError } from "./errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
3
3
|
import { t as FILTER_OPERATORS } from "./filter-query-DMoKo82_.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
5
|
-
import { C as optionalText, D as recordOf, I as textOf, R as toInstant, f as errorText, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall } from "./block-helpers-
|
|
6
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
5
|
+
import { C as optionalText, D as recordOf, I as textOf, R as toInstant, f as errorText, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall } from "./block-helpers-DnCtsKtv.js";
|
|
6
|
+
import { r as withBlockHooks } from "./block-hooks-DbIpkq7a.js";
|
|
7
7
|
import { t as actionKey } from "./automation-D41DXyvT.js";
|
|
8
8
|
import { t as evaluateFilterQuery } from "./filter-evaluate-w1XOIUOL.js";
|
|
9
|
-
import { i as ruleFilterFieldInfo } from "./fields
|
|
9
|
+
import { i as ruleFilterFieldInfo } from "./fields--5a88KJe.js";
|
|
10
10
|
//#region src/blocks/automations/automations.ts
|
|
11
11
|
const FIELD_TYPES = Object.keys(FILTER_OPERATORS);
|
|
12
12
|
function isFieldType(value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError, n as BetterResultApi, t as AsyncResult } from "../result-DZeA5KS6.js";
|
|
2
2
|
import { Ct as ApplyExtension, K as Insert, O as AnyFunctions, Z as PrimaryKeyValue, dt as TableMeta, ht as Update, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
3
|
-
import { $ as SearchScore, A as OffsetRangeArgs, B as RowFilter, Bt as Payload, C as GetKey, D as NoArgName, Dt as CountArgs, E as ManyWriteArgs, F as PlainName, G as UpsertManyArgs, H as RpcOptions, I as RawRpcOptions, K as WriteArgs, M as OverloadReturns, N as OverloadedName, Nt as ListArgs, P as PageOf, Q as SearchArgs, S as FindExt, St as AggregateResult, T as ManyResult, U as UpdateArgs, V as RpcArgs, W as UpsertArgs, _ as CursorPageArgs, b as DeleteArgs, ct as ReadSetResult, et as InferReadSetParams, ft as InferResult, j as OverloadArgs, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, q as WriteManyArgs, tt as ReadSet, v as Db, w as ManyOutcome, x as DeleteExt, yt as AggregateArgs, z as Returned } from "../define-
|
|
4
|
-
import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-
|
|
3
|
+
import { $ as SearchScore, A as OffsetRangeArgs, B as RowFilter, Bt as Payload, C as GetKey, D as NoArgName, Dt as CountArgs, E as ManyWriteArgs, F as PlainName, G as UpsertManyArgs, H as RpcOptions, I as RawRpcOptions, K as WriteArgs, M as OverloadReturns, N as OverloadedName, Nt as ListArgs, P as PageOf, Q as SearchArgs, S as FindExt, St as AggregateResult, T as ManyResult, U as UpdateArgs, V as RpcArgs, W as UpsertArgs, _ as CursorPageArgs, b as DeleteArgs, ct as ReadSetResult, et as InferReadSetParams, ft as InferResult, j as OverloadArgs, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, q as WriteManyArgs, tt as ReadSet, v as Db, w as ManyOutcome, x as DeleteExt, yt as AggregateArgs, z as Returned } from "../define-B_pxEy7d.js";
|
|
4
|
+
import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-BIZBVEoF.js";
|
|
5
5
|
import { Result } from "better-result";
|
|
6
6
|
//#region src/better-result/better-result.d.ts
|
|
7
7
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
2
2
|
import { o as BlockTenant } from "./block-helpers-CRpAHrp_.js";
|
|
3
|
-
import { t as BetterSupabase, v as Db } from "./define-
|
|
3
|
+
import { t as BetterSupabase, v as Db } from "./define-B_pxEy7d.js";
|
|
4
4
|
import { n as DataEngine } from "./data-engine-BWoz9lED.js";
|
|
5
|
-
import { Dn as GeneratedBlocks } from "./define-block-
|
|
6
|
-
import { rt as BetterQueries } from "./index-
|
|
7
|
-
import { t as ClientPorts } from "./ports-
|
|
5
|
+
import { Dn as GeneratedBlocks } from "./define-block-D4hZSb2G.js";
|
|
6
|
+
import { rt as BetterQueries } from "./index-BSXQlJt2.js";
|
|
7
|
+
import { t as ClientPorts } from "./ports-Dwe0JqBI.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
//#region src/client/bind.d.ts
|
|
10
10
|
interface AuthUser {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
2
|
-
import { C as optionalText } from "./block-helpers-
|
|
2
|
+
import { C as optionalText } from "./block-helpers-DnCtsKtv.js";
|
|
3
3
|
//#region src/core/block-authors.ts
|
|
4
4
|
/** A row's `author` object as an `Author`, or `undefined`. */
|
|
5
5
|
function authorOf(value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dn as GeneratedBlocks } from "./define-block-
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
3
|
-
import { t as ClientPorts } from "./ports-
|
|
4
|
-
import { t as AuthPort } from "./controller-
|
|
1
|
+
import { Dn as GeneratedBlocks } from "./define-block-D4hZSb2G.js";
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-wl74gws-.js";
|
|
3
|
+
import { t as ClientPorts } from "./ports-Dwe0JqBI.js";
|
|
4
|
+
import { t as AuthPort } from "./controller-DhT57SGq.js";
|
|
5
5
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
6
6
|
//#region src/blocks/block-env.d.ts
|
|
7
7
|
/**
|
|
@@ -1,91 +1,10 @@
|
|
|
1
|
-
import { t as DbException } from "./db-exception-Lngc1W49.js";
|
|
2
1
|
import { c as mapDbError, n as dbError, r as dbErrorOf } from "./errors-BVFgt8BZ.js";
|
|
3
2
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
4
3
|
import { l as provideTemporal } from "./temporal-DLZlWbOi.js";
|
|
5
4
|
import { t as temporal } from "./temporal-required-Dy0GGD8E.js";
|
|
6
5
|
import { a as ok, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
7
|
-
import {
|
|
6
|
+
import { n as rawError } from "./block-transport-PNea4lfQ.js";
|
|
8
7
|
import { t as fromPgError } from "./pg-error-B5QLDcbG.js";
|
|
9
|
-
//#region src/core/block-transport.ts
|
|
10
|
-
/**
|
|
11
|
-
* Calls the functions over Postgres, as the user `client` runs as:
|
|
12
|
-
* `sqlTransport(postgres.asUser(ctx.auth.claims))`. Works for any schema.
|
|
13
|
-
*/
|
|
14
|
-
function sqlTransport(client) {
|
|
15
|
-
return { async call(schema, fn, args) {
|
|
16
|
-
const entries = Object.entries(args).filter(([, value]) => value !== void 0);
|
|
17
|
-
const params = entries.map(([, value]) => value !== null && typeof value === "object" && (!Array.isArray(value) || value.some((entry) => entry !== null && typeof entry === "object")) ? JSON.stringify(value) : value);
|
|
18
|
-
const list = entries.map(([name], index) => `${sqlIdent(name)} => $${String(index + 1)}`).join(", ");
|
|
19
|
-
const [row] = await client.queryRaw(`select ${sqlIdent(schema)}.${sqlIdent(fn)}(${list}) as value`, params);
|
|
20
|
-
return row?.value ?? null;
|
|
21
|
-
} };
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Calls the functions over the Data API with the user's session. Pass `schema`
|
|
25
|
-
* with the API schema that `blocks.<module>.api` writes wrappers into; without
|
|
26
|
-
* it the calls go to the module schema, which then has to be exposed.
|
|
27
|
-
*/
|
|
28
|
-
function rpcTransport(client, options = {}) {
|
|
29
|
-
const untyped = client;
|
|
30
|
-
return { async call(schema, fn, args) {
|
|
31
|
-
const defined = Object.fromEntries(Object.entries(args).filter(([, value]) => value !== void 0));
|
|
32
|
-
const { data, error } = await untyped.schema(options.schema ?? schema).rpc(fn, defined);
|
|
33
|
-
if (error) {
|
|
34
|
-
const message = typeof error === "object" && "message" in error ? String(error.message) : String(error);
|
|
35
|
-
throw Object.assign(new Error(message), error);
|
|
36
|
-
}
|
|
37
|
-
return data;
|
|
38
|
-
} };
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Calls the functions through a `Db`'s executor, so a block runs wherever the
|
|
42
|
-
* `Db` does: over PostgREST for `ctx.db` in a normal request, and over direct
|
|
43
|
-
* Postgres as the target in a support session or for an API key. Rejects with
|
|
44
|
-
* the raw database error, like the other transports, so the block's error
|
|
45
|
-
* mappers see the same codes and hints.
|
|
46
|
-
*/
|
|
47
|
-
function dbTransport(db, options = {}) {
|
|
48
|
-
return { async call(schema, fn, args) {
|
|
49
|
-
const executor = db.$executor;
|
|
50
|
-
if (!executor.rpc) throw new TypeError(`dbTransport needs an executor with rpc(); the ${executor.name} executor has none`);
|
|
51
|
-
let raw;
|
|
52
|
-
const capture = (error) => {
|
|
53
|
-
raw = error;
|
|
54
|
-
};
|
|
55
|
-
const defined = Object.fromEntries(Object.entries(args).filter(([, value]) => value !== void 0));
|
|
56
|
-
const result = await executor.rpc(fn, defined, {
|
|
57
|
-
schema: options.schema ?? schema,
|
|
58
|
-
errorMappers: [capture]
|
|
59
|
-
});
|
|
60
|
-
if (result.ok) return result.data;
|
|
61
|
-
if (raw === void 0) throw new DbException(result.error);
|
|
62
|
-
throw Object.assign(new Error(raw.message ?? result.error.message), raw);
|
|
63
|
-
} };
|
|
64
|
-
}
|
|
65
|
-
/** The Postgres or PostgREST error a transport rejected with, if it is one. */
|
|
66
|
-
function rawError(cause) {
|
|
67
|
-
if (!isRecord(cause)) return;
|
|
68
|
-
const field = (key) => {
|
|
69
|
-
const value = cause[key];
|
|
70
|
-
return typeof value === "string" ? value : void 0;
|
|
71
|
-
};
|
|
72
|
-
if (field("code") === void 0) return;
|
|
73
|
-
const raw = {};
|
|
74
|
-
for (const key of [
|
|
75
|
-
"message",
|
|
76
|
-
"code",
|
|
77
|
-
"details",
|
|
78
|
-
"hint",
|
|
79
|
-
"constraint"
|
|
80
|
-
]) {
|
|
81
|
-
const value = field(key);
|
|
82
|
-
if (value !== void 0) raw[key] = value;
|
|
83
|
-
}
|
|
84
|
-
const detail = field("detail");
|
|
85
|
-
if (raw["details"] === void 0 && detail !== void 0) raw["details"] = detail;
|
|
86
|
-
return raw;
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
8
|
//#region src/core/block-helpers.ts
|
|
90
9
|
/** Provides `options.temporal`, when set, for the block's time values. */
|
|
91
10
|
function applyTemporal(options) {
|
|
@@ -350,4 +269,4 @@ function chunksOf(items, size) {
|
|
|
350
269
|
return chunks;
|
|
351
270
|
}
|
|
352
271
|
//#endregion
|
|
353
|
-
export { requiredInstant as A,
|
|
272
|
+
export { requiredInstant as A, optionalText as C, recordOf as D, readBodyCapped as E, stringsOf as F, textOf as I, toBlockError as L, seconds as M, sha256Hex as N, recordOrEmpty as O, sleep as P, toInstant as R, optionalInstant as S, randomToken as T, notFoundError as _, bigintOf as a, oneOf as b, chunksOf as c, enumOrThrow as d, errorText as f, leaseHeartbeat as g, instantOf as h, batchResultsOf as i, run as j, recordsOf as k, credentialRefOf as l, instantArg as m, applyTemporal as n, blockCall as o, injectableOf as p, asDbError as r, budget as s, DEFAULT_BLOCK_SCHEMA as t, eachLimit as u, nullableInstant as v, pageOf as w, optionalBigintOf as x, nullableText as y, workerId as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError, o as isDbError } from "./errors-BVFgt8BZ.js";
|
|
2
2
|
import { r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
3
3
|
import { t as consoleLogger } from "./logger-glM28NVN.js";
|
|
4
|
-
import { o as blockCall } from "./block-helpers-
|
|
4
|
+
import { o as blockCall } from "./block-helpers-DnCtsKtv.js";
|
|
5
5
|
//#region src/core/block-hooks.ts
|
|
6
6
|
const isPlainObject = (value) => {
|
|
7
7
|
const proto = Object.getPrototypeOf(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ok, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
2
|
-
import { I as textOf } from "./block-helpers-
|
|
2
|
+
import { I as textOf } from "./block-helpers-DnCtsKtv.js";
|
|
3
3
|
//#region src/core/block-subjects.ts
|
|
4
4
|
/** A row's subject columns as a `RecordRef`. */
|
|
5
5
|
function subjectRefOf(type, id) {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { t as DbException } from "./db-exception-Lngc1W49.js";
|
|
2
|
+
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
3
|
+
import { i as sqlIdent } from "./template-Drgg3v2J.js";
|
|
4
|
+
//#region src/core/block-transport.ts
|
|
5
|
+
/**
|
|
6
|
+
* Calls the functions over Postgres, as the user `client` runs as:
|
|
7
|
+
* `sqlTransport(postgres.asUser(ctx.auth.claims))`. Works for any schema.
|
|
8
|
+
*/
|
|
9
|
+
function sqlTransport(client) {
|
|
10
|
+
return { async call(schema, fn, args) {
|
|
11
|
+
const entries = Object.entries(args).filter(([, value]) => value !== void 0);
|
|
12
|
+
const params = entries.map(([, value]) => value !== null && typeof value === "object" && (!Array.isArray(value) || value.some((entry) => entry !== null && typeof entry === "object")) ? JSON.stringify(value) : value);
|
|
13
|
+
const list = entries.map(([name], index) => `${sqlIdent(name)} => $${String(index + 1)}`).join(", ");
|
|
14
|
+
const [row] = await client.queryRaw(`select ${sqlIdent(schema)}.${sqlIdent(fn)}(${list}) as value`, params);
|
|
15
|
+
return row?.value ?? null;
|
|
16
|
+
} };
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Calls the functions over the Data API with the user's session. Pass `schema`
|
|
20
|
+
* with the API schema that `blocks.<module>.api` writes wrappers into; without
|
|
21
|
+
* it the calls go to the module schema, which then has to be exposed.
|
|
22
|
+
*/
|
|
23
|
+
function rpcTransport(client, options = {}) {
|
|
24
|
+
const untyped = client;
|
|
25
|
+
return { async call(schema, fn, args) {
|
|
26
|
+
const defined = Object.fromEntries(Object.entries(args).filter(([, value]) => value !== void 0));
|
|
27
|
+
const { data, error } = await untyped.schema(options.schema ?? schema).rpc(fn, defined);
|
|
28
|
+
if (error) {
|
|
29
|
+
const message = typeof error === "object" && "message" in error ? String(error.message) : String(error);
|
|
30
|
+
throw Object.assign(new Error(message), error);
|
|
31
|
+
}
|
|
32
|
+
return data;
|
|
33
|
+
} };
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Calls the functions through a `Db`'s executor, so a block runs wherever the
|
|
37
|
+
* `Db` does: over PostgREST for `ctx.db` in a normal request, and over direct
|
|
38
|
+
* Postgres as the target in a support session or for an API key. Rejects with
|
|
39
|
+
* the raw database error, like the other transports, so the block's error
|
|
40
|
+
* mappers see the same codes and hints.
|
|
41
|
+
*/
|
|
42
|
+
function dbTransport(db, options = {}) {
|
|
43
|
+
return { async call(schema, fn, args) {
|
|
44
|
+
const executor = db.$executor;
|
|
45
|
+
if (!executor.rpc) throw new TypeError(`dbTransport needs an executor with rpc(); the ${executor.name} executor has none`);
|
|
46
|
+
let raw;
|
|
47
|
+
const capture = (error) => {
|
|
48
|
+
raw = error;
|
|
49
|
+
};
|
|
50
|
+
const defined = Object.fromEntries(Object.entries(args).filter(([, value]) => value !== void 0));
|
|
51
|
+
const result = await executor.rpc(fn, defined, {
|
|
52
|
+
schema: options.schema ?? schema,
|
|
53
|
+
errorMappers: [capture]
|
|
54
|
+
});
|
|
55
|
+
if (result.ok) return result.data;
|
|
56
|
+
if (raw === void 0) throw new DbException(result.error);
|
|
57
|
+
throw Object.assign(new Error(raw.message ?? result.error.message), raw);
|
|
58
|
+
} };
|
|
59
|
+
}
|
|
60
|
+
/** The Postgres or PostgREST error a transport rejected with, if it is one. */
|
|
61
|
+
function rawError(cause) {
|
|
62
|
+
if (!isRecord(cause)) return;
|
|
63
|
+
const field = (key) => {
|
|
64
|
+
const value = cause[key];
|
|
65
|
+
return typeof value === "string" ? value : void 0;
|
|
66
|
+
};
|
|
67
|
+
if (field("code") === void 0) return;
|
|
68
|
+
const raw = {};
|
|
69
|
+
for (const key of [
|
|
70
|
+
"message",
|
|
71
|
+
"code",
|
|
72
|
+
"details",
|
|
73
|
+
"hint",
|
|
74
|
+
"constraint"
|
|
75
|
+
]) {
|
|
76
|
+
const value = field(key);
|
|
77
|
+
if (value !== void 0) raw[key] = value;
|
|
78
|
+
}
|
|
79
|
+
const detail = field("detail");
|
|
80
|
+
if (raw["details"] === void 0 && detail !== void 0) raw["details"] = detail;
|
|
81
|
+
return raw;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { sqlTransport as i, rawError as n, rpcTransport as r, dbTransport as t };
|
|
@@ -7,7 +7,7 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-D4hZSb2G.js";
|
|
11
11
|
//#region src/blocks/access-requests/access-requests.d.ts
|
|
12
12
|
interface AccessRequestsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
13
13
|
readonly transport: BlockTransport;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { t as temporal } from "../../temporal-required-Dy0GGD8E.js";
|
|
2
2
|
import { t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
3
|
+
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
4
|
import { t as accessRequestsSqlOptions } from "../../options-gUvfr3no.js";
|
|
4
|
-
import { A as requiredInstant,
|
|
5
|
-
import { r as withBlockHooks } from "../../block-hooks-
|
|
5
|
+
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, k as recordsOf, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
6
|
+
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
6
7
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
7
8
|
import { c as withFields, n as blockFields, r as extraFieldsArg, t as allWithFields } from "../../block-fields-DE_FgpOU.js";
|
|
8
9
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
@@ -10,7 +10,7 @@ import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport,
|
|
|
10
10
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
|
|
11
11
|
import { f as AiFiles } from "../../types-Dr9wZgNy.js";
|
|
12
12
|
import { g as JobHandler } from "../../types-Czq9Xtpa.js";
|
|
13
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
13
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-D4hZSb2G.js";
|
|
14
14
|
import { a as EngagementRecording, c as NoteTakerInput, d as Transcript, f as TranscriptSegment, i as EngagementNotesInput, l as Transcriber, n as EngagementActionItem, o as EngagementRecordingStatus, p as TranscriptSegmentInput, r as EngagementNotes, s as NoteTaker, t as ENGAGEMENT_TRANSCRIBE_QUEUE, u as TranscriberInput } from "../../recordings-BBSJt_YV.js";
|
|
15
15
|
//#region src/blocks/activities/activities.d.ts
|
|
16
16
|
/** A record an engagement is on. */
|
|
@@ -2,9 +2,10 @@ import { t as DbException } from "../../db-exception-Lngc1W49.js";
|
|
|
2
2
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
3
3
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
5
|
+
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
5
6
|
import { t as activitiesSqlOptions } from "../../options-sU_zGkiV.js";
|
|
6
|
-
import { A as requiredInstant,
|
|
7
|
-
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-
|
|
7
|
+
import { A as requiredInstant, C as optionalText, D as recordOf, I as textOf, S as optionalInstant, d as enumOrThrow, f as errorText, k as recordsOf, m as instantArg, n as applyTemporal, o as blockCall, p as injectableOf } from "../../block-helpers-DnCtsKtv.js";
|
|
8
|
+
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
8
9
|
import { n as entitySchema } from "../../entity-schema-BDv6w-OQ.js";
|
|
9
10
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
10
11
|
import { n as blockFields } from "../../block-fields-DE_FgpOU.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ct as Events, p as AgentEventData } from "../../events-vcqenSYU.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
3
3
|
import { a as AgentSkill, c as AgentsOptions, i as AgentKnowledgeScope, l as NewAgent, n as AgentFields, o as AgentVisibility, r as AgentFilter, s as Agents, t as Agent, u as createAgents } from "../../agents-CMIB3802.js";
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
+
import { c as BlockOf } from "../../define-block-D4hZSb2G.js";
|
|
5
5
|
//#region src/blocks/agents/events.d.ts
|
|
6
6
|
/** The events of the `agents` block: type to data. */
|
|
7
7
|
type AgentsEvents = {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
2
|
import { t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
3
|
+
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
4
|
import { t as agentsSqlOptions } from "../../options-fkShrmGQ.js";
|
|
4
|
-
import {
|
|
5
|
-
import { r as withBlockHooks } from "../../block-hooks-
|
|
5
|
+
import { C as optionalText, D as recordOf, F as stringsOf, I as textOf, S as optionalInstant, _ as notFoundError, h as instantOf, k as recordsOf, n as applyTemporal, o as blockCall } from "../../block-helpers-DnCtsKtv.js";
|
|
6
|
+
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
6
7
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
7
8
|
import { c as withFields, i as extraOf, n as blockFields, t as allWithFields } from "../../block-fields-DE_FgpOU.js";
|
|
8
9
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
2
2
|
import { a as AiCacheSetOptions, i as AiCacheOptions, n as AiCacheEntry, o as cacheKey, r as AiCacheKind, s as createAiCache, t as AiCache } from "../../ai-cache-2LGgaT7F.js";
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
+
import { c as BlockOf } from "../../define-block-D4hZSb2G.js";
|
|
4
4
|
//#region src/blocks/ai-cache/manifest.d.ts
|
|
5
5
|
/** The `ai-cache` block's manifest (ADR 0029). */
|
|
6
6
|
export declare const aiCacheBlock: BlockOf<"ai-cache", typeof createAiCache>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
1
2
|
import { t as aiCacheSqlOptions } from "../../options-DtAJxfHS.js";
|
|
2
|
-
import { B as dbTransport, H as rpcTransport, U as sqlTransport } from "../../block-helpers-CtBdjgO4.js";
|
|
3
3
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
4
|
-
import { n as createAiCache, t as cacheKey } from "../../ai-cache-
|
|
4
|
+
import { n as createAiCache, t as cacheKey } from "../../ai-cache-BuNbWEFI.js";
|
|
5
5
|
//#region src/blocks/ai-cache/manifest.ts
|
|
6
6
|
/** The `ai-cache` block's manifest (ADR 0029). */
|
|
7
7
|
const aiCacheBlock = defineBlock({
|
|
@@ -3,10 +3,10 @@ import { Ct as Events, g as AiToolEventData, m as AiChatEventData } from "../../
|
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
4
4
|
import { a as AiMessagePart, c as AiReasoningPart, d as AiTextPart, f as AiToolApprovalPart, g as isAiMessage, h as aiMessageSchema, i as AiMessage, l as AiSourcePart, m as AiToolResultPart, n as AiDataPart, o as AiMessagePartType, p as AiToolCallPart, r as AiFilePart, s as AiMessageRole, t as AI_MESSAGE_SCHEMA_ID, u as AiStepPart } from "../../message-Bg4TKA12.js";
|
|
5
5
|
import { $ as AiRunStep, A as AiStoredMessageStatus, B as AiSandbox, C as AiProject, D as AiSaveResult, E as AiRunStatus, F as AiUserMessageTrigger, G as AiHarnessSession, H as AiSandboxStopper, I as SharedAiChat, J as AiHarnessStatus, K as AiHarnessSessionPatch, L as aiChatListTopic, M as AiToolApproval, N as AiToolApprovalRequest, O as AiShareLink, P as AiToolPolicy, Q as AiRunState, R as aiChatTopic, S as AiPendingInputRequest, T as AiRunRelease, U as AiSandboxes, V as AiSandboxStatus, W as NewAiSandbox, X as AiRun, Y as AiPendingApproval, Z as AiRunQuery, _ as AiModerationAction, a as AiChatInput, b as AiModerationStage, c as AiChatPatch, d as AiChatShare, et as AiRunStepInput, f as AiChatVisibility, g as AiModelInput, h as AiModel, i as AiChat, j as AiStreamClaim, k as AiStoredMessage, l as AiChatQuery, m as AiMessageSibling, n as AiApprovalDecision, nt as AiRuns, o as AiChatOptions, p as AiFeedback, q as AiHarnessSessions, r as AiAssistantMessageOptions, rt as createHarnessSessions, s as AiChatPage, t as AiAppendResult, tt as AiRunStepStatus, u as AiChatRecord, v as AiModerationEvent, w as AiProjectInput, x as AiPendingInput, y as AiModerationInput, z as createAiChat } from "../../ai-chat-BCaKsvLW.js";
|
|
6
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
8
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
9
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { c as BlockOf } from "../../define-block-D4hZSb2G.js";
|
|
7
|
+
import { p as SubscriptionStatus } from "../../topic-BNkdk7qe.js";
|
|
8
|
+
import { n as TopicPort } from "../../watch-topic-wl74gws-.js";
|
|
9
|
+
import { n as Controller, t as AuthPort } from "../../controller-DhT57SGq.js";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
11
11
|
//#region src/core/contracts/ai-message.d.ts
|
|
12
12
|
/**
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
2
|
import { a as ok, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
3
|
+
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
3
4
|
import { t as aiChatSqlOptions } from "../../options-BhsdveDk.js";
|
|
4
5
|
import { t as AI_MESSAGE_PART_TYPES } from "../../ai-message-DfaP8sis.js";
|
|
5
6
|
import { n as runStateOf } from "../../run-state-CgBKzYMW.js";
|
|
6
7
|
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
7
|
-
import {
|
|
8
|
-
import { r as withBlockHooks } from "../../block-hooks-
|
|
8
|
+
import { C as optionalText, D as recordOf, F as stringsOf, I as textOf, R as toInstant, S as optionalInstant, b as oneOf, f as errorText, h as instantOf, k as recordsOf, n as applyTemporal, o as blockCall, w as pageOf } from "../../block-helpers-DnCtsKtv.js";
|
|
9
|
+
import { r as withBlockHooks } from "../../block-hooks-DbIpkq7a.js";
|
|
9
10
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
10
11
|
import { c as withFields, i as extraOf, n as blockFields, t as allWithFields } from "../../block-fields-DE_FgpOU.js";
|
|
11
12
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
@@ -2,7 +2,7 @@ import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
|
2
2
|
import { r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
4
4
|
import { _ as NewAiFile, a as AiDocumentWithContent, c as AiFileSource, d as AiFileUpload, f as AiFiles, g as NewAiDocument, h as AiSuggestion, i as AiDocumentVersion, l as AiFileStatus, m as AiProviderFile, n as AiDocumentEdit, o as AiFile, p as AiFilesOptions, r as AiDocumentKind, s as AiFileBucket, t as AiDocument, u as AiFileStorage, v as StoredAiFile } from "../../types-Dr9wZgNy.js";
|
|
5
|
-
import { c as BlockOf } from "../../define-block-
|
|
5
|
+
import { c as BlockOf } from "../../define-block-D4hZSb2G.js";
|
|
6
6
|
//#region src/blocks/ai-files/ai-files.d.ts
|
|
7
7
|
/** The URL a message stores for a file: `supabase-storage://{bucket}/{path}`. */
|
|
8
8
|
export declare function aiFileUrl(file: Pick<AiFile, "bucket" | "path">): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { i as sqlTransport, r as rpcTransport, t as dbTransport } from "../../block-transport-PNea4lfQ.js";
|
|
1
2
|
import { t as aiFilesSqlOptions } from "../../options-BawzwlmC.js";
|
|
2
|
-
import { B as dbTransport, H as rpcTransport, U as sqlTransport } from "../../block-helpers-CtBdjgO4.js";
|
|
3
3
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
4
|
-
import { n as createAiFiles, r as parseAiFileUrl, t as aiFileUrl } from "../../ai-files-
|
|
4
|
+
import { n as createAiFiles, r as parseAiFileUrl, t as aiFileUrl } from "../../ai-files-DeMWQfzs.js";
|
|
5
5
|
//#region src/blocks/ai-files/manifest.ts
|
|
6
6
|
/** The `ai-files` block's manifest (ADR 0029). */
|
|
7
7
|
const aiFilesBlock = defineBlock({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ct as Events, h as AiProviderKeyEventData } from "../../events-vcqenSYU.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
3
3
|
import { a as AiBatchItemStatus, c as AiKeys, d as AiProviderKeyInput, f as NewAiBatch, i as AiBatchItemInput, l as AiKeysOptions, n as AiBatchCounts, o as AiBatchPatch, p as ResolvedProviderKey, r as AiBatchItem, s as AiBatchStatus, t as AiBatch, u as AiProviderKey } from "../../types-EO2crSX_.js";
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
+
import { c as BlockOf } from "../../define-block-D4hZSb2G.js";
|
|
5
5
|
//#region src/blocks/ai-keys/ai-keys.d.ts
|
|
6
6
|
/** Per-tenant provider keys and provider batch jobs. */
|
|
7
7
|
export declare function createAiKeys(options: AiKeysOptions): AiKeys;
|