@lessly/sdk-app 63.6.0 → 63.8.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 (36) hide show
  1. package/dist/_types/gen/client.gen.d.ts +72 -1
  2. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  3. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  4. package/dist/_types/gen/playground/index.d.ts +3 -0
  5. package/dist/_types/gen/playground/queryOptions.gen.d.ts +62 -0
  6. package/dist/_types/gen/types.gen.d.ts +913 -0
  7. package/dist/_types/gen/workflow/index.d.ts +2 -0
  8. package/dist/_types/gen/workflow/queryOptions.gen.d.ts +98 -0
  9. package/dist/chunk-ETSAJJIN.js +10902 -0
  10. package/dist/chunk-ETSAJJIN.js.map +1 -0
  11. package/dist/index.cjs +676 -2
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.js +85 -10299
  14. package/dist/index.js.map +1 -1
  15. package/dist/playground/index.cjs +96 -0
  16. package/dist/playground/index.cjs.map +1 -0
  17. package/dist/playground/index.d.cts +1 -0
  18. package/dist/playground/index.d.ts +1 -0
  19. package/dist/playground/index.js +70 -0
  20. package/dist/playground/index.js.map +1 -0
  21. package/dist/workflow/index.cjs +126 -0
  22. package/dist/workflow/index.cjs.map +1 -0
  23. package/dist/workflow/index.d.cts +1 -0
  24. package/dist/workflow/index.d.ts +1 -0
  25. package/dist/workflow/index.js +101 -0
  26. package/dist/workflow/index.js.map +1 -0
  27. package/package.json +22 -2
  28. package/src/gen/bindings.gen.ts +602 -1
  29. package/src/gen/client.gen.ts +149 -0
  30. package/src/gen/manifest.gen.ts +83 -2
  31. package/src/gen/playground/connect.gen.ts +9 -0
  32. package/src/gen/playground/index.ts +4 -0
  33. package/src/gen/playground/queryOptions.gen.ts +105 -0
  34. package/src/gen/types.gen.ts +1004 -0
  35. package/src/gen/workflow/index.ts +3 -0
  36. package/src/gen/workflow/queryOptions.gen.ts +161 -0
@@ -91149,6 +91149,263 @@ export interface OrganizationYoutubeInstallInput {
91149
91149
  export interface OrganizationYoutubeInstallOutput {
91150
91150
  url: string;
91151
91151
  }
91152
+ export interface PlaygroundAnalyticsOverviewInput {
91153
+ /**
91154
+ * Max records per entity in recent[]; omit for the endpoint default
91155
+ */
91156
+ limit?: number;
91157
+ }
91158
+ export interface PlaygroundAnalyticsOverviewOutput {
91159
+ ok: boolean;
91160
+ minted: boolean;
91161
+ overview?: unknown;
91162
+ http_status: number;
91163
+ }
91164
+ export interface PlaygroundBillingEntitlementsInput {
91165
+ }
91166
+ export interface PlaygroundBillingEntitlementsOutput {
91167
+ ok: boolean;
91168
+ minted: boolean;
91169
+ http_status: number;
91170
+ entitlements?: unknown;
91171
+ }
91172
+ export interface PlaygroundBillingRecordUsageInput {
91173
+ /**
91174
+ * Quantity of events to record against playground-events (SUM); defaults to 1
91175
+ */
91176
+ value?: number;
91177
+ }
91178
+ export interface PlaygroundBillingRecordUsageOutput {
91179
+ minted: boolean;
91180
+ accepted: (number | null);
91181
+ recorded: boolean;
91182
+ duplicates: (number | null);
91183
+ http_status: number;
91184
+ }
91185
+ export interface PlaygroundClickupCreateTaskInput {
91186
+ /**
91187
+ * Task title; defaults to a fixture label
91188
+ */
91189
+ name?: string;
91190
+ /**
91191
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
91192
+ */
91193
+ listId?: string;
91194
+ }
91195
+ export interface PlaygroundClickupCreateTaskOutput {
91196
+ minted: boolean;
91197
+ task_id: (string | null);
91198
+ list_status: number;
91199
+ vend_status: number;
91200
+ clickup_status: number;
91201
+ installation_count: number;
91202
+ }
91203
+ export interface PlaygroundClickupGetLastWebhookInput {
91204
+ }
91205
+ export type PlaygroundClickupGetLastWebhookOutput = ({
91206
+ payload: string;
91207
+ event_id: string;
91208
+ provider: string;
91209
+ verified: boolean;
91210
+ product_id: string;
91211
+ occurred_at: string;
91212
+ connector_id: string;
91213
+ clickup_event: (string | null);
91214
+ receipt_count: number;
91215
+ } | {
91216
+ found: false;
91217
+ });
91218
+ export interface PlaygroundClickupGetOverviewInput {
91219
+ }
91220
+ export interface PlaygroundClickupGetOverviewOutput {
91221
+ team: ({
91222
+ teamId: string;
91223
+ teamName: string;
91224
+ } | null);
91225
+ lists: PlaygroundClickupGetOverviewOutputItems[];
91226
+ tasks: {
91227
+ id: string;
91228
+ name: string;
91229
+ status: (string | null);
91230
+ }[];
91231
+ minted: boolean;
91232
+ spaces: PlaygroundClickupGetOverviewOutputItems[];
91233
+ list_status: number;
91234
+ vend_status: number;
91235
+ lists_status: number;
91236
+ tasks_status: number;
91237
+ spaces_status: number;
91238
+ folders_status: number;
91239
+ installation_count: number;
91240
+ }
91241
+ export interface PlaygroundClickupGetOverviewOutputItems {
91242
+ id: string;
91243
+ name: string;
91244
+ }
91245
+ export interface PlaygroundGdriveGetLastChangeInput {
91246
+ }
91247
+ export type PlaygroundGdriveGetLastChangeOutput = ({
91248
+ file_id: string;
91249
+ removed: boolean;
91250
+ file_name: (string | null);
91251
+ mime_type: (string | null);
91252
+ product_id: string;
91253
+ occurred_at: string;
91254
+ connector_id: string;
91255
+ resource_state: string;
91256
+ } | {
91257
+ found: false;
91258
+ });
91259
+ export interface PlaygroundGdriveReadFileInput {
91260
+ /**
91261
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
91262
+ */
91263
+ fileId?: string;
91264
+ }
91265
+ export interface PlaygroundGdriveReadFileOutput {
91266
+ minted: boolean;
91267
+ file_id: (string | null);
91268
+ file_name: (string | null);
91269
+ mime_type: (string | null);
91270
+ file_count: number;
91271
+ get_status: number;
91272
+ list_status: number;
91273
+ vend_status: number;
91274
+ content_bytes: (number | null);
91275
+ }
91276
+ export interface PlaygroundGoogleadsReadCustomerInput {
91277
+ }
91278
+ export interface PlaygroundGoogleadsReadCustomerOutput {
91279
+ minted: boolean;
91280
+ vended: boolean;
91281
+ customer_id: (string | null);
91282
+ vend_status: number;
91283
+ result_count: number;
91284
+ search_status: number;
91285
+ login_customer_id: (string | null);
91286
+ }
91287
+ export interface PlaygroundLifecycleGetStateInput {
91288
+ }
91289
+ export interface PlaygroundLifecycleGetStateOutput {
91290
+ blocked: boolean;
91291
+ archived: boolean;
91292
+ productId: string;
91293
+ lastBlockTransition: ({
91294
+ eventId: string;
91295
+ eventName: string;
91296
+ productId: string;
91297
+ occurredAt: string;
91298
+ recordedAt: string;
91299
+ receiptCount: number;
91300
+ organizationId: string;
91301
+ cascadedFromOrg: boolean;
91302
+ } | null);
91303
+ lastArchiveTransition: ({
91304
+ eventId: string;
91305
+ eventName: string;
91306
+ productId: string;
91307
+ occurredAt: string;
91308
+ recordedAt: string;
91309
+ receiptCount: number;
91310
+ organizationId: string;
91311
+ cascadedFromOrg: boolean;
91312
+ } | null);
91313
+ }
91314
+ export interface PlaygroundLifecycleListEventsInput {
91315
+ }
91316
+ export type PlaygroundLifecycleListEventsOutput = {
91317
+ eventId: string;
91318
+ eventName: string;
91319
+ productId: string;
91320
+ occurredAt: string;
91321
+ recordedAt: string;
91322
+ receiptCount: number;
91323
+ organizationId: string;
91324
+ cascadedFromOrg: boolean;
91325
+ }[];
91326
+ export interface PlaygroundWebhookGetLastInput {
91327
+ }
91328
+ export type PlaygroundWebhookGetLastOutput = ({
91329
+ payload?: unknown;
91330
+ event_id: string;
91331
+ provider: string;
91332
+ verified: boolean;
91333
+ product_id: string;
91334
+ occurred_at: string;
91335
+ connector_id: string;
91336
+ delivery_count: number;
91337
+ } | {
91338
+ found: false;
91339
+ });
91340
+ export interface PlaygroundWorkflowEchoInput {
91341
+ /**
91342
+ * The text to store, 1–1024 characters
91343
+ */
91344
+ note: string;
91345
+ /**
91346
+ * Optional labels stored alongside the note, at most 20
91347
+ *
91348
+ * @maxItems 20
91349
+ */
91350
+ 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];
91351
+ }
91352
+ export interface PlaygroundWorkflowEchoOutput {
91353
+ /**
91354
+ * Identifier of the stored echo
91355
+ */
91356
+ id: string;
91357
+ /**
91358
+ * The note exactly as it was received
91359
+ */
91360
+ note: string;
91361
+ /**
91362
+ * The tags exactly as they were received
91363
+ */
91364
+ tags: string[];
91365
+ /**
91366
+ * ISO-8601 instant (UTC) at which the echo was stored
91367
+ */
91368
+ received_at: string;
91369
+ }
91370
+ export interface PlaygroundWorkflowEchoListInput {
91371
+ }
91372
+ export type PlaygroundWorkflowEchoListOutput = {
91373
+ /**
91374
+ * Identifier of the stored echo
91375
+ */
91376
+ id: string;
91377
+ /**
91378
+ * The note exactly as it was received
91379
+ */
91380
+ note: string;
91381
+ /**
91382
+ * The tags exactly as they were received
91383
+ */
91384
+ tags: string[];
91385
+ /**
91386
+ * ISO-8601 instant (UTC) at which the echo was stored
91387
+ */
91388
+ received_at: string;
91389
+ }[];
91390
+ export interface PlaygroundWorkflowPingInput {
91391
+ /**
91392
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
91393
+ */
91394
+ kind?: string;
91395
+ }
91396
+ export interface PlaygroundWorkflowPingOutput {
91397
+ /**
91398
+ * 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.
91399
+ */
91400
+ id: string;
91401
+ /**
91402
+ * The name of the event that was published
91403
+ */
91404
+ event: string;
91405
+ }
91406
+ export interface PlaygroundWsEchoInput {
91407
+ }
91408
+ export type PlaygroundWsEchoOutput = unknown;
91152
91409
  export interface RealtimeArchiveExportInput {
91153
91410
  /**
91154
91411
  * Only entries with ts <= to_ts (epoch ms)
@@ -117114,3 +117371,659 @@ export interface WaitlistSignupsListOutput {
117114
117371
  has_more: boolean;
117115
117372
  next_cursor: (string | null);
117116
117373
  }
117374
+ export interface WorkflowCapabilityGetInput {
117375
+ /**
117376
+ * Tool name of an action (e.g. "mail_email_send") or event name of a trigger.
117377
+ */
117378
+ key: string;
117379
+ }
117380
+ export interface WorkflowCapabilityGetOutput {
117381
+ key: string;
117382
+ http?: ({
117383
+ path: string;
117384
+ method: string;
117385
+ } | null);
117386
+ kind: ("action" | "event" | "schedule" | "manual");
117387
+ title: string;
117388
+ schema?: {
117389
+ [k: string]: unknown;
117390
+ };
117391
+ toolkit: string;
117392
+ examples?: {
117393
+ [k: string]: unknown;
117394
+ }[];
117395
+ read_only?: boolean;
117396
+ filterable?: string[];
117397
+ composition?: {
117398
+ [k: string]: unknown;
117399
+ };
117400
+ description?: string;
117401
+ schema_hash: string;
117402
+ input_schema?: {
117403
+ [k: string]: unknown;
117404
+ };
117405
+ output_schema?: ({
117406
+ [k: string]: unknown;
117407
+ } | null);
117408
+ executable_in_phase?: boolean;
117409
+ }
117410
+ export interface WorkflowCapabilityListInput {
117411
+ /**
117412
+ * Only triggers (events, schedule, manual) or only actions (callable tools).
117413
+ */
117414
+ kind?: ("trigger" | "action");
117415
+ /**
117416
+ * Page size, 1-200; defaults to 50.
117417
+ */
117418
+ limit?: number;
117419
+ /**
117420
+ * Case-insensitive substring matched against the key, title and description.
117421
+ */
117422
+ query?: string;
117423
+ /**
117424
+ * Opaque cursor from a previous page.
117425
+ */
117426
+ cursor?: string;
117427
+ /**
117428
+ * Only capabilities of this toolkit, e.g. "mail".
117429
+ */
117430
+ toolkit?: string;
117431
+ }
117432
+ export interface WorkflowCapabilityListOutput {
117433
+ items: {
117434
+ key: string;
117435
+ http?: ({
117436
+ path: string;
117437
+ method: string;
117438
+ } | null);
117439
+ kind: ("action" | "event" | "schedule" | "manual");
117440
+ title: string;
117441
+ schema?: {
117442
+ [k: string]: unknown;
117443
+ };
117444
+ toolkit: string;
117445
+ examples?: {
117446
+ [k: string]: unknown;
117447
+ }[];
117448
+ read_only?: boolean;
117449
+ filterable?: string[];
117450
+ composition?: {
117451
+ [k: string]: unknown;
117452
+ };
117453
+ description?: string;
117454
+ schema_hash: string;
117455
+ input_schema?: {
117456
+ [k: string]: unknown;
117457
+ };
117458
+ output_schema?: ({
117459
+ [k: string]: unknown;
117460
+ } | null);
117461
+ executable_in_phase?: boolean;
117462
+ }[];
117463
+ next_cursor: (string | null);
117464
+ /**
117465
+ * Version of the snapshot these items came from; record it with a dependency.
117466
+ */
117467
+ catalog_version: string;
117468
+ }
117469
+ export interface WorkflowConfigDeleteInput {
117470
+ /**
117471
+ * Config key as referenced in a definition: {{ config.<key> }}.
117472
+ */
117473
+ key: string;
117474
+ }
117475
+ export interface WorkflowConfigDeleteOutput {
117476
+ key: string;
117477
+ deleted: boolean;
117478
+ }
117479
+ export interface WorkflowConfigListInput {
117480
+ /**
117481
+ * Page size, 1-200; defaults to 50.
117482
+ */
117483
+ limit?: number;
117484
+ /**
117485
+ * Opaque cursor from a previous page.
117486
+ */
117487
+ cursor?: string;
117488
+ }
117489
+ export interface WorkflowConfigListOutput {
117490
+ items: {
117491
+ key: string;
117492
+ is_secret: boolean;
117493
+ updated_at: string;
117494
+ }[];
117495
+ next_cursor: (string | null);
117496
+ }
117497
+ export interface WorkflowConfigSetInput {
117498
+ /**
117499
+ * Config key as referenced in a definition: {{ config.<key> }}.
117500
+ */
117501
+ key: string;
117502
+ /**
117503
+ * The value to store. Encrypted at rest when `secret` is true.
117504
+ */
117505
+ value: string;
117506
+ /**
117507
+ * True for credentials: the value is encrypted at rest and never read back.
117508
+ */
117509
+ secret: boolean;
117510
+ }
117511
+ export interface WorkflowConfigSetOutput {
117512
+ key: string;
117513
+ is_secret: boolean;
117514
+ updated_at: string;
117515
+ }
117516
+ export interface WorkflowDefinitionCreateInput {
117517
+ name: string;
117518
+ /**
117519
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117520
+ */
117521
+ definition: {
117522
+ [k: string]: unknown;
117523
+ };
117524
+ description?: string;
117525
+ }
117526
+ export interface WorkflowDefinitionCreateOutput {
117527
+ live: ({
117528
+ note: (string | null);
117529
+ version: number;
117530
+ published_at: (string | null);
117531
+ } | null);
117532
+ draft: ({
117533
+ [k: string]: unknown;
117534
+ } | null);
117535
+ /**
117536
+ * Validation of the draft as it stands right now.
117537
+ */
117538
+ issues: {
117539
+ /**
117540
+ * A documented issue code; repair by reacting to this, not to prose.
117541
+ */
117542
+ code: string;
117543
+ hint?: string;
117544
+ /**
117545
+ * JSON Pointer into the definition.
117546
+ */
117547
+ path: string;
117548
+ actual?: string;
117549
+ node_id?: string;
117550
+ expected?: string;
117551
+ severity: ("error" | "warning");
117552
+ }[];
117553
+ workflow: {
117554
+ id: string;
117555
+ name: string;
117556
+ status: ("draft" | "enabled" | "disabled");
117557
+ created_at: string;
117558
+ updated_at: string;
117559
+ description: (string | null);
117560
+ live_version: (number | null);
117561
+ };
117562
+ }
117563
+ export interface WorkflowDefinitionDisableInput {
117564
+ workflow_id: string;
117565
+ }
117566
+ export interface WorkflowDefinitionDisableOutput {
117567
+ id: string;
117568
+ name: string;
117569
+ status: ("draft" | "enabled" | "disabled");
117570
+ created_at: string;
117571
+ updated_at: string;
117572
+ description: (string | null);
117573
+ live_version: (number | null);
117574
+ }
117575
+ export interface WorkflowDefinitionDryrunInput {
117576
+ /**
117577
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117578
+ */
117579
+ definition?: {
117580
+ [k: string]: unknown;
117581
+ };
117582
+ /**
117583
+ * `waits: resolve|timeout`, `split: <branch>` — for node types that execute later.
117584
+ */
117585
+ assumptions?: {
117586
+ [k: string]: string;
117587
+ };
117588
+ workflow_id?: string;
117589
+ /**
117590
+ * What `trigger.data` holds; defaults to a placeholder built from the schema.
117591
+ */
117592
+ trigger_payload?: {
117593
+ [k: string]: unknown;
117594
+ };
117595
+ }
117596
+ export interface WorkflowDefinitionDryrunOutput {
117597
+ /**
117598
+ * The node ids this payload would visit, in order.
117599
+ */
117600
+ path: string[];
117601
+ nodes: {
117602
+ [k: string]: {
117603
+ type: string;
117604
+ waits?: string;
117605
+ branch?: string;
117606
+ output_mock?: unknown;
117607
+ resolved_input?: unknown;
117608
+ skipped_reason?: string;
117609
+ };
117610
+ };
117611
+ }
117612
+ export interface WorkflowDefinitionEnableInput {
117613
+ workflow_id: string;
117614
+ }
117615
+ export interface WorkflowDefinitionEnableOutput {
117616
+ id: string;
117617
+ name: string;
117618
+ status: ("draft" | "enabled" | "disabled");
117619
+ created_at: string;
117620
+ updated_at: string;
117621
+ description: (string | null);
117622
+ live_version: (number | null);
117623
+ }
117624
+ export interface WorkflowDefinitionExportInput {
117625
+ /**
117626
+ * Defaults to the live version.
117627
+ */
117628
+ version?: number;
117629
+ workflow_id: string;
117630
+ }
117631
+ export interface WorkflowDefinitionExportOutput {
117632
+ version: number;
117633
+ definition: {
117634
+ [k: string]: unknown;
117635
+ };
117636
+ workflow_id: string;
117637
+ }
117638
+ export interface WorkflowDefinitionGetInput {
117639
+ workflow_id: string;
117640
+ }
117641
+ export interface WorkflowDefinitionGetOutput {
117642
+ live: ({
117643
+ note: (string | null);
117644
+ version: number;
117645
+ published_at: (string | null);
117646
+ } | null);
117647
+ draft: ({
117648
+ [k: string]: unknown;
117649
+ } | null);
117650
+ /**
117651
+ * Validation of the draft as it stands right now.
117652
+ */
117653
+ issues: {
117654
+ /**
117655
+ * A documented issue code; repair by reacting to this, not to prose.
117656
+ */
117657
+ code: string;
117658
+ hint?: string;
117659
+ /**
117660
+ * JSON Pointer into the definition.
117661
+ */
117662
+ path: string;
117663
+ actual?: string;
117664
+ node_id?: string;
117665
+ expected?: string;
117666
+ severity: ("error" | "warning");
117667
+ }[];
117668
+ workflow: {
117669
+ id: string;
117670
+ name: string;
117671
+ status: ("draft" | "enabled" | "disabled");
117672
+ created_at: string;
117673
+ updated_at: string;
117674
+ description: (string | null);
117675
+ live_version: (number | null);
117676
+ };
117677
+ }
117678
+ export interface WorkflowDefinitionImportInput {
117679
+ name: string;
117680
+ /**
117681
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117682
+ */
117683
+ definition: {
117684
+ [k: string]: unknown;
117685
+ };
117686
+ }
117687
+ export interface WorkflowDefinitionImportOutput {
117688
+ live: ({
117689
+ note: (string | null);
117690
+ version: number;
117691
+ published_at: (string | null);
117692
+ } | null);
117693
+ draft: ({
117694
+ [k: string]: unknown;
117695
+ } | null);
117696
+ /**
117697
+ * Validation of the draft as it stands right now.
117698
+ */
117699
+ issues: {
117700
+ /**
117701
+ * A documented issue code; repair by reacting to this, not to prose.
117702
+ */
117703
+ code: string;
117704
+ hint?: string;
117705
+ /**
117706
+ * JSON Pointer into the definition.
117707
+ */
117708
+ path: string;
117709
+ actual?: string;
117710
+ node_id?: string;
117711
+ expected?: string;
117712
+ severity: ("error" | "warning");
117713
+ }[];
117714
+ workflow: {
117715
+ id: string;
117716
+ name: string;
117717
+ status: ("draft" | "enabled" | "disabled");
117718
+ created_at: string;
117719
+ updated_at: string;
117720
+ description: (string | null);
117721
+ live_version: (number | null);
117722
+ };
117723
+ }
117724
+ export interface WorkflowDefinitionListInput {
117725
+ /**
117726
+ * Page size, 1-200; defaults to 50.
117727
+ */
117728
+ limit?: number;
117729
+ /**
117730
+ * Opaque cursor from a previous page.
117731
+ */
117732
+ cursor?: string;
117733
+ status?: ("draft" | "enabled" | "disabled");
117734
+ }
117735
+ export interface WorkflowDefinitionListOutput {
117736
+ items: {
117737
+ id: string;
117738
+ name: string;
117739
+ status: ("draft" | "enabled" | "disabled");
117740
+ created_at: string;
117741
+ updated_at: string;
117742
+ description: (string | null);
117743
+ live_version: (number | null);
117744
+ }[];
117745
+ next_cursor: (string | null);
117746
+ }
117747
+ export interface WorkflowDefinitionPublishInput {
117748
+ /**
117749
+ * Why this version exists; shown in the version list.
117750
+ */
117751
+ note: string;
117752
+ workflow_id: string;
117753
+ }
117754
+ export interface WorkflowDefinitionPublishOutput {
117755
+ status: string;
117756
+ version: number;
117757
+ workflow_id: string;
117758
+ dependencies: {
117759
+ key: string;
117760
+ kind: ("trigger" | "action");
117761
+ schema_hash: string;
117762
+ }[];
117763
+ }
117764
+ export interface WorkflowDefinitionUpdateInput {
117765
+ name?: string;
117766
+ /**
117767
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117768
+ */
117769
+ definition?: {
117770
+ [k: string]: unknown;
117771
+ };
117772
+ description?: string;
117773
+ workflow_id: string;
117774
+ }
117775
+ export interface WorkflowDefinitionUpdateOutput {
117776
+ live: ({
117777
+ note: (string | null);
117778
+ version: number;
117779
+ published_at: (string | null);
117780
+ } | null);
117781
+ draft: ({
117782
+ [k: string]: unknown;
117783
+ } | null);
117784
+ /**
117785
+ * Validation of the draft as it stands right now.
117786
+ */
117787
+ issues: {
117788
+ /**
117789
+ * A documented issue code; repair by reacting to this, not to prose.
117790
+ */
117791
+ code: string;
117792
+ hint?: string;
117793
+ /**
117794
+ * JSON Pointer into the definition.
117795
+ */
117796
+ path: string;
117797
+ actual?: string;
117798
+ node_id?: string;
117799
+ expected?: string;
117800
+ severity: ("error" | "warning");
117801
+ }[];
117802
+ workflow: {
117803
+ id: string;
117804
+ name: string;
117805
+ status: ("draft" | "enabled" | "disabled");
117806
+ created_at: string;
117807
+ updated_at: string;
117808
+ description: (string | null);
117809
+ live_version: (number | null);
117810
+ };
117811
+ }
117812
+ export interface WorkflowDefinitionValidateInput {
117813
+ /**
117814
+ * A workflow definition: trigger, nodes, edges, grants, config_refs.
117815
+ */
117816
+ definition?: {
117817
+ [k: string]: unknown;
117818
+ };
117819
+ workflow_id?: string;
117820
+ }
117821
+ export interface WorkflowDefinitionValidateOutput {
117822
+ /**
117823
+ * True when no issue has severity "error"; publish needs this.
117824
+ */
117825
+ ok: boolean;
117826
+ issues: {
117827
+ /**
117828
+ * A documented issue code; repair by reacting to this, not to prose.
117829
+ */
117830
+ code: string;
117831
+ hint?: string;
117832
+ /**
117833
+ * JSON Pointer into the definition.
117834
+ */
117835
+ path: string;
117836
+ actual?: string;
117837
+ node_id?: string;
117838
+ expected?: string;
117839
+ severity: ("error" | "warning");
117840
+ }[];
117841
+ }
117842
+ export interface WorkflowHealthPingInput {
117843
+ }
117844
+ export interface WorkflowHealthPingOutput {
117845
+ ok: boolean;
117846
+ toolkit: string;
117847
+ productId: string;
117848
+ }
117849
+ export interface WorkflowRunCancelInput {
117850
+ run_id: string;
117851
+ }
117852
+ export interface WorkflowRunCancelOutput {
117853
+ id: string;
117854
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117855
+ version: number;
117856
+ ended_at: (string | null);
117857
+ created_at: string;
117858
+ started_at: (string | null);
117859
+ /**
117860
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117861
+ */
117862
+ held_reason?: {
117863
+ [k: string]: unknown;
117864
+ };
117865
+ workflow_id: string;
117866
+ trigger_event_id: string;
117867
+ replay_generation: number;
117868
+ }
117869
+ export interface WorkflowRunGetInput {
117870
+ run_id: string;
117871
+ }
117872
+ export interface WorkflowRunGetOutput {
117873
+ run: {
117874
+ id: string;
117875
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117876
+ version: number;
117877
+ ended_at: (string | null);
117878
+ created_at: string;
117879
+ started_at: (string | null);
117880
+ /**
117881
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117882
+ */
117883
+ held_reason?: {
117884
+ [k: string]: unknown;
117885
+ };
117886
+ workflow_id: string;
117887
+ trigger_event_id: string;
117888
+ replay_generation: number;
117889
+ };
117890
+ steps: {
117891
+ error?: unknown;
117892
+ input?: unknown;
117893
+ output?: unknown;
117894
+ status: string;
117895
+ attempt: number;
117896
+ ended_at: (string | null);
117897
+ /**
117898
+ * `node_id`, or `node_id[i]/child_id` inside a loop.
117899
+ */
117900
+ node_path: string;
117901
+ started_at: string;
117902
+ idempotency_key: (string | null);
117903
+ }[];
117904
+ waits: {
117905
+ id: string;
117906
+ kind: string;
117907
+ due_at: (string | null);
117908
+ status: string;
117909
+ node_path: string;
117910
+ }[];
117911
+ events: {
117912
+ at: string;
117913
+ seq: number;
117914
+ kind: string;
117915
+ payload?: unknown;
117916
+ }[];
117917
+ }
117918
+ export interface WorkflowRunListInput {
117919
+ /**
117920
+ * Page size, 1-200; defaults to 50.
117921
+ */
117922
+ limit?: number;
117923
+ /**
117924
+ * Opaque cursor from a previous page.
117925
+ */
117926
+ cursor?: string;
117927
+ status?: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117928
+ workflow_id?: string;
117929
+ }
117930
+ export interface WorkflowRunListOutput {
117931
+ items: {
117932
+ id: string;
117933
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117934
+ version: number;
117935
+ ended_at: (string | null);
117936
+ created_at: string;
117937
+ started_at: (string | null);
117938
+ /**
117939
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117940
+ */
117941
+ held_reason?: {
117942
+ [k: string]: unknown;
117943
+ };
117944
+ workflow_id: string;
117945
+ trigger_event_id: string;
117946
+ replay_generation: number;
117947
+ }[];
117948
+ next_cursor: (string | null);
117949
+ }
117950
+ export interface WorkflowRunReplayInput {
117951
+ run_id: string;
117952
+ /**
117953
+ * Re-execute the failed step instead of reusing its result: bumps `replay_generation`, which the action's Idempotency-Key carries. Defaults to false.
117954
+ */
117955
+ reexecute?: boolean;
117956
+ }
117957
+ export interface WorkflowRunReplayOutput {
117958
+ id: string;
117959
+ status: ("created" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "held" | "cancelled");
117960
+ version: number;
117961
+ ended_at: (string | null);
117962
+ created_at: string;
117963
+ started_at: (string | null);
117964
+ /**
117965
+ * Structured `{ code, tool|name, hint }` while `status` is `held`; null otherwise.
117966
+ */
117967
+ held_reason?: {
117968
+ [k: string]: unknown;
117969
+ };
117970
+ workflow_id: string;
117971
+ trigger_event_id: string;
117972
+ replay_generation: number;
117973
+ }
117974
+ export interface WorkflowRunStartInput {
117975
+ input?: {
117976
+ [k: string]: unknown;
117977
+ };
117978
+ workflow_id: string;
117979
+ idempotency_key: string;
117980
+ }
117981
+ export interface WorkflowRunStartOutput {
117982
+ run_id?: string;
117983
+ event_id: string;
117984
+ deduplicated: boolean;
117985
+ }
117986
+ export interface WorkflowVersionGetInput {
117987
+ /**
117988
+ * 0 is the draft.
117989
+ */
117990
+ version: number;
117991
+ workflow_id: string;
117992
+ }
117993
+ export interface WorkflowVersionGetOutput {
117994
+ note: (string | null);
117995
+ version: number;
117996
+ definition: {
117997
+ [k: string]: unknown;
117998
+ };
117999
+ workflow_id: string;
118000
+ dependencies: ({
118001
+ [k: string]: unknown;
118002
+ }[] | null);
118003
+ published_at: (string | null);
118004
+ published_by: (string | null);
118005
+ }
118006
+ export interface WorkflowVersionListInput {
118007
+ /**
118008
+ * Page size, 1-200; defaults to 50.
118009
+ */
118010
+ limit?: number;
118011
+ /**
118012
+ * Opaque cursor from a previous page.
118013
+ */
118014
+ cursor?: string;
118015
+ workflow_id: string;
118016
+ }
118017
+ export interface WorkflowVersionListOutput {
118018
+ items: {
118019
+ note: (string | null);
118020
+ version: number;
118021
+ workflow_id: string;
118022
+ dependencies: ({
118023
+ [k: string]: unknown;
118024
+ }[] | null);
118025
+ published_at: (string | null);
118026
+ published_by: (string | null);
118027
+ }[];
118028
+ next_cursor: (string | null);
118029
+ }