@thinkai/tai-api-contract 2.223.0 → 2.224.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.
@@ -1728,7 +1728,7 @@ export interface paths {
1728
1728
  cookie?: never;
1729
1729
  };
1730
1730
  /**
1731
- * DevEx survey aggregates (SurveyMonkey)
1731
+ * DevEx survey aggregates (SurveyMonkey or Google Forms)
1732
1732
  * @description Persisted DevEx aggregates (`devex-score`) for a workspace. Aggregates only — never email or free text. Returns 404 when `backend-api.teamEfficiency.enabled` is false (unless the workspace is on the optional allowlist).
1733
1733
  */
1734
1734
  get: operations["getDevexResults"];
@@ -1770,8 +1770,8 @@ export interface paths {
1770
1770
  get?: never;
1771
1771
  put?: never;
1772
1772
  /**
1773
- * Sync DevEx aggregates from SurveyMonkey
1774
- * @description Pull SurveyMonkey responses, score dimensions (% favourable after reverse-score), apply team min-response rollup and response-rate flags, and persist aggregates only. Admin only. 404 when Team Efficiency is disabled.
1773
+ * Sync DevEx aggregates from the connected survey
1774
+ * @description Pull responses from the workspace's connected survey (SurveyMonkey or Google Forms; a workspace uses one at a time), score dimensions (% favourable after reverse-score), apply team min-response rollup and response-rate flags, and persist aggregates only. Admin only. 404 when Team Efficiency is disabled.
1775
1775
  */
1776
1776
  post: operations["syncDevexSurvey"];
1777
1777
  delete?: never;
@@ -1800,6 +1800,90 @@ export interface paths {
1800
1800
  patch?: never;
1801
1801
  trace?: never;
1802
1802
  };
1803
+ "/workspaces/{workspaceId}/connectors/googleforms/verify": {
1804
+ parameters: {
1805
+ query?: never;
1806
+ header?: never;
1807
+ path?: never;
1808
+ cookie?: never;
1809
+ };
1810
+ get?: never;
1811
+ put?: never;
1812
+ /**
1813
+ * Re-verify Google Forms connection
1814
+ * @description Re-reads the saved form with the workspace's Google connection and returns an anonymity warning when the form collects respondent email addresses. 404 when flag off. Workspace admin only.
1815
+ */
1816
+ post: operations["verifyGoogleFormsConnector"];
1817
+ delete?: never;
1818
+ options?: never;
1819
+ head?: never;
1820
+ patch?: never;
1821
+ trace?: never;
1822
+ };
1823
+ "/workspaces/{workspaceId}/connectors/googleforms/install-url": {
1824
+ parameters: {
1825
+ query?: never;
1826
+ header?: never;
1827
+ path?: never;
1828
+ cookie?: never;
1829
+ };
1830
+ /**
1831
+ * Google sign-in URL for the Google Forms DevEx survey
1832
+ * @description Workspace admin only. Returns the Google OAuth authorize URL (offline access, read-only Forms scopes). State is stored server-side, single-use, and names this workspace and the signed-in admin. Editor or viewer is `403` with `code` `workspace_admin_required`. Missing Google client settings are `503` with `code` `googleforms_not_configured`. `404` when Team Efficiency is disabled.
1833
+ */
1834
+ get: operations["getGoogleFormsInstallUrl"];
1835
+ put?: never;
1836
+ post?: never;
1837
+ delete?: never;
1838
+ options?: never;
1839
+ head?: never;
1840
+ patch?: never;
1841
+ trace?: never;
1842
+ };
1843
+ "/connectors/googleforms/callback": {
1844
+ parameters: {
1845
+ query?: never;
1846
+ header?: never;
1847
+ path?: never;
1848
+ cookie?: never;
1849
+ };
1850
+ /**
1851
+ * Google Forms OAuth callback
1852
+ * @description Browser return from Google. The provider redirect carries no API bearer token. `state` was issued by `getGoogleFormsInstallUrl` to a signed-in admin and is single-use (30 minute lifetime). The refresh token is stored encrypted only when that user is still a workspace admin and both Forms scopes were granted. Success redirects to `{spa}/workspace/connectors/googleforms?googleforms=connected`. Failures redirect to the same page with `googleformsError=<code>`, one of `invalid_or_expired_state`, `workspace_admin_required`, `not_found`, `access_denied`, `oauth_error`, `invalid_callback`, `callback_failed`, `missing_scopes`, `no_refresh_token`. No token is ever in the redirect.
1853
+ */
1854
+ get: operations["getGoogleFormsOauthCallback"];
1855
+ put?: never;
1856
+ post?: never;
1857
+ delete?: never;
1858
+ options?: never;
1859
+ head?: never;
1860
+ patch?: never;
1861
+ trace?: never;
1862
+ };
1863
+ "/workspaces/{workspaceId}/connectors/googleforms": {
1864
+ parameters: {
1865
+ query?: never;
1866
+ header?: never;
1867
+ path?: never;
1868
+ cookie?: never;
1869
+ };
1870
+ /**
1871
+ * Google Forms connection status
1872
+ * @description Any workspace member. `connected` is true when a Google grant is stored. `needsReauth` is true after Google rejected the refresh token (revoked access, password change, or an unpublished consent screen); the admin must reconnect. Tokens are never returned. `404` when Team Efficiency is disabled.
1873
+ */
1874
+ get: operations["getGoogleFormsConnection"];
1875
+ put?: never;
1876
+ post?: never;
1877
+ /**
1878
+ * Disconnect Google Forms
1879
+ * @description Workspace **admin** only. Revokes the grant at Google (best effort) and deletes the stored tokens. The saved Google Forms source and past DevEx aggregates are kept.
1880
+ */
1881
+ delete: operations["deleteGoogleFormsConnection"];
1882
+ options?: never;
1883
+ head?: never;
1884
+ patch?: never;
1885
+ trace?: never;
1886
+ };
1803
1887
  "/workspaces/{workspaceId}/insights/sdlc/overview": {
1804
1888
  parameters: {
1805
1889
  query?: never;
@@ -6931,6 +7015,69 @@ export interface components {
6931
7015
  }[];
6932
7016
  userName?: string;
6933
7017
  };
7018
+ /** @description Google Forms DevEx survey source for Team Efficiency (`devex-score`). Authentication is the workspace's Google connection (see `getGoogleFormsInstallUrl`), so there is no token on the source. `formId` accepts the editor id or a pasted `/forms/d/<id>/edit` link; the server stores the bare id. Published-form links (`/forms/d/e/...`) are rejected. A workspace holds one survey source: PUT returns `409` `survey_source_conflict` while a SurveyMonkey source exists, and the reverse. Hidden when `backend-api.teamEfficiency.enabled` is false (404 on PUT/test). */
7019
+ GoogleFormsSourceDto: {
7020
+ /** @enum {string} */
7021
+ type: "googleforms";
7022
+ /** @description Google Form editor id, or a pasted form link. */
7023
+ formId: string;
7024
+ /** @description Required multiple-choice question whose options map to org-chart teams. */
7025
+ teamQuestionId?: string;
7026
+ /** @description Google Forms option text → org-chart team id. */
7027
+ teamOptionMap?: {
7028
+ [key: string]: string;
7029
+ };
7030
+ /** @description Google Forms option text → department id (for <5 response rollup). */
7031
+ teamDepartmentMap?: {
7032
+ [key: string]: string;
7033
+ };
7034
+ questions?: {
7035
+ questionId: string;
7036
+ /** @enum {string} */
7037
+ dimension: "feedback_loops" | "cognitive_load" | "flow_state";
7038
+ /** @description Negatively worded questions are reverse-scored before % favourable. */
7039
+ reverse?: boolean;
7040
+ }[];
7041
+ };
7042
+ /** @description Redacted Google Forms source returned by `GET /workspaces/{workspaceId}/config` when Team Efficiency is enabled. Omitted from sources when the feature flag is off. Whether Google is connected comes from `getGoogleFormsConnection`, not from this entry. */
7043
+ GoogleFormsSourceConfigDto: {
7044
+ /** @enum {string} */
7045
+ type: "googleforms";
7046
+ formId?: string;
7047
+ teamQuestionId?: string;
7048
+ teamOptionMap?: {
7049
+ [key: string]: string;
7050
+ };
7051
+ teamDepartmentMap?: {
7052
+ [key: string]: string;
7053
+ };
7054
+ questions?: {
7055
+ questionId: string;
7056
+ /** @enum {string} */
7057
+ dimension: "feedback_loops" | "cognitive_load" | "flow_state";
7058
+ reverse?: boolean;
7059
+ }[];
7060
+ };
7061
+ GoogleFormsInstallUrlDto: {
7062
+ /** @description Google OAuth authorize URL to open in the browser. */
7063
+ url: string;
7064
+ };
7065
+ GoogleFormsConnectionDto: {
7066
+ connected: boolean;
7067
+ /** @description Google account that authorized the connection, when Google returned it. */
7068
+ googleEmail: string | null;
7069
+ /** @description Google rejected the stored grant; an admin must reconnect. */
7070
+ needsReauth: boolean;
7071
+ };
7072
+ /** @description Sync did not run (HTTP 422) or failed upstream (HTTP 502). */
7073
+ DevexSyncSkippedDto: {
7074
+ /** @enum {string} */
7075
+ status: "skipped" | "error";
7076
+ /** @description `survey_not_connected`, `surveymonkey_mapping_incomplete`, `googleforms_mapping_incomplete`, `googleforms_not_connected`, `googleforms_reauthorize_required`, `surveymonkey_sync_failed`, or `googleforms_sync_failed`. */
7077
+ code?: string;
7078
+ reason?: string;
7079
+ error?: string;
7080
+ };
6934
7081
  /** @description One persisted DevEx aggregate row (never email / free text). */
6935
7082
  DevexResultDto: {
6936
7083
  teamId?: string | null;
@@ -7079,6 +7226,11 @@ export interface components {
7079
7226
  setup: {
7080
7227
  items: components["schemas"]["TeamEfficiencySetupItemDto"][];
7081
7228
  complete: boolean;
7229
+ /**
7230
+ * @description Connected DevEx survey connector, or null. SurveyMonkey wins when an older workspace holds both.
7231
+ * @enum {string|null}
7232
+ */
7233
+ surveySource: "surveymonkey" | "googleforms" | null;
7082
7234
  /** @description Connected workspace sources that can report production deployments. A release reported by several of them counts once. */
7083
7235
  deploySources: ("datadog" | "newrelic" | "sentry" | "github")[];
7084
7236
  };
@@ -7396,7 +7548,7 @@ export interface components {
7396
7548
  topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
7397
7549
  };
7398
7550
  WorkspaceConfigDto: {
7399
- sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["SurveyMonkeySourceConfigDto"] | components["schemas"]["IncidentIoSourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["LinearSourceConfigDto"] | components["schemas"]["GitHubIssuesSourceConfigDto"] | components["schemas"]["AzureBoardsSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
7551
+ sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["SurveyMonkeySourceConfigDto"] | components["schemas"]["GoogleFormsSourceConfigDto"] | components["schemas"]["IncidentIoSourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["LinearSourceConfigDto"] | components["schemas"]["GitHubIssuesSourceConfigDto"] | components["schemas"]["AzureBoardsSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
7400
7552
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
7401
7553
  /** @enum {string|null} */
7402
7554
  region?: "us" | "eu" | "me" | null;
@@ -7758,11 +7910,15 @@ export interface components {
7758
7910
  keyName?: string;
7759
7911
  /** @description Present for incident.io verify success — organization dashboard URL from `GET /v1/identity`. */
7760
7912
  dashboardUrl?: string;
7913
+ /** @description Present for Google Forms verify success — the form's title. */
7914
+ formTitle?: string;
7915
+ /** @description Present for Google Forms verify failure when the Google grant must be re-authorized. */
7916
+ reauthorizeRequired?: boolean;
7761
7917
  /** @description Present for Prometheus verify success — Alertmanager cluster name. */
7762
7918
  clusterName?: string;
7763
7919
  /** @description Present for Prometheus verify success — Alertmanager version when available. */
7764
7920
  version?: string;
7765
- /** @description Present for SurveyMonkey verify success. Question and choice labels only (never answers), so the connect screen can pick the team question and rating questions. */
7921
+ /** @description Present for SurveyMonkey or Google Forms test success. Question and choice labels only (never answers), so the connect screen can pick the team question and rating questions. */
7766
7922
  survey?: {
7767
7923
  title: string;
7768
7924
  questions: {
@@ -7776,7 +7932,7 @@ export interface components {
7776
7932
  }[];
7777
7933
  }[];
7778
7934
  };
7779
- /** @description Present for SurveyMonkey verify success when the request carried `teamQuestionId`. How many survey choices matched an org-chart team by name. */
7935
+ /** @description Present for SurveyMonkey or Google Forms test success when the request carried `teamQuestionId`. How many survey choices matched an org-chart team by name. */
7780
7936
  teamMatch?: {
7781
7937
  matched: number;
7782
7938
  total: number;
@@ -14660,6 +14816,11 @@ export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
14660
14816
  export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
14661
14817
  export type SurveyMonkeySourceDto = components['schemas']['SurveyMonkeySourceDto'];
14662
14818
  export type SurveyMonkeySourceConfigDto = components['schemas']['SurveyMonkeySourceConfigDto'];
14819
+ export type GoogleFormsSourceDto = components['schemas']['GoogleFormsSourceDto'];
14820
+ export type GoogleFormsSourceConfigDto = components['schemas']['GoogleFormsSourceConfigDto'];
14821
+ export type GoogleFormsInstallUrlDto = components['schemas']['GoogleFormsInstallUrlDto'];
14822
+ export type GoogleFormsConnectionDto = components['schemas']['GoogleFormsConnectionDto'];
14823
+ export type DevexSyncSkippedDto = components['schemas']['DevexSyncSkippedDto'];
14663
14824
  export type DevexResultDto = components['schemas']['DevexResultDto'];
14664
14825
  export type DevexResultsResponseDto = components['schemas']['DevexResultsResponseDto'];
14665
14826
  export type TeamEfficiencyDataQualityDto = components['schemas']['TeamEfficiencyDataQualityDto'];
@@ -18990,7 +19151,7 @@ export interface operations {
18990
19151
  requestBody: {
18991
19152
  content: {
18992
19153
  "application/json": {
18993
- sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SurveyMonkeySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["GitHubIssuesSourceDto"] | components["schemas"]["AzureBoardsSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
19154
+ sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SurveyMonkeySourceDto"] | components["schemas"]["GoogleFormsSourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["GitHubIssuesSourceDto"] | components["schemas"]["AzureBoardsSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
18994
19155
  };
18995
19156
  };
18996
19157
  };
@@ -19031,6 +19192,21 @@ export interface operations {
19031
19192
  };
19032
19193
  content?: never;
19033
19194
  };
19195
+ /** @description A workspace holds one DevEx survey source. Saving `googleforms` while a `surveymonkey` source exists (or the reverse) is rejected; disconnect the other first. */
19196
+ 409: {
19197
+ headers: {
19198
+ [name: string]: unknown;
19199
+ };
19200
+ content: {
19201
+ /**
19202
+ * @example {
19203
+ * "error": "A workspace uses one DevEx survey source at a time. Disconnect the current survey source before connecting another.",
19204
+ * "code": "survey_source_conflict"
19205
+ * }
19206
+ */
19207
+ "application/json": components["schemas"]["ErrorMessageDto"];
19208
+ };
19209
+ };
19034
19210
  };
19035
19211
  };
19036
19212
  postTenantSourceTest: {
@@ -19044,7 +19220,7 @@ export interface operations {
19044
19220
  };
19045
19221
  requestBody: {
19046
19222
  content: {
19047
- "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SurveyMonkeySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["GitHubIssuesSourceDto"] | components["schemas"]["AzureBoardsSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
19223
+ "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SurveyMonkeySourceDto"] | components["schemas"]["GoogleFormsSourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["GitHubIssuesSourceDto"] | components["schemas"]["AzureBoardsSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
19048
19224
  };
19049
19225
  };
19050
19226
  responses: {
@@ -20509,14 +20685,16 @@ export interface operations {
20509
20685
  };
20510
20686
  content?: never;
20511
20687
  };
20512
- /** @description SurveyMonkey not connected or mapping incomplete */
20688
+ /** @description No survey connected (`survey_not_connected`), mapping incomplete (`surveymonkey_mapping_incomplete` or `googleforms_mapping_incomplete`), or Google access needs attention (`googleforms_not_connected`, `googleforms_reauthorize_required`, also returned when Google rejects the saved sign-in with 401 mid-sync; the connection then reports `needsReauth`). */
20513
20689
  422: {
20514
20690
  headers: {
20515
20691
  [name: string]: unknown;
20516
20692
  };
20517
- content?: never;
20693
+ content: {
20694
+ "application/json": components["schemas"]["DevexSyncSkippedDto"];
20695
+ };
20518
20696
  };
20519
- /** @description SurveyMonkey API failure */
20697
+ /** @description Survey API failure (`surveymonkey_sync_failed` or `googleforms_sync_failed`). */
20520
20698
  502: {
20521
20699
  headers: {
20522
20700
  [name: string]: unknown;
@@ -20563,6 +20741,210 @@ export interface operations {
20563
20741
  };
20564
20742
  };
20565
20743
  };
20744
+ verifyGoogleFormsConnector: {
20745
+ parameters: {
20746
+ query?: never;
20747
+ header?: never;
20748
+ path: {
20749
+ workspaceId: components["parameters"]["WorkspaceId"];
20750
+ };
20751
+ cookie?: never;
20752
+ };
20753
+ requestBody?: never;
20754
+ responses: {
20755
+ /** @description Connection test result */
20756
+ 200: {
20757
+ headers: {
20758
+ [name: string]: unknown;
20759
+ };
20760
+ content: {
20761
+ "application/json": components["schemas"]["TestConnectionResponseDto"];
20762
+ };
20763
+ };
20764
+ 401: components["responses"]["Unauthorized"];
20765
+ 403: components["responses"]["Forbidden"];
20766
+ /** @description Feature flag off */
20767
+ 404: {
20768
+ headers: {
20769
+ [name: string]: unknown;
20770
+ };
20771
+ content?: never;
20772
+ };
20773
+ /** @description Google Forms not connected (`googleforms_not_connected`) or the Google grant was revoked or expired (`googleforms_reauthorize_required`, also on a Forms API 401; the connection then reports `needsReauth`). */
20774
+ 422: {
20775
+ headers: {
20776
+ [name: string]: unknown;
20777
+ };
20778
+ content?: never;
20779
+ };
20780
+ };
20781
+ };
20782
+ getGoogleFormsInstallUrl: {
20783
+ parameters: {
20784
+ query?: never;
20785
+ header?: never;
20786
+ path: {
20787
+ workspaceId: components["parameters"]["WorkspaceId"];
20788
+ };
20789
+ cookie?: never;
20790
+ };
20791
+ requestBody?: never;
20792
+ responses: {
20793
+ /** @description Google authorize URL */
20794
+ 200: {
20795
+ headers: {
20796
+ [name: string]: unknown;
20797
+ };
20798
+ content: {
20799
+ "application/json": components["schemas"]["GoogleFormsInstallUrlDto"];
20800
+ };
20801
+ };
20802
+ 401: components["responses"]["Unauthorized"];
20803
+ /** @description Caller is not a workspace admin */
20804
+ 403: {
20805
+ headers: {
20806
+ [name: string]: unknown;
20807
+ };
20808
+ content: {
20809
+ /**
20810
+ * @example {
20811
+ * "error": "Forbidden",
20812
+ * "code": "workspace_admin_required"
20813
+ * }
20814
+ */
20815
+ "application/json": components["schemas"]["ErrorMessageDto"];
20816
+ };
20817
+ };
20818
+ /** @description Feature flag off or workspace not found */
20819
+ 404: {
20820
+ headers: {
20821
+ [name: string]: unknown;
20822
+ };
20823
+ content?: never;
20824
+ };
20825
+ /** @description Google client id or secret is unset */
20826
+ 503: {
20827
+ headers: {
20828
+ [name: string]: unknown;
20829
+ };
20830
+ content: {
20831
+ /**
20832
+ * @example {
20833
+ * "error": "Google sign-in is not configured",
20834
+ * "code": "googleforms_not_configured"
20835
+ * }
20836
+ */
20837
+ "application/json": components["schemas"]["ErrorMessageDto"];
20838
+ };
20839
+ };
20840
+ };
20841
+ };
20842
+ getGoogleFormsOauthCallback: {
20843
+ parameters: {
20844
+ query: {
20845
+ code?: string;
20846
+ state: string;
20847
+ error?: string;
20848
+ };
20849
+ header?: never;
20850
+ path?: never;
20851
+ cookie?: never;
20852
+ };
20853
+ requestBody?: never;
20854
+ responses: {
20855
+ /** @description Redirect to the integrations step */
20856
+ 302: {
20857
+ headers: {
20858
+ Location?: string;
20859
+ [name: string]: unknown;
20860
+ };
20861
+ content?: never;
20862
+ };
20863
+ /** @description No SPA origin is available */
20864
+ 503: {
20865
+ headers: {
20866
+ [name: string]: unknown;
20867
+ };
20868
+ content: {
20869
+ "application/json": components["schemas"]["ErrorMessageDto"];
20870
+ };
20871
+ };
20872
+ };
20873
+ };
20874
+ getGoogleFormsConnection: {
20875
+ parameters: {
20876
+ query?: never;
20877
+ header?: never;
20878
+ path: {
20879
+ workspaceId: components["parameters"]["WorkspaceId"];
20880
+ };
20881
+ cookie?: never;
20882
+ };
20883
+ requestBody?: never;
20884
+ responses: {
20885
+ /** @description Connection status */
20886
+ 200: {
20887
+ headers: {
20888
+ [name: string]: unknown;
20889
+ };
20890
+ content: {
20891
+ "application/json": components["schemas"]["GoogleFormsConnectionDto"];
20892
+ };
20893
+ };
20894
+ 401: components["responses"]["Unauthorized"];
20895
+ 403: components["responses"]["Forbidden"];
20896
+ /** @description Feature flag off or workspace not found */
20897
+ 404: {
20898
+ headers: {
20899
+ [name: string]: unknown;
20900
+ };
20901
+ content?: never;
20902
+ };
20903
+ };
20904
+ };
20905
+ deleteGoogleFormsConnection: {
20906
+ parameters: {
20907
+ query?: never;
20908
+ header?: never;
20909
+ path: {
20910
+ workspaceId: components["parameters"]["WorkspaceId"];
20911
+ };
20912
+ cookie?: never;
20913
+ };
20914
+ requestBody?: never;
20915
+ responses: {
20916
+ /** @description Disconnected */
20917
+ 204: {
20918
+ headers: {
20919
+ [name: string]: unknown;
20920
+ };
20921
+ content?: never;
20922
+ };
20923
+ 401: components["responses"]["Unauthorized"];
20924
+ /** @description Editor or viewer */
20925
+ 403: {
20926
+ headers: {
20927
+ [name: string]: unknown;
20928
+ };
20929
+ content: {
20930
+ /**
20931
+ * @example {
20932
+ * "error": "Forbidden",
20933
+ * "code": "workspace_admin_required"
20934
+ * }
20935
+ */
20936
+ "application/json": components["schemas"]["ErrorMessageDto"];
20937
+ };
20938
+ };
20939
+ /** @description Feature flag off or workspace not found */
20940
+ 404: {
20941
+ headers: {
20942
+ [name: string]: unknown;
20943
+ };
20944
+ content?: never;
20945
+ };
20946
+ };
20947
+ };
20566
20948
  getSdlcInsightsOverview: {
20567
20949
  parameters: {
20568
20950
  query?: {