glitch-javascript-sdk 3.10.0 → 3.10.1

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/index.d.ts CHANGED
@@ -11577,6 +11577,12 @@ interface HostingDatabaseCredentials {
11577
11577
  /** UI safety timer only; the database credential itself does not expire after this interval. */
11578
11578
  hide_after_seconds: number;
11579
11579
  }
11580
+ interface HostingServiceVolume {
11581
+ name: string;
11582
+ mount_path: string;
11583
+ size_gb: number;
11584
+ access_mode?: 'ReadOnly' | 'ReadWrite';
11585
+ }
11580
11586
  interface HostingServiceDeployment {
11581
11587
  id: string;
11582
11588
  hosting_service_id: string;
@@ -11603,13 +11609,19 @@ interface HostingService {
11603
11609
  target_port?: number | null;
11604
11610
  transport: 'http' | 'http2' | 'tcp';
11605
11611
  health_check_path?: string | null;
11612
+ startup_check_path?: string | null;
11613
+ readiness_check_path?: string | null;
11614
+ liveness_check_path?: string | null;
11606
11615
  capacity_model: HostingCapacityModel;
11607
11616
  container_cpu: number;
11608
11617
  container_memory_mb: number;
11609
11618
  min_replicas: number;
11610
11619
  max_replicas: number;
11611
11620
  schedule_cron?: string | null;
11621
+ termination_grace_seconds: number;
11612
11622
  depends_on: string[];
11623
+ public_paths: string[];
11624
+ volumes: HostingServiceVolume[];
11613
11625
  database_bindings: string[];
11614
11626
  secret_names: string[];
11615
11627
  active_deployment?: HostingServiceDeployment | null;
@@ -11625,13 +11637,19 @@ interface HostingServiceDefinition {
11625
11637
  target_port?: number;
11626
11638
  transport?: 'http' | 'http2' | 'tcp';
11627
11639
  health_check_path?: string;
11640
+ startup_check_path?: string;
11641
+ readiness_check_path?: string;
11642
+ liveness_check_path?: string;
11628
11643
  capacity_model?: HostingCapacityModel;
11629
11644
  container_cpu?: number;
11630
11645
  container_memory_mb?: number;
11631
11646
  min_replicas?: number;
11632
11647
  max_replicas?: number;
11633
11648
  schedule_cron?: string;
11649
+ termination_grace_seconds?: number;
11634
11650
  depends_on?: string[];
11651
+ public_paths?: string[];
11652
+ volumes?: HostingServiceVolume[];
11635
11653
  environment?: Record<string, string | number | boolean | null>;
11636
11654
  database_bindings?: string[];
11637
11655
  configuration?: Record<string, unknown>;
@@ -11640,7 +11658,7 @@ interface HostingServiceDefinition {
11640
11658
  game_build_id?: string;
11641
11659
  }
11642
11660
  interface HostingServiceStackRequest {
11643
- preset?: 'single_server' | 'web_and_api' | 'authoritative_world' | 'biomes_style';
11661
+ preset?: 'single_server' | 'world_of_claudecraft' | 'web_and_api' | 'authoritative_world' | 'biomes_style';
11644
11662
  game_build_id?: string;
11645
11663
  builds?: Record<string, string>;
11646
11664
  services?: HostingServiceDefinition[];
@@ -11665,6 +11683,7 @@ interface HostingServiceEstimate {
11665
11683
  vcpu_hour_cents: number;
11666
11684
  memory_gib_hour_cents: number;
11667
11685
  requests_million_cents: number;
11686
+ persistent_storage_gib_month_cents: number;
11668
11687
  };
11669
11688
  note: string;
11670
11689
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.10.0",
3
+ "version": "3.10.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -122,6 +122,14 @@ export interface HostingSite {
122
122
  domains?: HostingDomain[];
123
123
  databases?: HostingDatabase[];
124
124
  services?: HostingService[];
125
+ runtime_routes?: Array<{ path_prefix: string; service: string; runtime_origin: string }>;
126
+ }
127
+
128
+ export interface HostingServiceVolume {
129
+ name: string;
130
+ mount_path: string;
131
+ size_gb: number;
132
+ access_mode?: 'ReadOnly' | 'ReadWrite';
125
133
  }
126
134
 
127
135
  export interface HostingServiceDeployment {
@@ -151,13 +159,19 @@ export interface HostingService {
151
159
  target_port?: number | null;
152
160
  transport: 'http' | 'http2' | 'tcp';
153
161
  health_check_path?: string | null;
162
+ startup_check_path?: string | null;
163
+ readiness_check_path?: string | null;
164
+ liveness_check_path?: string | null;
154
165
  capacity_model: HostingCapacityModel;
155
166
  container_cpu: number;
156
167
  container_memory_mb: number;
157
168
  min_replicas: number;
158
169
  max_replicas: number;
159
170
  schedule_cron?: string | null;
171
+ termination_grace_seconds: number;
160
172
  depends_on: string[];
173
+ public_paths: string[];
174
+ volumes: HostingServiceVolume[];
161
175
  database_bindings: string[];
162
176
  secret_names: string[];
163
177
  active_deployment?: HostingServiceDeployment | null;
@@ -174,13 +188,19 @@ export interface HostingServiceDefinition {
174
188
  target_port?: number;
175
189
  transport?: 'http' | 'http2' | 'tcp';
176
190
  health_check_path?: string;
191
+ startup_check_path?: string;
192
+ readiness_check_path?: string;
193
+ liveness_check_path?: string;
177
194
  capacity_model?: HostingCapacityModel;
178
195
  container_cpu?: number;
179
196
  container_memory_mb?: number;
180
197
  min_replicas?: number;
181
198
  max_replicas?: number;
182
199
  schedule_cron?: string;
200
+ termination_grace_seconds?: number;
183
201
  depends_on?: string[];
202
+ public_paths?: string[];
203
+ volumes?: HostingServiceVolume[];
184
204
  environment?: Record<string, string | number | boolean | null>;
185
205
  database_bindings?: string[];
186
206
  configuration?: Record<string, unknown>;
@@ -190,7 +210,7 @@ export interface HostingServiceDefinition {
190
210
  }
191
211
 
192
212
  export interface HostingServiceStackRequest {
193
- preset?: 'single_server' | 'web_and_api' | 'authoritative_world' | 'biomes_style';
213
+ preset?: 'single_server' | 'world_of_claudecraft' | 'web_and_api' | 'authoritative_world' | 'biomes_style';
194
214
  game_build_id?: string;
195
215
  builds?: Record<string, string>;
196
216
  services?: HostingServiceDefinition[];
@@ -211,6 +231,7 @@ export interface HostingServiceEstimate {
211
231
  vcpu_hour_cents: number;
212
232
  memory_gib_hour_cents: number;
213
233
  requests_million_cents: number;
234
+ persistent_storage_gib_month_cents: number;
214
235
  };
215
236
  note: string;
216
237
  }