|
94 | 94 | "integer", |
95 | 95 | "string" |
96 | 96 | ], |
97 | | - "pattern": "^[0-9]+( *([KkMmGgTtPpEeZzYy]i?)?B)?$" |
| 97 | + "pattern": "^[0-9]+( *([KkMmGgTtPpEeZzYy]i?)?[Bb])?$" |
98 | 98 | }, |
99 | 99 | "CanisterDeclarationsConfig": { |
100 | 100 | "title": "Declarations Configuration", |
|
136 | 136 | } |
137 | 137 | } |
138 | 138 | }, |
| 139 | + "CanisterLogVisibility": { |
| 140 | + "type": "string", |
| 141 | + "enum": [ |
| 142 | + "controllers", |
| 143 | + "public" |
| 144 | + ] |
| 145 | + }, |
139 | 146 | "CanisterMetadataSection": { |
140 | 147 | "title": "Canister Metadata Configuration", |
141 | 148 | "description": "Configures a custom metadata section for the canister wasm. dfx uses the first definition of a given name matching the current network, ignoring any of the same name that follow.", |
|
209 | 216 | }, |
210 | 217 | "package": { |
211 | 218 | "title": "Package Name", |
212 | | - "description": "Name of the rust package that compiles to this canister's Wasm binary.", |
| 219 | + "description": "Name of the rust package that compiles to this canister's Wasm.", |
213 | 220 | "type": "string" |
214 | 221 | }, |
215 | 222 | "type": { |
|
410 | 417 | "default": { |
411 | 418 | "compute_allocation": null, |
412 | 419 | "freezing_threshold": null, |
| 420 | + "log_visibility": null, |
413 | 421 | "memory_allocation": null, |
414 | 422 | "reserved_cycles_limit": null, |
415 | 423 | "wasm_memory_limit": null |
|
440 | 448 | "optimize": { |
441 | 449 | "title": "Optimize Canister Wasm", |
442 | 450 | "description": "Invoke wasm level optimizations after building the canister. Optimization level can be set to \"cycles\" to optimize for cycle usage, \"size\" to optimize for binary size, or any of \"O4, O3, O2, O1, O0, Oz, Os\". Disabled by default. If this option is specified, the `shrink` option will be ignored.", |
443 | | - "default": null, |
444 | 451 | "anyOf": [ |
445 | 452 | { |
446 | 453 | "$ref": "#/definitions/WasmOptLevel" |
|
463 | 470 | "pullable": { |
464 | 471 | "title": "Pullable", |
465 | 472 | "description": "Defines required properties so that this canister is ready for `dfx deps pull` by other projects.", |
466 | | - "default": null, |
467 | 473 | "anyOf": [ |
468 | 474 | { |
469 | 475 | "$ref": "#/definitions/Pullable" |
|
476 | 482 | "remote": { |
477 | 483 | "title": "Remote Configuration", |
478 | 484 | "description": "Used to mark the canister as 'remote' on certain networks.", |
479 | | - "default": null, |
480 | 485 | "anyOf": [ |
481 | 486 | { |
482 | 487 | "$ref": "#/definitions/ConfigCanistersCanisterRemote" |
|
505 | 510 | "tech_stack": { |
506 | 511 | "title": "Tech Stack", |
507 | 512 | "description": "Defines the tech stack used to build this canister.", |
508 | | - "default": null, |
509 | 513 | "anyOf": [ |
510 | 514 | { |
511 | 515 | "$ref": "#/definitions/TechStack" |
|
637 | 641 | "nodes": { |
638 | 642 | "title": "Available Nodes", |
639 | 643 | "description": "Addresses of nodes to connect to (in case discovery from seeds is not possible/sufficient).", |
640 | | - "default": null, |
641 | 644 | "type": [ |
642 | 645 | "array", |
643 | 646 | "null" |
|
917 | 920 | "compute_allocation": { |
918 | 921 | "title": "Compute Allocation", |
919 | 922 | "description": "Must be a number between 0 and 100, inclusively. It indicates how much compute power should be guaranteed to this canister, expressed as a percentage of the maximum compute power that a single canister can allocate.", |
920 | | - "default": null, |
921 | 923 | "anyOf": [ |
922 | 924 | { |
923 | 925 | "$ref": "#/definitions/PossiblyStr_for_uint64" |
|
930 | 932 | "freezing_threshold": { |
931 | 933 | "title": "Freezing Threshold", |
932 | 934 | "description": "Freezing threshould of the canister, measured in seconds. Valid inputs are numbers (seconds) or strings parsable by humantime (e.g. \"15days 2min 2s\").", |
933 | | - "default": null, |
934 | 935 | "type": [ |
935 | 936 | "string", |
936 | 937 | "null" |
937 | 938 | ] |
938 | 939 | }, |
| 940 | + "log_visibility": { |
| 941 | + "title": "Log Visibility", |
| 942 | + "description": "Specifies who is allowed to read the canister's logs.\n\nCan be \"public\" or \"controllers\".", |
| 943 | + "anyOf": [ |
| 944 | + { |
| 945 | + "$ref": "#/definitions/CanisterLogVisibility" |
| 946 | + }, |
| 947 | + { |
| 948 | + "type": "null" |
| 949 | + } |
| 950 | + ] |
| 951 | + }, |
939 | 952 | "memory_allocation": { |
940 | 953 | "title": "Memory Allocation", |
941 | 954 | "description": "Maximum memory (in bytes) this canister is allowed to occupy. Can be specified as an integer, or as an SI unit string (e.g. \"4KB\", \"2 MiB\")", |
942 | | - "default": null, |
943 | 955 | "anyOf": [ |
944 | 956 | { |
945 | 957 | "$ref": "#/definitions/Byte" |
|
952 | 964 | "reserved_cycles_limit": { |
953 | 965 | "title": "Reserved Cycles Limit", |
954 | 966 | "description": "Specifies the upper limit of the canister's reserved cycles balance.\n\nReserved cycles are cycles that the system sets aside for future use by the canister. If a subnet's storage exceeds 450 GiB, then every time a canister allocates new storage bytes, the system sets aside some amount of cycles from the main balance of the canister. These reserved cycles will be used to cover future payments for the newly allocated bytes. The reserved cycles are not transferable and the amount of reserved cycles depends on how full the subnet is.\n\nA setting of 0 means that the canister will trap if it tries to allocate new storage while the subnet's memory usage exceeds 450 GiB.", |
955 | | - "default": null, |
956 | 967 | "type": [ |
957 | 968 | "integer", |
958 | 969 | "null" |
|
963 | 974 | "wasm_memory_limit": { |
964 | 975 | "title": "Wasm Memory Limit", |
965 | 976 | "description": "Specifies a soft limit (in bytes) on the Wasm memory usage of the canister.\n\nUpdate calls, timers, heartbeats, installs, and post-upgrades fail if the Wasm memory usage exceeds this limit. The main purpose of this setting is to protect against the case when the canister reaches the hard 4GiB limit.\n\nMust be a number of bytes between 0 and 2^48 (i.e. 256 TiB), inclusive. Can be specified as an integer, or as an SI unit string (e.g. \"4KB\", \"2 MiB\")", |
966 | | - "default": null, |
967 | 977 | "anyOf": [ |
968 | 978 | { |
969 | 979 | "$ref": "#/definitions/Byte" |
|
0 commit comments