@postonus/cli 0.1.18 → 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 +10 -8
- 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) }))
|
|
@@ -9333,10 +9335,10 @@ var internal8 = tagged18.meta({ internal: true });
|
|
|
9333
9335
|
var userContract = {
|
|
9334
9336
|
me: tagged18.route({ method: "GET", path: "/users/me", summary: "Get the current user" }).errors({ ...authedErrors, NOT_FOUND: { message: "User not found." } }).output(MeSchema),
|
|
9335
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),
|
|
9336
|
-
getPreferences:
|
|
9338
|
+
getPreferences: tagged18.route({ method: "GET", path: "/users/me/preferences", summary: "Get the current user's preferences" }).errors(authedErrors).output(UserPreferencesSchema),
|
|
9337
9339
|
updatePreferences: internal8.route({ method: "PATCH", path: "/users/me/preferences", summary: "Update the current user's preferences" }).errors(authedErrors).input(UpdatePreferencesInputSchema).output(UserPreferencesSchema),
|
|
9338
9340
|
resetPreferences: internal8.route({ method: "DELETE", path: "/users/me/preferences", summary: "Reset the current user's preferences" }).errors(authedErrors).output(object({ message: string2() })),
|
|
9339
|
-
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),
|
|
9340
9342
|
getAiQuota: internal8.route({ method: "GET", path: "/users/me/ai-quota", summary: "Get the active workspace's AI credit quota" }).errors(orgErrors).output(AiQuotaSchema),
|
|
9341
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)
|
|
9342
9344
|
};
|
|
@@ -9386,15 +9388,15 @@ var WorkspaceSummarySchema = object({
|
|
|
9386
9388
|
logo: string2().nullable(),
|
|
9387
9389
|
role: string2()
|
|
9388
9390
|
});
|
|
9389
|
-
var
|
|
9390
|
-
var tagged19 =
|
|
9391
|
+
var publicTagged2 = base.route({ tags: ["Workspace"] });
|
|
9392
|
+
var tagged19 = publicTagged2.meta({ internal: true });
|
|
9391
9393
|
var workspaceContract = {
|
|
9392
9394
|
/**
|
|
9393
9395
|
* Public, so an OAuth client can offer a workspace switcher: the chosen id goes
|
|
9394
9396
|
* back as `x-workspace-id`. An API key is pinned to one workspace, so it lists
|
|
9395
9397
|
* only that one.
|
|
9396
9398
|
*/
|
|
9397
|
-
list:
|
|
9399
|
+
list: publicTagged2.route({ method: "GET", path: "/workspaces", summary: "List your workspaces" }).errors(authedErrors).output(array(WorkspaceSummarySchema)),
|
|
9398
9400
|
getOwnedCapacity: tagged19.route({ method: "GET", path: "/workspaces/owned-capacity", summary: "Get owned workspace capacity" }).errors(authedErrors).output(OwnedCapacitySchema),
|
|
9399
9401
|
create: tagged19.route({ method: "POST", path: "/workspaces", summary: "Create a workspace", successStatus: 201 }).errors({
|
|
9400
9402
|
...authedErrors,
|
|
@@ -12097,7 +12099,7 @@ function formatTable(headers, rows) {
|
|
|
12097
12099
|
}
|
|
12098
12100
|
|
|
12099
12101
|
// src/version.ts
|
|
12100
|
-
var CLI_VERSION = "0.1.
|
|
12102
|
+
var CLI_VERSION = "0.1.19";
|
|
12101
12103
|
|
|
12102
12104
|
// src/client.ts
|
|
12103
12105
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|