better-supabase 0.25.0 → 0.29.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/{access-sql-bjWFUWlk.js → access-sql-CTDNuxRv.js} +177 -12
- package/dist/{agents-CMIB3802.d.ts → agents-CM_cCtcr.d.ts} +4 -4
- package/dist/{ai-cache-2LGgaT7F.d.ts → ai-cache-BTGqckta.d.ts} +4 -4
- package/dist/{ai-chat-BCaKsvLW.d.ts → ai-chat-B7_vQvxU.d.ts} +4 -4
- package/dist/{ai-schedules-yGZH-vQb.d.ts → ai-schedules-CZEfo-_M.d.ts} +5 -5
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +1 -1
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +5 -5
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +3 -3
- package/dist/{api-B1OkIWdx.d.ts → api-59rv5hL6.d.ts} +5 -5
- package/dist/{api-keys-ClhKBDcc.d.ts → api-keys-JE-aykZE.d.ts} +4 -4
- package/dist/{app-tables-xij_MI5H.d.ts → app-tables-DekyKNQ8.d.ts} +1 -1
- package/dist/{approvals-C5fmPLsH.d.ts → approvals-BfEafAzt.d.ts} +5 -5
- package/dist/{assistant-ndGdOBax.d.ts → assistant-B49qATbj.d.ts} +2 -2
- package/dist/astro/index.d.ts +7 -7
- package/dist/{authorization-BJV2i8xB.d.ts → authorization-C7nuWMuB.d.ts} +27 -6
- package/dist/{authorization-hooks-DtzreCAq.d.ts → authorization-hooks-BWhkMZfH.d.ts} +2 -2
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-vKDmdu_4.d.ts → bind-DmUGUsBd.d.ts} +7 -7
- package/dist/{block-env-wVLz0KMV.d.ts → block-env-DWtZsqhH.d.ts} +4 -4
- package/dist/{block-helpers-CRpAHrp_.d.ts → block-helpers-D5emQ2O6.d.ts} +1 -1
- package/dist/{block-hooks-DZN2w69m.d.ts → block-hooks-B8itxzEE.d.ts} +2 -2
- package/dist/{block-subjects-CphkQPxp.d.ts → block-subjects-C1_9DkSA.d.ts} +1 -1
- package/dist/{block-transport-DWZSJrwN.d.ts → block-transport-9EUA3q_I.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +10 -10
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.d.ts +7 -7
- package/dist/blocks/ai-files/index.d.ts +3 -3
- package/dist/blocks/ai-keys/index.d.ts +4 -4
- package/dist/blocks/ai-schedules/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +8 -8
- package/dist/blocks/api-keys/index.d.ts +6 -6
- package/dist/blocks/approvals/index.d.ts +4 -4
- package/dist/blocks/assets/index.d.ts +6 -6
- package/dist/blocks/assignment/index.d.ts +7 -7
- package/dist/blocks/attachments/index.d.ts +4 -4
- package/dist/blocks/audit/index.d.ts +13 -13
- package/dist/blocks/automations/index.d.ts +12 -12
- package/dist/blocks/billable-time/index.d.ts +6 -6
- package/dist/blocks/billing/index.d.ts +9 -9
- package/dist/blocks/bookings/index.d.ts +4 -4
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +5 -5
- package/dist/blocks/catalog/index.d.ts +6 -6
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/collections/index.d.ts +12 -12
- package/dist/blocks/collections/index.js +1 -1
- package/dist/blocks/comments/index.d.ts +10 -10
- package/dist/blocks/compliance/index.d.ts +5 -5
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/contacts/index.d.ts +7 -7
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.d.ts +5 -5
- package/dist/blocks/contracts/index.d.ts +6 -6
- package/dist/blocks/courses/index.d.ts +5 -5
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +6 -6
- package/dist/blocks/custom-fields/index.js +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +8 -8
- package/dist/blocks/deals/index.d.ts +6 -6
- package/dist/blocks/dispatch/index.d.ts +7 -7
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/domains/index.d.ts +6 -6
- package/dist/blocks/donations/index.d.ts +6 -6
- package/dist/blocks/drive/index.d.ts +7 -7
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/employees/index.js +1 -1
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +6 -6
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/expenses/index.d.ts +5 -5
- package/dist/blocks/field-history/index.d.ts +4 -4
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/forecasts/index.d.ts +6 -6
- package/dist/blocks/forms/index.d.ts +6 -6
- package/dist/blocks/goals/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +6 -6
- package/dist/blocks/hiring/index.d.ts +7 -7
- package/dist/blocks/identities/index.d.ts +5 -5
- package/dist/blocks/imports/index.d.ts +5 -5
- package/dist/blocks/inbox/index.d.ts +10 -10
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +9 -9
- package/dist/blocks/inventory/index.d.ts +7 -7
- package/dist/blocks/invoices/index.d.ts +8 -8
- package/dist/blocks/knowledge/index.d.ts +3 -3
- package/dist/blocks/lead-scoring/index.d.ts +7 -7
- package/dist/blocks/leases/index.d.ts +6 -6
- package/dist/blocks/leave/index.d.ts +5 -5
- package/dist/blocks/ledger/index.d.ts +6 -6
- package/dist/blocks/mail-sync/index.d.ts +5 -5
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +4 -4
- package/dist/blocks/messaging/index.d.ts +11 -11
- package/dist/blocks/metrics/index.d.ts +6 -6
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +6 -6
- package/dist/blocks/notifications/index.d.ts +12 -12
- package/dist/blocks/notifications/index.js +1 -1
- package/dist/blocks/numbering/index.d.ts +4 -4
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- package/dist/blocks/onboarding/index.d.ts +5 -5
- package/dist/blocks/orders/index.d.ts +7 -7
- package/dist/blocks/organizations/index.d.ts +8 -8
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/permissions/index.d.ts +6 -6
- package/dist/blocks/pipelines/index.d.ts +6 -6
- package/dist/blocks/posts/index.d.ts +5 -5
- package/dist/blocks/profiles/index.d.ts +4 -4
- package/dist/blocks/promotions/index.d.ts +5 -5
- package/dist/blocks/push/index.d.ts +6 -6
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/quotes/index.d.ts +8 -8
- package/dist/blocks/rank/index.d.ts +5 -5
- package/dist/blocks/reactions/index.d.ts +9 -9
- package/dist/blocks/relations/index.d.ts +7 -7
- package/dist/blocks/reminders/index.d.ts +9 -9
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.d.ts +5 -5
- package/dist/blocks/saved-views/index.d.ts +6 -6
- package/dist/blocks/scores/index.d.ts +5 -5
- package/dist/blocks/search/index.d.ts +8 -8
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/segments/index.d.ts +8 -8
- package/dist/blocks/sequences/index.d.ts +6 -6
- package/dist/blocks/service-accounts/index.d.ts +5 -5
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +6 -6
- package/dist/blocks/share-links/index.d.ts +5 -5
- package/dist/blocks/shipments/index.d.ts +6 -6
- package/dist/blocks/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/sla/index.d.ts +7 -7
- package/dist/blocks/sso/index.d.ts +6 -6
- package/dist/blocks/state-machine/index.d.ts +5 -5
- package/dist/blocks/subjects/index.d.ts +6 -6
- package/dist/blocks/tags/index.d.ts +6 -6
- package/dist/blocks/tasks/index.d.ts +10 -10
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +4 -4
- package/dist/blocks/templates/index.d.ts +7 -7
- package/dist/blocks/time-tracking/index.d.ts +7 -7
- package/dist/blocks/timeline/index.d.ts +8 -8
- package/dist/blocks/trash/index.d.ts +6 -6
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/webhooks/index.d.ts +14 -14
- package/dist/blocks/webhooks/index.js +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +9 -9
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-CVw5-Q0Z.d.ts → bookings-xsmM2TA_.d.ts} +3 -3
- package/dist/{bucket-vc-QRrva.d.ts → bucket-SvRQwYS4.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/cli/{add-C2pNvVpu.js → add-BKkV99g9.js} +2 -2
- package/dist/cli/{add-BTVrOGJF.js → add-CrQ3jS7t.js} +55 -88
- package/dist/cli/add-CwhrRJz5.js +1 -0
- package/dist/cli/app-table-files-PnPOpuB4.js +346 -0
- package/dist/cli/{backfill-BicVPugb.js → backfill-DDDLhinm.js} +4 -4
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-sScN-ik-.js → blocks-BCVcjvbm.js} +1 -1
- package/dist/cli/{blocks-BmYOH4T-.js → blocks-tRfYx_mh.js} +2 -2
- package/dist/cli/{cache-1TfBy2K4.js → cache-DQZ09YOg.js} +1 -1
- package/dist/cli/{codemod-ylE6wGLo.js → codemod-HKuwQmi_.js} +5 -5
- package/dist/cli/{command-BWEEXmtz.js → command-DIPmo0wh.js} +37 -1
- package/dist/cli/{completion-Bt7LMypX.js → completion-DxPxMtyP.js} +2 -2
- package/dist/cli/{completion-8EDK21xj.js → completion-DyLMSjOD.js} +1 -1
- package/dist/cli/{completion-BfnKI4QZ.js → completion-FUgqm2-N.js} +2 -2
- package/dist/cli/{config-WKDixoGK.js → config-BfapErxs.js} +1 -1
- package/dist/cli/{config-BVfeG3A5.js → config-Cskysxp-.js} +327 -16
- package/dist/cli/{config-CeaQMrvS.js → config-Df5cXWNN.js} +1 -1
- package/dist/cli/{config-group-C8tjut39.js → config-group-CP-B9uRt.js} +2 -3
- package/dist/cli/{content-mapper-hUW2nb92.js → content-mapper-B0ehR7K-.js} +2 -2
- package/dist/cli/{db-DwjyUbAh.js → db-CWvH1_46.js} +38 -14
- package/dist/cli/{doctor-D3WKFBSv.js → doctor-CXJOhwLB.js} +36 -33
- package/dist/cli/{env-DMgjB_4y.js → env-BK0xKMeU.js} +1 -2
- package/dist/cli/{env-BCgVZkcb.js → env-BM242BCV.js} +2 -2
- package/dist/cli/{env-C-Bl6Awn.js → env-Bat6ogep.js} +1 -1
- package/dist/cli/env-uqfUbUzk.js +1 -0
- package/dist/cli/{exec--Q1ZEWUW.js → exec-Ca5s-ygi.js} +1 -1
- package/dist/cli/{gen-CqsUdsB2.js → gen-B7rw4j19.js} +16 -16
- package/dist/cli/in-stack-diff-Cp-tVPj2.js +186 -0
- package/dist/cli/index.d.ts +9 -3
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-DryZ5Mp1.js → init-C1bXXB_P.js} +131 -12
- package/dist/cli/{keys-CbaL0lnw.js → keys-V-HcO-21.js} +1 -1
- package/dist/cli/{live-Di45imoV.js → live-PpAh9pAc.js} +2 -2
- package/dist/cli/{mcp-BklC-3eK.js → mcp-BRNAchdH.js} +6 -14
- package/dist/cli/{metadata-7PsBF5Xw.js → metadata-dAAKb_kR.js} +3 -3
- package/dist/cli/migrate-BWYXFnaW.js +46 -0
- package/dist/cli/{migration-safety-Doy9qYO8.js → migration-safety-DGQswWZy.js} +2 -2
- package/dist/cli/migrations-Cqk-lJwu.js +117 -0
- package/dist/cli/{module-migration-ZIn1NCMi.js → module-migration-8-hMiZtW.js} +2 -2
- package/dist/cli/{moved-DVwgE8lV.js → moved-DNOtp9LA.js} +1 -1
- package/dist/cli/{parse-B079x40m.js → parse-BPf3kGnc.js} +1 -1
- package/dist/cli/{powersync-BRGXOCJ0.js → powersync-BWQ-8T3G.js} +4 -3
- package/dist/cli/powersync-CbYxLsjv.js +1 -0
- package/dist/cli/{print-Dfqd4DB-.js → print-DSTnq5xz.js} +2 -2
- package/dist/cli/{migrations-JtsPYv8g.js → providers-Cjf5iOp5.js} +4 -116
- package/dist/cli/{remove-CQzSCYTu.js → remove-CwG8cPv1.js} +7 -7
- package/dist/cli/{render-DWRz-uPQ.js → render-B18iAdsT.js} +9 -6
- package/dist/cli/{run-DPLedqTF.js → run-C2Yg5MWt.js} +42 -40
- package/dist/cli/{run-DmOTMa44.js → run-CvPl8iQd.js} +4 -4
- package/dist/cli/{run-j54rk2w-.js → run-Wx_2Acgv.js} +11 -11
- package/dist/cli/seed-BOun22-k.js +1 -0
- package/dist/cli/{seed-BMynpMPy.js → seed-CDnL4Tnc.js} +3 -3
- package/dist/cli/{shared-CslNcs-R.js → shared-BHbtUOvh.js} +1 -1
- package/dist/cli/{skills-FXAVPLzp.js → skills-DM3oeIxY.js} +1 -1
- package/dist/cli/{snapshot-DdN5GlhH.js → snapshot-CXgsUPGj.js} +3 -3
- package/dist/cli/{source-COARbqch.js → source-B6aMAoEK.js} +1 -1
- package/dist/cli/{source-args-CDmmFmFG.js → source-args-v8ljFDfc.js} +1 -1
- package/dist/cli/{spec-CgLNZc_C.js → spec-BcYic005.js} +3 -3
- package/dist/cli/{spec-DIhBQlBF.js → spec-EO0TP84d.js} +1 -1
- package/dist/cli/{sql-layout-8jrP5gIa.js → sql-layout-CkxDNVEH.js} +21 -7
- package/dist/cli/{stack-DgASZP0K.js → stack-ClESAZYf.js} +3 -3
- package/dist/cli/{stack-status-B_Ipd_-z.js → stack-status-BkkYRlXG.js} +1 -1
- package/dist/cli/{stacks-BYlQ96WS.js → stacks-CiDBH1dB.js} +1 -1
- package/dist/cli/{sync-SqyVHRSJ.js → sync-pq6gmlhG.js} +4 -3
- package/dist/cli/table-dyKddjwo.js +89 -0
- package/dist/cli/{upgrade-D0aLhluU.js → upgrade-BoHb4h9P.js} +3 -3
- package/dist/cli/{upgrade-CY-vj_qh.js → upgrade-Dp9p7A69.js} +5 -4
- package/dist/cli/{version-Bhca9D6q.js → version-CQHFm-ak.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/native/index.d.ts +5 -5
- package/dist/{cloud-event-DcJwder2.d.ts → cloud-event-0pQ9vFNS.d.ts} +1 -1
- package/dist/{compiler-D3UmE7ao.d.ts → compiler-BEeVWXPS.d.ts} +2 -2
- package/dist/{composite-CWJvZgni.d.ts → composite-BJ9s-IJJ.d.ts} +7 -7
- package/dist/config/index.d.ts +5 -5
- package/dist/config/index.js +5 -5
- package/dist/{config-C19McoGo.js → config-bqKaPjst.js} +7 -28
- package/dist/{config-CP-WaboC.js → config-r7njjNgh.js} +3 -3
- package/dist/{connectors-CHGiffYH.d.ts → connectors-uC5baoFV.d.ts} +4 -4
- package/dist/{context-BJoHD20l.d.ts → context-B4TsE2gY.d.ts} +138 -52
- package/dist/{controller-CwGXms17.d.ts → controller-CtwAsnVV.d.ts} +1 -1
- package/dist/{conversion-DlfStnln.d.ts → conversion-g8HzH9My.d.ts} +1 -1
- package/dist/create/index.d.ts +62 -3
- package/dist/create/index.js +67 -4
- package/dist/create/lite/index.d.ts +141 -4
- package/dist/create/lite/index.js +399 -47
- package/dist/credentials/index.d.ts +4 -4
- package/dist/{data-engine-BWoz9lED.d.ts → data-engine-rvbR2C4F.d.ts} +1 -1
- package/dist/{define-BLP6XtoL.d.ts → define-D8_9X5fZ.d.ts} +5 -5
- package/dist/{define-block-DibVN37N.d.ts → define-block-DWVZSZv1.d.ts} +12 -12
- package/dist/{documents-Cup1rpjF.d.ts → documents-BbwYyynk.d.ts} +3 -3
- package/dist/edge/index.d.ts +9 -9
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{embeddings-D_RsS6ow.d.ts → embeddings-I3s5sTDt.d.ts} +1 -1
- package/dist/{ended-B8RyuUXF.d.ts → ended-EZzN9QTM.d.ts} +2 -2
- package/dist/{entitlements-CsZcfllV.d.ts → entitlements-Bw3eYGKJ.d.ts} +2 -2
- package/dist/eve/index.d.ts +5 -5
- package/dist/{eve-B7jxYPCw.d.ts → eve-BfhVFV33.d.ts} +2 -2
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-Cc9DDQWH.d.ts → events-B2qbZps6.d.ts} +1 -1
- package/dist/{executor-DNPm13a9.d.ts → executor-BfirBzOr.d.ts} +4 -4
- package/dist/{executor-C-Ox9eKq.d.ts → executor-BlS0kCrN.d.ts} +1 -1
- package/dist/{executor-hGjrop3A.d.ts → executor-DXQIx4sW.d.ts} +1 -1
- package/dist/expo/index.d.ts +4 -4
- package/dist/{field-errors-6BVg31Yp.d.ts → field-errors-DkzFduux.d.ts} +10 -10
- package/dist/{fields-C3q2ypnO.d.ts → fields-snbaZ14h.d.ts} +1 -1
- package/dist/{filter-evaluate-CPxeae5X.d.ts → filter-evaluate-BRpNiNPG.d.ts} +1 -1
- package/dist/{filter-query-BXLs72G9.d.ts → filter-query-DBt7OKuH.d.ts} +1 -1
- package/dist/{flags-C01PLMJ-.d.ts → flags-DDKTThrO.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/{framework-GlxXiotm.d.ts → framework-DVYTtQXA.d.ts} +7 -7
- package/dist/{gateway-DzI687yd.d.ts → gateway-Ve7cByEr.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +9 -9
- package/dist/{inbox-NDKwSk_H.d.ts → inbox-c8B86Trp.d.ts} +5 -5
- package/dist/{index-C_qlBJ3k.d.ts → index-B4wttiLh.d.ts} +4 -4
- package/dist/{index-BfYDY6eh.d.ts → index-BM6NmKSc.d.ts} +5 -5
- package/dist/{index-CbUCGMqj.d.ts → index-BNgpz_BV.d.ts} +5 -5
- package/dist/{index-C0QuN9_P.d.ts → index-BxckmAFc.d.ts} +106 -121
- package/dist/{index-Cagz4Z2k.d.ts → index-CB66nl14.d.ts} +4 -3
- package/dist/{index-DOHx3JuB.d.ts → index-CBQT_nXf.d.ts} +5 -5
- package/dist/{index-D01wHGSN.d.ts → index-Cw5gGSP8.d.ts} +14 -14
- package/dist/{index-CQhPHHDF.d.ts → index-Cxsnd-OL.d.ts} +1 -1
- package/dist/{index-D1ckLbUM.d.ts → index-pZn6S_iq.d.ts} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/{instances-qz2MCMyK.js → instances-C7qUTjhJ.js} +1 -1
- package/dist/{kit-Dxx3MT8m.d.ts → kit-B8yWCRN7.d.ts} +3 -3
- package/dist/{knowledge-F1IhRI4Q.d.ts → knowledge-CsLPACGJ.d.ts} +5 -5
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-XHoYDlRN.d.ts → list-query-BcU8NnNL.d.ts} +3 -3
- package/dist/mapper/bin.js +7 -7
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/{messaging-C_Pr9tGx.d.ts → messaging-DQP09JsY.d.ts} +4 -4
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +22 -22
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-CPhOcuzl.d.ts → operations-CqmQrTKw.d.ts} +1 -1
- package/dist/{options-BOGo1qCA.js → options-B5E2MGIz.js} +3 -1
- package/dist/{options-D2s7fT1s.js → options-COo7_3MX.js} +2 -1
- package/dist/{options-D32-YxnO.js → options-DhoLMknl.js} +3 -1
- package/dist/orpc/index.d.ts +8 -8
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-DxZgoKwp.d.ts → outbox-BZ712Z3X.d.ts} +4 -4
- package/dist/{pool-wjbAMqc1.d.ts → pool-DDR1ndk7.d.ts} +3 -3
- package/dist/{ports-Bw7uxPd_.d.ts → ports-6LBgr1Aa.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-z-T0l23T.d.ts → postgrest-AJc8hnJU.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BbSWLoXM.js → preset-DCdEnJj9.js} +9 -14
- package/dist/{project-TN03XDsA.js → project-C4NA_van.js} +5 -5
- package/dist/{provider-ClrIplXa.d.ts → provider-CWjzAIX9.d.ts} +1 -1
- package/dist/{push-token-vykw2JXT.d.ts → push-token-BXsrJ7W9.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +8 -8
- package/dist/react/session.d.ts +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/realtime/index.d.ts +6 -6
- package/dist/realtime/index.js +2 -2
- package/dist/{record-form-D2-F4IwS.d.ts → record-form-CubgBrtI.d.ts} +1 -1
- package/dist/{recordings-BBSJt_YV.d.ts → recordings-DeZYx-Kv.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refresh-CCKB1Wa6.d.ts → refresh-D02Pbf5B.d.ts} +1 -1
- package/dist/{refusal-D_tklIEb.d.ts → refusal-B0VmlAxF.d.ts} +2 -2
- package/dist/{resolve-Bj1qD7Dy.d.ts → resolve-CtX6T0c0.d.ts} +1 -1
- package/dist/{resolved-names-Dsf28_Dr.js → resolved-names-iLBOUaib.js} +2 -2
- package/dist/{resource-D8pzB5Qf.d.ts → resource-WxN0IsvB.d.ts} +1 -1
- package/dist/{resource-execute-BSTIfp1D.d.ts → resource-execute-BzqR8DdD.d.ts} +2 -2
- package/dist/{resource-types-D5WEvYtV.d.ts → resource-types-BVbHgTPg.d.ts} +4 -4
- package/dist/{resources-CsZ7RhZC.d.ts → resources-BSbRa0Ab.d.ts} +2 -2
- package/dist/{respond-BzRG-0qc.d.ts → respond-Dzu_-EPH.d.ts} +1 -1
- package/dist/{sales-lines-KxxStRzU.d.ts → sales-lines-BsmrNHe9.d.ts} +1 -1
- package/dist/{scores-B2BiNuVJ.d.ts → scores-Y8TvyJi1.d.ts} +5 -5
- package/dist/server/index.d.ts +24 -24
- package/dist/server/index.js +1 -1
- package/dist/{server-types-BlDiY-ya.d.ts → server-types-BkTIxW_H.d.ts} +11 -11
- package/dist/{session-BGP98Rgj.d.ts → session-BOzx2qHC.d.ts} +6 -6
- package/dist/{session-status-C4t7kbSn.d.ts → session-status-BP8eYVnA.d.ts} +2 -2
- package/dist/{sign-in-CAadgm33.d.ts → sign-in-CfwJAJJL.d.ts} +2 -2
- package/dist/{signers-BKgmVh6A.d.ts → signers-ZmxO1I05.d.ts} +4 -4
- package/dist/{signing-keys-BNDUxpQL.d.ts → signing-keys-udgP7Aod.d.ts} +2 -2
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-Dg3W1ENk.js → sql-CoBySj2F.js} +3617 -1285
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-B0Txid2-.d.ts → sso-CkU_4mtK.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -5
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/streams/index.d.ts +1 -1
- package/dist/{subject-readers-DJbzlm8a.d.ts → subject-readers-CB5Te02u.d.ts} +5 -5
- package/dist/{subject-readers-CeeJJOQ4.js → subject-readers-VHcrWhmq.js} +2 -2
- package/dist/{subjects-NomQg6Eg.d.ts → subjects-BYCL-6hA.d.ts} +15 -1
- package/dist/{subjects-BpIEN1MS.d.ts → subjects-CiBNKy2y.d.ts} +4 -4
- package/dist/{support-D7CMbhRT.d.ts → support-BxyPOFk4.d.ts} +4 -4
- package/dist/{support-view-CIDXF3_H.d.ts → support-view-nqUWKHEs.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/{tags-Dg4Ywmqp.d.ts → tags-Cm48BsOa.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/{tenant-BRmKZ7aq.d.ts → tenant-Ded341Qz.d.ts} +2 -2
- package/dist/testing/index.d.ts +25 -25
- package/dist/testing/index.js +2 -2
- package/dist/{timeline-Cjl-1hiA.d.ts → timeline-DvXtXq5q.d.ts} +5 -5
- package/dist/{topic-F0FKzJyQ.js → topic-DnsNG4Kj.js} +1 -1
- package/dist/{topic-CpsKVBot.d.ts → topic-XDdKzlrn.d.ts} +5 -5
- package/dist/{types-Dp3UCr1e.d.ts → types-B-D6fYx2.d.ts} +1 -1
- package/dist/{types-CjRwmCRP.d.ts → types-BFwB-E1j.d.ts} +2 -2
- package/dist/{types-Czq9Xtpa.d.ts → types-CK2X2wCB.d.ts} +5 -5
- package/dist/{types-DFdg_4yN.d.ts → types-CPl9uJ0G.d.ts} +2 -2
- package/dist/{types-DR1MHh7N.d.ts → types-CwQgFo8c.d.ts} +4 -4
- package/dist/{types-Dr9wZgNy.d.ts → types-DMihLukJ.d.ts} +3 -3
- package/dist/{types-A4yyKEsg.d.ts → types-iCyZ3lMx.d.ts} +4 -4
- package/dist/{types-BdaBfYIw.d.ts → types-nspa5I-a.d.ts} +7 -7
- package/dist/{undo-B1jwnVyN.d.ts → undo-0HkWXASn.d.ts} +2 -2
- package/dist/{usage-Dp45V42p.d.ts → usage-BkWAPkg2.d.ts} +4 -4
- package/dist/{vault-BghaujrZ.d.ts → vault-BkdPmL7f.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/{verify-CI8LgSpv.d.ts → verify-41mZmspj.d.ts} +2 -2
- package/dist/{view-BvNA7EOC.d.ts → view-C8_xvD-j.d.ts} +1 -1
- package/dist/vue/index.d.ts +10 -10
- package/dist/{watch-topic-BaMZX139.d.ts → watch-topic-DpN_GEoS.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-CE8sEK57.js → workflow-sdk-CaEw822d.js} +25 -4
- package/dist/{workflow-sdk-BNsZrcVg.d.ts → workflow-sdk-rg3IbCZC.d.ts} +3 -3
- package/dist/{workflows-B0ZPAQu0.d.ts → workflows-xL6t0TXx.d.ts} +7 -4
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +11 -2
- package/schemas/config-v1.json +45 -351
- package/skills/better-supabase/references/ui-recipes.md +5 -5
- package/dist/cli/add-Bf1fyCWm.js +0 -1
- package/dist/cli/env-xhwXk5Ri.js +0 -1
- package/dist/cli/in-stack-diff-DQTW53Vf.js +0 -257
- package/dist/cli/powersync-Dq-txa0_.js +0 -1
- package/dist/cli/seed-CO3j_bly.js +0 -1
|
@@ -1,4 +1,132 @@
|
|
|
1
1
|
import { a as sqlString } from "./template-Drgg3v2J.js";
|
|
2
|
+
//#region src/core/sql-template-tokens.ts
|
|
3
|
+
const WORD_START = /[A-Za-z_]/;
|
|
4
|
+
const WORD_PART = /[\w$]/;
|
|
5
|
+
function readString(source, start, escapes) {
|
|
6
|
+
let index = start + 1;
|
|
7
|
+
while (index < source.length) {
|
|
8
|
+
const char = source[index];
|
|
9
|
+
if (escapes && char === "\\") {
|
|
10
|
+
index += 2;
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
if (char === "'") {
|
|
14
|
+
if (source[index + 1] === "'") {
|
|
15
|
+
index += 2;
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
return index + 1;
|
|
19
|
+
}
|
|
20
|
+
index += 1;
|
|
21
|
+
}
|
|
22
|
+
return -1;
|
|
23
|
+
}
|
|
24
|
+
function readQuoted(source, start) {
|
|
25
|
+
let index = start + 1;
|
|
26
|
+
while (index < source.length) {
|
|
27
|
+
if (source[index] === "\"") {
|
|
28
|
+
if (source[index + 1] === "\"") {
|
|
29
|
+
index += 2;
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
return index + 1;
|
|
33
|
+
}
|
|
34
|
+
index += 1;
|
|
35
|
+
}
|
|
36
|
+
return -1;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Splits a template into tokens. Strings, quoted identifiers and comments are
|
|
40
|
+
* read whole, so a `;` or `(` inside them is never mistaken for code. A
|
|
41
|
+
* dollar-quote tag (`$$`, `$tag$`), an unterminated string, quoted identifier
|
|
42
|
+
* or block comment, and a stray `{` come back as `dollar` and `error` tokens
|
|
43
|
+
* for the caller to refuse.
|
|
44
|
+
*/
|
|
45
|
+
function tokenizeTemplate(source) {
|
|
46
|
+
const tokens = [];
|
|
47
|
+
let index = 0;
|
|
48
|
+
const push = (token, end) => {
|
|
49
|
+
tokens.push(token);
|
|
50
|
+
index = end;
|
|
51
|
+
};
|
|
52
|
+
while (index < source.length) {
|
|
53
|
+
const char = source[index];
|
|
54
|
+
const rest = source.slice(index);
|
|
55
|
+
if (/\s/.test(char)) {
|
|
56
|
+
const end = index + (/^\s+/.exec(rest)?.[0].length ?? 1);
|
|
57
|
+
push({
|
|
58
|
+
kind: "space",
|
|
59
|
+
text: source.slice(index, end)
|
|
60
|
+
}, end);
|
|
61
|
+
} else if (rest.startsWith("--")) {
|
|
62
|
+
const newline = source.indexOf("\n", index);
|
|
63
|
+
const end = newline === -1 ? source.length : newline;
|
|
64
|
+
push({
|
|
65
|
+
kind: "comment",
|
|
66
|
+
text: source.slice(index, end)
|
|
67
|
+
}, end);
|
|
68
|
+
} else if (rest.startsWith("/*")) {
|
|
69
|
+
const close = source.indexOf("*/", index + 2);
|
|
70
|
+
const end = close === -1 ? source.length : close + 2;
|
|
71
|
+
push({
|
|
72
|
+
kind: close === -1 ? "error" : "comment",
|
|
73
|
+
text: source.slice(index, end)
|
|
74
|
+
}, end);
|
|
75
|
+
} else if (char === "'" || /^[eE]'/.test(rest)) {
|
|
76
|
+
const escapes = char !== "'";
|
|
77
|
+
const end = readString(source, escapes ? index + 1 : index, escapes);
|
|
78
|
+
const stop = end === -1 ? source.length : end;
|
|
79
|
+
push({
|
|
80
|
+
kind: end === -1 ? "error" : "string",
|
|
81
|
+
text: source.slice(index, stop)
|
|
82
|
+
}, stop);
|
|
83
|
+
} else if (char === "\"") {
|
|
84
|
+
const end = readQuoted(source, index);
|
|
85
|
+
const stop = end === -1 ? source.length : end;
|
|
86
|
+
push(end === -1 ? {
|
|
87
|
+
kind: "error",
|
|
88
|
+
text: source.slice(index, stop)
|
|
89
|
+
} : {
|
|
90
|
+
kind: "word",
|
|
91
|
+
text: source.slice(index + 1, stop - 1),
|
|
92
|
+
quoted: true
|
|
93
|
+
}, stop);
|
|
94
|
+
} else if (char === "$") {
|
|
95
|
+
const tag = /^\$(?:[A-Za-z_]\w*)?\$/.exec(rest)?.[0];
|
|
96
|
+
if (tag === void 0) push({
|
|
97
|
+
kind: "punct",
|
|
98
|
+
text: char
|
|
99
|
+
}, index + 1);
|
|
100
|
+
else push({
|
|
101
|
+
kind: "dollar",
|
|
102
|
+
text: tag
|
|
103
|
+
}, index + tag.length);
|
|
104
|
+
} else if (char === "{") {
|
|
105
|
+
const match = /^\{(\w+)\}/.exec(rest);
|
|
106
|
+
if (match === null) push({
|
|
107
|
+
kind: "error",
|
|
108
|
+
text: char
|
|
109
|
+
}, index + 1);
|
|
110
|
+
else push({
|
|
111
|
+
kind: "placeholder",
|
|
112
|
+
text: match[1]
|
|
113
|
+
}, index + match[0].length);
|
|
114
|
+
} else if (WORD_START.test(char)) {
|
|
115
|
+
let end = index + 1;
|
|
116
|
+
while (end < source.length && WORD_PART.test(source[end])) end += 1;
|
|
117
|
+
push({
|
|
118
|
+
kind: "word",
|
|
119
|
+
text: source.slice(index, end),
|
|
120
|
+
quoted: false
|
|
121
|
+
}, end);
|
|
122
|
+
} else push({
|
|
123
|
+
kind: "punct",
|
|
124
|
+
text: char
|
|
125
|
+
}, index + 1);
|
|
126
|
+
}
|
|
127
|
+
return tokens;
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
2
130
|
//#region src/core/access-sql.ts
|
|
3
131
|
const SCOPE = /^[a-z][a-z0-9_]*$/;
|
|
4
132
|
/** Whether `name` can be a scope: it is put unquoted into templates. */
|
|
@@ -136,21 +264,56 @@ const CALL_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
136
264
|
"where"
|
|
137
265
|
]);
|
|
138
266
|
/**
|
|
139
|
-
* What makes a template unsafe to put into generated SQL: a
|
|
140
|
-
*
|
|
267
|
+
* What makes a template unsafe to put into generated SQL: a dollar-quote tag, a
|
|
268
|
+
* `;`, a comment, an unterminated string, quoted identifier or comment, a stray
|
|
269
|
+
* `{`, or a function call without a schema. Strings and quoted identifiers are
|
|
270
|
+
* read whole, so what is inside them never counts.
|
|
141
271
|
*/
|
|
142
272
|
function templateProblems(template) {
|
|
143
|
-
const
|
|
273
|
+
const tokens = tokenizeTemplate(template);
|
|
144
274
|
const problems = [];
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
275
|
+
const seen = /* @__PURE__ */ new Set();
|
|
276
|
+
const report = (problem) => {
|
|
277
|
+
if (!seen.has(problem)) {
|
|
278
|
+
seen.add(problem);
|
|
279
|
+
problems.push(problem);
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
let code = [];
|
|
283
|
+
for (const token of tokens) {
|
|
284
|
+
const last = code.at(-1);
|
|
285
|
+
if ((token.kind === "word" || token.kind === "placeholder") && (last?.kind === "word" || last?.kind === "placeholder") && !(last.kind === "word" && last.quoted)) code[code.length - 1] = {
|
|
286
|
+
kind: "word",
|
|
287
|
+
text: last.text + token.text,
|
|
288
|
+
quoted: false
|
|
289
|
+
};
|
|
290
|
+
else if (token.kind === "placeholder") code.push({
|
|
291
|
+
kind: "word",
|
|
292
|
+
text: token.text,
|
|
293
|
+
quoted: false
|
|
294
|
+
});
|
|
295
|
+
else code.push(token);
|
|
296
|
+
}
|
|
297
|
+
code = code.filter((token) => token.kind !== "space");
|
|
298
|
+
for (const [position, token] of code.entries()) switch (token.kind) {
|
|
299
|
+
case "dollar":
|
|
300
|
+
report(`contains "${token.text}"`);
|
|
301
|
+
break;
|
|
302
|
+
case "comment":
|
|
303
|
+
report(`contains "${token.text.startsWith("--") ? "--" : "/*"}"`);
|
|
304
|
+
break;
|
|
305
|
+
case "error":
|
|
306
|
+
report(token.text === "{" ? "contains a \"{\" that is not a {name} placeholder" : `contains an unterminated ${token.text.startsWith("/*") ? "comment" : token.text.startsWith("\"") ? "identifier" : "string"}`);
|
|
307
|
+
break;
|
|
308
|
+
case "punct":
|
|
309
|
+
if (token.text === ";") report("contains \";\"");
|
|
310
|
+
break;
|
|
311
|
+
case "word": {
|
|
312
|
+
const next = code[position + 1];
|
|
313
|
+
const previous = code[position - 1];
|
|
314
|
+
if (next?.kind === "punct" && next.text === "(" && !(previous?.kind === "punct" && [".", ":"].includes(previous.text)) && (token.quoted || !CALL_KEYWORDS.has(token.text.toLowerCase()))) report(`calls ${token.text}() without a schema`);
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
154
317
|
}
|
|
155
318
|
return problems;
|
|
156
319
|
}
|
|
@@ -161,6 +324,8 @@ const templatePlaceholders = (template) => [...new Set([...template.matchAll(/\{
|
|
|
161
324
|
* error for a placeholder `values` doesn't have.
|
|
162
325
|
*/
|
|
163
326
|
function fillTemplate(where, template, values) {
|
|
327
|
+
const problems = templateProblems(template);
|
|
328
|
+
if (problems.length > 0) throw new TypeError(`${where}: the template ${problems.join(", ")}`);
|
|
164
329
|
return template.replaceAll(/\{(\w+)\}/g, (match, name) => {
|
|
165
330
|
const value = values[name];
|
|
166
331
|
if (value === void 0) throw new TypeError(`${where}: ${match} is not available here. Use ${Object.keys(values).map((key) => `{${key}}`).join(", ")}`);
|
|
@@ -3,10 +3,10 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
4
4
|
import { r as FieldsOf } from "./block-fields-BE7pInWZ.js";
|
|
5
5
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
6
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
7
|
-
import { t as BlockTransport } from "./block-transport-
|
|
8
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
9
|
-
import { u as KnowledgeScope } from "./knowledge-
|
|
6
|
+
import { r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
7
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
8
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
9
|
+
import { u as KnowledgeScope } from "./knowledge-CsLPACGJ.js";
|
|
10
10
|
//#region src/blocks/agents/agents.d.ts
|
|
11
11
|
type AgentVisibility = "private" | "organization" | "public";
|
|
12
12
|
/** A knowledge scope an agent searches: its own (`agent`) or another one. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
3
3
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
4
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
5
|
-
import { t as BlockTransport } from "./block-transport-
|
|
6
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
7
|
-
import { g as JobHandler } from "./types-
|
|
4
|
+
import { r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
5
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
6
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
7
|
+
import { g as JobHandler } from "./types-CK2X2wCB.js";
|
|
8
8
|
//#region src/blocks/ai-cache/ai-cache.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* What an entry caches: a whole generation, a replayable stream, embeddings, or
|
|
@@ -3,11 +3,11 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
4
4
|
import { r as FieldsOf } from "./block-fields-BE7pInWZ.js";
|
|
5
5
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
6
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
7
|
-
import { t as BlockTransport } from "./block-transport-
|
|
8
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
6
|
+
import { r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
7
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
8
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
9
9
|
import { i as AiMessage, s as AiMessageRole } from "./message-Bg4TKA12.js";
|
|
10
|
-
import { g as JobHandler } from "./types-
|
|
10
|
+
import { g as JobHandler } from "./types-CK2X2wCB.js";
|
|
11
11
|
import { n as FinalRunState, r as RunState } from "./run-state-BMCD_1Lt.js";
|
|
12
12
|
//#region src/blocks/ai-chat/durable.d.ts
|
|
13
13
|
/** Where a run is: written by `runs.claim`, `release` and `stop`. */
|
|
@@ -3,12 +3,12 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
4
4
|
import { r as FieldsOf } from "./block-fields-BE7pInWZ.js";
|
|
5
5
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
6
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
7
|
-
import { t as BlockTransport } from "./block-transport-
|
|
8
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
9
|
-
import { g as JobHandler } from "./types-
|
|
6
|
+
import { r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
7
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
8
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
9
|
+
import { g as JobHandler } from "./types-CK2X2wCB.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-DWVZSZv1.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">;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as SessionActor, c as agentClaims, r as AgentActOptions } from "../../actor-CoveJgya.js";
|
|
2
|
-
import { d as KnowledgeSearchOptions, o as KnowledgeHit, r as Knowledge } from "../../knowledge-
|
|
3
|
-
import { t as Agent } from "../../agents-
|
|
4
|
-
import { P as AiToolPolicy, _ as AiModerationAction, b as AiModerationStage, i as AiChat } from "../../ai-chat-
|
|
5
|
-
import { r as AuthorizationOperation } from "../../authorization-
|
|
6
|
-
import { t as OperationTable } from "../../operations-
|
|
7
|
-
import { i as SearchToolOptions, r as ResultsFilter } from "../../embeddings-
|
|
2
|
+
import { d as KnowledgeSearchOptions, o as KnowledgeHit, r as Knowledge } from "../../knowledge-CsLPACGJ.js";
|
|
3
|
+
import { t as Agent } from "../../agents-CM_cCtcr.js";
|
|
4
|
+
import { P as AiToolPolicy, _ as AiModerationAction, b as AiModerationStage, i as AiChat } from "../../ai-chat-B7_vQvxU.js";
|
|
5
|
+
import { r as AuthorizationOperation } from "../../authorization-C7nuWMuB.js";
|
|
6
|
+
import { t as OperationTable } from "../../operations-CqmQrTKw.js";
|
|
7
|
+
import { i as SearchToolOptions, r as ResultsFilter } from "../../embeddings-I3s5sTDt.js";
|
|
8
8
|
import { n as GatewayOptions } from "../../gateway-options-BlVCqgb8.js";
|
|
9
9
|
import { LanguageModel, LanguageModelMiddleware, StopCondition, ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
|
|
10
10
|
//#region src/ai-sdk/agents/authorization.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
2
|
-
import { i as CursorPageOptions } from "../../block-helpers-
|
|
3
|
-
import { g as JobHandler } from "../../types-
|
|
4
|
-
import { c as AiKeys, i as AiBatchItemInput, r as AiBatchItem, t as AiBatch } from "../../types-
|
|
2
|
+
import { i as CursorPageOptions } from "../../block-helpers-D5emQ2O6.js";
|
|
3
|
+
import { g as JobHandler } from "../../types-CK2X2wCB.js";
|
|
4
|
+
import { c as AiKeys, i as AiBatchItemInput, r as AiBatchItem, t as AiBatch } from "../../types-CwQgFo8c.js";
|
|
5
5
|
import { Experimental_BatchItemResult, Experimental_BatchProvider, Experimental_BatchReference, Experimental_BatchStatus, Experimental_StartBatchOptions, Experimental_StartBatchResult } from "ai";
|
|
6
6
|
//#region src/ai-sdk/batches/batches.d.ts
|
|
7
7
|
/** The AI SDK batch calls, replaceable in tests. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DZeA5KS6.js";
|
|
2
|
-
import { t as AiCache } from "../../ai-cache-
|
|
2
|
+
import { t as AiCache } from "../../ai-cache-BTGqckta.js";
|
|
3
3
|
import { LanguageModelMiddleware } from "ai";
|
|
4
4
|
//#region src/ai-sdk/cache/cache.d.ts
|
|
5
5
|
type WrapGenerate = NonNullable<LanguageModelMiddleware["wrapGenerate"]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AssistantOptions, c as AssistantRunResult, i as AssistantModeration, l as AssistantTurn, n as AssistantContext, o as AssistantRequestBody, r as AssistantFinish, s as AssistantRunArgs, t as Assistant, u as createAssistant } from "../../assistant-
|
|
1
|
+
import { a as AssistantOptions, c as AssistantRunResult, i as AssistantModeration, l as AssistantTurn, n as AssistantContext, o as AssistantRequestBody, r as AssistantFinish, s as AssistantRunArgs, t as Assistant, u as createAssistant } from "../../assistant-B49qATbj.js";
|
|
2
2
|
export { type Assistant, type AssistantContext, type AssistantFinish, type AssistantModeration, type AssistantOptions, type AssistantRequestBody, type AssistantRunArgs, type AssistantRunResult, type AssistantTurn, createAssistant };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as Embedder, o as KnowledgeHit } from "../../knowledge-
|
|
2
|
-
import { a as SearchToolResult, c as embedWith, d as searchTool, f as supabaseEmbed, i as SearchToolOptions, l as modelName, n as Reranker, o as SupabaseAiSession, p as toSourceParts, r as ResultsFilter, s as SupabaseEmbedOptions, t as EmbedWithOptions, u as rerankWith } from "../../embeddings-
|
|
1
|
+
import { n as Embedder, o as KnowledgeHit } from "../../knowledge-CsLPACGJ.js";
|
|
2
|
+
import { a as SearchToolResult, c as embedWith, d as searchTool, f as supabaseEmbed, i as SearchToolOptions, l as modelName, n as Reranker, o as SupabaseAiSession, p as toSourceParts, r as ResultsFilter, s as SupabaseEmbedOptions, t as EmbedWithOptions, u as rerankWith } from "../../embeddings-I3s5sTDt.js";
|
|
3
3
|
export { type EmbedWithOptions, type Embedder, type KnowledgeHit, type Reranker, type ResultsFilter, type SearchToolOptions, type SearchToolResult, type SupabaseAiSession, type SupabaseEmbedOptions, embedWith, modelName, rerankWith, searchTool, supabaseEmbed, toSourceParts };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
3
3
|
import { r as AiFilePart } from "../../message-Bg4TKA12.js";
|
|
4
|
-
import { c as AiFileSource, f as AiFiles } from "../../types-
|
|
4
|
+
import { c as AiFileSource, f as AiFiles } from "../../types-DMihLukJ.js";
|
|
5
5
|
import { Experimental_DownloadFunction } from "ai";
|
|
6
6
|
//#region src/ai-sdk/files/files.d.ts
|
|
7
7
|
interface AiFileDownloadOptions {
|
package/dist/ai-sdk/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, t as AsyncResult } from "../result-DZeA5KS6.js";
|
|
3
3
|
import { i as AiMessage } from "../message-Bg4TKA12.js";
|
|
4
|
-
import { g as JobHandler } from "../types-
|
|
5
|
-
import { U as AiSandboxes } from "../ai-chat-
|
|
4
|
+
import { g as JobHandler } from "../types-CK2X2wCB.js";
|
|
5
|
+
import { U as AiSandboxes } from "../ai-chat-B7_vQvxU.js";
|
|
6
6
|
import { n as GatewayOptions, r as gatewayOptions, t as GatewayContext } from "../gateway-options-BlVCqgb8.js";
|
|
7
|
-
import { c as AiKeys, p as ResolvedProviderKey } from "../types-
|
|
8
|
-
import { a as Usage } from "../usage-
|
|
9
|
-
import { a as GatewayClient, c as UsageSource, d as modelInputOf, f as problem429, h as usageQuota, i as CostBackfillPayload, l as costBackfill, m as usageOf, n as AiUsageMeters, o as GatewayModelEntry, p as usageEntries, r as CostBackfillOptions, s as ModelCatalogRefreshOptions, t as AiUsage, u as modelCatalogRefresh } from "../gateway-
|
|
7
|
+
import { c as AiKeys, p as ResolvedProviderKey } from "../types-CwQgFo8c.js";
|
|
8
|
+
import { a as Usage } from "../usage-BkWAPkg2.js";
|
|
9
|
+
import { a as GatewayClient, c as UsageSource, d as modelInputOf, f as problem429, h as usageQuota, i as CostBackfillPayload, l as costBackfill, m as usageOf, n as AiUsageMeters, o as GatewayModelEntry, p as usageEntries, r as CostBackfillOptions, s as ModelCatalogRefreshOptions, t as AiUsage, u as modelCatalogRefresh } from "../gateway-Ve7cByEr.js";
|
|
10
10
|
import { i as fromModelMessages, n as ModelApproval, r as ModelSource, t as FromModelMessagesOptions } from "../model-messages-DrR4lZ_c.js";
|
|
11
11
|
import { i as ThreadSummarizer, o as ThreadSummaryInput, s as ThreadSummaryOutput } from "../summaries-8jQTELIX.js";
|
|
12
12
|
import { Experimental_SandboxSession, LanguageModel, Telemetry, UIMessage } from "ai";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError, t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
2
|
-
import { i as CredentialRef, r as CredentialProvider } from "../../provider-
|
|
3
|
-
import { r as ConnectorServer, s as Connectors } from "../../connectors-
|
|
4
|
-
import { n as VaultCredentials } from "../../vault-
|
|
2
|
+
import { i as CredentialRef, r as CredentialProvider } from "../../provider-CWjzAIX9.js";
|
|
3
|
+
import { r as ConnectorServer, s as Connectors } from "../../connectors-uC5baoFV.js";
|
|
4
|
+
import { n as VaultCredentials } from "../../vault-BkdPmL7f.js";
|
|
5
5
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, t as SupabaseMcpFeature } from "../../supabase-mcp-Z4vtsuoO.js";
|
|
6
6
|
import { ToolSet } from "ai";
|
|
7
7
|
import { ElicitResult, ElicitationRequest, MCPClient, OAuthClientMetadata, OAuthClientProvider } from "@ai-sdk/mcp";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as JobHandler } from "../../types-
|
|
2
|
-
import { r as ResultsFilter } from "../../embeddings-
|
|
3
|
-
import { i as MemoryHit, n as MemoryCommand, s as MemoryNamespace, t as Memory } from "../../types-
|
|
1
|
+
import { g as JobHandler } from "../../types-CK2X2wCB.js";
|
|
2
|
+
import { r as ResultsFilter } from "../../embeddings-I3s5sTDt.js";
|
|
3
|
+
import { i as MemoryHit, n as MemoryCommand, s as MemoryNamespace, t as Memory } from "../../types-iCyZ3lMx.js";
|
|
4
4
|
import { LanguageModel, Tool } from "ai";
|
|
5
5
|
//#region src/ai-sdk/memory/memory.d.ts
|
|
6
6
|
/** The memory tool for any model, with the commands of Anthropic's memory tool. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as AiMessage } from "../../message-Bg4TKA12.js";
|
|
2
|
-
import { A as AiStoredMessageStatus, E as AiRunStatus, i as AiChat } from "../../ai-chat-
|
|
2
|
+
import { A as AiStoredMessageStatus, E as AiRunStatus, i as AiChat } from "../../ai-chat-B7_vQvxU.js";
|
|
3
3
|
import { n as GatewayOptions } from "../../gateway-options-BlVCqgb8.js";
|
|
4
4
|
import { o as StreamStore } from "../../store-CpheI-lN.js";
|
|
5
|
-
import { i as CostBackfillPayload, t as AiUsage } from "../../gateway-
|
|
6
|
-
import { n as AssistantContext, t as Assistant } from "../../assistant-
|
|
5
|
+
import { i as CostBackfillPayload, t as AiUsage } from "../../gateway-Ve7cByEr.js";
|
|
6
|
+
import { n as AssistantContext, t as Assistant } from "../../assistant-B49qATbj.js";
|
|
7
7
|
import { r as ModelSource } from "../../model-messages-DrR4lZ_c.js";
|
|
8
8
|
import { LanguageModelUsage, ModelMessage } from "ai";
|
|
9
9
|
import { ModelCallStreamPart } from "@ai-sdk/workflow";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { St as AnyPlugin, d as MutationIntent, ot as SchemaMeta } from "./types-
|
|
2
|
-
import { bt as EventMap } from "./events-
|
|
1
|
+
import { St as AnyPlugin, d as MutationIntent, ot as SchemaMeta } from "./types-CPl9uJ0G.js";
|
|
2
|
+
import { bt as EventMap } from "./events-B2qbZps6.js";
|
|
3
3
|
import { o as Authorizer } from "./authorizer-B6X09otb.js";
|
|
4
|
-
import { p as DbBlockSource } from "./define-
|
|
5
|
-
import { n as CloudEventOptions } from "./cloud-event-
|
|
4
|
+
import { p as DbBlockSource } from "./define-D8_9X5fZ.js";
|
|
5
|
+
import { n as CloudEventOptions } from "./cloud-event-0pQ9vFNS.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";
|
|
8
8
|
import { c as SpecDiagnostic, i as DocumentOf, l as VersionOf, s as RenderedOf, t as AnyDocumentFormat } from "./format-u-65igKI.js";
|
|
9
|
-
import { a as ResourcePlan, o as StandardLike, r as ResourceDescription, t as ErrorResponse } from "./resource-
|
|
9
|
+
import { a as ResourcePlan, o as StandardLike, r as ResourceDescription, t as ErrorResponse } from "./resource-WxN0IsvB.js";
|
|
10
10
|
import { t as SPEC_PINS } from "./spec-pins-BZkKfwY8.js";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
//#region src/openapi/types.d.ts
|
|
@@ -3,10 +3,10 @@ import { t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
4
4
|
import { r as FieldsOf } from "./block-fields-BE7pInWZ.js";
|
|
5
5
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
6
|
-
import { n as AuthResolver } from "./resolve-
|
|
7
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
8
|
-
import { t as BlockTransport } from "./block-transport-
|
|
9
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
6
|
+
import { n as AuthResolver } from "./resolve-CtX6T0c0.js";
|
|
7
|
+
import { r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
8
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
9
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
10
10
|
import { JWTClaims } from "@supabase/server";
|
|
11
11
|
//#region src/blocks/api-keys/api-keys.d.ts
|
|
12
12
|
type ApiKeyState = "active" | "grace" | "revoked" | "expired";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DBV730sF.js";
|
|
4
4
|
import { r as FieldsOf } from "./block-fields-BE7pInWZ.js";
|
|
5
|
-
import { $ as RecordRef } from "./types-
|
|
5
|
+
import { $ as RecordRef } from "./types-CPl9uJ0G.js";
|
|
6
6
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
7
|
-
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-
|
|
8
|
-
import { t as BlockTransport } from "./block-transport-
|
|
9
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
10
|
-
import { i as AuthorizationHooks, n as Approver } from "./authorization-hooks-
|
|
7
|
+
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-D5emQ2O6.js";
|
|
8
|
+
import { t as BlockTransport } from "./block-transport-9EUA3q_I.js";
|
|
9
|
+
import { n as BlockHooks } from "./block-hooks-B8itxzEE.js";
|
|
10
|
+
import { i as AuthorizationHooks, n as Approver } from "./authorization-hooks-BWhkMZfH.js";
|
|
11
11
|
//#region src/blocks/approvals/approvals.d.ts
|
|
12
12
|
interface ApprovalsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
|
|
13
13
|
readonly transport: BlockTransport;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as DbError } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { i as AiMessage } from "./message-Bg4TKA12.js";
|
|
3
|
-
import { E as AiRunStatus, F as AiUserMessageTrigger, _ as AiModerationAction, i as AiChat, u as AiChatRecord } from "./ai-chat-
|
|
3
|
+
import { E as AiRunStatus, F as AiUserMessageTrigger, _ as AiModerationAction, i as AiChat, u as AiChatRecord } from "./ai-chat-B7_vQvxU.js";
|
|
4
4
|
import { n as GatewayOptions } from "./gateway-options-BlVCqgb8.js";
|
|
5
5
|
import { o as StreamStore } from "./store-CpheI-lN.js";
|
|
6
|
-
import { i as CostBackfillPayload, t as AiUsage } from "./gateway-
|
|
6
|
+
import { i as CostBackfillPayload, t as AiUsage } from "./gateway-Ve7cByEr.js";
|
|
7
7
|
import { LanguageModelUsage, ModelMessage, UIMessage, UIMessageChunk, UIMessageStreamOnEndCallback } from "ai";
|
|
8
8
|
//#region src/ai-sdk/chat/assistant.d.ts
|
|
9
9
|
/** Who asks, for one request. */
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels } from "../types-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels } from "../types-CPl9uJ0G.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-
|
|
5
|
-
import { P as StorageImageOptions } from "../index-
|
|
6
|
-
import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-
|
|
7
|
-
import { t as RefusalRedirects } from "../refusal-
|
|
8
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
3
|
+
import { t as BetterSupabase } from "../define-D8_9X5fZ.js";
|
|
4
|
+
import { n as BetterServer } from "../server-types-BkTIxW_H.js";
|
|
5
|
+
import { P as StorageImageOptions } from "../index-Cxsnd-OL.js";
|
|
6
|
+
import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-B8yWCRN7.js";
|
|
7
|
+
import { t as RefusalRedirects } from "../refusal-B0VmlAxF.js";
|
|
8
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-DVYTtQXA.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/astro/index.d.ts
|
|
11
11
|
/**
|
|
@@ -647,7 +647,7 @@ interface BlockNameRegistry {
|
|
|
647
647
|
readonly "contracts": "id" | "tenant" | "employee" | "startsOn" | "endsOn" | "hoursPerWeek" | "salary" | "currency" | "salaryPeriod" | "note" | "createdBy" | "createdAt";
|
|
648
648
|
};
|
|
649
649
|
readonly functions: "add_employee_contract" | "create_employee" | "employee_contracts" | "employee_private_details" | "offboard_employee" | "org_chart" | "reports_of" | "save_employee_private_details" | "update_employees";
|
|
650
|
-
readonly actions: "read" | "write" | "viewSensitive";
|
|
650
|
+
readonly actions: "read" | "write" | "viewSensitive" | "create" | "contractsRead" | "contractsWrite" | "privateDetailsWrite";
|
|
651
651
|
readonly hooks: "before_employee_create" | "after_employee_create" | "before_employee_update" | "after_employee_update" | "before_employee_offboard" | "after_employee_offboard";
|
|
652
652
|
readonly entities: {
|
|
653
653
|
readonly "employee": "id" | "tenant_id" | "user_id" | "name" | "email" | "job_title" | "team_id" | "manager_id" | "employment_type" | "status" | "start_date" | "end_date" | "offboard_reason" | "origin_type" | "origin_id" | "created_by" | "created_at" | "updated_at" | "first_name" | "last_name";
|
|
@@ -808,7 +808,7 @@ interface BlockNameRegistry {
|
|
|
808
808
|
readonly "scorecardScores": "tenant" | "scorecard" | "criterion" | "score" | "notes";
|
|
809
809
|
};
|
|
810
810
|
readonly functions: "application_detail" | "apply_to_job" | "close_application" | "save_job" | "schedule_interview" | "submit_scorecard";
|
|
811
|
-
readonly actions: "read" | "write" | "manage";
|
|
811
|
+
readonly actions: "read" | "write" | "manage" | "create" | "jobsCreate" | "jobsUpdate" | "score";
|
|
812
812
|
readonly hooks: "before_application_hire" | "after_application_hire";
|
|
813
813
|
readonly entities: {
|
|
814
814
|
readonly "job": "id" | "tenant_id" | "title" | "team_id" | "location" | "employment_type" | "description" | "hiring_manager_user_id" | "status" | "opened_at" | "closed_at" | "created_at" | "updated_at";
|
|
@@ -1688,7 +1688,7 @@ interface BlockNameRegistry {
|
|
|
1688
1688
|
readonly "iterations": "id" | "tenant" | "team" | "name" | "startsOn" | "endsOn" | "createdAt";
|
|
1689
1689
|
};
|
|
1690
1690
|
readonly functions: "archive_work_item" | "create_work_item" | "delete_work_item" | "delete_work_item_checklist_item" | "get_work_item" | "list_work_item_checklist" | "list_work_items" | "save_iteration" | "save_project" | "save_work_item_checklist_item" | "set_work_item_assignees" | "update_work_items" | "work_item_tree";
|
|
1691
|
-
readonly actions: "read" | "write" | "manage";
|
|
1691
|
+
readonly actions: "read" | "write" | "manage" | "create" | "delete";
|
|
1692
1692
|
readonly hooks: "before_work_item_create" | "after_work_item_create" | "before_work_item_update" | "after_work_item_update";
|
|
1693
1693
|
readonly entities: {
|
|
1694
1694
|
readonly "work_item": "id" | "tenant_id" | "number" | "identifier" | "title" | "body" | "parent_id" | "team_id" | "project_id" | "iteration_id" | "priority" | "estimate" | "progress" | "start_at" | "end_at" | "due_at" | "pipeline_id" | "stage_id" | "stage_entered_at" | "state" | "close_reason" | "closed_at" | "locked" | "rank" | "archived_at" | "recurs_from" | "created_by" | "created_at" | "updated_at";
|
|
@@ -2184,7 +2184,7 @@ type CollectionsSqlOptions = {
|
|
|
2184
2184
|
//#region src/blocks/comments/options.d.ts
|
|
2185
2185
|
/**
|
|
2186
2186
|
* `blocks.comments.options`. The body limit, documents and extra columns are
|
|
2187
|
-
* the messaging block's options, and the records come from `config.
|
|
2187
|
+
* the messaging block's options, and the records come from `config.subjects`.
|
|
2188
2188
|
*/
|
|
2189
2189
|
type CommentsSqlOptions = {
|
|
2190
2190
|
readonly follow?: boolean;
|
|
@@ -2239,6 +2239,18 @@ type CustomFieldsSqlOptions = {
|
|
|
2239
2239
|
* encrypted or sensitive value. Needs the audit block.
|
|
2240
2240
|
*/
|
|
2241
2241
|
readonly auditReads?: boolean;
|
|
2242
|
+
/**
|
|
2243
|
+
* Keyed layout: the type of the `rank` column. `text` (the default) holds
|
|
2244
|
+
* fractional keys in `collate "C"` order; `integer` holds whole numbers, cast
|
|
2245
|
+
* to the type of the app's own rank column.
|
|
2246
|
+
*/
|
|
2247
|
+
readonly rankType?: "text" | "integer";
|
|
2248
|
+
/**
|
|
2249
|
+
* Keyed layout: what `read_field_values` checks. `tenant` (the default) needs
|
|
2250
|
+
* `permissions.read` in the tenant; `record` needs only that the caller can
|
|
2251
|
+
* read the record, through `can_subject(type, id, 'read')`.
|
|
2252
|
+
*/
|
|
2253
|
+
readonly readAccess?: "tenant" | "record";
|
|
2242
2254
|
};
|
|
2243
2255
|
//#endregion
|
|
2244
2256
|
//#region src/blocks/data-lifecycle/options.d.ts
|
|
@@ -2320,6 +2332,13 @@ type EmployeesSqlOptions = {
|
|
|
2320
2332
|
readonly name?: "single" | "split";
|
|
2321
2333
|
readonly privateDetails?: "json" | "flat";
|
|
2322
2334
|
readonly contracts?: "append" | "editable";
|
|
2335
|
+
/** Whether the app's salary column holds minor or major units. */
|
|
2336
|
+
readonly salaryUnits?: "minor" | "major";
|
|
2337
|
+
/**
|
|
2338
|
+
* With editable contracts, `allow` adds a contract without the overlap check
|
|
2339
|
+
* and leaves the previous one as it is.
|
|
2340
|
+
*/
|
|
2341
|
+
readonly contractOverlap?: "end" | "allow";
|
|
2323
2342
|
};
|
|
2324
2343
|
//#endregion
|
|
2325
2344
|
//#region src/blocks/expenses/options.d.ts
|
|
@@ -2873,6 +2892,8 @@ type TasksSqlOptions = {
|
|
|
2873
2892
|
readonly prefix?: string;
|
|
2874
2893
|
readonly maxAssignees?: number;
|
|
2875
2894
|
readonly extraColumns?: ExtraColumns;
|
|
2895
|
+
/** Whether an item's author can delete it without the delete key. */
|
|
2896
|
+
readonly authorCanDelete?: boolean;
|
|
2876
2897
|
};
|
|
2877
2898
|
//#endregion
|
|
2878
2899
|
//#region src/blocks/teams/options.d.ts
|
|
@@ -3207,7 +3228,7 @@ interface EntityConfig<Columns extends string = string> {
|
|
|
3207
3228
|
* entity's logical columns: `/tasks/{id}`. A list page needs none.
|
|
3208
3229
|
*/
|
|
3209
3230
|
readonly url?: `${string}{${Columns}}${string}` | (string & {});
|
|
3210
|
-
/** `false` keeps the entity out of `config.
|
|
3231
|
+
/** `false` keeps the entity out of `config.subjects`. */
|
|
3211
3232
|
readonly subject?: false;
|
|
3212
3233
|
}
|
|
3213
3234
|
/**
|
|
@@ -3612,7 +3633,7 @@ interface AuthorizationFunctions {
|
|
|
3612
3633
|
* `{resource}` is a resource name as the provider spells it in SQL (such as
|
|
3613
3634
|
* `file_node`), unquoted, so it can be part of a function name; `{ids}` is a
|
|
3614
3635
|
* `text[]` of the candidate ids, which a provider may use to limit the work.
|
|
3615
|
-
* `can_subject` calls it for a `config.
|
|
3636
|
+
* `can_subject` calls it for a `config.subjects.<type>.permissions.<action>`
|
|
3616
3637
|
* entry with `rows`.
|
|
3617
3638
|
*/
|
|
3618
3639
|
readonly rowsWith?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ft as RequestContext } from "./types-
|
|
2
|
-
import { r as AuthState } from "./resolve-
|
|
1
|
+
import { Ft as RequestContext } from "./types-CPl9uJ0G.js";
|
|
2
|
+
import { r as AuthState } from "./resolve-CtX6T0c0.js";
|
|
3
3
|
//#region src/core/contracts/authorization-hooks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* An email address or chat user, as a bot or a mail webhook sees it. The value
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError, n as BetterResultApi, t as AsyncResult } from "../result-DZeA5KS6.js";
|
|
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-
|
|
3
|
-
import { $ as SearchArgs, A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, E as ManyResult, F as PageOf, G as UpsertArgs, H as RpcArgs, I as PlainName, J as WriteManyArgs, K as UpsertManyArgs, L as RawRpcOptions, M as OverloadArgs, N as OverloadReturns, O as NoArgName, Ot as CountArgs, P as OverloadedName, Pt as ListArgs, S as DeleteExt, T as ManyOutcome, U as RpcOptions, V as RowFilter, Vt as Payload, W as UpdateArgs, bt as AggregateArgs, et as SearchScore, j as OffsetRangeArgs, lt as ReadSetResult, mt as QuerySpec, nt as ReadSet, pt as InferResult, q as WriteArgs, tt as InferReadSetParams, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "../define-
|
|
4
|
-
import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-
|
|
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-CPl9uJ0G.js";
|
|
3
|
+
import { $ as SearchArgs, A as OffsetPageArgs, At as GetArgs, B as Returned, C as FindExt, Ct as AggregateResult, D as ManyWriteArgs, E as ManyResult, F as PageOf, G as UpsertArgs, H as RpcArgs, I as PlainName, J as WriteManyArgs, K as UpsertManyArgs, L as RawRpcOptions, M as OverloadArgs, N as OverloadReturns, O as NoArgName, Ot as CountArgs, P as OverloadedName, Pt as ListArgs, S as DeleteExt, T as ManyOutcome, U as RpcOptions, V as RowFilter, Vt as Payload, W as UpdateArgs, bt as AggregateArgs, et as SearchScore, j as OffsetRangeArgs, lt as ReadSetResult, mt as QuerySpec, nt as ReadSet, pt as InferResult, q as WriteArgs, tt as InferReadSetParams, v as CursorPageArgs, w as GetKey, x as DeleteArgs, y as Db } from "../define-D8_9X5fZ.js";
|
|
4
|
+
import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-BcU8NnNL.js";
|
|
5
5
|
import { Result } from "better-result";
|
|
6
6
|
//#region src/better-result/better-result.d.ts
|
|
7
7
|
/**
|