@lessly/sdk-app 120.3.0 → 121.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.
@@ -0,0 +1,119 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import type { GeneratedClient } from '../client.gen';
3
+ import type {
4
+ PlaygroundAnalyticsOverviewInput,
5
+ PlaygroundAnalyticsOverviewOutput,
6
+ PlaygroundBillingEntitlementsInput,
7
+ PlaygroundBillingEntitlementsOutput,
8
+ PlaygroundBillingRecordUsageInput,
9
+ PlaygroundClickupCreateTaskInput,
10
+ PlaygroundClickupGetLastWebhookInput,
11
+ PlaygroundClickupGetLastWebhookOutput,
12
+ PlaygroundClickupGetOverviewInput,
13
+ PlaygroundClickupGetOverviewOutput,
14
+ PlaygroundEchoPingInput,
15
+ PlaygroundEchoPingOutput,
16
+ PlaygroundGdriveGetLastChangeInput,
17
+ PlaygroundGdriveGetLastChangeOutput,
18
+ PlaygroundGdriveReadFileInput,
19
+ PlaygroundGdriveReadFileOutput,
20
+ PlaygroundGoogleadsReadCustomerInput,
21
+ PlaygroundGoogleadsReadCustomerOutput,
22
+ PlaygroundLifecycleGetStateInput,
23
+ PlaygroundLifecycleGetStateOutput,
24
+ PlaygroundLifecycleListEventsInput,
25
+ PlaygroundLifecycleListEventsOutput,
26
+ PlaygroundWebhookGetLastInput,
27
+ PlaygroundWebhookGetLastOutput,
28
+ PlaygroundWorkflowEchoInput,
29
+ PlaygroundWorkflowEchoListInput,
30
+ PlaygroundWorkflowEchoListOutput,
31
+ PlaygroundWorkflowPingInput,
32
+ PlaygroundWorkflowSubjectsListInput,
33
+ PlaygroundWorkflowSubjectsListOutput,
34
+ } from '../types.gen';
35
+
36
+ export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
37
+ queryKey: ['playground', 'analytics', 'overview', input] as const,
38
+ queryFn: () => sdk['playground']['analytics']['overview'](input),
39
+ });
40
+
41
+ export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
42
+ queryKey: ['playground', 'billing', 'entitlements', input] as const,
43
+ queryFn: () => sdk['playground']['billing']['entitlements'](input),
44
+ });
45
+
46
+ export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
47
+ mutationKey: ['playground', 'billing', 'record-usage'],
48
+ mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
49
+ });
50
+
51
+ export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
52
+ mutationKey: ['playground', 'clickup', 'create-task'],
53
+ mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
54
+ });
55
+
56
+ export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
57
+ queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
58
+ queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
59
+ });
60
+
61
+ export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
62
+ queryKey: ['playground', 'clickup', 'get-overview', input] as const,
63
+ queryFn: () => sdk['playground']['clickup']['get-overview'](input),
64
+ });
65
+
66
+ export const playgroundEchoPingQueryOptions = (sdk: GeneratedClient, input: PlaygroundEchoPingInput) => ({
67
+ queryKey: ['playground', 'echo', 'ping', input] as const,
68
+ queryFn: () => sdk['playground']['echo']['ping'](input),
69
+ });
70
+
71
+ export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
72
+ queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
73
+ queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
74
+ });
75
+
76
+ export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
77
+ queryKey: ['playground', 'gdrive', 'read-file', input] as const,
78
+ queryFn: () => sdk['playground']['gdrive']['read-file'](input),
79
+ });
80
+
81
+ export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
82
+ queryKey: ['playground', 'googleads', 'read-customer', input] as const,
83
+ queryFn: () => sdk['playground']['googleads']['read-customer'](input),
84
+ });
85
+
86
+ export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
87
+ queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
88
+ queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
89
+ });
90
+
91
+ export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
92
+ queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
93
+ queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
94
+ });
95
+
96
+ export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
97
+ queryKey: ['playground', 'webhook', 'get-last', input] as const,
98
+ queryFn: () => sdk['playground']['webhook']['get-last'](input),
99
+ });
100
+
101
+ export const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({
102
+ mutationKey: ['playground', 'workflow', 'echo'],
103
+ mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),
104
+ });
105
+
106
+ export const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({
107
+ queryKey: ['playground', 'workflow', 'echo-list', input] as const,
108
+ queryFn: () => sdk['playground']['workflow']['echo-list'](input),
109
+ });
110
+
111
+ export const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({
112
+ mutationKey: ['playground', 'workflow', 'ping'],
113
+ mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),
114
+ });
115
+
116
+ export const playgroundWorkflowSubjectsListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowSubjectsListInput) => ({
117
+ queryKey: ['playground', 'workflow', 'subjects-list', input] as const,
118
+ queryFn: () => sdk['playground']['workflow']['subjects-list'](input),
119
+ });
@@ -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)
@@ -341479,7 +341479,7 @@ success: true
341479
341479
  */
341480
341480
  request_id: string
341481
341481
  /**
341482
- * How many memory rows the engine removed for this id; 0 when it was already gone
341482
+ * 1 when the engine removed this memory from vector or graph storage; 0 when it was already gone
341483
341483
  */
341484
341484
  deleted_count: number
341485
341485
  }
@@ -341518,6 +341518,10 @@ status: string
341518
341518
  * The memory text itself
341519
341519
  */
341520
341520
  content: string
341521
+ /**
341522
+ * True when this memory was machine-extracted from a raw memory
341523
+ */
341524
+ derived: boolean
341521
341525
  /**
341522
341526
  * Engine user namespace the memory was written under
341523
341527
  */
@@ -341630,6 +341634,10 @@ status: string
341630
341634
  * The memory text itself
341631
341635
  */
341632
341636
  content: string
341637
+ /**
341638
+ * True when this memory was machine-extracted from a raw memory
341639
+ */
341640
+ derived: boolean
341633
341641
  /**
341634
341642
  * Engine user namespace the memory was written under
341635
341643
  */
@@ -341715,10 +341723,31 @@ layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fac
341715
341723
  * 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
341724
  */
341717
341725
  score: number
341726
+ /**
341727
+ * Readable raw memory for verification; null when missing or outside your scope
341728
+ */
341729
+ source: ({
341730
+ /**
341731
+ * Raw memory text, at most 2000 Unicode characters
341732
+ */
341733
+ content: string
341734
+ /**
341735
+ * Id of the raw memory this item was extracted from
341736
+ */
341737
+ memory_id: string
341738
+ /**
341739
+ * True when the raw memory text was longer than 2000 Unicode characters
341740
+ */
341741
+ truncated: boolean
341742
+ } | null)
341718
341743
  /**
341719
341744
  * The memory text itself
341720
341745
  */
341721
341746
  content: string
341747
+ /**
341748
+ * True when this memory was machine-extracted from a raw memory; extracted content can be wrong
341749
+ */
341750
+ derived: boolean
341722
341751
  /**
341723
341752
  * When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
341724
341753
  */
@@ -381877,6 +381906,378 @@ export interface OrganizationYoutubeInstallOutput {
381877
381906
  url: string
381878
381907
  }
381879
381908
 
381909
+ export interface PlaygroundAnalyticsOverviewInput {
381910
+ /**
381911
+ * Max records per entity in recent[]; omit for the endpoint default
381912
+ */
381913
+ limit?: number
381914
+ }
381915
+
381916
+ export interface PlaygroundAnalyticsOverviewOutput {
381917
+ ok: boolean
381918
+ minted: boolean
381919
+ overview?: unknown
381920
+ http_status: number
381921
+ }
381922
+
381923
+ export interface PlaygroundBillingEntitlementsInput {
381924
+
381925
+ }
381926
+
381927
+ export interface PlaygroundBillingEntitlementsOutput {
381928
+ ok: boolean
381929
+ minted: boolean
381930
+ http_status: number
381931
+ entitlements?: unknown
381932
+ }
381933
+
381934
+ export interface PlaygroundBillingRecordUsageInput {
381935
+ /**
381936
+ * Quantity of events to record against playground-events (SUM); defaults to 1
381937
+ */
381938
+ value?: number
381939
+ }
381940
+
381941
+ export interface PlaygroundBillingRecordUsageOutput {
381942
+ minted: boolean
381943
+ accepted: (number | null)
381944
+ recorded: boolean
381945
+ duplicates: (number | null)
381946
+ http_status: number
381947
+ }
381948
+
381949
+ export interface PlaygroundClickupCreateTaskInput {
381950
+ /**
381951
+ * Task title; defaults to a fixture label
381952
+ */
381953
+ name?: string
381954
+ /**
381955
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
381956
+ */
381957
+ listId?: string
381958
+ }
381959
+
381960
+ export interface PlaygroundClickupCreateTaskOutput {
381961
+ minted: boolean
381962
+ task_id: (string | null)
381963
+ list_status: number
381964
+ vend_status: number
381965
+ clickup_status: number
381966
+ installation_count: number
381967
+ }
381968
+
381969
+ export interface PlaygroundClickupGetLastWebhookInput {
381970
+
381971
+ }
381972
+
381973
+ export type PlaygroundClickupGetLastWebhookOutput = ({
381974
+ payload: string
381975
+ event_id: string
381976
+ provider: string
381977
+ verified: boolean
381978
+ product_id: string
381979
+ occurred_at: string
381980
+ connector_id: string
381981
+ clickup_event: (string | null)
381982
+ receipt_count: number
381983
+ } | {
381984
+ found: false
381985
+ })
381986
+
381987
+ export interface PlaygroundClickupGetOverviewInput {
381988
+
381989
+ }
381990
+
381991
+ export interface PlaygroundClickupGetOverviewOutput {
381992
+ team: ({
381993
+ teamId: string
381994
+ teamName: string
381995
+ } | null)
381996
+ lists: PlaygroundClickupGetOverviewOutputItems[]
381997
+ tasks: {
381998
+ id: string
381999
+ name: string
382000
+ status: (string | null)
382001
+ }[]
382002
+ minted: boolean
382003
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
382004
+ list_status: number
382005
+ vend_status: number
382006
+ lists_status: number
382007
+ tasks_status: number
382008
+ spaces_status: number
382009
+ folders_status: number
382010
+ installation_count: number
382011
+ }
382012
+ export interface PlaygroundClickupGetOverviewOutputItems {
382013
+ id: string
382014
+ name: string
382015
+ }
382016
+
382017
+ export interface PlaygroundEchoPingInput {
382018
+ /**
382019
+ * The text to echo back, 1–1024 characters
382020
+ */
382021
+ message: string
382022
+ }
382023
+
382024
+ export interface PlaygroundEchoPingOutput {
382025
+ /**
382026
+ * The message exactly as it was received
382027
+ */
382028
+ message: string
382029
+ /**
382030
+ * The product the call was resolved to
382031
+ */
382032
+ productId: string
382033
+ /**
382034
+ * ISO-8601 instant (UTC) at which the call reached the service
382035
+ */
382036
+ receivedAt: string
382037
+ }
382038
+
382039
+ export interface PlaygroundGdriveGetLastChangeInput {
382040
+
382041
+ }
382042
+
382043
+ export type PlaygroundGdriveGetLastChangeOutput = ({
382044
+ file_id: string
382045
+ removed: boolean
382046
+ file_name: (string | null)
382047
+ mime_type: (string | null)
382048
+ product_id: string
382049
+ occurred_at: string
382050
+ connector_id: string
382051
+ resource_state: string
382052
+ } | {
382053
+ found: false
382054
+ })
382055
+
382056
+ export interface PlaygroundGdriveReadFileInput {
382057
+ /**
382058
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
382059
+ */
382060
+ fileId?: string
382061
+ }
382062
+
382063
+ export interface PlaygroundGdriveReadFileOutput {
382064
+ minted: boolean
382065
+ file_id: (string | null)
382066
+ file_name: (string | null)
382067
+ mime_type: (string | null)
382068
+ file_count: number
382069
+ get_status: number
382070
+ list_status: number
382071
+ vend_status: number
382072
+ content_bytes: (number | null)
382073
+ }
382074
+
382075
+ export interface PlaygroundGoogleadsReadCustomerInput {
382076
+
382077
+ }
382078
+
382079
+ export interface PlaygroundGoogleadsReadCustomerOutput {
382080
+ minted: boolean
382081
+ vended: boolean
382082
+ customer_id: (string | null)
382083
+ vend_status: number
382084
+ result_count: number
382085
+ search_status: number
382086
+ login_customer_id: (string | null)
382087
+ }
382088
+
382089
+ export interface PlaygroundLifecycleGetStateInput {
382090
+
382091
+ }
382092
+
382093
+ export interface PlaygroundLifecycleGetStateOutput {
382094
+ blocked: boolean
382095
+ archived: boolean
382096
+ productId: string
382097
+ lastBlockTransition: ({
382098
+ eventId: string
382099
+ eventName: string
382100
+ productId: string
382101
+ occurredAt: string
382102
+ recordedAt: string
382103
+ receiptCount: number
382104
+ organizationId: string
382105
+ cascadedFromOrg: boolean
382106
+ } | null)
382107
+ lastArchiveTransition: ({
382108
+ eventId: string
382109
+ eventName: string
382110
+ productId: string
382111
+ occurredAt: string
382112
+ recordedAt: string
382113
+ receiptCount: number
382114
+ organizationId: string
382115
+ cascadedFromOrg: boolean
382116
+ } | null)
382117
+ }
382118
+
382119
+ export interface PlaygroundLifecycleListEventsInput {
382120
+
382121
+ }
382122
+
382123
+ export type PlaygroundLifecycleListEventsOutput = {
382124
+ eventId: string
382125
+ eventName: string
382126
+ productId: string
382127
+ occurredAt: string
382128
+ recordedAt: string
382129
+ receiptCount: number
382130
+ organizationId: string
382131
+ cascadedFromOrg: boolean
382132
+ }[]
382133
+
382134
+ export interface PlaygroundWebhookGetLastInput {
382135
+
382136
+ }
382137
+
382138
+ export type PlaygroundWebhookGetLastOutput = ({
382139
+ payload?: unknown
382140
+ event_id: string
382141
+ provider: string
382142
+ verified: boolean
382143
+ product_id: string
382144
+ occurred_at: string
382145
+ connector_id: string
382146
+ delivery_count: number
382147
+ } | {
382148
+ found: false
382149
+ })
382150
+
382151
+ export interface PlaygroundWorkflowEchoInput {
382152
+ /**
382153
+ * The text to store, 1–1024 characters
382154
+ */
382155
+ note: string
382156
+ /**
382157
+ * Optional labels stored alongside the note, at most 20
382158
+ *
382159
+ * @maxItems 20
382160
+ */
382161
+ 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]
382162
+ }
382163
+
382164
+ export interface PlaygroundWorkflowEchoOutput {
382165
+ /**
382166
+ * Identifier of the stored echo
382167
+ */
382168
+ id: string
382169
+ /**
382170
+ * The note exactly as it was received
382171
+ */
382172
+ note: string
382173
+ /**
382174
+ * The tags exactly as they were received
382175
+ */
382176
+ tags: string[]
382177
+ /**
382178
+ * 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.
382179
+ */
382180
+ echo_id: string
382181
+ /**
382182
+ * ISO-8601 instant (UTC) at which the echo was stored
382183
+ */
382184
+ received_at: string
382185
+ }
382186
+
382187
+ export interface PlaygroundWorkflowEchoListInput {
382188
+
382189
+ }
382190
+
382191
+ export type PlaygroundWorkflowEchoListOutput = {
382192
+ /**
382193
+ * Identifier of the stored echo
382194
+ */
382195
+ id: string
382196
+ /**
382197
+ * The note exactly as it was received
382198
+ */
382199
+ note: string
382200
+ /**
382201
+ * The tags exactly as they were received
382202
+ */
382203
+ tags: string[]
382204
+ /**
382205
+ * ISO-8601 instant (UTC) at which the echo was stored
382206
+ */
382207
+ received_at: string
382208
+ }[]
382209
+
382210
+ export interface PlaygroundWorkflowPingInput {
382211
+ /**
382212
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
382213
+ */
382214
+ kind?: string
382215
+ }
382216
+
382217
+ export interface PlaygroundWorkflowPingOutput {
382218
+ /**
382219
+ * 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.
382220
+ */
382221
+ id: string
382222
+ /**
382223
+ * The name of the event that was published
382224
+ */
382225
+ event: string
382226
+ }
382227
+
382228
+ export interface PlaygroundWorkflowSubjectsListInput {
382229
+ /**
382230
+ * How many subjects to return, 1–100. Defaults to 25.
382231
+ */
382232
+ limit?: number
382233
+ /**
382234
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
382235
+ */
382236
+ cursor?: string
382237
+ /**
382238
+ * 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.
382239
+ */
382240
+ last_activity_after?: string
382241
+ /**
382242
+ * 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.
382243
+ */
382244
+ last_activity_before?: string
382245
+ }
382246
+
382247
+ export interface PlaygroundWorkflowSubjectsListOutput {
382248
+ /**
382249
+ * This page of subjects, most recently active first
382250
+ */
382251
+ items: {
382252
+ /**
382253
+ * 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.
382254
+ */
382255
+ subject_key: string
382256
+ /**
382257
+ * Human-readable name of the subject
382258
+ */
382259
+ display_name: string
382260
+ /**
382261
+ * ISO-8601 instant (UTC) of the subject last activity
382262
+ */
382263
+ last_activity_at: string
382264
+ }[]
382265
+ /**
382266
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
382267
+ */
382268
+ has_more: boolean
382269
+ /**
382270
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
382271
+ */
382272
+ next_cursor: (string | null)
382273
+ }
382274
+
382275
+ export interface PlaygroundWsEchoInput {
382276
+
382277
+ }
382278
+
382279
+ export type PlaygroundWsEchoOutput = unknown;
382280
+
381880
382281
  export interface RealtimeArchiveExportInput {
381881
382282
  /**
381882
382283
  * Only entries with ts <= to_ts (epoch ms)