@degenerate/generic 0.2.5 → 0.2.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.
|
@@ -102,7 +102,7 @@ export declare const ShareDataEventSchema: z.ZodObject<{
|
|
|
102
102
|
eventSource: z.ZodString;
|
|
103
103
|
eventSourceTruthType: z.ZodEnum<["Crypto", "Oauth", "ShareBlock"]>;
|
|
104
104
|
eventSourceTruthProofType: z.ZodEnum<["Hash", "Signature"]>;
|
|
105
|
-
|
|
105
|
+
EventSourceTruthProof: z.ZodString;
|
|
106
106
|
triggerCondition: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodBoolean>;
|
|
107
107
|
shareDataEventInformation: z.ZodArray<z.ZodObject<{
|
|
108
108
|
shareData: z.ZodArray<z.ZodObject<{
|
|
@@ -147,7 +147,7 @@ export declare const ShareDataEventSchema: z.ZodObject<{
|
|
|
147
147
|
eventSource: string;
|
|
148
148
|
eventSourceTruthType: "Crypto" | "Oauth" | "ShareBlock";
|
|
149
149
|
eventSourceTruthProofType: "Hash" | "Signature";
|
|
150
|
-
|
|
150
|
+
EventSourceTruthProof: string;
|
|
151
151
|
triggerCondition: (args_0: any, ...args: unknown[]) => boolean;
|
|
152
152
|
shareDataEventInformation: {
|
|
153
153
|
shareData: {
|
|
@@ -166,7 +166,7 @@ export declare const ShareDataEventSchema: z.ZodObject<{
|
|
|
166
166
|
eventSource: string;
|
|
167
167
|
eventSourceTruthType: "Crypto" | "Oauth" | "ShareBlock";
|
|
168
168
|
eventSourceTruthProofType: "Hash" | "Signature";
|
|
169
|
-
|
|
169
|
+
EventSourceTruthProof: string;
|
|
170
170
|
triggerCondition: (args_0: any, ...args: unknown[]) => boolean;
|
|
171
171
|
shareDataEventInformation: {
|
|
172
172
|
shareData: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"share-event-models.d.ts","sourceRoot":"","sources":["../../../src/models/events/share-event-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,KAAK,CAAC;AAoB7C;;GAEG;AACH,oBAAY,cAAc;IACtB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,oBAAoB,uDAI/B,CAAC;AAEH;;GAEG;AACH,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;CAC5B;AAED,eAAO,MAAM,0BAA0B,8CAIrC,CAAC;AAEH;;GAEG;AACH,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,+BAA+B,kCAG1C,CAAC;AAEH;;GAEG;AACH,oBAAY,4BAA4B;IACpC,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAED,eAAO,MAAM,kCAAkC,mCAG7C,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"share-event-models.d.ts","sourceRoot":"","sources":["../../../src/models/events/share-event-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,KAAK,CAAC;AAoB7C;;GAEG;AACH,oBAAY,cAAc;IACtB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,oBAAoB,uDAI/B,CAAC;AAEH;;GAEG;AACH,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;CAC5B;AAED,eAAO,MAAM,0BAA0B,8CAIrC,CAAC;AAEH;;GAEG;AACH,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,+BAA+B,kCAG1C,CAAC;AAEH;;GAEG;AACH,oBAAY,4BAA4B;IACpC,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAED,eAAO,MAAM,kCAAkC,mCAG7C,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -95,7 +95,8 @@ exports.ShareDataEventSchema = zod_1.z.object({
|
|
|
95
95
|
eventSource: zod_1.z.string(),
|
|
96
96
|
eventSourceTruthType: exports.EventSourceTruthTypeSchema,
|
|
97
97
|
eventSourceTruthProofType: exports.EventSourceTruthProofTypeSchema,
|
|
98
|
-
|
|
98
|
+
EventSourceTruthProof: zod_1.z.string(),
|
|
99
|
+
// eventSourceTruthProof: z.union([z.string(), BufferSchema]),
|
|
99
100
|
triggerCondition: zod_1.z.function().args(zod_1.z.any()).returns(zod_1.z.boolean()),
|
|
100
101
|
shareDataEventInformation: zod_1.z.array(exports.IShareDataEventSchema),
|
|
101
102
|
eventContext: zod_1.z.record(zod_1.z.any()),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degenerate/generic",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "This contains the generic information needed for the ShareData Adaptive Framework Ecosystem (SAFE) network",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"jsonwebtoken": "^9.0.2",
|
|
38
38
|
"zod": "^3.24.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a1ef457f3b707fb642b2e3296239c74bd75614b8",
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/js": "^9.17.0",
|
|
43
43
|
"@types/eslint__js": "^8.42.3",
|