@story-protocol/ipkit 0.4.0-beta.9 → 0.4.0

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 (43) hide show
  1. package/README.md +183 -0
  2. package/dist/hooks/index.d.ts +1 -0
  3. package/dist/hooks/index.d.ts.map +1 -1
  4. package/dist/hooks/stories/useLicenseTokens.stories.d.ts +38 -0
  5. package/dist/hooks/stories/useLicenseTokens.stories.d.ts.map +1 -0
  6. package/dist/hooks/useLicenseTokens.d.ts +12 -0
  7. package/dist/hooks/useLicenseTokens.d.ts.map +1 -0
  8. package/dist/lib/api/getCollections.d.ts +3 -3
  9. package/dist/lib/api/getIpAssetEdges.d.ts +3 -3
  10. package/dist/lib/api/getIpAssets.d.ts +6 -6
  11. package/dist/lib/api/getLicenseTokens.d.ts +273 -0
  12. package/dist/lib/api/getLicenseTokens.d.ts.map +1 -0
  13. package/dist/lib/api/getSearch.d.ts +3 -3
  14. package/dist/lib/api/getTransactions.d.ts +3 -3
  15. package/dist/lib/api/index.d.ts +1 -0
  16. package/dist/lib/api/index.d.ts.map +1 -1
  17. package/dist/lib/index.d.ts +0 -2
  18. package/dist/lib/index.d.ts.map +1 -1
  19. package/dist/lib/utils.d.ts +0 -8
  20. package/dist/lib/utils.d.ts.map +1 -1
  21. package/dist/providers/IpKitProvider/IpKitProvider.d.ts +1 -8
  22. package/dist/providers/IpKitProvider/IpKitProvider.d.ts.map +1 -1
  23. package/dist/providers/IpKitProvider/__docs__/Example.d.ts +0 -3
  24. package/dist/providers/IpKitProvider/__docs__/Example.d.ts.map +1 -1
  25. package/dist/providers/IpKitProvider/__docs__/IpKitProvider.stories.d.ts +0 -12
  26. package/dist/providers/IpKitProvider/__docs__/IpKitProvider.stories.d.ts.map +1 -1
  27. package/dist/server-types.d.ts +412 -37
  28. package/dist/server.cjs.js +1 -1
  29. package/dist/server.cjs.js.map +1 -1
  30. package/dist/server.esm.js +1 -1
  31. package/dist/server.esm.js.map +1 -1
  32. package/dist/storyprotocol-storykit.cjs.js +1 -1
  33. package/dist/storyprotocol-storykit.cjs.js.map +1 -1
  34. package/dist/storyprotocol-storykit.esm.js +1 -1
  35. package/dist/storyprotocol-storykit.esm.js.map +1 -1
  36. package/dist/types/openapi.d.ts +1 -0
  37. package/dist/types/openapi.d.ts.map +1 -1
  38. package/dist/types/schema.d.ts +120 -3
  39. package/dist/types/schema.d.ts.map +1 -1
  40. package/dist/types.d.ts +421 -45
  41. package/package.json +20 -31
  42. package/dist/lib/functions/convertLicenseTermObject.d.ts +0 -6
  43. package/dist/lib/functions/convertLicenseTermObject.d.ts.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import { Address } from 'viem';
2
- import { ClassValue } from 'clsx';
3
2
  import * as openapi_fetch from 'openapi-fetch';
4
3
  import { Client } from 'openapi-fetch';
5
4
 
@@ -117,6 +116,26 @@ interface paths {
117
116
  patch?: never;
118
117
  trace?: never;
119
118
  };
119
+ "/licenses/tokens": {
120
+ parameters: {
121
+ query?: never;
122
+ header?: never;
123
+ path?: never;
124
+ cookie?: never;
125
+ };
126
+ get?: never;
127
+ put?: never;
128
+ /**
129
+ * Get License Tokens
130
+ * @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).
131
+ */
132
+ post: operations["getLicenseTokensV4"];
133
+ delete?: never;
134
+ options?: never;
135
+ head?: never;
136
+ patch?: never;
137
+ trace?: never;
138
+ };
120
139
  "/search": {
121
140
  parameters: {
122
141
  query?: never;
@@ -627,6 +646,71 @@ interface components {
627
646
  transferable: boolean;
628
647
  uri: string;
629
648
  };
649
+ LicenseToken: {
650
+ blockNumber: string;
651
+ blockTime: string;
652
+ burntAt: string;
653
+ id: string;
654
+ licenseTemplate: string;
655
+ licenseTermsId: string;
656
+ licensorIpId: string;
657
+ owner: string;
658
+ transferable: string;
659
+ };
660
+ LicenseTokenPaginationOptionsHuma: {
661
+ /**
662
+ * Format: int64
663
+ * @description Number of items to return
664
+ * @default 100
665
+ */
666
+ limit: number;
667
+ /**
668
+ * Format: int64
669
+ * @description Number of items to skip
670
+ * @default 0
671
+ */
672
+ offset: number;
673
+ };
674
+ LicenseTokensRequestBodyHuma: {
675
+ /**
676
+ * Format: uri
677
+ * @description A URL to the JSON Schema for this object.
678
+ */
679
+ readonly $schema?: string;
680
+ /**
681
+ * @description Field to order results by (only 'blockNumber' is supported)
682
+ * @default blockNumber
683
+ * @enum {string}
684
+ */
685
+ orderBy: "blockNumber";
686
+ /**
687
+ * @description Order direction for results ('asc' for ascending, 'desc' for descending)
688
+ * @default desc
689
+ * @enum {string}
690
+ */
691
+ orderDirection: "asc" | "desc";
692
+ /** @description Pagination configuration (optional, defaults: limit=100, offset=0) */
693
+ pagination?: components["schemas"]["LicenseTokenPaginationOptionsHuma"];
694
+ /** @description Optional filter options for license tokens */
695
+ where?: components["schemas"]["LicenseTokensWhereOptionsHuma"];
696
+ };
697
+ LicenseTokensResponseHumaBody: {
698
+ /**
699
+ * Format: uri
700
+ * @description A URL to the JSON Schema for this object.
701
+ */
702
+ readonly $schema?: string;
703
+ /** @description List of license tokens matching the filter criteria */
704
+ data: components["schemas"]["LicenseToken"][] | null;
705
+ /** @description Pagination metadata including total count and hasMore flag */
706
+ pagination?: components["schemas"]["PaginationMetadataHuma"];
707
+ };
708
+ LicenseTokensWhereOptionsHuma: {
709
+ /** @description Optional licensor IP ID to filter license tokens */
710
+ licensorIpId?: string;
711
+ /** @description Optional owner wallet address to filter license tokens */
712
+ ownerAddress?: string;
713
+ };
630
714
  LicensingConfig: {
631
715
  /** Format: int64 */
632
716
  commercialRevShare: number;
@@ -637,8 +721,7 @@ interface components {
637
721
  hookData: string;
638
722
  isSet: boolean;
639
723
  licensingHook: string;
640
- /** Format: int64 */
641
- mintingFee: number;
724
+ mintingFee: string;
642
725
  };
643
726
  ListDisputesResponseHumaBody: {
644
727
  /**
@@ -721,7 +804,7 @@ interface components {
721
804
  * Format: int64
722
805
  * @description Total count of items
723
806
  */
724
- total?: number;
807
+ total: number;
725
808
  };
726
809
  PaginationOptionsHuma: {
727
810
  /**
@@ -998,6 +1081,39 @@ interface operations {
998
1081
  };
999
1082
  };
1000
1083
  };
1084
+ getLicenseTokensV4: {
1085
+ parameters: {
1086
+ query?: never;
1087
+ header?: never;
1088
+ path?: never;
1089
+ cookie?: never;
1090
+ };
1091
+ requestBody: {
1092
+ content: {
1093
+ "application/json": components["schemas"]["LicenseTokensRequestBodyHuma"];
1094
+ };
1095
+ };
1096
+ responses: {
1097
+ /** @description OK */
1098
+ 200: {
1099
+ headers: {
1100
+ [name: string]: unknown;
1101
+ };
1102
+ content: {
1103
+ "application/json": components["schemas"]["LicenseTokensResponseHumaBody"];
1104
+ };
1105
+ };
1106
+ /** @description Error */
1107
+ default: {
1108
+ headers: {
1109
+ [name: string]: unknown;
1110
+ };
1111
+ content: {
1112
+ "application/problem+json": components["schemas"]["ErrorModel"];
1113
+ };
1114
+ };
1115
+ };
1116
+ };
1001
1117
  searchV4: {
1002
1118
  parameters: {
1003
1119
  query?: never;
@@ -1085,14 +1201,15 @@ type IPSearchResult = components["schemas"]["IPSearchResult"];
1085
1201
  type Collection = components["schemas"]["EnrichedCollection"];
1086
1202
  type CollectionMetadata = components["schemas"]["ContractMetadataByAddressResponse"];
1087
1203
  type License = components["schemas"]["License"];
1088
- type LicenseTerms$1 = components["schemas"]["LicenseTerms"];
1204
+ type LicenseTerms = components["schemas"]["LicenseTerms"];
1205
+ type LicenseToken = components["schemas"]["LicenseToken"];
1089
1206
  type LicensingConfig = components["schemas"]["LicensingConfig"];
1090
1207
  type NFTMetadata = components["schemas"]["NFTMetadata"];
1091
1208
  type InfringementStatus = components["schemas"]["InfringementStatus"];
1092
1209
  type ModerationStatus = components["schemas"]["ModerationStatus"];
1093
1210
  type ContractMetadata = components["schemas"]["ContractMetadata"];
1094
1211
  type Dispute = components["schemas"]["Dispute"];
1095
- type PILTerms = LicenseTerms$1;
1212
+ type PILTerms = LicenseTerms;
1096
1213
  type TransactionEventType = "IPRegistered" | "LicenseTermsAttached" | "DerivativeRegistered" | "DisputeRaised" | "DisputeResolved" | "DisputeCancelled" | "DisputeJudgementSet" | "RoyaltyPaid";
1097
1214
 
1098
1215
  declare enum PIL_FLAVOR {
@@ -1183,18 +1300,6 @@ declare enum IPKIT_SUPPORTED_CHAIN {
1183
1300
  }
1184
1301
  declare const WRAPPED_IP: ERC20Token;
1185
1302
 
1186
- declare function cn(...inputs: ClassValue[]): string;
1187
- declare function shortenAddress(address: string, length?: number): string;
1188
- declare function camelize(str: string): string;
1189
- declare function getPilFlavorByLicenseTerms(pilTerms: PILTerms): PilFlavor;
1190
- declare function getImageUrlFromIpfsUrl(ipfsUrl: string): Promise<string>;
1191
- declare function convertIpfsUriToUrl(ipfsUri: string): string;
1192
- declare function getMetadataFromIpfs(ipfsUrl: string): Promise<any>;
1193
- declare function fetchLicenseOffChainData(uri: string): Promise<any>;
1194
-
1195
- type LicenseTerms = Partial<PILTerms>;
1196
- declare function convertLicenseTermObject(licenseTerms: Trait[]): LicenseTerms;
1197
-
1198
1303
  type ApiClient = Client<paths>;
1199
1304
  declare const createApiClient: (baseUrl: string) => Client<paths>;
1200
1305
  declare const stagingClient: Client<paths, `${string}/${string}`>;
@@ -1279,7 +1384,7 @@ declare function getCollections({ collectionAddresses, apiClient, options, apiKe
1279
1384
  hasMore: boolean;
1280
1385
  limit: number;
1281
1386
  offset: number;
1282
- total?: number | undefined;
1387
+ total: number;
1283
1388
  } | undefined;
1284
1389
  };
1285
1390
  };
@@ -1400,7 +1505,7 @@ declare function getCollections({ collectionAddresses, apiClient, options, apiKe
1400
1505
  hasMore: boolean;
1401
1506
  limit: number;
1402
1507
  offset: number;
1403
- total?: number | undefined;
1508
+ total: number;
1404
1509
  } | undefined;
1405
1510
  };
1406
1511
  };
@@ -1498,7 +1603,7 @@ declare function getCollections({ collectionAddresses, apiClient, options, apiKe
1498
1603
  hasMore: boolean;
1499
1604
  limit: number;
1500
1605
  offset: number;
1501
- total?: number | undefined;
1606
+ total: number;
1502
1607
  } | undefined;
1503
1608
  };
1504
1609
  };
@@ -2053,7 +2158,7 @@ declare function getIpAssetEdges({ apiClient, ipId, parentIpId, options, apiKey
2053
2158
  hasMore: boolean;
2054
2159
  limit: number;
2055
2160
  offset: number;
2056
- total?: number | undefined;
2161
+ total: number;
2057
2162
  } | undefined;
2058
2163
  };
2059
2164
  };
@@ -2156,7 +2261,7 @@ declare function getIpAssetEdges({ apiClient, ipId, parentIpId, options, apiKey
2156
2261
  hasMore: boolean;
2157
2262
  limit: number;
2158
2263
  offset: number;
2159
- total?: number | undefined;
2264
+ total: number;
2160
2265
  } | undefined;
2161
2266
  };
2162
2267
  };
@@ -2235,7 +2340,7 @@ declare function getIpAssetEdges({ apiClient, ipId, parentIpId, options, apiKey
2235
2340
  hasMore: boolean;
2236
2341
  limit: number;
2237
2342
  offset: number;
2238
- total?: number | undefined;
2343
+ total: number;
2239
2344
  } | undefined;
2240
2345
  };
2241
2346
  };
@@ -2363,7 +2468,7 @@ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLi
2363
2468
  hookData: string;
2364
2469
  isSet: boolean;
2365
2470
  licensingHook: string;
2366
- mintingFee: number;
2471
+ mintingFee: string;
2367
2472
  };
2368
2473
  templateMetadataUri: string;
2369
2474
  templateName: string;
@@ -2471,7 +2576,7 @@ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLi
2471
2576
  hasMore: boolean;
2472
2577
  limit: number;
2473
2578
  offset: number;
2474
- total?: number | undefined;
2579
+ total: number;
2475
2580
  } | undefined;
2476
2581
  };
2477
2582
  };
@@ -2593,7 +2698,7 @@ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLi
2593
2698
  hookData: string;
2594
2699
  isSet: boolean;
2595
2700
  licensingHook: string;
2596
- mintingFee: number;
2701
+ mintingFee: string;
2597
2702
  };
2598
2703
  templateMetadataUri: string;
2599
2704
  templateName: string;
@@ -2701,7 +2806,7 @@ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLi
2701
2806
  hasMore: boolean;
2702
2807
  limit: number;
2703
2808
  offset: number;
2704
- total?: number | undefined;
2809
+ total: number;
2705
2810
  } | undefined;
2706
2811
  };
2707
2812
  };
@@ -2798,7 +2903,7 @@ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLi
2798
2903
  hookData: string;
2799
2904
  isSet: boolean;
2800
2905
  licensingHook: string;
2801
- mintingFee: number;
2906
+ mintingFee: string;
2802
2907
  };
2803
2908
  templateMetadataUri: string;
2804
2909
  templateName: string;
@@ -2906,7 +3011,7 @@ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLi
2906
3011
  hasMore: boolean;
2907
3012
  limit: number;
2908
3013
  offset: number;
2909
- total?: number | undefined;
3014
+ total: number;
2910
3015
  } | undefined;
2911
3016
  };
2912
3017
  };
@@ -2953,6 +3058,276 @@ declare function getIpAssets({ apiClient, ownerAddress, tokenContract, includeLi
2953
3058
  } | undefined;
2954
3059
  }, `${string}/${string}`>>;
2955
3060
 
3061
+ type LicenseTokensResponse = paths["/licenses/tokens"]["post"]["responses"][200]["content"]["application/json"];
3062
+ type LicenseTokensOptions = Partial<paths["/licenses/tokens"]["post"]["requestBody"]["content"]["application/json"]>;
3063
+ type GetLicenseTokensOptions = {
3064
+ apiClient: ApiClient;
3065
+ ownerAddress?: Address;
3066
+ licensorIpId?: Address;
3067
+ options?: LicenseTokensOptions;
3068
+ apiKey: string;
3069
+ };
3070
+ declare function getLicenseTokens({ apiClient, ownerAddress, licensorIpId, options, apiKey }: GetLicenseTokensOptions): Promise<openapi_fetch.FetchResponse<{
3071
+ parameters: {
3072
+ query?: undefined;
3073
+ header?: undefined;
3074
+ path?: undefined;
3075
+ cookie?: undefined;
3076
+ };
3077
+ requestBody: {
3078
+ content: {
3079
+ "application/json": {
3080
+ readonly $schema?: string | undefined;
3081
+ orderBy: "blockNumber";
3082
+ orderDirection: "asc" | "desc";
3083
+ pagination?: {
3084
+ limit: number;
3085
+ offset: number;
3086
+ } | undefined;
3087
+ where?: {
3088
+ licensorIpId?: string | undefined;
3089
+ ownerAddress?: string | undefined;
3090
+ } | undefined;
3091
+ };
3092
+ };
3093
+ };
3094
+ responses: {
3095
+ 200: {
3096
+ headers: {
3097
+ [name: string]: unknown;
3098
+ };
3099
+ content: {
3100
+ "application/json": {
3101
+ readonly $schema?: string | undefined;
3102
+ data: {
3103
+ blockNumber: string;
3104
+ blockTime: string;
3105
+ burntAt: string;
3106
+ id: string;
3107
+ licenseTemplate: string;
3108
+ licenseTermsId: string;
3109
+ licensorIpId: string;
3110
+ owner: string;
3111
+ transferable: string;
3112
+ }[] | null;
3113
+ pagination?: {
3114
+ hasMore: boolean;
3115
+ limit: number;
3116
+ offset: number;
3117
+ total: number;
3118
+ } | undefined;
3119
+ };
3120
+ };
3121
+ };
3122
+ default: {
3123
+ headers: {
3124
+ [name: string]: unknown;
3125
+ };
3126
+ content: {
3127
+ "application/problem+json": {
3128
+ readonly $schema?: string | undefined;
3129
+ detail?: string | undefined;
3130
+ errors?: {
3131
+ location?: string | undefined;
3132
+ message?: string | undefined;
3133
+ value?: unknown;
3134
+ }[] | null | undefined;
3135
+ instance?: string | undefined;
3136
+ status?: number | undefined;
3137
+ title?: string | undefined;
3138
+ type: string;
3139
+ };
3140
+ };
3141
+ };
3142
+ };
3143
+ }, {
3144
+ params?: {
3145
+ query?: undefined;
3146
+ header?: undefined;
3147
+ path?: undefined;
3148
+ cookie?: undefined;
3149
+ } | undefined;
3150
+ } & {
3151
+ body: {
3152
+ readonly $schema?: string | undefined;
3153
+ orderBy: "blockNumber";
3154
+ orderDirection: "asc" | "desc";
3155
+ pagination?: {
3156
+ limit: number;
3157
+ offset: number;
3158
+ } | undefined;
3159
+ where?: {
3160
+ licensorIpId?: string | undefined;
3161
+ ownerAddress?: string | undefined;
3162
+ } | undefined;
3163
+ };
3164
+ } & {
3165
+ baseUrl?: string | undefined;
3166
+ querySerializer?: openapi_fetch.QuerySerializerOptions | openapi_fetch.QuerySerializer<{
3167
+ parameters: {
3168
+ query?: undefined;
3169
+ header?: undefined;
3170
+ path?: undefined;
3171
+ cookie?: undefined;
3172
+ };
3173
+ requestBody: {
3174
+ content: {
3175
+ "application/json": {
3176
+ readonly $schema?: string | undefined;
3177
+ orderBy: "blockNumber";
3178
+ orderDirection: "asc" | "desc";
3179
+ pagination?: {
3180
+ limit: number;
3181
+ offset: number;
3182
+ } | undefined;
3183
+ where?: {
3184
+ licensorIpId?: string | undefined;
3185
+ ownerAddress?: string | undefined;
3186
+ } | undefined;
3187
+ };
3188
+ };
3189
+ };
3190
+ responses: {
3191
+ 200: {
3192
+ headers: {
3193
+ [name: string]: unknown;
3194
+ };
3195
+ content: {
3196
+ "application/json": {
3197
+ readonly $schema?: string | undefined;
3198
+ data: {
3199
+ blockNumber: string;
3200
+ blockTime: string;
3201
+ burntAt: string;
3202
+ id: string;
3203
+ licenseTemplate: string;
3204
+ licenseTermsId: string;
3205
+ licensorIpId: string;
3206
+ owner: string;
3207
+ transferable: string;
3208
+ }[] | null;
3209
+ pagination?: {
3210
+ hasMore: boolean;
3211
+ limit: number;
3212
+ offset: number;
3213
+ total: number;
3214
+ } | undefined;
3215
+ };
3216
+ };
3217
+ };
3218
+ default: {
3219
+ headers: {
3220
+ [name: string]: unknown;
3221
+ };
3222
+ content: {
3223
+ "application/problem+json": {
3224
+ readonly $schema?: string | undefined;
3225
+ detail?: string | undefined;
3226
+ errors?: {
3227
+ location?: string | undefined;
3228
+ message?: string | undefined;
3229
+ value?: unknown;
3230
+ }[] | null | undefined;
3231
+ instance?: string | undefined;
3232
+ status?: number | undefined;
3233
+ title?: string | undefined;
3234
+ type: string;
3235
+ };
3236
+ };
3237
+ };
3238
+ };
3239
+ }> | undefined;
3240
+ bodySerializer?: openapi_fetch.BodySerializer<{
3241
+ parameters: {
3242
+ query?: undefined;
3243
+ header?: undefined;
3244
+ path?: undefined;
3245
+ cookie?: undefined;
3246
+ };
3247
+ requestBody: {
3248
+ content: {
3249
+ "application/json": {
3250
+ readonly $schema?: string | undefined;
3251
+ orderBy: "blockNumber";
3252
+ orderDirection: "asc" | "desc";
3253
+ pagination?: {
3254
+ limit: number;
3255
+ offset: number;
3256
+ } | undefined;
3257
+ where?: {
3258
+ licensorIpId?: string | undefined;
3259
+ ownerAddress?: string | undefined;
3260
+ } | undefined;
3261
+ };
3262
+ };
3263
+ };
3264
+ responses: {
3265
+ 200: {
3266
+ headers: {
3267
+ [name: string]: unknown;
3268
+ };
3269
+ content: {
3270
+ "application/json": {
3271
+ readonly $schema?: string | undefined;
3272
+ data: {
3273
+ blockNumber: string;
3274
+ blockTime: string;
3275
+ burntAt: string;
3276
+ id: string;
3277
+ licenseTemplate: string;
3278
+ licenseTermsId: string;
3279
+ licensorIpId: string;
3280
+ owner: string;
3281
+ transferable: string;
3282
+ }[] | null;
3283
+ pagination?: {
3284
+ hasMore: boolean;
3285
+ limit: number;
3286
+ offset: number;
3287
+ total: number;
3288
+ } | undefined;
3289
+ };
3290
+ };
3291
+ };
3292
+ default: {
3293
+ headers: {
3294
+ [name: string]: unknown;
3295
+ };
3296
+ content: {
3297
+ "application/problem+json": {
3298
+ readonly $schema?: string | undefined;
3299
+ detail?: string | undefined;
3300
+ errors?: {
3301
+ location?: string | undefined;
3302
+ message?: string | undefined;
3303
+ value?: unknown;
3304
+ }[] | null | undefined;
3305
+ instance?: string | undefined;
3306
+ status?: number | undefined;
3307
+ title?: string | undefined;
3308
+ type: string;
3309
+ };
3310
+ };
3311
+ };
3312
+ };
3313
+ }> | undefined;
3314
+ parseAs?: keyof openapi_fetch.BodyType<unknown> | undefined;
3315
+ fetch?: ((input: Request) => Promise<Response>) | undefined;
3316
+ headers?: openapi_fetch.HeadersOptions | undefined;
3317
+ } & Omit<RequestInit, "headers" | "body"> & {
3318
+ readonly $schema?: string | undefined;
3319
+ orderBy: "blockNumber";
3320
+ orderDirection: "asc" | "desc";
3321
+ pagination?: {
3322
+ limit: number;
3323
+ offset: number;
3324
+ } | undefined;
3325
+ where?: {
3326
+ licensorIpId?: string | undefined;
3327
+ ownerAddress?: string | undefined;
3328
+ } | undefined;
3329
+ }, `${string}/${string}`>>;
3330
+
2956
3331
  type SearchResponse = paths["/search"]["post"]["responses"][200]["content"]["application/json"];
2957
3332
  type SearchOptions = Partial<paths["/search"]["post"]["requestBody"]["content"]["application/json"]>;
2958
3333
  type GetSearchOptions = {
@@ -3002,7 +3377,7 @@ declare function getSearch({ apiClient, query, mediaType, options, apiKey }: Get
3002
3377
  hasMore: boolean;
3003
3378
  limit: number;
3004
3379
  offset: number;
3005
- total?: number | undefined;
3380
+ total: number;
3006
3381
  } | undefined;
3007
3382
  total: number;
3008
3383
  };
@@ -3088,7 +3463,7 @@ declare function getSearch({ apiClient, query, mediaType, options, apiKey }: Get
3088
3463
  hasMore: boolean;
3089
3464
  limit: number;
3090
3465
  offset: number;
3091
- total?: number | undefined;
3466
+ total: number;
3092
3467
  } | undefined;
3093
3468
  total: number;
3094
3469
  };
@@ -3156,7 +3531,7 @@ declare function getSearch({ apiClient, query, mediaType, options, apiKey }: Get
3156
3531
  hasMore: boolean;
3157
3532
  limit: number;
3158
3533
  offset: number;
3159
- total?: number | undefined;
3534
+ total: number;
3160
3535
  } | undefined;
3161
3536
  total: number;
3162
3537
  };
@@ -3258,7 +3633,7 @@ declare function getTransactions({ apiClient, txHashes, ipIds, initiators, event
3258
3633
  hasMore: boolean;
3259
3634
  limit: number;
3260
3635
  offset: number;
3261
- total?: number | undefined;
3636
+ total: number;
3262
3637
  } | undefined;
3263
3638
  };
3264
3639
  };
@@ -3361,7 +3736,7 @@ declare function getTransactions({ apiClient, txHashes, ipIds, initiators, event
3361
3736
  hasMore: boolean;
3362
3737
  limit: number;
3363
3738
  offset: number;
3364
- total?: number | undefined;
3739
+ total: number;
3365
3740
  } | undefined;
3366
3741
  };
3367
3742
  };
@@ -3438,7 +3813,7 @@ declare function getTransactions({ apiClient, txHashes, ipIds, initiators, event
3438
3813
  hasMore: boolean;
3439
3814
  limit: number;
3440
3815
  offset: number;
3441
- total?: number | undefined;
3816
+ total: number;
3442
3817
  } | undefined;
3443
3818
  };
3444
3819
  };
@@ -3491,4 +3866,4 @@ declare enum API_URL {
3491
3866
  PRODUCTION = "https://api.storyapis.com/api/v4"
3492
3867
  }
3493
3868
 
3494
- export { API_URL, type ApiClient, CHAINID_TO_CHAINNAME, CHAINS, type ChainConfig, type Collection, type CollectionMetadata, type CollectionsOptions, type CollectionsResponse, type ContractMetadata, type Creator, type Dispute, type DisputeResponse, type DisputesOptions, type DisputesResponse, type ERC20Token, type GetCollectionsOptions, type GetDisputeOptions, type GetDisputesOptions, type GetIpAssetEdgesOptions, type GetIpAssetsOptions, type GetSearchOptions, type GetTransactionsOptions, type IPAsset, type IPAssetEdge, IPKIT_SUPPORTED_CHAIN, type IPMetadata, type IPSearchResult, type IPTransaction, type InfringementStatus, type IpAssetEdgesOptions, type IpAssetEdgesResponse, type IpAssetsOptions, type IpAssetsResponse, type IpQueryOptions, type License, type LicenseOffChainData, type LicenseTerms$1 as LicenseTerms, type LicenseTermsWithOffChainData, type LicenseWithOffChainData, type LicensingConfig, type ModerationStatus, type NFTMetadata, type PILTerms, type PILTermsWithOffChainData, PIL_FLAVOR, type PilFlavor, STORY_AENEID, STORY_MAINNET, type SearchOptions, type SearchResponse, type SocialMedia, type SupportedChainConfig, type Trait, type TransactionEventType, type TransactionsOptions, type TransactionsResponse, WRAPPED_IP, camelize, cn, type components, convertIpfsUriToUrl, convertLicenseTermObject, createApiClient, fetchLicenseOffChainData, getCollections, getDispute, getDisputes, getImageUrlFromIpfsUrl, getIpAssetEdges, getIpAssets, getMetadataFromIpfs, getPilFlavorByLicenseTerms, getSearch, getTransactions, type operations, type paths, prodClient, shortenAddress, stagingClient };
3869
+ 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, 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, type components, createApiClient, getCollections, getDispute, getDisputes, getIpAssetEdges, getIpAssets, getLicenseTokens, getSearch, getTransactions, type operations, type paths, prodClient, stagingClient };