@distilled.cloud/fly-io 1.0.0-rc.14 → 1.0.0-rc.16
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/lib/credentials.d.ts +3 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +43 -38
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +24 -24
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +37 -37
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +31 -31
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +3 -3
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +89 -66
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +26 -25
- package/lib/retry.js.map +1 -1
- package/lib/services/addons.d.ts +0 -65
- package/lib/services/addons.d.ts.map +1 -1
- package/lib/services/addons.js +54 -561
- package/lib/services/machines.d.ts +25 -444
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +317 -2726
- package/lib/services/mpg.d.ts +1 -67
- package/lib/services/mpg.d.ts.map +1 -1
- package/lib/services/mpg.js +75 -448
- package/lib/services/sprites.d.ts +1 -125
- package/lib/services/sprites.d.ts.map +1 -1
- package/lib/services/sprites.js +146 -884
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +14 -14
- package/lib/traits.js.map +1 -1
- package/package.json +13 -9
- package/src/credentials.ts +18 -15
- package/src/errors.ts +26 -28
- package/src/index.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/protocol.ts +67 -36
- package/src/retry.ts +6 -4
- package/src/services/addons.ts +593 -692
- package/src/services/machines.ts +3332 -3364
- package/src/services/mpg.ts +582 -519
- package/src/services/sprites.ts +1008 -948
- package/src/traits.ts +8 -4
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -126
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/addons.js.map +0 -1
- package/lib/services/machines.js.map +0 -1
- package/lib/services/mpg.js.map +0 -1
- package/lib/services/sprites.js.map +0 -1
- package/lib/sprites-mint.test.d.ts +0 -2
- package/lib/sprites-mint.test.d.ts.map +0 -1
- package/lib/sprites-mint.test.js +0 -169
- package/lib/sprites-mint.test.js.map +0 -1
- package/src/protocol.test.ts +0 -214
- package/src/sprites-mint.test.ts +0 -228
package/lib/services/mpg.js
CHANGED
|
@@ -1,454 +1,81 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
4
5
|
import { Conflict, Forbidden, NotFound } from "../errors.js";
|
|
5
6
|
import { FlyApiProtocol } from "../protocol.js";
|
|
6
7
|
import * as Retry from "../retry.js";
|
|
7
8
|
import * as T from "../traits.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export const
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})).
|
|
50
|
-
|
|
51
|
-
export const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
-
id: S.String.pipe(T.Label()),
|
|
83
|
-
username: S.String,
|
|
84
|
-
role: CreateUserRequestRole,
|
|
85
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/postgresv2/{id}/users", code: 200 }))).annotate({ identifier: "CreateUserRequest" });
|
|
86
|
-
export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
-
name: S.optional(S.String),
|
|
88
|
-
username: S.optional(S.String),
|
|
89
|
-
role: S.optional(S.String),
|
|
90
|
-
})).annotate({ identifier: "User" });
|
|
91
|
-
export const CreateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
data: S.optional(User),
|
|
93
|
-
})).annotate({ identifier: "CreateUserResponse" });
|
|
94
|
-
export const DeleteAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
95
|
-
id: S.String.pipe(T.Label()),
|
|
96
|
-
app_name: S.String.pipe(T.Label()),
|
|
97
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/api/v1/postgresv2/{id}/attachments/{app_name}", code: 200 }))).annotate({ identifier: "DeleteAttachmentRequest" });
|
|
98
|
-
export const DeleteAttachmentResponseData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
-
message: S.optional(S.String),
|
|
100
|
-
})).annotate({
|
|
101
|
-
identifier: "DeleteAttachmentResponseData",
|
|
102
|
-
});
|
|
103
|
-
export const DeleteAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
104
|
-
data: S.optional(DeleteAttachmentResponseData),
|
|
105
|
-
})).annotate({ identifier: "DeleteAttachmentResponse" });
|
|
106
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
107
|
-
id: S.String.pipe(T.Label()),
|
|
108
|
-
username: S.String.pipe(T.Label()),
|
|
109
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/api/v1/postgresv2/{id}/users/{username}", code: 200 }))).annotate({ identifier: "DeleteUserRequest" });
|
|
110
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
111
|
-
identifier: "DeleteUserResponse",
|
|
112
|
-
});
|
|
113
|
-
export const DestroyClusterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
org_slug: S.String.pipe(T.Label()),
|
|
115
|
-
id: S.String.pipe(T.Label()),
|
|
116
|
-
}).pipe(T.Http({
|
|
117
|
-
method: "DELETE",
|
|
118
|
-
uri: "/api/v1/organizations/{org_slug}/postgresv2/{id}",
|
|
119
|
-
code: 200,
|
|
120
|
-
}))).annotate({ identifier: "DestroyClusterRequest" });
|
|
121
|
-
export const DestroyClusterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
122
|
-
identifier: "DestroyClusterResponse",
|
|
123
|
-
});
|
|
124
|
-
export const DisableExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
125
|
-
id: S.String.pipe(T.Label()),
|
|
126
|
-
database: S.String.pipe(T.Label()),
|
|
127
|
-
name: S.String.pipe(T.Label()),
|
|
128
|
-
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
129
|
-
}).pipe(T.Http({
|
|
130
|
-
method: "DELETE",
|
|
131
|
-
uri: "/api/v1/postgresv2/{id}/databases/{database}/extensions/{name}",
|
|
132
|
-
code: 200,
|
|
133
|
-
}))).annotate({ identifier: "DisableExtensionRequest" });
|
|
134
|
-
export const DisableExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
135
|
-
identifier: "DisableExtensionResponse",
|
|
136
|
-
});
|
|
137
|
-
export const EnableExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
138
|
-
id: S.String.pipe(T.Label()),
|
|
139
|
-
database: S.String.pipe(T.Label()),
|
|
140
|
-
name: S.String,
|
|
141
|
-
schema: S.optional(S.String),
|
|
142
|
-
create_schema_if_needed: S.optional(S.Boolean),
|
|
143
|
-
}).pipe(T.Http({
|
|
144
|
-
method: "POST",
|
|
145
|
-
uri: "/api/v1/postgresv2/{id}/databases/{database}/extensions",
|
|
146
|
-
code: 200,
|
|
147
|
-
}))).annotate({ identifier: "EnableExtensionRequest" });
|
|
148
|
-
export const EnableExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
149
|
-
identifier: "EnableExtensionResponse",
|
|
150
|
-
});
|
|
151
|
-
export const GetClusterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
152
|
-
org_slug: S.String.pipe(T.Label()),
|
|
153
|
-
id: S.String.pipe(T.Label()),
|
|
154
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/organizations/{org_slug}/postgresv2/{id}", code: 200 }))).annotate({ identifier: "GetClusterRequest" });
|
|
155
|
-
export const ClusterCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
156
|
-
status: S.optional(S.String),
|
|
157
|
-
user: S.optional(S.String),
|
|
158
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
159
|
-
dbname: S.optional(S.String),
|
|
160
|
-
pgbouncer_uri: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
161
|
-
})).annotate({ identifier: "ClusterCredentials" });
|
|
162
|
-
export const GetClusterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
163
|
-
data: S.optional(ManagedCluster),
|
|
164
|
-
credentials: S.optional(ClusterCredentials),
|
|
165
|
-
})).annotate({ identifier: "GetClusterResponse" });
|
|
166
|
-
export const GetClusterByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
|
-
id: S.String.pipe(T.Label()),
|
|
168
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/postgresv2/{id}", code: 200 }))).annotate({ identifier: "GetClusterByIdRequest" });
|
|
169
|
-
export const GetUserCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
-
id: S.String.pipe(T.Label()),
|
|
171
|
-
username: S.String.pipe(T.Label()),
|
|
172
|
-
}).pipe(T.Http({
|
|
173
|
-
method: "GET",
|
|
174
|
-
uri: "/api/v1/postgresv2/{id}/users/{username}/credentials",
|
|
175
|
-
code: 200,
|
|
176
|
-
}))).annotate({
|
|
177
|
-
identifier: "GetUserCredentialsRequest",
|
|
178
|
-
});
|
|
179
|
-
export const GetUserCredentialsResponseData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
-
username: S.optional(S.String),
|
|
181
|
-
user: S.optional(S.String),
|
|
182
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
183
|
-
})).annotate({
|
|
184
|
-
identifier: "GetUserCredentialsResponseData",
|
|
185
|
-
});
|
|
186
|
-
export const GetUserCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
187
|
-
data: S.optional(GetUserCredentialsResponseData),
|
|
188
|
-
})).annotate({
|
|
189
|
-
identifier: "GetUserCredentialsResponse",
|
|
190
|
-
});
|
|
191
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
192
|
-
id: S.String.pipe(T.Label()),
|
|
193
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/postgresv2/{id}/backups", code: 200 }))).annotate({ identifier: "ListBackupsRequest" });
|
|
194
|
-
export const ClusterBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
195
|
-
id: S.optional(S.String),
|
|
196
|
-
status: S.optional(S.String),
|
|
197
|
-
type: S.optional(S.String),
|
|
198
|
-
start: S.optional(S.String),
|
|
199
|
-
stop: S.optional(S.String),
|
|
200
|
-
})).annotate({ identifier: "ClusterBackup" });
|
|
201
|
-
export const ListBackupsResponseDataList = /*@__PURE__*/ S.Array(ClusterBackup);
|
|
202
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
203
|
-
data: S.optional(ListBackupsResponseDataList),
|
|
204
|
-
})).annotate({ identifier: "ListBackupsResponse" });
|
|
205
|
-
export const ListClustersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
206
|
-
org_slug: S.String.pipe(T.Label()),
|
|
207
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/organizations/{org_slug}/postgresv2", code: 200 }))).annotate({ identifier: "ListClustersRequest" });
|
|
208
|
-
export const ListClustersResponseDataList = /*@__PURE__*/ S.Array(ManagedCluster);
|
|
209
|
-
export const ListClustersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
210
|
-
data: S.optional(ListClustersResponseDataList),
|
|
211
|
-
})).annotate({ identifier: "ListClustersResponse" });
|
|
212
|
-
export const ListDatabasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
-
id: S.String.pipe(T.Label()),
|
|
214
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/postgresv2/{id}/databases", code: 200 }))).annotate({ identifier: "ListDatabasesRequest" });
|
|
215
|
-
export const Database = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
216
|
-
name: S.optional(S.String),
|
|
217
|
-
})).annotate({ identifier: "Database" });
|
|
218
|
-
export const ListDatabasesResponseDataList = /*@__PURE__*/ S.Array(Database);
|
|
219
|
-
export const ListDatabasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
220
|
-
data: S.optional(ListDatabasesResponseDataList),
|
|
221
|
-
})).annotate({ identifier: "ListDatabasesResponse" });
|
|
222
|
-
export const ListExtensionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
223
|
-
id: S.String.pipe(T.Label()),
|
|
224
|
-
database: S.String.pipe(T.Label()),
|
|
225
|
-
}).pipe(T.Http({
|
|
226
|
-
method: "GET",
|
|
227
|
-
uri: "/api/v1/postgresv2/{id}/databases/{database}/extensions",
|
|
228
|
-
code: 200,
|
|
229
|
-
}))).annotate({ identifier: "ListExtensionsRequest" });
|
|
230
|
-
export const InstalledExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
231
|
-
version: S.optional(S.String),
|
|
232
|
-
schema: S.optional(S.String),
|
|
233
|
-
})).annotate({ identifier: "InstalledExtension" });
|
|
234
|
-
export const Extension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
-
name: S.optional(S.String),
|
|
236
|
-
description: S.optional(S.String),
|
|
237
|
-
docs_url: S.optional(S.String),
|
|
238
|
-
default_version: S.optional(S.String),
|
|
239
|
-
is_system: S.optional(S.Boolean),
|
|
240
|
-
installed: S.optional(InstalledExtension),
|
|
241
|
-
})).annotate({ identifier: "Extension" });
|
|
242
|
-
export const ListExtensionsResponseDataList = /*@__PURE__*/ S.Array(Extension);
|
|
243
|
-
export const ListExtensionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
244
|
-
data: S.optional(ListExtensionsResponseDataList),
|
|
245
|
-
})).annotate({ identifier: "ListExtensionsResponse" });
|
|
246
|
-
export const ListRegionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
247
|
-
org_slug: S.String.pipe(T.Label()),
|
|
248
|
-
}).pipe(T.Http({
|
|
249
|
-
method: "GET",
|
|
250
|
-
uri: "/api/v1/organizations/{org_slug}/postgresv2/regions",
|
|
251
|
-
code: 200,
|
|
252
|
-
}))).annotate({ identifier: "ListRegionsRequest" });
|
|
253
|
-
export const Region = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
254
|
-
code: S.optional(S.String),
|
|
255
|
-
available: S.optional(S.Boolean),
|
|
256
|
-
})).annotate({ identifier: "Region" });
|
|
257
|
-
export const ListRegionsResponseDataList = /*@__PURE__*/ S.Array(Region);
|
|
258
|
-
export const ListRegionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
259
|
-
data: S.optional(ListRegionsResponseDataList),
|
|
260
|
-
})).annotate({ identifier: "ListRegionsResponse" });
|
|
261
|
-
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
262
|
-
id: S.String.pipe(T.Label()),
|
|
263
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/postgresv2/{id}/users", code: 200 }))).annotate({ identifier: "ListUsersRequest" });
|
|
264
|
-
export const ListUsersResponseDataList = /*@__PURE__*/ S.Array(User);
|
|
265
|
-
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
266
|
-
data: S.optional(ListUsersResponseDataList),
|
|
267
|
-
})).annotate({ identifier: "ListUsersResponse" });
|
|
268
|
-
export const RestoreBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
-
id: S.String.pipe(T.Label()),
|
|
270
|
-
backup_id: S.optional(S.String),
|
|
271
|
-
name: S.optional(S.String),
|
|
272
|
-
pitr_time: S.optional(S.String),
|
|
273
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/postgresv2/{id}/restore", code: 200 }))).annotate({ identifier: "RestoreBackupRequest" });
|
|
274
|
-
export const RestoreBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
275
|
-
data: S.optional(ManagedCluster),
|
|
276
|
-
})).annotate({ identifier: "RestoreBackupResponse" });
|
|
277
|
-
export const UpdateUserRoleRequestRole = S.String;
|
|
278
|
-
export const UpdateUserRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
279
|
-
id: S.String.pipe(T.Label()),
|
|
280
|
-
username: S.String.pipe(T.Label()),
|
|
281
|
-
role: UpdateUserRoleRequestRole,
|
|
282
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/api/v1/postgresv2/{id}/users/{username}", code: 200 }))).annotate({ identifier: "UpdateUserRoleRequest" });
|
|
283
|
-
export const UpdateUserRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
284
|
-
identifier: "UpdateUserRoleResponse",
|
|
285
|
-
});
|
|
286
|
-
/** Attach a cluster to a Machines app */
|
|
287
|
-
export const createAttachment = /*@__PURE__*/ API.make(() => ({
|
|
288
|
-
input: CreateAttachmentRequest,
|
|
289
|
-
output: CreateAttachmentResponse,
|
|
290
|
-
errors: [NotFound, Conflict],
|
|
291
|
-
protocol: FlyApiProtocol,
|
|
292
|
-
retry: Retry.Retry,
|
|
293
|
-
}));
|
|
294
|
-
/** Create a backup */
|
|
295
|
-
export const createBackup = /*@__PURE__*/ API.make(() => ({
|
|
296
|
-
input: CreateBackupRequest,
|
|
297
|
-
output: CreateBackupResponse,
|
|
298
|
-
errors: [NotFound],
|
|
299
|
-
protocol: FlyApiProtocol,
|
|
300
|
-
retry: Retry.Retry,
|
|
301
|
-
}));
|
|
302
|
-
/** Create an MPG v2 cluster */
|
|
303
|
-
export const createCluster = /*@__PURE__*/ API.make(() => ({
|
|
304
|
-
input: CreateClusterRequest,
|
|
305
|
-
output: CreateClusterResponse,
|
|
306
|
-
errors: [Forbidden, NotFound, Conflict],
|
|
307
|
-
protocol: FlyApiProtocol,
|
|
308
|
-
retry: Retry.Retry,
|
|
309
|
-
}));
|
|
310
|
-
/** Create a database */
|
|
311
|
-
export const createDatabase = /*@__PURE__*/ API.make(() => ({
|
|
312
|
-
input: CreateDatabaseRequest,
|
|
313
|
-
output: CreateDatabaseResponse,
|
|
314
|
-
errors: [NotFound, Conflict],
|
|
315
|
-
protocol: FlyApiProtocol,
|
|
316
|
-
retry: Retry.Retry,
|
|
317
|
-
}));
|
|
318
|
-
/** Create a user with a role */
|
|
319
|
-
export const createUser = /*@__PURE__*/ API.make(() => ({
|
|
320
|
-
input: CreateUserRequest,
|
|
321
|
-
output: CreateUserResponse,
|
|
322
|
-
errors: [NotFound, Conflict],
|
|
323
|
-
protocol: FlyApiProtocol,
|
|
324
|
-
retry: Retry.Retry,
|
|
325
|
-
}));
|
|
326
|
-
/** Detach a cluster from a Machines app */
|
|
327
|
-
export const deleteAttachment = /*@__PURE__*/ API.make(() => ({
|
|
328
|
-
input: DeleteAttachmentRequest,
|
|
329
|
-
output: DeleteAttachmentResponse,
|
|
330
|
-
errors: [NotFound],
|
|
331
|
-
protocol: FlyApiProtocol,
|
|
332
|
-
retry: Retry.Retry,
|
|
333
|
-
}));
|
|
334
|
-
/** Delete a user */
|
|
335
|
-
export const deleteUser = /*@__PURE__*/ API.make(() => ({
|
|
336
|
-
input: DeleteUserRequest,
|
|
337
|
-
output: DeleteUserResponse,
|
|
338
|
-
errors: [NotFound],
|
|
339
|
-
protocol: FlyApiProtocol,
|
|
340
|
-
retry: Retry.Retry,
|
|
341
|
-
}));
|
|
342
|
-
/** Destroy an MPG v2 cluster (async — poll 404) */
|
|
343
|
-
export const destroyCluster = /*@__PURE__*/ API.make(() => ({
|
|
344
|
-
input: DestroyClusterRequest,
|
|
345
|
-
output: DestroyClusterResponse,
|
|
346
|
-
errors: [NotFound],
|
|
347
|
-
protocol: FlyApiProtocol,
|
|
348
|
-
retry: Retry.Retry,
|
|
349
|
-
}));
|
|
350
|
-
/** Disable an extension */
|
|
351
|
-
export const disableExtension = /*@__PURE__*/ API.make(() => ({
|
|
352
|
-
input: DisableExtensionRequest,
|
|
353
|
-
output: DisableExtensionResponse,
|
|
354
|
-
errors: [NotFound],
|
|
355
|
-
protocol: FlyApiProtocol,
|
|
356
|
-
retry: Retry.Retry,
|
|
357
|
-
}));
|
|
358
|
-
/** Enable an extension */
|
|
359
|
-
export const enableExtension = /*@__PURE__*/ API.make(() => ({
|
|
360
|
-
input: EnableExtensionRequest,
|
|
361
|
-
output: EnableExtensionResponse,
|
|
362
|
-
errors: [NotFound, Conflict],
|
|
363
|
-
protocol: FlyApiProtocol,
|
|
364
|
-
retry: Retry.Retry,
|
|
365
|
-
}));
|
|
366
|
-
/** Get an MPG v2 cluster by org and id */
|
|
367
|
-
export const getCluster = /*@__PURE__*/ API.make(() => ({
|
|
368
|
-
input: GetClusterRequest,
|
|
369
|
-
output: GetClusterResponse,
|
|
370
|
-
errors: [NotFound],
|
|
371
|
-
protocol: FlyApiProtocol,
|
|
372
|
-
retry: Retry.Retry,
|
|
373
|
-
}));
|
|
374
|
-
/** Get an MPG v2 cluster by id */
|
|
375
|
-
export const getClusterById = /*@__PURE__*/ API.make(() => ({
|
|
376
|
-
input: GetClusterByIdRequest,
|
|
377
|
-
output: GetClusterResponse,
|
|
378
|
-
errors: [NotFound],
|
|
379
|
-
protocol: FlyApiProtocol,
|
|
380
|
-
retry: Retry.Retry,
|
|
381
|
-
}));
|
|
382
|
-
/** Get a user's credentials */
|
|
383
|
-
export const getUserCredentials = /*@__PURE__*/ API.make(() => ({
|
|
384
|
-
input: GetUserCredentialsRequest,
|
|
385
|
-
output: GetUserCredentialsResponse,
|
|
386
|
-
errors: [NotFound],
|
|
387
|
-
protocol: FlyApiProtocol,
|
|
388
|
-
retry: Retry.Retry,
|
|
389
|
-
}));
|
|
390
|
-
/** List cluster backups */
|
|
391
|
-
export const listBackups = /*@__PURE__*/ API.make(() => ({
|
|
392
|
-
input: ListBackupsRequest,
|
|
393
|
-
output: ListBackupsResponse,
|
|
394
|
-
errors: [NotFound],
|
|
395
|
-
protocol: FlyApiProtocol,
|
|
396
|
-
retry: Retry.Retry,
|
|
397
|
-
}));
|
|
398
|
-
/** List MPG v2 clusters in an organization */
|
|
399
|
-
export const listClusters = /*@__PURE__*/ API.make(() => ({
|
|
400
|
-
input: ListClustersRequest,
|
|
401
|
-
output: ListClustersResponse,
|
|
402
|
-
errors: [Forbidden, NotFound],
|
|
403
|
-
protocol: FlyApiProtocol,
|
|
404
|
-
retry: Retry.Retry,
|
|
405
|
-
}));
|
|
406
|
-
/** List databases (no DELETE API) */
|
|
407
|
-
export const listDatabases = /*@__PURE__*/ API.make(() => ({
|
|
408
|
-
input: ListDatabasesRequest,
|
|
409
|
-
output: ListDatabasesResponse,
|
|
410
|
-
errors: [NotFound],
|
|
411
|
-
protocol: FlyApiProtocol,
|
|
412
|
-
retry: Retry.Retry,
|
|
413
|
-
}));
|
|
414
|
-
/** List available/installed extensions */
|
|
415
|
-
export const listExtensions = /*@__PURE__*/ API.make(() => ({
|
|
416
|
-
input: ListExtensionsRequest,
|
|
417
|
-
output: ListExtensionsResponse,
|
|
418
|
-
errors: [NotFound],
|
|
419
|
-
protocol: FlyApiProtocol,
|
|
420
|
-
retry: Retry.Retry,
|
|
421
|
-
}));
|
|
422
|
-
/** List regions that support MPG for an organization */
|
|
423
|
-
export const listRegions = /*@__PURE__*/ API.make(() => ({
|
|
424
|
-
input: ListRegionsRequest,
|
|
425
|
-
output: ListRegionsResponse,
|
|
426
|
-
errors: [],
|
|
427
|
-
protocol: FlyApiProtocol,
|
|
428
|
-
retry: Retry.Retry,
|
|
429
|
-
}));
|
|
430
|
-
/** List cluster users */
|
|
431
|
-
export const listUsers = /*@__PURE__*/ API.make(() => ({
|
|
432
|
-
input: ListUsersRequest,
|
|
433
|
-
output: ListUsersResponse,
|
|
434
|
-
errors: [NotFound],
|
|
435
|
-
protocol: FlyApiProtocol,
|
|
436
|
-
retry: Retry.Retry,
|
|
437
|
-
}));
|
|
438
|
-
/** Restore a cluster from a backup (creates a new cluster) */
|
|
439
|
-
export const restoreBackup = /*@__PURE__*/ API.make(() => ({
|
|
440
|
-
input: RestoreBackupRequest,
|
|
441
|
-
output: RestoreBackupResponse,
|
|
442
|
-
errors: [NotFound],
|
|
443
|
-
protocol: FlyApiProtocol,
|
|
444
|
-
retry: Retry.Retry,
|
|
445
|
-
}));
|
|
446
|
-
/** Update a user's role */
|
|
447
|
-
export const updateUserRole = /*@__PURE__*/ API.make(() => ({
|
|
448
|
-
input: UpdateUserRoleRequest,
|
|
449
|
-
output: UpdateUserRoleResponse,
|
|
450
|
-
errors: [NotFound],
|
|
451
|
-
protocol: FlyApiProtocol,
|
|
452
|
-
retry: Retry.Retry,
|
|
453
|
-
}));
|
|
454
|
-
//# sourceMappingURL=mpg.js.map
|
|
9
|
+
const __0 = __L.at;
|
|
10
|
+
const __1 = T.Http;
|
|
11
|
+
const __2 = T.Label;
|
|
12
|
+
const __3 = S.String;
|
|
13
|
+
const __4 = S.Struct;
|
|
14
|
+
const __5 = S.suspend;
|
|
15
|
+
const __6 = S.Number;
|
|
16
|
+
const __7 = S.optional;
|
|
17
|
+
const __8 = T.SensitiveValue;
|
|
18
|
+
const __9 = S.Array;
|
|
19
|
+
const __10 = S.Boolean;
|
|
20
|
+
const __11 = S.Unknown;
|
|
21
|
+
const __12 = S.Record;
|
|
22
|
+
const __13 = T.Query;
|
|
23
|
+
|
|
24
|
+
export const createAttachment = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("CreateAttachmentResponse", '{input:#1,output:#3,errors:[$8,$9],protocol:$10,retry:$11};$5(>4)@"CreateAttachmentRequest";$5(>5)@"%Data";$5(>6)@"%";$4({id:$3.pipe($2()),app_name:$3}).pipe($1({method:"POST",uri:"/api/v1/postgresv2/{id}/attachments",code:200}));$4({id:$7($6),app_id:$7($6),managed_service_id:$7($6),attached_at:$7($3)});$4({data:$7(#2)})', [__0, __1, __2, __3, __4, __5, __6, __7, NotFound, Conflict, FlyApiProtocol, Retry.Retry]) : API.call(createAttachment, i));
|
|
25
|
+
|
|
26
|
+
export const createBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8],protocol:$9,retry:$10};$6(>2)@"CreateBackupRequest";$5({id:$3.pipe($2()),type:$4($3)}).pipe($1({method:"POST",uri:"/api/v1/postgresv2/{id}/backups",code:200}))', [__0, __1, __2, __3, __7, __4, __5, __d0, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(createBackup, i));
|
|
27
|
+
|
|
28
|
+
export const createCluster = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$12,$13,$14],protocol:$15,retry:$16};$8(>4)@"CreateClusterRequest";$10($3,$9);$8(>5)@"CreateClusterResponse";$7({org_slug:$3.pipe($2()),name:$3,region:$3,plan:$3,pg_major_version:$4($3),storage_in_gb:$4($5),postgis_enabled:$4($6)}).pipe($1({method:"POST",uri:"/api/v1/organizations/{org_slug}/postgresv2",code:200}));$7({ok:$4($6),data:$4(#11:4),errors:$4(#2)})', [__0, __1, __2, __3, __7, __6, __10, __4, __5, __11, __12, __d2, Forbidden, NotFound, Conflict, FlyApiProtocol, Retry.Retry]] : API.call(createCluster, i));
|
|
29
|
+
|
|
30
|
+
export const createDatabase = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"CreateDatabaseRequest";$4({id:$3.pipe($2()),name:$3}).pipe($1({method:"POST",uri:"/api/v1/postgresv2/{id}/databases",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, NotFound, Conflict, FlyApiProtocol, Retry.Retry]] : API.call(createDatabase, i));
|
|
31
|
+
|
|
32
|
+
export const createUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$5(>3)@"CreateUserRequest";$5(>4)@"CreateUserResponse";$4({id:$3.pipe($2()),username:$3,role:$3}).pipe($1({method:"POST",uri:"/api/v1/postgresv2/{id}/users",code:200}));$4({data:$7(#6:0)})', [__0, __1, __2, __3, __4, __5, __d3, __7, NotFound, Conflict, FlyApiProtocol, Retry.Retry]] : API.call(createUser, i));
|
|
33
|
+
|
|
34
|
+
export const deleteAttachment = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("DeleteAttachmentResponse", '{input:#1,output:#3,errors:[$7],protocol:$8,retry:$9};$5(>4)@"DeleteAttachmentRequest";$5(>5)@"%Data";$5(>6)@"%";$4({id:$3.pipe($2()),app_name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/api/v1/postgresv2/{id}/attachments/{app_name}",code:200}));$4({message:$6($3)});$4({data:$6(#2)})', [__0, __1, __2, __3, __4, __5, __7, NotFound, FlyApiProtocol, Retry.Retry]) : API.call(deleteAttachment, i));
|
|
35
|
+
|
|
36
|
+
export const deleteUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeleteUserRequest";$4({id:$3.pipe($2()),username:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/api/v1/postgresv2/{id}/users/{username}",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(deleteUser, i));
|
|
37
|
+
|
|
38
|
+
export const destroyCluster = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DestroyClusterRequest";$4({org_slug:$3.pipe($2()),id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/api/v1/organizations/{org_slug}/postgresv2/{id}",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(destroyCluster, i));
|
|
39
|
+
|
|
40
|
+
export const disableExtension = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"DisableExtensionRequest";$7({id:$3.pipe($2()),database:$3.pipe($2()),name:$3.pipe($2()),force:$6($5.pipe($4()))}).pipe($1({method:"DELETE",uri:"/api/v1/postgresv2/{id}/databases/{database}/extensions/{name}",code:200}))', [__0, __1, __2, __3, __13, __10, __7, __4, __5, __d0, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(disableExtension, i));
|
|
41
|
+
|
|
42
|
+
export const enableExtension = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"EnableExtensionRequest";$6({id:$3.pipe($2()),database:$3.pipe($2()),name:$3,schema:$4($3),create_schema_if_needed:$4($5)}).pipe($1({method:"POST",uri:"/api/v1/postgresv2/{id}/databases/{database}/extensions",code:200}))', [__0, __1, __2, __3, __7, __10, __4, __5, __d0, NotFound, Conflict, FlyApiProtocol, Retry.Retry]] : API.call(enableExtension, i));
|
|
43
|
+
|
|
44
|
+
export const getCluster = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetClusterRequest";$4({org_slug:$3.pipe($2()),id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/organizations/{org_slug}/postgresv2/{id}",code:200}))', [__0, __1, __2, __3, __4, __5, __d1, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(getCluster, i));
|
|
45
|
+
|
|
46
|
+
export const getClusterById = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetClusterByIdRequest";$4({id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/postgresv2/{id}",code:200}))', [__0, __1, __2, __3, __4, __5, __d1, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(getClusterById, i));
|
|
47
|
+
|
|
48
|
+
export const getUserCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetUserCredentialsResponse", '{input:#1,output:#3,errors:[$8],protocol:$9,retry:$10};$5(>4)@"GetUserCredentialsRequest";$5(>5)@"%Data";$5(>6)@"%";$4({id:$3.pipe($2()),username:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/postgresv2/{id}/users/{username}/credentials",code:200}));$4({username:$6($3),user:$6($3),password:$6($3.pipe($7({})))});$4({data:$6(#2)})', [__0, __1, __2, __3, __4, __5, __7, __8, NotFound, FlyApiProtocol, Retry.Retry]) : API.call(getUserCredentials, i));
|
|
49
|
+
|
|
50
|
+
export const listBackups = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$8],protocol:$9,retry:$10};$5(>5)@"ListBackupsRequest";$5(>6)@"ClusterBackup";$7(#2);$5(>7)@"ListBackupsResponse";$4({id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/postgresv2/{id}/backups",code:200}));$4({id:$6($3),status:$6($3),type:$6($3),start:$6($3),stop:$6($3)});$4({data:$6(#3)})', [__0, __1, __2, __3, __4, __5, __7, __9, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(listBackups, i));
|
|
51
|
+
|
|
52
|
+
export const listClusters = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"ListClustersRequest";$7(#6:4);$5(>5)@"ListClustersResponse";$4({org_slug:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/organizations/{org_slug}/postgresv2",code:200}));$4({data:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d2, __9, __7, Forbidden, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(listClusters, i));
|
|
53
|
+
|
|
54
|
+
export const listDatabases = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Database", '{input:#1,output:#4,errors:[$8],protocol:$9,retry:$10};$5(>5)@"List%sRequest";$5(>6)@"%";$7(#2);$5(>7)@"List%sResponse";$4({id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/postgresv2/{id}/databases",code:200}));$4({name:$6($3)});$4({data:$6(#3)})', [__0, __1, __2, __3, __4, __5, __7, __9, NotFound, FlyApiProtocol, Retry.Retry]) : API.call(listDatabases, i));
|
|
55
|
+
|
|
56
|
+
export const listExtensions = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Extension", '{input:#1,output:#5,errors:[$9],protocol:$10,retry:$11};$5(>6)@"List%sRequest";$5(>7)@"Installed%";$5(>8)@"%";$8(#3);$5(>9)@"List%sResponse";$4({id:$3.pipe($2()),database:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/postgresv2/{id}/databases/{database}/extensions",code:200}));$4({version:$6($3),schema:$6($3)});$4({name:$6($3),description:$6($3),docs_url:$6($3),default_version:$6($3),is_system:$6($7),installed:$6(#2)});$4({data:$6(#4)})', [__0, __1, __2, __3, __4, __5, __7, __10, __9, NotFound, FlyApiProtocol, Retry.Retry]) : API.call(listExtensions, i));
|
|
57
|
+
|
|
58
|
+
export const listRegions = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Region", '{input:#1,output:#4,errors:[],protocol:$9,retry:$10};$5(>5)@"List%sRequest";$5(>6)@"%";$8(#2);$5(>7)@"List%sResponse";$4({org_slug:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/organizations/{org_slug}/postgresv2/regions",code:200}));$4({code:$6($3),available:$6($7)});$4({data:$6(#3)})', [__0, __1, __2, __3, __4, __5, __7, __10, __9, FlyApiProtocol, Retry.Retry]) : API.call(listRegions, i));
|
|
59
|
+
|
|
60
|
+
export const listUsers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$5(>4)@"ListUsersRequest";$7(#6:0);$5(>5)@"ListUsersResponse";$4({id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/postgresv2/{id}/users",code:200}));$4({data:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d3, __9, __7, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(listUsers, i));
|
|
61
|
+
|
|
62
|
+
export const restoreBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8],protocol:$9,retry:$10};$6(>3)@"RestoreBackupRequest";$6(>4)@"RestoreBackupResponse";$5({id:$3.pipe($2()),backup_id:$4($3),name:$4($3),pitr_time:$4($3)}).pipe($1({method:"POST",uri:"/api/v1/postgresv2/{id}/restore",code:200}));$5({data:$4(#7:4)})', [__0, __1, __2, __3, __7, __4, __5, __d2, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(restoreBackup, i));
|
|
63
|
+
|
|
64
|
+
export const updateUserRole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"UpdateUserRoleRequest";$4({id:$3.pipe($2()),username:$3.pipe($2()),role:$3}).pipe($1({method:"PATCH",uri:"/api/v1/postgresv2/{id}/users/{username}",code:200}))', [__0, __1, __2, __3, __4, __5, __d0, NotFound, FlyApiProtocol, Retry.Retry]] : API.call(updateUserRole, i));
|
|
65
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
66
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
// Shared schema data (see `op` in core/api).
|
|
70
|
+
function __d0() {
|
|
71
|
+
return ['$2(>1)@"CreateBackupResponse";$1({})', [__0, __4, __5]];
|
|
72
|
+
}
|
|
73
|
+
function __d1() {
|
|
74
|
+
return ['$5(>2)@"ClusterCredentials";$5(>3)@"GetClusterResponse";$4({status:$2($1),user:$2($1),password:$2($1.pipe($3({}))),dbname:$2($1),pgbouncer_uri:$2($1.pipe($3({})))});$4({data:$2(#6:4),credentials:$2(#0)})', [__0, __3, __7, __8, __4, __5, __d2]];
|
|
75
|
+
}
|
|
76
|
+
function __d2() {
|
|
77
|
+
return ['$4(>5)@"Organization";$5($1,$1);$4(>6)@"AttachedApp";$6(#2);$4(>7)@"ManagedCluster";$3({id:$2($1),name:$2($1),slug:$2($1),raw_slug:$2($1)});$3({name:$2($1),id:$2($1)});$3({id:$2($1),name:$2($1),status:$2($1),engine:$2($1),plan:$2($1),region:$2($1),organization:$2(#0),mpgd_cluster_id:$2($1),disk:$2($7),replicas:$2($7),ip_assignments:$2(#1),attached_apps:$2(#3),postgis_enabled:$2($8),environment:$2($1)})', [__0, __3, __7, __4, __5, __12, __9, __6, __10]];
|
|
78
|
+
}
|
|
79
|
+
function __d3() {
|
|
80
|
+
return ['$4(>1)@"User";$3({name:$2($1),username:$2($1),role:$2($1)})', [__0, __3, __7, __4, __5]];
|
|
81
|
+
}
|