@tembo-io/sdk 0.10.0 → 0.11.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/README.md +28 -1
- package/SKILL.md +12 -0
- package/api.md +369 -123
- package/dist/cjs/client.d.ts +8 -4
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +5 -1
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/core/EventEmitter.d.ts +29 -0
- package/dist/cjs/core/EventEmitter.d.ts.map +1 -0
- package/dist/cjs/core/EventEmitter.js +61 -0
- package/dist/cjs/core/EventEmitter.js.map +1 -0
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/internal/live-socket-browser.d.ts +3 -0
- package/dist/cjs/internal/live-socket-browser.d.ts.map +1 -0
- package/dist/cjs/internal/live-socket-browser.js +8 -0
- package/dist/cjs/internal/live-socket-browser.js.map +1 -0
- package/dist/cjs/internal/live-socket.d.ts +3 -0
- package/dist/cjs/internal/live-socket.d.ts.map +1 -0
- package/dist/cjs/internal/live-socket.js +9 -0
- package/dist/cjs/internal/live-socket.js.map +1 -0
- package/dist/cjs/internal/ws-adapter-browser.d.ts +34 -0
- package/dist/cjs/internal/ws-adapter-browser.d.ts.map +1 -0
- package/dist/cjs/internal/ws-adapter-browser.js +89 -0
- package/dist/cjs/internal/ws-adapter-browser.js.map +1 -0
- package/dist/cjs/internal/ws-adapter-node.d.ts +27 -0
- package/dist/cjs/internal/ws-adapter-node.d.ts.map +1 -0
- package/dist/cjs/internal/ws-adapter-node.js +91 -0
- package/dist/cjs/internal/ws-adapter-node.js.map +1 -0
- package/dist/cjs/internal/ws-adapter.d.ts +24 -0
- package/dist/cjs/internal/ws-adapter.d.ts.map +1 -0
- package/dist/cjs/internal/ws-adapter.js +11 -0
- package/dist/cjs/internal/ws-adapter.js.map +1 -0
- package/dist/cjs/internal/ws.d.ts +80 -0
- package/dist/cjs/internal/ws.d.ts.map +1 -0
- package/dist/cjs/internal/ws.js +154 -0
- package/dist/cjs/internal/ws.js.map +1 -0
- package/dist/cjs/live.d.ts +97 -0
- package/dist/cjs/live.d.ts.map +1 -0
- package/dist/cjs/live.js +237 -0
- package/dist/cjs/live.js.map +1 -0
- package/dist/cjs/package.json +6 -1
- package/dist/cjs/resources/agents/templates.d.ts +58 -40
- package/dist/cjs/resources/agents/templates.d.ts.map +1 -1
- package/dist/cjs/resources/index.d.ts +5 -3
- package/dist/cjs/resources/index.d.ts.map +1 -1
- package/dist/cjs/resources/index.js +4 -2
- package/dist/cjs/resources/index.js.map +1 -1
- package/dist/cjs/resources/integrations/index.d.ts +7 -0
- package/dist/cjs/resources/integrations/index.d.ts.map +1 -0
- package/dist/cjs/resources/integrations/index.js +11 -0
- package/dist/cjs/resources/integrations/index.js.map +1 -0
- package/dist/cjs/resources/integrations/integrations.d.ts +777 -0
- package/dist/cjs/resources/integrations/integrations.d.ts.map +1 -0
- package/dist/cjs/resources/integrations/integrations.js +275 -0
- package/dist/cjs/resources/integrations/integrations.js.map +1 -0
- package/dist/cjs/resources/integrations/providers.d.ts +229 -0
- package/dist/cjs/resources/integrations/providers.d.ts.map +1 -0
- package/dist/cjs/resources/integrations/providers.js +45 -0
- package/dist/cjs/resources/integrations/providers.js.map +1 -0
- package/dist/cjs/resources/integrations/triggers.d.ts +280 -0
- package/dist/cjs/resources/integrations/triggers.d.ts.map +1 -0
- package/dist/cjs/resources/integrations/triggers.js +67 -0
- package/dist/cjs/resources/integrations/triggers.js.map +1 -0
- package/dist/cjs/resources/integrations.d.ts +1 -158
- package/dist/cjs/resources/integrations.d.ts.map +1 -1
- package/dist/cjs/resources/integrations.js +15 -39
- package/dist/cjs/resources/integrations.js.map +1 -1
- package/dist/cjs/resources/live/index.d.ts +6 -0
- package/dist/cjs/resources/live/index.d.ts.map +1 -0
- package/dist/cjs/resources/live/index.js +9 -0
- package/dist/cjs/resources/live/index.js.map +1 -0
- package/dist/cjs/resources/live/internal-base.d.ts +70 -0
- package/dist/cjs/resources/live/internal-base.d.ts.map +1 -0
- package/dist/cjs/resources/live/internal-base.js +57 -0
- package/dist/cjs/resources/live/internal-base.js.map +1 -0
- package/dist/cjs/resources/live/live.d.ts +54 -0
- package/dist/cjs/resources/live/live.d.ts.map +1 -0
- package/dist/cjs/resources/live/live.js +50 -0
- package/dist/cjs/resources/live/live.js.map +1 -0
- package/dist/cjs/resources/live/ws-base.d.ts +57 -0
- package/dist/cjs/resources/live/ws-base.d.ts.map +1 -0
- package/dist/cjs/resources/live/ws-base.js +359 -0
- package/dist/cjs/resources/live/ws-base.js.map +1 -0
- package/dist/cjs/resources/live/ws-browser.d.ts +14 -0
- package/dist/cjs/resources/live/ws-browser.d.ts.map +1 -0
- package/dist/cjs/resources/live/ws-browser.js +25 -0
- package/dist/cjs/resources/live/ws-browser.js.map +1 -0
- package/dist/cjs/resources/live/ws.d.ts +13 -0
- package/dist/cjs/resources/live/ws.d.ts.map +1 -0
- package/dist/cjs/resources/live/ws.js +31 -0
- package/dist/cjs/resources/live/ws.js.map +1 -0
- package/dist/cjs/resources/live.d.ts +2 -0
- package/dist/cjs/resources/live.d.ts.map +1 -0
- package/dist/cjs/resources/live.js +19 -0
- package/dist/cjs/resources/live.js.map +1 -0
- package/dist/cjs/resources/organizations/index.d.ts +3 -2
- package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/index.js +1 -1
- package/dist/cjs/resources/organizations/index.js.map +1 -1
- package/dist/cjs/resources/organizations/organizations.d.ts +5 -5
- package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/organizations.js +2 -2
- package/dist/cjs/resources/organizations/organizations.js.map +1 -1
- package/dist/cjs/resources/organizations/settings.d.ts +93 -1
- package/dist/cjs/resources/organizations/settings.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/settings.js +19 -0
- package/dist/cjs/resources/organizations/settings.js.map +1 -1
- package/dist/cjs/resources/organizations/subscriptions.d.ts +295 -1
- package/dist/cjs/resources/organizations/subscriptions.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/subscriptions.js +43 -15
- package/dist/cjs/resources/organizations/subscriptions.js.map +1 -1
- package/dist/cjs/resources/projects/projects.d.ts +17 -0
- package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
- package/dist/cjs/resources/projects/projects.js.map +1 -1
- package/dist/cjs/resources/repositories.d.ts +83 -3
- package/dist/cjs/resources/repositories.d.ts.map +1 -1
- package/dist/cjs/resources/repositories.js +21 -2
- package/dist/cjs/resources/repositories.js.map +1 -1
- package/dist/cjs/resources/sessions/sessions.d.ts +6 -0
- package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
- package/dist/cjs/resources/sessions/sessions.js +2 -0
- package/dist/cjs/resources/sessions/sessions.js.map +1 -1
- package/dist/cjs/resources/users/index.d.ts +4 -1
- package/dist/cjs/resources/users/index.d.ts.map +1 -1
- package/dist/cjs/resources/users/index.js +4 -2
- package/dist/cjs/resources/users/index.js.map +1 -1
- package/dist/cjs/resources/users/profile-picture.d.ts +77 -0
- package/dist/cjs/resources/users/profile-picture.d.ts.map +1 -0
- package/dist/cjs/resources/users/profile-picture.js +63 -0
- package/dist/cjs/resources/users/profile-picture.js.map +1 -0
- package/dist/cjs/resources/users/subscriptions.d.ts +295 -1
- package/dist/cjs/resources/users/subscriptions.d.ts.map +1 -1
- package/dist/cjs/resources/users/subscriptions.js +40 -15
- package/dist/cjs/resources/users/subscriptions.js.map +1 -1
- package/dist/cjs/resources/users/users.d.ts +7 -3
- package/dist/cjs/resources/users/users.d.ts.map +1 -1
- package/dist/cjs/resources/users/users.js +6 -2
- package/dist/cjs/resources/users/users.js.map +1 -1
- package/dist/cjs/resources.d.ts +2 -2
- package/dist/cjs/resources.d.ts.map +1 -1
- package/dist/cjs/resources.js +2 -1
- package/dist/cjs/resources.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/client.d.ts +8 -4
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +5 -1
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/core/EventEmitter.d.ts +29 -0
- package/dist/esm/core/EventEmitter.d.ts.map +1 -0
- package/dist/esm/core/EventEmitter.js +56 -0
- package/dist/esm/core/EventEmitter.js.map +1 -0
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal/live-socket-browser.d.ts +3 -0
- package/dist/esm/internal/live-socket-browser.d.ts.map +1 -0
- package/dist/esm/internal/live-socket-browser.js +5 -0
- package/dist/esm/internal/live-socket-browser.js.map +1 -0
- package/dist/esm/internal/live-socket.d.ts +3 -0
- package/dist/esm/internal/live-socket.d.ts.map +1 -0
- package/dist/esm/internal/live-socket.js +6 -0
- package/dist/esm/internal/live-socket.js.map +1 -0
- package/dist/esm/internal/ws-adapter-browser.d.ts +34 -0
- package/dist/esm/internal/ws-adapter-browser.d.ts.map +1 -0
- package/dist/esm/internal/ws-adapter-browser.js +85 -0
- package/dist/esm/internal/ws-adapter-browser.js.map +1 -0
- package/dist/esm/internal/ws-adapter-node.d.ts +27 -0
- package/dist/esm/internal/ws-adapter-node.d.ts.map +1 -0
- package/dist/esm/internal/ws-adapter-node.js +87 -0
- package/dist/esm/internal/ws-adapter-node.js.map +1 -0
- package/dist/esm/internal/ws-adapter.d.ts +24 -0
- package/dist/esm/internal/ws-adapter.d.ts.map +1 -0
- package/dist/esm/internal/ws-adapter.js +8 -0
- package/dist/esm/internal/ws-adapter.js.map +1 -0
- package/dist/esm/internal/ws.d.ts +80 -0
- package/dist/esm/internal/ws.d.ts.map +1 -0
- package/dist/esm/internal/ws.js +148 -0
- package/dist/esm/internal/ws.js.map +1 -0
- package/dist/esm/live.d.ts +97 -0
- package/dist/esm/live.d.ts.map +1 -0
- package/dist/esm/live.js +230 -0
- package/dist/esm/live.js.map +1 -0
- package/dist/esm/resources/agents/templates.d.ts +58 -40
- package/dist/esm/resources/agents/templates.d.ts.map +1 -1
- package/dist/esm/resources/index.d.ts +5 -3
- package/dist/esm/resources/index.d.ts.map +1 -1
- package/dist/esm/resources/index.js +2 -1
- package/dist/esm/resources/index.js.map +1 -1
- package/dist/esm/resources/integrations/index.d.ts +7 -0
- package/dist/esm/resources/integrations/index.d.ts.map +1 -0
- package/dist/esm/resources/integrations/index.js +5 -0
- package/dist/esm/resources/integrations/index.js.map +1 -0
- package/dist/esm/resources/integrations/integrations.d.ts +777 -0
- package/dist/esm/resources/integrations/integrations.d.ts.map +1 -0
- package/dist/esm/resources/integrations/integrations.js +238 -0
- package/dist/esm/resources/integrations/integrations.js.map +1 -0
- package/dist/esm/resources/integrations/providers.d.ts +229 -0
- package/dist/esm/resources/integrations/providers.d.ts.map +1 -0
- package/dist/esm/resources/integrations/providers.js +41 -0
- package/dist/esm/resources/integrations/providers.js.map +1 -0
- package/dist/esm/resources/integrations/triggers.d.ts +280 -0
- package/dist/esm/resources/integrations/triggers.d.ts.map +1 -0
- package/dist/esm/resources/integrations/triggers.js +63 -0
- package/dist/esm/resources/integrations/triggers.js.map +1 -0
- package/dist/esm/resources/integrations.d.ts +1 -158
- package/dist/esm/resources/integrations.d.ts.map +1 -1
- package/dist/esm/resources/integrations.js +1 -37
- package/dist/esm/resources/integrations.js.map +1 -1
- package/dist/esm/resources/live/index.d.ts +6 -0
- package/dist/esm/resources/live/index.d.ts.map +1 -0
- package/dist/esm/resources/live/index.js +4 -0
- package/dist/esm/resources/live/index.js.map +1 -0
- package/dist/esm/resources/live/internal-base.d.ts +70 -0
- package/dist/esm/resources/live/internal-base.d.ts.map +1 -0
- package/dist/esm/resources/live/internal-base.js +50 -0
- package/dist/esm/resources/live/internal-base.js.map +1 -0
- package/dist/esm/resources/live/live.d.ts +54 -0
- package/dist/esm/resources/live/live.d.ts.map +1 -0
- package/dist/esm/resources/live/live.js +46 -0
- package/dist/esm/resources/live/live.js.map +1 -0
- package/dist/esm/resources/live/ws-base.d.ts +57 -0
- package/dist/esm/resources/live/ws-base.d.ts.map +1 -0
- package/dist/esm/resources/live/ws-base.js +355 -0
- package/dist/esm/resources/live/ws-base.js.map +1 -0
- package/dist/esm/resources/live/ws-browser.d.ts +14 -0
- package/dist/esm/resources/live/ws-browser.d.ts.map +1 -0
- package/dist/esm/resources/live/ws-browser.js +21 -0
- package/dist/esm/resources/live/ws-browser.js.map +1 -0
- package/dist/esm/resources/live/ws.d.ts +13 -0
- package/dist/esm/resources/live/ws.d.ts.map +1 -0
- package/dist/esm/resources/live/ws.js +27 -0
- package/dist/esm/resources/live/ws.js.map +1 -0
- package/dist/esm/resources/live.d.ts +2 -0
- package/dist/esm/resources/live.d.ts.map +1 -0
- package/dist/esm/resources/live.js +3 -0
- package/dist/esm/resources/live.js.map +1 -0
- package/dist/esm/resources/organizations/index.d.ts +3 -2
- package/dist/esm/resources/organizations/index.d.ts.map +1 -1
- package/dist/esm/resources/organizations/index.js +1 -1
- package/dist/esm/resources/organizations/index.js.map +1 -1
- package/dist/esm/resources/organizations/organizations.d.ts +5 -5
- package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
- package/dist/esm/resources/organizations/organizations.js +2 -2
- package/dist/esm/resources/organizations/organizations.js.map +1 -1
- package/dist/esm/resources/organizations/settings.d.ts +93 -1
- package/dist/esm/resources/organizations/settings.d.ts.map +1 -1
- package/dist/esm/resources/organizations/settings.js +19 -0
- package/dist/esm/resources/organizations/settings.js.map +1 -1
- package/dist/esm/resources/organizations/subscriptions.d.ts +295 -1
- package/dist/esm/resources/organizations/subscriptions.d.ts.map +1 -1
- package/dist/esm/resources/organizations/subscriptions.js +41 -1
- package/dist/esm/resources/organizations/subscriptions.js.map +1 -1
- package/dist/esm/resources/projects/projects.d.ts +17 -0
- package/dist/esm/resources/projects/projects.d.ts.map +1 -1
- package/dist/esm/resources/projects/projects.js.map +1 -1
- package/dist/esm/resources/repositories.d.ts +83 -3
- package/dist/esm/resources/repositories.d.ts.map +1 -1
- package/dist/esm/resources/repositories.js +21 -2
- package/dist/esm/resources/repositories.js.map +1 -1
- package/dist/esm/resources/sessions/sessions.d.ts +6 -0
- package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
- package/dist/esm/resources/sessions/sessions.js +2 -0
- package/dist/esm/resources/sessions/sessions.js.map +1 -1
- package/dist/esm/resources/users/index.d.ts +4 -1
- package/dist/esm/resources/users/index.d.ts.map +1 -1
- package/dist/esm/resources/users/index.js +2 -1
- package/dist/esm/resources/users/index.js.map +1 -1
- package/dist/esm/resources/users/profile-picture.d.ts +77 -0
- package/dist/esm/resources/users/profile-picture.d.ts.map +1 -0
- package/dist/esm/resources/users/profile-picture.js +59 -0
- package/dist/esm/resources/users/profile-picture.js.map +1 -0
- package/dist/esm/resources/users/subscriptions.d.ts +295 -1
- package/dist/esm/resources/users/subscriptions.d.ts.map +1 -1
- package/dist/esm/resources/users/subscriptions.js +38 -1
- package/dist/esm/resources/users/subscriptions.js.map +1 -1
- package/dist/esm/resources/users/users.d.ts +7 -3
- package/dist/esm/resources/users/users.d.ts.map +1 -1
- package/dist/esm/resources/users/users.js +6 -2
- package/dist/esm/resources/users/users.js.map +1 -1
- package/dist/esm/resources.d.ts +2 -2
- package/dist/esm/resources.d.ts.map +1 -1
- package/dist/esm/resources.js +1 -1
- package/dist/esm/resources.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +22 -3
- package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
- package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/chatgpt.js +0 -58
- package/dist/cjs/resources/organizations/subscriptions/chatgpt.js.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/claude.d.ts +0 -128
- package/dist/cjs/resources/organizations/subscriptions/claude.d.ts.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/claude.js +0 -40
- package/dist/cjs/resources/organizations/subscriptions/claude.js.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/index.d.ts +0 -8
- package/dist/cjs/resources/organizations/subscriptions/index.d.ts.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/index.js +0 -13
- package/dist/cjs/resources/organizations/subscriptions/index.js.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
- package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/subscriptions.js +0 -54
- package/dist/cjs/resources/organizations/subscriptions/subscriptions.js.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts +0 -25
- package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
- package/dist/cjs/resources/organizations/subscriptions/supergrok.js +0 -25
- package/dist/cjs/resources/organizations/subscriptions/supergrok.js.map +0 -1
- package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts +0 -186
- package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
- package/dist/cjs/resources/users/subscriptions/chatgpt.js +0 -61
- package/dist/cjs/resources/users/subscriptions/chatgpt.js.map +0 -1
- package/dist/cjs/resources/users/subscriptions/claude.d.ts +0 -128
- package/dist/cjs/resources/users/subscriptions/claude.d.ts.map +0 -1
- package/dist/cjs/resources/users/subscriptions/claude.js +0 -40
- package/dist/cjs/resources/users/subscriptions/claude.js.map +0 -1
- package/dist/cjs/resources/users/subscriptions/index.d.ts +0 -8
- package/dist/cjs/resources/users/subscriptions/index.d.ts.map +0 -1
- package/dist/cjs/resources/users/subscriptions/index.js +0 -13
- package/dist/cjs/resources/users/subscriptions/index.js.map +0 -1
- package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts +0 -18
- package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
- package/dist/cjs/resources/users/subscriptions/subscriptions.js +0 -54
- package/dist/cjs/resources/users/subscriptions/subscriptions.js.map +0 -1
- package/dist/cjs/resources/users/subscriptions/supergrok.d.ts +0 -25
- package/dist/cjs/resources/users/subscriptions/supergrok.d.ts.map +0 -1
- package/dist/cjs/resources/users/subscriptions/supergrok.js +0 -25
- package/dist/cjs/resources/users/subscriptions/supergrok.js.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
- package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/chatgpt.js +0 -54
- package/dist/esm/resources/organizations/subscriptions/chatgpt.js.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/claude.d.ts +0 -128
- package/dist/esm/resources/organizations/subscriptions/claude.d.ts.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/claude.js +0 -36
- package/dist/esm/resources/organizations/subscriptions/claude.js.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/index.d.ts +0 -8
- package/dist/esm/resources/organizations/subscriptions/index.d.ts.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/index.js +0 -6
- package/dist/esm/resources/organizations/subscriptions/index.js.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
- package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/subscriptions.js +0 -17
- package/dist/esm/resources/organizations/subscriptions/subscriptions.js.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts +0 -25
- package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
- package/dist/esm/resources/organizations/subscriptions/supergrok.js +0 -21
- package/dist/esm/resources/organizations/subscriptions/supergrok.js.map +0 -1
- package/dist/esm/resources/users/subscriptions/chatgpt.d.ts +0 -186
- package/dist/esm/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
- package/dist/esm/resources/users/subscriptions/chatgpt.js +0 -57
- package/dist/esm/resources/users/subscriptions/chatgpt.js.map +0 -1
- package/dist/esm/resources/users/subscriptions/claude.d.ts +0 -128
- package/dist/esm/resources/users/subscriptions/claude.d.ts.map +0 -1
- package/dist/esm/resources/users/subscriptions/claude.js +0 -36
- package/dist/esm/resources/users/subscriptions/claude.js.map +0 -1
- package/dist/esm/resources/users/subscriptions/index.d.ts +0 -8
- package/dist/esm/resources/users/subscriptions/index.d.ts.map +0 -1
- package/dist/esm/resources/users/subscriptions/index.js +0 -6
- package/dist/esm/resources/users/subscriptions/index.js.map +0 -1
- package/dist/esm/resources/users/subscriptions/subscriptions.d.ts +0 -18
- package/dist/esm/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
- package/dist/esm/resources/users/subscriptions/subscriptions.js +0 -17
- package/dist/esm/resources/users/subscriptions/subscriptions.js.map +0 -1
- package/dist/esm/resources/users/subscriptions/supergrok.d.ts +0 -25
- package/dist/esm/resources/users/subscriptions/supergrok.d.ts.map +0 -1
- package/dist/esm/resources/users/subscriptions/supergrok.js +0 -21
- package/dist/esm/resources/users/subscriptions/supergrok.js.map +0 -1
package/api.md
CHANGED
|
@@ -44,16 +44,10 @@ Complete reference of every operation, grouped by resource. See [the README](./R
|
|
|
44
44
|
- [`Organizations Settings`](#organizations-settings)
|
|
45
45
|
- [Retrieve organization settings](#retrieve-organization-settings)
|
|
46
46
|
- [Update organization settings](#update-organization-settings)
|
|
47
|
+
- [Validate organization provider credentials](#validate-organization-provider-credentials)
|
|
47
48
|
- [`Organizations Subscriptions`](#organizations-subscriptions)
|
|
48
|
-
- [
|
|
49
|
-
|
|
50
|
-
- [Retrieve organization ChatGPT subscription usage](#retrieve-organization-chatgpt-subscription-usage)
|
|
51
|
-
- [Reset organization ChatGPT subscription usage](#reset-organization-chatgpt-subscription-usage)
|
|
52
|
-
- [`Organizations Subscriptions Claude`](#organizations-subscriptions-claude)
|
|
53
|
-
- [Retrieve an organization Claude subscription](#retrieve-an-organization-claude-subscription)
|
|
54
|
-
- [Retrieve organization Claude subscription usage](#retrieve-organization-claude-subscription-usage)
|
|
55
|
-
- [`Organizations Subscriptions Supergrok`](#organizations-subscriptions-supergrok)
|
|
56
|
-
- [Retrieve an organization SuperGrok subscription](#retrieve-an-organization-supergrok-subscription)
|
|
49
|
+
- [Retrieve organization subscriptions](#retrieve-organization-subscriptions)
|
|
50
|
+
- [Reset organization subscription usage](#reset-organization-subscription-usage)
|
|
57
51
|
- [`McpConnections`](#mcpconnections)
|
|
58
52
|
- [List MCP connections](#list-mcp-connections)
|
|
59
53
|
- [Create an MCP connection](#create-an-mcp-connection)
|
|
@@ -89,15 +83,12 @@ Complete reference of every operation, grouped by resource. See [the README](./R
|
|
|
89
83
|
- [List user connected accounts](#list-user-connected-accounts)
|
|
90
84
|
- [Retrieve a user connected account](#retrieve-a-user-connected-account)
|
|
91
85
|
- [`Users Subscriptions`](#users-subscriptions)
|
|
92
|
-
- [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
- [
|
|
97
|
-
|
|
98
|
-
- [Retrieve user Claude subscription usage](#retrieve-user-claude-subscription-usage)
|
|
99
|
-
- [`Users Subscriptions Supergrok`](#users-subscriptions-supergrok)
|
|
100
|
-
- [Retrieve a user SuperGrok subscription](#retrieve-a-user-supergrok-subscription)
|
|
86
|
+
- [Retrieve user subscriptions](#retrieve-user-subscriptions)
|
|
87
|
+
- [Reset user subscription usage](#reset-user-subscription-usage)
|
|
88
|
+
- [`Users ProfilePicture`](#users-profilepicture)
|
|
89
|
+
- [Retrieve a user profile picture](#retrieve-a-user-profile-picture)
|
|
90
|
+
- [Update your profile picture](#update-your-profile-picture)
|
|
91
|
+
- [Delete your profile picture](#delete-your-profile-picture)
|
|
101
92
|
- [`Sessions`](#sessions)
|
|
102
93
|
- [List sessions](#list-sessions)
|
|
103
94
|
- [Create a session](#create-a-session)
|
|
@@ -175,12 +166,34 @@ Complete reference of every operation, grouped by resource. See [the README](./R
|
|
|
175
166
|
- [`Repositories`](#repositories)
|
|
176
167
|
- [List repositories](#list-repositories)
|
|
177
168
|
- [Retrieve a repository](#retrieve-a-repository)
|
|
169
|
+
- [Update a repository](#update-a-repository)
|
|
178
170
|
- [`Integrations`](#integrations)
|
|
179
171
|
- [List integrations](#list-integrations)
|
|
172
|
+
- [Create an integration](#create-an-integration)
|
|
180
173
|
- [Retrieve an integration](#retrieve-an-integration)
|
|
174
|
+
- [Update an integration](#update-an-integration)
|
|
175
|
+
- [Delete an integration](#delete-an-integration)
|
|
176
|
+
- [Authorize an integration](#authorize-an-integration)
|
|
177
|
+
- [Test an integration](#test-an-integration)
|
|
178
|
+
- [Sync an integration](#sync-an-integration)
|
|
179
|
+
- [Sync eligible integrations](#sync-eligible-integrations)
|
|
180
|
+
- [Retrieve eligible integration sync status](#retrieve-eligible-integration-sync-status)
|
|
181
|
+
- [Retrieve an integration rate limit](#retrieve-an-integration-rate-limit)
|
|
182
|
+
- [List Sentry environments](#list-sentry-environments)
|
|
183
|
+
- [List Slack channels](#list-slack-channels)
|
|
184
|
+
- [`Integrations Providers`](#integrations-providers)
|
|
185
|
+
- [List integration providers](#list-integration-providers)
|
|
186
|
+
- [Discover Snyk organizations](#discover-snyk-organizations)
|
|
187
|
+
- [`Integrations Triggers`](#integrations-triggers)
|
|
188
|
+
- [List integration triggers](#list-integration-triggers)
|
|
189
|
+
- [Retrieve an integration trigger](#retrieve-an-integration-trigger)
|
|
190
|
+
- [List integration trigger filter options](#list-integration-trigger-filter-options)
|
|
181
191
|
- [`Billing`](#billing)
|
|
182
192
|
- [Retrieve billing](#retrieve-billing)
|
|
183
193
|
- [List billing usage](#list-billing-usage)
|
|
194
|
+
- [`Live`](#live)
|
|
195
|
+
- [Authorize a live connection](#authorize-a-live-connection)
|
|
196
|
+
- [Live resource subscriptions](#live-resource-subscriptions)
|
|
184
197
|
|
|
185
198
|
## Setup
|
|
186
199
|
|
|
@@ -668,87 +681,50 @@ Update one or more organization settings.
|
|
|
668
681
|
const setting = await client.organizations.settings.update('organizationId', {});
|
|
669
682
|
```
|
|
670
683
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
#### `Organizations Subscriptions Chatgpt`
|
|
674
|
-
|
|
675
|
-
##### Retrieve an organization ChatGPT subscription
|
|
676
|
-
|
|
677
|
-
Retrieve the connection status for an organization ChatGPT subscription.
|
|
678
|
-
|
|
679
|
-
| Direction | Type |
|
|
680
|
-
| --- | --- |
|
|
681
|
-
| Response | [`ChatgptRetrieveResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
|
|
682
|
-
|
|
683
|
-
```ts
|
|
684
|
-
const chatgpt = await client.organizations.subscriptions.chatgpt.retrieve('organizationId');
|
|
685
|
-
```
|
|
686
|
-
|
|
687
|
-
##### Retrieve organization ChatGPT subscription usage
|
|
688
|
-
|
|
689
|
-
Retrieve plan and rate-limit usage for an organization ChatGPT subscription.
|
|
690
|
-
|
|
691
|
-
| Direction | Type |
|
|
692
|
-
| --- | --- |
|
|
693
|
-
| Response | [`ChatgptRetrieveUsageResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
|
|
694
|
-
|
|
695
|
-
```ts
|
|
696
|
-
const chatgpt = await client.organizations.subscriptions.chatgpt.retrieveUsage('organizationId');
|
|
697
|
-
```
|
|
684
|
+
#### Validate organization provider credentials
|
|
698
685
|
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
Redeem one earned rate-limit reset for an organization ChatGPT subscription.
|
|
686
|
+
Validate supplied inference provider credentials for an organization without saving them. The provider must be available on the organization’s plan.
|
|
702
687
|
|
|
703
688
|
| Direction | Type |
|
|
704
689
|
| --- | --- |
|
|
705
|
-
| Request | [`
|
|
706
|
-
| Response | [`
|
|
690
|
+
| Request | [`SettingValidateCredentialsParams`](./src/resources/organizations/settings.ts) |
|
|
691
|
+
| Response | [`SettingValidateCredentialsResponse`](./src/resources/organizations/settings.ts) |
|
|
707
692
|
|
|
708
693
|
```ts
|
|
709
|
-
const
|
|
710
|
-
|
|
694
|
+
const setting = await client.organizations.settings.validateCredentials('organizationId', {
|
|
695
|
+
provider: 'anthropic',
|
|
696
|
+
apiKey: '',
|
|
711
697
|
});
|
|
712
698
|
```
|
|
713
699
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
##### Retrieve an organization Claude subscription
|
|
717
|
-
|
|
718
|
-
Retrieve the connection status for an organization Claude subscription.
|
|
719
|
-
|
|
720
|
-
| Direction | Type |
|
|
721
|
-
| --- | --- |
|
|
722
|
-
| Response | [`ClaudeRetrieveResponse`](./src/resources/organizations/subscriptions/claude.ts) |
|
|
723
|
-
|
|
724
|
-
```ts
|
|
725
|
-
const claude = await client.organizations.subscriptions.claude.retrieve('organizationId');
|
|
726
|
-
```
|
|
700
|
+
### `Organizations Subscriptions`
|
|
727
701
|
|
|
728
|
-
|
|
702
|
+
#### Retrieve organization subscriptions
|
|
729
703
|
|
|
730
|
-
Retrieve
|
|
704
|
+
Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
|
|
731
705
|
|
|
732
706
|
| Direction | Type |
|
|
733
707
|
| --- | --- |
|
|
734
|
-
| Response | [`
|
|
708
|
+
| Response | [`SubscriptionRetrieveResponse`](./src/resources/organizations/subscriptions.ts) |
|
|
735
709
|
|
|
736
710
|
```ts
|
|
737
|
-
const
|
|
711
|
+
const subscription = await client.organizations.subscriptions.retrieve('organizationId');
|
|
738
712
|
```
|
|
739
713
|
|
|
740
|
-
####
|
|
741
|
-
|
|
742
|
-
##### Retrieve an organization SuperGrok subscription
|
|
714
|
+
#### Reset organization subscription usage
|
|
743
715
|
|
|
744
|
-
|
|
716
|
+
Redeem an earned ChatGPT rate-limit reset.
|
|
745
717
|
|
|
746
718
|
| Direction | Type |
|
|
747
719
|
| --- | --- |
|
|
748
|
-
|
|
|
720
|
+
| Request | [`SubscriptionResetParams`](./src/resources/organizations/subscriptions.ts) |
|
|
721
|
+
| Response | [`SubscriptionResetResponse`](./src/resources/organizations/subscriptions.ts) |
|
|
749
722
|
|
|
750
723
|
```ts
|
|
751
|
-
const
|
|
724
|
+
const subscription = await client.organizations.subscriptions.reset('organizationId', {
|
|
725
|
+
idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
726
|
+
provider: 'chatgpt',
|
|
727
|
+
});
|
|
752
728
|
```
|
|
753
729
|
|
|
754
730
|
## `McpConnections`
|
|
@@ -1128,85 +1104,69 @@ const connectedAccount = await client.users.connectedAccounts.retrieve('connecte
|
|
|
1128
1104
|
|
|
1129
1105
|
### `Users Subscriptions`
|
|
1130
1106
|
|
|
1131
|
-
####
|
|
1132
|
-
|
|
1133
|
-
##### Retrieve a user ChatGPT subscription
|
|
1134
|
-
|
|
1135
|
-
Retrieve the connection status for a user ChatGPT subscription.
|
|
1136
|
-
|
|
1137
|
-
| Direction | Type |
|
|
1138
|
-
| --- | --- |
|
|
1139
|
-
| Response | [`ChatgptRetrieveResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
|
|
1107
|
+
#### Retrieve user subscriptions
|
|
1140
1108
|
|
|
1141
|
-
|
|
1142
|
-
const chatgpt = await client.users.subscriptions.chatgpt.retrieve('userId');
|
|
1143
|
-
```
|
|
1144
|
-
|
|
1145
|
-
##### Retrieve user ChatGPT subscription usage
|
|
1146
|
-
|
|
1147
|
-
Retrieve plan and rate-limit usage for a user ChatGPT subscription.
|
|
1109
|
+
Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
|
|
1148
1110
|
|
|
1149
1111
|
| Direction | Type |
|
|
1150
1112
|
| --- | --- |
|
|
1151
|
-
| Response | [`
|
|
1113
|
+
| Response | [`SubscriptionRetrieveResponse`](./src/resources/users/subscriptions.ts) |
|
|
1152
1114
|
|
|
1153
1115
|
```ts
|
|
1154
|
-
const
|
|
1116
|
+
const subscription = await client.users.subscriptions.retrieve('userId');
|
|
1155
1117
|
```
|
|
1156
1118
|
|
|
1157
|
-
|
|
1119
|
+
#### Reset user subscription usage
|
|
1158
1120
|
|
|
1159
|
-
Redeem
|
|
1121
|
+
Redeem an earned ChatGPT rate-limit reset.
|
|
1160
1122
|
|
|
1161
1123
|
| Direction | Type |
|
|
1162
1124
|
| --- | --- |
|
|
1163
|
-
| Request | [`
|
|
1164
|
-
| Response | [`
|
|
1125
|
+
| Request | [`SubscriptionResetParams`](./src/resources/users/subscriptions.ts) |
|
|
1126
|
+
| Response | [`SubscriptionResetResponse`](./src/resources/users/subscriptions.ts) |
|
|
1165
1127
|
|
|
1166
1128
|
```ts
|
|
1167
|
-
const
|
|
1129
|
+
const subscription = await client.users.subscriptions.reset('userId', {
|
|
1168
1130
|
idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
1131
|
+
provider: 'chatgpt',
|
|
1169
1132
|
});
|
|
1170
1133
|
```
|
|
1171
1134
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
##### Retrieve a user Claude subscription
|
|
1135
|
+
### `Users ProfilePicture`
|
|
1175
1136
|
|
|
1176
|
-
Retrieve
|
|
1137
|
+
#### Retrieve a user profile picture
|
|
1177
1138
|
|
|
1178
|
-
|
|
1179
|
-
| --- | --- |
|
|
1180
|
-
| Response | [`ClaudeRetrieveResponse`](./src/resources/users/subscriptions/claude.ts) |
|
|
1139
|
+
Redirect to a user's profile picture. Signed URLs are valid for one hour.
|
|
1181
1140
|
|
|
1182
1141
|
```ts
|
|
1183
|
-
|
|
1142
|
+
await client.users.profilePicture.retrieve('userId');
|
|
1184
1143
|
```
|
|
1185
1144
|
|
|
1186
|
-
|
|
1145
|
+
#### Update your profile picture
|
|
1187
1146
|
|
|
1188
|
-
|
|
1147
|
+
Upload a JPEG, PNG, GIF, or WebP profile picture up to 5 MB.
|
|
1189
1148
|
|
|
1190
1149
|
| Direction | Type |
|
|
1191
1150
|
| --- | --- |
|
|
1192
|
-
|
|
|
1151
|
+
| Request | [`ProfilePictureUpdateParams`](./src/resources/users/profile-picture.ts) |
|
|
1152
|
+
| Response | [`ProfilePictureUpdateResponse`](./src/resources/users/profile-picture.ts) |
|
|
1193
1153
|
|
|
1194
1154
|
```ts
|
|
1195
|
-
const
|
|
1155
|
+
const profilePicture = await client.users.profilePicture.update('userId', {
|
|
1156
|
+
file: new File(['file'], 'file'),
|
|
1157
|
+
});
|
|
1196
1158
|
```
|
|
1197
1159
|
|
|
1198
|
-
####
|
|
1199
|
-
|
|
1200
|
-
##### Retrieve a user SuperGrok subscription
|
|
1160
|
+
#### Delete your profile picture
|
|
1201
1161
|
|
|
1202
|
-
|
|
1162
|
+
Delete your profile picture. This succeeds if no picture exists.
|
|
1203
1163
|
|
|
1204
1164
|
| Direction | Type |
|
|
1205
1165
|
| --- | --- |
|
|
1206
|
-
| Response | [`
|
|
1166
|
+
| Response | [`ProfilePictureDeleteResponse`](./src/resources/users/profile-picture.ts) |
|
|
1207
1167
|
|
|
1208
1168
|
```ts
|
|
1209
|
-
const
|
|
1169
|
+
const profilePicture = await client.users.profilePicture.delete('userId');
|
|
1210
1170
|
```
|
|
1211
1171
|
|
|
1212
1172
|
## `Sessions`
|
|
@@ -2106,7 +2066,7 @@ const contentRevision = await client.agents.contentRevisions.restore(1, {
|
|
|
2106
2066
|
|
|
2107
2067
|
### List repositories
|
|
2108
2068
|
|
|
2109
|
-
List
|
|
2069
|
+
List repositories in the authenticated organization. Defaults to enabled repositories.
|
|
2110
2070
|
|
|
2111
2071
|
| Direction | Type |
|
|
2112
2072
|
| --- | --- |
|
|
@@ -2116,6 +2076,7 @@ List enabled repositories in the authenticated organization.
|
|
|
2116
2076
|
```ts
|
|
2117
2077
|
const repository = await client.repositories.list({
|
|
2118
2078
|
limit: 50,
|
|
2079
|
+
enabled: 'all',
|
|
2119
2080
|
order: 'desc',
|
|
2120
2081
|
sort: 'pullRequests',
|
|
2121
2082
|
});
|
|
@@ -2123,7 +2084,7 @@ const repository = await client.repositories.list({
|
|
|
2123
2084
|
|
|
2124
2085
|
### Retrieve a repository
|
|
2125
2086
|
|
|
2126
|
-
Retrieve
|
|
2087
|
+
Retrieve a repository in the authenticated organization.
|
|
2127
2088
|
|
|
2128
2089
|
| Direction | Type |
|
|
2129
2090
|
| --- | --- |
|
|
@@ -2133,16 +2094,31 @@ Retrieve an enabled repository in the authenticated organization.
|
|
|
2133
2094
|
const repository = await client.repositories.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2134
2095
|
```
|
|
2135
2096
|
|
|
2097
|
+
### Update a repository
|
|
2098
|
+
|
|
2099
|
+
Update repository configuration or enable or disable it.
|
|
2100
|
+
|
|
2101
|
+
| Direction | Type |
|
|
2102
|
+
| --- | --- |
|
|
2103
|
+
| Request | [`RepositoryUpdateParams`](./src/resources/repositories.ts) |
|
|
2104
|
+
| Response | [`RepositoryUpdateResponse`](./src/resources/repositories.ts) |
|
|
2105
|
+
|
|
2106
|
+
```ts
|
|
2107
|
+
const repository = await client.repositories.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
|
|
2108
|
+
enabled: false,
|
|
2109
|
+
});
|
|
2110
|
+
```
|
|
2111
|
+
|
|
2136
2112
|
## `Integrations`
|
|
2137
2113
|
|
|
2138
2114
|
### List integrations
|
|
2139
2115
|
|
|
2140
|
-
List integrations
|
|
2116
|
+
List integrations visible to the current organization or authenticated admin.
|
|
2141
2117
|
|
|
2142
2118
|
| Direction | Type |
|
|
2143
2119
|
| --- | --- |
|
|
2144
|
-
| Request | [`IntegrationListParams`](./src/resources/integrations.ts) |
|
|
2145
|
-
| Response | [`IntegrationListResponse`](./src/resources/integrations.ts) |
|
|
2120
|
+
| Request | [`IntegrationListParams`](./src/resources/integrations/integrations.ts) |
|
|
2121
|
+
| Response | [`IntegrationListResponse`](./src/resources/integrations/integrations.ts) |
|
|
2146
2122
|
|
|
2147
2123
|
```ts
|
|
2148
2124
|
const integration = await client.integrations.list({
|
|
@@ -2151,18 +2127,252 @@ const integration = await client.integrations.list({
|
|
|
2151
2127
|
});
|
|
2152
2128
|
```
|
|
2153
2129
|
|
|
2130
|
+
### Create an integration
|
|
2131
|
+
|
|
2132
|
+
Create an integration that does not require an OAuth callback.
|
|
2133
|
+
|
|
2134
|
+
| Direction | Type |
|
|
2135
|
+
| --- | --- |
|
|
2136
|
+
| Request | [`IntegrationCreateParams`](./src/resources/integrations/integrations.ts) |
|
|
2137
|
+
| Response | [`IntegrationCreateResponse`](./src/resources/integrations/integrations.ts) |
|
|
2138
|
+
|
|
2139
|
+
```ts
|
|
2140
|
+
const integration = await client.integrations.create({
|
|
2141
|
+
environment: 'x',
|
|
2142
|
+
roleArn: 'x',
|
|
2143
|
+
type: 'aws',
|
|
2144
|
+
});
|
|
2145
|
+
```
|
|
2146
|
+
|
|
2154
2147
|
### Retrieve an integration
|
|
2155
2148
|
|
|
2156
|
-
Retrieve an integration
|
|
2149
|
+
Retrieve an integration and its configuration.
|
|
2157
2150
|
|
|
2158
2151
|
| Direction | Type |
|
|
2159
2152
|
| --- | --- |
|
|
2160
|
-
| Response | [`IntegrationRetrieveResponse`](./src/resources/integrations.ts) |
|
|
2153
|
+
| Response | [`IntegrationRetrieveResponse`](./src/resources/integrations/integrations.ts) |
|
|
2161
2154
|
|
|
2162
2155
|
```ts
|
|
2163
2156
|
const integration = await client.integrations.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2164
2157
|
```
|
|
2165
2158
|
|
|
2159
|
+
### Update an integration
|
|
2160
|
+
|
|
2161
|
+
Update provider settings or an editable configuration.
|
|
2162
|
+
|
|
2163
|
+
| Direction | Type |
|
|
2164
|
+
| --- | --- |
|
|
2165
|
+
| Request | [`IntegrationUpdateParams`](./src/resources/integrations/integrations.ts) |
|
|
2166
|
+
| Response | [`IntegrationUpdateResponse`](./src/resources/integrations/integrations.ts) |
|
|
2167
|
+
|
|
2168
|
+
```ts
|
|
2169
|
+
const integration = await client.integrations.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
|
|
2170
|
+
settings: {},
|
|
2171
|
+
});
|
|
2172
|
+
```
|
|
2173
|
+
|
|
2174
|
+
### Delete an integration
|
|
2175
|
+
|
|
2176
|
+
Uninstall an integration from its provider when supported, then delete it from Tembo.
|
|
2177
|
+
|
|
2178
|
+
| Direction | Type |
|
|
2179
|
+
| --- | --- |
|
|
2180
|
+
| Response | [`IntegrationDeleteResponse`](./src/resources/integrations/integrations.ts) |
|
|
2181
|
+
|
|
2182
|
+
```ts
|
|
2183
|
+
const integration = await client.integrations.delete('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2184
|
+
```
|
|
2185
|
+
|
|
2186
|
+
### Authorize an integration
|
|
2187
|
+
|
|
2188
|
+
Return the provider authorization URL for an integration.
|
|
2189
|
+
|
|
2190
|
+
| Direction | Type |
|
|
2191
|
+
| --- | --- |
|
|
2192
|
+
| Request | [`IntegrationAuthorizeParams`](./src/resources/integrations/integrations.ts) |
|
|
2193
|
+
| Response | [`IntegrationAuthorizeResponse`](./src/resources/integrations/integrations.ts) |
|
|
2194
|
+
|
|
2195
|
+
```ts
|
|
2196
|
+
const integration = await client.integrations.authorize('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2197
|
+
```
|
|
2198
|
+
|
|
2199
|
+
### Test an integration
|
|
2200
|
+
|
|
2201
|
+
Test the saved provider connection.
|
|
2202
|
+
|
|
2203
|
+
| Direction | Type |
|
|
2204
|
+
| --- | --- |
|
|
2205
|
+
| Response | [`IntegrationTestResponse`](./src/resources/integrations/integrations.ts) |
|
|
2206
|
+
|
|
2207
|
+
```ts
|
|
2208
|
+
const integration = await client.integrations.test('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2209
|
+
```
|
|
2210
|
+
|
|
2211
|
+
### Sync an integration
|
|
2212
|
+
|
|
2213
|
+
Queue or immediately perform an integration sync.
|
|
2214
|
+
|
|
2215
|
+
| Direction | Type |
|
|
2216
|
+
| --- | --- |
|
|
2217
|
+
| Request | [`IntegrationSyncParams`](./src/resources/integrations/integrations.ts) |
|
|
2218
|
+
| Response | [`IntegrationSyncResponse`](./src/resources/integrations/integrations.ts) |
|
|
2219
|
+
|
|
2220
|
+
```ts
|
|
2221
|
+
const integration = await client.integrations.sync('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
|
|
2222
|
+
mode: 'queued',
|
|
2223
|
+
});
|
|
2224
|
+
```
|
|
2225
|
+
|
|
2226
|
+
### Sync eligible integrations
|
|
2227
|
+
|
|
2228
|
+
Queue integration and pull-request sync jobs for integrations with enabled repositories.
|
|
2229
|
+
|
|
2230
|
+
| Direction | Type |
|
|
2231
|
+
| --- | --- |
|
|
2232
|
+
| Request | [`IntegrationSyncAllParams`](./src/resources/integrations/integrations.ts) |
|
|
2233
|
+
| Response | [`IntegrationSyncAllResponse`](./src/resources/integrations/integrations.ts) |
|
|
2234
|
+
|
|
2235
|
+
```ts
|
|
2236
|
+
const integration = await client.integrations.syncAll({});
|
|
2237
|
+
```
|
|
2238
|
+
|
|
2239
|
+
### Retrieve eligible integration sync status
|
|
2240
|
+
|
|
2241
|
+
Count active sync jobs for integrations with enabled repositories.
|
|
2242
|
+
|
|
2243
|
+
| Direction | Type |
|
|
2244
|
+
| --- | --- |
|
|
2245
|
+
| Response | [`IntegrationRetrieveSyncStatusResponse`](./src/resources/integrations/integrations.ts) |
|
|
2246
|
+
|
|
2247
|
+
```ts
|
|
2248
|
+
const integration = await client.integrations.retrieveSyncStatus();
|
|
2249
|
+
```
|
|
2250
|
+
|
|
2251
|
+
### Retrieve an integration rate limit
|
|
2252
|
+
|
|
2253
|
+
Retrieve the GitHub installation rate-limit state.
|
|
2254
|
+
|
|
2255
|
+
| Direction | Type |
|
|
2256
|
+
| --- | --- |
|
|
2257
|
+
| Response | [`IntegrationRetrieveRateLimitResponse`](./src/resources/integrations/integrations.ts) |
|
|
2258
|
+
|
|
2259
|
+
```ts
|
|
2260
|
+
const integration = await client.integrations.retrieveRateLimit('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2261
|
+
```
|
|
2262
|
+
|
|
2263
|
+
### List Sentry environments
|
|
2264
|
+
|
|
2265
|
+
List environments visible to a Sentry integration.
|
|
2266
|
+
|
|
2267
|
+
| Direction | Type |
|
|
2268
|
+
| --- | --- |
|
|
2269
|
+
| Request | [`IntegrationListSentryEnvironmentsParams`](./src/resources/integrations/integrations.ts) |
|
|
2270
|
+
| Response | [`IntegrationListSentryEnvironmentsResponse`](./src/resources/integrations/integrations.ts) |
|
|
2271
|
+
|
|
2272
|
+
```ts
|
|
2273
|
+
const integration = await client.integrations.listSentryEnvironments('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
|
|
2274
|
+
limit: 50,
|
|
2275
|
+
});
|
|
2276
|
+
```
|
|
2277
|
+
|
|
2278
|
+
### List Slack channels
|
|
2279
|
+
|
|
2280
|
+
List channels visible to a Slack integration.
|
|
2281
|
+
|
|
2282
|
+
| Direction | Type |
|
|
2283
|
+
| --- | --- |
|
|
2284
|
+
| Request | [`IntegrationListSlackChannelsParams`](./src/resources/integrations/integrations.ts) |
|
|
2285
|
+
| Response | [`IntegrationListSlackChannelsResponse`](./src/resources/integrations/integrations.ts) |
|
|
2286
|
+
|
|
2287
|
+
```ts
|
|
2288
|
+
const integration = await client.integrations.listSlackChannels('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
|
|
2289
|
+
limit: 50,
|
|
2290
|
+
});
|
|
2291
|
+
```
|
|
2292
|
+
|
|
2293
|
+
### `Integrations Providers`
|
|
2294
|
+
|
|
2295
|
+
#### List integration providers
|
|
2296
|
+
|
|
2297
|
+
List providers available to the current organization.
|
|
2298
|
+
|
|
2299
|
+
| Direction | Type |
|
|
2300
|
+
| --- | --- |
|
|
2301
|
+
| Request | [`ProviderListParams`](./src/resources/integrations/providers.ts) |
|
|
2302
|
+
| Response | [`ProviderListResponse`](./src/resources/integrations/providers.ts) |
|
|
2303
|
+
|
|
2304
|
+
```ts
|
|
2305
|
+
const provider = await client.integrations.providers.list({
|
|
2306
|
+
limit: 50,
|
|
2307
|
+
});
|
|
2308
|
+
```
|
|
2309
|
+
|
|
2310
|
+
#### Discover Snyk organizations
|
|
2311
|
+
|
|
2312
|
+
Validate Snyk service-account credentials and list accessible organizations.
|
|
2313
|
+
|
|
2314
|
+
| Direction | Type |
|
|
2315
|
+
| --- | --- |
|
|
2316
|
+
| Request | [`ProviderDiscoverSnykOrganizationsParams`](./src/resources/integrations/providers.ts) |
|
|
2317
|
+
| Response | [`ProviderDiscoverSnykOrganizationsResponse`](./src/resources/integrations/providers.ts) |
|
|
2318
|
+
|
|
2319
|
+
```ts
|
|
2320
|
+
const provider = await client.integrations.providers.discoverSnykOrganizations({
|
|
2321
|
+
clientId: 'x',
|
|
2322
|
+
clientSecret: 'x',
|
|
2323
|
+
limit: 50,
|
|
2324
|
+
});
|
|
2325
|
+
```
|
|
2326
|
+
|
|
2327
|
+
### `Integrations Triggers`
|
|
2328
|
+
|
|
2329
|
+
#### List integration triggers
|
|
2330
|
+
|
|
2331
|
+
List visible automation triggers grouped by provider.
|
|
2332
|
+
|
|
2333
|
+
| Direction | Type |
|
|
2334
|
+
| --- | --- |
|
|
2335
|
+
| Request | [`TriggerListParams`](./src/resources/integrations/triggers.ts) |
|
|
2336
|
+
| Response | [`TriggerListResponse`](./src/resources/integrations/triggers.ts) |
|
|
2337
|
+
|
|
2338
|
+
```ts
|
|
2339
|
+
const trigger = await client.integrations.triggers.list({
|
|
2340
|
+
limit: 50,
|
|
2341
|
+
});
|
|
2342
|
+
```
|
|
2343
|
+
|
|
2344
|
+
#### Retrieve an integration trigger
|
|
2345
|
+
|
|
2346
|
+
Retrieve a trigger definition and its default filter values for an integration in the current organization.
|
|
2347
|
+
|
|
2348
|
+
| Direction | Type |
|
|
2349
|
+
| --- | --- |
|
|
2350
|
+
| Request | [`TriggerRetrieveParams`](./src/resources/integrations/triggers.ts) |
|
|
2351
|
+
| Response | [`TriggerRetrieveResponse`](./src/resources/integrations/triggers.ts) |
|
|
2352
|
+
|
|
2353
|
+
```ts
|
|
2354
|
+
const trigger = await client.integrations.triggers.retrieve('triggerName', {
|
|
2355
|
+
integrationId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
2356
|
+
});
|
|
2357
|
+
```
|
|
2358
|
+
|
|
2359
|
+
#### List integration trigger filter options
|
|
2360
|
+
|
|
2361
|
+
List one cursor-page of selectable values for an integration trigger filter field, with optional search.
|
|
2362
|
+
|
|
2363
|
+
| Direction | Type |
|
|
2364
|
+
| --- | --- |
|
|
2365
|
+
| Request | [`TriggerListFilterOptionsParams`](./src/resources/integrations/triggers.ts) |
|
|
2366
|
+
| Response | [`TriggerListFilterOptionsResponse`](./src/resources/integrations/triggers.ts) |
|
|
2367
|
+
|
|
2368
|
+
```ts
|
|
2369
|
+
const trigger = await client.integrations.triggers.listFilterOptions('field', {
|
|
2370
|
+
integrationId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
2371
|
+
triggerName: 'triggerName',
|
|
2372
|
+
limit: 50,
|
|
2373
|
+
});
|
|
2374
|
+
```
|
|
2375
|
+
|
|
2166
2376
|
## `Billing`
|
|
2167
2377
|
|
|
2168
2378
|
### Retrieve billing
|
|
@@ -2191,3 +2401,39 @@ const billing = await client.billing.listUsage({
|
|
|
2191
2401
|
limit: 50,
|
|
2192
2402
|
});
|
|
2193
2403
|
```
|
|
2404
|
+
|
|
2405
|
+
## `Live`
|
|
2406
|
+
|
|
2407
|
+
### Authorize a live connection
|
|
2408
|
+
|
|
2409
|
+
Issue a 30-second WebSocket ticket for one live connection that multiplexes resource subscriptions.
|
|
2410
|
+
|
|
2411
|
+
| Direction | Type |
|
|
2412
|
+
| --- | --- |
|
|
2413
|
+
| Response | [`LiveAuthorizeResponse`](./src/resources/live/live.ts) |
|
|
2414
|
+
|
|
2415
|
+
```ts
|
|
2416
|
+
const live = await client.live.authorize();
|
|
2417
|
+
```
|
|
2418
|
+
|
|
2419
|
+
### Live resource subscriptions
|
|
2420
|
+
|
|
2421
|
+
Native WebSocket. Send `{ op: "subscribe", id, resource, input }` or `{ op: "unsubscribe", id }`; receive `{ id, type: "ready" | "event" | "error" }`.
|
|
2422
|
+
|
|
2423
|
+
| Direction | Type |
|
|
2424
|
+
| --- | --- |
|
|
2425
|
+
| Request | [`LiveConnectParams`](./src/resources/live/live.ts) |
|
|
2426
|
+
|
|
2427
|
+
```ts
|
|
2428
|
+
const connection = client.live.connect({
|
|
2429
|
+
ticket: 'ticket',
|
|
2430
|
+
});
|
|
2431
|
+
|
|
2432
|
+
try {
|
|
2433
|
+
for await (const message of connection) {
|
|
2434
|
+
console.log(message);
|
|
2435
|
+
}
|
|
2436
|
+
} finally {
|
|
2437
|
+
connection.close();
|
|
2438
|
+
}
|
|
2439
|
+
```
|