@rudderhq/shared 0.2.0-canary.9 → 0.2.1
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.
- package/dist/constants.d.ts +2 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/token-usage.d.ts +17 -0
- package/dist/token-usage.d.ts.map +1 -0
- package/dist/token-usage.js +34 -0
- package/dist/token-usage.js.map +1 -0
- package/dist/token-usage.test.d.ts +2 -0
- package/dist/token-usage.test.d.ts.map +1 -0
- package/dist/token-usage.test.js +30 -0
- package/dist/token-usage.test.js.map +1 -0
- package/dist/types/adapter-skills.d.ts +10 -0
- package/dist/types/adapter-skills.d.ts.map +1 -1
- package/dist/types/approval.d.ts +9 -0
- package/dist/types/approval.d.ts.map +1 -1
- package/dist/types/chat.d.ts +5 -2
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/cost.d.ts +19 -1
- package/dist/types/cost.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instance.d.ts +1 -0
- package/dist/types/instance.d.ts.map +1 -1
- package/dist/types/issue.d.ts +15 -0
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/messenger.d.ts +2 -0
- package/dist/types/messenger.d.ts.map +1 -1
- package/dist/types/organization.d.ts +3 -0
- package/dist/types/organization.d.ts.map +1 -1
- package/dist/validators/adapter-skills.d.ts +8 -0
- package/dist/validators/adapter-skills.d.ts.map +1 -1
- package/dist/validators/adapter-skills.js +3 -0
- package/dist/validators/adapter-skills.js.map +1 -1
- package/dist/validators/automation.d.ts +4 -4
- package/dist/validators/calendar.d.ts +8 -8
- package/dist/validators/chat.d.ts +17 -4
- package/dist/validators/chat.d.ts.map +1 -1
- package/dist/validators/chat.js +3 -0
- package/dist/validators/chat.js.map +1 -1
- package/dist/validators/finance.d.ts +4 -4
- package/dist/validators/goal.d.ts +4 -4
- package/dist/validators/index.d.ts +2 -2
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +2 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +6 -0
- package/dist/validators/instance.d.ts.map +1 -1
- package/dist/validators/instance.js +1 -0
- package/dist/validators/instance.js.map +1 -1
- package/dist/validators/instance.test.js +10 -1
- package/dist/validators/instance.test.js.map +1 -1
- package/dist/validators/issue.d.ts +30 -4
- package/dist/validators/issue.d.ts.map +1 -1
- package/dist/validators/issue.js +9 -0
- package/dist/validators/issue.js.map +1 -1
- package/dist/validators/organization-portability.d.ts +6 -6
- package/dist/validators/organization-skill.d.ts +22 -22
- package/dist/validators/plugin.d.ts +4 -4
- package/dist/validators/project.d.ts +4 -4
- package/package.json +1 -1
|
@@ -42,9 +42,9 @@ export declare const organizationSkillSchema: z.ZodObject<{
|
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
updatedAt: Date;
|
|
44
44
|
markdown: string;
|
|
45
|
+
description: string | null;
|
|
45
46
|
id: string;
|
|
46
47
|
orgId: string;
|
|
47
|
-
description: string | null;
|
|
48
48
|
createdAt: Date;
|
|
49
49
|
name: string;
|
|
50
50
|
metadata: Record<string, unknown> | null;
|
|
@@ -62,9 +62,9 @@ export declare const organizationSkillSchema: z.ZodObject<{
|
|
|
62
62
|
}, {
|
|
63
63
|
updatedAt: Date;
|
|
64
64
|
markdown: string;
|
|
65
|
+
description: string | null;
|
|
65
66
|
id: string;
|
|
66
67
|
orgId: string;
|
|
67
|
-
description: string | null;
|
|
68
68
|
createdAt: Date;
|
|
69
69
|
name: string;
|
|
70
70
|
metadata: Record<string, unknown> | null;
|
|
@@ -117,9 +117,9 @@ export declare const organizationSkillListItemSchema: z.ZodObject<{
|
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
updatedAt: Date;
|
|
119
119
|
markdown: string;
|
|
120
|
+
description: string | null;
|
|
120
121
|
id: string;
|
|
121
122
|
orgId: string;
|
|
122
|
-
description: string | null;
|
|
123
123
|
createdAt: Date;
|
|
124
124
|
name: string;
|
|
125
125
|
metadata: Record<string, unknown> | null;
|
|
@@ -144,9 +144,9 @@ export declare const organizationSkillListItemSchema: z.ZodObject<{
|
|
|
144
144
|
}, {
|
|
145
145
|
updatedAt: Date;
|
|
146
146
|
markdown: string;
|
|
147
|
+
description: string | null;
|
|
147
148
|
id: string;
|
|
148
149
|
orgId: string;
|
|
149
|
-
description: string | null;
|
|
150
150
|
createdAt: Date;
|
|
151
151
|
name: string;
|
|
152
152
|
metadata: Record<string, unknown> | null;
|
|
@@ -250,9 +250,9 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
|
|
|
250
250
|
}, "strip", z.ZodTypeAny, {
|
|
251
251
|
updatedAt: Date;
|
|
252
252
|
markdown: string;
|
|
253
|
+
description: string | null;
|
|
253
254
|
id: string;
|
|
254
255
|
orgId: string;
|
|
255
|
-
description: string | null;
|
|
256
256
|
createdAt: Date;
|
|
257
257
|
name: string;
|
|
258
258
|
metadata: Record<string, unknown> | null;
|
|
@@ -285,9 +285,9 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
|
|
|
285
285
|
}, {
|
|
286
286
|
updatedAt: Date;
|
|
287
287
|
markdown: string;
|
|
288
|
+
description: string | null;
|
|
288
289
|
id: string;
|
|
289
290
|
orgId: string;
|
|
290
|
-
description: string | null;
|
|
291
291
|
createdAt: Date;
|
|
292
292
|
name: string;
|
|
293
293
|
metadata: Record<string, unknown> | null;
|
|
@@ -449,9 +449,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
449
449
|
}, "strip", z.ZodTypeAny, {
|
|
450
450
|
updatedAt: Date;
|
|
451
451
|
markdown: string;
|
|
452
|
+
description: string | null;
|
|
452
453
|
id: string;
|
|
453
454
|
orgId: string;
|
|
454
|
-
description: string | null;
|
|
455
455
|
createdAt: Date;
|
|
456
456
|
name: string;
|
|
457
457
|
metadata: Record<string, unknown> | null;
|
|
@@ -469,9 +469,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
469
469
|
}, {
|
|
470
470
|
updatedAt: Date;
|
|
471
471
|
markdown: string;
|
|
472
|
+
description: string | null;
|
|
472
473
|
id: string;
|
|
473
474
|
orgId: string;
|
|
474
|
-
description: string | null;
|
|
475
475
|
createdAt: Date;
|
|
476
476
|
name: string;
|
|
477
477
|
metadata: Record<string, unknown> | null;
|
|
@@ -516,9 +516,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
516
516
|
}, "strip", z.ZodTypeAny, {
|
|
517
517
|
updatedAt: Date;
|
|
518
518
|
markdown: string;
|
|
519
|
+
description: string | null;
|
|
519
520
|
id: string;
|
|
520
521
|
orgId: string;
|
|
521
|
-
description: string | null;
|
|
522
522
|
createdAt: Date;
|
|
523
523
|
name: string;
|
|
524
524
|
metadata: Record<string, unknown> | null;
|
|
@@ -536,9 +536,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
536
536
|
}, {
|
|
537
537
|
updatedAt: Date;
|
|
538
538
|
markdown: string;
|
|
539
|
+
description: string | null;
|
|
539
540
|
id: string;
|
|
540
541
|
orgId: string;
|
|
541
|
-
description: string | null;
|
|
542
542
|
createdAt: Date;
|
|
543
543
|
name: string;
|
|
544
544
|
metadata: Record<string, unknown> | null;
|
|
@@ -618,9 +618,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
618
618
|
imported: {
|
|
619
619
|
updatedAt: Date;
|
|
620
620
|
markdown: string;
|
|
621
|
+
description: string | null;
|
|
621
622
|
id: string;
|
|
622
623
|
orgId: string;
|
|
623
|
-
description: string | null;
|
|
624
624
|
createdAt: Date;
|
|
625
625
|
name: string;
|
|
626
626
|
metadata: Record<string, unknown> | null;
|
|
@@ -647,9 +647,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
647
647
|
updated: {
|
|
648
648
|
updatedAt: Date;
|
|
649
649
|
markdown: string;
|
|
650
|
+
description: string | null;
|
|
650
651
|
id: string;
|
|
651
652
|
orgId: string;
|
|
652
|
-
description: string | null;
|
|
653
653
|
createdAt: Date;
|
|
654
654
|
name: string;
|
|
655
655
|
metadata: Record<string, unknown> | null;
|
|
@@ -686,9 +686,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
686
686
|
imported: {
|
|
687
687
|
updatedAt: Date;
|
|
688
688
|
markdown: string;
|
|
689
|
+
description: string | null;
|
|
689
690
|
id: string;
|
|
690
691
|
orgId: string;
|
|
691
|
-
description: string | null;
|
|
692
692
|
createdAt: Date;
|
|
693
693
|
name: string;
|
|
694
694
|
metadata: Record<string, unknown> | null;
|
|
@@ -715,9 +715,9 @@ export declare const organizationSkillProjectScanResultSchema: z.ZodObject<{
|
|
|
715
715
|
updated: {
|
|
716
716
|
updatedAt: Date;
|
|
717
717
|
markdown: string;
|
|
718
|
+
description: string | null;
|
|
718
719
|
id: string;
|
|
719
720
|
orgId: string;
|
|
720
|
-
description: string | null;
|
|
721
721
|
createdAt: Date;
|
|
722
722
|
name: string;
|
|
723
723
|
metadata: Record<string, unknown> | null;
|
|
@@ -831,9 +831,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
831
831
|
}, "strip", z.ZodTypeAny, {
|
|
832
832
|
updatedAt: Date;
|
|
833
833
|
markdown: string;
|
|
834
|
+
description: string | null;
|
|
834
835
|
id: string;
|
|
835
836
|
orgId: string;
|
|
836
|
-
description: string | null;
|
|
837
837
|
createdAt: Date;
|
|
838
838
|
name: string;
|
|
839
839
|
metadata: Record<string, unknown> | null;
|
|
@@ -851,9 +851,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
851
851
|
}, {
|
|
852
852
|
updatedAt: Date;
|
|
853
853
|
markdown: string;
|
|
854
|
+
description: string | null;
|
|
854
855
|
id: string;
|
|
855
856
|
orgId: string;
|
|
856
|
-
description: string | null;
|
|
857
857
|
createdAt: Date;
|
|
858
858
|
name: string;
|
|
859
859
|
metadata: Record<string, unknown> | null;
|
|
@@ -898,9 +898,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
898
898
|
}, "strip", z.ZodTypeAny, {
|
|
899
899
|
updatedAt: Date;
|
|
900
900
|
markdown: string;
|
|
901
|
+
description: string | null;
|
|
901
902
|
id: string;
|
|
902
903
|
orgId: string;
|
|
903
|
-
description: string | null;
|
|
904
904
|
createdAt: Date;
|
|
905
905
|
name: string;
|
|
906
906
|
metadata: Record<string, unknown> | null;
|
|
@@ -918,9 +918,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
918
918
|
}, {
|
|
919
919
|
updatedAt: Date;
|
|
920
920
|
markdown: string;
|
|
921
|
+
description: string | null;
|
|
921
922
|
id: string;
|
|
922
923
|
orgId: string;
|
|
923
|
-
description: string | null;
|
|
924
924
|
createdAt: Date;
|
|
925
925
|
name: string;
|
|
926
926
|
metadata: Record<string, unknown> | null;
|
|
@@ -982,9 +982,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
982
982
|
imported: {
|
|
983
983
|
updatedAt: Date;
|
|
984
984
|
markdown: string;
|
|
985
|
+
description: string | null;
|
|
985
986
|
id: string;
|
|
986
987
|
orgId: string;
|
|
987
|
-
description: string | null;
|
|
988
988
|
createdAt: Date;
|
|
989
989
|
name: string;
|
|
990
990
|
metadata: Record<string, unknown> | null;
|
|
@@ -1008,9 +1008,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
1008
1008
|
updated: {
|
|
1009
1009
|
updatedAt: Date;
|
|
1010
1010
|
markdown: string;
|
|
1011
|
+
description: string | null;
|
|
1011
1012
|
id: string;
|
|
1012
1013
|
orgId: string;
|
|
1013
|
-
description: string | null;
|
|
1014
1014
|
createdAt: Date;
|
|
1015
1015
|
name: string;
|
|
1016
1016
|
metadata: Record<string, unknown> | null;
|
|
@@ -1043,9 +1043,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
1043
1043
|
imported: {
|
|
1044
1044
|
updatedAt: Date;
|
|
1045
1045
|
markdown: string;
|
|
1046
|
+
description: string | null;
|
|
1046
1047
|
id: string;
|
|
1047
1048
|
orgId: string;
|
|
1048
|
-
description: string | null;
|
|
1049
1049
|
createdAt: Date;
|
|
1050
1050
|
name: string;
|
|
1051
1051
|
metadata: Record<string, unknown> | null;
|
|
@@ -1069,9 +1069,9 @@ export declare const organizationSkillLocalScanResultSchema: z.ZodObject<{
|
|
|
1069
1069
|
updated: {
|
|
1070
1070
|
updatedAt: Date;
|
|
1071
1071
|
markdown: string;
|
|
1072
|
+
description: string | null;
|
|
1072
1073
|
id: string;
|
|
1073
1074
|
orgId: string;
|
|
1074
|
-
description: string | null;
|
|
1075
1075
|
createdAt: Date;
|
|
1076
1076
|
name: string;
|
|
1077
1077
|
metadata: Record<string, unknown> | null;
|
|
@@ -713,8 +713,8 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
713
713
|
}>>;
|
|
714
714
|
}, "strip", z.ZodTypeAny, {
|
|
715
715
|
version: string;
|
|
716
|
-
id: string;
|
|
717
716
|
description: string;
|
|
717
|
+
id: string;
|
|
718
718
|
capabilities: ("organizations.read" | "projects.read" | "project.workspaces.read" | "issues.read" | "issue.comments.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.create" | "issues.update" | "issue.comments.create" | "issue.documents.write" | "agents.pause" | "agents.resume" | "agents.invoke" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "http.outbound" | "secrets.read-ref" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
|
|
719
719
|
displayName: string;
|
|
720
720
|
apiVersion: 1;
|
|
@@ -793,8 +793,8 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
793
793
|
}[] | undefined;
|
|
794
794
|
}, {
|
|
795
795
|
version: string;
|
|
796
|
-
id: string;
|
|
797
796
|
description: string;
|
|
797
|
+
id: string;
|
|
798
798
|
capabilities: ("organizations.read" | "projects.read" | "project.workspaces.read" | "issues.read" | "issue.comments.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.create" | "issues.update" | "issue.comments.create" | "issue.documents.write" | "agents.pause" | "agents.resume" | "agents.invoke" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "http.outbound" | "secrets.read-ref" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
|
|
799
799
|
displayName: string;
|
|
800
800
|
apiVersion: 1;
|
|
@@ -873,8 +873,8 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
873
873
|
}[] | undefined;
|
|
874
874
|
}>, {
|
|
875
875
|
version: string;
|
|
876
|
-
id: string;
|
|
877
876
|
description: string;
|
|
877
|
+
id: string;
|
|
878
878
|
capabilities: ("organizations.read" | "projects.read" | "project.workspaces.read" | "issues.read" | "issue.comments.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.create" | "issues.update" | "issue.comments.create" | "issue.documents.write" | "agents.pause" | "agents.resume" | "agents.invoke" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "http.outbound" | "secrets.read-ref" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
|
|
879
879
|
displayName: string;
|
|
880
880
|
apiVersion: 1;
|
|
@@ -953,8 +953,8 @@ export declare const pluginManifestV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
953
953
|
}[] | undefined;
|
|
954
954
|
}, {
|
|
955
955
|
version: string;
|
|
956
|
-
id: string;
|
|
957
956
|
description: string;
|
|
957
|
+
id: string;
|
|
958
958
|
capabilities: ("organizations.read" | "projects.read" | "project.workspaces.read" | "issues.read" | "issue.comments.read" | "issue.documents.read" | "agents.read" | "goals.read" | "goals.create" | "goals.update" | "activity.read" | "costs.read" | "issues.create" | "issues.update" | "issue.comments.create" | "issue.documents.write" | "agents.pause" | "agents.resume" | "agents.invoke" | "agent.sessions.create" | "agent.sessions.list" | "agent.sessions.send" | "agent.sessions.close" | "activity.log.write" | "metrics.write" | "plugin.state.read" | "plugin.state.write" | "events.subscribe" | "events.emit" | "jobs.schedule" | "webhooks.receive" | "http.outbound" | "secrets.read-ref" | "agent.tools.register" | "instance.settings.register" | "ui.sidebar.register" | "ui.page.register" | "ui.detailTab.register" | "ui.dashboardWidget.register" | "ui.commentAnnotation.register" | "ui.action.register")[];
|
|
959
959
|
displayName: string;
|
|
960
960
|
apiVersion: 1;
|
|
@@ -320,8 +320,8 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
321
|
status: "backlog" | "in_progress" | "cancelled" | "planned" | "completed";
|
|
322
322
|
name: string;
|
|
323
|
-
goalId?: string | null | undefined;
|
|
324
323
|
description?: string | null | undefined;
|
|
324
|
+
goalId?: string | null | undefined;
|
|
325
325
|
targetDate?: string | null | undefined;
|
|
326
326
|
color?: string | null | undefined;
|
|
327
327
|
executionWorkspacePolicy?: {
|
|
@@ -365,8 +365,8 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
365
365
|
}, {
|
|
366
366
|
name: string;
|
|
367
367
|
status?: "backlog" | "in_progress" | "cancelled" | "planned" | "completed" | undefined;
|
|
368
|
-
goalId?: string | null | undefined;
|
|
369
368
|
description?: string | null | undefined;
|
|
369
|
+
goalId?: string | null | undefined;
|
|
370
370
|
targetDate?: string | null | undefined;
|
|
371
371
|
color?: string | null | undefined;
|
|
372
372
|
executionWorkspacePolicy?: {
|
|
@@ -535,8 +535,8 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
535
535
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
536
536
|
}, "strip", z.ZodTypeAny, {
|
|
537
537
|
status?: "backlog" | "in_progress" | "cancelled" | "planned" | "completed" | undefined;
|
|
538
|
-
goalId?: string | null | undefined;
|
|
539
538
|
description?: string | null | undefined;
|
|
539
|
+
goalId?: string | null | undefined;
|
|
540
540
|
name?: string | undefined;
|
|
541
541
|
targetDate?: string | null | undefined;
|
|
542
542
|
color?: string | null | undefined;
|
|
@@ -580,8 +580,8 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
580
580
|
archivedAt?: string | null | undefined;
|
|
581
581
|
}, {
|
|
582
582
|
status?: "backlog" | "in_progress" | "cancelled" | "planned" | "completed" | undefined;
|
|
583
|
-
goalId?: string | null | undefined;
|
|
584
583
|
description?: string | null | undefined;
|
|
584
|
+
goalId?: string | null | undefined;
|
|
585
585
|
name?: string | undefined;
|
|
586
586
|
targetDate?: string | null | undefined;
|
|
587
587
|
color?: string | null | undefined;
|