@sylphx/contract 0.5.0 → 0.6.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/CHANGELOG.md +12 -0
- package/dist/endpoint.d.ts +3 -1
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoints/admin-audit.d.ts +2 -2
- package/dist/endpoints/admin-audit.js +2 -2
- package/dist/endpoints/admin-bootstrap.js +3 -3
- package/dist/endpoints/admin-branch-databases.d.ts +1 -1
- package/dist/endpoints/admin-branch-databases.js +2 -2
- package/dist/endpoints/admin-envs-spec.d.ts +27 -0
- package/dist/endpoints/admin-envs-spec.d.ts.map +1 -0
- package/dist/endpoints/admin-envs-spec.js +25 -0
- package/dist/endpoints/admin-projects.d.ts +1 -1
- package/dist/endpoints/admin-rate-limits.d.ts +1 -1
- package/dist/endpoints/admin-rate-limits.js +3 -3
- package/dist/endpoints/admin-secrets.d.ts +3 -3
- package/dist/endpoints/admin-secrets.js +1 -1
- package/dist/endpoints/admin-services.d.ts +3 -3
- package/dist/endpoints/admin-services.d.ts.map +1 -1
- package/dist/endpoints/admin-services.js +4 -5
- package/dist/endpoints/branch-databases.d.ts +13 -7
- package/dist/endpoints/branch-databases.d.ts.map +1 -1
- package/dist/endpoints/branch-databases.js +3 -3
- package/dist/endpoints/databases.d.ts +100 -164
- package/dist/endpoints/databases.d.ts.map +1 -1
- package/dist/endpoints/databases.js +8 -35
- package/dist/endpoints/deployments.d.ts +1 -3
- package/dist/endpoints/deployments.d.ts.map +1 -1
- package/dist/endpoints/deployments.js +1 -1
- package/dist/endpoints/environments.d.ts +11 -42
- package/dist/endpoints/environments.d.ts.map +1 -1
- package/dist/endpoints/image-opt.d.ts +5 -13
- package/dist/endpoints/image-opt.d.ts.map +1 -1
- package/dist/endpoints/image-opt.js +6 -18
- package/dist/endpoints/kv-admin.d.ts +1 -2
- package/dist/endpoints/kv-admin.d.ts.map +1 -1
- package/dist/endpoints/kv-admin.js +1 -1
- package/dist/endpoints/kv.d.ts +19 -13
- package/dist/endpoints/kv.d.ts.map +1 -1
- package/dist/endpoints/kv.js +9 -9
- package/dist/endpoints/notifications.d.ts +7 -0
- package/dist/endpoints/notifications.d.ts.map +1 -1
- package/dist/endpoints/organizations.d.ts +8 -6
- package/dist/endpoints/organizations.d.ts.map +1 -1
- package/dist/endpoints/project-manifest.d.ts +196 -84
- package/dist/endpoints/project-manifest.d.ts.map +1 -1
- package/dist/endpoints/projects.d.ts +0 -8
- package/dist/endpoints/projects.d.ts.map +1 -1
- package/dist/endpoints/realtime-admin.d.ts +0 -1
- package/dist/endpoints/realtime-admin.d.ts.map +1 -1
- package/dist/endpoints/realtime-admin.js +1 -1
- package/dist/endpoints/regions.d.ts +2 -4
- package/dist/endpoints/regions.d.ts.map +1 -1
- package/dist/endpoints/regions.js +2 -2
- package/dist/endpoints/storage.d.ts +18 -0
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +11 -1
- package/dist/endpoints/tasks.d.ts +2 -6
- package/dist/endpoints/tasks.d.ts.map +1 -1
- package/dist/hono-app.d.ts +2 -2
- package/dist/hono-app.js +2 -2
- package/dist/index.d.ts +403 -350
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/schemas/_primitives.d.ts +14 -0
- package/dist/schemas/_primitives.d.ts.map +1 -1
- package/dist/schemas/_primitives.js +16 -0
- package/dist/schemas/admin-audit.d.ts +4 -4
- package/dist/schemas/admin-audit.js +3 -3
- package/dist/schemas/admin-bootstrap.d.ts +1 -1
- package/dist/schemas/admin-bootstrap.js +1 -1
- package/dist/schemas/admin-builds.d.ts +1 -1
- package/dist/schemas/admin-builds.js +1 -1
- package/dist/schemas/admin-envs-spec.d.ts +49 -0
- package/dist/schemas/admin-envs-spec.d.ts.map +1 -0
- package/dist/schemas/admin-envs-spec.js +58 -0
- package/dist/schemas/admin-projects.d.ts +2 -2
- package/dist/schemas/admin-projects.js +1 -1
- package/dist/schemas/admin-rate-limits.d.ts +2 -2
- package/dist/schemas/admin-rate-limits.js +2 -2
- package/dist/schemas/admin-secrets.d.ts +14 -14
- package/dist/schemas/admin-secrets.d.ts.map +1 -1
- package/dist/schemas/admin-secrets.js +10 -10
- package/dist/schemas/admin-services.d.ts +18 -22
- package/dist/schemas/admin-services.d.ts.map +1 -1
- package/dist/schemas/admin-services.js +15 -19
- package/dist/schemas/auth.d.ts +1 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +1 -0
- package/dist/schemas/branch-database.d.ts +25 -18
- package/dist/schemas/branch-database.d.ts.map +1 -1
- package/dist/schemas/branch-database.js +15 -14
- package/dist/schemas/database.d.ts +13 -19
- package/dist/schemas/database.d.ts.map +1 -1
- package/dist/schemas/database.js +7 -19
- package/dist/schemas/deployment.d.ts +5 -7
- package/dist/schemas/deployment.d.ts.map +1 -1
- package/dist/schemas/deployment.js +6 -6
- package/dist/schemas/environment.d.ts +17 -31
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +11 -16
- package/dist/schemas/ids.d.ts +4 -0
- package/dist/schemas/ids.d.ts.map +1 -1
- package/dist/schemas/ids.js +2 -0
- package/dist/schemas/image-opt.d.ts +10 -11
- package/dist/schemas/image-opt.d.ts.map +1 -1
- package/dist/schemas/image-opt.js +11 -12
- package/dist/schemas/kv-admin.d.ts +1 -2
- package/dist/schemas/kv-admin.d.ts.map +1 -1
- package/dist/schemas/kv-admin.js +1 -2
- package/dist/schemas/kv.d.ts +12 -4
- package/dist/schemas/kv.d.ts.map +1 -1
- package/dist/schemas/kv.js +17 -5
- package/dist/schemas/notifications.d.ts +11 -0
- package/dist/schemas/notifications.d.ts.map +1 -1
- package/dist/schemas/notifications.js +11 -0
- package/dist/schemas/organization.d.ts +8 -6
- package/dist/schemas/organization.d.ts.map +1 -1
- package/dist/schemas/organization.js +11 -6
- package/dist/schemas/project-manifest.d.ts +384 -174
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +127 -50
- package/dist/schemas/project.d.ts +0 -6
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +0 -2
- package/dist/schemas/realtime-admin.d.ts +0 -1
- package/dist/schemas/realtime-admin.d.ts.map +1 -1
- package/dist/schemas/realtime-admin.js +0 -1
- package/dist/schemas/realtime.d.ts +2 -2
- package/dist/schemas/realtime.js +2 -2
- package/dist/schemas/region.d.ts +3 -21
- package/dist/schemas/region.d.ts.map +1 -1
- package/dist/schemas/region.js +2 -11
- package/dist/schemas/resources.d.ts +213 -164
- package/dist/schemas/resources.d.ts.map +1 -1
- package/dist/schemas/resources.js +87 -105
- package/dist/schemas/storage.d.ts +30 -1
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +20 -1
- package/dist/schemas/tasks.d.ts +3 -8
- package/dist/schemas/tasks.d.ts.map +1 -1
- package/dist/schemas/tasks.js +1 -4
- package/package.json +1 -1
|
@@ -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
|
|
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"}
|
|
@@ -36,8 +36,6 @@ export declare const projectsEndpoints: {
|
|
|
36
36
|
isActive: Schema.optional<typeof Schema.Boolean>;
|
|
37
37
|
publicKey: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
38
38
|
secretKeyPrefix: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
39
|
-
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
40
|
-
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
41
39
|
githubRepo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
42
40
|
githubBranch: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
43
41
|
customDomains: Schema.optional<Schema.NullOr<Schema.Array$<typeof Schema.String>>>;
|
|
@@ -83,8 +81,6 @@ export declare const projectsEndpoints: {
|
|
|
83
81
|
isActive: Schema.optional<typeof Schema.Boolean>;
|
|
84
82
|
publicKey: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
85
83
|
secretKeyPrefix: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
86
|
-
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
87
|
-
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
88
84
|
githubRepo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
89
85
|
githubBranch: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
90
86
|
customDomains: Schema.optional<Schema.NullOr<Schema.Array$<typeof Schema.String>>>;
|
|
@@ -123,8 +119,6 @@ export declare const projectsEndpoints: {
|
|
|
123
119
|
isActive: Schema.optional<typeof Schema.Boolean>;
|
|
124
120
|
publicKey: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
125
121
|
secretKeyPrefix: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
126
|
-
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
127
|
-
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
128
122
|
githubRepo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
129
123
|
githubBranch: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
130
124
|
customDomains: Schema.optional<Schema.NullOr<Schema.Array$<typeof Schema.String>>>;
|
|
@@ -168,8 +162,6 @@ export declare const projectsEndpoints: {
|
|
|
168
162
|
isActive: Schema.optional<typeof Schema.Boolean>;
|
|
169
163
|
publicKey: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
170
164
|
secretKeyPrefix: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
171
|
-
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
172
|
-
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
173
165
|
githubRepo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
174
166
|
githubBranch: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
175
167
|
customDomains: Schema.optional<Schema.NullOr<Schema.Array$<typeof Schema.String>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/endpoints/projects.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiB/B,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/endpoints/projects.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiB/B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CpB,CAAA"}
|
|
@@ -12,7 +12,6 @@ export declare const realtimeAdminEndpoints: {
|
|
|
12
12
|
projectId: typeof import("effect/Schema").String;
|
|
13
13
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
14
14
|
available: typeof import("effect/Schema").Boolean;
|
|
15
|
-
provider: typeof import("effect/Schema").String;
|
|
16
15
|
}>, undefined>;
|
|
17
16
|
readonly listChannels: import("../endpoint.js").Endpoint<"GET", "/realtime/channels", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
18
17
|
projectId: typeof import("effect/Schema").String;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/realtime-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAaH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"realtime-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/realtime-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAaH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCzB,CAAA"}
|
|
@@ -16,7 +16,7 @@ export const realtimeAdminEndpoints = {
|
|
|
16
16
|
query: RealtimeAdminProjectIdQuery,
|
|
17
17
|
response: RealtimeAdminStatusResult,
|
|
18
18
|
plane: 'management',
|
|
19
|
-
summary: 'Get realtime service status
|
|
19
|
+
summary: 'Get realtime service status',
|
|
20
20
|
tags: ['realtime-admin'],
|
|
21
21
|
}),
|
|
22
22
|
listChannels: defineEndpoint({
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Plane: `management`. `GET /regions` is publicly listable (no auth
|
|
5
5
|
* required) so docs and pricing can enumerate regions. Region pinning is
|
|
6
|
-
* intentionally not public until
|
|
7
|
-
*
|
|
6
|
+
* intentionally not public until deployment can actually target multiple
|
|
7
|
+
* regions.
|
|
8
8
|
*/
|
|
9
9
|
export declare const regionsEndpoints: {
|
|
10
10
|
readonly list: import("../endpoint.js").Endpoint<"GET", "/regions", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -12,11 +12,9 @@ export declare const regionsEndpoints: {
|
|
|
12
12
|
id: typeof import("effect/Schema").String;
|
|
13
13
|
slug: typeof import("effect/Schema").String;
|
|
14
14
|
name: typeof import("effect/Schema").String;
|
|
15
|
-
clusterEndpoint: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
16
15
|
status: import("effect/Schema").Literal<["coming-soon", "active", "decommissioned"]>;
|
|
17
16
|
locationLat: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
18
17
|
locationLng: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
19
|
-
gatewayIpRange: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
20
18
|
createdAt: typeof import("effect/Schema").String;
|
|
21
19
|
}>>;
|
|
22
20
|
}>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../../src/endpoints/regions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../../src/endpoints/regions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAWnB,CAAA"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Plane: `management`. `GET /regions` is publicly listable (no auth
|
|
5
5
|
* required) so docs and pricing can enumerate regions. Region pinning is
|
|
6
|
-
* intentionally not public until
|
|
7
|
-
*
|
|
6
|
+
* intentionally not public until deployment can actually target multiple
|
|
7
|
+
* regions.
|
|
8
8
|
*/
|
|
9
9
|
import { defineEndpoint } from '../endpoint.js';
|
|
10
10
|
import { ListRegionsResult } from '../schemas/region.js';
|
|
@@ -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;
|
|
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',
|
|
@@ -10,7 +10,6 @@ export declare const tasksEndpoints: {
|
|
|
10
10
|
projectId: typeof import("effect/Schema").String;
|
|
11
11
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
12
12
|
available: typeof import("effect/Schema").Boolean;
|
|
13
|
-
provider: typeof import("effect/Schema").String;
|
|
14
13
|
}>, undefined>;
|
|
15
14
|
readonly list: import("../endpoint.js").Endpoint<"GET", "/tasks", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
16
15
|
projectId: typeof import("effect/Schema").String;
|
|
@@ -21,6 +20,7 @@ export declare const tasksEndpoints: {
|
|
|
21
20
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
22
21
|
jobs: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
23
22
|
id: typeof import("effect/Schema").String;
|
|
23
|
+
scheduleId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
24
24
|
name: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
25
25
|
type: import("effect/Schema").Literal<["one-time", "cron"]>;
|
|
26
26
|
status: import("effect/Schema").Literal<["pending", "queued", "running", "completed", "failed", "scheduled", "paused", "cancelled", "deleted"]>;
|
|
@@ -36,8 +36,6 @@ export declare const tasksEndpoints: {
|
|
|
36
36
|
retries: typeof import("effect/Schema").Number;
|
|
37
37
|
maxRetries: typeof import("effect/Schema").Number;
|
|
38
38
|
lastError: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
39
|
-
qstashMessageId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
40
|
-
qstashScheduleId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
41
39
|
createdAt: typeof import("effect/Schema").String;
|
|
42
40
|
}>>;
|
|
43
41
|
total: typeof import("effect/Schema").Number;
|
|
@@ -51,6 +49,7 @@ export declare const tasksEndpoints: {
|
|
|
51
49
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
52
50
|
job: import("effect/Schema").Struct<{
|
|
53
51
|
id: typeof import("effect/Schema").String;
|
|
52
|
+
scheduleId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
54
53
|
name: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
55
54
|
type: import("effect/Schema").Literal<["one-time", "cron"]>;
|
|
56
55
|
status: import("effect/Schema").Literal<["pending", "queued", "running", "completed", "failed", "scheduled", "paused", "cancelled", "deleted"]>;
|
|
@@ -66,8 +65,6 @@ export declare const tasksEndpoints: {
|
|
|
66
65
|
retries: typeof import("effect/Schema").Number;
|
|
67
66
|
maxRetries: typeof import("effect/Schema").Number;
|
|
68
67
|
lastError: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
69
|
-
qstashMessageId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
70
|
-
qstashScheduleId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
71
68
|
createdAt: typeof import("effect/Schema").String;
|
|
72
69
|
}>;
|
|
73
70
|
}>, undefined>;
|
|
@@ -86,7 +83,6 @@ export declare const tasksEndpoints: {
|
|
|
86
83
|
timeout: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
87
84
|
}>, import("effect/Schema").Struct<{
|
|
88
85
|
jobId: typeof import("effect/Schema").String;
|
|
89
|
-
messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
90
86
|
scheduledFor: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
91
87
|
}>, {
|
|
92
88
|
status: 201;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/endpoints/tasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsBH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/endpoints/tasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFjB,CAAA"}
|
package/dist/hono-app.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* That re-export forced `apps/web`'s typecheck to traverse the entire
|
|
16
|
-
* backend implementation graph (`@sylphx/core/lib/db/effect`, the
|
|
17
|
-
* reconciler, audit pipeline, …). Every backend type bug cascaded into
|
|
16
|
+
* backend implementation graph (`@sylphx/core/lib/db/effect`, the
|
|
17
|
+
* deployment reconciler, audit pipeline, …). Every backend type bug cascaded into
|
|
18
18
|
* a Web build failure — 24+ hours of consecutive web build failures
|
|
19
19
|
* on 2026-05-03. SoC violation at the package boundary; ADR-084
|
|
20
20
|
* contract-first violated.
|
package/dist/hono-app.js
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* That re-export forced `apps/web`'s typecheck to traverse the entire
|
|
16
|
-
* backend implementation graph (`@sylphx/core/lib/db/effect`, the
|
|
17
|
-
* reconciler, audit pipeline, …). Every backend type bug cascaded into
|
|
16
|
+
* backend implementation graph (`@sylphx/core/lib/db/effect`, the
|
|
17
|
+
* deployment reconciler, audit pipeline, …). Every backend type bug cascaded into
|
|
18
18
|
* a Web build failure — 24+ hours of consecutive web build failures
|
|
19
19
|
* on 2026-05-03. SoC violation at the package boundary; ADR-084
|
|
20
20
|
* contract-first violated.
|