@ttt-productions/ttt-core 0.79.126 → 0.79.127

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.
@@ -17,4 +17,5 @@ export * from './download-filename.js';
17
17
  export * from './edge-serving-contract.js';
18
18
  export * from './media-authority-co-write.js';
19
19
  export * from './publication/publication-args.js';
20
+ export * from './origin-lineage.js';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,+BAA+B,EAC/B,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,GAChC,MAAM,YAAY,CAAC;AACpB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,+BAA+B,EAC/B,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,GAChC,MAAM,YAAY,CAAC;AACpB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC"}
@@ -17,4 +17,5 @@ export * from './download-filename.js';
17
17
  export * from './edge-serving-contract.js';
18
18
  export * from './media-authority-co-write.js';
19
19
  export * from './publication/publication-args.js';
20
+ export * from './origin-lineage.js';
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,+BAA+B,GAKhC,MAAM,YAAY,CAAC;AACpB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC","sourcesContent":["export { FileOriginSchema, type FileOrigin } from './file-origin.js';\nexport {\n MentionSchema,\n MentionTypeSchema,\n rejectDuplicateMentionPlaceholders,\n MentionPlaceholderSchema,\n buildMentionPlaceholder,\n tokenizeMentionContent,\n validateMentionCorrespondence,\n refineMentionCorrespondence,\n SquareStreetzPostMentionSchema,\n SquareStreetzPostMentionsSchema,\n type Mention,\n type MentionType,\n type MentionContentSegment,\n type MentionCorrespondenceIssue,\n} from './atoms.js';\nexport * from './conversation-file-ref.js';\nexport * from './domain-events.js';\nexport * from './domain-events-user.js';\nexport * from './domain-events-work.js';\nexport * from './domain-events-social.js';\nexport * from './domain-events-admin.js';\nexport { TTT_MEDIA_SPECS } from './ttt-media-specs.js';\nexport * from './start-upload.js';\nexport * from './target-info.js';\nexport * from './hall-library-target-fields.js';\nexport * from './pending-media.js';\nexport * from './upload-tray-display.js';\nexport * from './media-asset-url.js';\nexport * from './download-filename.js';\nexport * from './edge-serving-contract.js';\nexport * from './media-authority-co-write.js';\nexport * from './publication/publication-args.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,+BAA+B,GAKhC,MAAM,YAAY,CAAC;AACpB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC","sourcesContent":["export { FileOriginSchema, type FileOrigin } from './file-origin.js';\nexport {\n MentionSchema,\n MentionTypeSchema,\n rejectDuplicateMentionPlaceholders,\n MentionPlaceholderSchema,\n buildMentionPlaceholder,\n tokenizeMentionContent,\n validateMentionCorrespondence,\n refineMentionCorrespondence,\n SquareStreetzPostMentionSchema,\n SquareStreetzPostMentionsSchema,\n type Mention,\n type MentionType,\n type MentionContentSegment,\n type MentionCorrespondenceIssue,\n} from './atoms.js';\nexport * from './conversation-file-ref.js';\nexport * from './domain-events.js';\nexport * from './domain-events-user.js';\nexport * from './domain-events-work.js';\nexport * from './domain-events-social.js';\nexport * from './domain-events-admin.js';\nexport { TTT_MEDIA_SPECS } from './ttt-media-specs.js';\nexport * from './start-upload.js';\nexport * from './target-info.js';\nexport * from './hall-library-target-fields.js';\nexport * from './pending-media.js';\nexport * from './upload-tray-display.js';\nexport * from './media-asset-url.js';\nexport * from './download-filename.js';\nexport * from './edge-serving-contract.js';\nexport * from './media-authority-co-write.js';\nexport * from './publication/publication-args.js';\nexport * from './origin-lineage.js';\n"]}
@@ -0,0 +1,13 @@
1
+ import type { MediaAssetOwnerType, MediaOriginLineageV1 } from '../doc-schemas/media-assets.js';
2
+ export interface RootOriginLineageInput {
3
+ mediaAssetId: string;
4
+ rootIngestId: string;
5
+ originatingUploaderUid: string;
6
+ originatingUploadEventId: string;
7
+ originalUploadCreatedAt: number;
8
+ rootSha256: string;
9
+ currentOwnerType: MediaAssetOwnerType;
10
+ currentOwnerId: string;
11
+ }
12
+ export declare function buildRootOriginLineage(input: RootOriginLineageInput): MediaOriginLineageV1;
13
+ //# sourceMappingURL=origin-lineage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"origin-lineage.d.ts","sourceRoot":"","sources":["../../src/media/origin-lineage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEhG,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,uBAAuB,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,oBAAoB,CAe1F"}
@@ -0,0 +1,17 @@
1
+ export function buildRootOriginLineage(input) {
2
+ const variantSha256s = {};
3
+ return {
4
+ lineageVersion: 1,
5
+ rootIngestId: input.rootIngestId,
6
+ rootAssetId: input.mediaAssetId,
7
+ originatingUploaderUid: input.originatingUploaderUid,
8
+ originatingUploadEventId: input.originatingUploadEventId,
9
+ originalUploadCreatedAt: input.originalUploadCreatedAt,
10
+ rootSha256: input.rootSha256,
11
+ variantSha256s,
12
+ copyReason: 'original',
13
+ currentOwnerType: input.currentOwnerType,
14
+ currentOwnerId: input.currentOwnerId,
15
+ };
16
+ }
17
+ //# sourceMappingURL=origin-lineage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"origin-lineage.js","sourceRoot":"","sources":["../../src/media/origin-lineage.ts"],"names":[],"mappings":"AAaA,MAAM,UAAU,sBAAsB,CAAC,KAA6B;IAClE,MAAM,cAAc,GAA2C,EAAE,CAAC;IAClE,OAAO;QACL,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,WAAW,EAAE,KAAK,CAAC,YAAY;QAC/B,sBAAsB,EAAE,KAAK,CAAC,sBAAsB;QACpD,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;QACxD,uBAAuB,EAAE,KAAK,CAAC,uBAAuB;QACtD,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,cAAc;QACd,UAAU,EAAE,UAAU;QACtB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,cAAc,EAAE,KAAK,CAAC,cAAc;KACrC,CAAC;AACJ,CAAC","sourcesContent":["import type { MediaAssetOwnerType, MediaOriginLineageV1 } from '../doc-schemas/media-assets.js';\n\nexport interface RootOriginLineageInput {\n mediaAssetId: string;\n rootIngestId: string;\n originatingUploaderUid: string;\n originatingUploadEventId: string;\n originalUploadCreatedAt: number;\n rootSha256: string;\n currentOwnerType: MediaAssetOwnerType;\n currentOwnerId: string;\n}\n\nexport function buildRootOriginLineage(input: RootOriginLineageInput): MediaOriginLineageV1 {\n const variantSha256s: MediaOriginLineageV1['variantSha256s'] = {};\n return {\n lineageVersion: 1,\n rootIngestId: input.rootIngestId,\n rootAssetId: input.mediaAssetId,\n originatingUploaderUid: input.originatingUploaderUid,\n originatingUploadEventId: input.originatingUploadEventId,\n originalUploadCreatedAt: input.originalUploadCreatedAt,\n rootSha256: input.rootSha256,\n variantSha256s,\n copyReason: 'original',\n currentOwnerType: input.currentOwnerType,\n currentOwnerId: input.currentOwnerId,\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttt-productions/ttt-core",
3
- "version": "0.79.126",
3
+ "version": "0.79.127",
4
4
  "description": "Core types, Firestore path constants, and shared constants for TTT Productions",
5
5
  "repository": {
6
6
  "type": "git",