@automate.ax/api-contract 0.159.1 → 0.159.2

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/org.js CHANGED
@@ -153,7 +153,7 @@ export const orgContract = {
153
153
  path: "/organizations/{organizationId}/membership",
154
154
  operationId: "leaveOrganization",
155
155
  summary: "Leave organization",
156
- description: "Removes the current user from an organization. Admins must ask another admin to remove them or delete the organization instead.",
156
+ description: "Removes the current user from an organization. An admin can leave when another admin remains.",
157
157
  tags: ["Organizations"],
158
158
  successStatus: 204,
159
159
  })
@@ -37,7 +37,7 @@ export declare const managementRolePermissions: {
37
37
  readonly billing: ["read", "update"];
38
38
  readonly deployment: ["create", "read", "cancel"];
39
39
  readonly invitation: ["create", "read", "cancel"];
40
- readonly member: ["create", "read", "update", "delete"];
40
+ readonly member: ["create", "read", "update", "delete", "leave"];
41
41
  readonly organization: ["read", "update", "delete"];
42
42
  readonly project: ["create", "read", "update", "delete"];
43
43
  readonly team: ["create", "update", "delete"];
@@ -34,7 +34,7 @@ export const managementRolePermissions = {
34
34
  billing: ["read", "update"],
35
35
  deployment: ["create", "read", "cancel"],
36
36
  invitation: ["create", "read", "cancel"],
37
- member: ["create", "read", "update", "delete"],
37
+ member: ["create", "read", "update", "delete", "leave"],
38
38
  organization: ["read", "update", "delete"],
39
39
  project: ["create", "read", "update", "delete"],
40
40
  team: ["create", "update", "delete"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.159.1",
3
+ "version": "0.159.2",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/gateway": "4.0.87",
34
- "@automate.ax/catalog": "0.159.1",
35
- "@automate.ax/codec": "0.159.1",
36
- "@automate.ax/integration-contracts": "0.159.1",
34
+ "@automate.ax/catalog": "0.159.2",
35
+ "@automate.ax/codec": "0.159.2",
36
+ "@automate.ax/integration-contracts": "0.159.2",
37
37
  "@orpc/contract": "1.15.0",
38
38
  "fast-json-stable-stringify": "^2.1.0",
39
39
  "zod": "^4.3.6"
package/src/org.ts CHANGED
@@ -181,7 +181,7 @@ export const orgContract = {
181
181
  operationId: "leaveOrganization",
182
182
  summary: "Leave organization",
183
183
  description:
184
- "Removes the current user from an organization. Admins must ask another admin to remove them or delete the organization instead.",
184
+ "Removes the current user from an organization. An admin can leave when another admin remains.",
185
185
  tags: ["Organizations"],
186
186
  successStatus: 204,
187
187
  })
@@ -40,7 +40,7 @@ export const managementRolePermissions = {
40
40
  billing: ["read", "update"],
41
41
  deployment: ["create", "read", "cancel"],
42
42
  invitation: ["create", "read", "cancel"],
43
- member: ["create", "read", "update", "delete"],
43
+ member: ["create", "read", "update", "delete", "leave"],
44
44
  organization: ["read", "update", "delete"],
45
45
  project: ["create", "read", "update", "delete"],
46
46
  team: ["create", "update", "delete"],