@lessly/sdk-app 0.1.11 → 0.2.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 (47) hide show
  1. package/dist/client.gen-kP64GHhc.d.cts +75 -0
  2. package/dist/client.gen-kP64GHhc.d.ts +75 -0
  3. package/dist/index.cjs +23 -735
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +23 -735
  8. package/dist/index.js.map +1 -1
  9. package/dist/mail/index.cjs +16 -0
  10. package/dist/mail/index.cjs.map +1 -0
  11. package/dist/mail/index.d.cts +13 -0
  12. package/dist/mail/index.d.ts +13 -0
  13. package/dist/mail/index.js +13 -0
  14. package/dist/mail/index.js.map +1 -0
  15. package/dist/playground/index.cjs +0 -55
  16. package/dist/playground/index.cjs.map +1 -1
  17. package/dist/playground/index.d.cts +2 -46
  18. package/dist/playground/index.d.ts +2 -46
  19. package/dist/playground/index.js +1 -45
  20. package/dist/playground/index.js.map +1 -1
  21. package/dist/tracking/index.cjs +26 -0
  22. package/dist/tracking/index.cjs.map +1 -0
  23. package/dist/tracking/index.d.cts +20 -0
  24. package/dist/tracking/index.d.ts +20 -0
  25. package/dist/tracking/index.js +21 -0
  26. package/dist/tracking/index.js.map +1 -0
  27. package/package.json +11 -7
  28. package/src/gen/bindings.gen.ts +23 -735
  29. package/src/gen/client.gen.ts +25 -219
  30. package/src/gen/mail/index.ts +3 -0
  31. package/src/gen/mail/queryOptions.gen.ts +17 -0
  32. package/src/gen/manifest.gen.ts +1 -1
  33. package/src/gen/playground/index.ts +1 -1
  34. package/src/gen/playground/queryOptions.gen.ts +0 -76
  35. package/src/gen/tracking/index.ts +3 -0
  36. package/src/gen/tracking/queryOptions.gen.ts +31 -0
  37. package/src/gen/types.gen.ts +27 -900
  38. package/dist/client.gen-DtgaSZYB.d.cts +0 -909
  39. package/dist/client.gen-DtgaSZYB.d.ts +0 -909
  40. package/dist/organization/index.cjs +0 -251
  41. package/dist/organization/index.cjs.map +0 -1
  42. package/dist/organization/index.d.cts +0 -200
  43. package/dist/organization/index.d.ts +0 -200
  44. package/dist/organization/index.js +0 -201
  45. package/dist/organization/index.js.map +0 -1
  46. package/src/gen/organization/index.ts +0 -3
  47. package/src/gen/organization/queryOptions.gen.ts +0 -318
package/dist/index.js CHANGED
@@ -100,779 +100,67 @@ async function executeRequest(opts, binding, input) {
100
100
 
101
101
  // src/gen/bindings.gen.ts
102
102
  var bindings = {
103
- "organization": {
104
- "auth": {
105
- "me": {
106
- "method": "GET",
107
- "path": "/governance/api/v1/auth/me",
108
- "readOnly": true
109
- }
110
- },
111
- "bindings": {
112
- "list": {
113
- "method": "GET",
114
- "params": [
115
- {
116
- "in": "path",
117
- "name": "productId"
118
- },
119
- {
120
- "in": "path",
121
- "name": "domainId"
122
- }
123
- ],
124
- "path": "/governance/api/v1/products/:productId/domains/:domainId/bindings",
125
- "readOnly": true
126
- }
127
- },
128
- "clickup": {
129
- "install": {
130
- "method": "GET",
131
- "path": "/governance/api/v1/connectors/clickup/install",
132
- "readOnly": false
133
- },
134
- "list-installations": {
135
- "method": "GET",
136
- "path": "/governance/api/v1/connectors/clickup/installations",
137
- "readOnly": true
138
- }
139
- },
140
- "cloudflare": {
141
- "install": {
142
- "method": "GET",
143
- "path": "/governance/api/v1/connectors/cloudflare/install",
144
- "readOnly": false
145
- }
146
- },
147
- "connectors": {
148
- "attach": {
149
- "method": "POST",
150
- "params": [
151
- {
152
- "in": "body",
153
- "name": "organizationId"
154
- },
155
- {
156
- "in": "path",
157
- "name": "id"
158
- },
159
- {
160
- "in": "body",
161
- "name": "productIds"
162
- }
163
- ],
164
- "path": "/governance/api/v1/connectors/:id/attachments",
165
- "readOnly": false
166
- },
167
- "delete": {
168
- "method": "DELETE",
169
- "params": [
170
- {
171
- "in": "path",
172
- "name": "id"
173
- }
174
- ],
175
- "path": "/governance/api/v1/connectors/:id/org",
176
- "readOnly": false
177
- },
178
- "detach": {
179
- "method": "DELETE",
180
- "params": [
181
- {
182
- "in": "path",
183
- "name": "id"
184
- },
185
- {
186
- "in": "path",
187
- "name": "productId"
188
- }
189
- ],
190
- "path": "/governance/api/v1/connectors/:id/attachments/:productId",
191
- "readOnly": false
192
- },
193
- "list": {
194
- "method": "GET",
195
- "params": [
196
- {
197
- "in": "query",
198
- "name": "productId"
199
- }
200
- ],
201
- "path": "/governance/api/v1/connectors/list",
202
- "readOnly": true
203
- },
204
- "list-attachments": {
205
- "method": "GET",
206
- "params": [
207
- {
208
- "in": "path",
209
- "name": "id"
210
- }
211
- ],
212
- "path": "/governance/api/v1/connectors/:id/attachments",
213
- "readOnly": true
214
- },
215
- "list-org": {
216
- "method": "GET",
217
- "params": [
218
- {
219
- "in": "path",
220
- "name": "organizationId"
221
- }
222
- ],
223
- "path": "/governance/api/v1/organizations/:organizationId/connectors",
224
- "readOnly": true
225
- },
226
- "remove": {
227
- "method": "DELETE",
228
- "params": [
229
- {
230
- "in": "path",
231
- "name": "id"
232
- }
233
- ],
234
- "path": "/governance/api/v1/connectors/:id",
235
- "readOnly": false
236
- }
237
- },
238
- "domains": {
239
- "add": {
240
- "method": "POST",
241
- "params": [
242
- {
243
- "in": "path",
244
- "name": "productId"
245
- },
246
- {
247
- "in": "body",
248
- "name": "domain"
249
- }
250
- ],
251
- "path": "/governance/api/v1/products/:productId/domains",
252
- "readOnly": false
253
- },
254
- "get": {
255
- "method": "GET",
256
- "params": [
257
- {
258
- "in": "path",
259
- "name": "productId"
260
- },
261
- {
262
- "in": "path",
263
- "name": "domainId"
264
- }
265
- ],
266
- "path": "/governance/api/v1/products/:productId/domains/:domainId",
267
- "readOnly": true
268
- },
269
- "list": {
270
- "method": "GET",
271
- "params": [
272
- {
273
- "in": "path",
274
- "name": "productId"
275
- }
276
- ],
277
- "path": "/governance/api/v1/products/:productId/domains",
278
- "readOnly": true
279
- },
280
- "remove": {
281
- "method": "DELETE",
282
- "params": [
283
- {
284
- "in": "path",
285
- "name": "productId"
286
- },
287
- {
288
- "in": "path",
289
- "name": "domainId"
290
- }
291
- ],
292
- "path": "/governance/api/v1/products/:productId/domains/:domainId",
293
- "readOnly": false
294
- }
295
- },
296
- "extensions": {
297
- "install": {
298
- "method": "POST",
299
- "params": [
300
- {
301
- "in": "path",
302
- "name": "productId"
303
- },
304
- {
305
- "in": "path",
306
- "name": "extensionId"
307
- }
308
- ],
309
- "path": "/governance/api/v1/products/:productId/extensions/:extensionId/install",
310
- "readOnly": false
311
- },
312
- "list": {
313
- "method": "GET",
314
- "path": "/governance/api/v1/extensions",
315
- "readOnly": true
316
- },
317
- "list-installed": {
318
- "method": "GET",
319
- "params": [
320
- {
321
- "in": "path",
322
- "name": "productId"
323
- }
324
- ],
325
- "path": "/governance/api/v1/products/:productId/extensions",
326
- "readOnly": true
327
- },
328
- "uninstall": {
329
- "method": "POST",
330
- "params": [
331
- {
332
- "in": "path",
333
- "name": "productId"
334
- },
335
- {
336
- "in": "path",
337
- "name": "extensionId"
338
- }
339
- ],
340
- "path": "/governance/api/v1/products/:productId/extensions/:extensionId/uninstall",
341
- "readOnly": false
342
- }
343
- },
344
- "gdrive": {
345
- "install": {
346
- "method": "GET",
347
- "path": "/governance/api/v1/connectors/gdrive/install",
348
- "readOnly": false
349
- }
350
- },
351
- "github": {
352
- "install": {
353
- "method": "GET",
354
- "path": "/governance/api/v1/connectors/github/install",
355
- "readOnly": false
356
- },
357
- "list-installations": {
358
- "method": "GET",
359
- "path": "/governance/api/v1/connectors/github/installations",
360
- "readOnly": true
361
- }
362
- },
363
- "googleads": {
364
- "install": {
365
- "method": "GET",
366
- "params": [
367
- {
368
- "in": "query",
369
- "name": "organizationId"
370
- }
371
- ],
372
- "path": "/governance/api/v1/connectors/googleads/install",
373
- "readOnly": false
374
- }
375
- },
376
- "member": {
377
- "accept-invite": {
378
- "method": "POST",
379
- "params": [
380
- {
381
- "in": "body",
382
- "name": "token"
383
- }
384
- ],
385
- "path": "/governance/api/v1/organizations/invitations/accept",
386
- "readOnly": false
387
- },
388
- "invite": {
389
- "method": "POST",
390
- "params": [
391
- {
392
- "in": "path",
393
- "name": "organizationId"
394
- },
395
- {
396
- "in": "body",
397
- "name": "email"
398
- },
399
- {
400
- "in": "body",
401
- "name": "role"
402
- },
403
- {
404
- "in": "body",
405
- "name": "productShares"
406
- }
407
- ],
408
- "path": "/governance/api/v1/organizations/:organizationId/invitations",
409
- "readOnly": false
410
- },
411
- "list": {
412
- "method": "GET",
413
- "params": [
414
- {
415
- "in": "path",
416
- "name": "organizationId"
417
- }
418
- ],
419
- "path": "/governance/api/v1/organizations/:organizationId/members",
420
- "readOnly": true
421
- },
422
- "list-invitations": {
423
- "method": "GET",
424
- "params": [
425
- {
426
- "in": "path",
427
- "name": "organizationId"
428
- }
429
- ],
430
- "path": "/governance/api/v1/organizations/:organizationId/invitations",
431
- "readOnly": true
432
- },
433
- "list-product-access": {
434
- "method": "GET",
435
- "params": [
436
- {
437
- "in": "path",
438
- "name": "organizationId"
439
- },
440
- {
441
- "in": "path",
442
- "name": "userId"
443
- }
444
- ],
445
- "path": "/governance/api/v1/organizations/:organizationId/members/:userId/products",
446
- "readOnly": true
447
- },
448
- "remove": {
449
- "method": "DELETE",
450
- "params": [
451
- {
452
- "in": "path",
453
- "name": "organizationId"
454
- },
455
- {
456
- "in": "path",
457
- "name": "userId"
458
- }
459
- ],
460
- "path": "/governance/api/v1/organizations/:organizationId/members/:userId",
461
- "readOnly": false
462
- },
463
- "revoke-invitation": {
464
- "method": "DELETE",
465
- "params": [
466
- {
467
- "in": "path",
468
- "name": "organizationId"
469
- },
470
- {
471
- "in": "path",
472
- "name": "invitationId"
473
- }
474
- ],
475
- "path": "/governance/api/v1/organizations/:organizationId/invitations/:invitationId",
476
- "readOnly": false
477
- },
478
- "set-role": {
479
- "method": "PATCH",
480
- "params": [
481
- {
482
- "in": "path",
483
- "name": "organizationId"
484
- },
485
- {
486
- "in": "path",
487
- "name": "userId"
488
- },
489
- {
490
- "in": "body",
491
- "name": "role"
492
- }
493
- ],
494
- "path": "/governance/api/v1/organizations/:organizationId/members/:userId/role",
495
- "readOnly": false
496
- },
497
- "share-product": {
498
- "method": "POST",
499
- "params": [
500
- {
501
- "in": "path",
502
- "name": "organizationId"
503
- },
504
- {
505
- "in": "path",
506
- "name": "userId"
507
- },
508
- {
509
- "in": "body",
510
- "name": "productId"
511
- },
512
- {
513
- "in": "body",
514
- "name": "role"
515
- },
516
- {
517
- "in": "body",
518
- "name": "expiresAt"
519
- },
520
- {
521
- "in": "body",
522
- "name": "permissions"
523
- },
524
- {
525
- "in": "body",
526
- "name": "roleId"
527
- }
528
- ],
529
- "path": "/governance/api/v1/organizations/:organizationId/members/:userId/products",
530
- "readOnly": false
531
- },
532
- "unshare-product": {
533
- "method": "DELETE",
534
- "params": [
535
- {
536
- "in": "path",
537
- "name": "organizationId"
538
- },
539
- {
540
- "in": "path",
541
- "name": "userId"
542
- },
543
- {
544
- "in": "path",
545
- "name": "productId"
546
- }
547
- ],
548
- "path": "/governance/api/v1/organizations/:organizationId/members/:userId/products/:productId",
549
- "readOnly": false
550
- }
551
- },
552
- "members": {
553
- "assign-role": {
554
- "method": "PUT",
555
- "params": [
556
- {
557
- "in": "path",
558
- "name": "productId"
559
- },
560
- {
561
- "in": "path",
562
- "name": "memberId"
563
- },
564
- {
565
- "in": "body",
566
- "name": "roleId"
567
- }
568
- ],
569
- "path": "/governance/api/v1/products/:productId/members/:memberId/role",
570
- "readOnly": false
571
- }
572
- },
573
- "permission": {
574
- "catalog": {
575
- "method": "GET",
576
- "path": "/governance/api/v1/organizations/permission-catalog",
577
- "readOnly": true
578
- }
579
- },
580
- "product": {
581
- "accept-invitation": {
582
- "method": "POST",
583
- "params": [
584
- {
585
- "in": "path",
586
- "name": "token"
587
- }
588
- ],
589
- "path": "/governance/api/v1/invitations/:token/accept",
590
- "readOnly": false
591
- },
592
- "create": {
593
- "method": "POST",
594
- "params": [
595
- {
596
- "in": "body",
597
- "name": "name"
598
- },
599
- {
600
- "in": "body",
601
- "name": "organizationName"
602
- }
603
- ],
604
- "path": "/governance/api/v1/products",
605
- "readOnly": false
606
- },
607
- "invite": {
103
+ "mail": {
104
+ "audiences": {
105
+ "add-contact": {
608
106
  "method": "POST",
609
107
  "params": [
610
108
  {
611
109
  "in": "path",
612
- "name": "productId"
110
+ "name": "audienceId"
613
111
  },
614
- {
615
- "in": "body",
616
- "name": "email"
617
- }
618
- ],
619
- "path": "/governance/api/v1/products/:productId/invitations",
620
- "readOnly": false
621
- },
622
- "list": {
623
- "method": "GET",
624
- "params": [
625
112
  {
626
113
  "in": "query",
627
- "name": "organizationId"
628
- }
629
- ],
630
- "path": "/governance/api/v1/products",
631
- "readOnly": true
632
- },
633
- "list-invitations": {
634
- "method": "GET",
635
- "params": [
636
- {
637
- "in": "path",
638
- "name": "productId"
639
- }
640
- ],
641
- "path": "/governance/api/v1/products/:productId/invitations",
642
- "readOnly": true
643
- },
644
- "list-members": {
645
- "method": "GET",
646
- "params": [
647
- {
648
- "in": "path",
649
- "name": "productId"
650
- }
651
- ],
652
- "path": "/governance/api/v1/products/:productId/members",
653
- "readOnly": true
654
- },
655
- "revoke-invitation": {
656
- "method": "POST",
657
- "params": [
658
- {
659
- "in": "body",
660
- "name": "productId"
114
+ "name": "dryRun"
661
115
  },
662
116
  {
663
117
  "in": "body",
664
- "name": "invitationId"
665
- }
666
- ],
667
- "path": "/governance/api/v1/products/revoke-invitation",
668
- "readOnly": false
669
- },
670
- "select": {
671
- "method": "POST",
672
- "params": [
673
- {
674
- "in": "body",
675
- "name": "productId"
118
+ "name": "email"
676
119
  }
677
120
  ],
678
- "path": "/governance/api/v1/products/select",
121
+ "path": "/mail/audiences/:audienceId/contacts",
679
122
  "readOnly": false
680
123
  }
681
124
  },
682
- "roles": {
683
- "create": {
684
- "method": "POST",
685
- "params": [
686
- {
687
- "in": "path",
688
- "name": "orgId"
689
- },
690
- {
691
- "in": "body",
692
- "name": "name"
693
- },
694
- {
695
- "in": "body",
696
- "name": "allow"
697
- },
698
- {
699
- "in": "body",
700
- "name": "deny"
701
- }
702
- ],
703
- "path": "/governance/api/v1/organizations/:orgId/roles",
704
- "readOnly": false
705
- },
706
- "delete": {
707
- "method": "DELETE",
708
- "params": [
709
- {
710
- "in": "path",
711
- "name": "orgId"
712
- },
713
- {
714
- "in": "path",
715
- "name": "roleId"
716
- }
717
- ],
718
- "path": "/governance/api/v1/organizations/:orgId/roles/:roleId",
719
- "readOnly": false
720
- },
721
- "get": {
722
- "method": "GET",
723
- "params": [
724
- {
725
- "in": "path",
726
- "name": "orgId"
727
- },
728
- {
729
- "in": "path",
730
- "name": "roleId"
731
- }
732
- ],
733
- "path": "/governance/api/v1/organizations/:orgId/roles/:roleId",
734
- "readOnly": true
735
- },
125
+ "template": {
736
126
  "list": {
737
127
  "method": "GET",
738
- "params": [
739
- {
740
- "in": "path",
741
- "name": "orgId"
742
- }
743
- ],
744
- "path": "/governance/api/v1/organizations/:orgId/roles",
128
+ "path": "/mail/templates",
745
129
  "readOnly": true
746
- },
747
- "update": {
748
- "method": "PATCH",
749
- "params": [
750
- {
751
- "in": "path",
752
- "name": "orgId"
753
- },
754
- {
755
- "in": "path",
756
- "name": "roleId"
757
- },
758
- {
759
- "in": "body",
760
- "name": "name"
761
- },
762
- {
763
- "in": "body",
764
- "name": "allow"
765
- },
766
- {
767
- "in": "body",
768
- "name": "deny"
769
- }
770
- ],
771
- "path": "/governance/api/v1/organizations/:orgId/roles/:roleId",
772
- "readOnly": false
773
130
  }
774
131
  }
775
132
  },
776
133
  "playground": {
777
- "analytics": {
778
- "overview": {
779
- "method": "POST",
780
- "params": [
781
- {
782
- "in": "body",
783
- "name": "limit"
784
- }
785
- ],
786
- "path": "/governance/analytics/overview",
787
- "readOnly": true
788
- }
789
- },
790
134
  "billing": {
791
- "entitlements": {
792
- "method": "POST",
793
- "path": "/governance/billing/entitlements",
794
- "readOnly": true
795
- },
796
135
  "record-usage": {
797
136
  "method": "POST",
798
- "params": [
799
- {
800
- "in": "body",
801
- "name": "value"
802
- }
803
- ],
804
- "path": "/governance/billing/usage",
137
+ "path": "/playground/billing/usage",
805
138
  "readOnly": false
806
139
  }
807
- },
808
- "clickup": {
809
- "create-task": {
140
+ }
141
+ },
142
+ "tracking": {
143
+ "domains": {
144
+ "create": {
810
145
  "method": "POST",
811
- "params": [
812
- {
813
- "in": "body",
814
- "name": "listId"
815
- },
816
- {
817
- "in": "body",
818
- "name": "name"
819
- }
820
- ],
821
- "path": "/governance/clickup/tasks",
146
+ "path": "/tracking/domains",
822
147
  "readOnly": false
823
148
  },
824
- "get-last-webhook": {
825
- "method": "GET",
826
- "path": "/governance/clickup/webhooks/last",
827
- "readOnly": true
828
- },
829
- "get-overview": {
830
- "method": "GET",
831
- "path": "/governance/clickup/overview",
832
- "readOnly": true
833
- }
834
- },
835
- "gdrive": {
836
- "get-last-change": {
837
- "method": "GET",
838
- "path": "/governance/gdrive/changes/last",
839
- "readOnly": true
840
- },
841
- "read-file": {
842
- "method": "POST",
843
- "params": [
844
- {
845
- "in": "body",
846
- "name": "fileId"
847
- }
848
- ],
849
- "path": "/governance/gdrive/file",
850
- "readOnly": true
851
- }
852
- },
853
- "googleads": {
854
- "read-customer": {
855
- "method": "POST",
856
- "path": "/governance/googleads/customer",
857
- "readOnly": true
858
- }
859
- },
860
- "lifecycle": {
861
- "get-state": {
149
+ "get": {
862
150
  "method": "GET",
863
- "path": "/governance/lifecycle/state",
151
+ "path": "/tracking/domains/:id",
864
152
  "readOnly": true
865
153
  },
866
- "list-events": {
154
+ "list": {
867
155
  "method": "GET",
868
- "path": "/governance/lifecycle/events",
156
+ "path": "/tracking/domains",
869
157
  "readOnly": true
870
158
  }
871
159
  },
872
- "webhook": {
873
- "get-last": {
160
+ "event-names": {
161
+ "list": {
874
162
  "method": "GET",
875
- "path": "/governance/webhooks/last",
163
+ "path": "/tracking/event-names",
876
164
  "readOnly": true
877
165
  }
878
166
  }