From a93481fd35b4c078946087460fa2cbc340021dc0 Mon Sep 17 00:00:00 2001 From: Kostiantyn Smyrnov Date: Mon, 3 Apr 2023 12:04:42 +0200 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Bump=20initial=20ver?= =?UTF-8?q?sion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 90d06ba4..e2fbaec1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![@windingtree/sdk](https://img.shields.io/npm/v/@windingtree/sdk.svg)](https://www.npmjs.com/package/@windingtree/sdk) + # @windingtree/sdk The WindingTree market protocol SDK From 39e01e44220f07e981f3757297a82e2e28ac79e5 Mon Sep 17 00:00:00 2001 From: Kostiantyn Smyrnov Date: Mon, 3 Apr 2023 12:07:30 +0200 Subject: [PATCH 2/5] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Fixed=20typo=20in?= =?UTF-8?q?=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89b8a0f5..b65dccba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - name: Lint - run: yarn Lint + run: yarn lint - name: Test run: yarn test - name: Build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d8f15a4..54c790c1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,6 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - name: Lint - run: yarn Lint + run: yarn lint - name: Test run: yarn test From 5ff0c5d64902bbdea831658bab7986c73291e763 Mon Sep 17 00:00:00 2001 From: Kostiantyn Smyrnov Date: Mon, 3 Apr 2023 12:17:36 +0200 Subject: [PATCH 3/5] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Removed=20typedoc?= =?UTF-8?q?=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 + .prettierignore | 2 + src/shared/queue.ts | 17 +- typedoc/.nojekyll | 1 - typedoc/assets/highlight.css | 71 - typedoc/assets/main.js | 2063 ----------------- typedoc/assets/search.js | 3 - typedoc/assets/style.css | 1276 ---------- typedoc/classes/Client.html | 603 ----- typedoc/classes/CoordinationServer.html | 235 -- typedoc/classes/Node.html | 371 --- typedoc/classes/Queue.html | 433 ---- typedoc/classes/storage.Storage.html | 157 -- .../storage.localStorage.LocalStorage.html | 257 -- .../storage.memoryStorage.MemoryStorage.html | 209 -- typedoc/enums/JobStatuses.html | 113 - typedoc/functions/buildOffer.html | 139 -- typedoc/functions/buildRequest.html | 137 -- .../functions/createBuildOfferOptions.html | 140 -- .../functions/createBuildRequestOptions.html | 137 -- typedoc/functions/createClient.html | 185 -- .../functions/createClientOptionsSchema.html | 135 -- typedoc/functions/createJobHandler.html | 167 -- typedoc/functions/createJobSchema.html | 137 -- typedoc/functions/createNode.html | 183 -- .../functions/createNodeOptionsSchema.html | 135 -- typedoc/functions/createOfferDataSchema.html | 140 -- .../createOfferOptionsSchemaOptionSchema.html | 129 -- .../createQuerySchemaOptionSchema.html | 129 -- .../functions/createRequestDataSchema.html | 137 -- .../createRequestManagerOptionsSchema.html | 133 -- typedoc/functions/createServer.html | 160 -- ...createStorageInitializerFactorySchema.html | 75 - .../functions/storage.localStorage.init.html | 74 - .../functions/storage.memoryStorage.init.html | 74 - typedoc/functions/verifyOffer.html | 151 -- typedoc/index.html | 147 -- typedoc/interfaces/ClientEvents.html | 226 -- .../interfaces/CoordinationServerEvents.html | 90 - typedoc/interfaces/NodeEvents.html | 139 -- typedoc/interfaces/QueueEvents.html | 145 -- .../storage.localStorage.WindowStorage.html | 144 -- typedoc/modules.html | 210 -- typedoc/modules/constants.html | 67 - typedoc/modules/storage.html | 79 - typedoc/modules/storage.localStorage.html | 78 - typedoc/modules/storage.memoryStorage.html | 73 - typedoc/types/BuildOfferOptions.html | 133 -- typedoc/types/BuildRequestOptions.html | 127 - typedoc/types/CancelOption.html | 122 - typedoc/types/ClientOptions.html | 129 -- typedoc/types/GenericMessage.html | 122 - typedoc/types/GenericOfferOptions.html | 122 - typedoc/types/GenericQuery.html | 122 - typedoc/types/Job.html | 127 - typedoc/types/JobHandler.html | 144 -- typedoc/types/JobHandlerClosure.html | 135 -- typedoc/types/JobOptions.html | 120 - typedoc/types/JobState.html | 120 - typedoc/types/JobStatus.html | 120 - typedoc/types/NodeKeyJson.html | 122 - typedoc/types/NodeOptions.html | 129 -- typedoc/types/OfferData.html | 129 -- typedoc/types/PaymentOption.html | 122 - typedoc/types/PeerOptions.html | 122 - typedoc/types/QueueInit.html | 120 - typedoc/types/QueueOptions.html | 120 - typedoc/types/RequestData.html | 127 - typedoc/types/RequestManagerOptions.html | 127 - typedoc/types/ServerOptions.html | 122 - typedoc/types/UnsignedOfferPayload.html | 122 - typedoc/types/storage.StorageInitializer.html | 58 - .../storage.StorageInitializerFunction.html | 58 - ...rage.localStorage.LocalStorageOptions.html | 57 - ...ge.memoryStorage.MemoryStorageOptions.html | 58 - typedoc/variables/CancelOptionSchema.html | 122 - .../variables/ContractConfigOptionSchema.html | 120 - typedoc/variables/GenericMessageSchema.html | 122 - .../variables/GenericOfferOptionsSchema.html | 122 - typedoc/variables/GenericQuerySchema.html | 122 - typedoc/variables/JobOptionsSchema.html | 122 - typedoc/variables/JobStateSchema.html | 122 - typedoc/variables/JobStatusSchema.html | 120 - typedoc/variables/NodeKeyJsonSchema.html | 122 - .../variables/NoncePeriodOptionSchema.html | 120 - typedoc/variables/PaymentOptionSchema.html | 122 - typedoc/variables/PeerOptionsSchema.html | 122 - typedoc/variables/ProviderOptionSchema.html | 120 - typedoc/variables/QueueInitSchema.html | 122 - typedoc/variables/QueueOptionsSchema.html | 122 - .../variables/ServerAddressOptionSchema.html | 120 - typedoc/variables/ServerOptionsSchema.html | 122 - .../variables/SignerSeedOptionsSchema.html | 120 - .../variables/UnsignedOfferPayloadSchema.html | 122 - .../constants.defaultExpirationTime.html | 59 - typedoc/variables/constants.noncePeriod.html | 59 - .../constants.outboundStreamDelay.html | 59 - .../constants.queueConcurrentJobsNumber.html | 59 - .../variables/constants.queueHeartbeat.html | 59 - .../constants.queueJobAttemptsDelay.html | 59 - typedoc/variables/offerEip712Types.html | 122 - .../storage.StorageInitializerSchema.html | 58 - ...ocalStorage.LocalStorageOptionsSchema.html | 59 - ...oryStorage.MemoryStorageOptionsSchema.html | 58 - 104 files changed, 11 insertions(+), 16089 deletions(-) delete mode 100644 typedoc/.nojekyll delete mode 100644 typedoc/assets/highlight.css delete mode 100644 typedoc/assets/main.js delete mode 100644 typedoc/assets/search.js delete mode 100644 typedoc/assets/style.css delete mode 100644 typedoc/classes/Client.html delete mode 100644 typedoc/classes/CoordinationServer.html delete mode 100644 typedoc/classes/Node.html delete mode 100644 typedoc/classes/Queue.html delete mode 100644 typedoc/classes/storage.Storage.html delete mode 100644 typedoc/classes/storage.localStorage.LocalStorage.html delete mode 100644 typedoc/classes/storage.memoryStorage.MemoryStorage.html delete mode 100644 typedoc/enums/JobStatuses.html delete mode 100644 typedoc/functions/buildOffer.html delete mode 100644 typedoc/functions/buildRequest.html delete mode 100644 typedoc/functions/createBuildOfferOptions.html delete mode 100644 typedoc/functions/createBuildRequestOptions.html delete mode 100644 typedoc/functions/createClient.html delete mode 100644 typedoc/functions/createClientOptionsSchema.html delete mode 100644 typedoc/functions/createJobHandler.html delete mode 100644 typedoc/functions/createJobSchema.html delete mode 100644 typedoc/functions/createNode.html delete mode 100644 typedoc/functions/createNodeOptionsSchema.html delete mode 100644 typedoc/functions/createOfferDataSchema.html delete mode 100644 typedoc/functions/createOfferOptionsSchemaOptionSchema.html delete mode 100644 typedoc/functions/createQuerySchemaOptionSchema.html delete mode 100644 typedoc/functions/createRequestDataSchema.html delete mode 100644 typedoc/functions/createRequestManagerOptionsSchema.html delete mode 100644 typedoc/functions/createServer.html delete mode 100644 typedoc/functions/storage.createStorageInitializerFactorySchema.html delete mode 100644 typedoc/functions/storage.localStorage.init.html delete mode 100644 typedoc/functions/storage.memoryStorage.init.html delete mode 100644 typedoc/functions/verifyOffer.html delete mode 100644 typedoc/index.html delete mode 100644 typedoc/interfaces/ClientEvents.html delete mode 100644 typedoc/interfaces/CoordinationServerEvents.html delete mode 100644 typedoc/interfaces/NodeEvents.html delete mode 100644 typedoc/interfaces/QueueEvents.html delete mode 100644 typedoc/interfaces/storage.localStorage.WindowStorage.html delete mode 100644 typedoc/modules.html delete mode 100644 typedoc/modules/constants.html delete mode 100644 typedoc/modules/storage.html delete mode 100644 typedoc/modules/storage.localStorage.html delete mode 100644 typedoc/modules/storage.memoryStorage.html delete mode 100644 typedoc/types/BuildOfferOptions.html delete mode 100644 typedoc/types/BuildRequestOptions.html delete mode 100644 typedoc/types/CancelOption.html delete mode 100644 typedoc/types/ClientOptions.html delete mode 100644 typedoc/types/GenericMessage.html delete mode 100644 typedoc/types/GenericOfferOptions.html delete mode 100644 typedoc/types/GenericQuery.html delete mode 100644 typedoc/types/Job.html delete mode 100644 typedoc/types/JobHandler.html delete mode 100644 typedoc/types/JobHandlerClosure.html delete mode 100644 typedoc/types/JobOptions.html delete mode 100644 typedoc/types/JobState.html delete mode 100644 typedoc/types/JobStatus.html delete mode 100644 typedoc/types/NodeKeyJson.html delete mode 100644 typedoc/types/NodeOptions.html delete mode 100644 typedoc/types/OfferData.html delete mode 100644 typedoc/types/PaymentOption.html delete mode 100644 typedoc/types/PeerOptions.html delete mode 100644 typedoc/types/QueueInit.html delete mode 100644 typedoc/types/QueueOptions.html delete mode 100644 typedoc/types/RequestData.html delete mode 100644 typedoc/types/RequestManagerOptions.html delete mode 100644 typedoc/types/ServerOptions.html delete mode 100644 typedoc/types/UnsignedOfferPayload.html delete mode 100644 typedoc/types/storage.StorageInitializer.html delete mode 100644 typedoc/types/storage.StorageInitializerFunction.html delete mode 100644 typedoc/types/storage.localStorage.LocalStorageOptions.html delete mode 100644 typedoc/types/storage.memoryStorage.MemoryStorageOptions.html delete mode 100644 typedoc/variables/CancelOptionSchema.html delete mode 100644 typedoc/variables/ContractConfigOptionSchema.html delete mode 100644 typedoc/variables/GenericMessageSchema.html delete mode 100644 typedoc/variables/GenericOfferOptionsSchema.html delete mode 100644 typedoc/variables/GenericQuerySchema.html delete mode 100644 typedoc/variables/JobOptionsSchema.html delete mode 100644 typedoc/variables/JobStateSchema.html delete mode 100644 typedoc/variables/JobStatusSchema.html delete mode 100644 typedoc/variables/NodeKeyJsonSchema.html delete mode 100644 typedoc/variables/NoncePeriodOptionSchema.html delete mode 100644 typedoc/variables/PaymentOptionSchema.html delete mode 100644 typedoc/variables/PeerOptionsSchema.html delete mode 100644 typedoc/variables/ProviderOptionSchema.html delete mode 100644 typedoc/variables/QueueInitSchema.html delete mode 100644 typedoc/variables/QueueOptionsSchema.html delete mode 100644 typedoc/variables/ServerAddressOptionSchema.html delete mode 100644 typedoc/variables/ServerOptionsSchema.html delete mode 100644 typedoc/variables/SignerSeedOptionsSchema.html delete mode 100644 typedoc/variables/UnsignedOfferPayloadSchema.html delete mode 100644 typedoc/variables/constants.defaultExpirationTime.html delete mode 100644 typedoc/variables/constants.noncePeriod.html delete mode 100644 typedoc/variables/constants.outboundStreamDelay.html delete mode 100644 typedoc/variables/constants.queueConcurrentJobsNumber.html delete mode 100644 typedoc/variables/constants.queueHeartbeat.html delete mode 100644 typedoc/variables/constants.queueJobAttemptsDelay.html delete mode 100644 typedoc/variables/offerEip712Types.html delete mode 100644 typedoc/variables/storage.StorageInitializerSchema.html delete mode 100644 typedoc/variables/storage.localStorage.LocalStorageOptionsSchema.html delete mode 100644 typedoc/variables/storage.memoryStorage.MemoryStorageOptionsSchema.html diff --git a/.eslintignore b/.eslintignore index 3c626fcd..496ccc10 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,3 +5,4 @@ dist lib coverage typedoc +temp diff --git a/.prettierignore b/.prettierignore index f4463d7b..e13f3f5c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,3 +4,5 @@ dist lib build coverage +typedoc +temp diff --git a/src/shared/queue.ts b/src/shared/queue.ts index 7b475d1a..290f6f0d 100644 --- a/src/shared/queue.ts +++ b/src/shared/queue.ts @@ -142,16 +142,15 @@ export type JobHandlerClosure = (job: any) => ReturnType>; * }, * ); */ +/* eslint-disable @typescript-eslint/no-explicit-any */ export const createJobHandler = - // eslint-disable-next-line @typescript-eslint/no-explicit-any - - - ( - handler: JobHandler, - ) => - (options?: HandlerOptions) => - (job: Job) => - handler(job, options); + ( + handler: JobHandler, + ) => + (options?: HandlerOptions) => + (job: Job) => + handler(job, options); +/* eslint-disable @typescript-eslint/no-explicit-any */ /** * Queue events interface diff --git a/typedoc/.nojekyll b/typedoc/.nojekyll deleted file mode 100644 index e2ac6616..00000000 --- a/typedoc/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/typedoc/assets/highlight.css b/typedoc/assets/highlight.css deleted file mode 100644 index 100c7787..00000000 --- a/typedoc/assets/highlight.css +++ /dev/null @@ -1,71 +0,0 @@ -:root { - --light-hl-0: #000000; - --dark-hl-0: #D4D4D4; - --light-hl-1: #A31515; - --dark-hl-1: #CE9178; - --light-hl-2: #001080; - --dark-hl-2: #9CDCFE; - --light-hl-3: #795E26; - --dark-hl-3: #DCDCAA; - --light-hl-4: #098658; - --dark-hl-4: #B5CEA8; - --light-hl-5: #0000FF; - --dark-hl-5: #569CD6; - --light-hl-6: #008000; - --dark-hl-6: #6A9955; - --light-code-background: #FFFFFF; - --dark-code-background: #1E1E1E; -} - -@media (prefers-color-scheme: light) { :root { - --hl-0: var(--light-hl-0); - --hl-1: var(--light-hl-1); - --hl-2: var(--light-hl-2); - --hl-3: var(--light-hl-3); - --hl-4: var(--light-hl-4); - --hl-5: var(--light-hl-5); - --hl-6: var(--light-hl-6); - --code-background: var(--light-code-background); -} } - -@media (prefers-color-scheme: dark) { :root { - --hl-0: var(--dark-hl-0); - --hl-1: var(--dark-hl-1); - --hl-2: var(--dark-hl-2); - --hl-3: var(--dark-hl-3); - --hl-4: var(--dark-hl-4); - --hl-5: var(--dark-hl-5); - --hl-6: var(--dark-hl-6); - --code-background: var(--dark-code-background); -} } - -:root[data-theme='light'] { - --hl-0: var(--light-hl-0); - --hl-1: var(--light-hl-1); - --hl-2: var(--light-hl-2); - --hl-3: var(--light-hl-3); - --hl-4: var(--light-hl-4); - --hl-5: var(--light-hl-5); - --hl-6: var(--light-hl-6); - --code-background: var(--light-code-background); -} - -:root[data-theme='dark'] { - --hl-0: var(--dark-hl-0); - --hl-1: var(--dark-hl-1); - --hl-2: var(--dark-hl-2); - --hl-3: var(--dark-hl-3); - --hl-4: var(--dark-hl-4); - --hl-5: var(--dark-hl-5); - --hl-6: var(--dark-hl-6); - --code-background: var(--dark-code-background); -} - -.hl-0 { color: var(--hl-0); } -.hl-1 { color: var(--hl-1); } -.hl-2 { color: var(--hl-2); } -.hl-3 { color: var(--hl-3); } -.hl-4 { color: var(--hl-4); } -.hl-5 { color: var(--hl-5); } -.hl-6 { color: var(--hl-6); } -pre, code { background: var(--code-background); } diff --git a/typedoc/assets/main.js b/typedoc/assets/main.js deleted file mode 100644 index 284fd015..00000000 --- a/typedoc/assets/main.js +++ /dev/null @@ -1,2063 +0,0 @@ -'use strict'; -'use strict'; -(() => { - var Qe = Object.create; - var ae = Object.defineProperty; - var Pe = Object.getOwnPropertyDescriptor; - var Ce = Object.getOwnPropertyNames; - var Oe = Object.getPrototypeOf, - Re = Object.prototype.hasOwnProperty; - var _e = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports); - var Me = (t, e, n, r) => { - if ((e && typeof e == 'object') || typeof e == 'function') - for (let i of Ce(e)) - !Re.call(t, i) && - i !== n && - ae(t, i, { get: () => e[i], enumerable: !(r = Pe(e, i)) || r.enumerable }); - return t; - }; - var De = (t, e, n) => ( - (n = t != null ? Qe(Oe(t)) : {}), - Me(e || !t || !t.__esModule ? ae(n, 'default', { value: t, enumerable: !0 }) : n, t) - ); - var de = _e((ce, he) => { - (function () { - var t = function (e) { - var n = new t.Builder(); - return ( - n.pipeline.add(t.trimmer, t.stopWordFilter, t.stemmer), - n.searchPipeline.add(t.stemmer), - e.call(n, n), - n.build() - ); - }; - t.version = '2.3.9'; - (t.utils = {}), - (t.utils.warn = (function (e) { - return function (n) { - e.console && console.warn && console.warn(n); - }; - })(this)), - (t.utils.asString = function (e) { - return e == null ? '' : e.toString(); - }), - (t.utils.clone = function (e) { - if (e == null) return e; - for (var n = Object.create(null), r = Object.keys(e), i = 0; i < r.length; i++) { - var s = r[i], - o = e[s]; - if (Array.isArray(o)) { - n[s] = o.slice(); - continue; - } - if (typeof o == 'string' || typeof o == 'number' || typeof o == 'boolean') { - n[s] = o; - continue; - } - throw new TypeError('clone is not deep and does not support nested objects'); - } - return n; - }), - (t.FieldRef = function (e, n, r) { - (this.docRef = e), (this.fieldName = n), (this._stringValue = r); - }), - (t.FieldRef.joiner = '/'), - (t.FieldRef.fromString = function (e) { - var n = e.indexOf(t.FieldRef.joiner); - if (n === -1) throw 'malformed field ref string'; - var r = e.slice(0, n), - i = e.slice(n + 1); - return new t.FieldRef(i, r, e); - }), - (t.FieldRef.prototype.toString = function () { - return ( - this._stringValue == null && - (this._stringValue = this.fieldName + t.FieldRef.joiner + this.docRef), - this._stringValue - ); - }); - (t.Set = function (e) { - if (((this.elements = Object.create(null)), e)) { - this.length = e.length; - for (var n = 0; n < this.length; n++) this.elements[e[n]] = !0; - } else this.length = 0; - }), - (t.Set.complete = { - intersect: function (e) { - return e; - }, - union: function () { - return this; - }, - contains: function () { - return !0; - }, - }), - (t.Set.empty = { - intersect: function () { - return this; - }, - union: function (e) { - return e; - }, - contains: function () { - return !1; - }, - }), - (t.Set.prototype.contains = function (e) { - return !!this.elements[e]; - }), - (t.Set.prototype.intersect = function (e) { - var n, - r, - i, - s = []; - if (e === t.Set.complete) return this; - if (e === t.Set.empty) return e; - this.length < e.length ? ((n = this), (r = e)) : ((n = e), (r = this)), - (i = Object.keys(n.elements)); - for (var o = 0; o < i.length; o++) { - var a = i[o]; - a in r.elements && s.push(a); - } - return new t.Set(s); - }), - (t.Set.prototype.union = function (e) { - return e === t.Set.complete - ? t.Set.complete - : e === t.Set.empty - ? this - : new t.Set(Object.keys(this.elements).concat(Object.keys(e.elements))); - }), - (t.idf = function (e, n) { - var r = 0; - for (var i in e) i != '_index' && (r += Object.keys(e[i]).length); - var s = (n - r + 0.5) / (r + 0.5); - return Math.log(1 + Math.abs(s)); - }), - (t.Token = function (e, n) { - (this.str = e || ''), (this.metadata = n || {}); - }), - (t.Token.prototype.toString = function () { - return this.str; - }), - (t.Token.prototype.update = function (e) { - return (this.str = e(this.str, this.metadata)), this; - }), - (t.Token.prototype.clone = function (e) { - return ( - (e = - e || - function (n) { - return n; - }), - new t.Token(e(this.str, this.metadata), this.metadata) - ); - }); - (t.tokenizer = function (e, n) { - if (e == null || e == null) return []; - if (Array.isArray(e)) - return e.map(function (m) { - return new t.Token(t.utils.asString(m).toLowerCase(), t.utils.clone(n)); - }); - for (var r = e.toString().toLowerCase(), i = r.length, s = [], o = 0, a = 0; o <= i; o++) { - var u = r.charAt(o), - l = o - a; - if (u.match(t.tokenizer.separator) || o == i) { - if (l > 0) { - var h = t.utils.clone(n) || {}; - (h.position = [a, l]), (h.index = s.length), s.push(new t.Token(r.slice(a, o), h)); - } - a = o + 1; - } - } - return s; - }), - (t.tokenizer.separator = /[\s\-]+/); - (t.Pipeline = function () { - this._stack = []; - }), - (t.Pipeline.registeredFunctions = Object.create(null)), - (t.Pipeline.registerFunction = function (e, n) { - n in this.registeredFunctions && - t.utils.warn('Overwriting existing registered function: ' + n), - (e.label = n), - (t.Pipeline.registeredFunctions[e.label] = e); - }), - (t.Pipeline.warnIfFunctionNotRegistered = function (e) { - var n = e.label && e.label in this.registeredFunctions; - n || - t.utils.warn( - `Function is not registered with pipeline. This may cause problems when serialising the index. -`, - e, - ); - }), - (t.Pipeline.load = function (e) { - var n = new t.Pipeline(); - return ( - e.forEach(function (r) { - var i = t.Pipeline.registeredFunctions[r]; - if (i) n.add(i); - else throw new Error('Cannot load unregistered function: ' + r); - }), - n - ); - }), - (t.Pipeline.prototype.add = function () { - var e = Array.prototype.slice.call(arguments); - e.forEach(function (n) { - t.Pipeline.warnIfFunctionNotRegistered(n), this._stack.push(n); - }, this); - }), - (t.Pipeline.prototype.after = function (e, n) { - t.Pipeline.warnIfFunctionNotRegistered(n); - var r = this._stack.indexOf(e); - if (r == -1) throw new Error('Cannot find existingFn'); - (r = r + 1), this._stack.splice(r, 0, n); - }), - (t.Pipeline.prototype.before = function (e, n) { - t.Pipeline.warnIfFunctionNotRegistered(n); - var r = this._stack.indexOf(e); - if (r == -1) throw new Error('Cannot find existingFn'); - this._stack.splice(r, 0, n); - }), - (t.Pipeline.prototype.remove = function (e) { - var n = this._stack.indexOf(e); - n != -1 && this._stack.splice(n, 1); - }), - (t.Pipeline.prototype.run = function (e) { - for (var n = this._stack.length, r = 0; r < n; r++) { - for (var i = this._stack[r], s = [], o = 0; o < e.length; o++) { - var a = i(e[o], o, e); - if (!(a == null || a === '')) - if (Array.isArray(a)) for (var u = 0; u < a.length; u++) s.push(a[u]); - else s.push(a); - } - e = s; - } - return e; - }), - (t.Pipeline.prototype.runString = function (e, n) { - var r = new t.Token(e, n); - return this.run([r]).map(function (i) { - return i.toString(); - }); - }), - (t.Pipeline.prototype.reset = function () { - this._stack = []; - }), - (t.Pipeline.prototype.toJSON = function () { - return this._stack.map(function (e) { - return t.Pipeline.warnIfFunctionNotRegistered(e), e.label; - }); - }); - (t.Vector = function (e) { - (this._magnitude = 0), (this.elements = e || []); - }), - (t.Vector.prototype.positionForIndex = function (e) { - if (this.elements.length == 0) return 0; - for ( - var n = 0, - r = this.elements.length / 2, - i = r - n, - s = Math.floor(i / 2), - o = this.elements[s * 2]; - i > 1 && (o < e && (n = s), o > e && (r = s), o != e); - - ) - (i = r - n), (s = n + Math.floor(i / 2)), (o = this.elements[s * 2]); - if (o == e || o > e) return s * 2; - if (o < e) return (s + 1) * 2; - }), - (t.Vector.prototype.insert = function (e, n) { - this.upsert(e, n, function () { - throw 'duplicate index'; - }); - }), - (t.Vector.prototype.upsert = function (e, n, r) { - this._magnitude = 0; - var i = this.positionForIndex(e); - this.elements[i] == e - ? (this.elements[i + 1] = r(this.elements[i + 1], n)) - : this.elements.splice(i, 0, e, n); - }), - (t.Vector.prototype.magnitude = function () { - if (this._magnitude) return this._magnitude; - for (var e = 0, n = this.elements.length, r = 1; r < n; r += 2) { - var i = this.elements[r]; - e += i * i; - } - return (this._magnitude = Math.sqrt(e)); - }), - (t.Vector.prototype.dot = function (e) { - for ( - var n = 0, - r = this.elements, - i = e.elements, - s = r.length, - o = i.length, - a = 0, - u = 0, - l = 0, - h = 0; - l < s && h < o; - - ) - (a = r[l]), - (u = i[h]), - a < u - ? (l += 2) - : a > u - ? (h += 2) - : a == u && ((n += r[l + 1] * i[h + 1]), (l += 2), (h += 2)); - return n; - }), - (t.Vector.prototype.similarity = function (e) { - return this.dot(e) / this.magnitude() || 0; - }), - (t.Vector.prototype.toArray = function () { - for ( - var e = new Array(this.elements.length / 2), n = 1, r = 0; - n < this.elements.length; - n += 2, r++ - ) - e[r] = this.elements[n]; - return e; - }), - (t.Vector.prototype.toJSON = function () { - return this.elements; - }); - (t.stemmer = (function () { - var e = { - ational: 'ate', - tional: 'tion', - enci: 'ence', - anci: 'ance', - izer: 'ize', - bli: 'ble', - alli: 'al', - entli: 'ent', - eli: 'e', - ousli: 'ous', - ization: 'ize', - ation: 'ate', - ator: 'ate', - alism: 'al', - iveness: 'ive', - fulness: 'ful', - ousness: 'ous', - aliti: 'al', - iviti: 'ive', - biliti: 'ble', - logi: 'log', - }, - n = { icate: 'ic', ative: '', alize: 'al', iciti: 'ic', ical: 'ic', ful: '', ness: '' }, - r = '[^aeiou]', - i = '[aeiouy]', - s = r + '[^aeiouy]*', - o = i + '[aeiou]*', - a = '^(' + s + ')?' + o + s, - u = '^(' + s + ')?' + o + s + '(' + o + ')?$', - l = '^(' + s + ')?' + o + s + o + s, - h = '^(' + s + ')?' + i, - m = new RegExp(a), - v = new RegExp(l), - b = new RegExp(u), - y = new RegExp(h), - E = /^(.+?)(ss|i)es$/, - p = /^(.+?)([^s])s$/, - f = /^(.+?)eed$/, - S = /^(.+?)(ed|ing)$/, - w = /.$/, - k = /(at|bl|iz)$/, - _ = new RegExp('([^aeiouylsz])\\1$'), - z = new RegExp('^' + s + i + '[^aeiouwxy]$'), - H = /^(.+?[^aeiou])y$/, - q = - /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/, - $ = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/, - V = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/, - W = /^(.+?)(s|t)(ion)$/, - P = /^(.+?)e$/, - U = /ll$/, - G = new RegExp('^' + s + i + '[^aeiouwxy]$'), - N = function (c) { - var g, C, T, d, x, O, D; - if (c.length < 3) return c; - if ( - ((T = c.substr(0, 1)), - T == 'y' && (c = T.toUpperCase() + c.substr(1)), - (d = E), - (x = p), - d.test(c) ? (c = c.replace(d, '$1$2')) : x.test(c) && (c = c.replace(x, '$1$2')), - (d = f), - (x = S), - d.test(c)) - ) { - var L = d.exec(c); - (d = m), d.test(L[1]) && ((d = w), (c = c.replace(d, ''))); - } else if (x.test(c)) { - var L = x.exec(c); - (g = L[1]), - (x = y), - x.test(g) && - ((c = g), - (x = k), - (O = _), - (D = z), - x.test(c) - ? (c = c + 'e') - : O.test(c) - ? ((d = w), (c = c.replace(d, ''))) - : D.test(c) && (c = c + 'e')); - } - if (((d = H), d.test(c))) { - var L = d.exec(c); - (g = L[1]), (c = g + 'i'); - } - if (((d = q), d.test(c))) { - var L = d.exec(c); - (g = L[1]), (C = L[2]), (d = m), d.test(g) && (c = g + e[C]); - } - if (((d = $), d.test(c))) { - var L = d.exec(c); - (g = L[1]), (C = L[2]), (d = m), d.test(g) && (c = g + n[C]); - } - if (((d = V), (x = W), d.test(c))) { - var L = d.exec(c); - (g = L[1]), (d = v), d.test(g) && (c = g); - } else if (x.test(c)) { - var L = x.exec(c); - (g = L[1] + L[2]), (x = v), x.test(g) && (c = g); - } - if (((d = P), d.test(c))) { - var L = d.exec(c); - (g = L[1]), - (d = v), - (x = b), - (O = G), - (d.test(g) || (x.test(g) && !O.test(g))) && (c = g); - } - return ( - (d = U), - (x = v), - d.test(c) && x.test(c) && ((d = w), (c = c.replace(d, ''))), - T == 'y' && (c = T.toLowerCase() + c.substr(1)), - c - ); - }; - return function (M) { - return M.update(N); - }; - })()), - t.Pipeline.registerFunction(t.stemmer, 'stemmer'); - (t.generateStopWordFilter = function (e) { - var n = e.reduce(function (r, i) { - return (r[i] = i), r; - }, {}); - return function (r) { - if (r && n[r.toString()] !== r.toString()) return r; - }; - }), - (t.stopWordFilter = t.generateStopWordFilter([ - 'a', - 'able', - 'about', - 'across', - 'after', - 'all', - 'almost', - 'also', - 'am', - 'among', - 'an', - 'and', - 'any', - 'are', - 'as', - 'at', - 'be', - 'because', - 'been', - 'but', - 'by', - 'can', - 'cannot', - 'could', - 'dear', - 'did', - 'do', - 'does', - 'either', - 'else', - 'ever', - 'every', - 'for', - 'from', - 'get', - 'got', - 'had', - 'has', - 'have', - 'he', - 'her', - 'hers', - 'him', - 'his', - 'how', - 'however', - 'i', - 'if', - 'in', - 'into', - 'is', - 'it', - 'its', - 'just', - 'least', - 'let', - 'like', - 'likely', - 'may', - 'me', - 'might', - 'most', - 'must', - 'my', - 'neither', - 'no', - 'nor', - 'not', - 'of', - 'off', - 'often', - 'on', - 'only', - 'or', - 'other', - 'our', - 'own', - 'rather', - 'said', - 'say', - 'says', - 'she', - 'should', - 'since', - 'so', - 'some', - 'than', - 'that', - 'the', - 'their', - 'them', - 'then', - 'there', - 'these', - 'they', - 'this', - 'tis', - 'to', - 'too', - 'twas', - 'us', - 'wants', - 'was', - 'we', - 'were', - 'what', - 'when', - 'where', - 'which', - 'while', - 'who', - 'whom', - 'why', - 'will', - 'with', - 'would', - 'yet', - 'you', - 'your', - ])), - t.Pipeline.registerFunction(t.stopWordFilter, 'stopWordFilter'); - (t.trimmer = function (e) { - return e.update(function (n) { - return n.replace(/^\W+/, '').replace(/\W+$/, ''); - }); - }), - t.Pipeline.registerFunction(t.trimmer, 'trimmer'); - (t.TokenSet = function () { - (this.final = !1), - (this.edges = {}), - (this.id = t.TokenSet._nextId), - (t.TokenSet._nextId += 1); - }), - (t.TokenSet._nextId = 1), - (t.TokenSet.fromArray = function (e) { - for (var n = new t.TokenSet.Builder(), r = 0, i = e.length; r < i; r++) n.insert(e[r]); - return n.finish(), n.root; - }), - (t.TokenSet.fromClause = function (e) { - return 'editDistance' in e - ? t.TokenSet.fromFuzzyString(e.term, e.editDistance) - : t.TokenSet.fromString(e.term); - }), - (t.TokenSet.fromFuzzyString = function (e, n) { - for (var r = new t.TokenSet(), i = [{ node: r, editsRemaining: n, str: e }]; i.length; ) { - var s = i.pop(); - if (s.str.length > 0) { - var o = s.str.charAt(0), - a; - o in s.node.edges - ? (a = s.node.edges[o]) - : ((a = new t.TokenSet()), (s.node.edges[o] = a)), - s.str.length == 1 && (a.final = !0), - i.push({ node: a, editsRemaining: s.editsRemaining, str: s.str.slice(1) }); - } - if (s.editsRemaining != 0) { - if ('*' in s.node.edges) var u = s.node.edges['*']; - else { - var u = new t.TokenSet(); - s.node.edges['*'] = u; - } - if ( - (s.str.length == 0 && (u.final = !0), - i.push({ node: u, editsRemaining: s.editsRemaining - 1, str: s.str }), - s.str.length > 1 && - i.push({ - node: s.node, - editsRemaining: s.editsRemaining - 1, - str: s.str.slice(1), - }), - s.str.length == 1 && (s.node.final = !0), - s.str.length >= 1) - ) { - if ('*' in s.node.edges) var l = s.node.edges['*']; - else { - var l = new t.TokenSet(); - s.node.edges['*'] = l; - } - s.str.length == 1 && (l.final = !0), - i.push({ node: l, editsRemaining: s.editsRemaining - 1, str: s.str.slice(1) }); - } - if (s.str.length > 1) { - var h = s.str.charAt(0), - m = s.str.charAt(1), - v; - m in s.node.edges - ? (v = s.node.edges[m]) - : ((v = new t.TokenSet()), (s.node.edges[m] = v)), - s.str.length == 1 && (v.final = !0), - i.push({ - node: v, - editsRemaining: s.editsRemaining - 1, - str: h + s.str.slice(2), - }); - } - } - } - return r; - }), - (t.TokenSet.fromString = function (e) { - for (var n = new t.TokenSet(), r = n, i = 0, s = e.length; i < s; i++) { - var o = e[i], - a = i == s - 1; - if (o == '*') (n.edges[o] = n), (n.final = a); - else { - var u = new t.TokenSet(); - (u.final = a), (n.edges[o] = u), (n = u); - } - } - return r; - }), - (t.TokenSet.prototype.toArray = function () { - for (var e = [], n = [{ prefix: '', node: this }]; n.length; ) { - var r = n.pop(), - i = Object.keys(r.node.edges), - s = i.length; - r.node.final && (r.prefix.charAt(0), e.push(r.prefix)); - for (var o = 0; o < s; o++) { - var a = i[o]; - n.push({ prefix: r.prefix.concat(a), node: r.node.edges[a] }); - } - } - return e; - }), - (t.TokenSet.prototype.toString = function () { - if (this._str) return this._str; - for ( - var e = this.final ? '1' : '0', n = Object.keys(this.edges).sort(), r = n.length, i = 0; - i < r; - i++ - ) { - var s = n[i], - o = this.edges[s]; - e = e + s + o.id; - } - return e; - }), - (t.TokenSet.prototype.intersect = function (e) { - for ( - var n = new t.TokenSet(), r = void 0, i = [{ qNode: e, output: n, node: this }]; - i.length; - - ) { - r = i.pop(); - for ( - var s = Object.keys(r.qNode.edges), - o = s.length, - a = Object.keys(r.node.edges), - u = a.length, - l = 0; - l < o; - l++ - ) - for (var h = s[l], m = 0; m < u; m++) { - var v = a[m]; - if (v == h || h == '*') { - var b = r.node.edges[v], - y = r.qNode.edges[h], - E = b.final && y.final, - p = void 0; - v in r.output.edges - ? ((p = r.output.edges[v]), (p.final = p.final || E)) - : ((p = new t.TokenSet()), (p.final = E), (r.output.edges[v] = p)), - i.push({ qNode: y, output: p, node: b }); - } - } - } - return n; - }), - (t.TokenSet.Builder = function () { - (this.previousWord = ''), - (this.root = new t.TokenSet()), - (this.uncheckedNodes = []), - (this.minimizedNodes = {}); - }), - (t.TokenSet.Builder.prototype.insert = function (e) { - var n, - r = 0; - if (e < this.previousWord) throw new Error('Out of order word insertion'); - for ( - var i = 0; - i < e.length && i < this.previousWord.length && e[i] == this.previousWord[i]; - i++ - ) - r++; - this.minimize(r), - this.uncheckedNodes.length == 0 - ? (n = this.root) - : (n = this.uncheckedNodes[this.uncheckedNodes.length - 1].child); - for (var i = r; i < e.length; i++) { - var s = new t.TokenSet(), - o = e[i]; - (n.edges[o] = s), this.uncheckedNodes.push({ parent: n, char: o, child: s }), (n = s); - } - (n.final = !0), (this.previousWord = e); - }), - (t.TokenSet.Builder.prototype.finish = function () { - this.minimize(0); - }), - (t.TokenSet.Builder.prototype.minimize = function (e) { - for (var n = this.uncheckedNodes.length - 1; n >= e; n--) { - var r = this.uncheckedNodes[n], - i = r.child.toString(); - i in this.minimizedNodes - ? (r.parent.edges[r.char] = this.minimizedNodes[i]) - : ((r.child._str = i), (this.minimizedNodes[i] = r.child)), - this.uncheckedNodes.pop(); - } - }); - (t.Index = function (e) { - (this.invertedIndex = e.invertedIndex), - (this.fieldVectors = e.fieldVectors), - (this.tokenSet = e.tokenSet), - (this.fields = e.fields), - (this.pipeline = e.pipeline); - }), - (t.Index.prototype.search = function (e) { - return this.query(function (n) { - var r = new t.QueryParser(e, n); - r.parse(); - }); - }), - (t.Index.prototype.query = function (e) { - for ( - var n = new t.Query(this.fields), - r = Object.create(null), - i = Object.create(null), - s = Object.create(null), - o = Object.create(null), - a = Object.create(null), - u = 0; - u < this.fields.length; - u++ - ) - i[this.fields[u]] = new t.Vector(); - e.call(n, n); - for (var u = 0; u < n.clauses.length; u++) { - var l = n.clauses[u], - h = null, - m = t.Set.empty; - l.usePipeline - ? (h = this.pipeline.runString(l.term, { fields: l.fields })) - : (h = [l.term]); - for (var v = 0; v < h.length; v++) { - var b = h[v]; - l.term = b; - var y = t.TokenSet.fromClause(l), - E = this.tokenSet.intersect(y).toArray(); - if (E.length === 0 && l.presence === t.Query.presence.REQUIRED) { - for (var p = 0; p < l.fields.length; p++) { - var f = l.fields[p]; - o[f] = t.Set.empty; - } - break; - } - for (var S = 0; S < E.length; S++) - for ( - var w = E[S], k = this.invertedIndex[w], _ = k._index, p = 0; - p < l.fields.length; - p++ - ) { - var f = l.fields[p], - z = k[f], - H = Object.keys(z), - q = w + '/' + f, - $ = new t.Set(H); - if ( - (l.presence == t.Query.presence.REQUIRED && - ((m = m.union($)), o[f] === void 0 && (o[f] = t.Set.complete)), - l.presence == t.Query.presence.PROHIBITED) - ) { - a[f] === void 0 && (a[f] = t.Set.empty), (a[f] = a[f].union($)); - continue; - } - if ( - (i[f].upsert(_, l.boost, function (Ie, ke) { - return Ie + ke; - }), - !s[q]) - ) { - for (var V = 0; V < H.length; V++) { - var W = H[V], - P = new t.FieldRef(W, f), - U = z[W], - G; - (G = r[P]) === void 0 ? (r[P] = new t.MatchData(w, f, U)) : G.add(w, f, U); - } - s[q] = !0; - } - } - } - if (l.presence === t.Query.presence.REQUIRED) - for (var p = 0; p < l.fields.length; p++) { - var f = l.fields[p]; - o[f] = o[f].intersect(m); - } - } - for (var N = t.Set.complete, M = t.Set.empty, u = 0; u < this.fields.length; u++) { - var f = this.fields[u]; - o[f] && (N = N.intersect(o[f])), a[f] && (M = M.union(a[f])); - } - var c = Object.keys(r), - g = [], - C = Object.create(null); - if (n.isNegated()) { - c = Object.keys(this.fieldVectors); - for (var u = 0; u < c.length; u++) { - var P = c[u], - T = t.FieldRef.fromString(P); - r[P] = new t.MatchData(); - } - } - for (var u = 0; u < c.length; u++) { - var T = t.FieldRef.fromString(c[u]), - d = T.docRef; - if (N.contains(d) && !M.contains(d)) { - var x = this.fieldVectors[T], - O = i[T.fieldName].similarity(x), - D; - if ((D = C[d]) !== void 0) (D.score += O), D.matchData.combine(r[T]); - else { - var L = { ref: d, score: O, matchData: r[T] }; - (C[d] = L), g.push(L); - } - } - } - return g.sort(function (Se, Te) { - return Te.score - Se.score; - }); - }), - (t.Index.prototype.toJSON = function () { - var e = Object.keys(this.invertedIndex) - .sort() - .map(function (r) { - return [r, this.invertedIndex[r]]; - }, this), - n = Object.keys(this.fieldVectors).map(function (r) { - return [r, this.fieldVectors[r].toJSON()]; - }, this); - return { - version: t.version, - fields: this.fields, - fieldVectors: n, - invertedIndex: e, - pipeline: this.pipeline.toJSON(), - }; - }), - (t.Index.load = function (e) { - var n = {}, - r = {}, - i = e.fieldVectors, - s = Object.create(null), - o = e.invertedIndex, - a = new t.TokenSet.Builder(), - u = t.Pipeline.load(e.pipeline); - e.version != t.version && - t.utils.warn( - "Version mismatch when loading serialised index. Current version of lunr '" + - t.version + - "' does not match serialized index '" + - e.version + - "'", - ); - for (var l = 0; l < i.length; l++) { - var h = i[l], - m = h[0], - v = h[1]; - r[m] = new t.Vector(v); - } - for (var l = 0; l < o.length; l++) { - var h = o[l], - b = h[0], - y = h[1]; - a.insert(b), (s[b] = y); - } - return ( - a.finish(), - (n.fields = e.fields), - (n.fieldVectors = r), - (n.invertedIndex = s), - (n.tokenSet = a.root), - (n.pipeline = u), - new t.Index(n) - ); - }); - (t.Builder = function () { - (this._ref = 'id'), - (this._fields = Object.create(null)), - (this._documents = Object.create(null)), - (this.invertedIndex = Object.create(null)), - (this.fieldTermFrequencies = {}), - (this.fieldLengths = {}), - (this.tokenizer = t.tokenizer), - (this.pipeline = new t.Pipeline()), - (this.searchPipeline = new t.Pipeline()), - (this.documentCount = 0), - (this._b = 0.75), - (this._k1 = 1.2), - (this.termIndex = 0), - (this.metadataWhitelist = []); - }), - (t.Builder.prototype.ref = function (e) { - this._ref = e; - }), - (t.Builder.prototype.field = function (e, n) { - if (/\//.test(e)) - throw new RangeError("Field '" + e + "' contains illegal character '/'"); - this._fields[e] = n || {}; - }), - (t.Builder.prototype.b = function (e) { - e < 0 ? (this._b = 0) : e > 1 ? (this._b = 1) : (this._b = e); - }), - (t.Builder.prototype.k1 = function (e) { - this._k1 = e; - }), - (t.Builder.prototype.add = function (e, n) { - var r = e[this._ref], - i = Object.keys(this._fields); - (this._documents[r] = n || {}), (this.documentCount += 1); - for (var s = 0; s < i.length; s++) { - var o = i[s], - a = this._fields[o].extractor, - u = a ? a(e) : e[o], - l = this.tokenizer(u, { fields: [o] }), - h = this.pipeline.run(l), - m = new t.FieldRef(r, o), - v = Object.create(null); - (this.fieldTermFrequencies[m] = v), - (this.fieldLengths[m] = 0), - (this.fieldLengths[m] += h.length); - for (var b = 0; b < h.length; b++) { - var y = h[b]; - if ((v[y] == null && (v[y] = 0), (v[y] += 1), this.invertedIndex[y] == null)) { - var E = Object.create(null); - (E._index = this.termIndex), (this.termIndex += 1); - for (var p = 0; p < i.length; p++) E[i[p]] = Object.create(null); - this.invertedIndex[y] = E; - } - this.invertedIndex[y][o][r] == null && - (this.invertedIndex[y][o][r] = Object.create(null)); - for (var f = 0; f < this.metadataWhitelist.length; f++) { - var S = this.metadataWhitelist[f], - w = y.metadata[S]; - this.invertedIndex[y][o][r][S] == null && (this.invertedIndex[y][o][r][S] = []), - this.invertedIndex[y][o][r][S].push(w); - } - } - } - }), - (t.Builder.prototype.calculateAverageFieldLengths = function () { - for ( - var e = Object.keys(this.fieldLengths), n = e.length, r = {}, i = {}, s = 0; - s < n; - s++ - ) { - var o = t.FieldRef.fromString(e[s]), - a = o.fieldName; - i[a] || (i[a] = 0), (i[a] += 1), r[a] || (r[a] = 0), (r[a] += this.fieldLengths[o]); - } - for (var u = Object.keys(this._fields), s = 0; s < u.length; s++) { - var l = u[s]; - r[l] = r[l] / i[l]; - } - this.averageFieldLength = r; - }), - (t.Builder.prototype.createFieldVectors = function () { - for ( - var e = {}, - n = Object.keys(this.fieldTermFrequencies), - r = n.length, - i = Object.create(null), - s = 0; - s < r; - s++ - ) { - for ( - var o = t.FieldRef.fromString(n[s]), - a = o.fieldName, - u = this.fieldLengths[o], - l = new t.Vector(), - h = this.fieldTermFrequencies[o], - m = Object.keys(h), - v = m.length, - b = this._fields[a].boost || 1, - y = this._documents[o.docRef].boost || 1, - E = 0; - E < v; - E++ - ) { - var p = m[E], - f = h[p], - S = this.invertedIndex[p]._index, - w, - k, - _; - i[p] === void 0 - ? ((w = t.idf(this.invertedIndex[p], this.documentCount)), (i[p] = w)) - : (w = i[p]), - (k = - (w * ((this._k1 + 1) * f)) / - (this._k1 * (1 - this._b + this._b * (u / this.averageFieldLength[a])) + f)), - (k *= b), - (k *= y), - (_ = Math.round(k * 1e3) / 1e3), - l.insert(S, _); - } - e[o] = l; - } - this.fieldVectors = e; - }), - (t.Builder.prototype.createTokenSet = function () { - this.tokenSet = t.TokenSet.fromArray(Object.keys(this.invertedIndex).sort()); - }), - (t.Builder.prototype.build = function () { - return ( - this.calculateAverageFieldLengths(), - this.createFieldVectors(), - this.createTokenSet(), - new t.Index({ - invertedIndex: this.invertedIndex, - fieldVectors: this.fieldVectors, - tokenSet: this.tokenSet, - fields: Object.keys(this._fields), - pipeline: this.searchPipeline, - }) - ); - }), - (t.Builder.prototype.use = function (e) { - var n = Array.prototype.slice.call(arguments, 1); - n.unshift(this), e.apply(this, n); - }), - (t.MatchData = function (e, n, r) { - for (var i = Object.create(null), s = Object.keys(r || {}), o = 0; o < s.length; o++) { - var a = s[o]; - i[a] = r[a].slice(); - } - (this.metadata = Object.create(null)), - e !== void 0 && ((this.metadata[e] = Object.create(null)), (this.metadata[e][n] = i)); - }), - (t.MatchData.prototype.combine = function (e) { - for (var n = Object.keys(e.metadata), r = 0; r < n.length; r++) { - var i = n[r], - s = Object.keys(e.metadata[i]); - this.metadata[i] == null && (this.metadata[i] = Object.create(null)); - for (var o = 0; o < s.length; o++) { - var a = s[o], - u = Object.keys(e.metadata[i][a]); - this.metadata[i][a] == null && (this.metadata[i][a] = Object.create(null)); - for (var l = 0; l < u.length; l++) { - var h = u[l]; - this.metadata[i][a][h] == null - ? (this.metadata[i][a][h] = e.metadata[i][a][h]) - : (this.metadata[i][a][h] = this.metadata[i][a][h].concat(e.metadata[i][a][h])); - } - } - } - }), - (t.MatchData.prototype.add = function (e, n, r) { - if (!(e in this.metadata)) { - (this.metadata[e] = Object.create(null)), (this.metadata[e][n] = r); - return; - } - if (!(n in this.metadata[e])) { - this.metadata[e][n] = r; - return; - } - for (var i = Object.keys(r), s = 0; s < i.length; s++) { - var o = i[s]; - o in this.metadata[e][n] - ? (this.metadata[e][n][o] = this.metadata[e][n][o].concat(r[o])) - : (this.metadata[e][n][o] = r[o]); - } - }), - (t.Query = function (e) { - (this.clauses = []), (this.allFields = e); - }), - (t.Query.wildcard = new String('*')), - (t.Query.wildcard.NONE = 0), - (t.Query.wildcard.LEADING = 1), - (t.Query.wildcard.TRAILING = 2), - (t.Query.presence = { OPTIONAL: 1, REQUIRED: 2, PROHIBITED: 3 }), - (t.Query.prototype.clause = function (e) { - return ( - 'fields' in e || (e.fields = this.allFields), - 'boost' in e || (e.boost = 1), - 'usePipeline' in e || (e.usePipeline = !0), - 'wildcard' in e || (e.wildcard = t.Query.wildcard.NONE), - e.wildcard & t.Query.wildcard.LEADING && - e.term.charAt(0) != t.Query.wildcard && - (e.term = '*' + e.term), - e.wildcard & t.Query.wildcard.TRAILING && - e.term.slice(-1) != t.Query.wildcard && - (e.term = '' + e.term + '*'), - 'presence' in e || (e.presence = t.Query.presence.OPTIONAL), - this.clauses.push(e), - this - ); - }), - (t.Query.prototype.isNegated = function () { - for (var e = 0; e < this.clauses.length; e++) - if (this.clauses[e].presence != t.Query.presence.PROHIBITED) return !1; - return !0; - }), - (t.Query.prototype.term = function (e, n) { - if (Array.isArray(e)) - return ( - e.forEach(function (i) { - this.term(i, t.utils.clone(n)); - }, this), - this - ); - var r = n || {}; - return (r.term = e.toString()), this.clause(r), this; - }), - (t.QueryParseError = function (e, n, r) { - (this.name = 'QueryParseError'), (this.message = e), (this.start = n), (this.end = r); - }), - (t.QueryParseError.prototype = new Error()), - (t.QueryLexer = function (e) { - (this.lexemes = []), - (this.str = e), - (this.length = e.length), - (this.pos = 0), - (this.start = 0), - (this.escapeCharPositions = []); - }), - (t.QueryLexer.prototype.run = function () { - for (var e = t.QueryLexer.lexText; e; ) e = e(this); - }), - (t.QueryLexer.prototype.sliceString = function () { - for ( - var e = [], n = this.start, r = this.pos, i = 0; - i < this.escapeCharPositions.length; - i++ - ) - (r = this.escapeCharPositions[i]), e.push(this.str.slice(n, r)), (n = r + 1); - return ( - e.push(this.str.slice(n, this.pos)), (this.escapeCharPositions.length = 0), e.join('') - ); - }), - (t.QueryLexer.prototype.emit = function (e) { - this.lexemes.push({ type: e, str: this.sliceString(), start: this.start, end: this.pos }), - (this.start = this.pos); - }), - (t.QueryLexer.prototype.escapeCharacter = function () { - this.escapeCharPositions.push(this.pos - 1), (this.pos += 1); - }), - (t.QueryLexer.prototype.next = function () { - if (this.pos >= this.length) return t.QueryLexer.EOS; - var e = this.str.charAt(this.pos); - return (this.pos += 1), e; - }), - (t.QueryLexer.prototype.width = function () { - return this.pos - this.start; - }), - (t.QueryLexer.prototype.ignore = function () { - this.start == this.pos && (this.pos += 1), (this.start = this.pos); - }), - (t.QueryLexer.prototype.backup = function () { - this.pos -= 1; - }), - (t.QueryLexer.prototype.acceptDigitRun = function () { - var e, n; - do (e = this.next()), (n = e.charCodeAt(0)); - while (n > 47 && n < 58); - e != t.QueryLexer.EOS && this.backup(); - }), - (t.QueryLexer.prototype.more = function () { - return this.pos < this.length; - }), - (t.QueryLexer.EOS = 'EOS'), - (t.QueryLexer.FIELD = 'FIELD'), - (t.QueryLexer.TERM = 'TERM'), - (t.QueryLexer.EDIT_DISTANCE = 'EDIT_DISTANCE'), - (t.QueryLexer.BOOST = 'BOOST'), - (t.QueryLexer.PRESENCE = 'PRESENCE'), - (t.QueryLexer.lexField = function (e) { - return e.backup(), e.emit(t.QueryLexer.FIELD), e.ignore(), t.QueryLexer.lexText; - }), - (t.QueryLexer.lexTerm = function (e) { - if ((e.width() > 1 && (e.backup(), e.emit(t.QueryLexer.TERM)), e.ignore(), e.more())) - return t.QueryLexer.lexText; - }), - (t.QueryLexer.lexEditDistance = function (e) { - return ( - e.ignore(), e.acceptDigitRun(), e.emit(t.QueryLexer.EDIT_DISTANCE), t.QueryLexer.lexText - ); - }), - (t.QueryLexer.lexBoost = function (e) { - return e.ignore(), e.acceptDigitRun(), e.emit(t.QueryLexer.BOOST), t.QueryLexer.lexText; - }), - (t.QueryLexer.lexEOS = function (e) { - e.width() > 0 && e.emit(t.QueryLexer.TERM); - }), - (t.QueryLexer.termSeparator = t.tokenizer.separator), - (t.QueryLexer.lexText = function (e) { - for (;;) { - var n = e.next(); - if (n == t.QueryLexer.EOS) return t.QueryLexer.lexEOS; - if (n.charCodeAt(0) == 92) { - e.escapeCharacter(); - continue; - } - if (n == ':') return t.QueryLexer.lexField; - if (n == '~') - return ( - e.backup(), e.width() > 0 && e.emit(t.QueryLexer.TERM), t.QueryLexer.lexEditDistance - ); - if (n == '^') - return e.backup(), e.width() > 0 && e.emit(t.QueryLexer.TERM), t.QueryLexer.lexBoost; - if ((n == '+' && e.width() === 1) || (n == '-' && e.width() === 1)) - return e.emit(t.QueryLexer.PRESENCE), t.QueryLexer.lexText; - if (n.match(t.QueryLexer.termSeparator)) return t.QueryLexer.lexTerm; - } - }), - (t.QueryParser = function (e, n) { - (this.lexer = new t.QueryLexer(e)), - (this.query = n), - (this.currentClause = {}), - (this.lexemeIdx = 0); - }), - (t.QueryParser.prototype.parse = function () { - this.lexer.run(), (this.lexemes = this.lexer.lexemes); - for (var e = t.QueryParser.parseClause; e; ) e = e(this); - return this.query; - }), - (t.QueryParser.prototype.peekLexeme = function () { - return this.lexemes[this.lexemeIdx]; - }), - (t.QueryParser.prototype.consumeLexeme = function () { - var e = this.peekLexeme(); - return (this.lexemeIdx += 1), e; - }), - (t.QueryParser.prototype.nextClause = function () { - var e = this.currentClause; - this.query.clause(e), (this.currentClause = {}); - }), - (t.QueryParser.parseClause = function (e) { - var n = e.peekLexeme(); - if (n != null) - switch (n.type) { - case t.QueryLexer.PRESENCE: - return t.QueryParser.parsePresence; - case t.QueryLexer.FIELD: - return t.QueryParser.parseField; - case t.QueryLexer.TERM: - return t.QueryParser.parseTerm; - default: - var r = 'expected either a field or a term, found ' + n.type; - throw ( - (n.str.length >= 1 && (r += " with value '" + n.str + "'"), - new t.QueryParseError(r, n.start, n.end)) - ); - } - }), - (t.QueryParser.parsePresence = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - switch (n.str) { - case '-': - e.currentClause.presence = t.Query.presence.PROHIBITED; - break; - case '+': - e.currentClause.presence = t.Query.presence.REQUIRED; - break; - default: - var r = "unrecognised presence operator'" + n.str + "'"; - throw new t.QueryParseError(r, n.start, n.end); - } - var i = e.peekLexeme(); - if (i == null) { - var r = 'expecting term or field, found nothing'; - throw new t.QueryParseError(r, n.start, n.end); - } - switch (i.type) { - case t.QueryLexer.FIELD: - return t.QueryParser.parseField; - case t.QueryLexer.TERM: - return t.QueryParser.parseTerm; - default: - var r = "expecting term or field, found '" + i.type + "'"; - throw new t.QueryParseError(r, i.start, i.end); - } - } - }), - (t.QueryParser.parseField = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - if (e.query.allFields.indexOf(n.str) == -1) { - var r = e.query.allFields - .map(function (o) { - return "'" + o + "'"; - }) - .join(', '), - i = "unrecognised field '" + n.str + "', possible fields: " + r; - throw new t.QueryParseError(i, n.start, n.end); - } - e.currentClause.fields = [n.str]; - var s = e.peekLexeme(); - if (s == null) { - var i = 'expecting term, found nothing'; - throw new t.QueryParseError(i, n.start, n.end); - } - switch (s.type) { - case t.QueryLexer.TERM: - return t.QueryParser.parseTerm; - default: - var i = "expecting term, found '" + s.type + "'"; - throw new t.QueryParseError(i, s.start, s.end); - } - } - }), - (t.QueryParser.parseTerm = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - (e.currentClause.term = n.str.toLowerCase()), - n.str.indexOf('*') != -1 && (e.currentClause.usePipeline = !1); - var r = e.peekLexeme(); - if (r == null) { - e.nextClause(); - return; - } - switch (r.type) { - case t.QueryLexer.TERM: - return e.nextClause(), t.QueryParser.parseTerm; - case t.QueryLexer.FIELD: - return e.nextClause(), t.QueryParser.parseField; - case t.QueryLexer.EDIT_DISTANCE: - return t.QueryParser.parseEditDistance; - case t.QueryLexer.BOOST: - return t.QueryParser.parseBoost; - case t.QueryLexer.PRESENCE: - return e.nextClause(), t.QueryParser.parsePresence; - default: - var i = "Unexpected lexeme type '" + r.type + "'"; - throw new t.QueryParseError(i, r.start, r.end); - } - } - }), - (t.QueryParser.parseEditDistance = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - var r = parseInt(n.str, 10); - if (isNaN(r)) { - var i = 'edit distance must be numeric'; - throw new t.QueryParseError(i, n.start, n.end); - } - e.currentClause.editDistance = r; - var s = e.peekLexeme(); - if (s == null) { - e.nextClause(); - return; - } - switch (s.type) { - case t.QueryLexer.TERM: - return e.nextClause(), t.QueryParser.parseTerm; - case t.QueryLexer.FIELD: - return e.nextClause(), t.QueryParser.parseField; - case t.QueryLexer.EDIT_DISTANCE: - return t.QueryParser.parseEditDistance; - case t.QueryLexer.BOOST: - return t.QueryParser.parseBoost; - case t.QueryLexer.PRESENCE: - return e.nextClause(), t.QueryParser.parsePresence; - default: - var i = "Unexpected lexeme type '" + s.type + "'"; - throw new t.QueryParseError(i, s.start, s.end); - } - } - }), - (t.QueryParser.parseBoost = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - var r = parseInt(n.str, 10); - if (isNaN(r)) { - var i = 'boost must be numeric'; - throw new t.QueryParseError(i, n.start, n.end); - } - e.currentClause.boost = r; - var s = e.peekLexeme(); - if (s == null) { - e.nextClause(); - return; - } - switch (s.type) { - case t.QueryLexer.TERM: - return e.nextClause(), t.QueryParser.parseTerm; - case t.QueryLexer.FIELD: - return e.nextClause(), t.QueryParser.parseField; - case t.QueryLexer.EDIT_DISTANCE: - return t.QueryParser.parseEditDistance; - case t.QueryLexer.BOOST: - return t.QueryParser.parseBoost; - case t.QueryLexer.PRESENCE: - return e.nextClause(), t.QueryParser.parsePresence; - default: - var i = "Unexpected lexeme type '" + s.type + "'"; - throw new t.QueryParseError(i, s.start, s.end); - } - } - }), - (function (e, n) { - typeof define == 'function' && define.amd - ? define(n) - : typeof ce == 'object' - ? (he.exports = n()) - : (e.lunr = n()); - })(this, function () { - return t; - }); - })(); - }); - var le = []; - function B(t, e) { - le.push({ selector: e, constructor: t }); - } - var Y = class { - constructor() { - this.alwaysVisibleMember = null; - this.createComponents(document.body), - this.ensureFocusedElementVisible(), - window.addEventListener('hashchange', () => this.ensureFocusedElementVisible()); - } - createComponents(e) { - le.forEach((n) => { - e.querySelectorAll(n.selector).forEach((r) => { - r.dataset.hasInstance || - (new n.constructor({ el: r, app: this }), (r.dataset.hasInstance = String(!0))); - }); - }); - } - filterChanged() { - this.ensureFocusedElementVisible(); - } - ensureFocusedElementVisible() { - this.alwaysVisibleMember && - (this.alwaysVisibleMember.classList.remove('always-visible'), - this.alwaysVisibleMember.firstElementChild.remove(), - (this.alwaysVisibleMember = null)); - let e = document.getElementById(location.hash.substring(1)); - if (!e) return; - let n = e.parentElement; - for (; n && n.tagName !== 'SECTION'; ) n = n.parentElement; - if (n && n.offsetParent == null) { - (this.alwaysVisibleMember = n), n.classList.add('always-visible'); - let r = document.createElement('p'); - r.classList.add('warning'), - (r.textContent = 'This member is normally hidden due to your filter settings.'), - n.prepend(r); - } - } - }; - var I = class { - constructor(e) { - (this.el = e.el), (this.app = e.app); - } - }; - var J = class { - constructor() { - this.listeners = {}; - } - addEventListener(e, n) { - e in this.listeners || (this.listeners[e] = []), this.listeners[e].push(n); - } - removeEventListener(e, n) { - if (!(e in this.listeners)) return; - let r = this.listeners[e]; - for (let i = 0, s = r.length; i < s; i++) - if (r[i] === n) { - r.splice(i, 1); - return; - } - } - dispatchEvent(e) { - if (!(e.type in this.listeners)) return !0; - let n = this.listeners[e.type].slice(); - for (let r = 0, i = n.length; r < i; r++) n[r].call(this, e); - return !e.defaultPrevented; - } - }; - var ne = (t, e = 100) => { - let n = Date.now(); - return (...r) => { - n + e - Date.now() < 0 && (t(...r), (n = Date.now())); - }; - }; - var re = class extends J { - constructor() { - super(); - this.scrollTop = 0; - this.lastY = 0; - this.width = 0; - this.height = 0; - this.showToolbar = !0; - (this.toolbar = document.querySelector('.tsd-page-toolbar')), - (this.navigation = document.querySelector('.col-menu')), - window.addEventListener( - 'scroll', - ne(() => this.onScroll(), 10), - ), - window.addEventListener( - 'resize', - ne(() => this.onResize(), 10), - ), - (this.searchInput = document.querySelector('#tsd-search input')), - this.searchInput && - this.searchInput.addEventListener('focus', () => { - this.hideShowToolbar(); - }), - this.onResize(), - this.onScroll(); - } - triggerResize() { - let n = new CustomEvent('resize', { detail: { width: this.width, height: this.height } }); - this.dispatchEvent(n); - } - onResize() { - (this.width = window.innerWidth || 0), (this.height = window.innerHeight || 0); - let n = new CustomEvent('resize', { detail: { width: this.width, height: this.height } }); - this.dispatchEvent(n); - } - onScroll() { - this.scrollTop = window.scrollY || 0; - let n = new CustomEvent('scroll', { detail: { scrollTop: this.scrollTop } }); - this.dispatchEvent(n), this.hideShowToolbar(); - } - hideShowToolbar() { - let n = this.showToolbar; - (this.showToolbar = - this.lastY >= this.scrollTop || - this.scrollTop <= 0 || - (!!this.searchInput && this.searchInput === document.activeElement)), - n !== this.showToolbar && - (this.toolbar.classList.toggle('tsd-page-toolbar--hide'), - this.navigation?.classList.toggle('col-menu--hide')), - (this.lastY = this.scrollTop); - } - }, - R = re; - R.instance = new re(); - var X = class extends I { - constructor(n) { - super(n); - this.anchors = []; - this.index = -1; - R.instance.addEventListener('resize', () => this.onResize()), - R.instance.addEventListener('scroll', (r) => this.onScroll(r)), - this.createAnchors(); - } - createAnchors() { - let n = window.location.href; - n.indexOf('#') != -1 && (n = n.substring(0, n.indexOf('#'))), - this.el.querySelectorAll('a').forEach((r) => { - let i = r.href; - if (i.indexOf('#') == -1 || i.substring(0, n.length) != n) return; - let s = i.substring(i.indexOf('#') + 1), - o = document.querySelector('a.tsd-anchor[name=' + s + ']'), - a = r.parentNode; - !o || !a || this.anchors.push({ link: a, anchor: o, position: 0 }); - }), - this.onResize(); - } - onResize() { - let n; - for (let i = 0, s = this.anchors.length; i < s; i++) { - n = this.anchors[i]; - let o = n.anchor.getBoundingClientRect(); - n.position = o.top + document.body.scrollTop; - } - this.anchors.sort((i, s) => i.position - s.position); - let r = new CustomEvent('scroll', { detail: { scrollTop: R.instance.scrollTop } }); - this.onScroll(r); - } - onScroll(n) { - let r = n.detail.scrollTop + 5, - i = this.anchors, - s = i.length - 1, - o = this.index; - for (; o > -1 && i[o].position > r; ) o -= 1; - for (; o < s && i[o + 1].position < r; ) o += 1; - this.index != o && - (this.index > -1 && this.anchors[this.index].link.classList.remove('focus'), - (this.index = o), - this.index > -1 && this.anchors[this.index].link.classList.add('focus')); - } - }; - var ue = (t, e = 100) => { - let n; - return () => { - clearTimeout(n), (n = setTimeout(() => t(), e)); - }; - }; - var me = De(de()); - function ve() { - let t = document.getElementById('tsd-search'); - if (!t) return; - let e = document.getElementById('search-script'); - t.classList.add('loading'), - e && - (e.addEventListener('error', () => { - t.classList.remove('loading'), t.classList.add('failure'); - }), - e.addEventListener('load', () => { - t.classList.remove('loading'), t.classList.add('ready'); - }), - window.searchData && t.classList.remove('loading')); - let n = document.querySelector('#tsd-search input'), - r = document.querySelector('#tsd-search .results'); - if (!n || !r) throw new Error('The input field or the result list wrapper was not found'); - let i = !1; - r.addEventListener('mousedown', () => (i = !0)), - r.addEventListener('mouseup', () => { - (i = !1), t.classList.remove('has-focus'); - }), - n.addEventListener('focus', () => t.classList.add('has-focus')), - n.addEventListener('blur', () => { - i || ((i = !1), t.classList.remove('has-focus')); - }); - let s = { base: t.dataset.base + '/' }; - Fe(t, r, n, s); - } - function Fe(t, e, n, r) { - n.addEventListener( - 'input', - ue(() => { - He(t, e, n, r); - }, 200), - ); - let i = !1; - n.addEventListener('keydown', (s) => { - (i = !0), - s.key == 'Enter' - ? Ve(e, n) - : s.key == 'Escape' - ? n.blur() - : s.key == 'ArrowUp' - ? pe(e, -1) - : s.key === 'ArrowDown' - ? pe(e, 1) - : (i = !1); - }), - n.addEventListener('keypress', (s) => { - i && s.preventDefault(); - }), - document.body.addEventListener('keydown', (s) => { - s.altKey || - s.ctrlKey || - s.metaKey || - (!n.matches(':focus') && s.key === '/' && (n.focus(), s.preventDefault())); - }); - } - function Ae(t, e) { - t.index || - (window.searchData && - (e.classList.remove('loading'), - e.classList.add('ready'), - (t.data = window.searchData), - (t.index = me.Index.load(window.searchData.index)))); - } - function He(t, e, n, r) { - if ((Ae(r, t), !r.index || !r.data)) return; - e.textContent = ''; - let i = n.value.trim(), - s = i ? r.index.search(`*${i}*`) : []; - for (let o = 0; o < s.length; o++) { - let a = s[o], - u = r.data.rows[Number(a.ref)], - l = 1; - u.name.toLowerCase().startsWith(i.toLowerCase()) && - (l *= 1 + 1 / (1 + Math.abs(u.name.length - i.length))), - (a.score *= l); - } - s.sort((o, a) => a.score - o.score); - for (let o = 0, a = Math.min(10, s.length); o < a; o++) { - let u = r.data.rows[Number(s[o].ref)], - l = fe(u.name, i); - globalThis.DEBUG_SEARCH_WEIGHTS && (l += ` (score: ${s[o].score.toFixed(2)})`), - u.parent && (l = `${fe(u.parent, i)}.${l}`); - let h = document.createElement('li'); - h.classList.value = u.classes ?? ''; - let m = document.createElement('a'); - (m.href = r.base + u.url), (m.innerHTML = l), h.append(m), e.appendChild(h); - } - } - function pe(t, e) { - let n = t.querySelector('.current'); - if (!n) - (n = t.querySelector(e == 1 ? 'li:first-child' : 'li:last-child')), - n && n.classList.add('current'); - else { - let r = n; - if (e === 1) - do r = r.nextElementSibling ?? void 0; - while (r instanceof HTMLElement && r.offsetParent == null); - else - do r = r.previousElementSibling ?? void 0; - while (r instanceof HTMLElement && r.offsetParent == null); - r && (n.classList.remove('current'), r.classList.add('current')); - } - } - function Ve(t, e) { - let n = t.querySelector('.current'); - if ((n || (n = t.querySelector('li:first-child')), n)) { - let r = n.querySelector('a'); - r && (window.location.href = r.href), e.blur(); - } - } - function fe(t, e) { - if (e === '') return t; - let n = t.toLocaleLowerCase(), - r = e.toLocaleLowerCase(), - i = [], - s = 0, - o = n.indexOf(r); - for (; o != -1; ) - i.push(ie(t.substring(s, o)), `${ie(t.substring(o, o + r.length))}`), - (s = o + r.length), - (o = n.indexOf(r, s)); - return i.push(ie(t.substring(s))), i.join(''); - } - var Ne = { '&': '&', '<': '<', '>': '>', "'": ''', '"': '"' }; - function ie(t) { - return t.replace(/[&<>"'"]/g, (e) => Ne[e]); - } - var F = 'mousedown', - ye = 'mousemove', - j = 'mouseup', - Z = { x: 0, y: 0 }, - ge = !1, - se = !1, - Be = !1, - A = !1, - xe = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); - document.documentElement.classList.add(xe ? 'is-mobile' : 'not-mobile'); - xe && - 'ontouchstart' in document.documentElement && - ((Be = !0), (F = 'touchstart'), (ye = 'touchmove'), (j = 'touchend')); - document.addEventListener(F, (t) => { - (se = !0), (A = !1); - let e = F == 'touchstart' ? t.targetTouches[0] : t; - (Z.y = e.pageY || 0), (Z.x = e.pageX || 0); - }); - document.addEventListener(ye, (t) => { - if (se && !A) { - let e = F == 'touchstart' ? t.targetTouches[0] : t, - n = Z.x - (e.pageX || 0), - r = Z.y - (e.pageY || 0); - A = Math.sqrt(n * n + r * r) > 10; - } - }); - document.addEventListener(j, () => { - se = !1; - }); - document.addEventListener('click', (t) => { - ge && (t.preventDefault(), t.stopImmediatePropagation(), (ge = !1)); - }); - var K = class extends I { - constructor(n) { - super(n); - (this.className = this.el.dataset.toggle || ''), - this.el.addEventListener(j, (r) => this.onPointerUp(r)), - this.el.addEventListener('click', (r) => r.preventDefault()), - document.addEventListener(F, (r) => this.onDocumentPointerDown(r)), - document.addEventListener(j, (r) => this.onDocumentPointerUp(r)); - } - setActive(n) { - if (this.active == n) return; - (this.active = n), - document.documentElement.classList.toggle('has-' + this.className, n), - this.el.classList.toggle('active', n); - let r = (this.active ? 'to-has-' : 'from-has-') + this.className; - document.documentElement.classList.add(r), - setTimeout(() => document.documentElement.classList.remove(r), 500); - } - onPointerUp(n) { - A || (this.setActive(!0), n.preventDefault()); - } - onDocumentPointerDown(n) { - if (this.active) { - if (n.target.closest('.col-menu, .tsd-filter-group')) return; - this.setActive(!1); - } - } - onDocumentPointerUp(n) { - if (!A && this.active && n.target.closest('.col-menu')) { - let r = n.target.closest('a'); - if (r) { - let i = window.location.href; - i.indexOf('#') != -1 && (i = i.substring(0, i.indexOf('#'))), - r.href.substring(0, i.length) == i && setTimeout(() => this.setActive(!1), 250); - } - } - } - }; - var oe; - try { - oe = localStorage; - } catch { - oe = { - getItem() { - return null; - }, - setItem() {}, - }; - } - var Q = oe; - var Le = document.head.appendChild(document.createElement('style')); - Le.dataset.for = 'filters'; - var ee = class extends I { - constructor(n) { - super(n); - (this.key = `filter-${this.el.name}`), - (this.value = this.el.checked), - this.el.addEventListener('change', () => { - this.setLocalStorage(this.el.checked); - }), - this.setLocalStorage(this.fromLocalStorage()), - (Le.innerHTML += `html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`); - } - fromLocalStorage() { - let n = Q.getItem(this.key); - return n ? n === 'true' : this.el.checked; - } - setLocalStorage(n) { - Q.setItem(this.key, n.toString()), (this.value = n), this.handleValueChange(); - } - handleValueChange() { - (this.el.checked = this.value), - document.documentElement.classList.toggle(this.key, this.value), - this.app.filterChanged(), - document.querySelectorAll('.tsd-index-section').forEach((n) => { - n.style.display = 'block'; - let r = Array.from(n.querySelectorAll('.tsd-index-link')).every( - (i) => i.offsetParent == null, - ); - n.style.display = r ? 'none' : 'block'; - }); - } - }; - var te = class extends I { - constructor(n) { - super(n); - this.calculateHeights(), - (this.summary = this.el.querySelector('.tsd-accordion-summary')), - (this.icon = this.summary.querySelector('svg')), - (this.key = `tsd-accordion-${this.summary.textContent.replace(/\s+/g, '-').toLowerCase()}`), - this.setLocalStorage(this.fromLocalStorage(), !0), - this.summary.addEventListener('click', (r) => this.toggleVisibility(r)), - (this.icon.style.transform = this.getIconRotation()); - } - getIconRotation(n = this.el.open) { - return `rotate(${n ? 0 : -90}deg)`; - } - calculateHeights() { - let n = this.el.open, - { position: r, left: i } = this.el.style; - (this.el.style.position = 'fixed'), - (this.el.style.left = '-9999px'), - (this.el.open = !0), - (this.expandedHeight = this.el.offsetHeight + 'px'), - (this.el.open = !1), - (this.collapsedHeight = this.el.offsetHeight + 'px'), - (this.el.open = n), - (this.el.style.height = n ? this.expandedHeight : this.collapsedHeight), - (this.el.style.position = r), - (this.el.style.left = i); - } - toggleVisibility(n) { - n.preventDefault(), - (this.el.style.overflow = 'hidden'), - this.el.open ? this.collapse() : this.expand(); - } - expand(n = !0) { - (this.el.open = !0), - this.animate(this.collapsedHeight, this.expandedHeight, { - opening: !0, - duration: n ? 300 : 0, - }); - } - collapse(n = !0) { - this.animate(this.expandedHeight, this.collapsedHeight, { - opening: !1, - duration: n ? 300 : 0, - }); - } - animate(n, r, { opening: i, duration: s = 300 }) { - if (this.animation) return; - let o = { duration: s, easing: 'ease' }; - (this.animation = this.el.animate({ height: [n, r] }, o)), - this.icon - .animate( - { - transform: [ - this.icon.style.transform || this.getIconRotation(!i), - this.getIconRotation(i), - ], - }, - o, - ) - .addEventListener('finish', () => { - this.icon.style.transform = this.getIconRotation(i); - }), - this.animation.addEventListener('finish', () => this.animationEnd(i)); - } - animationEnd(n) { - (this.el.open = n), - (this.animation = void 0), - (this.el.style.height = 'auto'), - (this.el.style.overflow = 'visible'), - this.setLocalStorage(n); - } - fromLocalStorage() { - let n = Q.getItem(this.key); - return n ? n === 'true' : this.el.open; - } - setLocalStorage(n, r = !1) { - (this.fromLocalStorage() === n && !r) || - (Q.setItem(this.key, n.toString()), (this.el.open = n), this.handleValueChange(r)); - } - handleValueChange(n = !1) { - (this.fromLocalStorage() === this.el.open && !n) || - (this.fromLocalStorage() ? this.expand(!1) : this.collapse(!1)); - } - }; - function be(t) { - let e = Q.getItem('tsd-theme') || 'os'; - (t.value = e), - Ee(e), - t.addEventListener('change', () => { - Q.setItem('tsd-theme', t.value), Ee(t.value); - }); - } - function Ee(t) { - document.documentElement.dataset.theme = t; - } - ve(); - B(X, '.menu-highlight'); - B(K, 'a[data-toggle]'); - B(te, '.tsd-index-accordion'); - B(ee, '.tsd-filter-item input[type=checkbox]'); - var we = document.getElementById('theme'); - we && be(we); - var je = new Y(); - Object.defineProperty(window, 'app', { value: je }); -})(); -/*! Bundled license information: - -lunr/lunr.js: - (** - * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 - * Copyright (C) 2020 Oliver Nightingale - * @license MIT - *) - (*! - * lunr.utils - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Set - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.tokenizer - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Pipeline - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Vector - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.stemmer - * Copyright (C) 2020 Oliver Nightingale - * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt - *) - (*! - * lunr.stopWordFilter - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.trimmer - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.TokenSet - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Index - * Copyright (C) 2020 Oliver Nightingale - *) - (*! - * lunr.Builder - * Copyright (C) 2020 Oliver Nightingale - *) -*/ diff --git a/typedoc/assets/search.js b/typedoc/assets/search.js deleted file mode 100644 index 865fb8fe..00000000 --- a/typedoc/assets/search.js +++ /dev/null @@ -1,3 +0,0 @@ -window.searchData = JSON.parse( - '{"rows":[{"kind":4,"name":"constants","url":"modules/constants.html","classes":"tsd-kind-namespace"},{"kind":32,"name":"defaultExpirationTime","url":"variables/constants.defaultExpirationTime.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"constants"},{"kind":32,"name":"outboundStreamDelay","url":"variables/constants.outboundStreamDelay.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"constants"},{"kind":32,"name":"noncePeriod","url":"variables/constants.noncePeriod.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"constants"},{"kind":32,"name":"queueConcurrentJobsNumber","url":"variables/constants.queueConcurrentJobsNumber.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"constants"},{"kind":32,"name":"queueJobAttemptsDelay","url":"variables/constants.queueJobAttemptsDelay.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"constants"},{"kind":32,"name":"queueHeartbeat","url":"variables/constants.queueHeartbeat.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"constants"},{"kind":4,"name":"storage","url":"modules/storage.html","classes":"tsd-kind-namespace"},{"kind":4,"name":"memoryStorage","url":"modules/storage.memoryStorage.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"storage"},{"kind":32,"name":"MemoryStorageOptionsSchema","url":"variables/storage.memoryStorage.MemoryStorageOptionsSchema.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"storage.memoryStorage"},{"kind":4194304,"name":"MemoryStorageOptions","url":"types/storage.memoryStorage.MemoryStorageOptions.html","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"storage.memoryStorage"},{"kind":128,"name":"MemoryStorage","url":"classes/storage.memoryStorage.MemoryStorage.html","classes":"tsd-kind-class tsd-parent-kind-namespace","parent":"storage.memoryStorage"},{"kind":512,"name":"constructor","url":"classes/storage.memoryStorage.MemoryStorage.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"storage.memoryStorage.MemoryStorage"},{"kind":1024,"name":"db","url":"classes/storage.memoryStorage.MemoryStorage.html#db","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"storage.memoryStorage.MemoryStorage"},{"kind":2048,"name":"set","url":"classes/storage.memoryStorage.MemoryStorage.html#set","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.memoryStorage.MemoryStorage"},{"kind":2048,"name":"get","url":"classes/storage.memoryStorage.MemoryStorage.html#get","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.memoryStorage.MemoryStorage"},{"kind":2048,"name":"delete","url":"classes/storage.memoryStorage.MemoryStorage.html#delete","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.memoryStorage.MemoryStorage"},{"kind":2048,"name":"entries","url":"classes/storage.memoryStorage.MemoryStorage.html#entries","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.memoryStorage.MemoryStorage"},{"kind":64,"name":"init","url":"functions/storage.memoryStorage.init.html","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"storage.memoryStorage"},{"kind":65536,"name":"__type","url":"functions/storage.memoryStorage.init.html#init.__type","classes":"tsd-kind-type-literal","parent":"storage.memoryStorage.init.init"},{"kind":4,"name":"localStorage","url":"modules/storage.localStorage.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"storage"},{"kind":256,"name":"WindowStorage","url":"interfaces/storage.localStorage.WindowStorage.html","classes":"tsd-kind-interface tsd-parent-kind-namespace","parent":"storage.localStorage"},{"kind":2048,"name":"setItem","url":"interfaces/storage.localStorage.WindowStorage.html#setItem","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"storage.localStorage.WindowStorage"},{"kind":2048,"name":"getItem","url":"interfaces/storage.localStorage.WindowStorage.html#getItem","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"storage.localStorage.WindowStorage"},{"kind":2048,"name":"removeItem","url":"interfaces/storage.localStorage.WindowStorage.html#removeItem","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"storage.localStorage.WindowStorage"},{"kind":2048,"name":"key","url":"interfaces/storage.localStorage.WindowStorage.html#key","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"storage.localStorage.WindowStorage"},{"kind":1024,"name":"length","url":"interfaces/storage.localStorage.WindowStorage.html#length","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"storage.localStorage.WindowStorage"},{"kind":32,"name":"LocalStorageOptionsSchema","url":"variables/storage.localStorage.LocalStorageOptionsSchema.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"storage.localStorage"},{"kind":4194304,"name":"LocalStorageOptions","url":"types/storage.localStorage.LocalStorageOptions.html","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"storage.localStorage"},{"kind":128,"name":"LocalStorage","url":"classes/storage.localStorage.LocalStorage.html","classes":"tsd-kind-class tsd-parent-kind-namespace","parent":"storage.localStorage"},{"kind":512,"name":"constructor","url":"classes/storage.localStorage.LocalStorage.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":1024,"name":"db","url":"classes/storage.localStorage.LocalStorage.html#db","classes":"tsd-kind-property tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":2048,"name":"serialize","url":"classes/storage.localStorage.LocalStorage.html#serialize","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":2048,"name":"deserialize","url":"classes/storage.localStorage.LocalStorage.html#deserialize","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":2048,"name":"set","url":"classes/storage.localStorage.LocalStorage.html#set","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":2048,"name":"get","url":"classes/storage.localStorage.LocalStorage.html#get","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":2048,"name":"delete","url":"classes/storage.localStorage.LocalStorage.html#delete","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":2048,"name":"entries","url":"classes/storage.localStorage.LocalStorage.html#entries","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.localStorage.LocalStorage"},{"kind":64,"name":"init","url":"functions/storage.localStorage.init.html","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"storage.localStorage"},{"kind":65536,"name":"__type","url":"functions/storage.localStorage.init.html#init.__type","classes":"tsd-kind-type-literal","parent":"storage.localStorage.init.init"},{"kind":128,"name":"Storage","url":"classes/storage.Storage.html","classes":"tsd-kind-class tsd-parent-kind-namespace","parent":"storage"},{"kind":512,"name":"constructor","url":"classes/storage.Storage.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"storage.Storage"},{"kind":2048,"name":"set","url":"classes/storage.Storage.html#set","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.Storage"},{"kind":2048,"name":"get","url":"classes/storage.Storage.html#get","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.Storage"},{"kind":2048,"name":"delete","url":"classes/storage.Storage.html#delete","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.Storage"},{"kind":2048,"name":"entries","url":"classes/storage.Storage.html#entries","classes":"tsd-kind-method tsd-parent-kind-class","parent":"storage.Storage"},{"kind":32,"name":"StorageInitializerSchema","url":"variables/storage.StorageInitializerSchema.html","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"storage"},{"kind":4194304,"name":"StorageInitializer","url":"types/storage.StorageInitializer.html","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"storage"},{"kind":64,"name":"createStorageInitializerFactorySchema","url":"functions/storage.createStorageInitializerFactorySchema.html","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"storage"},{"kind":4194304,"name":"StorageInitializerFunction","url":"types/storage.StorageInitializerFunction.html","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"storage"},{"kind":256,"name":"CoordinationServerEvents","url":"interfaces/CoordinationServerEvents.html","classes":"tsd-kind-interface"},{"kind":1024,"name":"start","url":"interfaces/CoordinationServerEvents.html#start","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CoordinationServerEvents"},{"kind":1024,"name":"stop","url":"interfaces/CoordinationServerEvents.html#stop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CoordinationServerEvents"},{"kind":128,"name":"CoordinationServer","url":"classes/CoordinationServer.html","classes":"tsd-kind-class"},{"kind":512,"name":"constructor","url":"classes/CoordinationServer.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"CoordinationServer"},{"kind":1024,"name":"port","url":"classes/CoordinationServer.html#port","classes":"tsd-kind-property tsd-parent-kind-class","parent":"CoordinationServer"},{"kind":1024,"name":"peerKey","url":"classes/CoordinationServer.html#peerKey","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"CoordinationServer"},{"kind":65536,"name":"__type","url":"classes/CoordinationServer.html#peerKey.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"CoordinationServer.peerKey"},{"kind":1024,"name":"id","url":"classes/CoordinationServer.html#peerKey.__type-2.id","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"CoordinationServer.peerKey.__type"},{"kind":1024,"name":"privKey","url":"classes/CoordinationServer.html#peerKey.__type-2.privKey","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"CoordinationServer.peerKey.__type"},{"kind":1024,"name":"pubKey","url":"classes/CoordinationServer.html#peerKey.__type-2.pubKey","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"CoordinationServer.peerKey.__type"},{"kind":1024,"name":"libp2p","url":"classes/CoordinationServer.html#libp2p","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"CoordinationServer"},{"kind":1024,"name":"messagesStorageInit","url":"classes/CoordinationServer.html#messagesStorageInit","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"CoordinationServer"},{"kind":65536,"name":"__type","url":"classes/CoordinationServer.html#messagesStorageInit.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"CoordinationServer.messagesStorageInit"},{"kind":262144,"name":"multiaddrs","url":"classes/CoordinationServer.html#multiaddrs","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"CoordinationServer"},{"kind":2048,"name":"start","url":"classes/CoordinationServer.html#start","classes":"tsd-kind-method tsd-parent-kind-class","parent":"CoordinationServer"},{"kind":2048,"name":"stop","url":"classes/CoordinationServer.html#stop","classes":"tsd-kind-method tsd-parent-kind-class","parent":"CoordinationServer"},{"kind":64,"name":"createServer","url":"functions/createServer.html","classes":"tsd-kind-function"},{"kind":256,"name":"ClientEvents","url":"interfaces/ClientEvents.html","classes":"tsd-kind-interface"},{"kind":1024,"name":"start","url":"interfaces/ClientEvents.html#start","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"stop","url":"interfaces/ClientEvents.html#stop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"heartbeat","url":"interfaces/ClientEvents.html#heartbeat","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"connected","url":"interfaces/ClientEvents.html#connected","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"disconnected","url":"interfaces/ClientEvents.html#disconnected","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:create","url":"interfaces/ClientEvents.html#request_create","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:publish","url":"interfaces/ClientEvents.html#request_publish","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:subscribe","url":"interfaces/ClientEvents.html#request_subscribe","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:unsubscribe","url":"interfaces/ClientEvents.html#request_unsubscribe","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:expire","url":"interfaces/ClientEvents.html#request_expire","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:cancel","url":"interfaces/ClientEvents.html#request_cancel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:delete","url":"interfaces/ClientEvents.html#request_delete","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:offer","url":"interfaces/ClientEvents.html#request_offer","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":1024,"name":"request:clear","url":"interfaces/ClientEvents.html#request_clear","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClientEvents"},{"kind":128,"name":"Client","url":"classes/Client.html","classes":"tsd-kind-class"},{"kind":512,"name":"constructor","url":"classes/Client.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Client"},{"kind":1024,"name":"libp2pInit","url":"classes/Client.html#libp2pInit","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":1024,"name":"requestsRegistry","url":"classes/Client.html#requestsRegistry","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":1024,"name":"storageInitializer","url":"classes/Client.html#storageInitializer","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":65536,"name":"__type","url":"classes/Client.html#storageInitializer.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.storageInitializer"},{"kind":1024,"name":"requestRegistryPrefix","url":"classes/Client.html#requestRegistryPrefix","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":1024,"name":"libp2p","url":"classes/Client.html#libp2p","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Client"},{"kind":1024,"name":"serverMultiaddr","url":"classes/Client.html#serverMultiaddr","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Client"},{"kind":1024,"name":"serverPeerId","url":"classes/Client.html#serverPeerId","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Client"},{"kind":1024,"name":"querySchema","url":"classes/Client.html#querySchema","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Client"},{"kind":1024,"name":"offerOptionsSchema","url":"classes/Client.html#offerOptionsSchema","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Client"},{"kind":1024,"name":"contractConfig","url":"classes/Client.html#contractConfig","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Client"},{"kind":65536,"name":"__type","url":"classes/Client.html#contractConfig.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.contractConfig"},{"kind":1024,"name":"name","url":"classes/Client.html#contractConfig.__type.name","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.contractConfig.__type"},{"kind":1024,"name":"version","url":"classes/Client.html#contractConfig.__type.version","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.contractConfig.__type"},{"kind":1024,"name":"chainId","url":"classes/Client.html#contractConfig.__type.chainId","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.contractConfig.__type"},{"kind":1024,"name":"address","url":"classes/Client.html#contractConfig.__type.address","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.contractConfig.__type"},{"kind":1024,"name":"provider","url":"classes/Client.html#provider","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Client"},{"kind":262144,"name":"connected","url":"classes/Client.html#connected","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"Client"},{"kind":2048,"name":"start","url":"classes/Client.html#start","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Client"},{"kind":2048,"name":"stop","url":"classes/Client.html#stop","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Client"},{"kind":2048,"name":"_createRequest","url":"classes/Client.html#_createRequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":2048,"name":"_addRequest","url":"classes/Client.html#_addRequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":2048,"name":"_getRequests","url":"classes/Client.html#_getRequests","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":2048,"name":"_getRequest","url":"classes/Client.html#_getRequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":2048,"name":"_cancelRequest","url":"classes/Client.html#_cancelRequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":2048,"name":"_deleteRequest","url":"classes/Client.html#_deleteRequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":2048,"name":"_clearRequests","url":"classes/Client.html#_clearRequests","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":2048,"name":"_subscribed","url":"classes/Client.html#_subscribed","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Client"},{"kind":262144,"name":"requests","url":"classes/Client.html#requests","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"Client"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3","classes":"tsd-kind-type-literal","parent":"Client.requests.requests"},{"kind":1024,"name":"create","url":"classes/Client.html#requests.requests-1.__type-3.create","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.create.__type-10","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.create"},{"kind":1024,"name":"add","url":"classes/Client.html#requests.requests-1.__type-3.add","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.add.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.add"},{"kind":1024,"name":"get","url":"classes/Client.html#requests.requests-1.__type-3.get","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.get.__type-14","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.get"},{"kind":1024,"name":"getAll","url":"classes/Client.html#requests.requests-1.__type-3.getAll","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.getAll.__type-16","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.getAll"},{"kind":1024,"name":"cancel","url":"classes/Client.html#requests.requests-1.__type-3.cancel","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.cancel.__type-6","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.cancel"},{"kind":1024,"name":"delete","url":"classes/Client.html#requests.requests-1.__type-3.delete","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.delete.__type-12","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.delete"},{"kind":1024,"name":"clear","url":"classes/Client.html#requests.requests-1.__type-3.clear","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.clear.__type-8","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.clear"},{"kind":1024,"name":"subscribed","url":"classes/Client.html#requests.requests-1.__type-3.subscribed","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Client.requests.requests.__type"},{"kind":65536,"name":"__type","url":"classes/Client.html#requests.requests-1.__type-3.subscribed.__type-18","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Client.requests.requests.__type.subscribed"},{"kind":64,"name":"createClient","url":"functions/createClient.html","classes":"tsd-kind-function"},{"kind":256,"name":"NodeEvents","url":"interfaces/NodeEvents.html","classes":"tsd-kind-interface"},{"kind":1024,"name":"start","url":"interfaces/NodeEvents.html#start","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"NodeEvents"},{"kind":1024,"name":"stop","url":"interfaces/NodeEvents.html#stop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"NodeEvents"},{"kind":1024,"name":"heartbeat","url":"interfaces/NodeEvents.html#heartbeat","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"NodeEvents"},{"kind":1024,"name":"connected","url":"interfaces/NodeEvents.html#connected","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"NodeEvents"},{"kind":1024,"name":"disconnected","url":"interfaces/NodeEvents.html#disconnected","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"NodeEvents"},{"kind":1024,"name":"request","url":"interfaces/NodeEvents.html#request","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"NodeEvents"},{"kind":128,"name":"Node","url":"classes/Node.html","classes":"tsd-kind-class"},{"kind":512,"name":"constructor","url":"classes/Node.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"libp2p","url":"classes/Node.html#libp2p","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"serverMultiaddr","url":"classes/Node.html#serverMultiaddr","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"serverPeerId","url":"classes/Node.html#serverPeerId","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"supplierId","url":"classes/Node.html#supplierId","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"querySchema","url":"classes/Node.html#querySchema","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"offerOptionsSchema","url":"classes/Node.html#offerOptionsSchema","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"contractConfig","url":"classes/Node.html#contractConfig","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":65536,"name":"__type","url":"classes/Node.html#contractConfig.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"Node.contractConfig"},{"kind":1024,"name":"name","url":"classes/Node.html#contractConfig.__type.name","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Node.contractConfig.__type"},{"kind":1024,"name":"version","url":"classes/Node.html#contractConfig.__type.version","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Node.contractConfig.__type"},{"kind":1024,"name":"chainId","url":"classes/Node.html#contractConfig.__type.chainId","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Node.contractConfig.__type"},{"kind":1024,"name":"address","url":"classes/Node.html#contractConfig.__type.address","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Node.contractConfig.__type"},{"kind":1024,"name":"signer","url":"classes/Node.html#signer","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"provider","url":"classes/Node.html#provider","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"topics","url":"classes/Node.html#topics","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Node"},{"kind":1024,"name":"libp2pInit","url":"classes/Node.html#libp2pInit","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Node"},{"kind":1024,"name":"requestManager","url":"classes/Node.html#requestManager","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Node"},{"kind":262144,"name":"connected","url":"classes/Node.html#connected","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"Node"},{"kind":2048,"name":"enable","url":"classes/Node.html#enable","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Node"},{"kind":2048,"name":"disable","url":"classes/Node.html#disable","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Node"},{"kind":2048,"name":"handleRequest","url":"classes/Node.html#handleRequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Node"},{"kind":2048,"name":"buildOffer","url":"classes/Node.html#buildOffer","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Node"},{"kind":2048,"name":"start","url":"classes/Node.html#start","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Node"},{"kind":2048,"name":"stop","url":"classes/Node.html#stop","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Node"},{"kind":64,"name":"createNode","url":"functions/createNode.html","classes":"tsd-kind-function"},{"kind":32,"name":"GenericMessageSchema","url":"variables/GenericMessageSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"GenericMessage","url":"types/GenericMessage.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"GenericQuerySchema","url":"variables/GenericQuerySchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"GenericQuery","url":"types/GenericQuery.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"createRequestDataSchema","url":"functions/createRequestDataSchema.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"RequestData","url":"types/RequestData.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"createBuildRequestOptions","url":"functions/createBuildRequestOptions.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"BuildRequestOptions","url":"types/BuildRequestOptions.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"buildRequest","url":"functions/buildRequest.html","classes":"tsd-kind-function"},{"kind":32,"name":"PaymentOptionSchema","url":"variables/PaymentOptionSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"PaymentOption","url":"types/PaymentOption.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"CancelOptionSchema","url":"variables/CancelOptionSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"CancelOption","url":"types/CancelOption.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"UnsignedOfferPayloadSchema","url":"variables/UnsignedOfferPayloadSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"UnsignedOfferPayload","url":"types/UnsignedOfferPayload.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"GenericOfferOptionsSchema","url":"variables/GenericOfferOptionsSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"GenericOfferOptions","url":"types/GenericOfferOptions.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"createOfferDataSchema","url":"functions/createOfferDataSchema.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"OfferData","url":"types/OfferData.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"offerEip712Types","url":"variables/offerEip712Types.html","classes":"tsd-kind-variable"},{"kind":64,"name":"createBuildOfferOptions","url":"functions/createBuildOfferOptions.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"BuildOfferOptions","url":"types/BuildOfferOptions.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"buildOffer","url":"functions/buildOffer.html","classes":"tsd-kind-function"},{"kind":64,"name":"verifyOffer","url":"functions/verifyOffer.html","classes":"tsd-kind-function"},{"kind":64,"name":"createQuerySchemaOptionSchema","url":"functions/createQuerySchemaOptionSchema.html","classes":"tsd-kind-function"},{"kind":64,"name":"createOfferOptionsSchemaOptionSchema","url":"functions/createOfferOptionsSchemaOptionSchema.html","classes":"tsd-kind-function"},{"kind":32,"name":"NoncePeriodOptionSchema","url":"variables/NoncePeriodOptionSchema.html","classes":"tsd-kind-variable"},{"kind":32,"name":"ContractConfigOptionSchema","url":"variables/ContractConfigOptionSchema.html","classes":"tsd-kind-variable"},{"kind":32,"name":"ProviderOptionSchema","url":"variables/ProviderOptionSchema.html","classes":"tsd-kind-variable"},{"kind":32,"name":"ServerAddressOptionSchema","url":"variables/ServerAddressOptionSchema.html","classes":"tsd-kind-variable"},{"kind":32,"name":"SignerSeedOptionsSchema","url":"variables/SignerSeedOptionsSchema.html","classes":"tsd-kind-variable"},{"kind":64,"name":"createNodeOptionsSchema","url":"functions/createNodeOptionsSchema.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"NodeOptions","url":"types/NodeOptions.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"createRequestManagerOptionsSchema","url":"functions/createRequestManagerOptionsSchema.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"RequestManagerOptions","url":"types/RequestManagerOptions.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"createClientOptionsSchema","url":"functions/createClientOptionsSchema.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"ClientOptions","url":"types/ClientOptions.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"NodeKeyJsonSchema","url":"variables/NodeKeyJsonSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"NodeKeyJson","url":"types/NodeKeyJson.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"PeerOptionsSchema","url":"variables/PeerOptionsSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"PeerOptions","url":"types/PeerOptions.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"ServerOptionsSchema","url":"variables/ServerOptionsSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"ServerOptions","url":"types/ServerOptions.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"QueueOptionsSchema","url":"variables/QueueOptionsSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"QueueOptions","url":"types/QueueOptions.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"QueueInitSchema","url":"variables/QueueInitSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"QueueInit","url":"types/QueueInit.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"JobOptionsSchema","url":"variables/JobOptionsSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"JobOptions","url":"types/JobOptions.html","classes":"tsd-kind-type-alias"},{"kind":8,"name":"JobStatuses","url":"enums/JobStatuses.html","classes":"tsd-kind-enum"},{"kind":16,"name":"PENDING","url":"enums/JobStatuses.html#PENDING","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"JobStatuses"},{"kind":16,"name":"STARTED","url":"enums/JobStatuses.html#STARTED","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"JobStatuses"},{"kind":16,"name":"DONE","url":"enums/JobStatuses.html#DONE","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"JobStatuses"},{"kind":16,"name":"CANCELLED","url":"enums/JobStatuses.html#CANCELLED","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"JobStatuses"},{"kind":16,"name":"ERRORED","url":"enums/JobStatuses.html#ERRORED","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"JobStatuses"},{"kind":16,"name":"FAILED","url":"enums/JobStatuses.html#FAILED","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"JobStatuses"},{"kind":16,"name":"EXPIRED","url":"enums/JobStatuses.html#EXPIRED","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"JobStatuses"},{"kind":32,"name":"JobStatusSchema","url":"variables/JobStatusSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"JobStatus","url":"types/JobStatus.html","classes":"tsd-kind-type-alias"},{"kind":32,"name":"JobStateSchema","url":"variables/JobStateSchema.html","classes":"tsd-kind-variable"},{"kind":4194304,"name":"JobState","url":"types/JobState.html","classes":"tsd-kind-type-alias"},{"kind":64,"name":"createJobSchema","url":"functions/createJobSchema.html","classes":"tsd-kind-function"},{"kind":4194304,"name":"Job","url":"types/Job.html","classes":"tsd-kind-type-alias"},{"kind":4194304,"name":"JobHandler","url":"types/JobHandler.html","classes":"tsd-kind-type-alias"},{"kind":65536,"name":"__type","url":"types/JobHandler.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"JobHandler"},{"kind":4194304,"name":"JobHandlerClosure","url":"types/JobHandlerClosure.html","classes":"tsd-kind-type-alias"},{"kind":65536,"name":"__type","url":"types/JobHandlerClosure.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"JobHandlerClosure"},{"kind":64,"name":"createJobHandler","url":"functions/createJobHandler.html","classes":"tsd-kind-function"},{"kind":65536,"name":"__type","url":"functions/createJobHandler.html#createJobHandler.__type","classes":"tsd-kind-type-literal","parent":"createJobHandler.createJobHandler"},{"kind":65536,"name":"__type","url":"functions/createJobHandler.html#createJobHandler.__type.__type-1.__type-2","classes":"tsd-kind-type-literal","parent":"createJobHandler.createJobHandler.__type.__type"},{"kind":256,"name":"QueueEvents","url":"interfaces/QueueEvents.html","classes":"tsd-kind-interface"},{"kind":1024,"name":"job","url":"interfaces/QueueEvents.html#job","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueueEvents"},{"kind":1024,"name":"done","url":"interfaces/QueueEvents.html#done","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueueEvents"},{"kind":1024,"name":"error","url":"interfaces/QueueEvents.html#error","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueueEvents"},{"kind":1024,"name":"cancel","url":"interfaces/QueueEvents.html#cancel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueueEvents"},{"kind":1024,"name":"fail","url":"interfaces/QueueEvents.html#fail","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueueEvents"},{"kind":1024,"name":"expired","url":"interfaces/QueueEvents.html#expired","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueueEvents"},{"kind":1024,"name":"scheduled","url":"interfaces/QueueEvents.html#scheduled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueueEvents"},{"kind":128,"name":"Queue","url":"classes/Queue.html","classes":"tsd-kind-class"},{"kind":512,"name":"constructor","url":"classes/Queue.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Queue"},{"kind":1024,"name":"storage","url":"classes/Queue.html#storage","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"hashKey","url":"classes/Queue.html#hashKey","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"jobs","url":"classes/Queue.html#jobs","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"liveJobs","url":"classes/Queue.html#liveJobs","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"jobHandlers","url":"classes/Queue.html#jobHandlers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"concurrentJobsNumber","url":"classes/Queue.html#concurrentJobsNumber","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"heartbeat","url":"classes/Queue.html#heartbeat","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"processing","url":"classes/Queue.html#processing","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":1024,"name":"heartbeatInterval","url":"classes/Queue.html#heartbeatInterval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":2048,"name":"_init","url":"classes/Queue.html#_init","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":2048,"name":"_sync","url":"classes/Queue.html#_sync","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":2048,"name":"_pickJobs","url":"classes/Queue.html#_pickJobs","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":2048,"name":"_updatedJobState","url":"classes/Queue.html#_updatedJobState","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":2048,"name":"_doJob","url":"classes/Queue.html#_doJob","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":2048,"name":"_process","url":"classes/Queue.html#_process","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Queue"},{"kind":2048,"name":"addJobHandler","url":"classes/Queue.html#addJobHandler","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Queue"},{"kind":2048,"name":"deleteJobHandler","url":"classes/Queue.html#deleteJobHandler","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Queue"},{"kind":2048,"name":"addJob","url":"classes/Queue.html#addJob","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Queue"},{"kind":65536,"name":"__type","url":"classes/Queue.html#addJob.addJob-1.__type","classes":"tsd-kind-type-literal","parent":"Queue.addJob.addJob"},{"kind":1024,"name":"options","url":"classes/Queue.html#addJob.addJob-1.__type.options","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Queue.addJob.addJob.__type"},{"kind":1024,"name":"name","url":"classes/Queue.html#addJob.addJob-1.__type.name","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Queue.addJob.addJob.__type"},{"kind":1024,"name":"id","url":"classes/Queue.html#addJob.addJob-1.__type.id","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Queue.addJob.addJob.__type"},{"kind":1024,"name":"state","url":"classes/Queue.html#addJob.addJob-1.__type.state","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Queue.addJob.addJob.__type"},{"kind":1024,"name":"data","url":"classes/Queue.html#addJob.addJob-1.__type.data","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Queue.addJob.addJob.__type"},{"kind":2048,"name":"getJob","url":"classes/Queue.html#getJob","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Queue"},{"kind":2048,"name":"cancelJob","url":"classes/Queue.html#cancelJob","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Queue"}],"index":{"version":"2.3.9","fields":["name","comment"],"fieldVectors":[["name/0",[0,52.04]],["comment/0",[]],["name/1",[1,52.04]],["comment/1",[]],["name/2",[2,52.04]],["comment/2",[]],["name/3",[3,52.04]],["comment/3",[]],["name/4",[4,52.04]],["comment/4",[]],["name/5",[5,52.04]],["comment/5",[]],["name/6",[6,52.04]],["comment/6",[]],["name/7",[7,43.567]],["comment/7",[]],["name/8",[8,46.932]],["comment/8",[]],["name/9",[9,52.04]],["comment/9",[]],["name/10",[10,52.04]],["comment/10",[]],["name/11",[8,46.932]],["comment/11",[]],["name/12",[11,35.946]],["comment/12",[]],["name/13",[12,46.932]],["comment/13",[]],["name/14",[13,43.567]],["comment/14",[]],["name/15",[14,41.054]],["comment/15",[]],["name/16",[15,41.054]],["comment/16",[]],["name/17",[16,43.567]],["comment/17",[]],["name/18",[17,46.932]],["comment/18",[]],["name/19",[18,25.414]],["comment/19",[]],["name/20",[19,46.932]],["comment/20",[]],["name/21",[20,52.04]],["comment/21",[]],["name/22",[21,52.04]],["comment/22",[]],["name/23",[22,52.04]],["comment/23",[]],["name/24",[23,52.04]],["comment/24",[]],["name/25",[24,52.04]],["comment/25",[]],["name/26",[25,52.04]],["comment/26",[]],["name/27",[26,52.04]],["comment/27",[]],["name/28",[27,52.04]],["comment/28",[]],["name/29",[19,46.932]],["comment/29",[]],["name/30",[11,35.946]],["comment/30",[]],["name/31",[12,46.932]],["comment/31",[]],["name/32",[28,52.04]],["comment/32",[]],["name/33",[29,52.04]],["comment/33",[]],["name/34",[13,43.567]],["comment/34",[]],["name/35",[14,41.054]],["comment/35",[]],["name/36",[15,41.054]],["comment/36",[]],["name/37",[16,43.567]],["comment/37",[]],["name/38",[17,46.932]],["comment/38",[]],["name/39",[18,25.414]],["comment/39",[]],["name/40",[7,43.567]],["comment/40",[]],["name/41",[11,35.946]],["comment/41",[]],["name/42",[13,43.567]],["comment/42",[]],["name/43",[14,41.054]],["comment/43",[]],["name/44",[15,41.054]],["comment/44",[]],["name/45",[16,43.567]],["comment/45",[]],["name/46",[30,52.04]],["comment/46",[]],["name/47",[31,46.932]],["comment/47",[]],["name/48",[32,52.04]],["comment/48",[]],["name/49",[33,52.04]],["comment/49",[]],["name/50",[34,52.04]],["comment/50",[]],["name/51",[35,37.377]],["comment/51",[]],["name/52",[36,37.377]],["comment/52",[]],["name/53",[37,52.04]],["comment/53",[]],["name/54",[11,35.946]],["comment/54",[]],["name/55",[38,52.04]],["comment/55",[]],["name/56",[39,52.04]],["comment/56",[]],["name/57",[18,25.414]],["comment/57",[]],["name/58",[40,46.932]],["comment/58",[]],["name/59",[41,52.04]],["comment/59",[]],["name/60",[42,52.04]],["comment/60",[]],["name/61",[43,43.567]],["comment/61",[]],["name/62",[44,52.04]],["comment/62",[]],["name/63",[18,25.414]],["comment/63",[]],["name/64",[45,52.04]],["comment/64",[]],["name/65",[35,37.377]],["comment/65",[]],["name/66",[36,37.377]],["comment/66",[]],["name/67",[46,52.04]],["comment/67",[]],["name/68",[47,52.04]],["comment/68",[]],["name/69",[35,37.377]],["comment/69",[]],["name/70",[36,37.377]],["comment/70",[]],["name/71",[48,43.567]],["comment/71",[]],["name/72",[49,41.054]],["comment/72",[]],["name/73",[50,46.932]],["comment/73",[]],["name/74",[51,52.04]],["comment/74",[]],["name/75",[52,52.04]],["comment/75",[]],["name/76",[53,52.04]],["comment/76",[]],["name/77",[54,52.04]],["comment/77",[]],["name/78",[55,52.04]],["comment/78",[]],["name/79",[56,52.04]],["comment/79",[]],["name/80",[57,52.04]],["comment/80",[]],["name/81",[58,52.04]],["comment/81",[]],["name/82",[59,52.04]],["comment/82",[]],["name/83",[60,52.04]],["comment/83",[]],["name/84",[11,35.946]],["comment/84",[]],["name/85",[61,46.932]],["comment/85",[]],["name/86",[62,52.04]],["comment/86",[]],["name/87",[31,46.932]],["comment/87",[]],["name/88",[18,25.414]],["comment/88",[]],["name/89",[63,52.04]],["comment/89",[]],["name/90",[43,43.567]],["comment/90",[]],["name/91",[64,46.932]],["comment/91",[]],["name/92",[65,46.932]],["comment/92",[]],["name/93",[66,46.932]],["comment/93",[]],["name/94",[67,46.932]],["comment/94",[]],["name/95",[68,46.932]],["comment/95",[]],["name/96",[18,25.414]],["comment/96",[]],["name/97",[69,43.567]],["comment/97",[]],["name/98",[70,46.932]],["comment/98",[]],["name/99",[71,46.932]],["comment/99",[]],["name/100",[72,46.932]],["comment/100",[]],["name/101",[73,46.932]],["comment/101",[]],["name/102",[49,41.054]],["comment/102",[]],["name/103",[35,37.377]],["comment/103",[]],["name/104",[36,37.377]],["comment/104",[]],["name/105",[74,52.04]],["comment/105",[]],["name/106",[75,52.04]],["comment/106",[]],["name/107",[76,52.04]],["comment/107",[]],["name/108",[77,52.04]],["comment/108",[]],["name/109",[78,52.04]],["comment/109",[]],["name/110",[79,52.04]],["comment/110",[]],["name/111",[80,52.04]],["comment/111",[]],["name/112",[81,52.04]],["comment/112",[]],["name/113",[82,52.04]],["comment/113",[]],["name/114",[18,25.414]],["comment/114",[]],["name/115",[83,52.04]],["comment/115",[]],["name/116",[18,25.414]],["comment/116",[]],["name/117",[84,52.04]],["comment/117",[]],["name/118",[18,25.414]],["comment/118",[]],["name/119",[14,41.054]],["comment/119",[]],["name/120",[18,25.414]],["comment/120",[]],["name/121",[85,52.04]],["comment/121",[]],["name/122",[18,25.414]],["comment/122",[]],["name/123",[86,46.932]],["comment/123",[]],["name/124",[18,25.414]],["comment/124",[]],["name/125",[15,41.054]],["comment/125",[]],["name/126",[18,25.414]],["comment/126",[]],["name/127",[87,52.04]],["comment/127",[]],["name/128",[18,25.414]],["comment/128",[]],["name/129",[88,52.04]],["comment/129",[]],["name/130",[18,25.414]],["comment/130",[]],["name/131",[89,52.04]],["comment/131",[]],["name/132",[90,52.04]],["comment/132",[]],["name/133",[35,37.377]],["comment/133",[]],["name/134",[36,37.377]],["comment/134",[]],["name/135",[48,43.567]],["comment/135",[]],["name/136",[49,41.054]],["comment/136",[]],["name/137",[50,46.932]],["comment/137",[]],["name/138",[91,52.04]],["comment/138",[]],["name/139",[92,52.04]],["comment/139",[]],["name/140",[11,35.946]],["comment/140",[]],["name/141",[43,43.567]],["comment/141",[]],["name/142",[64,46.932]],["comment/142",[]],["name/143",[65,46.932]],["comment/143",[]],["name/144",[93,52.04]],["comment/144",[]],["name/145",[66,46.932]],["comment/145",[]],["name/146",[67,46.932]],["comment/146",[]],["name/147",[68,46.932]],["comment/147",[]],["name/148",[18,25.414]],["comment/148",[]],["name/149",[69,43.567]],["comment/149",[]],["name/150",[70,46.932]],["comment/150",[]],["name/151",[71,46.932]],["comment/151",[]],["name/152",[72,46.932]],["comment/152",[]],["name/153",[94,52.04]],["comment/153",[]],["name/154",[73,46.932]],["comment/154",[]],["name/155",[95,52.04]],["comment/155",[]],["name/156",[61,46.932]],["comment/156",[]],["name/157",[96,52.04]],["comment/157",[]],["name/158",[49,41.054]],["comment/158",[]],["name/159",[97,52.04]],["comment/159",[]],["name/160",[98,52.04]],["comment/160",[]],["name/161",[99,52.04]],["comment/161",[]],["name/162",[100,46.932]],["comment/162",[]],["name/163",[35,37.377]],["comment/163",[]],["name/164",[36,37.377]],["comment/164",[]],["name/165",[101,52.04]],["comment/165",[]],["name/166",[102,52.04]],["comment/166",[]],["name/167",[103,52.04]],["comment/167",[]],["name/168",[104,52.04]],["comment/168",[]],["name/169",[105,52.04]],["comment/169",[]],["name/170",[106,52.04]],["comment/170",[]],["name/171",[107,52.04]],["comment/171",[]],["name/172",[108,52.04]],["comment/172",[]],["name/173",[109,52.04]],["comment/173",[]],["name/174",[110,52.04]],["comment/174",[]],["name/175",[111,52.04]],["comment/175",[]],["name/176",[112,52.04]],["comment/176",[]],["name/177",[113,52.04]],["comment/177",[]],["name/178",[114,52.04]],["comment/178",[]],["name/179",[115,52.04]],["comment/179",[]],["name/180",[116,52.04]],["comment/180",[]],["name/181",[117,52.04]],["comment/181",[]],["name/182",[118,52.04]],["comment/182",[]],["name/183",[119,52.04]],["comment/183",[]],["name/184",[120,52.04]],["comment/184",[]],["name/185",[121,52.04]],["comment/185",[]],["name/186",[122,52.04]],["comment/186",[]],["name/187",[123,52.04]],["comment/187",[]],["name/188",[100,46.932]],["comment/188",[]],["name/189",[124,52.04]],["comment/189",[]],["name/190",[125,52.04]],["comment/190",[]],["name/191",[126,52.04]],["comment/191",[]],["name/192",[127,52.04]],["comment/192",[]],["name/193",[128,52.04]],["comment/193",[]],["name/194",[129,52.04]],["comment/194",[]],["name/195",[130,52.04]],["comment/195",[]],["name/196",[131,52.04]],["comment/196",[]],["name/197",[132,52.04]],["comment/197",[]],["name/198",[133,52.04]],["comment/198",[]],["name/199",[134,52.04]],["comment/199",[]],["name/200",[135,52.04]],["comment/200",[]],["name/201",[136,52.04]],["comment/201",[]],["name/202",[137,52.04]],["comment/202",[]],["name/203",[138,52.04]],["comment/203",[]],["name/204",[139,52.04]],["comment/204",[]],["name/205",[140,52.04]],["comment/205",[]],["name/206",[141,52.04]],["comment/206",[]],["name/207",[142,52.04]],["comment/207",[]],["name/208",[143,52.04]],["comment/208",[]],["name/209",[144,52.04]],["comment/209",[]],["name/210",[145,52.04]],["comment/210",[]],["name/211",[146,52.04]],["comment/211",[]],["name/212",[147,52.04]],["comment/212",[]],["name/213",[148,52.04]],["comment/213",[]],["name/214",[149,52.04]],["comment/214",[]],["name/215",[150,52.04]],["comment/215",[]],["name/216",[151,52.04]],["comment/216",[]],["name/217",[152,52.04]],["comment/217",[]],["name/218",[153,46.932]],["comment/218",[]],["name/219",[154,52.04]],["comment/219",[]],["name/220",[155,52.04]],["comment/220",[]],["name/221",[156,52.04]],["comment/221",[]],["name/222",[157,46.932]],["comment/222",[]],["name/223",[158,52.04]],["comment/223",[]],["name/224",[159,52.04]],["comment/224",[]],["name/225",[160,52.04]],["comment/225",[]],["name/226",[161,52.04]],["comment/226",[]],["name/227",[162,52.04]],["comment/227",[]],["name/228",[163,46.932]],["comment/228",[]],["name/229",[164,52.04]],["comment/229",[]],["name/230",[18,25.414]],["comment/230",[]],["name/231",[165,52.04]],["comment/231",[]],["name/232",[18,25.414]],["comment/232",[]],["name/233",[166,52.04]],["comment/233",[]],["name/234",[18,25.414]],["comment/234",[]],["name/235",[18,25.414]],["comment/235",[]],["name/236",[167,52.04]],["comment/236",[]],["name/237",[163,46.932]],["comment/237",[]],["name/238",[153,46.932]],["comment/238",[]],["name/239",[168,52.04]],["comment/239",[]],["name/240",[86,46.932]],["comment/240",[]],["name/241",[169,52.04]],["comment/241",[]],["name/242",[157,46.932]],["comment/242",[]],["name/243",[170,52.04]],["comment/243",[]],["name/244",[171,52.04]],["comment/244",[]],["name/245",[11,35.946]],["comment/245",[]],["name/246",[7,43.567]],["comment/246",[]],["name/247",[172,52.04]],["comment/247",[]],["name/248",[173,52.04]],["comment/248",[]],["name/249",[174,52.04]],["comment/249",[]],["name/250",[175,52.04]],["comment/250",[]],["name/251",[176,52.04]],["comment/251",[]],["name/252",[48,43.567]],["comment/252",[]],["name/253",[177,52.04]],["comment/253",[]],["name/254",[178,52.04]],["comment/254",[]],["name/255",[179,52.04]],["comment/255",[]],["name/256",[180,52.04]],["comment/256",[]],["name/257",[181,52.04]],["comment/257",[]],["name/258",[182,52.04]],["comment/258",[]],["name/259",[183,52.04]],["comment/259",[]],["name/260",[184,52.04]],["comment/260",[]],["name/261",[185,52.04]],["comment/261",[]],["name/262",[186,52.04]],["comment/262",[]],["name/263",[187,52.04]],["comment/263",[]],["name/264",[18,25.414]],["comment/264",[]],["name/265",[188,52.04]],["comment/265",[]],["name/266",[69,43.567]],["comment/266",[]],["name/267",[40,46.932]],["comment/267",[]],["name/268",[189,52.04]],["comment/268",[]],["name/269",[190,52.04]],["comment/269",[]],["name/270",[191,52.04]],["comment/270",[]],["name/271",[192,52.04]],["comment/271",[]]],"invertedIndex":[["__type",{"_index":18,"name":{"19":{},"39":{},"57":{},"63":{},"88":{},"96":{},"114":{},"116":{},"118":{},"120":{},"122":{},"124":{},"126":{},"128":{},"130":{},"148":{},"230":{},"232":{},"234":{},"235":{},"264":{}},"comment":{}}],["_addrequest",{"_index":75,"name":{"106":{}},"comment":{}}],["_cancelrequest",{"_index":78,"name":{"109":{}},"comment":{}}],["_clearrequests",{"_index":80,"name":{"111":{}},"comment":{}}],["_createrequest",{"_index":74,"name":{"105":{}},"comment":{}}],["_deleterequest",{"_index":79,"name":{"110":{}},"comment":{}}],["_dojob",{"_index":183,"name":{"259":{}},"comment":{}}],["_getrequest",{"_index":77,"name":{"108":{}},"comment":{}}],["_getrequests",{"_index":76,"name":{"107":{}},"comment":{}}],["_init",{"_index":179,"name":{"255":{}},"comment":{}}],["_pickjobs",{"_index":181,"name":{"257":{}},"comment":{}}],["_process",{"_index":184,"name":{"260":{}},"comment":{}}],["_subscribed",{"_index":81,"name":{"112":{}},"comment":{}}],["_sync",{"_index":180,"name":{"256":{}},"comment":{}}],["_updatedjobstate",{"_index":182,"name":{"258":{}},"comment":{}}],["add",{"_index":84,"name":{"117":{}},"comment":{}}],["addjob",{"_index":187,"name":{"263":{}},"comment":{}}],["addjobhandler",{"_index":185,"name":{"261":{}},"comment":{}}],["address",{"_index":72,"name":{"100":{},"152":{}},"comment":{}}],["buildoffer",{"_index":100,"name":{"162":{},"188":{}},"comment":{}}],["buildofferoptions",{"_index":123,"name":{"187":{}},"comment":{}}],["buildrequest",{"_index":110,"name":{"174":{}},"comment":{}}],["buildrequestoptions",{"_index":109,"name":{"173":{}},"comment":{}}],["cancel",{"_index":86,"name":{"123":{},"240":{}},"comment":{}}],["canceljob",{"_index":192,"name":{"271":{}},"comment":{}}],["cancelled",{"_index":154,"name":{"219":{}},"comment":{}}],["canceloption",{"_index":114,"name":{"178":{}},"comment":{}}],["canceloptionschema",{"_index":113,"name":{"177":{}},"comment":{}}],["chainid",{"_index":71,"name":{"99":{},"151":{}},"comment":{}}],["clear",{"_index":87,"name":{"127":{}},"comment":{}}],["client",{"_index":60,"name":{"83":{}},"comment":{}}],["clientevents",{"_index":47,"name":{"68":{}},"comment":{}}],["clientoptions",{"_index":137,"name":{"202":{}},"comment":{}}],["concurrentjobsnumber",{"_index":176,"name":{"251":{}},"comment":{}}],["connected",{"_index":49,"name":{"72":{},"102":{},"136":{},"158":{}},"comment":{}}],["constants",{"_index":0,"name":{"0":{}},"comment":{}}],["constructor",{"_index":11,"name":{"12":{},"30":{},"41":{},"54":{},"84":{},"140":{},"245":{}},"comment":{}}],["contractconfig",{"_index":68,"name":{"95":{},"147":{}},"comment":{}}],["contractconfigoptionschema",{"_index":128,"name":{"193":{}},"comment":{}}],["coordinationserver",{"_index":37,"name":{"53":{}},"comment":{}}],["coordinationserverevents",{"_index":34,"name":{"50":{}},"comment":{}}],["create",{"_index":83,"name":{"115":{}},"comment":{}}],["createbuildofferoptions",{"_index":122,"name":{"186":{}},"comment":{}}],["createbuildrequestoptions",{"_index":108,"name":{"172":{}},"comment":{}}],["createclient",{"_index":89,"name":{"131":{}},"comment":{}}],["createclientoptionsschema",{"_index":136,"name":{"201":{}},"comment":{}}],["createjobhandler",{"_index":166,"name":{"233":{}},"comment":{}}],["createjobschema",{"_index":162,"name":{"227":{}},"comment":{}}],["createnode",{"_index":101,"name":{"165":{}},"comment":{}}],["createnodeoptionsschema",{"_index":132,"name":{"197":{}},"comment":{}}],["createofferdataschema",{"_index":119,"name":{"183":{}},"comment":{}}],["createofferoptionsschemaoptionschema",{"_index":126,"name":{"191":{}},"comment":{}}],["createqueryschemaoptionschema",{"_index":125,"name":{"190":{}},"comment":{}}],["createrequestdataschema",{"_index":106,"name":{"170":{}},"comment":{}}],["createrequestmanageroptionsschema",{"_index":134,"name":{"199":{}},"comment":{}}],["createserver",{"_index":46,"name":{"67":{}},"comment":{}}],["createstorageinitializerfactoryschema",{"_index":32,"name":{"48":{}},"comment":{}}],["data",{"_index":190,"name":{"269":{}},"comment":{}}],["db",{"_index":12,"name":{"13":{},"31":{}},"comment":{}}],["defaultexpirationtime",{"_index":1,"name":{"1":{}},"comment":{}}],["delete",{"_index":15,"name":{"16":{},"36":{},"44":{},"125":{}},"comment":{}}],["deletejobhandler",{"_index":186,"name":{"262":{}},"comment":{}}],["deserialize",{"_index":29,"name":{"33":{}},"comment":{}}],["disable",{"_index":98,"name":{"160":{}},"comment":{}}],["disconnected",{"_index":50,"name":{"73":{},"137":{}},"comment":{}}],["done",{"_index":153,"name":{"218":{},"238":{}},"comment":{}}],["enable",{"_index":97,"name":{"159":{}},"comment":{}}],["entries",{"_index":16,"name":{"17":{},"37":{},"45":{}},"comment":{}}],["error",{"_index":168,"name":{"239":{}},"comment":{}}],["errored",{"_index":155,"name":{"220":{}},"comment":{}}],["expired",{"_index":157,"name":{"222":{},"242":{}},"comment":{}}],["fail",{"_index":169,"name":{"241":{}},"comment":{}}],["failed",{"_index":156,"name":{"221":{}},"comment":{}}],["genericmessage",{"_index":103,"name":{"167":{}},"comment":{}}],["genericmessageschema",{"_index":102,"name":{"166":{}},"comment":{}}],["genericofferoptions",{"_index":118,"name":{"182":{}},"comment":{}}],["genericofferoptionsschema",{"_index":117,"name":{"181":{}},"comment":{}}],["genericquery",{"_index":105,"name":{"169":{}},"comment":{}}],["genericqueryschema",{"_index":104,"name":{"168":{}},"comment":{}}],["get",{"_index":14,"name":{"15":{},"35":{},"43":{},"119":{}},"comment":{}}],["getall",{"_index":85,"name":{"121":{}},"comment":{}}],["getitem",{"_index":22,"name":{"23":{}},"comment":{}}],["getjob",{"_index":191,"name":{"270":{}},"comment":{}}],["handlerequest",{"_index":99,"name":{"161":{}},"comment":{}}],["hashkey",{"_index":172,"name":{"247":{}},"comment":{}}],["heartbeat",{"_index":48,"name":{"71":{},"135":{},"252":{}},"comment":{}}],["heartbeatinterval",{"_index":178,"name":{"254":{}},"comment":{}}],["id",{"_index":40,"name":{"58":{},"267":{}},"comment":{}}],["init",{"_index":17,"name":{"18":{},"38":{}},"comment":{}}],["job",{"_index":163,"name":{"228":{},"237":{}},"comment":{}}],["jobhandler",{"_index":164,"name":{"229":{}},"comment":{}}],["jobhandlerclosure",{"_index":165,"name":{"231":{}},"comment":{}}],["jobhandlers",{"_index":175,"name":{"250":{}},"comment":{}}],["joboptions",{"_index":149,"name":{"214":{}},"comment":{}}],["joboptionsschema",{"_index":148,"name":{"213":{}},"comment":{}}],["jobs",{"_index":173,"name":{"248":{}},"comment":{}}],["jobstate",{"_index":161,"name":{"226":{}},"comment":{}}],["jobstateschema",{"_index":160,"name":{"225":{}},"comment":{}}],["jobstatus",{"_index":159,"name":{"224":{}},"comment":{}}],["jobstatuses",{"_index":150,"name":{"215":{}},"comment":{}}],["jobstatusschema",{"_index":158,"name":{"223":{}},"comment":{}}],["key",{"_index":24,"name":{"25":{}},"comment":{}}],["length",{"_index":25,"name":{"26":{}},"comment":{}}],["libp2p",{"_index":43,"name":{"61":{},"90":{},"141":{}},"comment":{}}],["libp2pinit",{"_index":61,"name":{"85":{},"156":{}},"comment":{}}],["livejobs",{"_index":174,"name":{"249":{}},"comment":{}}],["localstorage",{"_index":19,"name":{"20":{},"29":{}},"comment":{}}],["localstorageoptions",{"_index":27,"name":{"28":{}},"comment":{}}],["localstorageoptionsschema",{"_index":26,"name":{"27":{}},"comment":{}}],["memorystorage",{"_index":8,"name":{"8":{},"11":{}},"comment":{}}],["memorystorageoptions",{"_index":10,"name":{"10":{}},"comment":{}}],["memorystorageoptionsschema",{"_index":9,"name":{"9":{}},"comment":{}}],["messagesstorageinit",{"_index":44,"name":{"62":{}},"comment":{}}],["multiaddrs",{"_index":45,"name":{"64":{}},"comment":{}}],["name",{"_index":69,"name":{"97":{},"149":{},"266":{}},"comment":{}}],["node",{"_index":92,"name":{"139":{}},"comment":{}}],["nodeevents",{"_index":90,"name":{"132":{}},"comment":{}}],["nodekeyjson",{"_index":139,"name":{"204":{}},"comment":{}}],["nodekeyjsonschema",{"_index":138,"name":{"203":{}},"comment":{}}],["nodeoptions",{"_index":133,"name":{"198":{}},"comment":{}}],["nonceperiod",{"_index":3,"name":{"3":{}},"comment":{}}],["nonceperiodoptionschema",{"_index":127,"name":{"192":{}},"comment":{}}],["offerdata",{"_index":120,"name":{"184":{}},"comment":{}}],["offereip712types",{"_index":121,"name":{"185":{}},"comment":{}}],["offeroptionsschema",{"_index":67,"name":{"94":{},"146":{}},"comment":{}}],["options",{"_index":188,"name":{"265":{}},"comment":{}}],["outboundstreamdelay",{"_index":2,"name":{"2":{}},"comment":{}}],["paymentoption",{"_index":112,"name":{"176":{}},"comment":{}}],["paymentoptionschema",{"_index":111,"name":{"175":{}},"comment":{}}],["peerkey",{"_index":39,"name":{"56":{}},"comment":{}}],["peeroptions",{"_index":141,"name":{"206":{}},"comment":{}}],["peeroptionsschema",{"_index":140,"name":{"205":{}},"comment":{}}],["pending",{"_index":151,"name":{"216":{}},"comment":{}}],["port",{"_index":38,"name":{"55":{}},"comment":{}}],["privkey",{"_index":41,"name":{"59":{}},"comment":{}}],["processing",{"_index":177,"name":{"253":{}},"comment":{}}],["provider",{"_index":73,"name":{"101":{},"154":{}},"comment":{}}],["provideroptionschema",{"_index":129,"name":{"194":{}},"comment":{}}],["pubkey",{"_index":42,"name":{"60":{}},"comment":{}}],["queryschema",{"_index":66,"name":{"93":{},"145":{}},"comment":{}}],["queue",{"_index":171,"name":{"244":{}},"comment":{}}],["queueconcurrentjobsnumber",{"_index":4,"name":{"4":{}},"comment":{}}],["queueevents",{"_index":167,"name":{"236":{}},"comment":{}}],["queueheartbeat",{"_index":6,"name":{"6":{}},"comment":{}}],["queueinit",{"_index":147,"name":{"212":{}},"comment":{}}],["queueinitschema",{"_index":146,"name":{"211":{}},"comment":{}}],["queuejobattemptsdelay",{"_index":5,"name":{"5":{}},"comment":{}}],["queueoptions",{"_index":145,"name":{"210":{}},"comment":{}}],["queueoptionsschema",{"_index":144,"name":{"209":{}},"comment":{}}],["removeitem",{"_index":23,"name":{"24":{}},"comment":{}}],["request",{"_index":91,"name":{"138":{}},"comment":{}}],["request:cancel",{"_index":56,"name":{"79":{}},"comment":{}}],["request:clear",{"_index":59,"name":{"82":{}},"comment":{}}],["request:create",{"_index":51,"name":{"74":{}},"comment":{}}],["request:delete",{"_index":57,"name":{"80":{}},"comment":{}}],["request:expire",{"_index":55,"name":{"78":{}},"comment":{}}],["request:offer",{"_index":58,"name":{"81":{}},"comment":{}}],["request:publish",{"_index":52,"name":{"75":{}},"comment":{}}],["request:subscribe",{"_index":53,"name":{"76":{}},"comment":{}}],["request:unsubscribe",{"_index":54,"name":{"77":{}},"comment":{}}],["requestdata",{"_index":107,"name":{"171":{}},"comment":{}}],["requestmanager",{"_index":96,"name":{"157":{}},"comment":{}}],["requestmanageroptions",{"_index":135,"name":{"200":{}},"comment":{}}],["requestregistryprefix",{"_index":63,"name":{"89":{}},"comment":{}}],["requests",{"_index":82,"name":{"113":{}},"comment":{}}],["requestsregistry",{"_index":62,"name":{"86":{}},"comment":{}}],["scheduled",{"_index":170,"name":{"243":{}},"comment":{}}],["serialize",{"_index":28,"name":{"32":{}},"comment":{}}],["serveraddressoptionschema",{"_index":130,"name":{"195":{}},"comment":{}}],["servermultiaddr",{"_index":64,"name":{"91":{},"142":{}},"comment":{}}],["serveroptions",{"_index":143,"name":{"208":{}},"comment":{}}],["serveroptionsschema",{"_index":142,"name":{"207":{}},"comment":{}}],["serverpeerid",{"_index":65,"name":{"92":{},"143":{}},"comment":{}}],["set",{"_index":13,"name":{"14":{},"34":{},"42":{}},"comment":{}}],["setitem",{"_index":21,"name":{"22":{}},"comment":{}}],["signer",{"_index":94,"name":{"153":{}},"comment":{}}],["signerseedoptionsschema",{"_index":131,"name":{"196":{}},"comment":{}}],["start",{"_index":35,"name":{"51":{},"65":{},"69":{},"103":{},"133":{},"163":{}},"comment":{}}],["started",{"_index":152,"name":{"217":{}},"comment":{}}],["state",{"_index":189,"name":{"268":{}},"comment":{}}],["stop",{"_index":36,"name":{"52":{},"66":{},"70":{},"104":{},"134":{},"164":{}},"comment":{}}],["storage",{"_index":7,"name":{"7":{},"40":{},"246":{}},"comment":{}}],["storageinitializer",{"_index":31,"name":{"47":{},"87":{}},"comment":{}}],["storageinitializerfunction",{"_index":33,"name":{"49":{}},"comment":{}}],["storageinitializerschema",{"_index":30,"name":{"46":{}},"comment":{}}],["subscribed",{"_index":88,"name":{"129":{}},"comment":{}}],["supplierid",{"_index":93,"name":{"144":{}},"comment":{}}],["topics",{"_index":95,"name":{"155":{}},"comment":{}}],["unsignedofferpayload",{"_index":116,"name":{"180":{}},"comment":{}}],["unsignedofferpayloadschema",{"_index":115,"name":{"179":{}},"comment":{}}],["verifyoffer",{"_index":124,"name":{"189":{}},"comment":{}}],["version",{"_index":70,"name":{"98":{},"150":{}},"comment":{}}],["windowstorage",{"_index":20,"name":{"21":{}},"comment":{}}]],"pipeline":[]}}', -); diff --git a/typedoc/assets/style.css b/typedoc/assets/style.css deleted file mode 100644 index aa3b2a10..00000000 --- a/typedoc/assets/style.css +++ /dev/null @@ -1,1276 +0,0 @@ -:root { - /* Light */ - --light-color-background: #f2f4f8; - --light-color-background-secondary: #eff0f1; - --light-color-warning-text: #222; - --light-color-background-warning: #e6e600; - --light-color-icon-background: var(--light-color-background); - --light-color-accent: #c5c7c9; - --light-color-text: #222; - --light-color-text-aside: #707070; - --light-color-link: #4da6ff; - --light-color-ts: #db1373; - --light-color-ts-interface: #139d2c; - --light-color-ts-enum: #9c891a; - --light-color-ts-class: #2484e5; - --light-color-ts-function: #572be7; - --light-color-ts-namespace: #b111c9; - --light-color-ts-private: #707070; - --light-color-ts-variable: #4d68ff; - --light-external-icon: url("data:image/svg+xml;utf8,"); - --light-color-scheme: light; - - /* Dark */ - --dark-color-background: #2b2e33; - --dark-color-background-secondary: #1e2024; - --dark-color-background-warning: #bebe00; - --dark-color-warning-text: #222; - --dark-color-icon-background: var(--dark-color-background-secondary); - --dark-color-accent: #9096a2; - --dark-color-text: #f5f5f5; - --dark-color-text-aside: #dddddd; - --dark-color-link: #00aff4; - --dark-color-ts: #ff6492; - --dark-color-ts-interface: #6cff87; - --dark-color-ts-enum: #f4d93e; - --dark-color-ts-class: #61b0ff; - --dark-color-ts-function: #9772ff; - --dark-color-ts-namespace: #e14dff; - --dark-color-ts-private: #e2e2e2; - --dark-color-ts-variable: #4d68ff; - --dark-external-icon: url("data:image/svg+xml;utf8,"); - --dark-color-scheme: dark; -} - -@media (prefers-color-scheme: light) { - :root { - --color-background: var(--light-color-background); - --color-background-secondary: var(--light-color-background-secondary); - --color-background-warning: var(--light-color-background-warning); - --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); - --color-accent: var(--light-color-accent); - --color-text: var(--light-color-text); - --color-text-aside: var(--light-color-text-aside); - --color-link: var(--light-color-link); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-function: var(--light-color-ts-function); - --color-ts-namespace: var(--light-color-ts-namespace); - --color-ts-private: var(--light-color-ts-private); - --color-ts-variable: var(--light-color-ts-variable); - --external-icon: var(--light-external-icon); - --color-scheme: var(--light-color-scheme); - } -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--dark-color-background); - --color-background-secondary: var(--dark-color-background-secondary); - --color-background-warning: var(--dark-color-background-warning); - --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); - --color-accent: var(--dark-color-accent); - --color-text: var(--dark-color-text); - --color-text-aside: var(--dark-color-text-aside); - --color-link: var(--dark-color-link); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-function: var(--dark-color-ts-function); - --color-ts-namespace: var(--dark-color-ts-namespace); - --color-ts-private: var(--dark-color-ts-private); - --color-ts-variable: var(--dark-color-ts-variable); - --external-icon: var(--dark-external-icon); - --color-scheme: var(--dark-color-scheme); - } -} - -html { - color-scheme: var(--color-scheme); -} - -body { - margin: 0; -} - -:root[data-theme="light"] { - --color-background: var(--light-color-background); - --color-background-secondary: var(--light-color-background-secondary); - --color-background-warning: var(--light-color-background-warning); - --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); - --color-accent: var(--light-color-accent); - --color-text: var(--light-color-text); - --color-text-aside: var(--light-color-text-aside); - --color-link: var(--light-color-link); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-function: var(--light-color-ts-function); - --color-ts-namespace: var(--light-color-ts-namespace); - --color-ts-private: var(--light-color-ts-private); - --color-ts-variable: var(--light-color-ts-variable); - --external-icon: var(--light-external-icon); - --color-scheme: var(--light-color-scheme); -} - -:root[data-theme="dark"] { - --color-background: var(--dark-color-background); - --color-background-secondary: var(--dark-color-background-secondary); - --color-background-warning: var(--dark-color-background-warning); - --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); - --color-accent: var(--dark-color-accent); - --color-text: var(--dark-color-text); - --color-text-aside: var(--dark-color-text-aside); - --color-link: var(--dark-color-link); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-function: var(--dark-color-ts-function); - --color-ts-namespace: var(--dark-color-ts-namespace); - --color-ts-private: var(--dark-color-ts-private); - --color-ts-variable: var(--dark-color-ts-variable); - --external-icon: var(--dark-external-icon); - --color-scheme: var(--dark-color-scheme); -} - -.always-visible, -.always-visible .tsd-signatures { - display: inherit !important; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - line-height: 1.2; -} - -h1 { - font-size: 1.875rem; - margin: 0.67rem 0; -} - -h2 { - font-size: 1.5rem; - margin: 0.83rem 0; -} - -h3 { - font-size: 1.25rem; - margin: 1rem 0; -} - -h4 { - font-size: 1.05rem; - margin: 1.33rem 0; -} - -h5 { - font-size: 1rem; - margin: 1.5rem 0; -} - -h6 { - font-size: 0.875rem; - margin: 2.33rem 0; -} - -.uppercase { - text-transform: uppercase; -} - -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -.container { - max-width: 1600px; - padding: 0 2rem; -} - -@media (min-width: 640px) { - .container { - padding: 0 4rem; - } -} -@media (min-width: 1200px) { - .container { - padding: 0 8rem; - } -} -@media (min-width: 1600px) { - .container { - padding: 0 12rem; - } -} - -/* Footer */ -.tsd-generator { - border-top: 1px solid var(--color-accent); - padding-top: 1rem; - padding-bottom: 1rem; - max-height: 3.5rem; -} - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; -} - -.container-main { - display: flex; - justify-content: space-between; - position: relative; - margin: 0 auto; -} - -.col-4, -.col-8 { - box-sizing: border-box; - float: left; -} - -.col-4 { - flex: 0 0 25%; -} -.col-8 { - flex: 1 0; - flex-wrap: wrap; - padding: 2rem 3rem; - padding-right: 0; -} - -@keyframes fade-in { - from { - opacity: 0; - } - to { - opacity: 1; - } -} -@keyframes fade-out { - from { - opacity: 1; - visibility: visible; - } - to { - opacity: 0; - } -} -@keyframes fade-in-delayed { - 0% { - opacity: 0; - } - 33% { - opacity: 0; - } - 100% { - opacity: 1; - } -} -@keyframes fade-out-delayed { - 0% { - opacity: 1; - visibility: visible; - } - 66% { - opacity: 0; - } - 100% { - opacity: 0; - } -} -@keyframes shift-to-left { - from { - transform: translate(0, 0); - } - to { - transform: translate(-25%, 0); - } -} -@keyframes unshift-to-left { - from { - transform: translate(-25%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-in-from-right { - from { - transform: translate(100%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-out-to-right { - from { - transform: translate(0, 0); - visibility: visible; - } - to { - transform: translate(100%, 0); - } -} -body { - background: var(--color-background); - font-family: "Segoe UI", sans-serif; - font-size: 16px; - color: var(--color-text); -} - -a { - color: var(--color-link); - text-decoration: none; -} -a:hover { - text-decoration: underline; -} -a.external[target="_blank"] { - background-image: var(--external-icon); - background-position: top 3px right; - background-repeat: no-repeat; - padding-right: 13px; -} - -code, -pre { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - padding: 0.2em; - margin: 0; - font-size: 0.875rem; - border-radius: 0.8em; -} - -pre { - padding: 10px; - border: 0.1em solid var(--color-accent); -} -pre code { - padding: 0; - font-size: 100%; -} - -blockquote { - margin: 1em 0; - padding-left: 1em; - border-left: 4px solid gray; -} - -.tsd-typography { - line-height: 1.333em; -} -.tsd-typography ul { - list-style: square; - padding: 0 0 0 20px; - margin: 0; -} -.tsd-typography h4, -.tsd-typography .tsd-index-panel h3, -.tsd-index-panel .tsd-typography h3, -.tsd-typography h5, -.tsd-typography h6 { - font-size: 1em; - margin: 0; -} -.tsd-typography h5, -.tsd-typography h6 { - font-weight: normal; -} -.tsd-typography p, -.tsd-typography ul, -.tsd-typography ol { - margin: 1em 0; -} - -@media (max-width: 1024px) { - html .col-content { - float: none; - max-width: 100%; - width: 100%; - padding-top: 3rem; - } - html .col-menu { - position: fixed !important; - overflow-y: auto; - -webkit-overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - padding: 1.5rem 1.5rem 0 0; - max-width: 25rem; - visibility: hidden; - background-color: var(--color-background); - transform: translate(100%, 0); - } - html .col-menu > *:last-child { - padding-bottom: 20px; - } - html .overlay { - content: ""; - display: block; - position: fixed; - z-index: 1023; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); - visibility: hidden; - } - - .to-has-menu .overlay { - animation: fade-in 0.4s; - } - - .to-has-menu :is(header, footer, .col-content) { - animation: shift-to-left 0.4s; - } - - .to-has-menu .col-menu { - animation: pop-in-from-right 0.4s; - } - - .from-has-menu .overlay { - animation: fade-out 0.4s; - } - - .from-has-menu :is(header, footer, .col-content) { - animation: unshift-to-left 0.4s; - } - - .from-has-menu .col-menu { - animation: pop-out-to-right 0.4s; - } - - .has-menu body { - overflow: hidden; - } - .has-menu .overlay { - visibility: visible; - } - .has-menu :is(header, footer, .col-content) { - transform: translate(-25%, 0); - } - .has-menu .col-menu { - visibility: visible; - transform: translate(0, 0); - display: flex; - flex-direction: column; - gap: 1.5rem; - max-height: 100vh; - padding: 1rem 2rem; - } - .has-menu .tsd-navigation { - max-height: 100%; - } -} - -.tsd-breadcrumb { - margin: 0; - padding: 0; - color: var(--color-text-aside); -} -.tsd-breadcrumb a { - color: var(--color-text-aside); - text-decoration: none; -} -.tsd-breadcrumb a:hover { - text-decoration: underline; -} -.tsd-breadcrumb li { - display: inline; -} -.tsd-breadcrumb li:after { - content: " / "; -} - -.tsd-comment-tags { - display: flex; - flex-direction: column; -} -dl.tsd-comment-tag-group { - display: flex; - align-items: center; - overflow: hidden; - margin: 0.5em 0; -} -dl.tsd-comment-tag-group dt { - display: flex; - margin-right: 0.5em; - font-size: 0.875em; - font-weight: normal; -} -dl.tsd-comment-tag-group dd { - margin: 0; -} -code.tsd-tag { - padding: 0.25em 0.4em; - border: 0.1em solid var(--color-accent); - margin-right: 0.25em; - font-size: 70%; -} -h1 code.tsd-tag:first-of-type { - margin-left: 0.25em; -} - -dl.tsd-comment-tag-group dd:before, -dl.tsd-comment-tag-group dd:after { - content: " "; -} -dl.tsd-comment-tag-group dd pre, -dl.tsd-comment-tag-group dd:after { - clear: both; -} -dl.tsd-comment-tag-group p { - margin: 0; -} - -.tsd-panel.tsd-comment .lead { - font-size: 1.1em; - line-height: 1.333em; - margin-bottom: 2em; -} -.tsd-panel.tsd-comment .lead:last-child { - margin-bottom: 0; -} - -.tsd-filter-visibility h4 { - font-size: 1rem; - padding-top: 0.75rem; - padding-bottom: 0.5rem; - margin: 0; -} -.tsd-filter-item:not(:last-child) { - margin-bottom: 0.5rem; -} -.tsd-filter-input { - display: flex; - width: fit-content; - width: -moz-fit-content; - align-items: center; - user-select: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - cursor: pointer; -} -.tsd-filter-input input[type="checkbox"] { - cursor: pointer; - position: absolute; - width: 1.5em; - height: 1.5em; - opacity: 0; -} -.tsd-filter-input input[type="checkbox"]:disabled { - pointer-events: none; -} -.tsd-filter-input svg { - cursor: pointer; - width: 1.5em; - height: 1.5em; - margin-right: 0.5em; - border-radius: 0.33em; - /* Leaving this at full opacity breaks event listeners on Firefox. - Don't remove unless you know what you're doing. */ - opacity: 0.99; -} -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); -} -.tsd-checkbox-background { - fill: var(--color-accent); -} -input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { - stroke: var(--color-text); -} -.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { - fill: var(--color-background); - stroke: var(--color-accent); - stroke-width: 0.25rem; -} -.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { - stroke: var(--color-accent); -} - -.tsd-theme-toggle { - padding-top: 0.75rem; -} -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; -} - -.tsd-hierarchy { - list-style: square; - margin: 0; -} -.tsd-hierarchy .target { - font-weight: bold; -} - -.tsd-panel-group.tsd-index-group { - margin-bottom: 0; -} -.tsd-index-panel .tsd-index-list { - list-style: none; - line-height: 1.333em; - margin: 0; - padding: 0.25rem 0 0 0; - overflow: hidden; - display: grid; - grid-template-columns: repeat(3, 1fr); - column-gap: 1rem; - grid-template-rows: auto; -} -@media (max-width: 1024px) { - .tsd-index-panel .tsd-index-list { - grid-template-columns: repeat(2, 1fr); - } -} -@media (max-width: 768px) { - .tsd-index-panel .tsd-index-list { - grid-template-columns: repeat(1, 1fr); - } -} -.tsd-index-panel .tsd-index-list li { - -webkit-page-break-inside: avoid; - -moz-page-break-inside: avoid; - -ms-page-break-inside: avoid; - -o-page-break-inside: avoid; - page-break-inside: avoid; -} -.tsd-index-panel a, -.tsd-index-panel a.tsd-parent-kind-module { - color: var(--color-ts); -} -.tsd-index-panel a.tsd-parent-kind-interface { - color: var(--color-ts-interface); -} -.tsd-index-panel a.tsd-parent-kind-enum { - color: var(--color-ts-enum); -} -.tsd-index-panel a.tsd-parent-kind-class { - color: var(--color-ts-class); -} -.tsd-index-panel a.tsd-kind-module { - color: var(--color-ts-namespace); -} -.tsd-index-panel a.tsd-kind-interface { - color: var(--color-ts-interface); -} -.tsd-index-panel a.tsd-kind-enum { - color: var(--color-ts-enum); -} -.tsd-index-panel a.tsd-kind-class { - color: var(--color-ts-class); -} -.tsd-index-panel a.tsd-kind-function { - color: var(--color-ts-function); -} -.tsd-index-panel a.tsd-kind-namespace { - color: var(--color-ts-namespace); -} -.tsd-index-panel a.tsd-kind-variable { - color: var(--color-ts-variable); -} -.tsd-index-panel a.tsd-is-private { - color: var(--color-ts-private); -} - -.tsd-flag { - display: inline-block; - padding: 0.25em 0.4em; - border-radius: 4px; - color: var(--color-comment-tag-text); - background-color: var(--color-comment-tag); - text-indent: 0; - font-size: 75%; - line-height: 1; - font-weight: normal; -} - -.tsd-anchor { - position: absolute; - top: -100px; -} - -.tsd-member { - position: relative; -} -.tsd-member .tsd-anchor + h3 { - display: flex; - align-items: center; - margin-top: 0; - margin-bottom: 0; - border-bottom: none; -} -.tsd-member [data-tsd-kind] { - color: var(--color-ts); -} -.tsd-member [data-tsd-kind="Interface"] { - color: var(--color-ts-interface); -} -.tsd-member [data-tsd-kind="Enum"] { - color: var(--color-ts-enum); -} -.tsd-member [data-tsd-kind="Class"] { - color: var(--color-ts-class); -} -.tsd-member [data-tsd-kind="Private"] { - color: var(--color-ts-private); -} - -.tsd-navigation a { - display: block; - margin: 0.4rem 0; - border-left: 2px solid transparent; - color: var(--color-text); - text-decoration: none; - transition: border-left-color 0.1s; -} -.tsd-navigation a:hover { - text-decoration: underline; -} -.tsd-navigation ul { - margin: 0; - padding: 0; - list-style: none; -} -.tsd-navigation li { - padding: 0; -} - -.tsd-navigation.primary .tsd-accordion-details > ul { - margin-top: 0.75rem; -} -.tsd-navigation.primary a { - padding: 0.75rem 0.5rem; - margin: 0; -} -.tsd-navigation.primary ul li a { - margin-left: 0.5rem; -} -.tsd-navigation.primary ul li li a { - margin-left: 1.5rem; -} -.tsd-navigation.primary ul li li li a { - margin-left: 2.5rem; -} -.tsd-navigation.primary ul li li li li a { - margin-left: 3.5rem; -} -.tsd-navigation.primary ul li li li li li a { - margin-left: 4.5rem; -} -.tsd-navigation.primary ul li li li li li li a { - margin-left: 5.5rem; -} -.tsd-navigation.primary li.current > a { - border-left: 0.15rem var(--color-text) solid; -} -.tsd-navigation.primary li.selected > a { - font-weight: bold; - border-left: 0.2rem var(--color-text) solid; -} -.tsd-navigation.primary ul li a:hover { - border-left: 0.2rem var(--color-text-aside) solid; -} -.tsd-navigation.primary li.globals + li > span, -.tsd-navigation.primary li.globals + li > a { - padding-top: 20px; -} - -.tsd-navigation.secondary.tsd-navigation--toolbar-hide { - max-height: calc(100vh - 1rem); - top: 0.5rem; -} -.tsd-navigation.secondary > ul { - display: inline; - padding-right: 0.5rem; - transition: opacity 0.2s; -} -.tsd-navigation.secondary ul li a { - padding-left: 0; -} -.tsd-navigation.secondary ul li li a { - padding-left: 1.1rem; -} -.tsd-navigation.secondary ul li li li a { - padding-left: 2.2rem; -} -.tsd-navigation.secondary ul li li li li a { - padding-left: 3.3rem; -} -.tsd-navigation.secondary ul li li li li li a { - padding-left: 4.4rem; -} -.tsd-navigation.secondary ul li li li li li li a { - padding-left: 5.5rem; -} - -#tsd-sidebar-links a { - margin-top: 0; - margin-bottom: 0.5rem; - line-height: 1.25rem; -} -#tsd-sidebar-links a:last-of-type { - margin-bottom: 0; -} - -a.tsd-index-link { - margin: 0.25rem 0; - font-size: 1rem; - line-height: 1.25rem; - display: inline-flex; - align-items: center; -} -.tsd-accordion-summary > h1, -.tsd-accordion-summary > h2, -.tsd-accordion-summary > h3, -.tsd-accordion-summary > h4, -.tsd-accordion-summary > h5 { - display: inline-flex; - align-items: center; - vertical-align: middle; - margin-bottom: 0; - user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; -} -.tsd-accordion-summary { - display: block; - cursor: pointer; -} -.tsd-accordion-summary > * { - margin-top: 0; - margin-bottom: 0; - padding-top: 0; - padding-bottom: 0; -} -.tsd-accordion-summary::-webkit-details-marker { - display: none; -} -.tsd-index-accordion .tsd-accordion-summary svg { - margin-right: 0.25rem; -} -.tsd-index-content > :not(:first-child) { - margin-top: 0.75rem; -} -.tsd-index-heading { - margin-top: 1.5rem; - margin-bottom: 0.75rem; -} - -.tsd-kind-icon { - margin-right: 0.5rem; - width: 1.25rem; - height: 1.25rem; - min-width: 1.25rem; - min-height: 1.25rem; -} -.tsd-kind-icon path { - transform-origin: center; - transform: scale(1.1); -} -.tsd-signature > .tsd-kind-icon { - margin-right: 0.8rem; -} - -@media (min-width: 1025px) { - .col-content { - margin: 2rem auto; - } - - .menu-sticky-wrap { - position: sticky; - height: calc(100vh - 2rem); - top: 4rem; - right: 0; - padding: 2rem 0; - padding-right: 1rem; - margin-top: 3rem; - transition: 0.3s ease-in-out; - transition-property: top, padding-top, padding, height; - overflow-y: auto; - } - .col-menu--hide { - top: 1rem; - } - .col-menu .tsd-navigation:not(:last-child) { - padding-bottom: 1.75rem; - } -} - -.tsd-panel { - margin-bottom: 2.5rem; -} -.tsd-panel.tsd-member { - margin-bottom: 4rem; -} -.tsd-panel:empty { - display: none; -} -.tsd-panel > h1, -.tsd-panel > h2, -.tsd-panel > h3 { - margin: 1.5rem -1.5rem 0.75rem -1.5rem; - padding: 0 1.5rem 0.75rem 1.5rem; -} -.tsd-panel > h1.tsd-before-signature, -.tsd-panel > h2.tsd-before-signature, -.tsd-panel > h3.tsd-before-signature { - margin-bottom: 0; - border-bottom: none; -} - -.tsd-panel-group { - margin: 4rem 0; -} -.tsd-panel-group.tsd-index-group { - margin: 2rem 0; -} -.tsd-panel-group.tsd-index-group details { - margin: 2rem 0; -} - -#tsd-search { - transition: background-color 0.2s; -} -#tsd-search .title { - position: relative; - z-index: 2; -} -#tsd-search .field { - position: absolute; - left: 0; - top: 0; - right: 2.5rem; - height: 100%; -} -#tsd-search .field input { - box-sizing: border-box; - position: relative; - top: -50px; - z-index: 1; - width: 100%; - padding: 0 10px; - opacity: 0; - outline: 0; - border: 0; - background: transparent; - color: var(--color-text); -} -#tsd-search .field label { - position: absolute; - overflow: hidden; - right: -40px; -} -#tsd-search .field input, -#tsd-search .title, -#tsd-toolbar-links a { - transition: opacity 0.2s; -} -#tsd-search .results { - position: absolute; - visibility: hidden; - top: 40px; - width: 100%; - margin: 0; - padding: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); -} -#tsd-search .results li { - padding: 0 10px; - background-color: var(--color-background); -} -#tsd-search .results li:nth-child(even) { - background-color: var(--color-background-secondary); -} -#tsd-search .results li.state { - display: none; -} -#tsd-search .results li.current, -#tsd-search .results li:hover { - background-color: var(--color-accent); -} -#tsd-search .results a { - display: block; -} -#tsd-search .results a:before { - top: 10px; -} -#tsd-search .results span.parent { - color: var(--color-text-aside); - font-weight: normal; -} -#tsd-search.has-focus { - background-color: var(--color-accent); -} -#tsd-search.has-focus .field input { - top: 0; - opacity: 1; -} -#tsd-search.has-focus .title, -#tsd-search.has-focus #tsd-toolbar-links a { - z-index: 0; - opacity: 0; -} -#tsd-search.has-focus .results { - visibility: visible; -} -#tsd-search.loading .results li.state.loading { - display: block; -} -#tsd-search.failure .results li.state.failure { - display: block; -} - -#tsd-toolbar-links { - position: absolute; - top: 0; - right: 2rem; - height: 100%; - display: flex; - align-items: center; - justify-content: flex-end; -} -#tsd-toolbar-links a { - margin-left: 1.5rem; -} -#tsd-toolbar-links a:hover { - text-decoration: underline; -} - -.tsd-signature { - margin: 0 0 1rem 0; - padding: 1rem 0.5rem; - border: 1px solid var(--color-accent); - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - font-size: 14px; - overflow-x: auto; -} - -.tsd-signature-symbol { - color: var(--color-text-aside); - font-weight: normal; -} - -.tsd-signature-type { - font-style: italic; - font-weight: normal; -} - -.tsd-signatures { - padding: 0; - margin: 0 0 1em 0; - list-style-type: none; -} -.tsd-signatures .tsd-signature { - margin: 0; - border-color: var(--color-accent); - border-width: 1px 0; - transition: background-color 0.1s; -} -.tsd-description .tsd-signatures .tsd-signature { - border-width: 1px; -} - -ul.tsd-parameter-list, -ul.tsd-type-parameter-list { - list-style: square; - margin: 0; - padding-left: 20px; -} -ul.tsd-parameter-list > li.tsd-parameter-signature, -ul.tsd-type-parameter-list > li.tsd-parameter-signature { - list-style: none; - margin-left: -20px; -} -ul.tsd-parameter-list h5, -ul.tsd-type-parameter-list h5 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} -.tsd-sources { - margin-top: 1rem; - font-size: 0.875em; -} -.tsd-sources a { - color: var(--color-text-aside); - text-decoration: underline; -} -.tsd-sources ul { - list-style: none; - padding: 0; -} - -.tsd-page-toolbar { - position: fixed; - z-index: 1; - top: 0; - left: 0; - width: 100%; - color: var(--color-text); - background: var(--color-background-secondary); - border-bottom: 1px var(--color-accent) solid; - transition: transform 0.3s ease-in-out; -} -.tsd-page-toolbar a { - color: var(--color-text); - text-decoration: none; -} -.tsd-page-toolbar a.title { - font-weight: bold; -} -.tsd-page-toolbar a.title:hover { - text-decoration: underline; -} -.tsd-page-toolbar .tsd-toolbar-contents { - display: flex; - justify-content: space-between; - height: 2.5rem; - margin: 0 auto; -} -.tsd-page-toolbar .table-cell { - position: relative; - white-space: nowrap; - line-height: 40px; -} -.tsd-page-toolbar .table-cell:first-child { - width: 100%; -} -.tsd-page-toolbar .tsd-toolbar-icon { - box-sizing: border-box; - line-height: 0; - padding: 12px 0; -} - -.tsd-page-toolbar--hide { - transform: translateY(-100%); -} - -.tsd-widget { - display: inline-block; - overflow: hidden; - opacity: 0.8; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-widget:hover { - opacity: 0.9; -} -.tsd-widget.active { - opacity: 1; - background-color: var(--color-accent); -} -.tsd-widget.no-caption { - width: 40px; -} -.tsd-widget.no-caption:before { - margin: 0; -} - -.tsd-widget.options, -.tsd-widget.menu { - display: none; -} -@media (max-width: 1024px) { - .tsd-widget.options, - .tsd-widget.menu { - display: inline-block; - } -} -input[type="checkbox"] + .tsd-widget:before { - background-position: -120px 0; -} -input[type="checkbox"]:checked + .tsd-widget:before { - background-position: -160px 0; -} - -img { - max-width: 100%; -} - -.tsd-anchor-icon { - display: inline-flex; - align-items: center; - margin-left: 0.5rem; - vertical-align: middle; - color: var(--color-text); -} - -.tsd-anchor-icon svg { - width: 1em; - height: 1em; - visibility: hidden; -} - -.tsd-anchor-link:hover > .tsd-anchor-icon svg { - visibility: visible; -} - -.deprecated { - text-decoration: line-through; -} - -.warning { - padding: 1rem; - color: var(--color-warning-text); - background: var(--color-background-warning); -} - -* { - scrollbar-width: thin; - scrollbar-color: var(--color-accent) var(--color-icon-background); -} - -*::-webkit-scrollbar { - width: 0.75rem; -} - -*::-webkit-scrollbar-track { - background: var(--color-icon-background); -} - -*::-webkit-scrollbar-thumb { - background-color: var(--color-accent); - border-radius: 999rem; - border: 0.25rem solid var(--color-icon-background); -} diff --git a/typedoc/classes/Client.html b/typedoc/classes/Client.html deleted file mode 100644 index a9de7d14..00000000 --- a/typedoc/classes/Client.html +++ /dev/null @@ -1,603 +0,0 @@ -Client | @windingtree/sdk
-
- -
-
- -
-
- -

Class Client<CustomRequestQuery, CustomOfferOptions>

-
-

The protocol Client class

-
-
-

Type Parameters

-
-
-

Hierarchy

-
    -
  • EventEmitter<ClientEvents<CustomRequestQuery, CustomOfferOptions>> -
      -
    • Client
-
-
-
- -
-
-

Constructors

-
- -
    - -
  • -

    Creates an instance of Client.

    - -

    Memberof

    Client

    -
    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -
    -

    Parameters

    -
      -
    • -
      options: {
          contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
          libp2p?: objectOutputType<{}, ZodAny, "strip">;
          offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          provider?: AbstractProvider;
          querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          requestRegistryPrefix: string;
          serverAddress: string;
          storageInitializer: ((...args: unknown[]) => Promise<Storage>);
      }
      -
        -
      • -
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; }
        -

        The protocol smart contract configuration

        -
      • -
      • -
        Optional libp2p?: objectOutputType<{}, ZodAny, "strip">
        -

        libp2p configuration options

        -
      • -
      • -
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>
        -

        Offer options validation schema instance

        -
      • -
      • -
        Optional provider?: AbstractProvider
        -

        Ethers.js provider instance

        -
      • -
      • -
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>
        -

        Query validation schema instance

        -
      • -
      • -
        requestRegistryPrefix: string
        -

        Request registry keys prefix

        -
      • -
      • -
        serverAddress: string
        -

        Multiaddr of the coordination server

        -
      • -
      • -
        storageInitializer: ((...args: unknown[]) => Promise<Storage>)
        -
          -
        • -
            -
          • (...args: unknown[]): Promise<Storage>
          • -
          • -

            Storage initializer function

            -
            -
            -

            Parameters

            -
              -
            • -
              Rest ...args: unknown[]
            -

            Returns Promise<Storage>

    -

    Returns Client<CustomRequestQuery, CustomOfferOptions>

-
-

Properties

-
- -
contractConfig: {
    address: string;
    chainId: string | number | bigint;
    name: string;
    version: string;
}
-

Smart contract configuration

-
-
-

Type declaration

-
    -
  • -
    address: string
  • -
  • -
    chainId: string | number | bigint
  • -
  • -
    name: string
  • -
  • -
    version: string
-
- -
libp2p?: Libp2p
-

libp2p instance

-
-
- -
libp2pInit: Libp2pOptions
-
- -
offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>
-

Offer options validation schema

-
-
- -
provider?: AbstractProvider
-

Ethers.js provider instance

-
-
- -
querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>
-

Request query validation schema

-
-
- -
requestRegistryPrefix: string
-
- -
requestsRegistry?: RequestsRegistry<CustomRequestQuery, CustomOfferOptions>
-
- -
serverMultiaddr: Multiaddr
-

Server instance multiaddr

-
-
- -
serverPeerId: PeerId
-

Server peer Id

-
-
- -
storageInitializer: ((...args: unknown[]) => Promise<Storage>)
-
-

Type declaration

-
    -
  • -
      -
    • (...args: unknown[]): Promise<Storage>
    • -
    • -
      -

      Parameters

      -
        -
      • -
        Rest ...args: unknown[]
      -

      Returns Promise<Storage>

-
-

Accessors

-
- -
    -
  • get connected(): boolean
  • -
  • -

    Client connection status flag

    - -

    Memberof

    Client

    -
    -

    Returns boolean

-
- -
    -
  • get requests(): {
        add: ((request: { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }) => void);
        cancel: ((id: string) => void);
        clear: (() => void);
        create: ((requestOptions: Omit<{ [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
            expire: ZodUnion<[ZodString, ZodNumber]>;
            idOverride: ZodOptional<ZodString>;
            nonce: ZodNumber;
            query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
            querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
            topic: ZodString;
        }>, requiredKeys<baseObjectOutputType<{
            expire: ZodUnion<[ZodString, ZodNumber]>;
            idOverride: ZodOptional<ZodString>;
            nonce: ZodNumber;
            query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
            querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
            topic: ZodString;
        }>>>[k] }, "querySchema" | "idOverride">) => Promise<{ [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }>);
        delete: ((id: string) => void);
        get: ((id: string) => undefined | { [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>, requiredKeys<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>>>[k] });
        getAll: (() => Required<{ [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>, requiredKeys<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>>>[k] }>[]);
        subscribed: ((id: string) => boolean);
    }
  • -
  • -

    Provides access to subset of requests API

    - -

    Memberof

    Client

    -
    -

    Returns {
        add: ((request: { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }) => void);
        cancel: ((id: string) => void);
        clear: (() => void);
        create: ((requestOptions: Omit<{ [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
            expire: ZodUnion<[ZodString, ZodNumber]>;
            idOverride: ZodOptional<ZodString>;
            nonce: ZodNumber;
            query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
            querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
            topic: ZodString;
        }>, requiredKeys<baseObjectOutputType<{
            expire: ZodUnion<[ZodString, ZodNumber]>;
            idOverride: ZodOptional<ZodString>;
            nonce: ZodNumber;
            query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
            querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
            topic: ZodString;
        }>>>[k] }, "querySchema" | "idOverride">) => Promise<{ [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }>);
        delete: ((id: string) => void);
        get: ((id: string) => undefined | { [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>, requiredKeys<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>>>[k] });
        getAll: (() => Required<{ [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>, requiredKeys<baseObjectOutputType<{
            cancelled: ZodDefault<ZodBoolean>;
            data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
            offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
        }>>>[k] }>[]);
        subscribed: ((id: string) => boolean);
    }

    -
      -
    • -
      add: ((request: { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }) => void)
      -
        -
      • -
          -
        • (request: { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }): void
        • -
        • -
          -

          See

          _addRequest

          -
          -
          -

          Parameters

          -
            -
          • -
            request: { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }
          -

          Returns void

    • -
    • -
      cancel: ((id: string) => void)
      -
        -
      • -
          -
        • (id: string): void
        • -
        • -
          -

          See

          _cancelRequest

          -
          -
          -

          Parameters

          -
            -
          • -
            id: string
          -

          Returns void

    • -
    • -
      clear: (() => void)
      -
        -
      • -
          -
        • (): void
        • -
        • -
          -

          See

          _clearRequests

          -
          -

          Returns void

    • -
    • -
      create: ((requestOptions: Omit<{ [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          nonce: ZodNumber;
          query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          topic: ZodString;
      }>, requiredKeys<baseObjectOutputType<{
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          nonce: ZodNumber;
          query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          topic: ZodString;
      }>>>[k] }, "querySchema" | "idOverride">) => Promise<{ [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }>)
      -
        -
      • -
          -
        • (requestOptions: Omit<{ [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
              expire: ZodUnion<[ZodString, ZodNumber]>;
              idOverride: ZodOptional<ZodString>;
              nonce: ZodNumber;
              query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
              querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
              topic: ZodString;
          }>, requiredKeys<baseObjectOutputType<{
              expire: ZodUnion<[ZodString, ZodNumber]>;
              idOverride: ZodOptional<ZodString>;
              nonce: ZodNumber;
              query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
              querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
              topic: ZodString;
          }>>>[k] }, "querySchema" | "idOverride">): Promise<{ [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }>
        • -
        • -
          -

          See

          _createRequest

          -
          -
          -

          Parameters

          -
            -
          • -
            requestOptions: Omit<{ [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
                expire: ZodUnion<[ZodString, ZodNumber]>;
                idOverride: ZodOptional<ZodString>;
                nonce: ZodNumber;
                query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
                querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
                topic: ZodString;
            }>, requiredKeys<baseObjectOutputType<{
                expire: ZodUnion<[ZodString, ZodNumber]>;
                idOverride: ZodOptional<ZodString>;
                nonce: ZodNumber;
                query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
                querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
                topic: ZodString;
            }>>>[k] }, "querySchema" | "idOverride">
          -

          Returns Promise<{ [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }>

    • -
    • -
      delete: ((id: string) => void)
      -
        -
      • -
          -
        • (id: string): void
        • -
        • -
          -

          See

          _deleteRequest

          -
          -
          -

          Parameters

          -
            -
          • -
            id: string
          -

          Returns void

    • -
    • -
      get: ((id: string) => undefined | { [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
          cancelled: ZodDefault<ZodBoolean>;
          data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
      }>, requiredKeys<baseObjectOutputType<{
          cancelled: ZodDefault<ZodBoolean>;
          data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
      }>>>[k] })
      -
        -
      • -
          -
        • (id: string): undefined | { [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>, requiredKeys<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>>>[k] }
        • -
        • -
          -

          See

          _getRequest

          -
          -
          -

          Parameters

          -
            -
          • -
            id: string
          -

          Returns undefined | { [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>, requiredKeys<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>>>[k] }

    • -
    • -
      getAll: (() => Required<{ [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
          cancelled: ZodDefault<ZodBoolean>;
          data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
      }>, requiredKeys<baseObjectOutputType<{
          cancelled: ZodDefault<ZodBoolean>;
          data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
      }>>>[k] }>[])
      -
        -
      • -
          -
        • (): Required<{ [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>, requiredKeys<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>>>[k] }>[]
        • -
        • -
          -

          See

          _getRequests

          -
          -

          Returns Required<{ [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>, requiredKeys<baseObjectOutputType<{
              cancelled: ZodDefault<ZodBoolean>;
              data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
              offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
          }>>>[k] }>[]

    • -
    • -
      subscribed: ((id: string) => boolean)
      -
        -
      • -
          -
        • (id: string): boolean
        • -
        • -
          -

          See

          _subscribed

          -
          -
          -

          Parameters

          -
            -
          • -
            id: string
          -

          Returns boolean

-
-

Methods

-
- -
    - -
  • Private -

    Adds request to the request registry

    - -

    Returns

    -

    Memberof

    Client

    -
    -
    -

    Parameters

    -
      -
    • -
      request: { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }
    -

    Returns void

-
- -
    - -
  • Private -

    Cancels request by Id

    - -

    Memberof

    Client

    -
    -
    -

    Parameters

    -
      -
    • -
      id: string
    -

    Returns void

-
- -
    - -
  • Private -

    Cancels and removes all requests from registry

    - -

    Returns

    -

    Memberof

    Client

    -
    -

    Returns void

-
- -
    - -
  • Private -

    Create new request

    - -

    Returns

    -

    Memberof

    Client

    -
    -
    -

    Parameters

    -
      -
    • -
      requestOptions: Omit<{ [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          nonce: ZodNumber;
          query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          topic: ZodString;
      }>, requiredKeys<baseObjectOutputType<{
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          nonce: ZodNumber;
          query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          topic: ZodString;
      }>>>[k] }, "querySchema" | "idOverride">
    -

    Returns Promise<{ [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }>

-
- -
    - -
  • Private -

    Deletes request by Id

    - -

    Memberof

    Client

    -
    -
    -

    Parameters

    -
      -
    • -
      id: string
    -

    Returns void

-
- -
    - -
  • Private -

    Return request from the registry by Id

    - -

    Returns

    -

    Memberof

    Client

    -
    -
    -

    Parameters

    -
      -
    • -
      id: string
    -

    Returns undefined | { [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
        cancelled: ZodDefault<ZodBoolean>;
        data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
        offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
    }>, requiredKeys<baseObjectOutputType<{
        cancelled: ZodDefault<ZodBoolean>;
        data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
        offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
    }>>>[k] }

-
- -
    - -
  • Private -

    Returns all requests from the registry

    - -

    Returns

    -

    Memberof

    Client

    -
    -

    Returns Required<{ [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
        cancelled: ZodDefault<ZodBoolean>;
        data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
        offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
    }>, requiredKeys<baseObjectOutputType<{
        cancelled: ZodDefault<ZodBoolean>;
        data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
        offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
    }>>>[k] }>[]

-
- -
    - -
  • Private -

    Checks if request is currently subscribe by its Id

    - -

    Returns

    -

    Memberof

    Client

    -
    -
    -

    Parameters

    -
      -
    • -
      id: string
    -

    Returns boolean

-
- -
    - -
  • -

    Starts the client

    - -

    Returns

    -

    Memberof

    Client

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Stops the client

    - -

    Returns

    -

    Memberof

    Client

    -
    -

    Returns Promise<void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/classes/CoordinationServer.html b/typedoc/classes/CoordinationServer.html deleted file mode 100644 index 7e82425f..00000000 --- a/typedoc/classes/CoordinationServer.html +++ /dev/null @@ -1,235 +0,0 @@ -CoordinationServer | @windingtree/sdk
-
- -
-
- -
-
- -

Class CoordinationServer

-
-

Coordination server class

-
-
-

Hierarchy

-
-
-
-
- -
-
-

Constructors

-
-
-

Properties

-
-
-

Accessors

-
-
-

Methods

-
-
-

Constructors

-
- -
    - -
  • -

    Creates an instance of CoordinationServer.

    - -

    Memberof

    CoordinationServer

    -
    -
    -

    Parameters

    -
      -
    • -
      options: {
          address?: string;
          messagesStorageInit: ((...args: unknown[]) => Promise<Storage>);
          peerKey: { id: string; privKey: string; pubKey: string; };
          port: number;
      }
      -
        -
      • -
        Optional address?: string
        -

        Optional IP address of the server, defaults to '0.0.0.0'

        -
      • -
      • -
        messagesStorageInit: ((...args: unknown[]) => Promise<Storage>)
        -
          -
        • -
            -
          • (...args: unknown[]): Promise<Storage>
          • -
          • -

            Messages storage initializer

            -
            -
            -

            Parameters

            -
              -
            • -
              Rest ...args: unknown[]
            -

            Returns Promise<Storage>

      • -
      • -
        peerKey: { id: string; privKey: string; pubKey: string; }
        -

        Peer key

        -
      • -
      • -
        port: number
        -

        Server port

        -
    -

    Returns CoordinationServer

-
-

Properties

-
- -
libp2p?: Libp2p
-
- -
messagesStorageInit: ((...args: unknown[]) => Promise<Storage>)
-
-

Type declaration

-
    -
  • -
      -
    • (...args: unknown[]): Promise<Storage>
    • -
    • -
      -

      Parameters

      -
        -
      • -
        Rest ...args: unknown[]
      -

      Returns Promise<Storage>

-
- -
peerKey: {
    id: string;
    privKey: string;
    pubKey: string;
}
-

Peer key in Json format

-
-
-

Type declaration

-
    -
  • -
    id: string
    -

    Peer Id

    -
  • -
  • -
    privKey: string
    -

    Private key

    -
  • -
  • -
    pubKey: string
    -

    Public key

    -
-
- -
port: number
-
-

Accessors

-
- -
    -
  • get multiaddrs(): Multiaddr[]
  • -
  • -

    Represents multiaddrs set of the server

    - -

    Memberof

    CoordinationServer

    -
    -

    Returns Multiaddr[]

-
-

Methods

-
- -
    - -
  • -

    Starts the coordination server

    - -

    Returns

    -

    Memberof

    CoordinationServer

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Stops the coordination server

    - -

    Returns

    -

    Memberof

    CoordinationServer

    -
    -

    Returns Promise<void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/classes/Node.html b/typedoc/classes/Node.html deleted file mode 100644 index 6b3a03e9..00000000 --- a/typedoc/classes/Node.html +++ /dev/null @@ -1,371 +0,0 @@ -Node | @windingtree/sdk
-
- -
-
- -
-
- -

Class Node<CustomRequestQuery, CustomOfferOptions>

-
-

The protocol node

- -

Template

-

Template

-
-

Type Parameters

-
-
-

Hierarchy

-
    -
  • EventEmitter<NodeEvents<CustomRequestQuery>> -
      -
    • Node
-
-
-
- -
-
-

Constructors

-
- -
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -
    -

    Parameters

    -
      -
    • -
      options: {
          contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
          libp2p?: objectOutputType<{}, ZodAny, "strip">;
          noncePeriod: number;
          offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          provider?: AbstractProvider;
          querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          serverAddress: string;
          signerSeedPhrase: string;
          supplierId: string;
          topics: string[];
      }
      -

      Node initialization options

      -
      -
        -
      • -
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; }
        -

        The protocol smart contract configuration

        -
      • -
      • -
        Optional libp2p?: objectOutputType<{}, ZodAny, "strip">
        -

        libp2p configuration options

        -
      • -
      • -
        noncePeriod: number
        -

        Period while the node waits and accepting requests with the same Id

        -
      • -
      • -
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>
        -

        Offer options validation schema instance

        -
      • -
      • -
        Optional provider?: AbstractProvider
        -

        Ethers.js provider instance

        -
      • -
      • -
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>
        -

        Query validation schema instance

        -
      • -
      • -
        serverAddress: string
        -

        Multiaddr of the coordination server

        -
      • -
      • -
        signerSeedPhrase: string
        -

        Seed phrase of the node signer wallet

        -
      • -
      • -
        supplierId: string
        -

        Unique supplier Id

        -
      • -
      • -
        topics: string[]
        -

        Subscription topics of node

        -
    -

    Returns Node<CustomRequestQuery, CustomOfferOptions>

-
-

Properties

-
- -
contractConfig: {
    address: string;
    chainId: string | number | bigint;
    name: string;
    version: string;
}
-
-

Type declaration

-
    -
  • -
    address: string
  • -
  • -
    chainId: string | number | bigint
  • -
  • -
    name: string
  • -
  • -
    version: string
-
- -
libp2p?: Libp2p
-
- -
libp2pInit: Libp2pOptions
-
- -
offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>
-
- -
provider?: AbstractProvider
-
- -
querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>
-
- -
requestManager: RequestManager<CustomRequestQuery>
-
- -
serverMultiaddr: Multiaddr
-
- -
serverPeerId: PeerId
-
- -
signer: AbstractSigner<null | Provider>
-
- -
supplierId: string
-
- -
topics: string[]
-
-

Accessors

-
- -
    -
  • get connected(): boolean
  • -
  • -

    Node connection indicator

    - -

    Memberof

    Node

    -
    -

    Returns boolean

-
-

Methods

-
- -
    - -
  • -

    Builds an offer

    - -

    Returns

    Built offer

    - -

    Memberof

    Node

    -
    -
    -

    Parameters

    -
      -
    • -
      offerOptions: Omit<{ [ k in "options" | "expire" | "querySchema" | "idOverride" | "supplierId" | "transferable" | "checkIn" | "request" | "payment" | "cancel" | "contract" | "signer" | "optionsSchema" | "signatureOverride"]: addQuestionMarks<baseObjectOutputType<{
          cancel: ZodArray<ZodObject<{
              penalty: ZodNumber;
              time: ZodNumber;
          }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
          checkIn: ZodNumber;
          contract: ZodObject<{
              address: ZodString;
              chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
              name: ZodString;
              version: ZodString;
          }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          options: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          payment: ZodArray<ZodObject<{
              asset: ZodString;
              id: ZodString;
              price: ZodString;
          }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          signatureOverride: ZodOptional<ZodString>;
          signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
          supplierId: ZodString;
          transferable: ZodOptional<ZodDefault<ZodBoolean>>;
      }>, requiredKeys<baseObjectOutputType<{
          cancel: ZodArray<ZodObject<{
              penalty: ZodNumber;
              time: ZodNumber;
          }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
          checkIn: ZodNumber;
          contract: ZodObject<{
              address: ZodString;
              chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
              name: ZodString;
              version: ZodString;
          }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          options: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          payment: ZodArray<ZodObject<{
              asset: ZodString;
              id: ZodString;
              price: ZodString;
          }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          signatureOverride: ZodOptional<ZodString>;
          signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
          supplierId: ZodString;
          transferable: ZodOptional<ZodDefault<ZodBoolean>>;
      }>>>[k] }, "querySchema" | "supplierId" | "contract" | "signer" | "optionsSchema">
      -

      Offer creation options

      -
    -

    Returns Promise<{ [ k in "options" | "id" | "expire" | "nonce" | "request" | "payment" | "cancel" | "payload" | "signature"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...)>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...)>>>[k] }>

-
- -
    - -
  • -

    Disables the node

    - -

    Memberof

    Node

    -
    -

    Returns void

-
- -
    - -
  • -

    Enables the node. When enabled the node starts listening to all configured topics

    - -

    Memberof

    Node

    -
    -

    Returns void

-
- -
    - -
  • -

    Handles requests

    - -

    Memberof

    Node

    -
    -
    -

    Parameters

    -
      -
    • -
      event: CustomEvent<RequestEvent<CustomRequestQuery>>
      -

      Request event

      -
    -

    Returns void

-
- -
    - -
  • -

    Starts the node

    - -

    Returns

    -

    Memberof

    Node

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Stops the node

    - -

    Returns

    -

    Memberof

    Node

    -
    -

    Returns Promise<void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/classes/Queue.html b/typedoc/classes/Queue.html deleted file mode 100644 index 5c57bd48..00000000 --- a/typedoc/classes/Queue.html +++ /dev/null @@ -1,433 +0,0 @@ -Queue | @windingtree/sdk
-
- -
-
- -
-
- -

Class Queue

-
-

Queue manager

-
-
-

Hierarchy

-
-
-
-
- -
-
-

Constructors

-
- -
    - -
  • -

    Creates Queue instance

    -
    -
    -

    Parameters

    -
      -
    • -
      options: {
          concurrentJobsNumber: undefined | number;
          hashKey: undefined | string;
          heartbeat: undefined | number;
          storage: Storage;
      }
      -

      Queue initialization options

      -
      -
        -
      • -
        concurrentJobsNumber: undefined | number
      • -
      • -
        hashKey: undefined | string
      • -
      • -
        heartbeat: undefined | number
      • -
      • -
        storage: Storage
    -

    Returns Queue

-
-

Properties

-
- -
concurrentJobsNumber: number
-
- -
hashKey: string
-
- -
heartbeat: number
-
- -
heartbeatInterval?: Timeout
-
- -
jobHandlers: Map<string, JobHandlerClosure>
-

Job handlers registry

-
-
- -
jobs: Set<string>
-

All jobs in queue

-
-
- -
liveJobs: Set<string>
-

Jobs in operation at the moment

-
-
- -
processing: boolean
-

Queue processing status

-
-
- -
storage: Storage
-
-

Methods

-
- -
    - -
  • -

    Executes a job

    - -

    Returns

    -
    -

    Parameters

    -
      -
    • -
      job: {
          data?: any;
          id: string;
          name: string;
          options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
          state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
      }
      -

      Job to start

      -
      -
        -
      • -
        Optional data?: any
      • -
      • -
        id: string
      • -
      • -
        name: string
      • -
      • -
        options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }
      • -
      • -
        state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Starts queue

    - -

    Returns

    -

    Returns Promise<void>

-
- -
    - -
  • -

    Picks a certain amount of jobs to run

    - -

    Returns

    -

    Returns Promise<{
        data?: any;
        id: string;
        name: string;
        options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
        state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
    }[]>

-
- -
    - -
  • -

    Runs queue iteration

    - -

    Returns

    -

    Returns Promise<void>

-
- -
    - -
  • -

    Synchronize queue state with storage

    - -

    Returns

    -

    Returns Promise<void>

-
- -
    - -
  • -

    Updates job state

    - -

    Returns

    Updated job

    -
    -
    -

    Parameters

    -
      -
    • -
      job: {
          data?: any;
          id: string;
          name: string;
          options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
          state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
      }
      -

      Job to update

      -
      -
        -
      • -
        Optional data?: any
      • -
      • -
        id: string
      • -
      • -
        name: string
      • -
      • -
        options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }
      • -
      • -
        state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }
    • -
    • -
      state: Partial<{
          attempts: number;
          errors: {
              error: string;
              time: number;
          }[];
          scheduled?: number;
          status: JobStatuses;
      }>
      -

      New job state parameters

      -
    -

    Returns Promise<{
        data?: any;
        id: string;
        name: string;
        options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
        state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
    }>

-
- -
    - -
  • -

    Adds job

    - -

    Returns

    Added job

    - -

    Example

    queue.addJob('someJob', data, {
    expire: 168001626,
    every: 5000,
    }); -
    -
    -
    -

    Type Parameters

    -
      -
    • -

      JobDataType = any

    -
    -

    Parameters

    -
      -
    • -
      name: string
      -

      Job name

      -
    • -
    • -
      data: JobDataType
      -

      Job data

      -
    • -
    • -
      Optional options: Partial<{
          attempts: number;
          attemptsDelay: number;
          every?: number;
          expire?: number;
      }>
      -

      Job options, optional

      -
    • -
    • -
      dataSchema: ZodType<JobDataType, ZodTypeDef, JobDataType> = ...
      -

      Job data validation schema

      -
    -

    Returns {
        data?: any;
        id: string;
        name: string;
        options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
        state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
    }

    -
      -
    • -
      Optional data?: any
    • -
    • -
      id: string
    • -
    • -
      name: string
    • -
    • -
      options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }
    • -
    • -
      state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }
-
- -
-
- -
    - -
  • -

    Cancels and deletes a job by Id

    - -

    Returns

    -
    -

    Parameters

    -
      -
    • -
      id: string
      -

      Job id

      -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Removes handler from the registry

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -

      Job name

      -
    -

    Returns void

-
- -
    - -
  • -

    Gets gob from storage by Id

    - -

    Returns

    -
    -

    Parameters

    -
      -
    • -
      id: string
      -

      Job id

      -
    -

    Returns Promise<{
        data?: any;
        id: string;
        name: string;
        options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
        state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
    }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/classes/storage.Storage.html b/typedoc/classes/storage.Storage.html deleted file mode 100644 index 6c7ed32f..00000000 --- a/typedoc/classes/storage.Storage.html +++ /dev/null @@ -1,157 +0,0 @@ -Storage | @windingtree/sdk
-
- -
-
- -
-
- -

Class StorageAbstract

-
-

Key-value database abstraction layer interface

-
-
-

Hierarchy

-
-
-
-
- -
-
-

Constructors

-
-
-

Methods

-
-
-

Constructors

-
- -
-
-

Methods

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns Promise<boolean>

-
- -
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      CustomValueType = unknown

    -

    Returns IterableIterator<[string, CustomValueType]>

-
- -
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      CustomValueType = unknown

    -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns Promise<undefined | CustomValueType>

-
- -
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      CustomValueType = unknown

    -
    -

    Parameters

    -
      -
    • -
      key: string
    • -
    • -
      value: CustomValueType
    -

    Returns Promise<void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/classes/storage.localStorage.LocalStorage.html b/typedoc/classes/storage.localStorage.LocalStorage.html deleted file mode 100644 index 6f47e2e4..00000000 --- a/typedoc/classes/storage.localStorage.LocalStorage.html +++ /dev/null @@ -1,257 +0,0 @@ -LocalStorage | @windingtree/sdk
-
- -
-
- -
- -
-

In-memory key-value storage implementation

-
-
-

Hierarchy

-
-
-
-
- -
-
-

Constructors

-
-
-

Properties

-
db -
-
-

Methods

-
-
-

Constructors

-
- -
    - -
  • -

    Creates an instance of LocalStorage.

    - -

    Memberof

    LocalStorage

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional options: {
          session: boolean;
      }
      -
        -
      • -
        session: boolean
    -

    Returns LocalStorage

-
-

Properties

-
- -
-
-

Methods

-
- -
    - -
  • -

    Deletes the key

    - -

    Returns

    -

    Memberof

    LocalStorage

    -
    -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns Promise<boolean>

-
- -
    - -
  • -

    Deserializes a value

    - -

    Returns

    -

    Memberof

    LocalStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -
    -

    Parameters

    -
      -
    • -
      value: string
    -

    Returns ValueType

-
- -
    - -
  • -

    Returns the storage entries iterator

    - -

    Returns

    -

    Memberof

    LocalStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -

    Returns IterableIterator<[string, ValueType]>

-
- -
    - -
  • -

    Gets a key from the storage

    - -

    Returns

    -

    Memberof

    LocalStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns Promise<undefined | ValueType>

-
- -
    - -
  • -

    Serializes a value

    - -

    Returns

    -

    Memberof

    LocalStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -
    -

    Parameters

    -
      -
    • -
      value: ValueType
    -

    Returns string

-
- -
    - -
  • -

    Sets the key to the storage

    - -

    Memberof

    LocalStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -
    -

    Parameters

    -
      -
    • -
      key: string
    • -
    • -
      value: ValueType
    -

    Returns Promise<void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/classes/storage.memoryStorage.MemoryStorage.html b/typedoc/classes/storage.memoryStorage.MemoryStorage.html deleted file mode 100644 index 04070617..00000000 --- a/typedoc/classes/storage.memoryStorage.MemoryStorage.html +++ /dev/null @@ -1,209 +0,0 @@ -MemoryStorage | @windingtree/sdk
-
- -
-
- -
- -
-

In-memory key-value storage implementation

-
-
-

Hierarchy

-
-
-
-
- -
-
-

Constructors

-
-
-

Properties

-
db -
-
-

Methods

-
-
-

Constructors

-
- -
    - -
  • -

    Creates an instance of MemoryStorage.

    - -

    Memberof

    MemoryStorage

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional options: {
          entries?: [string, any][];
      }
      -
        -
      • -
        Optional entries?: [string, any][]
    -

    Returns MemoryStorage

-
-

Properties

-
- -
db: Map<string, unknown>
-

Map as in-memory key-value storage

-
-
-

Methods

-
- -
    - -
  • -

    Deletes the key

    - -

    Returns

    -

    Memberof

    MemoryStorage

    -
    -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns Promise<boolean>

-
- -
    - -
  • -

    Returns the storage entries iterator

    - -

    Returns

    -

    Memberof

    MemoryStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -

    Returns IterableIterator<[string, ValueType]>

-
- -
    - -
  • -

    Gets the key from the storage

    - -

    Returns

    -

    Memberof

    MemoryStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns Promise<ValueType>

-
- -
    - -
  • -

    Sets the key to the storage

    - -

    Memberof

    MemoryStorage

    -
    -
    -

    Type Parameters

    -
      -
    • -

      ValueType

    -
    -

    Parameters

    -
      -
    • -
      key: string
    • -
    • -
      value: ValueType
    -

    Returns Promise<void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/enums/JobStatuses.html b/typedoc/enums/JobStatuses.html deleted file mode 100644 index dc2177ed..00000000 --- a/typedoc/enums/JobStatuses.html +++ /dev/null @@ -1,113 +0,0 @@ -JobStatuses | @windingtree/sdk
-
- -
-
- -
-
- -

Enumeration JobStatuses

-
-

Allowed job statuses

-
-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
CANCELLED: 3
-
- -
DONE: 2
-
- -
ERRORED: 4
-
- -
EXPIRED: 6
-
- -
FAILED: 5
-
- -
PENDING: 0
-
- -
STARTED: 1
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/buildOffer.html b/typedoc/functions/buildOffer.html deleted file mode 100644 index 757154c7..00000000 --- a/typedoc/functions/buildOffer.html +++ /dev/null @@ -1,139 +0,0 @@ -buildOffer | @windingtree/sdk
-
- -
-
- -
-
- -

Function buildOffer

-
-
    - -
  • -

    Builds an offer

    - -

    Returns

    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -
    -

    Parameters

    -
      -
    • -
      offerOptions: { [ k in "options" | "expire" | "querySchema" | "idOverride" | "supplierId" | "transferable" | "checkIn" | "request" | "payment" | "cancel" | "contract" | "signer" | "optionsSchema" | "signatureOverride"]: addQuestionMarks<baseObjectOutputType<{
          cancel: ZodArray<ZodObject<{
              penalty: ZodNumber;
              time: ZodNumber;
          }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
          checkIn: ZodNumber;
          contract: ZodObject<{
              address: ZodString;
              chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
              name: ZodString;
              version: ZodString;
          }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          options: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          payment: ZodArray<ZodObject<{
              asset: ZodString;
              id: ZodString;
              price: ZodString;
          }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          signatureOverride: ZodOptional<ZodString>;
          signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
          supplierId: ZodString;
          transferable: ZodOptional<ZodDefault<ZodBoolean>>;
      }>, requiredKeys<baseObjectOutputType<{
          cancel: ZodArray<ZodObject<{
              penalty: ZodNumber;
              time: ZodNumber;
          }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
          checkIn: ZodNumber;
          contract: ZodObject<{
              address: ZodString;
              chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
              name: ZodString;
              version: ZodString;
          }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          options: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          payment: ZodArray<ZodObject<{
              asset: ZodString;
              id: ZodString;
              price: ZodString;
          }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
          signatureOverride: ZodOptional<ZodString>;
          signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
          supplierId: ZodString;
          transferable: ZodOptional<ZodDefault<ZodBoolean>>;
      }>>>[k] }
    -

    Returns Promise<{ [ k in "options" | "id" | "expire" | "nonce" | "request" | "payment" | "cancel" | "payload" | "signature"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...)>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...)>>>[k] }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/buildRequest.html b/typedoc/functions/buildRequest.html deleted file mode 100644 index ee415379..00000000 --- a/typedoc/functions/buildRequest.html +++ /dev/null @@ -1,137 +0,0 @@ -buildRequest | @windingtree/sdk
-
- -
-
- -
-
- -

Function buildRequest

-
-
    - -
  • -

    Builds a request

    - -

    Returns

    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    -
    -

    Parameters

    -
      -
    • -
      requestOptions: { [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          nonce: ZodNumber;
          query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          topic: ZodString;
      }>, requiredKeys<baseObjectOutputType<{
          expire: ZodUnion<[ZodString, ZodNumber]>;
          idOverride: ZodOptional<ZodString>;
          nonce: ZodNumber;
          query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
          topic: ZodString;
      }>>>[k] }
    -

    Returns Promise<{ [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; })>>>[k] }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createBuildOfferOptions.html b/typedoc/functions/createBuildOfferOptions.html deleted file mode 100644 index a73889fd..00000000 --- a/typedoc/functions/createBuildOfferOptions.html +++ /dev/null @@ -1,140 +0,0 @@ -createBuildOfferOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Function createBuildOfferOptions

-
-
    - -
  • -

    Creates a schema for buildOffer method options

    -
    -
    -

    Type Parameters

    -
      -
    • -

      TQuery extends ZodType<any, any, any, TQuery>

    • -
    • -

      TOfferOptions extends ZodType<any, any, any, TOfferOptions>

    -
    -

    Parameters

    -
      -
    • -
      querySchema: TQuery
    • -
    • -
      offerOptionsSchema: TOfferOptions
    -

    Returns ZodObject<{
        cancel: ZodArray<ZodObject<{
            penalty: ZodNumber;
            time: ZodNumber;
        }, "strict", ZodTypeAny, {
            penalty: number;
            time: number;
        }, {
            penalty: number;
            time: number;
        }>, "many">;
        checkIn: ZodNumber;
        contract: ZodObject<{
            address: ZodString;
            chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
            name: ZodString;
            version: ZodString;
        }, "strict", ZodTypeAny, {
            address: string;
            chainId: string | number | bigint;
            name: string;
            version: string;
        }, {
            address: string;
            chainId: string | number | bigint;
            name: string;
            version: string;
        }>;
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        options: TOfferOptions;
        optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        payment: ZodArray<ZodObject<{
            asset: ZodString;
            id: ZodString;
            price: ZodString;
        }, "strict", ZodTypeAny, {
            asset: string;
            id: string;
            price: string;
        }, {
            asset: string;
            id: string;
            price: string;
        }>, "many">;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        request: ZodObject<{
            expire: ZodNumber;
            id: ZodString;
            nonce: ZodNumber;
            query: TQuery;
            topic: ZodString;
        }, "strict", ZodTypeAny, { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; })>>>[k] }, { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: baseObjectInputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; })>[k] }>;
        signatureOverride: ZodOptional<ZodString>;
        signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
        supplierId: ZodString;
        transferable: ZodOptional<ZodDefault<ZodBoolean>>;
    }, "strict", ZodTypeAny, { [ k in "options" | "expire" | "querySchema" | "idOverride" | "supplierId" | "transferable" | "checkIn" | "request" | "payment" | "cancel" | "contract" | "signer" | "optionsSchema" | "signatureOverride"]: addQuestionMarks<baseObjectOutputType<{
        cancel: ZodArray<ZodObject<{
            penalty: ZodNumber;
            time: ZodNumber;
        }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
        checkIn: ZodNumber;
        contract: ZodObject<{
            address: ZodString;
            chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
            name: ZodString;
            version: ZodString;
        }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        options: TOfferOptions;
        optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        payment: ZodArray<ZodObject<{
            asset: ZodString;
            id: ZodString;
            price: ZodString;
        }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>]: baseObjectInputType<...>[k]; })>;
        signatureOverride: ZodOptional<ZodString>;
        signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
        supplierId: ZodString;
        transferable: ZodOptional<ZodDefault<ZodBoolean>>;
    }>, requiredKeys<baseObjectOutputType<{
        cancel: ZodArray<ZodObject<{
            penalty: ZodNumber;
            time: ZodNumber;
        }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
        checkIn: ZodNumber;
        contract: ZodObject<{
            address: ZodString;
            chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
            name: ZodString;
            version: ZodString;
        }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        options: TOfferOptions;
        optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        payment: ZodArray<ZodObject<{
            asset: ZodString;
            id: ZodString;
            price: ZodString;
        }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>]: baseObjectInputType<...>[k]; })>;
        signatureOverride: ZodOptional<ZodString>;
        signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
        supplierId: ZodString;
        transferable: ZodOptional<ZodDefault<ZodBoolean>>;
    }>>>[k] }, { [ k in "options" | "expire" | "querySchema" | "idOverride" | "supplierId" | "transferable" | "checkIn" | "request" | "payment" | "cancel" | "contract" | "signer" | "optionsSchema" | "signatureOverride"]: baseObjectInputType<{
        cancel: ZodArray<ZodObject<{
            penalty: ZodNumber;
            time: ZodNumber;
        }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
        checkIn: ZodNumber;
        contract: ZodObject<{
            address: ZodString;
            chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
            name: ZodString;
            version: ZodString;
        }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        options: TOfferOptions;
        optionsSchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        payment: ZodArray<ZodObject<{
            asset: ZodString;
            id: ZodString;
            price: ZodString;
        }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>]: baseObjectInputType<...>[k]; })>;
        signatureOverride: ZodOptional<ZodString>;
        signer: ZodOptional<ZodType<AbstractSigner<null | Provider>, ZodTypeDef, AbstractSigner<null | Provider>>>;
        supplierId: ZodString;
        transferable: ZodOptional<ZodDefault<ZodBoolean>>;
    }>[k] }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createBuildRequestOptions.html b/typedoc/functions/createBuildRequestOptions.html deleted file mode 100644 index d4490bf0..00000000 --- a/typedoc/functions/createBuildRequestOptions.html +++ /dev/null @@ -1,137 +0,0 @@ -createBuildRequestOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Function createBuildRequestOptions

-
-
    - -
  • -

    Creates schema for buildRequest method options

    - -

    Returns

    -
    -

    Type Parameters

    -
      -
    • -

      T extends ZodType<any, any, any, T>

    -
    -

    Parameters

    -
      -
    • -
      querySchema: T
    -

    Returns ZodObject<{
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        nonce: ZodNumber;
        query: T;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        topic: ZodString;
    }, "strict", ZodTypeAny, { [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: addQuestionMarks<baseObjectOutputType<{
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        nonce: ZodNumber;
        query: T;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        topic: ZodString;
    }>, requiredKeys<baseObjectOutputType<{
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        nonce: ZodNumber;
        query: T;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        topic: ZodString;
    }>>>[k] }, { [ k in "expire" | "nonce" | "topic" | "query" | "querySchema" | "idOverride"]: baseObjectInputType<{
        expire: ZodUnion<[ZodString, ZodNumber]>;
        idOverride: ZodOptional<ZodString>;
        nonce: ZodNumber;
        query: T;
        querySchema: ZodType<ZodType<unknown, ZodTypeDef, unknown>, ZodTypeDef, ZodType<unknown, ZodTypeDef, unknown>>;
        topic: ZodString;
    }>[k] }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createClient.html b/typedoc/functions/createClient.html deleted file mode 100644 index ccde82ce..00000000 --- a/typedoc/functions/createClient.html +++ /dev/null @@ -1,185 +0,0 @@ -createClient | @windingtree/sdk
-
- -
-
- -
-
- -

Function createClient

-
-
    - -
  • -

    Creates client instance

    - -

    Returns

    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -
    -

    Parameters

    -
      -
    • -
      options: {
          contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
          libp2p?: objectOutputType<{}, ZodAny, "strip">;
          offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          provider?: AbstractProvider;
          querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          requestRegistryPrefix: string;
          serverAddress: string;
          storageInitializer: ((...args: unknown[]) => Promise<Storage>);
      }
      -

      Client initialization options

      -
      -
        -
      • -
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; }
        -

        The protocol smart contract configuration

        -
      • -
      • -
        Optional libp2p?: objectOutputType<{}, ZodAny, "strip">
        -

        libp2p configuration options

        -
      • -
      • -
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>
        -

        Offer options validation schema instance

        -
      • -
      • -
        Optional provider?: AbstractProvider
        -

        Ethers.js provider instance

        -
      • -
      • -
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>
        -

        Query validation schema instance

        -
      • -
      • -
        requestRegistryPrefix: string
        -

        Request registry keys prefix

        -
      • -
      • -
        serverAddress: string
        -

        Multiaddr of the coordination server

        -
      • -
      • -
        storageInitializer: ((...args: unknown[]) => Promise<Storage>)
        -
          -
        • -
            -
          • (...args: unknown[]): Promise<Storage>
          • -
          • -

            Storage initializer function

            -
            -
            -

            Parameters

            -
              -
            • -
              Rest ...args: unknown[]
            -

            Returns Promise<Storage>

    -

    Returns Client<CustomRequestQuery, CustomOfferOptions>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createClientOptionsSchema.html b/typedoc/functions/createClientOptionsSchema.html deleted file mode 100644 index ec14c20b..00000000 --- a/typedoc/functions/createClientOptionsSchema.html +++ /dev/null @@ -1,135 +0,0 @@ -createClientOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createClientOptionsSchema

-
-
    - -
  • -

    Creates the protocol client initialization schema

    - -

    Returns

    z.ZodType

    -
    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -

    Returns ZodObject<{
        contractConfig: ZodObject<{
            address: ZodString;
            chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
            name: ZodString;
            version: ZodString;
        }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
        libp2p: ZodOptional<ZodObject<{}, "strip", ZodAny, objectOutputType<{}, ZodAny, "strip">, objectInputType<{}, ZodAny, "strip">>>;
        offerOptionsSchema: ZodType<ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>, ZodTypeDef, ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>>;
        provider: ZodOptional<ZodType<AbstractProvider, ZodTypeDef, AbstractProvider>>;
        querySchema: ZodType<ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>, ZodTypeDef, ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>>;
        requestRegistryPrefix: ZodDefault<ZodString>;
        serverAddress: ZodString;
        storageInitializer: ZodFunction<ZodTuple<[], ZodUnknown>, ZodPromise<ZodType<Storage, ZodTypeDef, Storage>>>;
    }, "strict", ZodTypeAny, {
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
        libp2p?: objectOutputType<{}, ZodAny, "strip">;
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
        provider?: AbstractProvider;
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
        requestRegistryPrefix: string;
        serverAddress: string;
        storageInitializer: ((...args: unknown[]) => Promise<Storage>);
    }, {
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
        libp2p?: objectInputType<{}, ZodAny, "strip">;
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
        provider?: AbstractProvider;
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
        requestRegistryPrefix?: string;
        serverAddress: string;
        storageInitializer: ((...args: unknown[]) => Promise<Storage>);
    }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createJobHandler.html b/typedoc/functions/createJobHandler.html deleted file mode 100644 index c8282f50..00000000 --- a/typedoc/functions/createJobHandler.html +++ /dev/null @@ -1,167 +0,0 @@ -createJobHandler | @windingtree/sdk
-
- -
-
- -
-
- -

Function createJobHandler

-
-
    - -
  • -

    Job handler function factory

    - -

    Example

    const handler = createJobHandler<JobData, HandlerOptions>( - async ({ name, id, data }, options) => { - logger.trace(Job "${name}" #${id}...); - // ... - }, -);

    -
    -
    -

    Type Parameters

    -
      -
    • -

      OfferData = any

    • -
    • -

      HandlerOptions extends object = object

    -
    -

    Parameters

    -
      -
    • -
      handler: JobHandler<OfferData, HandlerOptions>
    -

    Returns ((options?: HandlerOptions) => ((job: { [ k in "options" | "data" | "name" | "id" | "state"]: addQuestionMarks<baseObjectOutputType<{
        data: ZodType<OfferData, ZodTypeDef, OfferData>;
        id: ZodString;
        name: ZodString;
        options: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            attemptsDelay: ZodDefault<ZodNumber>;
            every: ZodOptional<ZodNumber>;
            expire: ZodOptional<ZodNumber>;
        }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
        state: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            errors: ZodDefault<ZodArray<ZodObject<{
                error: ZodString;
                time: ZodNumber;
            }, "strip", ZodTypeAny, {
                error: string;
                time: number;
            }, {
                error: string;
                time: number;
            }>, "many">>;
            scheduled: ZodOptional<ZodNumber>;
            status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
        }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
    }>, requiredKeys<baseObjectOutputType<{
        data: ZodType<OfferData, ZodTypeDef, OfferData>;
        id: ZodString;
        name: ZodString;
        options: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            attemptsDelay: ZodDefault<ZodNumber>;
            every: ZodOptional<ZodNumber>;
            expire: ZodOptional<ZodNumber>;
        }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
        state: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            errors: ZodDefault<ZodArray<ZodObject<{
                error: ZodString;
                time: ZodNumber;
            }, "strip", ZodTypeAny, {
                error: string;
                time: number;
            }, {
                error: string;
                time: number;
            }>, "many">>;
            scheduled: ZodOptional<ZodNumber>;
            status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
        }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
    }>>>[k] }) => Promise<boolean | void>))

    -
      -
    • -
        -
      • (options?: HandlerOptions): ((job: { [ k in "options" | "data" | "name" | "id" | "state"]: addQuestionMarks<baseObjectOutputType<{
            data: ZodType<OfferData, ZodTypeDef, OfferData>;
            id: ZodString;
            name: ZodString;
            options: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                attemptsDelay: ZodDefault<ZodNumber>;
                every: ZodOptional<ZodNumber>;
                expire: ZodOptional<ZodNumber>;
            }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
            state: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                errors: ZodDefault<ZodArray<ZodObject<{
                    error: ZodString;
                    time: ZodNumber;
                }, "strip", ZodTypeAny, {
                    error: string;
                    time: number;
                }, {
                    error: string;
                    time: number;
                }>, "many">>;
                scheduled: ZodOptional<ZodNumber>;
                status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
            }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
        }>, requiredKeys<baseObjectOutputType<{
            data: ZodType<OfferData, ZodTypeDef, OfferData>;
            id: ZodString;
            name: ZodString;
            options: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                attemptsDelay: ZodDefault<ZodNumber>;
                every: ZodOptional<ZodNumber>;
                expire: ZodOptional<ZodNumber>;
            }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
            state: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                errors: ZodDefault<ZodArray<ZodObject<{
                    error: ZodString;
                    time: ZodNumber;
                }, "strip", ZodTypeAny, {
                    error: string;
                    time: number;
                }, {
                    error: string;
                    time: number;
                }>, "many">>;
                scheduled: ZodOptional<ZodNumber>;
                status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
            }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
        }>>>[k] }) => Promise<boolean | void>)
      • -
      • -
        -

        Parameters

        -
          -
        • -
          Optional options: HandlerOptions
        -

        Returns ((job: { [ k in "options" | "data" | "name" | "id" | "state"]: addQuestionMarks<baseObjectOutputType<{
            data: ZodType<OfferData, ZodTypeDef, OfferData>;
            id: ZodString;
            name: ZodString;
            options: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                attemptsDelay: ZodDefault<ZodNumber>;
                every: ZodOptional<ZodNumber>;
                expire: ZodOptional<ZodNumber>;
            }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
            state: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                errors: ZodDefault<ZodArray<ZodObject<{
                    error: ZodString;
                    time: ZodNumber;
                }, "strip", ZodTypeAny, {
                    error: string;
                    time: number;
                }, {
                    error: string;
                    time: number;
                }>, "many">>;
                scheduled: ZodOptional<ZodNumber>;
                status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
            }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
        }>, requiredKeys<baseObjectOutputType<{
            data: ZodType<OfferData, ZodTypeDef, OfferData>;
            id: ZodString;
            name: ZodString;
            options: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                attemptsDelay: ZodDefault<ZodNumber>;
                every: ZodOptional<ZodNumber>;
                expire: ZodOptional<ZodNumber>;
            }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
            state: ZodObject<{
                attempts: ZodDefault<ZodNumber>;
                errors: ZodDefault<ZodArray<ZodObject<{
                    error: ZodString;
                    time: ZodNumber;
                }, "strip", ZodTypeAny, {
                    error: string;
                    time: number;
                }, {
                    error: string;
                    time: number;
                }>, "many">>;
                scheduled: ZodOptional<ZodNumber>;
                status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
            }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
        }>>>[k] }) => Promise<boolean | void>)

        -
          -
        • -
            -
          • (job: { [ k in "options" | "data" | "name" | "id" | "state"]: addQuestionMarks<baseObjectOutputType<{
                data: ZodType<OfferData, ZodTypeDef, OfferData>;
                id: ZodString;
                name: ZodString;
                options: ZodObject<{
                    attempts: ZodDefault<ZodNumber>;
                    attemptsDelay: ZodDefault<ZodNumber>;
                    every: ZodOptional<ZodNumber>;
                    expire: ZodOptional<ZodNumber>;
                }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
                state: ZodObject<{
                    attempts: ZodDefault<ZodNumber>;
                    errors: ZodDefault<ZodArray<ZodObject<{
                        error: ZodString;
                        time: ZodNumber;
                    }, "strip", ZodTypeAny, {
                        error: string;
                        time: number;
                    }, {
                        error: string;
                        time: number;
                    }>, "many">>;
                    scheduled: ZodOptional<ZodNumber>;
                    status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
                }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
            }>, requiredKeys<baseObjectOutputType<{
                data: ZodType<OfferData, ZodTypeDef, OfferData>;
                id: ZodString;
                name: ZodString;
                options: ZodObject<{
                    attempts: ZodDefault<ZodNumber>;
                    attemptsDelay: ZodDefault<ZodNumber>;
                    every: ZodOptional<ZodNumber>;
                    expire: ZodOptional<ZodNumber>;
                }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
                state: ZodObject<{
                    attempts: ZodDefault<ZodNumber>;
                    errors: ZodDefault<ZodArray<ZodObject<{
                        error: ZodString;
                        time: ZodNumber;
                    }, "strip", ZodTypeAny, {
                        error: string;
                        time: number;
                    }, {
                        error: string;
                        time: number;
                    }>, "many">>;
                    scheduled: ZodOptional<ZodNumber>;
                    status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
                }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
            }>>>[k] }): Promise<boolean | void>
          • -
          • -
            -

            Parameters

            -
              -
            • -
              job: { [ k in "options" | "data" | "name" | "id" | "state"]: addQuestionMarks<baseObjectOutputType<{
                  data: ZodType<OfferData, ZodTypeDef, OfferData>;
                  id: ZodString;
                  name: ZodString;
                  options: ZodObject<{
                      attempts: ZodDefault<ZodNumber>;
                      attemptsDelay: ZodDefault<ZodNumber>;
                      every: ZodOptional<ZodNumber>;
                      expire: ZodOptional<ZodNumber>;
                  }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
                  state: ZodObject<{
                      attempts: ZodDefault<ZodNumber>;
                      errors: ZodDefault<ZodArray<ZodObject<{
                          error: ZodString;
                          time: ZodNumber;
                      }, "strip", ZodTypeAny, {
                          error: string;
                          time: number;
                      }, {
                          error: string;
                          time: number;
                      }>, "many">>;
                      scheduled: ZodOptional<ZodNumber>;
                      status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
                  }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
              }>, requiredKeys<baseObjectOutputType<{
                  data: ZodType<OfferData, ZodTypeDef, OfferData>;
                  id: ZodString;
                  name: ZodString;
                  options: ZodObject<{
                      attempts: ZodDefault<ZodNumber>;
                      attemptsDelay: ZodDefault<ZodNumber>;
                      every: ZodOptional<ZodNumber>;
                      expire: ZodOptional<ZodNumber>;
                  }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
                  state: ZodObject<{
                      attempts: ZodDefault<ZodNumber>;
                      errors: ZodDefault<ZodArray<ZodObject<{
                          error: ZodString;
                          time: ZodNumber;
                      }, "strip", ZodTypeAny, {
                          error: string;
                          time: number;
                      }, {
                          error: string;
                          time: number;
                      }>, "many">>;
                      scheduled: ZodOptional<ZodNumber>;
                      status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
                  }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
              }>>>[k] }
            -

            Returns Promise<boolean | void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createJobSchema.html b/typedoc/functions/createJobSchema.html deleted file mode 100644 index c9d53f00..00000000 --- a/typedoc/functions/createJobSchema.html +++ /dev/null @@ -1,137 +0,0 @@ -createJobSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createJobSchema

-
-
    - -
  • -

    Creates job schema

    - -

    Returns

    -
    -

    Type Parameters

    -
      -
    • -

      JobDataType = unknown

    -
    -

    Parameters

    -
      -
    • -
      dataSchema: ZodType<JobDataType, ZodTypeDef, JobDataType>
    -

    Returns ZodObject<{
        data: ZodType<JobDataType, ZodTypeDef, JobDataType>;
        id: ZodString;
        name: ZodString;
        options: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            attemptsDelay: ZodDefault<ZodNumber>;
            every: ZodOptional<ZodNumber>;
            expire: ZodOptional<ZodNumber>;
        }, "strict", ZodTypeAny, {
            attempts: number;
            attemptsDelay: number;
            every?: number;
            expire?: number;
        }, {
            attempts?: number;
            attemptsDelay?: number;
            every?: number;
            expire?: number;
        }>;
        state: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            errors: ZodDefault<ZodArray<ZodObject<{
                error: ZodString;
                time: ZodNumber;
            }, "strip", ZodTypeAny, {
                error: string;
                time: number;
            }, {
                error: string;
                time: number;
            }>, "many">>;
            scheduled: ZodOptional<ZodNumber>;
            status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
        }, "strict", ZodTypeAny, {
            attempts: number;
            errors: {
                error: string;
                time: number;
            }[];
            scheduled?: number;
            status: JobStatuses;
        }, {
            attempts?: number;
            errors?: {
                error: string;
                time: number;
            }[];
            scheduled?: number;
            status?: PENDING | STARTED | DONE | CANCELLED | ERRORED | FAILED | EXPIRED;
        }>;
    }, "strict", ZodTypeAny, { [ k in "options" | "data" | "name" | "id" | "state"]: addQuestionMarks<baseObjectOutputType<{
        data: ZodType<JobDataType, ZodTypeDef, JobDataType>;
        id: ZodString;
        name: ZodString;
        options: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            attemptsDelay: ZodDefault<ZodNumber>;
            every: ZodOptional<ZodNumber>;
            expire: ZodOptional<ZodNumber>;
        }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
        state: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            errors: ZodDefault<ZodArray<ZodObject<{
                error: ZodString;
                time: ZodNumber;
            }, "strip", ZodTypeAny, {
                error: string;
                time: number;
            }, {
                error: string;
                time: number;
            }>, "many">>;
            scheduled: ZodOptional<ZodNumber>;
            status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
        }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
    }>, requiredKeys<baseObjectOutputType<{
        data: ZodType<JobDataType, ZodTypeDef, JobDataType>;
        id: ZodString;
        name: ZodString;
        options: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            attemptsDelay: ZodDefault<ZodNumber>;
            every: ZodOptional<ZodNumber>;
            expire: ZodOptional<ZodNumber>;
        }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
        state: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            errors: ZodDefault<ZodArray<ZodObject<{
                error: ZodString;
                time: ZodNumber;
            }, "strip", ZodTypeAny, {
                error: string;
                time: number;
            }, {
                error: string;
                time: number;
            }>, "many">>;
            scheduled: ZodOptional<ZodNumber>;
            status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
        }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
    }>>>[k] }, { [ k in "options" | "data" | "name" | "id" | "state"]: baseObjectInputType<{
        data: ZodType<JobDataType, ZodTypeDef, JobDataType>;
        id: ZodString;
        name: ZodString;
        options: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            attemptsDelay: ZodDefault<ZodNumber>;
            every: ZodOptional<ZodNumber>;
            expire: ZodOptional<ZodNumber>;
        }, "strict", ZodTypeAny, ({ attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; }), ({ attempts?: number | undefined; attemptsDelay?: number | undefined; every?: number | undefined; expire?: number | undefined; })>;
        state: ZodObject<{
            attempts: ZodDefault<ZodNumber>;
            errors: ZodDefault<ZodArray<ZodObject<{
                error: ZodString;
                time: ZodNumber;
            }, "strip", ZodTypeAny, {
                error: string;
                time: number;
            }, {
                error: string;
                time: number;
            }>, "many">>;
            scheduled: ZodOptional<ZodNumber>;
            status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
        }, "strict", ZodTypeAny, ({ status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; }), ({ status?: JobStatuses | undefined; attempts?: number | undefined; scheduled?: number | undefined; errors?: { error: string; time: number; }[] | undefined; })>;
    }>[k] }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createNode.html b/typedoc/functions/createNode.html deleted file mode 100644 index f0f72c87..00000000 --- a/typedoc/functions/createNode.html +++ /dev/null @@ -1,183 +0,0 @@ -createNode | @windingtree/sdk
-
- -
-
- -
-
- -

Function createNode

-
-
    - -
  • -

    Creates the protocol node

    - -

    Returns

    Node instance

    -
    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -
    -

    Parameters

    -
      -
    • -
      options: {
          contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
          libp2p?: objectOutputType<{}, ZodAny, "strip">;
          noncePeriod: number;
          offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
          provider?: AbstractProvider;
          querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
          serverAddress: string;
          signerSeedPhrase: string;
          supplierId: string;
          topics: string[];
      }
      -

      Node instance creation options

      -
      -
        -
      • -
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; }
        -

        The protocol smart contract configuration

        -
      • -
      • -
        Optional libp2p?: objectOutputType<{}, ZodAny, "strip">
        -

        libp2p configuration options

        -
      • -
      • -
        noncePeriod: number
        -

        Period while the node waits and accepting requests with the same Id

        -
      • -
      • -
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>
        -

        Offer options validation schema instance

        -
      • -
      • -
        Optional provider?: AbstractProvider
        -

        Ethers.js provider instance

        -
      • -
      • -
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>
        -

        Query validation schema instance

        -
      • -
      • -
        serverAddress: string
        -

        Multiaddr of the coordination server

        -
      • -
      • -
        signerSeedPhrase: string
        -

        Seed phrase of the node signer wallet

        -
      • -
      • -
        supplierId: string
        -

        Unique supplier Id

        -
      • -
      • -
        topics: string[]
        -

        Subscription topics of node

        -
    -

    Returns Node<CustomRequestQuery, CustomOfferOptions>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createNodeOptionsSchema.html b/typedoc/functions/createNodeOptionsSchema.html deleted file mode 100644 index ec50d7c1..00000000 --- a/typedoc/functions/createNodeOptionsSchema.html +++ /dev/null @@ -1,135 +0,0 @@ -createNodeOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createNodeOptionsSchema

-
-
    - -
  • -

    Creates the protocol node initialization options schema

    - -

    Returns

    z.ZodType

    -
    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -

    Returns ZodObject<{
        contractConfig: ZodObject<{
            address: ZodString;
            chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
            name: ZodString;
            version: ZodString;
        }, "strict", ZodTypeAny, ({ name: string; version: string; chainId: string | number | bigint; address: string; }), ({ name: string; version: string; chainId: string | number | bigint; address: string; })>;
        libp2p: ZodOptional<ZodObject<{}, "strip", ZodAny, objectOutputType<{}, ZodAny, "strip">, objectInputType<{}, ZodAny, "strip">>>;
        noncePeriod: ZodDefault<ZodNumber>;
        offerOptionsSchema: ZodType<ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>, ZodTypeDef, ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>>;
        provider: ZodOptional<ZodType<AbstractProvider, ZodTypeDef, AbstractProvider>>;
        querySchema: ZodType<ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>, ZodTypeDef, ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>>;
        serverAddress: ZodString;
        signerSeedPhrase: ZodString;
        supplierId: ZodString;
        topics: ZodArray<ZodString, "many">;
    }, "strict", ZodTypeAny, {
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
        libp2p?: objectOutputType<{}, ZodAny, "strip">;
        noncePeriod: number;
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
        provider?: AbstractProvider;
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
        serverAddress: string;
        signerSeedPhrase: string;
        supplierId: string;
        topics: string[];
    }, {
        contractConfig: { name: string; version: string; chainId: string | number | bigint; address: string; };
        libp2p?: objectInputType<{}, ZodAny, "strip">;
        noncePeriod?: number;
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
        provider?: AbstractProvider;
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
        serverAddress: string;
        signerSeedPhrase: string;
        supplierId: string;
        topics: string[];
    }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createOfferDataSchema.html b/typedoc/functions/createOfferDataSchema.html deleted file mode 100644 index 9931678a..00000000 --- a/typedoc/functions/createOfferDataSchema.html +++ /dev/null @@ -1,140 +0,0 @@ -createOfferDataSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createOfferDataSchema

-
-
    - -
  • -

    Creates a final offer data schema

    -
    -
    -

    Type Parameters

    -
      -
    • -

      TQuery extends ZodType<any, any, any, TQuery>

    • -
    • -

      TOfferOptions extends ZodType<any, any, any, TOfferOptions>

    -
    -

    Parameters

    -
      -
    • -
      querySchema: TQuery
    • -
    • -
      offerOptionsSchema: TOfferOptions
    -

    Returns ZodObject<{
        cancel: ZodArray<ZodObject<{
            penalty: ZodNumber;
            time: ZodNumber;
        }, "strict", ZodTypeAny, ({ time: number; penalty: number; }), ({ time: number; penalty: number; })>, "many">;
        expire: ZodNumber;
        id: ZodString;
        nonce: ZodNumber;
        options: TOfferOptions;
        payload: ZodObject<{
            cancelHash: ZodString;
            chainId: ZodNumber;
            checkIn: ZodNumber;
            optionsHash: ZodString;
            paymentHash: ZodString;
            requestHash: ZodString;
            supplierId: ZodString;
            transferable: ZodDefault<ZodBoolean>;
        }, "strict", ZodTypeAny, ({ chainId: number; supplierId: string; requestHash: string; optionsHash: string; paymentHash: string; cancelHash: string; transferable: boolean; checkIn: number; }), ({ chainId: number; supplierId: string; requestHash: string; optionsHash: string; paymentHash: string; cancelHash: string; checkIn: number; transferable?: boolean | undefined; })>;
        payment: ZodArray<ZodObject<{
            asset: ZodString;
            id: ZodString;
            price: ZodString;
        }, "strict", ZodTypeAny, ({ id: string; price: string; asset: string; }), ({ id: string; price: string; asset: string; })>, "many">;
        request: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }>]: baseObjectInputType<...>[k]; })>;
        signature: ZodString;
    }, "strict", ZodTypeAny, { [ k in "options" | "id" | "expire" | "nonce" | "request" | "payment" | "cancel" | "payload" | "signature"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputType<...>...)>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputType<...>...)>>>[k] }, { [ k in "options" | "id" | "expire" | "nonce" | "request" | "payment" | "cancel" | "payload" | "signature"]: baseObjectInputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: TQuery; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputType<...>...)>[k] }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createOfferOptionsSchemaOptionSchema.html b/typedoc/functions/createOfferOptionsSchemaOptionSchema.html deleted file mode 100644 index 39b46634..00000000 --- a/typedoc/functions/createOfferOptionsSchemaOptionSchema.html +++ /dev/null @@ -1,129 +0,0 @@ -createOfferOptionsSchemaOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createOfferOptionsSchemaOptionSchema

-
-
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      CustomOfferOptions extends {}

    -

    Returns ZodObject<{
        offerOptionsSchema: ZodType<ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>, ZodTypeDef, ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>>;
    }, "strip", ZodTypeAny, {
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
    }, {
        offerOptionsSchema: ZodType<CustomOfferOptions, ZodTypeDef, CustomOfferOptions>;
    }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createQuerySchemaOptionSchema.html b/typedoc/functions/createQuerySchemaOptionSchema.html deleted file mode 100644 index 72767186..00000000 --- a/typedoc/functions/createQuerySchemaOptionSchema.html +++ /dev/null @@ -1,129 +0,0 @@ -createQuerySchemaOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createQuerySchemaOptionSchema

-
-
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    -

    Returns ZodObject<{
        querySchema: ZodType<ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>, ZodTypeDef, ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>>;
    }, "strip", ZodTypeAny, {
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
    }, {
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
    }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createRequestDataSchema.html b/typedoc/functions/createRequestDataSchema.html deleted file mode 100644 index 905af2b2..00000000 --- a/typedoc/functions/createRequestDataSchema.html +++ /dev/null @@ -1,137 +0,0 @@ -createRequestDataSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createRequestDataSchema

-
-
    - -
  • -

    Creates request data structure schema

    - -

    Returns

    -
    -

    Type Parameters

    -
      -
    • -

      T extends ZodType<any, any, any, T>

    -
    -

    Parameters

    -
      -
    • -
      querySchema: T
    -

    Returns ZodObject<{
        expire: ZodNumber;
        id: ZodString;
        nonce: ZodNumber;
        query: T;
        topic: ZodString;
    }, "strict", ZodTypeAny, { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: T; })>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: T; })>>>[k] }, { [ k in "id" | "expire" | "nonce" | "topic" | "query"]: baseObjectInputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: T; })>[k] }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createRequestManagerOptionsSchema.html b/typedoc/functions/createRequestManagerOptionsSchema.html deleted file mode 100644 index f6b96812..00000000 --- a/typedoc/functions/createRequestManagerOptionsSchema.html +++ /dev/null @@ -1,133 +0,0 @@ -createRequestManagerOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createRequestManagerOptionsSchema

-
-
    - -
  • -

    Creates request manager (of the protocol node) initialization options schema

    - -

    Returns

    z.ZodType

    -
    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    -

    Returns ZodObject<{
        noncePeriod: ZodDefault<ZodNumber>;
        querySchema: ZodType<ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>, ZodTypeDef, ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>>;
    }, "strict", ZodTypeAny, {
        noncePeriod: number;
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
    }, {
        noncePeriod?: number;
        querySchema: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>;
    }>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/createServer.html b/typedoc/functions/createServer.html deleted file mode 100644 index 6cad681f..00000000 --- a/typedoc/functions/createServer.html +++ /dev/null @@ -1,160 +0,0 @@ -createServer | @windingtree/sdk
-
- -
-
- -
-
- -

Function createServer

-
-
    - -
  • -

    Create an instance of the coordination server

    - -

    Returns

    -
    -

    Parameters

    -
      -
    • -
      options: {
          address?: string;
          messagesStorageInit: ((...args: unknown[]) => Promise<Storage>);
          peerKey: { id: string; privKey: string; pubKey: string; };
          port: number;
      }
      -
        -
      • -
        Optional address?: string
        -

        Optional IP address of the server, defaults to '0.0.0.0'

        -
      • -
      • -
        messagesStorageInit: ((...args: unknown[]) => Promise<Storage>)
        -
          -
        • -
            -
          • (...args: unknown[]): Promise<Storage>
          • -
          • -

            Messages storage initializer

            -
            -
            -

            Parameters

            -
              -
            • -
              Rest ...args: unknown[]
            -

            Returns Promise<Storage>

      • -
      • -
        peerKey: { id: string; privKey: string; pubKey: string; }
        -

        Peer key

        -
      • -
      • -
        port: number
        -

        Server port

        -
    -

    Returns CoordinationServer

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/storage.createStorageInitializerFactorySchema.html b/typedoc/functions/storage.createStorageInitializerFactorySchema.html deleted file mode 100644 index ae9d39d7..00000000 --- a/typedoc/functions/storage.createStorageInitializerFactorySchema.html +++ /dev/null @@ -1,75 +0,0 @@ -createStorageInitializerFactorySchema | @windingtree/sdk
-
- -
-
- -
-
- -

Function createStorageInitializerFactorySchema

-
-
    - -
  • -

    Creates a storage initializer function schema

    - -

    Returns

    -
    -

    Type Parameters

    -
      -
    • -

      InitializerOptionsSchema extends ZodType<any, any, any, InitializerOptionsSchema>

    -
    -

    Parameters

    -
      -
    • -
      initializerOptionsSchema: InitializerOptionsSchema
      -

      Initializer function options schema

      -
    -

    Returns ZodFunction<ZodTuple<[InitializerOptionsSchema], ZodUnknown>, ZodFunction<ZodTuple<[], ZodUnknown>, ZodPromise<ZodType<Storage, ZodTypeDef, Storage>>>>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/storage.localStorage.init.html b/typedoc/functions/storage.localStorage.init.html deleted file mode 100644 index c972e6f2..00000000 --- a/typedoc/functions/storage.localStorage.init.html +++ /dev/null @@ -1,74 +0,0 @@ -init | @windingtree/sdk
-
- -
-
- -
- -
-
    - -
  • -

    Local storage configuration

    -
    -
    -

    Parameters

    -
      -
    • -
      Rest ...args: [{
          session?: boolean;
      }, ...unknown[]]
    -

    Returns (() => Promise<LocalStorage>)

    -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/storage.memoryStorage.init.html b/typedoc/functions/storage.memoryStorage.init.html deleted file mode 100644 index ea78119c..00000000 --- a/typedoc/functions/storage.memoryStorage.init.html +++ /dev/null @@ -1,74 +0,0 @@ -init | @windingtree/sdk
-
- -
-
- -
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/functions/verifyOffer.html b/typedoc/functions/verifyOffer.html deleted file mode 100644 index 82c4aff3..00000000 --- a/typedoc/functions/verifyOffer.html +++ /dev/null @@ -1,151 +0,0 @@ -verifyOffer | @windingtree/sdk
-
- -
-
- -
-
- -

Function verifyOffer

-
-
    - -
  • -

    Verifies signed offer

    -
    -
    -

    Type Parameters

    -
      -
    • -

      CustomRequestQuery extends {}

    • -
    • -

      CustomOfferOptions extends {}

    -
    -

    Parameters

    -
      -
    • -
      contract: {
          address: string;
          chainId: string | number | bigint;
          name: string;
          version: string;
      }
      -
        -
      • -
        address: string
      • -
      • -
        chainId: string | number | bigint
      • -
      • -
        name: string
      • -
      • -
        version: string
    • -
    • -
      supplierAddress: string
    • -
    • -
      offer: { [ k in "options" | "id" | "expire" | "nonce" | "request" | "payment" | "cancel" | "payload" | "signature"]: addQuestionMarks<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...)>, requiredKeys<baseObjectOutputType<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...)>>>[k] }
    -

    Returns void

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/index.html b/typedoc/index.html deleted file mode 100644 index 47f59f1d..00000000 --- a/typedoc/index.html +++ /dev/null @@ -1,147 +0,0 @@ -@windingtree/sdk
-
- -
-
- -
-
-

@windingtree/sdk

-
- -

@windingtree/sdk

-
-

The WindingTree market protocol SDK

-
-

To find the documentation of the SDK please follow the https://windingtree.github.io/sdk

-
- - -

Setup

-
-
yarn
-
- - -

Testing

-
-
yarn test
-
- - -

Tests coverage

-
-
yarn coverage
-
-

After finishing of tests code coverage script, you can find reports in ./coverage/index.html

- - -

Contributing

-
-

Contribution guidelines

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/interfaces/ClientEvents.html b/typedoc/interfaces/ClientEvents.html deleted file mode 100644 index 19666185..00000000 --- a/typedoc/interfaces/ClientEvents.html +++ /dev/null @@ -1,226 +0,0 @@ -ClientEvents | @windingtree/sdk
-
- -
-
- -
-
- -

Interface ClientEvents<CustomRequestQuery, CustomOfferOptions>

-
-

Type Parameters

-
-
-

Hierarchy

-
    -
  • ClientEvents
-
-
-
- -
-
-

Properties

-
- -
connected: CustomEvent<void>
-
-

Example

client.addEventListener('connected', () => {
// ... connected
}) -
-
-
- -
disconnected: CustomEvent<void>
-
-

Example

client.addEventListener('disconnected', () => {
// ... disconnected
}) -
-
-
- -
heartbeat: CustomEvent<void>
-
-

Example

client.addEventListener('heartbeat', () => {
// ... tick
}) -
-
-
- -
request:cancel: CustomEvent<string>
-
-

Example

client.addEventListener('request:cancel', ({ details: id }) => {
// ... request cancelled
}) -
-
-
- -
request:clear: CustomEvent<void>
-
-

Example

client.addEventListener('request:clear', () => {
// ... requests are cleared
}) -
-
-
- -
request:create: CustomEvent<{ [ k in "data" | "offers" | "cancelled"]: addQuestionMarks<baseObjectOutputType<{
    cancelled: ZodDefault<ZodBoolean>;
    data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
    offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
}>, requiredKeys<baseObjectOutputType<{
    cancelled: ZodDefault<ZodBoolean>;
    data: ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>, requiredKeys<...>>]: addQuestionMarks<...>[k]; }), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<CustomRequestQuery, ZodTypeDef, CustomRequestQuery>; }>]: baseObjectInputType<...>[k]; })>;
    offers: ZodArray<ZodObject<({ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectInputType<...>]: baseObjectInputTyp...), "strict", ZodTypeAny, ({ [k in keyof addQuestionMarks<baseObjectOutputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in...), ({ [k in keyof baseObjectInputType<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; request: ZodObject<{ id: ZodString; expire: ZodNumber; nonce: ZodNumber; topic: ZodString; query: ZodType<...>; }, "strict", ZodTypeAny, { [k in keyof addQuestionMarks<...>]: addQuestionMarks<...>[k]; }, { [k in keyof baseObjectI...)>, "many">;
}>>>[k] }>
-
-

Example

client.addEventListener('request:create', () => {
// ... request created
}) -
-
-
- -
request:delete: CustomEvent<string>
-
-

Example

client.addEventListener('request:delete', ({ details: id }) => {
// ... request deleted
}) -
-
-
- -
request:expire: CustomEvent<string>
-
-

Example

client.addEventListener('request:expire', ({ details: id }) => {
// ... request expired
}) -
-
-
- -
request:offer: CustomEvent<string>
-
-

Example

client.addEventListener('request:offer', ({ details: id }) => {
// ... offer added to request ${id}
}) -
-
-
- -
request:publish: CustomEvent<string>
-
-

Example

client.addEventListener('request:publish', ({ details: id }) => {
// ... request published
}) -
-
-
- -
request:subscribe: CustomEvent<string>
-
-

Example

client.addEventListener('request:subscribe', ({ details: id }) => {
// ... request unsubscribed
}) -
-
-
- -
request:unsubscribe: CustomEvent<string>
-
-

Example

client.addEventListener('request:unsubscribe', ({ details: id }) => {
// ... request subscribed
}) -
-
-
- -
start: CustomEvent<void>
-
-

Example

client.addEventListener('start', () => {
// ... started
}) -
-
-
- -
stop: CustomEvent<void>
-
-

Example

client.addEventListener('stop', () => {
// ... stopped
}) -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/interfaces/CoordinationServerEvents.html b/typedoc/interfaces/CoordinationServerEvents.html deleted file mode 100644 index f9f69071..00000000 --- a/typedoc/interfaces/CoordinationServerEvents.html +++ /dev/null @@ -1,90 +0,0 @@ -CoordinationServerEvents | @windingtree/sdk
-
- -
-
- -
-
- -

Interface CoordinationServerEvents

-
-

Coordination server events interface

-
-
-

Hierarchy

-
    -
  • CoordinationServerEvents
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
start: CustomEvent<void>
-
-

Example

server.addEventListener('start', () => {
// ... started
}) -
-
-
- -
stop: CustomEvent<void>
-
-

Example

server.addEventListener('stop', () => {
// ... stopped
}) -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/interfaces/NodeEvents.html b/typedoc/interfaces/NodeEvents.html deleted file mode 100644 index c75b9fd1..00000000 --- a/typedoc/interfaces/NodeEvents.html +++ /dev/null @@ -1,139 +0,0 @@ -NodeEvents | @windingtree/sdk
-
- -
-
- -
-
- -

Interface NodeEvents<CustomRequestQuery>

-
-

The protocol node events interface

-
-
-

Type Parameters

-
-
-

Hierarchy

-
    -
  • NodeEvents
-
-
-
- -
-
-

Properties

-
- -
connected: CustomEvent<void>
-
-

Example

node.addEventListener('connected', () => {
// ... connected
}) -
-
-
- -
disconnected: CustomEvent<void>
-
-

Example

node.addEventListener('disconnected', () => {
// ... disconnected
}) -
-
-
- -
heartbeat: CustomEvent<void>
-
-

Example

node.addEventListener('heartbeat', () => {
// ... tick
}) -
-
-
- -
request: CustomEvent<RequestEvent<CustomRequestQuery>>
-
-

Example

node.addEventListener('request', ({ detail }) => {
// detail.topic
// detail.data
}) -
-
-
- -
start: CustomEvent<void>
-
-

Example

node.addEventListener('start', () => {
// ... started
}) -
-
-
- -
stop: CustomEvent<void>
-
-

Example

node.addEventListener('stop', () => {
// ... stopped
}) -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/interfaces/QueueEvents.html b/typedoc/interfaces/QueueEvents.html deleted file mode 100644 index 9ffb947b..00000000 --- a/typedoc/interfaces/QueueEvents.html +++ /dev/null @@ -1,145 +0,0 @@ -QueueEvents | @windingtree/sdk
-
- -
-
- -
-
- -

Interface QueueEvents

-
-

Queue events interface

-
-
-

Hierarchy

-
    -
  • QueueEvents
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
cancel: CustomEvent<{
    data?: any;
    id: string;
    name: string;
    options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
    state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
}>
-
-

Example

queue.addEventListener('cancel', ({ detail: job }) => {
// job - cancelled job
}) -
-
-
- -
done: CustomEvent<{
    data?: any;
    id: string;
    name: string;
    options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
    state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
}>
-
-

Example

queue.addEventListener('done', ({ detail: job }) => {
// job - finished
}) -
-
-
- -
error: CustomEvent<{
    data?: any;
    id: string;
    name: string;
    options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
    state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
}>
-
-

Example

queue.addEventListener('error', ({ detail: job }) => {
// job - errored job
}) -
-
-
- -
expired: CustomEvent<{
    data?: any;
    id: string;
    name: string;
    options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
    state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
}>
-
-

Example

queue.addEventListener('expired', ({ detail: job }) => {
// job - expired job
}) -
-
-
- -
fail: CustomEvent<{
    data?: any;
    id: string;
    name: string;
    options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
    state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
}>
-
-

Example

queue.addEventListener('fail', ({ detail: job }) => {
// job - failed job
}) -
-
-
- -
job: CustomEvent<{
    data?: any;
    id: string;
    name: string;
    options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
    state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
}>
-
-

Example

queue.addEventListener('job', ({ detail: job }) => {
// job added
}) -
-
-
- -
scheduled: CustomEvent<{
    data?: any;
    id: string;
    name: string;
    options: { attempts: number; attemptsDelay: number; every?: number | undefined; expire?: number | undefined; };
    state: { status: JobStatuses; attempts: number; errors: { error: string; time: number; }[]; scheduled?: number | undefined; };
}>
-
-

Example

queue.addEventListener('scheduled', ({ detail: job }) => {
// job - scheduled job
}) -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/interfaces/storage.localStorage.WindowStorage.html b/typedoc/interfaces/storage.localStorage.WindowStorage.html deleted file mode 100644 index 02651a2b..00000000 --- a/typedoc/interfaces/storage.localStorage.WindowStorage.html +++ /dev/null @@ -1,144 +0,0 @@ -WindowStorage | @windingtree/sdk
-
- -
-
- -
-
- -

Interface WindowStorage

-
-

Generic localStorage interface

-
-
-

Hierarchy

-
    -
  • WindowStorage
-
-
-
- -
-
-

Properties

-
-
-

Methods

-
-
-

Properties

-
- -
length: number
-
-

Methods

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns null | string

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      index: number
    -

    Returns null | string

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      key: string
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      key: string
    • -
    • -
      value: string
    -

    Returns void

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/modules.html b/typedoc/modules.html deleted file mode 100644 index 5f35e627..00000000 --- a/typedoc/modules.html +++ /dev/null @@ -1,210 +0,0 @@ -@windingtree/sdk
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/modules/constants.html b/typedoc/modules/constants.html deleted file mode 100644 index ef79fd5e..00000000 --- a/typedoc/modules/constants.html +++ /dev/null @@ -1,67 +0,0 @@ -constants | @windingtree/sdk
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/modules/storage.html b/typedoc/modules/storage.html deleted file mode 100644 index 230eee04..00000000 --- a/typedoc/modules/storage.html +++ /dev/null @@ -1,79 +0,0 @@ -storage | @windingtree/sdk
-
- -
-
- -
-
- -

Namespace storage

-
-
-

Index

-
-

Namespaces

-
-
-

Classes

-
-
-

Type Aliases

-
-
-

Variables

-
-
-

Functions

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/modules/storage.localStorage.html b/typedoc/modules/storage.localStorage.html deleted file mode 100644 index f78654e3..00000000 --- a/typedoc/modules/storage.localStorage.html +++ /dev/null @@ -1,78 +0,0 @@ -localStorage | @windingtree/sdk
-
- -
-
- -
-
- -

Namespace localStorage

-
-
-

Index

-
-

Classes

-
-
-

Interfaces

-
-
-

Type Aliases

-
-
-

Variables

-
-
-

Functions

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/modules/storage.memoryStorage.html b/typedoc/modules/storage.memoryStorage.html deleted file mode 100644 index c5afaeaa..00000000 --- a/typedoc/modules/storage.memoryStorage.html +++ /dev/null @@ -1,73 +0,0 @@ -memoryStorage | @windingtree/sdk
-
- -
-
- -
-
- -

Namespace memoryStorage

-
-
-

Index

-
-

Classes

-
-
-

Type Aliases

-
-
-

Variables

-
-
-

Functions

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/BuildOfferOptions.html b/typedoc/types/BuildOfferOptions.html deleted file mode 100644 index 291612fd..00000000 --- a/typedoc/types/BuildOfferOptions.html +++ /dev/null @@ -1,133 +0,0 @@ -BuildOfferOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias BuildOfferOptions<CustomRequestQuery, CustomOfferOptions>

-
BuildOfferOptions<CustomRequestQuery, CustomOfferOptions>: z.infer<ReturnType<typeof createBuildOfferOptions>>
-

Type for buildOffer method options

- -

Template

-

Template

-

Param

-

Param

-
-

Type Parameters

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/BuildRequestOptions.html b/typedoc/types/BuildRequestOptions.html deleted file mode 100644 index b7291a5d..00000000 --- a/typedoc/types/BuildRequestOptions.html +++ /dev/null @@ -1,127 +0,0 @@ -BuildRequestOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias BuildRequestOptions<CustomRequestQuery>

-
BuildRequestOptions<CustomRequestQuery>: z.infer<ReturnType<typeof createBuildRequestOptions>>
-

buildRequest method options type

-
-
-

Type Parameters

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/CancelOption.html b/typedoc/types/CancelOption.html deleted file mode 100644 index 77d5cf92..00000000 --- a/typedoc/types/CancelOption.html +++ /dev/null @@ -1,122 +0,0 @@ -CancelOption | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias CancelOption

-
CancelOption: z.infer<typeof CancelOptionSchema>
-

Offered cancellation option type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/ClientOptions.html b/typedoc/types/ClientOptions.html deleted file mode 100644 index 7f12e4f7..00000000 --- a/typedoc/types/ClientOptions.html +++ /dev/null @@ -1,129 +0,0 @@ -ClientOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias ClientOptions<CustomRequestQuery, CustomOfferOptions>

-
ClientOptions<CustomRequestQuery, CustomOfferOptions>: z.infer<ReturnType<typeof createClientOptionsSchema>>
-

The protocol client initialization schema type

-
-
-

Type Parameters

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/GenericMessage.html b/typedoc/types/GenericMessage.html deleted file mode 100644 index 1e791c10..00000000 --- a/typedoc/types/GenericMessage.html +++ /dev/null @@ -1,122 +0,0 @@ -GenericMessage | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias GenericMessage

-
GenericMessage: z.infer<typeof GenericMessageSchema>
-

Generic message data type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/GenericOfferOptions.html b/typedoc/types/GenericOfferOptions.html deleted file mode 100644 index 7b4536f2..00000000 --- a/typedoc/types/GenericOfferOptions.html +++ /dev/null @@ -1,122 +0,0 @@ -GenericOfferOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias GenericOfferOptions

-
GenericOfferOptions: z.infer<typeof GenericOfferOptionsSchema>
-

Generic offer is just an object with props type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/GenericQuery.html b/typedoc/types/GenericQuery.html deleted file mode 100644 index fbcda28b..00000000 --- a/typedoc/types/GenericQuery.html +++ /dev/null @@ -1,122 +0,0 @@ -GenericQuery | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias GenericQuery

-
GenericQuery: z.infer<typeof GenericQuerySchema>
-

Generic query type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/Job.html b/typedoc/types/Job.html deleted file mode 100644 index 778d8072..00000000 --- a/typedoc/types/Job.html +++ /dev/null @@ -1,127 +0,0 @@ -Job | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias Job<JobDataType>

-
Job<JobDataType>: z.infer<ReturnType<typeof createJobSchema>>
-

Job type

-
-
-

Type Parameters

-
    -
  • -

    JobDataType = any

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/JobHandler.html b/typedoc/types/JobHandler.html deleted file mode 100644 index 7167ee8c..00000000 --- a/typedoc/types/JobHandler.html +++ /dev/null @@ -1,144 +0,0 @@ -JobHandler | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias JobHandler<OfferData, HandlerOptions>

-
JobHandler<OfferData, HandlerOptions>: ((job: Job<OfferData>, options?: HandlerOptions) => Promise<boolean | void>)
-
-

Type Parameters

-
    -
  • -

    OfferData = any

  • -
  • -

    HandlerOptions extends object = object

-
-

Type declaration

-
    -
  • -
      -
    • (job: Job<OfferData>, options?: HandlerOptions): Promise<boolean | void>
    • -
    • -

      Job handler function type

      -
      -
      -

      Parameters

      -
        -
      • -
        job: Job<OfferData>
      • -
      • -
        Optional options: HandlerOptions
      -

      Returns Promise<boolean | void>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/JobHandlerClosure.html b/typedoc/types/JobHandlerClosure.html deleted file mode 100644 index 248130ef..00000000 --- a/typedoc/types/JobHandlerClosure.html +++ /dev/null @@ -1,135 +0,0 @@ -JobHandlerClosure | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias JobHandlerClosure

-
JobHandlerClosure: ((job: any) => ReturnType<JobHandler<any>>)
-
-

Type declaration

-
    -
  • -
      -
    • (job: any): ReturnType<JobHandler<any>>
    • -
    • -

      Job handler closure type

      -
      -
      -

      Parameters

      -
        -
      • -
        job: any
      -

      Returns ReturnType<JobHandler<any>>

-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/JobOptions.html b/typedoc/types/JobOptions.html deleted file mode 100644 index e42cdad8..00000000 --- a/typedoc/types/JobOptions.html +++ /dev/null @@ -1,120 +0,0 @@ -JobOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias JobOptions

-
JobOptions: z.infer<typeof JobOptionsSchema>
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/JobState.html b/typedoc/types/JobState.html deleted file mode 100644 index 15141ea6..00000000 --- a/typedoc/types/JobState.html +++ /dev/null @@ -1,120 +0,0 @@ -JobState | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias JobState

-
JobState: z.infer<typeof JobStateSchema>
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/JobStatus.html b/typedoc/types/JobStatus.html deleted file mode 100644 index 3bfdd7ea..00000000 --- a/typedoc/types/JobStatus.html +++ /dev/null @@ -1,120 +0,0 @@ -JobStatus | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias JobStatus

-
JobStatus: z.infer<typeof JobStatusSchema>
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/NodeKeyJson.html b/typedoc/types/NodeKeyJson.html deleted file mode 100644 index 4afdf574..00000000 --- a/typedoc/types/NodeKeyJson.html +++ /dev/null @@ -1,122 +0,0 @@ -NodeKeyJson | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias NodeKeyJson

-
NodeKeyJson: z.infer<typeof NodeKeyJsonSchema>
-

Interface of a node key in Json format (type)

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/NodeOptions.html b/typedoc/types/NodeOptions.html deleted file mode 100644 index c8ca56db..00000000 --- a/typedoc/types/NodeOptions.html +++ /dev/null @@ -1,129 +0,0 @@ -NodeOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias NodeOptions<CustomRequestQuery, CustomOfferOptions>

-
NodeOptions<CustomRequestQuery, CustomOfferOptions>: z.infer<ReturnType<typeof createNodeOptionsSchema>>
-

The protocol node initialization options type

-
-
-

Type Parameters

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/OfferData.html b/typedoc/types/OfferData.html deleted file mode 100644 index bdaa4fed..00000000 --- a/typedoc/types/OfferData.html +++ /dev/null @@ -1,129 +0,0 @@ -OfferData | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias OfferData<CustomRequestQuery, CustomOfferOptions>

-
OfferData<CustomRequestQuery, CustomOfferOptions>: z.infer<ReturnType<typeof createOfferDataSchema>>
-

Offer data type

-
-
-

Type Parameters

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/PaymentOption.html b/typedoc/types/PaymentOption.html deleted file mode 100644 index 19048ab7..00000000 --- a/typedoc/types/PaymentOption.html +++ /dev/null @@ -1,122 +0,0 @@ -PaymentOption | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias PaymentOption

-
PaymentOption: z.infer<typeof PaymentOptionSchema>
-

Offered payment option type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/PeerOptions.html b/typedoc/types/PeerOptions.html deleted file mode 100644 index bea3707d..00000000 --- a/typedoc/types/PeerOptions.html +++ /dev/null @@ -1,122 +0,0 @@ -PeerOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias PeerOptions

-
PeerOptions: z.infer<typeof PeerOptionsSchema>
-

Peer configuration options type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/QueueInit.html b/typedoc/types/QueueInit.html deleted file mode 100644 index 6e287871..00000000 --- a/typedoc/types/QueueInit.html +++ /dev/null @@ -1,120 +0,0 @@ -QueueInit | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias QueueInit

-
QueueInit: z.infer<typeof QueueInitSchema>
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/QueueOptions.html b/typedoc/types/QueueOptions.html deleted file mode 100644 index f2f6552b..00000000 --- a/typedoc/types/QueueOptions.html +++ /dev/null @@ -1,120 +0,0 @@ -QueueOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias QueueOptions

-
QueueOptions: z.infer<typeof QueueOptionsSchema>
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/RequestData.html b/typedoc/types/RequestData.html deleted file mode 100644 index 56f2452e..00000000 --- a/typedoc/types/RequestData.html +++ /dev/null @@ -1,127 +0,0 @@ -RequestData | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias RequestData<CustomRequestQuery>

-
RequestData<CustomRequestQuery>: z.infer<ReturnType<typeof createRequestDataSchema>>
-

Request data type

-
-
-

Type Parameters

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/RequestManagerOptions.html b/typedoc/types/RequestManagerOptions.html deleted file mode 100644 index 6842af65..00000000 --- a/typedoc/types/RequestManagerOptions.html +++ /dev/null @@ -1,127 +0,0 @@ -RequestManagerOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias RequestManagerOptions<CustomRequestQuery>

-
RequestManagerOptions<CustomRequestQuery>: z.infer<ReturnType<typeof createRequestManagerOptionsSchema>>
-

Request manager (of the protocol node) initialization options type

-
-
-

Type Parameters

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/ServerOptions.html b/typedoc/types/ServerOptions.html deleted file mode 100644 index f1381de4..00000000 --- a/typedoc/types/ServerOptions.html +++ /dev/null @@ -1,122 +0,0 @@ -ServerOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias ServerOptions

-
ServerOptions: z.infer<typeof ServerOptionsSchema>
-

The protocol coordination server options type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/UnsignedOfferPayload.html b/typedoc/types/UnsignedOfferPayload.html deleted file mode 100644 index 192a6b77..00000000 --- a/typedoc/types/UnsignedOfferPayload.html +++ /dev/null @@ -1,122 +0,0 @@ -UnsignedOfferPayload | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias UnsignedOfferPayload

-
UnsignedOfferPayload: z.infer<typeof UnsignedOfferPayloadSchema>
-

Unsigned offer payload type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/storage.StorageInitializer.html b/typedoc/types/storage.StorageInitializer.html deleted file mode 100644 index 8b8a5fe2..00000000 --- a/typedoc/types/storage.StorageInitializer.html +++ /dev/null @@ -1,58 +0,0 @@ -StorageInitializer | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias StorageInitializer

-
StorageInitializer: z.infer<typeof StorageInitializerSchema>
-

Storage initializer type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/storage.StorageInitializerFunction.html b/typedoc/types/storage.StorageInitializerFunction.html deleted file mode 100644 index 3e2c6aa4..00000000 --- a/typedoc/types/storage.StorageInitializerFunction.html +++ /dev/null @@ -1,58 +0,0 @@ -StorageInitializerFunction | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias StorageInitializerFunction

-
StorageInitializerFunction: z.infer<ReturnType<typeof createStorageInitializerFactorySchema>>
-

Storage initializer callback function type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/storage.localStorage.LocalStorageOptions.html b/typedoc/types/storage.localStorage.LocalStorageOptions.html deleted file mode 100644 index b0f89a61..00000000 --- a/typedoc/types/storage.localStorage.LocalStorageOptions.html +++ /dev/null @@ -1,57 +0,0 @@ -LocalStorageOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias LocalStorageOptions

-
LocalStorageOptions: z.infer<typeof LocalStorageOptionsSchema>
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/types/storage.memoryStorage.MemoryStorageOptions.html b/typedoc/types/storage.memoryStorage.MemoryStorageOptions.html deleted file mode 100644 index 3de4a4e5..00000000 --- a/typedoc/types/storage.memoryStorage.MemoryStorageOptions.html +++ /dev/null @@ -1,58 +0,0 @@ -MemoryStorageOptions | @windingtree/sdk
-
- -
-
- -
-
- -

Type alias MemoryStorageOptions

-
MemoryStorageOptions: z.infer<typeof MemoryStorageOptionsSchema>
-

Memory storage type

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/CancelOptionSchema.html b/typedoc/variables/CancelOptionSchema.html deleted file mode 100644 index 8797fed6..00000000 --- a/typedoc/variables/CancelOptionSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -CancelOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable CancelOptionSchemaConst

-
CancelOptionSchema: ZodObject<{
    penalty: ZodNumber;
    time: ZodNumber;
}, "strict", ZodTypeAny, {
    penalty: number;
    time: number;
}, {
    penalty: number;
    time: number;
}> = ...
-

Offered cancellation option schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/ContractConfigOptionSchema.html b/typedoc/variables/ContractConfigOptionSchema.html deleted file mode 100644 index 5241c7c3..00000000 --- a/typedoc/variables/ContractConfigOptionSchema.html +++ /dev/null @@ -1,120 +0,0 @@ -ContractConfigOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable ContractConfigOptionSchemaConst

-
ContractConfigOptionSchema: ZodObject<{
    contractConfig: ZodObject<{
        address: ZodString;
        chainId: ZodUnion<[ZodUnion<[ZodBigInt, ZodNumber]>, ZodString]>;
        name: ZodString;
        version: ZodString;
    }, "strict", ZodTypeAny, {
        address: string;
        chainId: string | number | bigint;
        name: string;
        version: string;
    }, {
        address: string;
        chainId: string | number | bigint;
        name: string;
        version: string;
    }>;
}, "strip", ZodTypeAny, {
    contractConfig: {
        address: string;
        chainId: string | number | bigint;
        name: string;
        version: string;
    };
}, {
    contractConfig: {
        address: string;
        chainId: string | number | bigint;
        name: string;
        version: string;
    };
}> = ...
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/GenericMessageSchema.html b/typedoc/variables/GenericMessageSchema.html deleted file mode 100644 index b764274c..00000000 --- a/typedoc/variables/GenericMessageSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -GenericMessageSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable GenericMessageSchemaConst

-
GenericMessageSchema: ZodObject<{
    expire: ZodNumber;
    id: ZodString;
    nonce: ZodNumber;
}, "strip", ZodTypeAny, {
    expire: number;
    id: string;
    nonce: number;
}, {
    expire: number;
    id: string;
    nonce: number;
}> = ...
-

Basic message structure

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/GenericOfferOptionsSchema.html b/typedoc/variables/GenericOfferOptionsSchema.html deleted file mode 100644 index 4b2d38e3..00000000 --- a/typedoc/variables/GenericOfferOptionsSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -GenericOfferOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable GenericOfferOptionsSchemaConst

-
GenericOfferOptionsSchema: ZodObject<{}, "strip", ZodTypeAny, {}, {}> = ...
-

Generic offer is just an object with props schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/GenericQuerySchema.html b/typedoc/variables/GenericQuerySchema.html deleted file mode 100644 index f2a9c977..00000000 --- a/typedoc/variables/GenericQuerySchema.html +++ /dev/null @@ -1,122 +0,0 @@ -GenericQuerySchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable GenericQuerySchemaConst

-
GenericQuerySchema: ZodObject<{}, "strip", ZodTypeAny, {}, {}> = ...
-

Basic query is just an object with keys of unknown values

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/JobOptionsSchema.html b/typedoc/variables/JobOptionsSchema.html deleted file mode 100644 index 1d3e4111..00000000 --- a/typedoc/variables/JobOptionsSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -JobOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable JobOptionsSchemaConst

-
JobOptionsSchema: ZodObject<{
    attempts: ZodDefault<ZodNumber>;
    attemptsDelay: ZodDefault<ZodNumber>;
    every: ZodOptional<ZodNumber>;
    expire: ZodOptional<ZodNumber>;
}, "strict", ZodTypeAny, {
    attempts: number;
    attemptsDelay: number;
    every?: number;
    expire?: number;
}, {
    attempts?: number;
    attemptsDelay?: number;
    every?: number;
    expire?: number;
}> = ...
-

Job configuration options schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/JobStateSchema.html b/typedoc/variables/JobStateSchema.html deleted file mode 100644 index 0f209425..00000000 --- a/typedoc/variables/JobStateSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -JobStateSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable JobStateSchemaConst

-
JobStateSchema: ZodObject<{
    attempts: ZodDefault<ZodNumber>;
    errors: ZodDefault<ZodArray<ZodObject<{
        error: ZodString;
        time: ZodNumber;
    }, "strip", ZodTypeAny, {
        error: string;
        time: number;
    }, {
        error: string;
        time: number;
    }>, "many">>;
    scheduled: ZodOptional<ZodNumber>;
    status: ZodDefault<ZodNativeEnum<typeof JobStatuses>>;
}, "strict", ZodTypeAny, {
    attempts: number;
    errors: {
        error: string;
        time: number;
    }[];
    scheduled?: number;
    status: JobStatuses;
}, {
    attempts?: number;
    errors?: {
        error: string;
        time: number;
    }[];
    scheduled?: number;
    status?: PENDING | STARTED | DONE | CANCELLED | ERRORED | FAILED | EXPIRED;
}> = ...
-

Internal job state schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/JobStatusSchema.html b/typedoc/variables/JobStatusSchema.html deleted file mode 100644 index 8137fc42..00000000 --- a/typedoc/variables/JobStatusSchema.html +++ /dev/null @@ -1,120 +0,0 @@ -JobStatusSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable JobStatusSchemaConst

-
JobStatusSchema: ZodNativeEnum<typeof JobStatuses> = ...
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/NodeKeyJsonSchema.html b/typedoc/variables/NodeKeyJsonSchema.html deleted file mode 100644 index 7862146e..00000000 --- a/typedoc/variables/NodeKeyJsonSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -NodeKeyJsonSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable NodeKeyJsonSchemaConst

-
NodeKeyJsonSchema: ZodObject<{
    id: ZodString;
    privKey: ZodString;
    pubKey: ZodString;
}, "strict", ZodTypeAny, {
    id: string;
    privKey: string;
    pubKey: string;
}, {
    id: string;
    privKey: string;
    pubKey: string;
}> = ...
-

Interface of a node key in Json format (schema)

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/NoncePeriodOptionSchema.html b/typedoc/variables/NoncePeriodOptionSchema.html deleted file mode 100644 index 211db7b9..00000000 --- a/typedoc/variables/NoncePeriodOptionSchema.html +++ /dev/null @@ -1,120 +0,0 @@ -NoncePeriodOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable NoncePeriodOptionSchemaConst

-
NoncePeriodOptionSchema: ZodObject<{
    noncePeriod: ZodDefault<ZodNumber>;
}, "strip", ZodTypeAny, {
    noncePeriod: number;
}, {
    noncePeriod?: number;
}> = ...
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/PaymentOptionSchema.html b/typedoc/variables/PaymentOptionSchema.html deleted file mode 100644 index f5dcfcdd..00000000 --- a/typedoc/variables/PaymentOptionSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -PaymentOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable PaymentOptionSchemaConst

-
PaymentOptionSchema: ZodObject<{
    asset: ZodString;
    id: ZodString;
    price: ZodString;
}, "strict", ZodTypeAny, {
    asset: string;
    id: string;
    price: string;
}, {
    asset: string;
    id: string;
    price: string;
}> = ...
-

Offered payment option schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/PeerOptionsSchema.html b/typedoc/variables/PeerOptionsSchema.html deleted file mode 100644 index 9b1993a8..00000000 --- a/typedoc/variables/PeerOptionsSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -PeerOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable PeerOptionsSchemaConst

-
PeerOptionsSchema: ZodObject<{
    peerKey: ZodOptional<ZodObject<{
        id: ZodString;
        privKey: ZodString;
        pubKey: ZodString;
    }, "strict", ZodTypeAny, {
        id: string;
        privKey: string;
        pubKey: string;
    }, {
        id: string;
        privKey: string;
        pubKey: string;
    }>>;
}, "strict", ZodTypeAny, {
    peerKey?: { id: string; privKey: string; pubKey: string; };
}, {
    peerKey?: { id: string; privKey: string; pubKey: string; };
}> = ...
-

Peer configuration options schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/ProviderOptionSchema.html b/typedoc/variables/ProviderOptionSchema.html deleted file mode 100644 index 6bba7527..00000000 --- a/typedoc/variables/ProviderOptionSchema.html +++ /dev/null @@ -1,120 +0,0 @@ -ProviderOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable ProviderOptionSchemaConst

-
ProviderOptionSchema: ZodObject<{
    provider: ZodOptional<ZodType<AbstractProvider, ZodTypeDef, AbstractProvider>>;
}, "strip", ZodTypeAny, {
    provider?: AbstractProvider;
}, {
    provider?: AbstractProvider;
}> = ...
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/QueueInitSchema.html b/typedoc/variables/QueueInitSchema.html deleted file mode 100644 index 20bc5265..00000000 --- a/typedoc/variables/QueueInitSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -QueueInitSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable QueueInitSchemaConst

-
QueueInitSchema: ZodObject<{
    concurrentJobsNumber: ZodOptional<ZodDefault<ZodNumber>>;
    hashKey: ZodOptional<ZodDefault<ZodString>>;
    heartbeat: ZodOptional<ZodDefault<ZodNumber>>;
    storage: ZodType<Storage, ZodTypeDef, Storage>;
}, "strict", ZodTypeAny, {
    concurrentJobsNumber: undefined | number;
    hashKey: undefined | string;
    heartbeat: undefined | number;
    storage: Storage;
}, {
    concurrentJobsNumber: undefined | number;
    hashKey: undefined | string;
    heartbeat: undefined | number;
    storage: Storage;
}> = ...
-

Queue initialization options schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/QueueOptionsSchema.html b/typedoc/variables/QueueOptionsSchema.html deleted file mode 100644 index e8ef4cd7..00000000 --- a/typedoc/variables/QueueOptionsSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -QueueOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable QueueOptionsSchemaConst

-
QueueOptionsSchema: ZodObject<{
    concurrentJobsNumber: ZodDefault<ZodNumber>;
    hashKey: ZodDefault<ZodString>;
    heartbeat: ZodDefault<ZodNumber>;
    storage: ZodType<Storage, ZodTypeDef, Storage>;
}, "strict", ZodTypeAny, {
    concurrentJobsNumber: number;
    hashKey: string;
    heartbeat: number;
    storage: Storage;
}, {
    concurrentJobsNumber?: number;
    hashKey?: string;
    heartbeat?: number;
    storage: Storage;
}> = ...
-

Queue options schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/ServerAddressOptionSchema.html b/typedoc/variables/ServerAddressOptionSchema.html deleted file mode 100644 index 45607d4f..00000000 --- a/typedoc/variables/ServerAddressOptionSchema.html +++ /dev/null @@ -1,120 +0,0 @@ -ServerAddressOptionSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable ServerAddressOptionSchemaConst

-
ServerAddressOptionSchema: ZodObject<{
    serverAddress: ZodString;
}, "strip", ZodTypeAny, {
    serverAddress: string;
}, {
    serverAddress: string;
}> = ...
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/ServerOptionsSchema.html b/typedoc/variables/ServerOptionsSchema.html deleted file mode 100644 index 294e030f..00000000 --- a/typedoc/variables/ServerOptionsSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -ServerOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable ServerOptionsSchemaConst

-
ServerOptionsSchema: ZodObject<{
    address: ZodOptional<ZodString>;
    messagesStorageInit: ZodFunction<ZodTuple<[], ZodUnknown>, ZodPromise<ZodType<Storage, ZodTypeDef, Storage>>>;
    peerKey: ZodObject<{
        id: ZodString;
        privKey: ZodString;
        pubKey: ZodString;
    }, "strict", ZodTypeAny, ({ id: string; privKey: string; pubKey: string; }), ({ id: string; privKey: string; pubKey: string; })>;
    port: ZodNumber;
}, "strict", ZodTypeAny, {
    address?: string;
    messagesStorageInit: ((...args: unknown[]) => Promise<Storage>);
    peerKey: { id: string; privKey: string; pubKey: string; };
    port: number;
}, {
    address?: string;
    messagesStorageInit: ((...args: unknown[]) => Promise<Storage>);
    peerKey: { id: string; privKey: string; pubKey: string; };
    port: number;
}> = ...
-

The protocol coordination server options schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/SignerSeedOptionsSchema.html b/typedoc/variables/SignerSeedOptionsSchema.html deleted file mode 100644 index 06ad42a7..00000000 --- a/typedoc/variables/SignerSeedOptionsSchema.html +++ /dev/null @@ -1,120 +0,0 @@ -SignerSeedOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable SignerSeedOptionsSchemaConst

-
SignerSeedOptionsSchema: ZodObject<{
    signerSeedPhrase: ZodString;
}, "strip", ZodTypeAny, {
    signerSeedPhrase: string;
}, {
    signerSeedPhrase: string;
}> = ...
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/UnsignedOfferPayloadSchema.html b/typedoc/variables/UnsignedOfferPayloadSchema.html deleted file mode 100644 index a9862b8d..00000000 --- a/typedoc/variables/UnsignedOfferPayloadSchema.html +++ /dev/null @@ -1,122 +0,0 @@ -UnsignedOfferPayloadSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable UnsignedOfferPayloadSchemaConst

-
UnsignedOfferPayloadSchema: ZodObject<{
    cancelHash: ZodString;
    chainId: ZodNumber;
    checkIn: ZodNumber;
    optionsHash: ZodString;
    paymentHash: ZodString;
    requestHash: ZodString;
    supplierId: ZodString;
    transferable: ZodDefault<ZodBoolean>;
}, "strict", ZodTypeAny, {
    cancelHash: string;
    chainId: number;
    checkIn: number;
    optionsHash: string;
    paymentHash: string;
    requestHash: string;
    supplierId: string;
    transferable: boolean;
}, {
    cancelHash: string;
    chainId: number;
    checkIn: number;
    optionsHash: string;
    paymentHash: string;
    requestHash: string;
    supplierId: string;
    transferable?: boolean;
}> = ...
-

Unsigned offer payload schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/constants.defaultExpirationTime.html b/typedoc/variables/constants.defaultExpirationTime.html deleted file mode 100644 index 78e67c16..00000000 --- a/typedoc/variables/constants.defaultExpirationTime.html +++ /dev/null @@ -1,59 +0,0 @@ -defaultExpirationTime | @windingtree/sdk
-
- -
-
- -
-
- -

Variable defaultExpirationTimeConst

-
defaultExpirationTime: "1m" = '1m'
-

Default message expiration time in seconds

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/constants.noncePeriod.html b/typedoc/variables/constants.noncePeriod.html deleted file mode 100644 index 4a13d7d0..00000000 --- a/typedoc/variables/constants.noncePeriod.html +++ /dev/null @@ -1,59 +0,0 @@ -noncePeriod | @windingtree/sdk
-
- -
-
- -
-
- -

Variable noncePeriodConst

-
noncePeriod: "1s" = '1s'
-

Time while the node accepting changes to request in seconds

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/constants.outboundStreamDelay.html b/typedoc/variables/constants.outboundStreamDelay.html deleted file mode 100644 index 6e21e66b..00000000 --- a/typedoc/variables/constants.outboundStreamDelay.html +++ /dev/null @@ -1,59 +0,0 @@ -outboundStreamDelay | @windingtree/sdk
-
- -
-
- -
-
- -

Variable outboundStreamDelayConst

-
outboundStreamDelay: 250 = 250
-

Time to wait for outbound stream in milliseconds

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/constants.queueConcurrentJobsNumber.html b/typedoc/variables/constants.queueConcurrentJobsNumber.html deleted file mode 100644 index 872242ff..00000000 --- a/typedoc/variables/constants.queueConcurrentJobsNumber.html +++ /dev/null @@ -1,59 +0,0 @@ -queueConcurrentJobsNumber | @windingtree/sdk
-
- -
-
- -
-
- -

Variable queueConcurrentJobsNumberConst

-
queueConcurrentJobsNumber: 3 = 3
-

Number of queue jobs that can be stated at once

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/constants.queueHeartbeat.html b/typedoc/variables/constants.queueHeartbeat.html deleted file mode 100644 index 147339d0..00000000 --- a/typedoc/variables/constants.queueHeartbeat.html +++ /dev/null @@ -1,59 +0,0 @@ -queueHeartbeat | @windingtree/sdk
-
- -
-
- -
-
- -

Variable queueHeartbeatConst

-
queueHeartbeat: 5 = 5
-

Time interval for queue needs in milliseconds

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/constants.queueJobAttemptsDelay.html b/typedoc/variables/constants.queueJobAttemptsDelay.html deleted file mode 100644 index cbd99996..00000000 --- a/typedoc/variables/constants.queueJobAttemptsDelay.html +++ /dev/null @@ -1,59 +0,0 @@ -queueJobAttemptsDelay | @windingtree/sdk
-
- -
-
- -
-
- -

Variable queueJobAttemptsDelayConst

-
queueJobAttemptsDelay: 1000 = 1000
-

Delay between repeats of failing jobs in milliseconds

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/offerEip712Types.html b/typedoc/variables/offerEip712Types.html deleted file mode 100644 index 4f905e9e..00000000 --- a/typedoc/variables/offerEip712Types.html +++ /dev/null @@ -1,122 +0,0 @@ -offerEip712Types | @windingtree/sdk
-
- -
-
- -
-
- -

Variable offerEip712TypesConst

-
offerEip712Types: Record<string, TypedDataField[]> = ...
-

EIP-712 JSON schema types for offer

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/storage.StorageInitializerSchema.html b/typedoc/variables/storage.StorageInitializerSchema.html deleted file mode 100644 index 0b977f4a..00000000 --- a/typedoc/variables/storage.StorageInitializerSchema.html +++ /dev/null @@ -1,58 +0,0 @@ -StorageInitializerSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable StorageInitializerSchemaConst

-
StorageInitializerSchema: ZodFunction<ZodTuple<[], ZodUnknown>, ZodPromise<ZodType<Storage, ZodTypeDef, Storage>>> = ...
-

Storage initializer schema

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/storage.localStorage.LocalStorageOptionsSchema.html b/typedoc/variables/storage.localStorage.LocalStorageOptionsSchema.html deleted file mode 100644 index cd62359b..00000000 --- a/typedoc/variables/storage.localStorage.LocalStorageOptionsSchema.html +++ /dev/null @@ -1,59 +0,0 @@ -LocalStorageOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable LocalStorageOptionsSchemaConst

-
LocalStorageOptionsSchema: ZodObject<{
    session: ZodDefault<ZodBoolean>;
}, "strip", ZodTypeAny, {
    session: boolean;
}, {
    session?: boolean;
}> = ...
-

Local storage options

-
-
-

Generated using TypeDoc

-
\ No newline at end of file diff --git a/typedoc/variables/storage.memoryStorage.MemoryStorageOptionsSchema.html b/typedoc/variables/storage.memoryStorage.MemoryStorageOptionsSchema.html deleted file mode 100644 index 21daf8fb..00000000 --- a/typedoc/variables/storage.memoryStorage.MemoryStorageOptionsSchema.html +++ /dev/null @@ -1,58 +0,0 @@ -MemoryStorageOptionsSchema | @windingtree/sdk
-
- -
-
- -
-
- -

Variable MemoryStorageOptionsSchemaConst

-
MemoryStorageOptionsSchema: ZodObject<{
    entries: ZodOptional<ZodArray<ZodTuple<[ZodString, ZodAny], null>, "many">>;
}, "strip", ZodTypeAny, {
    entries?: [string, any][];
}, {
    entries?: [string, any][];
}> = ...
-

Memory storage options

-
-
-

Generated using TypeDoc

-
\ No newline at end of file From 8bf016f087a2800589b774c684b56390fe836af0 Mon Sep 17 00:00:00 2001 From: Kostiantyn Smyrnov Date: Mon, 3 Apr 2023 12:58:30 +0200 Subject: [PATCH 4/5] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Fixed=20minor=20lin?= =?UTF-8?q?t=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b65dccba..d715472f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: with: node-version: "lts/*" - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn install --frozen-lockfile && yarn --cwd ./examples/client install --frozen-lockfile - name: Lint run: yarn lint - name: Test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 54c790c1..58033c8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: with: node-version: "lts/*" - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn install --frozen-lockfile && yarn --cwd ./examples/client install --frozen-lockfile - name: Lint run: yarn lint - name: Test From 5ba21bb23e08924968f9aef2717e0f78885453d4 Mon Sep 17 00:00:00 2001 From: Kostiantyn Smyrnov Date: Mon, 3 Apr 2023 13:29:17 +0200 Subject: [PATCH 5/5] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Changed=20import=20?= =?UTF-8?q?in=20messages.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++--- src/shared/messages.ts | 3 +-- yarn.lock | 7 ++++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index fcb98dcb..f5646ccd 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "test": "mocha -t 60000 --extension spec.ts", "semantic-release": "semantic-release", "prepack": "npm run build", - "lint": "npx eslint . --ext .ts", - "lint:fix": "npx eslint . --ext .ts --fix && npx prettier --write .", + "lint": "eslint . --ext .ts", + "lint:fix": "eslint . --ext .ts --fix && prettier --write .", "prepare": "husky install", "commit": "git-cz -S", "coverage": "c8 --all --exclude coverage --exclude lib --exclude test yarn test && c8 report --all --exclude coverage --exclude lib --exclude test -r html", @@ -87,7 +87,7 @@ "chai": "^4.3.7", "chai-as-promised": "^7.1.1", "ts-node": "^10.9.1", - "typescript": "^5.0.2", + "typescript": "^5.0.3", "semantic-release": "^21.0.0", "semantic-release-cli": "^5.4.4", "@semantic-release/release-notes-generator": "^10.0.3", diff --git a/src/shared/messages.ts b/src/shared/messages.ts index c9a8634c..1a264a2d 100644 --- a/src/shared/messages.ts +++ b/src/shared/messages.ts @@ -1,5 +1,4 @@ -import { AbstractSigner, TypedDataField, getAddress, Signature } from 'ethers'; -import { verifyTypedData } from '@ethersproject/wallet'; +import { AbstractSigner, TypedDataField, getAddress, Signature, verifyTypedData } from 'ethers'; import { z } from 'zod'; import { ContractConfig, ContractConfigSchema } from '../utils/contract.js'; import { hashObject } from '../utils/hash.js'; diff --git a/yarn.lock b/yarn.lock index 787aacc1..80805109 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10012,11 +10012,16 @@ typedoc@^0.24.0-beta.7: minimatch "^7.1.3" shiki "^0.14.1" -"typescript@^4.6.4 || ^5.0.0", typescript@^5.0.2: +"typescript@^4.6.4 || ^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5" integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw== +typescript@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.3.tgz#fe976f0c826a88d0a382007681cbb2da44afdedf" + integrity sha512-xv8mOEDnigb/tN9PSMTwSEqAnUvkoXMQlicOb0IUVDBSQCgBSaAAROUZYy2IcUy5qU6XajK5jjjO7TMWqBTKZA== + uglify-js@^3.1.4: version "3.17.4" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"