@story-protocol/ipkit 0.4.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/README.md +183 -0
  2. package/dist/components/Accordion/Accordion.d.ts +8 -0
  3. package/dist/components/Accordion/Accordion.d.ts.map +1 -0
  4. package/dist/components/Accordion/__docs__/Accordion.stories.d.ts +18 -0
  5. package/dist/components/Accordion/__docs__/Accordion.stories.d.ts.map +1 -0
  6. package/dist/components/Accordion/index.d.ts +2 -0
  7. package/dist/components/Accordion/index.d.ts.map +1 -0
  8. package/dist/components/Button/Button.d.ts +13 -0
  9. package/dist/components/Button/Button.d.ts.map +1 -0
  10. package/dist/components/Button/__docs__/Button.stories.d.ts +23 -0
  11. package/dist/components/Button/__docs__/Button.stories.d.ts.map +1 -0
  12. package/dist/components/Button/index.d.ts +2 -0
  13. package/dist/components/Button/index.d.ts.map +1 -0
  14. package/dist/components/Calendar/Calendar.d.ts +9 -0
  15. package/dist/components/Calendar/Calendar.d.ts.map +1 -0
  16. package/dist/components/Calendar/index.d.ts +1 -0
  17. package/dist/components/Calendar/index.d.ts.map +1 -0
  18. package/dist/components/Checkbox/Checkbox.d.ts +9 -0
  19. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  20. package/dist/components/Checkbox/__docs__/Checkbox.stories.d.ts +17 -0
  21. package/dist/components/Checkbox/__docs__/Checkbox.stories.d.ts.map +1 -0
  22. package/dist/components/Checkbox/index.d.ts +2 -0
  23. package/dist/components/Checkbox/index.d.ts.map +1 -0
  24. package/dist/components/DateInputPicker/DateInputPicker.d.ts +23 -0
  25. package/dist/components/DateInputPicker/DateInputPicker.d.ts.map +1 -0
  26. package/dist/components/DateInputPicker/__docs__/DateInputPicker.stories.d.ts +31 -0
  27. package/dist/components/DateInputPicker/__docs__/DateInputPicker.stories.d.ts.map +1 -0
  28. package/dist/components/DateInputPicker/dateUtils.d.ts +18 -0
  29. package/dist/components/DateInputPicker/dateUtils.d.ts.map +1 -0
  30. package/dist/components/DateInputPicker/index.d.ts +2 -0
  31. package/dist/components/DateInputPicker/index.d.ts.map +1 -0
  32. package/dist/components/Input/Input.d.ts +13 -0
  33. package/dist/components/Input/Input.d.ts.map +1 -0
  34. package/dist/components/Input/__docs__/Input.stories.d.ts +26 -0
  35. package/dist/components/Input/__docs__/Input.stories.d.ts.map +1 -0
  36. package/dist/components/Input/index.d.ts +2 -0
  37. package/dist/components/Input/index.d.ts.map +1 -0
  38. package/dist/components/Popover/Popover.d.ts +7 -0
  39. package/dist/components/Popover/Popover.d.ts.map +1 -0
  40. package/dist/components/Popover/__docs__/Popover.stories.d.ts +17 -0
  41. package/dist/components/Popover/__docs__/Popover.stories.d.ts.map +1 -0
  42. package/dist/components/Popover/index.d.ts +2 -0
  43. package/dist/components/Popover/index.d.ts.map +1 -0
  44. package/dist/components/RadioGroup/RadioGroup.d.ts +14 -0
  45. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  46. package/dist/components/RadioGroup/__docs__/RadioGroup.stories.d.ts +31 -0
  47. package/dist/components/RadioGroup/__docs__/RadioGroup.stories.d.ts.map +1 -0
  48. package/dist/components/RadioGroup/index.d.ts +2 -0
  49. package/dist/components/RadioGroup/index.d.ts.map +1 -0
  50. package/dist/components/index.d.ts +2 -0
  51. package/dist/components/index.d.ts.map +1 -0
  52. package/dist/components/utility/If.d.ts +9 -0
  53. package/dist/components/utility/If.d.ts.map +1 -0
  54. package/dist/components/utility/context.d.ts +12 -0
  55. package/dist/components/utility/context.d.ts.map +1 -0
  56. package/dist/constants/api.d.ts +5 -0
  57. package/dist/constants/api.d.ts.map +1 -0
  58. package/dist/constants/chains.d.ts +10 -0
  59. package/dist/constants/chains.d.ts.map +1 -0
  60. package/dist/constants/index.d.ts +3 -0
  61. package/dist/constants/index.d.ts.map +1 -0
  62. package/dist/constants/pil-flavors.d.ts +7 -0
  63. package/dist/constants/pil-flavors.d.ts.map +1 -0
  64. package/dist/hooks/index.d.ts +16 -0
  65. package/dist/hooks/index.d.ts.map +1 -0
  66. package/dist/hooks/stories/(components)/CopyText.d.ts +8 -0
  67. package/dist/hooks/stories/(components)/CopyText.d.ts.map +1 -0
  68. package/dist/hooks/stories/(components)/DataTable.d.ts +8 -0
  69. package/dist/hooks/stories/(components)/DataTable.d.ts.map +1 -0
  70. package/dist/hooks/stories/useCollection.stories.d.ts +20 -0
  71. package/dist/hooks/stories/useCollection.stories.d.ts.map +1 -0
  72. package/dist/hooks/stories/useCollections.stories.d.ts +28 -0
  73. package/dist/hooks/stories/useCollections.stories.d.ts.map +1 -0
  74. package/dist/hooks/stories/useDispute.stories.d.ts +20 -0
  75. package/dist/hooks/stories/useDispute.stories.d.ts.map +1 -0
  76. package/dist/hooks/stories/useDisputes.stories.d.ts +37 -0
  77. package/dist/hooks/stories/useDisputes.stories.d.ts.map +1 -0
  78. package/dist/hooks/stories/useIpAsset.stories.d.ts +21 -0
  79. package/dist/hooks/stories/useIpAsset.stories.d.ts.map +1 -0
  80. package/dist/hooks/stories/useIpAssetChildren.stories.d.ts +28 -0
  81. package/dist/hooks/stories/useIpAssetChildren.stories.d.ts.map +1 -0
  82. package/dist/hooks/stories/useIpAssetEdges.stories.d.ts +27 -0
  83. package/dist/hooks/stories/useIpAssetEdges.stories.d.ts.map +1 -0
  84. package/dist/hooks/stories/useIpAssetLicenses.stories.d.ts +20 -0
  85. package/dist/hooks/stories/useIpAssetLicenses.stories.d.ts.map +1 -0
  86. package/dist/hooks/stories/useIpAssetParents.stories.d.ts +28 -0
  87. package/dist/hooks/stories/useIpAssetParents.stories.d.ts.map +1 -0
  88. package/dist/hooks/stories/useIpAssets.stories.d.ts +38 -0
  89. package/dist/hooks/stories/useIpAssets.stories.d.ts.map +1 -0
  90. package/dist/hooks/stories/useIpAssetsByOwner.stories.d.ts +30 -0
  91. package/dist/hooks/stories/useIpAssetsByOwner.stories.d.ts.map +1 -0
  92. package/dist/hooks/stories/useLicenseTokens.stories.d.ts +38 -0
  93. package/dist/hooks/stories/useLicenseTokens.stories.d.ts.map +1 -0
  94. package/dist/hooks/stories/useSearch.stories.d.ts +19 -0
  95. package/dist/hooks/stories/useSearch.stories.d.ts.map +1 -0
  96. package/dist/hooks/stories/useTransaction.stories.d.ts +20 -0
  97. package/dist/hooks/stories/useTransaction.stories.d.ts.map +1 -0
  98. package/dist/hooks/stories/useTransactions.stories.d.ts +30 -0
  99. package/dist/hooks/stories/useTransactions.stories.d.ts.map +1 -0
  100. package/dist/hooks/useCollection.d.ts +10 -0
  101. package/dist/hooks/useCollection.d.ts.map +1 -0
  102. package/dist/hooks/useCollections.d.ts +11 -0
  103. package/dist/hooks/useCollections.d.ts.map +1 -0
  104. package/dist/hooks/useDispute.d.ts +8 -0
  105. package/dist/hooks/useDispute.d.ts.map +1 -0
  106. package/dist/hooks/useDisputes.d.ts +12 -0
  107. package/dist/hooks/useDisputes.d.ts.map +1 -0
  108. package/dist/hooks/useIpAsset.d.ts +11 -0
  109. package/dist/hooks/useIpAsset.d.ts.map +1 -0
  110. package/dist/hooks/useIpAssetChildren.d.ts +11 -0
  111. package/dist/hooks/useIpAssetChildren.d.ts.map +1 -0
  112. package/dist/hooks/useIpAssetEdges.d.ts +12 -0
  113. package/dist/hooks/useIpAssetEdges.d.ts.map +1 -0
  114. package/dist/hooks/useIpAssetLicenses.d.ts +10 -0
  115. package/dist/hooks/useIpAssetLicenses.d.ts.map +1 -0
  116. package/dist/hooks/useIpAssetParents.d.ts +11 -0
  117. package/dist/hooks/useIpAssetParents.d.ts.map +1 -0
  118. package/dist/hooks/useIpAssets.d.ts +14 -0
  119. package/dist/hooks/useIpAssets.d.ts.map +1 -0
  120. package/dist/hooks/useIpAssetsByOwner.d.ts +13 -0
  121. package/dist/hooks/useIpAssetsByOwner.d.ts.map +1 -0
  122. package/dist/hooks/useLicenseTokens.d.ts +12 -0
  123. package/dist/hooks/useLicenseTokens.d.ts.map +1 -0
  124. package/dist/hooks/useSearch.d.ts +10 -0
  125. package/dist/hooks/useSearch.d.ts.map +1 -0
  126. package/dist/hooks/useTransaction.d.ts +9 -0
  127. package/dist/hooks/useTransaction.d.ts.map +1 -0
  128. package/dist/hooks/useTransactions.d.ts +14 -0
  129. package/dist/hooks/useTransactions.d.ts.map +1 -0
  130. package/dist/index.d.ts +7 -0
  131. package/dist/index.d.ts.map +1 -0
  132. package/dist/lib/api/apiClient.d.ts +7 -0
  133. package/dist/lib/api/apiClient.d.ts.map +1 -0
  134. package/dist/lib/api/getCollections.d.ts +346 -0
  135. package/dist/lib/api/getCollections.d.ts.map +1 -0
  136. package/dist/lib/api/getDispute.d.ts +134 -0
  137. package/dist/lib/api/getDispute.d.ts.map +1 -0
  138. package/dist/lib/api/getDisputes.d.ts +320 -0
  139. package/dist/lib/api/getDisputes.d.ts.map +1 -0
  140. package/dist/lib/api/getIpAssetEdges.d.ts +292 -0
  141. package/dist/lib/api/getIpAssetEdges.d.ts.map +1 -0
  142. package/dist/lib/api/getIpAssets.d.ts +675 -0
  143. package/dist/lib/api/getIpAssets.d.ts.map +1 -0
  144. package/dist/lib/api/getLicenseTokens.d.ts +273 -0
  145. package/dist/lib/api/getLicenseTokens.d.ts.map +1 -0
  146. package/dist/lib/api/getQuery.d.ts +18 -0
  147. package/dist/lib/api/getQuery.d.ts.map +1 -0
  148. package/dist/lib/api/getSearch.d.ts +246 -0
  149. package/dist/lib/api/getSearch.d.ts.map +1 -0
  150. package/dist/lib/api/getTransactions.d.ts +292 -0
  151. package/dist/lib/api/getTransactions.d.ts.map +1 -0
  152. package/dist/lib/api/index.d.ts +10 -0
  153. package/dist/lib/api/index.d.ts.map +1 -0
  154. package/dist/lib/api/listQuery.d.ts +16 -0
  155. package/dist/lib/api/listQuery.d.ts.map +1 -0
  156. package/dist/lib/functions/convertLicenseTermObject.d.ts +6 -0
  157. package/dist/lib/functions/convertLicenseTermObject.d.ts.map +1 -0
  158. package/dist/lib/index.d.ts +4 -0
  159. package/dist/lib/index.d.ts.map +1 -0
  160. package/dist/lib/utils.d.ts +12 -0
  161. package/dist/lib/utils.d.ts.map +1 -0
  162. package/dist/providers/IpKitProvider/IpKitProvider.d.ts +25 -0
  163. package/dist/providers/IpKitProvider/IpKitProvider.d.ts.map +1 -0
  164. package/dist/providers/IpKitProvider/__docs__/Example.d.ts +11 -0
  165. package/dist/providers/IpKitProvider/__docs__/Example.d.ts.map +1 -0
  166. package/dist/providers/IpKitProvider/__docs__/IpKitProvider.stories.d.ts +37 -0
  167. package/dist/providers/IpKitProvider/__docs__/IpKitProvider.stories.d.ts.map +1 -0
  168. package/dist/providers/IpKitProvider/index.d.ts +2 -0
  169. package/dist/providers/IpKitProvider/index.d.ts.map +1 -0
  170. package/dist/providers/index.d.ts +2 -0
  171. package/dist/providers/index.d.ts.map +1 -0
  172. package/dist/server-types.d.ts +3868 -0
  173. package/dist/server.cjs.js +2 -0
  174. package/dist/server.cjs.js.map +1 -0
  175. package/dist/server.d.ts +4 -0
  176. package/dist/server.d.ts.map +1 -0
  177. package/dist/server.esm.js +2 -0
  178. package/dist/server.esm.js.map +1 -0
  179. package/dist/stories/data/index.d.ts +9 -0
  180. package/dist/stories/data/index.d.ts.map +1 -0
  181. package/dist/storyprotocol-storykit.cjs.js +2 -0
  182. package/dist/storyprotocol-storykit.cjs.js.map +1 -0
  183. package/dist/storyprotocol-storykit.esm.js +2 -0
  184. package/dist/storyprotocol-storykit.esm.js.map +1 -0
  185. package/dist/types/assets.d.ts +58 -0
  186. package/dist/types/assets.d.ts.map +1 -0
  187. package/dist/types/chains.d.ts +25 -0
  188. package/dist/types/chains.d.ts.map +1 -0
  189. package/dist/types/index.d.ts +4 -0
  190. package/dist/types/index.d.ts.map +1 -0
  191. package/dist/types/openapi.d.ts +31 -0
  192. package/dist/types/openapi.d.ts.map +1 -0
  193. package/dist/types/schema.d.ts +1168 -0
  194. package/dist/types/schema.d.ts.map +1 -0
  195. package/dist/types.d.ts +4004 -0
  196. package/package.json +132 -0
@@ -0,0 +1,4004 @@
1
+ import * as openapi_fetch from 'openapi-fetch';
2
+ import { Client } from 'openapi-fetch';
3
+ import { Address } from 'viem';
4
+ import React from 'react';
5
+ import { ClassValue } from 'clsx';
6
+ import { UseQueryResult } from '@tanstack/react-query';
7
+
8
+ interface paths {
9
+ "/assets": {
10
+ parameters: {
11
+ query?: never;
12
+ header?: never;
13
+ path?: never;
14
+ cookie?: never;
15
+ };
16
+ get?: never;
17
+ put?: never;
18
+ /**
19
+ * List IP Assets
20
+ * @description Retrieve a list of IP assets with pagination and filtering options. The 'where' field is optional and should only be provided when filtering by specific IP IDs, owner address, or token contract address. This endpoint can also be used to fetch a single asset by passing its ID in the ipIds filter.
21
+ */
22
+ post: operations["listIPAssetsV4"];
23
+ delete?: never;
24
+ options?: never;
25
+ head?: never;
26
+ patch?: never;
27
+ trace?: never;
28
+ };
29
+ "/assets/edges": {
30
+ parameters: {
31
+ query?: never;
32
+ header?: never;
33
+ path?: never;
34
+ cookie?: never;
35
+ };
36
+ get?: never;
37
+ put?: never;
38
+ /**
39
+ * List IP Asset Edges
40
+ * @description Retrieve a list of edges (derivative registered events) that represent relationships between IP assets. These edges show parent-child relationships formed through licensing.
41
+ */
42
+ post: operations["listEdgesV4"];
43
+ delete?: never;
44
+ options?: never;
45
+ head?: never;
46
+ patch?: never;
47
+ trace?: never;
48
+ };
49
+ "/collections": {
50
+ parameters: {
51
+ query?: never;
52
+ header?: never;
53
+ path?: never;
54
+ cookie?: never;
55
+ };
56
+ get?: never;
57
+ put?: never;
58
+ /**
59
+ * List Collections
60
+ * @description Retrieve a list of collections with pagination and filtering options. Collections are ordered by most recent or least recent updated time only. Collections are automatically enriched with metadata. The 'where' field is optional and should only be provided when filtering by specific collection addresses or asset counts. This endpoint can also be used to fetch a single collection by passing its address in the collectionAddresses filter. Collections that don't exist in Alchemy or encounter errors will return with empty metadata instead of failing the entire request.
61
+ */
62
+ post: operations["listCollectionsV4"];
63
+ delete?: never;
64
+ options?: never;
65
+ head?: never;
66
+ patch?: never;
67
+ trace?: never;
68
+ };
69
+ "/disputes": {
70
+ parameters: {
71
+ query?: never;
72
+ header?: never;
73
+ path?: never;
74
+ cookie?: never;
75
+ };
76
+ get?: never;
77
+ put?: never;
78
+ /**
79
+ * List Disputes
80
+ * @description Retrieve a paginated, filtered list of disputes from the SOS database.
81
+ * This endpoint supports various filtering options including:
82
+ * - Filter by dispute ID, target IP ID, initiator address, or status
83
+ * - Filter by block number ranges (blockNumber, blockNumberLte, blockNumberGte)
84
+ * - Sort by block number, dispute timestamp, or ID
85
+ * - Pagination with configurable limit and offset
86
+ *
87
+ * Key v4 Enhancements:
88
+ * - Flattened request structure: Query parameters are directly in the request body, not nested in an "options" object
89
+ * - Offset-based pagination: Unlike v3, this endpoint supports both limit and offset parameters for flexible pagination
90
+ * - Block number range filtering: Added blockNumberGte for greater-than-or-equal filtering (complements existing blockNumberLte)
91
+ * - Pagination metadata in response: Returns total count and hasMore flag
92
+ *
93
+ * The response format is aligned with v3 for compatibility, using big integers for numeric fields and hex strings for data fields.
94
+ */
95
+ post: operations["listDisputesV4"];
96
+ delete?: never;
97
+ options?: never;
98
+ head?: never;
99
+ patch?: never;
100
+ trace?: never;
101
+ };
102
+ "/disputes/{disputeId}": {
103
+ parameters: {
104
+ query?: never;
105
+ header?: never;
106
+ path?: never;
107
+ cookie?: never;
108
+ };
109
+ /**
110
+ * Get a Dispute
111
+ * @description Retrieve a single dispute by its ID from the SOS database. This endpoint provides detailed information about a specific dispute including its status, involved parties, and related metadata.
112
+ */
113
+ get: operations["getDisputeV4"];
114
+ put?: never;
115
+ post?: never;
116
+ delete?: never;
117
+ options?: never;
118
+ head?: never;
119
+ patch?: never;
120
+ trace?: never;
121
+ };
122
+ "/licenses/tokens": {
123
+ parameters: {
124
+ query?: never;
125
+ header?: never;
126
+ path?: never;
127
+ cookie?: never;
128
+ };
129
+ get?: never;
130
+ put?: never;
131
+ /**
132
+ * Get License Tokens
133
+ * @description Retrieve license tokens with optional filtering. If no filters are provided, returns all license tokens. Supports filtering by owner wallet address and/or licensor IP ID. Results are paginated and can be ordered by 'blockNumber' (default: descending).
134
+ */
135
+ post: operations["getLicenseTokensV4"];
136
+ delete?: never;
137
+ options?: never;
138
+ head?: never;
139
+ patch?: never;
140
+ trace?: never;
141
+ };
142
+ "/search": {
143
+ parameters: {
144
+ query?: never;
145
+ header?: never;
146
+ path?: never;
147
+ cookie?: never;
148
+ };
149
+ get?: never;
150
+ put?: never;
151
+ /**
152
+ * Search IP Assets
153
+ * @description Perform vector search for IP assets based on query text and optional media type filter. This endpoint uses AI-powered search to find relevant assets by semantic similarity.
154
+ */
155
+ post: operations["searchV4"];
156
+ delete?: never;
157
+ options?: never;
158
+ head?: never;
159
+ patch?: never;
160
+ trace?: never;
161
+ };
162
+ "/transactions": {
163
+ parameters: {
164
+ query?: never;
165
+ header?: never;
166
+ path?: never;
167
+ cookie?: never;
168
+ };
169
+ get?: never;
170
+ put?: never;
171
+ /**
172
+ * List IP Transactions
173
+ * @description Retrieve a list of IP transactions with pagination and filtering options. The 'where' field is optional and should only be provided when filtering by specific transaction hashes, event types, or block ranges. This endpoint can also be used to fetch specific transactions by passing their hashes in the txHashes filter.
174
+ */
175
+ post: operations["listTransactionsV4"];
176
+ delete?: never;
177
+ options?: never;
178
+ head?: never;
179
+ patch?: never;
180
+ trace?: never;
181
+ };
182
+ }
183
+ interface components {
184
+ schemas: {
185
+ CollectionsRequestBodyHuma: {
186
+ /**
187
+ * Format: uri
188
+ * @description A URL to the JSON Schema for this object.
189
+ */
190
+ readonly $schema?: string;
191
+ /**
192
+ * @description Field to order results by (only updatedAt is supported)
193
+ * @default updatedAt
194
+ * @enum {string}
195
+ */
196
+ orderBy: "updatedAt";
197
+ /**
198
+ * @description Order direction: asc for least recent, desc for most recent
199
+ * @default desc
200
+ * @enum {string}
201
+ */
202
+ orderDirection: "asc" | "desc";
203
+ /** @description Pagination configuration */
204
+ pagination?: components["schemas"]["PaginationOptionsHuma"];
205
+ /** @description Optional filter options for collections */
206
+ where?: components["schemas"]["CollectionsWhereOptionsHuma"];
207
+ };
208
+ CollectionsResponseBodyHuma: {
209
+ /**
210
+ * Format: uri
211
+ * @description A URL to the JSON Schema for this object.
212
+ */
213
+ readonly $schema?: string;
214
+ /** @description List of enriched collections */
215
+ data: components["schemas"]["EnrichedCollection"][] | null;
216
+ /** @description Pagination metadata */
217
+ pagination?: components["schemas"]["PaginationMetadataHuma"];
218
+ };
219
+ CollectionsWhereOptionsHuma: {
220
+ /** @description List of collection addresses to filter by (max 200) */
221
+ collectionAddresses?: string[] | null;
222
+ /**
223
+ * Format: int64
224
+ * @description Maximum asset count threshold
225
+ */
226
+ maxAssetCount?: number;
227
+ /**
228
+ * Format: int64
229
+ * @description Minimum asset count threshold
230
+ */
231
+ minAssetCount?: number;
232
+ };
233
+ ContractMetadata: {
234
+ address: string;
235
+ chain: string;
236
+ contractDeployer: string;
237
+ /** Format: int64 */
238
+ deployedBlockNumber: number;
239
+ name: string;
240
+ openSeaMetadata: components["schemas"]["ContractMetadataOpenSeaMetadataStruct"];
241
+ symbol: string;
242
+ tokenType: string;
243
+ totalSupply: string;
244
+ };
245
+ ContractMetadataByAddressResponse: {
246
+ address: string;
247
+ chain: string;
248
+ contractDeployer: string;
249
+ /** Format: int64 */
250
+ deployedBlockNumber: number;
251
+ name: string;
252
+ openSeaMetadata: components["schemas"]["ContractMetadataByAddressResponseOpenSeaMetadataStruct"];
253
+ symbol: string;
254
+ tokenType: string;
255
+ totalSupply: string;
256
+ };
257
+ ContractMetadataByAddressResponseOpenSeaMetadataStruct: {
258
+ bannerImageUrl: string;
259
+ collectionName: string;
260
+ collectionSlug: string;
261
+ description: string;
262
+ discordUrl: string;
263
+ externalUrl: string | null;
264
+ /** Format: double */
265
+ floorPrice: number;
266
+ imageUrl: string;
267
+ /** Format: date-time */
268
+ lastIngestedAt: string;
269
+ safelistRequestStatus: string;
270
+ twitterUsername: string;
271
+ };
272
+ ContractMetadataOpenSeaMetadataStruct: {
273
+ bannerImageUrl: string;
274
+ collectionName: string;
275
+ collectionSlug: string;
276
+ description: string;
277
+ discordUrl: string;
278
+ externalUrl: string | null;
279
+ /** Format: double */
280
+ floorPrice: number;
281
+ imageUrl: string;
282
+ /** Format: date-time */
283
+ lastIngestedAt: string;
284
+ safelistRequestStatus: string;
285
+ twitterUsername: string;
286
+ };
287
+ DerivativeRegisteredEvent: {
288
+ /** Format: int64 */
289
+ blockNumber: number;
290
+ /** Format: date-time */
291
+ blockTimestamp: string;
292
+ caller: string;
293
+ childIpId: string;
294
+ /** Format: int64 */
295
+ id: number;
296
+ licenseTemplate: string;
297
+ licenseTermsId: string;
298
+ licenseTokenId: string;
299
+ /** Format: int64 */
300
+ logIndex: number;
301
+ parentIpId: string;
302
+ /** Format: date-time */
303
+ processedAt: string;
304
+ txHash: string;
305
+ };
306
+ Dispute: {
307
+ arbitrationPolicy: string;
308
+ blockNumber: string | null;
309
+ blockTimestamp?: string;
310
+ counterEvidenceHash: string;
311
+ currentTag: string;
312
+ data: string;
313
+ deletedAt?: string;
314
+ disputeTimestamp: string | null;
315
+ evidenceHash: string;
316
+ id: string | null;
317
+ initiator: string;
318
+ liveness: string | null;
319
+ logIndex?: string;
320
+ status: string;
321
+ targetIpId: string;
322
+ targetTag: string;
323
+ transactionHash: string;
324
+ umaLink?: string;
325
+ };
326
+ DisputePaginationHuma: {
327
+ /**
328
+ * Format: int64
329
+ * @description Number of items to return (max: 200)
330
+ * @default 100
331
+ */
332
+ limit: number;
333
+ /**
334
+ * Format: int64
335
+ * @description Number of items to skip for pagination (v4 enhancement)
336
+ * @default 0
337
+ */
338
+ offset: number;
339
+ };
340
+ DisputePaginationMetadataHuma: {
341
+ /** @description Whether there are more disputes */
342
+ hasMore: boolean;
343
+ /**
344
+ * Format: int64
345
+ * @description Current limit
346
+ */
347
+ limit: number;
348
+ /**
349
+ * Format: int64
350
+ * @description Current offset
351
+ */
352
+ offset: number;
353
+ /**
354
+ * Format: int64
355
+ * @description Total count of disputes
356
+ */
357
+ total?: number;
358
+ };
359
+ DisputeWhereHuma: {
360
+ /** @description Filter by exact block number */
361
+ blockNumber?: string;
362
+ /** @description Filter by block number >= this value (v4 enhancement) */
363
+ blockNumberGte?: string;
364
+ /** @description Filter by block number <= this value */
365
+ blockNumberLte?: string;
366
+ /** @description Dispute ID to filter by */
367
+ id?: string;
368
+ /** @description Initiator wallet address to filter by */
369
+ initiator?: string;
370
+ /** @description Target IP ID to filter by */
371
+ targetIpId?: string;
372
+ };
373
+ DisputesRequestBodyHuma: {
374
+ /**
375
+ * Format: uri
376
+ * @description A URL to the JSON Schema for this object.
377
+ */
378
+ readonly $schema?: string;
379
+ /** @description Field to order results by (must be blockNumber or empty) */
380
+ orderBy?: string;
381
+ /** @description Order direction for results (asc or desc) */
382
+ orderDirection?: string;
383
+ /** @description Pagination configuration */
384
+ pagination?: components["schemas"]["DisputePaginationHuma"];
385
+ /** @description Filter options for disputes */
386
+ where?: components["schemas"]["DisputeWhereHuma"];
387
+ };
388
+ EdgesRequestBodyHuma: {
389
+ /**
390
+ * Format: uri
391
+ * @description A URL to the JSON Schema for this object.
392
+ */
393
+ readonly $schema?: string;
394
+ /**
395
+ * @description Field to order results by (currently only blockNumber is supported)
396
+ * @enum {string}
397
+ */
398
+ orderBy?: "blockNumber";
399
+ /**
400
+ * @description Order direction for results
401
+ * @default desc
402
+ * @enum {string}
403
+ */
404
+ orderDirection: "asc" | "desc";
405
+ /** @description Pagination configuration */
406
+ pagination?: components["schemas"]["PaginationOptionsHuma"];
407
+ /** @description Filter options for edges */
408
+ where?: components["schemas"]["EdgesWhereOptionsHuma"];
409
+ };
410
+ EdgesResponseHumaBody: {
411
+ /**
412
+ * Format: uri
413
+ * @description A URL to the JSON Schema for this object.
414
+ */
415
+ readonly $schema?: string;
416
+ /** @description List of derivative registered events (edges) */
417
+ data: components["schemas"]["DerivativeRegisteredEvent"][] | null;
418
+ /** @description Pagination metadata */
419
+ pagination?: components["schemas"]["PaginationMetadataHuma"];
420
+ };
421
+ EdgesWhereOptionsHuma: {
422
+ /**
423
+ * Format: int64
424
+ * @description Block number to filter by
425
+ */
426
+ blockNumber?: number;
427
+ /** @description Child IP ID to filter by */
428
+ childIpId?: string;
429
+ /** @description Parent IP ID to filter by */
430
+ parentIpId?: string;
431
+ /** @description Transaction hash to filter by */
432
+ txHash?: string;
433
+ };
434
+ EnrichedCollection: {
435
+ /** Format: int64 */
436
+ assetCount: number;
437
+ /** Format: int64 */
438
+ cancelledDisputeCount: number;
439
+ collectionAddress: string;
440
+ collectionMetadata?: components["schemas"]["ContractMetadataByAddressResponse"];
441
+ /** Format: date-time */
442
+ createdAt: string;
443
+ /** Format: int64 */
444
+ judgedDisputeCount: number;
445
+ /** Format: int64 */
446
+ licensesCount: number;
447
+ /** Format: int64 */
448
+ raisedDisputeCount: number;
449
+ /** Format: int64 */
450
+ resolvedDisputeCount: number;
451
+ /** Format: date-time */
452
+ updatedAt: string;
453
+ };
454
+ EnrichedIPAsset: {
455
+ /** Format: int64 */
456
+ ancestorsCount: number;
457
+ /** Format: int64 */
458
+ blockNumber: number;
459
+ chainId: string;
460
+ /** Format: int64 */
461
+ childrenCount: number;
462
+ /** Format: date-time */
463
+ createdAt: string;
464
+ /** Format: int64 */
465
+ descendantsCount: number;
466
+ description: string;
467
+ infringementStatus?: components["schemas"]["InfringementStatus"][] | null;
468
+ ipId: string;
469
+ ipaMetadataUri?: string;
470
+ isInGroup: boolean;
471
+ /** Format: date-time */
472
+ lastUpdatedAt: string;
473
+ licenses?: components["schemas"]["License"][] | null;
474
+ /** Format: int64 */
475
+ logIndex: number;
476
+ moderationStatus?: components["schemas"]["ModerationStatus"];
477
+ name: string;
478
+ nftMetadata?: components["schemas"]["NFTMetadata"];
479
+ ownerAddress: string;
480
+ /** Format: int64 */
481
+ parentsCount: number;
482
+ registrationDate: string;
483
+ rootIPs: string[] | null;
484
+ title: string;
485
+ tokenContract: string;
486
+ tokenId: string;
487
+ txHash: string;
488
+ uri: string;
489
+ };
490
+ ErrorDetail: {
491
+ /** @description Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id' */
492
+ location?: string;
493
+ /** @description Error message text */
494
+ message?: string;
495
+ /** @description The value at the given location */
496
+ value?: unknown;
497
+ };
498
+ ErrorModel: {
499
+ /**
500
+ * Format: uri
501
+ * @description A URL to the JSON Schema for this object.
502
+ */
503
+ readonly $schema?: string;
504
+ /** @description A human-readable explanation specific to this occurrence of the problem. */
505
+ detail?: string;
506
+ /** @description Optional list of individual error details */
507
+ errors?: components["schemas"]["ErrorDetail"][] | null;
508
+ /**
509
+ * Format: uri
510
+ * @description A URI reference that identifies the specific occurrence of the problem.
511
+ */
512
+ instance?: string;
513
+ /**
514
+ * Format: int64
515
+ * @description HTTP status code
516
+ */
517
+ status?: number;
518
+ /** @description A short, human-readable summary of the problem type. This value should not change between occurrences of the error. */
519
+ title?: string;
520
+ /**
521
+ * Format: uri
522
+ * @description A URI reference to human-readable documentation for the error.
523
+ * @default about:blank
524
+ */
525
+ type: string;
526
+ };
527
+ GetDisputeResponseHumaBody: {
528
+ /**
529
+ * Format: uri
530
+ * @description A URL to the JSON Schema for this object.
531
+ */
532
+ readonly $schema?: string;
533
+ /** @description Dispute information */
534
+ data: components["schemas"]["Dispute"];
535
+ };
536
+ IPAssetsRequestBodyHuma: {
537
+ /**
538
+ * Format: uri
539
+ * @description A URL to the JSON Schema for this object.
540
+ */
541
+ readonly $schema?: string;
542
+ /** @description Include license information in response */
543
+ includeLicenses?: boolean;
544
+ /** @description Filter for moderated content only */
545
+ moderated?: boolean;
546
+ /**
547
+ * @description Field to order results by
548
+ * @default blockNumber
549
+ * @enum {string}
550
+ */
551
+ orderBy: "descendantCount" | "blockNumber" | "createdAt";
552
+ /**
553
+ * @description Order direction for results
554
+ * @default desc
555
+ * @enum {string}
556
+ */
557
+ orderDirection: "asc" | "desc";
558
+ /** @description Pagination configuration */
559
+ pagination?: components["schemas"]["PaginationOptionsHuma"];
560
+ /** @description Optional filter options for IP assets */
561
+ where?: components["schemas"]["IPAssetsWhereOptionsHuma"];
562
+ };
563
+ IPAssetsResponseHumaBody: {
564
+ /**
565
+ * Format: uri
566
+ * @description A URL to the JSON Schema for this object.
567
+ */
568
+ readonly $schema?: string;
569
+ /** @description List of enriched IP assets */
570
+ data: components["schemas"]["EnrichedIPAsset"][] | null;
571
+ /** @description Pagination metadata */
572
+ pagination?: components["schemas"]["PaginationMetadataHuma"];
573
+ };
574
+ IPAssetsWhereOptionsHuma: {
575
+ /** @description List of IP asset IDs to filter by (max 200) */
576
+ ipIds?: string[] | null;
577
+ /** @description Owner wallet address to filter by */
578
+ ownerAddress?: string;
579
+ /** @description Token contract address to filter by */
580
+ tokenContract?: string;
581
+ };
582
+ IPSearchResult: {
583
+ description: string;
584
+ ipId: string;
585
+ mediaType: string;
586
+ /** Format: double */
587
+ score: number;
588
+ /** Format: double */
589
+ similarity: number;
590
+ title: string;
591
+ };
592
+ IPTransaction: {
593
+ /** Format: int64 */
594
+ blockNumber: number;
595
+ /** Format: date-time */
596
+ createdAt: string;
597
+ eventType: string;
598
+ /** Format: int64 */
599
+ id: number;
600
+ initiator: string;
601
+ ipId: string;
602
+ /** Format: int64 */
603
+ logIndex: number;
604
+ txHash: string;
605
+ };
606
+ InfringementStatus: {
607
+ /** Format: date-time */
608
+ createdAt: string;
609
+ customData: string;
610
+ infringementDetails: string;
611
+ isInfringing: boolean;
612
+ providerName: string;
613
+ providerURL: string;
614
+ /** Format: date-time */
615
+ responseTime: string;
616
+ status: string;
617
+ /** Format: date-time */
618
+ updatedAt: string;
619
+ };
620
+ License: {
621
+ /** Format: date-time */
622
+ createdAt: string;
623
+ licenseTemplateId: string;
624
+ licenseTermsId: string;
625
+ licensingConfig: components["schemas"]["LicensingConfig"];
626
+ templateMetadataUri: string;
627
+ templateName: string;
628
+ terms: components["schemas"]["LicenseTerms"];
629
+ /** Format: date-time */
630
+ updatedAt: string;
631
+ };
632
+ LicenseTerms: {
633
+ commercialAttribution: boolean;
634
+ commercialRevCeiling: string;
635
+ /** Format: int64 */
636
+ commercialRevShare: number;
637
+ commercialUse: boolean;
638
+ commercializerChecker: string;
639
+ commercializerCheckerData: string;
640
+ currency: string;
641
+ defaultMintingFee: string;
642
+ derivativeRevCeiling: string;
643
+ derivativesAllowed: boolean;
644
+ derivativesApproval: boolean;
645
+ derivativesAttribution: boolean;
646
+ derivativesReciprocal: boolean;
647
+ expiration: string;
648
+ royaltyPolicy: string;
649
+ transferable: boolean;
650
+ uri: string;
651
+ };
652
+ LicenseToken: {
653
+ blockNumber: string;
654
+ blockTime: string;
655
+ burntAt: string;
656
+ id: string;
657
+ licenseTemplate: string;
658
+ licenseTermsId: string;
659
+ licensorIpId: string;
660
+ owner: string;
661
+ transferable: string;
662
+ };
663
+ LicenseTokensRequestBodyHuma: {
664
+ /**
665
+ * Format: uri
666
+ * @description A URL to the JSON Schema for this object.
667
+ */
668
+ readonly $schema?: string;
669
+ /**
670
+ * @description Field to order results by (only 'blockNumber' is supported)
671
+ * @default blockNumber
672
+ * @enum {string}
673
+ */
674
+ orderBy: "blockNumber";
675
+ /**
676
+ * @description Order direction for results ('asc' for ascending, 'desc' for descending)
677
+ * @default desc
678
+ * @enum {string}
679
+ */
680
+ orderDirection: "asc" | "desc";
681
+ /** @description Pagination configuration (optional, defaults: limit=100, offset=0) */
682
+ pagination?: components["schemas"]["PaginationOptionsHuma"];
683
+ /** @description Optional filter options for license tokens */
684
+ where?: components["schemas"]["LicenseTokensWhereOptionsHuma"];
685
+ };
686
+ LicenseTokensResponseHumaBody: {
687
+ /**
688
+ * Format: uri
689
+ * @description A URL to the JSON Schema for this object.
690
+ */
691
+ readonly $schema?: string;
692
+ /** @description List of license tokens matching the filter criteria */
693
+ data: components["schemas"]["LicenseToken"][] | null;
694
+ /** @description Pagination metadata including total count and hasMore flag */
695
+ pagination?: components["schemas"]["PaginationMetadataHuma"];
696
+ };
697
+ LicenseTokensWhereOptionsHuma: {
698
+ /** @description Optional licensor IP ID to filter license tokens */
699
+ licensorIpId?: string;
700
+ /** @description Optional owner wallet address to filter license tokens */
701
+ ownerAddress?: string;
702
+ };
703
+ LicensingConfig: {
704
+ /** Format: int64 */
705
+ commercialRevShare: number;
706
+ disabled: boolean;
707
+ expectGroupRewardPool: string;
708
+ /** Format: int64 */
709
+ expectMinimumGroupRewardShare: number;
710
+ hookData: string;
711
+ isSet: boolean;
712
+ licensingHook: string;
713
+ mintingFee: string;
714
+ };
715
+ ListDisputesResponseHumaBody: {
716
+ /**
717
+ * Format: uri
718
+ * @description A URL to the JSON Schema for this object.
719
+ */
720
+ readonly $schema?: string;
721
+ /** @description List of disputes */
722
+ data: components["schemas"]["Dispute"][] | null;
723
+ /** @description Pagination metadata (v4 enhancement, not in v3) */
724
+ pagination?: components["schemas"]["DisputePaginationMetadataHuma"];
725
+ };
726
+ ModerationStatus: {
727
+ adult: string;
728
+ medical: string;
729
+ racy: string;
730
+ spoof: string;
731
+ violence: string;
732
+ };
733
+ NFTMetadata: {
734
+ animation: components["schemas"]["NFTMetadataAnimationStruct"];
735
+ collection: components["schemas"]["NFTMetadataCollectionStruct"];
736
+ contract: components["schemas"]["ContractMetadata"];
737
+ contract_address: string;
738
+ description: string | null;
739
+ image: components["schemas"]["NFTMetadataImageStruct"];
740
+ mint: components["schemas"]["NFTMetadataMintStruct"];
741
+ name: string;
742
+ nft_id: string;
743
+ raw: unknown;
744
+ /** Format: date-time */
745
+ timeLastUpdated: string;
746
+ tokenId: string;
747
+ tokenType: string;
748
+ tokenUri: string;
749
+ };
750
+ NFTMetadataAnimationStruct: {
751
+ cachedUrl: string;
752
+ contentType: string;
753
+ originalUrl: string;
754
+ /** Format: int64 */
755
+ size: number;
756
+ };
757
+ NFTMetadataCollectionStruct: {
758
+ bannerImageUrl: string;
759
+ externalUrl: string | null;
760
+ name: string;
761
+ slug: string;
762
+ };
763
+ NFTMetadataImageStruct: {
764
+ cachedUrl: string;
765
+ contentType: string;
766
+ originalUrl: string;
767
+ pngUrl: string;
768
+ /** Format: int64 */
769
+ size: number;
770
+ thumbnailUrl: string;
771
+ };
772
+ NFTMetadataMintStruct: {
773
+ /** Format: int64 */
774
+ blockNumber: number | null;
775
+ mintAddress: string | null;
776
+ timestamp: string | null;
777
+ transactionHash: string | null;
778
+ };
779
+ PaginationMetadataHuma: {
780
+ /** @description Whether there are more items */
781
+ hasMore: boolean;
782
+ /**
783
+ * Format: int64
784
+ * @description Current limit
785
+ */
786
+ limit: number;
787
+ /**
788
+ * Format: int64
789
+ * @description Current offset
790
+ */
791
+ offset: number;
792
+ /**
793
+ * Format: int64
794
+ * @description Total count of items
795
+ */
796
+ total: number;
797
+ };
798
+ PaginationOptionsHuma: {
799
+ /**
800
+ * Format: int64
801
+ * @description Number of items to return
802
+ * @default 20
803
+ */
804
+ limit: number;
805
+ /**
806
+ * Format: int64
807
+ * @description Number of items to skip
808
+ * @default 0
809
+ */
810
+ offset: number;
811
+ };
812
+ SearchRequestBodyHuma: {
813
+ /**
814
+ * Format: uri
815
+ * @description A URL to the JSON Schema for this object.
816
+ */
817
+ readonly $schema?: string;
818
+ /**
819
+ * @description Optional media type filter - must be 'audio', 'video', or 'image'. Leave empty to search all media types
820
+ * @enum {string}
821
+ */
822
+ mediaType?: "audio" | "video" | "image";
823
+ /** @description Pagination configuration */
824
+ pagination?: components["schemas"]["PaginationOptionsHuma"];
825
+ /** @description The search query string */
826
+ query: string;
827
+ };
828
+ SearchResponseBodyHuma: {
829
+ /**
830
+ * Format: uri
831
+ * @description A URL to the JSON Schema for this object.
832
+ */
833
+ readonly $schema?: string;
834
+ /** @description List of IP asset search results */
835
+ data: components["schemas"]["IPSearchResult"][] | null;
836
+ /** @description Pagination information */
837
+ pagination?: components["schemas"]["PaginationMetadataHuma"];
838
+ /**
839
+ * Format: int64
840
+ * @description Total number of search results found
841
+ */
842
+ total: number;
843
+ };
844
+ TransactionsRequestBodyHuma: {
845
+ /**
846
+ * Format: uri
847
+ * @description A URL to the JSON Schema for this object.
848
+ */
849
+ readonly $schema?: string;
850
+ /**
851
+ * @description Field to order results by
852
+ * @default blockNumber
853
+ * @enum {string}
854
+ */
855
+ orderBy: "blockNumber" | "createdAt" | "eventType" | "txHash" | "ipId" | "initiator";
856
+ /**
857
+ * @description Order direction for results
858
+ * @default desc
859
+ * @enum {string}
860
+ */
861
+ orderDirection: "asc" | "desc";
862
+ /** @description Pagination configuration */
863
+ pagination?: components["schemas"]["PaginationOptionsHuma"];
864
+ /** @description Optional filter options for transactions */
865
+ where?: components["schemas"]["TransactionsWhereOptionsHuma"];
866
+ };
867
+ TransactionsResponseBodyHuma: {
868
+ /**
869
+ * Format: uri
870
+ * @description A URL to the JSON Schema for this object.
871
+ */
872
+ readonly $schema?: string;
873
+ /** @description List of IP transactions */
874
+ data: components["schemas"]["IPTransaction"][] | null;
875
+ /** @description Pagination information */
876
+ pagination?: components["schemas"]["PaginationMetadataHuma"];
877
+ };
878
+ TransactionsWhereOptionsHuma: {
879
+ /**
880
+ * Format: int64
881
+ * @description Filter transactions from this block number (inclusive)
882
+ */
883
+ blockGte?: number;
884
+ /**
885
+ * Format: int64
886
+ * @description Filter transactions up to this block number (inclusive)
887
+ */
888
+ blockLte?: number;
889
+ /** @description List of event types to filter by (max 50) */
890
+ eventTypes?: string[] | null;
891
+ /** @description List of initiator addresses to filter by (max 200) */
892
+ initiators?: string[] | null;
893
+ /** @description List of IP asset IDs to filter by (max 200) */
894
+ ipIds?: string[] | null;
895
+ /** @description List of transaction hashes to filter by (max 200) */
896
+ txHashes?: string[] | null;
897
+ };
898
+ };
899
+ responses: never;
900
+ parameters: never;
901
+ requestBodies: never;
902
+ headers: never;
903
+ pathItems: never;
904
+ }
905
+ interface operations {
906
+ listIPAssetsV4: {
907
+ parameters: {
908
+ query?: never;
909
+ header?: never;
910
+ path?: never;
911
+ cookie?: never;
912
+ };
913
+ requestBody: {
914
+ content: {
915
+ "application/json": components["schemas"]["IPAssetsRequestBodyHuma"];
916
+ };
917
+ };
918
+ responses: {
919
+ /** @description OK */
920
+ 200: {
921
+ headers: {
922
+ [name: string]: unknown;
923
+ };
924
+ content: {
925
+ "application/json": components["schemas"]["IPAssetsResponseHumaBody"];
926
+ };
927
+ };
928
+ /** @description Error */
929
+ default: {
930
+ headers: {
931
+ [name: string]: unknown;
932
+ };
933
+ content: {
934
+ "application/problem+json": components["schemas"]["ErrorModel"];
935
+ };
936
+ };
937
+ };
938
+ };
939
+ listEdgesV4: {
940
+ parameters: {
941
+ query?: never;
942
+ header?: never;
943
+ path?: never;
944
+ cookie?: never;
945
+ };
946
+ requestBody: {
947
+ content: {
948
+ "application/json": components["schemas"]["EdgesRequestBodyHuma"];
949
+ };
950
+ };
951
+ responses: {
952
+ /** @description OK */
953
+ 200: {
954
+ headers: {
955
+ [name: string]: unknown;
956
+ };
957
+ content: {
958
+ "application/json": components["schemas"]["EdgesResponseHumaBody"];
959
+ };
960
+ };
961
+ /** @description Error */
962
+ default: {
963
+ headers: {
964
+ [name: string]: unknown;
965
+ };
966
+ content: {
967
+ "application/problem+json": components["schemas"]["ErrorModel"];
968
+ };
969
+ };
970
+ };
971
+ };
972
+ listCollectionsV4: {
973
+ parameters: {
974
+ query?: never;
975
+ header?: never;
976
+ path?: never;
977
+ cookie?: never;
978
+ };
979
+ requestBody: {
980
+ content: {
981
+ "application/json": components["schemas"]["CollectionsRequestBodyHuma"];
982
+ };
983
+ };
984
+ responses: {
985
+ /** @description OK */
986
+ 200: {
987
+ headers: {
988
+ [name: string]: unknown;
989
+ };
990
+ content: {
991
+ "application/json": components["schemas"]["CollectionsResponseBodyHuma"];
992
+ };
993
+ };
994
+ /** @description Error */
995
+ default: {
996
+ headers: {
997
+ [name: string]: unknown;
998
+ };
999
+ content: {
1000
+ "application/problem+json": components["schemas"]["ErrorModel"];
1001
+ };
1002
+ };
1003
+ };
1004
+ };
1005
+ listDisputesV4: {
1006
+ parameters: {
1007
+ query?: never;
1008
+ header?: never;
1009
+ path?: never;
1010
+ cookie?: never;
1011
+ };
1012
+ requestBody: {
1013
+ content: {
1014
+ "application/json": components["schemas"]["DisputesRequestBodyHuma"];
1015
+ };
1016
+ };
1017
+ responses: {
1018
+ /** @description OK */
1019
+ 200: {
1020
+ headers: {
1021
+ [name: string]: unknown;
1022
+ };
1023
+ content: {
1024
+ "application/json": components["schemas"]["ListDisputesResponseHumaBody"];
1025
+ };
1026
+ };
1027
+ /** @description Error */
1028
+ default: {
1029
+ headers: {
1030
+ [name: string]: unknown;
1031
+ };
1032
+ content: {
1033
+ "application/problem+json": components["schemas"]["ErrorModel"];
1034
+ };
1035
+ };
1036
+ };
1037
+ };
1038
+ getDisputeV4: {
1039
+ parameters: {
1040
+ query?: never;
1041
+ header?: never;
1042
+ path: {
1043
+ /**
1044
+ * @description Dispute ID to retrieve
1045
+ * @example 123
1046
+ */
1047
+ disputeId: string;
1048
+ };
1049
+ cookie?: never;
1050
+ };
1051
+ requestBody?: never;
1052
+ responses: {
1053
+ /** @description OK */
1054
+ 200: {
1055
+ headers: {
1056
+ [name: string]: unknown;
1057
+ };
1058
+ content: {
1059
+ "application/json": components["schemas"]["GetDisputeResponseHumaBody"];
1060
+ };
1061
+ };
1062
+ /** @description Error */
1063
+ default: {
1064
+ headers: {
1065
+ [name: string]: unknown;
1066
+ };
1067
+ content: {
1068
+ "application/problem+json": components["schemas"]["ErrorModel"];
1069
+ };
1070
+ };
1071
+ };
1072
+ };
1073
+ getLicenseTokensV4: {
1074
+ parameters: {
1075
+ query?: never;
1076
+ header?: never;
1077
+ path?: never;
1078
+ cookie?: never;
1079
+ };
1080
+ requestBody: {
1081
+ content: {
1082
+ "application/json": components["schemas"]["LicenseTokensRequestBodyHuma"];
1083
+ };
1084
+ };
1085
+ responses: {
1086
+ /** @description OK */
1087
+ 200: {
1088
+ headers: {
1089
+ [name: string]: unknown;
1090
+ };
1091
+ content: {
1092
+ "application/json": components["schemas"]["LicenseTokensResponseHumaBody"];
1093
+ };
1094
+ };
1095
+ /** @description Error */
1096
+ default: {
1097
+ headers: {
1098
+ [name: string]: unknown;
1099
+ };
1100
+ content: {
1101
+ "application/problem+json": components["schemas"]["ErrorModel"];
1102
+ };
1103
+ };
1104
+ };
1105
+ };
1106
+ searchV4: {
1107
+ parameters: {
1108
+ query?: never;
1109
+ header?: never;
1110
+ path?: never;
1111
+ cookie?: never;
1112
+ };
1113
+ requestBody: {
1114
+ content: {
1115
+ "application/json": components["schemas"]["SearchRequestBodyHuma"];
1116
+ };
1117
+ };
1118
+ responses: {
1119
+ /** @description OK */
1120
+ 200: {
1121
+ headers: {
1122
+ [name: string]: unknown;
1123
+ };
1124
+ content: {
1125
+ "application/json": components["schemas"]["SearchResponseBodyHuma"];
1126
+ };
1127
+ };
1128
+ /** @description Error */
1129
+ default: {
1130
+ headers: {
1131
+ [name: string]: unknown;
1132
+ };
1133
+ content: {
1134
+ "application/problem+json": components["schemas"]["ErrorModel"];
1135
+ };
1136
+ };
1137
+ };
1138
+ };
1139
+ listTransactionsV4: {
1140
+ parameters: {
1141
+ query?: never;
1142
+ header?: never;
1143
+ path?: never;
1144
+ cookie?: never;
1145
+ };
1146
+ requestBody: {
1147
+ content: {
1148
+ "application/json": components["schemas"]["TransactionsRequestBodyHuma"];
1149
+ };
1150
+ };
1151
+ responses: {
1152
+ /** @description OK */
1153
+ 200: {
1154
+ headers: {
1155
+ [name: string]: unknown;
1156
+ };
1157
+ content: {
1158
+ "application/json": components["schemas"]["TransactionsResponseBodyHuma"];
1159
+ };
1160
+ };
1161
+ /** @description Error */
1162
+ default: {
1163
+ headers: {
1164
+ [name: string]: unknown;
1165
+ };
1166
+ content: {
1167
+ "application/problem+json": components["schemas"]["ErrorModel"];
1168
+ };
1169
+ };
1170
+ };
1171
+ };
1172
+ }
1173
+
1174
+ type ApiClient = Client<paths>;
1175
+ declare const createApiClient: (baseUrl: string) => Client<paths>;
1176
+ declare const stagingClient: Client<paths, `${string}/${string}`>;
1177
+ declare const prodClient: Client<paths, `${string}/${string}`>;
1178
+
1179
+ declare const STORY_AENEID: ChainConfig;
1180
+ declare const STORY_MAINNET: ChainConfig;
1181
+ declare const CHAINS: {
1182
+ [x: string]: ChainConfig;
1183
+ };
1184
+ declare const CHAINID_TO_CHAINNAME: {
1185
+ [key: number]: string;
1186
+ };
1187
+
1188
+ type ERC20Token = {
1189
+ name: string;
1190
+ address: Address;
1191
+ symbol: string;
1192
+ decimals?: number;
1193
+ };
1194
+ type ChainConfig = {
1195
+ id: number;
1196
+ name: string;
1197
+ displayName: string;
1198
+ rpcUrl: string;
1199
+ blockExplorerUrl: string;
1200
+ protocolExplorerUrl: string;
1201
+ apiVersion: string;
1202
+ defaultCurrency?: ERC20Token;
1203
+ };
1204
+ type SupportedChainConfig = typeof STORY_AENEID | typeof STORY_MAINNET;
1205
+ declare enum IPKIT_SUPPORTED_CHAIN {
1206
+ AENEID_TESTNET = "story-aeneid",
1207
+ STORY_MAINNET = "story"
1208
+ }
1209
+ declare const WRAPPED_IP: ERC20Token;
1210
+
1211
+ type Mode = "light" | "dark" | undefined;
1212
+ type Theme = "default" | "story" | string;
1213
+ interface IpKitProviderOptions {
1214
+ apiKey: string;
1215
+ appId?: string;
1216
+ children: React.ReactNode;
1217
+ isTestnet?: boolean;
1218
+ mode?: Mode;
1219
+ theme?: Theme;
1220
+ }
1221
+ declare const IpKitProvider: ({ apiKey, appId, children, isTestnet, mode, theme, }: IpKitProviderOptions) => React.JSX.Element;
1222
+ declare const useIpKit: () => {
1223
+ apiBaseUrl: string;
1224
+ apiClient: ApiClient;
1225
+ apiKey: string;
1226
+ appId: string | undefined;
1227
+ chain: ChainConfig;
1228
+ mode: Mode;
1229
+ theme: Theme;
1230
+ themeClass: string;
1231
+ };
1232
+
1233
+ type QueryKey = ReadonlyArray<unknown>;
1234
+ interface QueryObserverOptions<TQueryFnData = unknown, TError = Error, // eslint-disable-line @typescript-eslint/no-unused-vars
1235
+ TData = TQueryFnData, // eslint-disable-line @typescript-eslint/no-unused-vars
1236
+ TQueryData = TQueryFnData, // eslint-disable-line @typescript-eslint/no-unused-vars
1237
+ TQueryKey extends QueryKey = QueryKey, TPageParam = never> {
1238
+ queryKey?: TQueryKey;
1239
+ queryFn?: TQueryFnData;
1240
+ enabled?: boolean;
1241
+ refetchInterval?: number;
1242
+ }
1243
+
1244
+ type IpQueryOptions = Partial<QueryObserverOptions<any, any, any, any>>;
1245
+ type IPAsset = components["schemas"]["EnrichedIPAsset"];
1246
+ type IPAssetEdge = components["schemas"]["DerivativeRegisteredEvent"];
1247
+ type IPTransaction = components["schemas"]["IPTransaction"];
1248
+ type IPSearchResult = components["schemas"]["IPSearchResult"];
1249
+ type Collection = components["schemas"]["EnrichedCollection"];
1250
+ type CollectionMetadata = components["schemas"]["ContractMetadataByAddressResponse"];
1251
+ type License = components["schemas"]["License"];
1252
+ type LicenseTerms$1 = components["schemas"]["LicenseTerms"];
1253
+ type LicenseToken = components["schemas"]["LicenseToken"];
1254
+ type LicensingConfig = components["schemas"]["LicensingConfig"];
1255
+ type NFTMetadata = components["schemas"]["NFTMetadata"];
1256
+ type InfringementStatus = components["schemas"]["InfringementStatus"];
1257
+ type ModerationStatus = components["schemas"]["ModerationStatus"];
1258
+ type ContractMetadata = components["schemas"]["ContractMetadata"];
1259
+ type Dispute = components["schemas"]["Dispute"];
1260
+ type PILTerms = LicenseTerms$1;
1261
+ type TransactionEventType = "IPRegistered" | "LicenseTermsAttached" | "DerivativeRegistered" | "DisputeRaised" | "DisputeResolved" | "DisputeCancelled" | "DisputeJudgementSet" | "RoyaltyPaid";
1262
+
1263
+ declare enum PIL_FLAVOR {
1264
+ NON_COMMERCIAL_SOCIAL_REMIXING = "Non-Commercial Social Remixing",
1265
+ COMMERCIAL_USE = "Commercial Use",
1266
+ COMMERCIAL_REMIX = "Commercial Remix",
1267
+ CUSTOM = "Custom",
1268
+ OPEN_USE = "Open Use"
1269
+ }
1270
+ type PilFlavor = PIL_FLAVOR.NON_COMMERCIAL_SOCIAL_REMIXING | PIL_FLAVOR.COMMERCIAL_USE | PIL_FLAVOR.COMMERCIAL_REMIX | PIL_FLAVOR.CUSTOM | PIL_FLAVOR.OPEN_USE;
1271
+ interface Trait {
1272
+ trait_type: string;
1273
+ value: string | number;
1274
+ max_value?: number;
1275
+ }
1276
+ interface LicenseOffChainData {
1277
+ aiLearningModels?: boolean;
1278
+ }
1279
+ interface PILTermsWithOffChainData extends PILTerms {
1280
+ offChainData: LicenseOffChainData | undefined;
1281
+ }
1282
+ interface LicenseWithOffChainData extends Omit<License, "terms"> {
1283
+ terms: PILTermsWithOffChainData;
1284
+ }
1285
+ interface LicenseTermsWithOffChainData extends LicenseWithOffChainData {
1286
+ }
1287
+ type SocialMedia = {
1288
+ platform?: string;
1289
+ url?: string;
1290
+ };
1291
+ type Creator = {
1292
+ name?: string;
1293
+ address?: Address;
1294
+ description?: string;
1295
+ contributionPercent?: number;
1296
+ socialMedia?: SocialMedia[];
1297
+ };
1298
+ interface IPMetadata {
1299
+ title?: string;
1300
+ description?: string;
1301
+ ipType?: string;
1302
+ creators?: Creator[];
1303
+ appInfo?: {
1304
+ id?: string;
1305
+ name?: string;
1306
+ website?: string;
1307
+ }[];
1308
+ relationships?: {
1309
+ parentIpId?: Address;
1310
+ type?: string;
1311
+ }[];
1312
+ robotTerms?: {
1313
+ userAgent?: string;
1314
+ allow?: string;
1315
+ };
1316
+ [key: string]: any;
1317
+ }
1318
+
1319
+ declare function cn(...inputs: ClassValue[]): string;
1320
+ declare function shortenAddress(address: string, length?: number): string;
1321
+ declare function camelize(str: string): string;
1322
+ declare function getPilFlavorByLicenseTerms(pilTerms: PILTerms): PilFlavor;
1323
+ declare function getImageUrlFromIpfsUrl(ipfsUrl: string): Promise<string>;
1324
+ declare function convertIpfsUriToUrl(ipfsUri: string): string;
1325
+ declare function getMetadataFromIpfs(ipfsUrl: string): Promise<any>;
1326
+ declare function fetchLicenseOffChainData(uri: string): Promise<any>;
1327
+
1328
+ type LicenseTerms = Partial<PILTerms>;
1329
+ declare function convertLicenseTermObject(licenseTerms: Trait[]): LicenseTerms;
1330
+
1331
+ type CollectionsResponse = paths["/collections"]["post"]["responses"][200]["content"]["application/json"];
1332
+ type CollectionsOptions = Partial<paths["/collections"]["post"]["requestBody"]["content"]["application/json"]>;
1333
+ type GetCollectionsOptions = {
1334
+ apiClient: ApiClient;
1335
+ collectionAddresses?: Address[];
1336
+ options?: CollectionsOptions;
1337
+ apiKey: string;
1338
+ };
1339
+ declare function getCollections({ collectionAddresses, apiClient, options, apiKey }: GetCollectionsOptions): Promise<openapi_fetch.FetchResponse<{
1340
+ parameters: {
1341
+ query?: undefined;
1342
+ header?: undefined;
1343
+ path?: undefined;
1344
+ cookie?: undefined;
1345
+ };
1346
+ requestBody: {
1347
+ content: {
1348
+ "application/json": {
1349
+ readonly $schema?: string | undefined;
1350
+ orderBy: "updatedAt";
1351
+ orderDirection: "asc" | "desc";
1352
+ pagination?: {
1353
+ limit: number;
1354
+ offset: number;
1355
+ } | undefined;
1356
+ where?: {
1357
+ collectionAddresses?: string[] | null | undefined;
1358
+ maxAssetCount?: number | undefined;
1359
+ minAssetCount?: number | undefined;
1360
+ } | undefined;
1361
+ };
1362
+ };
1363
+ };
1364
+ responses: {
1365
+ 200: {
1366
+ headers: {
1367
+ [name: string]: unknown;
1368
+ };
1369
+ content: {
1370
+ "application/json": {
1371
+ readonly $schema?: string | undefined;
1372
+ data: {
1373
+ assetCount: number;
1374
+ cancelledDisputeCount: number;
1375
+ collectionAddress: string;
1376
+ collectionMetadata?: {
1377
+ address: string;
1378
+ chain: string;
1379
+ contractDeployer: string;
1380
+ deployedBlockNumber: number;
1381
+ name: string;
1382
+ openSeaMetadata: {
1383
+ bannerImageUrl: string;
1384
+ collectionName: string;
1385
+ collectionSlug: string;
1386
+ description: string;
1387
+ discordUrl: string;
1388
+ externalUrl: string | null;
1389
+ floorPrice: number;
1390
+ imageUrl: string;
1391
+ lastIngestedAt: string;
1392
+ safelistRequestStatus: string;
1393
+ twitterUsername: string;
1394
+ };
1395
+ symbol: string;
1396
+ tokenType: string;
1397
+ totalSupply: string;
1398
+ } | undefined;
1399
+ createdAt: string;
1400
+ judgedDisputeCount: number;
1401
+ licensesCount: number;
1402
+ raisedDisputeCount: number;
1403
+ resolvedDisputeCount: number;
1404
+ updatedAt: string;
1405
+ }[] | null;
1406
+ pagination?: {
1407
+ hasMore: boolean;
1408
+ limit: number;
1409
+ offset: number;
1410
+ total: number;
1411
+ } | undefined;
1412
+ };
1413
+ };
1414
+ };
1415
+ default: {
1416
+ headers: {
1417
+ [name: string]: unknown;
1418
+ };
1419
+ content: {
1420
+ "application/problem+json": {
1421
+ readonly $schema?: string | undefined;
1422
+ detail?: string | undefined;
1423
+ errors?: {
1424
+ location?: string | undefined;
1425
+ message?: string | undefined;
1426
+ value?: unknown;
1427
+ }[] | null | undefined;
1428
+ instance?: string | undefined;
1429
+ status?: number | undefined;
1430
+ title?: string | undefined;
1431
+ type: string;
1432
+ };
1433
+ };
1434
+ };
1435
+ };
1436
+ }, {
1437
+ params?: {
1438
+ query?: undefined;
1439
+ header?: undefined;
1440
+ path?: undefined;
1441
+ cookie?: undefined;
1442
+ } | undefined;
1443
+ } & {
1444
+ body: {
1445
+ readonly $schema?: string | undefined;
1446
+ orderBy: "updatedAt";
1447
+ orderDirection: "asc" | "desc";
1448
+ pagination?: {
1449
+ limit: number;
1450
+ offset: number;
1451
+ } | undefined;
1452
+ where?: {
1453
+ collectionAddresses?: string[] | null | undefined;
1454
+ maxAssetCount?: number | undefined;
1455
+ minAssetCount?: number | undefined;
1456
+ } | undefined;
1457
+ };
1458
+ } & {
1459
+ baseUrl?: string | undefined;
1460
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
1461
+ parameters: {
1462
+ query?: undefined;
1463
+ header?: undefined;
1464
+ path?: undefined;
1465
+ cookie?: undefined;
1466
+ };
1467
+ requestBody: {
1468
+ content: {
1469
+ "application/json": {
1470
+ readonly $schema?: string | undefined;
1471
+ orderBy: "updatedAt";
1472
+ orderDirection: "asc" | "desc";
1473
+ pagination?: {
1474
+ limit: number;
1475
+ offset: number;
1476
+ } | undefined;
1477
+ where?: {
1478
+ collectionAddresses?: string[] | null | undefined;
1479
+ maxAssetCount?: number | undefined;
1480
+ minAssetCount?: number | undefined;
1481
+ } | undefined;
1482
+ };
1483
+ };
1484
+ };
1485
+ responses: {
1486
+ 200: {
1487
+ headers: {
1488
+ [name: string]: unknown;
1489
+ };
1490
+ content: {
1491
+ "application/json": {
1492
+ readonly $schema?: string | undefined;
1493
+ data: {
1494
+ assetCount: number;
1495
+ cancelledDisputeCount: number;
1496
+ collectionAddress: string;
1497
+ collectionMetadata?: {
1498
+ address: string;
1499
+ chain: string;
1500
+ contractDeployer: string;
1501
+ deployedBlockNumber: number;
1502
+ name: string;
1503
+ openSeaMetadata: {
1504
+ bannerImageUrl: string;
1505
+ collectionName: string;
1506
+ collectionSlug: string;
1507
+ description: string;
1508
+ discordUrl: string;
1509
+ externalUrl: string | null;
1510
+ floorPrice: number;
1511
+ imageUrl: string;
1512
+ lastIngestedAt: string;
1513
+ safelistRequestStatus: string;
1514
+ twitterUsername: string;
1515
+ };
1516
+ symbol: string;
1517
+ tokenType: string;
1518
+ totalSupply: string;
1519
+ } | undefined;
1520
+ createdAt: string;
1521
+ judgedDisputeCount: number;
1522
+ licensesCount: number;
1523
+ raisedDisputeCount: number;
1524
+ resolvedDisputeCount: number;
1525
+ updatedAt: string;
1526
+ }[] | null;
1527
+ pagination?: {
1528
+ hasMore: boolean;
1529
+ limit: number;
1530
+ offset: number;
1531
+ total: number;
1532
+ } | undefined;
1533
+ };
1534
+ };
1535
+ };
1536
+ default: {
1537
+ headers: {
1538
+ [name: string]: unknown;
1539
+ };
1540
+ content: {
1541
+ "application/problem+json": {
1542
+ readonly $schema?: string | undefined;
1543
+ detail?: string | undefined;
1544
+ errors?: {
1545
+ location?: string | undefined;
1546
+ message?: string | undefined;
1547
+ value?: unknown;
1548
+ }[] | null | undefined;
1549
+ instance?: string | undefined;
1550
+ status?: number | undefined;
1551
+ title?: string | undefined;
1552
+ type: string;
1553
+ };
1554
+ };
1555
+ };
1556
+ };
1557
+ }> | undefined;
1558
+ bodySerializer?: openapi_fetch.BodySerializer<{
1559
+ parameters: {
1560
+ query?: undefined;
1561
+ header?: undefined;
1562
+ path?: undefined;
1563
+ cookie?: undefined;
1564
+ };
1565
+ requestBody: {
1566
+ content: {
1567
+ "application/json": {
1568
+ readonly $schema?: string | undefined;
1569
+ orderBy: "updatedAt";
1570
+ orderDirection: "asc" | "desc";
1571
+ pagination?: {
1572
+ limit: number;
1573
+ offset: number;
1574
+ } | undefined;
1575
+ where?: {
1576
+ collectionAddresses?: string[] | null | undefined;
1577
+ maxAssetCount?: number | undefined;
1578
+ minAssetCount?: number | undefined;
1579
+ } | undefined;
1580
+ };
1581
+ };
1582
+ };
1583
+ responses: {
1584
+ 200: {
1585
+ headers: {
1586
+ [name: string]: unknown;
1587
+ };
1588
+ content: {
1589
+ "application/json": {
1590
+ readonly $schema?: string | undefined;
1591
+ data: {
1592
+ assetCount: number;
1593
+ cancelledDisputeCount: number;
1594
+ collectionAddress: string;
1595
+ collectionMetadata?: {
1596
+ address: string;
1597
+ chain: string;
1598
+ contractDeployer: string;
1599
+ deployedBlockNumber: number;
1600
+ name: string;
1601
+ openSeaMetadata: {
1602
+ bannerImageUrl: string;
1603
+ collectionName: string;
1604
+ collectionSlug: string;
1605
+ description: string;
1606
+ discordUrl: string;
1607
+ externalUrl: string | null;
1608
+ floorPrice: number;
1609
+ imageUrl: string;
1610
+ lastIngestedAt: string;
1611
+ safelistRequestStatus: string;
1612
+ twitterUsername: string;
1613
+ };
1614
+ symbol: string;
1615
+ tokenType: string;
1616
+ totalSupply: string;
1617
+ } | undefined;
1618
+ createdAt: string;
1619
+ judgedDisputeCount: number;
1620
+ licensesCount: number;
1621
+ raisedDisputeCount: number;
1622
+ resolvedDisputeCount: number;
1623
+ updatedAt: string;
1624
+ }[] | null;
1625
+ pagination?: {
1626
+ hasMore: boolean;
1627
+ limit: number;
1628
+ offset: number;
1629
+ total: number;
1630
+ } | undefined;
1631
+ };
1632
+ };
1633
+ };
1634
+ default: {
1635
+ headers: {
1636
+ [name: string]: unknown;
1637
+ };
1638
+ content: {
1639
+ "application/problem+json": {
1640
+ readonly $schema?: string | undefined;
1641
+ detail?: string | undefined;
1642
+ errors?: {
1643
+ location?: string | undefined;
1644
+ message?: string | undefined;
1645
+ value?: unknown;
1646
+ }[] | null | undefined;
1647
+ instance?: string | undefined;
1648
+ status?: number | undefined;
1649
+ title?: string | undefined;
1650
+ type: string;
1651
+ };
1652
+ };
1653
+ };
1654
+ };
1655
+ }> | undefined;
1656
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
1657
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
1658
+ headers?: openapi_fetch.HeadersOptions | undefined;
1659
+ } & Omit<RequestInit, "headers" | "body"> & {
1660
+ readonly $schema?: string | undefined;
1661
+ orderBy: "updatedAt";
1662
+ orderDirection: "asc" | "desc";
1663
+ pagination?: {
1664
+ limit: number;
1665
+ offset: number;
1666
+ } | undefined;
1667
+ where?: {
1668
+ collectionAddresses?: string[] | null | undefined;
1669
+ maxAssetCount?: number | undefined;
1670
+ minAssetCount?: number | undefined;
1671
+ } | undefined;
1672
+ }, `${string}/${string}`>>;
1673
+
1674
+ type DisputeResponse = paths["/disputes/{disputeId}"]["get"]["responses"][200]["content"]["application/json"];
1675
+ type GetDisputeOptions = {
1676
+ apiClient: ApiClient;
1677
+ disputeId: string;
1678
+ apiKey: string;
1679
+ };
1680
+ declare function getDispute({ apiClient, disputeId, apiKey }: GetDisputeOptions): Promise<openapi_fetch.FetchResponse<{
1681
+ parameters: {
1682
+ query?: undefined;
1683
+ header?: undefined;
1684
+ path: {
1685
+ disputeId: string;
1686
+ };
1687
+ cookie?: undefined;
1688
+ };
1689
+ requestBody?: undefined;
1690
+ responses: {
1691
+ 200: {
1692
+ headers: {
1693
+ [name: string]: unknown;
1694
+ };
1695
+ content: {
1696
+ "application/json": {
1697
+ readonly $schema?: string | undefined;
1698
+ data: {
1699
+ arbitrationPolicy: string;
1700
+ blockNumber: string | null;
1701
+ blockTimestamp?: string | undefined;
1702
+ counterEvidenceHash: string;
1703
+ currentTag: string;
1704
+ data: string;
1705
+ deletedAt?: string | undefined;
1706
+ disputeTimestamp: string | null;
1707
+ evidenceHash: string;
1708
+ id: string | null;
1709
+ initiator: string;
1710
+ liveness: string | null;
1711
+ logIndex?: string | undefined;
1712
+ status: string;
1713
+ targetIpId: string;
1714
+ targetTag: string;
1715
+ transactionHash: string;
1716
+ umaLink?: string | undefined;
1717
+ };
1718
+ };
1719
+ };
1720
+ };
1721
+ default: {
1722
+ headers: {
1723
+ [name: string]: unknown;
1724
+ };
1725
+ content: {
1726
+ "application/problem+json": {
1727
+ readonly $schema?: string | undefined;
1728
+ detail?: string | undefined;
1729
+ errors?: {
1730
+ location?: string | undefined;
1731
+ message?: string | undefined;
1732
+ value?: unknown;
1733
+ }[] | null | undefined;
1734
+ instance?: string | undefined;
1735
+ status?: number | undefined;
1736
+ title?: string | undefined;
1737
+ type: string;
1738
+ };
1739
+ };
1740
+ };
1741
+ };
1742
+ }, openapi_fetch.FetchOptions<{
1743
+ parameters: {
1744
+ query?: undefined;
1745
+ header?: undefined;
1746
+ path: {
1747
+ disputeId: string;
1748
+ };
1749
+ cookie?: undefined;
1750
+ };
1751
+ requestBody?: undefined;
1752
+ responses: {
1753
+ 200: {
1754
+ headers: {
1755
+ [name: string]: unknown;
1756
+ };
1757
+ content: {
1758
+ "application/json": {
1759
+ readonly $schema?: string | undefined;
1760
+ data: {
1761
+ arbitrationPolicy: string;
1762
+ blockNumber: string | null;
1763
+ blockTimestamp?: string | undefined;
1764
+ counterEvidenceHash: string;
1765
+ currentTag: string;
1766
+ data: string;
1767
+ deletedAt?: string | undefined;
1768
+ disputeTimestamp: string | null;
1769
+ evidenceHash: string;
1770
+ id: string | null;
1771
+ initiator: string;
1772
+ liveness: string | null;
1773
+ logIndex?: string | undefined;
1774
+ status: string;
1775
+ targetIpId: string;
1776
+ targetTag: string;
1777
+ transactionHash: string;
1778
+ umaLink?: string | undefined;
1779
+ };
1780
+ };
1781
+ };
1782
+ };
1783
+ default: {
1784
+ headers: {
1785
+ [name: string]: unknown;
1786
+ };
1787
+ content: {
1788
+ "application/problem+json": {
1789
+ readonly $schema?: string | undefined;
1790
+ detail?: string | undefined;
1791
+ errors?: {
1792
+ location?: string | undefined;
1793
+ message?: string | undefined;
1794
+ value?: unknown;
1795
+ }[] | null | undefined;
1796
+ instance?: string | undefined;
1797
+ status?: number | undefined;
1798
+ title?: string | undefined;
1799
+ type: string;
1800
+ };
1801
+ };
1802
+ };
1803
+ };
1804
+ }>, `${string}/${string}`>>;
1805
+
1806
+ type DisputesResponse = paths["/disputes"]["post"]["responses"][200]["content"]["application/json"];
1807
+ type DisputesOptions = Partial<paths["/disputes"]["post"]["requestBody"]["content"]["application/json"]>;
1808
+ type GetDisputesOptions = {
1809
+ apiClient: ApiClient;
1810
+ options?: DisputesOptions;
1811
+ apiKey: string;
1812
+ initiator?: Address;
1813
+ targetIpId?: Address;
1814
+ };
1815
+ declare function getDisputes({ apiClient, initiator, targetIpId, options, apiKey }: GetDisputesOptions): Promise<openapi_fetch.FetchResponse<{
1816
+ parameters: {
1817
+ query?: undefined;
1818
+ header?: undefined;
1819
+ path?: undefined;
1820
+ cookie?: undefined;
1821
+ };
1822
+ requestBody: {
1823
+ content: {
1824
+ "application/json": {
1825
+ readonly $schema?: string | undefined;
1826
+ orderBy?: string | undefined;
1827
+ orderDirection?: string | undefined;
1828
+ pagination?: {
1829
+ limit: number;
1830
+ offset: number;
1831
+ } | undefined;
1832
+ where?: {
1833
+ blockNumber?: string | undefined;
1834
+ blockNumberGte?: string | undefined;
1835
+ blockNumberLte?: string | undefined;
1836
+ id?: string | undefined;
1837
+ initiator?: string | undefined;
1838
+ targetIpId?: string | undefined;
1839
+ } | undefined;
1840
+ };
1841
+ };
1842
+ };
1843
+ responses: {
1844
+ 200: {
1845
+ headers: {
1846
+ [name: string]: unknown;
1847
+ };
1848
+ content: {
1849
+ "application/json": {
1850
+ readonly $schema?: string | undefined;
1851
+ data: {
1852
+ arbitrationPolicy: string;
1853
+ blockNumber: string | null;
1854
+ blockTimestamp?: string | undefined;
1855
+ counterEvidenceHash: string;
1856
+ currentTag: string;
1857
+ data: string;
1858
+ deletedAt?: string | undefined;
1859
+ disputeTimestamp: string | null;
1860
+ evidenceHash: string;
1861
+ id: string | null;
1862
+ initiator: string;
1863
+ liveness: string | null;
1864
+ logIndex?: string | undefined;
1865
+ status: string;
1866
+ targetIpId: string;
1867
+ targetTag: string;
1868
+ transactionHash: string;
1869
+ umaLink?: string | undefined;
1870
+ }[] | null;
1871
+ pagination?: {
1872
+ hasMore: boolean;
1873
+ limit: number;
1874
+ offset: number;
1875
+ total?: number | undefined;
1876
+ } | undefined;
1877
+ };
1878
+ };
1879
+ };
1880
+ default: {
1881
+ headers: {
1882
+ [name: string]: unknown;
1883
+ };
1884
+ content: {
1885
+ "application/problem+json": {
1886
+ readonly $schema?: string | undefined;
1887
+ detail?: string | undefined;
1888
+ errors?: {
1889
+ location?: string | undefined;
1890
+ message?: string | undefined;
1891
+ value?: unknown;
1892
+ }[] | null | undefined;
1893
+ instance?: string | undefined;
1894
+ status?: number | undefined;
1895
+ title?: string | undefined;
1896
+ type: string;
1897
+ };
1898
+ };
1899
+ };
1900
+ };
1901
+ }, {
1902
+ params?: {
1903
+ query?: undefined;
1904
+ header?: undefined;
1905
+ path?: undefined;
1906
+ cookie?: undefined;
1907
+ } | undefined;
1908
+ } & {
1909
+ body: {
1910
+ readonly $schema?: string | undefined;
1911
+ orderBy?: string | undefined;
1912
+ orderDirection?: string | undefined;
1913
+ pagination?: {
1914
+ limit: number;
1915
+ offset: number;
1916
+ } | undefined;
1917
+ where?: {
1918
+ blockNumber?: string | undefined;
1919
+ blockNumberGte?: string | undefined;
1920
+ blockNumberLte?: string | undefined;
1921
+ id?: string | undefined;
1922
+ initiator?: string | undefined;
1923
+ targetIpId?: string | undefined;
1924
+ } | undefined;
1925
+ };
1926
+ } & {
1927
+ baseUrl?: string | undefined;
1928
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
1929
+ parameters: {
1930
+ query?: undefined;
1931
+ header?: undefined;
1932
+ path?: undefined;
1933
+ cookie?: undefined;
1934
+ };
1935
+ requestBody: {
1936
+ content: {
1937
+ "application/json": {
1938
+ readonly $schema?: string | undefined;
1939
+ orderBy?: string | undefined;
1940
+ orderDirection?: string | undefined;
1941
+ pagination?: {
1942
+ limit: number;
1943
+ offset: number;
1944
+ } | undefined;
1945
+ where?: {
1946
+ blockNumber?: string | undefined;
1947
+ blockNumberGte?: string | undefined;
1948
+ blockNumberLte?: string | undefined;
1949
+ id?: string | undefined;
1950
+ initiator?: string | undefined;
1951
+ targetIpId?: string | undefined;
1952
+ } | undefined;
1953
+ };
1954
+ };
1955
+ };
1956
+ responses: {
1957
+ 200: {
1958
+ headers: {
1959
+ [name: string]: unknown;
1960
+ };
1961
+ content: {
1962
+ "application/json": {
1963
+ readonly $schema?: string | undefined;
1964
+ data: {
1965
+ arbitrationPolicy: string;
1966
+ blockNumber: string | null;
1967
+ blockTimestamp?: string | undefined;
1968
+ counterEvidenceHash: string;
1969
+ currentTag: string;
1970
+ data: string;
1971
+ deletedAt?: string | undefined;
1972
+ disputeTimestamp: string | null;
1973
+ evidenceHash: string;
1974
+ id: string | null;
1975
+ initiator: string;
1976
+ liveness: string | null;
1977
+ logIndex?: string | undefined;
1978
+ status: string;
1979
+ targetIpId: string;
1980
+ targetTag: string;
1981
+ transactionHash: string;
1982
+ umaLink?: string | undefined;
1983
+ }[] | null;
1984
+ pagination?: {
1985
+ hasMore: boolean;
1986
+ limit: number;
1987
+ offset: number;
1988
+ total?: number | undefined;
1989
+ } | undefined;
1990
+ };
1991
+ };
1992
+ };
1993
+ default: {
1994
+ headers: {
1995
+ [name: string]: unknown;
1996
+ };
1997
+ content: {
1998
+ "application/problem+json": {
1999
+ readonly $schema?: string | undefined;
2000
+ detail?: string | undefined;
2001
+ errors?: {
2002
+ location?: string | undefined;
2003
+ message?: string | undefined;
2004
+ value?: unknown;
2005
+ }[] | null | undefined;
2006
+ instance?: string | undefined;
2007
+ status?: number | undefined;
2008
+ title?: string | undefined;
2009
+ type: string;
2010
+ };
2011
+ };
2012
+ };
2013
+ };
2014
+ }> | undefined;
2015
+ bodySerializer?: openapi_fetch.BodySerializer<{
2016
+ parameters: {
2017
+ query?: undefined;
2018
+ header?: undefined;
2019
+ path?: undefined;
2020
+ cookie?: undefined;
2021
+ };
2022
+ requestBody: {
2023
+ content: {
2024
+ "application/json": {
2025
+ readonly $schema?: string | undefined;
2026
+ orderBy?: string | undefined;
2027
+ orderDirection?: string | undefined;
2028
+ pagination?: {
2029
+ limit: number;
2030
+ offset: number;
2031
+ } | undefined;
2032
+ where?: {
2033
+ blockNumber?: string | undefined;
2034
+ blockNumberGte?: string | undefined;
2035
+ blockNumberLte?: string | undefined;
2036
+ id?: string | undefined;
2037
+ initiator?: string | undefined;
2038
+ targetIpId?: string | undefined;
2039
+ } | undefined;
2040
+ };
2041
+ };
2042
+ };
2043
+ responses: {
2044
+ 200: {
2045
+ headers: {
2046
+ [name: string]: unknown;
2047
+ };
2048
+ content: {
2049
+ "application/json": {
2050
+ readonly $schema?: string | undefined;
2051
+ data: {
2052
+ arbitrationPolicy: string;
2053
+ blockNumber: string | null;
2054
+ blockTimestamp?: string | undefined;
2055
+ counterEvidenceHash: string;
2056
+ currentTag: string;
2057
+ data: string;
2058
+ deletedAt?: string | undefined;
2059
+ disputeTimestamp: string | null;
2060
+ evidenceHash: string;
2061
+ id: string | null;
2062
+ initiator: string;
2063
+ liveness: string | null;
2064
+ logIndex?: string | undefined;
2065
+ status: string;
2066
+ targetIpId: string;
2067
+ targetTag: string;
2068
+ transactionHash: string;
2069
+ umaLink?: string | undefined;
2070
+ }[] | null;
2071
+ pagination?: {
2072
+ hasMore: boolean;
2073
+ limit: number;
2074
+ offset: number;
2075
+ total?: number | undefined;
2076
+ } | undefined;
2077
+ };
2078
+ };
2079
+ };
2080
+ default: {
2081
+ headers: {
2082
+ [name: string]: unknown;
2083
+ };
2084
+ content: {
2085
+ "application/problem+json": {
2086
+ readonly $schema?: string | undefined;
2087
+ detail?: string | undefined;
2088
+ errors?: {
2089
+ location?: string | undefined;
2090
+ message?: string | undefined;
2091
+ value?: unknown;
2092
+ }[] | null | undefined;
2093
+ instance?: string | undefined;
2094
+ status?: number | undefined;
2095
+ title?: string | undefined;
2096
+ type: string;
2097
+ };
2098
+ };
2099
+ };
2100
+ };
2101
+ }> | undefined;
2102
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
2103
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
2104
+ headers?: openapi_fetch.HeadersOptions | undefined;
2105
+ } & Omit<RequestInit, "headers" | "body"> & {
2106
+ readonly $schema?: string | undefined;
2107
+ orderBy?: string | undefined;
2108
+ orderDirection?: string | undefined;
2109
+ pagination?: {
2110
+ limit: number;
2111
+ offset: number;
2112
+ } | undefined;
2113
+ where?: {
2114
+ blockNumber?: string | undefined;
2115
+ blockNumberGte?: string | undefined;
2116
+ blockNumberLte?: string | undefined;
2117
+ id?: string | undefined;
2118
+ initiator?: string | undefined;
2119
+ targetIpId?: string | undefined;
2120
+ } | undefined;
2121
+ }, `${string}/${string}`>>;
2122
+
2123
+ type IpAssetEdgesResponse = paths["/assets/edges"]["post"]["responses"][200]["content"]["application/json"];
2124
+ type IpAssetEdgesOptions = Partial<paths["/assets/edges"]["post"]["requestBody"]["content"]["application/json"]>;
2125
+ type GetIpAssetEdgesOptions = {
2126
+ apiClient: ApiClient;
2127
+ ipId?: Address;
2128
+ parentIpId?: Address;
2129
+ options?: IpAssetEdgesOptions;
2130
+ apiKey: string;
2131
+ };
2132
+ declare function getIpAssetEdges({ apiClient, ipId, parentIpId, options, apiKey }: GetIpAssetEdgesOptions): Promise<openapi_fetch.FetchResponse<{
2133
+ parameters: {
2134
+ query?: undefined;
2135
+ header?: undefined;
2136
+ path?: undefined;
2137
+ cookie?: undefined;
2138
+ };
2139
+ requestBody: {
2140
+ content: {
2141
+ "application/json": {
2142
+ readonly $schema?: string | undefined;
2143
+ orderBy?: "blockNumber" | undefined;
2144
+ orderDirection: "asc" | "desc";
2145
+ pagination?: {
2146
+ limit: number;
2147
+ offset: number;
2148
+ } | undefined;
2149
+ where?: {
2150
+ blockNumber?: number | undefined;
2151
+ childIpId?: string | undefined;
2152
+ parentIpId?: string | undefined;
2153
+ txHash?: string | undefined;
2154
+ } | undefined;
2155
+ };
2156
+ };
2157
+ };
2158
+ responses: {
2159
+ 200: {
2160
+ headers: {
2161
+ [name: string]: unknown;
2162
+ };
2163
+ content: {
2164
+ "application/json": {
2165
+ readonly $schema?: string | undefined;
2166
+ data: {
2167
+ blockNumber: number;
2168
+ blockTimestamp: string;
2169
+ caller: string;
2170
+ childIpId: string;
2171
+ id: number;
2172
+ licenseTemplate: string;
2173
+ licenseTermsId: string;
2174
+ licenseTokenId: string;
2175
+ logIndex: number;
2176
+ parentIpId: string;
2177
+ processedAt: string;
2178
+ txHash: string;
2179
+ }[] | null;
2180
+ pagination?: {
2181
+ hasMore: boolean;
2182
+ limit: number;
2183
+ offset: number;
2184
+ total: number;
2185
+ } | undefined;
2186
+ };
2187
+ };
2188
+ };
2189
+ default: {
2190
+ headers: {
2191
+ [name: string]: unknown;
2192
+ };
2193
+ content: {
2194
+ "application/problem+json": {
2195
+ readonly $schema?: string | undefined;
2196
+ detail?: string | undefined;
2197
+ errors?: {
2198
+ location?: string | undefined;
2199
+ message?: string | undefined;
2200
+ value?: unknown;
2201
+ }[] | null | undefined;
2202
+ instance?: string | undefined;
2203
+ status?: number | undefined;
2204
+ title?: string | undefined;
2205
+ type: string;
2206
+ };
2207
+ };
2208
+ };
2209
+ };
2210
+ }, {
2211
+ params?: {
2212
+ query?: undefined;
2213
+ header?: undefined;
2214
+ path?: undefined;
2215
+ cookie?: undefined;
2216
+ } | undefined;
2217
+ } & {
2218
+ body: {
2219
+ readonly $schema?: string | undefined;
2220
+ orderBy?: "blockNumber" | undefined;
2221
+ orderDirection: "asc" | "desc";
2222
+ pagination?: {
2223
+ limit: number;
2224
+ offset: number;
2225
+ } | undefined;
2226
+ where?: {
2227
+ blockNumber?: number | undefined;
2228
+ childIpId?: string | undefined;
2229
+ parentIpId?: string | undefined;
2230
+ txHash?: string | undefined;
2231
+ } | undefined;
2232
+ };
2233
+ } & {
2234
+ baseUrl?: string | undefined;
2235
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
2236
+ parameters: {
2237
+ query?: undefined;
2238
+ header?: undefined;
2239
+ path?: undefined;
2240
+ cookie?: undefined;
2241
+ };
2242
+ requestBody: {
2243
+ content: {
2244
+ "application/json": {
2245
+ readonly $schema?: string | undefined;
2246
+ orderBy?: "blockNumber" | undefined;
2247
+ orderDirection: "asc" | "desc";
2248
+ pagination?: {
2249
+ limit: number;
2250
+ offset: number;
2251
+ } | undefined;
2252
+ where?: {
2253
+ blockNumber?: number | undefined;
2254
+ childIpId?: string | undefined;
2255
+ parentIpId?: string | undefined;
2256
+ txHash?: string | undefined;
2257
+ } | undefined;
2258
+ };
2259
+ };
2260
+ };
2261
+ responses: {
2262
+ 200: {
2263
+ headers: {
2264
+ [name: string]: unknown;
2265
+ };
2266
+ content: {
2267
+ "application/json": {
2268
+ readonly $schema?: string | undefined;
2269
+ data: {
2270
+ blockNumber: number;
2271
+ blockTimestamp: string;
2272
+ caller: string;
2273
+ childIpId: string;
2274
+ id: number;
2275
+ licenseTemplate: string;
2276
+ licenseTermsId: string;
2277
+ licenseTokenId: string;
2278
+ logIndex: number;
2279
+ parentIpId: string;
2280
+ processedAt: string;
2281
+ txHash: string;
2282
+ }[] | null;
2283
+ pagination?: {
2284
+ hasMore: boolean;
2285
+ limit: number;
2286
+ offset: number;
2287
+ total: number;
2288
+ } | undefined;
2289
+ };
2290
+ };
2291
+ };
2292
+ default: {
2293
+ headers: {
2294
+ [name: string]: unknown;
2295
+ };
2296
+ content: {
2297
+ "application/problem+json": {
2298
+ readonly $schema?: string | undefined;
2299
+ detail?: string | undefined;
2300
+ errors?: {
2301
+ location?: string | undefined;
2302
+ message?: string | undefined;
2303
+ value?: unknown;
2304
+ }[] | null | undefined;
2305
+ instance?: string | undefined;
2306
+ status?: number | undefined;
2307
+ title?: string | undefined;
2308
+ type: string;
2309
+ };
2310
+ };
2311
+ };
2312
+ };
2313
+ }> | undefined;
2314
+ bodySerializer?: openapi_fetch.BodySerializer<{
2315
+ parameters: {
2316
+ query?: undefined;
2317
+ header?: undefined;
2318
+ path?: undefined;
2319
+ cookie?: undefined;
2320
+ };
2321
+ requestBody: {
2322
+ content: {
2323
+ "application/json": {
2324
+ readonly $schema?: string | undefined;
2325
+ orderBy?: "blockNumber" | undefined;
2326
+ orderDirection: "asc" | "desc";
2327
+ pagination?: {
2328
+ limit: number;
2329
+ offset: number;
2330
+ } | undefined;
2331
+ where?: {
2332
+ blockNumber?: number | undefined;
2333
+ childIpId?: string | undefined;
2334
+ parentIpId?: string | undefined;
2335
+ txHash?: string | undefined;
2336
+ } | undefined;
2337
+ };
2338
+ };
2339
+ };
2340
+ responses: {
2341
+ 200: {
2342
+ headers: {
2343
+ [name: string]: unknown;
2344
+ };
2345
+ content: {
2346
+ "application/json": {
2347
+ readonly $schema?: string | undefined;
2348
+ data: {
2349
+ blockNumber: number;
2350
+ blockTimestamp: string;
2351
+ caller: string;
2352
+ childIpId: string;
2353
+ id: number;
2354
+ licenseTemplate: string;
2355
+ licenseTermsId: string;
2356
+ licenseTokenId: string;
2357
+ logIndex: number;
2358
+ parentIpId: string;
2359
+ processedAt: string;
2360
+ txHash: string;
2361
+ }[] | null;
2362
+ pagination?: {
2363
+ hasMore: boolean;
2364
+ limit: number;
2365
+ offset: number;
2366
+ total: number;
2367
+ } | undefined;
2368
+ };
2369
+ };
2370
+ };
2371
+ default: {
2372
+ headers: {
2373
+ [name: string]: unknown;
2374
+ };
2375
+ content: {
2376
+ "application/problem+json": {
2377
+ readonly $schema?: string | undefined;
2378
+ detail?: string | undefined;
2379
+ errors?: {
2380
+ location?: string | undefined;
2381
+ message?: string | undefined;
2382
+ value?: unknown;
2383
+ }[] | null | undefined;
2384
+ instance?: string | undefined;
2385
+ status?: number | undefined;
2386
+ title?: string | undefined;
2387
+ type: string;
2388
+ };
2389
+ };
2390
+ };
2391
+ };
2392
+ }> | undefined;
2393
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
2394
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
2395
+ headers?: openapi_fetch.HeadersOptions | undefined;
2396
+ } & Omit<RequestInit, "headers" | "body"> & {
2397
+ readonly $schema?: string | undefined;
2398
+ orderBy?: "blockNumber" | undefined;
2399
+ orderDirection: "asc" | "desc";
2400
+ pagination?: {
2401
+ limit: number;
2402
+ offset: number;
2403
+ } | undefined;
2404
+ where?: {
2405
+ blockNumber?: number | undefined;
2406
+ childIpId?: string | undefined;
2407
+ parentIpId?: string | undefined;
2408
+ txHash?: string | undefined;
2409
+ } | undefined;
2410
+ }, `${string}/${string}`>>;
2411
+
2412
+ type IpAssetsResponse = paths["/assets"]["post"]["responses"][200]["content"]["application/json"];
2413
+ type IpAssetsOptions = Partial<paths["/assets"]["post"]["requestBody"]["content"]["application/json"]>;
2414
+ type GetIpAssetsOptions = {
2415
+ apiClient: ApiClient;
2416
+ ownerAddress?: Address;
2417
+ tokenContract?: Address;
2418
+ includeLicenses?: boolean;
2419
+ moderated?: boolean;
2420
+ ipIds?: Address[];
2421
+ options?: IpAssetsOptions;
2422
+ apiKey: string;
2423
+ };
2424
+ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLicenses, moderated, ipIds, options, apiKey, }: GetIpAssetsOptions): Promise<openapi_fetch.FetchResponse<{
2425
+ parameters: {
2426
+ query?: undefined;
2427
+ header?: undefined;
2428
+ path?: undefined;
2429
+ cookie?: undefined;
2430
+ };
2431
+ requestBody: {
2432
+ content: {
2433
+ "application/json": {
2434
+ readonly $schema?: string | undefined;
2435
+ includeLicenses?: boolean | undefined;
2436
+ moderated?: boolean | undefined;
2437
+ orderBy: "blockNumber" | "descendantCount" | "createdAt";
2438
+ orderDirection: "asc" | "desc";
2439
+ pagination?: {
2440
+ limit: number;
2441
+ offset: number;
2442
+ } | undefined;
2443
+ where?: {
2444
+ ipIds?: string[] | null | undefined;
2445
+ ownerAddress?: string | undefined;
2446
+ tokenContract?: string | undefined;
2447
+ } | undefined;
2448
+ };
2449
+ };
2450
+ };
2451
+ responses: {
2452
+ 200: {
2453
+ headers: {
2454
+ [name: string]: unknown;
2455
+ };
2456
+ content: {
2457
+ "application/json": {
2458
+ readonly $schema?: string | undefined;
2459
+ data: {
2460
+ ancestorsCount: number;
2461
+ blockNumber: number;
2462
+ chainId: string;
2463
+ childrenCount: number;
2464
+ createdAt: string;
2465
+ descendantsCount: number;
2466
+ description: string;
2467
+ infringementStatus?: {
2468
+ createdAt: string;
2469
+ customData: string;
2470
+ infringementDetails: string;
2471
+ isInfringing: boolean;
2472
+ providerName: string;
2473
+ providerURL: string;
2474
+ responseTime: string;
2475
+ status: string;
2476
+ updatedAt: string;
2477
+ }[] | null | undefined;
2478
+ ipId: string;
2479
+ ipaMetadataUri?: string | undefined;
2480
+ isInGroup: boolean;
2481
+ lastUpdatedAt: string;
2482
+ licenses?: {
2483
+ createdAt: string;
2484
+ licenseTemplateId: string;
2485
+ licenseTermsId: string;
2486
+ licensingConfig: {
2487
+ commercialRevShare: number;
2488
+ disabled: boolean;
2489
+ expectGroupRewardPool: string;
2490
+ expectMinimumGroupRewardShare: number;
2491
+ hookData: string;
2492
+ isSet: boolean;
2493
+ licensingHook: string;
2494
+ mintingFee: string;
2495
+ };
2496
+ templateMetadataUri: string;
2497
+ templateName: string;
2498
+ terms: {
2499
+ commercialAttribution: boolean;
2500
+ commercialRevCeiling: string;
2501
+ commercialRevShare: number;
2502
+ commercialUse: boolean;
2503
+ commercializerChecker: string;
2504
+ commercializerCheckerData: string;
2505
+ currency: string;
2506
+ defaultMintingFee: string;
2507
+ derivativeRevCeiling: string;
2508
+ derivativesAllowed: boolean;
2509
+ derivativesApproval: boolean;
2510
+ derivativesAttribution: boolean;
2511
+ derivativesReciprocal: boolean;
2512
+ expiration: string;
2513
+ royaltyPolicy: string;
2514
+ transferable: boolean;
2515
+ uri: string;
2516
+ };
2517
+ updatedAt: string;
2518
+ }[] | null | undefined;
2519
+ logIndex: number;
2520
+ moderationStatus?: {
2521
+ adult: string;
2522
+ medical: string;
2523
+ racy: string;
2524
+ spoof: string;
2525
+ violence: string;
2526
+ } | undefined;
2527
+ name: string;
2528
+ nftMetadata?: {
2529
+ animation: {
2530
+ cachedUrl: string;
2531
+ contentType: string;
2532
+ originalUrl: string;
2533
+ size: number;
2534
+ };
2535
+ collection: {
2536
+ bannerImageUrl: string;
2537
+ externalUrl: string | null;
2538
+ name: string;
2539
+ slug: string;
2540
+ };
2541
+ contract: {
2542
+ address: string;
2543
+ chain: string;
2544
+ contractDeployer: string;
2545
+ deployedBlockNumber: number;
2546
+ name: string;
2547
+ openSeaMetadata: {
2548
+ bannerImageUrl: string;
2549
+ collectionName: string;
2550
+ collectionSlug: string;
2551
+ description: string;
2552
+ discordUrl: string;
2553
+ externalUrl: string | null;
2554
+ floorPrice: number;
2555
+ imageUrl: string;
2556
+ lastIngestedAt: string;
2557
+ safelistRequestStatus: string;
2558
+ twitterUsername: string;
2559
+ };
2560
+ symbol: string;
2561
+ tokenType: string;
2562
+ totalSupply: string;
2563
+ };
2564
+ contract_address: string;
2565
+ description: string | null;
2566
+ image: {
2567
+ cachedUrl: string;
2568
+ contentType: string;
2569
+ originalUrl: string;
2570
+ pngUrl: string;
2571
+ size: number;
2572
+ thumbnailUrl: string;
2573
+ };
2574
+ mint: {
2575
+ blockNumber: number | null;
2576
+ mintAddress: string | null;
2577
+ timestamp: string | null;
2578
+ transactionHash: string | null;
2579
+ };
2580
+ name: string;
2581
+ nft_id: string;
2582
+ raw: unknown;
2583
+ timeLastUpdated: string;
2584
+ tokenId: string;
2585
+ tokenType: string;
2586
+ tokenUri: string;
2587
+ } | undefined;
2588
+ ownerAddress: string;
2589
+ parentsCount: number;
2590
+ registrationDate: string;
2591
+ rootIPs: string[] | null;
2592
+ title: string;
2593
+ tokenContract: string;
2594
+ tokenId: string;
2595
+ txHash: string;
2596
+ uri: string;
2597
+ }[] | null;
2598
+ pagination?: {
2599
+ hasMore: boolean;
2600
+ limit: number;
2601
+ offset: number;
2602
+ total: number;
2603
+ } | undefined;
2604
+ };
2605
+ };
2606
+ };
2607
+ default: {
2608
+ headers: {
2609
+ [name: string]: unknown;
2610
+ };
2611
+ content: {
2612
+ "application/problem+json": {
2613
+ readonly $schema?: string | undefined;
2614
+ detail?: string | undefined;
2615
+ errors?: {
2616
+ location?: string | undefined;
2617
+ message?: string | undefined;
2618
+ value?: unknown;
2619
+ }[] | null | undefined;
2620
+ instance?: string | undefined;
2621
+ status?: number | undefined;
2622
+ title?: string | undefined;
2623
+ type: string;
2624
+ };
2625
+ };
2626
+ };
2627
+ };
2628
+ }, {
2629
+ params?: {
2630
+ query?: undefined;
2631
+ header?: undefined;
2632
+ path?: undefined;
2633
+ cookie?: undefined;
2634
+ } | undefined;
2635
+ } & {
2636
+ body: {
2637
+ readonly $schema?: string | undefined;
2638
+ includeLicenses?: boolean | undefined;
2639
+ moderated?: boolean | undefined;
2640
+ orderBy: "blockNumber" | "descendantCount" | "createdAt";
2641
+ orderDirection: "asc" | "desc";
2642
+ pagination?: {
2643
+ limit: number;
2644
+ offset: number;
2645
+ } | undefined;
2646
+ where?: {
2647
+ ipIds?: string[] | null | undefined;
2648
+ ownerAddress?: string | undefined;
2649
+ tokenContract?: string | undefined;
2650
+ } | undefined;
2651
+ };
2652
+ } & {
2653
+ baseUrl?: string | undefined;
2654
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
2655
+ parameters: {
2656
+ query?: undefined;
2657
+ header?: undefined;
2658
+ path?: undefined;
2659
+ cookie?: undefined;
2660
+ };
2661
+ requestBody: {
2662
+ content: {
2663
+ "application/json": {
2664
+ readonly $schema?: string | undefined;
2665
+ includeLicenses?: boolean | undefined;
2666
+ moderated?: boolean | undefined;
2667
+ orderBy: "blockNumber" | "descendantCount" | "createdAt";
2668
+ orderDirection: "asc" | "desc";
2669
+ pagination?: {
2670
+ limit: number;
2671
+ offset: number;
2672
+ } | undefined;
2673
+ where?: {
2674
+ ipIds?: string[] | null | undefined;
2675
+ ownerAddress?: string | undefined;
2676
+ tokenContract?: string | undefined;
2677
+ } | undefined;
2678
+ };
2679
+ };
2680
+ };
2681
+ responses: {
2682
+ 200: {
2683
+ headers: {
2684
+ [name: string]: unknown;
2685
+ };
2686
+ content: {
2687
+ "application/json": {
2688
+ readonly $schema?: string | undefined;
2689
+ data: {
2690
+ ancestorsCount: number;
2691
+ blockNumber: number;
2692
+ chainId: string;
2693
+ childrenCount: number;
2694
+ createdAt: string;
2695
+ descendantsCount: number;
2696
+ description: string;
2697
+ infringementStatus?: {
2698
+ createdAt: string;
2699
+ customData: string;
2700
+ infringementDetails: string;
2701
+ isInfringing: boolean;
2702
+ providerName: string;
2703
+ providerURL: string;
2704
+ responseTime: string;
2705
+ status: string;
2706
+ updatedAt: string;
2707
+ }[] | null | undefined;
2708
+ ipId: string;
2709
+ ipaMetadataUri?: string | undefined;
2710
+ isInGroup: boolean;
2711
+ lastUpdatedAt: string;
2712
+ licenses?: {
2713
+ createdAt: string;
2714
+ licenseTemplateId: string;
2715
+ licenseTermsId: string;
2716
+ licensingConfig: {
2717
+ commercialRevShare: number;
2718
+ disabled: boolean;
2719
+ expectGroupRewardPool: string;
2720
+ expectMinimumGroupRewardShare: number;
2721
+ hookData: string;
2722
+ isSet: boolean;
2723
+ licensingHook: string;
2724
+ mintingFee: string;
2725
+ };
2726
+ templateMetadataUri: string;
2727
+ templateName: string;
2728
+ terms: {
2729
+ commercialAttribution: boolean;
2730
+ commercialRevCeiling: string;
2731
+ commercialRevShare: number;
2732
+ commercialUse: boolean;
2733
+ commercializerChecker: string;
2734
+ commercializerCheckerData: string;
2735
+ currency: string;
2736
+ defaultMintingFee: string;
2737
+ derivativeRevCeiling: string;
2738
+ derivativesAllowed: boolean;
2739
+ derivativesApproval: boolean;
2740
+ derivativesAttribution: boolean;
2741
+ derivativesReciprocal: boolean;
2742
+ expiration: string;
2743
+ royaltyPolicy: string;
2744
+ transferable: boolean;
2745
+ uri: string;
2746
+ };
2747
+ updatedAt: string;
2748
+ }[] | null | undefined;
2749
+ logIndex: number;
2750
+ moderationStatus?: {
2751
+ adult: string;
2752
+ medical: string;
2753
+ racy: string;
2754
+ spoof: string;
2755
+ violence: string;
2756
+ } | undefined;
2757
+ name: string;
2758
+ nftMetadata?: {
2759
+ animation: {
2760
+ cachedUrl: string;
2761
+ contentType: string;
2762
+ originalUrl: string;
2763
+ size: number;
2764
+ };
2765
+ collection: {
2766
+ bannerImageUrl: string;
2767
+ externalUrl: string | null;
2768
+ name: string;
2769
+ slug: string;
2770
+ };
2771
+ contract: {
2772
+ address: string;
2773
+ chain: string;
2774
+ contractDeployer: string;
2775
+ deployedBlockNumber: number;
2776
+ name: string;
2777
+ openSeaMetadata: {
2778
+ bannerImageUrl: string;
2779
+ collectionName: string;
2780
+ collectionSlug: string;
2781
+ description: string;
2782
+ discordUrl: string;
2783
+ externalUrl: string | null;
2784
+ floorPrice: number;
2785
+ imageUrl: string;
2786
+ lastIngestedAt: string;
2787
+ safelistRequestStatus: string;
2788
+ twitterUsername: string;
2789
+ };
2790
+ symbol: string;
2791
+ tokenType: string;
2792
+ totalSupply: string;
2793
+ };
2794
+ contract_address: string;
2795
+ description: string | null;
2796
+ image: {
2797
+ cachedUrl: string;
2798
+ contentType: string;
2799
+ originalUrl: string;
2800
+ pngUrl: string;
2801
+ size: number;
2802
+ thumbnailUrl: string;
2803
+ };
2804
+ mint: {
2805
+ blockNumber: number | null;
2806
+ mintAddress: string | null;
2807
+ timestamp: string | null;
2808
+ transactionHash: string | null;
2809
+ };
2810
+ name: string;
2811
+ nft_id: string;
2812
+ raw: unknown;
2813
+ timeLastUpdated: string;
2814
+ tokenId: string;
2815
+ tokenType: string;
2816
+ tokenUri: string;
2817
+ } | undefined;
2818
+ ownerAddress: string;
2819
+ parentsCount: number;
2820
+ registrationDate: string;
2821
+ rootIPs: string[] | null;
2822
+ title: string;
2823
+ tokenContract: string;
2824
+ tokenId: string;
2825
+ txHash: string;
2826
+ uri: string;
2827
+ }[] | null;
2828
+ pagination?: {
2829
+ hasMore: boolean;
2830
+ limit: number;
2831
+ offset: number;
2832
+ total: number;
2833
+ } | undefined;
2834
+ };
2835
+ };
2836
+ };
2837
+ default: {
2838
+ headers: {
2839
+ [name: string]: unknown;
2840
+ };
2841
+ content: {
2842
+ "application/problem+json": {
2843
+ readonly $schema?: string | undefined;
2844
+ detail?: string | undefined;
2845
+ errors?: {
2846
+ location?: string | undefined;
2847
+ message?: string | undefined;
2848
+ value?: unknown;
2849
+ }[] | null | undefined;
2850
+ instance?: string | undefined;
2851
+ status?: number | undefined;
2852
+ title?: string | undefined;
2853
+ type: string;
2854
+ };
2855
+ };
2856
+ };
2857
+ };
2858
+ }> | undefined;
2859
+ bodySerializer?: openapi_fetch.BodySerializer<{
2860
+ parameters: {
2861
+ query?: undefined;
2862
+ header?: undefined;
2863
+ path?: undefined;
2864
+ cookie?: undefined;
2865
+ };
2866
+ requestBody: {
2867
+ content: {
2868
+ "application/json": {
2869
+ readonly $schema?: string | undefined;
2870
+ includeLicenses?: boolean | undefined;
2871
+ moderated?: boolean | undefined;
2872
+ orderBy: "blockNumber" | "descendantCount" | "createdAt";
2873
+ orderDirection: "asc" | "desc";
2874
+ pagination?: {
2875
+ limit: number;
2876
+ offset: number;
2877
+ } | undefined;
2878
+ where?: {
2879
+ ipIds?: string[] | null | undefined;
2880
+ ownerAddress?: string | undefined;
2881
+ tokenContract?: string | undefined;
2882
+ } | undefined;
2883
+ };
2884
+ };
2885
+ };
2886
+ responses: {
2887
+ 200: {
2888
+ headers: {
2889
+ [name: string]: unknown;
2890
+ };
2891
+ content: {
2892
+ "application/json": {
2893
+ readonly $schema?: string | undefined;
2894
+ data: {
2895
+ ancestorsCount: number;
2896
+ blockNumber: number;
2897
+ chainId: string;
2898
+ childrenCount: number;
2899
+ createdAt: string;
2900
+ descendantsCount: number;
2901
+ description: string;
2902
+ infringementStatus?: {
2903
+ createdAt: string;
2904
+ customData: string;
2905
+ infringementDetails: string;
2906
+ isInfringing: boolean;
2907
+ providerName: string;
2908
+ providerURL: string;
2909
+ responseTime: string;
2910
+ status: string;
2911
+ updatedAt: string;
2912
+ }[] | null | undefined;
2913
+ ipId: string;
2914
+ ipaMetadataUri?: string | undefined;
2915
+ isInGroup: boolean;
2916
+ lastUpdatedAt: string;
2917
+ licenses?: {
2918
+ createdAt: string;
2919
+ licenseTemplateId: string;
2920
+ licenseTermsId: string;
2921
+ licensingConfig: {
2922
+ commercialRevShare: number;
2923
+ disabled: boolean;
2924
+ expectGroupRewardPool: string;
2925
+ expectMinimumGroupRewardShare: number;
2926
+ hookData: string;
2927
+ isSet: boolean;
2928
+ licensingHook: string;
2929
+ mintingFee: string;
2930
+ };
2931
+ templateMetadataUri: string;
2932
+ templateName: string;
2933
+ terms: {
2934
+ commercialAttribution: boolean;
2935
+ commercialRevCeiling: string;
2936
+ commercialRevShare: number;
2937
+ commercialUse: boolean;
2938
+ commercializerChecker: string;
2939
+ commercializerCheckerData: string;
2940
+ currency: string;
2941
+ defaultMintingFee: string;
2942
+ derivativeRevCeiling: string;
2943
+ derivativesAllowed: boolean;
2944
+ derivativesApproval: boolean;
2945
+ derivativesAttribution: boolean;
2946
+ derivativesReciprocal: boolean;
2947
+ expiration: string;
2948
+ royaltyPolicy: string;
2949
+ transferable: boolean;
2950
+ uri: string;
2951
+ };
2952
+ updatedAt: string;
2953
+ }[] | null | undefined;
2954
+ logIndex: number;
2955
+ moderationStatus?: {
2956
+ adult: string;
2957
+ medical: string;
2958
+ racy: string;
2959
+ spoof: string;
2960
+ violence: string;
2961
+ } | undefined;
2962
+ name: string;
2963
+ nftMetadata?: {
2964
+ animation: {
2965
+ cachedUrl: string;
2966
+ contentType: string;
2967
+ originalUrl: string;
2968
+ size: number;
2969
+ };
2970
+ collection: {
2971
+ bannerImageUrl: string;
2972
+ externalUrl: string | null;
2973
+ name: string;
2974
+ slug: string;
2975
+ };
2976
+ contract: {
2977
+ address: string;
2978
+ chain: string;
2979
+ contractDeployer: string;
2980
+ deployedBlockNumber: number;
2981
+ name: string;
2982
+ openSeaMetadata: {
2983
+ bannerImageUrl: string;
2984
+ collectionName: string;
2985
+ collectionSlug: string;
2986
+ description: string;
2987
+ discordUrl: string;
2988
+ externalUrl: string | null;
2989
+ floorPrice: number;
2990
+ imageUrl: string;
2991
+ lastIngestedAt: string;
2992
+ safelistRequestStatus: string;
2993
+ twitterUsername: string;
2994
+ };
2995
+ symbol: string;
2996
+ tokenType: string;
2997
+ totalSupply: string;
2998
+ };
2999
+ contract_address: string;
3000
+ description: string | null;
3001
+ image: {
3002
+ cachedUrl: string;
3003
+ contentType: string;
3004
+ originalUrl: string;
3005
+ pngUrl: string;
3006
+ size: number;
3007
+ thumbnailUrl: string;
3008
+ };
3009
+ mint: {
3010
+ blockNumber: number | null;
3011
+ mintAddress: string | null;
3012
+ timestamp: string | null;
3013
+ transactionHash: string | null;
3014
+ };
3015
+ name: string;
3016
+ nft_id: string;
3017
+ raw: unknown;
3018
+ timeLastUpdated: string;
3019
+ tokenId: string;
3020
+ tokenType: string;
3021
+ tokenUri: string;
3022
+ } | undefined;
3023
+ ownerAddress: string;
3024
+ parentsCount: number;
3025
+ registrationDate: string;
3026
+ rootIPs: string[] | null;
3027
+ title: string;
3028
+ tokenContract: string;
3029
+ tokenId: string;
3030
+ txHash: string;
3031
+ uri: string;
3032
+ }[] | null;
3033
+ pagination?: {
3034
+ hasMore: boolean;
3035
+ limit: number;
3036
+ offset: number;
3037
+ total: number;
3038
+ } | undefined;
3039
+ };
3040
+ };
3041
+ };
3042
+ default: {
3043
+ headers: {
3044
+ [name: string]: unknown;
3045
+ };
3046
+ content: {
3047
+ "application/problem+json": {
3048
+ readonly $schema?: string | undefined;
3049
+ detail?: string | undefined;
3050
+ errors?: {
3051
+ location?: string | undefined;
3052
+ message?: string | undefined;
3053
+ value?: unknown;
3054
+ }[] | null | undefined;
3055
+ instance?: string | undefined;
3056
+ status?: number | undefined;
3057
+ title?: string | undefined;
3058
+ type: string;
3059
+ };
3060
+ };
3061
+ };
3062
+ };
3063
+ }> | undefined;
3064
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
3065
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
3066
+ headers?: openapi_fetch.HeadersOptions | undefined;
3067
+ } & Omit<RequestInit, "headers" | "body"> & {
3068
+ readonly $schema?: string | undefined;
3069
+ includeLicenses?: boolean | undefined;
3070
+ moderated?: boolean | undefined;
3071
+ orderBy: "blockNumber" | "descendantCount" | "createdAt";
3072
+ orderDirection: "asc" | "desc";
3073
+ pagination?: {
3074
+ limit: number;
3075
+ offset: number;
3076
+ } | undefined;
3077
+ where?: {
3078
+ ipIds?: string[] | null | undefined;
3079
+ ownerAddress?: string | undefined;
3080
+ tokenContract?: string | undefined;
3081
+ } | undefined;
3082
+ }, `${string}/${string}`>>;
3083
+
3084
+ type LicenseTokensResponse = paths["/licenses/tokens"]["post"]["responses"][200]["content"]["application/json"];
3085
+ type LicenseTokensOptions = Partial<paths["/licenses/tokens"]["post"]["requestBody"]["content"]["application/json"]>;
3086
+ type GetLicenseTokensOptions = {
3087
+ apiClient: ApiClient;
3088
+ ownerAddress: Address;
3089
+ licensorIpId?: Address;
3090
+ options?: LicenseTokensOptions;
3091
+ apiKey: string;
3092
+ };
3093
+ declare function getLicenseTokens({ apiClient, ownerAddress, licensorIpId, options, apiKey }: GetLicenseTokensOptions): Promise<openapi_fetch.FetchResponse<{
3094
+ parameters: {
3095
+ query?: undefined;
3096
+ header?: undefined;
3097
+ path?: undefined;
3098
+ cookie?: undefined;
3099
+ };
3100
+ requestBody: {
3101
+ content: {
3102
+ "application/json": {
3103
+ readonly $schema?: string | undefined;
3104
+ orderBy: "blockNumber";
3105
+ orderDirection: "asc" | "desc";
3106
+ pagination?: {
3107
+ limit: number;
3108
+ offset: number;
3109
+ } | undefined;
3110
+ where?: {
3111
+ licensorIpId?: string | undefined;
3112
+ ownerAddress?: string | undefined;
3113
+ } | undefined;
3114
+ };
3115
+ };
3116
+ };
3117
+ responses: {
3118
+ 200: {
3119
+ headers: {
3120
+ [name: string]: unknown;
3121
+ };
3122
+ content: {
3123
+ "application/json": {
3124
+ readonly $schema?: string | undefined;
3125
+ data: {
3126
+ blockNumber: string;
3127
+ blockTime: string;
3128
+ burntAt: string;
3129
+ id: string;
3130
+ licenseTemplate: string;
3131
+ licenseTermsId: string;
3132
+ licensorIpId: string;
3133
+ owner: string;
3134
+ transferable: string;
3135
+ }[] | null;
3136
+ pagination?: {
3137
+ hasMore: boolean;
3138
+ limit: number;
3139
+ offset: number;
3140
+ total: number;
3141
+ } | undefined;
3142
+ };
3143
+ };
3144
+ };
3145
+ default: {
3146
+ headers: {
3147
+ [name: string]: unknown;
3148
+ };
3149
+ content: {
3150
+ "application/problem+json": {
3151
+ readonly $schema?: string | undefined;
3152
+ detail?: string | undefined;
3153
+ errors?: {
3154
+ location?: string | undefined;
3155
+ message?: string | undefined;
3156
+ value?: unknown;
3157
+ }[] | null | undefined;
3158
+ instance?: string | undefined;
3159
+ status?: number | undefined;
3160
+ title?: string | undefined;
3161
+ type: string;
3162
+ };
3163
+ };
3164
+ };
3165
+ };
3166
+ }, {
3167
+ params?: {
3168
+ query?: undefined;
3169
+ header?: undefined;
3170
+ path?: undefined;
3171
+ cookie?: undefined;
3172
+ } | undefined;
3173
+ } & {
3174
+ body: {
3175
+ readonly $schema?: string | undefined;
3176
+ orderBy: "blockNumber";
3177
+ orderDirection: "asc" | "desc";
3178
+ pagination?: {
3179
+ limit: number;
3180
+ offset: number;
3181
+ } | undefined;
3182
+ where?: {
3183
+ licensorIpId?: string | undefined;
3184
+ ownerAddress?: string | undefined;
3185
+ } | undefined;
3186
+ };
3187
+ } & {
3188
+ baseUrl?: string | undefined;
3189
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
3190
+ parameters: {
3191
+ query?: undefined;
3192
+ header?: undefined;
3193
+ path?: undefined;
3194
+ cookie?: undefined;
3195
+ };
3196
+ requestBody: {
3197
+ content: {
3198
+ "application/json": {
3199
+ readonly $schema?: string | undefined;
3200
+ orderBy: "blockNumber";
3201
+ orderDirection: "asc" | "desc";
3202
+ pagination?: {
3203
+ limit: number;
3204
+ offset: number;
3205
+ } | undefined;
3206
+ where?: {
3207
+ licensorIpId?: string | undefined;
3208
+ ownerAddress?: string | undefined;
3209
+ } | undefined;
3210
+ };
3211
+ };
3212
+ };
3213
+ responses: {
3214
+ 200: {
3215
+ headers: {
3216
+ [name: string]: unknown;
3217
+ };
3218
+ content: {
3219
+ "application/json": {
3220
+ readonly $schema?: string | undefined;
3221
+ data: {
3222
+ blockNumber: string;
3223
+ blockTime: string;
3224
+ burntAt: string;
3225
+ id: string;
3226
+ licenseTemplate: string;
3227
+ licenseTermsId: string;
3228
+ licensorIpId: string;
3229
+ owner: string;
3230
+ transferable: string;
3231
+ }[] | null;
3232
+ pagination?: {
3233
+ hasMore: boolean;
3234
+ limit: number;
3235
+ offset: number;
3236
+ total: number;
3237
+ } | undefined;
3238
+ };
3239
+ };
3240
+ };
3241
+ default: {
3242
+ headers: {
3243
+ [name: string]: unknown;
3244
+ };
3245
+ content: {
3246
+ "application/problem+json": {
3247
+ readonly $schema?: string | undefined;
3248
+ detail?: string | undefined;
3249
+ errors?: {
3250
+ location?: string | undefined;
3251
+ message?: string | undefined;
3252
+ value?: unknown;
3253
+ }[] | null | undefined;
3254
+ instance?: string | undefined;
3255
+ status?: number | undefined;
3256
+ title?: string | undefined;
3257
+ type: string;
3258
+ };
3259
+ };
3260
+ };
3261
+ };
3262
+ }> | undefined;
3263
+ bodySerializer?: openapi_fetch.BodySerializer<{
3264
+ parameters: {
3265
+ query?: undefined;
3266
+ header?: undefined;
3267
+ path?: undefined;
3268
+ cookie?: undefined;
3269
+ };
3270
+ requestBody: {
3271
+ content: {
3272
+ "application/json": {
3273
+ readonly $schema?: string | undefined;
3274
+ orderBy: "blockNumber";
3275
+ orderDirection: "asc" | "desc";
3276
+ pagination?: {
3277
+ limit: number;
3278
+ offset: number;
3279
+ } | undefined;
3280
+ where?: {
3281
+ licensorIpId?: string | undefined;
3282
+ ownerAddress?: string | undefined;
3283
+ } | undefined;
3284
+ };
3285
+ };
3286
+ };
3287
+ responses: {
3288
+ 200: {
3289
+ headers: {
3290
+ [name: string]: unknown;
3291
+ };
3292
+ content: {
3293
+ "application/json": {
3294
+ readonly $schema?: string | undefined;
3295
+ data: {
3296
+ blockNumber: string;
3297
+ blockTime: string;
3298
+ burntAt: string;
3299
+ id: string;
3300
+ licenseTemplate: string;
3301
+ licenseTermsId: string;
3302
+ licensorIpId: string;
3303
+ owner: string;
3304
+ transferable: string;
3305
+ }[] | null;
3306
+ pagination?: {
3307
+ hasMore: boolean;
3308
+ limit: number;
3309
+ offset: number;
3310
+ total: number;
3311
+ } | undefined;
3312
+ };
3313
+ };
3314
+ };
3315
+ default: {
3316
+ headers: {
3317
+ [name: string]: unknown;
3318
+ };
3319
+ content: {
3320
+ "application/problem+json": {
3321
+ readonly $schema?: string | undefined;
3322
+ detail?: string | undefined;
3323
+ errors?: {
3324
+ location?: string | undefined;
3325
+ message?: string | undefined;
3326
+ value?: unknown;
3327
+ }[] | null | undefined;
3328
+ instance?: string | undefined;
3329
+ status?: number | undefined;
3330
+ title?: string | undefined;
3331
+ type: string;
3332
+ };
3333
+ };
3334
+ };
3335
+ };
3336
+ }> | undefined;
3337
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
3338
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
3339
+ headers?: openapi_fetch.HeadersOptions | undefined;
3340
+ } & Omit<RequestInit, "headers" | "body"> & {
3341
+ readonly $schema?: string | undefined;
3342
+ orderBy: "blockNumber";
3343
+ orderDirection: "asc" | "desc";
3344
+ pagination?: {
3345
+ limit: number;
3346
+ offset: number;
3347
+ } | undefined;
3348
+ where?: {
3349
+ licensorIpId?: string | undefined;
3350
+ ownerAddress?: string | undefined;
3351
+ } | undefined;
3352
+ }, `${string}/${string}`>>;
3353
+
3354
+ type SearchResponse = paths["/search"]["post"]["responses"][200]["content"]["application/json"];
3355
+ type SearchOptions = Partial<paths["/search"]["post"]["requestBody"]["content"]["application/json"]>;
3356
+ type GetSearchOptions = {
3357
+ apiClient: ApiClient;
3358
+ query: string;
3359
+ mediaType?: "audio" | "video" | "image";
3360
+ options?: SearchOptions;
3361
+ apiKey: string;
3362
+ };
3363
+ declare function getSearch({ apiClient, query, mediaType, options, apiKey }: GetSearchOptions): Promise<openapi_fetch.FetchResponse<{
3364
+ parameters: {
3365
+ query?: undefined;
3366
+ header?: undefined;
3367
+ path?: undefined;
3368
+ cookie?: undefined;
3369
+ };
3370
+ requestBody: {
3371
+ content: {
3372
+ "application/json": {
3373
+ readonly $schema?: string | undefined;
3374
+ mediaType?: "audio" | "video" | "image" | undefined;
3375
+ pagination?: {
3376
+ limit: number;
3377
+ offset: number;
3378
+ } | undefined;
3379
+ query: string;
3380
+ };
3381
+ };
3382
+ };
3383
+ responses: {
3384
+ 200: {
3385
+ headers: {
3386
+ [name: string]: unknown;
3387
+ };
3388
+ content: {
3389
+ "application/json": {
3390
+ readonly $schema?: string | undefined;
3391
+ data: {
3392
+ description: string;
3393
+ ipId: string;
3394
+ mediaType: string;
3395
+ score: number;
3396
+ similarity: number;
3397
+ title: string;
3398
+ }[] | null;
3399
+ pagination?: {
3400
+ hasMore: boolean;
3401
+ limit: number;
3402
+ offset: number;
3403
+ total: number;
3404
+ } | undefined;
3405
+ total: number;
3406
+ };
3407
+ };
3408
+ };
3409
+ default: {
3410
+ headers: {
3411
+ [name: string]: unknown;
3412
+ };
3413
+ content: {
3414
+ "application/problem+json": {
3415
+ readonly $schema?: string | undefined;
3416
+ detail?: string | undefined;
3417
+ errors?: {
3418
+ location?: string | undefined;
3419
+ message?: string | undefined;
3420
+ value?: unknown;
3421
+ }[] | null | undefined;
3422
+ instance?: string | undefined;
3423
+ status?: number | undefined;
3424
+ title?: string | undefined;
3425
+ type: string;
3426
+ };
3427
+ };
3428
+ };
3429
+ };
3430
+ }, {
3431
+ params?: {
3432
+ query?: undefined;
3433
+ header?: undefined;
3434
+ path?: undefined;
3435
+ cookie?: undefined;
3436
+ } | undefined;
3437
+ } & {
3438
+ body: {
3439
+ readonly $schema?: string | undefined;
3440
+ mediaType?: "audio" | "video" | "image" | undefined;
3441
+ pagination?: {
3442
+ limit: number;
3443
+ offset: number;
3444
+ } | undefined;
3445
+ query: string;
3446
+ };
3447
+ } & {
3448
+ baseUrl?: string | undefined;
3449
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
3450
+ parameters: {
3451
+ query?: undefined;
3452
+ header?: undefined;
3453
+ path?: undefined;
3454
+ cookie?: undefined;
3455
+ };
3456
+ requestBody: {
3457
+ content: {
3458
+ "application/json": {
3459
+ readonly $schema?: string | undefined;
3460
+ mediaType?: "audio" | "video" | "image" | undefined;
3461
+ pagination?: {
3462
+ limit: number;
3463
+ offset: number;
3464
+ } | undefined;
3465
+ query: string;
3466
+ };
3467
+ };
3468
+ };
3469
+ responses: {
3470
+ 200: {
3471
+ headers: {
3472
+ [name: string]: unknown;
3473
+ };
3474
+ content: {
3475
+ "application/json": {
3476
+ readonly $schema?: string | undefined;
3477
+ data: {
3478
+ description: string;
3479
+ ipId: string;
3480
+ mediaType: string;
3481
+ score: number;
3482
+ similarity: number;
3483
+ title: string;
3484
+ }[] | null;
3485
+ pagination?: {
3486
+ hasMore: boolean;
3487
+ limit: number;
3488
+ offset: number;
3489
+ total: number;
3490
+ } | undefined;
3491
+ total: number;
3492
+ };
3493
+ };
3494
+ };
3495
+ default: {
3496
+ headers: {
3497
+ [name: string]: unknown;
3498
+ };
3499
+ content: {
3500
+ "application/problem+json": {
3501
+ readonly $schema?: string | undefined;
3502
+ detail?: string | undefined;
3503
+ errors?: {
3504
+ location?: string | undefined;
3505
+ message?: string | undefined;
3506
+ value?: unknown;
3507
+ }[] | null | undefined;
3508
+ instance?: string | undefined;
3509
+ status?: number | undefined;
3510
+ title?: string | undefined;
3511
+ type: string;
3512
+ };
3513
+ };
3514
+ };
3515
+ };
3516
+ }> | undefined;
3517
+ bodySerializer?: openapi_fetch.BodySerializer<{
3518
+ parameters: {
3519
+ query?: undefined;
3520
+ header?: undefined;
3521
+ path?: undefined;
3522
+ cookie?: undefined;
3523
+ };
3524
+ requestBody: {
3525
+ content: {
3526
+ "application/json": {
3527
+ readonly $schema?: string | undefined;
3528
+ mediaType?: "audio" | "video" | "image" | undefined;
3529
+ pagination?: {
3530
+ limit: number;
3531
+ offset: number;
3532
+ } | undefined;
3533
+ query: string;
3534
+ };
3535
+ };
3536
+ };
3537
+ responses: {
3538
+ 200: {
3539
+ headers: {
3540
+ [name: string]: unknown;
3541
+ };
3542
+ content: {
3543
+ "application/json": {
3544
+ readonly $schema?: string | undefined;
3545
+ data: {
3546
+ description: string;
3547
+ ipId: string;
3548
+ mediaType: string;
3549
+ score: number;
3550
+ similarity: number;
3551
+ title: string;
3552
+ }[] | null;
3553
+ pagination?: {
3554
+ hasMore: boolean;
3555
+ limit: number;
3556
+ offset: number;
3557
+ total: number;
3558
+ } | undefined;
3559
+ total: number;
3560
+ };
3561
+ };
3562
+ };
3563
+ default: {
3564
+ headers: {
3565
+ [name: string]: unknown;
3566
+ };
3567
+ content: {
3568
+ "application/problem+json": {
3569
+ readonly $schema?: string | undefined;
3570
+ detail?: string | undefined;
3571
+ errors?: {
3572
+ location?: string | undefined;
3573
+ message?: string | undefined;
3574
+ value?: unknown;
3575
+ }[] | null | undefined;
3576
+ instance?: string | undefined;
3577
+ status?: number | undefined;
3578
+ title?: string | undefined;
3579
+ type: string;
3580
+ };
3581
+ };
3582
+ };
3583
+ };
3584
+ }> | undefined;
3585
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
3586
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
3587
+ headers?: openapi_fetch.HeadersOptions | undefined;
3588
+ } & Omit<RequestInit, "headers" | "body"> & {
3589
+ readonly $schema?: string | undefined;
3590
+ mediaType?: "audio" | "video" | "image" | undefined;
3591
+ pagination?: {
3592
+ limit: number;
3593
+ offset: number;
3594
+ } | undefined;
3595
+ query: string;
3596
+ }, `${string}/${string}`>>;
3597
+
3598
+ type TransactionsResponse = paths["/transactions"]["post"]["responses"][200]["content"]["application/json"];
3599
+ type TransactionsOptions = Partial<paths["/transactions"]["post"]["requestBody"]["content"]["application/json"]>;
3600
+ type GetTransactionsOptions = {
3601
+ apiClient: ApiClient;
3602
+ txHashes?: Address[];
3603
+ ipIds?: Address[];
3604
+ initiators?: Address[];
3605
+ eventTypes?: string[];
3606
+ options?: TransactionsOptions;
3607
+ apiKey: string;
3608
+ };
3609
+ declare function getTransactions({ apiClient, txHashes, ipIds, initiators, eventTypes, options, apiKey, }: GetTransactionsOptions): Promise<openapi_fetch.FetchResponse<{
3610
+ parameters: {
3611
+ query?: undefined;
3612
+ header?: undefined;
3613
+ path?: undefined;
3614
+ cookie?: undefined;
3615
+ };
3616
+ requestBody: {
3617
+ content: {
3618
+ "application/json": {
3619
+ readonly $schema?: string | undefined;
3620
+ orderBy: "blockNumber" | "createdAt" | "eventType" | "txHash" | "ipId" | "initiator";
3621
+ orderDirection: "asc" | "desc";
3622
+ pagination?: {
3623
+ limit: number;
3624
+ offset: number;
3625
+ } | undefined;
3626
+ where?: {
3627
+ blockGte?: number | undefined;
3628
+ blockLte?: number | undefined;
3629
+ eventTypes?: string[] | null | undefined;
3630
+ initiators?: string[] | null | undefined;
3631
+ ipIds?: string[] | null | undefined;
3632
+ txHashes?: string[] | null | undefined;
3633
+ } | undefined;
3634
+ };
3635
+ };
3636
+ };
3637
+ responses: {
3638
+ 200: {
3639
+ headers: {
3640
+ [name: string]: unknown;
3641
+ };
3642
+ content: {
3643
+ "application/json": {
3644
+ readonly $schema?: string | undefined;
3645
+ data: {
3646
+ blockNumber: number;
3647
+ createdAt: string;
3648
+ eventType: string;
3649
+ id: number;
3650
+ initiator: string;
3651
+ ipId: string;
3652
+ logIndex: number;
3653
+ txHash: string;
3654
+ }[] | null;
3655
+ pagination?: {
3656
+ hasMore: boolean;
3657
+ limit: number;
3658
+ offset: number;
3659
+ total: number;
3660
+ } | undefined;
3661
+ };
3662
+ };
3663
+ };
3664
+ default: {
3665
+ headers: {
3666
+ [name: string]: unknown;
3667
+ };
3668
+ content: {
3669
+ "application/problem+json": {
3670
+ readonly $schema?: string | undefined;
3671
+ detail?: string | undefined;
3672
+ errors?: {
3673
+ location?: string | undefined;
3674
+ message?: string | undefined;
3675
+ value?: unknown;
3676
+ }[] | null | undefined;
3677
+ instance?: string | undefined;
3678
+ status?: number | undefined;
3679
+ title?: string | undefined;
3680
+ type: string;
3681
+ };
3682
+ };
3683
+ };
3684
+ };
3685
+ }, {
3686
+ params?: {
3687
+ query?: undefined;
3688
+ header?: undefined;
3689
+ path?: undefined;
3690
+ cookie?: undefined;
3691
+ } | undefined;
3692
+ } & {
3693
+ body: {
3694
+ readonly $schema?: string | undefined;
3695
+ orderBy: "blockNumber" | "createdAt" | "eventType" | "txHash" | "ipId" | "initiator";
3696
+ orderDirection: "asc" | "desc";
3697
+ pagination?: {
3698
+ limit: number;
3699
+ offset: number;
3700
+ } | undefined;
3701
+ where?: {
3702
+ blockGte?: number | undefined;
3703
+ blockLte?: number | undefined;
3704
+ eventTypes?: string[] | null | undefined;
3705
+ initiators?: string[] | null | undefined;
3706
+ ipIds?: string[] | null | undefined;
3707
+ txHashes?: string[] | null | undefined;
3708
+ } | undefined;
3709
+ };
3710
+ } & {
3711
+ baseUrl?: string | undefined;
3712
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
3713
+ parameters: {
3714
+ query?: undefined;
3715
+ header?: undefined;
3716
+ path?: undefined;
3717
+ cookie?: undefined;
3718
+ };
3719
+ requestBody: {
3720
+ content: {
3721
+ "application/json": {
3722
+ readonly $schema?: string | undefined;
3723
+ orderBy: "blockNumber" | "createdAt" | "eventType" | "txHash" | "ipId" | "initiator";
3724
+ orderDirection: "asc" | "desc";
3725
+ pagination?: {
3726
+ limit: number;
3727
+ offset: number;
3728
+ } | undefined;
3729
+ where?: {
3730
+ blockGte?: number | undefined;
3731
+ blockLte?: number | undefined;
3732
+ eventTypes?: string[] | null | undefined;
3733
+ initiators?: string[] | null | undefined;
3734
+ ipIds?: string[] | null | undefined;
3735
+ txHashes?: string[] | null | undefined;
3736
+ } | undefined;
3737
+ };
3738
+ };
3739
+ };
3740
+ responses: {
3741
+ 200: {
3742
+ headers: {
3743
+ [name: string]: unknown;
3744
+ };
3745
+ content: {
3746
+ "application/json": {
3747
+ readonly $schema?: string | undefined;
3748
+ data: {
3749
+ blockNumber: number;
3750
+ createdAt: string;
3751
+ eventType: string;
3752
+ id: number;
3753
+ initiator: string;
3754
+ ipId: string;
3755
+ logIndex: number;
3756
+ txHash: string;
3757
+ }[] | null;
3758
+ pagination?: {
3759
+ hasMore: boolean;
3760
+ limit: number;
3761
+ offset: number;
3762
+ total: number;
3763
+ } | undefined;
3764
+ };
3765
+ };
3766
+ };
3767
+ default: {
3768
+ headers: {
3769
+ [name: string]: unknown;
3770
+ };
3771
+ content: {
3772
+ "application/problem+json": {
3773
+ readonly $schema?: string | undefined;
3774
+ detail?: string | undefined;
3775
+ errors?: {
3776
+ location?: string | undefined;
3777
+ message?: string | undefined;
3778
+ value?: unknown;
3779
+ }[] | null | undefined;
3780
+ instance?: string | undefined;
3781
+ status?: number | undefined;
3782
+ title?: string | undefined;
3783
+ type: string;
3784
+ };
3785
+ };
3786
+ };
3787
+ };
3788
+ }> | undefined;
3789
+ bodySerializer?: openapi_fetch.BodySerializer<{
3790
+ parameters: {
3791
+ query?: undefined;
3792
+ header?: undefined;
3793
+ path?: undefined;
3794
+ cookie?: undefined;
3795
+ };
3796
+ requestBody: {
3797
+ content: {
3798
+ "application/json": {
3799
+ readonly $schema?: string | undefined;
3800
+ orderBy: "blockNumber" | "createdAt" | "eventType" | "txHash" | "ipId" | "initiator";
3801
+ orderDirection: "asc" | "desc";
3802
+ pagination?: {
3803
+ limit: number;
3804
+ offset: number;
3805
+ } | undefined;
3806
+ where?: {
3807
+ blockGte?: number | undefined;
3808
+ blockLte?: number | undefined;
3809
+ eventTypes?: string[] | null | undefined;
3810
+ initiators?: string[] | null | undefined;
3811
+ ipIds?: string[] | null | undefined;
3812
+ txHashes?: string[] | null | undefined;
3813
+ } | undefined;
3814
+ };
3815
+ };
3816
+ };
3817
+ responses: {
3818
+ 200: {
3819
+ headers: {
3820
+ [name: string]: unknown;
3821
+ };
3822
+ content: {
3823
+ "application/json": {
3824
+ readonly $schema?: string | undefined;
3825
+ data: {
3826
+ blockNumber: number;
3827
+ createdAt: string;
3828
+ eventType: string;
3829
+ id: number;
3830
+ initiator: string;
3831
+ ipId: string;
3832
+ logIndex: number;
3833
+ txHash: string;
3834
+ }[] | null;
3835
+ pagination?: {
3836
+ hasMore: boolean;
3837
+ limit: number;
3838
+ offset: number;
3839
+ total: number;
3840
+ } | undefined;
3841
+ };
3842
+ };
3843
+ };
3844
+ default: {
3845
+ headers: {
3846
+ [name: string]: unknown;
3847
+ };
3848
+ content: {
3849
+ "application/problem+json": {
3850
+ readonly $schema?: string | undefined;
3851
+ detail?: string | undefined;
3852
+ errors?: {
3853
+ location?: string | undefined;
3854
+ message?: string | undefined;
3855
+ value?: unknown;
3856
+ }[] | null | undefined;
3857
+ instance?: string | undefined;
3858
+ status?: number | undefined;
3859
+ title?: string | undefined;
3860
+ type: string;
3861
+ };
3862
+ };
3863
+ };
3864
+ };
3865
+ }> | undefined;
3866
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
3867
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
3868
+ headers?: openapi_fetch.HeadersOptions | undefined;
3869
+ } & Omit<RequestInit, "headers" | "body"> & {
3870
+ readonly $schema?: string | undefined;
3871
+ orderBy: "blockNumber" | "createdAt" | "eventType" | "txHash" | "ipId" | "initiator";
3872
+ orderDirection: "asc" | "desc";
3873
+ pagination?: {
3874
+ limit: number;
3875
+ offset: number;
3876
+ } | undefined;
3877
+ where?: {
3878
+ blockGte?: number | undefined;
3879
+ blockLte?: number | undefined;
3880
+ eventTypes?: string[] | null | undefined;
3881
+ initiators?: string[] | null | undefined;
3882
+ ipIds?: string[] | null | undefined;
3883
+ txHashes?: string[] | null | undefined;
3884
+ } | undefined;
3885
+ }, `${string}/${string}`>>;
3886
+
3887
+ declare enum API_URL {
3888
+ STAGING = "https://staging-api.storyprotocol.net/api/v4",
3889
+ PRODUCTION = "https://api.storyapis.com/api/v4"
3890
+ }
3891
+
3892
+ type UseCollectionOptions = {
3893
+ collectionAddress: Address;
3894
+ queryOptions?: IpQueryOptions;
3895
+ };
3896
+ declare function useCollection({ collectionAddress, queryOptions, }: UseCollectionOptions): UseQueryResult<Collection | null>;
3897
+
3898
+ type UseCollectionsOptions = {
3899
+ collectionAddresses?: Address[];
3900
+ options?: CollectionsOptions;
3901
+ queryOptions?: IpQueryOptions;
3902
+ };
3903
+ declare function useCollections({ collectionAddresses, options, queryOptions, }?: UseCollectionsOptions): UseQueryResult<CollectionsResponse>;
3904
+
3905
+ type UseDisputeOptions = {
3906
+ disputeId: string;
3907
+ queryOptions?: IpQueryOptions;
3908
+ };
3909
+ declare function useDispute({ disputeId, queryOptions }: UseDisputeOptions): UseQueryResult<Dispute | null>;
3910
+
3911
+ type UseDisputesOptions = {
3912
+ options?: DisputesOptions;
3913
+ queryOptions?: IpQueryOptions;
3914
+ initiator?: Address;
3915
+ targetIpId?: Address;
3916
+ };
3917
+ declare function useDisputes({ initiator, targetIpId, options, queryOptions, }?: UseDisputesOptions): UseQueryResult<DisputesResponse>;
3918
+
3919
+ type UseIpAssetOptions = {
3920
+ ipId: Address;
3921
+ includeLicenses?: boolean;
3922
+ queryOptions?: IpQueryOptions;
3923
+ };
3924
+ declare function useIpAsset({ ipId, includeLicenses, queryOptions }: UseIpAssetOptions): UseQueryResult<IPAsset | null>;
3925
+
3926
+ type UseIpAssetChildrenOptions = {
3927
+ ipId?: Address;
3928
+ options?: IpAssetEdgesOptions;
3929
+ queryOptions?: IpQueryOptions;
3930
+ };
3931
+ declare function useIpAssetChildren({ ipId, options, queryOptions, }?: UseIpAssetChildrenOptions): UseQueryResult<IpAssetEdgesResponse>;
3932
+
3933
+ type UseIpAssetEdgesOptions = {
3934
+ ipId?: Address;
3935
+ parentIpId?: Address;
3936
+ options?: IpAssetEdgesOptions;
3937
+ queryOptions?: IpQueryOptions;
3938
+ };
3939
+ declare function useIpAssetEdges({ ipId, parentIpId, options, queryOptions, }?: UseIpAssetEdgesOptions): UseQueryResult<IpAssetEdgesResponse>;
3940
+
3941
+ type UseIpAssetLicensesOptions = {
3942
+ ipId: Address;
3943
+ queryOptions?: IpQueryOptions;
3944
+ };
3945
+ declare function useIpAssetLicenses({ ipId, queryOptions, }: UseIpAssetLicensesOptions): UseQueryResult<License[] | null>;
3946
+
3947
+ type UseIpAssetParentsOptions = {
3948
+ ipId?: Address;
3949
+ options?: IpAssetEdgesOptions;
3950
+ queryOptions?: IpQueryOptions;
3951
+ };
3952
+ declare function useIpAssetParents({ ipId, options, queryOptions, }?: UseIpAssetParentsOptions): UseQueryResult<IpAssetEdgesResponse>;
3953
+
3954
+ type UseIpAssetsOptions = {
3955
+ ipIds?: Address[];
3956
+ tokenContract?: Address;
3957
+ includeLicenses?: boolean;
3958
+ moderated?: boolean;
3959
+ options?: IpAssetsOptions;
3960
+ queryOptions?: IpQueryOptions;
3961
+ };
3962
+ declare function useIpAssets({ ipIds, tokenContract, includeLicenses, moderated, options, queryOptions, }?: UseIpAssetsOptions): UseQueryResult<IpAssetsResponse>;
3963
+
3964
+ type UseIpAssetsByOwnerOptions = {
3965
+ ownerAddress?: Address;
3966
+ includeLicenses?: boolean;
3967
+ moderated?: boolean;
3968
+ options?: IpAssetsOptions;
3969
+ queryOptions?: IpQueryOptions;
3970
+ };
3971
+ declare function useIpAssetsByOwner({ ownerAddress, includeLicenses, moderated, options, queryOptions, }?: UseIpAssetsByOwnerOptions): UseQueryResult<IpAssetsResponse>;
3972
+
3973
+ type UseLicenseTokensOptions = {
3974
+ ownerAddress: Address;
3975
+ licensorIpId?: Address;
3976
+ options?: LicenseTokensOptions;
3977
+ queryOptions?: IpQueryOptions;
3978
+ };
3979
+ declare function useLicenseTokens({ ownerAddress, licensorIpId, options, queryOptions, }: UseLicenseTokensOptions): UseQueryResult<LicenseTokensResponse>;
3980
+
3981
+ type UseSearchOptions = {
3982
+ query: string;
3983
+ mediaType?: "audio" | "video" | "image";
3984
+ queryOptions?: IpQueryOptions;
3985
+ };
3986
+ declare function useSearch({ query, mediaType, queryOptions }: UseSearchOptions): UseQueryResult<SearchResponse>;
3987
+
3988
+ type UseTransactionOptions = {
3989
+ txHash: Address;
3990
+ queryOptions?: IpQueryOptions;
3991
+ };
3992
+ declare function useTransaction({ txHash, queryOptions }: UseTransactionOptions): UseQueryResult<IPTransaction | null>;
3993
+
3994
+ type UseTransactionsOptions = {
3995
+ txHashes?: Address[];
3996
+ ipIds?: Address[];
3997
+ initiators?: Address[];
3998
+ eventTypes?: string[];
3999
+ options?: TransactionsOptions;
4000
+ queryOptions?: IpQueryOptions;
4001
+ };
4002
+ declare function useTransactions({ txHashes, ipIds, initiators, eventTypes, options, queryOptions, }?: UseTransactionsOptions): UseQueryResult<TransactionsResponse>;
4003
+
4004
+ export { API_URL, type ApiClient, CHAINID_TO_CHAINNAME, CHAINS, type ChainConfig, type Collection, type CollectionMetadata, type CollectionsOptions, type CollectionsResponse, type ContractMetadata, type Creator, type Dispute, type DisputeResponse, type DisputesOptions, type DisputesResponse, type ERC20Token, type GetCollectionsOptions, type GetDisputeOptions, type GetDisputesOptions, type GetIpAssetEdgesOptions, type GetIpAssetsOptions, type GetLicenseTokensOptions, type GetSearchOptions, type GetTransactionsOptions, type IPAsset, type IPAssetEdge, IPKIT_SUPPORTED_CHAIN, type IPMetadata, type IPSearchResult, type IPTransaction, type InfringementStatus, type IpAssetEdgesOptions, type IpAssetEdgesResponse, type IpAssetsOptions, type IpAssetsResponse, IpKitProvider, type IpKitProviderOptions, type IpQueryOptions, type License, type LicenseOffChainData, type LicenseTerms$1 as LicenseTerms, type LicenseTermsWithOffChainData, type LicenseToken, type LicenseTokensOptions, type LicenseTokensResponse, type LicenseWithOffChainData, type LicensingConfig, type Mode, type ModerationStatus, type NFTMetadata, type PILTerms, type PILTermsWithOffChainData, PIL_FLAVOR, type PilFlavor, STORY_AENEID, STORY_MAINNET, type SearchOptions, type SearchResponse, type SocialMedia, type SupportedChainConfig, type Theme, type Trait, type TransactionEventType, type TransactionsOptions, type TransactionsResponse, type UseCollectionOptions, type UseCollectionsOptions, type UseDisputeOptions, type UseDisputesOptions, type UseIpAssetChildrenOptions, type UseIpAssetEdgesOptions, type UseIpAssetLicensesOptions, type UseIpAssetOptions, type UseIpAssetParentsOptions, type UseIpAssetsByOwnerOptions, type UseIpAssetsOptions, type UseLicenseTokensOptions, type UseSearchOptions, type UseTransactionOptions, type UseTransactionsOptions, WRAPPED_IP, camelize, cn, type components, convertIpfsUriToUrl, convertLicenseTermObject, createApiClient, fetchLicenseOffChainData, getCollections, getDispute, getDisputes, getImageUrlFromIpfsUrl, getIpAssetEdges, getIpAssets, getLicenseTokens, getMetadataFromIpfs, getPilFlavorByLicenseTerms, getSearch, getTransactions, type operations, type paths, prodClient, shortenAddress, stagingClient, useCollection, useCollections, useDispute, useDisputes, useIpAsset, useIpAssetChildren, useIpAssetEdges, useIpAssetLicenses, useIpAssetParents, useIpAssets, useIpAssetsByOwner, useIpKit, useLicenseTokens, useSearch, useTransaction, useTransactions };