@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.
Files changed (91) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +237 -0
  3. package/bin/inodra-sui.mjs +2 -0
  4. package/dist/chunk-3CBLVI6J.js +426 -0
  5. package/dist/chunk-3CBLVI6J.js.map +1 -0
  6. package/dist/chunk-4HKKW5QN.js +80 -0
  7. package/dist/chunk-4HKKW5QN.js.map +1 -0
  8. package/dist/chunk-74XGJJJI.js +33 -0
  9. package/dist/chunk-74XGJJJI.js.map +1 -0
  10. package/dist/chunk-D6FZYWG7.js +99 -0
  11. package/dist/chunk-D6FZYWG7.js.map +1 -0
  12. package/dist/chunk-LZZMTSLH.js +31 -0
  13. package/dist/chunk-LZZMTSLH.js.map +1 -0
  14. package/dist/chunk-M3M2L6BW.js +29 -0
  15. package/dist/chunk-M3M2L6BW.js.map +1 -0
  16. package/dist/chunk-NSXRC5XW.js +298 -0
  17. package/dist/chunk-NSXRC5XW.js.map +1 -0
  18. package/dist/chunk-OGMBYWTG.js +537 -0
  19. package/dist/chunk-OGMBYWTG.js.map +1 -0
  20. package/dist/chunk-U6D5LGNF.js +111 -0
  21. package/dist/chunk-U6D5LGNF.js.map +1 -0
  22. package/dist/chunk-ZSW3EWGF.js +539 -0
  23. package/dist/chunk-ZSW3EWGF.js.map +1 -0
  24. package/dist/cli.js +665 -0
  25. package/dist/cli.js.map +1 -0
  26. package/dist/events.cjs +3273 -0
  27. package/dist/events.cjs.map +1 -0
  28. package/dist/events.d.cts +47 -0
  29. package/dist/events.d.ts +47 -0
  30. package/dist/events.js +2578 -0
  31. package/dist/events.js.map +1 -0
  32. package/dist/graphql.cjs +129 -0
  33. package/dist/graphql.cjs.map +1 -0
  34. package/dist/graphql.d.cts +36 -0
  35. package/dist/graphql.d.ts +36 -0
  36. package/dist/graphql.js +10 -0
  37. package/dist/graphql.js.map +1 -0
  38. package/dist/grpc-web.cjs +129 -0
  39. package/dist/grpc-web.cjs.map +1 -0
  40. package/dist/grpc-web.d.cts +31 -0
  41. package/dist/grpc-web.d.ts +31 -0
  42. package/dist/grpc-web.js +10 -0
  43. package/dist/grpc-web.js.map +1 -0
  44. package/dist/grpc.cjs +131 -0
  45. package/dist/grpc.cjs.map +1 -0
  46. package/dist/grpc.d.cts +34 -0
  47. package/dist/grpc.d.ts +34 -0
  48. package/dist/grpc.js +10 -0
  49. package/dist/grpc.js.map +1 -0
  50. package/dist/index-CGBN_EI5.d.ts +4800 -0
  51. package/dist/index-CVO2Kj8a.d.cts +4800 -0
  52. package/dist/index.cjs +4723 -0
  53. package/dist/index.cjs.map +1 -0
  54. package/dist/index.d.cts +504 -0
  55. package/dist/index.d.ts +504 -0
  56. package/dist/index.js +59 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/manage.cjs +376 -0
  59. package/dist/manage.cjs.map +1 -0
  60. package/dist/manage.d.cts +2 -0
  61. package/dist/manage.d.ts +2 -0
  62. package/dist/manage.js +8 -0
  63. package/dist/manage.js.map +1 -0
  64. package/dist/network-CEg2MJY3.d.cts +60 -0
  65. package/dist/network-CEg2MJY3.d.ts +60 -0
  66. package/dist/node.cjs +4759 -0
  67. package/dist/node.cjs.map +1 -0
  68. package/dist/node.d.cts +28 -0
  69. package/dist/node.d.ts +28 -0
  70. package/dist/node.js +73 -0
  71. package/dist/node.js.map +1 -0
  72. package/dist/reflection-Bx44-Fs1.d.ts +4639 -0
  73. package/dist/reflection-Cf7WFH6H.d.cts +4639 -0
  74. package/dist/reflection-FEGYA7DU.js +9 -0
  75. package/dist/reflection-FEGYA7DU.js.map +1 -0
  76. package/dist/runtime-OWKF3LZ7.js +37 -0
  77. package/dist/runtime-OWKF3LZ7.js.map +1 -0
  78. package/dist/warp.cjs +633 -0
  79. package/dist/warp.cjs.map +1 -0
  80. package/dist/warp.d.cts +195 -0
  81. package/dist/warp.d.ts +195 -0
  82. package/dist/warp.js +12 -0
  83. package/dist/warp.js.map +1 -0
  84. package/dist/webhooks.cjs +104 -0
  85. package/dist/webhooks.cjs.map +1 -0
  86. package/dist/webhooks.d.cts +35 -0
  87. package/dist/webhooks.d.ts +35 -0
  88. package/dist/webhooks.js +7 -0
  89. package/dist/webhooks.js.map +1 -0
  90. package/llms.txt +189 -0
  91. package/package.json +119 -0
@@ -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
@@ -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"]}