@leaflow/sdk 0.55.0 → 0.56.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.
Files changed (49) hide show
  1. package/dist/account/v1/client.d.ts +4 -0
  2. package/dist/account/v1/client.js +7 -0
  3. package/dist/account/v1/index.d.ts +27 -26
  4. package/dist/account/v1/index.js +4 -4
  5. package/dist/assistant/v1/client.d.ts +4 -0
  6. package/dist/assistant/v1/client.js +7 -0
  7. package/dist/assistant/v1/index.d.ts +54 -53
  8. package/dist/assistant/v1/index.js +4 -4
  9. package/dist/billing/v1/index.d.ts +95 -95
  10. package/dist/billing/v1/index.js +3 -3
  11. package/dist/canopy/v1/client.d.ts +4 -0
  12. package/dist/canopy/v1/client.js +7 -0
  13. package/dist/canopy/v1/index.d.ts +24 -23
  14. package/dist/canopy/v1/index.js +4 -4
  15. package/dist/compute/v1/client.d.ts +4 -0
  16. package/dist/compute/v1/client.js +7 -0
  17. package/dist/compute/v1/index.d.ts +124 -123
  18. package/dist/compute/v1/index.js +4 -4
  19. package/dist/dns/v1/client.d.ts +4 -0
  20. package/dist/dns/v1/client.js +7 -0
  21. package/dist/dns/v1/index.d.ts +21 -20
  22. package/dist/dns/v1/index.js +4 -4
  23. package/dist/fleet/v1/client.d.ts +4 -0
  24. package/dist/fleet/v1/client.js +7 -0
  25. package/dist/fleet/v1/index.d.ts +3 -2
  26. package/dist/fleet/v1/index.js +4 -4
  27. package/dist/iam/v1/client.d.ts +4 -0
  28. package/dist/iam/v1/client.js +7 -0
  29. package/dist/iam/v1/index.d.ts +42 -41
  30. package/dist/iam/v1/index.js +4 -4
  31. package/dist/index.d.ts +12 -12
  32. package/dist/index.js +20 -5
  33. package/dist/monitoring/v1/client.d.ts +4 -0
  34. package/dist/monitoring/v1/client.js +7 -0
  35. package/dist/monitoring/v1/index.d.ts +88 -87
  36. package/dist/monitoring/v1/index.js +4 -4
  37. package/dist/notification/v1/client.d.ts +4 -0
  38. package/dist/notification/v1/client.js +7 -0
  39. package/dist/notification/v1/index.d.ts +38 -37
  40. package/dist/notification/v1/index.js +4 -4
  41. package/dist/support/v1/client.d.ts +4 -0
  42. package/dist/support/v1/client.js +7 -0
  43. package/dist/support/v1/index.d.ts +25 -24
  44. package/dist/support/v1/index.js +4 -4
  45. package/dist/tunnel/v1/client.d.ts +4 -0
  46. package/dist/tunnel/v1/client.js +7 -0
  47. package/dist/tunnel/v1/index.d.ts +8 -7
  48. package/dist/tunnel/v1/index.js +4 -4
  49. package/package.json +6 -4
@@ -1,84 +1,85 @@
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/permissions` 成功时的响应体。 */
4
+ /** The success response body of `GET /api/v1/permissions`. */
4
5
  export type ListPermissionsResult = operations["list-permissions"]["responses"][200]["content"]["application/json"];
5
- /** `GET /api/v1/project` 成功时的响应体。 */
6
+ /** The success response body of `GET /api/v1/project`. */
6
7
  export type GetProjectResult = operations["get-project"]["responses"][200]["content"]["application/json"];
7
- /** `PATCH /api/v1/project` 成功时的响应体。 */
8
+ /** The success response body of `PATCH /api/v1/project`. */
8
9
  export type UpdateProjectResult = operations["update-project"]["responses"][200]["content"]["application/json"];
9
- /** `PATCH /api/v1/project` 的请求体。 */
10
+ /** The request body of `PATCH /api/v1/project`. */
10
11
  export type UpdateProjectBody = NonNullable<operations["update-project"]["requestBody"]>["content"]["application/json"];
11
- /** `DELETE /api/v1/project` 成功时的响应体。 */
12
+ /** The success response body of `DELETE /api/v1/project`. */
12
13
  export type DeleteProjectResult = operations["delete-project"]["responses"][200]["content"]["application/json"];
13
- /** `GET /api/v1/membership` 成功时的响应体。 */
14
+ /** The success response body of `GET /api/v1/membership`. */
14
15
  export type GetProjectMembershipResult = operations["get-project-membership"]["responses"][200]["content"]["application/json"];
15
- /** `GET /api/v1/invitations` 成功时的响应体。 */
16
+ /** The success response body of `GET /api/v1/invitations`. */
16
17
  export type ListProjectInvitationsResult = operations["list-project-invitations"]["responses"][200]["content"]["application/json"];
17
- /** `GET /api/v1/invitations` 的查询参数。 */
18
+ /** The query parameters of `GET /api/v1/invitations`. */
18
19
  export type ListProjectInvitationsQuery = operations["list-project-invitations"]["parameters"]["query"];
19
- /** `POST /api/v1/invitations` 成功时的响应体。 */
20
+ /** The success response body of `POST /api/v1/invitations`. */
20
21
  export type IssueInvitationResult = operations["issue-invitation"]["responses"][201]["content"]["application/json"];
21
- /** `POST /api/v1/invitations` 的请求体。 */
22
+ /** The request body of `POST /api/v1/invitations`. */
22
23
  export type IssueInvitationBody = NonNullable<operations["issue-invitation"]["requestBody"]>["content"]["application/json"];
23
- /** `POST /api/v1/members:batchGet` 成功时的响应体。 */
24
+ /** The success response body of `POST /api/v1/members:batchGet`. */
24
25
  export type BatchGetMembersResult = operations["batch-get-members"]["responses"][200]["content"]["application/json"];
25
- /** `POST /api/v1/members:batchGet` 的请求体。 */
26
+ /** The request body of `POST /api/v1/members:batchGet`. */
26
27
  export type BatchGetMembersBody = NonNullable<operations["batch-get-members"]["requestBody"]>["content"]["application/json"];
27
- /** `GET /api/v1/members` 成功时的响应体。 */
28
+ /** The success response body of `GET /api/v1/members`. */
28
29
  export type ListMembersResult = operations["list-members"]["responses"][200]["content"]["application/json"];
29
- /** `GET /api/v1/members` 的查询参数。 */
30
+ /** The query parameters of `GET /api/v1/members`. */
30
31
  export type ListMembersQuery = operations["list-members"]["parameters"]["query"];
31
- /** `PUT /api/v1/members/{userId}/roles` 成功时的响应体。 */
32
+ /** The success response body of `PUT /api/v1/members/{userId}/roles`. */
32
33
  export type SetMemberRolesResult = operations["set-member-roles"]["responses"][200]["content"]["application/json"];
33
- /** `PUT /api/v1/members/{userId}/roles` 的请求体。 */
34
+ /** The request body of `PUT /api/v1/members/{userId}/roles`. */
34
35
  export type SetMemberRolesBody = NonNullable<operations["set-member-roles"]["requestBody"]>["content"]["application/json"];
35
- /** `PUT /api/v1/members/{userId}/permissions` 成功时的响应体。 */
36
+ /** The success response body of `PUT /api/v1/members/{userId}/permissions`. */
36
37
  export type SetMemberPermissionsResult = operations["set-member-permissions"]["responses"][200]["content"]["application/json"];
37
- /** `PUT /api/v1/members/{userId}/permissions` 的请求体。 */
38
+ /** The request body of `PUT /api/v1/members/{userId}/permissions`. */
38
39
  export type SetMemberPermissionsBody = NonNullable<operations["set-member-permissions"]["requestBody"]>["content"]["application/json"];
39
- /** `GET /api/v1/policies` 成功时的响应体。 */
40
+ /** The success response body of `GET /api/v1/policies`. */
40
41
  export type ListPoliciesResult = operations["list-policies"]["responses"][200]["content"]["application/json"];
41
- /** `GET /api/v1/policies` 的查询参数。 */
42
+ /** The query parameters of `GET /api/v1/policies`. */
42
43
  export type ListPoliciesQuery = operations["list-policies"]["parameters"]["query"];
43
- /** `POST /api/v1/policies` 成功时的响应体。 */
44
+ /** The success response body of `POST /api/v1/policies`. */
44
45
  export type AttachPolicyResult = operations["attach-policy"]["responses"][201]["content"]["application/json"];
45
- /** `POST /api/v1/policies` 的请求体。 */
46
+ /** The request body of `POST /api/v1/policies`. */
46
47
  export type AttachPolicyBody = NonNullable<operations["attach-policy"]["requestBody"]>["content"]["application/json"];
47
- /** `GET /api/v1/policies/{policyId}` 成功时的响应体。 */
48
+ /** The success response body of `GET /api/v1/policies/{policyId}`. */
48
49
  export type GetPolicyResult = operations["get-policy"]["responses"][200]["content"]["application/json"];
49
- /** `PUT /api/v1/policies/{policyId}` 成功时的响应体。 */
50
+ /** The success response body of `PUT /api/v1/policies/{policyId}`. */
50
51
  export type UpdatePolicyResult = operations["update-policy"]["responses"][200]["content"]["application/json"];
51
- /** `PUT /api/v1/policies/{policyId}` 的请求体。 */
52
+ /** The request body of `PUT /api/v1/policies/{policyId}`. */
52
53
  export type UpdatePolicyBody = NonNullable<operations["update-policy"]["requestBody"]>["content"]["application/json"];
53
- /** `POST /api/v1/transfer-ownership` 成功时的响应体。 */
54
+ /** The success response body of `POST /api/v1/transfer-ownership`. */
54
55
  export type TransferProjectOwnershipResult = operations["transfer-project-ownership"]["responses"][200]["content"]["application/json"];
55
- /** `POST /api/v1/transfer-ownership` 的请求体。 */
56
+ /** The request body of `POST /api/v1/transfer-ownership`. */
56
57
  export type TransferProjectOwnershipBody = NonNullable<operations["transfer-project-ownership"]["requestBody"]>["content"]["application/json"];
57
- /** `GET /api/v1/roles` 成功时的响应体。 */
58
+ /** The success response body of `GET /api/v1/roles`. */
58
59
  export type ListRolesResult = operations["list-roles"]["responses"][200]["content"]["application/json"];
59
- /** `POST /api/v1/roles` 成功时的响应体。 */
60
+ /** The success response body of `POST /api/v1/roles`. */
60
61
  export type CreateRoleResult = operations["create-role"]["responses"][201]["content"]["application/json"];
61
- /** `POST /api/v1/roles` 的请求体。 */
62
+ /** The request body of `POST /api/v1/roles`. */
62
63
  export type CreateRoleBody = NonNullable<operations["create-role"]["requestBody"]>["content"]["application/json"];
63
- /** `GET /api/v1/roles/{code}` 成功时的响应体。 */
64
+ /** The success response body of `GET /api/v1/roles/{code}`. */
64
65
  export type GetRoleResult = operations["get-role"]["responses"][200]["content"]["application/json"];
65
- /** `PUT /api/v1/roles/{code}` 成功时的响应体。 */
66
+ /** The success response body of `PUT /api/v1/roles/{code}`. */
66
67
  export type UpdateRoleResult = operations["update-role"]["responses"][200]["content"]["application/json"];
67
- /** `PUT /api/v1/roles/{code}` 的请求体。 */
68
+ /** The request body of `PUT /api/v1/roles/{code}`. */
68
69
  export type UpdateRoleBody = NonNullable<operations["update-role"]["requestBody"]>["content"]["application/json"];
69
- /** `GET /api/v1/ssh-keys` 成功时的响应体。 */
70
+ /** The success response body of `GET /api/v1/ssh-keys`. */
70
71
  export type ListSshKeysResult = operations["list-ssh-keys"]["responses"][200]["content"]["application/json"];
71
- /** `GET /api/v1/ssh-keys` 的查询参数。 */
72
+ /** The query parameters of `GET /api/v1/ssh-keys`. */
72
73
  export type ListSshKeysQuery = operations["list-ssh-keys"]["parameters"]["query"];
73
- /** `POST /api/v1/ssh-keys` 成功时的响应体。 */
74
+ /** The success response body of `POST /api/v1/ssh-keys`. */
74
75
  export type CreateSshKeyResult = operations["create-ssh-key"]["responses"][201]["content"]["application/json"];
75
- /** `POST /api/v1/ssh-keys` 的请求体。 */
76
+ /** The request body of `POST /api/v1/ssh-keys`. */
76
77
  export type CreateSshKeyBody = NonNullable<operations["create-ssh-key"]["requestBody"]>["content"]["application/json"];
77
- /** `GET /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
78
+ /** The success response body of `GET /api/v1/ssh-keys/{keyId}`. */
78
79
  export type GetSshKeyResult = operations["get-ssh-key"]["responses"][200]["content"]["application/json"];
79
- /** `PATCH /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
80
+ /** The success response body of `PATCH /api/v1/ssh-keys/{keyId}`. */
80
81
  export type RenameSshKeyResult = operations["rename-ssh-key"]["responses"][200]["content"]["application/json"];
81
- /** `PATCH /api/v1/ssh-keys/{keyId}` 的请求体。 */
82
+ /** The request body of `PATCH /api/v1/ssh-keys/{keyId}`. */
82
83
  export type RenameSshKeyBody = NonNullable<operations["rename-ssh-key"]["requestBody"]>["content"]["application/json"];
83
- /** `DELETE /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
84
+ /** The success response body of `DELETE /api/v1/ssh-keys/{keyId}`. */
84
85
  export type RevokeSshKeyResult = operations["revoke-ssh-key"]["responses"][200]["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";
package/dist/index.d.ts CHANGED
@@ -1,12 +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 billing from "./billing/v1/index.js";
4
- export type * as canopy from "./canopy/v1/index.js";
5
- export type * as compute from "./compute/v1/index.js";
6
- export type * as dns from "./dns/v1/index.js";
7
- export type * as fleet from "./fleet/v1/index.js";
8
- export type * as iam from "./iam/v1/index.js";
9
- export type * as monitoring from "./monitoring/v1/index.js";
10
- export type * as notification from "./notification/v1/index.js";
11
- export type * as support from "./support/v1/index.js";
12
- 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 canopy from "./canopy/v1/index.js";
5
+ export * as compute from "./compute/v1/index.js";
6
+ export * as dns from "./dns/v1/index.js";
7
+ export * as fleet from "./fleet/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 canopy from "./canopy/v1/index.js";
14
+ export * as compute from "./compute/v1/index.js";
15
+ export * as dns from "./dns/v1/index.js";
16
+ export * as fleet from "./fleet/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,176 +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/templates` 成功时的响应体。 */
62
+ /** The success response body of `GET /api/v1/templates`. */
62
63
  export type ListTemplatesResult = operations["list-templates"]["responses"][200]["content"]["application/json"];
63
- /** `GET /api/v1/servers` 成功时的响应体。 */
64
+ /** The success response body of `GET /api/v1/servers`. */
64
65
  export type ListServersResult = operations["list-servers"]["responses"][200]["content"]["application/json"];
65
- /** `GET /api/v1/servers` 的查询参数。 */
66
+ /** The query parameters of `GET /api/v1/servers`. */
66
67
  export type ListServersQuery = operations["list-servers"]["parameters"]["query"];
67
- /** `GET /api/v1/servers/{serverId}` 成功时的响应体。 */
68
+ /** The success response body of `GET /api/v1/servers/{serverId}`. */
68
69
  export type GetServerResult = operations["get-server"]["responses"][200]["content"]["application/json"];
69
- /** `PUT /api/v1/servers/{serverId}` 成功时的响应体。 */
70
+ /** The success response body of `PUT /api/v1/servers/{serverId}`. */
70
71
  export type EnableServerMonitoringResult = operations["enable-server-monitoring"]["responses"][200]["content"]["application/json"];
71
- /** `PUT /api/v1/servers/{serverId}` 的请求体。 */
72
+ /** The request body of `PUT /api/v1/servers/{serverId}`. */
72
73
  export type EnableServerMonitoringBody = NonNullable<operations["enable-server-monitoring"]["requestBody"]>["content"]["application/json"];
73
- /** `PATCH /api/v1/servers/{serverId}` 成功时的响应体。 */
74
+ /** The success response body of `PATCH /api/v1/servers/{serverId}`. */
74
75
  export type UpdateServerResult = operations["update-server"]["responses"][200]["content"]["application/json"];
75
- /** `PATCH /api/v1/servers/{serverId}` 的请求体。 */
76
+ /** The request body of `PATCH /api/v1/servers/{serverId}`. */
76
77
  export type UpdateServerBody = NonNullable<operations["update-server"]["requestBody"]>["content"]["application/json"];
77
- /** `POST /api/v1/servers/{serverId}/psk` 成功时的响应体。 */
78
+ /** The success response body of `POST /api/v1/servers/{serverId}/psk`. */
78
79
  export type RotateAgentPskResult = operations["rotate-agent-psk"]["responses"][200]["content"]["application/json"];
79
- /** `GET /api/v1/servers/{serverId}/web-checks/{checkId}` 成功时的响应体。 */
80
+ /** The success response body of `GET /api/v1/servers/{serverId}/web-checks/{checkId}`. */
80
81
  export type GetWebCheckResult = operations["get-web-check"]["responses"][200]["content"]["application/json"];
81
- /** `PUT /api/v1/servers/{serverId}/web-checks/{checkId}` 成功时的响应体。 */
82
+ /** The success response body of `PUT /api/v1/servers/{serverId}/web-checks/{checkId}`. */
82
83
  export type PutWebCheckResult = operations["put-web-check"]["responses"][200]["content"]["application/json"];
83
- /** `PUT /api/v1/servers/{serverId}/web-checks/{checkId}` 的请求体。 */
84
+ /** The request body of `PUT /api/v1/servers/{serverId}/web-checks/{checkId}`. */
84
85
  export type PutWebCheckBody = NonNullable<operations["put-web-check"]["requestBody"]>["content"]["application/json"];
85
- /** `GET /api/v1/web-checks` 成功时的响应体。 */
86
+ /** The success response body of `GET /api/v1/web-checks`. */
86
87
  export type ListWebChecksResult = operations["list-web-checks"]["responses"][200]["content"]["application/json"];
87
- /** `GET /api/v1/web-checks` 的查询参数。 */
88
+ /** The query parameters of `GET /api/v1/web-checks`. */
88
89
  export type ListWebChecksQuery = operations["list-web-checks"]["parameters"]["query"];
89
- /** `GET /api/v1/sli-report` 成功时的响应体。 */
90
+ /** The success response body of `GET /api/v1/sli-report`. */
90
91
  export type GetSliReportResult = operations["get-sli-report"]["responses"][200]["content"]["application/json"];
91
- /** `GET /api/v1/sli-report` 的查询参数。 */
92
+ /** The query parameters of `GET /api/v1/sli-report`. */
92
93
  export type GetSliReportQuery = operations["get-sli-report"]["parameters"]["query"];
93
- /** `GET /api/v1/slo` 成功时的响应体。 */
94
+ /** The success response body of `GET /api/v1/slo`. */
94
95
  export type GetSloResult = operations["get-slo"]["responses"][200]["content"]["application/json"];
95
- /** `PUT /api/v1/slo` 成功时的响应体。 */
96
+ /** The success response body of `PUT /api/v1/slo`. */
96
97
  export type PutSloResult = operations["put-slo"]["responses"][200]["content"]["application/json"];
97
- /** `PUT /api/v1/slo` 的请求体。 */
98
+ /** The request body of `PUT /api/v1/slo`. */
98
99
  export type PutSloBody = NonNullable<operations["put-slo"]["requestBody"]>["content"]["application/json"];
99
- /** `GET /api/v1/status-page` 成功时的响应体。 */
100
+ /** The success response body of `GET /api/v1/status-page`. */
100
101
  export type GetStatusPageResult = operations["get-status-page"]["responses"][200]["content"]["application/json"];
101
- /** `PUT /api/v1/status-page` 成功时的响应体。 */
102
+ /** The success response body of `PUT /api/v1/status-page`. */
102
103
  export type PutStatusPageResult = operations["put-status-page"]["responses"][200]["content"]["application/json"];
103
- /** `PUT /api/v1/status-page` 的请求体。 */
104
+ /** The request body of `PUT /api/v1/status-page`. */
104
105
  export type PutStatusPageBody = NonNullable<operations["put-status-page"]["requestBody"]>["content"]["application/json"];
105
- /** `PUT /api/v1/status-page/order` 的请求体。 */
106
+ /** The request body of `PUT /api/v1/status-page/order`. */
106
107
  export type PutStatusPageOrderBody = NonNullable<operations["put-status-page-order"]["requestBody"]>["content"]["application/json"];
107
- /** `GET /api/v1/status-page/groups` 成功时的响应体。 */
108
+ /** The success response body of `GET /api/v1/status-page/groups`. */
108
109
  export type ListStatusPageGroupsResult = operations["list-status-page-groups"]["responses"][200]["content"]["application/json"];
109
- /** `POST /api/v1/status-page/groups` 成功时的响应体。 */
110
+ /** The success response body of `POST /api/v1/status-page/groups`. */
110
111
  export type CreateStatusPageGroupResult = operations["create-status-page-group"]["responses"][201]["content"]["application/json"];
111
- /** `POST /api/v1/status-page/groups` 的请求体。 */
112
+ /** The request body of `POST /api/v1/status-page/groups`. */
112
113
  export type CreateStatusPageGroupBody = NonNullable<operations["create-status-page-group"]["requestBody"]>["content"]["application/json"];
113
- /** `PUT /api/v1/status-page/groups/{groupId}` 成功时的响应体。 */
114
+ /** The success response body of `PUT /api/v1/status-page/groups/{groupId}`. */
114
115
  export type UpdateStatusPageGroupResult = operations["update-status-page-group"]["responses"][200]["content"]["application/json"];
115
- /** `PUT /api/v1/status-page/groups/{groupId}` 的请求体。 */
116
+ /** The request body of `PUT /api/v1/status-page/groups/{groupId}`. */
116
117
  export type UpdateStatusPageGroupBody = NonNullable<operations["update-status-page-group"]["requestBody"]>["content"]["application/json"];
117
- /** `PUT /api/v1/status-page/groups/{groupId}/order` 的请求体。 */
118
+ /** The request body of `PUT /api/v1/status-page/groups/{groupId}/order`. */
118
119
  export type PutStatusPageGroupOrderBody = NonNullable<operations["put-status-page-group-order"]["requestBody"]>["content"]["application/json"];
119
- /** `GET /api/v1/status-page/components` 成功时的响应体。 */
120
+ /** The success response body of `GET /api/v1/status-page/components`. */
120
121
  export type ListStatusPageComponentsResult = operations["list-status-page-components"]["responses"][200]["content"]["application/json"];
121
- /** `POST /api/v1/status-page/components` 成功时的响应体。 */
122
+ /** The success response body of `POST /api/v1/status-page/components`. */
122
123
  export type CreateStatusPageComponentResult = operations["create-status-page-component"]["responses"][201]["content"]["application/json"];
123
- /** `POST /api/v1/status-page/components` 的请求体。 */
124
+ /** The request body of `POST /api/v1/status-page/components`. */
124
125
  export type CreateStatusPageComponentBody = NonNullable<operations["create-status-page-component"]["requestBody"]>["content"]["application/json"];
125
- /** `GET /api/v1/status-page/components/{componentId}` 成功时的响应体。 */
126
+ /** The success response body of `GET /api/v1/status-page/components/{componentId}`. */
126
127
  export type GetStatusPageComponentResult = operations["get-status-page-component"]["responses"][200]["content"]["application/json"];
127
- /** `PUT /api/v1/status-page/components/{componentId}` 成功时的响应体。 */
128
+ /** The success response body of `PUT /api/v1/status-page/components/{componentId}`. */
128
129
  export type UpdateStatusPageComponentResult = operations["update-status-page-component"]["responses"][200]["content"]["application/json"];
129
- /** `PUT /api/v1/status-page/components/{componentId}` 的请求体。 */
130
+ /** The request body of `PUT /api/v1/status-page/components/{componentId}`. */
130
131
  export type UpdateStatusPageComponentBody = NonNullable<operations["update-status-page-component"]["requestBody"]>["content"]["application/json"];
131
- /** `GET /api/v1/status-page/components/{componentId}/sources` 成功时的响应体。 */
132
+ /** The success response body of `GET /api/v1/status-page/components/{componentId}/sources`. */
132
133
  export type ListStatusPageComponentSourcesResult = operations["list-status-page-component-sources"]["responses"][200]["content"]["application/json"];
133
- /** `PUT /api/v1/status-page/components/{componentId}/sources` 成功时的响应体。 */
134
+ /** The success response body of `PUT /api/v1/status-page/components/{componentId}/sources`. */
134
135
  export type PutStatusPageComponentSourcesResult = operations["put-status-page-component-sources"]["responses"][200]["content"]["application/json"];
135
- /** `PUT /api/v1/status-page/components/{componentId}/sources` 的请求体。 */
136
+ /** The request body of `PUT /api/v1/status-page/components/{componentId}/sources`. */
136
137
  export type PutStatusPageComponentSourcesBody = NonNullable<operations["put-status-page-component-sources"]["requestBody"]>["content"]["application/json"];
137
- /** `GET /api/v1/status-page/incidents` 成功时的响应体。 */
138
+ /** The success response body of `GET /api/v1/status-page/incidents`. */
138
139
  export type ListStatusPageIncidentsResult = operations["list-status-page-incidents"]["responses"][200]["content"]["application/json"];
139
- /** `GET /api/v1/status-page/incidents` 的查询参数。 */
140
+ /** The query parameters of `GET /api/v1/status-page/incidents`. */
140
141
  export type ListStatusPageIncidentsQuery = operations["list-status-page-incidents"]["parameters"]["query"];
141
- /** `POST /api/v1/status-page/incidents` 成功时的响应体。 */
142
+ /** The success response body of `POST /api/v1/status-page/incidents`. */
142
143
  export type PublishStatusPageIncidentResult = operations["publish-status-page-incident"]["responses"][201]["content"]["application/json"];
143
- /** `POST /api/v1/status-page/incidents` 的请求体。 */
144
+ /** The request body of `POST /api/v1/status-page/incidents`. */
144
145
  export type PublishStatusPageIncidentBody = NonNullable<operations["publish-status-page-incident"]["requestBody"]>["content"]["application/json"];
145
- /** `GET /api/v1/status-page/incidents/{incidentId}` 成功时的响应体。 */
146
+ /** The success response body of `GET /api/v1/status-page/incidents/{incidentId}`. */
146
147
  export type GetStatusPageIncidentResult = operations["get-status-page-incident"]["responses"][200]["content"]["application/json"];
147
- /** `POST /api/v1/status-page/incidents/{incidentId}/updates` 成功时的响应体。 */
148
+ /** The success response body of `POST /api/v1/status-page/incidents/{incidentId}/updates`. */
148
149
  export type PostStatusPageIncidentUpdateResult = operations["post-status-page-incident-update"]["responses"][200]["content"]["application/json"];
149
- /** `POST /api/v1/status-page/incidents/{incidentId}/updates` 的请求体。 */
150
+ /** The request body of `POST /api/v1/status-page/incidents/{incidentId}/updates`. */
150
151
  export type PostStatusPageIncidentUpdateBody = NonNullable<operations["post-status-page-incident-update"]["requestBody"]>["content"]["application/json"];
151
- /** `GET /api/v1/status-page/maintenances` 成功时的响应体。 */
152
+ /** The success response body of `GET /api/v1/status-page/maintenances`. */
152
153
  export type ListStatusPageMaintenancesResult = operations["list-status-page-maintenances"]["responses"][200]["content"]["application/json"];
153
- /** `GET /api/v1/status-page/maintenances` 的查询参数。 */
154
+ /** The query parameters of `GET /api/v1/status-page/maintenances`. */
154
155
  export type ListStatusPageMaintenancesQuery = operations["list-status-page-maintenances"]["parameters"]["query"];
155
- /** `POST /api/v1/status-page/maintenances` 成功时的响应体。 */
156
+ /** The success response body of `POST /api/v1/status-page/maintenances`. */
156
157
  export type ScheduleStatusPageMaintenanceResult = operations["schedule-status-page-maintenance"]["responses"][201]["content"]["application/json"];
157
- /** `POST /api/v1/status-page/maintenances` 的请求体。 */
158
+ /** The request body of `POST /api/v1/status-page/maintenances`. */
158
159
  export type ScheduleStatusPageMaintenanceBody = NonNullable<operations["schedule-status-page-maintenance"]["requestBody"]>["content"]["application/json"];
159
- /** `GET /api/v1/status-page/maintenances/{maintenanceId}` 成功时的响应体。 */
160
+ /** The success response body of `GET /api/v1/status-page/maintenances/{maintenanceId}`. */
160
161
  export type GetStatusPageMaintenanceResult = operations["get-status-page-maintenance"]["responses"][200]["content"]["application/json"];
161
- /** `POST /api/v1/status-page/maintenances/{maintenanceId}/cancel` 成功时的响应体。 */
162
+ /** The success response body of `POST /api/v1/status-page/maintenances/{maintenanceId}/cancel`. */
162
163
  export type CancelStatusPageMaintenanceResult = operations["cancel-status-page-maintenance"]["responses"][200]["content"]["application/json"];
163
- /** `POST /api/v1/status-page/maintenances/{maintenanceId}/complete` 成功时的响应体。 */
164
+ /** The success response body of `POST /api/v1/status-page/maintenances/{maintenanceId}/complete`. */
164
165
  export type CompleteStatusPageMaintenanceResult = operations["complete-status-page-maintenance"]["responses"][200]["content"]["application/json"];
165
- /** `GET /api/v1/web-checks/{checkId}` 成功时的响应体。 */
166
+ /** The success response body of `GET /api/v1/web-checks/{checkId}`. */
166
167
  export type GetProjectWebCheckResult = operations["get-project-web-check"]["responses"][200]["content"]["application/json"];
167
- /** `PUT /api/v1/web-checks/{checkId}` 成功时的响应体。 */
168
+ /** The success response body of `PUT /api/v1/web-checks/{checkId}`. */
168
169
  export type PutProjectWebCheckResult = operations["put-project-web-check"]["responses"][200]["content"]["application/json"];
169
- /** `PUT /api/v1/web-checks/{checkId}` 的请求体。 */
170
+ /** The request body of `PUT /api/v1/web-checks/{checkId}`. */
170
171
  export type PutProjectWebCheckBody = NonNullable<operations["put-project-web-check"]["requestBody"]>["content"]["application/json"];
171
- /** `GET /api/v1/status-page/domain` 成功时的响应体。 */
172
+ /** The success response body of `GET /api/v1/status-page/domain`. */
172
173
  export type GetStatusPageDomainResult = operations["get-status-page-domain"]["responses"][200]["content"]["application/json"];
173
- /** `PUT /api/v1/status-page/domain` 成功时的响应体。 */
174
+ /** The success response body of `PUT /api/v1/status-page/domain`. */
174
175
  export type PutStatusPageDomainResult = operations["put-status-page-domain"]["responses"][200]["content"]["application/json"];
175
- /** `PUT /api/v1/status-page/domain` 的请求体。 */
176
+ /** The request body of `PUT /api/v1/status-page/domain`. */
176
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";
@@ -0,0 +1,4 @@
1
+ import { type ClientOptions } from "openapi-fetch";
2
+ import type { paths } from "./schema.js";
3
+ /** A client for the notification 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://notification.leaflow.cloud";
4
+ /** A client for the notification service. Pass baseUrl to override the address. */
5
+ export function client(options = {}) {
6
+ return createClient({ baseUrl: defaultBaseUrl, ...options });
7
+ }