@leaflow/sdk 0.54.4 → 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.
- package/dist/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +28 -27
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +123 -122
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +54 -53
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +4 -0
- package/dist/billing/v1/index.d.ts +99 -93
- package/dist/billing/v1/index.js +3 -3
- package/dist/billing/v1/schema.d.ts +174 -5
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +126 -123
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +55 -0
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +24 -23
- package/dist/dns/v1/index.js +4 -4
- package/dist/dns/v1/schema.d.ts +4 -0
- package/dist/fleet/v1/client.d.ts +4 -0
- package/dist/fleet/v1/client.js +7 -0
- package/dist/fleet/v1/index.d.ts +7 -0
- package/dist/fleet/v1/index.js +5 -0
- package/dist/fleet/v1/schema.d.ts +156 -0
- package/dist/fleet/v1/schema.js +5 -0
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +44 -43
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +119 -115
- package/dist/index.d.ts +12 -11
- package/dist/index.js +20 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +90 -89
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +4 -0
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +38 -37
- package/dist/notification/v1/index.js +4 -4
- package/dist/notification/v1/schema.d.ts +4 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +25 -24
- package/dist/support/v1/index.js +4 -4
- package/dist/support/v1/schema.d.ts +4 -0
- package/dist/tunnel/v1/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +8 -7
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +39 -35
- package/package.json +6 -4
|
@@ -1,246 +1,249 @@
|
|
|
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/backups
|
|
4
|
+
/** The success response body of `GET /api/v1/backups`. */
|
|
4
5
|
export type ListBackupsResult = operations["list-backups"]["responses"][200]["content"]["application/json"];
|
|
5
|
-
/** `GET /api/v1/backups
|
|
6
|
+
/** The query parameters of `GET /api/v1/backups`. */
|
|
6
7
|
export type ListBackupsQuery = operations["list-backups"]["parameters"]["query"];
|
|
7
|
-
/** `POST /api/v1/backups
|
|
8
|
+
/** The success response body of `POST /api/v1/backups`. */
|
|
8
9
|
export type CreateBackupResult = operations["create-backup"]["responses"][201]["content"]["application/json"];
|
|
9
|
-
/** `POST /api/v1/backups
|
|
10
|
+
/** The request body of `POST /api/v1/backups`. */
|
|
10
11
|
export type CreateBackupBody = NonNullable<operations["create-backup"]["requestBody"]>["content"]["application/json"];
|
|
11
|
-
/** `GET /api/v1/backups/{backupId}
|
|
12
|
+
/** The success response body of `GET /api/v1/backups/{backupId}`. */
|
|
12
13
|
export type GetBackupResult = operations["get-backup"]["responses"][200]["content"]["application/json"];
|
|
13
|
-
/** `PATCH /api/v1/backups/{backupId}
|
|
14
|
+
/** The success response body of `PATCH /api/v1/backups/{backupId}`. */
|
|
14
15
|
export type RenameBackupResult = operations["rename-backup"]["responses"][200]["content"]["application/json"];
|
|
15
|
-
/** `PATCH /api/v1/backups/{backupId}
|
|
16
|
+
/** The request body of `PATCH /api/v1/backups/{backupId}`. */
|
|
16
17
|
export type RenameBackupBody = NonNullable<operations["rename-backup"]["requestBody"]>["content"]["application/json"];
|
|
17
|
-
/** `POST /api/v1/backups/{backupId}/restore
|
|
18
|
+
/** The success response body of `POST /api/v1/backups/{backupId}/restore`. */
|
|
18
19
|
export type RestoreBackupResult = operations["restore-backup"]["responses"][201]["content"]["application/json"];
|
|
19
|
-
/** `POST /api/v1/backups/{backupId}/restore
|
|
20
|
+
/** The request body of `POST /api/v1/backups/{backupId}/restore`. */
|
|
20
21
|
export type RestoreBackupBody = NonNullable<operations["restore-backup"]["requestBody"]>["content"]["application/json"];
|
|
21
|
-
/** `GET /api/v1/disk-types
|
|
22
|
+
/** The success response body of `GET /api/v1/disk-types`. */
|
|
22
23
|
export type ListDiskTypesResult = operations["list-disk-types"]["responses"][200]["content"]["application/json"];
|
|
23
|
-
/** `GET /api/v1/disk-types
|
|
24
|
+
/** The query parameters of `GET /api/v1/disk-types`. */
|
|
24
25
|
export type ListDiskTypesQuery = operations["list-disk-types"]["parameters"]["query"];
|
|
25
|
-
/** `GET /api/v1/
|
|
26
|
+
/** The success response body of `GET /api/v1/disk-types/{diskTypeId}`. */
|
|
27
|
+
export type GetDiskTypeResult = operations["get-disk-type"]["responses"][200]["content"]["application/json"];
|
|
28
|
+
/** The success response body of `GET /api/v1/images`. */
|
|
26
29
|
export type ListImagesResult = operations["list-images"]["responses"][200]["content"]["application/json"];
|
|
27
|
-
/** `GET /api/v1/images
|
|
30
|
+
/** The query parameters of `GET /api/v1/images`. */
|
|
28
31
|
export type ListImagesQuery = operations["list-images"]["parameters"]["query"];
|
|
29
|
-
/** `GET /api/v1/instance-types
|
|
32
|
+
/** The success response body of `GET /api/v1/instance-types`. */
|
|
30
33
|
export type ListInstanceTypesResult = operations["list-instance-types"]["responses"][200]["content"]["application/json"];
|
|
31
|
-
/** `GET /api/v1/instance-types
|
|
34
|
+
/** The query parameters of `GET /api/v1/instance-types`. */
|
|
32
35
|
export type ListInstanceTypesQuery = operations["list-instance-types"]["parameters"]["query"];
|
|
33
|
-
/** `GET /api/v1/regions
|
|
36
|
+
/** The success response body of `GET /api/v1/regions`. */
|
|
34
37
|
export type ListRegionsResult = operations["list-regions"]["responses"][200]["content"]["application/json"];
|
|
35
|
-
/** `GET /api/v1/regions/{regionCode}/availability-zones
|
|
38
|
+
/** The success response body of `GET /api/v1/regions/{regionCode}/availability-zones`. */
|
|
36
39
|
export type ListAvailabilityZonesResult = operations["list-availability-zones"]["responses"][200]["content"]["application/json"];
|
|
37
|
-
/** `GET /api/v1/disks
|
|
40
|
+
/** The success response body of `GET /api/v1/disks`. */
|
|
38
41
|
export type ListDisksResult = operations["list-disks"]["responses"][200]["content"]["application/json"];
|
|
39
|
-
/** `GET /api/v1/disks
|
|
42
|
+
/** The query parameters of `GET /api/v1/disks`. */
|
|
40
43
|
export type ListDisksQuery = operations["list-disks"]["parameters"]["query"];
|
|
41
|
-
/** `POST /api/v1/disks
|
|
44
|
+
/** The success response body of `POST /api/v1/disks`. */
|
|
42
45
|
export type CreateDiskResult = operations["create-disk"]["responses"][201]["content"]["application/json"];
|
|
43
|
-
/** `POST /api/v1/disks
|
|
46
|
+
/** The request body of `POST /api/v1/disks`. */
|
|
44
47
|
export type CreateDiskBody = NonNullable<operations["create-disk"]["requestBody"]>["content"]["application/json"];
|
|
45
|
-
/** `GET /api/v1/disks/{diskId}
|
|
48
|
+
/** The success response body of `GET /api/v1/disks/{diskId}`. */
|
|
46
49
|
export type GetDiskResult = operations["get-disk"]["responses"][200]["content"]["application/json"];
|
|
47
|
-
/** `PATCH /api/v1/disks/{diskId}
|
|
50
|
+
/** The success response body of `PATCH /api/v1/disks/{diskId}`. */
|
|
48
51
|
export type RenameDiskResult = operations["rename-disk"]["responses"][200]["content"]["application/json"];
|
|
49
|
-
/** `PATCH /api/v1/disks/{diskId}
|
|
52
|
+
/** The request body of `PATCH /api/v1/disks/{diskId}`. */
|
|
50
53
|
export type RenameDiskBody = NonNullable<operations["rename-disk"]["requestBody"]>["content"]["application/json"];
|
|
51
|
-
/** `POST /api/v1/disks/{diskId}/resize
|
|
54
|
+
/** The success response body of `POST /api/v1/disks/{diskId}/resize`. */
|
|
52
55
|
export type ResizeDiskResult = operations["resize-disk"]["responses"][200]["content"]["application/json"];
|
|
53
|
-
/** `POST /api/v1/disks/{diskId}/resize
|
|
56
|
+
/** The request body of `POST /api/v1/disks/{diskId}/resize`. */
|
|
54
57
|
export type ResizeDiskBody = NonNullable<operations["resize-disk"]["requestBody"]>["content"]["application/json"];
|
|
55
|
-
/** `POST /api/v1/disks/{diskId}/revert
|
|
58
|
+
/** The success response body of `POST /api/v1/disks/{diskId}/revert`. */
|
|
56
59
|
export type RevertDiskResult = operations["revert-disk"]["responses"][200]["content"]["application/json"];
|
|
57
|
-
/** `POST /api/v1/disks/{diskId}/revert
|
|
60
|
+
/** The request body of `POST /api/v1/disks/{diskId}/revert`. */
|
|
58
61
|
export type RevertDiskBody = NonNullable<operations["revert-disk"]["requestBody"]>["content"]["application/json"];
|
|
59
|
-
/** `GET /api/v1/floating-ips
|
|
62
|
+
/** The success response body of `GET /api/v1/floating-ips`. */
|
|
60
63
|
export type ListFloatingIpsResult = operations["list-floating-ips"]["responses"][200]["content"]["application/json"];
|
|
61
|
-
/** `POST /api/v1/floating-ips
|
|
64
|
+
/** The success response body of `POST /api/v1/floating-ips`. */
|
|
62
65
|
export type AllocateFloatingIpResult = operations["allocate-floating-ip"]["responses"][201]["content"]["application/json"];
|
|
63
|
-
/** `POST /api/v1/floating-ips
|
|
66
|
+
/** The request body of `POST /api/v1/floating-ips`. */
|
|
64
67
|
export type AllocateFloatingIpBody = NonNullable<operations["allocate-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
65
|
-
/** `GET /api/v1/floating-ips/{floatingIpId}
|
|
68
|
+
/** The success response body of `GET /api/v1/floating-ips/{floatingIpId}`. */
|
|
66
69
|
export type GetFloatingIpResult = operations["get-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
67
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth
|
|
70
|
+
/** The success response body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
|
|
68
71
|
export type SetFloatingIpBandwidthResult = operations["set-floating-ip-bandwidth"]["responses"][200]["content"]["application/json"];
|
|
69
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth
|
|
72
|
+
/** The request body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
|
|
70
73
|
export type SetFloatingIpBandwidthBody = NonNullable<operations["set-floating-ip-bandwidth"]["requestBody"]>["content"]["application/json"];
|
|
71
|
-
/** `
|
|
72
|
-
export type UnbindFloatingIpResult = operations["unbind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
73
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/binding` 成功时的响应体。 */
|
|
74
|
+
/** The success response body of `PUT /api/v1/floating-ips/{floatingIpId}/binding`. */
|
|
74
75
|
export type BindFloatingIpResult = operations["bind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
75
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/binding
|
|
76
|
+
/** The request body of `PUT /api/v1/floating-ips/{floatingIpId}/binding`. */
|
|
76
77
|
export type BindFloatingIpBody = NonNullable<operations["bind-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
77
|
-
/** `
|
|
78
|
+
/** The success response body of `DELETE /api/v1/floating-ips/{floatingIpId}/binding`. */
|
|
79
|
+
export type UnbindFloatingIpResult = operations["unbind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
80
|
+
/** The success response body of `GET /api/v1/instances`. */
|
|
78
81
|
export type ListInstancesResult = operations["list-instances"]["responses"][200]["content"]["application/json"];
|
|
79
|
-
/** `GET /api/v1/instances
|
|
82
|
+
/** The query parameters of `GET /api/v1/instances`. */
|
|
80
83
|
export type ListInstancesQuery = operations["list-instances"]["parameters"]["query"];
|
|
81
|
-
/** `POST /api/v1/instances
|
|
84
|
+
/** The success response body of `POST /api/v1/instances`. */
|
|
82
85
|
export type LaunchInstanceResult = operations["launch-instance"]["responses"][201]["content"]["application/json"];
|
|
83
|
-
/** `POST /api/v1/instances
|
|
86
|
+
/** The request body of `POST /api/v1/instances`. */
|
|
84
87
|
export type LaunchInstanceBody = NonNullable<operations["launch-instance"]["requestBody"]>["content"]["application/json"];
|
|
85
|
-
/** `GET /api/v1/instances/{instanceId}
|
|
88
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}`. */
|
|
86
89
|
export type GetInstanceResult = operations["get-instance"]["responses"][200]["content"]["application/json"];
|
|
87
|
-
/** `PATCH /api/v1/instances/{instanceId}
|
|
90
|
+
/** The success response body of `PATCH /api/v1/instances/{instanceId}`. */
|
|
88
91
|
export type RenameInstanceResult = operations["rename-instance"]["responses"][200]["content"]["application/json"];
|
|
89
|
-
/** `PATCH /api/v1/instances/{instanceId}
|
|
92
|
+
/** The request body of `PATCH /api/v1/instances/{instanceId}`. */
|
|
90
93
|
export type RenameInstanceBody = NonNullable<operations["rename-instance"]["requestBody"]>["content"]["application/json"];
|
|
91
|
-
/** `POST /api/v1/instances/{instanceId}/commands
|
|
94
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/commands`. */
|
|
92
95
|
export type RunInstanceCommandResult = operations["run-instance-command"]["responses"][200]["content"]["application/json"];
|
|
93
|
-
/** `POST /api/v1/instances/{instanceId}/commands
|
|
96
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/commands`. */
|
|
94
97
|
export type RunInstanceCommandBody = NonNullable<operations["run-instance-command"]["requestBody"]>["content"]["application/json"];
|
|
95
|
-
/** `POST /api/v1/instances/{instanceId}/console
|
|
98
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/console`. */
|
|
96
99
|
export type OpenInstanceConsoleResult = operations["open-instance-console"]["responses"][200]["content"]["application/json"];
|
|
97
|
-
/** `GET /api/v1/instances/{instanceId}/console-output
|
|
100
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/console-output`. */
|
|
98
101
|
export type GetInstanceConsoleOutputResult = operations["get-instance-console-output"]["responses"][200]["content"]["application/json"];
|
|
99
|
-
/** `GET /api/v1/instances/{instanceId}/console-output
|
|
102
|
+
/** The query parameters of `GET /api/v1/instances/{instanceId}/console-output`. */
|
|
100
103
|
export type GetInstanceConsoleOutputQuery = operations["get-instance-console-output"]["parameters"]["query"];
|
|
101
|
-
/** `PUT /api/v1/instances/{instanceId}/labels
|
|
104
|
+
/** The success response body of `PUT /api/v1/instances/{instanceId}/labels`. */
|
|
102
105
|
export type SetInstanceLabelsResult = operations["set-instance-labels"]["responses"][200]["content"]["application/json"];
|
|
103
|
-
/** `PUT /api/v1/instances/{instanceId}/labels
|
|
106
|
+
/** The request body of `PUT /api/v1/instances/{instanceId}/labels`. */
|
|
104
107
|
export type SetInstanceLabelsBody = NonNullable<operations["set-instance-labels"]["requestBody"]>["content"]["application/json"];
|
|
105
|
-
/** `PUT /api/v1/instances/{instanceId}/notes
|
|
108
|
+
/** The success response body of `PUT /api/v1/instances/{instanceId}/notes`. */
|
|
106
109
|
export type SetInstanceNotesResult = operations["set-instance-notes"]["responses"][200]["content"]["application/json"];
|
|
107
|
-
/** `PUT /api/v1/instances/{instanceId}/notes
|
|
110
|
+
/** The request body of `PUT /api/v1/instances/{instanceId}/notes`. */
|
|
108
111
|
export type SetInstanceNotesBody = NonNullable<operations["set-instance-notes"]["requestBody"]>["content"]["application/json"];
|
|
109
|
-
/** `POST /api/v1/instances/{instanceId}/password
|
|
112
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/password`. */
|
|
110
113
|
export type ResetInstancePasswordResult = operations["reset-instance-password"]["responses"][200]["content"]["application/json"];
|
|
111
|
-
/** `POST /api/v1/instances/{instanceId}/password
|
|
114
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/password`. */
|
|
112
115
|
export type ResetInstancePasswordBody = NonNullable<operations["reset-instance-password"]["requestBody"]>["content"]["application/json"];
|
|
113
|
-
/** `POST /api/v1/instances/{instanceId}/reboot
|
|
116
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/reboot`. */
|
|
114
117
|
export type RebootInstanceResult = operations["reboot-instance"]["responses"][200]["content"]["application/json"];
|
|
115
|
-
/** `POST /api/v1/instances/{instanceId}/reboot
|
|
118
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/reboot`. */
|
|
116
119
|
export type RebootInstanceBody = NonNullable<operations["reboot-instance"]["requestBody"]>["content"]["application/json"];
|
|
117
|
-
/** `POST /api/v1/instances/{instanceId}/rebuild
|
|
120
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/rebuild`. */
|
|
118
121
|
export type RebuildInstanceResult = operations["rebuild-instance"]["responses"][200]["content"]["application/json"];
|
|
119
|
-
/** `POST /api/v1/instances/{instanceId}/rebuild
|
|
122
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/rebuild`. */
|
|
120
123
|
export type RebuildInstanceBody = NonNullable<operations["rebuild-instance"]["requestBody"]>["content"]["application/json"];
|
|
121
|
-
/** `POST /api/v1/instances/{instanceId}/resize
|
|
124
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/resize`. */
|
|
122
125
|
export type ResizeInstanceResult = operations["resize-instance"]["responses"][200]["content"]["application/json"];
|
|
123
|
-
/** `POST /api/v1/instances/{instanceId}/resize
|
|
126
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/resize`. */
|
|
124
127
|
export type ResizeInstanceBody = NonNullable<operations["resize-instance"]["requestBody"]>["content"]["application/json"];
|
|
125
|
-
/** `POST /api/v1/instances/{instanceId}/resize/confirm
|
|
128
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/resize/confirm`. */
|
|
126
129
|
export type ConfirmInstanceResizeResult = operations["confirm-instance-resize"]["responses"][200]["content"]["application/json"];
|
|
127
|
-
/** `POST /api/v1/instances/{instanceId}/resize/revert
|
|
130
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/resize/revert`. */
|
|
128
131
|
export type RevertInstanceResizeResult = operations["revert-instance-resize"]["responses"][200]["content"]["application/json"];
|
|
129
|
-
/** `POST /api/v1/instances/{instanceId}/start
|
|
132
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/start`. */
|
|
130
133
|
export type StartInstanceResult = operations["start-instance"]["responses"][200]["content"]["application/json"];
|
|
131
|
-
/** `POST /api/v1/instances/{instanceId}/stop
|
|
134
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/stop`. */
|
|
132
135
|
export type StopInstanceResult = operations["stop-instance"]["responses"][200]["content"]["application/json"];
|
|
133
|
-
/** `GET /api/v1/instances/{instanceId}/disks
|
|
136
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/disks`. */
|
|
134
137
|
export type ListInstanceDisksResult = operations["list-instance-disks"]["responses"][200]["content"]["application/json"];
|
|
135
|
-
/** `POST /api/v1/instances/{instanceId}/disks
|
|
138
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/disks`. */
|
|
136
139
|
export type AttachDiskResult = operations["attach-disk"]["responses"][200]["content"]["application/json"];
|
|
137
|
-
/** `POST /api/v1/instances/{instanceId}/disks
|
|
140
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/disks`. */
|
|
138
141
|
export type AttachDiskBody = NonNullable<operations["attach-disk"]["requestBody"]>["content"]["application/json"];
|
|
139
|
-
/** `DELETE /api/v1/instances/{instanceId}/disks/{diskId}
|
|
142
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/disks/{diskId}`. */
|
|
140
143
|
export type DetachDiskResult = operations["detach-disk"]["responses"][200]["content"]["application/json"];
|
|
141
|
-
/** `POST /api/v1/instances/{instanceId}/floating-ips
|
|
144
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
|
|
142
145
|
export type AttachInstanceFloatingIpResult = operations["attach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
143
|
-
/** `POST /api/v1/instances/{instanceId}/floating-ips
|
|
146
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
|
|
144
147
|
export type AttachInstanceFloatingIpBody = NonNullable<operations["attach-instance-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
145
|
-
/** `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}
|
|
148
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}`. */
|
|
146
149
|
export type DetachInstanceFloatingIpResult = operations["detach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
147
|
-
/** `GET /api/v1/instances/{instanceId}/ports
|
|
150
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/ports`. */
|
|
148
151
|
export type ListInstancePortsResult = operations["list-instance-ports"]["responses"][200]["content"]["application/json"];
|
|
149
|
-
/** `POST /api/v1/instances/{instanceId}/ports
|
|
152
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/ports`. */
|
|
150
153
|
export type AttachPortResult = operations["attach-port"]["responses"][200]["content"]["application/json"];
|
|
151
|
-
/** `POST /api/v1/instances/{instanceId}/ports
|
|
154
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/ports`. */
|
|
152
155
|
export type AttachPortBody = NonNullable<operations["attach-port"]["requestBody"]>["content"]["application/json"];
|
|
153
|
-
/** `DELETE /api/v1/instances/{instanceId}/ports/{portId}
|
|
156
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/ports/{portId}`. */
|
|
154
157
|
export type DetachPortResult = operations["detach-port"]["responses"][200]["content"]["application/json"];
|
|
155
|
-
/** `GET /api/v1/operation-logs
|
|
158
|
+
/** The success response body of `GET /api/v1/operation-logs`. */
|
|
156
159
|
export type ListOperationLogsResult = operations["list-operation-logs"]["responses"][200]["content"]["application/json"];
|
|
157
|
-
/** `GET /api/v1/operation-logs
|
|
160
|
+
/** The query parameters of `GET /api/v1/operation-logs`. */
|
|
158
161
|
export type ListOperationLogsQuery = operations["list-operation-logs"]["parameters"]["query"];
|
|
159
|
-
/** `GET /api/v1/ports
|
|
162
|
+
/** The success response body of `GET /api/v1/ports`. */
|
|
160
163
|
export type ListPortsResult = operations["list-ports"]["responses"][200]["content"]["application/json"];
|
|
161
|
-
/** `POST /api/v1/ports
|
|
164
|
+
/** The success response body of `POST /api/v1/ports`. */
|
|
162
165
|
export type CreatePortResult = operations["create-port"]["responses"][201]["content"]["application/json"];
|
|
163
|
-
/** `POST /api/v1/ports
|
|
166
|
+
/** The request body of `POST /api/v1/ports`. */
|
|
164
167
|
export type CreatePortBody = NonNullable<operations["create-port"]["requestBody"]>["content"]["application/json"];
|
|
165
|
-
/** `GET /api/v1/private-images
|
|
168
|
+
/** The success response body of `GET /api/v1/private-images`. */
|
|
166
169
|
export type ListPrivateImagesResult = operations["list-private-images"]["responses"][200]["content"]["application/json"];
|
|
167
|
-
/** `GET /api/v1/private-images
|
|
170
|
+
/** The query parameters of `GET /api/v1/private-images`. */
|
|
168
171
|
export type ListPrivateImagesQuery = operations["list-private-images"]["parameters"]["query"];
|
|
169
|
-
/** `POST /api/v1/private-images
|
|
172
|
+
/** The success response body of `POST /api/v1/private-images`. */
|
|
170
173
|
export type CreatePrivateImageResult = operations["create-private-image"]["responses"][201]["content"]["application/json"];
|
|
171
|
-
/** `POST /api/v1/private-images
|
|
174
|
+
/** The request body of `POST /api/v1/private-images`. */
|
|
172
175
|
export type CreatePrivateImageBody = NonNullable<operations["create-private-image"]["requestBody"]>["content"]["application/json"];
|
|
173
|
-
/** `GET /api/v1/private-images/{privateImageId}
|
|
176
|
+
/** The success response body of `GET /api/v1/private-images/{privateImageId}`. */
|
|
174
177
|
export type GetPrivateImageResult = operations["get-private-image"]["responses"][200]["content"]["application/json"];
|
|
175
|
-
/** `PATCH /api/v1/private-images/{privateImageId}
|
|
178
|
+
/** The success response body of `PATCH /api/v1/private-images/{privateImageId}`. */
|
|
176
179
|
export type RenamePrivateImageResult = operations["rename-private-image"]["responses"][200]["content"]["application/json"];
|
|
177
|
-
/** `PATCH /api/v1/private-images/{privateImageId}
|
|
180
|
+
/** The request body of `PATCH /api/v1/private-images/{privateImageId}`. */
|
|
178
181
|
export type RenamePrivateImageBody = NonNullable<operations["rename-private-image"]["requestBody"]>["content"]["application/json"];
|
|
179
|
-
/** `GET /api/v1/private-networks
|
|
182
|
+
/** The success response body of `GET /api/v1/private-networks`. */
|
|
180
183
|
export type ListPrivateNetworksResult = operations["list-private-networks"]["responses"][200]["content"]["application/json"];
|
|
181
|
-
/** `GET /api/v1/private-networks
|
|
184
|
+
/** The query parameters of `GET /api/v1/private-networks`. */
|
|
182
185
|
export type ListPrivateNetworksQuery = operations["list-private-networks"]["parameters"]["query"];
|
|
183
|
-
/** `POST /api/v1/private-networks
|
|
186
|
+
/** The success response body of `POST /api/v1/private-networks`. */
|
|
184
187
|
export type CreatePrivateNetworkResult = operations["create-private-network"]["responses"][201]["content"]["application/json"];
|
|
185
|
-
/** `POST /api/v1/private-networks
|
|
188
|
+
/** The request body of `POST /api/v1/private-networks`. */
|
|
186
189
|
export type CreatePrivateNetworkBody = NonNullable<operations["create-private-network"]["requestBody"]>["content"]["application/json"];
|
|
187
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}
|
|
190
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}`. */
|
|
188
191
|
export type GetPrivateNetworkResult = operations["get-private-network"]["responses"][200]["content"]["application/json"];
|
|
189
|
-
/** `PATCH /api/v1/private-networks/{privateNetworkId}
|
|
192
|
+
/** The success response body of `PATCH /api/v1/private-networks/{privateNetworkId}`. */
|
|
190
193
|
export type RenamePrivateNetworkResult = operations["rename-private-network"]["responses"][200]["content"]["application/json"];
|
|
191
|
-
/** `PATCH /api/v1/private-networks/{privateNetworkId}
|
|
194
|
+
/** The request body of `PATCH /api/v1/private-networks/{privateNetworkId}`. */
|
|
192
195
|
export type RenamePrivateNetworkBody = NonNullable<operations["rename-private-network"]["requestBody"]>["content"]["application/json"];
|
|
193
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/ipv6
|
|
196
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/ipv6`. */
|
|
194
197
|
export type GetPrivateNetworkIpv6Result = operations["get-private-network-ipv6"]["responses"][200]["content"]["application/json"];
|
|
195
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/ipv6
|
|
198
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/ipv6`. */
|
|
196
199
|
export type EnablePrivateNetworkIpv6Result = operations["enable-private-network-ipv6"]["responses"][200]["content"]["application/json"];
|
|
197
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/routes
|
|
200
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
198
201
|
export type ListRoutesResult = operations["list-routes"]["responses"][200]["content"]["application/json"];
|
|
199
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/routes
|
|
202
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
200
203
|
export type CreateRouteResult = operations["create-route"]["responses"][201]["content"]["application/json"];
|
|
201
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/routes
|
|
204
|
+
/** The request body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
202
205
|
export type CreateRouteBody = NonNullable<operations["create-route"]["requestBody"]>["content"]["application/json"];
|
|
203
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/subnets
|
|
206
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
204
207
|
export type ListSubnetsResult = operations["list-subnets"]["responses"][200]["content"]["application/json"];
|
|
205
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/subnets
|
|
208
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
206
209
|
export type CreateSubnetResult = operations["create-subnet"]["responses"][201]["content"]["application/json"];
|
|
207
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/subnets
|
|
210
|
+
/** The request body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
208
211
|
export type CreateSubnetBody = NonNullable<operations["create-subnet"]["requestBody"]>["content"]["application/json"];
|
|
209
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr
|
|
212
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr`. */
|
|
210
213
|
export type SuggestSubnetCidrResult = operations["suggest-subnet-cidr"]["responses"][200]["content"]["application/json"];
|
|
211
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr
|
|
214
|
+
/** The query parameters of `GET /api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr`. */
|
|
212
215
|
export type SuggestSubnetCidrQuery = operations["suggest-subnet-cidr"]["parameters"]["query"];
|
|
213
|
-
/** `GET /api/v1/security-groups
|
|
216
|
+
/** The success response body of `GET /api/v1/security-groups`. */
|
|
214
217
|
export type ListSecurityGroupsResult = operations["list-security-groups"]["responses"][200]["content"]["application/json"];
|
|
215
|
-
/** `GET /api/v1/security-groups
|
|
218
|
+
/** The query parameters of `GET /api/v1/security-groups`. */
|
|
216
219
|
export type ListSecurityGroupsQuery = operations["list-security-groups"]["parameters"]["query"];
|
|
217
|
-
/** `POST /api/v1/security-groups
|
|
220
|
+
/** The success response body of `POST /api/v1/security-groups`. */
|
|
218
221
|
export type CreateSecurityGroupResult = operations["create-security-group"]["responses"][201]["content"]["application/json"];
|
|
219
|
-
/** `POST /api/v1/security-groups
|
|
222
|
+
/** The request body of `POST /api/v1/security-groups`. */
|
|
220
223
|
export type CreateSecurityGroupBody = NonNullable<operations["create-security-group"]["requestBody"]>["content"]["application/json"];
|
|
221
|
-
/** `GET /api/v1/security-groups/{securityGroupId}
|
|
224
|
+
/** The success response body of `GET /api/v1/security-groups/{securityGroupId}`. */
|
|
222
225
|
export type GetSecurityGroupResult = operations["get-security-group"]["responses"][200]["content"]["application/json"];
|
|
223
|
-
/** `PATCH /api/v1/security-groups/{securityGroupId}
|
|
226
|
+
/** The success response body of `PATCH /api/v1/security-groups/{securityGroupId}`. */
|
|
224
227
|
export type RenameSecurityGroupResult = operations["rename-security-group"]["responses"][200]["content"]["application/json"];
|
|
225
|
-
/** `PATCH /api/v1/security-groups/{securityGroupId}
|
|
228
|
+
/** The request body of `PATCH /api/v1/security-groups/{securityGroupId}`. */
|
|
226
229
|
export type RenameSecurityGroupBody = NonNullable<operations["rename-security-group"]["requestBody"]>["content"]["application/json"];
|
|
227
|
-
/** `GET /api/v1/security-groups/{securityGroupId}/rules
|
|
230
|
+
/** The success response body of `GET /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
228
231
|
export type ListSecurityGroupRulesResult = operations["list-security-group-rules"]["responses"][200]["content"]["application/json"];
|
|
229
|
-
/** `POST /api/v1/security-groups/{securityGroupId}/rules
|
|
232
|
+
/** The success response body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
230
233
|
export type CreateSecurityGroupRuleResult = operations["create-security-group-rule"]["responses"][201]["content"]["application/json"];
|
|
231
|
-
/** `POST /api/v1/security-groups/{securityGroupId}/rules
|
|
234
|
+
/** The request body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
232
235
|
export type CreateSecurityGroupRuleBody = NonNullable<operations["create-security-group-rule"]["requestBody"]>["content"]["application/json"];
|
|
233
|
-
/** `GET /api/v1/snapshots
|
|
236
|
+
/** The success response body of `GET /api/v1/snapshots`. */
|
|
234
237
|
export type ListSnapshotsResult = operations["list-snapshots"]["responses"][200]["content"]["application/json"];
|
|
235
|
-
/** `GET /api/v1/snapshots
|
|
238
|
+
/** The query parameters of `GET /api/v1/snapshots`. */
|
|
236
239
|
export type ListSnapshotsQuery = operations["list-snapshots"]["parameters"]["query"];
|
|
237
|
-
/** `POST /api/v1/snapshots
|
|
240
|
+
/** The success response body of `POST /api/v1/snapshots`. */
|
|
238
241
|
export type CreateSnapshotResult = operations["create-snapshot"]["responses"][201]["content"]["application/json"];
|
|
239
|
-
/** `POST /api/v1/snapshots
|
|
242
|
+
/** The request body of `POST /api/v1/snapshots`. */
|
|
240
243
|
export type CreateSnapshotBody = NonNullable<operations["create-snapshot"]["requestBody"]>["content"]["application/json"];
|
|
241
|
-
/** `GET /api/v1/snapshots/{snapshotId}
|
|
244
|
+
/** The success response body of `GET /api/v1/snapshots/{snapshotId}`. */
|
|
242
245
|
export type GetSnapshotResult = operations["get-snapshot"]["responses"][200]["content"]["application/json"];
|
|
243
|
-
/** `PATCH /api/v1/snapshots/{snapshotId}
|
|
246
|
+
/** The success response body of `PATCH /api/v1/snapshots/{snapshotId}`. */
|
|
244
247
|
export type RenameSnapshotResult = operations["rename-snapshot"]["responses"][200]["content"]["application/json"];
|
|
245
|
-
/** `PATCH /api/v1/snapshots/{snapshotId}
|
|
248
|
+
/** The request body of `PATCH /api/v1/snapshots/{snapshotId}`. */
|
|
246
249
|
export type RenameSnapshotBody = NonNullable<operations["rename-snapshot"]["requestBody"]>["content"]["application/json"];
|
package/dist/compute/v1/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by scripts/generate.mjs. DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
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";
|
|
@@ -95,6 +95,26 @@ export interface paths {
|
|
|
95
95
|
patch?: never;
|
|
96
96
|
trace?: never;
|
|
97
97
|
};
|
|
98
|
+
"/api/v1/disk-types/{diskTypeId}": {
|
|
99
|
+
parameters: {
|
|
100
|
+
query?: never;
|
|
101
|
+
header?: never;
|
|
102
|
+
path?: never;
|
|
103
|
+
cookie?: never;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Get a disk type
|
|
107
|
+
* @description Retrieve capacity and performance constraints for an existing disk, including system disk types and types withdrawn from sale.
|
|
108
|
+
*/
|
|
109
|
+
get: operations["get-disk-type"];
|
|
110
|
+
put?: never;
|
|
111
|
+
post?: never;
|
|
112
|
+
delete?: never;
|
|
113
|
+
options?: never;
|
|
114
|
+
head?: never;
|
|
115
|
+
patch?: never;
|
|
116
|
+
trace?: never;
|
|
117
|
+
};
|
|
98
118
|
"/api/v1/images": {
|
|
99
119
|
parameters: {
|
|
100
120
|
query?: never;
|
|
@@ -1290,6 +1310,10 @@ export interface components {
|
|
|
1290
1310
|
Error: {
|
|
1291
1311
|
code?: string;
|
|
1292
1312
|
message: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* @description What a given `code` carries alongside the message. The keys depend on the code,
|
|
1315
|
+
* and a client that does not recognise one ignores it.
|
|
1316
|
+
*/
|
|
1293
1317
|
meta?: {
|
|
1294
1318
|
[key: string]: unknown;
|
|
1295
1319
|
};
|
|
@@ -2648,6 +2672,37 @@ export interface operations {
|
|
|
2648
2672
|
};
|
|
2649
2673
|
};
|
|
2650
2674
|
};
|
|
2675
|
+
"get-disk-type": {
|
|
2676
|
+
parameters: {
|
|
2677
|
+
query?: never;
|
|
2678
|
+
header?: never;
|
|
2679
|
+
path: {
|
|
2680
|
+
diskTypeId: string;
|
|
2681
|
+
};
|
|
2682
|
+
cookie?: never;
|
|
2683
|
+
};
|
|
2684
|
+
requestBody?: never;
|
|
2685
|
+
responses: {
|
|
2686
|
+
/** @description OK */
|
|
2687
|
+
200: {
|
|
2688
|
+
headers: {
|
|
2689
|
+
[name: string]: unknown;
|
|
2690
|
+
};
|
|
2691
|
+
content: {
|
|
2692
|
+
"application/json": components["schemas"]["DiskTypeResource"];
|
|
2693
|
+
};
|
|
2694
|
+
};
|
|
2695
|
+
/** @description Error */
|
|
2696
|
+
default: {
|
|
2697
|
+
headers: {
|
|
2698
|
+
[name: string]: unknown;
|
|
2699
|
+
};
|
|
2700
|
+
content: {
|
|
2701
|
+
"application/json": components["schemas"]["Error"];
|
|
2702
|
+
};
|
|
2703
|
+
};
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2651
2706
|
"list-images": {
|
|
2652
2707
|
parameters: {
|
|
2653
2708
|
query: {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ClientOptions } from "openapi-fetch";
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
/** A client for the dns 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://dns.leaflow.cloud";
|
|
4
|
+
/** A client for the dns service. Pass baseUrl to override the address. */
|
|
5
|
+
export function client(options = {}) {
|
|
6
|
+
return createClient({ baseUrl: defaultBaseUrl, ...options });
|
|
7
|
+
}
|
package/dist/dns/v1/index.d.ts
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
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/credentials
|
|
4
|
+
/** The success response body of `GET /api/v1/credentials`. */
|
|
4
5
|
export type ListCredentialsResult = operations["list-credentials"]["responses"][200]["content"]["application/json"];
|
|
5
|
-
/** `GET /api/v1/credentials
|
|
6
|
+
/** The query parameters of `GET /api/v1/credentials`. */
|
|
6
7
|
export type ListCredentialsQuery = operations["list-credentials"]["parameters"]["query"];
|
|
7
|
-
/** `POST /api/v1/credentials
|
|
8
|
+
/** The success response body of `POST /api/v1/credentials`. */
|
|
8
9
|
export type CreateCredentialResult = operations["create-credential"]["responses"][201]["content"]["application/json"];
|
|
9
|
-
/** `POST /api/v1/credentials
|
|
10
|
+
/** The request body of `POST /api/v1/credentials`. */
|
|
10
11
|
export type CreateCredentialBody = NonNullable<operations["create-credential"]["requestBody"]>["content"]["application/json"];
|
|
11
|
-
/** `GET /api/v1/credentials/{credentialId}
|
|
12
|
+
/** The success response body of `GET /api/v1/credentials/{credentialId}`. */
|
|
12
13
|
export type GetCredentialResult = operations["get-credential"]["responses"][200]["content"]["application/json"];
|
|
13
|
-
/** `PATCH /api/v1/credentials/{credentialId}
|
|
14
|
+
/** The success response body of `PATCH /api/v1/credentials/{credentialId}`. */
|
|
14
15
|
export type RenameCredentialResult = operations["rename-credential"]["responses"][200]["content"]["application/json"];
|
|
15
|
-
/** `PATCH /api/v1/credentials/{credentialId}
|
|
16
|
+
/** The request body of `PATCH /api/v1/credentials/{credentialId}`. */
|
|
16
17
|
export type RenameCredentialBody = NonNullable<operations["rename-credential"]["requestBody"]>["content"]["application/json"];
|
|
17
|
-
/** `POST /api/v1/credentials/{credentialId}/verification
|
|
18
|
+
/** The success response body of `POST /api/v1/credentials/{credentialId}/verification`. */
|
|
18
19
|
export type VerifyCredentialResult = operations["verify-credential"]["responses"][200]["content"]["application/json"];
|
|
19
|
-
/** `GET /api/v1/zones
|
|
20
|
+
/** The success response body of `GET /api/v1/zones`. */
|
|
20
21
|
export type ListZonesResult = operations["list-zones"]["responses"][200]["content"]["application/json"];
|
|
21
|
-
/** `GET /api/v1/zones
|
|
22
|
+
/** The query parameters of `GET /api/v1/zones`. */
|
|
22
23
|
export type ListZonesQuery = operations["list-zones"]["parameters"]["query"];
|
|
23
|
-
/** `GET /api/v1/zones/{zone}/records
|
|
24
|
+
/** The success response body of `GET /api/v1/zones/{zone}/records`. */
|
|
24
25
|
export type ListRecordsResult = operations["list-records"]["responses"][200]["content"]["application/json"];
|
|
25
|
-
/** `GET /api/v1/zones/{zone}/records
|
|
26
|
+
/** The query parameters of `GET /api/v1/zones/{zone}/records`. */
|
|
26
27
|
export type ListRecordsQuery = operations["list-records"]["parameters"]["query"];
|
|
27
|
-
/** `GET /api/v1/zones/{zone}/records/{name}/{type}
|
|
28
|
+
/** The success response body of `GET /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
28
29
|
export type GetRecordSetResult = operations["get-record-set"]["responses"][200]["content"]["application/json"];
|
|
29
|
-
/** `
|
|
30
|
-
export type ModifyRecordSetResult = operations["modify-record-set"]["responses"][200]["content"]["application/json"];
|
|
31
|
-
/** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 的查询参数。 */
|
|
32
|
-
export type ModifyRecordSetQuery = operations["modify-record-set"]["parameters"]["query"];
|
|
33
|
-
/** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 的请求体。 */
|
|
34
|
-
export type ModifyRecordSetBody = NonNullable<operations["modify-record-set"]["requestBody"]>["content"]["application/json"];
|
|
35
|
-
/** `PUT /api/v1/zones/{zone}/records/{name}/{type}` 成功时的响应体。 */
|
|
30
|
+
/** The success response body of `PUT /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
36
31
|
export type SetRecordSetResult = operations["set-record-set"]["responses"][200]["content"]["application/json"];
|
|
37
|
-
/** `PUT /api/v1/zones/{zone}/records/{name}/{type}
|
|
32
|
+
/** The query parameters of `PUT /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
38
33
|
export type SetRecordSetQuery = operations["set-record-set"]["parameters"]["query"];
|
|
39
|
-
/** `PUT /api/v1/zones/{zone}/records/{name}/{type}
|
|
34
|
+
/** The request body of `PUT /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
40
35
|
export type SetRecordSetBody = NonNullable<operations["set-record-set"]["requestBody"]>["content"]["application/json"];
|
|
41
|
-
/** `
|
|
36
|
+
/** The success response body of `PATCH /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
37
|
+
export type ModifyRecordSetResult = operations["modify-record-set"]["responses"][200]["content"]["application/json"];
|
|
38
|
+
/** The query parameters of `PATCH /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
39
|
+
export type ModifyRecordSetQuery = operations["modify-record-set"]["parameters"]["query"];
|
|
40
|
+
/** The request body of `PATCH /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
41
|
+
export type ModifyRecordSetBody = NonNullable<operations["modify-record-set"]["requestBody"]>["content"]["application/json"];
|
|
42
|
+
/** The query parameters of `DELETE /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
42
43
|
export type DeleteRecordSetQuery = operations["delete-record-set"]["parameters"]["query"];
|
package/dist/dns/v1/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by scripts/generate.mjs. DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
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/dns/v1/schema.d.ts
CHANGED
|
@@ -234,6 +234,10 @@ export interface components {
|
|
|
234
234
|
Error: {
|
|
235
235
|
code?: string;
|
|
236
236
|
message: string;
|
|
237
|
+
/**
|
|
238
|
+
* @description What a given `code` carries alongside the message. The keys depend on the code,
|
|
239
|
+
* and a client that does not recognise one ignores it.
|
|
240
|
+
*/
|
|
237
241
|
meta?: {
|
|
238
242
|
[key: string]: unknown;
|
|
239
243
|
};
|