@bunny.net/api-client-effect-v4-database 0.0.0-stage → 1.0.202611301153
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 +7 -0
- package/LICENSE +21 -0
- package/README.md +83 -2
- package/dist/mod.d.ts +24 -0
- package/dist/mod.js +24 -0
- package/dist/mod.js.map +1 -0
- package/dist/src/generated/client.d.ts +2182 -0
- package/dist/src/generated/client.js +528 -0
- package/dist/src/generated/client.js.map +1 -0
- package/dist/src/generated/schemas.d.ts +311 -0
- package/dist/src/generated/schemas.js +156 -0
- package/dist/src/generated/schemas.js.map +1 -0
- package/package.json +42 -3
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { Schema, SchemaTransformation } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* `date-time` values: an ISO string on the wire, a `Date` in memory.
|
|
4
|
+
* A date-time written without a zone (`2026-11-18T10:00:00`) is read as UTC,
|
|
5
|
+
* where `new Date` reads local time: Bunny's API writes some that way and
|
|
6
|
+
* means UTC. Every other string is parsed as `new Date` parses it.
|
|
7
|
+
*/
|
|
8
|
+
export const DateTimeZ = Schema.String.pipe(Schema.decodeTo(Schema.Date, SchemaTransformation.transform({
|
|
9
|
+
decode: (value) => new Date(/^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?$/.test(value) ? `${value}Z` : value),
|
|
10
|
+
encode: (date) => date.toISOString(),
|
|
11
|
+
})));
|
|
12
|
+
export const ActiveStatsV3Response = Schema.StructWithRest(Schema.Struct({
|
|
13
|
+
ActiveDb: Schema.Int,
|
|
14
|
+
TotalDb: Schema.Int,
|
|
15
|
+
TotalDbSize: Schema.String
|
|
16
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
17
|
+
export const AuthorizationV3 = Schema.Literals(["full-access", "read-only"]);
|
|
18
|
+
export const CDNServerTokenV3 = Schema.String;
|
|
19
|
+
export const ChartUnit = Schema.Literals(["NoUnit", "milliseconds", "megabyte"]);
|
|
20
|
+
export const Datapoint = Schema.Tuple([DateTimeZ, Schema.Number]);
|
|
21
|
+
export const ChartV3 = Schema.StructWithRest(Schema.Struct({
|
|
22
|
+
Unit: ChartUnit,
|
|
23
|
+
Data: Schema.Array(Datapoint)
|
|
24
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
25
|
+
export const CountryV3 = Schema.StructWithRest(Schema.Struct({
|
|
26
|
+
Alpha2: Schema.String
|
|
27
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
28
|
+
export const PossibleRegion = Schema.Literals(["AMS", "ASB", "AT", "BE", "BO", "BR", "BU", "CA", "CO", "CZ", "DE", "DEN", "DK", "ES", "FR", "GA", "GR", "HK", "HR", "ID", "IL", "ISR", "IT", "JH", "JP", "LA", "MI", "MX", "MY", "NG", "NY", "PH", "PL", "SE", "SG", "SIL", "SYD", "TH", "TR", "TX", "UK", "WA"]);
|
|
29
|
+
export const CreateDatabaseV3Payload = Schema.Struct({
|
|
30
|
+
Name: Schema.String,
|
|
31
|
+
StorageRegion: Schema.String,
|
|
32
|
+
PrimaryRegions: Schema.Array(PossibleRegion),
|
|
33
|
+
ReplicasRegions: Schema.Array(PossibleRegion)
|
|
34
|
+
});
|
|
35
|
+
export const DatabaseId = Schema.String;
|
|
36
|
+
export const CreateDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
37
|
+
DbId: DatabaseId
|
|
38
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
39
|
+
export const DatabaseV3 = Schema.StructWithRest(Schema.Struct({
|
|
40
|
+
Name: Schema.String,
|
|
41
|
+
Id: DatabaseId,
|
|
42
|
+
Url: Schema.String,
|
|
43
|
+
BlockReads: Schema.Boolean,
|
|
44
|
+
BlockWrites: Schema.Boolean,
|
|
45
|
+
SizeMaxBytes: Schema.Int,
|
|
46
|
+
CurrentSizeBytes: Schema.Int,
|
|
47
|
+
StorageRegion: Schema.String,
|
|
48
|
+
PrimaryRegions: Schema.Array(PossibleRegion),
|
|
49
|
+
ReplicasRegions: Schema.Array(PossibleRegion)
|
|
50
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
51
|
+
export const DeletedDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
52
|
+
DbId: DatabaseId
|
|
53
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
54
|
+
export const GenerateTokenDatabaseV3Payload = Schema.Struct({
|
|
55
|
+
ExpiresAt: Schema.optional(Schema.NullOr(DateTimeZ)),
|
|
56
|
+
Authorization: AuthorizationV3
|
|
57
|
+
});
|
|
58
|
+
export const GenerateTokenDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
59
|
+
Token: Schema.String,
|
|
60
|
+
ExpiresAt: Schema.optional(Schema.NullOr(DateTimeZ))
|
|
61
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
62
|
+
export const LatencySeriesV3 = Schema.StructWithRest(Schema.Struct({
|
|
63
|
+
Data: Schema.Array(Datapoint)
|
|
64
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
65
|
+
export const LatencyChartV3 = Schema.StructWithRest(Schema.Struct({
|
|
66
|
+
Unit: ChartUnit,
|
|
67
|
+
Data: Schema.Record(Schema.String, LatencySeriesV3)
|
|
68
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
69
|
+
export const LimitsV3Response = Schema.StructWithRest(Schema.Struct({
|
|
70
|
+
CurrentDatabases: Schema.Int,
|
|
71
|
+
MaxDatabases: Schema.Int
|
|
72
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
73
|
+
export const RegionGroups = Schema.Literals(["EU", "NA", "SA", "AF", "ASIA", "OC"]);
|
|
74
|
+
export const RegionV3 = Schema.StructWithRest(Schema.Struct({
|
|
75
|
+
Id: PossibleRegion,
|
|
76
|
+
Name: Schema.String,
|
|
77
|
+
Latitude: Schema.Number,
|
|
78
|
+
Longitude: Schema.Number,
|
|
79
|
+
Group: RegionGroups,
|
|
80
|
+
Country: CountryV3
|
|
81
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
82
|
+
export const StorageRegionV3 = Schema.StructWithRest(Schema.Struct({
|
|
83
|
+
Id: Schema.String,
|
|
84
|
+
Name: Schema.String,
|
|
85
|
+
Group: RegionGroups
|
|
86
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
87
|
+
export const ListConfigV3Response = Schema.StructWithRest(Schema.Struct({
|
|
88
|
+
StorageRegionAvailable: Schema.Array(StorageRegionV3),
|
|
89
|
+
PrimaryRegions: Schema.Array(RegionV3),
|
|
90
|
+
ReplicaRegions: Schema.Array(RegionV3)
|
|
91
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
92
|
+
export const ListDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
93
|
+
Items: Schema.Array(DatabaseV3),
|
|
94
|
+
CurrentPage: Schema.Int,
|
|
95
|
+
TotalItems: Schema.Int,
|
|
96
|
+
HasMoreItems: Schema.Boolean
|
|
97
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
98
|
+
export const LiveMetricsDatabasesV3Payload = Schema.Struct({
|
|
99
|
+
DbIds: Schema.Array(DatabaseId)
|
|
100
|
+
});
|
|
101
|
+
export const LiveStatusV3 = Schema.Union([Schema.StructWithRest(Schema.Struct({
|
|
102
|
+
State: Schema.Literal("Live"),
|
|
103
|
+
Metadata: Schema.StructWithRest(Schema.Struct({
|
|
104
|
+
Main: PossibleRegion,
|
|
105
|
+
Replicas: Schema.Array(PossibleRegion)
|
|
106
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)])
|
|
107
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]), Schema.StructWithRest(Schema.Struct({
|
|
108
|
+
State: Schema.Literal("ReplicaOnly")
|
|
109
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]), Schema.StructWithRest(Schema.Struct({
|
|
110
|
+
State: Schema.Literal("Offline")
|
|
111
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)])]);
|
|
112
|
+
export const LiveMetricsDatabasesV3Response = Schema.StructWithRest(Schema.Struct({
|
|
113
|
+
LiveMetrics: Schema.Record(Schema.String, LiveStatusV3)
|
|
114
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
115
|
+
export const OptimalConfigV3Response = Schema.StructWithRest(Schema.Struct({
|
|
116
|
+
StorageRegion: StorageRegionV3,
|
|
117
|
+
PrimaryRegions: Schema.Array(RegionV3),
|
|
118
|
+
ReplicaRegions: Schema.Array(RegionV3)
|
|
119
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
120
|
+
export const OptimalSingleConfigV3Response = Schema.StructWithRest(Schema.Struct({
|
|
121
|
+
StorageRegion: StorageRegionV3,
|
|
122
|
+
Region: Schema.optional(Schema.Union([RegionV3, Schema.Null]))
|
|
123
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
124
|
+
export const PageLimit = Schema.Int;
|
|
125
|
+
export const Problem = Schema.StructWithRest(Schema.Struct({
|
|
126
|
+
title: Schema.String,
|
|
127
|
+
type: Schema.String,
|
|
128
|
+
status: Schema.Int,
|
|
129
|
+
detail: Schema.optional(Schema.NullOr(Schema.String)),
|
|
130
|
+
instance: Schema.optional(Schema.NullOr(Schema.String)),
|
|
131
|
+
details: Schema.optional(Schema.Unknown)
|
|
132
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
133
|
+
export const ReadDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
134
|
+
Db: DatabaseV3
|
|
135
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
136
|
+
export const StatsDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
137
|
+
RowReadCount: ChartV3,
|
|
138
|
+
RowWriteCount: ChartV3,
|
|
139
|
+
DelegatedWriteRequests: ChartV3,
|
|
140
|
+
Storage: ChartV3,
|
|
141
|
+
Latency: LatencyChartV3,
|
|
142
|
+
QueryCount: ChartV3
|
|
143
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
144
|
+
export const UpdateDatabaseV3Payload = Schema.Struct({
|
|
145
|
+
PrimaryRegions: Schema.optional(Schema.NullOr(Schema.Array(PossibleRegion))),
|
|
146
|
+
ReplicasRegions: Schema.optional(Schema.NullOr(Schema.Array(PossibleRegion)))
|
|
147
|
+
});
|
|
148
|
+
export const UpdateDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
149
|
+
Db: DatabaseV3
|
|
150
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
151
|
+
export const UsageDatabaseV3Response = Schema.StructWithRest(Schema.Struct({
|
|
152
|
+
RowsRead: Schema.Int,
|
|
153
|
+
RowsWritten: Schema.Int,
|
|
154
|
+
AvgLatencyMs: Schema.Number
|
|
155
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
156
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/generated/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACzC,MAAM,CAAC,QAAQ,CACb,MAAM,CAAC,IAAI,EACX,oBAAoB,CAAC,SAAS,CAAC;IAC7B,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,yDAAyD,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;IACxH,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW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,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAItD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC;IACvE,QAAQ,EAAE,MAAM,CAAC,GAAG;IACpB,WAAW,EAAE,MAAM,CAAC,GAAG;IACvB,YAAY,EAAE,MAAM,CAAC,MAAM;CAC5B,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC","sourcesContent":["import { Schema, SchemaTransformation } from \"effect\";\n\n/**\n * `date-time` values: an ISO string on the wire, a `Date` in memory.\n * A date-time written without a zone (`2026-11-18T10:00:00`) is read as UTC,\n * where `new Date` reads local time: Bunny's API writes some that way and\n * means UTC. Every other string is parsed as `new Date` parses it.\n */\nexport const DateTimeZ = Schema.String.pipe(\n Schema.decodeTo(\n Schema.Date,\n SchemaTransformation.transform({\n decode: (value) => new Date(/^\\d{4}-\\d{2}-\\d{2}[Tt]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?$/.test(value) ? `${value}Z` : value),\n encode: (date) => date.toISOString(),\n }),\n ),\n);\n\nexport const ActiveStatsV3Response = Schema.StructWithRest(Schema.Struct({\n ActiveDb: Schema.Int,\n TotalDb: Schema.Int,\n TotalDbSize: Schema.String\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type ActiveStatsV3Response = typeof ActiveStatsV3Response.Type;\n\nexport const AuthorizationV3 = Schema.Literals([\"full-access\", \"read-only\"]);\n\nexport type AuthorizationV3 = typeof AuthorizationV3.Type;\n\nexport const CDNServerTokenV3 = Schema.String;\n\nexport type CDNServerTokenV3 = typeof CDNServerTokenV3.Type;\n\nexport const ChartUnit = Schema.Literals([\"NoUnit\", \"milliseconds\", \"megabyte\"]);\n\nexport type ChartUnit = typeof ChartUnit.Type;\n\nexport const Datapoint = Schema.Tuple([DateTimeZ, Schema.Number]);\n\nexport type Datapoint = typeof Datapoint.Type;\n\nexport const ChartV3 = Schema.StructWithRest(Schema.Struct({\n Unit: ChartUnit,\n Data: Schema.Array(Datapoint)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type ChartV3 = typeof ChartV3.Type;\n\nexport const CountryV3 = Schema.StructWithRest(Schema.Struct({\n Alpha2: Schema.String\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type CountryV3 = typeof CountryV3.Type;\n\nexport const PossibleRegion = Schema.Literals([\"AMS\", \"ASB\", \"AT\", \"BE\", \"BO\", \"BR\", \"BU\", \"CA\", \"CO\", \"CZ\", \"DE\", \"DEN\", \"DK\", \"ES\", \"FR\", \"GA\", \"GR\", \"HK\", \"HR\", \"ID\", \"IL\", \"ISR\", \"IT\", \"JH\", \"JP\", \"LA\", \"MI\", \"MX\", \"MY\", \"NG\", \"NY\", \"PH\", \"PL\", \"SE\", \"SG\", \"SIL\", \"SYD\", \"TH\", \"TR\", \"TX\", \"UK\", \"WA\"]);\n\nexport type PossibleRegion = typeof PossibleRegion.Type;\n\nexport const CreateDatabaseV3Payload = Schema.Struct({\n Name: Schema.String,\n StorageRegion: Schema.String,\n PrimaryRegions: Schema.Array(PossibleRegion),\n ReplicasRegions: Schema.Array(PossibleRegion)\n });\n\nexport type CreateDatabaseV3Payload = typeof CreateDatabaseV3Payload.Type;\n\nexport const DatabaseId = Schema.String;\n\nexport type DatabaseId = typeof DatabaseId.Type;\n\nexport const CreateDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n DbId: DatabaseId\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type CreateDatabaseV3Response = typeof CreateDatabaseV3Response.Type;\n\nexport const DatabaseV3 = Schema.StructWithRest(Schema.Struct({\n Name: Schema.String,\n Id: DatabaseId,\n Url: Schema.String,\n BlockReads: Schema.Boolean,\n BlockWrites: Schema.Boolean,\n SizeMaxBytes: Schema.Int,\n CurrentSizeBytes: Schema.Int,\n StorageRegion: Schema.String,\n PrimaryRegions: Schema.Array(PossibleRegion),\n ReplicasRegions: Schema.Array(PossibleRegion)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type DatabaseV3 = typeof DatabaseV3.Type;\n\nexport const DeletedDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n DbId: DatabaseId\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type DeletedDatabaseV3Response = typeof DeletedDatabaseV3Response.Type;\n\nexport const GenerateTokenDatabaseV3Payload = Schema.Struct({\n ExpiresAt: Schema.optional(Schema.NullOr(DateTimeZ)),\n Authorization: AuthorizationV3\n });\n\nexport type GenerateTokenDatabaseV3Payload = typeof GenerateTokenDatabaseV3Payload.Type;\n\nexport const GenerateTokenDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n Token: Schema.String,\n ExpiresAt: Schema.optional(Schema.NullOr(DateTimeZ))\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type GenerateTokenDatabaseV3Response = typeof GenerateTokenDatabaseV3Response.Type;\n\nexport const LatencySeriesV3 = Schema.StructWithRest(Schema.Struct({\n Data: Schema.Array(Datapoint)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type LatencySeriesV3 = typeof LatencySeriesV3.Type;\n\nexport const LatencyChartV3 = Schema.StructWithRest(Schema.Struct({\n Unit: ChartUnit,\n Data: Schema.Record(Schema.String, LatencySeriesV3)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type LatencyChartV3 = typeof LatencyChartV3.Type;\n\nexport const LimitsV3Response = Schema.StructWithRest(Schema.Struct({\n CurrentDatabases: Schema.Int,\n MaxDatabases: Schema.Int\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type LimitsV3Response = typeof LimitsV3Response.Type;\n\nexport const RegionGroups = Schema.Literals([\"EU\", \"NA\", \"SA\", \"AF\", \"ASIA\", \"OC\"]);\n\nexport type RegionGroups = typeof RegionGroups.Type;\n\nexport const RegionV3 = Schema.StructWithRest(Schema.Struct({\n Id: PossibleRegion,\n Name: Schema.String,\n Latitude: Schema.Number,\n Longitude: Schema.Number,\n Group: RegionGroups,\n Country: CountryV3\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type RegionV3 = typeof RegionV3.Type;\n\nexport const StorageRegionV3 = Schema.StructWithRest(Schema.Struct({\n Id: Schema.String,\n Name: Schema.String,\n Group: RegionGroups\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type StorageRegionV3 = typeof StorageRegionV3.Type;\n\nexport const ListConfigV3Response = Schema.StructWithRest(Schema.Struct({\n StorageRegionAvailable: Schema.Array(StorageRegionV3),\n PrimaryRegions: Schema.Array(RegionV3),\n ReplicaRegions: Schema.Array(RegionV3)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type ListConfigV3Response = typeof ListConfigV3Response.Type;\n\nexport const ListDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n Items: Schema.Array(DatabaseV3),\n CurrentPage: Schema.Int,\n TotalItems: Schema.Int,\n HasMoreItems: Schema.Boolean\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type ListDatabaseV3Response = typeof ListDatabaseV3Response.Type;\n\nexport const LiveMetricsDatabasesV3Payload = Schema.Struct({\n DbIds: Schema.Array(DatabaseId)\n });\n\nexport type LiveMetricsDatabasesV3Payload = typeof LiveMetricsDatabasesV3Payload.Type;\n\nexport const LiveStatusV3 = Schema.Union([Schema.StructWithRest(Schema.Struct({\n State: Schema.Literal(\"Live\"),\n Metadata: Schema.StructWithRest(Schema.Struct({\n Main: PossibleRegion,\n Replicas: Schema.Array(PossibleRegion)\n }), [Schema.Record(Schema.String, Schema.Unknown)])\n }), [Schema.Record(Schema.String, Schema.Unknown)]), Schema.StructWithRest(Schema.Struct({\n State: Schema.Literal(\"ReplicaOnly\")\n }), [Schema.Record(Schema.String, Schema.Unknown)]), Schema.StructWithRest(Schema.Struct({\n State: Schema.Literal(\"Offline\")\n }), [Schema.Record(Schema.String, Schema.Unknown)])]);\n\nexport type LiveStatusV3 = typeof LiveStatusV3.Type;\n\nexport const LiveMetricsDatabasesV3Response = Schema.StructWithRest(Schema.Struct({\n LiveMetrics: Schema.Record(Schema.String, LiveStatusV3)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type LiveMetricsDatabasesV3Response = typeof LiveMetricsDatabasesV3Response.Type;\n\nexport const OptimalConfigV3Response = Schema.StructWithRest(Schema.Struct({\n StorageRegion: StorageRegionV3,\n PrimaryRegions: Schema.Array(RegionV3),\n ReplicaRegions: Schema.Array(RegionV3)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type OptimalConfigV3Response = typeof OptimalConfigV3Response.Type;\n\nexport const OptimalSingleConfigV3Response = Schema.StructWithRest(Schema.Struct({\n StorageRegion: StorageRegionV3,\n Region: Schema.optional(Schema.Union([RegionV3, Schema.Null]))\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type OptimalSingleConfigV3Response = typeof OptimalSingleConfigV3Response.Type;\n\nexport const PageLimit = Schema.Int;\n\nexport type PageLimit = typeof PageLimit.Type;\n\nexport const Problem = Schema.StructWithRest(Schema.Struct({\n title: Schema.String,\n type: Schema.String,\n status: Schema.Int,\n detail: Schema.optional(Schema.NullOr(Schema.String)),\n instance: Schema.optional(Schema.NullOr(Schema.String)),\n details: Schema.optional(Schema.Unknown)\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type Problem = typeof Problem.Type;\n\nexport const ReadDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n Db: DatabaseV3\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type ReadDatabaseV3Response = typeof ReadDatabaseV3Response.Type;\n\nexport const StatsDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n RowReadCount: ChartV3,\n RowWriteCount: ChartV3,\n DelegatedWriteRequests: ChartV3,\n Storage: ChartV3,\n Latency: LatencyChartV3,\n QueryCount: ChartV3\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type StatsDatabaseV3Response = typeof StatsDatabaseV3Response.Type;\n\nexport const UpdateDatabaseV3Payload = Schema.Struct({\n PrimaryRegions: Schema.optional(Schema.NullOr(Schema.Array(PossibleRegion))),\n ReplicasRegions: Schema.optional(Schema.NullOr(Schema.Array(PossibleRegion)))\n });\n\nexport type UpdateDatabaseV3Payload = typeof UpdateDatabaseV3Payload.Type;\n\nexport const UpdateDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n Db: DatabaseV3\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type UpdateDatabaseV3Response = typeof UpdateDatabaseV3Response.Type;\n\nexport const UsageDatabaseV3Response = Schema.StructWithRest(Schema.Struct({\n RowsRead: Schema.Int,\n RowsWritten: Schema.Int,\n AvgLatencyMs: Schema.Number\n }), [Schema.Record(Schema.String, Schema.Unknown)]);\n\nexport type UsageDatabaseV3Response = typeof UsageDatabaseV3Response.Type;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunny.net/api-client-effect-v4-database",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.202611301153",
|
|
4
|
+
"description": "Bunny.net Database API client for Effect 4, generated from the official OpenAPI spec.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/BunnyWay/bunnynet-typescript.git",
|
|
10
|
+
"directory": "packages/api-client-effect-v4-database"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"bunny",
|
|
14
|
+
"bunny.net",
|
|
15
|
+
"api-client",
|
|
16
|
+
"effect",
|
|
17
|
+
"effect-ts",
|
|
18
|
+
"openapi",
|
|
19
|
+
"database"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"CHANGELOG.md",
|
|
25
|
+
"!dist/tsconfig.tsbuildinfo"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/mod.d.ts",
|
|
30
|
+
"default": "./dist/mod.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"effect": "^4.1.4",
|
|
35
|
+
"@bunny.net/api-client-effect-v4-runtime": "^1.3.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"effect": "^4.1.4",
|
|
39
|
+
"@bunny.net/api-client-effect-v4-runtime": "^1.3.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc -b",
|
|
43
|
+
"clean": "rm -rf dist"
|
|
44
|
+
}
|
|
6
45
|
}
|