@squidcloud/local-backend 1.0.142 → 1.0.143

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.
Files changed (173) hide show
  1. package/dist/common/src/ai-assistant.types.d.ts +34 -128
  2. package/dist/common/src/ai-assistant.types.js +2 -17
  3. package/dist/common/src/ai-assistant.types.js.map +1 -1
  4. package/dist/common/src/ai-chatbot.context.d.ts +13 -0
  5. package/dist/common/src/{ai-assistant.context.js → ai-chatbot.context.js} +20 -20
  6. package/dist/common/src/ai-chatbot.context.js.map +1 -0
  7. package/dist/common/src/ai-chatbot.schemas.d.ts +18 -0
  8. package/dist/common/src/ai-chatbot.schemas.js +22 -0
  9. package/dist/common/src/ai-chatbot.schemas.js.map +1 -0
  10. package/dist/common/src/ai-chatbot.types.d.ts +121 -0
  11. package/dist/common/src/ai-chatbot.types.js +18 -0
  12. package/dist/common/src/ai-chatbot.types.js.map +1 -0
  13. package/dist/common/src/api-call.context.d.ts +13 -13
  14. package/dist/common/src/api-call.context.js +16 -16
  15. package/dist/common/src/api.types.d.ts +22 -22
  16. package/dist/common/src/api.types.js +2 -2
  17. package/dist/common/src/application.schemas.d.ts +1648 -1648
  18. package/dist/common/src/application.schemas.js +1001 -1001
  19. package/dist/common/src/application.schemas.js.map +1 -1
  20. package/dist/common/src/application.types.d.ts +193 -193
  21. package/dist/common/src/application.types.js +89 -89
  22. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  23. package/dist/common/src/backend-function.schemas.js +11 -11
  24. package/dist/common/src/backend-function.types.d.ts +4 -4
  25. package/dist/common/src/backend-function.types.js +2 -2
  26. package/dist/common/src/backend-run.types.d.ts +54 -54
  27. package/dist/common/src/backend-run.types.js +95 -95
  28. package/dist/common/src/backend-run.types.js.map +1 -1
  29. package/dist/common/src/bundle-api.types.d.ts +69 -68
  30. package/dist/common/src/bundle-api.types.js +2 -2
  31. package/dist/common/src/bundle-data.types.d.ts +74 -61
  32. package/dist/common/src/bundle-data.types.js +2 -2
  33. package/dist/common/src/communication.types.d.ts +19 -19
  34. package/dist/common/src/communication.types.js +40 -40
  35. package/dist/common/src/context.types.d.ts +24 -24
  36. package/dist/common/src/context.types.js +2 -2
  37. package/dist/common/src/distributed-lock.context.d.ts +4 -4
  38. package/dist/common/src/distributed-lock.context.js +9 -9
  39. package/dist/common/src/document.types.d.ts +32 -32
  40. package/dist/common/src/document.types.js +50 -50
  41. package/dist/common/src/graphql.context.d.ts +14 -14
  42. package/dist/common/src/graphql.context.js +12 -12
  43. package/dist/common/src/graphql.types.d.ts +11 -11
  44. package/dist/common/src/graphql.types.js +34 -34
  45. package/dist/common/src/heartbeat.types.d.ts +4 -4
  46. package/dist/common/src/heartbeat.types.js +16 -16
  47. package/dist/common/src/http-status.enum.d.ts +50 -50
  48. package/dist/common/src/http-status.enum.js +54 -54
  49. package/dist/common/src/index.d.ts +57 -56
  50. package/dist/common/src/index.js +73 -72
  51. package/dist/common/src/index.js.map +1 -1
  52. package/dist/common/src/integrations/ai_chatbot.types.d.ts +31 -0
  53. package/dist/common/src/integrations/{ai_assistant.types.js → ai_chatbot.types.js} +3 -3
  54. package/dist/common/src/integrations/ai_chatbot.types.js.map +1 -0
  55. package/dist/common/src/integrations/api.types.d.ts +80 -80
  56. package/dist/common/src/integrations/api.types.js +2 -2
  57. package/dist/common/src/integrations/auth.types.d.ts +39 -39
  58. package/dist/common/src/integrations/auth.types.js +2 -2
  59. package/dist/common/src/integrations/database.types.d.ts +274 -274
  60. package/dist/common/src/integrations/database.types.js +2 -2
  61. package/dist/common/src/integrations/index.d.ts +134 -134
  62. package/dist/common/src/integrations/index.js +119 -119
  63. package/dist/common/src/integrations/index.js.map +1 -1
  64. package/dist/common/src/integrations/observability.types.d.ts +23 -23
  65. package/dist/common/src/integrations/observability.types.js +23 -23
  66. package/dist/common/src/logger.types.d.ts +21 -21
  67. package/dist/common/src/logger.types.js +11 -11
  68. package/dist/common/src/metrics.types.d.ts +73 -73
  69. package/dist/common/src/metrics.types.js +11 -11
  70. package/dist/common/src/mutation.context.d.ts +13 -13
  71. package/dist/common/src/mutation.context.js +26 -26
  72. package/dist/common/src/mutation.schemas.d.ts +5 -5
  73. package/dist/common/src/mutation.schemas.js +114 -114
  74. package/dist/common/src/mutation.types.d.ts +63 -63
  75. package/dist/common/src/mutation.types.js +142 -142
  76. package/dist/common/src/named-query.context.d.ts +4 -4
  77. package/dist/common/src/named-query.context.js +9 -9
  78. package/dist/common/src/named-query.schemas.d.ts +3 -3
  79. package/dist/common/src/named-query.schemas.js +13 -13
  80. package/dist/common/src/named-query.types.d.ts +8 -8
  81. package/dist/common/src/named-query.types.js +2 -2
  82. package/dist/common/src/native-query.context.d.ts +7 -7
  83. package/dist/common/src/native-query.context.js +11 -11
  84. package/dist/common/src/native-query.types.d.ts +16 -16
  85. package/dist/common/src/native-query.types.js +2 -2
  86. package/dist/common/src/query/base-query-builder.d.ts +38 -38
  87. package/dist/common/src/query/base-query-builder.js +39 -39
  88. package/dist/common/src/query/index.d.ts +4 -4
  89. package/dist/common/src/query/index.js +20 -20
  90. package/dist/common/src/query/pagination.d.ts +46 -46
  91. package/dist/common/src/query/pagination.js +211 -211
  92. package/dist/common/src/query/query-context.d.ts +47 -47
  93. package/dist/common/src/query/query-context.js +159 -159
  94. package/dist/common/src/query/serialized-query.types.d.ts +24 -24
  95. package/dist/common/src/query/serialized-query.types.js +2 -2
  96. package/dist/common/src/query.types.d.ts +86 -86
  97. package/dist/common/src/query.types.js +171 -171
  98. package/dist/common/src/regions.d.ts +21 -21
  99. package/dist/common/src/regions.js +46 -46
  100. package/dist/common/src/schema/schema.types.d.ts +30 -30
  101. package/dist/common/src/schema/schema.types.js +173 -173
  102. package/dist/common/src/secret.schemas.d.ts +4 -4
  103. package/dist/common/src/secret.schemas.js +17 -17
  104. package/dist/common/src/secret.types.d.ts +68 -68
  105. package/dist/common/src/secret.types.js +5 -5
  106. package/dist/common/src/security.types.d.ts +3 -3
  107. package/dist/common/src/security.types.js +2 -2
  108. package/dist/common/src/socket.schemas.d.ts +3 -3
  109. package/dist/common/src/socket.schemas.js +57 -57
  110. package/dist/common/src/socket.types.d.ts +126 -126
  111. package/dist/common/src/socket.types.js +9 -9
  112. package/dist/common/src/time-units.d.ts +5 -5
  113. package/dist/common/src/time-units.js +8 -8
  114. package/dist/common/src/trigger.types.d.ts +15 -15
  115. package/dist/common/src/trigger.types.js +2 -2
  116. package/dist/common/src/types.d.ts +21 -21
  117. package/dist/common/src/types.js +2 -2
  118. package/dist/common/src/utils/array.d.ts +8 -8
  119. package/dist/common/src/utils/array.js +54 -54
  120. package/dist/common/src/utils/assert.d.ts +3 -3
  121. package/dist/common/src/utils/assert.js +14 -14
  122. package/dist/common/src/utils/error.d.ts +4 -4
  123. package/dist/common/src/utils/error.js +10 -10
  124. package/dist/common/src/utils/global.utils.d.ts +11 -11
  125. package/dist/common/src/utils/global.utils.js +50 -50
  126. package/dist/common/src/utils/http.d.ts +2 -2
  127. package/dist/common/src/utils/http.js +51 -51
  128. package/dist/common/src/utils/id.d.ts +2 -2
  129. package/dist/common/src/utils/id.js +21 -21
  130. package/dist/common/src/utils/lock.manager.d.ts +9 -9
  131. package/dist/common/src/utils/lock.manager.js +39 -39
  132. package/dist/common/src/utils/object.d.ts +5 -5
  133. package/dist/common/src/utils/object.js +75 -75
  134. package/dist/common/src/utils/serialization.d.ts +6 -6
  135. package/dist/common/src/utils/serialization.js +77 -77
  136. package/dist/common/src/utils/transforms.d.ts +18 -18
  137. package/dist/common/src/utils/transforms.js +104 -104
  138. package/dist/common/src/utils/url.d.ts +1 -1
  139. package/dist/common/src/utils/url.js +15 -15
  140. package/dist/common/src/utils/validation.d.ts +17 -17
  141. package/dist/common/src/utils/validation.js +209 -209
  142. package/dist/common/src/webhook-response.d.ts +6 -6
  143. package/dist/common/src/webhook-response.js +2 -2
  144. package/dist/common/src/websocket.impl.d.ts +21 -21
  145. package/dist/common/src/websocket.impl.js +79 -79
  146. package/dist/internal-common/src/code-executor.types.d.ts +13 -13
  147. package/dist/internal-common/src/code-executor.types.js +2 -2
  148. package/dist/internal-common/src/local-dev.types.d.ts +35 -35
  149. package/dist/internal-common/src/local-dev.types.js +2 -2
  150. package/dist/internal-common/src/utils/logger-utils.d.ts +3 -3
  151. package/dist/internal-common/src/utils/logger-utils.js +28 -28
  152. package/dist/local-backend/package.json +50 -57
  153. package/dist/local-backend/src/index.d.ts +4 -4
  154. package/dist/local-backend/src/index.js +26 -26
  155. package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
  156. package/dist/local-backend/src/local-backend-socket.service.js +108 -108
  157. package/dist/local-backend/src/local-backend.app.d.ts +2 -2
  158. package/dist/local-backend/src/local-backend.app.js +19 -19
  159. package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
  160. package/dist/local-backend/src/local-backend.controller.js +49 -49
  161. package/dist/local-backend/src/local-backend.module.d.ts +8 -8
  162. package/dist/local-backend/src/local-backend.module.js +53 -53
  163. package/dist/local-backend/src/local-backend.service.d.ts +15 -15
  164. package/dist/local-backend/src/local-backend.service.js +176 -176
  165. package/dist/tsconfig.build.tsbuildinfo +1 -1
  166. package/package.json +2 -9
  167. package/dist/common/src/ai-assistant.context.d.ts +0 -13
  168. package/dist/common/src/ai-assistant.context.js.map +0 -1
  169. package/dist/common/src/ai-assistant.schemas.d.ts +0 -243
  170. package/dist/common/src/ai-assistant.schemas.js +0 -211
  171. package/dist/common/src/ai-assistant.schemas.js.map +0 -1
  172. package/dist/common/src/integrations/ai_assistant.types.d.ts +0 -31
  173. package/dist/common/src/integrations/ai_assistant.types.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/local-backend",
3
- "version": "1.0.142",
3
+ "version": "1.0.143",
4
4
  "description": "",
5
5
  "main": "dist/local-backend/src/index.js",
6
6
  "types": "dist/local-backend/src/index.d.ts",
@@ -27,10 +27,6 @@
27
27
  "node": ">=18.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@nestjs/common": "^9.0.0",
31
- "@nestjs/config": "^2.3.2",
32
- "@nestjs/core": "^9.0.0",
33
- "@nestjs/platform-express": "^9.0.0",
34
30
  "@supercharge/promise-pool": "^2.4.0",
35
31
  "assertic": "^1.0.0",
36
32
  "cli-box": "^6.0.10",
@@ -40,10 +36,7 @@
40
36
  "ws": "^8.13.0"
41
37
  },
42
38
  "devDependencies": {
43
- "@nestjs/cli": "^9.0.0",
44
- "@nestjs/schematics": "^9.0.0",
45
- "@nestjs/testing": "^9.0.0",
46
- "@squidcloud/common": "1.0.142",
39
+ "@squidcloud/common": "1.0.143",
47
40
  "@types/cli-box": "^6.0.1",
48
41
  "@types/express": "^4.17.13",
49
42
  "@types/node": "18.11.18",
@@ -1,13 +0,0 @@
1
- import { AiAssistantChatRequest, AiAssistantMutateRequest, AiAssistantMutationType, AiAssistantResourceType } from './ai-assistant.types';
2
- export declare class AiAssistantChatContext {
3
- readonly prompt: string;
4
- readonly profileId: string;
5
- constructor(request: AiAssistantChatRequest);
6
- }
7
- export declare class AiAssistantMutationContext {
8
- readonly type: AiAssistantMutationType;
9
- readonly resource: AiAssistantResourceType;
10
- readonly profileId: string;
11
- readonly payload: any;
12
- constructor(request: AiAssistantMutateRequest);
13
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-assistant.context.js","sourceRoot":"","sources":["../../../../common/src/ai-assistant.context.ts"],"names":[],"mappings":";;;AAOA,MAAa,sBAAsB;IAOjC,YAAY,OAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC;CACF;AAXD,wDAWC;AAGD,MAAa,0BAA0B;IASrC,YAAY,OAAiC;QAC3C,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACjC,CAAC;CACF;AAfD,gEAeC"}
@@ -1,243 +0,0 @@
1
- export declare const AiAssistantChatRequestSchema: {
2
- type: string;
3
- properties: {
4
- profileId: {
5
- type: string;
6
- };
7
- integrationId: {
8
- type: string;
9
- };
10
- clientRequestId: {
11
- type: string;
12
- };
13
- prompt: {
14
- type: string;
15
- };
16
- };
17
- required: string[];
18
- };
19
- export declare const AiAssistantMutateRequestSchema: {
20
- type: string;
21
- properties: {
22
- profileId: {
23
- type: string;
24
- };
25
- integrationId: {
26
- type: string;
27
- };
28
- type: {
29
- type: string;
30
- enum: string[];
31
- };
32
- resource: {
33
- type: string;
34
- enum: string[];
35
- };
36
- };
37
- required: string[];
38
- oneOf: ({
39
- properties: {
40
- type: {
41
- const: string;
42
- };
43
- resource: {
44
- const: string;
45
- };
46
- payload: {
47
- type: string;
48
- properties: {
49
- modelName: {
50
- type: string;
51
- enum: string[];
52
- };
53
- strictContext: {
54
- type: string;
55
- };
56
- id?: undefined;
57
- instruction?: undefined;
58
- title?: undefined;
59
- context?: undefined;
60
- };
61
- required: string[];
62
- };
63
- };
64
- type?: undefined;
65
- required?: undefined;
66
- } | {
67
- properties: {
68
- type: {
69
- const: string;
70
- };
71
- resource: {
72
- const: string;
73
- };
74
- payload: {
75
- type: string;
76
- properties: {
77
- id: {
78
- type: string;
79
- };
80
- instruction: {
81
- type: string;
82
- };
83
- modelName?: undefined;
84
- strictContext?: undefined;
85
- title?: undefined;
86
- context?: undefined;
87
- };
88
- required: string[];
89
- };
90
- };
91
- type?: undefined;
92
- required?: undefined;
93
- } | {
94
- type: string;
95
- properties: {
96
- type: {
97
- const: string;
98
- };
99
- resource: {
100
- const: string;
101
- };
102
- payload: {
103
- type: string;
104
- properties: {
105
- id: {
106
- type: string;
107
- };
108
- title: {
109
- type: string;
110
- };
111
- context: {
112
- anyOf: {
113
- type: string;
114
- properties: {
115
- type: {
116
- const: string;
117
- };
118
- data: {
119
- type: string;
120
- };
121
- };
122
- required: string[];
123
- }[];
124
- };
125
- modelName?: undefined;
126
- strictContext?: undefined;
127
- instruction?: undefined;
128
- };
129
- required: string[];
130
- };
131
- };
132
- required: string[];
133
- } | {
134
- properties: {
135
- type: {
136
- const: string;
137
- };
138
- resource: {
139
- const: string;
140
- };
141
- payload: {
142
- type: string;
143
- properties: {
144
- modelName: {
145
- type: string;
146
- enum: string[];
147
- };
148
- strictContext: {
149
- type: string;
150
- };
151
- id?: undefined;
152
- instruction?: undefined;
153
- title?: undefined;
154
- context?: undefined;
155
- };
156
- required?: undefined;
157
- };
158
- };
159
- type?: undefined;
160
- required?: undefined;
161
- } | {
162
- properties: {
163
- type: {
164
- const: string;
165
- };
166
- resource: {
167
- const: string;
168
- };
169
- payload: {
170
- type: string;
171
- properties: {
172
- id: {
173
- type: string;
174
- };
175
- title: {
176
- type: string;
177
- };
178
- context: {
179
- anyOf: {
180
- type: string;
181
- properties: {
182
- type: {
183
- const: string;
184
- };
185
- data: {
186
- type: string;
187
- };
188
- };
189
- required: string[];
190
- }[];
191
- };
192
- modelName?: undefined;
193
- strictContext?: undefined;
194
- instruction?: undefined;
195
- };
196
- required?: undefined;
197
- };
198
- };
199
- type?: undefined;
200
- required?: undefined;
201
- } | {
202
- properties: {
203
- type: {
204
- const: string;
205
- };
206
- resource: {
207
- const: string;
208
- };
209
- payload: {
210
- type: string;
211
- properties: {
212
- id: {
213
- type: string;
214
- };
215
- modelName?: undefined;
216
- strictContext?: undefined;
217
- instruction?: undefined;
218
- title?: undefined;
219
- context?: undefined;
220
- };
221
- required: string[];
222
- };
223
- };
224
- type?: undefined;
225
- required?: undefined;
226
- } | {
227
- properties: {
228
- type: {
229
- const: string;
230
- };
231
- resource: {
232
- const: string;
233
- };
234
- payload: {
235
- type: string;
236
- properties?: undefined;
237
- required?: undefined;
238
- };
239
- };
240
- type?: undefined;
241
- required?: undefined;
242
- })[];
243
- };
@@ -1,211 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AiAssistantMutateRequestSchema = exports.AiAssistantChatRequestSchema = void 0;
4
- exports.AiAssistantChatRequestSchema = {
5
- type: 'object',
6
- properties: {
7
- profileId: {
8
- type: 'string',
9
- },
10
- integrationId: {
11
- type: 'string',
12
- },
13
- clientRequestId: {
14
- type: 'string',
15
- },
16
- prompt: {
17
- type: 'string',
18
- },
19
- },
20
- required: ['profileId', 'integrationId', 'clientRequestId', 'prompt'],
21
- };
22
- const AiAssistantContext = {
23
- anyOf: [
24
- {
25
- type: 'object',
26
- properties: {
27
- type: { const: 'text' },
28
- data: { type: 'string' },
29
- },
30
- required: ['type', 'data'],
31
- },
32
- {
33
- type: 'object',
34
- properties: {
35
- type: { const: 'url' },
36
- data: { type: 'string' },
37
- },
38
- required: ['type', 'data'],
39
- },
40
- ],
41
- };
42
- exports.AiAssistantMutateRequestSchema = {
43
- type: 'object',
44
- properties: {
45
- profileId: {
46
- type: 'string',
47
- },
48
- integrationId: {
49
- type: 'string',
50
- },
51
- type: {
52
- type: 'string',
53
- enum: ['insert', 'update', 'delete'],
54
- },
55
- resource: {
56
- type: 'string',
57
- enum: ['instruction', 'context', 'profile'],
58
- },
59
- },
60
- required: ['profileId', 'integrationId', 'type', 'resource'],
61
- oneOf: [
62
- {
63
- properties: {
64
- type: { const: 'insert' },
65
- resource: { const: 'profile' },
66
- payload: {
67
- type: 'object',
68
- properties: {
69
- modelName: {
70
- type: 'string',
71
- enum: ['gpt-3.5-turbo', 'gpt-4', 'claude-2', 'gpt-4-1106-preview'],
72
- },
73
- strictContext: {
74
- type: 'boolean',
75
- },
76
- },
77
- required: ['modelName', 'strictContext'],
78
- },
79
- },
80
- },
81
- {
82
- properties: {
83
- type: { const: 'insert' },
84
- resource: { const: 'instruction' },
85
- payload: {
86
- type: 'object',
87
- properties: {
88
- id: {
89
- type: 'string',
90
- },
91
- instruction: {
92
- type: 'string',
93
- },
94
- },
95
- required: ['id', 'instruction'],
96
- },
97
- },
98
- },
99
- {
100
- type: 'object',
101
- properties: {
102
- type: { const: 'insert' },
103
- resource: { const: 'context' },
104
- payload: {
105
- type: 'object',
106
- properties: {
107
- id: { type: 'string' },
108
- title: { type: 'string' },
109
- context: AiAssistantContext,
110
- },
111
- required: ['id', 'title', 'context'],
112
- },
113
- },
114
- required: ['type', 'resource', 'payload'],
115
- },
116
- {
117
- properties: {
118
- type: { const: 'update' },
119
- resource: { const: 'profile' },
120
- payload: {
121
- type: 'object',
122
- properties: {
123
- modelName: {
124
- type: 'string',
125
- enum: ['gpt-3.5-turbo', 'gpt-4', 'claude-2', 'gpt-4-1106-preview'],
126
- },
127
- strictContext: {
128
- type: 'boolean',
129
- },
130
- },
131
- },
132
- },
133
- },
134
- {
135
- properties: {
136
- type: { const: 'update' },
137
- resource: { const: 'instruction' },
138
- payload: {
139
- type: 'object',
140
- properties: {
141
- id: {
142
- type: 'string',
143
- },
144
- instruction: {
145
- type: 'string',
146
- },
147
- },
148
- required: ['id', 'instruction'],
149
- },
150
- },
151
- },
152
- {
153
- properties: {
154
- type: { const: 'update' },
155
- resource: { const: 'context' },
156
- payload: {
157
- type: 'object',
158
- properties: {
159
- id: {
160
- type: 'string',
161
- },
162
- title: {
163
- type: 'string',
164
- },
165
- context: AiAssistantContext,
166
- },
167
- },
168
- },
169
- },
170
- {
171
- properties: {
172
- type: { const: 'delete' },
173
- resource: { const: 'instruction' },
174
- payload: {
175
- type: 'object',
176
- properties: {
177
- id: {
178
- type: 'string',
179
- },
180
- },
181
- required: ['id'],
182
- },
183
- },
184
- },
185
- {
186
- properties: {
187
- type: { const: 'delete' },
188
- resource: { const: 'context' },
189
- payload: {
190
- type: 'object',
191
- properties: {
192
- id: {
193
- type: 'string',
194
- },
195
- },
196
- required: ['id'],
197
- },
198
- },
199
- },
200
- {
201
- properties: {
202
- type: { const: 'delete' },
203
- resource: { const: 'profile' },
204
- payload: {
205
- type: 'object',
206
- },
207
- },
208
- },
209
- ],
210
- };
211
- //# sourceMappingURL=ai-assistant.schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-assistant.schemas.js","sourceRoot":"","sources":["../../../../common/src/ai-assistant.schemas.ts"],"names":[],"mappings":";;;AACa,QAAA,4BAA4B,GAAG;IAC1C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;SACf;QACD,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;KACF;IACD,QAAQ,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,CAAC;CACtE,CAAC;AAEF,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACvB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACzB;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBACtB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACzB;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;SAC3B;KACF;CACF,CAAC;AAGW,QAAA,8BAA8B,GAAG;IAC5C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EA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,EAAE,QAAQ;yBACf;wBACD,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;wBACD,OAAO,EAAE,kBAAkB;qBAC5B;iBACF;aACF;SACF;QACD;YACE,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;gBACzB,QAAQ,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE;gBAClC,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,EAAE,EAAE;4BACF,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,QAAQ,EAAE,CAAC,IAAI,CAAC;iBACjB;aACF;SACF;QACD;YACE,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;gBACzB,QAAQ,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;gBAC9B,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,EAAE,EAAE;4BACF,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,QAAQ,EAAE,CAAC,IAAI,CAAC;iBACjB;aACF;SACF;QACD;YACE,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;gBACzB,QAAQ,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;gBAC9B,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC"}
@@ -1,31 +0,0 @@
1
- import { AiModelName } from '../ai-assistant.types';
2
- import { IntegrationId } from '../communication.types';
3
- import { BaseIntegrationConfig, IntegrationType } from './index';
4
- export interface AiAssistantIntegrationConfig extends BaseIntegrationConfig {
5
- type: IntegrationType.ai_assistant;
6
- configuration: AiAssistantConfiguration;
7
- }
8
- export type AiAssistantConfiguration = {
9
- apiKey?: string;
10
- };
11
- export type AiAssistantProfileMetadata = {
12
- modelName: AiModelName;
13
- isPublic: boolean;
14
- strictContext: boolean;
15
- instructions: Record<string, string>;
16
- };
17
- export type AiAssistantContextMetadata = {
18
- title: string;
19
- text: string;
20
- preview: boolean;
21
- sizeBytes?: number;
22
- };
23
- export interface AiAssistantProfile extends AiAssistantProfileMetadata {
24
- contexts: Record<string, AiAssistantContextMetadata>;
25
- }
26
- export interface AiAssistantProfiles {
27
- profiles: Record<string, AiAssistantProfile>;
28
- }
29
- export interface GetAiAssistantProfilesRequest {
30
- integrationId: IntegrationId;
31
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai_assistant.types.js","sourceRoot":"","sources":["../../../../../common/src/integrations/ai_assistant.types.ts"],"names":[],"mappings":""}