@sylphx/contract 0.2.0 → 0.2.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/endpoint.d.ts +7 -1
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoints/admin-ai-playground.d.ts +3 -3
- package/dist/endpoints/admin-ai-playground.js +6 -6
- package/dist/endpoints/admin-anomalies.d.ts +7 -7
- package/dist/endpoints/admin-anomalies.js +14 -14
- package/dist/endpoints/admin-apm.d.ts +6 -6
- package/dist/endpoints/admin-apm.js +12 -12
- package/dist/endpoints/admin-audit.d.ts +185 -52
- package/dist/endpoints/admin-audit.d.ts.map +1 -1
- package/dist/endpoints/admin-audit.js +113 -113
- package/dist/endpoints/admin-billing.d.ts +19 -19
- package/dist/endpoints/admin-billing.js +38 -38
- package/dist/endpoints/admin-bootstrap.d.ts +1 -1
- package/dist/endpoints/admin-bootstrap.js +2 -2
- package/dist/endpoints/admin-broadcasts.d.ts +5 -5
- package/dist/endpoints/admin-broadcasts.js +10 -10
- package/dist/endpoints/admin-builds.d.ts +1 -1
- package/dist/endpoints/admin-builds.js +2 -2
- package/dist/endpoints/admin-config.d.ts +11 -11
- package/dist/endpoints/admin-config.js +22 -22
- package/dist/endpoints/admin-consent.d.ts +38 -14
- package/dist/endpoints/admin-consent.d.ts.map +1 -1
- package/dist/endpoints/admin-consent.js +27 -27
- package/dist/endpoints/admin-env-services.d.ts +1 -1
- package/dist/endpoints/admin-env-services.js +2 -2
- package/dist/endpoints/admin-impersonation.d.ts +9 -9
- package/dist/endpoints/admin-impersonation.js +18 -18
- package/dist/endpoints/admin-invitations.d.ts +5 -5
- package/dist/endpoints/admin-invitations.js +10 -10
- package/dist/endpoints/admin-jwt-keys.d.ts +6 -6
- package/dist/endpoints/admin-jwt-keys.js +12 -12
- package/dist/endpoints/admin-logs.d.ts +7 -7
- package/dist/endpoints/admin-logs.js +14 -14
- package/dist/endpoints/admin-plans.d.ts +4 -4
- package/dist/endpoints/admin-plans.js +8 -8
- package/dist/endpoints/admin-project-users.d.ts +8 -8
- package/dist/endpoints/admin-project-users.js +16 -16
- package/dist/endpoints/admin-projects.d.ts +7 -7
- package/dist/endpoints/admin-projects.js +14 -14
- package/dist/endpoints/admin-quotas.d.ts +6 -6
- package/dist/endpoints/admin-quotas.js +12 -12
- package/dist/endpoints/admin-rate-limits.d.ts +2 -2
- package/dist/endpoints/admin-rate-limits.js +4 -4
- package/dist/endpoints/admin-reconcile.d.ts +1 -1
- package/dist/endpoints/admin-reconcile.js +2 -2
- package/dist/endpoints/admin-resources.d.ts +2 -2
- package/dist/endpoints/admin-resources.js +4 -4
- package/dist/endpoints/admin-secrets.d.ts +2 -2
- package/dist/endpoints/admin-secrets.js +4 -4
- package/dist/endpoints/admin-services.d.ts +1 -1
- package/dist/endpoints/admin-services.js +2 -2
- package/dist/endpoints/admin-tasks.d.ts +6 -6
- package/dist/endpoints/admin-tasks.js +12 -12
- package/dist/endpoints/admin-tenants.d.ts +1 -1
- package/dist/endpoints/admin-tenants.js +2 -2
- package/dist/endpoints/admin-traces.d.ts +5 -5
- package/dist/endpoints/admin-traces.js +10 -10
- package/dist/endpoints/admin-users.d.ts +8 -8
- package/dist/endpoints/admin-users.js +16 -16
- package/dist/endpoints/admin-webhook-signature-versions.d.ts +3 -3
- package/dist/endpoints/admin-webhook-signature-versions.js +6 -6
- package/dist/endpoints/environments.d.ts +9 -0
- package/dist/endpoints/environments.d.ts.map +1 -1
- package/dist/endpoints/project-manifest.d.ts +16 -16
- package/dist/endpoints/storage.d.ts +4 -6
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +1 -12
- package/dist/hono-app.d.ts +206 -0
- package/dist/hono-app.d.ts.map +1 -0
- package/dist/hono-app.js +62 -0
- package/dist/index.d.ts +399 -228
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/schemas/admin-audit.d.ts +183 -0
- package/dist/schemas/admin-audit.d.ts.map +1 -1
- package/dist/schemas/admin-audit.js +144 -0
- package/dist/schemas/admin-consent.d.ts +32 -3
- package/dist/schemas/admin-consent.d.ts.map +1 -1
- package/dist/schemas/admin-consent.js +28 -1
- package/dist/schemas/environment.d.ts +6 -0
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +2 -0
- package/dist/schemas/project-manifest.d.ts +16 -16
- package/dist/schemas/storage.d.ts +4 -0
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +5 -0
- package/package.json +12 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Production mount: `/admin/traces/*`.
|
|
6
6
|
*/
|
|
7
7
|
export declare const adminTracesEndpoints: {
|
|
8
|
-
readonly stats: import("../endpoint.js").Endpoint<"GET", "/
|
|
8
|
+
readonly stats: import("../endpoint.js").Endpoint<"GET", "/operator/traces/projects/:projectId/stats", import("effect/Schema").Struct<{
|
|
9
9
|
projectId: typeof import("effect/Schema").String;
|
|
10
10
|
}>, import("effect/Schema").Struct<{
|
|
11
11
|
startDate: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -28,7 +28,7 @@ export declare const adminTracesEndpoints: {
|
|
|
28
28
|
end: typeof import("effect/Schema").String;
|
|
29
29
|
}>;
|
|
30
30
|
}>>;
|
|
31
|
-
readonly list: import("../endpoint.js").Endpoint<"GET", "/
|
|
31
|
+
readonly list: import("../endpoint.js").Endpoint<"GET", "/operator/traces/projects/:projectId/traces", import("effect/Schema").Struct<{
|
|
32
32
|
projectId: typeof import("effect/Schema").String;
|
|
33
33
|
}>, import("effect/Schema").Struct<{
|
|
34
34
|
statusFilter: import("effect/Schema").optional<import("effect/Schema").Literal<["all", "2xx", "3xx", "4xx", "5xx", "error"]>>;
|
|
@@ -57,7 +57,7 @@ export declare const adminTracesEndpoints: {
|
|
|
57
57
|
total: typeof import("effect/Schema").Number;
|
|
58
58
|
hasMore: typeof import("effect/Schema").Boolean;
|
|
59
59
|
}>>;
|
|
60
|
-
readonly get: import("../endpoint.js").Endpoint<"GET", "/
|
|
60
|
+
readonly get: import("../endpoint.js").Endpoint<"GET", "/operator/traces/projects/:projectId/traces/:traceId", import("effect/Schema").Struct<{
|
|
61
61
|
projectId: typeof import("effect/Schema").String;
|
|
62
62
|
traceId: typeof import("effect/Schema").String;
|
|
63
63
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -94,7 +94,7 @@ export declare const adminTracesEndpoints: {
|
|
|
94
94
|
spanCount: typeof import("effect/Schema").Number;
|
|
95
95
|
}>>;
|
|
96
96
|
}>>;
|
|
97
|
-
readonly slowEndpoints: import("../endpoint.js").Endpoint<"GET", "/
|
|
97
|
+
readonly slowEndpoints: import("../endpoint.js").Endpoint<"GET", "/operator/traces/projects/:projectId/slow-endpoints", import("effect/Schema").Struct<{
|
|
98
98
|
projectId: typeof import("effect/Schema").String;
|
|
99
99
|
}>, import("effect/Schema").Struct<{
|
|
100
100
|
startDate: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -107,7 +107,7 @@ export declare const adminTracesEndpoints: {
|
|
|
107
107
|
p95Ms: typeof import("effect/Schema").Number;
|
|
108
108
|
requestCount: typeof import("effect/Schema").Number;
|
|
109
109
|
}>>>;
|
|
110
|
-
readonly errorEndpoints: import("../endpoint.js").Endpoint<"GET", "/
|
|
110
|
+
readonly errorEndpoints: import("../endpoint.js").Endpoint<"GET", "/operator/traces/projects/:projectId/error-endpoints", import("effect/Schema").Struct<{
|
|
111
111
|
projectId: typeof import("effect/Schema").String;
|
|
112
112
|
}>, import("effect/Schema").Struct<{
|
|
113
113
|
startDate: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -9,50 +9,50 @@ import { AdminErrorEndpointsResult, AdminGetEndpointsQuery, AdminGetTraceResult,
|
|
|
9
9
|
export const adminTracesEndpoints = {
|
|
10
10
|
stats: defineEndpoint({
|
|
11
11
|
method: 'GET',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/operator/traces/projects/:projectId/stats',
|
|
13
13
|
params: AdminTracesProjectParams,
|
|
14
14
|
query: AdminGetTraceStatsQuery,
|
|
15
15
|
response: AdminTraceStatsResult,
|
|
16
|
-
plane: '
|
|
16
|
+
plane: 'management',
|
|
17
17
|
summary: 'Trace statistics with latency percentiles + status breakdown',
|
|
18
18
|
tags: ['admin-traces'],
|
|
19
19
|
}),
|
|
20
20
|
list: defineEndpoint({
|
|
21
21
|
method: 'GET',
|
|
22
|
-
path: '/
|
|
22
|
+
path: '/operator/traces/projects/:projectId/traces',
|
|
23
23
|
params: AdminTracesProjectParams,
|
|
24
24
|
query: AdminListTracesQuery,
|
|
25
25
|
response: AdminListTracesResult,
|
|
26
|
-
plane: '
|
|
26
|
+
plane: 'management',
|
|
27
27
|
summary: 'List traces with filtering and pagination',
|
|
28
28
|
tags: ['admin-traces'],
|
|
29
29
|
}),
|
|
30
30
|
get: defineEndpoint({
|
|
31
31
|
method: 'GET',
|
|
32
|
-
path: '/
|
|
32
|
+
path: '/operator/traces/projects/:projectId/traces/:traceId',
|
|
33
33
|
params: AdminTracesTraceParams,
|
|
34
34
|
response: AdminGetTraceResult,
|
|
35
|
-
plane: '
|
|
35
|
+
plane: 'management',
|
|
36
36
|
summary: 'Get a trace with full span waterfall and service breakdown',
|
|
37
37
|
tags: ['admin-traces'],
|
|
38
38
|
}),
|
|
39
39
|
slowEndpoints: defineEndpoint({
|
|
40
40
|
method: 'GET',
|
|
41
|
-
path: '/
|
|
41
|
+
path: '/operator/traces/projects/:projectId/slow-endpoints',
|
|
42
42
|
params: AdminTracesProjectParams,
|
|
43
43
|
query: AdminGetEndpointsQuery,
|
|
44
44
|
response: AdminSlowEndpointsResult,
|
|
45
|
-
plane: '
|
|
45
|
+
plane: 'management',
|
|
46
46
|
summary: 'Ranked list of slowest endpoints',
|
|
47
47
|
tags: ['admin-traces'],
|
|
48
48
|
}),
|
|
49
49
|
errorEndpoints: defineEndpoint({
|
|
50
50
|
method: 'GET',
|
|
51
|
-
path: '/
|
|
51
|
+
path: '/operator/traces/projects/:projectId/error-endpoints',
|
|
52
52
|
params: AdminTracesProjectParams,
|
|
53
53
|
query: AdminGetEndpointsQuery,
|
|
54
54
|
response: AdminErrorEndpointsResult,
|
|
55
|
-
plane: '
|
|
55
|
+
plane: 'management',
|
|
56
56
|
summary: 'Ranked list of most error-prone endpoints',
|
|
57
57
|
tags: ['admin-traces'],
|
|
58
58
|
}),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Production mount: `/admin/users/*` (see `apps/api/src/server/platform/app.ts`).
|
|
6
6
|
*/
|
|
7
7
|
export declare const adminUsersEndpoints: {
|
|
8
|
-
readonly search: import("../endpoint.js").Endpoint<"GET", "/
|
|
8
|
+
readonly search: import("../endpoint.js").Endpoint<"GET", "/operator/users/users", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
9
9
|
query: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
10
10
|
limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
11
11
|
offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -29,7 +29,7 @@ export declare const adminUsersEndpoints: {
|
|
|
29
29
|
emailVerified: typeof import("effect/Schema").Number;
|
|
30
30
|
unreadAlerts: typeof import("effect/Schema").Number;
|
|
31
31
|
}>]>>;
|
|
32
|
-
readonly get: import("../endpoint.js").Endpoint<"GET", "/
|
|
32
|
+
readonly get: import("../endpoint.js").Endpoint<"GET", "/operator/users/users/:userId", import("effect/Schema").Struct<{
|
|
33
33
|
userId: typeof import("effect/Schema").String;
|
|
34
34
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
35
35
|
id: typeof import("effect/Schema").String;
|
|
@@ -52,7 +52,7 @@ export declare const adminUsersEndpoints: {
|
|
|
52
52
|
status: typeof import("effect/Schema").String;
|
|
53
53
|
}>>;
|
|
54
54
|
}>>;
|
|
55
|
-
readonly updateRole: import("../endpoint.js").Endpoint<"PATCH", "/
|
|
55
|
+
readonly updateRole: import("../endpoint.js").Endpoint<"PATCH", "/operator/users/users/:userId/role", import("effect/Schema").Struct<{
|
|
56
56
|
userId: typeof import("effect/Schema").String;
|
|
57
57
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
58
58
|
role: import("effect/Schema").Literal<["user", "admin", "super_admin"]>;
|
|
@@ -60,13 +60,13 @@ export declare const adminUsersEndpoints: {
|
|
|
60
60
|
id: typeof import("effect/Schema").String;
|
|
61
61
|
role: import("effect/Schema").Literal<["user", "admin", "super_admin"]>;
|
|
62
62
|
}>>;
|
|
63
|
-
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/
|
|
63
|
+
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/operator/users/users/:userId", import("effect/Schema").Struct<{
|
|
64
64
|
userId: typeof import("effect/Schema").String;
|
|
65
65
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
66
66
|
id: typeof import("effect/Schema").String;
|
|
67
67
|
email: typeof import("effect/Schema").String;
|
|
68
68
|
}>>;
|
|
69
|
-
readonly getSessions: import("../endpoint.js").Endpoint<"GET", "/
|
|
69
|
+
readonly getSessions: import("../endpoint.js").Endpoint<"GET", "/operator/users/users/:userId/sessions", import("effect/Schema").Struct<{
|
|
70
70
|
userId: typeof import("effect/Schema").String;
|
|
71
71
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
72
72
|
sessions: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
@@ -84,19 +84,19 @@ export declare const adminUsersEndpoints: {
|
|
|
84
84
|
expiresAt: typeof import("effect/Schema").String;
|
|
85
85
|
}>>;
|
|
86
86
|
}>>;
|
|
87
|
-
readonly revokeSessions: import("../endpoint.js").Endpoint<"DELETE", "/
|
|
87
|
+
readonly revokeSessions: import("../endpoint.js").Endpoint<"DELETE", "/operator/users/users/:userId/sessions", import("effect/Schema").Struct<{
|
|
88
88
|
userId: typeof import("effect/Schema").String;
|
|
89
89
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
90
90
|
userId: typeof import("effect/Schema").String;
|
|
91
91
|
revokedCount: typeof import("effect/Schema").Number;
|
|
92
92
|
}>>;
|
|
93
|
-
readonly revokeSession: import("../endpoint.js").Endpoint<"DELETE", "/
|
|
93
|
+
readonly revokeSession: import("../endpoint.js").Endpoint<"DELETE", "/operator/users/users/:userId/sessions/:sessionId", import("effect/Schema").Struct<{
|
|
94
94
|
userId: typeof import("effect/Schema").String;
|
|
95
95
|
sessionId: typeof import("effect/Schema").String;
|
|
96
96
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
97
97
|
sessionId: typeof import("effect/Schema").String;
|
|
98
98
|
}>>;
|
|
99
|
-
readonly verifyEmail: import("../endpoint.js").Endpoint<"POST", "/
|
|
99
|
+
readonly verifyEmail: import("../endpoint.js").Endpoint<"POST", "/operator/users/users/:userId/verify-email", import("effect/Schema").Struct<{
|
|
100
100
|
userId: typeof import("effect/Schema").String;
|
|
101
101
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
102
102
|
id: typeof import("effect/Schema").String;
|
|
@@ -9,74 +9,74 @@ import { AdminDeleteUserResult, AdminGetUserResult, AdminGetUserSessionsResult,
|
|
|
9
9
|
export const adminUsersEndpoints = {
|
|
10
10
|
search: defineEndpoint({
|
|
11
11
|
method: 'GET',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/operator/users/users',
|
|
13
13
|
query: AdminSearchUsersQuery,
|
|
14
14
|
response: AdminSearchUsersResult,
|
|
15
|
-
plane: '
|
|
15
|
+
plane: 'management',
|
|
16
16
|
summary: 'Search platform users (admin)',
|
|
17
17
|
tags: ['admin-users'],
|
|
18
18
|
}),
|
|
19
19
|
get: defineEndpoint({
|
|
20
20
|
method: 'GET',
|
|
21
|
-
path: '/
|
|
21
|
+
path: '/operator/users/users/:userId',
|
|
22
22
|
params: AdminUserIdParams,
|
|
23
23
|
response: AdminGetUserResult,
|
|
24
|
-
plane: '
|
|
24
|
+
plane: 'management',
|
|
25
25
|
summary: 'Get user details including projects and subscriptions',
|
|
26
26
|
tags: ['admin-users'],
|
|
27
27
|
}),
|
|
28
28
|
updateRole: defineEndpoint({
|
|
29
29
|
method: 'PATCH',
|
|
30
|
-
path: '/
|
|
30
|
+
path: '/operator/users/users/:userId/role',
|
|
31
31
|
params: AdminUserIdParams,
|
|
32
32
|
body: AdminUpdateUserRoleInput,
|
|
33
33
|
response: AdminUpdateUserRoleResult,
|
|
34
|
-
plane: '
|
|
34
|
+
plane: 'management',
|
|
35
35
|
summary: 'Update platform user role (super_admin only)',
|
|
36
36
|
tags: ['admin-users'],
|
|
37
37
|
}),
|
|
38
38
|
delete: defineEndpoint({
|
|
39
39
|
method: 'DELETE',
|
|
40
|
-
path: '/
|
|
40
|
+
path: '/operator/users/users/:userId',
|
|
41
41
|
params: AdminUserIdParams,
|
|
42
42
|
response: AdminDeleteUserResult,
|
|
43
|
-
plane: '
|
|
43
|
+
plane: 'management',
|
|
44
44
|
summary: 'Soft delete platform user (super_admin only)',
|
|
45
45
|
tags: ['admin-users'],
|
|
46
46
|
}),
|
|
47
47
|
getSessions: defineEndpoint({
|
|
48
48
|
method: 'GET',
|
|
49
|
-
path: '/
|
|
49
|
+
path: '/operator/users/users/:userId/sessions',
|
|
50
50
|
params: AdminUserIdParams,
|
|
51
51
|
response: AdminGetUserSessionsResult,
|
|
52
|
-
plane: '
|
|
52
|
+
plane: 'management',
|
|
53
53
|
summary: 'List active sessions for a user',
|
|
54
54
|
tags: ['admin-users'],
|
|
55
55
|
}),
|
|
56
56
|
revokeSessions: defineEndpoint({
|
|
57
57
|
method: 'DELETE',
|
|
58
|
-
path: '/
|
|
58
|
+
path: '/operator/users/users/:userId/sessions',
|
|
59
59
|
params: AdminUserIdParams,
|
|
60
60
|
response: AdminRevokeUserSessionsResult,
|
|
61
|
-
plane: '
|
|
61
|
+
plane: 'management',
|
|
62
62
|
summary: 'Revoke all sessions for a user (super_admin only)',
|
|
63
63
|
tags: ['admin-users'],
|
|
64
64
|
}),
|
|
65
65
|
revokeSession: defineEndpoint({
|
|
66
66
|
method: 'DELETE',
|
|
67
|
-
path: '/
|
|
67
|
+
path: '/operator/users/users/:userId/sessions/:sessionId',
|
|
68
68
|
params: AdminRevokeSessionParams,
|
|
69
69
|
response: AdminRevokeSessionResult,
|
|
70
|
-
plane: '
|
|
70
|
+
plane: 'management',
|
|
71
71
|
summary: 'Revoke a single session for a user',
|
|
72
72
|
tags: ['admin-users'],
|
|
73
73
|
}),
|
|
74
74
|
verifyEmail: defineEndpoint({
|
|
75
75
|
method: 'POST',
|
|
76
|
-
path: '/
|
|
76
|
+
path: '/operator/users/users/:userId/verify-email',
|
|
77
77
|
params: AdminUserIdParams,
|
|
78
78
|
response: AdminVerifyUserEmailResult,
|
|
79
|
-
plane: '
|
|
79
|
+
plane: 'management',
|
|
80
80
|
summary: "Manually verify a user's email (super_admin only)",
|
|
81
81
|
tags: ['admin-users'],
|
|
82
82
|
}),
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Plane: `admin`.
|
|
14
14
|
*/
|
|
15
15
|
export declare const adminWebhookSignatureVersionsEndpoints: {
|
|
16
|
-
readonly list: import("../endpoint.js").Endpoint<"GET", "/
|
|
16
|
+
readonly list: import("../endpoint.js").Endpoint<"GET", "/operator/webhooks/signature-versions", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
17
17
|
versions: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
18
18
|
version: typeof import("effect/Schema").Number;
|
|
19
19
|
algorithm: import("effect/Schema").Literal<["HMAC-SHA256", "HMAC-SHA512"]>;
|
|
@@ -25,7 +25,7 @@ export declare const adminWebhookSignatureVersionsEndpoints: {
|
|
|
25
25
|
updatedBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
26
26
|
}>>;
|
|
27
27
|
}>>;
|
|
28
|
-
readonly create: import("../endpoint.js").Endpoint<"POST", "/
|
|
28
|
+
readonly create: import("../endpoint.js").Endpoint<"POST", "/operator/webhooks/signature-versions", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
29
29
|
version: import("effect/Schema").filter<import("effect/Schema").filter<typeof import("effect/Schema").Number>>;
|
|
30
30
|
algorithm: import("effect/Schema").Literal<["HMAC-SHA256", "HMAC-SHA512"]>;
|
|
31
31
|
hmacKeyKmsId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -40,7 +40,7 @@ export declare const adminWebhookSignatureVersionsEndpoints: {
|
|
|
40
40
|
updatedAt: typeof import("effect/Schema").String;
|
|
41
41
|
updatedBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
42
42
|
}>>;
|
|
43
|
-
readonly update: import("../endpoint.js").Endpoint<"PATCH", "/
|
|
43
|
+
readonly update: import("../endpoint.js").Endpoint<"PATCH", "/operator/webhooks/signature-versions/:version", import("effect/Schema").Struct<{
|
|
44
44
|
version: import("effect/Schema").filter<import("effect/Schema").filter<typeof import("effect/Schema").NumberFromString>>;
|
|
45
45
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
46
46
|
active: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
@@ -17,9 +17,9 @@ import { CreateWebhookSignatureVersionInput, CreateWebhookSignatureVersionRespon
|
|
|
17
17
|
export const adminWebhookSignatureVersionsEndpoints = {
|
|
18
18
|
list: defineEndpoint({
|
|
19
19
|
method: 'GET',
|
|
20
|
-
path: '/
|
|
20
|
+
path: '/operator/webhooks/signature-versions',
|
|
21
21
|
response: ListWebhookSignatureVersionsResponse,
|
|
22
|
-
plane: '
|
|
22
|
+
plane: 'management',
|
|
23
23
|
summary: 'List every webhook signature version (active + retired)',
|
|
24
24
|
description: 'Returns every row in `webhook_signature_versions`, ordered by ' +
|
|
25
25
|
'version ascending. Operators consume this to confirm the current ' +
|
|
@@ -29,10 +29,10 @@ export const adminWebhookSignatureVersionsEndpoints = {
|
|
|
29
29
|
}),
|
|
30
30
|
create: defineEndpoint({
|
|
31
31
|
method: 'POST',
|
|
32
|
-
path: '/
|
|
32
|
+
path: '/operator/webhooks/signature-versions',
|
|
33
33
|
body: CreateWebhookSignatureVersionInput,
|
|
34
34
|
response: CreateWebhookSignatureVersionResponse,
|
|
35
|
-
plane: '
|
|
35
|
+
plane: 'management',
|
|
36
36
|
summary: 'Register a new webhook signature version',
|
|
37
37
|
description: 'Installs a new version row. Typically `active: false` initially; ' +
|
|
38
38
|
'flip via PATCH once the rollout window opens. v1 is pinned to ' +
|
|
@@ -41,11 +41,11 @@ export const adminWebhookSignatureVersionsEndpoints = {
|
|
|
41
41
|
}),
|
|
42
42
|
update: defineEndpoint({
|
|
43
43
|
method: 'PATCH',
|
|
44
|
-
path: '/
|
|
44
|
+
path: '/operator/webhooks/signature-versions/:version',
|
|
45
45
|
params: WebhookSignatureVersionParams,
|
|
46
46
|
body: UpdateWebhookSignatureVersionInput,
|
|
47
47
|
response: UpdateWebhookSignatureVersionResponse,
|
|
48
|
-
plane: '
|
|
48
|
+
plane: 'management',
|
|
49
49
|
summary: 'Toggle active state or retire a webhook signature version',
|
|
50
50
|
description: 'Allowed transitions: activate (`active: true`), deactivate ' +
|
|
51
51
|
'(`active: false`, but never the last active row), or retire ' +
|
|
@@ -36,6 +36,7 @@ export declare const environmentsEndpoints: {
|
|
|
36
36
|
url: Schema.optional<typeof Schema.String>;
|
|
37
37
|
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
38
38
|
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
39
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
39
40
|
createdAt: Schema.optional<typeof Schema.String>;
|
|
40
41
|
updatedAt: Schema.optional<typeof Schema.String>;
|
|
41
42
|
status: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -88,6 +89,7 @@ export declare const environmentsEndpoints: {
|
|
|
88
89
|
url: Schema.optional<typeof Schema.String>;
|
|
89
90
|
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
90
91
|
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
92
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
91
93
|
createdAt: Schema.optional<typeof Schema.String>;
|
|
92
94
|
updatedAt: Schema.optional<typeof Schema.String>;
|
|
93
95
|
status: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -124,6 +126,7 @@ export declare const environmentsEndpoints: {
|
|
|
124
126
|
allowPrivilegeEscalation: Schema.optional<typeof Schema.Boolean>;
|
|
125
127
|
privileged: Schema.optional<typeof Schema.Boolean>;
|
|
126
128
|
}>>;
|
|
129
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
127
130
|
settings: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
128
131
|
}>, Schema.Struct<{
|
|
129
132
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
|
|
@@ -147,6 +150,7 @@ export declare const environmentsEndpoints: {
|
|
|
147
150
|
url: Schema.optional<typeof Schema.String>;
|
|
148
151
|
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
149
152
|
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
153
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
150
154
|
createdAt: Schema.optional<typeof Schema.String>;
|
|
151
155
|
updatedAt: Schema.optional<typeof Schema.String>;
|
|
152
156
|
status: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -206,6 +210,7 @@ export declare const environmentsEndpoints: {
|
|
|
206
210
|
url: Schema.optional<typeof Schema.String>;
|
|
207
211
|
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
208
212
|
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
213
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
209
214
|
createdAt: Schema.optional<typeof Schema.String>;
|
|
210
215
|
updatedAt: Schema.optional<typeof Schema.String>;
|
|
211
216
|
status: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -236,6 +241,7 @@ export declare const environmentsEndpoints: {
|
|
|
236
241
|
url: Schema.optional<typeof Schema.String>;
|
|
237
242
|
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
238
243
|
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
244
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
239
245
|
createdAt: Schema.optional<typeof Schema.String>;
|
|
240
246
|
updatedAt: Schema.optional<typeof Schema.String>;
|
|
241
247
|
status: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -285,6 +291,7 @@ export declare const environmentsEndpoints: {
|
|
|
285
291
|
url: Schema.optional<typeof Schema.String>;
|
|
286
292
|
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
287
293
|
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
294
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
288
295
|
createdAt: Schema.optional<typeof Schema.String>;
|
|
289
296
|
updatedAt: Schema.optional<typeof Schema.String>;
|
|
290
297
|
status: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -320,6 +327,7 @@ export declare const environmentsEndpoints: {
|
|
|
320
327
|
allowPrivilegeEscalation: Schema.optional<typeof Schema.Boolean>;
|
|
321
328
|
privileged: Schema.optional<typeof Schema.Boolean>;
|
|
322
329
|
}>>;
|
|
330
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
323
331
|
settings: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
324
332
|
}>, Schema.Struct<{
|
|
325
333
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
|
|
@@ -343,6 +351,7 @@ export declare const environmentsEndpoints: {
|
|
|
343
351
|
url: Schema.optional<typeof Schema.String>;
|
|
344
352
|
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
345
353
|
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
354
|
+
defaultHealthAgentMode: Schema.optional<Schema.Literal<["auto", "passthrough", "disabled"]>>;
|
|
346
355
|
createdAt: Schema.optional<typeof Schema.String>;
|
|
347
356
|
updatedAt: Schema.optional<typeof Schema.String>;
|
|
348
357
|
status: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../src/endpoints/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwD/B,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../src/endpoints/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwD/B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsMxB,CAAA"}
|
|
@@ -83,7 +83,7 @@ export declare const projectManifestEndpoints: {
|
|
|
83
83
|
}[] | undefined;
|
|
84
84
|
readonly services?: readonly {
|
|
85
85
|
readonly name: string;
|
|
86
|
-
readonly type?: "function" | "
|
|
86
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
87
87
|
readonly port?: number | undefined;
|
|
88
88
|
readonly env?: readonly string[] | undefined;
|
|
89
89
|
readonly replicas?: number | undefined;
|
|
@@ -135,7 +135,7 @@ export declare const projectManifestEndpoints: {
|
|
|
135
135
|
}[] | undefined;
|
|
136
136
|
readonly services?: readonly {
|
|
137
137
|
readonly name: string;
|
|
138
|
-
readonly type?: "function" | "
|
|
138
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
139
139
|
readonly port?: number | undefined;
|
|
140
140
|
readonly env?: readonly string[] | undefined;
|
|
141
141
|
readonly replicas?: number | undefined;
|
|
@@ -187,7 +187,7 @@ export declare const projectManifestEndpoints: {
|
|
|
187
187
|
}[] | undefined;
|
|
188
188
|
readonly services?: readonly {
|
|
189
189
|
readonly name: string;
|
|
190
|
-
readonly type?: "function" | "
|
|
190
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
191
191
|
readonly port?: number | undefined;
|
|
192
192
|
readonly env?: readonly string[] | undefined;
|
|
193
193
|
readonly replicas?: number | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const projectManifestEndpoints: {
|
|
|
239
239
|
}[] | undefined;
|
|
240
240
|
readonly services?: readonly {
|
|
241
241
|
readonly name: string;
|
|
242
|
-
readonly type?: "function" | "
|
|
242
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
243
243
|
readonly port?: number | undefined;
|
|
244
244
|
readonly env?: readonly string[] | undefined;
|
|
245
245
|
readonly replicas?: number | undefined;
|
|
@@ -292,7 +292,7 @@ export declare const projectManifestEndpoints: {
|
|
|
292
292
|
}[] | undefined;
|
|
293
293
|
readonly services?: readonly {
|
|
294
294
|
readonly name: string;
|
|
295
|
-
readonly type?: "function" | "
|
|
295
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
296
296
|
readonly port?: number | undefined;
|
|
297
297
|
readonly env?: readonly string[] | undefined;
|
|
298
298
|
readonly replicas?: number | undefined;
|
|
@@ -344,7 +344,7 @@ export declare const projectManifestEndpoints: {
|
|
|
344
344
|
}[] | undefined;
|
|
345
345
|
readonly services?: readonly {
|
|
346
346
|
readonly name: string;
|
|
347
|
-
readonly type?: "function" | "
|
|
347
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
348
348
|
readonly port?: number | undefined;
|
|
349
349
|
readonly env?: readonly string[] | undefined;
|
|
350
350
|
readonly replicas?: number | undefined;
|
|
@@ -396,7 +396,7 @@ export declare const projectManifestEndpoints: {
|
|
|
396
396
|
}[] | undefined;
|
|
397
397
|
readonly services?: readonly {
|
|
398
398
|
readonly name: string;
|
|
399
|
-
readonly type?: "function" | "
|
|
399
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
400
400
|
readonly port?: number | undefined;
|
|
401
401
|
readonly env?: readonly string[] | undefined;
|
|
402
402
|
readonly replicas?: number | undefined;
|
|
@@ -448,7 +448,7 @@ export declare const projectManifestEndpoints: {
|
|
|
448
448
|
}[] | undefined;
|
|
449
449
|
readonly services?: readonly {
|
|
450
450
|
readonly name: string;
|
|
451
|
-
readonly type?: "function" | "
|
|
451
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
452
452
|
readonly port?: number | undefined;
|
|
453
453
|
readonly env?: readonly string[] | undefined;
|
|
454
454
|
readonly replicas?: number | undefined;
|
|
@@ -596,7 +596,7 @@ export declare const projectManifestEndpoints: {
|
|
|
596
596
|
}[] | undefined;
|
|
597
597
|
readonly services?: readonly {
|
|
598
598
|
readonly name: string;
|
|
599
|
-
readonly type?: "function" | "
|
|
599
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
600
600
|
readonly port?: number | undefined;
|
|
601
601
|
readonly env?: readonly string[] | undefined;
|
|
602
602
|
readonly replicas?: number | undefined;
|
|
@@ -648,7 +648,7 @@ export declare const projectManifestEndpoints: {
|
|
|
648
648
|
}[] | undefined;
|
|
649
649
|
readonly services?: readonly {
|
|
650
650
|
readonly name: string;
|
|
651
|
-
readonly type?: "function" | "
|
|
651
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
652
652
|
readonly port?: number | undefined;
|
|
653
653
|
readonly env?: readonly string[] | undefined;
|
|
654
654
|
readonly replicas?: number | undefined;
|
|
@@ -700,7 +700,7 @@ export declare const projectManifestEndpoints: {
|
|
|
700
700
|
}[] | undefined;
|
|
701
701
|
readonly services?: readonly {
|
|
702
702
|
readonly name: string;
|
|
703
|
-
readonly type?: "function" | "
|
|
703
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
704
704
|
readonly port?: number | undefined;
|
|
705
705
|
readonly env?: readonly string[] | undefined;
|
|
706
706
|
readonly replicas?: number | undefined;
|
|
@@ -752,7 +752,7 @@ export declare const projectManifestEndpoints: {
|
|
|
752
752
|
}[] | undefined;
|
|
753
753
|
readonly services?: readonly {
|
|
754
754
|
readonly name: string;
|
|
755
|
-
readonly type?: "function" | "
|
|
755
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
756
756
|
readonly port?: number | undefined;
|
|
757
757
|
readonly env?: readonly string[] | undefined;
|
|
758
758
|
readonly replicas?: number | undefined;
|
|
@@ -805,7 +805,7 @@ export declare const projectManifestEndpoints: {
|
|
|
805
805
|
}[] | undefined;
|
|
806
806
|
readonly services?: readonly {
|
|
807
807
|
readonly name: string;
|
|
808
|
-
readonly type?: "function" | "
|
|
808
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
809
809
|
readonly port?: number | undefined;
|
|
810
810
|
readonly env?: readonly string[] | undefined;
|
|
811
811
|
readonly replicas?: number | undefined;
|
|
@@ -857,7 +857,7 @@ export declare const projectManifestEndpoints: {
|
|
|
857
857
|
}[] | undefined;
|
|
858
858
|
readonly services?: readonly {
|
|
859
859
|
readonly name: string;
|
|
860
|
-
readonly type?: "function" | "
|
|
860
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
861
861
|
readonly port?: number | undefined;
|
|
862
862
|
readonly env?: readonly string[] | undefined;
|
|
863
863
|
readonly replicas?: number | undefined;
|
|
@@ -909,7 +909,7 @@ export declare const projectManifestEndpoints: {
|
|
|
909
909
|
}[] | undefined;
|
|
910
910
|
readonly services?: readonly {
|
|
911
911
|
readonly name: string;
|
|
912
|
-
readonly type?: "function" | "
|
|
912
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
913
913
|
readonly port?: number | undefined;
|
|
914
914
|
readonly env?: readonly string[] | undefined;
|
|
915
915
|
readonly replicas?: number | undefined;
|
|
@@ -961,7 +961,7 @@ export declare const projectManifestEndpoints: {
|
|
|
961
961
|
}[] | undefined;
|
|
962
962
|
readonly services?: readonly {
|
|
963
963
|
readonly name: string;
|
|
964
|
-
readonly type?: "function" | "
|
|
964
|
+
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
965
965
|
readonly port?: number | undefined;
|
|
966
966
|
readonly env?: readonly string[] | undefined;
|
|
967
967
|
readonly replicas?: number | undefined;
|
|
@@ -22,6 +22,10 @@ export declare const storageEndpoints: {
|
|
|
22
22
|
publicUrl: Schema.optional<typeof Schema.String>;
|
|
23
23
|
fileId: Schema.optional<typeof Schema.String>;
|
|
24
24
|
expiresAt: Schema.optional<typeof Schema.String>;
|
|
25
|
+
presignedUrl: Schema.optional<typeof Schema.String>;
|
|
26
|
+
storageKey: Schema.optional<typeof Schema.String>;
|
|
27
|
+
tokenPayload: Schema.optional<typeof Schema.String>;
|
|
28
|
+
url: Schema.optional<typeof Schema.String>;
|
|
25
29
|
uploadEndpoint: Schema.optional<typeof Schema.String>;
|
|
26
30
|
clientPayload: Schema.optional<typeof Schema.String>;
|
|
27
31
|
maxSize: Schema.optional<typeof Schema.Number>;
|
|
@@ -157,11 +161,5 @@ export declare const storageEndpoints: {
|
|
|
157
161
|
uploadedAt: Schema.optional<typeof Schema.String>;
|
|
158
162
|
}>;
|
|
159
163
|
}>>;
|
|
160
|
-
readonly softDelete: import("../endpoint.js").Endpoint<"DELETE", "/storage/files/:id", Schema.Struct<{
|
|
161
|
-
id: typeof Schema.String;
|
|
162
|
-
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
163
|
-
success: Schema.Literal<[true]>;
|
|
164
|
-
isDeleted: Schema.Literal<[true]>;
|
|
165
|
-
}>>;
|
|
166
164
|
};
|
|
167
165
|
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/endpoints/storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/endpoints/storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwB/B,eAAO,MAAM,gBAAgB;IAC5B;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEM,CAAA"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Schema } from 'effect';
|
|
5
5
|
import { defineEndpoint } from '../endpoint.js';
|
|
6
|
-
import { DeleteFileResult, FileInfo, ListFilesQuery, ListFilesResult, ListFileVersionsResult, RestoreFileResult, RestoreVersionResult, SignedUrlInput, SignedUrlResult,
|
|
6
|
+
import { DeleteFileResult, FileInfo, ListFilesQuery, ListFilesResult, ListFileVersionsResult, RestoreFileResult, RestoreVersionResult, SignedUrlInput, SignedUrlResult, UploadTokenInput, UploadTokenResult, UploadUrlInput, UploadUrlResult, } from '../schemas/storage.js';
|
|
7
7
|
const IdPath = Schema.Struct({ id: Schema.String });
|
|
8
8
|
const FileVersionPath = Schema.Struct({
|
|
9
9
|
id: Schema.String,
|
|
@@ -103,15 +103,4 @@ export const storageEndpoints = {
|
|
|
103
103
|
summary: 'Restore a soft-deleted file',
|
|
104
104
|
tags: ['storage'],
|
|
105
105
|
}),
|
|
106
|
-
// Alias of `delete` — explicit endpoint name so SDK `softDeleteFile()`
|
|
107
|
-
// is unambiguous; same underlying route.
|
|
108
|
-
softDelete: defineEndpoint({
|
|
109
|
-
method: 'DELETE',
|
|
110
|
-
path: '/storage/files/:id',
|
|
111
|
-
params: IdPath,
|
|
112
|
-
response: SoftDeleteFileResult,
|
|
113
|
-
plane: 'baas',
|
|
114
|
-
summary: 'Soft-delete a stored file (explicit alias of delete)',
|
|
115
|
-
tags: ['storage'],
|
|
116
|
-
}),
|
|
117
106
|
};
|