@lepsto/sdk-app 89.3.0 → 89.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +33 -1
  2. package/dist/_types/gen/client.gen.d.ts +11 -38
  3. package/dist/_types/gen/mail/index.d.ts +1 -1
  4. package/dist/_types/gen/mail/queryOptions.gen.d.ts +25 -1
  5. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  6. package/dist/_types/gen/types.gen.d.ts +434 -331
  7. package/dist/index.cjs +108 -227
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +11295 -22
  10. package/dist/index.js.map +1 -1
  11. package/dist/mail/index.cjs +30 -0
  12. package/dist/mail/index.cjs.map +1 -1
  13. package/dist/mail/index.js +25 -1
  14. package/dist/mail/index.js.map +1 -1
  15. package/package.json +2 -12
  16. package/src/gen/bindings.gen.ts +97 -216
  17. package/src/gen/client.gen.ts +22 -71
  18. package/src/gen/mail/index.ts +1 -1
  19. package/src/gen/mail/queryOptions.gen.ts +38 -0
  20. package/src/gen/manifest.gen.ts +13 -21
  21. package/src/gen/types.gen.ts +460 -392
  22. package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
  23. package/dist/_types/gen/playground/index.d.ts +0 -3
  24. package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
  25. package/dist/chunk-IWBH5QNX.js +0 -11406
  26. package/dist/chunk-IWBH5QNX.js.map +0 -1
  27. package/dist/playground/index.cjs +0 -106
  28. package/dist/playground/index.cjs.map +0 -1
  29. package/dist/playground/index.d.cts +0 -1
  30. package/dist/playground/index.d.ts +0 -1
  31. package/dist/playground/index.js +0 -78
  32. package/dist/playground/index.js.map +0 -1
  33. package/src/gen/playground/connect.gen.ts +0 -9
  34. package/src/gen/playground/index.ts +0 -4
  35. package/src/gen/playground/queryOptions.gen.ts +0 -119
@@ -77301,6 +77301,81 @@ address: string
77301
77301
  removed: boolean
77302
77302
  }
77303
77303
 
77304
+ export interface MailTemplateArchiveInput {
77305
+ /**
77306
+ * Template id to archive
77307
+ */
77308
+ id: string
77309
+ }
77310
+
77311
+ export interface MailTemplateArchiveOutput {
77312
+ /**
77313
+ * Template id
77314
+ */
77315
+ id: string
77316
+ /**
77317
+ * HTML body; may contain {{ variable }} placeholders
77318
+ */
77319
+ html: string
77320
+ /**
77321
+ * Human label for the template
77322
+ */
77323
+ name: string
77324
+ /**
77325
+ * Plaintext body; null when none was supplied
77326
+ */
77327
+ text: (string | null)
77328
+ /**
77329
+ * Lifecycle status: published once a revision has gone live
77330
+ */
77331
+ status: ("draft" | "published")
77332
+ /**
77333
+ * Email subject; may contain {{ variable }} placeholders
77334
+ */
77335
+ subject: string
77336
+ /**
77337
+ * When the template was created (ISO 8601 UTC)
77338
+ */
77339
+ createdAt: string
77340
+ /**
77341
+ * When the template was last modified (ISO 8601 UTC)
77342
+ */
77343
+ updatedAt: string
77344
+ /**
77345
+ * Declared variables of this template (at most 20)
77346
+ */
77347
+ variables: {
77348
+ /**
77349
+ * Placeholder identifier used as {{ name }}
77350
+ */
77351
+ name: string
77352
+ /**
77353
+ * Declared type (metadata; rendered as string in v1)
77354
+ */
77355
+ type: ("string" | "number" | "boolean")
77356
+ /**
77357
+ * Value used when none is supplied
77358
+ */
77359
+ fallback?: string
77360
+ /**
77361
+ * If true, an absent value renders as empty string
77362
+ */
77363
+ optional: boolean
77364
+ }[]
77365
+ /**
77366
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
77367
+ */
77368
+ archivedAt: (string | null)
77369
+ /**
77370
+ * Revision number of the open, unpublished draft; null when there is none
77371
+ */
77372
+ draftRevision: (number | null)
77373
+ /**
77374
+ * Revision number a send renders; null until the template is first published
77375
+ */
77376
+ currentRevision: (number | null)
77377
+ }
77378
+
77304
77379
  export interface MailTemplateCreateInput {
77305
77380
  /**
77306
77381
  * HTML body; may contain {{ variable }} placeholders
@@ -80914,7 +80989,7 @@ name: string
80914
80989
  */
80915
80990
  text: (string | null)
80916
80991
  /**
80917
- * Lifecycle status: a draft is editable, a published template is not
80992
+ * Lifecycle status: published once a revision has gone live
80918
80993
  */
80919
80994
  status: ("draft" | "published")
80920
80995
  /**
@@ -80950,6 +81025,18 @@ fallback?: string
80950
81025
  */
80951
81026
  optional: boolean
80952
81027
  }[]
81028
+ /**
81029
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
81030
+ */
81031
+ archivedAt: (string | null)
81032
+ /**
81033
+ * Revision number of the open, unpublished draft; null when there is none
81034
+ */
81035
+ draftRevision: (number | null)
81036
+ /**
81037
+ * Revision number a send renders; null until the template is first published
81038
+ */
81039
+ currentRevision: (number | null)
80953
81040
  }
80954
81041
 
80955
81042
  export interface MailTemplateDeleteInput {
@@ -80966,6 +81053,24 @@ export interface MailTemplateDeleteOutput {
80966
81053
  deleted: boolean
80967
81054
  }
80968
81055
 
81056
+ export interface MailTemplateDraftDiscardInput {
81057
+ /**
81058
+ * Template id whose open draft is thrown away
81059
+ */
81060
+ id: string
81061
+ }
81062
+
81063
+ export interface MailTemplateDraftDiscardOutput {
81064
+ /**
81065
+ * Revision number that was discarded
81066
+ */
81067
+ revision: number
81068
+ /**
81069
+ * True once the open draft is gone
81070
+ */
81071
+ discarded: boolean
81072
+ }
81073
+
80969
81074
  export interface MailTemplateGetInput {
80970
81075
  /**
80971
81076
  * Template id
@@ -81004,7 +81109,7 @@ email_count: number
81004
81109
  last_sent_at: (string | null)
81005
81110
  }
81006
81111
  /**
81007
- * Lifecycle status: a draft is editable, a published template is not
81112
+ * Lifecycle status: published once a revision has gone live
81008
81113
  */
81009
81114
  status: ("draft" | "published")
81010
81115
  /**
@@ -81040,47 +81145,354 @@ fallback?: string
81040
81145
  */
81041
81146
  optional: boolean
81042
81147
  }[]
81148
+ /**
81149
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
81150
+ */
81151
+ archivedAt: (string | null)
81152
+ /**
81153
+ * Revision number of the open, unpublished draft; null when there is none
81154
+ */
81155
+ draftRevision: (number | null)
81156
+ /**
81157
+ * Revision number a send renders; null until the template is first published
81158
+ */
81159
+ currentRevision: (number | null)
81043
81160
  }
81044
81161
 
81045
81162
  export interface MailTemplateListInput {
81163
+ /**
81164
+ * Include archived templates, which are hidden by default. Archiving never stops a send: an archived template is still sendable by its id
81165
+ */
81166
+ include_archived?: boolean
81167
+ }
81046
81168
 
81169
+ export type MailTemplateListOutput = {
81170
+ /**
81171
+ * Template id
81172
+ */
81173
+ id: string
81174
+ /**
81175
+ * HTML body; may contain {{ variable }} placeholders
81176
+ */
81177
+ html: string
81178
+ /**
81179
+ * Human label for the template
81180
+ */
81181
+ name: string
81182
+ /**
81183
+ * Plaintext body; null when none was supplied
81184
+ */
81185
+ text: (string | null)
81186
+ /**
81187
+ * Lifecycle status: published once a revision has gone live
81188
+ */
81189
+ status: ("draft" | "published")
81190
+ /**
81191
+ * Email subject; may contain {{ variable }} placeholders
81192
+ */
81193
+ subject: string
81194
+ /**
81195
+ * When the template was created (ISO 8601 UTC)
81196
+ */
81197
+ createdAt: string
81198
+ /**
81199
+ * When the template was last modified (ISO 8601 UTC)
81200
+ */
81201
+ updatedAt: string
81202
+ /**
81203
+ * Declared variables of this template (at most 20)
81204
+ */
81205
+ variables: {
81206
+ /**
81207
+ * Placeholder identifier used as {{ name }}
81208
+ */
81209
+ name: string
81210
+ /**
81211
+ * Declared type (metadata; rendered as string in v1)
81212
+ */
81213
+ type: ("string" | "number" | "boolean")
81214
+ /**
81215
+ * Value used when none is supplied
81216
+ */
81217
+ fallback?: string
81218
+ /**
81219
+ * If true, an absent value renders as empty string
81220
+ */
81221
+ optional: boolean
81222
+ }[]
81223
+ /**
81224
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
81225
+ */
81226
+ archivedAt: (string | null)
81227
+ /**
81228
+ * Revision number of the open, unpublished draft; null when there is none
81229
+ */
81230
+ draftRevision: (number | null)
81231
+ /**
81232
+ * Revision number a send renders; null until the template is first published
81233
+ */
81234
+ currentRevision: (number | null)
81235
+ }[]
81236
+
81237
+ export interface MailTemplatePublishInput {
81238
+ /**
81239
+ * Template id to publish
81240
+ */
81241
+ id: string
81242
+ }
81243
+
81244
+ export interface MailTemplatePublishOutput {
81245
+ /**
81246
+ * Template id
81247
+ */
81248
+ id: string
81249
+ /**
81250
+ * HTML body; may contain {{ variable }} placeholders
81251
+ */
81252
+ html: string
81253
+ /**
81254
+ * Human label for the template
81255
+ */
81256
+ name: string
81257
+ /**
81258
+ * Plaintext body; null when none was supplied
81259
+ */
81260
+ text: (string | null)
81261
+ /**
81262
+ * Lifecycle status: published once a revision has gone live
81263
+ */
81264
+ status: ("draft" | "published")
81265
+ /**
81266
+ * Email subject; may contain {{ variable }} placeholders
81267
+ */
81268
+ subject: string
81269
+ /**
81270
+ * When the template was created (ISO 8601 UTC)
81271
+ */
81272
+ createdAt: string
81273
+ /**
81274
+ * When the template was last modified (ISO 8601 UTC)
81275
+ */
81276
+ updatedAt: string
81277
+ /**
81278
+ * Declared variables of this template (at most 20)
81279
+ */
81280
+ variables: {
81281
+ /**
81282
+ * Placeholder identifier used as {{ name }}
81283
+ */
81284
+ name: string
81285
+ /**
81286
+ * Declared type (metadata; rendered as string in v1)
81287
+ */
81288
+ type: ("string" | "number" | "boolean")
81289
+ /**
81290
+ * Value used when none is supplied
81291
+ */
81292
+ fallback?: string
81293
+ /**
81294
+ * If true, an absent value renders as empty string
81295
+ */
81296
+ optional: boolean
81297
+ }[]
81298
+ /**
81299
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
81300
+ */
81301
+ archivedAt: (string | null)
81302
+ /**
81303
+ * Revision number of the open, unpublished draft; null when there is none
81304
+ */
81305
+ draftRevision: (number | null)
81306
+ /**
81307
+ * Revision number a send renders; null until the template is first published
81308
+ */
81309
+ currentRevision: (number | null)
81310
+ }
81311
+
81312
+ export interface MailTemplateRestoreInput {
81313
+ /**
81314
+ * Template id
81315
+ */
81316
+ id: string
81317
+ /**
81318
+ * Revision number to make live again
81319
+ */
81320
+ revision: number
81321
+ }
81322
+
81323
+ export interface MailTemplateRestoreOutput {
81324
+ /**
81325
+ * Template id
81326
+ */
81327
+ id: string
81328
+ /**
81329
+ * HTML body; may contain {{ variable }} placeholders
81330
+ */
81331
+ html: string
81332
+ /**
81333
+ * Human label for the template
81334
+ */
81335
+ name: string
81336
+ /**
81337
+ * Plaintext body; null when none was supplied
81338
+ */
81339
+ text: (string | null)
81340
+ /**
81341
+ * Lifecycle status: published once a revision has gone live
81342
+ */
81343
+ status: ("draft" | "published")
81344
+ /**
81345
+ * Email subject; may contain {{ variable }} placeholders
81346
+ */
81347
+ subject: string
81348
+ /**
81349
+ * When the template was created (ISO 8601 UTC)
81350
+ */
81351
+ createdAt: string
81352
+ /**
81353
+ * When the template was last modified (ISO 8601 UTC)
81354
+ */
81355
+ updatedAt: string
81356
+ /**
81357
+ * Declared variables of this template (at most 20)
81358
+ */
81359
+ variables: {
81360
+ /**
81361
+ * Placeholder identifier used as {{ name }}
81362
+ */
81363
+ name: string
81364
+ /**
81365
+ * Declared type (metadata; rendered as string in v1)
81366
+ */
81367
+ type: ("string" | "number" | "boolean")
81368
+ /**
81369
+ * Value used when none is supplied
81370
+ */
81371
+ fallback?: string
81372
+ /**
81373
+ * If true, an absent value renders as empty string
81374
+ */
81375
+ optional: boolean
81376
+ }[]
81377
+ /**
81378
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
81379
+ */
81380
+ archivedAt: (string | null)
81381
+ /**
81382
+ * Revision number of the open, unpublished draft; null when there is none
81383
+ */
81384
+ draftRevision: (number | null)
81385
+ /**
81386
+ * Revision number a send renders; null until the template is first published
81387
+ */
81388
+ currentRevision: (number | null)
81389
+ }
81390
+
81391
+ export interface MailTemplateRevisionGetInput {
81392
+ /**
81393
+ * Template id
81394
+ */
81395
+ id: string
81396
+ /**
81397
+ * Revision number, counting from 1 for this template
81398
+ */
81399
+ revision: number
81400
+ }
81401
+
81402
+ export interface MailTemplateRevisionGetOutput {
81403
+ /**
81404
+ * HTML body as authored in this revision
81405
+ */
81406
+ html: string
81407
+ /**
81408
+ * True for the revision a send currently renders
81409
+ */
81410
+ live: boolean
81411
+ /**
81412
+ * Plaintext body as authored in this revision; null when none was supplied
81413
+ */
81414
+ text: (string | null)
81415
+ /**
81416
+ * Subject as authored in this revision
81417
+ */
81418
+ subject: string
81419
+ /**
81420
+ * Revision number, counting from 1 for this template
81421
+ */
81422
+ revision: number
81423
+ /**
81424
+ * When this revision was authored (ISO 8601 UTC)
81425
+ */
81426
+ createdAt: string
81427
+ /**
81428
+ * Identity that authored this revision; null when unknown
81429
+ */
81430
+ createdBy: (string | null)
81431
+ /**
81432
+ * Variables declared by this revision (at most 20)
81433
+ */
81434
+ variables: {
81435
+ /**
81436
+ * Placeholder identifier used as {{ name }}
81437
+ */
81438
+ name: string
81439
+ /**
81440
+ * Declared type (metadata; rendered as string in v1)
81441
+ */
81442
+ type: ("string" | "number" | "boolean")
81443
+ /**
81444
+ * Value used when none is supplied
81445
+ */
81446
+ fallback?: string
81447
+ /**
81448
+ * If true, an absent value renders as empty string
81449
+ */
81450
+ optional: boolean
81451
+ }[]
81452
+ /**
81453
+ * When this revision first went live (ISO 8601 UTC); null for the open draft
81454
+ */
81455
+ publishedAt: (string | null)
81047
81456
  }
81048
81457
 
81049
- export type MailTemplateListOutput = {
81458
+ export interface MailTemplateRevisionListInput {
81050
81459
  /**
81051
81460
  * Template id
81052
81461
  */
81053
81462
  id: string
81463
+ }
81464
+
81465
+ export type MailTemplateRevisionListOutput = {
81054
81466
  /**
81055
- * HTML body; may contain {{ variable }} placeholders
81467
+ * HTML body as authored in this revision
81056
81468
  */
81057
81469
  html: string
81058
81470
  /**
81059
- * Human label for the template
81471
+ * True for the revision a send currently renders
81060
81472
  */
81061
- name: string
81473
+ live: boolean
81062
81474
  /**
81063
- * Plaintext body; null when none was supplied
81475
+ * Plaintext body as authored in this revision; null when none was supplied
81064
81476
  */
81065
81477
  text: (string | null)
81066
81478
  /**
81067
- * Lifecycle status: a draft is editable, a published template is not
81479
+ * Subject as authored in this revision
81068
81480
  */
81069
- status: ("draft" | "published")
81481
+ subject: string
81070
81482
  /**
81071
- * Email subject; may contain {{ variable }} placeholders
81483
+ * Revision number, counting from 1 for this template
81072
81484
  */
81073
- subject: string
81485
+ revision: number
81074
81486
  /**
81075
- * When the template was created (ISO 8601 UTC)
81487
+ * When this revision was authored (ISO 8601 UTC)
81076
81488
  */
81077
81489
  createdAt: string
81078
81490
  /**
81079
- * When the template was last modified (ISO 8601 UTC)
81491
+ * Identity that authored this revision; null when unknown
81080
81492
  */
81081
- updatedAt: string
81493
+ createdBy: (string | null)
81082
81494
  /**
81083
- * Declared variables of this template (at most 20)
81495
+ * Variables declared by this revision (at most 20)
81084
81496
  */
81085
81497
  variables: {
81086
81498
  /**
@@ -81100,16 +81512,20 @@ fallback?: string
81100
81512
  */
81101
81513
  optional: boolean
81102
81514
  }[]
81515
+ /**
81516
+ * When this revision first went live (ISO 8601 UTC); null for the open draft
81517
+ */
81518
+ publishedAt: (string | null)
81103
81519
  }[]
81104
81520
 
81105
- export interface MailTemplatePublishInput {
81521
+ export interface MailTemplateUnarchiveInput {
81106
81522
  /**
81107
- * Template id to publish
81523
+ * Template id to unarchive
81108
81524
  */
81109
81525
  id: string
81110
81526
  }
81111
81527
 
81112
- export interface MailTemplatePublishOutput {
81528
+ export interface MailTemplateUnarchiveOutput {
81113
81529
  /**
81114
81530
  * Template id
81115
81531
  */
@@ -81127,7 +81543,7 @@ name: string
81127
81543
  */
81128
81544
  text: (string | null)
81129
81545
  /**
81130
- * Lifecycle status: a draft is editable, a published template is not
81546
+ * Lifecycle status: published once a revision has gone live
81131
81547
  */
81132
81548
  status: ("draft" | "published")
81133
81549
  /**
@@ -81163,6 +81579,18 @@ fallback?: string
81163
81579
  */
81164
81580
  optional: boolean
81165
81581
  }[]
81582
+ /**
81583
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
81584
+ */
81585
+ archivedAt: (string | null)
81586
+ /**
81587
+ * Revision number of the open, unpublished draft; null when there is none
81588
+ */
81589
+ draftRevision: (number | null)
81590
+ /**
81591
+ * Revision number a send renders; null until the template is first published
81592
+ */
81593
+ currentRevision: (number | null)
81166
81594
  }
81167
81595
 
81168
81596
  export interface MailTemplateUpdateInput {
@@ -84782,7 +85210,7 @@ name: string
84782
85210
  */
84783
85211
  text: (string | null)
84784
85212
  /**
84785
- * Lifecycle status: a draft is editable, a published template is not
85213
+ * Lifecycle status: published once a revision has gone live
84786
85214
  */
84787
85215
  status: ("draft" | "published")
84788
85216
  /**
@@ -84818,6 +85246,18 @@ fallback?: string
84818
85246
  */
84819
85247
  optional: boolean
84820
85248
  }[]
85249
+ /**
85250
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
85251
+ */
85252
+ archivedAt: (string | null)
85253
+ /**
85254
+ * Revision number of the open, unpublished draft; null when there is none
85255
+ */
85256
+ draftRevision: (number | null)
85257
+ /**
85258
+ * Revision number a send renders; null until the template is first published
85259
+ */
85260
+ currentRevision: (number | null)
84821
85261
  }
84822
85262
 
84823
85263
  export interface MailUsageGetInput {
@@ -90576,378 +91016,6 @@ export interface OrganizationYoutubeInstallOutput {
90576
91016
  url: string
90577
91017
  }
90578
91018
 
90579
- export interface PlaygroundAnalyticsOverviewInput {
90580
- /**
90581
- * Max records per entity in recent[]; omit for the endpoint default
90582
- */
90583
- limit?: number
90584
- }
90585
-
90586
- export interface PlaygroundAnalyticsOverviewOutput {
90587
- ok: boolean
90588
- minted: boolean
90589
- overview?: unknown
90590
- http_status: number
90591
- }
90592
-
90593
- export interface PlaygroundBillingEntitlementsInput {
90594
-
90595
- }
90596
-
90597
- export interface PlaygroundBillingEntitlementsOutput {
90598
- ok: boolean
90599
- minted: boolean
90600
- http_status: number
90601
- entitlements?: unknown
90602
- }
90603
-
90604
- export interface PlaygroundBillingRecordUsageInput {
90605
- /**
90606
- * Quantity of events to record against playground-events (SUM); defaults to 1
90607
- */
90608
- value?: number
90609
- }
90610
-
90611
- export interface PlaygroundBillingRecordUsageOutput {
90612
- minted: boolean
90613
- accepted: (number | null)
90614
- recorded: boolean
90615
- duplicates: (number | null)
90616
- http_status: number
90617
- }
90618
-
90619
- export interface PlaygroundClickupCreateTaskInput {
90620
- /**
90621
- * Task title; defaults to a fixture label
90622
- */
90623
- name?: string
90624
- /**
90625
- * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
90626
- */
90627
- listId?: string
90628
- }
90629
-
90630
- export interface PlaygroundClickupCreateTaskOutput {
90631
- minted: boolean
90632
- task_id: (string | null)
90633
- list_status: number
90634
- vend_status: number
90635
- clickup_status: number
90636
- installation_count: number
90637
- }
90638
-
90639
- export interface PlaygroundClickupGetLastWebhookInput {
90640
-
90641
- }
90642
-
90643
- export type PlaygroundClickupGetLastWebhookOutput = ({
90644
- payload: string
90645
- event_id: string
90646
- provider: string
90647
- verified: boolean
90648
- product_id: string
90649
- occurred_at: string
90650
- connector_id: string
90651
- clickup_event: (string | null)
90652
- receipt_count: number
90653
- } | {
90654
- found: false
90655
- })
90656
-
90657
- export interface PlaygroundClickupGetOverviewInput {
90658
-
90659
- }
90660
-
90661
- export interface PlaygroundClickupGetOverviewOutput {
90662
- team: ({
90663
- teamId: string
90664
- teamName: string
90665
- } | null)
90666
- lists: PlaygroundClickupGetOverviewOutputItems[]
90667
- tasks: {
90668
- id: string
90669
- name: string
90670
- status: (string | null)
90671
- }[]
90672
- minted: boolean
90673
- spaces: PlaygroundClickupGetOverviewOutputItems[]
90674
- list_status: number
90675
- vend_status: number
90676
- lists_status: number
90677
- tasks_status: number
90678
- spaces_status: number
90679
- folders_status: number
90680
- installation_count: number
90681
- }
90682
- export interface PlaygroundClickupGetOverviewOutputItems {
90683
- id: string
90684
- name: string
90685
- }
90686
-
90687
- export interface PlaygroundEchoPingInput {
90688
- /**
90689
- * The text to echo back, 1–1024 characters
90690
- */
90691
- message: string
90692
- }
90693
-
90694
- export interface PlaygroundEchoPingOutput {
90695
- /**
90696
- * The message exactly as it was received
90697
- */
90698
- message: string
90699
- /**
90700
- * The product the call was resolved to
90701
- */
90702
- productId: string
90703
- /**
90704
- * ISO-8601 instant (UTC) at which the call reached the service
90705
- */
90706
- receivedAt: string
90707
- }
90708
-
90709
- export interface PlaygroundGdriveGetLastChangeInput {
90710
-
90711
- }
90712
-
90713
- export type PlaygroundGdriveGetLastChangeOutput = ({
90714
- file_id: string
90715
- removed: boolean
90716
- file_name: (string | null)
90717
- mime_type: (string | null)
90718
- product_id: string
90719
- occurred_at: string
90720
- connector_id: string
90721
- resource_state: string
90722
- } | {
90723
- found: false
90724
- })
90725
-
90726
- export interface PlaygroundGdriveReadFileInput {
90727
- /**
90728
- * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
90729
- */
90730
- fileId?: string
90731
- }
90732
-
90733
- export interface PlaygroundGdriveReadFileOutput {
90734
- minted: boolean
90735
- file_id: (string | null)
90736
- file_name: (string | null)
90737
- mime_type: (string | null)
90738
- file_count: number
90739
- get_status: number
90740
- list_status: number
90741
- vend_status: number
90742
- content_bytes: (number | null)
90743
- }
90744
-
90745
- export interface PlaygroundGoogleadsReadCustomerInput {
90746
-
90747
- }
90748
-
90749
- export interface PlaygroundGoogleadsReadCustomerOutput {
90750
- minted: boolean
90751
- vended: boolean
90752
- customer_id: (string | null)
90753
- vend_status: number
90754
- result_count: number
90755
- search_status: number
90756
- login_customer_id: (string | null)
90757
- }
90758
-
90759
- export interface PlaygroundLifecycleGetStateInput {
90760
-
90761
- }
90762
-
90763
- export interface PlaygroundLifecycleGetStateOutput {
90764
- blocked: boolean
90765
- archived: boolean
90766
- productId: string
90767
- lastBlockTransition: ({
90768
- eventId: string
90769
- eventName: string
90770
- productId: string
90771
- occurredAt: string
90772
- recordedAt: string
90773
- receiptCount: number
90774
- organizationId: string
90775
- cascadedFromOrg: boolean
90776
- } | null)
90777
- lastArchiveTransition: ({
90778
- eventId: string
90779
- eventName: string
90780
- productId: string
90781
- occurredAt: string
90782
- recordedAt: string
90783
- receiptCount: number
90784
- organizationId: string
90785
- cascadedFromOrg: boolean
90786
- } | null)
90787
- }
90788
-
90789
- export interface PlaygroundLifecycleListEventsInput {
90790
-
90791
- }
90792
-
90793
- export type PlaygroundLifecycleListEventsOutput = {
90794
- eventId: string
90795
- eventName: string
90796
- productId: string
90797
- occurredAt: string
90798
- recordedAt: string
90799
- receiptCount: number
90800
- organizationId: string
90801
- cascadedFromOrg: boolean
90802
- }[]
90803
-
90804
- export interface PlaygroundWebhookGetLastInput {
90805
-
90806
- }
90807
-
90808
- export type PlaygroundWebhookGetLastOutput = ({
90809
- payload?: unknown
90810
- event_id: string
90811
- provider: string
90812
- verified: boolean
90813
- product_id: string
90814
- occurred_at: string
90815
- connector_id: string
90816
- delivery_count: number
90817
- } | {
90818
- found: false
90819
- })
90820
-
90821
- export interface PlaygroundWorkflowEchoInput {
90822
- /**
90823
- * The text to store, 1–1024 characters
90824
- */
90825
- note: string
90826
- /**
90827
- * Optional labels stored alongside the note, at most 20
90828
- *
90829
- * @maxItems 20
90830
- */
90831
- 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]
90832
- }
90833
-
90834
- export interface PlaygroundWorkflowEchoOutput {
90835
- /**
90836
- * Identifier of the stored echo
90837
- */
90838
- id: string
90839
- /**
90840
- * The note exactly as it was received
90841
- */
90842
- note: string
90843
- /**
90844
- * The tags exactly as they were received
90845
- */
90846
- tags: string[]
90847
- /**
90848
- * 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.
90849
- */
90850
- echo_id: string
90851
- /**
90852
- * ISO-8601 instant (UTC) at which the echo was stored
90853
- */
90854
- received_at: string
90855
- }
90856
-
90857
- export interface PlaygroundWorkflowEchoListInput {
90858
-
90859
- }
90860
-
90861
- export type PlaygroundWorkflowEchoListOutput = {
90862
- /**
90863
- * Identifier of the stored echo
90864
- */
90865
- id: string
90866
- /**
90867
- * The note exactly as it was received
90868
- */
90869
- note: string
90870
- /**
90871
- * The tags exactly as they were received
90872
- */
90873
- tags: string[]
90874
- /**
90875
- * ISO-8601 instant (UTC) at which the echo was stored
90876
- */
90877
- received_at: string
90878
- }[]
90879
-
90880
- export interface PlaygroundWorkflowPingInput {
90881
- /**
90882
- * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
90883
- */
90884
- kind?: string
90885
- }
90886
-
90887
- export interface PlaygroundWorkflowPingOutput {
90888
- /**
90889
- * 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.
90890
- */
90891
- id: string
90892
- /**
90893
- * The name of the event that was published
90894
- */
90895
- event: string
90896
- }
90897
-
90898
- export interface PlaygroundWorkflowSubjectsListInput {
90899
- /**
90900
- * How many subjects to return, 1–100. Defaults to 25.
90901
- */
90902
- limit?: number
90903
- /**
90904
- * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
90905
- */
90906
- cursor?: string
90907
- /**
90908
- * 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.
90909
- */
90910
- last_activity_after?: string
90911
- /**
90912
- * 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.
90913
- */
90914
- last_activity_before?: string
90915
- }
90916
-
90917
- export interface PlaygroundWorkflowSubjectsListOutput {
90918
- /**
90919
- * This page of subjects, most recently active first
90920
- */
90921
- items: {
90922
- /**
90923
- * 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.
90924
- */
90925
- subject_key: string
90926
- /**
90927
- * Human-readable name of the subject
90928
- */
90929
- display_name: string
90930
- /**
90931
- * ISO-8601 instant (UTC) of the subject last activity
90932
- */
90933
- last_activity_at: string
90934
- }[]
90935
- /**
90936
- * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
90937
- */
90938
- has_more: boolean
90939
- /**
90940
- * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
90941
- */
90942
- next_cursor: (string | null)
90943
- }
90944
-
90945
- export interface PlaygroundWsEchoInput {
90946
-
90947
- }
90948
-
90949
- export type PlaygroundWsEchoOutput = unknown;
90950
-
90951
91019
  export interface RealtimeArchiveExportInput {
90952
91020
  /**
90953
91021
  * Only entries with ts <= to_ts (epoch ms)