@xyo-network/huri 5.3.25 → 5.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +297 -10
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -1,23 +1,310 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/huri
2
4
 
3
- [![logo][]](https://xyo.network)
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Primary SDK for using XYO Protocol 2.0
9
+
10
+ ## Install
11
+
12
+ Using npm:
13
+
14
+ ```sh
15
+ npm install {{name}}
16
+ ```
17
+
18
+ Using yarn:
4
19
 
5
- Version: 5.0.2
20
+ ```sh
21
+ yarn add {{name}}
22
+ ```
6
23
 
7
- Primary SDK for using XYO Protocol 2.0
24
+ Using pnpm:
8
25
 
9
- ## Documentation
26
+ ```sh
27
+ pnpm add {{name}}
28
+ ```
10
29
 
11
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__huri)
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add {{name}}
34
+ ```
12
35
 
13
- Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
14
36
 
15
37
  ## License
16
38
 
17
- > See the [LICENSE](LICENSE) file for license details
39
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
+
41
+ ## Reference
42
+
43
+ ### packages
44
+
45
+ ### protocol
46
+
47
+ ### packages
48
+
49
+ ### payload
50
+
51
+ ### packages
52
+
53
+ ### huri
54
+
55
+ ### .temp-typedoc
56
+
57
+ ### classes
58
+
59
+ ### <a id="Huri"></a>Huri
60
+
61
+ [**@xyo-network/huri**](#../README)
62
+
63
+ ***
64
+
65
+ ## Type Parameters
66
+
67
+ ### T
68
+
69
+ `T` *extends* `Payload` = `Payload`
70
+
71
+ ## Constructors
72
+
73
+ ### Constructor
74
+
75
+ ```ts
76
+ new Huri<T>(huri, __namedParameters?): Huri<T>;
77
+ ```
78
+
79
+ ### Parameters
80
+
81
+ #### huri
82
+
83
+ `string` \| `Huri`\<`Payload`\> \| `BrandedHash`
84
+
85
+ #### \_\_namedParameters?
86
+
87
+ [`HuriOptions`](#../interfaces/HuriOptions) = `{}`
88
+
89
+ ### Returns
90
+
91
+ `Huri`\<`T`\>
92
+
93
+ ## Properties
94
+
95
+ ### archive?
96
+
97
+ ```ts
98
+ optional archive?: string;
99
+ ```
100
+
101
+ ***
102
+
103
+ ### archivist?
104
+
105
+ ```ts
106
+ optional archivist?: string | BrandedAddress;
107
+ ```
108
+
109
+ ***
110
+
111
+ ### hash
112
+
113
+ ```ts
114
+ hash: BrandedHash;
115
+ ```
116
+
117
+ ***
118
+
119
+ ### originalHref
120
+
121
+ ```ts
122
+ originalHref: string;
123
+ ```
124
+
125
+ ***
126
+
127
+ ### protocol?
128
+
129
+ ```ts
130
+ optional protocol?: string;
131
+ ```
132
+
133
+ ***
134
+
135
+ ### token?
136
+
137
+ ```ts
138
+ optional token?: string;
139
+ ```
140
+
141
+ ## Accessors
142
+
143
+ ### href
144
+
145
+ ### Get Signature
146
+
147
+ ```ts
148
+ get href(): string;
149
+ ```
150
+
151
+ #### Returns
152
+
153
+ `string`
154
+
155
+ ## Methods
156
+
157
+ ### fetch()
158
+
159
+ ```ts
160
+ static fetch<T>(huri): Promise<T | undefined>;
161
+ ```
162
+
163
+ ### Type Parameters
164
+
165
+ #### T
166
+
167
+ `T` *extends* `Payload` = `Payload`
168
+
169
+ ### Parameters
170
+
171
+ #### huri
172
+
173
+ `Huri`
174
+
175
+ ### Returns
176
+
177
+ `Promise`\<`T` \| `undefined`\>
178
+
179
+ ***
180
+
181
+ ### isHuri()
182
+
183
+ ```ts
184
+ static isHuri(value): Huri<Payload> | undefined;
185
+ ```
186
+
187
+ ### Parameters
188
+
189
+ #### value
190
+
191
+ `unknown`
192
+
193
+ ### Returns
194
+
195
+ `Huri`\<`Payload`\> \| `undefined`
196
+
197
+ ***
198
+
199
+ ### fetch()
200
+
201
+ ```ts
202
+ fetch(): Promise<T | undefined>;
203
+ ```
204
+
205
+ ### Returns
206
+
207
+ `Promise`\<`T` \| `undefined`\>
208
+
209
+ ***
210
+
211
+ ### toString()
212
+
213
+ ```ts
214
+ toString(): string;
215
+ ```
216
+
217
+ ### Returns
218
+
219
+ `string`
220
+
221
+ ### interfaces
222
+
223
+ ### <a id="FetchedPayload"></a>FetchedPayload
224
+
225
+ [**@xyo-network/huri**](#../README)
226
+
227
+ ***
228
+
229
+ ## Type Parameters
230
+
231
+ ### T
232
+
233
+ `T` *extends* `Payload` = `Payload`
234
+
235
+ ## Properties
236
+
237
+ ### huri?
238
+
239
+ ```ts
240
+ optional huri?: Huri<Payload>;
241
+ ```
242
+
243
+ ***
244
+
245
+ ### payload
246
+
247
+ ```ts
248
+ payload: T;
249
+ ```
250
+
251
+ ### <a id="HuriOptions"></a>HuriOptions
252
+
253
+ [**@xyo-network/huri**](#../README)
254
+
255
+ ***
256
+
257
+ ## Properties
258
+
259
+ ### archivistUri?
260
+
261
+ ```ts
262
+ optional archivistUri?: string;
263
+ ```
264
+
265
+ ***
266
+
267
+ ### token?
268
+
269
+ ```ts
270
+ optional token?: string;
271
+ ```
272
+
273
+ ### type-aliases
274
+
275
+ ### <a id="HuriFetchFunction"></a>HuriFetchFunction
276
+
277
+ [**@xyo-network/huri**](#../README)
278
+
279
+ ***
280
+
281
+ ```ts
282
+ type HuriFetchFunction = (huri) => Promise<Payload | undefined>;
283
+ ```
284
+
285
+ ## Parameters
286
+
287
+ ### huri
288
+
289
+ [`Huri`](#../classes/Huri)
290
+
291
+ ## Returns
292
+
293
+ `Promise`\<`Payload` \| `undefined`\>
294
+
295
+ ### <a id="ObjectCategory"></a>ObjectCategory
296
+
297
+ [**@xyo-network/huri**](#../README)
298
+
299
+ ***
18
300
 
19
- ## Credits
301
+ ```ts
302
+ type ObjectCategory = "block" | "payload";
303
+ ```
20
304
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
305
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
306
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
307
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/huri.svg
308
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/huri
309
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/huri.svg
310
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/huri",
3
- "version": "5.3.25",
3
+ "version": "5.3.26",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -22,11 +22,11 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/neutral/index.d.ts",
25
+ "import": "./dist/neutral/index.mjs",
25
26
  "default": "./dist/neutral/index.mjs"
26
27
  },
27
28
  "./package.json": "./package.json"
28
29
  },
29
- "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
@@ -36,17 +36,17 @@
36
36
  "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/account": "~5.3.25",
40
- "@xyo-network/payload-model": "~5.3.25"
39
+ "@xyo-network/payload-model": "~5.3.26",
40
+ "@xyo-network/account": "~5.3.26"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@opentelemetry/api": "^1.9.1",
44
- "@types/node": "^25.5.0",
45
- "@xylabs/sdk-js": "^5.0.93",
46
- "@xylabs/ts-scripts-common": "~7.6.16",
47
- "@xylabs/ts-scripts-pnpm": "~7.6.16",
48
- "@xylabs/tsconfig": "~7.6.16",
49
- "@xylabs/vitest-extended": "~5.0.93",
44
+ "@types/node": "^25.5.2",
45
+ "@xylabs/sdk-js": "^5.0.94",
46
+ "@xylabs/ts-scripts-common": "~7.7.5",
47
+ "@xylabs/ts-scripts-pnpm": "~7.7.5",
48
+ "@xylabs/tsconfig": "~7.7.5",
49
+ "@xylabs/vitest-extended": "~5.0.94",
50
50
  "acorn": "^8.16.0",
51
51
  "axios": "^1.14.0",
52
52
  "esbuild": "^0.28.0",
@@ -56,8 +56,8 @@
56
56
  "vite": "^8.0.3",
57
57
  "vitest": "~4.1.2",
58
58
  "zod": "^4.3.6",
59
- "@xyo-network/account": "~5.3.25",
60
- "@xyo-network/payload-model": "~5.3.25"
59
+ "@xyo-network/payload-model": "~5.3.26",
60
+ "@xyo-network/account": "~5.3.26"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@xylabs/sdk-js": "^5",