@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 +1 -1
- package/src/index.ts +2 -0
- package/src/message-parts/index.ts +2 -0
- package/src/message-parts/preview.ts +22 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -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.
|