@mestra-dev/contract 0.0.83 → 0.0.85

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6013,7 +6013,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6013
6013
  "Workspace"
6014
6014
  ];
6015
6015
  readonly summary: "Update workspace policies for a collaborator";
6016
- readonly description: "Updates the resource permissions for a collaborator in a workspace. Requires write access to crm::general resource.";
6016
+ readonly description: "Updates the resource permissions for a collaborator or pending invitation. Send `collaboratorId` from GET /workspace/policies/{workspace}: that field is `invitations.id` for an unregistered email, or `collaborators.id` for a registered user. Email-only invites store grants on the invitation until signup; pending collaborators get policy rows updated as well. Requires write access to crm::general.";
6017
6017
  readonly security: readonly [
6018
6018
  never
6019
6019
  ];
@@ -6032,7 +6032,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6032
6032
  readonly collaboratorId: {
6033
6033
  readonly type: "string";
6034
6034
  readonly format: "uuid";
6035
- readonly description: "Collaborator row ID (`collaborators.id`) whose policies are being updated.";
6035
+ readonly description: "ID from GET /workspace/policies/{workspace}: `invitations.id` for an unregistered email, or `collaborators.id` for a registered user.";
6036
6036
  };
6037
6037
  readonly resources: {
6038
6038
  readonly type: "array";
@@ -6064,7 +6064,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6064
6064
  };
6065
6065
  };
6066
6066
  readonly 400: {
6067
- readonly description: "Invalid request payload, user is not a collaborator, or policies cannot be changed for the workspace owner.";
6067
+ readonly description: "Invalid request payload, id is not a collaborator or pending invitation, or policies cannot be changed for the workspace owner.";
6068
6068
  readonly content: {
6069
6069
  readonly "application/json": {
6070
6070
  readonly schema: {
@@ -6519,7 +6519,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6519
6519
  "Workspace"
6520
6520
  ];
6521
6521
  readonly summary: "Update collaborator role";
6522
- readonly description: "Updates the role of a collaborator in a workspace. Requires write access to crm::general resource.";
6522
+ readonly description: "Updates the role of a collaborator or pending invitation. Send `collaboratorId` from GET /workspace/policies/{workspace}: that field is `invitations.id` for an unregistered email, or `collaborators.id` for a registered user. Email-only invites store the role on the invitation until signup; pending collaborators are updated as well. Requires write access to crm::general.";
6523
6523
  readonly security: readonly [
6524
6524
  never
6525
6525
  ];
@@ -6543,7 +6543,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6543
6543
  readonly collaboratorId: {
6544
6544
  readonly type: "string";
6545
6545
  readonly format: "uuid";
6546
- readonly description: "Collaborator row ID (`collaborators.id`) whose role is being updated.";
6546
+ readonly description: "ID from GET /workspace/policies/{workspace}: `invitations.id` for an unregistered email, or `collaborators.id` for a registered user.";
6547
6547
  };
6548
6548
  readonly role: {
6549
6549
  readonly type: "string";
@@ -6566,7 +6566,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6566
6566
  };
6567
6567
  };
6568
6568
  readonly 400: {
6569
- readonly description: "Invalid request payload or user is not a collaborator.";
6569
+ readonly description: "Invalid request payload, or the id is not a collaborator or pending invitation.";
6570
6570
  readonly content: {
6571
6571
  readonly "application/json": {
6572
6572
  readonly schema: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,