@lincyaw/kernel 1.0.0-rc.54 → 1.0.0-rc.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lincyaw/kernel",
3
- "version": "1.0.0-rc.54",
3
+ "version": "1.0.0-rc.55",
4
4
  "description": "Presmium's shared kernel: the IR and plugin contracts, the service registry, anchors and checks",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -95,12 +95,14 @@ export interface ClientCommentDraftMetadata {
95
95
  threadId?: string
96
96
  commentId?: string
97
97
  }
98
+ const PRODUCTION_DRAFT_KINDS = ['step-timing', 'caption-timing', 'recording-range', 'voice', 'media-clip'] as const
98
99
  export interface ClientProductionDraftMetadata {
99
100
  draft: string
100
- kind: 'step-timing' | 'caption-timing' | 'recording-range'
101
+ kind: typeof PRODUCTION_DRAFT_KINDS[number]
101
102
  stepId: string
102
103
  field?: 'minimumHoldMs' | 'trailingPauseMs'
103
104
  assetId?: string
105
+ clipId?: string
104
106
  targetAvailable: boolean
105
107
  requiresReview: boolean
106
108
  storage: 'tab' | 'memory'
@@ -228,7 +230,7 @@ const nullableComponentReference: Schema = { oneOf: [componentDraftReference, {
228
230
  const nullableCommentReference: Schema = { oneOf: [draftReference, { type: 'null' }] }
229
231
  const commentRestore = object({ composerId: id, expectedCurrent: nullableCommentReference })
230
232
  const cursor = object({ after: entity, token: digest })
231
- const productionMetadata = object({ draft: digest, kind: { enum: ['step-timing', 'caption-timing', 'recording-range'] }, stepId: entity, field: { enum: ['minimumHoldMs', 'trailingPauseMs'] }, assetId: entity, targetAvailable: bool, requiresReview: bool, storage: { enum: ['tab', 'memory'] }, discardable: bool }, ['draft', 'kind', 'stepId', 'targetAvailable', 'requiresReview', 'storage', 'discardable'])
233
+ const productionMetadata = object({ draft: digest, kind: { enum: [...PRODUCTION_DRAFT_KINDS] }, stepId: entity, field: { enum: ['minimumHoldMs', 'trailingPauseMs'] }, assetId: entity, clipId: entity, targetAvailable: bool, requiresReview: bool, storage: { enum: ['tab', 'memory'] }, discardable: bool }, ['draft', 'kind', 'stepId', 'targetAvailable', 'requiresReview', 'storage', 'discardable'])
232
234
  export const AUTHORING_CLIENT_ACTION_RESULT_SCHEMA: Schema = { oneOf: [
233
235
  object({ type: { const: 'body-drafts.inspect' }, family: { const: 'body' }, coverage: { enum: ['stored-and-session', 'partial'] }, token: digest,
234
236
  drafts: { type: 'array', maxItems: 10, items: bodyMetadata }, next: cursor }, ['type', 'family', 'coverage', 'token', 'drafts']),