@seedprotocol/sdk 0.4.31 → 0.5.1
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/BasePathResolver-BDgc7c4T.js +485 -0
- package/dist/BasePathResolver-BDgc7c4T.js.map +1 -0
- package/dist/{ModelProperty-e_hXSFvf.js → ModelProperty-D-ysg8zA.js} +37 -43
- package/dist/ModelProperty-D-ysg8zA.js.map +1 -0
- package/dist/{Schema-DonRkUOJ.js → Schema-CyCftnKI.js} +40 -40
- package/dist/{Schema-DonRkUOJ.js.map → Schema-CyCftnKI.js.map} +1 -1
- package/dist/{SchemaValidationService-DcmfhQae.js → SchemaValidationService-POM6jHbJ.js} +9 -5
- package/dist/{SchemaValidationService-DcmfhQae.js.map → SchemaValidationService-POM6jHbJ.js.map} +1 -1
- package/dist/{backfillMetadataPropertyIds-CKTfvFgQ.js → backfillMetadataPropertyIds-DzZw57iJ.js} +3 -11
- package/dist/{backfillMetadataPropertyIds-CKTfvFgQ.js.map → backfillMetadataPropertyIds-DzZw57iJ.js.map} +1 -1
- package/dist/cjs/{ModelProperty-BQYU5hPQ.js → ModelProperty-CmuGJvyi.js} +25 -26
- package/dist/cjs/{ModelProperty-BQYU5hPQ.js.map → ModelProperty-CmuGJvyi.js.map} +1 -1
- package/dist/cjs/{Schema-BcRHcQ0W.js → Schema-gpFnZMhB.js} +28 -29
- package/dist/cjs/{Schema-BcRHcQ0W.js.map → Schema-gpFnZMhB.js.map} +1 -1
- package/dist/cjs/{SchemaValidationService-CQNDgyZl.js → SchemaValidationService-E3xTSRai.js} +9 -10
- package/dist/cjs/{SchemaValidationService-CQNDgyZl.js.map → SchemaValidationService-E3xTSRai.js.map} +1 -1
- package/dist/cjs/{backfillMetadataPropertyIds-Dn4oVmEv.js → backfillMetadataPropertyIds-_bivrvRs.js} +11 -12
- package/dist/cjs/{backfillMetadataPropertyIds-Dn4oVmEv.js.map → backfillMetadataPropertyIds-_bivrvRs.js.map} +1 -1
- package/dist/cjs/eas-BwDKJmlb.js +112 -0
- package/dist/cjs/eas-BwDKJmlb.js.map +1 -0
- package/dist/cjs/{getItem-DpnPrzl3.js → getItem-MShQw3sz.js} +11 -12
- package/dist/cjs/{getItem-DpnPrzl3.js.map → getItem-MShQw3sz.js.map} +1 -1
- package/dist/cjs/{getPublishPayload-CGKMEL3H.js → getPublishPayload-C1nOOXp_.js} +93 -83
- package/dist/cjs/getPublishPayload-C1nOOXp_.js.map +1 -0
- package/dist/cjs/{getPublishUploads-DeI0f2UN.js → getPublishUploads-BjgxgrKD.js} +17 -18
- package/dist/cjs/{getPublishUploads-DeI0f2UN.js.map → getPublishUploads-BjgxgrKD.js.map} +1 -1
- package/dist/cjs/{getSegmentedItemProperties-BgS_FhAx.js → getSegmentedItemProperties-Cuw7wcxb.js} +64 -15
- package/dist/cjs/getSegmentedItemProperties-Cuw7wcxb.js.map +1 -0
- package/dist/cjs/{index-BnAqr2le.js → index-9Z2FOvLD.js} +12 -13
- package/dist/cjs/index-9Z2FOvLD.js.map +1 -0
- package/dist/cjs/{index-ByozbTn_.js → index-vk2DeF2D.js} +1237 -3235
- package/dist/cjs/index-vk2DeF2D.js.map +1 -0
- package/dist/cjs/index.browser-BSf8HpnU.js +22 -0
- package/dist/cjs/index.browser-BSf8HpnU.js.map +1 -0
- package/dist/cjs/{ownership-CsWuaNfH.js → ownership-DhWda0J9.js} +11 -25
- package/dist/cjs/{ownership-CsWuaNfH.js.map → ownership-DhWda0J9.js.map} +1 -1
- package/dist/cjs/{property-CeR45LMx.js → property-D3Ww2_Qh.js} +13 -14
- package/dist/cjs/{property-CeR45LMx.js.map → property-D3Ww2_Qh.js.map} +1 -1
- package/dist/cjs/{syncDbWithEas-CA2Lum5V.js → syncDbWithEas-Dht3_7UD.js} +26 -39
- package/dist/cjs/syncDbWithEas-Dht3_7UD.js.map +1 -0
- package/dist/configurePlatform-R5neRbQ9.js +27 -0
- package/dist/configurePlatform-R5neRbQ9.js.map +1 -0
- package/dist/constants-B5S5JPDK.js +660 -0
- package/dist/constants-B5S5JPDK.js.map +1 -0
- package/dist/constants-DMHTYMgJ.js +120 -0
- package/dist/constants-DMHTYMgJ.js.map +1 -0
- package/dist/db-Cvh84NY7.js +1972 -0
- package/dist/db-Cvh84NY7.js.map +1 -0
- package/dist/eas-D9b7z2Wn.js +68 -0
- package/dist/eas-D9b7z2Wn.js.map +1 -0
- package/dist/{getItem-GOXWo_Iy.js → getItem-B81V3m4S.js} +10 -6
- package/dist/{getItem-GOXWo_Iy.js.map → getItem-B81V3m4S.js.map} +1 -1
- package/dist/{getPublishPayload-D16enahU.js → getPublishPayload-CNYsn8-6.js} +87 -74
- package/dist/getPublishPayload-CNYsn8-6.js.map +1 -0
- package/dist/{getPublishUploads-wGqH19UY.js → getPublishUploads-D9rPHkB7.js} +14 -10
- package/dist/{getPublishUploads-wGqH19UY.js.map → getPublishUploads-D9rPHkB7.js.map} +1 -1
- package/dist/{getSegmentedItemProperties-Be3kYWY3.js → getSegmentedItemProperties-Bg3_b-b1.js} +18 -15
- package/dist/getSegmentedItemProperties-Bg3_b-b1.js.map +1 -0
- package/dist/{index-BcXKZQpX.js → index--F3Wolt5.js} +1171 -5452
- package/dist/index--F3Wolt5.js.map +1 -0
- package/dist/{index-BFyMxc7e.js → index-QMrBK-L3.js} +2 -2
- package/dist/index-QMrBK-L3.js.map +1 -0
- package/dist/index-oi4roUVf.js +22 -0
- package/dist/index-oi4roUVf.js.map +1 -0
- package/dist/index.node-Bow8kHew.js +503 -0
- package/dist/index.node-Bow8kHew.js.map +1 -0
- package/dist/main.cjs +16 -15
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +31 -22
- package/dist/main.js.map +1 -1
- package/dist/node.js +37 -363
- package/dist/node.js.map +1 -1
- package/dist/{ownership-C17YhE7J.js → ownership-BF_ZUKIp.js} +13 -9
- package/dist/{ownership-C17YhE7J.js.map → ownership-BF_ZUKIp.js.map} +1 -1
- package/dist/platform.browser.js +3499 -0
- package/dist/platform.browser.js.map +1 -0
- package/dist/platform.node.js +19 -0
- package/dist/platform.node.js.map +1 -0
- package/dist/{property-CRAau-Q-.js → property-BdyDfcSc.js} +14 -11
- package/dist/property-BdyDfcSc.js.map +1 -0
- package/dist/src/Item/Item.d.ts.map +1 -1
- package/dist/src/Item/service/actors/fetchDataFromEas.d.ts.map +1 -1
- package/dist/src/Model/service/actors/createModelProperties.d.ts.map +1 -1
- package/dist/src/Model/service/modelMachine.d.ts +1 -1
- package/dist/src/browser/db/Db.d.ts +17 -18
- package/dist/src/browser/db/Db.d.ts.map +1 -1
- package/dist/src/browser/helpers/ArweaveClient.d.ts +10 -27
- package/dist/src/browser/helpers/ArweaveClient.d.ts.map +1 -1
- package/dist/src/browser/helpers/EasClient.d.ts +6 -4
- package/dist/src/browser/helpers/EasClient.d.ts.map +1 -1
- package/dist/src/browser/helpers/FileManager.d.ts +27 -26
- package/dist/src/browser/helpers/FileManager.d.ts.map +1 -1
- package/dist/src/browser/helpers/PathResolver.d.ts +6 -5
- package/dist/src/browser/helpers/PathResolver.d.ts.map +1 -1
- package/dist/src/browser/helpers/QueryClient.d.ts +6 -5
- package/dist/src/browser/helpers/QueryClient.d.ts.map +1 -1
- package/dist/src/browser/workers/filesDownload.d.ts.map +1 -1
- package/dist/src/client/actors/platformClassesInit.d.ts.map +1 -1
- package/dist/src/client/actors/processSchemaFiles.d.ts.map +1 -1
- package/dist/src/client/actors/saveConfig.d.ts.map +1 -1
- package/dist/src/db/Db/BaseDb.d.ts +6 -26
- package/dist/src/db/Db/BaseDb.d.ts.map +1 -1
- package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
- package/dist/src/db/write/createMetadata.d.ts.map +1 -1
- package/dist/src/db/write/updateMetadata.d.ts.map +1 -1
- package/dist/src/eas.d.ts +4 -37
- package/dist/src/eas.d.ts.map +1 -1
- package/dist/src/helpers/ArweaveClient/BaseArweaveClient.d.ts +1 -101
- package/dist/src/helpers/ArweaveClient/BaseArweaveClient.d.ts.map +1 -1
- package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts +1 -51
- package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts.map +1 -1
- package/dist/src/helpers/ArweaveClient/index.d.ts +2 -2
- package/dist/src/helpers/ArweaveClient/index.d.ts.map +1 -1
- package/dist/src/helpers/ArweaveClient/selectReadGateway.d.ts +1 -15
- package/dist/src/helpers/ArweaveClient/selectReadGateway.d.ts.map +1 -1
- package/dist/src/helpers/ArweaveClient/uploadApiVerification.d.ts +1 -22
- package/dist/src/helpers/ArweaveClient/uploadApiVerification.d.ts.map +1 -1
- package/dist/src/helpers/EasClient/BaseEasClient.d.ts +1 -9
- package/dist/src/helpers/EasClient/BaseEasClient.d.ts.map +1 -1
- package/dist/src/helpers/FileManager/BaseFileManager.d.ts +4 -2
- package/dist/src/helpers/FileManager/BaseFileManager.d.ts.map +1 -1
- package/dist/src/helpers/FileManager/IFileManager.d.ts +44 -0
- package/dist/src/helpers/FileManager/IFileManager.d.ts.map +1 -0
- package/dist/src/helpers/PathResolver/BasePathResolver.d.ts +16 -12
- package/dist/src/helpers/PathResolver/BasePathResolver.d.ts.map +1 -1
- package/dist/src/helpers/PathResolver/IPathResolver.d.ts +16 -0
- package/dist/src/helpers/PathResolver/IPathResolver.d.ts.map +1 -0
- package/dist/src/helpers/QueryClient/BaseQueryClient.d.ts +1 -6
- package/dist/src/helpers/QueryClient/BaseQueryClient.d.ts.map +1 -1
- package/dist/src/helpers/constants.d.ts +4 -22
- package/dist/src/helpers/constants.d.ts.map +1 -1
- package/dist/src/helpers/db.d.ts.map +1 -1
- package/dist/src/helpers/easPropertyCanonical.d.ts +1 -14
- package/dist/src/helpers/easPropertyCanonical.d.ts.map +1 -1
- package/dist/src/helpers/easRevokedFilter.d.ts +1 -9
- package/dist/src/helpers/easRevokedFilter.d.ts.map +1 -1
- package/dist/src/helpers/easUid.d.ts +1 -12
- package/dist/src/helpers/easUid.d.ts.map +1 -1
- package/dist/src/helpers/ethereumUtils.d.ts +5 -0
- package/dist/src/helpers/ethereumUtils.d.ts.map +1 -0
- package/dist/src/helpers/file/fetchAll/index.d.ts +1 -1
- package/dist/src/helpers/file/fetchAll/index.d.ts.map +1 -1
- package/dist/src/helpers/gateway/gatewayState.d.ts +2 -0
- package/dist/src/helpers/gateway/gatewayState.d.ts.map +1 -0
- package/dist/src/helpers/gateway/resolveSeedGatewayEndpoints.d.ts +2 -0
- package/dist/src/helpers/gateway/resolveSeedGatewayEndpoints.d.ts.map +1 -0
- package/dist/src/helpers/gateway/seedGatewayConfig.d.ts +2 -0
- package/dist/src/helpers/gateway/seedGatewayConfig.d.ts.map +1 -0
- package/dist/src/helpers/generateId.d.ts +2 -0
- package/dist/src/helpers/generateId.d.ts.map +1 -0
- package/dist/src/helpers/getSchemaForItemProperty.d.ts +1 -1
- package/dist/src/helpers/getSchemaForItemProperty.d.ts.map +1 -1
- package/dist/src/helpers/getSegmentedItemProperties.d.ts.map +1 -1
- package/dist/src/helpers/index.d.ts +15 -10
- package/dist/src/helpers/index.d.ts.map +1 -1
- package/dist/src/helpers/isSqliteUniqueConstraintError.d.ts +7 -0
- package/dist/src/helpers/isSqliteUniqueConstraintError.d.ts.map +1 -0
- package/dist/src/helpers/mediaRef.d.ts.map +1 -1
- package/dist/src/helpers/property/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +9 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/interfaces/IDb.d.ts +11 -0
- package/dist/src/interfaces/IDb.d.ts.map +1 -1
- package/dist/src/node/db/Db.d.ts +22 -37
- package/dist/src/node/db/Db.d.ts.map +1 -1
- package/dist/src/node/helpers/ArweaveClient.d.ts +4 -30
- package/dist/src/node/helpers/ArweaveClient.d.ts.map +1 -1
- package/dist/src/node/helpers/EasClient.d.ts +4 -6
- package/dist/src/node/helpers/EasClient.d.ts.map +1 -1
- package/dist/src/node/helpers/FileManager.d.ts +26 -25
- package/dist/src/node/helpers/FileManager.d.ts.map +1 -1
- package/dist/src/node/helpers/PathResolver.d.ts +6 -5
- package/dist/src/node/helpers/PathResolver.d.ts.map +1 -1
- package/dist/src/node/helpers/QueryClient.d.ts +4 -6
- package/dist/src/node/helpers/QueryClient.d.ts.map +1 -1
- package/dist/src/node/helpers/scripts.d.ts +5 -7
- package/dist/src/node/helpers/scripts.d.ts.map +1 -1
- package/dist/src/node/index.d.ts +2 -9
- package/dist/src/node/index.d.ts.map +1 -1
- package/dist/src/node/webpack/index.d.ts +1 -1
- package/dist/src/node/webpack/index.d.ts.map +1 -1
- package/dist/src/platform/configurePlatform.d.ts +6 -0
- package/dist/src/platform/configurePlatform.d.ts.map +1 -0
- package/dist/src/platform/index.browser.d.ts +3 -0
- package/dist/src/platform/index.browser.d.ts.map +1 -0
- package/dist/src/platform/index.d.ts +9 -0
- package/dist/src/platform/index.d.ts.map +1 -0
- package/dist/src/platform/index.node.d.ts +3 -0
- package/dist/src/platform/index.node.d.ts.map +1 -0
- package/dist/src/platform/types.d.ts +14 -0
- package/dist/src/platform/types.d.ts.map +1 -0
- package/dist/src/stores/eas.d.ts +1 -18
- package/dist/src/stores/eas.d.ts.map +1 -1
- package/dist/src/testing/platformTestHandle.d.ts +8 -0
- package/dist/src/testing/platformTestHandle.d.ts.map +1 -0
- package/dist/src/types/gateway.d.ts +2 -0
- package/dist/src/types/gateway.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +5 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/item.d.ts +1 -1
- package/dist/src/types/item.d.ts.map +1 -1
- package/dist/src/types/machines.d.ts +10 -0
- package/dist/src/types/machines.d.ts.map +1 -1
- package/dist/src/types/seedProtocol.d.ts +1 -1
- package/dist/src/types/seedProtocol.d.ts.map +1 -1
- package/dist/src/vite/index.d.ts +2 -47
- package/dist/src/vite/index.d.ts.map +1 -1
- package/dist/{syncDbWithEas-CB5aXPtf.js → syncDbWithEas-DMOJHtkP.js} +20 -15
- package/dist/syncDbWithEas-DMOJHtkP.js.map +1 -0
- package/dist/{updateSeedRevokedAt-BIu5Q4Po.js → updateSeedRevokedAt-Ba0OhDQj.js} +2 -2
- package/dist/{updateSeedRevokedAt-BIu5Q4Po.js.map → updateSeedRevokedAt-Ba0OhDQj.js.map} +1 -1
- package/dist/vite.cjs +5 -470
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.js +1 -472
- package/dist/vite.js.map +1 -1
- package/package.json +42 -37
- package/dist/ArweaveClient-CZpZgmR2.js +0 -204
- package/dist/ArweaveClient-CZpZgmR2.js.map +0 -1
- package/dist/ArweaveClient-Cs7AL9dp.js +0 -204
- package/dist/ArweaveClient-Cs7AL9dp.js.map +0 -1
- package/dist/Db-CF6R7HIy.js +0 -2098
- package/dist/Db-CF6R7HIy.js.map +0 -1
- package/dist/Db-CZkONsdT.js +0 -248
- package/dist/Db-CZkONsdT.js.map +0 -1
- package/dist/EasClient-PXOzSzPG.js +0 -29
- package/dist/EasClient-PXOzSzPG.js.map +0 -1
- package/dist/EasClient-qfTiM2we.js +0 -29
- package/dist/EasClient-qfTiM2we.js.map +0 -1
- package/dist/FileManager-5GkHtxF7.js +0 -1256
- package/dist/FileManager-5GkHtxF7.js.map +0 -1
- package/dist/FileManager-jORQ8Bb6.js +0 -177
- package/dist/FileManager-jORQ8Bb6.js.map +0 -1
- package/dist/ModelProperty-e_hXSFvf.js.map +0 -1
- package/dist/PathResolver-B4_X69Rd.js +0 -204
- package/dist/PathResolver-B4_X69Rd.js.map +0 -1
- package/dist/PathResolver-Dz0RVGIz.js +0 -78
- package/dist/PathResolver-Dz0RVGIz.js.map +0 -1
- package/dist/QueryClient-CXHZ239d.js +0 -51
- package/dist/QueryClient-CXHZ239d.js.map +0 -1
- package/dist/QueryClient-D_UK4YLm.js +0 -35
- package/dist/QueryClient-D_UK4YLm.js.map +0 -1
- package/dist/arweave-default-shim.js +0 -6
- package/dist/cjs/getPublishPayload-CGKMEL3H.js.map +0 -1
- package/dist/cjs/getSegmentedItemProperties-BgS_FhAx.js.map +0 -1
- package/dist/cjs/index-BnAqr2le.js.map +0 -1
- package/dist/cjs/index-ByozbTn_.js.map +0 -1
- package/dist/cjs/syncDbWithEas-CA2Lum5V.js.map +0 -1
- package/dist/debug-default-shim.js +0 -27
- package/dist/getPublishPayload-D16enahU.js.map +0 -1
- package/dist/getSegmentedItemProperties-Be3kYWY3.js.map +0 -1
- package/dist/index-BFyMxc7e.js.map +0 -1
- package/dist/index-BcXKZQpX.js.map +0 -1
- package/dist/index-C9p-skT3.js +0 -18
- package/dist/index-C9p-skT3.js.map +0 -1
- package/dist/property-CRAau-Q-.js.map +0 -1
- package/dist/queries-Ct7CcQ3g.js +0 -16
- package/dist/queries-Ct7CcQ3g.js.map +0 -1
- package/dist/src/Item/queries.d.ts +0 -27
- package/dist/src/Item/queries.d.ts.map +0 -1
- package/dist/src/graphql/fragments/Attestation.d.ts +0 -2
- package/dist/src/graphql/fragments/Attestation.d.ts.map +0 -1
- package/dist/src/graphql/fragments/Schema.d.ts +0 -2
- package/dist/src/graphql/fragments/Schema.d.ts.map +0 -1
- package/dist/src/graphql/fragments/index.d.ts +0 -3
- package/dist/src/graphql/fragments/index.d.ts.map +0 -1
- package/dist/src/graphql/gql/fragment-masking.d.ts +0 -20
- package/dist/src/graphql/gql/fragment-masking.d.ts.map +0 -1
- package/dist/src/graphql/gql/gql.d.ts +0 -107
- package/dist/src/graphql/gql/gql.d.ts.map +0 -1
- package/dist/src/graphql/gql/graphql.d.ts +0 -2969
- package/dist/src/graphql/gql/graphql.d.ts.map +0 -1
- package/dist/src/graphql/gql/index.d.ts +0 -3
- package/dist/src/graphql/gql/index.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/queries.d.ts +0 -13
- package/dist/src/helpers/ArweaveClient/queries.d.ts.map +0 -1
- package/dist/src/helpers/file/queries.d.ts +0 -9
- package/dist/src/helpers/file/queries.d.ts.map +0 -1
- package/dist/src/helpers/image/queries.d.ts +0 -7
- package/dist/src/helpers/image/queries.d.ts.map +0 -1
- package/dist/src/node/codegen/drizzle.d.ts +0 -5
- package/dist/src/node/codegen/drizzle.d.ts.map +0 -1
- package/dist/src/node/codegen/index.d.ts +0 -2
- package/dist/src/node/codegen/index.d.ts.map +0 -1
- package/dist/src/node/codegen/ts-to-proto.d.ts +0 -9
- package/dist/src/node/codegen/ts-to-proto.d.ts.map +0 -1
- package/dist/src/node/db/node.app.db.config.d.ts +0 -4
- package/dist/src/node/db/node.app.db.config.d.ts.map +0 -1
- package/dist/src/node/helpers/index.d.ts +0 -3
- package/dist/src/node/helpers/index.d.ts.map +0 -1
- package/dist/src/vite/arweave-default-shim.d.ts +0 -4
- package/dist/src/vite/arweave-default-shim.d.ts.map +0 -1
- package/dist/src/vite/debug-default-shim.d.ts +0 -3
- package/dist/src/vite/debug-default-shim.d.ts.map +0 -1
- package/dist/src/vite/easFix.d.ts +0 -2
- package/dist/src/vite/easFix.d.ts.map +0 -1
- package/dist/syncDbWithEas-CB5aXPtf.js.map +0 -1
- /package/dist/db/drizzle/{drizzle/0000_married_malice.sql → 0000_married_malice.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0001_sweet_bruce_banner.sql → 0001_sweet_bruce_banner.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0002_bitter_proudstar.sql → 0002_bitter_proudstar.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0003_cultured_senator_kelly.sql → 0003_cultured_senator_kelly.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0004_add_publisher_to_seeds.sql → 0004_add_publisher_to_seeds.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0005_bright_lily_hollister.sql → 0005_bright_lily_hollister.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0006_add_publisher_to_versions_and_metadata.sql → 0006_add_publisher_to_versions_and_metadata.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0007_add_required_to_properties.sql → 0007_add_required_to_properties.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0008_add_revoked_at_to_seeds.sql → 0008_add_revoked_at_to_seeds.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0009_happy_namor.sql → 0009_happy_namor.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0010_add_arweave_l1_finalize_jobs.sql → 0010_add_arweave_l1_finalize_jobs.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0011_normalize_placeholder_uids.sql → 0011_normalize_placeholder_uids.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0012_html_embedded_image_co_publish.sql → 0012_html_embedded_image_co_publish.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/0013_eas_sync_processes.sql → 0013_eas_sync_processes.sql} +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0000_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0001_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0002_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0003_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0004_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0005_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0006_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0007_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0008_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0009_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0010_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/0013_snapshot.json +0 -0
- /package/dist/db/drizzle/{drizzle/meta → meta}/_journal.json +0 -0
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { fromCallback, setup, assign, createActor } from 'xstate';
|
|
2
|
-
import {
|
|
2
|
+
import { j as getRefValueType, q as generateId, a3 as createModelsFromJson, W as listCompleteSchemaFiles, a4 as getLatestSchemaVersion, a5 as createModelFromJson, M as Model, w as writeProcessMachine, l as loadSchemaFromFile, u as waitForEntityIdle, v as createReactiveProxy, x as findEntity, J as loadAllSchemasFromDb, a6 as ConflictError, E as getClient, a7 as unloadEntity, a8 as clearDestroySubscriptions, y as forceRemoveFromCaches, z as runDestroyLifecycle, a9 as setupEntityLiveQuery } from './index--F3Wolt5.js';
|
|
3
|
+
import { C as ClientManagerState } from './constants-B5S5JPDK.js';
|
|
4
|
+
import { addSchemaToDb, addModelsToDb, loadModelsFromDbForSchema } from './db-Cvh84NY7.js';
|
|
5
|
+
import { B as BaseDb, r as schemas, m as models, i as modelSchemas, p as properties, a as BaseFileManager } from './BasePathResolver-BDgc7c4T.js';
|
|
3
6
|
import { eq, desc, and } from 'drizzle-orm';
|
|
4
7
|
import debug from 'debug';
|
|
5
|
-
import {
|
|
8
|
+
import { SEED_PROTOCOL_SCHEMA_NAME, isInternalSchema } from './constants-DMHTYMgJ.js';
|
|
9
|
+
import { SchemaValidationService } from './SchemaValidationService-POM6jHbJ.js';
|
|
6
10
|
import 'pluralize';
|
|
7
11
|
|
|
8
12
|
const logger$d = debug('seedSdk:schema:actors:loadOrCreateSchema');
|
|
@@ -47,8 +51,8 @@ const createModelInstances$2 = async (modelIds) => {
|
|
|
47
51
|
return;
|
|
48
52
|
}
|
|
49
53
|
try {
|
|
50
|
-
const _mod_0 = await import('./index
|
|
51
|
-
const _ns_0 = _mod_0.
|
|
54
|
+
const _mod_0 = await import('./index--F3Wolt5.js');
|
|
55
|
+
const _ns_0 = _mod_0.ah;
|
|
52
56
|
const modelMod = _ns_0;
|
|
53
57
|
const { Model } = modelMod;
|
|
54
58
|
// Create instances for all model IDs in parallel
|
|
@@ -162,8 +166,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
162
166
|
// For Seed Protocol, always load from internal file, never create new
|
|
163
167
|
logger$d(`Loading internal Seed Protocol schema from SDK`);
|
|
164
168
|
try {
|
|
165
|
-
const _mod_1 = await import('./index
|
|
166
|
-
const _ns_1 = _mod_1.
|
|
169
|
+
const _mod_1 = await import('./index--F3Wolt5.js');
|
|
170
|
+
const _ns_1 = _mod_1.ag;
|
|
167
171
|
const internalSchema = _ns_1;
|
|
168
172
|
const schemaFile = internalSchema.default;
|
|
169
173
|
// Check if it exists in database, if not, add it
|
|
@@ -657,8 +661,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
657
661
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
658
662
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
659
663
|
try {
|
|
660
|
-
const _mod_2 = await import('./index
|
|
661
|
-
const _ns_2 = _mod_2.
|
|
664
|
+
const _mod_2 = await import('./index--F3Wolt5.js');
|
|
665
|
+
const _ns_2 = _mod_2.ag;
|
|
662
666
|
const internalSchema = _ns_2;
|
|
663
667
|
const internalSchemaFile = internalSchema.default;
|
|
664
668
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
@@ -886,8 +890,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
886
890
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
887
891
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
888
892
|
try {
|
|
889
|
-
const _mod_3 = await import('./index
|
|
890
|
-
const _ns_3 = _mod_3.
|
|
893
|
+
const _mod_3 = await import('./index--F3Wolt5.js');
|
|
894
|
+
const _ns_3 = _mod_3.ag;
|
|
891
895
|
const internalSchema = _ns_3;
|
|
892
896
|
const internalSchemaFile = internalSchema.default;
|
|
893
897
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
@@ -977,8 +981,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
977
981
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
978
982
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
979
983
|
try {
|
|
980
|
-
const _mod_4 = await import('./index
|
|
981
|
-
const _ns_4 = _mod_4.
|
|
984
|
+
const _mod_4 = await import('./index--F3Wolt5.js');
|
|
985
|
+
const _ns_4 = _mod_4.ag;
|
|
982
986
|
const internalSchema = _ns_4;
|
|
983
987
|
const internalSchemaFile = internalSchema.default;
|
|
984
988
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
@@ -1065,8 +1069,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1065
1069
|
// If schemaData is missing, try to load from internal schema file for seed-protocol
|
|
1066
1070
|
if (!dbSchema.schemaData && schemaName === 'Seed Protocol') {
|
|
1067
1071
|
try {
|
|
1068
|
-
const _mod_5 = await import('./index
|
|
1069
|
-
const _ns_5 = _mod_5.
|
|
1072
|
+
const _mod_5 = await import('./index--F3Wolt5.js');
|
|
1073
|
+
const _ns_5 = _mod_5.ag;
|
|
1070
1074
|
const internalSchema = _ns_5;
|
|
1071
1075
|
const schemaFile = internalSchema.default;
|
|
1072
1076
|
logger$d(`Found seed-protocol schema in internal file (schemaData missing, using internal schema)`);
|
|
@@ -1176,8 +1180,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1176
1180
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
1177
1181
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
1178
1182
|
try {
|
|
1179
|
-
const _mod_6 = await import('./index
|
|
1180
|
-
const _ns_6 = _mod_6.
|
|
1183
|
+
const _mod_6 = await import('./index--F3Wolt5.js');
|
|
1184
|
+
const _ns_6 = _mod_6.ag;
|
|
1181
1185
|
const internalSchema = _ns_6;
|
|
1182
1186
|
const internalSchemaFile = internalSchema.default;
|
|
1183
1187
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
@@ -2079,8 +2083,8 @@ const createModelInstances$1 = async (modelIds) => {
|
|
|
2079
2083
|
return;
|
|
2080
2084
|
}
|
|
2081
2085
|
try {
|
|
2082
|
-
const _mod_7 = await import('./index
|
|
2083
|
-
const _ns_7 = _mod_7.
|
|
2086
|
+
const _mod_7 = await import('./index--F3Wolt5.js');
|
|
2087
|
+
const _ns_7 = _mod_7.ah;
|
|
2084
2088
|
const mod = _ns_7;
|
|
2085
2089
|
const Model = mod?.Model ?? mod?.default;
|
|
2086
2090
|
if (!Model) {
|
|
@@ -2126,8 +2130,8 @@ const checkExistingSchema = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2126
2130
|
if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
|
|
2127
2131
|
// For Seed Protocol, check if it exists in database
|
|
2128
2132
|
try {
|
|
2129
|
-
const _mod_8 = await import('./index
|
|
2130
|
-
const _ns_8 = _mod_8.
|
|
2133
|
+
const _mod_8 = await import('./index--F3Wolt5.js');
|
|
2134
|
+
const _ns_8 = _mod_8.ag;
|
|
2131
2135
|
const internalSchema = _ns_8;
|
|
2132
2136
|
const schemaFile = internalSchema.default;
|
|
2133
2137
|
if (db && schemaFile.id) {
|
|
@@ -2486,8 +2490,8 @@ const writeSchemaToDb = fromCallback(({ sendBack, input }) => {
|
|
|
2486
2490
|
if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
|
|
2487
2491
|
// For Seed Protocol, load from internal file
|
|
2488
2492
|
logger$b(`Loading internal Seed Protocol schema from SDK`);
|
|
2489
|
-
const _mod_9 = await import('./index
|
|
2490
|
-
const _ns_9 = _mod_9.
|
|
2493
|
+
const _mod_9 = await import('./index--F3Wolt5.js');
|
|
2494
|
+
const _ns_9 = _mod_9.ag;
|
|
2491
2495
|
const internalSchema = _ns_9;
|
|
2492
2496
|
finalSchema = internalSchema.default;
|
|
2493
2497
|
const db = BaseDb.getAppDb();
|
|
@@ -2956,8 +2960,8 @@ const createModelInstances = fromCallback(({ sendBack, input }) => {
|
|
|
2956
2960
|
return;
|
|
2957
2961
|
}
|
|
2958
2962
|
try {
|
|
2959
|
-
const _mod_10 = await import('./index
|
|
2960
|
-
const _ns_10 = _mod_10.
|
|
2963
|
+
const _mod_10 = await import('./index--F3Wolt5.js');
|
|
2964
|
+
const _ns_10 = _mod_10.ah;
|
|
2961
2965
|
const modelMod = _ns_10;
|
|
2962
2966
|
const { Model } = modelMod;
|
|
2963
2967
|
// Create instances for all model IDs in parallel
|
|
@@ -3044,8 +3048,8 @@ const verifyModelInstancesInCache = fromCallback(({ sendBack, input }) => {
|
|
|
3044
3048
|
}
|
|
3045
3049
|
try {
|
|
3046
3050
|
const result = await verifyWithRetry$2(async () => {
|
|
3047
|
-
const _mod_11 = await import('./index
|
|
3048
|
-
const _ns_11 = _mod_11.
|
|
3051
|
+
const _mod_11 = await import('./index--F3Wolt5.js');
|
|
3052
|
+
const _ns_11 = _mod_11.ah;
|
|
3049
3053
|
const modelMod = _ns_11;
|
|
3050
3054
|
const { Model } = modelMod;
|
|
3051
3055
|
// Check each model ID in the cache
|
|
@@ -3103,8 +3107,8 @@ const writePropertiesToDb = fromCallback(({ sendBack, input }) => {
|
|
|
3103
3107
|
const _write = async () => {
|
|
3104
3108
|
const { modelIds } = input;
|
|
3105
3109
|
try {
|
|
3106
|
-
const _mod_12 = await import('./
|
|
3107
|
-
const _ns_12 = _mod_12.
|
|
3110
|
+
const _mod_12 = await import('./BasePathResolver-BDgc7c4T.js');
|
|
3111
|
+
const _ns_12 = _mod_12.M;
|
|
3108
3112
|
const modelSchemaMod = _ns_12;
|
|
3109
3113
|
const { models: modelsTable, properties: propertiesTable } = modelSchemaMod;
|
|
3110
3114
|
const drizzleMod = await import('drizzle-orm');
|
|
@@ -3293,10 +3297,10 @@ const createPropertyInstances = fromCallback(({ sendBack, input }) => {
|
|
|
3293
3297
|
return;
|
|
3294
3298
|
}
|
|
3295
3299
|
try {
|
|
3296
|
-
const modProp = await import('./ModelProperty-
|
|
3300
|
+
const modProp = await import('./ModelProperty-D-ysg8zA.js');
|
|
3297
3301
|
const ModelProperty = modProp?.ModelProperty ?? modProp?.default;
|
|
3298
|
-
const _mod_13 = await import('./index
|
|
3299
|
-
const _ns_13 = _mod_13.
|
|
3302
|
+
const _mod_13 = await import('./index--F3Wolt5.js');
|
|
3303
|
+
const _ns_13 = _mod_13.ah;
|
|
3300
3304
|
const modModel = _ns_13;
|
|
3301
3305
|
const Model = modModel?.Model ?? modModel?.default;
|
|
3302
3306
|
if (!ModelProperty || !Model) {
|
|
@@ -3402,7 +3406,7 @@ const verifyPropertyInstancesInCache = fromCallback(({ sendBack, input }) => {
|
|
|
3402
3406
|
}
|
|
3403
3407
|
try {
|
|
3404
3408
|
const result = await verifyWithRetry(async () => {
|
|
3405
|
-
const mod = await import('./ModelProperty-
|
|
3409
|
+
const mod = await import('./ModelProperty-D-ysg8zA.js');
|
|
3406
3410
|
const ModelProperty = mod?.ModelProperty ?? mod?.default;
|
|
3407
3411
|
if (!ModelProperty) {
|
|
3408
3412
|
throw new Error('ModelProperty not available from dynamic import');
|
|
@@ -4424,9 +4428,7 @@ async function loadSchemaWithRenames(schemaFilePath, modelRenames) {
|
|
|
4424
4428
|
updatedAt: new Date(schemaFile.metadata.updatedAt).getTime(),
|
|
4425
4429
|
};
|
|
4426
4430
|
// Use dynamic import to break circular dependency
|
|
4427
|
-
const
|
|
4428
|
-
const _ns_14 = _mod_14.c7;
|
|
4429
|
-
const dbMod = _ns_14;
|
|
4431
|
+
const dbMod = await import('./db-Cvh84NY7.js');
|
|
4430
4432
|
const { addSchemaToDb, addModelsToDb } = dbMod;
|
|
4431
4433
|
// Add schema to database with schemaFileId
|
|
4432
4434
|
const schemaRecord = await addSchemaToDb(schemaInput, schemaFile.id);
|
|
@@ -4537,9 +4539,7 @@ async function renameModelProperty(schemaName, modelName, oldPropertyName, newPr
|
|
|
4537
4539
|
await BaseFileManager.waitForFileWithContent(newFilePath);
|
|
4538
4540
|
logger$1(`Renamed property ${oldPropertyName} to ${newPropertyName} in schema ${schemaName} v${newVersion}`);
|
|
4539
4541
|
// Migrate metadata rows so ItemProperty values follow the new name (prevents duplicate ItemProperties)
|
|
4540
|
-
const
|
|
4541
|
-
const _ns_15 = _mod_15.c7;
|
|
4542
|
-
const { migrateMetadataForPropertyRename } = _ns_15;
|
|
4542
|
+
const { migrateMetadataForPropertyRename } = await import('./db-Cvh84NY7.js');
|
|
4543
4543
|
const migratedCount = await migrateMetadataForPropertyRename(modelName, oldPropertyName, newPropertyName, oldProperty.id);
|
|
4544
4544
|
if (migratedCount > 0) {
|
|
4545
4545
|
logger$1(`Migrated ${migratedCount} metadata rows for property rename`);
|
|
@@ -5748,7 +5748,7 @@ class Schema {
|
|
|
5748
5748
|
_dbVersion: publishedSchema.version,
|
|
5749
5749
|
});
|
|
5750
5750
|
// Clear edited flags on all ModelProperty instances and in database
|
|
5751
|
-
const modelPropertyMod = await import('./ModelProperty-
|
|
5751
|
+
const modelPropertyMod = await import('./ModelProperty-D-ysg8zA.js');
|
|
5752
5752
|
const { ModelProperty } = modelPropertyMod;
|
|
5753
5753
|
for (const propertyKey of context._editedProperties) {
|
|
5754
5754
|
const [modelName, propertyName] = propertyKey.split(':');
|
|
@@ -6551,4 +6551,4 @@ var Schema$1 = /*#__PURE__*/Object.freeze({
|
|
|
6551
6551
|
});
|
|
6552
6552
|
|
|
6553
6553
|
export { Schema as S, deleteModelFromSchema as a, Schema$1 as b, deletePropertyFromModel as d, renameModelProperty as r, schemaMachine as s, updateModelProperties as u };
|
|
6554
|
-
//# sourceMappingURL=Schema-
|
|
6554
|
+
//# sourceMappingURL=Schema-CyCftnKI.js.map
|