@mestra-dev/contract 0.0.74 → 0.0.76

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 +117 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6103,6 +6103,96 @@ declare const routes: import("hono/hono-base").HonoBase<{
6103
6103
  };
6104
6104
  };
6105
6105
  };
6106
+ readonly "/workspace/invite/cancel": {
6107
+ readonly post: {
6108
+ readonly tags: readonly [
6109
+ "Workspace"
6110
+ ];
6111
+ readonly summary: "Cancel a pending workspace invitation";
6112
+ readonly description: "Cancels a pending invite. Send `collaboratorId` from GET /workspace/policies/{workspace}: that field is `invitations.id` for an unregistered email, or `collaborators.id` for a registered user who has not accepted yet. Email-only invites are marked canceled (seat is freed; the token can no longer be used after signup). Pending collaborators are removed the same way as /workspace/settings/remove-collaborator. Already-accepted members cannot be canceled here. Requires write access to crm::general.";
6113
+ readonly security: readonly [
6114
+ never
6115
+ ];
6116
+ readonly requestBody: {
6117
+ readonly required: true;
6118
+ readonly content: {
6119
+ readonly "application/json": {
6120
+ readonly schema: {
6121
+ readonly type: "object";
6122
+ readonly required: readonly [
6123
+ "workspace",
6124
+ "collaboratorId"
6125
+ ];
6126
+ readonly properties: {
6127
+ readonly workspace: {
6128
+ readonly type: "string";
6129
+ readonly format: "uuid";
6130
+ readonly description: "Workspace identifier.";
6131
+ };
6132
+ readonly collaboratorId: {
6133
+ readonly type: "string";
6134
+ readonly format: "uuid";
6135
+ readonly description: "The `collaboratorId` from the policies list for the pending row to cancel.";
6136
+ };
6137
+ };
6138
+ };
6139
+ };
6140
+ };
6141
+ };
6142
+ readonly responses: {
6143
+ readonly 200: {
6144
+ readonly description: "Invitation canceled.";
6145
+ readonly content: {
6146
+ readonly "application/json": {
6147
+ readonly schema: {
6148
+ readonly $ref: "#/components/schemas/SimpleSuccess";
6149
+ };
6150
+ };
6151
+ };
6152
+ };
6153
+ readonly 400: {
6154
+ readonly description: "Invalid payload, or the id is not a pending invitation / pending collaborator (`No pending invitation`).";
6155
+ readonly content: {
6156
+ readonly "application/json": {
6157
+ readonly schema: {
6158
+ readonly $ref: "#/components/schemas/ErrorResponse";
6159
+ };
6160
+ };
6161
+ };
6162
+ };
6163
+ readonly 401: {
6164
+ readonly description: "Unauthorized - Missing or invalid access token.";
6165
+ readonly content: {
6166
+ readonly "application/json": {
6167
+ readonly schema: {
6168
+ readonly $ref: "#/components/schemas/ErrorResponse";
6169
+ };
6170
+ };
6171
+ };
6172
+ };
6173
+ readonly 403: {
6174
+ readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
6175
+ readonly content: {
6176
+ readonly "application/json": {
6177
+ readonly schema: {
6178
+ readonly $ref: "#/components/schemas/ErrorResponse";
6179
+ };
6180
+ };
6181
+ };
6182
+ };
6183
+ readonly 500: {
6184
+ readonly description: "Failed to cancel invitation.";
6185
+ readonly content: {
6186
+ readonly "application/json": {
6187
+ readonly schema: {
6188
+ readonly $ref: "#/components/schemas/ErrorResponse";
6189
+ };
6190
+ };
6191
+ };
6192
+ };
6193
+ };
6194
+ };
6195
+ };
6106
6196
  readonly "/workspace/invite/{workspace}/{token}": {
6107
6197
  readonly get: {
6108
6198
  readonly tags: readonly [
@@ -13661,6 +13751,33 @@ declare const routes: import("hono/hono-base").HonoBase<{
13661
13751
  status: 201;
13662
13752
  };
13663
13753
  };
13754
+ } & {
13755
+ "/invite/cancel": {
13756
+ $post: {
13757
+ input: {};
13758
+ output: {
13759
+ success: false;
13760
+ error: string;
13761
+ };
13762
+ outputFormat: "json";
13763
+ status: 400;
13764
+ } | {
13765
+ input: {};
13766
+ output: {
13767
+ success: false;
13768
+ error: string;
13769
+ };
13770
+ outputFormat: "json";
13771
+ status: 500;
13772
+ } | {
13773
+ input: {};
13774
+ output: {
13775
+ success: true;
13776
+ };
13777
+ outputFormat: "json";
13778
+ status: 200;
13779
+ };
13780
+ };
13664
13781
  } & {
13665
13782
  "/invite/:workspace/:token": {
13666
13783
  $get: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,