@sentry/junior 0.87.0 → 0.88.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.
- package/dist/{agent-hooks-NWOUB3UR.js → agent-hooks-RIJ5TSWP.js} +8 -8
- package/dist/api/people/list.d.ts +4 -0
- package/dist/api/people/list.js +83 -0
- package/dist/api/people/list.query.d.ts +4 -0
- package/dist/api/people/profile.d.ts +4 -0
- package/dist/api/people/profile.js +131 -0
- package/dist/api/people/profile.query.d.ts +4 -0
- package/dist/api/people/shared.d.ts +76 -0
- package/dist/api/people/types.d.ts +85 -0
- package/dist/app.js +43 -40
- package/dist/{catalog-runtime-XOD7YPRS.js → catalog-runtime-MW7XERSU.js} +3 -3
- package/dist/chat/conversations/sql/migrations.d.ts +1 -1
- package/dist/chat/conversations/sql/schema/identities.d.ts +54 -3
- package/dist/chat/conversations/sql/schema/users.d.ts +109 -0
- package/dist/chat/conversations/sql/schema.d.ts +164 -3
- package/dist/chat/conversations/sql/store.d.ts +0 -1
- package/dist/chat/identities/identity.d.ts +18 -0
- package/dist/chat/identities/sql.d.ts +4 -0
- package/dist/chat/runtime/processing-reaction.d.ts +2 -1
- package/dist/chat/runtime/slack-resume.d.ts +3 -2
- package/dist/chat/runtime/thread-context.d.ts +3 -1
- package/dist/chat/runtime/turn-user-message.d.ts +2 -1
- package/dist/chat/services/conversation-memory.d.ts +3 -1
- package/dist/chat/slack/message.d.ts +2 -1
- package/dist/chat/slack/outbound.d.ts +5 -4
- package/dist/chat/slack/timestamp.d.ts +6 -0
- package/dist/chat/sql/schema.d.ts +163 -3
- package/dist/chat/tools/slack/context.d.ts +2 -1
- package/dist/{chunk-ENPSU7L7.js → chunk-2DPZRS3B.js} +4 -4
- package/dist/{chunk-6I6HBOQM.js → chunk-4IXHIV37.js} +413 -157
- package/dist/{chunk-JRXCSSSU.js → chunk-6UPQ5GTJ.js} +3 -3
- package/dist/{chunk-64ACM6AP.js → chunk-7ES37H6U.js} +2 -2
- package/dist/{chunk-GGD6WK6V.js → chunk-AHLSXMOU.js} +2 -2
- package/dist/{chunk-2TAIGJPQ.js → chunk-C5NCV3OB.js} +1 -1
- package/dist/{chunk-6O5UI3RG.js → chunk-F22AM3OW.js} +1 -1
- package/dist/{chunk-BRSQQRG6.js → chunk-IATAYWFU.js} +2 -2
- package/dist/{chunk-BQ3ITJA6.js → chunk-KBFQXJL4.js} +2 -2
- package/dist/{chunk-ACJJJEGG.js → chunk-KBSLCOGE.js} +8 -8
- package/dist/{chunk-IXTBFABZ.js → chunk-KQKIA4CU.js} +1 -1
- package/dist/{chunk-B6FQPS7A.js → chunk-NYJLQI42.js} +22 -20
- package/dist/chunk-PBV4ZIVM.js +261 -0
- package/dist/{chunk-ZU2ALUVQ.js → chunk-S35CPNPT.js} +1 -1
- package/dist/{chunk-RIB3M6YA.js → chunk-V6XDCS3X.js} +4 -4
- package/dist/{chunk-KF7522P3.js → chunk-VMBZFPZM.js} +11 -1
- package/dist/{chunk-2NFV5FMB.js → chunk-XS6NLQPA.js} +21 -12
- package/dist/{chunk-GB5DFM4D.js → chunk-YPAE5RH3.js} +1 -1
- package/dist/cli/chat.js +6 -6
- package/dist/cli/check.js +4 -4
- package/dist/cli/plugins.js +11 -11
- package/dist/cli/snapshot-warmup.js +6 -6
- package/dist/cli/upgrade.js +12 -12
- package/dist/{db-SZVUU7RB.js → db-37HOGLI7.js} +5 -5
- package/dist/nitro.js +4 -4
- package/dist/reporting/conversations.d.ts +0 -56
- package/dist/reporting.d.ts +2 -8
- package/dist/reporting.js +14 -290
- package/dist/{runner-DMP3IQNM.js → runner-BCRF2FCI.js} +13 -13
- package/dist/{validation-MBNJKWPQ.js → validation-FMJO3L5P.js} +4 -4
- package/package.json +14 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { juniorConversations, juniorDestinations, juniorIdentities, juniorSchemaMigrations, } from "@/chat/conversations/sql/schema";
|
|
1
|
+
export { juniorConversations, juniorDestinations, juniorIdentities, juniorSchemaMigrations, juniorUsers, } from "@/chat/conversations/sql/schema";
|
|
2
2
|
export declare const juniorSqlSchema: {
|
|
3
3
|
juniorConversations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
4
|
name: "junior_conversations";
|
|
@@ -658,7 +658,7 @@ export declare const juniorSqlSchema: {
|
|
|
658
658
|
tableName: "junior_identities";
|
|
659
659
|
dataType: "string";
|
|
660
660
|
columnType: "PgText";
|
|
661
|
-
data: import("../
|
|
661
|
+
data: import("../identities/identity").IdentityKind;
|
|
662
662
|
driverParam: string;
|
|
663
663
|
notNull: true;
|
|
664
664
|
hasDefault: false;
|
|
@@ -670,7 +670,7 @@ export declare const juniorSqlSchema: {
|
|
|
670
670
|
identity: undefined;
|
|
671
671
|
generated: undefined;
|
|
672
672
|
}, {}, {
|
|
673
|
-
$type: import("../
|
|
673
|
+
$type: import("../identities/identity").IdentityKind;
|
|
674
674
|
}>;
|
|
675
675
|
provider: import("drizzle-orm/pg-core").PgColumn<{
|
|
676
676
|
name: "provider";
|
|
@@ -842,6 +842,57 @@ export declare const juniorSqlSchema: {
|
|
|
842
842
|
identity: undefined;
|
|
843
843
|
generated: undefined;
|
|
844
844
|
}, {}, {}>;
|
|
845
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
846
|
+
name: "user_id";
|
|
847
|
+
tableName: "junior_identities";
|
|
848
|
+
dataType: "string";
|
|
849
|
+
columnType: "PgText";
|
|
850
|
+
data: string;
|
|
851
|
+
driverParam: string;
|
|
852
|
+
notNull: false;
|
|
853
|
+
hasDefault: false;
|
|
854
|
+
isPrimaryKey: false;
|
|
855
|
+
isAutoincrement: false;
|
|
856
|
+
hasRuntimeDefault: false;
|
|
857
|
+
enumValues: [string, ...string[]];
|
|
858
|
+
baseColumn: never;
|
|
859
|
+
identity: undefined;
|
|
860
|
+
generated: undefined;
|
|
861
|
+
}, {}, {}>;
|
|
862
|
+
emailNormalized: import("drizzle-orm/pg-core").PgColumn<{
|
|
863
|
+
name: "email_normalized";
|
|
864
|
+
tableName: "junior_identities";
|
|
865
|
+
dataType: "string";
|
|
866
|
+
columnType: "PgText";
|
|
867
|
+
data: string;
|
|
868
|
+
driverParam: string;
|
|
869
|
+
notNull: false;
|
|
870
|
+
hasDefault: false;
|
|
871
|
+
isPrimaryKey: false;
|
|
872
|
+
isAutoincrement: false;
|
|
873
|
+
hasRuntimeDefault: false;
|
|
874
|
+
enumValues: [string, ...string[]];
|
|
875
|
+
baseColumn: never;
|
|
876
|
+
identity: undefined;
|
|
877
|
+
generated: undefined;
|
|
878
|
+
}, {}, {}>;
|
|
879
|
+
emailVerified: import("drizzle-orm/pg-core").PgColumn<{
|
|
880
|
+
name: "email_verified";
|
|
881
|
+
tableName: "junior_identities";
|
|
882
|
+
dataType: "boolean";
|
|
883
|
+
columnType: "PgBoolean";
|
|
884
|
+
data: boolean;
|
|
885
|
+
driverParam: boolean;
|
|
886
|
+
notNull: true;
|
|
887
|
+
hasDefault: true;
|
|
888
|
+
isPrimaryKey: false;
|
|
889
|
+
isAutoincrement: false;
|
|
890
|
+
hasRuntimeDefault: false;
|
|
891
|
+
enumValues: undefined;
|
|
892
|
+
baseColumn: never;
|
|
893
|
+
identity: undefined;
|
|
894
|
+
generated: undefined;
|
|
895
|
+
}, {}, {}>;
|
|
845
896
|
};
|
|
846
897
|
dialect: "pg";
|
|
847
898
|
}>;
|
|
@@ -903,4 +954,113 @@ export declare const juniorSqlSchema: {
|
|
|
903
954
|
};
|
|
904
955
|
dialect: "pg";
|
|
905
956
|
}>;
|
|
957
|
+
juniorUsers: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
958
|
+
name: "junior_users";
|
|
959
|
+
schema: undefined;
|
|
960
|
+
columns: {
|
|
961
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
962
|
+
name: "id";
|
|
963
|
+
tableName: "junior_users";
|
|
964
|
+
dataType: "string";
|
|
965
|
+
columnType: "PgText";
|
|
966
|
+
data: string;
|
|
967
|
+
driverParam: string;
|
|
968
|
+
notNull: true;
|
|
969
|
+
hasDefault: false;
|
|
970
|
+
isPrimaryKey: true;
|
|
971
|
+
isAutoincrement: false;
|
|
972
|
+
hasRuntimeDefault: false;
|
|
973
|
+
enumValues: [string, ...string[]];
|
|
974
|
+
baseColumn: never;
|
|
975
|
+
identity: undefined;
|
|
976
|
+
generated: undefined;
|
|
977
|
+
}, {}, {}>;
|
|
978
|
+
primaryEmail: import("drizzle-orm/pg-core").PgColumn<{
|
|
979
|
+
name: "primary_email";
|
|
980
|
+
tableName: "junior_users";
|
|
981
|
+
dataType: "string";
|
|
982
|
+
columnType: "PgText";
|
|
983
|
+
data: string;
|
|
984
|
+
driverParam: string;
|
|
985
|
+
notNull: true;
|
|
986
|
+
hasDefault: false;
|
|
987
|
+
isPrimaryKey: false;
|
|
988
|
+
isAutoincrement: false;
|
|
989
|
+
hasRuntimeDefault: false;
|
|
990
|
+
enumValues: [string, ...string[]];
|
|
991
|
+
baseColumn: never;
|
|
992
|
+
identity: undefined;
|
|
993
|
+
generated: undefined;
|
|
994
|
+
}, {}, {}>;
|
|
995
|
+
primaryEmailNormalized: import("drizzle-orm/pg-core").PgColumn<{
|
|
996
|
+
name: "primary_email_normalized";
|
|
997
|
+
tableName: "junior_users";
|
|
998
|
+
dataType: "string";
|
|
999
|
+
columnType: "PgText";
|
|
1000
|
+
data: string;
|
|
1001
|
+
driverParam: string;
|
|
1002
|
+
notNull: true;
|
|
1003
|
+
hasDefault: false;
|
|
1004
|
+
isPrimaryKey: false;
|
|
1005
|
+
isAutoincrement: false;
|
|
1006
|
+
hasRuntimeDefault: false;
|
|
1007
|
+
enumValues: [string, ...string[]];
|
|
1008
|
+
baseColumn: never;
|
|
1009
|
+
identity: undefined;
|
|
1010
|
+
generated: undefined;
|
|
1011
|
+
}, {}, {}>;
|
|
1012
|
+
displayName: import("drizzle-orm/pg-core").PgColumn<{
|
|
1013
|
+
name: "display_name";
|
|
1014
|
+
tableName: "junior_users";
|
|
1015
|
+
dataType: "string";
|
|
1016
|
+
columnType: "PgText";
|
|
1017
|
+
data: string;
|
|
1018
|
+
driverParam: string;
|
|
1019
|
+
notNull: false;
|
|
1020
|
+
hasDefault: false;
|
|
1021
|
+
isPrimaryKey: false;
|
|
1022
|
+
isAutoincrement: false;
|
|
1023
|
+
hasRuntimeDefault: false;
|
|
1024
|
+
enumValues: [string, ...string[]];
|
|
1025
|
+
baseColumn: never;
|
|
1026
|
+
identity: undefined;
|
|
1027
|
+
generated: undefined;
|
|
1028
|
+
}, {}, {}>;
|
|
1029
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1030
|
+
name: string;
|
|
1031
|
+
tableName: "junior_users";
|
|
1032
|
+
dataType: "date";
|
|
1033
|
+
columnType: "PgTimestamp";
|
|
1034
|
+
data: Date;
|
|
1035
|
+
driverParam: string;
|
|
1036
|
+
notNull: true;
|
|
1037
|
+
hasDefault: false;
|
|
1038
|
+
isPrimaryKey: false;
|
|
1039
|
+
isAutoincrement: false;
|
|
1040
|
+
hasRuntimeDefault: false;
|
|
1041
|
+
enumValues: undefined;
|
|
1042
|
+
baseColumn: never;
|
|
1043
|
+
identity: undefined;
|
|
1044
|
+
generated: undefined;
|
|
1045
|
+
}, {}, {}>;
|
|
1046
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1047
|
+
name: string;
|
|
1048
|
+
tableName: "junior_users";
|
|
1049
|
+
dataType: "date";
|
|
1050
|
+
columnType: "PgTimestamp";
|
|
1051
|
+
data: Date;
|
|
1052
|
+
driverParam: string;
|
|
1053
|
+
notNull: true;
|
|
1054
|
+
hasDefault: false;
|
|
1055
|
+
isPrimaryKey: false;
|
|
1056
|
+
isAutoincrement: false;
|
|
1057
|
+
hasRuntimeDefault: false;
|
|
1058
|
+
enumValues: undefined;
|
|
1059
|
+
baseColumn: never;
|
|
1060
|
+
identity: undefined;
|
|
1061
|
+
generated: undefined;
|
|
1062
|
+
}, {}, {}>;
|
|
1063
|
+
};
|
|
1064
|
+
dialect: "pg";
|
|
1065
|
+
}>;
|
|
906
1066
|
};
|
|
@@ -2,12 +2,13 @@ import type { ToolRuntimeContext } from "@/chat/tools/types";
|
|
|
2
2
|
import type { SlackDestination } from "@sentry/junior-plugin-api";
|
|
3
3
|
import type { SlackSource } from "@sentry/junior-plugin-api";
|
|
4
4
|
import type { SlackRequester } from "@/chat/requester";
|
|
5
|
+
import { type SlackMessageTs } from "@/chat/slack/timestamp";
|
|
5
6
|
export interface SlackToolContext {
|
|
6
7
|
destination: SlackDestination;
|
|
7
8
|
source: SlackSource;
|
|
8
9
|
requester?: SlackRequester;
|
|
9
10
|
destinationChannelId: string;
|
|
10
|
-
messageTs?:
|
|
11
|
+
messageTs?: SlackMessageTs;
|
|
11
12
|
sourceChannelId: string;
|
|
12
13
|
teamId: string;
|
|
13
14
|
threadTs?: string;
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getDefaultRedisStateAdapterFor,
|
|
6
6
|
getStateAdapter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YPAE5RH3.js";
|
|
8
8
|
import {
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AHLSXMOU.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-S35CPNPT.js";
|
|
15
15
|
import {
|
|
16
16
|
parseStoredSlackRequester
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KQKIA4CU.js";
|
|
18
18
|
import {
|
|
19
19
|
isRecord,
|
|
20
20
|
toOptionalNumber,
|