@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformActionClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PlatformActionClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPlatformActions)(this, request);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PlatformActionClient = PlatformActionClient;
|
|
15
|
+
exports.default = PlatformActionClient;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class PlatformActionClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").PlatformActionListRequest): ResponsePromise<import("./v1.js").PlatformActionListResponse, import("./v1.js").PlatformActionListStreamType>;
|
|
3
|
+
}
|
|
4
|
+
export default PlatformActionClient;
|
|
5
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
6
|
+
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPlatformActions = listPlatformActions;
|
|
4
|
+
function listPlatformActions(client, request) {
|
|
5
|
+
let url = `/api/v1/platform/action/list`;
|
|
6
|
+
const response = client.clientFetch(url, { query: request });
|
|
7
|
+
return response;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function listPlatformActions(client: ChatBotKitClient, request?: PlatformActionListRequest): ResponsePromise<PlatformActionListResponse, PlatformActionListStreamType>;
|
|
2
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
3
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
4
|
+
export type PlatformActionListRequest = {
|
|
5
|
+
cursor?: string;
|
|
6
|
+
order?: "desc" | "asc";
|
|
7
|
+
take?: number;
|
|
8
|
+
meta?: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
export type PlatformActionListResponse = import("../../types/api/v1.js").operations["listPlatformActions"]["responses"]["200"]["content"]["application/json"];
|
|
11
|
+
export type PlatformActionListItem = PlatformActionListResponse["items"][number];
|
|
12
|
+
export type PlatformActionListStreamType = import("../../types/api/v1.js").operations["listPlatformActions"]["responses"]["200"]["content"]["application/jsonl"];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformContentDocClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PlatformContentDocClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPlatformContentDocs)(this, request);
|
|
12
|
+
}
|
|
13
|
+
fetch(docId) {
|
|
14
|
+
return (0, v1_js_1.fetchPlatformContentDoc)(this, docId);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.PlatformContentDocClient = PlatformContentDocClient;
|
|
18
|
+
exports.default = PlatformContentDocClient;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class PlatformContentDocClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").PlatformContentDocListRequest): ResponsePromise<import("./v1.js").PlatformContentDocListResponse, import("./v1.js").PlatformContentDocListStreamType>;
|
|
3
|
+
fetch(docId: string): ResponsePromise<import("./v1.js").PlatformContentDocFetchResponse, never>;
|
|
4
|
+
}
|
|
5
|
+
export default PlatformContentDocClient;
|
|
6
|
+
export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
|
|
7
|
+
import { ChatBotKitClient } from '../../../client.cjs';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPlatformContentDocs = listPlatformContentDocs;
|
|
4
|
+
exports.fetchPlatformContentDoc = fetchPlatformContentDoc;
|
|
5
|
+
function listPlatformContentDocs(client, request) {
|
|
6
|
+
let url = `/api/v1/platform/content/doc/list`;
|
|
7
|
+
const response = client.clientFetch(url, { query: request });
|
|
8
|
+
return response;
|
|
9
|
+
}
|
|
10
|
+
function fetchPlatformContentDoc(client, docId) {
|
|
11
|
+
const url = `/api/v1/platform/content/doc/${docId}/fetch`;
|
|
12
|
+
const response = client.clientFetch(url, {
|
|
13
|
+
endpoint: '/api/v1/platform/content/doc/{docId}/fetch',
|
|
14
|
+
});
|
|
15
|
+
return response;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function listPlatformContentDocs(client: ChatBotKitClient, request?: PlatformContentDocListRequest): ResponsePromise<PlatformContentDocListResponse, PlatformContentDocListStreamType>;
|
|
2
|
+
export function fetchPlatformContentDoc(client: ChatBotKitClient, docId: string): ResponsePromise<PlatformContentDocFetchResponse, never>;
|
|
3
|
+
export type ChatBotKitClient = import("../../../client.js").ChatBotKitClient;
|
|
4
|
+
export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
|
|
5
|
+
export type PlatformContentDocListRequest = {
|
|
6
|
+
cursor?: string;
|
|
7
|
+
order?: "desc" | "asc";
|
|
8
|
+
take?: number;
|
|
9
|
+
meta?: Record<string, string>;
|
|
10
|
+
};
|
|
11
|
+
export type PlatformContentDocListResponse = import("../../../types/api/v1.js").operations["listPlatformContentDocs"]["responses"]["200"]["content"]["application/json"];
|
|
12
|
+
export type PlatformContentDocListItem = PlatformContentDocListResponse["items"][number];
|
|
13
|
+
export type PlatformContentDocListStreamType = import("../../../types/api/v1.js").operations["listPlatformContentDocs"]["responses"]["200"]["content"]["application/jsonl"];
|
|
14
|
+
export type PlatformContentDocFetchResponse = import("../../../types/api/v1.js").operations["fetchPlatformContentDoc"]["responses"]["200"]["content"]["application/json"];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformContentClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../client.cjs");
|
|
5
|
+
const index_js_1 = require("./doc/index.cjs");
|
|
6
|
+
const index_js_2 = require("./manual/index.cjs");
|
|
7
|
+
class PlatformContentClient extends client_js_1.ChatBotKitClient {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
super(options);
|
|
10
|
+
this.doc = new index_js_1.PlatformContentDocClient(options);
|
|
11
|
+
this.manual = new index_js_2.PlatformContentManualClient(options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PlatformContentClient = PlatformContentClient;
|
|
15
|
+
exports.default = PlatformContentClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class PlatformContentClient extends ChatBotKitClient {
|
|
2
|
+
doc: PlatformContentDocClient;
|
|
3
|
+
manual: PlatformContentManualClient;
|
|
4
|
+
}
|
|
5
|
+
export default PlatformContentClient;
|
|
6
|
+
import { ChatBotKitClient } from '../../client.cjs';
|
|
7
|
+
import { PlatformContentDocClient } from './doc/index.cjs';
|
|
8
|
+
import { PlatformContentManualClient } from './manual/index.cjs';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformContentManualClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PlatformContentManualClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPlatformContentManuals)(this, request);
|
|
12
|
+
}
|
|
13
|
+
fetch(manualId) {
|
|
14
|
+
return (0, v1_js_1.fetchPlatformContentManual)(this, manualId);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.PlatformContentManualClient = PlatformContentManualClient;
|
|
18
|
+
exports.default = PlatformContentManualClient;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class PlatformContentManualClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").PlatformContentManualListRequest): ResponsePromise<import("./v1.js").PlatformContentManualListResponse, import("./v1.js").PlatformContentManualListStreamType>;
|
|
3
|
+
fetch(manualId: string): ResponsePromise<import("./v1.js").PlatformContentManualFetchResponse, never>;
|
|
4
|
+
}
|
|
5
|
+
export default PlatformContentManualClient;
|
|
6
|
+
export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
|
|
7
|
+
import { ChatBotKitClient } from '../../../client.cjs';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPlatformContentManuals = listPlatformContentManuals;
|
|
4
|
+
exports.fetchPlatformContentManual = fetchPlatformContentManual;
|
|
5
|
+
function listPlatformContentManuals(client, request) {
|
|
6
|
+
let url = `/api/v1/platform/content/manual/list`;
|
|
7
|
+
const response = client.clientFetch(url, { query: request });
|
|
8
|
+
return response;
|
|
9
|
+
}
|
|
10
|
+
function fetchPlatformContentManual(client, manualId) {
|
|
11
|
+
const url = `/api/v1/platform/content/manual/${manualId}/fetch`;
|
|
12
|
+
const response = client.clientFetch(url, {
|
|
13
|
+
endpoint: '/api/v1/platform/content/manual/{manualId}/fetch',
|
|
14
|
+
});
|
|
15
|
+
return response;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function listPlatformContentManuals(client: ChatBotKitClient, request?: PlatformContentManualListRequest): ResponsePromise<PlatformContentManualListResponse, PlatformContentManualListStreamType>;
|
|
2
|
+
export function fetchPlatformContentManual(client: ChatBotKitClient, manualId: string): ResponsePromise<PlatformContentManualFetchResponse, never>;
|
|
3
|
+
export type ChatBotKitClient = import("../../../client.js").ChatBotKitClient;
|
|
4
|
+
export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
|
|
5
|
+
export type PlatformContentManualListRequest = {
|
|
6
|
+
cursor?: string;
|
|
7
|
+
order?: "desc" | "asc";
|
|
8
|
+
take?: number;
|
|
9
|
+
meta?: Record<string, string>;
|
|
10
|
+
};
|
|
11
|
+
export type PlatformContentManualListResponse = import("../../../types/api/v1.js").operations["listPlatformContentManuals"]["responses"]["200"]["content"]["application/json"];
|
|
12
|
+
export type PlatformContentManualListItem = PlatformContentManualListResponse["items"][number];
|
|
13
|
+
export type PlatformContentManualListStreamType = import("../../../types/api/v1.js").operations["listPlatformContentManuals"]["responses"]["200"]["content"]["application/jsonl"];
|
|
14
|
+
export type PlatformContentManualFetchResponse = import("../../../types/api/v1.js").operations["fetchPlatformContentManual"]["responses"]["200"]["content"]["application/json"];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformExampleClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PlatformExampleClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPlatformExamples)(this, request);
|
|
12
|
+
}
|
|
13
|
+
search(request) {
|
|
14
|
+
return (0, v1_js_1.searchPlatformExamples)(this, request);
|
|
15
|
+
}
|
|
16
|
+
clone(exampleId) {
|
|
17
|
+
return (0, v1_js_1.clonePlatformExample)(this, exampleId);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.PlatformExampleClient = PlatformExampleClient;
|
|
21
|
+
exports.default = PlatformExampleClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class PlatformExampleClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").PlatformExampleListRequest): ResponsePromise<import("./v1.js").PlatformExampleListResponse, import("./v1.js").PlatformExampleListStreamType>;
|
|
3
|
+
search(request: import("./v1.js").PlatformExampleSearchRequest): Promise<import("./v1.js").PlatformExampleSearchResponse>;
|
|
4
|
+
clone(exampleId: string): Promise<import("./v1.js").PlatformExampleCloneResponse>;
|
|
5
|
+
}
|
|
6
|
+
export default PlatformExampleClient;
|
|
7
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
8
|
+
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPlatformExamples = listPlatformExamples;
|
|
4
|
+
exports.searchPlatformExamples = searchPlatformExamples;
|
|
5
|
+
exports.clonePlatformExample = clonePlatformExample;
|
|
6
|
+
function listPlatformExamples(client, request) {
|
|
7
|
+
let url = `/api/v1/platform/example/list`;
|
|
8
|
+
const response = client.clientFetch(url, { query: request });
|
|
9
|
+
return response;
|
|
10
|
+
}
|
|
11
|
+
async function searchPlatformExamples(client, request) {
|
|
12
|
+
const url = `/api/v1/platform/example/search`;
|
|
13
|
+
const response = await client.clientFetch(url, {
|
|
14
|
+
record: {
|
|
15
|
+
...request,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
return response;
|
|
19
|
+
}
|
|
20
|
+
async function clonePlatformExample(client, exampleId) {
|
|
21
|
+
const url = `/api/v1/platform/example/${exampleId}/clone`;
|
|
22
|
+
const response = await client.clientFetch(url, {
|
|
23
|
+
record: {},
|
|
24
|
+
});
|
|
25
|
+
return response;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function listPlatformExamples(client: ChatBotKitClient, request?: PlatformExampleListRequest): ResponsePromise<PlatformExampleListResponse, PlatformExampleListStreamType>;
|
|
2
|
+
export function searchPlatformExamples(client: ChatBotKitClient, request: PlatformExampleSearchRequest): Promise<PlatformExampleSearchResponse>;
|
|
3
|
+
export function clonePlatformExample(client: ChatBotKitClient, exampleId: string): Promise<PlatformExampleCloneResponse>;
|
|
4
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
5
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
6
|
+
export type PlatformExampleListRequest = {
|
|
7
|
+
cursor?: string;
|
|
8
|
+
order?: "desc" | "asc";
|
|
9
|
+
take?: number;
|
|
10
|
+
};
|
|
11
|
+
export type PlatformExampleListResponse = import("../../types/api/v1.js").operations["listPlatformExamples"]["responses"]["200"]["content"]["application/json"];
|
|
12
|
+
export type PlatformExampleListItem = PlatformExampleListResponse["items"][number];
|
|
13
|
+
export type PlatformExampleListStreamType = import("../../types/api/v1.js").operations["listPlatformExamples"]["responses"]["200"]["content"]["application/jsonl"];
|
|
14
|
+
export type PlatformExampleSearchRequestBody = import("../../types/api/v1.js").operations["searchPlatformExamples"]["requestBody"]["content"]["application/json"];
|
|
15
|
+
export type PlatformExampleSearchRequest = PlatformExampleSearchRequestBody;
|
|
16
|
+
export type PlatformExampleSearchResponseBody = import("../../types/api/v1.js").operations["searchPlatformExamples"]["responses"]["200"]["content"]["application/json"];
|
|
17
|
+
export type PlatformExampleSearchResponse = PlatformExampleSearchResponseBody;
|
|
18
|
+
export type PlatformExampleCloneRequestBody = import("../../types/api/v1.js").operations["clonePlatformExample"]["requestBody"]["content"]["application/json"];
|
|
19
|
+
export type PlatformExampleCloneRequest = PlatformExampleCloneRequestBody;
|
|
20
|
+
export type PlatformExampleCloneResponseBody = import("../../types/api/v1.js").operations["clonePlatformExample"]["responses"]["200"]["content"]["application/json"];
|
|
21
|
+
export type PlatformExampleCloneResponse = PlatformExampleCloneResponseBody;
|
|
@@ -3,14 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PlatformClient = void 0;
|
|
4
4
|
const client_js_1 = require("../client.cjs");
|
|
5
5
|
const index_js_1 = require("./ability/index.cjs");
|
|
6
|
-
const index_js_2 = require("./
|
|
7
|
-
const index_js_3 = require("./
|
|
6
|
+
const index_js_2 = require("./action/index.cjs");
|
|
7
|
+
const index_js_3 = require("./content/index.cjs");
|
|
8
|
+
const index_js_4 = require("./example/index.cjs");
|
|
9
|
+
const index_js_5 = require("./model/index.cjs");
|
|
10
|
+
const index_js_6 = require("./secret/index.cjs");
|
|
8
11
|
class PlatformClient extends client_js_1.ChatBotKitClient {
|
|
9
12
|
constructor(options) {
|
|
10
13
|
super(options);
|
|
11
|
-
this.
|
|
14
|
+
this.model = new index_js_5.PlatformModelClient(options);
|
|
12
15
|
this.ability = new index_js_1.PlatformAbilityClient(options);
|
|
13
|
-
this.
|
|
16
|
+
this.action = new index_js_2.PlatformActionClient(options);
|
|
17
|
+
this.content = new index_js_3.PlatformContentClient(options);
|
|
18
|
+
this.secrets = new index_js_6.PlatformSecretClient(options);
|
|
19
|
+
this.example = new index_js_4.PlatformExampleClient(options);
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
exports.PlatformClient = PlatformClient;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export class PlatformClient extends ChatBotKitClient {
|
|
2
|
-
|
|
2
|
+
model: PlatformModelClient;
|
|
3
3
|
ability: PlatformAbilityClient;
|
|
4
|
+
action: PlatformActionClient;
|
|
5
|
+
content: PlatformContentClient;
|
|
4
6
|
secrets: PlatformSecretClient;
|
|
7
|
+
example: PlatformExampleClient;
|
|
5
8
|
}
|
|
6
9
|
export default PlatformClient;
|
|
7
10
|
import { ChatBotKitClient } from '../client.cjs';
|
|
8
11
|
import { PlatformModelClient } from './model/index.cjs';
|
|
9
12
|
import { PlatformAbilityClient } from './ability/index.cjs';
|
|
13
|
+
import { PlatformActionClient } from './action/index.cjs';
|
|
14
|
+
import { PlatformContentClient } from './content/index.cjs';
|
|
10
15
|
import { PlatformSecretClient } from './secret/index.cjs';
|
|
16
|
+
import { PlatformExampleClient } from './example/index.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class PlatformModelClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import(
|
|
2
|
+
list(request?: import("./v1.js").PlatformModelListRequest): ResponsePromise<import("./v1.js").PlatformModelListResponse, import("./v1.js").PlatformModelListStreamType>;
|
|
3
3
|
}
|
|
4
4
|
export default PlatformModelClient;
|
|
5
|
-
export type ResponsePromise<T, U> = import(
|
|
5
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
6
6
|
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listPlatformModels =
|
|
3
|
+
exports.listPlatformModels = listPlatformModels;
|
|
4
4
|
function listPlatformModels(client, request) {
|
|
5
5
|
let url = `/api/v1/platform/model/list`;
|
|
6
6
|
const response = client.clientFetch(url, { query: request });
|
|
7
7
|
return response;
|
|
8
8
|
}
|
|
9
|
-
exports.listPlatformModels = listPlatformModels;
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
export function listPlatformModels(client: ChatBotKitClient, request?: PlatformModelListRequest): ResponsePromise<PlatformModelListResponse, PlatformModelListStreamType>;
|
|
2
|
-
export type ChatBotKitClient = import(
|
|
3
|
-
export type ResponsePromise<T, U> = import(
|
|
4
|
-
export type PlatformModelOptions = {
|
|
5
|
-
name?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
meta?: Record<string, any>;
|
|
8
|
-
};
|
|
9
|
-
export type PlatformModelInstance = PlatformModelOptions & {
|
|
10
|
-
id: string;
|
|
11
|
-
createdAt: number;
|
|
12
|
-
updatedAt: number;
|
|
13
|
-
};
|
|
2
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
3
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
14
4
|
export type PlatformModelListRequest = {
|
|
15
5
|
cursor?: string;
|
|
16
|
-
order?:
|
|
6
|
+
order?: "desc" | "asc";
|
|
17
7
|
take?: number;
|
|
18
8
|
meta?: Record<string, string>;
|
|
19
9
|
};
|
|
20
|
-
export type PlatformModelListResponse =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export type PlatformModelListStreamItemType = {
|
|
24
|
-
type: 'item';
|
|
25
|
-
data: PlatformModelInstance;
|
|
26
|
-
};
|
|
27
|
-
export type PlatformModelListStreamType = PlatformModelListStreamItemType;
|
|
10
|
+
export type PlatformModelListResponse = import("../../types/api/v1.js").operations["listPlatformModels"]["responses"]["200"]["content"]["application/json"];
|
|
11
|
+
export type PlatformModelListItem = PlatformModelListResponse["items"][number];
|
|
12
|
+
export type PlatformModelListStreamType = import("../../types/api/v1.js").operations["listPlatformModels"]["responses"]["200"]["content"]["application/jsonl"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class PlatformSecretClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import(
|
|
2
|
+
list(request?: import("./v1.js").PlatformSecretListRequest): ResponsePromise<import("./v1.js").PlatformSecretListResponse, import("./v1.js").PlatformSecretListStreamType>;
|
|
3
3
|
}
|
|
4
4
|
export default PlatformSecretClient;
|
|
5
|
-
export type ResponsePromise<T, U> = import(
|
|
5
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
6
6
|
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listPlatformSecrets =
|
|
3
|
+
exports.listPlatformSecrets = listPlatformSecrets;
|
|
4
4
|
function listPlatformSecrets(client, request) {
|
|
5
5
|
let url = `/api/v1/platform/secret/list`;
|
|
6
6
|
const response = client.clientFetch(url, { query: request });
|
|
7
7
|
return response;
|
|
8
8
|
}
|
|
9
|
-
exports.listPlatformSecrets = listPlatformSecrets;
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
export function listPlatformSecrets(client: ChatBotKitClient, request?: PlatformSecretListRequest): ResponsePromise<PlatformSecretListResponse, PlatformSecretListStreamType>;
|
|
2
|
-
export type ChatBotKitClient = import(
|
|
3
|
-
export type ResponsePromise<T, U> = import(
|
|
4
|
-
export type PlatformSecretOptions = {
|
|
5
|
-
name?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
meta?: Record<string, any>;
|
|
8
|
-
};
|
|
9
|
-
export type PlatformSecretInstance = PlatformSecretOptions & {
|
|
10
|
-
id: string;
|
|
11
|
-
createdAt: number;
|
|
12
|
-
updatedAt: number;
|
|
13
|
-
};
|
|
2
|
+
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
3
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
14
4
|
export type PlatformSecretListRequest = {
|
|
15
5
|
cursor?: string;
|
|
16
|
-
order?:
|
|
6
|
+
order?: "desc" | "asc";
|
|
17
7
|
take?: number;
|
|
18
|
-
meta?: Record<string, string>;
|
|
19
|
-
};
|
|
20
|
-
export type PlatformSecretListResponse = {
|
|
21
|
-
items: PlatformSecretInstance[];
|
|
22
|
-
};
|
|
23
|
-
export type PlatformSecretListStreamItemType = {
|
|
24
|
-
type: 'item';
|
|
25
|
-
data: PlatformSecretInstance;
|
|
26
8
|
};
|
|
27
|
-
export type
|
|
9
|
+
export type PlatformSecretListResponse = import("../../types/api/v1.js").operations["listPlatformSecrets"]["responses"]["200"]["content"]["application/json"];
|
|
10
|
+
export type PlatformSecretListItem = PlatformSecretListResponse["items"][number];
|
|
11
|
+
export type PlatformSecretListStreamType = import("../../types/api/v1.js").operations["listPlatformSecrets"]["responses"]["200"]["content"]["application/jsonl"];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolicyClient = void 0;
|
|
4
|
+
const client_js_1 = require("../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PolicyClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPolicies)(this, request);
|
|
12
|
+
}
|
|
13
|
+
fetch(policyId) {
|
|
14
|
+
return (0, v1_js_1.fetchPolicy)(this, policyId);
|
|
15
|
+
}
|
|
16
|
+
create(request) {
|
|
17
|
+
return (0, v1_js_1.createPolicy)(this, request);
|
|
18
|
+
}
|
|
19
|
+
update(policyId, request) {
|
|
20
|
+
return (0, v1_js_1.updatePolicy)(this, policyId, request);
|
|
21
|
+
}
|
|
22
|
+
delete(policyId) {
|
|
23
|
+
return (0, v1_js_1.deletePolicy)(this, policyId);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.PolicyClient = PolicyClient;
|
|
27
|
+
exports.default = PolicyClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class PolicyClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").PolicyListRequest): ResponsePromise<import("./v1.js").PolicyListResponse, import("./v1.js").PolicyListStreamType>;
|
|
3
|
+
fetch(policyId: string): ResponsePromise<import("./v1.js").PolicyFetchResponse, never>;
|
|
4
|
+
create(request: import("./v1.js").PolicyCreateRequest): Promise<import("./v1.js").PolicyCreateResponse>;
|
|
5
|
+
update(policyId: string, request: import("./v1.js").PolicyUpdateRequest): Promise<import("./v1.js").PolicyUpdateResponse>;
|
|
6
|
+
delete(policyId: string): Promise<import("./v1.js").PolicyDeleteResponse>;
|
|
7
|
+
}
|
|
8
|
+
export default PolicyClient;
|
|
9
|
+
export type ResponsePromise<T, U> = import("../client.js").ResponsePromise<T, U>;
|
|
10
|
+
import { ChatBotKitClient } from '../client.cjs';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPolicies = listPolicies;
|
|
4
|
+
exports.fetchPolicy = fetchPolicy;
|
|
5
|
+
exports.createPolicy = createPolicy;
|
|
6
|
+
exports.updatePolicy = updatePolicy;
|
|
7
|
+
exports.deletePolicy = deletePolicy;
|
|
8
|
+
function listPolicies(client, request) {
|
|
9
|
+
let url = `/api/v1/policy/list`;
|
|
10
|
+
const response = client.clientFetch(url, { query: request });
|
|
11
|
+
return response;
|
|
12
|
+
}
|
|
13
|
+
function fetchPolicy(client, policyId) {
|
|
14
|
+
const url = `/api/v1/policy/${policyId}/fetch`;
|
|
15
|
+
const response = client.clientFetch(url);
|
|
16
|
+
return response;
|
|
17
|
+
}
|
|
18
|
+
async function createPolicy(client, request) {
|
|
19
|
+
const url = `/api/v1/policy/create`;
|
|
20
|
+
const response = await client.clientFetch(url, {
|
|
21
|
+
record: {
|
|
22
|
+
...request,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
return response;
|
|
26
|
+
}
|
|
27
|
+
async function updatePolicy(client, policyId, request) {
|
|
28
|
+
const url = `/api/v1/policy/${policyId}/update`;
|
|
29
|
+
const response = await client.clientFetch(url, {
|
|
30
|
+
record: {
|
|
31
|
+
...request,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
return response;
|
|
35
|
+
}
|
|
36
|
+
async function deletePolicy(client, policyId) {
|
|
37
|
+
const url = `/api/v1/policy/${policyId}/delete`;
|
|
38
|
+
const response = await client.clientFetch(url, {
|
|
39
|
+
record: {},
|
|
40
|
+
});
|
|
41
|
+
return response;
|
|
42
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function listPolicies(client: ChatBotKitClient, request?: PolicyListRequest): ResponsePromise<PolicyListResponse, PolicyListStreamType>;
|
|
2
|
+
export function fetchPolicy(client: ChatBotKitClient, policyId: string): ResponsePromise<PolicyFetchResponse, never>;
|
|
3
|
+
export function createPolicy(client: ChatBotKitClient, request: PolicyCreateRequest): Promise<PolicyCreateResponse>;
|
|
4
|
+
export function updatePolicy(client: ChatBotKitClient, policyId: string, request: PolicyUpdateRequest): Promise<PolicyUpdateResponse>;
|
|
5
|
+
export function deletePolicy(client: ChatBotKitClient, policyId: string): Promise<PolicyDeleteResponse>;
|
|
6
|
+
export type ChatBotKitClient = import("../client.js").ChatBotKitClient;
|
|
7
|
+
export type ResponsePromise<T, U> = import("../client.js").ResponsePromise<T, U>;
|
|
8
|
+
export type PolicyListRequest = {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
order?: "desc" | "asc";
|
|
11
|
+
take?: number;
|
|
12
|
+
meta?: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
export type PolicyListResponse = import("../types/api/v1.js").operations["listPolicies"]["responses"]["200"]["content"]["application/json"];
|
|
15
|
+
export type PolicyListStreamType = import("../types/api/v1.js").operations["listPolicies"]["responses"]["200"]["content"]["application/jsonl"];
|
|
16
|
+
export type PolicyFetchResponse = import("../types/api/v1.js").operations["fetchPolicy"]["responses"]["200"]["content"]["application/json"];
|
|
17
|
+
export type PolicyCreateRequestBody = import("../types/api/v1.js").operations["createPolicy"]["requestBody"]["content"]["application/json"];
|
|
18
|
+
export type PolicyCreateRequest = PolicyCreateRequestBody;
|
|
19
|
+
export type PolicyCreateResponseBody = import("../types/api/v1.js").operations["createPolicy"]["responses"]["200"]["content"]["application/json"];
|
|
20
|
+
export type PolicyCreateResponse = PolicyCreateResponseBody;
|
|
21
|
+
export type PolicyUpdateRequestBody = import("../types/api/v1.js").operations["updatePolicy"]["requestBody"]["content"]["application/json"];
|
|
22
|
+
export type PolicyUpdateRequest = PolicyUpdateRequestBody;
|
|
23
|
+
export type PolicyUpdateResponseBody = import("../types/api/v1.js").operations["updatePolicy"]["responses"]["200"]["content"]["application/json"];
|
|
24
|
+
export type PolicyUpdateResponse = PolicyUpdateResponseBody;
|
|
25
|
+
export type PolicyDeleteRequestBody = import("../types/api/v1.js").operations["deletePolicy"]["requestBody"]["content"]["application/json"];
|
|
26
|
+
export type PolicyDeleteRequest = PolicyDeleteRequestBody;
|
|
27
|
+
export type PolicyDeleteResponseBody = import("../types/api/v1.js").operations["deletePolicy"]["responses"]["200"]["content"]["application/json"];
|
|
28
|
+
export type PolicyDeleteResponse = PolicyDeleteResponseBody;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PortalClient = void 0;
|
|
4
|
+
const client_js_1 = require("../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PortalClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPortals)(this, request);
|
|
12
|
+
}
|
|
13
|
+
fetch(portalId) {
|
|
14
|
+
return (0, v1_js_1.fetchPortal)(this, portalId);
|
|
15
|
+
}
|
|
16
|
+
create(request) {
|
|
17
|
+
return (0, v1_js_1.createPortal)(this, request);
|
|
18
|
+
}
|
|
19
|
+
update(portalId, request) {
|
|
20
|
+
return (0, v1_js_1.updatePortal)(this, portalId, request);
|
|
21
|
+
}
|
|
22
|
+
delete(portalId) {
|
|
23
|
+
return (0, v1_js_1.deletePortal)(this, portalId);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.PortalClient = PortalClient;
|
|
27
|
+
exports.default = PortalClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class PortalClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").PortalListRequest): ResponsePromise<import("./v1.js").PortalListResponse, import("./v1.js").PortalListStreamType>;
|
|
3
|
+
fetch(portalId: string): ResponsePromise<import("./v1.js").PortalFetchResponse, never>;
|
|
4
|
+
create(request: import("./v1.js").PortalCreateRequest): Promise<import("./v1.js").PortalCreateResponse>;
|
|
5
|
+
update(portalId: string, request: import("./v1.js").PortalUpdateRequest): Promise<import("./v1.js").PortalUpdateResponse>;
|
|
6
|
+
delete(portalId: string): Promise<import("./v1.js").PortalDeleteResponse>;
|
|
7
|
+
}
|
|
8
|
+
export default PortalClient;
|
|
9
|
+
export type ResponsePromise<T, U> = import("../client.js").ResponsePromise<T, U>;
|
|
10
|
+
import { ChatBotKitClient } from '../client.cjs';
|