@xyo-network/module-model 2.43.8 → 2.43.9

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.
@@ -3,10 +3,11 @@ import { XyoPayload } from '@xyo-network/payload-model';
3
3
  export type AbstractModuleConfigSchema = 'network.xyo.module.config';
4
4
  export declare const AbstractModuleConfigSchema: AbstractModuleConfigSchema;
5
5
  export type AddressString = string;
6
+ export type CosigningAddressSet = string[];
6
7
  export type SchemaString = string;
7
8
  export type AbstractModuleConfigBase<T extends EmptyObject = EmptyObject> = XyoPayload<{
8
9
  security?: {
9
- allowed?: Record<SchemaString, AddressString[][]>;
10
+ allowed?: Record<SchemaString, (AddressString | CosigningAddressSet)[]>;
10
11
  disallowed?: Record<SchemaString, AddressString[]>;
11
12
  };
12
13
  } & T>;
@@ -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,0BAA0B,GAAG,2BAA2B,CAAA;AACpE,eAAO,MAAM,0BAA0B,EAAE,0BAAwD,CAAA;AAEjG,MAAM,MAAM,aAAa,GAAG,MAAM,CAAA;AAClC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,UAAU,CACpF;IAEE,QAAQ,CAAC,EAAE;QAET,OAAO,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,EAAE,CAAC,CAAA;QAEjD,UAAU,CAAC,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC,CAAA;KACnD,CAAA;CACF,GAAG,CAAC,CACN,CAAA;AAED,MAAM,MAAM,oBAAoB,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,IAAI,wBAAwB,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,0BAA0B,GAAG,2BAA2B,CAAA;AACpE,eAAO,MAAM,0BAA0B,EAAE,0BAAwD,CAAA;AAEjG,MAAM,MAAM,aAAa,GAAG,MAAM,CAAA;AAClC,MAAM,MAAM,mBAAmB,GAAG,MAAM,EAAE,CAAA;AAC1C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,UAAU,CACpF;IAEE,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,oBAAoB,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,IAAI,wBAAwB,CAAC,OAAO,CAAC,CAAA"}
package/package.json CHANGED
@@ -10,13 +10,13 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/boundwitness-model": "^2.43.8",
14
- "@xyo-network/core": "^2.43.8",
15
- "@xyo-network/payload-model": "^2.43.8",
16
- "@xyo-network/promise": "^2.43.8"
13
+ "@xyo-network/boundwitness-model": "^2.43.9",
14
+ "@xyo-network/core": "^2.43.9",
15
+ "@xyo-network/payload-model": "^2.43.9",
16
+ "@xyo-network/promise": "^2.43.9"
17
17
  },
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^2.12.3"
19
+ "@xylabs/ts-scripts-yarn3": "^2.12.21"
20
20
  },
21
21
  "description": "Primary SDK for using XYO Protocol 2.0",
22
22
  "browser": "dist/esm/index.js",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "sideEffects": false,
53
53
  "types": "dist/esm/index.d.ts",
54
- "version": "2.43.8"
54
+ "version": "2.43.9"
55
55
  }
package/src/Config.ts CHANGED
@@ -5,6 +5,7 @@ export type AbstractModuleConfigSchema = 'network.xyo.module.config'
5
5
  export const AbstractModuleConfigSchema: AbstractModuleConfigSchema = 'network.xyo.module.config'
6
6
 
7
7
  export type AddressString = string
8
+ export type CosigningAddressSet = string[]
8
9
  export type SchemaString = string
9
10
 
10
11
  export type AbstractModuleConfigBase<T extends EmptyObject = EmptyObject> = XyoPayload<
@@ -12,7 +13,7 @@ export type AbstractModuleConfigBase<T extends EmptyObject = EmptyObject> = XyoP
12
13
  //if both allowed and disallowed is specified, then disallowed takes priority
13
14
  security?: {
14
15
  //if schema in record, then only these address sets can access query
15
- allowed?: Record<SchemaString, AddressString[][]>
16
+ allowed?: Record<SchemaString, (AddressString | CosigningAddressSet)[]>
16
17
  //if schema in record, then anyone except these addresses can access query
17
18
  disallowed?: Record<SchemaString, AddressString[]>
18
19
  }