@story-protocol/core-sdk 0.0.1-beta-test.1 → 0.0.1-beta-rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/README.md +0 -15
  2. package/dist/declarations/src/client.d.ts +22 -38
  3. package/dist/declarations/src/client.d.ts.map +1 -1
  4. package/dist/declarations/src/index.d.ts +11 -12
  5. package/dist/declarations/src/index.d.ts.map +1 -1
  6. package/dist/declarations/src/resources/dispute.d.ts +63 -0
  7. package/dist/declarations/src/resources/dispute.d.ts.map +1 -0
  8. package/dist/declarations/src/resources/ipAsset.d.ts +3 -4
  9. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  10. package/dist/declarations/src/resources/license.d.ts +10 -0
  11. package/dist/declarations/src/resources/license.d.ts.map +1 -0
  12. package/dist/declarations/src/resources/permission.d.ts +3 -4
  13. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  14. package/dist/declarations/src/resources/policy.d.ts +16 -0
  15. package/dist/declarations/src/resources/policy.d.ts.map +1 -0
  16. package/dist/declarations/src/resources/tagging.d.ts +3 -4
  17. package/dist/declarations/src/resources/tagging.d.ts.map +1 -1
  18. package/dist/declarations/src/types/config.d.ts +8 -9
  19. package/dist/declarations/src/types/config.d.ts.map +1 -1
  20. package/dist/declarations/src/types/options.d.ts +0 -6
  21. package/dist/declarations/src/types/options.d.ts.map +1 -1
  22. package/dist/declarations/src/types/resources/dispute.d.ts +50 -0
  23. package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -0
  24. package/dist/declarations/src/types/resources/ipAsset.d.ts +11 -126
  25. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  26. package/dist/declarations/src/types/resources/license.d.ts +23 -0
  27. package/dist/declarations/src/types/resources/license.d.ts.map +1 -0
  28. package/dist/declarations/src/types/resources/permission.d.ts +2 -23
  29. package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
  30. package/dist/declarations/src/types/resources/policy.d.ts +33 -0
  31. package/dist/declarations/src/types/resources/policy.d.ts.map +1 -0
  32. package/dist/declarations/src/types/resources/tagging.d.ts +1 -13
  33. package/dist/declarations/src/types/resources/tagging.d.ts.map +1 -1
  34. package/dist/story-protocol-core-sdk.cjs.dev.js +2458 -1645
  35. package/dist/story-protocol-core-sdk.cjs.prod.js +2458 -1645
  36. package/dist/story-protocol-core-sdk.esm.js +2455 -1639
  37. package/package.json +5 -5
  38. package/dist/declarations/src/enums/ActionType.d.ts +0 -11
  39. package/dist/declarations/src/enums/ActionType.d.ts.map +0 -1
  40. package/dist/declarations/src/enums/ResourceType.d.ts +0 -15
  41. package/dist/declarations/src/enums/ResourceType.d.ts.map +0 -1
  42. package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +0 -26
  43. package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +0 -1
  44. package/dist/declarations/src/resources/moduleReadOnly.d.ts +0 -25
  45. package/dist/declarations/src/resources/moduleReadOnly.d.ts.map +0 -1
  46. package/dist/declarations/src/resources/permissionReadOnly.d.ts +0 -25
  47. package/dist/declarations/src/resources/permissionReadOnly.d.ts.map +0 -1
  48. package/dist/declarations/src/resources/taggingReadOnly.d.ts +0 -24
  49. package/dist/declarations/src/resources/taggingReadOnly.d.ts.map +0 -1
  50. package/dist/declarations/src/resources/transaction.d.ts +0 -11
  51. package/dist/declarations/src/resources/transaction.d.ts.map +0 -1
  52. package/dist/declarations/src/resources/transactionReadOnly.d.ts +0 -25
  53. package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +0 -1
  54. package/dist/declarations/src/types/client.d.ts +0 -23
  55. package/dist/declarations/src/types/client.d.ts.map +0 -1
  56. package/dist/declarations/src/types/resources/module.d.ts +0 -43
  57. package/dist/declarations/src/types/resources/module.d.ts.map +0 -1
  58. package/dist/declarations/src/types/resources/transaction.d.ts +0 -52
  59. package/dist/declarations/src/types/resources/transaction.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@story-protocol/core-sdk",
3
- "version": "0.0.1-beta-test.1",
3
+ "version": "0.0.1-beta-rc.2",
4
4
  "description": "Story Protocol Core SDK",
5
5
  "main": "dist/story-protocol-core-sdk.cjs.js",
6
6
  "module": "dist/story-protocol-core-sdk.esm.js",
@@ -79,10 +79,10 @@
79
79
  "src/types/**/*"
80
80
  ],
81
81
  "check-coverage": true,
82
- "lines": 80,
83
- "functions": 80,
84
- "branches": 80,
85
- "statements": 80
82
+ "lines": 50,
83
+ "functions": 50,
84
+ "branches": 50,
85
+ "statements": 50
86
86
  },
87
87
  "typedoc": {
88
88
  "entryPoint": "./src/index.ts",
@@ -1,11 +0,0 @@
1
- /**
2
- * @public
3
- */
4
- export declare enum ActionType {
5
- Unspecified = "Unspecified",
6
- Register = "Register",
7
- Unregister = "Unregister",
8
- Configure = "Configure",
9
- Create = "Create"
10
- }
11
- //# sourceMappingURL=ActionType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionType.d.ts","sourceRoot":"../../../../src/enums","sources":["ActionType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IACpB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB"}
@@ -1,15 +0,0 @@
1
- /**
2
- * @public
3
- */
4
- export declare enum ResourceType {
5
- Unspecified = "Unspecified",
6
- IPOrg = "IPOrg",
7
- IPAsset = "IPAsset",
8
- License = "License",
9
- Relationship = "Relationship",
10
- RelationshipType = "RelationshipType",
11
- Module = "Module",
12
- Hook = "Hook",
13
- Dispute = "Dispute"
14
- }
15
- //# sourceMappingURL=ResourceType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ResourceType.d.ts","sourceRoot":"../../../../src/enums","sources":["ResourceType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY;IACtB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;CACpB"}
@@ -1,26 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- import { PublicClient } from "viem";
3
- import { GetIpAssetRequest, GetIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse } from "../types/resources/ipAsset.js";
4
- /**
5
- * IPAssetReadOnlyClient allows you to view and search IP Assets on Story Protocol.
6
- */
7
- export declare class IPAssetReadOnlyClient {
8
- protected readonly httpClient: AxiosInstance;
9
- protected readonly rpcClient: PublicClient;
10
- constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
11
- /**
12
- * Get an IP Asset based on the specified IP asset ID.
13
- *
14
- * @param request - the request object for getting an IP Asset.
15
- * @returns the response object the contains the fetched IP Asset.
16
- */
17
- get(request: GetIpAssetRequest): Promise<GetIpAssetResponse>;
18
- /**
19
- * List IP accounts.
20
- *
21
- * @returns the response object that contains results from listing query.
22
- */
23
- list(request?: ListIpAssetRequest): Promise<ListIpAssetResponse>;
24
- getIpId(): Promise<void>;
25
- }
26
- //# sourceMappingURL=ipAssetReadOnly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ipAssetReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAssetReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAa,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,sCAAmC;AAGpC;;GAEG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAYzE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAShE,OAAO;CACrB"}
@@ -1,25 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- import { PublicClient } from "viem";
3
- import { GetModuleRequest, GetModuleResponse, ListModuleRequest, ListModuleResponse } from "../types/resources/module.js";
4
- /**
5
- * ModuleReadOnlyClient allows you to view and search modules on Story Protocol.
6
- */
7
- export declare class ModuleReadOnlyClient {
8
- protected readonly httpClient: AxiosInstance;
9
- protected readonly rpcClient: PublicClient;
10
- constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
11
- /**
12
- * Get an module based on the module name.
13
- *
14
- * @param request - the request object for getting a module.
15
- * @returns the response object the contains the fetched module.
16
- */
17
- get(request: GetModuleRequest): Promise<GetModuleResponse>;
18
- /**
19
- * List modules.
20
- *
21
- * @returns the response object that contains results from listing query.
22
- */
23
- list(request?: ListModuleRequest): Promise<ListModuleResponse>;
24
- }
25
- //# sourceMappingURL=moduleReadOnly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moduleReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["moduleReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,qCAAkC;AAEnC;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IASvE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAQ5E"}
@@ -1,25 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- import { PublicClient } from "viem";
3
- import { GetPermissionRequest, GetPermissionResponse, ListPermissionsRequest, ListPermissionsResponse } from "../types/resources/permission.js";
4
- /**
5
- * IPAssetReadOnlyClient allows you to view and search IP Assets on Story Protocol.
6
- */
7
- export declare class PermissionReadOnlyClient {
8
- protected readonly httpClient: AxiosInstance;
9
- protected readonly rpcClient: PublicClient;
10
- constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
11
- /**
12
- * Get permission based on based on the specified IP id.
13
- *
14
- * @param request - the request object for getting an IP Asset.
15
- * @returns the response object the contains the fetched IP Asset.
16
- */
17
- get(request: GetPermissionRequest): Promise<GetPermissionResponse>;
18
- /**
19
- * List IP accounts.
20
- *
21
- * @returns the response object that contains results from listing query.
22
- */
23
- list(request?: ListPermissionsRequest): Promise<ListPermissionsResponse>;
24
- }
25
- //# sourceMappingURL=permissionReadOnly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permissionReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["permissionReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACxB,yCAAsC;AAIvC;;GAEG;AACH,qBAAa,wBAAwB;IACnC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAc/E;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAQtF"}
@@ -1,24 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- import { PublicClient } from "viem";
3
- import { GetTagRequest, GetTagResponse, ListTagRequest, ListTagResponse } from "../types/resources/tagging.js";
4
- /**
5
- * TaggingReadOnlyClient allows you to view and search IP Assets on Story Protocol.
6
- */
7
- export declare class TaggingReadOnlyClient {
8
- protected readonly httpClient: AxiosInstance;
9
- protected readonly rpcClient: PublicClient;
10
- constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
11
- /**
12
- * Get tags.
13
- *
14
- * @returns the response object that contains results from get tag query.
15
- */
16
- get(request: GetTagRequest): Promise<GetTagResponse>;
17
- /**
18
- * List tags.
19
- *
20
- * @returns the response object that contains results from list tags query.
21
- */
22
- list(request?: ListTagRequest): Promise<ListTagResponse>;
23
- }
24
- //# sourceMappingURL=taggingReadOnly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taggingReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["taggingReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EAChB,sCAAmC;AAEpC;;GAEG;AACH,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;OAIG;IACU,GAAG,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAQjE;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;CAQtE"}
@@ -1,11 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- import { PublicClient, WalletClient } from "viem";
3
- import { TransactionReadOnlyClient } from "./transactionReadOnly.js";
4
- /**
5
- * TransactionClient allows you to view and monitor transactions on Story Protocol.
6
- */
7
- export declare class TransactionClient extends TransactionReadOnlyClient {
8
- private readonly wallet;
9
- constructor(httpClient: AxiosInstance, rpcClient: PublicClient, wallet: WalletClient);
10
- }
11
- //# sourceMappingURL=transaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"../../../../src/resources","sources":["transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,iCAA8B;AAElE;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,yBAAyB;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAE1B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY;CAIrF"}
@@ -1,25 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- import { PublicClient } from "viem";
3
- import { GetTransactionRequest, GetTransactionResponse, ListTransactionRequest, ListTransactionResponse } from "../types/resources/transaction.js";
4
- /**
5
- * TransactionClient allows you to view and monitor transactions on Story Protocol.
6
- */
7
- export declare class TransactionReadOnlyClient {
8
- protected readonly httpClient: AxiosInstance;
9
- protected readonly rpcClient: PublicClient;
10
- constructor(httpClient: AxiosInstance, rpcClient: PublicClient);
11
- /**
12
- * Get transaction data based on the specified transaction id.
13
- *
14
- * @param request - the request object for getting the transaction
15
- * @returns the response object that contains the fetched transaction object
16
- */
17
- get(request: GetTransactionRequest): Promise<GetTransactionResponse>;
18
- /**
19
- * List Transactions.
20
- *
21
- * @returns the response object that contains a list of transactions
22
- */
23
- list(request?: ListTransactionRequest): Promise<ListTransactionResponse>;
24
- }
25
- //# sourceMappingURL=transactionReadOnly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactionReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["transactionReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,0CAAuC;AAExC;;GAEG;AACH,qBAAa,yBAAyB;IACpC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAE/B,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY;IAK9D;;;;;OAKG;IACU,GAAG,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IASjF;;;;OAIG;IACU,IAAI,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAQtF"}
@@ -1,23 +0,0 @@
1
- import { TaggingClient } from "../resources/tagging.js";
2
- import { ModuleReadOnlyClient } from "../resources/moduleReadOnly.js";
3
- import { IPAssetClient } from "../resources/ipAsset.js";
4
- import { IPAssetReadOnlyClient } from "../resources/ipAssetReadOnly.js";
5
- import { PermissionClient } from "../resources/permission.js";
6
- import { PermissionReadOnlyClient } from "../resources/permissionReadOnly.js";
7
- import { TransactionClient } from "../resources/transaction.js";
8
- import { TransactionReadOnlyClient } from "../resources/transactionReadOnly.js";
9
- import { PlatformClient } from "../utils/platform.js";
10
- export interface ReadOnlyClient {
11
- ipAsset: IPAssetReadOnlyClient;
12
- permission: PermissionReadOnlyClient;
13
- transaction: TransactionReadOnlyClient;
14
- module: ModuleReadOnlyClient;
15
- }
16
- export interface Client {
17
- ipAsset: IPAssetClient;
18
- permission: PermissionClient;
19
- transaction: TransactionClient;
20
- platform: PlatformClient;
21
- tagging: TaggingClient;
22
- }
23
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"../../../../src/types","sources":["client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gCAA6B;AACrD,OAAO,EAAE,oBAAoB,EAAE,uCAAoC;AACnE,OAAO,EAAE,aAAa,EAAE,gCAA6B;AACrD,OAAO,EAAE,qBAAqB,EAAE,wCAAqC;AACrE,OAAO,EAAE,gBAAgB,EAAE,mCAAgC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,2CAAwC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,oCAAiC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,4CAAyC;AAC7E,OAAO,EAAE,cAAc,EAAE,6BAA0B;AAEnD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,UAAU,EAAE,wBAAwB,CAAC;IACrC,WAAW,EAAE,yBAAyB,CAAC;IACvC,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,aAAa,CAAC;CACxB"}
@@ -1,43 +0,0 @@
1
- import { QueryOptions } from "../options.js";
2
- /**
3
- * Core data model for modules.
4
- *
5
- * @public
6
- */
7
- export type Module = {
8
- name: string;
9
- module: `0x${string}`;
10
- };
11
- /**
12
- * Request type for module.get method.
13
- *
14
- * @public
15
- */
16
- export type GetModuleRequest = {
17
- name: string;
18
- };
19
- /**
20
- * Response type for module.get method.
21
- *
22
- * @public
23
- */
24
- export type GetModuleResponse = {
25
- data: Module;
26
- };
27
- /**
28
- * Response type for module.list method.
29
- *
30
- * @public
31
- */
32
- export type ListModuleRequest = {
33
- options?: QueryOptions;
34
- };
35
- /**
36
- * Response type for module.list method.
37
- *
38
- * @public
39
- */
40
- export type ListModuleResponse = {
41
- data: Module[];
42
- };
43
- //# sourceMappingURL=module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sBAAmB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC"}
@@ -1,52 +0,0 @@
1
- import { ResourceType } from "../../enums/ResourceType.js";
2
- import { ActionType } from "../../enums/ActionType.js";
3
- import { QueryOptions } from "../options.js";
4
- /**
5
- * Core data model for transactions.
6
- *
7
- * @public
8
- */
9
- export type Transaction = {
10
- id: string;
11
- txHash: string;
12
- ipOrgId: string;
13
- initiator: string;
14
- resourceId: string;
15
- resourceType: ResourceType;
16
- actionType: ActionType;
17
- createdAt: string;
18
- };
19
- /**
20
- * Request type for transaction.get method.
21
- *
22
- * @public
23
- */
24
- export type GetTransactionRequest = {
25
- transactionId: string;
26
- };
27
- /**
28
- * Response type for transaction.get method.
29
- *
30
- * @public
31
- */
32
- export type GetTransactionResponse = {
33
- transaction: Transaction;
34
- };
35
- /**
36
- * Response type for transaction.list method.
37
- *
38
- * @public
39
- */
40
- export type ListTransactionRequest = {
41
- ipOrgId?: string;
42
- options?: QueryOptions;
43
- };
44
- /**
45
- * Response type for transaction.list method.
46
- *
47
- * @public
48
- */
49
- export type ListTransactionResponse = {
50
- transactions: Transaction[];
51
- };
52
- //# sourceMappingURL=transaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oCAAiC;AACxD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,YAAY,EAAE,sBAAmB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B,CAAC"}