@shelby-protocol/sdk 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.mjs +15 -15
- package/dist/{chunk-TXPDEVJ3.mjs → chunk-3PCG7PNP.mjs} +7 -9
- package/dist/{chunk-HTPYOFXE.mjs → chunk-AEDVYYGD.mjs} +1 -1
- package/dist/{chunk-LW2Y326E.mjs → chunk-BKL7NCUB.mjs} +6 -6
- package/dist/{chunk-VELC6GRY.mjs → chunk-BUWAD67L.mjs} +2 -2
- package/dist/{chunk-AABBONAF.mjs → chunk-IKRWBDG5.mjs} +9 -1
- package/dist/{chunk-JISS2JLW.mjs → chunk-KYQRWJ3U.mjs} +1 -1
- package/dist/{chunk-HEA673HS.mjs → chunk-NI6XBZLI.mjs} +1 -1
- package/dist/{chunk-H53O23I7.mjs → chunk-SSE4MFNN.mjs} +1 -1
- package/dist/{chunk-33SWBFIX.mjs → chunk-WJTVYLKW.mjs} +2 -2
- package/dist/core/clients/ShelbyBlobClient.mjs +4 -4
- package/dist/core/clients/ShelbyClient.mjs +8 -8
- package/dist/core/clients/ShelbyMetadataClient.mjs +2 -2
- package/dist/core/clients/ShelbyMicropaymentChannelClient.mjs +3 -3
- package/dist/core/clients/ShelbyPlacementGroupClient.mjs +3 -3
- package/dist/core/clients/ShelbyRPCClient.mjs +4 -4
- package/dist/core/clients/index.mjs +10 -10
- package/dist/core/clients/utils.d.ts +2 -1
- package/dist/core/clients/utils.mjs +6 -3
- package/dist/core/erasure/index.mjs +3 -3
- package/dist/core/index.mjs +15 -15
- package/dist/core/operations/generated/types.d.ts +908 -0
- package/dist/core/operations/generated/types.mjs +63 -0
- package/dist/core/operations/index.mjs +2 -2
- package/dist/node/clients/ShelbyNodeClient.mjs +9 -9
- package/dist/node/clients/index.mjs +9 -9
- package/dist/node/index.mjs +16 -16
- package/package.json +3 -3
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import "../../../chunk-7P6ASYW6.mjs";
|
|
2
|
+
|
|
3
|
+
// src/core/operations/generated/types.ts
|
|
4
|
+
var Blob_Activities_Select_Column = /* @__PURE__ */ ((Blob_Activities_Select_Column2) => {
|
|
5
|
+
Blob_Activities_Select_Column2["BlobName"] = "blob_name";
|
|
6
|
+
Blob_Activities_Select_Column2["EventIndex"] = "event_index";
|
|
7
|
+
Blob_Activities_Select_Column2["EventType"] = "event_type";
|
|
8
|
+
Blob_Activities_Select_Column2["Timestamp"] = "timestamp";
|
|
9
|
+
Blob_Activities_Select_Column2["TransactionHash"] = "transaction_hash";
|
|
10
|
+
Blob_Activities_Select_Column2["TransactionVersion"] = "transaction_version";
|
|
11
|
+
return Blob_Activities_Select_Column2;
|
|
12
|
+
})(Blob_Activities_Select_Column || {});
|
|
13
|
+
var Blobs_Select_Column = /* @__PURE__ */ ((Blobs_Select_Column2) => {
|
|
14
|
+
Blobs_Select_Column2["BlobCommitment"] = "blob_commitment";
|
|
15
|
+
Blobs_Select_Column2["BlobName"] = "blob_name";
|
|
16
|
+
Blobs_Select_Column2["CreatedAt"] = "created_at";
|
|
17
|
+
Blobs_Select_Column2["ExpiresAt"] = "expires_at";
|
|
18
|
+
Blobs_Select_Column2["IsDeleted"] = "is_deleted";
|
|
19
|
+
Blobs_Select_Column2["IsWritten"] = "is_written";
|
|
20
|
+
Blobs_Select_Column2["NumChunksets"] = "num_chunksets";
|
|
21
|
+
Blobs_Select_Column2["Owner"] = "owner";
|
|
22
|
+
Blobs_Select_Column2["PlacementGroup"] = "placement_group";
|
|
23
|
+
Blobs_Select_Column2["Size"] = "size";
|
|
24
|
+
Blobs_Select_Column2["SliceAddress"] = "slice_address";
|
|
25
|
+
Blobs_Select_Column2["UpdatedAt"] = "updated_at";
|
|
26
|
+
return Blobs_Select_Column2;
|
|
27
|
+
})(Blobs_Select_Column || {});
|
|
28
|
+
var Cursor_Ordering = /* @__PURE__ */ ((Cursor_Ordering2) => {
|
|
29
|
+
Cursor_Ordering2["Asc"] = "ASC";
|
|
30
|
+
Cursor_Ordering2["Desc"] = "DESC";
|
|
31
|
+
return Cursor_Ordering2;
|
|
32
|
+
})(Cursor_Ordering || {});
|
|
33
|
+
var Order_By = /* @__PURE__ */ ((Order_By2) => {
|
|
34
|
+
Order_By2["Asc"] = "asc";
|
|
35
|
+
Order_By2["AscNullsFirst"] = "asc_nulls_first";
|
|
36
|
+
Order_By2["AscNullsLast"] = "asc_nulls_last";
|
|
37
|
+
Order_By2["Desc"] = "desc";
|
|
38
|
+
Order_By2["DescNullsFirst"] = "desc_nulls_first";
|
|
39
|
+
Order_By2["DescNullsLast"] = "desc_nulls_last";
|
|
40
|
+
return Order_By2;
|
|
41
|
+
})(Order_By || {});
|
|
42
|
+
var Placement_Group_Slots_Select_Column = /* @__PURE__ */ ((Placement_Group_Slots_Select_Column2) => {
|
|
43
|
+
Placement_Group_Slots_Select_Column2["PlacementGroup"] = "placement_group";
|
|
44
|
+
Placement_Group_Slots_Select_Column2["SlotIndex"] = "slot_index";
|
|
45
|
+
Placement_Group_Slots_Select_Column2["Status"] = "status";
|
|
46
|
+
Placement_Group_Slots_Select_Column2["StorageProvider"] = "storage_provider";
|
|
47
|
+
Placement_Group_Slots_Select_Column2["UpdatedAt"] = "updated_at";
|
|
48
|
+
return Placement_Group_Slots_Select_Column2;
|
|
49
|
+
})(Placement_Group_Slots_Select_Column || {});
|
|
50
|
+
var Processor_Status_Select_Column = /* @__PURE__ */ ((Processor_Status_Select_Column2) => {
|
|
51
|
+
Processor_Status_Select_Column2["LastSuccessVersion"] = "last_success_version";
|
|
52
|
+
Processor_Status_Select_Column2["LastTransactionTimestamp"] = "last_transaction_timestamp";
|
|
53
|
+
Processor_Status_Select_Column2["LastUpdated"] = "last_updated";
|
|
54
|
+
return Processor_Status_Select_Column2;
|
|
55
|
+
})(Processor_Status_Select_Column || {});
|
|
56
|
+
export {
|
|
57
|
+
Blob_Activities_Select_Column,
|
|
58
|
+
Blobs_Select_Column,
|
|
59
|
+
Cursor_Ordering,
|
|
60
|
+
Order_By,
|
|
61
|
+
Placement_Group_Slots_Select_Column,
|
|
62
|
+
Processor_Status_Select_Column
|
|
63
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createShelbyIndexerClient,
|
|
3
3
|
getShelbyIndexerClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-KYQRWJ3U.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Blob_Activities_Select_Column,
|
|
7
7
|
Blobs_Select_Column,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
Processor_Status_Select_Column,
|
|
20
20
|
getSdk
|
|
21
21
|
} from "../../chunk-TET3DJEO.mjs";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-IKRWBDG5.mjs";
|
|
23
23
|
import "../../chunk-7OV5ZYW6.mjs";
|
|
24
24
|
import "../../chunk-7P6ASYW6.mjs";
|
|
25
25
|
export {
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyNodeClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-AEDVYYGD.mjs";
|
|
4
|
+
import "../../chunk-3PCG7PNP.mjs";
|
|
5
|
+
import "../../chunk-WJTVYLKW.mjs";
|
|
6
6
|
import "../../chunk-XNEIWM4O.mjs";
|
|
7
|
+
import "../../chunk-NHWWORCH.mjs";
|
|
7
8
|
import "../../chunk-XRLHLAOW.mjs";
|
|
8
9
|
import "../../chunk-OGKZ575S.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-LW2Y326E.mjs";
|
|
10
|
+
import "../../chunk-SSE4MFNN.mjs";
|
|
11
|
+
import "../../chunk-BKL7NCUB.mjs";
|
|
12
12
|
import "../../chunk-TVLV7C74.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-KYQRWJ3U.mjs";
|
|
14
14
|
import "../../chunk-TET3DJEO.mjs";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-Z4FZ7W6L.mjs";
|
|
15
|
+
import "../../chunk-IKRWBDG5.mjs";
|
|
17
16
|
import "../../chunk-I6NG5GNL.mjs";
|
|
18
17
|
import "../../chunk-IE6LYVIA.mjs";
|
|
19
18
|
import "../../chunk-3NRBHSMQ.mjs";
|
|
@@ -22,6 +21,7 @@ import "../../chunk-UEZNZBJO.mjs";
|
|
|
22
21
|
import "../../chunk-JTXYKO3U.mjs";
|
|
23
22
|
import "../../chunk-AUQDI5BS.mjs";
|
|
24
23
|
import "../../chunk-7OV5ZYW6.mjs";
|
|
24
|
+
import "../../chunk-Z4FZ7W6L.mjs";
|
|
25
25
|
import "../../chunk-7P6ASYW6.mjs";
|
|
26
26
|
export {
|
|
27
27
|
ShelbyNodeClient
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import "../../chunk-MB7C7VQF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyNodeClient
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-AEDVYYGD.mjs";
|
|
5
|
+
import "../../chunk-3PCG7PNP.mjs";
|
|
6
|
+
import "../../chunk-WJTVYLKW.mjs";
|
|
7
7
|
import "../../chunk-XNEIWM4O.mjs";
|
|
8
|
+
import "../../chunk-NHWWORCH.mjs";
|
|
8
9
|
import "../../chunk-XRLHLAOW.mjs";
|
|
9
10
|
import "../../chunk-OGKZ575S.mjs";
|
|
10
|
-
import "../../chunk-NHWWORCH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ShelbyMetadataClient
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-SSE4MFNN.mjs";
|
|
14
|
+
import "../../chunk-BKL7NCUB.mjs";
|
|
15
15
|
import "../../chunk-TVLV7C74.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-KYQRWJ3U.mjs";
|
|
17
17
|
import "../../chunk-TET3DJEO.mjs";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-Z4FZ7W6L.mjs";
|
|
18
|
+
import "../../chunk-IKRWBDG5.mjs";
|
|
20
19
|
import "../../chunk-I6NG5GNL.mjs";
|
|
21
20
|
import "../../chunk-IE6LYVIA.mjs";
|
|
22
21
|
import "../../chunk-3NRBHSMQ.mjs";
|
|
@@ -25,6 +24,7 @@ import "../../chunk-UEZNZBJO.mjs";
|
|
|
25
24
|
import "../../chunk-JTXYKO3U.mjs";
|
|
26
25
|
import "../../chunk-AUQDI5BS.mjs";
|
|
27
26
|
import "../../chunk-7OV5ZYW6.mjs";
|
|
27
|
+
import "../../chunk-Z4FZ7W6L.mjs";
|
|
28
28
|
import "../../chunk-7P6ASYW6.mjs";
|
|
29
29
|
export {
|
|
30
30
|
ShelbyMetadataClient,
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-MB7C7VQF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyNodeClient
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AEDVYYGD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
testUtil_exports
|
|
7
7
|
} from "../chunk-A4IG6GSE.mjs";
|
|
@@ -9,12 +9,15 @@ import "../chunk-EM67QTMR.mjs";
|
|
|
9
9
|
import "../chunk-WTICJPDB.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ShelbyClient
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-3PCG7PNP.mjs";
|
|
13
13
|
import {
|
|
14
14
|
MissingTransactionSubmitterError,
|
|
15
15
|
ShelbyBlobClient
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-WJTVYLKW.mjs";
|
|
17
17
|
import "../chunk-XNEIWM4O.mjs";
|
|
18
|
+
import {
|
|
19
|
+
ReedSolomonErasureCodingProvider
|
|
20
|
+
} from "../chunk-NHWWORCH.mjs";
|
|
18
21
|
import {
|
|
19
22
|
createDefaultErasureCodingProvider,
|
|
20
23
|
defaultErasureCodingConfig,
|
|
@@ -24,26 +27,23 @@ import {
|
|
|
24
27
|
import {
|
|
25
28
|
ClayErasureCodingProvider
|
|
26
29
|
} from "../chunk-OGKZ575S.mjs";
|
|
27
|
-
import {
|
|
28
|
-
ReedSolomonErasureCodingProvider
|
|
29
|
-
} from "../chunk-NHWWORCH.mjs";
|
|
30
30
|
import "../chunk-Z7RFCADT.mjs";
|
|
31
31
|
import {
|
|
32
32
|
ShelbyMetadataClient
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-SSE4MFNN.mjs";
|
|
34
34
|
import {
|
|
35
35
|
ShelbyMicropaymentChannelClient
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-BUWAD67L.mjs";
|
|
37
37
|
import "../chunk-QQ57OGQ2.mjs";
|
|
38
38
|
import "../chunk-ZHXCVRZX.mjs";
|
|
39
39
|
import "../chunk-AD2G3QYD.mjs";
|
|
40
40
|
import "../chunk-MQUVYMNQ.mjs";
|
|
41
41
|
import {
|
|
42
42
|
ShelbyPlacementGroupClient
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-NI6XBZLI.mjs";
|
|
44
44
|
import {
|
|
45
45
|
ShelbyRPCClient
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-BKL7NCUB.mjs";
|
|
47
47
|
import {
|
|
48
48
|
SenderBuiltMicropayment,
|
|
49
49
|
StaleChannelStateError
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
createShelbyIndexerClient,
|
|
53
53
|
getShelbyIndexerClient
|
|
54
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-KYQRWJ3U.mjs";
|
|
55
55
|
import {
|
|
56
56
|
Blob_Activities_Select_Column,
|
|
57
57
|
Blobs_Select_Column,
|
|
@@ -69,11 +69,7 @@ import {
|
|
|
69
69
|
Processor_Status_Select_Column,
|
|
70
70
|
getSdk
|
|
71
71
|
} from "../chunk-TET3DJEO.mjs";
|
|
72
|
-
import "../chunk-
|
|
73
|
-
import {
|
|
74
|
-
BlobNameSchema,
|
|
75
|
-
ChunkKey
|
|
76
|
-
} from "../chunk-Z4FZ7W6L.mjs";
|
|
72
|
+
import "../chunk-IKRWBDG5.mjs";
|
|
77
73
|
import {
|
|
78
74
|
isShelbyNetwork,
|
|
79
75
|
shelbyNetworks
|
|
@@ -152,6 +148,10 @@ import {
|
|
|
152
148
|
isBlobExpiredError,
|
|
153
149
|
isBlobNotFoundError
|
|
154
150
|
} from "../chunk-CQ6QPIZK.mjs";
|
|
151
|
+
import {
|
|
152
|
+
BlobNameSchema,
|
|
153
|
+
ChunkKey
|
|
154
|
+
} from "../chunk-Z4FZ7W6L.mjs";
|
|
155
155
|
import "../chunk-7P6ASYW6.mjs";
|
|
156
156
|
export {
|
|
157
157
|
BlobCommitmentsSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelby-protocol/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"graphql-tag": "^2.12.6",
|
|
26
26
|
"p-limit": "7.1.1",
|
|
27
27
|
"zod": "^3.24.3",
|
|
28
|
-
"@shelby-protocol/
|
|
29
|
-
"@shelby-protocol/
|
|
28
|
+
"@shelby-protocol/reed-solomon": "0.0.1",
|
|
29
|
+
"@shelby-protocol/clay-codes": "0.0.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@aptos-labs/ts-sdk": "5.2.1",
|