@budibase/types 3.36.3 → 3.36.5

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.
@@ -1,5 +1,5 @@
1
1
  import { Optional } from "../../../shared";
2
- import { Agent, AgentKnowledgeSourceSyncRunStatus, ChatApp, ChatConversation, ChatConversationRequest, CreateChatConversationRequest, KnowledgeBaseFile } from "../../../documents";
2
+ import { Agent, AgentKnowledgeSourceFilterConfig, AgentKnowledgeSourceSyncRunStatus, ChatApp, ChatConversation, ChatConversationRequest, CreateChatConversationRequest, KnowledgeBaseFile } from "../../../documents";
3
3
  export type ChatAgentRequest = ChatConversationRequest;
4
4
  export type FetchAgentHistoryResponse = ChatConversation[];
5
5
  export type { CreateChatConversationRequest };
@@ -56,20 +56,25 @@ export interface KnowledgeSourceSyncRun {
56
56
  status: AgentKnowledgeSourceSyncRunStatus;
57
57
  }
58
58
  export interface SyncAgentKnowledgeSourcesRequest {
59
- sourceId: string;
60
59
  }
61
60
  export interface SyncAgentKnowledgeSourcesResponse {
62
61
  agentId: string;
63
62
  synced: number;
64
63
  failed: number;
65
64
  alreadySynced: number;
65
+ deleted: number;
66
66
  unsupported: number;
67
67
  totalDiscovered: number;
68
68
  }
69
69
  export interface ConnectAgentSharePointSiteRequest {
70
70
  siteId: string;
71
+ filters?: AgentKnowledgeSourceFilterConfig;
71
72
  }
72
73
  export type ConnectAgentSharePointSiteResponse = FetchAgentKnowledgeSourceOptionsResponse;
74
+ export interface UpdateAgentSharePointSiteRequest {
75
+ filters?: AgentKnowledgeSourceFilterConfig;
76
+ }
77
+ export type UpdateAgentSharePointSiteResponse = FetchAgentKnowledgeSourceOptionsResponse;
73
78
  export interface DisconnectAgentSharePointSiteResponse {
74
79
  agentId: string;
75
80
  disconnected: true;
@@ -41,6 +41,9 @@ export interface SlackAgentIntegration extends ChatAgentIntegration {
41
41
  export declare enum AgentKnowledgeSourceType {
42
42
  SHAREPOINT = "sharepoint"
43
43
  }
44
+ export interface AgentKnowledgeSourceFilterConfig {
45
+ patterns?: string[];
46
+ }
44
47
  export interface AgentSharePointKnowledgeSource {
45
48
  id: string;
46
49
  type: AgentKnowledgeSourceType.SHAREPOINT;
@@ -50,6 +53,7 @@ export interface AgentSharePointKnowledgeSource {
50
53
  name?: string;
51
54
  webUrl?: string;
52
55
  };
56
+ filters?: AgentKnowledgeSourceFilterConfig;
53
57
  };
54
58
  }
55
59
  export type AgentKnowledgeSource = AgentSharePointKnowledgeSource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/types",
3
- "version": "3.36.3",
3
+ "version": "3.36.5",
4
4
  "description": "Budibase types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,5 +28,5 @@
28
28
  "dependencies": {
29
29
  "scim-patch": "^0.8.1"
30
30
  },
31
- "gitHead": "6a1af9e82701e0341177e290c6bc695663e2d8e4"
31
+ "gitHead": "767fa11d498558b2893bd1c22de62afe9b564c8e"
32
32
  }