@chatbotkit/sdk 1.18.3 → 1.20.0
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/cjs/blueprint/index.cjs +3 -0
- package/dist/cjs/blueprint/index.d.ts +8 -7
- package/dist/cjs/blueprint/v1.cjs +12 -7
- package/dist/cjs/blueprint/v1.d.ts +24 -36
- package/dist/cjs/bot/index.d.ts +8 -8
- package/dist/cjs/bot/session/index.d.ts +1 -1
- package/dist/cjs/bot/session/v1.cjs +1 -2
- package/dist/cjs/bot/session/v1.d.ts +5 -9
- package/dist/cjs/bot/v1.cjs +7 -10
- package/dist/cjs/bot/v1.d.ts +30 -54
- package/dist/cjs/buffer.cjs +5 -5
- package/dist/cjs/channel/index.cjs +18 -0
- package/dist/cjs/channel/index.d.ts +7 -0
- package/dist/cjs/channel/v1.cjs +22 -0
- package/dist/cjs/channel/v1.d.ts +12 -0
- package/dist/cjs/client.cjs +13 -2
- package/dist/cjs/client.d.ts +6 -6
- package/dist/cjs/contact/conversation/index.d.ts +2 -2
- package/dist/cjs/contact/conversation/v1.cjs +1 -2
- package/dist/cjs/contact/conversation/v1.d.ts +5 -28
- package/dist/cjs/contact/index.cjs +4 -2
- package/dist/cjs/contact/index.d.ts +9 -7
- package/dist/cjs/contact/secret/index.d.ts +5 -5
- package/dist/cjs/contact/secret/v1.cjs +10 -11
- package/dist/cjs/contact/secret/v1.d.ts +20 -40
- package/dist/cjs/contact/space/index.cjs +15 -0
- package/dist/cjs/contact/space/index.d.ts +6 -0
- package/dist/cjs/contact/space/v1.cjs +8 -0
- package/dist/cjs/contact/space/v1.d.ts +11 -0
- package/dist/cjs/contact/task/index.d.ts +2 -2
- package/dist/cjs/contact/task/v1.cjs +1 -2
- package/dist/cjs/contact/task/v1.d.ts +5 -24
- package/dist/cjs/contact/v1.cjs +6 -7
- package/dist/cjs/contact/v1.d.ts +22 -44
- package/dist/cjs/conversation/attachment/index.d.ts +2 -2
- package/dist/cjs/conversation/attachment/v1.cjs +1 -2
- package/dist/cjs/conversation/attachment/v1.d.ts +2 -2
- package/dist/cjs/conversation/index.cjs +1 -1
- package/dist/cjs/conversation/index.d.ts +12 -12
- package/dist/cjs/conversation/message/index.d.ts +8 -8
- package/dist/cjs/conversation/message/v1.cjs +7 -10
- package/dist/cjs/conversation/message/v1.d.ts +27 -46
- package/dist/cjs/conversation/session/index.d.ts +1 -1
- package/dist/cjs/conversation/session/v1.cjs +1 -2
- package/dist/cjs/conversation/session/v1.d.ts +5 -8
- package/dist/cjs/conversation/v1.cjs +14 -15
- package/dist/cjs/conversation/v1.d.ts +55 -159
- package/dist/cjs/dataset/file/index.d.ts +5 -5
- package/dist/cjs/dataset/file/v1.cjs +4 -5
- package/dist/cjs/dataset/file/v1.d.ts +17 -26
- package/dist/cjs/dataset/index.d.ts +7 -7
- package/dist/cjs/dataset/record/index.cjs +3 -0
- package/dist/cjs/dataset/record/index.d.ts +7 -6
- package/dist/cjs/dataset/record/v1.cjs +11 -6
- package/dist/cjs/dataset/record/v1.d.ts +26 -34
- package/dist/cjs/dataset/v1.cjs +6 -7
- package/dist/cjs/dataset/v1.d.ts +22 -50
- package/dist/cjs/file/index.cjs +3 -0
- package/dist/cjs/file/index.d.ts +9 -8
- package/dist/cjs/file/v1.cjs +15 -8
- package/dist/cjs/file/v1.d.ts +26 -36
- package/dist/cjs/graphql/index.d.ts +1 -1
- package/dist/cjs/graphql/v1.cjs +4 -5
- package/dist/cjs/graphql/v1.d.ts +7 -18
- package/dist/cjs/index.cjs +56 -35
- package/dist/cjs/index.d.ts +17 -3
- package/dist/cjs/integration/discord/index.d.ts +7 -7
- package/dist/cjs/integration/discord/v1.cjs +6 -10
- package/dist/cjs/integration/discord/v1.d.ts +22 -58
- package/dist/cjs/integration/email/index.d.ts +7 -7
- package/dist/cjs/integration/email/v1.cjs +6 -10
- package/dist/cjs/integration/email/v1.d.ts +22 -54
- package/dist/cjs/integration/extract/index.d.ts +6 -6
- package/dist/cjs/integration/extract/v1.cjs +5 -6
- package/dist/cjs/integration/extract/v1.d.ts +18 -39
- package/dist/cjs/integration/index.cjs +22 -18
- package/dist/cjs/integration/index.d.ts +4 -0
- package/dist/cjs/integration/mcpserver/index.cjs +27 -0
- package/dist/cjs/integration/mcpserver/index.d.ts +10 -0
- package/dist/cjs/integration/mcpserver/v1.cjs +42 -0
- package/dist/cjs/integration/mcpserver/v1.d.ts +28 -0
- package/dist/cjs/integration/messenger/index.d.ts +7 -7
- package/dist/cjs/integration/messenger/v1.cjs +6 -10
- package/dist/cjs/integration/messenger/v1.d.ts +22 -57
- package/dist/cjs/integration/notion/index.d.ts +7 -7
- package/dist/cjs/integration/notion/v1.cjs +6 -7
- package/dist/cjs/integration/notion/v1.d.ts +22 -42
- package/dist/cjs/integration/sitemap/index.d.ts +7 -7
- package/dist/cjs/integration/sitemap/v1.cjs +6 -7
- package/dist/cjs/integration/sitemap/v1.d.ts +22 -45
- package/dist/cjs/integration/slack/index.d.ts +7 -7
- package/dist/cjs/integration/slack/v1.cjs +6 -10
- package/dist/cjs/integration/slack/v1.d.ts +22 -57
- package/dist/cjs/integration/support/index.d.ts +6 -6
- package/dist/cjs/integration/support/v1.cjs +5 -6
- package/dist/cjs/integration/support/v1.d.ts +18 -39
- package/dist/cjs/integration/telegram/index.d.ts +7 -7
- package/dist/cjs/integration/telegram/v1.cjs +6 -10
- package/dist/cjs/integration/telegram/v1.d.ts +22 -56
- package/dist/cjs/integration/trigger/index.d.ts +8 -8
- package/dist/cjs/integration/trigger/v1.cjs +7 -11
- package/dist/cjs/integration/trigger/v1.d.ts +26 -59
- package/dist/cjs/integration/twilio/index.cjs +30 -0
- package/dist/cjs/integration/twilio/index.d.ts +11 -0
- package/dist/cjs/integration/twilio/v1.cjs +50 -0
- package/dist/cjs/integration/twilio/v1.d.ts +33 -0
- package/dist/cjs/integration/whatsapp/index.d.ts +7 -7
- package/dist/cjs/integration/whatsapp/v1.cjs +6 -10
- package/dist/cjs/integration/whatsapp/v1.d.ts +22 -58
- package/dist/cjs/integration/widget/index.cjs +3 -0
- package/dist/cjs/integration/widget/index.d.ts +7 -6
- package/dist/cjs/integration/widget/v1.cjs +14 -6
- package/dist/cjs/integration/widget/v1.d.ts +23 -56
- package/dist/cjs/magic/index.d.ts +15 -2
- package/dist/cjs/magic/v1.cjs +1 -2
- package/dist/cjs/magic/v1.d.ts +4 -13
- package/dist/cjs/memory/index.cjs +33 -0
- package/dist/cjs/memory/index.d.ts +12 -0
- package/dist/cjs/memory/v1.cjs +58 -0
- package/dist/cjs/memory/v1.d.ts +46 -0
- package/dist/cjs/model/v1.cjs +1 -2
- package/dist/cjs/model/v1.d.ts +1 -1
- package/dist/cjs/param.cjs +1 -2
- package/dist/cjs/partner/user/index.d.ts +6 -6
- package/dist/cjs/partner/user/token/index.d.ts +4 -4
- package/dist/cjs/partner/user/token/v1.cjs +3 -4
- package/dist/cjs/partner/user/token/v1.d.ts +13 -26
- package/dist/cjs/partner/user/v1.cjs +5 -6
- package/dist/cjs/partner/user/v1.d.ts +18 -34
- package/dist/cjs/platform/ability/index.d.ts +2 -2
- package/dist/cjs/platform/ability/v1.cjs +1 -2
- package/dist/cjs/platform/ability/v1.d.ts +6 -21
- package/dist/cjs/platform/action/index.cjs +15 -0
- package/dist/cjs/platform/action/index.d.ts +6 -0
- package/dist/cjs/platform/action/v1.cjs +8 -0
- package/dist/cjs/platform/action/v1.d.ts +12 -0
- package/dist/cjs/platform/content/doc/index.cjs +18 -0
- package/dist/cjs/platform/content/doc/index.d.ts +7 -0
- package/dist/cjs/platform/content/doc/v1.cjs +16 -0
- package/dist/cjs/platform/content/doc/v1.d.ts +14 -0
- package/dist/cjs/platform/content/index.cjs +15 -0
- package/dist/cjs/platform/content/index.d.ts +8 -0
- package/dist/cjs/platform/content/manual/index.cjs +18 -0
- package/dist/cjs/platform/content/manual/index.d.ts +7 -0
- package/dist/cjs/platform/content/manual/v1.cjs +16 -0
- package/dist/cjs/platform/content/manual/v1.d.ts +14 -0
- package/dist/cjs/platform/example/index.cjs +21 -0
- package/dist/cjs/platform/example/index.d.ts +8 -0
- package/dist/cjs/platform/example/v1.cjs +26 -0
- package/dist/cjs/platform/example/v1.d.ts +21 -0
- package/dist/cjs/platform/index.cjs +10 -4
- package/dist/cjs/platform/index.d.ts +7 -1
- package/dist/cjs/platform/model/index.d.ts +2 -2
- package/dist/cjs/platform/model/v1.cjs +1 -2
- package/dist/cjs/platform/model/v1.d.ts +6 -21
- package/dist/cjs/platform/secret/index.d.ts +2 -2
- package/dist/cjs/platform/secret/v1.cjs +1 -2
- package/dist/cjs/platform/secret/v1.d.ts +6 -22
- package/dist/cjs/policy/index.cjs +27 -0
- package/dist/cjs/policy/index.d.ts +10 -0
- package/dist/cjs/policy/v1.cjs +42 -0
- package/dist/cjs/policy/v1.d.ts +28 -0
- package/dist/cjs/portal/index.cjs +27 -0
- package/dist/cjs/portal/index.d.ts +10 -0
- package/dist/cjs/portal/v1.cjs +42 -0
- package/dist/cjs/portal/v1.d.ts +28 -0
- package/dist/cjs/secret/index.cjs +9 -0
- package/dist/cjs/secret/index.d.ts +9 -6
- package/dist/cjs/secret/v1.cjs +29 -6
- package/dist/cjs/secret/v1.d.ts +33 -36
- package/dist/cjs/skillset/ability/index.cjs +3 -0
- package/dist/cjs/skillset/ability/index.d.ts +7 -6
- package/dist/cjs/skillset/ability/v1.cjs +11 -6
- package/dist/cjs/skillset/ability/v1.d.ts +26 -34
- package/dist/cjs/skillset/index.d.ts +6 -6
- package/dist/cjs/skillset/v1.cjs +5 -6
- package/dist/cjs/skillset/v1.d.ts +18 -34
- package/dist/cjs/space/index.cjs +27 -0
- package/dist/cjs/space/index.d.ts +10 -0
- package/dist/cjs/space/v1.cjs +42 -0
- package/dist/cjs/space/v1.d.ts +28 -0
- package/dist/cjs/task/index.cjs +6 -0
- package/dist/cjs/task/index.d.ts +8 -6
- package/dist/cjs/task/v1.cjs +21 -6
- package/dist/cjs/task/v1.d.ts +29 -35
- package/dist/cjs/team/index.cjs +15 -0
- package/dist/cjs/team/index.d.ts +6 -0
- package/dist/cjs/team/v1.cjs +8 -0
- package/dist/cjs/team/v1.d.ts +11 -0
- package/dist/cjs/usage/index.d.ts +2 -2
- package/dist/cjs/usage/series/index.d.ts +2 -2
- package/dist/cjs/usage/series/v1.cjs +2 -3
- package/dist/cjs/usage/series/v1.d.ts +3 -18
- package/dist/cjs/usage/v1.cjs +1 -2
- package/dist/cjs/usage/v1.d.ts +3 -17
- package/dist/esm/blueprint/index.d.ts +8 -7
- package/dist/esm/blueprint/index.js +4 -1
- package/dist/esm/blueprint/v1.d.ts +25 -37
- package/dist/esm/blueprint/v1.js +5 -0
- package/dist/esm/bot/index.d.ts +8 -8
- package/dist/esm/bot/session/index.d.ts +1 -1
- package/dist/esm/bot/session/v1.d.ts +5 -9
- package/dist/esm/bot/v1.d.ts +31 -55
- package/dist/esm/bot/v1.js +0 -2
- package/dist/esm/buffer.js +4 -3
- package/dist/esm/channel/index.d.ts +7 -0
- package/dist/esm/channel/index.js +14 -0
- package/dist/esm/channel/v1.d.ts +12 -0
- package/dist/esm/channel/v1.js +18 -0
- package/dist/esm/client.d.ts +35 -35
- package/dist/esm/client.js +13 -2
- package/dist/esm/contact/conversation/index.d.ts +2 -2
- package/dist/esm/contact/conversation/v1.d.ts +6 -29
- package/dist/esm/contact/index.d.ts +9 -7
- package/dist/esm/contact/index.js +2 -0
- package/dist/esm/contact/secret/index.d.ts +5 -5
- package/dist/esm/contact/secret/v1.d.ts +21 -41
- package/dist/esm/contact/secret/v1.js +6 -6
- package/dist/esm/contact/space/index.d.ts +6 -0
- package/dist/esm/contact/space/index.js +11 -0
- package/dist/esm/contact/space/v1.d.ts +11 -0
- package/dist/esm/contact/space/v1.js +5 -0
- package/dist/esm/contact/task/index.d.ts +2 -2
- package/dist/esm/contact/task/v1.d.ts +6 -25
- package/dist/esm/contact/v1.d.ts +23 -45
- package/dist/esm/conversation/attachment/index.d.ts +2 -2
- package/dist/esm/conversation/attachment/v1.d.ts +2 -2
- package/dist/esm/conversation/index.d.ts +12 -12
- package/dist/esm/conversation/index.js +1 -1
- package/dist/esm/conversation/message/index.d.ts +8 -8
- package/dist/esm/conversation/message/v1.d.ts +28 -47
- package/dist/esm/conversation/message/v1.js +0 -2
- package/dist/esm/conversation/session/index.d.ts +1 -1
- package/dist/esm/conversation/session/v1.d.ts +5 -8
- package/dist/esm/conversation/v1.d.ts +56 -160
- package/dist/esm/conversation/v1.js +3 -3
- package/dist/esm/dataset/file/index.d.ts +5 -5
- package/dist/esm/dataset/file/v1.d.ts +18 -27
- package/dist/esm/dataset/index.d.ts +7 -7
- package/dist/esm/dataset/record/index.d.ts +7 -6
- package/dist/esm/dataset/record/index.js +4 -1
- package/dist/esm/dataset/record/v1.d.ts +27 -35
- package/dist/esm/dataset/record/v1.js +5 -0
- package/dist/esm/dataset/v1.d.ts +23 -51
- package/dist/esm/file/index.d.ts +9 -8
- package/dist/esm/file/index.js +4 -1
- package/dist/esm/file/v1.d.ts +27 -37
- package/dist/esm/file/v1.js +7 -0
- package/dist/esm/graphql/index.d.ts +1 -1
- package/dist/esm/graphql/v1.d.ts +7 -18
- package/dist/esm/graphql/v1.js +3 -3
- package/dist/esm/index.d.ts +17 -3
- package/dist/esm/index.js +23 -2
- package/dist/esm/integration/discord/index.d.ts +7 -7
- package/dist/esm/integration/discord/v1.d.ts +23 -59
- package/dist/esm/integration/discord/v1.js +0 -3
- package/dist/esm/integration/email/index.d.ts +7 -7
- package/dist/esm/integration/email/v1.d.ts +23 -55
- package/dist/esm/integration/email/v1.js +0 -3
- package/dist/esm/integration/extract/index.d.ts +6 -6
- package/dist/esm/integration/extract/v1.d.ts +19 -40
- package/dist/esm/integration/index.d.ts +4 -0
- package/dist/esm/integration/index.js +4 -0
- package/dist/esm/integration/mcpserver/index.d.ts +10 -0
- package/dist/esm/integration/mcpserver/index.js +23 -0
- package/dist/esm/integration/mcpserver/v1.d.ts +28 -0
- package/dist/esm/integration/mcpserver/v1.js +35 -0
- package/dist/esm/integration/messenger/index.d.ts +7 -7
- package/dist/esm/integration/messenger/v1.d.ts +23 -58
- package/dist/esm/integration/messenger/v1.js +0 -3
- package/dist/esm/integration/notion/index.d.ts +7 -7
- package/dist/esm/integration/notion/v1.d.ts +23 -43
- package/dist/esm/integration/sitemap/index.d.ts +7 -7
- package/dist/esm/integration/sitemap/v1.d.ts +23 -46
- package/dist/esm/integration/slack/index.d.ts +7 -7
- package/dist/esm/integration/slack/v1.d.ts +23 -58
- package/dist/esm/integration/slack/v1.js +0 -3
- package/dist/esm/integration/support/index.d.ts +6 -6
- package/dist/esm/integration/support/v1.d.ts +19 -40
- package/dist/esm/integration/telegram/index.d.ts +7 -7
- package/dist/esm/integration/telegram/v1.d.ts +23 -57
- package/dist/esm/integration/telegram/v1.js +0 -3
- package/dist/esm/integration/trigger/index.d.ts +8 -8
- package/dist/esm/integration/trigger/v1.d.ts +27 -60
- package/dist/esm/integration/trigger/v1.js +0 -3
- package/dist/esm/integration/twilio/index.d.ts +11 -0
- package/dist/esm/integration/twilio/index.js +26 -0
- package/dist/esm/integration/twilio/v1.d.ts +33 -0
- package/dist/esm/integration/twilio/v1.js +42 -0
- package/dist/esm/integration/whatsapp/index.d.ts +7 -7
- package/dist/esm/integration/whatsapp/v1.d.ts +23 -59
- package/dist/esm/integration/whatsapp/v1.js +0 -3
- package/dist/esm/integration/widget/index.d.ts +7 -6
- package/dist/esm/integration/widget/index.js +4 -1
- package/dist/esm/integration/widget/v1.d.ts +24 -57
- package/dist/esm/integration/widget/v1.js +8 -0
- package/dist/esm/magic/index.d.ts +15 -2
- package/dist/esm/magic/v1.d.ts +4 -13
- package/dist/esm/memory/index.d.ts +12 -0
- package/dist/esm/memory/index.js +29 -0
- package/dist/esm/memory/v1.d.ts +46 -0
- package/dist/esm/memory/v1.js +49 -0
- package/dist/esm/model/v1.d.ts +1 -1
- package/dist/esm/param.d.ts +1 -1
- package/dist/esm/partner/user/index.d.ts +6 -6
- package/dist/esm/partner/user/token/index.d.ts +4 -4
- package/dist/esm/partner/user/token/v1.d.ts +14 -27
- package/dist/esm/partner/user/v1.d.ts +19 -35
- package/dist/esm/platform/ability/index.d.ts +2 -2
- package/dist/esm/platform/ability/v1.d.ts +7 -22
- package/dist/esm/platform/action/index.d.ts +6 -0
- package/dist/esm/platform/action/index.js +11 -0
- package/dist/esm/platform/action/v1.d.ts +12 -0
- package/dist/esm/platform/action/v1.js +5 -0
- package/dist/esm/platform/content/doc/index.d.ts +7 -0
- package/dist/esm/platform/content/doc/index.js +14 -0
- package/dist/esm/platform/content/doc/v1.d.ts +14 -0
- package/dist/esm/platform/content/doc/v1.js +12 -0
- package/dist/esm/platform/content/index.d.ts +8 -0
- package/dist/esm/platform/content/index.js +11 -0
- package/dist/esm/platform/content/manual/index.d.ts +7 -0
- package/dist/esm/platform/content/manual/index.js +14 -0
- package/dist/esm/platform/content/manual/v1.d.ts +14 -0
- package/dist/esm/platform/content/manual/v1.js +12 -0
- package/dist/esm/platform/example/index.d.ts +8 -0
- package/dist/esm/platform/example/index.js +17 -0
- package/dist/esm/platform/example/v1.d.ts +21 -0
- package/dist/esm/platform/example/v1.js +21 -0
- package/dist/esm/platform/index.d.ts +7 -1
- package/dist/esm/platform/index.js +7 -1
- package/dist/esm/platform/model/index.d.ts +2 -2
- package/dist/esm/platform/model/v1.d.ts +7 -22
- package/dist/esm/platform/secret/index.d.ts +2 -2
- package/dist/esm/platform/secret/v1.d.ts +7 -23
- package/dist/esm/policy/index.d.ts +10 -0
- package/dist/esm/policy/index.js +23 -0
- package/dist/esm/policy/v1.d.ts +28 -0
- package/dist/esm/policy/v1.js +35 -0
- package/dist/esm/portal/index.d.ts +10 -0
- package/dist/esm/portal/index.js +23 -0
- package/dist/esm/portal/v1.d.ts +28 -0
- package/dist/esm/portal/v1.js +35 -0
- package/dist/esm/secret/index.d.ts +9 -6
- package/dist/esm/secret/index.js +10 -1
- package/dist/esm/secret/v1.d.ts +34 -37
- package/dist/esm/secret/v1.js +21 -0
- package/dist/esm/skillset/ability/index.d.ts +7 -6
- package/dist/esm/skillset/ability/index.js +4 -1
- package/dist/esm/skillset/ability/v1.d.ts +27 -35
- package/dist/esm/skillset/ability/v1.js +5 -0
- package/dist/esm/skillset/index.d.ts +6 -6
- package/dist/esm/skillset/v1.d.ts +19 -35
- package/dist/esm/space/index.d.ts +10 -0
- package/dist/esm/space/index.js +23 -0
- package/dist/esm/space/v1.d.ts +28 -0
- package/dist/esm/space/v1.js +35 -0
- package/dist/esm/task/index.d.ts +8 -6
- package/dist/esm/task/index.js +7 -1
- package/dist/esm/task/v1.d.ts +30 -36
- package/dist/esm/task/v1.js +14 -0
- package/dist/esm/team/index.d.ts +6 -0
- package/dist/esm/team/index.js +11 -0
- package/dist/esm/team/v1.d.ts +11 -0
- package/dist/esm/team/v1.js +5 -0
- package/dist/esm/usage/index.d.ts +2 -2
- package/dist/esm/usage/series/index.d.ts +2 -2
- package/dist/esm/usage/series/v1.d.ts +3 -18
- package/dist/esm/usage/series/v1.js +1 -1
- package/dist/esm/usage/v1.d.ts +3 -17
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +695 -7
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listSitemapIntegrations = listSitemapIntegrations;
|
|
4
|
+
exports.fetchSitemapIntegration = fetchSitemapIntegration;
|
|
5
|
+
exports.createSitemapIntegration = createSitemapIntegration;
|
|
6
|
+
exports.updateSitemapIntegration = updateSitemapIntegration;
|
|
7
|
+
exports.deleteSitemapIntegration = deleteSitemapIntegration;
|
|
8
|
+
exports.syncSitemapIntegration = syncSitemapIntegration;
|
|
4
9
|
function listSitemapIntegrations(client, request) {
|
|
5
10
|
let url = `/api/v1/integration/sitemap/list`;
|
|
6
11
|
const response = client.clientFetch(url, { query: request });
|
|
7
12
|
return response;
|
|
8
13
|
}
|
|
9
|
-
exports.listSitemapIntegrations = listSitemapIntegrations;
|
|
10
14
|
function fetchSitemapIntegration(client, sitemapId) {
|
|
11
15
|
const url = `/api/v1/integration/sitemap/${sitemapId}/fetch`;
|
|
12
16
|
const response = client.clientFetch(url);
|
|
13
17
|
return response;
|
|
14
18
|
}
|
|
15
|
-
exports.fetchSitemapIntegration = fetchSitemapIntegration;
|
|
16
19
|
async function createSitemapIntegration(client, request) {
|
|
17
20
|
const url = `/api/v1/integration/sitemap/create`;
|
|
18
21
|
const response = await client.clientFetch(url, {
|
|
@@ -22,7 +25,6 @@ async function createSitemapIntegration(client, request) {
|
|
|
22
25
|
});
|
|
23
26
|
return response;
|
|
24
27
|
}
|
|
25
|
-
exports.createSitemapIntegration = createSitemapIntegration;
|
|
26
28
|
async function updateSitemapIntegration(client, sitemapId, request) {
|
|
27
29
|
const url = `/api/v1/integration/sitemap/${sitemapId}/update`;
|
|
28
30
|
const response = await client.clientFetch(url, {
|
|
@@ -32,7 +34,6 @@ async function updateSitemapIntegration(client, sitemapId, request) {
|
|
|
32
34
|
});
|
|
33
35
|
return response;
|
|
34
36
|
}
|
|
35
|
-
exports.updateSitemapIntegration = updateSitemapIntegration;
|
|
36
37
|
async function deleteSitemapIntegration(client, sitemapId) {
|
|
37
38
|
const url = `/api/v1/integration/sitemap/${sitemapId}/delete`;
|
|
38
39
|
const response = await client.clientFetch(url, {
|
|
@@ -40,7 +41,6 @@ async function deleteSitemapIntegration(client, sitemapId) {
|
|
|
40
41
|
});
|
|
41
42
|
return response;
|
|
42
43
|
}
|
|
43
|
-
exports.deleteSitemapIntegration = deleteSitemapIntegration;
|
|
44
44
|
async function syncSitemapIntegration(client, sitemapId) {
|
|
45
45
|
const url = `/api/v1/integration/sitemap/${sitemapId}/sync`;
|
|
46
46
|
const response = await client.clientFetch(url, {
|
|
@@ -48,4 +48,3 @@ async function syncSitemapIntegration(client, sitemapId) {
|
|
|
48
48
|
});
|
|
49
49
|
return response;
|
|
50
50
|
}
|
|
51
|
-
exports.syncSitemapIntegration = syncSitemapIntegration;
|
|
@@ -4,53 +4,30 @@ export function createSitemapIntegration(client: ChatBotKitClient, request: Site
|
|
|
4
4
|
export function updateSitemapIntegration(client: ChatBotKitClient, sitemapId: string, request: SitemapIntegrationUpdateRequest): Promise<SitemapIntegrationUpdateResponse>;
|
|
5
5
|
export function deleteSitemapIntegration(client: ChatBotKitClient, sitemapId: string): Promise<SitemapIntegrationDeleteResponse>;
|
|
6
6
|
export function syncSitemapIntegration(client: ChatBotKitClient, sitemapId: string): Promise<SitemapIntegrationSyncResponse>;
|
|
7
|
-
export type ChatBotKitClient = import(
|
|
8
|
-
export type ResponsePromise<T, U> = import(
|
|
9
|
-
export type SitemapIntegrationOptions = {
|
|
10
|
-
name?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
datasetId?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
glob?: string;
|
|
15
|
-
selectors?: string;
|
|
16
|
-
javascript?: boolean;
|
|
17
|
-
syncSchedule?: string;
|
|
18
|
-
expiresIn?: number;
|
|
19
|
-
meta?: Record<string, any>;
|
|
20
|
-
};
|
|
21
|
-
export type SitemapInegrationInstance = SitemapIntegrationOptions & {
|
|
22
|
-
id: string;
|
|
23
|
-
createdAt: number;
|
|
24
|
-
updatedAt: number;
|
|
25
|
-
};
|
|
7
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
8
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
26
9
|
export type SitemapIntegrationListRequest = {
|
|
27
10
|
cursor?: string;
|
|
28
|
-
order?:
|
|
11
|
+
order?: "desc" | "asc";
|
|
29
12
|
take?: number;
|
|
30
13
|
meta?: Record<string, string>;
|
|
31
14
|
};
|
|
32
|
-
export type SitemapIntegrationListResponse =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export type
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export type
|
|
40
|
-
export type
|
|
41
|
-
export type
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export type
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export type
|
|
48
|
-
export type
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export type SitemapIntegrationDeleteResponse = {
|
|
52
|
-
id: string;
|
|
53
|
-
};
|
|
54
|
-
export type SitemapIntegrationSyncResponse = {
|
|
55
|
-
id: string;
|
|
56
|
-
};
|
|
15
|
+
export type SitemapIntegrationListResponse = import("../../types/api/v1.js").operations["listSitemapIntegrations"]["responses"]["200"]["content"]["application/json"];
|
|
16
|
+
export type SitemapIntegrationListStreamType = import("../../types/api/v1.js").operations["listSitemapIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
|
|
17
|
+
export type SitemapIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchSitemapIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
18
|
+
export type SitemapIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createSitemapIntegration"]["requestBody"]["content"]["application/json"];
|
|
19
|
+
export type SitemapIntegrationCreateRequest = SitemapIntegrationCreateRequestBody;
|
|
20
|
+
export type SitemapIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createSitemapIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
21
|
+
export type SitemapIntegrationCreateResponse = SitemapIntegrationCreateResponseBody;
|
|
22
|
+
export type SitemapIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateSitemapIntegration"]["requestBody"]["content"]["application/json"];
|
|
23
|
+
export type SitemapIntegrationUpdateRequest = SitemapIntegrationUpdateRequestBody;
|
|
24
|
+
export type SitemapIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateSitemapIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
25
|
+
export type SitemapIntegrationUpdateResponse = SitemapIntegrationUpdateResponseBody;
|
|
26
|
+
export type SitemapIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteSitemapIntegration"]["requestBody"]["content"]["application/json"];
|
|
27
|
+
export type SitemapIntegrationDeleteRequest = SitemapIntegrationDeleteRequestBody;
|
|
28
|
+
export type SitemapIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteSitemapIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
29
|
+
export type SitemapIntegrationDeleteResponse = SitemapIntegrationDeleteResponseBody;
|
|
30
|
+
export type SitemapIntegrationSyncRequestBody = import("../../types/api/v1.js").operations["syncSitemapIntegration"]["requestBody"]["content"]["application/json"];
|
|
31
|
+
export type SitemapIntegrationSyncRequest = SitemapIntegrationSyncRequestBody;
|
|
32
|
+
export type SitemapIntegrationSyncResponseBody = import("../../types/api/v1.js").operations["syncSitemapIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
33
|
+
export type SitemapIntegrationSyncResponse = SitemapIntegrationSyncResponseBody;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export class SlackIntegrationClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import(
|
|
3
|
-
fetch(slackId: string): ResponsePromise<import(
|
|
4
|
-
create(request: import(
|
|
5
|
-
update(slackId: string, request: import(
|
|
6
|
-
delete(slackId: string): Promise<import(
|
|
7
|
-
setup(slackId: string): Promise<import(
|
|
2
|
+
list(request?: import("./v1.js").SlackIntegrationListRequest): ResponsePromise<import("./v1.js").SlackIntegrationListResponse, import("./v1.js").SlackIntegrationListStreamType>;
|
|
3
|
+
fetch(slackId: string): ResponsePromise<import("./v1.js").SlackIntegrationFetchResponse, never>;
|
|
4
|
+
create(request: import("./v1.js").SlackIntegrationCreateRequest): Promise<import("./v1.js").SlackIntegrationCreateResponse>;
|
|
5
|
+
update(slackId: string, request: import("./v1.js").SlackIntegrationUpdateRequest): Promise<import("./v1.js").SlackIntegrationUpdateResponse>;
|
|
6
|
+
delete(slackId: string): Promise<import("./v1.js").SlackIntegrationDeleteResponse>;
|
|
7
|
+
setup(slackId: string): Promise<import("./v1.js").SlackIntegrationSetupResponse>;
|
|
8
8
|
}
|
|
9
9
|
export default SlackIntegrationClient;
|
|
10
|
-
export type ResponsePromise<T, U> = import(
|
|
10
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
11
11
|
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.listSlackIntegrations = listSlackIntegrations;
|
|
4
|
+
exports.fetchSlackIntegration = fetchSlackIntegration;
|
|
5
|
+
exports.createSlackIntegration = createSlackIntegration;
|
|
6
|
+
exports.updateSlackIntegration = updateSlackIntegration;
|
|
7
|
+
exports.deleteSlackIntegration = deleteSlackIntegration;
|
|
8
|
+
exports.setupSlackIntegration = setupSlackIntegration;
|
|
5
9
|
function listSlackIntegrations(client, request) {
|
|
6
10
|
let url = `/api/v1/integration/slack/list`;
|
|
7
11
|
const response = client.clientFetch(url, { query: request });
|
|
8
12
|
return response;
|
|
9
13
|
}
|
|
10
|
-
exports.listSlackIntegrations = listSlackIntegrations;
|
|
11
14
|
function fetchSlackIntegration(client, slackId) {
|
|
12
15
|
const url = `/api/v1/integration/slack/${slackId}/fetch`;
|
|
13
16
|
const response = client.clientFetch(url);
|
|
14
17
|
return response;
|
|
15
18
|
}
|
|
16
|
-
exports.fetchSlackIntegration = fetchSlackIntegration;
|
|
17
19
|
async function createSlackIntegration(client, request) {
|
|
18
20
|
const url = `/api/v1/integration/slack/create`;
|
|
19
21
|
const response = await client.clientFetch(url, {
|
|
20
22
|
record: {
|
|
21
23
|
...request,
|
|
22
|
-
model: request.model ? (0, v1_js_1.buildModelString)(request.model) : undefined,
|
|
23
24
|
},
|
|
24
25
|
});
|
|
25
26
|
return response;
|
|
26
27
|
}
|
|
27
|
-
exports.createSlackIntegration = createSlackIntegration;
|
|
28
28
|
async function updateSlackIntegration(client, slackId, request) {
|
|
29
29
|
const url = `/api/v1/integration/slack/${slackId}/update`;
|
|
30
30
|
const response = await client.clientFetch(url, {
|
|
31
31
|
record: {
|
|
32
32
|
...request,
|
|
33
|
-
model: request.model ? (0, v1_js_1.buildModelString)(request.model) : undefined,
|
|
34
33
|
},
|
|
35
34
|
});
|
|
36
35
|
return response;
|
|
37
36
|
}
|
|
38
|
-
exports.updateSlackIntegration = updateSlackIntegration;
|
|
39
37
|
async function deleteSlackIntegration(client, slackId) {
|
|
40
38
|
const url = `/api/v1/integration/slack/${slackId}/delete`;
|
|
41
39
|
const response = await client.clientFetch(url, {
|
|
@@ -43,7 +41,6 @@ async function deleteSlackIntegration(client, slackId) {
|
|
|
43
41
|
});
|
|
44
42
|
return response;
|
|
45
43
|
}
|
|
46
|
-
exports.deleteSlackIntegration = deleteSlackIntegration;
|
|
47
44
|
async function setupSlackIntegration(client, slackId) {
|
|
48
45
|
const url = `/api/v1/integration/slack/${slackId}/setup`;
|
|
49
46
|
const response = await client.clientFetch(url, {
|
|
@@ -51,4 +48,3 @@ async function setupSlackIntegration(client, slackId) {
|
|
|
51
48
|
});
|
|
52
49
|
return response;
|
|
53
50
|
}
|
|
54
|
-
exports.setupSlackIntegration = setupSlackIntegration;
|
|
@@ -4,65 +4,30 @@ export function createSlackIntegration(client: ChatBotKitClient, request: SlackI
|
|
|
4
4
|
export function updateSlackIntegration(client: ChatBotKitClient, slackId: string, request: SlackIntegrationUpdateRequest): Promise<SlackIntegrationUpdateResponse>;
|
|
5
5
|
export function deleteSlackIntegration(client: ChatBotKitClient, slackId: string): Promise<SlackIntegrationDeleteResponse>;
|
|
6
6
|
export function setupSlackIntegration(client: ChatBotKitClient, slackId: string): Promise<SlackIntegrationSetupResponse>;
|
|
7
|
-
export type ChatBotKitClient = import(
|
|
8
|
-
export type ResponsePromise<T, U> = import(
|
|
9
|
-
export type BotRef = {
|
|
10
|
-
botId?: string;
|
|
11
|
-
};
|
|
12
|
-
export type BotConfig = {
|
|
13
|
-
backstory?: string;
|
|
14
|
-
model?: string;
|
|
15
|
-
datasetId?: string;
|
|
16
|
-
skillsetId?: string;
|
|
17
|
-
privacy?: boolean;
|
|
18
|
-
moderation?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type BotRefOrConfig = BotRef | BotConfig;
|
|
21
|
-
export type SlackIntegrationOptions = BotRefOrConfig & {
|
|
22
|
-
name?: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
signingSecret?: string;
|
|
25
|
-
botToken?: string;
|
|
26
|
-
visibleMessages?: number;
|
|
27
|
-
contactCollection?: boolean;
|
|
28
|
-
sessionDuration?: number;
|
|
29
|
-
meta?: Record<string, any>;
|
|
30
|
-
};
|
|
31
|
-
export type SlackIntegrationInstance = SlackIntegrationOptions & {
|
|
32
|
-
id: string;
|
|
33
|
-
createdAt: number;
|
|
34
|
-
updatedAt: number;
|
|
35
|
-
};
|
|
7
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
8
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
36
9
|
export type SlackIntegrationListRequest = {
|
|
37
10
|
cursor?: string;
|
|
38
|
-
order?:
|
|
11
|
+
order?: "desc" | "asc";
|
|
39
12
|
take?: number;
|
|
40
13
|
meta?: Record<string, string>;
|
|
41
14
|
};
|
|
42
|
-
export type SlackIntegrationListResponse =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export type
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export type
|
|
50
|
-
export type
|
|
51
|
-
export type
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export type
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export type
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export type
|
|
61
|
-
id: string;
|
|
62
|
-
};
|
|
63
|
-
export type SlackIntegrationDeleteResponse = {
|
|
64
|
-
id: string;
|
|
65
|
-
};
|
|
66
|
-
export type SlackIntegrationSetupResponse = {
|
|
67
|
-
id: string;
|
|
68
|
-
};
|
|
15
|
+
export type SlackIntegrationListResponse = import("../../types/api/v1.js").operations["listSlackIntegrations"]["responses"]["200"]["content"]["application/json"];
|
|
16
|
+
export type SlackIntegrationListStreamType = import("../../types/api/v1.js").operations["listSlackIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
|
|
17
|
+
export type SlackIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchSlackIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
18
|
+
export type SlackIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createSlackIntegration"]["requestBody"]["content"]["application/json"];
|
|
19
|
+
export type SlackIntegrationCreateRequest = SlackIntegrationCreateRequestBody;
|
|
20
|
+
export type SlackIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createSlackIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
21
|
+
export type SlackIntegrationCreateResponse = SlackIntegrationCreateResponseBody;
|
|
22
|
+
export type SlackIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateSlackIntegration"]["requestBody"]["content"]["application/json"];
|
|
23
|
+
export type SlackIntegrationUpdateRequest = SlackIntegrationUpdateRequestBody;
|
|
24
|
+
export type SlackIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateSlackIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
25
|
+
export type SlackIntegrationUpdateResponse = SlackIntegrationUpdateResponseBody;
|
|
26
|
+
export type SlackIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteSlackIntegration"]["requestBody"]["content"]["application/json"];
|
|
27
|
+
export type SlackIntegrationDeleteRequest = SlackIntegrationDeleteRequestBody;
|
|
28
|
+
export type SlackIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteSlackIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
29
|
+
export type SlackIntegrationDeleteResponse = SlackIntegrationDeleteResponseBody;
|
|
30
|
+
export type SlackIntegrationSetupRequestBody = import("../../types/api/v1.js").operations["setupSlackIntegration"]["requestBody"]["content"]["application/json"];
|
|
31
|
+
export type SlackIntegrationSetupRequest = SlackIntegrationSetupRequestBody;
|
|
32
|
+
export type SlackIntegrationSetupResponseBody = import("../../types/api/v1.js").operations["setupSlackIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
33
|
+
export type SlackIntegrationSetupResponse = SlackIntegrationSetupResponseBody;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export class SupportIntegrationClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import(
|
|
3
|
-
fetch(supportId: string): ResponsePromise<import(
|
|
4
|
-
create(request: import(
|
|
5
|
-
update(supportId: string, request: import(
|
|
6
|
-
delete(supportId: string): Promise<import(
|
|
2
|
+
list(request?: import("./v1.js").SupportIntegrationListRequest): ResponsePromise<import("./v1.js").SupportIntegrationListResponse, import("./v1.js").SupportIntegrationListStreamType>;
|
|
3
|
+
fetch(supportId: string): ResponsePromise<import("./v1.js").SupportIntegrationFetchResponse, never>;
|
|
4
|
+
create(request: import("./v1.js").SupportIntegrationCreateRequest): Promise<import("./v1.js").SupportIntegrationCreateResponse>;
|
|
5
|
+
update(supportId: string, request: import("./v1.js").SupportIntegrationUpdateRequest): Promise<import("./v1.js").SupportIntegrationUpdateResponse>;
|
|
6
|
+
delete(supportId: string): Promise<import("./v1.js").SupportIntegrationDeleteResponse>;
|
|
7
7
|
}
|
|
8
8
|
export default SupportIntegrationClient;
|
|
9
|
-
export type ResponsePromise<T, U> = import(
|
|
9
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
10
10
|
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listSupportIntegrations = listSupportIntegrations;
|
|
4
|
+
exports.fetchSupportIntegration = fetchSupportIntegration;
|
|
5
|
+
exports.createSupportIntegration = createSupportIntegration;
|
|
6
|
+
exports.updateSupportIntegration = updateSupportIntegration;
|
|
7
|
+
exports.deleteSupportIntegration = deleteSupportIntegration;
|
|
4
8
|
function listSupportIntegrations(client, request) {
|
|
5
9
|
let url = `/api/v1/integration/support/list`;
|
|
6
10
|
const response = client.clientFetch(url, { query: request });
|
|
7
11
|
return response;
|
|
8
12
|
}
|
|
9
|
-
exports.listSupportIntegrations = listSupportIntegrations;
|
|
10
13
|
function fetchSupportIntegration(client, supportId) {
|
|
11
14
|
const url = `/api/v1/integration/support/${supportId}/fetch`;
|
|
12
15
|
const response = client.clientFetch(url);
|
|
13
16
|
return response;
|
|
14
17
|
}
|
|
15
|
-
exports.fetchSupportIntegration = fetchSupportIntegration;
|
|
16
18
|
async function createSupportIntegration(client, request) {
|
|
17
19
|
const url = `/api/v1/integration/support/create`;
|
|
18
20
|
const response = await client.clientFetch(url, {
|
|
@@ -22,7 +24,6 @@ async function createSupportIntegration(client, request) {
|
|
|
22
24
|
});
|
|
23
25
|
return response;
|
|
24
26
|
}
|
|
25
|
-
exports.createSupportIntegration = createSupportIntegration;
|
|
26
27
|
async function updateSupportIntegration(client, supportId, request) {
|
|
27
28
|
const url = `/api/v1/integration/support/${supportId}/update`;
|
|
28
29
|
const response = await client.clientFetch(url, {
|
|
@@ -32,7 +33,6 @@ async function updateSupportIntegration(client, supportId, request) {
|
|
|
32
33
|
});
|
|
33
34
|
return response;
|
|
34
35
|
}
|
|
35
|
-
exports.updateSupportIntegration = updateSupportIntegration;
|
|
36
36
|
async function deleteSupportIntegration(client, supportId) {
|
|
37
37
|
const url = `/api/v1/integration/support/${supportId}/delete`;
|
|
38
38
|
const response = await client.clientFetch(url, {
|
|
@@ -40,4 +40,3 @@ async function deleteSupportIntegration(client, supportId) {
|
|
|
40
40
|
});
|
|
41
41
|
return response;
|
|
42
42
|
}
|
|
43
|
-
exports.deleteSupportIntegration = deleteSupportIntegration;
|
|
@@ -3,47 +3,26 @@ export function fetchSupportIntegration(client: ChatBotKitClient, supportId: str
|
|
|
3
3
|
export function createSupportIntegration(client: ChatBotKitClient, request: SupportIntegrationCreateRequest): Promise<SupportIntegrationCreateResponse>;
|
|
4
4
|
export function updateSupportIntegration(client: ChatBotKitClient, supportId: string, request: SupportIntegrationUpdateRequest): Promise<SupportIntegrationUpdateResponse>;
|
|
5
5
|
export function deleteSupportIntegration(client: ChatBotKitClient, supportId: string): Promise<SupportIntegrationDeleteResponse>;
|
|
6
|
-
export type ChatBotKitClient = import(
|
|
7
|
-
export type ResponsePromise<T, U> = import(
|
|
8
|
-
export type SupportIntegrationOptions = {
|
|
9
|
-
name?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
botId?: string;
|
|
12
|
-
email?: string;
|
|
13
|
-
syncSchedule?: string;
|
|
14
|
-
expiresIn?: number;
|
|
15
|
-
meta?: Record<string, any>;
|
|
16
|
-
};
|
|
17
|
-
export type SupportInegrationInstance = SupportIntegrationOptions & {
|
|
18
|
-
id: string;
|
|
19
|
-
createdAt: number;
|
|
20
|
-
updatedAt: number;
|
|
21
|
-
};
|
|
6
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
7
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
22
8
|
export type SupportIntegrationListRequest = {
|
|
23
9
|
cursor?: string;
|
|
24
|
-
order?:
|
|
10
|
+
order?: "desc" | "asc";
|
|
25
11
|
take?: number;
|
|
26
12
|
meta?: Record<string, string>;
|
|
27
13
|
};
|
|
28
|
-
export type SupportIntegrationListResponse =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export type
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export type
|
|
36
|
-
export type
|
|
37
|
-
export type
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export type
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export type SupportIntegrationUpdateRequest = SupportIntegrationOptions & {};
|
|
44
|
-
export type SupportIntegrationUpdateResponse = {
|
|
45
|
-
id: string;
|
|
46
|
-
};
|
|
47
|
-
export type SupportIntegrationDeleteResponse = {
|
|
48
|
-
id: string;
|
|
49
|
-
};
|
|
14
|
+
export type SupportIntegrationListResponse = import("../../types/api/v1.js").operations["listSupportIntegrations"]["responses"]["200"]["content"]["application/json"];
|
|
15
|
+
export type SupportIntegrationListStreamType = import("../../types/api/v1.js").operations["listSupportIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
|
|
16
|
+
export type SupportIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchSupportIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
17
|
+
export type SupportIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createSupportIntegration"]["requestBody"]["content"]["application/json"];
|
|
18
|
+
export type SupportIntegrationCreateRequest = SupportIntegrationCreateRequestBody;
|
|
19
|
+
export type SupportIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createSupportIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
20
|
+
export type SupportIntegrationCreateResponse = SupportIntegrationCreateResponseBody;
|
|
21
|
+
export type SupportIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateSupportIntegration"]["requestBody"]["content"]["application/json"];
|
|
22
|
+
export type SupportIntegrationUpdateRequest = SupportIntegrationUpdateRequestBody;
|
|
23
|
+
export type SupportIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateSupportIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
24
|
+
export type SupportIntegrationUpdateResponse = SupportIntegrationUpdateResponseBody;
|
|
25
|
+
export type SupportIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteSupportIntegration"]["requestBody"]["content"]["application/json"];
|
|
26
|
+
export type SupportIntegrationDeleteRequest = SupportIntegrationDeleteRequestBody;
|
|
27
|
+
export type SupportIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteSupportIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
28
|
+
export type SupportIntegrationDeleteResponse = SupportIntegrationDeleteResponseBody;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export class TelegramIntegrationClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import(
|
|
3
|
-
fetch(telegramId: string): ResponsePromise<import(
|
|
4
|
-
create(request: import(
|
|
5
|
-
update(telegramId: string, request: import(
|
|
6
|
-
delete(telegramId: string): Promise<import(
|
|
7
|
-
setup(telegramId: string): Promise<import(
|
|
2
|
+
list(request?: import("./v1.js").TelegramIntegrationListRequest): ResponsePromise<import("./v1.js").TelegramIntegrationListResponse, import("./v1.js").TelegramIntegrationListStreamType>;
|
|
3
|
+
fetch(telegramId: string): ResponsePromise<import("./v1.js").TelegramIntegrationFetchResponse, never>;
|
|
4
|
+
create(request: import("./v1.js").TelegramIntegrationCreateRequest): Promise<import("./v1.js").TelegramIntegrationCreateResponse>;
|
|
5
|
+
update(telegramId: string, request: import("./v1.js").TelegramIntegrationUpdateRequest): Promise<import("./v1.js").TelegramIntegrationUpdateResponse>;
|
|
6
|
+
delete(telegramId: string): Promise<import("./v1.js").TelegramIntegrationDeleteResponse>;
|
|
7
|
+
setup(telegramId: string): Promise<import("./v1.js").TelegramIntegrationSetupResponse>;
|
|
8
8
|
}
|
|
9
9
|
export default TelegramIntegrationClient;
|
|
10
|
-
export type ResponsePromise<T, U> = import(
|
|
10
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
11
11
|
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.listTelegramIntegrations = listTelegramIntegrations;
|
|
4
|
+
exports.fetchTelegramIntegration = fetchTelegramIntegration;
|
|
5
|
+
exports.createTelegramIntegration = createTelegramIntegration;
|
|
6
|
+
exports.updateTelegramIntegration = updateTelegramIntegration;
|
|
7
|
+
exports.deleteTelegramIntegration = deleteTelegramIntegration;
|
|
8
|
+
exports.setupTelegramIntegration = setupTelegramIntegration;
|
|
5
9
|
function listTelegramIntegrations(client, request) {
|
|
6
10
|
let url = `/api/v1/integration/telegram/list`;
|
|
7
11
|
const response = client.clientFetch(url, { query: request });
|
|
8
12
|
return response;
|
|
9
13
|
}
|
|
10
|
-
exports.listTelegramIntegrations = listTelegramIntegrations;
|
|
11
14
|
function fetchTelegramIntegration(client, telegramId) {
|
|
12
15
|
const url = `/api/v1/integration/telegram/${telegramId}/fetch`;
|
|
13
16
|
const response = client.clientFetch(url);
|
|
14
17
|
return response;
|
|
15
18
|
}
|
|
16
|
-
exports.fetchTelegramIntegration = fetchTelegramIntegration;
|
|
17
19
|
async function createTelegramIntegration(client, request) {
|
|
18
20
|
const url = `/api/v1/integration/telegram/create`;
|
|
19
21
|
const response = await client.clientFetch(url, {
|
|
20
22
|
record: {
|
|
21
23
|
...request,
|
|
22
|
-
model: request.model ? (0, v1_js_1.buildModelString)(request.model) : undefined,
|
|
23
24
|
},
|
|
24
25
|
});
|
|
25
26
|
return response;
|
|
26
27
|
}
|
|
27
|
-
exports.createTelegramIntegration = createTelegramIntegration;
|
|
28
28
|
async function updateTelegramIntegration(client, telegramId, request) {
|
|
29
29
|
const url = `/api/v1/integration/telegram/${telegramId}/update`;
|
|
30
30
|
const response = await client.clientFetch(url, {
|
|
31
31
|
record: {
|
|
32
32
|
...request,
|
|
33
|
-
model: request.model ? (0, v1_js_1.buildModelString)(request.model) : undefined,
|
|
34
33
|
},
|
|
35
34
|
});
|
|
36
35
|
return response;
|
|
37
36
|
}
|
|
38
|
-
exports.updateTelegramIntegration = updateTelegramIntegration;
|
|
39
37
|
async function deleteTelegramIntegration(client, telegramId) {
|
|
40
38
|
const url = `/api/v1/integration/telegram/${telegramId}/delete`;
|
|
41
39
|
const response = await client.clientFetch(url, {
|
|
@@ -43,7 +41,6 @@ async function deleteTelegramIntegration(client, telegramId) {
|
|
|
43
41
|
});
|
|
44
42
|
return response;
|
|
45
43
|
}
|
|
46
|
-
exports.deleteTelegramIntegration = deleteTelegramIntegration;
|
|
47
44
|
async function setupTelegramIntegration(client, telegramId) {
|
|
48
45
|
const url = `/api/v1/integration/telegram/${telegramId}/setup`;
|
|
49
46
|
const response = await client.clientFetch(url, {
|
|
@@ -51,4 +48,3 @@ async function setupTelegramIntegration(client, telegramId) {
|
|
|
51
48
|
});
|
|
52
49
|
return response;
|
|
53
50
|
}
|
|
54
|
-
exports.setupTelegramIntegration = setupTelegramIntegration;
|
|
@@ -4,64 +4,30 @@ export function createTelegramIntegration(client: ChatBotKitClient, request: Tel
|
|
|
4
4
|
export function updateTelegramIntegration(client: ChatBotKitClient, telegramId: string, request: TelegramIntegrationUpdateRequest): Promise<TelegramIntegrationUpdateResponse>;
|
|
5
5
|
export function deleteTelegramIntegration(client: ChatBotKitClient, telegramId: string): Promise<TelegramIntegrationDeleteResponse>;
|
|
6
6
|
export function setupTelegramIntegration(client: ChatBotKitClient, telegramId: string): Promise<TelegramIntegrationSetupResponse>;
|
|
7
|
-
export type ChatBotKitClient = import(
|
|
8
|
-
export type ResponsePromise<T, U> = import(
|
|
9
|
-
export type BotRef = {
|
|
10
|
-
botId?: string;
|
|
11
|
-
};
|
|
12
|
-
export type BotConfig = {
|
|
13
|
-
backstory?: string;
|
|
14
|
-
model?: string;
|
|
15
|
-
datasetId?: string;
|
|
16
|
-
skillsetId?: string;
|
|
17
|
-
privacy?: boolean;
|
|
18
|
-
moderation?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type BotRefOrConfig = BotRef | BotConfig;
|
|
21
|
-
export type TelegramIntegrationOptions = BotRefOrConfig & {
|
|
22
|
-
name?: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
botToken?: string;
|
|
25
|
-
contactCollection?: boolean;
|
|
26
|
-
sessionDuration?: number;
|
|
27
|
-
attachments?: boolean;
|
|
28
|
-
meta?: Record<string, any>;
|
|
29
|
-
};
|
|
30
|
-
export type TelegramIntegrationInstance = TelegramIntegrationOptions & {
|
|
31
|
-
id: string;
|
|
32
|
-
createdAt: number;
|
|
33
|
-
updatedAt: number;
|
|
34
|
-
};
|
|
7
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
8
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
35
9
|
export type TelegramIntegrationListRequest = {
|
|
36
10
|
cursor?: string;
|
|
37
|
-
order?:
|
|
11
|
+
order?: "desc" | "asc";
|
|
38
12
|
take?: number;
|
|
39
13
|
meta?: Record<string, string>;
|
|
40
14
|
};
|
|
41
|
-
export type TelegramIntegrationListResponse =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export type
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export type
|
|
49
|
-
export type
|
|
50
|
-
export type
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export type
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export type
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export type
|
|
60
|
-
id: string;
|
|
61
|
-
};
|
|
62
|
-
export type TelegramIntegrationDeleteResponse = {
|
|
63
|
-
id: string;
|
|
64
|
-
};
|
|
65
|
-
export type TelegramIntegrationSetupResponse = {
|
|
66
|
-
id: string;
|
|
67
|
-
};
|
|
15
|
+
export type TelegramIntegrationListResponse = import("../../types/api/v1.js").operations["listTelegramIntegrations"]["responses"]["200"]["content"]["application/json"];
|
|
16
|
+
export type TelegramIntegrationListStreamType = import("../../types/api/v1.js").operations["listTelegramIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
|
|
17
|
+
export type TelegramIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchTelegramIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
18
|
+
export type TelegramIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createTelegramIntegration"]["requestBody"]["content"]["application/json"];
|
|
19
|
+
export type TelegramIntegrationCreateRequest = TelegramIntegrationCreateRequestBody;
|
|
20
|
+
export type TelegramIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createTelegramIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
21
|
+
export type TelegramIntegrationCreateResponse = TelegramIntegrationCreateResponseBody;
|
|
22
|
+
export type TelegramIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateTelegramIntegration"]["requestBody"]["content"]["application/json"];
|
|
23
|
+
export type TelegramIntegrationUpdateRequest = TelegramIntegrationUpdateRequestBody;
|
|
24
|
+
export type TelegramIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateTelegramIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
25
|
+
export type TelegramIntegrationUpdateResponse = TelegramIntegrationUpdateResponseBody;
|
|
26
|
+
export type TelegramIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteTelegramIntegration"]["requestBody"]["content"]["application/json"];
|
|
27
|
+
export type TelegramIntegrationDeleteRequest = TelegramIntegrationDeleteRequestBody;
|
|
28
|
+
export type TelegramIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteTelegramIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
29
|
+
export type TelegramIntegrationDeleteResponse = TelegramIntegrationDeleteResponseBody;
|
|
30
|
+
export type TelegramIntegrationSetupRequestBody = import("../../types/api/v1.js").operations["setupTelegramIntegration"]["requestBody"]["content"]["application/json"];
|
|
31
|
+
export type TelegramIntegrationSetupRequest = TelegramIntegrationSetupRequestBody;
|
|
32
|
+
export type TelegramIntegrationSetupResponseBody = import("../../types/api/v1.js").operations["setupTelegramIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
33
|
+
export type TelegramIntegrationSetupResponse = TelegramIntegrationSetupResponseBody;
|