@company-semantics/contracts 2.16.0 → 2.17.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = '7e7e7989604b' as const;
3
- export const SPEC_HASH_FULL = '7e7e7989604b04f9af766c8ebcfe875445c12cec0fa4c4a071680454b635ea2c' as const;
2
+ export const SPEC_HASH = '3d5da96bdeb1' as const;
3
+ export const SPEC_HASH_FULL = '3d5da96bdeb12a1223f19d67956bfa0a481abc37813c181c0897a10c7e8f9b80' as const;
@@ -1815,6 +1815,23 @@ export interface paths {
1815
1815
  patch?: never;
1816
1816
  trace?: never;
1817
1817
  };
1818
+ "/api/org-units/{unitId}/my-authority": {
1819
+ parameters: {
1820
+ query?: never;
1821
+ header?: never;
1822
+ path?: never;
1823
+ cookie?: never;
1824
+ };
1825
+ /** Get the calling actor's OrgChart role + action booleans on a unit */
1826
+ get: operations["getMyOrgUnitAuthority"];
1827
+ put?: never;
1828
+ post?: never;
1829
+ delete?: never;
1830
+ options?: never;
1831
+ head?: never;
1832
+ patch?: never;
1833
+ trace?: never;
1834
+ };
1818
1835
  "/api/org-units/{unitId}/memberships": {
1819
1836
  parameters: {
1820
1837
  query?: never;
@@ -4011,6 +4028,16 @@ export interface components {
4011
4028
  revokedAt: string | null;
4012
4029
  reason: string | null;
4013
4030
  };
4031
+ OrgUnitMyAuthorityResponse: {
4032
+ /** Format: uuid */
4033
+ unitId: string;
4034
+ role: ("ceo" | "leader" | "delegate" | "admin") | null;
4035
+ canManageMembers: boolean;
4036
+ canAssignDelegate: boolean;
4037
+ canAssignAdmin: boolean;
4038
+ canCreateSubUnit: boolean;
4039
+ canArchiveSubUnit: boolean;
4040
+ };
4014
4041
  OrgUnitMembershipListResponse: {
4015
4042
  /** Format: uuid */
4016
4043
  unitId: string;
@@ -7448,6 +7475,28 @@ export interface operations {
7448
7475
  };
7449
7476
  };
7450
7477
  };
7478
+ getMyOrgUnitAuthority: {
7479
+ parameters: {
7480
+ query?: never;
7481
+ header?: never;
7482
+ path: {
7483
+ unitId: string;
7484
+ };
7485
+ cookie?: never;
7486
+ };
7487
+ requestBody?: never;
7488
+ responses: {
7489
+ /** @description Resolved OrgChartRole + the five action booleans for the calling actor on the unit */
7490
+ 200: {
7491
+ headers: {
7492
+ [name: string]: unknown;
7493
+ };
7494
+ content: {
7495
+ "application/json": components["schemas"]["OrgUnitMyAuthorityResponse"];
7496
+ };
7497
+ };
7498
+ };
7499
+ };
7451
7500
  listOrgUnitMemberships: {
7452
7501
  parameters: {
7453
7502
  query?: never;