@thinkai/tai-api-contract 2.221.0 → 2.222.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;
@@ -7297,6 +7337,32 @@ export interface components {
7297
7337
  /** Format: date-time */
7298
7338
  createdAt: string;
7299
7339
  };
7340
+ EcgSourceDto: {
7341
+ /** Format: uuid */
7342
+ id: string;
7343
+ /** @description Workspace integration category (for example `vcs`, `ci`, `knowledge`). */
7344
+ category: string;
7345
+ /** @description Integration provider key (for example `github`, `github_actions`). */
7346
+ provider: string;
7347
+ label: string;
7348
+ /** @description When false, ECG does not scan or cite this connector. */
7349
+ enabled: boolean;
7350
+ status: string;
7351
+ /** Format: date-time */
7352
+ lastScanAt: string | null;
7353
+ /** @enum {string} */
7354
+ kind: "code" | "document" | "other";
7355
+ /** @description When false, Settings shows Coming soon / Not supported and PATCH enable is rejected. */
7356
+ readable: boolean;
7357
+ /** @description Human-readable Coming soon / not-supported note when `readable` is false. */
7358
+ note: string | null;
7359
+ };
7360
+ EcgSourceListDto: {
7361
+ items: components["schemas"]["EcgSourceDto"][];
7362
+ };
7363
+ PatchEcgSourceBodyDto: {
7364
+ enabled: boolean;
7365
+ };
7300
7366
  CodeChatReadinessDto: {
7301
7367
  /** @enum {string} */
7302
7368
  status: "indexing" | "generating_agent_md" | "failed" | "ready";
@@ -14624,6 +14690,9 @@ export type PutCodeIntelligenceAgentMdDto = components['schemas']['PutCodeIntell
14624
14690
  export type CodeIntelligenceAgentMdDto = components['schemas']['CodeIntelligenceAgentMdDto'];
14625
14691
  export type CodeChatAttachmentLimitsDto = components['schemas']['CodeChatAttachmentLimitsDto'];
14626
14692
  export type CodeChatAttachmentMetaDto = components['schemas']['CodeChatAttachmentMetaDto'];
14693
+ export type EcgSourceDto = components['schemas']['EcgSourceDto'];
14694
+ export type EcgSourceListDto = components['schemas']['EcgSourceListDto'];
14695
+ export type PatchEcgSourceBodyDto = components['schemas']['PatchEcgSourceBodyDto'];
14627
14696
  export type CodeChatReadinessDto = components['schemas']['CodeChatReadinessDto'];
14628
14697
  export type CodeWikiGuidanceDto = components['schemas']['CodeWikiGuidanceDto'];
14629
14698
  export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
@@ -26835,6 +26904,83 @@ export interface operations {
26835
26904
  };
26836
26905
  };
26837
26906
  };
26907
+ listEcgSources: {
26908
+ parameters: {
26909
+ query?: never;
26910
+ header?: never;
26911
+ path: {
26912
+ workspaceId: components["parameters"]["WorkspaceId"];
26913
+ };
26914
+ cookie?: never;
26915
+ };
26916
+ requestBody?: never;
26917
+ responses: {
26918
+ /** @description Connector list */
26919
+ 200: {
26920
+ headers: {
26921
+ [name: string]: unknown;
26922
+ };
26923
+ content: {
26924
+ "application/json": components["schemas"]["EcgSourceListDto"];
26925
+ };
26926
+ };
26927
+ 401: components["responses"]["Unauthorized"];
26928
+ 403: components["responses"]["Forbidden"];
26929
+ };
26930
+ };
26931
+ patchEcgSource: {
26932
+ parameters: {
26933
+ query?: never;
26934
+ header?: never;
26935
+ path: {
26936
+ workspaceId: components["parameters"]["WorkspaceId"];
26937
+ integrationId: string;
26938
+ };
26939
+ cookie?: never;
26940
+ };
26941
+ requestBody: {
26942
+ content: {
26943
+ "application/json": components["schemas"]["PatchEcgSourceBodyDto"];
26944
+ };
26945
+ };
26946
+ responses: {
26947
+ /** @description Updated connector */
26948
+ 200: {
26949
+ headers: {
26950
+ [name: string]: unknown;
26951
+ };
26952
+ content: {
26953
+ "application/json": components["schemas"]["EcgSourceDto"];
26954
+ };
26955
+ };
26956
+ /** @description Invalid body or connector not readable for ECG */
26957
+ 400: {
26958
+ headers: {
26959
+ [name: string]: unknown;
26960
+ };
26961
+ content: {
26962
+ "application/json": components["schemas"]["ErrorMessageDto"];
26963
+ };
26964
+ };
26965
+ 401: components["responses"]["Unauthorized"];
26966
+ 403: components["responses"]["Forbidden"];
26967
+ /** @description Integration not found */
26968
+ 404: {
26969
+ headers: {
26970
+ [name: string]: unknown;
26971
+ };
26972
+ content: {
26973
+ /**
26974
+ * @example {
26975
+ * "error": "Integration not found",
26976
+ * "code": "integration_not_found"
26977
+ * }
26978
+ */
26979
+ "application/json": components["schemas"]["ErrorMessageDto"];
26980
+ };
26981
+ };
26982
+ };
26983
+ };
26838
26984
  postCodeChatAttachment: {
26839
26985
  parameters: {
26840
26986
  query?: never;