@rudderhq/shared 0.7.2 → 0.7.3

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 (81) hide show
  1. package/dist/computer-use.d.ts +325 -0
  2. package/dist/computer-use.d.ts.map +1 -0
  3. package/dist/computer-use.js +251 -0
  4. package/dist/computer-use.js.map +1 -0
  5. package/dist/computer-use.test.d.ts +2 -0
  6. package/dist/computer-use.test.d.ts.map +1 -0
  7. package/dist/computer-use.test.js +32 -0
  8. package/dist/computer-use.test.js.map +1 -0
  9. package/dist/constants.d.ts +2 -125
  10. package/dist/constants.d.ts.map +1 -1
  11. package/dist/constants.js +1 -301
  12. package/dist/constants.js.map +1 -1
  13. package/dist/index.d.ts +7 -4
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +5 -3
  16. package/dist/index.js.map +1 -1
  17. package/dist/project-mentions.d.ts +7 -0
  18. package/dist/project-mentions.d.ts.map +1 -1
  19. package/dist/project-mentions.js +34 -0
  20. package/dist/project-mentions.js.map +1 -1
  21. package/dist/project-mentions.test.js +6 -1
  22. package/dist/project-mentions.test.js.map +1 -1
  23. package/dist/types/app-builder.d.ts +1 -1
  24. package/dist/types/app-builder.d.ts.map +1 -1
  25. package/dist/types/index.d.ts +1 -1
  26. package/dist/types/index.d.ts.map +1 -1
  27. package/dist/types/instance.d.ts +2 -0
  28. package/dist/types/instance.d.ts.map +1 -1
  29. package/dist/types/issue.d.ts +1 -0
  30. package/dist/types/issue.d.ts.map +1 -1
  31. package/dist/types/organization-skill.d.ts +1 -0
  32. package/dist/types/organization-skill.d.ts.map +1 -1
  33. package/dist/types/plugin-v1.d.ts +158 -0
  34. package/dist/types/plugin-v1.d.ts.map +1 -0
  35. package/dist/types/plugin-v1.js +2 -0
  36. package/dist/types/plugin-v1.js.map +1 -0
  37. package/dist/validators/adapter-skills.d.ts +12 -12
  38. package/dist/validators/app-builder.d.ts +11 -11
  39. package/dist/validators/app-builder.d.ts.map +1 -1
  40. package/dist/validators/app-builder.js +13 -3
  41. package/dist/validators/app-builder.js.map +1 -1
  42. package/dist/validators/app-builder.test.js +25 -1
  43. package/dist/validators/app-builder.test.js.map +1 -1
  44. package/dist/validators/budget.d.ts +6 -6
  45. package/dist/validators/calendar.d.ts +3 -3
  46. package/dist/validators/chat.d.ts +18 -18
  47. package/dist/validators/finance.d.ts +4 -4
  48. package/dist/validators/index.d.ts +1 -1
  49. package/dist/validators/index.d.ts.map +1 -1
  50. package/dist/validators/index.js +1 -1
  51. package/dist/validators/index.js.map +1 -1
  52. package/dist/validators/instance.d.ts +12 -0
  53. package/dist/validators/instance.d.ts.map +1 -1
  54. package/dist/validators/instance.js +2 -0
  55. package/dist/validators/instance.js.map +1 -1
  56. package/dist/validators/instance.test.js +1 -0
  57. package/dist/validators/instance.test.js.map +1 -1
  58. package/dist/validators/issue.d.ts +15 -2
  59. package/dist/validators/issue.d.ts.map +1 -1
  60. package/dist/validators/issue.js +3 -0
  61. package/dist/validators/issue.js.map +1 -1
  62. package/dist/validators/issue.test.d.ts +2 -0
  63. package/dist/validators/issue.test.d.ts.map +1 -0
  64. package/dist/validators/issue.test.js +15 -0
  65. package/dist/validators/issue.test.js.map +1 -0
  66. package/dist/validators/organization-portability.d.ts +82 -82
  67. package/dist/validators/organization-skill.d.ts +34 -34
  68. package/dist/validators/plugin-v1.d.ts +183 -0
  69. package/dist/validators/plugin-v1.d.ts.map +1 -0
  70. package/dist/validators/plugin-v1.js +47 -0
  71. package/dist/validators/plugin-v1.js.map +1 -0
  72. package/dist/validators/secret.d.ts +2 -2
  73. package/package.json +10 -1
  74. package/dist/types/plugin.d.ts +0 -419
  75. package/dist/types/plugin.d.ts.map +0 -1
  76. package/dist/types/plugin.js +0 -2
  77. package/dist/types/plugin.js.map +0 -1
  78. package/dist/validators/plugin.d.ts +0 -1173
  79. package/dist/validators/plugin.d.ts.map +0 -1
  80. package/dist/validators/plugin.js +0 -547
  81. package/dist/validators/plugin.js.map +0 -1
@@ -43,13 +43,13 @@ export declare const organizationSkillSchema: z.ZodObject<{
43
43
  markdown: string;
44
44
  id: string;
45
45
  updatedAt: Date;
46
+ key: string;
46
47
  name: string;
47
48
  orgId: string;
48
49
  slug: string;
49
50
  description: string | null;
50
51
  createdAt: Date;
51
52
  metadata: Record<string, unknown> | null;
52
- key: string;
53
53
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
54
54
  sourceLocator: string | null;
55
55
  sourceRef: string | null;
@@ -63,13 +63,13 @@ export declare const organizationSkillSchema: z.ZodObject<{
63
63
  markdown: string;
64
64
  id: string;
65
65
  updatedAt: Date;
66
+ key: string;
66
67
  name: string;
67
68
  orgId: string;
68
69
  slug: string;
69
70
  description: string | null;
70
71
  createdAt: Date;
71
72
  metadata: Record<string, unknown> | null;
72
- key: string;
73
73
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
74
74
  sourceLocator: string | null;
75
75
  sourceRef: string | null;
@@ -118,13 +118,13 @@ export declare const organizationSkillListItemSchema: z.ZodObject<{
118
118
  markdown: string;
119
119
  id: string;
120
120
  updatedAt: Date;
121
+ key: string;
121
122
  name: string;
122
123
  orgId: string;
123
124
  slug: string;
124
125
  description: string | null;
125
126
  createdAt: Date;
126
127
  metadata: Record<string, unknown> | null;
127
- key: string;
128
128
  sourcePath: string | null;
129
129
  workspaceEditPath: string | null;
130
130
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
@@ -145,13 +145,13 @@ export declare const organizationSkillListItemSchema: z.ZodObject<{
145
145
  markdown: string;
146
146
  id: string;
147
147
  updatedAt: Date;
148
+ key: string;
148
149
  name: string;
149
150
  orgId: string;
150
151
  slug: string;
151
152
  description: string | null;
152
153
  createdAt: Date;
153
154
  metadata: Record<string, unknown> | null;
154
- key: string;
155
155
  sourcePath: string | null;
156
156
  workspaceEditPath: string | null;
157
157
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
@@ -251,13 +251,13 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
251
251
  markdown: string;
252
252
  id: string;
253
253
  updatedAt: Date;
254
+ key: string;
254
255
  name: string;
255
256
  orgId: string;
256
257
  slug: string;
257
258
  description: string | null;
258
259
  createdAt: Date;
259
260
  metadata: Record<string, unknown> | null;
260
- key: string;
261
261
  sourcePath: string | null;
262
262
  workspaceEditPath: string | null;
263
263
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
@@ -286,13 +286,13 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
286
286
  markdown: string;
287
287
  id: string;
288
288
  updatedAt: Date;
289
+ key: string;
289
290
  name: string;
290
291
  orgId: string;
291
292
  slug: string;
292
293
  description: string | null;
293
294
  createdAt: Date;
294
295
  metadata: Record<string, unknown> | null;
295
- key: string;
296
296
  sourcePath: string | null;
297
297
  workspaceEditPath: string | null;
298
298
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
@@ -395,8 +395,8 @@ export declare const organizationSkillProjectScanConflictSchema: z.ZodObject<{
395
395
  reason: string;
396
396
  projectId: string;
397
397
  path: string;
398
- slug: string;
399
398
  key: string;
399
+ slug: string;
400
400
  projectName: string;
401
401
  workspaceId: string;
402
402
  workspaceName: string;
@@ -407,8 +407,8 @@ export declare const organizationSkillProjectScanConflictSchema: z.ZodObject<{
407
407
  reason: string;
408
408
  projectId: string;
409
409
  path: string;
410
- slug: string;
411
410
  key: string;
411
+ slug: string;
412
412
  projectName: string;
413
413
  workspaceId: string;
414
414
  workspaceName: string;
@@ -450,13 +450,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
450
450
  markdown: string;
451
451
  id: string;
452
452
  updatedAt: Date;
453
+ key: string;
453
454
  name: string;
454
455
  orgId: string;
455
456
  slug: string;
456
457
  description: string | null;
457
458
  createdAt: Date;
458
459
  metadata: Record<string, unknown> | null;
459
- key: string;
460
460
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
461
461
  sourceLocator: string | null;
462
462
  sourceRef: string | null;
@@ -470,13 +470,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
470
470
  markdown: string;
471
471
  id: string;
472
472
  updatedAt: Date;
473
+ key: string;
473
474
  name: string;
474
475
  orgId: string;
475
476
  slug: string;
476
477
  description: string | null;
477
478
  createdAt: Date;
478
479
  metadata: Record<string, unknown> | null;
479
- key: string;
480
480
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
481
481
  sourceLocator: string | null;
482
482
  sourceRef: string | null;
@@ -517,13 +517,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
517
517
  markdown: string;
518
518
  id: string;
519
519
  updatedAt: Date;
520
+ key: string;
520
521
  name: string;
521
522
  orgId: string;
522
523
  slug: string;
523
524
  description: string | null;
524
525
  createdAt: Date;
525
526
  metadata: Record<string, unknown> | null;
526
- key: string;
527
527
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
528
528
  sourceLocator: string | null;
529
529
  sourceRef: string | null;
@@ -537,13 +537,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
537
537
  markdown: string;
538
538
  id: string;
539
539
  updatedAt: Date;
540
+ key: string;
540
541
  name: string;
541
542
  orgId: string;
542
543
  slug: string;
543
544
  description: string | null;
544
545
  createdAt: Date;
545
546
  metadata: Record<string, unknown> | null;
546
- key: string;
547
547
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
548
548
  sourceLocator: string | null;
549
549
  sourceRef: string | null;
@@ -592,8 +592,8 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
592
592
  reason: string;
593
593
  projectId: string;
594
594
  path: string;
595
- slug: string;
596
595
  key: string;
596
+ slug: string;
597
597
  projectName: string;
598
598
  workspaceId: string;
599
599
  workspaceName: string;
@@ -604,8 +604,8 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
604
604
  reason: string;
605
605
  projectId: string;
606
606
  path: string;
607
- slug: string;
608
607
  key: string;
608
+ slug: string;
609
609
  projectName: string;
610
610
  workspaceId: string;
611
611
  workspaceName: string;
@@ -619,13 +619,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
619
619
  markdown: string;
620
620
  id: string;
621
621
  updatedAt: Date;
622
+ key: string;
622
623
  name: string;
623
624
  orgId: string;
624
625
  slug: string;
625
626
  description: string | null;
626
627
  createdAt: Date;
627
628
  metadata: Record<string, unknown> | null;
628
- key: string;
629
629
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
630
630
  sourceLocator: string | null;
631
631
  sourceRef: string | null;
@@ -648,13 +648,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
648
648
  markdown: string;
649
649
  id: string;
650
650
  updatedAt: Date;
651
+ key: string;
651
652
  name: string;
652
653
  orgId: string;
653
654
  slug: string;
654
655
  description: string | null;
655
656
  createdAt: Date;
656
657
  metadata: Record<string, unknown> | null;
657
- key: string;
658
658
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
659
659
  sourceLocator: string | null;
660
660
  sourceRef: string | null;
@@ -673,8 +673,8 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
673
673
  reason: string;
674
674
  projectId: string;
675
675
  path: string;
676
- slug: string;
677
676
  key: string;
677
+ slug: string;
678
678
  projectName: string;
679
679
  workspaceId: string;
680
680
  workspaceName: string;
@@ -687,13 +687,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
687
687
  markdown: string;
688
688
  id: string;
689
689
  updatedAt: Date;
690
+ key: string;
690
691
  name: string;
691
692
  orgId: string;
692
693
  slug: string;
693
694
  description: string | null;
694
695
  createdAt: Date;
695
696
  metadata: Record<string, unknown> | null;
696
- key: string;
697
697
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
698
698
  sourceLocator: string | null;
699
699
  sourceRef: string | null;
@@ -716,13 +716,13 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
716
716
  markdown: string;
717
717
  id: string;
718
718
  updatedAt: Date;
719
+ key: string;
719
720
  name: string;
720
721
  orgId: string;
721
722
  slug: string;
722
723
  description: string | null;
723
724
  createdAt: Date;
724
725
  metadata: Record<string, unknown> | null;
725
- key: string;
726
726
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
727
727
  sourceLocator: string | null;
728
728
  sourceRef: string | null;
@@ -741,8 +741,8 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
741
741
  reason: string;
742
742
  projectId: string;
743
743
  path: string;
744
- slug: string;
745
744
  key: string;
745
+ slug: string;
746
746
  projectName: string;
747
747
  workspaceId: string;
748
748
  workspaceName: string;
@@ -783,8 +783,8 @@ export declare const organizationSkillLocalScanConflictSchema: z.ZodObject<{
783
783
  }, "strip", z.ZodTypeAny, {
784
784
  reason: string;
785
785
  path: string;
786
- slug: string;
787
786
  key: string;
787
+ slug: string;
788
788
  existingSkillId: string;
789
789
  existingSkillKey: string;
790
790
  existingSourceLocator: string | null;
@@ -792,8 +792,8 @@ export declare const organizationSkillLocalScanConflictSchema: z.ZodObject<{
792
792
  }, {
793
793
  reason: string;
794
794
  path: string;
795
- slug: string;
796
795
  key: string;
796
+ slug: string;
797
797
  existingSkillId: string;
798
798
  existingSkillKey: string;
799
799
  existingSourceLocator: string | null;
@@ -832,13 +832,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
832
832
  markdown: string;
833
833
  id: string;
834
834
  updatedAt: Date;
835
+ key: string;
835
836
  name: string;
836
837
  orgId: string;
837
838
  slug: string;
838
839
  description: string | null;
839
840
  createdAt: Date;
840
841
  metadata: Record<string, unknown> | null;
841
- key: string;
842
842
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
843
843
  sourceLocator: string | null;
844
844
  sourceRef: string | null;
@@ -852,13 +852,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
852
852
  markdown: string;
853
853
  id: string;
854
854
  updatedAt: Date;
855
+ key: string;
855
856
  name: string;
856
857
  orgId: string;
857
858
  slug: string;
858
859
  description: string | null;
859
860
  createdAt: Date;
860
861
  metadata: Record<string, unknown> | null;
861
- key: string;
862
862
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
863
863
  sourceLocator: string | null;
864
864
  sourceRef: string | null;
@@ -899,13 +899,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
899
899
  markdown: string;
900
900
  id: string;
901
901
  updatedAt: Date;
902
+ key: string;
902
903
  name: string;
903
904
  orgId: string;
904
905
  slug: string;
905
906
  description: string | null;
906
907
  createdAt: Date;
907
908
  metadata: Record<string, unknown> | null;
908
- key: string;
909
909
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
910
910
  sourceLocator: string | null;
911
911
  sourceRef: string | null;
@@ -919,13 +919,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
919
919
  markdown: string;
920
920
  id: string;
921
921
  updatedAt: Date;
922
+ key: string;
922
923
  name: string;
923
924
  orgId: string;
924
925
  slug: string;
925
926
  description: string | null;
926
927
  createdAt: Date;
927
928
  metadata: Record<string, unknown> | null;
928
- key: string;
929
929
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
930
930
  sourceLocator: string | null;
931
931
  sourceRef: string | null;
@@ -961,8 +961,8 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
961
961
  }, "strip", z.ZodTypeAny, {
962
962
  reason: string;
963
963
  path: string;
964
- slug: string;
965
964
  key: string;
965
+ slug: string;
966
966
  existingSkillId: string;
967
967
  existingSkillKey: string;
968
968
  existingSourceLocator: string | null;
@@ -970,8 +970,8 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
970
970
  }, {
971
971
  reason: string;
972
972
  path: string;
973
- slug: string;
974
973
  key: string;
974
+ slug: string;
975
975
  existingSkillId: string;
976
976
  existingSkillKey: string;
977
977
  existingSourceLocator: string | null;
@@ -983,13 +983,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
983
983
  markdown: string;
984
984
  id: string;
985
985
  updatedAt: Date;
986
+ key: string;
986
987
  name: string;
987
988
  orgId: string;
988
989
  slug: string;
989
990
  description: string | null;
990
991
  createdAt: Date;
991
992
  metadata: Record<string, unknown> | null;
992
- key: string;
993
993
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
994
994
  sourceLocator: string | null;
995
995
  sourceRef: string | null;
@@ -1009,13 +1009,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1009
1009
  markdown: string;
1010
1010
  id: string;
1011
1011
  updatedAt: Date;
1012
+ key: string;
1012
1013
  name: string;
1013
1014
  orgId: string;
1014
1015
  slug: string;
1015
1016
  description: string | null;
1016
1017
  createdAt: Date;
1017
1018
  metadata: Record<string, unknown> | null;
1018
- key: string;
1019
1019
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
1020
1020
  sourceLocator: string | null;
1021
1021
  sourceRef: string | null;
@@ -1031,8 +1031,8 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1031
1031
  conflicts: {
1032
1032
  reason: string;
1033
1033
  path: string;
1034
- slug: string;
1035
1034
  key: string;
1035
+ slug: string;
1036
1036
  existingSkillId: string;
1037
1037
  existingSkillKey: string;
1038
1038
  existingSourceLocator: string | null;
@@ -1044,13 +1044,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1044
1044
  markdown: string;
1045
1045
  id: string;
1046
1046
  updatedAt: Date;
1047
+ key: string;
1047
1048
  name: string;
1048
1049
  orgId: string;
1049
1050
  slug: string;
1050
1051
  description: string | null;
1051
1052
  createdAt: Date;
1052
1053
  metadata: Record<string, unknown> | null;
1053
- key: string;
1054
1054
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
1055
1055
  sourceLocator: string | null;
1056
1056
  sourceRef: string | null;
@@ -1070,13 +1070,13 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1070
1070
  markdown: string;
1071
1071
  id: string;
1072
1072
  updatedAt: Date;
1073
+ key: string;
1073
1074
  name: string;
1074
1075
  orgId: string;
1075
1076
  slug: string;
1076
1077
  description: string | null;
1077
1078
  createdAt: Date;
1078
1079
  metadata: Record<string, unknown> | null;
1079
- key: string;
1080
1080
  sourceType: "url" | "github" | "local_path" | "catalog" | "skills_sh";
1081
1081
  sourceLocator: string | null;
1082
1082
  sourceRef: string | null;
@@ -1092,8 +1092,8 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1092
1092
  conflicts: {
1093
1093
  reason: string;
1094
1094
  path: string;
1095
- slug: string;
1096
1095
  key: string;
1096
+ slug: string;
1097
1097
  existingSkillId: string;
1098
1098
  existingSkillKey: string;
1099
1099
  existingSourceLocator: string | null;
@@ -0,0 +1,183 @@
1
+ import { z } from "zod";
2
+ export declare const rudderPluginPackageFileSchema: z.ZodObject<{
3
+ path: z.ZodString;
4
+ content: z.ZodString;
5
+ encoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ path: string;
8
+ content: string;
9
+ encoding: "base64" | "utf8";
10
+ }, {
11
+ path: string;
12
+ content: string;
13
+ encoding?: "base64" | "utf8" | undefined;
14
+ }>;
15
+ export declare const inspectRudderPluginSchema: z.ZodObject<{
16
+ sourceLabel: z.ZodString;
17
+ sourceType: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"local_upload">>>;
18
+ files: z.ZodArray<z.ZodObject<{
19
+ path: z.ZodString;
20
+ content: z.ZodString;
21
+ encoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>>;
22
+ }, "strict", z.ZodTypeAny, {
23
+ path: string;
24
+ content: string;
25
+ encoding: "base64" | "utf8";
26
+ }, {
27
+ path: string;
28
+ content: string;
29
+ encoding?: "base64" | "utf8" | undefined;
30
+ }>, "many">;
31
+ }, "strict", z.ZodTypeAny, {
32
+ sourceType: "local_upload";
33
+ files: {
34
+ path: string;
35
+ content: string;
36
+ encoding: "base64" | "utf8";
37
+ }[];
38
+ sourceLabel: string;
39
+ }, {
40
+ files: {
41
+ path: string;
42
+ content: string;
43
+ encoding?: "base64" | "utf8" | undefined;
44
+ }[];
45
+ sourceLabel: string;
46
+ sourceType?: "local_upload" | undefined;
47
+ }>;
48
+ export declare const inspectRudderPluginArchiveSchema: z.ZodObject<{
49
+ sourceLabel: z.ZodString;
50
+ filename: z.ZodEffects<z.ZodString, string, string>;
51
+ content: z.ZodString;
52
+ encoding: z.ZodLiteral<"base64">;
53
+ }, "strict", z.ZodTypeAny, {
54
+ content: string;
55
+ encoding: "base64";
56
+ sourceLabel: string;
57
+ filename: string;
58
+ }, {
59
+ content: string;
60
+ encoding: "base64";
61
+ sourceLabel: string;
62
+ filename: string;
63
+ }>;
64
+ export declare const configureRudderPluginMarketplaceSchema: z.ZodEffects<z.ZodObject<{
65
+ sourceLabel: z.ZodString;
66
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ path: z.ZodString;
68
+ content: z.ZodString;
69
+ encoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>>;
70
+ }, "strict", z.ZodTypeAny, {
71
+ path: string;
72
+ content: string;
73
+ encoding: "base64" | "utf8";
74
+ }, {
75
+ path: string;
76
+ content: string;
77
+ encoding?: "base64" | "utf8" | undefined;
78
+ }>, "many">>;
79
+ github: z.ZodOptional<z.ZodObject<{
80
+ repository: z.ZodString;
81
+ commit: z.ZodString;
82
+ }, "strict", z.ZodTypeAny, {
83
+ commit: string;
84
+ repository: string;
85
+ }, {
86
+ commit: string;
87
+ repository: string;
88
+ }>>;
89
+ }, "strict", z.ZodTypeAny, {
90
+ sourceLabel: string;
91
+ github?: {
92
+ commit: string;
93
+ repository: string;
94
+ } | undefined;
95
+ files?: {
96
+ path: string;
97
+ content: string;
98
+ encoding: "base64" | "utf8";
99
+ }[] | undefined;
100
+ }, {
101
+ sourceLabel: string;
102
+ github?: {
103
+ commit: string;
104
+ repository: string;
105
+ } | undefined;
106
+ files?: {
107
+ path: string;
108
+ content: string;
109
+ encoding?: "base64" | "utf8" | undefined;
110
+ }[] | undefined;
111
+ }>, {
112
+ sourceLabel: string;
113
+ github?: {
114
+ commit: string;
115
+ repository: string;
116
+ } | undefined;
117
+ files?: {
118
+ path: string;
119
+ content: string;
120
+ encoding: "base64" | "utf8";
121
+ }[] | undefined;
122
+ }, {
123
+ sourceLabel: string;
124
+ github?: {
125
+ commit: string;
126
+ repository: string;
127
+ } | undefined;
128
+ files?: {
129
+ path: string;
130
+ content: string;
131
+ encoding?: "base64" | "utf8" | undefined;
132
+ }[] | undefined;
133
+ }>;
134
+ export declare const installRudderPluginSchema: z.ZodObject<{
135
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
136
+ confirmAccessExpansion: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
137
+ skillConflictStrategy: z.ZodOptional<z.ZodEnum<["keep", "replace", "rename"]>>;
138
+ }, "strict", z.ZodTypeAny, {
139
+ enabled: boolean;
140
+ confirmAccessExpansion: boolean;
141
+ skillConflictStrategy?: "rename" | "replace" | "keep" | undefined;
142
+ }, {
143
+ enabled?: boolean | undefined;
144
+ confirmAccessExpansion?: boolean | undefined;
145
+ skillConflictStrategy?: "rename" | "replace" | "keep" | undefined;
146
+ }>;
147
+ export declare const updateRudderPluginEnablementSchema: z.ZodObject<{
148
+ enabled: z.ZodBoolean;
149
+ }, "strict", z.ZodTypeAny, {
150
+ enabled: boolean;
151
+ }, {
152
+ enabled: boolean;
153
+ }>;
154
+ export declare const configureRudderPluginSkillsSchema: z.ZodObject<{
155
+ agentIds: z.ZodArray<z.ZodString, "many">;
156
+ }, "strict", z.ZodTypeAny, {
157
+ agentIds: string[];
158
+ }, {
159
+ agentIds: string[];
160
+ }>;
161
+ export declare const configureRudderPluginMcpSchema: z.ZodObject<{
162
+ componentId: z.ZodString;
163
+ }, "strict", z.ZodTypeAny, {
164
+ componentId: string;
165
+ }, {
166
+ componentId: string;
167
+ }>;
168
+ export declare const customizeRudderPluginSkillSchema: z.ZodObject<{
169
+ componentId: z.ZodString;
170
+ }, "strict", z.ZodTypeAny, {
171
+ componentId: string;
172
+ }, {
173
+ componentId: string;
174
+ }>;
175
+ export type InspectRudderPlugin = z.infer<typeof inspectRudderPluginSchema>;
176
+ export type InspectRudderPluginArchive = z.infer<typeof inspectRudderPluginArchiveSchema>;
177
+ export type ConfigureRudderPluginMarketplace = z.infer<typeof configureRudderPluginMarketplaceSchema>;
178
+ export type InstallRudderPlugin = z.infer<typeof installRudderPluginSchema>;
179
+ export type UpdateRudderPluginEnablement = z.infer<typeof updateRudderPluginEnablementSchema>;
180
+ export type ConfigureRudderPluginSkills = z.infer<typeof configureRudderPluginSkillsSchema>;
181
+ export type ConfigureRudderPluginMcp = z.infer<typeof configureRudderPluginMcpSchema>;
182
+ export type CustomizeRudderPluginSkill = z.infer<typeof customizeRudderPluginSkillSchema>;
183
+ //# sourceMappingURL=plugin-v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-v1.d.ts","sourceRoot":"","sources":["../../src/validators/plugin-v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAI/B,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3B,CAAC;AAEZ,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAKlC,CAAC;AAEZ,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjD,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAI3B,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;EAEpC,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;EAEnC,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;EAEhC,CAAC;AAEZ,eAAO,MAAM,gCAAgC;;;;;;EAElC,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACtG,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { z } from "zod";
2
+ export const rudderPluginPackageFileSchema = z.object({
3
+ path: z.string().min(1).max(1_024),
4
+ content: z.string().max(14_000_000),
5
+ encoding: z.enum(["utf8", "base64"]).optional().default("utf8"),
6
+ }).strict();
7
+ export const inspectRudderPluginSchema = z.object({
8
+ sourceLabel: z.string().trim().min(1).max(240),
9
+ sourceType: z.literal("local_upload").optional().default("local_upload"),
10
+ files: z.array(rudderPluginPackageFileSchema).min(1).max(500),
11
+ }).strict();
12
+ export const inspectRudderPluginArchiveSchema = z.object({
13
+ sourceLabel: z.string().trim().min(1).max(240),
14
+ filename: z.string().trim().min(1).max(240).refine((value) => /\.zip$/i.test(value), "Only ZIP Plugin archives are supported"),
15
+ content: z.string().min(1).max(14_000_000),
16
+ encoding: z.literal("base64"),
17
+ }).strict();
18
+ export const configureRudderPluginMarketplaceSchema = z.object({
19
+ sourceLabel: z.string().trim().min(1).max(240),
20
+ files: z.array(rudderPluginPackageFileSchema).min(1).max(500).optional(),
21
+ github: z.object({
22
+ repository: z.string().url().max(500),
23
+ commit: z.string().regex(/^[0-9a-f]{40}$/i, "A full 40-character Git commit SHA is required"),
24
+ }).strict().optional(),
25
+ }).strict().superRefine((value, ctx) => {
26
+ if (Boolean(value.files) === Boolean(value.github)) {
27
+ ctx.addIssue({ code: z.ZodIssueCode.custom, message: "Provide exactly one local marketplace folder or pinned GitHub marketplace" });
28
+ }
29
+ });
30
+ export const installRudderPluginSchema = z.object({
31
+ enabled: z.boolean().optional().default(true),
32
+ confirmAccessExpansion: z.boolean().optional().default(false),
33
+ skillConflictStrategy: z.enum(["keep", "replace", "rename"]).optional(),
34
+ }).strict();
35
+ export const updateRudderPluginEnablementSchema = z.object({
36
+ enabled: z.boolean(),
37
+ }).strict();
38
+ export const configureRudderPluginSkillsSchema = z.object({
39
+ agentIds: z.array(z.string().uuid()).max(100),
40
+ }).strict();
41
+ export const configureRudderPluginMcpSchema = z.object({
42
+ componentId: z.string().uuid(),
43
+ }).strict();
44
+ export const customizeRudderPluginSkillSchema = z.object({
45
+ componentId: z.string().uuid(),
46
+ }).strict();
47
+ //# sourceMappingURL=plugin-v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-v1.js","sourceRoot":"","sources":["../../src/validators/plugin-v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,U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