@company-semantics/contracts 0.31.1 → 0.32.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": "0.31.1",
3
+ "version": "0.32.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -138,6 +138,8 @@ export type {
138
138
  AddPartResult,
139
139
  // Preview types (Phase 3)
140
140
  PreviewArtifactKind,
141
+ IntegrationProvider,
142
+ IntegrationArtifactContent,
141
143
  PreviewArtifact,
142
144
  PreviewData,
143
145
  PreviewPart,
@@ -21,6 +21,8 @@ export type {
21
21
  // Preview types
22
22
  export type {
23
23
  PreviewArtifactKind,
24
+ IntegrationProvider,
25
+ IntegrationArtifactContent,
24
26
  PreviewArtifact,
25
27
  PreviewData,
26
28
  PreviewPart,
@@ -28,6 +28,28 @@ export type PreviewArtifactKind =
28
28
  | 'notification' // Notification to user/team
29
29
  | 'task' // Task creation
30
30
  | 'calendar' // Calendar event
31
+ | 'integration' // Integration connect/disconnect action
32
+
33
+ /**
34
+ * Integration provider types.
35
+ */
36
+ export type IntegrationProvider = 'slack' | 'google' | 'zoom'
37
+
38
+ /**
39
+ * Content structure for integration artifacts.
40
+ *
41
+ * Used when kind='integration' to define the action payload.
42
+ */
43
+ export interface IntegrationArtifactContent {
44
+ /** The integration action to perform */
45
+ action: 'connect' | 'disconnect'
46
+ /** Target provider */
47
+ provider: IntegrationProvider
48
+ /** Connection ID for disconnect (required for disconnect) */
49
+ connectionId?: string
50
+ /** Workspace ID for multi-workspace providers */
51
+ workspaceId?: string
52
+ }
31
53
 
32
54
  /**
33
55
  * A single artifact within a preview.