@company-semantics/contracts 0.132.0 → 0.133.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": "0.132.0",
3
+ "version": "0.133.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 = 'd7d0d2c97eb7' as const;
3
- export const SPEC_HASH_FULL = 'd7d0d2c97eb78e5a64e7bc0a46dda3e3a97f4f07e30fa51762a5feecb34b9ff8' as const;
2
+ export const SPEC_HASH = 'a80bfe7f3d4e' as const;
3
+ export const SPEC_HASH_FULL = 'a80bfe7f3d4e02405e34d3db57b55c81869ee846066ab54c5e4d071fa940378a' as const;
@@ -459,6 +459,23 @@ export interface paths {
459
459
  patch: operations["renameWorkspace"];
460
460
  trace?: never;
461
461
  };
462
+ "/api/workspace/handle": {
463
+ parameters: {
464
+ query?: never;
465
+ header?: never;
466
+ path?: never;
467
+ cookie?: never;
468
+ };
469
+ get?: never;
470
+ put?: never;
471
+ post?: never;
472
+ delete?: never;
473
+ options?: never;
474
+ head?: never;
475
+ /** Update the workspace handle */
476
+ patch: operations["updateWorkspaceHandle"];
477
+ trace?: never;
478
+ };
462
479
  "/api/workspace/members": {
463
480
  parameters: {
464
481
  query?: never;
@@ -2151,6 +2168,8 @@ export interface components {
2151
2168
  WorkspaceOverview: {
2152
2169
  id: string;
2153
2170
  name: string;
2171
+ /** @description URL-safe handle (e.g. acme_corp). Used in /@handle/ URLs and @mentions. */
2172
+ slug: string;
2154
2173
  /** @enum {string} */
2155
2174
  type: "personal" | "shared";
2156
2175
  logoUrl: string | null;
@@ -2166,6 +2185,10 @@ export interface components {
2166
2185
  WorkspaceNameRequest: {
2167
2186
  name: string;
2168
2187
  };
2188
+ WorkspaceHandleRequest: {
2189
+ /** @description URL-safe handle (lowercase alphanumeric + underscores, 1-60 chars) */
2190
+ handle: string;
2191
+ };
2169
2192
  WorkspaceMembersResponse: {
2170
2193
  items: {
2171
2194
  id: string;
@@ -3733,6 +3756,30 @@ export interface operations {
3733
3756
  };
3734
3757
  };
3735
3758
  };
3759
+ updateWorkspaceHandle: {
3760
+ parameters: {
3761
+ query?: never;
3762
+ header?: never;
3763
+ path?: never;
3764
+ cookie?: never;
3765
+ };
3766
+ requestBody: {
3767
+ content: {
3768
+ "application/json": components["schemas"]["WorkspaceHandleRequest"];
3769
+ };
3770
+ };
3771
+ responses: {
3772
+ /** @description Updated workspace overview */
3773
+ 200: {
3774
+ headers: {
3775
+ [name: string]: unknown;
3776
+ };
3777
+ content: {
3778
+ "application/json": components["schemas"]["WorkspaceOverview"];
3779
+ };
3780
+ };
3781
+ };
3782
+ };
3736
3783
  getWorkspaceMembers: {
3737
3784
  parameters: {
3738
3785
  query?: {
package/src/org/types.ts CHANGED
@@ -77,6 +77,8 @@ export const ROLE_DISPLAY_MAP = {
77
77
  export interface WorkspaceOverview {
78
78
  id: string;
79
79
  name: string;
80
+ /** URL-safe handle (e.g. "acme_corp"). Used in /@handle/ URLs and @mentions. */
81
+ slug: string;
80
82
  type: OrgType;
81
83
  /** Square logo URL for the workspace. Null if no logo has been set. */
82
84
  logoUrl: string | null;