@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.
@@ -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)
@@ -341410,12 +341410,20 @@ scope?: ("shared" | "private")
341410
341410
  * The memory text to store
341411
341411
  */
341412
341412
  content: string
341413
+ /**
341414
+ * 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'
341415
+ */
341416
+ extract?: boolean
341413
341417
  /**
341414
341418
  * Optional structured metadata
341415
341419
  */
341416
341420
  metadata?: {
341417
341421
  [k: string]: unknown
341418
341422
  }
341423
+ /**
341424
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
341425
+ */
341426
+ idempotency_key?: string
341419
341427
  /**
341420
341428
  * Source authority (highest→lowest): policy > official > team > informal. Omit to default to official; an unrecognized value is rejected.
341421
341429
  */
@@ -341444,7 +341452,7 @@ extraction?: {
341444
341452
  */
341445
341453
  items: number
341446
341454
  /**
341447
- * 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
341455
+ * 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
341448
341456
  */
341449
341457
  status: ("ok" | "empty" | "failed" | "skipped")
341450
341458
  /**
@@ -341460,6 +341468,10 @@ error_message?: string
341460
341468
  * Engine request id for this call — quote it when reporting a problem
341461
341469
  */
341462
341470
  request_id: string
341471
+ /**
341472
+ * True when an unkeyed add matched one completed in the last 10 minutes; no new memory was written
341473
+ */
341474
+ deduplicated?: boolean
341463
341475
  }
341464
341476
 
341465
341477
  export interface BrainMemoryDeleteInput {
@@ -341467,6 +341479,10 @@ export interface BrainMemoryDeleteInput {
341467
341479
  * Engine memory id
341468
341480
  */
341469
341481
  memory_id: string
341482
+ /**
341483
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
341484
+ */
341485
+ idempotency_key?: string
341470
341486
  }
341471
341487
 
341472
341488
  export interface BrainMemoryDeleteOutput {
@@ -341479,7 +341495,7 @@ success: true
341479
341495
  */
341480
341496
  request_id: string
341481
341497
  /**
341482
- * How many memory rows the engine removed for this id; 0 when it was already gone
341498
+ * 1 when the engine removed this memory from vector or graph storage; 0 when it was already gone
341483
341499
  */
341484
341500
  deleted_count: number
341485
341501
  }
@@ -341518,6 +341534,10 @@ status: string
341518
341534
  * The memory text itself
341519
341535
  */
341520
341536
  content: string
341537
+ /**
341538
+ * True when this memory was machine-extracted from a raw memory
341539
+ */
341540
+ derived: boolean
341521
341541
  /**
341522
341542
  * Engine user namespace the memory was written under
341523
341543
  */
@@ -341630,6 +341650,10 @@ status: string
341630
341650
  * The memory text itself
341631
341651
  */
341632
341652
  content: string
341653
+ /**
341654
+ * True when this memory was machine-extracted from a raw memory
341655
+ */
341656
+ derived: boolean
341633
341657
  /**
341634
341658
  * Engine user namespace the memory was written under
341635
341659
  */
@@ -341715,10 +341739,31 @@ layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fac
341715
341739
  * 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
341740
  */
341717
341741
  score: number
341742
+ /**
341743
+ * Readable raw memory for verification; null when missing or outside your scope
341744
+ */
341745
+ source: ({
341746
+ /**
341747
+ * Raw memory text, at most 2000 Unicode characters
341748
+ */
341749
+ content: string
341750
+ /**
341751
+ * Id of the raw memory this item was extracted from
341752
+ */
341753
+ memory_id: string
341754
+ /**
341755
+ * True when the raw memory text was longer than 2000 Unicode characters
341756
+ */
341757
+ truncated: boolean
341758
+ } | null)
341718
341759
  /**
341719
341760
  * The memory text itself
341720
341761
  */
341721
341762
  content: string
341763
+ /**
341764
+ * True when this memory was machine-extracted from a raw memory; extracted content can be wrong
341765
+ */
341766
+ derived: boolean
341722
341767
  /**
341723
341768
  * When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
341724
341769
  */
@@ -341837,6 +341882,10 @@ content: string
341837
341882
  * Engine memory id
341838
341883
  */
341839
341884
  memory_id: string
341885
+ /**
341886
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
341887
+ */
341888
+ idempotency_key?: string
341840
341889
  }
341841
341890
 
341842
341891
  export interface BrainMemoryUpdateOutput {
@@ -381919,6 +381968,378 @@ export interface OrganizationYoutubeInstallOutput {
381919
381968
  url: string
381920
381969
  }
381921
381970
 
381971
+ export interface PlaygroundAnalyticsOverviewInput {
381972
+ /**
381973
+ * Max records per entity in recent[]; omit for the endpoint default
381974
+ */
381975
+ limit?: number
381976
+ }
381977
+
381978
+ export interface PlaygroundAnalyticsOverviewOutput {
381979
+ ok: boolean
381980
+ minted: boolean
381981
+ overview?: unknown
381982
+ http_status: number
381983
+ }
381984
+
381985
+ export interface PlaygroundBillingEntitlementsInput {
381986
+
381987
+ }
381988
+
381989
+ export interface PlaygroundBillingEntitlementsOutput {
381990
+ ok: boolean
381991
+ minted: boolean
381992
+ http_status: number
381993
+ entitlements?: unknown
381994
+ }
381995
+
381996
+ export interface PlaygroundBillingRecordUsageInput {
381997
+ /**
381998
+ * Quantity of events to record against playground-events (SUM); defaults to 1
381999
+ */
382000
+ value?: number
382001
+ }
382002
+
382003
+ export interface PlaygroundBillingRecordUsageOutput {
382004
+ minted: boolean
382005
+ accepted: (number | null)
382006
+ recorded: boolean
382007
+ duplicates: (number | null)
382008
+ http_status: number
382009
+ }
382010
+
382011
+ export interface PlaygroundClickupCreateTaskInput {
382012
+ /**
382013
+ * Task title; defaults to a fixture label
382014
+ */
382015
+ name?: string
382016
+ /**
382017
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
382018
+ */
382019
+ listId?: string
382020
+ }
382021
+
382022
+ export interface PlaygroundClickupCreateTaskOutput {
382023
+ minted: boolean
382024
+ task_id: (string | null)
382025
+ list_status: number
382026
+ vend_status: number
382027
+ clickup_status: number
382028
+ installation_count: number
382029
+ }
382030
+
382031
+ export interface PlaygroundClickupGetLastWebhookInput {
382032
+
382033
+ }
382034
+
382035
+ export type PlaygroundClickupGetLastWebhookOutput = ({
382036
+ payload: string
382037
+ event_id: string
382038
+ provider: string
382039
+ verified: boolean
382040
+ product_id: string
382041
+ occurred_at: string
382042
+ connector_id: string
382043
+ clickup_event: (string | null)
382044
+ receipt_count: number
382045
+ } | {
382046
+ found: false
382047
+ })
382048
+
382049
+ export interface PlaygroundClickupGetOverviewInput {
382050
+
382051
+ }
382052
+
382053
+ export interface PlaygroundClickupGetOverviewOutput {
382054
+ team: ({
382055
+ teamId: string
382056
+ teamName: string
382057
+ } | null)
382058
+ lists: PlaygroundClickupGetOverviewOutputItems[]
382059
+ tasks: {
382060
+ id: string
382061
+ name: string
382062
+ status: (string | null)
382063
+ }[]
382064
+ minted: boolean
382065
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
382066
+ list_status: number
382067
+ vend_status: number
382068
+ lists_status: number
382069
+ tasks_status: number
382070
+ spaces_status: number
382071
+ folders_status: number
382072
+ installation_count: number
382073
+ }
382074
+ export interface PlaygroundClickupGetOverviewOutputItems {
382075
+ id: string
382076
+ name: string
382077
+ }
382078
+
382079
+ export interface PlaygroundEchoPingInput {
382080
+ /**
382081
+ * The text to echo back, 1–1024 characters
382082
+ */
382083
+ message: string
382084
+ }
382085
+
382086
+ export interface PlaygroundEchoPingOutput {
382087
+ /**
382088
+ * The message exactly as it was received
382089
+ */
382090
+ message: string
382091
+ /**
382092
+ * The product the call was resolved to
382093
+ */
382094
+ productId: string
382095
+ /**
382096
+ * ISO-8601 instant (UTC) at which the call reached the service
382097
+ */
382098
+ receivedAt: string
382099
+ }
382100
+
382101
+ export interface PlaygroundGdriveGetLastChangeInput {
382102
+
382103
+ }
382104
+
382105
+ export type PlaygroundGdriveGetLastChangeOutput = ({
382106
+ file_id: string
382107
+ removed: boolean
382108
+ file_name: (string | null)
382109
+ mime_type: (string | null)
382110
+ product_id: string
382111
+ occurred_at: string
382112
+ connector_id: string
382113
+ resource_state: string
382114
+ } | {
382115
+ found: false
382116
+ })
382117
+
382118
+ export interface PlaygroundGdriveReadFileInput {
382119
+ /**
382120
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
382121
+ */
382122
+ fileId?: string
382123
+ }
382124
+
382125
+ export interface PlaygroundGdriveReadFileOutput {
382126
+ minted: boolean
382127
+ file_id: (string | null)
382128
+ file_name: (string | null)
382129
+ mime_type: (string | null)
382130
+ file_count: number
382131
+ get_status: number
382132
+ list_status: number
382133
+ vend_status: number
382134
+ content_bytes: (number | null)
382135
+ }
382136
+
382137
+ export interface PlaygroundGoogleadsReadCustomerInput {
382138
+
382139
+ }
382140
+
382141
+ export interface PlaygroundGoogleadsReadCustomerOutput {
382142
+ minted: boolean
382143
+ vended: boolean
382144
+ customer_id: (string | null)
382145
+ vend_status: number
382146
+ result_count: number
382147
+ search_status: number
382148
+ login_customer_id: (string | null)
382149
+ }
382150
+
382151
+ export interface PlaygroundLifecycleGetStateInput {
382152
+
382153
+ }
382154
+
382155
+ export interface PlaygroundLifecycleGetStateOutput {
382156
+ blocked: boolean
382157
+ archived: boolean
382158
+ productId: string
382159
+ lastBlockTransition: ({
382160
+ eventId: string
382161
+ eventName: string
382162
+ productId: string
382163
+ occurredAt: string
382164
+ recordedAt: string
382165
+ receiptCount: number
382166
+ organizationId: string
382167
+ cascadedFromOrg: boolean
382168
+ } | null)
382169
+ lastArchiveTransition: ({
382170
+ eventId: string
382171
+ eventName: string
382172
+ productId: string
382173
+ occurredAt: string
382174
+ recordedAt: string
382175
+ receiptCount: number
382176
+ organizationId: string
382177
+ cascadedFromOrg: boolean
382178
+ } | null)
382179
+ }
382180
+
382181
+ export interface PlaygroundLifecycleListEventsInput {
382182
+
382183
+ }
382184
+
382185
+ export type PlaygroundLifecycleListEventsOutput = {
382186
+ eventId: string
382187
+ eventName: string
382188
+ productId: string
382189
+ occurredAt: string
382190
+ recordedAt: string
382191
+ receiptCount: number
382192
+ organizationId: string
382193
+ cascadedFromOrg: boolean
382194
+ }[]
382195
+
382196
+ export interface PlaygroundWebhookGetLastInput {
382197
+
382198
+ }
382199
+
382200
+ export type PlaygroundWebhookGetLastOutput = ({
382201
+ payload?: unknown
382202
+ event_id: string
382203
+ provider: string
382204
+ verified: boolean
382205
+ product_id: string
382206
+ occurred_at: string
382207
+ connector_id: string
382208
+ delivery_count: number
382209
+ } | {
382210
+ found: false
382211
+ })
382212
+
382213
+ export interface PlaygroundWorkflowEchoInput {
382214
+ /**
382215
+ * The text to store, 1–1024 characters
382216
+ */
382217
+ note: string
382218
+ /**
382219
+ * Optional labels stored alongside the note, at most 20
382220
+ *
382221
+ * @maxItems 20
382222
+ */
382223
+ 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]
382224
+ }
382225
+
382226
+ export interface PlaygroundWorkflowEchoOutput {
382227
+ /**
382228
+ * Identifier of the stored echo
382229
+ */
382230
+ id: string
382231
+ /**
382232
+ * The note exactly as it was received
382233
+ */
382234
+ note: string
382235
+ /**
382236
+ * The tags exactly as they were received
382237
+ */
382238
+ tags: string[]
382239
+ /**
382240
+ * 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.
382241
+ */
382242
+ echo_id: string
382243
+ /**
382244
+ * ISO-8601 instant (UTC) at which the echo was stored
382245
+ */
382246
+ received_at: string
382247
+ }
382248
+
382249
+ export interface PlaygroundWorkflowEchoListInput {
382250
+
382251
+ }
382252
+
382253
+ export type PlaygroundWorkflowEchoListOutput = {
382254
+ /**
382255
+ * Identifier of the stored echo
382256
+ */
382257
+ id: string
382258
+ /**
382259
+ * The note exactly as it was received
382260
+ */
382261
+ note: string
382262
+ /**
382263
+ * The tags exactly as they were received
382264
+ */
382265
+ tags: string[]
382266
+ /**
382267
+ * ISO-8601 instant (UTC) at which the echo was stored
382268
+ */
382269
+ received_at: string
382270
+ }[]
382271
+
382272
+ export interface PlaygroundWorkflowPingInput {
382273
+ /**
382274
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
382275
+ */
382276
+ kind?: string
382277
+ }
382278
+
382279
+ export interface PlaygroundWorkflowPingOutput {
382280
+ /**
382281
+ * 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.
382282
+ */
382283
+ id: string
382284
+ /**
382285
+ * The name of the event that was published
382286
+ */
382287
+ event: string
382288
+ }
382289
+
382290
+ export interface PlaygroundWorkflowSubjectsListInput {
382291
+ /**
382292
+ * How many subjects to return, 1–100. Defaults to 25.
382293
+ */
382294
+ limit?: number
382295
+ /**
382296
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
382297
+ */
382298
+ cursor?: string
382299
+ /**
382300
+ * 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.
382301
+ */
382302
+ last_activity_after?: string
382303
+ /**
382304
+ * 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.
382305
+ */
382306
+ last_activity_before?: string
382307
+ }
382308
+
382309
+ export interface PlaygroundWorkflowSubjectsListOutput {
382310
+ /**
382311
+ * This page of subjects, most recently active first
382312
+ */
382313
+ items: {
382314
+ /**
382315
+ * 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.
382316
+ */
382317
+ subject_key: string
382318
+ /**
382319
+ * Human-readable name of the subject
382320
+ */
382321
+ display_name: string
382322
+ /**
382323
+ * ISO-8601 instant (UTC) of the subject last activity
382324
+ */
382325
+ last_activity_at: string
382326
+ }[]
382327
+ /**
382328
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
382329
+ */
382330
+ has_more: boolean
382331
+ /**
382332
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
382333
+ */
382334
+ next_cursor: (string | null)
382335
+ }
382336
+
382337
+ export interface PlaygroundWsEchoInput {
382338
+
382339
+ }
382340
+
382341
+ export type PlaygroundWsEchoOutput = unknown;
382342
+
381922
382343
  export interface RealtimeArchiveExportInput {
381923
382344
  /**
381924
382345
  * Only entries with ts <= to_ts (epoch ms)