@shelby-protocol/sdk 0.0.1-experimental.4 → 0.0.1

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 (98) hide show
  1. package/README.md +41 -0
  2. package/dist/browser/index.d.ts +17 -8
  3. package/dist/browser/index.mjs +83 -34
  4. package/dist/chunk-3ZDXWPYC.mjs +65 -0
  5. package/dist/chunk-6MDQI7PW.mjs +177 -0
  6. package/dist/chunk-75VHXY5P.mjs +48 -0
  7. package/dist/chunk-APML3CGJ.mjs +176 -0
  8. package/dist/chunk-DLMDDEWF.mjs +112 -0
  9. package/dist/{chunk-C33H3C3N.mjs → chunk-EAPAG4L7.mjs} +1 -1
  10. package/dist/{chunk-GGYTHP5F.mjs → chunk-FIFKKWXV.mjs} +19 -17
  11. package/dist/chunk-HPVCKAN2.mjs +41 -0
  12. package/dist/{chunk-2FF5FICZ.mjs → chunk-JSR44EDC.mjs} +96 -42
  13. package/dist/chunk-KBUWZXFA.mjs +92 -0
  14. package/dist/chunk-LTV26KU4.mjs +141 -0
  15. package/dist/chunk-NTJSNNA7.mjs +175 -0
  16. package/dist/{chunk-QEMIORTL.mjs → chunk-OTBLZL2S.mjs} +1 -1
  17. package/dist/chunk-RBFWGDMY.mjs +30 -0
  18. package/dist/chunk-VRLIOKWG.mjs +11 -0
  19. package/dist/chunk-XGMJ4CG4.mjs +384 -0
  20. package/dist/chunk-Z7RFCADT.mjs +0 -0
  21. package/dist/chunk-ZPW742E7.mjs +28 -0
  22. package/dist/clay-codes-Ce9EmXfa.d.ts +129 -0
  23. package/dist/core/blobs.mjs +1 -1
  24. package/dist/core/chunk.d.ts +34 -0
  25. package/dist/core/chunk.mjs +17 -0
  26. package/dist/core/clients/ShelbyBlobClient.d.ts +121 -89
  27. package/dist/core/clients/ShelbyBlobClient.mjs +11 -3
  28. package/dist/core/clients/ShelbyClient.d.ts +71 -30
  29. package/dist/core/clients/ShelbyClient.mjs +14 -9
  30. package/dist/core/clients/ShelbyClientConfig.d.ts +43 -9
  31. package/dist/core/clients/ShelbyClientConfig.mjs +1 -0
  32. package/dist/core/clients/ShelbyRPCClient.d.ts +47 -20
  33. package/dist/core/clients/ShelbyRPCClient.mjs +10 -3
  34. package/dist/core/clients/index.d.ts +10 -5
  35. package/dist/core/clients/index.mjs +16 -10
  36. package/dist/core/clients/utils.d.ts +7 -0
  37. package/dist/core/clients/utils.mjs +7 -0
  38. package/dist/core/commitments.d.ts +18 -18
  39. package/dist/core/commitments.mjs +7 -5
  40. package/dist/core/constants.d.ts +24 -19
  41. package/dist/core/constants.mjs +15 -15
  42. package/dist/core/erasure/clay-codes.d.ts +2 -0
  43. package/dist/core/erasure/clay-codes.mjs +9 -0
  44. package/dist/core/erasure/constants.d.ts +48 -0
  45. package/dist/core/erasure/constants.mjs +17 -0
  46. package/dist/core/erasure/default.d.ts +6 -0
  47. package/dist/core/erasure/default.mjs +9 -0
  48. package/dist/core/erasure/index.d.ts +4 -0
  49. package/dist/core/erasure/index.mjs +27 -0
  50. package/dist/core/erasure/provider.d.ts +2 -0
  51. package/dist/core/erasure/provider.mjs +0 -0
  52. package/dist/core/erasure/reed-solomon.d.ts +2 -0
  53. package/dist/core/erasure/reed-solomon.mjs +7 -0
  54. package/dist/core/erasure/utils.d.ts +12 -0
  55. package/dist/core/erasure/utils.mjs +33 -0
  56. package/dist/core/index.d.ts +17 -8
  57. package/dist/core/index.mjs +83 -34
  58. package/dist/core/layout.mjs +4 -2
  59. package/dist/core/networks.d.ts +7 -0
  60. package/dist/core/networks.mjs +9 -0
  61. package/dist/core/operations/generated/sdk.d.ts +686 -0
  62. package/dist/core/operations/generated/sdk.mjs +23 -0
  63. package/dist/core/operations/index.d.ts +31 -0
  64. package/dist/core/operations/index.mjs +12 -0
  65. package/dist/core/strings.d.ts +6 -0
  66. package/dist/core/strings.mjs +9 -0
  67. package/dist/core/types/blobs.d.ts +49 -79
  68. package/dist/core/types/encodings.d.ts +5 -13
  69. package/dist/core/types/encodings.mjs +0 -1
  70. package/dist/core/types/index.d.ts +4 -2
  71. package/dist/core/types/index.mjs +1 -1
  72. package/dist/core/types/placement_groups.d.ts +15 -0
  73. package/dist/core/types/placement_groups.mjs +0 -0
  74. package/dist/core/types/storage_providers.d.ts +31 -0
  75. package/dist/core/types/storage_providers.mjs +1 -0
  76. package/dist/core/utils.d.ts +15 -3
  77. package/dist/core/utils.mjs +5 -3
  78. package/dist/node/clients/ShelbyMetadataClient.d.ts +72 -0
  79. package/dist/node/clients/ShelbyMetadataClient.mjs +9 -0
  80. package/dist/node/clients/ShelbyNodeClient.d.ts +8 -3
  81. package/dist/node/clients/ShelbyNodeClient.mjs +15 -10
  82. package/dist/node/clients/index.d.ts +12 -5
  83. package/dist/node/clients/index.mjs +20 -11
  84. package/dist/node/index.d.ts +18 -8
  85. package/dist/node/index.mjs +89 -36
  86. package/package.json +25 -12
  87. package/dist/chunk-5Z3RVWU3.mjs +0 -67
  88. package/dist/chunk-B3CB2YEO.mjs +0 -318
  89. package/dist/chunk-D2FERD4A.mjs +0 -39
  90. package/dist/chunk-G263DBCY.mjs +0 -105
  91. package/dist/chunk-P7BVGLTV.mjs +0 -32
  92. package/dist/chunk-QM5BVKLD.mjs +0 -109
  93. package/dist/core/erasure.d.ts +0 -6
  94. package/dist/core/erasure.mjs +0 -7
  95. /package/dist/{chunk-7S6RVKYB.mjs → chunk-MB7C7VQF.mjs} +0 -0
  96. /package/dist/{chunk-IHTPXUYI.mjs → chunk-MQUVYMNQ.mjs} +0 -0
  97. /package/dist/{chunk-PLUDE5C3.mjs → chunk-RNXGC54D.mjs} +0 -0
  98. /package/dist/{chunk-QKT5R735.mjs → chunk-TUANYVZQ.mjs} +0 -0
@@ -0,0 +1,686 @@
1
+ import * as graphql from 'graphql';
2
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
3
+
4
+ type Maybe<T> = T | null;
5
+ type InputMaybe<T> = Maybe<T>;
6
+ type Exact<T extends {
7
+ [key: string]: unknown;
8
+ }> = {
9
+ [K in keyof T]: T[K];
10
+ };
11
+ type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
12
+ [SubKey in K]?: Maybe<T[SubKey]>;
13
+ };
14
+ type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
15
+ [SubKey in K]: Maybe<T[SubKey]>;
16
+ };
17
+ type MakeEmpty<T extends {
18
+ [key: string]: unknown;
19
+ }, K extends keyof T> = {
20
+ [_ in K]?: never;
21
+ };
22
+ type Incremental<T> = T | {
23
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
24
+ };
25
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
26
+ /** All built-in and custom scalars, mapped to their actual values */
27
+ type Scalars = {
28
+ ID: {
29
+ input: string;
30
+ output: string;
31
+ };
32
+ String: {
33
+ input: string;
34
+ output: string;
35
+ };
36
+ Boolean: {
37
+ input: boolean;
38
+ output: boolean;
39
+ };
40
+ Int: {
41
+ input: number;
42
+ output: number;
43
+ };
44
+ Float: {
45
+ input: number;
46
+ output: number;
47
+ };
48
+ bigint: {
49
+ input: any;
50
+ output: any;
51
+ };
52
+ numeric: {
53
+ input: any;
54
+ output: any;
55
+ };
56
+ timestamp: {
57
+ input: any;
58
+ output: any;
59
+ };
60
+ };
61
+ /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */
62
+ type String_Comparison_Exp = {
63
+ _eq?: InputMaybe<Scalars['String']['input']>;
64
+ _gt?: InputMaybe<Scalars['String']['input']>;
65
+ _gte?: InputMaybe<Scalars['String']['input']>;
66
+ /** does the column match the given case-insensitive pattern */
67
+ _ilike?: InputMaybe<Scalars['String']['input']>;
68
+ _in?: InputMaybe<Array<Scalars['String']['input']>>;
69
+ /** does the column match the given POSIX regular expression, case insensitive */
70
+ _iregex?: InputMaybe<Scalars['String']['input']>;
71
+ _is_null?: InputMaybe<Scalars['Boolean']['input']>;
72
+ /** does the column match the given pattern */
73
+ _like?: InputMaybe<Scalars['String']['input']>;
74
+ _lt?: InputMaybe<Scalars['String']['input']>;
75
+ _lte?: InputMaybe<Scalars['String']['input']>;
76
+ _neq?: InputMaybe<Scalars['String']['input']>;
77
+ /** does the column NOT match the given case-insensitive pattern */
78
+ _nilike?: InputMaybe<Scalars['String']['input']>;
79
+ _nin?: InputMaybe<Array<Scalars['String']['input']>>;
80
+ /** does the column NOT match the given POSIX regular expression, case insensitive */
81
+ _niregex?: InputMaybe<Scalars['String']['input']>;
82
+ /** does the column NOT match the given pattern */
83
+ _nlike?: InputMaybe<Scalars['String']['input']>;
84
+ /** does the column NOT match the given POSIX regular expression, case sensitive */
85
+ _nregex?: InputMaybe<Scalars['String']['input']>;
86
+ /** does the column NOT match the given SQL regular expression */
87
+ _nsimilar?: InputMaybe<Scalars['String']['input']>;
88
+ /** does the column match the given POSIX regular expression, case sensitive */
89
+ _regex?: InputMaybe<Scalars['String']['input']>;
90
+ /** does the column match the given SQL regular expression */
91
+ _similar?: InputMaybe<Scalars['String']['input']>;
92
+ };
93
+ /** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */
94
+ type Bigint_Comparison_Exp = {
95
+ _eq?: InputMaybe<Scalars['bigint']['input']>;
96
+ _gt?: InputMaybe<Scalars['bigint']['input']>;
97
+ _gte?: InputMaybe<Scalars['bigint']['input']>;
98
+ _in?: InputMaybe<Array<Scalars['bigint']['input']>>;
99
+ _is_null?: InputMaybe<Scalars['Boolean']['input']>;
100
+ _lt?: InputMaybe<Scalars['bigint']['input']>;
101
+ _lte?: InputMaybe<Scalars['bigint']['input']>;
102
+ _neq?: InputMaybe<Scalars['bigint']['input']>;
103
+ _nin?: InputMaybe<Array<Scalars['bigint']['input']>>;
104
+ };
105
+ /** columns and relationships of "blob_activities" */
106
+ type Blob_Activities = {
107
+ __typename?: 'blob_activities';
108
+ blob_name: Scalars['String']['output'];
109
+ event_index: Scalars['numeric']['output'];
110
+ event_type: Scalars['String']['output'];
111
+ timestamp: Scalars['timestamp']['output'];
112
+ transaction_hash: Scalars['String']['output'];
113
+ transaction_version: Scalars['numeric']['output'];
114
+ };
115
+ /** Boolean expression to filter rows from the table "blob_activities". All fields are combined with a logical 'AND'. */
116
+ type Blob_Activities_Bool_Exp = {
117
+ _and?: InputMaybe<Array<Blob_Activities_Bool_Exp>>;
118
+ _not?: InputMaybe<Blob_Activities_Bool_Exp>;
119
+ _or?: InputMaybe<Array<Blob_Activities_Bool_Exp>>;
120
+ blob_name?: InputMaybe<String_Comparison_Exp>;
121
+ event_index?: InputMaybe<Numeric_Comparison_Exp>;
122
+ event_type?: InputMaybe<String_Comparison_Exp>;
123
+ timestamp?: InputMaybe<Timestamp_Comparison_Exp>;
124
+ transaction_hash?: InputMaybe<String_Comparison_Exp>;
125
+ transaction_version?: InputMaybe<Numeric_Comparison_Exp>;
126
+ };
127
+ /** Ordering options when selecting data from "blob_activities". */
128
+ type Blob_Activities_Order_By = {
129
+ blob_name?: InputMaybe<Order_By>;
130
+ event_index?: InputMaybe<Order_By>;
131
+ event_type?: InputMaybe<Order_By>;
132
+ timestamp?: InputMaybe<Order_By>;
133
+ transaction_hash?: InputMaybe<Order_By>;
134
+ transaction_version?: InputMaybe<Order_By>;
135
+ };
136
+ /** select columns of table "blob_activities" */
137
+ declare enum Blob_Activities_Select_Column {
138
+ /** column name */
139
+ BlobName = "blob_name",
140
+ /** column name */
141
+ EventIndex = "event_index",
142
+ /** column name */
143
+ EventType = "event_type",
144
+ /** column name */
145
+ Timestamp = "timestamp",
146
+ /** column name */
147
+ TransactionHash = "transaction_hash",
148
+ /** column name */
149
+ TransactionVersion = "transaction_version"
150
+ }
151
+ /** Streaming cursor of the table "blob_activities" */
152
+ type Blob_Activities_Stream_Cursor_Input = {
153
+ /** Stream column input with initial value */
154
+ initial_value: Blob_Activities_Stream_Cursor_Value_Input;
155
+ /** cursor ordering */
156
+ ordering?: InputMaybe<Cursor_Ordering>;
157
+ };
158
+ /** Initial value of the column from where the streaming should start */
159
+ type Blob_Activities_Stream_Cursor_Value_Input = {
160
+ blob_name?: InputMaybe<Scalars['String']['input']>;
161
+ event_index?: InputMaybe<Scalars['numeric']['input']>;
162
+ event_type?: InputMaybe<Scalars['String']['input']>;
163
+ timestamp?: InputMaybe<Scalars['timestamp']['input']>;
164
+ transaction_hash?: InputMaybe<Scalars['String']['input']>;
165
+ transaction_version?: InputMaybe<Scalars['numeric']['input']>;
166
+ };
167
+ /** columns and relationships of "blobs" */
168
+ type Blobs = {
169
+ __typename?: 'blobs';
170
+ blob_commitment: Scalars['String']['output'];
171
+ blob_name: Scalars['String']['output'];
172
+ created_at: Scalars['numeric']['output'];
173
+ expires_at: Scalars['numeric']['output'];
174
+ is_deleted: Scalars['numeric']['output'];
175
+ is_written: Scalars['numeric']['output'];
176
+ num_chunksets: Scalars['numeric']['output'];
177
+ owner: Scalars['String']['output'];
178
+ placement_group: Scalars['String']['output'];
179
+ /** An array relationship */
180
+ placement_group_slots: Array<Placement_Group_Slots>;
181
+ size: Scalars['numeric']['output'];
182
+ slice_address: Scalars['String']['output'];
183
+ updated_at: Scalars['numeric']['output'];
184
+ };
185
+ /** columns and relationships of "blobs" */
186
+ type BlobsPlacement_Group_SlotsArgs = {
187
+ distinct_on?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
188
+ limit?: InputMaybe<Scalars['Int']['input']>;
189
+ offset?: InputMaybe<Scalars['Int']['input']>;
190
+ order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
191
+ where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
192
+ };
193
+ /** Boolean expression to filter rows from the table "blobs". All fields are combined with a logical 'AND'. */
194
+ type Blobs_Bool_Exp = {
195
+ _and?: InputMaybe<Array<Blobs_Bool_Exp>>;
196
+ _not?: InputMaybe<Blobs_Bool_Exp>;
197
+ _or?: InputMaybe<Array<Blobs_Bool_Exp>>;
198
+ blob_commitment?: InputMaybe<String_Comparison_Exp>;
199
+ blob_name?: InputMaybe<String_Comparison_Exp>;
200
+ created_at?: InputMaybe<Numeric_Comparison_Exp>;
201
+ expires_at?: InputMaybe<Numeric_Comparison_Exp>;
202
+ is_deleted?: InputMaybe<Numeric_Comparison_Exp>;
203
+ is_written?: InputMaybe<Numeric_Comparison_Exp>;
204
+ num_chunksets?: InputMaybe<Numeric_Comparison_Exp>;
205
+ owner?: InputMaybe<String_Comparison_Exp>;
206
+ placement_group?: InputMaybe<String_Comparison_Exp>;
207
+ placement_group_slots?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
208
+ size?: InputMaybe<Numeric_Comparison_Exp>;
209
+ slice_address?: InputMaybe<String_Comparison_Exp>;
210
+ updated_at?: InputMaybe<Numeric_Comparison_Exp>;
211
+ };
212
+ /** Ordering options when selecting data from "blobs". */
213
+ type Blobs_Order_By = {
214
+ blob_commitment?: InputMaybe<Order_By>;
215
+ blob_name?: InputMaybe<Order_By>;
216
+ created_at?: InputMaybe<Order_By>;
217
+ expires_at?: InputMaybe<Order_By>;
218
+ is_deleted?: InputMaybe<Order_By>;
219
+ is_written?: InputMaybe<Order_By>;
220
+ num_chunksets?: InputMaybe<Order_By>;
221
+ owner?: InputMaybe<Order_By>;
222
+ placement_group?: InputMaybe<Order_By>;
223
+ placement_group_slots_aggregate?: InputMaybe<Placement_Group_Slots_Aggregate_Order_By>;
224
+ size?: InputMaybe<Order_By>;
225
+ slice_address?: InputMaybe<Order_By>;
226
+ updated_at?: InputMaybe<Order_By>;
227
+ };
228
+ /** select columns of table "blobs" */
229
+ declare enum Blobs_Select_Column {
230
+ /** column name */
231
+ BlobCommitment = "blob_commitment",
232
+ /** column name */
233
+ BlobName = "blob_name",
234
+ /** column name */
235
+ CreatedAt = "created_at",
236
+ /** column name */
237
+ ExpiresAt = "expires_at",
238
+ /** column name */
239
+ IsDeleted = "is_deleted",
240
+ /** column name */
241
+ IsWritten = "is_written",
242
+ /** column name */
243
+ NumChunksets = "num_chunksets",
244
+ /** column name */
245
+ Owner = "owner",
246
+ /** column name */
247
+ PlacementGroup = "placement_group",
248
+ /** column name */
249
+ Size = "size",
250
+ /** column name */
251
+ SliceAddress = "slice_address",
252
+ /** column name */
253
+ UpdatedAt = "updated_at"
254
+ }
255
+ /** Streaming cursor of the table "blobs" */
256
+ type Blobs_Stream_Cursor_Input = {
257
+ /** Stream column input with initial value */
258
+ initial_value: Blobs_Stream_Cursor_Value_Input;
259
+ /** cursor ordering */
260
+ ordering?: InputMaybe<Cursor_Ordering>;
261
+ };
262
+ /** Initial value of the column from where the streaming should start */
263
+ type Blobs_Stream_Cursor_Value_Input = {
264
+ blob_commitment?: InputMaybe<Scalars['String']['input']>;
265
+ blob_name?: InputMaybe<Scalars['String']['input']>;
266
+ created_at?: InputMaybe<Scalars['numeric']['input']>;
267
+ expires_at?: InputMaybe<Scalars['numeric']['input']>;
268
+ is_deleted?: InputMaybe<Scalars['numeric']['input']>;
269
+ is_written?: InputMaybe<Scalars['numeric']['input']>;
270
+ num_chunksets?: InputMaybe<Scalars['numeric']['input']>;
271
+ owner?: InputMaybe<Scalars['String']['input']>;
272
+ placement_group?: InputMaybe<Scalars['String']['input']>;
273
+ size?: InputMaybe<Scalars['numeric']['input']>;
274
+ slice_address?: InputMaybe<Scalars['String']['input']>;
275
+ updated_at?: InputMaybe<Scalars['numeric']['input']>;
276
+ };
277
+ /** ordering argument of a cursor */
278
+ declare enum Cursor_Ordering {
279
+ /** ascending ordering of the cursor */
280
+ Asc = "ASC",
281
+ /** descending ordering of the cursor */
282
+ Desc = "DESC"
283
+ }
284
+ /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */
285
+ type Numeric_Comparison_Exp = {
286
+ _eq?: InputMaybe<Scalars['numeric']['input']>;
287
+ _gt?: InputMaybe<Scalars['numeric']['input']>;
288
+ _gte?: InputMaybe<Scalars['numeric']['input']>;
289
+ _in?: InputMaybe<Array<Scalars['numeric']['input']>>;
290
+ _is_null?: InputMaybe<Scalars['Boolean']['input']>;
291
+ _lt?: InputMaybe<Scalars['numeric']['input']>;
292
+ _lte?: InputMaybe<Scalars['numeric']['input']>;
293
+ _neq?: InputMaybe<Scalars['numeric']['input']>;
294
+ _nin?: InputMaybe<Array<Scalars['numeric']['input']>>;
295
+ };
296
+ /** column ordering options */
297
+ declare enum Order_By {
298
+ /** in ascending order, nulls last */
299
+ Asc = "asc",
300
+ /** in ascending order, nulls first */
301
+ AscNullsFirst = "asc_nulls_first",
302
+ /** in ascending order, nulls last */
303
+ AscNullsLast = "asc_nulls_last",
304
+ /** in descending order, nulls first */
305
+ Desc = "desc",
306
+ /** in descending order, nulls first */
307
+ DescNullsFirst = "desc_nulls_first",
308
+ /** in descending order, nulls last */
309
+ DescNullsLast = "desc_nulls_last"
310
+ }
311
+ /** columns and relationships of "placement_group_slots" */
312
+ type Placement_Group_Slots = {
313
+ __typename?: 'placement_group_slots';
314
+ placement_group: Scalars['String']['output'];
315
+ slot_index: Scalars['numeric']['output'];
316
+ status: Scalars['String']['output'];
317
+ storage_provider: Scalars['String']['output'];
318
+ updated_at: Scalars['numeric']['output'];
319
+ };
320
+ /** order by aggregate values of table "placement_group_slots" */
321
+ type Placement_Group_Slots_Aggregate_Order_By = {
322
+ avg?: InputMaybe<Placement_Group_Slots_Avg_Order_By>;
323
+ count?: InputMaybe<Order_By>;
324
+ max?: InputMaybe<Placement_Group_Slots_Max_Order_By>;
325
+ min?: InputMaybe<Placement_Group_Slots_Min_Order_By>;
326
+ stddev?: InputMaybe<Placement_Group_Slots_Stddev_Order_By>;
327
+ stddev_pop?: InputMaybe<Placement_Group_Slots_Stddev_Pop_Order_By>;
328
+ stddev_samp?: InputMaybe<Placement_Group_Slots_Stddev_Samp_Order_By>;
329
+ sum?: InputMaybe<Placement_Group_Slots_Sum_Order_By>;
330
+ var_pop?: InputMaybe<Placement_Group_Slots_Var_Pop_Order_By>;
331
+ var_samp?: InputMaybe<Placement_Group_Slots_Var_Samp_Order_By>;
332
+ variance?: InputMaybe<Placement_Group_Slots_Variance_Order_By>;
333
+ };
334
+ /** order by avg() on columns of table "placement_group_slots" */
335
+ type Placement_Group_Slots_Avg_Order_By = {
336
+ slot_index?: InputMaybe<Order_By>;
337
+ updated_at?: InputMaybe<Order_By>;
338
+ };
339
+ /** Boolean expression to filter rows from the table "placement_group_slots". All fields are combined with a logical 'AND'. */
340
+ type Placement_Group_Slots_Bool_Exp = {
341
+ _and?: InputMaybe<Array<Placement_Group_Slots_Bool_Exp>>;
342
+ _not?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
343
+ _or?: InputMaybe<Array<Placement_Group_Slots_Bool_Exp>>;
344
+ placement_group?: InputMaybe<String_Comparison_Exp>;
345
+ slot_index?: InputMaybe<Numeric_Comparison_Exp>;
346
+ status?: InputMaybe<String_Comparison_Exp>;
347
+ storage_provider?: InputMaybe<String_Comparison_Exp>;
348
+ updated_at?: InputMaybe<Numeric_Comparison_Exp>;
349
+ };
350
+ /** order by max() on columns of table "placement_group_slots" */
351
+ type Placement_Group_Slots_Max_Order_By = {
352
+ placement_group?: InputMaybe<Order_By>;
353
+ slot_index?: InputMaybe<Order_By>;
354
+ status?: InputMaybe<Order_By>;
355
+ storage_provider?: InputMaybe<Order_By>;
356
+ updated_at?: InputMaybe<Order_By>;
357
+ };
358
+ /** order by min() on columns of table "placement_group_slots" */
359
+ type Placement_Group_Slots_Min_Order_By = {
360
+ placement_group?: InputMaybe<Order_By>;
361
+ slot_index?: InputMaybe<Order_By>;
362
+ status?: InputMaybe<Order_By>;
363
+ storage_provider?: InputMaybe<Order_By>;
364
+ updated_at?: InputMaybe<Order_By>;
365
+ };
366
+ /** Ordering options when selecting data from "placement_group_slots". */
367
+ type Placement_Group_Slots_Order_By = {
368
+ placement_group?: InputMaybe<Order_By>;
369
+ slot_index?: InputMaybe<Order_By>;
370
+ status?: InputMaybe<Order_By>;
371
+ storage_provider?: InputMaybe<Order_By>;
372
+ updated_at?: InputMaybe<Order_By>;
373
+ };
374
+ /** select columns of table "placement_group_slots" */
375
+ declare enum Placement_Group_Slots_Select_Column {
376
+ /** column name */
377
+ PlacementGroup = "placement_group",
378
+ /** column name */
379
+ SlotIndex = "slot_index",
380
+ /** column name */
381
+ Status = "status",
382
+ /** column name */
383
+ StorageProvider = "storage_provider",
384
+ /** column name */
385
+ UpdatedAt = "updated_at"
386
+ }
387
+ /** order by stddev() on columns of table "placement_group_slots" */
388
+ type Placement_Group_Slots_Stddev_Order_By = {
389
+ slot_index?: InputMaybe<Order_By>;
390
+ updated_at?: InputMaybe<Order_By>;
391
+ };
392
+ /** order by stddev_pop() on columns of table "placement_group_slots" */
393
+ type Placement_Group_Slots_Stddev_Pop_Order_By = {
394
+ slot_index?: InputMaybe<Order_By>;
395
+ updated_at?: InputMaybe<Order_By>;
396
+ };
397
+ /** order by stddev_samp() on columns of table "placement_group_slots" */
398
+ type Placement_Group_Slots_Stddev_Samp_Order_By = {
399
+ slot_index?: InputMaybe<Order_By>;
400
+ updated_at?: InputMaybe<Order_By>;
401
+ };
402
+ /** Streaming cursor of the table "placement_group_slots" */
403
+ type Placement_Group_Slots_Stream_Cursor_Input = {
404
+ /** Stream column input with initial value */
405
+ initial_value: Placement_Group_Slots_Stream_Cursor_Value_Input;
406
+ /** cursor ordering */
407
+ ordering?: InputMaybe<Cursor_Ordering>;
408
+ };
409
+ /** Initial value of the column from where the streaming should start */
410
+ type Placement_Group_Slots_Stream_Cursor_Value_Input = {
411
+ placement_group?: InputMaybe<Scalars['String']['input']>;
412
+ slot_index?: InputMaybe<Scalars['numeric']['input']>;
413
+ status?: InputMaybe<Scalars['String']['input']>;
414
+ storage_provider?: InputMaybe<Scalars['String']['input']>;
415
+ updated_at?: InputMaybe<Scalars['numeric']['input']>;
416
+ };
417
+ /** order by sum() on columns of table "placement_group_slots" */
418
+ type Placement_Group_Slots_Sum_Order_By = {
419
+ slot_index?: InputMaybe<Order_By>;
420
+ updated_at?: InputMaybe<Order_By>;
421
+ };
422
+ /** order by var_pop() on columns of table "placement_group_slots" */
423
+ type Placement_Group_Slots_Var_Pop_Order_By = {
424
+ slot_index?: InputMaybe<Order_By>;
425
+ updated_at?: InputMaybe<Order_By>;
426
+ };
427
+ /** order by var_samp() on columns of table "placement_group_slots" */
428
+ type Placement_Group_Slots_Var_Samp_Order_By = {
429
+ slot_index?: InputMaybe<Order_By>;
430
+ updated_at?: InputMaybe<Order_By>;
431
+ };
432
+ /** order by variance() on columns of table "placement_group_slots" */
433
+ type Placement_Group_Slots_Variance_Order_By = {
434
+ slot_index?: InputMaybe<Order_By>;
435
+ updated_at?: InputMaybe<Order_By>;
436
+ };
437
+ /** columns and relationships of "processor_status" */
438
+ type Processor_Status = {
439
+ __typename?: 'processor_status';
440
+ last_success_version: Scalars['bigint']['output'];
441
+ last_transaction_timestamp?: Maybe<Scalars['timestamp']['output']>;
442
+ last_updated: Scalars['timestamp']['output'];
443
+ };
444
+ /** Boolean expression to filter rows from the table "processor_status". All fields are combined with a logical 'AND'. */
445
+ type Processor_Status_Bool_Exp = {
446
+ _and?: InputMaybe<Array<Processor_Status_Bool_Exp>>;
447
+ _not?: InputMaybe<Processor_Status_Bool_Exp>;
448
+ _or?: InputMaybe<Array<Processor_Status_Bool_Exp>>;
449
+ last_success_version?: InputMaybe<Bigint_Comparison_Exp>;
450
+ last_transaction_timestamp?: InputMaybe<Timestamp_Comparison_Exp>;
451
+ last_updated?: InputMaybe<Timestamp_Comparison_Exp>;
452
+ };
453
+ /** Ordering options when selecting data from "processor_status". */
454
+ type Processor_Status_Order_By = {
455
+ last_success_version?: InputMaybe<Order_By>;
456
+ last_transaction_timestamp?: InputMaybe<Order_By>;
457
+ last_updated?: InputMaybe<Order_By>;
458
+ };
459
+ /** select columns of table "processor_status" */
460
+ declare enum Processor_Status_Select_Column {
461
+ /** column name */
462
+ LastSuccessVersion = "last_success_version",
463
+ /** column name */
464
+ LastTransactionTimestamp = "last_transaction_timestamp",
465
+ /** column name */
466
+ LastUpdated = "last_updated"
467
+ }
468
+ /** Streaming cursor of the table "processor_status" */
469
+ type Processor_Status_Stream_Cursor_Input = {
470
+ /** Stream column input with initial value */
471
+ initial_value: Processor_Status_Stream_Cursor_Value_Input;
472
+ /** cursor ordering */
473
+ ordering?: InputMaybe<Cursor_Ordering>;
474
+ };
475
+ /** Initial value of the column from where the streaming should start */
476
+ type Processor_Status_Stream_Cursor_Value_Input = {
477
+ last_success_version?: InputMaybe<Scalars['bigint']['input']>;
478
+ last_transaction_timestamp?: InputMaybe<Scalars['timestamp']['input']>;
479
+ last_updated?: InputMaybe<Scalars['timestamp']['input']>;
480
+ };
481
+ type Query_Root = {
482
+ __typename?: 'query_root';
483
+ /** fetch data from the table: "blob_activities" */
484
+ blob_activities: Array<Blob_Activities>;
485
+ /** fetch data from the table: "blob_activities" using primary key columns */
486
+ blob_activities_by_pk?: Maybe<Blob_Activities>;
487
+ /** fetch data from the table: "blobs" */
488
+ blobs: Array<Blobs>;
489
+ /** fetch data from the table: "blobs" using primary key columns */
490
+ blobs_by_pk?: Maybe<Blobs>;
491
+ /** An array relationship */
492
+ placement_group_slots: Array<Placement_Group_Slots>;
493
+ /** fetch data from the table: "placement_group_slots" using primary key columns */
494
+ placement_group_slots_by_pk?: Maybe<Placement_Group_Slots>;
495
+ /** fetch data from the table: "processor_status" */
496
+ processor_status: Array<Processor_Status>;
497
+ };
498
+ type Query_RootBlob_ActivitiesArgs = {
499
+ distinct_on?: InputMaybe<Array<Blob_Activities_Select_Column>>;
500
+ limit?: InputMaybe<Scalars['Int']['input']>;
501
+ offset?: InputMaybe<Scalars['Int']['input']>;
502
+ order_by?: InputMaybe<Array<Blob_Activities_Order_By>>;
503
+ where?: InputMaybe<Blob_Activities_Bool_Exp>;
504
+ };
505
+ type Query_RootBlob_Activities_By_PkArgs = {
506
+ event_index: Scalars['numeric']['input'];
507
+ event_type: Scalars['String']['input'];
508
+ transaction_hash: Scalars['String']['input'];
509
+ };
510
+ type Query_RootBlobsArgs = {
511
+ distinct_on?: InputMaybe<Array<Blobs_Select_Column>>;
512
+ limit?: InputMaybe<Scalars['Int']['input']>;
513
+ offset?: InputMaybe<Scalars['Int']['input']>;
514
+ order_by?: InputMaybe<Array<Blobs_Order_By>>;
515
+ where?: InputMaybe<Blobs_Bool_Exp>;
516
+ };
517
+ type Query_RootBlobs_By_PkArgs = {
518
+ blob_name: Scalars['String']['input'];
519
+ };
520
+ type Query_RootPlacement_Group_SlotsArgs = {
521
+ distinct_on?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
522
+ limit?: InputMaybe<Scalars['Int']['input']>;
523
+ offset?: InputMaybe<Scalars['Int']['input']>;
524
+ order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
525
+ where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
526
+ };
527
+ type Query_RootPlacement_Group_Slots_By_PkArgs = {
528
+ placement_group: Scalars['String']['input'];
529
+ slot_index: Scalars['numeric']['input'];
530
+ };
531
+ type Query_RootProcessor_StatusArgs = {
532
+ distinct_on?: InputMaybe<Array<Processor_Status_Select_Column>>;
533
+ limit?: InputMaybe<Scalars['Int']['input']>;
534
+ offset?: InputMaybe<Scalars['Int']['input']>;
535
+ order_by?: InputMaybe<Array<Processor_Status_Order_By>>;
536
+ where?: InputMaybe<Processor_Status_Bool_Exp>;
537
+ };
538
+ type Subscription_Root = {
539
+ __typename?: 'subscription_root';
540
+ /** fetch data from the table: "blob_activities" */
541
+ blob_activities: Array<Blob_Activities>;
542
+ /** fetch data from the table: "blob_activities" using primary key columns */
543
+ blob_activities_by_pk?: Maybe<Blob_Activities>;
544
+ /** fetch data from the table in a streaming manner: "blob_activities" */
545
+ blob_activities_stream: Array<Blob_Activities>;
546
+ /** fetch data from the table: "blobs" */
547
+ blobs: Array<Blobs>;
548
+ /** fetch data from the table: "blobs" using primary key columns */
549
+ blobs_by_pk?: Maybe<Blobs>;
550
+ /** fetch data from the table in a streaming manner: "blobs" */
551
+ blobs_stream: Array<Blobs>;
552
+ /** An array relationship */
553
+ placement_group_slots: Array<Placement_Group_Slots>;
554
+ /** fetch data from the table: "placement_group_slots" using primary key columns */
555
+ placement_group_slots_by_pk?: Maybe<Placement_Group_Slots>;
556
+ /** fetch data from the table in a streaming manner: "placement_group_slots" */
557
+ placement_group_slots_stream: Array<Placement_Group_Slots>;
558
+ /** fetch data from the table: "processor_status" */
559
+ processor_status: Array<Processor_Status>;
560
+ /** fetch data from the table in a streaming manner: "processor_status" */
561
+ processor_status_stream: Array<Processor_Status>;
562
+ };
563
+ type Subscription_RootBlob_ActivitiesArgs = {
564
+ distinct_on?: InputMaybe<Array<Blob_Activities_Select_Column>>;
565
+ limit?: InputMaybe<Scalars['Int']['input']>;
566
+ offset?: InputMaybe<Scalars['Int']['input']>;
567
+ order_by?: InputMaybe<Array<Blob_Activities_Order_By>>;
568
+ where?: InputMaybe<Blob_Activities_Bool_Exp>;
569
+ };
570
+ type Subscription_RootBlob_Activities_By_PkArgs = {
571
+ event_index: Scalars['numeric']['input'];
572
+ event_type: Scalars['String']['input'];
573
+ transaction_hash: Scalars['String']['input'];
574
+ };
575
+ type Subscription_RootBlob_Activities_StreamArgs = {
576
+ batch_size: Scalars['Int']['input'];
577
+ cursor: Array<InputMaybe<Blob_Activities_Stream_Cursor_Input>>;
578
+ where?: InputMaybe<Blob_Activities_Bool_Exp>;
579
+ };
580
+ type Subscription_RootBlobsArgs = {
581
+ distinct_on?: InputMaybe<Array<Blobs_Select_Column>>;
582
+ limit?: InputMaybe<Scalars['Int']['input']>;
583
+ offset?: InputMaybe<Scalars['Int']['input']>;
584
+ order_by?: InputMaybe<Array<Blobs_Order_By>>;
585
+ where?: InputMaybe<Blobs_Bool_Exp>;
586
+ };
587
+ type Subscription_RootBlobs_By_PkArgs = {
588
+ blob_name: Scalars['String']['input'];
589
+ };
590
+ type Subscription_RootBlobs_StreamArgs = {
591
+ batch_size: Scalars['Int']['input'];
592
+ cursor: Array<InputMaybe<Blobs_Stream_Cursor_Input>>;
593
+ where?: InputMaybe<Blobs_Bool_Exp>;
594
+ };
595
+ type Subscription_RootPlacement_Group_SlotsArgs = {
596
+ distinct_on?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
597
+ limit?: InputMaybe<Scalars['Int']['input']>;
598
+ offset?: InputMaybe<Scalars['Int']['input']>;
599
+ order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
600
+ where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
601
+ };
602
+ type Subscription_RootPlacement_Group_Slots_By_PkArgs = {
603
+ placement_group: Scalars['String']['input'];
604
+ slot_index: Scalars['numeric']['input'];
605
+ };
606
+ type Subscription_RootPlacement_Group_Slots_StreamArgs = {
607
+ batch_size: Scalars['Int']['input'];
608
+ cursor: Array<InputMaybe<Placement_Group_Slots_Stream_Cursor_Input>>;
609
+ where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
610
+ };
611
+ type Subscription_RootProcessor_StatusArgs = {
612
+ distinct_on?: InputMaybe<Array<Processor_Status_Select_Column>>;
613
+ limit?: InputMaybe<Scalars['Int']['input']>;
614
+ offset?: InputMaybe<Scalars['Int']['input']>;
615
+ order_by?: InputMaybe<Array<Processor_Status_Order_By>>;
616
+ where?: InputMaybe<Processor_Status_Bool_Exp>;
617
+ };
618
+ type Subscription_RootProcessor_Status_StreamArgs = {
619
+ batch_size: Scalars['Int']['input'];
620
+ cursor: Array<InputMaybe<Processor_Status_Stream_Cursor_Input>>;
621
+ where?: InputMaybe<Processor_Status_Bool_Exp>;
622
+ };
623
+ /** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
624
+ type Timestamp_Comparison_Exp = {
625
+ _eq?: InputMaybe<Scalars['timestamp']['input']>;
626
+ _gt?: InputMaybe<Scalars['timestamp']['input']>;
627
+ _gte?: InputMaybe<Scalars['timestamp']['input']>;
628
+ _in?: InputMaybe<Array<Scalars['timestamp']['input']>>;
629
+ _is_null?: InputMaybe<Scalars['Boolean']['input']>;
630
+ _lt?: InputMaybe<Scalars['timestamp']['input']>;
631
+ _lte?: InputMaybe<Scalars['timestamp']['input']>;
632
+ _neq?: InputMaybe<Scalars['timestamp']['input']>;
633
+ _nin?: InputMaybe<Array<Scalars['timestamp']['input']>>;
634
+ };
635
+ type GetBlobsQueryVariables = Exact<{
636
+ where?: InputMaybe<Blobs_Bool_Exp>;
637
+ orderBy?: InputMaybe<Array<Blobs_Order_By> | Blobs_Order_By>;
638
+ limit?: InputMaybe<Scalars['Int']['input']>;
639
+ offset?: InputMaybe<Scalars['Int']['input']>;
640
+ }>;
641
+ type GetBlobsQuery = {
642
+ __typename?: 'query_root';
643
+ blobs: Array<{
644
+ __typename?: 'blobs';
645
+ owner: string;
646
+ blob_commitment: string;
647
+ blob_name: string;
648
+ created_at: any;
649
+ expires_at: any;
650
+ num_chunksets: any;
651
+ is_deleted: any;
652
+ is_written: any;
653
+ placement_group: string;
654
+ size: any;
655
+ updated_at: any;
656
+ slice_address: string;
657
+ }>;
658
+ };
659
+ type GetBlobActivitiesQueryVariables = Exact<{
660
+ where?: InputMaybe<Blob_Activities_Bool_Exp>;
661
+ orderBy?: InputMaybe<Array<Blob_Activities_Order_By> | Blob_Activities_Order_By>;
662
+ limit?: InputMaybe<Scalars['Int']['input']>;
663
+ offset?: InputMaybe<Scalars['Int']['input']>;
664
+ }>;
665
+ type GetBlobActivitiesQuery = {
666
+ __typename?: 'query_root';
667
+ blob_activities: Array<{
668
+ __typename?: 'blob_activities';
669
+ blob_name: string;
670
+ event_index: any;
671
+ event_type: string;
672
+ transaction_hash: string;
673
+ transaction_version: any;
674
+ timestamp: any;
675
+ }>;
676
+ };
677
+ declare const GetBlobsDocument: graphql.DocumentNode;
678
+ declare const GetBlobActivitiesDocument: graphql.DocumentNode;
679
+ type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
680
+ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
681
+ getBlobs(variables?: GetBlobsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetBlobsQuery>;
682
+ getBlobActivities(variables?: GetBlobActivitiesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetBlobActivitiesQuery>;
683
+ };
684
+ type Sdk = ReturnType<typeof getSdk>;
685
+
686
+ export { type Bigint_Comparison_Exp, type Blob_Activities, type Blob_Activities_Bool_Exp, type Blob_Activities_Order_By, Blob_Activities_Select_Column, type Blob_Activities_Stream_Cursor_Input, type Blob_Activities_Stream_Cursor_Value_Input, type Blobs, type BlobsPlacement_Group_SlotsArgs, type Blobs_Bool_Exp, type Blobs_Order_By, Blobs_Select_Column, type Blobs_Stream_Cursor_Input, type Blobs_Stream_Cursor_Value_Input, Cursor_Ordering, type Exact, GetBlobActivitiesDocument, type GetBlobActivitiesQuery, type GetBlobActivitiesQueryVariables, GetBlobsDocument, type GetBlobsQuery, type GetBlobsQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type Numeric_Comparison_Exp, Order_By, type Placement_Group_Slots, type Placement_Group_Slots_Aggregate_Order_By, type Placement_Group_Slots_Avg_Order_By, type Placement_Group_Slots_Bool_Exp, type Placement_Group_Slots_Max_Order_By, type Placement_Group_Slots_Min_Order_By, type Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, type Placement_Group_Slots_Stddev_Order_By, type Placement_Group_Slots_Stddev_Pop_Order_By, type Placement_Group_Slots_Stddev_Samp_Order_By, type Placement_Group_Slots_Stream_Cursor_Input, type Placement_Group_Slots_Stream_Cursor_Value_Input, type Placement_Group_Slots_Sum_Order_By, type Placement_Group_Slots_Var_Pop_Order_By, type Placement_Group_Slots_Var_Samp_Order_By, type Placement_Group_Slots_Variance_Order_By, type Processor_Status, type Processor_Status_Bool_Exp, type Processor_Status_Order_By, Processor_Status_Select_Column, type Processor_Status_Stream_Cursor_Input, type Processor_Status_Stream_Cursor_Value_Input, type Query_Root, type Query_RootBlob_ActivitiesArgs, type Query_RootBlob_Activities_By_PkArgs, type Query_RootBlobsArgs, type Query_RootBlobs_By_PkArgs, type Query_RootPlacement_Group_SlotsArgs, type Query_RootPlacement_Group_Slots_By_PkArgs, type Query_RootProcessor_StatusArgs, type Scalars, type Sdk, type SdkFunctionWrapper, type String_Comparison_Exp, type Subscription_Root, type Subscription_RootBlob_ActivitiesArgs, type Subscription_RootBlob_Activities_By_PkArgs, type Subscription_RootBlob_Activities_StreamArgs, type Subscription_RootBlobsArgs, type Subscription_RootBlobs_By_PkArgs, type Subscription_RootBlobs_StreamArgs, type Subscription_RootPlacement_Group_SlotsArgs, type Subscription_RootPlacement_Group_Slots_By_PkArgs, type Subscription_RootPlacement_Group_Slots_StreamArgs, type Subscription_RootProcessor_StatusArgs, type Subscription_RootProcessor_Status_StreamArgs, type Timestamp_Comparison_Exp, getSdk };