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