@kl1/contracts 1.2.54-uat → 1.2.56-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1602,7 +1602,7 @@ var smsContract = initContract().router({
1602
1602
  disconnectSMSChannel: {
1603
1603
  method: "POST",
1604
1604
  path: "/disconnect",
1605
- body: ChannelSchema.partial(),
1605
+ body: z27.object({ id: z27.string().uuid() }),
1606
1606
  responses: {
1607
1607
  200: DefaultSuccessResponseSchema.extend({
1608
1608
  channel: ChannelSchema
@@ -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
  {
@@ -8426,7 +8439,7 @@ var whatsappContract = initContract42().router({
8426
8439
  },
8427
8440
  createWaapi: {
8428
8441
  method: "POST",
8429
- path: "/waapi",
8442
+ path: "/mobile",
8430
8443
  body: null,
8431
8444
  responses: {
8432
8445
  200: WaapiResponseSchema,
@@ -8436,7 +8449,7 @@ var whatsappContract = initContract42().router({
8436
8449
  },
8437
8450
  getWaapiQr: {
8438
8451
  method: "GET",
8439
- path: "/waapi/qr",
8452
+ path: "/mobile/qr",
8440
8453
  query: GetWaapiQrQuerySchema,
8441
8454
  responses: {
8442
8455
  200: WaapiQrResponseSchema,
@@ -8444,9 +8457,22 @@ var whatsappContract = initContract42().router({
8444
8457
  400: DefaultErrorResponseSchema
8445
8458
  }
8446
8459
  },
8460
+ deleteWaapi: {
8461
+ method: "DELETE",
8462
+ path: "/mobile/:instanceId",
8463
+ pathParams: z114.object({
8464
+ instanceId: z114.string()
8465
+ }),
8466
+ body: z114.any().optional(),
8467
+ responses: {
8468
+ 200: DefaultSuccessResponseSchema,
8469
+ 500: DefaultErrorResponseSchema,
8470
+ 400: DefaultErrorResponseSchema
8471
+ }
8472
+ },
8447
8473
  sendSeenToWaapi: {
8448
8474
  method: "POST",
8449
- path: "/waapi/send-seen",
8475
+ path: "/mobile/send-seen",
8450
8476
  body: SendSeenToWaapiSchema,
8451
8477
  responses: {
8452
8478
  200: WaapiResponseSchema,