commandbar 1.8.7 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/{internal/src/client → commandbar/src/shared/services/analytics}/EventHandler.d.ts +51 -15
- package/build/commandbar/src/shared/services/analytics/types.d.ts +77 -0
- package/build/commandbar-js/src/index.d.ts +2 -2
- package/build/commandbar-js/src/index.js +1 -1
- package/build/internal/src/client/AddContextOptions.d.ts +8 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +70 -19
- package/build/internal/src/client/CommandBarProxySDK.d.ts +3 -3
- package/build/internal/src/client/CommandBarSDK.d.ts +34 -18
- package/build/internal/src/client/SDKConfig.d.ts +3 -2
- package/build/internal/src/client/globals.d.ts +6 -0
- package/build/internal/src/client/symbols.d.ts +13 -6
- package/build/internal/src/middleware/CommandFromClientV.d.ts +88 -18
- package/build/internal/src/middleware/IRecordSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +320 -22
- package/build/internal/src/middleware/{ResourceSettingsV.d.ts → RecordSettingsV.d.ts} +2 -2
- package/build/internal/src/middleware/additionalResource.d.ts +270 -27
- package/build/internal/src/middleware/billing.d.ts +31 -0
- package/build/internal/src/middleware/chat.d.ts +12933 -0
- package/build/internal/src/middleware/checklist.d.ts +589 -70
- package/build/internal/src/middleware/command.d.ts +5433 -677
- package/build/internal/src/middleware/detailPreview.d.ts +12 -1
- package/build/internal/src/middleware/endUser.d.ts +132 -0
- package/build/internal/src/middleware/entityChanges.d.ts +17 -0
- package/build/internal/src/middleware/experienceTemplate.d.ts +59 -0
- package/build/internal/src/middleware/experiencesSearch.d.ts +3579 -0
- package/build/internal/src/middleware/flags.d.ts +20 -0
- package/build/internal/src/middleware/generics.d.ts +12 -11
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +63 -8
- package/build/internal/src/middleware/helpDocsSearch.d.ts +2540 -0
- package/build/internal/src/middleware/helpHub.d.ts +26 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +174 -16
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +144 -2
- package/build/internal/src/middleware/helpers/copilotPersonality.d.ts +12 -0
- package/build/internal/src/middleware/helpers/goals.d.ts +4 -2
- package/build/internal/src/middleware/helpers/pushTrigger.d.ts +28 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +318 -50
- package/build/internal/src/middleware/network.d.ts +27 -3
- package/build/internal/src/middleware/nudge.d.ts +2220 -91
- package/build/internal/src/middleware/organization.d.ts +2289 -152
- package/build/internal/src/middleware/organizationSettings.d.ts +435 -20
- package/build/internal/src/middleware/profile.d.ts +2 -0
- package/build/internal/src/middleware/recommendationSet.d.ts +489 -1007
- package/build/internal/src/middleware/releases.d.ts +1 -1
- package/build/internal/src/middleware/theme.d.ts +425 -0
- package/build/internal/src/middleware/types.d.ts +88 -34
- package/build/internal/src/middleware/user.d.ts +1 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +5 -3
- package/build/internal/src/util/operatingSystem.d.ts +11 -0
- package/build/internal/src/util/sentry.d.ts +23 -0
- package/package.json +3 -3
- package/src/index.ts +2 -2
- package/src/init.ts +11 -6
- package/src/snippet.ts +2 -2
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
- package/build/internal/src/client/SentryReporter.d.ts +0 -63
- package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
- package/build/internal/src/middleware/chatAnalytics.d.ts +0 -2601
- package/build/internal/src/middleware/dashboardFlags.d.ts +0 -9
- package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
- package/build/internal/src/middleware/qaPair.d.ts +0 -676
- package/build/internal/src/util/integrations.d.ts +0 -1
@@ -10,14 +10,19 @@ export declare const AdditionalResourceV: t.IntersectionC<[t.TypeC<{}>, t.Inters
|
|
10
10
|
label: t.StringC;
|
11
11
|
action: t.UnionC<[t.TypeC<{
|
12
12
|
type: t.LiteralC<"execute_command">;
|
13
|
-
meta: t.TypeC<{
|
13
|
+
meta: t.IntersectionC<[t.TypeC<{
|
14
14
|
command: t.StringC;
|
15
|
-
}
|
15
|
+
}>, t.PartialC<{
|
16
|
+
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>;
|
17
|
+
}>]>;
|
16
18
|
}>, t.TypeC<{
|
17
19
|
type: t.LiteralC<"no_action">;
|
18
20
|
}>, t.TypeC<{
|
19
21
|
type: t.LiteralC<"click">;
|
20
22
|
value: t.StringC;
|
23
|
+
}>, t.TypeC<{
|
24
|
+
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
25
|
+
value: t.ArrayC<t.StringC>;
|
21
26
|
}>, t.IntersectionC<[t.TypeC<{
|
22
27
|
type: t.LiteralC<"link">;
|
23
28
|
value: t.StringC;
|
@@ -26,10 +31,32 @@ export declare const AdditionalResourceV: t.IntersectionC<[t.TypeC<{}>, t.Inters
|
|
26
31
|
}>]>, t.TypeC<{
|
27
32
|
type: t.LiteralC<"open_chat">;
|
28
33
|
meta: t.TypeC<{
|
29
|
-
type: t.
|
34
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
|
30
35
|
}>;
|
31
36
|
}>, t.TypeC<{
|
32
37
|
type: t.LiteralC<"dismiss">;
|
38
|
+
}>, t.TypeC<{
|
39
|
+
type: t.LiteralC<"snooze">;
|
40
|
+
}>, t.TypeC<{
|
41
|
+
type: t.LiteralC<"questlist">;
|
42
|
+
value: t.NumberC;
|
43
|
+
}>, t.TypeC<{
|
44
|
+
type: t.LiteralC<"nudge">;
|
45
|
+
value: t.NumberC;
|
46
|
+
}>, t.TypeC<{
|
47
|
+
type: t.LiteralC<"go_to_step">;
|
48
|
+
value: t.NumberC;
|
49
|
+
}>, t.TypeC<{
|
50
|
+
type: t.LiteralC<"step_back">;
|
51
|
+
}>, t.IntersectionC<[t.TypeC<{
|
52
|
+
type: t.LiteralC<"open_bar">;
|
53
|
+
}>, t.PartialC<{
|
54
|
+
value: t.StringC;
|
55
|
+
categoryFilter: t.NumberC;
|
56
|
+
}>]>, t.TypeC<{
|
57
|
+
type: t.LiteralC<"open_helphub">;
|
58
|
+
}>, t.TypeC<{
|
59
|
+
type: t.LiteralC<"open_copilot">;
|
33
60
|
}>]>;
|
34
61
|
show_as_primary_cta: t.BooleanC;
|
35
62
|
}>, t.PartialC<{}>]>]>;
|
@@ -44,14 +71,19 @@ export declare const BatchAdditionalResourceResponseV: t.TypeC<{
|
|
44
71
|
label: t.StringC;
|
45
72
|
action: t.UnionC<[t.TypeC<{
|
46
73
|
type: t.LiteralC<"execute_command">;
|
47
|
-
meta: t.TypeC<{
|
74
|
+
meta: t.IntersectionC<[t.TypeC<{
|
48
75
|
command: t.StringC;
|
49
|
-
}
|
76
|
+
}>, t.PartialC<{
|
77
|
+
type: t.UnionC<[t.LiteralC<"action">, t.LiteralC<"link">, t.LiteralC<"helpdoc">, t.LiteralC<"video">]>;
|
78
|
+
}>]>;
|
50
79
|
}>, t.TypeC<{
|
51
80
|
type: t.LiteralC<"no_action">;
|
52
81
|
}>, t.TypeC<{
|
53
82
|
type: t.LiteralC<"click">;
|
54
83
|
value: t.StringC;
|
84
|
+
}>, t.TypeC<{
|
85
|
+
type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
|
86
|
+
value: t.ArrayC<t.StringC>;
|
55
87
|
}>, t.IntersectionC<[t.TypeC<{
|
56
88
|
type: t.LiteralC<"link">;
|
57
89
|
value: t.StringC;
|
@@ -60,10 +92,32 @@ export declare const BatchAdditionalResourceResponseV: t.TypeC<{
|
|
60
92
|
}>]>, t.TypeC<{
|
61
93
|
type: t.LiteralC<"open_chat">;
|
62
94
|
meta: t.TypeC<{
|
63
|
-
type: t.
|
95
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
|
64
96
|
}>;
|
65
97
|
}>, t.TypeC<{
|
66
98
|
type: t.LiteralC<"dismiss">;
|
99
|
+
}>, t.TypeC<{
|
100
|
+
type: t.LiteralC<"snooze">;
|
101
|
+
}>, t.TypeC<{
|
102
|
+
type: t.LiteralC<"questlist">;
|
103
|
+
value: t.NumberC;
|
104
|
+
}>, t.TypeC<{
|
105
|
+
type: t.LiteralC<"nudge">;
|
106
|
+
value: t.NumberC;
|
107
|
+
}>, t.TypeC<{
|
108
|
+
type: t.LiteralC<"go_to_step">;
|
109
|
+
value: t.NumberC;
|
110
|
+
}>, t.TypeC<{
|
111
|
+
type: t.LiteralC<"step_back">;
|
112
|
+
}>, t.IntersectionC<[t.TypeC<{
|
113
|
+
type: t.LiteralC<"open_bar">;
|
114
|
+
}>, t.PartialC<{
|
115
|
+
value: t.StringC;
|
116
|
+
categoryFilter: t.NumberC;
|
117
|
+
}>]>, t.TypeC<{
|
118
|
+
type: t.LiteralC<"open_helphub">;
|
119
|
+
}>, t.TypeC<{
|
120
|
+
type: t.LiteralC<"open_copilot">;
|
67
121
|
}>]>;
|
68
122
|
show_as_primary_cta: t.BooleanC;
|
69
123
|
}>, t.PartialC<{}>]>]>>;
|
@@ -80,12 +134,15 @@ export declare const decode: (data: any) => {} & {
|
|
80
134
|
type: "execute_command";
|
81
135
|
meta: {
|
82
136
|
command: string;
|
137
|
+
} & {
|
138
|
+
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
83
139
|
};
|
84
|
-
} | {
|
85
|
-
type: "no_action";
|
86
140
|
} | {
|
87
141
|
type: "click";
|
88
142
|
value: string;
|
143
|
+
} | {
|
144
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
145
|
+
value: string[];
|
89
146
|
} | ({
|
90
147
|
type: "link";
|
91
148
|
value: string;
|
@@ -94,10 +151,34 @@ export declare const decode: (data: any) => {} & {
|
|
94
151
|
}) | {
|
95
152
|
type: "open_chat";
|
96
153
|
meta: {
|
97
|
-
type:
|
154
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
98
155
|
};
|
99
156
|
} | {
|
100
157
|
type: "dismiss";
|
158
|
+
} | {
|
159
|
+
type: "snooze";
|
160
|
+
} | {
|
161
|
+
type: "questlist";
|
162
|
+
value: number;
|
163
|
+
} | {
|
164
|
+
type: "step_back";
|
165
|
+
} | {
|
166
|
+
type: "nudge";
|
167
|
+
value: number;
|
168
|
+
} | {
|
169
|
+
type: "go_to_step";
|
170
|
+
value: number;
|
171
|
+
} | ({
|
172
|
+
type: "open_bar";
|
173
|
+
} & {
|
174
|
+
value?: string | undefined;
|
175
|
+
categoryFilter?: number | undefined;
|
176
|
+
}) | {
|
177
|
+
type: "open_helphub";
|
178
|
+
} | {
|
179
|
+
type: "open_copilot";
|
180
|
+
} | {
|
181
|
+
type: "no_action";
|
101
182
|
};
|
102
183
|
show_as_primary_cta: boolean;
|
103
184
|
} & {};
|
@@ -113,12 +194,15 @@ export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((er
|
|
113
194
|
type: "execute_command";
|
114
195
|
meta: {
|
115
196
|
command: string;
|
197
|
+
} & {
|
198
|
+
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
116
199
|
};
|
117
|
-
} | {
|
118
|
-
type: "no_action";
|
119
200
|
} | {
|
120
201
|
type: "click";
|
121
202
|
value: string;
|
203
|
+
} | {
|
204
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
205
|
+
value: string[];
|
122
206
|
} | ({
|
123
207
|
type: "link";
|
124
208
|
value: string;
|
@@ -127,10 +211,34 @@ export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((er
|
|
127
211
|
}) | {
|
128
212
|
type: "open_chat";
|
129
213
|
meta: {
|
130
|
-
type:
|
214
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
131
215
|
};
|
132
216
|
} | {
|
133
217
|
type: "dismiss";
|
218
|
+
} | {
|
219
|
+
type: "snooze";
|
220
|
+
} | {
|
221
|
+
type: "questlist";
|
222
|
+
value: number;
|
223
|
+
} | {
|
224
|
+
type: "step_back";
|
225
|
+
} | {
|
226
|
+
type: "nudge";
|
227
|
+
value: number;
|
228
|
+
} | {
|
229
|
+
type: "go_to_step";
|
230
|
+
value: number;
|
231
|
+
} | ({
|
232
|
+
type: "open_bar";
|
233
|
+
} & {
|
234
|
+
value?: string | undefined;
|
235
|
+
categoryFilter?: number | undefined;
|
236
|
+
}) | {
|
237
|
+
type: "open_helphub";
|
238
|
+
} | {
|
239
|
+
type: "open_copilot";
|
240
|
+
} | {
|
241
|
+
type: "no_action";
|
134
242
|
};
|
135
243
|
show_as_primary_cta: boolean;
|
136
244
|
} & {})[]>;
|
@@ -146,12 +254,15 @@ export declare const create: (object: {} & {
|
|
146
254
|
type: "execute_command";
|
147
255
|
meta: {
|
148
256
|
command: string;
|
257
|
+
} & {
|
258
|
+
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
149
259
|
};
|
150
|
-
} | {
|
151
|
-
type: "no_action";
|
152
260
|
} | {
|
153
261
|
type: "click";
|
154
262
|
value: string;
|
263
|
+
} | {
|
264
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
265
|
+
value: string[];
|
155
266
|
} | ({
|
156
267
|
type: "link";
|
157
268
|
value: string;
|
@@ -160,10 +271,34 @@ export declare const create: (object: {} & {
|
|
160
271
|
}) | {
|
161
272
|
type: "open_chat";
|
162
273
|
meta: {
|
163
|
-
type:
|
274
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
164
275
|
};
|
165
276
|
} | {
|
166
277
|
type: "dismiss";
|
278
|
+
} | {
|
279
|
+
type: "snooze";
|
280
|
+
} | {
|
281
|
+
type: "questlist";
|
282
|
+
value: number;
|
283
|
+
} | {
|
284
|
+
type: "step_back";
|
285
|
+
} | {
|
286
|
+
type: "nudge";
|
287
|
+
value: number;
|
288
|
+
} | {
|
289
|
+
type: "go_to_step";
|
290
|
+
value: number;
|
291
|
+
} | ({
|
292
|
+
type: "open_bar";
|
293
|
+
} & {
|
294
|
+
value?: string | undefined;
|
295
|
+
categoryFilter?: number | undefined;
|
296
|
+
}) | {
|
297
|
+
type: "open_helphub";
|
298
|
+
} | {
|
299
|
+
type: "open_copilot";
|
300
|
+
} | {
|
301
|
+
type: "no_action";
|
167
302
|
};
|
168
303
|
show_as_primary_cta: boolean;
|
169
304
|
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
|
@@ -178,12 +313,15 @@ export declare const create: (object: {} & {
|
|
178
313
|
type: "execute_command";
|
179
314
|
meta: {
|
180
315
|
command: string;
|
316
|
+
} & {
|
317
|
+
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
181
318
|
};
|
182
|
-
} | {
|
183
|
-
type: "no_action";
|
184
319
|
} | {
|
185
320
|
type: "click";
|
186
321
|
value: string;
|
322
|
+
} | {
|
323
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
324
|
+
value: string[];
|
187
325
|
} | ({
|
188
326
|
type: "link";
|
189
327
|
value: string;
|
@@ -192,10 +330,34 @@ export declare const create: (object: {} & {
|
|
192
330
|
}) | {
|
193
331
|
type: "open_chat";
|
194
332
|
meta: {
|
195
|
-
type:
|
333
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
196
334
|
};
|
197
335
|
} | {
|
198
336
|
type: "dismiss";
|
337
|
+
} | {
|
338
|
+
type: "snooze";
|
339
|
+
} | {
|
340
|
+
type: "questlist";
|
341
|
+
value: number;
|
342
|
+
} | {
|
343
|
+
type: "step_back";
|
344
|
+
} | {
|
345
|
+
type: "nudge";
|
346
|
+
value: number;
|
347
|
+
} | {
|
348
|
+
type: "go_to_step";
|
349
|
+
value: number;
|
350
|
+
} | ({
|
351
|
+
type: "open_bar";
|
352
|
+
} & {
|
353
|
+
value?: string | undefined;
|
354
|
+
categoryFilter?: number | undefined;
|
355
|
+
}) | {
|
356
|
+
type: "open_helphub";
|
357
|
+
} | {
|
358
|
+
type: "open_copilot";
|
359
|
+
} | {
|
360
|
+
type: "no_action";
|
199
361
|
};
|
200
362
|
show_as_primary_cta: boolean;
|
201
363
|
} & {}>;
|
@@ -212,12 +374,15 @@ export declare const update: (object: {} & {
|
|
212
374
|
type: "execute_command";
|
213
375
|
meta: {
|
214
376
|
command: string;
|
377
|
+
} & {
|
378
|
+
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
215
379
|
};
|
216
|
-
} | {
|
217
|
-
type: "no_action";
|
218
380
|
} | {
|
219
381
|
type: "click";
|
220
382
|
value: string;
|
383
|
+
} | {
|
384
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
385
|
+
value: string[];
|
221
386
|
} | ({
|
222
387
|
type: "link";
|
223
388
|
value: string;
|
@@ -226,10 +391,34 @@ export declare const update: (object: {} & {
|
|
226
391
|
}) | {
|
227
392
|
type: "open_chat";
|
228
393
|
meta: {
|
229
|
-
type:
|
394
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
230
395
|
};
|
231
396
|
} | {
|
232
397
|
type: "dismiss";
|
398
|
+
} | {
|
399
|
+
type: "snooze";
|
400
|
+
} | {
|
401
|
+
type: "questlist";
|
402
|
+
value: number;
|
403
|
+
} | {
|
404
|
+
type: "step_back";
|
405
|
+
} | {
|
406
|
+
type: "nudge";
|
407
|
+
value: number;
|
408
|
+
} | {
|
409
|
+
type: "go_to_step";
|
410
|
+
value: number;
|
411
|
+
} | ({
|
412
|
+
type: "open_bar";
|
413
|
+
} & {
|
414
|
+
value?: string | undefined;
|
415
|
+
categoryFilter?: number | undefined;
|
416
|
+
}) | {
|
417
|
+
type: "open_helphub";
|
418
|
+
} | {
|
419
|
+
type: "open_copilot";
|
420
|
+
} | {
|
421
|
+
type: "no_action";
|
233
422
|
};
|
234
423
|
show_as_primary_cta: boolean;
|
235
424
|
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
|
@@ -244,12 +433,15 @@ export declare const update: (object: {} & {
|
|
244
433
|
type: "execute_command";
|
245
434
|
meta: {
|
246
435
|
command: string;
|
436
|
+
} & {
|
437
|
+
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
247
438
|
};
|
248
|
-
} | {
|
249
|
-
type: "no_action";
|
250
439
|
} | {
|
251
440
|
type: "click";
|
252
441
|
value: string;
|
442
|
+
} | {
|
443
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
444
|
+
value: string[];
|
253
445
|
} | ({
|
254
446
|
type: "link";
|
255
447
|
value: string;
|
@@ -258,10 +450,34 @@ export declare const update: (object: {} & {
|
|
258
450
|
}) | {
|
259
451
|
type: "open_chat";
|
260
452
|
meta: {
|
261
|
-
type:
|
453
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
262
454
|
};
|
263
455
|
} | {
|
264
456
|
type: "dismiss";
|
457
|
+
} | {
|
458
|
+
type: "snooze";
|
459
|
+
} | {
|
460
|
+
type: "questlist";
|
461
|
+
value: number;
|
462
|
+
} | {
|
463
|
+
type: "step_back";
|
464
|
+
} | {
|
465
|
+
type: "nudge";
|
466
|
+
value: number;
|
467
|
+
} | {
|
468
|
+
type: "go_to_step";
|
469
|
+
value: number;
|
470
|
+
} | ({
|
471
|
+
type: "open_bar";
|
472
|
+
} & {
|
473
|
+
value?: string | undefined;
|
474
|
+
categoryFilter?: number | undefined;
|
475
|
+
}) | {
|
476
|
+
type: "open_helphub";
|
477
|
+
} | {
|
478
|
+
type: "open_copilot";
|
479
|
+
} | {
|
480
|
+
type: "no_action";
|
265
481
|
};
|
266
482
|
show_as_primary_cta: boolean;
|
267
483
|
} & {}>;
|
@@ -278,12 +494,15 @@ export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => P
|
|
278
494
|
type: "execute_command";
|
279
495
|
meta: {
|
280
496
|
command: string;
|
497
|
+
} & {
|
498
|
+
type?: "link" | "video" | "action" | "helpdoc" | undefined;
|
281
499
|
};
|
282
|
-
} | {
|
283
|
-
type: "no_action";
|
284
500
|
} | {
|
285
501
|
type: "click";
|
286
502
|
value: string;
|
503
|
+
} | {
|
504
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
505
|
+
value: string[];
|
287
506
|
} | ({
|
288
507
|
type: "link";
|
289
508
|
value: string;
|
@@ -292,10 +511,34 @@ export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => P
|
|
292
511
|
}) | {
|
293
512
|
type: "open_chat";
|
294
513
|
meta: {
|
295
|
-
type:
|
514
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
296
515
|
};
|
297
516
|
} | {
|
298
517
|
type: "dismiss";
|
518
|
+
} | {
|
519
|
+
type: "snooze";
|
520
|
+
} | {
|
521
|
+
type: "questlist";
|
522
|
+
value: number;
|
523
|
+
} | {
|
524
|
+
type: "step_back";
|
525
|
+
} | {
|
526
|
+
type: "nudge";
|
527
|
+
value: number;
|
528
|
+
} | {
|
529
|
+
type: "go_to_step";
|
530
|
+
value: number;
|
531
|
+
} | ({
|
532
|
+
type: "open_bar";
|
533
|
+
} & {
|
534
|
+
value?: string | undefined;
|
535
|
+
categoryFilter?: number | undefined;
|
536
|
+
}) | {
|
537
|
+
type: "open_helphub";
|
538
|
+
} | {
|
539
|
+
type: "open_copilot";
|
540
|
+
} | {
|
541
|
+
type: "no_action";
|
299
542
|
};
|
300
543
|
show_as_primary_cta: boolean;
|
301
544
|
} & {})[];
|
@@ -1,4 +1,18 @@
|
|
1
1
|
import * as t from 'io-ts';
|
2
|
+
export declare const BillingProfileV: t.TypeC<{
|
3
|
+
organization: t.StringC;
|
4
|
+
tier: t.StringC;
|
5
|
+
discount_cents: t.NumberC;
|
6
|
+
name: t.StringC;
|
7
|
+
invoice_description: t.StringC;
|
8
|
+
customer_id: t.UnionC<[t.StringC, t.NullC]>;
|
9
|
+
publishable_key: t.StringC;
|
10
|
+
balance: t.UnionC<[t.NumberC, t.NullC]>;
|
11
|
+
currency: t.UnionC<[t.StringC, t.NullC]>;
|
12
|
+
on_free_trial: t.BooleanC;
|
13
|
+
free_trial_end_date: t.UnionC<[t.StringC, t.NullC]>;
|
14
|
+
appsumo_invoice_item_id: t.UnionC<[t.StringC, t.NullC]>;
|
15
|
+
}>;
|
2
16
|
export declare const StripInfoV: t.IntersectionC<[t.TypeC<{
|
3
17
|
invoice_date_start: t.UnionC<[t.StringC, t.NullC]>;
|
4
18
|
invoice_date_end: t.UnionC<[t.StringC, t.NullC]>;
|
@@ -38,4 +52,21 @@ export declare class Billing {
|
|
38
52
|
questlists_live_limit: number;
|
39
53
|
questlists_live_usage: number;
|
40
54
|
} & {}>;
|
55
|
+
static readProfile: (params?: Record<string, string> | undefined, callbacks?: {
|
56
|
+
onSuccess?: (() => void) | undefined;
|
57
|
+
onError?: ((err: string) => void) | undefined;
|
58
|
+
} | undefined) => Promise<{
|
59
|
+
organization: string;
|
60
|
+
tier: string;
|
61
|
+
discount_cents: number;
|
62
|
+
name: string;
|
63
|
+
invoice_description: string;
|
64
|
+
customer_id: string | null;
|
65
|
+
publishable_key: string;
|
66
|
+
balance: number | null;
|
67
|
+
currency: string | null;
|
68
|
+
on_free_trial: boolean;
|
69
|
+
free_trial_end_date: string | null;
|
70
|
+
appsumo_invoice_item_id: string | null;
|
71
|
+
}>;
|
41
72
|
}
|