@assembly-js/node-sdk 3.19.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.
Files changed (42) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +152 -0
  3. package/dist/api/init.d.ts +25 -0
  4. package/dist/api/init.js +116 -0
  5. package/dist/api/init.js.map +1 -0
  6. package/dist/bin/decode-token.d.ts +2 -0
  7. package/dist/bin/decode-token.js +238 -0
  8. package/dist/bin/decode-token.js.map +1 -0
  9. package/dist/bin/run-with-http-monitor.d.ts +2 -0
  10. package/dist/bin/run-with-http-monitor.js +7 -0
  11. package/dist/bin/run-with-http-monitor.js.map +1 -0
  12. package/dist/codegen/api/core/ApiError.d.ts +10 -0
  13. package/dist/codegen/api/core/ApiError.js +12 -0
  14. package/dist/codegen/api/core/ApiError.js.map +1 -0
  15. package/dist/codegen/api/core/ApiRequestOptions.d.ts +20 -0
  16. package/dist/codegen/api/core/ApiRequestOptions.js +2 -0
  17. package/dist/codegen/api/core/ApiRequestOptions.js.map +1 -0
  18. package/dist/codegen/api/core/ApiResult.d.ts +7 -0
  19. package/dist/codegen/api/core/ApiResult.js +2 -0
  20. package/dist/codegen/api/core/ApiResult.js.map +1 -0
  21. package/dist/codegen/api/core/CancelablePromise.d.ts +31 -0
  22. package/dist/codegen/api/core/CancelablePromise.js +230 -0
  23. package/dist/codegen/api/core/CancelablePromise.js.map +1 -0
  24. package/dist/codegen/api/core/OpenAPI.d.ts +16 -0
  25. package/dist/codegen/api/core/OpenAPI.js +15 -0
  26. package/dist/codegen/api/core/OpenAPI.js.map +1 -0
  27. package/dist/codegen/api/core/request.d.ts +57 -0
  28. package/dist/codegen/api/core/request.js +351 -0
  29. package/dist/codegen/api/core/request.js.map +1 -0
  30. package/dist/codegen/api/index.d.ts +5 -0
  31. package/dist/codegen/api/index.js +9 -0
  32. package/dist/codegen/api/index.js.map +1 -0
  33. package/dist/codegen/api/services/DefaultService.d.ts +3267 -0
  34. package/dist/codegen/api/services/DefaultService.js +1459 -0
  35. package/dist/codegen/api/services/DefaultService.js.map +1 -0
  36. package/dist/package.json +46 -0
  37. package/dist/tsconfig.build.tsbuildinfo +1 -0
  38. package/dist/tsconfig.tsbuildinfo +1 -0
  39. package/dist/utils/crypto.d.ts +19 -0
  40. package/dist/utils/crypto.js +42 -0
  41. package/dist/utils/crypto.js.map +1 -0
  42. package/package.json +49 -0
@@ -0,0 +1,3267 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class DefaultService {
3
+ /**
4
+ * List App Installs
5
+ * This endpoint lists all app installs within the workspace associated with this API Key. <br/><br/>Returns the apps in sorted order as displayed in the left navbar.
6
+ * @returns any 200
7
+ * @throws ApiError
8
+ */
9
+ static listAppInstalls(): CancelablePromise<
10
+ Array<{
11
+ appId?: string;
12
+ displayName?: string;
13
+ id?: string;
14
+ type?: string;
15
+ object?: string;
16
+ }>
17
+ >;
18
+ /**
19
+ * Retrieve App Install
20
+ * This API endpoint retrieves a specific App Install.
21
+ * @returns any 200
22
+ * @throws ApiError
23
+ */
24
+ static retrieveAppInstall({
25
+ installId,
26
+ }: {
27
+ /**
28
+ * The App Install id to retrive
29
+ */
30
+ installId: string;
31
+ }): CancelablePromise<{
32
+ appId?: string;
33
+ displayName?: string;
34
+ id?: string;
35
+ type?: string;
36
+ object?: string;
37
+ }>;
38
+ /**
39
+ * List App Connections
40
+ * This endpoint lists all app connections for the specified manual app install within the workspace.
41
+ * @returns any 200
42
+ * @throws ApiError
43
+ */
44
+ static listAppConnections({
45
+ installId,
46
+ clientId,
47
+ companyId,
48
+ }: {
49
+ installId: string;
50
+ /**
51
+ * If specified, only app connections that are visible to this client will be returned
52
+ */
53
+ clientId?: string;
54
+ /**
55
+ * If specified, only app connections that are associated with this company will be returned
56
+ */
57
+ companyId?: string;
58
+ }): CancelablePromise<
59
+ Array<{
60
+ clientIds?: Array<string>;
61
+ companyId?: any;
62
+ content?: string;
63
+ createdAt?: string;
64
+ id?: string;
65
+ installId?: string;
66
+ membershipType?: string;
67
+ object?: string;
68
+ type?: string;
69
+ updatedAt?: string;
70
+ }>
71
+ >;
72
+ /**
73
+ * Create App Connection
74
+ * This endpoint creates an app connection for a manual app install. One of <b>companyId</b> or <b>clientIds</b> must be non-null, specifying the client(s)/company who will receive the specified content.
75
+ * @returns any 200
76
+ * @throws ApiError
77
+ */
78
+ static createAppConnection({
79
+ installId,
80
+ requestBody,
81
+ }: {
82
+ /**
83
+ * The manual app install id to connect
84
+ */
85
+ installId: string;
86
+ requestBody?: {
87
+ /**
88
+ * The company ID to create the connection for if creating a company membership type connection. Also required when creating individual or group connections where the specified clients belong to multiple companies
89
+ */
90
+ companyId?: string;
91
+ /**
92
+ * The client users to be included as members of the app connection if creating a group membership type connection. Client users must be part of same company.
93
+ */
94
+ clientIds?: Array<string>;
95
+ /**
96
+ * The type of connection to create, this will affect how clients view the connection within the workspace. One of: `embed` or `link`.
97
+ */
98
+ type: string;
99
+ /**
100
+ * The content that should be seen by the members of the app connection. Can be a public URL or iframe.
101
+ */
102
+ content: string;
103
+ };
104
+ }): CancelablePromise<{
105
+ clientIds?: Array<string>;
106
+ companyId?: string;
107
+ content?: string;
108
+ createdAt?: string;
109
+ id?: string;
110
+ installId?: string;
111
+ membershipType?: string;
112
+ object?: string;
113
+ type?: string;
114
+ updatedAt?: string;
115
+ }>;
116
+ /**
117
+ * Create Client
118
+ * This API endpoint creates a client.
119
+ * @returns any 200
120
+ * @throws ApiError
121
+ */
122
+ static createClient({
123
+ sendInvite,
124
+ requestBody,
125
+ }: {
126
+ /**
127
+ * If true then send an account invite to the client.
128
+ */
129
+ sendInvite?: boolean;
130
+ requestBody?: {
131
+ /**
132
+ * The client's given name (first name)
133
+ */
134
+ givenName: string;
135
+ /**
136
+ * The client's family name (last name)
137
+ */
138
+ familyName: string;
139
+ /**
140
+ * The client's email
141
+ */
142
+ email: string;
143
+ /**
144
+ * The ID of the company this client belongs to. When no ID is provided, a placeholder company will be created and returned in the response object
145
+ */
146
+ /**
147
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
148
+ */
149
+ companyId?: string;
150
+ /**
151
+ * The keys are the `key` of the custom field property, and the values are an array of custom field option `key`s (in the case of multiSelect custom fields), or the direct value in the case of all other types of custom fields.
152
+ */
153
+ customFields?: string;
154
+ };
155
+ }): CancelablePromise<{
156
+ id?: string;
157
+ object?: string;
158
+ createdAt?: string;
159
+ givenName?: string;
160
+ familyName?: string;
161
+ email?: string;
162
+ /**
163
+ * @deprecated
164
+ */
165
+ /**
166
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
167
+ */
168
+ companyId?: string;
169
+ companyIds?: Array<string>;
170
+ status?: string;
171
+ fallbackColor?: string;
172
+ inviteUrl?: string;
173
+ avatarImageUrl?: string;
174
+ firstLoginDate?: string;
175
+ lastLoginDate?: string;
176
+ customFields?: {
177
+ phoneNumber?: string;
178
+ tags?: Array<string>;
179
+ address?: {
180
+ country?: string;
181
+ region?: string;
182
+ postalCode?: string;
183
+ addressLine1?: string;
184
+ addressLine2?: string;
185
+ city?: string;
186
+ fullAddress?: string;
187
+ };
188
+ email?: string;
189
+ url?: string;
190
+ number?: number;
191
+ };
192
+ creationMethod?: string;
193
+ updatedAt?: string;
194
+ }>;
195
+ /**
196
+ * List Clients
197
+ * This API endpoint retrieves a list of clients. <br><br>You can use the query params to filter a subset of clients who match specific field values.
198
+ * @returns any 200
199
+ * @throws ApiError
200
+ */
201
+ static listClients({
202
+ companyId,
203
+ email,
204
+ givenName,
205
+ familyName,
206
+ nextToken,
207
+ limit,
208
+ }: {
209
+ /**
210
+ * Any of the company IDs of the client user(s) to query for.
211
+ */
212
+ /**
213
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
214
+ */
215
+ companyId?: string;
216
+ /**
217
+ * The email of the client user to query for (exact match, case-sensitive).
218
+ */
219
+ email?: string;
220
+ /**
221
+ * The given name of the client user(s) to query for (exact match, case-sensitive).
222
+ */
223
+ givenName?: string;
224
+ /**
225
+ * The family name of the client user(s) to query for (exact match, case-sensitive).
226
+ */
227
+ familyName?: string;
228
+ nextToken?: string;
229
+ limit?: number;
230
+ }): CancelablePromise<{
231
+ data?: Array<{
232
+ id?: string;
233
+ object?: string;
234
+ createdAt?: string;
235
+ givenName?: string;
236
+ familyName?: string;
237
+ email?: string;
238
+ /**
239
+ * @deprecated
240
+ */
241
+ /**
242
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
243
+ */
244
+ companyId?: string;
245
+ companyIds?: Array<string>;
246
+ status?: string;
247
+ inviteUrl?: string;
248
+ avatarImageUrl?: string;
249
+ firstLoginDate?: string;
250
+ lastLoginDate?: string;
251
+ customFields?: {
252
+ phoneNumber?: string;
253
+ tags?: Array<string>;
254
+ address?: {
255
+ country?: string;
256
+ region?: string;
257
+ postalCode?: string;
258
+ addressLine1?: string;
259
+ addressLine2?: string;
260
+ city?: string;
261
+ fullAddress?: string;
262
+ };
263
+ email?: string;
264
+ text?: string;
265
+ url?: string;
266
+ number?: number;
267
+ };
268
+ fallbackColor?: string;
269
+ creationMethod?: string;
270
+ updatedAt?: string;
271
+ }>;
272
+ nextToken?: string;
273
+ }>;
274
+ /**
275
+ * Retrieve Client
276
+ * This API endpoint retrieves a specific client.
277
+ * @returns any 200
278
+ * @throws ApiError
279
+ */
280
+ static retrieveClient({
281
+ id,
282
+ }: {
283
+ /**
284
+ * The unique ID of the client to retrieve
285
+ */
286
+ id: string;
287
+ }): CancelablePromise<{
288
+ id?: string;
289
+ object?: string;
290
+ createdAt?: string;
291
+ givenName?: string;
292
+ familyName?: string;
293
+ email?: string;
294
+ /**
295
+ * @deprecated
296
+ */
297
+ /**
298
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
299
+ */
300
+ companyId?: string;
301
+ companyIds?: Array<string>;
302
+ status?: string;
303
+ fallbackColor?: string;
304
+ inviteUrl?: string;
305
+ avatarImageUrl?: string;
306
+ firstLoginDate?: string;
307
+ lastLoginDate?: string;
308
+ customFields?: {
309
+ phoneNumber?: string;
310
+ tags?: Array<string>;
311
+ address?: {
312
+ country?: string;
313
+ region?: string;
314
+ postalCode?: string;
315
+ addressLine1?: string;
316
+ addressLine2?: string;
317
+ city?: string;
318
+ fullAddress?: string;
319
+ };
320
+ email?: string;
321
+ text?: string;
322
+ url?: string;
323
+ number?: number;
324
+ };
325
+ creationMethod?: string;
326
+ updatedAt?: string;
327
+ }>;
328
+ /**
329
+ * Update Client
330
+ * This API endpoint updates a specific client. <br><br> This PATCH request will only update the fields you specify (including custom fields), leaving the rest as they were. <br><br>Please note that for multi-select (tag) custom fields, all custom field options (tag values) must be included, the PATCH request will not preserve existing custom field options (tags).
331
+ * @returns any 200
332
+ * @throws ApiError
333
+ */
334
+ static updateClient({
335
+ id,
336
+ sendInvite,
337
+ requestBody,
338
+ }: {
339
+ /**
340
+ * The ID of the client to update
341
+ */
342
+ id: string;
343
+ /**
344
+ * Sends an email invitation to the updated client.
345
+ */
346
+ sendInvite?: boolean;
347
+ requestBody?: {
348
+ /**
349
+ * The client's given name.
350
+ */
351
+ givenName?: string;
352
+ /**
353
+ * The client's family name.
354
+ */
355
+ familyName?: string;
356
+ /**
357
+ * The ID of the company to assign this client to. This will replace the current companies that the client is assigned to.
358
+ */
359
+ /**
360
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
361
+ */
362
+ companyId?: string;
363
+ /**
364
+ * The key is the custom field’s key, and the value is either an array of option keys (for multi-select fields) or a direct value for all other types. You can clear a field by passing an empty string (or empty array for multi-select); omitting the field leaves it unchanged.
365
+ */
366
+ customFields?: string;
367
+ };
368
+ }): CancelablePromise<{
369
+ id?: string;
370
+ object?: string;
371
+ createdAt?: string;
372
+ givenName?: string;
373
+ familyName?: string;
374
+ email?: string;
375
+ /**
376
+ * @deprecated
377
+ */
378
+ /**
379
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
380
+ */
381
+ companyId?: string;
382
+ companyIds?: Array<string>;
383
+ status?: string;
384
+ fallbackColor?: string;
385
+ inviteUrl?: string;
386
+ avatarImageUrl?: string;
387
+ firstLoginDate?: string;
388
+ lastLoginDate?: string;
389
+ customFields?: {
390
+ phoneNumber?: string;
391
+ tags?: Array<string>;
392
+ address?: {
393
+ country?: string;
394
+ region?: string;
395
+ postalCode?: string;
396
+ addressLine1?: string;
397
+ addressLine2?: string;
398
+ city?: string;
399
+ fullAddress?: string;
400
+ };
401
+ };
402
+ creationMethod?: string;
403
+ updatedAt?: string;
404
+ }>;
405
+ /**
406
+ * Update a Client (destructive)
407
+ * This API endpoint updates a specific client.<br> <br>This PUT request will perform a destructive update and clear all unspecified field values, including custom fields.
408
+ * @returns any 200
409
+ * @throws ApiError
410
+ */
411
+ static updateAClientDestructive({
412
+ id,
413
+ requestBody,
414
+ }: {
415
+ /**
416
+ * The ID of the client to update
417
+ */
418
+ id: string;
419
+ requestBody?: {
420
+ /**
421
+ * The client's given name.
422
+ */
423
+ givenName: string;
424
+ /**
425
+ * The client's family name.
426
+ */
427
+ familyName: string;
428
+ /**
429
+ * The ID of the company this client belongs to. If this field is left empty, the client will be **removed** from their existing company.
430
+ */
431
+ /**
432
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
433
+ */
434
+ companyId?: string;
435
+ /**
436
+ * The key is the `key` of the custom field property, and the value is an array of `key`s (in the case of multiSelect custom fields), or the direct value in the case of all other types of custom fields.
437
+ */
438
+ customFields?: string;
439
+ };
440
+ }): CancelablePromise<{
441
+ id?: string;
442
+ object?: string;
443
+ createdAt?: string;
444
+ givenName?: string;
445
+ familyName?: string;
446
+ email?: string;
447
+ /**
448
+ * @deprecated
449
+ */
450
+ /**
451
+ * @deprecated since v3.15.0 - Use companyIds array instead for multi-company support
452
+ */
453
+ companyId?: string;
454
+ companyIds?: Array<string>;
455
+ status?: string;
456
+ inviteUrl?: string;
457
+ avatarImageUrl?: string;
458
+ firstLoginDate?: string;
459
+ lastLoginDate?: string;
460
+ customFields?: {
461
+ phoneNumber?: string;
462
+ tags?: Array<string>;
463
+ };
464
+ creationMethod?: string;
465
+ }>;
466
+ /**
467
+ * Delete Client
468
+ * This API endpoint permanently removes a specific client. When a client is deleted, the associated individual file and message channels are also deleted.
469
+ * @returns any 200
470
+ * @throws ApiError
471
+ */
472
+ static deleteClient({
473
+ id,
474
+ }: {
475
+ /**
476
+ * The ID of the client to delete
477
+ */
478
+ id: string;
479
+ }): CancelablePromise<{
480
+ id?: string;
481
+ object?: string;
482
+ deleted?: boolean;
483
+ }>;
484
+ /**
485
+ * Create Company
486
+ * This API endpoint creates a company.
487
+ * @returns any 200
488
+ * @throws ApiError
489
+ */
490
+ static createCompany({
491
+ requestBody,
492
+ }: {
493
+ requestBody?: {
494
+ /**
495
+ * The company's name
496
+ */
497
+ name: string;
498
+ /**
499
+ * Link (URL) to an image to use as the company's icon. Must be a publicly accessible URL.
500
+ */
501
+ iconImageUrl?: string;
502
+ /**
503
+ * Hexadecimal value (i.e. "#9BBFFF") of the color used to create an icon if an iconImageUrl is not defined on the company
504
+ */
505
+ fallbackColor?: string;
506
+ /**
507
+ * The keys are the key of the custom field property, and the values are an array of custom field option keys (in the case of multiSelect custom fields), or the direct value in the case of all other types of custom fields.
508
+ */
509
+ customFields?: string;
510
+ };
511
+ }): CancelablePromise<{
512
+ id?: string;
513
+ object?: string;
514
+ createdAt?: string;
515
+ name?: string;
516
+ fallbackColor?: string;
517
+ iconImageUrl?: string;
518
+ isPlaceholder?: boolean;
519
+ customFields?: {
520
+ phoneNumber?: string;
521
+ tags?: Array<string>;
522
+ address?: {
523
+ country?: string;
524
+ region?: string;
525
+ postalCode?: string;
526
+ addressLine1?: string;
527
+ addressLine2?: string;
528
+ city?: string;
529
+ fullAddress?: string;
530
+ };
531
+ email?: string;
532
+ url?: string;
533
+ number?: number;
534
+ text?: string;
535
+ };
536
+ }>;
537
+ /**
538
+ * List Companies
539
+ * This API endpoint retrieves the list of companies.<br><br>You can use the query params to filter a subset of companies who match specific field values.
540
+ * @returns any 200
541
+ * @throws ApiError
542
+ */
543
+ static listCompanies({
544
+ name,
545
+ isPlaceholder,
546
+ nextToken,
547
+ limit,
548
+ }: {
549
+ /**
550
+ * The name of the company to query for.
551
+ */
552
+ name?: string;
553
+ /**
554
+ * If true, filter for all placeholder companies. If false, filter for all non-placeholder companies. If not provided, return all companies.
555
+ */
556
+ isPlaceholder?: boolean;
557
+ nextToken?: string;
558
+ limit?: number;
559
+ }): CancelablePromise<{
560
+ data?: Array<{
561
+ id?: string;
562
+ object?: string;
563
+ createdAt?: string;
564
+ name?: string;
565
+ fallbackColor?: string;
566
+ iconImageUrl?: string;
567
+ isPlaceholder?: boolean;
568
+ customFields?: {
569
+ phoneNumber?: string;
570
+ tags?: Array<string>;
571
+ address?: {
572
+ country?: string;
573
+ region?: string;
574
+ postalCode?: string;
575
+ addressLine1?: string;
576
+ addressLine2?: string;
577
+ city?: string;
578
+ fullAddress?: string;
579
+ };
580
+ email?: string;
581
+ text?: string;
582
+ url?: string;
583
+ number?: number;
584
+ };
585
+ }>;
586
+ nextToken?: string;
587
+ }>;
588
+ /**
589
+ * Retrieve Company
590
+ * This API endpoint retrieves a specific company.
591
+ * @returns any 200
592
+ * @throws ApiError
593
+ */
594
+ static retrieveCompany({
595
+ id,
596
+ }: {
597
+ /**
598
+ * The unique ID of the company to retrieve
599
+ */
600
+ id: string;
601
+ }): CancelablePromise<{
602
+ id?: string;
603
+ object?: string;
604
+ createdAt?: string;
605
+ name?: string;
606
+ fallbackColor?: string;
607
+ iconImageUrl?: string;
608
+ isPlaceholder?: boolean;
609
+ customFields?: {
610
+ phoneNumber?: string;
611
+ tags?: Array<string>;
612
+ address?: {
613
+ country?: string;
614
+ region?: string;
615
+ postalCode?: string;
616
+ addressLine1?: string;
617
+ addressLine2?: string;
618
+ city?: string;
619
+ fullAddress?: string;
620
+ };
621
+ email?: string;
622
+ text?: string;
623
+ url?: string;
624
+ number?: number;
625
+ };
626
+ }>;
627
+ /**
628
+ * Update Company
629
+ * This API endpoint updates a specific company.
630
+ * @returns any 200
631
+ * @throws ApiError
632
+ */
633
+ static updateCompany({
634
+ id,
635
+ requestBody,
636
+ }: {
637
+ /**
638
+ * The ID of the company to be updated.
639
+ */
640
+ id: string;
641
+ requestBody?: {
642
+ /**
643
+ * The company’s new name. Note: an existing company name cannot be used.
644
+ */
645
+ name?: string;
646
+ /**
647
+ * The key is the key of the custom field property, and the value is an array of keys (in the case of multiSelect custom fields), or the direct value in the case of all other types of custom fields.
648
+ */
649
+ customFields?: string;
650
+ };
651
+ }): CancelablePromise<{
652
+ id?: string;
653
+ object?: string;
654
+ createdAt?: string;
655
+ name?: string;
656
+ fallbackColor?: string;
657
+ iconImageUrl?: string;
658
+ isPlaceholder?: boolean;
659
+ customFields?: {
660
+ phoneNumber?: string;
661
+ tags?: Array<string>;
662
+ address?: {
663
+ country?: string;
664
+ region?: string;
665
+ postalCode?: string;
666
+ addressLine1?: string;
667
+ addressLine2?: string;
668
+ city?: string;
669
+ fullAddress?: string;
670
+ };
671
+ email?: string;
672
+ url?: string;
673
+ number?: number;
674
+ text?: string;
675
+ };
676
+ }>;
677
+ /**
678
+ * Delete Company
679
+ * This API endpoint permanently removes a specific company. All clients that are part of this company will no longer be associated with any company (and each will instead be associated with a new placeholder company). When a company is deleted, the associated company file and message channels are also deleted.
680
+ * @returns any 200
681
+ * @throws ApiError
682
+ */
683
+ static deleteCompany({
684
+ id,
685
+ }: {
686
+ /**
687
+ * The ID of the company to delete.
688
+ */
689
+ id: string;
690
+ }): CancelablePromise<{
691
+ id?: string;
692
+ object?: string;
693
+ deleted?: boolean;
694
+ }>;
695
+ /**
696
+ * Send Contract
697
+ * This API endpoint sends a contract to the specified recipient.
698
+ * @returns any 200
699
+ * @throws ApiError
700
+ */
701
+ static sendContract({
702
+ requestBody,
703
+ }: {
704
+ requestBody?: {
705
+ /**
706
+ * The unique ID of the contract template the contract is associated with.
707
+ */
708
+ contractTemplateId: string;
709
+ /**
710
+ * Deprecated: Use clientId instead.
711
+ */
712
+ recipientId?: string;
713
+ /**
714
+ * The unique ID of the client receiving the contract request.
715
+ */
716
+ clientId: string;
717
+ /**
718
+ * The company ID of the client. Required when the client has more than one company.
719
+ */
720
+ companyId?: string;
721
+ /**
722
+ * A list of fields which represent the specific values for certain contract inputs. This param is only required if the contract template it is associated with has variable inputs. Example: `{"input_id":"someValue", "other_input_id": "otherValue"}`
723
+ */
724
+ variableValues?: string;
725
+ };
726
+ }): CancelablePromise<{
727
+ contractTemplateId?: string;
728
+ createdAt?: string;
729
+ fields?: Array<{
730
+ id?: string;
731
+ inputType?: string;
732
+ isOptional?: boolean;
733
+ page?: number;
734
+ type?: string;
735
+ value?: string;
736
+ }>;
737
+ fileUrl?: string;
738
+ id?: string;
739
+ name?: string;
740
+ object?: string;
741
+ /**
742
+ * @deprecated
743
+ */
744
+ recipientId?: string;
745
+ clientId?: string;
746
+ companyId?: string;
747
+ shareDate?: string;
748
+ signedFileUrl?: string;
749
+ status?: string;
750
+ updatedAt?: string;
751
+ }>;
752
+ /**
753
+ * List Contracts
754
+ * This API endpoint retrieves contracts.
755
+ * @returns any 200
756
+ * @throws ApiError
757
+ */
758
+ static listContracts({
759
+ contractTemplateId,
760
+ recipientId,
761
+ status,
762
+ clientId,
763
+ }: {
764
+ /**
765
+ * The unique ID of the contract template the contract is associated with.
766
+ */
767
+ contractTemplateId?: string;
768
+ /**
769
+ * Deprecated: Use clientId
770
+ */
771
+ recipientId?: string;
772
+ /**
773
+ * The current state of the contract. Options are pending, signed
774
+ */
775
+ status?: string;
776
+ /**
777
+ * The ID of the client that the contract was sent to.
778
+ */
779
+ clientId?: string;
780
+ }): CancelablePromise<{
781
+ data?: Array<{
782
+ contractTemplateId?: string;
783
+ createdAt?: string;
784
+ fields?: Array<{
785
+ id?: string;
786
+ inputType?: string;
787
+ isOptional?: boolean;
788
+ label?: string;
789
+ page?: number;
790
+ type?: string;
791
+ value?: string;
792
+ }>;
793
+ fileUrl?: string;
794
+ id?: string;
795
+ name?: string;
796
+ object?: string;
797
+ recipientId?: string;
798
+ shareDate?: string;
799
+ signedFileUrl?: string;
800
+ status?: string;
801
+ submissionDate?: string;
802
+ updatedAt?: string;
803
+ }>;
804
+ }>;
805
+ /**
806
+ * Retrieve Contract
807
+ * This API endpoint retrieves a specific contract.
808
+ * @returns any 200
809
+ * @throws ApiError
810
+ */
811
+ static retrieveContract({
812
+ id,
813
+ }: {
814
+ /**
815
+ * The unique ID of the contract you want to retrieve.
816
+ */
817
+ id: string;
818
+ }): CancelablePromise<{
819
+ contractTemplateId?: string;
820
+ createdAt?: string;
821
+ fields?: Array<{
822
+ id?: string;
823
+ inputType?: string;
824
+ isOptional?: boolean;
825
+ page?: number;
826
+ type?: string;
827
+ value?: string;
828
+ }>;
829
+ fileUrl?: string;
830
+ id?: string;
831
+ name?: string;
832
+ object?: string;
833
+ /**
834
+ * @deprecated
835
+ */
836
+ recipientId?: string;
837
+ clientId?: string;
838
+ companyId?: string;
839
+ shareDate?: string;
840
+ signedFileUrl?: string;
841
+ status?: string;
842
+ submissionDate?: string;
843
+ updatedAt?: string;
844
+ }>;
845
+ /**
846
+ * Retrieve Contract Template
847
+ * This API endpoint retrieves a specific contract template.
848
+ * @returns any 200
849
+ * @throws ApiError
850
+ */
851
+ static retrieveContractTemplate({
852
+ id,
853
+ }: {
854
+ /**
855
+ * The unique ID of the contract template you want to retrieve.
856
+ */
857
+ id: string;
858
+ }): CancelablePromise<{
859
+ createdAt?: string;
860
+ fields?: Array<{
861
+ encodedImgValue?: string;
862
+ id?: string;
863
+ inputType?: string;
864
+ isOptional?: boolean;
865
+ page?: number;
866
+ type?: string;
867
+ value?: string;
868
+ }>;
869
+ id?: string;
870
+ latestSubmissionDate?: string;
871
+ name?: string;
872
+ object?: string;
873
+ requestsCount?: number;
874
+ submissionsCount?: number;
875
+ updatedAt?: string;
876
+ }>;
877
+ /**
878
+ * List Contract Templates
879
+ * This API endpoint retrieves the list of contract templates. You can use the query params to filter a subset of companies who match specific field values.
880
+ * @returns any 200
881
+ * @throws ApiError
882
+ */
883
+ static listContractTemplates({
884
+ name,
885
+ nextToken,
886
+ limit,
887
+ }: {
888
+ /**
889
+ * The name of the contract template to query for
890
+ */
891
+ name?: string;
892
+ nextToken?: string;
893
+ limit?: number;
894
+ }): CancelablePromise<{
895
+ data?: Array<{
896
+ createdAt?: string;
897
+ fields?: Array<{
898
+ encodedImgValue?: string;
899
+ id?: string;
900
+ inputType?: string;
901
+ isOptional?: boolean;
902
+ page?: number;
903
+ type?: string;
904
+ value?: string;
905
+ }>;
906
+ id?: string;
907
+ latestSubmissionDate?: string;
908
+ name?: string;
909
+ object?: string;
910
+ requestsCount?: number;
911
+ submissionsCount?: number;
912
+ updatedAt?: string;
913
+ }>;
914
+ }>;
915
+ /**
916
+ * List Custom Fields
917
+ * This API endpoint retrieves a list of all the custom fields that have been created in your workspace.
918
+ * @returns any 200
919
+ * @throws ApiError
920
+ */
921
+ static listCustomFields({
922
+ entityType,
923
+ }: {
924
+ /**
925
+ * Only return custom fields that have an entity type matching this value. Can be one of `client` or `company`.
926
+ */
927
+ entityType?: string;
928
+ }): CancelablePromise<{
929
+ data?: Array<{
930
+ id?: string;
931
+ key?: string;
932
+ name?: string;
933
+ type?: string;
934
+ order?: number;
935
+ object?: string;
936
+ entityType?: string;
937
+ }>;
938
+ }>;
939
+ /**
940
+ * List Custom Field Options
941
+ * Get a list of options for a multi-select custom field.<br><br>You can use the query params to filter for a single matching custom field option.
942
+ * @returns any 200
943
+ * @throws ApiError
944
+ */
945
+ static listCustomFieldOptions({
946
+ id,
947
+ label,
948
+ }: {
949
+ /**
950
+ * The ID of the multi-select custom field to list options for.
951
+ */
952
+ id: string;
953
+ /**
954
+ * Only the option with a label that matches the value provided here will be returned.
955
+ */
956
+ label?: string;
957
+ }): CancelablePromise<{
958
+ data?: Array<{
959
+ id?: string;
960
+ key?: string;
961
+ label?: string;
962
+ color?: string;
963
+ object?: string;
964
+ }>;
965
+ }>;
966
+ /**
967
+ * Create File
968
+ * These are 3 API endpoints which create a file object in a File Channel, of type `file`, `folder` or `link`, based on the `fileType` path parameter that you specify.
969
+ * @returns any 200
970
+ * @throws ApiError
971
+ */
972
+ static createFile({
973
+ fileType,
974
+ requestBody,
975
+ }: {
976
+ /**
977
+ * The type of file object to be created. This can be 'file', 'folder', or 'link'.
978
+ */
979
+ fileType: string;
980
+ requestBody?: {
981
+ /**
982
+ * The full path where the file object will be created. This should include the filename and extension, if relevant
983
+ */
984
+ path: string;
985
+ /**
986
+ * The File Channel where the file object will be created.
987
+ */
988
+ channelId: string;
989
+ /**
990
+ * The URL that the link points to (only relevant when fileType = link)
991
+ */
992
+ linkUrl?: string;
993
+ /**
994
+ * For folders only, the client permissions on the folder.
995
+ */
996
+ clientPermissions?: 'read_write' | 'read_only';
997
+ };
998
+ }): CancelablePromise<{
999
+ channelId?: string;
1000
+ createdAt?: string;
1001
+ creatorId?: string;
1002
+ downloadUrl?: string;
1003
+ id?: string;
1004
+ lastModifiedBy?: {
1005
+ id?: string;
1006
+ object?: string;
1007
+ };
1008
+ linkUrl?: string;
1009
+ name?: string;
1010
+ object?: string;
1011
+ path?: string;
1012
+ size?: number;
1013
+ status?: string;
1014
+ updatedAt?: string;
1015
+ }>;
1016
+ /**
1017
+ * Retrieve File
1018
+ * This endpoint returns the metadata for a specific file object.
1019
+ * @returns any 200
1020
+ * @throws ApiError
1021
+ */
1022
+ static retrieveFile({
1023
+ id,
1024
+ }: {
1025
+ /**
1026
+ * ID of the file object
1027
+ */
1028
+ id: string;
1029
+ }): CancelablePromise<{
1030
+ channelId?: string;
1031
+ createdAt?: string;
1032
+ creatorId?: string;
1033
+ downloadUrl?: string;
1034
+ id?: string;
1035
+ lastModifiedBy?: {
1036
+ id?: string;
1037
+ object?: string;
1038
+ };
1039
+ linkUrl?: string;
1040
+ name?: string;
1041
+ object?: string;
1042
+ path?: string;
1043
+ size?: number;
1044
+ status?: string;
1045
+ updatedAt?: string;
1046
+ /**
1047
+ * folder only
1048
+ */
1049
+ clientPermissions?: 'read-write' | 'read-only';
1050
+ }>;
1051
+ /**
1052
+ * Delete File
1053
+ * This API endpoint permanently removes a specific file, folder, or link. <br><br> If the deleted object is a folder, this operation is not recursive and files within the folder will not be deleted. You will receive a ‘Folder is not empty’ error message and the folder will not be deleted.
1054
+ * @returns any 200
1055
+ * @throws ApiError
1056
+ */
1057
+ static deleteFile({
1058
+ id,
1059
+ }: {
1060
+ /**
1061
+ * The ID of the file to delete.
1062
+ */
1063
+ id: string;
1064
+ }): CancelablePromise<{
1065
+ id?: string;
1066
+ object?: string;
1067
+ deleted?: boolean;
1068
+ }>;
1069
+ /**
1070
+ * Deprecated: Retrieve Download URL of a File
1071
+ * This endpoint returns a URL to download the contents of a file (of all sizes).
1072
+ * @returns any 200
1073
+ * @throws ApiError
1074
+ */
1075
+ static retrieveDownloadUrlOfAFile({
1076
+ id,
1077
+ }: {
1078
+ /**
1079
+ * ID of the file to download
1080
+ */
1081
+ id: string;
1082
+ }): CancelablePromise<{
1083
+ downloadUrl?: string;
1084
+ }>;
1085
+ /**
1086
+ * Deprecated: Download a File
1087
+ * This endpoint directly downloads the contents of a file (under 4 MB).
1088
+ * @returns any 200
1089
+ * @throws ApiError
1090
+ */
1091
+ static downloadAFile({
1092
+ id,
1093
+ }: {
1094
+ /**
1095
+ * ID of the file object to be downloaded
1096
+ */
1097
+ id: string;
1098
+ }): CancelablePromise<any>;
1099
+ /**
1100
+ * List Files
1101
+ * This API endpoint retrieves the list of files in a file channel.
1102
+ * @returns any 200
1103
+ * @throws ApiError
1104
+ */
1105
+ static listFiles({
1106
+ channelId,
1107
+ path,
1108
+ nextToken,
1109
+ limit,
1110
+ }: {
1111
+ /**
1112
+ * Only return files within the file channel that matches this ID. You can retrieve a file channel ID by calling the List File Channels endpoint.
1113
+ */
1114
+ channelId: string;
1115
+ /**
1116
+ * Filters the results based on a folder path prefix. This is a recursive search, files location in subfolders will be returned if they match the path prefix.
1117
+ */
1118
+ path?: string;
1119
+ nextToken?: string;
1120
+ limit?: number;
1121
+ }): CancelablePromise<{
1122
+ data?: Array<{
1123
+ channelId?: string;
1124
+ createdAt?: string;
1125
+ creatorId?: string;
1126
+ id?: string;
1127
+ linkUrl?: string;
1128
+ lastModifiedBy?: {
1129
+ id?: string;
1130
+ object?: string;
1131
+ };
1132
+ name?: string;
1133
+ object?: string;
1134
+ path?: string;
1135
+ updatedAt?: string;
1136
+ }>;
1137
+ nextToken?: string;
1138
+ }>;
1139
+ /**
1140
+ * Deprecated: Create a File
1141
+ * This was the initial API endpoint to create a file resource, specifically folders.
1142
+ * @returns any 200
1143
+ * @throws ApiError
1144
+ */
1145
+ static createAFileDeprecated({
1146
+ requestBody,
1147
+ }: {
1148
+ requestBody?: {
1149
+ /**
1150
+ * The type of object to create. Currently only `folder` is supported.
1151
+ */
1152
+ type: string;
1153
+ /**
1154
+ * The id of the channel in which this resource should reside
1155
+ */
1156
+ channelID: string;
1157
+ /**
1158
+ * The location in our storage system (S3) where the content of this resource is located. Only relevant when `type` is `folder`
1159
+ */
1160
+ fileKey?: string;
1161
+ /**
1162
+ * The relative location from the channel where where this resource should be placed. This is a `/` delimited string where each separated value is an existing folder name. When creating a new folder, the final separated value is the name of the new folder. A path with folders that do not exist is considered invalid input and will return a 400 error.
1163
+ */
1164
+ path?: string;
1165
+ /**
1166
+ * If type `link`, the URL associated with this resource
1167
+ */
1168
+ fileUrl?: string;
1169
+ };
1170
+ }): CancelablePromise<{
1171
+ id?: string;
1172
+ object?: string;
1173
+ createdBy?: string;
1174
+ createdAt?: string;
1175
+ updatedAt?: string;
1176
+ channelId?: string;
1177
+ fields?: {
1178
+ fileKey?: string;
1179
+ fileUrl?: string;
1180
+ path?: string;
1181
+ starred?: boolean;
1182
+ };
1183
+ }>;
1184
+ /**
1185
+ * Create File Channel
1186
+ * This API endpoint creates a new file channel. See the File Channel resource for detailed descriptions of the properties.
1187
+ * @returns any 200
1188
+ * @throws ApiError
1189
+ */
1190
+ static createFileChannel({
1191
+ requestBody,
1192
+ }: {
1193
+ requestBody?: {
1194
+ /**
1195
+ * The type of membership that this channel is associated with. Can be one of `individual`, `group` or `company`.
1196
+ */
1197
+ membershipType: string;
1198
+ /**
1199
+ * Deprecated: Use clientId and companyId instead.
1200
+ */
1201
+ membershipEntityId?: string;
1202
+ /**
1203
+ * The `id`s of the clients to be added to this particular channel. Required for `group` channels. Ignored for `individual` and `company` channels.
1204
+ */
1205
+ memberIds?: Array<string>;
1206
+ /**
1207
+ * The `id` of the client this channel is for. Required when membershipType is `individual`.
1208
+ */
1209
+ clientId?: string;
1210
+ /**
1211
+ * The `id` of the client this channel belongs to. Required when membershipType is `company` or when member(s) have multiple companies.
1212
+ */
1213
+ companyId?: string;
1214
+ };
1215
+ }): CancelablePromise<{
1216
+ id?: string;
1217
+ createdAt?: string;
1218
+ updatedAt?: string;
1219
+ membershipType?: string;
1220
+ clientId?: string;
1221
+ companyId?: string;
1222
+ /**
1223
+ * @deprecated
1224
+ */
1225
+ membershipEntityId?: string;
1226
+ memberIds?: Array<string>;
1227
+ }>;
1228
+ /**
1229
+ * List File Channels
1230
+ * This API endpoint retrieves a list of file channels.<br><br>You can use the query params to filter a subset of the file channels that match the specified field values.
1231
+ * @returns any 200
1232
+ * @throws ApiError
1233
+ */
1234
+ static listFileChannels({
1235
+ membershipType,
1236
+ membershipEntityId,
1237
+ memberId,
1238
+ nextToken,
1239
+ limit,
1240
+ clientId,
1241
+ companyId,
1242
+ }: {
1243
+ /**
1244
+ * Only return channels that have a membership type matching this value. Can be `individual`, `group` or `company`
1245
+ */
1246
+ membershipType?: string;
1247
+ /**
1248
+ * Deprecated: filter using clientId or companyId
1249
+ */
1250
+ membershipEntityId?: string;
1251
+ /**
1252
+ * Only return channels that contain the member (client or internal user) matching this ID.
1253
+ */
1254
+ memberId?: string;
1255
+ nextToken?: string;
1256
+ limit?: number;
1257
+ /**
1258
+ * Only return individual channels for this client.
1259
+ */
1260
+ clientId?: string;
1261
+ /**
1262
+ * Only return channels that are part of this company
1263
+ */
1264
+ companyId?: string;
1265
+ }): CancelablePromise<{
1266
+ data?: Array<{
1267
+ id?: string;
1268
+ object?: string;
1269
+ createdAt?: string;
1270
+ updatedAt?: string;
1271
+ membershipType?: string;
1272
+ clientId?: string;
1273
+ companyId?: string;
1274
+ /**
1275
+ * @deprecated
1276
+ */
1277
+ membershipEntityId?: string;
1278
+ memberIds?: Array<string>;
1279
+ }>;
1280
+ nextToken?: string;
1281
+ }>;
1282
+ /**
1283
+ * Retrieve File Channel
1284
+ * This API endpoint retrieves a specific file channel.
1285
+ * @returns any 200
1286
+ * @throws ApiError
1287
+ */
1288
+ static retrieveFileChannel({
1289
+ id,
1290
+ }: {
1291
+ /**
1292
+ * The ID of the file channel to retrieve.
1293
+ */
1294
+ id: string;
1295
+ }): CancelablePromise<{
1296
+ id?: string;
1297
+ createdAt?: string;
1298
+ updatedAt?: string;
1299
+ membershipType?: string;
1300
+ clientId?: string;
1301
+ companyId?: string;
1302
+ /**
1303
+ * @deprecated
1304
+ */
1305
+ membershipEntityId?: string;
1306
+ memberIds?: Array<string>;
1307
+ }>;
1308
+ /**
1309
+ * Retrieve Form
1310
+ * This API endpoint retrieves a specific form.
1311
+ * @returns any 200
1312
+ * @throws ApiError
1313
+ */
1314
+ static retrieveForm({
1315
+ id,
1316
+ }: {
1317
+ /**
1318
+ * The unique ID of the form to retrieve.
1319
+ */
1320
+ id: string;
1321
+ }): CancelablePromise<{
1322
+ id?: string;
1323
+ createdAt?: string;
1324
+ object?: string;
1325
+ name?: string;
1326
+ description?: string;
1327
+ formFieldIds?: Array<string>;
1328
+ formFields?: Array<{
1329
+ formFieldId?: string;
1330
+ title?: string;
1331
+ description?: string;
1332
+ type?: string;
1333
+ isRequired?: boolean;
1334
+ }>;
1335
+ allowMultipleSubmissions?: boolean;
1336
+ visibility?: string;
1337
+ formResponseRequests?: number;
1338
+ formResponseSubmissions?: number;
1339
+ latestSubmissionDate?: string;
1340
+ updatedAt?: string;
1341
+ }>;
1342
+ /**
1343
+ * List Forms
1344
+ * This API endpoint retrieves a list of forms.
1345
+ * @returns any 200
1346
+ * @throws ApiError
1347
+ */
1348
+ static listForms({
1349
+ nextToken,
1350
+ limit,
1351
+ }: {
1352
+ nextToken?: string;
1353
+ limit?: number;
1354
+ }): CancelablePromise<{
1355
+ data?: Array<{
1356
+ id?: string;
1357
+ createdAt?: string;
1358
+ object?: string;
1359
+ name?: string;
1360
+ description?: string;
1361
+ formFieldIds?: Array<string>;
1362
+ formFields?: Array<{
1363
+ formFieldId?: string;
1364
+ title?: string;
1365
+ description?: string;
1366
+ type?: string;
1367
+ isRequired?: boolean;
1368
+ }>;
1369
+ allowMultipleSubmissions?: boolean;
1370
+ visibility?: string;
1371
+ formResponseRequests?: number;
1372
+ formResponseSubmissions?: number;
1373
+ latestSubmissionDate?: string;
1374
+ updatedAt?: string;
1375
+ }>;
1376
+ nextToken?: string;
1377
+ }>;
1378
+ /**
1379
+ * Request Form Response
1380
+ * This API endpoint sends a form to client(s) for them to complete.
1381
+ * @returns any 200
1382
+ * @throws ApiError
1383
+ */
1384
+ static requestFormResponse({
1385
+ requestBody,
1386
+ }: {
1387
+ requestBody?: {
1388
+ /**
1389
+ * The ID of the Form to send to the recipient.
1390
+ */
1391
+ formId: string;
1392
+ /**
1393
+ * Deprecated. Use clientCompanyIds
1394
+ */
1395
+ clientIds?: Array<string>;
1396
+ /**
1397
+ * The list of client and company Ids for which the form is being sent to. E.g. [{ clientId: ‘client_a’, ‘companyId’: ‘company_b’}]
1398
+ */
1399
+ clientCompanyIds: Array<{
1400
+ /**
1401
+ * The ID of the client to assign this form to.
1402
+ */
1403
+ clientId: string;
1404
+ /**
1405
+ * The ID of the company this form is associated with. One of the companies that the client is part of.
1406
+ */
1407
+ companyId: string;
1408
+ }>;
1409
+ };
1410
+ }): CancelablePromise<{
1411
+ allowMultipleSubmissions?: boolean;
1412
+ clientId?: string;
1413
+ createdAt?: string;
1414
+ formDescription?: string;
1415
+ formFieldIds?: Array<string>;
1416
+ formFields?: Record<
1417
+ string,
1418
+ {
1419
+ title?: string;
1420
+ description?: string;
1421
+ type?: string;
1422
+ isRequired?: boolean;
1423
+ }
1424
+ >;
1425
+ formId?: string;
1426
+ formName?: string;
1427
+ id?: string;
1428
+ object?: string;
1429
+ status?: string;
1430
+ visibility?: string;
1431
+ companyId?: string;
1432
+ updatedAt?: string;
1433
+ }>;
1434
+ /**
1435
+ * List Form Responses
1436
+ * This API endpoint retrieves all the responses (Pending & Completed) to a given form.
1437
+ * @returns any 200
1438
+ * @throws ApiError
1439
+ */
1440
+ static listFormResponses({
1441
+ id,
1442
+ }: {
1443
+ /**
1444
+ * The ID of the form to retrieve the form responses for.
1445
+ */
1446
+ id: string;
1447
+ }): CancelablePromise<{
1448
+ data?: Array<{
1449
+ allowMultipleSubmissions?: boolean;
1450
+ clientId?: string;
1451
+ createdAt?: string;
1452
+ formDescription?: string;
1453
+ formFieldIds?: Array<string>;
1454
+ formFields?: Record<
1455
+ string,
1456
+ {
1457
+ title?: string;
1458
+ description?: string;
1459
+ type?: string;
1460
+ isRequired?: boolean;
1461
+ answer?: string;
1462
+ }
1463
+ >;
1464
+ formId?: string;
1465
+ formName?: string;
1466
+ id?: string;
1467
+ object?: string;
1468
+ status?: string;
1469
+ submissionDate?: string;
1470
+ visibility?: string;
1471
+ updatedAt?: string;
1472
+ }>;
1473
+ }>;
1474
+ /**
1475
+ * Retrieve Internal User
1476
+ * This API endpoint retrieves a specific internal user.
1477
+ * @returns any 200
1478
+ * @throws ApiError
1479
+ */
1480
+ static retrieveInternalUser({
1481
+ id,
1482
+ }: {
1483
+ /**
1484
+ * The unique ID of the internal user to retrieve.
1485
+ */
1486
+ id: string;
1487
+ }): CancelablePromise<{
1488
+ id?: string;
1489
+ object?: string;
1490
+ createdAt?: string;
1491
+ givenName?: string;
1492
+ familyName?: string;
1493
+ email?: string;
1494
+ role?: string;
1495
+ fallbackColor?: string;
1496
+ isClientAccessLimited?: boolean;
1497
+ companyAccessList?: Array<string>;
1498
+ avatarImageUrl?: string;
1499
+ updatedAt?: string;
1500
+ }>;
1501
+ /**
1502
+ * List Internal Users
1503
+ * This API endpoint retrieves a list of internal users.
1504
+ * @returns any 200
1505
+ * @throws ApiError
1506
+ */
1507
+ static listInternalUsers({
1508
+ nextToken,
1509
+ limit,
1510
+ }: {
1511
+ nextToken?: string;
1512
+ limit?: number;
1513
+ }): CancelablePromise<{
1514
+ data?: Array<{
1515
+ id?: string;
1516
+ object?: string;
1517
+ createdAt?: string;
1518
+ givenName?: string;
1519
+ familyName?: string;
1520
+ email?: string;
1521
+ role?: string;
1522
+ fallbackColor?: string;
1523
+ isClientAccessLimited?: boolean;
1524
+ companyAccessList?: Array<string>;
1525
+ avatarImageUrl?: string;
1526
+ updatedAt?: string;
1527
+ }>;
1528
+ nextToken?: string;
1529
+ }>;
1530
+ /**
1531
+ * Retrieve Invoice
1532
+ * @returns any 200
1533
+ * @throws ApiError
1534
+ */
1535
+ static retrieveInvoice({
1536
+ id,
1537
+ }: {
1538
+ /**
1539
+ * The unique ID of the invoice you want to retrieve.
1540
+ */
1541
+ id?: string;
1542
+ }): CancelablePromise<{
1543
+ collectionMethod?: string;
1544
+ createdAt?: string;
1545
+ currency?: string;
1546
+ dueDate?: string;
1547
+ id?: string;
1548
+ lineItems?: Array<{
1549
+ amount?: number;
1550
+ description?: string;
1551
+ priceId?: string;
1552
+ productId?: string;
1553
+ quantity?: number;
1554
+ }>;
1555
+ memo?: string;
1556
+ number?: string;
1557
+ object?: string;
1558
+ /**
1559
+ * @deprecated
1560
+ */
1561
+ recipientId?: string;
1562
+ clientId?: string;
1563
+ companyId?: string;
1564
+ sentDate?: string;
1565
+ status?: string;
1566
+ taxAmount?: number;
1567
+ taxPercentage?: number;
1568
+ total?: number;
1569
+ receiptNumber?: string;
1570
+ receiptUrl?: string;
1571
+ fileUrl?: string;
1572
+ billingReason?: string;
1573
+ paymentMethodPreferences?: Array<{
1574
+ type?: string;
1575
+ feePaidByClient?: boolean;
1576
+ }>;
1577
+ updatedAt?: string;
1578
+ }>;
1579
+ /**
1580
+ * List Invoices
1581
+ * @returns any 200
1582
+ * @throws ApiError
1583
+ */
1584
+ static listInvoices({
1585
+ nextToken,
1586
+ limit,
1587
+ }: {
1588
+ /**
1589
+ * Next token for pagination
1590
+ */
1591
+ nextToken?: string;
1592
+ /**
1593
+ * Max number of records to fetch
1594
+ */
1595
+ limit?: number;
1596
+ }): CancelablePromise<{
1597
+ data?: Array<{
1598
+ collectionMethod?: string;
1599
+ createdAt?: string;
1600
+ currency?: string;
1601
+ dueDate?: string;
1602
+ id?: string;
1603
+ lineItems?: Array<{
1604
+ amount?: number;
1605
+ description?: string;
1606
+ quantity?: number;
1607
+ }>;
1608
+ memo?: string;
1609
+ number?: string;
1610
+ object?: string;
1611
+ /**
1612
+ * @deprecated
1613
+ */
1614
+ recipientId?: string;
1615
+ clientId?: string;
1616
+ companyId?: string;
1617
+ sentDate?: string;
1618
+ status?: string;
1619
+ taxAmount?: number;
1620
+ taxPercentage?: number;
1621
+ total?: number;
1622
+ receiptNumber?: string;
1623
+ receiptUrl?: string;
1624
+ fileUrl?: string;
1625
+ billingReason?: string;
1626
+ paymentMethodPreferences?: Array<{
1627
+ type?: string;
1628
+ feePaidByClient?: boolean;
1629
+ }>;
1630
+ updatedAt?: string;
1631
+ }>;
1632
+ }>;
1633
+ /**
1634
+ * Create Invoice
1635
+ * This API endpoint create an invoice and automatically assigns it to given recipient to pay
1636
+ * @returns any 200
1637
+ * @throws ApiError
1638
+ */
1639
+ static createInvoice({
1640
+ requestBody,
1641
+ }: {
1642
+ requestBody?: {
1643
+ /**
1644
+ * Unique ID of the invoice template to use. If provided, template values will be used for `lineItems`, `memo`, and `taxPercentage`.
1645
+ */
1646
+ templateId?: string;
1647
+ /**
1648
+ * Deprecated in favor of clientId and companyId.
1649
+ */
1650
+ recipientId?: string;
1651
+ /**
1652
+ * Array of line items. Required if `templateId` is not provided.
1653
+ */
1654
+ lineItems?: Array<{
1655
+ /**
1656
+ * Amount in cents. Required if `priceId` not provided
1657
+ */
1658
+ amount?: number;
1659
+ /**
1660
+ * Description of the item, ignored if `priceId` is provided.
1661
+ */
1662
+ description?: string;
1663
+ /**
1664
+ * Quantity of the item (supports decimals).
1665
+ */
1666
+ quantity: number;
1667
+ /**
1668
+ * Unique ID of the `price` object. Required if `amount` is not provided.
1669
+ */
1670
+ priceId?: string;
1671
+ }>;
1672
+ /**
1673
+ * Memo (arbitrary string) attached to the invoice, often used for display.
1674
+ */
1675
+ memo?: string;
1676
+ /**
1677
+ * The number of days from when the invoice is created until it is due. Max value is 30.
1678
+ */
1679
+ daysUntilDue: number;
1680
+ /**
1681
+ * Tax percentage to apply to the invoice amount.
1682
+ */
1683
+ taxPercentage?: number;
1684
+ /**
1685
+ * Array of preferences which specify which payment methods are allowed and how transaction fees are handled for each payment method
1686
+ */
1687
+ paymentMethodPreferences: Array<{
1688
+ /**
1689
+ * Payment method type. Values are `creditCard` or `bankAccount`.
1690
+ */
1691
+ type: string;
1692
+ /**
1693
+ * When `true`, the transaction fee is paid by the client, otherwise is covered by your account.
1694
+ */
1695
+ feePaidByClient: boolean;
1696
+ }>;
1697
+ /**
1698
+ * The ID of the client this invoice is assigned to. Leave empty if assigning to a company.
1699
+ */
1700
+ clientId?: string;
1701
+ /**
1702
+ * The ID of the company this invoice is assigned. This is required when an invoice is assigned to a client with more than one company.
1703
+ */
1704
+ companyId?: string;
1705
+ };
1706
+ }): CancelablePromise<{
1707
+ id?: string;
1708
+ object?: string;
1709
+ /**
1710
+ * @deprecated
1711
+ */
1712
+ recipientId?: string;
1713
+ clientId?: string;
1714
+ companyId?: string;
1715
+ status?: string;
1716
+ memo?: string;
1717
+ taxPercentage?: number;
1718
+ currency?: string;
1719
+ lineItems?: Array<{
1720
+ amount?: number;
1721
+ description?: string;
1722
+ quantity?: number;
1723
+ }>;
1724
+ total?: number;
1725
+ taxAmount?: number;
1726
+ dueDate?: string;
1727
+ sentDate?: string;
1728
+ paymentSuccessDate?: string;
1729
+ number?: string;
1730
+ paymentMethodPreferences?: Array<{
1731
+ type?: string;
1732
+ feePaidByClient?: boolean;
1733
+ }>;
1734
+ fileUrl?: string;
1735
+ receiptNumber?: string;
1736
+ receiptUrl?: string;
1737
+ billingReason?: string;
1738
+ createdAt?: string;
1739
+ updatedAt?: string;
1740
+ }>;
1741
+ /**
1742
+ * List Invoice Templates
1743
+ * This API endpoint lists all the invoice templates for the workspace.
1744
+ * @returns any 200
1745
+ * @throws ApiError
1746
+ */
1747
+ static listInvoiceTemplates({
1748
+ limit,
1749
+ nextToken,
1750
+ }: {
1751
+ /**
1752
+ * Max number of records to fetch
1753
+ */
1754
+ limit?: number;
1755
+ /**
1756
+ * Next token for pagination
1757
+ */
1758
+ nextToken?: string;
1759
+ }): CancelablePromise<{
1760
+ data?: Array<{
1761
+ id?: string;
1762
+ object?: string;
1763
+ createdAt?: string;
1764
+ updatedAt?: string;
1765
+ name?: string;
1766
+ memo?: string;
1767
+ taxPercentage?: number;
1768
+ currency?: string;
1769
+ lineItems?: Array<{
1770
+ amount?: number;
1771
+ description?: string;
1772
+ quantity?: number;
1773
+ }>;
1774
+ }>;
1775
+ }>;
1776
+ /**
1777
+ * Send Message
1778
+ * This API endpoint sends a message within a Message Channel.
1779
+ * @returns any 200
1780
+ * @throws ApiError
1781
+ */
1782
+ static sendMessage({
1783
+ requestBody,
1784
+ }: {
1785
+ requestBody?: {
1786
+ /**
1787
+ * The contents of the message. Supports some formatting, see the [Message resource](https://docs.copilot.com/reference/messages) for details.
1788
+ */
1789
+ text: string;
1790
+ /**
1791
+ * The Message Channel where the message will be sent.
1792
+ */
1793
+ channelId: string;
1794
+ /**
1795
+ * The user (Client or Internal User) to send this message on behalf of. If specified, the sender must be a member of the Message Channel. If not specified, the message will be sent on behalf of the user who generated the API key used in the request.
1796
+ */
1797
+ senderId?: string;
1798
+ };
1799
+ }): CancelablePromise<{
1800
+ id?: string;
1801
+ object?: string;
1802
+ senderId?: string;
1803
+ createdAt?: string;
1804
+ updatedAt?: string;
1805
+ channelId?: string;
1806
+ isAttachmentIncluded?: boolean;
1807
+ text?: string;
1808
+ }>;
1809
+ /**
1810
+ * List Messages
1811
+ * This API endpoint retrieves a list of messages in a given Message Channel. Messages are paginated and returned in descending chronological order.
1812
+ * @returns any 200
1813
+ * @throws ApiError
1814
+ */
1815
+ static listMessages({
1816
+ channelId,
1817
+ nextToken,
1818
+ limit,
1819
+ }: {
1820
+ /**
1821
+ * The Message Channel to retrieve messages from.
1822
+ */
1823
+ channelId: string;
1824
+ nextToken?: string;
1825
+ limit?: number;
1826
+ }): CancelablePromise<{
1827
+ data?: Array<{
1828
+ id?: string;
1829
+ object?: string;
1830
+ senderId?: string;
1831
+ createdAt?: string;
1832
+ updatedAt?: string;
1833
+ channelId?: string;
1834
+ text?: string;
1835
+ isAttachmentIncluded?: boolean;
1836
+ }>;
1837
+ nextToken?: string;
1838
+ }>;
1839
+ /**
1840
+ * Create Message Channel
1841
+ * This API endpoint creates a new message channel. See the [Message Channel](ref:message-channels) resource for detailed descriptions of the properties.
1842
+ * @returns any 200
1843
+ * @throws ApiError
1844
+ */
1845
+ static createMessageChannel({
1846
+ requestBody,
1847
+ }: {
1848
+ requestBody?: {
1849
+ /**
1850
+ * The type of membership that this channel is associated with. Can be one of `individual`, `group` or `company`.
1851
+ */
1852
+ membershipType: string;
1853
+ /**
1854
+ * Deprecated. Use clientId and companyId instead.
1855
+ */
1856
+ membershipEntityId?: string;
1857
+ /**
1858
+ * The `id`s of the clients to be added to this particular channel. Required for `group` channels. Ignored for `individual` and `company` channels.
1859
+ */
1860
+ memberIds?: Array<string>;
1861
+ /**
1862
+ * The id of the client this channel is for. Required for individual channels.
1863
+ */
1864
+ clientId?: string;
1865
+ /**
1866
+ * The id of the company this channel belongs to. Required for company channels and when the client(s) members have multiple companies.
1867
+ */
1868
+ companyId?: string;
1869
+ };
1870
+ }): CancelablePromise<{
1871
+ id?: string;
1872
+ object?: string;
1873
+ createdAt?: string;
1874
+ updatedAt?: string;
1875
+ membershipType?: string;
1876
+ clientId?: string;
1877
+ companyId?: string;
1878
+ /**
1879
+ * @deprecated
1880
+ */
1881
+ membershipEntityId?: string;
1882
+ memberIds?: Array<string>;
1883
+ lastMessageDate?: any;
1884
+ }>;
1885
+ /**
1886
+ * List Message Channels
1887
+ * This API endpoint retrieves a list of message channels in your portal.<br><br>You can use the query params to filter a subset of the message channels that match the specified field values.
1888
+ * @returns any 200
1889
+ * @throws ApiError
1890
+ */
1891
+ static listMessageChannels({
1892
+ membershipType,
1893
+ membershipEntityId,
1894
+ memberId,
1895
+ nextToken,
1896
+ limit,
1897
+ clientId,
1898
+ }: {
1899
+ /**
1900
+ * Only return channels that have a membership type matching this value. Can be `individual`, `group` or `company`
1901
+ */
1902
+ membershipType?: string;
1903
+ /**
1904
+ * Deprecated. Use clientId instead.
1905
+ */
1906
+ membershipEntityId?: string;
1907
+ /**
1908
+ * Only return channels that contain the member (client or internal user) matching this ID.
1909
+ */
1910
+ memberId?: string;
1911
+ nextToken?: string;
1912
+ limit?: number;
1913
+ /**
1914
+ * Only return individual channels for this client.
1915
+ */
1916
+ clientId?: string;
1917
+ }): CancelablePromise<{
1918
+ data?: Array<{
1919
+ id?: string;
1920
+ object?: string;
1921
+ createdAt?: string;
1922
+ updatedAt?: string;
1923
+ membershipType?: string;
1924
+ clientId?: string;
1925
+ companyId?: string;
1926
+ /**
1927
+ * @deprecated
1928
+ */
1929
+ membershipEntityId?: string;
1930
+ memberIds?: Array<string>;
1931
+ lastMessageDate?: any;
1932
+ }>;
1933
+ nextToken?: string;
1934
+ }>;
1935
+ /**
1936
+ * Retrieve Message Channel
1937
+ * This API endpoint retrieves a specific message channel in your portal.
1938
+ * @returns any 200
1939
+ * @throws ApiError
1940
+ */
1941
+ static retrieveMessageChannel({
1942
+ id,
1943
+ }: {
1944
+ /**
1945
+ * The ID of the message channel to retrieve.
1946
+ */
1947
+ id: string;
1948
+ }): CancelablePromise<{
1949
+ id?: string;
1950
+ object?: string;
1951
+ createdAt?: string;
1952
+ updatedAt?: string;
1953
+ membershipType?: string;
1954
+ clientId?: string;
1955
+ companyId?: string;
1956
+ /**
1957
+ * @deprecated
1958
+ */
1959
+ membershipEntityId?: string;
1960
+ memberIds?: Array<string>;
1961
+ lastMessageDate?: any;
1962
+ }>;
1963
+ /**
1964
+ * Create Note
1965
+ * This API endpoint creates a note on a specified client or company in your workspace.
1966
+ * @returns any 200
1967
+ * @throws ApiError
1968
+ */
1969
+ static createNote({
1970
+ requestBody,
1971
+ }: {
1972
+ requestBody?: {
1973
+ /**
1974
+ * The type of entity that this note is associated with. Can be one of client or company.
1975
+ */
1976
+ entityType: string;
1977
+ /**
1978
+ * The ID of the entity (client or company) that this note is associated with.
1979
+ */
1980
+ entityId: string;
1981
+ /**
1982
+ * The note’s title. This field does not support formatting or newlines.
1983
+ */
1984
+ title: string;
1985
+ /**
1986
+ * The note’s content. This must be valid HTML.
1987
+ */
1988
+ content?: string;
1989
+ };
1990
+ }): CancelablePromise<{
1991
+ content?: string;
1992
+ createdAt?: string;
1993
+ creatorId?: string;
1994
+ entityId?: string;
1995
+ entityType?: string;
1996
+ id?: string;
1997
+ object?: string;
1998
+ title?: string;
1999
+ updatedAt?: string;
2000
+ }>;
2001
+ /**
2002
+ * List Notes
2003
+ * This API endpoint retrieves a list of notes on clients or companies in your workspace. <br> You can use the query params to filter a subset of clients or companies that match the specified field values.
2004
+ * @returns any 200
2005
+ * @throws ApiError
2006
+ */
2007
+ static listNotes({
2008
+ entityType,
2009
+ entityId,
2010
+ limit,
2011
+ nextToken,
2012
+ }: {
2013
+ /**
2014
+ * Only return notes that have an entity type matching this value. Can be one of client or company.
2015
+ */
2016
+ entityType?: string;
2017
+ /**
2018
+ * Only return notes for the entity (client or company) specified by this ID. If this parameter is included, you must also specify an entity type.
2019
+ */
2020
+ entityId?: string;
2021
+ /**
2022
+ * Maximum number of notes to fetch. Default: 20
2023
+ */
2024
+ limit?: number;
2025
+ /**
2026
+ * Next token for pagination.
2027
+ */
2028
+ nextToken?: string;
2029
+ }): CancelablePromise<{
2030
+ data?: Array<{
2031
+ content?: string;
2032
+ createdAt?: string;
2033
+ creatorId?: string;
2034
+ entityId?: string;
2035
+ entityType?: string;
2036
+ id?: string;
2037
+ object?: string;
2038
+ title?: string;
2039
+ updatedAt?: string;
2040
+ }>;
2041
+ nextToken?: string;
2042
+ }>;
2043
+ /**
2044
+ * Update Note
2045
+ * This API endpoint updates a specific note. <br> This PATCH request will only update the fields you specify, leaving the rest as they were.
2046
+ * @returns any 200
2047
+ * @throws ApiError
2048
+ */
2049
+ static updateNote({
2050
+ id,
2051
+ requestBody,
2052
+ }: {
2053
+ /**
2054
+ * The ID of the note to update.
2055
+ */
2056
+ id: string;
2057
+ requestBody?: {
2058
+ /**
2059
+ * The note’s title. This field does not support formatting or newlines.
2060
+ */
2061
+ title?: string;
2062
+ /**
2063
+ * The note’s content. This must be valid HTML.
2064
+ */
2065
+ content?: string;
2066
+ };
2067
+ }): CancelablePromise<{
2068
+ content?: string;
2069
+ createdAt?: string;
2070
+ creatorId?: string;
2071
+ entityId?: string;
2072
+ entityType?: string;
2073
+ id?: string;
2074
+ object?: string;
2075
+ title?: string;
2076
+ updatedAt?: string;
2077
+ }>;
2078
+ /**
2079
+ * Retrieve Note
2080
+ * This API endpoint retrieves a specific note.
2081
+ * @returns any 200
2082
+ * @throws ApiError
2083
+ */
2084
+ static retrieveNote({
2085
+ id,
2086
+ }: {
2087
+ /**
2088
+ * The ID of the note to retrieve.
2089
+ */
2090
+ id: string;
2091
+ }): CancelablePromise<{
2092
+ content?: string;
2093
+ createdAt?: string;
2094
+ creatorId?: string;
2095
+ entityId?: string;
2096
+ entityType?: string;
2097
+ id?: string;
2098
+ object?: string;
2099
+ title?: string;
2100
+ updatedAt?: string;
2101
+ }>;
2102
+ /**
2103
+ * Delete Note
2104
+ * This API endpoint permanently removes a specific note.
2105
+ * @returns any 200
2106
+ * @throws ApiError
2107
+ */
2108
+ static deleteNote({
2109
+ id,
2110
+ }: {
2111
+ /**
2112
+ * The ID of the note to delete.
2113
+ */
2114
+ id: string;
2115
+ }): CancelablePromise<{
2116
+ id?: string;
2117
+ object?: string;
2118
+ deleted?: boolean;
2119
+ }>;
2120
+ /**
2121
+ * List Notifications
2122
+ * Lists notifications for a workspace.
2123
+ * @returns any 200
2124
+ * @throws ApiError
2125
+ */
2126
+ static listNotifications({
2127
+ recipientId,
2128
+ includeRead,
2129
+ recipientClientId,
2130
+ recipientInternalUserId,
2131
+ }: {
2132
+ /**
2133
+ * Deprecated in favor of recipientClientId and recipientInternalUserId
2134
+ */
2135
+ recipientId?: string;
2136
+ /**
2137
+ * Includes read notifications.
2138
+ */
2139
+ includeRead?: boolean;
2140
+ /**
2141
+ * ID of the client to fetch notifications for.
2142
+ */
2143
+ recipientClientId?: string;
2144
+ /**
2145
+ * ID of the client to fetch notifications for.
2146
+ */
2147
+ recipientInternalUserId?: string;
2148
+ }): CancelablePromise<{
2149
+ data?: Array<{
2150
+ createdAt?: string;
2151
+ deliveryTargets?: {
2152
+ inProduct?: {
2153
+ title?: string;
2154
+ isRead?: boolean;
2155
+ ctaParams?: {
2156
+ foo?: string;
2157
+ };
2158
+ };
2159
+ };
2160
+ event?: string;
2161
+ id?: string;
2162
+ object?: string;
2163
+ /**
2164
+ * @deprecated
2165
+ */
2166
+ recipientId?: string;
2167
+ recipientClientId?: string;
2168
+ recipientCompanyId?: string;
2169
+ recipientInternalUserId?: string;
2170
+ resourceId?: string;
2171
+ senderId?: string;
2172
+ senderType?: string;
2173
+ }>;
2174
+ }>;
2175
+ /**
2176
+ * Create Notification
2177
+ * Creates a notification in a workspace.
2178
+ * @returns any 200
2179
+ * @throws ApiError
2180
+ */
2181
+ static createNotification({
2182
+ requestBody,
2183
+ }: {
2184
+ requestBody?: {
2185
+ /**
2186
+ * ID of the entity sending the notification. This can be ID of client user, internal user, or a company.
2187
+ */
2188
+ senderId: string;
2189
+ /**
2190
+ * Deprecated. Use recipientClientId, recipientCompanyId and recipientInternalUserId instead.
2191
+ */
2192
+ recipientId?: string;
2193
+ /**
2194
+ * The notification details for each delivery target.
2195
+ */
2196
+ deliveryTargets?: {
2197
+ inProduct?: {
2198
+ /**
2199
+ * Title of the notification.
2200
+ */
2201
+ title: string;
2202
+ /**
2203
+ * Body of the notification.
2204
+ */
2205
+ body?: string;
2206
+ /**
2207
+ * Key/value pairs that will be included in the search parameters when clicking on the notification’s call to action in product. This call to action is shown in the Notification Center for internal users.
2208
+ */
2209
+ ctaParams?: string;
2210
+ };
2211
+ email?: {
2212
+ /**
2213
+ * Subject of the email notification.
2214
+ */
2215
+ subject?: string;
2216
+ /**
2217
+ * Header of the email notification.
2218
+ */
2219
+ header?: string;
2220
+ /**
2221
+ * Body of the email notification.
2222
+ */
2223
+ body?: string;
2224
+ /**
2225
+ * Call To Action button title in the email notification.
2226
+ */
2227
+ title?: string;
2228
+ /**
2229
+ * Key/value pairs that will be included in the search parameters when clicking on an email notification’s call to action.
2230
+ */
2231
+ ctaParams?: string;
2232
+ };
2233
+ };
2234
+ /**
2235
+ * ID of the client receiving the notification. This required when sending a notification to a client.
2236
+ */
2237
+ recipientClientId?: string;
2238
+ /**
2239
+ * ID of the company receiving the notification. This is required when sending a notification to a client that has more than one company.
2240
+ */
2241
+ recipientCompanyId?: string;
2242
+ /**
2243
+ * ID of the internal user receiving the notification. This is required when sending a notification to an internal user.
2244
+ */
2245
+ recipientInternalUserId?: string;
2246
+ /**
2247
+ * The ID of the company associated with the sender of this notification. This is required when the sender is a client with more than one company.
2248
+ */
2249
+ senderCompanyId?: string;
2250
+ };
2251
+ }): CancelablePromise<{
2252
+ appId?: string;
2253
+ createdAt?: string;
2254
+ deliveryTargets?: {
2255
+ inProduct?: {
2256
+ title?: string;
2257
+ body?: string;
2258
+ isRead?: boolean;
2259
+ ctaParams?: {
2260
+ foo?: string;
2261
+ };
2262
+ };
2263
+ email?: {
2264
+ subject?: string;
2265
+ header?: string;
2266
+ body?: string;
2267
+ title?: string;
2268
+ ctaParams?: {
2269
+ foo?: string;
2270
+ };
2271
+ };
2272
+ };
2273
+ event?: string;
2274
+ id?: string;
2275
+ object?: string;
2276
+ /**
2277
+ * @deprecated
2278
+ */
2279
+ recipientId?: string;
2280
+ recipientClientId?: string;
2281
+ recipientCompanyId?: string;
2282
+ recipientInternalUserId?: string;
2283
+ resourceId?: string;
2284
+ senderId?: string;
2285
+ senderType?: string;
2286
+ }>;
2287
+ /**
2288
+ * Delete Notification
2289
+ * This API endpoint deletes a notification.
2290
+ * @returns any 200
2291
+ * @throws ApiError
2292
+ */
2293
+ static deleteNotification({
2294
+ id,
2295
+ }: {
2296
+ /**
2297
+ * The ID of the notification to delete.
2298
+ */
2299
+ id: string;
2300
+ }): CancelablePromise<{
2301
+ id?: string;
2302
+ object?: string;
2303
+ deleted?: boolean;
2304
+ }>;
2305
+ /**
2306
+ * Mark Notification Read
2307
+ * This API endpoint marks a notification as read.
2308
+ * @returns any 200
2309
+ * @throws ApiError
2310
+ */
2311
+ static markNotificationRead({
2312
+ id,
2313
+ }: {
2314
+ /**
2315
+ * The ID of the notification to mark as read.
2316
+ */
2317
+ id: string;
2318
+ }): CancelablePromise<{
2319
+ createdAt?: string;
2320
+ deliveryTargets?: {
2321
+ inProduct?: {
2322
+ title?: string;
2323
+ isRead?: boolean;
2324
+ };
2325
+ };
2326
+ event?: string;
2327
+ id?: string;
2328
+ object?: string;
2329
+ /**
2330
+ * @deprecated
2331
+ */
2332
+ recipientId?: string;
2333
+ recipientClientId?: string;
2334
+ recipientCompanyId?: string;
2335
+ recipientInternalUserId?: string;
2336
+ resourceId?: string;
2337
+ senderId?: string;
2338
+ senderType?: string;
2339
+ }>;
2340
+ /**
2341
+ * Mark Notification Unread
2342
+ * This API endpoint marks a notification as unread.
2343
+ * @returns any 200
2344
+ * @throws ApiError
2345
+ */
2346
+ static markNotificationUnread({
2347
+ id,
2348
+ }: {
2349
+ /**
2350
+ * The ID of the notification to mark as unread.
2351
+ */
2352
+ id: string;
2353
+ }): CancelablePromise<{
2354
+ createdAt?: string;
2355
+ deliveryTargets?: {
2356
+ inProduct?: {
2357
+ title?: string;
2358
+ isRead?: boolean;
2359
+ };
2360
+ };
2361
+ event?: string;
2362
+ id?: string;
2363
+ object?: string;
2364
+ /**
2365
+ * @deprecated
2366
+ */
2367
+ recipientId?: string;
2368
+ recipientClientId?: string;
2369
+ recipientCompanyId?: string;
2370
+ recipientInternalUserId?: string;
2371
+ resourceId?: string;
2372
+ senderId?: string;
2373
+ senderType?: string;
2374
+ }>;
2375
+ /**
2376
+ * List Payments
2377
+ * This API endpoint lists the payments in a workspace.<br> Filter can be applied on invoice ID to list a payment for a specific invoice.
2378
+ * @returns any 200
2379
+ * @throws ApiError
2380
+ */
2381
+ static listPayments({
2382
+ invoiceId,
2383
+ limit,
2384
+ nextToken,
2385
+ }: {
2386
+ /**
2387
+ * Unique ID of invoice
2388
+ */
2389
+ invoiceId?: string;
2390
+ /**
2391
+ * Max number of records to fetch
2392
+ */
2393
+ limit?: string;
2394
+ /**
2395
+ * Next token for pagination
2396
+ */
2397
+ nextToken?: string;
2398
+ }): CancelablePromise<{
2399
+ data?: Array<{
2400
+ id?: string;
2401
+ object?: string;
2402
+ createdAt?: string;
2403
+ invoiceId?: string;
2404
+ status?: string;
2405
+ amount?: number;
2406
+ message?: string;
2407
+ declineCode?: string;
2408
+ paymentMethod?: string;
2409
+ last4Digits?: string;
2410
+ brand?: string;
2411
+ feeAmount?: {
2412
+ paidByPlatform?: number;
2413
+ paidByClient?: number;
2414
+ };
2415
+ updatedAt?: string;
2416
+ }>;
2417
+ }>;
2418
+ /**
2419
+ * List Prices
2420
+ * This API endpoint lists the prices for products in a workspace.
2421
+ * @returns any 200
2422
+ * @throws ApiError
2423
+ */
2424
+ static listPrices({
2425
+ productId,
2426
+ nextToken,
2427
+ limit,
2428
+ }: {
2429
+ /**
2430
+ * Unique ID of the product
2431
+ */
2432
+ productId?: string;
2433
+ /**
2434
+ * Next token for pagination
2435
+ */
2436
+ nextToken?: string;
2437
+ /**
2438
+ * Max number of records to fetch
2439
+ */
2440
+ limit?: string;
2441
+ }): CancelablePromise<{
2442
+ data?: Array<{
2443
+ amount?: number;
2444
+ createdAt?: string;
2445
+ currency?: string;
2446
+ id?: string;
2447
+ interval?: any;
2448
+ object?: string;
2449
+ productId?: string;
2450
+ type?: string;
2451
+ updatedAt?: string;
2452
+ }>;
2453
+ }>;
2454
+ /**
2455
+ * Retrieve Price
2456
+ * This API endpoint retrieves a specific price.
2457
+ * @returns any 200
2458
+ * @throws ApiError
2459
+ */
2460
+ static retrievePrice({
2461
+ id,
2462
+ }: {
2463
+ /**
2464
+ * The unique ID of the price you want to retrieve.
2465
+ */
2466
+ id: string;
2467
+ }): CancelablePromise<{
2468
+ amount?: number;
2469
+ createdAt?: string;
2470
+ currency?: string;
2471
+ id?: string;
2472
+ interval?: string;
2473
+ intervalCount?: number;
2474
+ object?: string;
2475
+ productId?: string;
2476
+ type?: string;
2477
+ updatedAt?: string;
2478
+ }>;
2479
+ /**
2480
+ * List Products
2481
+ * This API endpoint lists the contracts in a workspace.
2482
+ * @returns any 200
2483
+ * @throws ApiError
2484
+ */
2485
+ static listProducts({
2486
+ name,
2487
+ nextToken,
2488
+ limit,
2489
+ }: {
2490
+ /**
2491
+ * Name of the product to filter on. Case-insensitive.
2492
+ */
2493
+ name?: string;
2494
+ /**
2495
+ * Next token for pagination
2496
+ */
2497
+ nextToken?: string;
2498
+ /**
2499
+ * Max number of records to fetch
2500
+ */
2501
+ limit?: number;
2502
+ }): CancelablePromise<{
2503
+ data?: Array<{
2504
+ createdAt?: string;
2505
+ id?: string;
2506
+ imageUrls?: any[];
2507
+ name?: string;
2508
+ object?: string;
2509
+ description?: string;
2510
+ status?: string;
2511
+ updatedAt?: string;
2512
+ }>;
2513
+ }>;
2514
+ /**
2515
+ * Retrieve Product
2516
+ * This API endpoint retrieves a specific product.
2517
+ * @returns any 200
2518
+ * @throws ApiError
2519
+ */
2520
+ static retrieveProduct({
2521
+ id,
2522
+ }: {
2523
+ /**
2524
+ * The unique ID of the product you want to retrieve.
2525
+ */
2526
+ id: string;
2527
+ }): CancelablePromise<{
2528
+ createdAt?: string;
2529
+ id?: string;
2530
+ imageUrls?: Array<string>;
2531
+ name?: string;
2532
+ object?: string;
2533
+ description?: string;
2534
+ status?: string;
2535
+ updatedAt?: string;
2536
+ }>;
2537
+ /**
2538
+ * Create Subscription
2539
+ * This API endpoint creates a subscription. A subscription is used to bill clients on a recurring basis.
2540
+ * @returns any 200
2541
+ * @throws ApiError
2542
+ */
2543
+ static createSubscription({
2544
+ requestBody,
2545
+ }: {
2546
+ requestBody?: {
2547
+ /**
2548
+ * Unique ID of the invoice template to use. If provided, template values will be used for lineItems, memo, taxPercentage, and currency
2549
+ */
2550
+ templateId?: string;
2551
+ /**
2552
+ * Deprecated in favor of clientId and companyId.
2553
+ */
2554
+ recipientId?: string;
2555
+ /**
2556
+ * Array of line items. Required if `templateId` is not provided.
2557
+ */
2558
+ lineItems?: Array<{
2559
+ /**
2560
+ * Amount in cents. Required if `priceId` not provided
2561
+ */
2562
+ amount?: number;
2563
+ /**
2564
+ * Description of the item, ignored if `priceId` is provided.
2565
+ */
2566
+ description?: string;
2567
+ /**
2568
+ * Quantity of the item (supports decimals).
2569
+ */
2570
+ quantity: number;
2571
+ /**
2572
+ * Unique ID of the `price` object. Required if `amount` is not provided.
2573
+ */
2574
+ priceId?: string;
2575
+ }>;
2576
+ /**
2577
+ * Arbitrary string attached to the invoice, often used for display
2578
+ */
2579
+ memo?: string;
2580
+ /**
2581
+ * The number of days from when the subscription invoice is created until it is due. Max value is 30.
2582
+ */
2583
+ daysUntilDue: number;
2584
+ /**
2585
+ * Tax percentage to apply to the invoice amount
2586
+ */
2587
+ taxPercentage?: number;
2588
+ /**
2589
+ * Billing frequency. Required if line items don't include a recurring price. Values: `day`, `week`, `month`, `quarterly`, `yearly`
2590
+ */
2591
+ interval?: string;
2592
+ /**
2593
+ * Number of intervals between billings. Default value = 1
2594
+ */
2595
+ intervalCount?: number;
2596
+ /**
2597
+ * Array of preferences which specify which payment methods are allowed and how transaction fees are handled for each payment method
2598
+ */
2599
+ paymentMethodPreferences: Array<{
2600
+ /**
2601
+ * Payment method type. Values are `creditCard` or `bankAccount`.
2602
+ */
2603
+ type: string;
2604
+ /**
2605
+ * When `true`, the transaction fee is paid by the client, otherwise is covered by your account.
2606
+ */
2607
+ feePaidByClient: boolean;
2608
+ }>;
2609
+ /**
2610
+ * Specify how to charge for an invoice values: `sendInvoice` , `chargeAutomatically`
2611
+ */
2612
+ collectionMethod: string;
2613
+ /**
2614
+ * The ID of the client this subscription is assigned to. Leave empty if assigning to a company.
2615
+ */
2616
+ clientId?: string;
2617
+ /**
2618
+ * The ID of the company this subscription is assigned to. This is required when assigning to a client with more than one company.
2619
+ */
2620
+ companyId?: string;
2621
+ };
2622
+ }): CancelablePromise<{
2623
+ id?: string;
2624
+ object?: string;
2625
+ createdAt?: string;
2626
+ collectionMethod?: string;
2627
+ status?: string;
2628
+ /**
2629
+ * @deprecated
2630
+ */
2631
+ recipientId?: string;
2632
+ clientId?: string;
2633
+ companyId?: string;
2634
+ memo?: string;
2635
+ taxPercentage?: number;
2636
+ currency?: string;
2637
+ interval?: string;
2638
+ intervalCount?: number;
2639
+ daysUntilDue?: number;
2640
+ canceledAt?: string;
2641
+ paymentMethodPreferences?: Array<{
2642
+ type?: string;
2643
+ feePaidByClient?: boolean;
2644
+ }>;
2645
+ lineItems?: Array<{
2646
+ priceId?: string;
2647
+ productId?: string;
2648
+ description?: string;
2649
+ quantity?: number;
2650
+ }>;
2651
+ updatedAt?: string;
2652
+ }>;
2653
+ /**
2654
+ * List Subscriptions
2655
+ * @returns any 200
2656
+ * @throws ApiError
2657
+ */
2658
+ static listSubscriptions({
2659
+ limit,
2660
+ nextToken,
2661
+ }: {
2662
+ /**
2663
+ * Max number of records to fetch
2664
+ */
2665
+ limit?: string;
2666
+ /**
2667
+ * Next token for pagination
2668
+ */
2669
+ nextToken?: string;
2670
+ }): CancelablePromise<{
2671
+ data?: Array<{
2672
+ id?: string;
2673
+ object?: string;
2674
+ createdAt?: string;
2675
+ collectionMethod?: string;
2676
+ status?: string;
2677
+ /**
2678
+ * @deprecated
2679
+ */
2680
+ recipientId?: string;
2681
+ clientId?: string;
2682
+ companyId?: string;
2683
+ memo?: string;
2684
+ taxPercentage?: number;
2685
+ currency?: string;
2686
+ interval?: string;
2687
+ intervalCount?: number;
2688
+ daysUntilDue?: number;
2689
+ canceledAt?: string;
2690
+ paymentPreferences?: {
2691
+ allowedPaymentMethodTypes?: Array<string>;
2692
+ absorbTransactionFee?: Array<{
2693
+ type?: string;
2694
+ feePaidByClient?: boolean;
2695
+ }>;
2696
+ };
2697
+ lineItems?: Array<{
2698
+ priceId?: string;
2699
+ productId?: string;
2700
+ description?: string;
2701
+ quantity?: number;
2702
+ }>;
2703
+ updatedAt?: string;
2704
+ }>;
2705
+ }>;
2706
+ /**
2707
+ * Retrieve Subscription
2708
+ * This API endpoint retrieves a specific subscription.
2709
+ * @returns any 200
2710
+ * @throws ApiError
2711
+ */
2712
+ static retrieveSubscription({
2713
+ id,
2714
+ }: {
2715
+ /**
2716
+ * The unique ID of the subscription you want to retrieve.
2717
+ */
2718
+ id: string;
2719
+ }): CancelablePromise<{
2720
+ id?: string;
2721
+ object?: string;
2722
+ createdAt?: string;
2723
+ collectionMethod?: string;
2724
+ status?: string;
2725
+ /**
2726
+ * @deprecated
2727
+ */
2728
+ recipientId?: string;
2729
+ clientId?: string;
2730
+ companyId?: string;
2731
+ memo?: string;
2732
+ taxPercentage?: number;
2733
+ currency?: string;
2734
+ interval?: string;
2735
+ intervalCount?: number;
2736
+ daysUntilDue?: number;
2737
+ canceledAt?: string;
2738
+ paymentPreferences?: {
2739
+ allowedPaymentMethodTypes?: Array<string>;
2740
+ absorbTransactionFee?: Array<{
2741
+ type?: string;
2742
+ feePaidByClient?: boolean;
2743
+ }>;
2744
+ };
2745
+ lineItems?: Array<{
2746
+ priceId?: string;
2747
+ productId?: string;
2748
+ description?: string;
2749
+ quantity?: number;
2750
+ }>;
2751
+ updatedAt?: string;
2752
+ }>;
2753
+ /**
2754
+ * Cancel Subscription
2755
+ * This API endpoint cancels a subscription with status `active` or `notStarted`
2756
+ * @returns any 200
2757
+ * @throws ApiError
2758
+ */
2759
+ static cancelSubscription({
2760
+ id,
2761
+ }: {
2762
+ /**
2763
+ * Unique ID of the subscription to cancel.
2764
+ */
2765
+ id: string;
2766
+ }): CancelablePromise<{
2767
+ id?: string;
2768
+ object?: string;
2769
+ createdAt?: string;
2770
+ collectionMethod?: string;
2771
+ status?: string;
2772
+ /**
2773
+ * @deprecated
2774
+ */
2775
+ recipientId?: string;
2776
+ clientId?: string;
2777
+ companyId?: string;
2778
+ memo?: string;
2779
+ taxPercentage?: number;
2780
+ currency?: string;
2781
+ interval?: string;
2782
+ intervalCount?: number;
2783
+ daysUntilDue?: number;
2784
+ canceledAt?: string;
2785
+ paymentPreferences?: {
2786
+ allowedPaymentMethodTypes?: Array<string>;
2787
+ absorbTransactionFee?: Array<{
2788
+ type?: string;
2789
+ feePaidByClient?: boolean;
2790
+ }>;
2791
+ };
2792
+ lineItems?: Array<{
2793
+ priceId?: string;
2794
+ productId?: string;
2795
+ description?: string;
2796
+ quantity?: number;
2797
+ }>;
2798
+ updatedAt?: string;
2799
+ }>;
2800
+ /**
2801
+ * List Subscription Templates
2802
+ * @returns any 200
2803
+ * @throws ApiError
2804
+ */
2805
+ static listSubscriptionTemplates({
2806
+ limit,
2807
+ nextToken,
2808
+ }: {
2809
+ /**
2810
+ * Max number of records to fetch
2811
+ */
2812
+ limit?: number;
2813
+ /**
2814
+ * Next token for pagination
2815
+ */
2816
+ nextToken?: string;
2817
+ }): CancelablePromise<{
2818
+ data?: Array<{
2819
+ id?: string;
2820
+ object?: string;
2821
+ createdAt?: string;
2822
+ updatedAt?: string;
2823
+ name?: string;
2824
+ memo?: string;
2825
+ taxPercentage?: number;
2826
+ currency?: string;
2827
+ interval?: string;
2828
+ intervalCount?: number;
2829
+ lineItems?: Array<{
2830
+ amount?: number;
2831
+ description?: string;
2832
+ quantity?: number;
2833
+ }>;
2834
+ }>;
2835
+ }>;
2836
+ /**
2837
+ * Retrieve Workspace
2838
+ * This API endpoint retrieves information about a workspace.
2839
+ * @returns any 200
2840
+ * @throws ApiError
2841
+ */
2842
+ static retrieveWorkspace(): CancelablePromise<{
2843
+ id?: string;
2844
+ industry?: string;
2845
+ isCompaniesEnabled?: boolean;
2846
+ isClientDirectSignUpEnabled?: boolean;
2847
+ logOutUrl?: string;
2848
+ brandName?: string;
2849
+ squareIconUrl?: string;
2850
+ fullLogoUrl?: string;
2851
+ squareLoginImageUrl?: string;
2852
+ socialSharingImageUrl?: string;
2853
+ colorSidebarBackground?: string;
2854
+ colorSidebarText?: string;
2855
+ colorAccent?: string;
2856
+ font?: string;
2857
+ metaTitle?: string;
2858
+ metaDescription?: string;
2859
+ portalUrl?: string;
2860
+ labels?: {
2861
+ individualTerm?: string;
2862
+ individualTermPlural?: string;
2863
+ groupTerm?: string;
2864
+ groupTermPlural?: string;
2865
+ };
2866
+ }>;
2867
+ /**
2868
+ * List Tasks
2869
+ * This API endpoint retrieves tasks in a workspace.
2870
+ * @returns any 200
2871
+ * @throws ApiError
2872
+ */
2873
+ static retrieveTasks({
2874
+ limit,
2875
+ nextToken,
2876
+ createdBy,
2877
+ parentTaskId,
2878
+ status,
2879
+ clientId,
2880
+ internalUserId,
2881
+ companyId,
2882
+ }: {
2883
+ /**
2884
+ * Max number of records to fetch.
2885
+ */
2886
+ limit?: number;
2887
+ /**
2888
+ * Next token for pagination.
2889
+ */
2890
+ nextToken?: string;
2891
+ /**
2892
+ * The creator of the tasks in order to filter the list response.
2893
+ */
2894
+ createdBy?: string;
2895
+ /**
2896
+ * The parent task id.
2897
+ */
2898
+ parentTaskId?: string;
2899
+ /**
2900
+ * The status of the tasks in order to filter the list response, one of todo/inProgress/completed.
2901
+ */
2902
+ status?: string;
2903
+ /**
2904
+ * the recipient client id
2905
+ */
2906
+ clientId?: string;
2907
+ /**
2908
+ * the recipient internal user id
2909
+ */
2910
+ internalUserId?: string;
2911
+ /**
2912
+ * the recipient company id
2913
+ */
2914
+ companyId?: string;
2915
+ }): CancelablePromise<{
2916
+ data?: Array<{
2917
+ archivedBy?: any;
2918
+ archivedDate?: any;
2919
+ clientId?: string;
2920
+ companyId?: string;
2921
+ internalUserId?: any;
2922
+ completedBy?: any;
2923
+ completedByUserType?: any;
2924
+ completedDate?: any;
2925
+ createdBy?: string;
2926
+ createdDate?: string;
2927
+ creatorType?: string;
2928
+ deletedBy?: any;
2929
+ deletedDate?: any;
2930
+ description?: string;
2931
+ dueDate?: any;
2932
+ id?: string;
2933
+ isArchived?: boolean;
2934
+ isDeleted?: boolean;
2935
+ label?: string;
2936
+ name?: string;
2937
+ object?: string;
2938
+ parentTaskId?: any;
2939
+ source?: string;
2940
+ status?: string;
2941
+ templateId?: any;
2942
+ viewers?: Array<any>;
2943
+ }>;
2944
+ nextToken?: string;
2945
+ }>;
2946
+ /**
2947
+ * Create Task
2948
+ * This API endpoint creates a task.
2949
+ * @returns any 200
2950
+ * @throws ApiError
2951
+ */
2952
+ static createTask({
2953
+ requestBody,
2954
+ }: {
2955
+ requestBody?: {
2956
+ /**
2957
+ * The name of the task.
2958
+ */
2959
+ name?: string;
2960
+ /**
2961
+ * The description of the task.
2962
+ */
2963
+ description?: string;
2964
+ /**
2965
+ * The parent task of the task, if task should be a subtask.
2966
+ */
2967
+ parentTaskId?: string;
2968
+ /**
2969
+ * The status of the task, one of todo/inProgress/completed.
2970
+ */
2971
+ status?: string;
2972
+ /**
2973
+ * The uuid of the internal user assigned to this task.
2974
+ */
2975
+ internalUserId?: string;
2976
+ /**
2977
+ * The uuid of the client user assigned to this task. Company ID field is required if this field is used.
2978
+ */
2979
+ clientId?: string;
2980
+ /**
2981
+ * The uuid of the company assigned to this task. If assigning to a client user, this field is required as well.
2982
+ */
2983
+ companyId?: string;
2984
+ /**
2985
+ * The date the task is due, in RFC3339 format.
2986
+ */
2987
+ dueDate?: string;
2988
+ /**
2989
+ * ID of the template to use when creating this task
2990
+ */
2991
+ templateId?: string;
2992
+ /**
2993
+ * The ID of the company or client that you would like to grant viewing access to the task. Viewers can only be added to tasks where the assignee is an internal user. Currently, only one entity (either a client or a company) can be added as a viewer per task.
2994
+ */
2995
+ viewers?: Array<{
2996
+ /**
2997
+ * If the task viewer is a client, you must add both the clientId and their companyId.
2998
+ */
2999
+ clientId?: string;
3000
+ /**
3001
+ * If the task viewer is a company, you must only add the companyId (leave clientId empty).
3002
+ */
3003
+ companyId?: string;
3004
+ }>;
3005
+ };
3006
+ }): CancelablePromise<{
3007
+ archivedBy?: any;
3008
+ archivedDate?: any;
3009
+ clientId?: string;
3010
+ companyId?: string;
3011
+ completedBy?: any;
3012
+ completedByUserType?: any;
3013
+ completedDate?: any;
3014
+ createdBy?: string;
3015
+ createdDate?: string;
3016
+ creatorType?: string;
3017
+ deletedBy?: any;
3018
+ deletedDate?: any;
3019
+ description?: string;
3020
+ dueDate?: any;
3021
+ id?: string;
3022
+ isArchived?: boolean;
3023
+ isDeleted?: boolean;
3024
+ label?: string;
3025
+ name?: string;
3026
+ object?: string;
3027
+ parentTaskId?: string;
3028
+ source?: string;
3029
+ status?: string;
3030
+ templateId?: any;
3031
+ viewers?: Array<{
3032
+ clientId?: string;
3033
+ companyId?: string;
3034
+ }>;
3035
+ }>;
3036
+ /**
3037
+ * Retrieve Task
3038
+ * This API endpoint retrieves a specific task by its id.
3039
+ * @returns any 200
3040
+ * @throws ApiError
3041
+ */
3042
+ static retrieveTask({
3043
+ id,
3044
+ }: {
3045
+ /**
3046
+ * The id of the task to retrieve.
3047
+ */
3048
+ id: string;
3049
+ }): CancelablePromise<{
3050
+ archivedBy?: any;
3051
+ archivedDate?: any;
3052
+ clientId?: string;
3053
+ companyId?: string;
3054
+ completedBy?: any;
3055
+ completedByUserType?: any;
3056
+ completedDate?: any;
3057
+ createdBy?: string;
3058
+ createdDate?: string;
3059
+ creatorType?: string;
3060
+ deletedBy?: any;
3061
+ deletedDate?: any;
3062
+ description?: string;
3063
+ dueDate?: any;
3064
+ id?: string;
3065
+ isArchived?: boolean;
3066
+ isDeleted?: boolean;
3067
+ label?: string;
3068
+ name?: string;
3069
+ object?: string;
3070
+ parentTaskId?: string;
3071
+ source?: string;
3072
+ status?: string;
3073
+ templateId?: string;
3074
+ viewers?: Array<any>;
3075
+ }>;
3076
+ /**
3077
+ * Update Task
3078
+ * This API endpoint updates a task.
3079
+ * @returns any 200
3080
+ * @throws ApiError
3081
+ */
3082
+ static updateTask({
3083
+ id,
3084
+ requestBody,
3085
+ }: {
3086
+ /**
3087
+ * The id of the task to update.
3088
+ */
3089
+ id: string;
3090
+ requestBody?: {
3091
+ /**
3092
+ * The name of the task.
3093
+ */
3094
+ name?: string;
3095
+ /**
3096
+ * The description of the task.
3097
+ */
3098
+ description?: string;
3099
+ /**
3100
+ * The status of the task.
3101
+ */
3102
+ status?: string;
3103
+ /**
3104
+ * The uuid of the internal user assigned to this task.
3105
+ */
3106
+ internalUserId?: string;
3107
+ /**
3108
+ * The uuid of the client user assigned to this task.
3109
+ */
3110
+ clientId?: string;
3111
+ /**
3112
+ * The uuid of the company assigned to this task. If assigning to a client user field should be required as well.
3113
+ */
3114
+ companyId?: string;
3115
+ /**
3116
+ * The date the task is due, in RFC3339 format.
3117
+ */
3118
+ dueDate?: string;
3119
+ /**
3120
+ * Whether to archive the task or not.
3121
+ */
3122
+ isArchived?: boolean;
3123
+ /**
3124
+ * The ID of the company or client that you would like to grant viewing access to the task. Viewers can only be added to tasks where the assignee is an internal user. Currently, only one entity (either a client or a company) can be added as a viewer per task.
3125
+ */
3126
+ viewers?: {
3127
+ /**
3128
+ * If the task viewer is a client, you must add both the clientId and their companyId.
3129
+ */
3130
+ clientId?: string;
3131
+ /**
3132
+ * If the task viewer is a company, you must only add the companyId (leave clientId empty).
3133
+ */
3134
+ companyId?: string;
3135
+ };
3136
+ };
3137
+ }): CancelablePromise<{
3138
+ archivedBy?: any;
3139
+ archivedDate?: any;
3140
+ clientId?: string;
3141
+ companyId?: string;
3142
+ completedBy?: any;
3143
+ completedByUserType?: any;
3144
+ completedDate?: any;
3145
+ createdBy?: string;
3146
+ createdDate?: string;
3147
+ creatorType?: string;
3148
+ deletedBy?: any;
3149
+ deletedDate?: any;
3150
+ description?: string;
3151
+ dueDate?: any;
3152
+ id?: string;
3153
+ isArchived?: boolean;
3154
+ isDeleted?: boolean;
3155
+ label?: string;
3156
+ name?: string;
3157
+ object?: string;
3158
+ parentTaskId?: string;
3159
+ source?: string;
3160
+ status?: string;
3161
+ templateId?: any;
3162
+ viewers?: Array<{
3163
+ clientId?: string;
3164
+ companyId?: string;
3165
+ }>;
3166
+ }>;
3167
+ /**
3168
+ * Delete Task
3169
+ * This API endpoint deletes a specific task.
3170
+ * @returns any 200
3171
+ * @throws ApiError
3172
+ */
3173
+ static deleteTask({
3174
+ id,
3175
+ }: {
3176
+ /**
3177
+ * The id of the task to delete.
3178
+ */
3179
+ id: string;
3180
+ }): CancelablePromise<{
3181
+ id?: string;
3182
+ object?: string;
3183
+ deleted?: boolean;
3184
+ }>;
3185
+ /**
3186
+ * List Task Templates
3187
+ * This API endpoint retrieves a list of task templates created in the workspace.
3188
+ * @returns any 200
3189
+ * @throws ApiError
3190
+ */
3191
+ static listTaskTemplates({
3192
+ limit,
3193
+ nextToken,
3194
+ }: {
3195
+ /**
3196
+ * Max number of records to fetch.
3197
+ */
3198
+ limit?: number;
3199
+ /**
3200
+ * Next token for pagination.
3201
+ */
3202
+ nextToken?: string;
3203
+ }): CancelablePromise<{
3204
+ createdDate?: string;
3205
+ description?: string;
3206
+ id?: string;
3207
+ name?: string;
3208
+ object?: string;
3209
+ subTaskTemplates?: Array<{
3210
+ createdDate?: string;
3211
+ description?: string;
3212
+ id?: string;
3213
+ name?: string;
3214
+ object?: string;
3215
+ }>;
3216
+ }>;
3217
+ /**
3218
+ * Retrieve Task Template
3219
+ * This API endpoint retrieves a specific task template by its id.
3220
+ * @returns any 200
3221
+ * @throws ApiError
3222
+ */
3223
+ static retrieveTaskTemplate({
3224
+ id,
3225
+ }: {
3226
+ /**
3227
+ * The id of the task template to retrieve.
3228
+ */
3229
+ id: string;
3230
+ }): CancelablePromise<{
3231
+ createdDate?: string;
3232
+ description?: string;
3233
+ id?: string;
3234
+ name?: string;
3235
+ object?: string;
3236
+ subTaskTemplates?: Array<{
3237
+ createdDate?: string;
3238
+ description?: string;
3239
+ id?: string;
3240
+ name?: string;
3241
+ object?: string;
3242
+ }>;
3243
+ }>;
3244
+ /**
3245
+ * @returns any Success
3246
+ * @throws ApiError
3247
+ */
3248
+ static putV1FilesIdPermissions({
3249
+ id,
3250
+ requestBody,
3251
+ }: {
3252
+ /**
3253
+ * The id of the folder to update or the string 'root' for the root folder
3254
+ */
3255
+ id: string;
3256
+ requestBody?: {
3257
+ /**
3258
+ * The permission level for clients. Must be either `read_write` or `read_only`
3259
+ */
3260
+ clientPermissions: string;
3261
+ /**
3262
+ * The id for the file channel. Required for updating root folder permissions.
3263
+ */
3264
+ channelId?: string;
3265
+ };
3266
+ }): CancelablePromise<any>;
3267
+ }