@story-protocol/core-sdk 0.1.0-alpha-rc.3 → 0.1.0-alpha-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/enums/ActionType.d.ts +5 -5
- package/dist/declarations/src/enums/ActionType.d.ts.map +1 -1
- package/dist/declarations/src/enums/HookType.d.ts +2 -2
- package/dist/declarations/src/enums/HookType.d.ts.map +1 -1
- package/dist/declarations/src/enums/Relatables.d.ts +9 -0
- package/dist/declarations/src/enums/Relatables.d.ts.map +1 -0
- package/dist/declarations/src/enums/ResourceType.d.ts +9 -9
- package/dist/declarations/src/enums/ResourceType.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +3 -2
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/relationshipReadOnly.d.ts.map +1 -1
- package/dist/declarations/src/types/common.d.ts +6 -0
- package/dist/declarations/src/types/common.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/IPOrg.d.ts +1 -1
- package/dist/declarations/src/types/resources/IPOrg.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/hook.d.ts +2 -1
- package/dist/declarations/src/types/resources/hook.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +9 -4
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/relationship.d.ts +4 -100
- package/dist/declarations/src/types/resources/relationship.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/relationshipType.d.ts +10 -5
- package/dist/declarations/src/types/resources/relationshipType.d.ts.map +1 -1
- package/dist/declarations/src/utils/platform.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +943 -81
- package/dist/story-protocol-core-sdk.cjs.prod.js +943 -81
- package/dist/story-protocol-core-sdk.esm.js +944 -82
- package/package.json +1 -1
- package/dist/declarations/src/enums/IPAssetType.d.ts +0 -11
- package/dist/declarations/src/enums/IPAssetType.d.ts.map +0 -1
@@ -2,10 +2,10 @@
|
|
2
2
|
* @public
|
3
3
|
*/
|
4
4
|
export declare enum ActionType {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
Unspecified = "Unspecified",
|
6
|
+
Register = "Register",
|
7
|
+
Unregister = "Unregister",
|
8
|
+
Configure = "Configure",
|
9
|
+
Create = "Create"
|
10
10
|
}
|
11
11
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ActionType.d.ts","sourceRoot":"../../../../src/enums","sources":["ActionType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IACpB,WAAW,
|
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 +1 @@
|
|
1
|
-
{"version":3,"file":"HookType.d.ts","sourceRoot":"../../../../src/enums","sources":["HookType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,QAAQ;IAClB,
|
1
|
+
{"version":3,"file":"HookType.d.ts","sourceRoot":"../../../../src/enums","sources":["HookType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,QAAQ;IAClB,SAAS,IAAI;IACb,UAAU,IAAI;CACf"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Relatables.d.ts","sourceRoot":"../../../../src/enums","sources":["Relatables.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,SAAS,IAAI;IACb,GAAG,IAAI;IACP,UAAU,IAAI;IACd,OAAO,IAAI;IACX,OAAO,IAAI;IACX,WAAW,IAAI;CAChB"}
|
@@ -2,14 +2,14 @@
|
|
2
2
|
* @public
|
3
3
|
*/
|
4
4
|
export declare enum ResourceType {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
14
|
}
|
15
15
|
//# sourceMappingURL=ResourceType.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResourceType.d.ts","sourceRoot":"../../../../src/enums","sources":["ResourceType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY;IACtB,WAAW,
|
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,8 +1,8 @@
|
|
1
1
|
export { StoryClient } from "./client.js";
|
2
|
-
export { IPAssetType } from "./enums/IPAssetType.js";
|
3
2
|
export { ResourceType } from "./enums/ResourceType.js";
|
4
3
|
export { HookType } from "./enums/HookType.js";
|
5
4
|
export { ActionType } from "./enums/ActionType.js";
|
5
|
+
export { Relatables } from "./enums/Relatables.js";
|
6
6
|
export { HookReadOnlyClient } from "./resources/hookReadOnly.js";
|
7
7
|
export { IPAssetClient } from "./resources/ipAsset.js";
|
8
8
|
export { IPAssetReadOnlyClient } from "./resources/ipAssetReadOnly.js";
|
@@ -16,6 +16,8 @@ export { TransactionClient } from "./resources/transaction.js";
|
|
16
16
|
export { PlatformClient } from "./utils/platform.js";
|
17
17
|
export { AddressZero } from "./constants/addresses.js";
|
18
18
|
export type { StoryConfig, StoryReadOnlyConfig } from "./types/config.js";
|
19
|
+
export type { Client, ReadOnlyClient } from "./types/client.js";
|
20
|
+
export type { Hex, TypedData } from "./types/common.js";
|
19
21
|
export type { IPOrg, GetIPOrgRequest, GetIPOrgResponse, CreateIPOrgRequest, CreateIPOrgResponse, ListIPOrgRequest, ListIPOrgResponse, } from "./types/resources/IPOrg.js";
|
20
22
|
export type { IPAsset, GetIpAssetRequest, GetIpAssetResponse, CreateIpAssetRequest, CreateIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse, } from "./types/resources/ipAsset.js";
|
21
23
|
export type { License, GetLicenseRequest, GetLicenseResponse, CreateLicenseNftRequest, CreateIpaBoundLicenseRequest, CreateLicenseResponse, ListLicenseRequest, ListLicenseResponse, } from "./types/resources/license.js";
|
@@ -24,5 +26,4 @@ export type { RelationshipType, GetRelationshipTypeRequest, GetRelationshipTypeR
|
|
24
26
|
export type { Transaction, GetTransactionRequest, GetTransactionResponse, ListTransactionRequest, ListTransactionResponse, } from "./types/resources/transaction.js";
|
25
27
|
export type { Module, GetModuleRequest, GetModuleResponse, ListModuleRequest, ListModuleResponse, } from "./types/resources/module.js";
|
26
28
|
export type { Hook, GetHookRequest, GetHookResponse, ListHookRequest, ListHookResponse, } from "./types/resources/hook.js";
|
27
|
-
export type { Client, ReadOnlyClient } from "./types/client.js";
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,QAA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ACxB,0CAAuC;AAExC,YAAY,EACV,gBAAgB,EAChB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,gCAAgC,GACjC,8CAA2C;AAE5C,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,GACxB,yCAAsC;AAEvC,YAAY,EACV,MAAM,EACN,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,GACnB,oCAAiC;AAElC,YAAY,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,kCAA+B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"relationshipReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["relationshipReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACzB,2CAAwC;AAIzC;;GAEG;AACH,qBAAa,0BAA0B;IACrC,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,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAkBnF;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"relationshipReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["relationshipReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACzB,2CAAwC;AAIzC;;GAEG;AACH,qBAAa,0BAA0B;IACrC,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,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAkBnF;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAkBvF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,KAAK,MAAM,EAAE,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IPOrg.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["IPOrg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AAErD;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"IPOrg.d.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ueryOptions } from "../options.js";
|
2
|
+
import { HookType } from "../../enums/HookType.js";
|
2
3
|
/**
|
3
4
|
* Core data model for Hook.
|
4
5
|
*
|
@@ -8,7 +9,7 @@ export type Hook = {
|
|
8
9
|
id: string;
|
9
10
|
moduleId: string;
|
10
11
|
interface?: string;
|
11
|
-
hookType:
|
12
|
+
hookType: HookType;
|
12
13
|
registryKey: string;
|
13
14
|
registeredAt: string;
|
14
15
|
txHash: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hook.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sBAAmB;
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sBAAmB;AAC1C,OAAO,EAAE,QAAQ,EAAE,gCAA6B;AAEhD;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
+
import { TypedData } from "../common.js";
|
2
3
|
/**
|
3
4
|
* Core data model for IP Asset.
|
4
5
|
*
|
@@ -7,7 +8,7 @@ import { QueryOptions, TxOptions } from "../options.js";
|
|
7
8
|
export type IPAsset = {
|
8
9
|
id: string;
|
9
10
|
name: string;
|
10
|
-
type:
|
11
|
+
type: IPAssetType;
|
11
12
|
ipOrgId: string;
|
12
13
|
owner: string;
|
13
14
|
mediaUrl: string;
|
@@ -15,6 +16,10 @@ export type IPAsset = {
|
|
15
16
|
createdAt: string;
|
16
17
|
txHash: string;
|
17
18
|
};
|
19
|
+
export type IPAssetType = {
|
20
|
+
index: number;
|
21
|
+
value: string;
|
22
|
+
};
|
18
23
|
/**
|
19
24
|
* Request type for ipAsset.get method.
|
20
25
|
*
|
@@ -38,13 +43,13 @@ export type GetIpAssetResponse = {
|
|
38
43
|
*/
|
39
44
|
export type CreateIpAssetRequest = {
|
40
45
|
name: string;
|
41
|
-
|
46
|
+
typeIndex: number;
|
42
47
|
ipOrgId: string;
|
43
48
|
owner?: string;
|
44
49
|
mediaUrl?: string;
|
45
50
|
contentHash?: string;
|
46
|
-
preHookData?: Array<
|
47
|
-
postHookData?: Array<
|
51
|
+
preHookData?: Array<TypedData>;
|
52
|
+
postHookData?: Array<TypedData>;
|
48
53
|
txOptions?: TxOptions;
|
49
54
|
};
|
50
55
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;
|
1
|
+
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sB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C/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC"}
|
@@ -1,108 +1,13 @@
|
|
1
1
|
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
-
|
3
|
-
* Core type for relationship IPAsset.
|
4
|
-
*
|
5
|
-
* @public
|
6
|
-
*/
|
7
|
-
export type IPAssetId = {
|
8
|
-
franchiseId: string;
|
9
|
-
ipAssetId: string;
|
10
|
-
};
|
11
|
-
/**
|
12
|
-
* Request type for relationship.relate method.
|
13
|
-
*
|
14
|
-
* @public
|
15
|
-
*/
|
16
|
-
export type RelationshipRelateRequest = {
|
17
|
-
sourceIPAsset: IPAssetId;
|
18
|
-
destIPAsset: IPAssetId;
|
19
|
-
ttl?: string;
|
20
|
-
};
|
21
|
-
/**
|
22
|
-
* Response type for relationship.relate method.
|
23
|
-
*
|
24
|
-
* @public
|
25
|
-
*/
|
26
|
-
export type RelationshipRelateResponse = {
|
27
|
-
txHash: string;
|
28
|
-
};
|
29
|
-
/**
|
30
|
-
* Request type for relationship.unrelate method.
|
31
|
-
*
|
32
|
-
* @public
|
33
|
-
*/
|
34
|
-
export type RelationshipUnrelateRequest = {
|
35
|
-
sourceIPAsset: IPAssetId;
|
36
|
-
destIPAsset: IPAssetId;
|
37
|
-
ttl?: string;
|
38
|
-
};
|
39
|
-
/**
|
40
|
-
* Response type for relationship.unrelate method.
|
41
|
-
*
|
42
|
-
* @public
|
43
|
-
*/
|
44
|
-
export type RelationshipUnrelateResponse = {
|
45
|
-
txHash: string;
|
46
|
-
};
|
47
|
-
/**
|
48
|
-
* Request type for relationship.isRelationshipExpired method.
|
49
|
-
*
|
50
|
-
* @public
|
51
|
-
*/
|
52
|
-
export type RelationshipIsRelationshipExpiredRequest = {
|
53
|
-
sourceIPAsset: IPAssetId;
|
54
|
-
destIPAsset: IPAssetId;
|
55
|
-
ttl?: string;
|
56
|
-
};
|
57
|
-
/**
|
58
|
-
* Response type for relationship.isRelationshipExpired method.
|
59
|
-
*
|
60
|
-
* @public
|
61
|
-
*/
|
62
|
-
export type RelationshipIsRelationshipExpiredResponse = {
|
63
|
-
result: boolean;
|
64
|
-
};
|
65
|
-
/**
|
66
|
-
* Request type for relationship.isRelated method.
|
67
|
-
*
|
68
|
-
* @public
|
69
|
-
*/
|
70
|
-
export type RelationshipIsRelatedRequest = {
|
71
|
-
sourceIPAsset: IPAssetId;
|
72
|
-
destIPAsset: IPAssetId;
|
73
|
-
ttl?: string;
|
74
|
-
};
|
75
|
-
/**
|
76
|
-
* Response type for relationship.isRelated method.
|
77
|
-
*
|
78
|
-
* @public
|
79
|
-
*/
|
80
|
-
export type RelationshipIsRelatedResponse = {
|
81
|
-
result: boolean;
|
82
|
-
};
|
83
|
-
declare enum Relatables {
|
84
|
-
UNDEFINED = 0,
|
85
|
-
IPA = 1,
|
86
|
-
IPORG_ENTRY = 2,
|
87
|
-
LICENSE = 3,
|
88
|
-
ADDRESS = 4,
|
89
|
-
EXTERNAL_NFT = 5
|
90
|
-
}
|
91
|
-
export interface RelatedElements {
|
92
|
-
src: Relatables;
|
93
|
-
dst: Relatables;
|
94
|
-
}
|
2
|
+
import { TypedData } from "../common.js";
|
95
3
|
export type Relationship = {
|
96
4
|
id: string;
|
97
5
|
type: string;
|
98
6
|
typeId: string;
|
99
7
|
srcContract: string;
|
100
8
|
srcTokenId: string;
|
101
|
-
srcName?: string;
|
102
9
|
dstContract: string;
|
103
10
|
dstTokenId: string;
|
104
|
-
dstName?: string;
|
105
|
-
ttl?: number;
|
106
11
|
registeredAt: string;
|
107
12
|
txHash: string;
|
108
13
|
};
|
@@ -113,8 +18,8 @@ export type RegisterRelationshipRequest = {
|
|
113
18
|
srcTokenId: string;
|
114
19
|
dstContract: string;
|
115
20
|
dstTokenId: string;
|
116
|
-
preHookData
|
117
|
-
postHookData
|
21
|
+
preHookData?: Array<TypedData>;
|
22
|
+
postHookData?: Array<TypedData>;
|
118
23
|
txOptions?: TxOptions;
|
119
24
|
};
|
120
25
|
export type RegisterRelationshipResponse = {
|
@@ -131,11 +36,10 @@ export type GetRelationshipResponse = {
|
|
131
36
|
};
|
132
37
|
export type ListRelationshipRequest = {
|
133
38
|
tokenId: string;
|
134
|
-
contract
|
39
|
+
contract: string;
|
135
40
|
options?: QueryOptions;
|
136
41
|
};
|
137
42
|
export type ListRelationshipResponse = {
|
138
43
|
relationships: Relationship[];
|
139
44
|
};
|
140
|
-
export {};
|
141
45
|
//# sourceMappingURL=relationship.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;
|
1
|
+
{"version":3,"file":"relationship.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AACrD,OAAO,EAAE,SAAS,EAAE,qBAAkB;AAEtC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { QueryOptions, TxOptions } from "../options.js";
|
2
|
-
import {
|
2
|
+
import { TypedData } from "../common.js";
|
3
|
+
import { Relatables } from "../../enums/Relatables.js";
|
3
4
|
export type RelationshipType = {
|
4
5
|
type: string;
|
5
6
|
ipOrgId: string;
|
@@ -26,14 +27,18 @@ export type ListRelationshipTypesRequest = {
|
|
26
27
|
export type ListRelationshipTypesResponse = {
|
27
28
|
relationshipTypes: RelationshipType[];
|
28
29
|
};
|
30
|
+
export type RelatedElements = {
|
31
|
+
src: Relatables;
|
32
|
+
dst: Relatables;
|
33
|
+
};
|
29
34
|
export type RegisterRelationshipTypeRequest = {
|
30
35
|
ipOrgId: string;
|
31
36
|
relType: string;
|
32
37
|
relatedElements: RelatedElements;
|
33
|
-
|
34
|
-
|
35
|
-
preHooksConfig
|
36
|
-
postHooksConfig
|
38
|
+
allowedSrcIpAssetTypes: number[];
|
39
|
+
allowedDstIpAssetTypes: number[];
|
40
|
+
preHooksConfig?: Array<TypedData>;
|
41
|
+
postHooksConfig?: Array<TypedData>;
|
37
42
|
txOptions?: TxOptions;
|
38
43
|
};
|
39
44
|
export type RegisterRelationshipTypeResponse = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"relationshipType.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationshipType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AACrD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"relationshipType.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["relationshipType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAmB;AACrD,OAAO,EAAE,SAAS,EAAE,qBAAkB;AACtC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,UAAU,CAAC;IAChB,GAAG,EAAE,UAAU,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,eAAe,CAAC;IACjC,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"../../../../src/utils","sources":["platform.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
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"}
|