@kl1/contracts 1.1.46-uat → 1.1.47-uat
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.js +24 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -20
- package/dist/index.mjs.map +1 -1
- package/dist/src/channel/index.d.ts +2680 -2710
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/contract.d.ts +0 -1204
- package/dist/src/contract.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/src/contract2.d.ts +0 -2
- package/dist/src/contract2.d.ts.map +0 -1
package/dist/index.js
CHANGED
@@ -37,6 +37,7 @@ __export(src_exports, {
|
|
37
37
|
botpressContract: () => botpressContract,
|
38
38
|
businessCalendarContract: () => businessCalendarContract2,
|
39
39
|
categoryContract: () => categoryContract,
|
40
|
+
channelBotContract: () => channelBotContract,
|
40
41
|
channelContract: () => channelContract,
|
41
42
|
chatContract: () => chatContract2,
|
42
43
|
commentActivityContract: () => commentActivityContract,
|
@@ -2143,26 +2144,6 @@ var channelContract = (0, import_core6.initContract)().router(
|
|
2143
2144
|
body: ConnectChannelSchema,
|
2144
2145
|
summary: "Relogin message channel"
|
2145
2146
|
},
|
2146
|
-
connectBot: {
|
2147
|
-
method: "POST",
|
2148
|
-
path: "/connect-bot/:channelId",
|
2149
|
-
responses: {
|
2150
|
-
200: DefaultSuccessResponseSchema.extend({ channel: ChannelSchema }),
|
2151
|
-
400: DefaultErrorResponseSchema,
|
2152
|
-
500: DefaultErrorResponseSchema
|
2153
|
-
},
|
2154
|
-
body: ConnectBotSchema
|
2155
|
-
},
|
2156
|
-
disconnectBot: {
|
2157
|
-
method: "POST",
|
2158
|
-
path: "/disconnect-bot/:channelId",
|
2159
|
-
responses: {
|
2160
|
-
200: DefaultSuccessResponseSchema.extend({ channel: ChannelSchema }),
|
2161
|
-
400: DefaultErrorResponseSchema,
|
2162
|
-
500: DefaultErrorResponseSchema
|
2163
|
-
},
|
2164
|
-
body: import_zod35.default.object({})
|
2165
|
-
},
|
2166
2147
|
messenger,
|
2167
2148
|
line,
|
2168
2149
|
instagram,
|
@@ -2174,6 +2155,28 @@ var channelContract = (0, import_core6.initContract)().router(
|
|
2174
2155
|
pathPrefix: "channel"
|
2175
2156
|
}
|
2176
2157
|
);
|
2158
|
+
var channelBotContract = (0, import_core6.initContract)().router({
|
2159
|
+
connectBot: {
|
2160
|
+
method: "POST",
|
2161
|
+
path: "/connect-bot/:channelId",
|
2162
|
+
responses: {
|
2163
|
+
200: DefaultSuccessResponseSchema.extend({ channel: ChannelSchema }),
|
2164
|
+
400: DefaultErrorResponseSchema,
|
2165
|
+
500: DefaultErrorResponseSchema
|
2166
|
+
},
|
2167
|
+
body: ConnectBotSchema
|
2168
|
+
},
|
2169
|
+
disconnectBot: {
|
2170
|
+
method: "POST",
|
2171
|
+
path: "/disconnect-bot/:channelId",
|
2172
|
+
responses: {
|
2173
|
+
200: DefaultSuccessResponseSchema.extend({ channel: ChannelSchema }),
|
2174
|
+
400: DefaultErrorResponseSchema,
|
2175
|
+
500: DefaultErrorResponseSchema
|
2176
|
+
},
|
2177
|
+
body: import_zod35.default.object({})
|
2178
|
+
}
|
2179
|
+
});
|
2177
2180
|
|
2178
2181
|
// src/comment/index.ts
|
2179
2182
|
var import_core7 = require("@ts-rest/core");
|
@@ -8221,6 +8224,7 @@ var platformWebchatContract = (0, import_core45.initContract)().router({
|
|
8221
8224
|
botpressContract,
|
8222
8225
|
businessCalendarContract,
|
8223
8226
|
categoryContract,
|
8227
|
+
channelBotContract,
|
8224
8228
|
channelContract,
|
8225
8229
|
chatContract,
|
8226
8230
|
commentActivityContract,
|