vessels-sdk 0.1.1 → 0.1.3

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/dist/index.cjs CHANGED
@@ -97,6 +97,7 @@ var Vessels = class {
97
97
  messageId: e.message_id,
98
98
  interactionType: e.interaction_type,
99
99
  response: e.response,
100
+ interactionMetadata: e.interaction_metadata ?? null,
100
101
  user: e.user ?? null
101
102
  };
102
103
  }
package/dist/index.d.cts CHANGED
@@ -41,6 +41,7 @@ interface InteractionResponseEvent {
41
41
  messageId: string;
42
42
  interactionType: string;
43
43
  response: Record<string, unknown>;
44
+ interactionMetadata: Record<string, unknown> | null;
44
45
  user: {
45
46
  id: string;
46
47
  email: string;
@@ -72,6 +73,7 @@ declare class Vessels {
72
73
  approveLabel?: string;
73
74
  rejectLabel?: string;
74
75
  reasonRequired?: boolean;
76
+ metadata?: Record<string, unknown>;
75
77
  }): _vessels_types.ApprovalInteraction;
76
78
  choice(opts: {
77
79
  prompt: string;
@@ -81,6 +83,7 @@ declare class Vessels {
81
83
  }>;
82
84
  allowCustom?: boolean;
83
85
  customPlaceholder?: string;
86
+ metadata?: Record<string, unknown>;
84
87
  }): _vessels_types.ChoiceInteraction;
85
88
  checklist(opts: {
86
89
  prompt: string;
@@ -91,12 +94,14 @@ declare class Vessels {
91
94
  }>;
92
95
  minSelections?: number;
93
96
  submitLabel?: string;
97
+ metadata?: Record<string, unknown>;
94
98
  }): _vessels_types.ChecklistInteraction;
95
99
  textInput(opts: {
96
100
  prompt: string;
97
101
  placeholder?: string;
98
102
  multiline?: boolean;
99
103
  submitLabel?: string;
104
+ metadata?: Record<string, unknown>;
100
105
  }): _vessels_types.TextInputInteraction;
101
106
  confirmPreview(opts: {
102
107
  prompt: string;
@@ -105,6 +110,7 @@ declare class Vessels {
105
110
  approveLabel?: string;
106
111
  rejectLabel?: string;
107
112
  reasonRequiredOnReject?: boolean;
113
+ metadata?: Record<string, unknown>;
108
114
  }): _vessels_types.ConfirmPreviewInteraction;
109
115
  poll(options?: PollOptions): Promise<PollResponse>;
110
116
  verifyWebhook(body: string, signature: string, webhookSecret: string): boolean;
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ interface InteractionResponseEvent {
41
41
  messageId: string;
42
42
  interactionType: string;
43
43
  response: Record<string, unknown>;
44
+ interactionMetadata: Record<string, unknown> | null;
44
45
  user: {
45
46
  id: string;
46
47
  email: string;
@@ -72,6 +73,7 @@ declare class Vessels {
72
73
  approveLabel?: string;
73
74
  rejectLabel?: string;
74
75
  reasonRequired?: boolean;
76
+ metadata?: Record<string, unknown>;
75
77
  }): _vessels_types.ApprovalInteraction;
76
78
  choice(opts: {
77
79
  prompt: string;
@@ -81,6 +83,7 @@ declare class Vessels {
81
83
  }>;
82
84
  allowCustom?: boolean;
83
85
  customPlaceholder?: string;
86
+ metadata?: Record<string, unknown>;
84
87
  }): _vessels_types.ChoiceInteraction;
85
88
  checklist(opts: {
86
89
  prompt: string;
@@ -91,12 +94,14 @@ declare class Vessels {
91
94
  }>;
92
95
  minSelections?: number;
93
96
  submitLabel?: string;
97
+ metadata?: Record<string, unknown>;
94
98
  }): _vessels_types.ChecklistInteraction;
95
99
  textInput(opts: {
96
100
  prompt: string;
97
101
  placeholder?: string;
98
102
  multiline?: boolean;
99
103
  submitLabel?: string;
104
+ metadata?: Record<string, unknown>;
100
105
  }): _vessels_types.TextInputInteraction;
101
106
  confirmPreview(opts: {
102
107
  prompt: string;
@@ -105,6 +110,7 @@ declare class Vessels {
105
110
  approveLabel?: string;
106
111
  rejectLabel?: string;
107
112
  reasonRequiredOnReject?: boolean;
113
+ metadata?: Record<string, unknown>;
108
114
  }): _vessels_types.ConfirmPreviewInteraction;
109
115
  poll(options?: PollOptions): Promise<PollResponse>;
110
116
  verifyWebhook(body: string, signature: string, webhookSecret: string): boolean;
package/dist/index.js CHANGED
@@ -95,6 +95,7 @@ var Vessels = class {
95
95
  messageId: e.message_id,
96
96
  interactionType: e.interaction_type,
97
97
  response: e.response,
98
+ interactionMetadata: e.interaction_metadata ?? null,
98
99
  user: e.user ?? null
99
100
  };
100
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vessels-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Let your agent reach you. Official Vessels SDK.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "keywords": ["ai", "agents", "vessels", "llm", "notifications"],
24
24
  "license": "MIT",
25
+ "dependencies": {
26
+ "zod": "^3.22"
27
+ },
25
28
  "devDependencies": {
26
29
  "@types/node": "^25.5.2",
30
+ "@vessels/types": "workspace:*",
27
31
  "tsup": "^8.5.1",
28
32
  "typescript": "^5"
29
- },
30
- "dependencies": {
31
- "zod": "^3.22",
32
- "@vessels/types": "workspace:*"
33
33
  }
34
34
  }