@lessly/sdk-app 97.3.0 → 97.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -10,7 +10,7 @@ var LesslyApiError = class extends Error {
10
10
  status;
11
11
  code;
12
12
  body;
13
- /** True iff this is the gateway refusing the call over the caller's access. See ACCESS_DENIED_CODES. */
13
+ /** True for the three neutral gateway 403 refusals. See `isAccessDenied`. */
14
14
  accessDenied;
15
15
  constructor(status, code, message, body) {
16
16
  super(message);
@@ -33,6 +33,19 @@ function isAccessDenied(err) {
33
33
  const { status, code } = err;
34
34
  return status === 403 && typeof code === "string" && ACCESS_DENIED_CODES.has(code);
35
35
  }
36
+ function accessDenialKind(err) {
37
+ if (typeof err !== "object" || err === null) return null;
38
+ const { status, code } = err;
39
+ if (status !== 403) return null;
40
+ switch (code) {
41
+ case "role_denied":
42
+ case "no_tool_permission":
43
+ case "operation_uncatalogued":
44
+ return code;
45
+ default:
46
+ return null;
47
+ }
48
+ }
36
49
  var ENTITLEMENT_ERRORS = /* @__PURE__ */ new Set(["entitlement_exhausted", "entitlement_unavailable"]);
37
50
  function entitlementRefusal(err) {
38
51
  if (typeof err !== "object" || err === null) return null;
@@ -7726,6 +7739,213 @@ var bindings = {
7726
7739
  }
7727
7740
  }
7728
7741
  },
7742
+ "playground": {
7743
+ "analytics": {
7744
+ "overview": {
7745
+ "level": "read",
7746
+ "method": "POST",
7747
+ "operationKey": "playground_analytics_overview",
7748
+ "params": [
7749
+ {
7750
+ "in": "body",
7751
+ "name": "limit"
7752
+ }
7753
+ ],
7754
+ "path": "/playground/analytics/overview",
7755
+ "readOnly": true
7756
+ }
7757
+ },
7758
+ "billing": {
7759
+ "entitlements": {
7760
+ "level": "read",
7761
+ "method": "POST",
7762
+ "operationKey": "playground_billing_entitlements",
7763
+ "path": "/playground/billing/entitlements",
7764
+ "readOnly": true
7765
+ },
7766
+ "record-usage": {
7767
+ "level": "write",
7768
+ "method": "POST",
7769
+ "operationKey": "playground_billing_record-usage",
7770
+ "params": [
7771
+ {
7772
+ "in": "body",
7773
+ "name": "value"
7774
+ }
7775
+ ],
7776
+ "path": "/playground/billing/usage",
7777
+ "readOnly": false
7778
+ }
7779
+ },
7780
+ "clickup": {
7781
+ "create-task": {
7782
+ "level": "write",
7783
+ "method": "POST",
7784
+ "operationKey": "playground_clickup_create-task",
7785
+ "params": [
7786
+ {
7787
+ "in": "body",
7788
+ "name": "listId"
7789
+ },
7790
+ {
7791
+ "in": "body",
7792
+ "name": "name"
7793
+ }
7794
+ ],
7795
+ "path": "/playground/clickup/tasks",
7796
+ "readOnly": false
7797
+ },
7798
+ "get-last-webhook": {
7799
+ "level": "read",
7800
+ "method": "GET",
7801
+ "operationKey": "playground_clickup_get-last-webhook",
7802
+ "path": "/playground/clickup/webhooks/last",
7803
+ "readOnly": true
7804
+ },
7805
+ "get-overview": {
7806
+ "level": "read",
7807
+ "method": "GET",
7808
+ "operationKey": "playground_clickup_get-overview",
7809
+ "path": "/playground/clickup/overview",
7810
+ "readOnly": true
7811
+ }
7812
+ },
7813
+ "echo": {
7814
+ "ping": {
7815
+ "level": "read",
7816
+ "method": "POST",
7817
+ "operationKey": "playground_echo_ping",
7818
+ "params": [
7819
+ {
7820
+ "in": "body",
7821
+ "name": "message"
7822
+ }
7823
+ ],
7824
+ "path": "/playground/echo/ping",
7825
+ "readOnly": true
7826
+ }
7827
+ },
7828
+ "gdrive": {
7829
+ "get-last-change": {
7830
+ "level": "read",
7831
+ "method": "GET",
7832
+ "operationKey": "playground_gdrive_get-last-change",
7833
+ "path": "/playground/gdrive/changes/last",
7834
+ "readOnly": true
7835
+ },
7836
+ "read-file": {
7837
+ "level": "read",
7838
+ "method": "POST",
7839
+ "operationKey": "playground_gdrive_read-file",
7840
+ "params": [
7841
+ {
7842
+ "in": "body",
7843
+ "name": "fileId"
7844
+ }
7845
+ ],
7846
+ "path": "/playground/gdrive/file",
7847
+ "readOnly": true
7848
+ }
7849
+ },
7850
+ "googleads": {
7851
+ "read-customer": {
7852
+ "level": "read",
7853
+ "method": "POST",
7854
+ "operationKey": "playground_googleads_read-customer",
7855
+ "path": "/playground/googleads/customer",
7856
+ "readOnly": true
7857
+ }
7858
+ },
7859
+ "lifecycle": {
7860
+ "get-state": {
7861
+ "level": "read",
7862
+ "method": "GET",
7863
+ "operationKey": "playground_lifecycle_get-state",
7864
+ "path": "/playground/lifecycle/state",
7865
+ "readOnly": true
7866
+ },
7867
+ "list-events": {
7868
+ "level": "read",
7869
+ "method": "GET",
7870
+ "operationKey": "playground_lifecycle_list-events",
7871
+ "path": "/playground/lifecycle/events",
7872
+ "readOnly": true
7873
+ }
7874
+ },
7875
+ "webhook": {
7876
+ "get-last": {
7877
+ "level": "read",
7878
+ "method": "GET",
7879
+ "operationKey": "playground_webhook_get-last",
7880
+ "path": "/playground/webhooks/last",
7881
+ "readOnly": true
7882
+ }
7883
+ },
7884
+ "workflow": {
7885
+ "echo": {
7886
+ "level": "write",
7887
+ "method": "POST",
7888
+ "operationKey": "playground_workflow_echo",
7889
+ "params": [
7890
+ {
7891
+ "in": "body",
7892
+ "name": "note"
7893
+ },
7894
+ {
7895
+ "in": "body",
7896
+ "name": "tags"
7897
+ }
7898
+ ],
7899
+ "path": "/playground/workflow/echo",
7900
+ "readOnly": false
7901
+ },
7902
+ "echo-list": {
7903
+ "level": "read",
7904
+ "method": "GET",
7905
+ "operationKey": "playground_workflow_echo-list",
7906
+ "path": "/playground/workflow/echoes",
7907
+ "readOnly": true
7908
+ },
7909
+ "ping": {
7910
+ "level": "write",
7911
+ "method": "POST",
7912
+ "operationKey": "playground_workflow_ping",
7913
+ "params": [
7914
+ {
7915
+ "in": "body",
7916
+ "name": "kind"
7917
+ }
7918
+ ],
7919
+ "path": "/playground/workflow/ping",
7920
+ "readOnly": false
7921
+ },
7922
+ "subjects-list": {
7923
+ "level": "read",
7924
+ "method": "GET",
7925
+ "operationKey": "playground_workflow_subjects-list",
7926
+ "params": [
7927
+ {
7928
+ "in": "query",
7929
+ "name": "last_activity_before"
7930
+ },
7931
+ {
7932
+ "in": "query",
7933
+ "name": "last_activity_after"
7934
+ },
7935
+ {
7936
+ "in": "query",
7937
+ "name": "limit"
7938
+ },
7939
+ {
7940
+ "in": "query",
7941
+ "name": "cursor"
7942
+ }
7943
+ ],
7944
+ "path": "/playground/workflow/subjects",
7945
+ "readOnly": true
7946
+ }
7947
+ }
7948
+ },
7729
7949
  "realtime": {
7730
7950
  "archive": {
7731
7951
  "export": {
@@ -12211,6 +12431,23 @@ var operations = {
12211
12431
  "organization_support_threads_list": "read",
12212
12432
  "organization_x_install": "read",
12213
12433
  "organization_youtube_install": "read",
12434
+ "playground_analytics_overview": "read",
12435
+ "playground_billing_entitlements": "read",
12436
+ "playground_billing_record-usage": "write",
12437
+ "playground_clickup_create-task": "write",
12438
+ "playground_clickup_get-last-webhook": "read",
12439
+ "playground_clickup_get-overview": "read",
12440
+ "playground_echo_ping": "read",
12441
+ "playground_gdrive_get-last-change": "read",
12442
+ "playground_gdrive_read-file": "read",
12443
+ "playground_googleads_read-customer": "read",
12444
+ "playground_lifecycle_get-state": "read",
12445
+ "playground_lifecycle_list-events": "read",
12446
+ "playground_webhook_get-last": "read",
12447
+ "playground_workflow_echo": "write",
12448
+ "playground_workflow_echo-list": "read",
12449
+ "playground_workflow_ping": "write",
12450
+ "playground_workflow_subjects-list": "read",
12214
12451
  "realtime_archive_export": "admin",
12215
12452
  "realtime_archive_export_status": "read",
12216
12453
  "realtime_archive_get": "read",
@@ -12495,6 +12732,9 @@ var compositions = {
12495
12732
  "mail_template_unarchive": { "label": "Unarchive template", "options": { "id": "mail_template_list" } },
12496
12733
  "mail_template_update": { "label": "Update template", "options": { "id": "mail_template_list" } },
12497
12734
  "mail_usage_get": { "label": "Get usage" },
12735
+ "playground_workflow_echo": { "pii": ["input.note", "output.note"], "label": "Store workflow echo", "completion_event": "playground/workflow.echoed" },
12736
+ "playground_workflow_ping": { "label": "Fire workflow ping", "completion_event": "playground/workflow.ping" },
12737
+ "playground_workflow_subjects-list": { "pii": ["output.items[].display_name"], "label": "List workflow subjects" },
12498
12738
  "support_agent_create": { "pii": ["input.lesslyUserId", "output.lesslyUserId"], "label": "Create agent" },
12499
12739
  "support_agent_get": { "pii": ["output.lesslyUserId"], "label": "Get agent", "options": { "id": "support_agent_list" } },
12500
12740
  "support_agent_list": { "pii": ["output.agents[].lesslyUserId"], "label": "List agents" },
@@ -12854,6 +13094,7 @@ var operations2 = operations;
12854
13094
  var compositions2 = compositions;
12855
13095
 
12856
13096
  exports.LesslyApiError = LesslyApiError;
13097
+ exports.accessDenialKind = accessDenialKind;
12857
13098
  exports.accessReason = accessReason;
12858
13099
  exports.compositions = compositions2;
12859
13100
  exports.connectStream = connectStream;