@sylphx/contract 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +25 -22
- package/dist/endpoints/auth.d.ts.map +1 -1
- package/dist/endpoints/auth.js +2 -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 +189 -323
- 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 +7 -7
- package/dist/endpoints/kv-admin.js +1 -1
- package/dist/endpoints/kv.d.ts +27 -21
- package/dist/endpoints/kv.d.ts.map +1 -1
- package/dist/endpoints/kv.js +9 -9
- 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 +23 -16
- package/dist/endpoints/notifications.d.ts.map +1 -1
- 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 +126 -44
- 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 +30 -12
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +11 -1
- 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 +1644 -1101
- 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 +1 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +1 -0
- package/dist/schemas/database.d.ts +3 -2
- package/dist/schemas/database.d.ts.map +1 -1
- package/dist/schemas/database.js +3 -2
- 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/kv-admin.d.ts +1 -1
- package/dist/schemas/kv-admin.js +1 -1
- 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/project-manifest.d.ts +239 -76
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +74 -23
- 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 +59 -8
- package/dist/schemas/resources.d.ts.map +1 -1
- package/dist/schemas/resources.js +54 -3
- package/dist/schemas/storage.d.ts +29 -0
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +19 -0
- 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
|
@@ -48,7 +48,7 @@ export declare const experimentsEndpoints: {
|
|
|
48
48
|
threshold: typeof import("effect/Schema").Number;
|
|
49
49
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
50
50
|
}>>>;
|
|
51
|
-
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist"]>;
|
|
51
|
+
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>;
|
|
52
52
|
confidenceLevel: typeof import("effect/Schema").Number;
|
|
53
53
|
minimumSampleSize: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
54
54
|
minimumDurationDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
@@ -61,7 +61,7 @@ export declare const experimentsEndpoints: {
|
|
|
61
61
|
updatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
62
62
|
}>>;
|
|
63
63
|
total: typeof import("effect/Schema").Number;
|
|
64
|
-
}
|
|
64
|
+
}>, undefined>;
|
|
65
65
|
readonly create: import("../endpoint.js").Endpoint<"POST", "/experiments", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
66
66
|
projectId: typeof import("effect/Schema").String;
|
|
67
67
|
key: typeof import("effect/Schema").String;
|
|
@@ -96,11 +96,11 @@ export declare const experimentsEndpoints: {
|
|
|
96
96
|
threshold: typeof import("effect/Schema").Number;
|
|
97
97
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
98
98
|
}>>>;
|
|
99
|
-
statsMethod: import("effect/Schema").optional<import("effect/Schema").Literal<["bayesian", "frequentist"]>>;
|
|
99
|
+
statsMethod: import("effect/Schema").optional<import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>>;
|
|
100
100
|
confidenceLevel: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
101
101
|
minimumSampleSize: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
102
102
|
minimumDurationDays: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
103
|
-
environmentKey: import("effect/Schema").optional<
|
|
103
|
+
environmentKey: import("effect/Schema").optional<import("effect/Schema").Literal<["development", "staging", "production", "preview"]>>;
|
|
104
104
|
}>, import("effect/Schema").Struct<{
|
|
105
105
|
id: typeof import("effect/Schema").String;
|
|
106
106
|
projectId: typeof import("effect/Schema").String;
|
|
@@ -138,7 +138,7 @@ export declare const experimentsEndpoints: {
|
|
|
138
138
|
threshold: typeof import("effect/Schema").Number;
|
|
139
139
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
140
140
|
}>>>;
|
|
141
|
-
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist"]>;
|
|
141
|
+
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>;
|
|
142
142
|
confidenceLevel: typeof import("effect/Schema").Number;
|
|
143
143
|
minimumSampleSize: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
144
144
|
minimumDurationDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
@@ -149,7 +149,9 @@ export declare const experimentsEndpoints: {
|
|
|
149
149
|
createdBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
150
150
|
createdAt: typeof import("effect/Schema").String;
|
|
151
151
|
updatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
152
|
-
}
|
|
152
|
+
}>, {
|
|
153
|
+
status: 201;
|
|
154
|
+
}>;
|
|
153
155
|
readonly get: import("../endpoint.js").Endpoint<"GET", "/experiments/projects/:projectId/experiments/:experimentId", import("effect/Schema").Struct<{
|
|
154
156
|
projectId: typeof import("effect/Schema").String;
|
|
155
157
|
experimentId: typeof import("effect/Schema").String;
|
|
@@ -201,7 +203,7 @@ export declare const experimentsEndpoints: {
|
|
|
201
203
|
threshold: typeof import("effect/Schema").Number;
|
|
202
204
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
203
205
|
}>>>;
|
|
204
|
-
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist"]>;
|
|
206
|
+
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>;
|
|
205
207
|
confidenceLevel: typeof import("effect/Schema").Number;
|
|
206
208
|
minimumSampleSize: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
207
209
|
minimumDurationDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
@@ -212,7 +214,7 @@ export declare const experimentsEndpoints: {
|
|
|
212
214
|
createdBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
213
215
|
createdAt: typeof import("effect/Schema").String;
|
|
214
216
|
updatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
215
|
-
}
|
|
217
|
+
}>, undefined>;
|
|
216
218
|
readonly update: import("../endpoint.js").Endpoint<"PATCH", "/experiments/projects/:projectId/experiments/:experimentId", import("effect/Schema").Struct<{
|
|
217
219
|
projectId: typeof import("effect/Schema").String;
|
|
218
220
|
experimentId: typeof import("effect/Schema").String;
|
|
@@ -281,7 +283,7 @@ export declare const experimentsEndpoints: {
|
|
|
281
283
|
threshold: typeof import("effect/Schema").Number;
|
|
282
284
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
283
285
|
}>>>;
|
|
284
|
-
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist"]>;
|
|
286
|
+
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>;
|
|
285
287
|
confidenceLevel: typeof import("effect/Schema").Number;
|
|
286
288
|
minimumSampleSize: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
287
289
|
minimumDurationDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
@@ -292,13 +294,13 @@ export declare const experimentsEndpoints: {
|
|
|
292
294
|
createdBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
293
295
|
createdAt: typeof import("effect/Schema").String;
|
|
294
296
|
updatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
295
|
-
}
|
|
297
|
+
}>, undefined>;
|
|
296
298
|
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/experiments/projects/:projectId/experiments/:experimentId", import("effect/Schema").Struct<{
|
|
297
299
|
projectId: typeof import("effect/Schema").String;
|
|
298
300
|
experimentId: typeof import("effect/Schema").String;
|
|
299
301
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
300
302
|
success: typeof import("effect/Schema").Boolean;
|
|
301
|
-
}
|
|
303
|
+
}>, undefined>;
|
|
302
304
|
readonly start: import("../endpoint.js").Endpoint<"POST", "/experiments/projects/:projectId/experiments/:experimentId/start", import("effect/Schema").Struct<{
|
|
303
305
|
projectId: typeof import("effect/Schema").String;
|
|
304
306
|
experimentId: typeof import("effect/Schema").String;
|
|
@@ -339,7 +341,7 @@ export declare const experimentsEndpoints: {
|
|
|
339
341
|
threshold: typeof import("effect/Schema").Number;
|
|
340
342
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
341
343
|
}>>>;
|
|
342
|
-
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist"]>;
|
|
344
|
+
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>;
|
|
343
345
|
confidenceLevel: typeof import("effect/Schema").Number;
|
|
344
346
|
minimumSampleSize: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
345
347
|
minimumDurationDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
@@ -350,7 +352,7 @@ export declare const experimentsEndpoints: {
|
|
|
350
352
|
createdBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
351
353
|
createdAt: typeof import("effect/Schema").String;
|
|
352
354
|
updatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
353
|
-
}
|
|
355
|
+
}>, undefined>;
|
|
354
356
|
readonly pause: import("../endpoint.js").Endpoint<"POST", "/experiments/projects/:projectId/experiments/:experimentId/pause", import("effect/Schema").Struct<{
|
|
355
357
|
projectId: typeof import("effect/Schema").String;
|
|
356
358
|
experimentId: typeof import("effect/Schema").String;
|
|
@@ -391,7 +393,7 @@ export declare const experimentsEndpoints: {
|
|
|
391
393
|
threshold: typeof import("effect/Schema").Number;
|
|
392
394
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
393
395
|
}>>>;
|
|
394
|
-
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist"]>;
|
|
396
|
+
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>;
|
|
395
397
|
confidenceLevel: typeof import("effect/Schema").Number;
|
|
396
398
|
minimumSampleSize: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
397
399
|
minimumDurationDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
@@ -402,7 +404,7 @@ export declare const experimentsEndpoints: {
|
|
|
402
404
|
createdBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
403
405
|
createdAt: typeof import("effect/Schema").String;
|
|
404
406
|
updatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
405
|
-
}
|
|
407
|
+
}>, undefined>;
|
|
406
408
|
readonly conclude: import("../endpoint.js").Endpoint<"POST", "/experiments/projects/:projectId/experiments/:experimentId/conclude", import("effect/Schema").Struct<{
|
|
407
409
|
projectId: typeof import("effect/Schema").String;
|
|
408
410
|
experimentId: typeof import("effect/Schema").String;
|
|
@@ -445,7 +447,7 @@ export declare const experimentsEndpoints: {
|
|
|
445
447
|
threshold: typeof import("effect/Schema").Number;
|
|
446
448
|
action: import("effect/Schema").Literal<["pause", "alert"]>;
|
|
447
449
|
}>>>;
|
|
448
|
-
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist"]>;
|
|
450
|
+
statsMethod: import("effect/Schema").Literal<["bayesian", "frequentist", "sequential"]>;
|
|
449
451
|
confidenceLevel: typeof import("effect/Schema").Number;
|
|
450
452
|
minimumSampleSize: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
451
453
|
minimumDurationDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
@@ -456,7 +458,7 @@ export declare const experimentsEndpoints: {
|
|
|
456
458
|
createdBy: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
457
459
|
createdAt: typeof import("effect/Schema").String;
|
|
458
460
|
updatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
459
|
-
}
|
|
461
|
+
}>, undefined>;
|
|
460
462
|
readonly results: import("../endpoint.js").Endpoint<"GET", "/experiments/projects/:projectId/experiments/:experimentId/results", import("effect/Schema").Struct<{
|
|
461
463
|
projectId: typeof import("effect/Schema").String;
|
|
462
464
|
experimentId: typeof import("effect/Schema").String;
|
|
@@ -495,6 +497,6 @@ export declare const experimentsEndpoints: {
|
|
|
495
497
|
canConclude: typeof import("effect/Schema").Boolean;
|
|
496
498
|
blockers: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
497
499
|
}>;
|
|
498
|
-
}
|
|
500
|
+
}>, undefined>;
|
|
499
501
|
};
|
|
500
502
|
//# sourceMappingURL=experiments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experiments.d.ts","sourceRoot":"","sources":["../../src/endpoints/experiments.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"experiments.d.ts","sourceRoot":"","sources":["../../src/endpoints/experiments.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFvB,CAAA"}
|
|
@@ -14,9 +14,22 @@ export declare const flagsAdminEndpoints: {
|
|
|
14
14
|
offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
15
15
|
search: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
16
16
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
17
|
-
flags: import("effect/Schema").Array$<
|
|
17
|
+
flags: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
18
|
+
id: typeof import("effect/Schema").String;
|
|
19
|
+
key: typeof import("effect/Schema").String;
|
|
20
|
+
name: typeof import("effect/Schema").String;
|
|
21
|
+
description: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
22
|
+
enabled: typeof import("effect/Schema").Boolean;
|
|
23
|
+
rolloutPercentage: typeof import("effect/Schema").Number;
|
|
24
|
+
targetPremiumOnly: typeof import("effect/Schema").Boolean;
|
|
25
|
+
targetAdminOnly: typeof import("effect/Schema").Boolean;
|
|
26
|
+
sortOrder: typeof import("effect/Schema").Number;
|
|
27
|
+
environmentId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
28
|
+
createdAt: typeof import("effect/Schema").String;
|
|
29
|
+
updatedAt: typeof import("effect/Schema").String;
|
|
30
|
+
}>>;
|
|
18
31
|
total: typeof import("effect/Schema").Number;
|
|
19
|
-
}
|
|
32
|
+
}>, undefined>;
|
|
20
33
|
readonly create: import("../endpoint.js").Endpoint<"POST", "/flags", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
21
34
|
projectId: typeof import("effect/Schema").String;
|
|
22
35
|
key: typeof import("effect/Schema").String;
|
|
@@ -28,7 +41,22 @@ export declare const flagsAdminEndpoints: {
|
|
|
28
41
|
targetAdminOnly: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
29
42
|
environmentId: import("effect/Schema").optional<import("effect/Schema").NullOr<typeof import("effect/Schema").String>>;
|
|
30
43
|
sortOrder: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
31
|
-
}>,
|
|
44
|
+
}>, import("effect/Schema").Struct<{
|
|
45
|
+
id: typeof import("effect/Schema").String;
|
|
46
|
+
key: typeof import("effect/Schema").String;
|
|
47
|
+
name: typeof import("effect/Schema").String;
|
|
48
|
+
description: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
49
|
+
enabled: typeof import("effect/Schema").Boolean;
|
|
50
|
+
rolloutPercentage: typeof import("effect/Schema").Number;
|
|
51
|
+
targetPremiumOnly: typeof import("effect/Schema").Boolean;
|
|
52
|
+
targetAdminOnly: typeof import("effect/Schema").Boolean;
|
|
53
|
+
sortOrder: typeof import("effect/Schema").Number;
|
|
54
|
+
environmentId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
55
|
+
createdAt: typeof import("effect/Schema").String;
|
|
56
|
+
updatedAt: typeof import("effect/Schema").String;
|
|
57
|
+
}>, {
|
|
58
|
+
status: 201;
|
|
59
|
+
}>;
|
|
32
60
|
readonly update: import("../endpoint.js").Endpoint<"PATCH", "/flags", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
33
61
|
projectId: typeof import("effect/Schema").String;
|
|
34
62
|
id: typeof import("effect/Schema").String;
|
|
@@ -39,19 +67,32 @@ export declare const flagsAdminEndpoints: {
|
|
|
39
67
|
targetPremiumOnly: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
40
68
|
targetAdminOnly: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
41
69
|
expectedVersion: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
42
|
-
}>,
|
|
70
|
+
}>, import("effect/Schema").Struct<{
|
|
71
|
+
id: typeof import("effect/Schema").String;
|
|
72
|
+
key: typeof import("effect/Schema").String;
|
|
73
|
+
name: typeof import("effect/Schema").String;
|
|
74
|
+
description: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
75
|
+
enabled: typeof import("effect/Schema").Boolean;
|
|
76
|
+
rolloutPercentage: typeof import("effect/Schema").Number;
|
|
77
|
+
targetPremiumOnly: typeof import("effect/Schema").Boolean;
|
|
78
|
+
targetAdminOnly: typeof import("effect/Schema").Boolean;
|
|
79
|
+
sortOrder: typeof import("effect/Schema").Number;
|
|
80
|
+
environmentId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
81
|
+
createdAt: typeof import("effect/Schema").String;
|
|
82
|
+
updatedAt: typeof import("effect/Schema").String;
|
|
83
|
+
}>, undefined>;
|
|
43
84
|
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/flags", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
44
85
|
projectId: typeof import("effect/Schema").String;
|
|
45
86
|
id: typeof import("effect/Schema").String;
|
|
46
87
|
}>, import("effect/Schema").Struct<{
|
|
47
88
|
success: typeof import("effect/Schema").Boolean;
|
|
48
|
-
}
|
|
89
|
+
}>, undefined>;
|
|
49
90
|
readonly reorder: import("../endpoint.js").Endpoint<"POST", "/flags/reorder", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
50
91
|
projectId: typeof import("effect/Schema").String;
|
|
51
92
|
flagIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
52
93
|
}>, import("effect/Schema").Struct<{
|
|
53
94
|
success: typeof import("effect/Schema").Boolean;
|
|
54
|
-
}
|
|
95
|
+
}>, undefined>;
|
|
55
96
|
readonly bulkUpdateEnabled: import("../endpoint.js").Endpoint<"POST", "/flags/bulk-update-enabled", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
56
97
|
projectId: typeof import("effect/Schema").String;
|
|
57
98
|
flagIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
@@ -59,16 +100,39 @@ export declare const flagsAdminEndpoints: {
|
|
|
59
100
|
}>, import("effect/Schema").Struct<{
|
|
60
101
|
success: typeof import("effect/Schema").Boolean;
|
|
61
102
|
updated: typeof import("effect/Schema").Number;
|
|
62
|
-
}
|
|
103
|
+
}>, undefined>;
|
|
63
104
|
readonly bulkDelete: import("../endpoint.js").Endpoint<"POST", "/flags/bulk-delete", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
64
105
|
projectId: typeof import("effect/Schema").String;
|
|
65
106
|
flagIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
66
107
|
}>, import("effect/Schema").Struct<{
|
|
67
108
|
success: typeof import("effect/Schema").Boolean;
|
|
68
109
|
deleted: typeof import("effect/Schema").Number;
|
|
69
|
-
}
|
|
110
|
+
}>, undefined>;
|
|
70
111
|
readonly getServiceData: import("../endpoint.js").Endpoint<"GET", "/flags/projects/:id", import("effect/Schema").Struct<{
|
|
71
112
|
id: typeof import("effect/Schema").String;
|
|
72
|
-
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined,
|
|
113
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
114
|
+
app: import("effect/Schema").Struct<{
|
|
115
|
+
id: typeof import("effect/Schema").String;
|
|
116
|
+
name: typeof import("effect/Schema").String;
|
|
117
|
+
slug: typeof import("effect/Schema").String;
|
|
118
|
+
}>;
|
|
119
|
+
totalFlags: typeof import("effect/Schema").Number;
|
|
120
|
+
activeCount: typeof import("effect/Schema").Number;
|
|
121
|
+
experimentsCount: typeof import("effect/Schema").Number;
|
|
122
|
+
flags: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
123
|
+
id: typeof import("effect/Schema").String;
|
|
124
|
+
key: typeof import("effect/Schema").String;
|
|
125
|
+
name: typeof import("effect/Schema").String;
|
|
126
|
+
description: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
127
|
+
enabled: typeof import("effect/Schema").Boolean;
|
|
128
|
+
rolloutPercentage: typeof import("effect/Schema").Number;
|
|
129
|
+
targetPremiumOnly: typeof import("effect/Schema").Boolean;
|
|
130
|
+
targetAdminOnly: typeof import("effect/Schema").Boolean;
|
|
131
|
+
sortOrder: typeof import("effect/Schema").Number;
|
|
132
|
+
environmentId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
133
|
+
createdAt: typeof import("effect/Schema").String;
|
|
134
|
+
updatedAt: typeof import("effect/Schema").String;
|
|
135
|
+
}>>;
|
|
136
|
+
}>, undefined>;
|
|
73
137
|
};
|
|
74
138
|
//# sourceMappingURL=flags-admin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/flags-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"flags-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/flags-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EtB,CAAA"}
|
|
@@ -18,6 +18,6 @@ export declare const flagsEndpoints: {
|
|
|
18
18
|
reason: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
19
19
|
payload: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
20
20
|
}>>;
|
|
21
|
-
}
|
|
21
|
+
}>, undefined>;
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=flags.d.ts.map
|
|
@@ -13,18 +13,18 @@ export declare const githubEndpoints: {
|
|
|
13
13
|
success: typeof import("effect/Schema").Boolean;
|
|
14
14
|
repoFullName: typeof import("effect/Schema").String;
|
|
15
15
|
branch: typeof import("effect/Schema").String;
|
|
16
|
-
}
|
|
16
|
+
}>, undefined>;
|
|
17
17
|
readonly getConnection: import("../endpoint.js").Endpoint<"GET", "/github/connect/:envId", import("effect/Schema").Struct<{
|
|
18
18
|
envId: typeof import("effect/Schema").String;
|
|
19
19
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
20
20
|
connected: typeof import("effect/Schema").Boolean;
|
|
21
21
|
repoFullName: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
22
22
|
branch: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
23
|
-
}
|
|
23
|
+
}>, undefined>;
|
|
24
24
|
readonly disconnect: import("../endpoint.js").Endpoint<"DELETE", "/github/connect/:envId", import("effect/Schema").Struct<{
|
|
25
25
|
envId: typeof import("effect/Schema").String;
|
|
26
26
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
27
27
|
success: typeof import("effect/Schema").Boolean;
|
|
28
|
-
}
|
|
28
|
+
}>, undefined>;
|
|
29
29
|
};
|
|
30
30
|
//# sourceMappingURL=github.d.ts.map
|
|
@@ -29,7 +29,7 @@ export declare const imageOptEndpoints: {
|
|
|
29
29
|
signature: typeof Schema.String;
|
|
30
30
|
params: typeof Schema.String;
|
|
31
31
|
expiresIn: Schema.NullOr<typeof Schema.Number>;
|
|
32
|
-
}
|
|
32
|
+
}>, undefined>;
|
|
33
33
|
readonly forward: import("../endpoint.js").Endpoint<"GET", "/img/:signature/:params/:url", Schema.Struct<{
|
|
34
34
|
signature: typeof Schema.String;
|
|
35
35
|
params: typeof Schema.String;
|
|
@@ -38,6 +38,6 @@ export declare const imageOptEndpoints: {
|
|
|
38
38
|
/** Scaffold response — replaced by the imgproxy forward once infra ships. */
|
|
39
39
|
pending: typeof Schema.Boolean;
|
|
40
40
|
message: typeof Schema.String;
|
|
41
|
-
}
|
|
41
|
+
}>, undefined>;
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=image-opt.d.ts.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Production mount: `/kv/*`. Naming `-admin` to avoid collision with the
|
|
6
6
|
* BaaS `kvEndpoints` served by the standalone runtime at
|
|
7
|
-
* `{ref}.api.sylphx.com/
|
|
7
|
+
* `{ref}.api.sylphx.com/kv/*`.
|
|
8
8
|
*/
|
|
9
9
|
export declare const kvAdminEndpoints: {
|
|
10
10
|
readonly getStatus: import("../endpoint.js").Endpoint<"GET", "/kv/status", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -12,7 +12,7 @@ export declare const kvAdminEndpoints: {
|
|
|
12
12
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
13
13
|
available: typeof import("effect/Schema").Boolean;
|
|
14
14
|
provider: typeof import("effect/Schema").String;
|
|
15
|
-
}
|
|
15
|
+
}>, undefined>;
|
|
16
16
|
readonly list: import("../endpoint.js").Endpoint<"GET", "/kv", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
17
17
|
projectId: typeof import("effect/Schema").String;
|
|
18
18
|
prefix: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -20,14 +20,14 @@ export declare const kvAdminEndpoints: {
|
|
|
20
20
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
21
21
|
keys: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
22
22
|
count: typeof import("effect/Schema").Number;
|
|
23
|
-
}
|
|
23
|
+
}>, undefined>;
|
|
24
24
|
readonly getStats: import("../endpoint.js").Endpoint<"GET", "/kv/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
25
25
|
projectId: typeof import("effect/Schema").String;
|
|
26
26
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
27
27
|
totalKeys: typeof import("effect/Schema").Number;
|
|
28
28
|
storageBytes: typeof import("effect/Schema").Number;
|
|
29
29
|
operationsToday: typeof import("effect/Schema").Number;
|
|
30
|
-
}
|
|
30
|
+
}>, undefined>;
|
|
31
31
|
readonly get: import("../endpoint.js").Endpoint<"GET", "/kv/:key", import("effect/Schema").Struct<{
|
|
32
32
|
key: typeof import("effect/Schema").String;
|
|
33
33
|
}>, import("effect/Schema").Struct<{
|
|
@@ -36,7 +36,7 @@ export declare const kvAdminEndpoints: {
|
|
|
36
36
|
key: typeof import("effect/Schema").String;
|
|
37
37
|
value: import("effect/Schema").NullOr<typeof import("effect/Schema").Unknown>;
|
|
38
38
|
ttl: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
|
|
39
|
-
}
|
|
39
|
+
}>, undefined>;
|
|
40
40
|
readonly set: import("../endpoint.js").Endpoint<"PUT", "/kv/:key", import("effect/Schema").Struct<{
|
|
41
41
|
key: typeof import("effect/Schema").String;
|
|
42
42
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -45,7 +45,7 @@ export declare const kvAdminEndpoints: {
|
|
|
45
45
|
ttl: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
46
46
|
}>, import("effect/Schema").Struct<{
|
|
47
47
|
success: typeof import("effect/Schema").Boolean;
|
|
48
|
-
}
|
|
48
|
+
}>, undefined>;
|
|
49
49
|
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/kv/:key", import("effect/Schema").Struct<{
|
|
50
50
|
key: typeof import("effect/Schema").String;
|
|
51
51
|
}>, import("effect/Schema").Struct<{
|
|
@@ -53,6 +53,6 @@ export declare const kvAdminEndpoints: {
|
|
|
53
53
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
54
54
|
success: typeof import("effect/Schema").Boolean;
|
|
55
55
|
deleted: typeof import("effect/Schema").Number;
|
|
56
|
-
}
|
|
56
|
+
}>, undefined>;
|
|
57
57
|
};
|
|
58
58
|
//# sourceMappingURL=kv-admin.d.ts.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Production mount: `/kv/*`. Naming `-admin` to avoid collision with the
|
|
6
6
|
* BaaS `kvEndpoints` served by the standalone runtime at
|
|
7
|
-
* `{ref}.api.sylphx.com/
|
|
7
|
+
* `{ref}.api.sylphx.com/kv/*`.
|
|
8
8
|
*/
|
|
9
9
|
import { defineEndpoint } from '../endpoint.js';
|
|
10
10
|
import { KvAdminDeleteResult, KvAdminGetResult, KvAdminKeyParams, KvAdminListQuery, KvAdminListResult, KvAdminProjectIdQuery, KvAdminSetInput, KvAdminSetResult, KvAdminStatsResult, KvAdminStatusResult, } from '../schemas/kv-admin.js';
|
package/dist/endpoints/kv.d.ts
CHANGED
|
@@ -1,56 +1,62 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* KV endpoints — BaaS plane key-value store. Paths mirror `@sylphx/sdk` `kv.ts`
|
|
3
|
-
* (served under `/
|
|
3
|
+
* (served under `/kv/*` upstream on `<your-app>.api.sylphx.com`).
|
|
4
4
|
*/
|
|
5
5
|
import { Schema } from 'effect';
|
|
6
6
|
export declare const kvEndpoints: {
|
|
7
|
-
readonly set: import("../endpoint.js").Endpoint<"POST", "/
|
|
7
|
+
readonly set: import("../endpoint.js").Endpoint<"POST", "/kv", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
8
8
|
key: typeof Schema.String;
|
|
9
9
|
value: typeof Schema.Unknown;
|
|
10
10
|
ex: Schema.optional<typeof Schema.Number>;
|
|
11
|
+
px: Schema.optional<typeof Schema.Number>;
|
|
12
|
+
exat: Schema.optional<typeof Schema.Number>;
|
|
13
|
+
pxat: Schema.optional<typeof Schema.Number>;
|
|
11
14
|
nx: Schema.optional<typeof Schema.Boolean>;
|
|
12
15
|
xx: Schema.optional<typeof Schema.Boolean>;
|
|
13
16
|
}>, Schema.Struct<{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
success: typeof Schema.Boolean;
|
|
18
|
+
created: Schema.optional<typeof Schema.Boolean>;
|
|
19
|
+
}>, undefined>;
|
|
20
|
+
readonly get: import("../endpoint.js").Endpoint<"GET", "/kv/:key", Schema.Struct<{
|
|
17
21
|
key: typeof Schema.String;
|
|
18
22
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
19
23
|
value: Schema.NullOr<typeof Schema.Unknown>;
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
ttl: Schema.NullOr<typeof Schema.Number>;
|
|
25
|
+
}>, undefined>;
|
|
26
|
+
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/kv/:key", Schema.Struct<{
|
|
22
27
|
key: typeof Schema.String;
|
|
23
28
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
24
29
|
deleted: typeof Schema.Number;
|
|
25
|
-
}
|
|
26
|
-
readonly exists: import("../endpoint.js").Endpoint<"GET", "/
|
|
30
|
+
}>, undefined>;
|
|
31
|
+
readonly exists: import("../endpoint.js").Endpoint<"GET", "/kv/exists/:key", Schema.Struct<{
|
|
27
32
|
key: typeof Schema.String;
|
|
28
33
|
}>, Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
29
34
|
exists: typeof Schema.Boolean;
|
|
30
|
-
}
|
|
31
|
-
readonly incr: import("../endpoint.js").Endpoint<"POST", "/
|
|
35
|
+
}>, undefined>;
|
|
36
|
+
readonly incr: import("../endpoint.js").Endpoint<"POST", "/kv/incr", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
32
37
|
key: typeof Schema.String;
|
|
33
38
|
by: Schema.optional<typeof Schema.Number>;
|
|
34
39
|
}>, Schema.Struct<{
|
|
35
40
|
value: typeof Schema.Number;
|
|
36
|
-
}
|
|
37
|
-
readonly expire: import("../endpoint.js").Endpoint<"POST", "/
|
|
41
|
+
}>, undefined>;
|
|
42
|
+
readonly expire: import("../endpoint.js").Endpoint<"POST", "/kv/expire", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
38
43
|
key: typeof Schema.String;
|
|
39
44
|
seconds: typeof Schema.Number;
|
|
40
45
|
}>, Schema.Struct<{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
success: typeof Schema.Boolean;
|
|
47
|
+
created: Schema.optional<typeof Schema.Boolean>;
|
|
48
|
+
}>, undefined>;
|
|
49
|
+
readonly rateLimit: import("../endpoint.js").Endpoint<"POST", "/kv/ratelimit", Schema.Schema.AnyNoContext | undefined, Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
50
|
+
key: typeof Schema.String;
|
|
45
51
|
limit: typeof Schema.Number;
|
|
46
|
-
window: typeof Schema.
|
|
52
|
+
window: typeof Schema.String;
|
|
47
53
|
}>, Schema.Struct<{
|
|
48
54
|
success: typeof Schema.Boolean;
|
|
49
55
|
limit: typeof Schema.Number;
|
|
50
56
|
remaining: typeof Schema.Number;
|
|
51
57
|
reset: typeof Schema.Number;
|
|
52
|
-
}
|
|
53
|
-
readonly scan: import("../endpoint.js").Endpoint<"GET", "/
|
|
58
|
+
}>, undefined>;
|
|
59
|
+
readonly scan: import("../endpoint.js").Endpoint<"GET", "/kv/scan", Schema.Schema.AnyNoContext | undefined, Schema.Struct<{
|
|
54
60
|
pattern: Schema.optional<typeof Schema.String>;
|
|
55
61
|
cursor: Schema.optional<typeof Schema.String>;
|
|
56
62
|
count: Schema.optional<typeof Schema.String>;
|
|
@@ -58,6 +64,6 @@ export declare const kvEndpoints: {
|
|
|
58
64
|
keys: Schema.Array$<typeof Schema.String>;
|
|
59
65
|
nextCursor: typeof Schema.String;
|
|
60
66
|
done: typeof Schema.Boolean;
|
|
61
|
-
}
|
|
67
|
+
}>, undefined>;
|
|
62
68
|
};
|
|
63
69
|
//# sourceMappingURL=kv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../src/endpoints/kv.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmB/B,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../src/endpoints/kv.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmB/B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEd,CAAA"}
|
package/dist/endpoints/kv.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* KV endpoints — BaaS plane key-value store. Paths mirror `@sylphx/sdk` `kv.ts`
|
|
3
|
-
* (served under `/
|
|
3
|
+
* (served under `/kv/*` upstream on `<your-app>.api.sylphx.com`).
|
|
4
4
|
*/
|
|
5
5
|
import { Schema } from 'effect';
|
|
6
6
|
import { defineEndpoint } from '../endpoint.js';
|
|
@@ -9,7 +9,7 @@ const KeyPath = Schema.Struct({ key: Schema.String });
|
|
|
9
9
|
export const kvEndpoints = {
|
|
10
10
|
set: defineEndpoint({
|
|
11
11
|
method: 'POST',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/kv',
|
|
13
13
|
body: KvSetInput,
|
|
14
14
|
response: KvSetResult,
|
|
15
15
|
plane: 'baas',
|
|
@@ -18,7 +18,7 @@ export const kvEndpoints = {
|
|
|
18
18
|
}),
|
|
19
19
|
get: defineEndpoint({
|
|
20
20
|
method: 'GET',
|
|
21
|
-
path: '/
|
|
21
|
+
path: '/kv/:key',
|
|
22
22
|
params: KeyPath,
|
|
23
23
|
response: KvGetResult,
|
|
24
24
|
plane: 'baas',
|
|
@@ -27,7 +27,7 @@ export const kvEndpoints = {
|
|
|
27
27
|
}),
|
|
28
28
|
delete: defineEndpoint({
|
|
29
29
|
method: 'DELETE',
|
|
30
|
-
path: '/
|
|
30
|
+
path: '/kv/:key',
|
|
31
31
|
params: KeyPath,
|
|
32
32
|
response: KvDeleteResult,
|
|
33
33
|
plane: 'baas',
|
|
@@ -36,7 +36,7 @@ export const kvEndpoints = {
|
|
|
36
36
|
}),
|
|
37
37
|
exists: defineEndpoint({
|
|
38
38
|
method: 'GET',
|
|
39
|
-
path: '/
|
|
39
|
+
path: '/kv/exists/:key',
|
|
40
40
|
params: KeyPath,
|
|
41
41
|
response: KvExistsResult,
|
|
42
42
|
plane: 'baas',
|
|
@@ -45,7 +45,7 @@ export const kvEndpoints = {
|
|
|
45
45
|
}),
|
|
46
46
|
incr: defineEndpoint({
|
|
47
47
|
method: 'POST',
|
|
48
|
-
path: '/
|
|
48
|
+
path: '/kv/incr',
|
|
49
49
|
body: KvIncrInput,
|
|
50
50
|
response: KvIncrResult,
|
|
51
51
|
plane: 'baas',
|
|
@@ -54,7 +54,7 @@ export const kvEndpoints = {
|
|
|
54
54
|
}),
|
|
55
55
|
expire: defineEndpoint({
|
|
56
56
|
method: 'POST',
|
|
57
|
-
path: '/
|
|
57
|
+
path: '/kv/expire',
|
|
58
58
|
body: KvExpireInput,
|
|
59
59
|
response: KvSetResult,
|
|
60
60
|
plane: 'baas',
|
|
@@ -63,7 +63,7 @@ export const kvEndpoints = {
|
|
|
63
63
|
}),
|
|
64
64
|
rateLimit: defineEndpoint({
|
|
65
65
|
method: 'POST',
|
|
66
|
-
path: '/
|
|
66
|
+
path: '/kv/ratelimit',
|
|
67
67
|
body: KvRateLimitInput,
|
|
68
68
|
response: KvRateLimitResult,
|
|
69
69
|
plane: 'baas',
|
|
@@ -72,7 +72,7 @@ export const kvEndpoints = {
|
|
|
72
72
|
}),
|
|
73
73
|
scan: defineEndpoint({
|
|
74
74
|
method: 'GET',
|
|
75
|
-
path: '/
|
|
75
|
+
path: '/kv/scan',
|
|
76
76
|
query: KvScanQuery,
|
|
77
77
|
response: KvScanResult,
|
|
78
78
|
plane: 'baas',
|