@sylphx/contract 0.5.0 → 0.5.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/endpoints/databases.d.ts +2 -2
  3. package/dist/endpoints/kv-admin.d.ts +1 -1
  4. package/dist/endpoints/kv-admin.js +1 -1
  5. package/dist/endpoints/kv.d.ts +19 -13
  6. package/dist/endpoints/kv.d.ts.map +1 -1
  7. package/dist/endpoints/kv.js +9 -9
  8. package/dist/endpoints/notifications.d.ts +7 -0
  9. package/dist/endpoints/notifications.d.ts.map +1 -1
  10. package/dist/endpoints/project-manifest.d.ts +110 -4
  11. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  12. package/dist/endpoints/storage.d.ts +18 -0
  13. package/dist/endpoints/storage.d.ts.map +1 -1
  14. package/dist/endpoints/storage.js +11 -1
  15. package/dist/index.d.ts +155 -18
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/schemas/auth.d.ts +1 -0
  18. package/dist/schemas/auth.d.ts.map +1 -1
  19. package/dist/schemas/auth.js +1 -0
  20. package/dist/schemas/database.d.ts +2 -2
  21. package/dist/schemas/database.js +2 -2
  22. package/dist/schemas/kv-admin.d.ts +1 -1
  23. package/dist/schemas/kv-admin.js +1 -1
  24. package/dist/schemas/kv.d.ts +12 -4
  25. package/dist/schemas/kv.d.ts.map +1 -1
  26. package/dist/schemas/kv.js +17 -5
  27. package/dist/schemas/notifications.d.ts +11 -0
  28. package/dist/schemas/notifications.d.ts.map +1 -1
  29. package/dist/schemas/notifications.js +11 -0
  30. package/dist/schemas/project-manifest.d.ts +226 -9
  31. package/dist/schemas/project-manifest.d.ts.map +1 -1
  32. package/dist/schemas/project-manifest.js +75 -3
  33. package/dist/schemas/resources.d.ts +4 -4
  34. package/dist/schemas/resources.js +2 -2
  35. package/dist/schemas/storage.d.ts +29 -0
  36. package/dist/schemas/storage.d.ts.map +1 -1
  37. package/dist/schemas/storage.js +19 -0
  38. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sylphx/contract
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#601](https://github.com/SylphxAI/platform/pull/601) [`426bafb`](https://github.com/SylphxAI/platform/commit/426bafb35a96e525066cb43c05388a4cc44a8bc3) Thanks [@shtse8](https://github.com/shtse8)! - Align KV BaaS contract and SDK calls with the canonical `/v1/kv/*` runtime routes, while the runtime keeps `/v1/sdk/kv/*` compatibility adapters for already-published SDK clients.
8
+
3
9
  ## 0.5.0
4
10
 
5
11
  ### Minor Changes
@@ -346,8 +346,8 @@ export declare const databasesEndpoints: {
346
346
  directHost: Schema.optional<Schema.NullOr<typeof Schema.String>>;
347
347
  port: Schema.optional<typeof Schema.Number>;
348
348
  publicPort: Schema.optional<Schema.NullOr<typeof Schema.Number>>;
349
- dbUser: Schema.optional<typeof Schema.String>;
350
- dbName: Schema.optional<typeof Schema.String>;
349
+ dbUser: typeof Schema.String;
350
+ dbName: typeof Schema.String;
351
351
  connectionString: Schema.optional<typeof Schema.String>;
352
352
  storageGb: Schema.optional<typeof Schema.Number>;
353
353
  env: Schema.optional<typeof Schema.String>;
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Production mount: `/kv/*`. Naming `-admin` to avoid collision with the
6
6
  * BaaS `kvEndpoints` served by the standalone runtime at
7
- * `{ref}.api.sylphx.com/sdk/kv/*`.
7
+ * `{ref}.api.sylphx.com/kv/*`.
8
8
  */
9
9
  export declare const kvAdminEndpoints: {
10
10
  readonly getStatus: import("../endpoint.js").Endpoint<"GET", "/kv/status", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Production mount: `/kv/*`. Naming `-admin` to avoid collision with the
6
6
  * BaaS `kvEndpoints` served by the standalone runtime at
7
- * `{ref}.api.sylphx.com/sdk/kv/*`.
7
+ * `{ref}.api.sylphx.com/kv/*`.
8
8
  */
9
9
  import { defineEndpoint } from '../endpoint.js';
10
10
  import { KvAdminDeleteResult, KvAdminGetResult, KvAdminKeyParams, KvAdminListQuery, KvAdminListResult, KvAdminProjectIdQuery, KvAdminSetInput, KvAdminSetResult, KvAdminStatsResult, KvAdminStatusResult, } from '../schemas/kv-admin.js';
@@ -1,56 +1,62 @@
1
1
  /**
2
2
  * KV endpoints — BaaS plane key-value store. Paths mirror `@sylphx/sdk` `kv.ts`
3
- * (served under `/sdk/kv/*` upstream on `<your-app>.api.sylphx.com`).
3
+ * (served under `/kv/*` upstream on `<your-app>.api.sylphx.com`).
4
4
  */
5
5
  import { Schema } from 'effect';
6
6
  export declare const kvEndpoints: {
7
- readonly set: import("../endpoint.js").Endpoint<"POST", "/sdk/kv/set", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
7
+ readonly set: import("../endpoint.js").Endpoint<"POST", "/kv", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
8
8
  key: typeof Schema.String;
9
9
  value: typeof Schema.Unknown;
10
10
  ex: Schema.optional<typeof Schema.Number>;
11
+ px: Schema.optional<typeof Schema.Number>;
12
+ exat: Schema.optional<typeof Schema.Number>;
13
+ pxat: Schema.optional<typeof Schema.Number>;
11
14
  nx: Schema.optional<typeof Schema.Boolean>;
12
15
  xx: Schema.optional<typeof Schema.Boolean>;
13
16
  }>, Schema.Struct<{
14
- ok: typeof Schema.Boolean;
17
+ success: typeof Schema.Boolean;
18
+ created: Schema.optional<typeof Schema.Boolean>;
15
19
  }>, undefined>;
16
- readonly get: import("../endpoint.js").Endpoint<"GET", "/sdk/kv/get/:key", Schema.Struct<{
20
+ readonly get: import("../endpoint.js").Endpoint<"GET", "/kv/:key", Schema.Struct<{
17
21
  key: typeof Schema.String;
18
22
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
19
23
  value: Schema.NullOr<typeof Schema.Unknown>;
24
+ ttl: Schema.NullOr<typeof Schema.Number>;
20
25
  }>, undefined>;
21
- readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/sdk/kv/delete/:key", Schema.Struct<{
26
+ readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/kv/:key", Schema.Struct<{
22
27
  key: typeof Schema.String;
23
28
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
24
29
  deleted: typeof Schema.Number;
25
30
  }>, undefined>;
26
- readonly exists: import("../endpoint.js").Endpoint<"GET", "/sdk/kv/exists/:key", Schema.Struct<{
31
+ readonly exists: import("../endpoint.js").Endpoint<"GET", "/kv/exists/:key", Schema.Struct<{
27
32
  key: typeof Schema.String;
28
33
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
29
34
  exists: typeof Schema.Boolean;
30
35
  }>, undefined>;
31
- readonly incr: import("../endpoint.js").Endpoint<"POST", "/sdk/kv/incr", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
36
+ readonly incr: import("../endpoint.js").Endpoint<"POST", "/kv/incr", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
32
37
  key: typeof Schema.String;
33
38
  by: Schema.optional<typeof Schema.Number>;
34
39
  }>, Schema.Struct<{
35
40
  value: typeof Schema.Number;
36
41
  }>, undefined>;
37
- readonly expire: import("../endpoint.js").Endpoint<"POST", "/sdk/kv/expire", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
42
+ readonly expire: import("../endpoint.js").Endpoint<"POST", "/kv/expire", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
38
43
  key: typeof Schema.String;
39
44
  seconds: typeof Schema.Number;
40
45
  }>, Schema.Struct<{
41
- ok: typeof Schema.Boolean;
46
+ success: typeof Schema.Boolean;
47
+ created: Schema.optional<typeof Schema.Boolean>;
42
48
  }>, undefined>;
43
- readonly rateLimit: import("../endpoint.js").Endpoint<"POST", "/sdk/kv/ratelimit", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
44
- identifier: typeof Schema.String;
49
+ readonly rateLimit: import("../endpoint.js").Endpoint<"POST", "/kv/ratelimit", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
50
+ key: typeof Schema.String;
45
51
  limit: typeof Schema.Number;
46
- window: typeof Schema.Number;
52
+ window: typeof Schema.String;
47
53
  }>, Schema.Struct<{
48
54
  success: typeof Schema.Boolean;
49
55
  limit: typeof Schema.Number;
50
56
  remaining: typeof Schema.Number;
51
57
  reset: typeof Schema.Number;
52
58
  }>, undefined>;
53
- readonly scan: import("../endpoint.js").Endpoint<"GET", "/sdk/kv/scan", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
59
+ readonly scan: import("../endpoint.js").Endpoint<"GET", "/kv/scan", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
54
60
  pattern: Schema.optional<typeof Schema.String>;
55
61
  cursor: Schema.optional<typeof Schema.String>;
56
62
  count: Schema.optional<typeof Schema.String>;
@@ -1 +1 @@
1
- {"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../src/endpoints/kv.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmB/B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEd,CAAA"}
1
+ {"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../src/endpoints/kv.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmB/B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEd,CAAA"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * KV endpoints — BaaS plane key-value store. Paths mirror `@sylphx/sdk` `kv.ts`
3
- * (served under `/sdk/kv/*` upstream on `<your-app>.api.sylphx.com`).
3
+ * (served under `/kv/*` upstream on `<your-app>.api.sylphx.com`).
4
4
  */
5
5
  import { Schema } from 'effect';
6
6
  import { defineEndpoint } from '../endpoint.js';
@@ -9,7 +9,7 @@ const KeyPath = Schema.Struct({ key: Schema.String });
9
9
  export const kvEndpoints = {
10
10
  set: defineEndpoint({
11
11
  method: 'POST',
12
- path: '/sdk/kv/set',
12
+ path: '/kv',
13
13
  body: KvSetInput,
14
14
  response: KvSetResult,
15
15
  plane: 'baas',
@@ -18,7 +18,7 @@ export const kvEndpoints = {
18
18
  }),
19
19
  get: defineEndpoint({
20
20
  method: 'GET',
21
- path: '/sdk/kv/get/:key',
21
+ path: '/kv/:key',
22
22
  params: KeyPath,
23
23
  response: KvGetResult,
24
24
  plane: 'baas',
@@ -27,7 +27,7 @@ export const kvEndpoints = {
27
27
  }),
28
28
  delete: defineEndpoint({
29
29
  method: 'DELETE',
30
- path: '/sdk/kv/delete/:key',
30
+ path: '/kv/:key',
31
31
  params: KeyPath,
32
32
  response: KvDeleteResult,
33
33
  plane: 'baas',
@@ -36,7 +36,7 @@ export const kvEndpoints = {
36
36
  }),
37
37
  exists: defineEndpoint({
38
38
  method: 'GET',
39
- path: '/sdk/kv/exists/:key',
39
+ path: '/kv/exists/:key',
40
40
  params: KeyPath,
41
41
  response: KvExistsResult,
42
42
  plane: 'baas',
@@ -45,7 +45,7 @@ export const kvEndpoints = {
45
45
  }),
46
46
  incr: defineEndpoint({
47
47
  method: 'POST',
48
- path: '/sdk/kv/incr',
48
+ path: '/kv/incr',
49
49
  body: KvIncrInput,
50
50
  response: KvIncrResult,
51
51
  plane: 'baas',
@@ -54,7 +54,7 @@ export const kvEndpoints = {
54
54
  }),
55
55
  expire: defineEndpoint({
56
56
  method: 'POST',
57
- path: '/sdk/kv/expire',
57
+ path: '/kv/expire',
58
58
  body: KvExpireInput,
59
59
  response: KvSetResult,
60
60
  plane: 'baas',
@@ -63,7 +63,7 @@ export const kvEndpoints = {
63
63
  }),
64
64
  rateLimit: defineEndpoint({
65
65
  method: 'POST',
66
- path: '/sdk/kv/ratelimit',
66
+ path: '/kv/ratelimit',
67
67
  body: KvRateLimitInput,
68
68
  response: KvRateLimitResult,
69
69
  plane: 'baas',
@@ -72,7 +72,7 @@ export const kvEndpoints = {
72
72
  }),
73
73
  scan: defineEndpoint({
74
74
  method: 'GET',
75
- path: '/sdk/kv/scan',
75
+ path: '/kv/scan',
76
76
  query: KvScanQuery,
77
77
  response: KvScanResult,
78
78
  plane: 'baas',
@@ -36,6 +36,13 @@ export declare const notificationsEndpoints: {
36
36
  status: import("effect/Schema").optional<import("effect/Schema").Literal<["delivered", "queued", "failed"]>>;
37
37
  messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
38
38
  reason: import("effect/Schema").optional<typeof import("effect/Schema").String>;
39
+ sent: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
40
+ failed: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
41
+ platforms: import("effect/Schema").optional<import("effect/Schema").Struct<{
42
+ web: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
43
+ ios: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
44
+ android: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
45
+ }>>;
39
46
  sentTo: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
40
47
  expired: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
41
48
  }>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/endpoints/notifications.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IzB,CAAA"}
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/endpoints/notifications.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IzB,CAAA"}
@@ -27,7 +27,9 @@ export declare const projectManifestEndpoints: {
27
27
  }>;
28
28
  build: Schema.optional<Schema.Struct<{
29
29
  buildpack: Schema.optional<Schema.Literal<["auto", "ruby", "node", "python", "static", "dockerfile"]>>;
30
+ strategy: Schema.optional<Schema.Literal<["auto", "buildpack", "dockerfile", "nixpacks"]>>;
30
31
  dockerfile: Schema.optional<typeof Schema.String>;
32
+ context: Schema.optional<typeof Schema.String>;
31
33
  docker_context: Schema.optional<typeof Schema.String>;
32
34
  build_command: Schema.optional<typeof Schema.String>;
33
35
  ignore: Schema.optional<Schema.Array$<typeof Schema.String>>;
@@ -44,6 +46,18 @@ export declare const projectManifestEndpoints: {
44
46
  services: Schema.optional<Schema.Array$<Schema.Struct<{
45
47
  name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
46
48
  type: Schema.Literal<["web", "worker", "cron", "function"]>;
49
+ build: Schema.optional<Schema.Struct<{
50
+ strategy: Schema.optional<Schema.Literal<["auto", "buildpack", "dockerfile", "nixpacks"]>>;
51
+ dockerfile: Schema.optional<typeof Schema.String>;
52
+ context: Schema.optional<typeof Schema.String>;
53
+ docker_context: Schema.optional<typeof Schema.String>;
54
+ build_command: Schema.optional<typeof Schema.String>;
55
+ }>>;
56
+ health: Schema.optional<Schema.Struct<{
57
+ mode: Schema.optional<Schema.Literal<["http", "tcp", "command"]>>;
58
+ path: Schema.optional<typeof Schema.String>;
59
+ command: Schema.optional<typeof Schema.String>;
60
+ }>>;
47
61
  command: Schema.optional<typeof Schema.String>;
48
62
  port: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
49
63
  internal_port: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
@@ -56,7 +70,18 @@ export declare const projectManifestEndpoints: {
56
70
  min_replicas: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
57
71
  env: Schema.optional<Schema.Array$<typeof Schema.String>>;
58
72
  resources: Schema.optional<Schema.Array$<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>>;
73
+ watch_paths: Schema.optional<Schema.Array$<typeof Schema.String>>;
59
74
  }>>>;
75
+ database: Schema.optional<Schema.Struct<{
76
+ migrations: Schema.optional<Schema.Struct<{
77
+ engine: Schema.Literal<["atlas", "drizzle", "prisma", "alembic", "flyway", "goose", "sqlx", "custom"]>;
78
+ dir: Schema.optional<typeof Schema.String>;
79
+ image: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
80
+ command: Schema.filter<typeof Schema.String>;
81
+ timeout: Schema.optional<typeof Schema.String>;
82
+ destructive_policy: Schema.optional<Schema.Literal<["require-approval", "allow"]>>;
83
+ }>>;
84
+ }>>;
60
85
  env: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Struct<{
61
86
  value: typeof Schema.String;
62
87
  }>, Schema.Struct<{
@@ -109,6 +134,8 @@ export declare const projectManifestEndpoints: {
109
134
  };
110
135
  } | undefined;
111
136
  readonly build?: {
137
+ readonly context?: string | undefined;
138
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
112
139
  readonly dockerfile?: string | undefined;
113
140
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
114
141
  readonly docker_context?: string | undefined;
@@ -161,6 +188,8 @@ export declare const projectManifestEndpoints: {
161
188
  };
162
189
  } | undefined;
163
190
  readonly build?: {
191
+ readonly context?: string | undefined;
192
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
164
193
  readonly dockerfile?: string | undefined;
165
194
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
166
195
  readonly docker_context?: string | undefined;
@@ -213,6 +242,8 @@ export declare const projectManifestEndpoints: {
213
242
  };
214
243
  } | undefined;
215
244
  readonly build?: {
245
+ readonly context?: string | undefined;
246
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
216
247
  readonly dockerfile?: string | undefined;
217
248
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
218
249
  readonly docker_context?: string | undefined;
@@ -265,6 +296,8 @@ export declare const projectManifestEndpoints: {
265
296
  };
266
297
  } | undefined;
267
298
  readonly build?: {
299
+ readonly context?: string | undefined;
300
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
268
301
  readonly dockerfile?: string | undefined;
269
302
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
270
303
  readonly docker_context?: string | undefined;
@@ -318,6 +351,8 @@ export declare const projectManifestEndpoints: {
318
351
  };
319
352
  } | undefined;
320
353
  readonly build?: {
354
+ readonly context?: string | undefined;
355
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
321
356
  readonly dockerfile?: string | undefined;
322
357
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
323
358
  readonly docker_context?: string | undefined;
@@ -370,6 +405,8 @@ export declare const projectManifestEndpoints: {
370
405
  };
371
406
  } | undefined;
372
407
  readonly build?: {
408
+ readonly context?: string | undefined;
409
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
373
410
  readonly dockerfile?: string | undefined;
374
411
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
375
412
  readonly docker_context?: string | undefined;
@@ -422,6 +459,8 @@ export declare const projectManifestEndpoints: {
422
459
  };
423
460
  } | undefined;
424
461
  readonly build?: {
462
+ readonly context?: string | undefined;
463
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
425
464
  readonly dockerfile?: string | undefined;
426
465
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
427
466
  readonly docker_context?: string | undefined;
@@ -474,6 +513,8 @@ export declare const projectManifestEndpoints: {
474
513
  };
475
514
  } | undefined;
476
515
  readonly build?: {
516
+ readonly context?: string | undefined;
517
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
477
518
  readonly dockerfile?: string | undefined;
478
519
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
479
520
  readonly docker_context?: string | undefined;
@@ -494,18 +535,30 @@ export declare const projectManifestEndpoints: {
494
535
  resources: Schema.optional<Schema.Struct<{
495
536
  database: Schema.optional<Schema.Struct<{
496
537
  engine: Schema.optional<Schema.Literal<["postgres"]>>;
497
- tier: Schema.Literal<["nano", "micro", "standard", "large", "xl"]>;
538
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
498
539
  storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
499
540
  version: Schema.optional<Schema.Literal<["15", "16", "17"]>>;
500
541
  replicas: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
501
542
  branch_on_preview: Schema.optional<typeof Schema.Boolean>;
502
543
  }>>;
544
+ kv: Schema.optional<Schema.Struct<{
545
+ engine: Schema.optional<Schema.Literal<["valkey"]>>;
546
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
547
+ storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
548
+ }>>;
503
549
  search: Schema.optional<Schema.Struct<{
504
550
  engine: Schema.optional<Schema.Literal<["typesense"]>>;
505
- tier: Schema.Literal<["micro", "standard"]>;
551
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
506
552
  storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
507
553
  nodes: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
508
554
  }>>;
555
+ volume: Schema.optional<Schema.Struct<{
556
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
557
+ storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
558
+ access_mode: Schema.optional<Schema.Literal<["ReadWriteOnce", "ReadWriteMany"]>>;
559
+ mount_path: Schema.optional<Schema.filter<typeof Schema.String>>;
560
+ role: Schema.optional<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>;
561
+ }>>;
509
562
  }>>;
510
563
  ci: Schema.optional<Schema.Struct<{
511
564
  on_push: Schema.optional<typeof Schema.Boolean>;
@@ -532,7 +585,9 @@ export declare const projectManifestEndpoints: {
532
585
  }>;
533
586
  build: Schema.optional<Schema.Struct<{
534
587
  buildpack: Schema.optional<Schema.Literal<["auto", "ruby", "node", "python", "static", "dockerfile"]>>;
588
+ strategy: Schema.optional<Schema.Literal<["auto", "buildpack", "dockerfile", "nixpacks"]>>;
535
589
  dockerfile: Schema.optional<typeof Schema.String>;
590
+ context: Schema.optional<typeof Schema.String>;
536
591
  docker_context: Schema.optional<typeof Schema.String>;
537
592
  build_command: Schema.optional<typeof Schema.String>;
538
593
  ignore: Schema.optional<Schema.Array$<typeof Schema.String>>;
@@ -549,6 +604,18 @@ export declare const projectManifestEndpoints: {
549
604
  services: Schema.optional<Schema.Array$<Schema.Struct<{
550
605
  name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
551
606
  type: Schema.Literal<["web", "worker", "cron", "function"]>;
607
+ build: Schema.optional<Schema.Struct<{
608
+ strategy: Schema.optional<Schema.Literal<["auto", "buildpack", "dockerfile", "nixpacks"]>>;
609
+ dockerfile: Schema.optional<typeof Schema.String>;
610
+ context: Schema.optional<typeof Schema.String>;
611
+ docker_context: Schema.optional<typeof Schema.String>;
612
+ build_command: Schema.optional<typeof Schema.String>;
613
+ }>>;
614
+ health: Schema.optional<Schema.Struct<{
615
+ mode: Schema.optional<Schema.Literal<["http", "tcp", "command"]>>;
616
+ path: Schema.optional<typeof Schema.String>;
617
+ command: Schema.optional<typeof Schema.String>;
618
+ }>>;
552
619
  command: Schema.optional<typeof Schema.String>;
553
620
  port: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
554
621
  internal_port: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
@@ -561,7 +628,18 @@ export declare const projectManifestEndpoints: {
561
628
  min_replicas: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
562
629
  env: Schema.optional<Schema.Array$<typeof Schema.String>>;
563
630
  resources: Schema.optional<Schema.Array$<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>>;
631
+ watch_paths: Schema.optional<Schema.Array$<typeof Schema.String>>;
564
632
  }>>>;
633
+ database: Schema.optional<Schema.Struct<{
634
+ migrations: Schema.optional<Schema.Struct<{
635
+ engine: Schema.Literal<["atlas", "drizzle", "prisma", "alembic", "flyway", "goose", "sqlx", "custom"]>;
636
+ dir: Schema.optional<typeof Schema.String>;
637
+ image: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
638
+ command: Schema.filter<typeof Schema.String>;
639
+ timeout: Schema.optional<typeof Schema.String>;
640
+ destructive_policy: Schema.optional<Schema.Literal<["require-approval", "allow"]>>;
641
+ }>>;
642
+ }>>;
565
643
  env: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Struct<{
566
644
  value: typeof Schema.String;
567
645
  }>, Schema.Struct<{
@@ -614,6 +692,8 @@ export declare const projectManifestEndpoints: {
614
692
  };
615
693
  } | undefined;
616
694
  readonly build?: {
695
+ readonly context?: string | undefined;
696
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
617
697
  readonly dockerfile?: string | undefined;
618
698
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
619
699
  readonly docker_context?: string | undefined;
@@ -666,6 +746,8 @@ export declare const projectManifestEndpoints: {
666
746
  };
667
747
  } | undefined;
668
748
  readonly build?: {
749
+ readonly context?: string | undefined;
750
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
669
751
  readonly dockerfile?: string | undefined;
670
752
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
671
753
  readonly docker_context?: string | undefined;
@@ -718,6 +800,8 @@ export declare const projectManifestEndpoints: {
718
800
  };
719
801
  } | undefined;
720
802
  readonly build?: {
803
+ readonly context?: string | undefined;
804
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
721
805
  readonly dockerfile?: string | undefined;
722
806
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
723
807
  readonly docker_context?: string | undefined;
@@ -770,6 +854,8 @@ export declare const projectManifestEndpoints: {
770
854
  };
771
855
  } | undefined;
772
856
  readonly build?: {
857
+ readonly context?: string | undefined;
858
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
773
859
  readonly dockerfile?: string | undefined;
774
860
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
775
861
  readonly docker_context?: string | undefined;
@@ -823,6 +909,8 @@ export declare const projectManifestEndpoints: {
823
909
  };
824
910
  } | undefined;
825
911
  readonly build?: {
912
+ readonly context?: string | undefined;
913
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
826
914
  readonly dockerfile?: string | undefined;
827
915
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
828
916
  readonly docker_context?: string | undefined;
@@ -875,6 +963,8 @@ export declare const projectManifestEndpoints: {
875
963
  };
876
964
  } | undefined;
877
965
  readonly build?: {
966
+ readonly context?: string | undefined;
967
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
878
968
  readonly dockerfile?: string | undefined;
879
969
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
880
970
  readonly docker_context?: string | undefined;
@@ -927,6 +1017,8 @@ export declare const projectManifestEndpoints: {
927
1017
  };
928
1018
  } | undefined;
929
1019
  readonly build?: {
1020
+ readonly context?: string | undefined;
1021
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
930
1022
  readonly dockerfile?: string | undefined;
931
1023
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
932
1024
  readonly docker_context?: string | undefined;
@@ -979,6 +1071,8 @@ export declare const projectManifestEndpoints: {
979
1071
  };
980
1072
  } | undefined;
981
1073
  readonly build?: {
1074
+ readonly context?: string | undefined;
1075
+ readonly strategy?: "auto" | "dockerfile" | "buildpack" | "nixpacks" | undefined;
982
1076
  readonly dockerfile?: string | undefined;
983
1077
  readonly buildpack?: "auto" | "static" | "ruby" | "node" | "python" | "dockerfile" | undefined;
984
1078
  readonly docker_context?: string | undefined;
@@ -999,18 +1093,30 @@ export declare const projectManifestEndpoints: {
999
1093
  resources: Schema.optional<Schema.Struct<{
1000
1094
  database: Schema.optional<Schema.Struct<{
1001
1095
  engine: Schema.optional<Schema.Literal<["postgres"]>>;
1002
- tier: Schema.Literal<["nano", "micro", "standard", "large", "xl"]>;
1096
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
1003
1097
  storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1004
1098
  version: Schema.optional<Schema.Literal<["15", "16", "17"]>>;
1005
1099
  replicas: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1006
1100
  branch_on_preview: Schema.optional<typeof Schema.Boolean>;
1007
1101
  }>>;
1102
+ kv: Schema.optional<Schema.Struct<{
1103
+ engine: Schema.optional<Schema.Literal<["valkey"]>>;
1104
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
1105
+ storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1106
+ }>>;
1008
1107
  search: Schema.optional<Schema.Struct<{
1009
1108
  engine: Schema.optional<Schema.Literal<["typesense"]>>;
1010
- tier: Schema.Literal<["micro", "standard"]>;
1109
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
1011
1110
  storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1012
1111
  nodes: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1013
1112
  }>>;
1113
+ volume: Schema.optional<Schema.Struct<{
1114
+ tier: Schema.Literal<["nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x"]>;
1115
+ storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1116
+ access_mode: Schema.optional<Schema.Literal<["ReadWriteOnce", "ReadWriteMany"]>>;
1117
+ mount_path: Schema.optional<Schema.filter<typeof Schema.String>>;
1118
+ role: Schema.optional<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>;
1119
+ }>>;
1014
1120
  }>>;
1015
1121
  ci: Schema.optional<Schema.Struct<{
1016
1122
  on_push: Schema.optional<typeof Schema.Boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"project-manifest.d.ts","sourceRoot":"","sources":["../../src/endpoints/project-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2B/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB3B,CAAA"}
1
+ {"version":3,"file":"project-manifest.d.ts","sourceRoot":"","sources":["../../src/endpoints/project-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2B/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB3B,CAAA"}
@@ -107,6 +107,24 @@ export declare const storageEndpoints: {
107
107
  id: Schema.brand<typeof Schema.String, "FileId">;
108
108
  isDeleted: Schema.Literal<[true]>;
109
109
  }>, undefined>;
110
+ readonly takedownFile: import("../endpoint.js").Endpoint<"POST", "/storage/files/:fileId:takedown", Schema.Struct<{
111
+ fileId: typeof Schema.String;
112
+ }>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
113
+ reason: Schema.Literal<["dmca", "malware", "abuse", "legal"]>;
114
+ noticeId: Schema.optional<typeof Schema.String>;
115
+ source: Schema.optional<typeof Schema.String>;
116
+ description: Schema.optional<typeof Schema.String>;
117
+ }>, Schema.Struct<{
118
+ id: Schema.brand<typeof Schema.String, "FileId">;
119
+ isDeleted: Schema.Literal<[true]>;
120
+ takedown: Schema.Struct<{
121
+ reason: Schema.Literal<["dmca", "malware", "abuse", "legal"]>;
122
+ noticeId: Schema.NullOr<typeof Schema.String>;
123
+ source: Schema.NullOr<typeof Schema.String>;
124
+ description: Schema.NullOr<typeof Schema.String>;
125
+ actedAt: typeof Schema.DateFromString;
126
+ }>;
127
+ }>, undefined>;
110
128
  readonly restoreFile: import("../endpoint.js").Endpoint<"POST", "/storage/files/:fileId:restore", Schema.Struct<{
111
129
  fileId: typeof Schema.String;
112
130
  }>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/endpoints/storage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgC/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwInB,CAAA"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/endpoints/storage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkC/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJnB,CAAA"}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { Schema } from 'effect';
10
10
  import { defineEndpoint } from '../endpoint.js';
11
- import { CopyFileRequest, CopyFileResult, File, ListFilesQuery, ListFilesResult, ListFileVersionsResult, RestoreFileResult, RestoreVersionResult, SignedUrlRequest, SignedUrlResult, SoftDeleteFileResult, UploadCompleteRequest, UploadCompleteResult, UploadCreateRequest, UploadCreateResult, UploadPartPresignResult, } from '../schemas/storage.js';
11
+ import { CopyFileRequest, CopyFileResult, File, ListFilesQuery, ListFilesResult, ListFileVersionsResult, RestoreFileResult, RestoreVersionResult, SignedUrlRequest, SignedUrlResult, SoftDeleteFileResult, TakedownFileRequest, TakedownFileResult, UploadCompleteRequest, UploadCompleteResult, UploadCreateRequest, UploadCreateResult, UploadPartPresignResult, } from '../schemas/storage.js';
12
12
  const FileIdPath = Schema.Struct({ fileId: Schema.String });
13
13
  const UploadIdPath = Schema.Struct({ uploadId: Schema.String });
14
14
  const UploadPartPath = Schema.Struct({
@@ -90,6 +90,16 @@ export const storageEndpoints = {
90
90
  summary: 'Soft-delete a file. Restorable via `:restore`.',
91
91
  tags: ['storage'],
92
92
  }),
93
+ takedownFile: defineEndpoint({
94
+ method: 'POST',
95
+ path: '/storage/files/:fileId:takedown',
96
+ params: FileIdPath,
97
+ body: TakedownFileRequest,
98
+ response: TakedownFileResult,
99
+ plane: 'baas',
100
+ summary: 'Immediately disable a file for DMCA, malware, abuse, or legal reasons.',
101
+ tags: ['storage'],
102
+ }),
93
103
  restoreFile: defineEndpoint({
94
104
  method: 'POST',
95
105
  path: '/storage/files/:fileId:restore',