@lessly/sdk-app 63.0.0 → 63.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -7329,6 +7329,134 @@ var bindings = {
7329
7329
  }
7330
7330
  }
7331
7331
  },
7332
+ "playground": {
7333
+ "analytics": {
7334
+ "overview": {
7335
+ "level": "read",
7336
+ "method": "POST",
7337
+ "operationKey": "playground_analytics_overview",
7338
+ "params": [
7339
+ {
7340
+ "in": "body",
7341
+ "name": "limit"
7342
+ }
7343
+ ],
7344
+ "path": "/playground/analytics/overview",
7345
+ "readOnly": true
7346
+ }
7347
+ },
7348
+ "billing": {
7349
+ "entitlements": {
7350
+ "level": "read",
7351
+ "method": "POST",
7352
+ "operationKey": "playground_billing_entitlements",
7353
+ "path": "/playground/billing/entitlements",
7354
+ "readOnly": true
7355
+ },
7356
+ "record-usage": {
7357
+ "level": "write",
7358
+ "method": "POST",
7359
+ "operationKey": "playground_billing_record-usage",
7360
+ "params": [
7361
+ {
7362
+ "in": "body",
7363
+ "name": "value"
7364
+ }
7365
+ ],
7366
+ "path": "/playground/billing/usage",
7367
+ "readOnly": false
7368
+ }
7369
+ },
7370
+ "clickup": {
7371
+ "create-task": {
7372
+ "level": "write",
7373
+ "method": "POST",
7374
+ "operationKey": "playground_clickup_create-task",
7375
+ "params": [
7376
+ {
7377
+ "in": "body",
7378
+ "name": "listId"
7379
+ },
7380
+ {
7381
+ "in": "body",
7382
+ "name": "name"
7383
+ }
7384
+ ],
7385
+ "path": "/playground/clickup/tasks",
7386
+ "readOnly": false
7387
+ },
7388
+ "get-last-webhook": {
7389
+ "level": "read",
7390
+ "method": "GET",
7391
+ "operationKey": "playground_clickup_get-last-webhook",
7392
+ "path": "/playground/clickup/webhooks/last",
7393
+ "readOnly": true
7394
+ },
7395
+ "get-overview": {
7396
+ "level": "read",
7397
+ "method": "GET",
7398
+ "operationKey": "playground_clickup_get-overview",
7399
+ "path": "/playground/clickup/overview",
7400
+ "readOnly": true
7401
+ }
7402
+ },
7403
+ "gdrive": {
7404
+ "get-last-change": {
7405
+ "level": "read",
7406
+ "method": "GET",
7407
+ "operationKey": "playground_gdrive_get-last-change",
7408
+ "path": "/playground/gdrive/changes/last",
7409
+ "readOnly": true
7410
+ },
7411
+ "read-file": {
7412
+ "level": "read",
7413
+ "method": "POST",
7414
+ "operationKey": "playground_gdrive_read-file",
7415
+ "params": [
7416
+ {
7417
+ "in": "body",
7418
+ "name": "fileId"
7419
+ }
7420
+ ],
7421
+ "path": "/playground/gdrive/file",
7422
+ "readOnly": true
7423
+ }
7424
+ },
7425
+ "googleads": {
7426
+ "read-customer": {
7427
+ "level": "read",
7428
+ "method": "POST",
7429
+ "operationKey": "playground_googleads_read-customer",
7430
+ "path": "/playground/googleads/customer",
7431
+ "readOnly": true
7432
+ }
7433
+ },
7434
+ "lifecycle": {
7435
+ "get-state": {
7436
+ "level": "read",
7437
+ "method": "GET",
7438
+ "operationKey": "playground_lifecycle_get-state",
7439
+ "path": "/playground/lifecycle/state",
7440
+ "readOnly": true
7441
+ },
7442
+ "list-events": {
7443
+ "level": "read",
7444
+ "method": "GET",
7445
+ "operationKey": "playground_lifecycle_list-events",
7446
+ "path": "/playground/lifecycle/events",
7447
+ "readOnly": true
7448
+ }
7449
+ },
7450
+ "webhook": {
7451
+ "get-last": {
7452
+ "level": "read",
7453
+ "method": "GET",
7454
+ "operationKey": "playground_webhook_get-last",
7455
+ "path": "/playground/webhooks/last",
7456
+ "readOnly": true
7457
+ }
7458
+ }
7459
+ },
7332
7460
  "realtime": {
7333
7461
  "archive": {
7334
7462
  "export": {
@@ -10896,6 +11024,18 @@ var operations = {
10896
11024
  "organization_support_threads_list": "read",
10897
11025
  "organization_x_install": "read",
10898
11026
  "organization_youtube_install": "read",
11027
+ "playground_analytics_overview": "read",
11028
+ "playground_billing_entitlements": "read",
11029
+ "playground_billing_record-usage": "write",
11030
+ "playground_clickup_create-task": "write",
11031
+ "playground_clickup_get-last-webhook": "read",
11032
+ "playground_clickup_get-overview": "read",
11033
+ "playground_gdrive_get-last-change": "read",
11034
+ "playground_gdrive_read-file": "read",
11035
+ "playground_googleads_read-customer": "read",
11036
+ "playground_lifecycle_get-state": "read",
11037
+ "playground_lifecycle_list-events": "read",
11038
+ "playground_webhook_get-last": "read",
10899
11039
  "realtime_archive_export": "admin",
10900
11040
  "realtime_archive_export_status": "read",
10901
11041
  "realtime_archive_get": "read",
@@ -11134,7 +11274,7 @@ function normalize(raw) {
11134
11274
  deny: asStringArray(r.deny)
11135
11275
  };
11136
11276
  }
11137
- function createAccess(opts, bindings2, operations2) {
11277
+ function createAccess(opts, bindings2, operations3) {
11138
11278
  let snapshot;
11139
11279
  let inflight;
11140
11280
  let state = "idle";
@@ -11171,7 +11311,7 @@ function createAccess(opts, bindings2, operations2) {
11171
11311
  if (state !== "ready" || !snapshot) return false;
11172
11312
  if (ELEVATED_ROLES.has(snapshot.role)) return true;
11173
11313
  const key = typeof op === "string" ? op : op.operationKey;
11174
- const level = typeof op === "string" ? operations2[key] : op.level;
11314
+ const level = typeof op === "string" ? operations3[key] : op.level;
11175
11315
  const subject = level === void 0 ? { key } : { key, level };
11176
11316
  return evaluate(subject, { allow: snapshot.allow, deny: snapshot.deny });
11177
11317
  },
@@ -11267,10 +11407,14 @@ function accessReason(op) {
11267
11407
  return typeof op === "string" ? `Requires access to ${op}. Ask an admin of this product.` : `Requires level:${op.level} (${op.operationKey}). Ask an admin of this product.`;
11268
11408
  }
11269
11409
 
11410
+ // src/runtime/operations.ts
11411
+ var operations2 = operations;
11412
+
11270
11413
  exports.LesslyApiError = LesslyApiError;
11271
11414
  exports.accessReason = accessReason;
11272
11415
  exports.connectStream = connectStream;
11273
11416
  exports.createLesslyApp = createLesslyApp;
11274
11417
  exports.isAccessDenied = isAccessDenied;
11418
+ exports.operations = operations2;
11275
11419
  //# sourceMappingURL=index.cjs.map
11276
11420
  //# sourceMappingURL=index.cjs.map