@lessly/sdk-app 56.0.0 → 58.0.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 (42) hide show
  1. package/dist/_types/gen/brain/index.d.ts +1 -1
  2. package/dist/_types/gen/brain/queryOptions.gen.d.ts +1 -5
  3. package/dist/_types/gen/client.gen.d.ts +38 -7
  4. package/dist/_types/gen/deployment/index.d.ts +1 -1
  5. package/dist/_types/gen/deployment/queryOptions.gen.d.ts +13 -5
  6. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  7. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  8. package/dist/_types/gen/playground/index.d.ts +3 -0
  9. package/dist/_types/gen/playground/queryOptions.gen.d.ts +50 -0
  10. package/dist/_types/gen/types.gen.d.ts +364 -113
  11. package/dist/brain/index.cjs +0 -5
  12. package/dist/brain/index.cjs.map +1 -1
  13. package/dist/brain/index.js +1 -5
  14. package/dist/brain/index.js.map +1 -1
  15. package/dist/chunk-4RJR4UQ3.js +9121 -0
  16. package/dist/chunk-4RJR4UQ3.js.map +1 -0
  17. package/dist/deployment/index.cjs +15 -5
  18. package/dist/deployment/index.cjs.map +1 -1
  19. package/dist/deployment/index.js +13 -5
  20. package/dist/deployment/index.js.map +1 -1
  21. package/dist/index.cjs +199 -46
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.js +2 -8956
  24. package/dist/index.js.map +1 -1
  25. package/dist/playground/index.cjs +81 -0
  26. package/dist/playground/index.cjs.map +1 -0
  27. package/dist/playground/index.d.cts +1 -0
  28. package/dist/playground/index.d.ts +1 -0
  29. package/dist/playground/index.js +58 -0
  30. package/dist/playground/index.js.map +1 -0
  31. package/package.json +12 -2
  32. package/src/gen/bindings.gen.ts +208 -47
  33. package/src/gen/brain/index.ts +1 -1
  34. package/src/gen/brain/queryOptions.gen.ts +0 -7
  35. package/src/gen/client.gen.ts +67 -10
  36. package/src/gen/deployment/index.ts +1 -1
  37. package/src/gen/deployment/queryOptions.gen.ts +20 -7
  38. package/src/gen/manifest.gen.ts +1 -1
  39. package/src/gen/playground/connect.gen.ts +9 -0
  40. package/src/gen/playground/index.ts +4 -0
  41. package/src/gen/playground/queryOptions.gen.ts +86 -0
  42. package/src/gen/types.gen.ts +405 -117
@@ -71965,96 +71965,6 @@ export type BrainRestoreStatusOutput = ({
71965
71965
  snapshotId: string;
71966
71966
  preRestoreSnapshotId: (string | null);
71967
71967
  } | null);
71968
- export interface BrainUsageReportInput {
71969
- /**
71970
- * How many UTC days of this product's ledger to return, ending today (default 30, max 90)
71971
- */
71972
- days?: number;
71973
- }
71974
- export interface BrainUsageReportOutput {
71975
- note: string;
71976
- /**
71977
- * Brain's own ledger, for THIS product only
71978
- */
71979
- product: {
71980
- /**
71981
- * Inclusive UTC end of the window (today), YYYY-MM-DD
71982
- */
71983
- to: string;
71984
- /**
71985
- * The window actually used, after clamping
71986
- */
71987
- days: number;
71988
- /**
71989
- * Inclusive UTC start of the window, YYYY-MM-DD
71990
- */
71991
- from: string;
71992
- rows: {
71993
- /**
71994
- * 'sync' | 'batch'; '' when the push carried none
71995
- */
71996
- mode: string;
71997
- /**
71998
- * Manifest meter slug, e.g. llm-tokens
71999
- */
72000
- meter: string;
72001
- /**
72002
- * Model dimension; '' when the push carried none
72003
- */
72004
- model: string;
72005
- /**
72006
- * How many record() calls landed in this slice
72007
- */
72008
- events: number;
72009
- /**
72010
- * Tokens we metered for this slice, delivered or not
72011
- */
72012
- tokens: number;
72013
- /**
72014
- * Purpose dimension; '' when the push carried none
72015
- */
72016
- purpose: string;
72017
- /**
72018
- * UTC calendar day, YYYY-MM-DD
72019
- */
72020
- usage_date: string;
72021
- /**
72022
- * Of those events, how many billing did not accept
72023
- */
72024
- delivery_failed: number;
72025
- }[];
72026
- /**
72027
- * The rows rolled up per meter across the whole window
72028
- */
72029
- totals: {
72030
- meter: string;
72031
- events: number;
72032
- tokens: number;
72033
- delivery_failed: number;
72034
- }[];
72035
- product_id: string;
72036
- };
72037
- /**
72038
- * The platform billing aggregate for the whole ORG; null if it could not be read
72039
- */
72040
- platform: ({
72041
- plan: string;
72042
- scope: "org";
72043
- meters: {
72044
- unit?: string;
72045
- used?: number;
72046
- limit?: (number | null);
72047
- remaining?: (number | null);
72048
- unlimited?: boolean;
72049
- meter_slug: string;
72050
- }[];
72051
- org_id: string;
72052
- } | null);
72053
- /**
72054
- * Why the platform aggregate is null; null when it was read successfully
72055
- */
72056
- platform_error: (string | null);
72057
- }
72058
71968
  export interface ConsentConfigCookieDomainUpsertInput {
72059
71969
  cookieDomain: ("" | null | string);
72060
71970
  }
@@ -72102,6 +72012,7 @@ export interface ConsentConfigThemeUpsertInput {
72102
72012
  successColor?: string;
72103
72013
  warningColor?: string;
72104
72014
  backgroundColor?: string;
72015
+ primaryTextColor?: string;
72105
72016
  };
72106
72017
  brandColor?: string;
72107
72018
  }
@@ -76630,29 +76541,6 @@ export interface DeploymentAnalyticsQueryOutput {
76630
76541
  truncated: boolean;
76631
76542
  explanation: string;
76632
76543
  }
76633
- export interface DeploymentAuditListInput {
76634
- limit?: number;
76635
- action?: string;
76636
- actorId?: string;
76637
- serviceId?: string;
76638
- entityType?: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session");
76639
- environmentId: string;
76640
- }
76641
- export type DeploymentAuditListOutput = {
76642
- id: string;
76643
- action: string;
76644
- actorId: string;
76645
- entityId: (string | null);
76646
- metadata: {
76647
- [k: string]: unknown;
76648
- };
76649
- createdAt: string;
76650
- productId: string;
76651
- serviceId: (string | null);
76652
- actorEmail: string;
76653
- entityType: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session");
76654
- environmentId: (string | null);
76655
- }[];
76656
76544
  export interface DeploymentBuildGetInput {
76657
76545
  id: string;
76658
76546
  }
@@ -76725,6 +76613,7 @@ export interface DeploymentCanvasGetOutput {
76725
76613
  }[];
76726
76614
  services: {
76727
76615
  id: string;
76616
+ mode?: string;
76728
76617
  name: string;
76729
76618
  slug: string;
76730
76619
  probes: {
@@ -76758,10 +76647,19 @@ export interface DeploymentCanvasGetOutput {
76758
76647
  };
76759
76648
  markdown?: boolean;
76760
76649
  });
76650
+ command?: (string | null);
76651
+ lastRun?: ({
76652
+ id: string;
76653
+ status: string;
76654
+ startedAt: (string | null);
76655
+ finishedAt: (string | null);
76656
+ } | null);
76761
76657
  tracing?: string;
76762
76658
  replicas: number;
76659
+ schedule?: (string | null);
76763
76660
  createdAt: string;
76764
76661
  dependsOn: string[];
76662
+ nextRunAt?: (string | null);
76765
76663
  resources?: {
76766
76664
  limits?: {
76767
76665
  cpu?: string;
@@ -76775,7 +76673,10 @@ export interface DeploymentCanvasGetOutput {
76775
76673
  scaleToZero: boolean;
76776
76674
  containerPort: number;
76777
76675
  environmentId: string;
76676
+ jobTimeoutSec?: number;
76677
+ jobConcurrency?: string;
76778
76678
  buildMachineType?: (string | null);
76679
+ scheduleSuspended?: boolean;
76779
76680
  suspendedByBilling?: boolean;
76780
76681
  lastReplicasRunning: number;
76781
76682
  scaleToZeroEligibility?: {
@@ -77689,6 +77590,58 @@ export type DeploymentEventsListByServiceOutput = {
77689
77590
  deploymentId: (string | null);
77690
77591
  environmentId: (string | null);
77691
77592
  }[];
77593
+ export interface DeploymentJobRunInput {
77594
+ serviceId: string;
77595
+ }
77596
+ export interface DeploymentJobRunOutput {
77597
+ id: string;
77598
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
77599
+ trigger: ("schedule" | "manual");
77600
+ exitCode: (number | null);
77601
+ createdAt: string;
77602
+ serviceId: string;
77603
+ startedAt: (string | null);
77604
+ finishedAt: (string | null);
77605
+ k8sJobName: string;
77606
+ imageDigest: (string | null);
77607
+ triggeredBy: (string | null);
77608
+ deploymentId: (string | null);
77609
+ environmentId: string;
77610
+ failureReason: (string | null);
77611
+ }
77612
+ export interface DeploymentJobRunLogsInput {
77613
+ runId: string;
77614
+ serviceId: string;
77615
+ }
77616
+ export interface DeploymentJobRunLogsOutput {
77617
+ live: boolean;
77618
+ logs: string;
77619
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
77620
+ }
77621
+ export interface DeploymentJobRunsListInput {
77622
+ limit?: number;
77623
+ cursor?: string;
77624
+ serviceId: string;
77625
+ }
77626
+ export interface DeploymentJobRunsListOutput {
77627
+ items: {
77628
+ id: string;
77629
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
77630
+ trigger: ("schedule" | "manual");
77631
+ exitCode: (number | null);
77632
+ createdAt: string;
77633
+ serviceId: string;
77634
+ startedAt: (string | null);
77635
+ finishedAt: (string | null);
77636
+ k8sJobName: string;
77637
+ imageDigest: (string | null);
77638
+ triggeredBy: (string | null);
77639
+ deploymentId: (string | null);
77640
+ environmentId: string;
77641
+ failureReason: (string | null);
77642
+ }[];
77643
+ nextCursor: (string | null);
77644
+ }
77692
77645
  export interface DeploymentManagedServiceBackupInput {
77693
77646
  id: string;
77694
77647
  }
@@ -78092,6 +78045,10 @@ export interface DeploymentPreviewPolicySetOutput {
78092
78045
  baseEnvironmentId: string;
78093
78046
  }
78094
78047
  export interface DeploymentServiceCreateInput {
78048
+ /**
78049
+ * 'persistent' (a long-running Deployment behind a Service — the default) or 'scheduled' (a k8s CronJob: no port, no replicas, no route). Immutable after create.
78050
+ */
78051
+ mode?: ("persistent" | "scheduled");
78095
78052
  name: string;
78096
78053
  slug?: string;
78097
78054
  canvas?: {
@@ -78129,11 +78086,19 @@ export interface DeploymentServiceCreateInput {
78129
78086
  };
78130
78087
  markdown?: boolean;
78131
78088
  });
78089
+ /**
78090
+ * Shell command a scheduled run executes (`/bin/sh -c <command>`). Scheduled services only; omit it to run the image entrypoint. `null` clears a command that was set and returns the run to the image entrypoint.
78091
+ */
78092
+ command?: (string | null);
78132
78093
  /**
78133
78094
  * OTel SDK to inject into this service's pods: 'off' (none), 'node' or 'python'. Read when a deploy builds the workload — takes effect on the next deploy, running pods are untouched.
78134
78095
  */
78135
78096
  tracing?: ("off" | "node" | "python");
78136
78097
  replicas?: number;
78098
+ /**
78099
+ * Five-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
78100
+ */
78101
+ schedule?: (string | null);
78137
78102
  resources?: {
78138
78103
  limits?: {
78139
78104
  cpu?: string;
@@ -78142,6 +78107,14 @@ export interface DeploymentServiceCreateInput {
78142
78107
  };
78143
78108
  containerPort?: number;
78144
78109
  environmentId: string;
78110
+ /**
78111
+ * Wall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
78112
+ */
78113
+ jobTimeoutSec?: number;
78114
+ /**
78115
+ * What happens when a run is still going at the next tick: 'forbid' (skip the tick), 'allow' (run in parallel) or 'replace' (kill the running one).
78116
+ */
78117
+ jobConcurrency?: ("forbid" | "allow" | "replace");
78145
78118
  }
78146
78119
  export interface DeploymentServiceCreateInputReadiness {
78147
78120
  path: string;
@@ -78154,6 +78127,7 @@ export interface DeploymentServiceCreateInputReadiness {
78154
78127
  }
78155
78128
  export interface DeploymentServiceCreateOutput {
78156
78129
  id: string;
78130
+ mode?: string;
78157
78131
  name: string;
78158
78132
  slug: string;
78159
78133
  probes: {
@@ -78187,10 +78161,19 @@ export interface DeploymentServiceCreateOutput {
78187
78161
  };
78188
78162
  markdown?: boolean;
78189
78163
  });
78164
+ command?: (string | null);
78165
+ lastRun?: ({
78166
+ id: string;
78167
+ status: string;
78168
+ startedAt: (string | null);
78169
+ finishedAt: (string | null);
78170
+ } | null);
78190
78171
  tracing?: string;
78191
78172
  replicas: number;
78173
+ schedule?: (string | null);
78192
78174
  createdAt: string;
78193
78175
  dependsOn: string[];
78176
+ nextRunAt?: (string | null);
78194
78177
  resources?: {
78195
78178
  limits?: {
78196
78179
  cpu?: string;
@@ -78204,7 +78187,10 @@ export interface DeploymentServiceCreateOutput {
78204
78187
  scaleToZero: boolean;
78205
78188
  containerPort: number;
78206
78189
  environmentId: string;
78190
+ jobTimeoutSec?: number;
78191
+ jobConcurrency?: string;
78207
78192
  buildMachineType?: (string | null);
78193
+ scheduleSuspended?: boolean;
78208
78194
  suspendedByBilling?: boolean;
78209
78195
  lastReplicasRunning: number;
78210
78196
  scaleToZeroEligibility?: {
@@ -78255,6 +78241,7 @@ export interface DeploymentServiceGetInput {
78255
78241
  }
78256
78242
  export interface DeploymentServiceGetOutput {
78257
78243
  id: string;
78244
+ mode?: string;
78258
78245
  name: string;
78259
78246
  slug: string;
78260
78247
  probes: {
@@ -78288,10 +78275,19 @@ export interface DeploymentServiceGetOutput {
78288
78275
  };
78289
78276
  markdown?: boolean;
78290
78277
  });
78278
+ command?: (string | null);
78279
+ lastRun?: ({
78280
+ id: string;
78281
+ status: string;
78282
+ startedAt: (string | null);
78283
+ finishedAt: (string | null);
78284
+ } | null);
78291
78285
  tracing?: string;
78292
78286
  replicas: number;
78287
+ schedule?: (string | null);
78293
78288
  createdAt: string;
78294
78289
  dependsOn: string[];
78290
+ nextRunAt?: (string | null);
78295
78291
  resources?: {
78296
78292
  limits?: {
78297
78293
  cpu?: string;
@@ -78305,7 +78301,10 @@ export interface DeploymentServiceGetOutput {
78305
78301
  scaleToZero: boolean;
78306
78302
  containerPort: number;
78307
78303
  environmentId: string;
78304
+ jobTimeoutSec?: number;
78305
+ jobConcurrency?: string;
78308
78306
  buildMachineType?: (string | null);
78307
+ scheduleSuspended?: boolean;
78309
78308
  suspendedByBilling?: boolean;
78310
78309
  lastReplicasRunning: number;
78311
78310
  scaleToZeroEligibility?: {
@@ -78327,6 +78326,7 @@ export interface DeploymentServiceListInput {
78327
78326
  }
78328
78327
  export type DeploymentServiceListOutput = {
78329
78328
  id: string;
78329
+ mode?: string;
78330
78330
  name: string;
78331
78331
  slug: string;
78332
78332
  probes: {
@@ -78360,10 +78360,19 @@ export type DeploymentServiceListOutput = {
78360
78360
  };
78361
78361
  markdown?: boolean;
78362
78362
  });
78363
+ command?: (string | null);
78364
+ lastRun?: ({
78365
+ id: string;
78366
+ status: string;
78367
+ startedAt: (string | null);
78368
+ finishedAt: (string | null);
78369
+ } | null);
78363
78370
  tracing?: string;
78364
78371
  replicas: number;
78372
+ schedule?: (string | null);
78365
78373
  createdAt: string;
78366
78374
  dependsOn: string[];
78375
+ nextRunAt?: (string | null);
78367
78376
  resources?: {
78368
78377
  limits?: {
78369
78378
  cpu?: string;
@@ -78377,7 +78386,10 @@ export type DeploymentServiceListOutput = {
78377
78386
  scaleToZero: boolean;
78378
78387
  containerPort: number;
78379
78388
  environmentId: string;
78389
+ jobTimeoutSec?: number;
78390
+ jobConcurrency?: string;
78380
78391
  buildMachineType?: (string | null);
78392
+ scheduleSuspended?: boolean;
78381
78393
  suspendedByBilling?: boolean;
78382
78394
  lastReplicasRunning: number;
78383
78395
  scaleToZeroEligibility?: {
@@ -78467,6 +78479,7 @@ export interface DeploymentServiceScaleInput {
78467
78479
  }
78468
78480
  export interface DeploymentServiceScaleOutput {
78469
78481
  id: string;
78482
+ mode?: string;
78470
78483
  name: string;
78471
78484
  slug: string;
78472
78485
  probes: {
@@ -78500,10 +78513,19 @@ export interface DeploymentServiceScaleOutput {
78500
78513
  };
78501
78514
  markdown?: boolean;
78502
78515
  });
78516
+ command?: (string | null);
78517
+ lastRun?: ({
78518
+ id: string;
78519
+ status: string;
78520
+ startedAt: (string | null);
78521
+ finishedAt: (string | null);
78522
+ } | null);
78503
78523
  tracing?: string;
78504
78524
  replicas: number;
78525
+ schedule?: (string | null);
78505
78526
  createdAt: string;
78506
78527
  dependsOn: string[];
78528
+ nextRunAt?: (string | null);
78507
78529
  resources?: {
78508
78530
  limits?: {
78509
78531
  cpu?: string;
@@ -78517,7 +78539,10 @@ export interface DeploymentServiceScaleOutput {
78517
78539
  scaleToZero: boolean;
78518
78540
  containerPort: number;
78519
78541
  environmentId: string;
78542
+ jobTimeoutSec?: number;
78543
+ jobConcurrency?: string;
78520
78544
  buildMachineType?: (string | null);
78545
+ scheduleSuspended?: boolean;
78521
78546
  suspendedByBilling?: boolean;
78522
78547
  lastReplicasRunning: number;
78523
78548
  scaleToZeroEligibility?: {
@@ -78536,6 +78561,7 @@ export interface DeploymentServiceScaleOutputReadiness {
78536
78561
  }
78537
78562
  export interface DeploymentServiceUpdateInput {
78538
78563
  id: string;
78564
+ mode?: unknown;
78539
78565
  name?: string;
78540
78566
  probes?: {
78541
78567
  liveness?: DeploymentServiceUpdateInputReadiness;
@@ -78568,11 +78594,19 @@ export interface DeploymentServiceUpdateInput {
78568
78594
  };
78569
78595
  markdown?: boolean;
78570
78596
  });
78597
+ /**
78598
+ * Shell command a scheduled run executes (`/bin/sh -c <command>`). Scheduled services only; omit it to run the image entrypoint. `null` clears a command that was set and returns the run to the image entrypoint.
78599
+ */
78600
+ command?: (string | null);
78571
78601
  /**
78572
78602
  * OTel SDK to inject into this service's pods: 'off' (none), 'node' or 'python'. Read when a deploy builds the workload — takes effect on the next deploy, running pods are untouched.
78573
78603
  */
78574
78604
  tracing?: ("off" | "node" | "python");
78575
78605
  replicas?: number;
78606
+ /**
78607
+ * Five-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
78608
+ */
78609
+ schedule?: (string | null);
78576
78610
  resources?: {
78577
78611
  limits?: {
78578
78612
  cpu?: string;
@@ -78586,7 +78620,19 @@ export interface DeploymentServiceUpdateInput {
78586
78620
  idleMinutes?: number;
78587
78621
  scaleToZero?: boolean;
78588
78622
  containerPort?: number;
78623
+ /**
78624
+ * Wall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
78625
+ */
78626
+ jobTimeoutSec?: number;
78627
+ /**
78628
+ * What happens when a run is still going at the next tick: 'forbid' (skip the tick), 'allow' (run in parallel) or 'replace' (kill the running one).
78629
+ */
78630
+ jobConcurrency?: ("forbid" | "allow" | "replace");
78589
78631
  buildMachineType?: (("E2_MEDIUM" | "E2_HIGHCPU_8") | null);
78632
+ /**
78633
+ * Pause or resume a scheduled service without losing its schedule.
78634
+ */
78635
+ scheduleSuspended?: boolean;
78590
78636
  }
78591
78637
  export interface DeploymentServiceUpdateInputReadiness {
78592
78638
  path: string;
@@ -78599,6 +78645,7 @@ export interface DeploymentServiceUpdateInputReadiness {
78599
78645
  }
78600
78646
  export interface DeploymentServiceUpdateOutput {
78601
78647
  id: string;
78648
+ mode?: string;
78602
78649
  name: string;
78603
78650
  slug: string;
78604
78651
  probes: {
@@ -78632,10 +78679,19 @@ export interface DeploymentServiceUpdateOutput {
78632
78679
  };
78633
78680
  markdown?: boolean;
78634
78681
  });
78682
+ command?: (string | null);
78683
+ lastRun?: ({
78684
+ id: string;
78685
+ status: string;
78686
+ startedAt: (string | null);
78687
+ finishedAt: (string | null);
78688
+ } | null);
78635
78689
  tracing?: string;
78636
78690
  replicas: number;
78691
+ schedule?: (string | null);
78637
78692
  createdAt: string;
78638
78693
  dependsOn: string[];
78694
+ nextRunAt?: (string | null);
78639
78695
  resources?: {
78640
78696
  limits?: {
78641
78697
  cpu?: string;
@@ -78649,7 +78705,10 @@ export interface DeploymentServiceUpdateOutput {
78649
78705
  scaleToZero: boolean;
78650
78706
  containerPort: number;
78651
78707
  environmentId: string;
78708
+ jobTimeoutSec?: number;
78709
+ jobConcurrency?: string;
78652
78710
  buildMachineType?: (string | null);
78711
+ scheduleSuspended?: boolean;
78653
78712
  suspendedByBilling?: boolean;
78654
78713
  lastReplicasRunning: number;
78655
78714
  scaleToZeroEligibility?: {
@@ -90472,6 +90531,7 @@ export interface OrganizationProductListAccessOutput {
90472
90531
  orgRoles: {
90473
90532
  id: string;
90474
90533
  name: string;
90534
+ description: (string | null);
90475
90535
  }[];
90476
90536
  canManage: boolean;
90477
90537
  inherited: {
@@ -90822,6 +90882,197 @@ export interface OrganizationSupportThreadsListOutput {
90822
90882
  lastMessagePreview: (string | null);
90823
90883
  }[];
90824
90884
  }
90885
+ export interface PlaygroundAnalyticsOverviewInput {
90886
+ /**
90887
+ * Max records per entity in recent[]; omit for the endpoint default
90888
+ */
90889
+ limit?: number;
90890
+ }
90891
+ export interface PlaygroundAnalyticsOverviewOutput {
90892
+ ok: boolean;
90893
+ minted: boolean;
90894
+ overview?: unknown;
90895
+ http_status: number;
90896
+ }
90897
+ export interface PlaygroundBillingEntitlementsInput {
90898
+ }
90899
+ export interface PlaygroundBillingEntitlementsOutput {
90900
+ ok: boolean;
90901
+ minted: boolean;
90902
+ http_status: number;
90903
+ entitlements?: unknown;
90904
+ }
90905
+ export interface PlaygroundBillingRecordUsageInput {
90906
+ /**
90907
+ * Quantity of events to record against playground-events (SUM); defaults to 1
90908
+ */
90909
+ value?: number;
90910
+ }
90911
+ export interface PlaygroundBillingRecordUsageOutput {
90912
+ minted: boolean;
90913
+ accepted: (number | null);
90914
+ recorded: boolean;
90915
+ duplicates: (number | null);
90916
+ http_status: number;
90917
+ }
90918
+ export interface PlaygroundClickupCreateTaskInput {
90919
+ /**
90920
+ * Task title; defaults to a fixture label
90921
+ */
90922
+ name?: string;
90923
+ /**
90924
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
90925
+ */
90926
+ listId?: string;
90927
+ }
90928
+ export interface PlaygroundClickupCreateTaskOutput {
90929
+ minted: boolean;
90930
+ task_id: (string | null);
90931
+ list_status: number;
90932
+ vend_status: number;
90933
+ clickup_status: number;
90934
+ installation_count: number;
90935
+ }
90936
+ export interface PlaygroundClickupGetLastWebhookInput {
90937
+ }
90938
+ export type PlaygroundClickupGetLastWebhookOutput = ({
90939
+ payload: string;
90940
+ event_id: string;
90941
+ provider: string;
90942
+ verified: boolean;
90943
+ product_id: string;
90944
+ occurred_at: string;
90945
+ connector_id: string;
90946
+ clickup_event: (string | null);
90947
+ receipt_count: number;
90948
+ } | {
90949
+ found: false;
90950
+ });
90951
+ export interface PlaygroundClickupGetOverviewInput {
90952
+ }
90953
+ export interface PlaygroundClickupGetOverviewOutput {
90954
+ team: ({
90955
+ teamId: string;
90956
+ teamName: string;
90957
+ } | null);
90958
+ lists: PlaygroundClickupGetOverviewOutputItems[];
90959
+ tasks: {
90960
+ id: string;
90961
+ name: string;
90962
+ status: (string | null);
90963
+ }[];
90964
+ minted: boolean;
90965
+ spaces: PlaygroundClickupGetOverviewOutputItems[];
90966
+ list_status: number;
90967
+ vend_status: number;
90968
+ lists_status: number;
90969
+ tasks_status: number;
90970
+ spaces_status: number;
90971
+ folders_status: number;
90972
+ installation_count: number;
90973
+ }
90974
+ export interface PlaygroundClickupGetOverviewOutputItems {
90975
+ id: string;
90976
+ name: string;
90977
+ }
90978
+ export interface PlaygroundGdriveGetLastChangeInput {
90979
+ }
90980
+ export type PlaygroundGdriveGetLastChangeOutput = ({
90981
+ file_id: string;
90982
+ removed: boolean;
90983
+ file_name: (string | null);
90984
+ mime_type: (string | null);
90985
+ product_id: string;
90986
+ occurred_at: string;
90987
+ connector_id: string;
90988
+ resource_state: string;
90989
+ } | {
90990
+ found: false;
90991
+ });
90992
+ export interface PlaygroundGdriveReadFileInput {
90993
+ /**
90994
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
90995
+ */
90996
+ fileId?: string;
90997
+ }
90998
+ export interface PlaygroundGdriveReadFileOutput {
90999
+ minted: boolean;
91000
+ file_id: (string | null);
91001
+ file_name: (string | null);
91002
+ mime_type: (string | null);
91003
+ file_count: number;
91004
+ get_status: number;
91005
+ list_status: number;
91006
+ vend_status: number;
91007
+ content_bytes: (number | null);
91008
+ }
91009
+ export interface PlaygroundGoogleadsReadCustomerInput {
91010
+ }
91011
+ export interface PlaygroundGoogleadsReadCustomerOutput {
91012
+ minted: boolean;
91013
+ vended: boolean;
91014
+ customer_id: (string | null);
91015
+ vend_status: number;
91016
+ result_count: number;
91017
+ search_status: number;
91018
+ login_customer_id: (string | null);
91019
+ }
91020
+ export interface PlaygroundLifecycleGetStateInput {
91021
+ }
91022
+ export interface PlaygroundLifecycleGetStateOutput {
91023
+ blocked: boolean;
91024
+ archived: boolean;
91025
+ productId: string;
91026
+ lastBlockTransition: ({
91027
+ eventId: string;
91028
+ eventName: string;
91029
+ productId: string;
91030
+ occurredAt: string;
91031
+ recordedAt: string;
91032
+ receiptCount: number;
91033
+ organizationId: string;
91034
+ cascadedFromOrg: boolean;
91035
+ } | null);
91036
+ lastArchiveTransition: ({
91037
+ eventId: string;
91038
+ eventName: string;
91039
+ productId: string;
91040
+ occurredAt: string;
91041
+ recordedAt: string;
91042
+ receiptCount: number;
91043
+ organizationId: string;
91044
+ cascadedFromOrg: boolean;
91045
+ } | null);
91046
+ }
91047
+ export interface PlaygroundLifecycleListEventsInput {
91048
+ }
91049
+ export type PlaygroundLifecycleListEventsOutput = {
91050
+ eventId: string;
91051
+ eventName: string;
91052
+ productId: string;
91053
+ occurredAt: string;
91054
+ recordedAt: string;
91055
+ receiptCount: number;
91056
+ organizationId: string;
91057
+ cascadedFromOrg: boolean;
91058
+ }[];
91059
+ export interface PlaygroundWebhookGetLastInput {
91060
+ }
91061
+ export type PlaygroundWebhookGetLastOutput = ({
91062
+ payload?: unknown;
91063
+ event_id: string;
91064
+ provider: string;
91065
+ verified: boolean;
91066
+ product_id: string;
91067
+ occurred_at: string;
91068
+ connector_id: string;
91069
+ delivery_count: number;
91070
+ } | {
91071
+ found: false;
91072
+ });
91073
+ export interface PlaygroundWsEchoInput {
91074
+ }
91075
+ export type PlaygroundWsEchoOutput = unknown;
90825
91076
  export interface RealtimeArchiveExportInput {
90826
91077
  /**
90827
91078
  * Only entries with ts <= to_ts (epoch ms)