@knocklabs/node 1.34.0 → 1.35.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/CHANGELOG.md +43 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/audiences.d.mts +19 -39
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +19 -39
- package/resources/audiences.d.ts.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/batch.d.mts +15 -252
- package/resources/messages/batch.d.mts.map +1 -1
- package/resources/messages/batch.d.ts +15 -252
- package/resources/messages/batch.d.ts.map +1 -1
- package/resources/messages/batch.js +4 -3
- package/resources/messages/batch.js.map +1 -1
- package/resources/messages/batch.mjs +4 -3
- package/resources/messages/batch.mjs.map +1 -1
- package/resources/messages/index.d.mts +2 -2
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +2 -2
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +215 -188
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +215 -188
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/objects/objects.d.mts +5 -2
- package/resources/objects/objects.d.mts.map +1 -1
- package/resources/objects/objects.d.ts +5 -2
- package/resources/objects/objects.d.ts.map +1 -1
- package/resources/objects/objects.js.map +1 -1
- package/resources/objects/objects.mjs.map +1 -1
- package/resources/recipients/channel-data.d.mts +4 -0
- package/resources/recipients/channel-data.d.mts.map +1 -1
- package/resources/recipients/channel-data.d.ts +4 -0
- package/resources/recipients/channel-data.d.ts.map +1 -1
- package/resources/recipients/preferences.d.mts +9 -4
- package/resources/recipients/preferences.d.mts.map +1 -1
- package/resources/recipients/preferences.d.ts +9 -4
- package/resources/recipients/preferences.d.ts.map +1 -1
- package/resources/recipients/preferences.js.map +1 -1
- package/resources/recipients/preferences.mjs.map +1 -1
- package/resources/users/bulk.d.mts +4 -2
- package/resources/users/bulk.d.mts.map +1 -1
- package/resources/users/bulk.d.ts +4 -2
- package/resources/users/bulk.d.ts.map +1 -1
- package/resources/users/feeds.d.mts +1 -58
- package/resources/users/feeds.d.mts.map +1 -1
- package/resources/users/feeds.d.ts +1 -58
- package/resources/users/feeds.d.ts.map +1 -1
- package/resources/users/guides.d.mts +190 -108
- package/resources/users/guides.d.mts.map +1 -1
- package/resources/users/guides.d.ts +190 -108
- package/resources/users/guides.d.ts.map +1 -1
- package/resources/users/guides.js +55 -43
- package/resources/users/guides.js.map +1 -1
- package/resources/users/guides.mjs +55 -43
- package/resources/users/guides.mjs.map +1 -1
- package/resources/users/index.d.mts +3 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +3 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js +3 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +1 -0
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/preference-center.d.mts +175 -0
- package/resources/users/preference-center.d.mts.map +1 -0
- package/resources/users/preference-center.d.ts +175 -0
- package/resources/users/preference-center.d.ts.map +1 -0
- package/resources/users/preference-center.js +41 -0
- package/resources/users/preference-center.js.map +1 -0
- package/resources/users/preference-center.mjs +37 -0
- package/resources/users/preference-center.mjs.map +1 -0
- package/resources/users/users.d.mts +47 -5
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +47 -5
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +4 -0
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +4 -0
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +16 -2
- package/src/resources/audiences.ts +21 -42
- package/src/resources/index.ts +8 -1
- package/src/resources/messages/batch.ts +16 -294
- package/src/resources/messages/index.ts +5 -1
- package/src/resources/messages/messages.ts +252 -218
- package/src/resources/objects/objects.ts +5 -2
- package/src/resources/recipients/channel-data.ts +5 -0
- package/src/resources/recipients/preferences.ts +9 -4
- package/src/resources/users/bulk.ts +4 -2
- package/src/resources/users/feeds.ts +1 -70
- package/src/resources/users/guides.ts +228 -120
- package/src/resources/users/index.ts +15 -3
- package/src/resources/users/preference-center.ts +224 -0
- package/src/resources/users/users.ts +78 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -122,9 +122,7 @@ export interface FeedListItemsResponse {
|
|
|
122
122
|
/**
|
|
123
123
|
* Content blocks that make up the feed item.
|
|
124
124
|
*/
|
|
125
|
-
blocks: Array<
|
|
126
|
-
FeedListItemsResponse.MessageInAppFeedContentBlock | FeedListItemsResponse.MessageInAppFeedButtonSetBlock
|
|
127
|
-
>;
|
|
125
|
+
blocks: Array<MessagesAPI.MessageInAppFeedContentBlock | MessagesAPI.MessageInAppFeedButtonSetBlock>;
|
|
128
126
|
|
|
129
127
|
/**
|
|
130
128
|
* Additional data associated with the feed item.
|
|
@@ -193,73 +191,6 @@ export interface FeedListItemsResponse {
|
|
|
193
191
|
}
|
|
194
192
|
|
|
195
193
|
export namespace FeedListItemsResponse {
|
|
196
|
-
/**
|
|
197
|
-
* A block in a message in an app feed.
|
|
198
|
-
*/
|
|
199
|
-
export interface MessageInAppFeedContentBlock {
|
|
200
|
-
/**
|
|
201
|
-
* The content of the block in a message in an app feed.
|
|
202
|
-
*/
|
|
203
|
-
content: string;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* The name of the block in a message in an app feed.
|
|
207
|
-
*/
|
|
208
|
-
name: string;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* The rendered HTML version of the content.
|
|
212
|
-
*/
|
|
213
|
-
rendered: string;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* The type of block in a message in an app feed.
|
|
217
|
-
*/
|
|
218
|
-
type: 'markdown' | 'text';
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* A button set block in a message in an app feed.
|
|
223
|
-
*/
|
|
224
|
-
export interface MessageInAppFeedButtonSetBlock {
|
|
225
|
-
/**
|
|
226
|
-
* A list of buttons in an in app feed message.
|
|
227
|
-
*/
|
|
228
|
-
buttons: Array<MessageInAppFeedButtonSetBlock.Button>;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The name of the button set in a message in an app feed.
|
|
232
|
-
*/
|
|
233
|
-
name: string;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* The type of block in a message in an app feed.
|
|
237
|
-
*/
|
|
238
|
-
type: 'button_set';
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export namespace MessageInAppFeedButtonSetBlock {
|
|
242
|
-
/**
|
|
243
|
-
* A button in an in app feed message.
|
|
244
|
-
*/
|
|
245
|
-
export interface Button {
|
|
246
|
-
/**
|
|
247
|
-
* The action to take when the button is clicked.
|
|
248
|
-
*/
|
|
249
|
-
action: string;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The label of the button.
|
|
253
|
-
*/
|
|
254
|
-
label: string;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The name of the button.
|
|
258
|
-
*/
|
|
259
|
-
name: string;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
194
|
/**
|
|
264
195
|
* Source information for the feed item.
|
|
265
196
|
*/
|
|
@@ -35,10 +35,9 @@ export class Guides extends APIResource {
|
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
38
|
-
* const
|
|
38
|
+
* const guideActionResponse =
|
|
39
39
|
* await client.users.guides.markMessageAsArchived(
|
|
40
40
|
* 'user_id',
|
|
41
|
-
* 'message_id',
|
|
42
41
|
* {
|
|
43
42
|
* channel_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
44
43
|
* guide_id: '7e9dc78c-b3b1-4127-a54e-71f1899b831a',
|
|
@@ -50,14 +49,10 @@ export class Guides extends APIResource {
|
|
|
50
49
|
*/
|
|
51
50
|
markMessageAsArchived(
|
|
52
51
|
userID: string,
|
|
53
|
-
messageID: string,
|
|
54
52
|
body: GuideMarkMessageAsArchivedParams,
|
|
55
53
|
options?: RequestOptions,
|
|
56
|
-
): APIPromise<
|
|
57
|
-
return this._client.put(path`/v1/users/${userID}/guides/messages
|
|
58
|
-
body,
|
|
59
|
-
...options,
|
|
60
|
-
});
|
|
54
|
+
): APIPromise<GuideActionResponse> {
|
|
55
|
+
return this._client.put(path`/v1/users/${userID}/guides/messages/archived`, { body, ...options });
|
|
61
56
|
}
|
|
62
57
|
|
|
63
58
|
/**
|
|
@@ -66,10 +61,9 @@ export class Guides extends APIResource {
|
|
|
66
61
|
*
|
|
67
62
|
* @example
|
|
68
63
|
* ```ts
|
|
69
|
-
* const
|
|
64
|
+
* const guideActionResponse =
|
|
70
65
|
* await client.users.guides.markMessageAsInteracted(
|
|
71
66
|
* 'user_id',
|
|
72
|
-
* 'message_id',
|
|
73
67
|
* {
|
|
74
68
|
* channel_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
75
69
|
* guide_id: '7e9dc78c-b3b1-4127-a54e-71f1899b831a',
|
|
@@ -81,14 +75,10 @@ export class Guides extends APIResource {
|
|
|
81
75
|
*/
|
|
82
76
|
markMessageAsInteracted(
|
|
83
77
|
userID: string,
|
|
84
|
-
messageID: string,
|
|
85
78
|
body: GuideMarkMessageAsInteractedParams,
|
|
86
79
|
options?: RequestOptions,
|
|
87
|
-
): APIPromise<
|
|
88
|
-
return this._client.put(path`/v1/users/${userID}/guides/messages
|
|
89
|
-
body,
|
|
90
|
-
...options,
|
|
91
|
-
});
|
|
80
|
+
): APIPromise<GuideActionResponse> {
|
|
81
|
+
return this._client.put(path`/v1/users/${userID}/guides/messages/interacted`, { body, ...options });
|
|
92
82
|
}
|
|
93
83
|
|
|
94
84
|
/**
|
|
@@ -97,45 +87,200 @@ export class Guides extends APIResource {
|
|
|
97
87
|
*
|
|
98
88
|
* @example
|
|
99
89
|
* ```ts
|
|
100
|
-
* const
|
|
101
|
-
* await client.users.guides.markMessageAsSeen(
|
|
102
|
-
* '
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* guide_id: '7e9dc78c-b3b1-4127-a54e-71f1899b831a',
|
|
107
|
-
* guide_key: 'tour_notification',
|
|
108
|
-
* guide_step_ref: 'lab_tours',
|
|
109
|
-
* content: {
|
|
110
|
-
* body: "Limited spots available for today's behind-the-scenes DNA extraction demonstration.",
|
|
111
|
-
* title: 'DNA Lab Tour Available',
|
|
112
|
-
* },
|
|
113
|
-
* data: {
|
|
114
|
-
* next_time: '14:30',
|
|
115
|
-
* spots_left: 8,
|
|
116
|
-
* tour_id: 'dna_lab_tour',
|
|
117
|
-
* },
|
|
118
|
-
* metadata: {
|
|
119
|
-
* cta: 'Reserve Spot',
|
|
120
|
-
* theme: 'amber',
|
|
121
|
-
* type: 'banner',
|
|
122
|
-
* },
|
|
123
|
-
* tenant: 'ingen_isla_nublar',
|
|
90
|
+
* const guideActionResponse =
|
|
91
|
+
* await client.users.guides.markMessageAsSeen('user_id', {
|
|
92
|
+
* channel_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
93
|
+
* content: {
|
|
94
|
+
* body: "Limited spots available for today's behind-the-scenes DNA extraction demonstration.",
|
|
95
|
+
* title: 'DNA Lab Tour Available',
|
|
124
96
|
* },
|
|
125
|
-
*
|
|
97
|
+
* guide_id: '7e9dc78c-b3b1-4127-a54e-71f1899b831a',
|
|
98
|
+
* guide_key: 'tour_notification',
|
|
99
|
+
* guide_step_ref: 'lab_tours',
|
|
100
|
+
* data: {
|
|
101
|
+
* next_time: '14:30',
|
|
102
|
+
* spots_left: 8,
|
|
103
|
+
* tour_id: 'dna_lab_tour',
|
|
104
|
+
* },
|
|
105
|
+
* tenant: 'ingen_isla_nublar',
|
|
106
|
+
* });
|
|
126
107
|
* ```
|
|
127
108
|
*/
|
|
128
109
|
markMessageAsSeen(
|
|
129
110
|
userID: string,
|
|
130
|
-
messageID: string,
|
|
131
111
|
body: GuideMarkMessageAsSeenParams,
|
|
132
112
|
options?: RequestOptions,
|
|
133
|
-
): APIPromise<
|
|
134
|
-
return this._client.put(path`/v1/users/${userID}/guides/messages
|
|
135
|
-
body,
|
|
136
|
-
...options,
|
|
137
|
-
});
|
|
113
|
+
): APIPromise<GuideActionResponse> {
|
|
114
|
+
return this._client.put(path`/v1/users/${userID}/guides/messages/seen`, { body, ...options });
|
|
138
115
|
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Resets the engagement state of a guide for a user, removing the guide's
|
|
119
|
+
* engagement log entry so the next interaction creates a fresh engagement.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```ts
|
|
123
|
+
* const guideActionResponse =
|
|
124
|
+
* await client.users.guides.resetGuideEngagements(
|
|
125
|
+
* 'user_id',
|
|
126
|
+
* { guide_key: 'tour_notification' },
|
|
127
|
+
* );
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
resetGuideEngagements(
|
|
131
|
+
userID: string,
|
|
132
|
+
body: GuideResetGuideEngagementsParams,
|
|
133
|
+
options?: RequestOptions,
|
|
134
|
+
): APIPromise<GuideActionResponse> {
|
|
135
|
+
return this._client.put(path`/v1/users/${userID}/guides/engagements/reset`, { body, ...options });
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Records that a guide has been unarchived, triggering any associated unarchived
|
|
140
|
+
* events.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```ts
|
|
144
|
+
* const guideActionResponse =
|
|
145
|
+
* await client.users.guides.unarchiveGuideMessage(
|
|
146
|
+
* 'user_id',
|
|
147
|
+
* { guide_key: 'tour_notification' },
|
|
148
|
+
* );
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
unarchiveGuideMessage(
|
|
152
|
+
userID: string,
|
|
153
|
+
body: GuideUnarchiveGuideMessageParams,
|
|
154
|
+
options?: RequestOptions,
|
|
155
|
+
): APIPromise<GuideActionResponse> {
|
|
156
|
+
return this._client.delete(path`/v1/users/${userID}/guides/messages/archived`, { body, ...options });
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* A response for a guide action.
|
|
162
|
+
*/
|
|
163
|
+
export interface GuideActionResponse {
|
|
164
|
+
/**
|
|
165
|
+
* The status of a guide's action.
|
|
166
|
+
*/
|
|
167
|
+
status: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* A request to mark a guide as archived.
|
|
172
|
+
*/
|
|
173
|
+
export interface GuideArchivedRequest {
|
|
174
|
+
/**
|
|
175
|
+
* The unique identifier for the channel.
|
|
176
|
+
*/
|
|
177
|
+
channel_id: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The unique identifier for the guide.
|
|
181
|
+
*/
|
|
182
|
+
guide_id: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The key of the guide.
|
|
186
|
+
*/
|
|
187
|
+
guide_key: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The step reference of the guide.
|
|
191
|
+
*/
|
|
192
|
+
guide_step_ref: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Whether the guide is final.
|
|
196
|
+
*/
|
|
197
|
+
is_final?: boolean;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* The tenant ID of the guide.
|
|
201
|
+
*/
|
|
202
|
+
tenant?: string;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Whether the guide bypasses its guide group's throttle settings. When true,
|
|
206
|
+
* archiving the guide does not open a new throttle window.
|
|
207
|
+
*/
|
|
208
|
+
unthrottled?: boolean;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* A request to mark a guide as interacted with.
|
|
213
|
+
*/
|
|
214
|
+
export interface GuideInteractedRequest {
|
|
215
|
+
/**
|
|
216
|
+
* The unique identifier for the channel.
|
|
217
|
+
*/
|
|
218
|
+
channel_id: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The unique identifier for the guide.
|
|
222
|
+
*/
|
|
223
|
+
guide_id: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The key of the guide.
|
|
227
|
+
*/
|
|
228
|
+
guide_key: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The step reference of the guide.
|
|
232
|
+
*/
|
|
233
|
+
guide_step_ref: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Metadata about the interaction.
|
|
237
|
+
*/
|
|
238
|
+
metadata?: { [key: string]: unknown };
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The tenant ID of the guide.
|
|
242
|
+
*/
|
|
243
|
+
tenant?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* A request to mark a guide as seen.
|
|
248
|
+
*/
|
|
249
|
+
export interface GuideSeenRequest {
|
|
250
|
+
/**
|
|
251
|
+
* The unique identifier for the channel.
|
|
252
|
+
*/
|
|
253
|
+
channel_id: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The content of the guide.
|
|
257
|
+
*/
|
|
258
|
+
content: { [key: string]: unknown };
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* The unique identifier for the guide.
|
|
262
|
+
*/
|
|
263
|
+
guide_id: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The key of the guide.
|
|
267
|
+
*/
|
|
268
|
+
guide_key: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The step reference of the guide.
|
|
272
|
+
*/
|
|
273
|
+
guide_step_ref: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The data of the guide.
|
|
277
|
+
*/
|
|
278
|
+
data?: { [key: string]: unknown };
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* The tenant ID of the guide.
|
|
282
|
+
*/
|
|
283
|
+
tenant?: string;
|
|
139
284
|
}
|
|
140
285
|
|
|
141
286
|
/**
|
|
@@ -327,36 +472,6 @@ export namespace GuideGetChannelResponse {
|
|
|
327
472
|
}
|
|
328
473
|
}
|
|
329
474
|
|
|
330
|
-
/**
|
|
331
|
-
* A response for a guide action.
|
|
332
|
-
*/
|
|
333
|
-
export interface GuideMarkMessageAsArchivedResponse {
|
|
334
|
-
/**
|
|
335
|
-
* The status of a guide's action.
|
|
336
|
-
*/
|
|
337
|
-
status: string;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* A response for a guide action.
|
|
342
|
-
*/
|
|
343
|
-
export interface GuideMarkMessageAsInteractedResponse {
|
|
344
|
-
/**
|
|
345
|
-
* The status of a guide's action.
|
|
346
|
-
*/
|
|
347
|
-
status: string;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* A response for a guide action.
|
|
352
|
-
*/
|
|
353
|
-
export interface GuideMarkMessageAsSeenResponse {
|
|
354
|
-
/**
|
|
355
|
-
* The status of a guide's action.
|
|
356
|
-
*/
|
|
357
|
-
status: string;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
475
|
export interface GuideGetChannelParams {
|
|
361
476
|
/**
|
|
362
477
|
* The data (JSON encoded object) to use for targeting and rendering guides.
|
|
@@ -395,30 +510,21 @@ export interface GuideMarkMessageAsArchivedParams {
|
|
|
395
510
|
*/
|
|
396
511
|
guide_step_ref: string;
|
|
397
512
|
|
|
398
|
-
/**
|
|
399
|
-
* The content of the guide.
|
|
400
|
-
*/
|
|
401
|
-
content?: { [key: string]: unknown };
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* The data of the guide.
|
|
405
|
-
*/
|
|
406
|
-
data?: { [key: string]: unknown };
|
|
407
|
-
|
|
408
513
|
/**
|
|
409
514
|
* Whether the guide is final.
|
|
410
515
|
*/
|
|
411
516
|
is_final?: boolean;
|
|
412
517
|
|
|
413
518
|
/**
|
|
414
|
-
* The
|
|
519
|
+
* The tenant ID of the guide.
|
|
415
520
|
*/
|
|
416
|
-
|
|
521
|
+
tenant?: string;
|
|
417
522
|
|
|
418
523
|
/**
|
|
419
|
-
*
|
|
524
|
+
* Whether the guide bypasses its guide group's throttle settings. When true,
|
|
525
|
+
* archiving the guide does not open a new throttle window.
|
|
420
526
|
*/
|
|
421
|
-
|
|
527
|
+
unthrottled?: boolean;
|
|
422
528
|
}
|
|
423
529
|
|
|
424
530
|
export interface GuideMarkMessageAsInteractedParams {
|
|
@@ -443,29 +549,14 @@ export interface GuideMarkMessageAsInteractedParams {
|
|
|
443
549
|
guide_step_ref: string;
|
|
444
550
|
|
|
445
551
|
/**
|
|
446
|
-
*
|
|
447
|
-
*/
|
|
448
|
-
content?: { [key: string]: unknown };
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* The data of the guide.
|
|
452
|
-
*/
|
|
453
|
-
data?: { [key: string]: unknown };
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Whether the guide is final.
|
|
457
|
-
*/
|
|
458
|
-
is_final?: boolean;
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* The metadata of the guide.
|
|
552
|
+
* Metadata about the interaction.
|
|
462
553
|
*/
|
|
463
554
|
metadata?: { [key: string]: unknown };
|
|
464
555
|
|
|
465
556
|
/**
|
|
466
557
|
* The tenant ID of the guide.
|
|
467
558
|
*/
|
|
468
|
-
tenant?: string
|
|
559
|
+
tenant?: string;
|
|
469
560
|
}
|
|
470
561
|
|
|
471
562
|
export interface GuideMarkMessageAsSeenParams {
|
|
@@ -474,6 +565,11 @@ export interface GuideMarkMessageAsSeenParams {
|
|
|
474
565
|
*/
|
|
475
566
|
channel_id: string;
|
|
476
567
|
|
|
568
|
+
/**
|
|
569
|
+
* The content of the guide.
|
|
570
|
+
*/
|
|
571
|
+
content: { [key: string]: unknown };
|
|
572
|
+
|
|
477
573
|
/**
|
|
478
574
|
* The unique identifier for the guide.
|
|
479
575
|
*/
|
|
@@ -490,40 +586,52 @@ export interface GuideMarkMessageAsSeenParams {
|
|
|
490
586
|
guide_step_ref: string;
|
|
491
587
|
|
|
492
588
|
/**
|
|
493
|
-
* The
|
|
589
|
+
* The data of the guide.
|
|
494
590
|
*/
|
|
495
|
-
|
|
591
|
+
data?: { [key: string]: unknown };
|
|
496
592
|
|
|
497
593
|
/**
|
|
498
|
-
* The
|
|
594
|
+
* The tenant ID of the guide.
|
|
499
595
|
*/
|
|
500
|
-
|
|
596
|
+
tenant?: string;
|
|
597
|
+
}
|
|
501
598
|
|
|
599
|
+
export interface GuideResetGuideEngagementsParams {
|
|
502
600
|
/**
|
|
503
|
-
*
|
|
601
|
+
* The key of the guide.
|
|
504
602
|
*/
|
|
505
|
-
|
|
603
|
+
guide_key: string;
|
|
506
604
|
|
|
507
605
|
/**
|
|
508
|
-
* The
|
|
606
|
+
* The tenant ID of the guide.
|
|
509
607
|
*/
|
|
510
|
-
|
|
608
|
+
tenant?: string;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export interface GuideUnarchiveGuideMessageParams {
|
|
612
|
+
/**
|
|
613
|
+
* The key of the guide.
|
|
614
|
+
*/
|
|
615
|
+
guide_key: string;
|
|
511
616
|
|
|
512
617
|
/**
|
|
513
618
|
* The tenant ID of the guide.
|
|
514
619
|
*/
|
|
515
|
-
tenant?: string
|
|
620
|
+
tenant?: string;
|
|
516
621
|
}
|
|
517
622
|
|
|
518
623
|
export declare namespace Guides {
|
|
519
624
|
export {
|
|
625
|
+
type GuideActionResponse as GuideActionResponse,
|
|
626
|
+
type GuideArchivedRequest as GuideArchivedRequest,
|
|
627
|
+
type GuideInteractedRequest as GuideInteractedRequest,
|
|
628
|
+
type GuideSeenRequest as GuideSeenRequest,
|
|
520
629
|
type GuideGetChannelResponse as GuideGetChannelResponse,
|
|
521
|
-
type GuideMarkMessageAsArchivedResponse as GuideMarkMessageAsArchivedResponse,
|
|
522
|
-
type GuideMarkMessageAsInteractedResponse as GuideMarkMessageAsInteractedResponse,
|
|
523
|
-
type GuideMarkMessageAsSeenResponse as GuideMarkMessageAsSeenResponse,
|
|
524
630
|
type GuideGetChannelParams as GuideGetChannelParams,
|
|
525
631
|
type GuideMarkMessageAsArchivedParams as GuideMarkMessageAsArchivedParams,
|
|
526
632
|
type GuideMarkMessageAsInteractedParams as GuideMarkMessageAsInteractedParams,
|
|
527
633
|
type GuideMarkMessageAsSeenParams as GuideMarkMessageAsSeenParams,
|
|
634
|
+
type GuideResetGuideEngagementsParams as GuideResetGuideEngagementsParams,
|
|
635
|
+
type GuideUnarchiveGuideMessageParams as GuideUnarchiveGuideMessageParams,
|
|
528
636
|
};
|
|
529
637
|
}
|
|
@@ -10,19 +10,31 @@ export {
|
|
|
10
10
|
} from './feeds';
|
|
11
11
|
export {
|
|
12
12
|
Guides,
|
|
13
|
+
type GuideActionResponse,
|
|
14
|
+
type GuideArchivedRequest,
|
|
15
|
+
type GuideInteractedRequest,
|
|
16
|
+
type GuideSeenRequest,
|
|
13
17
|
type GuideGetChannelResponse,
|
|
14
|
-
type GuideMarkMessageAsArchivedResponse,
|
|
15
|
-
type GuideMarkMessageAsInteractedResponse,
|
|
16
|
-
type GuideMarkMessageAsSeenResponse,
|
|
17
18
|
type GuideGetChannelParams,
|
|
18
19
|
type GuideMarkMessageAsArchivedParams,
|
|
19
20
|
type GuideMarkMessageAsInteractedParams,
|
|
20
21
|
type GuideMarkMessageAsSeenParams,
|
|
22
|
+
type GuideResetGuideEngagementsParams,
|
|
23
|
+
type GuideUnarchiveGuideMessageParams,
|
|
21
24
|
} from './guides';
|
|
25
|
+
export {
|
|
26
|
+
PreferenceCenter,
|
|
27
|
+
type PreferenceCenterBrandingConfig,
|
|
28
|
+
type PreferenceCenterGenerateSignedURLResponse,
|
|
29
|
+
type PreferenceCenterGetConfigResponse,
|
|
30
|
+
} from './preference-center';
|
|
22
31
|
export {
|
|
23
32
|
Users,
|
|
24
33
|
type IdentifyUserRequest,
|
|
25
34
|
type InlineIdentifyUserRequest,
|
|
35
|
+
type ListSchedulesResponse,
|
|
36
|
+
type ListSubscriptionsResponse,
|
|
37
|
+
type PreferenceSetCommercialSubscribedSetting,
|
|
26
38
|
type User,
|
|
27
39
|
type UserListPreferencesResponse,
|
|
28
40
|
type UserUpdateParams,
|