@story-protocol/ipkit 0.4.0-beta.9

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