@helium/blockchain-api 0.3.9 → 0.3.10
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/index.d.ts +252 -1
- package/dist/index.js +66 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1873,6 +1873,146 @@ type WelcomePackDeleteOutput = z.infer<typeof WelcomePackDeleteOutputSchema>;
|
|
|
1873
1873
|
type WelcomePackClaimOutput = z.infer<typeof WelcomePackClaimOutputSchema>;
|
|
1874
1874
|
type WelcomePackInviteOutput = z.infer<typeof WelcomePackInviteOutputSchema>;
|
|
1875
1875
|
|
|
1876
|
+
declare const MigrateInputSchema: z.ZodObject<{
|
|
1877
|
+
sourceWallet: z.ZodString;
|
|
1878
|
+
destinationWallet: z.ZodString;
|
|
1879
|
+
hotspots: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1880
|
+
tokens: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1881
|
+
mint: z.ZodString;
|
|
1882
|
+
amount: z.ZodString;
|
|
1883
|
+
}, z.core.$strip>>>;
|
|
1884
|
+
}, z.core.$strip>;
|
|
1885
|
+
declare const MigrateTransactionItemSchema: z.ZodObject<{
|
|
1886
|
+
serializedTransaction: z.ZodString;
|
|
1887
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1888
|
+
type: z.ZodString;
|
|
1889
|
+
description: z.ZodString;
|
|
1890
|
+
signers: z.ZodArray<z.ZodEnum<{
|
|
1891
|
+
destination: "destination";
|
|
1892
|
+
source: "source";
|
|
1893
|
+
}>>;
|
|
1894
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1895
|
+
}, z.core.$strip>;
|
|
1896
|
+
declare const MigrateTransactionDataSchema: z.ZodObject<{
|
|
1897
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1898
|
+
serializedTransaction: z.ZodString;
|
|
1899
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1900
|
+
type: z.ZodString;
|
|
1901
|
+
description: z.ZodString;
|
|
1902
|
+
signers: z.ZodArray<z.ZodEnum<{
|
|
1903
|
+
destination: "destination";
|
|
1904
|
+
source: "source";
|
|
1905
|
+
}>>;
|
|
1906
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1907
|
+
}, z.core.$strip>>;
|
|
1908
|
+
parallel: z.ZodBoolean;
|
|
1909
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
}, z.core.$strip>;
|
|
1911
|
+
declare const MigrateOutputSchema: z.ZodObject<{
|
|
1912
|
+
transactionData: z.ZodObject<{
|
|
1913
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1914
|
+
serializedTransaction: z.ZodString;
|
|
1915
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1916
|
+
type: z.ZodString;
|
|
1917
|
+
description: z.ZodString;
|
|
1918
|
+
signers: z.ZodArray<z.ZodEnum<{
|
|
1919
|
+
destination: "destination";
|
|
1920
|
+
source: "source";
|
|
1921
|
+
}>>;
|
|
1922
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1923
|
+
}, z.core.$strip>>;
|
|
1924
|
+
parallel: z.ZodBoolean;
|
|
1925
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
}, z.core.$strip>;
|
|
1927
|
+
estimatedSolFee: z.ZodObject<{
|
|
1928
|
+
amount: z.ZodString;
|
|
1929
|
+
decimals: z.ZodNumber;
|
|
1930
|
+
uiAmount: z.ZodNullable<z.ZodNumber>;
|
|
1931
|
+
uiAmountString: z.ZodString;
|
|
1932
|
+
mint: z.ZodString;
|
|
1933
|
+
}, z.core.$strip>;
|
|
1934
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1935
|
+
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
1936
|
+
nextParams: z.ZodOptional<z.ZodObject<{
|
|
1937
|
+
sourceWallet: z.ZodString;
|
|
1938
|
+
destinationWallet: z.ZodString;
|
|
1939
|
+
hotspots: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1940
|
+
tokens: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1941
|
+
mint: z.ZodString;
|
|
1942
|
+
amount: z.ZodString;
|
|
1943
|
+
}, z.core.$strip>>>;
|
|
1944
|
+
}, z.core.$strip>>;
|
|
1945
|
+
}, z.core.$strip>;
|
|
1946
|
+
declare const MigratableHotspotSchema: z.ZodObject<{
|
|
1947
|
+
address: z.ZodString;
|
|
1948
|
+
entityKey: z.ZodString;
|
|
1949
|
+
name: z.ZodString;
|
|
1950
|
+
type: z.ZodEnum<{
|
|
1951
|
+
iot: "iot";
|
|
1952
|
+
mobile: "mobile";
|
|
1953
|
+
all: "all";
|
|
1954
|
+
}>;
|
|
1955
|
+
deviceType: z.ZodEnum<{
|
|
1956
|
+
"iot-gateway": "iot-gateway";
|
|
1957
|
+
wifiIndoor: "wifiIndoor";
|
|
1958
|
+
wifiOutdoor: "wifiOutdoor";
|
|
1959
|
+
wifiDataOnly: "wifiDataOnly";
|
|
1960
|
+
cbrs: "cbrs";
|
|
1961
|
+
}>;
|
|
1962
|
+
city: z.ZodOptional<z.ZodString>;
|
|
1963
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
asset: z.ZodString;
|
|
1966
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
1967
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
shares: z.ZodOptional<z.ZodObject<{
|
|
1969
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
1971
|
+
}, z.core.$strip>>;
|
|
1972
|
+
ownershipType: z.ZodString;
|
|
1973
|
+
inWelcomePack: z.ZodBoolean;
|
|
1974
|
+
splitWallets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1975
|
+
}, z.core.$strip>;
|
|
1976
|
+
declare const MigratableHotspotsInputSchema: z.ZodObject<{
|
|
1977
|
+
walletAddress: z.ZodString;
|
|
1978
|
+
}, z.core.$strip>;
|
|
1979
|
+
declare const MigratableHotspotsOutputSchema: z.ZodObject<{
|
|
1980
|
+
hotspots: z.ZodArray<z.ZodObject<{
|
|
1981
|
+
address: z.ZodString;
|
|
1982
|
+
entityKey: z.ZodString;
|
|
1983
|
+
name: z.ZodString;
|
|
1984
|
+
type: z.ZodEnum<{
|
|
1985
|
+
iot: "iot";
|
|
1986
|
+
mobile: "mobile";
|
|
1987
|
+
all: "all";
|
|
1988
|
+
}>;
|
|
1989
|
+
deviceType: z.ZodEnum<{
|
|
1990
|
+
"iot-gateway": "iot-gateway";
|
|
1991
|
+
wifiIndoor: "wifiIndoor";
|
|
1992
|
+
wifiOutdoor: "wifiOutdoor";
|
|
1993
|
+
wifiDataOnly: "wifiDataOnly";
|
|
1994
|
+
cbrs: "cbrs";
|
|
1995
|
+
}>;
|
|
1996
|
+
city: z.ZodOptional<z.ZodString>;
|
|
1997
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1999
|
+
asset: z.ZodString;
|
|
2000
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
2001
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2002
|
+
shares: z.ZodOptional<z.ZodObject<{
|
|
2003
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
2004
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
2005
|
+
}, z.core.$strip>>;
|
|
2006
|
+
ownershipType: z.ZodString;
|
|
2007
|
+
inWelcomePack: z.ZodBoolean;
|
|
2008
|
+
splitWallets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2009
|
+
}, z.core.$strip>>;
|
|
2010
|
+
}, z.core.$strip>;
|
|
2011
|
+
type MigrateInput = z.infer<typeof MigrateInputSchema>;
|
|
2012
|
+
type MigrateOutput = z.infer<typeof MigrateOutputSchema>;
|
|
2013
|
+
type MigratableHotspotsInput = z.infer<typeof MigratableHotspotsInputSchema>;
|
|
2014
|
+
type MigratableHotspotsOutput = z.infer<typeof MigratableHotspotsOutputSchema>;
|
|
2015
|
+
|
|
1876
2016
|
/** Authentication required error */
|
|
1877
2017
|
declare const UNAUTHENTICATED: {
|
|
1878
2018
|
readonly status: 401;
|
|
@@ -4861,6 +5001,117 @@ declare const fullApiContract: {
|
|
|
4861
5001
|
};
|
|
4862
5002
|
}>>>, Record<never, never>>;
|
|
4863
5003
|
};
|
|
5004
|
+
migration: {
|
|
5005
|
+
getHotspots: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5006
|
+
walletAddress: zod.ZodString;
|
|
5007
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5008
|
+
hotspots: zod.ZodArray<zod.ZodObject<{
|
|
5009
|
+
address: zod.ZodString;
|
|
5010
|
+
entityKey: zod.ZodString;
|
|
5011
|
+
name: zod.ZodString;
|
|
5012
|
+
type: zod.ZodEnum<{
|
|
5013
|
+
iot: "iot";
|
|
5014
|
+
mobile: "mobile";
|
|
5015
|
+
all: "all";
|
|
5016
|
+
}>;
|
|
5017
|
+
deviceType: zod.ZodEnum<{
|
|
5018
|
+
"iot-gateway": "iot-gateway";
|
|
5019
|
+
wifiIndoor: "wifiIndoor";
|
|
5020
|
+
wifiOutdoor: "wifiOutdoor";
|
|
5021
|
+
wifiDataOnly: "wifiDataOnly";
|
|
5022
|
+
cbrs: "cbrs";
|
|
5023
|
+
}>;
|
|
5024
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
5025
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
5026
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
5027
|
+
asset: zod.ZodString;
|
|
5028
|
+
isOnline: zod.ZodOptional<zod.ZodBoolean>;
|
|
5029
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
5030
|
+
shares: zod.ZodOptional<zod.ZodObject<{
|
|
5031
|
+
fixed: zod.ZodOptional<zod.ZodString>;
|
|
5032
|
+
percentage: zod.ZodOptional<zod.ZodNumber>;
|
|
5033
|
+
}, zod_v4_core.$strip>>;
|
|
5034
|
+
ownershipType: zod.ZodString;
|
|
5035
|
+
inWelcomePack: zod.ZodBoolean;
|
|
5036
|
+
splitWallets: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5037
|
+
}, zod_v4_core.$strip>>;
|
|
5038
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5039
|
+
BAD_REQUEST: {
|
|
5040
|
+
readonly status: 400;
|
|
5041
|
+
readonly message: "Invalid input data provided.";
|
|
5042
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5043
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5044
|
+
}, zod_v4_core.$strip>>;
|
|
5045
|
+
};
|
|
5046
|
+
}>>>, Record<never, never>>;
|
|
5047
|
+
migrate: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5048
|
+
sourceWallet: zod.ZodString;
|
|
5049
|
+
destinationWallet: zod.ZodString;
|
|
5050
|
+
hotspots: zod.ZodDefault<zod.ZodArray<zod.ZodString>>;
|
|
5051
|
+
tokens: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
5052
|
+
mint: zod.ZodString;
|
|
5053
|
+
amount: zod.ZodString;
|
|
5054
|
+
}, zod_v4_core.$strip>>>;
|
|
5055
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5056
|
+
transactionData: zod.ZodObject<{
|
|
5057
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
5058
|
+
serializedTransaction: zod.ZodString;
|
|
5059
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
5060
|
+
type: zod.ZodString;
|
|
5061
|
+
description: zod.ZodString;
|
|
5062
|
+
signers: zod.ZodArray<zod.ZodEnum<{
|
|
5063
|
+
destination: "destination";
|
|
5064
|
+
source: "source";
|
|
5065
|
+
}>>;
|
|
5066
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
5067
|
+
}, zod_v4_core.$strip>>;
|
|
5068
|
+
parallel: zod.ZodBoolean;
|
|
5069
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
5070
|
+
}, zod_v4_core.$strip>;
|
|
5071
|
+
estimatedSolFee: zod.ZodObject<{
|
|
5072
|
+
amount: zod.ZodString;
|
|
5073
|
+
decimals: zod.ZodNumber;
|
|
5074
|
+
uiAmount: zod.ZodNullable<zod.ZodNumber>;
|
|
5075
|
+
uiAmountString: zod.ZodString;
|
|
5076
|
+
mint: zod.ZodString;
|
|
5077
|
+
}, zod_v4_core.$strip>;
|
|
5078
|
+
warnings: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5079
|
+
hasMore: zod.ZodOptional<zod.ZodBoolean>;
|
|
5080
|
+
nextParams: zod.ZodOptional<zod.ZodObject<{
|
|
5081
|
+
sourceWallet: zod.ZodString;
|
|
5082
|
+
destinationWallet: zod.ZodString;
|
|
5083
|
+
hotspots: zod.ZodDefault<zod.ZodArray<zod.ZodString>>;
|
|
5084
|
+
tokens: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
5085
|
+
mint: zod.ZodString;
|
|
5086
|
+
amount: zod.ZodString;
|
|
5087
|
+
}, zod_v4_core.$strip>>>;
|
|
5088
|
+
}, zod_v4_core.$strip>>;
|
|
5089
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5090
|
+
UNAUTHORIZED: {
|
|
5091
|
+
readonly status: 403;
|
|
5092
|
+
readonly message: "You do not have permission to access this resource.";
|
|
5093
|
+
};
|
|
5094
|
+
BAD_REQUEST: {
|
|
5095
|
+
readonly status: 400;
|
|
5096
|
+
readonly message: "Invalid input data provided.";
|
|
5097
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5098
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5099
|
+
}, zod_v4_core.$strip>>;
|
|
5100
|
+
};
|
|
5101
|
+
NOT_FOUND: {
|
|
5102
|
+
readonly status: 404;
|
|
5103
|
+
readonly message: "The requested resource was not found.";
|
|
5104
|
+
};
|
|
5105
|
+
INSUFFICIENT_FUNDS: {
|
|
5106
|
+
readonly status: 400;
|
|
5107
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
5108
|
+
readonly data: zod.ZodObject<{
|
|
5109
|
+
required: zod.ZodNumber;
|
|
5110
|
+
available: zod.ZodNumber;
|
|
5111
|
+
}, zod_v4_core.$strip>;
|
|
5112
|
+
};
|
|
5113
|
+
}>>>, Record<never, never>>;
|
|
5114
|
+
};
|
|
4864
5115
|
governance: {
|
|
4865
5116
|
createPosition: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
4866
5117
|
walletAddress: zod.ZodString;
|
|
@@ -7457,4 +7708,4 @@ declare const fullApiContract: {
|
|
|
7457
7708
|
};
|
|
7458
7709
|
};
|
|
7459
7710
|
|
|
7460
|
-
export { type AssignProxiesInput, AssignProxiesInputSchema, AutomationScheduleSchema, type AutomationStatus, AutomationStatusOutputSchema, BAD_REQUEST, type BankAccount, type BankAccountListOutput, BankAccountListOutputSchema, BankAccountSchema, type BatchStatusOutput, BatchStatusOutputSchema, type BridgeTransfer, BridgeTransferSchema, CONFLICT, type ClaimDelegationRewardsInput, ClaimDelegationRewardsInputSchema, ClaimInviteRequestSchema, ClaimInviteResponseSchema, type ClaimRewardsInput, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, type CloseAutomationInput, CloseAutomationInputSchema, CloseAutomationOutputSchema, type ClosePositionInput, ClosePositionInputSchema, type CreateBankAccountInput, CreateBankAccountInputSchema, type CreateHntAccountInput, CreateHntAccountInputSchema, type CreateHntAccountOutput, CreateHntAccountOutputSchema, CreateInviteResponseSchema, type CreatePositionInput, CreatePositionInputSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, type CreateSplitInput, CreateSplitInputSchema, CreateSplitOutputSchema, type DelegatePositionInput, DelegatePositionInputSchema, type DeleteBankAccountInput, DeleteBankAccountInputSchema, type DeleteBankAccountOutput, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, type DeleteSplitInput, DeleteSplitInputSchema, DeleteSplitOutputSchema, type DeviceType, DeviceTypeSchema, type ErrorResponse, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, type EstimateInput, EstimateInputSchema, type EstimateOutput, EstimateOutputSchema, type ExtendDelegationInput, ExtendDelegationInputSchema, type ExtendPositionInput, ExtendPositionInputSchema, type FeesOutput, FeesOutputSchema, FindRewardContractResponseSchema, type FlipLockupKindInput, FlipLockupKindInputSchema, type FundAutomationInput, FundAutomationInputSchema, FundAutomationOutputSchema, type FundingEstimate, FundingEstimateOutputSchema, type GetAutomationStatusInput, GetAutomationStatusInputSchema, type GetBalancesInput, GetBalancesInputSchema, type GetBankAccountInput, GetBankAccountInputSchema, type GetByPayerAndTagInput, GetByPayerAndTagInputSchema, type GetByPayerInput, GetByPayerInputSchema, type GetFundingEstimateInput, GetFundingEstimateInputSchema, type GetHotspotsInput, GetHotspotsInputSchema, type GetInput, GetInputSchema, type GetInstructionsInput, GetInstructionsInputSchema, type GetPendingRewardsInput, GetPendingRewardsInputSchema, type GetPendingRewardsOutput, GetPendingRewardsOutputSchema, type GetQuoteInput, GetQuoteInputSchema, type GetSendQuoteInput, GetSendQuoteInputSchema, type GetSplitInput, GetSplitInputSchema, type GetTokensInput, GetTokensInputSchema, type GetTransferInput, GetTransferInputSchema, type GovernanceTransactionResponse, GovernanceTransactionResponseSchema, type HealthResponse, HealthResponseSchema, HeliumPublicKeySchema, type Hotspot, HotspotSchema, HotspotSharesSchema, type HotspotType, HotspotTypeSchema, type HotspotsData, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, type InitKycInput, InitKycInputSchema, type KycStatusOutput, KycStatusOutputSchema, type LockupKind, LockupKindSchema, NOT_FOUND, type OwnershipType, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, type PayerBatchSummary, PayerBatchSummarySchema, type PayerBatchesOutput, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, type QuoteResponse, QuoteResponseSchema, RATE_LIMITED, type RelinquishPositionVotesInput, RelinquishPositionVotesInputSchema, type RelinquishVoteInput, RelinquishVoteInputSchema, type ResetLockupInput, ResetLockupInputSchema, type ResubmitInput, ResubmitInputSchema, type ResubmitOutput, ResubmitOutputSchema, type RewardSplitInput, RewardSplitInputSchema, SIMULATION_FAILED, type ScheduleInput, ScheduleInputSchema, type SendFundsInput, SendFundsInputSchema, type SendFundsOutput, SendFundsOutputSchema, type SetupAutomationInput, SetupAutomationInputSchema, SetupAutomationOutputSchema, type SplitPositionInput, SplitPositionInputSchema, type SplitResponse, SplitResponseSchema, type SplitShare, SplitShareSchema, type SubmitInput, SubmitInputSchema, type SubmitOutput, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, type Token, type TokenAccount, TokenAccountSchema, type TokenAmountInput, TokenAmountInputSchema, type TokenAmountOutput, TokenAmountOutputSchema, type TokenBalanceData, TokenBalanceDataSchema, type TokenListOutput, TokenListOutputSchema, TokenSchema, type TransactionBatchRequest, TransactionBatchRequestSchema, type TransactionBatchResponse, TransactionBatchResponseSchema, type TransactionData, TransactionDataSchema, type TransactionItem, TransactionItemSchema, type TransactionMetadata, TransactionMetadataSchema, type TransactionStatus, TransactionStatusSchema, type TransferHotspotInput, TransferHotspotInputSchema, TransferHotspotOutputSchema, type TransferInput, TransferInputSchema, type TransferOutput, TransferOutputSchema, type TransferPositionInput, TransferPositionInputSchema, UNAUTHENTICATED, UNAUTHORIZED, type UnassignProxiesInput, UnassignProxiesInputSchema, type UndelegateInput, UndelegateInputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, type UpdateRewardsDestinationInput, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, type UpdateTransferInput, UpdateTransferInputSchema, type UpdateTransferOutput, UpdateTransferOutputSchema, type VoteInput, VoteInputSchema, WalletAddressSchema, type WelcomePack, type WelcomePackClaimInput, WelcomePackClaimInputSchema, type WelcomePackClaimOutput, WelcomePackClaimOutputSchema, type WelcomePackCreateInput, WelcomePackCreateInputSchema, type WelcomePackCreateOutput, WelcomePackCreateOutputSchema, type WelcomePackDeleteInput, WelcomePackDeleteInputSchema, type WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, type WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, type WelcomePackGetInput, WelcomePackGetInputSchema, type WelcomePackInviteInput, WelcomePackInviteInputSchema, type WelcomePackInviteOutput, WelcomePackInviteOutputSchema, type WelcomePackListInput, WelcomePackListInputSchema, type WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
|
|
7711
|
+
export { type AssignProxiesInput, AssignProxiesInputSchema, AutomationScheduleSchema, type AutomationStatus, AutomationStatusOutputSchema, BAD_REQUEST, type BankAccount, type BankAccountListOutput, BankAccountListOutputSchema, BankAccountSchema, type BatchStatusOutput, BatchStatusOutputSchema, type BridgeTransfer, BridgeTransferSchema, CONFLICT, type ClaimDelegationRewardsInput, ClaimDelegationRewardsInputSchema, ClaimInviteRequestSchema, ClaimInviteResponseSchema, type ClaimRewardsInput, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, type CloseAutomationInput, CloseAutomationInputSchema, CloseAutomationOutputSchema, type ClosePositionInput, ClosePositionInputSchema, type CreateBankAccountInput, CreateBankAccountInputSchema, type CreateHntAccountInput, CreateHntAccountInputSchema, type CreateHntAccountOutput, CreateHntAccountOutputSchema, CreateInviteResponseSchema, type CreatePositionInput, CreatePositionInputSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, type CreateSplitInput, CreateSplitInputSchema, CreateSplitOutputSchema, type DelegatePositionInput, DelegatePositionInputSchema, type DeleteBankAccountInput, DeleteBankAccountInputSchema, type DeleteBankAccountOutput, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, type DeleteSplitInput, DeleteSplitInputSchema, DeleteSplitOutputSchema, type DeviceType, DeviceTypeSchema, type ErrorResponse, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, type EstimateInput, EstimateInputSchema, type EstimateOutput, EstimateOutputSchema, type ExtendDelegationInput, ExtendDelegationInputSchema, type ExtendPositionInput, ExtendPositionInputSchema, type FeesOutput, FeesOutputSchema, FindRewardContractResponseSchema, type FlipLockupKindInput, FlipLockupKindInputSchema, type FundAutomationInput, FundAutomationInputSchema, FundAutomationOutputSchema, type FundingEstimate, FundingEstimateOutputSchema, type GetAutomationStatusInput, GetAutomationStatusInputSchema, type GetBalancesInput, GetBalancesInputSchema, type GetBankAccountInput, GetBankAccountInputSchema, type GetByPayerAndTagInput, GetByPayerAndTagInputSchema, type GetByPayerInput, GetByPayerInputSchema, type GetFundingEstimateInput, GetFundingEstimateInputSchema, type GetHotspotsInput, GetHotspotsInputSchema, type GetInput, GetInputSchema, type GetInstructionsInput, GetInstructionsInputSchema, type GetPendingRewardsInput, GetPendingRewardsInputSchema, type GetPendingRewardsOutput, GetPendingRewardsOutputSchema, type GetQuoteInput, GetQuoteInputSchema, type GetSendQuoteInput, GetSendQuoteInputSchema, type GetSplitInput, GetSplitInputSchema, type GetTokensInput, GetTokensInputSchema, type GetTransferInput, GetTransferInputSchema, type GovernanceTransactionResponse, GovernanceTransactionResponseSchema, type HealthResponse, HealthResponseSchema, HeliumPublicKeySchema, type Hotspot, HotspotSchema, HotspotSharesSchema, type HotspotType, HotspotTypeSchema, type HotspotsData, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, type InitKycInput, InitKycInputSchema, type KycStatusOutput, KycStatusOutputSchema, type LockupKind, LockupKindSchema, MigratableHotspotSchema, type MigratableHotspotsInput, MigratableHotspotsInputSchema, type MigratableHotspotsOutput, MigratableHotspotsOutputSchema, type MigrateInput, MigrateInputSchema, type MigrateOutput, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema, NOT_FOUND, type OwnershipType, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, type PayerBatchSummary, PayerBatchSummarySchema, type PayerBatchesOutput, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, type QuoteResponse, QuoteResponseSchema, RATE_LIMITED, type RelinquishPositionVotesInput, RelinquishPositionVotesInputSchema, type RelinquishVoteInput, RelinquishVoteInputSchema, type ResetLockupInput, ResetLockupInputSchema, type ResubmitInput, ResubmitInputSchema, type ResubmitOutput, ResubmitOutputSchema, type RewardSplitInput, RewardSplitInputSchema, SIMULATION_FAILED, type ScheduleInput, ScheduleInputSchema, type SendFundsInput, SendFundsInputSchema, type SendFundsOutput, SendFundsOutputSchema, type SetupAutomationInput, SetupAutomationInputSchema, SetupAutomationOutputSchema, type SplitPositionInput, SplitPositionInputSchema, type SplitResponse, SplitResponseSchema, type SplitShare, SplitShareSchema, type SubmitInput, SubmitInputSchema, type SubmitOutput, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, type Token, type TokenAccount, TokenAccountSchema, type TokenAmountInput, TokenAmountInputSchema, type TokenAmountOutput, TokenAmountOutputSchema, type TokenBalanceData, TokenBalanceDataSchema, type TokenListOutput, TokenListOutputSchema, TokenSchema, type TransactionBatchRequest, TransactionBatchRequestSchema, type TransactionBatchResponse, TransactionBatchResponseSchema, type TransactionData, TransactionDataSchema, type TransactionItem, TransactionItemSchema, type TransactionMetadata, TransactionMetadataSchema, type TransactionStatus, TransactionStatusSchema, type TransferHotspotInput, TransferHotspotInputSchema, TransferHotspotOutputSchema, type TransferInput, TransferInputSchema, type TransferOutput, TransferOutputSchema, type TransferPositionInput, TransferPositionInputSchema, UNAUTHENTICATED, UNAUTHORIZED, type UnassignProxiesInput, UnassignProxiesInputSchema, type UndelegateInput, UndelegateInputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, type UpdateRewardsDestinationInput, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, type UpdateTransferInput, UpdateTransferInputSchema, type UpdateTransferOutput, UpdateTransferOutputSchema, type VoteInput, VoteInputSchema, WalletAddressSchema, type WelcomePack, type WelcomePackClaimInput, WelcomePackClaimInputSchema, type WelcomePackClaimOutput, WelcomePackClaimOutputSchema, type WelcomePackCreateInput, WelcomePackCreateInputSchema, type WelcomePackCreateOutput, WelcomePackCreateOutputSchema, type WelcomePackDeleteInput, WelcomePackDeleteInputSchema, type WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, type WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, type WelcomePackGetInput, WelcomePackGetInputSchema, type WelcomePackInviteInput, WelcomePackInviteInputSchema, type WelcomePackInviteOutput, WelcomePackInviteOutputSchema, type WelcomePackListInput, WelcomePackListInputSchema, type WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
|
package/dist/index.js
CHANGED
|
@@ -1006,6 +1006,49 @@ var WelcomePackInviteOutputSchema = z.object({
|
|
|
1006
1006
|
message: z.string(),
|
|
1007
1007
|
expirationTs: z.number()
|
|
1008
1008
|
});
|
|
1009
|
+
var MigrateInputSchema = z.object({
|
|
1010
|
+
sourceWallet: WalletAddressSchema,
|
|
1011
|
+
destinationWallet: WalletAddressSchema,
|
|
1012
|
+
hotspots: z.array(z.string()).default([]),
|
|
1013
|
+
tokens: z.array(
|
|
1014
|
+
z.object({
|
|
1015
|
+
mint: z.string(),
|
|
1016
|
+
amount: z.string()
|
|
1017
|
+
})
|
|
1018
|
+
).default([])
|
|
1019
|
+
});
|
|
1020
|
+
var MigrateTransactionItemSchema = z.object({
|
|
1021
|
+
serializedTransaction: z.string(),
|
|
1022
|
+
metadata: TransactionMetadataSchema.extend({
|
|
1023
|
+
signers: z.array(z.enum(["source", "destination"]))
|
|
1024
|
+
}).optional()
|
|
1025
|
+
});
|
|
1026
|
+
var MigrateTransactionDataSchema = z.object({
|
|
1027
|
+
transactions: z.array(MigrateTransactionItemSchema),
|
|
1028
|
+
parallel: z.boolean(),
|
|
1029
|
+
tag: z.string().optional()
|
|
1030
|
+
});
|
|
1031
|
+
var MigrateOutputSchema = z.object({
|
|
1032
|
+
transactionData: MigrateTransactionDataSchema,
|
|
1033
|
+
estimatedSolFee: TokenAmountOutputSchema,
|
|
1034
|
+
warnings: z.array(z.string()).optional(),
|
|
1035
|
+
hasMore: z.boolean().optional().describe(
|
|
1036
|
+
"True if more work remains \u2014 submit these transactions, then call again with nextParams."
|
|
1037
|
+
),
|
|
1038
|
+
nextParams: MigrateInputSchema.optional().describe(
|
|
1039
|
+
"Input for the next call. Present when hasMore is true \u2014 pass directly to the next migrate call."
|
|
1040
|
+
)
|
|
1041
|
+
});
|
|
1042
|
+
var MigratableHotspotSchema = HotspotSchema.extend({
|
|
1043
|
+
inWelcomePack: z.boolean(),
|
|
1044
|
+
splitWallets: z.array(z.string()).optional()
|
|
1045
|
+
});
|
|
1046
|
+
var MigratableHotspotsInputSchema = z.object({
|
|
1047
|
+
walletAddress: WalletAddressSchema
|
|
1048
|
+
});
|
|
1049
|
+
var MigratableHotspotsOutputSchema = z.object({
|
|
1050
|
+
hotspots: z.array(MigratableHotspotSchema)
|
|
1051
|
+
});
|
|
1009
1052
|
var UNAUTHENTICATED = {
|
|
1010
1053
|
status: 401,
|
|
1011
1054
|
message: "Authentication required. Please sign in to continue."
|
|
@@ -1486,6 +1529,26 @@ var webhooksContract = oc.tag("Webhooks").router({
|
|
|
1486
1529
|
INVALID_PAYLOAD: { message: "Invalid webhook payload", status: 400 }
|
|
1487
1530
|
})
|
|
1488
1531
|
});
|
|
1532
|
+
var migrationContract = oc.tag("Migration").router({
|
|
1533
|
+
getHotspots: oc.route({
|
|
1534
|
+
method: "GET",
|
|
1535
|
+
path: "/migration/hotspots",
|
|
1536
|
+
summary: "Get hotspots that can be migrated (owned directly or in welcome packs)"
|
|
1537
|
+
}).input(MigratableHotspotsInputSchema).output(MigratableHotspotsOutputSchema).errors({
|
|
1538
|
+
BAD_REQUEST
|
|
1539
|
+
}),
|
|
1540
|
+
migrate: oc.route({
|
|
1541
|
+
method: "POST",
|
|
1542
|
+
path: "/migration/migrate",
|
|
1543
|
+
summary: "Migrate assets to a new wallet",
|
|
1544
|
+
description: "Returns up to 5 transactions per call. If hasMore is true, submit the transactions then call again with nextParams."
|
|
1545
|
+
}).input(MigrateInputSchema).output(MigrateOutputSchema).errors({
|
|
1546
|
+
UNAUTHORIZED,
|
|
1547
|
+
BAD_REQUEST,
|
|
1548
|
+
NOT_FOUND,
|
|
1549
|
+
INSUFFICIENT_FUNDS
|
|
1550
|
+
})
|
|
1551
|
+
});
|
|
1489
1552
|
var apiContract = oc.router({
|
|
1490
1553
|
governance: governanceContract,
|
|
1491
1554
|
health: healthContract,
|
|
@@ -1499,7 +1562,8 @@ var apiContract = oc.router({
|
|
|
1499
1562
|
var fullApiContract = oc.router({
|
|
1500
1563
|
...apiContract,
|
|
1501
1564
|
fiat: fiatContract,
|
|
1502
|
-
webhooks: webhooksContract
|
|
1565
|
+
webhooks: webhooksContract,
|
|
1566
|
+
migration: migrationContract
|
|
1503
1567
|
});
|
|
1504
1568
|
|
|
1505
|
-
export { AssignProxiesInputSchema, AutomationScheduleSchema, AutomationStatusOutputSchema, BAD_REQUEST, BankAccountListOutputSchema, BankAccountSchema, BatchStatusOutputSchema, BridgeTransferSchema, CONFLICT, ClaimDelegationRewardsInputSchema, ClaimInviteRequestSchema, ClaimInviteResponseSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, ClosePositionInputSchema, CreateBankAccountInputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreatePositionInputSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DelegatePositionInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, EstimateInputSchema, EstimateOutputSchema, ExtendDelegationInputSchema, ExtendPositionInputSchema, FeesOutputSchema, FindRewardContractResponseSchema, FlipLockupKindInputSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetBalancesInputSchema, GetBankAccountInputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetInputSchema, GetInstructionsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetQuoteInputSchema, GetSendQuoteInputSchema, GetSplitInputSchema, GetTokensInputSchema, GetTransferInputSchema, GovernanceTransactionResponseSchema, HealthResponseSchema, HeliumPublicKeySchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, InitKycInputSchema, KycStatusOutputSchema, LockupKindSchema, NOT_FOUND, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, QuoteResponseSchema, RATE_LIMITED, RelinquishPositionVotesInputSchema, RelinquishVoteInputSchema, ResetLockupInputSchema, ResubmitInputSchema, ResubmitOutputSchema, RewardSplitInputSchema, SIMULATION_FAILED, ScheduleInputSchema, SendFundsInputSchema, SendFundsOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitPositionInputSchema, SplitResponseSchema, SplitShareSchema, SubmitInputSchema, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, TokenAccountSchema, TokenAmountInputSchema, TokenAmountOutputSchema, TokenBalanceDataSchema, TokenListOutputSchema, TokenSchema, TransactionBatchRequestSchema, TransactionBatchResponseSchema, TransactionDataSchema, TransactionItemSchema, TransactionMetadataSchema, TransactionStatusSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, TransferInputSchema, TransferOutputSchema, TransferPositionInputSchema, UNAUTHENTICATED, UNAUTHORIZED, UnassignProxiesInputSchema, UndelegateInputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema, VoteInputSchema, WalletAddressSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
|
|
1569
|
+
export { AssignProxiesInputSchema, AutomationScheduleSchema, AutomationStatusOutputSchema, BAD_REQUEST, BankAccountListOutputSchema, BankAccountSchema, BatchStatusOutputSchema, BridgeTransferSchema, CONFLICT, ClaimDelegationRewardsInputSchema, ClaimInviteRequestSchema, ClaimInviteResponseSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, ClosePositionInputSchema, CreateBankAccountInputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreatePositionInputSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DelegatePositionInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, EstimateInputSchema, EstimateOutputSchema, ExtendDelegationInputSchema, ExtendPositionInputSchema, FeesOutputSchema, FindRewardContractResponseSchema, FlipLockupKindInputSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetBalancesInputSchema, GetBankAccountInputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetInputSchema, GetInstructionsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetQuoteInputSchema, GetSendQuoteInputSchema, GetSplitInputSchema, GetTokensInputSchema, GetTransferInputSchema, GovernanceTransactionResponseSchema, HealthResponseSchema, HeliumPublicKeySchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, InitKycInputSchema, KycStatusOutputSchema, LockupKindSchema, MigratableHotspotSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema, MigrateInputSchema, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema, NOT_FOUND, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, QuoteResponseSchema, RATE_LIMITED, RelinquishPositionVotesInputSchema, RelinquishVoteInputSchema, ResetLockupInputSchema, ResubmitInputSchema, ResubmitOutputSchema, RewardSplitInputSchema, SIMULATION_FAILED, ScheduleInputSchema, SendFundsInputSchema, SendFundsOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitPositionInputSchema, SplitResponseSchema, SplitShareSchema, SubmitInputSchema, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, TokenAccountSchema, TokenAmountInputSchema, TokenAmountOutputSchema, TokenBalanceDataSchema, TokenListOutputSchema, TokenSchema, TransactionBatchRequestSchema, TransactionBatchResponseSchema, TransactionDataSchema, TransactionItemSchema, TransactionMetadataSchema, TransactionStatusSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, TransferInputSchema, TransferOutputSchema, TransferPositionInputSchema, UNAUTHENTICATED, UNAUTHORIZED, UnassignProxiesInputSchema, UndelegateInputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema, VoteInputSchema, WalletAddressSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
|