@xyo-network/witness-model 3.6.0-rc.4 → 3.6.0-rc.6

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.
@@ -1,9 +1,9 @@
1
1
  import type { Promisable } from '@xylabs/promise';
2
2
  import type { AccountInstance } from '@xyo-network/account-model';
3
3
  import type { ModuleQueryResult } from '@xyo-network/module-model';
4
- import type { Payload } from '@xyo-network/payload-model';
4
+ import type { Payload, WithoutPrivateStorageMeta } from '@xyo-network/payload-model';
5
5
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
6
- observe: (payloads?: TIn[]) => Promisable<TOut[]>;
6
+ observe: (payloads?: TIn[]) => Promisable<WithoutPrivateStorageMeta<TOut>[]>;
7
7
  observeQuery: (payloads?: TIn[], account?: AccountInstance) => Promisable<ModuleQueryResult<TOut>>;
8
8
  }
9
9
  //# sourceMappingURL=QueryFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CACnG"}
1
+ {"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC5E,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CACnG"}
@@ -4,56 +4,146 @@ export declare const asAttachableWitnessInstance: {
4
4
  addToResolvers?: boolean;
5
5
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
6
6
  allowNameResolution?: boolean;
7
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
- schema: "network.xyo.witness.config";
9
- }, "schema"> & {
10
- schema: "network.xyo.witness.config";
11
- }, "schema"> & {
12
- schema: string;
13
- };
7
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
8
+ schema: import("@xyo-network/payload-model").Schema;
9
+ readonly archiving?: {
10
+ readonly archivists?: string[] | undefined;
11
+ readonly queries?: string[] | undefined;
12
+ } | undefined;
13
+ readonly allowedQueries?: string[] | undefined;
14
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
15
+ readonly certify?: boolean | undefined;
16
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
17
+ readonly labels?: {
18
+ [x: string]: string | undefined;
19
+ } | undefined;
20
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
21
+ readonly paging?: {
22
+ [x: string]: {
23
+ size?: number | undefined;
24
+ };
25
+ } | undefined;
26
+ readonly retry?: {
27
+ backoff?: number | undefined;
28
+ interval?: number | undefined;
29
+ retries?: number | undefined;
30
+ } | undefined;
31
+ readonly security?: {
32
+ readonly allowAnonymous?: boolean | undefined;
33
+ readonly allowed?: {
34
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
35
+ } | undefined;
36
+ readonly disallowed?: {
37
+ [x: string]: Lowercase<string>[];
38
+ } | undefined;
39
+ } | undefined;
40
+ readonly sign?: boolean | undefined;
41
+ readonly storeQueries?: boolean | undefined;
42
+ readonly timestamp?: boolean | undefined;
43
+ }>;
14
44
  ephemeralQueryAccountEnabled?: boolean;
15
45
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
16
- }, {
17
- schema: string;
18
- } & import("@xyo-network/payload-model").PayloadFields, {
19
- schema: string;
20
- } & import("@xyo-network/payload-model").PayloadFields, import("../EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
46
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
47
+ schema: import("@xyo-network/payload-model").Schema;
48
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
49
+ schema: import("@xyo-network/payload-model").Schema;
50
+ }>, import("../EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
21
51
  <TType extends import("./AttachableInstance.ts").AttachableWitnessInstance<import("@xylabs/object").BaseParamsFields & {
22
52
  account?: import("@xyo-network/account-model").AccountInstance | "random";
23
53
  addToResolvers?: boolean;
24
54
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
25
55
  allowNameResolution?: boolean;
26
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
27
- schema: "network.xyo.witness.config";
28
- }, "schema"> & {
29
- schema: "network.xyo.witness.config";
30
- }, "schema"> & {
31
- schema: string;
32
- };
56
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
57
+ schema: import("@xyo-network/payload-model").Schema;
58
+ readonly archiving?: {
59
+ readonly archivists?: string[] | undefined;
60
+ readonly queries?: string[] | undefined;
61
+ } | undefined;
62
+ readonly allowedQueries?: string[] | undefined;
63
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
64
+ readonly certify?: boolean | undefined;
65
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
66
+ readonly labels?: {
67
+ [x: string]: string | undefined;
68
+ } | undefined;
69
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
70
+ readonly paging?: {
71
+ [x: string]: {
72
+ size?: number | undefined;
73
+ };
74
+ } | undefined;
75
+ readonly retry?: {
76
+ backoff?: number | undefined;
77
+ interval?: number | undefined;
78
+ retries?: number | undefined;
79
+ } | undefined;
80
+ readonly security?: {
81
+ readonly allowAnonymous?: boolean | undefined;
82
+ readonly allowed?: {
83
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
84
+ } | undefined;
85
+ readonly disallowed?: {
86
+ [x: string]: Lowercase<string>[];
87
+ } | undefined;
88
+ } | undefined;
89
+ readonly sign?: boolean | undefined;
90
+ readonly storeQueries?: boolean | undefined;
91
+ readonly timestamp?: boolean | undefined;
92
+ }>;
33
93
  ephemeralQueryAccountEnabled?: boolean;
34
94
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
35
- }, {
36
- schema: string;
37
- } & import("@xyo-network/payload-model").PayloadFields, {
38
- schema: string;
39
- } & import("@xyo-network/payload-model").PayloadFields, import("../EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableWitnessInstance<import("@xylabs/object").BaseParamsFields & {
95
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
96
+ schema: import("@xyo-network/payload-model").Schema;
97
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
98
+ schema: import("@xyo-network/payload-model").Schema;
99
+ }>, import("../EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableWitnessInstance<import("@xylabs/object").BaseParamsFields & {
40
100
  account?: import("@xyo-network/account-model").AccountInstance | "random";
41
101
  addToResolvers?: boolean;
42
102
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
43
103
  allowNameResolution?: boolean;
44
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
45
- schema: "network.xyo.witness.config";
46
- }, "schema"> & {
47
- schema: "network.xyo.witness.config";
48
- }, "schema"> & {
49
- schema: string;
50
- };
104
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
105
+ schema: import("@xyo-network/payload-model").Schema;
106
+ readonly archiving?: {
107
+ readonly archivists?: string[] | undefined;
108
+ readonly queries?: string[] | undefined;
109
+ } | undefined;
110
+ readonly allowedQueries?: string[] | undefined;
111
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
112
+ readonly certify?: boolean | undefined;
113
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
114
+ readonly labels?: {
115
+ [x: string]: string | undefined;
116
+ } | undefined;
117
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
118
+ readonly paging?: {
119
+ [x: string]: {
120
+ size?: number | undefined;
121
+ };
122
+ } | undefined;
123
+ readonly retry?: {
124
+ backoff?: number | undefined;
125
+ interval?: number | undefined;
126
+ retries?: number | undefined;
127
+ } | undefined;
128
+ readonly security?: {
129
+ readonly allowAnonymous?: boolean | undefined;
130
+ readonly allowed?: {
131
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
132
+ } | undefined;
133
+ readonly disallowed?: {
134
+ [x: string]: Lowercase<string>[];
135
+ } | undefined;
136
+ } | undefined;
137
+ readonly sign?: boolean | undefined;
138
+ readonly storeQueries?: boolean | undefined;
139
+ readonly timestamp?: boolean | undefined;
140
+ }>;
51
141
  ephemeralQueryAccountEnabled?: boolean;
52
142
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
53
- }, {
54
- schema: string;
55
- } & import("@xyo-network/payload-model").PayloadFields, {
56
- schema: string;
57
- } & import("@xyo-network/payload-model").PayloadFields, import("../EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
143
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
144
+ schema: import("@xyo-network/payload-model").Schema;
145
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
146
+ schema: import("@xyo-network/payload-model").Schema;
147
+ }>, import("../EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
58
148
  };
59
149
  //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;6HACP,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;6HAA+E,iBAAiB;;;;;;;;;;;;;;;;;;gIAAgG,gBAAoB;CAD7N,CAAA"}
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEACP,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAgG,gBAAoB;CAD7N,CAAA"}
@@ -5,32 +5,92 @@ export declare const isWitnessInstance: import("@xylabs/object").TypeCheck<Witne
5
5
  addToResolvers?: boolean;
6
6
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
7
7
  allowNameResolution?: boolean;
8
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
9
- schema: "network.xyo.witness.config";
10
- }, "schema"> & {
11
- schema: "network.xyo.witness.config";
12
- }, "schema"> & {
13
- schema: string;
14
- };
8
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
9
+ schema: import("@xyo-network/payload-model").Schema;
10
+ readonly archiving?: {
11
+ readonly archivists?: string[] | undefined;
12
+ readonly queries?: string[] | undefined;
13
+ } | undefined;
14
+ readonly allowedQueries?: string[] | undefined;
15
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
16
+ readonly certify?: boolean | undefined;
17
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
18
+ readonly labels?: {
19
+ [x: string]: string | undefined;
20
+ } | undefined;
21
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
22
+ readonly paging?: {
23
+ [x: string]: {
24
+ size?: number | undefined;
25
+ };
26
+ } | undefined;
27
+ readonly retry?: {
28
+ backoff?: number | undefined;
29
+ interval?: number | undefined;
30
+ retries?: number | undefined;
31
+ } | undefined;
32
+ readonly security?: {
33
+ readonly allowAnonymous?: boolean | undefined;
34
+ readonly allowed?: {
35
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
36
+ } | undefined;
37
+ readonly disallowed?: {
38
+ [x: string]: Lowercase<string>[];
39
+ } | undefined;
40
+ } | undefined;
41
+ readonly sign?: boolean | undefined;
42
+ readonly storeQueries?: boolean | undefined;
43
+ readonly timestamp?: boolean | undefined;
44
+ }>;
15
45
  ephemeralQueryAccountEnabled?: boolean;
16
46
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
17
- }, {
18
- schema: string;
19
- } & import("@xyo-network/payload-model").PayloadFields, {
20
- schema: string;
21
- } & import("@xyo-network/payload-model").PayloadFields, import("./EventData.ts").WitnessModuleEventData>>;
47
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
48
+ schema: import("@xyo-network/payload-model").Schema;
49
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
50
+ schema: import("@xyo-network/payload-model").Schema;
51
+ }>, import("./EventData.ts").WitnessModuleEventData>>;
22
52
  export declare const isWitnessModule: import("@xyo-network/module-model").ModuleTypeCheck<WitnessModule<import("@xylabs/object").BaseParamsFields & {
23
53
  account?: import("@xyo-network/account-model").AccountInstance | "random";
24
54
  addToResolvers?: boolean;
25
55
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
26
56
  allowNameResolution?: boolean;
27
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
28
- schema: "network.xyo.witness.config";
29
- }, "schema"> & {
30
- schema: "network.xyo.witness.config";
31
- }, "schema"> & {
32
- schema: string;
33
- };
57
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
58
+ schema: import("@xyo-network/payload-model").Schema;
59
+ readonly archiving?: {
60
+ readonly archivists?: string[] | undefined;
61
+ readonly queries?: string[] | undefined;
62
+ } | undefined;
63
+ readonly allowedQueries?: string[] | undefined;
64
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
65
+ readonly certify?: boolean | undefined;
66
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
67
+ readonly labels?: {
68
+ [x: string]: string | undefined;
69
+ } | undefined;
70
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
71
+ readonly paging?: {
72
+ [x: string]: {
73
+ size?: number | undefined;
74
+ };
75
+ } | undefined;
76
+ readonly retry?: {
77
+ backoff?: number | undefined;
78
+ interval?: number | undefined;
79
+ retries?: number | undefined;
80
+ } | undefined;
81
+ readonly security?: {
82
+ readonly allowAnonymous?: boolean | undefined;
83
+ readonly allowed?: {
84
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
85
+ } | undefined;
86
+ readonly disallowed?: {
87
+ [x: string]: Lowercase<string>[];
88
+ } | undefined;
89
+ } | undefined;
90
+ readonly sign?: boolean | undefined;
91
+ readonly storeQueries?: boolean | undefined;
92
+ readonly timestamp?: boolean | undefined;
93
+ }>;
34
94
  ephemeralQueryAccountEnabled?: boolean;
35
95
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
36
96
  }, import("./EventData.ts").WitnessModuleEventData>>;
@@ -40,13 +100,43 @@ export declare const asWitnessModule: {
40
100
  addToResolvers?: boolean;
41
101
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
42
102
  allowNameResolution?: boolean;
43
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
44
- schema: "network.xyo.witness.config";
45
- }, "schema"> & {
46
- schema: "network.xyo.witness.config";
47
- }, "schema"> & {
48
- schema: string;
49
- };
103
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
104
+ schema: import("@xyo-network/payload-model").Schema;
105
+ readonly archiving?: {
106
+ readonly archivists?: string[] | undefined;
107
+ readonly queries?: string[] | undefined;
108
+ } | undefined;
109
+ readonly allowedQueries?: string[] | undefined;
110
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
111
+ readonly certify?: boolean | undefined;
112
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
113
+ readonly labels?: {
114
+ [x: string]: string | undefined;
115
+ } | undefined;
116
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
117
+ readonly paging?: {
118
+ [x: string]: {
119
+ size?: number | undefined;
120
+ };
121
+ } | undefined;
122
+ readonly retry?: {
123
+ backoff?: number | undefined;
124
+ interval?: number | undefined;
125
+ retries?: number | undefined;
126
+ } | undefined;
127
+ readonly security?: {
128
+ readonly allowAnonymous?: boolean | undefined;
129
+ readonly allowed?: {
130
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
131
+ } | undefined;
132
+ readonly disallowed?: {
133
+ [x: string]: Lowercase<string>[];
134
+ } | undefined;
135
+ } | undefined;
136
+ readonly sign?: boolean | undefined;
137
+ readonly storeQueries?: boolean | undefined;
138
+ readonly timestamp?: boolean | undefined;
139
+ }>;
50
140
  ephemeralQueryAccountEnabled?: boolean;
51
141
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
52
142
  }, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
@@ -55,13 +145,43 @@ export declare const asWitnessModule: {
55
145
  addToResolvers?: boolean;
56
146
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
57
147
  allowNameResolution?: boolean;
58
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
59
- schema: "network.xyo.witness.config";
60
- }, "schema"> & {
61
- schema: "network.xyo.witness.config";
62
- }, "schema"> & {
63
- schema: string;
64
- };
148
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
149
+ schema: import("@xyo-network/payload-model").Schema;
150
+ readonly archiving?: {
151
+ readonly archivists?: string[] | undefined;
152
+ readonly queries?: string[] | undefined;
153
+ } | undefined;
154
+ readonly allowedQueries?: string[] | undefined;
155
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
156
+ readonly certify?: boolean | undefined;
157
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
158
+ readonly labels?: {
159
+ [x: string]: string | undefined;
160
+ } | undefined;
161
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
162
+ readonly paging?: {
163
+ [x: string]: {
164
+ size?: number | undefined;
165
+ };
166
+ } | undefined;
167
+ readonly retry?: {
168
+ backoff?: number | undefined;
169
+ interval?: number | undefined;
170
+ retries?: number | undefined;
171
+ } | undefined;
172
+ readonly security?: {
173
+ readonly allowAnonymous?: boolean | undefined;
174
+ readonly allowed?: {
175
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
176
+ } | undefined;
177
+ readonly disallowed?: {
178
+ [x: string]: Lowercase<string>[];
179
+ } | undefined;
180
+ } | undefined;
181
+ readonly sign?: boolean | undefined;
182
+ readonly storeQueries?: boolean | undefined;
183
+ readonly timestamp?: boolean | undefined;
184
+ }>;
65
185
  ephemeralQueryAccountEnabled?: boolean;
66
186
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
67
187
  }, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WitnessModule<import("@xylabs/object").BaseParamsFields & {
@@ -69,13 +189,43 @@ export declare const asWitnessModule: {
69
189
  addToResolvers?: boolean;
70
190
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
71
191
  allowNameResolution?: boolean;
72
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
73
- schema: "network.xyo.witness.config";
74
- }, "schema"> & {
75
- schema: "network.xyo.witness.config";
76
- }, "schema"> & {
77
- schema: string;
78
- };
192
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
193
+ schema: import("@xyo-network/payload-model").Schema;
194
+ readonly archiving?: {
195
+ readonly archivists?: string[] | undefined;
196
+ readonly queries?: string[] | undefined;
197
+ } | undefined;
198
+ readonly allowedQueries?: string[] | undefined;
199
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
200
+ readonly certify?: boolean | undefined;
201
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
202
+ readonly labels?: {
203
+ [x: string]: string | undefined;
204
+ } | undefined;
205
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
206
+ readonly paging?: {
207
+ [x: string]: {
208
+ size?: number | undefined;
209
+ };
210
+ } | undefined;
211
+ readonly retry?: {
212
+ backoff?: number | undefined;
213
+ interval?: number | undefined;
214
+ retries?: number | undefined;
215
+ } | undefined;
216
+ readonly security?: {
217
+ readonly allowAnonymous?: boolean | undefined;
218
+ readonly allowed?: {
219
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
220
+ } | undefined;
221
+ readonly disallowed?: {
222
+ [x: string]: Lowercase<string>[];
223
+ } | undefined;
224
+ } | undefined;
225
+ readonly sign?: boolean | undefined;
226
+ readonly storeQueries?: boolean | undefined;
227
+ readonly timestamp?: boolean | undefined;
228
+ }>;
79
229
  ephemeralQueryAccountEnabled?: boolean;
80
230
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
81
231
  }, import("./EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
@@ -86,70 +236,190 @@ export declare const asWitnessInstance: {
86
236
  addToResolvers?: boolean;
87
237
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
88
238
  allowNameResolution?: boolean;
89
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
90
- schema: "network.xyo.witness.config";
91
- }, "schema"> & {
92
- schema: "network.xyo.witness.config";
93
- }, "schema"> & {
94
- schema: string;
95
- };
239
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
240
+ schema: import("@xyo-network/payload-model").Schema;
241
+ readonly archiving?: {
242
+ readonly archivists?: string[] | undefined;
243
+ readonly queries?: string[] | undefined;
244
+ } | undefined;
245
+ readonly allowedQueries?: string[] | undefined;
246
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
247
+ readonly certify?: boolean | undefined;
248
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
249
+ readonly labels?: {
250
+ [x: string]: string | undefined;
251
+ } | undefined;
252
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
253
+ readonly paging?: {
254
+ [x: string]: {
255
+ size?: number | undefined;
256
+ };
257
+ } | undefined;
258
+ readonly retry?: {
259
+ backoff?: number | undefined;
260
+ interval?: number | undefined;
261
+ retries?: number | undefined;
262
+ } | undefined;
263
+ readonly security?: {
264
+ readonly allowAnonymous?: boolean | undefined;
265
+ readonly allowed?: {
266
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
267
+ } | undefined;
268
+ readonly disallowed?: {
269
+ [x: string]: Lowercase<string>[];
270
+ } | undefined;
271
+ } | undefined;
272
+ readonly sign?: boolean | undefined;
273
+ readonly storeQueries?: boolean | undefined;
274
+ readonly timestamp?: boolean | undefined;
275
+ }>;
96
276
  ephemeralQueryAccountEnabled?: boolean;
97
277
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
98
- }, {
99
- schema: string;
100
- } & import("@xyo-network/payload-model").PayloadFields, {
101
- schema: string;
102
- } & import("@xyo-network/payload-model").PayloadFields, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
278
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
279
+ schema: import("@xyo-network/payload-model").Schema;
280
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
281
+ schema: import("@xyo-network/payload-model").Schema;
282
+ }>, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
103
283
  <TType extends WitnessInstance<import("@xylabs/object").BaseParamsFields & {
104
284
  account?: import("@xyo-network/account-model").AccountInstance | "random";
105
285
  addToResolvers?: boolean;
106
286
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
107
287
  allowNameResolution?: boolean;
108
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
109
- schema: "network.xyo.witness.config";
110
- }, "schema"> & {
111
- schema: "network.xyo.witness.config";
112
- }, "schema"> & {
113
- schema: string;
114
- };
288
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
289
+ schema: import("@xyo-network/payload-model").Schema;
290
+ readonly archiving?: {
291
+ readonly archivists?: string[] | undefined;
292
+ readonly queries?: string[] | undefined;
293
+ } | undefined;
294
+ readonly allowedQueries?: string[] | undefined;
295
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
296
+ readonly certify?: boolean | undefined;
297
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
298
+ readonly labels?: {
299
+ [x: string]: string | undefined;
300
+ } | undefined;
301
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
302
+ readonly paging?: {
303
+ [x: string]: {
304
+ size?: number | undefined;
305
+ };
306
+ } | undefined;
307
+ readonly retry?: {
308
+ backoff?: number | undefined;
309
+ interval?: number | undefined;
310
+ retries?: number | undefined;
311
+ } | undefined;
312
+ readonly security?: {
313
+ readonly allowAnonymous?: boolean | undefined;
314
+ readonly allowed?: {
315
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
316
+ } | undefined;
317
+ readonly disallowed?: {
318
+ [x: string]: Lowercase<string>[];
319
+ } | undefined;
320
+ } | undefined;
321
+ readonly sign?: boolean | undefined;
322
+ readonly storeQueries?: boolean | undefined;
323
+ readonly timestamp?: boolean | undefined;
324
+ }>;
115
325
  ephemeralQueryAccountEnabled?: boolean;
116
326
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
117
- }, {
118
- schema: string;
119
- } & import("@xyo-network/payload-model").PayloadFields, {
120
- schema: string;
121
- } & import("@xyo-network/payload-model").PayloadFields, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WitnessInstance<import("@xylabs/object").BaseParamsFields & {
327
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
328
+ schema: import("@xyo-network/payload-model").Schema;
329
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
330
+ schema: import("@xyo-network/payload-model").Schema;
331
+ }>, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WitnessInstance<import("@xylabs/object").BaseParamsFields & {
122
332
  account?: import("@xyo-network/account-model").AccountInstance | "random";
123
333
  addToResolvers?: boolean;
124
334
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
125
335
  allowNameResolution?: boolean;
126
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
127
- schema: "network.xyo.witness.config";
128
- }, "schema"> & {
129
- schema: "network.xyo.witness.config";
130
- }, "schema"> & {
131
- schema: string;
132
- };
336
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
337
+ schema: import("@xyo-network/payload-model").Schema;
338
+ readonly archiving?: {
339
+ readonly archivists?: string[] | undefined;
340
+ readonly queries?: string[] | undefined;
341
+ } | undefined;
342
+ readonly allowedQueries?: string[] | undefined;
343
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
344
+ readonly certify?: boolean | undefined;
345
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
346
+ readonly labels?: {
347
+ [x: string]: string | undefined;
348
+ } | undefined;
349
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
350
+ readonly paging?: {
351
+ [x: string]: {
352
+ size?: number | undefined;
353
+ };
354
+ } | undefined;
355
+ readonly retry?: {
356
+ backoff?: number | undefined;
357
+ interval?: number | undefined;
358
+ retries?: number | undefined;
359
+ } | undefined;
360
+ readonly security?: {
361
+ readonly allowAnonymous?: boolean | undefined;
362
+ readonly allowed?: {
363
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
364
+ } | undefined;
365
+ readonly disallowed?: {
366
+ [x: string]: Lowercase<string>[];
367
+ } | undefined;
368
+ } | undefined;
369
+ readonly sign?: boolean | undefined;
370
+ readonly storeQueries?: boolean | undefined;
371
+ readonly timestamp?: boolean | undefined;
372
+ }>;
133
373
  ephemeralQueryAccountEnabled?: boolean;
134
374
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
135
- }, {
136
- schema: string;
137
- } & import("@xyo-network/payload-model").PayloadFields, {
138
- schema: string;
139
- } & import("@xyo-network/payload-model").PayloadFields, import("./EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
375
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
376
+ schema: import("@xyo-network/payload-model").Schema;
377
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
378
+ schema: import("@xyo-network/payload-model").Schema;
379
+ }>, import("./EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
140
380
  };
141
381
  export declare const withWitnessModule: <R>(mod: any, closure: (mod: WitnessModule<import("@xylabs/object").BaseParamsFields & {
142
382
  account?: import("@xyo-network/account-model").AccountInstance | "random";
143
383
  addToResolvers?: boolean;
144
384
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
145
385
  allowNameResolution?: boolean;
146
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
147
- schema: "network.xyo.witness.config";
148
- }, "schema"> & {
149
- schema: "network.xyo.witness.config";
150
- }, "schema"> & {
151
- schema: string;
152
- };
386
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
387
+ schema: import("@xyo-network/payload-model").Schema;
388
+ readonly archiving?: {
389
+ readonly archivists?: string[] | undefined;
390
+ readonly queries?: string[] | undefined;
391
+ } | undefined;
392
+ readonly allowedQueries?: string[] | undefined;
393
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
394
+ readonly certify?: boolean | undefined;
395
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
396
+ readonly labels?: {
397
+ [x: string]: string | undefined;
398
+ } | undefined;
399
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
400
+ readonly paging?: {
401
+ [x: string]: {
402
+ size?: number | undefined;
403
+ };
404
+ } | undefined;
405
+ readonly retry?: {
406
+ backoff?: number | undefined;
407
+ interval?: number | undefined;
408
+ retries?: number | undefined;
409
+ } | undefined;
410
+ readonly security?: {
411
+ readonly allowAnonymous?: boolean | undefined;
412
+ readonly allowed?: {
413
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
414
+ } | undefined;
415
+ readonly disallowed?: {
416
+ [x: string]: Lowercase<string>[];
417
+ } | undefined;
418
+ } | undefined;
419
+ readonly sign?: boolean | undefined;
420
+ readonly storeQueries?: boolean | undefined;
421
+ readonly timestamp?: boolean | undefined;
422
+ }>;
153
423
  ephemeralQueryAccountEnabled?: boolean;
154
424
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
155
425
  }, import("./EventData.ts").WitnessModuleEventData>) => R) => R | undefined;
@@ -158,18 +428,48 @@ export declare const withWitnessInstance: <R>(mod: any, closure: (mod: WitnessIn
158
428
  addToResolvers?: boolean;
159
429
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
160
430
  allowNameResolution?: boolean;
161
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
162
- schema: "network.xyo.witness.config";
163
- }, "schema"> & {
164
- schema: "network.xyo.witness.config";
165
- }, "schema"> & {
166
- schema: string;
167
- };
431
+ config: import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
432
+ schema: import("@xyo-network/payload-model").Schema;
433
+ readonly archiving?: {
434
+ readonly archivists?: string[] | undefined;
435
+ readonly queries?: string[] | undefined;
436
+ } | undefined;
437
+ readonly allowedQueries?: string[] | undefined;
438
+ readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
439
+ readonly certify?: boolean | undefined;
440
+ readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
441
+ readonly labels?: {
442
+ [x: string]: string | undefined;
443
+ } | undefined;
444
+ readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
445
+ readonly paging?: {
446
+ [x: string]: {
447
+ size?: number | undefined;
448
+ };
449
+ } | undefined;
450
+ readonly retry?: {
451
+ backoff?: number | undefined;
452
+ interval?: number | undefined;
453
+ retries?: number | undefined;
454
+ } | undefined;
455
+ readonly security?: {
456
+ readonly allowAnonymous?: boolean | undefined;
457
+ readonly allowed?: {
458
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
459
+ } | undefined;
460
+ readonly disallowed?: {
461
+ [x: string]: Lowercase<string>[];
462
+ } | undefined;
463
+ } | undefined;
464
+ readonly sign?: boolean | undefined;
465
+ readonly storeQueries?: boolean | undefined;
466
+ readonly timestamp?: boolean | undefined;
467
+ }>;
168
468
  ephemeralQueryAccountEnabled?: boolean;
169
469
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
170
- }, {
171
- schema: string;
172
- } & import("@xyo-network/payload-model").PayloadFields, {
173
- schema: string;
174
- } & import("@xyo-network/payload-model").PayloadFields, import("./EventData.ts").WitnessModuleEventData>) => R) => R | undefined;
470
+ }, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
471
+ schema: import("@xyo-network/payload-model").Schema;
472
+ }>, import("@xyo-network/payload-model").DeepRestrictToStringKeys<{
473
+ schema: import("@xyo-network/payload-model").Schema;
474
+ }>, import("./EventData.ts").WitnessModuleEventData>) => R) => R | undefined;
175
475
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGhD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;yGAA+F,CAAA;AAC7H,eAAO,MAAM,eAAe;;;;;;;;;;;;;;oDAA2E,CAAA;AAEvG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;uEANO,iBAChC,iCAAkC,gBAAmB;;;;;;;;;;;;;;;uEAEe,iBAAiB;;;;;;;;;;;;;;0EAC9B,gBAAoB;CAER,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;4HAPK,iBAChC,iCAAkC,gBAAmB;;;;;;;;;;;;;;;;;;;4HAEe,iBAAiB;;;;;;;;;;;;;;;;;;+HAC9B,gBAAoB;CAGJ,CAAA;AAC1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;2EAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;gIAAwC,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGhD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDAA+F,CAAA;AAC7H,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAA2E,CAAA;AAEvG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEANO,iBAChC,iCAAkC,gBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAEe,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAC9B,gBAAoB;CAER,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAPK,iBAChC,iCAAkC,gBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAEe,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAC9B,gBAAoB;CAGJ,CAAA;AAC1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAwC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/witness-model",
3
- "version": "3.6.0-rc.4",
3
+ "version": "3.6.0-rc.6",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,13 +29,13 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/object": "^4.4.13",
33
- "@xylabs/promise": "^4.4.13",
34
- "@xylabs/typeof": "^4.4.13",
35
- "@xyo-network/account-model": "^3.6.0-rc.4",
36
- "@xyo-network/module-events": "^3.6.0-rc.4",
37
- "@xyo-network/module-model": "^3.6.0-rc.4",
38
- "@xyo-network/payload-model": "^3.6.0-rc.4"
32
+ "@xylabs/object": "^4.4.15",
33
+ "@xylabs/promise": "^4.4.15",
34
+ "@xylabs/typeof": "^4.4.15",
35
+ "@xyo-network/account-model": "^3.6.0-rc.6",
36
+ "@xyo-network/module-events": "^3.6.0-rc.6",
37
+ "@xyo-network/module-model": "^3.6.0-rc.6",
38
+ "@xyo-network/payload-model": "^3.6.0-rc.6"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@xylabs/ts-scripts-yarn3": "^4.2.4",
@@ -1,9 +1,9 @@
1
1
  import type { Promisable } from '@xylabs/promise'
2
2
  import type { AccountInstance } from '@xyo-network/account-model'
3
3
  import type { ModuleQueryResult } from '@xyo-network/module-model'
4
- import type { Payload } from '@xyo-network/payload-model'
4
+ import type { Payload, WithoutPrivateStorageMeta } from '@xyo-network/payload-model'
5
5
 
6
6
  export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
7
- observe: (payloads?: TIn[]) => Promisable<TOut[]>
7
+ observe: (payloads?: TIn[]) => Promisable<WithoutPrivateStorageMeta<TOut>[]>
8
8
  observeQuery: (payloads?: TIn[], account?: AccountInstance) => Promisable<ModuleQueryResult<TOut>>
9
9
  }