@sylphx/cli 0.7.0 → 0.7.2
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 +14 -0
- package/dist/main.js +1823 -1641
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_package = __esm({
|
|
|
15
15
|
"package.json"() {
|
|
16
16
|
package_default = {
|
|
17
17
|
name: "@sylphx/cli",
|
|
18
|
-
version: "0.7.
|
|
18
|
+
version: "0.7.2",
|
|
19
19
|
description: "Sylphx Platform CLI \u2014 deploy and manage your applications from the terminal. 63 commands across deployment, logs, env vars, domains, databases, storage, monitoring, self-service (user), admin (users/quotas/audit/invitations/jwt-keys/project-migrate), and more.",
|
|
20
20
|
type: "module",
|
|
21
21
|
homepage: "https://sylphx.com",
|
|
@@ -71,7 +71,7 @@ var init_package = __esm({
|
|
|
71
71
|
"@effect/cli": "0.75.1",
|
|
72
72
|
"@effect/platform": "0.96.0",
|
|
73
73
|
"@effect/platform-bun": "0.89.0",
|
|
74
|
-
"@sylphx/sdk": "0.10.
|
|
74
|
+
"@sylphx/sdk": "0.10.4",
|
|
75
75
|
chalk: "^5.3.0",
|
|
76
76
|
effect: "3.21.0",
|
|
77
77
|
eventsource: "^2.0.2",
|
|
@@ -4608,7 +4608,8 @@ var init_auth = __esm({
|
|
|
4608
4608
|
password: Schema38.String,
|
|
4609
4609
|
name: Schema38.optional(Schema38.String),
|
|
4610
4610
|
metadata: Schema38.optional(Schema38.Record({ key: Schema38.String, value: Schema38.Unknown })),
|
|
4611
|
-
invitationToken: Schema38.optional(Schema38.String)
|
|
4611
|
+
invitationToken: Schema38.optional(Schema38.String),
|
|
4612
|
+
captchaToken: Schema38.optional(Schema38.String)
|
|
4612
4613
|
});
|
|
4613
4614
|
RegisterResponse = Schema38.Struct({
|
|
4614
4615
|
requiresVerification: Schema38.optional(Schema38.Boolean),
|
|
@@ -6003,8 +6004,8 @@ var init_database = __esm({
|
|
|
6003
6004
|
directHost: Schema48.optional(Schema48.NullOr(Schema48.String)),
|
|
6004
6005
|
port: Schema48.optional(Schema48.Number),
|
|
6005
6006
|
publicPort: Schema48.optional(Schema48.NullOr(Schema48.Number)),
|
|
6006
|
-
dbUser: Schema48.
|
|
6007
|
-
dbName: Schema48.
|
|
6007
|
+
dbUser: Schema48.String,
|
|
6008
|
+
dbName: Schema48.String,
|
|
6008
6009
|
connectionString: Schema48.optional(Schema48.String),
|
|
6009
6010
|
storageGb: Schema48.optional(Schema48.Number),
|
|
6010
6011
|
env: Schema48.optional(Schema48.String),
|
|
@@ -6079,8 +6080,8 @@ var init_resources = __esm({
|
|
|
6079
6080
|
/** Plaintext metadata — safe to return (not secret) */
|
|
6080
6081
|
host: Schema49.NullOr(Schema49.String),
|
|
6081
6082
|
port: Schema49.NullOr(Schema49.Number),
|
|
6082
|
-
dbUser: Schema49.
|
|
6083
|
-
dbName: Schema49.
|
|
6083
|
+
dbUser: Schema49.String,
|
|
6084
|
+
dbName: Schema49.String,
|
|
6084
6085
|
clusterName: Schema49.NullOr(Schema49.String),
|
|
6085
6086
|
branchName: Schema49.NullOr(Schema49.String),
|
|
6086
6087
|
bindingCount: Schema49.Number,
|
|
@@ -8511,13 +8512,25 @@ var init_kv = __esm({
|
|
|
8511
8512
|
value: KvValue,
|
|
8512
8513
|
/** Expire in N seconds. */
|
|
8513
8514
|
ex: Schema67.optional(Schema67.Number),
|
|
8515
|
+
/** Expire in N milliseconds. */
|
|
8516
|
+
px: Schema67.optional(Schema67.Number),
|
|
8517
|
+
/** Unix timestamp (seconds) at which the key will expire. */
|
|
8518
|
+
exat: Schema67.optional(Schema67.Number),
|
|
8519
|
+
/** Unix timestamp (milliseconds) at which the key will expire. */
|
|
8520
|
+
pxat: Schema67.optional(Schema67.Number),
|
|
8514
8521
|
/** Only set if the key does not exist. */
|
|
8515
8522
|
nx: Schema67.optional(Schema67.Boolean),
|
|
8516
8523
|
/** Only set if the key exists. */
|
|
8517
8524
|
xx: Schema67.optional(Schema67.Boolean)
|
|
8518
8525
|
});
|
|
8519
|
-
KvSetResult = Schema67.Struct({
|
|
8520
|
-
|
|
8526
|
+
KvSetResult = Schema67.Struct({
|
|
8527
|
+
success: Schema67.Boolean,
|
|
8528
|
+
created: Schema67.optional(Schema67.Boolean)
|
|
8529
|
+
});
|
|
8530
|
+
KvGetResult = Schema67.Struct({
|
|
8531
|
+
value: Schema67.NullOr(KvValue),
|
|
8532
|
+
ttl: Schema67.NullOr(Schema67.Number)
|
|
8533
|
+
});
|
|
8521
8534
|
KvDeleteResult = Schema67.Struct({ deleted: Schema67.Number });
|
|
8522
8535
|
KvExistsResult = Schema67.Struct({ exists: Schema67.Boolean });
|
|
8523
8536
|
KvIncrInput = Schema67.Struct({
|
|
@@ -8530,9 +8543,9 @@ var init_kv = __esm({
|
|
|
8530
8543
|
seconds: Schema67.Number
|
|
8531
8544
|
});
|
|
8532
8545
|
KvRateLimitInput = Schema67.Struct({
|
|
8533
|
-
|
|
8546
|
+
key: Schema67.String,
|
|
8534
8547
|
limit: Schema67.Number,
|
|
8535
|
-
window: Schema67.
|
|
8548
|
+
window: Schema67.String
|
|
8536
8549
|
});
|
|
8537
8550
|
KvRateLimitResult = Schema67.Struct({
|
|
8538
8551
|
success: Schema67.Boolean,
|
|
@@ -9106,6 +9119,16 @@ var init_notifications = __esm({
|
|
|
9106
9119
|
messageId: Schema72.optional(Schema72.String),
|
|
9107
9120
|
/** Human-readable failure reason — present on `failed`. */
|
|
9108
9121
|
reason: Schema72.optional(Schema72.String),
|
|
9122
|
+
/** Canonical aggregate delivery count from the runtime API. */
|
|
9123
|
+
sent: Schema72.optional(Schema72.Number),
|
|
9124
|
+
/** Canonical aggregate failure count from the runtime API. */
|
|
9125
|
+
failed: Schema72.optional(Schema72.Number),
|
|
9126
|
+
/** Canonical per-platform success breakdown from the runtime API. */
|
|
9127
|
+
platforms: Schema72.optional(Schema72.Struct({
|
|
9128
|
+
web: Schema72.optional(Schema72.Number),
|
|
9129
|
+
ios: Schema72.optional(Schema72.Number),
|
|
9130
|
+
android: Schema72.optional(Schema72.Number)
|
|
9131
|
+
})),
|
|
9109
9132
|
/** Count of subscriptions the push was delivered to (SDK counter). */
|
|
9110
9133
|
sentTo: Schema72.optional(Schema72.Number),
|
|
9111
9134
|
/** Count of subscriptions that were pruned as expired (SDK counter). */
|
|
@@ -10822,7 +10845,7 @@ var init_privacy = __esm({
|
|
|
10822
10845
|
|
|
10823
10846
|
// ../contract/dist/schemas/project-manifest.js
|
|
10824
10847
|
import { Schema as Schema83 } from "effect";
|
|
10825
|
-
var Slug2, ManifestEnvName, ManifestRegion, MachineSize, BuildMachineSize, BuildpackName, ServiceType, DeployStrategy, WwwRedirect, ManifestProjectSection, ManifestBuildSection, ManifestDeploySection, ManifestServiceSection, ManifestEnvValue, ManifestDomainSection, PostgresTier, PostgresVersion, SearchTier, ManifestDatabaseEngine, ManifestSearchEngine, ManifestDatabaseResource, ManifestSearchResource, ManifestResourcesSection, ManifestCiSection, ManifestServiceOverride, ManifestEnvironmentOverride, ManifestEnvironmentsMap, SylphxManifest;
|
|
10848
|
+
var Slug2, ManifestEnvName, ManifestRegion, MachineSize, BuildMachineSize, BuildpackName, BuildStrategy, ServiceType, DeployStrategy, WwwRedirect, ManifestProjectSection, ManifestBuildSection, ManifestDeploySection, ManifestServiceBuildSection, ManifestServiceHealthSection, ManifestServiceSection, ManifestMigrationEngine, ManifestMigrationDestructivePolicy, ManifestMigrationsSection, ManifestDatabaseSection, ManifestEnvValue, ManifestDomainSection, ManifestManagedResourceTier, PostgresTier, PostgresVersion, SearchTier, KvTier, ManifestVolumeTier, ManifestVolumeAccessMode, ManifestDatabaseEngine, ManifestKvEngine, ManifestSearchEngine, ManifestDatabaseResource, ManifestKvResource, ManifestSearchResource, ManifestVolumeResource, ManifestResourcesSection, ManifestCiSection, ManifestServiceOverride, ManifestEnvironmentOverride, ManifestEnvironmentsMap, SylphxManifest;
|
|
10826
10849
|
var init_project_manifest = __esm({
|
|
10827
10850
|
"../contract/dist/schemas/project-manifest.js"() {
|
|
10828
10851
|
"use strict";
|
|
@@ -10832,6 +10855,7 @@ var init_project_manifest = __esm({
|
|
|
10832
10855
|
MachineSize = Schema83.Literal("nano", "micro", "small", "standard", "large", "xlarge");
|
|
10833
10856
|
BuildMachineSize = Schema83.Literal("standard", "large", "xlarge");
|
|
10834
10857
|
BuildpackName = Schema83.Literal("auto", "ruby", "node", "python", "static", "dockerfile");
|
|
10858
|
+
BuildStrategy = Schema83.Literal("auto", "buildpack", "dockerfile", "nixpacks");
|
|
10835
10859
|
ServiceType = Schema83.Literal("web", "worker", "cron", "function");
|
|
10836
10860
|
DeployStrategy = Schema83.Literal("rolling", "blue-green", "immediate");
|
|
10837
10861
|
WwwRedirect = Schema83.Literal("apex", "www", "none");
|
|
@@ -10856,8 +10880,12 @@ var init_project_manifest = __esm({
|
|
|
10856
10880
|
* package.json / Gemfile / requirements.txt / Dockerfile.
|
|
10857
10881
|
*/
|
|
10858
10882
|
buildpack: Schema83.optional(BuildpackName),
|
|
10883
|
+
/** High-level build strategy alias used by current sylphx.toml files. */
|
|
10884
|
+
strategy: Schema83.optional(BuildStrategy),
|
|
10859
10885
|
/** Override path to Dockerfile (implies buildpack=dockerfile). */
|
|
10860
10886
|
dockerfile: Schema83.optional(Schema83.String),
|
|
10887
|
+
/** Docker build context path. `context` is the product-facing TOML alias. */
|
|
10888
|
+
context: Schema83.optional(Schema83.String),
|
|
10861
10889
|
/** Docker build context path (default: repo root). */
|
|
10862
10890
|
docker_context: Schema83.optional(Schema83.String),
|
|
10863
10891
|
/** Custom build command; overrides buildpack default. */
|
|
@@ -10884,10 +10912,26 @@ var init_project_manifest = __esm({
|
|
|
10884
10912
|
/** Grace period before SIGKILL (seconds). */
|
|
10885
10913
|
graceful_shutdown: Schema83.optional(Schema83.Number.pipe(Schema83.int(), Schema83.between(0, 300)))
|
|
10886
10914
|
});
|
|
10915
|
+
ManifestServiceBuildSection = Schema83.Struct({
|
|
10916
|
+
strategy: Schema83.optional(BuildStrategy),
|
|
10917
|
+
dockerfile: Schema83.optional(Schema83.String),
|
|
10918
|
+
context: Schema83.optional(Schema83.String),
|
|
10919
|
+
docker_context: Schema83.optional(Schema83.String),
|
|
10920
|
+
build_command: Schema83.optional(Schema83.String)
|
|
10921
|
+
});
|
|
10922
|
+
ManifestServiceHealthSection = Schema83.Struct({
|
|
10923
|
+
mode: Schema83.optional(Schema83.Literal("http", "tcp", "command")),
|
|
10924
|
+
path: Schema83.optional(Schema83.String),
|
|
10925
|
+
command: Schema83.optional(Schema83.String)
|
|
10926
|
+
});
|
|
10887
10927
|
ManifestServiceSection = Schema83.Struct({
|
|
10888
10928
|
/** Service name — unique within project. Used as K8s Deployment name. */
|
|
10889
10929
|
name: Slug2,
|
|
10890
10930
|
type: ServiceType,
|
|
10931
|
+
/** Per-service build override. Root [build] remains the default. */
|
|
10932
|
+
build: Schema83.optional(ManifestServiceBuildSection),
|
|
10933
|
+
/** Per-service health contract. Platform owns probe translation. */
|
|
10934
|
+
health: Schema83.optional(ManifestServiceHealthSection),
|
|
10891
10935
|
/** Container start command. */
|
|
10892
10936
|
command: Schema83.optional(Schema83.String),
|
|
10893
10937
|
/** Internal container port; required for `web`. */
|
|
@@ -10926,7 +10970,22 @@ var init_project_manifest = __esm({
|
|
|
10926
10970
|
/** Per-service env var merge — refs entries from top-level [env]. */
|
|
10927
10971
|
env: Schema83.optional(Schema83.Array(Schema83.String)),
|
|
10928
10972
|
/** Per-service resource bindings (by resource name). */
|
|
10929
|
-
resources: Schema83.optional(Schema83.Array(Slug2))
|
|
10973
|
+
resources: Schema83.optional(Schema83.Array(Slug2)),
|
|
10974
|
+
/** Paths whose changes should trigger this service in monorepos. */
|
|
10975
|
+
watch_paths: Schema83.optional(Schema83.Array(Schema83.String))
|
|
10976
|
+
});
|
|
10977
|
+
ManifestMigrationEngine = Schema83.Literal("atlas", "drizzle", "prisma", "alembic", "flyway", "goose", "sqlx", "custom");
|
|
10978
|
+
ManifestMigrationDestructivePolicy = Schema83.Literal("require-approval", "allow");
|
|
10979
|
+
ManifestMigrationsSection = Schema83.Struct({
|
|
10980
|
+
engine: ManifestMigrationEngine,
|
|
10981
|
+
dir: Schema83.optional(Schema83.String),
|
|
10982
|
+
image: Slug2,
|
|
10983
|
+
command: Schema83.String.pipe(Schema83.minLength(1)),
|
|
10984
|
+
timeout: Schema83.optional(Schema83.String),
|
|
10985
|
+
destructive_policy: Schema83.optional(ManifestMigrationDestructivePolicy)
|
|
10986
|
+
});
|
|
10987
|
+
ManifestDatabaseSection = Schema83.Struct({
|
|
10988
|
+
migrations: Schema83.optional(ManifestMigrationsSection)
|
|
10930
10989
|
});
|
|
10931
10990
|
ManifestEnvValue = Schema83.Union(Schema83.Struct({ value: Schema83.String }), Schema83.Struct({ from_secret: Schema83.String }), Schema83.Struct({ from_resource: Schema83.String, attr: Schema83.String }));
|
|
10932
10991
|
ManifestDomainSection = Schema83.Struct({
|
|
@@ -10940,10 +10999,15 @@ var init_project_manifest = __esm({
|
|
|
10940
10999
|
/** Alternate names (e.g. marketing domains pointing here). */
|
|
10941
11000
|
aliases: Schema83.optional(Schema83.Array(Schema83.String))
|
|
10942
11001
|
});
|
|
10943
|
-
|
|
11002
|
+
ManifestManagedResourceTier = Schema83.Literal("nano", "micro", "standard", "large", "xl", "hobby", "starter", "pro", "business", "enterprise", "enterprise-2x", "enterprise-4x");
|
|
11003
|
+
PostgresTier = ManifestManagedResourceTier;
|
|
10944
11004
|
PostgresVersion = Schema83.Literal("15", "16", "17");
|
|
10945
|
-
SearchTier =
|
|
11005
|
+
SearchTier = ManifestManagedResourceTier;
|
|
11006
|
+
KvTier = ManifestManagedResourceTier;
|
|
11007
|
+
ManifestVolumeTier = ManifestManagedResourceTier;
|
|
11008
|
+
ManifestVolumeAccessMode = Schema83.Literal("ReadWriteOnce", "ReadWriteMany");
|
|
10946
11009
|
ManifestDatabaseEngine = Schema83.Literal("postgres");
|
|
11010
|
+
ManifestKvEngine = Schema83.Literal("valkey");
|
|
10947
11011
|
ManifestSearchEngine = Schema83.Literal("typesense");
|
|
10948
11012
|
ManifestDatabaseResource = Schema83.Struct({
|
|
10949
11013
|
/** Capability-specific engine. PostgreSQL is the first supported database engine. */
|
|
@@ -10957,6 +11021,12 @@ var init_project_manifest = __esm({
|
|
|
10957
11021
|
/** Branch-per-preview (P0 gap #4 sibling). */
|
|
10958
11022
|
branch_on_preview: Schema83.optional(Schema83.Boolean)
|
|
10959
11023
|
});
|
|
11024
|
+
ManifestKvResource = Schema83.Struct({
|
|
11025
|
+
/** Capability-specific engine. Valkey is the first supported KV engine. */
|
|
11026
|
+
engine: Schema83.optional(ManifestKvEngine),
|
|
11027
|
+
tier: KvTier,
|
|
11028
|
+
storage_gb: Schema83.optional(Schema83.Number.pipe(Schema83.int(), Schema83.between(1, 1e4)))
|
|
11029
|
+
});
|
|
10960
11030
|
ManifestSearchResource = Schema83.Struct({
|
|
10961
11031
|
/** Capability-specific engine. Typesense is the first supported search engine. */
|
|
10962
11032
|
engine: Schema83.optional(ManifestSearchEngine),
|
|
@@ -10964,9 +11034,31 @@ var init_project_manifest = __esm({
|
|
|
10964
11034
|
storage_gb: Schema83.optional(Schema83.Number.pipe(Schema83.int(), Schema83.between(1, 1e4))),
|
|
10965
11035
|
nodes: Schema83.optional(Schema83.Number.pipe(Schema83.int(), Schema83.between(1, 9)))
|
|
10966
11036
|
});
|
|
11037
|
+
ManifestVolumeResource = Schema83.Struct({
|
|
11038
|
+
tier: ManifestVolumeTier,
|
|
11039
|
+
storage_gb: Schema83.optional(Schema83.Number.pipe(Schema83.int(), Schema83.between(1, 1e4))),
|
|
11040
|
+
/**
|
|
11041
|
+
* ReadWriteMany is required when a volume is shared by multiple sandboxes,
|
|
11042
|
+
* workers, or replicas. ReadWriteOnce remains valid for single-writer app
|
|
11043
|
+
* disks.
|
|
11044
|
+
*/
|
|
11045
|
+
access_mode: Schema83.optional(ManifestVolumeAccessMode),
|
|
11046
|
+
/**
|
|
11047
|
+
* Optional env-facing path metadata. This does not mount the volume into an
|
|
11048
|
+
* app service by itself; service/task mounts stay explicit bindings.
|
|
11049
|
+
*/
|
|
11050
|
+
mount_path: Schema83.optional(Schema83.String.pipe(Schema83.pattern(/^\//))),
|
|
11051
|
+
/**
|
|
11052
|
+
* Binding role controls env var prefix. Example: role="workspace" emits
|
|
11053
|
+
* WORKSPACE_VOLUME_ID for a volume binding.
|
|
11054
|
+
*/
|
|
11055
|
+
role: Schema83.optional(Slug2)
|
|
11056
|
+
});
|
|
10967
11057
|
ManifestResourcesSection = Schema83.Struct({
|
|
10968
11058
|
database: Schema83.optional(ManifestDatabaseResource),
|
|
10969
|
-
|
|
11059
|
+
kv: Schema83.optional(ManifestKvResource),
|
|
11060
|
+
search: Schema83.optional(ManifestSearchResource),
|
|
11061
|
+
volume: Schema83.optional(ManifestVolumeResource)
|
|
10970
11062
|
});
|
|
10971
11063
|
ManifestCiSection = Schema83.Struct({
|
|
10972
11064
|
on_push: Schema83.optional(Schema83.Boolean),
|
|
@@ -11021,6 +11113,7 @@ var init_project_manifest = __esm({
|
|
|
11021
11113
|
build: Schema83.optional(ManifestBuildSection),
|
|
11022
11114
|
deploy: Schema83.optional(ManifestDeploySection),
|
|
11023
11115
|
services: Schema83.optional(Schema83.Array(ManifestServiceSection)),
|
|
11116
|
+
database: Schema83.optional(ManifestDatabaseSection),
|
|
11024
11117
|
env: Schema83.optional(Schema83.Record({ key: Schema83.String, value: ManifestEnvValue })),
|
|
11025
11118
|
domains: Schema83.optional(Schema83.Array(ManifestDomainSection)),
|
|
11026
11119
|
environments: Schema83.optional(ManifestEnvironmentsMap),
|
|
@@ -11030,94 +11123,138 @@ var init_project_manifest = __esm({
|
|
|
11030
11123
|
}
|
|
11031
11124
|
});
|
|
11032
11125
|
|
|
11033
|
-
// ../contract/dist/
|
|
11126
|
+
// ../contract/dist/endpoints/project-manifest.js
|
|
11034
11127
|
import { Schema as Schema84 } from "effect";
|
|
11128
|
+
var IdPath2, ManifestGetResponse, ManifestPutResponse, projectManifestEndpoints;
|
|
11129
|
+
var init_project_manifest2 = __esm({
|
|
11130
|
+
"../contract/dist/endpoints/project-manifest.js"() {
|
|
11131
|
+
"use strict";
|
|
11132
|
+
init_endpoint();
|
|
11133
|
+
init_project_manifest();
|
|
11134
|
+
IdPath2 = Schema84.Struct({ id: Schema84.String });
|
|
11135
|
+
ManifestGetResponse = Schema84.Struct({
|
|
11136
|
+
manifest: Schema84.NullOr(SylphxManifest),
|
|
11137
|
+
version: Schema84.NullOr(Schema84.Number),
|
|
11138
|
+
updatedAt: Schema84.NullOr(Schema84.String)
|
|
11139
|
+
});
|
|
11140
|
+
ManifestPutResponse = Schema84.Struct({
|
|
11141
|
+
version: Schema84.Number,
|
|
11142
|
+
updatedAt: Schema84.String
|
|
11143
|
+
});
|
|
11144
|
+
projectManifestEndpoints = {
|
|
11145
|
+
get: defineEndpoint({
|
|
11146
|
+
method: "GET",
|
|
11147
|
+
path: "/projects/:id/manifest",
|
|
11148
|
+
params: IdPath2,
|
|
11149
|
+
response: ManifestGetResponse,
|
|
11150
|
+
summary: "Fetch the latest persisted sylphx.toml manifest for a project",
|
|
11151
|
+
description: "Returns the most recently pushed manifest. `manifest` is null when the project has not yet had `sylphx config push` invoked \u2014 callers should synthesise a starter from live state.",
|
|
11152
|
+
tags: ["projects", "manifest"],
|
|
11153
|
+
plane: "management"
|
|
11154
|
+
}),
|
|
11155
|
+
put: defineEndpoint({
|
|
11156
|
+
method: "PUT",
|
|
11157
|
+
path: "/projects/:id/manifest",
|
|
11158
|
+
params: IdPath2,
|
|
11159
|
+
body: SylphxManifest,
|
|
11160
|
+
response: ManifestPutResponse,
|
|
11161
|
+
summary: "Persist a new sylphx.toml manifest version for a project",
|
|
11162
|
+
description: "Inserts a new row in `project_manifests` with an incremented version. Never mutates prior versions \u2014 history + rollback come for free.",
|
|
11163
|
+
tags: ["projects", "manifest"],
|
|
11164
|
+
plane: "management"
|
|
11165
|
+
})
|
|
11166
|
+
};
|
|
11167
|
+
}
|
|
11168
|
+
});
|
|
11169
|
+
|
|
11170
|
+
// ../contract/dist/schemas/project.js
|
|
11171
|
+
import { Schema as Schema85 } from "effect";
|
|
11035
11172
|
var ProjectEnvironmentSummary, Project, CreateProjectResult, DeleteProjectResult, CreateProjectInput, UpdateProjectInput;
|
|
11036
11173
|
var init_project = __esm({
|
|
11037
11174
|
"../contract/dist/schemas/project.js"() {
|
|
11038
11175
|
"use strict";
|
|
11039
11176
|
init_ids();
|
|
11040
|
-
ProjectEnvironmentSummary =
|
|
11177
|
+
ProjectEnvironmentSummary = Schema85.Struct({
|
|
11041
11178
|
id: EnvironmentId,
|
|
11042
|
-
slug:
|
|
11043
|
-
name:
|
|
11044
|
-
envType:
|
|
11045
|
-
isActive:
|
|
11046
|
-
publicKey:
|
|
11047
|
-
secretKeyPrefix:
|
|
11048
|
-
deployAppId:
|
|
11049
|
-
namespace:
|
|
11050
|
-
githubRepo:
|
|
11051
|
-
githubBranch:
|
|
11052
|
-
customDomains:
|
|
11053
|
-
createdAt:
|
|
11054
|
-
updatedAt:
|
|
11055
|
-
});
|
|
11056
|
-
Project =
|
|
11179
|
+
slug: Schema85.optional(Schema85.String),
|
|
11180
|
+
name: Schema85.String,
|
|
11181
|
+
envType: Schema85.optional(Schema85.String),
|
|
11182
|
+
isActive: Schema85.optional(Schema85.Boolean),
|
|
11183
|
+
publicKey: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11184
|
+
secretKeyPrefix: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11185
|
+
deployAppId: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11186
|
+
namespace: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11187
|
+
githubRepo: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11188
|
+
githubBranch: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11189
|
+
customDomains: Schema85.optional(Schema85.NullOr(Schema85.Array(Schema85.String))),
|
|
11190
|
+
createdAt: Schema85.optional(Schema85.String),
|
|
11191
|
+
updatedAt: Schema85.optional(Schema85.String)
|
|
11192
|
+
});
|
|
11193
|
+
Project = Schema85.Struct({
|
|
11057
11194
|
id: ProjectId,
|
|
11058
|
-
slug:
|
|
11059
|
-
name:
|
|
11060
|
-
ref:
|
|
11061
|
-
description:
|
|
11062
|
-
orgId:
|
|
11063
|
-
isActive:
|
|
11064
|
-
sdkUrl:
|
|
11195
|
+
slug: Schema85.String,
|
|
11196
|
+
name: Schema85.String,
|
|
11197
|
+
ref: Schema85.optional(Schema85.String),
|
|
11198
|
+
description: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11199
|
+
orgId: Schema85.optional(OrgId),
|
|
11200
|
+
isActive: Schema85.optional(Schema85.Boolean),
|
|
11201
|
+
sdkUrl: Schema85.optional(Schema85.String),
|
|
11065
11202
|
/** Ephemeral status surfaced from POST /projects; resources are declared separately. */
|
|
11066
|
-
infraStatus:
|
|
11067
|
-
domains:
|
|
11068
|
-
webhookUrl:
|
|
11069
|
-
webhookEvents:
|
|
11070
|
-
enabledOAuthProviders:
|
|
11071
|
-
buildMachineType:
|
|
11072
|
-
settings:
|
|
11073
|
-
createdAt:
|
|
11074
|
-
updatedAt:
|
|
11075
|
-
environments:
|
|
11076
|
-
});
|
|
11077
|
-
CreateProjectResult =
|
|
11203
|
+
infraStatus: Schema85.optional(Schema85.String),
|
|
11204
|
+
domains: Schema85.optional(Schema85.NullOr(Schema85.Array(Schema85.String))),
|
|
11205
|
+
webhookUrl: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11206
|
+
webhookEvents: Schema85.optional(Schema85.NullOr(Schema85.Array(Schema85.String))),
|
|
11207
|
+
enabledOAuthProviders: Schema85.optional(Schema85.NullOr(Schema85.Array(Schema85.String))),
|
|
11208
|
+
buildMachineType: Schema85.optional(Schema85.String),
|
|
11209
|
+
settings: Schema85.optional(Schema85.NullOr(Schema85.Record({ key: Schema85.String, value: Schema85.Unknown }))),
|
|
11210
|
+
createdAt: Schema85.optional(Schema85.String),
|
|
11211
|
+
updatedAt: Schema85.optional(Schema85.String),
|
|
11212
|
+
environments: Schema85.optional(Schema85.Array(ProjectEnvironmentSummary))
|
|
11213
|
+
});
|
|
11214
|
+
CreateProjectResult = Schema85.Struct({
|
|
11078
11215
|
app: Project
|
|
11079
11216
|
});
|
|
11080
|
-
DeleteProjectResult =
|
|
11081
|
-
deleted:
|
|
11217
|
+
DeleteProjectResult = Schema85.Struct({
|
|
11218
|
+
deleted: Schema85.Boolean,
|
|
11082
11219
|
projectId: ProjectId,
|
|
11083
|
-
queued:
|
|
11084
|
-
warnings:
|
|
11220
|
+
queued: Schema85.Boolean,
|
|
11221
|
+
warnings: Schema85.optional(Schema85.Array(Schema85.String))
|
|
11085
11222
|
});
|
|
11086
|
-
CreateProjectInput =
|
|
11087
|
-
name:
|
|
11088
|
-
slug:
|
|
11089
|
-
description:
|
|
11090
|
-
gitRepository:
|
|
11091
|
-
gitBranch:
|
|
11092
|
-
buildPack:
|
|
11093
|
-
dockerImage:
|
|
11094
|
-
port:
|
|
11095
|
-
domain:
|
|
11223
|
+
CreateProjectInput = Schema85.Struct({
|
|
11224
|
+
name: Schema85.String,
|
|
11225
|
+
slug: Schema85.String,
|
|
11226
|
+
description: Schema85.optional(Schema85.String),
|
|
11227
|
+
gitRepository: Schema85.optional(Schema85.String),
|
|
11228
|
+
gitBranch: Schema85.optional(Schema85.String),
|
|
11229
|
+
buildPack: Schema85.optional(Schema85.String),
|
|
11230
|
+
dockerImage: Schema85.optional(Schema85.String),
|
|
11231
|
+
port: Schema85.optional(Schema85.Number),
|
|
11232
|
+
domain: Schema85.optional(Schema85.String)
|
|
11096
11233
|
});
|
|
11097
|
-
UpdateProjectInput =
|
|
11098
|
-
name:
|
|
11099
|
-
description:
|
|
11100
|
-
domains:
|
|
11101
|
-
webhookUrl:
|
|
11102
|
-
webhookEvents:
|
|
11103
|
-
enabledOAuthProviders:
|
|
11104
|
-
buildMachineType:
|
|
11234
|
+
UpdateProjectInput = Schema85.Struct({
|
|
11235
|
+
name: Schema85.optional(Schema85.String),
|
|
11236
|
+
description: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11237
|
+
domains: Schema85.optional(Schema85.Array(Schema85.String)),
|
|
11238
|
+
webhookUrl: Schema85.optional(Schema85.NullOr(Schema85.String)),
|
|
11239
|
+
webhookEvents: Schema85.optional(Schema85.Array(Schema85.String)),
|
|
11240
|
+
enabledOAuthProviders: Schema85.optional(Schema85.Array(Schema85.String)),
|
|
11241
|
+
buildMachineType: Schema85.optional(Schema85.Literal("standard", "large", "xlarge"))
|
|
11105
11242
|
});
|
|
11106
11243
|
}
|
|
11107
11244
|
});
|
|
11108
11245
|
|
|
11109
11246
|
// ../contract/dist/endpoints/projects.js
|
|
11110
|
-
import { Schema as
|
|
11111
|
-
var
|
|
11247
|
+
import { Schema as Schema86 } from "effect";
|
|
11248
|
+
var IdPath3, ListResponse, projectsEndpoints2;
|
|
11112
11249
|
var init_projects = __esm({
|
|
11113
11250
|
"../contract/dist/endpoints/projects.js"() {
|
|
11114
11251
|
"use strict";
|
|
11115
11252
|
init_endpoint();
|
|
11116
11253
|
init_project();
|
|
11117
|
-
|
|
11118
|
-
ListResponse =
|
|
11119
|
-
object:
|
|
11120
|
-
data:
|
|
11254
|
+
IdPath3 = Schema86.Struct({ id: Schema86.String });
|
|
11255
|
+
ListResponse = Schema86.Struct({
|
|
11256
|
+
object: Schema86.Literal("list"),
|
|
11257
|
+
data: Schema86.Array(Project)
|
|
11121
11258
|
});
|
|
11122
11259
|
projectsEndpoints2 = {
|
|
11123
11260
|
list: defineEndpoint({
|
|
@@ -11139,7 +11276,7 @@ var init_projects = __esm({
|
|
|
11139
11276
|
get: defineEndpoint({
|
|
11140
11277
|
method: "GET",
|
|
11141
11278
|
path: "/projects/:id",
|
|
11142
|
-
params:
|
|
11279
|
+
params: IdPath3,
|
|
11143
11280
|
response: Project,
|
|
11144
11281
|
summary: "Get project detail by id or slug",
|
|
11145
11282
|
tags: ["projects"]
|
|
@@ -11147,7 +11284,7 @@ var init_projects = __esm({
|
|
|
11147
11284
|
update: defineEndpoint({
|
|
11148
11285
|
method: "PATCH",
|
|
11149
11286
|
path: "/projects/:id",
|
|
11150
|
-
params:
|
|
11287
|
+
params: IdPath3,
|
|
11151
11288
|
body: UpdateProjectInput,
|
|
11152
11289
|
response: Project,
|
|
11153
11290
|
summary: "Update project metadata, webhooks, OAuth providers, or build machine tier",
|
|
@@ -11156,7 +11293,7 @@ var init_projects = __esm({
|
|
|
11156
11293
|
delete: defineEndpoint({
|
|
11157
11294
|
method: "DELETE",
|
|
11158
11295
|
path: "/projects/:id",
|
|
11159
|
-
params:
|
|
11296
|
+
params: IdPath3,
|
|
11160
11297
|
response: DeleteProjectResult,
|
|
11161
11298
|
summary: "Soft-delete a project \u2014 environments transition to `terminating`",
|
|
11162
11299
|
tags: ["projects"]
|
|
@@ -11166,440 +11303,440 @@ var init_projects = __esm({
|
|
|
11166
11303
|
});
|
|
11167
11304
|
|
|
11168
11305
|
// ../contract/dist/schemas/realtime.js
|
|
11169
|
-
import { Schema as
|
|
11306
|
+
import { Schema as Schema87 } from "effect";
|
|
11170
11307
|
var ChannelName, StreamMessageId, StreamMessage, RealtimeEmitInput, RealtimeEmitResult, RealtimeHistoryQuery, RealtimeHistoryResult;
|
|
11171
11308
|
var init_realtime = __esm({
|
|
11172
11309
|
"../contract/dist/schemas/realtime.js"() {
|
|
11173
11310
|
"use strict";
|
|
11174
|
-
ChannelName =
|
|
11175
|
-
StreamMessageId =
|
|
11176
|
-
StreamMessage =
|
|
11177
|
-
id:
|
|
11178
|
-
channel:
|
|
11179
|
-
event:
|
|
11180
|
-
data:
|
|
11181
|
-
timestamp:
|
|
11311
|
+
ChannelName = Schema87.String.pipe(Schema87.minLength(1), Schema87.brand("ChannelName"));
|
|
11312
|
+
StreamMessageId = Schema87.String.pipe(Schema87.brand("StreamMessageId"));
|
|
11313
|
+
StreamMessage = Schema87.Struct({
|
|
11314
|
+
id: Schema87.String,
|
|
11315
|
+
channel: Schema87.String,
|
|
11316
|
+
event: Schema87.String,
|
|
11317
|
+
data: Schema87.Unknown,
|
|
11318
|
+
timestamp: Schema87.Number
|
|
11182
11319
|
});
|
|
11183
|
-
RealtimeEmitInput =
|
|
11184
|
-
channel:
|
|
11185
|
-
event:
|
|
11186
|
-
data:
|
|
11320
|
+
RealtimeEmitInput = Schema87.Struct({
|
|
11321
|
+
channel: Schema87.String,
|
|
11322
|
+
event: Schema87.String,
|
|
11323
|
+
data: Schema87.Unknown
|
|
11187
11324
|
});
|
|
11188
|
-
RealtimeEmitResult =
|
|
11189
|
-
id:
|
|
11190
|
-
channel:
|
|
11325
|
+
RealtimeEmitResult = Schema87.Struct({
|
|
11326
|
+
id: Schema87.String,
|
|
11327
|
+
channel: Schema87.String
|
|
11191
11328
|
});
|
|
11192
|
-
RealtimeHistoryQuery =
|
|
11193
|
-
channel:
|
|
11194
|
-
limit:
|
|
11195
|
-
after:
|
|
11329
|
+
RealtimeHistoryQuery = Schema87.Struct({
|
|
11330
|
+
channel: Schema87.String,
|
|
11331
|
+
limit: Schema87.optional(Schema87.String),
|
|
11332
|
+
after: Schema87.optional(Schema87.String)
|
|
11196
11333
|
});
|
|
11197
|
-
RealtimeHistoryResult =
|
|
11198
|
-
messages:
|
|
11334
|
+
RealtimeHistoryResult = Schema87.Struct({
|
|
11335
|
+
messages: Schema87.Array(StreamMessage)
|
|
11199
11336
|
});
|
|
11200
11337
|
}
|
|
11201
11338
|
});
|
|
11202
11339
|
|
|
11203
11340
|
// ../contract/dist/schemas/realtime-admin.js
|
|
11204
|
-
import { Schema as
|
|
11341
|
+
import { Schema as Schema88 } from "effect";
|
|
11205
11342
|
var RealtimeAdminProjectIdQuery, RealtimeAdminChannelNameParams, RealtimeAdminStatusResult, RealtimeAdminChannel, RealtimeAdminListChannelsResult, RealtimeAdminCreateChannelInput, RealtimeAdminCreateChannelResult, RealtimeAdminDeleteChannelResult;
|
|
11206
11343
|
var init_realtime_admin = __esm({
|
|
11207
11344
|
"../contract/dist/schemas/realtime-admin.js"() {
|
|
11208
11345
|
"use strict";
|
|
11209
|
-
RealtimeAdminProjectIdQuery =
|
|
11210
|
-
RealtimeAdminChannelNameParams =
|
|
11211
|
-
RealtimeAdminStatusResult =
|
|
11212
|
-
available:
|
|
11213
|
-
provider:
|
|
11214
|
-
});
|
|
11215
|
-
RealtimeAdminChannel =
|
|
11216
|
-
name:
|
|
11217
|
-
activeConnections:
|
|
11218
|
-
messagesPerHour:
|
|
11219
|
-
status:
|
|
11220
|
-
});
|
|
11221
|
-
RealtimeAdminListChannelsResult =
|
|
11222
|
-
channels:
|
|
11223
|
-
count:
|
|
11224
|
-
});
|
|
11225
|
-
RealtimeAdminCreateChannelInput =
|
|
11226
|
-
projectId:
|
|
11227
|
-
name:
|
|
11346
|
+
RealtimeAdminProjectIdQuery = Schema88.Struct({ projectId: Schema88.String });
|
|
11347
|
+
RealtimeAdminChannelNameParams = Schema88.Struct({ channelName: Schema88.String });
|
|
11348
|
+
RealtimeAdminStatusResult = Schema88.Struct({
|
|
11349
|
+
available: Schema88.Boolean,
|
|
11350
|
+
provider: Schema88.String
|
|
11351
|
+
});
|
|
11352
|
+
RealtimeAdminChannel = Schema88.Struct({
|
|
11353
|
+
name: Schema88.String,
|
|
11354
|
+
activeConnections: Schema88.Number,
|
|
11355
|
+
messagesPerHour: Schema88.Number,
|
|
11356
|
+
status: Schema88.Literal("active", "empty")
|
|
11357
|
+
});
|
|
11358
|
+
RealtimeAdminListChannelsResult = Schema88.Struct({
|
|
11359
|
+
channels: Schema88.Array(RealtimeAdminChannel),
|
|
11360
|
+
count: Schema88.Number
|
|
11361
|
+
});
|
|
11362
|
+
RealtimeAdminCreateChannelInput = Schema88.Struct({
|
|
11363
|
+
projectId: Schema88.String,
|
|
11364
|
+
name: Schema88.String
|
|
11228
11365
|
});
|
|
11229
|
-
RealtimeAdminCreateChannelResult =
|
|
11230
|
-
RealtimeAdminDeleteChannelResult =
|
|
11366
|
+
RealtimeAdminCreateChannelResult = Schema88.Struct({ name: Schema88.String });
|
|
11367
|
+
RealtimeAdminDeleteChannelResult = Schema88.Struct({ success: Schema88.Boolean });
|
|
11231
11368
|
}
|
|
11232
11369
|
});
|
|
11233
11370
|
|
|
11234
11371
|
// ../contract/dist/schemas/referrals-admin.js
|
|
11235
|
-
import { Schema as
|
|
11372
|
+
import { Schema as Schema89 } from "effect";
|
|
11236
11373
|
var ReferralStatus, ReferralRewardType, ReferralUserRef, Referral, ReferralDetail, ListReferralsQuery, GetReferralQuery, CreateReferralInput, GetReferralStatsQuery, ExpireReferralInput, ListReferralsResult, CreateReferralResult, ExpireReferralResult, DailyTrendEntry, ByRewardTypeEntry, ByProjectEntry, TopReferrerEntry, GetReferralStatsResult;
|
|
11237
11374
|
var init_referrals_admin = __esm({
|
|
11238
11375
|
"../contract/dist/schemas/referrals-admin.js"() {
|
|
11239
11376
|
"use strict";
|
|
11240
|
-
ReferralStatus =
|
|
11241
|
-
ReferralRewardType =
|
|
11242
|
-
ReferralUserRef =
|
|
11243
|
-
id:
|
|
11244
|
-
email:
|
|
11245
|
-
name:
|
|
11246
|
-
});
|
|
11247
|
-
Referral =
|
|
11248
|
-
id:
|
|
11249
|
-
projectId:
|
|
11250
|
-
projectName:
|
|
11251
|
-
code:
|
|
11252
|
-
referrer:
|
|
11253
|
-
referredUser:
|
|
11377
|
+
ReferralStatus = Schema89.Literal("pending", "completed", "expired");
|
|
11378
|
+
ReferralRewardType = Schema89.Literal("points", "premium_trial", "discount", "credit");
|
|
11379
|
+
ReferralUserRef = Schema89.Struct({
|
|
11380
|
+
id: Schema89.String,
|
|
11381
|
+
email: Schema89.String,
|
|
11382
|
+
name: Schema89.NullOr(Schema89.String)
|
|
11383
|
+
});
|
|
11384
|
+
Referral = Schema89.Struct({
|
|
11385
|
+
id: Schema89.String,
|
|
11386
|
+
projectId: Schema89.String,
|
|
11387
|
+
projectName: Schema89.String,
|
|
11388
|
+
code: Schema89.String,
|
|
11389
|
+
referrer: Schema89.NullOr(ReferralUserRef),
|
|
11390
|
+
referredUser: Schema89.NullOr(ReferralUserRef),
|
|
11254
11391
|
status: ReferralStatus,
|
|
11255
11392
|
rewardType: ReferralRewardType,
|
|
11256
|
-
createdAt:
|
|
11257
|
-
completedAt:
|
|
11258
|
-
});
|
|
11259
|
-
ReferralDetail =
|
|
11260
|
-
id:
|
|
11261
|
-
projectId:
|
|
11262
|
-
projectName:
|
|
11263
|
-
code:
|
|
11264
|
-
referrer:
|
|
11265
|
-
referredUser:
|
|
11393
|
+
createdAt: Schema89.String,
|
|
11394
|
+
completedAt: Schema89.NullOr(Schema89.String)
|
|
11395
|
+
});
|
|
11396
|
+
ReferralDetail = Schema89.Struct({
|
|
11397
|
+
id: Schema89.String,
|
|
11398
|
+
projectId: Schema89.String,
|
|
11399
|
+
projectName: Schema89.String,
|
|
11400
|
+
code: Schema89.String,
|
|
11401
|
+
referrer: Schema89.NullOr(ReferralUserRef),
|
|
11402
|
+
referredUser: Schema89.NullOr(ReferralUserRef),
|
|
11266
11403
|
status: ReferralStatus,
|
|
11267
11404
|
rewardType: ReferralRewardType,
|
|
11268
|
-
createdAt:
|
|
11269
|
-
completedAt:
|
|
11270
|
-
metadata:
|
|
11271
|
-
});
|
|
11272
|
-
ListReferralsQuery =
|
|
11273
|
-
projectId:
|
|
11274
|
-
environmentId:
|
|
11275
|
-
limit:
|
|
11276
|
-
offset:
|
|
11277
|
-
});
|
|
11278
|
-
GetReferralQuery =
|
|
11279
|
-
projectId:
|
|
11280
|
-
});
|
|
11281
|
-
CreateReferralInput =
|
|
11282
|
-
projectId:
|
|
11283
|
-
referrerId:
|
|
11284
|
-
code:
|
|
11285
|
-
rewardType:
|
|
11286
|
-
});
|
|
11287
|
-
GetReferralStatsQuery =
|
|
11288
|
-
projectId:
|
|
11289
|
-
environmentId:
|
|
11290
|
-
days:
|
|
11291
|
-
});
|
|
11292
|
-
ExpireReferralInput =
|
|
11293
|
-
projectId:
|
|
11294
|
-
});
|
|
11295
|
-
ListReferralsResult =
|
|
11296
|
-
CreateReferralResult =
|
|
11297
|
-
id:
|
|
11298
|
-
code:
|
|
11299
|
-
});
|
|
11300
|
-
ExpireReferralResult =
|
|
11301
|
-
success:
|
|
11302
|
-
});
|
|
11303
|
-
DailyTrendEntry =
|
|
11304
|
-
date:
|
|
11305
|
-
created:
|
|
11306
|
-
completed:
|
|
11307
|
-
});
|
|
11308
|
-
ByRewardTypeEntry =
|
|
11405
|
+
createdAt: Schema89.String,
|
|
11406
|
+
completedAt: Schema89.NullOr(Schema89.String),
|
|
11407
|
+
metadata: Schema89.NullOr(Schema89.Record({ key: Schema89.String, value: Schema89.Unknown }))
|
|
11408
|
+
});
|
|
11409
|
+
ListReferralsQuery = Schema89.Struct({
|
|
11410
|
+
projectId: Schema89.optional(Schema89.String),
|
|
11411
|
+
environmentId: Schema89.optional(Schema89.String),
|
|
11412
|
+
limit: Schema89.optional(Schema89.String),
|
|
11413
|
+
offset: Schema89.optional(Schema89.String)
|
|
11414
|
+
});
|
|
11415
|
+
GetReferralQuery = Schema89.Struct({
|
|
11416
|
+
projectId: Schema89.String
|
|
11417
|
+
});
|
|
11418
|
+
CreateReferralInput = Schema89.Struct({
|
|
11419
|
+
projectId: Schema89.String,
|
|
11420
|
+
referrerId: Schema89.String,
|
|
11421
|
+
code: Schema89.optional(Schema89.String),
|
|
11422
|
+
rewardType: Schema89.optional(ReferralRewardType)
|
|
11423
|
+
});
|
|
11424
|
+
GetReferralStatsQuery = Schema89.Struct({
|
|
11425
|
+
projectId: Schema89.optional(Schema89.String),
|
|
11426
|
+
environmentId: Schema89.optional(Schema89.String),
|
|
11427
|
+
days: Schema89.optional(Schema89.String)
|
|
11428
|
+
});
|
|
11429
|
+
ExpireReferralInput = Schema89.Struct({
|
|
11430
|
+
projectId: Schema89.String
|
|
11431
|
+
});
|
|
11432
|
+
ListReferralsResult = Schema89.Array(Referral);
|
|
11433
|
+
CreateReferralResult = Schema89.Struct({
|
|
11434
|
+
id: Schema89.String,
|
|
11435
|
+
code: Schema89.String
|
|
11436
|
+
});
|
|
11437
|
+
ExpireReferralResult = Schema89.Struct({
|
|
11438
|
+
success: Schema89.Boolean
|
|
11439
|
+
});
|
|
11440
|
+
DailyTrendEntry = Schema89.Struct({
|
|
11441
|
+
date: Schema89.String,
|
|
11442
|
+
created: Schema89.Number,
|
|
11443
|
+
completed: Schema89.Number
|
|
11444
|
+
});
|
|
11445
|
+
ByRewardTypeEntry = Schema89.Struct({
|
|
11309
11446
|
rewardType: ReferralRewardType,
|
|
11310
|
-
total:
|
|
11311
|
-
completed:
|
|
11312
|
-
conversionRate:
|
|
11447
|
+
total: Schema89.Number,
|
|
11448
|
+
completed: Schema89.Number,
|
|
11449
|
+
conversionRate: Schema89.Number
|
|
11313
11450
|
});
|
|
11314
|
-
ByProjectEntry =
|
|
11315
|
-
projectId:
|
|
11316
|
-
total:
|
|
11317
|
-
completed:
|
|
11318
|
-
conversionRate:
|
|
11451
|
+
ByProjectEntry = Schema89.Struct({
|
|
11452
|
+
projectId: Schema89.String,
|
|
11453
|
+
total: Schema89.Number,
|
|
11454
|
+
completed: Schema89.Number,
|
|
11455
|
+
conversionRate: Schema89.Number
|
|
11319
11456
|
});
|
|
11320
|
-
TopReferrerEntry =
|
|
11321
|
-
referrerId:
|
|
11322
|
-
totalReferrals:
|
|
11323
|
-
completedReferrals:
|
|
11457
|
+
TopReferrerEntry = Schema89.Struct({
|
|
11458
|
+
referrerId: Schema89.String,
|
|
11459
|
+
totalReferrals: Schema89.Number,
|
|
11460
|
+
completedReferrals: Schema89.Number
|
|
11324
11461
|
});
|
|
11325
|
-
GetReferralStatsResult =
|
|
11326
|
-
overall:
|
|
11327
|
-
total:
|
|
11328
|
-
completed:
|
|
11329
|
-
pending:
|
|
11330
|
-
expired:
|
|
11331
|
-
conversionRate:
|
|
11462
|
+
GetReferralStatsResult = Schema89.Struct({
|
|
11463
|
+
overall: Schema89.Struct({
|
|
11464
|
+
total: Schema89.Number,
|
|
11465
|
+
completed: Schema89.Number,
|
|
11466
|
+
pending: Schema89.Number,
|
|
11467
|
+
expired: Schema89.Number,
|
|
11468
|
+
conversionRate: Schema89.Number
|
|
11332
11469
|
}),
|
|
11333
|
-
period:
|
|
11334
|
-
days:
|
|
11335
|
-
since:
|
|
11336
|
-
created:
|
|
11337
|
-
completed:
|
|
11338
|
-
conversionRate:
|
|
11470
|
+
period: Schema89.Struct({
|
|
11471
|
+
days: Schema89.Number,
|
|
11472
|
+
since: Schema89.String,
|
|
11473
|
+
created: Schema89.Number,
|
|
11474
|
+
completed: Schema89.Number,
|
|
11475
|
+
conversionRate: Schema89.Number
|
|
11339
11476
|
}),
|
|
11340
|
-
byRewardType:
|
|
11341
|
-
byProject:
|
|
11342
|
-
dailyTrend:
|
|
11343
|
-
topReferrers:
|
|
11477
|
+
byRewardType: Schema89.Array(ByRewardTypeEntry),
|
|
11478
|
+
byProject: Schema89.Array(ByProjectEntry),
|
|
11479
|
+
dailyTrend: Schema89.Array(DailyTrendEntry),
|
|
11480
|
+
topReferrers: Schema89.Array(TopReferrerEntry)
|
|
11344
11481
|
});
|
|
11345
11482
|
}
|
|
11346
11483
|
});
|
|
11347
11484
|
|
|
11348
11485
|
// ../contract/dist/schemas/refresh.js
|
|
11349
|
-
import { Schema as
|
|
11486
|
+
import { Schema as Schema90 } from "effect";
|
|
11350
11487
|
var RefreshTokenInput, RefreshTokenResult, LogoutInput, LogoutResult;
|
|
11351
11488
|
var init_refresh = __esm({
|
|
11352
11489
|
"../contract/dist/schemas/refresh.js"() {
|
|
11353
11490
|
"use strict";
|
|
11354
|
-
RefreshTokenInput =
|
|
11355
|
-
RefreshTokenResult =
|
|
11356
|
-
access_token:
|
|
11357
|
-
refresh_token:
|
|
11358
|
-
token_type:
|
|
11359
|
-
expires_in:
|
|
11360
|
-
refresh_expires_at:
|
|
11491
|
+
RefreshTokenInput = Schema90.Struct({ refresh_token: Schema90.String });
|
|
11492
|
+
RefreshTokenResult = Schema90.Struct({
|
|
11493
|
+
access_token: Schema90.String,
|
|
11494
|
+
refresh_token: Schema90.String,
|
|
11495
|
+
token_type: Schema90.Literal("Bearer"),
|
|
11496
|
+
expires_in: Schema90.Number,
|
|
11497
|
+
refresh_expires_at: Schema90.String
|
|
11361
11498
|
});
|
|
11362
|
-
LogoutInput =
|
|
11363
|
-
LogoutResult =
|
|
11499
|
+
LogoutInput = Schema90.Struct({ refresh_token: Schema90.String });
|
|
11500
|
+
LogoutResult = Schema90.Struct({ revoked: Schema90.Boolean });
|
|
11364
11501
|
}
|
|
11365
11502
|
});
|
|
11366
11503
|
|
|
11367
11504
|
// ../contract/dist/schemas/region.js
|
|
11368
|
-
import { Schema as
|
|
11505
|
+
import { Schema as Schema91 } from "effect";
|
|
11369
11506
|
var RegionStatus, Region, ListRegionsResult;
|
|
11370
11507
|
var init_region = __esm({
|
|
11371
11508
|
"../contract/dist/schemas/region.js"() {
|
|
11372
11509
|
"use strict";
|
|
11373
|
-
RegionStatus =
|
|
11374
|
-
Region =
|
|
11510
|
+
RegionStatus = Schema91.Literal("coming-soon", "active", "decommissioned");
|
|
11511
|
+
Region = Schema91.Struct({
|
|
11375
11512
|
/** Internal TypeID (rarely used by clients; slug is the canonical handle). */
|
|
11376
|
-
id:
|
|
11513
|
+
id: Schema91.String,
|
|
11377
11514
|
/** DNS-safe slug — e.g. `eu-north-1`. Globally unique, immutable. */
|
|
11378
|
-
slug:
|
|
11515
|
+
slug: Schema91.String,
|
|
11379
11516
|
/** Human-readable display name — e.g. `Europe (Hetzner Finland)`. */
|
|
11380
|
-
name:
|
|
11517
|
+
name: Schema91.String,
|
|
11381
11518
|
/**
|
|
11382
11519
|
* K8s API server endpoint for the region's cluster. NULL while
|
|
11383
11520
|
* `status='coming-soon'` — the region exists as a catalog placeholder.
|
|
11384
11521
|
* Always redacted to non-operators (the Management API may return
|
|
11385
11522
|
* `null` even for GA regions).
|
|
11386
11523
|
*/
|
|
11387
|
-
clusterEndpoint:
|
|
11524
|
+
clusterEndpoint: Schema91.NullOr(Schema91.String),
|
|
11388
11525
|
status: RegionStatus,
|
|
11389
11526
|
/** Data-center latitude for "nearest region" latency estimation. */
|
|
11390
|
-
locationLat:
|
|
11527
|
+
locationLat: Schema91.NullOr(Schema91.String),
|
|
11391
11528
|
/** Data-center longitude for "nearest region" latency estimation. */
|
|
11392
|
-
locationLng:
|
|
11529
|
+
locationLng: Schema91.NullOr(Schema91.String),
|
|
11393
11530
|
/** IPv4 CIDR range of the region's Gateway LB pool. Nullable. */
|
|
11394
|
-
gatewayIpRange:
|
|
11395
|
-
createdAt:
|
|
11531
|
+
gatewayIpRange: Schema91.NullOr(Schema91.String),
|
|
11532
|
+
createdAt: Schema91.String
|
|
11396
11533
|
});
|
|
11397
|
-
ListRegionsResult =
|
|
11398
|
-
regions:
|
|
11534
|
+
ListRegionsResult = Schema91.Struct({
|
|
11535
|
+
regions: Schema91.Array(Region)
|
|
11399
11536
|
});
|
|
11400
11537
|
}
|
|
11401
11538
|
});
|
|
11402
11539
|
|
|
11403
11540
|
// ../contract/dist/schemas/runners.js
|
|
11404
|
-
import { Schema as
|
|
11541
|
+
import { Schema as Schema92 } from "effect";
|
|
11405
11542
|
var RunnerPlatform, RunnerArch, Runner, RunnerJob, RunnerIdParams, CreateRunnerInput, ListRunnersResult, CreateRunnerResult, DeleteRunnerResult, ListRunnerJobsResult;
|
|
11406
11543
|
var init_runners = __esm({
|
|
11407
11544
|
"../contract/dist/schemas/runners.js"() {
|
|
11408
11545
|
"use strict";
|
|
11409
|
-
RunnerPlatform =
|
|
11410
|
-
RunnerArch =
|
|
11411
|
-
Runner =
|
|
11412
|
-
id:
|
|
11413
|
-
orgId:
|
|
11414
|
-
name:
|
|
11415
|
-
platform:
|
|
11416
|
-
arch:
|
|
11417
|
-
version:
|
|
11418
|
-
status:
|
|
11419
|
-
lastSeenAt:
|
|
11420
|
-
createdAt:
|
|
11546
|
+
RunnerPlatform = Schema92.Literal("linux", "macos", "windows");
|
|
11547
|
+
RunnerArch = Schema92.Literal("x64", "arm64");
|
|
11548
|
+
Runner = Schema92.Struct({
|
|
11549
|
+
id: Schema92.String,
|
|
11550
|
+
orgId: Schema92.String,
|
|
11551
|
+
name: Schema92.String,
|
|
11552
|
+
platform: Schema92.String,
|
|
11553
|
+
arch: Schema92.String,
|
|
11554
|
+
version: Schema92.NullOr(Schema92.String),
|
|
11555
|
+
status: Schema92.String,
|
|
11556
|
+
lastSeenAt: Schema92.NullOr(Schema92.String),
|
|
11557
|
+
createdAt: Schema92.String
|
|
11421
11558
|
});
|
|
11422
|
-
RunnerJob =
|
|
11423
|
-
id:
|
|
11424
|
-
runnerId:
|
|
11425
|
-
envId:
|
|
11426
|
-
orgId:
|
|
11427
|
-
status:
|
|
11428
|
-
platform:
|
|
11429
|
-
gitRepo:
|
|
11430
|
-
gitBranch:
|
|
11431
|
-
gitCommit:
|
|
11432
|
-
buildCommand:
|
|
11433
|
-
exitCode:
|
|
11434
|
-
startedAt:
|
|
11435
|
-
finishedAt:
|
|
11436
|
-
createdAt:
|
|
11559
|
+
RunnerJob = Schema92.Struct({
|
|
11560
|
+
id: Schema92.String,
|
|
11561
|
+
runnerId: Schema92.NullOr(Schema92.String),
|
|
11562
|
+
envId: Schema92.String,
|
|
11563
|
+
orgId: Schema92.String,
|
|
11564
|
+
status: Schema92.String,
|
|
11565
|
+
platform: Schema92.NullOr(Schema92.String),
|
|
11566
|
+
gitRepo: Schema92.String,
|
|
11567
|
+
gitBranch: Schema92.String,
|
|
11568
|
+
gitCommit: Schema92.NullOr(Schema92.String),
|
|
11569
|
+
buildCommand: Schema92.NullOr(Schema92.String),
|
|
11570
|
+
exitCode: Schema92.NullOr(Schema92.String),
|
|
11571
|
+
startedAt: Schema92.NullOr(Schema92.String),
|
|
11572
|
+
finishedAt: Schema92.NullOr(Schema92.String),
|
|
11573
|
+
createdAt: Schema92.String
|
|
11437
11574
|
});
|
|
11438
|
-
RunnerIdParams =
|
|
11439
|
-
CreateRunnerInput =
|
|
11440
|
-
name:
|
|
11575
|
+
RunnerIdParams = Schema92.Struct({ runnerId: Schema92.String });
|
|
11576
|
+
CreateRunnerInput = Schema92.Struct({
|
|
11577
|
+
name: Schema92.String,
|
|
11441
11578
|
platform: RunnerPlatform,
|
|
11442
11579
|
arch: RunnerArch
|
|
11443
11580
|
});
|
|
11444
|
-
ListRunnersResult =
|
|
11445
|
-
CreateRunnerResult =
|
|
11446
|
-
runnerId:
|
|
11447
|
-
registrationToken:
|
|
11581
|
+
ListRunnersResult = Schema92.Struct({ runners: Schema92.Array(Runner) });
|
|
11582
|
+
CreateRunnerResult = Schema92.Struct({
|
|
11583
|
+
runnerId: Schema92.String,
|
|
11584
|
+
registrationToken: Schema92.String
|
|
11448
11585
|
});
|
|
11449
|
-
DeleteRunnerResult =
|
|
11450
|
-
ListRunnerJobsResult =
|
|
11586
|
+
DeleteRunnerResult = Schema92.Struct({ success: Schema92.Boolean });
|
|
11587
|
+
ListRunnerJobsResult = Schema92.Struct({ jobs: Schema92.Array(RunnerJob) });
|
|
11451
11588
|
}
|
|
11452
11589
|
});
|
|
11453
11590
|
|
|
11454
11591
|
// ../contract/dist/schemas/saml.js
|
|
11455
|
-
import { Schema as
|
|
11592
|
+
import { Schema as Schema93 } from "effect";
|
|
11456
11593
|
var SAMLProviderType, SAMLNameIdFormat, SAMLSignatureAlgorithm, SAMLProviderStatus, SAMLAttributeMapping, SAMLProvider, SAMLAuthLog, SAMLIdPTemplate, SAMLNameIdFormatOption, SAMLSignatureAlgorithmOption, GetSAMLProviderQuery, GetSAMLMetadataQuery, GetSAMLLogsQuery, CreateSAMLProviderInput, UpdateSAMLProviderInput, SetSAMLProviderStatusInput, DeleteSAMLProviderInput, TestSAMLConfigInput, GetSAMLProviderResult, CreateSAMLProviderResult, UpdateSAMLProviderResult, SetSAMLProviderStatusResult, DeleteSAMLProviderResult, GetSAMLMetadataResult, GetSAMLLogsResult, TestSAMLConfigResult, ListSAMLIdPTemplatesResult, ListSAMLNameIdFormatsResult, ListSAMLSignatureAlgorithmsResult;
|
|
11457
11594
|
var init_saml = __esm({
|
|
11458
11595
|
"../contract/dist/schemas/saml.js"() {
|
|
11459
11596
|
"use strict";
|
|
11460
|
-
SAMLProviderType =
|
|
11461
|
-
SAMLNameIdFormat =
|
|
11462
|
-
SAMLSignatureAlgorithm =
|
|
11463
|
-
SAMLProviderStatus =
|
|
11464
|
-
SAMLAttributeMapping =
|
|
11465
|
-
email:
|
|
11466
|
-
firstName:
|
|
11467
|
-
lastName:
|
|
11468
|
-
displayName:
|
|
11469
|
-
groups:
|
|
11470
|
-
});
|
|
11471
|
-
SAMLProvider =
|
|
11472
|
-
id:
|
|
11473
|
-
name:
|
|
11597
|
+
SAMLProviderType = Schema93.Literal("okta", "azure_ad", "google_workspace", "onelogin", "ping_identity", "jumpcloud", "custom");
|
|
11598
|
+
SAMLNameIdFormat = Schema93.Literal("email", "persistent", "transient", "unspecified");
|
|
11599
|
+
SAMLSignatureAlgorithm = Schema93.Literal("rsa-sha256", "rsa-sha384", "rsa-sha512");
|
|
11600
|
+
SAMLProviderStatus = Schema93.Literal("pending", "active", "disabled", "error");
|
|
11601
|
+
SAMLAttributeMapping = Schema93.Struct({
|
|
11602
|
+
email: Schema93.optional(Schema93.String),
|
|
11603
|
+
firstName: Schema93.optional(Schema93.String),
|
|
11604
|
+
lastName: Schema93.optional(Schema93.String),
|
|
11605
|
+
displayName: Schema93.optional(Schema93.String),
|
|
11606
|
+
groups: Schema93.optional(Schema93.String)
|
|
11607
|
+
});
|
|
11608
|
+
SAMLProvider = Schema93.Struct({
|
|
11609
|
+
id: Schema93.String,
|
|
11610
|
+
name: Schema93.String,
|
|
11474
11611
|
type: SAMLProviderType,
|
|
11475
11612
|
status: SAMLProviderStatus,
|
|
11476
|
-
entityId:
|
|
11477
|
-
ssoUrl:
|
|
11478
|
-
sloUrl:
|
|
11613
|
+
entityId: Schema93.String,
|
|
11614
|
+
ssoUrl: Schema93.String,
|
|
11615
|
+
sloUrl: Schema93.NullOr(Schema93.String),
|
|
11479
11616
|
nameIdFormat: SAMLNameIdFormat,
|
|
11480
11617
|
signatureAlgorithm: SAMLSignatureAlgorithm,
|
|
11481
|
-
allowedDomains:
|
|
11482
|
-
enforceSSO:
|
|
11483
|
-
attributeMapping:
|
|
11484
|
-
spEntityId:
|
|
11485
|
-
spAcsUrl:
|
|
11486
|
-
certificateExpiresAt:
|
|
11487
|
-
lastLoginAt:
|
|
11488
|
-
loginCount:
|
|
11489
|
-
lastError:
|
|
11490
|
-
lastErrorAt:
|
|
11491
|
-
createdAt:
|
|
11492
|
-
updatedAt:
|
|
11493
|
-
});
|
|
11494
|
-
SAMLAuthLog = Schema92.Struct({
|
|
11495
|
-
id: Schema92.String,
|
|
11496
|
-
success: Schema92.Boolean,
|
|
11497
|
-
errorCode: Schema92.NullOr(Schema92.String),
|
|
11498
|
-
errorMessage: Schema92.NullOr(Schema92.String),
|
|
11499
|
-
nameId: Schema92.NullOr(Schema92.String),
|
|
11500
|
-
ipAddress: Schema92.NullOr(Schema92.String),
|
|
11501
|
-
createdAt: Schema92.String
|
|
11618
|
+
allowedDomains: Schema93.NullOr(Schema93.Array(Schema93.String)),
|
|
11619
|
+
enforceSSO: Schema93.Boolean,
|
|
11620
|
+
attributeMapping: Schema93.NullOr(SAMLAttributeMapping),
|
|
11621
|
+
spEntityId: Schema93.NullOr(Schema93.String),
|
|
11622
|
+
spAcsUrl: Schema93.NullOr(Schema93.String),
|
|
11623
|
+
certificateExpiresAt: Schema93.NullOr(Schema93.String),
|
|
11624
|
+
lastLoginAt: Schema93.NullOr(Schema93.String),
|
|
11625
|
+
loginCount: Schema93.Number,
|
|
11626
|
+
lastError: Schema93.NullOr(Schema93.String),
|
|
11627
|
+
lastErrorAt: Schema93.NullOr(Schema93.String),
|
|
11628
|
+
createdAt: Schema93.String,
|
|
11629
|
+
updatedAt: Schema93.NullOr(Schema93.String)
|
|
11502
11630
|
});
|
|
11503
|
-
|
|
11631
|
+
SAMLAuthLog = Schema93.Struct({
|
|
11632
|
+
id: Schema93.String,
|
|
11633
|
+
success: Schema93.Boolean,
|
|
11634
|
+
errorCode: Schema93.NullOr(Schema93.String),
|
|
11635
|
+
errorMessage: Schema93.NullOr(Schema93.String),
|
|
11636
|
+
nameId: Schema93.NullOr(Schema93.String),
|
|
11637
|
+
ipAddress: Schema93.NullOr(Schema93.String),
|
|
11638
|
+
createdAt: Schema93.String
|
|
11639
|
+
});
|
|
11640
|
+
SAMLIdPTemplate = Schema93.Struct({
|
|
11504
11641
|
type: SAMLProviderType,
|
|
11505
|
-
name:
|
|
11506
|
-
instructions:
|
|
11507
|
-
requiredFields:
|
|
11508
|
-
});
|
|
11509
|
-
SAMLNameIdFormatOption =
|
|
11510
|
-
key:
|
|
11511
|
-
value:
|
|
11512
|
-
description:
|
|
11513
|
-
});
|
|
11514
|
-
SAMLSignatureAlgorithmOption =
|
|
11515
|
-
key:
|
|
11516
|
-
value:
|
|
11517
|
-
recommended:
|
|
11518
|
-
});
|
|
11519
|
-
GetSAMLProviderQuery =
|
|
11520
|
-
organizationId:
|
|
11521
|
-
});
|
|
11522
|
-
GetSAMLMetadataQuery =
|
|
11523
|
-
organizationId:
|
|
11524
|
-
});
|
|
11525
|
-
GetSAMLLogsQuery =
|
|
11526
|
-
providerId:
|
|
11527
|
-
limit:
|
|
11528
|
-
});
|
|
11529
|
-
CreateSAMLProviderInput =
|
|
11530
|
-
organizationId:
|
|
11531
|
-
name:
|
|
11532
|
-
type:
|
|
11533
|
-
entityId:
|
|
11534
|
-
ssoUrl:
|
|
11535
|
-
sloUrl:
|
|
11536
|
-
certificate:
|
|
11537
|
-
nameIdFormat:
|
|
11538
|
-
signatureAlgorithm:
|
|
11539
|
-
allowedDomains:
|
|
11540
|
-
enforceSSO:
|
|
11541
|
-
attributeMapping:
|
|
11542
|
-
});
|
|
11543
|
-
UpdateSAMLProviderInput =
|
|
11544
|
-
providerId:
|
|
11545
|
-
name:
|
|
11546
|
-
entityId:
|
|
11547
|
-
ssoUrl:
|
|
11548
|
-
sloUrl:
|
|
11549
|
-
certificate:
|
|
11550
|
-
nameIdFormat:
|
|
11551
|
-
signatureAlgorithm:
|
|
11552
|
-
allowedDomains:
|
|
11553
|
-
enforceSSO:
|
|
11554
|
-
attributeMapping:
|
|
11555
|
-
});
|
|
11556
|
-
SetSAMLProviderStatusInput =
|
|
11557
|
-
providerId:
|
|
11558
|
-
enabled:
|
|
11559
|
-
});
|
|
11560
|
-
DeleteSAMLProviderInput =
|
|
11561
|
-
providerId:
|
|
11562
|
-
});
|
|
11563
|
-
TestSAMLConfigInput =
|
|
11564
|
-
entityId:
|
|
11565
|
-
ssoUrl:
|
|
11566
|
-
certificate:
|
|
11567
|
-
});
|
|
11568
|
-
GetSAMLProviderResult =
|
|
11569
|
-
CreateSAMLProviderResult =
|
|
11570
|
-
id:
|
|
11571
|
-
spEntityId:
|
|
11572
|
-
spAcsUrl:
|
|
11642
|
+
name: Schema93.String,
|
|
11643
|
+
instructions: Schema93.String,
|
|
11644
|
+
requiredFields: Schema93.Array(Schema93.String)
|
|
11645
|
+
});
|
|
11646
|
+
SAMLNameIdFormatOption = Schema93.Struct({
|
|
11647
|
+
key: Schema93.String,
|
|
11648
|
+
value: Schema93.String,
|
|
11649
|
+
description: Schema93.String
|
|
11650
|
+
});
|
|
11651
|
+
SAMLSignatureAlgorithmOption = Schema93.Struct({
|
|
11652
|
+
key: Schema93.String,
|
|
11653
|
+
value: Schema93.String,
|
|
11654
|
+
recommended: Schema93.Boolean
|
|
11655
|
+
});
|
|
11656
|
+
GetSAMLProviderQuery = Schema93.Struct({
|
|
11657
|
+
organizationId: Schema93.String
|
|
11658
|
+
});
|
|
11659
|
+
GetSAMLMetadataQuery = Schema93.Struct({
|
|
11660
|
+
organizationId: Schema93.String
|
|
11661
|
+
});
|
|
11662
|
+
GetSAMLLogsQuery = Schema93.Struct({
|
|
11663
|
+
providerId: Schema93.String,
|
|
11664
|
+
limit: Schema93.optional(Schema93.String)
|
|
11665
|
+
});
|
|
11666
|
+
CreateSAMLProviderInput = Schema93.Struct({
|
|
11667
|
+
organizationId: Schema93.String,
|
|
11668
|
+
name: Schema93.String,
|
|
11669
|
+
type: Schema93.optional(SAMLProviderType),
|
|
11670
|
+
entityId: Schema93.String,
|
|
11671
|
+
ssoUrl: Schema93.String,
|
|
11672
|
+
sloUrl: Schema93.optional(Schema93.String),
|
|
11673
|
+
certificate: Schema93.String,
|
|
11674
|
+
nameIdFormat: Schema93.optional(SAMLNameIdFormat),
|
|
11675
|
+
signatureAlgorithm: Schema93.optional(SAMLSignatureAlgorithm),
|
|
11676
|
+
allowedDomains: Schema93.optional(Schema93.Array(Schema93.String)),
|
|
11677
|
+
enforceSSO: Schema93.optional(Schema93.Boolean),
|
|
11678
|
+
attributeMapping: Schema93.optional(SAMLAttributeMapping)
|
|
11679
|
+
});
|
|
11680
|
+
UpdateSAMLProviderInput = Schema93.Struct({
|
|
11681
|
+
providerId: Schema93.String,
|
|
11682
|
+
name: Schema93.optional(Schema93.String),
|
|
11683
|
+
entityId: Schema93.optional(Schema93.String),
|
|
11684
|
+
ssoUrl: Schema93.optional(Schema93.String),
|
|
11685
|
+
sloUrl: Schema93.optional(Schema93.NullOr(Schema93.String)),
|
|
11686
|
+
certificate: Schema93.optional(Schema93.String),
|
|
11687
|
+
nameIdFormat: Schema93.optional(SAMLNameIdFormat),
|
|
11688
|
+
signatureAlgorithm: Schema93.optional(SAMLSignatureAlgorithm),
|
|
11689
|
+
allowedDomains: Schema93.optional(Schema93.Array(Schema93.String)),
|
|
11690
|
+
enforceSSO: Schema93.optional(Schema93.Boolean),
|
|
11691
|
+
attributeMapping: Schema93.optional(SAMLAttributeMapping)
|
|
11692
|
+
});
|
|
11693
|
+
SetSAMLProviderStatusInput = Schema93.Struct({
|
|
11694
|
+
providerId: Schema93.String,
|
|
11695
|
+
enabled: Schema93.Boolean
|
|
11696
|
+
});
|
|
11697
|
+
DeleteSAMLProviderInput = Schema93.Struct({
|
|
11698
|
+
providerId: Schema93.String
|
|
11699
|
+
});
|
|
11700
|
+
TestSAMLConfigInput = Schema93.Struct({
|
|
11701
|
+
entityId: Schema93.String,
|
|
11702
|
+
ssoUrl: Schema93.String,
|
|
11703
|
+
certificate: Schema93.String
|
|
11704
|
+
});
|
|
11705
|
+
GetSAMLProviderResult = Schema93.NullOr(SAMLProvider);
|
|
11706
|
+
CreateSAMLProviderResult = Schema93.Struct({
|
|
11707
|
+
id: Schema93.String,
|
|
11708
|
+
spEntityId: Schema93.NullOr(Schema93.String),
|
|
11709
|
+
spAcsUrl: Schema93.NullOr(Schema93.String)
|
|
11573
11710
|
});
|
|
11574
|
-
UpdateSAMLProviderResult =
|
|
11575
|
-
success:
|
|
11711
|
+
UpdateSAMLProviderResult = Schema93.Struct({
|
|
11712
|
+
success: Schema93.Boolean
|
|
11576
11713
|
});
|
|
11577
|
-
SetSAMLProviderStatusResult =
|
|
11578
|
-
success:
|
|
11714
|
+
SetSAMLProviderStatusResult = Schema93.Struct({
|
|
11715
|
+
success: Schema93.Boolean
|
|
11579
11716
|
});
|
|
11580
|
-
DeleteSAMLProviderResult =
|
|
11581
|
-
success:
|
|
11717
|
+
DeleteSAMLProviderResult = Schema93.Struct({
|
|
11718
|
+
success: Schema93.Boolean
|
|
11582
11719
|
});
|
|
11583
|
-
GetSAMLMetadataResult =
|
|
11584
|
-
metadata:
|
|
11585
|
-
spEntityId:
|
|
11586
|
-
spAcsUrl:
|
|
11720
|
+
GetSAMLMetadataResult = Schema93.Struct({
|
|
11721
|
+
metadata: Schema93.String,
|
|
11722
|
+
spEntityId: Schema93.NullOr(Schema93.String),
|
|
11723
|
+
spAcsUrl: Schema93.NullOr(Schema93.String)
|
|
11587
11724
|
});
|
|
11588
|
-
GetSAMLLogsResult =
|
|
11589
|
-
logs:
|
|
11725
|
+
GetSAMLLogsResult = Schema93.Struct({
|
|
11726
|
+
logs: Schema93.Array(SAMLAuthLog)
|
|
11590
11727
|
});
|
|
11591
|
-
TestSAMLConfigResult =
|
|
11592
|
-
valid:
|
|
11593
|
-
issues:
|
|
11728
|
+
TestSAMLConfigResult = Schema93.Struct({
|
|
11729
|
+
valid: Schema93.Boolean,
|
|
11730
|
+
issues: Schema93.Array(Schema93.String)
|
|
11594
11731
|
});
|
|
11595
|
-
ListSAMLIdPTemplatesResult =
|
|
11596
|
-
templates:
|
|
11732
|
+
ListSAMLIdPTemplatesResult = Schema93.Struct({
|
|
11733
|
+
templates: Schema93.Array(SAMLIdPTemplate)
|
|
11597
11734
|
});
|
|
11598
|
-
ListSAMLNameIdFormatsResult =
|
|
11599
|
-
formats:
|
|
11735
|
+
ListSAMLNameIdFormatsResult = Schema93.Struct({
|
|
11736
|
+
formats: Schema93.Array(SAMLNameIdFormatOption)
|
|
11600
11737
|
});
|
|
11601
|
-
ListSAMLSignatureAlgorithmsResult =
|
|
11602
|
-
algorithms:
|
|
11738
|
+
ListSAMLSignatureAlgorithmsResult = Schema93.Struct({
|
|
11739
|
+
algorithms: Schema93.Array(SAMLSignatureAlgorithmOption)
|
|
11603
11740
|
});
|
|
11604
11741
|
}
|
|
11605
11742
|
});
|
|
@@ -11714,145 +11851,145 @@ var init_saml2 = __esm({
|
|
|
11714
11851
|
});
|
|
11715
11852
|
|
|
11716
11853
|
// ../contract/dist/schemas/search.js
|
|
11717
|
-
import { Schema as
|
|
11854
|
+
import { Schema as Schema94 } from "effect";
|
|
11718
11855
|
var SearchProjectIdParams, SearchAnalyticsQuery, SearchListDocumentsQuery, SearchStatsQuery, SearchTopQuery, SearchAnalyticsResult, SearchNamespaceStats, SearchStatsResult, SearchDocumentItem, SearchListDocumentsResult;
|
|
11719
11856
|
var init_search = __esm({
|
|
11720
11857
|
"../contract/dist/schemas/search.js"() {
|
|
11721
11858
|
"use strict";
|
|
11722
|
-
SearchProjectIdParams =
|
|
11723
|
-
SearchAnalyticsQuery =
|
|
11724
|
-
namespace:
|
|
11725
|
-
dateFrom:
|
|
11726
|
-
dateTo:
|
|
11727
|
-
});
|
|
11728
|
-
SearchListDocumentsQuery =
|
|
11729
|
-
namespace:
|
|
11730
|
-
limit:
|
|
11731
|
-
offset:
|
|
11732
|
-
});
|
|
11733
|
-
SearchStatsQuery =
|
|
11734
|
-
SearchTopQuery =
|
|
11735
|
-
SearchAnalyticsResult =
|
|
11736
|
-
totalQueries:
|
|
11737
|
-
avgLatencyMs:
|
|
11738
|
-
clickThroughRate:
|
|
11739
|
-
topQueries:
|
|
11740
|
-
});
|
|
11741
|
-
SearchNamespaceStats =
|
|
11742
|
-
namespace:
|
|
11743
|
-
count:
|
|
11744
|
-
});
|
|
11745
|
-
SearchStatsResult =
|
|
11746
|
-
totalDocuments:
|
|
11747
|
-
documentsWithEmbedding:
|
|
11748
|
-
byNamespace:
|
|
11749
|
-
});
|
|
11750
|
-
SearchDocumentItem =
|
|
11751
|
-
id:
|
|
11752
|
-
namespace:
|
|
11753
|
-
externalId:
|
|
11754
|
-
title:
|
|
11755
|
-
contentPreview:
|
|
11756
|
-
url:
|
|
11757
|
-
category:
|
|
11758
|
-
type:
|
|
11759
|
-
tags:
|
|
11760
|
-
hasEmbedding:
|
|
11761
|
-
impressions:
|
|
11762
|
-
clicks:
|
|
11763
|
-
createdAt:
|
|
11764
|
-
updatedAt:
|
|
11859
|
+
SearchProjectIdParams = Schema94.Struct({ projectId: Schema94.String });
|
|
11860
|
+
SearchAnalyticsQuery = Schema94.Struct({
|
|
11861
|
+
namespace: Schema94.optional(Schema94.String),
|
|
11862
|
+
dateFrom: Schema94.optional(Schema94.String),
|
|
11863
|
+
dateTo: Schema94.optional(Schema94.String)
|
|
11864
|
+
});
|
|
11865
|
+
SearchListDocumentsQuery = Schema94.Struct({
|
|
11866
|
+
namespace: Schema94.optional(Schema94.String),
|
|
11867
|
+
limit: Schema94.optional(Schema94.String),
|
|
11868
|
+
offset: Schema94.optional(Schema94.String)
|
|
11869
|
+
});
|
|
11870
|
+
SearchStatsQuery = Schema94.Struct({ namespace: Schema94.optional(Schema94.String) });
|
|
11871
|
+
SearchTopQuery = Schema94.Struct({ query: Schema94.String, count: Schema94.Number });
|
|
11872
|
+
SearchAnalyticsResult = Schema94.Struct({
|
|
11873
|
+
totalQueries: Schema94.Number,
|
|
11874
|
+
avgLatencyMs: Schema94.Number,
|
|
11875
|
+
clickThroughRate: Schema94.Number,
|
|
11876
|
+
topQueries: Schema94.Array(SearchTopQuery)
|
|
11877
|
+
});
|
|
11878
|
+
SearchNamespaceStats = Schema94.Struct({
|
|
11879
|
+
namespace: Schema94.String,
|
|
11880
|
+
count: Schema94.Number
|
|
11881
|
+
});
|
|
11882
|
+
SearchStatsResult = Schema94.Struct({
|
|
11883
|
+
totalDocuments: Schema94.Number,
|
|
11884
|
+
documentsWithEmbedding: Schema94.Number,
|
|
11885
|
+
byNamespace: Schema94.Array(SearchNamespaceStats)
|
|
11886
|
+
});
|
|
11887
|
+
SearchDocumentItem = Schema94.Struct({
|
|
11888
|
+
id: Schema94.String,
|
|
11889
|
+
namespace: Schema94.String,
|
|
11890
|
+
externalId: Schema94.NullOr(Schema94.String),
|
|
11891
|
+
title: Schema94.NullOr(Schema94.String),
|
|
11892
|
+
contentPreview: Schema94.String,
|
|
11893
|
+
url: Schema94.NullOr(Schema94.String),
|
|
11894
|
+
category: Schema94.NullOr(Schema94.String),
|
|
11895
|
+
type: Schema94.NullOr(Schema94.String),
|
|
11896
|
+
tags: Schema94.NullOr(Schema94.Array(Schema94.String)),
|
|
11897
|
+
hasEmbedding: Schema94.Boolean,
|
|
11898
|
+
impressions: Schema94.Number,
|
|
11899
|
+
clicks: Schema94.Number,
|
|
11900
|
+
createdAt: Schema94.String,
|
|
11901
|
+
updatedAt: Schema94.String
|
|
11765
11902
|
});
|
|
11766
|
-
SearchListDocumentsResult =
|
|
11767
|
-
documents:
|
|
11768
|
-
total:
|
|
11769
|
-
hasMore:
|
|
11903
|
+
SearchListDocumentsResult = Schema94.Struct({
|
|
11904
|
+
documents: Schema94.Array(SearchDocumentItem),
|
|
11905
|
+
total: Schema94.Number,
|
|
11906
|
+
hasMore: Schema94.Boolean
|
|
11770
11907
|
});
|
|
11771
11908
|
}
|
|
11772
11909
|
});
|
|
11773
11910
|
|
|
11774
11911
|
// ../contract/dist/schemas/secret.js
|
|
11775
|
-
import { Schema as
|
|
11912
|
+
import { Schema as Schema95 } from "effect";
|
|
11776
11913
|
var SecretKey, SecretValue, EnvironmentRef2, SecretVersion, SecretListItem, SecretDetail, CreateSecretInput, CreateSecretResult, UpdateSecretInput, UpdateSecretResult, RollbackSecretInput, RollbackSecretResult;
|
|
11777
11914
|
var init_secret = __esm({
|
|
11778
11915
|
"../contract/dist/schemas/secret.js"() {
|
|
11779
11916
|
"use strict";
|
|
11780
11917
|
init_ids();
|
|
11781
|
-
SecretKey =
|
|
11782
|
-
SecretValue =
|
|
11783
|
-
EnvironmentRef2 =
|
|
11918
|
+
SecretKey = Schema95.String.pipe(Schema95.minLength(1), Schema95.maxLength(255), Schema95.pattern(/^[A-Z0-9_]+$/));
|
|
11919
|
+
SecretValue = Schema95.String.pipe(Schema95.minLength(1), Schema95.maxLength(65536));
|
|
11920
|
+
EnvironmentRef2 = Schema95.Struct({
|
|
11784
11921
|
id: EnvironmentId,
|
|
11785
|
-
name:
|
|
11922
|
+
name: Schema95.String
|
|
11786
11923
|
});
|
|
11787
|
-
SecretVersion =
|
|
11788
|
-
version:
|
|
11789
|
-
changeNote:
|
|
11790
|
-
createdAt:
|
|
11924
|
+
SecretVersion = Schema95.Struct({
|
|
11925
|
+
version: Schema95.String,
|
|
11926
|
+
changeNote: Schema95.NullOr(Schema95.String),
|
|
11927
|
+
createdAt: Schema95.String
|
|
11791
11928
|
});
|
|
11792
|
-
SecretListItem =
|
|
11929
|
+
SecretListItem = Schema95.Struct({
|
|
11793
11930
|
id: SecretId,
|
|
11794
11931
|
key: SecretKey,
|
|
11795
|
-
description:
|
|
11796
|
-
environment:
|
|
11797
|
-
isActive:
|
|
11798
|
-
version:
|
|
11799
|
-
createdAt:
|
|
11800
|
-
updatedAt:
|
|
11801
|
-
});
|
|
11802
|
-
SecretDetail =
|
|
11932
|
+
description: Schema95.NullOr(Schema95.String),
|
|
11933
|
+
environment: Schema95.NullOr(EnvironmentRef2),
|
|
11934
|
+
isActive: Schema95.Boolean,
|
|
11935
|
+
version: Schema95.String,
|
|
11936
|
+
createdAt: Schema95.String,
|
|
11937
|
+
updatedAt: Schema95.String
|
|
11938
|
+
});
|
|
11939
|
+
SecretDetail = Schema95.Struct({
|
|
11803
11940
|
id: SecretId,
|
|
11804
11941
|
key: SecretKey,
|
|
11805
11942
|
/** Plaintext — only populated when `reveal=true` was requested. */
|
|
11806
|
-
value:
|
|
11807
|
-
maskedValue:
|
|
11808
|
-
description:
|
|
11809
|
-
environment:
|
|
11810
|
-
isActive:
|
|
11811
|
-
version:
|
|
11812
|
-
versions:
|
|
11813
|
-
createdAt:
|
|
11814
|
-
updatedAt:
|
|
11815
|
-
});
|
|
11816
|
-
CreateSecretInput =
|
|
11943
|
+
value: Schema95.NullOr(Schema95.String),
|
|
11944
|
+
maskedValue: Schema95.String,
|
|
11945
|
+
description: Schema95.NullOr(Schema95.String),
|
|
11946
|
+
environment: Schema95.NullOr(EnvironmentRef2),
|
|
11947
|
+
isActive: Schema95.Boolean,
|
|
11948
|
+
version: Schema95.String,
|
|
11949
|
+
versions: Schema95.Array(SecretVersion),
|
|
11950
|
+
createdAt: Schema95.String,
|
|
11951
|
+
updatedAt: Schema95.String
|
|
11952
|
+
});
|
|
11953
|
+
CreateSecretInput = Schema95.Struct({
|
|
11817
11954
|
projectId: ProjectId,
|
|
11818
11955
|
key: SecretKey,
|
|
11819
11956
|
value: SecretValue,
|
|
11820
|
-
description:
|
|
11821
|
-
environmentId:
|
|
11957
|
+
description: Schema95.optional(Schema95.String),
|
|
11958
|
+
environmentId: Schema95.optional(EnvironmentId)
|
|
11822
11959
|
});
|
|
11823
|
-
CreateSecretResult =
|
|
11960
|
+
CreateSecretResult = Schema95.Struct({
|
|
11824
11961
|
id: SecretId,
|
|
11825
11962
|
key: SecretKey,
|
|
11826
|
-
version:
|
|
11963
|
+
version: Schema95.String
|
|
11827
11964
|
});
|
|
11828
|
-
UpdateSecretInput =
|
|
11965
|
+
UpdateSecretInput = Schema95.Struct({
|
|
11829
11966
|
id: SecretId,
|
|
11830
|
-
value:
|
|
11831
|
-
description:
|
|
11832
|
-
isActive:
|
|
11833
|
-
changeNote:
|
|
11967
|
+
value: Schema95.optional(SecretValue),
|
|
11968
|
+
description: Schema95.optional(Schema95.NullOr(Schema95.String)),
|
|
11969
|
+
isActive: Schema95.optional(Schema95.Boolean),
|
|
11970
|
+
changeNote: Schema95.optional(Schema95.String)
|
|
11834
11971
|
});
|
|
11835
|
-
UpdateSecretResult =
|
|
11972
|
+
UpdateSecretResult = Schema95.Struct({
|
|
11836
11973
|
id: SecretId,
|
|
11837
11974
|
key: SecretKey,
|
|
11838
|
-
version:
|
|
11975
|
+
version: Schema95.String
|
|
11839
11976
|
});
|
|
11840
|
-
RollbackSecretInput =
|
|
11977
|
+
RollbackSecretInput = Schema95.Struct({
|
|
11841
11978
|
id: SecretId,
|
|
11842
|
-
version:
|
|
11979
|
+
version: Schema95.String
|
|
11843
11980
|
});
|
|
11844
|
-
RollbackSecretResult =
|
|
11981
|
+
RollbackSecretResult = Schema95.Struct({
|
|
11845
11982
|
id: SecretId,
|
|
11846
11983
|
key: SecretKey,
|
|
11847
|
-
version:
|
|
11848
|
-
rolledBackFrom:
|
|
11849
|
-
rolledBackTo:
|
|
11984
|
+
version: Schema95.String,
|
|
11985
|
+
rolledBackFrom: Schema95.String,
|
|
11986
|
+
rolledBackTo: Schema95.String
|
|
11850
11987
|
});
|
|
11851
11988
|
}
|
|
11852
11989
|
});
|
|
11853
11990
|
|
|
11854
11991
|
// ../contract/dist/endpoints/secrets.js
|
|
11855
|
-
import { Schema as
|
|
11992
|
+
import { Schema as Schema96 } from "effect";
|
|
11856
11993
|
var ListQuery, DetailQuery, StatsQuery, DeleteBody, secretsEndpoints;
|
|
11857
11994
|
var init_secrets = __esm({
|
|
11858
11995
|
"../contract/dist/endpoints/secrets.js"() {
|
|
@@ -11860,23 +11997,23 @@ var init_secrets = __esm({
|
|
|
11860
11997
|
init_endpoint();
|
|
11861
11998
|
init_ids();
|
|
11862
11999
|
init_secret();
|
|
11863
|
-
ListQuery =
|
|
12000
|
+
ListQuery = Schema96.Struct({
|
|
11864
12001
|
projectId: ProjectId,
|
|
11865
|
-
environmentId:
|
|
11866
|
-
includeInactive:
|
|
12002
|
+
environmentId: Schema96.optional(EnvironmentId),
|
|
12003
|
+
includeInactive: Schema96.optional(Schema96.String)
|
|
11867
12004
|
});
|
|
11868
|
-
DetailQuery =
|
|
12005
|
+
DetailQuery = Schema96.Struct({
|
|
11869
12006
|
id: SecretId,
|
|
11870
|
-
reveal:
|
|
12007
|
+
reveal: Schema96.optional(Schema96.String)
|
|
11871
12008
|
});
|
|
11872
|
-
StatsQuery =
|
|
11873
|
-
DeleteBody =
|
|
12009
|
+
StatsQuery = Schema96.Struct({ projectId: ProjectId });
|
|
12010
|
+
DeleteBody = Schema96.Struct({ id: SecretId });
|
|
11874
12011
|
secretsEndpoints = {
|
|
11875
12012
|
list: defineEndpoint({
|
|
11876
12013
|
method: "GET",
|
|
11877
12014
|
path: "/secrets",
|
|
11878
12015
|
query: ListQuery,
|
|
11879
|
-
response:
|
|
12016
|
+
response: Schema96.Struct({ secrets: Schema96.Array(SecretListItem) }),
|
|
11880
12017
|
summary: "List secrets for a project (optionally scoped to an environment)",
|
|
11881
12018
|
tags: ["secrets"]
|
|
11882
12019
|
}),
|
|
@@ -11909,7 +12046,7 @@ var init_secrets = __esm({
|
|
|
11909
12046
|
method: "DELETE",
|
|
11910
12047
|
path: "/secrets",
|
|
11911
12048
|
body: DeleteBody,
|
|
11912
|
-
response:
|
|
12049
|
+
response: Schema96.Struct({ success: Schema96.Boolean }),
|
|
11913
12050
|
summary: "Delete a secret",
|
|
11914
12051
|
tags: ["secrets"]
|
|
11915
12052
|
}),
|
|
@@ -11925,10 +12062,10 @@ var init_secrets = __esm({
|
|
|
11925
12062
|
method: "GET",
|
|
11926
12063
|
path: "/secrets/stats",
|
|
11927
12064
|
query: StatsQuery,
|
|
11928
|
-
response:
|
|
11929
|
-
stats:
|
|
11930
|
-
environmentId:
|
|
11931
|
-
count:
|
|
12065
|
+
response: Schema96.Struct({
|
|
12066
|
+
stats: Schema96.Array(Schema96.Struct({
|
|
12067
|
+
environmentId: Schema96.NullOr(Schema96.String),
|
|
12068
|
+
count: Schema96.Number
|
|
11932
12069
|
}))
|
|
11933
12070
|
}),
|
|
11934
12071
|
summary: "Per-environment secret counts",
|
|
@@ -11939,210 +12076,210 @@ var init_secrets = __esm({
|
|
|
11939
12076
|
});
|
|
11940
12077
|
|
|
11941
12078
|
// ../contract/dist/schemas/security.js
|
|
11942
|
-
import { Schema as
|
|
12079
|
+
import { Schema as Schema97 } from "effect";
|
|
11943
12080
|
var SecuritySuccessResult, TwoFactorSetupResult, TwoFactorVerifyInput, TwoFactorVerifyResult, TwoFactorDisableResult, TwoFactorStatusResult, BackupCodesViewResult, BackupCodesRegenerateResult, EmailChangeRequestInput, EmailChangeRequestResult, EmailChangeConfirmInput, EmailChangeConfirmResult, OAuthAccount, GetOAuthProvidersResult, OAuthConnectInput, OAuthConnectResult, OAuthDisconnectInput, OAuthDisconnectResult, PasswordStatusResult, SetPasswordInput, SetPasswordResult, Passkey, PasskeyListResult, PasskeyRegisterStartResult, AuthenticatorAttestationResponse, RegistrationResponse, PasskeyRegisterVerifyInput, PasskeyRenameInput, PasskeyRenameResult, PasskeyDeleteInput, PasskeyDeleteResult, SecuritySession, GetSessionsResult, RevokeSessionInput, RevokeSessionResult, RevokeOtherSessionsResult, RenameSessionInput, RenameSessionResult, SecurityFactor, SecurityRecommendation, SecurityScoreResult, SecurityStatusQuickResult, SecurityAlertType, SecurityAlert, GetSecurityAlertsQuery, GetSecurityAlertsResult, UnreadAlertCountResult, MarkAlertReadInput, MarkAlertReadResult, MarkAllAlertsReadResult;
|
|
11944
12081
|
var init_security = __esm({
|
|
11945
12082
|
"../contract/dist/schemas/security.js"() {
|
|
11946
12083
|
"use strict";
|
|
11947
|
-
SecuritySuccessResult =
|
|
11948
|
-
success:
|
|
12084
|
+
SecuritySuccessResult = Schema97.Struct({
|
|
12085
|
+
success: Schema97.Boolean
|
|
11949
12086
|
});
|
|
11950
|
-
TwoFactorSetupResult =
|
|
11951
|
-
secret:
|
|
11952
|
-
uri:
|
|
11953
|
-
qrCode:
|
|
12087
|
+
TwoFactorSetupResult = Schema97.Struct({
|
|
12088
|
+
secret: Schema97.String,
|
|
12089
|
+
uri: Schema97.String,
|
|
12090
|
+
qrCode: Schema97.optional(Schema97.String)
|
|
11954
12091
|
});
|
|
11955
|
-
TwoFactorVerifyInput =
|
|
11956
|
-
code:
|
|
12092
|
+
TwoFactorVerifyInput = Schema97.Struct({
|
|
12093
|
+
code: Schema97.String
|
|
11957
12094
|
});
|
|
11958
|
-
TwoFactorVerifyResult =
|
|
11959
|
-
success:
|
|
11960
|
-
backupCodes:
|
|
12095
|
+
TwoFactorVerifyResult = Schema97.Struct({
|
|
12096
|
+
success: Schema97.Boolean,
|
|
12097
|
+
backupCodes: Schema97.Array(Schema97.String)
|
|
11961
12098
|
});
|
|
11962
12099
|
TwoFactorDisableResult = SecuritySuccessResult;
|
|
11963
|
-
TwoFactorStatusResult =
|
|
11964
|
-
enabled:
|
|
11965
|
-
backupCodesRemaining:
|
|
12100
|
+
TwoFactorStatusResult = Schema97.Struct({
|
|
12101
|
+
enabled: Schema97.Boolean,
|
|
12102
|
+
backupCodesRemaining: Schema97.Number
|
|
11966
12103
|
});
|
|
11967
|
-
BackupCodesViewResult =
|
|
11968
|
-
codes:
|
|
11969
|
-
remaining:
|
|
12104
|
+
BackupCodesViewResult = Schema97.Struct({
|
|
12105
|
+
codes: Schema97.Array(Schema97.String),
|
|
12106
|
+
remaining: Schema97.Number
|
|
11970
12107
|
});
|
|
11971
|
-
BackupCodesRegenerateResult =
|
|
11972
|
-
codes:
|
|
12108
|
+
BackupCodesRegenerateResult = Schema97.Struct({
|
|
12109
|
+
codes: Schema97.Array(Schema97.String)
|
|
11973
12110
|
});
|
|
11974
|
-
EmailChangeRequestInput =
|
|
11975
|
-
newEmail:
|
|
12111
|
+
EmailChangeRequestInput = Schema97.Struct({
|
|
12112
|
+
newEmail: Schema97.String
|
|
11976
12113
|
});
|
|
11977
|
-
EmailChangeRequestResult =
|
|
11978
|
-
success:
|
|
11979
|
-
message:
|
|
11980
|
-
expiresAt:
|
|
12114
|
+
EmailChangeRequestResult = Schema97.Struct({
|
|
12115
|
+
success: Schema97.Boolean,
|
|
12116
|
+
message: Schema97.String,
|
|
12117
|
+
expiresAt: Schema97.String
|
|
11981
12118
|
});
|
|
11982
|
-
EmailChangeConfirmInput =
|
|
11983
|
-
token:
|
|
12119
|
+
EmailChangeConfirmInput = Schema97.Struct({
|
|
12120
|
+
token: Schema97.String
|
|
11984
12121
|
});
|
|
11985
|
-
EmailChangeConfirmResult =
|
|
11986
|
-
success:
|
|
11987
|
-
newEmail:
|
|
12122
|
+
EmailChangeConfirmResult = Schema97.Struct({
|
|
12123
|
+
success: Schema97.Boolean,
|
|
12124
|
+
newEmail: Schema97.String
|
|
11988
12125
|
});
|
|
11989
|
-
OAuthAccount =
|
|
11990
|
-
provider:
|
|
11991
|
-
providerAccountId:
|
|
11992
|
-
email:
|
|
11993
|
-
connectedAt:
|
|
12126
|
+
OAuthAccount = Schema97.Struct({
|
|
12127
|
+
provider: Schema97.String,
|
|
12128
|
+
providerAccountId: Schema97.String,
|
|
12129
|
+
email: Schema97.NullOr(Schema97.String),
|
|
12130
|
+
connectedAt: Schema97.String
|
|
11994
12131
|
});
|
|
11995
|
-
GetOAuthProvidersResult =
|
|
11996
|
-
providers:
|
|
12132
|
+
GetOAuthProvidersResult = Schema97.Struct({
|
|
12133
|
+
providers: Schema97.Array(OAuthAccount)
|
|
11997
12134
|
});
|
|
11998
|
-
OAuthConnectInput =
|
|
11999
|
-
provider:
|
|
12135
|
+
OAuthConnectInput = Schema97.Struct({
|
|
12136
|
+
provider: Schema97.String
|
|
12000
12137
|
});
|
|
12001
|
-
OAuthConnectResult =
|
|
12002
|
-
url:
|
|
12138
|
+
OAuthConnectResult = Schema97.Struct({
|
|
12139
|
+
url: Schema97.String
|
|
12003
12140
|
});
|
|
12004
|
-
OAuthDisconnectInput =
|
|
12005
|
-
provider:
|
|
12141
|
+
OAuthDisconnectInput = Schema97.Struct({
|
|
12142
|
+
provider: Schema97.String
|
|
12006
12143
|
});
|
|
12007
12144
|
OAuthDisconnectResult = SecuritySuccessResult;
|
|
12008
|
-
PasswordStatusResult =
|
|
12009
|
-
hasPassword:
|
|
12145
|
+
PasswordStatusResult = Schema97.Struct({
|
|
12146
|
+
hasPassword: Schema97.Boolean
|
|
12010
12147
|
});
|
|
12011
|
-
SetPasswordInput =
|
|
12012
|
-
password:
|
|
12148
|
+
SetPasswordInput = Schema97.Struct({
|
|
12149
|
+
password: Schema97.String
|
|
12013
12150
|
});
|
|
12014
12151
|
SetPasswordResult = SecuritySuccessResult;
|
|
12015
|
-
Passkey =
|
|
12016
|
-
id:
|
|
12017
|
-
name:
|
|
12018
|
-
createdAt:
|
|
12019
|
-
lastUsedAt:
|
|
12020
|
-
});
|
|
12021
|
-
PasskeyListResult =
|
|
12022
|
-
passkeys:
|
|
12023
|
-
});
|
|
12024
|
-
PasskeyRegisterStartResult =
|
|
12025
|
-
challenge:
|
|
12026
|
-
rp:
|
|
12027
|
-
name:
|
|
12028
|
-
id:
|
|
12029
|
-
}),
|
|
12030
|
-
user:
|
|
12031
|
-
id:
|
|
12032
|
-
name:
|
|
12033
|
-
displayName:
|
|
12034
|
-
}),
|
|
12035
|
-
pubKeyCredParams:
|
|
12036
|
-
type:
|
|
12037
|
-
alg:
|
|
12152
|
+
Passkey = Schema97.Struct({
|
|
12153
|
+
id: Schema97.String,
|
|
12154
|
+
name: Schema97.NullOr(Schema97.String),
|
|
12155
|
+
createdAt: Schema97.String,
|
|
12156
|
+
lastUsedAt: Schema97.NullOr(Schema97.String)
|
|
12157
|
+
});
|
|
12158
|
+
PasskeyListResult = Schema97.Struct({
|
|
12159
|
+
passkeys: Schema97.Array(Passkey)
|
|
12160
|
+
});
|
|
12161
|
+
PasskeyRegisterStartResult = Schema97.Struct({
|
|
12162
|
+
challenge: Schema97.String,
|
|
12163
|
+
rp: Schema97.Struct({
|
|
12164
|
+
name: Schema97.String,
|
|
12165
|
+
id: Schema97.String
|
|
12166
|
+
}),
|
|
12167
|
+
user: Schema97.Struct({
|
|
12168
|
+
id: Schema97.String,
|
|
12169
|
+
name: Schema97.String,
|
|
12170
|
+
displayName: Schema97.String
|
|
12171
|
+
}),
|
|
12172
|
+
pubKeyCredParams: Schema97.Array(Schema97.Struct({
|
|
12173
|
+
type: Schema97.Literal("public-key"),
|
|
12174
|
+
alg: Schema97.Number
|
|
12038
12175
|
})),
|
|
12039
|
-
timeout:
|
|
12040
|
-
attestation:
|
|
12041
|
-
excludeCredentials:
|
|
12042
|
-
type:
|
|
12043
|
-
id:
|
|
12044
|
-
transports:
|
|
12176
|
+
timeout: Schema97.optional(Schema97.Number),
|
|
12177
|
+
attestation: Schema97.optional(Schema97.String),
|
|
12178
|
+
excludeCredentials: Schema97.optional(Schema97.Array(Schema97.Struct({
|
|
12179
|
+
type: Schema97.Literal("public-key"),
|
|
12180
|
+
id: Schema97.String,
|
|
12181
|
+
transports: Schema97.optional(Schema97.Array(Schema97.String))
|
|
12045
12182
|
}))),
|
|
12046
|
-
authenticatorSelection:
|
|
12047
|
-
authenticatorAttachment:
|
|
12048
|
-
requireResidentKey:
|
|
12049
|
-
residentKey:
|
|
12050
|
-
userVerification:
|
|
12183
|
+
authenticatorSelection: Schema97.optional(Schema97.Struct({
|
|
12184
|
+
authenticatorAttachment: Schema97.optional(Schema97.Literal("platform", "cross-platform")),
|
|
12185
|
+
requireResidentKey: Schema97.optional(Schema97.Boolean),
|
|
12186
|
+
residentKey: Schema97.optional(Schema97.Literal("discouraged", "preferred", "required")),
|
|
12187
|
+
userVerification: Schema97.optional(Schema97.Literal("discouraged", "preferred", "required"))
|
|
12051
12188
|
}))
|
|
12052
12189
|
});
|
|
12053
|
-
AuthenticatorAttestationResponse =
|
|
12054
|
-
key:
|
|
12055
|
-
value:
|
|
12190
|
+
AuthenticatorAttestationResponse = Schema97.Record({
|
|
12191
|
+
key: Schema97.String,
|
|
12192
|
+
value: Schema97.Unknown
|
|
12056
12193
|
});
|
|
12057
|
-
RegistrationResponse =
|
|
12058
|
-
key:
|
|
12059
|
-
value:
|
|
12194
|
+
RegistrationResponse = Schema97.Record({
|
|
12195
|
+
key: Schema97.String,
|
|
12196
|
+
value: Schema97.Unknown
|
|
12060
12197
|
});
|
|
12061
|
-
PasskeyRegisterVerifyInput =
|
|
12062
|
-
credential:
|
|
12063
|
-
deviceName:
|
|
12198
|
+
PasskeyRegisterVerifyInput = Schema97.Struct({
|
|
12199
|
+
credential: Schema97.Record({ key: Schema97.String, value: Schema97.Unknown }),
|
|
12200
|
+
deviceName: Schema97.optional(Schema97.String)
|
|
12064
12201
|
});
|
|
12065
|
-
PasskeyRenameInput =
|
|
12066
|
-
passkeyId:
|
|
12067
|
-
name:
|
|
12202
|
+
PasskeyRenameInput = Schema97.Struct({
|
|
12203
|
+
passkeyId: Schema97.String,
|
|
12204
|
+
name: Schema97.String
|
|
12068
12205
|
});
|
|
12069
12206
|
PasskeyRenameResult = SecuritySuccessResult;
|
|
12070
|
-
PasskeyDeleteInput =
|
|
12071
|
-
passkeyId:
|
|
12207
|
+
PasskeyDeleteInput = Schema97.Struct({
|
|
12208
|
+
passkeyId: Schema97.String
|
|
12072
12209
|
});
|
|
12073
12210
|
PasskeyDeleteResult = SecuritySuccessResult;
|
|
12074
|
-
SecuritySession =
|
|
12075
|
-
id:
|
|
12076
|
-
name:
|
|
12077
|
-
ipAddress:
|
|
12078
|
-
userAgent:
|
|
12079
|
-
createdAt:
|
|
12080
|
-
lastActiveAt:
|
|
12081
|
-
isCurrent:
|
|
12211
|
+
SecuritySession = Schema97.Struct({
|
|
12212
|
+
id: Schema97.String,
|
|
12213
|
+
name: Schema97.NullOr(Schema97.String),
|
|
12214
|
+
ipAddress: Schema97.NullOr(Schema97.String),
|
|
12215
|
+
userAgent: Schema97.NullOr(Schema97.String),
|
|
12216
|
+
createdAt: Schema97.String,
|
|
12217
|
+
lastActiveAt: Schema97.NullOr(Schema97.String),
|
|
12218
|
+
isCurrent: Schema97.Boolean
|
|
12082
12219
|
});
|
|
12083
|
-
GetSessionsResult =
|
|
12084
|
-
sessions:
|
|
12220
|
+
GetSessionsResult = Schema97.Struct({
|
|
12221
|
+
sessions: Schema97.Array(SecuritySession)
|
|
12085
12222
|
});
|
|
12086
|
-
RevokeSessionInput =
|
|
12087
|
-
sessionId:
|
|
12223
|
+
RevokeSessionInput = Schema97.Struct({
|
|
12224
|
+
sessionId: Schema97.String
|
|
12088
12225
|
});
|
|
12089
12226
|
RevokeSessionResult = SecuritySuccessResult;
|
|
12090
|
-
RevokeOtherSessionsResult =
|
|
12091
|
-
revokedCount:
|
|
12227
|
+
RevokeOtherSessionsResult = Schema97.Struct({
|
|
12228
|
+
revokedCount: Schema97.Number
|
|
12092
12229
|
});
|
|
12093
|
-
RenameSessionInput =
|
|
12094
|
-
sessionId:
|
|
12095
|
-
name:
|
|
12230
|
+
RenameSessionInput = Schema97.Struct({
|
|
12231
|
+
sessionId: Schema97.String,
|
|
12232
|
+
name: Schema97.String
|
|
12096
12233
|
});
|
|
12097
12234
|
RenameSessionResult = SecuritySuccessResult;
|
|
12098
|
-
SecurityFactor =
|
|
12099
|
-
name:
|
|
12100
|
-
enabled:
|
|
12101
|
-
points:
|
|
12102
|
-
maxPoints:
|
|
12103
|
-
});
|
|
12104
|
-
SecurityRecommendation =
|
|
12105
|
-
id:
|
|
12106
|
-
title:
|
|
12107
|
-
description:
|
|
12108
|
-
priority:
|
|
12109
|
-
action:
|
|
12110
|
-
});
|
|
12111
|
-
SecurityScoreResult =
|
|
12112
|
-
score:
|
|
12113
|
-
factors:
|
|
12114
|
-
recommendations:
|
|
12115
|
-
});
|
|
12116
|
-
SecurityStatusQuickResult =
|
|
12117
|
-
score:
|
|
12118
|
-
level:
|
|
12119
|
-
hasPassword:
|
|
12120
|
-
hasTwoFactor:
|
|
12121
|
-
hasPasskeys:
|
|
12122
|
-
sessionCount:
|
|
12123
|
-
});
|
|
12124
|
-
SecurityAlertType =
|
|
12125
|
-
SecurityAlert =
|
|
12126
|
-
id:
|
|
12235
|
+
SecurityFactor = Schema97.Struct({
|
|
12236
|
+
name: Schema97.String,
|
|
12237
|
+
enabled: Schema97.Boolean,
|
|
12238
|
+
points: Schema97.Number,
|
|
12239
|
+
maxPoints: Schema97.Number
|
|
12240
|
+
});
|
|
12241
|
+
SecurityRecommendation = Schema97.Struct({
|
|
12242
|
+
id: Schema97.String,
|
|
12243
|
+
title: Schema97.String,
|
|
12244
|
+
description: Schema97.String,
|
|
12245
|
+
priority: Schema97.Literal("low", "medium", "high"),
|
|
12246
|
+
action: Schema97.String
|
|
12247
|
+
});
|
|
12248
|
+
SecurityScoreResult = Schema97.Struct({
|
|
12249
|
+
score: Schema97.Number,
|
|
12250
|
+
factors: Schema97.Array(SecurityFactor),
|
|
12251
|
+
recommendations: Schema97.Array(SecurityRecommendation)
|
|
12252
|
+
});
|
|
12253
|
+
SecurityStatusQuickResult = Schema97.Struct({
|
|
12254
|
+
score: Schema97.Number,
|
|
12255
|
+
level: Schema97.Literal("low", "medium", "high", "excellent"),
|
|
12256
|
+
hasPassword: Schema97.Boolean,
|
|
12257
|
+
hasTwoFactor: Schema97.Boolean,
|
|
12258
|
+
hasPasskeys: Schema97.Boolean,
|
|
12259
|
+
sessionCount: Schema97.Number
|
|
12260
|
+
});
|
|
12261
|
+
SecurityAlertType = Schema97.Literal("password_changed", "email_changed", "two_factor_enabled", "two_factor_disabled", "new_device", "suspicious_login", "account_locked", "account_unlocked");
|
|
12262
|
+
SecurityAlert = Schema97.Struct({
|
|
12263
|
+
id: Schema97.String,
|
|
12127
12264
|
type: SecurityAlertType,
|
|
12128
|
-
title:
|
|
12129
|
-
description:
|
|
12130
|
-
metadata:
|
|
12131
|
-
read:
|
|
12132
|
-
createdAt:
|
|
12265
|
+
title: Schema97.String,
|
|
12266
|
+
description: Schema97.NullOr(Schema97.String),
|
|
12267
|
+
metadata: Schema97.NullOr(Schema97.Record({ key: Schema97.String, value: Schema97.Unknown })),
|
|
12268
|
+
read: Schema97.Boolean,
|
|
12269
|
+
createdAt: Schema97.String
|
|
12133
12270
|
});
|
|
12134
|
-
GetSecurityAlertsQuery =
|
|
12135
|
-
limit:
|
|
12136
|
-
unreadOnly:
|
|
12271
|
+
GetSecurityAlertsQuery = Schema97.Struct({
|
|
12272
|
+
limit: Schema97.optional(Schema97.String),
|
|
12273
|
+
unreadOnly: Schema97.optional(Schema97.String)
|
|
12137
12274
|
});
|
|
12138
|
-
GetSecurityAlertsResult =
|
|
12139
|
-
alerts:
|
|
12275
|
+
GetSecurityAlertsResult = Schema97.Struct({
|
|
12276
|
+
alerts: Schema97.Array(SecurityAlert)
|
|
12140
12277
|
});
|
|
12141
|
-
UnreadAlertCountResult =
|
|
12142
|
-
count:
|
|
12278
|
+
UnreadAlertCountResult = Schema97.Struct({
|
|
12279
|
+
count: Schema97.Number
|
|
12143
12280
|
});
|
|
12144
|
-
MarkAlertReadInput =
|
|
12145
|
-
alertId:
|
|
12281
|
+
MarkAlertReadInput = Schema97.Struct({
|
|
12282
|
+
alertId: Schema97.String
|
|
12146
12283
|
});
|
|
12147
12284
|
MarkAlertReadResult = SecuritySuccessResult;
|
|
12148
12285
|
MarkAllAlertsReadResult = SecuritySuccessResult;
|
|
@@ -12423,364 +12560,383 @@ var init_security2 = __esm({
|
|
|
12423
12560
|
});
|
|
12424
12561
|
|
|
12425
12562
|
// ../contract/dist/schemas/service-tokens.js
|
|
12426
|
-
import { Schema as
|
|
12563
|
+
import { Schema as Schema98 } from "effect";
|
|
12427
12564
|
var ResourceScope, ServiceTokenView, ServiceTokenRequestView, OrgIdParams, OrgTokenIdParams, OrgRequestIdParams, ListServiceTokensQuery, CreateServiceTokenInput, SubmitServiceTokenRequestInput, DenyServiceTokenRequestInput, CreateServiceTokenResult, ListServiceTokensResult, GetServiceTokenResult, RevokeServiceTokenResult, RotateServiceTokenResult, ListServiceTokenRequestsResult, ServiceTokenRequestResult, MintServiceTokenRequestResult;
|
|
12428
12565
|
var init_service_tokens = __esm({
|
|
12429
12566
|
"../contract/dist/schemas/service-tokens.js"() {
|
|
12430
12567
|
"use strict";
|
|
12431
|
-
ResourceScope =
|
|
12432
|
-
orgId:
|
|
12433
|
-
projectId:
|
|
12434
|
-
envIds:
|
|
12568
|
+
ResourceScope = Schema98.NullOr(Schema98.Struct({
|
|
12569
|
+
orgId: Schema98.optional(Schema98.String),
|
|
12570
|
+
projectId: Schema98.optional(Schema98.String),
|
|
12571
|
+
envIds: Schema98.optional(Schema98.Array(Schema98.String))
|
|
12435
12572
|
}));
|
|
12436
|
-
ServiceTokenView =
|
|
12437
|
-
id:
|
|
12438
|
-
orgId:
|
|
12439
|
-
name:
|
|
12440
|
-
tokenPrefix:
|
|
12441
|
-
projectId:
|
|
12442
|
-
environmentId:
|
|
12573
|
+
ServiceTokenView = Schema98.Struct({
|
|
12574
|
+
id: Schema98.String,
|
|
12575
|
+
orgId: Schema98.String,
|
|
12576
|
+
name: Schema98.String,
|
|
12577
|
+
tokenPrefix: Schema98.NullOr(Schema98.String),
|
|
12578
|
+
projectId: Schema98.NullOr(Schema98.String),
|
|
12579
|
+
environmentId: Schema98.NullOr(Schema98.String),
|
|
12443
12580
|
resourceScope: ResourceScope,
|
|
12444
|
-
scopes:
|
|
12445
|
-
ipAllowlist:
|
|
12446
|
-
createdBy:
|
|
12447
|
-
createdAt:
|
|
12448
|
-
expiresAt:
|
|
12449
|
-
lastUsedAt:
|
|
12450
|
-
revokedAt:
|
|
12451
|
-
revokedBy:
|
|
12452
|
-
useCount:
|
|
12581
|
+
scopes: Schema98.NullOr(Schema98.Array(Schema98.String)),
|
|
12582
|
+
ipAllowlist: Schema98.NullOr(Schema98.Array(Schema98.String)),
|
|
12583
|
+
createdBy: Schema98.NullOr(Schema98.String),
|
|
12584
|
+
createdAt: Schema98.String,
|
|
12585
|
+
expiresAt: Schema98.NullOr(Schema98.String),
|
|
12586
|
+
lastUsedAt: Schema98.NullOr(Schema98.String),
|
|
12587
|
+
revokedAt: Schema98.NullOr(Schema98.String),
|
|
12588
|
+
revokedBy: Schema98.NullOr(Schema98.String),
|
|
12589
|
+
useCount: Schema98.Number
|
|
12453
12590
|
});
|
|
12454
|
-
ServiceTokenRequestView =
|
|
12455
|
-
id:
|
|
12456
|
-
orgId:
|
|
12457
|
-
requestedBy:
|
|
12458
|
-
status:
|
|
12459
|
-
tokenName:
|
|
12460
|
-
scopes:
|
|
12461
|
-
projectId:
|
|
12462
|
-
environmentId:
|
|
12591
|
+
ServiceTokenRequestView = Schema98.Struct({
|
|
12592
|
+
id: Schema98.String,
|
|
12593
|
+
orgId: Schema98.String,
|
|
12594
|
+
requestedBy: Schema98.String,
|
|
12595
|
+
status: Schema98.Literal("pending", "approved", "denied", "minted", "cancelled"),
|
|
12596
|
+
tokenName: Schema98.String,
|
|
12597
|
+
scopes: Schema98.Array(Schema98.String),
|
|
12598
|
+
projectId: Schema98.NullOr(Schema98.String),
|
|
12599
|
+
environmentId: Schema98.NullOr(Schema98.String),
|
|
12463
12600
|
resourceScope: ResourceScope,
|
|
12464
|
-
ipAllowlist:
|
|
12465
|
-
expiresInDays:
|
|
12466
|
-
approvedBy:
|
|
12467
|
-
approvedAt:
|
|
12468
|
-
deniedReason:
|
|
12469
|
-
mintedTokenId:
|
|
12470
|
-
createdAt:
|
|
12471
|
-
updatedAt:
|
|
12472
|
-
});
|
|
12473
|
-
OrgIdParams = Schema97.Struct({ orgId: Schema97.String });
|
|
12474
|
-
OrgTokenIdParams = Schema97.Struct({ orgId: Schema97.String, tokenId: Schema97.String });
|
|
12475
|
-
OrgRequestIdParams = Schema97.Struct({ orgId: Schema97.String, id: Schema97.String });
|
|
12476
|
-
ListServiceTokensQuery = Schema97.Struct({
|
|
12477
|
-
includeRevoked: Schema97.optional(Schema97.Literal("true", "false"))
|
|
12601
|
+
ipAllowlist: Schema98.NullOr(Schema98.Array(Schema98.String)),
|
|
12602
|
+
expiresInDays: Schema98.NullOr(Schema98.Number),
|
|
12603
|
+
approvedBy: Schema98.NullOr(Schema98.String),
|
|
12604
|
+
approvedAt: Schema98.NullOr(Schema98.String),
|
|
12605
|
+
deniedReason: Schema98.NullOr(Schema98.String),
|
|
12606
|
+
mintedTokenId: Schema98.NullOr(Schema98.String),
|
|
12607
|
+
createdAt: Schema98.String,
|
|
12608
|
+
updatedAt: Schema98.String
|
|
12478
12609
|
});
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12610
|
+
OrgIdParams = Schema98.Struct({ orgId: Schema98.String });
|
|
12611
|
+
OrgTokenIdParams = Schema98.Struct({ orgId: Schema98.String, tokenId: Schema98.String });
|
|
12612
|
+
OrgRequestIdParams = Schema98.Struct({ orgId: Schema98.String, id: Schema98.String });
|
|
12613
|
+
ListServiceTokensQuery = Schema98.Struct({
|
|
12614
|
+
includeRevoked: Schema98.optional(Schema98.Literal("true", "false"))
|
|
12615
|
+
});
|
|
12616
|
+
CreateServiceTokenInput = Schema98.Struct({
|
|
12617
|
+
name: Schema98.String,
|
|
12618
|
+
scopes: Schema98.Array(Schema98.String),
|
|
12619
|
+
projectId: Schema98.optional(Schema98.NullOr(Schema98.String)),
|
|
12620
|
+
environmentId: Schema98.optional(Schema98.NullOr(Schema98.String)),
|
|
12621
|
+
resourceScope: Schema98.optional(ResourceScope),
|
|
12622
|
+
ipAllowlist: Schema98.optional(Schema98.NullOr(Schema98.Array(Schema98.String))),
|
|
12623
|
+
expiresInDays: Schema98.optional(Schema98.NullOr(Schema98.Number))
|
|
12624
|
+
});
|
|
12625
|
+
SubmitServiceTokenRequestInput = Schema98.Struct({
|
|
12626
|
+
name: Schema98.String,
|
|
12627
|
+
scopes: Schema98.Array(Schema98.String),
|
|
12628
|
+
projectId: Schema98.optional(Schema98.NullOr(Schema98.String)),
|
|
12629
|
+
environmentId: Schema98.optional(Schema98.NullOr(Schema98.String)),
|
|
12630
|
+
resourceScope: Schema98.optional(ResourceScope),
|
|
12631
|
+
ipAllowlist: Schema98.optional(Schema98.NullOr(Schema98.Array(Schema98.String))),
|
|
12632
|
+
expiresInDays: Schema98.optional(Schema98.NullOr(Schema98.Number))
|
|
12633
|
+
});
|
|
12634
|
+
DenyServiceTokenRequestInput = Schema98.Struct({ reason: Schema98.String });
|
|
12635
|
+
CreateServiceTokenResult = Schema98.Struct({
|
|
12636
|
+
token: Schema98.String,
|
|
12500
12637
|
view: ServiceTokenView
|
|
12501
12638
|
});
|
|
12502
|
-
ListServiceTokensResult =
|
|
12503
|
-
GetServiceTokenResult =
|
|
12504
|
-
RevokeServiceTokenResult =
|
|
12505
|
-
RotateServiceTokenResult =
|
|
12506
|
-
token:
|
|
12639
|
+
ListServiceTokensResult = Schema98.Struct({ tokens: Schema98.Array(ServiceTokenView) });
|
|
12640
|
+
GetServiceTokenResult = Schema98.Struct({ view: ServiceTokenView });
|
|
12641
|
+
RevokeServiceTokenResult = Schema98.Struct({ view: ServiceTokenView });
|
|
12642
|
+
RotateServiceTokenResult = Schema98.Struct({
|
|
12643
|
+
token: Schema98.String,
|
|
12507
12644
|
oldView: ServiceTokenView,
|
|
12508
12645
|
newView: ServiceTokenView
|
|
12509
12646
|
});
|
|
12510
|
-
ListServiceTokenRequestsResult =
|
|
12511
|
-
requests:
|
|
12647
|
+
ListServiceTokenRequestsResult = Schema98.Struct({
|
|
12648
|
+
requests: Schema98.Array(ServiceTokenRequestView)
|
|
12512
12649
|
});
|
|
12513
|
-
ServiceTokenRequestResult =
|
|
12514
|
-
MintServiceTokenRequestResult =
|
|
12515
|
-
token:
|
|
12650
|
+
ServiceTokenRequestResult = Schema98.Struct({ request: ServiceTokenRequestView });
|
|
12651
|
+
MintServiceTokenRequestResult = Schema98.Struct({
|
|
12652
|
+
token: Schema98.String,
|
|
12516
12653
|
request: ServiceTokenRequestView
|
|
12517
12654
|
});
|
|
12518
12655
|
}
|
|
12519
12656
|
});
|
|
12520
12657
|
|
|
12521
12658
|
// ../contract/dist/schemas/session-replay.js
|
|
12522
|
-
import { Schema as
|
|
12659
|
+
import { Schema as Schema99 } from "effect";
|
|
12523
12660
|
var SessionMarker, RageClick, DeadClick, NetworkRequest, ConsoleLog, SessionReplaySummary, SessionReplayFull, ListSessionsQuery2, ListSessionsResult, SessionStatsResult, DeleteSessionResult;
|
|
12524
12661
|
var init_session_replay = __esm({
|
|
12525
12662
|
"../contract/dist/schemas/session-replay.js"() {
|
|
12526
12663
|
"use strict";
|
|
12527
|
-
SessionMarker =
|
|
12528
|
-
type:
|
|
12529
|
-
timestamp:
|
|
12530
|
-
payload:
|
|
12531
|
-
});
|
|
12532
|
-
RageClick =
|
|
12533
|
-
timestamp:
|
|
12534
|
-
element:
|
|
12535
|
-
selector:
|
|
12536
|
-
clickCount:
|
|
12537
|
-
duration:
|
|
12538
|
-
x:
|
|
12539
|
-
y:
|
|
12540
|
-
});
|
|
12541
|
-
DeadClick =
|
|
12542
|
-
timestamp:
|
|
12543
|
-
element:
|
|
12544
|
-
selector:
|
|
12545
|
-
expectedAction:
|
|
12546
|
-
x:
|
|
12547
|
-
y:
|
|
12548
|
-
waitTime:
|
|
12549
|
-
});
|
|
12550
|
-
NetworkRequest =
|
|
12551
|
-
timestamp:
|
|
12552
|
-
method:
|
|
12553
|
-
url:
|
|
12554
|
-
status:
|
|
12555
|
-
duration:
|
|
12556
|
-
});
|
|
12557
|
-
ConsoleLog =
|
|
12558
|
-
timestamp:
|
|
12559
|
-
level:
|
|
12560
|
-
message:
|
|
12561
|
-
stack:
|
|
12562
|
-
});
|
|
12563
|
-
SessionReplaySummary =
|
|
12564
|
-
id:
|
|
12565
|
-
sessionId:
|
|
12566
|
-
userId:
|
|
12567
|
-
url:
|
|
12568
|
-
userAgent:
|
|
12569
|
-
screenWidth:
|
|
12570
|
-
screenHeight:
|
|
12571
|
-
devicePixelRatio:
|
|
12572
|
-
timezone:
|
|
12573
|
-
language:
|
|
12574
|
-
duration:
|
|
12575
|
-
eventCount:
|
|
12576
|
-
bytesStored:
|
|
12577
|
-
hasErrors:
|
|
12578
|
-
errorIds:
|
|
12579
|
-
hasRageClicks:
|
|
12580
|
-
hasDeadClicks:
|
|
12581
|
-
rageClickCount:
|
|
12582
|
-
deadClickCount:
|
|
12583
|
-
networkRequestCount:
|
|
12584
|
-
consoleLogCount:
|
|
12585
|
-
markers:
|
|
12586
|
-
isComplete:
|
|
12587
|
-
startedAt:
|
|
12588
|
-
endedAt:
|
|
12589
|
-
createdAt:
|
|
12590
|
-
updatedAt:
|
|
12591
|
-
});
|
|
12592
|
-
SessionReplayFull =
|
|
12593
|
-
id:
|
|
12594
|
-
sessionId:
|
|
12595
|
-
userId:
|
|
12596
|
-
url:
|
|
12597
|
-
userAgent:
|
|
12598
|
-
screenWidth:
|
|
12599
|
-
screenHeight:
|
|
12600
|
-
devicePixelRatio:
|
|
12601
|
-
timezone:
|
|
12602
|
-
language:
|
|
12603
|
-
duration:
|
|
12604
|
-
eventCount:
|
|
12605
|
-
bytesStored:
|
|
12606
|
-
hasErrors:
|
|
12607
|
-
errorIds:
|
|
12608
|
-
hasRageClicks:
|
|
12609
|
-
hasDeadClicks:
|
|
12610
|
-
rageClickCount:
|
|
12611
|
-
deadClickCount:
|
|
12612
|
-
networkRequestCount:
|
|
12613
|
-
consoleLogCount:
|
|
12614
|
-
markers:
|
|
12615
|
-
isComplete:
|
|
12616
|
-
startedAt:
|
|
12617
|
-
endedAt:
|
|
12618
|
-
createdAt:
|
|
12619
|
-
updatedAt:
|
|
12620
|
-
events:
|
|
12621
|
-
rageClicks:
|
|
12622
|
-
deadClicks:
|
|
12623
|
-
networkRequests:
|
|
12624
|
-
consoleLogs:
|
|
12625
|
-
});
|
|
12626
|
-
ListSessionsQuery2 =
|
|
12627
|
-
hasErrors:
|
|
12628
|
-
hasRageClicks:
|
|
12629
|
-
hasDeadClicks:
|
|
12630
|
-
userId:
|
|
12631
|
-
startDate:
|
|
12632
|
-
endDate:
|
|
12633
|
-
limit:
|
|
12634
|
-
offset:
|
|
12635
|
-
});
|
|
12636
|
-
ListSessionsResult =
|
|
12637
|
-
sessions:
|
|
12638
|
-
total:
|
|
12639
|
-
hasMore:
|
|
12640
|
-
});
|
|
12641
|
-
SessionStatsResult =
|
|
12642
|
-
totalSessions:
|
|
12643
|
-
sessionsThisMonth:
|
|
12644
|
-
sessionsThisWeek:
|
|
12645
|
-
sessionsWithErrors:
|
|
12646
|
-
sessionsWithRageClicks:
|
|
12647
|
-
totalStorageBytes:
|
|
12648
|
-
});
|
|
12649
|
-
DeleteSessionResult =
|
|
12650
|
-
success:
|
|
12664
|
+
SessionMarker = Schema99.Struct({
|
|
12665
|
+
type: Schema99.String,
|
|
12666
|
+
timestamp: Schema99.Number,
|
|
12667
|
+
payload: Schema99.optional(Schema99.Record({ key: Schema99.String, value: Schema99.Unknown }))
|
|
12668
|
+
});
|
|
12669
|
+
RageClick = Schema99.Struct({
|
|
12670
|
+
timestamp: Schema99.Number,
|
|
12671
|
+
element: Schema99.String,
|
|
12672
|
+
selector: Schema99.optional(Schema99.String),
|
|
12673
|
+
clickCount: Schema99.Number,
|
|
12674
|
+
duration: Schema99.optional(Schema99.Number),
|
|
12675
|
+
x: Schema99.optional(Schema99.Number),
|
|
12676
|
+
y: Schema99.optional(Schema99.Number)
|
|
12677
|
+
});
|
|
12678
|
+
DeadClick = Schema99.Struct({
|
|
12679
|
+
timestamp: Schema99.Number,
|
|
12680
|
+
element: Schema99.String,
|
|
12681
|
+
selector: Schema99.optional(Schema99.String),
|
|
12682
|
+
expectedAction: Schema99.optional(Schema99.String),
|
|
12683
|
+
x: Schema99.optional(Schema99.Number),
|
|
12684
|
+
y: Schema99.optional(Schema99.Number),
|
|
12685
|
+
waitTime: Schema99.optional(Schema99.Number)
|
|
12686
|
+
});
|
|
12687
|
+
NetworkRequest = Schema99.Struct({
|
|
12688
|
+
timestamp: Schema99.Number,
|
|
12689
|
+
method: Schema99.String,
|
|
12690
|
+
url: Schema99.String,
|
|
12691
|
+
status: Schema99.Number,
|
|
12692
|
+
duration: Schema99.Number
|
|
12693
|
+
});
|
|
12694
|
+
ConsoleLog = Schema99.Struct({
|
|
12695
|
+
timestamp: Schema99.Number,
|
|
12696
|
+
level: Schema99.Literal("log", "info", "warn", "error"),
|
|
12697
|
+
message: Schema99.String,
|
|
12698
|
+
stack: Schema99.optional(Schema99.String)
|
|
12699
|
+
});
|
|
12700
|
+
SessionReplaySummary = Schema99.Struct({
|
|
12701
|
+
id: Schema99.String,
|
|
12702
|
+
sessionId: Schema99.String,
|
|
12703
|
+
userId: Schema99.NullOr(Schema99.String),
|
|
12704
|
+
url: Schema99.NullOr(Schema99.String),
|
|
12705
|
+
userAgent: Schema99.NullOr(Schema99.String),
|
|
12706
|
+
screenWidth: Schema99.NullOr(Schema99.Number),
|
|
12707
|
+
screenHeight: Schema99.NullOr(Schema99.Number),
|
|
12708
|
+
devicePixelRatio: Schema99.NullOr(Schema99.Number),
|
|
12709
|
+
timezone: Schema99.NullOr(Schema99.String),
|
|
12710
|
+
language: Schema99.NullOr(Schema99.String),
|
|
12711
|
+
duration: Schema99.NullOr(Schema99.Number),
|
|
12712
|
+
eventCount: Schema99.Number,
|
|
12713
|
+
bytesStored: Schema99.Number,
|
|
12714
|
+
hasErrors: Schema99.Boolean,
|
|
12715
|
+
errorIds: Schema99.Array(Schema99.String),
|
|
12716
|
+
hasRageClicks: Schema99.Boolean,
|
|
12717
|
+
hasDeadClicks: Schema99.Boolean,
|
|
12718
|
+
rageClickCount: Schema99.Number,
|
|
12719
|
+
deadClickCount: Schema99.Number,
|
|
12720
|
+
networkRequestCount: Schema99.Number,
|
|
12721
|
+
consoleLogCount: Schema99.Number,
|
|
12722
|
+
markers: Schema99.Array(SessionMarker),
|
|
12723
|
+
isComplete: Schema99.Boolean,
|
|
12724
|
+
startedAt: Schema99.String,
|
|
12725
|
+
endedAt: Schema99.NullOr(Schema99.String),
|
|
12726
|
+
createdAt: Schema99.String,
|
|
12727
|
+
updatedAt: Schema99.String
|
|
12728
|
+
});
|
|
12729
|
+
SessionReplayFull = Schema99.Struct({
|
|
12730
|
+
id: Schema99.String,
|
|
12731
|
+
sessionId: Schema99.String,
|
|
12732
|
+
userId: Schema99.NullOr(Schema99.String),
|
|
12733
|
+
url: Schema99.NullOr(Schema99.String),
|
|
12734
|
+
userAgent: Schema99.NullOr(Schema99.String),
|
|
12735
|
+
screenWidth: Schema99.NullOr(Schema99.Number),
|
|
12736
|
+
screenHeight: Schema99.NullOr(Schema99.Number),
|
|
12737
|
+
devicePixelRatio: Schema99.NullOr(Schema99.Number),
|
|
12738
|
+
timezone: Schema99.NullOr(Schema99.String),
|
|
12739
|
+
language: Schema99.NullOr(Schema99.String),
|
|
12740
|
+
duration: Schema99.NullOr(Schema99.Number),
|
|
12741
|
+
eventCount: Schema99.Number,
|
|
12742
|
+
bytesStored: Schema99.Number,
|
|
12743
|
+
hasErrors: Schema99.Boolean,
|
|
12744
|
+
errorIds: Schema99.Array(Schema99.String),
|
|
12745
|
+
hasRageClicks: Schema99.Boolean,
|
|
12746
|
+
hasDeadClicks: Schema99.Boolean,
|
|
12747
|
+
rageClickCount: Schema99.Number,
|
|
12748
|
+
deadClickCount: Schema99.Number,
|
|
12749
|
+
networkRequestCount: Schema99.Number,
|
|
12750
|
+
consoleLogCount: Schema99.Number,
|
|
12751
|
+
markers: Schema99.Array(SessionMarker),
|
|
12752
|
+
isComplete: Schema99.Boolean,
|
|
12753
|
+
startedAt: Schema99.String,
|
|
12754
|
+
endedAt: Schema99.NullOr(Schema99.String),
|
|
12755
|
+
createdAt: Schema99.String,
|
|
12756
|
+
updatedAt: Schema99.String,
|
|
12757
|
+
events: Schema99.Array(Schema99.Record({ key: Schema99.String, value: Schema99.Unknown })),
|
|
12758
|
+
rageClicks: Schema99.Array(RageClick),
|
|
12759
|
+
deadClicks: Schema99.Array(DeadClick),
|
|
12760
|
+
networkRequests: Schema99.Array(NetworkRequest),
|
|
12761
|
+
consoleLogs: Schema99.Array(ConsoleLog)
|
|
12762
|
+
});
|
|
12763
|
+
ListSessionsQuery2 = Schema99.Struct({
|
|
12764
|
+
hasErrors: Schema99.optional(Schema99.String),
|
|
12765
|
+
hasRageClicks: Schema99.optional(Schema99.String),
|
|
12766
|
+
hasDeadClicks: Schema99.optional(Schema99.String),
|
|
12767
|
+
userId: Schema99.optional(Schema99.String),
|
|
12768
|
+
startDate: Schema99.optional(Schema99.String),
|
|
12769
|
+
endDate: Schema99.optional(Schema99.String),
|
|
12770
|
+
limit: Schema99.optional(Schema99.String),
|
|
12771
|
+
offset: Schema99.optional(Schema99.String)
|
|
12772
|
+
});
|
|
12773
|
+
ListSessionsResult = Schema99.Struct({
|
|
12774
|
+
sessions: Schema99.Array(SessionReplaySummary),
|
|
12775
|
+
total: Schema99.Number,
|
|
12776
|
+
hasMore: Schema99.Boolean
|
|
12777
|
+
});
|
|
12778
|
+
SessionStatsResult = Schema99.Struct({
|
|
12779
|
+
totalSessions: Schema99.Number,
|
|
12780
|
+
sessionsThisMonth: Schema99.Number,
|
|
12781
|
+
sessionsThisWeek: Schema99.Number,
|
|
12782
|
+
sessionsWithErrors: Schema99.Number,
|
|
12783
|
+
sessionsWithRageClicks: Schema99.Number,
|
|
12784
|
+
totalStorageBytes: Schema99.Number
|
|
12785
|
+
});
|
|
12786
|
+
DeleteSessionResult = Schema99.Struct({
|
|
12787
|
+
success: Schema99.Boolean
|
|
12651
12788
|
});
|
|
12652
12789
|
}
|
|
12653
12790
|
});
|
|
12654
12791
|
|
|
12655
12792
|
// ../contract/dist/schemas/storage.js
|
|
12656
|
-
import { Schema as
|
|
12657
|
-
var FileId, UploadId, FileVersionId, FileVisibility, SignedUrlDisposition, UploadMethod, File, FileVersion, UploadCreateRequest, UploadPart, UploadCreateSinglePartResult, UploadCreateMultipartResult, UploadCreateResult, UploadPartPresignResult, UploadCompletePart, UploadCompleteRequest, UploadCompleteResult, ListFilesQuery, ListFilesResult, SoftDeleteFileResult, SignedUrlRequest, SignedUrlResult, CopyFileRequest, ListFileVersionsResult, RestoreVersionResult;
|
|
12793
|
+
import { Schema as Schema100 } from "effect";
|
|
12794
|
+
var FileId, UploadId, FileVersionId, FileVisibility, SignedUrlDisposition, UploadMethod, File, FileVersion, UploadCreateRequest, UploadPart, UploadCreateSinglePartResult, UploadCreateMultipartResult, UploadCreateResult, UploadPartPresignResult, UploadCompletePart, UploadCompleteRequest, UploadCompleteResult, ListFilesQuery, ListFilesResult, SoftDeleteFileResult, StorageTakedownReason, TakedownFileRequest, StorageTakedownRecord, TakedownFileResult, SignedUrlRequest, SignedUrlResult, CopyFileRequest, ListFileVersionsResult, RestoreVersionResult;
|
|
12658
12795
|
var init_storage = __esm({
|
|
12659
12796
|
"../contract/dist/schemas/storage.js"() {
|
|
12660
12797
|
"use strict";
|
|
12661
|
-
FileId =
|
|
12662
|
-
UploadId =
|
|
12663
|
-
FileVersionId =
|
|
12664
|
-
FileVisibility =
|
|
12665
|
-
SignedUrlDisposition =
|
|
12666
|
-
UploadMethod =
|
|
12667
|
-
File =
|
|
12798
|
+
FileId = Schema100.String.pipe(Schema100.brand("FileId"));
|
|
12799
|
+
UploadId = Schema100.String.pipe(Schema100.brand("UploadId"));
|
|
12800
|
+
FileVersionId = Schema100.String.pipe(Schema100.brand("FileVersionId"));
|
|
12801
|
+
FileVisibility = Schema100.Literal("public", "private");
|
|
12802
|
+
SignedUrlDisposition = Schema100.Literal("attachment", "inline");
|
|
12803
|
+
UploadMethod = Schema100.Literal("PUT", "MULTIPART");
|
|
12804
|
+
File = Schema100.Struct({
|
|
12668
12805
|
id: FileId,
|
|
12669
|
-
filename:
|
|
12670
|
-
contentType:
|
|
12671
|
-
size:
|
|
12672
|
-
checksumSha256:
|
|
12673
|
-
etag:
|
|
12806
|
+
filename: Schema100.String,
|
|
12807
|
+
contentType: Schema100.String,
|
|
12808
|
+
size: Schema100.Number,
|
|
12809
|
+
checksumSha256: Schema100.String,
|
|
12810
|
+
etag: Schema100.String,
|
|
12674
12811
|
visibility: FileVisibility,
|
|
12675
|
-
folder:
|
|
12676
|
-
metadata:
|
|
12812
|
+
folder: Schema100.NullOr(Schema100.String),
|
|
12813
|
+
metadata: Schema100.Record({ key: Schema100.String, value: Schema100.Unknown }),
|
|
12677
12814
|
/** Public URL when `visibility === 'public'`; `null` otherwise. Use `:signedUrl` for private files. */
|
|
12678
|
-
url:
|
|
12679
|
-
isDeleted:
|
|
12680
|
-
createdAt:
|
|
12681
|
-
updatedAt:
|
|
12815
|
+
url: Schema100.NullOr(Schema100.String),
|
|
12816
|
+
isDeleted: Schema100.Boolean,
|
|
12817
|
+
createdAt: Schema100.DateFromString,
|
|
12818
|
+
updatedAt: Schema100.DateFromString
|
|
12682
12819
|
});
|
|
12683
|
-
FileVersion =
|
|
12820
|
+
FileVersion = Schema100.Struct({
|
|
12684
12821
|
id: FileVersionId,
|
|
12685
12822
|
fileId: FileId,
|
|
12686
|
-
versionNumber:
|
|
12687
|
-
size:
|
|
12688
|
-
contentType:
|
|
12689
|
-
checksumSha256:
|
|
12690
|
-
etag:
|
|
12691
|
-
createdAt:
|
|
12692
|
-
createdBy:
|
|
12693
|
-
isCurrent:
|
|
12694
|
-
});
|
|
12695
|
-
UploadCreateRequest =
|
|
12696
|
-
filename:
|
|
12697
|
-
contentType:
|
|
12698
|
-
size:
|
|
12699
|
-
folder:
|
|
12700
|
-
visibility:
|
|
12701
|
-
metadata:
|
|
12823
|
+
versionNumber: Schema100.Number,
|
|
12824
|
+
size: Schema100.Number,
|
|
12825
|
+
contentType: Schema100.String,
|
|
12826
|
+
checksumSha256: Schema100.String,
|
|
12827
|
+
etag: Schema100.String,
|
|
12828
|
+
createdAt: Schema100.DateFromString,
|
|
12829
|
+
createdBy: Schema100.NullOr(Schema100.String),
|
|
12830
|
+
isCurrent: Schema100.Boolean
|
|
12831
|
+
});
|
|
12832
|
+
UploadCreateRequest = Schema100.Struct({
|
|
12833
|
+
filename: Schema100.String.pipe(Schema100.minLength(1)),
|
|
12834
|
+
contentType: Schema100.String.pipe(Schema100.minLength(1)),
|
|
12835
|
+
size: Schema100.Number.pipe(Schema100.greaterThanOrEqualTo(0)),
|
|
12836
|
+
folder: Schema100.optional(Schema100.String),
|
|
12837
|
+
visibility: Schema100.optional(FileVisibility),
|
|
12838
|
+
metadata: Schema100.optional(Schema100.Record({ key: Schema100.String, value: Schema100.Unknown })),
|
|
12702
12839
|
/** Pre-computed SHA-256 (hex); verified server-side on `:complete` (multipart) or after PUT (single). */
|
|
12703
|
-
checksumSha256:
|
|
12840
|
+
checksumSha256: Schema100.optional(Schema100.String),
|
|
12704
12841
|
/** S3-style precondition; if `'*'`, fail when a file already exists at (folder, filename). */
|
|
12705
|
-
ifNoneMatch:
|
|
12842
|
+
ifNoneMatch: Schema100.optional(Schema100.Literal("*"))
|
|
12706
12843
|
});
|
|
12707
|
-
UploadPart =
|
|
12708
|
-
partNumber:
|
|
12709
|
-
url:
|
|
12710
|
-
expiresAt:
|
|
12844
|
+
UploadPart = Schema100.Struct({
|
|
12845
|
+
partNumber: Schema100.Number.pipe(Schema100.greaterThanOrEqualTo(1)),
|
|
12846
|
+
url: Schema100.String,
|
|
12847
|
+
expiresAt: Schema100.DateFromString
|
|
12711
12848
|
});
|
|
12712
|
-
UploadCreateSinglePartResult =
|
|
12713
|
-
method:
|
|
12849
|
+
UploadCreateSinglePartResult = Schema100.Struct({
|
|
12850
|
+
method: Schema100.Literal("PUT"),
|
|
12714
12851
|
uploadId: UploadId,
|
|
12715
12852
|
fileId: FileId,
|
|
12716
|
-
url:
|
|
12717
|
-
headers:
|
|
12718
|
-
expiresAt:
|
|
12853
|
+
url: Schema100.String,
|
|
12854
|
+
headers: Schema100.Record({ key: Schema100.String, value: Schema100.String }),
|
|
12855
|
+
expiresAt: Schema100.DateFromString
|
|
12719
12856
|
});
|
|
12720
|
-
UploadCreateMultipartResult =
|
|
12721
|
-
method:
|
|
12857
|
+
UploadCreateMultipartResult = Schema100.Struct({
|
|
12858
|
+
method: Schema100.Literal("MULTIPART"),
|
|
12722
12859
|
uploadId: UploadId,
|
|
12723
12860
|
fileId: FileId,
|
|
12724
|
-
partSize:
|
|
12725
|
-
partCount:
|
|
12726
|
-
parts:
|
|
12727
|
-
expiresAt:
|
|
12861
|
+
partSize: Schema100.Number,
|
|
12862
|
+
partCount: Schema100.Number,
|
|
12863
|
+
parts: Schema100.Array(UploadPart),
|
|
12864
|
+
expiresAt: Schema100.DateFromString
|
|
12728
12865
|
});
|
|
12729
|
-
UploadCreateResult =
|
|
12730
|
-
UploadPartPresignResult =
|
|
12731
|
-
url:
|
|
12732
|
-
expiresAt:
|
|
12866
|
+
UploadCreateResult = Schema100.Union(UploadCreateSinglePartResult, UploadCreateMultipartResult);
|
|
12867
|
+
UploadPartPresignResult = Schema100.Struct({
|
|
12868
|
+
url: Schema100.String,
|
|
12869
|
+
expiresAt: Schema100.DateFromString
|
|
12733
12870
|
});
|
|
12734
|
-
UploadCompletePart =
|
|
12735
|
-
partNumber:
|
|
12736
|
-
etag:
|
|
12871
|
+
UploadCompletePart = Schema100.Struct({
|
|
12872
|
+
partNumber: Schema100.Number.pipe(Schema100.greaterThanOrEqualTo(1)),
|
|
12873
|
+
etag: Schema100.String.pipe(Schema100.minLength(1))
|
|
12737
12874
|
});
|
|
12738
|
-
UploadCompleteRequest =
|
|
12739
|
-
parts:
|
|
12875
|
+
UploadCompleteRequest = Schema100.Struct({
|
|
12876
|
+
parts: Schema100.Array(UploadCompletePart)
|
|
12740
12877
|
});
|
|
12741
|
-
UploadCompleteResult =
|
|
12878
|
+
UploadCompleteResult = Schema100.Struct({
|
|
12742
12879
|
fileId: FileId,
|
|
12743
|
-
url:
|
|
12744
|
-
size:
|
|
12745
|
-
etag:
|
|
12746
|
-
checksumSha256:
|
|
12880
|
+
url: Schema100.NullOr(Schema100.String),
|
|
12881
|
+
size: Schema100.Number,
|
|
12882
|
+
etag: Schema100.String,
|
|
12883
|
+
checksumSha256: Schema100.String
|
|
12747
12884
|
});
|
|
12748
|
-
ListFilesQuery =
|
|
12749
|
-
folder:
|
|
12750
|
-
cursor:
|
|
12885
|
+
ListFilesQuery = Schema100.Struct({
|
|
12886
|
+
folder: Schema100.optional(Schema100.String),
|
|
12887
|
+
cursor: Schema100.optional(Schema100.String),
|
|
12751
12888
|
/** Page size; clamped server-side to [1, 100]; default 25. */
|
|
12752
|
-
limit:
|
|
12753
|
-
includeDeleted:
|
|
12889
|
+
limit: Schema100.optional(Schema100.Number),
|
|
12890
|
+
includeDeleted: Schema100.optional(Schema100.Boolean)
|
|
12754
12891
|
});
|
|
12755
|
-
ListFilesResult =
|
|
12756
|
-
files:
|
|
12757
|
-
nextCursor:
|
|
12892
|
+
ListFilesResult = Schema100.Struct({
|
|
12893
|
+
files: Schema100.Array(File),
|
|
12894
|
+
nextCursor: Schema100.NullOr(Schema100.String)
|
|
12758
12895
|
});
|
|
12759
|
-
SoftDeleteFileResult =
|
|
12896
|
+
SoftDeleteFileResult = Schema100.Struct({
|
|
12760
12897
|
id: FileId,
|
|
12761
|
-
isDeleted:
|
|
12898
|
+
isDeleted: Schema100.Literal(true)
|
|
12899
|
+
});
|
|
12900
|
+
StorageTakedownReason = Schema100.Literal("dmca", "malware", "abuse", "legal");
|
|
12901
|
+
TakedownFileRequest = Schema100.Struct({
|
|
12902
|
+
reason: StorageTakedownReason,
|
|
12903
|
+
noticeId: Schema100.optional(Schema100.String),
|
|
12904
|
+
source: Schema100.optional(Schema100.String),
|
|
12905
|
+
description: Schema100.optional(Schema100.String)
|
|
12906
|
+
});
|
|
12907
|
+
StorageTakedownRecord = Schema100.Struct({
|
|
12908
|
+
reason: StorageTakedownReason,
|
|
12909
|
+
noticeId: Schema100.NullOr(Schema100.String),
|
|
12910
|
+
source: Schema100.NullOr(Schema100.String),
|
|
12911
|
+
description: Schema100.NullOr(Schema100.String),
|
|
12912
|
+
actedAt: Schema100.DateFromString
|
|
12913
|
+
});
|
|
12914
|
+
TakedownFileResult = Schema100.Struct({
|
|
12915
|
+
id: FileId,
|
|
12916
|
+
isDeleted: Schema100.Literal(true),
|
|
12917
|
+
takedown: StorageTakedownRecord
|
|
12762
12918
|
});
|
|
12763
|
-
SignedUrlRequest =
|
|
12764
|
-
expiresIn:
|
|
12765
|
-
disposition:
|
|
12919
|
+
SignedUrlRequest = Schema100.Struct({
|
|
12920
|
+
expiresIn: Schema100.optional(Schema100.Number.pipe(Schema100.greaterThanOrEqualTo(1))),
|
|
12921
|
+
disposition: Schema100.optional(SignedUrlDisposition),
|
|
12766
12922
|
/** Restrict the signed URL to a specific authenticated user (claim baked into the signature). */
|
|
12767
|
-
userId:
|
|
12923
|
+
userId: Schema100.optional(Schema100.String)
|
|
12768
12924
|
});
|
|
12769
|
-
SignedUrlResult =
|
|
12770
|
-
url:
|
|
12771
|
-
expiresAt:
|
|
12925
|
+
SignedUrlResult = Schema100.Struct({
|
|
12926
|
+
url: Schema100.String,
|
|
12927
|
+
expiresAt: Schema100.DateFromString,
|
|
12772
12928
|
file: File
|
|
12773
12929
|
});
|
|
12774
|
-
CopyFileRequest =
|
|
12775
|
-
folder:
|
|
12776
|
-
filename:
|
|
12777
|
-
visibility:
|
|
12778
|
-
metadata:
|
|
12930
|
+
CopyFileRequest = Schema100.Struct({
|
|
12931
|
+
folder: Schema100.optional(Schema100.String),
|
|
12932
|
+
filename: Schema100.optional(Schema100.String),
|
|
12933
|
+
visibility: Schema100.optional(FileVisibility),
|
|
12934
|
+
metadata: Schema100.optional(Schema100.Record({ key: Schema100.String, value: Schema100.Unknown }))
|
|
12779
12935
|
});
|
|
12780
|
-
ListFileVersionsResult =
|
|
12781
|
-
versions:
|
|
12936
|
+
ListFileVersionsResult = Schema100.Struct({
|
|
12937
|
+
versions: Schema100.Array(FileVersion)
|
|
12782
12938
|
});
|
|
12783
|
-
RestoreVersionResult =
|
|
12939
|
+
RestoreVersionResult = Schema100.Struct({
|
|
12784
12940
|
file: File,
|
|
12785
12941
|
version: FileVersion
|
|
12786
12942
|
});
|
|
@@ -12788,295 +12944,295 @@ var init_storage = __esm({
|
|
|
12788
12944
|
});
|
|
12789
12945
|
|
|
12790
12946
|
// ../contract/dist/schemas/storage-admin.js
|
|
12791
|
-
import { Schema as
|
|
12947
|
+
import { Schema as Schema101 } from "effect";
|
|
12792
12948
|
var StorageProjectIdParams, StorageProjectBucketParams, StorageProjectFileParams, StorageQuery, BucketAccessRuleType, BucketAccessPermission, BucketAccessRule, StorageProjectRef, StorageBucket, StorageBucketMinimal, BucketFile, StorageFile, StorageFolderInfo, CreateBucketInput, UpdateBucketInput, DeleteBucketInput, BulkDeleteBucketsInput, ListBucketsResult, GetBucketResult, DeleteBucketResult, BulkDeleteBucketsResult, ListBucketFilesResult, ListStorageFilesResult, StorageUploadByDay, StorageUploadByType, StorageRecentFile, StorageServiceDataResult, StorageAdminResult;
|
|
12793
12949
|
var init_storage_admin = __esm({
|
|
12794
12950
|
"../contract/dist/schemas/storage-admin.js"() {
|
|
12795
12951
|
"use strict";
|
|
12796
|
-
StorageProjectIdParams =
|
|
12797
|
-
StorageProjectBucketParams =
|
|
12798
|
-
projectId:
|
|
12799
|
-
bucketId:
|
|
12800
|
-
});
|
|
12801
|
-
StorageProjectFileParams = Schema100.Struct({
|
|
12802
|
-
projectId: Schema100.String,
|
|
12803
|
-
fileId: Schema100.String
|
|
12804
|
-
});
|
|
12805
|
-
StorageQuery = Schema100.Struct({
|
|
12806
|
-
limit: Schema100.optional(Schema100.String),
|
|
12807
|
-
offset: Schema100.optional(Schema100.String),
|
|
12808
|
-
prefix: Schema100.optional(Schema100.String),
|
|
12809
|
-
cursor: Schema100.optional(Schema100.String),
|
|
12810
|
-
path: Schema100.optional(Schema100.String),
|
|
12811
|
-
search: Schema100.optional(Schema100.String)
|
|
12952
|
+
StorageProjectIdParams = Schema101.Struct({ id: Schema101.String });
|
|
12953
|
+
StorageProjectBucketParams = Schema101.Struct({
|
|
12954
|
+
projectId: Schema101.String,
|
|
12955
|
+
bucketId: Schema101.String
|
|
12812
12956
|
});
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12957
|
+
StorageProjectFileParams = Schema101.Struct({
|
|
12958
|
+
projectId: Schema101.String,
|
|
12959
|
+
fileId: Schema101.String
|
|
12960
|
+
});
|
|
12961
|
+
StorageQuery = Schema101.Struct({
|
|
12962
|
+
limit: Schema101.optional(Schema101.String),
|
|
12963
|
+
offset: Schema101.optional(Schema101.String),
|
|
12964
|
+
prefix: Schema101.optional(Schema101.String),
|
|
12965
|
+
cursor: Schema101.optional(Schema101.String),
|
|
12966
|
+
path: Schema101.optional(Schema101.String),
|
|
12967
|
+
search: Schema101.optional(Schema101.String)
|
|
12968
|
+
});
|
|
12969
|
+
BucketAccessRuleType = Schema101.Literal("public", "authenticated", "owner_only", "admin_only");
|
|
12970
|
+
BucketAccessPermission = Schema101.Literal("read", "read-write", "full");
|
|
12971
|
+
BucketAccessRule = Schema101.Struct({
|
|
12816
12972
|
type: BucketAccessRuleType,
|
|
12817
12973
|
permission: BucketAccessPermission
|
|
12818
12974
|
});
|
|
12819
|
-
StorageProjectRef =
|
|
12820
|
-
id:
|
|
12821
|
-
name:
|
|
12822
|
-
slug:
|
|
12975
|
+
StorageProjectRef = Schema101.Struct({
|
|
12976
|
+
id: Schema101.String,
|
|
12977
|
+
name: Schema101.String,
|
|
12978
|
+
slug: Schema101.String
|
|
12823
12979
|
});
|
|
12824
|
-
StorageBucket =
|
|
12825
|
-
id:
|
|
12826
|
-
name:
|
|
12827
|
-
description:
|
|
12828
|
-
isPublic:
|
|
12829
|
-
fileCount:
|
|
12830
|
-
totalSize:
|
|
12831
|
-
createdAt:
|
|
12832
|
-
updatedAt:
|
|
12833
|
-
accessRules:
|
|
12834
|
-
corsEnabled:
|
|
12835
|
-
allowedOrigins:
|
|
12836
|
-
maxFileSize:
|
|
12837
|
-
allowedMimeTypes:
|
|
12838
|
-
});
|
|
12839
|
-
StorageBucketMinimal =
|
|
12840
|
-
id:
|
|
12841
|
-
name:
|
|
12842
|
-
description:
|
|
12843
|
-
isPublic:
|
|
12844
|
-
createdAt:
|
|
12845
|
-
updatedAt:
|
|
12846
|
-
accessRules:
|
|
12847
|
-
corsEnabled:
|
|
12848
|
-
allowedOrigins:
|
|
12849
|
-
maxFileSize:
|
|
12850
|
-
allowedMimeTypes:
|
|
12851
|
-
});
|
|
12852
|
-
BucketFile =
|
|
12853
|
-
id:
|
|
12854
|
-
filename:
|
|
12855
|
-
path:
|
|
12856
|
-
url:
|
|
12857
|
-
mimeType:
|
|
12858
|
-
size:
|
|
12859
|
-
formattedSize:
|
|
12860
|
-
createdAt:
|
|
12861
|
-
});
|
|
12862
|
-
StorageFile =
|
|
12863
|
-
id:
|
|
12864
|
-
name:
|
|
12865
|
-
path:
|
|
12866
|
-
mimeType:
|
|
12867
|
-
size:
|
|
12868
|
-
url:
|
|
12869
|
-
thumbnailUrl:
|
|
12870
|
-
createdAt:
|
|
12871
|
-
});
|
|
12872
|
-
StorageFolderInfo =
|
|
12873
|
-
name:
|
|
12874
|
-
fileCount:
|
|
12875
|
-
totalSize:
|
|
12876
|
-
});
|
|
12877
|
-
CreateBucketInput =
|
|
12878
|
-
projectId:
|
|
12879
|
-
environmentId:
|
|
12880
|
-
name:
|
|
12881
|
-
description:
|
|
12882
|
-
isPublic:
|
|
12883
|
-
accessRules:
|
|
12884
|
-
corsEnabled:
|
|
12885
|
-
allowedOrigins:
|
|
12886
|
-
maxFileSize:
|
|
12887
|
-
allowedMimeTypes:
|
|
12888
|
-
});
|
|
12889
|
-
UpdateBucketInput =
|
|
12890
|
-
name:
|
|
12891
|
-
description:
|
|
12892
|
-
isPublic:
|
|
12893
|
-
accessRules:
|
|
12894
|
-
corsEnabled:
|
|
12895
|
-
allowedOrigins:
|
|
12896
|
-
maxFileSize:
|
|
12897
|
-
allowedMimeTypes:
|
|
12898
|
-
});
|
|
12899
|
-
DeleteBucketInput =
|
|
12900
|
-
force:
|
|
12901
|
-
});
|
|
12902
|
-
BulkDeleteBucketsInput =
|
|
12903
|
-
projectId:
|
|
12904
|
-
bucketIds:
|
|
12905
|
-
});
|
|
12906
|
-
ListBucketsResult =
|
|
12980
|
+
StorageBucket = Schema101.Struct({
|
|
12981
|
+
id: Schema101.String,
|
|
12982
|
+
name: Schema101.String,
|
|
12983
|
+
description: Schema101.NullOr(Schema101.String),
|
|
12984
|
+
isPublic: Schema101.Boolean,
|
|
12985
|
+
fileCount: Schema101.Number,
|
|
12986
|
+
totalSize: Schema101.Number,
|
|
12987
|
+
createdAt: Schema101.String,
|
|
12988
|
+
updatedAt: Schema101.String,
|
|
12989
|
+
accessRules: Schema101.Array(BucketAccessRule),
|
|
12990
|
+
corsEnabled: Schema101.Boolean,
|
|
12991
|
+
allowedOrigins: Schema101.Array(Schema101.String),
|
|
12992
|
+
maxFileSize: Schema101.Number,
|
|
12993
|
+
allowedMimeTypes: Schema101.Array(Schema101.String)
|
|
12994
|
+
});
|
|
12995
|
+
StorageBucketMinimal = Schema101.Struct({
|
|
12996
|
+
id: Schema101.String,
|
|
12997
|
+
name: Schema101.String,
|
|
12998
|
+
description: Schema101.NullOr(Schema101.String),
|
|
12999
|
+
isPublic: Schema101.Boolean,
|
|
13000
|
+
createdAt: Schema101.String,
|
|
13001
|
+
updatedAt: Schema101.String,
|
|
13002
|
+
accessRules: Schema101.Array(BucketAccessRule),
|
|
13003
|
+
corsEnabled: Schema101.Boolean,
|
|
13004
|
+
allowedOrigins: Schema101.Array(Schema101.String),
|
|
13005
|
+
maxFileSize: Schema101.Number,
|
|
13006
|
+
allowedMimeTypes: Schema101.Array(Schema101.String)
|
|
13007
|
+
});
|
|
13008
|
+
BucketFile = Schema101.Struct({
|
|
13009
|
+
id: Schema101.String,
|
|
13010
|
+
filename: Schema101.String,
|
|
13011
|
+
path: Schema101.String,
|
|
13012
|
+
url: Schema101.NullOr(Schema101.String),
|
|
13013
|
+
mimeType: Schema101.String,
|
|
13014
|
+
size: Schema101.Number,
|
|
13015
|
+
formattedSize: Schema101.String,
|
|
13016
|
+
createdAt: Schema101.String
|
|
13017
|
+
});
|
|
13018
|
+
StorageFile = Schema101.Struct({
|
|
13019
|
+
id: Schema101.String,
|
|
13020
|
+
name: Schema101.String,
|
|
13021
|
+
path: Schema101.String,
|
|
13022
|
+
mimeType: Schema101.String,
|
|
13023
|
+
size: Schema101.Number,
|
|
13024
|
+
url: Schema101.String,
|
|
13025
|
+
thumbnailUrl: Schema101.NullOr(Schema101.String),
|
|
13026
|
+
createdAt: Schema101.String
|
|
13027
|
+
});
|
|
13028
|
+
StorageFolderInfo = Schema101.Struct({
|
|
13029
|
+
name: Schema101.String,
|
|
13030
|
+
fileCount: Schema101.Number,
|
|
13031
|
+
totalSize: Schema101.Number
|
|
13032
|
+
});
|
|
13033
|
+
CreateBucketInput = Schema101.Struct({
|
|
13034
|
+
projectId: Schema101.String,
|
|
13035
|
+
environmentId: Schema101.optional(Schema101.String),
|
|
13036
|
+
name: Schema101.String,
|
|
13037
|
+
description: Schema101.optional(Schema101.String),
|
|
13038
|
+
isPublic: Schema101.optional(Schema101.Boolean),
|
|
13039
|
+
accessRules: Schema101.optional(Schema101.Array(BucketAccessRule)),
|
|
13040
|
+
corsEnabled: Schema101.optional(Schema101.Boolean),
|
|
13041
|
+
allowedOrigins: Schema101.optional(Schema101.Array(Schema101.String)),
|
|
13042
|
+
maxFileSize: Schema101.optional(Schema101.Number),
|
|
13043
|
+
allowedMimeTypes: Schema101.optional(Schema101.Array(Schema101.String))
|
|
13044
|
+
});
|
|
13045
|
+
UpdateBucketInput = Schema101.Struct({
|
|
13046
|
+
name: Schema101.optional(Schema101.String),
|
|
13047
|
+
description: Schema101.optional(Schema101.NullOr(Schema101.String)),
|
|
13048
|
+
isPublic: Schema101.optional(Schema101.Boolean),
|
|
13049
|
+
accessRules: Schema101.optional(Schema101.Array(BucketAccessRule)),
|
|
13050
|
+
corsEnabled: Schema101.optional(Schema101.Boolean),
|
|
13051
|
+
allowedOrigins: Schema101.optional(Schema101.Array(Schema101.String)),
|
|
13052
|
+
maxFileSize: Schema101.optional(Schema101.Number),
|
|
13053
|
+
allowedMimeTypes: Schema101.optional(Schema101.Array(Schema101.String))
|
|
13054
|
+
});
|
|
13055
|
+
DeleteBucketInput = Schema101.Struct({
|
|
13056
|
+
force: Schema101.optional(Schema101.Boolean)
|
|
13057
|
+
});
|
|
13058
|
+
BulkDeleteBucketsInput = Schema101.Struct({
|
|
13059
|
+
projectId: Schema101.String,
|
|
13060
|
+
bucketIds: Schema101.Array(Schema101.String)
|
|
13061
|
+
});
|
|
13062
|
+
ListBucketsResult = Schema101.Struct({
|
|
12907
13063
|
app: StorageProjectRef,
|
|
12908
|
-
buckets:
|
|
12909
|
-
total:
|
|
12910
|
-
});
|
|
12911
|
-
GetBucketResult =
|
|
12912
|
-
DeleteBucketResult =
|
|
12913
|
-
success:
|
|
12914
|
-
filesDeleted:
|
|
12915
|
-
});
|
|
12916
|
-
BulkDeleteBucketsResult =
|
|
12917
|
-
deleted:
|
|
12918
|
-
filesDeleted:
|
|
12919
|
-
errors:
|
|
12920
|
-
id:
|
|
12921
|
-
error:
|
|
13064
|
+
buckets: Schema101.Array(StorageBucket),
|
|
13065
|
+
total: Schema101.Number
|
|
13066
|
+
});
|
|
13067
|
+
GetBucketResult = Schema101.extend(StorageBucket, Schema101.Struct({ formattedSize: Schema101.String }));
|
|
13068
|
+
DeleteBucketResult = Schema101.Struct({
|
|
13069
|
+
success: Schema101.Boolean,
|
|
13070
|
+
filesDeleted: Schema101.Number
|
|
13071
|
+
});
|
|
13072
|
+
BulkDeleteBucketsResult = Schema101.Struct({
|
|
13073
|
+
deleted: Schema101.Number,
|
|
13074
|
+
filesDeleted: Schema101.Number,
|
|
13075
|
+
errors: Schema101.optional(Schema101.Array(Schema101.Struct({
|
|
13076
|
+
id: Schema101.String,
|
|
13077
|
+
error: Schema101.String
|
|
12922
13078
|
})))
|
|
12923
13079
|
});
|
|
12924
|
-
ListBucketFilesResult =
|
|
12925
|
-
files:
|
|
12926
|
-
total:
|
|
12927
|
-
bucket:
|
|
12928
|
-
id:
|
|
12929
|
-
name:
|
|
13080
|
+
ListBucketFilesResult = Schema101.Struct({
|
|
13081
|
+
files: Schema101.Array(BucketFile),
|
|
13082
|
+
total: Schema101.Number,
|
|
13083
|
+
bucket: Schema101.Struct({
|
|
13084
|
+
id: Schema101.String,
|
|
13085
|
+
name: Schema101.String
|
|
12930
13086
|
})
|
|
12931
13087
|
});
|
|
12932
|
-
ListStorageFilesResult =
|
|
13088
|
+
ListStorageFilesResult = Schema101.Struct({
|
|
12933
13089
|
app: StorageProjectRef,
|
|
12934
|
-
files:
|
|
12935
|
-
folders:
|
|
12936
|
-
total:
|
|
12937
|
-
limit:
|
|
12938
|
-
offset:
|
|
12939
|
-
});
|
|
12940
|
-
StorageUploadByDay = Schema100.Struct({
|
|
12941
|
-
date: Schema100.String,
|
|
12942
|
-
count: Schema100.Number,
|
|
12943
|
-
bytes: Schema100.Number
|
|
12944
|
-
});
|
|
12945
|
-
StorageUploadByType = Schema100.Struct({
|
|
12946
|
-
mimeType: Schema100.String,
|
|
12947
|
-
count: Schema100.Number,
|
|
12948
|
-
bytes: Schema100.Number
|
|
12949
|
-
});
|
|
12950
|
-
StorageRecentFile = Schema100.Struct({
|
|
12951
|
-
id: Schema100.String,
|
|
12952
|
-
filename: Schema100.String,
|
|
12953
|
-
mimeType: Schema100.String,
|
|
12954
|
-
sizeBytes: Schema100.Number,
|
|
12955
|
-
createdAt: Schema100.String
|
|
13090
|
+
files: Schema101.Array(StorageFile),
|
|
13091
|
+
folders: Schema101.Array(StorageFolderInfo),
|
|
13092
|
+
total: Schema101.Number,
|
|
13093
|
+
limit: Schema101.Number,
|
|
13094
|
+
offset: Schema101.Number
|
|
12956
13095
|
});
|
|
12957
|
-
|
|
13096
|
+
StorageUploadByDay = Schema101.Struct({
|
|
13097
|
+
date: Schema101.String,
|
|
13098
|
+
count: Schema101.Number,
|
|
13099
|
+
bytes: Schema101.Number
|
|
13100
|
+
});
|
|
13101
|
+
StorageUploadByType = Schema101.Struct({
|
|
13102
|
+
mimeType: Schema101.String,
|
|
13103
|
+
count: Schema101.Number,
|
|
13104
|
+
bytes: Schema101.Number
|
|
13105
|
+
});
|
|
13106
|
+
StorageRecentFile = Schema101.Struct({
|
|
13107
|
+
id: Schema101.String,
|
|
13108
|
+
filename: Schema101.String,
|
|
13109
|
+
mimeType: Schema101.String,
|
|
13110
|
+
sizeBytes: Schema101.Number,
|
|
13111
|
+
createdAt: Schema101.String
|
|
13112
|
+
});
|
|
13113
|
+
StorageServiceDataResult = Schema101.Struct({
|
|
12958
13114
|
app: StorageProjectRef,
|
|
12959
|
-
totalStats:
|
|
12960
|
-
files:
|
|
12961
|
-
totalBytes:
|
|
13115
|
+
totalStats: Schema101.Struct({
|
|
13116
|
+
files: Schema101.Number,
|
|
13117
|
+
totalBytes: Schema101.Number
|
|
12962
13118
|
}),
|
|
12963
|
-
uploadsByDay:
|
|
12964
|
-
uploadsByType:
|
|
12965
|
-
recentFiles:
|
|
12966
|
-
uploadsThisMonth:
|
|
13119
|
+
uploadsByDay: Schema101.Array(StorageUploadByDay),
|
|
13120
|
+
uploadsByType: Schema101.Array(StorageUploadByType),
|
|
13121
|
+
recentFiles: Schema101.Array(StorageRecentFile),
|
|
13122
|
+
uploadsThisMonth: Schema101.Number
|
|
12967
13123
|
});
|
|
12968
|
-
StorageAdminResult =
|
|
13124
|
+
StorageAdminResult = Schema101.Unknown;
|
|
12969
13125
|
}
|
|
12970
13126
|
});
|
|
12971
13127
|
|
|
12972
13128
|
// ../contract/dist/schemas/tasks.js
|
|
12973
|
-
import { Schema as
|
|
13129
|
+
import { Schema as Schema102 } from "effect";
|
|
12974
13130
|
var TaskStatusEnum, TaskTypeEnum, TaskHttpMethod, Task, TaskIdParam, ScheduleIdParam, TasksProjectIdQuery, ListTasksQuery, ScheduleTaskInput, CreateCronTaskInput, CancelTaskInput, CronActionInput, DeleteCronInput, TasksStatusResult, ListTasksResult, GetTaskResult, ScheduleTaskResult, CreateCronTaskResult, CancelTaskResult, CronActionResult;
|
|
12975
13131
|
var init_tasks = __esm({
|
|
12976
13132
|
"../contract/dist/schemas/tasks.js"() {
|
|
12977
13133
|
"use strict";
|
|
12978
|
-
TaskStatusEnum =
|
|
12979
|
-
TaskTypeEnum =
|
|
12980
|
-
TaskHttpMethod =
|
|
12981
|
-
Task =
|
|
12982
|
-
id:
|
|
12983
|
-
name:
|
|
13134
|
+
TaskStatusEnum = Schema102.Literal("pending", "queued", "running", "completed", "failed", "scheduled", "paused", "cancelled", "deleted");
|
|
13135
|
+
TaskTypeEnum = Schema102.Literal("one-time", "cron");
|
|
13136
|
+
TaskHttpMethod = Schema102.Literal("GET", "POST", "PUT", "DELETE", "PATCH");
|
|
13137
|
+
Task = Schema102.Struct({
|
|
13138
|
+
id: Schema102.String,
|
|
13139
|
+
name: Schema102.NullOr(Schema102.String),
|
|
12984
13140
|
type: TaskTypeEnum,
|
|
12985
13141
|
status: TaskStatusEnum,
|
|
12986
|
-
callbackUrl:
|
|
12987
|
-
payload:
|
|
12988
|
-
method:
|
|
12989
|
-
headers:
|
|
12990
|
-
scheduledFor:
|
|
12991
|
-
startedAt:
|
|
12992
|
-
completedAt:
|
|
12993
|
-
failedAt:
|
|
12994
|
-
cronExpression:
|
|
12995
|
-
retries:
|
|
12996
|
-
maxRetries:
|
|
12997
|
-
lastError:
|
|
12998
|
-
qstashMessageId:
|
|
12999
|
-
qstashScheduleId:
|
|
13000
|
-
createdAt:
|
|
13001
|
-
});
|
|
13002
|
-
TaskIdParam =
|
|
13003
|
-
ScheduleIdParam =
|
|
13004
|
-
TasksProjectIdQuery =
|
|
13005
|
-
ListTasksQuery =
|
|
13006
|
-
projectId:
|
|
13007
|
-
status:
|
|
13008
|
-
type:
|
|
13009
|
-
limit:
|
|
13010
|
-
offset:
|
|
13011
|
-
});
|
|
13012
|
-
ScheduleTaskInput =
|
|
13013
|
-
projectId:
|
|
13014
|
-
environmentId:
|
|
13015
|
-
callbackUrl:
|
|
13016
|
-
payload:
|
|
13017
|
-
method:
|
|
13018
|
-
headers:
|
|
13019
|
-
delay:
|
|
13020
|
-
scheduledFor:
|
|
13021
|
-
retries:
|
|
13022
|
-
name:
|
|
13023
|
-
type:
|
|
13024
|
-
timeout:
|
|
13025
|
-
});
|
|
13026
|
-
CreateCronTaskInput =
|
|
13027
|
-
projectId:
|
|
13028
|
-
callbackUrl:
|
|
13029
|
-
cron:
|
|
13030
|
-
payload:
|
|
13031
|
-
method:
|
|
13032
|
-
headers:
|
|
13033
|
-
retries:
|
|
13034
|
-
name:
|
|
13035
|
-
type:
|
|
13036
|
-
paused:
|
|
13037
|
-
environmentId:
|
|
13038
|
-
taskName:
|
|
13039
|
-
handlerPath:
|
|
13040
|
-
});
|
|
13041
|
-
CancelTaskInput =
|
|
13042
|
-
CronActionInput =
|
|
13043
|
-
DeleteCronInput =
|
|
13044
|
-
TasksStatusResult =
|
|
13045
|
-
available:
|
|
13046
|
-
provider:
|
|
13047
|
-
});
|
|
13048
|
-
ListTasksResult =
|
|
13049
|
-
jobs:
|
|
13050
|
-
total:
|
|
13051
|
-
limit:
|
|
13052
|
-
offset:
|
|
13053
|
-
});
|
|
13054
|
-
GetTaskResult =
|
|
13055
|
-
ScheduleTaskResult =
|
|
13056
|
-
jobId:
|
|
13057
|
-
messageId:
|
|
13058
|
-
scheduledFor:
|
|
13059
|
-
});
|
|
13060
|
-
CreateCronTaskResult =
|
|
13061
|
-
jobId:
|
|
13062
|
-
scheduleId:
|
|
13063
|
-
cron:
|
|
13064
|
-
paused:
|
|
13065
|
-
});
|
|
13066
|
-
CancelTaskResult =
|
|
13067
|
-
CronActionResult =
|
|
13142
|
+
callbackUrl: Schema102.String,
|
|
13143
|
+
payload: Schema102.NullOr(Schema102.Record({ key: Schema102.String, value: Schema102.Unknown })),
|
|
13144
|
+
method: Schema102.NullOr(TaskHttpMethod),
|
|
13145
|
+
headers: Schema102.NullOr(Schema102.Record({ key: Schema102.String, value: Schema102.String })),
|
|
13146
|
+
scheduledFor: Schema102.NullOr(Schema102.String),
|
|
13147
|
+
startedAt: Schema102.NullOr(Schema102.String),
|
|
13148
|
+
completedAt: Schema102.NullOr(Schema102.String),
|
|
13149
|
+
failedAt: Schema102.NullOr(Schema102.String),
|
|
13150
|
+
cronExpression: Schema102.NullOr(Schema102.String),
|
|
13151
|
+
retries: Schema102.Number,
|
|
13152
|
+
maxRetries: Schema102.Number,
|
|
13153
|
+
lastError: Schema102.NullOr(Schema102.String),
|
|
13154
|
+
qstashMessageId: Schema102.NullOr(Schema102.String),
|
|
13155
|
+
qstashScheduleId: Schema102.NullOr(Schema102.String),
|
|
13156
|
+
createdAt: Schema102.String
|
|
13157
|
+
});
|
|
13158
|
+
TaskIdParam = Schema102.Struct({ jobId: Schema102.String });
|
|
13159
|
+
ScheduleIdParam = Schema102.Struct({ scheduleId: Schema102.String });
|
|
13160
|
+
TasksProjectIdQuery = Schema102.Struct({ projectId: Schema102.String });
|
|
13161
|
+
ListTasksQuery = Schema102.Struct({
|
|
13162
|
+
projectId: Schema102.String,
|
|
13163
|
+
status: Schema102.optional(Schema102.Literal("all", "pending", "queued", "running", "completed", "failed", "scheduled", "paused", "cancelled", "deleted")),
|
|
13164
|
+
type: Schema102.optional(Schema102.Literal("all", "one-time", "cron")),
|
|
13165
|
+
limit: Schema102.optional(Schema102.String),
|
|
13166
|
+
offset: Schema102.optional(Schema102.String)
|
|
13167
|
+
});
|
|
13168
|
+
ScheduleTaskInput = Schema102.Struct({
|
|
13169
|
+
projectId: Schema102.String,
|
|
13170
|
+
environmentId: Schema102.optional(Schema102.String),
|
|
13171
|
+
callbackUrl: Schema102.String,
|
|
13172
|
+
payload: Schema102.optional(Schema102.Record({ key: Schema102.String, value: Schema102.Unknown })),
|
|
13173
|
+
method: Schema102.optional(TaskHttpMethod),
|
|
13174
|
+
headers: Schema102.optional(Schema102.Record({ key: Schema102.String, value: Schema102.String })),
|
|
13175
|
+
delay: Schema102.optional(Schema102.Number),
|
|
13176
|
+
scheduledFor: Schema102.optional(Schema102.String),
|
|
13177
|
+
retries: Schema102.optional(Schema102.Number),
|
|
13178
|
+
name: Schema102.optional(Schema102.String),
|
|
13179
|
+
type: Schema102.optional(Schema102.String),
|
|
13180
|
+
timeout: Schema102.optional(Schema102.Number)
|
|
13181
|
+
});
|
|
13182
|
+
CreateCronTaskInput = Schema102.Struct({
|
|
13183
|
+
projectId: Schema102.String,
|
|
13184
|
+
callbackUrl: Schema102.String,
|
|
13185
|
+
cron: Schema102.String,
|
|
13186
|
+
payload: Schema102.optional(Schema102.Record({ key: Schema102.String, value: Schema102.Unknown })),
|
|
13187
|
+
method: Schema102.optional(TaskHttpMethod),
|
|
13188
|
+
headers: Schema102.optional(Schema102.Record({ key: Schema102.String, value: Schema102.String })),
|
|
13189
|
+
retries: Schema102.optional(Schema102.Number),
|
|
13190
|
+
name: Schema102.String,
|
|
13191
|
+
type: Schema102.optional(Schema102.String),
|
|
13192
|
+
paused: Schema102.optional(Schema102.Boolean),
|
|
13193
|
+
environmentId: Schema102.optional(Schema102.String),
|
|
13194
|
+
taskName: Schema102.optional(Schema102.String),
|
|
13195
|
+
handlerPath: Schema102.optional(Schema102.String)
|
|
13196
|
+
});
|
|
13197
|
+
CancelTaskInput = Schema102.Struct({ projectId: Schema102.String });
|
|
13198
|
+
CronActionInput = Schema102.Struct({ projectId: Schema102.String });
|
|
13199
|
+
DeleteCronInput = Schema102.Struct({ projectId: Schema102.String });
|
|
13200
|
+
TasksStatusResult = Schema102.Struct({
|
|
13201
|
+
available: Schema102.Boolean,
|
|
13202
|
+
provider: Schema102.String
|
|
13203
|
+
});
|
|
13204
|
+
ListTasksResult = Schema102.Struct({
|
|
13205
|
+
jobs: Schema102.Array(Task),
|
|
13206
|
+
total: Schema102.Number,
|
|
13207
|
+
limit: Schema102.Number,
|
|
13208
|
+
offset: Schema102.Number
|
|
13209
|
+
});
|
|
13210
|
+
GetTaskResult = Schema102.Struct({ job: Task });
|
|
13211
|
+
ScheduleTaskResult = Schema102.Struct({
|
|
13212
|
+
jobId: Schema102.String,
|
|
13213
|
+
messageId: Schema102.optional(Schema102.String),
|
|
13214
|
+
scheduledFor: Schema102.NullOr(Schema102.String)
|
|
13215
|
+
});
|
|
13216
|
+
CreateCronTaskResult = Schema102.Struct({
|
|
13217
|
+
jobId: Schema102.String,
|
|
13218
|
+
scheduleId: Schema102.String,
|
|
13219
|
+
cron: Schema102.String,
|
|
13220
|
+
paused: Schema102.Boolean
|
|
13221
|
+
});
|
|
13222
|
+
CancelTaskResult = Schema102.Struct({ success: Schema102.Boolean });
|
|
13223
|
+
CronActionResult = Schema102.Struct({ success: Schema102.Boolean });
|
|
13068
13224
|
}
|
|
13069
13225
|
});
|
|
13070
13226
|
|
|
13071
13227
|
// ../contract/dist/endpoints/users.js
|
|
13072
|
-
import { Schema as
|
|
13228
|
+
import { Schema as Schema103 } from "effect";
|
|
13073
13229
|
var SessionIdPath, usersEndpoints;
|
|
13074
13230
|
var init_users = __esm({
|
|
13075
13231
|
"../contract/dist/endpoints/users.js"() {
|
|
13076
13232
|
"use strict";
|
|
13077
13233
|
init_endpoint();
|
|
13078
13234
|
init_user();
|
|
13079
|
-
SessionIdPath =
|
|
13235
|
+
SessionIdPath = Schema103.Struct({ sessionId: Schema103.String });
|
|
13080
13236
|
usersEndpoints = {
|
|
13081
13237
|
whoami: defineEndpoint({
|
|
13082
13238
|
method: "GET",
|
|
@@ -13111,28 +13267,28 @@ var init_users = __esm({
|
|
|
13111
13267
|
method: "POST",
|
|
13112
13268
|
path: "/user/password",
|
|
13113
13269
|
body: ChangePasswordInput,
|
|
13114
|
-
response:
|
|
13270
|
+
response: Schema103.Struct({ success: Schema103.Boolean }),
|
|
13115
13271
|
summary: "Change password (requires current password)",
|
|
13116
13272
|
tags: ["users"]
|
|
13117
13273
|
}),
|
|
13118
13274
|
getConnectedAccounts: defineEndpoint({
|
|
13119
13275
|
method: "GET",
|
|
13120
13276
|
path: "/user/connected-accounts",
|
|
13121
|
-
response:
|
|
13277
|
+
response: Schema103.Array(ConnectedAccount),
|
|
13122
13278
|
summary: "List OAuth providers connected to the current account",
|
|
13123
13279
|
tags: ["users"]
|
|
13124
13280
|
}),
|
|
13125
13281
|
getLoginHistory: defineEndpoint({
|
|
13126
13282
|
method: "GET",
|
|
13127
13283
|
path: "/user/login-history",
|
|
13128
|
-
response:
|
|
13284
|
+
response: Schema103.Array(LoginHistoryEntry),
|
|
13129
13285
|
summary: "Get recent login attempts (last 20)",
|
|
13130
13286
|
tags: ["users"]
|
|
13131
13287
|
}),
|
|
13132
13288
|
getSessions: defineEndpoint({
|
|
13133
13289
|
method: "GET",
|
|
13134
13290
|
path: "/user/sessions",
|
|
13135
|
-
response:
|
|
13291
|
+
response: Schema103.Array(UserSession),
|
|
13136
13292
|
summary: "List active sessions",
|
|
13137
13293
|
tags: ["users"]
|
|
13138
13294
|
}),
|
|
@@ -13140,7 +13296,7 @@ var init_users = __esm({
|
|
|
13140
13296
|
method: "DELETE",
|
|
13141
13297
|
path: "/user/sessions/:sessionId",
|
|
13142
13298
|
params: SessionIdPath,
|
|
13143
|
-
response:
|
|
13299
|
+
response: Schema103.Struct({ success: Schema103.Boolean }),
|
|
13144
13300
|
summary: "Revoke a specific session",
|
|
13145
13301
|
tags: ["users"]
|
|
13146
13302
|
}),
|
|
@@ -13170,521 +13326,521 @@ var init_users = __esm({
|
|
|
13170
13326
|
});
|
|
13171
13327
|
|
|
13172
13328
|
// ../contract/dist/schemas/webhooks.js
|
|
13173
|
-
import { Schema as
|
|
13329
|
+
import { Schema as Schema104 } from "effect";
|
|
13174
13330
|
var WebhookStatus, WebhookPeriod, WebhookEnvironment, ProjectRef3, GetWebhookConfigResult, UpdateWebhookConfigInput, UpdateWebhookConfigResult, WebhookDelivery, WebhookDeliveryDetail, ListWebhookDeliveriesQuery, ListWebhookDeliveriesResult, ReplayDeliveryResult, FailedDeliveriesQuery, FailedDelivery, FailedDeliveriesResult, WebhookStatsQuery, WebhookStatsResult, WebhooksAdminOverviewResult, AdminProjectDeliveriesQuery, AdminProjectDeliveryItem, AdminProjectDeliveriesResult, BulkReplayInput, BulkReplayResult;
|
|
13175
13331
|
var init_webhooks = __esm({
|
|
13176
13332
|
"../contract/dist/schemas/webhooks.js"() {
|
|
13177
13333
|
"use strict";
|
|
13178
|
-
WebhookStatus =
|
|
13179
|
-
WebhookPeriod =
|
|
13180
|
-
WebhookEnvironment =
|
|
13181
|
-
id:
|
|
13182
|
-
name:
|
|
13183
|
-
webhookUrl:
|
|
13184
|
-
hasSecret:
|
|
13185
|
-
updatedAt:
|
|
13186
|
-
});
|
|
13187
|
-
ProjectRef3 =
|
|
13188
|
-
id:
|
|
13189
|
-
name:
|
|
13190
|
-
slug:
|
|
13191
|
-
});
|
|
13192
|
-
GetWebhookConfigResult =
|
|
13334
|
+
WebhookStatus = Schema104.Literal("pending", "queued", "delivered", "failed", "skipped");
|
|
13335
|
+
WebhookPeriod = Schema104.Literal("day", "week", "month");
|
|
13336
|
+
WebhookEnvironment = Schema104.Struct({
|
|
13337
|
+
id: Schema104.String,
|
|
13338
|
+
name: Schema104.String,
|
|
13339
|
+
webhookUrl: Schema104.NullOr(Schema104.String),
|
|
13340
|
+
hasSecret: Schema104.Boolean,
|
|
13341
|
+
updatedAt: Schema104.String
|
|
13342
|
+
});
|
|
13343
|
+
ProjectRef3 = Schema104.Struct({
|
|
13344
|
+
id: Schema104.String,
|
|
13345
|
+
name: Schema104.String,
|
|
13346
|
+
slug: Schema104.String
|
|
13347
|
+
});
|
|
13348
|
+
GetWebhookConfigResult = Schema104.Struct({
|
|
13193
13349
|
app: ProjectRef3,
|
|
13194
|
-
environments:
|
|
13195
|
-
supportedEvents:
|
|
13196
|
-
});
|
|
13197
|
-
UpdateWebhookConfigInput =
|
|
13198
|
-
environmentId:
|
|
13199
|
-
webhookUrl:
|
|
13200
|
-
regenerateSecret:
|
|
13201
|
-
});
|
|
13202
|
-
UpdateWebhookConfigResult =
|
|
13203
|
-
success:
|
|
13204
|
-
webhookUrl:
|
|
13205
|
-
secretGenerated:
|
|
13206
|
-
webhookSecretPrefix:
|
|
13207
|
-
});
|
|
13208
|
-
WebhookDelivery =
|
|
13209
|
-
id:
|
|
13210
|
-
event:
|
|
13211
|
-
url:
|
|
13350
|
+
environments: Schema104.Array(WebhookEnvironment),
|
|
13351
|
+
supportedEvents: Schema104.Array(Schema104.String)
|
|
13352
|
+
});
|
|
13353
|
+
UpdateWebhookConfigInput = Schema104.Struct({
|
|
13354
|
+
environmentId: Schema104.String,
|
|
13355
|
+
webhookUrl: Schema104.NullOr(Schema104.String),
|
|
13356
|
+
regenerateSecret: Schema104.optional(Schema104.Boolean)
|
|
13357
|
+
});
|
|
13358
|
+
UpdateWebhookConfigResult = Schema104.Struct({
|
|
13359
|
+
success: Schema104.Boolean,
|
|
13360
|
+
webhookUrl: Schema104.NullOr(Schema104.String),
|
|
13361
|
+
secretGenerated: Schema104.Boolean,
|
|
13362
|
+
webhookSecretPrefix: Schema104.optional(Schema104.String)
|
|
13363
|
+
});
|
|
13364
|
+
WebhookDelivery = Schema104.Struct({
|
|
13365
|
+
id: Schema104.String,
|
|
13366
|
+
event: Schema104.String,
|
|
13367
|
+
url: Schema104.String,
|
|
13212
13368
|
status: WebhookStatus,
|
|
13213
|
-
retryCount:
|
|
13214
|
-
responseStatus:
|
|
13215
|
-
error:
|
|
13216
|
-
createdAt:
|
|
13217
|
-
queuedAt:
|
|
13218
|
-
deliveredAt:
|
|
13219
|
-
failedAt:
|
|
13220
|
-
});
|
|
13221
|
-
WebhookDeliveryDetail =
|
|
13222
|
-
id:
|
|
13223
|
-
event:
|
|
13224
|
-
url:
|
|
13225
|
-
payload:
|
|
13369
|
+
retryCount: Schema104.Number,
|
|
13370
|
+
responseStatus: Schema104.NullOr(Schema104.Number),
|
|
13371
|
+
error: Schema104.NullOr(Schema104.String),
|
|
13372
|
+
createdAt: Schema104.String,
|
|
13373
|
+
queuedAt: Schema104.NullOr(Schema104.String),
|
|
13374
|
+
deliveredAt: Schema104.NullOr(Schema104.String),
|
|
13375
|
+
failedAt: Schema104.NullOr(Schema104.String)
|
|
13376
|
+
});
|
|
13377
|
+
WebhookDeliveryDetail = Schema104.Struct({
|
|
13378
|
+
id: Schema104.String,
|
|
13379
|
+
event: Schema104.String,
|
|
13380
|
+
url: Schema104.String,
|
|
13381
|
+
payload: Schema104.Record({ key: Schema104.String, value: Schema104.Unknown }),
|
|
13226
13382
|
status: WebhookStatus,
|
|
13227
|
-
messageId:
|
|
13228
|
-
responseStatus:
|
|
13229
|
-
error:
|
|
13230
|
-
retryCount:
|
|
13231
|
-
createdAt:
|
|
13232
|
-
queuedAt:
|
|
13233
|
-
deliveredAt:
|
|
13234
|
-
failedAt:
|
|
13235
|
-
});
|
|
13236
|
-
ListWebhookDeliveriesQuery =
|
|
13237
|
-
status:
|
|
13238
|
-
event:
|
|
13239
|
-
limit:
|
|
13240
|
-
offset:
|
|
13241
|
-
environmentId:
|
|
13242
|
-
});
|
|
13243
|
-
ListWebhookDeliveriesResult =
|
|
13244
|
-
deliveries:
|
|
13245
|
-
total:
|
|
13246
|
-
limit:
|
|
13247
|
-
offset:
|
|
13248
|
-
});
|
|
13249
|
-
ReplayDeliveryResult =
|
|
13250
|
-
success:
|
|
13251
|
-
newDeliveryId:
|
|
13252
|
-
messageId:
|
|
13253
|
-
});
|
|
13254
|
-
FailedDeliveriesQuery =
|
|
13255
|
-
limit:
|
|
13256
|
-
});
|
|
13257
|
-
FailedDelivery =
|
|
13258
|
-
id:
|
|
13259
|
-
event:
|
|
13260
|
-
url:
|
|
13261
|
-
error:
|
|
13262
|
-
retryCount:
|
|
13263
|
-
createdAt:
|
|
13264
|
-
failedAt:
|
|
13265
|
-
});
|
|
13266
|
-
FailedDeliveriesResult =
|
|
13267
|
-
deliveries:
|
|
13268
|
-
total:
|
|
13269
|
-
});
|
|
13270
|
-
WebhookStatsQuery =
|
|
13271
|
-
period:
|
|
13272
|
-
});
|
|
13273
|
-
WebhookStatsResult =
|
|
13383
|
+
messageId: Schema104.NullOr(Schema104.String),
|
|
13384
|
+
responseStatus: Schema104.NullOr(Schema104.Number),
|
|
13385
|
+
error: Schema104.NullOr(Schema104.String),
|
|
13386
|
+
retryCount: Schema104.Number,
|
|
13387
|
+
createdAt: Schema104.String,
|
|
13388
|
+
queuedAt: Schema104.NullOr(Schema104.String),
|
|
13389
|
+
deliveredAt: Schema104.NullOr(Schema104.String),
|
|
13390
|
+
failedAt: Schema104.NullOr(Schema104.String)
|
|
13391
|
+
});
|
|
13392
|
+
ListWebhookDeliveriesQuery = Schema104.Struct({
|
|
13393
|
+
status: Schema104.optional(WebhookStatus),
|
|
13394
|
+
event: Schema104.optional(Schema104.String),
|
|
13395
|
+
limit: Schema104.optional(Schema104.String),
|
|
13396
|
+
offset: Schema104.optional(Schema104.String),
|
|
13397
|
+
environmentId: Schema104.optional(Schema104.String)
|
|
13398
|
+
});
|
|
13399
|
+
ListWebhookDeliveriesResult = Schema104.Struct({
|
|
13400
|
+
deliveries: Schema104.Array(WebhookDelivery),
|
|
13401
|
+
total: Schema104.Number,
|
|
13402
|
+
limit: Schema104.Number,
|
|
13403
|
+
offset: Schema104.Number
|
|
13404
|
+
});
|
|
13405
|
+
ReplayDeliveryResult = Schema104.Struct({
|
|
13406
|
+
success: Schema104.Boolean,
|
|
13407
|
+
newDeliveryId: Schema104.NullOr(Schema104.String),
|
|
13408
|
+
messageId: Schema104.NullOr(Schema104.String)
|
|
13409
|
+
});
|
|
13410
|
+
FailedDeliveriesQuery = Schema104.Struct({
|
|
13411
|
+
limit: Schema104.optional(Schema104.String)
|
|
13412
|
+
});
|
|
13413
|
+
FailedDelivery = Schema104.Struct({
|
|
13414
|
+
id: Schema104.String,
|
|
13415
|
+
event: Schema104.String,
|
|
13416
|
+
url: Schema104.String,
|
|
13417
|
+
error: Schema104.NullOr(Schema104.String),
|
|
13418
|
+
retryCount: Schema104.Number,
|
|
13419
|
+
createdAt: Schema104.String,
|
|
13420
|
+
failedAt: Schema104.NullOr(Schema104.String)
|
|
13421
|
+
});
|
|
13422
|
+
FailedDeliveriesResult = Schema104.Struct({
|
|
13423
|
+
deliveries: Schema104.Array(FailedDelivery),
|
|
13424
|
+
total: Schema104.Number
|
|
13425
|
+
});
|
|
13426
|
+
WebhookStatsQuery = Schema104.Struct({
|
|
13427
|
+
period: Schema104.optional(WebhookPeriod)
|
|
13428
|
+
});
|
|
13429
|
+
WebhookStatsResult = Schema104.Struct({
|
|
13274
13430
|
period: WebhookPeriod,
|
|
13275
|
-
totals:
|
|
13276
|
-
total:
|
|
13277
|
-
delivered:
|
|
13278
|
-
failed:
|
|
13279
|
-
pending:
|
|
13280
|
-
deliveryRate:
|
|
13281
|
-
}),
|
|
13282
|
-
byEvent:
|
|
13283
|
-
event:
|
|
13284
|
-
count:
|
|
13431
|
+
totals: Schema104.Struct({
|
|
13432
|
+
total: Schema104.Number,
|
|
13433
|
+
delivered: Schema104.Number,
|
|
13434
|
+
failed: Schema104.Number,
|
|
13435
|
+
pending: Schema104.Number,
|
|
13436
|
+
deliveryRate: Schema104.Number
|
|
13437
|
+
}),
|
|
13438
|
+
byEvent: Schema104.Array(Schema104.Struct({
|
|
13439
|
+
event: Schema104.String,
|
|
13440
|
+
count: Schema104.Number
|
|
13285
13441
|
})),
|
|
13286
|
-
byStatus:
|
|
13442
|
+
byStatus: Schema104.Array(Schema104.Struct({
|
|
13287
13443
|
status: WebhookStatus,
|
|
13288
|
-
count:
|
|
13444
|
+
count: Schema104.Number
|
|
13289
13445
|
}))
|
|
13290
13446
|
});
|
|
13291
|
-
WebhooksAdminOverviewResult =
|
|
13447
|
+
WebhooksAdminOverviewResult = Schema104.Struct({
|
|
13292
13448
|
period: WebhookPeriod,
|
|
13293
|
-
totals:
|
|
13294
|
-
total:
|
|
13295
|
-
delivered:
|
|
13296
|
-
failed:
|
|
13297
|
-
pending:
|
|
13298
|
-
deliveryRate:
|
|
13299
|
-
}),
|
|
13300
|
-
byProject:
|
|
13301
|
-
projectId:
|
|
13302
|
-
projectName:
|
|
13303
|
-
total:
|
|
13304
|
-
delivered:
|
|
13305
|
-
failed:
|
|
13306
|
-
deliveryRate:
|
|
13449
|
+
totals: Schema104.Struct({
|
|
13450
|
+
total: Schema104.Number,
|
|
13451
|
+
delivered: Schema104.Number,
|
|
13452
|
+
failed: Schema104.Number,
|
|
13453
|
+
pending: Schema104.Number,
|
|
13454
|
+
deliveryRate: Schema104.Number
|
|
13455
|
+
}),
|
|
13456
|
+
byProject: Schema104.Array(Schema104.Struct({
|
|
13457
|
+
projectId: Schema104.String,
|
|
13458
|
+
projectName: Schema104.String,
|
|
13459
|
+
total: Schema104.Number,
|
|
13460
|
+
delivered: Schema104.Number,
|
|
13461
|
+
failed: Schema104.Number,
|
|
13462
|
+
deliveryRate: Schema104.Number
|
|
13307
13463
|
})),
|
|
13308
|
-
byEvent:
|
|
13309
|
-
event:
|
|
13310
|
-
count:
|
|
13464
|
+
byEvent: Schema104.Array(Schema104.Struct({
|
|
13465
|
+
event: Schema104.String,
|
|
13466
|
+
count: Schema104.Number
|
|
13311
13467
|
})),
|
|
13312
|
-
recentFailures:
|
|
13313
|
-
id:
|
|
13314
|
-
projectId:
|
|
13315
|
-
projectName:
|
|
13316
|
-
event:
|
|
13317
|
-
url:
|
|
13318
|
-
error:
|
|
13319
|
-
retryCount:
|
|
13320
|
-
responseStatus:
|
|
13321
|
-
timestamp:
|
|
13322
|
-
failedAt:
|
|
13468
|
+
recentFailures: Schema104.Array(Schema104.Struct({
|
|
13469
|
+
id: Schema104.String,
|
|
13470
|
+
projectId: Schema104.String,
|
|
13471
|
+
projectName: Schema104.String,
|
|
13472
|
+
event: Schema104.String,
|
|
13473
|
+
url: Schema104.String,
|
|
13474
|
+
error: Schema104.NullOr(Schema104.String),
|
|
13475
|
+
retryCount: Schema104.Number,
|
|
13476
|
+
responseStatus: Schema104.NullOr(Schema104.Number),
|
|
13477
|
+
timestamp: Schema104.String,
|
|
13478
|
+
failedAt: Schema104.NullOr(Schema104.String)
|
|
13323
13479
|
}))
|
|
13324
13480
|
});
|
|
13325
|
-
AdminProjectDeliveriesQuery =
|
|
13326
|
-
status:
|
|
13327
|
-
limit:
|
|
13481
|
+
AdminProjectDeliveriesQuery = Schema104.Struct({
|
|
13482
|
+
status: Schema104.optional(WebhookStatus),
|
|
13483
|
+
limit: Schema104.optional(Schema104.String)
|
|
13328
13484
|
});
|
|
13329
|
-
AdminProjectDeliveryItem =
|
|
13330
|
-
id:
|
|
13331
|
-
event:
|
|
13332
|
-
url:
|
|
13485
|
+
AdminProjectDeliveryItem = Schema104.Struct({
|
|
13486
|
+
id: Schema104.String,
|
|
13487
|
+
event: Schema104.String,
|
|
13488
|
+
url: Schema104.String,
|
|
13333
13489
|
status: WebhookStatus,
|
|
13334
|
-
retryCount:
|
|
13335
|
-
responseStatus:
|
|
13336
|
-
error:
|
|
13337
|
-
timestamp:
|
|
13338
|
-
queuedAt:
|
|
13339
|
-
deliveredAt:
|
|
13340
|
-
failedAt:
|
|
13341
|
-
});
|
|
13342
|
-
AdminProjectDeliveriesResult =
|
|
13343
|
-
BulkReplayInput =
|
|
13344
|
-
projectId:
|
|
13345
|
-
deliveryIds:
|
|
13346
|
-
limit:
|
|
13347
|
-
});
|
|
13348
|
-
BulkReplayResult =
|
|
13349
|
-
total:
|
|
13350
|
-
succeeded:
|
|
13351
|
-
failed:
|
|
13352
|
-
errors:
|
|
13353
|
-
deliveryId:
|
|
13354
|
-
error:
|
|
13490
|
+
retryCount: Schema104.Number,
|
|
13491
|
+
responseStatus: Schema104.NullOr(Schema104.Number),
|
|
13492
|
+
error: Schema104.NullOr(Schema104.String),
|
|
13493
|
+
timestamp: Schema104.String,
|
|
13494
|
+
queuedAt: Schema104.NullOr(Schema104.String),
|
|
13495
|
+
deliveredAt: Schema104.NullOr(Schema104.String),
|
|
13496
|
+
failedAt: Schema104.NullOr(Schema104.String)
|
|
13497
|
+
});
|
|
13498
|
+
AdminProjectDeliveriesResult = Schema104.Array(AdminProjectDeliveryItem);
|
|
13499
|
+
BulkReplayInput = Schema104.Struct({
|
|
13500
|
+
projectId: Schema104.String,
|
|
13501
|
+
deliveryIds: Schema104.optional(Schema104.Array(Schema104.String)),
|
|
13502
|
+
limit: Schema104.optional(Schema104.Number)
|
|
13503
|
+
});
|
|
13504
|
+
BulkReplayResult = Schema104.Struct({
|
|
13505
|
+
total: Schema104.Number,
|
|
13506
|
+
succeeded: Schema104.Number,
|
|
13507
|
+
failed: Schema104.Number,
|
|
13508
|
+
errors: Schema104.optional(Schema104.Array(Schema104.Struct({
|
|
13509
|
+
deliveryId: Schema104.String,
|
|
13510
|
+
error: Schema104.String
|
|
13355
13511
|
})))
|
|
13356
13512
|
});
|
|
13357
13513
|
}
|
|
13358
13514
|
});
|
|
13359
13515
|
|
|
13360
13516
|
// ../contract/dist/errors.js
|
|
13361
|
-
import { Schema as
|
|
13517
|
+
import { Schema as Schema105 } from "effect";
|
|
13362
13518
|
var BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitedError, InternalServerError, ApiError;
|
|
13363
13519
|
var init_errors = __esm({
|
|
13364
13520
|
"../contract/dist/errors.js"() {
|
|
13365
13521
|
"use strict";
|
|
13366
|
-
BadRequestError =
|
|
13367
|
-
_tag:
|
|
13368
|
-
code:
|
|
13369
|
-
message:
|
|
13370
|
-
details:
|
|
13522
|
+
BadRequestError = Schema105.Struct({
|
|
13523
|
+
_tag: Schema105.Literal("BadRequest"),
|
|
13524
|
+
code: Schema105.String,
|
|
13525
|
+
message: Schema105.String,
|
|
13526
|
+
details: Schema105.optional(Schema105.Unknown)
|
|
13371
13527
|
});
|
|
13372
|
-
UnauthorizedError =
|
|
13373
|
-
_tag:
|
|
13374
|
-
code:
|
|
13375
|
-
message:
|
|
13528
|
+
UnauthorizedError = Schema105.Struct({
|
|
13529
|
+
_tag: Schema105.Literal("Unauthorized"),
|
|
13530
|
+
code: Schema105.String,
|
|
13531
|
+
message: Schema105.String
|
|
13376
13532
|
});
|
|
13377
|
-
ForbiddenError =
|
|
13378
|
-
_tag:
|
|
13379
|
-
code:
|
|
13380
|
-
message:
|
|
13533
|
+
ForbiddenError = Schema105.Struct({
|
|
13534
|
+
_tag: Schema105.Literal("Forbidden"),
|
|
13535
|
+
code: Schema105.String,
|
|
13536
|
+
message: Schema105.String
|
|
13381
13537
|
});
|
|
13382
|
-
NotFoundError =
|
|
13383
|
-
_tag:
|
|
13384
|
-
code:
|
|
13385
|
-
message:
|
|
13538
|
+
NotFoundError = Schema105.Struct({
|
|
13539
|
+
_tag: Schema105.Literal("NotFound"),
|
|
13540
|
+
code: Schema105.String,
|
|
13541
|
+
message: Schema105.String
|
|
13386
13542
|
});
|
|
13387
|
-
ConflictError =
|
|
13388
|
-
_tag:
|
|
13389
|
-
code:
|
|
13390
|
-
message:
|
|
13543
|
+
ConflictError = Schema105.Struct({
|
|
13544
|
+
_tag: Schema105.Literal("Conflict"),
|
|
13545
|
+
code: Schema105.String,
|
|
13546
|
+
message: Schema105.String
|
|
13391
13547
|
});
|
|
13392
|
-
UnprocessableEntityError =
|
|
13393
|
-
_tag:
|
|
13394
|
-
code:
|
|
13395
|
-
message:
|
|
13396
|
-
details:
|
|
13548
|
+
UnprocessableEntityError = Schema105.Struct({
|
|
13549
|
+
_tag: Schema105.Literal("UnprocessableEntity"),
|
|
13550
|
+
code: Schema105.String,
|
|
13551
|
+
message: Schema105.String,
|
|
13552
|
+
details: Schema105.optional(Schema105.Unknown)
|
|
13397
13553
|
});
|
|
13398
|
-
RateLimitedError =
|
|
13399
|
-
_tag:
|
|
13400
|
-
code:
|
|
13401
|
-
message:
|
|
13402
|
-
retryAfterSeconds:
|
|
13554
|
+
RateLimitedError = Schema105.Struct({
|
|
13555
|
+
_tag: Schema105.Literal("RateLimited"),
|
|
13556
|
+
code: Schema105.String,
|
|
13557
|
+
message: Schema105.String,
|
|
13558
|
+
retryAfterSeconds: Schema105.optional(Schema105.Number)
|
|
13403
13559
|
});
|
|
13404
|
-
InternalServerError =
|
|
13405
|
-
_tag:
|
|
13406
|
-
code:
|
|
13407
|
-
message:
|
|
13560
|
+
InternalServerError = Schema105.Struct({
|
|
13561
|
+
_tag: Schema105.Literal("InternalServer"),
|
|
13562
|
+
code: Schema105.String,
|
|
13563
|
+
message: Schema105.String
|
|
13408
13564
|
});
|
|
13409
|
-
ApiError =
|
|
13565
|
+
ApiError = Schema105.Union(BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitedError, InternalServerError);
|
|
13410
13566
|
}
|
|
13411
13567
|
});
|
|
13412
13568
|
|
|
13413
13569
|
// ../contract/dist/schemas/ai.js
|
|
13414
|
-
import { Schema as
|
|
13570
|
+
import { Schema as Schema106 } from "effect";
|
|
13415
13571
|
var AIUsagePeriod, AIModelCapability, AIModel, GetModelsResponse, TokensBreakdown, CostBreakdown, ModelUsage, TypeUsage, GetUsageResponse, CurrentRateLimitUsage, GetRateLimitResponse;
|
|
13416
13572
|
var init_ai = __esm({
|
|
13417
13573
|
"../contract/dist/schemas/ai.js"() {
|
|
13418
13574
|
"use strict";
|
|
13419
|
-
AIUsagePeriod =
|
|
13420
|
-
AIModelCapability =
|
|
13421
|
-
AIModel =
|
|
13422
|
-
id:
|
|
13423
|
-
name:
|
|
13424
|
-
contextWindow:
|
|
13425
|
-
capabilities:
|
|
13426
|
-
inputCostPer1M:
|
|
13427
|
-
outputCostPer1M:
|
|
13428
|
-
description:
|
|
13429
|
-
});
|
|
13430
|
-
GetModelsResponse =
|
|
13431
|
-
models:
|
|
13432
|
-
nextCursor:
|
|
13433
|
-
hasMore:
|
|
13434
|
-
});
|
|
13435
|
-
TokensBreakdown =
|
|
13436
|
-
input:
|
|
13437
|
-
output:
|
|
13438
|
-
total:
|
|
13439
|
-
});
|
|
13440
|
-
CostBreakdown =
|
|
13441
|
-
microdollars:
|
|
13442
|
-
formatted:
|
|
13443
|
-
});
|
|
13444
|
-
ModelUsage =
|
|
13445
|
-
requests:
|
|
13446
|
-
tokens:
|
|
13447
|
-
cost:
|
|
13448
|
-
});
|
|
13449
|
-
TypeUsage =
|
|
13450
|
-
requests:
|
|
13451
|
-
tokens:
|
|
13452
|
-
});
|
|
13453
|
-
GetUsageResponse =
|
|
13575
|
+
AIUsagePeriod = Schema106.Literal("day", "week", "month");
|
|
13576
|
+
AIModelCapability = Schema106.Literal("chat", "vision", "tool", "embedding");
|
|
13577
|
+
AIModel = Schema106.Struct({
|
|
13578
|
+
id: Schema106.String,
|
|
13579
|
+
name: Schema106.String,
|
|
13580
|
+
contextWindow: Schema106.Number,
|
|
13581
|
+
capabilities: Schema106.Array(AIModelCapability),
|
|
13582
|
+
inputCostPer1M: Schema106.Number,
|
|
13583
|
+
outputCostPer1M: Schema106.Number,
|
|
13584
|
+
description: Schema106.optional(Schema106.String)
|
|
13585
|
+
});
|
|
13586
|
+
GetModelsResponse = Schema106.Struct({
|
|
13587
|
+
models: Schema106.Array(AIModel),
|
|
13588
|
+
nextCursor: Schema106.NullOr(Schema106.String),
|
|
13589
|
+
hasMore: Schema106.Boolean
|
|
13590
|
+
});
|
|
13591
|
+
TokensBreakdown = Schema106.Struct({
|
|
13592
|
+
input: Schema106.Number,
|
|
13593
|
+
output: Schema106.Number,
|
|
13594
|
+
total: Schema106.Number
|
|
13595
|
+
});
|
|
13596
|
+
CostBreakdown = Schema106.Struct({
|
|
13597
|
+
microdollars: Schema106.Number,
|
|
13598
|
+
formatted: Schema106.String
|
|
13599
|
+
});
|
|
13600
|
+
ModelUsage = Schema106.Struct({
|
|
13601
|
+
requests: Schema106.Number,
|
|
13602
|
+
tokens: Schema106.Number,
|
|
13603
|
+
cost: Schema106.Number
|
|
13604
|
+
});
|
|
13605
|
+
TypeUsage = Schema106.Struct({
|
|
13606
|
+
requests: Schema106.Number,
|
|
13607
|
+
tokens: Schema106.Number
|
|
13608
|
+
});
|
|
13609
|
+
GetUsageResponse = Schema106.Struct({
|
|
13454
13610
|
period: AIUsagePeriod,
|
|
13455
|
-
requests:
|
|
13611
|
+
requests: Schema106.Number,
|
|
13456
13612
|
tokens: TokensBreakdown,
|
|
13457
13613
|
cost: CostBreakdown,
|
|
13458
|
-
byModel:
|
|
13459
|
-
byType:
|
|
13460
|
-
});
|
|
13461
|
-
CurrentRateLimitUsage =
|
|
13462
|
-
requestsThisMinute:
|
|
13463
|
-
requestsToday:
|
|
13464
|
-
tokensThisMinute:
|
|
13465
|
-
tokensToday:
|
|
13466
|
-
costToday:
|
|
13467
|
-
});
|
|
13468
|
-
GetRateLimitResponse =
|
|
13469
|
-
requestsPerMinute:
|
|
13470
|
-
requestsPerDay:
|
|
13471
|
-
tokensPerMinute:
|
|
13472
|
-
tokensPerDay:
|
|
13473
|
-
costPerDayMicrodollars:
|
|
13614
|
+
byModel: Schema106.Record({ key: Schema106.String, value: ModelUsage }),
|
|
13615
|
+
byType: Schema106.Record({ key: Schema106.String, value: TypeUsage })
|
|
13616
|
+
});
|
|
13617
|
+
CurrentRateLimitUsage = Schema106.Struct({
|
|
13618
|
+
requestsThisMinute: Schema106.Number,
|
|
13619
|
+
requestsToday: Schema106.Number,
|
|
13620
|
+
tokensThisMinute: Schema106.Number,
|
|
13621
|
+
tokensToday: Schema106.Number,
|
|
13622
|
+
costToday: Schema106.Number
|
|
13623
|
+
});
|
|
13624
|
+
GetRateLimitResponse = Schema106.Struct({
|
|
13625
|
+
requestsPerMinute: Schema106.NullOr(Schema106.Number),
|
|
13626
|
+
requestsPerDay: Schema106.NullOr(Schema106.Number),
|
|
13627
|
+
tokensPerMinute: Schema106.NullOr(Schema106.Number),
|
|
13628
|
+
tokensPerDay: Schema106.NullOr(Schema106.Number),
|
|
13629
|
+
costPerDayMicrodollars: Schema106.NullOr(Schema106.Number),
|
|
13474
13630
|
current: CurrentRateLimitUsage
|
|
13475
13631
|
});
|
|
13476
13632
|
}
|
|
13477
13633
|
});
|
|
13478
13634
|
|
|
13479
13635
|
// ../contract/dist/schemas/billing.js
|
|
13480
|
-
import { Schema as
|
|
13636
|
+
import { Schema as Schema107 } from "effect";
|
|
13481
13637
|
var SdkBillingInterval, SdkBillingSubscriptionStatus, SdkBillingStatusLevel, SdkBillingType, SdkBillingTrustLevel, SdkBillingPlan, BillingPlansListResponse, SdkBillingSubscription, BillingSubscriptionResponse, BillingCheckoutRequest, BillingCheckoutResponse, BillingPortalRequest, BillingPortalResponse, SdkBillingBalanceInfo, SdkBillingStatusInfo, BillingBalanceResponse, SdkBillingUsagePeriod, SdkBillingUsageMetrics, BillingUsageResponse;
|
|
13482
13638
|
var init_billing = __esm({
|
|
13483
13639
|
"../contract/dist/schemas/billing.js"() {
|
|
13484
13640
|
"use strict";
|
|
13485
|
-
SdkBillingInterval =
|
|
13486
|
-
SdkBillingSubscriptionStatus =
|
|
13487
|
-
SdkBillingStatusLevel =
|
|
13488
|
-
SdkBillingType =
|
|
13489
|
-
SdkBillingTrustLevel =
|
|
13490
|
-
SdkBillingPlan =
|
|
13491
|
-
id:
|
|
13492
|
-
slug:
|
|
13493
|
-
name:
|
|
13494
|
-
description:
|
|
13495
|
-
features:
|
|
13496
|
-
monthlyPrice:
|
|
13497
|
-
annualPrice:
|
|
13498
|
-
lifetimePrice:
|
|
13499
|
-
isPopular:
|
|
13500
|
-
isActive:
|
|
13501
|
-
sortOrder:
|
|
13502
|
-
});
|
|
13503
|
-
BillingPlansListResponse =
|
|
13504
|
-
SdkBillingSubscription =
|
|
13505
|
-
id:
|
|
13506
|
-
userId:
|
|
13507
|
-
planId:
|
|
13508
|
-
planSlug:
|
|
13509
|
-
planName:
|
|
13641
|
+
SdkBillingInterval = Schema107.Literal("monthly", "annual", "lifetime");
|
|
13642
|
+
SdkBillingSubscriptionStatus = Schema107.Literal("active", "canceled", "past_due", "incomplete", "trialing", "paused");
|
|
13643
|
+
SdkBillingStatusLevel = Schema107.Literal("healthy", "low", "critical", "exhausted");
|
|
13644
|
+
SdkBillingType = Schema107.Literal("prepaid", "postpaid", "enterprise");
|
|
13645
|
+
SdkBillingTrustLevel = Schema107.Literal("new", "standard", "trusted", "enterprise");
|
|
13646
|
+
SdkBillingPlan = Schema107.Struct({
|
|
13647
|
+
id: Schema107.String,
|
|
13648
|
+
slug: Schema107.String,
|
|
13649
|
+
name: Schema107.String,
|
|
13650
|
+
description: Schema107.NullOr(Schema107.String),
|
|
13651
|
+
features: Schema107.Array(Schema107.String),
|
|
13652
|
+
monthlyPrice: Schema107.Number,
|
|
13653
|
+
annualPrice: Schema107.Number,
|
|
13654
|
+
lifetimePrice: Schema107.NullOr(Schema107.Number),
|
|
13655
|
+
isPopular: Schema107.Boolean,
|
|
13656
|
+
isActive: Schema107.Boolean,
|
|
13657
|
+
sortOrder: Schema107.Number
|
|
13658
|
+
});
|
|
13659
|
+
BillingPlansListResponse = Schema107.Array(SdkBillingPlan);
|
|
13660
|
+
SdkBillingSubscription = Schema107.Struct({
|
|
13661
|
+
id: Schema107.String,
|
|
13662
|
+
userId: Schema107.String,
|
|
13663
|
+
planId: Schema107.String,
|
|
13664
|
+
planSlug: Schema107.String,
|
|
13665
|
+
planName: Schema107.String,
|
|
13510
13666
|
status: SdkBillingSubscriptionStatus,
|
|
13511
13667
|
interval: SdkBillingInterval,
|
|
13512
|
-
currentPeriodStart:
|
|
13513
|
-
currentPeriodEnd:
|
|
13514
|
-
cancelAtPeriodEnd:
|
|
13515
|
-
trialEnd:
|
|
13516
|
-
});
|
|
13517
|
-
BillingSubscriptionResponse =
|
|
13518
|
-
BillingCheckoutRequest =
|
|
13519
|
-
userId:
|
|
13520
|
-
planSlug:
|
|
13668
|
+
currentPeriodStart: Schema107.NullOr(Schema107.String),
|
|
13669
|
+
currentPeriodEnd: Schema107.NullOr(Schema107.String),
|
|
13670
|
+
cancelAtPeriodEnd: Schema107.Boolean,
|
|
13671
|
+
trialEnd: Schema107.NullOr(Schema107.String)
|
|
13672
|
+
});
|
|
13673
|
+
BillingSubscriptionResponse = Schema107.NullOr(SdkBillingSubscription);
|
|
13674
|
+
BillingCheckoutRequest = Schema107.Struct({
|
|
13675
|
+
userId: Schema107.String,
|
|
13676
|
+
planSlug: Schema107.String,
|
|
13521
13677
|
interval: SdkBillingInterval,
|
|
13522
|
-
successUrl:
|
|
13523
|
-
cancelUrl:
|
|
13678
|
+
successUrl: Schema107.String,
|
|
13679
|
+
cancelUrl: Schema107.String
|
|
13524
13680
|
});
|
|
13525
|
-
BillingCheckoutResponse =
|
|
13526
|
-
checkoutUrl:
|
|
13527
|
-
sessionId:
|
|
13681
|
+
BillingCheckoutResponse = Schema107.Struct({
|
|
13682
|
+
checkoutUrl: Schema107.NullOr(Schema107.String),
|
|
13683
|
+
sessionId: Schema107.String
|
|
13528
13684
|
});
|
|
13529
|
-
BillingPortalRequest =
|
|
13530
|
-
userId:
|
|
13531
|
-
returnUrl:
|
|
13685
|
+
BillingPortalRequest = Schema107.Struct({
|
|
13686
|
+
userId: Schema107.String,
|
|
13687
|
+
returnUrl: Schema107.String
|
|
13532
13688
|
});
|
|
13533
|
-
BillingPortalResponse =
|
|
13534
|
-
portalUrl:
|
|
13689
|
+
BillingPortalResponse = Schema107.Struct({
|
|
13690
|
+
portalUrl: Schema107.String
|
|
13535
13691
|
});
|
|
13536
|
-
SdkBillingBalanceInfo =
|
|
13537
|
-
current:
|
|
13538
|
-
currentFormatted:
|
|
13692
|
+
SdkBillingBalanceInfo = Schema107.Struct({
|
|
13693
|
+
current: Schema107.Number,
|
|
13694
|
+
currentFormatted: Schema107.String
|
|
13539
13695
|
});
|
|
13540
|
-
SdkBillingStatusInfo =
|
|
13696
|
+
SdkBillingStatusInfo = Schema107.Struct({
|
|
13541
13697
|
level: SdkBillingStatusLevel,
|
|
13542
|
-
isHealthy:
|
|
13543
|
-
isLow:
|
|
13544
|
-
alertThreshold:
|
|
13698
|
+
isHealthy: Schema107.Boolean,
|
|
13699
|
+
isLow: Schema107.Boolean,
|
|
13700
|
+
alertThreshold: Schema107.Number
|
|
13545
13701
|
});
|
|
13546
|
-
BillingBalanceResponse =
|
|
13702
|
+
BillingBalanceResponse = Schema107.Struct({
|
|
13547
13703
|
balance: SdkBillingBalanceInfo,
|
|
13548
13704
|
status: SdkBillingStatusInfo,
|
|
13549
13705
|
billingType: SdkBillingType,
|
|
13550
13706
|
trustLevel: SdkBillingTrustLevel,
|
|
13551
|
-
spendingCap:
|
|
13552
|
-
currentMonthSpend:
|
|
13553
|
-
spendingCapPercent:
|
|
13554
|
-
gracePeriodEndsAt:
|
|
13555
|
-
isAdminOrg:
|
|
13556
|
-
});
|
|
13557
|
-
SdkBillingUsagePeriod =
|
|
13558
|
-
type:
|
|
13559
|
-
start:
|
|
13560
|
-
end:
|
|
13561
|
-
});
|
|
13562
|
-
SdkBillingUsageMetrics =
|
|
13563
|
-
aiCostMicrodollars:
|
|
13564
|
-
storageBytesUsed:
|
|
13565
|
-
storageEgressBytes:
|
|
13566
|
-
storageUploads:
|
|
13567
|
-
dbStorageBytes:
|
|
13568
|
-
dbComputeSeconds:
|
|
13569
|
-
emailSentCount:
|
|
13570
|
-
jobInvocationCount:
|
|
13571
|
-
cronActiveCount:
|
|
13572
|
-
notificationsSentCount:
|
|
13573
|
-
analyticsEventCount:
|
|
13574
|
-
webhookDeliveryCount:
|
|
13575
|
-
errorEventCount:
|
|
13576
|
-
authMau:
|
|
13577
|
-
});
|
|
13578
|
-
BillingUsageResponse =
|
|
13707
|
+
spendingCap: Schema107.NullOr(Schema107.Number),
|
|
13708
|
+
currentMonthSpend: Schema107.Number,
|
|
13709
|
+
spendingCapPercent: Schema107.NullOr(Schema107.Number),
|
|
13710
|
+
gracePeriodEndsAt: Schema107.NullOr(Schema107.String),
|
|
13711
|
+
isAdminOrg: Schema107.Boolean
|
|
13712
|
+
});
|
|
13713
|
+
SdkBillingUsagePeriod = Schema107.Struct({
|
|
13714
|
+
type: Schema107.Literal("month"),
|
|
13715
|
+
start: Schema107.String,
|
|
13716
|
+
end: Schema107.String
|
|
13717
|
+
});
|
|
13718
|
+
SdkBillingUsageMetrics = Schema107.Struct({
|
|
13719
|
+
aiCostMicrodollars: Schema107.Number,
|
|
13720
|
+
storageBytesUsed: Schema107.Number,
|
|
13721
|
+
storageEgressBytes: Schema107.Number,
|
|
13722
|
+
storageUploads: Schema107.Number,
|
|
13723
|
+
dbStorageBytes: Schema107.Number,
|
|
13724
|
+
dbComputeSeconds: Schema107.Number,
|
|
13725
|
+
emailSentCount: Schema107.Number,
|
|
13726
|
+
jobInvocationCount: Schema107.Number,
|
|
13727
|
+
cronActiveCount: Schema107.Number,
|
|
13728
|
+
notificationsSentCount: Schema107.Number,
|
|
13729
|
+
analyticsEventCount: Schema107.Number,
|
|
13730
|
+
webhookDeliveryCount: Schema107.Number,
|
|
13731
|
+
errorEventCount: Schema107.Number,
|
|
13732
|
+
authMau: Schema107.Number
|
|
13733
|
+
});
|
|
13734
|
+
BillingUsageResponse = Schema107.Struct({
|
|
13579
13735
|
period: SdkBillingUsagePeriod,
|
|
13580
|
-
metrics:
|
|
13736
|
+
metrics: Schema107.NullOr(SdkBillingUsageMetrics)
|
|
13581
13737
|
});
|
|
13582
13738
|
}
|
|
13583
13739
|
});
|
|
13584
13740
|
|
|
13585
13741
|
// ../contract/dist/schemas/consent.js
|
|
13586
|
-
import { Schema as
|
|
13742
|
+
import { Schema as Schema108 } from "effect";
|
|
13587
13743
|
var SdkConsentCategory, SdkConsentType, UserConsent, ConsentItem, SetConsentsRequest, SetConsentsResponse;
|
|
13588
13744
|
var init_consent = __esm({
|
|
13589
13745
|
"../contract/dist/schemas/consent.js"() {
|
|
13590
13746
|
"use strict";
|
|
13591
|
-
SdkConsentCategory =
|
|
13592
|
-
SdkConsentType =
|
|
13593
|
-
id:
|
|
13594
|
-
slug:
|
|
13747
|
+
SdkConsentCategory = Schema108.Literal("necessary", "analytics", "marketing", "preferences", "functional");
|
|
13748
|
+
SdkConsentType = Schema108.Struct({
|
|
13749
|
+
id: Schema108.String,
|
|
13750
|
+
slug: Schema108.String,
|
|
13595
13751
|
category: SdkConsentCategory,
|
|
13596
|
-
name:
|
|
13597
|
-
description:
|
|
13598
|
-
required:
|
|
13599
|
-
defaultEnabled:
|
|
13752
|
+
name: Schema108.String,
|
|
13753
|
+
description: Schema108.String,
|
|
13754
|
+
required: Schema108.Boolean,
|
|
13755
|
+
defaultEnabled: Schema108.Boolean
|
|
13600
13756
|
});
|
|
13601
|
-
UserConsent =
|
|
13602
|
-
slug:
|
|
13757
|
+
UserConsent = Schema108.Struct({
|
|
13758
|
+
slug: Schema108.String,
|
|
13603
13759
|
category: SdkConsentCategory,
|
|
13604
|
-
name:
|
|
13605
|
-
required:
|
|
13606
|
-
granted:
|
|
13607
|
-
grantedAt:
|
|
13608
|
-
version:
|
|
13760
|
+
name: Schema108.String,
|
|
13761
|
+
required: Schema108.Boolean,
|
|
13762
|
+
granted: Schema108.Boolean,
|
|
13763
|
+
grantedAt: Schema108.NullOr(Schema108.String),
|
|
13764
|
+
version: Schema108.NullOr(Schema108.Number)
|
|
13609
13765
|
});
|
|
13610
|
-
ConsentItem =
|
|
13611
|
-
slug:
|
|
13612
|
-
granted:
|
|
13766
|
+
ConsentItem = Schema108.Struct({
|
|
13767
|
+
slug: Schema108.String,
|
|
13768
|
+
granted: Schema108.Boolean
|
|
13613
13769
|
});
|
|
13614
|
-
SetConsentsRequest =
|
|
13615
|
-
userId:
|
|
13616
|
-
anonymousId:
|
|
13617
|
-
consents:
|
|
13618
|
-
source:
|
|
13619
|
-
userAgent:
|
|
13770
|
+
SetConsentsRequest = Schema108.Struct({
|
|
13771
|
+
userId: Schema108.optional(Schema108.String),
|
|
13772
|
+
anonymousId: Schema108.optional(Schema108.String),
|
|
13773
|
+
consents: Schema108.Array(ConsentItem),
|
|
13774
|
+
source: Schema108.optional(Schema108.Literal("banner", "settings", "api")),
|
|
13775
|
+
userAgent: Schema108.optional(Schema108.String)
|
|
13620
13776
|
});
|
|
13621
|
-
SetConsentsResponse =
|
|
13622
|
-
consents:
|
|
13777
|
+
SetConsentsResponse = Schema108.Struct({
|
|
13778
|
+
consents: Schema108.Array(ConsentItem)
|
|
13623
13779
|
});
|
|
13624
13780
|
}
|
|
13625
13781
|
});
|
|
13626
13782
|
|
|
13627
13783
|
// ../contract/dist/schemas/referrals.js
|
|
13628
|
-
import { Schema as
|
|
13784
|
+
import { Schema as Schema109 } from "effect";
|
|
13629
13785
|
var ReferralCodeStatus, ReferralLeaderboardPeriod, ReferralRewardKind, ReferralRewardConfig, ReferralRewardDefaults, GetCodeResponse, RegenerateCodeResponse, GetStatsResponse, RedeemRequest, RedeemResponse, ReferralLeaderboardEntry, ReferralLeaderboardResponse;
|
|
13630
13786
|
var init_referrals = __esm({
|
|
13631
13787
|
"../contract/dist/schemas/referrals.js"() {
|
|
13632
13788
|
"use strict";
|
|
13633
|
-
ReferralCodeStatus =
|
|
13634
|
-
ReferralLeaderboardPeriod =
|
|
13635
|
-
ReferralRewardKind =
|
|
13636
|
-
ReferralRewardConfig =
|
|
13789
|
+
ReferralCodeStatus = Schema109.Literal("pending", "completed", "expired");
|
|
13790
|
+
ReferralLeaderboardPeriod = Schema109.Literal("all", "month", "week");
|
|
13791
|
+
ReferralRewardKind = Schema109.Literal("points", "premium_trial", "discount", "credit");
|
|
13792
|
+
ReferralRewardConfig = Schema109.Struct({
|
|
13637
13793
|
type: ReferralRewardKind,
|
|
13638
|
-
points:
|
|
13639
|
-
days:
|
|
13640
|
-
discountPercent:
|
|
13641
|
-
creditCents:
|
|
13642
|
-
});
|
|
13643
|
-
ReferralRewardDefaults =
|
|
13644
|
-
referrerReward:
|
|
13645
|
-
refereeReward:
|
|
13646
|
-
doubleReward:
|
|
13647
|
-
minimumDaysBeforeReward:
|
|
13648
|
-
});
|
|
13649
|
-
GetCodeResponse =
|
|
13650
|
-
code:
|
|
13794
|
+
points: Schema109.optional(Schema109.Number),
|
|
13795
|
+
days: Schema109.optional(Schema109.Number),
|
|
13796
|
+
discountPercent: Schema109.optional(Schema109.Number),
|
|
13797
|
+
creditCents: Schema109.optional(Schema109.Number)
|
|
13798
|
+
});
|
|
13799
|
+
ReferralRewardDefaults = Schema109.Struct({
|
|
13800
|
+
referrerReward: Schema109.optional(ReferralRewardConfig),
|
|
13801
|
+
refereeReward: Schema109.optional(ReferralRewardConfig),
|
|
13802
|
+
doubleReward: Schema109.optional(Schema109.Boolean),
|
|
13803
|
+
minimumDaysBeforeReward: Schema109.optional(Schema109.Number)
|
|
13804
|
+
});
|
|
13805
|
+
GetCodeResponse = Schema109.Struct({
|
|
13806
|
+
code: Schema109.String,
|
|
13651
13807
|
status: ReferralCodeStatus
|
|
13652
13808
|
});
|
|
13653
|
-
RegenerateCodeResponse =
|
|
13654
|
-
code:
|
|
13655
|
-
totalReferrals:
|
|
13656
|
-
completedReferrals:
|
|
13657
|
-
pendingReferrals:
|
|
13658
|
-
});
|
|
13659
|
-
GetStatsResponse =
|
|
13660
|
-
totalReferrals:
|
|
13661
|
-
completedReferrals:
|
|
13662
|
-
pendingReferrals:
|
|
13663
|
-
});
|
|
13664
|
-
RedeemRequest =
|
|
13665
|
-
code:
|
|
13666
|
-
defaults:
|
|
13667
|
-
});
|
|
13668
|
-
RedeemResponse =
|
|
13669
|
-
success:
|
|
13670
|
-
rewardType:
|
|
13671
|
-
referredReward:
|
|
13672
|
-
referrerReward:
|
|
13673
|
-
});
|
|
13674
|
-
ReferralLeaderboardEntry =
|
|
13675
|
-
rank:
|
|
13676
|
-
userId:
|
|
13677
|
-
displayName:
|
|
13678
|
-
avatarUrl:
|
|
13679
|
-
value:
|
|
13680
|
-
isCurrentUser:
|
|
13681
|
-
metadata:
|
|
13682
|
-
submittedAt:
|
|
13683
|
-
});
|
|
13684
|
-
ReferralLeaderboardResponse =
|
|
13809
|
+
RegenerateCodeResponse = Schema109.Struct({
|
|
13810
|
+
code: Schema109.String,
|
|
13811
|
+
totalReferrals: Schema109.Number,
|
|
13812
|
+
completedReferrals: Schema109.Number,
|
|
13813
|
+
pendingReferrals: Schema109.Number
|
|
13814
|
+
});
|
|
13815
|
+
GetStatsResponse = Schema109.Struct({
|
|
13816
|
+
totalReferrals: Schema109.Number,
|
|
13817
|
+
completedReferrals: Schema109.Number,
|
|
13818
|
+
pendingReferrals: Schema109.Number
|
|
13819
|
+
});
|
|
13820
|
+
RedeemRequest = Schema109.Struct({
|
|
13821
|
+
code: Schema109.String,
|
|
13822
|
+
defaults: Schema109.optional(ReferralRewardDefaults)
|
|
13823
|
+
});
|
|
13824
|
+
RedeemResponse = Schema109.Struct({
|
|
13825
|
+
success: Schema109.Boolean,
|
|
13826
|
+
rewardType: Schema109.String,
|
|
13827
|
+
referredReward: Schema109.optional(Schema109.Record({ key: Schema109.String, value: Schema109.Unknown })),
|
|
13828
|
+
referrerReward: Schema109.optional(Schema109.Record({ key: Schema109.String, value: Schema109.Unknown }))
|
|
13829
|
+
});
|
|
13830
|
+
ReferralLeaderboardEntry = Schema109.Struct({
|
|
13831
|
+
rank: Schema109.Number,
|
|
13832
|
+
userId: Schema109.NullOr(Schema109.String),
|
|
13833
|
+
displayName: Schema109.String,
|
|
13834
|
+
avatarUrl: Schema109.NullOr(Schema109.String),
|
|
13835
|
+
value: Schema109.Number,
|
|
13836
|
+
isCurrentUser: Schema109.Boolean,
|
|
13837
|
+
metadata: Schema109.optional(Schema109.Record({ key: Schema109.String, value: Schema109.Unknown })),
|
|
13838
|
+
submittedAt: Schema109.String
|
|
13839
|
+
});
|
|
13840
|
+
ReferralLeaderboardResponse = Schema109.Struct({
|
|
13685
13841
|
period: ReferralLeaderboardPeriod,
|
|
13686
|
-
entries:
|
|
13687
|
-
currentUserRank:
|
|
13842
|
+
entries: Schema109.Array(ReferralLeaderboardEntry),
|
|
13843
|
+
currentUserRank: Schema109.NullOr(Schema109.Number)
|
|
13688
13844
|
});
|
|
13689
13845
|
}
|
|
13690
13846
|
});
|
|
@@ -13716,6 +13872,7 @@ var init_dist = __esm({
|
|
|
13716
13872
|
init_env_vars();
|
|
13717
13873
|
init_environments();
|
|
13718
13874
|
init_organizations();
|
|
13875
|
+
init_project_manifest2();
|
|
13719
13876
|
init_projects();
|
|
13720
13877
|
init_saml2();
|
|
13721
13878
|
init_secrets();
|
|
@@ -15251,9 +15408,11 @@ var projects_exports = {};
|
|
|
15251
15408
|
__export(projects_exports, {
|
|
15252
15409
|
create: () => create9,
|
|
15253
15410
|
delete: () => _delete8,
|
|
15254
|
-
|
|
15411
|
+
getManifest: () => getManifest,
|
|
15412
|
+
list: () => list14,
|
|
15413
|
+
putManifest: () => putManifest
|
|
15255
15414
|
});
|
|
15256
|
-
var orgHeaders6, list14, create9, _delete8;
|
|
15415
|
+
var orgHeaders6, list14, create9, _delete8, getManifest, putManifest;
|
|
15257
15416
|
var init_projects2 = __esm({
|
|
15258
15417
|
"../management/dist/projects.js"() {
|
|
15259
15418
|
"use strict";
|
|
@@ -15277,6 +15436,14 @@ var init_projects2 = __esm({
|
|
|
15277
15436
|
const { method, path: path6 } = projectsEndpoints2.delete;
|
|
15278
15437
|
return request(client, method, interpolatePath(path6, { id }));
|
|
15279
15438
|
};
|
|
15439
|
+
getManifest = (client, id) => {
|
|
15440
|
+
const { method, path: path6 } = projectManifestEndpoints.get;
|
|
15441
|
+
return request(client, method, interpolatePath(path6, { id }));
|
|
15442
|
+
};
|
|
15443
|
+
putManifest = (client, id, manifest) => {
|
|
15444
|
+
const { method, path: path6 } = projectManifestEndpoints.put;
|
|
15445
|
+
return request(client, method, interpolatePath(path6, { id }), { body: manifest });
|
|
15446
|
+
};
|
|
15280
15447
|
}
|
|
15281
15448
|
});
|
|
15282
15449
|
|
|
@@ -21296,7 +21463,7 @@ import { Console as Console12, Effect as Effect21 } from "effect";
|
|
|
21296
21463
|
|
|
21297
21464
|
// src/lib/manifest.ts
|
|
21298
21465
|
init_dist();
|
|
21299
|
-
import { Data as Data3, Effect as Effect20, Either, ParseResult, Schema as
|
|
21466
|
+
import { Data as Data3, Effect as Effect20, Either, ParseResult, Schema as Schema110 } from "effect";
|
|
21300
21467
|
var MANIFEST_FILENAME = "sylphx.toml";
|
|
21301
21468
|
var ManifestFileNotFoundError = class extends Data3.TaggedError("ManifestFileNotFoundError") {
|
|
21302
21469
|
get message() {
|
|
@@ -21360,7 +21527,7 @@ function parseTomlEffect(source, path6) {
|
|
|
21360
21527
|
});
|
|
21361
21528
|
}
|
|
21362
21529
|
function validateManifestEffect(parsed, path6) {
|
|
21363
|
-
const either =
|
|
21530
|
+
const either = Schema110.decodeUnknownEither(SylphxManifest, {
|
|
21364
21531
|
errors: "all",
|
|
21365
21532
|
// Reject typos + unknown keys so users catch mistakes locally rather
|
|
21366
21533
|
// than having the server silently drop fields on apply.
|
|
@@ -21409,6 +21576,11 @@ function renderManifestToml(manifest) {
|
|
|
21409
21576
|
parts.push(...kv(manifest.deploy));
|
|
21410
21577
|
parts.push("");
|
|
21411
21578
|
}
|
|
21579
|
+
if (manifest.database?.migrations) {
|
|
21580
|
+
parts.push("[database.migrations]");
|
|
21581
|
+
parts.push(...kv(manifest.database.migrations));
|
|
21582
|
+
parts.push("");
|
|
21583
|
+
}
|
|
21412
21584
|
if (manifest.services) {
|
|
21413
21585
|
for (const svc of manifest.services) {
|
|
21414
21586
|
parts.push("[[services]]");
|
|
@@ -21437,11 +21609,21 @@ function renderManifestToml(manifest) {
|
|
|
21437
21609
|
parts.push(...kv(r.database));
|
|
21438
21610
|
parts.push("");
|
|
21439
21611
|
}
|
|
21612
|
+
if (r.kv) {
|
|
21613
|
+
parts.push("[resources.kv]");
|
|
21614
|
+
parts.push(...kv(r.kv));
|
|
21615
|
+
parts.push("");
|
|
21616
|
+
}
|
|
21440
21617
|
if (r.search) {
|
|
21441
21618
|
parts.push("[resources.search]");
|
|
21442
21619
|
parts.push(...kv(r.search));
|
|
21443
21620
|
parts.push("");
|
|
21444
21621
|
}
|
|
21622
|
+
if (r.volume) {
|
|
21623
|
+
parts.push("[resources.volume]");
|
|
21624
|
+
parts.push(...kv(r.volume));
|
|
21625
|
+
parts.push("");
|
|
21626
|
+
}
|
|
21445
21627
|
}
|
|
21446
21628
|
if (manifest.environments) {
|
|
21447
21629
|
for (const [envName, override] of Object.entries(manifest.environments)) {
|