@lessly/sdk-app 97.3.0 → 97.5.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
+ });
@@ -98996,6 +98996,378 @@ export interface OrganizationYoutubeInstallOutput {
98996
98996
  url: string
98997
98997
  }
98998
98998
 
98999
+ export interface PlaygroundAnalyticsOverviewInput {
99000
+ /**
99001
+ * Max records per entity in recent[]; omit for the endpoint default
99002
+ */
99003
+ limit?: number
99004
+ }
99005
+
99006
+ export interface PlaygroundAnalyticsOverviewOutput {
99007
+ ok: boolean
99008
+ minted: boolean
99009
+ overview?: unknown
99010
+ http_status: number
99011
+ }
99012
+
99013
+ export interface PlaygroundBillingEntitlementsInput {
99014
+
99015
+ }
99016
+
99017
+ export interface PlaygroundBillingEntitlementsOutput {
99018
+ ok: boolean
99019
+ minted: boolean
99020
+ http_status: number
99021
+ entitlements?: unknown
99022
+ }
99023
+
99024
+ export interface PlaygroundBillingRecordUsageInput {
99025
+ /**
99026
+ * Quantity of events to record against playground-events (SUM); defaults to 1
99027
+ */
99028
+ value?: number
99029
+ }
99030
+
99031
+ export interface PlaygroundBillingRecordUsageOutput {
99032
+ minted: boolean
99033
+ accepted: (number | null)
99034
+ recorded: boolean
99035
+ duplicates: (number | null)
99036
+ http_status: number
99037
+ }
99038
+
99039
+ export interface PlaygroundClickupCreateTaskInput {
99040
+ /**
99041
+ * Task title; defaults to a fixture label
99042
+ */
99043
+ name?: string
99044
+ /**
99045
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
99046
+ */
99047
+ listId?: string
99048
+ }
99049
+
99050
+ export interface PlaygroundClickupCreateTaskOutput {
99051
+ minted: boolean
99052
+ task_id: (string | null)
99053
+ list_status: number
99054
+ vend_status: number
99055
+ clickup_status: number
99056
+ installation_count: number
99057
+ }
99058
+
99059
+ export interface PlaygroundClickupGetLastWebhookInput {
99060
+
99061
+ }
99062
+
99063
+ export type PlaygroundClickupGetLastWebhookOutput = ({
99064
+ payload: string
99065
+ event_id: string
99066
+ provider: string
99067
+ verified: boolean
99068
+ product_id: string
99069
+ occurred_at: string
99070
+ connector_id: string
99071
+ clickup_event: (string | null)
99072
+ receipt_count: number
99073
+ } | {
99074
+ found: false
99075
+ })
99076
+
99077
+ export interface PlaygroundClickupGetOverviewInput {
99078
+
99079
+ }
99080
+
99081
+ export interface PlaygroundClickupGetOverviewOutput {
99082
+ team: ({
99083
+ teamId: string
99084
+ teamName: string
99085
+ } | null)
99086
+ lists: PlaygroundClickupGetOverviewOutputItems[]
99087
+ tasks: {
99088
+ id: string
99089
+ name: string
99090
+ status: (string | null)
99091
+ }[]
99092
+ minted: boolean
99093
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
99094
+ list_status: number
99095
+ vend_status: number
99096
+ lists_status: number
99097
+ tasks_status: number
99098
+ spaces_status: number
99099
+ folders_status: number
99100
+ installation_count: number
99101
+ }
99102
+ export interface PlaygroundClickupGetOverviewOutputItems {
99103
+ id: string
99104
+ name: string
99105
+ }
99106
+
99107
+ export interface PlaygroundEchoPingInput {
99108
+ /**
99109
+ * The text to echo back, 1–1024 characters
99110
+ */
99111
+ message: string
99112
+ }
99113
+
99114
+ export interface PlaygroundEchoPingOutput {
99115
+ /**
99116
+ * The message exactly as it was received
99117
+ */
99118
+ message: string
99119
+ /**
99120
+ * The product the call was resolved to
99121
+ */
99122
+ productId: string
99123
+ /**
99124
+ * ISO-8601 instant (UTC) at which the call reached the service
99125
+ */
99126
+ receivedAt: string
99127
+ }
99128
+
99129
+ export interface PlaygroundGdriveGetLastChangeInput {
99130
+
99131
+ }
99132
+
99133
+ export type PlaygroundGdriveGetLastChangeOutput = ({
99134
+ file_id: string
99135
+ removed: boolean
99136
+ file_name: (string | null)
99137
+ mime_type: (string | null)
99138
+ product_id: string
99139
+ occurred_at: string
99140
+ connector_id: string
99141
+ resource_state: string
99142
+ } | {
99143
+ found: false
99144
+ })
99145
+
99146
+ export interface PlaygroundGdriveReadFileInput {
99147
+ /**
99148
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
99149
+ */
99150
+ fileId?: string
99151
+ }
99152
+
99153
+ export interface PlaygroundGdriveReadFileOutput {
99154
+ minted: boolean
99155
+ file_id: (string | null)
99156
+ file_name: (string | null)
99157
+ mime_type: (string | null)
99158
+ file_count: number
99159
+ get_status: number
99160
+ list_status: number
99161
+ vend_status: number
99162
+ content_bytes: (number | null)
99163
+ }
99164
+
99165
+ export interface PlaygroundGoogleadsReadCustomerInput {
99166
+
99167
+ }
99168
+
99169
+ export interface PlaygroundGoogleadsReadCustomerOutput {
99170
+ minted: boolean
99171
+ vended: boolean
99172
+ customer_id: (string | null)
99173
+ vend_status: number
99174
+ result_count: number
99175
+ search_status: number
99176
+ login_customer_id: (string | null)
99177
+ }
99178
+
99179
+ export interface PlaygroundLifecycleGetStateInput {
99180
+
99181
+ }
99182
+
99183
+ export interface PlaygroundLifecycleGetStateOutput {
99184
+ blocked: boolean
99185
+ archived: boolean
99186
+ productId: string
99187
+ lastBlockTransition: ({
99188
+ eventId: string
99189
+ eventName: string
99190
+ productId: string
99191
+ occurredAt: string
99192
+ recordedAt: string
99193
+ receiptCount: number
99194
+ organizationId: string
99195
+ cascadedFromOrg: boolean
99196
+ } | null)
99197
+ lastArchiveTransition: ({
99198
+ eventId: string
99199
+ eventName: string
99200
+ productId: string
99201
+ occurredAt: string
99202
+ recordedAt: string
99203
+ receiptCount: number
99204
+ organizationId: string
99205
+ cascadedFromOrg: boolean
99206
+ } | null)
99207
+ }
99208
+
99209
+ export interface PlaygroundLifecycleListEventsInput {
99210
+
99211
+ }
99212
+
99213
+ export type PlaygroundLifecycleListEventsOutput = {
99214
+ eventId: string
99215
+ eventName: string
99216
+ productId: string
99217
+ occurredAt: string
99218
+ recordedAt: string
99219
+ receiptCount: number
99220
+ organizationId: string
99221
+ cascadedFromOrg: boolean
99222
+ }[]
99223
+
99224
+ export interface PlaygroundWebhookGetLastInput {
99225
+
99226
+ }
99227
+
99228
+ export type PlaygroundWebhookGetLastOutput = ({
99229
+ payload?: unknown
99230
+ event_id: string
99231
+ provider: string
99232
+ verified: boolean
99233
+ product_id: string
99234
+ occurred_at: string
99235
+ connector_id: string
99236
+ delivery_count: number
99237
+ } | {
99238
+ found: false
99239
+ })
99240
+
99241
+ export interface PlaygroundWorkflowEchoInput {
99242
+ /**
99243
+ * The text to store, 1–1024 characters
99244
+ */
99245
+ note: string
99246
+ /**
99247
+ * Optional labels stored alongside the note, at most 20
99248
+ *
99249
+ * @maxItems 20
99250
+ */
99251
+ 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]
99252
+ }
99253
+
99254
+ export interface PlaygroundWorkflowEchoOutput {
99255
+ /**
99256
+ * Identifier of the stored echo
99257
+ */
99258
+ id: string
99259
+ /**
99260
+ * The note exactly as it was received
99261
+ */
99262
+ note: string
99263
+ /**
99264
+ * The tags exactly as they were received
99265
+ */
99266
+ tags: string[]
99267
+ /**
99268
+ * 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.
99269
+ */
99270
+ echo_id: string
99271
+ /**
99272
+ * ISO-8601 instant (UTC) at which the echo was stored
99273
+ */
99274
+ received_at: string
99275
+ }
99276
+
99277
+ export interface PlaygroundWorkflowEchoListInput {
99278
+
99279
+ }
99280
+
99281
+ export type PlaygroundWorkflowEchoListOutput = {
99282
+ /**
99283
+ * Identifier of the stored echo
99284
+ */
99285
+ id: string
99286
+ /**
99287
+ * The note exactly as it was received
99288
+ */
99289
+ note: string
99290
+ /**
99291
+ * The tags exactly as they were received
99292
+ */
99293
+ tags: string[]
99294
+ /**
99295
+ * ISO-8601 instant (UTC) at which the echo was stored
99296
+ */
99297
+ received_at: string
99298
+ }[]
99299
+
99300
+ export interface PlaygroundWorkflowPingInput {
99301
+ /**
99302
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
99303
+ */
99304
+ kind?: string
99305
+ }
99306
+
99307
+ export interface PlaygroundWorkflowPingOutput {
99308
+ /**
99309
+ * 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.
99310
+ */
99311
+ id: string
99312
+ /**
99313
+ * The name of the event that was published
99314
+ */
99315
+ event: string
99316
+ }
99317
+
99318
+ export interface PlaygroundWorkflowSubjectsListInput {
99319
+ /**
99320
+ * How many subjects to return, 1–100. Defaults to 25.
99321
+ */
99322
+ limit?: number
99323
+ /**
99324
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
99325
+ */
99326
+ cursor?: string
99327
+ /**
99328
+ * 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.
99329
+ */
99330
+ last_activity_after?: string
99331
+ /**
99332
+ * 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.
99333
+ */
99334
+ last_activity_before?: string
99335
+ }
99336
+
99337
+ export interface PlaygroundWorkflowSubjectsListOutput {
99338
+ /**
99339
+ * This page of subjects, most recently active first
99340
+ */
99341
+ items: {
99342
+ /**
99343
+ * 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.
99344
+ */
99345
+ subject_key: string
99346
+ /**
99347
+ * Human-readable name of the subject
99348
+ */
99349
+ display_name: string
99350
+ /**
99351
+ * ISO-8601 instant (UTC) of the subject last activity
99352
+ */
99353
+ last_activity_at: string
99354
+ }[]
99355
+ /**
99356
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
99357
+ */
99358
+ has_more: boolean
99359
+ /**
99360
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
99361
+ */
99362
+ next_cursor: (string | null)
99363
+ }
99364
+
99365
+ export interface PlaygroundWsEchoInput {
99366
+
99367
+ }
99368
+
99369
+ export type PlaygroundWsEchoOutput = unknown;
99370
+
98999
99371
  export interface RealtimeArchiveExportInput {
99000
99372
  /**
99001
99373
  * Only entries with ts <= to_ts (epoch ms)