@thinkai/tai-api-contract 2.221.0 → 2.223.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.
@@ -4231,6 +4231,46 @@ export interface paths {
4231
4231
  patch?: never;
4232
4232
  trace?: never;
4233
4233
  };
4234
+ "/workspaces/{workspaceId}/code-chat/ecg/sources": {
4235
+ parameters: {
4236
+ query?: never;
4237
+ header?: never;
4238
+ path?: never;
4239
+ cookie?: never;
4240
+ };
4241
+ /**
4242
+ * List ECG connectors
4243
+ * @description Any workspace member. Returns active workspace integrations with ECG fields (`kind`, `readable`, `note`, `enabled`) for Settings → Connectors. Readable today: GitHub, Bitbucket Cloud, Confluence. GitHub Actions and Notion are Coming soon; other connected connectors stay listed as not supported yet.
4244
+ */
4245
+ get: operations["listEcgSources"];
4246
+ put?: never;
4247
+ post?: never;
4248
+ delete?: never;
4249
+ options?: never;
4250
+ head?: never;
4251
+ patch?: never;
4252
+ trace?: never;
4253
+ };
4254
+ "/workspaces/{workspaceId}/code-chat/ecg/sources/{integrationId}": {
4255
+ parameters: {
4256
+ query?: never;
4257
+ header?: never;
4258
+ path?: never;
4259
+ cookie?: never;
4260
+ };
4261
+ get?: never;
4262
+ put?: never;
4263
+ post?: never;
4264
+ delete?: never;
4265
+ options?: never;
4266
+ head?: never;
4267
+ /**
4268
+ * Toggle ECG for a connector
4269
+ * @description Any workspace member. Sets `enabled` for one integration. Enabling a non-readable connector returns **400** `ecg_connector_not_readable`. Disabling is always allowed.
4270
+ */
4271
+ patch: operations["patchEcgSource"];
4272
+ trace?: never;
4273
+ };
4234
4274
  "/workspaces/{workspaceId}/code-chat/attachments": {
4235
4275
  parameters: {
4236
4276
  query?: never;
@@ -6917,7 +6957,7 @@ export interface components {
6917
6957
  };
6918
6958
  TeamEfficiencyDataQualityDto: {
6919
6959
  /** @enum {string} */
6920
- code: "low_data" | "missing_start" | "batch_closed" | "no_roster" | "not_configured" | "no_bug_data" | "no_survey" | "unattributed_failures" | "excluded_incidents" | "unlinked_incidents" | "unknown_review_comments" | "no_linked_deploys" | "no_deployments" | "six_month_window";
6960
+ code: "low_data" | "missing_start" | "batch_closed" | "no_roster" | "not_configured" | "no_bug_data" | "no_survey" | "unattributed_failures" | "excluded_incidents" | "unlinked_incidents" | "unknown_review_comments" | "no_linked_deploys" | "no_deployments" | "deploys_without_commit" | "six_month_window";
6921
6961
  message: string;
6922
6962
  percent?: number;
6923
6963
  count?: number;
@@ -7038,6 +7078,8 @@ export interface components {
7038
7078
  setup: {
7039
7079
  items: components["schemas"]["TeamEfficiencySetupItemDto"][];
7040
7080
  complete: boolean;
7081
+ /** @description Connected workspace sources that can report production deployments. A release reported by several of them counts once. */
7082
+ deploySources: ("datadog" | "newrelic" | "sentry" | "github")[];
7041
7083
  };
7042
7084
  /** Format: date-time */
7043
7085
  generatedAt: string;
@@ -7297,6 +7339,32 @@ export interface components {
7297
7339
  /** Format: date-time */
7298
7340
  createdAt: string;
7299
7341
  };
7342
+ EcgSourceDto: {
7343
+ /** Format: uuid */
7344
+ id: string;
7345
+ /** @description Workspace integration category (for example `vcs`, `ci`, `knowledge`). */
7346
+ category: string;
7347
+ /** @description Integration provider key (for example `github`, `github_actions`). */
7348
+ provider: string;
7349
+ label: string;
7350
+ /** @description When false, ECG does not scan or cite this connector. */
7351
+ enabled: boolean;
7352
+ status: string;
7353
+ /** Format: date-time */
7354
+ lastScanAt: string | null;
7355
+ /** @enum {string} */
7356
+ kind: "code" | "document" | "other";
7357
+ /** @description When false, Settings shows Coming soon / Not supported and PATCH enable is rejected. */
7358
+ readable: boolean;
7359
+ /** @description Human-readable Coming soon / not-supported note when `readable` is false. */
7360
+ note: string | null;
7361
+ };
7362
+ EcgSourceListDto: {
7363
+ items: components["schemas"]["EcgSourceDto"][];
7364
+ };
7365
+ PatchEcgSourceBodyDto: {
7366
+ enabled: boolean;
7367
+ };
7300
7368
  CodeChatReadinessDto: {
7301
7369
  /** @enum {string} */
7302
7370
  status: "indexing" | "generating_agent_md" | "failed" | "ready";
@@ -14624,6 +14692,9 @@ export type PutCodeIntelligenceAgentMdDto = components['schemas']['PutCodeIntell
14624
14692
  export type CodeIntelligenceAgentMdDto = components['schemas']['CodeIntelligenceAgentMdDto'];
14625
14693
  export type CodeChatAttachmentLimitsDto = components['schemas']['CodeChatAttachmentLimitsDto'];
14626
14694
  export type CodeChatAttachmentMetaDto = components['schemas']['CodeChatAttachmentMetaDto'];
14695
+ export type EcgSourceDto = components['schemas']['EcgSourceDto'];
14696
+ export type EcgSourceListDto = components['schemas']['EcgSourceListDto'];
14697
+ export type PatchEcgSourceBodyDto = components['schemas']['PatchEcgSourceBodyDto'];
14627
14698
  export type CodeChatReadinessDto = components['schemas']['CodeChatReadinessDto'];
14628
14699
  export type CodeWikiGuidanceDto = components['schemas']['CodeWikiGuidanceDto'];
14629
14700
  export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
@@ -26835,6 +26906,83 @@ export interface operations {
26835
26906
  };
26836
26907
  };
26837
26908
  };
26909
+ listEcgSources: {
26910
+ parameters: {
26911
+ query?: never;
26912
+ header?: never;
26913
+ path: {
26914
+ workspaceId: components["parameters"]["WorkspaceId"];
26915
+ };
26916
+ cookie?: never;
26917
+ };
26918
+ requestBody?: never;
26919
+ responses: {
26920
+ /** @description Connector list */
26921
+ 200: {
26922
+ headers: {
26923
+ [name: string]: unknown;
26924
+ };
26925
+ content: {
26926
+ "application/json": components["schemas"]["EcgSourceListDto"];
26927
+ };
26928
+ };
26929
+ 401: components["responses"]["Unauthorized"];
26930
+ 403: components["responses"]["Forbidden"];
26931
+ };
26932
+ };
26933
+ patchEcgSource: {
26934
+ parameters: {
26935
+ query?: never;
26936
+ header?: never;
26937
+ path: {
26938
+ workspaceId: components["parameters"]["WorkspaceId"];
26939
+ integrationId: string;
26940
+ };
26941
+ cookie?: never;
26942
+ };
26943
+ requestBody: {
26944
+ content: {
26945
+ "application/json": components["schemas"]["PatchEcgSourceBodyDto"];
26946
+ };
26947
+ };
26948
+ responses: {
26949
+ /** @description Updated connector */
26950
+ 200: {
26951
+ headers: {
26952
+ [name: string]: unknown;
26953
+ };
26954
+ content: {
26955
+ "application/json": components["schemas"]["EcgSourceDto"];
26956
+ };
26957
+ };
26958
+ /** @description Invalid body or connector not readable for ECG */
26959
+ 400: {
26960
+ headers: {
26961
+ [name: string]: unknown;
26962
+ };
26963
+ content: {
26964
+ "application/json": components["schemas"]["ErrorMessageDto"];
26965
+ };
26966
+ };
26967
+ 401: components["responses"]["Unauthorized"];
26968
+ 403: components["responses"]["Forbidden"];
26969
+ /** @description Integration not found */
26970
+ 404: {
26971
+ headers: {
26972
+ [name: string]: unknown;
26973
+ };
26974
+ content: {
26975
+ /**
26976
+ * @example {
26977
+ * "error": "Integration not found",
26978
+ * "code": "integration_not_found"
26979
+ * }
26980
+ */
26981
+ "application/json": components["schemas"]["ErrorMessageDto"];
26982
+ };
26983
+ };
26984
+ };
26985
+ };
26838
26986
  postCodeChatAttachment: {
26839
26987
  parameters: {
26840
26988
  query?: never;