vessels-sdk 0.1.2 → 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 +1 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
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