@faable/deploy-sdk 2.1.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.
@@ -1,6 +1,6 @@
1
- import { FaableApi } from "@faable/sdk-base";
2
1
  import type { ApiParams } from "@faable/sdk-base";
3
- import type { AppTraffic } from "./api/api-types.js";
2
+ import { GeneratedFaableDeployApi } from "./api/generated-client.js";
3
+ import type { AppTraffic } from "./api/custom-types.js";
4
4
  export interface AppTrafficQuery {
5
5
  /** Unix seconds; defaults to 24h ago. */
6
6
  from?: number;
@@ -17,9 +17,73 @@ export interface AppTrafficQuery {
17
17
  /** Narrow the error-endpoints panel to one exact status code. */
18
18
  error_status?: number;
19
19
  }
20
- export declare class DeployApi extends FaableApi {
20
+ export declare class DeployApi extends GeneratedFaableDeployApi {
21
21
  constructor(params?: ApiParams);
22
- getDeployment(id: string): Promise<{
22
+ updateStatus<T>(id: string, data: T): Promise<any>;
23
+ /**
24
+ * Per-app HTTP traffic metrics. Kept hand-written: the rich `AppTrafficQuery`
25
+ * coercion (numbers → query strings) and the curated `AppTraffic` return type
26
+ * (no OpenAPI schema yet) aren't expressible by the generated `appTraffic`.
27
+ */
28
+ getAppTraffic(id: string, query?: AppTrafficQuery): Promise<AppTraffic>;
29
+ /**
30
+ * List an app's secrets. Kept hand-written because, unlike the other lists,
31
+ * `secrets/list_app` is not a `{ next, results }` page — the generated
32
+ * `secretsListApp` returns the raw response, whereas consumers expect a
33
+ * paginator here.
34
+ */
35
+ listSecrets(id: string): {
36
+ all: () => Promise<{
37
+ id: string;
38
+ team: string;
39
+ app_id?: string;
40
+ profile_id?: string;
41
+ related: string;
42
+ related_model: string;
43
+ name: string;
44
+ value: string;
45
+ metadata: {
46
+ [key: string]: unknown;
47
+ };
48
+ createdAt: string;
49
+ updatedAt?: string;
50
+ }[]>;
51
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
52
+ id: string;
53
+ team: string;
54
+ app_id?: string;
55
+ profile_id?: string;
56
+ related: string;
57
+ related_model: string;
58
+ name: string;
59
+ value: string;
60
+ metadata: {
61
+ [key: string]: unknown;
62
+ };
63
+ createdAt: string;
64
+ updatedAt?: string;
65
+ }>>;
66
+ pass: (params?: {
67
+ cursor?: string;
68
+ pageSize?: string;
69
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
70
+ id: string;
71
+ team: string;
72
+ app_id?: string;
73
+ profile_id?: string;
74
+ related: string;
75
+ related_model: string;
76
+ name: string;
77
+ value: string;
78
+ metadata: {
79
+ [key: string]: unknown;
80
+ };
81
+ createdAt: string;
82
+ updatedAt?: string;
83
+ }>>;
84
+ };
85
+ /** @deprecated use {@link GeneratedFaableDeployApi.deploymentGet | deploymentGet} */
86
+ getDeployment(...args: Parameters<GeneratedFaableDeployApi["deploymentGet"]>): Promise<{
23
87
  id: string;
24
88
  team: string;
25
89
  app_id: string;
@@ -35,7 +99,8 @@ export declare class DeployApi extends FaableApi {
35
99
  createdAt: string;
36
100
  updatedAt?: string;
37
101
  }>;
38
- getApp(id: string): Promise<{
102
+ /** @deprecated use {@link GeneratedFaableDeployApi.appGet | appGet} */
103
+ getApp(...args: Parameters<GeneratedFaableDeployApi["appGet"]>): Promise<{
39
104
  id: string;
40
105
  team: string;
41
106
  name: string;
@@ -57,13 +122,66 @@ export declare class DeployApi extends FaableApi {
57
122
  createdAt: string;
58
123
  updatedAt?: string;
59
124
  }>;
125
+ /** @deprecated use {@link GeneratedFaableDeployApi.domainList | domainList} */
126
+ listDomains(...args: Parameters<GeneratedFaableDeployApi["domainList"]>): {
127
+ all: () => Promise<{
128
+ id: string;
129
+ team: string;
130
+ fqdn: string;
131
+ tls: boolean;
132
+ app_id: string | null;
133
+ verified: boolean;
134
+ active: boolean;
135
+ dns_alias: string | null;
136
+ status: import("./index.js").components["schemas"]["DomainStatus"];
137
+ metadata: {
138
+ [key: string]: unknown;
139
+ };
140
+ createdAt: string;
141
+ updatedAt?: string;
142
+ }[]>;
143
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
144
+ id: string;
145
+ team: string;
146
+ fqdn: string;
147
+ tls: boolean;
148
+ app_id: string | null;
149
+ verified: boolean;
150
+ active: boolean;
151
+ dns_alias: string | null;
152
+ status: import("./index.js").components["schemas"]["DomainStatus"];
153
+ metadata: {
154
+ [key: string]: unknown;
155
+ };
156
+ createdAt: string;
157
+ updatedAt?: string;
158
+ }>>;
159
+ pass: (params?: {
160
+ cursor?: string;
161
+ pageSize?: string;
162
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
163
+ id: string;
164
+ team: string;
165
+ fqdn: string;
166
+ tls: boolean;
167
+ app_id: string | null;
168
+ verified: boolean;
169
+ active: boolean;
170
+ dns_alias: string | null;
171
+ status: import("./index.js").components["schemas"]["DomainStatus"];
172
+ metadata: {
173
+ [key: string]: unknown;
174
+ };
175
+ createdAt: string;
176
+ updatedAt?: string;
177
+ }>>;
178
+ };
60
179
  /**
61
- * List apps, optionally filtered with a FaableQL `query` (e.g.
62
- * `"active:true"` to fetch only enabled apps server-side) and/or expanding
63
- * nested refs (e.g. `{ expand: "status.deployment" }` to inline the active
64
- * Deployment object on each app lets a caller avoid a per-app
65
- * `getApp(?expand=)` round-trip). Both are threaded into every page request
66
- * by the paginator.
180
+ * @deprecated use {@link GeneratedFaableDeployApi.appList | appList}
181
+ *
182
+ * Convenience wrapper with a positional `(query, { expand })` signature. Kept
183
+ * hand-written because the generated `appList` types `expand` as an enum array
184
+ * rather than the legacy free-form string this accepted.
67
185
  */
68
186
  listApps(query?: string, opts?: {
69
187
  expand?: string;
@@ -138,117 +256,10 @@ export declare class DeployApi extends FaableApi {
138
256
  updatedAt?: string;
139
257
  }>>;
140
258
  };
141
- updateStatus<T>(id: string, data: T): Promise<any>;
142
- listSecrets(id: string): {
143
- all: () => Promise<{
144
- id: string;
145
- team: string;
146
- app_id?: string;
147
- profile_id?: string;
148
- related: string;
149
- related_model: string;
150
- name: string;
151
- value: string;
152
- metadata: {
153
- [key: string]: unknown;
154
- };
155
- createdAt: string;
156
- updatedAt?: string;
157
- }[]>;
158
- first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
159
- id: string;
160
- team: string;
161
- app_id?: string;
162
- profile_id?: string;
163
- related: string;
164
- related_model: string;
165
- name: string;
166
- value: string;
167
- metadata: {
168
- [key: string]: unknown;
169
- };
170
- createdAt: string;
171
- updatedAt?: string;
172
- }>>;
173
- pass: (params?: {
174
- cursor?: string;
175
- pageSize?: string;
176
- }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
177
- id: string;
178
- team: string;
179
- app_id?: string;
180
- profile_id?: string;
181
- related: string;
182
- related_model: string;
183
- name: string;
184
- value: string;
185
- metadata: {
186
- [key: string]: unknown;
187
- };
188
- createdAt: string;
189
- updatedAt?: string;
190
- }>>;
191
- };
192
- listDomains(): {
193
- all: () => Promise<{
194
- id: string;
195
- team: string;
196
- fqdn: string;
197
- tls: boolean;
198
- app_id: string | null;
199
- verified: boolean;
200
- active: boolean;
201
- dns_alias: string | null;
202
- status: import("./index.js").components["schemas"]["DomainStatus"];
203
- metadata: {
204
- [key: string]: unknown;
205
- };
206
- createdAt: string;
207
- updatedAt?: string;
208
- }[]>;
209
- first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
210
- id: string;
211
- team: string;
212
- fqdn: string;
213
- tls: boolean;
214
- app_id: string | null;
215
- verified: boolean;
216
- active: boolean;
217
- dns_alias: string | null;
218
- status: import("./index.js").components["schemas"]["DomainStatus"];
219
- metadata: {
220
- [key: string]: unknown;
221
- };
222
- createdAt: string;
223
- updatedAt?: string;
224
- }>>;
225
- pass: (params?: {
226
- cursor?: string;
227
- pageSize?: string;
228
- }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
229
- id: string;
230
- team: string;
231
- fqdn: string;
232
- tls: boolean;
233
- app_id: string | null;
234
- verified: boolean;
235
- active: boolean;
236
- dns_alias: string | null;
237
- status: import("./index.js").components["schemas"]["DomainStatus"];
238
- metadata: {
239
- [key: string]: unknown;
240
- };
241
- createdAt: string;
242
- updatedAt?: string;
243
- }>>;
244
- };
245
259
  /**
246
- * List deployments, optionally filtered with a FaableQL `query` (e.g.
247
- * `"app_id:app_xxx"` to fetch only one app's deployments server-side). The
248
- * query is threaded into every page request by the paginator. Returns a
249
- * paginator (use `.all()` / `.pass({ pageSize })`) — the controller fetches a
250
- * bounded newest-first page per app to serve orphan-recovery + stale-cleanup
251
- * from a single round-trip.
260
+ * @deprecated use {@link GeneratedFaableDeployApi.deploymentList | deploymentList}
261
+ *
262
+ * Convenience wrapper with a positional FaableQL `query` signature.
252
263
  */
253
264
  listDeployments(query?: string): {
254
265
  all: () => Promise<{
@@ -303,6 +314,5 @@ export declare class DeployApi extends FaableApi {
303
314
  updatedAt?: string;
304
315
  }>>;
305
316
  };
306
- getAppTraffic(id: string, query?: AppTrafficQuery): Promise<AppTraffic>;
307
317
  }
308
318
  //# sourceMappingURL=FaableDeployApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FaableDeployApi.d.ts","sourceRoot":"","sources":["../src/FaableDeployApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAKV,UAAU,EACX,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,YAAY,CA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AAC,GAAG,IAAI,EAAE,UAAU,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;;;;;;;;iBAsCo18C,0CAAsB;;;;gBAAulB,0CAAsB;;;;;;;;;;IAlCrh+C,+EAA+E;IAC/E,WAAW,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC;;;;;;;;;;oBAiCk7xB,0CAAsB;;;;;;;;;;;;;;;;;;;;;;;;kBApHxgyB,CAAC;oBAA0B,CAAC;;;;;;;;;;oBAoHs9xB,0CAAsB;;;;;;;;IA7B/gyB;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;qBAsBu3lB,0CAAsB;;;;oBAA+d,0CAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBApH96mB,CAAC;oBAA0B,CAAC;;;;;;;;;qBAoHu4lB,0CAAsB;;;;oBAA+d,0CAAsB;;;;;;;;;;;IAZr7mB;;;;OAIG;IACH,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM;;;;;;;;;;oBAOgzrB,0CAAsB;;;;;;;;;;;;;;;;;;;;;;;;kBApH71rB,CAAC;oBAA0B,CAAC;;;;;;;;;;oBAoH2yrB,0CAAsB;;;;;;;;CADr2rB"}
@@ -1,6 +1,6 @@
1
- import { FaableApi } from "@faable/sdk-base";
1
+ import { GeneratedFaableDeployApi } from "./api/generated-client.js";
2
2
  import { version } from "./version.js";
3
- export class DeployApi extends FaableApi {
3
+ export class DeployApi extends GeneratedFaableDeployApi {
4
4
  constructor(params) {
5
5
  super({
6
6
  baseURL: "https://api.faable.com",
@@ -15,54 +15,18 @@ export class DeployApi extends FaableApi {
15
15
  },
16
16
  });
17
17
  }
18
- getDeployment(id) {
19
- return this.fetcher.get(`/deployment/${id}`);
20
- }
21
- getApp(id) {
22
- return this.fetcher.get(`/app/${id}`);
23
- }
24
- /**
25
- * List apps, optionally filtered with a FaableQL `query` (e.g.
26
- * `"active:true"` to fetch only enabled apps server-side) and/or expanding
27
- * nested refs (e.g. `{ expand: "status.deployment" }` to inline the active
28
- * Deployment object on each app — lets a caller avoid a per-app
29
- * `getApp(?expand=)` round-trip). Both are threaded into every page request
30
- * by the paginator.
31
- */
32
- listApps(query, opts) {
33
- const params = {};
34
- if (query)
35
- params.query = query;
36
- if (opts?.expand)
37
- params.expand = opts.expand;
38
- return this.paginator({
39
- url: "/app",
40
- ...(Object.keys(params).length ? { params } : {}),
41
- });
42
- }
18
+ // ── Custom-logic helpers (not plain CRUD — kept hand-written) ──────────────
19
+ // Internal status-reporting endpoint (`status/update` is marked x-internal in
20
+ // the API, so it is intentionally NOT in the generated surface). Used by the
21
+ // deploy controller to report deployment/app status. Generic over the body.
43
22
  updateStatus(id, data) {
44
23
  return this.fetcher.post(`/status/${id}`, data);
45
24
  }
46
- listSecrets(id) {
47
- return this.paginator({ url: `/secret/${id}` });
48
- }
49
- listDomains() {
50
- return this.paginator({ url: "/domain" });
51
- }
52
25
  /**
53
- * List deployments, optionally filtered with a FaableQL `query` (e.g.
54
- * `"app_id:app_xxx"` to fetch only one app's deployments server-side). The
55
- * query is threaded into every page request by the paginator. Returns a
56
- * paginator (use `.all()` / `.pass({ pageSize })`) — the controller fetches a
57
- * bounded newest-first page per app to serve orphan-recovery + stale-cleanup
58
- * from a single round-trip.
26
+ * Per-app HTTP traffic metrics. Kept hand-written: the rich `AppTrafficQuery`
27
+ * coercion (numbers query strings) and the curated `AppTraffic` return type
28
+ * (no OpenAPI schema yet) aren't expressible by the generated `appTraffic`.
59
29
  */
60
- listDeployments(query) {
61
- return this.paginator({
62
- url: "/deployment",
63
- ...(query ? { params: { query } } : {}),
64
- });
65
- }
66
30
  getAppTraffic(id, query = {}) {
67
31
  const params = {};
68
32
  if (query.from != null)
@@ -81,4 +45,58 @@ export class DeployApi extends FaableApi {
81
45
  params.error_status = String(query.error_status);
82
46
  return this.fetcher.get(`/app/${id}/traffic`, { params });
83
47
  }
48
+ /**
49
+ * List an app's secrets. Kept hand-written because, unlike the other lists,
50
+ * `secrets/list_app` is not a `{ next, results }` page — the generated
51
+ * `secretsListApp` returns the raw response, whereas consumers expect a
52
+ * paginator here.
53
+ */
54
+ listSecrets(id) {
55
+ return this.paginator({ url: `/secret/${id}` });
56
+ }
57
+ // ── Deprecated aliases ─────────────────────────────────────────────────────
58
+ // Thin forwarders to the auto-generated methods, kept so existing consumers
59
+ // don't break. Prefer the generated names; these will be removed in a future
60
+ // major.
61
+ /** @deprecated use {@link GeneratedFaableDeployApi.deploymentGet | deploymentGet} */
62
+ getDeployment(...args) {
63
+ return this.deploymentGet(...args);
64
+ }
65
+ /** @deprecated use {@link GeneratedFaableDeployApi.appGet | appGet} */
66
+ getApp(...args) {
67
+ return this.appGet(...args);
68
+ }
69
+ /** @deprecated use {@link GeneratedFaableDeployApi.domainList | domainList} */
70
+ listDomains(...args) {
71
+ return this.domainList(...args);
72
+ }
73
+ /**
74
+ * @deprecated use {@link GeneratedFaableDeployApi.appList | appList}
75
+ *
76
+ * Convenience wrapper with a positional `(query, { expand })` signature. Kept
77
+ * hand-written because the generated `appList` types `expand` as an enum array
78
+ * rather than the legacy free-form string this accepted.
79
+ */
80
+ listApps(query, opts) {
81
+ const params = {};
82
+ if (query)
83
+ params.query = query;
84
+ if (opts?.expand)
85
+ params.expand = opts.expand;
86
+ return this.paginator({
87
+ url: "/app",
88
+ ...(Object.keys(params).length ? { params } : {}),
89
+ });
90
+ }
91
+ /**
92
+ * @deprecated use {@link GeneratedFaableDeployApi.deploymentList | deploymentList}
93
+ *
94
+ * Convenience wrapper with a positional FaableQL `query` signature.
95
+ */
96
+ listDeployments(query) {
97
+ return this.paginator({
98
+ url: "/deployment",
99
+ ...(query ? { params: { query } } : {}),
100
+ });
101
+ }
84
102
  }
@@ -1,80 +1,58 @@
1
1
  import type { components } from "./types.js";
2
+ export type ApiKey = components["schemas"]["ApiKey"];
3
+ export type ApiKeyCreate = components["schemas"]["ApiKeyCreate"];
4
+ export type ApiKeyUpdate = components["schemas"]["ApiKeyUpdate"];
2
5
  export type App = components["schemas"]["App"];
3
- export type AppStatus = components["schemas"]["AppStatus"];
6
+ export type AppChecknameResponse = components["schemas"]["AppChecknameResponse"];
7
+ export type AppCreate = components["schemas"]["AppCreate"];
4
8
  export type AppRuntime = components["schemas"]["AppRuntime"];
5
9
  export type AppRuntimeStrategy = components["schemas"]["AppRuntimeStrategy"];
10
+ export type AppStatus = components["schemas"]["AppStatus"];
11
+ export type AppUpdate = components["schemas"]["AppUpdate"];
12
+ export type Contact = components["schemas"]["Contact"];
13
+ export type ContactCreate = components["schemas"]["ContactCreate"];
14
+ export type ContactType = components["schemas"]["ContactType"];
15
+ export type ContactUpdate = components["schemas"]["ContactUpdate"];
16
+ export type DeployWorkflowStatus = components["schemas"]["DeployWorkflowStatus"];
6
17
  export type Deployment = components["schemas"]["Deployment"];
18
+ export type DeploymentCreate = components["schemas"]["DeploymentCreate"];
7
19
  export type DeploymentStatus = components["schemas"]["DeploymentStatus"];
8
- export type Secret = components["schemas"]["Secret"];
9
20
  export type Domain = components["schemas"]["Domain"];
10
- export type EventSecretsCreateBatchEvent = components["schemas"]["EventSecretCreate_batch"];
11
- export type EventDeploymentCreated = components["schemas"]["EventDeploymentCreate"];
12
- export type EventAppDelete = components["schemas"]["EventAppDelete"];
21
+ export type DomainCreate = components["schemas"]["DomainCreate"];
22
+ export type DomainStatus = components["schemas"]["DomainStatus"];
23
+ export type DomainUpdate = components["schemas"]["DomainUpdate"];
24
+ export type EventApikeyCreate = components["schemas"]["EventApikeyCreate"];
25
+ export type EventApikeyDelete = components["schemas"]["EventApikeyDelete"];
26
+ export type EventApikeyUpdate = components["schemas"]["EventApikeyUpdate"];
13
27
  export type EventAppCreate = components["schemas"]["EventAppCreate"];
28
+ export type EventAppDelete = components["schemas"]["EventAppDelete"];
29
+ export type EventAppStatus = components["schemas"]["EventAppStatus"];
14
30
  export type EventAppUpdate = components["schemas"]["EventAppUpdate"];
31
+ export type EventContactCreate = components["schemas"]["EventContactCreate"];
32
+ export type EventContactDelete = components["schemas"]["EventContactDelete"];
33
+ export type EventContactUpdate = components["schemas"]["EventContactUpdate"];
34
+ export type EventDeploymentCreate = components["schemas"]["EventDeploymentCreate"];
35
+ export type EventDeploymentDelete = components["schemas"]["EventDeploymentDelete"];
36
+ export type EventDeploymentStatus = components["schemas"]["EventDeploymentStatus"];
37
+ export type EventDeploymentUpdate = components["schemas"]["EventDeploymentUpdate"];
15
38
  export type EventDomainCreate = components["schemas"]["EventDomainCreate"];
16
- export type EventDomainUpdate = components["schemas"]["EventDomainUpdate"];
17
39
  export type EventDomainDelete = components["schemas"]["EventDomainDelete"];
18
- export type EventDeploymentStatusUpdate = components["schemas"]["EventDeploymentUpdate"];
19
- /**
20
- * Per-app HTTP traffic metrics returned by `GET /app/{id}/traffic`.
21
- *
22
- * Hand-maintained until the OpenAPI types are regenerated (the API now ships
23
- * an `AppTraffic` schema); keep in sync with
24
- * `api/src/deploy/app/api/traffic.ts`.
25
- */
26
- export interface AppTraffic {
27
- range: {
28
- from: number;
29
- to: number;
30
- interval: number;
31
- };
32
- top_endpoints: Array<{
33
- path: string;
34
- requests: number;
35
- req_bytes: number;
36
- resp_bytes: number;
37
- }>;
38
- error_endpoints: Array<{
39
- path: string;
40
- status: number;
41
- errors: number;
42
- }>;
43
- status_codes: Array<{
44
- status: number;
45
- requests: number;
46
- }>;
47
- methods: Array<{
48
- method: string;
49
- requests: number;
50
- }>;
51
- transfer: Array<{
52
- ts: string;
53
- inbound_bytes: number;
54
- outbound_bytes: number;
55
- requests: number;
56
- p50_ms: number;
57
- p95_ms: number;
58
- }>;
59
- /** Backend (origin) status codes — the app's own response, not the edge's. */
60
- origin_status_codes: Array<{
61
- status: number;
62
- requests: number;
63
- }>;
64
- /** Backend latency percentiles (ms) over backend-served requests. */
65
- latency: {
66
- p50: number;
67
- p95: number;
68
- p99: number;
69
- samples: number;
70
- };
71
- top_referrers: Array<{
72
- referer: string;
73
- requests: number;
74
- }>;
75
- top_user_agents: Array<{
76
- user_agent: string;
77
- requests: number;
78
- }>;
79
- }
40
+ export type EventDomainStatus = components["schemas"]["EventDomainStatus"];
41
+ export type EventDomainUpdate = components["schemas"]["EventDomainUpdate"];
42
+ export type EventProjectCreate = components["schemas"]["EventProjectCreate"];
43
+ export type EventProjectDelete = components["schemas"]["EventProjectDelete"];
44
+ export type EventProjectUpdate = components["schemas"]["EventProjectUpdate"];
45
+ export type EventSecretCreate_batch = components["schemas"]["EventSecretCreate_batch"];
46
+ export type GithubInstallation = components["schemas"]["GithubInstallation"];
47
+ export type GithubRepo = components["schemas"]["GithubRepo"];
48
+ export type Project = components["schemas"]["Project"];
49
+ export type ProjectCreate = components["schemas"]["ProjectCreate"];
50
+ export type ProjectFavorites = components["schemas"]["ProjectFavorites"];
51
+ export type ProjectInvite = components["schemas"]["ProjectInvite"];
52
+ export type ProjectUpdate = components["schemas"]["ProjectUpdate"];
53
+ export type Secret = components["schemas"]["Secret"];
54
+ export type SecretCreateBatch = components["schemas"]["SecretCreateBatch"];
55
+ export type SecretPage = components["schemas"]["SecretPage"];
56
+ export type SecretUpsert = components["schemas"]["SecretUpsert"];
57
+ export type StatusUpdate = components["schemas"]["StatusUpdate"];
80
58
  //# sourceMappingURL=api-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-types.d.ts","sourceRoot":"","sources":["../../src/api/api-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC;AAC/C,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,Y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simple-named alias per schema in `components["schemas"]`.
4
+ // Hand-maintained extras live in custom-types.ts.
1
5
  export {};
@@ -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