@xyo-network/module-model 2.46.4 → 2.47.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.
@@ -8,6 +8,7 @@ export type SchemaString = string;
8
8
  export type ModuleConfigBase<T extends EmptyObject = EmptyObject> = XyoPayload<{
9
9
  name?: string;
10
10
  security?: {
11
+ allowAnonymous?: boolean;
11
12
  allowed?: Record<SchemaString, (AddressString | CosigningAddressSet)[]>;
12
13
  disallowed?: Record<SchemaString, AddressString[]>;
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,CAAA;AAC5D,eAAO,MAAM,kBAAkB,EAAE,kBAAgD,CAAA;AAEjF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAA;AAClC,MAAM,MAAM,mBAAmB,GAAG,MAAM,EAAE,CAAA;AAC1C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,UAAU,CAC5E;IACE,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,QAAQ,CAAC,EAAE;QAET,OAAO,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,aAAa,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAEvE,UAAU,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC,CAAA;KACnD,CAAA;CACF,GAAG,CAAC,CACN,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,CAAA;AAC5D,eAAO,MAAM,kBAAkB,EAAE,kBAAgD,CAAA;AAEjF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAA;AAClC,MAAM,MAAM,mBAAmB,GAAG,MAAM,EAAE,CAAA;AAC1C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,UAAU,CAC5E;IACE,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,QAAQ,CAAC,EAAE;QAET,cAAc,CAAC,EAAE,OAAO,CAAA;QAGxB,OAAO,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,aAAa,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAGvE,UAAU,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC,CAAA;KACnD,CAAA;CACF,GAAG,CAAC,CACN,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAA"}
package/package.json CHANGED
@@ -10,10 +10,10 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/boundwitness-model": "^2.46.4",
14
- "@xyo-network/core": "^2.46.4",
15
- "@xyo-network/payload-model": "^2.46.4",
16
- "@xyo-network/promise": "^2.46.4"
13
+ "@xyo-network/boundwitness-model": "^2.47.0",
14
+ "@xyo-network/core": "^2.47.0",
15
+ "@xyo-network/payload-model": "^2.47.0",
16
+ "@xyo-network/promise": "^2.47.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@xylabs/ts-scripts-yarn3": "^2.14.15",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "sideEffects": false,
55
55
  "types": "dist/types/index.d.ts",
56
- "version": "2.46.4"
56
+ "version": "2.47.0"
57
57
  }
package/src/Config.ts CHANGED
@@ -13,8 +13,12 @@ export type ModuleConfigBase<T extends EmptyObject = EmptyObject> = XyoPayload<
13
13
  name?: string
14
14
  //if both allowed and disallowed is specified, then disallowed takes priority
15
15
  security?: {
16
+ //will process queries that have unsigned boundwitness in tuples
17
+ allowAnonymous?: boolean
18
+
16
19
  //if schema in record, then only these address sets can access query
17
20
  allowed?: Record<SchemaString, (AddressString | CosigningAddressSet)[]>
21
+
18
22
  //if schema in record, then anyone except these addresses can access query
19
23
  disallowed?: Record<SchemaString, AddressString[]>
20
24
  }