@kl1/contracts 1.4.59 → 1.4.60
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/api-contracts/src/contract.d.ts +5 -5
- package/dist/api-contracts/src/klink-chat/index.d.ts +5 -5
- package/dist/api-contracts/src/klink-chat/index.d.ts.map +1 -1
- package/dist/index.js +60 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -9346,76 +9346,71 @@ var invoiceContract = initContract43().router(
|
|
9346
9346
|
// src/klink-chat/index.ts
|
9347
9347
|
import { initContract as initContract44 } from "@ts-rest/core";
|
9348
9348
|
import z118 from "zod";
|
9349
|
-
var KlinkChatContract = initContract44().router(
|
9350
|
-
{
|
9351
|
-
|
9352
|
-
|
9353
|
-
|
9354
|
-
|
9355
|
-
|
9356
|
-
|
9357
|
-
|
9358
|
-
channel: ChannelSchema
|
9359
|
-
}),
|
9360
|
-
400: DefaultErrorResponseSchema,
|
9361
|
-
500: DefaultErrorResponseSchema
|
9362
|
-
}
|
9363
|
-
},
|
9364
|
-
sendMessage: {
|
9365
|
-
method: "POST",
|
9366
|
-
path: "/message",
|
9367
|
-
body: SendMessageToPlatformSchema,
|
9368
|
-
responses: {
|
9369
|
-
200: SendMessageResponseSchema,
|
9370
|
-
500: DefaultErrorResponseSchema
|
9371
|
-
}
|
9372
|
-
},
|
9373
|
-
disconnect: {
|
9374
|
-
method: "POST",
|
9375
|
-
path: "/disconnect",
|
9376
|
-
responses: {
|
9377
|
-
200: ChannelServiceResponseSchema,
|
9378
|
-
500: DefaultErrorResponseSchema,
|
9379
|
-
400: DefaultErrorResponseSchema
|
9380
|
-
},
|
9381
|
-
body: z118.object({
|
9382
|
-
id: z118.string().uuid()
|
9349
|
+
var KlinkChatContract = initContract44().router({
|
9350
|
+
connect: {
|
9351
|
+
method: "POST",
|
9352
|
+
path: "/connect",
|
9353
|
+
summary: "Connect to klink chat",
|
9354
|
+
body: KlinkChatChannelSchema,
|
9355
|
+
responses: {
|
9356
|
+
200: DefaultSuccessResponseSchema.extend({
|
9357
|
+
channel: ChannelSchema
|
9383
9358
|
}),
|
9384
|
-
|
9359
|
+
400: DefaultErrorResponseSchema,
|
9360
|
+
500: DefaultErrorResponseSchema
|
9361
|
+
}
|
9362
|
+
},
|
9363
|
+
sendMessage: {
|
9364
|
+
method: "POST",
|
9365
|
+
path: "/message",
|
9366
|
+
body: SendMessageToPlatformSchema,
|
9367
|
+
responses: {
|
9368
|
+
200: SendMessageResponseSchema,
|
9369
|
+
500: DefaultErrorResponseSchema
|
9370
|
+
}
|
9371
|
+
},
|
9372
|
+
disconnect: {
|
9373
|
+
method: "POST",
|
9374
|
+
path: "/disconnect",
|
9375
|
+
responses: {
|
9376
|
+
200: ChannelServiceResponseSchema,
|
9377
|
+
500: DefaultErrorResponseSchema,
|
9378
|
+
400: DefaultErrorResponseSchema
|
9385
9379
|
},
|
9386
|
-
|
9387
|
-
|
9388
|
-
|
9389
|
-
|
9390
|
-
|
9391
|
-
|
9392
|
-
|
9393
|
-
|
9394
|
-
|
9395
|
-
|
9396
|
-
|
9397
|
-
|
9398
|
-
|
9380
|
+
body: z118.object({
|
9381
|
+
id: z118.string().uuid()
|
9382
|
+
}),
|
9383
|
+
summary: "Disconnect klink chat channel"
|
9384
|
+
},
|
9385
|
+
reconnect: {
|
9386
|
+
method: "POST",
|
9387
|
+
path: "/reconnect/:channelId",
|
9388
|
+
pathParams: z118.object({
|
9389
|
+
channelId: z118.string().uuid()
|
9390
|
+
}),
|
9391
|
+
body: null,
|
9392
|
+
responses: {
|
9393
|
+
200: ChannelServiceResponseSchema,
|
9394
|
+
500: DefaultErrorResponseSchema,
|
9395
|
+
400: DefaultErrorResponseSchema
|
9399
9396
|
},
|
9400
|
-
|
9401
|
-
method: "DELETE",
|
9402
|
-
path: "/delete/:channelId",
|
9403
|
-
pathParams: z118.object({
|
9404
|
-
channelId: z118.string().uuid()
|
9405
|
-
}),
|
9406
|
-
body: null,
|
9407
|
-
responses: {
|
9408
|
-
200: ChannelServiceResponseSchema,
|
9409
|
-
500: DefaultErrorResponseSchema,
|
9410
|
-
400: DefaultErrorResponseSchema
|
9411
|
-
},
|
9412
|
-
summary: "Delete klink chat channel"
|
9413
|
-
}
|
9397
|
+
summary: "Reconnect klink chat channel"
|
9414
9398
|
},
|
9415
|
-
{
|
9416
|
-
|
9399
|
+
delete: {
|
9400
|
+
method: "DELETE",
|
9401
|
+
path: "/delete/:channelId",
|
9402
|
+
pathParams: z118.object({
|
9403
|
+
channelId: z118.string().uuid()
|
9404
|
+
}),
|
9405
|
+
body: null,
|
9406
|
+
responses: {
|
9407
|
+
200: ChannelServiceResponseSchema,
|
9408
|
+
500: DefaultErrorResponseSchema,
|
9409
|
+
400: DefaultErrorResponseSchema
|
9410
|
+
},
|
9411
|
+
summary: "Delete klink chat channel"
|
9417
9412
|
}
|
9418
|
-
);
|
9413
|
+
});
|
9419
9414
|
|
9420
9415
|
// src/contract.ts
|
9421
9416
|
var apiContract = initContract45().router({
|