@mestra-dev/contract 0.0.313 → 0.0.314

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 (2) hide show
  1. package/dist/index.d.ts +235 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4872,6 +4872,37 @@ declare const routes: import("hono/hono-base").HonoBase<{
4872
4872
  status: 201;
4873
4873
  };
4874
4874
  };
4875
+ } & {
4876
+ "/chat-room": {
4877
+ $post: {
4878
+ input: {
4879
+ json: {
4880
+ workspace: string;
4881
+ customerId: string;
4882
+ roomId: string;
4883
+ };
4884
+ };
4885
+ output: {
4886
+ success: false;
4887
+ error: string;
4888
+ };
4889
+ outputFormat: "json";
4890
+ status: 404;
4891
+ } | {
4892
+ input: {
4893
+ json: {
4894
+ workspace: string;
4895
+ customerId: string;
4896
+ roomId: string;
4897
+ };
4898
+ };
4899
+ output: {
4900
+ success: true;
4901
+ };
4902
+ outputFormat: "json";
4903
+ status: 200;
4904
+ };
4905
+ };
4875
4906
  } & {
4876
4907
  "/relations/delete": {
4877
4908
  $post: {
@@ -12095,6 +12126,208 @@ declare const routes: import("hono/hono-base").HonoBase<{
12095
12126
  status: 200;
12096
12127
  };
12097
12128
  };
12129
+ } & {
12130
+ "/:workspace/ai-conversation-funnel": {
12131
+ $get: {
12132
+ input: {
12133
+ query: {
12134
+ from?: string | number | undefined;
12135
+ to?: string | number | undefined;
12136
+ };
12137
+ } & {
12138
+ param: {
12139
+ workspace: string;
12140
+ };
12141
+ };
12142
+ output: {
12143
+ success: false;
12144
+ error: string;
12145
+ };
12146
+ outputFormat: "json";
12147
+ status: 400;
12148
+ } | {
12149
+ input: {
12150
+ query: {
12151
+ from?: string | number | undefined;
12152
+ to?: string | number | undefined;
12153
+ };
12154
+ } & {
12155
+ param: {
12156
+ workspace: string;
12157
+ };
12158
+ };
12159
+ output: {
12160
+ success: false;
12161
+ error: string;
12162
+ };
12163
+ outputFormat: "json";
12164
+ status: 404;
12165
+ } | {
12166
+ input: {
12167
+ query: {
12168
+ from?: string | number | undefined;
12169
+ to?: string | number | undefined;
12170
+ };
12171
+ } & {
12172
+ param: {
12173
+ workspace: string;
12174
+ };
12175
+ };
12176
+ output: {
12177
+ chatCount: number;
12178
+ answeredChatCount: number;
12179
+ aiChatCount: number;
12180
+ aiOnlyChatCount: number;
12181
+ handoffChatCount: number;
12182
+ operatorOnlyChatCount: number;
12183
+ operatorMessageCount: number;
12184
+ aiMessageCount: number;
12185
+ aiEditedMessageCount: number;
12186
+ success: true;
12187
+ workspaceId: string;
12188
+ period: {
12189
+ from: string | null;
12190
+ to: string | null;
12191
+ };
12192
+ trackingSince: string | null;
12193
+ };
12194
+ outputFormat: "json";
12195
+ status: 200;
12196
+ };
12197
+ };
12198
+ } & {
12199
+ "/:workspace/ai-leads-deals": {
12200
+ $get: {
12201
+ input: {
12202
+ query: {
12203
+ from?: string | number | undefined;
12204
+ to?: string | number | undefined;
12205
+ };
12206
+ } & {
12207
+ param: {
12208
+ workspace: string;
12209
+ };
12210
+ };
12211
+ output: {
12212
+ success: false;
12213
+ error: string;
12214
+ };
12215
+ outputFormat: "json";
12216
+ status: 400;
12217
+ } | {
12218
+ input: {
12219
+ query: {
12220
+ from?: string | number | undefined;
12221
+ to?: string | number | undefined;
12222
+ };
12223
+ } & {
12224
+ param: {
12225
+ workspace: string;
12226
+ };
12227
+ };
12228
+ output: {
12229
+ success: false;
12230
+ error: string;
12231
+ };
12232
+ outputFormat: "json";
12233
+ status: 404;
12234
+ } | {
12235
+ input: {
12236
+ query: {
12237
+ from?: string | number | undefined;
12238
+ to?: string | number | undefined;
12239
+ };
12240
+ } & {
12241
+ param: {
12242
+ workspace: string;
12243
+ };
12244
+ };
12245
+ output: {
12246
+ leadCount: number;
12247
+ aiLeadCount: number;
12248
+ dealCount: number;
12249
+ aiDealCount: number;
12250
+ success: true;
12251
+ workspaceId: string;
12252
+ category: string;
12253
+ period: {
12254
+ from: string | null;
12255
+ to: string | null;
12256
+ };
12257
+ trackingSince: string | null;
12258
+ };
12259
+ outputFormat: "json";
12260
+ status: 200;
12261
+ };
12262
+ };
12263
+ } & {
12264
+ "/:workspace/ai-revenue": {
12265
+ $get: {
12266
+ input: {
12267
+ query: {
12268
+ from?: string | number | undefined;
12269
+ to?: string | number | undefined;
12270
+ };
12271
+ } & {
12272
+ param: {
12273
+ workspace: string;
12274
+ };
12275
+ };
12276
+ output: {
12277
+ success: false;
12278
+ error: string;
12279
+ };
12280
+ outputFormat: "json";
12281
+ status: 400;
12282
+ } | {
12283
+ input: {
12284
+ query: {
12285
+ from?: string | number | undefined;
12286
+ to?: string | number | undefined;
12287
+ };
12288
+ } & {
12289
+ param: {
12290
+ workspace: string;
12291
+ };
12292
+ };
12293
+ output: {
12294
+ success: false;
12295
+ error: string;
12296
+ };
12297
+ outputFormat: "json";
12298
+ status: 404;
12299
+ } | {
12300
+ input: {
12301
+ query: {
12302
+ from?: string | number | undefined;
12303
+ to?: string | number | undefined;
12304
+ };
12305
+ } & {
12306
+ param: {
12307
+ workspace: string;
12308
+ };
12309
+ };
12310
+ output: {
12311
+ success: true;
12312
+ workspaceId: string;
12313
+ category: string;
12314
+ period: {
12315
+ from: string | null;
12316
+ to: string | null;
12317
+ };
12318
+ trackingSince: string | null;
12319
+ currencies: {
12320
+ currency: string;
12321
+ totalMinor: number;
12322
+ aiMinor: number;
12323
+ invoiceCount: number;
12324
+ aiInvoiceCount: number;
12325
+ }[];
12326
+ };
12327
+ outputFormat: "json";
12328
+ status: 200;
12329
+ };
12330
+ };
12098
12331
  } & {
12099
12332
  "/chat-events": {
12100
12333
  $post: {
@@ -12107,6 +12340,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
12107
12340
  direction: "customer" | "operator";
12108
12341
  channel?: string | null | undefined;
12109
12342
  sentAt: number;
12343
+ aiOperationId?: string | null | undefined;
12344
+ aiEdited?: boolean | null | undefined;
12110
12345
  }[];
12111
12346
  };
12112
12347
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.313",
3
+ "version": "0.0.314",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,