@thinkai/tai-api-contract 2.54.0 → 2.55.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.
@@ -399,6 +399,26 @@ export interface paths {
399
399
  patch?: never;
400
400
  trace?: never;
401
401
  };
402
+ "/workspaces/{workspaceId}/org-chart/members/me": {
403
+ parameters: {
404
+ query?: never;
405
+ header?: never;
406
+ path?: never;
407
+ cookie?: never;
408
+ };
409
+ get?: never;
410
+ put?: never;
411
+ post?: never;
412
+ delete?: never;
413
+ options?: never;
414
+ head?: never;
415
+ /**
416
+ * Update current user's org chart member row
417
+ * @description Updates the signed-in user's row in the workspace org chart snapshot (`thinkai_org_structure`), matched by work email. Any workspace member may update their own row; workspace editor role is not required.
418
+ */
419
+ patch: operations["patchMyOrgChartMember"];
420
+ trace?: never;
421
+ };
402
422
  "/workspaces/{workspaceId}/config": {
403
423
  parameters: {
404
424
  query?: never;
@@ -2586,6 +2606,16 @@ export interface components {
2586
2606
  /** @description Bitbucket account UUID (e.g. "{aeefb6b0-...}") to attribute merged PRs and reviews to this person in productivity ingest. Preferred over bitbucketNickname — Bitbucket PR payloads expose a stable uuid but not nickname. Resolves to the same person_id (email) as githubUsername. */
2587
2607
  bitbucketUuid?: string;
2588
2608
  };
2609
+ UpdateMyOrgChartMemberBodyDto: {
2610
+ name?: string;
2611
+ title?: string;
2612
+ department?: string;
2613
+ team?: string;
2614
+ location?: string;
2615
+ githubUsername?: string;
2616
+ bitbucketNickname?: string;
2617
+ bitbucketUuid?: string;
2618
+ };
2589
2619
  OrgChartImportResultDto: {
2590
2620
  persons: components["schemas"]["OrgChartPersonDto"][];
2591
2621
  errors: string[];
@@ -5549,6 +5579,7 @@ export type OrgChartTreeNodeDto = components['schemas']['OrgChartTreeNodeDto'];
5549
5579
  export type ScoringOrgChartDto = components['schemas']['ScoringOrgChartDto'];
5550
5580
  export type OrgChartDto = components['schemas']['OrgChartDto'];
5551
5581
  export type OrgChartPersonDto = components['schemas']['OrgChartPersonDto'];
5582
+ export type UpdateMyOrgChartMemberBodyDto = components['schemas']['UpdateMyOrgChartMemberBodyDto'];
5552
5583
  export type OrgChartImportResultDto = components['schemas']['OrgChartImportResultDto'];
5553
5584
  export type OrgChartSaveResultDto = components['schemas']['OrgChartSaveResultDto'];
5554
5585
  export type OrgStructureSourceBodyDto = components['schemas']['OrgStructureSourceBodyDto'];
@@ -6988,6 +7019,52 @@ export interface operations {
6988
7019
  403: components["responses"]["Forbidden"];
6989
7020
  };
6990
7021
  };
7022
+ patchMyOrgChartMember: {
7023
+ parameters: {
7024
+ query?: never;
7025
+ header?: never;
7026
+ path: {
7027
+ workspaceId: components["parameters"]["WorkspaceId"];
7028
+ };
7029
+ cookie?: never;
7030
+ };
7031
+ requestBody: {
7032
+ content: {
7033
+ "application/json": components["schemas"]["UpdateMyOrgChartMemberBodyDto"];
7034
+ };
7035
+ };
7036
+ responses: {
7037
+ /** @description Updated org chart member row */
7038
+ 200: {
7039
+ headers: {
7040
+ [name: string]: unknown;
7041
+ };
7042
+ content: {
7043
+ "application/json": components["schemas"]["OrgChartPersonDto"];
7044
+ };
7045
+ };
7046
+ /** @description Invalid request body */
7047
+ 400: {
7048
+ headers: {
7049
+ [name: string]: unknown;
7050
+ };
7051
+ content: {
7052
+ "application/json": components["schemas"]["ErrorMessageDto"];
7053
+ };
7054
+ };
7055
+ 401: components["responses"]["Unauthorized"];
7056
+ 403: components["responses"]["Forbidden"];
7057
+ /** @description Org chart not found (no persisted chart for the workspace), or the caller's email is not present in the org chart roster. */
7058
+ 404: {
7059
+ headers: {
7060
+ [name: string]: unknown;
7061
+ };
7062
+ content: {
7063
+ "application/json": components["schemas"]["ErrorMessageDto"];
7064
+ };
7065
+ };
7066
+ };
7067
+ };
6991
7068
  getWorkspaceConfig: {
6992
7069
  parameters: {
6993
7070
  query?: never;