cogito-client 1.0.14 → 1.0.16

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare interface CogitoAgent {
10
10
  [k: string]: unknown;
11
11
  }
12
12
 
13
- export declare interface CogitoApprovalCardSurfaceState {
13
+ export declare interface CogitoApprovalCardSurface {
14
14
  type: "approval-card";
15
15
  state?: {
16
16
  title?: string;
@@ -35,6 +35,8 @@ export declare interface CogitoAssistantMessage {
35
35
  content: string;
36
36
  }
37
37
 
38
+ export declare type CogitoBuiltInSurface = CogitoApprovalCardSurface;
39
+
38
40
  export declare interface CogitoConfig {
39
41
  agents?: CogitoAgent[];
40
42
  [k: string]: unknown;
@@ -87,7 +89,7 @@ export declare interface CogitoReadyPayload {
87
89
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
88
90
  * and run json-schema-to-typescript to regenerate this file.
89
91
  */
90
- export declare type CogitoSchema = CogitoConfig | CogitoMessage | CogitoConversation | CogitoPayload | CogitoSurfaceDefinition | CogitoSurfaceUpdate | CogitoSurfaceState;
92
+ export declare type CogitoSchema = CogitoConfig | CogitoMessage | CogitoConversation | CogitoPayload | CogitoSurfaceDefinition | CogitoSurfaceUpdate | CogitoBuiltInSurface;
91
93
 
92
94
  export declare interface CogitoSurfaceActionPayload {
93
95
  type: "surface-action";
@@ -151,8 +153,6 @@ export declare class CogitoSurfaceServer {
151
153
  static updateStream(updates: () => AsyncGenerator<CogitoSurfaceUpdate, void, unknown>): ReadableStream;
152
154
  }
153
155
 
154
- export declare type CogitoSurfaceState = CogitoApprovalCardSurfaceState;
155
-
156
156
  export declare interface CogitoSurfaceUpdate {
157
157
  /**
158
158
  * The state that the surface will use to render itself
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogito-client",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"