@postonus/cli 0.1.17 → 0.1.19
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 +27 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7366,9 +7366,11 @@ var UpdateChannelGroupInputSchema = object({
|
|
|
7366
7366
|
name: ChannelGroupNameSchema.optional(),
|
|
7367
7367
|
integrationIds: ChannelGroupIntegrationIdsSchema.optional()
|
|
7368
7368
|
});
|
|
7369
|
-
var
|
|
7369
|
+
var publicTagged = base.route({ tags: ["Channel Groups"] });
|
|
7370
|
+
var tagged5 = publicTagged.meta({ internal: true });
|
|
7370
7371
|
var channelGroupsContract = {
|
|
7371
|
-
|
|
7372
|
+
// Public read: the composer in the browser extension shows group chips.
|
|
7373
|
+
get: publicTagged.route({ method: "GET", path: "/channel-groups", summary: "List channel groups" }).errors(orgErrors).output(array(ChannelGroupSchema)),
|
|
7372
7374
|
create: tagged5.route({ method: "POST", path: "/channel-groups", summary: "Create a channel group", successStatus: 201 }).errors({ ...orgErrors, CONFLICT: { message: "A Channel Group with this name already exists." } }).input(CreateChannelGroupInputSchema).output(ChannelGroupSchema),
|
|
7373
7375
|
update: tagged5.route({ method: "PATCH", path: "/channel-groups/{id}", summary: "Rename or re-member a channel group" }).errors({ ...orgErrors, CONFLICT: { message: "A Channel Group with this name already exists." } }).input(UpdateChannelGroupInputSchema).output(ChannelGroupSchema),
|
|
7374
7376
|
delete: tagged5.route({ method: "DELETE", path: "/channel-groups/{id}", summary: "Delete a channel group" }).errors(orgErrors).input(IdPathParam).output(object({ success: literal(true) }))
|
|
@@ -7641,7 +7643,12 @@ var FromUrlInputSchema = object({
|
|
|
7641
7643
|
url: string2().url(),
|
|
7642
7644
|
scenarioId: _enum(FILE_SCENARIOS)
|
|
7643
7645
|
});
|
|
7644
|
-
var FromUrlOutputSchema = object({
|
|
7646
|
+
var FromUrlOutputSchema = object({
|
|
7647
|
+
uploadId: Uuid,
|
|
7648
|
+
mediaId: Uuid.nullable(),
|
|
7649
|
+
publicUrl: string2(),
|
|
7650
|
+
type: MediaTypeSchema
|
|
7651
|
+
});
|
|
7645
7652
|
var tagged8 = base.route({ tags: ["Uploads"] });
|
|
7646
7653
|
var uploadContract = {
|
|
7647
7654
|
initiateUpload: tagged8.route({ method: "POST", path: "/uploads/initiate", summary: "Get a signed URL to upload a file" }).errors(uploadErrors).input(InitiateUploadInputSchema).output(InitiateUploadOutputSchema),
|
|
@@ -9328,10 +9335,10 @@ var internal8 = tagged18.meta({ internal: true });
|
|
|
9328
9335
|
var userContract = {
|
|
9329
9336
|
me: tagged18.route({ method: "GET", path: "/users/me", summary: "Get the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).output(MeSchema),
|
|
9330
9337
|
update: internal8.route({ method: "PATCH", path: "/users/me", summary: "Update the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).input(UpdateUserInputSchema).output(UserAccountSchema),
|
|
9331
|
-
getPreferences:
|
|
9338
|
+
getPreferences: tagged18.route({ method: "GET", path: "/users/me/preferences", summary: "Get the current user's preferences" }).errors(authedErrors).output(UserPreferencesSchema),
|
|
9332
9339
|
updatePreferences: internal8.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
|
|
9333
9340
|
resetPreferences: internal8.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
|
|
9334
|
-
getPlanQuota:
|
|
9341
|
+
getPlanQuota: tagged18.route({ method: "GET", path: "/users/me/plan-quota", summary: "Get the active workspace's plan quota" }).errors(orgErrors).input(object({ platforms: array(PlatformEnum).optional() })).output(PlanQuotaSchema),
|
|
9335
9342
|
getAiQuota: internal8.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
|
|
9336
9343
|
setDefaultWorkspace: internal8.route({ method: "POST", path: "/users/me/default-workspace", summary: "Set the current user's default workspace" }).errors({ ...authedErrors, FORBIDDEN: { message: "You are not a member of this workspace." } }).input(object({ organizationId: string2() })).output(DeletedSchema)
|
|
9337
9344
|
};
|
|
@@ -9375,8 +9382,21 @@ var ApprovalSettingsInputSchema = object({
|
|
|
9375
9382
|
approverRoles: array(_enum(["owner", "admin", "member"])),
|
|
9376
9383
|
minApprovers: number2().int().min(1).max(5)
|
|
9377
9384
|
});
|
|
9378
|
-
var
|
|
9385
|
+
var WorkspaceSummarySchema = object({
|
|
9386
|
+
id: string2(),
|
|
9387
|
+
name: string2(),
|
|
9388
|
+
logo: string2().nullable(),
|
|
9389
|
+
role: string2()
|
|
9390
|
+
});
|
|
9391
|
+
var publicTagged2 = base.route({ tags: ["Workspace"] });
|
|
9392
|
+
var tagged19 = publicTagged2.meta({ internal: true });
|
|
9379
9393
|
var workspaceContract = {
|
|
9394
|
+
/**
|
|
9395
|
+
* Public, so an OAuth client can offer a workspace switcher: the chosen id goes
|
|
9396
|
+
* back as `x-workspace-id`. An API key is pinned to one workspace, so it lists
|
|
9397
|
+
* only that one.
|
|
9398
|
+
*/
|
|
9399
|
+
list: publicTagged2.route({ method: "GET", path: "/workspaces", summary: "List your workspaces" }).errors(authedErrors).output(array(WorkspaceSummarySchema)),
|
|
9380
9400
|
getOwnedCapacity: tagged19.route({ method: "GET", path: "/workspaces/owned-capacity", summary: "Get owned workspace capacity" }).errors(authedErrors).output(OwnedCapacitySchema),
|
|
9381
9401
|
create: tagged19.route({ method: "POST", path: "/workspaces", summary: "Create a workspace", successStatus: 201 }).errors({
|
|
9382
9402
|
...authedErrors,
|
|
@@ -12079,7 +12099,7 @@ function formatTable(headers, rows) {
|
|
|
12079
12099
|
}
|
|
12080
12100
|
|
|
12081
12101
|
// src/version.ts
|
|
12082
|
-
var CLI_VERSION = "0.1.
|
|
12102
|
+
var CLI_VERSION = "0.1.19";
|
|
12083
12103
|
|
|
12084
12104
|
// src/client.ts
|
|
12085
12105
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|