@lessly/sdk-app 121.3.0 → 121.4.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.
@@ -346631,7 +346631,7 @@ export interface BrainCognitionStatusOutput {
346631
346631
  error: (string | null);
346632
346632
  result?: unknown;
346633
346633
  run_id: string;
346634
- status: string;
346634
+ status: ("running" | "done" | "failed");
346635
346635
  started_at: string;
346636
346636
  finished_at: (string | null);
346637
346637
  } | null);
@@ -346640,7 +346640,7 @@ export interface BrainCognitionStatusOutput {
346640
346640
  error: (string | null);
346641
346641
  result?: unknown;
346642
346642
  run_id: string;
346643
- status: string;
346643
+ status: ("running" | "done" | "failed");
346644
346644
  started_at: string;
346645
346645
  finished_at: (string | null);
346646
346646
  } | null);
@@ -347978,12 +347978,20 @@ export interface BrainMemoryAddInput {
347978
347978
  * The memory text to store
347979
347979
  */
347980
347980
  content: string;
347981
+ /**
347982
+ * 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'
347983
+ */
347984
+ extract?: boolean;
347981
347985
  /**
347982
347986
  * Optional structured metadata
347983
347987
  */
347984
347988
  metadata?: {
347985
347989
  [k: string]: unknown;
347986
347990
  };
347991
+ /**
347992
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
347993
+ */
347994
+ idempotency_key?: string;
347987
347995
  /**
347988
347996
  * Source authority (highest→lowest): policy > official > team > informal. Omit to default to official; an unrecognized value is rejected.
347989
347997
  */
@@ -348011,7 +348019,7 @@ export interface BrainMemoryAddOutput {
348011
348019
  */
348012
348020
  items: number;
348013
348021
  /**
348014
- * 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
348022
+ * 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
348015
348023
  */
348016
348024
  status: ("ok" | "empty" | "failed" | "skipped");
348017
348025
  /**
@@ -348027,12 +348035,20 @@ export interface BrainMemoryAddOutput {
348027
348035
  * Engine request id for this call — quote it when reporting a problem
348028
348036
  */
348029
348037
  request_id: string;
348038
+ /**
348039
+ * True when an unkeyed add matched one completed in the last 10 minutes; no new memory was written
348040
+ */
348041
+ deduplicated?: boolean;
348030
348042
  }
348031
348043
  export interface BrainMemoryDeleteInput {
348032
348044
  /**
348033
348045
  * Engine memory id
348034
348046
  */
348035
348047
  memory_id: string;
348048
+ /**
348049
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
348050
+ */
348051
+ idempotency_key?: string;
348036
348052
  }
348037
348053
  export interface BrainMemoryDeleteOutput {
348038
348054
  /**
@@ -348044,7 +348060,7 @@ export interface BrainMemoryDeleteOutput {
348044
348060
  */
348045
348061
  request_id: string;
348046
348062
  /**
348047
- * How many memory rows the engine removed for this id; 0 when it was already gone
348063
+ * 1 when the engine removed this memory from vector or graph storage; 0 when it was already gone
348048
348064
  */
348049
348065
  deleted_count: number;
348050
348066
  }
@@ -348081,6 +348097,10 @@ export interface BrainMemoryGetOutput {
348081
348097
  * The memory text itself
348082
348098
  */
348083
348099
  content: string;
348100
+ /**
348101
+ * True when this memory was machine-extracted from a raw memory
348102
+ */
348103
+ derived: boolean;
348084
348104
  /**
348085
348105
  * Engine user namespace the memory was written under
348086
348106
  */
@@ -348191,6 +348211,10 @@ export interface BrainMemoryListOutput {
348191
348211
  * The memory text itself
348192
348212
  */
348193
348213
  content: string;
348214
+ /**
348215
+ * True when this memory was machine-extracted from a raw memory
348216
+ */
348217
+ derived: boolean;
348194
348218
  /**
348195
348219
  * Engine user namespace the memory was written under
348196
348220
  */
@@ -348274,10 +348298,31 @@ export interface BrainMemorySearchOutputItems {
348274
348298
  * 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.
348275
348299
  */
348276
348300
  score: number;
348301
+ /**
348302
+ * Readable raw memory for verification; null when missing or outside your scope
348303
+ */
348304
+ source: ({
348305
+ /**
348306
+ * Raw memory text, at most 2000 Unicode characters
348307
+ */
348308
+ content: string;
348309
+ /**
348310
+ * Id of the raw memory this item was extracted from
348311
+ */
348312
+ memory_id: string;
348313
+ /**
348314
+ * True when the raw memory text was longer than 2000 Unicode characters
348315
+ */
348316
+ truncated: boolean;
348317
+ } | null);
348277
348318
  /**
348278
348319
  * The memory text itself
348279
348320
  */
348280
348321
  content: string;
348322
+ /**
348323
+ * True when this memory was machine-extracted from a raw memory; extracted content can be wrong
348324
+ */
348325
+ derived: boolean;
348281
348326
  /**
348282
348327
  * When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
348283
348328
  */
@@ -348393,6 +348438,10 @@ export interface BrainMemoryUpdateInput {
348393
348438
  * Engine memory id
348394
348439
  */
348395
348440
  memory_id: string;
348441
+ /**
348442
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
348443
+ */
348444
+ idempotency_key?: string;
348396
348445
  }
348397
348446
  export interface BrainMemoryUpdateOutput {
348398
348447
  /**
@@ -388988,6 +389037,332 @@ export interface OrganizationYoutubeInstallInput {
388988
389037
  export interface OrganizationYoutubeInstallOutput {
388989
389038
  url: string;
388990
389039
  }
389040
+ export interface PlaygroundAnalyticsOverviewInput {
389041
+ /**
389042
+ * Max records per entity in recent[]; omit for the endpoint default
389043
+ */
389044
+ limit?: number;
389045
+ }
389046
+ export interface PlaygroundAnalyticsOverviewOutput {
389047
+ ok: boolean;
389048
+ minted: boolean;
389049
+ overview?: unknown;
389050
+ http_status: number;
389051
+ }
389052
+ export interface PlaygroundBillingEntitlementsInput {
389053
+ }
389054
+ export interface PlaygroundBillingEntitlementsOutput {
389055
+ ok: boolean;
389056
+ minted: boolean;
389057
+ http_status: number;
389058
+ entitlements?: unknown;
389059
+ }
389060
+ export interface PlaygroundBillingRecordUsageInput {
389061
+ /**
389062
+ * Quantity of events to record against playground-events (SUM); defaults to 1
389063
+ */
389064
+ value?: number;
389065
+ }
389066
+ export interface PlaygroundBillingRecordUsageOutput {
389067
+ minted: boolean;
389068
+ accepted: (number | null);
389069
+ recorded: boolean;
389070
+ duplicates: (number | null);
389071
+ http_status: number;
389072
+ }
389073
+ export interface PlaygroundClickupCreateTaskInput {
389074
+ /**
389075
+ * Task title; defaults to a fixture label
389076
+ */
389077
+ name?: string;
389078
+ /**
389079
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
389080
+ */
389081
+ listId?: string;
389082
+ }
389083
+ export interface PlaygroundClickupCreateTaskOutput {
389084
+ minted: boolean;
389085
+ task_id: (string | null);
389086
+ list_status: number;
389087
+ vend_status: number;
389088
+ clickup_status: number;
389089
+ installation_count: number;
389090
+ }
389091
+ export interface PlaygroundClickupGetLastWebhookInput {
389092
+ }
389093
+ export type PlaygroundClickupGetLastWebhookOutput = ({
389094
+ payload: string;
389095
+ event_id: string;
389096
+ provider: string;
389097
+ verified: boolean;
389098
+ product_id: string;
389099
+ occurred_at: string;
389100
+ connector_id: string;
389101
+ clickup_event: (string | null);
389102
+ receipt_count: number;
389103
+ } | {
389104
+ found: false;
389105
+ });
389106
+ export interface PlaygroundClickupGetOverviewInput {
389107
+ }
389108
+ export interface PlaygroundClickupGetOverviewOutput {
389109
+ team: ({
389110
+ teamId: string;
389111
+ teamName: string;
389112
+ } | null);
389113
+ lists: PlaygroundClickupGetOverviewOutputItems[];
389114
+ tasks: {
389115
+ id: string;
389116
+ name: string;
389117
+ status: (string | null);
389118
+ }[];
389119
+ minted: boolean;
389120
+ spaces: PlaygroundClickupGetOverviewOutputItems[];
389121
+ list_status: number;
389122
+ vend_status: number;
389123
+ lists_status: number;
389124
+ tasks_status: number;
389125
+ spaces_status: number;
389126
+ folders_status: number;
389127
+ installation_count: number;
389128
+ }
389129
+ export interface PlaygroundClickupGetOverviewOutputItems {
389130
+ id: string;
389131
+ name: string;
389132
+ }
389133
+ export interface PlaygroundEchoPingInput {
389134
+ /**
389135
+ * The text to echo back, 1–1024 characters
389136
+ */
389137
+ message: string;
389138
+ }
389139
+ export interface PlaygroundEchoPingOutput {
389140
+ /**
389141
+ * The message exactly as it was received
389142
+ */
389143
+ message: string;
389144
+ /**
389145
+ * The product the call was resolved to
389146
+ */
389147
+ productId: string;
389148
+ /**
389149
+ * ISO-8601 instant (UTC) at which the call reached the service
389150
+ */
389151
+ receivedAt: string;
389152
+ }
389153
+ export interface PlaygroundGdriveGetLastChangeInput {
389154
+ }
389155
+ export type PlaygroundGdriveGetLastChangeOutput = ({
389156
+ file_id: string;
389157
+ removed: boolean;
389158
+ file_name: (string | null);
389159
+ mime_type: (string | null);
389160
+ product_id: string;
389161
+ occurred_at: string;
389162
+ connector_id: string;
389163
+ resource_state: string;
389164
+ } | {
389165
+ found: false;
389166
+ });
389167
+ export interface PlaygroundGdriveReadFileInput {
389168
+ /**
389169
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
389170
+ */
389171
+ fileId?: string;
389172
+ }
389173
+ export interface PlaygroundGdriveReadFileOutput {
389174
+ minted: boolean;
389175
+ file_id: (string | null);
389176
+ file_name: (string | null);
389177
+ mime_type: (string | null);
389178
+ file_count: number;
389179
+ get_status: number;
389180
+ list_status: number;
389181
+ vend_status: number;
389182
+ content_bytes: (number | null);
389183
+ }
389184
+ export interface PlaygroundGoogleadsReadCustomerInput {
389185
+ }
389186
+ export interface PlaygroundGoogleadsReadCustomerOutput {
389187
+ minted: boolean;
389188
+ vended: boolean;
389189
+ customer_id: (string | null);
389190
+ vend_status: number;
389191
+ result_count: number;
389192
+ search_status: number;
389193
+ login_customer_id: (string | null);
389194
+ }
389195
+ export interface PlaygroundLifecycleGetStateInput {
389196
+ }
389197
+ export interface PlaygroundLifecycleGetStateOutput {
389198
+ blocked: boolean;
389199
+ archived: boolean;
389200
+ productId: string;
389201
+ lastBlockTransition: ({
389202
+ eventId: string;
389203
+ eventName: string;
389204
+ productId: string;
389205
+ occurredAt: string;
389206
+ recordedAt: string;
389207
+ receiptCount: number;
389208
+ organizationId: string;
389209
+ cascadedFromOrg: boolean;
389210
+ } | null);
389211
+ lastArchiveTransition: ({
389212
+ eventId: string;
389213
+ eventName: string;
389214
+ productId: string;
389215
+ occurredAt: string;
389216
+ recordedAt: string;
389217
+ receiptCount: number;
389218
+ organizationId: string;
389219
+ cascadedFromOrg: boolean;
389220
+ } | null);
389221
+ }
389222
+ export interface PlaygroundLifecycleListEventsInput {
389223
+ }
389224
+ export type PlaygroundLifecycleListEventsOutput = {
389225
+ eventId: string;
389226
+ eventName: string;
389227
+ productId: string;
389228
+ occurredAt: string;
389229
+ recordedAt: string;
389230
+ receiptCount: number;
389231
+ organizationId: string;
389232
+ cascadedFromOrg: boolean;
389233
+ }[];
389234
+ export interface PlaygroundWebhookGetLastInput {
389235
+ }
389236
+ export type PlaygroundWebhookGetLastOutput = ({
389237
+ payload?: unknown;
389238
+ event_id: string;
389239
+ provider: string;
389240
+ verified: boolean;
389241
+ product_id: string;
389242
+ occurred_at: string;
389243
+ connector_id: string;
389244
+ delivery_count: number;
389245
+ } | {
389246
+ found: false;
389247
+ });
389248
+ export interface PlaygroundWorkflowEchoInput {
389249
+ /**
389250
+ * The text to store, 1–1024 characters
389251
+ */
389252
+ note: string;
389253
+ /**
389254
+ * Optional labels stored alongside the note, at most 20
389255
+ *
389256
+ * @maxItems 20
389257
+ */
389258
+ 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];
389259
+ }
389260
+ export interface PlaygroundWorkflowEchoOutput {
389261
+ /**
389262
+ * Identifier of the stored echo
389263
+ */
389264
+ id: string;
389265
+ /**
389266
+ * The note exactly as it was received
389267
+ */
389268
+ note: string;
389269
+ /**
389270
+ * The tags exactly as they were received
389271
+ */
389272
+ tags: string[];
389273
+ /**
389274
+ * 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.
389275
+ */
389276
+ echo_id: string;
389277
+ /**
389278
+ * ISO-8601 instant (UTC) at which the echo was stored
389279
+ */
389280
+ received_at: string;
389281
+ }
389282
+ export interface PlaygroundWorkflowEchoListInput {
389283
+ }
389284
+ export type PlaygroundWorkflowEchoListOutput = {
389285
+ /**
389286
+ * Identifier of the stored echo
389287
+ */
389288
+ id: string;
389289
+ /**
389290
+ * The note exactly as it was received
389291
+ */
389292
+ note: string;
389293
+ /**
389294
+ * The tags exactly as they were received
389295
+ */
389296
+ tags: string[];
389297
+ /**
389298
+ * ISO-8601 instant (UTC) at which the echo was stored
389299
+ */
389300
+ received_at: string;
389301
+ }[];
389302
+ export interface PlaygroundWorkflowPingInput {
389303
+ /**
389304
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
389305
+ */
389306
+ kind?: string;
389307
+ }
389308
+ export interface PlaygroundWorkflowPingOutput {
389309
+ /**
389310
+ * 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.
389311
+ */
389312
+ id: string;
389313
+ /**
389314
+ * The name of the event that was published
389315
+ */
389316
+ event: string;
389317
+ }
389318
+ export interface PlaygroundWorkflowSubjectsListInput {
389319
+ /**
389320
+ * How many subjects to return, 1–100. Defaults to 25.
389321
+ */
389322
+ limit?: number;
389323
+ /**
389324
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
389325
+ */
389326
+ cursor?: string;
389327
+ /**
389328
+ * 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.
389329
+ */
389330
+ last_activity_after?: string;
389331
+ /**
389332
+ * 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.
389333
+ */
389334
+ last_activity_before?: string;
389335
+ }
389336
+ export interface PlaygroundWorkflowSubjectsListOutput {
389337
+ /**
389338
+ * This page of subjects, most recently active first
389339
+ */
389340
+ items: {
389341
+ /**
389342
+ * 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.
389343
+ */
389344
+ subject_key: string;
389345
+ /**
389346
+ * Human-readable name of the subject
389347
+ */
389348
+ display_name: string;
389349
+ /**
389350
+ * ISO-8601 instant (UTC) of the subject last activity
389351
+ */
389352
+ last_activity_at: string;
389353
+ }[];
389354
+ /**
389355
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
389356
+ */
389357
+ has_more: boolean;
389358
+ /**
389359
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
389360
+ */
389361
+ next_cursor: (string | null);
389362
+ }
389363
+ export interface PlaygroundWsEchoInput {
389364
+ }
389365
+ export type PlaygroundWsEchoOutput = unknown;
388991
389366
  export interface RealtimeArchiveExportInput {
388992
389367
  /**
388993
389368
  * Only entries with ts <= to_ts (epoch ms)