@xyo-network/sdk-protocol 7.0.4
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/LICENSE +165 -0
- package/README.md +85 -0
- package/dist/_pkg/account/neutral/Account.d.ts +38 -0
- package/dist/_pkg/account/neutral/Jwt/base64url.d.ts +5 -0
- package/dist/_pkg/account/neutral/Jwt/createJwt.d.ts +3 -0
- package/dist/_pkg/account/neutral/Jwt/decodeJwt.d.ts +3 -0
- package/dist/_pkg/account/neutral/Jwt/digest.d.ts +4 -0
- package/dist/_pkg/account/neutral/Jwt/index.d.ts +6 -0
- package/dist/_pkg/account/neutral/Jwt/verifyJwt.d.ts +3 -0
- package/dist/_pkg/account/neutral/Key/AddressValue.d.ts +11 -0
- package/dist/_pkg/account/neutral/Key/EllipticKey.d.ts +4 -0
- package/dist/_pkg/account/neutral/Key/PrivateKey.d.ts +14 -0
- package/dist/_pkg/account/neutral/Key/PublicKey.d.ts +14 -0
- package/dist/_pkg/account/neutral/Key/index.d.ts +5 -0
- package/dist/_pkg/account/neutral/index.d.ts +6 -0
- package/dist/_pkg/account/neutral/index.mjs +547 -0
- package/dist/_pkg/account/neutral/lib/index.d.ts +2 -0
- package/dist/_pkg/account/neutral/lib/walletPath/combineWalletPaths.d.ts +2 -0
- package/dist/_pkg/account/neutral/lib/walletPath/formatWalletPath.d.ts +2 -0
- package/dist/_pkg/account/neutral/lib/walletPath/index.d.ts +4 -0
- package/dist/_pkg/account/neutral/lib/walletPath/isValidWalletPath.d.ts +3 -0
- package/dist/_pkg/account/neutral/register.d.ts +2 -0
- package/dist/_pkg/account-model/neutral/Account.d.ts +46 -0
- package/dist/_pkg/account-model/neutral/Algorithm.d.ts +5 -0
- package/dist/_pkg/account-model/neutral/Jwt/constants.d.ts +14 -0
- package/dist/_pkg/account-model/neutral/Jwt/index.d.ts +3 -0
- package/dist/_pkg/account-model/neutral/Jwt/types.d.ts +56 -0
- package/dist/_pkg/account-model/neutral/VerifierRegistry.d.ts +6 -0
- package/dist/_pkg/account-model/neutral/addressTo20Bytes.d.ts +2 -0
- package/dist/_pkg/account-model/neutral/index.d.ts +6 -0
- package/dist/_pkg/account-model/neutral/index.mjs +100 -0
- package/dist/_pkg/address/neutral/XyoAddress.d.ts +38 -0
- package/dist/_pkg/address/neutral/XyoLegacyAddress.d.ts +37 -0
- package/dist/_pkg/address/neutral/XyoQuantAddress.d.ts +33 -0
- package/dist/_pkg/address/neutral/index.d.ts +4 -0
- package/dist/_pkg/address/neutral/index.mjs +75 -0
- package/dist/_pkg/api/neutral/Api/Api.d.ts +8 -0
- package/dist/_pkg/api/neutral/Api/index.d.ts +2 -0
- package/dist/_pkg/api/neutral/Base.d.ts +32 -0
- package/dist/_pkg/api/neutral/Simple.d.ts +22 -0
- package/dist/_pkg/api/neutral/WithArchive.d.ts +4 -0
- package/dist/_pkg/api/neutral/index.d.ts +6 -0
- package/dist/_pkg/api/neutral/index.mjs +187 -0
- package/dist/_pkg/api/neutral/models/ArchivePath.d.ts +4 -0
- package/dist/_pkg/api/neutral/models/index.d.ts +2 -0
- package/dist/_pkg/api/neutral/objToQuery.d.ts +2 -0
- package/dist/_pkg/api-models/neutral/Config.d.ts +25 -0
- package/dist/_pkg/api-models/neutral/Envelope.d.ts +15 -0
- package/dist/_pkg/api-models/neutral/Error.d.ts +5 -0
- package/dist/_pkg/api-models/neutral/Reportable.d.ts +8 -0
- package/dist/_pkg/api-models/neutral/Response.d.ts +8 -0
- package/dist/_pkg/api-models/neutral/Warning.d.ts +2 -0
- package/dist/_pkg/api-models/neutral/index.d.ts +7 -0
- package/dist/_pkg/api-models/neutral/index.mjs +1 -0
- package/dist/_pkg/boundwitness/neutral/builder.d.ts +2 -0
- package/dist/_pkg/boundwitness/neutral/builder.mjs +3 -0
- package/dist/_pkg/boundwitness/neutral/index.d.ts +5 -0
- package/dist/_pkg/boundwitness/neutral/index.mjs +6 -0
- package/dist/_pkg/boundwitness/neutral/model.d.ts +2 -0
- package/dist/_pkg/boundwitness/neutral/model.mjs +3 -0
- package/dist/_pkg/boundwitness/neutral/validator.d.ts +2 -0
- package/dist/_pkg/boundwitness/neutral/validator.mjs +3 -0
- package/dist/_pkg/boundwitness/neutral/wrapper.d.ts +2 -0
- package/dist/_pkg/boundwitness/neutral/wrapper.mjs +3 -0
- package/dist/_pkg/boundwitness-builder/neutral/BoundWitnessBuilder.d.ts +48 -0
- package/dist/_pkg/boundwitness-builder/neutral/GeneratedBoundWitnessFields.d.ts +3 -0
- package/dist/_pkg/boundwitness-builder/neutral/Query/QueryBoundWitnessBuilder.d.ts +9 -0
- package/dist/_pkg/boundwitness-builder/neutral/Query/index.d.ts +2 -0
- package/dist/_pkg/boundwitness-builder/neutral/combinationsByBoundwitness.d.ts +10 -0
- package/dist/_pkg/boundwitness-builder/neutral/index.d.ts +5 -0
- package/dist/_pkg/boundwitness-builder/neutral/index.mjs +311 -0
- package/dist/_pkg/boundwitness-builder/neutral/intraBoundwitnessSchemaCombinations.d.ts +11 -0
- package/dist/_pkg/boundwitness-builder/neutral/uniqueAccounts.d.ts +3 -0
- package/dist/_pkg/boundwitness-builder/neutral/uniqueAddresses.d.ts +3 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/BoundWitness.d.ts +173 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/BoundWitnessJsonSchema.d.ts +37 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/BoundWitnessSchema.d.ts +5 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/HydratedBoundWitness.d.ts +72 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/Signatures.d.ts +14 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/SignedBoundWitness.d.ts +44 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/UnsignedBoundWitness.d.ts +44 -0
- package/dist/_pkg/boundwitness-model/neutral/BoundWitness/index.d.ts +8 -0
- package/dist/_pkg/boundwitness-model/neutral/QueryBoundWitness.d.ts +150 -0
- package/dist/_pkg/boundwitness-model/neutral/index.d.ts +3 -0
- package/dist/_pkg/boundwitness-model/neutral/index.mjs +131 -0
- package/dist/_pkg/boundwitness-validator/neutral/Validator.d.ts +17 -0
- package/dist/_pkg/boundwitness-validator/neutral/index.d.ts +3 -0
- package/dist/_pkg/boundwitness-validator/neutral/index.mjs +177 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/addresses/addressesContains.d.ts +10 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/addresses/addressesContainsAll.d.ts +10 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/addresses/addressesContainsAny.d.ts +12 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/addresses/index.d.ts +4 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/index.d.ts +4 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadHashes/index.d.ts +4 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadHashes/payloadHashesContains.d.ts +10 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadHashes/payloadHashesContainsAll.d.ts +10 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadHashes/payloadHashesContainsAny.d.ts +12 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadSchemas/index.d.ts +4 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadSchemas/payloadSchemasContains.d.ts +10 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadSchemas/payloadSchemasContainsAll.d.ts +10 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/payloadSchemas/payloadSchemasContainsAny.d.ts +12 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/util/BoundWitnessArrayProperty.d.ts +10 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/util/boundWitnessArrayPropertyContains.d.ts +11 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/util/boundWitnessArrayPropertyContainsAll.d.ts +11 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/util/boundWitnessArrayPropertyContainsAny.d.ts +13 -0
- package/dist/_pkg/boundwitness-validator/neutral/lib/util/index.d.ts +4 -0
- package/dist/_pkg/boundwitness-wrapper/neutral/BoundWitnessWrapper.d.ts +60 -0
- package/dist/_pkg/boundwitness-wrapper/neutral/QueryBoundWitnessWrapper.d.ts +14 -0
- package/dist/_pkg/boundwitness-wrapper/neutral/SchemaType.d.ts +6 -0
- package/dist/_pkg/boundwitness-wrapper/neutral/index.d.ts +4 -0
- package/dist/_pkg/boundwitness-wrapper/neutral/index.mjs +281 -0
- package/dist/_pkg/config-payload-plugin/neutral/Payload.d.ts +44 -0
- package/dist/_pkg/config-payload-plugin/neutral/Plugin.d.ts +7 -0
- package/dist/_pkg/config-payload-plugin/neutral/Schema.d.ts +5 -0
- package/dist/_pkg/config-payload-plugin/neutral/Template.d.ts +3 -0
- package/dist/_pkg/config-payload-plugin/neutral/index.d.ts +5 -0
- package/dist/_pkg/config-payload-plugin/neutral/index.mjs +44 -0
- package/dist/_pkg/core/neutral/index.d.ts +6 -0
- package/dist/_pkg/core/neutral/index.mjs +7 -0
- package/dist/_pkg/core-payload-plugins/neutral/index.d.ts +11 -0
- package/dist/_pkg/core-payload-plugins/neutral/index.mjs +26 -0
- package/dist/_pkg/crypto/neutral/account-model.d.ts +2 -0
- package/dist/_pkg/crypto/neutral/account-model.mjs +3 -0
- package/dist/_pkg/crypto/neutral/account.d.ts +2 -0
- package/dist/_pkg/crypto/neutral/account.mjs +3 -0
- package/dist/_pkg/crypto/neutral/index.d.ts +10 -0
- package/dist/_pkg/crypto/neutral/index.mjs +11 -0
- package/dist/_pkg/crypto/neutral/key-model.d.ts +2 -0
- package/dist/_pkg/crypto/neutral/key-model.mjs +3 -0
- package/dist/_pkg/crypto/neutral/wallet-model.d.ts +2 -0
- package/dist/_pkg/crypto/neutral/wallet-model.mjs +3 -0
- package/dist/_pkg/crypto/neutral/wallet.d.ts +2 -0
- package/dist/_pkg/crypto/neutral/wallet.mjs +3 -0
- package/dist/_pkg/data/neutral/AbstractData.d.ts +16 -0
- package/dist/_pkg/data/neutral/Data.d.ts +13 -0
- package/dist/_pkg/data/neutral/index.d.ts +3 -0
- package/dist/_pkg/data/neutral/index.mjs +53 -0
- package/dist/_pkg/dns/neutral/DnsRecordType.d.ts +16 -0
- package/dist/_pkg/dns/neutral/DnsReturnCode.d.ts +14 -0
- package/dist/_pkg/dns/neutral/GoogleDnsResult.d.ts +17 -0
- package/dist/_pkg/dns/neutral/GoogleDnsResultAnswer.d.ts +8 -0
- package/dist/_pkg/dns/neutral/GoogleDnsResultQuestion.d.ts +11 -0
- package/dist/_pkg/dns/neutral/domainExists.d.ts +8 -0
- package/dist/_pkg/dns/neutral/domainResolve.d.ts +9 -0
- package/dist/_pkg/dns/neutral/googleDnsOverHttps.d.ts +5 -0
- package/dist/_pkg/dns/neutral/index.d.ts +9 -0
- package/dist/_pkg/dns/neutral/index.mjs +61 -0
- package/dist/_pkg/domain-payload-plugin/neutral/DomainConfigPayload.d.ts +219 -0
- package/dist/_pkg/domain-payload-plugin/neutral/DomainConfigPlugin.d.ts +33 -0
- package/dist/_pkg/domain-payload-plugin/neutral/DomainConfigSchema.d.ts +5 -0
- package/dist/_pkg/domain-payload-plugin/neutral/DomainConfigTemplate.d.ts +3 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Payload.d.ts +282 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Plugin.d.ts +33 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Resolution/DomainSchemaResolver.d.ts +45 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Resolution/SchemaResolution.d.ts +27 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Resolution/XyoDnsRecords.d.ts +27 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Resolution/index.d.ts +4 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Schema.d.ts +5 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Template.d.ts +3 -0
- package/dist/_pkg/domain-payload-plugin/neutral/Wrapper.d.ts +278 -0
- package/dist/_pkg/domain-payload-plugin/neutral/index.d.ts +11 -0
- package/dist/_pkg/domain-payload-plugin/neutral/index.mjs +485 -0
- package/dist/_pkg/elliptic/neutral/Elliptic.d.ts +15 -0
- package/dist/_pkg/elliptic/neutral/index.d.ts +2 -0
- package/dist/_pkg/elliptic/neutral/index.mjs +89 -0
- package/dist/_pkg/hash/browser/BrowserObjectHasher.d.ts +9 -0
- package/dist/_pkg/hash/browser/NodeObjectHasher.d.ts +6 -0
- package/dist/_pkg/hash/browser/ObjectHasher.d.ts +69 -0
- package/dist/_pkg/hash/browser/createBrowserWorker.d.ts +3 -0
- package/dist/_pkg/hash/browser/createNodeWorker.d.ts +3 -0
- package/dist/_pkg/hash/browser/hasEmptyFields.d.ts +3 -0
- package/dist/_pkg/hash/browser/index-browser.d.ts +4 -0
- package/dist/_pkg/hash/browser/index-browser.mjs +289 -0
- package/dist/_pkg/hash/browser/index.d.ts +5 -0
- package/dist/_pkg/hash/browser/removeEmptyFields.d.ts +3 -0
- package/dist/_pkg/hash/browser/sortFields.d.ts +3 -0
- package/dist/_pkg/hash/browser/worker/index.d.ts +3 -0
- package/dist/_pkg/hash/browser/worker/subtleHash-bundle.mjs +257 -0
- package/dist/_pkg/hash/browser/worker/subtleHash.d.ts +2 -0
- package/dist/_pkg/hash/browser/worker/subtleHashNode.d.ts +2 -0
- package/dist/_pkg/hash/browser/worker/wasmHash-bundle.mjs +1678 -0
- package/dist/_pkg/hash/browser/worker/wasmHash.d.ts +2 -0
- package/dist/_pkg/hash/browser/worker/wasmHashNode.d.ts +2 -0
- package/dist/_pkg/hash/neutral/BrowserObjectHasher.d.ts +9 -0
- package/dist/_pkg/hash/neutral/NodeObjectHasher.d.ts +6 -0
- package/dist/_pkg/hash/neutral/ObjectHasher.d.ts +69 -0
- package/dist/_pkg/hash/neutral/createBrowserWorker.d.ts +3 -0
- package/dist/_pkg/hash/neutral/createNodeWorker.d.ts +3 -0
- package/dist/_pkg/hash/neutral/hasEmptyFields.d.ts +3 -0
- package/dist/_pkg/hash/neutral/index-browser.d.ts +4 -0
- package/dist/_pkg/hash/neutral/index-browser.mjs +289 -0
- package/dist/_pkg/hash/neutral/index.d.ts +5 -0
- package/dist/_pkg/hash/neutral/removeEmptyFields.d.ts +3 -0
- package/dist/_pkg/hash/neutral/sortFields.d.ts +3 -0
- package/dist/_pkg/hash/neutral/worker/index.d.ts +3 -0
- package/dist/_pkg/hash/neutral/worker/subtleHash.d.ts +2 -0
- package/dist/_pkg/hash/neutral/worker/subtleHashNode.d.ts +2 -0
- package/dist/_pkg/hash/neutral/worker/wasmHash.d.ts +2 -0
- package/dist/_pkg/hash/neutral/worker/wasmHashNode.d.ts +2 -0
- package/dist/_pkg/hash/node/BrowserObjectHasher.d.ts +9 -0
- package/dist/_pkg/hash/node/NodeObjectHasher.d.ts +6 -0
- package/dist/_pkg/hash/node/ObjectHasher.d.ts +69 -0
- package/dist/_pkg/hash/node/createBrowserWorker.d.ts +3 -0
- package/dist/_pkg/hash/node/createNodeWorker.d.ts +3 -0
- package/dist/_pkg/hash/node/hasEmptyFields.d.ts +3 -0
- package/dist/_pkg/hash/node/index-browser.d.ts +4 -0
- package/dist/_pkg/hash/node/index.d.ts +5 -0
- package/dist/_pkg/hash/node/index.mjs +279 -0
- package/dist/_pkg/hash/node/removeEmptyFields.d.ts +3 -0
- package/dist/_pkg/hash/node/sortFields.d.ts +3 -0
- package/dist/_pkg/hash/node/worker/index.d.ts +3 -0
- package/dist/_pkg/hash/node/worker/subtleHash.d.ts +2 -0
- package/dist/_pkg/hash/node/worker/subtleHashNode.d.ts +2 -0
- package/dist/_pkg/hash/node/worker/wasmHash.d.ts +2 -0
- package/dist/_pkg/hash/node/worker/wasmHashNode.d.ts +2 -0
- package/dist/_pkg/huri/neutral/Huri.d.ts +33 -0
- package/dist/_pkg/huri/neutral/index.d.ts +2 -0
- package/dist/_pkg/huri/neutral/index.mjs +118 -0
- package/dist/_pkg/id-payload-plugin/neutral/Payload.d.ts +86 -0
- package/dist/_pkg/id-payload-plugin/neutral/Plugin.d.ts +7 -0
- package/dist/_pkg/id-payload-plugin/neutral/Schema.d.ts +5 -0
- package/dist/_pkg/id-payload-plugin/neutral/Template.d.ts +3 -0
- package/dist/_pkg/id-payload-plugin/neutral/index.d.ts +5 -0
- package/dist/_pkg/id-payload-plugin/neutral/index.mjs +48 -0
- package/dist/_pkg/key-model/neutral/Key/AddressValue.d.ts +10 -0
- package/dist/_pkg/key-model/neutral/Key/EllipticKey.d.ts +4 -0
- package/dist/_pkg/key-model/neutral/Key/PrivateKey.d.ts +15 -0
- package/dist/_pkg/key-model/neutral/Key/PublicKey.d.ts +11 -0
- package/dist/_pkg/key-model/neutral/Key/index.d.ts +4 -0
- package/dist/_pkg/key-model/neutral/index.d.ts +2 -0
- package/dist/_pkg/key-model/neutral/index.mjs +1 -0
- package/dist/_pkg/manifest/neutral/index.d.ts +2 -0
- package/dist/_pkg/manifest/neutral/index.mjs +3 -0
- package/dist/_pkg/manifest-model/neutral/Manifest.d.ts +4 -0
- package/dist/_pkg/manifest-model/neutral/Manifest.zod.d.ts +2619 -0
- package/dist/_pkg/manifest-model/neutral/Payload.d.ts +2 -0
- package/dist/_pkg/manifest-model/neutral/Payload.zod.d.ts +1591 -0
- package/dist/_pkg/manifest-model/neutral/index.d.ts +3 -0
- package/dist/_pkg/manifest-model/neutral/index.mjs +193 -0
- package/dist/_pkg/metamask-connector/browser/MetaMaskConnector.d.ts +38 -0
- package/dist/_pkg/metamask-connector/browser/index.d.ts +2 -0
- package/dist/_pkg/metamask-connector/browser/index.mjs +114 -0
- package/dist/_pkg/network/neutral/NetworkNodePayload.d.ts +79 -0
- package/dist/_pkg/network/neutral/NetworkNodePayloadWrapper.d.ts +17 -0
- package/dist/_pkg/network/neutral/NetworkPayload.d.ts +119 -0
- package/dist/_pkg/network/neutral/NetworkPayloadWrapper.d.ts +63 -0
- package/dist/_pkg/network/neutral/index.d.ts +8 -0
- package/dist/_pkg/network/neutral/index.mjs +211 -0
- package/dist/_pkg/network/neutral/knownArchivists.d.ts +3 -0
- package/dist/_pkg/network/neutral/knownDiviners.d.ts +3 -0
- package/dist/_pkg/network/neutral/knownNetworks.d.ts +3 -0
- package/dist/_pkg/payload/neutral/builder.d.ts +2 -0
- package/dist/_pkg/payload/neutral/builder.mjs +3 -0
- package/dist/_pkg/payload/neutral/index.d.ts +6 -0
- package/dist/_pkg/payload/neutral/index.mjs +7 -0
- package/dist/_pkg/payload/neutral/model.d.ts +2 -0
- package/dist/_pkg/payload/neutral/model.mjs +3 -0
- package/dist/_pkg/payload/neutral/validator.d.ts +2 -0
- package/dist/_pkg/payload/neutral/validator.mjs +3 -0
- package/dist/_pkg/payload/neutral/wrapper.d.ts +2 -0
- package/dist/_pkg/payload/neutral/wrapper.mjs +3 -0
- package/dist/_pkg/payload-builder/neutral/Builder.d.ts +70 -0
- package/dist/_pkg/payload-builder/neutral/Options.d.ts +7 -0
- package/dist/_pkg/payload-builder/neutral/index.d.ts +3 -0
- package/dist/_pkg/payload-builder/neutral/index.mjs +218 -0
- package/dist/_pkg/payload-model/neutral/Error.d.ts +65 -0
- package/dist/_pkg/payload-model/neutral/Payload.d.ts +35 -0
- package/dist/_pkg/payload-model/neutral/PayloadBundle.d.ts +72 -0
- package/dist/_pkg/payload-model/neutral/PayloadFindFilter.d.ts +6 -0
- package/dist/_pkg/payload-model/neutral/PayloadHashMap.d.ts +7 -0
- package/dist/_pkg/payload-model/neutral/PayloadSet/PayloadSetPayload.d.ts +54 -0
- package/dist/_pkg/payload-model/neutral/PayloadSet/PayloadSetSchema.d.ts +5 -0
- package/dist/_pkg/payload-model/neutral/PayloadSet/index.d.ts +3 -0
- package/dist/_pkg/payload-model/neutral/PayloadValidationFunction.d.ts +14 -0
- package/dist/_pkg/payload-model/neutral/PayloadValueExpression.d.ts +38 -0
- package/dist/_pkg/payload-model/neutral/PayloadZod.d.ts +173 -0
- package/dist/_pkg/payload-model/neutral/Query.d.ts +21 -0
- package/dist/_pkg/payload-model/neutral/Schema.d.ts +38 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/DataHash.d.ts +24 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/Hash.d.ts +25 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/Sequence.d.ts +11 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/index.d.ts +3 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/sequence/Comparer.d.ts +7 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/sequence/Parser.d.ts +31 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/sequence/Sequence.d.ts +80 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/sequence/SequenceZod.d.ts +9 -0
- package/dist/_pkg/payload-model/neutral/StorageMeta/sequence/index.d.ts +5 -0
- package/dist/_pkg/payload-model/neutral/Timestamp.d.ts +8 -0
- package/dist/_pkg/payload-model/neutral/index.d.ts +16 -0
- package/dist/_pkg/payload-model/neutral/index.mjs +452 -0
- package/dist/_pkg/payload-model/neutral/isPayloadOfSchemaType.d.ts +5 -0
- package/dist/_pkg/payload-model/neutral/isPayloadOfZodType.d.ts +12 -0
- package/dist/_pkg/payload-plugin/neutral/Plugin.d.ts +19 -0
- package/dist/_pkg/payload-plugin/neutral/Resolver.d.ts +26 -0
- package/dist/_pkg/payload-plugin/neutral/createPlugin.d.ts +5 -0
- package/dist/_pkg/payload-plugin/neutral/index.d.ts +4 -0
- package/dist/_pkg/payload-plugin/neutral/index.mjs +67 -0
- package/dist/_pkg/payload-validator/neutral/Validator.d.ts +18 -0
- package/dist/_pkg/payload-validator/neutral/index.d.ts +2 -0
- package/dist/_pkg/payload-validator/neutral/index.mjs +40 -0
- package/dist/_pkg/payload-wrapper/neutral/PayloadDataWrapper.d.ts +18 -0
- package/dist/_pkg/payload-wrapper/neutral/PayloadWrapper.d.ts +6 -0
- package/dist/_pkg/payload-wrapper/neutral/PayloadWrapperBase.d.ts +23 -0
- package/dist/_pkg/payload-wrapper/neutral/SchemaType.d.ts +6 -0
- package/dist/_pkg/payload-wrapper/neutral/index.d.ts +4 -0
- package/dist/_pkg/payload-wrapper/neutral/index.mjs +157 -0
- package/dist/_pkg/pqc/neutral/MlDsa.d.ts +20 -0
- package/dist/_pkg/pqc/neutral/index.d.ts +2 -0
- package/dist/_pkg/pqc/neutral/index.mjs +47 -0
- package/dist/_pkg/previous-hash-store/neutral/index.d.ts +4 -0
- package/dist/_pkg/previous-hash-store/neutral/index.mjs +5 -0
- package/dist/_pkg/previous-hash-store-indexeddb/neutral/IndexedDbPreviousHashStore.d.ts +27 -0
- package/dist/_pkg/previous-hash-store-indexeddb/neutral/index.d.ts +2 -0
- package/dist/_pkg/previous-hash-store-indexeddb/neutral/index.mjs +42 -0
- package/dist/_pkg/previous-hash-store-model/neutral/PreviousHashStore.d.ts +8 -0
- package/dist/_pkg/previous-hash-store-model/neutral/index.d.ts +2 -0
- package/dist/_pkg/previous-hash-store-model/neutral/index.mjs +1 -0
- package/dist/_pkg/previous-hash-store-storage/neutral/NamespacedStorage.d.ts +10 -0
- package/dist/_pkg/previous-hash-store-storage/neutral/StoragePreviousHashStore.d.ts +24 -0
- package/dist/_pkg/previous-hash-store-storage/neutral/index.d.ts +3 -0
- package/dist/_pkg/previous-hash-store-storage/neutral/index.mjs +104 -0
- package/dist/_pkg/protocol/neutral/index.d.ts +5 -0
- package/dist/_pkg/protocol/neutral/index.mjs +6 -0
- package/dist/_pkg/quadkey/neutral/Quadkey.d.ts +65 -0
- package/dist/_pkg/quadkey/neutral/RelativeDirectionConstantLookup.d.ts +2 -0
- package/dist/_pkg/quadkey/neutral/index.d.ts +2 -0
- package/dist/_pkg/quadkey/neutral/index.mjs +281 -0
- package/dist/_pkg/quant-account/neutral/QuantAccount.d.ts +34 -0
- package/dist/_pkg/quant-account/neutral/index.d.ts +3 -0
- package/dist/_pkg/quant-account/neutral/index.mjs +173 -0
- package/dist/_pkg/quant-account/neutral/register.d.ts +2 -0
- package/dist/_pkg/query-payload-plugin/neutral/Payload.d.ts +43 -0
- package/dist/_pkg/query-payload-plugin/neutral/Plugin.d.ts +7 -0
- package/dist/_pkg/query-payload-plugin/neutral/Schema.d.ts +5 -0
- package/dist/_pkg/query-payload-plugin/neutral/Template.d.ts +3 -0
- package/dist/_pkg/query-payload-plugin/neutral/index.d.ts +5 -0
- package/dist/_pkg/query-payload-plugin/neutral/index.mjs +44 -0
- package/dist/_pkg/schema-cache/neutral/Debounce.d.ts +5 -0
- package/dist/_pkg/schema-cache/neutral/SchemaCache.d.ts +43 -0
- package/dist/_pkg/schema-cache/neutral/SchemaNameToValidatorMap.d.ts +12 -0
- package/dist/_pkg/schema-cache/neutral/TtlLruCache.d.ts +13 -0
- package/dist/_pkg/schema-cache/neutral/index.d.ts +5 -0
- package/dist/_pkg/schema-cache/neutral/index.mjs +178 -0
- package/dist/_pkg/schema-name-validator/neutral/SchemaNameValidator.d.ts +43 -0
- package/dist/_pkg/schema-name-validator/neutral/index.d.ts +2 -0
- package/dist/_pkg/schema-name-validator/neutral/index.mjs +69 -0
- package/dist/_pkg/schema-payload-plugin/neutral/Payload.d.ts +96 -0
- package/dist/_pkg/schema-payload-plugin/neutral/Plugin.d.ts +13 -0
- package/dist/_pkg/schema-payload-plugin/neutral/Schema.d.ts +5 -0
- package/dist/_pkg/schema-payload-plugin/neutral/Template.d.ts +3 -0
- package/dist/_pkg/schema-payload-plugin/neutral/index.d.ts +5 -0
- package/dist/_pkg/schema-payload-plugin/neutral/index.mjs +60 -0
- package/dist/_pkg/sdk-utils/neutral/api.d.ts +5 -0
- package/dist/_pkg/sdk-utils/neutral/api.mjs +6 -0
- package/dist/_pkg/sdk-utils/neutral/index.d.ts +9 -0
- package/dist/_pkg/sdk-utils/neutral/index.mjs +10 -0
- package/dist/_pkg/sdk-utils/neutral/integrations.d.ts +3 -0
- package/dist/_pkg/sdk-utils/neutral/integrations.mjs +4 -0
- package/dist/_pkg/sdk-utils/neutral/plugins.d.ts +2 -0
- package/dist/_pkg/sdk-utils/neutral/plugins.mjs +3 -0
- package/dist/_pkg/sdk-utils/neutral/validation.d.ts +2 -0
- package/dist/_pkg/sdk-utils/neutral/validation.mjs +3 -0
- package/dist/_pkg/value-payload-plugin/neutral/Payload.d.ts +46 -0
- package/dist/_pkg/value-payload-plugin/neutral/Plugin.d.ts +3 -0
- package/dist/_pkg/value-payload-plugin/neutral/Schema.d.ts +5 -0
- package/dist/_pkg/value-payload-plugin/neutral/Template.d.ts +3 -0
- package/dist/_pkg/value-payload-plugin/neutral/index.d.ts +5 -0
- package/dist/_pkg/value-payload-plugin/neutral/index.mjs +44 -0
- package/dist/_pkg/wallet/neutral/HDWallet.d.ts +38 -0
- package/dist/_pkg/wallet/neutral/index.d.ts +2 -0
- package/dist/_pkg/wallet/neutral/index.mjs +157 -0
- package/dist/_pkg/wallet-model/neutral/Mnemonic.d.ts +27 -0
- package/dist/_pkg/wallet-model/neutral/Wallet.d.ts +26 -0
- package/dist/_pkg/wallet-model/neutral/Wordlist.d.ts +24 -0
- package/dist/_pkg/wallet-model/neutral/index.d.ts +2 -0
- package/dist/_pkg/wallet-model/neutral/index.mjs +1 -0
- package/dist/_pkg/wasm/neutral/WasmSupport.d.ts +110 -0
- package/dist/_pkg/wasm/neutral/index.d.ts +2 -0
- package/dist/_pkg/wasm/neutral/index.mjs +178 -0
- package/dist/_pkg/wasm/neutral/wasmFeatureDetect.d.ts +16 -0
- package/dist/neutral/core-payload-plugins.d.ts +1 -0
- package/dist/neutral/core-payload-plugins.mjs +1 -0
- package/dist/neutral/index.d.ts +4 -0
- package/dist/neutral/index.mjs +4 -0
- package/dist/neutral/manifest.d.ts +1 -0
- package/dist/neutral/manifest.mjs +1 -0
- package/dist/neutral/protocol.d.ts +1 -0
- package/dist/neutral/protocol.mjs +1 -0
- package/dist/neutral/sdk-utils.d.ts +1 -0
- package/dist/neutral/sdk-utils.mjs +1 -0
- package/package.json +113 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const DomainPayloadPlugin: () => import("../../payload-plugin/neutral/index.ts").PayloadPlugin<{
|
|
2
|
+
schema: "network.xyo.domain" & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
additional?: string[] | undefined;
|
|
6
|
+
aliases?: Record<string, {
|
|
7
|
+
huri: string;
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
}> | undefined;
|
|
10
|
+
networks?: {
|
|
11
|
+
schema: "network.xyo.network" & {
|
|
12
|
+
readonly __schema: true;
|
|
13
|
+
};
|
|
14
|
+
slug: string;
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
nodes?: {
|
|
17
|
+
schema: "network.xyo.network.node" & {
|
|
18
|
+
readonly __schema: true;
|
|
19
|
+
};
|
|
20
|
+
slug: string;
|
|
21
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
22
|
+
uri: string;
|
|
23
|
+
docs?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
web?: string | undefined;
|
|
26
|
+
}[] | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
schemas?: Record<string, string | {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
$id?: string | undefined;
|
|
31
|
+
}> | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Payload } from '../../../payload-model/neutral/index.ts';
|
|
2
|
+
import type { SchemaPayload } from '../../../schema-payload-plugin/neutral/index.ts';
|
|
3
|
+
import type { DomainConfigFields } from '../Payload.ts';
|
|
4
|
+
import type { ResolveSchemaOptions, SchemaResolution, SchemaResolutionMechanism, SchemaResolutionSource } from './SchemaResolution.ts';
|
|
5
|
+
interface ResolveContext {
|
|
6
|
+
/** at least one mechanism answered cleanly (NXDOMAIN, 404, config without the schema) */
|
|
7
|
+
anyCleanAnswer: boolean;
|
|
8
|
+
archivistUri?: string;
|
|
9
|
+
proxy?: string;
|
|
10
|
+
visited: Set<string>;
|
|
11
|
+
}
|
|
12
|
+
interface Resolved {
|
|
13
|
+
payload: SchemaPayload;
|
|
14
|
+
source: SchemaResolutionSource;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The candidate domains for a schema name, shortest first
|
|
18
|
+
* (com.example.foo -> example.com, foo.example.com). See SPEC.md §5.
|
|
19
|
+
*/
|
|
20
|
+
export declare function candidateDomains(schemaName: string): string[];
|
|
21
|
+
/**
|
|
22
|
+
* Whether a schema name falls inside a domain's reverse-domain namespace: the name's
|
|
23
|
+
* leading levels, reversed, equal the domain or a parent of it. See SPEC.md §2.1.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isSchemaInDomainNamespace(schemaName: string, domain: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Resolves a schema name to the domain-published authoritative schema definition by
|
|
28
|
+
* walking the publication mechanisms in SPEC.md §5: DNS TXT records at _xyo.{domain}
|
|
29
|
+
* (per-schema, config hash, domain indirection, legacy bare hash), then the xyo.json
|
|
30
|
+
* root file, the xyo. subdomain index, and the legacy xyo-config.json (with the
|
|
31
|
+
* archivist proxy as browser fallback).
|
|
32
|
+
*/
|
|
33
|
+
export declare class DomainSchemaResolver {
|
|
34
|
+
resolve(schemaName: string, options?: ResolveSchemaOptions): Promise<SchemaResolution>;
|
|
35
|
+
/** Fetch a payload by hash (or HURI href) and verify it against the referenced hash */
|
|
36
|
+
protected fetchPayload(hashOrHref: string, context: ResolveContext, configFields?: DomainConfigFields): Promise<Payload | undefined>;
|
|
37
|
+
protected fetchSchemaPayloadByHash(hashOrHref: string, schemaName: string, context: ResolveContext, configFields?: DomainConfigFields): Promise<SchemaPayload | undefined>;
|
|
38
|
+
protected lookupHash(fields: DomainConfigFields, schemaName: string): string | undefined;
|
|
39
|
+
/** Find the schema in a domain config document (schemas map first, then legacy aliases) */
|
|
40
|
+
protected lookupInConfig(fields: DomainConfigFields | undefined, schemaName: string, domain: string, mechanism: SchemaResolutionMechanism, context: ResolveContext, url?: string): Promise<Resolved | undefined>;
|
|
41
|
+
protected resolveAtDomain(domain: string, schemaName: string, depth: number, context: ResolveContext): Promise<Resolved | undefined>;
|
|
42
|
+
protected resolveViaDns(domain: string, schemaName: string, depth: number, context: ResolveContext): Promise<Resolved | undefined>;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=DomainSchemaResolver.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { SchemaPayload } from '../../../schema-payload-plugin/neutral/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* How a schema definition was discovered. See SPEC.md §5.
|
|
5
|
+
*/
|
|
6
|
+
export type SchemaResolutionMechanism = 'dns-schema' | 'dns-config' | 'dns-domain' | 'dns-legacy' | 'file-root' | 'file-subdomain' | 'file-legacy' | 'file-proxy';
|
|
7
|
+
export type SchemaResolutionStatus = 'resolved' | 'not-published' | 'unreachable';
|
|
8
|
+
export interface SchemaResolutionSource {
|
|
9
|
+
domain: string;
|
|
10
|
+
hash?: Hash;
|
|
11
|
+
mechanism: SchemaResolutionMechanism;
|
|
12
|
+
url?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SchemaResolution {
|
|
15
|
+
payload?: SchemaPayload;
|
|
16
|
+
source?: SchemaResolutionSource;
|
|
17
|
+
status: SchemaResolutionStatus;
|
|
18
|
+
}
|
|
19
|
+
export interface ResolveSchemaOptions {
|
|
20
|
+
/** Archivist used to fetch payloads by hash; overrides config networks and the HURI default */
|
|
21
|
+
archivistUri?: string;
|
|
22
|
+
/** Maximum domain= indirection depth (default 3) */
|
|
23
|
+
maxIndirectionDepth?: number;
|
|
24
|
+
/** Archivist domain proxy used as a browser fallback for root-file fetches */
|
|
25
|
+
proxy?: string;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=SchemaResolution.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { GoogleDnsResultAnswer } from '../../../dns/neutral/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The parsed contents of the TXT record set at _xyo.{domain}. See SPEC.md §3.3.
|
|
5
|
+
*/
|
|
6
|
+
export interface XyoDnsRecords {
|
|
7
|
+
/** config={hash-or-huri} — hash of a network.xyo.domain.config (or legacy domain) payload */
|
|
8
|
+
config?: string;
|
|
9
|
+
/** domain={other-domain} — the named domain is the schema authority for this domain */
|
|
10
|
+
domain?: string;
|
|
11
|
+
/** bare 64-hex records — legacy hashes of network.xyo.domain payloads */
|
|
12
|
+
legacyHashes: Hash[];
|
|
13
|
+
/** schema.{name}={hash-or-huri} — per-schema hashes of network.xyo.schema payloads */
|
|
14
|
+
schemas: Record<string, string>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Strip surrounding double quotes and join multi-string TXT data ("abc" "def" -> abcdef)
|
|
18
|
+
* before grammar matching, per SPEC.md §3.3.
|
|
19
|
+
*/
|
|
20
|
+
export declare function normalizeTxtData(data: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Parse the TXT answers from a _xyo.{domain} query into the four record modes. Unknown
|
|
23
|
+
* keys are ignored; duplicates resolve lexicographically-first so results are
|
|
24
|
+
* deterministic regardless of DNS answer order.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseXyoTxtRecords(answers?: GoogleDnsResultAnswer[]): XyoDnsRecords;
|
|
27
|
+
//# sourceMappingURL=XyoDnsRecords.d.ts.map
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { type Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { FetchedPayload } from '../../huri/neutral/index.ts';
|
|
3
|
+
import { PayloadWrapper } from '../../payload-wrapper/neutral/index.ts';
|
|
4
|
+
import type { DomainConfigPayload } from './DomainConfigPayload.ts';
|
|
5
|
+
import { type Alias, type DomainPayload } from './Payload.ts';
|
|
6
|
+
export interface FetchedAlias extends FetchedPayload {
|
|
7
|
+
alias: Alias;
|
|
8
|
+
}
|
|
9
|
+
export declare class DomainPayloadWrapper<T extends DomainPayload | DomainConfigPayload = DomainPayload> extends PayloadWrapper<T> {
|
|
10
|
+
aliases?: FetchedAlias[] | null;
|
|
11
|
+
static discover(reverseDomainName: string, proxy?: string): Promise<DomainPayloadWrapper<(import("../../payload-model/neutral/index.ts").PayloadFields & {
|
|
12
|
+
schema: import("../../payload-model/neutral/index.ts").Schema;
|
|
13
|
+
} & Partial<import("../../payload-model/neutral/index.ts").PayloadMetaFields> & {
|
|
14
|
+
schema: "network.xyo.domain" & {
|
|
15
|
+
readonly __schema: true;
|
|
16
|
+
};
|
|
17
|
+
additional?: string[] | undefined;
|
|
18
|
+
aliases?: Record<string, {
|
|
19
|
+
huri: string;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
}> | undefined;
|
|
22
|
+
networks?: {
|
|
23
|
+
schema: "network.xyo.network" & {
|
|
24
|
+
readonly __schema: true;
|
|
25
|
+
};
|
|
26
|
+
slug: string;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
nodes?: {
|
|
29
|
+
schema: "network.xyo.network.node" & {
|
|
30
|
+
readonly __schema: true;
|
|
31
|
+
};
|
|
32
|
+
slug: string;
|
|
33
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
34
|
+
uri: string;
|
|
35
|
+
docs?: string | undefined;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
web?: string | undefined;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
schemas?: Record<string, string | {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
$id?: string | undefined;
|
|
43
|
+
}> | undefined;
|
|
44
|
+
}) | (import("../../payload-model/neutral/index.ts").PayloadFields & {
|
|
45
|
+
schema: import("../../payload-model/neutral/index.ts").Schema;
|
|
46
|
+
} & Partial<import("../../payload-model/neutral/index.ts").PayloadMetaFields> & {
|
|
47
|
+
schema: "network.xyo.domain.config" & {
|
|
48
|
+
readonly __schema: true;
|
|
49
|
+
};
|
|
50
|
+
additional?: string[] | undefined;
|
|
51
|
+
aliases?: Record<string, {
|
|
52
|
+
huri: string;
|
|
53
|
+
name?: string | undefined;
|
|
54
|
+
}> | undefined;
|
|
55
|
+
networks?: {
|
|
56
|
+
schema: "network.xyo.network" & {
|
|
57
|
+
readonly __schema: true;
|
|
58
|
+
};
|
|
59
|
+
slug: string;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
nodes?: {
|
|
62
|
+
schema: "network.xyo.network.node" & {
|
|
63
|
+
readonly __schema: true;
|
|
64
|
+
};
|
|
65
|
+
slug: string;
|
|
66
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
67
|
+
uri: string;
|
|
68
|
+
docs?: string | undefined;
|
|
69
|
+
name?: string | undefined;
|
|
70
|
+
web?: string | undefined;
|
|
71
|
+
}[] | undefined;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
schemas?: Record<string, string | {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
$id?: string | undefined;
|
|
76
|
+
}> | undefined;
|
|
77
|
+
})> | DomainPayloadWrapper<{
|
|
78
|
+
schema: "network.xyo.domain" & {
|
|
79
|
+
readonly __schema: true;
|
|
80
|
+
};
|
|
81
|
+
additional?: string[] | undefined;
|
|
82
|
+
aliases?: Record<string, {
|
|
83
|
+
huri: string;
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
}> | undefined;
|
|
86
|
+
networks?: {
|
|
87
|
+
schema: "network.xyo.network" & {
|
|
88
|
+
readonly __schema: true;
|
|
89
|
+
};
|
|
90
|
+
slug: string;
|
|
91
|
+
name?: string | undefined;
|
|
92
|
+
nodes?: {
|
|
93
|
+
schema: "network.xyo.network.node" & {
|
|
94
|
+
readonly __schema: true;
|
|
95
|
+
};
|
|
96
|
+
slug: string;
|
|
97
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
98
|
+
uri: string;
|
|
99
|
+
docs?: string | undefined;
|
|
100
|
+
name?: string | undefined;
|
|
101
|
+
web?: string | undefined;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
schemas?: Record<string, string | {
|
|
105
|
+
[x: string]: unknown;
|
|
106
|
+
$id?: string | undefined;
|
|
107
|
+
}> | undefined;
|
|
108
|
+
}> | undefined>;
|
|
109
|
+
static discoverDNSEntry(domain: string): Promise<DomainPayloadWrapper<(import("../../payload-model/neutral/index.ts").PayloadFields & {
|
|
110
|
+
schema: import("../../payload-model/neutral/index.ts").Schema;
|
|
111
|
+
} & Partial<import("../../payload-model/neutral/index.ts").PayloadMetaFields> & {
|
|
112
|
+
schema: "network.xyo.domain" & {
|
|
113
|
+
readonly __schema: true;
|
|
114
|
+
};
|
|
115
|
+
additional?: string[] | undefined;
|
|
116
|
+
aliases?: Record<string, {
|
|
117
|
+
huri: string;
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
}> | undefined;
|
|
120
|
+
networks?: {
|
|
121
|
+
schema: "network.xyo.network" & {
|
|
122
|
+
readonly __schema: true;
|
|
123
|
+
};
|
|
124
|
+
slug: string;
|
|
125
|
+
name?: string | undefined;
|
|
126
|
+
nodes?: {
|
|
127
|
+
schema: "network.xyo.network.node" & {
|
|
128
|
+
readonly __schema: true;
|
|
129
|
+
};
|
|
130
|
+
slug: string;
|
|
131
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
132
|
+
uri: string;
|
|
133
|
+
docs?: string | undefined;
|
|
134
|
+
name?: string | undefined;
|
|
135
|
+
web?: string | undefined;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
schemas?: Record<string, string | {
|
|
139
|
+
[x: string]: unknown;
|
|
140
|
+
$id?: string | undefined;
|
|
141
|
+
}> | undefined;
|
|
142
|
+
}) | (import("../../payload-model/neutral/index.ts").PayloadFields & {
|
|
143
|
+
schema: import("../../payload-model/neutral/index.ts").Schema;
|
|
144
|
+
} & Partial<import("../../payload-model/neutral/index.ts").PayloadMetaFields> & {
|
|
145
|
+
schema: "network.xyo.domain.config" & {
|
|
146
|
+
readonly __schema: true;
|
|
147
|
+
};
|
|
148
|
+
additional?: string[] | undefined;
|
|
149
|
+
aliases?: Record<string, {
|
|
150
|
+
huri: string;
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
}> | undefined;
|
|
153
|
+
networks?: {
|
|
154
|
+
schema: "network.xyo.network" & {
|
|
155
|
+
readonly __schema: true;
|
|
156
|
+
};
|
|
157
|
+
slug: string;
|
|
158
|
+
name?: string | undefined;
|
|
159
|
+
nodes?: {
|
|
160
|
+
schema: "network.xyo.network.node" & {
|
|
161
|
+
readonly __schema: true;
|
|
162
|
+
};
|
|
163
|
+
slug: string;
|
|
164
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
165
|
+
uri: string;
|
|
166
|
+
docs?: string | undefined;
|
|
167
|
+
name?: string | undefined;
|
|
168
|
+
web?: string | undefined;
|
|
169
|
+
}[] | undefined;
|
|
170
|
+
}[] | undefined;
|
|
171
|
+
schemas?: Record<string, string | {
|
|
172
|
+
[x: string]: unknown;
|
|
173
|
+
$id?: string | undefined;
|
|
174
|
+
}> | undefined;
|
|
175
|
+
})> | undefined>;
|
|
176
|
+
static discoverRootFile(domain: string, proxy?: string): Promise<DomainPayloadWrapper<{
|
|
177
|
+
schema: "network.xyo.domain" & {
|
|
178
|
+
readonly __schema: true;
|
|
179
|
+
};
|
|
180
|
+
additional?: string[] | undefined;
|
|
181
|
+
aliases?: Record<string, {
|
|
182
|
+
huri: string;
|
|
183
|
+
name?: string | undefined;
|
|
184
|
+
}> | undefined;
|
|
185
|
+
networks?: {
|
|
186
|
+
schema: "network.xyo.network" & {
|
|
187
|
+
readonly __schema: true;
|
|
188
|
+
};
|
|
189
|
+
slug: string;
|
|
190
|
+
name?: string | undefined;
|
|
191
|
+
nodes?: {
|
|
192
|
+
schema: "network.xyo.network.node" & {
|
|
193
|
+
readonly __schema: true;
|
|
194
|
+
};
|
|
195
|
+
slug: string;
|
|
196
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
197
|
+
uri: string;
|
|
198
|
+
docs?: string | undefined;
|
|
199
|
+
name?: string | undefined;
|
|
200
|
+
web?: string | undefined;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
}[] | undefined;
|
|
203
|
+
schemas?: Record<string, string | {
|
|
204
|
+
[x: string]: unknown;
|
|
205
|
+
$id?: string | undefined;
|
|
206
|
+
}> | undefined;
|
|
207
|
+
}> | undefined>;
|
|
208
|
+
static discoverRootFileDirect(domain: string): Promise<DomainPayloadWrapper<{
|
|
209
|
+
schema: "network.xyo.domain" & {
|
|
210
|
+
readonly __schema: true;
|
|
211
|
+
};
|
|
212
|
+
additional?: string[] | undefined;
|
|
213
|
+
aliases?: Record<string, {
|
|
214
|
+
huri: string;
|
|
215
|
+
name?: string | undefined;
|
|
216
|
+
}> | undefined;
|
|
217
|
+
networks?: {
|
|
218
|
+
schema: "network.xyo.network" & {
|
|
219
|
+
readonly __schema: true;
|
|
220
|
+
};
|
|
221
|
+
slug: string;
|
|
222
|
+
name?: string | undefined;
|
|
223
|
+
nodes?: {
|
|
224
|
+
schema: "network.xyo.network.node" & {
|
|
225
|
+
readonly __schema: true;
|
|
226
|
+
};
|
|
227
|
+
slug: string;
|
|
228
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
229
|
+
uri: string;
|
|
230
|
+
docs?: string | undefined;
|
|
231
|
+
name?: string | undefined;
|
|
232
|
+
web?: string | undefined;
|
|
233
|
+
}[] | undefined;
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
schemas?: Record<string, string | {
|
|
236
|
+
[x: string]: unknown;
|
|
237
|
+
$id?: string | undefined;
|
|
238
|
+
}> | undefined;
|
|
239
|
+
}> | undefined>;
|
|
240
|
+
static discoverRootFileWithProxy(domain: string, proxy?: string): Promise<DomainPayloadWrapper<{
|
|
241
|
+
schema: "network.xyo.domain" & {
|
|
242
|
+
readonly __schema: true;
|
|
243
|
+
};
|
|
244
|
+
additional?: string[] | undefined;
|
|
245
|
+
aliases?: Record<string, {
|
|
246
|
+
huri: string;
|
|
247
|
+
name?: string | undefined;
|
|
248
|
+
}> | undefined;
|
|
249
|
+
networks?: {
|
|
250
|
+
schema: "network.xyo.network" & {
|
|
251
|
+
readonly __schema: true;
|
|
252
|
+
};
|
|
253
|
+
slug: string;
|
|
254
|
+
name?: string | undefined;
|
|
255
|
+
nodes?: {
|
|
256
|
+
schema: "network.xyo.network.node" & {
|
|
257
|
+
readonly __schema: true;
|
|
258
|
+
};
|
|
259
|
+
slug: string;
|
|
260
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
261
|
+
uri: string;
|
|
262
|
+
docs?: string | undefined;
|
|
263
|
+
name?: string | undefined;
|
|
264
|
+
web?: string | undefined;
|
|
265
|
+
}[] | undefined;
|
|
266
|
+
}[] | undefined;
|
|
267
|
+
schemas?: Record<string, string | {
|
|
268
|
+
[x: string]: unknown;
|
|
269
|
+
$id?: string | undefined;
|
|
270
|
+
}> | undefined;
|
|
271
|
+
}> | undefined>;
|
|
272
|
+
private fetchAlias;
|
|
273
|
+
private findArchivistUri;
|
|
274
|
+
private getNetwork;
|
|
275
|
+
fetch(networkSlug?: Hash): Promise<void>;
|
|
276
|
+
fetchAliases(networkSlug?: Hash): Promise<void>;
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=Wrapper.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './DomainConfigPayload.ts';
|
|
2
|
+
export * from './DomainConfigPlugin.ts';
|
|
3
|
+
export * from './DomainConfigSchema.ts';
|
|
4
|
+
export * from './DomainConfigTemplate.ts';
|
|
5
|
+
export * from './Payload.ts';
|
|
6
|
+
export { DomainPayloadPlugin as default, DomainPayloadPlugin } from './Plugin.ts';
|
|
7
|
+
export * from './Resolution/index.ts';
|
|
8
|
+
export * from './Schema.ts';
|
|
9
|
+
export * from './Template.ts';
|
|
10
|
+
export * from './Wrapper.ts';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|