@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.
- package/dist/_types/gen/client.gen.d.ts +10 -4
- package/dist/_types/gen/deployment/index.d.ts +1 -1
- package/dist/_types/gen/deployment/queryOptions.gen.d.ts +13 -5
- package/dist/_types/gen/types.gen.d.ts +171 -23
- package/dist/deployment/index.cjs +15 -5
- package/dist/deployment/index.cjs.map +1 -1
- package/dist/deployment/index.js +13 -5
- package/dist/deployment/index.js.map +1 -1
- package/dist/index.cjs +95 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +95 -33
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +95 -33
- package/src/gen/client.gen.ts +15 -5
- package/src/gen/deployment/index.ts +1 -1
- package/src/gen/deployment/queryOptions.gen.ts +20 -7
- package/src/gen/types.gen.ts +177 -25
package/src/gen/types.gen.ts
CHANGED
|
@@ -71085,31 +71085,6 @@ truncated: boolean
|
|
|
71085
71085
|
explanation: string
|
|
71086
71086
|
}
|
|
71087
71087
|
|
|
71088
|
-
export interface DeploymentAuditListInput {
|
|
71089
|
-
limit?: number
|
|
71090
|
-
action?: string
|
|
71091
|
-
actorId?: string
|
|
71092
|
-
serviceId?: string
|
|
71093
|
-
entityType?: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session")
|
|
71094
|
-
environmentId: string
|
|
71095
|
-
}
|
|
71096
|
-
|
|
71097
|
-
export type DeploymentAuditListOutput = {
|
|
71098
|
-
id: string
|
|
71099
|
-
action: string
|
|
71100
|
-
actorId: string
|
|
71101
|
-
entityId: (string | null)
|
|
71102
|
-
metadata: {
|
|
71103
|
-
[k: string]: unknown
|
|
71104
|
-
}
|
|
71105
|
-
createdAt: string
|
|
71106
|
-
productId: string
|
|
71107
|
-
serviceId: (string | null)
|
|
71108
|
-
actorEmail: string
|
|
71109
|
-
entityType: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session")
|
|
71110
|
-
environmentId: (string | null)
|
|
71111
|
-
}[]
|
|
71112
|
-
|
|
71113
71088
|
export interface DeploymentBuildGetInput {
|
|
71114
71089
|
id: string
|
|
71115
71090
|
}
|
|
@@ -71189,6 +71164,7 @@ updatedAt: string
|
|
|
71189
71164
|
}[]
|
|
71190
71165
|
services: {
|
|
71191
71166
|
id: string
|
|
71167
|
+
mode?: string
|
|
71192
71168
|
name: string
|
|
71193
71169
|
slug: string
|
|
71194
71170
|
probes: {
|
|
@@ -71222,10 +71198,19 @@ outputDir?: string
|
|
|
71222
71198
|
}
|
|
71223
71199
|
markdown?: boolean
|
|
71224
71200
|
})
|
|
71201
|
+
command?: (string | null)
|
|
71202
|
+
lastRun?: ({
|
|
71203
|
+
id: string
|
|
71204
|
+
status: string
|
|
71205
|
+
startedAt: (string | null)
|
|
71206
|
+
finishedAt: (string | null)
|
|
71207
|
+
} | null)
|
|
71225
71208
|
tracing?: string
|
|
71226
71209
|
replicas: number
|
|
71210
|
+
schedule?: (string | null)
|
|
71227
71211
|
createdAt: string
|
|
71228
71212
|
dependsOn: string[]
|
|
71213
|
+
nextRunAt?: (string | null)
|
|
71229
71214
|
resources?: {
|
|
71230
71215
|
limits?: {
|
|
71231
71216
|
cpu?: string
|
|
@@ -71239,7 +71224,10 @@ idleMinutes: number
|
|
|
71239
71224
|
scaleToZero: boolean
|
|
71240
71225
|
containerPort: number
|
|
71241
71226
|
environmentId: string
|
|
71227
|
+
jobTimeoutSec?: number
|
|
71228
|
+
jobConcurrency?: string
|
|
71242
71229
|
buildMachineType?: (string | null)
|
|
71230
|
+
scheduleSuspended?: boolean
|
|
71243
71231
|
suspendedByBilling?: boolean
|
|
71244
71232
|
lastReplicasRunning: number
|
|
71245
71233
|
scaleToZeroEligibility?: {
|
|
@@ -72240,6 +72228,64 @@ deploymentId: (string | null)
|
|
|
72240
72228
|
environmentId: (string | null)
|
|
72241
72229
|
}[]
|
|
72242
72230
|
|
|
72231
|
+
export interface DeploymentJobRunInput {
|
|
72232
|
+
serviceId: string
|
|
72233
|
+
}
|
|
72234
|
+
|
|
72235
|
+
export interface DeploymentJobRunOutput {
|
|
72236
|
+
id: string
|
|
72237
|
+
status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped")
|
|
72238
|
+
trigger: ("schedule" | "manual")
|
|
72239
|
+
exitCode: (number | null)
|
|
72240
|
+
createdAt: string
|
|
72241
|
+
serviceId: string
|
|
72242
|
+
startedAt: (string | null)
|
|
72243
|
+
finishedAt: (string | null)
|
|
72244
|
+
k8sJobName: string
|
|
72245
|
+
imageDigest: (string | null)
|
|
72246
|
+
triggeredBy: (string | null)
|
|
72247
|
+
deploymentId: (string | null)
|
|
72248
|
+
environmentId: string
|
|
72249
|
+
failureReason: (string | null)
|
|
72250
|
+
}
|
|
72251
|
+
|
|
72252
|
+
export interface DeploymentJobRunLogsInput {
|
|
72253
|
+
runId: string
|
|
72254
|
+
serviceId: string
|
|
72255
|
+
}
|
|
72256
|
+
|
|
72257
|
+
export interface DeploymentJobRunLogsOutput {
|
|
72258
|
+
live: boolean
|
|
72259
|
+
logs: string
|
|
72260
|
+
status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped")
|
|
72261
|
+
}
|
|
72262
|
+
|
|
72263
|
+
export interface DeploymentJobRunsListInput {
|
|
72264
|
+
limit?: number
|
|
72265
|
+
cursor?: string
|
|
72266
|
+
serviceId: string
|
|
72267
|
+
}
|
|
72268
|
+
|
|
72269
|
+
export interface DeploymentJobRunsListOutput {
|
|
72270
|
+
items: {
|
|
72271
|
+
id: string
|
|
72272
|
+
status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped")
|
|
72273
|
+
trigger: ("schedule" | "manual")
|
|
72274
|
+
exitCode: (number | null)
|
|
72275
|
+
createdAt: string
|
|
72276
|
+
serviceId: string
|
|
72277
|
+
startedAt: (string | null)
|
|
72278
|
+
finishedAt: (string | null)
|
|
72279
|
+
k8sJobName: string
|
|
72280
|
+
imageDigest: (string | null)
|
|
72281
|
+
triggeredBy: (string | null)
|
|
72282
|
+
deploymentId: (string | null)
|
|
72283
|
+
environmentId: string
|
|
72284
|
+
failureReason: (string | null)
|
|
72285
|
+
}[]
|
|
72286
|
+
nextCursor: (string | null)
|
|
72287
|
+
}
|
|
72288
|
+
|
|
72243
72289
|
export interface DeploymentManagedServiceBackupInput {
|
|
72244
72290
|
id: string
|
|
72245
72291
|
}
|
|
@@ -72685,6 +72731,10 @@ baseEnvironmentId: string
|
|
|
72685
72731
|
}
|
|
72686
72732
|
|
|
72687
72733
|
export interface DeploymentServiceCreateInput {
|
|
72734
|
+
/**
|
|
72735
|
+
* 'persistent' (a long-running Deployment behind a Service — the default) or 'scheduled' (a k8s CronJob: no port, no replicas, no route). Immutable after create.
|
|
72736
|
+
*/
|
|
72737
|
+
mode?: ("persistent" | "scheduled")
|
|
72688
72738
|
name: string
|
|
72689
72739
|
slug?: string
|
|
72690
72740
|
canvas?: {
|
|
@@ -72722,11 +72772,19 @@ outputDir?: string
|
|
|
72722
72772
|
}
|
|
72723
72773
|
markdown?: boolean
|
|
72724
72774
|
})
|
|
72775
|
+
/**
|
|
72776
|
+
* 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.
|
|
72777
|
+
*/
|
|
72778
|
+
command?: (string | null)
|
|
72725
72779
|
/**
|
|
72726
72780
|
* 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.
|
|
72727
72781
|
*/
|
|
72728
72782
|
tracing?: ("off" | "node" | "python")
|
|
72729
72783
|
replicas?: number
|
|
72784
|
+
/**
|
|
72785
|
+
* Five-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
|
|
72786
|
+
*/
|
|
72787
|
+
schedule?: (string | null)
|
|
72730
72788
|
resources?: {
|
|
72731
72789
|
limits?: {
|
|
72732
72790
|
cpu?: string
|
|
@@ -72735,6 +72793,14 @@ memory?: string
|
|
|
72735
72793
|
}
|
|
72736
72794
|
containerPort?: number
|
|
72737
72795
|
environmentId: string
|
|
72796
|
+
/**
|
|
72797
|
+
* Wall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
|
|
72798
|
+
*/
|
|
72799
|
+
jobTimeoutSec?: number
|
|
72800
|
+
/**
|
|
72801
|
+
* 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).
|
|
72802
|
+
*/
|
|
72803
|
+
jobConcurrency?: ("forbid" | "allow" | "replace")
|
|
72738
72804
|
}
|
|
72739
72805
|
export interface DeploymentServiceCreateInputReadiness {
|
|
72740
72806
|
path: string
|
|
@@ -72748,6 +72814,7 @@ initialDelaySeconds?: number
|
|
|
72748
72814
|
|
|
72749
72815
|
export interface DeploymentServiceCreateOutput {
|
|
72750
72816
|
id: string
|
|
72817
|
+
mode?: string
|
|
72751
72818
|
name: string
|
|
72752
72819
|
slug: string
|
|
72753
72820
|
probes: {
|
|
@@ -72781,10 +72848,19 @@ outputDir?: string
|
|
|
72781
72848
|
}
|
|
72782
72849
|
markdown?: boolean
|
|
72783
72850
|
})
|
|
72851
|
+
command?: (string | null)
|
|
72852
|
+
lastRun?: ({
|
|
72853
|
+
id: string
|
|
72854
|
+
status: string
|
|
72855
|
+
startedAt: (string | null)
|
|
72856
|
+
finishedAt: (string | null)
|
|
72857
|
+
} | null)
|
|
72784
72858
|
tracing?: string
|
|
72785
72859
|
replicas: number
|
|
72860
|
+
schedule?: (string | null)
|
|
72786
72861
|
createdAt: string
|
|
72787
72862
|
dependsOn: string[]
|
|
72863
|
+
nextRunAt?: (string | null)
|
|
72788
72864
|
resources?: {
|
|
72789
72865
|
limits?: {
|
|
72790
72866
|
cpu?: string
|
|
@@ -72798,7 +72874,10 @@ idleMinutes: number
|
|
|
72798
72874
|
scaleToZero: boolean
|
|
72799
72875
|
containerPort: number
|
|
72800
72876
|
environmentId: string
|
|
72877
|
+
jobTimeoutSec?: number
|
|
72878
|
+
jobConcurrency?: string
|
|
72801
72879
|
buildMachineType?: (string | null)
|
|
72880
|
+
scheduleSuspended?: boolean
|
|
72802
72881
|
suspendedByBilling?: boolean
|
|
72803
72882
|
lastReplicasRunning: number
|
|
72804
72883
|
scaleToZeroEligibility?: {
|
|
@@ -72855,6 +72934,7 @@ id: string
|
|
|
72855
72934
|
|
|
72856
72935
|
export interface DeploymentServiceGetOutput {
|
|
72857
72936
|
id: string
|
|
72937
|
+
mode?: string
|
|
72858
72938
|
name: string
|
|
72859
72939
|
slug: string
|
|
72860
72940
|
probes: {
|
|
@@ -72888,10 +72968,19 @@ outputDir?: string
|
|
|
72888
72968
|
}
|
|
72889
72969
|
markdown?: boolean
|
|
72890
72970
|
})
|
|
72971
|
+
command?: (string | null)
|
|
72972
|
+
lastRun?: ({
|
|
72973
|
+
id: string
|
|
72974
|
+
status: string
|
|
72975
|
+
startedAt: (string | null)
|
|
72976
|
+
finishedAt: (string | null)
|
|
72977
|
+
} | null)
|
|
72891
72978
|
tracing?: string
|
|
72892
72979
|
replicas: number
|
|
72980
|
+
schedule?: (string | null)
|
|
72893
72981
|
createdAt: string
|
|
72894
72982
|
dependsOn: string[]
|
|
72983
|
+
nextRunAt?: (string | null)
|
|
72895
72984
|
resources?: {
|
|
72896
72985
|
limits?: {
|
|
72897
72986
|
cpu?: string
|
|
@@ -72905,7 +72994,10 @@ idleMinutes: number
|
|
|
72905
72994
|
scaleToZero: boolean
|
|
72906
72995
|
containerPort: number
|
|
72907
72996
|
environmentId: string
|
|
72997
|
+
jobTimeoutSec?: number
|
|
72998
|
+
jobConcurrency?: string
|
|
72908
72999
|
buildMachineType?: (string | null)
|
|
73000
|
+
scheduleSuspended?: boolean
|
|
72909
73001
|
suspendedByBilling?: boolean
|
|
72910
73002
|
lastReplicasRunning: number
|
|
72911
73003
|
scaleToZeroEligibility?: {
|
|
@@ -72929,6 +73021,7 @@ environmentId: string
|
|
|
72929
73021
|
|
|
72930
73022
|
export type DeploymentServiceListOutput = {
|
|
72931
73023
|
id: string
|
|
73024
|
+
mode?: string
|
|
72932
73025
|
name: string
|
|
72933
73026
|
slug: string
|
|
72934
73027
|
probes: {
|
|
@@ -72962,10 +73055,19 @@ outputDir?: string
|
|
|
72962
73055
|
}
|
|
72963
73056
|
markdown?: boolean
|
|
72964
73057
|
})
|
|
73058
|
+
command?: (string | null)
|
|
73059
|
+
lastRun?: ({
|
|
73060
|
+
id: string
|
|
73061
|
+
status: string
|
|
73062
|
+
startedAt: (string | null)
|
|
73063
|
+
finishedAt: (string | null)
|
|
73064
|
+
} | null)
|
|
72965
73065
|
tracing?: string
|
|
72966
73066
|
replicas: number
|
|
73067
|
+
schedule?: (string | null)
|
|
72967
73068
|
createdAt: string
|
|
72968
73069
|
dependsOn: string[]
|
|
73070
|
+
nextRunAt?: (string | null)
|
|
72969
73071
|
resources?: {
|
|
72970
73072
|
limits?: {
|
|
72971
73073
|
cpu?: string
|
|
@@ -72979,7 +73081,10 @@ idleMinutes: number
|
|
|
72979
73081
|
scaleToZero: boolean
|
|
72980
73082
|
containerPort: number
|
|
72981
73083
|
environmentId: string
|
|
73084
|
+
jobTimeoutSec?: number
|
|
73085
|
+
jobConcurrency?: string
|
|
72982
73086
|
buildMachineType?: (string | null)
|
|
73087
|
+
scheduleSuspended?: boolean
|
|
72983
73088
|
suspendedByBilling?: boolean
|
|
72984
73089
|
lastReplicasRunning: number
|
|
72985
73090
|
scaleToZeroEligibility?: {
|
|
@@ -73080,6 +73185,7 @@ replicas: number
|
|
|
73080
73185
|
|
|
73081
73186
|
export interface DeploymentServiceScaleOutput {
|
|
73082
73187
|
id: string
|
|
73188
|
+
mode?: string
|
|
73083
73189
|
name: string
|
|
73084
73190
|
slug: string
|
|
73085
73191
|
probes: {
|
|
@@ -73113,10 +73219,19 @@ outputDir?: string
|
|
|
73113
73219
|
}
|
|
73114
73220
|
markdown?: boolean
|
|
73115
73221
|
})
|
|
73222
|
+
command?: (string | null)
|
|
73223
|
+
lastRun?: ({
|
|
73224
|
+
id: string
|
|
73225
|
+
status: string
|
|
73226
|
+
startedAt: (string | null)
|
|
73227
|
+
finishedAt: (string | null)
|
|
73228
|
+
} | null)
|
|
73116
73229
|
tracing?: string
|
|
73117
73230
|
replicas: number
|
|
73231
|
+
schedule?: (string | null)
|
|
73118
73232
|
createdAt: string
|
|
73119
73233
|
dependsOn: string[]
|
|
73234
|
+
nextRunAt?: (string | null)
|
|
73120
73235
|
resources?: {
|
|
73121
73236
|
limits?: {
|
|
73122
73237
|
cpu?: string
|
|
@@ -73130,7 +73245,10 @@ idleMinutes: number
|
|
|
73130
73245
|
scaleToZero: boolean
|
|
73131
73246
|
containerPort: number
|
|
73132
73247
|
environmentId: string
|
|
73248
|
+
jobTimeoutSec?: number
|
|
73249
|
+
jobConcurrency?: string
|
|
73133
73250
|
buildMachineType?: (string | null)
|
|
73251
|
+
scheduleSuspended?: boolean
|
|
73134
73252
|
suspendedByBilling?: boolean
|
|
73135
73253
|
lastReplicasRunning: number
|
|
73136
73254
|
scaleToZeroEligibility?: {
|
|
@@ -73150,6 +73268,7 @@ initialDelaySeconds?: number
|
|
|
73150
73268
|
|
|
73151
73269
|
export interface DeploymentServiceUpdateInput {
|
|
73152
73270
|
id: string
|
|
73271
|
+
mode?: unknown
|
|
73153
73272
|
name?: string
|
|
73154
73273
|
probes?: {
|
|
73155
73274
|
liveness?: DeploymentServiceUpdateInputReadiness
|
|
@@ -73182,11 +73301,19 @@ outputDir?: string
|
|
|
73182
73301
|
}
|
|
73183
73302
|
markdown?: boolean
|
|
73184
73303
|
})
|
|
73304
|
+
/**
|
|
73305
|
+
* 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.
|
|
73306
|
+
*/
|
|
73307
|
+
command?: (string | null)
|
|
73185
73308
|
/**
|
|
73186
73309
|
* 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.
|
|
73187
73310
|
*/
|
|
73188
73311
|
tracing?: ("off" | "node" | "python")
|
|
73189
73312
|
replicas?: number
|
|
73313
|
+
/**
|
|
73314
|
+
* Five-field UTC cron expression (minute hour day-of-month month day-of-week), or null for a scheduled service with no schedule yet.
|
|
73315
|
+
*/
|
|
73316
|
+
schedule?: (string | null)
|
|
73190
73317
|
resources?: {
|
|
73191
73318
|
limits?: {
|
|
73192
73319
|
cpu?: string
|
|
@@ -73200,7 +73327,19 @@ autoDeploy?: boolean
|
|
|
73200
73327
|
idleMinutes?: number
|
|
73201
73328
|
scaleToZero?: boolean
|
|
73202
73329
|
containerPort?: number
|
|
73330
|
+
/**
|
|
73331
|
+
* Wall-clock budget for one run, in seconds (60..86400). Becomes the Job activeDeadlineSeconds — an overrunning run is killed, not left going.
|
|
73332
|
+
*/
|
|
73333
|
+
jobTimeoutSec?: number
|
|
73334
|
+
/**
|
|
73335
|
+
* 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).
|
|
73336
|
+
*/
|
|
73337
|
+
jobConcurrency?: ("forbid" | "allow" | "replace")
|
|
73203
73338
|
buildMachineType?: (("E2_MEDIUM" | "E2_HIGHCPU_8") | null)
|
|
73339
|
+
/**
|
|
73340
|
+
* Pause or resume a scheduled service without losing its schedule.
|
|
73341
|
+
*/
|
|
73342
|
+
scheduleSuspended?: boolean
|
|
73204
73343
|
}
|
|
73205
73344
|
export interface DeploymentServiceUpdateInputReadiness {
|
|
73206
73345
|
path: string
|
|
@@ -73214,6 +73353,7 @@ initialDelaySeconds?: number
|
|
|
73214
73353
|
|
|
73215
73354
|
export interface DeploymentServiceUpdateOutput {
|
|
73216
73355
|
id: string
|
|
73356
|
+
mode?: string
|
|
73217
73357
|
name: string
|
|
73218
73358
|
slug: string
|
|
73219
73359
|
probes: {
|
|
@@ -73247,10 +73387,19 @@ outputDir?: string
|
|
|
73247
73387
|
}
|
|
73248
73388
|
markdown?: boolean
|
|
73249
73389
|
})
|
|
73390
|
+
command?: (string | null)
|
|
73391
|
+
lastRun?: ({
|
|
73392
|
+
id: string
|
|
73393
|
+
status: string
|
|
73394
|
+
startedAt: (string | null)
|
|
73395
|
+
finishedAt: (string | null)
|
|
73396
|
+
} | null)
|
|
73250
73397
|
tracing?: string
|
|
73251
73398
|
replicas: number
|
|
73399
|
+
schedule?: (string | null)
|
|
73252
73400
|
createdAt: string
|
|
73253
73401
|
dependsOn: string[]
|
|
73402
|
+
nextRunAt?: (string | null)
|
|
73254
73403
|
resources?: {
|
|
73255
73404
|
limits?: {
|
|
73256
73405
|
cpu?: string
|
|
@@ -73264,7 +73413,10 @@ idleMinutes: number
|
|
|
73264
73413
|
scaleToZero: boolean
|
|
73265
73414
|
containerPort: number
|
|
73266
73415
|
environmentId: string
|
|
73416
|
+
jobTimeoutSec?: number
|
|
73417
|
+
jobConcurrency?: string
|
|
73267
73418
|
buildMachineType?: (string | null)
|
|
73419
|
+
scheduleSuspended?: boolean
|
|
73268
73420
|
suspendedByBilling?: boolean
|
|
73269
73421
|
lastReplicasRunning: number
|
|
73270
73422
|
scaleToZeroEligibility?: {
|