@company-semantics/contracts 62.7.0 → 62.9.0

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": "@company-semantics/contracts",
3
- "version": "62.7.0",
3
+ "version": "62.9.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = '52d89a463432' as const;
3
- export const SPEC_HASH_FULL = '52d89a4634328ae80200c221d6aa25d8c34c9d09208a2c460d82a523ec79144d' as const;
2
+ export const SPEC_HASH = '71dd78eccef8' as const;
3
+ export const SPEC_HASH_FULL = '71dd78eccef89c2b48c1ac446802164817d850a8c3a5680a3096956f17e59f08' as const;
@@ -4298,6 +4298,11 @@ export interface components {
4298
4298
  kind: "structure-review";
4299
4299
  /** Format: uuid */
4300
4300
  proposalId: string;
4301
+ } | {
4302
+ /** @constant */
4303
+ kind: "workflow";
4304
+ /** Format: uuid */
4305
+ workflowId: string;
4301
4306
  };
4302
4307
  } | {
4303
4308
  /** @constant */
@@ -4326,6 +4331,39 @@ export interface components {
4326
4331
  kind: "structure-review";
4327
4332
  /** Format: uuid */
4328
4333
  proposalId: string;
4334
+ } | {
4335
+ /** @constant */
4336
+ kind: "workflow";
4337
+ /** Format: uuid */
4338
+ workflowId: string;
4339
+ };
4340
+ } | {
4341
+ /** @constant */
4342
+ trigger: "launch";
4343
+ id?: string;
4344
+ message?: unknown;
4345
+ messageId?: unknown;
4346
+ messages?: unknown;
4347
+ runtimeProfile?: string;
4348
+ pageContext?: {
4349
+ route: string;
4350
+ /** @enum {string} */
4351
+ view: "chat" | "chats" | "company-md" | "execution-detail" | "internal-admin" | "org-settings" | "settings" | "teams" | "teamwork" | "teamwork-member" | "timeline" | "upgrade" | "user-md" | "work";
4352
+ /** @enum {string} */
4353
+ scope: "none" | "me" | "org";
4354
+ entity?: {
4355
+ /** @enum {string} */
4356
+ type: "document" | "person" | "chat" | "execution" | "work-item";
4357
+ id: string;
4358
+ };
4359
+ };
4360
+ /** @enum {string} */
4361
+ origin?: "user" | "proactive";
4362
+ launch: {
4363
+ /** @constant */
4364
+ kind: "workflow";
4365
+ /** Format: uuid */
4366
+ workflowId: string;
4329
4367
  };
4330
4368
  };
4331
4369
  ProactiveChatResolution: {
@@ -31,14 +31,14 @@ describe("ingestion registry", () => {
31
31
  it("derives INGEST_ACCEPT from every extension in registry order", () => {
32
32
  expect(INGEST_ACCEPT).toBe(acceptExtensions().join(","));
33
33
  expect(INGEST_ACCEPT).toBe(
34
- ".txt,.md,.html,.htm,.csv,.rtf,.docx,.doc,.pptx,.xlsx,.odt,.pdf,.png,.jpg,.jpeg,.webp,.gif,.heic,.svg,.drawio,.mp3,.m4a,.wav,.aac,.mp4,.m4v,.mov",
34
+ ".txt,.md,.html,.htm,.csv,.rtf,.docx,.doc,.pptx,.ppt,.xlsx,.xls,.odt,.ods,.odp,.epub,.pdf,.png,.jpg,.jpeg,.webp,.gif,.heic,.svg,.drawio,.mp3,.m4a,.wav,.aac,.mp4,.m4v,.mov",
35
35
  );
36
36
  });
37
37
 
38
38
  it("derives SUPPORTED_LABEL from the unique group labels", () => {
39
39
  expect(SUPPORTED_LABEL).toBe(`Supported: ${humanLabels().join(", ")}`);
40
40
  expect(SUPPORTED_LABEL).toBe(
41
- "Supported: Text, Markdown, HTML, CSV, RTF, Word, PowerPoint, Excel, OpenDocument, PDF, Image, Diagram, Audio, Video",
41
+ "Supported: Text, Markdown, HTML, CSV, RTF, Word, PowerPoint, Excel, OpenDocument, EPUB, PDF, Image, Diagram, Audio, Video",
42
42
  );
43
43
  });
44
44
  });
@@ -67,18 +67,48 @@ export const INGESTION_FORMATS: readonly IngestionFormat[] = [
67
67
  label: "PowerPoint",
68
68
  maxBytes: 50_000_000,
69
69
  },
70
+ {
71
+ mime: "application/vnd.ms-powerpoint",
72
+ extensions: [".ppt"],
73
+ label: "PowerPoint",
74
+ maxBytes: 50_000_000,
75
+ },
70
76
  {
71
77
  mime: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
72
78
  extensions: [".xlsx"],
73
79
  label: "Excel",
74
80
  maxBytes: 50_000_000,
75
81
  },
82
+ {
83
+ mime: "application/vnd.ms-excel",
84
+ extensions: [".xls"],
85
+ label: "Excel",
86
+ maxBytes: 50_000_000,
87
+ },
76
88
  {
77
89
  mime: "application/vnd.oasis.opendocument.text",
78
90
  extensions: [".odt"],
79
91
  label: "OpenDocument",
80
92
  maxBytes: 25_000_000,
81
93
  },
94
+ {
95
+ mime: "application/vnd.oasis.opendocument.spreadsheet",
96
+ extensions: [".ods"],
97
+ label: "OpenDocument",
98
+ maxBytes: 50_000_000,
99
+ },
100
+ {
101
+ mime: "application/vnd.oasis.opendocument.presentation",
102
+ extensions: [".odp"],
103
+ label: "OpenDocument",
104
+ maxBytes: 50_000_000,
105
+ },
106
+ {
107
+ mime: "application/epub+zip",
108
+ extensions: [".epub"],
109
+ label: "EPUB",
110
+ maxBytes: 25_000_000,
111
+ },
82
112
  {
83
113
  mime: "application/pdf",
84
114
  extensions: [".pdf"],