@metorial-services/subspace-client 1.0.3 → 1.0.5

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/index.d.cts CHANGED
@@ -13056,6 +13056,7 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
13056
13056
  initState: _metorial_subspace_db.SessionConnectionInitState;
13057
13057
  isManuallyDisabled: boolean;
13058
13058
  isReplaced: boolean;
13059
+ isForManualToolCalls: boolean;
13059
13060
  totalProductiveClientMessageCount: number;
13060
13061
  totalProductiveServerMessageCount: number;
13061
13062
  mcpData: PrismaJson.SessionConnectionMcpData;
@@ -13288,6 +13289,7 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
13288
13289
  initState: _metorial_subspace_db.SessionConnectionInitState;
13289
13290
  isManuallyDisabled: boolean;
13290
13291
  isReplaced: boolean;
13292
+ isForManualToolCalls: boolean;
13291
13293
  totalProductiveClientMessageCount: number;
13292
13294
  totalProductiveServerMessageCount: number;
13293
13295
  mcpData: PrismaJson.SessionConnectionMcpData;
@@ -13509,13 +13511,1495 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
13509
13511
  };
13510
13512
  }>;
13511
13513
  };
13514
+ sessionEvent: {
13515
+ list: _lowerdeck_rpc_server.Handler<Partial<Pick<{
13516
+ tenantId: string;
13517
+ environmentId: string;
13518
+ allowDeleted: boolean | undefined;
13519
+ types: (string | number | boolean)[] | undefined;
13520
+ ids: string[] | undefined;
13521
+ sessionIds: string[] | undefined;
13522
+ sessionProviderIds: string[] | undefined;
13523
+ sessionConnectionIds: string[] | undefined;
13524
+ providerRunIds: string[] | undefined;
13525
+ sessionMessageIds: string[] | undefined;
13526
+ sessionErrorIds: string[] | undefined;
13527
+ }, "allowDeleted" | "ids" | "sessionProviderIds" | "sessionIds" | "types" | "sessionConnectionIds" | "providerRunIds" | "sessionMessageIds" | "sessionErrorIds">> & {
13528
+ tenantId: string;
13529
+ environmentId: string;
13530
+ } & {
13531
+ limit?: number;
13532
+ after?: string;
13533
+ before?: string;
13534
+ cursor?: string;
13535
+ order?: "asc" | "desc";
13536
+ }, {
13537
+ __typename: string;
13538
+ items: {
13539
+ object: string;
13540
+ id: string;
13541
+ type: _metorial_subspace_db.SessionEventType;
13542
+ sessionId: string;
13543
+ connection: {
13544
+ object: string;
13545
+ id: string;
13546
+ status: _metorial_subspace_db.SessionConnectionStatus;
13547
+ connectionState: _metorial_subspace_db.SessionConnectionState;
13548
+ transport: _metorial_subspace_db.SessionConnectionTransport;
13549
+ usage: {
13550
+ totalProductiveClientMessageCount: number;
13551
+ totalProductiveServerMessageCount: number;
13552
+ };
13553
+ mcp: {
13554
+ capabilities: {
13555
+ experimental?: {
13556
+ [x: string]: object;
13557
+ } | undefined;
13558
+ sampling?: {
13559
+ context?: object | undefined;
13560
+ tools?: object | undefined;
13561
+ } | undefined;
13562
+ elicitation?: {
13563
+ [x: string]: unknown;
13564
+ form?: {
13565
+ [x: string]: unknown;
13566
+ applyDefaults?: boolean | undefined;
13567
+ } | undefined;
13568
+ url?: object | undefined;
13569
+ } | undefined;
13570
+ roots?: {
13571
+ listChanged?: boolean | undefined;
13572
+ } | undefined;
13573
+ tasks?: {
13574
+ [x: string]: unknown;
13575
+ list?: object | undefined;
13576
+ cancel?: object | undefined;
13577
+ requests?: {
13578
+ [x: string]: unknown;
13579
+ sampling?: {
13580
+ [x: string]: unknown;
13581
+ createMessage?: object | undefined;
13582
+ } | undefined;
13583
+ elicitation?: {
13584
+ [x: string]: unknown;
13585
+ create?: object | undefined;
13586
+ } | undefined;
13587
+ } | undefined;
13588
+ } | undefined;
13589
+ };
13590
+ protocolVersion: string;
13591
+ transport: _metorial_subspace_db.SessionConnectionMcpConnectionTransport;
13592
+ } | null;
13593
+ sessionId: string;
13594
+ participant: {
13595
+ object: string;
13596
+ id: string;
13597
+ type: _metorial_subspace_db.SessionParticipantType;
13598
+ identifier: string;
13599
+ name: string;
13600
+ data: PrismaJson.SessionParticipantPayload;
13601
+ providerId: string | undefined;
13602
+ createdAt: Date;
13603
+ } | null;
13604
+ createdAt: Date;
13605
+ lastMessageAt: Date | null;
13606
+ lastActiveAt: Date | null;
13607
+ } | null;
13608
+ providerRun: {
13609
+ object: string;
13610
+ id: string;
13611
+ status: _metorial_subspace_db.ProviderRunStatus;
13612
+ providerId: string;
13613
+ sessionId: string;
13614
+ sessionProviderId: string;
13615
+ connectionId: string;
13616
+ createdAt: Date;
13617
+ updatedAt: Date;
13618
+ completedAt: Date | null;
13619
+ } | null;
13620
+ message: {
13621
+ object: string;
13622
+ id: string;
13623
+ type: _metorial_subspace_db.SessionMessageType;
13624
+ status: _metorial_subspace_db.SessionMessageStatus;
13625
+ source: _metorial_subspace_db.SessionMessageSource;
13626
+ sessionId: string;
13627
+ sessionProviderId: string | null;
13628
+ connectionId: string | null;
13629
+ providerRunId: string | null;
13630
+ hierarchy: {
13631
+ type: string;
13632
+ parentMessageId: string | undefined;
13633
+ childMessageIds: string[];
13634
+ };
13635
+ transport: {
13636
+ object: string;
13637
+ type: _metorial_subspace_db.SessionConnectionTransport;
13638
+ mcp: {
13639
+ object: string;
13640
+ id: any;
13641
+ protocolVersion: string;
13642
+ transport: string;
13643
+ } | undefined;
13644
+ toolCall: {
13645
+ object: string;
13646
+ id: string | null;
13647
+ } | undefined;
13648
+ };
13649
+ input: {
13650
+ method: string;
13651
+ jsonrpc: "2.0";
13652
+ params?: {
13653
+ [x: string]: unknown;
13654
+ _meta?: {
13655
+ [x: string]: unknown;
13656
+ progressToken?: string | number | undefined;
13657
+ "io.modelcontextprotocol/related-task"?: {
13658
+ taskId: string;
13659
+ } | undefined;
13660
+ } | undefined;
13661
+ } | undefined;
13662
+ } | {
13663
+ jsonrpc: "2.0";
13664
+ id: string | number;
13665
+ result: {
13666
+ [x: string]: unknown;
13667
+ _meta?: {
13668
+ [x: string]: unknown;
13669
+ progressToken?: string | number | undefined;
13670
+ "io.modelcontextprotocol/related-task"?: {
13671
+ taskId: string;
13672
+ } | undefined;
13673
+ } | undefined;
13674
+ };
13675
+ } | {
13676
+ jsonrpc: "2.0";
13677
+ error: {
13678
+ code: number;
13679
+ message: string;
13680
+ data?: unknown;
13681
+ };
13682
+ id?: string | number | undefined;
13683
+ } | null;
13684
+ output: {
13685
+ method: string;
13686
+ jsonrpc: "2.0";
13687
+ params?: {
13688
+ [x: string]: unknown;
13689
+ _meta?: {
13690
+ [x: string]: unknown;
13691
+ progressToken?: string | number | undefined;
13692
+ "io.modelcontextprotocol/related-task"?: {
13693
+ taskId: string;
13694
+ } | undefined;
13695
+ } | undefined;
13696
+ } | undefined;
13697
+ } | {
13698
+ jsonrpc: "2.0";
13699
+ id: string | number;
13700
+ result: {
13701
+ [x: string]: unknown;
13702
+ _meta?: {
13703
+ [x: string]: unknown;
13704
+ progressToken?: string | number | undefined;
13705
+ "io.modelcontextprotocol/related-task"?: {
13706
+ taskId: string;
13707
+ } | undefined;
13708
+ } | undefined;
13709
+ };
13710
+ } | {
13711
+ jsonrpc: "2.0";
13712
+ error: {
13713
+ code: number;
13714
+ message: string;
13715
+ data?: unknown;
13716
+ };
13717
+ id?: string | number | undefined;
13718
+ } | null;
13719
+ toolCall: {
13720
+ object: string;
13721
+ id: string;
13722
+ toolKey: string;
13723
+ type: string;
13724
+ status: _metorial_subspace_db.SessionMessageStatus;
13725
+ source: _metorial_subspace_db.SessionMessageSource;
13726
+ transport: _metorial_subspace_db.SessionConnectionTransport;
13727
+ sessionId: string;
13728
+ messageId: string;
13729
+ sessionProviderId: string | null;
13730
+ connectionId: string | null;
13731
+ providerRunId: string | null;
13732
+ tool: {
13733
+ object: string;
13734
+ id: string;
13735
+ key: string;
13736
+ name: string;
13737
+ description: string | null;
13738
+ capabilities: {
13739
+ [key: string]: any;
13740
+ };
13741
+ constraints: string[];
13742
+ inputJsonSchema: Record<string, any>;
13743
+ instructions: string[];
13744
+ outputJsonSchema: Record<string, any> | undefined;
13745
+ tags: {
13746
+ destructive?: boolean | undefined;
13747
+ readOnly?: boolean | undefined;
13748
+ } | undefined;
13749
+ specificationId: string;
13750
+ createdAt: Date;
13751
+ updatedAt: Date;
13752
+ };
13753
+ input: any;
13754
+ output: any;
13755
+ error: Promise<{
13756
+ object: string;
13757
+ id: string;
13758
+ code: string;
13759
+ message: string;
13760
+ data: unknown;
13761
+ sessionId: string;
13762
+ providerRunId: string | null;
13763
+ connectionId: string | null;
13764
+ groupId: string;
13765
+ similarErrorCount: number;
13766
+ createdAt: Date;
13767
+ }> | null;
13768
+ createdAt: Date;
13769
+ } | null;
13770
+ senderParticipant: {
13771
+ object: string;
13772
+ id: string;
13773
+ type: _metorial_subspace_db.SessionParticipantType;
13774
+ identifier: string;
13775
+ name: string;
13776
+ data: PrismaJson.SessionParticipantPayload;
13777
+ providerId: string | undefined;
13778
+ createdAt: Date;
13779
+ };
13780
+ responderParticipant: {
13781
+ object: string;
13782
+ id: string;
13783
+ type: _metorial_subspace_db.SessionParticipantType;
13784
+ identifier: string;
13785
+ name: string;
13786
+ data: PrismaJson.SessionParticipantPayload;
13787
+ providerId: string | undefined;
13788
+ createdAt: Date;
13789
+ } | null;
13790
+ error: Promise<{
13791
+ object: string;
13792
+ id: string;
13793
+ code: string;
13794
+ message: string;
13795
+ data: unknown;
13796
+ sessionId: string;
13797
+ providerRunId: string | null;
13798
+ connectionId: string | null;
13799
+ groupId: string;
13800
+ similarErrorCount: number;
13801
+ createdAt: Date;
13802
+ }> | null;
13803
+ createdAt: Date;
13804
+ } | null;
13805
+ error: {
13806
+ object: string;
13807
+ id: string;
13808
+ code: string;
13809
+ message: string;
13810
+ data: unknown;
13811
+ sessionId: string;
13812
+ providerRunId: string | null;
13813
+ connectionId: string | null;
13814
+ groupId: string;
13815
+ similarErrorCount: number;
13816
+ createdAt: Date;
13817
+ } | null;
13818
+ createdAt: Date;
13819
+ }[];
13820
+ pagination: {
13821
+ has_more_after: boolean;
13822
+ has_more_before: boolean;
13823
+ };
13824
+ }, {
13825
+ solution: {} & {
13826
+ oid: number;
13827
+ id: string;
13828
+ identifier: string;
13829
+ name: string;
13830
+ createdAt: Date;
13831
+ };
13832
+ tenant: {} & {
13833
+ oid: bigint;
13834
+ id: string;
13835
+ identifier: string;
13836
+ name: string;
13837
+ createdAt: Date;
13838
+ urlKey: string;
13839
+ slateTenantId: string | null;
13840
+ slateTenantIdentifier: string | null;
13841
+ shuttleTenantId: string | null;
13842
+ shuttleTenantIdentifier: string | null;
13843
+ originTenantId: string | null;
13844
+ originTenantIdentifier: string | null;
13845
+ logRetentionInDays: number;
13846
+ } & {
13847
+ environments: {
13848
+ oid: bigint;
13849
+ id: string;
13850
+ identifier: string;
13851
+ name: string;
13852
+ createdAt: Date;
13853
+ type: _metorial_subspace_db.EnvironmentType;
13854
+ tenantOid: bigint;
13855
+ }[];
13856
+ };
13857
+ environment: {
13858
+ oid: bigint;
13859
+ id: string;
13860
+ identifier: string;
13861
+ name: string;
13862
+ createdAt: Date;
13863
+ type: _metorial_subspace_db.EnvironmentType;
13864
+ tenantOid: bigint;
13865
+ };
13866
+ }>;
13867
+ get: _lowerdeck_rpc_server.Handler<_lowerdeck_validation_dist_validators.UndefinedIsOptional<{
13868
+ tenantId: string;
13869
+ environmentId: string;
13870
+ sessionEventId: string;
13871
+ allowDeleted: boolean | undefined;
13872
+ }>, {
13873
+ object: string;
13874
+ id: string;
13875
+ type: _metorial_subspace_db.SessionEventType;
13876
+ sessionId: string;
13877
+ connection: {
13878
+ object: string;
13879
+ id: string;
13880
+ status: _metorial_subspace_db.SessionConnectionStatus;
13881
+ connectionState: _metorial_subspace_db.SessionConnectionState;
13882
+ transport: _metorial_subspace_db.SessionConnectionTransport;
13883
+ usage: {
13884
+ totalProductiveClientMessageCount: number;
13885
+ totalProductiveServerMessageCount: number;
13886
+ };
13887
+ mcp: {
13888
+ capabilities: {
13889
+ experimental?: {
13890
+ [x: string]: object;
13891
+ } | undefined;
13892
+ sampling?: {
13893
+ context?: object | undefined;
13894
+ tools?: object | undefined;
13895
+ } | undefined;
13896
+ elicitation?: {
13897
+ [x: string]: unknown;
13898
+ form?: {
13899
+ [x: string]: unknown;
13900
+ applyDefaults?: boolean | undefined;
13901
+ } | undefined;
13902
+ url?: object | undefined;
13903
+ } | undefined;
13904
+ roots?: {
13905
+ listChanged?: boolean | undefined;
13906
+ } | undefined;
13907
+ tasks?: {
13908
+ [x: string]: unknown;
13909
+ list?: object | undefined;
13910
+ cancel?: object | undefined;
13911
+ requests?: {
13912
+ [x: string]: unknown;
13913
+ sampling?: {
13914
+ [x: string]: unknown;
13915
+ createMessage?: object | undefined;
13916
+ } | undefined;
13917
+ elicitation?: {
13918
+ [x: string]: unknown;
13919
+ create?: object | undefined;
13920
+ } | undefined;
13921
+ } | undefined;
13922
+ } | undefined;
13923
+ };
13924
+ protocolVersion: string;
13925
+ transport: _metorial_subspace_db.SessionConnectionMcpConnectionTransport;
13926
+ } | null;
13927
+ sessionId: string;
13928
+ participant: {
13929
+ object: string;
13930
+ id: string;
13931
+ type: _metorial_subspace_db.SessionParticipantType;
13932
+ identifier: string;
13933
+ name: string;
13934
+ data: PrismaJson.SessionParticipantPayload;
13935
+ providerId: string | undefined;
13936
+ createdAt: Date;
13937
+ } | null;
13938
+ createdAt: Date;
13939
+ lastMessageAt: Date | null;
13940
+ lastActiveAt: Date | null;
13941
+ } | null;
13942
+ providerRun: {
13943
+ object: string;
13944
+ id: string;
13945
+ status: _metorial_subspace_db.ProviderRunStatus;
13946
+ providerId: string;
13947
+ sessionId: string;
13948
+ sessionProviderId: string;
13949
+ connectionId: string;
13950
+ createdAt: Date;
13951
+ updatedAt: Date;
13952
+ completedAt: Date | null;
13953
+ } | null;
13954
+ message: {
13955
+ object: string;
13956
+ id: string;
13957
+ type: _metorial_subspace_db.SessionMessageType;
13958
+ status: _metorial_subspace_db.SessionMessageStatus;
13959
+ source: _metorial_subspace_db.SessionMessageSource;
13960
+ sessionId: string;
13961
+ sessionProviderId: string | null;
13962
+ connectionId: string | null;
13963
+ providerRunId: string | null;
13964
+ hierarchy: {
13965
+ type: string;
13966
+ parentMessageId: string | undefined;
13967
+ childMessageIds: string[];
13968
+ };
13969
+ transport: {
13970
+ object: string;
13971
+ type: _metorial_subspace_db.SessionConnectionTransport;
13972
+ mcp: {
13973
+ object: string;
13974
+ id: any;
13975
+ protocolVersion: string;
13976
+ transport: string;
13977
+ } | undefined;
13978
+ toolCall: {
13979
+ object: string;
13980
+ id: string | null;
13981
+ } | undefined;
13982
+ };
13983
+ input: {
13984
+ method: string;
13985
+ jsonrpc: "2.0";
13986
+ params?: {
13987
+ [x: string]: unknown;
13988
+ _meta?: {
13989
+ [x: string]: unknown;
13990
+ progressToken?: string | number | undefined;
13991
+ "io.modelcontextprotocol/related-task"?: {
13992
+ taskId: string;
13993
+ } | undefined;
13994
+ } | undefined;
13995
+ } | undefined;
13996
+ } | {
13997
+ jsonrpc: "2.0";
13998
+ id: string | number;
13999
+ result: {
14000
+ [x: string]: unknown;
14001
+ _meta?: {
14002
+ [x: string]: unknown;
14003
+ progressToken?: string | number | undefined;
14004
+ "io.modelcontextprotocol/related-task"?: {
14005
+ taskId: string;
14006
+ } | undefined;
14007
+ } | undefined;
14008
+ };
14009
+ } | {
14010
+ jsonrpc: "2.0";
14011
+ error: {
14012
+ code: number;
14013
+ message: string;
14014
+ data?: unknown;
14015
+ };
14016
+ id?: string | number | undefined;
14017
+ } | null;
14018
+ output: {
14019
+ method: string;
14020
+ jsonrpc: "2.0";
14021
+ params?: {
14022
+ [x: string]: unknown;
14023
+ _meta?: {
14024
+ [x: string]: unknown;
14025
+ progressToken?: string | number | undefined;
14026
+ "io.modelcontextprotocol/related-task"?: {
14027
+ taskId: string;
14028
+ } | undefined;
14029
+ } | undefined;
14030
+ } | undefined;
14031
+ } | {
14032
+ jsonrpc: "2.0";
14033
+ id: string | number;
14034
+ result: {
14035
+ [x: string]: unknown;
14036
+ _meta?: {
14037
+ [x: string]: unknown;
14038
+ progressToken?: string | number | undefined;
14039
+ "io.modelcontextprotocol/related-task"?: {
14040
+ taskId: string;
14041
+ } | undefined;
14042
+ } | undefined;
14043
+ };
14044
+ } | {
14045
+ jsonrpc: "2.0";
14046
+ error: {
14047
+ code: number;
14048
+ message: string;
14049
+ data?: unknown;
14050
+ };
14051
+ id?: string | number | undefined;
14052
+ } | null;
14053
+ toolCall: {
14054
+ object: string;
14055
+ id: string;
14056
+ toolKey: string;
14057
+ type: string;
14058
+ status: _metorial_subspace_db.SessionMessageStatus;
14059
+ source: _metorial_subspace_db.SessionMessageSource;
14060
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14061
+ sessionId: string;
14062
+ messageId: string;
14063
+ sessionProviderId: string | null;
14064
+ connectionId: string | null;
14065
+ providerRunId: string | null;
14066
+ tool: {
14067
+ object: string;
14068
+ id: string;
14069
+ key: string;
14070
+ name: string;
14071
+ description: string | null;
14072
+ capabilities: {
14073
+ [key: string]: any;
14074
+ };
14075
+ constraints: string[];
14076
+ inputJsonSchema: Record<string, any>;
14077
+ instructions: string[];
14078
+ outputJsonSchema: Record<string, any> | undefined;
14079
+ tags: {
14080
+ destructive?: boolean | undefined;
14081
+ readOnly?: boolean | undefined;
14082
+ } | undefined;
14083
+ specificationId: string;
14084
+ createdAt: Date;
14085
+ updatedAt: Date;
14086
+ };
14087
+ input: any;
14088
+ output: any;
14089
+ error: Promise<{
14090
+ object: string;
14091
+ id: string;
14092
+ code: string;
14093
+ message: string;
14094
+ data: unknown;
14095
+ sessionId: string;
14096
+ providerRunId: string | null;
14097
+ connectionId: string | null;
14098
+ groupId: string;
14099
+ similarErrorCount: number;
14100
+ createdAt: Date;
14101
+ }> | null;
14102
+ createdAt: Date;
14103
+ } | null;
14104
+ senderParticipant: {
14105
+ object: string;
14106
+ id: string;
14107
+ type: _metorial_subspace_db.SessionParticipantType;
14108
+ identifier: string;
14109
+ name: string;
14110
+ data: PrismaJson.SessionParticipantPayload;
14111
+ providerId: string | undefined;
14112
+ createdAt: Date;
14113
+ };
14114
+ responderParticipant: {
14115
+ object: string;
14116
+ id: string;
14117
+ type: _metorial_subspace_db.SessionParticipantType;
14118
+ identifier: string;
14119
+ name: string;
14120
+ data: PrismaJson.SessionParticipantPayload;
14121
+ providerId: string | undefined;
14122
+ createdAt: Date;
14123
+ } | null;
14124
+ error: Promise<{
14125
+ object: string;
14126
+ id: string;
14127
+ code: string;
14128
+ message: string;
14129
+ data: unknown;
14130
+ sessionId: string;
14131
+ providerRunId: string | null;
14132
+ connectionId: string | null;
14133
+ groupId: string;
14134
+ similarErrorCount: number;
14135
+ createdAt: Date;
14136
+ }> | null;
14137
+ createdAt: Date;
14138
+ } | null;
14139
+ error: {
14140
+ object: string;
14141
+ id: string;
14142
+ code: string;
14143
+ message: string;
14144
+ data: unknown;
14145
+ sessionId: string;
14146
+ providerRunId: string | null;
14147
+ connectionId: string | null;
14148
+ groupId: string;
14149
+ similarErrorCount: number;
14150
+ createdAt: Date;
14151
+ } | null;
14152
+ createdAt: Date;
14153
+ }, {
14154
+ solution: {} & {
14155
+ oid: number;
14156
+ id: string;
14157
+ identifier: string;
14158
+ name: string;
14159
+ createdAt: Date;
14160
+ };
14161
+ tenant: {} & {
14162
+ oid: bigint;
14163
+ id: string;
14164
+ identifier: string;
14165
+ name: string;
14166
+ createdAt: Date;
14167
+ urlKey: string;
14168
+ slateTenantId: string | null;
14169
+ slateTenantIdentifier: string | null;
14170
+ shuttleTenantId: string | null;
14171
+ shuttleTenantIdentifier: string | null;
14172
+ originTenantId: string | null;
14173
+ originTenantIdentifier: string | null;
14174
+ logRetentionInDays: number;
14175
+ } & {
14176
+ environments: {
14177
+ oid: bigint;
14178
+ id: string;
14179
+ identifier: string;
14180
+ name: string;
14181
+ createdAt: Date;
14182
+ type: _metorial_subspace_db.EnvironmentType;
14183
+ tenantOid: bigint;
14184
+ }[];
14185
+ };
14186
+ environment: {
14187
+ oid: bigint;
14188
+ id: string;
14189
+ identifier: string;
14190
+ name: string;
14191
+ createdAt: Date;
14192
+ type: _metorial_subspace_db.EnvironmentType;
14193
+ tenantOid: bigint;
14194
+ };
14195
+ sessionEvent: {
14196
+ error: ({
14197
+ session: {
14198
+ oid: bigint;
14199
+ id: string;
14200
+ name: string | null;
14201
+ createdAt: Date;
14202
+ tenantOid: bigint;
14203
+ status: _metorial_subspace_db.SessionStatus;
14204
+ isEphemeral: boolean;
14205
+ description: string | null;
14206
+ metadata: unknown | null;
14207
+ updatedAt: Date;
14208
+ solutionOid: number;
14209
+ environmentOid: bigint;
14210
+ totalProductiveClientMessageCount: number;
14211
+ totalProductiveServerMessageCount: number;
14212
+ lastMessageAt: Date | null;
14213
+ lastActiveAt: Date | null;
14214
+ connectionState: _metorial_subspace_db.SessionConnectionState;
14215
+ isStarted: boolean;
14216
+ sharedProviderName: string | null;
14217
+ sharedProviderDescription: string | null;
14218
+ lastConnectionCreatedAt: Date | null;
14219
+ };
14220
+ providerRun: {
14221
+ oid: bigint;
14222
+ id: string;
14223
+ createdAt: Date;
14224
+ tenantOid: bigint;
14225
+ status: _metorial_subspace_db.ProviderRunStatus;
14226
+ isParentDeleted: boolean;
14227
+ updatedAt: Date;
14228
+ providerOid: bigint;
14229
+ solutionOid: number;
14230
+ environmentOid: bigint;
14231
+ lastPingAt: Date | null;
14232
+ sessionOid: bigint;
14233
+ connectionOid: bigint;
14234
+ completedAt: Date | null;
14235
+ sessionProviderOid: bigint;
14236
+ providerVersionOid: bigint;
14237
+ instanceOid: bigint;
14238
+ } | null;
14239
+ group: {
14240
+ oid: bigint;
14241
+ id: string;
14242
+ createdAt: Date;
14243
+ type: _metorial_subspace_db.SessionErrorType;
14244
+ tenantOid: bigint;
14245
+ providerOid: bigint | null;
14246
+ environmentOid: bigint;
14247
+ code: string;
14248
+ message: string;
14249
+ hash: string;
14250
+ occurrenceCount: number;
14251
+ firstOccurrenceOid: bigint | null;
14252
+ } | null;
14253
+ connection: {
14254
+ oid: bigint;
14255
+ id: string;
14256
+ createdAt: Date;
14257
+ tenantOid: bigint;
14258
+ status: _metorial_subspace_db.SessionConnectionStatus;
14259
+ isParentDeleted: boolean;
14260
+ isEphemeral: boolean;
14261
+ solutionOid: number;
14262
+ environmentOid: bigint;
14263
+ expiresAt: Date;
14264
+ token: string;
14265
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14266
+ state: _metorial_subspace_db.SessionConnectionState;
14267
+ initState: _metorial_subspace_db.SessionConnectionInitState;
14268
+ isManuallyDisabled: boolean;
14269
+ isReplaced: boolean;
14270
+ isForManualToolCalls: boolean;
14271
+ totalProductiveClientMessageCount: number;
14272
+ totalProductiveServerMessageCount: number;
14273
+ mcpData: PrismaJson.SessionConnectionMcpData;
14274
+ mcpTransport: _metorial_subspace_db.SessionConnectionMcpConnectionTransport;
14275
+ mcpProtocolVersion: string | null;
14276
+ lastPingAt: Date | null;
14277
+ lastMessageAt: Date | null;
14278
+ lastActiveAt: Date | null;
14279
+ disconnectedAt: Date | null;
14280
+ sessionOid: bigint;
14281
+ participantOid: bigint | null;
14282
+ } | null;
14283
+ } & {
14284
+ oid: bigint;
14285
+ id: string;
14286
+ createdAt: Date;
14287
+ type: _metorial_subspace_db.SessionErrorType;
14288
+ tenantOid: bigint;
14289
+ isParentDeleted: boolean;
14290
+ solutionOid: number;
14291
+ environmentOid: bigint;
14292
+ sessionOid: bigint;
14293
+ code: string;
14294
+ message: string;
14295
+ isProcessing: boolean;
14296
+ payload: unknown | null;
14297
+ groupOid: bigint | null;
14298
+ connectionOid: bigint | null;
14299
+ providerRunOid: bigint | null;
14300
+ }) | null;
14301
+ session: {
14302
+ oid: bigint;
14303
+ id: string;
14304
+ name: string | null;
14305
+ createdAt: Date;
14306
+ tenantOid: bigint;
14307
+ status: _metorial_subspace_db.SessionStatus;
14308
+ isEphemeral: boolean;
14309
+ description: string | null;
14310
+ metadata: unknown | null;
14311
+ updatedAt: Date;
14312
+ solutionOid: number;
14313
+ environmentOid: bigint;
14314
+ totalProductiveClientMessageCount: number;
14315
+ totalProductiveServerMessageCount: number;
14316
+ lastMessageAt: Date | null;
14317
+ lastActiveAt: Date | null;
14318
+ connectionState: _metorial_subspace_db.SessionConnectionState;
14319
+ isStarted: boolean;
14320
+ sharedProviderName: string | null;
14321
+ sharedProviderDescription: string | null;
14322
+ lastConnectionCreatedAt: Date | null;
14323
+ };
14324
+ providerRun: ({
14325
+ provider: {
14326
+ oid: bigint;
14327
+ id: string;
14328
+ identifier: string;
14329
+ name: string;
14330
+ createdAt: Date;
14331
+ status: _metorial_subspace_db.ProviderStatus;
14332
+ description: string | null;
14333
+ metadata: unknown | null;
14334
+ updatedAt: Date;
14335
+ slug: string;
14336
+ tag: string;
14337
+ access: _metorial_subspace_db.ProviderAccess;
14338
+ hasEnvironments: boolean;
14339
+ globalIdentifier: string | null;
14340
+ entryOid: bigint;
14341
+ publisherOid: bigint;
14342
+ ownerTenantOid: bigint | null;
14343
+ ownerSolutionOid: number | null;
14344
+ defaultVariantOid: bigint | null;
14345
+ typeOid: number;
14346
+ };
14347
+ session: {
14348
+ oid: bigint;
14349
+ id: string;
14350
+ name: string | null;
14351
+ createdAt: Date;
14352
+ tenantOid: bigint;
14353
+ status: _metorial_subspace_db.SessionStatus;
14354
+ isEphemeral: boolean;
14355
+ description: string | null;
14356
+ metadata: unknown | null;
14357
+ updatedAt: Date;
14358
+ solutionOid: number;
14359
+ environmentOid: bigint;
14360
+ totalProductiveClientMessageCount: number;
14361
+ totalProductiveServerMessageCount: number;
14362
+ lastMessageAt: Date | null;
14363
+ lastActiveAt: Date | null;
14364
+ connectionState: _metorial_subspace_db.SessionConnectionState;
14365
+ isStarted: boolean;
14366
+ sharedProviderName: string | null;
14367
+ sharedProviderDescription: string | null;
14368
+ lastConnectionCreatedAt: Date | null;
14369
+ };
14370
+ sessionProvider: {
14371
+ oid: bigint;
14372
+ id: string;
14373
+ createdAt: Date;
14374
+ tenantOid: bigint;
14375
+ status: _metorial_subspace_db.SessionProviderStatus;
14376
+ isParentDeleted: boolean;
14377
+ isEphemeral: boolean;
14378
+ updatedAt: Date;
14379
+ providerOid: bigint;
14380
+ solutionOid: number;
14381
+ deploymentOid: bigint;
14382
+ environmentOid: bigint;
14383
+ authConfigOid: bigint | null;
14384
+ configOid: bigint;
14385
+ totalProductiveClientMessageCount: number;
14386
+ totalProductiveServerMessageCount: number;
14387
+ lastMessageAt: Date | null;
14388
+ sessionOid: bigint;
14389
+ tag: string;
14390
+ toolFilter: PrismaJson.ToolFilter;
14391
+ fromTemplateOid: bigint | null;
14392
+ fromTemplateProviderOid: bigint | null;
14393
+ };
14394
+ connection: {
14395
+ oid: bigint;
14396
+ id: string;
14397
+ createdAt: Date;
14398
+ tenantOid: bigint;
14399
+ status: _metorial_subspace_db.SessionConnectionStatus;
14400
+ isParentDeleted: boolean;
14401
+ isEphemeral: boolean;
14402
+ solutionOid: number;
14403
+ environmentOid: bigint;
14404
+ expiresAt: Date;
14405
+ token: string;
14406
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14407
+ state: _metorial_subspace_db.SessionConnectionState;
14408
+ initState: _metorial_subspace_db.SessionConnectionInitState;
14409
+ isManuallyDisabled: boolean;
14410
+ isReplaced: boolean;
14411
+ isForManualToolCalls: boolean;
14412
+ totalProductiveClientMessageCount: number;
14413
+ totalProductiveServerMessageCount: number;
14414
+ mcpData: PrismaJson.SessionConnectionMcpData;
14415
+ mcpTransport: _metorial_subspace_db.SessionConnectionMcpConnectionTransport;
14416
+ mcpProtocolVersion: string | null;
14417
+ lastPingAt: Date | null;
14418
+ lastMessageAt: Date | null;
14419
+ lastActiveAt: Date | null;
14420
+ disconnectedAt: Date | null;
14421
+ sessionOid: bigint;
14422
+ participantOid: bigint | null;
14423
+ };
14424
+ } & {
14425
+ oid: bigint;
14426
+ id: string;
14427
+ createdAt: Date;
14428
+ tenantOid: bigint;
14429
+ status: _metorial_subspace_db.ProviderRunStatus;
14430
+ isParentDeleted: boolean;
14431
+ updatedAt: Date;
14432
+ providerOid: bigint;
14433
+ solutionOid: number;
14434
+ environmentOid: bigint;
14435
+ lastPingAt: Date | null;
14436
+ sessionOid: bigint;
14437
+ connectionOid: bigint;
14438
+ completedAt: Date | null;
14439
+ sessionProviderOid: bigint;
14440
+ providerVersionOid: bigint;
14441
+ instanceOid: bigint;
14442
+ }) | null;
14443
+ message: ({
14444
+ error: ({
14445
+ session: {
14446
+ oid: bigint;
14447
+ id: string;
14448
+ name: string | null;
14449
+ createdAt: Date;
14450
+ tenantOid: bigint;
14451
+ status: _metorial_subspace_db.SessionStatus;
14452
+ isEphemeral: boolean;
14453
+ description: string | null;
14454
+ metadata: unknown | null;
14455
+ updatedAt: Date;
14456
+ solutionOid: number;
14457
+ environmentOid: bigint;
14458
+ totalProductiveClientMessageCount: number;
14459
+ totalProductiveServerMessageCount: number;
14460
+ lastMessageAt: Date | null;
14461
+ lastActiveAt: Date | null;
14462
+ connectionState: _metorial_subspace_db.SessionConnectionState;
14463
+ isStarted: boolean;
14464
+ sharedProviderName: string | null;
14465
+ sharedProviderDescription: string | null;
14466
+ lastConnectionCreatedAt: Date | null;
14467
+ };
14468
+ providerRun: {
14469
+ oid: bigint;
14470
+ id: string;
14471
+ createdAt: Date;
14472
+ tenantOid: bigint;
14473
+ status: _metorial_subspace_db.ProviderRunStatus;
14474
+ isParentDeleted: boolean;
14475
+ updatedAt: Date;
14476
+ providerOid: bigint;
14477
+ solutionOid: number;
14478
+ environmentOid: bigint;
14479
+ lastPingAt: Date | null;
14480
+ sessionOid: bigint;
14481
+ connectionOid: bigint;
14482
+ completedAt: Date | null;
14483
+ sessionProviderOid: bigint;
14484
+ providerVersionOid: bigint;
14485
+ instanceOid: bigint;
14486
+ } | null;
14487
+ group: {
14488
+ oid: bigint;
14489
+ id: string;
14490
+ createdAt: Date;
14491
+ type: _metorial_subspace_db.SessionErrorType;
14492
+ tenantOid: bigint;
14493
+ providerOid: bigint | null;
14494
+ environmentOid: bigint;
14495
+ code: string;
14496
+ message: string;
14497
+ hash: string;
14498
+ occurrenceCount: number;
14499
+ firstOccurrenceOid: bigint | null;
14500
+ } | null;
14501
+ connection: {
14502
+ oid: bigint;
14503
+ id: string;
14504
+ createdAt: Date;
14505
+ tenantOid: bigint;
14506
+ status: _metorial_subspace_db.SessionConnectionStatus;
14507
+ isParentDeleted: boolean;
14508
+ isEphemeral: boolean;
14509
+ solutionOid: number;
14510
+ environmentOid: bigint;
14511
+ expiresAt: Date;
14512
+ token: string;
14513
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14514
+ state: _metorial_subspace_db.SessionConnectionState;
14515
+ initState: _metorial_subspace_db.SessionConnectionInitState;
14516
+ isManuallyDisabled: boolean;
14517
+ isReplaced: boolean;
14518
+ isForManualToolCalls: boolean;
14519
+ totalProductiveClientMessageCount: number;
14520
+ totalProductiveServerMessageCount: number;
14521
+ mcpData: PrismaJson.SessionConnectionMcpData;
14522
+ mcpTransport: _metorial_subspace_db.SessionConnectionMcpConnectionTransport;
14523
+ mcpProtocolVersion: string | null;
14524
+ lastPingAt: Date | null;
14525
+ lastMessageAt: Date | null;
14526
+ lastActiveAt: Date | null;
14527
+ disconnectedAt: Date | null;
14528
+ sessionOid: bigint;
14529
+ participantOid: bigint | null;
14530
+ } | null;
14531
+ } & {
14532
+ oid: bigint;
14533
+ id: string;
14534
+ createdAt: Date;
14535
+ type: _metorial_subspace_db.SessionErrorType;
14536
+ tenantOid: bigint;
14537
+ isParentDeleted: boolean;
14538
+ solutionOid: number;
14539
+ environmentOid: bigint;
14540
+ sessionOid: bigint;
14541
+ code: string;
14542
+ message: string;
14543
+ isProcessing: boolean;
14544
+ payload: unknown | null;
14545
+ groupOid: bigint | null;
14546
+ connectionOid: bigint | null;
14547
+ providerRunOid: bigint | null;
14548
+ }) | null;
14549
+ session: {
14550
+ oid: bigint;
14551
+ id: string;
14552
+ name: string | null;
14553
+ createdAt: Date;
14554
+ tenantOid: bigint;
14555
+ status: _metorial_subspace_db.SessionStatus;
14556
+ isEphemeral: boolean;
14557
+ description: string | null;
14558
+ metadata: unknown | null;
14559
+ updatedAt: Date;
14560
+ solutionOid: number;
14561
+ environmentOid: bigint;
14562
+ totalProductiveClientMessageCount: number;
14563
+ totalProductiveServerMessageCount: number;
14564
+ lastMessageAt: Date | null;
14565
+ lastActiveAt: Date | null;
14566
+ connectionState: _metorial_subspace_db.SessionConnectionState;
14567
+ isStarted: boolean;
14568
+ sharedProviderName: string | null;
14569
+ sharedProviderDescription: string | null;
14570
+ lastConnectionCreatedAt: Date | null;
14571
+ };
14572
+ sessionProvider: {
14573
+ oid: bigint;
14574
+ id: string;
14575
+ createdAt: Date;
14576
+ tenantOid: bigint;
14577
+ status: _metorial_subspace_db.SessionProviderStatus;
14578
+ isParentDeleted: boolean;
14579
+ isEphemeral: boolean;
14580
+ updatedAt: Date;
14581
+ providerOid: bigint;
14582
+ solutionOid: number;
14583
+ deploymentOid: bigint;
14584
+ environmentOid: bigint;
14585
+ authConfigOid: bigint | null;
14586
+ configOid: bigint;
14587
+ totalProductiveClientMessageCount: number;
14588
+ totalProductiveServerMessageCount: number;
14589
+ lastMessageAt: Date | null;
14590
+ sessionOid: bigint;
14591
+ tag: string;
14592
+ toolFilter: PrismaJson.ToolFilter;
14593
+ fromTemplateOid: bigint | null;
14594
+ fromTemplateProviderOid: bigint | null;
14595
+ } | null;
14596
+ providerRun: {
14597
+ oid: bigint;
14598
+ id: string;
14599
+ createdAt: Date;
14600
+ tenantOid: bigint;
14601
+ status: _metorial_subspace_db.ProviderRunStatus;
14602
+ isParentDeleted: boolean;
14603
+ updatedAt: Date;
14604
+ providerOid: bigint;
14605
+ solutionOid: number;
14606
+ environmentOid: bigint;
14607
+ lastPingAt: Date | null;
14608
+ sessionOid: bigint;
14609
+ connectionOid: bigint;
14610
+ completedAt: Date | null;
14611
+ sessionProviderOid: bigint;
14612
+ providerVersionOid: bigint;
14613
+ instanceOid: bigint;
14614
+ } | null;
14615
+ toolCall: ({
14616
+ tool: {
14617
+ provider: {
14618
+ oid: bigint;
14619
+ id: string;
14620
+ identifier: string;
14621
+ name: string;
14622
+ createdAt: Date;
14623
+ status: _metorial_subspace_db.ProviderStatus;
14624
+ description: string | null;
14625
+ metadata: unknown | null;
14626
+ updatedAt: Date;
14627
+ slug: string;
14628
+ tag: string;
14629
+ access: _metorial_subspace_db.ProviderAccess;
14630
+ hasEnvironments: boolean;
14631
+ globalIdentifier: string | null;
14632
+ entryOid: bigint;
14633
+ publisherOid: bigint;
14634
+ ownerTenantOid: bigint | null;
14635
+ ownerSolutionOid: number | null;
14636
+ defaultVariantOid: bigint | null;
14637
+ typeOid: number;
14638
+ };
14639
+ specification: {
14640
+ value: PrismaJson.ProviderSpecificationValue;
14641
+ oid: bigint;
14642
+ id: string;
14643
+ name: string;
14644
+ createdAt: Date;
14645
+ type: _metorial_subspace_db.ProviderSpecificationType;
14646
+ key: string;
14647
+ description: string | null;
14648
+ updatedAt: Date;
14649
+ providerOid: bigint;
14650
+ hash: string;
14651
+ specId: string;
14652
+ specUniqueIdentifier: string;
14653
+ supportsAuthMethod: boolean;
14654
+ configContainsAuth: boolean;
14655
+ };
14656
+ } & {
14657
+ value: PrismaJson.ProviderToolValue;
14658
+ oid: bigint;
14659
+ id: string;
14660
+ name: string;
14661
+ createdAt: Date;
14662
+ key: string;
14663
+ description: string | null;
14664
+ updatedAt: Date;
14665
+ providerOid: bigint;
14666
+ specificationOid: bigint;
14667
+ hash: string;
14668
+ specId: string;
14669
+ specUniqueIdentifier: string;
14670
+ callableId: string;
14671
+ globalOid: bigint;
14672
+ };
14673
+ } & {
14674
+ oid: bigint;
14675
+ id: string;
14676
+ createdAt: Date;
14677
+ tenantOid: bigint;
14678
+ metadata: unknown | null;
14679
+ solutionOid: number;
14680
+ environmentOid: bigint;
14681
+ sessionOid: bigint;
14682
+ providerRunOid: bigint | null;
14683
+ messageOid: bigint;
14684
+ sessionProviderOid: bigint | null;
14685
+ toolKey: string;
14686
+ toolOid: bigint;
14687
+ }) | null;
14688
+ connection: {
14689
+ oid: bigint;
14690
+ id: string;
14691
+ createdAt: Date;
14692
+ tenantOid: bigint;
14693
+ status: _metorial_subspace_db.SessionConnectionStatus;
14694
+ isParentDeleted: boolean;
14695
+ isEphemeral: boolean;
14696
+ solutionOid: number;
14697
+ environmentOid: bigint;
14698
+ expiresAt: Date;
14699
+ token: string;
14700
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14701
+ state: _metorial_subspace_db.SessionConnectionState;
14702
+ initState: _metorial_subspace_db.SessionConnectionInitState;
14703
+ isManuallyDisabled: boolean;
14704
+ isReplaced: boolean;
14705
+ isForManualToolCalls: boolean;
14706
+ totalProductiveClientMessageCount: number;
14707
+ totalProductiveServerMessageCount: number;
14708
+ mcpData: PrismaJson.SessionConnectionMcpData;
14709
+ mcpTransport: _metorial_subspace_db.SessionConnectionMcpConnectionTransport;
14710
+ mcpProtocolVersion: string | null;
14711
+ lastPingAt: Date | null;
14712
+ lastMessageAt: Date | null;
14713
+ lastActiveAt: Date | null;
14714
+ disconnectedAt: Date | null;
14715
+ sessionOid: bigint;
14716
+ participantOid: bigint | null;
14717
+ } | null;
14718
+ parentMessage: {
14719
+ oid: bigint;
14720
+ id: string;
14721
+ createdAt: Date;
14722
+ type: _metorial_subspace_db.SessionMessageType;
14723
+ tenantOid: bigint;
14724
+ source: _metorial_subspace_db.SessionMessageSource;
14725
+ status: _metorial_subspace_db.SessionMessageStatus;
14726
+ isParentDeleted: boolean;
14727
+ solutionOid: number;
14728
+ environmentOid: bigint;
14729
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14730
+ sessionOid: bigint;
14731
+ connectionOid: bigint | null;
14732
+ providerRunOid: bigint | null;
14733
+ errorOid: bigint | null;
14734
+ failureReason: _metorial_subspace_db.SessionMessageFailureReason;
14735
+ methodOrToolKey: string | null;
14736
+ clientMcpId: PrismaJson.SessionMessageClientMcpId;
14737
+ providerMcpId: string | null;
14738
+ input: PrismaJson.SessionMessageInput | null;
14739
+ output: PrismaJson.SessionMessageOutput | null;
14740
+ isProductive: boolean;
14741
+ isOffloadedToStorage: boolean;
14742
+ completedAt: Date | null;
14743
+ parentMessageOid: bigint | null;
14744
+ bucketOid: number;
14745
+ senderParticipantOid: bigint;
14746
+ responderParticipantOid: bigint | null;
14747
+ sessionProviderOid: bigint | null;
14748
+ slateToolCallOid: bigint | null;
14749
+ providerToolOid: bigint | null;
14750
+ } | null;
14751
+ childMessages: {
14752
+ oid: bigint;
14753
+ id: string;
14754
+ createdAt: Date;
14755
+ type: _metorial_subspace_db.SessionMessageType;
14756
+ tenantOid: bigint;
14757
+ source: _metorial_subspace_db.SessionMessageSource;
14758
+ status: _metorial_subspace_db.SessionMessageStatus;
14759
+ isParentDeleted: boolean;
14760
+ solutionOid: number;
14761
+ environmentOid: bigint;
14762
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14763
+ sessionOid: bigint;
14764
+ connectionOid: bigint | null;
14765
+ providerRunOid: bigint | null;
14766
+ errorOid: bigint | null;
14767
+ failureReason: _metorial_subspace_db.SessionMessageFailureReason;
14768
+ methodOrToolKey: string | null;
14769
+ clientMcpId: PrismaJson.SessionMessageClientMcpId;
14770
+ providerMcpId: string | null;
14771
+ input: PrismaJson.SessionMessageInput | null;
14772
+ output: PrismaJson.SessionMessageOutput | null;
14773
+ isProductive: boolean;
14774
+ isOffloadedToStorage: boolean;
14775
+ completedAt: Date | null;
14776
+ parentMessageOid: bigint | null;
14777
+ bucketOid: number;
14778
+ senderParticipantOid: bigint;
14779
+ responderParticipantOid: bigint | null;
14780
+ sessionProviderOid: bigint | null;
14781
+ slateToolCallOid: bigint | null;
14782
+ providerToolOid: bigint | null;
14783
+ }[];
14784
+ senderParticipant: {
14785
+ provider: {
14786
+ oid: bigint;
14787
+ id: string;
14788
+ identifier: string;
14789
+ name: string;
14790
+ createdAt: Date;
14791
+ status: _metorial_subspace_db.ProviderStatus;
14792
+ description: string | null;
14793
+ metadata: unknown | null;
14794
+ updatedAt: Date;
14795
+ slug: string;
14796
+ tag: string;
14797
+ access: _metorial_subspace_db.ProviderAccess;
14798
+ hasEnvironments: boolean;
14799
+ globalIdentifier: string | null;
14800
+ entryOid: bigint;
14801
+ publisherOid: bigint;
14802
+ ownerTenantOid: bigint | null;
14803
+ ownerSolutionOid: number | null;
14804
+ defaultVariantOid: bigint | null;
14805
+ typeOid: number;
14806
+ } | null;
14807
+ } & {
14808
+ oid: bigint;
14809
+ id: string;
14810
+ identifier: string;
14811
+ name: string;
14812
+ createdAt: Date;
14813
+ type: _metorial_subspace_db.SessionParticipantType;
14814
+ tenantOid: bigint;
14815
+ providerOid: bigint | null;
14816
+ environmentOid: bigint;
14817
+ hash: string;
14818
+ payload: PrismaJson.SessionParticipantPayload;
14819
+ };
14820
+ responderParticipant: ({
14821
+ provider: {
14822
+ oid: bigint;
14823
+ id: string;
14824
+ identifier: string;
14825
+ name: string;
14826
+ createdAt: Date;
14827
+ status: _metorial_subspace_db.ProviderStatus;
14828
+ description: string | null;
14829
+ metadata: unknown | null;
14830
+ updatedAt: Date;
14831
+ slug: string;
14832
+ tag: string;
14833
+ access: _metorial_subspace_db.ProviderAccess;
14834
+ hasEnvironments: boolean;
14835
+ globalIdentifier: string | null;
14836
+ entryOid: bigint;
14837
+ publisherOid: bigint;
14838
+ ownerTenantOid: bigint | null;
14839
+ ownerSolutionOid: number | null;
14840
+ defaultVariantOid: bigint | null;
14841
+ typeOid: number;
14842
+ } | null;
14843
+ } & {
14844
+ oid: bigint;
14845
+ id: string;
14846
+ identifier: string;
14847
+ name: string;
14848
+ createdAt: Date;
14849
+ type: _metorial_subspace_db.SessionParticipantType;
14850
+ tenantOid: bigint;
14851
+ providerOid: bigint | null;
14852
+ environmentOid: bigint;
14853
+ hash: string;
14854
+ payload: PrismaJson.SessionParticipantPayload;
14855
+ }) | null;
14856
+ } & {
14857
+ oid: bigint;
14858
+ id: string;
14859
+ createdAt: Date;
14860
+ type: _metorial_subspace_db.SessionMessageType;
14861
+ tenantOid: bigint;
14862
+ source: _metorial_subspace_db.SessionMessageSource;
14863
+ status: _metorial_subspace_db.SessionMessageStatus;
14864
+ isParentDeleted: boolean;
14865
+ solutionOid: number;
14866
+ environmentOid: bigint;
14867
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14868
+ sessionOid: bigint;
14869
+ connectionOid: bigint | null;
14870
+ providerRunOid: bigint | null;
14871
+ errorOid: bigint | null;
14872
+ failureReason: _metorial_subspace_db.SessionMessageFailureReason;
14873
+ methodOrToolKey: string | null;
14874
+ clientMcpId: PrismaJson.SessionMessageClientMcpId;
14875
+ providerMcpId: string | null;
14876
+ input: PrismaJson.SessionMessageInput | null;
14877
+ output: PrismaJson.SessionMessageOutput | null;
14878
+ isProductive: boolean;
14879
+ isOffloadedToStorage: boolean;
14880
+ completedAt: Date | null;
14881
+ parentMessageOid: bigint | null;
14882
+ bucketOid: number;
14883
+ senderParticipantOid: bigint;
14884
+ responderParticipantOid: bigint | null;
14885
+ sessionProviderOid: bigint | null;
14886
+ slateToolCallOid: bigint | null;
14887
+ providerToolOid: bigint | null;
14888
+ }) | null;
14889
+ connection: ({
14890
+ session: {
14891
+ oid: bigint;
14892
+ id: string;
14893
+ name: string | null;
14894
+ createdAt: Date;
14895
+ tenantOid: bigint;
14896
+ status: _metorial_subspace_db.SessionStatus;
14897
+ isEphemeral: boolean;
14898
+ description: string | null;
14899
+ metadata: unknown | null;
14900
+ updatedAt: Date;
14901
+ solutionOid: number;
14902
+ environmentOid: bigint;
14903
+ totalProductiveClientMessageCount: number;
14904
+ totalProductiveServerMessageCount: number;
14905
+ lastMessageAt: Date | null;
14906
+ lastActiveAt: Date | null;
14907
+ connectionState: _metorial_subspace_db.SessionConnectionState;
14908
+ isStarted: boolean;
14909
+ sharedProviderName: string | null;
14910
+ sharedProviderDescription: string | null;
14911
+ lastConnectionCreatedAt: Date | null;
14912
+ };
14913
+ participant: ({
14914
+ provider: {
14915
+ oid: bigint;
14916
+ id: string;
14917
+ identifier: string;
14918
+ name: string;
14919
+ createdAt: Date;
14920
+ status: _metorial_subspace_db.ProviderStatus;
14921
+ description: string | null;
14922
+ metadata: unknown | null;
14923
+ updatedAt: Date;
14924
+ slug: string;
14925
+ tag: string;
14926
+ access: _metorial_subspace_db.ProviderAccess;
14927
+ hasEnvironments: boolean;
14928
+ globalIdentifier: string | null;
14929
+ entryOid: bigint;
14930
+ publisherOid: bigint;
14931
+ ownerTenantOid: bigint | null;
14932
+ ownerSolutionOid: number | null;
14933
+ defaultVariantOid: bigint | null;
14934
+ typeOid: number;
14935
+ } | null;
14936
+ } & {
14937
+ oid: bigint;
14938
+ id: string;
14939
+ identifier: string;
14940
+ name: string;
14941
+ createdAt: Date;
14942
+ type: _metorial_subspace_db.SessionParticipantType;
14943
+ tenantOid: bigint;
14944
+ providerOid: bigint | null;
14945
+ environmentOid: bigint;
14946
+ hash: string;
14947
+ payload: PrismaJson.SessionParticipantPayload;
14948
+ }) | null;
14949
+ } & {
14950
+ oid: bigint;
14951
+ id: string;
14952
+ createdAt: Date;
14953
+ tenantOid: bigint;
14954
+ status: _metorial_subspace_db.SessionConnectionStatus;
14955
+ isParentDeleted: boolean;
14956
+ isEphemeral: boolean;
14957
+ solutionOid: number;
14958
+ environmentOid: bigint;
14959
+ expiresAt: Date;
14960
+ token: string;
14961
+ transport: _metorial_subspace_db.SessionConnectionTransport;
14962
+ state: _metorial_subspace_db.SessionConnectionState;
14963
+ initState: _metorial_subspace_db.SessionConnectionInitState;
14964
+ isManuallyDisabled: boolean;
14965
+ isReplaced: boolean;
14966
+ isForManualToolCalls: boolean;
14967
+ totalProductiveClientMessageCount: number;
14968
+ totalProductiveServerMessageCount: number;
14969
+ mcpData: PrismaJson.SessionConnectionMcpData;
14970
+ mcpTransport: _metorial_subspace_db.SessionConnectionMcpConnectionTransport;
14971
+ mcpProtocolVersion: string | null;
14972
+ lastPingAt: Date | null;
14973
+ lastMessageAt: Date | null;
14974
+ lastActiveAt: Date | null;
14975
+ disconnectedAt: Date | null;
14976
+ sessionOid: bigint;
14977
+ participantOid: bigint | null;
14978
+ }) | null;
14979
+ } & {
14980
+ oid: bigint;
14981
+ id: string;
14982
+ createdAt: Date;
14983
+ type: _metorial_subspace_db.SessionEventType;
14984
+ tenantOid: bigint;
14985
+ isParentDeleted: boolean;
14986
+ solutionOid: number;
14987
+ environmentOid: bigint;
14988
+ sessionOid: bigint;
14989
+ connectionOid: bigint | null;
14990
+ providerRunOid: bigint | null;
14991
+ messageOid: bigint | null;
14992
+ errorOid: bigint | null;
14993
+ };
14994
+ }>;
14995
+ };
13512
14996
  sessionMessage: {
13513
14997
  list: _lowerdeck_rpc_server.Handler<Partial<Pick<{
13514
14998
  tenantId: string;
13515
14999
  environmentId: string;
13516
15000
  types: ("unknown" | "tool_call" | "mcp_control" | "mcp_message")[] | undefined;
13517
15001
  source: ("provider" | "client")[] | undefined;
13518
- hierarchy: ("parent" | "child")[] | undefined;
15002
+ hierarchy: ("child" | "parent")[] | undefined;
13519
15003
  allowDeleted: boolean | undefined;
13520
15004
  ids: string[] | undefined;
13521
15005
  sessionIds: string[] | undefined;
@@ -14074,6 +15558,7 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
14074
15558
  initState: _metorial_subspace_db.SessionConnectionInitState;
14075
15559
  isManuallyDisabled: boolean;
14076
15560
  isReplaced: boolean;
15561
+ isForManualToolCalls: boolean;
14077
15562
  totalProductiveClientMessageCount: number;
14078
15563
  totalProductiveServerMessageCount: number;
14079
15564
  mcpData: PrismaJson.SessionConnectionMcpData;
@@ -14233,13 +15718,14 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
14233
15718
  id: string;
14234
15719
  createdAt: Date;
14235
15720
  tenantOid: bigint;
15721
+ metadata: unknown | null;
14236
15722
  solutionOid: number;
14237
15723
  environmentOid: bigint;
14238
15724
  sessionOid: bigint;
14239
15725
  providerRunOid: bigint | null;
15726
+ messageOid: bigint;
14240
15727
  sessionProviderOid: bigint | null;
14241
15728
  toolKey: string;
14242
- messageId: string;
14243
15729
  toolOid: bigint;
14244
15730
  }) | null;
14245
15731
  connection: {
@@ -14259,6 +15745,7 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
14259
15745
  initState: _metorial_subspace_db.SessionConnectionInitState;
14260
15746
  isManuallyDisabled: boolean;
14261
15747
  isReplaced: boolean;
15748
+ isForManualToolCalls: boolean;
14262
15749
  totalProductiveClientMessageCount: number;
14263
15750
  totalProductiveServerMessageCount: number;
14264
15751
  mcpData: PrismaJson.SessionConnectionMcpData;
@@ -22449,6 +23936,7 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
22449
23936
  initState: _metorial_subspace_db.SessionConnectionInitState;
22450
23937
  isManuallyDisabled: boolean;
22451
23938
  isReplaced: boolean;
23939
+ isForManualToolCalls: boolean;
22452
23940
  totalProductiveClientMessageCount: number;
22453
23941
  totalProductiveServerMessageCount: number;
22454
23942
  mcpData: PrismaJson.SessionConnectionMcpData;
@@ -22623,6 +24111,7 @@ declare let createSubspaceControllerClient: (o: Parameters<typeof createClient<S
22623
24111
  initState: _metorial_subspace_db.SessionConnectionInitState;
22624
24112
  isManuallyDisabled: boolean;
22625
24113
  isReplaced: boolean;
24114
+ isForManualToolCalls: boolean;
22626
24115
  totalProductiveClientMessageCount: number;
22627
24116
  totalProductiveServerMessageCount: number;
22628
24117
  mcpData: PrismaJson.SessionConnectionMcpData;