@leaflow/sdk 0.0.0-dev.21.g192ee50 → 0.0.0-dev.212.gea1bf06

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.
Files changed (69) hide show
  1. package/README.md +13 -1
  2. package/dist/account/v1/client.d.ts +4 -0
  3. package/dist/account/v1/client.js +7 -0
  4. package/dist/account/v1/index.d.ts +33 -22
  5. package/dist/account/v1/index.js +4 -4
  6. package/dist/account/v1/schema.d.ts +307 -89
  7. package/dist/assistant/v1/client.d.ts +4 -0
  8. package/dist/assistant/v1/client.js +7 -0
  9. package/dist/assistant/v1/index.d.ts +71 -40
  10. package/dist/assistant/v1/index.js +4 -4
  11. package/dist/assistant/v1/schema.d.ts +1204 -139
  12. package/dist/billing/v1/client.d.ts +4 -0
  13. package/dist/billing/v1/client.js +7 -0
  14. package/dist/billing/v1/index.d.ts +45 -0
  15. package/dist/billing/v1/index.js +5 -0
  16. package/dist/billing/v1/schema.d.ts +1404 -0
  17. package/dist/billing/v1/schema.js +5 -0
  18. package/dist/billingaccount/v1/client.d.ts +4 -0
  19. package/dist/billingaccount/v1/client.js +7 -0
  20. package/dist/billingaccount/v1/index.d.ts +151 -0
  21. package/dist/billingaccount/v1/index.js +5 -0
  22. package/dist/billingaccount/v1/schema.d.ts +4265 -0
  23. package/dist/billingaccount/v1/schema.js +5 -0
  24. package/dist/canopy/v1/client.d.ts +4 -0
  25. package/dist/canopy/v1/client.js +7 -0
  26. package/dist/canopy/v1/index.d.ts +24 -23
  27. package/dist/canopy/v1/index.js +4 -4
  28. package/dist/canopy/v1/schema.d.ts +113 -109
  29. package/dist/compute/v1/client.d.ts +4 -0
  30. package/dist/compute/v1/client.js +7 -0
  31. package/dist/compute/v1/index.d.ts +188 -125
  32. package/dist/compute/v1/index.js +4 -4
  33. package/dist/compute/v1/schema.d.ts +1953 -281
  34. package/dist/dns/v1/client.d.ts +4 -0
  35. package/dist/dns/v1/client.js +7 -0
  36. package/dist/dns/v1/index.d.ts +43 -0
  37. package/dist/dns/v1/index.js +5 -0
  38. package/dist/dns/v1/schema.d.ts +887 -0
  39. package/dist/dns/v1/schema.js +5 -0
  40. package/dist/iam/v1/client.d.ts +4 -0
  41. package/dist/iam/v1/client.js +7 -0
  42. package/dist/iam/v1/index.d.ts +55 -32
  43. package/dist/iam/v1/index.js +4 -4
  44. package/dist/iam/v1/schema.d.ts +521 -88
  45. package/dist/index.d.ts +12 -7
  46. package/dist/index.js +20 -5
  47. package/dist/monitoring/v1/client.d.ts +4 -0
  48. package/dist/monitoring/v1/client.js +7 -0
  49. package/dist/monitoring/v1/index.d.ts +130 -49
  50. package/dist/monitoring/v1/index.js +4 -4
  51. package/dist/monitoring/v1/schema.d.ts +2420 -527
  52. package/dist/notification/v1/client.d.ts +4 -0
  53. package/dist/notification/v1/client.js +7 -0
  54. package/dist/notification/v1/index.d.ts +77 -0
  55. package/dist/notification/v1/index.js +5 -0
  56. package/dist/notification/v1/schema.d.ts +2048 -0
  57. package/dist/notification/v1/schema.js +5 -0
  58. package/dist/support/v1/client.d.ts +4 -0
  59. package/dist/support/v1/client.js +7 -0
  60. package/dist/support/v1/index.d.ts +51 -0
  61. package/dist/support/v1/index.js +5 -0
  62. package/dist/support/v1/schema.d.ts +1082 -0
  63. package/dist/support/v1/schema.js +5 -0
  64. package/dist/tunnel/v1/client.d.ts +4 -0
  65. package/dist/tunnel/v1/client.js +7 -0
  66. package/dist/tunnel/v1/index.d.ts +8 -7
  67. package/dist/tunnel/v1/index.js +4 -4
  68. package/dist/tunnel/v1/schema.d.ts +40 -34
  69. package/package.json +26 -10
package/dist/index.d.ts CHANGED
@@ -1,7 +1,12 @@
1
- export type * as account from "./account/v1/index.js";
2
- export type * as assistant from "./assistant/v1/index.js";
3
- export type * as canopy from "./canopy/v1/index.js";
4
- export type * as compute from "./compute/v1/index.js";
5
- export type * as iam from "./iam/v1/index.js";
6
- export type * as monitoring from "./monitoring/v1/index.js";
7
- export type * as tunnel from "./tunnel/v1/index.js";
1
+ export * as account from "./account/v1/index.js";
2
+ export * as assistant from "./assistant/v1/index.js";
3
+ export * as billing from "./billing/v1/index.js";
4
+ export * as billingaccount from "./billingaccount/v1/index.js";
5
+ export * as canopy from "./canopy/v1/index.js";
6
+ export * as compute from "./compute/v1/index.js";
7
+ export * as dns from "./dns/v1/index.js";
8
+ export * as iam from "./iam/v1/index.js";
9
+ export * as monitoring from "./monitoring/v1/index.js";
10
+ export * as notification from "./notification/v1/index.js";
11
+ export * as support from "./support/v1/index.js";
12
+ export * as tunnel from "./tunnel/v1/index.js";
package/dist/index.js CHANGED
@@ -1,6 +1,21 @@
1
- // 由 scripts/generate-ts.mjs 生成,不要手改。
1
+ // Code generated by scripts/generate.mjs. DO NOT EDIT.
2
2
  //
3
- // 一个服务一个命名空间,**不摊平**:compute 和 tunnel 各有一个 OperationLogResource,
4
- // 它们是两个不同的类型。摊平之后先声明的那个会盖掉另一个,而盖掉不报错——表现是某个接口
5
- // 返回的字段和类型对不上,看起来像后端的 bug。
6
- export {};
3
+ // One namespace per service, never flattened: compute and tunnel each declare an
4
+ // OperationLogResource, and they are different types. Flattening lets the first one
5
+ // declared shadow the other, silently — which surfaces as an endpoint whose fields do not
6
+ // match its type, and reads like a bug in the backend.
7
+ //
8
+ // A namespace carries client() as well as types, hence `export * as` rather than
9
+ // `export type * as`; sideEffects: false keeps unused services out of a bundle.
10
+ export * as account from "./account/v1/index.js";
11
+ export * as assistant from "./assistant/v1/index.js";
12
+ export * as billing from "./billing/v1/index.js";
13
+ export * as billingaccount from "./billingaccount/v1/index.js";
14
+ export * as canopy from "./canopy/v1/index.js";
15
+ export * as compute from "./compute/v1/index.js";
16
+ export * as dns from "./dns/v1/index.js";
17
+ export * as iam from "./iam/v1/index.js";
18
+ export * as monitoring from "./monitoring/v1/index.js";
19
+ export * as notification from "./notification/v1/index.js";
20
+ export * as support from "./support/v1/index.js";
21
+ export * as tunnel from "./tunnel/v1/index.js";
@@ -0,0 +1,4 @@
1
+ import { type ClientOptions } from "openapi-fetch";
2
+ import type { paths } from "./schema.js";
3
+ /** A client for the monitoring service. Pass baseUrl to override the address. */
4
+ export declare function client(options?: ClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
@@ -0,0 +1,7 @@
1
+ // Code generated from the contract's servers[0]. DO NOT EDIT.
2
+ import createClient, {} from "openapi-fetch";
3
+ const defaultBaseUrl = "https://monitoring.leaflow.cloud";
4
+ /** A client for the monitoring service. Pass baseUrl to override the address. */
5
+ export function client(options = {}) {
6
+ return createClient({ baseUrl: defaultBaseUrl, ...options });
7
+ }
@@ -1,96 +1,177 @@
1
1
  export type { paths, components, operations, webhooks } from "./schema.js";
2
+ export { client } from "./client.js";
2
3
  import type { operations } from "./schema.js";
3
- /** `GET /api/v1/incidents` 成功时的响应体。 */
4
+ /** The success response body of `GET /api/v1/incidents`. */
4
5
  export type ListIncidentsResult = operations["list-incidents"]["responses"][200]["content"]["application/json"];
5
- /** `GET /api/v1/incidents` 的查询参数。 */
6
+ /** The query parameters of `GET /api/v1/incidents`. */
6
7
  export type ListIncidentsQuery = operations["list-incidents"]["parameters"]["query"];
7
- /** `GET /api/v1/incidents/{incidentId}` 成功时的响应体。 */
8
+ /** The success response body of `GET /api/v1/incidents/{incidentId}`. */
8
9
  export type GetIncidentResult = operations["get-incident"]["responses"][200]["content"]["application/json"];
9
- /** `POST /api/v1/incidents/{incidentId}/acknowledge` 成功时的响应体。 */
10
+ /** The success response body of `POST /api/v1/incidents/{incidentId}/acknowledge`. */
10
11
  export type AcknowledgeIncidentResult = operations["acknowledge-incident"]["responses"][200]["content"]["application/json"];
11
- /** `POST /api/v1/incidents/{incidentId}/acknowledge` 的请求体。 */
12
+ /** The request body of `POST /api/v1/incidents/{incidentId}/acknowledge`. */
12
13
  export type AcknowledgeIncidentBody = NonNullable<operations["acknowledge-incident"]["requestBody"]>["content"]["application/json"];
13
- /** `PUT /api/v1/incidents/{incidentId}/assignee` 成功时的响应体。 */
14
+ /** The success response body of `PUT /api/v1/incidents/{incidentId}/assignee`. */
14
15
  export type AssignIncidentResult = operations["assign-incident"]["responses"][200]["content"]["application/json"];
15
- /** `PUT /api/v1/incidents/{incidentId}/assignee` 的请求体。 */
16
+ /** The request body of `PUT /api/v1/incidents/{incidentId}/assignee`. */
16
17
  export type AssignIncidentBody = NonNullable<operations["assign-incident"]["requestBody"]>["content"]["application/json"];
17
- /** `POST /api/v1/incidents/{incidentId}/close` 成功时的响应体。 */
18
+ /** The success response body of `POST /api/v1/incidents/{incidentId}/close`. */
18
19
  export type CloseIncidentResult = operations["close-incident"]["responses"][200]["content"]["application/json"];
19
- /** `POST /api/v1/incidents/{incidentId}/close` 的请求体。 */
20
+ /** The request body of `POST /api/v1/incidents/{incidentId}/close`. */
20
21
  export type CloseIncidentBody = NonNullable<operations["close-incident"]["requestBody"]>["content"]["application/json"];
21
- /** `POST /api/v1/incidents/{incidentId}/comments` 成功时的响应体。 */
22
+ /** The success response body of `POST /api/v1/incidents/{incidentId}/comments`. */
22
23
  export type AddIncidentCommentResult = operations["add-incident-comment"]["responses"][200]["content"]["application/json"];
23
- /** `POST /api/v1/incidents/{incidentId}/comments` 的请求体。 */
24
+ /** The request body of `POST /api/v1/incidents/{incidentId}/comments`. */
24
25
  export type AddIncidentCommentBody = NonNullable<operations["add-incident-comment"]["requestBody"]>["content"]["application/json"];
25
- /** `PUT /api/v1/incidents/{incidentId}/following` 成功时的响应体。 */
26
+ /** The success response body of `PUT /api/v1/incidents/{incidentId}/following`. */
26
27
  export type SetIncidentFollowingResult = operations["set-incident-following"]["responses"][200]["content"]["application/json"];
27
- /** `PUT /api/v1/incidents/{incidentId}/following` 的请求体。 */
28
+ /** The request body of `PUT /api/v1/incidents/{incidentId}/following`. */
28
29
  export type SetIncidentFollowingBody = NonNullable<operations["set-incident-following"]["requestBody"]>["content"]["application/json"];
29
- /** `POST /api/v1/incidents/{incidentId}/reopen` 成功时的响应体。 */
30
+ /** The success response body of `POST /api/v1/incidents/{incidentId}/reopen`. */
30
31
  export type ReopenIncidentResult = operations["reopen-incident"]["responses"][200]["content"]["application/json"];
31
- /** `GET /api/v1/incidents/{incidentId}/timeline` 成功时的响应体。 */
32
+ /** The success response body of `GET /api/v1/incidents/{incidentId}/timeline`. */
32
33
  export type ListIncidentTimelineResult = operations["list-incident-timeline"]["responses"][200]["content"]["application/json"];
33
- /** `GET /api/v1/incidents/{incidentId}/timeline` 的查询参数。 */
34
+ /** The query parameters of `GET /api/v1/incidents/{incidentId}/timeline`. */
34
35
  export type ListIncidentTimelineQuery = operations["list-incident-timeline"]["parameters"]["query"];
35
- /** `GET /api/v1/maintenance-windows` 成功时的响应体。 */
36
+ /** The success response body of `GET /api/v1/maintenance-windows`. */
36
37
  export type ListMaintenanceWindowsResult = operations["list-maintenance-windows"]["responses"][200]["content"]["application/json"];
37
- /** `GET /api/v1/maintenance-windows/{windowId}` 成功时的响应体。 */
38
+ /** The success response body of `GET /api/v1/maintenance-windows/{windowId}`. */
38
39
  export type GetMaintenanceWindowResult = operations["get-maintenance-window"]["responses"][200]["content"]["application/json"];
39
- /** `PUT /api/v1/maintenance-windows/{windowId}` 成功时的响应体。 */
40
+ /** The success response body of `PUT /api/v1/maintenance-windows/{windowId}`. */
40
41
  export type PutMaintenanceWindowResult = operations["put-maintenance-window"]["responses"][200]["content"]["application/json"];
41
- /** `PUT /api/v1/maintenance-windows/{windowId}` 的请求体。 */
42
+ /** The request body of `PUT /api/v1/maintenance-windows/{windowId}`. */
42
43
  export type PutMaintenanceWindowBody = NonNullable<operations["put-maintenance-window"]["requestBody"]>["content"]["application/json"];
43
- /** `GET /api/v1/overview` 成功时的响应体。 */
44
+ /** The success response body of `GET /api/v1/overview`. */
44
45
  export type GetProjectOverviewResult = operations["get-project-overview"]["responses"][200]["content"]["application/json"];
45
- /** `GET /api/v1/servers/{serverId}/items` 成功时的响应体。 */
46
+ /** The success response body of `GET /api/v1/servers/{serverId}/items`. */
46
47
  export type ListServerItemsResult = operations["list-server-items"]["responses"][200]["content"]["application/json"];
47
- /** `GET /api/v1/servers/{serverId}/items` 的查询参数。 */
48
+ /** The query parameters of `GET /api/v1/servers/{serverId}/items`. */
48
49
  export type ListServerItemsQuery = operations["list-server-items"]["parameters"]["query"];
49
- /** `GET /api/v1/servers/{serverId}/metrics` 成功时的响应体。 */
50
+ /** The success response body of `GET /api/v1/servers/{serverId}/metrics`. */
50
51
  export type GetServerMetricResult = operations["get-server-metric"]["responses"][200]["content"]["application/json"];
51
- /** `GET /api/v1/servers/{serverId}/metrics` 的查询参数。 */
52
+ /** The query parameters of `GET /api/v1/servers/{serverId}/metrics`. */
52
53
  export type GetServerMetricQuery = operations["get-server-metric"]["parameters"]["query"];
53
- /** `GET /api/v1/servers/{serverId}/resources` 成功时的响应体。 */
54
+ /** The success response body of `GET /api/v1/servers/{serverId}/resources`. */
54
55
  export type GetServerResourcesResult = operations["get-server-resources"]["responses"][200]["content"]["application/json"];
55
- /** `GET /api/v1/servers/{serverId}/snapshot` 成功时的响应体。 */
56
+ /** The success response body of `GET /api/v1/servers/{serverId}/snapshot`. */
56
57
  export type GetServerSnapshotResult = operations["get-server-snapshot"]["responses"][200]["content"]["application/json"];
57
- /** `GET /api/v1/top-items` 成功时的响应体。 */
58
+ /** The success response body of `GET /api/v1/top-items`. */
58
59
  export type ListProjectTopItemsResult = operations["list-project-top-items"]["responses"][200]["content"]["application/json"];
59
- /** `GET /api/v1/top-items` 的查询参数。 */
60
+ /** The query parameters of `GET /api/v1/top-items`. */
60
61
  export type ListProjectTopItemsQuery = operations["list-project-top-items"]["parameters"]["query"];
61
- /** `GET /api/v1/servers` 成功时的响应体。 */
62
+ /** The success response body of `GET /api/v1/templates`. */
63
+ export type ListTemplatesResult = operations["list-templates"]["responses"][200]["content"]["application/json"];
64
+ /** The success response body of `GET /api/v1/servers`. */
62
65
  export type ListServersResult = operations["list-servers"]["responses"][200]["content"]["application/json"];
63
- /** `GET /api/v1/servers` 的查询参数。 */
66
+ /** The query parameters of `GET /api/v1/servers`. */
64
67
  export type ListServersQuery = operations["list-servers"]["parameters"]["query"];
65
- /** `GET /api/v1/servers/{serverId}` 成功时的响应体。 */
68
+ /** The success response body of `GET /api/v1/servers/{serverId}`. */
66
69
  export type GetServerResult = operations["get-server"]["responses"][200]["content"]["application/json"];
67
- /** `PATCH /api/v1/servers/{serverId}` 成功时的响应体。 */
68
- export type UpdateServerResult = operations["update-server"]["responses"][200]["content"]["application/json"];
69
- /** `PATCH /api/v1/servers/{serverId}` 的请求体。 */
70
- export type UpdateServerBody = NonNullable<operations["update-server"]["requestBody"]>["content"]["application/json"];
71
- /** `PUT /api/v1/servers/{serverId}` 成功时的响应体。 */
70
+ /** The success response body of `PUT /api/v1/servers/{serverId}`. */
72
71
  export type EnableServerMonitoringResult = operations["enable-server-monitoring"]["responses"][200]["content"]["application/json"];
73
- /** `PUT /api/v1/servers/{serverId}` 的请求体。 */
72
+ /** The request body of `PUT /api/v1/servers/{serverId}`. */
74
73
  export type EnableServerMonitoringBody = NonNullable<operations["enable-server-monitoring"]["requestBody"]>["content"]["application/json"];
75
- /** `POST /api/v1/servers/{serverId}/psk` 成功时的响应体。 */
74
+ /** The success response body of `PATCH /api/v1/servers/{serverId}`. */
75
+ export type UpdateServerResult = operations["update-server"]["responses"][200]["content"]["application/json"];
76
+ /** The request body of `PATCH /api/v1/servers/{serverId}`. */
77
+ export type UpdateServerBody = NonNullable<operations["update-server"]["requestBody"]>["content"]["application/json"];
78
+ /** The success response body of `POST /api/v1/servers/{serverId}/psk`. */
76
79
  export type RotateAgentPskResult = operations["rotate-agent-psk"]["responses"][200]["content"]["application/json"];
77
- /** `GET /api/v1/servers/{serverId}/web-checks/{checkId}` 成功时的响应体。 */
80
+ /** The success response body of `GET /api/v1/servers/{serverId}/web-checks/{checkId}`. */
78
81
  export type GetWebCheckResult = operations["get-web-check"]["responses"][200]["content"]["application/json"];
79
- /** `PUT /api/v1/servers/{serverId}/web-checks/{checkId}` 成功时的响应体。 */
82
+ /** The success response body of `PUT /api/v1/servers/{serverId}/web-checks/{checkId}`. */
80
83
  export type PutWebCheckResult = operations["put-web-check"]["responses"][200]["content"]["application/json"];
81
- /** `PUT /api/v1/servers/{serverId}/web-checks/{checkId}` 的请求体。 */
84
+ /** The request body of `PUT /api/v1/servers/{serverId}/web-checks/{checkId}`. */
82
85
  export type PutWebCheckBody = NonNullable<operations["put-web-check"]["requestBody"]>["content"]["application/json"];
83
- /** `GET /api/v1/web-checks` 成功时的响应体。 */
86
+ /** The success response body of `GET /api/v1/web-checks`. */
84
87
  export type ListWebChecksResult = operations["list-web-checks"]["responses"][200]["content"]["application/json"];
85
- /** `GET /api/v1/web-checks` 的查询参数。 */
88
+ /** The query parameters of `GET /api/v1/web-checks`. */
86
89
  export type ListWebChecksQuery = operations["list-web-checks"]["parameters"]["query"];
87
- /** `GET /api/v1/sli-report` 成功时的响应体。 */
90
+ /** The success response body of `GET /api/v1/sli-report`. */
88
91
  export type GetSliReportResult = operations["get-sli-report"]["responses"][200]["content"]["application/json"];
89
- /** `GET /api/v1/sli-report` 的查询参数。 */
92
+ /** The query parameters of `GET /api/v1/sli-report`. */
90
93
  export type GetSliReportQuery = operations["get-sli-report"]["parameters"]["query"];
91
- /** `GET /api/v1/slo` 成功时的响应体。 */
94
+ /** The success response body of `GET /api/v1/slo`. */
92
95
  export type GetSloResult = operations["get-slo"]["responses"][200]["content"]["application/json"];
93
- /** `PUT /api/v1/slo` 成功时的响应体。 */
96
+ /** The success response body of `PUT /api/v1/slo`. */
94
97
  export type PutSloResult = operations["put-slo"]["responses"][200]["content"]["application/json"];
95
- /** `PUT /api/v1/slo` 的请求体。 */
98
+ /** The request body of `PUT /api/v1/slo`. */
96
99
  export type PutSloBody = NonNullable<operations["put-slo"]["requestBody"]>["content"]["application/json"];
100
+ /** The success response body of `GET /api/v1/status-page`. */
101
+ export type GetStatusPageResult = operations["get-status-page"]["responses"][200]["content"]["application/json"];
102
+ /** The success response body of `PUT /api/v1/status-page`. */
103
+ export type PutStatusPageResult = operations["put-status-page"]["responses"][200]["content"]["application/json"];
104
+ /** The request body of `PUT /api/v1/status-page`. */
105
+ export type PutStatusPageBody = NonNullable<operations["put-status-page"]["requestBody"]>["content"]["application/json"];
106
+ /** The request body of `PUT /api/v1/status-page/order`. */
107
+ export type PutStatusPageOrderBody = NonNullable<operations["put-status-page-order"]["requestBody"]>["content"]["application/json"];
108
+ /** The success response body of `GET /api/v1/status-page/groups`. */
109
+ export type ListStatusPageGroupsResult = operations["list-status-page-groups"]["responses"][200]["content"]["application/json"];
110
+ /** The success response body of `POST /api/v1/status-page/groups`. */
111
+ export type CreateStatusPageGroupResult = operations["create-status-page-group"]["responses"][201]["content"]["application/json"];
112
+ /** The request body of `POST /api/v1/status-page/groups`. */
113
+ export type CreateStatusPageGroupBody = NonNullable<operations["create-status-page-group"]["requestBody"]>["content"]["application/json"];
114
+ /** The success response body of `PUT /api/v1/status-page/groups/{groupId}`. */
115
+ export type UpdateStatusPageGroupResult = operations["update-status-page-group"]["responses"][200]["content"]["application/json"];
116
+ /** The request body of `PUT /api/v1/status-page/groups/{groupId}`. */
117
+ export type UpdateStatusPageGroupBody = NonNullable<operations["update-status-page-group"]["requestBody"]>["content"]["application/json"];
118
+ /** The request body of `PUT /api/v1/status-page/groups/{groupId}/order`. */
119
+ export type PutStatusPageGroupOrderBody = NonNullable<operations["put-status-page-group-order"]["requestBody"]>["content"]["application/json"];
120
+ /** The success response body of `GET /api/v1/status-page/components`. */
121
+ export type ListStatusPageComponentsResult = operations["list-status-page-components"]["responses"][200]["content"]["application/json"];
122
+ /** The success response body of `POST /api/v1/status-page/components`. */
123
+ export type CreateStatusPageComponentResult = operations["create-status-page-component"]["responses"][201]["content"]["application/json"];
124
+ /** The request body of `POST /api/v1/status-page/components`. */
125
+ export type CreateStatusPageComponentBody = NonNullable<operations["create-status-page-component"]["requestBody"]>["content"]["application/json"];
126
+ /** The success response body of `GET /api/v1/status-page/components/{componentId}`. */
127
+ export type GetStatusPageComponentResult = operations["get-status-page-component"]["responses"][200]["content"]["application/json"];
128
+ /** The success response body of `PUT /api/v1/status-page/components/{componentId}`. */
129
+ export type UpdateStatusPageComponentResult = operations["update-status-page-component"]["responses"][200]["content"]["application/json"];
130
+ /** The request body of `PUT /api/v1/status-page/components/{componentId}`. */
131
+ export type UpdateStatusPageComponentBody = NonNullable<operations["update-status-page-component"]["requestBody"]>["content"]["application/json"];
132
+ /** The success response body of `GET /api/v1/status-page/components/{componentId}/sources`. */
133
+ export type ListStatusPageComponentSourcesResult = operations["list-status-page-component-sources"]["responses"][200]["content"]["application/json"];
134
+ /** The success response body of `PUT /api/v1/status-page/components/{componentId}/sources`. */
135
+ export type PutStatusPageComponentSourcesResult = operations["put-status-page-component-sources"]["responses"][200]["content"]["application/json"];
136
+ /** The request body of `PUT /api/v1/status-page/components/{componentId}/sources`. */
137
+ export type PutStatusPageComponentSourcesBody = NonNullable<operations["put-status-page-component-sources"]["requestBody"]>["content"]["application/json"];
138
+ /** The success response body of `GET /api/v1/status-page/incidents`. */
139
+ export type ListStatusPageIncidentsResult = operations["list-status-page-incidents"]["responses"][200]["content"]["application/json"];
140
+ /** The query parameters of `GET /api/v1/status-page/incidents`. */
141
+ export type ListStatusPageIncidentsQuery = operations["list-status-page-incidents"]["parameters"]["query"];
142
+ /** The success response body of `POST /api/v1/status-page/incidents`. */
143
+ export type PublishStatusPageIncidentResult = operations["publish-status-page-incident"]["responses"][201]["content"]["application/json"];
144
+ /** The request body of `POST /api/v1/status-page/incidents`. */
145
+ export type PublishStatusPageIncidentBody = NonNullable<operations["publish-status-page-incident"]["requestBody"]>["content"]["application/json"];
146
+ /** The success response body of `GET /api/v1/status-page/incidents/{incidentId}`. */
147
+ export type GetStatusPageIncidentResult = operations["get-status-page-incident"]["responses"][200]["content"]["application/json"];
148
+ /** The success response body of `POST /api/v1/status-page/incidents/{incidentId}/updates`. */
149
+ export type PostStatusPageIncidentUpdateResult = operations["post-status-page-incident-update"]["responses"][200]["content"]["application/json"];
150
+ /** The request body of `POST /api/v1/status-page/incidents/{incidentId}/updates`. */
151
+ export type PostStatusPageIncidentUpdateBody = NonNullable<operations["post-status-page-incident-update"]["requestBody"]>["content"]["application/json"];
152
+ /** The success response body of `GET /api/v1/status-page/maintenances`. */
153
+ export type ListStatusPageMaintenancesResult = operations["list-status-page-maintenances"]["responses"][200]["content"]["application/json"];
154
+ /** The query parameters of `GET /api/v1/status-page/maintenances`. */
155
+ export type ListStatusPageMaintenancesQuery = operations["list-status-page-maintenances"]["parameters"]["query"];
156
+ /** The success response body of `POST /api/v1/status-page/maintenances`. */
157
+ export type ScheduleStatusPageMaintenanceResult = operations["schedule-status-page-maintenance"]["responses"][201]["content"]["application/json"];
158
+ /** The request body of `POST /api/v1/status-page/maintenances`. */
159
+ export type ScheduleStatusPageMaintenanceBody = NonNullable<operations["schedule-status-page-maintenance"]["requestBody"]>["content"]["application/json"];
160
+ /** The success response body of `GET /api/v1/status-page/maintenances/{maintenanceId}`. */
161
+ export type GetStatusPageMaintenanceResult = operations["get-status-page-maintenance"]["responses"][200]["content"]["application/json"];
162
+ /** The success response body of `POST /api/v1/status-page/maintenances/{maintenanceId}/cancel`. */
163
+ export type CancelStatusPageMaintenanceResult = operations["cancel-status-page-maintenance"]["responses"][200]["content"]["application/json"];
164
+ /** The success response body of `POST /api/v1/status-page/maintenances/{maintenanceId}/complete`. */
165
+ export type CompleteStatusPageMaintenanceResult = operations["complete-status-page-maintenance"]["responses"][200]["content"]["application/json"];
166
+ /** The success response body of `GET /api/v1/web-checks/{checkId}`. */
167
+ export type GetProjectWebCheckResult = operations["get-project-web-check"]["responses"][200]["content"]["application/json"];
168
+ /** The success response body of `PUT /api/v1/web-checks/{checkId}`. */
169
+ export type PutProjectWebCheckResult = operations["put-project-web-check"]["responses"][200]["content"]["application/json"];
170
+ /** The request body of `PUT /api/v1/web-checks/{checkId}`. */
171
+ export type PutProjectWebCheckBody = NonNullable<operations["put-project-web-check"]["requestBody"]>["content"]["application/json"];
172
+ /** The success response body of `GET /api/v1/status-page/domain`. */
173
+ export type GetStatusPageDomainResult = operations["get-status-page-domain"]["responses"][200]["content"]["application/json"];
174
+ /** The success response body of `PUT /api/v1/status-page/domain`. */
175
+ export type PutStatusPageDomainResult = operations["put-status-page-domain"]["responses"][200]["content"]["application/json"];
176
+ /** The request body of `PUT /api/v1/status-page/domain`. */
177
+ export type PutStatusPageDomainBody = NonNullable<operations["put-status-page-domain"]["requestBody"]>["content"]["application/json"];
@@ -1,5 +1,5 @@
1
- // 由 scripts/generate-ts.mjs 生成,不要手改。
1
+ // Code generated by scripts/generate.mjs. DO NOT EDIT.
2
2
  //
3
- // 别名把 operations[...] 那串下标换成一个名字。原始的 paths / components / operations 也
4
- // 一并导出:paths 是给 openapi-fetch 的 createClient<paths>() 用的。
5
- export {};
3
+ // The aliases replace the operations[...] subscript chain with a name. The raw paths /
4
+ // components / operations are exported as well: paths is what createClient<paths>() takes.
5
+ export { client } from "./client.js";