@inodra/sui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +237 -0
- package/bin/inodra-sui.mjs +2 -0
- package/dist/chunk-3CBLVI6J.js +426 -0
- package/dist/chunk-3CBLVI6J.js.map +1 -0
- package/dist/chunk-4HKKW5QN.js +80 -0
- package/dist/chunk-4HKKW5QN.js.map +1 -0
- package/dist/chunk-74XGJJJI.js +33 -0
- package/dist/chunk-74XGJJJI.js.map +1 -0
- package/dist/chunk-D6FZYWG7.js +99 -0
- package/dist/chunk-D6FZYWG7.js.map +1 -0
- package/dist/chunk-LZZMTSLH.js +31 -0
- package/dist/chunk-LZZMTSLH.js.map +1 -0
- package/dist/chunk-M3M2L6BW.js +29 -0
- package/dist/chunk-M3M2L6BW.js.map +1 -0
- package/dist/chunk-NSXRC5XW.js +298 -0
- package/dist/chunk-NSXRC5XW.js.map +1 -0
- package/dist/chunk-OGMBYWTG.js +537 -0
- package/dist/chunk-OGMBYWTG.js.map +1 -0
- package/dist/chunk-U6D5LGNF.js +111 -0
- package/dist/chunk-U6D5LGNF.js.map +1 -0
- package/dist/chunk-ZSW3EWGF.js +539 -0
- package/dist/chunk-ZSW3EWGF.js.map +1 -0
- package/dist/cli.js +665 -0
- package/dist/cli.js.map +1 -0
- package/dist/events.cjs +3273 -0
- package/dist/events.cjs.map +1 -0
- package/dist/events.d.cts +47 -0
- package/dist/events.d.ts +47 -0
- package/dist/events.js +2578 -0
- package/dist/events.js.map +1 -0
- package/dist/graphql.cjs +129 -0
- package/dist/graphql.cjs.map +1 -0
- package/dist/graphql.d.cts +36 -0
- package/dist/graphql.d.ts +36 -0
- package/dist/graphql.js +10 -0
- package/dist/graphql.js.map +1 -0
- package/dist/grpc-web.cjs +129 -0
- package/dist/grpc-web.cjs.map +1 -0
- package/dist/grpc-web.d.cts +31 -0
- package/dist/grpc-web.d.ts +31 -0
- package/dist/grpc-web.js +10 -0
- package/dist/grpc-web.js.map +1 -0
- package/dist/grpc.cjs +131 -0
- package/dist/grpc.cjs.map +1 -0
- package/dist/grpc.d.cts +34 -0
- package/dist/grpc.d.ts +34 -0
- package/dist/grpc.js +10 -0
- package/dist/grpc.js.map +1 -0
- package/dist/index-CGBN_EI5.d.ts +4800 -0
- package/dist/index-CVO2Kj8a.d.cts +4800 -0
- package/dist/index.cjs +4723 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +504 -0
- package/dist/index.d.ts +504 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/manage.cjs +376 -0
- package/dist/manage.cjs.map +1 -0
- package/dist/manage.d.cts +2 -0
- package/dist/manage.d.ts +2 -0
- package/dist/manage.js +8 -0
- package/dist/manage.js.map +1 -0
- package/dist/network-CEg2MJY3.d.cts +60 -0
- package/dist/network-CEg2MJY3.d.ts +60 -0
- package/dist/node.cjs +4759 -0
- package/dist/node.cjs.map +1 -0
- package/dist/node.d.cts +28 -0
- package/dist/node.d.ts +28 -0
- package/dist/node.js +73 -0
- package/dist/node.js.map +1 -0
- package/dist/reflection-Bx44-Fs1.d.ts +4639 -0
- package/dist/reflection-Cf7WFH6H.d.cts +4639 -0
- package/dist/reflection-FEGYA7DU.js +9 -0
- package/dist/reflection-FEGYA7DU.js.map +1 -0
- package/dist/runtime-OWKF3LZ7.js +37 -0
- package/dist/runtime-OWKF3LZ7.js.map +1 -0
- package/dist/warp.cjs +633 -0
- package/dist/warp.cjs.map +1 -0
- package/dist/warp.d.cts +195 -0
- package/dist/warp.d.ts +195 -0
- package/dist/warp.js +12 -0
- package/dist/warp.js.map +1 -0
- package/dist/webhooks.cjs +104 -0
- package/dist/webhooks.cjs.map +1 -0
- package/dist/webhooks.d.cts +35 -0
- package/dist/webhooks.d.ts +35 -0
- package/dist/webhooks.js +7 -0
- package/dist/webhooks.js.map +1 -0
- package/llms.txt +189 -0
- package/package.json +119 -0
package/dist/node.d.cts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Inodra as Inodra$1 } from './index.cjs';
|
|
2
|
+
export { AccountNamespace, CatalogEventMessage, CatalogEventStream, CatalogNamespace, ConnectOptions, ConnectWebSocketOptions, DataNamespace, EventsNamespace, InodraAuthenticationError, InodraEndpointOverrides, InodraError, InodraOptions, InodraRateLimitError, InodraTimeoutError, InodraWebhookSignatureError, SDK_VERSION, StreamCatalogEventOptions, WarpNamespace, WebhooksNamespace } from './index.cjs';
|
|
3
|
+
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
4
|
+
export { A as AuthCredentials, b as INODRA_ENDPOINTS, I as InodraAuth, a as InodraNetwork, r as resolveAuth } from './network-CEg2MJY3.cjs';
|
|
5
|
+
export { C as CreateAddressStreamInput, a as CreateAddressWebhookInput, b as CreateCoinStreamInput, c as CreateCoinWebhookInput, d as CreateEventStreamInput, e as CreateEventWebhookInput, f as CreateObjectStreamInput, g as CreateObjectWebhookInput, h as CreateStreamResponse, i as CreateWebhookResponse, D as DeleteStreamResponse, j as DeleteWebhookResponse, I as InodraHttpClient, k as InodraHttpClientOptions, l as InodraManagementClient, m as InodraManagementClientOptions, n as InodraResponseMeta, L as ListStreamsResponse, o as ListWebhooksResponse, P as Page, R as RequestOptions, U as UpdateStreamInput, p as UpdateStreamResponse, q as UpdateWebhookInput, r as UpdateWebhookResponse, W as WarpStream, s as Webhook, t as paginate } from './index-CVO2Kj8a.cjs';
|
|
6
|
+
export { IterateStreamOptions, WarpConnectedInfo, WarpEvent, WarpSseStream, WarpSseStreamOptions, WarpStreamEvents, WarpStreamOptions, WarpWebSocketStream, WarpWebSocketStreamOptions, iterateStream } from './warp.cjs';
|
|
7
|
+
export { VerifyWebhookSignatureOptions, verifyWebhookSignature } from './webhooks.cjs';
|
|
8
|
+
import '@mysten/sui/graphql';
|
|
9
|
+
import 'zod';
|
|
10
|
+
import 'zod/v4/core';
|
|
11
|
+
import './reflection-Cf7WFH6H.cjs';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Node.js entry — identical to the root `Inodra` client, but the `grpc`
|
|
15
|
+
* namespace uses native HTTP/2 gRPC (@grpc/grpc-js) instead of the
|
|
16
|
+
* fetch-based gRPC-Web transport.
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { Inodra } from "@inodra/sui/node";
|
|
20
|
+
* const inodra = new Inodra({ auth: { apiKey } });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
declare class Inodra extends Inodra$1 {
|
|
25
|
+
protected createGrpcClient(): SuiGrpcClient;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { Inodra };
|
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Inodra as Inodra$1 } from './index.js';
|
|
2
|
+
export { AccountNamespace, CatalogEventMessage, CatalogEventStream, CatalogNamespace, ConnectOptions, ConnectWebSocketOptions, DataNamespace, EventsNamespace, InodraAuthenticationError, InodraEndpointOverrides, InodraError, InodraOptions, InodraRateLimitError, InodraTimeoutError, InodraWebhookSignatureError, SDK_VERSION, StreamCatalogEventOptions, WarpNamespace, WebhooksNamespace } from './index.js';
|
|
3
|
+
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
4
|
+
export { A as AuthCredentials, b as INODRA_ENDPOINTS, I as InodraAuth, a as InodraNetwork, r as resolveAuth } from './network-CEg2MJY3.js';
|
|
5
|
+
export { C as CreateAddressStreamInput, a as CreateAddressWebhookInput, b as CreateCoinStreamInput, c as CreateCoinWebhookInput, d as CreateEventStreamInput, e as CreateEventWebhookInput, f as CreateObjectStreamInput, g as CreateObjectWebhookInput, h as CreateStreamResponse, i as CreateWebhookResponse, D as DeleteStreamResponse, j as DeleteWebhookResponse, I as InodraHttpClient, k as InodraHttpClientOptions, l as InodraManagementClient, m as InodraManagementClientOptions, n as InodraResponseMeta, L as ListStreamsResponse, o as ListWebhooksResponse, P as Page, R as RequestOptions, U as UpdateStreamInput, p as UpdateStreamResponse, q as UpdateWebhookInput, r as UpdateWebhookResponse, W as WarpStream, s as Webhook, t as paginate } from './index-CGBN_EI5.js';
|
|
6
|
+
export { IterateStreamOptions, WarpConnectedInfo, WarpEvent, WarpSseStream, WarpSseStreamOptions, WarpStreamEvents, WarpStreamOptions, WarpWebSocketStream, WarpWebSocketStreamOptions, iterateStream } from './warp.js';
|
|
7
|
+
export { VerifyWebhookSignatureOptions, verifyWebhookSignature } from './webhooks.js';
|
|
8
|
+
import '@mysten/sui/graphql';
|
|
9
|
+
import 'zod';
|
|
10
|
+
import 'zod/v4/core';
|
|
11
|
+
import './reflection-Bx44-Fs1.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Node.js entry — identical to the root `Inodra` client, but the `grpc`
|
|
15
|
+
* namespace uses native HTTP/2 gRPC (@grpc/grpc-js) instead of the
|
|
16
|
+
* fetch-based gRPC-Web transport.
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { Inodra } from "@inodra/sui/node";
|
|
20
|
+
* const inodra = new Inodra({ auth: { apiKey } });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
declare class Inodra extends Inodra$1 {
|
|
25
|
+
protected createGrpcClient(): SuiGrpcClient;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { Inodra };
|
package/dist/node.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AccountNamespace,
|
|
3
|
+
CatalogNamespace,
|
|
4
|
+
DataNamespace,
|
|
5
|
+
EventsNamespace,
|
|
6
|
+
Inodra,
|
|
7
|
+
WarpNamespace,
|
|
8
|
+
WebhooksNamespace,
|
|
9
|
+
paginate
|
|
10
|
+
} from "./chunk-OGMBYWTG.js";
|
|
11
|
+
import {
|
|
12
|
+
verifyWebhookSignature
|
|
13
|
+
} from "./chunk-4HKKW5QN.js";
|
|
14
|
+
import {
|
|
15
|
+
createInodraGrpcClient
|
|
16
|
+
} from "./chunk-LZZMTSLH.js";
|
|
17
|
+
import "./chunk-M3M2L6BW.js";
|
|
18
|
+
import "./chunk-74XGJJJI.js";
|
|
19
|
+
import {
|
|
20
|
+
WarpSseStream,
|
|
21
|
+
WarpWebSocketStream,
|
|
22
|
+
iterateStream
|
|
23
|
+
} from "./chunk-ZSW3EWGF.js";
|
|
24
|
+
import {
|
|
25
|
+
InodraAuthenticationError,
|
|
26
|
+
InodraError,
|
|
27
|
+
InodraHttpClient,
|
|
28
|
+
InodraManagementClient,
|
|
29
|
+
InodraRateLimitError,
|
|
30
|
+
InodraTimeoutError,
|
|
31
|
+
InodraWebhookSignatureError
|
|
32
|
+
} from "./chunk-NSXRC5XW.js";
|
|
33
|
+
import {
|
|
34
|
+
INODRA_ENDPOINTS,
|
|
35
|
+
SDK_VERSION,
|
|
36
|
+
resolveAuth
|
|
37
|
+
} from "./chunk-U6D5LGNF.js";
|
|
38
|
+
|
|
39
|
+
// src/node.ts
|
|
40
|
+
var Inodra2 = class extends Inodra {
|
|
41
|
+
createGrpcClient() {
|
|
42
|
+
return createInodraGrpcClient({
|
|
43
|
+
auth: this.auth,
|
|
44
|
+
network: this.network,
|
|
45
|
+
host: this.options.endpoints?.grpc
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
AccountNamespace,
|
|
51
|
+
CatalogNamespace,
|
|
52
|
+
DataNamespace,
|
|
53
|
+
EventsNamespace,
|
|
54
|
+
INODRA_ENDPOINTS,
|
|
55
|
+
Inodra2 as Inodra,
|
|
56
|
+
InodraAuthenticationError,
|
|
57
|
+
InodraError,
|
|
58
|
+
InodraHttpClient,
|
|
59
|
+
InodraManagementClient,
|
|
60
|
+
InodraRateLimitError,
|
|
61
|
+
InodraTimeoutError,
|
|
62
|
+
InodraWebhookSignatureError,
|
|
63
|
+
SDK_VERSION,
|
|
64
|
+
WarpNamespace,
|
|
65
|
+
WarpSseStream,
|
|
66
|
+
WarpWebSocketStream,
|
|
67
|
+
WebhooksNamespace,
|
|
68
|
+
iterateStream,
|
|
69
|
+
paginate,
|
|
70
|
+
resolveAuth,
|
|
71
|
+
verifyWebhookSignature
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=node.js.map
|
package/dist/node.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/node.ts"],"sourcesContent":["/**\n * Node.js entry — identical to the root `Inodra` client, but the `grpc`\n * namespace uses native HTTP/2 gRPC (@grpc/grpc-js) instead of the\n * fetch-based gRPC-Web transport.\n *\n * ```ts\n * import { Inodra } from \"@inodra/sui/node\";\n * const inodra = new Inodra({ auth: { apiKey } });\n * ```\n */\nimport { Inodra as InodraBase } from \"./client.js\";\nimport { createInodraGrpcClient } from \"./grpc/index.js\";\nimport type { SuiGrpcClient } from \"./grpc/index.js\";\n\nexport * from \"./index.js\";\n\nexport class Inodra extends InodraBase {\n\tprotected override createGrpcClient(): SuiGrpcClient {\n\t\treturn createInodraGrpcClient({\n\t\t\tauth: this.auth,\n\t\t\tnetwork: this.network,\n\t\t\thost: this.options.endpoints?.grpc,\n\t\t});\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,IAAMA,UAAN,cAAqB,OAAW;AAAA,EACnB,mBAAkC;AACpD,WAAO,uBAAuB;AAAA,MAC7B,MAAM,KAAK;AAAA,MACX,SAAS,KAAK;AAAA,MACd,MAAM,KAAK,QAAQ,WAAW;AAAA,IAC/B,CAAC;AAAA,EACF;AACD;","names":["Inodra"]}
|