@crowdin/app-project-module 1.16.0 → 2.0.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.
Files changed (99) hide show
  1. package/out/index.js +8 -15
  2. package/out/middlewares/auto-credentials-masker.js +5 -2
  3. package/out/middlewares/crowdin-client.d.ts +1 -1
  4. package/out/middlewares/crowdin-client.js +1 -1
  5. package/out/middlewares/export.d.ts +2 -2
  6. package/out/middlewares/export.js +4 -35
  7. package/out/middlewares/json-response.d.ts +1 -1
  8. package/out/middlewares/json-response.js +1 -1
  9. package/out/modules/ai-prompt-provider/index.js +6 -6
  10. package/out/modules/ai-provider/index.js +7 -7
  11. package/out/modules/ai-provider/types.d.ts +10 -0
  12. package/out/modules/ai-provider/types.js +12 -0
  13. package/out/modules/ai-provider/util/index.d.ts +0 -10
  14. package/out/modules/ai-provider/util/index.js +2 -13
  15. package/out/modules/ai-request-processors/index.js +4 -4
  16. package/out/modules/api/api.js +18 -18
  17. package/out/modules/auth-guard/index.js +4 -5
  18. package/out/modules/automation-action/index.js +4 -6
  19. package/out/modules/context-menu/index.js +4 -13
  20. package/out/modules/custom-mt/index.js +4 -4
  21. package/out/modules/custom-spell-check/index.js +11 -11
  22. package/out/modules/editor-right-panel/index.js +1 -1
  23. package/out/modules/external-qa-check/index.js +7 -7
  24. package/out/modules/file-processing/index.js +14 -14
  25. package/out/modules/integration/index.js +26 -26
  26. package/out/modules/integration/types.d.ts +4 -4
  27. package/out/modules/integration/util/files.js +1 -1
  28. package/out/modules/integration/util/types.d.ts +1 -1
  29. package/out/modules/manifest.js +70 -281
  30. package/out/modules/modal/index.js +4 -13
  31. package/out/modules/organization-menu/index.js +1 -1
  32. package/out/modules/organization-settings-menu/index.js +1 -1
  33. package/out/modules/profile-resources-menu/index.js +1 -1
  34. package/out/modules/profile-settings-menu/index.js +1 -1
  35. package/out/modules/project-menu/index.js +1 -1
  36. package/out/modules/project-menu-crowdsource/index.js +1 -1
  37. package/out/modules/project-reports/index.js +1 -1
  38. package/out/modules/project-tools/index.js +1 -1
  39. package/out/modules/webhooks/index.js +3 -6
  40. package/out/modules/workflow-step-type/index.js +6 -6
  41. package/out/storage/drizzle/d1/index.d.ts +7 -0
  42. package/out/storage/drizzle/d1/index.js +48 -0
  43. package/out/storage/drizzle/d1/migrations/init.d.ts +2 -0
  44. package/out/storage/drizzle/d1/migrations/init.js +122 -0
  45. package/out/storage/drizzle/d1/types.d.ts +13 -0
  46. package/out/storage/drizzle/d1/types.js +38 -0
  47. package/out/storage/{sqlite.d.ts → drizzle/index.d.ts} +37 -58
  48. package/out/storage/drizzle/index.js +939 -0
  49. package/out/storage/drizzle/postgresql/config.d.ts +5 -0
  50. package/out/storage/drizzle/postgresql/config.js +11 -0
  51. package/out/storage/drizzle/postgresql/index.d.ts +14 -0
  52. package/out/storage/drizzle/postgresql/index.js +144 -0
  53. package/out/storage/drizzle/postgresql/migrations/0000_init.sql +113 -0
  54. package/out/storage/drizzle/postgresql/migrations/0001_init_indexes.sql +28 -0
  55. package/out/storage/drizzle/postgresql/migrations/meta/0000_snapshot.json +646 -0
  56. package/out/storage/drizzle/postgresql/migrations/meta/0001_snapshot.json +646 -0
  57. package/out/storage/drizzle/postgresql/migrations/meta/_journal.json +20 -0
  58. package/out/storage/drizzle/postgresql/schema.d.ts +1410 -0
  59. package/out/storage/drizzle/postgresql/schema.js +106 -0
  60. package/out/storage/drizzle/sqlite/config.d.ts +5 -0
  61. package/out/storage/drizzle/sqlite/config.js +11 -0
  62. package/out/storage/drizzle/sqlite/index.d.ts +8 -0
  63. package/out/storage/drizzle/sqlite/index.js +63 -0
  64. package/out/storage/drizzle/sqlite/migrations/0000_init.sql +113 -0
  65. package/out/storage/drizzle/sqlite/migrations/meta/0000_snapshot.json +687 -0
  66. package/out/storage/drizzle/sqlite/migrations/meta/_journal.json +13 -0
  67. package/out/storage/drizzle/sqlite/schema.d.ts +1544 -0
  68. package/out/storage/drizzle/sqlite/schema.js +106 -0
  69. package/out/storage/index.d.ts +2 -88
  70. package/out/storage/index.js +12 -128
  71. package/out/storage/internal/backup.d.ts +3 -0
  72. package/out/storage/internal/backup.js +94 -0
  73. package/out/storage/types.d.ts +66 -0
  74. package/out/types.d.ts +43 -47
  75. package/out/util/credentials-masker.js +2 -2
  76. package/out/util/export.d.ts +1 -0
  77. package/out/util/export.js +2 -1
  78. package/out/util/index.d.ts +2 -1
  79. package/out/util/index.js +12 -9
  80. package/out/util/normalize-module.d.ts +0 -1
  81. package/out/util/normalize-module.js +0 -4
  82. package/package.json +18 -22
  83. package/out/modules/ai-tools/handlers/tool-calls.d.ts +0 -4
  84. package/out/modules/ai-tools/handlers/tool-calls.js +0 -52
  85. package/out/modules/ai-tools/index.d.ts +0 -10
  86. package/out/modules/ai-tools/index.js +0 -46
  87. package/out/modules/ai-tools/types.d.ts +0 -63
  88. package/out/modules/ai-tools/types.js +0 -2
  89. package/out/modules/ai-tools/util/index.d.ts +0 -5
  90. package/out/modules/ai-tools/util/index.js +0 -24
  91. package/out/storage/d1.d.ts +0 -107
  92. package/out/storage/d1.js +0 -837
  93. package/out/storage/export.d.ts +0 -1
  94. package/out/storage/export.js +0 -2
  95. package/out/storage/mysql.d.ts +0 -109
  96. package/out/storage/mysql.js +0 -984
  97. package/out/storage/postgre.d.ts +0 -124
  98. package/out/storage/postgre.js +0 -1027
  99. package/out/storage/sqlite.js +0 -786
@@ -0,0 +1,646 @@
1
+ {
2
+ "id": "ebe9434a-3b31-4a0b-b07c-c3d72d3d67c0",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.app_metadata": {
8
+ "name": "app_metadata",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "data": {
18
+ "name": "data",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false
22
+ },
23
+ "crowdin_id": {
24
+ "name": "crowdin_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ }
29
+ },
30
+ "indexes": {},
31
+ "foreignKeys": {},
32
+ "compositePrimaryKeys": {},
33
+ "uniqueConstraints": {},
34
+ "policies": {},
35
+ "checkConstraints": {},
36
+ "isRLSEnabled": false
37
+ },
38
+ "public.crowdin_credentials": {
39
+ "name": "crowdin_credentials",
40
+ "schema": "",
41
+ "columns": {
42
+ "id": {
43
+ "name": "id",
44
+ "type": "text",
45
+ "primaryKey": true,
46
+ "notNull": true
47
+ },
48
+ "app_secret": {
49
+ "name": "app_secret",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "domain": {
55
+ "name": "domain",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": false
59
+ },
60
+ "user_id": {
61
+ "name": "user_id",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "agent_id": {
67
+ "name": "agent_id",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false
71
+ },
72
+ "organization_id": {
73
+ "name": "organization_id",
74
+ "type": "text",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "base_url": {
79
+ "name": "base_url",
80
+ "type": "text",
81
+ "primaryKey": false,
82
+ "notNull": false
83
+ },
84
+ "access_token": {
85
+ "name": "access_token",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ },
90
+ "refresh_token": {
91
+ "name": "refresh_token",
92
+ "type": "text",
93
+ "primaryKey": false,
94
+ "notNull": true
95
+ },
96
+ "expire": {
97
+ "name": "expire",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": true
101
+ },
102
+ "type": {
103
+ "name": "type",
104
+ "type": "text",
105
+ "primaryKey": false,
106
+ "notNull": true
107
+ }
108
+ },
109
+ "indexes": {},
110
+ "foreignKeys": {},
111
+ "compositePrimaryKeys": {},
112
+ "uniqueConstraints": {},
113
+ "policies": {},
114
+ "checkConstraints": {},
115
+ "isRLSEnabled": false
116
+ },
117
+ "public.files_snapshot": {
118
+ "name": "files_snapshot",
119
+ "schema": "",
120
+ "columns": {
121
+ "id": {
122
+ "name": "id",
123
+ "type": "serial",
124
+ "primaryKey": true,
125
+ "notNull": true
126
+ },
127
+ "integration_id": {
128
+ "name": "integration_id",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": true
132
+ },
133
+ "crowdin_id": {
134
+ "name": "crowdin_id",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": true
138
+ },
139
+ "files": {
140
+ "name": "files",
141
+ "type": "text",
142
+ "primaryKey": false,
143
+ "notNull": false
144
+ },
145
+ "provider": {
146
+ "name": "provider",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ }
151
+ },
152
+ "indexes": {},
153
+ "foreignKeys": {},
154
+ "compositePrimaryKeys": {},
155
+ "uniqueConstraints": {},
156
+ "policies": {},
157
+ "checkConstraints": {},
158
+ "isRLSEnabled": false
159
+ },
160
+ "public.integration_credentials": {
161
+ "name": "integration_credentials",
162
+ "schema": "",
163
+ "columns": {
164
+ "id": {
165
+ "name": "id",
166
+ "type": "text",
167
+ "primaryKey": true,
168
+ "notNull": true
169
+ },
170
+ "credentials": {
171
+ "name": "credentials",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true
175
+ },
176
+ "crowdin_id": {
177
+ "name": "crowdin_id",
178
+ "type": "text",
179
+ "primaryKey": false,
180
+ "notNull": true
181
+ },
182
+ "managers": {
183
+ "name": "managers",
184
+ "type": "text",
185
+ "primaryKey": false,
186
+ "notNull": false
187
+ }
188
+ },
189
+ "indexes": {},
190
+ "foreignKeys": {},
191
+ "compositePrimaryKeys": {},
192
+ "uniqueConstraints": {},
193
+ "policies": {},
194
+ "checkConstraints": {},
195
+ "isRLSEnabled": false
196
+ },
197
+ "public.integration_settings": {
198
+ "name": "integration_settings",
199
+ "schema": "",
200
+ "columns": {
201
+ "id": {
202
+ "name": "id",
203
+ "type": "serial",
204
+ "primaryKey": true,
205
+ "notNull": true
206
+ },
207
+ "integration_id": {
208
+ "name": "integration_id",
209
+ "type": "text",
210
+ "primaryKey": false,
211
+ "notNull": true
212
+ },
213
+ "crowdin_id": {
214
+ "name": "crowdin_id",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": true
218
+ },
219
+ "config": {
220
+ "name": "config",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": false
224
+ }
225
+ },
226
+ "indexes": {},
227
+ "foreignKeys": {},
228
+ "compositePrimaryKeys": {},
229
+ "uniqueConstraints": {},
230
+ "policies": {},
231
+ "checkConstraints": {},
232
+ "isRLSEnabled": false
233
+ },
234
+ "public.job": {
235
+ "name": "job",
236
+ "schema": "",
237
+ "columns": {
238
+ "id": {
239
+ "name": "id",
240
+ "type": "text",
241
+ "primaryKey": true,
242
+ "notNull": true
243
+ },
244
+ "integration_id": {
245
+ "name": "integration_id",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ },
250
+ "crowdin_id": {
251
+ "name": "crowdin_id",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true
255
+ },
256
+ "type": {
257
+ "name": "type",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true
261
+ },
262
+ "title": {
263
+ "name": "title",
264
+ "type": "text",
265
+ "primaryKey": false,
266
+ "notNull": false
267
+ },
268
+ "progress": {
269
+ "name": "progress",
270
+ "type": "integer",
271
+ "primaryKey": false,
272
+ "notNull": true,
273
+ "default": 0
274
+ },
275
+ "status": {
276
+ "name": "status",
277
+ "type": "text",
278
+ "primaryKey": false,
279
+ "notNull": true,
280
+ "default": "'CREATED'"
281
+ },
282
+ "payload": {
283
+ "name": "payload",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": false
287
+ },
288
+ "info": {
289
+ "name": "info",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": false
293
+ },
294
+ "data": {
295
+ "name": "data",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false
299
+ },
300
+ "attempt": {
301
+ "name": "attempt",
302
+ "type": "integer",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "default": 0
306
+ },
307
+ "errors": {
308
+ "name": "errors",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": false
312
+ },
313
+ "processed_entities": {
314
+ "name": "processed_entities",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": false
318
+ },
319
+ "initiated_by": {
320
+ "name": "initiated_by",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": false
324
+ },
325
+ "created_at": {
326
+ "name": "created_at",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": true
330
+ },
331
+ "updated_at": {
332
+ "name": "updated_at",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": false
336
+ },
337
+ "finished_at": {
338
+ "name": "finished_at",
339
+ "type": "text",
340
+ "primaryKey": false,
341
+ "notNull": false
342
+ }
343
+ },
344
+ "indexes": {},
345
+ "foreignKeys": {},
346
+ "compositePrimaryKeys": {},
347
+ "uniqueConstraints": {},
348
+ "policies": {},
349
+ "checkConstraints": {},
350
+ "isRLSEnabled": false
351
+ },
352
+ "public.sync_settings": {
353
+ "name": "sync_settings",
354
+ "schema": "",
355
+ "columns": {
356
+ "id": {
357
+ "name": "id",
358
+ "type": "serial",
359
+ "primaryKey": true,
360
+ "notNull": true
361
+ },
362
+ "files": {
363
+ "name": "files",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": false
367
+ },
368
+ "integration_id": {
369
+ "name": "integration_id",
370
+ "type": "text",
371
+ "primaryKey": false,
372
+ "notNull": true
373
+ },
374
+ "crowdin_id": {
375
+ "name": "crowdin_id",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true
379
+ },
380
+ "type": {
381
+ "name": "type",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": true
385
+ },
386
+ "provider": {
387
+ "name": "provider",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true
391
+ }
392
+ },
393
+ "indexes": {},
394
+ "foreignKeys": {},
395
+ "compositePrimaryKeys": {},
396
+ "uniqueConstraints": {},
397
+ "policies": {},
398
+ "checkConstraints": {},
399
+ "isRLSEnabled": false
400
+ },
401
+ "public.synced_data": {
402
+ "name": "synced_data",
403
+ "schema": "",
404
+ "columns": {
405
+ "id": {
406
+ "name": "id",
407
+ "type": "serial",
408
+ "primaryKey": true,
409
+ "notNull": true
410
+ },
411
+ "files": {
412
+ "name": "files",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": false
416
+ },
417
+ "integration_id": {
418
+ "name": "integration_id",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": true
422
+ },
423
+ "crowdin_id": {
424
+ "name": "crowdin_id",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": true
428
+ },
429
+ "type": {
430
+ "name": "type",
431
+ "type": "text",
432
+ "primaryKey": false,
433
+ "notNull": true
434
+ },
435
+ "updated_at": {
436
+ "name": "updated_at",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": false
440
+ }
441
+ },
442
+ "indexes": {},
443
+ "foreignKeys": {},
444
+ "compositePrimaryKeys": {},
445
+ "uniqueConstraints": {},
446
+ "policies": {},
447
+ "checkConstraints": {},
448
+ "isRLSEnabled": false
449
+ },
450
+ "public.translation_file_cache": {
451
+ "name": "translation_file_cache",
452
+ "schema": "",
453
+ "columns": {
454
+ "id": {
455
+ "name": "id",
456
+ "type": "serial",
457
+ "primaryKey": true,
458
+ "notNull": true
459
+ },
460
+ "integration_id": {
461
+ "name": "integration_id",
462
+ "type": "text",
463
+ "primaryKey": false,
464
+ "notNull": true
465
+ },
466
+ "crowdin_id": {
467
+ "name": "crowdin_id",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": true
471
+ },
472
+ "file_id": {
473
+ "name": "file_id",
474
+ "type": "integer",
475
+ "primaryKey": false,
476
+ "notNull": true
477
+ },
478
+ "language_id": {
479
+ "name": "language_id",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": true
483
+ },
484
+ "etag": {
485
+ "name": "etag",
486
+ "type": "text",
487
+ "primaryKey": false,
488
+ "notNull": false
489
+ }
490
+ },
491
+ "indexes": {},
492
+ "foreignKeys": {},
493
+ "compositePrimaryKeys": {},
494
+ "uniqueConstraints": {},
495
+ "policies": {},
496
+ "checkConstraints": {},
497
+ "isRLSEnabled": false
498
+ },
499
+ "public.unsynced_files": {
500
+ "name": "unsynced_files",
501
+ "schema": "",
502
+ "columns": {
503
+ "id": {
504
+ "name": "id",
505
+ "type": "serial",
506
+ "primaryKey": true,
507
+ "notNull": true
508
+ },
509
+ "integration_id": {
510
+ "name": "integration_id",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": true
514
+ },
515
+ "crowdin_id": {
516
+ "name": "crowdin_id",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": true
520
+ },
521
+ "files": {
522
+ "name": "files",
523
+ "type": "text",
524
+ "primaryKey": false,
525
+ "notNull": false
526
+ }
527
+ },
528
+ "indexes": {},
529
+ "foreignKeys": {},
530
+ "compositePrimaryKeys": {},
531
+ "uniqueConstraints": {},
532
+ "policies": {},
533
+ "checkConstraints": {},
534
+ "isRLSEnabled": false
535
+ },
536
+ "public.user_errors": {
537
+ "name": "user_errors",
538
+ "schema": "",
539
+ "columns": {
540
+ "id": {
541
+ "name": "id",
542
+ "type": "serial",
543
+ "primaryKey": true,
544
+ "notNull": true
545
+ },
546
+ "action": {
547
+ "name": "action",
548
+ "type": "text",
549
+ "primaryKey": false,
550
+ "notNull": true
551
+ },
552
+ "message": {
553
+ "name": "message",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true
557
+ },
558
+ "data": {
559
+ "name": "data",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": false
563
+ },
564
+ "created_at": {
565
+ "name": "created_at",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": true
569
+ },
570
+ "crowdin_id": {
571
+ "name": "crowdin_id",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": true
575
+ },
576
+ "integration_id": {
577
+ "name": "integration_id",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": false
581
+ }
582
+ },
583
+ "indexes": {},
584
+ "foreignKeys": {},
585
+ "compositePrimaryKeys": {},
586
+ "uniqueConstraints": {},
587
+ "policies": {},
588
+ "checkConstraints": {},
589
+ "isRLSEnabled": false
590
+ },
591
+ "public.webhooks": {
592
+ "name": "webhooks",
593
+ "schema": "",
594
+ "columns": {
595
+ "id": {
596
+ "name": "id",
597
+ "type": "serial",
598
+ "primaryKey": true,
599
+ "notNull": true
600
+ },
601
+ "file_id": {
602
+ "name": "file_id",
603
+ "type": "text",
604
+ "primaryKey": false,
605
+ "notNull": true
606
+ },
607
+ "integration_id": {
608
+ "name": "integration_id",
609
+ "type": "text",
610
+ "primaryKey": false,
611
+ "notNull": true
612
+ },
613
+ "crowdin_id": {
614
+ "name": "crowdin_id",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": true
618
+ },
619
+ "provider": {
620
+ "name": "provider",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true
624
+ }
625
+ },
626
+ "indexes": {},
627
+ "foreignKeys": {},
628
+ "compositePrimaryKeys": {},
629
+ "uniqueConstraints": {},
630
+ "policies": {},
631
+ "checkConstraints": {},
632
+ "isRLSEnabled": false
633
+ }
634
+ },
635
+ "enums": {},
636
+ "schemas": {},
637
+ "sequences": {},
638
+ "roles": {},
639
+ "policies": {},
640
+ "views": {},
641
+ "_meta": {
642
+ "columns": {},
643
+ "schemas": {},
644
+ "tables": {}
645
+ }
646
+ }