@lessly/sdk-app 122.4.0 → 122.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.
@@ -389025,6 +389025,332 @@ export interface OrganizationYoutubeInstallInput {
389025
389025
  export interface OrganizationYoutubeInstallOutput {
389026
389026
  url: string;
389027
389027
  }
389028
+ export interface PlaygroundAnalyticsOverviewInput {
389029
+ /**
389030
+ * Max records per entity in recent[]; omit for the endpoint default
389031
+ */
389032
+ limit?: number;
389033
+ }
389034
+ export interface PlaygroundAnalyticsOverviewOutput {
389035
+ ok: boolean;
389036
+ minted: boolean;
389037
+ overview?: unknown;
389038
+ http_status: number;
389039
+ }
389040
+ export interface PlaygroundBillingEntitlementsInput {
389041
+ }
389042
+ export interface PlaygroundBillingEntitlementsOutput {
389043
+ ok: boolean;
389044
+ minted: boolean;
389045
+ http_status: number;
389046
+ entitlements?: unknown;
389047
+ }
389048
+ export interface PlaygroundBillingRecordUsageInput {
389049
+ /**
389050
+ * Quantity of events to record against playground-events (SUM); defaults to 1
389051
+ */
389052
+ value?: number;
389053
+ }
389054
+ export interface PlaygroundBillingRecordUsageOutput {
389055
+ minted: boolean;
389056
+ accepted: (number | null);
389057
+ recorded: boolean;
389058
+ duplicates: (number | null);
389059
+ http_status: number;
389060
+ }
389061
+ export interface PlaygroundClickupCreateTaskInput {
389062
+ /**
389063
+ * Task title; defaults to a fixture label
389064
+ */
389065
+ name?: string;
389066
+ /**
389067
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
389068
+ */
389069
+ listId?: string;
389070
+ }
389071
+ export interface PlaygroundClickupCreateTaskOutput {
389072
+ minted: boolean;
389073
+ task_id: (string | null);
389074
+ list_status: number;
389075
+ vend_status: number;
389076
+ clickup_status: number;
389077
+ installation_count: number;
389078
+ }
389079
+ export interface PlaygroundClickupGetLastWebhookInput {
389080
+ }
389081
+ export type PlaygroundClickupGetLastWebhookOutput = ({
389082
+ payload: string;
389083
+ event_id: string;
389084
+ provider: string;
389085
+ verified: boolean;
389086
+ product_id: string;
389087
+ occurred_at: string;
389088
+ connector_id: string;
389089
+ clickup_event: (string | null);
389090
+ receipt_count: number;
389091
+ } | {
389092
+ found: false;
389093
+ });
389094
+ export interface PlaygroundClickupGetOverviewInput {
389095
+ }
389096
+ export interface PlaygroundClickupGetOverviewOutput {
389097
+ team: ({
389098
+ teamId: string;
389099
+ teamName: string;
389100
+ } | null);
389101
+ lists: PlaygroundClickupGetOverviewOutputItems[];
389102
+ tasks: {
389103
+ id: string;
389104
+ name: string;
389105
+ status: (string | null);
389106
+ }[];
389107
+ minted: boolean;
389108
+ spaces: PlaygroundClickupGetOverviewOutputItems[];
389109
+ list_status: number;
389110
+ vend_status: number;
389111
+ lists_status: number;
389112
+ tasks_status: number;
389113
+ spaces_status: number;
389114
+ folders_status: number;
389115
+ installation_count: number;
389116
+ }
389117
+ export interface PlaygroundClickupGetOverviewOutputItems {
389118
+ id: string;
389119
+ name: string;
389120
+ }
389121
+ export interface PlaygroundEchoPingInput {
389122
+ /**
389123
+ * The text to echo back, 1–1024 characters
389124
+ */
389125
+ message: string;
389126
+ }
389127
+ export interface PlaygroundEchoPingOutput {
389128
+ /**
389129
+ * The message exactly as it was received
389130
+ */
389131
+ message: string;
389132
+ /**
389133
+ * The product the call was resolved to
389134
+ */
389135
+ productId: string;
389136
+ /**
389137
+ * ISO-8601 instant (UTC) at which the call reached the service
389138
+ */
389139
+ receivedAt: string;
389140
+ }
389141
+ export interface PlaygroundGdriveGetLastChangeInput {
389142
+ }
389143
+ export type PlaygroundGdriveGetLastChangeOutput = ({
389144
+ file_id: string;
389145
+ removed: boolean;
389146
+ file_name: (string | null);
389147
+ mime_type: (string | null);
389148
+ product_id: string;
389149
+ occurred_at: string;
389150
+ connector_id: string;
389151
+ resource_state: string;
389152
+ } | {
389153
+ found: false;
389154
+ });
389155
+ export interface PlaygroundGdriveReadFileInput {
389156
+ /**
389157
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
389158
+ */
389159
+ fileId?: string;
389160
+ }
389161
+ export interface PlaygroundGdriveReadFileOutput {
389162
+ minted: boolean;
389163
+ file_id: (string | null);
389164
+ file_name: (string | null);
389165
+ mime_type: (string | null);
389166
+ file_count: number;
389167
+ get_status: number;
389168
+ list_status: number;
389169
+ vend_status: number;
389170
+ content_bytes: (number | null);
389171
+ }
389172
+ export interface PlaygroundGoogleadsReadCustomerInput {
389173
+ }
389174
+ export interface PlaygroundGoogleadsReadCustomerOutput {
389175
+ minted: boolean;
389176
+ vended: boolean;
389177
+ customer_id: (string | null);
389178
+ vend_status: number;
389179
+ result_count: number;
389180
+ search_status: number;
389181
+ login_customer_id: (string | null);
389182
+ }
389183
+ export interface PlaygroundLifecycleGetStateInput {
389184
+ }
389185
+ export interface PlaygroundLifecycleGetStateOutput {
389186
+ blocked: boolean;
389187
+ archived: boolean;
389188
+ productId: string;
389189
+ lastBlockTransition: ({
389190
+ eventId: string;
389191
+ eventName: string;
389192
+ productId: string;
389193
+ occurredAt: string;
389194
+ recordedAt: string;
389195
+ receiptCount: number;
389196
+ organizationId: string;
389197
+ cascadedFromOrg: boolean;
389198
+ } | null);
389199
+ lastArchiveTransition: ({
389200
+ eventId: string;
389201
+ eventName: string;
389202
+ productId: string;
389203
+ occurredAt: string;
389204
+ recordedAt: string;
389205
+ receiptCount: number;
389206
+ organizationId: string;
389207
+ cascadedFromOrg: boolean;
389208
+ } | null);
389209
+ }
389210
+ export interface PlaygroundLifecycleListEventsInput {
389211
+ }
389212
+ export type PlaygroundLifecycleListEventsOutput = {
389213
+ eventId: string;
389214
+ eventName: string;
389215
+ productId: string;
389216
+ occurredAt: string;
389217
+ recordedAt: string;
389218
+ receiptCount: number;
389219
+ organizationId: string;
389220
+ cascadedFromOrg: boolean;
389221
+ }[];
389222
+ export interface PlaygroundWebhookGetLastInput {
389223
+ }
389224
+ export type PlaygroundWebhookGetLastOutput = ({
389225
+ payload?: unknown;
389226
+ event_id: string;
389227
+ provider: string;
389228
+ verified: boolean;
389229
+ product_id: string;
389230
+ occurred_at: string;
389231
+ connector_id: string;
389232
+ delivery_count: number;
389233
+ } | {
389234
+ found: false;
389235
+ });
389236
+ export interface PlaygroundWorkflowEchoInput {
389237
+ /**
389238
+ * The text to store, 1–1024 characters
389239
+ */
389240
+ note: string;
389241
+ /**
389242
+ * Optional labels stored alongside the note, at most 20
389243
+ *
389244
+ * @maxItems 20
389245
+ */
389246
+ 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];
389247
+ }
389248
+ export interface PlaygroundWorkflowEchoOutput {
389249
+ /**
389250
+ * Identifier of the stored echo
389251
+ */
389252
+ id: string;
389253
+ /**
389254
+ * The note exactly as it was received
389255
+ */
389256
+ note: string;
389257
+ /**
389258
+ * The tags exactly as they were received
389259
+ */
389260
+ tags: string[];
389261
+ /**
389262
+ * 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.
389263
+ */
389264
+ echo_id: string;
389265
+ /**
389266
+ * ISO-8601 instant (UTC) at which the echo was stored
389267
+ */
389268
+ received_at: string;
389269
+ }
389270
+ export interface PlaygroundWorkflowEchoListInput {
389271
+ }
389272
+ export type PlaygroundWorkflowEchoListOutput = {
389273
+ /**
389274
+ * Identifier of the stored echo
389275
+ */
389276
+ id: string;
389277
+ /**
389278
+ * The note exactly as it was received
389279
+ */
389280
+ note: string;
389281
+ /**
389282
+ * The tags exactly as they were received
389283
+ */
389284
+ tags: string[];
389285
+ /**
389286
+ * ISO-8601 instant (UTC) at which the echo was stored
389287
+ */
389288
+ received_at: string;
389289
+ }[];
389290
+ export interface PlaygroundWorkflowPingInput {
389291
+ /**
389292
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
389293
+ */
389294
+ kind?: string;
389295
+ }
389296
+ export interface PlaygroundWorkflowPingOutput {
389297
+ /**
389298
+ * 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.
389299
+ */
389300
+ id: string;
389301
+ /**
389302
+ * The name of the event that was published
389303
+ */
389304
+ event: string;
389305
+ }
389306
+ export interface PlaygroundWorkflowSubjectsListInput {
389307
+ /**
389308
+ * How many subjects to return, 1–100. Defaults to 25.
389309
+ */
389310
+ limit?: number;
389311
+ /**
389312
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
389313
+ */
389314
+ cursor?: string;
389315
+ /**
389316
+ * 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.
389317
+ */
389318
+ last_activity_after?: string;
389319
+ /**
389320
+ * 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.
389321
+ */
389322
+ last_activity_before?: string;
389323
+ }
389324
+ export interface PlaygroundWorkflowSubjectsListOutput {
389325
+ /**
389326
+ * This page of subjects, most recently active first
389327
+ */
389328
+ items: {
389329
+ /**
389330
+ * 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.
389331
+ */
389332
+ subject_key: string;
389333
+ /**
389334
+ * Human-readable name of the subject
389335
+ */
389336
+ display_name: string;
389337
+ /**
389338
+ * ISO-8601 instant (UTC) of the subject last activity
389339
+ */
389340
+ last_activity_at: string;
389341
+ }[];
389342
+ /**
389343
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
389344
+ */
389345
+ has_more: boolean;
389346
+ /**
389347
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
389348
+ */
389349
+ next_cursor: (string | null);
389350
+ }
389351
+ export interface PlaygroundWsEchoInput {
389352
+ }
389353
+ export type PlaygroundWsEchoOutput = unknown;
389028
389354
  export interface RealtimeArchiveExportInput {
389029
389355
  /**
389030
389356
  * Only entries with ts <= to_ts (epoch ms)
@@ -419555,11 +419881,11 @@ export interface UsersWebhooksCreateInput {
419555
419881
  */
419556
419882
  url: string;
419557
419883
  /**
419558
- * Which events to deliver. `user.created`, `user.updated` and `user.deleted` mirror the directory; `session.revoked` fires on sign-out, ban, erase and refresh-token reuse.
419884
+ * Which events to deliver. `user.created`, `user.updated` and `user.deleted` mirror the directory; `session.revoked` fires on sign-out, ban, erase and refresh-token reuse. Opt in to `directory.changed` for every directory-state event (including ban, unban, merge, convert and erase); its data is exactly {userId}, null for one import-run invalidation. Re-read through the management API.
419559
419885
  *
419560
419886
  * @minItems 1
419561
419887
  */
419562
- events: [("user.created" | "user.updated" | "user.deleted" | "session.revoked"), ...(("user.created" | "user.updated" | "user.deleted" | "session.revoked"))[]];
419888
+ events: [("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed"), ...(("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed"))[]];
419563
419889
  /**
419564
419890
  * A label only humans read — which system this endpoint feeds.
419565
419891
  */
@@ -419569,7 +419895,7 @@ export interface UsersWebhooksCreateOutput {
419569
419895
  id: string;
419570
419896
  url: string;
419571
419897
  active: boolean;
419572
- events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked")[];
419898
+ events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed")[];
419573
419899
  secret: string;
419574
419900
  createdAt: string;
419575
419901
  updatedAt: string;
@@ -419600,7 +419926,7 @@ export interface UsersWebhooksDeliveriesListOutput {
419600
419926
  eventId: string;
419601
419927
  attempts: number;
419602
419928
  createdAt: string;
419603
- eventType: ("user.created" | "user.updated" | "user.deleted" | "session.revoked");
419929
+ eventType: ("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed");
419604
419930
  lastError: (string | null);
419605
419931
  webhookId: string;
419606
419932
  lastAttemptAt: (string | null);
@@ -419617,7 +419943,7 @@ export interface UsersWebhooksGetOutput {
419617
419943
  id: string;
419618
419944
  url: string;
419619
419945
  active: boolean;
419620
- events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked")[];
419946
+ events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed")[];
419621
419947
  createdAt: string;
419622
419948
  updatedAt: string;
419623
419949
  description: (string | null);
@@ -419630,7 +419956,7 @@ export interface UsersWebhooksListOutput {
419630
419956
  id: string;
419631
419957
  url: string;
419632
419958
  active: boolean;
419633
- events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked")[];
419959
+ events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed")[];
419634
419960
  createdAt: string;
419635
419961
  updatedAt: string;
419636
419962
  description: (string | null);
@@ -419647,7 +419973,7 @@ export interface UsersWebhooksRotateSecretOutput {
419647
419973
  id: string;
419648
419974
  url: string;
419649
419975
  active: boolean;
419650
- events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked")[];
419976
+ events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed")[];
419651
419977
  secret: string;
419652
419978
  createdAt: string;
419653
419979
  updatedAt: string;
@@ -419668,18 +419994,18 @@ export interface UsersWebhooksUpdateInput {
419668
419994
  */
419669
419995
  active?: boolean;
419670
419996
  /**
419671
- * Which events to deliver. `user.created`, `user.updated` and `user.deleted` mirror the directory; `session.revoked` fires on sign-out, ban, erase and refresh-token reuse.
419997
+ * Which events to deliver. `user.created`, `user.updated` and `user.deleted` mirror the directory; `session.revoked` fires on sign-out, ban, erase and refresh-token reuse. Opt in to `directory.changed` for every directory-state event (including ban, unban, merge, convert and erase); its data is exactly {userId}, null for one import-run invalidation. Re-read through the management API.
419672
419998
  *
419673
419999
  * @minItems 1
419674
420000
  */
419675
- events?: [("user.created" | "user.updated" | "user.deleted" | "session.revoked"), ...(("user.created" | "user.updated" | "user.deleted" | "session.revoked"))[]];
420001
+ events?: [("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed"), ...(("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed"))[]];
419676
420002
  description?: (string | null);
419677
420003
  }
419678
420004
  export interface UsersWebhooksUpdateOutput {
419679
420005
  id: string;
419680
420006
  url: string;
419681
420007
  active: boolean;
419682
- events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked")[];
420008
+ events: ("user.created" | "user.updated" | "user.deleted" | "session.revoked" | "directory.changed")[];
419683
420009
  createdAt: string;
419684
420010
  updatedAt: string;
419685
420011
  description: (string | null);