@lepsto/sdk-app 87.1.0 → 87.3.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/_types/gen/client.gen.d.ts +1 -38
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/types.gen.d.ts +0 -326
- package/dist/_types/index.d.ts +1 -0
- package/dist/_types/runtime/platform-base-url.d.ts +16 -0
- package/dist/index.cjs +26 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11202 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -12
- package/src/gen/bindings.gen.ts +3 -218
- package/src/gen/client.gen.ts +0 -71
- package/src/gen/manifest.gen.ts +3 -23
- package/src/gen/types.gen.ts +0 -372
- package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
- package/dist/_types/gen/playground/index.d.ts +0 -3
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
- package/dist/chunk-EMK3O6JA.js +0 -11397
- package/dist/chunk-EMK3O6JA.js.map +0 -1
- package/dist/playground/index.cjs +0 -106
- package/dist/playground/index.cjs.map +0 -1
- package/dist/playground/index.d.cts +0 -1
- package/dist/playground/index.d.ts +0 -1
- package/dist/playground/index.js +0 -78
- package/dist/playground/index.js.map +0 -1
- package/src/gen/playground/connect.gen.ts +0 -9
- package/src/gen/playground/index.ts +0 -4
- package/src/gen/playground/queryOptions.gen.ts +0 -119
package/dist/index.cjs
CHANGED
|
@@ -7487,213 +7487,6 @@ var bindings = {
|
|
|
7487
7487
|
}
|
|
7488
7488
|
}
|
|
7489
7489
|
},
|
|
7490
|
-
"playground": {
|
|
7491
|
-
"analytics": {
|
|
7492
|
-
"overview": {
|
|
7493
|
-
"level": "read",
|
|
7494
|
-
"method": "POST",
|
|
7495
|
-
"operationKey": "playground_analytics_overview",
|
|
7496
|
-
"params": [
|
|
7497
|
-
{
|
|
7498
|
-
"in": "body",
|
|
7499
|
-
"name": "limit"
|
|
7500
|
-
}
|
|
7501
|
-
],
|
|
7502
|
-
"path": "/playground/analytics/overview",
|
|
7503
|
-
"readOnly": true
|
|
7504
|
-
}
|
|
7505
|
-
},
|
|
7506
|
-
"billing": {
|
|
7507
|
-
"entitlements": {
|
|
7508
|
-
"level": "read",
|
|
7509
|
-
"method": "POST",
|
|
7510
|
-
"operationKey": "playground_billing_entitlements",
|
|
7511
|
-
"path": "/playground/billing/entitlements",
|
|
7512
|
-
"readOnly": true
|
|
7513
|
-
},
|
|
7514
|
-
"record-usage": {
|
|
7515
|
-
"level": "write",
|
|
7516
|
-
"method": "POST",
|
|
7517
|
-
"operationKey": "playground_billing_record-usage",
|
|
7518
|
-
"params": [
|
|
7519
|
-
{
|
|
7520
|
-
"in": "body",
|
|
7521
|
-
"name": "value"
|
|
7522
|
-
}
|
|
7523
|
-
],
|
|
7524
|
-
"path": "/playground/billing/usage",
|
|
7525
|
-
"readOnly": false
|
|
7526
|
-
}
|
|
7527
|
-
},
|
|
7528
|
-
"clickup": {
|
|
7529
|
-
"create-task": {
|
|
7530
|
-
"level": "write",
|
|
7531
|
-
"method": "POST",
|
|
7532
|
-
"operationKey": "playground_clickup_create-task",
|
|
7533
|
-
"params": [
|
|
7534
|
-
{
|
|
7535
|
-
"in": "body",
|
|
7536
|
-
"name": "listId"
|
|
7537
|
-
},
|
|
7538
|
-
{
|
|
7539
|
-
"in": "body",
|
|
7540
|
-
"name": "name"
|
|
7541
|
-
}
|
|
7542
|
-
],
|
|
7543
|
-
"path": "/playground/clickup/tasks",
|
|
7544
|
-
"readOnly": false
|
|
7545
|
-
},
|
|
7546
|
-
"get-last-webhook": {
|
|
7547
|
-
"level": "read",
|
|
7548
|
-
"method": "GET",
|
|
7549
|
-
"operationKey": "playground_clickup_get-last-webhook",
|
|
7550
|
-
"path": "/playground/clickup/webhooks/last",
|
|
7551
|
-
"readOnly": true
|
|
7552
|
-
},
|
|
7553
|
-
"get-overview": {
|
|
7554
|
-
"level": "read",
|
|
7555
|
-
"method": "GET",
|
|
7556
|
-
"operationKey": "playground_clickup_get-overview",
|
|
7557
|
-
"path": "/playground/clickup/overview",
|
|
7558
|
-
"readOnly": true
|
|
7559
|
-
}
|
|
7560
|
-
},
|
|
7561
|
-
"echo": {
|
|
7562
|
-
"ping": {
|
|
7563
|
-
"level": "read",
|
|
7564
|
-
"method": "POST",
|
|
7565
|
-
"operationKey": "playground_echo_ping",
|
|
7566
|
-
"params": [
|
|
7567
|
-
{
|
|
7568
|
-
"in": "body",
|
|
7569
|
-
"name": "message"
|
|
7570
|
-
}
|
|
7571
|
-
],
|
|
7572
|
-
"path": "/playground/echo/ping",
|
|
7573
|
-
"readOnly": true
|
|
7574
|
-
}
|
|
7575
|
-
},
|
|
7576
|
-
"gdrive": {
|
|
7577
|
-
"get-last-change": {
|
|
7578
|
-
"level": "read",
|
|
7579
|
-
"method": "GET",
|
|
7580
|
-
"operationKey": "playground_gdrive_get-last-change",
|
|
7581
|
-
"path": "/playground/gdrive/changes/last",
|
|
7582
|
-
"readOnly": true
|
|
7583
|
-
},
|
|
7584
|
-
"read-file": {
|
|
7585
|
-
"level": "read",
|
|
7586
|
-
"method": "POST",
|
|
7587
|
-
"operationKey": "playground_gdrive_read-file",
|
|
7588
|
-
"params": [
|
|
7589
|
-
{
|
|
7590
|
-
"in": "body",
|
|
7591
|
-
"name": "fileId"
|
|
7592
|
-
}
|
|
7593
|
-
],
|
|
7594
|
-
"path": "/playground/gdrive/file",
|
|
7595
|
-
"readOnly": true
|
|
7596
|
-
}
|
|
7597
|
-
},
|
|
7598
|
-
"googleads": {
|
|
7599
|
-
"read-customer": {
|
|
7600
|
-
"level": "read",
|
|
7601
|
-
"method": "POST",
|
|
7602
|
-
"operationKey": "playground_googleads_read-customer",
|
|
7603
|
-
"path": "/playground/googleads/customer",
|
|
7604
|
-
"readOnly": true
|
|
7605
|
-
}
|
|
7606
|
-
},
|
|
7607
|
-
"lifecycle": {
|
|
7608
|
-
"get-state": {
|
|
7609
|
-
"level": "read",
|
|
7610
|
-
"method": "GET",
|
|
7611
|
-
"operationKey": "playground_lifecycle_get-state",
|
|
7612
|
-
"path": "/playground/lifecycle/state",
|
|
7613
|
-
"readOnly": true
|
|
7614
|
-
},
|
|
7615
|
-
"list-events": {
|
|
7616
|
-
"level": "read",
|
|
7617
|
-
"method": "GET",
|
|
7618
|
-
"operationKey": "playground_lifecycle_list-events",
|
|
7619
|
-
"path": "/playground/lifecycle/events",
|
|
7620
|
-
"readOnly": true
|
|
7621
|
-
}
|
|
7622
|
-
},
|
|
7623
|
-
"webhook": {
|
|
7624
|
-
"get-last": {
|
|
7625
|
-
"level": "read",
|
|
7626
|
-
"method": "GET",
|
|
7627
|
-
"operationKey": "playground_webhook_get-last",
|
|
7628
|
-
"path": "/playground/webhooks/last",
|
|
7629
|
-
"readOnly": true
|
|
7630
|
-
}
|
|
7631
|
-
},
|
|
7632
|
-
"workflow": {
|
|
7633
|
-
"echo": {
|
|
7634
|
-
"level": "write",
|
|
7635
|
-
"method": "POST",
|
|
7636
|
-
"operationKey": "playground_workflow_echo",
|
|
7637
|
-
"params": [
|
|
7638
|
-
{
|
|
7639
|
-
"in": "body",
|
|
7640
|
-
"name": "note"
|
|
7641
|
-
},
|
|
7642
|
-
{
|
|
7643
|
-
"in": "body",
|
|
7644
|
-
"name": "tags"
|
|
7645
|
-
}
|
|
7646
|
-
],
|
|
7647
|
-
"path": "/playground/workflow/echo",
|
|
7648
|
-
"readOnly": false
|
|
7649
|
-
},
|
|
7650
|
-
"echo-list": {
|
|
7651
|
-
"level": "read",
|
|
7652
|
-
"method": "GET",
|
|
7653
|
-
"operationKey": "playground_workflow_echo-list",
|
|
7654
|
-
"path": "/playground/workflow/echoes",
|
|
7655
|
-
"readOnly": true
|
|
7656
|
-
},
|
|
7657
|
-
"ping": {
|
|
7658
|
-
"level": "write",
|
|
7659
|
-
"method": "POST",
|
|
7660
|
-
"operationKey": "playground_workflow_ping",
|
|
7661
|
-
"params": [
|
|
7662
|
-
{
|
|
7663
|
-
"in": "body",
|
|
7664
|
-
"name": "kind"
|
|
7665
|
-
}
|
|
7666
|
-
],
|
|
7667
|
-
"path": "/playground/workflow/ping",
|
|
7668
|
-
"readOnly": false
|
|
7669
|
-
},
|
|
7670
|
-
"subjects-list": {
|
|
7671
|
-
"level": "read",
|
|
7672
|
-
"method": "GET",
|
|
7673
|
-
"operationKey": "playground_workflow_subjects-list",
|
|
7674
|
-
"params": [
|
|
7675
|
-
{
|
|
7676
|
-
"in": "query",
|
|
7677
|
-
"name": "last_activity_before"
|
|
7678
|
-
},
|
|
7679
|
-
{
|
|
7680
|
-
"in": "query",
|
|
7681
|
-
"name": "last_activity_after"
|
|
7682
|
-
},
|
|
7683
|
-
{
|
|
7684
|
-
"in": "query",
|
|
7685
|
-
"name": "limit"
|
|
7686
|
-
},
|
|
7687
|
-
{
|
|
7688
|
-
"in": "query",
|
|
7689
|
-
"name": "cursor"
|
|
7690
|
-
}
|
|
7691
|
-
],
|
|
7692
|
-
"path": "/playground/workflow/subjects",
|
|
7693
|
-
"readOnly": true
|
|
7694
|
-
}
|
|
7695
|
-
}
|
|
7696
|
-
},
|
|
7697
7490
|
"realtime": {
|
|
7698
7491
|
"archive": {
|
|
7699
7492
|
"export": {
|
|
@@ -11264,7 +11057,7 @@ var bindings = {
|
|
|
11264
11057
|
"readOnly": true
|
|
11265
11058
|
},
|
|
11266
11059
|
"set": {
|
|
11267
|
-
"level": "
|
|
11060
|
+
"level": "write",
|
|
11268
11061
|
"method": "POST",
|
|
11269
11062
|
"operationKey": "workflow_killswitch_set",
|
|
11270
11063
|
"params": [
|
|
@@ -11574,7 +11367,7 @@ var bindings = {
|
|
|
11574
11367
|
},
|
|
11575
11368
|
"wait-list": {
|
|
11576
11369
|
"all": {
|
|
11577
|
-
"level": "
|
|
11370
|
+
"level": "read",
|
|
11578
11371
|
"method": "GET",
|
|
11579
11372
|
"operationKey": "workflow_wait_list_all",
|
|
11580
11373
|
"params": [
|
|
@@ -11994,23 +11787,6 @@ var operations = {
|
|
|
11994
11787
|
"organization_support_threads_list": "read",
|
|
11995
11788
|
"organization_x_install": "read",
|
|
11996
11789
|
"organization_youtube_install": "read",
|
|
11997
|
-
"playground_analytics_overview": "read",
|
|
11998
|
-
"playground_billing_entitlements": "read",
|
|
11999
|
-
"playground_billing_record-usage": "write",
|
|
12000
|
-
"playground_clickup_create-task": "write",
|
|
12001
|
-
"playground_clickup_get-last-webhook": "read",
|
|
12002
|
-
"playground_clickup_get-overview": "read",
|
|
12003
|
-
"playground_echo_ping": "read",
|
|
12004
|
-
"playground_gdrive_get-last-change": "read",
|
|
12005
|
-
"playground_gdrive_read-file": "read",
|
|
12006
|
-
"playground_googleads_read-customer": "read",
|
|
12007
|
-
"playground_lifecycle_get-state": "read",
|
|
12008
|
-
"playground_lifecycle_list-events": "read",
|
|
12009
|
-
"playground_webhook_get-last": "read",
|
|
12010
|
-
"playground_workflow_echo": "write",
|
|
12011
|
-
"playground_workflow_echo-list": "read",
|
|
12012
|
-
"playground_workflow_ping": "write",
|
|
12013
|
-
"playground_workflow_subjects-list": "read",
|
|
12014
11790
|
"realtime_archive_export": "admin",
|
|
12015
11791
|
"realtime_archive_export_status": "read",
|
|
12016
11792
|
"realtime_archive_get": "read",
|
|
@@ -12196,7 +11972,7 @@ var operations = {
|
|
|
12196
11972
|
"workflow_health_list": "read",
|
|
12197
11973
|
"workflow_health_ping": "read",
|
|
12198
11974
|
"workflow_killswitch_get": "read",
|
|
12199
|
-
"workflow_killswitch_set": "
|
|
11975
|
+
"workflow_killswitch_set": "write",
|
|
12200
11976
|
"workflow_run_cancel": "write",
|
|
12201
11977
|
"workflow_run_get": "read",
|
|
12202
11978
|
"workflow_run_list": "read",
|
|
@@ -12211,7 +11987,7 @@ var operations = {
|
|
|
12211
11987
|
"workflow_version_list": "read",
|
|
12212
11988
|
"workflow_wait_get": "read",
|
|
12213
11989
|
"workflow_wait_list": "read",
|
|
12214
|
-
"workflow_wait_list_all": "
|
|
11990
|
+
"workflow_wait_list_all": "read",
|
|
12215
11991
|
"workflow_wait_resolve": "write"
|
|
12216
11992
|
};
|
|
12217
11993
|
var compositions = {
|
|
@@ -12283,9 +12059,6 @@ var compositions = {
|
|
|
12283
12059
|
"mail_template_publish": { "label": "Publish template", "options": { "id": "mail_template_list" } },
|
|
12284
12060
|
"mail_template_update": { "label": "Update template", "options": { "id": "mail_template_list" } },
|
|
12285
12061
|
"mail_usage_get": { "label": "Get usage" },
|
|
12286
|
-
"playground_workflow_echo": { "pii": ["input.note", "output.note"], "label": "Store workflow echo", "completion_event": "playground/workflow.echoed" },
|
|
12287
|
-
"playground_workflow_ping": { "label": "Fire workflow ping", "completion_event": "playground/workflow.ping" },
|
|
12288
|
-
"playground_workflow_subjects-list": { "pii": ["output.items[].display_name"], "label": "List workflow subjects" },
|
|
12289
12062
|
"support_agent_create": { "pii": ["input.lesslyUserId", "output.lesslyUserId"], "label": "Create agent" },
|
|
12290
12063
|
"support_agent_get": { "pii": ["output.lesslyUserId"], "label": "Get agent", "options": { "id": "support_agent_list" } },
|
|
12291
12064
|
"support_agent_list": { "pii": ["output.agents[].lesslyUserId"], "label": "List agents" },
|
|
@@ -12612,6 +12385,27 @@ function accessReason(op) {
|
|
|
12612
12385
|
return "Not available for your role. Ask an admin of this product.";
|
|
12613
12386
|
}
|
|
12614
12387
|
|
|
12388
|
+
// src/runtime/platform-base-url.ts
|
|
12389
|
+
var PLATFORM_DOMAINS = ["lessly.dev", "lessly.com", "lepsto.dev", "lepsto.com"];
|
|
12390
|
+
function registrableDomain(hostname) {
|
|
12391
|
+
const host = hostname.toLowerCase().replace(/\.$/, "");
|
|
12392
|
+
return PLATFORM_DOMAINS.find((domain) => host === domain || host.endsWith(`.${domain}`));
|
|
12393
|
+
}
|
|
12394
|
+
function currentHostname() {
|
|
12395
|
+
const hostname = globalThis.location?.hostname;
|
|
12396
|
+
return typeof hostname === "string" && hostname !== "" ? hostname : void 0;
|
|
12397
|
+
}
|
|
12398
|
+
function platformApiBaseUrl(fallback) {
|
|
12399
|
+
const hostname = currentHostname();
|
|
12400
|
+
const domain = hostname === void 0 ? void 0 : registrableDomain(hostname);
|
|
12401
|
+
if (domain !== void 0) return `https://api.${domain}`;
|
|
12402
|
+
if (fallback !== void 0) return fallback;
|
|
12403
|
+
const found = hostname === void 0 ? "no globalThis.location.hostname is available (SSR, Node or a test environment)" : `host "${hostname}" is not a platform host`;
|
|
12404
|
+
throw new Error(
|
|
12405
|
+
`@lepsto/sdk-app: cannot derive the platform API base URL \u2014 ${found}. Accepted registrable domains (and any subdomain of them): ${PLATFORM_DOMAINS.join(", ")}. Pass a fallback to platformApiBaseUrl(), or an explicit baseUrl to createLesslyApp().`
|
|
12406
|
+
);
|
|
12407
|
+
}
|
|
12408
|
+
|
|
12615
12409
|
// src/runtime/operations.ts
|
|
12616
12410
|
var operations2 = operations;
|
|
12617
12411
|
|
|
@@ -12625,5 +12419,6 @@ exports.connectStream = connectStream;
|
|
|
12625
12419
|
exports.createLesslyApp = createLesslyApp;
|
|
12626
12420
|
exports.isAccessDenied = isAccessDenied;
|
|
12627
12421
|
exports.operations = operations2;
|
|
12422
|
+
exports.platformApiBaseUrl = platformApiBaseUrl;
|
|
12628
12423
|
//# sourceMappingURL=index.cjs.map
|
|
12629
12424
|
//# sourceMappingURL=index.cjs.map
|