@xyo-network/diviner-payload-pointer-model 4.0.2 → 4.1.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.
- package/dist/neutral/index.d.ts +107 -0
- package/package.json +12 -12
- /package/{dist/types → build/neutral}/Config.d.ts +0 -0
- /package/{dist/types → build/neutral}/Config.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Params.d.ts +0 -0
- /package/{dist/types → build/neutral}/Params.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/BoundWitnessPointer.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/BoundWitnessPointer.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadPointer.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadPointer.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/PayloadRule.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/PayloadRule.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/PayloadSearchCriteria.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/PayloadSearchCriteria.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadAddressRule.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadAddressRule.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadSchemaRule.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadSchemaRule.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadSequenceOrderRule.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadSequenceOrderRule.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/index.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/index.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadAddressRule.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadAddressRule.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadSchemaRule.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadSchemaRule.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadSequenceOrderRule.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadSequenceOrderRule.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/PayloadRules/index.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/Pointer.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/Pointer.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/index.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Pointer/isPointerPayload.d.ts +0 -0
- /package/{dist/types → build/neutral}/Pointer/isPointerPayload.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/index.d.ts.map +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import { ModuleIdentifier, AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model';
|
|
4
|
+
import { Sequence, Schema, Payload, PayloadSchema } from '@xyo-network/payload-model';
|
|
5
|
+
import { Order } from '@xyo-network/diviner-payload-model';
|
|
6
|
+
import { Address } from '@xylabs/hex';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The config schema for the Payload Pointer Diviner
|
|
10
|
+
*/
|
|
11
|
+
declare const PayloadPointerDivinerConfigSchema = "network.xyo.diviner.payload.pointer.config";
|
|
12
|
+
/**
|
|
13
|
+
* The config schema type for the Payload Pointer Diviner
|
|
14
|
+
*/
|
|
15
|
+
type PayloadPointerDivinerConfigSchema = typeof PayloadPointerDivinerConfigSchema;
|
|
16
|
+
/**
|
|
17
|
+
* The configuration for the Payload Pointer Diviner
|
|
18
|
+
*/
|
|
19
|
+
type PayloadPointerDivinerConfig = DivinerConfig<{
|
|
20
|
+
/**
|
|
21
|
+
* The module identifier of the bound witness diviner
|
|
22
|
+
*/
|
|
23
|
+
boundWitnessDiviner: ModuleIdentifier;
|
|
24
|
+
/**
|
|
25
|
+
* The module identifier of the payload diviner
|
|
26
|
+
*/
|
|
27
|
+
payloadDiviner: ModuleIdentifier;
|
|
28
|
+
} & {
|
|
29
|
+
schema: PayloadPointerDivinerConfigSchema;
|
|
30
|
+
}>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The params type of the Payload Pointer diviner
|
|
34
|
+
**/
|
|
35
|
+
type PayloadPointerDivinerParams = DivinerParams<AnyConfigSchema<PayloadPointerDivinerConfig>>;
|
|
36
|
+
|
|
37
|
+
interface PayloadAddressRule {
|
|
38
|
+
address: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface PayloadSchemaRule {
|
|
42
|
+
schema: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface PayloadSequenceOrderRule {
|
|
46
|
+
order?: Order;
|
|
47
|
+
sequence?: Sequence;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
type PayloadRule = PayloadAddressRule | PayloadSequenceOrderRule | PayloadSchemaRule;
|
|
51
|
+
|
|
52
|
+
interface PayloadSearchCriteria {
|
|
53
|
+
addresses: Address[];
|
|
54
|
+
cursor?: Sequence;
|
|
55
|
+
order: Order;
|
|
56
|
+
schemas: Schema[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const isPayloadAddressRule: (rule: PayloadRule) => rule is PayloadAddressRule;
|
|
60
|
+
|
|
61
|
+
declare const isPayloadSchemaRule: (rule: PayloadRule) => rule is PayloadSchemaRule;
|
|
62
|
+
|
|
63
|
+
declare const isPayloadSequenceOrderRule: (rule: PayloadRule) => rule is PayloadSequenceOrderRule;
|
|
64
|
+
|
|
65
|
+
type PointerPayload = Payload<{
|
|
66
|
+
reference: PayloadRule[][];
|
|
67
|
+
}>;
|
|
68
|
+
|
|
69
|
+
type BoundWitnessPointerSchema = `${BoundWitnessSchema}.pointer`;
|
|
70
|
+
declare const BoundWitnessPointerSchema: BoundWitnessPointerSchema;
|
|
71
|
+
type BoundWitnessPointerPayload = PointerPayload & {
|
|
72
|
+
schema: BoundWitnessPointerSchema;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Identity function for determining if an object is a BoundWitness Pointer
|
|
76
|
+
* @param x The object to check
|
|
77
|
+
*/
|
|
78
|
+
declare const isBoundWitnessPointer: (x?: Payload | null) => x is BoundWitnessPointerPayload;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Identity function for determining if an object is a Pointer Payload (PayloadPointer or BoundWitnessPointer)
|
|
82
|
+
* @param x The object to check
|
|
83
|
+
*/
|
|
84
|
+
declare const isPointerPayload: (x?: Payload | null) => x is PointerPayload;
|
|
85
|
+
|
|
86
|
+
type PayloadPointerSchema = `${PayloadSchema}.pointer`;
|
|
87
|
+
declare const PayloadPointerSchema: PayloadPointerSchema;
|
|
88
|
+
type PayloadPointerPayload = PointerPayload & {
|
|
89
|
+
schema: PayloadPointerSchema;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Identity function for determining if an object is a Payload Pointer
|
|
93
|
+
* @param x The object to check
|
|
94
|
+
*/
|
|
95
|
+
declare const isPayloadPointer: (x?: Payload | null) => x is PayloadPointerPayload;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The schema used for the Payload Pointer Diviner.
|
|
99
|
+
*/
|
|
100
|
+
declare const PayloadPointerDivinerSchema = "network.xyo.diviner.payload.pointer";
|
|
101
|
+
/**
|
|
102
|
+
* The schema type used for the Payload Pointer Diviner.
|
|
103
|
+
*/
|
|
104
|
+
type PayloadPointerDivinerSchema = typeof PayloadPointerDivinerSchema;
|
|
105
|
+
|
|
106
|
+
export { BoundWitnessPointerSchema, PayloadPointerDivinerConfigSchema, PayloadPointerDivinerSchema, PayloadPointerSchema, isBoundWitnessPointer, isPayloadAddressRule, isPayloadPointer, isPayloadSchemaRule, isPayloadSequenceOrderRule, isPointerPayload };
|
|
107
|
+
export type { BoundWitnessPointerPayload, PayloadAddressRule, PayloadPointerDivinerConfig, PayloadPointerDivinerParams, PayloadPointerPayload, PayloadRule, PayloadSchemaRule, PayloadSearchCriteria, PayloadSequenceOrderRule, PointerPayload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-payload-pointer-model",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/exists": "^4.
|
|
33
|
-
"@xylabs/hex": "^4.
|
|
34
|
-
"@xyo-network/boundwitness-model": "^4.0
|
|
35
|
-
"@xyo-network/diviner-model": "^4.0
|
|
36
|
-
"@xyo-network/diviner-payload-model": "^4.0
|
|
37
|
-
"@xyo-network/module-model": "^4.0
|
|
38
|
-
"@xyo-network/payload-model": "^4.0
|
|
32
|
+
"@xylabs/exists": "^4.13.15",
|
|
33
|
+
"@xylabs/hex": "^4.13.15",
|
|
34
|
+
"@xyo-network/boundwitness-model": "^4.1.0",
|
|
35
|
+
"@xyo-network/diviner-model": "^4.1.0",
|
|
36
|
+
"@xyo-network/diviner-payload-model": "^4.1.0",
|
|
37
|
+
"@xyo-network/module-model": "^4.1.0",
|
|
38
|
+
"@xyo-network/payload-model": "^4.1.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
42
|
-
"@xylabs/tsconfig": "^
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
42
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
43
43
|
"typescript": "^5.8.3"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadAddressRule.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadSequenceOrderRule.d.ts
RENAMED
|
File without changes
|
/package/{dist/types → build/neutral}/Pointer/PayloadRules/Rules/PayloadSequenceOrderRule.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadAddressRule.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{dist/types → build/neutral}/Pointer/PayloadRules/TypePredicates/isPayloadSchemaRule.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|