@squidcloud/local-backend 1.0.40 → 1.0.42

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 (182) hide show
  1. package/dist/common/src/ai-assistant.context.d.ts +13 -13
  2. package/dist/common/src/ai-assistant.context.js +19 -19
  3. package/dist/common/src/ai-assistant.schemas.d.ts +207 -207
  4. package/dist/common/src/ai-assistant.schemas.js +196 -196
  5. package/dist/common/src/ai-assistant.types.d.ts +80 -80
  6. package/dist/common/src/ai-assistant.types.js +11 -11
  7. package/dist/common/src/api-call.context.d.ts +13 -13
  8. package/dist/common/src/api-call.context.js +16 -16
  9. package/dist/common/src/api.types.d.ts +23 -23
  10. package/dist/common/src/api.types.js +2 -2
  11. package/dist/common/src/application.schemas.d.ts +1168 -1168
  12. package/dist/common/src/application.schemas.js +741 -741
  13. package/dist/common/src/application.types.d.ts +228 -228
  14. package/dist/common/src/application.types.js +89 -89
  15. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  16. package/dist/common/src/backend-function.schemas.js +12 -12
  17. package/dist/common/src/backend-function.types.d.ts +6 -6
  18. package/dist/common/src/backend-function.types.js +2 -2
  19. package/dist/common/src/backend-run.types.d.ts +54 -54
  20. package/dist/common/src/backend-run.types.js +73 -73
  21. package/dist/common/src/bundle-api.types.d.ts +71 -71
  22. package/dist/common/src/bundle-api.types.js +2 -2
  23. package/dist/common/src/bundle-data.types.d.ts +59 -59
  24. package/dist/common/src/bundle-data.types.js +2 -2
  25. package/dist/common/src/communication.types.d.ts +18 -18
  26. package/dist/common/src/communication.types.js +40 -40
  27. package/dist/common/src/context.types.d.ts +24 -24
  28. package/dist/common/src/context.types.js +2 -2
  29. package/dist/common/src/distributed-lock.context.d.ts +5 -5
  30. package/dist/common/src/distributed-lock.context.js +10 -10
  31. package/dist/common/src/document.types.d.ts +32 -32
  32. package/dist/common/src/document.types.js +50 -50
  33. package/dist/common/src/graphql.context.d.ts +14 -14
  34. package/dist/common/src/graphql.context.js +12 -12
  35. package/dist/common/src/graphql.types.d.ts +11 -11
  36. package/dist/common/src/graphql.types.js +34 -34
  37. package/dist/common/src/heartbeat.types.d.ts +4 -4
  38. package/dist/common/src/heartbeat.types.js +16 -16
  39. package/dist/common/src/http-status.enum.d.ts +50 -50
  40. package/dist/common/src/http-status.enum.js +54 -54
  41. package/dist/common/src/index.d.ts +54 -54
  42. package/dist/common/src/index.js +70 -70
  43. package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -30
  44. package/dist/common/src/integrations/ai_assistant.types.js +2 -2
  45. package/dist/common/src/integrations/api.types.d.ts +80 -80
  46. package/dist/common/src/integrations/api.types.js +2 -2
  47. package/dist/common/src/integrations/auth.types.d.ts +39 -39
  48. package/dist/common/src/integrations/auth.types.js +2 -2
  49. package/dist/common/src/integrations/database.types.d.ts +236 -236
  50. package/dist/common/src/integrations/database.types.js +2 -2
  51. package/dist/common/src/integrations/index.d.ts +101 -101
  52. package/dist/common/src/integrations/index.js +105 -105
  53. package/dist/common/src/integrations/observability.types.d.ts +23 -23
  54. package/dist/common/src/integrations/observability.types.js +23 -23
  55. package/dist/common/src/logger.types.d.ts +21 -21
  56. package/dist/common/src/logger.types.js +11 -11
  57. package/dist/common/src/metrics.types.d.ts +73 -73
  58. package/dist/common/src/metrics.types.js +11 -11
  59. package/dist/common/src/mutation.context.d.ts +13 -13
  60. package/dist/common/src/mutation.context.js +26 -26
  61. package/dist/common/src/mutation.schemas.d.ts +5 -5
  62. package/dist/common/src/mutation.schemas.js +114 -114
  63. package/dist/common/src/mutation.types.d.ts +63 -63
  64. package/dist/common/src/mutation.types.js +142 -142
  65. package/dist/common/src/named-query.context.d.ts +4 -4
  66. package/dist/common/src/named-query.context.js +9 -9
  67. package/dist/common/src/named-query.schemas.d.ts +3 -3
  68. package/dist/common/src/named-query.schemas.js +13 -13
  69. package/dist/common/src/named-query.types.d.ts +8 -8
  70. package/dist/common/src/named-query.types.js +2 -2
  71. package/dist/common/src/query/{simple-query-builder.d.ts → base-query-builder.d.ts} +25 -29
  72. package/dist/common/src/query/base-query-builder.js +37 -0
  73. package/dist/common/src/query/base-query-builder.js.map +1 -0
  74. package/dist/common/src/query/index.d.ts +2 -2
  75. package/dist/common/src/query/index.js +18 -18
  76. package/dist/common/src/query/index.js.map +1 -1
  77. package/dist/common/src/query/query-context.d.ts +24 -24
  78. package/dist/common/src/query/query-context.js +158 -158
  79. package/dist/common/src/query.schemas.d.ts +6 -6
  80. package/dist/common/src/query.schemas.js +96 -96
  81. package/dist/common/src/query.types.d.ts +92 -92
  82. package/dist/common/src/query.types.js +134 -134
  83. package/dist/common/src/regions.d.ts +21 -21
  84. package/dist/common/src/regions.js +46 -46
  85. package/dist/common/src/schema/schema.types.d.ts +30 -30
  86. package/dist/common/src/schema/schema.types.js +172 -172
  87. package/dist/common/src/secret.schemas.d.ts +6 -6
  88. package/dist/common/src/secret.schemas.js +32 -32
  89. package/dist/common/src/secret.types.d.ts +49 -49
  90. package/dist/common/src/secret.types.js +5 -5
  91. package/dist/common/src/security.types.d.ts +3 -3
  92. package/dist/common/src/security.types.js +2 -2
  93. package/dist/common/src/socket.schemas.d.ts +3 -3
  94. package/dist/common/src/socket.schemas.js +58 -58
  95. package/dist/common/src/socket.types.d.ts +108 -108
  96. package/dist/common/src/socket.types.js +2 -2
  97. package/dist/common/src/time-units.d.ts +5 -5
  98. package/dist/common/src/time-units.js +8 -8
  99. package/dist/common/src/trigger.types.d.ts +15 -15
  100. package/dist/common/src/trigger.types.js +2 -2
  101. package/dist/common/src/types.d.ts +15 -15
  102. package/dist/common/src/types.js +2 -2
  103. package/dist/common/src/utils/array.d.ts +8 -8
  104. package/dist/common/src/utils/array.js +51 -51
  105. package/dist/common/src/utils/assert.d.ts +8 -8
  106. package/dist/common/src/utils/assert.js +49 -49
  107. package/dist/common/src/utils/error.d.ts +4 -4
  108. package/dist/common/src/utils/error.js +10 -10
  109. package/dist/common/src/utils/http.d.ts +2 -2
  110. package/dist/common/src/utils/http.js +38 -38
  111. package/dist/common/src/utils/id.d.ts +2 -2
  112. package/dist/common/src/utils/id.js +21 -21
  113. package/dist/common/src/utils/lock.manager.d.ts +9 -9
  114. package/dist/common/src/utils/lock.manager.js +39 -39
  115. package/dist/common/src/utils/nullish.d.ts +1 -1
  116. package/dist/common/src/utils/nullish.js +7 -7
  117. package/dist/common/src/utils/object.d.ts +6 -6
  118. package/dist/common/src/utils/object.js +89 -89
  119. package/dist/common/src/utils/serialization.d.ts +6 -6
  120. package/dist/common/src/utils/serialization.js +77 -77
  121. package/dist/common/src/utils/serialization.js.map +1 -1
  122. package/dist/common/src/utils/transforms.d.ts +18 -18
  123. package/dist/common/src/utils/transforms.js +92 -92
  124. package/dist/common/src/utils/url.d.ts +1 -1
  125. package/dist/common/src/utils/url.js +15 -15
  126. package/dist/common/src/utils/validation.d.ts +17 -17
  127. package/dist/common/src/utils/validation.js +209 -209
  128. package/dist/common/src/webhook-response.d.ts +7 -7
  129. package/dist/common/src/webhook-response.js +7 -7
  130. package/dist/internal-common/src/async-queue.d.ts +4 -4
  131. package/dist/internal-common/src/async-queue.js +17 -17
  132. package/dist/internal-common/src/code-executor.types.d.ts +13 -13
  133. package/dist/internal-common/src/code-executor.types.js +2 -2
  134. package/dist/internal-common/src/environment/environment.types.d.ts +74 -74
  135. package/dist/internal-common/src/environment/environment.types.js +2 -2
  136. package/dist/internal-common/src/environment/index.d.ts +6 -6
  137. package/dist/internal-common/src/environment/index.js +27 -25
  138. package/dist/internal-common/src/environment/index.js.map +1 -1
  139. package/dist/internal-common/src/environment/local.environment.d.ts +2 -2
  140. package/dist/internal-common/src/environment/local.environment.js +62 -62
  141. package/dist/internal-common/src/environment/local.environment.js.map +1 -1
  142. package/dist/internal-common/src/filters/custom-exception.filter.d.ts +6 -0
  143. package/dist/internal-common/src/filters/custom-exception.filter.js +45 -0
  144. package/dist/internal-common/src/filters/custom-exception.filter.js.map +1 -0
  145. package/dist/internal-common/src/index.d.ts +14 -11
  146. package/dist/internal-common/src/index.js +32 -29
  147. package/dist/internal-common/src/index.js.map +1 -1
  148. package/dist/internal-common/src/interceptors/body.interceptor.d.ts +5 -0
  149. package/dist/internal-common/src/interceptors/body.interceptor.js +25 -0
  150. package/dist/internal-common/src/interceptors/body.interceptor.js.map +1 -0
  151. package/dist/internal-common/src/kafka/kafka.manager.d.ts +22 -22
  152. package/dist/internal-common/src/kafka/kafka.manager.js +128 -128
  153. package/dist/internal-common/src/kafka/kafka.types.d.ts +17 -17
  154. package/dist/internal-common/src/kafka/kafka.types.js +2 -2
  155. package/dist/internal-common/src/kafka-observability-publisher.d.ts +11 -11
  156. package/dist/internal-common/src/kafka-observability-publisher.js +20 -20
  157. package/dist/internal-common/src/local-dev.types.d.ts +31 -31
  158. package/dist/internal-common/src/local-dev.types.js +2 -2
  159. package/dist/internal-common/src/observability-publisher.d.ts +9 -9
  160. package/dist/internal-common/src/observability-publisher.js +58 -58
  161. package/dist/internal-common/src/observability.types.d.ts +17 -17
  162. package/dist/internal-common/src/observability.types.js +2 -2
  163. package/dist/internal-common/src/shutdown.manager.d.ts +20 -20
  164. package/dist/internal-common/src/shutdown.manager.js +76 -76
  165. package/dist/internal-common/src/utils.d.ts +5 -5
  166. package/dist/internal-common/src/utils.js +29 -29
  167. package/dist/local-backend/src/index.d.ts +4 -4
  168. package/dist/local-backend/src/index.js +20 -20
  169. package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
  170. package/dist/local-backend/src/local-backend-socket.service.js +108 -108
  171. package/dist/local-backend/src/local-backend.app.d.ts +2 -2
  172. package/dist/local-backend/src/local-backend.app.js +19 -19
  173. package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
  174. package/dist/local-backend/src/local-backend.controller.js +49 -49
  175. package/dist/local-backend/src/local-backend.module.d.ts +8 -8
  176. package/dist/local-backend/src/local-backend.module.js +53 -53
  177. package/dist/local-backend/src/local-backend.service.d.ts +15 -15
  178. package/dist/local-backend/src/local-backend.service.js +165 -165
  179. package/dist/tsconfig.build.tsbuildinfo +1 -1
  180. package/package.json +1 -1
  181. package/dist/common/src/query/simple-query-builder.js +0 -115
  182. package/dist/common/src/query/simple-query-builder.js.map +0 -1
@@ -1,13 +1,13 @@
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
+ 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,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AiAssistantMutationContext = exports.AiAssistantChatContext = void 0;
4
- class AiAssistantChatContext {
5
- constructor(request) {
6
- this.profileId = request.profileId;
7
- this.prompt = request.prompt;
8
- }
9
- }
10
- exports.AiAssistantChatContext = AiAssistantChatContext;
11
- class AiAssistantMutationContext {
12
- constructor(request) {
13
- this.profileId = request.profileId;
14
- this.type = request.type;
15
- this.resource = request.resource;
16
- this.payload = request.payload;
17
- }
18
- }
19
- exports.AiAssistantMutationContext = AiAssistantMutationContext;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiAssistantMutationContext = exports.AiAssistantChatContext = void 0;
4
+ class AiAssistantChatContext {
5
+ constructor(request) {
6
+ this.profileId = request.profileId;
7
+ this.prompt = request.prompt;
8
+ }
9
+ }
10
+ exports.AiAssistantChatContext = AiAssistantChatContext;
11
+ class AiAssistantMutationContext {
12
+ constructor(request) {
13
+ this.profileId = request.profileId;
14
+ this.type = request.type;
15
+ this.resource = request.resource;
16
+ this.payload = request.payload;
17
+ }
18
+ }
19
+ exports.AiAssistantMutationContext = AiAssistantMutationContext;
20
20
  //# sourceMappingURL=ai-assistant.context.js.map
@@ -1,207 +1,207 @@
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
- } | {
65
- properties: {
66
- type: {
67
- const: string;
68
- };
69
- resource: {
70
- const: string;
71
- };
72
- payload: {
73
- type: string;
74
- properties: {
75
- id: {
76
- type: string;
77
- };
78
- instruction: {
79
- type: string;
80
- };
81
- modelName?: undefined;
82
- strictContext?: undefined;
83
- title?: undefined;
84
- context?: undefined;
85
- };
86
- required: string[];
87
- };
88
- };
89
- } | {
90
- properties: {
91
- type: {
92
- const: string;
93
- };
94
- resource: {
95
- const: string;
96
- };
97
- payload: {
98
- type: string;
99
- properties: {
100
- id: {
101
- type: string;
102
- };
103
- title: {
104
- type: string;
105
- };
106
- context: {
107
- type: string;
108
- };
109
- modelName?: undefined;
110
- strictContext?: undefined;
111
- instruction?: undefined;
112
- };
113
- required: string[];
114
- };
115
- };
116
- } | {
117
- properties: {
118
- type: {
119
- const: string;
120
- };
121
- resource: {
122
- const: string;
123
- };
124
- payload: {
125
- type: string;
126
- properties: {
127
- modelName: {
128
- type: string;
129
- enum: string[];
130
- };
131
- strictContext: {
132
- type: string;
133
- };
134
- id?: undefined;
135
- instruction?: undefined;
136
- title?: undefined;
137
- context?: undefined;
138
- };
139
- required?: undefined;
140
- };
141
- };
142
- } | {
143
- properties: {
144
- type: {
145
- const: string;
146
- };
147
- resource: {
148
- const: string;
149
- };
150
- payload: {
151
- type: string;
152
- properties: {
153
- id: {
154
- type: string;
155
- };
156
- title: {
157
- type: string;
158
- };
159
- context: {
160
- type: string;
161
- };
162
- modelName?: undefined;
163
- strictContext?: undefined;
164
- instruction?: undefined;
165
- };
166
- required?: undefined;
167
- };
168
- };
169
- } | {
170
- properties: {
171
- type: {
172
- const: string;
173
- };
174
- resource: {
175
- const: string;
176
- };
177
- payload: {
178
- type: string;
179
- properties: {
180
- id: {
181
- type: string;
182
- };
183
- modelName?: undefined;
184
- strictContext?: undefined;
185
- instruction?: undefined;
186
- title?: undefined;
187
- context?: undefined;
188
- };
189
- required: string[];
190
- };
191
- };
192
- } | {
193
- properties: {
194
- type: {
195
- const: string;
196
- };
197
- resource: {
198
- const: string;
199
- };
200
- payload: {
201
- type: string;
202
- properties?: undefined;
203
- required?: undefined;
204
- };
205
- };
206
- })[];
207
- };
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
+ } | {
65
+ properties: {
66
+ type: {
67
+ const: string;
68
+ };
69
+ resource: {
70
+ const: string;
71
+ };
72
+ payload: {
73
+ type: string;
74
+ properties: {
75
+ id: {
76
+ type: string;
77
+ };
78
+ instruction: {
79
+ type: string;
80
+ };
81
+ modelName?: undefined;
82
+ strictContext?: undefined;
83
+ title?: undefined;
84
+ context?: undefined;
85
+ };
86
+ required: string[];
87
+ };
88
+ };
89
+ } | {
90
+ properties: {
91
+ type: {
92
+ const: string;
93
+ };
94
+ resource: {
95
+ const: string;
96
+ };
97
+ payload: {
98
+ type: string;
99
+ properties: {
100
+ id: {
101
+ type: string;
102
+ };
103
+ title: {
104
+ type: string;
105
+ };
106
+ context: {
107
+ type: string;
108
+ };
109
+ modelName?: undefined;
110
+ strictContext?: undefined;
111
+ instruction?: undefined;
112
+ };
113
+ required: string[];
114
+ };
115
+ };
116
+ } | {
117
+ properties: {
118
+ type: {
119
+ const: string;
120
+ };
121
+ resource: {
122
+ const: string;
123
+ };
124
+ payload: {
125
+ type: string;
126
+ properties: {
127
+ modelName: {
128
+ type: string;
129
+ enum: string[];
130
+ };
131
+ strictContext: {
132
+ type: string;
133
+ };
134
+ id?: undefined;
135
+ instruction?: undefined;
136
+ title?: undefined;
137
+ context?: undefined;
138
+ };
139
+ required?: undefined;
140
+ };
141
+ };
142
+ } | {
143
+ properties: {
144
+ type: {
145
+ const: string;
146
+ };
147
+ resource: {
148
+ const: string;
149
+ };
150
+ payload: {
151
+ type: string;
152
+ properties: {
153
+ id: {
154
+ type: string;
155
+ };
156
+ title: {
157
+ type: string;
158
+ };
159
+ context: {
160
+ type: string;
161
+ };
162
+ modelName?: undefined;
163
+ strictContext?: undefined;
164
+ instruction?: undefined;
165
+ };
166
+ required?: undefined;
167
+ };
168
+ };
169
+ } | {
170
+ properties: {
171
+ type: {
172
+ const: string;
173
+ };
174
+ resource: {
175
+ const: string;
176
+ };
177
+ payload: {
178
+ type: string;
179
+ properties: {
180
+ id: {
181
+ type: string;
182
+ };
183
+ modelName?: undefined;
184
+ strictContext?: undefined;
185
+ instruction?: undefined;
186
+ title?: undefined;
187
+ context?: undefined;
188
+ };
189
+ required: string[];
190
+ };
191
+ };
192
+ } | {
193
+ properties: {
194
+ type: {
195
+ const: string;
196
+ };
197
+ resource: {
198
+ const: string;
199
+ };
200
+ payload: {
201
+ type: string;
202
+ properties?: undefined;
203
+ required?: undefined;
204
+ };
205
+ };
206
+ })[];
207
+ };