@workast/sdk 2.3.0 → 3.1.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/dist/mock.js ADDED
@@ -0,0 +1,2736 @@
1
+ import {
2
+ AuthenticationError,
3
+ NotFoundError,
4
+ PermissionError,
5
+ ValidationError,
6
+ Workast,
7
+ __export
8
+ } from "./chunk-LR7MGXLV.js";
9
+
10
+ // src/types/examples.ts
11
+ var examples_exports = {};
12
+ __export(examples_exports, {
13
+ attachment: () => attachment,
14
+ attachmentFileUrl: () => attachmentFileUrl,
15
+ calendarEvents: () => calendarEvents,
16
+ commentActivity: () => commentActivity,
17
+ customField: () => customField,
18
+ homeTasks: () => homeTasks,
19
+ list: () => list,
20
+ listEnumerate: () => listEnumerate,
21
+ meeting: () => meeting,
22
+ meetingDetail: () => meetingDetail,
23
+ meetingRecordingResource: () => meetingRecordingResource,
24
+ meetings: () => meetings,
25
+ note: () => note,
26
+ noteDetail: () => noteDetail,
27
+ notes: () => notes,
28
+ notifications: () => notifications,
29
+ reactionReadOnly: () => reactionReadOnly,
30
+ search: () => search,
31
+ searchDetail: () => searchDetail,
32
+ searchResults: () => searchResults,
33
+ searches: () => searches,
34
+ subList: () => subList,
35
+ tag: () => tag,
36
+ task: () => task,
37
+ taskActivities: () => taskActivities,
38
+ taskBulkUpdateResult: () => taskBulkUpdateResult,
39
+ tokenDetails: () => tokenDetails,
40
+ user: () => user,
41
+ userDetail: () => userDetail,
42
+ userDetailWithTeam: () => userDetailWithTeam,
43
+ userResource: () => userResource,
44
+ workflow: () => workflow,
45
+ workflowDetail: () => workflowDetail,
46
+ workflows: () => workflows
47
+ });
48
+ var attachment = {
49
+ "id": "6a844d3965f82309911408ca",
50
+ "title": {
51
+ "text": "Ship v3"
52
+ },
53
+ "createdAt": "2026-08-18T12:16:57.347Z",
54
+ "updatedAt": "2026-08-18T12:16:57.347Z",
55
+ "user": {
56
+ "id": "4214932441cb21eebdb396bfe34a8340",
57
+ "name": "Grace Hopper",
58
+ "userName": "grace",
59
+ "avatar": "https://cdn.workast.io/avatar.png",
60
+ "platformDetails": {
61
+ "name": "slack",
62
+ "imChannel": "D3EEXS3J6",
63
+ "selfChannel": "D1HN843U3",
64
+ "userId": "U0HBQESA1",
65
+ "teamId": "T0HBUA0TC"
66
+ }
67
+ },
68
+ "app": {
69
+ "id": "5d9a6b09269e415d36380d23",
70
+ "name": "Example App",
71
+ "description": "Ship v3",
72
+ "icon": "https://cdn.workast.io/avatar.png",
73
+ "createdAt": "2019-10-06T22:30:33.687Z",
74
+ "updatedAt": "2020-03-06T21:14:00.371Z",
75
+ "clientId": "S4GuidJp6frYrxLTuQBM5JoTug",
76
+ "accessType": "user",
77
+ "developedByWorkast": true
78
+ },
79
+ "author": {
80
+ "id": "4214932441cb21eebdb396bfe34a8340",
81
+ "name": "Grace Hopper",
82
+ "userName": "grace",
83
+ "email": "grace@example.com",
84
+ "platformDetails": {
85
+ "name": "slack",
86
+ "imChannel": "D3EEXS3J6",
87
+ "selfChannel": "D1HN843U3",
88
+ "userId": "U0HBQESA1",
89
+ "teamId": "T0HBUA0TC"
90
+ },
91
+ "confirmed": true,
92
+ "avatar": "https://cdn.workast.io/avatar.png",
93
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
94
+ }
95
+ };
96
+ var attachmentFileUrl = {
97
+ "id": "6a844fd765f8230991142151",
98
+ "createdAt": "2026-08-18T12:28:07.685Z",
99
+ "updatedAt": "2026-08-18T12:28:09.193Z",
100
+ "user": {
101
+ "id": "4214932441cb21eebdb396bfe34a8340",
102
+ "virtualId": "c2xhY2svL1QwSEJVQTBUQzpVMEhCUUVTQTE=",
103
+ "name": "Grace Hopper",
104
+ "userName": "grace",
105
+ "avatar": "https://cdn.workast.io/avatar.png",
106
+ "platformDetails": {
107
+ "name": "slack",
108
+ "imChannel": "D3EEXS3J6",
109
+ "selfChannel": "D1HN843U3",
110
+ "userId": "U0HBQESA1",
111
+ "teamId": "T0HBUA0TC"
112
+ }
113
+ },
114
+ "file": {
115
+ "name": "avatar.png",
116
+ "type": "image/png",
117
+ "size": 17101,
118
+ "url": "/files/5dc40cff038a590f79c403c0/b9ca2e09-12e8-4c34-99dd-10dfaf345660",
119
+ "thumbnails": {
120
+ "250": "https://example.com/file",
121
+ "500": "https://example.com/file"
122
+ }
123
+ },
124
+ "link": "https://example.com/file",
125
+ "fileUrl": "https://example.com/file"
126
+ };
127
+ var calendarEvents = {
128
+ "events": [
129
+ {
130
+ "busy": true,
131
+ "calendarId": "grace@example.com",
132
+ "createdAt": 1781850701,
133
+ "icalUid": "3b5ei15dmlrh6et2aqf7q07hbk@example.com",
134
+ "id": "3b5ei15dmlrh6et2aqf7q07hbk",
135
+ "organizer": {
136
+ "email": "grace@example.com",
137
+ "name": "Grace Hopper"
138
+ },
139
+ "participants": [],
140
+ "readOnly": false,
141
+ "status": "confirmed",
142
+ "title": "Standup",
143
+ "updatedAt": 1782098660,
144
+ "visibility": "default",
145
+ "when": {
146
+ "endDate": "2026-07-18",
147
+ "object": "datespan",
148
+ "startDate": "2026-06-27"
149
+ },
150
+ "meeting": null
151
+ }
152
+ ]
153
+ };
154
+ var commentActivity = {
155
+ "id": "686f7912fc2fef09733c6f58",
156
+ "type": "comment",
157
+ "value": "Standup",
158
+ "status": "active",
159
+ "createdAt": "2025-07-10T08:25:54.274Z",
160
+ "updatedAt": "2025-07-10T08:25:54.274Z",
161
+ "mentions": [
162
+ {
163
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
164
+ "name": "Ada Lovelace",
165
+ "userName": "ada",
166
+ "email": "ada@example.com",
167
+ "platformDetails": {
168
+ "name": "slack",
169
+ "imChannel": "D3F5RQA6B",
170
+ "selfChannel": "D1LGYBCFQ",
171
+ "userId": "U0JU26WRG",
172
+ "teamId": "T0HBUA0TC"
173
+ },
174
+ "confirmed": true,
175
+ "avatar": "https://cdn.workast.io/avatar.png",
176
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
177
+ }
178
+ ],
179
+ "reactions": [],
180
+ "actor": {
181
+ "type": "User",
182
+ "data": {
183
+ "id": "4214932441cb21eebdb396bfe34a8340",
184
+ "name": "Grace Hopper",
185
+ "userName": "grace",
186
+ "email": "grace@example.com",
187
+ "platformDetails": {
188
+ "name": "slack",
189
+ "imChannel": "D3EEXS3J6",
190
+ "selfChannel": "D1HN843U3",
191
+ "userId": "U0HBQESA1",
192
+ "teamId": "T0HBUA0TC"
193
+ },
194
+ "confirmed": true,
195
+ "avatar": "https://cdn.workast.io/avatar.png",
196
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
197
+ }
198
+ }
199
+ };
200
+ var customField = {
201
+ "id": "61a50f7ed892d94d8c9d285e",
202
+ "name": "Priority",
203
+ "description": "Ship v3",
204
+ "type": "options",
205
+ "useAsTaskColor": false,
206
+ "options": [
207
+ {
208
+ "id": "61a50f7ed892d94d8c9d285f",
209
+ "name": "Low",
210
+ "color": "#F2994A"
211
+ },
212
+ {
213
+ "id": "63ec2019d467b10e1de14f02",
214
+ "name": "Medium",
215
+ "color": "#20e48b"
216
+ },
217
+ {
218
+ "id": "63ec2019d467b10e1de14f03",
219
+ "name": "Normal",
220
+ "color": "#1156ff"
221
+ },
222
+ {
223
+ "id": "63ec2019d467b10e1de14f04",
224
+ "name": "High",
225
+ "color": "#f50c0c"
226
+ }
227
+ ]
228
+ };
229
+ var homeTasks = {
230
+ "tasks": [
231
+ {
232
+ "status": "pending",
233
+ "text": "Ship v3",
234
+ "shortId": "T4GNY",
235
+ "createdAt": "2022-01-10T12:12:46.308Z",
236
+ "updatedAt": "2025-07-10T08:25:54.460Z",
237
+ "listPosition": 99999,
238
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/task/3634dc043f0d415ec2d307284a3cfe69",
239
+ "calendars": [
240
+ "b2956627fe26a2c1e4b6d5202413f779"
241
+ ],
242
+ "id": "3634dc043f0d415ec2d307284a3cfe69",
243
+ "list": {
244
+ "id": "603449f6f107b67c63e8cee9",
245
+ "name": "Product",
246
+ "type": "group",
247
+ "privacy": "private",
248
+ "subLists": [
249
+ {
250
+ "id": "603449f6f107b67c63e8cee8",
251
+ "name": "To-do",
252
+ "listPosition": 1e5,
253
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
254
+ },
255
+ {
256
+ "id": "610ffd8c7374d6331a4178d8",
257
+ "name": "In Progress",
258
+ "listPosition": 7e5,
259
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
260
+ }
261
+ ],
262
+ "link": "https://app.workast.com/list/603449f6f107b67c63e8cee9"
263
+ },
264
+ "listId": "603449f6f107b67c63e8cee9",
265
+ "subListId": "610ffd8c7374d6331a4178d8",
266
+ "subList": {
267
+ "id": "610ffd8c7374d6331a4178d8",
268
+ "name": "To-do"
269
+ },
270
+ "assignedTo": [
271
+ {
272
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
273
+ "name": "Ada Lovelace",
274
+ "userName": "ada",
275
+ "email": "ada@example.com",
276
+ "platformDetails": {
277
+ "name": "slack",
278
+ "imChannel": "D3F5RQA6B",
279
+ "selfChannel": "D1LGYBCFQ",
280
+ "userId": "U0JU26WRG",
281
+ "teamId": "T0HBUA0TC"
282
+ },
283
+ "confirmed": true,
284
+ "avatar": "https://cdn.workast.io/avatar.png",
285
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
286
+ }
287
+ ],
288
+ "subscribers": [
289
+ {
290
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
291
+ "name": "Ada Lovelace",
292
+ "userName": "ada",
293
+ "email": "ada@example.com",
294
+ "platformDetails": {
295
+ "name": "slack",
296
+ "imChannel": "D3F5RQA6B",
297
+ "selfChannel": "D1LGYBCFQ",
298
+ "userId": "U0JU26WRG",
299
+ "teamId": "T0HBUA0TC"
300
+ },
301
+ "confirmed": true,
302
+ "avatar": "https://cdn.workast.io/avatar.png",
303
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
304
+ },
305
+ {
306
+ "id": "4214932441cb21eebdb396bfe34a8340",
307
+ "name": "Grace Hopper",
308
+ "userName": "grace",
309
+ "email": "grace@example.com",
310
+ "platformDetails": {
311
+ "name": "slack",
312
+ "imChannel": "D3EEXS3J6",
313
+ "selfChannel": "D1HN843U3",
314
+ "userId": "U0HBQESA1",
315
+ "teamId": "T0HBUA0TC"
316
+ },
317
+ "confirmed": true,
318
+ "avatar": "https://cdn.workast.io/avatar.png",
319
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
320
+ }
321
+ ],
322
+ "allDay": false,
323
+ "createdBy": {
324
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
325
+ "name": "Ada Lovelace",
326
+ "userName": "ada",
327
+ "email": "ada@example.com",
328
+ "platformDetails": {
329
+ "name": "slack",
330
+ "imChannel": "D3F5RQA6B",
331
+ "selfChannel": "D1LGYBCFQ",
332
+ "userId": "U0JU26WRG",
333
+ "teamId": "T0HBUA0TC"
334
+ },
335
+ "confirmed": true,
336
+ "avatar": "https://cdn.workast.io/avatar.png",
337
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
338
+ },
339
+ "hasDescription": true,
340
+ "numberOfComments": 1,
341
+ "numberOfAttachments": 0,
342
+ "totalSubTasks": 1,
343
+ "completedSubTasks": 0,
344
+ "isSubscribed": true,
345
+ "lastComment": {
346
+ "id": "686f7912fc2fef09733c6f58",
347
+ "type": "comment",
348
+ "value": "Standup",
349
+ "status": "active",
350
+ "createdAt": "2025-07-10T08:25:54.274Z",
351
+ "updatedAt": "2025-07-10T08:25:54.274Z",
352
+ "mentions": [
353
+ {
354
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
355
+ "name": "Ada Lovelace",
356
+ "userName": "ada",
357
+ "email": "ada@example.com",
358
+ "platformDetails": {
359
+ "name": "slack",
360
+ "imChannel": "D3F5RQA6B",
361
+ "selfChannel": "D1LGYBCFQ",
362
+ "userId": "U0JU26WRG",
363
+ "teamId": "T0HBUA0TC"
364
+ },
365
+ "confirmed": true,
366
+ "avatar": "https://cdn.workast.io/avatar.png",
367
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
368
+ }
369
+ ],
370
+ "reactions": [],
371
+ "actor": {
372
+ "type": "User",
373
+ "data": {
374
+ "id": "4214932441cb21eebdb396bfe34a8340",
375
+ "name": "Grace Hopper",
376
+ "userName": "grace",
377
+ "email": "grace@example.com",
378
+ "platformDetails": {
379
+ "name": "slack",
380
+ "imChannel": "D3EEXS3J6",
381
+ "selfChannel": "D1HN843U3",
382
+ "userId": "U0HBQESA1",
383
+ "teamId": "T0HBUA0TC"
384
+ },
385
+ "confirmed": true,
386
+ "avatar": "https://cdn.workast.io/avatar.png",
387
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
388
+ }
389
+ }
390
+ },
391
+ "taskStatus": {
392
+ "id": "5c7184fa40721e2ed4175a6e",
393
+ "label": "Open",
394
+ "color": "#808080",
395
+ "createdAt": "2019-02-23T17:38:02.928Z",
396
+ "updatedAt": "2019-02-23T17:38:02.928Z"
397
+ },
398
+ "milestones": [],
399
+ "inHome": true,
400
+ "fields": []
401
+ }
402
+ ],
403
+ "total": 1
404
+ };
405
+ var list = {
406
+ "id": "5a6ebde81519395731f90e2f",
407
+ "hash": "26873fa18b3a3c5bfd82f9d8e2dafa05",
408
+ "avatar": "https://cdn.workast.io/list-avatar.png",
409
+ "name": "Engineering",
410
+ "numberOfParticipants": 2,
411
+ "type": "group",
412
+ "privacy": "private",
413
+ "platformDetails": {
414
+ "name": "slack",
415
+ "channelId": "G8TRB56E8",
416
+ "channelName": "engineering",
417
+ "type": "group",
418
+ "teamId": "T0HBUA0TC"
419
+ },
420
+ "isArchived": false,
421
+ "createdBy": "b2956627fe26a2c1e4b6d5202413f779",
422
+ "participants": [
423
+ "4214932441cb21eebdb396bfe34a8340",
424
+ "c51a9c1a2ddfbcefa7abf74036e0c616",
425
+ "b2956627fe26a2c1e4b6d5202413f779"
426
+ ],
427
+ "platformNotifications": {
428
+ "taskCreated": true,
429
+ "taskCompleted": true
430
+ },
431
+ "apps": [
432
+ {
433
+ "id": "5af007dff36d2837eae6e56c",
434
+ "name": "Slack",
435
+ "description": "Ship v3",
436
+ "icon": "https://cdn.workast.io/integrations/Slack/icon.png",
437
+ "updatedAt": "2023-11-15T03:23:37.468Z",
438
+ "clientId": "nUsktT5eDzpbJE15WLfMejf9oJ",
439
+ "accessType": "user",
440
+ "developedByWorkast": true,
441
+ "integration": {
442
+ "spaceActions": [
443
+ {
444
+ "actionId": "SHOW_SETTINGS",
445
+ "label": "Slack"
446
+ }
447
+ ],
448
+ "taskActions": []
449
+ }
450
+ },
451
+ {
452
+ "id": "5b23da45e7179a589282a60c",
453
+ "name": "Email",
454
+ "description": "Ship v3",
455
+ "icon": "https://cdn.workast.io/integrations/Email/icon.png",
456
+ "updatedAt": "2020-03-06T21:14:00.371Z",
457
+ "clientId": "Jr5LKksQ9PZhr89R3l93aaaaab",
458
+ "accessType": "user",
459
+ "developedByWorkast": true,
460
+ "integration": {
461
+ "spaceActions": [
462
+ {
463
+ "actionId": "SHOW_SETTINGS",
464
+ "label": "Email"
465
+ }
466
+ ],
467
+ "taskActions": []
468
+ }
469
+ }
470
+ ],
471
+ "defaultSubList": "5a6ebde81519395731f90e30",
472
+ "subLists": [
473
+ {
474
+ "id": "5a6ebde81519395731f90e30",
475
+ "name": "To-do",
476
+ "listPosition": 1e5,
477
+ "createdBy": "b2956627fe26a2c1e4b6d5202413f779"
478
+ }
479
+ ],
480
+ "link": "https://app.workast.com/list/5a6ebde81519395731f90e2f",
481
+ "isParticipant": true,
482
+ "someParticipants": [
483
+ {
484
+ "id": "4214932441cb21eebdb396bfe34a8340",
485
+ "name": "Grace Hopper",
486
+ "userName": "grace",
487
+ "email": "grace@example.com",
488
+ "platformDetails": {
489
+ "name": "slack",
490
+ "imChannel": "D3EEXS3J6",
491
+ "selfChannel": "D1HN843U3",
492
+ "userId": "U0HBQESA1",
493
+ "teamId": "T0HBUA0TC"
494
+ },
495
+ "confirmed": true,
496
+ "avatar": "https://cdn.workast.io/avatar.png",
497
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
498
+ },
499
+ {
500
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
501
+ "name": "Ada Lovelace",
502
+ "userName": "ada",
503
+ "email": "ada@example.com",
504
+ "platformDetails": {
505
+ "name": "slack",
506
+ "imChannel": "D3F5RQA6B",
507
+ "selfChannel": "D1LGYBCFQ",
508
+ "userId": "U0JU26WRG",
509
+ "teamId": "T0HBUA0TC"
510
+ },
511
+ "confirmed": true,
512
+ "avatar": "https://cdn.workast.io/avatar.png",
513
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
514
+ }
515
+ ],
516
+ "columns": [
517
+ "assignedTo",
518
+ "dueDate",
519
+ "doneBy",
520
+ "doneAt"
521
+ ],
522
+ "groupBy": "subList",
523
+ "isBookmarked": false
524
+ };
525
+ var listEnumerate = {
526
+ "id": "5a6ebde81519395731f90e2f",
527
+ "hash": "26873fa18b3a3c5bfd82f9d8e2dafa05",
528
+ "name": "Engineering",
529
+ "createdAt": "2018-01-29T06:23:36.194Z",
530
+ "createdBy": {
531
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
532
+ "name": "Ada Lovelace",
533
+ "userName": "ada",
534
+ "email": "ada@example.com",
535
+ "platformDetails": {
536
+ "name": "slack",
537
+ "imChannel": "D3F5RQA6B",
538
+ "selfChannel": "D1LGYBCFQ",
539
+ "userId": "U0JU26WRG",
540
+ "teamId": "T0HBUA0TC"
541
+ },
542
+ "confirmed": true,
543
+ "avatar": "https://cdn.workast.io/avatar.png",
544
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
545
+ },
546
+ "avatar": "https://cdn.workast.io/list-avatar.png",
547
+ "numberOfParticipants": 3,
548
+ "type": "group",
549
+ "privacy": "private",
550
+ "isArchived": false,
551
+ "platformDetails": {
552
+ "name": "slack",
553
+ "channelId": "G8TRB56E8",
554
+ "channelName": "engineering",
555
+ "type": "group",
556
+ "teamId": "T0HBUA0TC"
557
+ },
558
+ "platformNotifications": {
559
+ "taskCreated": true,
560
+ "taskCompleted": true
561
+ },
562
+ "subLists": [
563
+ {
564
+ "id": "5a6ebde81519395731f90e30",
565
+ "name": "To-do",
566
+ "listPosition": 1e5,
567
+ "createdBy": "b2956627fe26a2c1e4b6d5202413f779"
568
+ }
569
+ ],
570
+ "defaultSubList": "5a6ebde81519395731f90e30",
571
+ "isParticipant": true,
572
+ "link": "https://app.workast.com/list/5a6ebde81519395731f90e2f"
573
+ };
574
+ var meeting = {
575
+ "id": "6a844c4c6bc4270979c79d34",
576
+ "createdAt": "2026-08-18T12:13:00.327Z",
577
+ "updatedAt": "2026-08-18T12:13:00.327Z",
578
+ "summary": "Standup",
579
+ "status": "active",
580
+ "eventId": "2bi7qgtg2k615gsm4fom4oa2l8",
581
+ "isRecurrent": false,
582
+ "organizer": {
583
+ "id": "4214932441cb21eebdb396bfe34a8340",
584
+ "name": "Grace Hopper",
585
+ "userName": "grace",
586
+ "email": "grace@example.com",
587
+ "platformDetails": {
588
+ "name": "slack",
589
+ "imChannel": "D3EEXS3J6",
590
+ "selfChannel": "D1HN843U3",
591
+ "userId": "U0HBQESA1",
592
+ "teamId": "T0HBUA0TC"
593
+ },
594
+ "confirmed": true,
595
+ "avatar": "https://cdn.workast.io/avatar.png",
596
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
597
+ },
598
+ "totalAttendees": 1,
599
+ "someAttendees": [],
600
+ "list": {
601
+ "id": "5a6ebde81519395731f90e2f",
602
+ "name": "Engineering",
603
+ "type": "group",
604
+ "status": "active",
605
+ "privacy": "private",
606
+ "link": "https://app.workast.com/list/5a6ebde81519395731f90e2f"
607
+ },
608
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/meeting/6a844c4c6bc4270979c79d34",
609
+ "notetaker": {
610
+ "enabled": false
611
+ },
612
+ "start": "2026-09-01T15:00:00.000Z",
613
+ "end": "2026-09-01T15:30:00.000Z",
614
+ "allDay": false
615
+ };
616
+ var meetingDetail = {
617
+ "id": "6a6840c6cc9ea3097a801627",
618
+ "createdAt": "2026-07-28T05:40:22.966Z",
619
+ "updatedAt": "2026-08-11T01:56:10.130Z",
620
+ "summary": "Standup",
621
+ "status": "active",
622
+ "eventId": "gobiji6ddnsgaausdrhftf2cb2_20260728T223000Z",
623
+ "isRecurrent": true,
624
+ "organizer": {
625
+ "id": "4214932441cb21eebdb396bfe34a8340",
626
+ "name": "Grace Hopper",
627
+ "userName": "grace",
628
+ "email": "grace@example.com",
629
+ "platformDetails": {
630
+ "name": "slack",
631
+ "imChannel": "D3EEXS3J6",
632
+ "selfChannel": "D1HN843U3",
633
+ "userId": "U0HBQESA1",
634
+ "teamId": "T0HBUA0TC"
635
+ },
636
+ "confirmed": true,
637
+ "avatar": "https://cdn.workast.io/avatar.png",
638
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
639
+ },
640
+ "totalAttendees": 2,
641
+ "someAttendees": [
642
+ {
643
+ "id": "4214932441cb21eebdb396bfe34a8340",
644
+ "name": "Grace Hopper",
645
+ "userName": "grace",
646
+ "email": "grace@example.com",
647
+ "platformDetails": {
648
+ "name": "slack",
649
+ "imChannel": "D3EEXS3J6",
650
+ "selfChannel": "D1HN843U3",
651
+ "userId": "U0HBQESA1",
652
+ "teamId": "T0HBUA0TC"
653
+ },
654
+ "confirmed": true,
655
+ "avatar": "https://cdn.workast.io/avatar.png",
656
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
657
+ }
658
+ ],
659
+ "list": {
660
+ "id": "5fc58f3d15ff9110b64ca426",
661
+ "type": "group",
662
+ "status": "active",
663
+ "privacy": "team",
664
+ "link": "https://app.workast.com/list/5fc58f3d15ff9110b64ca426",
665
+ "name": "Product"
666
+ },
667
+ "link": "https://app.workast.com/meeting/6a6840c6cc9ea3097a801627",
668
+ "conferenceData": {
669
+ "joinUrl": "https://example.com/file",
670
+ "provider": "Google Meet"
671
+ },
672
+ "notetaker": {
673
+ "enabled": false
674
+ },
675
+ "start": "2026-07-31T00:30:00.000Z",
676
+ "end": "2026-07-31T02:00:00.000Z",
677
+ "allDay": false,
678
+ "totalTasks": 0,
679
+ "completedTasks": 0
680
+ };
681
+ var meetingRecordingResource = {
682
+ "transcript": {
683
+ "object": "transcript",
684
+ "type": "speaker_labelled",
685
+ "language": "es",
686
+ "transcript": [
687
+ {
688
+ "speaker": "Speaker A",
689
+ "start": 37850,
690
+ "end": 116040,
691
+ "text": "Standup"
692
+ }
693
+ ]
694
+ }
695
+ };
696
+ var meetings = {
697
+ "meetings": [
698
+ {
699
+ "id": "6a6840c6cc9ea3097a801627",
700
+ "summary": "Standup",
701
+ "eventId": "gobiji6ddnsgaausdrhftf2cb2_20260728T223000Z",
702
+ "isRecurrent": true,
703
+ "organizer": {
704
+ "id": "4214932441cb21eebdb396bfe34a8340",
705
+ "name": "Grace Hopper",
706
+ "userName": "grace",
707
+ "email": "grace@example.com",
708
+ "platformDetails": {
709
+ "name": "slack",
710
+ "imChannel": "D3EEXS3J6",
711
+ "selfChannel": "D1HN843U3",
712
+ "userId": "U0HBQESA1",
713
+ "teamId": "T0HBUA0TC"
714
+ },
715
+ "confirmed": true,
716
+ "avatar": "https://cdn.workast.io/avatar.png",
717
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
718
+ },
719
+ "totalAttendees": 2,
720
+ "someAttendees": [
721
+ {
722
+ "id": "4214932441cb21eebdb396bfe34a8340",
723
+ "name": "Grace Hopper",
724
+ "userName": "grace",
725
+ "email": "grace@example.com",
726
+ "platformDetails": {
727
+ "name": "slack",
728
+ "imChannel": "D3EEXS3J6",
729
+ "selfChannel": "D1HN843U3",
730
+ "userId": "U0HBQESA1",
731
+ "teamId": "T0HBUA0TC"
732
+ },
733
+ "confirmed": true,
734
+ "avatar": "https://cdn.workast.io/avatar.png",
735
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
736
+ },
737
+ {
738
+ "id": "67c6206fc7cb0feb115113cdf71aa72d",
739
+ "name": "Katherine Johnson",
740
+ "userName": "katherine",
741
+ "email": "katherine@example.com",
742
+ "platformDetails": {
743
+ "name": "slack",
744
+ "imChannel": "D06JN8RT8KB",
745
+ "selfChannel": "D06HV290V6K",
746
+ "userId": "U06J9JSF6R0",
747
+ "teamId": "T0HBUA0TC"
748
+ },
749
+ "confirmed": false,
750
+ "avatar": "https://cdn.workast.io/avatar.png",
751
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
752
+ }
753
+ ],
754
+ "link": "https://app.workast.com/meeting/6a6840c6cc9ea3097a801627",
755
+ "start": "2026-07-31T00:30:00.000Z",
756
+ "end": "2026-07-31T02:00:00.000Z",
757
+ "allDay": false,
758
+ "totalTasks": 0,
759
+ "completedTasks": 0
760
+ }
761
+ ],
762
+ "nextPageToken": "eyJzdGFydCI6IjIwMjYtMDctMzFUMDA6MzA6MDAuMDAwWiIsImlkIjoiNmE2ODQwYzZjYzllYTMwOTdhODAxNjI3In0"
763
+ };
764
+ var note = {
765
+ "id": "6994a3e051b10d097caddd0f",
766
+ "title": "Ship v3",
767
+ "createdAt": "2026-02-17T17:22:40.359Z",
768
+ "updatedAt": "2026-02-23T22:00:53.158Z",
769
+ "version": 58,
770
+ "list": {
771
+ "id": "6938534c1679f90979e5ccf4",
772
+ "avatar": "https://cdn.workast.io/list-avatar.png",
773
+ "name": "Engineering",
774
+ "numberOfParticipants": 2,
775
+ "type": "group",
776
+ "slug": "engineering",
777
+ "privacy": "team",
778
+ "platformDetails": {
779
+ "type": "group"
780
+ },
781
+ "isArchived": false,
782
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d",
783
+ "participants": [
784
+ "67c6206fc7cb0feb115113cdf71aa72d",
785
+ "4214932441cb21eebdb396bfe34a8340"
786
+ ],
787
+ "platformNotifications": {
788
+ "taskCreated": true,
789
+ "taskCompleted": true
790
+ },
791
+ "apps": [
792
+ {
793
+ "id": "5b23da45e7179a589282a60c",
794
+ "name": "Email",
795
+ "description": "Ship v3",
796
+ "icon": "https://cdn.workast.io/integrations/Email/icon.png",
797
+ "updatedAt": "2020-03-06T21:14:00.371Z",
798
+ "clientId": "Jr5LKksQ9PZhr89R3l93aaaaab",
799
+ "accessType": "user",
800
+ "developedByWorkast": true,
801
+ "integration": {
802
+ "spaceActions": [
803
+ {
804
+ "actionId": "SHOW_SETTINGS",
805
+ "label": "Email"
806
+ }
807
+ ],
808
+ "taskActions": []
809
+ }
810
+ },
811
+ {
812
+ "name": "Example App",
813
+ "description": "Ship v3",
814
+ "icon": "https://cdn.workast.io/avatar.png",
815
+ "createdAt": "2019-10-06T22:30:33.687Z",
816
+ "updatedAt": "2020-03-06T21:14:00.371Z",
817
+ "clientId": "S4GuidJp6frYrxLTuQBM5JoTug",
818
+ "accessType": "user",
819
+ "developedByWorkast": true,
820
+ "id": "5d83a3de767119000151da7a"
821
+ }
822
+ ],
823
+ "defaultSubList": "6938534c1679f90979e5ccf3",
824
+ "subLists": [
825
+ {
826
+ "id": "6938534c1679f90979e5ccf3",
827
+ "name": "To-do",
828
+ "listPosition": 1e5,
829
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d"
830
+ },
831
+ {
832
+ "id": "693853701679f90979e5d186",
833
+ "name": "In Progress",
834
+ "listPosition": 2e5,
835
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d"
836
+ }
837
+ ],
838
+ "link": "https://app.workast.com/list/6938534c1679f90979e5ccf4",
839
+ "isParticipant": true,
840
+ "someParticipants": [
841
+ {
842
+ "id": "67c6206fc7cb0feb115113cdf71aa72d",
843
+ "name": "Katherine Johnson",
844
+ "userName": "katherine",
845
+ "email": "katherine@example.com",
846
+ "platformDetails": {
847
+ "name": "slack",
848
+ "imChannel": "D06JN8RT8KB",
849
+ "selfChannel": "D06HV290V6K",
850
+ "userId": "U06J9JSF6R0",
851
+ "teamId": "T0HBUA0TC"
852
+ },
853
+ "confirmed": false,
854
+ "avatar": "https://cdn.workast.io/avatar.png",
855
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
856
+ }
857
+ ],
858
+ "columns": [
859
+ "assignedTo",
860
+ "dueDate",
861
+ "doneBy",
862
+ "doneAt"
863
+ ],
864
+ "groupBy": "subList"
865
+ },
866
+ "createdBy": {
867
+ "id": "67c6206fc7cb0feb115113cdf71aa72d",
868
+ "name": "Katherine Johnson",
869
+ "userName": "katherine",
870
+ "email": "katherine@example.com",
871
+ "platformDetails": {
872
+ "name": "slack",
873
+ "imChannel": "D06JN8RT8KB",
874
+ "selfChannel": "D06HV290V6K",
875
+ "userId": "U06J9JSF6R0",
876
+ "teamId": "T0HBUA0TC"
877
+ },
878
+ "confirmed": false,
879
+ "avatar": "https://cdn.workast.io/avatar.png",
880
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
881
+ }
882
+ };
883
+ var noteDetail = {
884
+ "id": "6994a3e051b10d097caddd0f",
885
+ "title": "Ship v3",
886
+ "createdAt": "2026-02-17T17:22:40.359Z",
887
+ "updatedAt": "2026-02-23T22:00:53.158Z",
888
+ "version": 58,
889
+ "list": {
890
+ "id": "6938534c1679f90979e5ccf4",
891
+ "avatar": "https://cdn.workast.io/list-avatar.png",
892
+ "name": "Engineering",
893
+ "numberOfParticipants": 2,
894
+ "type": "group",
895
+ "slug": "engineering",
896
+ "privacy": "team",
897
+ "platformDetails": {
898
+ "type": "group"
899
+ },
900
+ "isArchived": false,
901
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d",
902
+ "participants": [
903
+ "67c6206fc7cb0feb115113cdf71aa72d",
904
+ "4214932441cb21eebdb396bfe34a8340"
905
+ ],
906
+ "platformNotifications": {
907
+ "taskCreated": true,
908
+ "taskCompleted": true
909
+ },
910
+ "apps": [
911
+ {
912
+ "id": "5b23da45e7179a589282a60c",
913
+ "name": "Email",
914
+ "description": "Ship v3",
915
+ "icon": "https://cdn.workast.io/integrations/Email/icon.png",
916
+ "updatedAt": "2020-03-06T21:14:00.371Z",
917
+ "clientId": "Jr5LKksQ9PZhr89R3l93aaaaab",
918
+ "accessType": "user",
919
+ "developedByWorkast": true,
920
+ "integration": {
921
+ "spaceActions": [
922
+ {
923
+ "actionId": "SHOW_SETTINGS",
924
+ "label": "Email"
925
+ }
926
+ ],
927
+ "taskActions": []
928
+ }
929
+ },
930
+ {
931
+ "name": "Example App",
932
+ "description": "Ship v3",
933
+ "icon": "https://cdn.workast.io/avatar.png",
934
+ "createdAt": "2019-10-06T22:30:33.687Z",
935
+ "updatedAt": "2020-03-06T21:14:00.371Z",
936
+ "clientId": "S4GuidJp6frYrxLTuQBM5JoTug",
937
+ "accessType": "user",
938
+ "developedByWorkast": true,
939
+ "id": "5d83a3de767119000151da7a"
940
+ }
941
+ ],
942
+ "defaultSubList": "6938534c1679f90979e5ccf3",
943
+ "subLists": [
944
+ {
945
+ "id": "6938534c1679f90979e5ccf3",
946
+ "name": "To-do",
947
+ "listPosition": 1e5,
948
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d"
949
+ },
950
+ {
951
+ "id": "693853701679f90979e5d186",
952
+ "name": "In Progress",
953
+ "listPosition": 2e5,
954
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d"
955
+ }
956
+ ],
957
+ "link": "https://app.workast.com/list/6938534c1679f90979e5ccf4",
958
+ "isParticipant": true,
959
+ "someParticipants": [
960
+ {
961
+ "id": "67c6206fc7cb0feb115113cdf71aa72d",
962
+ "name": "Katherine Johnson",
963
+ "userName": "katherine",
964
+ "email": "katherine@example.com",
965
+ "platformDetails": {
966
+ "name": "slack",
967
+ "imChannel": "D06JN8RT8KB",
968
+ "selfChannel": "D06HV290V6K",
969
+ "userId": "U06J9JSF6R0",
970
+ "teamId": "T0HBUA0TC"
971
+ },
972
+ "confirmed": false,
973
+ "avatar": "https://cdn.workast.io/avatar.png",
974
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
975
+ }
976
+ ],
977
+ "columns": [
978
+ "assignedTo",
979
+ "dueDate",
980
+ "doneBy",
981
+ "doneAt"
982
+ ],
983
+ "groupBy": "subList"
984
+ },
985
+ "createdBy": {
986
+ "id": "67c6206fc7cb0feb115113cdf71aa72d",
987
+ "name": "Katherine Johnson",
988
+ "userName": "katherine",
989
+ "email": "katherine@example.com",
990
+ "platformDetails": {
991
+ "name": "slack",
992
+ "imChannel": "D06JN8RT8KB",
993
+ "selfChannel": "D06HV290V6K",
994
+ "userId": "U06J9JSF6R0",
995
+ "teamId": "T0HBUA0TC"
996
+ },
997
+ "confirmed": false,
998
+ "avatar": "https://cdn.workast.io/avatar.png",
999
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1000
+ },
1001
+ "body": "<p>Ship v3</p>"
1002
+ };
1003
+ var notes = {
1004
+ "notes": [
1005
+ {
1006
+ "id": "6994a3e051b10d097caddd0f",
1007
+ "title": "Ship v3",
1008
+ "createdAt": "2026-02-17T17:22:40.359Z",
1009
+ "updatedAt": "2026-02-23T22:00:53.158Z",
1010
+ "version": 58,
1011
+ "list": {
1012
+ "id": "6938534c1679f90979e5ccf4",
1013
+ "avatar": "https://cdn.workast.io/list-avatar.png",
1014
+ "name": "Engineering",
1015
+ "numberOfParticipants": 2,
1016
+ "type": "group",
1017
+ "slug": "engineering",
1018
+ "privacy": "team",
1019
+ "platformDetails": {
1020
+ "type": "group"
1021
+ },
1022
+ "isArchived": false,
1023
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d",
1024
+ "participants": [
1025
+ "67c6206fc7cb0feb115113cdf71aa72d",
1026
+ "4214932441cb21eebdb396bfe34a8340"
1027
+ ],
1028
+ "platformNotifications": {
1029
+ "taskCreated": true,
1030
+ "taskCompleted": true
1031
+ },
1032
+ "apps": [
1033
+ {
1034
+ "id": "5b23da45e7179a589282a60c",
1035
+ "name": "Email",
1036
+ "description": "Ship v3",
1037
+ "icon": "https://cdn.workast.io/integrations/Email/icon.png",
1038
+ "updatedAt": "2020-03-06T21:14:00.371Z",
1039
+ "clientId": "Jr5LKksQ9PZhr89R3l93aaaaab",
1040
+ "accessType": "user",
1041
+ "developedByWorkast": true,
1042
+ "integration": {
1043
+ "spaceActions": [
1044
+ {
1045
+ "actionId": "SHOW_SETTINGS",
1046
+ "label": "Email"
1047
+ }
1048
+ ],
1049
+ "taskActions": []
1050
+ }
1051
+ },
1052
+ {
1053
+ "name": "Example App",
1054
+ "description": "Ship v3",
1055
+ "icon": "https://cdn.workast.io/avatar.png",
1056
+ "createdAt": "2019-10-06T22:30:33.687Z",
1057
+ "updatedAt": "2020-03-06T21:14:00.371Z",
1058
+ "clientId": "S4GuidJp6frYrxLTuQBM5JoTug",
1059
+ "accessType": "user",
1060
+ "developedByWorkast": true,
1061
+ "id": "5d83a3de767119000151da7a"
1062
+ }
1063
+ ],
1064
+ "defaultSubList": "6938534c1679f90979e5ccf3",
1065
+ "subLists": [
1066
+ {
1067
+ "id": "6938534c1679f90979e5ccf3",
1068
+ "name": "To-do",
1069
+ "listPosition": 1e5,
1070
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d"
1071
+ },
1072
+ {
1073
+ "id": "693853701679f90979e5d186",
1074
+ "name": "In Progress",
1075
+ "listPosition": 2e5,
1076
+ "createdBy": "67c6206fc7cb0feb115113cdf71aa72d"
1077
+ }
1078
+ ],
1079
+ "link": "https://app.workast.com/list/6938534c1679f90979e5ccf4",
1080
+ "isParticipant": true,
1081
+ "someParticipants": [
1082
+ {
1083
+ "id": "67c6206fc7cb0feb115113cdf71aa72d",
1084
+ "name": "Katherine Johnson",
1085
+ "userName": "katherine",
1086
+ "email": "katherine@example.com",
1087
+ "platformDetails": {
1088
+ "name": "slack",
1089
+ "imChannel": "D06JN8RT8KB",
1090
+ "selfChannel": "D06HV290V6K",
1091
+ "userId": "U06J9JSF6R0",
1092
+ "teamId": "T0HBUA0TC"
1093
+ },
1094
+ "confirmed": false,
1095
+ "avatar": "https://cdn.workast.io/avatar.png",
1096
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1097
+ }
1098
+ ],
1099
+ "columns": [
1100
+ "assignedTo",
1101
+ "dueDate",
1102
+ "doneBy",
1103
+ "doneAt"
1104
+ ],
1105
+ "groupBy": "subList"
1106
+ },
1107
+ "createdBy": {
1108
+ "id": "67c6206fc7cb0feb115113cdf71aa72d",
1109
+ "name": "Katherine Johnson",
1110
+ "userName": "katherine",
1111
+ "email": "katherine@example.com",
1112
+ "platformDetails": {
1113
+ "name": "slack",
1114
+ "imChannel": "D06JN8RT8KB",
1115
+ "selfChannel": "D06HV290V6K",
1116
+ "userId": "U06J9JSF6R0",
1117
+ "teamId": "T0HBUA0TC"
1118
+ },
1119
+ "confirmed": false,
1120
+ "avatar": "https://cdn.workast.io/avatar.png",
1121
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1122
+ }
1123
+ }
1124
+ ],
1125
+ "total": 168
1126
+ };
1127
+ var notifications = {
1128
+ "notifications": [
1129
+ {
1130
+ "id": "6a7ea6b48e9808acbda8914f",
1131
+ "type": "meeting_media_ready",
1132
+ "read": false,
1133
+ "activityId": "6a7ea6b48e9808acbda89147",
1134
+ "sentAt": "2026-08-14T05:25:08.472Z",
1135
+ "createdAt": "2026-08-14T05:25:08.474Z",
1136
+ "content": {
1137
+ "actor": {
1138
+ "type": "App",
1139
+ "id": {
1140
+ "id": "5ed17524aa2ab23bf71d324d",
1141
+ "name": "Meetings",
1142
+ "icon": "https://cdn.workast.io/avatar.png"
1143
+ }
1144
+ },
1145
+ "message": "Standup"
1146
+ },
1147
+ "activityType": "meeting_media_ready"
1148
+ }
1149
+ ],
1150
+ "total": 2244
1151
+ };
1152
+ var reactionReadOnly = {
1153
+ "id": "6a844d5e6bc4270979c7a8ee",
1154
+ "emoji": ":+1:",
1155
+ "total": 1,
1156
+ "users": [
1157
+ {
1158
+ "name": "Grace Hopper"
1159
+ }
1160
+ ]
1161
+ };
1162
+ var search = {
1163
+ "id": "5f0e23098d49422410c20540",
1164
+ "custom": true,
1165
+ "name": "Ship v3",
1166
+ "payload": {
1167
+ "sort": [
1168
+ {
1169
+ "direction": 1,
1170
+ "field": "listName"
1171
+ }
1172
+ ],
1173
+ "includeSubTasks": true,
1174
+ "predicates": [
1175
+ {
1176
+ "value": "pending",
1177
+ "comparison": "eq",
1178
+ "attribute": "status",
1179
+ "type": "status"
1180
+ }
1181
+ ],
1182
+ "columns": [
1183
+ "list"
1184
+ ]
1185
+ },
1186
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/search/5f0e23098d49422410c20540",
1187
+ "isPrimary": false,
1188
+ "users": [],
1189
+ "createdBy": {
1190
+ "user": {
1191
+ "id": "4214932441cb21eebdb396bfe34a8340",
1192
+ "name": "Grace Hopper",
1193
+ "userName": "grace",
1194
+ "email": "grace@example.com",
1195
+ "platformDetails": {
1196
+ "name": "slack",
1197
+ "imChannel": "D3EEXS3J6",
1198
+ "selfChannel": "D1HN843U3",
1199
+ "userId": "U0HBQESA1",
1200
+ "teamId": "T0HBUA0TC"
1201
+ },
1202
+ "confirmed": true,
1203
+ "avatar": "https://cdn.workast.io/avatar.png",
1204
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1205
+ }
1206
+ },
1207
+ "createdAt": "2020-07-14T21:26:33.254Z",
1208
+ "updatedAt": "2023-05-31T23:15:19.277Z",
1209
+ "values": {
1210
+ "list": {
1211
+ "5a99a7a58373fa652992e665": {
1212
+ "id": "5a99a7a58373fa652992e665",
1213
+ "type": "group",
1214
+ "status": "active",
1215
+ "privacy": "team",
1216
+ "link": "https://app.workast.com/list/5a99a7a58373fa652992e665",
1217
+ "name": "Engineering"
1218
+ },
1219
+ "5dc40cff038a590f79c403c0": {
1220
+ "id": "5dc40cff038a590f79c403c0",
1221
+ "type": "group",
1222
+ "status": "active",
1223
+ "privacy": "team",
1224
+ "link": "https://app.workast.com/list/5dc40cff038a590f79c403c0",
1225
+ "name": "Product"
1226
+ },
1227
+ "5fc58f3d15ff9110b64ca426": {
1228
+ "id": "5fc58f3d15ff9110b64ca426",
1229
+ "type": "group",
1230
+ "status": "active",
1231
+ "privacy": "team",
1232
+ "link": "https://app.workast.com/list/5fc58f3d15ff9110b64ca426",
1233
+ "name": "Engineering"
1234
+ }
1235
+ }
1236
+ }
1237
+ };
1238
+ var searchDetail = {
1239
+ "id": "5ddfeab45ff6d925d23c929e",
1240
+ "custom": true,
1241
+ "name": "Ship v3",
1242
+ "payload": {
1243
+ "includeSubTasks": true,
1244
+ "predicates": [
1245
+ {
1246
+ "value": "pending",
1247
+ "comparison": "eq",
1248
+ "attribute": "status",
1249
+ "type": "status"
1250
+ },
1251
+ {
1252
+ "predicates": [
1253
+ {
1254
+ "value": "5a176b5aa67ba147e5057516",
1255
+ "comparison": "eq",
1256
+ "attribute": "listId",
1257
+ "type": "list"
1258
+ },
1259
+ {
1260
+ "value": "5d7be323c662860f7c97ba12",
1261
+ "comparison": "eq",
1262
+ "attribute": "listId",
1263
+ "type": "list"
1264
+ },
1265
+ {
1266
+ "value": "5de581bdf2cec034545231fb",
1267
+ "comparison": "eq",
1268
+ "attribute": "listId",
1269
+ "type": "list"
1270
+ },
1271
+ {
1272
+ "value": "5de5818df2cec034545231a2",
1273
+ "comparison": "eq",
1274
+ "attribute": "listId",
1275
+ "type": "list"
1276
+ },
1277
+ {
1278
+ "value": "5dc40cff038a590f79c403c0",
1279
+ "comparison": "eq",
1280
+ "attribute": "listId",
1281
+ "type": "list"
1282
+ },
1283
+ {
1284
+ "type": "list",
1285
+ "attribute": "listId",
1286
+ "comparison": "eq",
1287
+ "value": "5e3d61b624e278106e8f6cf1"
1288
+ },
1289
+ {
1290
+ "type": "list",
1291
+ "attribute": "listId",
1292
+ "comparison": "eq",
1293
+ "value": "5f230805bf972326deafab16"
1294
+ },
1295
+ {
1296
+ "type": "list",
1297
+ "attribute": "listId",
1298
+ "comparison": "eq",
1299
+ "value": "5fc58f3d15ff9110b64ca426"
1300
+ }
1301
+ ],
1302
+ "type": "or"
1303
+ },
1304
+ {
1305
+ "value": "4214932441cb21eebdb396bfe34a8340",
1306
+ "comparison": "eq",
1307
+ "attribute": "assignedTo",
1308
+ "type": "user"
1309
+ }
1310
+ ],
1311
+ "sort": [
1312
+ {
1313
+ "field": "listName",
1314
+ "direction": 1
1315
+ }
1316
+ ],
1317
+ "columns": [
1318
+ "list",
1319
+ "subList",
1320
+ "assignedTo",
1321
+ "dueDate"
1322
+ ]
1323
+ },
1324
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/search/5ddfeab45ff6d925d23c929e",
1325
+ "isPrimary": false,
1326
+ "users": [],
1327
+ "createdBy": {
1328
+ "user": {
1329
+ "id": "4214932441cb21eebdb396bfe34a8340",
1330
+ "name": "Grace Hopper",
1331
+ "userName": "grace",
1332
+ "email": "grace@example.com",
1333
+ "platformDetails": {
1334
+ "name": "slack",
1335
+ "imChannel": "D3EEXS3J6",
1336
+ "selfChannel": "D1HN843U3",
1337
+ "userId": "U0HBQESA1",
1338
+ "teamId": "T0HBUA0TC"
1339
+ },
1340
+ "confirmed": true,
1341
+ "avatar": "https://cdn.workast.io/avatar.png",
1342
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1343
+ }
1344
+ },
1345
+ "createdAt": "2019-11-28T15:41:40.245Z",
1346
+ "updatedAt": "2021-01-14T18:44:34.151Z",
1347
+ "values": {
1348
+ "list": {
1349
+ "5a176b5aa67ba147e5057516": {
1350
+ "id": "5a176b5aa67ba147e5057516",
1351
+ "type": "group",
1352
+ "status": "archived",
1353
+ "privacy": "team",
1354
+ "link": "https://app.workast.com/list/5a176b5aa67ba147e5057516",
1355
+ "name": "Engineering"
1356
+ },
1357
+ "5d7be323c662860f7c97ba12": {
1358
+ "id": "5d7be323c662860f7c97ba12",
1359
+ "type": "group",
1360
+ "status": "archived",
1361
+ "privacy": "team",
1362
+ "link": "https://app.workast.com/list/5d7be323c662860f7c97ba12",
1363
+ "name": "Product"
1364
+ },
1365
+ "5dc40cff038a590f79c403c0": {
1366
+ "id": "5dc40cff038a590f79c403c0",
1367
+ "type": "group",
1368
+ "status": "active",
1369
+ "privacy": "team",
1370
+ "link": "https://app.workast.com/list/5dc40cff038a590f79c403c0",
1371
+ "name": "Product"
1372
+ },
1373
+ "5de5818df2cec034545231a2": {
1374
+ "id": "5de5818df2cec034545231a2",
1375
+ "type": "group",
1376
+ "status": "archived",
1377
+ "privacy": "team",
1378
+ "link": "https://app.workast.com/list/5de5818df2cec034545231a2",
1379
+ "name": "Product"
1380
+ },
1381
+ "5de581bdf2cec034545231fb": {
1382
+ "id": "5de581bdf2cec034545231fb",
1383
+ "type": "group",
1384
+ "status": "archived",
1385
+ "privacy": "team",
1386
+ "link": "https://app.workast.com/list/5de581bdf2cec034545231fb",
1387
+ "name": "Product"
1388
+ },
1389
+ "5e3d61b624e278106e8f6cf1": {
1390
+ "id": "5e3d61b624e278106e8f6cf1",
1391
+ "type": "group",
1392
+ "status": "archived",
1393
+ "privacy": "team",
1394
+ "link": "https://app.workast.com/list/5e3d61b624e278106e8f6cf1",
1395
+ "name": "Product"
1396
+ },
1397
+ "5f230805bf972326deafab16": {
1398
+ "id": "5f230805bf972326deafab16",
1399
+ "type": "group",
1400
+ "status": "active",
1401
+ "privacy": "team",
1402
+ "link": "https://app.workast.com/list/5f230805bf972326deafab16",
1403
+ "name": "Product"
1404
+ },
1405
+ "5fc58f3d15ff9110b64ca426": {
1406
+ "id": "5fc58f3d15ff9110b64ca426",
1407
+ "type": "group",
1408
+ "status": "active",
1409
+ "privacy": "team",
1410
+ "link": "https://app.workast.com/list/5fc58f3d15ff9110b64ca426",
1411
+ "name": "Product"
1412
+ }
1413
+ },
1414
+ "user": {
1415
+ "4214932441cb21eebdb396bfe34a8340": {
1416
+ "id": "4214932441cb21eebdb396bfe34a8340",
1417
+ "name": "Grace Hopper",
1418
+ "userName": "grace",
1419
+ "email": "grace@example.com",
1420
+ "platformDetails": {
1421
+ "name": "slack",
1422
+ "imChannel": "D3EEXS3J6",
1423
+ "selfChannel": "D1HN843U3",
1424
+ "userId": "U0HBQESA1",
1425
+ "teamId": "T0HBUA0TC"
1426
+ },
1427
+ "confirmed": true,
1428
+ "avatar": "https://cdn.workast.io/avatar.png",
1429
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1430
+ }
1431
+ }
1432
+ },
1433
+ "results": {
1434
+ "tasks": [
1435
+ {
1436
+ "status": "pending",
1437
+ "text": "Ship v3",
1438
+ "shortId": "TGNT8",
1439
+ "createdAt": "2026-07-30T11:06:01.976Z",
1440
+ "updatedAt": "2026-08-03T04:47:29.070Z",
1441
+ "listPosition": -400001,
1442
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/task/11c933fd54aab8cfe9957ab46ccb401f",
1443
+ "calendars": [
1444
+ "4214932441cb21eebdb396bfe34a8340"
1445
+ ],
1446
+ "id": "11c933fd54aab8cfe9957ab46ccb401f",
1447
+ "list": {
1448
+ "id": "5dc40cff038a590f79c403c0",
1449
+ "name": "Development Product",
1450
+ "type": "group",
1451
+ "privacy": "team",
1452
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/space/5dc40cff038a590f79c403c0",
1453
+ "subLists": [
1454
+ {
1455
+ "id": "5dc40d3f7e802c0f93f20232",
1456
+ "name": "Live testing",
1457
+ "listPosition": 1e5,
1458
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1459
+ }
1460
+ ]
1461
+ },
1462
+ "listId": "5dc40cff038a590f79c403c0",
1463
+ "subListId": "5dc40d3f7e802c0f93f20232",
1464
+ "subList": {
1465
+ "id": "5dc40d3f7e802c0f93f20232",
1466
+ "name": "Live testing"
1467
+ },
1468
+ "assignedTo": [
1469
+ {
1470
+ "id": "4214932441cb21eebdb396bfe34a8340",
1471
+ "name": "Grace Hopper",
1472
+ "userName": "grace",
1473
+ "email": "grace@example.com",
1474
+ "platformDetails": {
1475
+ "name": "slack",
1476
+ "imChannel": "D3EEXS3J6",
1477
+ "selfChannel": "D1HN843U3",
1478
+ "userId": "U0HBQESA1",
1479
+ "teamId": "T0HBUA0TC"
1480
+ },
1481
+ "confirmed": true,
1482
+ "avatar": "https://cdn.workast.io/avatar.png",
1483
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1484
+ }
1485
+ ],
1486
+ "subscribers": [
1487
+ {
1488
+ "id": "4214932441cb21eebdb396bfe34a8340",
1489
+ "name": "Grace Hopper",
1490
+ "userName": "grace",
1491
+ "email": "grace@example.com",
1492
+ "platformDetails": {
1493
+ "name": "slack",
1494
+ "imChannel": "D3EEXS3J6",
1495
+ "selfChannel": "D1HN843U3",
1496
+ "userId": "U0HBQESA1",
1497
+ "teamId": "T0HBUA0TC"
1498
+ },
1499
+ "confirmed": true,
1500
+ "avatar": "https://cdn.workast.io/avatar.png",
1501
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1502
+ }
1503
+ ],
1504
+ "allDay": false,
1505
+ "createdBy": {
1506
+ "id": "4214932441cb21eebdb396bfe34a8340",
1507
+ "name": "Grace Hopper",
1508
+ "userName": "grace",
1509
+ "email": "grace@example.com",
1510
+ "platformDetails": {
1511
+ "name": "slack",
1512
+ "imChannel": "D3EEXS3J6",
1513
+ "selfChannel": "D1HN843U3",
1514
+ "userId": "U0HBQESA1",
1515
+ "teamId": "T0HBUA0TC"
1516
+ },
1517
+ "confirmed": true,
1518
+ "avatar": "https://cdn.workast.io/avatar.png",
1519
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1520
+ },
1521
+ "hasDescription": true,
1522
+ "numberOfComments": 0,
1523
+ "numberOfAttachments": 0,
1524
+ "totalSubTasks": 2,
1525
+ "completedSubTasks": 2,
1526
+ "isSubscribed": true,
1527
+ "taskStatus": {
1528
+ "id": "5c7184fa40721e2ed4175a6e",
1529
+ "label": "Open",
1530
+ "color": "#808080",
1531
+ "createdAt": "2019-02-23T17:38:02.928Z",
1532
+ "updatedAt": "2019-02-23T17:38:02.928Z"
1533
+ },
1534
+ "milestones": [],
1535
+ "inHome": false,
1536
+ "fields": []
1537
+ }
1538
+ ],
1539
+ "total": 12,
1540
+ "hiddenTasks": 0
1541
+ }
1542
+ };
1543
+ var searchResults = {
1544
+ "tasks": [
1545
+ {
1546
+ "status": "pending",
1547
+ "text": "Ship v3",
1548
+ "shortId": "T4GNY",
1549
+ "createdAt": "2022-01-10T12:12:46.308Z",
1550
+ "updatedAt": "2025-07-10T08:25:54.460Z",
1551
+ "listPosition": 99999,
1552
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/task/3634dc043f0d415ec2d307284a3cfe69",
1553
+ "calendars": [
1554
+ "b2956627fe26a2c1e4b6d5202413f779"
1555
+ ],
1556
+ "id": "3634dc043f0d415ec2d307284a3cfe69",
1557
+ "list": {
1558
+ "id": "603449f6f107b67c63e8cee9",
1559
+ "name": "Product",
1560
+ "type": "group",
1561
+ "privacy": "private",
1562
+ "link": "https://app.workast.com/list/603449f6f107b67c63e8cee9",
1563
+ "subLists": [
1564
+ {
1565
+ "id": "603449f6f107b67c63e8cee8",
1566
+ "name": "To-do",
1567
+ "listPosition": 1e5,
1568
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1569
+ },
1570
+ {
1571
+ "id": "610ffd8c7374d6331a4178d8",
1572
+ "name": "In Progress",
1573
+ "listPosition": 7e5,
1574
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1575
+ }
1576
+ ]
1577
+ },
1578
+ "listId": "603449f6f107b67c63e8cee9",
1579
+ "subListId": "610ffd8c7374d6331a4178d8",
1580
+ "subList": {
1581
+ "id": "610ffd8c7374d6331a4178d8",
1582
+ "name": "To-do"
1583
+ },
1584
+ "assignedTo": [
1585
+ {
1586
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1587
+ "name": "Ada Lovelace",
1588
+ "userName": "ada",
1589
+ "email": "ada@example.com",
1590
+ "platformDetails": {
1591
+ "name": "slack",
1592
+ "imChannel": "D3F5RQA6B",
1593
+ "selfChannel": "D1LGYBCFQ",
1594
+ "userId": "U0JU26WRG",
1595
+ "teamId": "T0HBUA0TC"
1596
+ },
1597
+ "confirmed": true,
1598
+ "avatar": "https://cdn.workast.io/avatar.png",
1599
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1600
+ }
1601
+ ],
1602
+ "subscribers": [
1603
+ {
1604
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1605
+ "name": "Ada Lovelace",
1606
+ "userName": "ada",
1607
+ "email": "ada@example.com",
1608
+ "platformDetails": {
1609
+ "name": "slack",
1610
+ "imChannel": "D3F5RQA6B",
1611
+ "selfChannel": "D1LGYBCFQ",
1612
+ "userId": "U0JU26WRG",
1613
+ "teamId": "T0HBUA0TC"
1614
+ },
1615
+ "confirmed": true,
1616
+ "avatar": "https://cdn.workast.io/avatar.png",
1617
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1618
+ }
1619
+ ],
1620
+ "allDay": false,
1621
+ "createdBy": {
1622
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1623
+ "name": "Ada Lovelace",
1624
+ "userName": "ada",
1625
+ "email": "ada@example.com",
1626
+ "platformDetails": {
1627
+ "name": "slack",
1628
+ "imChannel": "D3F5RQA6B",
1629
+ "selfChannel": "D1LGYBCFQ",
1630
+ "userId": "U0JU26WRG",
1631
+ "teamId": "T0HBUA0TC"
1632
+ },
1633
+ "confirmed": true,
1634
+ "avatar": "https://cdn.workast.io/avatar.png",
1635
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1636
+ },
1637
+ "hasDescription": true,
1638
+ "numberOfComments": 1,
1639
+ "numberOfAttachments": 0,
1640
+ "totalSubTasks": 1,
1641
+ "completedSubTasks": 0,
1642
+ "isSubscribed": true,
1643
+ "lastComment": {
1644
+ "id": "686f7912fc2fef09733c6f58",
1645
+ "type": "comment",
1646
+ "value": "Standup",
1647
+ "status": "active",
1648
+ "createdAt": "2025-07-10T08:25:54.274Z",
1649
+ "updatedAt": "2025-07-10T08:25:54.274Z",
1650
+ "mentions": [
1651
+ {
1652
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1653
+ "name": "Ada Lovelace",
1654
+ "userName": "ada",
1655
+ "email": "ada@example.com",
1656
+ "platformDetails": {
1657
+ "name": "slack",
1658
+ "imChannel": "D3F5RQA6B",
1659
+ "selfChannel": "D1LGYBCFQ",
1660
+ "userId": "U0JU26WRG",
1661
+ "teamId": "T0HBUA0TC"
1662
+ },
1663
+ "confirmed": true,
1664
+ "avatar": "https://cdn.workast.io/avatar.png",
1665
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1666
+ }
1667
+ ],
1668
+ "reactions": [],
1669
+ "actor": {
1670
+ "type": "User",
1671
+ "data": {
1672
+ "id": "4214932441cb21eebdb396bfe34a8340",
1673
+ "name": "Grace Hopper",
1674
+ "userName": "grace",
1675
+ "email": "grace@example.com",
1676
+ "platformDetails": {
1677
+ "name": "slack",
1678
+ "imChannel": "D3EEXS3J6",
1679
+ "selfChannel": "D1HN843U3",
1680
+ "userId": "U0HBQESA1",
1681
+ "teamId": "T0HBUA0TC"
1682
+ },
1683
+ "confirmed": true,
1684
+ "avatar": "https://cdn.workast.io/avatar.png",
1685
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1686
+ }
1687
+ }
1688
+ },
1689
+ "taskStatus": {
1690
+ "id": "5c7184fa40721e2ed4175a6e",
1691
+ "label": "Open",
1692
+ "color": "#808080",
1693
+ "createdAt": "2019-02-23T17:38:02.928Z",
1694
+ "updatedAt": "2019-02-23T17:38:02.928Z"
1695
+ },
1696
+ "milestones": [],
1697
+ "inHome": false,
1698
+ "fields": []
1699
+ }
1700
+ ],
1701
+ "total": 441,
1702
+ "hiddenTasks": 0
1703
+ };
1704
+ var searches = {
1705
+ "searches": [
1706
+ {
1707
+ "id": "5ddfeab45ff6d925d23c929e",
1708
+ "name": "Ship v3",
1709
+ "custom": true,
1710
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/search/5ddfeab45ff6d925d23c929e",
1711
+ "usersCount": 0,
1712
+ "createdBy": {
1713
+ "user": "4214932441cb21eebdb396bfe34a8340"
1714
+ },
1715
+ "createdAt": "2019-11-28T15:41:40.245Z",
1716
+ "updatedAt": "2021-01-14T18:44:34.151Z"
1717
+ }
1718
+ ],
1719
+ "total": 3
1720
+ };
1721
+ var subList = {
1722
+ "id": "5a6ebde81519395731f90e30",
1723
+ "name": "To-do",
1724
+ "listPosition": 1e5,
1725
+ "createdBy": "b2956627fe26a2c1e4b6d5202413f779"
1726
+ };
1727
+ var tag = {
1728
+ "id": "5a6227d69f0cec2676083529",
1729
+ "name": "Feature",
1730
+ "color": "#61bd4f"
1731
+ };
1732
+ var task = {
1733
+ "id": "3634dc043f0d415ec2d307284a3cfe69",
1734
+ "createdAt": "2022-01-10T12:12:46.308Z",
1735
+ "createdBy": {
1736
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1737
+ "createdAt": "2016-12-28T22:19:45.715Z",
1738
+ "name": "Ada Lovelace",
1739
+ "userName": "ada",
1740
+ "platformDetails": {
1741
+ "name": "slack",
1742
+ "imChannel": "D3F5RQA6B",
1743
+ "selfChannel": "D1LGYBCFQ",
1744
+ "userId": "U0JU26WRG",
1745
+ "teamId": "T0HBUA0TC"
1746
+ },
1747
+ "timezone": "Australia/Canberra",
1748
+ "email": "ada@example.com",
1749
+ "lastActive": "2025-07-10T01:22:15.814Z",
1750
+ "role": "admin",
1751
+ "status": "active",
1752
+ "confirmed": true,
1753
+ "profile": {},
1754
+ "avatar": "https://cdn.workast.io/avatar.png",
1755
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1756
+ },
1757
+ "shortId": "T4GNY",
1758
+ "text": "Ship v3",
1759
+ "assignedTo": [
1760
+ {
1761
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1762
+ "createdAt": "2016-12-28T22:19:45.715Z",
1763
+ "name": "Ada Lovelace",
1764
+ "userName": "ada",
1765
+ "platformDetails": {
1766
+ "name": "slack",
1767
+ "imChannel": "D3F5RQA6B",
1768
+ "selfChannel": "D1LGYBCFQ",
1769
+ "userId": "U0JU26WRG",
1770
+ "teamId": "T0HBUA0TC"
1771
+ },
1772
+ "timezone": "Australia/Canberra",
1773
+ "email": "ada@example.com",
1774
+ "lastActive": "2025-07-10T01:22:15.814Z",
1775
+ "role": "admin",
1776
+ "status": "active",
1777
+ "confirmed": true,
1778
+ "profile": {},
1779
+ "avatar": "https://cdn.workast.io/avatar.png",
1780
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1781
+ }
1782
+ ],
1783
+ "subscribers": [
1784
+ {
1785
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1786
+ "createdAt": "2016-12-28T22:19:45.715Z",
1787
+ "name": "Ada Lovelace",
1788
+ "userName": "ada",
1789
+ "platformDetails": {
1790
+ "name": "slack",
1791
+ "imChannel": "D3F5RQA6B",
1792
+ "selfChannel": "D1LGYBCFQ",
1793
+ "userId": "U0JU26WRG",
1794
+ "teamId": "T0HBUA0TC"
1795
+ },
1796
+ "timezone": "Australia/Canberra",
1797
+ "email": "ada@example.com",
1798
+ "lastActive": "2025-07-10T01:22:15.814Z",
1799
+ "role": "admin",
1800
+ "status": "active",
1801
+ "confirmed": true,
1802
+ "profile": {},
1803
+ "avatar": "https://cdn.workast.io/avatar.png",
1804
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1805
+ },
1806
+ {
1807
+ "id": "4214932441cb21eebdb396bfe34a8340",
1808
+ "createdAt": "2017-04-14T02:14:44.247Z",
1809
+ "name": "Grace Hopper",
1810
+ "userName": "grace",
1811
+ "platformDetails": {
1812
+ "name": "slack",
1813
+ "imChannel": "D3EEXS3J6",
1814
+ "selfChannel": "D1HN843U3",
1815
+ "userId": "U0HBQESA1",
1816
+ "teamId": "T0HBUA0TC"
1817
+ },
1818
+ "timezone": "Australia/Canberra",
1819
+ "email": "grace@example.com",
1820
+ "lastActive": "2026-08-18T11:29:00.207Z",
1821
+ "role": "admin",
1822
+ "status": "active",
1823
+ "confirmed": true,
1824
+ "profile": {},
1825
+ "avatar": "https://cdn.workast.io/avatar.png",
1826
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1827
+ }
1828
+ ],
1829
+ "status": "pending",
1830
+ "allDay": false,
1831
+ "priority": 0,
1832
+ "description": "Ship v3",
1833
+ "listId": "603449f6f107b67c63e8cee9",
1834
+ "list": {
1835
+ "id": "603449f6f107b67c63e8cee9",
1836
+ "hash": "fabc9069cda279d762400d53e2854266",
1837
+ "name": "Product",
1838
+ "avatar": "https://cdn.workast.io/list-avatar.png",
1839
+ "numberOfParticipants": 2,
1840
+ "type": "group",
1841
+ "privacy": "private",
1842
+ "isArchived": false,
1843
+ "platformDetails": {
1844
+ "name": "slack",
1845
+ "channelId": "G01NLRJ053L",
1846
+ "channelName": "engineering",
1847
+ "type": "group",
1848
+ "teamId": "T0HBUA0TC"
1849
+ },
1850
+ "platformNotifications": {
1851
+ "taskCreated": true,
1852
+ "taskCompleted": true
1853
+ },
1854
+ "subLists": [
1855
+ {
1856
+ "id": "603449f6f107b67c63e8cee8",
1857
+ "name": "To-do",
1858
+ "listPosition": 1e5,
1859
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1860
+ },
1861
+ {
1862
+ "id": "610ffd8c7374d6331a4178d8",
1863
+ "name": "In Progress",
1864
+ "listPosition": 7e5,
1865
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1866
+ }
1867
+ ],
1868
+ "defaultSubList": "603449f6f107b67c63e8cee8",
1869
+ "isParticipant": true,
1870
+ "link": "https://app.workast.com/list/603449f6f107b67c63e8cee9"
1871
+ },
1872
+ "listPosition": 99999,
1873
+ "subList": {
1874
+ "id": "610ffd8c7374d6331a4178d8",
1875
+ "name": "To-do",
1876
+ "listPosition": 7e5,
1877
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1878
+ },
1879
+ "subListId": "610ffd8c7374d6331a4178d8",
1880
+ "subTasks": [
1881
+ {
1882
+ "status": "pending",
1883
+ "text": "Ship v3",
1884
+ "shortId": "T4QMF",
1885
+ "createdAt": "2022-01-10T12:15:13.627Z",
1886
+ "updatedAt": "2022-01-10T12:19:50.379Z",
1887
+ "listPosition": 1e5,
1888
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/task/7cec8c8604790b391221049f28d5ba40",
1889
+ "calendars": [
1890
+ "b2956627fe26a2c1e4b6d5202413f779"
1891
+ ],
1892
+ "id": "7cec8c8604790b391221049f28d5ba40",
1893
+ "list": {
1894
+ "id": "603449f6f107b67c63e8cee9",
1895
+ "name": "Product",
1896
+ "type": "group",
1897
+ "privacy": "private",
1898
+ "link": "https://app.workast.com/list/603449f6f107b67c63e8cee9",
1899
+ "subLists": [
1900
+ {
1901
+ "id": "603449f6f107b67c63e8cee8",
1902
+ "name": "To-do",
1903
+ "listPosition": 1e5,
1904
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1905
+ },
1906
+ {
1907
+ "id": "610ffd8c7374d6331a4178d8",
1908
+ "name": "In Progress",
1909
+ "listPosition": 7e5,
1910
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
1911
+ }
1912
+ ]
1913
+ },
1914
+ "listId": "603449f6f107b67c63e8cee9",
1915
+ "parent": {
1916
+ "id": "3634dc043f0d415ec2d307284a3cfe69",
1917
+ "text": "Ship v3",
1918
+ "shortId": "T4GNY",
1919
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/task/3634dc043f0d415ec2d307284a3cfe69"
1920
+ },
1921
+ "assignedTo": [],
1922
+ "subscribers": [
1923
+ {
1924
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1925
+ "name": "Ada Lovelace",
1926
+ "userName": "ada",
1927
+ "email": "ada@example.com",
1928
+ "platformDetails": {
1929
+ "name": "slack",
1930
+ "imChannel": "D3F5RQA6B",
1931
+ "selfChannel": "D1LGYBCFQ",
1932
+ "userId": "U0JU26WRG",
1933
+ "teamId": "T0HBUA0TC"
1934
+ },
1935
+ "confirmed": true,
1936
+ "avatar": "https://cdn.workast.io/avatar.png",
1937
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1938
+ }
1939
+ ],
1940
+ "allDay": false,
1941
+ "createdBy": {
1942
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1943
+ "name": "Ada Lovelace",
1944
+ "userName": "ada",
1945
+ "email": "ada@example.com",
1946
+ "platformDetails": {
1947
+ "name": "slack",
1948
+ "imChannel": "D3F5RQA6B",
1949
+ "selfChannel": "D1LGYBCFQ",
1950
+ "userId": "U0JU26WRG",
1951
+ "teamId": "T0HBUA0TC"
1952
+ },
1953
+ "confirmed": true,
1954
+ "avatar": "https://cdn.workast.io/avatar.png",
1955
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
1956
+ },
1957
+ "hasDescription": true,
1958
+ "numberOfComments": 0,
1959
+ "numberOfAttachments": 0,
1960
+ "subTasks": [],
1961
+ "isSubscribed": false,
1962
+ "taskStatus": {
1963
+ "id": "5c7184fa40721e2ed4175a6e",
1964
+ "label": "Open",
1965
+ "color": "#808080",
1966
+ "createdAt": "2019-02-23T17:38:02.928Z",
1967
+ "updatedAt": "2019-02-23T17:38:02.928Z"
1968
+ },
1969
+ "inHome": false,
1970
+ "fields": []
1971
+ }
1972
+ ],
1973
+ "attachments": [],
1974
+ "totalSubTasks": 1,
1975
+ "completedSubTasks": 0,
1976
+ "numberOfComments": 1,
1977
+ "lastComment": {
1978
+ "id": "686f7912fc2fef09733c6f58",
1979
+ "type": "comment",
1980
+ "value": "Ship v3",
1981
+ "status": "active",
1982
+ "createdAt": "2025-07-10T08:25:54.274Z",
1983
+ "updatedAt": "2025-07-10T08:25:54.274Z",
1984
+ "mentions": [
1985
+ {
1986
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
1987
+ "name": "Ada Lovelace",
1988
+ "userName": "ada",
1989
+ "email": "ada@example.com",
1990
+ "platformDetails": {
1991
+ "name": "slack",
1992
+ "imChannel": "D3F5RQA6B",
1993
+ "selfChannel": "D1LGYBCFQ",
1994
+ "userId": "U0JU26WRG",
1995
+ "teamId": "T0HBUA0TC"
1996
+ },
1997
+ "confirmed": true,
1998
+ "avatar": "https://cdn.workast.io/avatar.png",
1999
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
2000
+ }
2001
+ ],
2002
+ "reactions": [],
2003
+ "actor": {
2004
+ "type": "User",
2005
+ "data": {
2006
+ "id": "4214932441cb21eebdb396bfe34a8340",
2007
+ "name": "Grace Hopper",
2008
+ "userName": "grace",
2009
+ "email": "grace@example.com",
2010
+ "platformDetails": {
2011
+ "name": "slack",
2012
+ "imChannel": "D3EEXS3J6",
2013
+ "selfChannel": "D1HN843U3",
2014
+ "userId": "U0HBQESA1",
2015
+ "teamId": "T0HBUA0TC"
2016
+ },
2017
+ "confirmed": true,
2018
+ "avatar": "https://cdn.workast.io/avatar.png",
2019
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
2020
+ }
2021
+ }
2022
+ },
2023
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/task/3634dc043f0d415ec2d307284a3cfe69",
2024
+ "dependencies": [],
2025
+ "milestones": [],
2026
+ "inHome": false,
2027
+ "fields": [
2028
+ {
2029
+ "id": "620120d5106d941d2ac206c7",
2030
+ "name": "Priority",
2031
+ "description": "Ship v3",
2032
+ "type": "options",
2033
+ "useAsTaskColor": false,
2034
+ "options": [
2035
+ {
2036
+ "id": "620120d5106d941d2ac206c8",
2037
+ "name": "Yes",
2038
+ "color": "#2ef00d"
2039
+ },
2040
+ {
2041
+ "id": "620120d5106d941d2ac206c9",
2042
+ "name": "No",
2043
+ "color": "#ee0551"
2044
+ }
2045
+ ],
2046
+ "value": ""
2047
+ }
2048
+ ],
2049
+ "calendars": [
2050
+ "b2956627fe26a2c1e4b6d5202413f779"
2051
+ ]
2052
+ };
2053
+ var taskActivities = {
2054
+ "activities": [
2055
+ {
2056
+ "id": "61dc22bee45fbc0e26ca342d",
2057
+ "type": "task_created",
2058
+ "createdAt": "2022-01-10T12:12:46.500Z",
2059
+ "updatedAt": "2022-01-10T12:12:46.500Z",
2060
+ "mentions": [],
2061
+ "actor": {
2062
+ "type": "User",
2063
+ "data": {
2064
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
2065
+ "name": "Ada Lovelace",
2066
+ "userName": "ada",
2067
+ "email": "ada@example.com",
2068
+ "platformDetails": {
2069
+ "name": "slack",
2070
+ "imChannel": "D3F5RQA6B",
2071
+ "selfChannel": "D1LGYBCFQ",
2072
+ "userId": "U0JU26WRG",
2073
+ "teamId": "T0HBUA0TC"
2074
+ },
2075
+ "confirmed": true,
2076
+ "avatar": "https://cdn.workast.io/avatar.png",
2077
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
2078
+ }
2079
+ },
2080
+ "userFriendlyContent": {
2081
+ "task": {
2082
+ "id": "3634dc043f0d415ec2d307284a3cfe69",
2083
+ "shortId": "T4GNY",
2084
+ "status": "pending",
2085
+ "subscribers": [
2086
+ "b2956627fe26a2c1e4b6d5202413f779",
2087
+ "4214932441cb21eebdb396bfe34a8340"
2088
+ ],
2089
+ "calendars": [
2090
+ "b2956627fe26a2c1e4b6d5202413f779"
2091
+ ],
2092
+ "text": "Ship v3",
2093
+ "description": "Ship v3",
2094
+ "subListId": "610ffd8c7374d6331a4178d8",
2095
+ "listId": "603449f6f107b67c63e8cee9",
2096
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49/task/3634dc043f0d415ec2d307284a3cfe69",
2097
+ "allDay": false,
2098
+ "createdBy": {
2099
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
2100
+ "createdAt": "2016-12-28T22:19:45.715Z",
2101
+ "name": "Ada Lovelace",
2102
+ "userName": "ada",
2103
+ "platformDetails": {
2104
+ "name": "slack",
2105
+ "imChannel": "D3F5RQA6B",
2106
+ "selfChannel": "D1LGYBCFQ",
2107
+ "userId": "U0JU26WRG",
2108
+ "teamId": "T0HBUA0TC"
2109
+ },
2110
+ "timezone": "Australia/Canberra",
2111
+ "email": "ada@example.com",
2112
+ "lastActive": "2025-07-10T01:22:15.814Z",
2113
+ "role": "admin",
2114
+ "status": "active",
2115
+ "confirmed": true,
2116
+ "profile": {},
2117
+ "avatar": "https://cdn.workast.io/avatar.png",
2118
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
2119
+ },
2120
+ "assignedTo": [
2121
+ {
2122
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
2123
+ "createdAt": "2016-12-28T22:19:45.715Z",
2124
+ "name": "Ada Lovelace",
2125
+ "userName": "ada",
2126
+ "platformDetails": {
2127
+ "name": "slack",
2128
+ "imChannel": "D3F5RQA6B",
2129
+ "selfChannel": "D1LGYBCFQ",
2130
+ "userId": "U0JU26WRG",
2131
+ "teamId": "T0HBUA0TC"
2132
+ },
2133
+ "timezone": "Australia/Canberra",
2134
+ "email": "ada@example.com",
2135
+ "lastActive": "2025-07-10T01:22:15.814Z",
2136
+ "role": "admin",
2137
+ "status": "active",
2138
+ "confirmed": true,
2139
+ "profile": {},
2140
+ "avatar": "https://cdn.workast.io/avatar.png",
2141
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
2142
+ }
2143
+ ]
2144
+ },
2145
+ "list": {
2146
+ "id": "603449f6f107b67c63e8cee9",
2147
+ "name": "Product",
2148
+ "link": "https://app.workast.com/list/603449f6f107b67c63e8cee9",
2149
+ "subLists": [
2150
+ {
2151
+ "id": "603449f6f107b67c63e8cee8",
2152
+ "name": "To-do",
2153
+ "listPosition": 1e5,
2154
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
2155
+ },
2156
+ {
2157
+ "id": "610ffd8c7374d6331a4178d8",
2158
+ "name": "In Progress",
2159
+ "listPosition": 7e5,
2160
+ "createdBy": "4214932441cb21eebdb396bfe34a8340"
2161
+ }
2162
+ ],
2163
+ "platformDetails": {
2164
+ "name": "slack",
2165
+ "channelId": "G01NLRJ053L",
2166
+ "channelName": "engineering",
2167
+ "type": "group",
2168
+ "teamId": "T0HBUA0TC"
2169
+ }
2170
+ },
2171
+ "actor": {
2172
+ "type": "User",
2173
+ "id": {
2174
+ "id": "b2956627fe26a2c1e4b6d5202413f779",
2175
+ "name": "Ada Lovelace",
2176
+ "userName": "ada",
2177
+ "email": "ada@example.com",
2178
+ "platformDetails": {
2179
+ "name": "slack",
2180
+ "imChannel": "D3F5RQA6B",
2181
+ "selfChannel": "D1LGYBCFQ",
2182
+ "userId": "U0JU26WRG",
2183
+ "teamId": "T0HBUA0TC"
2184
+ },
2185
+ "confirmed": true,
2186
+ "avatar": "https://cdn.workast.io/avatar.png",
2187
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
2188
+ }
2189
+ },
2190
+ "message": "{{actor}} created the task {{task}}"
2191
+ }
2192
+ }
2193
+ ],
2194
+ "total": 17
2195
+ };
2196
+ var taskBulkUpdateResult = {
2197
+ "modified": [
2198
+ "3634dc043f0d415ec2d307284a3cfe69"
2199
+ ],
2200
+ "error": []
2201
+ };
2202
+ var tokenDetails = {
2203
+ "app": {
2204
+ "id": "5d9a6b09269e415d36380d23",
2205
+ "name": "Example App"
2206
+ },
2207
+ "user": {
2208
+ "id": "4214932441cb21eebdb396bfe34a8340",
2209
+ "name": "Grace Hopper"
2210
+ },
2211
+ "team": {
2212
+ "id": "ca19601b6bb816ca95386698b3385d49",
2213
+ "name": "Example Team"
2214
+ }
2215
+ };
2216
+ var user = {
2217
+ "id": "4214932441cb21eebdb396bfe34a8340",
2218
+ "virtualId": "c2xhY2svL1QwSEJVQTBUQzpVMEhCUUVTQTE=",
2219
+ "name": "Grace Hopper",
2220
+ "userName": "grace",
2221
+ "avatar": "https://cdn.workast.io/avatar.png"
2222
+ };
2223
+ var userDetail = {
2224
+ "id": "4214932441cb21eebdb396bfe34a8340",
2225
+ "createdAt": "2017-04-14T02:14:44.247Z",
2226
+ "name": "Grace Hopper",
2227
+ "userName": "grace",
2228
+ "platformDetails": {
2229
+ "name": "slack",
2230
+ "imChannel": "D3EEXS3J6",
2231
+ "selfChannel": "D1HN843U3",
2232
+ "userId": "U0HBQESA1",
2233
+ "teamId": "T0HBUA0TC"
2234
+ },
2235
+ "timezone": "Australia/Canberra",
2236
+ "email": "grace@example.com",
2237
+ "lastActive": "2026-08-18T11:29:00.207Z",
2238
+ "role": "admin",
2239
+ "status": "active",
2240
+ "confirmed": true,
2241
+ "profile": {},
2242
+ "avatar": "https://cdn.workast.io/avatar.png",
2243
+ "costCenter": "5c1b92b0a57d2b342c1a610e"
2244
+ };
2245
+ var userDetailWithTeam = {
2246
+ "id": "4214932441cb21eebdb396bfe34a8340",
2247
+ "createdAt": "2017-04-14T02:14:44.247Z",
2248
+ "name": "Grace Hopper",
2249
+ "userName": "grace",
2250
+ "platformDetails": {
2251
+ "name": "slack",
2252
+ "imChannel": "D3EEXS3J6",
2253
+ "selfChannel": "D1HN843U3",
2254
+ "userId": "U0HBQESA1",
2255
+ "teamId": "T0HBUA0TC"
2256
+ },
2257
+ "timezone": "Australia/Canberra",
2258
+ "email": "grace@example.com",
2259
+ "lastActive": "2026-08-18T11:29:00.207Z",
2260
+ "role": "admin",
2261
+ "status": "active",
2262
+ "confirmed": true,
2263
+ "profile": {},
2264
+ "avatar": "https://cdn.workast.io/avatar.png",
2265
+ "costCenter": "5c1b92b0a57d2b342c1a610e",
2266
+ "team": {
2267
+ "id": "ca19601b6bb816ca95386698b3385d49",
2268
+ "name": "Example Team",
2269
+ "url": "https://app.workast.com",
2270
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49",
2271
+ "domain": "example",
2272
+ "totalTasks": 54822,
2273
+ "status": "active",
2274
+ "createdAt": "2018-05-22T14:04:01.652Z",
2275
+ "betaTester": true,
2276
+ "platformDetails": {
2277
+ "name": "slack",
2278
+ "teamId": "T0HBUA0TC",
2279
+ "url": "https://example.slack.com/",
2280
+ "emailDomain": "example.com",
2281
+ "teamSize": 76
2282
+ },
2283
+ "icon": "https://cdn.workast.io/list-avatar.png"
2284
+ }
2285
+ };
2286
+ var userResource = {
2287
+ "id": "4214932441cb21eebdb396bfe34a8340",
2288
+ "name": "Grace Hopper",
2289
+ "email": "grace@example.com",
2290
+ "userName": "grace",
2291
+ "platformDetails": {
2292
+ "name": "slack",
2293
+ "imChannel": "D3EEXS3J6",
2294
+ "selfChannel": "D1HN843U3",
2295
+ "userId": "U0HBQESA1",
2296
+ "teamId": "T0HBUA0TC"
2297
+ },
2298
+ "role": "admin",
2299
+ "confirmed": true,
2300
+ "avatar": "https://cdn.workast.io/avatar.png",
2301
+ "personalListId": "5937861aa2470108bbf72e1d",
2302
+ "team": {
2303
+ "id": "ca19601b6bb816ca95386698b3385d49",
2304
+ "name": "Example Team",
2305
+ "url": "https://app.workast.com",
2306
+ "link": "https://open.workast.app/ca19601b6bb816ca95386698b3385d49",
2307
+ "domain": "example",
2308
+ "totalTasks": 54822,
2309
+ "status": "active",
2310
+ "createdAt": "2018-05-22T14:04:01.652Z",
2311
+ "betaTester": true,
2312
+ "platformDetails": {
2313
+ "name": "slack",
2314
+ "teamId": "T0HBUA0TC",
2315
+ "url": "https://example.slack.com/",
2316
+ "emailDomain": "example.com",
2317
+ "teamSize": 76
2318
+ },
2319
+ "icon": "https://cdn.workast.io/list-avatar.png",
2320
+ "activeUsers": 7
2321
+ },
2322
+ "organization": {
2323
+ "id": "5c1b92b0a57d2b342c1a610d",
2324
+ "name": "Example Organization",
2325
+ "defaultCostCenter": "5c1b92b0a57d2b342c1a610e"
2326
+ },
2327
+ "costCenter": {
2328
+ "id": "5c1b92b0a57d2b342c1a610e",
2329
+ "createdAt": "2018-12-20T13:01:36.566Z",
2330
+ "updatedAt": "2019-01-10T14:56:47.968Z",
2331
+ "name": "Default",
2332
+ "account": "premium",
2333
+ "createdBy": "c51a9c1a2ddfbcefa7abf74036e0c616",
2334
+ "product": {
2335
+ "id": "5ddfe4b458ddf740a5393ae9",
2336
+ "createdAt": "2019-11-28T15:16:04.653Z",
2337
+ "updatedAt": "2020-07-30T14:55:46.510Z",
2338
+ "name": "Professional",
2339
+ "default": false,
2340
+ "isPaid": true,
2341
+ "features": {
2342
+ "createSubtasks": true,
2343
+ "createPrivateSpaces": true,
2344
+ "createLists": true,
2345
+ "createTags": true,
2346
+ "importTemplates": true,
2347
+ "createTemplates": true,
2348
+ "createSearches": true,
2349
+ "createTaskStatus": true,
2350
+ "createGuestAccounts": true,
2351
+ "createTaskDependencies": true,
2352
+ "storageLimit": 5368709120,
2353
+ "createMilestones": true,
2354
+ "accessMeetings": true,
2355
+ "calendarSync": true,
2356
+ "downloadSearch": true,
2357
+ "createSpaces": true,
2358
+ "appLogin": true,
2359
+ "createFields": true,
2360
+ "timelineView": true,
2361
+ "aiWorkflows": true,
2362
+ "notetakerMinutesPerMonth": 600
2363
+ },
2364
+ "trialling": false,
2365
+ "currentPlan": {
2366
+ "id": "5ddfe4b458ddf740a5393aea",
2367
+ "term": "annual",
2368
+ "price": 9.95,
2369
+ "flatFee": false
2370
+ }
2371
+ },
2372
+ "storage": {
2373
+ "used": 2315908683,
2374
+ "total": 37580963840,
2375
+ "usedPercentage": 6.16,
2376
+ "freePercentage": 93.84
2377
+ },
2378
+ "isDefault": true,
2379
+ "activeUsers": 7
2380
+ },
2381
+ "calendars": [],
2382
+ "timezone": "Australia/Canberra",
2383
+ "reminders": {
2384
+ "channels": {
2385
+ "slack": true,
2386
+ "email": false
2387
+ },
2388
+ "days": [
2389
+ 1,
2390
+ 2,
2391
+ 3,
2392
+ 4,
2393
+ 5
2394
+ ],
2395
+ "hour": 9,
2396
+ "hourUTC": 23,
2397
+ "taskAssignedToOthers": false,
2398
+ "taskDueInTheFutureDays": 0
2399
+ },
2400
+ "notifications": {
2401
+ "assignedToTasks": true,
2402
+ "completedTasks": true,
2403
+ "appAnnouncements": true,
2404
+ "taskReminderMinutes": 30
2405
+ },
2406
+ "dateSettings": {
2407
+ "startOfWeek": "monday",
2408
+ "timeFormat": "HH",
2409
+ "dateFormat": "M/D/Y"
2410
+ },
2411
+ "myTasksSearchSettings": {
2412
+ "excludeAssignToOthers": true,
2413
+ "excludedLists": [
2414
+ {
2415
+ "id": "5937861aa2470108bbf72e1d",
2416
+ "name": "Personal tasks",
2417
+ "type": "personal",
2418
+ "privacy": "private"
2419
+ },
2420
+ {
2421
+ "id": "59daaf15c7d6260e7f470356",
2422
+ "name": "Product",
2423
+ "type": "group",
2424
+ "privacy": "team"
2425
+ }
2426
+ ]
2427
+ },
2428
+ "profile": {},
2429
+ "storage": {
2430
+ "used": 627473089,
2431
+ "total": 5368709120,
2432
+ "usedPercentage": 11.69,
2433
+ "freePercentage": 88.31
2434
+ }
2435
+ };
2436
+ var workflow = {
2437
+ "id": "673b14ef1231f8099d5c96a4",
2438
+ "trigger": {
2439
+ "name": "event",
2440
+ "value": "task_created"
2441
+ },
2442
+ "prompt": "Ship v3",
2443
+ "lists": [
2444
+ {
2445
+ "id": "673b0b7b1231f8099d5ba067",
2446
+ "type": "group",
2447
+ "status": "archived",
2448
+ "privacy": "team",
2449
+ "link": "https://app.workast.com/list/673b0b7b1231f8099d5ba067",
2450
+ "name": "Engineering"
2451
+ }
2452
+ ],
2453
+ "status": "active"
2454
+ };
2455
+ var workflowDetail = {
2456
+ "id": "673b14ef1231f8099d5c96a4",
2457
+ "trigger": {
2458
+ "name": "event",
2459
+ "value": "task_created"
2460
+ },
2461
+ "prompt": "Ship v3",
2462
+ "lists": [
2463
+ {
2464
+ "id": "673b0b7b1231f8099d5ba067",
2465
+ "type": "group",
2466
+ "status": "archived",
2467
+ "privacy": "team",
2468
+ "link": "https://app.workast.com/list/673b0b7b1231f8099d5ba067",
2469
+ "name": "Engineering"
2470
+ }
2471
+ ],
2472
+ "status": "active",
2473
+ "runs": [
2474
+ {
2475
+ "id": "673bffe012f608759e4bebca",
2476
+ "result": "Ship v3",
2477
+ "activity": {
2478
+ "id": "673bffdc77ac5a0996dc537d",
2479
+ "task": {
2480
+ "id": "e1bb3fcad526680b6e7387e988fea1d9",
2481
+ "text": "Ship v3",
2482
+ "shortId": "T31UJ",
2483
+ "link": "https://app.workast.com/task/e1bb3fcad526680b6e7387e988fea1d9"
2484
+ }
2485
+ },
2486
+ "createdAt": "2024-11-19T03:02:56.261Z"
2487
+ }
2488
+ ],
2489
+ "totalRuns": 4
2490
+ };
2491
+ var workflows = {
2492
+ "workflows": [
2493
+ {
2494
+ "id": "673b14ef1231f8099d5c96a4",
2495
+ "trigger": {
2496
+ "name": "event",
2497
+ "value": "task_created"
2498
+ },
2499
+ "prompt": "Ship v3",
2500
+ "lists": [
2501
+ {
2502
+ "id": "673b0b7b1231f8099d5ba067",
2503
+ "type": "group",
2504
+ "status": "archived",
2505
+ "privacy": "team",
2506
+ "link": "https://app.workast.com/list/673b0b7b1231f8099d5ba067",
2507
+ "name": "Engineering"
2508
+ }
2509
+ ],
2510
+ "status": "active"
2511
+ }
2512
+ ],
2513
+ "total": 11
2514
+ };
2515
+
2516
+ // src/mock.ts
2517
+ var errors = {
2518
+ unauthorized: new AuthenticationError("Unauthorized"),
2519
+ forbidden: new PermissionError("Forbidden"),
2520
+ notFound: new NotFoundError("Not found"),
2521
+ validation: new ValidationError("Validation failed")
2522
+ };
2523
+ var ROOT_KEYS = /* @__PURE__ */ new Set(["calls", "pending", "reset", "restore"]);
2524
+ var active = null;
2525
+ var patches = [];
2526
+ function canonicalize(value) {
2527
+ if (Array.isArray(value)) {
2528
+ return value.map(canonicalize);
2529
+ }
2530
+ if (value !== null && typeof value === "object") {
2531
+ const result = {};
2532
+ for (const key of Object.keys(value).sort()) {
2533
+ result[key] = canonicalize(value[key]);
2534
+ }
2535
+ return result;
2536
+ }
2537
+ return value;
2538
+ }
2539
+ function valuesEqual(left, right) {
2540
+ return JSON.stringify(canonicalize(left)) === JSON.stringify(canonicalize(right));
2541
+ }
2542
+ function argsMatch(expected, actual) {
2543
+ if (expected.length === 1 && typeof expected[0] === "function") {
2544
+ return expected[0](...actual) === true;
2545
+ }
2546
+ if (expected.length > actual.length) {
2547
+ return false;
2548
+ }
2549
+ for (let i = 0; i < expected.length; i += 1) {
2550
+ const slot = expected[i];
2551
+ if (typeof slot === "function") {
2552
+ if (slot(actual[i]) !== true) {
2553
+ return false;
2554
+ }
2555
+ } else if (!valuesEqual(slot, actual[i])) {
2556
+ return false;
2557
+ }
2558
+ }
2559
+ return true;
2560
+ }
2561
+ function findInterceptor(session, method, actual) {
2562
+ return session.interceptors.find(
2563
+ (interceptor) => !interceptor.used && interceptor.method === method && argsMatch(interceptor.expectedArgs, actual)
2564
+ );
2565
+ }
2566
+ function pendingMethods(session) {
2567
+ return session.interceptors.filter((interceptor) => !interceptor.used).map((interceptor) => interceptor.method);
2568
+ }
2569
+ function wrapMethod(proto, key, method) {
2570
+ const record = proto;
2571
+ const original = record[key];
2572
+ if (typeof original !== "function") {
2573
+ return;
2574
+ }
2575
+ if (patches.some((patch) => patch.proto === record && patch.key === key)) {
2576
+ return;
2577
+ }
2578
+ record[key] = async function patched(...args) {
2579
+ if (!active) {
2580
+ return original.apply(this, args);
2581
+ }
2582
+ active.calls.push({ method, args });
2583
+ const interceptor = findInterceptor(active, method, args);
2584
+ if (!interceptor) {
2585
+ const pending = pendingMethods(active).join(", ") || "(none)";
2586
+ throw new Error(`No pending interceptor for ${method}. Pending: ${pending}`);
2587
+ }
2588
+ interceptor.used = true;
2589
+ if (interceptor.error) {
2590
+ throw interceptor.error;
2591
+ }
2592
+ return interceptor.value;
2593
+ };
2594
+ patches.push({ proto: record, key, original });
2595
+ }
2596
+ function isNestedResource(value) {
2597
+ if (value === null || typeof value !== "object") {
2598
+ return false;
2599
+ }
2600
+ const proto = Object.getPrototypeOf(value);
2601
+ return proto !== Object.prototype && proto !== null;
2602
+ }
2603
+ function walkResource(obj, path) {
2604
+ const proto = Object.getPrototypeOf(obj);
2605
+ if (proto && proto !== Object.prototype) {
2606
+ for (const key of Object.getOwnPropertyNames(proto)) {
2607
+ if (key === "constructor") {
2608
+ continue;
2609
+ }
2610
+ const descriptor = Object.getOwnPropertyDescriptor(proto, key);
2611
+ if (descriptor && typeof descriptor.value === "function") {
2612
+ wrapMethod(proto, key, [...path, key].join("."));
2613
+ }
2614
+ }
2615
+ }
2616
+ for (const key of Object.keys(obj)) {
2617
+ const value = obj[key];
2618
+ if (typeof value === "function" || value instanceof Workast) {
2619
+ continue;
2620
+ }
2621
+ if (isNestedResource(value)) {
2622
+ walkResource(value, [...path, key]);
2623
+ }
2624
+ }
2625
+ }
2626
+ function patchPrototypes() {
2627
+ if (patches.length > 0) {
2628
+ return;
2629
+ }
2630
+ const probe = new Workast({
2631
+ apiKey: "test-api-key",
2632
+ fetch: () => Promise.resolve(new Response(null, { status: 204 }))
2633
+ });
2634
+ for (const key of Object.keys(probe)) {
2635
+ const value = probe[key];
2636
+ if (typeof value === "function" || value instanceof Workast) {
2637
+ continue;
2638
+ }
2639
+ if (isNestedResource(value)) {
2640
+ walkResource(value, [key]);
2641
+ }
2642
+ }
2643
+ }
2644
+ function unpatchPrototypes() {
2645
+ for (const { proto, key, original } of patches) {
2646
+ proto[key] = original;
2647
+ }
2648
+ patches.length = 0;
2649
+ }
2650
+ function addInterceptor(session, method, expectedArgs, error, value) {
2651
+ const interceptor = {
2652
+ method,
2653
+ expectedArgs,
2654
+ used: false,
2655
+ error,
2656
+ value,
2657
+ wasCalled() {
2658
+ return interceptor.used;
2659
+ }
2660
+ };
2661
+ session.interceptors.push(interceptor);
2662
+ return interceptor;
2663
+ }
2664
+ function registrar(session, path) {
2665
+ const method = path.join(".");
2666
+ return {
2667
+ on(...expectedArgs) {
2668
+ return {
2669
+ resolves(value) {
2670
+ return addInterceptor(session, method, expectedArgs, void 0, value);
2671
+ },
2672
+ rejects(error) {
2673
+ return addInterceptor(session, method, expectedArgs, error, void 0);
2674
+ }
2675
+ };
2676
+ }
2677
+ };
2678
+ }
2679
+ function resourceTree(session, path) {
2680
+ return new Proxy(registrar(session, path), {
2681
+ get(target, prop) {
2682
+ if (prop === "on") {
2683
+ return target.on;
2684
+ }
2685
+ if (typeof prop !== "string") {
2686
+ return void 0;
2687
+ }
2688
+ return resourceTree(session, [...path, prop]);
2689
+ }
2690
+ });
2691
+ }
2692
+ function mockWorkast() {
2693
+ patchPrototypes();
2694
+ const session = {
2695
+ calls: [],
2696
+ interceptors: []
2697
+ };
2698
+ active = session;
2699
+ const api = {
2700
+ calls() {
2701
+ return session.calls;
2702
+ },
2703
+ pending() {
2704
+ return session.interceptors.filter((interceptor) => !interceptor.used);
2705
+ },
2706
+ reset() {
2707
+ for (const interceptor of session.interceptors) {
2708
+ interceptor.used = false;
2709
+ }
2710
+ session.interceptors.length = 0;
2711
+ session.calls.length = 0;
2712
+ },
2713
+ restore() {
2714
+ api.reset();
2715
+ unpatchPrototypes();
2716
+ active = null;
2717
+ }
2718
+ };
2719
+ return new Proxy(api, {
2720
+ get(target, prop) {
2721
+ if (typeof prop === "string" && ROOT_KEYS.has(prop)) {
2722
+ return target[prop];
2723
+ }
2724
+ if (typeof prop !== "string") {
2725
+ return void 0;
2726
+ }
2727
+ return resourceTree(session, [prop]);
2728
+ }
2729
+ });
2730
+ }
2731
+ export {
2732
+ errors,
2733
+ examples_exports as examples,
2734
+ mockWorkast
2735
+ };
2736
+ //# sourceMappingURL=mock.js.map