@story-protocol/ipkit 0.4.0-beta.10

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