@shelby-protocol/sdk 0.0.9 → 0.2.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/dist/browser/index.d.ts +17 -10
- package/dist/browser/index.mjs +89 -28
- package/dist/{chunk-XWAPNLU6.mjs → chunk-2WEX3K7C.mjs} +6 -4
- package/dist/chunk-4MG4XGY4.mjs +91 -0
- package/dist/{chunk-SEXQTDX6.mjs → chunk-4ZOFT75Q.mjs} +16 -2
- package/dist/{chunk-BTHSKDJR.mjs → chunk-7PN65RDX.mjs} +44 -10
- package/dist/chunk-AABBONAF.mjs +34 -0
- package/dist/{chunk-ZPW742E7.mjs → chunk-AUQDI5BS.mjs} +17 -2
- package/dist/{chunk-HFGEQP5N.mjs → chunk-CGYJLKBU.mjs} +4 -4
- package/dist/chunk-CQ6QPIZK.mjs +37 -0
- package/dist/{chunk-VRLIOKWG.mjs → chunk-D6GQHO6G.mjs} +5 -1
- package/dist/chunk-E5QCRTBU.mjs +493 -0
- package/dist/chunk-HPPMI7DC.mjs +56 -0
- package/dist/chunk-IE6LYVIA.mjs +26 -0
- package/dist/{chunk-67F5YZ25.mjs → chunk-JTXYKO3U.mjs} +10 -0
- package/dist/{chunk-WJKSPJSS.mjs → chunk-KJ24NKPH.mjs} +46 -0
- package/dist/{chunk-WBFEX7OM.mjs → chunk-MV6FNYAU.mjs} +31 -7
- package/dist/{chunk-PZF2VTGP.mjs → chunk-NHWWORCH.mjs} +3 -1
- package/dist/{chunk-NLPIHQ7K.mjs → chunk-OGKZ575S.mjs} +6 -19
- package/dist/{chunk-5I3MBJGN.mjs → chunk-PJVWGMVI.mjs} +164 -35
- package/dist/{chunk-7UVMDCCR.mjs → chunk-SRV4YWFH.mjs} +232 -47
- package/dist/chunk-W37FZSMA.mjs +83 -0
- package/dist/chunk-WTICJPDB.mjs +0 -0
- package/dist/chunk-Z4FZ7W6L.mjs +39 -0
- package/dist/{chunk-QFWQ7FIC.mjs → chunk-ZEDD2MPU.mjs} +1 -1
- package/dist/{clay-codes-pdZFxI_B.d.ts → clay-codes-DHP-bYcP.d.ts} +6 -2
- package/dist/core/blobs.d.ts +2 -0
- package/dist/core/chunk.d.ts +10 -1
- package/dist/core/chunk.mjs +2 -2
- package/dist/core/clients/ShelbyBlobClient.d.ts +165 -12
- package/dist/core/clients/ShelbyBlobClient.mjs +13 -11
- package/dist/core/clients/ShelbyClient.d.ts +21 -4
- package/dist/core/clients/ShelbyClient.mjs +17 -14
- package/dist/core/clients/ShelbyClientConfig.d.ts +7 -2
- package/dist/{node → core}/clients/ShelbyMetadataClient.d.ts +3 -3
- package/dist/core/clients/ShelbyMetadataClient.mjs +9 -0
- package/dist/core/clients/ShelbyMicropaymentChannelClient.d.ts +349 -0
- package/dist/core/clients/ShelbyMicropaymentChannelClient.mjs +16 -0
- package/dist/core/clients/ShelbyPlacementGroupClient.d.ts +73 -0
- package/dist/core/clients/ShelbyPlacementGroupClient.mjs +11 -0
- package/dist/core/clients/ShelbyRPCClient.d.ts +30 -4
- package/dist/core/clients/ShelbyRPCClient.mjs +8 -8
- package/dist/core/clients/index.d.ts +11 -5
- package/dist/core/clients/index.mjs +35 -15
- package/dist/core/clients/utils.d.ts +54 -0
- package/dist/core/clients/utils.mjs +1 -1
- package/dist/core/commitments.d.ts +6 -2
- package/dist/core/commitments.mjs +5 -3
- package/dist/core/constants.d.ts +18 -3
- package/dist/core/constants.mjs +5 -1
- package/dist/core/erasure/clay-codes.d.ts +1 -1
- package/dist/core/erasure/clay-codes.mjs +5 -5
- package/dist/core/erasure/constants.d.ts +15 -3
- package/dist/core/erasure/constants.mjs +3 -1
- package/dist/core/erasure/default.d.ts +5 -2
- package/dist/core/erasure/default.mjs +12 -6
- package/dist/core/erasure/index.d.ts +3 -3
- package/dist/core/erasure/index.mjs +15 -7
- package/dist/core/erasure/provider.d.ts +1 -1
- package/dist/core/erasure/reed-solomon.d.ts +1 -1
- package/dist/core/erasure/reed-solomon.mjs +1 -1
- package/dist/core/erasure/utils.d.ts +1 -1
- package/dist/core/errors.d.ts +58 -0
- package/dist/core/errors.mjs +15 -0
- package/dist/core/index.d.ts +17 -10
- package/dist/core/index.mjs +89 -28
- package/dist/core/layout.d.ts +5 -16
- package/dist/core/layout.mjs +3 -9
- package/dist/core/networks.d.ts +1 -1
- package/dist/core/networks.mjs +1 -1
- package/dist/core/operations/generated/sdk.d.ts +207 -17
- package/dist/core/operations/generated/sdk.mjs +7 -1
- package/dist/core/operations/index.d.ts +9 -3
- package/dist/core/operations/index.mjs +10 -4
- package/dist/core/rpc-responses.d.ts +69 -0
- package/dist/core/rpc-responses.mjs +15 -0
- package/dist/core/types/blobs.d.ts +8 -4
- package/dist/core/types/encodings.d.ts +1 -1
- package/dist/core/types/index.d.ts +4 -2
- package/dist/core/types/index.mjs +12 -2
- package/dist/core/types/payments.d.ts +94 -0
- package/dist/core/types/payments.mjs +9 -0
- package/dist/core/types/placement_groups.d.ts +30 -1
- package/dist/core/types/placement_groups.mjs +1 -0
- package/dist/core/types/storage_providers.d.ts +32 -2
- package/dist/node/clients/ShelbyNodeClient.d.ts +9 -6
- package/dist/node/clients/ShelbyNodeClient.mjs +18 -15
- package/dist/node/clients/index.d.ts +7 -6
- package/dist/node/clients/index.mjs +19 -17
- package/dist/node/index.d.ts +17 -11
- package/dist/node/index.mjs +91 -34
- package/package.json +3 -2
- package/dist/chunk-CPNZAQVY.mjs +0 -29
- package/dist/chunk-GY5DCVVL.mjs +0 -86
- package/dist/chunk-RBFWGDMY.mjs +0 -30
- package/dist/node/clients/ShelbyMetadataClient.mjs +0 -9
- /package/dist/{chunk-DJJD2AXO.mjs → chunk-AD2G3QYD.mjs} +0 -0
- /package/dist/{chunk-MWDW4ROU.mjs → chunk-EM67QTMR.mjs} +0 -0
- /package/dist/{chunk-RNXGC54D.mjs → chunk-QQ57OGQ2.mjs} +0 -0
|
@@ -46,18 +46,30 @@ type Scalars = {
|
|
|
46
46
|
output: number;
|
|
47
47
|
};
|
|
48
48
|
bigint: {
|
|
49
|
-
input:
|
|
50
|
-
output:
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
51
|
};
|
|
52
52
|
numeric: {
|
|
53
|
-
input:
|
|
54
|
-
output:
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
input:
|
|
58
|
-
output:
|
|
57
|
+
input: string;
|
|
58
|
+
output: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
+
/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */
|
|
62
|
+
type Int_Comparison_Exp = {
|
|
63
|
+
_eq?: InputMaybe<Scalars['Int']['input']>;
|
|
64
|
+
_gt?: InputMaybe<Scalars['Int']['input']>;
|
|
65
|
+
_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
66
|
+
_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
67
|
+
_is_null?: InputMaybe<Scalars['Boolean']['input']>;
|
|
68
|
+
_lt?: InputMaybe<Scalars['Int']['input']>;
|
|
69
|
+
_lte?: InputMaybe<Scalars['Int']['input']>;
|
|
70
|
+
_neq?: InputMaybe<Scalars['Int']['input']>;
|
|
71
|
+
_nin?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
72
|
+
};
|
|
61
73
|
/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */
|
|
62
74
|
type String_Comparison_Exp = {
|
|
63
75
|
_eq?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -272,6 +284,8 @@ type Blobs = {
|
|
|
272
284
|
placement_group: Scalars['String']['output'];
|
|
273
285
|
/** An array relationship */
|
|
274
286
|
placement_group_slots: Array<Placement_Group_Slots>;
|
|
287
|
+
/** An aggregate relationship */
|
|
288
|
+
placement_group_slots_aggregate: Placement_Group_Slots_Aggregate;
|
|
275
289
|
size: Scalars['numeric']['output'];
|
|
276
290
|
slice_address: Scalars['String']['output'];
|
|
277
291
|
updated_at: Scalars['numeric']['output'];
|
|
@@ -284,6 +298,14 @@ type BlobsPlacement_Group_SlotsArgs = {
|
|
|
284
298
|
order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
|
|
285
299
|
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
286
300
|
};
|
|
301
|
+
/** columns and relationships of "blobs" */
|
|
302
|
+
type BlobsPlacement_Group_Slots_AggregateArgs = {
|
|
303
|
+
distinct_on?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
|
|
304
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
305
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
306
|
+
order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
|
|
307
|
+
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
308
|
+
};
|
|
287
309
|
/** aggregated selection of "blobs" */
|
|
288
310
|
type Blobs_Aggregate = {
|
|
289
311
|
__typename?: 'blobs_aggregate';
|
|
@@ -336,6 +358,7 @@ type Blobs_Bool_Exp = {
|
|
|
336
358
|
owner?: InputMaybe<String_Comparison_Exp>;
|
|
337
359
|
placement_group?: InputMaybe<String_Comparison_Exp>;
|
|
338
360
|
placement_group_slots?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
361
|
+
placement_group_slots_aggregate?: InputMaybe<Placement_Group_Slots_Aggregate_Bool_Exp>;
|
|
339
362
|
size?: InputMaybe<Numeric_Comparison_Exp>;
|
|
340
363
|
slice_address?: InputMaybe<String_Comparison_Exp>;
|
|
341
364
|
updated_at?: InputMaybe<Numeric_Comparison_Exp>;
|
|
@@ -557,6 +580,41 @@ type Placement_Group_Slots = {
|
|
|
557
580
|
storage_provider: Scalars['String']['output'];
|
|
558
581
|
updated_at: Scalars['numeric']['output'];
|
|
559
582
|
};
|
|
583
|
+
/** aggregated selection of "placement_group_slots" */
|
|
584
|
+
type Placement_Group_Slots_Aggregate = {
|
|
585
|
+
__typename?: 'placement_group_slots_aggregate';
|
|
586
|
+
aggregate?: Maybe<Placement_Group_Slots_Aggregate_Fields>;
|
|
587
|
+
nodes: Array<Placement_Group_Slots>;
|
|
588
|
+
};
|
|
589
|
+
type Placement_Group_Slots_Aggregate_Bool_Exp = {
|
|
590
|
+
count?: InputMaybe<Placement_Group_Slots_Aggregate_Bool_Exp_Count>;
|
|
591
|
+
};
|
|
592
|
+
type Placement_Group_Slots_Aggregate_Bool_Exp_Count = {
|
|
593
|
+
arguments?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
|
|
594
|
+
distinct?: InputMaybe<Scalars['Boolean']['input']>;
|
|
595
|
+
filter?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
596
|
+
predicate: Int_Comparison_Exp;
|
|
597
|
+
};
|
|
598
|
+
/** aggregate fields of "placement_group_slots" */
|
|
599
|
+
type Placement_Group_Slots_Aggregate_Fields = {
|
|
600
|
+
__typename?: 'placement_group_slots_aggregate_fields';
|
|
601
|
+
avg?: Maybe<Placement_Group_Slots_Avg_Fields>;
|
|
602
|
+
count: Scalars['Int']['output'];
|
|
603
|
+
max?: Maybe<Placement_Group_Slots_Max_Fields>;
|
|
604
|
+
min?: Maybe<Placement_Group_Slots_Min_Fields>;
|
|
605
|
+
stddev?: Maybe<Placement_Group_Slots_Stddev_Fields>;
|
|
606
|
+
stddev_pop?: Maybe<Placement_Group_Slots_Stddev_Pop_Fields>;
|
|
607
|
+
stddev_samp?: Maybe<Placement_Group_Slots_Stddev_Samp_Fields>;
|
|
608
|
+
sum?: Maybe<Placement_Group_Slots_Sum_Fields>;
|
|
609
|
+
var_pop?: Maybe<Placement_Group_Slots_Var_Pop_Fields>;
|
|
610
|
+
var_samp?: Maybe<Placement_Group_Slots_Var_Samp_Fields>;
|
|
611
|
+
variance?: Maybe<Placement_Group_Slots_Variance_Fields>;
|
|
612
|
+
};
|
|
613
|
+
/** aggregate fields of "placement_group_slots" */
|
|
614
|
+
type Placement_Group_Slots_Aggregate_FieldsCountArgs = {
|
|
615
|
+
columns?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
|
|
616
|
+
distinct?: InputMaybe<Scalars['Boolean']['input']>;
|
|
617
|
+
};
|
|
560
618
|
/** order by aggregate values of table "placement_group_slots" */
|
|
561
619
|
type Placement_Group_Slots_Aggregate_Order_By = {
|
|
562
620
|
avg?: InputMaybe<Placement_Group_Slots_Avg_Order_By>;
|
|
@@ -571,6 +629,12 @@ type Placement_Group_Slots_Aggregate_Order_By = {
|
|
|
571
629
|
var_samp?: InputMaybe<Placement_Group_Slots_Var_Samp_Order_By>;
|
|
572
630
|
variance?: InputMaybe<Placement_Group_Slots_Variance_Order_By>;
|
|
573
631
|
};
|
|
632
|
+
/** aggregate avg on columns */
|
|
633
|
+
type Placement_Group_Slots_Avg_Fields = {
|
|
634
|
+
__typename?: 'placement_group_slots_avg_fields';
|
|
635
|
+
slot_index?: Maybe<Scalars['Float']['output']>;
|
|
636
|
+
updated_at?: Maybe<Scalars['Float']['output']>;
|
|
637
|
+
};
|
|
574
638
|
/** order by avg() on columns of table "placement_group_slots" */
|
|
575
639
|
type Placement_Group_Slots_Avg_Order_By = {
|
|
576
640
|
slot_index?: InputMaybe<Order_By>;
|
|
@@ -587,6 +651,15 @@ type Placement_Group_Slots_Bool_Exp = {
|
|
|
587
651
|
storage_provider?: InputMaybe<String_Comparison_Exp>;
|
|
588
652
|
updated_at?: InputMaybe<Numeric_Comparison_Exp>;
|
|
589
653
|
};
|
|
654
|
+
/** aggregate max on columns */
|
|
655
|
+
type Placement_Group_Slots_Max_Fields = {
|
|
656
|
+
__typename?: 'placement_group_slots_max_fields';
|
|
657
|
+
placement_group?: Maybe<Scalars['String']['output']>;
|
|
658
|
+
slot_index?: Maybe<Scalars['numeric']['output']>;
|
|
659
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
660
|
+
storage_provider?: Maybe<Scalars['String']['output']>;
|
|
661
|
+
updated_at?: Maybe<Scalars['numeric']['output']>;
|
|
662
|
+
};
|
|
590
663
|
/** order by max() on columns of table "placement_group_slots" */
|
|
591
664
|
type Placement_Group_Slots_Max_Order_By = {
|
|
592
665
|
placement_group?: InputMaybe<Order_By>;
|
|
@@ -595,6 +668,15 @@ type Placement_Group_Slots_Max_Order_By = {
|
|
|
595
668
|
storage_provider?: InputMaybe<Order_By>;
|
|
596
669
|
updated_at?: InputMaybe<Order_By>;
|
|
597
670
|
};
|
|
671
|
+
/** aggregate min on columns */
|
|
672
|
+
type Placement_Group_Slots_Min_Fields = {
|
|
673
|
+
__typename?: 'placement_group_slots_min_fields';
|
|
674
|
+
placement_group?: Maybe<Scalars['String']['output']>;
|
|
675
|
+
slot_index?: Maybe<Scalars['numeric']['output']>;
|
|
676
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
677
|
+
storage_provider?: Maybe<Scalars['String']['output']>;
|
|
678
|
+
updated_at?: Maybe<Scalars['numeric']['output']>;
|
|
679
|
+
};
|
|
598
680
|
/** order by min() on columns of table "placement_group_slots" */
|
|
599
681
|
type Placement_Group_Slots_Min_Order_By = {
|
|
600
682
|
placement_group?: InputMaybe<Order_By>;
|
|
@@ -624,16 +706,34 @@ declare enum Placement_Group_Slots_Select_Column {
|
|
|
624
706
|
/** column name */
|
|
625
707
|
UpdatedAt = "updated_at"
|
|
626
708
|
}
|
|
709
|
+
/** aggregate stddev on columns */
|
|
710
|
+
type Placement_Group_Slots_Stddev_Fields = {
|
|
711
|
+
__typename?: 'placement_group_slots_stddev_fields';
|
|
712
|
+
slot_index?: Maybe<Scalars['Float']['output']>;
|
|
713
|
+
updated_at?: Maybe<Scalars['Float']['output']>;
|
|
714
|
+
};
|
|
627
715
|
/** order by stddev() on columns of table "placement_group_slots" */
|
|
628
716
|
type Placement_Group_Slots_Stddev_Order_By = {
|
|
629
717
|
slot_index?: InputMaybe<Order_By>;
|
|
630
718
|
updated_at?: InputMaybe<Order_By>;
|
|
631
719
|
};
|
|
720
|
+
/** aggregate stddev_pop on columns */
|
|
721
|
+
type Placement_Group_Slots_Stddev_Pop_Fields = {
|
|
722
|
+
__typename?: 'placement_group_slots_stddev_pop_fields';
|
|
723
|
+
slot_index?: Maybe<Scalars['Float']['output']>;
|
|
724
|
+
updated_at?: Maybe<Scalars['Float']['output']>;
|
|
725
|
+
};
|
|
632
726
|
/** order by stddev_pop() on columns of table "placement_group_slots" */
|
|
633
727
|
type Placement_Group_Slots_Stddev_Pop_Order_By = {
|
|
634
728
|
slot_index?: InputMaybe<Order_By>;
|
|
635
729
|
updated_at?: InputMaybe<Order_By>;
|
|
636
730
|
};
|
|
731
|
+
/** aggregate stddev_samp on columns */
|
|
732
|
+
type Placement_Group_Slots_Stddev_Samp_Fields = {
|
|
733
|
+
__typename?: 'placement_group_slots_stddev_samp_fields';
|
|
734
|
+
slot_index?: Maybe<Scalars['Float']['output']>;
|
|
735
|
+
updated_at?: Maybe<Scalars['Float']['output']>;
|
|
736
|
+
};
|
|
637
737
|
/** order by stddev_samp() on columns of table "placement_group_slots" */
|
|
638
738
|
type Placement_Group_Slots_Stddev_Samp_Order_By = {
|
|
639
739
|
slot_index?: InputMaybe<Order_By>;
|
|
@@ -654,21 +754,45 @@ type Placement_Group_Slots_Stream_Cursor_Value_Input = {
|
|
|
654
754
|
storage_provider?: InputMaybe<Scalars['String']['input']>;
|
|
655
755
|
updated_at?: InputMaybe<Scalars['numeric']['input']>;
|
|
656
756
|
};
|
|
757
|
+
/** aggregate sum on columns */
|
|
758
|
+
type Placement_Group_Slots_Sum_Fields = {
|
|
759
|
+
__typename?: 'placement_group_slots_sum_fields';
|
|
760
|
+
slot_index?: Maybe<Scalars['numeric']['output']>;
|
|
761
|
+
updated_at?: Maybe<Scalars['numeric']['output']>;
|
|
762
|
+
};
|
|
657
763
|
/** order by sum() on columns of table "placement_group_slots" */
|
|
658
764
|
type Placement_Group_Slots_Sum_Order_By = {
|
|
659
765
|
slot_index?: InputMaybe<Order_By>;
|
|
660
766
|
updated_at?: InputMaybe<Order_By>;
|
|
661
767
|
};
|
|
768
|
+
/** aggregate var_pop on columns */
|
|
769
|
+
type Placement_Group_Slots_Var_Pop_Fields = {
|
|
770
|
+
__typename?: 'placement_group_slots_var_pop_fields';
|
|
771
|
+
slot_index?: Maybe<Scalars['Float']['output']>;
|
|
772
|
+
updated_at?: Maybe<Scalars['Float']['output']>;
|
|
773
|
+
};
|
|
662
774
|
/** order by var_pop() on columns of table "placement_group_slots" */
|
|
663
775
|
type Placement_Group_Slots_Var_Pop_Order_By = {
|
|
664
776
|
slot_index?: InputMaybe<Order_By>;
|
|
665
777
|
updated_at?: InputMaybe<Order_By>;
|
|
666
778
|
};
|
|
779
|
+
/** aggregate var_samp on columns */
|
|
780
|
+
type Placement_Group_Slots_Var_Samp_Fields = {
|
|
781
|
+
__typename?: 'placement_group_slots_var_samp_fields';
|
|
782
|
+
slot_index?: Maybe<Scalars['Float']['output']>;
|
|
783
|
+
updated_at?: Maybe<Scalars['Float']['output']>;
|
|
784
|
+
};
|
|
667
785
|
/** order by var_samp() on columns of table "placement_group_slots" */
|
|
668
786
|
type Placement_Group_Slots_Var_Samp_Order_By = {
|
|
669
787
|
slot_index?: InputMaybe<Order_By>;
|
|
670
788
|
updated_at?: InputMaybe<Order_By>;
|
|
671
789
|
};
|
|
790
|
+
/** aggregate variance on columns */
|
|
791
|
+
type Placement_Group_Slots_Variance_Fields = {
|
|
792
|
+
__typename?: 'placement_group_slots_variance_fields';
|
|
793
|
+
slot_index?: Maybe<Scalars['Float']['output']>;
|
|
794
|
+
updated_at?: Maybe<Scalars['Float']['output']>;
|
|
795
|
+
};
|
|
672
796
|
/** order by variance() on columns of table "placement_group_slots" */
|
|
673
797
|
type Placement_Group_Slots_Variance_Order_By = {
|
|
674
798
|
slot_index?: InputMaybe<Order_By>;
|
|
@@ -734,6 +858,8 @@ type Query_Root = {
|
|
|
734
858
|
blobs_by_pk?: Maybe<Blobs>;
|
|
735
859
|
/** An array relationship */
|
|
736
860
|
placement_group_slots: Array<Placement_Group_Slots>;
|
|
861
|
+
/** An aggregate relationship */
|
|
862
|
+
placement_group_slots_aggregate: Placement_Group_Slots_Aggregate;
|
|
737
863
|
/** fetch data from the table: "placement_group_slots" using primary key columns */
|
|
738
864
|
placement_group_slots_by_pk?: Maybe<Placement_Group_Slots>;
|
|
739
865
|
/** fetch data from the table: "processor_status" */
|
|
@@ -782,6 +908,13 @@ type Query_RootPlacement_Group_SlotsArgs = {
|
|
|
782
908
|
order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
|
|
783
909
|
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
784
910
|
};
|
|
911
|
+
type Query_RootPlacement_Group_Slots_AggregateArgs = {
|
|
912
|
+
distinct_on?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
|
|
913
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
914
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
915
|
+
order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
|
|
916
|
+
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
917
|
+
};
|
|
785
918
|
type Query_RootPlacement_Group_Slots_By_PkArgs = {
|
|
786
919
|
placement_group: Scalars['String']['input'];
|
|
787
920
|
slot_index: Scalars['numeric']['input'];
|
|
@@ -813,6 +946,8 @@ type Subscription_Root = {
|
|
|
813
946
|
blobs_stream: Array<Blobs>;
|
|
814
947
|
/** An array relationship */
|
|
815
948
|
placement_group_slots: Array<Placement_Group_Slots>;
|
|
949
|
+
/** An aggregate relationship */
|
|
950
|
+
placement_group_slots_aggregate: Placement_Group_Slots_Aggregate;
|
|
816
951
|
/** fetch data from the table: "placement_group_slots" using primary key columns */
|
|
817
952
|
placement_group_slots_by_pk?: Maybe<Placement_Group_Slots>;
|
|
818
953
|
/** fetch data from the table in a streaming manner: "placement_group_slots" */
|
|
@@ -875,6 +1010,13 @@ type Subscription_RootPlacement_Group_SlotsArgs = {
|
|
|
875
1010
|
order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
|
|
876
1011
|
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
877
1012
|
};
|
|
1013
|
+
type Subscription_RootPlacement_Group_Slots_AggregateArgs = {
|
|
1014
|
+
distinct_on?: InputMaybe<Array<Placement_Group_Slots_Select_Column>>;
|
|
1015
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1016
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
1017
|
+
order_by?: InputMaybe<Array<Placement_Group_Slots_Order_By>>;
|
|
1018
|
+
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
1019
|
+
};
|
|
878
1020
|
type Subscription_RootPlacement_Group_Slots_By_PkArgs = {
|
|
879
1021
|
placement_group: Scalars['String']['input'];
|
|
880
1022
|
slot_index: Scalars['numeric']['input'];
|
|
@@ -921,14 +1063,14 @@ type GetBlobsQuery = {
|
|
|
921
1063
|
owner: string;
|
|
922
1064
|
blob_commitment: string;
|
|
923
1065
|
blob_name: string;
|
|
924
|
-
created_at:
|
|
925
|
-
expires_at:
|
|
926
|
-
num_chunksets:
|
|
927
|
-
is_deleted:
|
|
928
|
-
is_written:
|
|
1066
|
+
created_at: string;
|
|
1067
|
+
expires_at: string;
|
|
1068
|
+
num_chunksets: string;
|
|
1069
|
+
is_deleted: string;
|
|
1070
|
+
is_written: string;
|
|
929
1071
|
placement_group: string;
|
|
930
|
-
size:
|
|
931
|
-
updated_at:
|
|
1072
|
+
size: string;
|
|
1073
|
+
updated_at: string;
|
|
932
1074
|
slice_address: string;
|
|
933
1075
|
}>;
|
|
934
1076
|
};
|
|
@@ -943,11 +1085,11 @@ type GetBlobActivitiesQuery = {
|
|
|
943
1085
|
blob_activities: Array<{
|
|
944
1086
|
__typename?: 'blob_activities';
|
|
945
1087
|
blob_name: string;
|
|
946
|
-
event_index:
|
|
1088
|
+
event_index: string;
|
|
947
1089
|
event_type: string;
|
|
948
1090
|
transaction_hash: string;
|
|
949
|
-
transaction_version:
|
|
950
|
-
timestamp:
|
|
1091
|
+
transaction_version: string;
|
|
1092
|
+
timestamp: string;
|
|
951
1093
|
}>;
|
|
952
1094
|
};
|
|
953
1095
|
type GetBlobsCountQueryVariables = Exact<{
|
|
@@ -976,17 +1118,65 @@ type GetBlobActivitiesCountQuery = {
|
|
|
976
1118
|
} | null;
|
|
977
1119
|
};
|
|
978
1120
|
};
|
|
1121
|
+
type GetPlacementGroupSlotsQueryVariables = Exact<{
|
|
1122
|
+
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
1123
|
+
orderBy?: InputMaybe<Array<Placement_Group_Slots_Order_By> | Placement_Group_Slots_Order_By>;
|
|
1124
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1125
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
1126
|
+
}>;
|
|
1127
|
+
type GetPlacementGroupSlotsQuery = {
|
|
1128
|
+
__typename?: 'query_root';
|
|
1129
|
+
placement_group_slots: Array<{
|
|
1130
|
+
__typename?: 'placement_group_slots';
|
|
1131
|
+
placement_group: string;
|
|
1132
|
+
slot_index: string;
|
|
1133
|
+
storage_provider: string;
|
|
1134
|
+
status: string;
|
|
1135
|
+
updated_at: string;
|
|
1136
|
+
}>;
|
|
1137
|
+
};
|
|
1138
|
+
type GetPlacementGroupSlotsCountQueryVariables = Exact<{
|
|
1139
|
+
where?: InputMaybe<Placement_Group_Slots_Bool_Exp>;
|
|
1140
|
+
}>;
|
|
1141
|
+
type GetPlacementGroupSlotsCountQuery = {
|
|
1142
|
+
__typename?: 'query_root';
|
|
1143
|
+
placement_group_slots_aggregate: {
|
|
1144
|
+
__typename?: 'placement_group_slots_aggregate';
|
|
1145
|
+
aggregate?: {
|
|
1146
|
+
__typename?: 'placement_group_slots_aggregate_fields';
|
|
1147
|
+
count: number;
|
|
1148
|
+
} | null;
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
type GetProcessorStatusQueryVariables = Exact<{
|
|
1152
|
+
[key: string]: never;
|
|
1153
|
+
}>;
|
|
1154
|
+
type GetProcessorStatusQuery = {
|
|
1155
|
+
__typename?: 'query_root';
|
|
1156
|
+
processor_status: Array<{
|
|
1157
|
+
__typename?: 'processor_status';
|
|
1158
|
+
last_success_version: string;
|
|
1159
|
+
last_transaction_timestamp?: string | null;
|
|
1160
|
+
last_updated: string;
|
|
1161
|
+
}>;
|
|
1162
|
+
};
|
|
979
1163
|
declare const GetBlobsDocument: graphql.DocumentNode;
|
|
980
1164
|
declare const GetBlobActivitiesDocument: graphql.DocumentNode;
|
|
981
1165
|
declare const GetBlobsCountDocument: graphql.DocumentNode;
|
|
982
1166
|
declare const GetBlobActivitiesCountDocument: graphql.DocumentNode;
|
|
1167
|
+
declare const GetPlacementGroupSlotsDocument: graphql.DocumentNode;
|
|
1168
|
+
declare const GetPlacementGroupSlotsCountDocument: graphql.DocumentNode;
|
|
1169
|
+
declare const GetProcessorStatusDocument: graphql.DocumentNode;
|
|
983
1170
|
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
984
1171
|
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
985
1172
|
getBlobs(variables?: GetBlobsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetBlobsQuery>;
|
|
986
1173
|
getBlobActivities(variables?: GetBlobActivitiesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetBlobActivitiesQuery>;
|
|
987
1174
|
getBlobsCount(variables?: GetBlobsCountQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetBlobsCountQuery>;
|
|
988
1175
|
getBlobActivitiesCount(variables?: GetBlobActivitiesCountQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetBlobActivitiesCountQuery>;
|
|
1176
|
+
getPlacementGroupSlots(variables?: GetPlacementGroupSlotsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPlacementGroupSlotsQuery>;
|
|
1177
|
+
getPlacementGroupSlotsCount(variables?: GetPlacementGroupSlotsCountQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetPlacementGroupSlotsCountQuery>;
|
|
1178
|
+
getProcessorStatus(variables?: GetProcessorStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetProcessorStatusQuery>;
|
|
989
1179
|
};
|
|
990
1180
|
type Sdk = ReturnType<typeof getSdk>;
|
|
991
1181
|
|
|
992
|
-
export { type Bigint_Comparison_Exp, type Blob_Activities, type Blob_Activities_Aggregate, type Blob_Activities_Aggregate_Fields, type Blob_Activities_Aggregate_FieldsCountArgs, type Blob_Activities_Avg_Fields, type Blob_Activities_Bool_Exp, type Blob_Activities_Max_Fields, type Blob_Activities_Min_Fields, type Blob_Activities_Order_By, Blob_Activities_Select_Column, type Blob_Activities_Stddev_Fields, type Blob_Activities_Stddev_Pop_Fields, type Blob_Activities_Stddev_Samp_Fields, type Blob_Activities_Stream_Cursor_Input, type Blob_Activities_Stream_Cursor_Value_Input, type Blob_Activities_Sum_Fields, type Blob_Activities_Var_Pop_Fields, type Blob_Activities_Var_Samp_Fields, type Blob_Activities_Variance_Fields, type Blobs, type BlobsPlacement_Group_SlotsArgs, type Blobs_Aggregate, type Blobs_Aggregate_Fields, type Blobs_Aggregate_FieldsCountArgs, type Blobs_Avg_Fields, type Blobs_Bool_Exp, type Blobs_Max_Fields, type Blobs_Min_Fields, type Blobs_Order_By, Blobs_Select_Column, type Blobs_Stddev_Fields, type Blobs_Stddev_Pop_Fields, type Blobs_Stddev_Samp_Fields, type Blobs_Stream_Cursor_Input, type Blobs_Stream_Cursor_Value_Input, type Blobs_Sum_Fields, type Blobs_Var_Pop_Fields, type Blobs_Var_Samp_Fields, type Blobs_Variance_Fields, Cursor_Ordering, type Exact, GetBlobActivitiesCountDocument, type GetBlobActivitiesCountQuery, type GetBlobActivitiesCountQueryVariables, GetBlobActivitiesDocument, type GetBlobActivitiesQuery, type GetBlobActivitiesQueryVariables, GetBlobsCountDocument, type GetBlobsCountQuery, type GetBlobsCountQueryVariables, 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_AggregateArgs, type Query_RootBlob_Activities_By_PkArgs, type Query_RootBlobsArgs, type Query_RootBlobs_AggregateArgs, 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_AggregateArgs, type Subscription_RootBlob_Activities_By_PkArgs, type Subscription_RootBlob_Activities_StreamArgs, type Subscription_RootBlobsArgs, type Subscription_RootBlobs_AggregateArgs, 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 };
|
|
1182
|
+
export { type Bigint_Comparison_Exp, type Blob_Activities, type Blob_Activities_Aggregate, type Blob_Activities_Aggregate_Fields, type Blob_Activities_Aggregate_FieldsCountArgs, type Blob_Activities_Avg_Fields, type Blob_Activities_Bool_Exp, type Blob_Activities_Max_Fields, type Blob_Activities_Min_Fields, type Blob_Activities_Order_By, Blob_Activities_Select_Column, type Blob_Activities_Stddev_Fields, type Blob_Activities_Stddev_Pop_Fields, type Blob_Activities_Stddev_Samp_Fields, type Blob_Activities_Stream_Cursor_Input, type Blob_Activities_Stream_Cursor_Value_Input, type Blob_Activities_Sum_Fields, type Blob_Activities_Var_Pop_Fields, type Blob_Activities_Var_Samp_Fields, type Blob_Activities_Variance_Fields, type Blobs, type BlobsPlacement_Group_SlotsArgs, type BlobsPlacement_Group_Slots_AggregateArgs, type Blobs_Aggregate, type Blobs_Aggregate_Fields, type Blobs_Aggregate_FieldsCountArgs, type Blobs_Avg_Fields, type Blobs_Bool_Exp, type Blobs_Max_Fields, type Blobs_Min_Fields, type Blobs_Order_By, Blobs_Select_Column, type Blobs_Stddev_Fields, type Blobs_Stddev_Pop_Fields, type Blobs_Stddev_Samp_Fields, type Blobs_Stream_Cursor_Input, type Blobs_Stream_Cursor_Value_Input, type Blobs_Sum_Fields, type Blobs_Var_Pop_Fields, type Blobs_Var_Samp_Fields, type Blobs_Variance_Fields, Cursor_Ordering, type Exact, GetBlobActivitiesCountDocument, type GetBlobActivitiesCountQuery, type GetBlobActivitiesCountQueryVariables, GetBlobActivitiesDocument, type GetBlobActivitiesQuery, type GetBlobActivitiesQueryVariables, GetBlobsCountDocument, type GetBlobsCountQuery, type GetBlobsCountQueryVariables, GetBlobsDocument, type GetBlobsQuery, type GetBlobsQueryVariables, GetPlacementGroupSlotsCountDocument, type GetPlacementGroupSlotsCountQuery, type GetPlacementGroupSlotsCountQueryVariables, GetPlacementGroupSlotsDocument, type GetPlacementGroupSlotsQuery, type GetPlacementGroupSlotsQueryVariables, GetProcessorStatusDocument, type GetProcessorStatusQuery, type GetProcessorStatusQueryVariables, type Incremental, type InputMaybe, type Int_Comparison_Exp, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type Numeric_Comparison_Exp, Order_By, type Placement_Group_Slots, type Placement_Group_Slots_Aggregate, type Placement_Group_Slots_Aggregate_Bool_Exp, type Placement_Group_Slots_Aggregate_Bool_Exp_Count, type Placement_Group_Slots_Aggregate_Fields, type Placement_Group_Slots_Aggregate_FieldsCountArgs, type Placement_Group_Slots_Aggregate_Order_By, type Placement_Group_Slots_Avg_Fields, type Placement_Group_Slots_Avg_Order_By, type Placement_Group_Slots_Bool_Exp, type Placement_Group_Slots_Max_Fields, type Placement_Group_Slots_Max_Order_By, type Placement_Group_Slots_Min_Fields, type Placement_Group_Slots_Min_Order_By, type Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, type Placement_Group_Slots_Stddev_Fields, type Placement_Group_Slots_Stddev_Order_By, type Placement_Group_Slots_Stddev_Pop_Fields, type Placement_Group_Slots_Stddev_Pop_Order_By, type Placement_Group_Slots_Stddev_Samp_Fields, 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_Fields, type Placement_Group_Slots_Sum_Order_By, type Placement_Group_Slots_Var_Pop_Fields, type Placement_Group_Slots_Var_Pop_Order_By, type Placement_Group_Slots_Var_Samp_Fields, type Placement_Group_Slots_Var_Samp_Order_By, type Placement_Group_Slots_Variance_Fields, 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_AggregateArgs, type Query_RootBlob_Activities_By_PkArgs, type Query_RootBlobsArgs, type Query_RootBlobs_AggregateArgs, type Query_RootBlobs_By_PkArgs, type Query_RootPlacement_Group_SlotsArgs, type Query_RootPlacement_Group_Slots_AggregateArgs, 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_AggregateArgs, type Subscription_RootBlob_Activities_By_PkArgs, type Subscription_RootBlob_Activities_StreamArgs, type Subscription_RootBlobsArgs, type Subscription_RootBlobs_AggregateArgs, type Subscription_RootBlobs_By_PkArgs, type Subscription_RootBlobs_StreamArgs, type Subscription_RootPlacement_Group_SlotsArgs, type Subscription_RootPlacement_Group_Slots_AggregateArgs, 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 };
|
|
@@ -6,11 +6,14 @@ import {
|
|
|
6
6
|
GetBlobActivitiesDocument,
|
|
7
7
|
GetBlobsCountDocument,
|
|
8
8
|
GetBlobsDocument,
|
|
9
|
+
GetPlacementGroupSlotsCountDocument,
|
|
10
|
+
GetPlacementGroupSlotsDocument,
|
|
11
|
+
GetProcessorStatusDocument,
|
|
9
12
|
Order_By,
|
|
10
13
|
Placement_Group_Slots_Select_Column,
|
|
11
14
|
Processor_Status_Select_Column,
|
|
12
15
|
getSdk
|
|
13
|
-
} from "../../../chunk-
|
|
16
|
+
} from "../../../chunk-KJ24NKPH.mjs";
|
|
14
17
|
import "../../../chunk-7P6ASYW6.mjs";
|
|
15
18
|
export {
|
|
16
19
|
Blob_Activities_Select_Column,
|
|
@@ -20,6 +23,9 @@ export {
|
|
|
20
23
|
GetBlobActivitiesDocument,
|
|
21
24
|
GetBlobsCountDocument,
|
|
22
25
|
GetBlobsDocument,
|
|
26
|
+
GetPlacementGroupSlotsCountDocument,
|
|
27
|
+
GetPlacementGroupSlotsDocument,
|
|
28
|
+
GetProcessorStatusDocument,
|
|
23
29
|
Order_By,
|
|
24
30
|
Placement_Group_Slots_Select_Column,
|
|
25
31
|
Processor_Status_Select_Column,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
2
|
import { ShelbyClientConfig } from '../clients/ShelbyClientConfig.js';
|
|
3
|
-
import { GetBlobsQueryVariables, GetBlobsQuery, GetBlobActivitiesQueryVariables, GetBlobActivitiesQuery, GetBlobsCountQueryVariables, GetBlobsCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesCountQuery } from './generated/sdk.js';
|
|
4
|
-
export { Bigint_Comparison_Exp, Blob_Activities, Blob_Activities_Aggregate, Blob_Activities_Aggregate_Fields, Blob_Activities_Aggregate_FieldsCountArgs, Blob_Activities_Avg_Fields, Blob_Activities_Bool_Exp, Blob_Activities_Max_Fields, Blob_Activities_Min_Fields, Blob_Activities_Order_By, Blob_Activities_Select_Column, Blob_Activities_Stddev_Fields, Blob_Activities_Stddev_Pop_Fields, Blob_Activities_Stddev_Samp_Fields, Blob_Activities_Stream_Cursor_Input, Blob_Activities_Stream_Cursor_Value_Input, Blob_Activities_Sum_Fields, Blob_Activities_Var_Pop_Fields, Blob_Activities_Var_Samp_Fields, Blob_Activities_Variance_Fields, Blobs, BlobsPlacement_Group_SlotsArgs, Blobs_Aggregate, Blobs_Aggregate_Fields, Blobs_Aggregate_FieldsCountArgs, Blobs_Avg_Fields, Blobs_Bool_Exp, Blobs_Max_Fields, Blobs_Min_Fields, Blobs_Order_By, Blobs_Select_Column, Blobs_Stddev_Fields, Blobs_Stddev_Pop_Fields, Blobs_Stddev_Samp_Fields, Blobs_Stream_Cursor_Input, Blobs_Stream_Cursor_Value_Input, Blobs_Sum_Fields, Blobs_Var_Pop_Fields, Blobs_Var_Samp_Fields, Blobs_Variance_Fields, Cursor_Ordering, Exact, GetBlobActivitiesCountDocument, GetBlobActivitiesDocument, GetBlobsCountDocument, GetBlobsDocument, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Numeric_Comparison_Exp, Order_By, Placement_Group_Slots, Placement_Group_Slots_Aggregate_Order_By, Placement_Group_Slots_Avg_Order_By, Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Max_Order_By, Placement_Group_Slots_Min_Order_By, Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, Placement_Group_Slots_Stddev_Order_By, Placement_Group_Slots_Stddev_Pop_Order_By, Placement_Group_Slots_Stddev_Samp_Order_By, Placement_Group_Slots_Stream_Cursor_Input, Placement_Group_Slots_Stream_Cursor_Value_Input, Placement_Group_Slots_Sum_Order_By, Placement_Group_Slots_Var_Pop_Order_By, Placement_Group_Slots_Var_Samp_Order_By, Placement_Group_Slots_Variance_Order_By, Processor_Status, Processor_Status_Bool_Exp, Processor_Status_Order_By, Processor_Status_Select_Column, Processor_Status_Stream_Cursor_Input, Processor_Status_Stream_Cursor_Value_Input, Query_Root, Query_RootBlob_ActivitiesArgs, Query_RootBlob_Activities_AggregateArgs, Query_RootBlob_Activities_By_PkArgs, Query_RootBlobsArgs, Query_RootBlobs_AggregateArgs, Query_RootBlobs_By_PkArgs, Query_RootPlacement_Group_SlotsArgs, Query_RootPlacement_Group_Slots_By_PkArgs, Query_RootProcessor_StatusArgs, Scalars, Sdk, SdkFunctionWrapper, String_Comparison_Exp, Subscription_Root, Subscription_RootBlob_ActivitiesArgs, Subscription_RootBlob_Activities_AggregateArgs, Subscription_RootBlob_Activities_By_PkArgs, Subscription_RootBlob_Activities_StreamArgs, Subscription_RootBlobsArgs, Subscription_RootBlobs_AggregateArgs, Subscription_RootBlobs_By_PkArgs, Subscription_RootBlobs_StreamArgs, Subscription_RootPlacement_Group_SlotsArgs, Subscription_RootPlacement_Group_Slots_By_PkArgs, Subscription_RootPlacement_Group_Slots_StreamArgs, Subscription_RootProcessor_StatusArgs, Subscription_RootProcessor_Status_StreamArgs, Timestamp_Comparison_Exp, getSdk } from './generated/sdk.js';
|
|
3
|
+
import { GetBlobsQueryVariables, GetBlobsQuery, GetBlobActivitiesQueryVariables, GetBlobActivitiesQuery, GetBlobsCountQueryVariables, GetBlobsCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesCountQuery, GetPlacementGroupSlotsQueryVariables, GetPlacementGroupSlotsQuery, GetPlacementGroupSlotsCountQueryVariables, GetPlacementGroupSlotsCountQuery, GetProcessorStatusQueryVariables, GetProcessorStatusQuery } from './generated/sdk.js';
|
|
4
|
+
export { Bigint_Comparison_Exp, Blob_Activities, Blob_Activities_Aggregate, Blob_Activities_Aggregate_Fields, Blob_Activities_Aggregate_FieldsCountArgs, Blob_Activities_Avg_Fields, Blob_Activities_Bool_Exp, Blob_Activities_Max_Fields, Blob_Activities_Min_Fields, Blob_Activities_Order_By, Blob_Activities_Select_Column, Blob_Activities_Stddev_Fields, Blob_Activities_Stddev_Pop_Fields, Blob_Activities_Stddev_Samp_Fields, Blob_Activities_Stream_Cursor_Input, Blob_Activities_Stream_Cursor_Value_Input, Blob_Activities_Sum_Fields, Blob_Activities_Var_Pop_Fields, Blob_Activities_Var_Samp_Fields, Blob_Activities_Variance_Fields, Blobs, BlobsPlacement_Group_SlotsArgs, BlobsPlacement_Group_Slots_AggregateArgs, Blobs_Aggregate, Blobs_Aggregate_Fields, Blobs_Aggregate_FieldsCountArgs, Blobs_Avg_Fields, Blobs_Bool_Exp, Blobs_Max_Fields, Blobs_Min_Fields, Blobs_Order_By, Blobs_Select_Column, Blobs_Stddev_Fields, Blobs_Stddev_Pop_Fields, Blobs_Stddev_Samp_Fields, Blobs_Stream_Cursor_Input, Blobs_Stream_Cursor_Value_Input, Blobs_Sum_Fields, Blobs_Var_Pop_Fields, Blobs_Var_Samp_Fields, Blobs_Variance_Fields, Cursor_Ordering, Exact, GetBlobActivitiesCountDocument, GetBlobActivitiesDocument, GetBlobsCountDocument, GetBlobsDocument, GetPlacementGroupSlotsCountDocument, GetPlacementGroupSlotsDocument, GetProcessorStatusDocument, Incremental, InputMaybe, Int_Comparison_Exp, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Numeric_Comparison_Exp, Order_By, Placement_Group_Slots, Placement_Group_Slots_Aggregate, Placement_Group_Slots_Aggregate_Bool_Exp, Placement_Group_Slots_Aggregate_Bool_Exp_Count, Placement_Group_Slots_Aggregate_Fields, Placement_Group_Slots_Aggregate_FieldsCountArgs, Placement_Group_Slots_Aggregate_Order_By, Placement_Group_Slots_Avg_Fields, Placement_Group_Slots_Avg_Order_By, Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Max_Fields, Placement_Group_Slots_Max_Order_By, Placement_Group_Slots_Min_Fields, Placement_Group_Slots_Min_Order_By, Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, Placement_Group_Slots_Stddev_Fields, Placement_Group_Slots_Stddev_Order_By, Placement_Group_Slots_Stddev_Pop_Fields, Placement_Group_Slots_Stddev_Pop_Order_By, Placement_Group_Slots_Stddev_Samp_Fields, Placement_Group_Slots_Stddev_Samp_Order_By, Placement_Group_Slots_Stream_Cursor_Input, Placement_Group_Slots_Stream_Cursor_Value_Input, Placement_Group_Slots_Sum_Fields, Placement_Group_Slots_Sum_Order_By, Placement_Group_Slots_Var_Pop_Fields, Placement_Group_Slots_Var_Pop_Order_By, Placement_Group_Slots_Var_Samp_Fields, Placement_Group_Slots_Var_Samp_Order_By, Placement_Group_Slots_Variance_Fields, Placement_Group_Slots_Variance_Order_By, Processor_Status, Processor_Status_Bool_Exp, Processor_Status_Order_By, Processor_Status_Select_Column, Processor_Status_Stream_Cursor_Input, Processor_Status_Stream_Cursor_Value_Input, Query_Root, Query_RootBlob_ActivitiesArgs, Query_RootBlob_Activities_AggregateArgs, Query_RootBlob_Activities_By_PkArgs, Query_RootBlobsArgs, Query_RootBlobs_AggregateArgs, Query_RootBlobs_By_PkArgs, Query_RootPlacement_Group_SlotsArgs, Query_RootPlacement_Group_Slots_AggregateArgs, Query_RootPlacement_Group_Slots_By_PkArgs, Query_RootProcessor_StatusArgs, Scalars, Sdk, SdkFunctionWrapper, String_Comparison_Exp, Subscription_Root, Subscription_RootBlob_ActivitiesArgs, Subscription_RootBlob_Activities_AggregateArgs, Subscription_RootBlob_Activities_By_PkArgs, Subscription_RootBlob_Activities_StreamArgs, Subscription_RootBlobsArgs, Subscription_RootBlobs_AggregateArgs, Subscription_RootBlobs_By_PkArgs, Subscription_RootBlobs_StreamArgs, Subscription_RootPlacement_Group_SlotsArgs, Subscription_RootPlacement_Group_Slots_AggregateArgs, Subscription_RootPlacement_Group_Slots_By_PkArgs, Subscription_RootPlacement_Group_Slots_StreamArgs, Subscription_RootProcessor_StatusArgs, Subscription_RootProcessor_Status_StreamArgs, Timestamp_Comparison_Exp, getSdk } from './generated/sdk.js';
|
|
5
5
|
import '@aptos-labs/ts-sdk';
|
|
6
6
|
import '../networks.js';
|
|
7
7
|
import 'graphql';
|
|
@@ -11,6 +11,9 @@ declare function createShelbyIndexerClient(baseUrl: string, options?: Constructo
|
|
|
11
11
|
getBlobActivities(variables?: GetBlobActivitiesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetBlobActivitiesQuery>;
|
|
12
12
|
getBlobsCount(variables?: GetBlobsCountQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetBlobsCountQuery>;
|
|
13
13
|
getBlobActivitiesCount(variables?: GetBlobActivitiesCountQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetBlobActivitiesCountQuery>;
|
|
14
|
+
getPlacementGroupSlots(variables?: GetPlacementGroupSlotsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetPlacementGroupSlotsQuery>;
|
|
15
|
+
getPlacementGroupSlotsCount(variables?: GetPlacementGroupSlotsCountQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetPlacementGroupSlotsCountQuery>;
|
|
16
|
+
getProcessorStatus(variables?: GetProcessorStatusQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetProcessorStatusQuery>;
|
|
14
17
|
};
|
|
15
18
|
/**
|
|
16
19
|
* Creates a Shelby indexer client from a Shelby client config.
|
|
@@ -30,7 +33,10 @@ declare function getShelbyIndexerClient(config: ShelbyClientConfig): {
|
|
|
30
33
|
getBlobActivities(variables?: GetBlobActivitiesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetBlobActivitiesQuery>;
|
|
31
34
|
getBlobsCount(variables?: GetBlobsCountQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetBlobsCountQuery>;
|
|
32
35
|
getBlobActivitiesCount(variables?: GetBlobActivitiesCountQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetBlobActivitiesCountQuery>;
|
|
36
|
+
getPlacementGroupSlots(variables?: GetPlacementGroupSlotsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetPlacementGroupSlotsQuery>;
|
|
37
|
+
getPlacementGroupSlotsCount(variables?: GetPlacementGroupSlotsCountQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetPlacementGroupSlotsCountQuery>;
|
|
38
|
+
getProcessorStatus(variables?: GetProcessorStatusQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetProcessorStatusQuery>;
|
|
33
39
|
};
|
|
34
40
|
type ShelbyIndexerClient = ReturnType<typeof createShelbyIndexerClient>;
|
|
35
41
|
|
|
36
|
-
export { GetBlobActivitiesCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesQuery, GetBlobActivitiesQueryVariables, GetBlobsCountQuery, GetBlobsCountQueryVariables, GetBlobsQuery, GetBlobsQueryVariables, type ShelbyIndexerClient, createShelbyIndexerClient, getShelbyIndexerClient };
|
|
42
|
+
export { GetBlobActivitiesCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesQuery, GetBlobActivitiesQueryVariables, GetBlobsCountQuery, GetBlobsCountQueryVariables, GetBlobsQuery, GetBlobsQueryVariables, GetPlacementGroupSlotsCountQuery, GetPlacementGroupSlotsCountQueryVariables, GetPlacementGroupSlotsQuery, GetPlacementGroupSlotsQueryVariables, GetProcessorStatusQuery, GetProcessorStatusQueryVariables, type ShelbyIndexerClient, createShelbyIndexerClient, getShelbyIndexerClient };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createShelbyIndexerClient,
|
|
3
3
|
getShelbyIndexerClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-CGYJLKBU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Blob_Activities_Select_Column,
|
|
7
7
|
Blobs_Select_Column,
|
|
@@ -10,13 +10,16 @@ import {
|
|
|
10
10
|
GetBlobActivitiesDocument,
|
|
11
11
|
GetBlobsCountDocument,
|
|
12
12
|
GetBlobsDocument,
|
|
13
|
+
GetPlacementGroupSlotsCountDocument,
|
|
14
|
+
GetPlacementGroupSlotsDocument,
|
|
15
|
+
GetProcessorStatusDocument,
|
|
13
16
|
Order_By,
|
|
14
17
|
Placement_Group_Slots_Select_Column,
|
|
15
18
|
Processor_Status_Select_Column,
|
|
16
19
|
getSdk
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
+
} from "../../chunk-KJ24NKPH.mjs";
|
|
21
|
+
import "../../chunk-AABBONAF.mjs";
|
|
22
|
+
import "../../chunk-4ZOFT75Q.mjs";
|
|
20
23
|
import "../../chunk-7P6ASYW6.mjs";
|
|
21
24
|
export {
|
|
22
25
|
Blob_Activities_Select_Column,
|
|
@@ -26,6 +29,9 @@ export {
|
|
|
26
29
|
GetBlobActivitiesDocument,
|
|
27
30
|
GetBlobsCountDocument,
|
|
28
31
|
GetBlobsDocument,
|
|
32
|
+
GetPlacementGroupSlotsCountDocument,
|
|
33
|
+
GetPlacementGroupSlotsDocument,
|
|
34
|
+
GetProcessorStatusDocument,
|
|
29
35
|
Order_By,
|
|
30
36
|
Placement_Group_Slots_Select_Column,
|
|
31
37
|
Processor_Status_Select_Column,
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared response schemas for Shelby RPC API endpoints.
|
|
5
|
+
*
|
|
6
|
+
* These schemas define the contract between the RPC server and SDK client.
|
|
7
|
+
* Both the server (apps/server) and SDK client (ShelbyRPCClient) should use
|
|
8
|
+
* these schemas to ensure type safety and runtime validation.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Response from POST /v1/multipart-uploads
|
|
12
|
+
*/
|
|
13
|
+
declare const StartMultipartUploadResponseSchema: z.ZodObject<{
|
|
14
|
+
uploadId: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
uploadId: string;
|
|
17
|
+
}, {
|
|
18
|
+
uploadId: string;
|
|
19
|
+
}>;
|
|
20
|
+
type StartMultipartUploadResponse = z.infer<typeof StartMultipartUploadResponseSchema>;
|
|
21
|
+
/**
|
|
22
|
+
* Response from PUT /v1/multipart-uploads/:uploadId/parts/:partIdx
|
|
23
|
+
*/
|
|
24
|
+
declare const UploadPartResponseSchema: z.ZodObject<{
|
|
25
|
+
success: z.ZodLiteral<true>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
success: true;
|
|
28
|
+
}, {
|
|
29
|
+
success: true;
|
|
30
|
+
}>;
|
|
31
|
+
type UploadPartResponse = z.infer<typeof UploadPartResponseSchema>;
|
|
32
|
+
/**
|
|
33
|
+
* Response from POST /v1/multipart-uploads/:uploadId/complete
|
|
34
|
+
*/
|
|
35
|
+
declare const CompleteMultipartUploadResponseSchema: z.ZodObject<{
|
|
36
|
+
success: z.ZodLiteral<true>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
success: true;
|
|
39
|
+
}, {
|
|
40
|
+
success: true;
|
|
41
|
+
}>;
|
|
42
|
+
type CompleteMultipartUploadResponse = z.infer<typeof CompleteMultipartUploadResponseSchema>;
|
|
43
|
+
/**
|
|
44
|
+
* Error response returned by RPC endpoints on failure.
|
|
45
|
+
*/
|
|
46
|
+
declare const RPCErrorResponseSchema: z.ZodObject<{
|
|
47
|
+
error: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
error: string;
|
|
50
|
+
}, {
|
|
51
|
+
error: string;
|
|
52
|
+
}>;
|
|
53
|
+
type RPCErrorResponse = z.infer<typeof RPCErrorResponseSchema>;
|
|
54
|
+
/**
|
|
55
|
+
* Response from GET /v1/blobs/:account/:blobName when micropayment is stale (409).
|
|
56
|
+
*/
|
|
57
|
+
declare const StaleMicropaymentErrorResponseSchema: z.ZodObject<{
|
|
58
|
+
error: z.ZodOptional<z.ZodString>;
|
|
59
|
+
storedMicropayment: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
error?: string | undefined;
|
|
62
|
+
storedMicropayment?: string | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
error?: string | undefined;
|
|
65
|
+
storedMicropayment?: string | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
type StaleMicropaymentErrorResponse = z.infer<typeof StaleMicropaymentErrorResponseSchema>;
|
|
68
|
+
|
|
69
|
+
export { type CompleteMultipartUploadResponse, CompleteMultipartUploadResponseSchema, type RPCErrorResponse, RPCErrorResponseSchema, type StaleMicropaymentErrorResponse, StaleMicropaymentErrorResponseSchema, type StartMultipartUploadResponse, StartMultipartUploadResponseSchema, type UploadPartResponse, UploadPartResponseSchema };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CompleteMultipartUploadResponseSchema,
|
|
3
|
+
RPCErrorResponseSchema,
|
|
4
|
+
StaleMicropaymentErrorResponseSchema,
|
|
5
|
+
StartMultipartUploadResponseSchema,
|
|
6
|
+
UploadPartResponseSchema
|
|
7
|
+
} from "../chunk-IE6LYVIA.mjs";
|
|
8
|
+
import "../chunk-7P6ASYW6.mjs";
|
|
9
|
+
export {
|
|
10
|
+
CompleteMultipartUploadResponseSchema,
|
|
11
|
+
RPCErrorResponseSchema,
|
|
12
|
+
StaleMicropaymentErrorResponseSchema,
|
|
13
|
+
StartMultipartUploadResponseSchema,
|
|
14
|
+
UploadPartResponseSchema
|
|
15
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountAddress } from '@aptos-labs/ts-sdk';
|
|
2
|
-
import {
|
|
2
|
+
import { c as ClayProviderOptions } from '../../clay-codes-DHP-bYcP.js';
|
|
3
3
|
import { BlobName } from '../layout.js';
|
|
4
4
|
import '@shelby-protocol/clay-codes';
|
|
5
5
|
import 'zod';
|
|
@@ -35,12 +35,12 @@ interface BlobMetadata {
|
|
|
35
35
|
* The name of the blob.
|
|
36
36
|
* The full blob name is the account address followed by the blob name suffix.
|
|
37
37
|
* Example: if the account address is 0x123 and the blob name suffix is "abc/def/ghi",
|
|
38
|
-
* the full blob name will be "@
|
|
38
|
+
* the full blob name will be "@123/abc/def/ghi"
|
|
39
39
|
*/
|
|
40
40
|
name: BlobName;
|
|
41
41
|
/**
|
|
42
42
|
* The suffix of the blob name.
|
|
43
|
-
* Example: if the full blob name is "@
|
|
43
|
+
* Example: if the full blob name is "@123/abc/def/ghi",
|
|
44
44
|
* the blob name suffix will be "abc/def/ghi"
|
|
45
45
|
*/
|
|
46
46
|
blobNameSuffix: string;
|
|
@@ -72,6 +72,10 @@ interface BlobMetadata {
|
|
|
72
72
|
* Whether the blob is written.
|
|
73
73
|
*/
|
|
74
74
|
isWritten: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the blob is deleted.
|
|
77
|
+
*/
|
|
78
|
+
isDeleted?: boolean;
|
|
75
79
|
}
|
|
76
80
|
type BlobActivityType = "register_blob" | "delete_blob" | "extend_blob_expiration" | "write_blob" | "unknown";
|
|
77
81
|
/**
|
|
@@ -109,7 +113,7 @@ interface BlobActivity {
|
|
|
109
113
|
/**
|
|
110
114
|
* The timestamp of the activity.
|
|
111
115
|
*/
|
|
112
|
-
timestamp:
|
|
116
|
+
timestamp: string;
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
119
|
* A grouping of the the slot index for the storage provider in the slice the blob is assigned to (whew).
|