@kl1/contracts 1.4.57 → 1.4.58
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 +65 -60
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +65 -60
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -9327,71 +9327,76 @@ var KlinkChatChannelSchema = z117.object({
|
|
9327
9327
|
|
9328
9328
|
// src/klink-chat/index.ts
|
9329
9329
|
import z118 from "zod";
|
9330
|
-
var KlinkChatContract = initContract44().router(
|
9331
|
-
|
9332
|
-
|
9333
|
-
|
9334
|
-
|
9335
|
-
|
9336
|
-
|
9337
|
-
|
9338
|
-
|
9330
|
+
var KlinkChatContract = initContract44().router(
|
9331
|
+
{
|
9332
|
+
connect: {
|
9333
|
+
method: "POST",
|
9334
|
+
path: "/connect",
|
9335
|
+
summary: "Connect to klink chat",
|
9336
|
+
body: KlinkChatChannelSchema,
|
9337
|
+
responses: {
|
9338
|
+
200: DefaultSuccessResponseSchema.extend({
|
9339
|
+
channel: ChannelSchema
|
9340
|
+
}),
|
9341
|
+
400: DefaultErrorResponseSchema,
|
9342
|
+
500: DefaultErrorResponseSchema
|
9343
|
+
}
|
9344
|
+
},
|
9345
|
+
sendMessage: {
|
9346
|
+
method: "POST",
|
9347
|
+
path: "/message",
|
9348
|
+
body: SendMessageToPlatformSchema,
|
9349
|
+
responses: {
|
9350
|
+
200: SendMessageResponseSchema,
|
9351
|
+
500: DefaultErrorResponseSchema
|
9352
|
+
}
|
9353
|
+
},
|
9354
|
+
disconnect: {
|
9355
|
+
method: "POST",
|
9356
|
+
path: "/disconnect",
|
9357
|
+
responses: {
|
9358
|
+
200: ChannelServiceResponseSchema,
|
9359
|
+
500: DefaultErrorResponseSchema,
|
9360
|
+
400: DefaultErrorResponseSchema
|
9361
|
+
},
|
9362
|
+
body: z118.object({
|
9363
|
+
id: z118.string().uuid()
|
9339
9364
|
}),
|
9340
|
-
|
9341
|
-
500: DefaultErrorResponseSchema
|
9342
|
-
}
|
9343
|
-
},
|
9344
|
-
sendMessage: {
|
9345
|
-
method: "POST",
|
9346
|
-
path: "/message",
|
9347
|
-
body: SendMessageToPlatformSchema,
|
9348
|
-
responses: {
|
9349
|
-
200: SendMessageResponseSchema,
|
9350
|
-
500: DefaultErrorResponseSchema
|
9351
|
-
}
|
9352
|
-
},
|
9353
|
-
disconnect: {
|
9354
|
-
method: "POST",
|
9355
|
-
path: "/disconnect",
|
9356
|
-
responses: {
|
9357
|
-
200: ChannelServiceResponseSchema,
|
9358
|
-
500: DefaultErrorResponseSchema,
|
9359
|
-
400: DefaultErrorResponseSchema
|
9365
|
+
summary: "Disconnect klink chat channel"
|
9360
9366
|
},
|
9361
|
-
|
9362
|
-
|
9363
|
-
|
9364
|
-
|
9365
|
-
|
9366
|
-
|
9367
|
-
|
9368
|
-
|
9369
|
-
|
9370
|
-
|
9371
|
-
|
9372
|
-
|
9373
|
-
|
9374
|
-
200: ChannelServiceResponseSchema,
|
9375
|
-
500: DefaultErrorResponseSchema,
|
9376
|
-
400: DefaultErrorResponseSchema
|
9367
|
+
reconnect: {
|
9368
|
+
method: "POST",
|
9369
|
+
path: "/reconnect/:channelId",
|
9370
|
+
pathParams: z118.object({
|
9371
|
+
channelId: z118.string().uuid()
|
9372
|
+
}),
|
9373
|
+
body: null,
|
9374
|
+
responses: {
|
9375
|
+
200: ChannelServiceResponseSchema,
|
9376
|
+
500: DefaultErrorResponseSchema,
|
9377
|
+
400: DefaultErrorResponseSchema
|
9378
|
+
},
|
9379
|
+
summary: "Reconnect klink chat channel"
|
9377
9380
|
},
|
9378
|
-
|
9381
|
+
delete: {
|
9382
|
+
method: "DELETE",
|
9383
|
+
path: "/delete/:channelId",
|
9384
|
+
pathParams: z118.object({
|
9385
|
+
channelId: z118.string().uuid()
|
9386
|
+
}),
|
9387
|
+
body: null,
|
9388
|
+
responses: {
|
9389
|
+
200: ChannelServiceResponseSchema,
|
9390
|
+
500: DefaultErrorResponseSchema,
|
9391
|
+
400: DefaultErrorResponseSchema
|
9392
|
+
},
|
9393
|
+
summary: "Delete klink chat channel"
|
9394
|
+
}
|
9379
9395
|
},
|
9380
|
-
|
9381
|
-
|
9382
|
-
path: "/delete/:channelId",
|
9383
|
-
pathParams: z118.object({
|
9384
|
-
channelId: z118.string().uuid()
|
9385
|
-
}),
|
9386
|
-
body: null,
|
9387
|
-
responses: {
|
9388
|
-
200: ChannelServiceResponseSchema,
|
9389
|
-
500: DefaultErrorResponseSchema,
|
9390
|
-
400: DefaultErrorResponseSchema
|
9391
|
-
},
|
9392
|
-
summary: "Delete klink chat channel"
|
9396
|
+
{
|
9397
|
+
pathPrefix: "kcs"
|
9393
9398
|
}
|
9394
|
-
|
9399
|
+
);
|
9395
9400
|
|
9396
9401
|
// src/contract.ts
|
9397
9402
|
var apiContract = initContract45().router({
|