@tembo-io/sdk 0.9.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 +464 -131
- package/dist/cjs/client.d.ts +9 -5
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +6 -2
- 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/agents.d.ts +7 -0
- package/dist/cjs/resources/agents/agents.d.ts.map +1 -1
- package/dist/cjs/resources/agents/agents.js +4 -0
- package/dist/cjs/resources/agents/agents.js.map +1 -1
- package/dist/cjs/resources/agents/content-revisions.d.ts +249 -0
- package/dist/cjs/resources/agents/content-revisions.d.ts.map +1 -0
- package/dist/cjs/resources/agents/content-revisions.js +70 -0
- package/dist/cjs/resources/agents/content-revisions.js.map +1 -0
- package/dist/cjs/resources/agents/index.d.ts +2 -0
- package/dist/cjs/resources/agents/index.d.ts.map +1 -1
- package/dist/cjs/resources/agents/index.js +3 -1
- package/dist/cjs/resources/agents/index.js.map +1 -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 +7 -5
- package/dist/cjs/resources/index.d.ts.map +1 -1
- package/dist/cjs/resources/index.js +5 -3
- 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/models.d.ts +6 -6
- package/dist/cjs/resources/models.d.ts.map +1 -1
- package/dist/cjs/resources/models.js +1 -1
- package/dist/cjs/resources/models.js.map +1 -1
- 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/builds.d.ts +2 -2
- package/dist/cjs/resources/projects/projects.d.ts +19 -2
- 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/projects/snapshots.d.ts +3 -3
- 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/runtimes.d.ts +2 -2
- package/dist/cjs/resources/runtimes.d.ts.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/skills/index.d.ts +5 -0
- package/dist/cjs/resources/skills/index.d.ts.map +1 -0
- package/dist/cjs/resources/skills/index.js +9 -0
- package/dist/cjs/resources/skills/index.js.map +1 -0
- package/dist/cjs/resources/skills/marketplace.d.ts +114 -0
- package/dist/cjs/resources/skills/marketplace.d.ts.map +1 -0
- package/dist/cjs/resources/skills/marketplace.js +45 -0
- package/dist/cjs/resources/skills/marketplace.js.map +1 -0
- package/dist/cjs/resources/skills/skills.d.ts +269 -0
- package/dist/cjs/resources/skills/skills.d.ts.map +1 -0
- package/dist/cjs/resources/skills/skills.js +135 -0
- package/dist/cjs/resources/skills/skills.js.map +1 -0
- package/dist/cjs/resources/skills.d.ts +1 -264
- package/dist/cjs/resources/skills.d.ts.map +1 -1
- package/dist/cjs/resources/skills.js +15 -94
- package/dist/cjs/resources/skills.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.d.ts.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/client.d.ts +9 -5
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +6 -2
- 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/agents.d.ts +7 -0
- package/dist/esm/resources/agents/agents.d.ts.map +1 -1
- package/dist/esm/resources/agents/agents.js +4 -0
- package/dist/esm/resources/agents/agents.js.map +1 -1
- package/dist/esm/resources/agents/content-revisions.d.ts +249 -0
- package/dist/esm/resources/agents/content-revisions.d.ts.map +1 -0
- package/dist/esm/resources/agents/content-revisions.js +66 -0
- package/dist/esm/resources/agents/content-revisions.js.map +1 -0
- package/dist/esm/resources/agents/index.d.ts +2 -0
- package/dist/esm/resources/agents/index.d.ts.map +1 -1
- package/dist/esm/resources/agents/index.js +1 -0
- package/dist/esm/resources/agents/index.js.map +1 -1
- 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 +7 -5
- package/dist/esm/resources/index.d.ts.map +1 -1
- package/dist/esm/resources/index.js +3 -2
- 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/models.d.ts +6 -6
- package/dist/esm/resources/models.d.ts.map +1 -1
- package/dist/esm/resources/models.js +1 -1
- package/dist/esm/resources/models.js.map +1 -1
- 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/builds.d.ts +2 -2
- package/dist/esm/resources/projects/projects.d.ts +19 -2
- 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/projects/snapshots.d.ts +3 -3
- 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/runtimes.d.ts +2 -2
- package/dist/esm/resources/runtimes.d.ts.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/skills/index.d.ts +5 -0
- package/dist/esm/resources/skills/index.d.ts.map +1 -0
- package/dist/esm/resources/skills/index.js +4 -0
- package/dist/esm/resources/skills/index.js.map +1 -0
- package/dist/esm/resources/skills/marketplace.d.ts +114 -0
- package/dist/esm/resources/skills/marketplace.d.ts.map +1 -0
- package/dist/esm/resources/skills/marketplace.js +41 -0
- package/dist/esm/resources/skills/marketplace.js.map +1 -0
- package/dist/esm/resources/skills/skills.d.ts +269 -0
- package/dist/esm/resources/skills/skills.d.ts.map +1 -0
- package/dist/esm/resources/skills/skills.js +98 -0
- package/dist/esm/resources/skills/skills.js.map +1 -0
- package/dist/esm/resources/skills.d.ts +1 -264
- package/dist/esm/resources/skills.d.ts.map +1 -1
- package/dist/esm/resources/skills.js +1 -92
- package/dist/esm/resources/skills.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.d.ts.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +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
|
@@ -16,6 +16,9 @@ Complete reference of every operation, grouped by resource. See [the README](./R
|
|
|
16
16
|
- [Retrieve a skill](#retrieve-a-skill)
|
|
17
17
|
- [Update a skill](#update-a-skill)
|
|
18
18
|
- [Delete a skill](#delete-a-skill)
|
|
19
|
+
- [`Skills Marketplace`](#skills-marketplace)
|
|
20
|
+
- [List marketplace skills](#list-marketplace-skills)
|
|
21
|
+
- [Retrieve a marketplace skill](#retrieve-a-marketplace-skill)
|
|
19
22
|
- [`Insights`](#insights)
|
|
20
23
|
- [Retrieve insights](#retrieve-insights)
|
|
21
24
|
- [Update insights](#update-insights)
|
|
@@ -41,16 +44,10 @@ Complete reference of every operation, grouped by resource. See [the README](./R
|
|
|
41
44
|
- [`Organizations Settings`](#organizations-settings)
|
|
42
45
|
- [Retrieve organization settings](#retrieve-organization-settings)
|
|
43
46
|
- [Update organization settings](#update-organization-settings)
|
|
47
|
+
- [Validate organization provider credentials](#validate-organization-provider-credentials)
|
|
44
48
|
- [`Organizations Subscriptions`](#organizations-subscriptions)
|
|
45
|
-
- [
|
|
46
|
-
|
|
47
|
-
- [Retrieve organization ChatGPT subscription usage](#retrieve-organization-chatgpt-subscription-usage)
|
|
48
|
-
- [Reset organization ChatGPT subscription usage](#reset-organization-chatgpt-subscription-usage)
|
|
49
|
-
- [`Organizations Subscriptions Claude`](#organizations-subscriptions-claude)
|
|
50
|
-
- [Retrieve an organization Claude subscription](#retrieve-an-organization-claude-subscription)
|
|
51
|
-
- [Retrieve organization Claude subscription usage](#retrieve-organization-claude-subscription-usage)
|
|
52
|
-
- [`Organizations Subscriptions Supergrok`](#organizations-subscriptions-supergrok)
|
|
53
|
-
- [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)
|
|
54
51
|
- [`McpConnections`](#mcpconnections)
|
|
55
52
|
- [List MCP connections](#list-mcp-connections)
|
|
56
53
|
- [Create an MCP connection](#create-an-mcp-connection)
|
|
@@ -86,15 +83,12 @@ Complete reference of every operation, grouped by resource. See [the README](./R
|
|
|
86
83
|
- [List user connected accounts](#list-user-connected-accounts)
|
|
87
84
|
- [Retrieve a user connected account](#retrieve-a-user-connected-account)
|
|
88
85
|
- [`Users Subscriptions`](#users-subscriptions)
|
|
89
|
-
- [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
- [
|
|
94
|
-
|
|
95
|
-
- [Retrieve user Claude subscription usage](#retrieve-user-claude-subscription-usage)
|
|
96
|
-
- [`Users Subscriptions Supergrok`](#users-subscriptions-supergrok)
|
|
97
|
-
- [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)
|
|
98
92
|
- [`Sessions`](#sessions)
|
|
99
93
|
- [List sessions](#list-sessions)
|
|
100
94
|
- [Create a session](#create-a-session)
|
|
@@ -165,15 +159,41 @@ Complete reference of every operation, grouped by resource. See [the README](./R
|
|
|
165
159
|
- [List agent runs](#list-agent-runs)
|
|
166
160
|
- [Create an agent run](#create-an-agent-run)
|
|
167
161
|
- [Retrieve an agent run](#retrieve-an-agent-run)
|
|
162
|
+
- [`Agents ContentRevisions`](#agents-contentrevisions)
|
|
163
|
+
- [List agent instruction revisions](#list-agent-instruction-revisions)
|
|
164
|
+
- [Retrieve an agent instruction revision](#retrieve-an-agent-instruction-revision)
|
|
165
|
+
- [Restore agent instructions](#restore-agent-instructions)
|
|
168
166
|
- [`Repositories`](#repositories)
|
|
169
167
|
- [List repositories](#list-repositories)
|
|
170
168
|
- [Retrieve a repository](#retrieve-a-repository)
|
|
169
|
+
- [Update a repository](#update-a-repository)
|
|
171
170
|
- [`Integrations`](#integrations)
|
|
172
171
|
- [List integrations](#list-integrations)
|
|
172
|
+
- [Create an integration](#create-an-integration)
|
|
173
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)
|
|
174
191
|
- [`Billing`](#billing)
|
|
175
192
|
- [Retrieve billing](#retrieve-billing)
|
|
176
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)
|
|
177
197
|
|
|
178
198
|
## Setup
|
|
179
199
|
|
|
@@ -262,8 +282,8 @@ List organization skills or skills checked into a repository.
|
|
|
262
282
|
|
|
263
283
|
| Direction | Type |
|
|
264
284
|
| --- | --- |
|
|
265
|
-
| Request | [`SkillListParams`](./src/resources/skills.ts) |
|
|
266
|
-
| Response | [`SkillListResponse`](./src/resources/skills.ts) |
|
|
285
|
+
| Request | [`SkillListParams`](./src/resources/skills/skills.ts) |
|
|
286
|
+
| Response | [`SkillListResponse`](./src/resources/skills/skills.ts) |
|
|
267
287
|
|
|
268
288
|
```ts
|
|
269
289
|
const skill = await client.skills.list({
|
|
@@ -278,8 +298,8 @@ Create an organization skill with its files.
|
|
|
278
298
|
|
|
279
299
|
| Direction | Type |
|
|
280
300
|
| --- | --- |
|
|
281
|
-
| Request | [`SkillCreateParams`](./src/resources/skills.ts) |
|
|
282
|
-
| Response | [`SkillCreateResponse`](./src/resources/skills.ts) |
|
|
301
|
+
| Request | [`SkillCreateParams`](./src/resources/skills/skills.ts) |
|
|
302
|
+
| Response | [`SkillCreateResponse`](./src/resources/skills/skills.ts) |
|
|
283
303
|
|
|
284
304
|
```ts
|
|
285
305
|
const skill = await client.skills.create({
|
|
@@ -300,7 +320,7 @@ Retrieve an organization skill and all of its files.
|
|
|
300
320
|
|
|
301
321
|
| Direction | Type |
|
|
302
322
|
| --- | --- |
|
|
303
|
-
| Response | [`SkillRetrieveResponse`](./src/resources/skills.ts) |
|
|
323
|
+
| Response | [`SkillRetrieveResponse`](./src/resources/skills/skills.ts) |
|
|
304
324
|
|
|
305
325
|
```ts
|
|
306
326
|
const skill = await client.skills.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
@@ -312,8 +332,8 @@ Update an organization skill. When files are provided, they replace the complete
|
|
|
312
332
|
|
|
313
333
|
| Direction | Type |
|
|
314
334
|
| --- | --- |
|
|
315
|
-
| Request | [`SkillUpdateParams`](./src/resources/skills.ts) |
|
|
316
|
-
| Response | [`SkillUpdateResponse`](./src/resources/skills.ts) |
|
|
335
|
+
| Request | [`SkillUpdateParams`](./src/resources/skills/skills.ts) |
|
|
336
|
+
| Response | [`SkillUpdateResponse`](./src/resources/skills/skills.ts) |
|
|
317
337
|
|
|
318
338
|
```ts
|
|
319
339
|
const skill = await client.skills.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {});
|
|
@@ -325,12 +345,44 @@ Delete an organization skill.
|
|
|
325
345
|
|
|
326
346
|
| Direction | Type |
|
|
327
347
|
| --- | --- |
|
|
328
|
-
| Response | [`SkillDeleteResponse`](./src/resources/skills.ts) |
|
|
348
|
+
| Response | [`SkillDeleteResponse`](./src/resources/skills/skills.ts) |
|
|
329
349
|
|
|
330
350
|
```ts
|
|
331
351
|
const skill = await client.skills.delete('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
332
352
|
```
|
|
333
353
|
|
|
354
|
+
### `Skills Marketplace`
|
|
355
|
+
|
|
356
|
+
#### List marketplace skills
|
|
357
|
+
|
|
358
|
+
List popular marketplace skills or search the catalog. Results have no continuation cursor.
|
|
359
|
+
|
|
360
|
+
| Direction | Type |
|
|
361
|
+
| --- | --- |
|
|
362
|
+
| Request | [`MarketplaceListParams`](./src/resources/skills/marketplace.ts) |
|
|
363
|
+
| Response | [`MarketplaceListResponse`](./src/resources/skills/marketplace.ts) |
|
|
364
|
+
|
|
365
|
+
```ts
|
|
366
|
+
const marketplace = await client.skills.marketplace.list({
|
|
367
|
+
limit: 50,
|
|
368
|
+
});
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
#### Retrieve a marketplace skill
|
|
372
|
+
|
|
373
|
+
Retrieve the files and content hash for a marketplace skill. This does not install the skill.
|
|
374
|
+
|
|
375
|
+
| Direction | Type |
|
|
376
|
+
| --- | --- |
|
|
377
|
+
| Request | [`MarketplaceRetrieveParams`](./src/resources/skills/marketplace.ts) |
|
|
378
|
+
| Response | [`MarketplaceRetrieveResponse`](./src/resources/skills/marketplace.ts) |
|
|
379
|
+
|
|
380
|
+
```ts
|
|
381
|
+
const marketplace = await client.skills.marketplace.retrieve('skillId', {
|
|
382
|
+
source: 'source',
|
|
383
|
+
});
|
|
384
|
+
```
|
|
385
|
+
|
|
334
386
|
## `Insights`
|
|
335
387
|
|
|
336
388
|
### Retrieve insights
|
|
@@ -629,87 +681,50 @@ Update one or more organization settings.
|
|
|
629
681
|
const setting = await client.organizations.settings.update('organizationId', {});
|
|
630
682
|
```
|
|
631
683
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
#### `Organizations Subscriptions Chatgpt`
|
|
635
|
-
|
|
636
|
-
##### Retrieve an organization ChatGPT subscription
|
|
637
|
-
|
|
638
|
-
Retrieve the connection status for an organization ChatGPT subscription.
|
|
639
|
-
|
|
640
|
-
| Direction | Type |
|
|
641
|
-
| --- | --- |
|
|
642
|
-
| Response | [`ChatgptRetrieveResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
|
|
643
|
-
|
|
644
|
-
```ts
|
|
645
|
-
const chatgpt = await client.organizations.subscriptions.chatgpt.retrieve('organizationId');
|
|
646
|
-
```
|
|
647
|
-
|
|
648
|
-
##### Retrieve organization ChatGPT subscription usage
|
|
649
|
-
|
|
650
|
-
Retrieve plan and rate-limit usage for an organization ChatGPT subscription.
|
|
651
|
-
|
|
652
|
-
| Direction | Type |
|
|
653
|
-
| --- | --- |
|
|
654
|
-
| Response | [`ChatgptRetrieveUsageResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
|
|
655
|
-
|
|
656
|
-
```ts
|
|
657
|
-
const chatgpt = await client.organizations.subscriptions.chatgpt.retrieveUsage('organizationId');
|
|
658
|
-
```
|
|
659
|
-
|
|
660
|
-
##### Reset organization ChatGPT subscription usage
|
|
684
|
+
#### Validate organization provider credentials
|
|
661
685
|
|
|
662
|
-
|
|
686
|
+
Validate supplied inference provider credentials for an organization without saving them. The provider must be available on the organization’s plan.
|
|
663
687
|
|
|
664
688
|
| Direction | Type |
|
|
665
689
|
| --- | --- |
|
|
666
|
-
| Request | [`
|
|
667
|
-
| Response | [`
|
|
690
|
+
| Request | [`SettingValidateCredentialsParams`](./src/resources/organizations/settings.ts) |
|
|
691
|
+
| Response | [`SettingValidateCredentialsResponse`](./src/resources/organizations/settings.ts) |
|
|
668
692
|
|
|
669
693
|
```ts
|
|
670
|
-
const
|
|
671
|
-
|
|
694
|
+
const setting = await client.organizations.settings.validateCredentials('organizationId', {
|
|
695
|
+
provider: 'anthropic',
|
|
696
|
+
apiKey: '',
|
|
672
697
|
});
|
|
673
698
|
```
|
|
674
699
|
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
##### Retrieve an organization Claude subscription
|
|
678
|
-
|
|
679
|
-
Retrieve the connection status for an organization Claude subscription.
|
|
680
|
-
|
|
681
|
-
| Direction | Type |
|
|
682
|
-
| --- | --- |
|
|
683
|
-
| Response | [`ClaudeRetrieveResponse`](./src/resources/organizations/subscriptions/claude.ts) |
|
|
684
|
-
|
|
685
|
-
```ts
|
|
686
|
-
const claude = await client.organizations.subscriptions.claude.retrieve('organizationId');
|
|
687
|
-
```
|
|
700
|
+
### `Organizations Subscriptions`
|
|
688
701
|
|
|
689
|
-
|
|
702
|
+
#### Retrieve organization subscriptions
|
|
690
703
|
|
|
691
|
-
Retrieve
|
|
704
|
+
Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
|
|
692
705
|
|
|
693
706
|
| Direction | Type |
|
|
694
707
|
| --- | --- |
|
|
695
|
-
| Response | [`
|
|
708
|
+
| Response | [`SubscriptionRetrieveResponse`](./src/resources/organizations/subscriptions.ts) |
|
|
696
709
|
|
|
697
710
|
```ts
|
|
698
|
-
const
|
|
711
|
+
const subscription = await client.organizations.subscriptions.retrieve('organizationId');
|
|
699
712
|
```
|
|
700
713
|
|
|
701
|
-
####
|
|
714
|
+
#### Reset organization subscription usage
|
|
702
715
|
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
Retrieve the connection status for an organization SuperGrok subscription.
|
|
716
|
+
Redeem an earned ChatGPT rate-limit reset.
|
|
706
717
|
|
|
707
718
|
| Direction | Type |
|
|
708
719
|
| --- | --- |
|
|
709
|
-
|
|
|
720
|
+
| Request | [`SubscriptionResetParams`](./src/resources/organizations/subscriptions.ts) |
|
|
721
|
+
| Response | [`SubscriptionResetResponse`](./src/resources/organizations/subscriptions.ts) |
|
|
710
722
|
|
|
711
723
|
```ts
|
|
712
|
-
const
|
|
724
|
+
const subscription = await client.organizations.subscriptions.reset('organizationId', {
|
|
725
|
+
idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
726
|
+
provider: 'chatgpt',
|
|
727
|
+
});
|
|
713
728
|
```
|
|
714
729
|
|
|
715
730
|
## `McpConnections`
|
|
@@ -1089,85 +1104,69 @@ const connectedAccount = await client.users.connectedAccounts.retrieve('connecte
|
|
|
1089
1104
|
|
|
1090
1105
|
### `Users Subscriptions`
|
|
1091
1106
|
|
|
1092
|
-
####
|
|
1093
|
-
|
|
1094
|
-
##### Retrieve a user ChatGPT subscription
|
|
1107
|
+
#### Retrieve user subscriptions
|
|
1095
1108
|
|
|
1096
|
-
Retrieve
|
|
1109
|
+
Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
|
|
1097
1110
|
|
|
1098
1111
|
| Direction | Type |
|
|
1099
1112
|
| --- | --- |
|
|
1100
|
-
| Response | [`
|
|
1113
|
+
| Response | [`SubscriptionRetrieveResponse`](./src/resources/users/subscriptions.ts) |
|
|
1101
1114
|
|
|
1102
1115
|
```ts
|
|
1103
|
-
const
|
|
1116
|
+
const subscription = await client.users.subscriptions.retrieve('userId');
|
|
1104
1117
|
```
|
|
1105
1118
|
|
|
1106
|
-
|
|
1119
|
+
#### Reset user subscription usage
|
|
1107
1120
|
|
|
1108
|
-
|
|
1121
|
+
Redeem an earned ChatGPT rate-limit reset.
|
|
1109
1122
|
|
|
1110
1123
|
| Direction | Type |
|
|
1111
1124
|
| --- | --- |
|
|
1112
|
-
|
|
|
1125
|
+
| Request | [`SubscriptionResetParams`](./src/resources/users/subscriptions.ts) |
|
|
1126
|
+
| Response | [`SubscriptionResetResponse`](./src/resources/users/subscriptions.ts) |
|
|
1113
1127
|
|
|
1114
1128
|
```ts
|
|
1115
|
-
const
|
|
1116
|
-
```
|
|
1117
|
-
|
|
1118
|
-
##### Reset user ChatGPT subscription usage
|
|
1119
|
-
|
|
1120
|
-
Redeem one earned rate-limit reset for a user ChatGPT subscription.
|
|
1121
|
-
|
|
1122
|
-
| Direction | Type |
|
|
1123
|
-
| --- | --- |
|
|
1124
|
-
| Request | [`ChatgptResetUsageParams`](./src/resources/users/subscriptions/chatgpt.ts) |
|
|
1125
|
-
| Response | [`ChatgptResetUsageResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
|
|
1126
|
-
|
|
1127
|
-
```ts
|
|
1128
|
-
const chatgpt = await client.users.subscriptions.chatgpt.resetUsage('userId', {
|
|
1129
|
+
const subscription = await client.users.subscriptions.reset('userId', {
|
|
1129
1130
|
idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
1131
|
+
provider: 'chatgpt',
|
|
1130
1132
|
});
|
|
1131
1133
|
```
|
|
1132
1134
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
##### Retrieve a user Claude subscription
|
|
1135
|
+
### `Users ProfilePicture`
|
|
1136
1136
|
|
|
1137
|
-
Retrieve
|
|
1137
|
+
#### Retrieve a user profile picture
|
|
1138
1138
|
|
|
1139
|
-
|
|
1140
|
-
| --- | --- |
|
|
1141
|
-
| Response | [`ClaudeRetrieveResponse`](./src/resources/users/subscriptions/claude.ts) |
|
|
1139
|
+
Redirect to a user's profile picture. Signed URLs are valid for one hour.
|
|
1142
1140
|
|
|
1143
1141
|
```ts
|
|
1144
|
-
|
|
1142
|
+
await client.users.profilePicture.retrieve('userId');
|
|
1145
1143
|
```
|
|
1146
1144
|
|
|
1147
|
-
|
|
1145
|
+
#### Update your profile picture
|
|
1148
1146
|
|
|
1149
|
-
|
|
1147
|
+
Upload a JPEG, PNG, GIF, or WebP profile picture up to 5 MB.
|
|
1150
1148
|
|
|
1151
1149
|
| Direction | Type |
|
|
1152
1150
|
| --- | --- |
|
|
1153
|
-
|
|
|
1151
|
+
| Request | [`ProfilePictureUpdateParams`](./src/resources/users/profile-picture.ts) |
|
|
1152
|
+
| Response | [`ProfilePictureUpdateResponse`](./src/resources/users/profile-picture.ts) |
|
|
1154
1153
|
|
|
1155
1154
|
```ts
|
|
1156
|
-
const
|
|
1155
|
+
const profilePicture = await client.users.profilePicture.update('userId', {
|
|
1156
|
+
file: new File(['file'], 'file'),
|
|
1157
|
+
});
|
|
1157
1158
|
```
|
|
1158
1159
|
|
|
1159
|
-
####
|
|
1160
|
-
|
|
1161
|
-
##### Retrieve a user SuperGrok subscription
|
|
1160
|
+
#### Delete your profile picture
|
|
1162
1161
|
|
|
1163
|
-
|
|
1162
|
+
Delete your profile picture. This succeeds if no picture exists.
|
|
1164
1163
|
|
|
1165
1164
|
| Direction | Type |
|
|
1166
1165
|
| --- | --- |
|
|
1167
|
-
| Response | [`
|
|
1166
|
+
| Response | [`ProfilePictureDeleteResponse`](./src/resources/users/profile-picture.ts) |
|
|
1168
1167
|
|
|
1169
1168
|
```ts
|
|
1170
|
-
const
|
|
1169
|
+
const profilePicture = await client.users.profilePicture.delete('userId');
|
|
1171
1170
|
```
|
|
1172
1171
|
|
|
1173
1172
|
## `Sessions`
|
|
@@ -2015,11 +2014,59 @@ const run = await client.agents.runs.retrieve('7c9e6679-7425-40de-944b-e07fc1f90
|
|
|
2015
2014
|
});
|
|
2016
2015
|
```
|
|
2017
2016
|
|
|
2017
|
+
### `Agents ContentRevisions`
|
|
2018
|
+
|
|
2019
|
+
#### List agent instruction revisions
|
|
2020
|
+
|
|
2021
|
+
List saved revisions of an agent’s instruction JSON document, newest first. Revisions do not include other agent configuration. Author details are redacted from public API responses.
|
|
2022
|
+
|
|
2023
|
+
| Direction | Type |
|
|
2024
|
+
| --- | --- |
|
|
2025
|
+
| Request | [`ContentRevisionListParams`](./src/resources/agents/content-revisions.ts) |
|
|
2026
|
+
| Response | [`ContentRevisionListResponse`](./src/resources/agents/content-revisions.ts) |
|
|
2027
|
+
|
|
2028
|
+
```ts
|
|
2029
|
+
const contentRevision = await client.agents.contentRevisions.list('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
|
|
2030
|
+
limit: 50,
|
|
2031
|
+
});
|
|
2032
|
+
```
|
|
2033
|
+
|
|
2034
|
+
#### Retrieve an agent instruction revision
|
|
2035
|
+
|
|
2036
|
+
Retrieve the instruction JSON document saved in one revision. Other agent configuration is not included. Author details are redacted from public API responses.
|
|
2037
|
+
|
|
2038
|
+
| Direction | Type |
|
|
2039
|
+
| --- | --- |
|
|
2040
|
+
| Request | [`ContentRevisionRetrieveParams`](./src/resources/agents/content-revisions.ts) |
|
|
2041
|
+
| Response | [`ContentRevisionRetrieveResponse`](./src/resources/agents/content-revisions.ts) |
|
|
2042
|
+
|
|
2043
|
+
```ts
|
|
2044
|
+
const contentRevision = await client.agents.contentRevisions.retrieve(1, {
|
|
2045
|
+
agentId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
2046
|
+
});
|
|
2047
|
+
```
|
|
2048
|
+
|
|
2049
|
+
#### Restore agent instructions
|
|
2050
|
+
|
|
2051
|
+
Restore a saved instruction JSON document and its mentioned integrations, without reverting other agent configuration. A changed document creates a new revision attributed to the caller. Supply the agent’s current contentVersion as expectedContentVersion; a concurrent instruction change returns 409.
|
|
2052
|
+
|
|
2053
|
+
| Direction | Type |
|
|
2054
|
+
| --- | --- |
|
|
2055
|
+
| Request | [`ContentRevisionRestoreParams`](./src/resources/agents/content-revisions.ts) |
|
|
2056
|
+
| Response | [`ContentRevisionRestoreResponse`](./src/resources/agents/content-revisions.ts) |
|
|
2057
|
+
|
|
2058
|
+
```ts
|
|
2059
|
+
const contentRevision = await client.agents.contentRevisions.restore(1, {
|
|
2060
|
+
agentId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
|
|
2061
|
+
expectedContentVersion: 1,
|
|
2062
|
+
});
|
|
2063
|
+
```
|
|
2064
|
+
|
|
2018
2065
|
## `Repositories`
|
|
2019
2066
|
|
|
2020
2067
|
### List repositories
|
|
2021
2068
|
|
|
2022
|
-
List
|
|
2069
|
+
List repositories in the authenticated organization. Defaults to enabled repositories.
|
|
2023
2070
|
|
|
2024
2071
|
| Direction | Type |
|
|
2025
2072
|
| --- | --- |
|
|
@@ -2029,6 +2076,7 @@ List enabled repositories in the authenticated organization.
|
|
|
2029
2076
|
```ts
|
|
2030
2077
|
const repository = await client.repositories.list({
|
|
2031
2078
|
limit: 50,
|
|
2079
|
+
enabled: 'all',
|
|
2032
2080
|
order: 'desc',
|
|
2033
2081
|
sort: 'pullRequests',
|
|
2034
2082
|
});
|
|
@@ -2036,7 +2084,7 @@ const repository = await client.repositories.list({
|
|
|
2036
2084
|
|
|
2037
2085
|
### Retrieve a repository
|
|
2038
2086
|
|
|
2039
|
-
Retrieve
|
|
2087
|
+
Retrieve a repository in the authenticated organization.
|
|
2040
2088
|
|
|
2041
2089
|
| Direction | Type |
|
|
2042
2090
|
| --- | --- |
|
|
@@ -2046,16 +2094,31 @@ Retrieve an enabled repository in the authenticated organization.
|
|
|
2046
2094
|
const repository = await client.repositories.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2047
2095
|
```
|
|
2048
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
|
+
|
|
2049
2112
|
## `Integrations`
|
|
2050
2113
|
|
|
2051
2114
|
### List integrations
|
|
2052
2115
|
|
|
2053
|
-
List integrations
|
|
2116
|
+
List integrations visible to the current organization or authenticated admin.
|
|
2054
2117
|
|
|
2055
2118
|
| Direction | Type |
|
|
2056
2119
|
| --- | --- |
|
|
2057
|
-
| Request | [`IntegrationListParams`](./src/resources/integrations.ts) |
|
|
2058
|
-
| Response | [`IntegrationListResponse`](./src/resources/integrations.ts) |
|
|
2120
|
+
| Request | [`IntegrationListParams`](./src/resources/integrations/integrations.ts) |
|
|
2121
|
+
| Response | [`IntegrationListResponse`](./src/resources/integrations/integrations.ts) |
|
|
2059
2122
|
|
|
2060
2123
|
```ts
|
|
2061
2124
|
const integration = await client.integrations.list({
|
|
@@ -2064,18 +2127,252 @@ const integration = await client.integrations.list({
|
|
|
2064
2127
|
});
|
|
2065
2128
|
```
|
|
2066
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
|
+
|
|
2067
2147
|
### Retrieve an integration
|
|
2068
2148
|
|
|
2069
|
-
Retrieve an integration
|
|
2149
|
+
Retrieve an integration and its configuration.
|
|
2070
2150
|
|
|
2071
2151
|
| Direction | Type |
|
|
2072
2152
|
| --- | --- |
|
|
2073
|
-
| Response | [`IntegrationRetrieveResponse`](./src/resources/integrations.ts) |
|
|
2153
|
+
| Response | [`IntegrationRetrieveResponse`](./src/resources/integrations/integrations.ts) |
|
|
2074
2154
|
|
|
2075
2155
|
```ts
|
|
2076
2156
|
const integration = await client.integrations.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
|
|
2077
2157
|
```
|
|
2078
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
|
+
|
|
2079
2376
|
## `Billing`
|
|
2080
2377
|
|
|
2081
2378
|
### Retrieve billing
|
|
@@ -2104,3 +2401,39 @@ const billing = await client.billing.listUsage({
|
|
|
2104
2401
|
limit: 50,
|
|
2105
2402
|
});
|
|
2106
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
|
+
```
|