@lessly/sdk-app 121.3.0 → 122.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lessly/sdk-app",
3
3
  "description": "The Lessly SDK for App is a TypeScript SDK that provides runtime bindings and type-safe generated code for interacting with Lessly Platform APIs and services. This package generates type definitions and client bindings from API catalogs, enabling developers to build applications that consume Lessly platform services with full type safety and autocompletion.",
4
- "version": "121.3.0",
4
+ "version": "122.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/lepsto/lepsto-sdk-app.git"
@@ -210,5 +210,5 @@
210
210
  }
211
211
  }
212
212
  },
213
- "sdkContentHash": "sha256:34d838d9330348db21a3a785385652fa9cf34e63d3f54332705b7415df07c0e9"
213
+ "sdkContentHash": "sha256:3da124099d17ba5c63ce9eb63bf6a61158063b5561a7598e737b94fe31f1dfc6"
214
214
  }
@@ -1175,6 +1175,10 @@ export const bindings: BindingsMap = {
1175
1175
  "in": "body",
1176
1176
  "name": "content"
1177
1177
  },
1178
+ {
1179
+ "in": "body",
1180
+ "name": "idempotency_key"
1181
+ },
1178
1182
  {
1179
1183
  "in": "body",
1180
1184
  "name": "metadata"
@@ -1186,6 +1190,10 @@ export const bindings: BindingsMap = {
1186
1190
  {
1187
1191
  "in": "body",
1188
1192
  "name": "source_authority"
1193
+ },
1194
+ {
1195
+ "in": "body",
1196
+ "name": "extract"
1189
1197
  }
1190
1198
  ],
1191
1199
  "path": "/brain/memory",
@@ -1199,6 +1207,10 @@ export const bindings: BindingsMap = {
1199
1207
  {
1200
1208
  "in": "path",
1201
1209
  "name": "memory_id"
1210
+ },
1211
+ {
1212
+ "in": "body",
1213
+ "name": "idempotency_key"
1202
1214
  }
1203
1215
  ],
1204
1216
  "path": "/brain/memory/:memory_id",
@@ -1288,6 +1300,10 @@ export const bindings: BindingsMap = {
1288
1300
  {
1289
1301
  "in": "body",
1290
1302
  "name": "content"
1303
+ },
1304
+ {
1305
+ "in": "body",
1306
+ "name": "idempotency_key"
1291
1307
  }
1292
1308
  ],
1293
1309
  "path": "/brain/memory/:memory_id",
@@ -655,7 +655,7 @@ export const compositions: Record<string, ToolComposition> = {
655
655
  'brain_memory_delete': {"label":"Delete memory","options":{"memory_id":"brain_memory_list"}},
656
656
  'brain_memory_get': {"pii":["output.content"],"label":"Get memory","options":{"memory_id":"brain_memory_list"}},
657
657
  'brain_memory_list': {"pii":["output.memories[].content","output.memories[].custom"],"label":"List memories"},
658
- 'brain_memory_search': {"pii":["input.query","output.profile[].content","output.normal[].content","output.proactive[].content"],"label":"Search memories"},
658
+ 'brain_memory_search': {"pii":["input.query","output.profile[].content","output.profile[].source.content","output.normal[].content","output.normal[].source.content","output.proactive[].content","output.proactive[].source.content"],"label":"Search memories"},
659
659
  'brain_memory_stats': {"label":"Memory stats"},
660
660
  'brain_memory_update': {"pii":["input.content"],"label":"Update memory","options":{"memory_id":"brain_memory_list"}},
661
661
  'brain_usage_report': {"label":"Get usage report"},
@@ -340016,7 +340016,7 @@ kind: ("digest" | "sweep")
340016
340016
  error: (string | null)
340017
340017
  result?: unknown
340018
340018
  run_id: string
340019
- status: string
340019
+ status: ("running" | "done" | "failed")
340020
340020
  started_at: string
340021
340021
  finished_at: (string | null)
340022
340022
  } | null)
@@ -340025,7 +340025,7 @@ kind: ("digest" | "sweep")
340025
340025
  error: (string | null)
340026
340026
  result?: unknown
340027
340027
  run_id: string
340028
- status: string
340028
+ status: ("running" | "done" | "failed")
340029
340029
  started_at: string
340030
340030
  finished_at: (string | null)
340031
340031
  } | null)
@@ -341410,12 +341410,20 @@ scope?: ("shared" | "private")
341410
341410
  * The memory text to store
341411
341411
  */
341412
341412
  content: string
341413
+ /**
341414
+ * Whether to extract facts from this memory (default true). Set false for meeting notes, drafts and discussions: the text is stored and searchable, but no facts are extracted from it, and extraction.status is 'skipped'
341415
+ */
341416
+ extract?: boolean
341413
341417
  /**
341414
341418
  * Optional structured metadata
341415
341419
  */
341416
341420
  metadata?: {
341417
341421
  [k: string]: unknown
341418
341422
  }
341423
+ /**
341424
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
341425
+ */
341426
+ idempotency_key?: string
341419
341427
  /**
341420
341428
  * Source authority (highest→lowest): policy > official > team > informal. Omit to default to official; an unrecognized value is rejected.
341421
341429
  */
@@ -341444,7 +341452,7 @@ extraction?: {
341444
341452
  */
341445
341453
  items: number
341446
341454
  /**
341447
- * ok = at least one memory was derived from it (a summary counts, so ok alone does not promise a fact); empty = nothing new came out of it — the content held nothing durable, or everything in it is already in memory; failed = extraction broke, the raw memory is stored without facts; skipped = the engine does not extract in this mode
341455
+ * ok = at least one memory was derived from it (a summary counts, so ok alone does not promise a fact); empty = nothing new came out of it — the content held nothing durable, or everything in it is already in memory; failed = extraction broke, the raw memory is stored without facts; skipped = extraction did not run, because the add asked for extract: false — the raw memory is stored and searchable, with no facts
341448
341456
  */
341449
341457
  status: ("ok" | "empty" | "failed" | "skipped")
341450
341458
  /**
@@ -341460,6 +341468,10 @@ error_message?: string
341460
341468
  * Engine request id for this call — quote it when reporting a problem
341461
341469
  */
341462
341470
  request_id: string
341471
+ /**
341472
+ * True when an unkeyed add matched one completed in the last 10 minutes; no new memory was written
341473
+ */
341474
+ deduplicated?: boolean
341463
341475
  }
341464
341476
 
341465
341477
  export interface BrainMemoryDeleteInput {
@@ -341467,6 +341479,10 @@ export interface BrainMemoryDeleteInput {
341467
341479
  * Engine memory id
341468
341480
  */
341469
341481
  memory_id: string
341482
+ /**
341483
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
341484
+ */
341485
+ idempotency_key?: string
341470
341486
  }
341471
341487
 
341472
341488
  export interface BrainMemoryDeleteOutput {
@@ -341479,7 +341495,7 @@ success: true
341479
341495
  */
341480
341496
  request_id: string
341481
341497
  /**
341482
- * How many memory rows the engine removed for this id; 0 when it was already gone
341498
+ * 1 when the engine removed this memory from vector or graph storage; 0 when it was already gone
341483
341499
  */
341484
341500
  deleted_count: number
341485
341501
  }
@@ -341518,6 +341534,10 @@ status: string
341518
341534
  * The memory text itself
341519
341535
  */
341520
341536
  content: string
341537
+ /**
341538
+ * True when this memory was machine-extracted from a raw memory
341539
+ */
341540
+ derived: boolean
341521
341541
  /**
341522
341542
  * Engine user namespace the memory was written under
341523
341543
  */
@@ -341630,6 +341650,10 @@ status: string
341630
341650
  * The memory text itself
341631
341651
  */
341632
341652
  content: string
341653
+ /**
341654
+ * True when this memory was machine-extracted from a raw memory
341655
+ */
341656
+ derived: boolean
341633
341657
  /**
341634
341658
  * Engine user namespace the memory was written under
341635
341659
  */
@@ -341715,10 +341739,31 @@ layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fac
341715
341739
  * How closely this hit matches the query — higher is closer. An engine-internal scale, not a percentage; compare hits against each other, never against a fixed threshold.
341716
341740
  */
341717
341741
  score: number
341742
+ /**
341743
+ * Readable raw memory for verification; null when missing or outside your scope
341744
+ */
341745
+ source: ({
341746
+ /**
341747
+ * Raw memory text, at most 2000 Unicode characters
341748
+ */
341749
+ content: string
341750
+ /**
341751
+ * Id of the raw memory this item was extracted from
341752
+ */
341753
+ memory_id: string
341754
+ /**
341755
+ * True when the raw memory text was longer than 2000 Unicode characters
341756
+ */
341757
+ truncated: boolean
341758
+ } | null)
341718
341759
  /**
341719
341760
  * The memory text itself
341720
341761
  */
341721
341762
  content: string
341763
+ /**
341764
+ * True when this memory was machine-extracted from a raw memory; extracted content can be wrong
341765
+ */
341766
+ derived: boolean
341722
341767
  /**
341723
341768
  * When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
341724
341769
  */
@@ -341837,6 +341882,10 @@ content: string
341837
341882
  * Engine memory id
341838
341883
  */
341839
341884
  memory_id: string
341885
+ /**
341886
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
341887
+ */
341888
+ idempotency_key?: string
341840
341889
  }
341841
341890
 
341842
341891
  export interface BrainMemoryUpdateOutput {