@lepsto/sdk-app 92.1.0 → 92.2.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.
@@ -67057,38 +67057,13 @@ source_authority?: ("policy" | "official" | "team" | "informal")
67057
67057
 
67058
67058
  export interface BrainMemoryAddOutput {
67059
67059
  /**
67060
- * True when the memory was stored and its facts extracted (or there was nothing to extract). False when extraction failed — the raw memory is still stored under memory_id — or when the memory was not stored at all
67060
+ * True when the memory was stored
67061
67061
  */
67062
67062
  success: boolean
67063
67063
  /**
67064
67064
  * Engine id of the memory just stored; keep it to read, replace or delete the memory later
67065
67065
  */
67066
67066
  memory_id: string
67067
- /**
67068
- * Present only when success is false. Tell stored from not stored by `extraction`, not by this code: with extraction.status 'failed' the raw memory IS stored and searchable under memory_id, only its facts are missing — do not re-add the same content, that stores a duplicate. With no `extraction` nothing was stored, and the add can be retried
67069
- */
67070
- error_code?: string
67071
- /**
67072
- * What fact extraction made of this memory
67073
- */
67074
- extraction?: {
67075
- /**
67076
- * How many memories extraction stored from this write, across every derived layer (facts, identity, profile, summaries) — not a count of facts alone
67077
- */
67078
- items: number
67079
- /**
67080
- * 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
67081
- */
67082
- status: ("ok" | "empty" | "failed" | "skipped")
67083
- /**
67084
- * The engine's code when extraction failed — or, with status ok, when it ran degraded but still stored its facts
67085
- */
67086
- error_code?: string
67087
- /**
67088
- * The engine's own words for that failure or degradation — quote it when reporting a problem
67089
- */
67090
- error_message?: string
67091
- }
67092
67067
  /**
67093
67068
  * Engine request id for this call — quote it when reporting a problem
67094
67069
  */
@@ -67442,23 +67417,6 @@ knowledge: {
67442
67417
  */
67443
67418
  entityCount: number
67444
67419
  }
67445
- /**
67446
- * Raw memories left without facts, for the caller's product and scope. Counts only, and a lower bound. Null when the engine could not compute it
67447
- */
67448
- extraction_gaps: ({
67449
- /**
67450
- * Raw memories (l1_raw) the scope holds
67451
- */
67452
- raw_total: number
67453
- /**
67454
- * Raw memories no derived memory (fact, identity) points back to — their extraction produced nothing
67455
- */
67456
- raw_without_derived: number
67457
- /**
67458
- * Of those, raw memories still in shadow status
67459
- */
67460
- shadow_without_derived: number
67461
- } | null)
67462
67420
  }
67463
67421
 
67464
67422
  export interface BrainMemoryUpdateInput {
@@ -91148,6 +91106,378 @@ export interface OrganizationYoutubeInstallOutput {
91148
91106
  url: string
91149
91107
  }
91150
91108
 
91109
+ export interface PlaygroundAnalyticsOverviewInput {
91110
+ /**
91111
+ * Max records per entity in recent[]; omit for the endpoint default
91112
+ */
91113
+ limit?: number
91114
+ }
91115
+
91116
+ export interface PlaygroundAnalyticsOverviewOutput {
91117
+ ok: boolean
91118
+ minted: boolean
91119
+ overview?: unknown
91120
+ http_status: number
91121
+ }
91122
+
91123
+ export interface PlaygroundBillingEntitlementsInput {
91124
+
91125
+ }
91126
+
91127
+ export interface PlaygroundBillingEntitlementsOutput {
91128
+ ok: boolean
91129
+ minted: boolean
91130
+ http_status: number
91131
+ entitlements?: unknown
91132
+ }
91133
+
91134
+ export interface PlaygroundBillingRecordUsageInput {
91135
+ /**
91136
+ * Quantity of events to record against playground-events (SUM); defaults to 1
91137
+ */
91138
+ value?: number
91139
+ }
91140
+
91141
+ export interface PlaygroundBillingRecordUsageOutput {
91142
+ minted: boolean
91143
+ accepted: (number | null)
91144
+ recorded: boolean
91145
+ duplicates: (number | null)
91146
+ http_status: number
91147
+ }
91148
+
91149
+ export interface PlaygroundClickupCreateTaskInput {
91150
+ /**
91151
+ * Task title; defaults to a fixture label
91152
+ */
91153
+ name?: string
91154
+ /**
91155
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
91156
+ */
91157
+ listId?: string
91158
+ }
91159
+
91160
+ export interface PlaygroundClickupCreateTaskOutput {
91161
+ minted: boolean
91162
+ task_id: (string | null)
91163
+ list_status: number
91164
+ vend_status: number
91165
+ clickup_status: number
91166
+ installation_count: number
91167
+ }
91168
+
91169
+ export interface PlaygroundClickupGetLastWebhookInput {
91170
+
91171
+ }
91172
+
91173
+ export type PlaygroundClickupGetLastWebhookOutput = ({
91174
+ payload: string
91175
+ event_id: string
91176
+ provider: string
91177
+ verified: boolean
91178
+ product_id: string
91179
+ occurred_at: string
91180
+ connector_id: string
91181
+ clickup_event: (string | null)
91182
+ receipt_count: number
91183
+ } | {
91184
+ found: false
91185
+ })
91186
+
91187
+ export interface PlaygroundClickupGetOverviewInput {
91188
+
91189
+ }
91190
+
91191
+ export interface PlaygroundClickupGetOverviewOutput {
91192
+ team: ({
91193
+ teamId: string
91194
+ teamName: string
91195
+ } | null)
91196
+ lists: PlaygroundClickupGetOverviewOutputItems[]
91197
+ tasks: {
91198
+ id: string
91199
+ name: string
91200
+ status: (string | null)
91201
+ }[]
91202
+ minted: boolean
91203
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
91204
+ list_status: number
91205
+ vend_status: number
91206
+ lists_status: number
91207
+ tasks_status: number
91208
+ spaces_status: number
91209
+ folders_status: number
91210
+ installation_count: number
91211
+ }
91212
+ export interface PlaygroundClickupGetOverviewOutputItems {
91213
+ id: string
91214
+ name: string
91215
+ }
91216
+
91217
+ export interface PlaygroundEchoPingInput {
91218
+ /**
91219
+ * The text to echo back, 1–1024 characters
91220
+ */
91221
+ message: string
91222
+ }
91223
+
91224
+ export interface PlaygroundEchoPingOutput {
91225
+ /**
91226
+ * The message exactly as it was received
91227
+ */
91228
+ message: string
91229
+ /**
91230
+ * The product the call was resolved to
91231
+ */
91232
+ productId: string
91233
+ /**
91234
+ * ISO-8601 instant (UTC) at which the call reached the service
91235
+ */
91236
+ receivedAt: string
91237
+ }
91238
+
91239
+ export interface PlaygroundGdriveGetLastChangeInput {
91240
+
91241
+ }
91242
+
91243
+ export type PlaygroundGdriveGetLastChangeOutput = ({
91244
+ file_id: string
91245
+ removed: boolean
91246
+ file_name: (string | null)
91247
+ mime_type: (string | null)
91248
+ product_id: string
91249
+ occurred_at: string
91250
+ connector_id: string
91251
+ resource_state: string
91252
+ } | {
91253
+ found: false
91254
+ })
91255
+
91256
+ export interface PlaygroundGdriveReadFileInput {
91257
+ /**
91258
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
91259
+ */
91260
+ fileId?: string
91261
+ }
91262
+
91263
+ export interface PlaygroundGdriveReadFileOutput {
91264
+ minted: boolean
91265
+ file_id: (string | null)
91266
+ file_name: (string | null)
91267
+ mime_type: (string | null)
91268
+ file_count: number
91269
+ get_status: number
91270
+ list_status: number
91271
+ vend_status: number
91272
+ content_bytes: (number | null)
91273
+ }
91274
+
91275
+ export interface PlaygroundGoogleadsReadCustomerInput {
91276
+
91277
+ }
91278
+
91279
+ export interface PlaygroundGoogleadsReadCustomerOutput {
91280
+ minted: boolean
91281
+ vended: boolean
91282
+ customer_id: (string | null)
91283
+ vend_status: number
91284
+ result_count: number
91285
+ search_status: number
91286
+ login_customer_id: (string | null)
91287
+ }
91288
+
91289
+ export interface PlaygroundLifecycleGetStateInput {
91290
+
91291
+ }
91292
+
91293
+ export interface PlaygroundLifecycleGetStateOutput {
91294
+ blocked: boolean
91295
+ archived: boolean
91296
+ productId: string
91297
+ lastBlockTransition: ({
91298
+ eventId: string
91299
+ eventName: string
91300
+ productId: string
91301
+ occurredAt: string
91302
+ recordedAt: string
91303
+ receiptCount: number
91304
+ organizationId: string
91305
+ cascadedFromOrg: boolean
91306
+ } | null)
91307
+ lastArchiveTransition: ({
91308
+ eventId: string
91309
+ eventName: string
91310
+ productId: string
91311
+ occurredAt: string
91312
+ recordedAt: string
91313
+ receiptCount: number
91314
+ organizationId: string
91315
+ cascadedFromOrg: boolean
91316
+ } | null)
91317
+ }
91318
+
91319
+ export interface PlaygroundLifecycleListEventsInput {
91320
+
91321
+ }
91322
+
91323
+ export type PlaygroundLifecycleListEventsOutput = {
91324
+ eventId: string
91325
+ eventName: string
91326
+ productId: string
91327
+ occurredAt: string
91328
+ recordedAt: string
91329
+ receiptCount: number
91330
+ organizationId: string
91331
+ cascadedFromOrg: boolean
91332
+ }[]
91333
+
91334
+ export interface PlaygroundWebhookGetLastInput {
91335
+
91336
+ }
91337
+
91338
+ export type PlaygroundWebhookGetLastOutput = ({
91339
+ payload?: unknown
91340
+ event_id: string
91341
+ provider: string
91342
+ verified: boolean
91343
+ product_id: string
91344
+ occurred_at: string
91345
+ connector_id: string
91346
+ delivery_count: number
91347
+ } | {
91348
+ found: false
91349
+ })
91350
+
91351
+ export interface PlaygroundWorkflowEchoInput {
91352
+ /**
91353
+ * The text to store, 1–1024 characters
91354
+ */
91355
+ note: string
91356
+ /**
91357
+ * Optional labels stored alongside the note, at most 20
91358
+ *
91359
+ * @maxItems 20
91360
+ */
91361
+ tags?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
91362
+ }
91363
+
91364
+ export interface PlaygroundWorkflowEchoOutput {
91365
+ /**
91366
+ * Identifier of the stored echo
91367
+ */
91368
+ id: string
91369
+ /**
91370
+ * The note exactly as it was received
91371
+ */
91372
+ note: string
91373
+ /**
91374
+ * The tags exactly as they were received
91375
+ */
91376
+ tags: string[]
91377
+ /**
91378
+ * Correlation id for this echo. The playground/workflow.echoed event published about two seconds later repeats it, which is how a composer matches the completion back to this step.
91379
+ */
91380
+ echo_id: string
91381
+ /**
91382
+ * ISO-8601 instant (UTC) at which the echo was stored
91383
+ */
91384
+ received_at: string
91385
+ }
91386
+
91387
+ export interface PlaygroundWorkflowEchoListInput {
91388
+
91389
+ }
91390
+
91391
+ export type PlaygroundWorkflowEchoListOutput = {
91392
+ /**
91393
+ * Identifier of the stored echo
91394
+ */
91395
+ id: string
91396
+ /**
91397
+ * The note exactly as it was received
91398
+ */
91399
+ note: string
91400
+ /**
91401
+ * The tags exactly as they were received
91402
+ */
91403
+ tags: string[]
91404
+ /**
91405
+ * ISO-8601 instant (UTC) at which the echo was stored
91406
+ */
91407
+ received_at: string
91408
+ }[]
91409
+
91410
+ export interface PlaygroundWorkflowPingInput {
91411
+ /**
91412
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
91413
+ */
91414
+ kind?: string
91415
+ }
91416
+
91417
+ export interface PlaygroundWorkflowPingOutput {
91418
+ /**
91419
+ * Correlation id for this ping. The emitted playground/workflow.ping event repeats it, which is how a composer matches the event back to this step.
91420
+ */
91421
+ id: string
91422
+ /**
91423
+ * The name of the event that was published
91424
+ */
91425
+ event: string
91426
+ }
91427
+
91428
+ export interface PlaygroundWorkflowSubjectsListInput {
91429
+ /**
91430
+ * How many subjects to return, 1–100. Defaults to 25.
91431
+ */
91432
+ limit?: number
91433
+ /**
91434
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
91435
+ */
91436
+ cursor?: string
91437
+ /**
91438
+ * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR AFTER this — the opposite question, the recently active population. Omit for no lower bound.
91439
+ */
91440
+ last_activity_after?: string
91441
+ /**
91442
+ * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR BEFORE this — the "inactive for N days" question: pass now minus N days. Omit for no upper bound.
91443
+ */
91444
+ last_activity_before?: string
91445
+ }
91446
+
91447
+ export interface PlaygroundWorkflowSubjectsListOutput {
91448
+ /**
91449
+ * This page of subjects, most recently active first
91450
+ */
91451
+ items: {
91452
+ /**
91453
+ * Stable identifier for the subject. This is the field a batch trigger keys on, so a subject already served in an earlier run is skipped rather than served twice.
91454
+ */
91455
+ subject_key: string
91456
+ /**
91457
+ * Human-readable name of the subject
91458
+ */
91459
+ display_name: string
91460
+ /**
91461
+ * ISO-8601 instant (UTC) of the subject last activity
91462
+ */
91463
+ last_activity_at: string
91464
+ }[]
91465
+ /**
91466
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
91467
+ */
91468
+ has_more: boolean
91469
+ /**
91470
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
91471
+ */
91472
+ next_cursor: (string | null)
91473
+ }
91474
+
91475
+ export interface PlaygroundWsEchoInput {
91476
+
91477
+ }
91478
+
91479
+ export type PlaygroundWsEchoOutput = unknown;
91480
+
91151
91481
  export interface RealtimeArchiveExportInput {
91152
91482
  /**
91153
91483
  * Only entries with ts <= to_ts (epoch ms)
@@ -115488,15 +115818,15 @@ key: string
115488
115818
  */
115489
115819
  name: string
115490
115820
  /**
115491
- * `publishable` — a browser-safe key (upk_…). It is the only type.
115821
+ * `publishable` — a browser-safe key (upk_…). It is the only type issued.
115492
115822
  */
115493
115823
  type: "publishable"
115494
115824
  /**
115495
- * The full value of the key, which is not a secret and stays readable.
115825
+ * The full value of a publishable key, which is not a secret and stays readable. Null for a retired server key, whose secret was never stored.
115496
115826
  */
115497
115827
  value: (string | null)
115498
115828
  /**
115499
- * `upk_` plus six characters — enough to recognise a key, never to use one.
115829
+ * `upk_` (or `usk_` on a retired server key) plus six characters — enough to recognise a key, never to use one.
115500
115830
  */
115501
115831
  prefix: string
115502
115832
  /**
@@ -115526,15 +115856,15 @@ id: string
115526
115856
  */
115527
115857
  name: string
115528
115858
  /**
115529
- * `publishable` — a browser-safe key (upk_…). It is the only type.
115859
+ * `publishable` — a browser-safe key (upk_…), the only type issued. `server` — a retired secret key (usk_…), kept for audit and always revoked.
115530
115860
  */
115531
- type: "publishable"
115861
+ type: ("publishable" | "server")
115532
115862
  /**
115533
- * The full value of the key, which is not a secret and stays readable.
115863
+ * The full value of a publishable key, which is not a secret and stays readable. Null for a retired server key, whose secret was never stored.
115534
115864
  */
115535
115865
  value: (string | null)
115536
115866
  /**
115537
- * `upk_` plus six characters — enough to recognise a key, never to use one.
115867
+ * `upk_` (or `usk_` on a retired server key) plus six characters — enough to recognise a key, never to use one.
115538
115868
  */
115539
115869
  prefix: string
115540
115870
  /**
@@ -115562,15 +115892,15 @@ id: string
115562
115892
  */
115563
115893
  name: string
115564
115894
  /**
115565
- * `publishable` — a browser-safe key (upk_…). It is the only type.
115895
+ * `publishable` — a browser-safe key (upk_…), the only type issued. `server` — a retired secret key (usk_…), kept for audit and always revoked.
115566
115896
  */
115567
- type: "publishable"
115897
+ type: ("publishable" | "server")
115568
115898
  /**
115569
- * The full value of the key, which is not a secret and stays readable.
115899
+ * The full value of a publishable key, which is not a secret and stays readable. Null for a retired server key, whose secret was never stored.
115570
115900
  */
115571
115901
  value: (string | null)
115572
115902
  /**
115573
- * `upk_` plus six characters — enough to recognise a key, never to use one.
115903
+ * `upk_` (or `usk_` on a retired server key) plus six characters — enough to recognise a key, never to use one.
115574
115904
  */
115575
115905
  prefix: string
115576
115906
  /**