diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8a527d2..a819f3b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.48.0" + ".": "1.49.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b4159e0..ceee35a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.49.0 (2025-01-14) + +Full Changelog: [v1.48.0...v1.49.0](https://github.com/julep-ai/node-sdk/compare/v1.48.0...v1.49.0) + +### Features + +* **api:** put/patch methods swap ([#182](https://github.com/julep-ai/node-sdk/issues/182)) ([8dbcbb2](https://github.com/julep-ai/node-sdk/commit/8dbcbb2069b2d9cbee466f00e6e18a8e4e2e8fd7)) + ## 1.48.0 (2025-01-13) Full Changelog: [v1.47.0...v1.48.0](https://github.com/julep-ai/node-sdk/compare/v1.47.0...v1.48.0) diff --git a/api.md b/api.md index 90b6792..31652d3 100644 --- a/api.md +++ b/api.md @@ -15,12 +15,12 @@ Types: Methods: - client.agents.create({ ...params }) -> ResourceCreated -- client.agents.update(agentId, { ...params }) -> ResourceUpdated +- client.agents.update(agentId, { ...params }) -> ResourceUpdated - client.agents.list({ ...params }) -> AgentsOffsetPagination - client.agents.delete(agentId) -> ResourceDeleted - client.agents.createOrUpdate(agentId, { ...params }) -> ResourceCreated - client.agents.get(agentId) -> Agent -- client.agents.patch(agentId, { ...params }) -> ResourceUpdated +- client.agents.reset(agentId, { ...params }) -> ResourceUpdated ## Tools @@ -31,10 +31,10 @@ Types: Methods: - client.agents.tools.create(agentId, { ...params }) -> ResourceCreated -- client.agents.tools.update(agentId, toolId, { ...params }) -> ResourceUpdated +- client.agents.tools.update(agentId, toolId, { ...params }) -> ResourceUpdated - client.agents.tools.list(agentId, { ...params }) -> ToolListResponsesOffsetPagination - client.agents.tools.delete(agentId, toolId) -> ResourceDeleted -- client.agents.tools.patch(agentId, toolId, { ...params }) -> ResourceUpdated +- client.agents.tools.reset(agentId, toolId, { ...params }) -> ResourceUpdated ## Docs @@ -77,14 +77,14 @@ Types: Methods: - client.sessions.create({ ...params }) -> ResourceCreated -- client.sessions.update(sessionId, { ...params }) -> ResourceUpdated +- client.sessions.update(sessionId, { ...params }) -> ResourceUpdated - client.sessions.list({ ...params }) -> SessionsOffsetPagination - client.sessions.delete(sessionId) -> ResourceDeleted - client.sessions.chat(sessionId, { ...params }) -> SessionChatResponse - client.sessions.createOrUpdate(sessionId, { ...params }) -> ResourceUpdated - client.sessions.get(sessionId) -> Session - client.sessions.history(sessionId) -> History -- client.sessions.patch(sessionId, { ...params }) -> ResourceUpdated +- client.sessions.reset(sessionId, { ...params }) -> ResourceUpdated # Users @@ -95,12 +95,12 @@ Types: Methods: - client.users.create({ ...params }) -> ResourceCreated -- client.users.update(userId, { ...params }) -> ResourceUpdated +- client.users.update(userId, { ...params }) -> ResourceUpdated - client.users.list({ ...params }) -> UsersOffsetPagination - client.users.delete(userId) -> ResourceDeleted - client.users.createOrUpdate(userId, { ...params }) -> ResourceCreated - client.users.get(userId) -> User -- client.users.patch(userId, { ...params }) -> ResourceUpdated +- client.users.reset(userId, { ...params }) -> ResourceUpdated ## Docs diff --git a/package.json b/package.json index 7b58e13..2cdd8f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@julep/sdk", - "version": "1.48.0", + "version": "1.49.0", "description": "The official TypeScript library for the Julep API", "author": "Julep ", "types": "dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index fe3a126..c5c7160 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,7 +24,7 @@ import { SessionCreateOrUpdateParams, SessionCreateParams, SessionListParams, - SessionPatchParams, + SessionResetParams, SessionUpdateParams, Sessions, SessionsOffsetPagination, @@ -42,7 +42,7 @@ import { AgentCreateOrUpdateParams, AgentCreateParams, AgentListParams, - AgentPatchParams, + AgentResetParams, AgentUpdateParams, Agents, AgentsOffsetPagination, @@ -62,7 +62,7 @@ import { UserCreateOrUpdateParams, UserCreateParams, UserListParams, - UserPatchParams, + UserResetParams, UserUpdateParams, Users, UsersOffsetPagination, @@ -287,7 +287,7 @@ export declare namespace Julep { type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, type AgentCreateOrUpdateParams as AgentCreateOrUpdateParams, - type AgentPatchParams as AgentPatchParams, + type AgentResetParams as AgentResetParams, }; export { Files as Files, type File as File, type FileCreateParams as FileCreateParams }; @@ -308,7 +308,7 @@ export declare namespace Julep { type SessionListParams as SessionListParams, type SessionChatParams as SessionChatParams, type SessionCreateOrUpdateParams as SessionCreateOrUpdateParams, - type SessionPatchParams as SessionPatchParams, + type SessionResetParams as SessionResetParams, }; export { @@ -319,7 +319,7 @@ export declare namespace Julep { type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserCreateOrUpdateParams as UserCreateOrUpdateParams, - type UserPatchParams as UserPatchParams, + type UserResetParams as UserResetParams, }; export { Jobs as Jobs, type JobStatus as JobStatus }; diff --git a/src/resources/agents/agents.ts b/src/resources/agents/agents.ts index dcc05a3..14c04ba 100644 --- a/src/resources/agents/agents.ts +++ b/src/resources/agents/agents.ts @@ -12,7 +12,7 @@ import { ToolListParams, ToolListResponse, ToolListResponsesOffsetPagination, - ToolPatchParams, + ToolResetParams, ToolUpdateParams, Tools, } from './tools'; @@ -30,14 +30,14 @@ export class Agents extends APIResource { } /** - * Update Agent + * Patch Agent */ update( agentId: string, body: AgentUpdateParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.put(`/agents/${agentId}`, { body, ...options }); + return this._client.patch(`/agents/${agentId}`, { body, ...options }); } /** @@ -84,14 +84,14 @@ export class Agents extends APIResource { } /** - * Patch Agent + * Update Agent */ - patch( + reset( agentId: string, - body: AgentPatchParams, + body: AgentResetParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.patch(`/agents/${agentId}`, { body, ...options }); + return this._client.put(`/agents/${agentId}`, { body, ...options }); } } @@ -184,8 +184,6 @@ export namespace AgentCreateParams { } export interface AgentUpdateParams { - name: string; - about?: string; canonical_name?: string | null; @@ -200,6 +198,8 @@ export interface AgentUpdateParams { metadata?: unknown | null; model?: string; + + name?: string | null; } export namespace AgentUpdateParams { @@ -271,7 +271,9 @@ export namespace AgentCreateOrUpdateParams { } } -export interface AgentPatchParams { +export interface AgentResetParams { + name: string; + about?: string; canonical_name?: string | null; @@ -279,18 +281,16 @@ export interface AgentPatchParams { /** * Default settings for the chat session (also used by the agent) */ - default_settings?: AgentPatchParams.DefaultSettings | null; + default_settings?: AgentResetParams.DefaultSettings | null; instructions?: string | Array; metadata?: unknown | null; model?: string; - - name?: string | null; } -export namespace AgentPatchParams { +export namespace AgentResetParams { /** * Default settings for the chat session (also used by the agent) */ @@ -324,7 +324,7 @@ export declare namespace Agents { type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, type AgentCreateOrUpdateParams as AgentCreateOrUpdateParams, - type AgentPatchParams as AgentPatchParams, + type AgentResetParams as AgentResetParams, }; export { @@ -334,7 +334,7 @@ export declare namespace Agents { type ToolCreateParams as ToolCreateParams, type ToolUpdateParams as ToolUpdateParams, type ToolListParams as ToolListParams, - type ToolPatchParams as ToolPatchParams, + type ToolResetParams as ToolResetParams, }; export { diff --git a/src/resources/agents/index.ts b/src/resources/agents/index.ts index 603671b..1bd3516 100644 --- a/src/resources/agents/index.ts +++ b/src/resources/agents/index.ts @@ -8,7 +8,7 @@ export { type AgentUpdateParams, type AgentListParams, type AgentCreateOrUpdateParams, - type AgentPatchParams, + type AgentResetParams, } from './agents'; export { Docs, @@ -24,5 +24,5 @@ export { type ToolCreateParams, type ToolUpdateParams, type ToolListParams, - type ToolPatchParams, + type ToolResetParams, } from './tools'; diff --git a/src/resources/agents/tools.ts b/src/resources/agents/tools.ts index 36eb9c8..51ff822 100644 --- a/src/resources/agents/tools.ts +++ b/src/resources/agents/tools.ts @@ -19,7 +19,7 @@ export class Tools extends APIResource { } /** - * Update Agent Tool + * Patch Agent Tool */ update( agentId: string, @@ -27,7 +27,7 @@ export class Tools extends APIResource { body: ToolUpdateParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.put(`/agents/${agentId}/tools/${toolId}`, { body, ...options }); + return this._client.patch(`/agents/${agentId}/tools/${toolId}`, { body, ...options }); } /** @@ -68,15 +68,15 @@ export class Tools extends APIResource { } /** - * Patch Agent Tool + * Update Agent Tool */ - patch( + reset( agentId: string, toolId: string, - body: ToolPatchParams, + body: ToolResetParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.patch(`/agents/${agentId}/tools/${toolId}`, { body, ...options }); + return this._client.put(`/agents/${agentId}/tools/${toolId}`, { body, ...options }); } } @@ -1893,17 +1893,6 @@ export namespace ToolCreateParams { } export interface ToolUpdateParams { - name: string; - - type: - | 'function' - | 'integration' - | 'system' - | 'api_call' - | 'computer_20241022' - | 'text_editor_20241022' - | 'bash_20241022'; - /** * API call definition */ @@ -1927,34 +1916,46 @@ export interface ToolUpdateParams { * Brave integration definition */ integration?: - | ToolUpdateParams.DummyIntegrationDef - | ToolUpdateParams.BraveIntegrationDef - | ToolUpdateParams.EmailIntegrationDef - | ToolUpdateParams.SpiderIntegrationDefInput - | ToolUpdateParams.WikipediaIntegrationDef - | ToolUpdateParams.WeatherIntegrationDef - | ToolUpdateParams.BrowserbaseContextIntegrationDef - | ToolUpdateParams.BrowserbaseExtensionIntegrationDef - | ToolUpdateParams.BrowserbaseListSessionsIntegrationDef - | ToolUpdateParams.BrowserbaseCreateSessionIntegrationDef - | ToolUpdateParams.BrowserbaseGetSessionIntegrationDef - | ToolUpdateParams.BrowserbaseCompleteSessionIntegrationDef - | ToolUpdateParams.BrowserbaseGetSessionLiveURLsIntegrationDef - | ToolUpdateParams.BrowserbaseGetSessionConnectURLIntegrationDef - | ToolUpdateParams.RemoteBrowserIntegrationDef - | ToolUpdateParams.LlamaParseIntegrationDef - | ToolUpdateParams.FfmpegIntegrationDef - | ToolUpdateParams.CloudinaryUploadIntegrationDef - | ToolUpdateParams.CloudinaryEditIntegrationDef - | ToolUpdateParams.ArxivIntegrationDef + | ToolUpdateParams.DummyIntegrationDefUpdate + | ToolUpdateParams.BraveIntegrationDefUpdate + | ToolUpdateParams.EmailIntegrationDefUpdate + | ToolUpdateParams.SpiderIntegrationDefUpdate + | ToolUpdateParams.WikipediaIntegrationDefUpdate + | ToolUpdateParams.WeatherIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseContextIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseExtensionIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseListSessionsIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseCreateSessionIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseGetSessionIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseCompleteSessionIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseGetSessionLiveURLsIntegrationDefUpdate + | ToolUpdateParams.BrowserbaseGetSessionConnectURLIntegrationDefUpdate + | ToolUpdateParams.RemoteBrowserIntegrationDefUpdate + | ToolUpdateParams.LlamaParseIntegrationDefUpdate + | ToolUpdateParams.FfmpegIntegrationDefUpdate + | ToolUpdateParams.CloudinaryUploadIntegrationDefUpdate + | ToolUpdateParams.CloudinaryEditIntegrationDefUpdate + | ToolUpdateParams.ArxivIntegrationDefUpdate | null; + name?: string | null; + /** * System definition */ system?: ToolUpdateParams.System | null; text_editor_20241022?: ToolUpdateParams.TextEditor20241022 | null; + + type?: + | 'function' + | 'integration' + | 'system' + | 'api_call' + | 'computer_20241022' + | 'text_editor_20241022' + | 'bash_20241022' + | null; } export namespace ToolUpdateParams { @@ -1962,10 +1963,6 @@ export namespace ToolUpdateParams { * API call definition */ export interface APICall { - method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE'; - - url: string; - content?: string | null; cookies?: Record | null; @@ -1980,11 +1977,15 @@ export namespace ToolUpdateParams { json?: unknown | null; + method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE' | null; + params?: string | unknown | null; schema?: unknown | null; timeout?: number | null; + + url?: string | null; } export interface Bash20241022 { @@ -2019,7 +2020,7 @@ export namespace ToolUpdateParams { parameters?: unknown | null; } - export interface DummyIntegrationDef { + export interface DummyIntegrationDefUpdate { arguments?: unknown; method?: string | null; @@ -2032,11 +2033,11 @@ export namespace ToolUpdateParams { /** * Brave integration definition */ - export interface BraveIntegrationDef { + export interface BraveIntegrationDefUpdate { /** * Arguments for Brave Search */ - arguments?: BraveIntegrationDef.Arguments | null; + arguments?: BraveIntegrationDefUpdate.Arguments | null; method?: string | null; @@ -2045,33 +2046,33 @@ export namespace ToolUpdateParams { /** * Integration definition for Brave Search */ - setup?: BraveIntegrationDef.Setup | null; + setup?: BraveIntegrationDefUpdate.Setup | null; } - export namespace BraveIntegrationDef { + export namespace BraveIntegrationDefUpdate { /** * Arguments for Brave Search */ export interface Arguments { - query: string; + query?: string | null; } /** * Integration definition for Brave Search */ export interface Setup { - api_key: string; + api_key?: string | null; } } /** * Email integration definition */ - export interface EmailIntegrationDef { + export interface EmailIntegrationDefUpdate { /** * Arguments for Email sending */ - arguments?: EmailIntegrationDef.Arguments | null; + arguments?: EmailIntegrationDefUpdate.Arguments | null; method?: string | null; @@ -2080,45 +2081,45 @@ export namespace ToolUpdateParams { /** * Setup parameters for Email integration */ - setup?: EmailIntegrationDef.Setup | null; + setup?: EmailIntegrationDefUpdate.Setup | null; } - export namespace EmailIntegrationDef { + export namespace EmailIntegrationDefUpdate { /** * Arguments for Email sending */ export interface Arguments { - body: string; + body?: string | null; - from: string; + from?: string | null; - subject: string; + subject?: string | null; - to: string; + to?: string | null; } /** * Setup parameters for Email integration */ export interface Setup { - host: string; + host?: string | null; - password: string; + password?: string | null; - port: number; + port?: number | null; - user: string; + user?: string | null; } } /** * Spider integration definition */ - export interface SpiderIntegrationDefInput { + export interface SpiderIntegrationDefUpdate { /** * Arguments for Spider integration */ - arguments?: SpiderIntegrationDefInput.Arguments | null; + arguments?: SpiderIntegrationDefUpdate.Arguments | null; method?: 'crawl' | 'links' | 'screenshot' | 'search' | null; @@ -2127,37 +2128,37 @@ export namespace ToolUpdateParams { /** * Setup parameters for Spider integration */ - setup?: SpiderIntegrationDefInput.Setup | null; + setup?: SpiderIntegrationDefUpdate.Setup | null; } - export namespace SpiderIntegrationDefInput { + export namespace SpiderIntegrationDefUpdate { /** * Arguments for Spider integration */ export interface Arguments { - url: string; - content_type?: 'application/json' | 'text/csv' | 'application/xml' | 'application/jsonl'; params?: unknown | null; + + url?: string | null; } /** * Setup parameters for Spider integration */ export interface Setup { - spider_api_key: string; + spider_api_key?: string | null; } } /** * Wikipedia integration definition */ - export interface WikipediaIntegrationDef { + export interface WikipediaIntegrationDefUpdate { /** * Arguments for Wikipedia Search */ - arguments?: WikipediaIntegrationDef.Arguments | null; + arguments?: WikipediaIntegrationDefUpdate.Arguments | null; method?: string | null; @@ -2166,25 +2167,25 @@ export namespace ToolUpdateParams { setup?: unknown; } - export namespace WikipediaIntegrationDef { + export namespace WikipediaIntegrationDefUpdate { /** * Arguments for Wikipedia Search */ export interface Arguments { - query: string; - load_max_docs?: number; + + query?: string | null; } } /** * Weather integration definition */ - export interface WeatherIntegrationDef { + export interface WeatherIntegrationDefUpdate { /** * Arguments for Weather */ - arguments?: WeatherIntegrationDef.Arguments | null; + arguments?: WeatherIntegrationDefUpdate.Arguments | null; method?: string | null; @@ -2193,30 +2194,30 @@ export namespace ToolUpdateParams { /** * Integration definition for Weather */ - setup?: WeatherIntegrationDef.Setup | null; + setup?: WeatherIntegrationDefUpdate.Setup | null; } - export namespace WeatherIntegrationDef { + export namespace WeatherIntegrationDefUpdate { /** * Arguments for Weather */ export interface Arguments { - location: string; + location?: string | null; } /** * Integration definition for Weather */ export interface Setup { - openweathermap_api_key: string; + openweathermap_api_key?: string | null; } } /** * browserbase context provider */ - export interface BrowserbaseContextIntegrationDef { - arguments?: BrowserbaseContextIntegrationDef.Arguments | null; + export interface BrowserbaseContextIntegrationDefUpdate { + arguments?: BrowserbaseContextIntegrationDefUpdate.Arguments | null; method?: 'create_context'; @@ -2225,33 +2226,33 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseContextIntegrationDef.Setup | null; + setup?: BrowserbaseContextIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseContextIntegrationDef { + export namespace BrowserbaseContextIntegrationDefUpdate { export interface Arguments { - projectId: string; + projectId?: string | null; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * browserbase extension provider */ - export interface BrowserbaseExtensionIntegrationDef { - arguments?: BrowserbaseExtensionIntegrationDef.Arguments | null; + export interface BrowserbaseExtensionIntegrationDefUpdate { + arguments?: BrowserbaseExtensionIntegrationDefUpdate.Arguments | null; method?: 'install_extension_from_github' | null; @@ -2260,35 +2261,35 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseExtensionIntegrationDef.Setup | null; + setup?: BrowserbaseExtensionIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseExtensionIntegrationDef { + export namespace BrowserbaseExtensionIntegrationDefUpdate { export interface Arguments { - repositoryName: string; - ref?: string | null; + + repositoryName?: string | null; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * browserbase list sessions integration definition */ - export interface BrowserbaseListSessionsIntegrationDef { - arguments?: BrowserbaseListSessionsIntegrationDef.Arguments | null; + export interface BrowserbaseListSessionsIntegrationDefUpdate { + arguments?: BrowserbaseListSessionsIntegrationDefUpdate.Arguments | null; method?: 'list_sessions'; @@ -2297,10 +2298,10 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseListSessionsIntegrationDef.Setup | null; + setup?: BrowserbaseListSessionsIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseListSessionsIntegrationDef { + export namespace BrowserbaseListSessionsIntegrationDefUpdate { export interface Arguments { status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED' | null; } @@ -2309,21 +2310,21 @@ export namespace ToolUpdateParams { * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * browserbase create session integration definition */ - export interface BrowserbaseCreateSessionIntegrationDef { - arguments?: BrowserbaseCreateSessionIntegrationDef.Arguments | null; + export interface BrowserbaseCreateSessionIntegrationDefUpdate { + arguments?: BrowserbaseCreateSessionIntegrationDefUpdate.Arguments | null; method?: 'create_session'; @@ -2332,10 +2333,10 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseCreateSessionIntegrationDef.Setup | null; + setup?: BrowserbaseCreateSessionIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseCreateSessionIntegrationDef { + export namespace BrowserbaseCreateSessionIntegrationDefUpdate { export interface Arguments { browserSettings?: unknown; @@ -2354,21 +2355,21 @@ export namespace ToolUpdateParams { * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * browserbase get session integration definition */ - export interface BrowserbaseGetSessionIntegrationDef { - arguments?: BrowserbaseGetSessionIntegrationDef.Arguments | null; + export interface BrowserbaseGetSessionIntegrationDefUpdate { + arguments?: BrowserbaseGetSessionIntegrationDefUpdate.Arguments | null; method?: 'get_session'; @@ -2377,33 +2378,33 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseGetSessionIntegrationDef.Setup | null; + setup?: BrowserbaseGetSessionIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseGetSessionIntegrationDef { + export namespace BrowserbaseGetSessionIntegrationDefUpdate { export interface Arguments { - id: string; + id?: string | null; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * browserbase complete session integration definition */ - export interface BrowserbaseCompleteSessionIntegrationDef { - arguments?: BrowserbaseCompleteSessionIntegrationDef.Arguments | null; + export interface BrowserbaseCompleteSessionIntegrationDefUpdate { + arguments?: BrowserbaseCompleteSessionIntegrationDefUpdate.Arguments | null; method?: 'complete_session'; @@ -2412,12 +2413,12 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseCompleteSessionIntegrationDef.Setup | null; + setup?: BrowserbaseCompleteSessionIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseCompleteSessionIntegrationDef { + export namespace BrowserbaseCompleteSessionIntegrationDefUpdate { export interface Arguments { - id: string; + id?: string | null; status?: 'REQUEST_RELEASE'; } @@ -2426,21 +2427,21 @@ export namespace ToolUpdateParams { * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * browserbase get session live urls integration definition */ - export interface BrowserbaseGetSessionLiveURLsIntegrationDef { - arguments?: BrowserbaseGetSessionLiveURLsIntegrationDef.Arguments | null; + export interface BrowserbaseGetSessionLiveURLsIntegrationDefUpdate { + arguments?: BrowserbaseGetSessionLiveURLsIntegrationDefUpdate.Arguments | null; method?: 'get_live_urls'; @@ -2449,33 +2450,33 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseGetSessionLiveURLsIntegrationDef.Setup | null; + setup?: BrowserbaseGetSessionLiveURLsIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseGetSessionLiveURLsIntegrationDef { + export namespace BrowserbaseGetSessionLiveURLsIntegrationDefUpdate { export interface Arguments { - id: string; + id?: string | null; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * browserbase get session connect url integration definition */ - export interface BrowserbaseGetSessionConnectURLIntegrationDef { - arguments?: BrowserbaseGetSessionConnectURLIntegrationDef.Arguments | null; + export interface BrowserbaseGetSessionConnectURLIntegrationDefUpdate { + arguments?: BrowserbaseGetSessionConnectURLIntegrationDefUpdate.Arguments | null; method?: 'get_connect_url'; @@ -2484,64 +2485,53 @@ export namespace ToolUpdateParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseGetSessionConnectURLIntegrationDef.Setup | null; + setup?: BrowserbaseGetSessionConnectURLIntegrationDefUpdate.Setup | null; } - export namespace BrowserbaseGetSessionConnectURLIntegrationDef { + export namespace BrowserbaseGetSessionConnectURLIntegrationDefUpdate { export interface Arguments { - id: string; + id?: string | null; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key: string; - - project_id: string; + api_key?: string | null; api_url?: string | null; connect_url?: string | null; + + project_id?: string | null; } } /** * The integration definition for the remote browser */ - export interface RemoteBrowserIntegrationDef { - /** - * The setup parameters for the remote browser - */ - setup: RemoteBrowserIntegrationDef.Setup; - + export interface RemoteBrowserIntegrationDefUpdate { /** * The arguments for the remote browser */ - arguments?: RemoteBrowserIntegrationDef.Arguments | null; + arguments?: RemoteBrowserIntegrationDefUpdate.Arguments | null; method?: 'perform_action'; provider?: 'remote_browser'; - } - export namespace RemoteBrowserIntegrationDef { /** * The setup parameters for the remote browser */ - export interface Setup { - connect_url?: string | null; - - height?: number | null; - - width?: number | null; - } + setup?: RemoteBrowserIntegrationDefUpdate.Setup | null; + } + export namespace RemoteBrowserIntegrationDefUpdate { /** * The arguments for the remote browser */ export interface Arguments { - action: + action?: | 'key' | 'type' | 'mouse_move' @@ -2553,7 +2543,8 @@ export namespace ToolUpdateParams { | 'screenshot' | 'cursor_position' | 'navigate' - | 'refresh'; + | 'refresh' + | null; connect_url?: string | null; @@ -2561,16 +2552,27 @@ export namespace ToolUpdateParams { text?: string | null; } + + /** + * The setup parameters for the remote browser + */ + export interface Setup { + connect_url?: string | null; + + height?: number | null; + + width?: number | null; + } } /** * LlamaParse integration definition */ - export interface LlamaParseIntegrationDef { + export interface LlamaParseIntegrationDefUpdate { /** * Arguments for LlamaParse integration */ - arguments?: LlamaParseIntegrationDef.Arguments | null; + arguments?: LlamaParseIntegrationDefUpdate.Arguments | null; method?: string | null; @@ -2579,18 +2581,18 @@ export namespace ToolUpdateParams { /** * Setup parameters for LlamaParse integration */ - setup?: LlamaParseIntegrationDef.Setup | null; + setup?: LlamaParseIntegrationDefUpdate.Setup | null; } - export namespace LlamaParseIntegrationDef { + export namespace LlamaParseIntegrationDefUpdate { /** * Arguments for LlamaParse integration */ export interface Arguments { - file: string | Array; - base64?: boolean; + file?: string | Array | null; + filename?: string | null; params?: unknown | null; @@ -2600,7 +2602,7 @@ export namespace ToolUpdateParams { * Setup parameters for LlamaParse integration */ export interface Setup { - llamaparse_api_key: string; + llamaparse_api_key?: string | null; params?: unknown | null; } @@ -2609,11 +2611,11 @@ export namespace ToolUpdateParams { /** * Ffmpeg integration definition */ - export interface FfmpegIntegrationDef { + export interface FfmpegIntegrationDefUpdate { /** * Arguments for Ffmpeg CMD */ - arguments?: FfmpegIntegrationDef.Arguments | null; + arguments?: FfmpegIntegrationDefUpdate.Arguments | null; method?: string | null; @@ -2622,12 +2624,12 @@ export namespace ToolUpdateParams { setup?: unknown; } - export namespace FfmpegIntegrationDef { + export namespace FfmpegIntegrationDefUpdate { /** * Arguments for Ffmpeg CMD */ export interface Arguments { - cmd: string; + cmd?: string | null; file?: string | null; } @@ -2636,11 +2638,11 @@ export namespace ToolUpdateParams { /** * Cloudinary upload integration definition */ - export interface CloudinaryUploadIntegrationDef { + export interface CloudinaryUploadIntegrationDefUpdate { /** * Arguments for Cloudinary media upload */ - arguments?: CloudinaryUploadIntegrationDef.Arguments | null; + arguments?: CloudinaryUploadIntegrationDefUpdate.Arguments | null; method?: 'media_upload'; @@ -2649,15 +2651,15 @@ export namespace ToolUpdateParams { /** * Setup parameters for Cloudinary integration */ - setup?: CloudinaryUploadIntegrationDef.Setup | null; + setup?: CloudinaryUploadIntegrationDefUpdate.Setup | null; } - export namespace CloudinaryUploadIntegrationDef { + export namespace CloudinaryUploadIntegrationDefUpdate { /** * Arguments for Cloudinary media upload */ export interface Arguments { - file: string; + file?: string | null; public_id?: string | null; @@ -2670,11 +2672,11 @@ export namespace ToolUpdateParams { * Setup parameters for Cloudinary integration */ export interface Setup { - cloudinary_api_key: string; + cloudinary_api_key?: string | null; - cloudinary_api_secret: string; + cloudinary_api_secret?: string | null; - cloudinary_cloud_name: string; + cloudinary_cloud_name?: string | null; params?: unknown | null; } @@ -2683,11 +2685,11 @@ export namespace ToolUpdateParams { /** * Cloudinary edit integration definition */ - export interface CloudinaryEditIntegrationDef { + export interface CloudinaryEditIntegrationDefUpdate { /** * Arguments for Cloudinary media edit */ - arguments?: CloudinaryEditIntegrationDef.Arguments | null; + arguments?: CloudinaryEditIntegrationDefUpdate.Arguments | null; method?: 'media_edit'; @@ -2696,30 +2698,30 @@ export namespace ToolUpdateParams { /** * Setup parameters for Cloudinary integration */ - setup?: CloudinaryEditIntegrationDef.Setup | null; + setup?: CloudinaryEditIntegrationDefUpdate.Setup | null; } - export namespace CloudinaryEditIntegrationDef { + export namespace CloudinaryEditIntegrationDefUpdate { /** * Arguments for Cloudinary media edit */ export interface Arguments { - public_id: string; - - transformation: Array; + public_id?: string | null; return_base64?: boolean; + + transformation?: Array | null; } /** * Setup parameters for Cloudinary integration */ export interface Setup { - cloudinary_api_key: string; + cloudinary_api_key?: string | null; - cloudinary_api_secret: string; + cloudinary_api_secret?: string | null; - cloudinary_cloud_name: string; + cloudinary_cloud_name?: string | null; params?: unknown | null; } @@ -2728,11 +2730,11 @@ export namespace ToolUpdateParams { /** * Arxiv integration definition */ - export interface ArxivIntegrationDef { + export interface ArxivIntegrationDefUpdate { /** * Arguments for Arxiv Search */ - arguments?: ArxivIntegrationDef.Arguments | null; + arguments?: ArxivIntegrationDefUpdate.Arguments | null; method?: string | null; @@ -2741,19 +2743,19 @@ export namespace ToolUpdateParams { setup?: unknown; } - export namespace ArxivIntegrationDef { + export namespace ArxivIntegrationDefUpdate { /** * Arguments for Arxiv Search */ export interface Arguments { - query: string; - download_pdf?: boolean; id_list?: Array | null; max_results?: number; + query?: string | null; + sort_by?: 'relevance' | 'lastUpdatedDate' | 'submittedDate'; sort_order?: 'ascending' | 'descending'; @@ -2764,7 +2766,9 @@ export namespace ToolUpdateParams { * System definition */ export interface System { - operation: + arguments?: unknown | null; + + operation?: | 'create' | 'update' | 'patch' @@ -2776,11 +2780,10 @@ export namespace ToolUpdateParams { | 'history' | 'delete' | 'get' - | 'list'; - - resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + | 'list' + | null; - arguments?: unknown | null; + resource?: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job' | null; resource_id?: string | null; @@ -2800,77 +2803,80 @@ export interface ToolListParams extends OffsetPaginationParams { sort_by?: 'created_at' | 'updated_at'; } -export interface ToolPatchParams { +export interface ToolResetParams { + name: string; + + type: + | 'function' + | 'integration' + | 'system' + | 'api_call' + | 'computer_20241022' + | 'text_editor_20241022' + | 'bash_20241022'; + /** * API call definition */ - api_call?: ToolPatchParams.APICall | null; + api_call?: ToolResetParams.APICall | null; - bash_20241022?: ToolPatchParams.Bash20241022 | null; + bash_20241022?: ToolResetParams.Bash20241022 | null; /** * Anthropic new tools */ - computer_20241022?: ToolPatchParams.Computer20241022 | null; + computer_20241022?: ToolResetParams.Computer20241022 | null; description?: string | null; /** * Function definition */ - function?: ToolPatchParams.Function | null; + function?: ToolResetParams.Function | null; /** * Brave integration definition */ integration?: - | ToolPatchParams.DummyIntegrationDefUpdate - | ToolPatchParams.BraveIntegrationDefUpdate - | ToolPatchParams.EmailIntegrationDefUpdate - | ToolPatchParams.SpiderIntegrationDefUpdate - | ToolPatchParams.WikipediaIntegrationDefUpdate - | ToolPatchParams.WeatherIntegrationDefUpdate - | ToolPatchParams.BrowserbaseContextIntegrationDefUpdate - | ToolPatchParams.BrowserbaseExtensionIntegrationDefUpdate - | ToolPatchParams.BrowserbaseListSessionsIntegrationDefUpdate - | ToolPatchParams.BrowserbaseCreateSessionIntegrationDefUpdate - | ToolPatchParams.BrowserbaseGetSessionIntegrationDefUpdate - | ToolPatchParams.BrowserbaseCompleteSessionIntegrationDefUpdate - | ToolPatchParams.BrowserbaseGetSessionLiveURLsIntegrationDefUpdate - | ToolPatchParams.BrowserbaseGetSessionConnectURLIntegrationDefUpdate - | ToolPatchParams.RemoteBrowserIntegrationDefUpdate - | ToolPatchParams.LlamaParseIntegrationDefUpdate - | ToolPatchParams.FfmpegIntegrationDefUpdate - | ToolPatchParams.CloudinaryUploadIntegrationDefUpdate - | ToolPatchParams.CloudinaryEditIntegrationDefUpdate - | ToolPatchParams.ArxivIntegrationDefUpdate + | ToolResetParams.DummyIntegrationDef + | ToolResetParams.BraveIntegrationDef + | ToolResetParams.EmailIntegrationDef + | ToolResetParams.SpiderIntegrationDefInput + | ToolResetParams.WikipediaIntegrationDef + | ToolResetParams.WeatherIntegrationDef + | ToolResetParams.BrowserbaseContextIntegrationDef + | ToolResetParams.BrowserbaseExtensionIntegrationDef + | ToolResetParams.BrowserbaseListSessionsIntegrationDef + | ToolResetParams.BrowserbaseCreateSessionIntegrationDef + | ToolResetParams.BrowserbaseGetSessionIntegrationDef + | ToolResetParams.BrowserbaseCompleteSessionIntegrationDef + | ToolResetParams.BrowserbaseGetSessionLiveURLsIntegrationDef + | ToolResetParams.BrowserbaseGetSessionConnectURLIntegrationDef + | ToolResetParams.RemoteBrowserIntegrationDef + | ToolResetParams.LlamaParseIntegrationDef + | ToolResetParams.FfmpegIntegrationDef + | ToolResetParams.CloudinaryUploadIntegrationDef + | ToolResetParams.CloudinaryEditIntegrationDef + | ToolResetParams.ArxivIntegrationDef | null; - name?: string | null; - /** * System definition */ - system?: ToolPatchParams.System | null; + system?: ToolResetParams.System | null; - text_editor_20241022?: ToolPatchParams.TextEditor20241022 | null; - - type?: - | 'function' - | 'integration' - | 'system' - | 'api_call' - | 'computer_20241022' - | 'text_editor_20241022' - | 'bash_20241022' - | null; + text_editor_20241022?: ToolResetParams.TextEditor20241022 | null; } -export namespace ToolPatchParams { +export namespace ToolResetParams { /** * API call definition */ export interface APICall { + method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE'; + + url: string; + content?: string | null; cookies?: Record | null; @@ -2885,15 +2891,11 @@ export namespace ToolPatchParams { json?: unknown | null; - method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE' | null; - params?: string | unknown | null; schema?: unknown | null; timeout?: number | null; - - url?: string | null; } export interface Bash20241022 { @@ -2928,7 +2930,7 @@ export namespace ToolPatchParams { parameters?: unknown | null; } - export interface DummyIntegrationDefUpdate { + export interface DummyIntegrationDef { arguments?: unknown; method?: string | null; @@ -2941,11 +2943,11 @@ export namespace ToolPatchParams { /** * Brave integration definition */ - export interface BraveIntegrationDefUpdate { + export interface BraveIntegrationDef { /** * Arguments for Brave Search */ - arguments?: BraveIntegrationDefUpdate.Arguments | null; + arguments?: BraveIntegrationDef.Arguments | null; method?: string | null; @@ -2954,33 +2956,33 @@ export namespace ToolPatchParams { /** * Integration definition for Brave Search */ - setup?: BraveIntegrationDefUpdate.Setup | null; + setup?: BraveIntegrationDef.Setup | null; } - export namespace BraveIntegrationDefUpdate { + export namespace BraveIntegrationDef { /** * Arguments for Brave Search */ export interface Arguments { - query?: string | null; + query: string; } /** * Integration definition for Brave Search */ export interface Setup { - api_key?: string | null; + api_key: string; } } /** * Email integration definition */ - export interface EmailIntegrationDefUpdate { + export interface EmailIntegrationDef { /** * Arguments for Email sending */ - arguments?: EmailIntegrationDefUpdate.Arguments | null; + arguments?: EmailIntegrationDef.Arguments | null; method?: string | null; @@ -2989,45 +2991,45 @@ export namespace ToolPatchParams { /** * Setup parameters for Email integration */ - setup?: EmailIntegrationDefUpdate.Setup | null; + setup?: EmailIntegrationDef.Setup | null; } - export namespace EmailIntegrationDefUpdate { + export namespace EmailIntegrationDef { /** * Arguments for Email sending */ export interface Arguments { - body?: string | null; + body: string; - from?: string | null; + from: string; - subject?: string | null; + subject: string; - to?: string | null; + to: string; } /** * Setup parameters for Email integration */ export interface Setup { - host?: string | null; + host: string; - password?: string | null; + password: string; - port?: number | null; + port: number; - user?: string | null; + user: string; } } /** * Spider integration definition */ - export interface SpiderIntegrationDefUpdate { + export interface SpiderIntegrationDefInput { /** * Arguments for Spider integration */ - arguments?: SpiderIntegrationDefUpdate.Arguments | null; + arguments?: SpiderIntegrationDefInput.Arguments | null; method?: 'crawl' | 'links' | 'screenshot' | 'search' | null; @@ -3036,37 +3038,37 @@ export namespace ToolPatchParams { /** * Setup parameters for Spider integration */ - setup?: SpiderIntegrationDefUpdate.Setup | null; + setup?: SpiderIntegrationDefInput.Setup | null; } - export namespace SpiderIntegrationDefUpdate { + export namespace SpiderIntegrationDefInput { /** * Arguments for Spider integration */ export interface Arguments { + url: string; + content_type?: 'application/json' | 'text/csv' | 'application/xml' | 'application/jsonl'; params?: unknown | null; - - url?: string | null; } /** * Setup parameters for Spider integration */ export interface Setup { - spider_api_key?: string | null; + spider_api_key: string; } } /** * Wikipedia integration definition */ - export interface WikipediaIntegrationDefUpdate { + export interface WikipediaIntegrationDef { /** * Arguments for Wikipedia Search */ - arguments?: WikipediaIntegrationDefUpdate.Arguments | null; + arguments?: WikipediaIntegrationDef.Arguments | null; method?: string | null; @@ -3075,25 +3077,25 @@ export namespace ToolPatchParams { setup?: unknown; } - export namespace WikipediaIntegrationDefUpdate { + export namespace WikipediaIntegrationDef { /** * Arguments for Wikipedia Search */ export interface Arguments { - load_max_docs?: number; + query: string; - query?: string | null; + load_max_docs?: number; } } /** * Weather integration definition */ - export interface WeatherIntegrationDefUpdate { + export interface WeatherIntegrationDef { /** * Arguments for Weather */ - arguments?: WeatherIntegrationDefUpdate.Arguments | null; + arguments?: WeatherIntegrationDef.Arguments | null; method?: string | null; @@ -3102,30 +3104,30 @@ export namespace ToolPatchParams { /** * Integration definition for Weather */ - setup?: WeatherIntegrationDefUpdate.Setup | null; + setup?: WeatherIntegrationDef.Setup | null; } - export namespace WeatherIntegrationDefUpdate { + export namespace WeatherIntegrationDef { /** * Arguments for Weather */ export interface Arguments { - location?: string | null; + location: string; } /** * Integration definition for Weather */ export interface Setup { - openweathermap_api_key?: string | null; + openweathermap_api_key: string; } } /** * browserbase context provider */ - export interface BrowserbaseContextIntegrationDefUpdate { - arguments?: BrowserbaseContextIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseContextIntegrationDef { + arguments?: BrowserbaseContextIntegrationDef.Arguments | null; method?: 'create_context'; @@ -3134,33 +3136,33 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseContextIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseContextIntegrationDef.Setup | null; } - export namespace BrowserbaseContextIntegrationDefUpdate { + export namespace BrowserbaseContextIntegrationDef { export interface Arguments { - projectId?: string | null; + projectId: string; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * browserbase extension provider */ - export interface BrowserbaseExtensionIntegrationDefUpdate { - arguments?: BrowserbaseExtensionIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseExtensionIntegrationDef { + arguments?: BrowserbaseExtensionIntegrationDef.Arguments | null; method?: 'install_extension_from_github' | null; @@ -3169,35 +3171,35 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseExtensionIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseExtensionIntegrationDef.Setup | null; } - export namespace BrowserbaseExtensionIntegrationDefUpdate { + export namespace BrowserbaseExtensionIntegrationDef { export interface Arguments { - ref?: string | null; + repositoryName: string; - repositoryName?: string | null; + ref?: string | null; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * browserbase list sessions integration definition */ - export interface BrowserbaseListSessionsIntegrationDefUpdate { - arguments?: BrowserbaseListSessionsIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseListSessionsIntegrationDef { + arguments?: BrowserbaseListSessionsIntegrationDef.Arguments | null; method?: 'list_sessions'; @@ -3206,10 +3208,10 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseListSessionsIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseListSessionsIntegrationDef.Setup | null; } - export namespace BrowserbaseListSessionsIntegrationDefUpdate { + export namespace BrowserbaseListSessionsIntegrationDef { export interface Arguments { status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED' | null; } @@ -3218,21 +3220,21 @@ export namespace ToolPatchParams { * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * browserbase create session integration definition */ - export interface BrowserbaseCreateSessionIntegrationDefUpdate { - arguments?: BrowserbaseCreateSessionIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseCreateSessionIntegrationDef { + arguments?: BrowserbaseCreateSessionIntegrationDef.Arguments | null; method?: 'create_session'; @@ -3241,10 +3243,10 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseCreateSessionIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseCreateSessionIntegrationDef.Setup | null; } - export namespace BrowserbaseCreateSessionIntegrationDefUpdate { + export namespace BrowserbaseCreateSessionIntegrationDef { export interface Arguments { browserSettings?: unknown; @@ -3263,21 +3265,21 @@ export namespace ToolPatchParams { * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * browserbase get session integration definition */ - export interface BrowserbaseGetSessionIntegrationDefUpdate { - arguments?: BrowserbaseGetSessionIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseGetSessionIntegrationDef { + arguments?: BrowserbaseGetSessionIntegrationDef.Arguments | null; method?: 'get_session'; @@ -3286,33 +3288,33 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseGetSessionIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseGetSessionIntegrationDef.Setup | null; } - export namespace BrowserbaseGetSessionIntegrationDefUpdate { + export namespace BrowserbaseGetSessionIntegrationDef { export interface Arguments { - id?: string | null; + id: string; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * browserbase complete session integration definition */ - export interface BrowserbaseCompleteSessionIntegrationDefUpdate { - arguments?: BrowserbaseCompleteSessionIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseCompleteSessionIntegrationDef { + arguments?: BrowserbaseCompleteSessionIntegrationDef.Arguments | null; method?: 'complete_session'; @@ -3321,12 +3323,12 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseCompleteSessionIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseCompleteSessionIntegrationDef.Setup | null; } - export namespace BrowserbaseCompleteSessionIntegrationDefUpdate { + export namespace BrowserbaseCompleteSessionIntegrationDef { export interface Arguments { - id?: string | null; + id: string; status?: 'REQUEST_RELEASE'; } @@ -3335,21 +3337,21 @@ export namespace ToolPatchParams { * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * browserbase get session live urls integration definition */ - export interface BrowserbaseGetSessionLiveURLsIntegrationDefUpdate { - arguments?: BrowserbaseGetSessionLiveURLsIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseGetSessionLiveURLsIntegrationDef { + arguments?: BrowserbaseGetSessionLiveURLsIntegrationDef.Arguments | null; method?: 'get_live_urls'; @@ -3358,33 +3360,33 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseGetSessionLiveURLsIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseGetSessionLiveURLsIntegrationDef.Setup | null; } - export namespace BrowserbaseGetSessionLiveURLsIntegrationDefUpdate { + export namespace BrowserbaseGetSessionLiveURLsIntegrationDef { export interface Arguments { - id?: string | null; + id: string; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * browserbase get session connect url integration definition */ - export interface BrowserbaseGetSessionConnectURLIntegrationDefUpdate { - arguments?: BrowserbaseGetSessionConnectURLIntegrationDefUpdate.Arguments | null; + export interface BrowserbaseGetSessionConnectURLIntegrationDef { + arguments?: BrowserbaseGetSessionConnectURLIntegrationDef.Arguments | null; method?: 'get_connect_url'; @@ -3393,53 +3395,64 @@ export namespace ToolPatchParams { /** * The setup parameters for the browserbase integration */ - setup?: BrowserbaseGetSessionConnectURLIntegrationDefUpdate.Setup | null; + setup?: BrowserbaseGetSessionConnectURLIntegrationDef.Setup | null; } - export namespace BrowserbaseGetSessionConnectURLIntegrationDefUpdate { + export namespace BrowserbaseGetSessionConnectURLIntegrationDef { export interface Arguments { - id?: string | null; + id: string; } /** * The setup parameters for the browserbase integration */ export interface Setup { - api_key?: string | null; + api_key: string; + + project_id: string; api_url?: string | null; connect_url?: string | null; - - project_id?: string | null; } } /** * The integration definition for the remote browser */ - export interface RemoteBrowserIntegrationDefUpdate { + export interface RemoteBrowserIntegrationDef { + /** + * The setup parameters for the remote browser + */ + setup: RemoteBrowserIntegrationDef.Setup; + /** * The arguments for the remote browser */ - arguments?: RemoteBrowserIntegrationDefUpdate.Arguments | null; + arguments?: RemoteBrowserIntegrationDef.Arguments | null; method?: 'perform_action'; provider?: 'remote_browser'; + } + export namespace RemoteBrowserIntegrationDef { /** * The setup parameters for the remote browser */ - setup?: RemoteBrowserIntegrationDefUpdate.Setup | null; - } + export interface Setup { + connect_url?: string | null; + + height?: number | null; + + width?: number | null; + } - export namespace RemoteBrowserIntegrationDefUpdate { /** * The arguments for the remote browser */ export interface Arguments { - action?: + action: | 'key' | 'type' | 'mouse_move' @@ -3451,8 +3464,7 @@ export namespace ToolPatchParams { | 'screenshot' | 'cursor_position' | 'navigate' - | 'refresh' - | null; + | 'refresh'; connect_url?: string | null; @@ -3460,27 +3472,16 @@ export namespace ToolPatchParams { text?: string | null; } - - /** - * The setup parameters for the remote browser - */ - export interface Setup { - connect_url?: string | null; - - height?: number | null; - - width?: number | null; - } } /** * LlamaParse integration definition */ - export interface LlamaParseIntegrationDefUpdate { + export interface LlamaParseIntegrationDef { /** * Arguments for LlamaParse integration */ - arguments?: LlamaParseIntegrationDefUpdate.Arguments | null; + arguments?: LlamaParseIntegrationDef.Arguments | null; method?: string | null; @@ -3489,17 +3490,17 @@ export namespace ToolPatchParams { /** * Setup parameters for LlamaParse integration */ - setup?: LlamaParseIntegrationDefUpdate.Setup | null; + setup?: LlamaParseIntegrationDef.Setup | null; } - export namespace LlamaParseIntegrationDefUpdate { + export namespace LlamaParseIntegrationDef { /** * Arguments for LlamaParse integration */ export interface Arguments { - base64?: boolean; + file: string | Array; - file?: string | Array | null; + base64?: boolean; filename?: string | null; @@ -3510,7 +3511,7 @@ export namespace ToolPatchParams { * Setup parameters for LlamaParse integration */ export interface Setup { - llamaparse_api_key?: string | null; + llamaparse_api_key: string; params?: unknown | null; } @@ -3519,11 +3520,11 @@ export namespace ToolPatchParams { /** * Ffmpeg integration definition */ - export interface FfmpegIntegrationDefUpdate { + export interface FfmpegIntegrationDef { /** * Arguments for Ffmpeg CMD */ - arguments?: FfmpegIntegrationDefUpdate.Arguments | null; + arguments?: FfmpegIntegrationDef.Arguments | null; method?: string | null; @@ -3532,12 +3533,12 @@ export namespace ToolPatchParams { setup?: unknown; } - export namespace FfmpegIntegrationDefUpdate { + export namespace FfmpegIntegrationDef { /** * Arguments for Ffmpeg CMD */ export interface Arguments { - cmd?: string | null; + cmd: string; file?: string | null; } @@ -3546,11 +3547,11 @@ export namespace ToolPatchParams { /** * Cloudinary upload integration definition */ - export interface CloudinaryUploadIntegrationDefUpdate { + export interface CloudinaryUploadIntegrationDef { /** * Arguments for Cloudinary media upload */ - arguments?: CloudinaryUploadIntegrationDefUpdate.Arguments | null; + arguments?: CloudinaryUploadIntegrationDef.Arguments | null; method?: 'media_upload'; @@ -3559,15 +3560,15 @@ export namespace ToolPatchParams { /** * Setup parameters for Cloudinary integration */ - setup?: CloudinaryUploadIntegrationDefUpdate.Setup | null; + setup?: CloudinaryUploadIntegrationDef.Setup | null; } - export namespace CloudinaryUploadIntegrationDefUpdate { + export namespace CloudinaryUploadIntegrationDef { /** * Arguments for Cloudinary media upload */ export interface Arguments { - file?: string | null; + file: string; public_id?: string | null; @@ -3580,11 +3581,11 @@ export namespace ToolPatchParams { * Setup parameters for Cloudinary integration */ export interface Setup { - cloudinary_api_key?: string | null; + cloudinary_api_key: string; - cloudinary_api_secret?: string | null; + cloudinary_api_secret: string; - cloudinary_cloud_name?: string | null; + cloudinary_cloud_name: string; params?: unknown | null; } @@ -3593,11 +3594,11 @@ export namespace ToolPatchParams { /** * Cloudinary edit integration definition */ - export interface CloudinaryEditIntegrationDefUpdate { + export interface CloudinaryEditIntegrationDef { /** * Arguments for Cloudinary media edit */ - arguments?: CloudinaryEditIntegrationDefUpdate.Arguments | null; + arguments?: CloudinaryEditIntegrationDef.Arguments | null; method?: 'media_edit'; @@ -3606,30 +3607,30 @@ export namespace ToolPatchParams { /** * Setup parameters for Cloudinary integration */ - setup?: CloudinaryEditIntegrationDefUpdate.Setup | null; + setup?: CloudinaryEditIntegrationDef.Setup | null; } - export namespace CloudinaryEditIntegrationDefUpdate { + export namespace CloudinaryEditIntegrationDef { /** * Arguments for Cloudinary media edit */ export interface Arguments { - public_id?: string | null; + public_id: string; - return_base64?: boolean; + transformation: Array; - transformation?: Array | null; + return_base64?: boolean; } /** * Setup parameters for Cloudinary integration */ export interface Setup { - cloudinary_api_key?: string | null; + cloudinary_api_key: string; - cloudinary_api_secret?: string | null; + cloudinary_api_secret: string; - cloudinary_cloud_name?: string | null; + cloudinary_cloud_name: string; params?: unknown | null; } @@ -3638,11 +3639,11 @@ export namespace ToolPatchParams { /** * Arxiv integration definition */ - export interface ArxivIntegrationDefUpdate { + export interface ArxivIntegrationDef { /** * Arguments for Arxiv Search */ - arguments?: ArxivIntegrationDefUpdate.Arguments | null; + arguments?: ArxivIntegrationDef.Arguments | null; method?: string | null; @@ -3651,19 +3652,19 @@ export namespace ToolPatchParams { setup?: unknown; } - export namespace ArxivIntegrationDefUpdate { + export namespace ArxivIntegrationDef { /** * Arguments for Arxiv Search */ export interface Arguments { + query: string; + download_pdf?: boolean; id_list?: Array | null; max_results?: number; - query?: string | null; - sort_by?: 'relevance' | 'lastUpdatedDate' | 'submittedDate'; sort_order?: 'ascending' | 'descending'; @@ -3674,9 +3675,7 @@ export namespace ToolPatchParams { * System definition */ export interface System { - arguments?: unknown | null; - - operation?: + operation: | 'create' | 'update' | 'patch' @@ -3688,10 +3687,11 @@ export namespace ToolPatchParams { | 'history' | 'delete' | 'get' - | 'list' - | null; + | 'list'; - resource?: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job' | null; + resource: 'agent' | 'user' | 'task' | 'execution' | 'doc' | 'session' | 'job'; + + arguments?: unknown | null; resource_id?: string | null; @@ -3714,6 +3714,6 @@ export declare namespace Tools { type ToolCreateParams as ToolCreateParams, type ToolUpdateParams as ToolUpdateParams, type ToolListParams as ToolListParams, - type ToolPatchParams as ToolPatchParams, + type ToolResetParams as ToolResetParams, }; } diff --git a/src/resources/index.ts b/src/resources/index.ts index a323e3f..e59ff90 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -9,7 +9,7 @@ export { type AgentUpdateParams, type AgentListParams, type AgentCreateOrUpdateParams, - type AgentPatchParams, + type AgentResetParams, } from './agents/agents'; export { DocsOffsetPagination, @@ -37,7 +37,7 @@ export { type SessionListParams, type SessionChatParams, type SessionCreateOrUpdateParams, - type SessionPatchParams, + type SessionResetParams, } from './sessions'; export { TasksOffsetPagination, @@ -66,5 +66,5 @@ export { type UserUpdateParams, type UserListParams, type UserCreateOrUpdateParams, - type UserPatchParams, + type UserResetParams, } from './users/users'; diff --git a/src/resources/sessions.ts b/src/resources/sessions.ts index 50e9bdd..3bc6f30 100644 --- a/src/resources/sessions.ts +++ b/src/resources/sessions.ts @@ -16,14 +16,14 @@ export class Sessions extends APIResource { } /** - * Update Session + * Patch Session */ update( sessionId: string, body: SessionUpdateParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.put(`/sessions/${sessionId}`, { body, ...options }); + return this._client.patch(`/sessions/${sessionId}`, { body, ...options }); } /** @@ -105,14 +105,14 @@ export class Sessions extends APIResource { } /** - * Patch Session + * Update Session */ - patch( + reset( sessionId: string, - body: SessionPatchParams, + body: SessionResetParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.patch(`/sessions/${sessionId}`, { body, ...options }); + return this._client.put(`/sessions/${sessionId}`, { body, ...options }); } } @@ -6094,7 +6094,7 @@ export namespace SessionCreateOrUpdateParams { } } -export interface SessionPatchParams { +export interface SessionResetParams { auto_run_tools?: boolean; context_overflow?: 'truncate' | 'adaptive' | null; @@ -6103,7 +6103,7 @@ export interface SessionPatchParams { metadata?: unknown | null; - recall_options?: SessionPatchParams.RecallOptions | null; + recall_options?: SessionResetParams.RecallOptions | null; render_templates?: boolean; @@ -6114,7 +6114,7 @@ export interface SessionPatchParams { token_budget?: number | null; } -export namespace SessionPatchParams { +export namespace SessionResetParams { export interface RecallOptions { alpha?: number; @@ -6154,6 +6154,6 @@ export declare namespace Sessions { type SessionListParams as SessionListParams, type SessionChatParams as SessionChatParams, type SessionCreateOrUpdateParams as SessionCreateOrUpdateParams, - type SessionPatchParams as SessionPatchParams, + type SessionResetParams as SessionResetParams, }; } diff --git a/src/resources/users/index.ts b/src/resources/users/index.ts index dfde059..97dc435 100644 --- a/src/resources/users/index.ts +++ b/src/resources/users/index.ts @@ -15,5 +15,5 @@ export { type UserUpdateParams, type UserListParams, type UserCreateOrUpdateParams, - type UserPatchParams, + type UserResetParams, } from './users'; diff --git a/src/resources/users/users.ts b/src/resources/users/users.ts index 2f89229..6526922 100644 --- a/src/resources/users/users.ts +++ b/src/resources/users/users.ts @@ -19,14 +19,14 @@ export class Users extends APIResource { } /** - * Update User + * Patch User */ update( userId: string, body: UserUpdateParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.put(`/users/${userId}`, { body, ...options }); + return this._client.patch(`/users/${userId}`, { body, ...options }); } /** @@ -70,14 +70,14 @@ export class Users extends APIResource { } /** - * Patch User + * Update User */ - patch( + reset( userId: string, - body: UserPatchParams, + body: UserResetParams, options?: Core.RequestOptions, ): Core.APIPromise { - return this._client.patch(`/users/${userId}`, { body, ...options }); + return this._client.put(`/users/${userId}`, { body, ...options }); } } @@ -129,7 +129,7 @@ export interface UserCreateOrUpdateParams { name?: string; } -export interface UserPatchParams { +export interface UserResetParams { about?: string; metadata?: unknown | null; @@ -148,7 +148,7 @@ export declare namespace Users { type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserCreateOrUpdateParams as UserCreateOrUpdateParams, - type UserPatchParams as UserPatchParams, + type UserResetParams as UserResetParams, }; export { diff --git a/src/version.ts b/src/version.ts index d1f3166..5096226 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.48.0'; // x-release-please-version +export const VERSION = '1.49.0'; // x-release-please-version diff --git a/tests/api-resources/agents/agents.test.ts b/tests/api-resources/agents/agents.test.ts index bdb3a93..09ea341 100644 --- a/tests/api-resources/agents/agents.test.ts +++ b/tests/api-resources/agents/agents.test.ts @@ -40,8 +40,8 @@ describe('resource agents', () => { }); }); - test('update: only required params', async () => { - const responsePromise = client.agents.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { name: 'x' }); + test('update', async () => { + const responsePromise = client.agents.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {}); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -51,26 +51,6 @@ describe('resource agents', () => { expect(dataAndResponse.response).toBe(rawResponse); }); - test('update: required and optional params', async () => { - const response = await client.agents.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - name: 'x', - about: 'about', - canonical_name: 'canonical_name', - default_settings: { - frequency_penalty: -2, - length_penalty: 0, - min_p: 0, - presence_penalty: -2, - repetition_penalty: 0, - temperature: 0, - top_p: 0, - }, - instructions: 'string', - metadata: {}, - model: 'model', - }); - }); - test('list', async () => { const responsePromise = client.agents.list(); const rawResponse = await responsePromise.asResponse(); @@ -168,8 +148,8 @@ describe('resource agents', () => { ).rejects.toThrow(Julep.NotFoundError); }); - test('patch', async () => { - const responsePromise = client.agents.patch('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {}); + test('reset: only required params', async () => { + const responsePromise = client.agents.reset('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { name: 'x' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -178,4 +158,24 @@ describe('resource agents', () => { expect(dataAndResponse.data).toBe(response); expect(dataAndResponse.response).toBe(rawResponse); }); + + test('reset: required and optional params', async () => { + const response = await client.agents.reset('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { + name: 'x', + about: 'about', + canonical_name: 'canonical_name', + default_settings: { + frequency_penalty: -2, + length_penalty: 0, + min_p: 0, + presence_penalty: -2, + repetition_penalty: 0, + temperature: 0, + top_p: 0, + }, + instructions: 'string', + metadata: {}, + model: 'model', + }); + }); }); diff --git a/tests/api-resources/agents/tools.test.ts b/tests/api-resources/agents/tools.test.ts index 5574a83..7477fc7 100644 --- a/tests/api-resources/agents/tools.test.ts +++ b/tests/api-resources/agents/tools.test.ts @@ -63,11 +63,11 @@ describe('resource tools', () => { }); }); - test('update: only required params', async () => { + test('update', async () => { const responsePromise = client.agents.tools.update( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { name: 'name', type: 'function' }, + {}, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -78,50 +78,6 @@ describe('resource tools', () => { expect(dataAndResponse.response).toBe(rawResponse); }); - test('update: required and optional params', async () => { - const response = await client.agents.tools.update( - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { - name: 'name', - type: 'function', - api_call: { - method: 'GET', - url: 'https://example.com', - content: 'content', - cookies: { foo: 'string' }, - data: {}, - files: {}, - follow_redirects: true, - headers: { foo: 'string' }, - json: {}, - params: 'string', - schema: {}, - timeout: 0, - }, - bash_20241022: { name: 'name', type: 'bash_20241022' }, - computer_20241022: { - display_height_px: 400, - display_number: 1, - display_width_px: 600, - name: 'name', - type: 'computer_20241022', - }, - description: 'description', - function: { description: {}, name: {}, parameters: {} }, - integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, - system: { - operation: 'create', - resource: 'agent', - arguments: {}, - resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - subresource: 'tool', - }, - text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, - }, - ); - }); - test('list', async () => { const responsePromise = client.agents.tools.list('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'); const rawResponse = await responsePromise.asResponse(); @@ -176,11 +132,11 @@ describe('resource tools', () => { ).rejects.toThrow(Julep.NotFoundError); }); - test('patch', async () => { - const responsePromise = client.agents.tools.patch( + test('reset: only required params', async () => { + const responsePromise = client.agents.tools.reset( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - {}, + { name: 'name', type: 'function' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -190,4 +146,48 @@ describe('resource tools', () => { expect(dataAndResponse.data).toBe(response); expect(dataAndResponse.response).toBe(rawResponse); }); + + test('reset: required and optional params', async () => { + const response = await client.agents.tools.reset( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { + name: 'name', + type: 'function', + api_call: { + method: 'GET', + url: 'https://example.com', + content: 'content', + cookies: { foo: 'string' }, + data: {}, + files: {}, + follow_redirects: true, + headers: { foo: 'string' }, + json: {}, + params: 'string', + schema: {}, + timeout: 0, + }, + bash_20241022: { name: 'name', type: 'bash_20241022' }, + computer_20241022: { + display_height_px: 400, + display_number: 1, + display_width_px: 600, + name: 'name', + type: 'computer_20241022', + }, + description: 'description', + function: { description: {}, name: {}, parameters: {} }, + integration: { arguments: {}, method: 'method', provider: 'dummy', setup: {} }, + system: { + operation: 'create', + resource: 'agent', + arguments: {}, + resource_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + subresource: 'tool', + }, + text_editor_20241022: { name: 'name', type: 'text_editor_20241022' }, + }, + ); + }); }); diff --git a/tests/api-resources/sessions.test.ts b/tests/api-resources/sessions.test.ts index e46185b..08d628c 100644 --- a/tests/api-resources/sessions.test.ts +++ b/tests/api-resources/sessions.test.ts @@ -230,8 +230,8 @@ describe('resource sessions', () => { ).rejects.toThrow(Julep.NotFoundError); }); - test('patch', async () => { - const responsePromise = client.sessions.patch('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {}); + test('reset', async () => { + const responsePromise = client.sessions.reset('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {}); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/users/users.test.ts b/tests/api-resources/users/users.test.ts index 4e6883e..e9c4b28 100644 --- a/tests/api-resources/users/users.test.ts +++ b/tests/api-resources/users/users.test.ts @@ -106,8 +106,8 @@ describe('resource users', () => { ).rejects.toThrow(Julep.NotFoundError); }); - test('patch', async () => { - const responsePromise = client.users.patch('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {}); + test('reset', async () => { + const responsePromise = client.users.reset('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {}); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise;