@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,11 @@
|
|
|
1
|
+
import type { DnsRecordType } from './DnsRecordType.ts';
|
|
2
|
+
export interface GoogleDnsResultQuestion {
|
|
3
|
+
cd?: boolean;
|
|
4
|
+
ct?: string;
|
|
5
|
+
do?: boolean;
|
|
6
|
+
edns_client_subnet?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
random_padding?: string;
|
|
9
|
+
type?: DnsRecordType;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=GoogleDnsResultQuestion.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DnsRecordType } from './DnsRecordType.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves DNS information (resolves using DNS)
|
|
4
|
+
* @param domain - string
|
|
5
|
+
* @returns GoogleDnsResult
|
|
6
|
+
*/
|
|
7
|
+
declare const domainResolve: (domain?: string, type?: DnsRecordType) => Promise<import("./GoogleDnsResult.ts").GoogleDnsResult | undefined>;
|
|
8
|
+
export { domainResolve };
|
|
9
|
+
//# sourceMappingURL=domainResolve.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DnsRecordType } from './DnsRecordType.ts';
|
|
2
|
+
import type { GoogleDnsResult } from './GoogleDnsResult.ts';
|
|
3
|
+
declare const googleDnsOverHttps: (name: string, type?: DnsRecordType) => Promise<GoogleDnsResult | undefined>;
|
|
4
|
+
export { googleDnsOverHttps };
|
|
5
|
+
//# sourceMappingURL=googleDnsOverHttps.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './DnsRecordType.ts';
|
|
2
|
+
export * from './DnsReturnCode.ts';
|
|
3
|
+
export * from './domainExists.ts';
|
|
4
|
+
export * from './domainResolve.ts';
|
|
5
|
+
export * from './googleDnsOverHttps.ts';
|
|
6
|
+
export * from './GoogleDnsResult.ts';
|
|
7
|
+
export * from './GoogleDnsResultAnswer.ts';
|
|
8
|
+
export * from './GoogleDnsResultQuestion.ts';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// src/DnsRecordType.ts
|
|
2
|
+
var DnsRecordType = {
|
|
3
|
+
A: 1,
|
|
4
|
+
AAAA: 28,
|
|
5
|
+
CAA: 257,
|
|
6
|
+
CNAME: 5,
|
|
7
|
+
DNAME: 39,
|
|
8
|
+
MX: 15,
|
|
9
|
+
NS: 2,
|
|
10
|
+
PTR: 12,
|
|
11
|
+
SOA: 6,
|
|
12
|
+
SPF: 99,
|
|
13
|
+
SRV: 33,
|
|
14
|
+
TXT: 16
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/DnsReturnCode.ts
|
|
18
|
+
var DnsReturnCode = {
|
|
19
|
+
NoError: 0,
|
|
20
|
+
QueryFormatError: 1,
|
|
21
|
+
ServerFailed: 2,
|
|
22
|
+
DomainDoesNotExist: 3,
|
|
23
|
+
NotImplemented: 4,
|
|
24
|
+
Refused: 5,
|
|
25
|
+
NameShouldNotExist: 6,
|
|
26
|
+
RRSetShouldNotExist: 7,
|
|
27
|
+
NotAuthoritative: 8,
|
|
28
|
+
NotInZone: 9
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// src/domainResolve.ts
|
|
32
|
+
import { isDefined } from "@xylabs/sdk";
|
|
33
|
+
|
|
34
|
+
// src/googleDnsOverHttps.ts
|
|
35
|
+
import { fetchJson } from "@xylabs/sdk";
|
|
36
|
+
var googleDnsOverHttps = async (name, type = DnsRecordType.A) => {
|
|
37
|
+
const response = await fetchJson(`https://dns.google/resolve?name=${name}&type=${type}`);
|
|
38
|
+
return response.data ?? void 0;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/domainResolve.ts
|
|
42
|
+
var domainResolve = async (domain, type = DnsRecordType.A) => {
|
|
43
|
+
if (isDefined(domain)) {
|
|
44
|
+
return await googleDnsOverHttps(domain, type);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// src/domainExists.ts
|
|
49
|
+
var domainExists = async (domain) => {
|
|
50
|
+
if (domain === void 0) return false;
|
|
51
|
+
const dnsResult = await domainResolve(domain);
|
|
52
|
+
return dnsResult?.Status === DnsReturnCode.NoError;
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
DnsRecordType,
|
|
56
|
+
DnsReturnCode,
|
|
57
|
+
domainExists,
|
|
58
|
+
domainResolve,
|
|
59
|
+
googleDnsOverHttps
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
/**
|
|
3
|
+
* A domain's xyo config stored as an on-network payload, so it can be referenced from a
|
|
4
|
+
* DNS TXT record by hash (config={hash}). Shares its field set with DomainPayload.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DomainConfigPayloadZod: z.ZodMiniObject<{
|
|
7
|
+
schema: z.ZodMiniLiteral<"network.xyo.domain.config" & {
|
|
8
|
+
readonly __schema: true;
|
|
9
|
+
}>;
|
|
10
|
+
additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
11
|
+
aliases: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
12
|
+
huri: z.ZodMiniString<string>;
|
|
13
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
networks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<{
|
|
16
|
+
schema: "network.xyo.network" & {
|
|
17
|
+
readonly __schema: true;
|
|
18
|
+
};
|
|
19
|
+
slug: string;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
nodes?: {
|
|
22
|
+
schema: "network.xyo.network.node" & {
|
|
23
|
+
readonly __schema: true;
|
|
24
|
+
};
|
|
25
|
+
slug: string;
|
|
26
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
27
|
+
uri: string;
|
|
28
|
+
docs?: string | undefined;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
web?: string | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
schema: "network.xyo.network" & {
|
|
34
|
+
readonly __schema: true;
|
|
35
|
+
};
|
|
36
|
+
slug: string;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
nodes?: {
|
|
39
|
+
schema: "network.xyo.network.node" & {
|
|
40
|
+
readonly __schema: true;
|
|
41
|
+
};
|
|
42
|
+
slug: string;
|
|
43
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
44
|
+
uri: string;
|
|
45
|
+
docs?: string | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
web?: string | undefined;
|
|
48
|
+
}[] | undefined;
|
|
49
|
+
}>>>;
|
|
50
|
+
schemas: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
51
|
+
$id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
+
}, z.core.$loose>]>>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type DomainConfigPayload = z.infer<typeof DomainConfigPayloadZod>;
|
|
55
|
+
export declare const isDomainConfigPayload: <T>(value: T) => value is T & {
|
|
56
|
+
schema: "network.xyo.domain.config" & {
|
|
57
|
+
readonly __schema: true;
|
|
58
|
+
};
|
|
59
|
+
additional?: string[] | undefined;
|
|
60
|
+
aliases?: Record<string, {
|
|
61
|
+
huri: string;
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
networks?: {
|
|
65
|
+
schema: "network.xyo.network" & {
|
|
66
|
+
readonly __schema: true;
|
|
67
|
+
};
|
|
68
|
+
slug: string;
|
|
69
|
+
name?: string | undefined;
|
|
70
|
+
nodes?: {
|
|
71
|
+
schema: "network.xyo.network.node" & {
|
|
72
|
+
readonly __schema: true;
|
|
73
|
+
};
|
|
74
|
+
slug: string;
|
|
75
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
76
|
+
uri: string;
|
|
77
|
+
docs?: string | undefined;
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
web?: string | undefined;
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
}[] | undefined;
|
|
82
|
+
schemas?: Record<string, string | {
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
$id?: string | undefined;
|
|
85
|
+
}> | undefined;
|
|
86
|
+
};
|
|
87
|
+
export declare const asDomainConfigPayload: {
|
|
88
|
+
<T>(value: T): (T & {
|
|
89
|
+
schema: "network.xyo.domain.config" & {
|
|
90
|
+
readonly __schema: true;
|
|
91
|
+
};
|
|
92
|
+
additional?: string[] | undefined;
|
|
93
|
+
aliases?: Record<string, {
|
|
94
|
+
huri: string;
|
|
95
|
+
name?: string | undefined;
|
|
96
|
+
}> | undefined;
|
|
97
|
+
networks?: {
|
|
98
|
+
schema: "network.xyo.network" & {
|
|
99
|
+
readonly __schema: true;
|
|
100
|
+
};
|
|
101
|
+
slug: string;
|
|
102
|
+
name?: string | undefined;
|
|
103
|
+
nodes?: {
|
|
104
|
+
schema: "network.xyo.network.node" & {
|
|
105
|
+
readonly __schema: true;
|
|
106
|
+
};
|
|
107
|
+
slug: string;
|
|
108
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
109
|
+
uri: string;
|
|
110
|
+
docs?: string | undefined;
|
|
111
|
+
name?: string | undefined;
|
|
112
|
+
web?: string | undefined;
|
|
113
|
+
}[] | undefined;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
schemas?: Record<string, string | {
|
|
116
|
+
[x: string]: unknown;
|
|
117
|
+
$id?: string | undefined;
|
|
118
|
+
}> | undefined;
|
|
119
|
+
}) | undefined;
|
|
120
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
121
|
+
schema: "network.xyo.domain.config" & {
|
|
122
|
+
readonly __schema: true;
|
|
123
|
+
};
|
|
124
|
+
additional?: string[] | undefined;
|
|
125
|
+
aliases?: Record<string, {
|
|
126
|
+
huri: string;
|
|
127
|
+
name?: string | undefined;
|
|
128
|
+
}> | undefined;
|
|
129
|
+
networks?: {
|
|
130
|
+
schema: "network.xyo.network" & {
|
|
131
|
+
readonly __schema: true;
|
|
132
|
+
};
|
|
133
|
+
slug: string;
|
|
134
|
+
name?: string | undefined;
|
|
135
|
+
nodes?: {
|
|
136
|
+
schema: "network.xyo.network.node" & {
|
|
137
|
+
readonly __schema: true;
|
|
138
|
+
};
|
|
139
|
+
slug: string;
|
|
140
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
141
|
+
uri: string;
|
|
142
|
+
docs?: string | undefined;
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
web?: string | undefined;
|
|
145
|
+
}[] | undefined;
|
|
146
|
+
}[] | undefined;
|
|
147
|
+
schemas?: Record<string, string | {
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
$id?: string | undefined;
|
|
150
|
+
}> | undefined;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
export declare const toDomainConfigPayload: {
|
|
154
|
+
<T>(value: T): (T & {
|
|
155
|
+
schema: "network.xyo.domain.config" & {
|
|
156
|
+
readonly __schema: true;
|
|
157
|
+
};
|
|
158
|
+
additional?: string[] | undefined;
|
|
159
|
+
aliases?: Record<string, {
|
|
160
|
+
huri: string;
|
|
161
|
+
name?: string | undefined;
|
|
162
|
+
}> | undefined;
|
|
163
|
+
networks?: {
|
|
164
|
+
schema: "network.xyo.network" & {
|
|
165
|
+
readonly __schema: true;
|
|
166
|
+
};
|
|
167
|
+
slug: string;
|
|
168
|
+
name?: string | undefined;
|
|
169
|
+
nodes?: {
|
|
170
|
+
schema: "network.xyo.network.node" & {
|
|
171
|
+
readonly __schema: true;
|
|
172
|
+
};
|
|
173
|
+
slug: string;
|
|
174
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
175
|
+
uri: string;
|
|
176
|
+
docs?: string | undefined;
|
|
177
|
+
name?: string | undefined;
|
|
178
|
+
web?: string | undefined;
|
|
179
|
+
}[] | undefined;
|
|
180
|
+
}[] | undefined;
|
|
181
|
+
schemas?: Record<string, string | {
|
|
182
|
+
[x: string]: unknown;
|
|
183
|
+
$id?: string | undefined;
|
|
184
|
+
}> | undefined;
|
|
185
|
+
}) | undefined;
|
|
186
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
187
|
+
schema: "network.xyo.domain.config" & {
|
|
188
|
+
readonly __schema: true;
|
|
189
|
+
};
|
|
190
|
+
additional?: string[] | undefined;
|
|
191
|
+
aliases?: Record<string, {
|
|
192
|
+
huri: string;
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
}> | undefined;
|
|
195
|
+
networks?: {
|
|
196
|
+
schema: "network.xyo.network" & {
|
|
197
|
+
readonly __schema: true;
|
|
198
|
+
};
|
|
199
|
+
slug: string;
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
nodes?: {
|
|
202
|
+
schema: "network.xyo.network.node" & {
|
|
203
|
+
readonly __schema: true;
|
|
204
|
+
};
|
|
205
|
+
slug: string;
|
|
206
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
207
|
+
uri: string;
|
|
208
|
+
docs?: string | undefined;
|
|
209
|
+
name?: string | undefined;
|
|
210
|
+
web?: string | undefined;
|
|
211
|
+
}[] | undefined;
|
|
212
|
+
}[] | undefined;
|
|
213
|
+
schemas?: Record<string, string | {
|
|
214
|
+
[x: string]: unknown;
|
|
215
|
+
$id?: string | undefined;
|
|
216
|
+
}> | undefined;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=DomainConfigPayload.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const DomainConfigPayloadPlugin: () => import("../../payload-plugin/neutral/index.ts").PayloadPlugin<{
|
|
2
|
+
schema: "network.xyo.domain.config" & {
|
|
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=DomainConfigPlugin.d.ts.map
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const AliasZod: z.ZodMiniObject<{
|
|
3
|
+
huri: z.ZodMiniString<string>;
|
|
4
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type Alias = z.infer<typeof AliasZod>;
|
|
7
|
+
/**
|
|
8
|
+
* An inline JSON Schema (draft-07) definition body. If $id is present it must equal the
|
|
9
|
+
* schemas map key; resolvers overwrite $id from the key (the key is authoritative).
|
|
10
|
+
*/
|
|
11
|
+
export declare const SchemaDefinitionZod: z.ZodMiniObject<{
|
|
12
|
+
$id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
export type SchemaDefinition = z.infer<typeof SchemaDefinitionZod>;
|
|
15
|
+
/**
|
|
16
|
+
* One entry in the schemas map: a string is a hash (or HURI href) of a
|
|
17
|
+
* network.xyo.schema payload; an object is an inline JSON Schema definition.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SchemaMapEntryZod: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
20
|
+
$id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
21
|
+
}, z.core.$loose>]>;
|
|
22
|
+
export type SchemaMapEntry = z.infer<typeof SchemaMapEntryZod>;
|
|
23
|
+
export declare const DomainConfigFieldsZod: z.ZodMiniObject<{
|
|
24
|
+
additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
25
|
+
aliases: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
26
|
+
huri: z.ZodMiniString<string>;
|
|
27
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
networks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<{
|
|
30
|
+
schema: "network.xyo.network" & {
|
|
31
|
+
readonly __schema: true;
|
|
32
|
+
};
|
|
33
|
+
slug: string;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
nodes?: {
|
|
36
|
+
schema: "network.xyo.network.node" & {
|
|
37
|
+
readonly __schema: true;
|
|
38
|
+
};
|
|
39
|
+
slug: string;
|
|
40
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
41
|
+
uri: string;
|
|
42
|
+
docs?: string | undefined;
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
web?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
schema: "network.xyo.network" & {
|
|
48
|
+
readonly __schema: true;
|
|
49
|
+
};
|
|
50
|
+
slug: string;
|
|
51
|
+
name?: string | undefined;
|
|
52
|
+
nodes?: {
|
|
53
|
+
schema: "network.xyo.network.node" & {
|
|
54
|
+
readonly __schema: true;
|
|
55
|
+
};
|
|
56
|
+
slug: string;
|
|
57
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
58
|
+
uri: string;
|
|
59
|
+
docs?: string | undefined;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
web?: string | undefined;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
}>>>;
|
|
64
|
+
schemas: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
65
|
+
$id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
66
|
+
}, z.core.$loose>]>>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type DomainConfigFields = z.infer<typeof DomainConfigFieldsZod>;
|
|
69
|
+
export declare const DomainPayloadZod: z.ZodMiniObject<{
|
|
70
|
+
schema: z.ZodMiniLiteral<"network.xyo.domain" & {
|
|
71
|
+
readonly __schema: true;
|
|
72
|
+
}>;
|
|
73
|
+
additional: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
74
|
+
aliases: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
75
|
+
huri: z.ZodMiniString<string>;
|
|
76
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
networks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<{
|
|
79
|
+
schema: "network.xyo.network" & {
|
|
80
|
+
readonly __schema: true;
|
|
81
|
+
};
|
|
82
|
+
slug: string;
|
|
83
|
+
name?: string | undefined;
|
|
84
|
+
nodes?: {
|
|
85
|
+
schema: "network.xyo.network.node" & {
|
|
86
|
+
readonly __schema: true;
|
|
87
|
+
};
|
|
88
|
+
slug: string;
|
|
89
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
90
|
+
uri: string;
|
|
91
|
+
docs?: string | undefined;
|
|
92
|
+
name?: string | undefined;
|
|
93
|
+
web?: string | undefined;
|
|
94
|
+
}[] | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
schema: "network.xyo.network" & {
|
|
97
|
+
readonly __schema: true;
|
|
98
|
+
};
|
|
99
|
+
slug: string;
|
|
100
|
+
name?: string | undefined;
|
|
101
|
+
nodes?: {
|
|
102
|
+
schema: "network.xyo.network.node" & {
|
|
103
|
+
readonly __schema: true;
|
|
104
|
+
};
|
|
105
|
+
slug: string;
|
|
106
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
107
|
+
uri: string;
|
|
108
|
+
docs?: string | undefined;
|
|
109
|
+
name?: string | undefined;
|
|
110
|
+
web?: string | undefined;
|
|
111
|
+
}[] | undefined;
|
|
112
|
+
}>>>;
|
|
113
|
+
schemas: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
114
|
+
$id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
115
|
+
}, z.core.$loose>]>>>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export type DomainPayload = z.infer<typeof DomainPayloadZod>;
|
|
118
|
+
export declare const isDomainPayload: <T>(value: T) => value is T & {
|
|
119
|
+
schema: "network.xyo.domain" & {
|
|
120
|
+
readonly __schema: true;
|
|
121
|
+
};
|
|
122
|
+
additional?: string[] | undefined;
|
|
123
|
+
aliases?: Record<string, {
|
|
124
|
+
huri: string;
|
|
125
|
+
name?: string | undefined;
|
|
126
|
+
}> | undefined;
|
|
127
|
+
networks?: {
|
|
128
|
+
schema: "network.xyo.network" & {
|
|
129
|
+
readonly __schema: true;
|
|
130
|
+
};
|
|
131
|
+
slug: string;
|
|
132
|
+
name?: string | undefined;
|
|
133
|
+
nodes?: {
|
|
134
|
+
schema: "network.xyo.network.node" & {
|
|
135
|
+
readonly __schema: true;
|
|
136
|
+
};
|
|
137
|
+
slug: string;
|
|
138
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
139
|
+
uri: string;
|
|
140
|
+
docs?: string | undefined;
|
|
141
|
+
name?: string | undefined;
|
|
142
|
+
web?: string | undefined;
|
|
143
|
+
}[] | undefined;
|
|
144
|
+
}[] | undefined;
|
|
145
|
+
schemas?: Record<string, string | {
|
|
146
|
+
[x: string]: unknown;
|
|
147
|
+
$id?: string | undefined;
|
|
148
|
+
}> | undefined;
|
|
149
|
+
};
|
|
150
|
+
export declare const asDomainPayload: {
|
|
151
|
+
<T>(value: T): (T & {
|
|
152
|
+
schema: "network.xyo.domain" & {
|
|
153
|
+
readonly __schema: true;
|
|
154
|
+
};
|
|
155
|
+
additional?: string[] | undefined;
|
|
156
|
+
aliases?: Record<string, {
|
|
157
|
+
huri: string;
|
|
158
|
+
name?: string | undefined;
|
|
159
|
+
}> | undefined;
|
|
160
|
+
networks?: {
|
|
161
|
+
schema: "network.xyo.network" & {
|
|
162
|
+
readonly __schema: true;
|
|
163
|
+
};
|
|
164
|
+
slug: string;
|
|
165
|
+
name?: string | undefined;
|
|
166
|
+
nodes?: {
|
|
167
|
+
schema: "network.xyo.network.node" & {
|
|
168
|
+
readonly __schema: true;
|
|
169
|
+
};
|
|
170
|
+
slug: string;
|
|
171
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
172
|
+
uri: string;
|
|
173
|
+
docs?: string | undefined;
|
|
174
|
+
name?: string | undefined;
|
|
175
|
+
web?: string | undefined;
|
|
176
|
+
}[] | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
schemas?: Record<string, string | {
|
|
179
|
+
[x: string]: unknown;
|
|
180
|
+
$id?: string | undefined;
|
|
181
|
+
}> | undefined;
|
|
182
|
+
}) | undefined;
|
|
183
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
184
|
+
schema: "network.xyo.domain" & {
|
|
185
|
+
readonly __schema: true;
|
|
186
|
+
};
|
|
187
|
+
additional?: string[] | undefined;
|
|
188
|
+
aliases?: Record<string, {
|
|
189
|
+
huri: string;
|
|
190
|
+
name?: string | undefined;
|
|
191
|
+
}> | undefined;
|
|
192
|
+
networks?: {
|
|
193
|
+
schema: "network.xyo.network" & {
|
|
194
|
+
readonly __schema: true;
|
|
195
|
+
};
|
|
196
|
+
slug: string;
|
|
197
|
+
name?: string | undefined;
|
|
198
|
+
nodes?: {
|
|
199
|
+
schema: "network.xyo.network.node" & {
|
|
200
|
+
readonly __schema: true;
|
|
201
|
+
};
|
|
202
|
+
slug: string;
|
|
203
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
204
|
+
uri: string;
|
|
205
|
+
docs?: string | undefined;
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
web?: string | undefined;
|
|
208
|
+
}[] | undefined;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
schemas?: Record<string, string | {
|
|
211
|
+
[x: string]: unknown;
|
|
212
|
+
$id?: string | undefined;
|
|
213
|
+
}> | undefined;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
export declare const toDomainPayload: {
|
|
217
|
+
<T>(value: T): (T & {
|
|
218
|
+
schema: "network.xyo.domain" & {
|
|
219
|
+
readonly __schema: true;
|
|
220
|
+
};
|
|
221
|
+
additional?: string[] | undefined;
|
|
222
|
+
aliases?: Record<string, {
|
|
223
|
+
huri: string;
|
|
224
|
+
name?: string | undefined;
|
|
225
|
+
}> | undefined;
|
|
226
|
+
networks?: {
|
|
227
|
+
schema: "network.xyo.network" & {
|
|
228
|
+
readonly __schema: true;
|
|
229
|
+
};
|
|
230
|
+
slug: string;
|
|
231
|
+
name?: string | undefined;
|
|
232
|
+
nodes?: {
|
|
233
|
+
schema: "network.xyo.network.node" & {
|
|
234
|
+
readonly __schema: true;
|
|
235
|
+
};
|
|
236
|
+
slug: string;
|
|
237
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
238
|
+
uri: string;
|
|
239
|
+
docs?: string | undefined;
|
|
240
|
+
name?: string | undefined;
|
|
241
|
+
web?: string | undefined;
|
|
242
|
+
}[] | undefined;
|
|
243
|
+
}[] | undefined;
|
|
244
|
+
schemas?: Record<string, string | {
|
|
245
|
+
[x: string]: unknown;
|
|
246
|
+
$id?: string | undefined;
|
|
247
|
+
}> | undefined;
|
|
248
|
+
}) | undefined;
|
|
249
|
+
<T>(value: T, assert: import("@xylabs/sdk").ZodFactoryConfig): T & {
|
|
250
|
+
schema: "network.xyo.domain" & {
|
|
251
|
+
readonly __schema: true;
|
|
252
|
+
};
|
|
253
|
+
additional?: string[] | undefined;
|
|
254
|
+
aliases?: Record<string, {
|
|
255
|
+
huri: string;
|
|
256
|
+
name?: string | undefined;
|
|
257
|
+
}> | undefined;
|
|
258
|
+
networks?: {
|
|
259
|
+
schema: "network.xyo.network" & {
|
|
260
|
+
readonly __schema: true;
|
|
261
|
+
};
|
|
262
|
+
slug: string;
|
|
263
|
+
name?: string | undefined;
|
|
264
|
+
nodes?: {
|
|
265
|
+
schema: "network.xyo.network.node" & {
|
|
266
|
+
readonly __schema: true;
|
|
267
|
+
};
|
|
268
|
+
slug: string;
|
|
269
|
+
type: "archivist" | "diviner" | "bridge" | "sentinel";
|
|
270
|
+
uri: string;
|
|
271
|
+
docs?: string | undefined;
|
|
272
|
+
name?: string | undefined;
|
|
273
|
+
web?: string | undefined;
|
|
274
|
+
}[] | undefined;
|
|
275
|
+
}[] | undefined;
|
|
276
|
+
schemas?: Record<string, string | {
|
|
277
|
+
[x: string]: unknown;
|
|
278
|
+
$id?: string | undefined;
|
|
279
|
+
}> | undefined;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
//# sourceMappingURL=Payload.d.ts.map
|