@botpress/webchat 1.3.3 → 1.3.5

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.
Files changed (36) hide show
  1. package/.turbo/turbo-build.log +23 -0
  2. package/dist/adapters/messaging-to-target.d.ts +15 -15
  3. package/dist/adapters/webchat-to-target.d.ts +3 -3
  4. package/dist/client/PushpinClient/inner-client/index.d.ts +2 -2
  5. package/dist/gen/client/index.d.ts +78 -13
  6. package/dist/gen/client/models.d.ts +210 -0
  7. package/dist/gen/client/operations/addParticipant.d.ts +51 -0
  8. package/dist/gen/client/operations/createConversation.d.ts +39 -0
  9. package/dist/gen/client/operations/createEvent.d.ts +79 -0
  10. package/dist/gen/client/operations/createMessage.d.ts +274 -0
  11. package/dist/gen/client/operations/createUser.d.ts +60 -0
  12. package/dist/gen/client/operations/deleteConversation.d.ts +22 -0
  13. package/dist/gen/client/operations/deleteMessage.d.ts +22 -0
  14. package/dist/gen/client/operations/deleteUser.d.ts +21 -0
  15. package/dist/gen/client/operations/getConversation.d.ts +36 -0
  16. package/dist/gen/client/operations/getEvent.d.ts +58 -0
  17. package/dist/gen/client/operations/getMessage.d.ts +157 -0
  18. package/dist/gen/client/operations/getParticipant.d.ts +48 -0
  19. package/dist/gen/client/operations/getUser.d.ts +46 -0
  20. package/dist/gen/client/operations/listConversationMessages.d.ts +161 -0
  21. package/dist/gen/client/operations/listConversations.d.ts +42 -0
  22. package/dist/gen/client/operations/listParticipants.d.ts +51 -0
  23. package/dist/gen/client/operations/listenConversation.d.ts +22 -0
  24. package/dist/gen/client/operations/removeParticipant.d.ts +23 -0
  25. package/dist/gen/client/operations/updateUser.d.ts +60 -0
  26. package/dist/get-client.d.ts +3 -3
  27. package/dist/hooks/useClient.d.ts +3 -3
  28. package/dist/index.js +32741 -21028
  29. package/dist/index.umd.cjs +278 -95
  30. package/openapi.ts +5 -9
  31. package/package.json +3 -1
  32. package/dist/gen/client/api.d.ts +0 -2039
  33. package/dist/gen/client/base.d.ts +0 -54
  34. package/dist/gen/client/client.d.ts +0 -61
  35. package/dist/gen/client/common.d.ts +0 -65
  36. 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
- } as const satisfies YargsSchema
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, config.openapiEndpoint)
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",
3
+ "version": "1.3.5",
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",