@lessly/sdk-app 8.1.0 → 9.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/dist/analytics/index.cjs +11 -0
- package/dist/analytics/index.cjs.map +1 -0
- package/dist/analytics/index.d.cts +8 -0
- package/dist/analytics/index.d.ts +8 -0
- package/dist/analytics/index.js +9 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/brain/index.cjs +0 -10
- package/dist/brain/index.cjs.map +1 -1
- package/dist/brain/index.d.cts +2 -10
- package/dist/brain/index.d.ts +2 -10
- package/dist/brain/index.js +1 -9
- package/dist/brain/index.js.map +1 -1
- package/dist/{client.gen-Bwk8slzV.d.cts → client.gen-D7QDqI8G.d.cts} +257 -107
- package/dist/{client.gen-Bwk8slzV.d.ts → client.gen-D7QDqI8G.d.ts} +257 -107
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +119 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +119 -40
- package/dist/index.js.map +1 -1
- package/dist/mail/index.d.cts +2 -2
- package/dist/mail/index.d.ts +2 -2
- package/dist/organization/index.d.cts +1 -1
- package/dist/organization/index.d.ts +1 -1
- package/dist/playground/index.cjs +66 -0
- package/dist/playground/index.cjs.map +1 -0
- package/dist/playground/index.d.cts +52 -0
- package/dist/playground/index.d.ts +52 -0
- package/dist/playground/index.js +53 -0
- package/dist/playground/index.js.map +1 -0
- package/dist/tracking/index.d.cts +1 -1
- package/dist/tracking/index.d.ts +1 -1
- package/dist/waitlist/index.d.cts +1 -1
- package/dist/waitlist/index.d.ts +1 -1
- package/package.json +12 -2
- package/src/gen/analytics/index.ts +3 -0
- package/src/gen/analytics/queryOptions.gen.ts +11 -0
- package/src/gen/bindings.gen.ts +119 -40
- package/src/gen/brain/index.ts +1 -1
- package/src/gen/brain/queryOptions.gen.ts +0 -14
- package/src/gen/client.gen.ts +59 -8
- package/src/gen/manifest.gen.ts +1 -1
- package/src/gen/playground/index.ts +3 -0
- package/src/gen/playground/queryOptions.gen.ts +86 -0
- package/src/gen/types.gen.ts +257 -106
package/src/gen/types.gen.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
|
|
3
|
+
export interface AnalyticsQueryRunInput {
|
|
4
|
+
/**
|
|
5
|
+
* Natural-language analytics question
|
|
6
|
+
*/
|
|
7
|
+
q: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface AnalyticsQueryRunOutput {
|
|
11
|
+
sql: string
|
|
12
|
+
rows: {
|
|
13
|
+
[k: string]: unknown
|
|
14
|
+
}[]
|
|
15
|
+
answer: string
|
|
16
|
+
truncated: boolean
|
|
17
|
+
explanation: string
|
|
18
|
+
}
|
|
19
|
+
|
|
3
20
|
export interface BrainBackupCreateInput {
|
|
4
21
|
|
|
5
22
|
}
|
|
@@ -39,9 +56,15 @@ snapshotId?: string
|
|
|
39
56
|
export type BrainBackupStatusOutput = ({
|
|
40
57
|
id: string
|
|
41
58
|
error: (string | null)
|
|
42
|
-
|
|
59
|
+
/**
|
|
60
|
+
* 'running' | 'completed' | 'failed'
|
|
61
|
+
*/
|
|
62
|
+
status: string
|
|
43
63
|
gcsPath: string
|
|
44
|
-
|
|
64
|
+
/**
|
|
65
|
+
* 'scheduled' | 'manual' | 'pre-restore'
|
|
66
|
+
*/
|
|
67
|
+
trigger: string
|
|
45
68
|
createdAt: string
|
|
46
69
|
edgeCount: (number | null)
|
|
47
70
|
nodeCount: (number | null)
|
|
@@ -60,9 +83,15 @@ export interface BrainBackupsListInput {
|
|
|
60
83
|
export type BrainBackupsListOutput = {
|
|
61
84
|
id: string
|
|
62
85
|
error: (string | null)
|
|
63
|
-
|
|
86
|
+
/**
|
|
87
|
+
* 'running' | 'completed' | 'failed'
|
|
88
|
+
*/
|
|
89
|
+
status: string
|
|
64
90
|
gcsPath: string
|
|
65
|
-
|
|
91
|
+
/**
|
|
92
|
+
* 'scheduled' | 'manual' | 'pre-restore'
|
|
93
|
+
*/
|
|
94
|
+
trigger: string
|
|
66
95
|
createdAt: string
|
|
67
96
|
edgeCount: (number | null)
|
|
68
97
|
nodeCount: (number | null)
|
|
@@ -519,107 +548,6 @@ mimeType: string
|
|
|
519
548
|
}[]
|
|
520
549
|
}[]
|
|
521
550
|
|
|
522
|
-
export interface BrainKnowledgeEntityMemoriesInput {
|
|
523
|
-
/**
|
|
524
|
-
* Max memories (default 50)
|
|
525
|
-
*/
|
|
526
|
-
limit?: number
|
|
527
|
-
/**
|
|
528
|
-
* Read scope; 'both' (default) unions shared + your private
|
|
529
|
-
*/
|
|
530
|
-
scope?: ("shared" | "private" | "both")
|
|
531
|
-
/**
|
|
532
|
-
* Pagination offset
|
|
533
|
-
*/
|
|
534
|
-
offset?: number
|
|
535
|
-
/**
|
|
536
|
-
* Entity id, name, or alias to fetch backing memories for
|
|
537
|
-
*/
|
|
538
|
-
entity_ref: string
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
export interface BrainKnowledgeEntityMemoriesOutput {
|
|
542
|
-
total: number
|
|
543
|
-
entity: ({
|
|
544
|
-
score?: number
|
|
545
|
-
aliases: string[]
|
|
546
|
-
entity_id: string
|
|
547
|
-
description: (string | null)
|
|
548
|
-
entity_type: string
|
|
549
|
-
display_name: string
|
|
550
|
-
canonical_name: string
|
|
551
|
-
evidence_count: number
|
|
552
|
-
} | null)
|
|
553
|
-
memories: {
|
|
554
|
-
/**
|
|
555
|
-
* Consumer-facing label derived from the layer; 'unknown' for an unrecognised layer
|
|
556
|
-
*/
|
|
557
|
-
kind: ("schema" | "intention" | "identity" | "basic" | "fact" | "summary" | "knowledge" | "raw" | "unknown")
|
|
558
|
-
tags: string[]
|
|
559
|
-
/**
|
|
560
|
-
* Engine memory layer (l0_basic_info…l7_intention)
|
|
561
|
-
*/
|
|
562
|
-
layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fact" | "l3_summary" | "l5_knowledge" | "l1_raw")
|
|
563
|
-
custom: {
|
|
564
|
-
[k: string]: unknown
|
|
565
|
-
}
|
|
566
|
-
status: string
|
|
567
|
-
content: string
|
|
568
|
-
user_id: string
|
|
569
|
-
agent_id: string
|
|
570
|
-
memory_at: (number | null)
|
|
571
|
-
memory_id: string
|
|
572
|
-
speculate: (string | null)
|
|
573
|
-
session_id: string
|
|
574
|
-
gmt_created: number
|
|
575
|
-
/**
|
|
576
|
-
* Source authority (highest→lowest): policy > official > team > informal
|
|
577
|
-
*/
|
|
578
|
-
source_authority: ("policy" | "official" | "team" | "informal")
|
|
579
|
-
source_raw_memory_id: (string | null)
|
|
580
|
-
}[]
|
|
581
|
-
elapsed_ms: number
|
|
582
|
-
request_id: string
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
export interface BrainKnowledgeGraphInput {
|
|
586
|
-
/**
|
|
587
|
-
* Max nodes (default 5000). When the cap applies the HIGHEST-DEGREE nodes are kept, so a small limit (e.g. 100) returns the hub concepts — that is usually what you want
|
|
588
|
-
*/
|
|
589
|
-
limit?: number
|
|
590
|
-
/**
|
|
591
|
-
* Read scope; 'both' (default) unions shared + your private
|
|
592
|
-
*/
|
|
593
|
-
scope?: ("shared" | "private" | "both")
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
export interface BrainKnowledgeGraphOutput {
|
|
597
|
-
edges: {
|
|
598
|
-
reason: (string | null)
|
|
599
|
-
source: string
|
|
600
|
-
target: string
|
|
601
|
-
symmetric: boolean
|
|
602
|
-
relation_type: string
|
|
603
|
-
}[]
|
|
604
|
-
nodes: {
|
|
605
|
-
id: string
|
|
606
|
-
degree: number
|
|
607
|
-
aliases: string[]
|
|
608
|
-
description: (string | null)
|
|
609
|
-
entity_type: string
|
|
610
|
-
display_name: string
|
|
611
|
-
canonical_name: string
|
|
612
|
-
evidence_count: number
|
|
613
|
-
}[]
|
|
614
|
-
totals: {
|
|
615
|
-
edgeCount: number
|
|
616
|
-
nodeCount: number
|
|
617
|
-
}
|
|
618
|
-
truncated: boolean
|
|
619
|
-
elapsed_ms: number
|
|
620
|
-
request_id: string
|
|
621
|
-
}
|
|
622
|
-
|
|
623
551
|
export interface BrainKnowledgeNeighborhoodInput {
|
|
624
552
|
/**
|
|
625
553
|
* Hops to expand (engine clamps to 3)
|
|
@@ -1000,7 +928,10 @@ restoreId: string
|
|
|
1000
928
|
|
|
1001
929
|
export type BrainRestoreStatusOutput = ({
|
|
1002
930
|
error: (string | null)
|
|
1003
|
-
|
|
931
|
+
/**
|
|
932
|
+
* 'pending' | 'wiped' | 'importing' | 'completed' | 'failed'
|
|
933
|
+
*/
|
|
934
|
+
status: string
|
|
1004
935
|
edgeCount: (number | null)
|
|
1005
936
|
nodeCount: (number | null)
|
|
1006
937
|
productId: string
|
|
@@ -13257,6 +13188,226 @@ name: string
|
|
|
13257
13188
|
activeProductId: (string | null)
|
|
13258
13189
|
}
|
|
13259
13190
|
|
|
13191
|
+
export interface PlaygroundAnalyticsOverviewInput {
|
|
13192
|
+
/**
|
|
13193
|
+
* Max records per entity in recent[]; omit for the endpoint default
|
|
13194
|
+
*/
|
|
13195
|
+
limit?: number
|
|
13196
|
+
}
|
|
13197
|
+
|
|
13198
|
+
export interface PlaygroundAnalyticsOverviewOutput {
|
|
13199
|
+
ok: boolean
|
|
13200
|
+
minted: boolean
|
|
13201
|
+
overview?: unknown
|
|
13202
|
+
http_status: number
|
|
13203
|
+
}
|
|
13204
|
+
|
|
13205
|
+
export interface PlaygroundBillingEntitlementsInput {
|
|
13206
|
+
|
|
13207
|
+
}
|
|
13208
|
+
|
|
13209
|
+
export interface PlaygroundBillingEntitlementsOutput {
|
|
13210
|
+
ok: boolean
|
|
13211
|
+
minted: boolean
|
|
13212
|
+
http_status: number
|
|
13213
|
+
entitlements?: unknown
|
|
13214
|
+
}
|
|
13215
|
+
|
|
13216
|
+
export interface PlaygroundBillingRecordUsageInput {
|
|
13217
|
+
/**
|
|
13218
|
+
* Quantity of events to record against playground-events (SUM); defaults to 1
|
|
13219
|
+
*/
|
|
13220
|
+
value?: number
|
|
13221
|
+
}
|
|
13222
|
+
|
|
13223
|
+
export interface PlaygroundBillingRecordUsageOutput {
|
|
13224
|
+
minted: boolean
|
|
13225
|
+
accepted: (number | null)
|
|
13226
|
+
recorded: boolean
|
|
13227
|
+
duplicates: (number | null)
|
|
13228
|
+
http_status: number
|
|
13229
|
+
}
|
|
13230
|
+
|
|
13231
|
+
export interface PlaygroundClickupCreateTaskInput {
|
|
13232
|
+
/**
|
|
13233
|
+
* Task title; defaults to a fixture label
|
|
13234
|
+
*/
|
|
13235
|
+
name?: string
|
|
13236
|
+
/**
|
|
13237
|
+
* ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
|
|
13238
|
+
*/
|
|
13239
|
+
listId?: string
|
|
13240
|
+
}
|
|
13241
|
+
|
|
13242
|
+
export interface PlaygroundClickupCreateTaskOutput {
|
|
13243
|
+
minted: boolean
|
|
13244
|
+
task_id: (string | null)
|
|
13245
|
+
list_status: number
|
|
13246
|
+
vend_status: number
|
|
13247
|
+
clickup_status: number
|
|
13248
|
+
installation_count: number
|
|
13249
|
+
}
|
|
13250
|
+
|
|
13251
|
+
export interface PlaygroundClickupGetLastWebhookInput {
|
|
13252
|
+
|
|
13253
|
+
}
|
|
13254
|
+
|
|
13255
|
+
export type PlaygroundClickupGetLastWebhookOutput = ({
|
|
13256
|
+
payload: string
|
|
13257
|
+
event_id: string
|
|
13258
|
+
provider: string
|
|
13259
|
+
verified: boolean
|
|
13260
|
+
product_id: string
|
|
13261
|
+
occurred_at: string
|
|
13262
|
+
connector_id: string
|
|
13263
|
+
clickup_event: (string | null)
|
|
13264
|
+
receipt_count: number
|
|
13265
|
+
} | {
|
|
13266
|
+
found: false
|
|
13267
|
+
})
|
|
13268
|
+
|
|
13269
|
+
export interface PlaygroundClickupGetOverviewInput {
|
|
13270
|
+
|
|
13271
|
+
}
|
|
13272
|
+
|
|
13273
|
+
export interface PlaygroundClickupGetOverviewOutput {
|
|
13274
|
+
team: ({
|
|
13275
|
+
teamId: string
|
|
13276
|
+
teamName: string
|
|
13277
|
+
} | null)
|
|
13278
|
+
lists: PlaygroundClickupGetOverviewOutputItems[]
|
|
13279
|
+
tasks: {
|
|
13280
|
+
id: string
|
|
13281
|
+
name: string
|
|
13282
|
+
status: (string | null)
|
|
13283
|
+
}[]
|
|
13284
|
+
minted: boolean
|
|
13285
|
+
spaces: PlaygroundClickupGetOverviewOutputItems[]
|
|
13286
|
+
list_status: number
|
|
13287
|
+
vend_status: number
|
|
13288
|
+
lists_status: number
|
|
13289
|
+
tasks_status: number
|
|
13290
|
+
spaces_status: number
|
|
13291
|
+
folders_status: number
|
|
13292
|
+
installation_count: number
|
|
13293
|
+
}
|
|
13294
|
+
export interface PlaygroundClickupGetOverviewOutputItems {
|
|
13295
|
+
id: string
|
|
13296
|
+
name: string
|
|
13297
|
+
}
|
|
13298
|
+
|
|
13299
|
+
export interface PlaygroundGdriveGetLastChangeInput {
|
|
13300
|
+
|
|
13301
|
+
}
|
|
13302
|
+
|
|
13303
|
+
export type PlaygroundGdriveGetLastChangeOutput = ({
|
|
13304
|
+
file_id: string
|
|
13305
|
+
removed: boolean
|
|
13306
|
+
file_name: (string | null)
|
|
13307
|
+
mime_type: (string | null)
|
|
13308
|
+
product_id: string
|
|
13309
|
+
occurred_at: string
|
|
13310
|
+
connector_id: string
|
|
13311
|
+
resource_state: string
|
|
13312
|
+
} | {
|
|
13313
|
+
found: false
|
|
13314
|
+
})
|
|
13315
|
+
|
|
13316
|
+
export interface PlaygroundGdriveReadFileInput {
|
|
13317
|
+
/**
|
|
13318
|
+
* Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
|
|
13319
|
+
*/
|
|
13320
|
+
fileId?: string
|
|
13321
|
+
}
|
|
13322
|
+
|
|
13323
|
+
export interface PlaygroundGdriveReadFileOutput {
|
|
13324
|
+
minted: boolean
|
|
13325
|
+
file_id: (string | null)
|
|
13326
|
+
file_name: (string | null)
|
|
13327
|
+
mime_type: (string | null)
|
|
13328
|
+
file_count: number
|
|
13329
|
+
get_status: number
|
|
13330
|
+
list_status: number
|
|
13331
|
+
vend_status: number
|
|
13332
|
+
content_bytes: (number | null)
|
|
13333
|
+
}
|
|
13334
|
+
|
|
13335
|
+
export interface PlaygroundGoogleadsReadCustomerInput {
|
|
13336
|
+
|
|
13337
|
+
}
|
|
13338
|
+
|
|
13339
|
+
export interface PlaygroundGoogleadsReadCustomerOutput {
|
|
13340
|
+
minted: boolean
|
|
13341
|
+
vended: boolean
|
|
13342
|
+
customer_id: (string | null)
|
|
13343
|
+
vend_status: number
|
|
13344
|
+
result_count: number
|
|
13345
|
+
search_status: number
|
|
13346
|
+
login_customer_id: (string | null)
|
|
13347
|
+
}
|
|
13348
|
+
|
|
13349
|
+
export interface PlaygroundLifecycleGetStateInput {
|
|
13350
|
+
|
|
13351
|
+
}
|
|
13352
|
+
|
|
13353
|
+
export interface PlaygroundLifecycleGetStateOutput {
|
|
13354
|
+
blocked: boolean
|
|
13355
|
+
archived: boolean
|
|
13356
|
+
productId: string
|
|
13357
|
+
lastBlockTransition: ({
|
|
13358
|
+
eventId: string
|
|
13359
|
+
eventName: string
|
|
13360
|
+
productId: string
|
|
13361
|
+
occurredAt: string
|
|
13362
|
+
recordedAt: string
|
|
13363
|
+
receiptCount: number
|
|
13364
|
+
organizationId: string
|
|
13365
|
+
cascadedFromOrg: boolean
|
|
13366
|
+
} | null)
|
|
13367
|
+
lastArchiveTransition: ({
|
|
13368
|
+
eventId: string
|
|
13369
|
+
eventName: string
|
|
13370
|
+
productId: string
|
|
13371
|
+
occurredAt: string
|
|
13372
|
+
recordedAt: string
|
|
13373
|
+
receiptCount: number
|
|
13374
|
+
organizationId: string
|
|
13375
|
+
cascadedFromOrg: boolean
|
|
13376
|
+
} | null)
|
|
13377
|
+
}
|
|
13378
|
+
|
|
13379
|
+
export interface PlaygroundLifecycleListEventsInput {
|
|
13380
|
+
|
|
13381
|
+
}
|
|
13382
|
+
|
|
13383
|
+
export type PlaygroundLifecycleListEventsOutput = {
|
|
13384
|
+
eventId: string
|
|
13385
|
+
eventName: string
|
|
13386
|
+
productId: string
|
|
13387
|
+
occurredAt: string
|
|
13388
|
+
recordedAt: string
|
|
13389
|
+
receiptCount: number
|
|
13390
|
+
organizationId: string
|
|
13391
|
+
cascadedFromOrg: boolean
|
|
13392
|
+
}[]
|
|
13393
|
+
|
|
13394
|
+
export interface PlaygroundWebhookGetLastInput {
|
|
13395
|
+
|
|
13396
|
+
}
|
|
13397
|
+
|
|
13398
|
+
export type PlaygroundWebhookGetLastOutput = ({
|
|
13399
|
+
payload?: unknown
|
|
13400
|
+
event_id: string
|
|
13401
|
+
provider: string
|
|
13402
|
+
verified: boolean
|
|
13403
|
+
product_id: string
|
|
13404
|
+
occurred_at: string
|
|
13405
|
+
connector_id: string
|
|
13406
|
+
delivery_count: number
|
|
13407
|
+
} | {
|
|
13408
|
+
found: false
|
|
13409
|
+
})
|
|
13410
|
+
|
|
13260
13411
|
export interface TrackingApiKeysCreateInput {
|
|
13261
13412
|
name: string
|
|
13262
13413
|
}
|