@faable/deploy-sdk 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FaableDeployApi.d.ts +132 -122
- package/dist/FaableDeployApi.d.ts.map +1 -1
- package/dist/FaableDeployApi.js +72 -45
- package/dist/api/api-types.d.ts +46 -68
- package/dist/api/api-types.d.ts.map +1 -1
- package/dist/api/api-types.js +4 -0
- package/dist/api/custom-types.d.ts +66 -0
- package/dist/api/custom-types.d.ts.map +1 -0
- package/dist/api/custom-types.js +5 -0
- package/dist/api/generated-client.d.ts +895 -0
- package/dist/api/generated-client.d.ts.map +1 -0
- package/dist/api/generated-client.js +315 -0
- package/dist/api/types.d.ts +2 -0
- package/dist/api/types.d.ts.map +1 -1
- package/dist/helpers.d.ts +2 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +11 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +9 -0
- package/package.json +6 -4
- package/scripts/fetch-spec.mjs +24 -0
- package/scripts/gen-client.mjs +241 -0
- package/spec/openapi.json +6603 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export * from "./api-types.js";
|
|
2
|
+
import type { EventSecretCreate_batch, EventDeploymentCreate, EventDeploymentUpdate } from "./api-types.js";
|
|
3
|
+
export type EventSecretsCreateBatchEvent = EventSecretCreate_batch;
|
|
4
|
+
export type EventDeploymentCreated = EventDeploymentCreate;
|
|
5
|
+
export type EventDeploymentStatusUpdate = EventDeploymentUpdate;
|
|
6
|
+
/**
|
|
7
|
+
* Per-app HTTP traffic metrics returned by `GET /app/{id}/traffic`.
|
|
8
|
+
*
|
|
9
|
+
* Hand-maintained until the OpenAPI types ship an `AppTraffic` schema; keep in
|
|
10
|
+
* sync with `api/src/deploy/app/api/traffic.ts`.
|
|
11
|
+
*/
|
|
12
|
+
export interface AppTraffic {
|
|
13
|
+
range: {
|
|
14
|
+
from: number;
|
|
15
|
+
to: number;
|
|
16
|
+
interval: number;
|
|
17
|
+
};
|
|
18
|
+
top_endpoints: Array<{
|
|
19
|
+
path: string;
|
|
20
|
+
requests: number;
|
|
21
|
+
req_bytes: number;
|
|
22
|
+
resp_bytes: number;
|
|
23
|
+
}>;
|
|
24
|
+
error_endpoints: Array<{
|
|
25
|
+
path: string;
|
|
26
|
+
status: number;
|
|
27
|
+
errors: number;
|
|
28
|
+
}>;
|
|
29
|
+
status_codes: Array<{
|
|
30
|
+
status: number;
|
|
31
|
+
requests: number;
|
|
32
|
+
}>;
|
|
33
|
+
methods: Array<{
|
|
34
|
+
method: string;
|
|
35
|
+
requests: number;
|
|
36
|
+
}>;
|
|
37
|
+
transfer: Array<{
|
|
38
|
+
ts: string;
|
|
39
|
+
inbound_bytes: number;
|
|
40
|
+
outbound_bytes: number;
|
|
41
|
+
requests: number;
|
|
42
|
+
p50_ms: number;
|
|
43
|
+
p95_ms: number;
|
|
44
|
+
}>;
|
|
45
|
+
/** Backend (origin) status codes — the app's own response, not the edge's. */
|
|
46
|
+
origin_status_codes: Array<{
|
|
47
|
+
status: number;
|
|
48
|
+
requests: number;
|
|
49
|
+
}>;
|
|
50
|
+
/** Backend latency percentiles (ms) over backend-served requests. */
|
|
51
|
+
latency: {
|
|
52
|
+
p50: number;
|
|
53
|
+
p95: number;
|
|
54
|
+
p99: number;
|
|
55
|
+
samples: number;
|
|
56
|
+
};
|
|
57
|
+
top_referrers: Array<{
|
|
58
|
+
referer: string;
|
|
59
|
+
requests: number;
|
|
60
|
+
}>;
|
|
61
|
+
top_user_agents: Array<{
|
|
62
|
+
user_agent: string;
|
|
63
|
+
requests: number;
|
|
64
|
+
}>;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=custom-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-types.d.ts","s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IAC9E,mBAAmB,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,qEAAqE;IACrE,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,aAAa,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5D,eAAe,EAAE,KAAK,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Hand-maintained types that are NOT 1:1 OpenAPI schema aliases. Re-exports the
|
|
2
|
+
// auto-generated schema aliases (api-types.ts) and adds friendlier event names
|
|
3
|
+
// plus types the spec doesn't model yet. Consumers and the `types` namespace
|
|
4
|
+
// import from here so both the generated and the curated types resolve.
|
|
5
|
+
export * from "./api-types.js";
|