@lessly/sdk-app 70.0.0 → 70.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 (42) hide show
  1. package/dist/_types/gen/client.gen.d.ts +3 -40
  2. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  3. package/dist/_types/gen/organization/index.d.ts +1 -1
  4. package/dist/_types/gen/organization/queryOptions.gen.d.ts +1 -13
  5. package/dist/_types/gen/types.gen.d.ts +51 -380
  6. package/dist/_types/gen/users/index.d.ts +1 -1
  7. package/dist/_types/gen/users/queryOptions.gen.d.ts +9 -1
  8. package/dist/index.cjs +49 -348
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.js +11053 -75
  11. package/dist/index.js.map +1 -1
  12. package/dist/organization/index.cjs +0 -15
  13. package/dist/organization/index.cjs.map +1 -1
  14. package/dist/organization/index.js +1 -13
  15. package/dist/organization/index.js.map +1 -1
  16. package/dist/users/index.cjs +10 -0
  17. package/dist/users/index.cjs.map +1 -1
  18. package/dist/users/index.js +9 -1
  19. package/dist/users/index.js.map +1 -1
  20. package/package.json +2 -12
  21. package/src/gen/bindings.gen.ts +37 -284
  22. package/src/gen/client.gen.ts +6 -77
  23. package/src/gen/manifest.gen.ts +14 -74
  24. package/src/gen/organization/index.ts +1 -1
  25. package/src/gen/organization/queryOptions.gen.ts +0 -19
  26. package/src/gen/types.gen.ts +55 -430
  27. package/src/gen/users/index.ts +1 -1
  28. package/src/gen/users/queryOptions.gen.ts +12 -0
  29. package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
  30. package/dist/_types/gen/playground/index.d.ts +0 -3
  31. package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -66
  32. package/dist/chunk-GFP6RQ7Z.js +0 -11291
  33. package/dist/chunk-GFP6RQ7Z.js.map +0 -1
  34. package/dist/playground/index.cjs +0 -101
  35. package/dist/playground/index.cjs.map +0 -1
  36. package/dist/playground/index.d.cts +0 -1
  37. package/dist/playground/index.d.ts +0 -1
  38. package/dist/playground/index.js +0 -74
  39. package/dist/playground/index.js.map +0 -1
  40. package/src/gen/playground/connect.gen.ts +0 -9
  41. package/src/gen/playground/index.ts +0 -4
  42. package/src/gen/playground/queryOptions.gen.ts +0 -112
package/dist/index.cjs CHANGED
@@ -6872,79 +6872,6 @@ var bindings = {
6872
6872
  "readOnly": true
6873
6873
  }
6874
6874
  },
6875
- "principal-grants": {
6876
- "approve": {
6877
- "level": "write",
6878
- "method": "POST",
6879
- "operationKey": "organization_principal-grants_approve",
6880
- "params": [
6881
- {
6882
- "in": "path",
6883
- "name": "productId"
6884
- },
6885
- {
6886
- "in": "body",
6887
- "name": "principalKind"
6888
- },
6889
- {
6890
- "in": "body",
6891
- "name": "principalId"
6892
- },
6893
- {
6894
- "in": "body",
6895
- "name": "tools"
6896
- }
6897
- ],
6898
- "path": "/governance/api/v1/products/:productId/principal-grants/approve",
6899
- "readOnly": false
6900
- },
6901
- "list": {
6902
- "level": "read",
6903
- "method": "GET",
6904
- "operationKey": "organization_principal-grants_list",
6905
- "params": [
6906
- {
6907
- "in": "path",
6908
- "name": "productId"
6909
- },
6910
- {
6911
- "in": "query",
6912
- "name": "principalKind"
6913
- }
6914
- ],
6915
- "path": "/governance/api/v1/products/:productId/principal-grants",
6916
- "readOnly": true
6917
- },
6918
- "revoke": {
6919
- "level": "admin",
6920
- "method": "POST",
6921
- "operationKey": "organization_principal-grants_revoke",
6922
- "params": [
6923
- {
6924
- "in": "path",
6925
- "name": "productId"
6926
- },
6927
- {
6928
- "in": "body",
6929
- "name": "principalKind"
6930
- },
6931
- {
6932
- "in": "body",
6933
- "name": "principalId"
6934
- },
6935
- {
6936
- "in": "body",
6937
- "name": "tools"
6938
- },
6939
- {
6940
- "in": "body",
6941
- "name": "reason"
6942
- }
6943
- ],
6944
- "path": "/governance/api/v1/products/:productId/principal-grants/revoke",
6945
- "readOnly": false
6946
- }
6947
- },
6948
6875
  "product": {
6949
6876
  "create": {
6950
6877
  "level": "write",
@@ -7402,198 +7329,6 @@ var bindings = {
7402
7329
  }
7403
7330
  }
7404
7331
  },
7405
- "playground": {
7406
- "analytics": {
7407
- "overview": {
7408
- "level": "read",
7409
- "method": "POST",
7410
- "operationKey": "playground_analytics_overview",
7411
- "params": [
7412
- {
7413
- "in": "body",
7414
- "name": "limit"
7415
- }
7416
- ],
7417
- "path": "/playground/analytics/overview",
7418
- "readOnly": true
7419
- }
7420
- },
7421
- "billing": {
7422
- "entitlements": {
7423
- "level": "read",
7424
- "method": "POST",
7425
- "operationKey": "playground_billing_entitlements",
7426
- "path": "/playground/billing/entitlements",
7427
- "readOnly": true
7428
- },
7429
- "record-usage": {
7430
- "level": "write",
7431
- "method": "POST",
7432
- "operationKey": "playground_billing_record-usage",
7433
- "params": [
7434
- {
7435
- "in": "body",
7436
- "name": "value"
7437
- }
7438
- ],
7439
- "path": "/playground/billing/usage",
7440
- "readOnly": false
7441
- }
7442
- },
7443
- "clickup": {
7444
- "create-task": {
7445
- "level": "write",
7446
- "method": "POST",
7447
- "operationKey": "playground_clickup_create-task",
7448
- "params": [
7449
- {
7450
- "in": "body",
7451
- "name": "listId"
7452
- },
7453
- {
7454
- "in": "body",
7455
- "name": "name"
7456
- }
7457
- ],
7458
- "path": "/playground/clickup/tasks",
7459
- "readOnly": false
7460
- },
7461
- "get-last-webhook": {
7462
- "level": "read",
7463
- "method": "GET",
7464
- "operationKey": "playground_clickup_get-last-webhook",
7465
- "path": "/playground/clickup/webhooks/last",
7466
- "readOnly": true
7467
- },
7468
- "get-overview": {
7469
- "level": "read",
7470
- "method": "GET",
7471
- "operationKey": "playground_clickup_get-overview",
7472
- "path": "/playground/clickup/overview",
7473
- "readOnly": true
7474
- }
7475
- },
7476
- "gdrive": {
7477
- "get-last-change": {
7478
- "level": "read",
7479
- "method": "GET",
7480
- "operationKey": "playground_gdrive_get-last-change",
7481
- "path": "/playground/gdrive/changes/last",
7482
- "readOnly": true
7483
- },
7484
- "read-file": {
7485
- "level": "read",
7486
- "method": "POST",
7487
- "operationKey": "playground_gdrive_read-file",
7488
- "params": [
7489
- {
7490
- "in": "body",
7491
- "name": "fileId"
7492
- }
7493
- ],
7494
- "path": "/playground/gdrive/file",
7495
- "readOnly": true
7496
- }
7497
- },
7498
- "googleads": {
7499
- "read-customer": {
7500
- "level": "read",
7501
- "method": "POST",
7502
- "operationKey": "playground_googleads_read-customer",
7503
- "path": "/playground/googleads/customer",
7504
- "readOnly": true
7505
- }
7506
- },
7507
- "lifecycle": {
7508
- "get-state": {
7509
- "level": "read",
7510
- "method": "GET",
7511
- "operationKey": "playground_lifecycle_get-state",
7512
- "path": "/playground/lifecycle/state",
7513
- "readOnly": true
7514
- },
7515
- "list-events": {
7516
- "level": "read",
7517
- "method": "GET",
7518
- "operationKey": "playground_lifecycle_list-events",
7519
- "path": "/playground/lifecycle/events",
7520
- "readOnly": true
7521
- }
7522
- },
7523
- "webhook": {
7524
- "get-last": {
7525
- "level": "read",
7526
- "method": "GET",
7527
- "operationKey": "playground_webhook_get-last",
7528
- "path": "/playground/webhooks/last",
7529
- "readOnly": true
7530
- }
7531
- },
7532
- "workflow": {
7533
- "echo": {
7534
- "level": "write",
7535
- "method": "POST",
7536
- "operationKey": "playground_workflow_echo",
7537
- "params": [
7538
- {
7539
- "in": "body",
7540
- "name": "note"
7541
- },
7542
- {
7543
- "in": "body",
7544
- "name": "tags"
7545
- }
7546
- ],
7547
- "path": "/playground/workflow/echo",
7548
- "readOnly": false
7549
- },
7550
- "echo-list": {
7551
- "level": "read",
7552
- "method": "GET",
7553
- "operationKey": "playground_workflow_echo-list",
7554
- "path": "/playground/workflow/echoes",
7555
- "readOnly": true
7556
- },
7557
- "ping": {
7558
- "level": "write",
7559
- "method": "POST",
7560
- "operationKey": "playground_workflow_ping",
7561
- "params": [
7562
- {
7563
- "in": "body",
7564
- "name": "kind"
7565
- }
7566
- ],
7567
- "path": "/playground/workflow/ping",
7568
- "readOnly": false
7569
- },
7570
- "subjects-list": {
7571
- "level": "read",
7572
- "method": "GET",
7573
- "operationKey": "playground_workflow_subjects-list",
7574
- "params": [
7575
- {
7576
- "in": "query",
7577
- "name": "last_activity_before"
7578
- },
7579
- {
7580
- "in": "query",
7581
- "name": "last_activity_after"
7582
- },
7583
- {
7584
- "in": "query",
7585
- "name": "limit"
7586
- },
7587
- {
7588
- "in": "query",
7589
- "name": "cursor"
7590
- }
7591
- ],
7592
- "path": "/playground/workflow/subjects",
7593
- "readOnly": true
7594
- }
7595
- }
7596
- },
7597
7332
  "realtime": {
7598
7333
  "archive": {
7599
7334
  "export": {
@@ -9850,7 +9585,7 @@ var bindings = {
9850
9585
  "readOnly": true
9851
9586
  },
9852
9587
  "upsert": {
9853
- "level": "admin",
9588
+ "level": "write",
9854
9589
  "method": "PUT",
9855
9590
  "operationKey": "users_config_upsert",
9856
9591
  "params": [
@@ -9958,7 +9693,7 @@ var bindings = {
9958
9693
  "readOnly": true
9959
9694
  },
9960
9695
  "reset": {
9961
- "level": "admin",
9696
+ "level": "write",
9962
9697
  "method": "POST",
9963
9698
  "operationKey": "users_factors_reset",
9964
9699
  "params": [
@@ -10005,7 +9740,7 @@ var bindings = {
10005
9740
  "readOnly": false
10006
9741
  },
10007
9742
  "rotate": {
10008
- "level": "admin",
9743
+ "level": "write",
10009
9744
  "method": "POST",
10010
9745
  "operationKey": "users_keys_rotate",
10011
9746
  "path": "/users/keys/rotate",
@@ -10081,7 +9816,7 @@ var bindings = {
10081
9816
  "readOnly": true
10082
9817
  },
10083
9818
  "impersonate": {
10084
- "level": "admin",
9819
+ "level": "write",
10085
9820
  "method": "POST",
10086
9821
  "operationKey": "users_sessions_impersonate",
10087
9822
  "params": [
@@ -10145,7 +9880,7 @@ var bindings = {
10145
9880
  },
10146
9881
  "users": {
10147
9882
  "ban": {
10148
- "level": "admin",
9883
+ "level": "write",
10149
9884
  "method": "POST",
10150
9885
  "operationKey": "users_users_ban",
10151
9886
  "params": [
@@ -10219,8 +9954,21 @@ var bindings = {
10219
9954
  "path": "/users/users/:userId",
10220
9955
  "readOnly": false
10221
9956
  },
9957
+ "erase": {
9958
+ "level": "write",
9959
+ "method": "POST",
9960
+ "operationKey": "users_users_erase",
9961
+ "params": [
9962
+ {
9963
+ "in": "path",
9964
+ "name": "userId"
9965
+ }
9966
+ ],
9967
+ "path": "/users/users/:userId/erase",
9968
+ "readOnly": false
9969
+ },
10222
9970
  "export": {
10223
- "level": "admin",
9971
+ "level": "read",
10224
9972
  "method": "GET",
10225
9973
  "operationKey": "users_users_export",
10226
9974
  "params": [
@@ -10262,7 +10010,7 @@ var bindings = {
10262
10010
  "readOnly": true
10263
10011
  },
10264
10012
  "import": {
10265
- "level": "admin",
10013
+ "level": "write",
10266
10014
  "method": "POST",
10267
10015
  "operationKey": "users_users_import",
10268
10016
  "params": [
@@ -10337,7 +10085,7 @@ var bindings = {
10337
10085
  "readOnly": true
10338
10086
  },
10339
10087
  "unban": {
10340
- "level": "admin",
10088
+ "level": "write",
10341
10089
  "method": "POST",
10342
10090
  "operationKey": "users_users_unban",
10343
10091
  "params": [
@@ -10419,8 +10167,21 @@ var bindings = {
10419
10167
  }
10420
10168
  },
10421
10169
  "waitlist": {
10170
+ "erase": {
10171
+ "level": "write",
10172
+ "method": "POST",
10173
+ "operationKey": "users_waitlist_erase",
10174
+ "params": [
10175
+ {
10176
+ "in": "body",
10177
+ "name": "userId"
10178
+ }
10179
+ ],
10180
+ "path": "/users/waitlist/erase",
10181
+ "readOnly": false
10182
+ },
10422
10183
  "funnel": {
10423
- "level": "read",
10184
+ "level": "write",
10424
10185
  "method": "POST",
10425
10186
  "operationKey": "users_waitlist_funnel",
10426
10187
  "path": "/users/waitlist/funnel",
@@ -10584,7 +10345,7 @@ var bindings = {
10584
10345
  },
10585
10346
  "webhooks-rotate": {
10586
10347
  "secret": {
10587
- "level": "admin",
10348
+ "level": "write",
10588
10349
  "method": "POST",
10589
10350
  "operationKey": "users_webhooks_rotate_secret",
10590
10351
  "params": [
@@ -11849,9 +11610,6 @@ var operations = {
11849
11610
  "organization_member_unshare-product": "admin",
11850
11611
  "organization_members_assign-role": "admin",
11851
11612
  "organization_permission_catalog": "read",
11852
- "organization_principal-grants_approve": "write",
11853
- "organization_principal-grants_list": "read",
11854
- "organization_principal-grants_revoke": "admin",
11855
11613
  "organization_product_create": "write",
11856
11614
  "organization_product_list": "read",
11857
11615
  "organization_product_list-access": "read",
@@ -11881,22 +11639,6 @@ var operations = {
11881
11639
  "organization_support_threads_list": "read",
11882
11640
  "organization_x_install": "read",
11883
11641
  "organization_youtube_install": "read",
11884
- "playground_analytics_overview": "read",
11885
- "playground_billing_entitlements": "read",
11886
- "playground_billing_record-usage": "write",
11887
- "playground_clickup_create-task": "write",
11888
- "playground_clickup_get-last-webhook": "read",
11889
- "playground_clickup_get-overview": "read",
11890
- "playground_gdrive_get-last-change": "read",
11891
- "playground_gdrive_read-file": "read",
11892
- "playground_googleads_read-customer": "read",
11893
- "playground_lifecycle_get-state": "read",
11894
- "playground_lifecycle_list-events": "read",
11895
- "playground_webhook_get-last": "read",
11896
- "playground_workflow_echo": "write",
11897
- "playground_workflow_echo-list": "read",
11898
- "playground_workflow_ping": "write",
11899
- "playground_workflow_subjects-list": "read",
11900
11642
  "realtime_archive_export": "admin",
11901
11643
  "realtime_archive_export_status": "read",
11902
11644
  "realtime_archive_get": "read",
@@ -12010,33 +11752,35 @@ var operations = {
12010
11752
  "users_apikeys_revoke": "admin",
12011
11753
  "users_audit_list": "read",
12012
11754
  "users_config_get": "read",
12013
- "users_config_upsert": "admin",
11755
+ "users_config_upsert": "write",
12014
11756
  "users_factors_list": "read",
12015
- "users_factors_reset": "admin",
11757
+ "users_factors_reset": "write",
12016
11758
  "users_keys_list": "read",
12017
11759
  "users_keys_revoke": "admin",
12018
- "users_keys_rotate": "admin",
11760
+ "users_keys_rotate": "write",
12019
11761
  "users_ops_retention_get": "read",
12020
11762
  "users_ops_slo_get": "read",
12021
11763
  "users_passkeys_list": "read",
12022
11764
  "users_passkeys_revoke": "admin",
12023
11765
  "users_sessions_get": "read",
12024
- "users_sessions_impersonate": "admin",
11766
+ "users_sessions_impersonate": "write",
12025
11767
  "users_sessions_list": "read",
12026
11768
  "users_sessions_revoke": "admin",
12027
11769
  "users_stats_get": "read",
12028
- "users_users_ban": "admin",
11770
+ "users_users_ban": "write",
12029
11771
  "users_users_create": "write",
12030
11772
  "users_users_delete": "admin",
12031
- "users_users_export": "admin",
11773
+ "users_users_erase": "write",
11774
+ "users_users_export": "read",
12032
11775
  "users_users_get": "read",
12033
- "users_users_import": "admin",
11776
+ "users_users_import": "write",
12034
11777
  "users_users_invite": "write",
12035
11778
  "users_users_list": "read",
12036
11779
  "users_users_set_primary_identifier": "write",
12037
- "users_users_unban": "admin",
11780
+ "users_users_unban": "write",
12038
11781
  "users_users_update": "write",
12039
- "users_waitlist_funnel": "read",
11782
+ "users_waitlist_erase": "write",
11783
+ "users_waitlist_funnel": "write",
12040
11784
  "users_waitlist_import": "write",
12041
11785
  "users_waitlist_invite": "write",
12042
11786
  "users_waitlist_list": "read",
@@ -12045,7 +11789,7 @@ var operations = {
12045
11789
  "users_webhooks_deliveries_list": "read",
12046
11790
  "users_webhooks_get": "read",
12047
11791
  "users_webhooks_list": "read",
12048
- "users_webhooks_rotate_secret": "admin",
11792
+ "users_webhooks_rotate_secret": "write",
12049
11793
  "users_webhooks_update": "write",
12050
11794
  "waitlist_config_get": "read",
12051
11795
  "waitlist_config_upsert": "write",
@@ -12096,50 +11840,7 @@ var operations = {
12096
11840
  "workflow_wait_list_all": "read",
12097
11841
  "workflow_wait_resolve": "write"
12098
11842
  };
12099
- var compositions = {
12100
- "mail_audience_create": { "label": "Create audience" },
12101
- "mail_audience_delete": { "label": "Delete audience" },
12102
- "mail_audience_get": { "label": "Get audience" },
12103
- "mail_audience_list": { "label": "List audiences" },
12104
- "mail_audience_update": { "label": "Rename audience" },
12105
- "mail_broadcast_cancel": { "pii": ["output.from", "output.replyTo"], "label": "Cancel broadcast" },
12106
- "mail_broadcast_create": { "pii": ["input.from", "input.replyTo", "output.from", "output.replyTo"], "label": "Create broadcast", "options": { "audienceId": "mail_audience_list", "template.id": "mail_template_list" } },
12107
- "mail_broadcast_delete": { "label": "Delete broadcast" },
12108
- "mail_broadcast_get": { "pii": ["output.from", "output.replyTo"], "label": "Get broadcast" },
12109
- "mail_broadcast_list": { "pii": ["output.items[].from", "output.items[].replyTo"], "label": "List broadcasts" },
12110
- "mail_broadcast_queue": { "pii": ["output.from", "output.replyTo"], "label": "Queue broadcast" },
12111
- "mail_broadcast_stats": { "label": "Broadcast stats" },
12112
- "mail_broadcast_update": { "pii": ["input.from", "input.replyTo", "output.from", "output.replyTo"], "label": "Update broadcast", "options": { "audienceId": "mail_audience_list", "template.id": "mail_template_list" } },
12113
- "mail_contact_create": { "pii": ["input.email", "input.properties", "output.email", "output.properties"], "label": "Create contact", "options": { "audience_id": "mail_audience_list" } },
12114
- "mail_contact_delete": { "label": "Delete contact", "options": { "audience_id": "mail_audience_list" } },
12115
- "mail_contact_get": { "pii": ["output.email", "output.properties"], "label": "Get contact", "options": { "audience_id": "mail_audience_list" } },
12116
- "mail_contact_list": { "pii": ["output.data[].email", "output.data[].properties"], "label": "List contacts", "options": { "audience_id": "mail_audience_list" } },
12117
- "mail_contact_update": { "pii": ["input.properties", "output.email", "output.properties"], "label": "Update contact", "options": { "audience_id": "mail_audience_list" } },
12118
- "mail_domain_allowed_list": { "label": "List allowed apex domains" },
12119
- "mail_domain_get": { "label": "Get domain" },
12120
- "mail_domain_list": { "label": "List domains" },
12121
- "mail_domain_verify": { "label": "Verify domain", "completion_event": "mail/domain.verified" },
12122
- "mail_email_cancel": { "label": "Cancel email" },
12123
- "mail_email_get": { "pii": ["output.from", "output.to", "output.cc", "output.bcc"], "label": "Get email" },
12124
- "mail_email_send": { "pii": ["input.from", "input.to", "input.cc", "input.bcc", "input.reply_to"], "label": "Send email", "options": { "template.id": "mail_template_list" }, "completion_event": "mail/email.delivered" },
12125
- "mail_email_send_batch": { "pii": ["input.emails[].from", "input.emails[].to", "input.emails[].cc", "input.emails[].bcc", "input.emails[].reply_to"], "label": "Send email batch" },
12126
- "mail_email_update": { "label": "Reschedule email" },
12127
- "mail_reputation_get": { "label": "Get reputation status" },
12128
- "mail_stats_get": { "label": "Get sending stats" },
12129
- "mail_suppression_add": { "pii": ["input.address", "output.address"], "label": "Suppress address" },
12130
- "mail_suppression_list": { "pii": ["input.q", "output.items[].address"], "label": "List suppressions" },
12131
- "mail_suppression_remove": { "pii": ["input.address", "output.address"], "label": "Unsuppress address" },
12132
- "mail_template_create": { "label": "Create template" },
12133
- "mail_template_delete": { "label": "Delete template" },
12134
- "mail_template_get": { "label": "Get template" },
12135
- "mail_template_list": { "label": "List templates" },
12136
- "mail_template_publish": { "label": "Publish template" },
12137
- "mail_template_update": { "label": "Update template" },
12138
- "mail_usage_get": { "label": "Get usage" },
12139
- "playground_workflow_echo": { "pii": ["input.note", "output.note"], "label": "Store workflow echo", "completion_event": "playground/workflow.echoed" },
12140
- "playground_workflow_ping": { "label": "Fire workflow ping", "completion_event": "playground/workflow.ping" },
12141
- "playground_workflow_subjects-list": { "pii": ["output.items[].display_name"], "label": "List workflow subjects" }
12142
- };
11843
+ var compositions = {};
12143
11844
 
12144
11845
  // src/runtime/permission-match.ts
12145
11846
  var LEVELS = ["read", "write", "admin"];