@postonus/cli 0.1.17 → 0.1.18
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/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7641,7 +7641,12 @@ var FromUrlInputSchema = object({
|
|
|
7641
7641
|
url: string2().url(),
|
|
7642
7642
|
scenarioId: _enum(FILE_SCENARIOS)
|
|
7643
7643
|
});
|
|
7644
|
-
var FromUrlOutputSchema = object({
|
|
7644
|
+
var FromUrlOutputSchema = object({
|
|
7645
|
+
uploadId: Uuid,
|
|
7646
|
+
mediaId: Uuid.nullable(),
|
|
7647
|
+
publicUrl: string2(),
|
|
7648
|
+
type: MediaTypeSchema
|
|
7649
|
+
});
|
|
7645
7650
|
var tagged8 = base.route({ tags: ["Uploads"] });
|
|
7646
7651
|
var uploadContract = {
|
|
7647
7652
|
initiateUpload: tagged8.route({ method: "POST", path: "/uploads/initiate", summary: "Get a signed URL to upload a file" }).errors(uploadErrors).input(InitiateUploadInputSchema).output(InitiateUploadOutputSchema),
|
|
@@ -9375,8 +9380,21 @@ var ApprovalSettingsInputSchema = object({
|
|
|
9375
9380
|
approverRoles: array(_enum(["owner", "admin", "member"])),
|
|
9376
9381
|
minApprovers: number2().int().min(1).max(5)
|
|
9377
9382
|
});
|
|
9378
|
-
var
|
|
9383
|
+
var WorkspaceSummarySchema = object({
|
|
9384
|
+
id: string2(),
|
|
9385
|
+
name: string2(),
|
|
9386
|
+
logo: string2().nullable(),
|
|
9387
|
+
role: string2()
|
|
9388
|
+
});
|
|
9389
|
+
var publicTagged = base.route({ tags: ["Workspace"] });
|
|
9390
|
+
var tagged19 = publicTagged.meta({ internal: true });
|
|
9379
9391
|
var workspaceContract = {
|
|
9392
|
+
/**
|
|
9393
|
+
* Public, so an OAuth client can offer a workspace switcher: the chosen id goes
|
|
9394
|
+
* back as `x-workspace-id`. An API key is pinned to one workspace, so it lists
|
|
9395
|
+
* only that one.
|
|
9396
|
+
*/
|
|
9397
|
+
list: publicTagged.route({ method: "GET", path: "/workspaces", summary: "List your workspaces" }).errors(authedErrors).output(array(WorkspaceSummarySchema)),
|
|
9380
9398
|
getOwnedCapacity: tagged19.route({ method: "GET", path: "/workspaces/owned-capacity", summary: "Get owned workspace capacity" }).errors(authedErrors).output(OwnedCapacitySchema),
|
|
9381
9399
|
create: tagged19.route({ method: "POST", path: "/workspaces", summary: "Create a workspace", successStatus: 201 }).errors({
|
|
9382
9400
|
...authedErrors,
|
|
@@ -12079,7 +12097,7 @@ function formatTable(headers, rows) {
|
|
|
12079
12097
|
}
|
|
12080
12098
|
|
|
12081
12099
|
// src/version.ts
|
|
12082
|
-
var CLI_VERSION = "0.1.
|
|
12100
|
+
var CLI_VERSION = "0.1.18";
|
|
12083
12101
|
|
|
12084
12102
|
// src/client.ts
|
|
12085
12103
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|