@leaflow/sdk 0.55.0 → 0.56.1
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 +27 -26
- package/dist/account/v1/index.js +4 -4
- 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/billing/v1/index.d.ts +95 -95
- package/dist/billing/v1/index.js +3 -3
- package/dist/billing/v1/schema.d.ts +70 -56
- 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/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +124 -123
- package/dist/compute/v1/index.js +4 -4
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +21 -20
- package/dist/dns/v1/index.js +4 -4
- package/dist/fleet/v1/client.d.ts +4 -0
- package/dist/fleet/v1/client.js +7 -0
- package/dist/fleet/v1/index.d.ts +3 -2
- package/dist/fleet/v1/index.js +4 -4
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +42 -41
- package/dist/iam/v1/index.js +4 -4
- package/dist/index.d.ts +12 -12
- 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 +88 -87
- package/dist/monitoring/v1/index.js +4 -4
- 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/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/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/package.json +6 -4
|
@@ -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://compute.leaflow.cloud";
|
|
4
|
+
/** A client for the compute service. Pass baseUrl to override the address. */
|
|
5
|
+
export function client(options = {}) {
|
|
6
|
+
return createClient({ baseUrl: defaultBaseUrl, ...options });
|
|
7
|
+
}
|
|
@@ -1,248 +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/disk-types/{diskTypeId}
|
|
26
|
+
/** The success response body of `GET /api/v1/disk-types/{diskTypeId}`. */
|
|
26
27
|
export type GetDiskTypeResult = operations["get-disk-type"]["responses"][200]["content"]["application/json"];
|
|
27
|
-
/** `GET /api/v1/images
|
|
28
|
+
/** The success response body of `GET /api/v1/images`. */
|
|
28
29
|
export type ListImagesResult = operations["list-images"]["responses"][200]["content"]["application/json"];
|
|
29
|
-
/** `GET /api/v1/images
|
|
30
|
+
/** The query parameters of `GET /api/v1/images`. */
|
|
30
31
|
export type ListImagesQuery = operations["list-images"]["parameters"]["query"];
|
|
31
|
-
/** `GET /api/v1/instance-types
|
|
32
|
+
/** The success response body of `GET /api/v1/instance-types`. */
|
|
32
33
|
export type ListInstanceTypesResult = operations["list-instance-types"]["responses"][200]["content"]["application/json"];
|
|
33
|
-
/** `GET /api/v1/instance-types
|
|
34
|
+
/** The query parameters of `GET /api/v1/instance-types`. */
|
|
34
35
|
export type ListInstanceTypesQuery = operations["list-instance-types"]["parameters"]["query"];
|
|
35
|
-
/** `GET /api/v1/regions
|
|
36
|
+
/** The success response body of `GET /api/v1/regions`. */
|
|
36
37
|
export type ListRegionsResult = operations["list-regions"]["responses"][200]["content"]["application/json"];
|
|
37
|
-
/** `GET /api/v1/regions/{regionCode}/availability-zones
|
|
38
|
+
/** The success response body of `GET /api/v1/regions/{regionCode}/availability-zones`. */
|
|
38
39
|
export type ListAvailabilityZonesResult = operations["list-availability-zones"]["responses"][200]["content"]["application/json"];
|
|
39
|
-
/** `GET /api/v1/disks
|
|
40
|
+
/** The success response body of `GET /api/v1/disks`. */
|
|
40
41
|
export type ListDisksResult = operations["list-disks"]["responses"][200]["content"]["application/json"];
|
|
41
|
-
/** `GET /api/v1/disks
|
|
42
|
+
/** The query parameters of `GET /api/v1/disks`. */
|
|
42
43
|
export type ListDisksQuery = operations["list-disks"]["parameters"]["query"];
|
|
43
|
-
/** `POST /api/v1/disks
|
|
44
|
+
/** The success response body of `POST /api/v1/disks`. */
|
|
44
45
|
export type CreateDiskResult = operations["create-disk"]["responses"][201]["content"]["application/json"];
|
|
45
|
-
/** `POST /api/v1/disks
|
|
46
|
+
/** The request body of `POST /api/v1/disks`. */
|
|
46
47
|
export type CreateDiskBody = NonNullable<operations["create-disk"]["requestBody"]>["content"]["application/json"];
|
|
47
|
-
/** `GET /api/v1/disks/{diskId}
|
|
48
|
+
/** The success response body of `GET /api/v1/disks/{diskId}`. */
|
|
48
49
|
export type GetDiskResult = operations["get-disk"]["responses"][200]["content"]["application/json"];
|
|
49
|
-
/** `PATCH /api/v1/disks/{diskId}
|
|
50
|
+
/** The success response body of `PATCH /api/v1/disks/{diskId}`. */
|
|
50
51
|
export type RenameDiskResult = operations["rename-disk"]["responses"][200]["content"]["application/json"];
|
|
51
|
-
/** `PATCH /api/v1/disks/{diskId}
|
|
52
|
+
/** The request body of `PATCH /api/v1/disks/{diskId}`. */
|
|
52
53
|
export type RenameDiskBody = NonNullable<operations["rename-disk"]["requestBody"]>["content"]["application/json"];
|
|
53
|
-
/** `POST /api/v1/disks/{diskId}/resize
|
|
54
|
+
/** The success response body of `POST /api/v1/disks/{diskId}/resize`. */
|
|
54
55
|
export type ResizeDiskResult = operations["resize-disk"]["responses"][200]["content"]["application/json"];
|
|
55
|
-
/** `POST /api/v1/disks/{diskId}/resize
|
|
56
|
+
/** The request body of `POST /api/v1/disks/{diskId}/resize`. */
|
|
56
57
|
export type ResizeDiskBody = NonNullable<operations["resize-disk"]["requestBody"]>["content"]["application/json"];
|
|
57
|
-
/** `POST /api/v1/disks/{diskId}/revert
|
|
58
|
+
/** The success response body of `POST /api/v1/disks/{diskId}/revert`. */
|
|
58
59
|
export type RevertDiskResult = operations["revert-disk"]["responses"][200]["content"]["application/json"];
|
|
59
|
-
/** `POST /api/v1/disks/{diskId}/revert
|
|
60
|
+
/** The request body of `POST /api/v1/disks/{diskId}/revert`. */
|
|
60
61
|
export type RevertDiskBody = NonNullable<operations["revert-disk"]["requestBody"]>["content"]["application/json"];
|
|
61
|
-
/** `GET /api/v1/floating-ips
|
|
62
|
+
/** The success response body of `GET /api/v1/floating-ips`. */
|
|
62
63
|
export type ListFloatingIpsResult = operations["list-floating-ips"]["responses"][200]["content"]["application/json"];
|
|
63
|
-
/** `POST /api/v1/floating-ips
|
|
64
|
+
/** The success response body of `POST /api/v1/floating-ips`. */
|
|
64
65
|
export type AllocateFloatingIpResult = operations["allocate-floating-ip"]["responses"][201]["content"]["application/json"];
|
|
65
|
-
/** `POST /api/v1/floating-ips
|
|
66
|
+
/** The request body of `POST /api/v1/floating-ips`. */
|
|
66
67
|
export type AllocateFloatingIpBody = NonNullable<operations["allocate-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
67
|
-
/** `GET /api/v1/floating-ips/{floatingIpId}
|
|
68
|
+
/** The success response body of `GET /api/v1/floating-ips/{floatingIpId}`. */
|
|
68
69
|
export type GetFloatingIpResult = operations["get-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
69
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth
|
|
70
|
+
/** The success response body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
|
|
70
71
|
export type SetFloatingIpBandwidthResult = operations["set-floating-ip-bandwidth"]["responses"][200]["content"]["application/json"];
|
|
71
|
-
/** `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth
|
|
72
|
+
/** The request body of `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth`. */
|
|
72
73
|
export type SetFloatingIpBandwidthBody = NonNullable<operations["set-floating-ip-bandwidth"]["requestBody"]>["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
|
-
/** `DELETE /api/v1/floating-ips/{floatingIpId}/binding
|
|
78
|
+
/** The success response body of `DELETE /api/v1/floating-ips/{floatingIpId}/binding`. */
|
|
78
79
|
export type UnbindFloatingIpResult = operations["unbind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
79
|
-
/** `GET /api/v1/instances
|
|
80
|
+
/** The success response body of `GET /api/v1/instances`. */
|
|
80
81
|
export type ListInstancesResult = operations["list-instances"]["responses"][200]["content"]["application/json"];
|
|
81
|
-
/** `GET /api/v1/instances
|
|
82
|
+
/** The query parameters of `GET /api/v1/instances`. */
|
|
82
83
|
export type ListInstancesQuery = operations["list-instances"]["parameters"]["query"];
|
|
83
|
-
/** `POST /api/v1/instances
|
|
84
|
+
/** The success response body of `POST /api/v1/instances`. */
|
|
84
85
|
export type LaunchInstanceResult = operations["launch-instance"]["responses"][201]["content"]["application/json"];
|
|
85
|
-
/** `POST /api/v1/instances
|
|
86
|
+
/** The request body of `POST /api/v1/instances`. */
|
|
86
87
|
export type LaunchInstanceBody = NonNullable<operations["launch-instance"]["requestBody"]>["content"]["application/json"];
|
|
87
|
-
/** `GET /api/v1/instances/{instanceId}
|
|
88
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}`. */
|
|
88
89
|
export type GetInstanceResult = operations["get-instance"]["responses"][200]["content"]["application/json"];
|
|
89
|
-
/** `PATCH /api/v1/instances/{instanceId}
|
|
90
|
+
/** The success response body of `PATCH /api/v1/instances/{instanceId}`. */
|
|
90
91
|
export type RenameInstanceResult = operations["rename-instance"]["responses"][200]["content"]["application/json"];
|
|
91
|
-
/** `PATCH /api/v1/instances/{instanceId}
|
|
92
|
+
/** The request body of `PATCH /api/v1/instances/{instanceId}`. */
|
|
92
93
|
export type RenameInstanceBody = NonNullable<operations["rename-instance"]["requestBody"]>["content"]["application/json"];
|
|
93
|
-
/** `POST /api/v1/instances/{instanceId}/commands
|
|
94
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/commands`. */
|
|
94
95
|
export type RunInstanceCommandResult = operations["run-instance-command"]["responses"][200]["content"]["application/json"];
|
|
95
|
-
/** `POST /api/v1/instances/{instanceId}/commands
|
|
96
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/commands`. */
|
|
96
97
|
export type RunInstanceCommandBody = NonNullable<operations["run-instance-command"]["requestBody"]>["content"]["application/json"];
|
|
97
|
-
/** `POST /api/v1/instances/{instanceId}/console
|
|
98
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/console`. */
|
|
98
99
|
export type OpenInstanceConsoleResult = operations["open-instance-console"]["responses"][200]["content"]["application/json"];
|
|
99
|
-
/** `GET /api/v1/instances/{instanceId}/console-output
|
|
100
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/console-output`. */
|
|
100
101
|
export type GetInstanceConsoleOutputResult = operations["get-instance-console-output"]["responses"][200]["content"]["application/json"];
|
|
101
|
-
/** `GET /api/v1/instances/{instanceId}/console-output
|
|
102
|
+
/** The query parameters of `GET /api/v1/instances/{instanceId}/console-output`. */
|
|
102
103
|
export type GetInstanceConsoleOutputQuery = operations["get-instance-console-output"]["parameters"]["query"];
|
|
103
|
-
/** `PUT /api/v1/instances/{instanceId}/labels
|
|
104
|
+
/** The success response body of `PUT /api/v1/instances/{instanceId}/labels`. */
|
|
104
105
|
export type SetInstanceLabelsResult = operations["set-instance-labels"]["responses"][200]["content"]["application/json"];
|
|
105
|
-
/** `PUT /api/v1/instances/{instanceId}/labels
|
|
106
|
+
/** The request body of `PUT /api/v1/instances/{instanceId}/labels`. */
|
|
106
107
|
export type SetInstanceLabelsBody = NonNullable<operations["set-instance-labels"]["requestBody"]>["content"]["application/json"];
|
|
107
|
-
/** `PUT /api/v1/instances/{instanceId}/notes
|
|
108
|
+
/** The success response body of `PUT /api/v1/instances/{instanceId}/notes`. */
|
|
108
109
|
export type SetInstanceNotesResult = operations["set-instance-notes"]["responses"][200]["content"]["application/json"];
|
|
109
|
-
/** `PUT /api/v1/instances/{instanceId}/notes
|
|
110
|
+
/** The request body of `PUT /api/v1/instances/{instanceId}/notes`. */
|
|
110
111
|
export type SetInstanceNotesBody = NonNullable<operations["set-instance-notes"]["requestBody"]>["content"]["application/json"];
|
|
111
|
-
/** `POST /api/v1/instances/{instanceId}/password
|
|
112
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/password`. */
|
|
112
113
|
export type ResetInstancePasswordResult = operations["reset-instance-password"]["responses"][200]["content"]["application/json"];
|
|
113
|
-
/** `POST /api/v1/instances/{instanceId}/password
|
|
114
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/password`. */
|
|
114
115
|
export type ResetInstancePasswordBody = NonNullable<operations["reset-instance-password"]["requestBody"]>["content"]["application/json"];
|
|
115
|
-
/** `POST /api/v1/instances/{instanceId}/reboot
|
|
116
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/reboot`. */
|
|
116
117
|
export type RebootInstanceResult = operations["reboot-instance"]["responses"][200]["content"]["application/json"];
|
|
117
|
-
/** `POST /api/v1/instances/{instanceId}/reboot
|
|
118
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/reboot`. */
|
|
118
119
|
export type RebootInstanceBody = NonNullable<operations["reboot-instance"]["requestBody"]>["content"]["application/json"];
|
|
119
|
-
/** `POST /api/v1/instances/{instanceId}/rebuild
|
|
120
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/rebuild`. */
|
|
120
121
|
export type RebuildInstanceResult = operations["rebuild-instance"]["responses"][200]["content"]["application/json"];
|
|
121
|
-
/** `POST /api/v1/instances/{instanceId}/rebuild
|
|
122
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/rebuild`. */
|
|
122
123
|
export type RebuildInstanceBody = NonNullable<operations["rebuild-instance"]["requestBody"]>["content"]["application/json"];
|
|
123
|
-
/** `POST /api/v1/instances/{instanceId}/resize
|
|
124
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/resize`. */
|
|
124
125
|
export type ResizeInstanceResult = operations["resize-instance"]["responses"][200]["content"]["application/json"];
|
|
125
|
-
/** `POST /api/v1/instances/{instanceId}/resize
|
|
126
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/resize`. */
|
|
126
127
|
export type ResizeInstanceBody = NonNullable<operations["resize-instance"]["requestBody"]>["content"]["application/json"];
|
|
127
|
-
/** `POST /api/v1/instances/{instanceId}/resize/confirm
|
|
128
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/resize/confirm`. */
|
|
128
129
|
export type ConfirmInstanceResizeResult = operations["confirm-instance-resize"]["responses"][200]["content"]["application/json"];
|
|
129
|
-
/** `POST /api/v1/instances/{instanceId}/resize/revert
|
|
130
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/resize/revert`. */
|
|
130
131
|
export type RevertInstanceResizeResult = operations["revert-instance-resize"]["responses"][200]["content"]["application/json"];
|
|
131
|
-
/** `POST /api/v1/instances/{instanceId}/start
|
|
132
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/start`. */
|
|
132
133
|
export type StartInstanceResult = operations["start-instance"]["responses"][200]["content"]["application/json"];
|
|
133
|
-
/** `POST /api/v1/instances/{instanceId}/stop
|
|
134
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/stop`. */
|
|
134
135
|
export type StopInstanceResult = operations["stop-instance"]["responses"][200]["content"]["application/json"];
|
|
135
|
-
/** `GET /api/v1/instances/{instanceId}/disks
|
|
136
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/disks`. */
|
|
136
137
|
export type ListInstanceDisksResult = operations["list-instance-disks"]["responses"][200]["content"]["application/json"];
|
|
137
|
-
/** `POST /api/v1/instances/{instanceId}/disks
|
|
138
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/disks`. */
|
|
138
139
|
export type AttachDiskResult = operations["attach-disk"]["responses"][200]["content"]["application/json"];
|
|
139
|
-
/** `POST /api/v1/instances/{instanceId}/disks
|
|
140
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/disks`. */
|
|
140
141
|
export type AttachDiskBody = NonNullable<operations["attach-disk"]["requestBody"]>["content"]["application/json"];
|
|
141
|
-
/** `DELETE /api/v1/instances/{instanceId}/disks/{diskId}
|
|
142
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/disks/{diskId}`. */
|
|
142
143
|
export type DetachDiskResult = operations["detach-disk"]["responses"][200]["content"]["application/json"];
|
|
143
|
-
/** `POST /api/v1/instances/{instanceId}/floating-ips
|
|
144
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
|
|
144
145
|
export type AttachInstanceFloatingIpResult = operations["attach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
145
|
-
/** `POST /api/v1/instances/{instanceId}/floating-ips
|
|
146
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
|
|
146
147
|
export type AttachInstanceFloatingIpBody = NonNullable<operations["attach-instance-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
147
|
-
/** `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}
|
|
148
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}`. */
|
|
148
149
|
export type DetachInstanceFloatingIpResult = operations["detach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
149
|
-
/** `GET /api/v1/instances/{instanceId}/ports
|
|
150
|
+
/** The success response body of `GET /api/v1/instances/{instanceId}/ports`. */
|
|
150
151
|
export type ListInstancePortsResult = operations["list-instance-ports"]["responses"][200]["content"]["application/json"];
|
|
151
|
-
/** `POST /api/v1/instances/{instanceId}/ports
|
|
152
|
+
/** The success response body of `POST /api/v1/instances/{instanceId}/ports`. */
|
|
152
153
|
export type AttachPortResult = operations["attach-port"]["responses"][200]["content"]["application/json"];
|
|
153
|
-
/** `POST /api/v1/instances/{instanceId}/ports
|
|
154
|
+
/** The request body of `POST /api/v1/instances/{instanceId}/ports`. */
|
|
154
155
|
export type AttachPortBody = NonNullable<operations["attach-port"]["requestBody"]>["content"]["application/json"];
|
|
155
|
-
/** `DELETE /api/v1/instances/{instanceId}/ports/{portId}
|
|
156
|
+
/** The success response body of `DELETE /api/v1/instances/{instanceId}/ports/{portId}`. */
|
|
156
157
|
export type DetachPortResult = operations["detach-port"]["responses"][200]["content"]["application/json"];
|
|
157
|
-
/** `GET /api/v1/operation-logs
|
|
158
|
+
/** The success response body of `GET /api/v1/operation-logs`. */
|
|
158
159
|
export type ListOperationLogsResult = operations["list-operation-logs"]["responses"][200]["content"]["application/json"];
|
|
159
|
-
/** `GET /api/v1/operation-logs
|
|
160
|
+
/** The query parameters of `GET /api/v1/operation-logs`. */
|
|
160
161
|
export type ListOperationLogsQuery = operations["list-operation-logs"]["parameters"]["query"];
|
|
161
|
-
/** `GET /api/v1/ports
|
|
162
|
+
/** The success response body of `GET /api/v1/ports`. */
|
|
162
163
|
export type ListPortsResult = operations["list-ports"]["responses"][200]["content"]["application/json"];
|
|
163
|
-
/** `POST /api/v1/ports
|
|
164
|
+
/** The success response body of `POST /api/v1/ports`. */
|
|
164
165
|
export type CreatePortResult = operations["create-port"]["responses"][201]["content"]["application/json"];
|
|
165
|
-
/** `POST /api/v1/ports
|
|
166
|
+
/** The request body of `POST /api/v1/ports`. */
|
|
166
167
|
export type CreatePortBody = NonNullable<operations["create-port"]["requestBody"]>["content"]["application/json"];
|
|
167
|
-
/** `GET /api/v1/private-images
|
|
168
|
+
/** The success response body of `GET /api/v1/private-images`. */
|
|
168
169
|
export type ListPrivateImagesResult = operations["list-private-images"]["responses"][200]["content"]["application/json"];
|
|
169
|
-
/** `GET /api/v1/private-images
|
|
170
|
+
/** The query parameters of `GET /api/v1/private-images`. */
|
|
170
171
|
export type ListPrivateImagesQuery = operations["list-private-images"]["parameters"]["query"];
|
|
171
|
-
/** `POST /api/v1/private-images
|
|
172
|
+
/** The success response body of `POST /api/v1/private-images`. */
|
|
172
173
|
export type CreatePrivateImageResult = operations["create-private-image"]["responses"][201]["content"]["application/json"];
|
|
173
|
-
/** `POST /api/v1/private-images
|
|
174
|
+
/** The request body of `POST /api/v1/private-images`. */
|
|
174
175
|
export type CreatePrivateImageBody = NonNullable<operations["create-private-image"]["requestBody"]>["content"]["application/json"];
|
|
175
|
-
/** `GET /api/v1/private-images/{privateImageId}
|
|
176
|
+
/** The success response body of `GET /api/v1/private-images/{privateImageId}`. */
|
|
176
177
|
export type GetPrivateImageResult = operations["get-private-image"]["responses"][200]["content"]["application/json"];
|
|
177
|
-
/** `PATCH /api/v1/private-images/{privateImageId}
|
|
178
|
+
/** The success response body of `PATCH /api/v1/private-images/{privateImageId}`. */
|
|
178
179
|
export type RenamePrivateImageResult = operations["rename-private-image"]["responses"][200]["content"]["application/json"];
|
|
179
|
-
/** `PATCH /api/v1/private-images/{privateImageId}
|
|
180
|
+
/** The request body of `PATCH /api/v1/private-images/{privateImageId}`. */
|
|
180
181
|
export type RenamePrivateImageBody = NonNullable<operations["rename-private-image"]["requestBody"]>["content"]["application/json"];
|
|
181
|
-
/** `GET /api/v1/private-networks
|
|
182
|
+
/** The success response body of `GET /api/v1/private-networks`. */
|
|
182
183
|
export type ListPrivateNetworksResult = operations["list-private-networks"]["responses"][200]["content"]["application/json"];
|
|
183
|
-
/** `GET /api/v1/private-networks
|
|
184
|
+
/** The query parameters of `GET /api/v1/private-networks`. */
|
|
184
185
|
export type ListPrivateNetworksQuery = operations["list-private-networks"]["parameters"]["query"];
|
|
185
|
-
/** `POST /api/v1/private-networks
|
|
186
|
+
/** The success response body of `POST /api/v1/private-networks`. */
|
|
186
187
|
export type CreatePrivateNetworkResult = operations["create-private-network"]["responses"][201]["content"]["application/json"];
|
|
187
|
-
/** `POST /api/v1/private-networks
|
|
188
|
+
/** The request body of `POST /api/v1/private-networks`. */
|
|
188
189
|
export type CreatePrivateNetworkBody = NonNullable<operations["create-private-network"]["requestBody"]>["content"]["application/json"];
|
|
189
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}
|
|
190
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}`. */
|
|
190
191
|
export type GetPrivateNetworkResult = operations["get-private-network"]["responses"][200]["content"]["application/json"];
|
|
191
|
-
/** `PATCH /api/v1/private-networks/{privateNetworkId}
|
|
192
|
+
/** The success response body of `PATCH /api/v1/private-networks/{privateNetworkId}`. */
|
|
192
193
|
export type RenamePrivateNetworkResult = operations["rename-private-network"]["responses"][200]["content"]["application/json"];
|
|
193
|
-
/** `PATCH /api/v1/private-networks/{privateNetworkId}
|
|
194
|
+
/** The request body of `PATCH /api/v1/private-networks/{privateNetworkId}`. */
|
|
194
195
|
export type RenamePrivateNetworkBody = NonNullable<operations["rename-private-network"]["requestBody"]>["content"]["application/json"];
|
|
195
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/ipv6
|
|
196
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/ipv6`. */
|
|
196
197
|
export type GetPrivateNetworkIpv6Result = operations["get-private-network-ipv6"]["responses"][200]["content"]["application/json"];
|
|
197
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/ipv6
|
|
198
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/ipv6`. */
|
|
198
199
|
export type EnablePrivateNetworkIpv6Result = operations["enable-private-network-ipv6"]["responses"][200]["content"]["application/json"];
|
|
199
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/routes
|
|
200
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
200
201
|
export type ListRoutesResult = operations["list-routes"]["responses"][200]["content"]["application/json"];
|
|
201
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/routes
|
|
202
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
202
203
|
export type CreateRouteResult = operations["create-route"]["responses"][201]["content"]["application/json"];
|
|
203
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/routes
|
|
204
|
+
/** The request body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
|
|
204
205
|
export type CreateRouteBody = NonNullable<operations["create-route"]["requestBody"]>["content"]["application/json"];
|
|
205
|
-
/** `GET /api/v1/private-networks/{privateNetworkId}/subnets
|
|
206
|
+
/** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
206
207
|
export type ListSubnetsResult = operations["list-subnets"]["responses"][200]["content"]["application/json"];
|
|
207
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/subnets
|
|
208
|
+
/** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
208
209
|
export type CreateSubnetResult = operations["create-subnet"]["responses"][201]["content"]["application/json"];
|
|
209
|
-
/** `POST /api/v1/private-networks/{privateNetworkId}/subnets
|
|
210
|
+
/** The request body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
|
|
210
211
|
export type CreateSubnetBody = NonNullable<operations["create-subnet"]["requestBody"]>["content"]["application/json"];
|
|
211
|
-
/** `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`. */
|
|
212
213
|
export type SuggestSubnetCidrResult = operations["suggest-subnet-cidr"]["responses"][200]["content"]["application/json"];
|
|
213
|
-
/** `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`. */
|
|
214
215
|
export type SuggestSubnetCidrQuery = operations["suggest-subnet-cidr"]["parameters"]["query"];
|
|
215
|
-
/** `GET /api/v1/security-groups
|
|
216
|
+
/** The success response body of `GET /api/v1/security-groups`. */
|
|
216
217
|
export type ListSecurityGroupsResult = operations["list-security-groups"]["responses"][200]["content"]["application/json"];
|
|
217
|
-
/** `GET /api/v1/security-groups
|
|
218
|
+
/** The query parameters of `GET /api/v1/security-groups`. */
|
|
218
219
|
export type ListSecurityGroupsQuery = operations["list-security-groups"]["parameters"]["query"];
|
|
219
|
-
/** `POST /api/v1/security-groups
|
|
220
|
+
/** The success response body of `POST /api/v1/security-groups`. */
|
|
220
221
|
export type CreateSecurityGroupResult = operations["create-security-group"]["responses"][201]["content"]["application/json"];
|
|
221
|
-
/** `POST /api/v1/security-groups
|
|
222
|
+
/** The request body of `POST /api/v1/security-groups`. */
|
|
222
223
|
export type CreateSecurityGroupBody = NonNullable<operations["create-security-group"]["requestBody"]>["content"]["application/json"];
|
|
223
|
-
/** `GET /api/v1/security-groups/{securityGroupId}
|
|
224
|
+
/** The success response body of `GET /api/v1/security-groups/{securityGroupId}`. */
|
|
224
225
|
export type GetSecurityGroupResult = operations["get-security-group"]["responses"][200]["content"]["application/json"];
|
|
225
|
-
/** `PATCH /api/v1/security-groups/{securityGroupId}
|
|
226
|
+
/** The success response body of `PATCH /api/v1/security-groups/{securityGroupId}`. */
|
|
226
227
|
export type RenameSecurityGroupResult = operations["rename-security-group"]["responses"][200]["content"]["application/json"];
|
|
227
|
-
/** `PATCH /api/v1/security-groups/{securityGroupId}
|
|
228
|
+
/** The request body of `PATCH /api/v1/security-groups/{securityGroupId}`. */
|
|
228
229
|
export type RenameSecurityGroupBody = NonNullable<operations["rename-security-group"]["requestBody"]>["content"]["application/json"];
|
|
229
|
-
/** `GET /api/v1/security-groups/{securityGroupId}/rules
|
|
230
|
+
/** The success response body of `GET /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
230
231
|
export type ListSecurityGroupRulesResult = operations["list-security-group-rules"]["responses"][200]["content"]["application/json"];
|
|
231
|
-
/** `POST /api/v1/security-groups/{securityGroupId}/rules
|
|
232
|
+
/** The success response body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
232
233
|
export type CreateSecurityGroupRuleResult = operations["create-security-group-rule"]["responses"][201]["content"]["application/json"];
|
|
233
|
-
/** `POST /api/v1/security-groups/{securityGroupId}/rules
|
|
234
|
+
/** The request body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */
|
|
234
235
|
export type CreateSecurityGroupRuleBody = NonNullable<operations["create-security-group-rule"]["requestBody"]>["content"]["application/json"];
|
|
235
|
-
/** `GET /api/v1/snapshots
|
|
236
|
+
/** The success response body of `GET /api/v1/snapshots`. */
|
|
236
237
|
export type ListSnapshotsResult = operations["list-snapshots"]["responses"][200]["content"]["application/json"];
|
|
237
|
-
/** `GET /api/v1/snapshots
|
|
238
|
+
/** The query parameters of `GET /api/v1/snapshots`. */
|
|
238
239
|
export type ListSnapshotsQuery = operations["list-snapshots"]["parameters"]["query"];
|
|
239
|
-
/** `POST /api/v1/snapshots
|
|
240
|
+
/** The success response body of `POST /api/v1/snapshots`. */
|
|
240
241
|
export type CreateSnapshotResult = operations["create-snapshot"]["responses"][201]["content"]["application/json"];
|
|
241
|
-
/** `POST /api/v1/snapshots
|
|
242
|
+
/** The request body of `POST /api/v1/snapshots`. */
|
|
242
243
|
export type CreateSnapshotBody = NonNullable<operations["create-snapshot"]["requestBody"]>["content"]["application/json"];
|
|
243
|
-
/** `GET /api/v1/snapshots/{snapshotId}
|
|
244
|
+
/** The success response body of `GET /api/v1/snapshots/{snapshotId}`. */
|
|
244
245
|
export type GetSnapshotResult = operations["get-snapshot"]["responses"][200]["content"]["application/json"];
|
|
245
|
-
/** `PATCH /api/v1/snapshots/{snapshotId}
|
|
246
|
+
/** The success response body of `PATCH /api/v1/snapshots/{snapshotId}`. */
|
|
246
247
|
export type RenameSnapshotResult = operations["rename-snapshot"]["responses"][200]["content"]["application/json"];
|
|
247
|
-
/** `PATCH /api/v1/snapshots/{snapshotId}
|
|
248
|
+
/** The request body of `PATCH /api/v1/snapshots/{snapshotId}`. */
|
|
248
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";
|
|
@@ -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
|
-
/** `PUT /api/v1/zones/{zone}/records/{name}/{type}
|
|
30
|
+
/** The success response body of `PUT /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
30
31
|
export type SetRecordSetResult = operations["set-record-set"]["responses"][200]["content"]["application/json"];
|
|
31
|
-
/** `PUT /api/v1/zones/{zone}/records/{name}/{type}
|
|
32
|
+
/** The query parameters of `PUT /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
32
33
|
export type SetRecordSetQuery = operations["set-record-set"]["parameters"]["query"];
|
|
33
|
-
/** `PUT /api/v1/zones/{zone}/records/{name}/{type}
|
|
34
|
+
/** The request body of `PUT /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
34
35
|
export type SetRecordSetBody = NonNullable<operations["set-record-set"]["requestBody"]>["content"]["application/json"];
|
|
35
|
-
/** `PATCH /api/v1/zones/{zone}/records/{name}/{type}
|
|
36
|
+
/** The success response body of `PATCH /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
36
37
|
export type ModifyRecordSetResult = operations["modify-record-set"]["responses"][200]["content"]["application/json"];
|
|
37
|
-
/** `PATCH /api/v1/zones/{zone}/records/{name}/{type}
|
|
38
|
+
/** The query parameters of `PATCH /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
38
39
|
export type ModifyRecordSetQuery = operations["modify-record-set"]["parameters"]["query"];
|
|
39
|
-
/** `PATCH /api/v1/zones/{zone}/records/{name}/{type}
|
|
40
|
+
/** The request body of `PATCH /api/v1/zones/{zone}/records/{name}/{type}`. */
|
|
40
41
|
export type ModifyRecordSetBody = NonNullable<operations["modify-record-set"]["requestBody"]>["content"]["application/json"];
|
|
41
|
-
/** `DELETE /api/v1/zones/{zone}/records/{name}/{type}
|
|
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";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ClientOptions } from "openapi-fetch";
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
/** A client for the fleet 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://fleet.leaflow.cloud";
|
|
4
|
+
/** A client for the fleet service. Pass baseUrl to override the address. */
|
|
5
|
+
export function client(options = {}) {
|
|
6
|
+
return createClient({ baseUrl: defaultBaseUrl, ...options });
|
|
7
|
+
}
|
package/dist/fleet/v1/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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/regions
|
|
4
|
+
/** The success response body of `GET /api/v1/regions`. */
|
|
4
5
|
export type ListRegionsResult = operations["list-regions"]["responses"][200]["content"]["application/json"];
|
|
5
|
-
/** `GET /api/v1/regions/{regionCode}/availability-zones
|
|
6
|
+
/** The success response body of `GET /api/v1/regions/{regionCode}/availability-zones`. */
|
|
6
7
|
export type ListAvailabilityZonesResult = operations["list-availability-zones"]["responses"][200]["content"]["application/json"];
|
package/dist/fleet/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";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ClientOptions } from "openapi-fetch";
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
/** A client for the iam 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://iam.leaflow.cloud";
|
|
4
|
+
/** A client for the iam service. Pass baseUrl to override the address. */
|
|
5
|
+
export function client(options = {}) {
|
|
6
|
+
return createClient({ baseUrl: defaultBaseUrl, ...options });
|
|
7
|
+
}
|