@lepsto/sdk-app 85.0.1 → 87.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.
@@ -1,4 +1,4 @@
1
- import { wsBindings } from '../chunk-HRKHYP5B.js';
1
+ import { wsBindings } from '../chunk-EMK3O6JA.js';
2
2
 
3
3
  // src/gen/playground/queryOptions.gen.ts
4
4
  var playgroundAnalyticsOverviewQueryOptions = (sdk, input) => ({
@@ -15,7 +15,8 @@ import { createLesslyApp } from '@lepsto/sdk-app';
15
15
  const sdk = createLesslyApp({
16
16
  baseUrl: 'https://api.lessly.dev',
17
17
  productId: 'prod_123',
18
- // getCsrfToken defaults to reading the `lessly_csrf` cookie; override for SSR/tests.
18
+ // getCsrfToken defaults to reading the `lepsto_csrf` cookie (falling back to
19
+ // the legacy `lessly_csrf`); override for SSR/tests.
19
20
  });
20
21
 
21
22
  const connectors = await sdk.organization.connectors.list({ productId: 'prod_123' });
@@ -72,8 +73,8 @@ try {
72
73
 
73
74
  ### Missing CSRF cookie
74
75
 
75
- Mutating calls (`POST`, `PUT`, `PATCH`, `DELETE`) require the `lessly_csrf`
76
- cookie. If it is absent, the SDK throws before any network call:
76
+ Mutating calls (`POST`, `PUT`, `PATCH`, `DELETE`) require the `lepsto_csrf`
77
+ cookie, or the legacy `lessly_csrf` one as a fallback. If both are absent, the SDK throws before any network call:
77
78
  `LesslyApiError` with `status: 0` and `code: 'csrf_cookie_missing'`. There is no
78
79
  retry and no hidden token refresh — re-establish the session, or supply
79
80
  `getCsrfToken` for SSR/tests. Read-only calls are unaffected.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lepsto/sdk-app",
3
3
  "description": "The Lepsto SDK for App is a TypeScript SDK that provides runtime bindings and type-safe generated code for interacting with Lepsto Platform APIs and services. This package generates type definitions and client bindings from API catalogs, enabling developers to build applications that consume Lepsto platform services with full type safety and autocompletion.",
4
- "version": "85.0.1",
4
+ "version": "87.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/lepsto/lepsto-sdk-app.git"
@@ -22,6 +22,7 @@
22
22
  "src/gen"
23
23
  ],
24
24
  "publishConfig": {
25
+ "registry": "https://registry.npmjs.org/",
25
26
  "access": "public"
26
27
  },
27
28
  "scripts": {
@@ -218,5 +219,5 @@
218
219
  }
219
220
  }
220
221
  },
221
- "sdkContentHash": "sha256:d2c46a07f3fae85d287ac88278189987e21157523e14a5756d9837760c177798"
222
+ "sdkContentHash": "sha256:c4d3e9f5f9cf4ad5a58819e1c502a1b5e5e4e8bab57be5f09527d02382ffea35"
222
223
  }
@@ -11047,7 +11047,7 @@ export const bindings: BindingsMap = {
11047
11047
  "readOnly": true
11048
11048
  },
11049
11049
  "set": {
11050
- "level": "write",
11050
+ "level": "admin",
11051
11051
  "method": "POST",
11052
11052
  "operationKey": "workflow_killswitch_set",
11053
11053
  "params": [
@@ -11357,7 +11357,7 @@ export const bindings: BindingsMap = {
11357
11357
  },
11358
11358
  "wait-list": {
11359
11359
  "all": {
11360
- "level": "read",
11360
+ "level": "admin",
11361
11361
  "method": "GET",
11362
11362
  "operationKey": "workflow_wait_list_all",
11363
11363
  "params": [
@@ -596,7 +596,7 @@ export const operations: Record<string, ToolLevel> = {
596
596
  'workflow_health_list': 'read',
597
597
  'workflow_health_ping': 'read',
598
598
  'workflow_killswitch_get': 'read',
599
- 'workflow_killswitch_set': 'write',
599
+ 'workflow_killswitch_set': 'admin',
600
600
  'workflow_run_cancel': 'write',
601
601
  'workflow_run_get': 'read',
602
602
  'workflow_run_list': 'read',
@@ -611,7 +611,7 @@ export const operations: Record<string, ToolLevel> = {
611
611
  'workflow_version_list': 'read',
612
612
  'workflow_wait_get': 'read',
613
613
  'workflow_wait_list': 'read',
614
- 'workflow_wait_list_all': 'read',
614
+ 'workflow_wait_list_all': 'admin',
615
615
  'workflow_wait_resolve': 'write',
616
616
  };
617
617