|
| 1 | +import type { ValueOf } from './helpers'; |
1 | 2 | import { DNS_SAFE_NAME_REGEX, EMAIL_REGEX } from './regexs'; |
2 | 3 |
|
3 | 4 | export const FREE_SUBSCRIPTION_PLAN_CODE = 'DEV'; |
@@ -631,3 +632,40 @@ export const ISSUES_STATUS_TYPES = { |
631 | 632 | * This is used for filtering issues. All issue types to be considered. |
632 | 633 | */ |
633 | 634 | export const ISSUES_STATUS_ALL = 'ALL'; |
| 635 | + |
| 636 | +/** |
| 637 | + * Storage setting determining how others can access the storage. |
| 638 | + * |
| 639 | + * This setting overrides the user setting of the storage owner. |
| 640 | + */ |
| 641 | +export const STORAGE_GENERAL_ACCESS = { |
| 642 | + // Empty / not populated: Follow the user setting. |
| 643 | + |
| 644 | + /** Only signed-in users with explicit access can read this storage. */ |
| 645 | + RESTRICTED: 'RESTRICTED', |
| 646 | + |
| 647 | + /** Anyone with a link, or the unique storage ID, can read the storage. */ |
| 648 | + ANYONE_WITH_ID_CAN_READ: 'ANYONE_WITH_ID_CAN_READ', |
| 649 | + |
| 650 | + /** Anyone with a link, the unique storage ID, or the storage name, can read the storage. */ |
| 651 | + ANYONE_WITH_NAME_CAN_READ: 'ANYONE_WITH_NAME_CAN_READ', |
| 652 | +} as const; |
| 653 | + |
| 654 | +export type STORAGE_GENERAL_ACCESS = ValueOf<typeof STORAGE_GENERAL_ACCESS> |
| 655 | + |
| 656 | +/** |
| 657 | + * Run setting determining how others can access the run. |
| 658 | + * |
| 659 | + * This setting overrides the user setting of the run owner. |
| 660 | + */ |
| 661 | +export const RUN_GENERAL_ACCESS = { |
| 662 | + // Empty / not populated: Follow the user setting. |
| 663 | + |
| 664 | + /** Only signed-in users with explicit access can read this run. */ |
| 665 | + RESTRICTED: 'RESTRICTED', |
| 666 | + |
| 667 | + /** Anyone with a link, or the unique run ID, can read the run. */ |
| 668 | + ANYONE_WITH_ID_CAN_READ: 'ANYONE_WITH_ID_CAN_READ', |
| 669 | +} as const; |
| 670 | + |
| 671 | +export type RUN_GENERAL_ACCESS = ValueOf<typeof RUN_GENERAL_ACCESS> |
0 commit comments