@helium/blockchain-api 0.11.13 → 0.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{chunk-YVB4ENKX.js → chunk-5G5SYHQP.js} +4 -2
  2. package/dist/{chunk-MSIA3ZUI.js → chunk-7DAYLUKX.js} +1 -1
  3. package/dist/{chunk-NBOSJXWK.js → chunk-DQAIWNIY.js} +2 -2
  4. package/dist/{chunk-RD5LUTM5.js → chunk-EIDQ3E2M.js} +2 -2
  5. package/dist/{chunk-T7OKPHTD.js → chunk-ET7WQ2QI.js} +2 -2
  6. package/dist/chunk-IFZEDIKX.js +28 -0
  7. package/dist/{chunk-LHKDTWB2.js → chunk-NNN5EOVI.js} +1 -1
  8. package/dist/{chunk-7R4XQ5SN.js → chunk-PPNXNULU.js} +34 -2
  9. package/dist/{chunk-5ZPW3MRC.js → chunk-S46U7PBT.js} +1 -1
  10. package/dist/{chunk-4CY5D37F.js → chunk-U3ZF47XT.js} +1 -1
  11. package/dist/{chunk-2RQHCVRZ.js → chunk-XHUD22R7.js} +36 -13
  12. package/dist/{chunk-6LMSAIIW.js → chunk-ZH2AGLCO.js} +8 -5
  13. package/dist/contracts.d.ts +466 -1
  14. package/dist/contracts.js +13 -12
  15. package/dist/index.d.ts +3 -2
  16. package/dist/index.js +14 -13
  17. package/dist/schemas/common.d.ts +6 -0
  18. package/dist/schemas/common.js +1 -1
  19. package/dist/schemas/data-credits.d.ts +19 -0
  20. package/dist/schemas/data-credits.js +2 -0
  21. package/dist/schemas/fiat.d.ts +1 -0
  22. package/dist/schemas/fiat.js +3 -3
  23. package/dist/schemas/governance.d.ts +16 -0
  24. package/dist/schemas/governance.js +2 -2
  25. package/dist/schemas/hotspots.d.ts +26 -1
  26. package/dist/schemas/hotspots.js +2 -2
  27. package/dist/schemas/migration.js +3 -3
  28. package/dist/schemas/reward-contract.d.ts +3 -0
  29. package/dist/schemas/reward-contract.js +2 -2
  30. package/dist/schemas/swap.d.ts +1 -0
  31. package/dist/schemas/swap.js +2 -2
  32. package/dist/schemas/tokens.d.ts +2 -0
  33. package/dist/schemas/tokens.js +2 -2
  34. package/dist/schemas/transactions.d.ts +61 -1
  35. package/dist/schemas/transactions.js +2 -2
  36. package/dist/schemas/welcome-packs.d.ts +3 -0
  37. package/dist/schemas/welcome-packs.js +3 -3
  38. package/dist/schemas.d.ts +3 -2
  39. package/dist/schemas.js +12 -11
  40. package/package.json +1 -1
  41. /package/dist/{chunk-TEWZC6CW.js → chunk-TPPTOJHD.js} +0 -0
@@ -12,7 +12,8 @@ var TransactionItemSchema = z.object({
12
12
  var TransactionDataSchema = z.object({
13
13
  transactions: z.array(TransactionItemSchema),
14
14
  parallel: z.boolean(),
15
- tag: z.string().optional()
15
+ tag: z.string().optional(),
16
+ actionMetadata: z.record(z.string(), z.unknown()).optional()
16
17
  });
17
18
  var TransactionBatchRequestSchema = z.object({
18
19
  transactions: z.array(TransactionItemSchema),
@@ -82,7 +83,8 @@ function typedTransactionData(metadataSchema) {
82
83
  })
83
84
  ),
84
85
  parallel: z.boolean(),
85
- tag: z.string().optional()
86
+ tag: z.string().optional(),
87
+ actionMetadata: z.record(z.string(), z.unknown()).optional()
86
88
  });
87
89
  }
88
90
  function createTransactionResponse() {
@@ -1,4 +1,4 @@
1
- import { WalletAddressSchema, TokenAmountInputSchema, createTransactionResponse } from './chunk-YVB4ENKX.js';
1
+ import { WalletAddressSchema, TokenAmountInputSchema, createTransactionResponse } from './chunk-5G5SYHQP.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var GetBalancesInputSchema = z.object({
@@ -1,5 +1,5 @@
1
- import { HotspotSchema } from './chunk-6LMSAIIW.js';
2
- import { WalletAddressSchema, TransactionMetadataSchema, TokenAmountOutputSchema } from './chunk-YVB4ENKX.js';
1
+ import { HotspotSchema } from './chunk-ZH2AGLCO.js';
2
+ import { WalletAddressSchema, TransactionMetadataSchema, TokenAmountOutputSchema } from './chunk-5G5SYHQP.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var MigrateInputSchema = z.object({
@@ -1,5 +1,5 @@
1
- import { QuoteResponseSchema } from './chunk-5ZPW3MRC.js';
2
- import { createTransactionResponse } from './chunk-YVB4ENKX.js';
1
+ import { QuoteResponseSchema } from './chunk-S46U7PBT.js';
2
+ import { createTransactionResponse } from './chunk-5G5SYHQP.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var InitKycInputSchema = z.object({
@@ -1,5 +1,5 @@
1
- import { HotspotSchema } from './chunk-6LMSAIIW.js';
2
- import { WalletAddressSchema, ScheduleInputSchema, TokenAmountInputSchema, RewardSplitInputSchema, createTransactionResponse } from './chunk-YVB4ENKX.js';
1
+ import { HotspotSchema } from './chunk-ZH2AGLCO.js';
2
+ import { WalletAddressSchema, ScheduleInputSchema, TokenAmountInputSchema, RewardSplitInputSchema, createTransactionResponse } from './chunk-5G5SYHQP.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var WelcomePackListInputSchema = z.object({
@@ -0,0 +1,28 @@
1
+ import { PublicKeySchema } from './chunk-5G5SYHQP.js';
2
+ import { z } from 'zod';
3
+
4
+ var MintDataCreditsInputSchema = z.object({
5
+ owner: PublicKeySchema.describe(
6
+ "Wallet address of the user minting data credits (used as fee payer and HNT source)"
7
+ ),
8
+ dcAmount: z.string().regex(/^\d+$/, "Amount must be a whole number").optional().describe("Amount of DC to mint (in smallest unit). Provide either dcAmount or hntAmount."),
9
+ hntAmount: z.string().regex(/^\d+$/, "Amount must be a whole number in bones").optional().describe(
10
+ "Amount of HNT to burn (in bones, 1 HNT = 100000000 bones). Provide either dcAmount or hntAmount."
11
+ ),
12
+ recipient: PublicKeySchema.optional().describe(
13
+ "Recipient wallet for the minted DC. Defaults to the owner."
14
+ )
15
+ });
16
+ var DelegateDataCreditsInputSchema = z.object({
17
+ owner: PublicKeySchema.describe(
18
+ "Wallet address of the DC owner (signer and fee payer)"
19
+ ),
20
+ routerKey: z.string().min(1).describe("Router key string to delegate data credits to"),
21
+ amount: z.string().regex(/^\d+$/, "Amount must be a whole number").describe("Amount of DC to delegate (in smallest unit, DC has 0 decimals)"),
22
+ mint: PublicKeySchema.describe(
23
+ "SubDAO token mint (e.g. MOBILE or IOT mint) to determine which subDAO to delegate to"
24
+ ),
25
+ memo: z.string().optional().describe("Optional memo to include in the transaction")
26
+ });
27
+
28
+ export { DelegateDataCreditsInputSchema, MintDataCreditsInputSchema };
@@ -1,4 +1,4 @@
1
- import { PublicKeySchema, TokenAmountInputSchema, WalletAddressSchema, createTypedTransactionResponse, createTransactionResponse, createPaginatedTransactionResponse, createTypedPaginatedTransactionResponse } from './chunk-YVB4ENKX.js';
1
+ import { PublicKeySchema, TokenAmountInputSchema, WalletAddressSchema, createTypedTransactionResponse, createTransactionResponse, createPaginatedTransactionResponse, createTypedPaginatedTransactionResponse } from './chunk-5G5SYHQP.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var LockupKindSchema = z.enum(["cliff", "constant"]);
@@ -1,10 +1,11 @@
1
- import { TransactionItemSchema, TransactionMetadataSchema, TokenAmountOutputSchema } from './chunk-YVB4ENKX.js';
1
+ import { TransactionItemSchema, TransactionMetadataSchema, TokenAmountOutputSchema } from './chunk-5G5SYHQP.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var SubmitInputSchema = z.object({
5
5
  transactions: z.array(TransactionItemSchema),
6
6
  parallel: z.boolean(),
7
7
  tag: z.string().optional(),
8
+ actionMetadata: z.record(z.string(), z.unknown()).optional(),
8
9
  simulationCommitment: z.enum(["confirmed", "finalized"]).optional().default("confirmed"),
9
10
  simulate: z.boolean().optional().default(true)
10
11
  });
@@ -112,5 +113,36 @@ var EstimateOutputSchema = z.object({
112
113
  breakdown: CostBreakdownSchema,
113
114
  transactions: z.array(TransactionEstimateSchema)
114
115
  });
116
+ var GetHistoryInputSchema = z.object({
117
+ payer: z.string().min(32),
118
+ page: z.coerce.number().int().min(1).default(1),
119
+ limit: z.coerce.number().int().min(1).max(100).default(20),
120
+ actionType: z.string().optional()
121
+ });
122
+ var HistoryTransactionSchema = z.object({
123
+ signature: z.string(),
124
+ status: z.string(),
125
+ type: z.string(),
126
+ metadata: z.record(z.string(), z.unknown()).optional()
127
+ });
128
+ var HistoryActionSchema = z.object({
129
+ id: z.string(),
130
+ source: z.enum(["blockchain_api", "on_chain"]),
131
+ actionType: z.string(),
132
+ actionMetadata: z.record(z.string(), z.unknown()).nullable(),
133
+ status: z.string(),
134
+ transactions: z.array(HistoryTransactionSchema),
135
+ timestamp: z.string()
136
+ });
137
+ var HistoryOutputSchema = z.object({
138
+ payer: z.string(),
139
+ actions: z.array(HistoryActionSchema),
140
+ pagination: z.object({
141
+ page: z.number(),
142
+ limit: z.number(),
143
+ total: z.number(),
144
+ totalPages: z.number()
145
+ })
146
+ });
115
147
 
116
- export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetInputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema };
148
+ export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetHistoryInputSchema, GetInputSchema, HistoryActionSchema, HistoryOutputSchema, HistoryTransactionSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema };
@@ -1,4 +1,4 @@
1
- import { TransactionDataSchema } from './chunk-YVB4ENKX.js';
1
+ import { TransactionDataSchema } from './chunk-5G5SYHQP.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var GetTokensInputSchema = z.object({
@@ -1,4 +1,4 @@
1
- import { TokenAmountInputSchema, TokenAmountOutputSchema, WalletAddressSchema, TransactionDataSchema } from './chunk-YVB4ENKX.js';
1
+ import { TokenAmountInputSchema, TokenAmountOutputSchema, WalletAddressSchema, TransactionDataSchema } from './chunk-5G5SYHQP.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var CRON_REGEX = /^(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)$/;
@@ -1,16 +1,17 @@
1
- import { BridgeWebhookInputSchema, BridgeWebhookOutputSchema } from './chunk-7CTJX35S.js';
2
1
  import { INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, BAD_REQUEST, UNAUTHORIZED, NOT_FOUND, CONFLICT, SIMULATION_FAILED, UNAUTHENTICATED } from './chunk-6EPXJJY5.js';
3
- import { MigrateInputSchema, MigrateOutputSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema } from './chunk-NBOSJXWK.js';
4
- import { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, DeleteRewardContractTransactionResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-4CY5D37F.js';
5
- import { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, TransferInputSchema, TransferOutputSchema, GetBalancesInputSchema, TokenBalanceDataSchema } from './chunk-MSIA3ZUI.js';
6
- import { EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, PayerBatchesOutputSchema, GetByPayerInputSchema, ResubmitInputSchema, ResubmitOutputSchema, GetInputSchema, BatchStatusOutputSchema, SubmitInputSchema, SubmitOutputSchema } from './chunk-7R4XQ5SN.js';
7
- import { WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetInputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema } from './chunk-T7OKPHTD.js';
8
- import { UpdateTransferInputSchema, UpdateTransferOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, GetSendQuoteInputSchema, QuoteOutputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, CreateBankAccountInputSchema, BankAccountSchema, BankAccountListOutputSchema, FeesOutputSchema, InitKycInputSchema, KycStatusOutputSchema } from './chunk-RD5LUTM5.js';
9
- import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-5ZPW3MRC.js';
10
- import { UnassignProxiesInputSchema, UnassignProxiesResponseSchema, AssignProxiesInputSchema, AssignProxiesResponseSchema, RelinquishPositionVotesInputSchema, RelinquishPositionVotesResponseSchema, RelinquishVoteInputSchema, RelinquishVoteResponseSchema, VoteInputSchema, VoteResponseSchema, ExtendDelegationInputSchema, ExtendDelegationResponseSchema, UndelegateInputSchema, UndelegatePositionResponseSchema, ClaimDelegationRewardsInputSchema, ClaimDelegationRewardsResponseSchema, DelegatePositionInputSchema, DelegatePositionsResponseSchema, TransferPositionInputSchema, TransferPositionResponseSchema, SplitPositionInputSchema, SplitPositionResponseSchema, ResetLockupInputSchema, ResetLockupResponseSchema, FlipLockupKindInputSchema, FlipLockupKindResponseSchema, ExtendPositionInputSchema, ExtendPositionResponseSchema, ClosePositionInputSchema, ClosePositionResponseSchema, CreatePositionInputSchema, CreatePositionResponseSchema } from './chunk-LHKDTWB2.js';
2
+ import { BridgeWebhookInputSchema, BridgeWebhookOutputSchema } from './chunk-7CTJX35S.js';
3
+ import { MigrateInputSchema, MigrateOutputSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema } from './chunk-DQAIWNIY.js';
4
+ import { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, DeleteRewardContractTransactionResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-U3ZF47XT.js';
5
+ import { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, TransferInputSchema, TransferOutputSchema, GetBalancesInputSchema, TokenBalanceDataSchema } from './chunk-7DAYLUKX.js';
6
+ import { GetHistoryInputSchema, HistoryOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, PayerBatchesOutputSchema, GetByPayerInputSchema, ResubmitInputSchema, ResubmitOutputSchema, GetInputSchema, BatchStatusOutputSchema, SubmitInputSchema, SubmitOutputSchema } from './chunk-PPNXNULU.js';
7
+ import { DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-IFZEDIKX.js';
8
+ import { WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetInputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema } from './chunk-ET7WQ2QI.js';
9
+ import { UpdateTransferInputSchema, UpdateTransferOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, GetSendQuoteInputSchema, QuoteOutputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, CreateBankAccountInputSchema, BankAccountSchema, BankAccountListOutputSchema, FeesOutputSchema, InitKycInputSchema, KycStatusOutputSchema } from './chunk-EIDQ3E2M.js';
10
+ import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-S46U7PBT.js';
11
+ import { UnassignProxiesInputSchema, UnassignProxiesResponseSchema, AssignProxiesInputSchema, AssignProxiesResponseSchema, RelinquishPositionVotesInputSchema, RelinquishPositionVotesResponseSchema, RelinquishVoteInputSchema, RelinquishVoteResponseSchema, VoteInputSchema, VoteResponseSchema, ExtendDelegationInputSchema, ExtendDelegationResponseSchema, UndelegateInputSchema, UndelegatePositionResponseSchema, ClaimDelegationRewardsInputSchema, ClaimDelegationRewardsResponseSchema, DelegatePositionInputSchema, DelegatePositionsResponseSchema, TransferPositionInputSchema, TransferPositionResponseSchema, SplitPositionInputSchema, SplitPositionResponseSchema, ResetLockupInputSchema, ResetLockupResponseSchema, FlipLockupKindInputSchema, FlipLockupKindResponseSchema, ExtendPositionInputSchema, ExtendPositionResponseSchema, ClosePositionInputSchema, ClosePositionResponseSchema, CreatePositionInputSchema, CreatePositionResponseSchema } from './chunk-NNN5EOVI.js';
11
12
  import { HealthResponseSchema } from './chunk-4RVSLJOU.js';
12
- import { UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, GetFundingEstimateInputSchema, FundingEstimateOutputSchema, FundAutomationInputSchema, FundAutomationOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, GetAutomationStatusInputSchema, AutomationStatusOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, CreateSplitInputSchema, CreateSplitOutputSchema, GetSplitInputSchema, SplitResponseSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, GetHotspotsInputSchema, HotspotsDataSchema } from './chunk-6LMSAIIW.js';
13
- import { WalletAddressSchema, HeliumPublicKeySchema, TransactionDataSchema } from './chunk-YVB4ENKX.js';
13
+ import { UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, GetFundingEstimateInputSchema, FundingEstimateOutputSchema, FundAutomationInputSchema, FundAutomationOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, GetAutomationStatusInputSchema, AutomationStatusOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, CreateSplitInputSchema, CreateSplitOutputSchema, GetSplitInputSchema, SplitResponseSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, GetHotspotsInputSchema, HotspotsDataSchema } from './chunk-ZH2AGLCO.js';
14
+ import { WalletAddressSchema, HeliumPublicKeySchema, TransactionDataSchema } from './chunk-5G5SYHQP.js';
14
15
  import { oc } from '@orpc/contract';
15
16
  import { z } from 'zod';
16
17
 
@@ -344,6 +345,9 @@ var transactionsContract = oc.tag("Transactions").router({
344
345
  estimate: oc.route({ method: "POST", path: "/transactions/estimate", summary: "Estimate transaction costs" }).input(EstimateInputSchema).output(EstimateOutputSchema).errors({
345
346
  BAD_REQUEST,
346
347
  SIMULATION_FAILED
348
+ }),
349
+ history: oc.route({ method: "GET", path: "/transactions/history/{payer}", summary: "Get unified transaction history" }).input(GetHistoryInputSchema).output(HistoryOutputSchema).errors({
350
+ BAD_REQUEST
347
351
  })
348
352
  });
349
353
  var welcomePacksContract = oc.tag("Welcome Packs").router({
@@ -446,6 +450,24 @@ var migrationContract = oc.tag("Migration").router({
446
450
  INSUFFICIENT_FUNDS
447
451
  })
448
452
  });
453
+ var dataCreditsContract = oc.tag("Data Credits").router({
454
+ mint: oc.route({
455
+ method: "POST",
456
+ path: "/data-credits/mint",
457
+ summary: "Mint data credits by burning HNT"
458
+ }).input(MintDataCreditsInputSchema).output(TransactionDataSchema).errors({
459
+ BAD_REQUEST,
460
+ INSUFFICIENT_FUNDS
461
+ }),
462
+ delegate: oc.route({
463
+ method: "POST",
464
+ path: "/data-credits/delegate",
465
+ summary: "Delegate data credits to a router key"
466
+ }).input(DelegateDataCreditsInputSchema).output(TransactionDataSchema).errors({
467
+ BAD_REQUEST,
468
+ INSUFFICIENT_FUNDS
469
+ })
470
+ });
449
471
  var apiContract = oc.router({
450
472
  governance: governanceContract,
451
473
  health: healthContract,
@@ -455,7 +477,8 @@ var apiContract = oc.router({
455
477
  swap: swapContract,
456
478
  transactions: transactionsContract,
457
479
  welcomePacks: welcomePacksContract,
458
- migration: migrationContract
480
+ migration: migrationContract,
481
+ dataCredits: dataCreditsContract
459
482
  });
460
483
  var fullApiContract = oc.router({
461
484
  ...apiContract,
@@ -464,4 +487,4 @@ var fullApiContract = oc.router({
464
487
  migration: migrationContract
465
488
  });
466
489
 
467
- export { apiContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract };
490
+ export { apiContract, dataCreditsContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract };
@@ -1,6 +1,7 @@
1
- import { WalletAddressSchema, TokenAmountOutputSchema, HeliumPublicKeySchema, ScheduleInputSchema, RewardSplitInputSchema, createTransactionResponse } from './chunk-YVB4ENKX.js';
1
+ import { WalletAddressSchema, TokenAmountOutputSchema, HeliumPublicKeySchema, ScheduleInputSchema, RewardSplitInputSchema, createPaginatedTransactionResponse, createTransactionResponse } from './chunk-5G5SYHQP.js';
2
2
  import { z } from 'zod';
3
3
 
4
+ var RewardNetworkSchema = z.enum(["hnt", "iot", "mobile"]).default("hnt");
4
5
  var HotspotTypeSchema = z.enum(["iot", "mobile", "all"]);
5
6
  var GetHotspotsInputSchema = z.object({
6
7
  walletAddress: WalletAddressSchema,
@@ -9,10 +10,12 @@ var GetHotspotsInputSchema = z.object({
9
10
  limit: z.coerce.number().int().min(1).max(100).default(10)
10
11
  });
11
12
  var ClaimRewardsInputSchema = z.object({
12
- walletAddress: WalletAddressSchema
13
+ walletAddress: WalletAddressSchema,
14
+ network: RewardNetworkSchema
13
15
  });
14
16
  var GetPendingRewardsInputSchema = z.object({
15
- walletAddress: WalletAddressSchema
17
+ walletAddress: WalletAddressSchema,
18
+ network: RewardNetworkSchema
16
19
  });
17
20
  var PendingRewards = z.object({
18
21
  total: TokenAmountOutputSchema.describe("Total rewards pending for the requested wallet, including rewards which may be directly claimable or paid indirectly through automation to this wallet."),
@@ -109,7 +112,7 @@ var HotspotsDataSchema = z.object({
109
112
  page: z.number(),
110
113
  totalPages: z.number()
111
114
  });
112
- var ClaimRewardsOutputSchema = createTransactionResponse();
115
+ var ClaimRewardsOutputSchema = createPaginatedTransactionResponse();
113
116
  var TransferHotspotOutputSchema = createTransactionResponse();
114
117
  var UpdateRewardsDestinationOutputSchema = createTransactionResponse();
115
118
  var CreateSplitOutputSchema = createTransactionResponse();
@@ -227,4 +230,4 @@ var UpdateHotspotInfoOutputSchema = createTransactionResponse().extend({
227
230
  })
228
231
  });
229
232
 
230
- export { AutomationScheduleSchema, AutomationStatusOutputSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetSplitInputSchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, OwnershipTypeSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitResponseSchema, SplitShareSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema };
233
+ export { AutomationScheduleSchema, AutomationStatusOutputSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetSplitInputSchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, OwnershipTypeSchema, RewardNetworkSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitResponseSchema, SplitShareSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema };