@n1xyz/nord-ts 0.7.2 → 0.7.3

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.
@@ -61,7 +61,7 @@ export declare const U128Schema: GenMessage<U128, {
61
61
  *
62
62
  * - RFQ_ORDER_TIMEOUTED: order id exists, but the RFQ quote expired before the trade reached the engine.
63
63
  * - ORDER_NOT_FOUND: order id is absent. The RFQ may have been filled, cancelled, expired and cleaned up, or never existed.
64
- * - ORDER_EXECUTION_LIMIT_PRICE: trade price violates the RFQ limit. Bid RFQs require trade price >= RFQ price; ask RFQs require trade price <= RFQ price.
64
+ * - ORDER_EXECUTION_LIMIT_PRICE: trade price violates the RFQ limit. Bid RFQs require trade price <= RFQ price; ask RFQs require trade price >= RFQ price.
65
65
  *
66
66
  * On success, the RFQ order is removed, requester and RFQ maker state including trading
67
67
  * PnL is updated, and an RFQ fill receipt is returned. Only the first successful
@@ -96,6 +96,13 @@ export type RfqTrade = Message<"nord.RfqTrade"> & {
96
96
  * @generated from field: int64 timestamp_millis = 5;
97
97
  */
98
98
  timestampMillis: bigint;
99
+ /**
100
+ * Maker fill constraints. `partial_fill` constraints apply when defined;
101
+ * reduce-only must not flip maker position.
102
+ *
103
+ * @generated from field: nord.FillType fill_type = 6;
104
+ */
105
+ fillType?: FillType;
99
106
  };
100
107
  /**
101
108
  * Sent by an RFQ maker to fill/provide a quote for a specific requester RFQ
@@ -107,7 +114,7 @@ export type RfqTrade = Message<"nord.RfqTrade"> & {
107
114
  *
108
115
  * - RFQ_ORDER_TIMEOUTED: order id exists, but the RFQ quote expired before the trade reached the engine.
109
116
  * - ORDER_NOT_FOUND: order id is absent. The RFQ may have been filled, cancelled, expired and cleaned up, or never existed.
110
- * - ORDER_EXECUTION_LIMIT_PRICE: trade price violates the RFQ limit. Bid RFQs require trade price >= RFQ price; ask RFQs require trade price <= RFQ price.
117
+ * - ORDER_EXECUTION_LIMIT_PRICE: trade price violates the RFQ limit. Bid RFQs require trade price <= RFQ price; ask RFQs require trade price >= RFQ price.
111
118
  *
112
119
  * On success, the RFQ order is removed, requester and RFQ maker state including trading
113
120
  * PnL is updated, and an RFQ fill receipt is returned. Only the first successful
@@ -142,6 +149,13 @@ export type RfqTradeJson = {
142
149
  * @generated from field: int64 timestamp_millis = 5;
143
150
  */
144
151
  timestampMillis?: string;
152
+ /**
153
+ * Maker fill constraints. `partial_fill` constraints apply when defined;
154
+ * reduce-only must not flip maker position.
155
+ *
156
+ * @generated from field: nord.FillType fill_type = 6;
157
+ */
158
+ fillType?: FillTypeJson;
145
159
  };
146
160
  /**
147
161
  * Describes the message nord.RfqTrade.
@@ -150,6 +164,86 @@ export type RfqTradeJson = {
150
164
  export declare const RfqTradeSchema: GenMessage<RfqTrade, {
151
165
  jsonType: RfqTradeJson;
152
166
  }>;
167
+ /**
168
+ * @generated from message nord.PartialFill
169
+ */
170
+ export type PartialFill = Message<"nord.PartialFill"> & {
171
+ /**
172
+ * minimum size which is at least to fill something
173
+ *
174
+ * @generated from field: uint64 minimum_size = 1;
175
+ */
176
+ minimumSize: bigint;
177
+ /**
178
+ * size which when filled, allows to consider order filled (and removed)
179
+ *
180
+ * @generated from field: uint64 maximum_size = 2;
181
+ */
182
+ maximumSize: bigint;
183
+ };
184
+ /**
185
+ * @generated from message nord.PartialFill
186
+ */
187
+ export type PartialFillJson = {
188
+ /**
189
+ * minimum size which is at least to fill something
190
+ *
191
+ * @generated from field: uint64 minimum_size = 1;
192
+ */
193
+ minimumSize?: string;
194
+ /**
195
+ * size which when filled, allows to consider order filled (and removed)
196
+ *
197
+ * @generated from field: uint64 maximum_size = 2;
198
+ */
199
+ maximumSize?: string;
200
+ };
201
+ /**
202
+ * Describes the message nord.PartialFill.
203
+ * Use `create(PartialFillSchema)` to create a new message.
204
+ */
205
+ export declare const PartialFillSchema: GenMessage<PartialFill, {
206
+ jsonType: PartialFillJson;
207
+ }>;
208
+ /**
209
+ * @generated from message nord.FillType
210
+ */
211
+ export type FillType = Message<"nord.FillType"> & {
212
+ /**
213
+ * if reduce only, fill must not flip position.
214
+ * when added, it is capped to the remaining opposite position
215
+ *
216
+ * @generated from field: optional bool is_reduce_only = 1;
217
+ */
218
+ isReduceOnly?: boolean;
219
+ /**
220
+ * @generated from field: optional nord.PartialFill partial_fill = 2;
221
+ */
222
+ partialFill?: PartialFill;
223
+ };
224
+ /**
225
+ * @generated from message nord.FillType
226
+ */
227
+ export type FillTypeJson = {
228
+ /**
229
+ * if reduce only, fill must not flip position.
230
+ * when added, it is capped to the remaining opposite position
231
+ *
232
+ * @generated from field: optional bool is_reduce_only = 1;
233
+ */
234
+ isReduceOnly?: boolean;
235
+ /**
236
+ * @generated from field: optional nord.PartialFill partial_fill = 2;
237
+ */
238
+ partialFill?: PartialFillJson;
239
+ };
240
+ /**
241
+ * Describes the message nord.FillType.
242
+ * Use `create(FillTypeSchema)` to create a new message.
243
+ */
244
+ export declare const FillTypeSchema: GenMessage<FillType, {
245
+ jsonType: FillTypeJson;
246
+ }>;
153
247
  /**
154
248
  * @generated from message nord.RfqPlaceOnly
155
249
  */
@@ -191,12 +285,15 @@ export type RfqPlaceOnly = Message<"nord.RfqPlaceOnly"> & {
191
285
  */
192
286
  base: bigint;
193
287
  /**
194
- * Forced from the current whole-second action timestamp today. Exact
195
- * action-level milliseconds will be propagated after the Pyth migration.
288
+ * Action-level timestamp in milliseconds.
196
289
  *
197
290
  * @generated from field: int64 timestamp_millis = 6;
198
291
  */
199
292
  timestampMillis: bigint;
293
+ /**
294
+ * @generated from field: nord.FillType fill_type = 8;
295
+ */
296
+ fillType?: FillType;
200
297
  };
201
298
  /**
202
299
  * @generated from message nord.RfqPlaceOnly
@@ -239,12 +336,15 @@ export type RfqPlaceOnlyJson = {
239
336
  */
240
337
  base?: string;
241
338
  /**
242
- * Forced from the current whole-second action timestamp today. Exact
243
- * action-level milliseconds will be propagated after the Pyth migration.
339
+ * Action-level timestamp in milliseconds.
244
340
  *
245
341
  * @generated from field: int64 timestamp_millis = 6;
246
342
  */
247
343
  timestampMillis?: string;
344
+ /**
345
+ * @generated from field: nord.FillType fill_type = 8;
346
+ */
347
+ fillType?: FillTypeJson;
248
348
  };
249
349
  /**
250
350
  * Describes the message nord.RfqPlaceOnly.
@@ -707,6 +807,53 @@ export declare const PlaceRFQResultSchema: GenMessage<PlaceRFQResult, {
707
807
  /**
708
808
  * Returned in case of RFQ fill success.
709
809
  *
810
+ * @generated from message nord.RFQExecution
811
+ */
812
+ export type RFQExecution = Message<"nord.RFQExecution"> & {
813
+ /**
814
+ * @generated from field: uint64 filled_size = 1;
815
+ */
816
+ filledSize: bigint;
817
+ /**
818
+ * @generated from field: uint64 trade_id = 2;
819
+ */
820
+ tradeId: bigint;
821
+ /**
822
+ * Actual execution price, which can be better than the RFQ limit price.
823
+ *
824
+ * @generated from field: uint64 execution_price = 3;
825
+ */
826
+ executionPrice: bigint;
827
+ };
828
+ /**
829
+ * Returned in case of RFQ fill success.
830
+ *
831
+ * @generated from message nord.RFQExecution
832
+ */
833
+ export type RFQExecutionJson = {
834
+ /**
835
+ * @generated from field: uint64 filled_size = 1;
836
+ */
837
+ filledSize?: string;
838
+ /**
839
+ * @generated from field: uint64 trade_id = 2;
840
+ */
841
+ tradeId?: string;
842
+ /**
843
+ * Actual execution price, which can be better than the RFQ limit price.
844
+ *
845
+ * @generated from field: uint64 execution_price = 3;
846
+ */
847
+ executionPrice?: string;
848
+ };
849
+ /**
850
+ * Describes the message nord.RFQExecution.
851
+ * Use `create(RFQExecutionSchema)` to create a new message.
852
+ */
853
+ export declare const RFQExecutionSchema: GenMessage<RFQExecution, {
854
+ jsonType: RFQExecutionJson;
855
+ }>;
856
+ /**
710
857
  * @generated from message nord.FillRFQResult
711
858
  */
712
859
  export type FillRFQResult = Message<"nord.FillRFQResult"> & {
@@ -729,19 +876,17 @@ export type FillRFQResult = Message<"nord.FillRFQResult"> & {
729
876
  /**
730
877
  * Present for real user RFQ fills. Omitted for RFQ sampling responses.
731
878
  *
732
- * @generated from field: optional uint64 filled_size = 4;
879
+ * @generated from field: nord.RFQExecution execution = 4;
733
880
  */
734
- filledSize?: bigint;
881
+ execution?: RFQExecution;
735
882
  /**
736
- * Present for real user RFQ fills. Omitted for RFQ sampling responses.
883
+ * Completion / truncation / partial fill status of the RFQ request.
737
884
  *
738
- * @generated from field: optional uint64 trade_id = 5;
885
+ * @generated from field: nord.RfqFillStatus status = 5;
739
886
  */
740
- tradeId?: bigint;
887
+ status: RfqFillStatus;
741
888
  };
742
889
  /**
743
- * Returned in case of RFQ fill success.
744
- *
745
890
  * @generated from message nord.FillRFQResult
746
891
  */
747
892
  export type FillRFQResultJson = {
@@ -764,15 +909,15 @@ export type FillRFQResultJson = {
764
909
  /**
765
910
  * Present for real user RFQ fills. Omitted for RFQ sampling responses.
766
911
  *
767
- * @generated from field: optional uint64 filled_size = 4;
912
+ * @generated from field: nord.RFQExecution execution = 4;
768
913
  */
769
- filledSize?: string;
914
+ execution?: RFQExecutionJson;
770
915
  /**
771
- * Present for real user RFQ fills. Omitted for RFQ sampling responses.
916
+ * Completion / truncation / partial fill status of the RFQ request.
772
917
  *
773
- * @generated from field: optional uint64 trade_id = 5;
918
+ * @generated from field: nord.RfqFillStatus status = 5;
774
919
  */
775
- tradeId?: string;
920
+ status?: RfqFillStatusJson;
776
921
  };
777
922
  /**
778
923
  * Describes the message nord.FillRFQResult.
@@ -2601,10 +2746,6 @@ export declare const AtomicRemoveTriggerSchema: GenMessage<AtomicRemoveTrigger,
2601
2746
  * @generated from message nord.ReduceOrderLiquidation
2602
2747
  */
2603
2748
  export type ReduceOrderLiquidation = Message<"nord.ReduceOrderLiquidation"> & {
2604
- /**
2605
- * @generated from field: uint32 target_account_id = 1;
2606
- */
2607
- targetAccountId: number;
2608
2749
  /**
2609
2750
  * @generated from field: uint32 market_id = 2;
2610
2751
  */
@@ -2614,10 +2755,6 @@ export type ReduceOrderLiquidation = Message<"nord.ReduceOrderLiquidation"> & {
2614
2755
  * @generated from message nord.ReduceOrderLiquidation
2615
2756
  */
2616
2757
  export type ReduceOrderLiquidationJson = {
2617
- /**
2618
- * @generated from field: uint32 target_account_id = 1;
2619
- */
2620
- targetAccountId?: number;
2621
2758
  /**
2622
2759
  * @generated from field: uint32 market_id = 2;
2623
2760
  */
@@ -2740,61 +2877,25 @@ export type AtomicV1Json = {
2740
2877
  export declare const AtomicV1Schema: GenMessage<AtomicV1, {
2741
2878
  jsonType: AtomicV1Json;
2742
2879
  }>;
2743
- /**
2744
- * @generated from message nord.AtomicPlacementRequest
2745
- */
2746
- export type AtomicPlacementRequest = Message<"nord.AtomicPlacementRequest"> & {
2747
- /**
2748
- * @generated from oneof nord.AtomicPlacementRequest.inner
2749
- */
2750
- inner: {
2751
- /**
2752
- * @generated from field: uint32 vault_id = 1;
2753
- */
2754
- value: number;
2755
- case: "vaultId";
2756
- } | {
2757
- /**
2758
- * @generated from field: uint32 liquidation_account_id = 2;
2759
- */
2760
- value: number;
2761
- case: "liquidationAccountId";
2762
- } | {
2763
- case: undefined;
2764
- value?: undefined;
2765
- };
2766
- };
2767
- /**
2768
- * @generated from message nord.AtomicPlacementRequest
2769
- */
2770
- export type AtomicPlacementRequestJson = {
2771
- /**
2772
- * @generated from field: uint32 vault_id = 1;
2773
- */
2774
- vaultId?: number;
2775
- /**
2776
- * @generated from field: uint32 liquidation_account_id = 2;
2777
- */
2778
- liquidationAccountId?: number;
2779
- };
2780
- /**
2781
- * Describes the message nord.AtomicPlacementRequest.
2782
- * Use `create(AtomicPlacementRequestSchema)` to create a new message.
2783
- */
2784
- export declare const AtomicPlacementRequestSchema: GenMessage<AtomicPlacementRequest, {
2785
- jsonType: AtomicPlacementRequestJson;
2786
- }>;
2787
2880
  /**
2788
2881
  * @generated from message nord.AtomicSubaction
2789
2882
  */
2790
2883
  export type AtomicSubaction = Message<"nord.AtomicSubaction"> & {
2884
+ /**
2885
+ * weather use key authentication (acl or protocol binding),
2886
+ * default is false as safe default
2887
+ *
2888
+ * @generated from field: optional bool use_key = 1;
2889
+ */
2890
+ useKey?: boolean;
2791
2891
  /**
2792
2892
  * Optional account on behalf of whom this subaction executes.
2793
2893
  * If omitted, the atomic sender account is used.
2894
+ * As of now can be other external users or vault account.
2794
2895
  *
2795
- * @generated from field: optional uint32 delegator_account_id = 32;
2896
+ * @generated from field: optional uint32 target_account_id = 32;
2796
2897
  */
2797
- delegatorAccountId?: number;
2898
+ targetAccountId?: number;
2798
2899
  /**
2799
2900
  * @generated from oneof nord.AtomicSubaction.inner
2800
2901
  */
@@ -2861,13 +2962,21 @@ export type AtomicSubaction = Message<"nord.AtomicSubaction"> & {
2861
2962
  * @generated from message nord.AtomicSubaction
2862
2963
  */
2863
2964
  export type AtomicSubactionJson = {
2965
+ /**
2966
+ * weather use key authentication (acl or protocol binding),
2967
+ * default is false as safe default
2968
+ *
2969
+ * @generated from field: optional bool use_key = 1;
2970
+ */
2971
+ useKey?: boolean;
2864
2972
  /**
2865
2973
  * Optional account on behalf of whom this subaction executes.
2866
2974
  * If omitted, the atomic sender account is used.
2975
+ * As of now can be other external users or vault account.
2867
2976
  *
2868
- * @generated from field: optional uint32 delegator_account_id = 32;
2977
+ * @generated from field: optional uint32 target_account_id = 32;
2869
2978
  */
2870
- delegatorAccountId?: number;
2979
+ targetAccountId?: number;
2871
2980
  /**
2872
2981
  * @generated from field: nord.TradeOrPlace trade_or_place = 6;
2873
2982
  */
@@ -2912,39 +3021,6 @@ export type AtomicSubactionJson = {
2912
3021
  export declare const AtomicSubactionSchema: GenMessage<AtomicSubaction, {
2913
3022
  jsonType: AtomicSubactionJson;
2914
3023
  }>;
2915
- /**
2916
- * @generated from message nord.AtomicSubactionV2
2917
- */
2918
- export type AtomicSubactionV2 = Message<"nord.AtomicSubactionV2"> & {
2919
- /**
2920
- * @generated from field: optional nord.AtomicPlacementRequest placement = 1;
2921
- */
2922
- placement?: AtomicPlacementRequest;
2923
- /**
2924
- * @generated from field: nord.AtomicSubaction subaction = 2;
2925
- */
2926
- subaction?: AtomicSubaction;
2927
- };
2928
- /**
2929
- * @generated from message nord.AtomicSubactionV2
2930
- */
2931
- export type AtomicSubactionV2Json = {
2932
- /**
2933
- * @generated from field: optional nord.AtomicPlacementRequest placement = 1;
2934
- */
2935
- placement?: AtomicPlacementRequestJson;
2936
- /**
2937
- * @generated from field: nord.AtomicSubaction subaction = 2;
2938
- */
2939
- subaction?: AtomicSubactionJson;
2940
- };
2941
- /**
2942
- * Describes the message nord.AtomicSubactionV2.
2943
- * Use `create(AtomicSubactionV2Schema)` to create a new message.
2944
- */
2945
- export declare const AtomicSubactionV2Schema: GenMessage<AtomicSubactionV2, {
2946
- jsonType: AtomicSubactionV2Json;
2947
- }>;
2948
3024
  /**
2949
3025
  * @generated from message nord.Atomic
2950
3026
  */
@@ -2955,7 +3031,8 @@ export type Atomic = Message<"nord.Atomic"> & {
2955
3031
  sessionId: bigint;
2956
3032
  /**
2957
3033
  * Account id which performs the operation.
2958
- * If not specified, first account of session's owner user is picked.
3034
+ * If not specified, first account of session's owner user is picked
3035
+ * or ACL is used (depending on specific subaction kind)
2959
3036
  *
2960
3037
  * @generated from field: optional uint32 account_id = 2;
2961
3038
  */
@@ -2979,7 +3056,8 @@ export type AtomicJson = {
2979
3056
  sessionId?: string;
2980
3057
  /**
2981
3058
  * Account id which performs the operation.
2982
- * If not specified, first account of session's owner user is picked.
3059
+ * If not specified, first account of session's owner user is picked
3060
+ * or ACL is used (depending on specific subaction kind)
2983
3061
  *
2984
3062
  * @generated from field: optional uint32 account_id = 2;
2985
3063
  */
@@ -3000,61 +3078,6 @@ export type AtomicJson = {
3000
3078
  export declare const AtomicSchema: GenMessage<Atomic, {
3001
3079
  jsonType: AtomicJson;
3002
3080
  }>;
3003
- /**
3004
- * @generated from message nord.AtomicV2
3005
- */
3006
- export type AtomicV2 = Message<"nord.AtomicV2"> & {
3007
- /**
3008
- * @generated from field: uint64 session_id = 1;
3009
- */
3010
- sessionId: bigint;
3011
- /**
3012
- * Account id which performs the operation.
3013
- * If not specified, first account of session's owner user is picked.
3014
- *
3015
- * @generated from field: optional uint32 account_id = 2;
3016
- */
3017
- accountId?: number;
3018
- /**
3019
- * @generated from field: optional uint64 sender_tracking_id = 3;
3020
- */
3021
- senderTrackingId?: bigint;
3022
- /**
3023
- * @generated from field: repeated nord.AtomicSubactionV2 actions = 6;
3024
- */
3025
- actions: AtomicSubactionV2[];
3026
- };
3027
- /**
3028
- * @generated from message nord.AtomicV2
3029
- */
3030
- export type AtomicV2Json = {
3031
- /**
3032
- * @generated from field: uint64 session_id = 1;
3033
- */
3034
- sessionId?: string;
3035
- /**
3036
- * Account id which performs the operation.
3037
- * If not specified, first account of session's owner user is picked.
3038
- *
3039
- * @generated from field: optional uint32 account_id = 2;
3040
- */
3041
- accountId?: number;
3042
- /**
3043
- * @generated from field: optional uint64 sender_tracking_id = 3;
3044
- */
3045
- senderTrackingId?: string;
3046
- /**
3047
- * @generated from field: repeated nord.AtomicSubactionV2 actions = 6;
3048
- */
3049
- actions?: AtomicSubactionV2Json[];
3050
- };
3051
- /**
3052
- * Describes the message nord.AtomicV2.
3053
- * Use `create(AtomicV2Schema)` to create a new message.
3054
- */
3055
- export declare const AtomicV2Schema: GenMessage<AtomicV2, {
3056
- jsonType: AtomicV2Json;
3057
- }>;
3058
3081
  /**
3059
3082
  * @generated from message nord.PythLazerTrustedSigner
3060
3083
  */
@@ -3456,12 +3479,6 @@ export type Action = Message<"nord.Action"> & {
3456
3479
  */
3457
3480
  value: VaultWithdraw;
3458
3481
  case: "vaultWithdraw";
3459
- } | {
3460
- /**
3461
- * @generated from field: nord.AtomicV2 atomic_v2 = 56;
3462
- */
3463
- value: AtomicV2;
3464
- case: "atomicV2";
3465
3482
  } | {
3466
3483
  /**
3467
3484
  * @generated from field: nord.Action.PythLazerSetTrustedSigners pyth_lazer_set_trusted_signers = 57;
@@ -3664,10 +3681,6 @@ export type ActionJson = {
3664
3681
  * @generated from field: nord.VaultWithdraw vault_withdraw = 55;
3665
3682
  */
3666
3683
  vaultWithdraw?: VaultWithdrawJson;
3667
- /**
3668
- * @generated from field: nord.AtomicV2 atomic_v2 = 56;
3669
- */
3670
- atomicV2?: AtomicV2Json;
3671
3684
  /**
3672
3685
  * @generated from field: nord.Action.PythLazerSetTrustedSigners pyth_lazer_set_trusted_signers = 57;
3673
3686
  */
@@ -8580,6 +8593,31 @@ export type MarketRegimeJson = "MARKET_REGIME_NORMAL" | "MARKET_REGIME_POST_ONLY
8580
8593
  * Describes the enum nord.MarketRegime.
8581
8594
  */
8582
8595
  export declare const MarketRegimeSchema: GenEnum<MarketRegime, MarketRegimeJson>;
8596
+ /**
8597
+ * @generated from enum nord.RfqFillStatus
8598
+ */
8599
+ export declare enum RfqFillStatus {
8600
+ /**
8601
+ * @generated from enum value: RFQ_FILL_STATUS_COMPLETED = 0;
8602
+ */
8603
+ COMPLETED = 0,
8604
+ /**
8605
+ * @generated from enum value: RFQ_FILL_STATUS_TRUNCATED = 1;
8606
+ */
8607
+ TRUNCATED = 1,
8608
+ /**
8609
+ * @generated from enum value: RFQ_FILL_STATUS_PARTIAL = 2;
8610
+ */
8611
+ PARTIAL = 2
8612
+ }
8613
+ /**
8614
+ * @generated from enum nord.RfqFillStatus
8615
+ */
8616
+ export type RfqFillStatusJson = "RFQ_FILL_STATUS_COMPLETED" | "RFQ_FILL_STATUS_TRUNCATED" | "RFQ_FILL_STATUS_PARTIAL";
8617
+ /**
8618
+ * Describes the enum nord.RfqFillStatus.
8619
+ */
8620
+ export declare const RfqFillStatusSchema: GenEnum<RfqFillStatus, RfqFillStatusJson>;
8583
8621
  /**
8584
8622
  * @generated from enum nord.TriggerKind
8585
8623
  */
@@ -9540,6 +9578,10 @@ export declare enum Error {
9540
9578
  * @generated from enum value: TRANSFER_TO_OWNED_ACCOUNT_WAS_REQUESTED = 290;
9541
9579
  */
9542
9580
  TRANSFER_TO_OWNED_ACCOUNT_WAS_REQUESTED = 290,
9581
+ /**
9582
+ * @generated from enum value: TRANSFER_TO_CLAIM_VAULT_IS_PROHIBITED = 291;
9583
+ */
9584
+ TRANSFER_TO_CLAIM_VAULT_IS_PROHIBITED = 291,
9543
9585
  /**
9544
9586
  * 10011_000
9545
9587
  *
@@ -9648,10 +9690,6 @@ export declare enum Error {
9648
9690
  * @generated from enum value: VAULT_EPOCH_NOT_ELIGIBLE = 321;
9649
9691
  */
9650
9692
  VAULT_EPOCH_NOT_ELIGIBLE = 321,
9651
- /**
9652
- * @generated from enum value: VAULT_PREVIOUS_EPOCH_WITHDRAWALS_NOT_PAYABLE = 322;
9653
- */
9654
- VAULT_PREVIOUS_EPOCH_WITHDRAWALS_NOT_PAYABLE = 322,
9655
9693
  /**
9656
9694
  * @generated from enum value: VAULT_FREEZE_THRESHOLD_MUST_EXCEED_PROTECTION = 323;
9657
9695
  */
@@ -9707,7 +9745,7 @@ export declare enum Error {
9707
9745
  *
9708
9746
  * @generated from enum nord.Error
9709
9747
  */
9710
- export type ErrorJson = "DUPLICATE" | "INVALID_SIGNATURE" | "MARKET_NOT_FOUND" | "TOKEN_NOT_FOUND" | "USER_NOT_FOUND" | "SESSION_NOT_FOUND" | "ORDER_NOT_FOUND" | "ORDER_SIZE_ZERO" | "ARITHMETIC" | "ARITHMETIC_OVERFLOW" | "ARITHMETIC_UNDERFLOW" | "ARITHMETIC_DIVISION_BY_ZERO" | "KEY_ALREADY_REGISTERED" | "UPDATE_TIMESTAMP_IN_PAST" | "TOO_MANY_OPEN_ORDERS" | "WITHDRAW_AMOUNT_TOO_SMALL" | "SOURCE_AND_TARGET_SHOULD_NOT_BE_EQUAL" | "DECODE_FAILURE" | "DECODE_FAILURE_LENGTH_PREFIX" | "DECODE_FAILURE_RAW" | "DECODE_FAILURE_DOMAIN" | "UPDATE_PUBLISH_TIME_IN_PAST" | "SESSION" | "SESSION_REFRESH_NOT_ENABLED" | "SESSION_REFRESH_DEADLINE_BEFORE_EXPIRY" | "PYTH_FEED_NOT_ADDED" | "PYTH_FEED_MISSING" | "PYTH_FEED_ALREADY_ADDED" | "PYTH_GUARDIAN_SET_UNINITIALIZED" | "PYTH_GUARDIAN_SET_INVALID" | "PYTH_FEED_DECIMALS_OUT_OF_RANGE" | "PYTH_FEED_PRICE_OUT_OF_RANGE" | "PYTH_FEED_VARIANCE_OUT_OF_RANGE" | "PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH" | "INVALID_TOKEN_PARAMETERS" | "INDEX_PRICE_OUT_OF_RANGE" | "INDEX_DECIMALS_OUT_OF_RANGE" | "INVALID_STATE_VERSION" | "INVALID_MARGINS" | "MARKET_DECIMALS_EXCEED_LIMITS" | "TOO_MANY_TOKENS" | "TIER" | "TIER_FEE_OUT_OF_RANGE" | "TIER_ID_OUT_OF_RANGE" | "TIER_NOT_FOUND" | "FUNDING_OVERFLOW" | "CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED" | "UNEXPECTED_TOKEN_ID" | "REPEATED_ORDER_ID" | "CLIENT_ORDER_ID_TOO_LARGE" | "TOKEN_NOT_READY" | "TOKEN_ALREADY_REGISTERED" | "IMMEDIATE_ORDER_GOT_NO_FILLS" | "FAILED_TO_FILL_LIMIT" | "POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS" | "INVALID" | "MAINTENANCE" | "MINIMUM_SIZE_DECIMALS" | "PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET" | "ONLY_IMMEDIATE_ORDERS_ALLOWED" | "TOO_MANY_USER_ACCOUNTS" | "ACCOUNT_NOT_FOUND" | "ACCOUNT_INVALID_OWNER" | "SUBACTION_OUT_OF_RANGE" | "DUST_ACCOUNT" | "BALANCE" | "BALANCE_DEPOSIT_OVERFLOW" | "BALANCE_CHANGE_OVERFLOW" | "BALANCE_CHANGE_LIMIT_EXCEEDED" | "BALANCE_INSUFFICIENT" | "UNAUTHENTICATED_L1_ACTION" | "ENCODED_ACTION_TOO_LARGE" | "TRIGGER" | "TRIGGER_INVALID_PRICE" | "TRIGGER_NOT_FOUND" | "TRIGGER_ONLY_DECREASE_ORDERS_SUPPORTED" | "TRIGGER_MAX_SIZE_PLACEMENT_EXCEEDED" | "TRIGGER_NOT_CHANGED" | "TIMESTAMP" | "TIMESTAMP_OUT_OF_THRESHOLD" | "TIMESTAMP_STALE" | "EXPIRY_TIMESTAMP_IN_PAST" | "BANKRUPTCY_INSUFFICIENT_COVERAGE" | "BANKRUPTCY_NOT_FOUND" | "BANKRUPTCY_NOT_ALLOWED" | "MARKET_NOT_READY" | "MARKET_FROZEN" | "MARKET_EMPTY" | "MARKET_MODE_DOES_NOT_SUPPORT_THIS_OPERATION" | "POSITION" | "POSITION_NOT_FOUND" | "POSITION_STATE_ORDER" | "POSITION_STATE_ORDER_PRICE" | "POSITION_STATE_ORDER_SIZE" | "POSITION_STATE_ORDER_SIDE" | "POSITION_SIZE_LIMIT" | "POSITION_STATE_PERP" | "POSITION_STATE_ORDER_DELEGATION" | "PRICE" | "SIGNATURE_VERIFICATION" | "SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY" | "SIGNATURE_VERIFICATION_INVALID_LENGTH" | "RISK" | "RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_IMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE" | "RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_NOT_ENOUGH" | "ORDER_EXECUTION" | "ORDER_EXECUTION_EMPTY" | "ORDER_EXECUTION_FILL_OR_KILL" | "ORDER_EXECUTION_MISSING_LIMITS" | "ORDER_EXECUTION_MISSING_PRICE" | "ORDER_EXECUTION_SIZE_LIMIT" | "ORDER_EXECUTION_LIMIT_PRICE" | "ORDER_REDUCE_IS_POST_ONLY" | "ORDER_EXECUTION_SELL_PRICE" | "ORDER_SIZE_EXCEEDS_POSITION_SIZE" | "ATOMICS" | "ATOMICS_TRADES_CANNOT_FOLLOW_PLACES" | "ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES" | "ATOMICS_DUPLICATE_CANCEL" | "RFQ_ORDER_TIMEOUTED" | "ACTION_POSITION_SHOULD_BE_COVERED" | "ACTION_INVALID_NONCE" | "ACTION_PROPOSED_PRICE_MUST_BE_HIGHER" | "ADMIN_ROLE_INSUFFICIENT" | "ADMIN_NOT_FOUND" | "UNIQUE_SUPER_ADMIN_CANNOT_BE_REMOVED" | "SUPER_ADMIN_ALREADY_EXISTS" | "TRIGGER_CONFLICT" | "TRIGGER_EDIT_CONFLICT" | "TRIGGER_REMOVE_CONFLICT" | "TRANSFER" | "TRANSFER_TO_UNOWNED_ACCOUNT_IS_PROHIBITED" | "TRANSFER_TO_OWNED_ACCOUNT_WAS_REQUESTED" | "VAULT" | "VAULT_NOT_FOUND" | "VAULT_ACTION_NOT_ALLOWED" | "VAULT_STATUS_INVALID" | "VAULT_REDUCE_ONLY_ORDER_REQUIRED" | "VAULT_ACTION_WOULD_DEGRADE_STATUS" | "VAULT_USER_NOT_FOUND" | "VAULT_USER_HAS_NO_SHARES" | "VAULT_PERMISSION_DENIED" | "VAULT_DEPOSIT" | "VAULT_DEPOSIT_BOOTSTRAP_REQUIRES_EMPTY_VAULT" | "VAULT_DEPOSIT_CAP_EXCEEDED" | "VAULT_DEPOSIT_REQUIRES_ACTIVE_STATUS" | "VAULT_DEPOSIT_CAP_BELOW_CURRENT_RAW_EQUITY" | "VAULT_DEPOSIT_TOO_SMALL" | "VAULT_WITHDRAW" | "VAULT_INSUFFICIENT_SHARES" | "VAULT_WITHDRAW_REQUIRES_NON_FROZEN_STATUS" | "VAULT_NO_CLAIMABLE_WITHDRAWAL" | "VAULT_WITHDRAW_QUOTE_UNAVAILABLE" | "VAULT_DUST_EXIT_REQUIRES_FULL_SHARE_EXIT" | "VAULT_LAST_SHARE_WITHDRAW_REQUIRES_EMPTY_ACCOUNT" | "VAULT_WITHDRAW_REQUIRES_LIVE_SHARES" | "VAULT_CONTROL" | "VAULT_EPOCH_NOT_ELIGIBLE" | "VAULT_PREVIOUS_EPOCH_WITHDRAWALS_NOT_PAYABLE" | "VAULT_FREEZE_THRESHOLD_MUST_EXCEED_PROTECTION" | "VAULT_CONFIG_PATCH_EMPTY" | "VAULT_NO_STATUS_TRANSITION_REQUIRED" | "VAULT_FROZEN_STATUS_REQUIRES_SUPER_ADMIN" | "VAULT_NEW_CONFIG_WOULD_DEGRADE_STATUS" | "RFQ_ERROR" | "RFQ_TIMEOUT" | "NOT_IMPLEMENTED" | "ACTION_NOT_ALLOWED" | "NOT_SUPPORTED_INPUT" | "DROPPED";
9748
+ export type ErrorJson = "DUPLICATE" | "INVALID_SIGNATURE" | "MARKET_NOT_FOUND" | "TOKEN_NOT_FOUND" | "USER_NOT_FOUND" | "SESSION_NOT_FOUND" | "ORDER_NOT_FOUND" | "ORDER_SIZE_ZERO" | "ARITHMETIC" | "ARITHMETIC_OVERFLOW" | "ARITHMETIC_UNDERFLOW" | "ARITHMETIC_DIVISION_BY_ZERO" | "KEY_ALREADY_REGISTERED" | "UPDATE_TIMESTAMP_IN_PAST" | "TOO_MANY_OPEN_ORDERS" | "WITHDRAW_AMOUNT_TOO_SMALL" | "SOURCE_AND_TARGET_SHOULD_NOT_BE_EQUAL" | "DECODE_FAILURE" | "DECODE_FAILURE_LENGTH_PREFIX" | "DECODE_FAILURE_RAW" | "DECODE_FAILURE_DOMAIN" | "UPDATE_PUBLISH_TIME_IN_PAST" | "SESSION" | "SESSION_REFRESH_NOT_ENABLED" | "SESSION_REFRESH_DEADLINE_BEFORE_EXPIRY" | "PYTH_FEED_NOT_ADDED" | "PYTH_FEED_MISSING" | "PYTH_FEED_ALREADY_ADDED" | "PYTH_GUARDIAN_SET_UNINITIALIZED" | "PYTH_GUARDIAN_SET_INVALID" | "PYTH_FEED_DECIMALS_OUT_OF_RANGE" | "PYTH_FEED_PRICE_OUT_OF_RANGE" | "PYTH_FEED_VARIANCE_OUT_OF_RANGE" | "PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH" | "INVALID_TOKEN_PARAMETERS" | "INDEX_PRICE_OUT_OF_RANGE" | "INDEX_DECIMALS_OUT_OF_RANGE" | "INVALID_STATE_VERSION" | "INVALID_MARGINS" | "MARKET_DECIMALS_EXCEED_LIMITS" | "TOO_MANY_TOKENS" | "TIER" | "TIER_FEE_OUT_OF_RANGE" | "TIER_ID_OUT_OF_RANGE" | "TIER_NOT_FOUND" | "FUNDING_OVERFLOW" | "CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED" | "UNEXPECTED_TOKEN_ID" | "REPEATED_ORDER_ID" | "CLIENT_ORDER_ID_TOO_LARGE" | "TOKEN_NOT_READY" | "TOKEN_ALREADY_REGISTERED" | "IMMEDIATE_ORDER_GOT_NO_FILLS" | "FAILED_TO_FILL_LIMIT" | "POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS" | "INVALID" | "MAINTENANCE" | "MINIMUM_SIZE_DECIMALS" | "PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET" | "ONLY_IMMEDIATE_ORDERS_ALLOWED" | "TOO_MANY_USER_ACCOUNTS" | "ACCOUNT_NOT_FOUND" | "ACCOUNT_INVALID_OWNER" | "SUBACTION_OUT_OF_RANGE" | "DUST_ACCOUNT" | "BALANCE" | "BALANCE_DEPOSIT_OVERFLOW" | "BALANCE_CHANGE_OVERFLOW" | "BALANCE_CHANGE_LIMIT_EXCEEDED" | "BALANCE_INSUFFICIENT" | "UNAUTHENTICATED_L1_ACTION" | "ENCODED_ACTION_TOO_LARGE" | "TRIGGER" | "TRIGGER_INVALID_PRICE" | "TRIGGER_NOT_FOUND" | "TRIGGER_ONLY_DECREASE_ORDERS_SUPPORTED" | "TRIGGER_MAX_SIZE_PLACEMENT_EXCEEDED" | "TRIGGER_NOT_CHANGED" | "TIMESTAMP" | "TIMESTAMP_OUT_OF_THRESHOLD" | "TIMESTAMP_STALE" | "EXPIRY_TIMESTAMP_IN_PAST" | "BANKRUPTCY_INSUFFICIENT_COVERAGE" | "BANKRUPTCY_NOT_FOUND" | "BANKRUPTCY_NOT_ALLOWED" | "MARKET_NOT_READY" | "MARKET_FROZEN" | "MARKET_EMPTY" | "MARKET_MODE_DOES_NOT_SUPPORT_THIS_OPERATION" | "POSITION" | "POSITION_NOT_FOUND" | "POSITION_STATE_ORDER" | "POSITION_STATE_ORDER_PRICE" | "POSITION_STATE_ORDER_SIZE" | "POSITION_STATE_ORDER_SIDE" | "POSITION_SIZE_LIMIT" | "POSITION_STATE_PERP" | "POSITION_STATE_ORDER_DELEGATION" | "PRICE" | "SIGNATURE_VERIFICATION" | "SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY" | "SIGNATURE_VERIFICATION_INVALID_LENGTH" | "RISK" | "RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_IMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE" | "RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_NOT_ENOUGH" | "ORDER_EXECUTION" | "ORDER_EXECUTION_EMPTY" | "ORDER_EXECUTION_FILL_OR_KILL" | "ORDER_EXECUTION_MISSING_LIMITS" | "ORDER_EXECUTION_MISSING_PRICE" | "ORDER_EXECUTION_SIZE_LIMIT" | "ORDER_EXECUTION_LIMIT_PRICE" | "ORDER_REDUCE_IS_POST_ONLY" | "ORDER_EXECUTION_SELL_PRICE" | "ORDER_SIZE_EXCEEDS_POSITION_SIZE" | "ATOMICS" | "ATOMICS_TRADES_CANNOT_FOLLOW_PLACES" | "ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES" | "ATOMICS_DUPLICATE_CANCEL" | "RFQ_ORDER_TIMEOUTED" | "ACTION_POSITION_SHOULD_BE_COVERED" | "ACTION_INVALID_NONCE" | "ACTION_PROPOSED_PRICE_MUST_BE_HIGHER" | "ADMIN_ROLE_INSUFFICIENT" | "ADMIN_NOT_FOUND" | "UNIQUE_SUPER_ADMIN_CANNOT_BE_REMOVED" | "SUPER_ADMIN_ALREADY_EXISTS" | "TRIGGER_CONFLICT" | "TRIGGER_EDIT_CONFLICT" | "TRIGGER_REMOVE_CONFLICT" | "TRANSFER" | "TRANSFER_TO_UNOWNED_ACCOUNT_IS_PROHIBITED" | "TRANSFER_TO_OWNED_ACCOUNT_WAS_REQUESTED" | "TRANSFER_TO_CLAIM_VAULT_IS_PROHIBITED" | "VAULT" | "VAULT_NOT_FOUND" | "VAULT_ACTION_NOT_ALLOWED" | "VAULT_STATUS_INVALID" | "VAULT_REDUCE_ONLY_ORDER_REQUIRED" | "VAULT_ACTION_WOULD_DEGRADE_STATUS" | "VAULT_USER_NOT_FOUND" | "VAULT_USER_HAS_NO_SHARES" | "VAULT_PERMISSION_DENIED" | "VAULT_DEPOSIT" | "VAULT_DEPOSIT_BOOTSTRAP_REQUIRES_EMPTY_VAULT" | "VAULT_DEPOSIT_CAP_EXCEEDED" | "VAULT_DEPOSIT_REQUIRES_ACTIVE_STATUS" | "VAULT_DEPOSIT_CAP_BELOW_CURRENT_RAW_EQUITY" | "VAULT_DEPOSIT_TOO_SMALL" | "VAULT_WITHDRAW" | "VAULT_INSUFFICIENT_SHARES" | "VAULT_WITHDRAW_REQUIRES_NON_FROZEN_STATUS" | "VAULT_NO_CLAIMABLE_WITHDRAWAL" | "VAULT_WITHDRAW_QUOTE_UNAVAILABLE" | "VAULT_DUST_EXIT_REQUIRES_FULL_SHARE_EXIT" | "VAULT_LAST_SHARE_WITHDRAW_REQUIRES_EMPTY_ACCOUNT" | "VAULT_WITHDRAW_REQUIRES_LIVE_SHARES" | "VAULT_CONTROL" | "VAULT_EPOCH_NOT_ELIGIBLE" | "VAULT_FREEZE_THRESHOLD_MUST_EXCEED_PROTECTION" | "VAULT_CONFIG_PATCH_EMPTY" | "VAULT_NO_STATUS_TRANSITION_REQUIRED" | "VAULT_FROZEN_STATUS_REQUIRES_SUPER_ADMIN" | "VAULT_NEW_CONFIG_WOULD_DEGRADE_STATUS" | "RFQ_ERROR" | "RFQ_TIMEOUT" | "NOT_IMPLEMENTED" | "ACTION_NOT_ALLOWED" | "NOT_SUPPORTED_INPUT" | "DROPPED";
9711
9749
  /**
9712
9750
  * Describes the enum nord.Error.
9713
9751
  */