@thinkai/tai-api-contract 2.70.0 → 2.72.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.
@@ -355,7 +355,7 @@ export interface paths {
355
355
  put?: never;
356
356
  /**
357
357
  * Invite member to workspace
358
- * @description Workspace admin only. Upserts `tai_users` by email and adds or reactivates `tai_workspace_members`. Idempotent when the email is already an active member: returns **201** with the existing row and **does not change** their role if the request body role differs. Does not send email; optional `tai_workspace_invitations` row may be recorded (no accept/link flow yet).
358
+ * @description Workspace admin only. Creates or refreshes a **pending** `tai_workspace_invitations` row and emails an accept link; it does **not** create `tai_workspace_members`. Membership is granted only by `POST /invitations/{token}/accept`. Applies to new and existing platform users alike. Idempotent when the email is already an active member: returns **201** with `outcome: "already_member"` and the existing row, **does not change** their role if the request body role differs, and sends no email. Re-inviting a pending email refreshes the token and 7-day expiry (the previous link stops working). When SMTP is not configured the invitation is still created and a warning is logged.
359
359
  */
360
360
  post: operations["inviteTenantMember"];
361
361
  delete?: never;
@@ -388,6 +388,86 @@ export interface paths {
388
388
  patch: operations["updateTenantMemberRole"];
389
389
  trace?: never;
390
390
  };
391
+ "/workspaces/{workspaceId}/invitations": {
392
+ parameters: {
393
+ query?: never;
394
+ header?: never;
395
+ path?: never;
396
+ cookie?: never;
397
+ };
398
+ /**
399
+ * List pending workspace invitations
400
+ * @description Workspace admin only. Returns invitations still awaiting a decision so the team settings page can show "pending" alongside active members. Rows whose `expiresAt` has passed are flipped to `expired` on read and omitted.
401
+ */
402
+ get: operations["listWorkspaceInvitations"];
403
+ put?: never;
404
+ post?: never;
405
+ delete?: never;
406
+ options?: never;
407
+ head?: never;
408
+ patch?: never;
409
+ trace?: never;
410
+ };
411
+ "/invitations/{token}": {
412
+ parameters: {
413
+ query?: never;
414
+ header?: never;
415
+ path?: never;
416
+ cookie?: never;
417
+ };
418
+ /**
419
+ * Preview a workspace invitation (public)
420
+ * @description **Unauthenticated.** Lets the SPA render the invite landing page before the invitee has signed in. The invited email is **masked** (`j••••e@example.com`) so a leaked link does not disclose an address. Returns `404` with a generic message for unknown, revoked, or rejected tokens; a past-due `pending` invitation is flipped to `expired` and returned with that status so the SPA can show a stable message.
421
+ */
422
+ get: operations["getWorkspaceInvitationPreview"];
423
+ put?: never;
424
+ post?: never;
425
+ delete?: never;
426
+ options?: never;
427
+ head?: never;
428
+ patch?: never;
429
+ trace?: never;
430
+ };
431
+ "/invitations/{token}/accept": {
432
+ parameters: {
433
+ query?: never;
434
+ header?: never;
435
+ path?: never;
436
+ cookie?: never;
437
+ };
438
+ get?: never;
439
+ put?: never;
440
+ /**
441
+ * Accept a workspace invitation
442
+ * @description Requires a Supabase JWT whose email matches the invited email. Creates the `tai_workspace_members` row with the invited role and closes the invitation as `accepted`. This is the **only** path that grants workspace membership — signing up alone never does. Idempotent: re-accepting your own accepted invitation returns `200` unchanged.
443
+ */
444
+ post: operations["acceptWorkspaceInvitation"];
445
+ delete?: never;
446
+ options?: never;
447
+ head?: never;
448
+ patch?: never;
449
+ trace?: never;
450
+ };
451
+ "/invitations/{token}/reject": {
452
+ parameters: {
453
+ query?: never;
454
+ header?: never;
455
+ path?: never;
456
+ cookie?: never;
457
+ };
458
+ get?: never;
459
+ put?: never;
460
+ /**
461
+ * Decline a workspace invitation
462
+ * @description Requires a Supabase JWT whose email matches the invited email — anonymous decline with only the token is not allowed. Closes the invitation as `rejected` and creates no member row. Idempotent for an already-rejected invitation.
463
+ */
464
+ post: operations["rejectWorkspaceInvitation"];
465
+ delete?: never;
466
+ options?: never;
467
+ head?: never;
468
+ patch?: never;
469
+ trace?: never;
470
+ };
391
471
  "/workspaces/{workspaceId}/org-chart/status": {
392
472
  parameters: {
393
473
  query?: never;
@@ -3098,6 +3178,54 @@ export interface components {
3098
3178
  /** @enum {string} */
3099
3179
  role: "admin" | "editor" | "viewer";
3100
3180
  };
3181
+ /**
3182
+ * @description `revoked` is an admin cancelling the invitation; `rejected` is the invitee declining it. Both leave the invitee outside the workspace.
3183
+ * @enum {string}
3184
+ */
3185
+ WorkspaceInvitationStatusDto: "pending" | "accepted" | "expired" | "revoked" | "rejected";
3186
+ /** @description Workspace invitation as seen by an authenticated admin or invitee. */
3187
+ WorkspaceInvitationDto: {
3188
+ /** Format: uuid */
3189
+ id: string;
3190
+ /** Format: uuid */
3191
+ workspaceId: string;
3192
+ workspaceName: string;
3193
+ /** @description Invited email address. */
3194
+ email: string;
3195
+ /** @enum {string} */
3196
+ role: "admin" | "editor" | "viewer";
3197
+ status: components["schemas"]["WorkspaceInvitationStatusDto"];
3198
+ invitedByName?: string | null;
3199
+ invitedByEmail?: string | null;
3200
+ /** Format: date-time */
3201
+ expiresAt: string;
3202
+ /** Format: date-time */
3203
+ createdAt: string;
3204
+ /** Format: date-time */
3205
+ acceptedAt?: string | null;
3206
+ };
3207
+ /** @description Unauthenticated invitation preview. `maskedEmail` is the only view of the invited address; compare it to the signed-in account client-side before calling accept. */
3208
+ WorkspaceInvitationPreviewDto: {
3209
+ workspaceName: string;
3210
+ /** @enum {string} */
3211
+ role: "admin" | "editor" | "viewer";
3212
+ status: components["schemas"]["WorkspaceInvitationStatusDto"];
3213
+ /** @example j••••e@example.com */
3214
+ maskedEmail: string;
3215
+ invitedByName?: string | null;
3216
+ /** Format: date-time */
3217
+ expiresAt: string;
3218
+ };
3219
+ WorkspaceInvitationListDto: {
3220
+ invitations: components["schemas"]["WorkspaceInvitationDto"][];
3221
+ };
3222
+ /** @description Discriminated on `outcome`. `invited` carries the new pending invitation; `already_member` carries the existing membership row unchanged. */
3223
+ InviteTeamMemberResultDto: {
3224
+ /** @enum {string} */
3225
+ outcome: "invited" | "already_member";
3226
+ invitation?: components["schemas"]["WorkspaceInvitationDto"];
3227
+ member?: components["schemas"]["TeamMemberDto"];
3228
+ };
3101
3229
  /** @description Granular person erasure categories. All default to true when omitted. */
3102
3230
  EraseInsightsPersonBodyDto: {
3103
3231
  /** @description Remove the person node from `tai_workspace_config.org_chart`. */
@@ -3436,6 +3564,32 @@ export interface components {
3436
3564
  projectKey: string;
3437
3565
  branch?: string;
3438
3566
  };
3567
+ /** @description PagerDuty incident monitoring source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires a REST API v2 token (an "API Access Key" from PagerDuty → **Integrations → API Access Keys**). */
3568
+ PagerDutySourceDto: {
3569
+ /** @enum {string} */
3570
+ type: "pagerduty";
3571
+ /** @description PagerDuty REST API v2 token (API Access Key, write-only on PUT). */
3572
+ token: string;
3573
+ /** @description Optional API base URL override. Default `https://api.pagerduty.com`. */
3574
+ baseUrl?: string;
3575
+ /** @description Optional display name from a successful connection test (echo-after-test). */
3576
+ userName?: string;
3577
+ /** @description Optional email from a successful connection test (echo-after-test). */
3578
+ userEmail?: string;
3579
+ };
3580
+ /** @description Redacted PagerDuty source returned by `GET /workspaces/{workspaceId}/config`. Raw token is never returned. */
3581
+ PagerDutySourceConfigDto: {
3582
+ /** @enum {string} */
3583
+ type: "pagerduty";
3584
+ /** @description Whether an API token is stored for this workspace. */
3585
+ hasToken: boolean;
3586
+ /** @description Configured API base URL override, when set. */
3587
+ baseUrl?: string;
3588
+ /** @description PagerDuty user name when known from the last successful verify. */
3589
+ userName?: string;
3590
+ /** @description PagerDuty user email when known from the last successful verify. */
3591
+ userEmail?: string;
3592
+ };
3439
3593
  /**
3440
3594
  * @description The agent execution account used for Agentic Foundation runs (readiness scanner + fix queue). Exactly one is active per workspace.
3441
3595
  * - `thinkai_platform_cursor`: ThinkAI platform Cursor key (Cursor Agent CLI) — opt-in, never default.
@@ -3445,7 +3599,7 @@ export interface components {
3445
3599
  */
3446
3600
  AgentExecutionProviderDto: "thinkai_platform_cursor" | "cursor_user_api_key" | "claude_api_key";
3447
3601
  WorkspaceConfigDto: {
3448
- sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
3602
+ sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
3449
3603
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
3450
3604
  /** @enum {string|null} */
3451
3605
  region?: "us" | "eu" | "me" | null;
@@ -6215,7 +6369,7 @@ export interface components {
6215
6369
  * @description Type of workspace lifecycle event.
6216
6370
  * @enum {string}
6217
6371
  */
6218
- ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed";
6372
+ ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed";
6219
6373
  ActivityLogActorDto: {
6220
6374
  /** Format: uuid */
6221
6375
  userId: string;
@@ -6770,6 +6924,8 @@ export interface components {
6770
6924
  NotificationId: string;
6771
6925
  /** @description Workspace member user id (`tai_users.id`). */
6772
6926
  WorkspaceMemberId: string;
6927
+ /** @description Opaque workspace invitation token from the emailed accept link. Only its SHA-256 hash is stored server-side; the plaintext is shown exactly once, in the email. */
6928
+ WorkspaceInvitationToken: string;
6773
6929
  /** @description Privacy request id (`tai_privacy_requests.id`). */
6774
6930
  PrivacyRequestId: string;
6775
6931
  FixId: string;
@@ -6835,6 +6991,11 @@ export type TeamMemberDto = components['schemas']['TeamMemberDto'];
6835
6991
  export type TeamMemberListDto = components['schemas']['TeamMemberListDto'];
6836
6992
  export type InviteTeamMemberBodyDto = components['schemas']['InviteTeamMemberBodyDto'];
6837
6993
  export type UpdateTeamMemberRoleBodyDto = components['schemas']['UpdateTeamMemberRoleBodyDto'];
6994
+ export type WorkspaceInvitationStatusDto = components['schemas']['WorkspaceInvitationStatusDto'];
6995
+ export type WorkspaceInvitationDto = components['schemas']['WorkspaceInvitationDto'];
6996
+ export type WorkspaceInvitationPreviewDto = components['schemas']['WorkspaceInvitationPreviewDto'];
6997
+ export type WorkspaceInvitationListDto = components['schemas']['WorkspaceInvitationListDto'];
6998
+ export type InviteTeamMemberResultDto = components['schemas']['InviteTeamMemberResultDto'];
6838
6999
  export type EraseInsightsPersonBodyDto = components['schemas']['EraseInsightsPersonBodyDto'];
6839
7000
  export type EraseInsightsPersonResultDto = components['schemas']['EraseInsightsPersonResultDto'];
6840
7001
  export type OrgChartNodeDto = components['schemas']['OrgChartNodeDto'];
@@ -6864,6 +7025,8 @@ export type GrafanaSourceDto = components['schemas']['GrafanaSourceDto'];
6864
7025
  export type GrafanaSourceConfigDto = components['schemas']['GrafanaSourceConfigDto'];
6865
7026
  export type SonarQubeSourceDto = components['schemas']['SonarQubeSourceDto'];
6866
7027
  export type SonarQubeSourceConfigDto = components['schemas']['SonarQubeSourceConfigDto'];
7028
+ export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
7029
+ export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
6867
7030
  export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
6868
7031
  export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
6869
7032
  export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
@@ -7181,6 +7344,7 @@ export type ParameterProviderSlug = components['parameters']['ProviderSlug'];
7181
7344
  export type ParameterProjectId = components['parameters']['ProjectId'];
7182
7345
  export type ParameterNotificationId = components['parameters']['NotificationId'];
7183
7346
  export type ParameterWorkspaceMemberId = components['parameters']['WorkspaceMemberId'];
7347
+ export type ParameterWorkspaceInvitationToken = components['parameters']['WorkspaceInvitationToken'];
7184
7348
  export type ParameterPrivacyRequestId = components['parameters']['PrivacyRequestId'];
7185
7349
  export type ParameterFixId = components['parameters']['FixId'];
7186
7350
  export type ParameterInsightsProductivityRangeId = components['parameters']['InsightsProductivityRangeId'];
@@ -8224,13 +8388,13 @@ export interface operations {
8224
8388
  };
8225
8389
  };
8226
8390
  responses: {
8227
- /** @description Invited member row */
8391
+ /** @description Pending invitation, or the existing member row when already a member */
8228
8392
  201: {
8229
8393
  headers: {
8230
8394
  [name: string]: unknown;
8231
8395
  };
8232
8396
  content: {
8233
- "application/json": components["schemas"]["TeamMemberDto"];
8397
+ "application/json": components["schemas"]["InviteTeamMemberResultDto"];
8234
8398
  };
8235
8399
  };
8236
8400
  /** @description Invalid email or role */
@@ -8359,6 +8523,191 @@ export interface operations {
8359
8523
  };
8360
8524
  };
8361
8525
  };
8526
+ listWorkspaceInvitations: {
8527
+ parameters: {
8528
+ query?: never;
8529
+ header?: never;
8530
+ path: {
8531
+ workspaceId: components["parameters"]["WorkspaceId"];
8532
+ };
8533
+ cookie?: never;
8534
+ };
8535
+ requestBody?: never;
8536
+ responses: {
8537
+ /** @description Pending invitations */
8538
+ 200: {
8539
+ headers: {
8540
+ [name: string]: unknown;
8541
+ };
8542
+ content: {
8543
+ "application/json": components["schemas"]["WorkspaceInvitationListDto"];
8544
+ };
8545
+ };
8546
+ 401: components["responses"]["Unauthorized"];
8547
+ 403: components["responses"]["Forbidden"];
8548
+ /** @description Workspace does not exist or malformed workspaceId */
8549
+ 404: {
8550
+ headers: {
8551
+ [name: string]: unknown;
8552
+ };
8553
+ content: {
8554
+ "application/json": components["schemas"]["ErrorMessageDto"];
8555
+ };
8556
+ };
8557
+ };
8558
+ };
8559
+ getWorkspaceInvitationPreview: {
8560
+ parameters: {
8561
+ query?: never;
8562
+ header?: never;
8563
+ path: {
8564
+ /** @description Opaque workspace invitation token from the emailed accept link. Only its SHA-256 hash is stored server-side; the plaintext is shown exactly once, in the email. */
8565
+ token: components["parameters"]["WorkspaceInvitationToken"];
8566
+ };
8567
+ cookie?: never;
8568
+ };
8569
+ requestBody?: never;
8570
+ responses: {
8571
+ /** @description Invitation preview */
8572
+ 200: {
8573
+ headers: {
8574
+ [name: string]: unknown;
8575
+ };
8576
+ content: {
8577
+ "application/json": components["schemas"]["WorkspaceInvitationPreviewDto"];
8578
+ };
8579
+ };
8580
+ /** @description Unknown or no longer available invitation */
8581
+ 404: {
8582
+ headers: {
8583
+ [name: string]: unknown;
8584
+ };
8585
+ content: {
8586
+ "application/json": components["schemas"]["ErrorMessageDto"];
8587
+ };
8588
+ };
8589
+ };
8590
+ };
8591
+ acceptWorkspaceInvitation: {
8592
+ parameters: {
8593
+ query?: never;
8594
+ header?: never;
8595
+ path: {
8596
+ /** @description Opaque workspace invitation token from the emailed accept link. Only its SHA-256 hash is stored server-side; the plaintext is shown exactly once, in the email. */
8597
+ token: components["parameters"]["WorkspaceInvitationToken"];
8598
+ };
8599
+ cookie?: never;
8600
+ };
8601
+ requestBody?: never;
8602
+ responses: {
8603
+ /** @description Invitation accepted; caller is now a workspace member */
8604
+ 200: {
8605
+ headers: {
8606
+ [name: string]: unknown;
8607
+ };
8608
+ content: {
8609
+ "application/json": components["schemas"]["WorkspaceInvitationDto"];
8610
+ };
8611
+ };
8612
+ 401: components["responses"]["Unauthorized"];
8613
+ /** @description Signed-in email does not match the invited email */
8614
+ 403: {
8615
+ headers: {
8616
+ [name: string]: unknown;
8617
+ };
8618
+ content: {
8619
+ "application/json": components["schemas"]["ErrorMessageDto"];
8620
+ };
8621
+ };
8622
+ /** @description Unknown invitation token */
8623
+ 404: {
8624
+ headers: {
8625
+ [name: string]: unknown;
8626
+ };
8627
+ content: {
8628
+ "application/json": components["schemas"]["ErrorMessageDto"];
8629
+ };
8630
+ };
8631
+ /** @description Invitation is no longer actionable */
8632
+ 409: {
8633
+ headers: {
8634
+ [name: string]: unknown;
8635
+ };
8636
+ content: {
8637
+ "application/json": components["schemas"]["ErrorMessageDto"];
8638
+ };
8639
+ };
8640
+ /** @description Invitation expired */
8641
+ 410: {
8642
+ headers: {
8643
+ [name: string]: unknown;
8644
+ };
8645
+ content: {
8646
+ "application/json": components["schemas"]["ErrorMessageDto"];
8647
+ };
8648
+ };
8649
+ };
8650
+ };
8651
+ rejectWorkspaceInvitation: {
8652
+ parameters: {
8653
+ query?: never;
8654
+ header?: never;
8655
+ path: {
8656
+ /** @description Opaque workspace invitation token from the emailed accept link. Only its SHA-256 hash is stored server-side; the plaintext is shown exactly once, in the email. */
8657
+ token: components["parameters"]["WorkspaceInvitationToken"];
8658
+ };
8659
+ cookie?: never;
8660
+ };
8661
+ requestBody?: never;
8662
+ responses: {
8663
+ /** @description Invitation declined */
8664
+ 200: {
8665
+ headers: {
8666
+ [name: string]: unknown;
8667
+ };
8668
+ content: {
8669
+ "application/json": components["schemas"]["WorkspaceInvitationDto"];
8670
+ };
8671
+ };
8672
+ 401: components["responses"]["Unauthorized"];
8673
+ /** @description Signed-in email does not match the invited email */
8674
+ 403: {
8675
+ headers: {
8676
+ [name: string]: unknown;
8677
+ };
8678
+ content: {
8679
+ "application/json": components["schemas"]["ErrorMessageDto"];
8680
+ };
8681
+ };
8682
+ /** @description Unknown invitation token */
8683
+ 404: {
8684
+ headers: {
8685
+ [name: string]: unknown;
8686
+ };
8687
+ content: {
8688
+ "application/json": components["schemas"]["ErrorMessageDto"];
8689
+ };
8690
+ };
8691
+ /** @description Invitation was already accepted */
8692
+ 409: {
8693
+ headers: {
8694
+ [name: string]: unknown;
8695
+ };
8696
+ content: {
8697
+ "application/json": components["schemas"]["ErrorMessageDto"];
8698
+ };
8699
+ };
8700
+ /** @description Invitation expired */
8701
+ 410: {
8702
+ headers: {
8703
+ [name: string]: unknown;
8704
+ };
8705
+ content: {
8706
+ "application/json": components["schemas"]["ErrorMessageDto"];
8707
+ };
8708
+ };
8709
+ };
8710
+ };
8362
8711
  getWorkspaceOrgChartStatus: {
8363
8712
  parameters: {
8364
8713
  query?: never;
@@ -8579,7 +8928,7 @@ export interface operations {
8579
8928
  requestBody: {
8580
8929
  content: {
8581
8930
  "application/json": {
8582
- sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
8931
+ sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
8583
8932
  };
8584
8933
  };
8585
8934
  };
@@ -8633,7 +8982,7 @@ export interface operations {
8633
8982
  };
8634
8983
  requestBody: {
8635
8984
  content: {
8636
- "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
8985
+ "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["TenantSourceEntryDto"];
8637
8986
  };
8638
8987
  };
8639
8988
  responses: {