@b3dotfun/sdk 0.0.18 → 0.0.19-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +29 -51
  2. package/dist/cjs/anyspend/react/components/AnySpend.js +21 -3
  3. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +0 -1
  4. package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
  5. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +0 -1
  6. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -1
  7. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
  8. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +0 -4
  9. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +1 -1
  10. package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
  11. package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +4 -4
  12. package/dist/cjs/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
  13. package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +2 -3
  14. package/dist/cjs/anyspend/services/anyspend.d.ts +1 -1
  15. package/dist/cjs/anyspend/services/anyspend.js +1 -2
  16. package/dist/cjs/anyspend/types/api.d.ts +1 -16
  17. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
  18. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +2 -2
  19. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +3 -1
  20. package/dist/cjs/global-account/react/components/index.d.ts +1 -0
  21. package/dist/cjs/global-account/react/components/index.js +4 -2
  22. package/dist/cjs/global-account/react/components/ui/Loading.js +1 -1
  23. package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
  24. package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.js +360 -313
  25. package/dist/cjs/shared/thirdweb/generated/client.gen.d.ts +2 -2
  26. package/dist/cjs/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
  27. package/dist/cjs/shared/thirdweb/generated/sdk.gen.js +398 -398
  28. package/dist/cjs/shared/thirdweb/generated/types.gen.d.ts +135 -135
  29. package/dist/esm/anyspend/react/components/AnySpend.js +21 -3
  30. package/dist/esm/anyspend/react/components/AnySpendCustom.js +0 -1
  31. package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
  32. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +0 -1
  33. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -1
  34. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
  35. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +0 -4
  36. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +1 -1
  37. package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
  38. package/dist/esm/anyspend/react/hooks/useStripeSupport.js +4 -4
  39. package/dist/esm/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
  40. package/dist/esm/anyspend/react/providers/AnyspendProvider.js +2 -3
  41. package/dist/esm/anyspend/services/anyspend.d.ts +1 -1
  42. package/dist/esm/anyspend/services/anyspend.js +1 -2
  43. package/dist/esm/anyspend/types/api.d.ts +1 -16
  44. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
  45. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +3 -3
  46. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +3 -1
  47. package/dist/esm/global-account/react/components/index.d.ts +1 -0
  48. package/dist/esm/global-account/react/components/index.js +1 -0
  49. package/dist/esm/global-account/react/components/ui/Loading.js +1 -1
  50. package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
  51. package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.js +363 -316
  52. package/dist/esm/shared/thirdweb/generated/client.gen.d.ts +2 -2
  53. package/dist/esm/shared/thirdweb/generated/client.gen.js +1 -1
  54. package/dist/esm/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
  55. package/dist/esm/shared/thirdweb/generated/sdk.gen.js +399 -399
  56. package/dist/esm/shared/thirdweb/generated/types.gen.d.ts +135 -135
  57. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
  58. package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
  59. package/dist/types/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
  60. package/dist/types/anyspend/services/anyspend.d.ts +1 -1
  61. package/dist/types/anyspend/types/api.d.ts +1 -16
  62. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
  63. package/dist/types/global-account/react/components/index.d.ts +1 -0
  64. package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
  65. package/dist/types/shared/thirdweb/generated/client.gen.d.ts +2 -2
  66. package/dist/types/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
  67. package/dist/types/shared/thirdweb/generated/types.gen.d.ts +135 -135
  68. package/package.json +2 -2
  69. package/src/anyspend/react/components/AnySpend.tsx +25 -7
  70. package/src/anyspend/react/components/AnySpendCustom.tsx +0 -1
  71. package/src/anyspend/react/components/common/FiatPaymentMethod.tsx +2 -2
  72. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +0 -1
  73. package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +0 -1
  74. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +0 -6
  75. package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +0 -1
  76. package/src/anyspend/react/hooks/useStripeSupport.ts +3 -4
  77. package/src/anyspend/react/providers/AnyspendProvider.tsx +5 -9
  78. package/src/anyspend/services/anyspend.ts +0 -2
  79. package/src/anyspend/types/api.ts +1 -16
  80. package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +1 -0
  81. package/src/global-account/react/components/B3Provider/B3Provider.tsx +11 -5
  82. package/src/global-account/react/components/index.ts +1 -0
  83. package/src/global-account/react/components/ui/Loading.tsx +1 -1
  84. package/src/shared/thirdweb/generated/@tanstack/react-query.gen.ts +1886 -1220
  85. package/src/shared/thirdweb/generated/client.gen.ts +11 -4
  86. package/src/shared/thirdweb/generated/sdk.gen.ts +1083 -809
  87. package/src/shared/thirdweb/generated/types.gen.ts +3953 -3862
  88. /package/dist/cjs/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
  89. /package/dist/cjs/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.js +0 -0
  90. /package/dist/esm/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
  91. /package/dist/esm/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.js +0 -0
  92. /package/dist/types/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
  93. /package/src/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.tsx +0 -0
@@ -1,163 +1,295 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- import type { Client, Options as ClientOptions, TDataShape } from '@hey-api/client-fetch';
4
- import { client as _heyApiClient } from './client.gen';
5
- import type { DeleteV1WebhooksByWebhookIdData, DeleteV1WebhooksByWebhookIdError, DeleteV1WebhooksByWebhookIdResponse, GetV1BlocksData, GetV1BlocksError, GetV1BlocksResponse, GetV1ContractsAbiByContractAddressData, GetV1ContractsAbiByContractAddressError, GetV1ContractsAbiByContractAddressResponse, GetV1ContractsMetadataByContractAddressData, GetV1ContractsMetadataByContractAddressError, GetV1ContractsMetadataByContractAddressResponse, GetV1EventsByContractAddressBySignatureData, GetV1EventsByContractAddressBySignatureError, GetV1EventsByContractAddressBySignatureResponse, GetV1EventsByContractAddressData, GetV1EventsByContractAddressError, GetV1EventsByContractAddressResponse, GetV1EventsData, GetV1EventsError, GetV1EventsResponse, GetV1NftsBalanceByOwnerAddressData, GetV1NftsBalanceByOwnerAddressResponse, GetV1NftsByContractAddressByTokenIdData, GetV1NftsByContractAddressByTokenIdError, GetV1NftsByContractAddressByTokenIdResponse, GetV1NftsByContractAddressData, GetV1NftsByContractAddressError, GetV1NftsByContractAddressResponse, GetV1NftsCollectionsByContractAddressData, GetV1NftsCollectionsByContractAddressError, GetV1NftsCollectionsByContractAddressResponse, GetV1NftsData, GetV1NftsError, GetV1NftsMetadataRefreshByContractAddressByTokenIdData, GetV1NftsMetadataRefreshByContractAddressByTokenIdError, GetV1NftsMetadataRefreshByContractAddressByTokenIdResponse, GetV1NftsMetadataRefreshByContractAddressData, GetV1NftsMetadataRefreshByContractAddressError, GetV1NftsMetadataRefreshByContractAddressResponse, GetV1NftsOwnersByContractAddressByTokenIdData, GetV1NftsOwnersByContractAddressByTokenIdError, GetV1NftsOwnersByContractAddressByTokenIdResponse, GetV1NftsOwnersByContractAddressData, GetV1NftsOwnersByContractAddressError, GetV1NftsOwnersByContractAddressResponse, GetV1NftsResponse, GetV1NftsTransfersByContractAddressByTokenIdData, GetV1NftsTransfersByContractAddressByTokenIdError, GetV1NftsTransfersByContractAddressByTokenIdResponse, GetV1NftsTransfersByContractAddressData, GetV1NftsTransfersByContractAddressError, GetV1NftsTransfersByContractAddressResponse, GetV1NftsTransfersData, GetV1NftsTransfersError, GetV1NftsTransfersResponse, GetV1NftsTransfersTransactionByTransactionHashData, GetV1NftsTransfersTransactionByTransactionHashError, GetV1NftsTransfersTransactionByTransactionHashResponse, GetV1ResolveByInputData, GetV1ResolveByInputError, GetV1ResolveByInputResponse, GetV1TokensErc1155ByOwnerAddressData, GetV1TokensErc1155ByOwnerAddressResponse, GetV1TokensErc20ByOwnerAddressData, GetV1TokensErc20ByOwnerAddressResponse, GetV1TokensErc721ByOwnerAddressData, GetV1TokensErc721ByOwnerAddressResponse, GetV1TokensLookupData, GetV1TokensLookupResponse, GetV1TokensPriceData, GetV1TokensPriceResponse, GetV1TokensPriceSupportedData, GetV1TokensPriceSupportedResponse, GetV1TokensTransfersByContractAddressData, GetV1TokensTransfersByContractAddressError, GetV1TokensTransfersByContractAddressResponse, GetV1TokensTransfersData, GetV1TokensTransfersError, GetV1TokensTransfersResponse, GetV1TokensTransfersTransactionByTransactionHashData, GetV1TokensTransfersTransactionByTransactionHashError, GetV1TokensTransfersTransactionByTransactionHashResponse, GetV1TransactionsByContractAddressBySignatureData, GetV1TransactionsByContractAddressBySignatureError, GetV1TransactionsByContractAddressBySignatureResponse, GetV1TransactionsByContractAddressData, GetV1TransactionsByContractAddressError, GetV1TransactionsByContractAddressResponse, GetV1TransactionsData, GetV1TransactionsError, GetV1TransactionsResponse, GetV1WalletsByWalletAddressTransactionsData, GetV1WalletsByWalletAddressTransactionsError, GetV1WalletsByWalletAddressTransactionsResponse, GetV1WebhooksData, GetV1WebhooksError, GetV1WebhooksResponse, PatchV1WebhooksByWebhookIdData, PatchV1WebhooksByWebhookIdError, PatchV1WebhooksByWebhookIdResponse, PostV1DecodeByContractAddressData, PostV1DecodeByContractAddressError, PostV1DecodeByContractAddressResponse, PostV1WebhooksData, PostV1WebhooksError, PostV1WebhooksResponse, PostV1WebhooksTestData, PostV1WebhooksTestError, PostV1WebhooksTestResponse } from './types.gen';
3
+ import type { Client, Options as ClientOptions, TDataShape } from "@hey-api/client-fetch";
4
+ import { client as _heyApiClient } from "./client.gen";
5
+ import type {
6
+ DeleteV1WebhooksByWebhookIdData,
7
+ DeleteV1WebhooksByWebhookIdError,
8
+ DeleteV1WebhooksByWebhookIdResponse,
9
+ GetV1BlocksData,
10
+ GetV1BlocksError,
11
+ GetV1BlocksResponse,
12
+ GetV1ContractsAbiByContractAddressData,
13
+ GetV1ContractsAbiByContractAddressError,
14
+ GetV1ContractsAbiByContractAddressResponse,
15
+ GetV1ContractsMetadataByContractAddressData,
16
+ GetV1ContractsMetadataByContractAddressError,
17
+ GetV1ContractsMetadataByContractAddressResponse,
18
+ GetV1EventsByContractAddressBySignatureData,
19
+ GetV1EventsByContractAddressBySignatureError,
20
+ GetV1EventsByContractAddressBySignatureResponse,
21
+ GetV1EventsByContractAddressData,
22
+ GetV1EventsByContractAddressError,
23
+ GetV1EventsByContractAddressResponse,
24
+ GetV1EventsData,
25
+ GetV1EventsError,
26
+ GetV1EventsResponse,
27
+ GetV1NftsBalanceByOwnerAddressData,
28
+ GetV1NftsBalanceByOwnerAddressResponse,
29
+ GetV1NftsByContractAddressByTokenIdData,
30
+ GetV1NftsByContractAddressByTokenIdError,
31
+ GetV1NftsByContractAddressByTokenIdResponse,
32
+ GetV1NftsByContractAddressData,
33
+ GetV1NftsByContractAddressError,
34
+ GetV1NftsByContractAddressResponse,
35
+ GetV1NftsCollectionsByContractAddressData,
36
+ GetV1NftsCollectionsByContractAddressError,
37
+ GetV1NftsCollectionsByContractAddressResponse,
38
+ GetV1NftsData,
39
+ GetV1NftsError,
40
+ GetV1NftsMetadataRefreshByContractAddressByTokenIdData,
41
+ GetV1NftsMetadataRefreshByContractAddressByTokenIdError,
42
+ GetV1NftsMetadataRefreshByContractAddressByTokenIdResponse,
43
+ GetV1NftsMetadataRefreshByContractAddressData,
44
+ GetV1NftsMetadataRefreshByContractAddressError,
45
+ GetV1NftsMetadataRefreshByContractAddressResponse,
46
+ GetV1NftsOwnersByContractAddressByTokenIdData,
47
+ GetV1NftsOwnersByContractAddressByTokenIdError,
48
+ GetV1NftsOwnersByContractAddressByTokenIdResponse,
49
+ GetV1NftsOwnersByContractAddressData,
50
+ GetV1NftsOwnersByContractAddressError,
51
+ GetV1NftsOwnersByContractAddressResponse,
52
+ GetV1NftsResponse,
53
+ GetV1NftsTransfersByContractAddressByTokenIdData,
54
+ GetV1NftsTransfersByContractAddressByTokenIdError,
55
+ GetV1NftsTransfersByContractAddressByTokenIdResponse,
56
+ GetV1NftsTransfersByContractAddressData,
57
+ GetV1NftsTransfersByContractAddressError,
58
+ GetV1NftsTransfersByContractAddressResponse,
59
+ GetV1NftsTransfersData,
60
+ GetV1NftsTransfersError,
61
+ GetV1NftsTransfersResponse,
62
+ GetV1NftsTransfersTransactionByTransactionHashData,
63
+ GetV1NftsTransfersTransactionByTransactionHashError,
64
+ GetV1NftsTransfersTransactionByTransactionHashResponse,
65
+ GetV1ResolveByInputData,
66
+ GetV1ResolveByInputError,
67
+ GetV1ResolveByInputResponse,
68
+ GetV1TokensErc1155ByOwnerAddressData,
69
+ GetV1TokensErc1155ByOwnerAddressResponse,
70
+ GetV1TokensErc20ByOwnerAddressData,
71
+ GetV1TokensErc20ByOwnerAddressResponse,
72
+ GetV1TokensErc721ByOwnerAddressData,
73
+ GetV1TokensErc721ByOwnerAddressResponse,
74
+ GetV1TokensLookupData,
75
+ GetV1TokensLookupResponse,
76
+ GetV1TokensPriceData,
77
+ GetV1TokensPriceResponse,
78
+ GetV1TokensPriceSupportedData,
79
+ GetV1TokensPriceSupportedResponse,
80
+ GetV1TokensTransfersByContractAddressData,
81
+ GetV1TokensTransfersByContractAddressError,
82
+ GetV1TokensTransfersByContractAddressResponse,
83
+ GetV1TokensTransfersData,
84
+ GetV1TokensTransfersError,
85
+ GetV1TokensTransfersResponse,
86
+ GetV1TokensTransfersTransactionByTransactionHashData,
87
+ GetV1TokensTransfersTransactionByTransactionHashError,
88
+ GetV1TokensTransfersTransactionByTransactionHashResponse,
89
+ GetV1TransactionsByContractAddressBySignatureData,
90
+ GetV1TransactionsByContractAddressBySignatureError,
91
+ GetV1TransactionsByContractAddressBySignatureResponse,
92
+ GetV1TransactionsByContractAddressData,
93
+ GetV1TransactionsByContractAddressError,
94
+ GetV1TransactionsByContractAddressResponse,
95
+ GetV1TransactionsData,
96
+ GetV1TransactionsError,
97
+ GetV1TransactionsResponse,
98
+ GetV1WalletsByWalletAddressTransactionsData,
99
+ GetV1WalletsByWalletAddressTransactionsError,
100
+ GetV1WalletsByWalletAddressTransactionsResponse,
101
+ GetV1WebhooksData,
102
+ GetV1WebhooksError,
103
+ GetV1WebhooksResponse,
104
+ PatchV1WebhooksByWebhookIdData,
105
+ PatchV1WebhooksByWebhookIdError,
106
+ PatchV1WebhooksByWebhookIdResponse,
107
+ PostV1DecodeByContractAddressData,
108
+ PostV1DecodeByContractAddressError,
109
+ PostV1DecodeByContractAddressResponse,
110
+ PostV1WebhooksData,
111
+ PostV1WebhooksError,
112
+ PostV1WebhooksResponse,
113
+ PostV1WebhooksTestData,
114
+ PostV1WebhooksTestError,
115
+ PostV1WebhooksTestResponse,
116
+ } from "./types.gen";
6
117
 
7
- export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
8
- /**
9
- * You can provide a client instance returned by `createClient()` instead of
10
- * individual options. This might be also useful if you want to implement a
11
- * custom client.
12
- */
13
- client?: Client;
14
- /**
15
- * You can pass arbitrary values through the `meta` object. This can be
16
- * used to access values that aren't defined as part of the SDK function.
17
- */
18
- meta?: Record<string, unknown>;
118
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<
119
+ TData,
120
+ ThrowOnError
121
+ > & {
122
+ /**
123
+ * You can provide a client instance returned by `createClient()` instead of
124
+ * individual options. This might be also useful if you want to implement a
125
+ * custom client.
126
+ */
127
+ client?: Client;
128
+ /**
129
+ * You can pass arbitrary values through the `meta` object. This can be
130
+ * used to access values that aren't defined as part of the SDK function.
131
+ */
132
+ meta?: Record<string, unknown>;
19
133
  };
20
134
 
21
135
  /**
22
136
  * Get webhooks
23
137
  * Get a list of webhooks or a single webhook by ID
24
138
  */
25
- export const getV1Webhooks = <ThrowOnError extends boolean = false>(options?: Options<GetV1WebhooksData, ThrowOnError>) => {
26
- return (options?.client ?? _heyApiClient).get<GetV1WebhooksResponse, GetV1WebhooksError, ThrowOnError>({
27
- security: [
28
- {
29
- name: 'x-client-id',
30
- type: 'apiKey'
31
- },
32
- {
33
- scheme: 'bearer',
34
- type: 'http'
35
- },
36
- {
37
- in: 'query',
38
- name: 'clientId',
39
- type: 'apiKey'
40
- }
41
- ],
42
- url: '/v1/webhooks',
43
- ...options
44
- });
139
+ export const getV1Webhooks = <ThrowOnError extends boolean = false>(
140
+ options?: Options<GetV1WebhooksData, ThrowOnError>,
141
+ ) => {
142
+ return (options?.client ?? _heyApiClient).get<GetV1WebhooksResponse, GetV1WebhooksError, ThrowOnError>({
143
+ security: [
144
+ {
145
+ name: "x-client-id",
146
+ type: "apiKey",
147
+ },
148
+ {
149
+ scheme: "bearer",
150
+ type: "http",
151
+ },
152
+ {
153
+ in: "query",
154
+ name: "clientId",
155
+ type: "apiKey",
156
+ },
157
+ ],
158
+ url: "/v1/webhooks",
159
+ ...options,
160
+ });
45
161
  };
46
162
 
47
163
  /**
48
164
  * Create webhook
49
165
  * Create a new webhook. In order to receive decoded data, specify a partial ABI in the filters.
50
166
  */
51
- export const postV1Webhooks = <ThrowOnError extends boolean = false>(options?: Options<PostV1WebhooksData, ThrowOnError>) => {
52
- return (options?.client ?? _heyApiClient).post<PostV1WebhooksResponse, PostV1WebhooksError, ThrowOnError>({
53
- security: [
54
- {
55
- name: 'x-client-id',
56
- type: 'apiKey'
57
- },
58
- {
59
- scheme: 'bearer',
60
- type: 'http'
61
- },
62
- {
63
- in: 'query',
64
- name: 'clientId',
65
- type: 'apiKey'
66
- }
67
- ],
68
- url: '/v1/webhooks',
69
- ...options,
70
- headers: {
71
- 'Content-Type': 'application/json',
72
- ...options?.headers
73
- }
74
- });
167
+ export const postV1Webhooks = <ThrowOnError extends boolean = false>(
168
+ options?: Options<PostV1WebhooksData, ThrowOnError>,
169
+ ) => {
170
+ return (options?.client ?? _heyApiClient).post<PostV1WebhooksResponse, PostV1WebhooksError, ThrowOnError>({
171
+ security: [
172
+ {
173
+ name: "x-client-id",
174
+ type: "apiKey",
175
+ },
176
+ {
177
+ scheme: "bearer",
178
+ type: "http",
179
+ },
180
+ {
181
+ in: "query",
182
+ name: "clientId",
183
+ type: "apiKey",
184
+ },
185
+ ],
186
+ url: "/v1/webhooks",
187
+ ...options,
188
+ headers: {
189
+ "Content-Type": "application/json",
190
+ ...options?.headers,
191
+ },
192
+ });
75
193
  };
76
194
 
77
195
  /**
78
196
  * Delete webhook
79
197
  * Delete a webhook. This action cannot be undone.
80
198
  */
81
- export const deleteV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(options: Options<DeleteV1WebhooksByWebhookIdData, ThrowOnError>) => {
82
- return (options.client ?? _heyApiClient).delete<DeleteV1WebhooksByWebhookIdResponse, DeleteV1WebhooksByWebhookIdError, ThrowOnError>({
83
- security: [
84
- {
85
- name: 'x-client-id',
86
- type: 'apiKey'
87
- },
88
- {
89
- scheme: 'bearer',
90
- type: 'http'
91
- },
92
- {
93
- in: 'query',
94
- name: 'clientId',
95
- type: 'apiKey'
96
- }
97
- ],
98
- url: '/v1/webhooks/{webhook_id}',
99
- ...options
100
- });
199
+ export const deleteV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(
200
+ options: Options<DeleteV1WebhooksByWebhookIdData, ThrowOnError>,
201
+ ) => {
202
+ return (options.client ?? _heyApiClient).delete<
203
+ DeleteV1WebhooksByWebhookIdResponse,
204
+ DeleteV1WebhooksByWebhookIdError,
205
+ ThrowOnError
206
+ >({
207
+ security: [
208
+ {
209
+ name: "x-client-id",
210
+ type: "apiKey",
211
+ },
212
+ {
213
+ scheme: "bearer",
214
+ type: "http",
215
+ },
216
+ {
217
+ in: "query",
218
+ name: "clientId",
219
+ type: "apiKey",
220
+ },
221
+ ],
222
+ url: "/v1/webhooks/{webhook_id}",
223
+ ...options,
224
+ });
101
225
  };
102
226
 
103
227
  /**
104
228
  * Update webhook
105
229
  * Update a webhook.
106
230
  */
107
- export const patchV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(options: Options<PatchV1WebhooksByWebhookIdData, ThrowOnError>) => {
108
- return (options.client ?? _heyApiClient).patch<PatchV1WebhooksByWebhookIdResponse, PatchV1WebhooksByWebhookIdError, ThrowOnError>({
109
- security: [
110
- {
111
- name: 'x-client-id',
112
- type: 'apiKey'
113
- },
114
- {
115
- scheme: 'bearer',
116
- type: 'http'
117
- },
118
- {
119
- in: 'query',
120
- name: 'clientId',
121
- type: 'apiKey'
122
- }
123
- ],
124
- url: '/v1/webhooks/{webhook_id}',
125
- ...options,
126
- headers: {
127
- 'Content-Type': 'application/json',
128
- ...options?.headers
129
- }
130
- });
231
+ export const patchV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(
232
+ options: Options<PatchV1WebhooksByWebhookIdData, ThrowOnError>,
233
+ ) => {
234
+ return (options.client ?? _heyApiClient).patch<
235
+ PatchV1WebhooksByWebhookIdResponse,
236
+ PatchV1WebhooksByWebhookIdError,
237
+ ThrowOnError
238
+ >({
239
+ security: [
240
+ {
241
+ name: "x-client-id",
242
+ type: "apiKey",
243
+ },
244
+ {
245
+ scheme: "bearer",
246
+ type: "http",
247
+ },
248
+ {
249
+ in: "query",
250
+ name: "clientId",
251
+ type: "apiKey",
252
+ },
253
+ ],
254
+ url: "/v1/webhooks/{webhook_id}",
255
+ ...options,
256
+ headers: {
257
+ "Content-Type": "application/json",
258
+ ...options?.headers,
259
+ },
260
+ });
131
261
  };
132
262
 
133
263
  /**
134
264
  * Test webhook
135
265
  * Test your webhook URL. This will send a test event to the webhook URL signed with an example secret 'test123'. NB! The payload does not necessarily match your webhook filters. You can however use it to test signature verification and payload format handling.
136
266
  */
137
- export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(options?: Options<PostV1WebhooksTestData, ThrowOnError>) => {
138
- return (options?.client ?? _heyApiClient).post<PostV1WebhooksTestResponse, PostV1WebhooksTestError, ThrowOnError>({
139
- security: [
140
- {
141
- name: 'x-client-id',
142
- type: 'apiKey'
143
- },
144
- {
145
- scheme: 'bearer',
146
- type: 'http'
147
- },
148
- {
149
- in: 'query',
150
- name: 'clientId',
151
- type: 'apiKey'
152
- }
153
- ],
154
- url: '/v1/webhooks/test',
155
- ...options,
156
- headers: {
157
- 'Content-Type': 'application/json',
158
- ...options?.headers
159
- }
160
- });
267
+ export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(
268
+ options?: Options<PostV1WebhooksTestData, ThrowOnError>,
269
+ ) => {
270
+ return (options?.client ?? _heyApiClient).post<PostV1WebhooksTestResponse, PostV1WebhooksTestError, ThrowOnError>({
271
+ security: [
272
+ {
273
+ name: "x-client-id",
274
+ type: "apiKey",
275
+ },
276
+ {
277
+ scheme: "bearer",
278
+ type: "http",
279
+ },
280
+ {
281
+ in: "query",
282
+ name: "clientId",
283
+ type: "apiKey",
284
+ },
285
+ ],
286
+ url: "/v1/webhooks/test",
287
+ ...options,
288
+ headers: {
289
+ "Content-Type": "application/json",
290
+ ...options?.headers,
291
+ },
292
+ });
161
293
  };
162
294
 
163
295
  /**
@@ -165,259 +297,301 @@ export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(options
165
297
  * Get events
166
298
  */
167
299
  export const getV1Events = <ThrowOnError extends boolean = false>(options?: Options<GetV1EventsData, ThrowOnError>) => {
168
- return (options?.client ?? _heyApiClient).get<GetV1EventsResponse, GetV1EventsError, ThrowOnError>({
169
- security: [
170
- {
171
- name: 'x-client-id',
172
- type: 'apiKey'
173
- },
174
- {
175
- scheme: 'bearer',
176
- type: 'http'
177
- },
178
- {
179
- in: 'query',
180
- name: 'clientId',
181
- type: 'apiKey'
182
- }
183
- ],
184
- url: '/v1/events',
185
- ...options
186
- });
300
+ return (options?.client ?? _heyApiClient).get<GetV1EventsResponse, GetV1EventsError, ThrowOnError>({
301
+ security: [
302
+ {
303
+ name: "x-client-id",
304
+ type: "apiKey",
305
+ },
306
+ {
307
+ scheme: "bearer",
308
+ type: "http",
309
+ },
310
+ {
311
+ in: "query",
312
+ name: "clientId",
313
+ type: "apiKey",
314
+ },
315
+ ],
316
+ url: "/v1/events",
317
+ ...options,
318
+ });
187
319
  };
188
320
 
189
321
  /**
190
322
  * Get contract events
191
323
  * Get contract events
192
324
  */
193
- export const getV1EventsByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1EventsByContractAddressData, ThrowOnError>) => {
194
- return (options.client ?? _heyApiClient).get<GetV1EventsByContractAddressResponse, GetV1EventsByContractAddressError, ThrowOnError>({
195
- security: [
196
- {
197
- name: 'x-client-id',
198
- type: 'apiKey'
199
- },
200
- {
201
- scheme: 'bearer',
202
- type: 'http'
203
- },
204
- {
205
- in: 'query',
206
- name: 'clientId',
207
- type: 'apiKey'
208
- }
209
- ],
210
- url: '/v1/events/{contractAddress}',
211
- ...options
212
- });
325
+ export const getV1EventsByContractAddress = <ThrowOnError extends boolean = false>(
326
+ options: Options<GetV1EventsByContractAddressData, ThrowOnError>,
327
+ ) => {
328
+ return (options.client ?? _heyApiClient).get<
329
+ GetV1EventsByContractAddressResponse,
330
+ GetV1EventsByContractAddressError,
331
+ ThrowOnError
332
+ >({
333
+ security: [
334
+ {
335
+ name: "x-client-id",
336
+ type: "apiKey",
337
+ },
338
+ {
339
+ scheme: "bearer",
340
+ type: "http",
341
+ },
342
+ {
343
+ in: "query",
344
+ name: "clientId",
345
+ type: "apiKey",
346
+ },
347
+ ],
348
+ url: "/v1/events/{contractAddress}",
349
+ ...options,
350
+ });
213
351
  };
214
352
 
215
353
  /**
216
354
  * Get contract events with specific signature
217
355
  * Get specific contract events
218
356
  */
219
- export const getV1EventsByContractAddressBySignature = <ThrowOnError extends boolean = false>(options: Options<GetV1EventsByContractAddressBySignatureData, ThrowOnError>) => {
220
- return (options.client ?? _heyApiClient).get<GetV1EventsByContractAddressBySignatureResponse, GetV1EventsByContractAddressBySignatureError, ThrowOnError>({
221
- security: [
222
- {
223
- name: 'x-client-id',
224
- type: 'apiKey'
225
- },
226
- {
227
- scheme: 'bearer',
228
- type: 'http'
229
- },
230
- {
231
- in: 'query',
232
- name: 'clientId',
233
- type: 'apiKey'
234
- }
235
- ],
236
- url: '/v1/events/{contractAddress}/{signature}',
237
- ...options
238
- });
357
+ export const getV1EventsByContractAddressBySignature = <ThrowOnError extends boolean = false>(
358
+ options: Options<GetV1EventsByContractAddressBySignatureData, ThrowOnError>,
359
+ ) => {
360
+ return (options.client ?? _heyApiClient).get<
361
+ GetV1EventsByContractAddressBySignatureResponse,
362
+ GetV1EventsByContractAddressBySignatureError,
363
+ ThrowOnError
364
+ >({
365
+ security: [
366
+ {
367
+ name: "x-client-id",
368
+ type: "apiKey",
369
+ },
370
+ {
371
+ scheme: "bearer",
372
+ type: "http",
373
+ },
374
+ {
375
+ in: "query",
376
+ name: "clientId",
377
+ type: "apiKey",
378
+ },
379
+ ],
380
+ url: "/v1/events/{contractAddress}/{signature}",
381
+ ...options,
382
+ });
239
383
  };
240
384
 
241
385
  /**
242
386
  * Get transactions
243
387
  * Get transactions
244
388
  */
245
- export const getV1Transactions = <ThrowOnError extends boolean = false>(options?: Options<GetV1TransactionsData, ThrowOnError>) => {
246
- return (options?.client ?? _heyApiClient).get<GetV1TransactionsResponse, GetV1TransactionsError, ThrowOnError>({
247
- security: [
248
- {
249
- name: 'x-client-id',
250
- type: 'apiKey'
251
- },
252
- {
253
- scheme: 'bearer',
254
- type: 'http'
255
- },
256
- {
257
- in: 'query',
258
- name: 'clientId',
259
- type: 'apiKey'
260
- }
261
- ],
262
- url: '/v1/transactions',
263
- ...options
264
- });
389
+ export const getV1Transactions = <ThrowOnError extends boolean = false>(
390
+ options?: Options<GetV1TransactionsData, ThrowOnError>,
391
+ ) => {
392
+ return (options?.client ?? _heyApiClient).get<GetV1TransactionsResponse, GetV1TransactionsError, ThrowOnError>({
393
+ security: [
394
+ {
395
+ name: "x-client-id",
396
+ type: "apiKey",
397
+ },
398
+ {
399
+ scheme: "bearer",
400
+ type: "http",
401
+ },
402
+ {
403
+ in: "query",
404
+ name: "clientId",
405
+ type: "apiKey",
406
+ },
407
+ ],
408
+ url: "/v1/transactions",
409
+ ...options,
410
+ });
265
411
  };
266
412
 
267
413
  /**
268
414
  * Get contract transactions
269
415
  * Get contract transactions
270
416
  */
271
- export const getV1TransactionsByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1TransactionsByContractAddressData, ThrowOnError>) => {
272
- return (options.client ?? _heyApiClient).get<GetV1TransactionsByContractAddressResponse, GetV1TransactionsByContractAddressError, ThrowOnError>({
273
- security: [
274
- {
275
- name: 'x-client-id',
276
- type: 'apiKey'
277
- },
278
- {
279
- scheme: 'bearer',
280
- type: 'http'
281
- },
282
- {
283
- in: 'query',
284
- name: 'clientId',
285
- type: 'apiKey'
286
- }
287
- ],
288
- url: '/v1/transactions/{contractAddress}',
289
- ...options
290
- });
417
+ export const getV1TransactionsByContractAddress = <ThrowOnError extends boolean = false>(
418
+ options: Options<GetV1TransactionsByContractAddressData, ThrowOnError>,
419
+ ) => {
420
+ return (options.client ?? _heyApiClient).get<
421
+ GetV1TransactionsByContractAddressResponse,
422
+ GetV1TransactionsByContractAddressError,
423
+ ThrowOnError
424
+ >({
425
+ security: [
426
+ {
427
+ name: "x-client-id",
428
+ type: "apiKey",
429
+ },
430
+ {
431
+ scheme: "bearer",
432
+ type: "http",
433
+ },
434
+ {
435
+ in: "query",
436
+ name: "clientId",
437
+ type: "apiKey",
438
+ },
439
+ ],
440
+ url: "/v1/transactions/{contractAddress}",
441
+ ...options,
442
+ });
291
443
  };
292
444
 
293
445
  /**
294
446
  * Get contract transactions with specific signature
295
447
  * Get specific contract transactions
296
448
  */
297
- export const getV1TransactionsByContractAddressBySignature = <ThrowOnError extends boolean = false>(options: Options<GetV1TransactionsByContractAddressBySignatureData, ThrowOnError>) => {
298
- return (options.client ?? _heyApiClient).get<GetV1TransactionsByContractAddressBySignatureResponse, GetV1TransactionsByContractAddressBySignatureError, ThrowOnError>({
299
- security: [
300
- {
301
- name: 'x-client-id',
302
- type: 'apiKey'
303
- },
304
- {
305
- scheme: 'bearer',
306
- type: 'http'
307
- },
308
- {
309
- in: 'query',
310
- name: 'clientId',
311
- type: 'apiKey'
312
- }
313
- ],
314
- url: '/v1/transactions/{contractAddress}/{signature}',
315
- ...options
316
- });
449
+ export const getV1TransactionsByContractAddressBySignature = <ThrowOnError extends boolean = false>(
450
+ options: Options<GetV1TransactionsByContractAddressBySignatureData, ThrowOnError>,
451
+ ) => {
452
+ return (options.client ?? _heyApiClient).get<
453
+ GetV1TransactionsByContractAddressBySignatureResponse,
454
+ GetV1TransactionsByContractAddressBySignatureError,
455
+ ThrowOnError
456
+ >({
457
+ security: [
458
+ {
459
+ name: "x-client-id",
460
+ type: "apiKey",
461
+ },
462
+ {
463
+ scheme: "bearer",
464
+ type: "http",
465
+ },
466
+ {
467
+ in: "query",
468
+ name: "clientId",
469
+ type: "apiKey",
470
+ },
471
+ ],
472
+ url: "/v1/transactions/{contractAddress}/{signature}",
473
+ ...options,
474
+ });
317
475
  };
318
476
 
319
477
  /**
320
478
  * Get token transfers by transaction
321
479
  * Get token transfers by transaction
322
480
  */
323
- export const getV1TokensTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(options: Options<GetV1TokensTransfersTransactionByTransactionHashData, ThrowOnError>) => {
324
- return (options.client ?? _heyApiClient).get<GetV1TokensTransfersTransactionByTransactionHashResponse, GetV1TokensTransfersTransactionByTransactionHashError, ThrowOnError>({
325
- security: [
326
- {
327
- name: 'x-client-id',
328
- type: 'apiKey'
329
- },
330
- {
331
- scheme: 'bearer',
332
- type: 'http'
333
- },
334
- {
335
- in: 'query',
336
- name: 'clientId',
337
- type: 'apiKey'
338
- }
339
- ],
340
- url: '/v1/tokens/transfers/transaction/{transaction_hash}',
341
- ...options
342
- });
481
+ export const getV1TokensTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(
482
+ options: Options<GetV1TokensTransfersTransactionByTransactionHashData, ThrowOnError>,
483
+ ) => {
484
+ return (options.client ?? _heyApiClient).get<
485
+ GetV1TokensTransfersTransactionByTransactionHashResponse,
486
+ GetV1TokensTransfersTransactionByTransactionHashError,
487
+ ThrowOnError
488
+ >({
489
+ security: [
490
+ {
491
+ name: "x-client-id",
492
+ type: "apiKey",
493
+ },
494
+ {
495
+ scheme: "bearer",
496
+ type: "http",
497
+ },
498
+ {
499
+ in: "query",
500
+ name: "clientId",
501
+ type: "apiKey",
502
+ },
503
+ ],
504
+ url: "/v1/tokens/transfers/transaction/{transaction_hash}",
505
+ ...options,
506
+ });
343
507
  };
344
508
 
345
509
  /**
346
510
  * Get token transfers by contract
347
511
  * Get token transfers by contract
348
512
  */
349
- export const getV1TokensTransfersByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1TokensTransfersByContractAddressData, ThrowOnError>) => {
350
- return (options.client ?? _heyApiClient).get<GetV1TokensTransfersByContractAddressResponse, GetV1TokensTransfersByContractAddressError, ThrowOnError>({
351
- security: [
352
- {
353
- name: 'x-client-id',
354
- type: 'apiKey'
355
- },
356
- {
357
- scheme: 'bearer',
358
- type: 'http'
359
- },
360
- {
361
- in: 'query',
362
- name: 'clientId',
363
- type: 'apiKey'
364
- }
365
- ],
366
- url: '/v1/tokens/transfers/{contract_address}',
367
- ...options
368
- });
513
+ export const getV1TokensTransfersByContractAddress = <ThrowOnError extends boolean = false>(
514
+ options: Options<GetV1TokensTransfersByContractAddressData, ThrowOnError>,
515
+ ) => {
516
+ return (options.client ?? _heyApiClient).get<
517
+ GetV1TokensTransfersByContractAddressResponse,
518
+ GetV1TokensTransfersByContractAddressError,
519
+ ThrowOnError
520
+ >({
521
+ security: [
522
+ {
523
+ name: "x-client-id",
524
+ type: "apiKey",
525
+ },
526
+ {
527
+ scheme: "bearer",
528
+ type: "http",
529
+ },
530
+ {
531
+ in: "query",
532
+ name: "clientId",
533
+ type: "apiKey",
534
+ },
535
+ ],
536
+ url: "/v1/tokens/transfers/{contract_address}",
537
+ ...options,
538
+ });
369
539
  };
370
540
 
371
541
  /**
372
542
  * Get token transfers
373
543
  * Get token transfers
374
544
  */
375
- export const getV1TokensTransfers = <ThrowOnError extends boolean = false>(options?: Options<GetV1TokensTransfersData, ThrowOnError>) => {
376
- return (options?.client ?? _heyApiClient).get<GetV1TokensTransfersResponse, GetV1TokensTransfersError, ThrowOnError>({
377
- security: [
378
- {
379
- name: 'x-client-id',
380
- type: 'apiKey'
381
- },
382
- {
383
- scheme: 'bearer',
384
- type: 'http'
385
- },
386
- {
387
- in: 'query',
388
- name: 'clientId',
389
- type: 'apiKey'
390
- }
391
- ],
392
- url: '/v1/tokens/transfers',
393
- ...options
394
- });
545
+ export const getV1TokensTransfers = <ThrowOnError extends boolean = false>(
546
+ options?: Options<GetV1TokensTransfersData, ThrowOnError>,
547
+ ) => {
548
+ return (options?.client ?? _heyApiClient).get<GetV1TokensTransfersResponse, GetV1TokensTransfersError, ThrowOnError>({
549
+ security: [
550
+ {
551
+ name: "x-client-id",
552
+ type: "apiKey",
553
+ },
554
+ {
555
+ scheme: "bearer",
556
+ type: "http",
557
+ },
558
+ {
559
+ in: "query",
560
+ name: "clientId",
561
+ type: "apiKey",
562
+ },
563
+ ],
564
+ url: "/v1/tokens/transfers",
565
+ ...options,
566
+ });
395
567
  };
396
568
 
397
569
  /**
398
570
  * Get ERC-20 balances by address
399
571
  * Get ERC-20 balances for a given address
400
572
  */
401
- export const getV1TokensErc20ByOwnerAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1TokensErc20ByOwnerAddressData, ThrowOnError>) => {
402
- return (options.client ?? _heyApiClient).get<GetV1TokensErc20ByOwnerAddressResponse, unknown, ThrowOnError>({
403
- security: [
404
- {
405
- name: 'x-client-id',
406
- type: 'apiKey'
407
- },
408
- {
409
- scheme: 'bearer',
410
- type: 'http'
411
- },
412
- {
413
- in: 'query',
414
- name: 'clientId',
415
- type: 'apiKey'
416
- }
417
- ],
418
- url: '/v1/tokens/erc20/{ownerAddress}',
419
- ...options
420
- });
573
+ export const getV1TokensErc20ByOwnerAddress = <ThrowOnError extends boolean = false>(
574
+ options: Options<GetV1TokensErc20ByOwnerAddressData, ThrowOnError>,
575
+ ) => {
576
+ return (options.client ?? _heyApiClient).get<GetV1TokensErc20ByOwnerAddressResponse, unknown, ThrowOnError>({
577
+ security: [
578
+ {
579
+ name: "x-client-id",
580
+ type: "apiKey",
581
+ },
582
+ {
583
+ scheme: "bearer",
584
+ type: "http",
585
+ },
586
+ {
587
+ in: "query",
588
+ name: "clientId",
589
+ type: "apiKey",
590
+ },
591
+ ],
592
+ url: "/v1/tokens/erc20/{ownerAddress}",
593
+ ...options,
594
+ });
421
595
  };
422
596
 
423
597
  /**
@@ -425,26 +599,28 @@ export const getV1TokensErc20ByOwnerAddress = <ThrowOnError extends boolean = fa
425
599
  * Get ERC-721 balances by address
426
600
  * Get ERC-721 (NFT) balances for a given address [BEING DEPRECATED IN FAVOR OF /nfts/balance]
427
601
  */
428
- export const getV1TokensErc721ByOwnerAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1TokensErc721ByOwnerAddressData, ThrowOnError>) => {
429
- return (options.client ?? _heyApiClient).get<GetV1TokensErc721ByOwnerAddressResponse, unknown, ThrowOnError>({
430
- security: [
431
- {
432
- name: 'x-client-id',
433
- type: 'apiKey'
434
- },
435
- {
436
- scheme: 'bearer',
437
- type: 'http'
438
- },
439
- {
440
- in: 'query',
441
- name: 'clientId',
442
- type: 'apiKey'
443
- }
444
- ],
445
- url: '/v1/tokens/erc721/{ownerAddress}',
446
- ...options
447
- });
602
+ export const getV1TokensErc721ByOwnerAddress = <ThrowOnError extends boolean = false>(
603
+ options: Options<GetV1TokensErc721ByOwnerAddressData, ThrowOnError>,
604
+ ) => {
605
+ return (options.client ?? _heyApiClient).get<GetV1TokensErc721ByOwnerAddressResponse, unknown, ThrowOnError>({
606
+ security: [
607
+ {
608
+ name: "x-client-id",
609
+ type: "apiKey",
610
+ },
611
+ {
612
+ scheme: "bearer",
613
+ type: "http",
614
+ },
615
+ {
616
+ in: "query",
617
+ name: "clientId",
618
+ type: "apiKey",
619
+ },
620
+ ],
621
+ url: "/v1/tokens/erc721/{ownerAddress}",
622
+ ...options,
623
+ });
448
624
  };
449
625
 
450
626
  /**
@@ -452,130 +628,140 @@ export const getV1TokensErc721ByOwnerAddress = <ThrowOnError extends boolean = f
452
628
  * Get ERC-1155 balances by address
453
629
  * Get ERC-1155 (Multi Token) balances for a given address [BEING DEPRECATED IN FAVOR OF /nfts/balance]
454
630
  */
455
- export const getV1TokensErc1155ByOwnerAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1TokensErc1155ByOwnerAddressData, ThrowOnError>) => {
456
- return (options.client ?? _heyApiClient).get<GetV1TokensErc1155ByOwnerAddressResponse, unknown, ThrowOnError>({
457
- security: [
458
- {
459
- name: 'x-client-id',
460
- type: 'apiKey'
461
- },
462
- {
463
- scheme: 'bearer',
464
- type: 'http'
465
- },
466
- {
467
- in: 'query',
468
- name: 'clientId',
469
- type: 'apiKey'
470
- }
471
- ],
472
- url: '/v1/tokens/erc1155/{ownerAddress}',
473
- ...options
474
- });
631
+ export const getV1TokensErc1155ByOwnerAddress = <ThrowOnError extends boolean = false>(
632
+ options: Options<GetV1TokensErc1155ByOwnerAddressData, ThrowOnError>,
633
+ ) => {
634
+ return (options.client ?? _heyApiClient).get<GetV1TokensErc1155ByOwnerAddressResponse, unknown, ThrowOnError>({
635
+ security: [
636
+ {
637
+ name: "x-client-id",
638
+ type: "apiKey",
639
+ },
640
+ {
641
+ scheme: "bearer",
642
+ type: "http",
643
+ },
644
+ {
645
+ in: "query",
646
+ name: "clientId",
647
+ type: "apiKey",
648
+ },
649
+ ],
650
+ url: "/v1/tokens/erc1155/{ownerAddress}",
651
+ ...options,
652
+ });
475
653
  };
476
654
 
477
655
  /**
478
656
  * Get supported tokens for price data
479
657
  * Get supported tokens for price data
480
658
  */
481
- export const getV1TokensPriceSupported = <ThrowOnError extends boolean = false>(options?: Options<GetV1TokensPriceSupportedData, ThrowOnError>) => {
482
- return (options?.client ?? _heyApiClient).get<GetV1TokensPriceSupportedResponse, unknown, ThrowOnError>({
483
- security: [
484
- {
485
- name: 'x-client-id',
486
- type: 'apiKey'
487
- },
488
- {
489
- scheme: 'bearer',
490
- type: 'http'
491
- },
492
- {
493
- in: 'query',
494
- name: 'clientId',
495
- type: 'apiKey'
496
- }
497
- ],
498
- url: '/v1/tokens/price/supported',
499
- ...options
500
- });
659
+ export const getV1TokensPriceSupported = <ThrowOnError extends boolean = false>(
660
+ options?: Options<GetV1TokensPriceSupportedData, ThrowOnError>,
661
+ ) => {
662
+ return (options?.client ?? _heyApiClient).get<GetV1TokensPriceSupportedResponse, unknown, ThrowOnError>({
663
+ security: [
664
+ {
665
+ name: "x-client-id",
666
+ type: "apiKey",
667
+ },
668
+ {
669
+ scheme: "bearer",
670
+ type: "http",
671
+ },
672
+ {
673
+ in: "query",
674
+ name: "clientId",
675
+ type: "apiKey",
676
+ },
677
+ ],
678
+ url: "/v1/tokens/price/supported",
679
+ ...options,
680
+ });
501
681
  };
502
682
 
503
683
  /**
504
684
  * Get token price
505
685
  * Get price in USD for given token(s)
506
686
  */
507
- export const getV1TokensPrice = <ThrowOnError extends boolean = false>(options?: Options<GetV1TokensPriceData, ThrowOnError>) => {
508
- return (options?.client ?? _heyApiClient).get<GetV1TokensPriceResponse, unknown, ThrowOnError>({
509
- security: [
510
- {
511
- name: 'x-client-id',
512
- type: 'apiKey'
513
- },
514
- {
515
- scheme: 'bearer',
516
- type: 'http'
517
- },
518
- {
519
- in: 'query',
520
- name: 'clientId',
521
- type: 'apiKey'
522
- }
523
- ],
524
- url: '/v1/tokens/price',
525
- ...options
526
- });
687
+ export const getV1TokensPrice = <ThrowOnError extends boolean = false>(
688
+ options?: Options<GetV1TokensPriceData, ThrowOnError>,
689
+ ) => {
690
+ return (options?.client ?? _heyApiClient).get<GetV1TokensPriceResponse, unknown, ThrowOnError>({
691
+ security: [
692
+ {
693
+ name: "x-client-id",
694
+ type: "apiKey",
695
+ },
696
+ {
697
+ scheme: "bearer",
698
+ type: "http",
699
+ },
700
+ {
701
+ in: "query",
702
+ name: "clientId",
703
+ type: "apiKey",
704
+ },
705
+ ],
706
+ url: "/v1/tokens/price",
707
+ ...options,
708
+ });
527
709
  };
528
710
 
529
711
  /**
530
712
  * Token lookup
531
713
  * Look up a fungible token by symbol
532
714
  */
533
- export const getV1TokensLookup = <ThrowOnError extends boolean = false>(options: Options<GetV1TokensLookupData, ThrowOnError>) => {
534
- return (options.client ?? _heyApiClient).get<GetV1TokensLookupResponse, unknown, ThrowOnError>({
535
- security: [
536
- {
537
- name: 'x-client-id',
538
- type: 'apiKey'
539
- },
540
- {
541
- scheme: 'bearer',
542
- type: 'http'
543
- },
544
- {
545
- in: 'query',
546
- name: 'clientId',
547
- type: 'apiKey'
548
- }
549
- ],
550
- url: '/v1/tokens/lookup',
551
- ...options
552
- });
715
+ export const getV1TokensLookup = <ThrowOnError extends boolean = false>(
716
+ options: Options<GetV1TokensLookupData, ThrowOnError>,
717
+ ) => {
718
+ return (options.client ?? _heyApiClient).get<GetV1TokensLookupResponse, unknown, ThrowOnError>({
719
+ security: [
720
+ {
721
+ name: "x-client-id",
722
+ type: "apiKey",
723
+ },
724
+ {
725
+ scheme: "bearer",
726
+ type: "http",
727
+ },
728
+ {
729
+ in: "query",
730
+ name: "clientId",
731
+ type: "apiKey",
732
+ },
733
+ ],
734
+ url: "/v1/tokens/lookup",
735
+ ...options,
736
+ });
553
737
  };
554
738
 
555
739
  /**
556
740
  * Resolve
557
741
  * Resolve
558
742
  */
559
- export const getV1ResolveByInput = <ThrowOnError extends boolean = false>(options: Options<GetV1ResolveByInputData, ThrowOnError>) => {
560
- return (options.client ?? _heyApiClient).get<GetV1ResolveByInputResponse, GetV1ResolveByInputError, ThrowOnError>({
561
- security: [
562
- {
563
- name: 'x-client-id',
564
- type: 'apiKey'
565
- },
566
- {
567
- scheme: 'bearer',
568
- type: 'http'
569
- },
570
- {
571
- in: 'query',
572
- name: 'clientId',
573
- type: 'apiKey'
574
- }
575
- ],
576
- url: '/v1/resolve/{input}',
577
- ...options
578
- });
743
+ export const getV1ResolveByInput = <ThrowOnError extends boolean = false>(
744
+ options: Options<GetV1ResolveByInputData, ThrowOnError>,
745
+ ) => {
746
+ return (options.client ?? _heyApiClient).get<GetV1ResolveByInputResponse, GetV1ResolveByInputError, ThrowOnError>({
747
+ security: [
748
+ {
749
+ name: "x-client-id",
750
+ type: "apiKey",
751
+ },
752
+ {
753
+ scheme: "bearer",
754
+ type: "http",
755
+ },
756
+ {
757
+ in: "query",
758
+ name: "clientId",
759
+ type: "apiKey",
760
+ },
761
+ ],
762
+ url: "/v1/resolve/{input}",
763
+ ...options,
764
+ });
579
765
  };
580
766
 
581
767
  /**
@@ -583,159 +769,185 @@ export const getV1ResolveByInput = <ThrowOnError extends boolean = false>(option
583
769
  * Get blocks
584
770
  */
585
771
  export const getV1Blocks = <ThrowOnError extends boolean = false>(options?: Options<GetV1BlocksData, ThrowOnError>) => {
586
- return (options?.client ?? _heyApiClient).get<GetV1BlocksResponse, GetV1BlocksError, ThrowOnError>({
587
- security: [
588
- {
589
- name: 'x-client-id',
590
- type: 'apiKey'
591
- },
592
- {
593
- scheme: 'bearer',
594
- type: 'http'
595
- },
596
- {
597
- in: 'query',
598
- name: 'clientId',
599
- type: 'apiKey'
600
- }
601
- ],
602
- url: '/v1/blocks',
603
- ...options
604
- });
772
+ return (options?.client ?? _heyApiClient).get<GetV1BlocksResponse, GetV1BlocksError, ThrowOnError>({
773
+ security: [
774
+ {
775
+ name: "x-client-id",
776
+ type: "apiKey",
777
+ },
778
+ {
779
+ scheme: "bearer",
780
+ type: "http",
781
+ },
782
+ {
783
+ in: "query",
784
+ name: "clientId",
785
+ type: "apiKey",
786
+ },
787
+ ],
788
+ url: "/v1/blocks",
789
+ ...options,
790
+ });
605
791
  };
606
792
 
607
793
  /**
608
794
  * Get contract ABI​
609
795
  * Get contract ABI​
610
796
  */
611
- export const getV1ContractsAbiByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1ContractsAbiByContractAddressData, ThrowOnError>) => {
612
- return (options.client ?? _heyApiClient).get<GetV1ContractsAbiByContractAddressResponse, GetV1ContractsAbiByContractAddressError, ThrowOnError>({
613
- security: [
614
- {
615
- name: 'x-client-id',
616
- type: 'apiKey'
617
- },
618
- {
619
- scheme: 'bearer',
620
- type: 'http'
621
- },
622
- {
623
- in: 'query',
624
- name: 'clientId',
625
- type: 'apiKey'
626
- }
627
- ],
628
- url: '/v1/contracts/abi/{contractAddress}',
629
- ...options
630
- });
797
+ export const getV1ContractsAbiByContractAddress = <ThrowOnError extends boolean = false>(
798
+ options: Options<GetV1ContractsAbiByContractAddressData, ThrowOnError>,
799
+ ) => {
800
+ return (options.client ?? _heyApiClient).get<
801
+ GetV1ContractsAbiByContractAddressResponse,
802
+ GetV1ContractsAbiByContractAddressError,
803
+ ThrowOnError
804
+ >({
805
+ security: [
806
+ {
807
+ name: "x-client-id",
808
+ type: "apiKey",
809
+ },
810
+ {
811
+ scheme: "bearer",
812
+ type: "http",
813
+ },
814
+ {
815
+ in: "query",
816
+ name: "clientId",
817
+ type: "apiKey",
818
+ },
819
+ ],
820
+ url: "/v1/contracts/abi/{contractAddress}",
821
+ ...options,
822
+ });
631
823
  };
632
824
 
633
825
  /**
634
826
  * Get contract metadata​
635
827
  * Get contract metadata​
636
828
  */
637
- export const getV1ContractsMetadataByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1ContractsMetadataByContractAddressData, ThrowOnError>) => {
638
- return (options.client ?? _heyApiClient).get<GetV1ContractsMetadataByContractAddressResponse, GetV1ContractsMetadataByContractAddressError, ThrowOnError>({
639
- security: [
640
- {
641
- name: 'x-client-id',
642
- type: 'apiKey'
643
- },
644
- {
645
- scheme: 'bearer',
646
- type: 'http'
647
- },
648
- {
649
- in: 'query',
650
- name: 'clientId',
651
- type: 'apiKey'
652
- }
653
- ],
654
- url: '/v1/contracts/metadata/{contractAddress}',
655
- ...options
656
- });
829
+ export const getV1ContractsMetadataByContractAddress = <ThrowOnError extends boolean = false>(
830
+ options: Options<GetV1ContractsMetadataByContractAddressData, ThrowOnError>,
831
+ ) => {
832
+ return (options.client ?? _heyApiClient).get<
833
+ GetV1ContractsMetadataByContractAddressResponse,
834
+ GetV1ContractsMetadataByContractAddressError,
835
+ ThrowOnError
836
+ >({
837
+ security: [
838
+ {
839
+ name: "x-client-id",
840
+ type: "apiKey",
841
+ },
842
+ {
843
+ scheme: "bearer",
844
+ type: "http",
845
+ },
846
+ {
847
+ in: "query",
848
+ name: "clientId",
849
+ type: "apiKey",
850
+ },
851
+ ],
852
+ url: "/v1/contracts/metadata/{contractAddress}",
853
+ ...options,
854
+ });
657
855
  };
658
856
 
659
857
  /**
660
858
  * Decode logs and transactions​
661
859
  * Decode logs and transactions​
662
860
  */
663
- export const postV1DecodeByContractAddress = <ThrowOnError extends boolean = false>(options: Options<PostV1DecodeByContractAddressData, ThrowOnError>) => {
664
- return (options.client ?? _heyApiClient).post<PostV1DecodeByContractAddressResponse, PostV1DecodeByContractAddressError, ThrowOnError>({
665
- security: [
666
- {
667
- name: 'x-client-id',
668
- type: 'apiKey'
669
- },
670
- {
671
- scheme: 'bearer',
672
- type: 'http'
673
- },
674
- {
675
- in: 'query',
676
- name: 'clientId',
677
- type: 'apiKey'
678
- }
679
- ],
680
- url: '/v1/decode/{contractAddress}',
681
- ...options,
682
- headers: {
683
- 'Content-Type': 'application/json',
684
- ...options?.headers
685
- }
686
- });
861
+ export const postV1DecodeByContractAddress = <ThrowOnError extends boolean = false>(
862
+ options: Options<PostV1DecodeByContractAddressData, ThrowOnError>,
863
+ ) => {
864
+ return (options.client ?? _heyApiClient).post<
865
+ PostV1DecodeByContractAddressResponse,
866
+ PostV1DecodeByContractAddressError,
867
+ ThrowOnError
868
+ >({
869
+ security: [
870
+ {
871
+ name: "x-client-id",
872
+ type: "apiKey",
873
+ },
874
+ {
875
+ scheme: "bearer",
876
+ type: "http",
877
+ },
878
+ {
879
+ in: "query",
880
+ name: "clientId",
881
+ type: "apiKey",
882
+ },
883
+ ],
884
+ url: "/v1/decode/{contractAddress}",
885
+ ...options,
886
+ headers: {
887
+ "Content-Type": "application/json",
888
+ ...options?.headers,
889
+ },
890
+ });
687
891
  };
688
892
 
689
893
  /**
690
894
  * Get NFT balances by address
691
895
  * Get NFT balances for a given address
692
896
  */
693
- export const getV1NftsBalanceByOwnerAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsBalanceByOwnerAddressData, ThrowOnError>) => {
694
- return (options.client ?? _heyApiClient).get<GetV1NftsBalanceByOwnerAddressResponse, unknown, ThrowOnError>({
695
- security: [
696
- {
697
- name: 'x-client-id',
698
- type: 'apiKey'
699
- },
700
- {
701
- scheme: 'bearer',
702
- type: 'http'
703
- },
704
- {
705
- in: 'query',
706
- name: 'clientId',
707
- type: 'apiKey'
708
- }
709
- ],
710
- url: '/v1/nfts/balance/{ownerAddress}',
711
- ...options
712
- });
897
+ export const getV1NftsBalanceByOwnerAddress = <ThrowOnError extends boolean = false>(
898
+ options: Options<GetV1NftsBalanceByOwnerAddressData, ThrowOnError>,
899
+ ) => {
900
+ return (options.client ?? _heyApiClient).get<GetV1NftsBalanceByOwnerAddressResponse, unknown, ThrowOnError>({
901
+ security: [
902
+ {
903
+ name: "x-client-id",
904
+ type: "apiKey",
905
+ },
906
+ {
907
+ scheme: "bearer",
908
+ type: "http",
909
+ },
910
+ {
911
+ in: "query",
912
+ name: "clientId",
913
+ type: "apiKey",
914
+ },
915
+ ],
916
+ url: "/v1/nfts/balance/{ownerAddress}",
917
+ ...options,
918
+ });
713
919
  };
714
920
 
715
921
  /**
716
922
  * Get collection
717
923
  * Retrieve metadata about a collection
718
924
  */
719
- export const getV1NftsCollectionsByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsCollectionsByContractAddressData, ThrowOnError>) => {
720
- return (options.client ?? _heyApiClient).get<GetV1NftsCollectionsByContractAddressResponse, GetV1NftsCollectionsByContractAddressError, ThrowOnError>({
721
- security: [
722
- {
723
- name: 'x-client-id',
724
- type: 'apiKey'
725
- },
726
- {
727
- scheme: 'bearer',
728
- type: 'http'
729
- },
730
- {
731
- in: 'query',
732
- name: 'clientId',
733
- type: 'apiKey'
734
- }
735
- ],
736
- url: '/v1/nfts/collections/{contract_address}',
737
- ...options
738
- });
925
+ export const getV1NftsCollectionsByContractAddress = <ThrowOnError extends boolean = false>(
926
+ options: Options<GetV1NftsCollectionsByContractAddressData, ThrowOnError>,
927
+ ) => {
928
+ return (options.client ?? _heyApiClient).get<
929
+ GetV1NftsCollectionsByContractAddressResponse,
930
+ GetV1NftsCollectionsByContractAddressError,
931
+ ThrowOnError
932
+ >({
933
+ security: [
934
+ {
935
+ name: "x-client-id",
936
+ type: "apiKey",
937
+ },
938
+ {
939
+ scheme: "bearer",
940
+ type: "http",
941
+ },
942
+ {
943
+ in: "query",
944
+ name: "clientId",
945
+ type: "apiKey",
946
+ },
947
+ ],
948
+ url: "/v1/nfts/collections/{contract_address}",
949
+ ...options,
950
+ });
739
951
  };
740
952
 
741
953
  /**
@@ -743,309 +955,371 @@ export const getV1NftsCollectionsByContractAddress = <ThrowOnError extends boole
743
955
  * Get NFTs by owner
744
956
  */
745
957
  export const getV1Nfts = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsData, ThrowOnError>) => {
746
- return (options.client ?? _heyApiClient).get<GetV1NftsResponse, GetV1NftsError, ThrowOnError>({
747
- security: [
748
- {
749
- name: 'x-client-id',
750
- type: 'apiKey'
751
- },
752
- {
753
- scheme: 'bearer',
754
- type: 'http'
755
- },
756
- {
757
- in: 'query',
758
- name: 'clientId',
759
- type: 'apiKey'
760
- }
761
- ],
762
- url: '/v1/nfts',
763
- ...options
764
- });
958
+ return (options.client ?? _heyApiClient).get<GetV1NftsResponse, GetV1NftsError, ThrowOnError>({
959
+ security: [
960
+ {
961
+ name: "x-client-id",
962
+ type: "apiKey",
963
+ },
964
+ {
965
+ scheme: "bearer",
966
+ type: "http",
967
+ },
968
+ {
969
+ in: "query",
970
+ name: "clientId",
971
+ type: "apiKey",
972
+ },
973
+ ],
974
+ url: "/v1/nfts",
975
+ ...options,
976
+ });
765
977
  };
766
978
 
767
979
  /**
768
980
  * Get NFT owners by contract
769
981
  * Get NFT owners by contract
770
982
  */
771
- export const getV1NftsOwnersByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsOwnersByContractAddressData, ThrowOnError>) => {
772
- return (options.client ?? _heyApiClient).get<GetV1NftsOwnersByContractAddressResponse, GetV1NftsOwnersByContractAddressError, ThrowOnError>({
773
- security: [
774
- {
775
- name: 'x-client-id',
776
- type: 'apiKey'
777
- },
778
- {
779
- scheme: 'bearer',
780
- type: 'http'
781
- },
782
- {
783
- in: 'query',
784
- name: 'clientId',
785
- type: 'apiKey'
786
- }
787
- ],
788
- url: '/v1/nfts/owners/{contract_address}',
789
- ...options
790
- });
983
+ export const getV1NftsOwnersByContractAddress = <ThrowOnError extends boolean = false>(
984
+ options: Options<GetV1NftsOwnersByContractAddressData, ThrowOnError>,
985
+ ) => {
986
+ return (options.client ?? _heyApiClient).get<
987
+ GetV1NftsOwnersByContractAddressResponse,
988
+ GetV1NftsOwnersByContractAddressError,
989
+ ThrowOnError
990
+ >({
991
+ security: [
992
+ {
993
+ name: "x-client-id",
994
+ type: "apiKey",
995
+ },
996
+ {
997
+ scheme: "bearer",
998
+ type: "http",
999
+ },
1000
+ {
1001
+ in: "query",
1002
+ name: "clientId",
1003
+ type: "apiKey",
1004
+ },
1005
+ ],
1006
+ url: "/v1/nfts/owners/{contract_address}",
1007
+ ...options,
1008
+ });
791
1009
  };
792
1010
 
793
1011
  /**
794
1012
  * Get NFT owners by token
795
1013
  * Get NFT owners by token
796
1014
  */
797
- export const getV1NftsOwnersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsOwnersByContractAddressByTokenIdData, ThrowOnError>) => {
798
- return (options.client ?? _heyApiClient).get<GetV1NftsOwnersByContractAddressByTokenIdResponse, GetV1NftsOwnersByContractAddressByTokenIdError, ThrowOnError>({
799
- security: [
800
- {
801
- name: 'x-client-id',
802
- type: 'apiKey'
803
- },
804
- {
805
- scheme: 'bearer',
806
- type: 'http'
807
- },
808
- {
809
- in: 'query',
810
- name: 'clientId',
811
- type: 'apiKey'
812
- }
813
- ],
814
- url: '/v1/nfts/owners/{contract_address}/{token_id}',
815
- ...options
816
- });
1015
+ export const getV1NftsOwnersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
1016
+ options: Options<GetV1NftsOwnersByContractAddressByTokenIdData, ThrowOnError>,
1017
+ ) => {
1018
+ return (options.client ?? _heyApiClient).get<
1019
+ GetV1NftsOwnersByContractAddressByTokenIdResponse,
1020
+ GetV1NftsOwnersByContractAddressByTokenIdError,
1021
+ ThrowOnError
1022
+ >({
1023
+ security: [
1024
+ {
1025
+ name: "x-client-id",
1026
+ type: "apiKey",
1027
+ },
1028
+ {
1029
+ scheme: "bearer",
1030
+ type: "http",
1031
+ },
1032
+ {
1033
+ in: "query",
1034
+ name: "clientId",
1035
+ type: "apiKey",
1036
+ },
1037
+ ],
1038
+ url: "/v1/nfts/owners/{contract_address}/{token_id}",
1039
+ ...options,
1040
+ });
817
1041
  };
818
1042
 
819
1043
  /**
820
1044
  * Get NFT transfers
821
1045
  * Get NFT transfers
822
1046
  */
823
- export const getV1NftsTransfers = <ThrowOnError extends boolean = false>(options?: Options<GetV1NftsTransfersData, ThrowOnError>) => {
824
- return (options?.client ?? _heyApiClient).get<GetV1NftsTransfersResponse, GetV1NftsTransfersError, ThrowOnError>({
825
- security: [
826
- {
827
- name: 'x-client-id',
828
- type: 'apiKey'
829
- },
830
- {
831
- scheme: 'bearer',
832
- type: 'http'
833
- },
834
- {
835
- in: 'query',
836
- name: 'clientId',
837
- type: 'apiKey'
838
- }
839
- ],
840
- url: '/v1/nfts/transfers',
841
- ...options
842
- });
1047
+ export const getV1NftsTransfers = <ThrowOnError extends boolean = false>(
1048
+ options?: Options<GetV1NftsTransfersData, ThrowOnError>,
1049
+ ) => {
1050
+ return (options?.client ?? _heyApiClient).get<GetV1NftsTransfersResponse, GetV1NftsTransfersError, ThrowOnError>({
1051
+ security: [
1052
+ {
1053
+ name: "x-client-id",
1054
+ type: "apiKey",
1055
+ },
1056
+ {
1057
+ scheme: "bearer",
1058
+ type: "http",
1059
+ },
1060
+ {
1061
+ in: "query",
1062
+ name: "clientId",
1063
+ type: "apiKey",
1064
+ },
1065
+ ],
1066
+ url: "/v1/nfts/transfers",
1067
+ ...options,
1068
+ });
843
1069
  };
844
1070
 
845
1071
  /**
846
1072
  * Get NFT transfers by transaction
847
1073
  * Get NFT transfers by transaction
848
1074
  */
849
- export const getV1NftsTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsTransfersTransactionByTransactionHashData, ThrowOnError>) => {
850
- return (options.client ?? _heyApiClient).get<GetV1NftsTransfersTransactionByTransactionHashResponse, GetV1NftsTransfersTransactionByTransactionHashError, ThrowOnError>({
851
- security: [
852
- {
853
- name: 'x-client-id',
854
- type: 'apiKey'
855
- },
856
- {
857
- scheme: 'bearer',
858
- type: 'http'
859
- },
860
- {
861
- in: 'query',
862
- name: 'clientId',
863
- type: 'apiKey'
864
- }
865
- ],
866
- url: '/v1/nfts/transfers/transaction/{transaction_hash}',
867
- ...options
868
- });
1075
+ export const getV1NftsTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(
1076
+ options: Options<GetV1NftsTransfersTransactionByTransactionHashData, ThrowOnError>,
1077
+ ) => {
1078
+ return (options.client ?? _heyApiClient).get<
1079
+ GetV1NftsTransfersTransactionByTransactionHashResponse,
1080
+ GetV1NftsTransfersTransactionByTransactionHashError,
1081
+ ThrowOnError
1082
+ >({
1083
+ security: [
1084
+ {
1085
+ name: "x-client-id",
1086
+ type: "apiKey",
1087
+ },
1088
+ {
1089
+ scheme: "bearer",
1090
+ type: "http",
1091
+ },
1092
+ {
1093
+ in: "query",
1094
+ name: "clientId",
1095
+ type: "apiKey",
1096
+ },
1097
+ ],
1098
+ url: "/v1/nfts/transfers/transaction/{transaction_hash}",
1099
+ ...options,
1100
+ });
869
1101
  };
870
1102
 
871
1103
  /**
872
1104
  * Get NFT transfers by contract
873
1105
  * Get NFT transfers by contract
874
1106
  */
875
- export const getV1NftsTransfersByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsTransfersByContractAddressData, ThrowOnError>) => {
876
- return (options.client ?? _heyApiClient).get<GetV1NftsTransfersByContractAddressResponse, GetV1NftsTransfersByContractAddressError, ThrowOnError>({
877
- security: [
878
- {
879
- name: 'x-client-id',
880
- type: 'apiKey'
881
- },
882
- {
883
- scheme: 'bearer',
884
- type: 'http'
885
- },
886
- {
887
- in: 'query',
888
- name: 'clientId',
889
- type: 'apiKey'
890
- }
891
- ],
892
- url: '/v1/nfts/transfers/{contract_address}',
893
- ...options
894
- });
1107
+ export const getV1NftsTransfersByContractAddress = <ThrowOnError extends boolean = false>(
1108
+ options: Options<GetV1NftsTransfersByContractAddressData, ThrowOnError>,
1109
+ ) => {
1110
+ return (options.client ?? _heyApiClient).get<
1111
+ GetV1NftsTransfersByContractAddressResponse,
1112
+ GetV1NftsTransfersByContractAddressError,
1113
+ ThrowOnError
1114
+ >({
1115
+ security: [
1116
+ {
1117
+ name: "x-client-id",
1118
+ type: "apiKey",
1119
+ },
1120
+ {
1121
+ scheme: "bearer",
1122
+ type: "http",
1123
+ },
1124
+ {
1125
+ in: "query",
1126
+ name: "clientId",
1127
+ type: "apiKey",
1128
+ },
1129
+ ],
1130
+ url: "/v1/nfts/transfers/{contract_address}",
1131
+ ...options,
1132
+ });
895
1133
  };
896
1134
 
897
1135
  /**
898
1136
  * Get NFTs by contract
899
1137
  * Get NFTs by contract
900
1138
  */
901
- export const getV1NftsByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsByContractAddressData, ThrowOnError>) => {
902
- return (options.client ?? _heyApiClient).get<GetV1NftsByContractAddressResponse, GetV1NftsByContractAddressError, ThrowOnError>({
903
- security: [
904
- {
905
- name: 'x-client-id',
906
- type: 'apiKey'
907
- },
908
- {
909
- scheme: 'bearer',
910
- type: 'http'
911
- },
912
- {
913
- in: 'query',
914
- name: 'clientId',
915
- type: 'apiKey'
916
- }
917
- ],
918
- url: '/v1/nfts/{contract_address}',
919
- ...options
920
- });
1139
+ export const getV1NftsByContractAddress = <ThrowOnError extends boolean = false>(
1140
+ options: Options<GetV1NftsByContractAddressData, ThrowOnError>,
1141
+ ) => {
1142
+ return (options.client ?? _heyApiClient).get<
1143
+ GetV1NftsByContractAddressResponse,
1144
+ GetV1NftsByContractAddressError,
1145
+ ThrowOnError
1146
+ >({
1147
+ security: [
1148
+ {
1149
+ name: "x-client-id",
1150
+ type: "apiKey",
1151
+ },
1152
+ {
1153
+ scheme: "bearer",
1154
+ type: "http",
1155
+ },
1156
+ {
1157
+ in: "query",
1158
+ name: "clientId",
1159
+ type: "apiKey",
1160
+ },
1161
+ ],
1162
+ url: "/v1/nfts/{contract_address}",
1163
+ ...options,
1164
+ });
921
1165
  };
922
1166
 
923
1167
  /**
924
1168
  * Get NFT transfers by token
925
1169
  * Get NFT transfers by token
926
1170
  */
927
- export const getV1NftsTransfersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsTransfersByContractAddressByTokenIdData, ThrowOnError>) => {
928
- return (options.client ?? _heyApiClient).get<GetV1NftsTransfersByContractAddressByTokenIdResponse, GetV1NftsTransfersByContractAddressByTokenIdError, ThrowOnError>({
929
- security: [
930
- {
931
- name: 'x-client-id',
932
- type: 'apiKey'
933
- },
934
- {
935
- scheme: 'bearer',
936
- type: 'http'
937
- },
938
- {
939
- in: 'query',
940
- name: 'clientId',
941
- type: 'apiKey'
942
- }
943
- ],
944
- url: '/v1/nfts/transfers/{contract_address}/{token_id}',
945
- ...options
946
- });
1171
+ export const getV1NftsTransfersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
1172
+ options: Options<GetV1NftsTransfersByContractAddressByTokenIdData, ThrowOnError>,
1173
+ ) => {
1174
+ return (options.client ?? _heyApiClient).get<
1175
+ GetV1NftsTransfersByContractAddressByTokenIdResponse,
1176
+ GetV1NftsTransfersByContractAddressByTokenIdError,
1177
+ ThrowOnError
1178
+ >({
1179
+ security: [
1180
+ {
1181
+ name: "x-client-id",
1182
+ type: "apiKey",
1183
+ },
1184
+ {
1185
+ scheme: "bearer",
1186
+ type: "http",
1187
+ },
1188
+ {
1189
+ in: "query",
1190
+ name: "clientId",
1191
+ type: "apiKey",
1192
+ },
1193
+ ],
1194
+ url: "/v1/nfts/transfers/{contract_address}/{token_id}",
1195
+ ...options,
1196
+ });
947
1197
  };
948
1198
 
949
1199
  /**
950
1200
  * Get NFT by token ID
951
1201
  * Get NFT by token ID
952
1202
  */
953
- export const getV1NftsByContractAddressByTokenId = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsByContractAddressByTokenIdData, ThrowOnError>) => {
954
- return (options.client ?? _heyApiClient).get<GetV1NftsByContractAddressByTokenIdResponse, GetV1NftsByContractAddressByTokenIdError, ThrowOnError>({
955
- security: [
956
- {
957
- name: 'x-client-id',
958
- type: 'apiKey'
959
- },
960
- {
961
- scheme: 'bearer',
962
- type: 'http'
963
- },
964
- {
965
- in: 'query',
966
- name: 'clientId',
967
- type: 'apiKey'
968
- }
969
- ],
970
- url: '/v1/nfts/{contract_address}/{token_id}',
971
- ...options
972
- });
1203
+ export const getV1NftsByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
1204
+ options: Options<GetV1NftsByContractAddressByTokenIdData, ThrowOnError>,
1205
+ ) => {
1206
+ return (options.client ?? _heyApiClient).get<
1207
+ GetV1NftsByContractAddressByTokenIdResponse,
1208
+ GetV1NftsByContractAddressByTokenIdError,
1209
+ ThrowOnError
1210
+ >({
1211
+ security: [
1212
+ {
1213
+ name: "x-client-id",
1214
+ type: "apiKey",
1215
+ },
1216
+ {
1217
+ scheme: "bearer",
1218
+ type: "http",
1219
+ },
1220
+ {
1221
+ in: "query",
1222
+ name: "clientId",
1223
+ type: "apiKey",
1224
+ },
1225
+ ],
1226
+ url: "/v1/nfts/{contract_address}/{token_id}",
1227
+ ...options,
1228
+ });
973
1229
  };
974
1230
 
975
1231
  /**
976
1232
  * Force refresh collection metadata
977
1233
  * Force refresh collection metadata for the specified contract (across multiple chains if provided)
978
1234
  */
979
- export const getV1NftsMetadataRefreshByContractAddress = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsMetadataRefreshByContractAddressData, ThrowOnError>) => {
980
- return (options.client ?? _heyApiClient).get<GetV1NftsMetadataRefreshByContractAddressResponse, GetV1NftsMetadataRefreshByContractAddressError, ThrowOnError>({
981
- security: [
982
- {
983
- name: 'x-client-id',
984
- type: 'apiKey'
985
- },
986
- {
987
- scheme: 'bearer',
988
- type: 'http'
989
- },
990
- {
991
- in: 'query',
992
- name: 'clientId',
993
- type: 'apiKey'
994
- }
995
- ],
996
- url: '/v1/nfts/metadata/refresh/{contract_address}',
997
- ...options
998
- });
1235
+ export const getV1NftsMetadataRefreshByContractAddress = <ThrowOnError extends boolean = false>(
1236
+ options: Options<GetV1NftsMetadataRefreshByContractAddressData, ThrowOnError>,
1237
+ ) => {
1238
+ return (options.client ?? _heyApiClient).get<
1239
+ GetV1NftsMetadataRefreshByContractAddressResponse,
1240
+ GetV1NftsMetadataRefreshByContractAddressError,
1241
+ ThrowOnError
1242
+ >({
1243
+ security: [
1244
+ {
1245
+ name: "x-client-id",
1246
+ type: "apiKey",
1247
+ },
1248
+ {
1249
+ scheme: "bearer",
1250
+ type: "http",
1251
+ },
1252
+ {
1253
+ in: "query",
1254
+ name: "clientId",
1255
+ type: "apiKey",
1256
+ },
1257
+ ],
1258
+ url: "/v1/nfts/metadata/refresh/{contract_address}",
1259
+ ...options,
1260
+ });
999
1261
  };
1000
1262
 
1001
1263
  /**
1002
1264
  * Force refresh token metadata
1003
1265
  * Force refresh token metadata for the specified contract and token ID (across multiple chains if provided)
1004
1266
  */
1005
- export const getV1NftsMetadataRefreshByContractAddressByTokenId = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsMetadataRefreshByContractAddressByTokenIdData, ThrowOnError>) => {
1006
- return (options.client ?? _heyApiClient).get<GetV1NftsMetadataRefreshByContractAddressByTokenIdResponse, GetV1NftsMetadataRefreshByContractAddressByTokenIdError, ThrowOnError>({
1007
- security: [
1008
- {
1009
- name: 'x-client-id',
1010
- type: 'apiKey'
1011
- },
1012
- {
1013
- scheme: 'bearer',
1014
- type: 'http'
1015
- },
1016
- {
1017
- in: 'query',
1018
- name: 'clientId',
1019
- type: 'apiKey'
1020
- }
1021
- ],
1022
- url: '/v1/nfts/metadata/refresh/{contract_address}/{token_id}',
1023
- ...options
1024
- });
1267
+ export const getV1NftsMetadataRefreshByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
1268
+ options: Options<GetV1NftsMetadataRefreshByContractAddressByTokenIdData, ThrowOnError>,
1269
+ ) => {
1270
+ return (options.client ?? _heyApiClient).get<
1271
+ GetV1NftsMetadataRefreshByContractAddressByTokenIdResponse,
1272
+ GetV1NftsMetadataRefreshByContractAddressByTokenIdError,
1273
+ ThrowOnError
1274
+ >({
1275
+ security: [
1276
+ {
1277
+ name: "x-client-id",
1278
+ type: "apiKey",
1279
+ },
1280
+ {
1281
+ scheme: "bearer",
1282
+ type: "http",
1283
+ },
1284
+ {
1285
+ in: "query",
1286
+ name: "clientId",
1287
+ type: "apiKey",
1288
+ },
1289
+ ],
1290
+ url: "/v1/nfts/metadata/refresh/{contract_address}/{token_id}",
1291
+ ...options,
1292
+ });
1025
1293
  };
1026
1294
 
1027
1295
  /**
1028
1296
  * Get wallet transactions
1029
1297
  * Get incoming and outgoing transactions for a wallet
1030
1298
  */
1031
- export const getV1WalletsByWalletAddressTransactions = <ThrowOnError extends boolean = false>(options: Options<GetV1WalletsByWalletAddressTransactionsData, ThrowOnError>) => {
1032
- return (options.client ?? _heyApiClient).get<GetV1WalletsByWalletAddressTransactionsResponse, GetV1WalletsByWalletAddressTransactionsError, ThrowOnError>({
1033
- security: [
1034
- {
1035
- name: 'x-client-id',
1036
- type: 'apiKey'
1037
- },
1038
- {
1039
- scheme: 'bearer',
1040
- type: 'http'
1041
- },
1042
- {
1043
- in: 'query',
1044
- name: 'clientId',
1045
- type: 'apiKey'
1046
- }
1047
- ],
1048
- url: '/v1/wallets/{wallet_address}/transactions',
1049
- ...options
1050
- });
1051
- };
1299
+ export const getV1WalletsByWalletAddressTransactions = <ThrowOnError extends boolean = false>(
1300
+ options: Options<GetV1WalletsByWalletAddressTransactionsData, ThrowOnError>,
1301
+ ) => {
1302
+ return (options.client ?? _heyApiClient).get<
1303
+ GetV1WalletsByWalletAddressTransactionsResponse,
1304
+ GetV1WalletsByWalletAddressTransactionsError,
1305
+ ThrowOnError
1306
+ >({
1307
+ security: [
1308
+ {
1309
+ name: "x-client-id",
1310
+ type: "apiKey",
1311
+ },
1312
+ {
1313
+ scheme: "bearer",
1314
+ type: "http",
1315
+ },
1316
+ {
1317
+ in: "query",
1318
+ name: "clientId",
1319
+ type: "apiKey",
1320
+ },
1321
+ ],
1322
+ url: "/v1/wallets/{wallet_address}/transactions",
1323
+ ...options,
1324
+ });
1325
+ };