@story-protocol/core-sdk 0.0.1-beta-rc.3 → 0.0.1-beta-rc.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/declarations/src/client.d.ts +28 -13
  2. package/dist/declarations/src/client.d.ts.map +1 -1
  3. package/dist/declarations/src/clients/storyAPI.d.ts +11 -0
  4. package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -0
  5. package/dist/declarations/src/index.d.ts +2 -4
  6. package/dist/declarations/src/index.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  8. package/dist/declarations/src/resources/ipAccount.d.ts +752 -0
  9. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
  10. package/dist/declarations/src/resources/ipAsset.d.ts +674 -4
  11. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  12. package/dist/declarations/src/resources/license.d.ts +736 -66
  13. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  14. package/dist/declarations/src/resources/permission.d.ts +58 -58
  15. package/dist/declarations/src/resources/policy.d.ts +1416 -66
  16. package/dist/declarations/src/resources/policy.d.ts.map +1 -1
  17. package/dist/declarations/src/types/resources/ipAccount.d.ts +25 -0
  18. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
  19. package/dist/declarations/src/types/resources/ipAsset.d.ts +1 -1
  20. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  21. package/dist/declarations/src/types/resources/license.d.ts +8 -1
  22. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  23. package/dist/declarations/src/types/resources/permission.d.ts +2 -2
  24. package/dist/declarations/src/types/resources/policy.d.ts +11 -1
  25. package/dist/declarations/src/types/resources/policy.d.ts.map +1 -1
  26. package/dist/declarations/src/types/resources/royalty.d.ts +17 -0
  27. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
  28. package/dist/story-protocol-core-sdk.cjs.dev.js +412 -299
  29. package/dist/story-protocol-core-sdk.cjs.prod.js +412 -299
  30. package/dist/story-protocol-core-sdk.esm.js +413 -298
  31. package/package.json +5 -5
  32. package/dist/declarations/src/resources/tagging.d.ts +0 -718
  33. package/dist/declarations/src/resources/tagging.d.ts.map +0 -1
  34. package/dist/declarations/src/types/resources/tagging.d.ts +0 -23
  35. package/dist/declarations/src/types/resources/tagging.d.ts.map +0 -1
  36. package/dist/declarations/src/utils/platform.d.ts +0 -17
  37. package/dist/declarations/src/utils/platform.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"tagging.d.ts","sourceRoot":"../../../../src/resources","sources":["tagging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIlD,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACf,sCAAmC;AAGpC,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IAClC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAuB;gBAErC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;IAK5C,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAoBvD,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAmB9E"}
@@ -1,23 +0,0 @@
1
- import { TxOptions } from "../options.js";
2
- export type Tag = {
3
- id: string;
4
- ipId: `0x${string}`;
5
- tag: string;
6
- };
7
- export type SetTagRequest = {
8
- tag: string;
9
- ipId: `0x${string}`;
10
- txOptions?: TxOptions;
11
- };
12
- export type SetTagResponse = {
13
- txHash: string;
14
- };
15
- export type RemoveTagRequest = {
16
- tag: string;
17
- ipId: `0x${string}`;
18
- txOptions?: TxOptions;
19
- };
20
- export type RemoveTagResponse = {
21
- txHash: string;
22
- };
23
- //# sourceMappingURL=tagging.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tagging.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["tagging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,GAAG,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,17 +0,0 @@
1
- /// <reference types="node" />
2
- import { AxiosInstance } from "axios";
3
- export declare class PlatformClient {
4
- protected readonly httpClient: AxiosInstance;
5
- constructor(httpClient: AxiosInstance);
6
- /**
7
- * Upload a file to Arweave.
8
- *
9
- * @param file - the file binary data to upload
10
- * @param mimeType - the mime type of the file
11
- * @returns the response object that contains the uri of the uploaded file
12
- */
13
- uploadFile(file: File | Buffer, mimeType: string): Promise<{
14
- uri: string;
15
- }>;
16
- }
17
- //# sourceMappingURL=platform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"../../../../src/utils","sources":["platform.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,qBAAa,cAAc;IACzB,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;gBAEjC,UAAU,EAAE,aAAa;IAIrC;;;;;;OAMG;IACU,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAyBzF"}