@lessly/sdk-app 56.0.0 → 57.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.
@@ -76630,29 +76630,6 @@ export interface DeploymentAnalyticsQueryOutput {
76630
76630
  truncated: boolean;
76631
76631
  explanation: string;
76632
76632
  }
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
76633
  export interface DeploymentBuildGetInput {
76657
76634
  id: string;
76658
76635
  }
@@ -76725,6 +76702,7 @@ export interface DeploymentCanvasGetOutput {
76725
76702
  }[];
76726
76703
  services: {
76727
76704
  id: string;
76705
+ mode?: string;
76728
76706
  name: string;
76729
76707
  slug: string;
76730
76708
  probes: {
@@ -76758,10 +76736,19 @@ export interface DeploymentCanvasGetOutput {
76758
76736
  };
76759
76737
  markdown?: boolean;
76760
76738
  });
76739
+ command?: (string | null);
76740
+ lastRun?: ({
76741
+ id: string;
76742
+ status: string;
76743
+ startedAt: (string | null);
76744
+ finishedAt: (string | null);
76745
+ } | null);
76761
76746
  tracing?: string;
76762
76747
  replicas: number;
76748
+ schedule?: (string | null);
76763
76749
  createdAt: string;
76764
76750
  dependsOn: string[];
76751
+ nextRunAt?: (string | null);
76765
76752
  resources?: {
76766
76753
  limits?: {
76767
76754
  cpu?: string;
@@ -76775,7 +76762,10 @@ export interface DeploymentCanvasGetOutput {
76775
76762
  scaleToZero: boolean;
76776
76763
  containerPort: number;
76777
76764
  environmentId: string;
76765
+ jobTimeoutSec?: number;
76766
+ jobConcurrency?: string;
76778
76767
  buildMachineType?: (string | null);
76768
+ scheduleSuspended?: boolean;
76779
76769
  suspendedByBilling?: boolean;
76780
76770
  lastReplicasRunning: number;
76781
76771
  scaleToZeroEligibility?: {
@@ -77689,6 +77679,58 @@ export type DeploymentEventsListByServiceOutput = {
77689
77679
  deploymentId: (string | null);
77690
77680
  environmentId: (string | null);
77691
77681
  }[];
77682
+ export interface DeploymentJobRunInput {
77683
+ serviceId: string;
77684
+ }
77685
+ export interface DeploymentJobRunOutput {
77686
+ id: string;
77687
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
77688
+ trigger: ("schedule" | "manual");
77689
+ exitCode: (number | null);
77690
+ createdAt: string;
77691
+ serviceId: string;
77692
+ startedAt: (string | null);
77693
+ finishedAt: (string | null);
77694
+ k8sJobName: string;
77695
+ imageDigest: (string | null);
77696
+ triggeredBy: (string | null);
77697
+ deploymentId: (string | null);
77698
+ environmentId: string;
77699
+ failureReason: (string | null);
77700
+ }
77701
+ export interface DeploymentJobRunLogsInput {
77702
+ runId: string;
77703
+ serviceId: string;
77704
+ }
77705
+ export interface DeploymentJobRunLogsOutput {
77706
+ live: boolean;
77707
+ logs: string;
77708
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
77709
+ }
77710
+ export interface DeploymentJobRunsListInput {
77711
+ limit?: number;
77712
+ cursor?: string;
77713
+ serviceId: string;
77714
+ }
77715
+ export interface DeploymentJobRunsListOutput {
77716
+ items: {
77717
+ id: string;
77718
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
77719
+ trigger: ("schedule" | "manual");
77720
+ exitCode: (number | null);
77721
+ createdAt: string;
77722
+ serviceId: string;
77723
+ startedAt: (string | null);
77724
+ finishedAt: (string | null);
77725
+ k8sJobName: string;
77726
+ imageDigest: (string | null);
77727
+ triggeredBy: (string | null);
77728
+ deploymentId: (string | null);
77729
+ environmentId: string;
77730
+ failureReason: (string | null);
77731
+ }[];
77732
+ nextCursor: (string | null);
77733
+ }
77692
77734
  export interface DeploymentManagedServiceBackupInput {
77693
77735
  id: string;
77694
77736
  }
@@ -78092,6 +78134,10 @@ export interface DeploymentPreviewPolicySetOutput {
78092
78134
  baseEnvironmentId: string;
78093
78135
  }
78094
78136
  export interface DeploymentServiceCreateInput {
78137
+ /**
78138
+ * 'persistent' (a long-running Deployment behind a Service — the default) or 'scheduled' (a k8s CronJob: no port, no replicas, no route). Immutable after create.
78139
+ */
78140
+ mode?: ("persistent" | "scheduled");
78095
78141
  name: string;
78096
78142
  slug?: string;
78097
78143
  canvas?: {
@@ -78129,11 +78175,19 @@ export interface DeploymentServiceCreateInput {
78129
78175
  };
78130
78176
  markdown?: boolean;
78131
78177
  });
78178
+ /**
78179
+ * 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.
78180
+ */
78181
+ command?: (string | null);
78132
78182
  /**
78133
78183
  * 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
78184
  */
78135
78185
  tracing?: ("off" | "node" | "python");
78136
78186
  replicas?: number;
78187
+ /**
78188
+ * Five-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
78189
+ */
78190
+ schedule?: (string | null);
78137
78191
  resources?: {
78138
78192
  limits?: {
78139
78193
  cpu?: string;
@@ -78142,6 +78196,14 @@ export interface DeploymentServiceCreateInput {
78142
78196
  };
78143
78197
  containerPort?: number;
78144
78198
  environmentId: string;
78199
+ /**
78200
+ * Wall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
78201
+ */
78202
+ jobTimeoutSec?: number;
78203
+ /**
78204
+ * 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).
78205
+ */
78206
+ jobConcurrency?: ("forbid" | "allow" | "replace");
78145
78207
  }
78146
78208
  export interface DeploymentServiceCreateInputReadiness {
78147
78209
  path: string;
@@ -78154,6 +78216,7 @@ export interface DeploymentServiceCreateInputReadiness {
78154
78216
  }
78155
78217
  export interface DeploymentServiceCreateOutput {
78156
78218
  id: string;
78219
+ mode?: string;
78157
78220
  name: string;
78158
78221
  slug: string;
78159
78222
  probes: {
@@ -78187,10 +78250,19 @@ export interface DeploymentServiceCreateOutput {
78187
78250
  };
78188
78251
  markdown?: boolean;
78189
78252
  });
78253
+ command?: (string | null);
78254
+ lastRun?: ({
78255
+ id: string;
78256
+ status: string;
78257
+ startedAt: (string | null);
78258
+ finishedAt: (string | null);
78259
+ } | null);
78190
78260
  tracing?: string;
78191
78261
  replicas: number;
78262
+ schedule?: (string | null);
78192
78263
  createdAt: string;
78193
78264
  dependsOn: string[];
78265
+ nextRunAt?: (string | null);
78194
78266
  resources?: {
78195
78267
  limits?: {
78196
78268
  cpu?: string;
@@ -78204,7 +78276,10 @@ export interface DeploymentServiceCreateOutput {
78204
78276
  scaleToZero: boolean;
78205
78277
  containerPort: number;
78206
78278
  environmentId: string;
78279
+ jobTimeoutSec?: number;
78280
+ jobConcurrency?: string;
78207
78281
  buildMachineType?: (string | null);
78282
+ scheduleSuspended?: boolean;
78208
78283
  suspendedByBilling?: boolean;
78209
78284
  lastReplicasRunning: number;
78210
78285
  scaleToZeroEligibility?: {
@@ -78255,6 +78330,7 @@ export interface DeploymentServiceGetInput {
78255
78330
  }
78256
78331
  export interface DeploymentServiceGetOutput {
78257
78332
  id: string;
78333
+ mode?: string;
78258
78334
  name: string;
78259
78335
  slug: string;
78260
78336
  probes: {
@@ -78288,10 +78364,19 @@ export interface DeploymentServiceGetOutput {
78288
78364
  };
78289
78365
  markdown?: boolean;
78290
78366
  });
78367
+ command?: (string | null);
78368
+ lastRun?: ({
78369
+ id: string;
78370
+ status: string;
78371
+ startedAt: (string | null);
78372
+ finishedAt: (string | null);
78373
+ } | null);
78291
78374
  tracing?: string;
78292
78375
  replicas: number;
78376
+ schedule?: (string | null);
78293
78377
  createdAt: string;
78294
78378
  dependsOn: string[];
78379
+ nextRunAt?: (string | null);
78295
78380
  resources?: {
78296
78381
  limits?: {
78297
78382
  cpu?: string;
@@ -78305,7 +78390,10 @@ export interface DeploymentServiceGetOutput {
78305
78390
  scaleToZero: boolean;
78306
78391
  containerPort: number;
78307
78392
  environmentId: string;
78393
+ jobTimeoutSec?: number;
78394
+ jobConcurrency?: string;
78308
78395
  buildMachineType?: (string | null);
78396
+ scheduleSuspended?: boolean;
78309
78397
  suspendedByBilling?: boolean;
78310
78398
  lastReplicasRunning: number;
78311
78399
  scaleToZeroEligibility?: {
@@ -78327,6 +78415,7 @@ export interface DeploymentServiceListInput {
78327
78415
  }
78328
78416
  export type DeploymentServiceListOutput = {
78329
78417
  id: string;
78418
+ mode?: string;
78330
78419
  name: string;
78331
78420
  slug: string;
78332
78421
  probes: {
@@ -78360,10 +78449,19 @@ export type DeploymentServiceListOutput = {
78360
78449
  };
78361
78450
  markdown?: boolean;
78362
78451
  });
78452
+ command?: (string | null);
78453
+ lastRun?: ({
78454
+ id: string;
78455
+ status: string;
78456
+ startedAt: (string | null);
78457
+ finishedAt: (string | null);
78458
+ } | null);
78363
78459
  tracing?: string;
78364
78460
  replicas: number;
78461
+ schedule?: (string | null);
78365
78462
  createdAt: string;
78366
78463
  dependsOn: string[];
78464
+ nextRunAt?: (string | null);
78367
78465
  resources?: {
78368
78466
  limits?: {
78369
78467
  cpu?: string;
@@ -78377,7 +78475,10 @@ export type DeploymentServiceListOutput = {
78377
78475
  scaleToZero: boolean;
78378
78476
  containerPort: number;
78379
78477
  environmentId: string;
78478
+ jobTimeoutSec?: number;
78479
+ jobConcurrency?: string;
78380
78480
  buildMachineType?: (string | null);
78481
+ scheduleSuspended?: boolean;
78381
78482
  suspendedByBilling?: boolean;
78382
78483
  lastReplicasRunning: number;
78383
78484
  scaleToZeroEligibility?: {
@@ -78467,6 +78568,7 @@ export interface DeploymentServiceScaleInput {
78467
78568
  }
78468
78569
  export interface DeploymentServiceScaleOutput {
78469
78570
  id: string;
78571
+ mode?: string;
78470
78572
  name: string;
78471
78573
  slug: string;
78472
78574
  probes: {
@@ -78500,10 +78602,19 @@ export interface DeploymentServiceScaleOutput {
78500
78602
  };
78501
78603
  markdown?: boolean;
78502
78604
  });
78605
+ command?: (string | null);
78606
+ lastRun?: ({
78607
+ id: string;
78608
+ status: string;
78609
+ startedAt: (string | null);
78610
+ finishedAt: (string | null);
78611
+ } | null);
78503
78612
  tracing?: string;
78504
78613
  replicas: number;
78614
+ schedule?: (string | null);
78505
78615
  createdAt: string;
78506
78616
  dependsOn: string[];
78617
+ nextRunAt?: (string | null);
78507
78618
  resources?: {
78508
78619
  limits?: {
78509
78620
  cpu?: string;
@@ -78517,7 +78628,10 @@ export interface DeploymentServiceScaleOutput {
78517
78628
  scaleToZero: boolean;
78518
78629
  containerPort: number;
78519
78630
  environmentId: string;
78631
+ jobTimeoutSec?: number;
78632
+ jobConcurrency?: string;
78520
78633
  buildMachineType?: (string | null);
78634
+ scheduleSuspended?: boolean;
78521
78635
  suspendedByBilling?: boolean;
78522
78636
  lastReplicasRunning: number;
78523
78637
  scaleToZeroEligibility?: {
@@ -78536,6 +78650,7 @@ export interface DeploymentServiceScaleOutputReadiness {
78536
78650
  }
78537
78651
  export interface DeploymentServiceUpdateInput {
78538
78652
  id: string;
78653
+ mode?: unknown;
78539
78654
  name?: string;
78540
78655
  probes?: {
78541
78656
  liveness?: DeploymentServiceUpdateInputReadiness;
@@ -78568,11 +78683,19 @@ export interface DeploymentServiceUpdateInput {
78568
78683
  };
78569
78684
  markdown?: boolean;
78570
78685
  });
78686
+ /**
78687
+ * 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.
78688
+ */
78689
+ command?: (string | null);
78571
78690
  /**
78572
78691
  * 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
78692
  */
78574
78693
  tracing?: ("off" | "node" | "python");
78575
78694
  replicas?: number;
78695
+ /**
78696
+ * Five-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
78697
+ */
78698
+ schedule?: (string | null);
78576
78699
  resources?: {
78577
78700
  limits?: {
78578
78701
  cpu?: string;
@@ -78586,7 +78709,19 @@ export interface DeploymentServiceUpdateInput {
78586
78709
  idleMinutes?: number;
78587
78710
  scaleToZero?: boolean;
78588
78711
  containerPort?: number;
78712
+ /**
78713
+ * Wall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
78714
+ */
78715
+ jobTimeoutSec?: number;
78716
+ /**
78717
+ * 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).
78718
+ */
78719
+ jobConcurrency?: ("forbid" | "allow" | "replace");
78589
78720
  buildMachineType?: (("E2_MEDIUM" | "E2_HIGHCPU_8") | null);
78721
+ /**
78722
+ * Pause or resume a scheduled service without losing its schedule.
78723
+ */
78724
+ scheduleSuspended?: boolean;
78590
78725
  }
78591
78726
  export interface DeploymentServiceUpdateInputReadiness {
78592
78727
  path: string;
@@ -78599,6 +78734,7 @@ export interface DeploymentServiceUpdateInputReadiness {
78599
78734
  }
78600
78735
  export interface DeploymentServiceUpdateOutput {
78601
78736
  id: string;
78737
+ mode?: string;
78602
78738
  name: string;
78603
78739
  slug: string;
78604
78740
  probes: {
@@ -78632,10 +78768,19 @@ export interface DeploymentServiceUpdateOutput {
78632
78768
  };
78633
78769
  markdown?: boolean;
78634
78770
  });
78771
+ command?: (string | null);
78772
+ lastRun?: ({
78773
+ id: string;
78774
+ status: string;
78775
+ startedAt: (string | null);
78776
+ finishedAt: (string | null);
78777
+ } | null);
78635
78778
  tracing?: string;
78636
78779
  replicas: number;
78780
+ schedule?: (string | null);
78637
78781
  createdAt: string;
78638
78782
  dependsOn: string[];
78783
+ nextRunAt?: (string | null);
78639
78784
  resources?: {
78640
78785
  limits?: {
78641
78786
  cpu?: string;
@@ -78649,7 +78794,10 @@ export interface DeploymentServiceUpdateOutput {
78649
78794
  scaleToZero: boolean;
78650
78795
  containerPort: number;
78651
78796
  environmentId: string;
78797
+ jobTimeoutSec?: number;
78798
+ jobConcurrency?: string;
78652
78799
  buildMachineType?: (string | null);
78800
+ scheduleSuspended?: boolean;
78653
78801
  suspendedByBilling?: boolean;
78654
78802
  lastReplicasRunning: number;
78655
78803
  scaleToZeroEligibility?: {
@@ -25,10 +25,6 @@ var deploymentAnalyticsQueryQueryOptions = (sdk, input) => ({
25
25
  queryKey: ["deployment", "analytics", "query", input],
26
26
  queryFn: () => sdk["deployment"]["analytics"]["query"](input)
27
27
  });
28
- var deploymentAuditListQueryOptions = (sdk, input) => ({
29
- queryKey: ["deployment", "audit", "list", input],
30
- queryFn: () => sdk["deployment"]["audit"]["list"](input)
31
- });
32
28
  var deploymentBuildGetQueryOptions = (sdk, input) => ({
33
29
  queryKey: ["deployment", "build", "get", input],
34
30
  queryFn: () => sdk["deployment"]["build"]["get"](input)
@@ -209,6 +205,18 @@ var deploymentEventsListByServiceQueryOptions = (sdk, input) => ({
209
205
  queryKey: ["deployment", "events-list-by", "service", input],
210
206
  queryFn: () => sdk["deployment"]["events-list-by"]["service"](input)
211
207
  });
208
+ var deploymentJobRunMutationOptions = (sdk) => ({
209
+ mutationKey: ["deployment", "job", "run"],
210
+ mutationFn: (input) => sdk["deployment"]["job"]["run"](input)
211
+ });
212
+ var deploymentJobRunLogsQueryOptions = (sdk, input) => ({
213
+ queryKey: ["deployment", "job-run", "logs", input],
214
+ queryFn: () => sdk["deployment"]["job-run"]["logs"](input)
215
+ });
216
+ var deploymentJobRunsListQueryOptions = (sdk, input) => ({
217
+ queryKey: ["deployment", "job-runs", "list", input],
218
+ queryFn: () => sdk["deployment"]["job-runs"]["list"](input)
219
+ });
212
220
  var deploymentManagedServiceBackupMutationOptions = (sdk) => ({
213
221
  mutationKey: ["deployment", "managed-service", "backup"],
214
222
  mutationFn: (input) => sdk["deployment"]["managed-service"]["backup"](input)
@@ -436,7 +444,6 @@ exports.deploymentAlertEventsListQueryOptions = deploymentAlertEventsListQueryOp
436
444
  exports.deploymentAlertListQueryOptions = deploymentAlertListQueryOptions;
437
445
  exports.deploymentAlertUpdateMutationOptions = deploymentAlertUpdateMutationOptions;
438
446
  exports.deploymentAnalyticsQueryQueryOptions = deploymentAnalyticsQueryQueryOptions;
439
- exports.deploymentAuditListQueryOptions = deploymentAuditListQueryOptions;
440
447
  exports.deploymentBuildGetQueryOptions = deploymentBuildGetQueryOptions;
441
448
  exports.deploymentBuildListQueryOptions = deploymentBuildListQueryOptions;
442
449
  exports.deploymentBuildLogsQueryOptions = deploymentBuildLogsQueryOptions;
@@ -482,6 +489,9 @@ exports.deploymentEnvironmentReconcileMutationOptions = deploymentEnvironmentRec
482
489
  exports.deploymentEnvironmentUpdateMutationOptions = deploymentEnvironmentUpdateMutationOptions;
483
490
  exports.deploymentEventsListByEnvironmentQueryOptions = deploymentEventsListByEnvironmentQueryOptions;
484
491
  exports.deploymentEventsListByServiceQueryOptions = deploymentEventsListByServiceQueryOptions;
492
+ exports.deploymentJobRunLogsQueryOptions = deploymentJobRunLogsQueryOptions;
493
+ exports.deploymentJobRunMutationOptions = deploymentJobRunMutationOptions;
494
+ exports.deploymentJobRunsListQueryOptions = deploymentJobRunsListQueryOptions;
485
495
  exports.deploymentManagedServiceBackupListQueryOptions = deploymentManagedServiceBackupListQueryOptions;
486
496
  exports.deploymentManagedServiceBackupMutationOptions = deploymentManagedServiceBackupMutationOptions;
487
497
  exports.deploymentManagedServiceConnectInfoQueryOptions = deploymentManagedServiceConnectInfoQueryOptions;