@botpress/webchat 1.3.3 → 1.3.4
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/.turbo/turbo-build.log +23 -0
- package/dist/adapters/messaging-to-target.d.ts +15 -15
- package/dist/adapters/webchat-to-target.d.ts +3 -3
- package/dist/client/PushpinClient/inner-client/index.d.ts +2 -2
- package/dist/gen/client/index.d.ts +78 -13
- package/dist/gen/client/models.d.ts +210 -0
- package/dist/gen/client/operations/addParticipant.d.ts +51 -0
- package/dist/gen/client/operations/createConversation.d.ts +39 -0
- package/dist/gen/client/operations/createEvent.d.ts +79 -0
- package/dist/gen/client/operations/createMessage.d.ts +274 -0
- package/dist/gen/client/operations/createUser.d.ts +60 -0
- package/dist/gen/client/operations/deleteConversation.d.ts +22 -0
- package/dist/gen/client/operations/deleteMessage.d.ts +22 -0
- package/dist/gen/client/operations/deleteUser.d.ts +21 -0
- package/dist/gen/client/operations/getConversation.d.ts +36 -0
- package/dist/gen/client/operations/getEvent.d.ts +58 -0
- package/dist/gen/client/operations/getMessage.d.ts +157 -0
- package/dist/gen/client/operations/getParticipant.d.ts +48 -0
- package/dist/gen/client/operations/getUser.d.ts +46 -0
- package/dist/gen/client/operations/listConversationMessages.d.ts +161 -0
- package/dist/gen/client/operations/listConversations.d.ts +42 -0
- package/dist/gen/client/operations/listParticipants.d.ts +51 -0
- package/dist/gen/client/operations/listenConversation.d.ts +22 -0
- package/dist/gen/client/operations/removeParticipant.d.ts +23 -0
- package/dist/gen/client/operations/updateUser.d.ts +60 -0
- package/dist/index.js +32872 -21167
- package/dist/index.umd.cjs +278 -95
- package/openapi.ts +5 -9
- package/package.json +3 -1
- package/dist/gen/client/api.d.ts +0 -2039
- package/dist/gen/client/base.d.ts +0 -54
- package/dist/gen/client/client.d.ts +0 -61
- package/dist/gen/client/common.d.ts +0 -65
- package/dist/gen/client/configuration.d.ts +0 -83
package/openapi.ts
CHANGED
|
@@ -7,17 +7,11 @@ import pathlib from 'path'
|
|
|
7
7
|
const yargsExtra = require('@bpinternal/yargs-extra') // running script from an esm module
|
|
8
8
|
const yargz = yargsExtra.default as ReturnType<typeof yargs>
|
|
9
9
|
|
|
10
|
-
const DEFAULT_OPENAPI_GEN_ENDPOINT = 'http://api.openapi-generator.tech'
|
|
11
|
-
|
|
12
10
|
const configSchema = {
|
|
13
11
|
outDir: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
},
|
|
16
|
-
openapiEndpoint: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
default: DEFAULT_OPENAPI_GEN_ENDPOINT,
|
|
12
|
+
type: 'string' as const,
|
|
19
13
|
},
|
|
20
|
-
}
|
|
14
|
+
} satisfies YargsSchema
|
|
21
15
|
|
|
22
16
|
const description = 'Generate OpenAPI client'
|
|
23
17
|
|
|
@@ -29,7 +23,9 @@ void yargz
|
|
|
29
23
|
}
|
|
30
24
|
|
|
31
25
|
const clientDir = pathlib.join(config.outDir, 'client')
|
|
32
|
-
await api.exportClient(clientDir,
|
|
26
|
+
await api.exportClient(clientDir, {
|
|
27
|
+
generator: 'opapi',
|
|
28
|
+
})
|
|
33
29
|
|
|
34
30
|
const signalsDir = pathlib.join(config.outDir, 'signals')
|
|
35
31
|
await api.signals.exportSchemas(signalsDir)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/webchat",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
"@radix-ui/react-avatar": "^1.0.3",
|
|
27
27
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
28
28
|
"@radix-ui/react-dialog": "^1.0.4",
|
|
29
|
+
"@types/qs": "^6.9.8",
|
|
29
30
|
"axios": "1.2.5",
|
|
30
31
|
"clsx": "^2.0.0",
|
|
31
32
|
"dayjs": "^1.11.10",
|
|
32
33
|
"embla-carousel-react": "8.0.0-rc11",
|
|
33
34
|
"event-source-polyfill": "^1.0.31",
|
|
35
|
+
"qs": "^6.11.2",
|
|
34
36
|
"react": "^18.2.0",
|
|
35
37
|
"react-dom": "^18.2.0",
|
|
36
38
|
"react-hot-toast": "^2.4.1",
|