@sylphx/contract 0.3.0 → 0.5.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 +45 -3
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoint.js +9 -0
- package/dist/endpoints/admin-ai-playground.d.ts +3 -3
- package/dist/endpoints/admin-anomalies.d.ts +7 -7
- package/dist/endpoints/admin-apm.d.ts +6 -6
- package/dist/endpoints/admin-audit.d.ts +94 -58
- package/dist/endpoints/admin-audit.d.ts.map +1 -1
- package/dist/endpoints/admin-audit.js +8 -1
- package/dist/endpoints/admin-billing.d.ts +35 -24
- package/dist/endpoints/admin-billing.d.ts.map +1 -1
- package/dist/endpoints/admin-billing.js +4 -3
- package/dist/endpoints/admin-bootstrap.d.ts +1 -1
- package/dist/endpoints/admin-branch-databases.d.ts +43 -0
- package/dist/endpoints/admin-branch-databases.d.ts.map +1 -0
- package/dist/endpoints/admin-branch-databases.js +41 -0
- package/dist/endpoints/admin-broadcasts.d.ts +10 -8
- package/dist/endpoints/admin-broadcasts.d.ts.map +1 -1
- package/dist/endpoints/admin-broadcasts.js +1 -0
- package/dist/endpoints/admin-builds.d.ts +1 -1
- package/dist/endpoints/admin-config.d.ts +11 -11
- package/dist/endpoints/admin-consent.d.ts +78 -41
- package/dist/endpoints/admin-consent.d.ts.map +1 -1
- package/dist/endpoints/admin-consent.js +9 -6
- package/dist/endpoints/admin-env-services.d.ts +1 -1
- package/dist/endpoints/admin-impersonation.d.ts +9 -9
- package/dist/endpoints/admin-invitations.d.ts +9 -5
- package/dist/endpoints/admin-invitations.d.ts.map +1 -1
- package/dist/endpoints/admin-invitations.js +2 -0
- package/dist/endpoints/admin-jwt-keys.d.ts +6 -6
- package/dist/endpoints/admin-logs.d.ts +7 -7
- package/dist/endpoints/admin-plans.d.ts +6 -4
- package/dist/endpoints/admin-plans.d.ts.map +1 -1
- package/dist/endpoints/admin-plans.js +1 -0
- package/dist/endpoints/admin-project-users.d.ts +8 -8
- package/dist/endpoints/admin-projects.d.ts +11 -9
- package/dist/endpoints/admin-projects.d.ts.map +1 -1
- package/dist/endpoints/admin-projects.js +3 -2
- package/dist/endpoints/admin-quotas.d.ts +6 -6
- package/dist/endpoints/admin-rate-limits.d.ts +2 -2
- package/dist/endpoints/admin-reconcile.d.ts +1 -1
- package/dist/endpoints/admin-resources.d.ts +2 -2
- package/dist/endpoints/admin-secrets.d.ts +2 -2
- package/dist/endpoints/admin-services.d.ts +1 -1
- package/dist/endpoints/admin-tasks.d.ts +6 -6
- package/dist/endpoints/admin-tenants.d.ts +3 -1
- package/dist/endpoints/admin-tenants.d.ts.map +1 -1
- package/dist/endpoints/admin-tenants.js +1 -0
- package/dist/endpoints/admin-traces.d.ts +5 -5
- package/dist/endpoints/admin-users.d.ts +8 -8
- package/dist/endpoints/admin-webhook-signature-versions.d.ts +5 -3
- package/dist/endpoints/admin-webhook-signature-versions.d.ts.map +1 -1
- package/dist/endpoints/admin-webhook-signature-versions.js +1 -0
- package/dist/endpoints/ai-admin.d.ts +5 -5
- package/dist/endpoints/analytics-admin.d.ts +123 -38
- package/dist/endpoints/analytics-admin.d.ts.map +1 -1
- package/dist/endpoints/analytics-admin.js +17 -9
- package/dist/endpoints/analytics.d.ts +4 -4
- package/dist/endpoints/audit-chain.d.ts +1 -1
- package/dist/endpoints/audit.d.ts +1 -1
- package/dist/endpoints/auth-admin.d.ts +5 -5
- package/dist/endpoints/auth.d.ts +65 -21
- package/dist/endpoints/auth.d.ts.map +1 -1
- package/dist/endpoints/auth.js +9 -2
- package/dist/endpoints/backups.d.ts +4 -4
- package/dist/endpoints/billing-console.d.ts +16 -16
- package/dist/endpoints/billing-settings.d.ts +11 -11
- package/dist/endpoints/branch-databases.d.ts +8 -4
- package/dist/endpoints/branch-databases.d.ts.map +1 -1
- package/dist/endpoints/branch-databases.js +2 -0
- package/dist/endpoints/challenge.d.ts +5 -5
- package/dist/endpoints/ci-settings.d.ts +8 -8
- package/dist/endpoints/consent-admin.d.ts +9 -7
- package/dist/endpoints/consent-admin.d.ts.map +1 -1
- package/dist/endpoints/consent-admin.js +1 -0
- package/dist/endpoints/databases.d.ts +187 -321
- package/dist/endpoints/databases.d.ts.map +1 -1
- package/dist/endpoints/databases.js +42 -41
- package/dist/endpoints/deployments.d.ts +71 -18
- package/dist/endpoints/deployments.d.ts.map +1 -1
- package/dist/endpoints/deployments.js +9 -1
- package/dist/endpoints/domains.d.ts +33 -23
- package/dist/endpoints/domains.d.ts.map +1 -1
- package/dist/endpoints/domains.js +7 -4
- package/dist/endpoints/email-admin.d.ts +29 -23
- package/dist/endpoints/email-admin.d.ts.map +1 -1
- package/dist/endpoints/email-admin.js +3 -0
- package/dist/endpoints/email.d.ts +4 -4
- package/dist/endpoints/engagement-admin.d.ts +6 -6
- package/dist/endpoints/env-vars.d.ts +3 -3
- package/dist/endpoints/environments.d.ts +30 -27
- package/dist/endpoints/environments.d.ts.map +1 -1
- package/dist/endpoints/environments.js +3 -7
- package/dist/endpoints/experiments.d.ts +20 -18
- package/dist/endpoints/experiments.d.ts.map +1 -1
- package/dist/endpoints/experiments.js +1 -0
- package/dist/endpoints/flags-admin.d.ts +73 -9
- package/dist/endpoints/flags-admin.d.ts.map +1 -1
- package/dist/endpoints/flags-admin.js +1 -0
- package/dist/endpoints/flags.d.ts +1 -1
- package/dist/endpoints/github.d.ts +3 -3
- package/dist/endpoints/image-opt.d.ts +2 -2
- package/dist/endpoints/kv-admin.d.ts +6 -6
- package/dist/endpoints/kv.d.ts +8 -8
- package/dist/endpoints/monitoring-admin.d.ts +10 -10
- package/dist/endpoints/monitoring.d.ts +2 -2
- package/dist/endpoints/newsletter.d.ts +30 -24
- package/dist/endpoints/newsletter.d.ts.map +1 -1
- package/dist/endpoints/newsletter.js +3 -0
- package/dist/endpoints/notifications-admin.d.ts +17 -17
- package/dist/endpoints/notifications.d.ts +16 -16
- package/dist/endpoints/oidc.d.ts +6 -4
- package/dist/endpoints/oidc.d.ts.map +1 -1
- package/dist/endpoints/oidc.js +1 -0
- package/dist/endpoints/organizations.d.ts +56 -48
- package/dist/endpoints/organizations.d.ts.map +1 -1
- package/dist/endpoints/organizations.js +4 -0
- package/dist/endpoints/plans.d.ts +9 -7
- package/dist/endpoints/plans.d.ts.map +1 -1
- package/dist/endpoints/plans.js +1 -0
- package/dist/endpoints/privacy.d.ts +11 -9
- package/dist/endpoints/privacy.d.ts.map +1 -1
- package/dist/endpoints/privacy.js +1 -0
- package/dist/endpoints/project-manifest.d.ts +18 -42
- package/dist/endpoints/project-manifest.d.ts.map +1 -1
- package/dist/endpoints/projects.d.ts +7 -5
- package/dist/endpoints/projects.d.ts.map +1 -1
- package/dist/endpoints/projects.js +2 -1
- package/dist/endpoints/rate-limits.d.ts +4 -4
- package/dist/endpoints/realtime-admin.d.ts +6 -4
- package/dist/endpoints/realtime-admin.d.ts.map +1 -1
- package/dist/endpoints/realtime-admin.js +1 -0
- package/dist/endpoints/realtime.d.ts +3 -3
- package/dist/endpoints/referrals-admin.d.ts +7 -5
- package/dist/endpoints/referrals-admin.d.ts.map +1 -1
- package/dist/endpoints/referrals-admin.js +1 -0
- package/dist/endpoints/refresh.d.ts +1 -1
- package/dist/endpoints/regions.d.ts +5 -22
- package/dist/endpoints/regions.d.ts.map +1 -1
- package/dist/endpoints/regions.js +5 -27
- package/dist/endpoints/runners.d.ts +4 -4
- package/dist/endpoints/saml.d.ts +13 -11
- package/dist/endpoints/saml.d.ts.map +1 -1
- package/dist/endpoints/saml.js +1 -0
- package/dist/endpoints/search.d.ts +3 -3
- package/dist/endpoints/secrets.d.ts +9 -7
- package/dist/endpoints/secrets.d.ts.map +1 -1
- package/dist/endpoints/secrets.js +1 -0
- package/dist/endpoints/security.d.ts +28 -28
- package/dist/endpoints/service-tokens.d.ts +20 -12
- package/dist/endpoints/service-tokens.d.ts.map +1 -1
- package/dist/endpoints/service-tokens.js +4 -0
- package/dist/endpoints/session-replay.d.ts +4 -4
- package/dist/endpoints/storage-admin.d.ts +14 -10
- package/dist/endpoints/storage-admin.d.ts.map +1 -1
- package/dist/endpoints/storage-admin.js +3 -1
- package/dist/endpoints/storage.d.ts +189 -131
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +96 -59
- package/dist/endpoints/tasks.d.ts +13 -9
- package/dist/endpoints/tasks.d.ts.map +1 -1
- package/dist/endpoints/tasks.js +2 -0
- package/dist/endpoints/users.d.ts +12 -12
- package/dist/endpoints/webhooks.d.ts +10 -10
- package/dist/hono-app.d.ts +55 -26
- package/dist/hono-app.d.ts.map +1 -1
- package/dist/index.d.ts +1720 -1209
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/schemas/admin-audit.d.ts +50 -0
- package/dist/schemas/admin-audit.d.ts.map +1 -1
- package/dist/schemas/admin-audit.js +43 -0
- package/dist/schemas/admin-billing.d.ts +19 -5
- package/dist/schemas/admin-billing.d.ts.map +1 -1
- package/dist/schemas/admin-billing.js +16 -5
- package/dist/schemas/admin-branch-databases.d.ts +34 -0
- package/dist/schemas/admin-branch-databases.d.ts.map +1 -0
- package/dist/schemas/admin-branch-databases.js +33 -0
- package/dist/schemas/admin-broadcasts.d.ts +6 -6
- package/dist/schemas/admin-broadcasts.d.ts.map +1 -1
- package/dist/schemas/admin-broadcasts.js +1 -1
- package/dist/schemas/admin-consent.d.ts +90 -6
- package/dist/schemas/admin-consent.d.ts.map +1 -1
- package/dist/schemas/admin-consent.js +50 -3
- package/dist/schemas/analytics-admin.d.ts +99 -9
- package/dist/schemas/analytics-admin.d.ts.map +1 -1
- package/dist/schemas/analytics-admin.js +70 -0
- package/dist/schemas/auth.d.ts +54 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +22 -0
- package/dist/schemas/database.d.ts +1 -0
- package/dist/schemas/database.d.ts.map +1 -1
- package/dist/schemas/database.js +1 -0
- package/dist/schemas/deployment.d.ts +53 -0
- package/dist/schemas/deployment.d.ts.map +1 -1
- package/dist/schemas/deployment.js +53 -1
- package/dist/schemas/experiments.d.ts +13 -33
- package/dist/schemas/experiments.d.ts.map +1 -1
- package/dist/schemas/experiments.js +5 -4
- package/dist/schemas/flags-admin.d.ts +115 -19
- package/dist/schemas/flags-admin.d.ts.map +1 -1
- package/dist/schemas/flags-admin.js +28 -8
- package/dist/schemas/ids.d.ts +2 -0
- package/dist/schemas/ids.d.ts.map +1 -1
- package/dist/schemas/ids.js +1 -0
- package/dist/schemas/project-manifest.d.ts +16 -70
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +0 -21
- package/dist/schemas/project.d.ts +3 -3
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +2 -2
- package/dist/schemas/region.d.ts +4 -52
- package/dist/schemas/region.d.ts.map +1 -1
- package/dist/schemas/region.js +4 -46
- package/dist/schemas/resources.d.ts +55 -4
- package/dist/schemas/resources.d.ts.map +1 -1
- package/dist/schemas/resources.js +52 -1
- package/dist/schemas/storage.d.ts +259 -198
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +159 -140
- package/package.json +1 -1
- package/dist/endpoints/edge-deployments.d.ts +0 -92
- package/dist/endpoints/edge-deployments.d.ts.map +0 -1
- package/dist/endpoints/edge-deployments.js +0 -58
- package/dist/schemas/edge-deployments.d.ts +0 -140
- package/dist/schemas/edge-deployments.d.ts.map +0 -1
- package/dist/schemas/edge-deployments.js +0 -87
|
@@ -29,7 +29,7 @@ export declare const emailAdminEndpoints: {
|
|
|
29
29
|
updatedAt: typeof Schema.String;
|
|
30
30
|
}>>;
|
|
31
31
|
total: typeof Schema.Number;
|
|
32
|
-
}
|
|
32
|
+
}>, undefined>;
|
|
33
33
|
readonly createTemplate: import("../endpoint.js").Endpoint<"POST", "/email/projects/:id/templates", Schema.Struct<{
|
|
34
34
|
id: typeof Schema.String;
|
|
35
35
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -61,7 +61,9 @@ export declare const emailAdminEndpoints: {
|
|
|
61
61
|
isActive: typeof Schema.Boolean;
|
|
62
62
|
createdAt: typeof Schema.String;
|
|
63
63
|
updatedAt: typeof Schema.String;
|
|
64
|
-
}
|
|
64
|
+
}>, {
|
|
65
|
+
status: 201;
|
|
66
|
+
}>;
|
|
65
67
|
readonly getTemplate: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/templates/:key", Schema.Struct<{
|
|
66
68
|
id: typeof Schema.String;
|
|
67
69
|
key: typeof Schema.String;
|
|
@@ -81,7 +83,7 @@ export declare const emailAdminEndpoints: {
|
|
|
81
83
|
isActive: typeof Schema.Boolean;
|
|
82
84
|
createdAt: typeof Schema.String;
|
|
83
85
|
updatedAt: typeof Schema.String;
|
|
84
|
-
}
|
|
86
|
+
}>, undefined>;
|
|
85
87
|
readonly updateTemplate: import("../endpoint.js").Endpoint<"PATCH", "/email/projects/:id/templates/:key", Schema.Struct<{
|
|
86
88
|
id: typeof Schema.String;
|
|
87
89
|
key: typeof Schema.String;
|
|
@@ -113,7 +115,7 @@ export declare const emailAdminEndpoints: {
|
|
|
113
115
|
isActive: typeof Schema.Boolean;
|
|
114
116
|
createdAt: typeof Schema.String;
|
|
115
117
|
updatedAt: typeof Schema.String;
|
|
116
|
-
}
|
|
118
|
+
}>, undefined>;
|
|
117
119
|
readonly deleteTemplate: import("../endpoint.js").Endpoint<"DELETE", "/email/projects/:id/templates/:key", Schema.Struct<{
|
|
118
120
|
id: typeof Schema.String;
|
|
119
121
|
key: typeof Schema.String;
|
|
@@ -133,7 +135,7 @@ export declare const emailAdminEndpoints: {
|
|
|
133
135
|
isActive: typeof Schema.Boolean;
|
|
134
136
|
createdAt: typeof Schema.String;
|
|
135
137
|
updatedAt: typeof Schema.String;
|
|
136
|
-
}
|
|
138
|
+
}>, undefined>;
|
|
137
139
|
readonly sendEmail: import("../endpoint.js").Endpoint<"POST", "/email/projects/:id/send", Schema.Struct<{
|
|
138
140
|
id: typeof Schema.String;
|
|
139
141
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -145,7 +147,7 @@ export declare const emailAdminEndpoints: {
|
|
|
145
147
|
}>, Schema.Struct<{
|
|
146
148
|
success: typeof Schema.Boolean;
|
|
147
149
|
id: Schema.optional<typeof Schema.String>;
|
|
148
|
-
}
|
|
150
|
+
}>, undefined>;
|
|
149
151
|
readonly sendTemplated: import("../endpoint.js").Endpoint<"POST", "/email/projects/:id/send-templated", Schema.Struct<{
|
|
150
152
|
id: typeof Schema.String;
|
|
151
153
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -155,7 +157,7 @@ export declare const emailAdminEndpoints: {
|
|
|
155
157
|
}>, Schema.Struct<{
|
|
156
158
|
success: typeof Schema.Boolean;
|
|
157
159
|
template: typeof Schema.String;
|
|
158
|
-
}
|
|
160
|
+
}>, undefined>;
|
|
159
161
|
readonly sendToUser: import("../endpoint.js").Endpoint<"POST", "/email/projects/:id/send-to-user", Schema.Struct<{
|
|
160
162
|
id: typeof Schema.String;
|
|
161
163
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -166,7 +168,7 @@ export declare const emailAdminEndpoints: {
|
|
|
166
168
|
}>, Schema.Struct<{
|
|
167
169
|
success: typeof Schema.Boolean;
|
|
168
170
|
id: Schema.optional<typeof Schema.String>;
|
|
169
|
-
}
|
|
171
|
+
}>, undefined>;
|
|
170
172
|
readonly scheduleEmail: import("../endpoint.js").Endpoint<"POST", "/email/projects/:id/schedule", Schema.Struct<{
|
|
171
173
|
id: typeof Schema.String;
|
|
172
174
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -188,7 +190,9 @@ export declare const emailAdminEndpoints: {
|
|
|
188
190
|
status: typeof Schema.String;
|
|
189
191
|
scheduledFor: typeof Schema.String;
|
|
190
192
|
qstashMessageId: Schema.NullOr<typeof Schema.String>;
|
|
191
|
-
}
|
|
193
|
+
}>, {
|
|
194
|
+
status: 201;
|
|
195
|
+
}>;
|
|
192
196
|
readonly listScheduled: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/scheduled", Schema.Struct<{
|
|
193
197
|
id: typeof Schema.String;
|
|
194
198
|
}>, Schema.Struct<{
|
|
@@ -216,7 +220,7 @@ export declare const emailAdminEndpoints: {
|
|
|
216
220
|
total: typeof Schema.Number;
|
|
217
221
|
limit: typeof Schema.Number;
|
|
218
222
|
offset: typeof Schema.Number;
|
|
219
|
-
}
|
|
223
|
+
}>, undefined>;
|
|
220
224
|
readonly scheduledStats: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/scheduled/stats", Schema.Struct<{
|
|
221
225
|
id: typeof Schema.String;
|
|
222
226
|
}>, Schema.Struct<{
|
|
@@ -229,7 +233,7 @@ export declare const emailAdminEndpoints: {
|
|
|
229
233
|
sent: typeof Schema.Number;
|
|
230
234
|
cancelled: typeof Schema.Number;
|
|
231
235
|
failed: typeof Schema.Number;
|
|
232
|
-
}
|
|
236
|
+
}>, undefined>;
|
|
233
237
|
readonly getScheduled: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/scheduled/:emailId", Schema.Struct<{
|
|
234
238
|
id: typeof Schema.String;
|
|
235
239
|
emailId: typeof Schema.String;
|
|
@@ -248,7 +252,7 @@ export declare const emailAdminEndpoints: {
|
|
|
248
252
|
error: Schema.NullOr<typeof Schema.String>;
|
|
249
253
|
providerMessageId: Schema.NullOr<typeof Schema.String>;
|
|
250
254
|
createdAt: typeof Schema.String;
|
|
251
|
-
}
|
|
255
|
+
}>, undefined>;
|
|
252
256
|
readonly cancelScheduled: import("../endpoint.js").Endpoint<"POST", "/email/projects/:id/scheduled/:emailId/cancel", Schema.Struct<{
|
|
253
257
|
id: typeof Schema.String;
|
|
254
258
|
emailId: typeof Schema.String;
|
|
@@ -256,7 +260,7 @@ export declare const emailAdminEndpoints: {
|
|
|
256
260
|
id: typeof Schema.String;
|
|
257
261
|
status: typeof Schema.String;
|
|
258
262
|
cancelledAt: Schema.NullOr<typeof Schema.String>;
|
|
259
|
-
}
|
|
263
|
+
}>, undefined>;
|
|
260
264
|
readonly rescheduleEmail: import("../endpoint.js").Endpoint<"PATCH", "/email/projects/:id/scheduled/:emailId/reschedule", Schema.Struct<{
|
|
261
265
|
id: typeof Schema.String;
|
|
262
266
|
emailId: typeof Schema.String;
|
|
@@ -267,7 +271,7 @@ export declare const emailAdminEndpoints: {
|
|
|
267
271
|
status: typeof Schema.String;
|
|
268
272
|
scheduledFor: typeof Schema.String;
|
|
269
273
|
qstashMessageId: Schema.NullOr<typeof Schema.String>;
|
|
270
|
-
}
|
|
274
|
+
}>, undefined>;
|
|
271
275
|
readonly listLogs: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/logs", Schema.Struct<{
|
|
272
276
|
id: typeof Schema.String;
|
|
273
277
|
}>, Schema.Struct<{
|
|
@@ -289,7 +293,7 @@ export declare const emailAdminEndpoints: {
|
|
|
289
293
|
last_event: Schema.NullOr<typeof Schema.String>;
|
|
290
294
|
}>>;
|
|
291
295
|
nextCursor: Schema.NullOr<typeof Schema.String>;
|
|
292
|
-
}
|
|
296
|
+
}>, undefined>;
|
|
293
297
|
readonly getLog: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/logs/:logId", Schema.Struct<{
|
|
294
298
|
id: typeof Schema.String;
|
|
295
299
|
logId: typeof Schema.String;
|
|
@@ -317,7 +321,7 @@ export declare const emailAdminEndpoints: {
|
|
|
317
321
|
type: typeof Schema.String;
|
|
318
322
|
created_at: typeof Schema.String;
|
|
319
323
|
}>>;
|
|
320
|
-
}
|
|
324
|
+
}>, undefined>;
|
|
321
325
|
readonly listSuppressions: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/suppressions", Schema.Struct<{
|
|
322
326
|
id: typeof Schema.String;
|
|
323
327
|
}>, Schema.Struct<{
|
|
@@ -335,7 +339,7 @@ export declare const emailAdminEndpoints: {
|
|
|
335
339
|
created_at: typeof Schema.String;
|
|
336
340
|
}>>;
|
|
337
341
|
nextCursor: Schema.NullOr<typeof Schema.String>;
|
|
338
|
-
}
|
|
342
|
+
}>, undefined>;
|
|
339
343
|
readonly addSuppression: import("../endpoint.js").Endpoint<"POST", "/email/projects/:id/suppressions", Schema.Struct<{
|
|
340
344
|
id: typeof Schema.String;
|
|
341
345
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -349,7 +353,9 @@ export declare const emailAdminEndpoints: {
|
|
|
349
353
|
suppressed_at: typeof Schema.String;
|
|
350
354
|
unsuppressed_at: Schema.NullOr<typeof Schema.String>;
|
|
351
355
|
created_at: typeof Schema.String;
|
|
352
|
-
}
|
|
356
|
+
}>, {
|
|
357
|
+
status: 201;
|
|
358
|
+
}>;
|
|
353
359
|
readonly deleteSuppression: import("../endpoint.js").Endpoint<"DELETE", "/email/projects/:id/suppressions/:email", Schema.Struct<{
|
|
354
360
|
id: typeof Schema.String;
|
|
355
361
|
email: typeof Schema.String;
|
|
@@ -361,7 +367,7 @@ export declare const emailAdminEndpoints: {
|
|
|
361
367
|
suppressed_at: typeof Schema.String;
|
|
362
368
|
unsuppressed_at: Schema.NullOr<typeof Schema.String>;
|
|
363
369
|
created_at: typeof Schema.String;
|
|
364
|
-
}
|
|
370
|
+
}>, undefined>;
|
|
365
371
|
readonly getSettings: import("../endpoint.js").Endpoint<"GET", "/email/projects/:id/email-settings", Schema.Struct<{
|
|
366
372
|
id: typeof Schema.String;
|
|
367
373
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -371,7 +377,7 @@ export declare const emailAdminEndpoints: {
|
|
|
371
377
|
webhookSecretPrefix: Schema.NullOr<typeof Schema.String>;
|
|
372
378
|
trackOpens: typeof Schema.Boolean;
|
|
373
379
|
trackClicks: typeof Schema.Boolean;
|
|
374
|
-
}
|
|
380
|
+
}>, undefined>;
|
|
375
381
|
readonly updateSettings: import("../endpoint.js").Endpoint<"PATCH", "/email/projects/:id/email-settings", Schema.Struct<{
|
|
376
382
|
id: typeof Schema.String;
|
|
377
383
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -388,7 +394,7 @@ export declare const emailAdminEndpoints: {
|
|
|
388
394
|
webhookSecretPrefix: Schema.NullOr<typeof Schema.String>;
|
|
389
395
|
trackOpens: typeof Schema.Boolean;
|
|
390
396
|
trackClicks: typeof Schema.Boolean;
|
|
391
|
-
}
|
|
397
|
+
}>, undefined>;
|
|
392
398
|
readonly adminSend: import("../endpoint.js").Endpoint<"POST", "/email/admin/send", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
393
399
|
to: Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>;
|
|
394
400
|
subject: typeof Schema.String;
|
|
@@ -398,7 +404,7 @@ export declare const emailAdminEndpoints: {
|
|
|
398
404
|
success: typeof Schema.Boolean;
|
|
399
405
|
id: Schema.optional<typeof Schema.String>;
|
|
400
406
|
sentTo: typeof Schema.Number;
|
|
401
|
-
}
|
|
407
|
+
}>, undefined>;
|
|
402
408
|
readonly adminStats: import("../endpoint.js").Endpoint<"GET", "/email/admin/stats", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
403
409
|
period: Schema.Struct<{
|
|
404
410
|
days: typeof Schema.Number;
|
|
@@ -410,6 +416,6 @@ export declare const emailAdminEndpoints: {
|
|
|
410
416
|
failed: typeof Schema.Number;
|
|
411
417
|
successRate: typeof Schema.Number;
|
|
412
418
|
}>;
|
|
413
|
-
}
|
|
419
|
+
}>, undefined>;
|
|
414
420
|
};
|
|
415
421
|
//# sourceMappingURL=email-admin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/email-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0C/B,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"email-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/email-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0C/B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgPtB,CAAA"}
|
|
@@ -37,6 +37,7 @@ export const emailAdminEndpoints = {
|
|
|
37
37
|
createTemplate: defineEndpoint({
|
|
38
38
|
method: 'POST',
|
|
39
39
|
path: '/email/projects/:id/templates',
|
|
40
|
+
success: { status: 201 },
|
|
40
41
|
params: ProjectPath,
|
|
41
42
|
body: CreateTemplateInput,
|
|
42
43
|
response: EmailTemplateDetail,
|
|
@@ -107,6 +108,7 @@ export const emailAdminEndpoints = {
|
|
|
107
108
|
scheduleEmail: defineEndpoint({
|
|
108
109
|
method: 'POST',
|
|
109
110
|
path: '/email/projects/:id/schedule',
|
|
111
|
+
success: { status: 201 },
|
|
110
112
|
params: ProjectPath,
|
|
111
113
|
body: ScheduleEmailInput,
|
|
112
114
|
response: ScheduleEmailResult,
|
|
@@ -196,6 +198,7 @@ export const emailAdminEndpoints = {
|
|
|
196
198
|
addSuppression: defineEndpoint({
|
|
197
199
|
method: 'POST',
|
|
198
200
|
path: '/email/projects/:id/suppressions',
|
|
201
|
+
success: { status: 201 },
|
|
199
202
|
params: ProjectPath,
|
|
200
203
|
body: AddSuppressionInput,
|
|
201
204
|
response: SuppressionItem,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Email endpoints — BaaS plane. Paths mirror `@sylphx/sdk/email.ts`.
|
|
3
3
|
*/
|
|
4
4
|
export declare const emailEndpoints: {
|
|
5
|
-
readonly isConfigured: import("../endpoint.js").Endpoint<"GET", "/email/configured", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Boolean>;
|
|
5
|
+
readonly isConfigured: import("../endpoint.js").Endpoint<"GET", "/email/configured", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, typeof import("effect/Schema").Boolean, undefined>;
|
|
6
6
|
readonly send: import("../endpoint.js").Endpoint<"POST", "/email/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
7
7
|
to: typeof import("effect/Schema").String;
|
|
8
8
|
subject: typeof import("effect/Schema").String;
|
|
@@ -15,7 +15,7 @@ export declare const emailEndpoints: {
|
|
|
15
15
|
}>, import("effect/Schema").Struct<{
|
|
16
16
|
id: typeof import("effect/Schema").String;
|
|
17
17
|
success: typeof import("effect/Schema").Boolean;
|
|
18
|
-
}
|
|
18
|
+
}>, undefined>;
|
|
19
19
|
readonly sendTemplated: import("../endpoint.js").Endpoint<"POST", "/email/send-templated", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
20
20
|
template: import("effect/Schema").Literal<["welcome", "verification", "password_reset", "security_alert"]>;
|
|
21
21
|
to: typeof import("effect/Schema").String;
|
|
@@ -23,7 +23,7 @@ export declare const emailEndpoints: {
|
|
|
23
23
|
}>, import("effect/Schema").Struct<{
|
|
24
24
|
id: typeof import("effect/Schema").String;
|
|
25
25
|
success: typeof import("effect/Schema").Boolean;
|
|
26
|
-
}
|
|
26
|
+
}>, undefined>;
|
|
27
27
|
readonly sendToUser: import("../endpoint.js").Endpoint<"POST", "/email/send-to-user", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
28
28
|
userId: typeof import("effect/Schema").String;
|
|
29
29
|
subject: typeof import("effect/Schema").String;
|
|
@@ -32,6 +32,6 @@ export declare const emailEndpoints: {
|
|
|
32
32
|
}>, import("effect/Schema").Struct<{
|
|
33
33
|
id: typeof import("effect/Schema").String;
|
|
34
34
|
success: typeof import("effect/Schema").Boolean;
|
|
35
|
-
}
|
|
35
|
+
}>, undefined>;
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=email.d.ts.map
|
|
@@ -22,7 +22,7 @@ export declare const engagementAdminEndpoints: {
|
|
|
22
22
|
}>;
|
|
23
23
|
overrides: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
24
24
|
lastSyncedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
25
|
-
}
|
|
25
|
+
}>, undefined>;
|
|
26
26
|
readonly updateStreakOverride: import("../endpoint.js").Endpoint<"PATCH", "/engagement/streaks/override", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
27
27
|
projectId: typeof import("effect/Schema").String;
|
|
28
28
|
streakId: typeof import("effect/Schema").String;
|
|
@@ -36,7 +36,7 @@ export declare const engagementAdminEndpoints: {
|
|
|
36
36
|
}>;
|
|
37
37
|
}>, import("effect/Schema").Struct<{
|
|
38
38
|
success: typeof import("effect/Schema").Boolean;
|
|
39
|
-
}
|
|
39
|
+
}>, undefined>;
|
|
40
40
|
readonly updateLeaderboardOverride: import("../endpoint.js").Endpoint<"PATCH", "/engagement/leaderboards/override", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
41
41
|
projectId: typeof import("effect/Schema").String;
|
|
42
42
|
leaderboardId: typeof import("effect/Schema").String;
|
|
@@ -49,7 +49,7 @@ export declare const engagementAdminEndpoints: {
|
|
|
49
49
|
}>;
|
|
50
50
|
}>, import("effect/Schema").Struct<{
|
|
51
51
|
success: typeof import("effect/Schema").Boolean;
|
|
52
|
-
}
|
|
52
|
+
}>, undefined>;
|
|
53
53
|
readonly updateAchievementOverride: import("../endpoint.js").Endpoint<"PATCH", "/engagement/achievements/override", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
54
54
|
projectId: typeof import("effect/Schema").String;
|
|
55
55
|
achievementId: typeof import("effect/Schema").String;
|
|
@@ -64,14 +64,14 @@ export declare const engagementAdminEndpoints: {
|
|
|
64
64
|
}>;
|
|
65
65
|
}>, import("effect/Schema").Struct<{
|
|
66
66
|
success: typeof import("effect/Schema").Boolean;
|
|
67
|
-
}
|
|
67
|
+
}>, undefined>;
|
|
68
68
|
readonly clearOverrides: import("../endpoint.js").Endpoint<"POST", "/engagement/overrides/clear", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
69
69
|
projectId: typeof import("effect/Schema").String;
|
|
70
70
|
entityType: import("effect/Schema").optional<import("effect/Schema").Literal<["streak", "leaderboard", "achievement", "all"]>>;
|
|
71
71
|
entityId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
72
72
|
}>, import("effect/Schema").Struct<{
|
|
73
73
|
success: typeof import("effect/Schema").Boolean;
|
|
74
|
-
}
|
|
74
|
+
}>, undefined>;
|
|
75
75
|
readonly getStats: import("../endpoint.js").Endpoint<"GET", "/engagement/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
76
76
|
projectId: typeof import("effect/Schema").String;
|
|
77
77
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -93,6 +93,6 @@ export declare const engagementAdminEndpoints: {
|
|
|
93
93
|
totalProgress: typeof import("effect/Schema").Number;
|
|
94
94
|
totalUnlocked: typeof import("effect/Schema").Number;
|
|
95
95
|
}>;
|
|
96
|
-
}
|
|
96
|
+
}>, undefined>;
|
|
97
97
|
};
|
|
98
98
|
//# sourceMappingURL=engagement-admin.d.ts.map
|
|
@@ -26,7 +26,7 @@ export declare const envVarsEndpoints: {
|
|
|
26
26
|
isSecret: Schema.optional<typeof Schema.Boolean>;
|
|
27
27
|
secret: Schema.optional<typeof Schema.Boolean>;
|
|
28
28
|
}>>;
|
|
29
|
-
}
|
|
29
|
+
}>, undefined>;
|
|
30
30
|
readonly set: import("../endpoint.js").Endpoint<"POST", "/projects/:id/env-vars", Schema.Struct<{
|
|
31
31
|
id: typeof Schema.String;
|
|
32
32
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -48,7 +48,7 @@ export declare const envVarsEndpoints: {
|
|
|
48
48
|
queued: typeof Schema.Boolean;
|
|
49
49
|
generation: Schema.optional<Schema.NullOr<typeof Schema.Number>>;
|
|
50
50
|
errors: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
51
|
-
}
|
|
51
|
+
}>, undefined>;
|
|
52
52
|
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/projects/:id/env-vars/:key", Schema.Struct<{
|
|
53
53
|
id: typeof Schema.String;
|
|
54
54
|
key: typeof Schema.String;
|
|
@@ -61,6 +61,6 @@ export declare const envVarsEndpoints: {
|
|
|
61
61
|
key: typeof Schema.String;
|
|
62
62
|
scope: Schema.Literal<["environment", "service"]>;
|
|
63
63
|
serviceId: Schema.NullOr<typeof Schema.String>;
|
|
64
|
-
}
|
|
64
|
+
}>, undefined>;
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=env-vars.d.ts.map
|
|
@@ -45,7 +45,7 @@ export declare const environmentsEndpoints: {
|
|
|
45
45
|
lastDeployedAt: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
46
46
|
}>>>;
|
|
47
47
|
}>>;
|
|
48
|
-
}
|
|
48
|
+
}>, undefined>;
|
|
49
49
|
readonly create: import("../endpoint.js").Endpoint<"POST", "/projects/:id/environments", Schema.Struct<{
|
|
50
50
|
id: typeof Schema.String;
|
|
51
51
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -63,7 +63,7 @@ export declare const environmentsEndpoints: {
|
|
|
63
63
|
envType: Schema.optional<typeof Schema.String>;
|
|
64
64
|
publicKey: typeof Schema.String;
|
|
65
65
|
secretKey: typeof Schema.String;
|
|
66
|
-
}
|
|
66
|
+
}>, undefined>;
|
|
67
67
|
readonly getInProject: import("../endpoint.js").Endpoint<"GET", "/projects/:id/environments/:envId", Schema.Struct<{
|
|
68
68
|
id: typeof Schema.String;
|
|
69
69
|
envId: typeof Schema.String;
|
|
@@ -97,7 +97,7 @@ export declare const environmentsEndpoints: {
|
|
|
97
97
|
url: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
98
98
|
lastDeployedAt: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
99
99
|
}>>>;
|
|
100
|
-
}
|
|
100
|
+
}>, undefined>;
|
|
101
101
|
readonly updateInProject: import("../endpoint.js").Endpoint<"PATCH", "/projects/:id/environments/:envId", Schema.Struct<{
|
|
102
102
|
id: typeof Schema.String;
|
|
103
103
|
envId: typeof Schema.String;
|
|
@@ -158,7 +158,7 @@ export declare const environmentsEndpoints: {
|
|
|
158
158
|
url: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
159
159
|
lastDeployedAt: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
160
160
|
}>>>;
|
|
161
|
-
}
|
|
161
|
+
}>, undefined>;
|
|
162
162
|
readonly provision: import("../endpoint.js").Endpoint<"POST", "/projects/:id/environments/:envId/provision", Schema.Struct<{
|
|
163
163
|
id: typeof Schema.String;
|
|
164
164
|
envId: typeof Schema.String;
|
|
@@ -169,7 +169,7 @@ export declare const environmentsEndpoints: {
|
|
|
169
169
|
namespace: typeof Schema.String;
|
|
170
170
|
status: typeof Schema.String;
|
|
171
171
|
message: Schema.optional<typeof Schema.String>;
|
|
172
|
-
}
|
|
172
|
+
}>, undefined>;
|
|
173
173
|
readonly promote: import("../endpoint.js").Endpoint<"POST", "/projects/:id/environments/:envId/promote", Schema.Struct<{
|
|
174
174
|
id: typeof Schema.String;
|
|
175
175
|
envId: typeof Schema.String;
|
|
@@ -183,7 +183,7 @@ export declare const environmentsEndpoints: {
|
|
|
183
183
|
}>>;
|
|
184
184
|
sourceEnvironment: typeof Schema.String;
|
|
185
185
|
targetEnvironment: typeof Schema.String;
|
|
186
|
-
}
|
|
186
|
+
}>, undefined>;
|
|
187
187
|
readonly listStandalone: import("../endpoint.js").Endpoint<"GET", "/environments", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
188
188
|
projectId: Schema.optional<typeof Schema.String>;
|
|
189
189
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -250,7 +250,7 @@ export declare const environmentsEndpoints: {
|
|
|
250
250
|
lastDeployedAt: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
251
251
|
}>>>;
|
|
252
252
|
}>>>;
|
|
253
|
-
}
|
|
253
|
+
}>, undefined>;
|
|
254
254
|
readonly createStandalone: import("../endpoint.js").Endpoint<"POST", "/environments", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
255
255
|
projectId: typeof Schema.String;
|
|
256
256
|
envType: Schema.Literal<["development", "staging", "production", "preview"]>;
|
|
@@ -266,9 +266,11 @@ export declare const environmentsEndpoints: {
|
|
|
266
266
|
envType: Schema.optional<typeof Schema.String>;
|
|
267
267
|
publicKey: typeof Schema.String;
|
|
268
268
|
secretKey: typeof Schema.String;
|
|
269
|
-
}
|
|
269
|
+
}>, {
|
|
270
|
+
status: 201;
|
|
271
|
+
}>;
|
|
270
272
|
readonly get: import("../endpoint.js").Endpoint<"GET", "/environments/:envId", Schema.Struct<{
|
|
271
|
-
|
|
273
|
+
envId: typeof Schema.String;
|
|
272
274
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
273
275
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
|
|
274
276
|
projectId: Schema.optional<typeof Schema.String>;
|
|
@@ -299,9 +301,9 @@ export declare const environmentsEndpoints: {
|
|
|
299
301
|
url: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
300
302
|
lastDeployedAt: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
301
303
|
}>>>;
|
|
302
|
-
}
|
|
304
|
+
}>, undefined>;
|
|
303
305
|
readonly update: import("../endpoint.js").Endpoint<"PATCH", "/environments/:envId", Schema.Struct<{
|
|
304
|
-
|
|
306
|
+
envId: typeof Schema.String;
|
|
305
307
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
306
308
|
name: Schema.optional<typeof Schema.String>;
|
|
307
309
|
branchPattern: Schema.optional<typeof Schema.String>;
|
|
@@ -359,37 +361,38 @@ export declare const environmentsEndpoints: {
|
|
|
359
361
|
url: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
360
362
|
lastDeployedAt: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
361
363
|
}>>>;
|
|
362
|
-
}
|
|
364
|
+
}>, undefined>;
|
|
363
365
|
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/environments/:envId", Schema.Struct<{
|
|
364
|
-
|
|
366
|
+
envId: typeof Schema.String;
|
|
365
367
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
366
368
|
success: typeof Schema.Boolean;
|
|
367
369
|
lifecycle: Schema.optional<typeof Schema.String>;
|
|
368
|
-
}
|
|
370
|
+
}>, undefined>;
|
|
369
371
|
readonly revealSecret: import("../endpoint.js").Endpoint<"POST", "/environments/:envId/reveal-secret", Schema.Struct<{
|
|
370
|
-
|
|
372
|
+
envId: typeof Schema.String;
|
|
371
373
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
372
374
|
confirmation: Schema.optional<typeof Schema.String>;
|
|
375
|
+
reason: Schema.optional<typeof Schema.String>;
|
|
373
376
|
}>, Schema.Struct<{
|
|
374
377
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
|
|
375
378
|
envType: typeof Schema.String;
|
|
376
379
|
secretKeyPrefix: Schema.NullOr<typeof Schema.String>;
|
|
377
|
-
}
|
|
380
|
+
}>, undefined>;
|
|
378
381
|
readonly regenerateWebhookSecret: import("../endpoint.js").Endpoint<"POST", "/environments/:envId/regenerate-webhook-secret", Schema.Struct<{
|
|
379
|
-
|
|
382
|
+
envId: typeof Schema.String;
|
|
380
383
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
381
384
|
environmentId: typeof Schema.String;
|
|
382
385
|
webhookSecret: typeof Schema.String;
|
|
383
|
-
}
|
|
386
|
+
}>, undefined>;
|
|
384
387
|
readonly getKeys: import("../endpoint.js").Endpoint<"GET", "/environments/:envId/keys", Schema.Struct<{
|
|
385
|
-
|
|
388
|
+
envId: typeof Schema.String;
|
|
386
389
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
387
390
|
id: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
|
|
388
391
|
envType: typeof Schema.String;
|
|
389
392
|
secretKeyPrefix: Schema.NullOr<typeof Schema.String>;
|
|
390
393
|
publicKey: Schema.NullOr<typeof Schema.String>;
|
|
391
394
|
webhookSecretPrefix: Schema.NullOr<typeof Schema.String>;
|
|
392
|
-
}
|
|
395
|
+
}>, undefined>;
|
|
393
396
|
readonly listByProjectSlug: import("../endpoint.js").Endpoint<"GET", "/environments/projects/:id", Schema.Struct<{
|
|
394
397
|
id: typeof Schema.String;
|
|
395
398
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
@@ -408,9 +411,9 @@ export declare const environmentsEndpoints: {
|
|
|
408
411
|
secretKeyRotatedAt: typeof Schema.String;
|
|
409
412
|
isActive: typeof Schema.Boolean;
|
|
410
413
|
}>>;
|
|
411
|
-
}
|
|
414
|
+
}>, undefined>;
|
|
412
415
|
readonly listOAuthProviders: import("../endpoint.js").Endpoint<"GET", "/environments/:envId/oauth-providers", Schema.Struct<{
|
|
413
|
-
|
|
416
|
+
envId: typeof Schema.String;
|
|
414
417
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
415
418
|
providers: Schema.Array$<Schema.Struct<{
|
|
416
419
|
provider: typeof Schema.String;
|
|
@@ -419,7 +422,7 @@ export declare const environmentsEndpoints: {
|
|
|
419
422
|
createdAt: typeof Schema.String;
|
|
420
423
|
updatedAt: typeof Schema.String;
|
|
421
424
|
}>>;
|
|
422
|
-
}
|
|
425
|
+
}>, undefined>;
|
|
423
426
|
readonly upsertOAuthProvider: import("../endpoint.js").Endpoint<"PUT", "/environments/:envId/oauth-providers/:provider", Schema.Struct<{
|
|
424
427
|
envId: typeof Schema.String;
|
|
425
428
|
provider: typeof Schema.String;
|
|
@@ -433,15 +436,15 @@ export declare const environmentsEndpoints: {
|
|
|
433
436
|
enabled: typeof Schema.Boolean;
|
|
434
437
|
createdAt: typeof Schema.String;
|
|
435
438
|
updatedAt: typeof Schema.String;
|
|
436
|
-
}
|
|
439
|
+
}>, undefined>;
|
|
437
440
|
readonly deleteOAuthProvider: import("../endpoint.js").Endpoint<"DELETE", "/environments/:envId/oauth-providers/:provider", Schema.Struct<{
|
|
438
441
|
envId: typeof Schema.String;
|
|
439
442
|
provider: typeof Schema.String;
|
|
440
443
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
441
444
|
deleted: typeof Schema.Boolean;
|
|
442
|
-
}
|
|
445
|
+
}>, undefined>;
|
|
443
446
|
readonly logs: import("../endpoint.js").Endpoint<"GET", "/environments/:envId/logs", Schema.Struct<{
|
|
444
|
-
|
|
447
|
+
envId: typeof Schema.String;
|
|
445
448
|
}>, Schema.Struct<{
|
|
446
449
|
type: Schema.optional<Schema.Literal<["build", "runtime"]>>;
|
|
447
450
|
stream: Schema.optional<typeof Schema.String>;
|
|
@@ -460,6 +463,6 @@ export declare const environmentsEndpoints: {
|
|
|
460
463
|
source: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
461
464
|
}>>;
|
|
462
465
|
nextCursor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
463
|
-
}
|
|
466
|
+
}>, undefined>;
|
|
464
467
|
};
|
|
465
468
|
//# sourceMappingURL=environments.d.ts.map
|
|
@@ -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;
|
|
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;AAmD/B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuMxB,CAAA"}
|
|
@@ -12,13 +12,7 @@ import { Schema } from 'effect';
|
|
|
12
12
|
import { defineEndpoint } from '../endpoint.js';
|
|
13
13
|
import { CreateEnvironmentResult, DeleteOAuthProviderResult, Environment, EnvironmentKeys, EnvironmentLogsResult, ListEnvironmentsByProjectSlugResult, ListOAuthProvidersResult, PromoteEnvironmentInput, PromoteResult, ProvisionEnvironmentResult, RegenerateWebhookSecretResult, RevealSecretKeyResult, UpdateEnvironmentInput, UpsertOAuthProviderInput, UpsertOAuthProviderResult, } from '../schemas/environment.js';
|
|
14
14
|
const ProjectIdPath = Schema.Struct({ id: Schema.String });
|
|
15
|
-
|
|
16
|
-
* Standalone env ops historically used `:id` in `management` SDK callsites.
|
|
17
|
-
* Production uses `:envId`. Keep `:id` in the contract path to preserve the
|
|
18
|
-
* SDK's interpolatePath callsites; the API-side wiring maps this to the
|
|
19
|
-
* `envId` param name when routes are migrated in Wave 2c.
|
|
20
|
-
*/
|
|
21
|
-
const EnvironmentIdPath = Schema.Struct({ id: Schema.String });
|
|
15
|
+
const EnvironmentIdPath = Schema.Struct({ envId: Schema.String });
|
|
22
16
|
const ProjectEnvPath = Schema.Struct({ id: Schema.String, envId: Schema.String });
|
|
23
17
|
const PromotePath = Schema.Struct({ id: Schema.String, envId: Schema.String });
|
|
24
18
|
const ListEnvironmentsQuery = Schema.Struct({ projectId: Schema.optional(Schema.String) });
|
|
@@ -39,6 +33,7 @@ const CreateEnvironmentBody = Schema.Struct({
|
|
|
39
33
|
});
|
|
40
34
|
const RevealSecretBody = Schema.Struct({
|
|
41
35
|
confirmation: Schema.optional(Schema.String),
|
|
36
|
+
reason: Schema.optional(Schema.String),
|
|
42
37
|
});
|
|
43
38
|
const ProvisionBody = Schema.Struct({ force: Schema.optional(Schema.Boolean) });
|
|
44
39
|
export const environmentsEndpoints = {
|
|
@@ -110,6 +105,7 @@ export const environmentsEndpoints = {
|
|
|
110
105
|
createStandalone: defineEndpoint({
|
|
111
106
|
method: 'POST',
|
|
112
107
|
path: '/environments',
|
|
108
|
+
success: { status: 201 },
|
|
113
109
|
body: Schema.Struct({
|
|
114
110
|
projectId: Schema.String,
|
|
115
111
|
envType: Schema.Literal('development', 'staging', 'production', 'preview'),
|