@rudderhq/shared 0.2.10-canary.2 → 0.2.10-canary.21

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 (62) hide show
  1. package/dist/constants.d.ts +2 -0
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.js +4 -0
  4. package/dist/constants.js.map +1 -1
  5. package/dist/index.d.ts +4 -4
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +3 -3
  8. package/dist/index.js.map +1 -1
  9. package/dist/project-mentions.d.ts +19 -1
  10. package/dist/project-mentions.d.ts.map +1 -1
  11. package/dist/project-mentions.js +124 -3
  12. package/dist/project-mentions.js.map +1 -1
  13. package/dist/project-mentions.test.js +34 -3
  14. package/dist/project-mentions.test.js.map +1 -1
  15. package/dist/types/agent.d.ts +1 -0
  16. package/dist/types/agent.d.ts.map +1 -1
  17. package/dist/types/chat.d.ts +6 -0
  18. package/dist/types/chat.d.ts.map +1 -1
  19. package/dist/types/index.d.ts +4 -4
  20. package/dist/types/index.d.ts.map +1 -1
  21. package/dist/types/issue.d.ts +35 -0
  22. package/dist/types/issue.d.ts.map +1 -1
  23. package/dist/types/messenger.d.ts +4 -0
  24. package/dist/types/messenger.d.ts.map +1 -1
  25. package/dist/types/organization.d.ts +18 -0
  26. package/dist/types/organization.d.ts.map +1 -1
  27. package/dist/types/resource.d.ts +4 -1
  28. package/dist/types/resource.d.ts.map +1 -1
  29. package/dist/validators/automation.js +1 -1
  30. package/dist/validators/automation.test.js +10 -0
  31. package/dist/validators/automation.test.js.map +1 -1
  32. package/dist/validators/chat.d.ts +13 -0
  33. package/dist/validators/chat.d.ts.map +1 -1
  34. package/dist/validators/chat.js +2 -1
  35. package/dist/validators/chat.js.map +1 -1
  36. package/dist/validators/chat.test.js +22 -1
  37. package/dist/validators/chat.test.js.map +1 -1
  38. package/dist/validators/index.d.ts +3 -3
  39. package/dist/validators/index.d.ts.map +1 -1
  40. package/dist/validators/index.js +3 -3
  41. package/dist/validators/index.js.map +1 -1
  42. package/dist/validators/issue.d.ts +45 -0
  43. package/dist/validators/issue.d.ts.map +1 -1
  44. package/dist/validators/issue.js +16 -0
  45. package/dist/validators/issue.js.map +1 -1
  46. package/dist/validators/organization-portability.d.ts +19 -19
  47. package/dist/validators/organization-skill.d.ts +22 -22
  48. package/dist/validators/organization.d.ts +35 -0
  49. package/dist/validators/organization.d.ts.map +1 -1
  50. package/dist/validators/organization.js +13 -0
  51. package/dist/validators/organization.js.map +1 -1
  52. package/dist/validators/project.d.ts +58 -8
  53. package/dist/validators/project.d.ts.map +1 -1
  54. package/dist/validators/resource.d.ts +61 -3
  55. package/dist/validators/resource.d.ts.map +1 -1
  56. package/dist/validators/resource.js +45 -5
  57. package/dist/validators/resource.js.map +1 -1
  58. package/dist/validators/resource.test.d.ts +2 -0
  59. package/dist/validators/resource.test.d.ts.map +1 -0
  60. package/dist/validators/resource.test.js +51 -0
  61. package/dist/validators/resource.test.js.map +1 -0
  62. package/package.json +1 -1
@@ -111,10 +111,10 @@ export declare const portabilityAgentManifestEntrySchema: z.ZodObject<{
111
111
  budgetMonthlyCents: number;
112
112
  agentRuntimeType: string;
113
113
  agentRuntimeConfig: Record<string, unknown>;
114
+ skills: string[];
114
115
  metadata: Record<string, unknown> | null;
115
116
  role: string;
116
117
  slug: string;
117
- skills: string[];
118
118
  icon: string | null;
119
119
  capabilities: string | null;
120
120
  reportsToSlug: string | null;
@@ -163,10 +163,10 @@ export declare const portabilitySkillManifestEntrySchema: z.ZodObject<{
163
163
  path: string;
164
164
  description: string | null;
165
165
  name: string;
166
+ sourceType: string;
166
167
  metadata: Record<string, unknown> | null;
167
168
  key: string;
168
169
  slug: string;
169
- sourceType: string;
170
170
  sourceLocator: string | null;
171
171
  sourceRef: string | null;
172
172
  trustLevel: string | null;
@@ -179,10 +179,10 @@ export declare const portabilitySkillManifestEntrySchema: z.ZodObject<{
179
179
  path: string;
180
180
  description: string | null;
181
181
  name: string;
182
+ sourceType: string;
182
183
  metadata: Record<string, unknown> | null;
183
184
  key: string;
184
185
  slug: string;
185
- sourceType: string;
186
186
  sourceLocator: string | null;
187
187
  sourceRef: string | null;
188
188
  trustLevel: string | null;
@@ -217,9 +217,9 @@ export declare const portabilityProjectManifestEntrySchema: z.ZodObject<{
217
217
  isPrimary: z.ZodBoolean;
218
218
  }, "strip", z.ZodTypeAny, {
219
219
  name: string;
220
+ sourceType: string | null;
220
221
  metadata: Record<string, unknown> | null;
221
222
  key: string;
222
- sourceType: string | null;
223
223
  repoUrl: string | null;
224
224
  repoRef: string | null;
225
225
  defaultRef: string | null;
@@ -229,9 +229,9 @@ export declare const portabilityProjectManifestEntrySchema: z.ZodObject<{
229
229
  isPrimary: boolean;
230
230
  }, {
231
231
  name: string;
232
+ sourceType: string | null;
232
233
  metadata: Record<string, unknown> | null;
233
234
  key: string;
234
- sourceType: string | null;
235
235
  repoUrl: string | null;
236
236
  repoRef: string | null;
237
237
  defaultRef: string | null;
@@ -255,9 +255,9 @@ export declare const portabilityProjectManifestEntrySchema: z.ZodObject<{
255
255
  executionWorkspacePolicy: Record<string, unknown> | null;
256
256
  workspaces: {
257
257
  name: string;
258
+ sourceType: string | null;
258
259
  metadata: Record<string, unknown> | null;
259
260
  key: string;
260
- sourceType: string | null;
261
261
  repoUrl: string | null;
262
262
  repoRef: string | null;
263
263
  defaultRef: string | null;
@@ -280,9 +280,9 @@ export declare const portabilityProjectManifestEntrySchema: z.ZodObject<{
280
280
  executionWorkspacePolicy: Record<string, unknown> | null;
281
281
  workspaces?: {
282
282
  name: string;
283
+ sourceType: string | null;
283
284
  metadata: Record<string, unknown> | null;
284
285
  key: string;
285
- sourceType: string | null;
286
286
  repoUrl: string | null;
287
287
  repoRef: string | null;
288
288
  defaultRef: string | null;
@@ -591,10 +591,10 @@ export declare const portabilityManifestSchema: z.ZodObject<{
591
591
  budgetMonthlyCents: number;
592
592
  agentRuntimeType: string;
593
593
  agentRuntimeConfig: Record<string, unknown>;
594
+ skills: string[];
594
595
  metadata: Record<string, unknown> | null;
595
596
  role: string;
596
597
  slug: string;
597
- skills: string[];
598
598
  icon: string | null;
599
599
  capabilities: string | null;
600
600
  reportsToSlug: string | null;
@@ -643,10 +643,10 @@ export declare const portabilityManifestSchema: z.ZodObject<{
643
643
  path: string;
644
644
  description: string | null;
645
645
  name: string;
646
+ sourceType: string;
646
647
  metadata: Record<string, unknown> | null;
647
648
  key: string;
648
649
  slug: string;
649
- sourceType: string;
650
650
  sourceLocator: string | null;
651
651
  sourceRef: string | null;
652
652
  trustLevel: string | null;
@@ -659,10 +659,10 @@ export declare const portabilityManifestSchema: z.ZodObject<{
659
659
  path: string;
660
660
  description: string | null;
661
661
  name: string;
662
+ sourceType: string;
662
663
  metadata: Record<string, unknown> | null;
663
664
  key: string;
664
665
  slug: string;
665
- sourceType: string;
666
666
  sourceLocator: string | null;
667
667
  sourceRef: string | null;
668
668
  trustLevel: string | null;
@@ -697,9 +697,9 @@ export declare const portabilityManifestSchema: z.ZodObject<{
697
697
  isPrimary: z.ZodBoolean;
698
698
  }, "strip", z.ZodTypeAny, {
699
699
  name: string;
700
+ sourceType: string | null;
700
701
  metadata: Record<string, unknown> | null;
701
702
  key: string;
702
- sourceType: string | null;
703
703
  repoUrl: string | null;
704
704
  repoRef: string | null;
705
705
  defaultRef: string | null;
@@ -709,9 +709,9 @@ export declare const portabilityManifestSchema: z.ZodObject<{
709
709
  isPrimary: boolean;
710
710
  }, {
711
711
  name: string;
712
+ sourceType: string | null;
712
713
  metadata: Record<string, unknown> | null;
713
714
  key: string;
714
- sourceType: string | null;
715
715
  repoUrl: string | null;
716
716
  repoRef: string | null;
717
717
  defaultRef: string | null;
@@ -735,9 +735,9 @@ export declare const portabilityManifestSchema: z.ZodObject<{
735
735
  executionWorkspacePolicy: Record<string, unknown> | null;
736
736
  workspaces: {
737
737
  name: string;
738
+ sourceType: string | null;
738
739
  metadata: Record<string, unknown> | null;
739
740
  key: string;
740
- sourceType: string | null;
741
741
  repoUrl: string | null;
742
742
  repoRef: string | null;
743
743
  defaultRef: string | null;
@@ -760,9 +760,9 @@ export declare const portabilityManifestSchema: z.ZodObject<{
760
760
  executionWorkspacePolicy: Record<string, unknown> | null;
761
761
  workspaces?: {
762
762
  name: string;
763
+ sourceType: string | null;
763
764
  metadata: Record<string, unknown> | null;
764
765
  key: string;
765
- sourceType: string | null;
766
766
  repoUrl: string | null;
767
767
  repoRef: string | null;
768
768
  defaultRef: string | null;
@@ -983,10 +983,10 @@ export declare const portabilityManifestSchema: z.ZodObject<{
983
983
  budgetMonthlyCents: number;
984
984
  agentRuntimeType: string;
985
985
  agentRuntimeConfig: Record<string, unknown>;
986
+ skills: string[];
986
987
  metadata: Record<string, unknown> | null;
987
988
  role: string;
988
989
  slug: string;
989
- skills: string[];
990
990
  icon: string | null;
991
991
  capabilities: string | null;
992
992
  reportsToSlug: string | null;
@@ -1007,9 +1007,9 @@ export declare const portabilityManifestSchema: z.ZodObject<{
1007
1007
  executionWorkspacePolicy: Record<string, unknown> | null;
1008
1008
  workspaces: {
1009
1009
  name: string;
1010
+ sourceType: string | null;
1010
1011
  metadata: Record<string, unknown> | null;
1011
1012
  key: string;
1012
- sourceType: string | null;
1013
1013
  repoUrl: string | null;
1014
1014
  repoRef: string | null;
1015
1015
  defaultRef: string | null;
@@ -1034,10 +1034,10 @@ export declare const portabilityManifestSchema: z.ZodObject<{
1034
1034
  path: string;
1035
1035
  description: string | null;
1036
1036
  name: string;
1037
+ sourceType: string;
1037
1038
  metadata: Record<string, unknown> | null;
1038
1039
  key: string;
1039
1040
  slug: string;
1040
- sourceType: string;
1041
1041
  sourceLocator: string | null;
1042
1042
  sourceRef: string | null;
1043
1043
  trustLevel: string | null;
@@ -1147,9 +1147,9 @@ export declare const portabilityManifestSchema: z.ZodObject<{
1147
1147
  executionWorkspacePolicy: Record<string, unknown> | null;
1148
1148
  workspaces?: {
1149
1149
  name: string;
1150
+ sourceType: string | null;
1150
1151
  metadata: Record<string, unknown> | null;
1151
1152
  key: string;
1152
- sourceType: string | null;
1153
1153
  repoUrl: string | null;
1154
1154
  repoRef: string | null;
1155
1155
  defaultRef: string | null;
@@ -1163,10 +1163,10 @@ export declare const portabilityManifestSchema: z.ZodObject<{
1163
1163
  path: string;
1164
1164
  description: string | null;
1165
1165
  name: string;
1166
+ sourceType: string;
1166
1167
  metadata: Record<string, unknown> | null;
1167
1168
  key: string;
1168
1169
  slug: string;
1169
- sourceType: string;
1170
1170
  sourceLocator: string | null;
1171
1171
  sourceRef: string | null;
1172
1172
  trustLevel: string | null;
@@ -47,10 +47,10 @@ export declare const organizationSkillSchema: z.ZodObject<{
47
47
  orgId: string;
48
48
  createdAt: Date;
49
49
  name: string;
50
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
50
51
  metadata: Record<string, unknown> | null;
51
52
  key: string;
52
53
  slug: string;
53
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
54
54
  sourceLocator: string | null;
55
55
  sourceRef: string | null;
56
56
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -67,10 +67,10 @@ export declare const organizationSkillSchema: z.ZodObject<{
67
67
  orgId: string;
68
68
  createdAt: Date;
69
69
  name: string;
70
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
70
71
  metadata: Record<string, unknown> | null;
71
72
  key: string;
72
73
  slug: string;
73
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
74
74
  sourceLocator: string | null;
75
75
  sourceRef: string | null;
76
76
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -122,10 +122,10 @@ export declare const organizationSkillListItemSchema: z.ZodObject<{
122
122
  orgId: string;
123
123
  createdAt: Date;
124
124
  name: string;
125
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
125
126
  metadata: Record<string, unknown> | null;
126
127
  key: string;
127
128
  slug: string;
128
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
129
129
  sourceLocator: string | null;
130
130
  sourceRef: string | null;
131
131
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -149,10 +149,10 @@ export declare const organizationSkillListItemSchema: z.ZodObject<{
149
149
  orgId: string;
150
150
  createdAt: Date;
151
151
  name: string;
152
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
152
153
  metadata: Record<string, unknown> | null;
153
154
  key: string;
154
155
  slug: string;
155
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
156
156
  sourceLocator: string | null;
157
157
  sourceRef: string | null;
158
158
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -255,10 +255,10 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
255
255
  orgId: string;
256
256
  createdAt: Date;
257
257
  name: string;
258
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
258
259
  metadata: Record<string, unknown> | null;
259
260
  key: string;
260
261
  slug: string;
261
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
262
262
  sourceLocator: string | null;
263
263
  sourceRef: string | null;
264
264
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -290,10 +290,10 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
290
290
  orgId: string;
291
291
  createdAt: Date;
292
292
  name: string;
293
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
293
294
  metadata: Record<string, unknown> | null;
294
295
  key: string;
295
296
  slug: string;
296
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
297
297
  sourceLocator: string | null;
298
298
  sourceRef: string | null;
299
299
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -454,10 +454,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
454
454
  orgId: string;
455
455
  createdAt: Date;
456
456
  name: string;
457
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
457
458
  metadata: Record<string, unknown> | null;
458
459
  key: string;
459
460
  slug: string;
460
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
461
461
  sourceLocator: string | null;
462
462
  sourceRef: string | null;
463
463
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -474,10 +474,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
474
474
  orgId: string;
475
475
  createdAt: Date;
476
476
  name: string;
477
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
477
478
  metadata: Record<string, unknown> | null;
478
479
  key: string;
479
480
  slug: string;
480
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
481
481
  sourceLocator: string | null;
482
482
  sourceRef: string | null;
483
483
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -521,10 +521,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
521
521
  orgId: string;
522
522
  createdAt: Date;
523
523
  name: string;
524
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
524
525
  metadata: Record<string, unknown> | null;
525
526
  key: string;
526
527
  slug: string;
527
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
528
528
  sourceLocator: string | null;
529
529
  sourceRef: string | null;
530
530
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -541,10 +541,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
541
541
  orgId: string;
542
542
  createdAt: Date;
543
543
  name: string;
544
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
544
545
  metadata: Record<string, unknown> | null;
545
546
  key: string;
546
547
  slug: string;
547
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
548
548
  sourceLocator: string | null;
549
549
  sourceRef: string | null;
550
550
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -623,10 +623,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
623
623
  orgId: string;
624
624
  createdAt: Date;
625
625
  name: string;
626
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
626
627
  metadata: Record<string, unknown> | null;
627
628
  key: string;
628
629
  slug: string;
629
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
630
630
  sourceLocator: string | null;
631
631
  sourceRef: string | null;
632
632
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -652,10 +652,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
652
652
  orgId: string;
653
653
  createdAt: Date;
654
654
  name: string;
655
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
655
656
  metadata: Record<string, unknown> | null;
656
657
  key: string;
657
658
  slug: string;
658
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
659
659
  sourceLocator: string | null;
660
660
  sourceRef: string | null;
661
661
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -691,10 +691,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
691
691
  orgId: string;
692
692
  createdAt: Date;
693
693
  name: string;
694
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
694
695
  metadata: Record<string, unknown> | null;
695
696
  key: string;
696
697
  slug: string;
697
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
698
698
  sourceLocator: string | null;
699
699
  sourceRef: string | null;
700
700
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -720,10 +720,10 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
720
720
  orgId: string;
721
721
  createdAt: Date;
722
722
  name: string;
723
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
723
724
  metadata: Record<string, unknown> | null;
724
725
  key: string;
725
726
  slug: string;
726
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
727
727
  sourceLocator: string | null;
728
728
  sourceRef: string | null;
729
729
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -836,10 +836,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
836
836
  orgId: string;
837
837
  createdAt: Date;
838
838
  name: string;
839
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
839
840
  metadata: Record<string, unknown> | null;
840
841
  key: string;
841
842
  slug: string;
842
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
843
843
  sourceLocator: string | null;
844
844
  sourceRef: string | null;
845
845
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -856,10 +856,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
856
856
  orgId: string;
857
857
  createdAt: Date;
858
858
  name: string;
859
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
859
860
  metadata: Record<string, unknown> | null;
860
861
  key: string;
861
862
  slug: string;
862
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
863
863
  sourceLocator: string | null;
864
864
  sourceRef: string | null;
865
865
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -903,10 +903,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
903
903
  orgId: string;
904
904
  createdAt: Date;
905
905
  name: string;
906
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
906
907
  metadata: Record<string, unknown> | null;
907
908
  key: string;
908
909
  slug: string;
909
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
910
910
  sourceLocator: string | null;
911
911
  sourceRef: string | null;
912
912
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -923,10 +923,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
923
923
  orgId: string;
924
924
  createdAt: Date;
925
925
  name: string;
926
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
926
927
  metadata: Record<string, unknown> | null;
927
928
  key: string;
928
929
  slug: string;
929
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
930
930
  sourceLocator: string | null;
931
931
  sourceRef: string | null;
932
932
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -987,10 +987,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
987
987
  orgId: string;
988
988
  createdAt: Date;
989
989
  name: string;
990
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
990
991
  metadata: Record<string, unknown> | null;
991
992
  key: string;
992
993
  slug: string;
993
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
994
994
  sourceLocator: string | null;
995
995
  sourceRef: string | null;
996
996
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -1013,10 +1013,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1013
1013
  orgId: string;
1014
1014
  createdAt: Date;
1015
1015
  name: string;
1016
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
1016
1017
  metadata: Record<string, unknown> | null;
1017
1018
  key: string;
1018
1019
  slug: string;
1019
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
1020
1020
  sourceLocator: string | null;
1021
1021
  sourceRef: string | null;
1022
1022
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -1048,10 +1048,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1048
1048
  orgId: string;
1049
1049
  createdAt: Date;
1050
1050
  name: string;
1051
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
1051
1052
  metadata: Record<string, unknown> | null;
1052
1053
  key: string;
1053
1054
  slug: string;
1054
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
1055
1055
  sourceLocator: string | null;
1056
1056
  sourceRef: string | null;
1057
1057
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -1074,10 +1074,10 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
1074
1074
  orgId: string;
1075
1075
  createdAt: Date;
1076
1076
  name: string;
1077
+ sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
1077
1078
  metadata: Record<string, unknown> | null;
1078
1079
  key: string;
1079
1080
  slug: string;
1080
- sourceType: "url" | "local_path" | "github" | "catalog" | "skills_sh";
1081
1081
  sourceLocator: string | null;
1082
1082
  sourceRef: string | null;
1083
1083
  trustLevel: "markdown_only" | "assets" | "scripts_executables";
@@ -90,4 +90,39 @@ export declare const updateOrganizationWorkspaceFileSchema: z.ZodObject<{
90
90
  content: string;
91
91
  }>;
92
92
  export type UpdateOrganizationWorkspaceFile = z.infer<typeof updateOrganizationWorkspaceFileSchema>;
93
+ export declare const createOrganizationWorkspaceFileSchema: z.ZodObject<{
94
+ filePath: z.ZodString;
95
+ content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ content: string;
98
+ filePath: string;
99
+ }, {
100
+ filePath: string;
101
+ content?: string | undefined;
102
+ }>;
103
+ export type CreateOrganizationWorkspaceFile = z.infer<typeof createOrganizationWorkspaceFileSchema>;
104
+ export declare const createOrganizationWorkspaceDirectorySchema: z.ZodObject<{
105
+ directoryPath: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ directoryPath: string;
108
+ }, {
109
+ directoryPath: string;
110
+ }>;
111
+ export type CreateOrganizationWorkspaceDirectory = z.infer<typeof createOrganizationWorkspaceDirectorySchema>;
112
+ export declare const renameOrganizationWorkspaceEntrySchema: z.ZodObject<{
113
+ name: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ name: string;
116
+ }, {
117
+ name: string;
118
+ }>;
119
+ export type RenameOrganizationWorkspaceEntry = z.infer<typeof renameOrganizationWorkspaceEntrySchema>;
120
+ export declare const moveOrganizationWorkspaceEntrySchema: z.ZodObject<{
121
+ destinationDirectoryPath: z.ZodDefault<z.ZodString>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ destinationDirectoryPath: string;
124
+ }, {
125
+ destinationDirectoryPath?: string | undefined;
126
+ }>;
127
+ export type MoveOrganizationWorkspaceEntry = z.infer<typeof moveOrganizationWorkspaceEntrySchema>;
93
128
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/validators/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EA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EhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,qCAAqC;;;;;;;;;EAGhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,0CAA0C;;;;;;EAErD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC;AAE9G,eAAO,MAAM,sCAAsC;;;;;;EAEjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEtG,eAAO,MAAM,oCAAoC;;;;;;EAE/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
@@ -35,4 +35,17 @@ export const updateOrganizationBrandingSchema = z
35
35
  export const updateOrganizationWorkspaceFileSchema = z.object({
36
36
  content: z.string(),
37
37
  });
38
+ export const createOrganizationWorkspaceFileSchema = z.object({
39
+ filePath: z.string().trim().min(1).max(1000),
40
+ content: z.string().optional().default(""),
41
+ });
42
+ export const createOrganizationWorkspaceDirectorySchema = z.object({
43
+ directoryPath: z.string().trim().min(1).max(1000),
44
+ });
45
+ export const renameOrganizationWorkspaceEntrySchema = z.object({
46
+ name: z.string().trim().min(1).max(255),
47
+ });
48
+ export const moveOrganizationWorkspaceEntrySchema = z.object({
49
+ destinationDirectoryPath: z.string().trim().max(1000).default(""),
50
+ });
38
51
  //# sourceMappingURL=organization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/validators/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,E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