@ttt-productions/ttt-core 0.79.108 → 0.79.110
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.
- package/dist/capabilities/capability-registry.d.ts +0 -19
- package/dist/capabilities/capability-registry.d.ts.map +1 -1
- package/dist/capabilities/capability-registry.js +0 -15
- package/dist/capabilities/capability-registry.js.map +1 -1
- package/dist/capabilities/messaging-surfaces.d.ts +0 -6
- package/dist/capabilities/messaging-surfaces.d.ts.map +1 -1
- package/dist/capabilities/messaging-surfaces.js +0 -16
- package/dist/capabilities/messaging-surfaces.js.map +1 -1
- package/dist/constants/admin-claims.d.ts +0 -11
- package/dist/constants/admin-claims.d.ts.map +1 -1
- package/dist/constants/admin-claims.js +0 -11
- package/dist/constants/admin-claims.js.map +1 -1
- package/dist/constants/admin-labels.d.ts +0 -75
- package/dist/constants/admin-labels.d.ts.map +1 -1
- package/dist/constants/admin-labels.js +0 -80
- package/dist/constants/admin-labels.js.map +1 -1
- package/dist/constants/admin-views.d.ts +3 -0
- package/dist/constants/admin-views.d.ts.map +1 -0
- package/dist/constants/admin-views.js +22 -0
- package/dist/constants/admin-views.js.map +1 -0
- package/dist/constants/analytics.d.ts.map +1 -1
- package/dist/constants/analytics.js +0 -2
- package/dist/constants/analytics.js.map +1 -1
- package/dist/constants/app-mode.d.ts +0 -72
- package/dist/constants/app-mode.d.ts.map +1 -1
- package/dist/constants/app-mode.js +6 -209
- package/dist/constants/app-mode.js.map +1 -1
- package/dist/constants/audition-deadlines.d.ts +0 -32
- package/dist/constants/audition-deadlines.d.ts.map +1 -1
- package/dist/constants/audition-deadlines.js +1 -38
- package/dist/constants/audition-deadlines.js.map +1 -1
- package/dist/constants/backstage-guide-topics.d.ts +3 -0
- package/dist/constants/backstage-guide-topics.d.ts.map +1 -0
- package/dist/constants/backstage-guide-topics.js +11 -0
- package/dist/constants/backstage-guide-topics.js.map +1 -0
- package/dist/constants/business-admin.d.ts +0 -95
- package/dist/constants/business-admin.d.ts.map +1 -1
- package/dist/constants/business-admin.js +2 -112
- package/dist/constants/business-admin.js.map +1 -1
- package/dist/constants/business-content.d.ts +0 -157
- package/dist/constants/business-content.d.ts.map +1 -1
- package/dist/constants/business-content.js +16 -166
- package/dist/constants/business-content.js.map +1 -1
- package/dist/constants/business-platform.d.ts +0 -29
- package/dist/constants/business-platform.d.ts.map +1 -1
- package/dist/constants/business-platform.js +3 -35
- package/dist/constants/business-platform.js.map +1 -1
- package/dist/constants/business-user.d.ts +0 -48
- package/dist/constants/business-user.d.ts.map +1 -1
- package/dist/constants/business-user.js +1 -58
- package/dist/constants/business-user.js.map +1 -1
- package/dist/constants/business-work-project.d.ts +0 -56
- package/dist/constants/business-work-project.d.ts.map +1 -1
- package/dist/constants/business-work-project.js +0 -66
- package/dist/constants/business-work-project.js.map +1 -1
- package/dist/constants/byte-units.d.ts +3 -0
- package/dist/constants/byte-units.d.ts.map +1 -0
- package/dist/constants/byte-units.js +3 -0
- package/dist/constants/byte-units.js.map +1 -0
- package/dist/constants/center-stage-rooms.d.ts +0 -6
- package/dist/constants/center-stage-rooms.d.ts.map +1 -1
- package/dist/constants/center-stage-rooms.js +4 -15
- package/dist/constants/center-stage-rooms.js.map +1 -1
- package/dist/constants/chat.d.ts +0 -10
- package/dist/constants/chat.d.ts.map +1 -1
- package/dist/constants/chat.js +0 -10
- package/dist/constants/chat.js.map +1 -1
- package/dist/constants/company-mascots.d.ts +0 -52
- package/dist/constants/company-mascots.d.ts.map +1 -1
- package/dist/constants/company-mascots.js +3 -65
- package/dist/constants/company-mascots.js.map +1 -1
- package/dist/constants/conversation-files.d.ts +0 -4
- package/dist/constants/conversation-files.d.ts.map +1 -1
- package/dist/constants/conversation-files.js +0 -10
- package/dist/constants/conversation-files.js.map +1 -1
- package/dist/constants/craft-skill-statements.d.ts +0 -16
- package/dist/constants/craft-skill-statements.d.ts.map +1 -1
- package/dist/constants/craft-skill-statements.js +1 -23
- package/dist/constants/craft-skill-statements.js.map +1 -1
- package/dist/constants/hall-content-routing.d.ts +0 -12
- package/dist/constants/hall-content-routing.d.ts.map +1 -1
- package/dist/constants/hall-content-routing.js +0 -12
- package/dist/constants/hall-content-routing.js.map +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/legal-review-notice-state.d.ts +0 -2
- package/dist/constants/legal-review-notice-state.d.ts.map +1 -1
- package/dist/constants/legal-review-notice-state.js +1 -16
- package/dist/constants/legal-review-notice-state.js.map +1 -1
- package/dist/constants/legal-review-notice.d.ts +0 -58
- package/dist/constants/legal-review-notice.d.ts.map +1 -1
- package/dist/constants/legal-review-notice.js +0 -78
- package/dist/constants/legal-review-notice.js.map +1 -1
- package/dist/constants/media-download.d.ts +0 -13
- package/dist/constants/media-download.d.ts.map +1 -1
- package/dist/constants/media-download.js +2 -20
- package/dist/constants/media-download.js.map +1 -1
- package/dist/constants/media-processing.d.ts +0 -10
- package/dist/constants/media-processing.d.ts.map +1 -1
- package/dist/constants/media-processing.js +1 -15
- package/dist/constants/media-processing.js.map +1 -1
- package/dist/constants/member-agreements.d.ts +0 -14
- package/dist/constants/member-agreements.d.ts.map +1 -1
- package/dist/constants/member-agreements.js +1 -33
- package/dist/constants/member-agreements.js.map +1 -1
- package/dist/constants/moderation.d.ts +0 -17
- package/dist/constants/moderation.d.ts.map +1 -1
- package/dist/constants/moderation.js +0 -18
- package/dist/constants/moderation.js.map +1 -1
- package/dist/constants/options.d.ts +0 -42
- package/dist/constants/options.d.ts.map +1 -1
- package/dist/constants/options.js +3 -58
- package/dist/constants/options.js.map +1 -1
- package/dist/constants/pagination.d.ts +0 -30
- package/dist/constants/pagination.d.ts.map +1 -1
- package/dist/constants/pagination.js +0 -33
- package/dist/constants/pagination.js.map +1 -1
- package/dist/constants/pledge-and-bouquet-copy.d.ts +0 -10
- package/dist/constants/pledge-and-bouquet-copy.d.ts.map +1 -1
- package/dist/constants/pledge-and-bouquet-copy.js +0 -16
- package/dist/constants/pledge-and-bouquet-copy.js.map +1 -1
- package/dist/constants/public-documents.d.ts +0 -23
- package/dist/constants/public-documents.d.ts.map +1 -1
- package/dist/constants/public-documents.js +0 -38
- package/dist/constants/public-documents.js.map +1 -1
- package/dist/constants/publish-attestations.d.ts +0 -1
- package/dist/constants/publish-attestations.d.ts.map +1 -1
- package/dist/constants/publish-attestations.js +1 -9
- package/dist/constants/publish-attestations.js.map +1 -1
- package/dist/constants/release-flags.d.ts +0 -7
- package/dist/constants/release-flags.d.ts.map +1 -1
- package/dist/constants/release-flags.js +0 -18
- package/dist/constants/release-flags.js.map +1 -1
- package/dist/constants/retention.d.ts +0 -20
- package/dist/constants/retention.d.ts.map +1 -1
- package/dist/constants/retention.js +2 -35
- package/dist/constants/retention.js.map +1 -1
- package/dist/constants/safety-active-statuses.d.ts +0 -5
- package/dist/constants/safety-active-statuses.d.ts.map +1 -1
- package/dist/constants/safety-active-statuses.js +0 -15
- package/dist/constants/safety-active-statuses.js.map +1 -1
- package/dist/constants/safety-confirmation-phrases.d.ts +0 -9
- package/dist/constants/safety-confirmation-phrases.d.ts.map +1 -1
- package/dist/constants/safety-confirmation-phrases.js +0 -23
- package/dist/constants/safety-confirmation-phrases.js.map +1 -1
- package/dist/constants/scheduled-jobs.d.ts +1 -53
- package/dist/constants/scheduled-jobs.d.ts.map +1 -1
- package/dist/constants/scheduled-jobs.js +4 -58
- package/dist/constants/scheduled-jobs.js.map +1 -1
- package/dist/constants/storage-keys.d.ts +0 -30
- package/dist/constants/storage-keys.d.ts.map +1 -1
- package/dist/constants/storage-keys.js +5 -63
- package/dist/constants/storage-keys.js.map +1 -1
- package/dist/constants/telemetry-content-policy.d.ts +0 -3
- package/dist/constants/telemetry-content-policy.d.ts.map +1 -1
- package/dist/constants/telemetry-content-policy.js +0 -14
- package/dist/constants/telemetry-content-policy.js.map +1 -1
- package/dist/constants/text-fields.d.ts +0 -33
- package/dist/constants/text-fields.d.ts.map +1 -1
- package/dist/constants/text-fields.js +0 -50
- package/dist/constants/text-fields.js.map +1 -1
- package/dist/doc-schemas/account-deletion.d.ts +0 -58
- package/dist/doc-schemas/account-deletion.d.ts.map +1 -1
- package/dist/doc-schemas/account-deletion.js +7 -127
- package/dist/doc-schemas/account-deletion.js.map +1 -1
- package/dist/doc-schemas/admin-dispatch-read-markers.d.ts +0 -4
- package/dist/doc-schemas/admin-dispatch-read-markers.d.ts.map +1 -1
- package/dist/doc-schemas/admin-dispatch-read-markers.js +0 -12
- package/dist/doc-schemas/admin-dispatch-read-markers.js.map +1 -1
- package/dist/doc-schemas/audit.d.ts.map +1 -1
- package/dist/doc-schemas/audit.js +2 -5
- package/dist/doc-schemas/audit.js.map +1 -1
- package/dist/doc-schemas/backend-state.d.ts +0 -1
- package/dist/doc-schemas/backend-state.d.ts.map +1 -1
- package/dist/doc-schemas/backend-state.js +2 -72
- package/dist/doc-schemas/backend-state.js.map +1 -1
- package/dist/doc-schemas/chat-sync.d.ts.map +1 -1
- package/dist/doc-schemas/chat-sync.js +2 -59
- package/dist/doc-schemas/chat-sync.js.map +1 -1
- package/dist/doc-schemas/commissions.d.ts +0 -1
- package/dist/doc-schemas/commissions.d.ts.map +1 -1
- package/dist/doc-schemas/commissions.js +3 -65
- package/dist/doc-schemas/commissions.js.map +1 -1
- package/dist/doc-schemas/content.d.ts +0 -34
- package/dist/doc-schemas/content.d.ts.map +1 -1
- package/dist/doc-schemas/content.js +1 -159
- package/dist/doc-schemas/content.js.map +1 -1
- package/dist/doc-schemas/erasure-fates.d.ts +0 -17
- package/dist/doc-schemas/erasure-fates.d.ts.map +1 -1
- package/dist/doc-schemas/erasure-fates.js +0 -97
- package/dist/doc-schemas/erasure-fates.js.map +1 -1
- package/dist/doc-schemas/firestore-primitives.d.ts +0 -2
- package/dist/doc-schemas/firestore-primitives.d.ts.map +1 -1
- package/dist/doc-schemas/firestore-primitives.js +4 -20
- package/dist/doc-schemas/firestore-primitives.js.map +1 -1
- package/dist/doc-schemas/index.d.ts.map +1 -1
- package/dist/doc-schemas/index.js +0 -8
- package/dist/doc-schemas/index.js.map +1 -1
- package/dist/doc-schemas/legal-review-notice.d.ts.map +1 -1
- package/dist/doc-schemas/legal-review-notice.js +0 -5
- package/dist/doc-schemas/legal-review-notice.js.map +1 -1
- package/dist/doc-schemas/media-activation-jobs.d.ts.map +1 -1
- package/dist/doc-schemas/media-activation-jobs.js +4 -44
- package/dist/doc-schemas/media-activation-jobs.js.map +1 -1
- package/dist/doc-schemas/media-assets.d.ts +0 -120
- package/dist/doc-schemas/media-assets.d.ts.map +1 -1
- package/dist/doc-schemas/media-assets.js +13 -261
- package/dist/doc-schemas/media-assets.js.map +1 -1
- package/dist/doc-schemas/media-copy-intents.d.ts +0 -9
- package/dist/doc-schemas/media-copy-intents.d.ts.map +1 -1
- package/dist/doc-schemas/media-copy-intents.js +3 -33
- package/dist/doc-schemas/media-copy-intents.js.map +1 -1
- package/dist/doc-schemas/messaging.d.ts +2 -26
- package/dist/doc-schemas/messaging.d.ts.map +1 -1
- package/dist/doc-schemas/messaging.js +2 -119
- package/dist/doc-schemas/messaging.js.map +1 -1
- package/dist/doc-schemas/moderation.d.ts +6 -55
- package/dist/doc-schemas/moderation.d.ts.map +1 -1
- package/dist/doc-schemas/moderation.js +45 -80
- package/dist/doc-schemas/moderation.js.map +1 -1
- package/dist/doc-schemas/ncii/allegations.d.ts +0 -9
- package/dist/doc-schemas/ncii/allegations.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/allegations.js +1 -39
- package/dist/doc-schemas/ncii/allegations.js.map +1 -1
- package/dist/doc-schemas/ncii/cases.d.ts +0 -26
- package/dist/doc-schemas/ncii/cases.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/cases.js +0 -78
- package/dist/doc-schemas/ncii/cases.js.map +1 -1
- package/dist/doc-schemas/ncii/config.d.ts +0 -20
- package/dist/doc-schemas/ncii/config.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/config.js +2 -115
- package/dist/doc-schemas/ncii/config.js.map +1 -1
- package/dist/doc-schemas/ncii/holds.d.ts +0 -5
- package/dist/doc-schemas/ncii/holds.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/holds.js +0 -38
- package/dist/doc-schemas/ncii/holds.js.map +1 -1
- package/dist/doc-schemas/ncii/removal.d.ts +0 -17
- package/dist/doc-schemas/ncii/removal.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/removal.js +0 -55
- package/dist/doc-schemas/ncii/removal.js.map +1 -1
- package/dist/doc-schemas/ncii/requests.d.ts +3 -93
- package/dist/doc-schemas/ncii/requests.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/requests.js +33 -200
- package/dist/doc-schemas/ncii/requests.js.map +1 -1
- package/dist/doc-schemas/notification-archive-all-jobs.d.ts +0 -11
- package/dist/doc-schemas/notification-archive-all-jobs.d.ts.map +1 -1
- package/dist/doc-schemas/notification-archive-all-jobs.js +1 -47
- package/dist/doc-schemas/notification-archive-all-jobs.js.map +1 -1
- package/dist/doc-schemas/notification-ledger.d.ts +0 -21
- package/dist/doc-schemas/notification-ledger.d.ts.map +1 -1
- package/dist/doc-schemas/notification-ledger.js +0 -41
- package/dist/doc-schemas/notification-ledger.js.map +1 -1
- package/dist/doc-schemas/notifications.d.ts +2 -2
- package/dist/doc-schemas/notifications.d.ts.map +1 -1
- package/dist/doc-schemas/notifications.js +0 -24
- package/dist/doc-schemas/notifications.js.map +1 -1
- package/dist/doc-schemas/operational.d.ts +0 -17
- package/dist/doc-schemas/operational.d.ts.map +1 -1
- package/dist/doc-schemas/operational.js +0 -47
- package/dist/doc-schemas/operational.js.map +1 -1
- package/dist/doc-schemas/payments.d.ts +0 -36
- package/dist/doc-schemas/payments.d.ts.map +1 -1
- package/dist/doc-schemas/payments.js +15 -108
- package/dist/doc-schemas/payments.js.map +1 -1
- package/dist/doc-schemas/public-documents.d.ts +0 -54
- package/dist/doc-schemas/public-documents.d.ts.map +1 -1
- package/dist/doc-schemas/public-documents.js +0 -75
- package/dist/doc-schemas/public-documents.js.map +1 -1
- package/dist/doc-schemas/publicUser.d.ts.map +1 -1
- package/dist/doc-schemas/publicUser.js +0 -10
- package/dist/doc-schemas/publicUser.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +24 -62
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/registry.js +2 -96
- package/dist/doc-schemas/registry.js.map +1 -1
- package/dist/doc-schemas/report-docs.d.ts +0 -8
- package/dist/doc-schemas/report-docs.d.ts.map +1 -1
- package/dist/doc-schemas/report-docs.js +3 -51
- package/dist/doc-schemas/report-docs.js.map +1 -1
- package/dist/doc-schemas/safety/age.d.ts +2 -26
- package/dist/doc-schemas/safety/age.d.ts.map +1 -1
- package/dist/doc-schemas/safety/age.js +32 -166
- package/dist/doc-schemas/safety/age.js.map +1 -1
- package/dist/doc-schemas/safety/case-alert.d.ts +0 -3
- package/dist/doc-schemas/safety/case-alert.d.ts.map +1 -1
- package/dist/doc-schemas/safety/case-alert.js +1 -20
- package/dist/doc-schemas/safety/case-alert.js.map +1 -1
- package/dist/doc-schemas/safety/case-aliases.d.ts +0 -2
- package/dist/doc-schemas/safety/case-aliases.d.ts.map +1 -1
- package/dist/doc-schemas/safety/case-aliases.js +0 -37
- package/dist/doc-schemas/safety/case-aliases.js.map +1 -1
- package/dist/doc-schemas/safety/case.d.ts +13 -84
- package/dist/doc-schemas/safety/case.d.ts.map +1 -1
- package/dist/doc-schemas/safety/case.js +4 -178
- package/dist/doc-schemas/safety/case.js.map +1 -1
- package/dist/doc-schemas/safety/evidence.d.ts +0 -68
- package/dist/doc-schemas/safety/evidence.d.ts.map +1 -1
- package/dist/doc-schemas/safety/evidence.js +14 -153
- package/dist/doc-schemas/safety/evidence.js.map +1 -1
- package/dist/doc-schemas/safety/foundation.d.ts +2 -95
- package/dist/doc-schemas/safety/foundation.d.ts.map +1 -1
- package/dist/doc-schemas/safety/foundation.js +4 -180
- package/dist/doc-schemas/safety/foundation.js.map +1 -1
- package/dist/doc-schemas/safety/holds.d.ts +1 -21
- package/dist/doc-schemas/safety/holds.d.ts.map +1 -1
- package/dist/doc-schemas/safety/holds.js +8 -89
- package/dist/doc-schemas/safety/holds.js.map +1 -1
- package/dist/doc-schemas/safety/monitors.d.ts +2 -17
- package/dist/doc-schemas/safety/monitors.d.ts.map +1 -1
- package/dist/doc-schemas/safety/monitors.js +3 -58
- package/dist/doc-schemas/safety/monitors.js.map +1 -1
- package/dist/doc-schemas/safety/provenance.d.ts +0 -14
- package/dist/doc-schemas/safety/provenance.d.ts.map +1 -1
- package/dist/doc-schemas/safety/provenance.js +3 -35
- package/dist/doc-schemas/safety/provenance.js.map +1 -1
- package/dist/doc-schemas/safety/report.d.ts +1 -41
- package/dist/doc-schemas/safety/report.d.ts.map +1 -1
- package/dist/doc-schemas/safety/report.js +14 -156
- package/dist/doc-schemas/safety/report.js.map +1 -1
- package/dist/doc-schemas/safety/sagas.d.ts +6 -30
- package/dist/doc-schemas/safety/sagas.d.ts.map +1 -1
- package/dist/doc-schemas/safety/sagas.js +3 -92
- package/dist/doc-schemas/safety/sagas.js.map +1 -1
- package/dist/doc-schemas/social.d.ts +1 -43
- package/dist/doc-schemas/social.d.ts.map +1 -1
- package/dist/doc-schemas/social.js +5 -71
- package/dist/doc-schemas/social.js.map +1 -1
- package/dist/doc-schemas/square-announcement-jobs.d.ts +3 -35
- package/dist/doc-schemas/square-announcement-jobs.d.ts.map +1 -1
- package/dist/doc-schemas/square-announcement-jobs.js +4 -45
- package/dist/doc-schemas/square-announcement-jobs.js.map +1 -1
- package/dist/doc-schemas/sweep-cursor.d.ts.map +1 -1
- package/dist/doc-schemas/sweep-cursor.js +4 -21
- package/dist/doc-schemas/sweep-cursor.js.map +1 -1
- package/dist/doc-schemas/system-slots.d.ts +0 -11
- package/dist/doc-schemas/system-slots.d.ts.map +1 -1
- package/dist/doc-schemas/system-slots.js +0 -14
- package/dist/doc-schemas/system-slots.js.map +1 -1
- package/dist/doc-schemas/system.d.ts +0 -1
- package/dist/doc-schemas/system.d.ts.map +1 -1
- package/dist/doc-schemas/system.js +1 -41
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/doc-schemas/user.d.ts +0 -49
- package/dist/doc-schemas/user.d.ts.map +1 -1
- package/dist/doc-schemas/user.js +1 -152
- package/dist/doc-schemas/user.js.map +1 -1
- package/dist/doc-schemas/work-project.d.ts +0 -15
- package/dist/doc-schemas/work-project.d.ts.map +1 -1
- package/dist/doc-schemas/work-project.js +0 -128
- package/dist/doc-schemas/work-project.js.map +1 -1
- package/dist/ids/chat-ids.d.ts +1 -44
- package/dist/ids/chat-ids.d.ts.map +1 -1
- package/dist/ids/chat-ids.js +5 -54
- package/dist/ids/chat-ids.js.map +1 -1
- package/dist/ids/guild-chat-conversation.d.ts +0 -23
- package/dist/ids/guild-chat-conversation.d.ts.map +1 -1
- package/dist/ids/guild-chat-conversation.js +2 -26
- package/dist/ids/guild-chat-conversation.js.map +1 -1
- package/dist/media/atoms.d.ts +0 -19
- package/dist/media/atoms.d.ts.map +1 -1
- package/dist/media/atoms.js +1 -26
- package/dist/media/atoms.js.map +1 -1
- package/dist/media/conversation-file-ref.d.ts +0 -1
- package/dist/media/conversation-file-ref.d.ts.map +1 -1
- package/dist/media/conversation-file-ref.js +0 -23
- package/dist/media/conversation-file-ref.js.map +1 -1
- package/dist/media/domain-events-admin.d.ts.map +1 -1
- package/dist/media/domain-events-admin.js +0 -13
- package/dist/media/domain-events-admin.js.map +1 -1
- package/dist/media/domain-events-social.d.ts.map +1 -1
- package/dist/media/domain-events-social.js +0 -2
- package/dist/media/domain-events-social.js.map +1 -1
- package/dist/media/domain-events-user.d.ts.map +1 -1
- package/dist/media/domain-events-user.js +0 -8
- package/dist/media/domain-events-user.js.map +1 -1
- package/dist/media/domain-events-work.d.ts +1 -0
- package/dist/media/domain-events-work.d.ts.map +1 -1
- package/dist/media/domain-events-work.js +1 -12
- package/dist/media/domain-events-work.js.map +1 -1
- package/dist/media/domain-events.d.ts +1 -0
- package/dist/media/domain-events.d.ts.map +1 -1
- package/dist/media/domain-events.js +2 -13
- package/dist/media/domain-events.js.map +1 -1
- package/dist/media/download-filename.d.ts +0 -44
- package/dist/media/download-filename.d.ts.map +1 -1
- package/dist/media/download-filename.js +4 -97
- package/dist/media/download-filename.js.map +1 -1
- package/dist/media/edge-serving-contract.d.ts +0 -75
- package/dist/media/edge-serving-contract.d.ts.map +1 -1
- package/dist/media/edge-serving-contract.js +0 -70
- package/dist/media/edge-serving-contract.js.map +1 -1
- package/dist/media/file-origin.d.ts.map +1 -1
- package/dist/media/file-origin.js +0 -11
- package/dist/media/file-origin.js.map +1 -1
- package/dist/media/hall-library-target-fields.d.ts +0 -19
- package/dist/media/hall-library-target-fields.d.ts.map +1 -1
- package/dist/media/hall-library-target-fields.js +0 -27
- package/dist/media/hall-library-target-fields.js.map +1 -1
- package/dist/media/index.d.ts +0 -1
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +0 -1
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-asset-url.d.ts +0 -15
- package/dist/media/media-asset-url.d.ts.map +1 -1
- package/dist/media/media-asset-url.js +0 -15
- package/dist/media/media-asset-url.js.map +1 -1
- package/dist/media/pending-media.d.ts +11 -0
- package/dist/media/pending-media.d.ts.map +1 -1
- package/dist/media/publication/publication-args.d.ts +0 -1
- package/dist/media/publication/publication-args.d.ts.map +1 -1
- package/dist/media/publication/publication-args.js +2 -15
- package/dist/media/publication/publication-args.js.map +1 -1
- package/dist/media/start-upload.d.ts.map +1 -1
- package/dist/media/start-upload.js +0 -6
- package/dist/media/start-upload.js.map +1 -1
- package/dist/media/target-info.d.ts +0 -3
- package/dist/media/target-info.d.ts.map +1 -1
- package/dist/media/target-info.js +0 -95
- package/dist/media/target-info.js.map +1 -1
- package/dist/media/ttt-media-specs.d.ts +0 -1
- package/dist/media/ttt-media-specs.d.ts.map +1 -1
- package/dist/media/ttt-media-specs.js +13 -64
- package/dist/media/ttt-media-specs.js.map +1 -1
- package/dist/media/upload-tray-display.d.ts +0 -3
- package/dist/media/upload-tray-display.d.ts.map +1 -1
- package/dist/media/upload-tray-display.js +0 -20
- package/dist/media/upload-tray-display.js.map +1 -1
- package/dist/notifications/content-published-copy.d.ts +18 -0
- package/dist/notifications/content-published-copy.d.ts.map +1 -0
- package/dist/notifications/content-published-copy.js +34 -0
- package/dist/notifications/content-published-copy.js.map +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +1 -0
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/notification-config.d.ts.map +1 -1
- package/dist/notifications/notification-config.js +45 -113
- package/dist/notifications/notification-config.js.map +1 -1
- package/dist/paths/app-routes.d.ts +62 -0
- package/dist/paths/app-routes.d.ts.map +1 -0
- package/dist/paths/app-routes.js +68 -0
- package/dist/paths/app-routes.js.map +1 -0
- package/dist/paths/collection-groups.d.ts.map +1 -1
- package/dist/paths/collection-groups.js +0 -4
- package/dist/paths/collection-groups.js.map +1 -1
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +0 -31
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +0 -41
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +8 -192
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/compound-ids.d.ts +71 -0
- package/dist/paths/compound-ids.d.ts.map +1 -0
- package/dist/paths/compound-ids.js +152 -0
- package/dist/paths/compound-ids.js.map +1 -0
- package/dist/paths/hall-browse.d.ts +21 -0
- package/dist/paths/hall-browse.d.ts.map +1 -0
- package/dist/paths/hall-browse.js +64 -0
- package/dist/paths/hall-browse.js.map +1 -0
- package/dist/paths/index.d.ts +4 -0
- package/dist/paths/index.d.ts.map +1 -1
- package/dist/paths/index.js +4 -0
- package/dist/paths/index.js.map +1 -1
- package/dist/paths/notification-fanout-job-ids.d.ts +7 -0
- package/dist/paths/notification-fanout-job-ids.d.ts.map +1 -0
- package/dist/paths/notification-fanout-job-ids.js +14 -0
- package/dist/paths/notification-fanout-job-ids.js.map +1 -0
- package/dist/paths/path-builders.d.ts +14 -11
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +29 -160
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/paths/related-ids.d.ts.map +1 -1
- package/dist/paths/related-ids.js +0 -3
- package/dist/paths/related-ids.js.map +1 -1
- package/dist/paths/utils.d.ts.map +1 -1
- package/dist/paths/utils.js +0 -3
- package/dist/paths/utils.js.map +1 -1
- package/dist/paths/work-section-paths.d.ts +0 -4
- package/dist/paths/work-section-paths.d.ts.map +1 -1
- package/dist/paths/work-section-paths.js +2 -12
- package/dist/paths/work-section-paths.js.map +1 -1
- package/dist/permissions/work-project-permissions-data.d.ts +0 -18
- package/dist/permissions/work-project-permissions-data.d.ts.map +1 -1
- package/dist/permissions/work-project-permissions-data.js +0 -18
- package/dist/permissions/work-project-permissions-data.js.map +1 -1
- package/dist/permissions/work-project-permissions.d.ts +0 -15
- package/dist/permissions/work-project-permissions.d.ts.map +1 -1
- package/dist/permissions/work-project-permissions.js +0 -15
- package/dist/permissions/work-project-permissions.js.map +1 -1
- package/dist/report/chat-report-channel-ref.d.ts +0 -7
- package/dist/report/chat-report-channel-ref.d.ts.map +1 -1
- package/dist/report/chat-report-channel-ref.js +0 -11
- package/dist/report/chat-report-channel-ref.js.map +1 -1
- package/dist/report/report-config-values.d.ts +0 -18
- package/dist/report/report-config-values.d.ts.map +1 -1
- package/dist/report/report-config-values.js +0 -35
- package/dist/report/report-config-values.js.map +1 -1
- package/dist/safety/active-safety-case-alert.d.ts +0 -15
- package/dist/safety/active-safety-case-alert.d.ts.map +1 -1
- package/dist/safety/active-safety-case-alert.js +1 -34
- package/dist/safety/active-safety-case-alert.js.map +1 -1
- package/dist/safety/index.d.ts.map +1 -1
- package/dist/safety/index.js +1 -3
- package/dist/safety/index.js.map +1 -1
- package/dist/safety/ncii-intake-derivations.d.ts +2 -46
- package/dist/safety/ncii-intake-derivations.d.ts.map +1 -1
- package/dist/safety/ncii-intake-derivations.js +8 -95
- package/dist/safety/ncii-intake-derivations.js.map +1 -1
- package/dist/safety/resource-keys.d.ts +0 -51
- package/dist/safety/resource-keys.d.ts.map +1 -1
- package/dist/safety/resource-keys.js +2 -86
- package/dist/safety/resource-keys.js.map +1 -1
- package/dist/schemas/admin-dispatch-actions.d.ts +1 -9
- package/dist/schemas/admin-dispatch-actions.d.ts.map +1 -1
- package/dist/schemas/admin-dispatch-actions.js +0 -20
- package/dist/schemas/admin-dispatch-actions.js.map +1 -1
- package/dist/schemas/admin.d.ts +0 -30
- package/dist/schemas/admin.d.ts.map +1 -1
- package/dist/schemas/admin.js +2 -170
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/atoms.d.ts +1 -33
- package/dist/schemas/atoms.d.ts.map +1 -1
- package/dist/schemas/atoms.js +7 -72
- package/dist/schemas/atoms.js.map +1 -1
- package/dist/schemas/auditions.d.ts +0 -1
- package/dist/schemas/auditions.d.ts.map +1 -1
- package/dist/schemas/auditions.js +0 -10
- package/dist/schemas/auditions.js.map +1 -1
- package/dist/schemas/chat.d.ts +0 -10
- package/dist/schemas/chat.d.ts.map +1 -1
- package/dist/schemas/chat.js +1 -66
- package/dist/schemas/chat.js.map +1 -1
- package/dist/schemas/commissions.d.ts.map +1 -1
- package/dist/schemas/commissions.js +0 -10
- package/dist/schemas/commissions.js.map +1 -1
- package/dist/schemas/conversation-files.d.ts.map +1 -1
- package/dist/schemas/conversation-files.js +0 -3
- package/dist/schemas/conversation-files.js.map +1 -1
- package/dist/schemas/craft-skills.d.ts.map +1 -1
- package/dist/schemas/craft-skills.js +0 -18
- package/dist/schemas/craft-skills.js.map +1 -1
- package/dist/schemas/hall-library.d.ts.map +1 -1
- package/dist/schemas/hall-library.js +1 -49
- package/dist/schemas/hall-library.js.map +1 -1
- package/dist/schemas/media.d.ts +0 -3
- package/dist/schemas/media.d.ts.map +1 -1
- package/dist/schemas/media.js +0 -33
- package/dist/schemas/media.js.map +1 -1
- package/dist/schemas/ncii.d.ts +0 -2
- package/dist/schemas/ncii.d.ts.map +1 -1
- package/dist/schemas/ncii.js +0 -33
- package/dist/schemas/ncii.js.map +1 -1
- package/dist/schemas/notification.d.ts +2 -99
- package/dist/schemas/notification.d.ts.map +1 -1
- package/dist/schemas/notification.js +3 -194
- package/dist/schemas/notification.js.map +1 -1
- package/dist/schemas/payments.d.ts.map +1 -1
- package/dist/schemas/payments.js +1 -24
- package/dist/schemas/payments.js.map +1 -1
- package/dist/schemas/public-documents.d.ts +0 -45
- package/dist/schemas/public-documents.d.ts.map +1 -1
- package/dist/schemas/public-documents.js +0 -63
- package/dist/schemas/public-documents.js.map +1 -1
- package/dist/schemas/safety.d.ts +81 -153
- package/dist/schemas/safety.d.ts.map +1 -1
- package/dist/schemas/safety.js +1 -153
- package/dist/schemas/safety.js.map +1 -1
- package/dist/schemas/social.d.ts +0 -1
- package/dist/schemas/social.d.ts.map +1 -1
- package/dist/schemas/social.js +2 -19
- package/dist/schemas/social.js.map +1 -1
- package/dist/schemas/stake-share-operation.d.ts.map +1 -1
- package/dist/schemas/stake-share-operation.js +0 -22
- package/dist/schemas/stake-share-operation.js.map +1 -1
- package/dist/schemas/text-field.d.ts +0 -8
- package/dist/schemas/text-field.d.ts.map +1 -1
- package/dist/schemas/text-field.js +0 -8
- package/dist/schemas/text-field.js.map +1 -1
- package/dist/schemas/uploads.d.ts.map +1 -1
- package/dist/schemas/uploads.js +0 -9
- package/dist/schemas/uploads.js.map +1 -1
- package/dist/schemas/users.d.ts +0 -36
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +2 -129
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/utility.d.ts +0 -3
- package/dist/schemas/utility.d.ts.map +1 -1
- package/dist/schemas/utility.js +2 -32
- package/dist/schemas/utility.js.map +1 -1
- package/dist/schemas/voting.d.ts +0 -22
- package/dist/schemas/voting.d.ts.map +1 -1
- package/dist/schemas/voting.js +0 -29
- package/dist/schemas/voting.js.map +1 -1
- package/dist/schemas/work-project-management.d.ts +1 -56
- package/dist/schemas/work-project-management.d.ts.map +1 -1
- package/dist/schemas/work-project-management.js +2 -184
- package/dist/schemas/work-project-management.js.map +1 -1
- package/dist/system-slots/guide-videos.d.ts +0 -1
- package/dist/system-slots/guide-videos.d.ts.map +1 -1
- package/dist/system-slots/guide-videos.js +0 -3
- package/dist/system-slots/guide-videos.js.map +1 -1
- package/dist/system-slots/help-videos.d.ts +0 -1
- package/dist/system-slots/help-videos.d.ts.map +1 -1
- package/dist/system-slots/help-videos.js +0 -6
- package/dist/system-slots/help-videos.js.map +1 -1
- package/dist/system-slots/system-slots.d.ts +0 -17
- package/dist/system-slots/system-slots.d.ts.map +1 -1
- package/dist/system-slots/system-slots.js +1 -16
- package/dist/system-slots/system-slots.js.map +1 -1
- package/dist/types/admin-ops.d.ts +0 -49
- package/dist/types/admin-ops.d.ts.map +1 -1
- package/dist/types/admin-ops.js +0 -5
- package/dist/types/admin-ops.js.map +1 -1
- package/dist/types/admin-users.d.ts +0 -3
- package/dist/types/admin-users.d.ts.map +1 -1
- package/dist/types/admin-users.js +0 -5
- package/dist/types/admin-users.js.map +1 -1
- package/dist/types/audit.d.ts +0 -28
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/audit.js +0 -8
- package/dist/types/audit.js.map +1 -1
- package/dist/types/content.d.ts +0 -3
- package/dist/types/content.d.ts.map +1 -1
- package/dist/types/content.js +0 -3
- package/dist/types/content.js.map +1 -1
- package/dist/types/payments.d.ts +0 -6
- package/dist/types/payments.d.ts.map +1 -1
- package/dist/types/payments.js +0 -2
- package/dist/types/payments.js.map +1 -1
- package/dist/types/work-project.d.ts +0 -20
- package/dist/types/work-project.d.ts.map +1 -1
- package/dist/types/work-project.js +0 -22
- package/dist/types/work-project.js.map +1 -1
- package/dist/upload-variables/apply-to-commission-variables.d.ts.map +1 -1
- package/dist/upload-variables/apply-to-commission-variables.js +0 -2
- package/dist/upload-variables/apply-to-commission-variables.js.map +1 -1
- package/dist/upload-variables/create-admin-audition-variables.d.ts +0 -1
- package/dist/upload-variables/create-admin-audition-variables.d.ts.map +1 -1
- package/dist/upload-variables/create-admin-audition-variables.js +1 -9
- package/dist/upload-variables/create-admin-audition-variables.js.map +1 -1
- package/dist/upload-variables/create-audition-entry-variables.d.ts.map +1 -1
- package/dist/upload-variables/create-audition-entry-variables.js +0 -2
- package/dist/upload-variables/create-audition-entry-variables.js.map +1 -1
- package/dist/upload-variables/create-commission-variables.d.ts.map +1 -1
- package/dist/upload-variables/create-commission-variables.js +0 -2
- package/dist/upload-variables/create-commission-variables.js.map +1 -1
- package/dist/upload-variables/create-work-project-audition-variables.d.ts.map +1 -1
- package/dist/upload-variables/create-work-project-audition-variables.js +1 -9
- package/dist/upload-variables/create-work-project-audition-variables.js.map +1 -1
- package/dist/upload-variables/on-progress.d.ts.map +1 -1
- package/dist/upload-variables/on-progress.js +2 -5
- package/dist/upload-variables/on-progress.js.map +1 -1
- package/dist/upload-variables/square-streetz-post-variables.d.ts.map +1 -1
- package/dist/upload-variables/square-streetz-post-variables.js +0 -2
- package/dist/upload-variables/square-streetz-post-variables.js.map +1 -1
- package/dist/upload-variables/update-chapter-media-variables.d.ts.map +1 -1
- package/dist/upload-variables/update-chapter-media-variables.js +0 -2
- package/dist/upload-variables/update-chapter-media-variables.js.map +1 -1
- package/dist/upload-variables/update-episode-media-variables.d.ts.map +1 -1
- package/dist/upload-variables/update-episode-media-variables.js +0 -2
- package/dist/upload-variables/update-episode-media-variables.js.map +1 -1
- package/dist/upload-variables/update-tale-cover-photo-variables.d.ts.map +1 -1
- package/dist/upload-variables/update-tale-cover-photo-variables.js +0 -2
- package/dist/upload-variables/update-tale-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/update-television-cover-photo-variables.d.ts.map +1 -1
- package/dist/upload-variables/update-television-cover-photo-variables.js +0 -2
- package/dist/upload-variables/update-television-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/update-track-media-variables.d.ts.map +1 -1
- package/dist/upload-variables/update-track-media-variables.js +0 -2
- package/dist/upload-variables/update-track-media-variables.js.map +1 -1
- package/dist/upload-variables/update-tune-cover-photo-variables.d.ts.map +1 -1
- package/dist/upload-variables/update-tune-cover-photo-variables.js +0 -2
- package/dist/upload-variables/update-tune-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/update-work-realm-cover-variables.d.ts.map +1 -1
- package/dist/upload-variables/update-work-realm-cover-variables.js +0 -2
- package/dist/upload-variables/update-work-realm-cover-variables.js.map +1 -1
- package/dist/upload-variables/upload-conversation-file-variables.d.ts.map +1 -1
- package/dist/upload-variables/upload-conversation-file-variables.js +0 -5
- package/dist/upload-variables/upload-conversation-file-variables.js.map +1 -1
- package/dist/upload-variables/upload-craft-skill-variables.d.ts.map +1 -1
- package/dist/upload-variables/upload-craft-skill-variables.js +0 -2
- package/dist/upload-variables/upload-craft-skill-variables.js.map +1 -1
- package/dist/upload-variables/upload-profile-picture-variables.d.ts.map +1 -1
- package/dist/upload-variables/upload-profile-picture-variables.js +0 -2
- package/dist/upload-variables/upload-profile-picture-variables.js.map +1 -1
- package/dist/upload-variables/upload-system-content-variables.d.ts.map +1 -1
- package/dist/upload-variables/upload-system-content-variables.js +0 -2
- package/dist/upload-variables/upload-system-content-variables.js.map +1 -1
- package/dist/upload-variables/upload-work-file-variables.d.ts.map +1 -1
- package/dist/upload-variables/upload-work-file-variables.js +0 -2
- package/dist/upload-variables/upload-work-file-variables.js.map +1 -1
- package/dist/utils/admin-standing.d.ts +0 -8
- package/dist/utils/admin-standing.d.ts.map +1 -1
- package/dist/utils/admin-standing.js +0 -10
- package/dist/utils/admin-standing.js.map +1 -1
- package/dist/utils/age-derivation.d.ts +0 -12
- package/dist/utils/age-derivation.d.ts.map +1 -1
- package/dist/utils/age-derivation.js +0 -11
- package/dist/utils/age-derivation.js.map +1 -1
- package/dist/utils/app-config.d.ts +0 -92
- package/dist/utils/app-config.d.ts.map +1 -1
- package/dist/utils/app-config.js +3 -87
- package/dist/utils/app-config.js.map +1 -1
- package/dist/utils/display-name-reservation.d.ts +0 -6
- package/dist/utils/display-name-reservation.d.ts.map +1 -1
- package/dist/utils/display-name-reservation.js +0 -7
- package/dist/utils/display-name-reservation.js.map +1 -1
- package/dist/utils/guild-chat-access.d.ts +0 -27
- package/dist/utils/guild-chat-access.d.ts.map +1 -1
- package/dist/utils/guild-chat-access.js +0 -25
- package/dist/utils/guild-chat-access.js.map +1 -1
- package/dist/utils/guild-invite-system-message.d.ts +0 -19
- package/dist/utils/guild-invite-system-message.d.ts.map +1 -1
- package/dist/utils/guild-invite-system-message.js +0 -20
- package/dist/utils/guild-invite-system-message.js.map +1 -1
- package/dist/utils/hall-content.d.ts +0 -40
- package/dist/utils/hall-content.d.ts.map +1 -1
- package/dist/utils/hall-content.js +0 -38
- package/dist/utils/hall-content.js.map +1 -1
- package/dist/utils/password.d.ts +0 -20
- package/dist/utils/password.d.ts.map +1 -1
- package/dist/utils/password.js +1 -20
- package/dist/utils/password.js.map +1 -1
- package/dist/utils/pledge-refund-eligibility.d.ts +0 -19
- package/dist/utils/pledge-refund-eligibility.d.ts.map +1 -1
- package/dist/utils/pledge-refund-eligibility.js +0 -22
- package/dist/utils/pledge-refund-eligibility.js.map +1 -1
- package/dist/utils/pledge-totals.d.ts +0 -21
- package/dist/utils/pledge-totals.d.ts.map +1 -1
- package/dist/utils/pledge-totals.js +0 -23
- package/dist/utils/pledge-totals.js.map +1 -1
- package/dist/utils/public-documents.d.ts +0 -55
- package/dist/utils/public-documents.d.ts.map +1 -1
- package/dist/utils/public-documents.js +0 -56
- package/dist/utils/public-documents.js.map +1 -1
- package/dist/utils/text-field.d.ts +0 -5
- package/dist/utils/text-field.d.ts.map +1 -1
- package/dist/utils/text-field.js +0 -9
- package/dist/utils/text-field.js.map +1 -1
- package/dist/utils/work-file-folder.d.ts +0 -7
- package/dist/utils/work-file-folder.d.ts.map +1 -1
- package/dist/utils/work-file-folder.js +0 -7
- package/dist/utils/work-file-folder.js.map +1 -1
- package/dist/utils/work-publish-readiness.d.ts +0 -30
- package/dist/utils/work-publish-readiness.d.ts.map +1 -1
- package/dist/utils/work-publish-readiness.js +0 -24
- package/dist/utils/work-publish-readiness.js.map +1 -1
- package/dist/utils/work-realm-eligibility.d.ts +0 -8
- package/dist/utils/work-realm-eligibility.d.ts.map +1 -1
- package/dist/utils/work-realm-eligibility.js +0 -7
- package/dist/utils/work-realm-eligibility.js.map +1 -1
- package/dist/utils/work-realm-name.d.ts +0 -6
- package/dist/utils/work-realm-name.d.ts.map +1 -1
- package/dist/utils/work-realm-name.js +0 -8
- package/dist/utils/work-realm-name.js.map +1 -1
- package/package.json +8 -8
- package/dist/constants/safety-telemetry-patterns.d.ts +0 -9
- package/dist/constants/safety-telemetry-patterns.d.ts.map +0 -1
- package/dist/constants/safety-telemetry-patterns.js +0 -60
- package/dist/constants/safety-telemetry-patterns.js.map +0 -1
- package/dist/media/photodna-coverage.d.ts +0 -46
- package/dist/media/photodna-coverage.d.ts.map +0 -1
- package/dist/media/photodna-coverage.js +0 -74
- package/dist/media/photodna-coverage.js.map +0 -1
|
@@ -1,39 +1,20 @@
|
|
|
1
1
|
import type { FileOrigin } from '../media/file-origin.js';
|
|
2
|
-
/** Every age/eligibility-gated capability id. Past-tense/imperative-neutral,
|
|
3
|
-
* dotted-namespace. Adding a value here REQUIRES adding it to CAPABILITY_REGISTRY
|
|
4
|
-
* (the exhaustive test enforces the 1:1). */
|
|
5
2
|
export type CapabilityId = 'account.becomeArtisan' | 'square.post' | 'square.acceptAgreements' | 'pledge.create' | 'messaging.guildInvite' | 'messaging.send' | 'messaging.fileShare' | 'collaboration.commissionProposal' | 'collaboration.auditionEntry' | 'stakeShares.hold' | 'upload.origin';
|
|
6
|
-
/** The age requirement a capability imposes. */
|
|
7
3
|
export type CapabilityAgeRequirement = 'adult18Plus' | 'none';
|
|
8
4
|
export interface CapabilityDefinition {
|
|
9
5
|
id: CapabilityId;
|
|
10
|
-
/** Human-facing summary (admin/debug only; not user copy). */
|
|
11
6
|
description: string;
|
|
12
|
-
/** The age gate. `adult18Plus` capabilities are server-enforced against the age flag
|
|
13
|
-
* the backend reads from `privateData`; no age claim exists on the token. */
|
|
14
7
|
ageRequirement: CapabilityAgeRequirement;
|
|
15
|
-
/** When true, BOTH ends must satisfy the requirement (no-minor-messaging). */
|
|
16
8
|
bilateral: boolean;
|
|
17
|
-
/** Upload origins this capability governs (for the startUpload gate). Empty
|
|
18
|
-
* unless the capability is `upload.origin`-adjacent. */
|
|
19
9
|
uploadOrigins: readonly FileOrigin[];
|
|
20
10
|
}
|
|
21
|
-
/** Upload origins that require an 18+ account to initiate (origin-level gate, not
|
|
22
|
-
* just the create callable — Phase 6 item 3). Origins tied to artisan-only
|
|
23
|
-
* surfaces (collaboration, hall publication, work assets) are 18+ because only
|
|
24
|
-
* 18+ accounts can be artisan creators / hold stake shares. */
|
|
25
11
|
export declare const ADULT_ONLY_UPLOAD_ORIGINS: readonly ["squareStreetz", "commission-posting", "commission-proposal", "audition-prompt", "audition-entry", "hallLibrary-cover-square", "hallLibrary-cover-poster", "hallLibrary-cover-cinematic", "realm-cover", "chapter-photo", "tune-track-photo", "tune-track-audio", "television-episode-photo", "television-episode-video", "conversation-file", "work-asset"];
|
|
26
12
|
export declare const CAPABILITY_REGISTRY: Record<CapabilityId, CapabilityDefinition>;
|
|
27
|
-
/** All capability ids (for exhaustiveness tests + iteration). */
|
|
28
13
|
export declare const ALL_CAPABILITY_IDS: CapabilityId[];
|
|
29
|
-
/** The actor's age-relevant view, read server-side from privateData — the only age
|
|
30
|
-
* authority; the token carries no age claim. */
|
|
31
14
|
export interface AgeCapabilityContext {
|
|
32
15
|
is18Plus: boolean;
|
|
33
16
|
accountCapabilityVersion: number;
|
|
34
17
|
}
|
|
35
|
-
/** Does this context satisfy a capability's age requirement? */
|
|
36
18
|
export declare function contextSatisfies(capability: CapabilityId, ctx: AgeCapabilityContext): boolean;
|
|
37
|
-
/** Is the given upload origin 18+-gated? */
|
|
38
19
|
export declare function uploadOriginRequires18Plus(origin: string): boolean;
|
|
39
20
|
//# sourceMappingURL=capability-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-registry.d.ts","sourceRoot":"","sources":["../../src/capabilities/capability-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capability-registry.d.ts","sourceRoot":"","sources":["../../src/capabilities/capability-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,MAAM,YAAY,GACpB,uBAAuB,GACvB,aAAa,GACb,yBAAyB,GACzB,eAAe,GACf,uBAAuB,GACvB,gBAAgB,GAChB,qBAAqB,GACrB,kCAAkC,GAClC,6BAA6B,GAC7B,kBAAkB,GAClB,eAAe,CAAC;AAEpB,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG,MAAM,CAAC;AAE9D,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,YAAY,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,wBAAwB,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,SAAS,UAAU,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,yBAAyB,wWAiBI,CAAC;AAE3C,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,YAAY,EAAE,oBAAoB,CA8E1E,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAuC,YAAY,EAAE,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,YAAY,EAAE,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAI7F;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAElE"}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// CAPABILITY REGISTRY — the ONE declaration of the age/eligibility capability
|
|
3
|
-
// model (Phase 6). Consolidated here 2026-07-13 from the former byte-for-byte
|
|
4
|
-
// mirrors in ttt-prod `src/lib/capabilities/capability-registry.ts` and
|
|
5
|
-
// `functions/src/shared/capability-registry.ts` (both trees now import this;
|
|
6
|
-
// the two-tree sync tests are deleted). Upload origins are compile-linked to
|
|
7
|
-
// the canonical `FileOrigin` union — an origin rename fails the build here.
|
|
8
|
-
// ============================================================================
|
|
9
|
-
/** Upload origins that require an 18+ account to initiate (origin-level gate, not
|
|
10
|
-
* just the create callable — Phase 6 item 3). Origins tied to artisan-only
|
|
11
|
-
* surfaces (collaboration, hall publication, work assets) are 18+ because only
|
|
12
|
-
* 18+ accounts can be artisan creators / hold stake shares. */
|
|
13
1
|
export const ADULT_ONLY_UPLOAD_ORIGINS = [
|
|
14
2
|
'squareStreetz',
|
|
15
3
|
'commission-posting',
|
|
@@ -107,16 +95,13 @@ export const CAPABILITY_REGISTRY = {
|
|
|
107
95
|
uploadOrigins: ADULT_ONLY_UPLOAD_ORIGINS,
|
|
108
96
|
},
|
|
109
97
|
};
|
|
110
|
-
/** All capability ids (for exhaustiveness tests + iteration). */
|
|
111
98
|
export const ALL_CAPABILITY_IDS = Object.keys(CAPABILITY_REGISTRY);
|
|
112
|
-
/** Does this context satisfy a capability's age requirement? */
|
|
113
99
|
export function contextSatisfies(capability, ctx) {
|
|
114
100
|
const def = CAPABILITY_REGISTRY[capability];
|
|
115
101
|
if (def.ageRequirement === 'none')
|
|
116
102
|
return true;
|
|
117
103
|
return ctx.is18Plus === true;
|
|
118
104
|
}
|
|
119
|
-
/** Is the given upload origin 18+-gated? */
|
|
120
105
|
export function uploadOriginRequires18Plus(origin) {
|
|
121
106
|
return ADULT_ONLY_UPLOAD_ORIGINS.includes(origin);
|
|
122
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-registry.js","sourceRoot":"","sources":["../../src/capabilities/capability-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capability-registry.js","sourceRoot":"","sources":["../../src/capabilities/capability-registry.ts"],"names":[],"mappings":"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","sourcesContent":["import type { FileOrigin } from '../media/file-origin.js';\n\nexport type CapabilityId =\n | 'account.becomeArtisan'\n | 'square.post'\n | 'square.acceptAgreements'\n | 'pledge.create'\n | 'messaging.guildInvite'\n | 'messaging.send'\n | 'messaging.fileShare'\n | 'collaboration.commissionProposal'\n | 'collaboration.auditionEntry'\n | 'stakeShares.hold'\n | 'upload.origin';\n\nexport type CapabilityAgeRequirement = 'adult18Plus' | 'none';\n\nexport interface CapabilityDefinition {\n id: CapabilityId;\n description: string;\n ageRequirement: CapabilityAgeRequirement;\n bilateral: boolean;\n uploadOrigins: readonly FileOrigin[];\n}\n\nexport const ADULT_ONLY_UPLOAD_ORIGINS = [\n 'squareStreetz',\n 'commission-posting',\n 'commission-proposal',\n 'audition-prompt',\n 'audition-entry',\n 'hallLibrary-cover-square',\n 'hallLibrary-cover-poster',\n 'hallLibrary-cover-cinematic',\n 'realm-cover',\n 'chapter-photo',\n 'tune-track-photo',\n 'tune-track-audio',\n 'television-episode-photo',\n 'television-episode-video',\n 'conversation-file',\n 'work-asset',\n] as const satisfies readonly FileOrigin[];\n\nexport const CAPABILITY_REGISTRY: Record<CapabilityId, CapabilityDefinition> = {\n 'account.becomeArtisan': {\n id: 'account.becomeArtisan',\n description: 'Become an artisan creator (privilege + stake-share eligibility).',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: [],\n },\n 'square.post': {\n id: 'square.post',\n description: 'Create a Square Streetz post.',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: ['squareStreetz'],\n },\n 'square.acceptAgreements': {\n id: 'square.acceptAgreements',\n description: 'Accept the Square Streetz posting agreements.',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: [],\n },\n 'pledge.create': {\n id: 'pledge.create',\n description: 'Create a pledge / payment (18+ only, pledge-only payments).',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: [],\n },\n 'messaging.guildInvite': {\n id: 'messaging.guildInvite',\n description: 'Send a guild invite (opens an invite-conversation thread).',\n ageRequirement: 'adult18Plus',\n bilateral: true,\n uploadOrigins: [],\n },\n 'messaging.send': {\n id: 'messaging.send',\n description: 'Send a chat / invite-thread message.',\n ageRequirement: 'adult18Plus',\n bilateral: true,\n uploadOrigins: [],\n },\n 'messaging.fileShare': {\n id: 'messaging.fileShare',\n description: 'Share a Conversation File in an invite / admin-support conversation.',\n ageRequirement: 'adult18Plus',\n bilateral: true,\n uploadOrigins: ['conversation-file'],\n },\n 'collaboration.commissionProposal': {\n id: 'collaboration.commissionProposal',\n description: 'Submit a commission proposal (artisan collaboration surface).',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: ['commission-proposal'],\n },\n 'collaboration.auditionEntry': {\n id: 'collaboration.auditionEntry',\n description: 'Submit an audition entry (artisan collaboration surface).',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: ['audition-entry'],\n },\n 'stakeShares.hold': {\n id: 'stakeShares.hold',\n description: 'Hold stake shares (guild membership / revenue).',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: [],\n },\n 'upload.origin': {\n id: 'upload.origin',\n description: 'Initiate an upload for an adult-only origin (startUpload gate).',\n ageRequirement: 'adult18Plus',\n bilateral: false,\n uploadOrigins: ADULT_ONLY_UPLOAD_ORIGINS,\n },\n};\n\nexport const ALL_CAPABILITY_IDS = Object.keys(CAPABILITY_REGISTRY) as CapabilityId[];\n\nexport interface AgeCapabilityContext {\n is18Plus: boolean;\n accountCapabilityVersion: number;\n}\n\nexport function contextSatisfies(capability: CapabilityId, ctx: AgeCapabilityContext): boolean {\n const def = CAPABILITY_REGISTRY[capability];\n if (def.ageRequirement === 'none') return true;\n return ctx.is18Plus === true;\n}\n\nexport function uploadOriginRequires18Plus(origin: string): boolean {\n return (ADULT_ONLY_UPLOAD_ORIGINS as readonly string[]).includes(origin);\n}\n"]}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import type { CapabilityId } from './capability-registry.js';
|
|
2
2
|
export interface MessagingSurface {
|
|
3
|
-
/** Stable id for the entry point. */
|
|
4
3
|
id: string;
|
|
5
|
-
/** The backend callable / worker that owns this surface. */
|
|
6
4
|
callable: string;
|
|
7
|
-
/** The messaging capability that gates it (MUST be a bilateral capability). */
|
|
8
5
|
capability: CapabilityId;
|
|
9
|
-
/** Whether the recipient is checked at GRANT time (e.g. invite creation). */
|
|
10
6
|
checksRecipientAtGrant: boolean;
|
|
11
|
-
/** Whether the recipient is (re)checked at SEND time. */
|
|
12
7
|
checksRecipientAtSend: boolean;
|
|
13
8
|
}
|
|
14
9
|
export declare const MESSAGING_SURFACES: readonly MessagingSurface[];
|
|
15
|
-
/** Surface ids (for the exhaustiveness test). */
|
|
16
10
|
export declare const ALL_MESSAGING_SURFACE_IDS: string[];
|
|
17
11
|
//# sourceMappingURL=messaging-surfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging-surfaces.d.ts","sourceRoot":"","sources":["../../src/capabilities/messaging-surfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messaging-surfaces.d.ts","sourceRoot":"","sources":["../../src/capabilities/messaging-surfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,YAAY,CAAC;IACzB,sBAAsB,EAAE,OAAO,CAAC;IAChC,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,kBAAkB,EAAE,SAAS,gBAAgB,EA6BhD,CAAC;AAEX,eAAO,MAAM,yBAAyB,UAAsC,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// NO-MINOR-MESSAGING — the ONE route/entry-point inventory. Consolidated here
|
|
3
|
-
// 2026-07-13 from the former byte-for-byte mirrors in ttt-prod
|
|
4
|
-
// `src/lib/capabilities/messaging-surfaces.ts` and
|
|
5
|
-
// `functions/src/shared/messaging-surfaces.ts` (both trees now import this;
|
|
6
|
-
// the two-tree sync tests are deleted).
|
|
7
|
-
// ============================================================================
|
|
8
1
|
export const MESSAGING_SURFACES = [
|
|
9
2
|
{
|
|
10
3
|
id: 'guildInvite.send',
|
|
@@ -14,10 +7,6 @@ export const MESSAGING_SURFACES = [
|
|
|
14
7
|
checksRecipientAtSend: true,
|
|
15
8
|
},
|
|
16
9
|
{
|
|
17
|
-
// Realtime via the chat Worker DOs: the no-minor (18+) check is at CONNECT/GRANT time in
|
|
18
|
-
// `mintChatGrant` (`authorizeChannelScope` → assertCapability('messaging.send')) per peer, NOT
|
|
19
|
-
// re-checked per message; an access revoke closes the live socket. `sendGuildChatMessage` is
|
|
20
|
-
// admin-support-only now.
|
|
21
10
|
id: 'guildChat.send',
|
|
22
11
|
callable: 'mintChatGrant',
|
|
23
12
|
capability: 'messaging.send',
|
|
@@ -25,10 +14,6 @@ export const MESSAGING_SURFACES = [
|
|
|
25
14
|
checksRecipientAtSend: false,
|
|
26
15
|
},
|
|
27
16
|
{
|
|
28
|
-
// Conversation Files (guild-invite + admin-support conversations only — guild
|
|
29
|
-
// chat CHANNELS have no Conversation Files). The bilateral 18+ check runs at the
|
|
30
|
-
// origin gate inside `startUpload`, which authorizes the conversation before it
|
|
31
|
-
// reserves quota; there is no per-message send path to re-check.
|
|
32
17
|
id: 'conversationFile.share',
|
|
33
18
|
callable: 'startUpload',
|
|
34
19
|
capability: 'messaging.fileShare',
|
|
@@ -43,6 +28,5 @@ export const MESSAGING_SURFACES = [
|
|
|
43
28
|
checksRecipientAtSend: false,
|
|
44
29
|
},
|
|
45
30
|
];
|
|
46
|
-
/** Surface ids (for the exhaustiveness test). */
|
|
47
31
|
export const ALL_MESSAGING_SURFACE_IDS = MESSAGING_SURFACES.map((s) => s.id);
|
|
48
32
|
//# sourceMappingURL=messaging-surfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging-surfaces.js","sourceRoot":"","sources":["../../src/capabilities/messaging-surfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messaging-surfaces.js","sourceRoot":"","sources":["../../src/capabilities/messaging-surfaces.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D;QACE,EAAE,EAAE,kBAAkB;QACtB,QAAQ,EAAE,mBAAmB;QAC7B,UAAU,EAAE,uBAAuB;QACnC,sBAAsB,EAAE,IAAI;QAC5B,qBAAqB,EAAE,IAAI;KAC5B;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,QAAQ,EAAE,eAAe;QACzB,UAAU,EAAE,gBAAgB;QAC5B,sBAAsB,EAAE,IAAI;QAC5B,qBAAqB,EAAE,KAAK;KAC7B;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,QAAQ,EAAE,aAAa;QACvB,UAAU,EAAE,qBAAqB;QACjC,sBAAsB,EAAE,IAAI;QAC5B,qBAAqB,EAAE,KAAK;KAC7B;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,QAAQ,EAAE,eAAe;QACzB,UAAU,EAAE,gBAAgB;QAC5B,sBAAsB,EAAE,IAAI;QAC5B,qBAAqB,EAAE,KAAK;KAC7B;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import type { CapabilityId } from './capability-registry.js';\n\nexport interface MessagingSurface {\n id: string;\n callable: string;\n capability: CapabilityId;\n checksRecipientAtGrant: boolean;\n checksRecipientAtSend: boolean;\n}\n\nexport const MESSAGING_SURFACES: readonly MessagingSurface[] = [\n {\n id: 'guildInvite.send',\n callable: 'inviteUserToGuild',\n capability: 'messaging.guildInvite',\n checksRecipientAtGrant: true,\n checksRecipientAtSend: true,\n },\n {\n id: 'guildChat.send',\n callable: 'mintChatGrant',\n capability: 'messaging.send',\n checksRecipientAtGrant: true,\n checksRecipientAtSend: false,\n },\n {\n id: 'conversationFile.share',\n callable: 'startUpload',\n capability: 'messaging.fileShare',\n checksRecipientAtGrant: true,\n checksRecipientAtSend: false,\n },\n {\n id: 'inviteConversation.send',\n callable: 'mintChatGrant',\n capability: 'messaging.send',\n checksRecipientAtGrant: true,\n checksRecipientAtSend: false,\n },\n] as const;\n\nexport const ALL_MESSAGING_SURFACE_IDS = MESSAGING_SURFACES.map((s) => s.id);\n"]}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The custom claims an admin account carries (value `true`). The claim is a fast check only: every
|
|
3
|
-
* server-side admin decision — a Cloud Function and the Firestore and Storage rules alike — also
|
|
4
|
-
* requires the account on the live admin roster (`_systemData/adminList`), so a removed admin loses
|
|
5
|
-
* access at once.
|
|
6
|
-
*/
|
|
7
1
|
export declare const ADMIN_CLAIM = "isAdmin";
|
|
8
|
-
/**
|
|
9
|
-
* The custom claim a junior admin account carries (value `true`), synced from the live admin
|
|
10
|
-
* roster's junior admin list. No rules file reads it, and the backend grants it nothing while junior
|
|
11
|
-
* admin is switched off there.
|
|
12
|
-
*/
|
|
13
2
|
export declare const JR_ADMIN_CLAIM = "isJrAdmin";
|
|
14
3
|
//# sourceMappingURL=admin-claims.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-claims.d.ts","sourceRoot":"","sources":["../../src/constants/admin-claims.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"admin-claims.d.ts","sourceRoot":"","sources":["../../src/constants/admin-claims.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,eAAO,MAAM,cAAc,cAAc,CAAC"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The custom claims an admin account carries (value `true`). The claim is a fast check only: every
|
|
3
|
-
* server-side admin decision — a Cloud Function and the Firestore and Storage rules alike — also
|
|
4
|
-
* requires the account on the live admin roster (`_systemData/adminList`), so a removed admin loses
|
|
5
|
-
* access at once.
|
|
6
|
-
*/
|
|
7
1
|
export const ADMIN_CLAIM = 'isAdmin';
|
|
8
|
-
/**
|
|
9
|
-
* The custom claim a junior admin account carries (value `true`), synced from the live admin
|
|
10
|
-
* roster's junior admin list. No rules file reads it, and the backend grants it nothing while junior
|
|
11
|
-
* admin is switched off there.
|
|
12
|
-
*/
|
|
13
2
|
export const JR_ADMIN_CLAIM = 'isJrAdmin';
|
|
14
3
|
//# sourceMappingURL=admin-claims.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-claims.js","sourceRoot":"","sources":["../../src/constants/admin-claims.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"admin-claims.js","sourceRoot":"","sources":["../../src/constants/admin-claims.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC;AAErC,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC","sourcesContent":["export const ADMIN_CLAIM = 'isAdmin';\n\nexport const JR_ADMIN_CLAIM = 'isJrAdmin';\n"]}
|
|
@@ -14,84 +14,33 @@ import type { CommissionProposalStatus } from '../schemas/commissions.js';
|
|
|
14
14
|
import type { InviteSourceType } from '../schemas/work-project-management.js';
|
|
15
15
|
import type { HallWingType, RuleGroup, WorkProjectType } from '../types/content.js';
|
|
16
16
|
import type { HallSubItemStatus } from '../utils/hall-content.js';
|
|
17
|
-
/** Moderation status labels (user-management view, status badges). */
|
|
18
17
|
export declare const USER_ACCOUNT_STATUS_LABELS: Record<UserAccountStatus, string>;
|
|
19
|
-
/** Broadcast audience selector labels (announcement composer). */
|
|
20
18
|
export declare const BROADCAST_AUDIENCE_KIND_LABELS: Record<BroadcastAudienceSelector['kind'], string>;
|
|
21
|
-
/** Human labels for the canonical feedback types — the admin feedback-suggestions views and
|
|
22
|
-
* the user-facing feedback-submission surface render these instead of restating copy. Keyed
|
|
23
|
-
* by FeedbackType, so a new FEEDBACK_TYPES member fails the build until its label exists.
|
|
24
|
-
* UI copy uses the SHORT settled terms (Trade → "Trades", Craft → "Craft Tags", Genre →
|
|
25
|
-
* "<Kind> Genres"), never the compound code identifiers (ARCH-107). */
|
|
26
19
|
export declare const FEEDBACK_TYPE_LABELS: Record<FeedbackType, string>;
|
|
27
|
-
/**
|
|
28
|
-
* Human labels for the raw clearable/changeable TEXT-FIELD names the moderation text-clear
|
|
29
|
-
* remedy and the published "Update details" change-request flow work in. The backend stores and
|
|
30
|
-
* validates the raw doc field names (`workingTitle`, `description`, `content`); these are the
|
|
31
|
-
* only display strings for them — rendered by the member-facing "text removed by moderation"
|
|
32
|
-
* banners, every admin clear-text field picker, the change-request dialog, and the admin
|
|
33
|
-
* change-request work view. Keyed by the derived ClearableTextFieldName union, so a new
|
|
34
|
-
* clearable field fails the build here until it has a label (ARCH-102).
|
|
35
|
-
*
|
|
36
|
-
* The `working*` pair belongs to the Work shell and the Realm doc; the labels stay the plain
|
|
37
|
-
* short terms (ARCH-107 — the code identifier carries `working`, the UI never shows it).
|
|
38
|
-
*/
|
|
39
20
|
export declare const CLEARABLE_TEXT_FIELD_LABELS: Record<ClearableTextFieldName, string>;
|
|
40
|
-
/**
|
|
41
|
-
* Per-surface label overrides for the field labels above: `[surface][field] → label`. Only a
|
|
42
|
-
* surface that genuinely names a field differently appears here; everything else resolves to the
|
|
43
|
-
* base map. Each surface's override keys are restricted to the fields THAT surface exposes
|
|
44
|
-
* (indexed off `HALL_CONTENT_TEXT_FIELDS`), so an override for a field the surface does not have
|
|
45
|
-
* is a compile error — as is an override for a surface outside `HallContentTextSurface`.
|
|
46
|
-
*/
|
|
47
21
|
export type ClearableTextFieldLabelOverrides = {
|
|
48
22
|
[S in HallContentTextSurface]?: {
|
|
49
23
|
[F in (typeof HALL_CONTENT_TEXT_FIELDS)[S][number]]?: string;
|
|
50
24
|
};
|
|
51
25
|
};
|
|
52
|
-
/**
|
|
53
|
-
* A Realm's identity field is called **Name** on every Realm surface. The `workingTitle` doc
|
|
54
|
-
* field is shared with the Work shell, where it IS a Title — so the difference is per-surface, not
|
|
55
|
-
* per-field, and lives here rather than flattening one of the two settled terms.
|
|
56
|
-
*/
|
|
57
26
|
export declare const CLEARABLE_TEXT_FIELD_LABEL_OVERRIDES: {
|
|
58
27
|
readonly workRealm: {
|
|
59
28
|
readonly workingTitle: "Name";
|
|
60
29
|
};
|
|
61
30
|
};
|
|
62
|
-
/**
|
|
63
|
-
* The display label for one raw clearable text-field name: the surface's override when it has
|
|
64
|
-
* one, otherwise the base label, otherwise the raw name. This is the ONE accessor every surface
|
|
65
|
-
* calls — pass the surface whenever the caller knows it (a Realm surface must, or it renders
|
|
66
|
-
* "Title" for a Name); omit it only for a genuinely surface-agnostic caller.
|
|
67
|
-
*
|
|
68
|
-
* Both parameters tolerate a plain `string` because callers read field names off stored documents
|
|
69
|
-
* (`moderationClearedFields`) and callable payloads, and the surface may be the `workProject`
|
|
70
|
-
* shell — which is a clearable surface but not a `HallContentTextSurface`, so it simply has no
|
|
71
|
-
* overrides and falls through to the base map.
|
|
72
|
-
*/
|
|
73
31
|
export declare function clearableTextFieldLabel(field: string, surface?: string): string;
|
|
74
|
-
/** What the admin screens show for a thread whose `awaitingAdminReply` is set. */
|
|
75
32
|
export declare const ADMIN_DISPATCH_AWAITING_REPLY_LABEL = "Awaiting reply";
|
|
76
|
-
/** Human labels for the dead-letter replay ledgers (Ops Repairs dead-letter table). */
|
|
77
33
|
export declare const DEAD_LETTER_COLLECTION_LABELS: Record<DeadLetterCollection, string>;
|
|
78
|
-
/** Operator-settable report dispositions with their console copy. 'undetermined' is the
|
|
79
|
-
* initial state, never a settable target, so it carries no option entry. */
|
|
80
34
|
export declare const REPORT_DISPOSITION_OPTIONS: readonly {
|
|
81
35
|
value: Exclude<ReportDisposition, 'undetermined'>;
|
|
82
36
|
label: string;
|
|
83
37
|
description: string;
|
|
84
38
|
}[];
|
|
85
|
-
/** One user-facing reason option (shown to the affected user for any user-affecting action). */
|
|
86
39
|
export interface UserFacingReasonOption {
|
|
87
40
|
code: string;
|
|
88
41
|
label: string;
|
|
89
42
|
description: string;
|
|
90
43
|
}
|
|
91
|
-
/** User-facing reason picklist for the guided case-resolution flow — the affected user sees the
|
|
92
|
-
* label for any user-affecting action. Canonical home (ARCH-102): the codes ARE this list's own
|
|
93
|
-
* enumeration, so every client (web, phone, TV, admin app) renders the same options + labels by
|
|
94
|
-
* importing from here. */
|
|
95
44
|
export declare const USER_FACING_REASON_OPTIONS: readonly [{
|
|
96
45
|
readonly code: "harassment";
|
|
97
46
|
readonly label: "Harassment or bullying";
|
|
@@ -133,50 +82,26 @@ export declare const USER_FACING_REASON_OPTIONS: readonly [{
|
|
|
133
82
|
readonly label: "Other (explain)";
|
|
134
83
|
readonly description: "A policy violation not covered above — describe it in the detail box.";
|
|
135
84
|
}];
|
|
136
|
-
/** One user-facing reason code — the codes the picklist owns, never a free string. */
|
|
137
85
|
export type UserFacingReasonCode = (typeof USER_FACING_REASON_OPTIONS)[number]['code'];
|
|
138
|
-
/** Every user-facing reason code, in picklist order. */
|
|
139
86
|
export declare const USER_FACING_REASON_CODES: [UserFacingReasonCode, ...UserFacingReasonCode[]];
|
|
140
|
-
/** The user-facing label for a reason code (undefined when the code is unknown/absent). */
|
|
141
87
|
export declare function userFacingReasonLabel(code: string | undefined): string | undefined;
|
|
142
|
-
/** Each fixed rule group's heading. */
|
|
143
88
|
export declare const RULE_GROUP_TITLES: Record<RuleGroup, string>;
|
|
144
89
|
export declare const ARTISAN_AGREEMENTS_TITLE = "Artisan Agreements";
|
|
145
|
-
/**
|
|
146
|
-
* The label for a rule or agreement point narrowed to one type ("Tales only", "Educational wing
|
|
147
|
-
* only", "Tales, Educational wing only"); undefined when it applies to every type.
|
|
148
|
-
*/
|
|
149
90
|
export declare function appliesToTypeLabel(entry: {
|
|
150
91
|
workProjectType?: WorkProjectType;
|
|
151
92
|
hallWingType?: HallWingType;
|
|
152
93
|
}): string | undefined;
|
|
153
|
-
/** Guild invite statuses (a Work's invited-users list and an invite conversation's status line). */
|
|
154
94
|
export declare const GUILD_INVITE_STATUS_LABELS: Record<GuildInviteConversationStatus, string>;
|
|
155
|
-
/** Commission proposal statuses (a Work's proposals table). */
|
|
156
95
|
export declare const COMMISSION_PROPOSAL_STATUS_LABELS: Record<CommissionProposalStatus, string>;
|
|
157
|
-
/** Chapter, track, and episode review statuses (the Tale, Tune, and Television section tables). */
|
|
158
96
|
export declare const HALL_SUB_ITEM_STATUS_LABELS: Record<HallSubItemStatus, string>;
|
|
159
|
-
/** Audition statuses (the audition page). */
|
|
160
97
|
export declare const AUDITION_STATUS_LABELS: Record<Audition['status'], string>;
|
|
161
|
-
/** Work types (Work lists, the Work overview, the Works popover). */
|
|
162
98
|
export declare const WORK_PROJECT_TYPE_LABELS: Record<WorkProjectType, string>;
|
|
163
|
-
/** Invite source types, as the invite dialog names the context an invite was sent from. */
|
|
164
99
|
export declare const INVITE_SOURCE_TYPE_LABELS: Record<InviteSourceType, string>;
|
|
165
|
-
/** Short-link target types (the admin Short Links list), in the target-type enum's order. */
|
|
166
100
|
export declare const SHORT_LINK_TARGET_TYPE_LABELS: Record<ShortLinkTargetType, string>;
|
|
167
|
-
/** Support-thread statuses (a member's Messages, a Work's Correspondence, the admin browse list). */
|
|
168
101
|
export declare const ADMIN_DISPATCH_STATUS_LABELS: Record<AdminDispatch['status'], string>;
|
|
169
|
-
/**
|
|
170
|
-
* Why a full admin cannot remove their own Admin standing: the server refuses it, and the roster
|
|
171
|
-
* panel withholds the control with the same words. Another full admin removes it.
|
|
172
|
-
*/
|
|
173
102
|
export declare const ADMIN_SELF_REVOKE_REFUSAL = "You can't revoke your own admin standing. Ask another full admin to do it.";
|
|
174
|
-
/** The marker beside the sender of a support-thread message sent with admin authority. */
|
|
175
103
|
export declare const ADMIN_SENDER_MARKER_LABEL = "Admin";
|
|
176
|
-
/** The sender label on a support thread's system line (a close notice) in the admin preview. */
|
|
177
104
|
export declare const ADMIN_DISPATCH_SYSTEM_SENDER_LABEL = "System";
|
|
178
|
-
/** Child-safety case work statuses (the safety case console's case rows and closed-case lookup). */
|
|
179
105
|
export declare const CHILD_SAFETY_CASE_WORK_STATUS_LABELS: Record<ChildSafetyWorkStatus, string>;
|
|
180
|
-
/** NCII case statuses (the safety case console's case rows and closed-case lookup). */
|
|
181
106
|
export declare const NCII_CASE_STATUS_LABELS: Record<NciiInternalStatus, string>;
|
|
182
107
|
//# sourceMappingURL=admin-labels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-labels.d.ts","sourceRoot":"","sources":["../../src/constants/admin-labels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admin-labels.d.ts","sourceRoot":"","sources":["../../src/constants/admin-labels.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// ADMIN-SURFACE DISPLAY LABELS — the ONE home for business display copy keyed
|
|
3
|
-
// by canonical ttt-core enums (ARCH-102). Any client (web, phone, TV, admin app)
|
|
4
|
-
// renders the same labels by importing these.
|
|
5
|
-
//
|
|
6
|
-
// A few entries here are copy for ADMIN-MANAGED content that a PUBLIC surface also
|
|
7
|
-
// renders (the Rules & Agreements section titles). The organizing principle is one
|
|
8
|
-
// declaration, not one consumer.
|
|
9
|
-
// ============================================================================
|
|
10
1
|
import { HALL_WING_TYPES, WORK_PROJECT_TYPES } from './options.js';
|
|
11
|
-
/** Moderation status labels (user-management view, status badges). */
|
|
12
2
|
export const USER_ACCOUNT_STATUS_LABELS = {
|
|
13
3
|
active: 'Active',
|
|
14
4
|
suspended: 'Suspended',
|
|
15
5
|
banned: 'Banned',
|
|
16
6
|
};
|
|
17
|
-
/** Broadcast audience selector labels (announcement composer). */
|
|
18
7
|
export const BROADCAST_AUDIENCE_KIND_LABELS = {
|
|
19
8
|
allActiveUsers: 'All active users',
|
|
20
9
|
allArtisans: 'All artisan creators',
|
|
@@ -22,11 +11,6 @@ export const BROADCAST_AUDIENCE_KIND_LABELS = {
|
|
|
22
11
|
workMembers: "A Work's guild members",
|
|
23
12
|
realmMembers: "A Realm's members",
|
|
24
13
|
};
|
|
25
|
-
/** Human labels for the canonical feedback types — the admin feedback-suggestions views and
|
|
26
|
-
* the user-facing feedback-submission surface render these instead of restating copy. Keyed
|
|
27
|
-
* by FeedbackType, so a new FEEDBACK_TYPES member fails the build until its label exists.
|
|
28
|
-
* UI copy uses the SHORT settled terms (Trade → "Trades", Craft → "Craft Tags", Genre →
|
|
29
|
-
* "<Kind> Genres"), never the compound code identifiers (ARCH-107). */
|
|
30
14
|
export const FEEDBACK_TYPE_LABELS = {
|
|
31
15
|
tradeProfessionSuggestions: 'Trades',
|
|
32
16
|
craftSkillTagSuggestions: 'Craft Tags',
|
|
@@ -34,18 +18,6 @@ export const FEEDBACK_TYPE_LABELS = {
|
|
|
34
18
|
tunesWorkGenreSuggestions: 'Tunes Genres',
|
|
35
19
|
televisionWorkGenreSuggestions: 'Television Genres',
|
|
36
20
|
};
|
|
37
|
-
/**
|
|
38
|
-
* Human labels for the raw clearable/changeable TEXT-FIELD names the moderation text-clear
|
|
39
|
-
* remedy and the published "Update details" change-request flow work in. The backend stores and
|
|
40
|
-
* validates the raw doc field names (`workingTitle`, `description`, `content`); these are the
|
|
41
|
-
* only display strings for them — rendered by the member-facing "text removed by moderation"
|
|
42
|
-
* banners, every admin clear-text field picker, the change-request dialog, and the admin
|
|
43
|
-
* change-request work view. Keyed by the derived ClearableTextFieldName union, so a new
|
|
44
|
-
* clearable field fails the build here until it has a label (ARCH-102).
|
|
45
|
-
*
|
|
46
|
-
* The `working*` pair belongs to the Work shell and the Realm doc; the labels stay the plain
|
|
47
|
-
* short terms (ARCH-107 — the code identifier carries `working`, the UI never shows it).
|
|
48
|
-
*/
|
|
49
21
|
export const CLEARABLE_TEXT_FIELD_LABELS = {
|
|
50
22
|
workingTitle: 'Title',
|
|
51
23
|
workingDescription: 'Description',
|
|
@@ -53,34 +25,16 @@ export const CLEARABLE_TEXT_FIELD_LABELS = {
|
|
|
53
25
|
description: 'Description',
|
|
54
26
|
content: 'Content',
|
|
55
27
|
};
|
|
56
|
-
/**
|
|
57
|
-
* A Realm's identity field is called **Name** on every Realm surface. The `workingTitle` doc
|
|
58
|
-
* field is shared with the Work shell, where it IS a Title — so the difference is per-surface, not
|
|
59
|
-
* per-field, and lives here rather than flattening one of the two settled terms.
|
|
60
|
-
*/
|
|
61
28
|
export const CLEARABLE_TEXT_FIELD_LABEL_OVERRIDES = {
|
|
62
29
|
workRealm: { workingTitle: 'Name' },
|
|
63
30
|
};
|
|
64
|
-
/**
|
|
65
|
-
* The display label for one raw clearable text-field name: the surface's override when it has
|
|
66
|
-
* one, otherwise the base label, otherwise the raw name. This is the ONE accessor every surface
|
|
67
|
-
* calls — pass the surface whenever the caller knows it (a Realm surface must, or it renders
|
|
68
|
-
* "Title" for a Name); omit it only for a genuinely surface-agnostic caller.
|
|
69
|
-
*
|
|
70
|
-
* Both parameters tolerate a plain `string` because callers read field names off stored documents
|
|
71
|
-
* (`moderationClearedFields`) and callable payloads, and the surface may be the `workProject`
|
|
72
|
-
* shell — which is a clearable surface but not a `HallContentTextSurface`, so it simply has no
|
|
73
|
-
* overrides and falls through to the base map.
|
|
74
|
-
*/
|
|
75
31
|
export function clearableTextFieldLabel(field, surface) {
|
|
76
32
|
const overrides = surface
|
|
77
33
|
? CLEARABLE_TEXT_FIELD_LABEL_OVERRIDES[surface]
|
|
78
34
|
: undefined;
|
|
79
35
|
return (overrides?.[field] ?? CLEARABLE_TEXT_FIELD_LABELS[field] ?? field);
|
|
80
36
|
}
|
|
81
|
-
/** What the admin screens show for a thread whose `awaitingAdminReply` is set. */
|
|
82
37
|
export const ADMIN_DISPATCH_AWAITING_REPLY_LABEL = 'Awaiting reply';
|
|
83
|
-
/** Human labels for the dead-letter replay ledgers (Ops Repairs dead-letter table). */
|
|
84
38
|
export const DEAD_LETTER_COLLECTION_LABELS = {
|
|
85
39
|
chatSyncEvents: 'Chat sync event',
|
|
86
40
|
chatAdminActionCommands: 'Chat moderation command',
|
|
@@ -97,8 +51,6 @@ export const DEAD_LETTER_COLLECTION_LABELS = {
|
|
|
97
51
|
hallSubItemEdgeSync: 'Hall sub-item edge sync',
|
|
98
52
|
chatParkedDeliveries: 'Chat room delivery',
|
|
99
53
|
};
|
|
100
|
-
/** Operator-settable report dispositions with their console copy. 'undetermined' is the
|
|
101
|
-
* initial state, never a settable target, so it carries no option entry. */
|
|
102
54
|
export const REPORT_DISPOSITION_OPTIONS = [
|
|
103
55
|
{
|
|
104
56
|
value: 'reportRequired',
|
|
@@ -116,10 +68,6 @@ export const REPORT_DISPOSITION_OPTIONS = [
|
|
|
116
68
|
description: 'There was a triggering signal but on review it is a false positive.',
|
|
117
69
|
},
|
|
118
70
|
];
|
|
119
|
-
/** User-facing reason picklist for the guided case-resolution flow — the affected user sees the
|
|
120
|
-
* label for any user-affecting action. Canonical home (ARCH-102): the codes ARE this list's own
|
|
121
|
-
* enumeration, so every client (web, phone, TV, admin app) renders the same options + labels by
|
|
122
|
-
* importing from here. */
|
|
123
71
|
export const USER_FACING_REASON_OPTIONS = [
|
|
124
72
|
{
|
|
125
73
|
code: 'harassment',
|
|
@@ -172,15 +120,10 @@ export const USER_FACING_REASON_OPTIONS = [
|
|
|
172
120
|
description: 'A policy violation not covered above — describe it in the detail box.',
|
|
173
121
|
},
|
|
174
122
|
];
|
|
175
|
-
/** Every user-facing reason code, in picklist order. */
|
|
176
123
|
export const USER_FACING_REASON_CODES = USER_FACING_REASON_OPTIONS.map((o) => o.code);
|
|
177
|
-
/** The user-facing label for a reason code (undefined when the code is unknown/absent). */
|
|
178
124
|
export function userFacingReasonLabel(code) {
|
|
179
125
|
return USER_FACING_REASON_OPTIONS.find((o) => o.code === code)?.label;
|
|
180
126
|
}
|
|
181
|
-
// --- Rules & Agreements section titles and type labels ---
|
|
182
|
-
// The admin rules editor and the public rules page both render these (ENG-002).
|
|
183
|
-
/** Each fixed rule group's heading. */
|
|
184
127
|
export const RULE_GROUP_TITLES = {
|
|
185
128
|
generic: 'General Site Rules',
|
|
186
129
|
merchandising: 'Merchandising, Endorsements & Revenue Sharing',
|
|
@@ -188,10 +131,6 @@ export const RULE_GROUP_TITLES = {
|
|
|
188
131
|
workRealm: 'Realm Rules',
|
|
189
132
|
};
|
|
190
133
|
export const ARTISAN_AGREEMENTS_TITLE = 'Artisan Agreements';
|
|
191
|
-
/**
|
|
192
|
-
* The label for a rule or agreement point narrowed to one type ("Tales only", "Educational wing
|
|
193
|
-
* only", "Tales, Educational wing only"); undefined when it applies to every type.
|
|
194
|
-
*/
|
|
195
134
|
export function appliesToTypeLabel(entry) {
|
|
196
135
|
const parts = [
|
|
197
136
|
entry.workProjectType && WORK_PROJECT_TYPES[entry.workProjectType].label,
|
|
@@ -199,10 +138,6 @@ export function appliesToTypeLabel(entry) {
|
|
|
199
138
|
].filter((part) => Boolean(part));
|
|
200
139
|
return parts.length > 0 ? `${parts.join(', ')} only` : undefined;
|
|
201
140
|
}
|
|
202
|
-
// --- Stored-enum display labels ---
|
|
203
|
-
// What a screen shows for a stored enum value, keyed by the canonical union so a new member fails
|
|
204
|
-
// the build until it has its text. A screen renders the label, never the raw value.
|
|
205
|
-
/** Guild invite statuses (a Work's invited-users list and an invite conversation's status line). */
|
|
206
141
|
export const GUILD_INVITE_STATUS_LABELS = {
|
|
207
142
|
pending: 'Pending',
|
|
208
143
|
accepted: 'Accepted',
|
|
@@ -210,46 +145,39 @@ export const GUILD_INVITE_STATUS_LABELS = {
|
|
|
210
145
|
cancelled: 'Cancelled',
|
|
211
146
|
finalized: 'Finalized',
|
|
212
147
|
};
|
|
213
|
-
/** Commission proposal statuses (a Work's proposals table). */
|
|
214
148
|
export const COMMISSION_PROPOSAL_STATUS_LABELS = {
|
|
215
149
|
open: 'Open',
|
|
216
150
|
invited: 'Invited',
|
|
217
151
|
accepted: 'Accepted',
|
|
218
152
|
rejected: 'Rejected',
|
|
219
153
|
};
|
|
220
|
-
/** Chapter, track, and episode review statuses (the Tale, Tune, and Television section tables). */
|
|
221
154
|
export const HALL_SUB_ITEM_STATUS_LABELS = {
|
|
222
155
|
unpublished: 'unpublished',
|
|
223
156
|
pending_approval: 'Pending approval',
|
|
224
157
|
published: 'published',
|
|
225
158
|
};
|
|
226
|
-
/** Audition statuses (the audition page). */
|
|
227
159
|
export const AUDITION_STATUS_LABELS = {
|
|
228
160
|
open: 'Open',
|
|
229
161
|
closed: 'Closed',
|
|
230
162
|
pendingReview: 'PendingReview',
|
|
231
163
|
};
|
|
232
|
-
/** Work types (Work lists, the Work overview, the Works popover). */
|
|
233
164
|
export const WORK_PROJECT_TYPE_LABELS = {
|
|
234
165
|
Tales: 'Tales',
|
|
235
166
|
Tunes: 'Tunes',
|
|
236
167
|
Television: 'Television',
|
|
237
168
|
};
|
|
238
|
-
/** Invite source types, as the invite dialog names the context an invite was sent from. */
|
|
239
169
|
export const INVITE_SOURCE_TYPE_LABELS = {
|
|
240
170
|
standalone: 'standalone',
|
|
241
171
|
craftSkill: 'craftSkill',
|
|
242
172
|
commission: 'commission',
|
|
243
173
|
audition: 'audition',
|
|
244
174
|
};
|
|
245
|
-
/** Short-link target types (the admin Short Links list), in the target-type enum's order. */
|
|
246
175
|
export const SHORT_LINK_TARGET_TYPE_LABELS = {
|
|
247
176
|
audition: 'Audition',
|
|
248
177
|
'audition-entry': 'Audition entry',
|
|
249
178
|
commission: 'Commission',
|
|
250
179
|
'hall-library-item': 'Hall entry',
|
|
251
180
|
};
|
|
252
|
-
/** Support-thread statuses (a member's Messages, a Work's Correspondence, the admin browse list). */
|
|
253
181
|
export const ADMIN_DISPATCH_STATUS_LABELS = {
|
|
254
182
|
open: 'Open',
|
|
255
183
|
user_reply: 'User replied',
|
|
@@ -257,16 +185,9 @@ export const ADMIN_DISPATCH_STATUS_LABELS = {
|
|
|
257
185
|
closed_resolved: 'Resolved',
|
|
258
186
|
closed_unresolved: 'Closed',
|
|
259
187
|
};
|
|
260
|
-
/**
|
|
261
|
-
* Why a full admin cannot remove their own Admin standing: the server refuses it, and the roster
|
|
262
|
-
* panel withholds the control with the same words. Another full admin removes it.
|
|
263
|
-
*/
|
|
264
188
|
export const ADMIN_SELF_REVOKE_REFUSAL = "You can't revoke your own admin standing. Ask another full admin to do it.";
|
|
265
|
-
/** The marker beside the sender of a support-thread message sent with admin authority. */
|
|
266
189
|
export const ADMIN_SENDER_MARKER_LABEL = 'Admin';
|
|
267
|
-
/** The sender label on a support thread's system line (a close notice) in the admin preview. */
|
|
268
190
|
export const ADMIN_DISPATCH_SYSTEM_SENDER_LABEL = 'System';
|
|
269
|
-
/** Child-safety case work statuses (the safety case console's case rows and closed-case lookup). */
|
|
270
191
|
export const CHILD_SAFETY_CASE_WORK_STATUS_LABELS = {
|
|
271
192
|
new: 'new',
|
|
272
193
|
triaged: 'triaged',
|
|
@@ -276,7 +197,6 @@ export const CHILD_SAFETY_CASE_WORK_STATUS_LABELS = {
|
|
|
276
197
|
failed: 'failed',
|
|
277
198
|
operationallyResolved: 'operationallyResolved',
|
|
278
199
|
};
|
|
279
|
-
/** NCII case statuses (the safety case console's case rows and closed-case lookup). */
|
|
280
200
|
export const NCII_CASE_STATUS_LABELS = {
|
|
281
201
|
open: 'open',
|
|
282
202
|
removalInProgress: 'removalInProgress',
|