@kl1/contracts 1.1.60 → 1.1.61

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.mjs CHANGED
@@ -2258,7 +2258,7 @@ var WaapiQrResponseSchema = DefaultSuccessResponseSchema.extend({
2258
2258
  data: WaapiQrSchema
2259
2259
  });
2260
2260
  var GetWaapiQrQuerySchema = z40.object({
2261
- channelId: z40.string()
2261
+ instanceId: z40.string()
2262
2262
  });
2263
2263
  var SendSeenToWaapiSchema = z40.object({
2264
2264
  channelId: z40.string().uuid(),
@@ -2456,7 +2456,7 @@ var whatsapp = initContract7().router(
2456
2456
  },
2457
2457
  createWaapi: {
2458
2458
  method: "POST",
2459
- path: "/waapi",
2459
+ path: "/mobile",
2460
2460
  body: null,
2461
2461
  responses: {
2462
2462
  200: WaapiResponseSchema,
@@ -2466,13 +2466,26 @@ var whatsapp = initContract7().router(
2466
2466
  },
2467
2467
  getWaapiQr: {
2468
2468
  method: "GET",
2469
- path: "/waapi/qr",
2469
+ path: "/mobile/qr",
2470
2470
  query: GetWaapiQrQuerySchema,
2471
2471
  responses: {
2472
2472
  200: WaapiQrResponseSchema,
2473
2473
  500: DefaultErrorResponseSchema,
2474
2474
  400: DefaultErrorResponseSchema
2475
2475
  }
2476
+ },
2477
+ deleteWaapi: {
2478
+ method: "DELETE",
2479
+ path: "/mobile/:instanceId",
2480
+ pathParams: z41.object({
2481
+ instanceId: z41.string()
2482
+ }),
2483
+ body: z41.any().optional(),
2484
+ responses: {
2485
+ 200: DefaultSuccessResponseSchema,
2486
+ 500: DefaultErrorResponseSchema,
2487
+ 400: DefaultErrorResponseSchema
2488
+ }
2476
2489
  }
2477
2490
  },
2478
2491
  {
@@ -2551,7 +2564,9 @@ var channelContract = initContract7().router(
2551
2564
  }),
2552
2565
  408: DefaultErrorResponseSchema
2553
2566
  },
2554
- body: null,
2567
+ body: z41.object({
2568
+ instanceId: z41.string().nullable().optional()
2569
+ }),
2555
2570
  summary: "Reconnect message channel"
2556
2571
  },
2557
2572
  relogin: {
@@ -8394,7 +8409,9 @@ var whatsappContract = initContract42().router({
8394
8409
  pathParams: z114.object({
8395
8410
  channelId: z114.string().uuid()
8396
8411
  }),
8397
- body: null,
8412
+ body: z114.object({
8413
+ instanceId: z114.string().nullable().optional()
8414
+ }),
8398
8415
  responses: {
8399
8416
  200: ChannelServiceResponseSchema,
8400
8417
  500: DefaultErrorResponseSchema,
@@ -8426,7 +8443,7 @@ var whatsappContract = initContract42().router({
8426
8443
  },
8427
8444
  createWaapi: {
8428
8445
  method: "POST",
8429
- path: "/waapi",
8446
+ path: "/mobile",
8430
8447
  body: null,
8431
8448
  responses: {
8432
8449
  200: WaapiResponseSchema,
@@ -8436,7 +8453,7 @@ var whatsappContract = initContract42().router({
8436
8453
  },
8437
8454
  getWaapiQr: {
8438
8455
  method: "GET",
8439
- path: "/waapi/qr",
8456
+ path: "/mobile/qr",
8440
8457
  query: GetWaapiQrQuerySchema,
8441
8458
  responses: {
8442
8459
  200: WaapiQrResponseSchema,
@@ -8444,9 +8461,22 @@ var whatsappContract = initContract42().router({
8444
8461
  400: DefaultErrorResponseSchema
8445
8462
  }
8446
8463
  },
8464
+ deleteWaapi: {
8465
+ method: "DELETE",
8466
+ path: "/mobile/:instanceId",
8467
+ pathParams: z114.object({
8468
+ instanceId: z114.string()
8469
+ }),
8470
+ body: z114.any().optional(),
8471
+ responses: {
8472
+ 200: DefaultSuccessResponseSchema,
8473
+ 500: DefaultErrorResponseSchema,
8474
+ 400: DefaultErrorResponseSchema
8475
+ }
8476
+ },
8447
8477
  sendSeenToWaapi: {
8448
8478
  method: "POST",
8449
- path: "/waapi/send-seen",
8479
+ path: "/mobile/send-seen",
8450
8480
  body: SendSeenToWaapiSchema,
8451
8481
  responses: {
8452
8482
  200: WaapiResponseSchema,