Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Release 1.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 18, 2024
1 parent 9b20900 commit bdb6e4f
Show file tree
Hide file tree
Showing 15 changed files with 138 additions and 122 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multion",
"version": "1.3.8",
"version": "1.3.9",
"private": false,
"repository": "https://github.com/MULTI-ON/multion-typescript",
"main": "./index.js",
Expand Down
1 change: 1 addition & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ await client.sessions.stepStream("string", {
width: 1.1,
},
temperature: 1.1,
agentId: "string",
mode: MultiOn.Mode.Fast,
includeScreenshot: true,
});
Expand Down
4 changes: 2 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class MultiOnClient {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -186,7 +186,7 @@ export class MultiOnClient {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
2 changes: 2 additions & 0 deletions src/api/client/requests/BrowseInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export interface BrowseInput {
includeScreenshot?: boolean;
/** The temperature of model */
temperature?: number;
/** The agent id to use for the session. */
agentId?: string;
mode?: MultiOn.Mode;
/** Boolean flag to use a proxy for the session (Default: False). Each Session gets a new Residential IP. */
useProxy?: boolean;
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/sessions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class Sessions {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -126,7 +126,7 @@ export class Sessions {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -226,7 +226,7 @@ export class Sessions {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -309,7 +309,7 @@ export class Sessions {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -388,7 +388,7 @@ export class Sessions {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -461,7 +461,7 @@ export class Sessions {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "multion",
"X-Fern-SDK-Version": "1.3.8",
"X-Fern-SDK-Version": "1.3.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export interface CreateSessionInput {
url: string;
/** Boolean flag to indicate if session to be run locally or in the cloud (Default: False). If set to true, the session will be run locally via your chrome extension. If set to false, the session will be run in the cloud. */
local?: boolean;
/** The agent id to use for the session. */
agentId?: string;
mode?: MultiOn.Mode;
/** Boolean flag to use a proxy for the session (Default: False). Each Session gets a new Residential IP. */
useProxy?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export interface SessionsStepRequest {
browserParams?: MultiOn.SessionsStepRequestBrowserParams;
/** The temperature of model */
temperature?: number;
/** The agent id to use for the session. */
agentId?: string;
mode?: MultiOn.Mode;
includeScreenshot?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import * as MultiOn from "../../../../index";
* width: 1.1
* },
* temperature: 1.1,
* agentId: "string",
* mode: MultiOn.Mode.Fast,
* includeScreenshot: true
* }
Expand All @@ -27,6 +28,8 @@ export interface SessionsStepStreamRequest {
browserParams?: MultiOn.SessionsStepStreamRequestBrowserParams;
/** The temperature of model */
temperature?: number;
/** The agent id to use for the session. */
agentId?: string;
mode?: MultiOn.Mode;
includeScreenshot?: boolean;
}
5 changes: 2 additions & 3 deletions src/api/types/Mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
*/

/**
* The mode you would like to use for the session. 'fast', 'standard', or 'ludicrous'.
* The mode you would like to use for the session. 'fast' or 'standard'
*/
export type Mode = "fast" | "standard" | "ludicrous";
export type Mode = "fast" | "standard";

export const Mode = {
Fast: "fast",
Standard: "standard",
Ludicrous: "ludicrous",
} as const;
2 changes: 2 additions & 0 deletions src/serialization/client/requests/BrowseInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const BrowseInput: core.serialization.Schema<serializers.BrowseInput.Raw,
maxSteps: core.serialization.property("max_steps", core.serialization.number().optional()),
includeScreenshot: core.serialization.property("include_screenshot", core.serialization.boolean().optional()),
temperature: core.serialization.number().optional(),
agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
mode: Mode.optional(),
useProxy: core.serialization.property("use_proxy", core.serialization.boolean().optional()),
});
Expand All @@ -29,6 +30,7 @@ export declare namespace BrowseInput {
max_steps?: number | null;
include_screenshot?: boolean | null;
temperature?: number | null;
agent_id?: string | null;
mode?: Mode.Raw | null;
use_proxy?: boolean | null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const CreateSessionInput: core.serialization.Schema<
> = core.serialization.object({
url: core.serialization.string(),
local: core.serialization.boolean().optional(),
agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
mode: Mode.optional(),
useProxy: core.serialization.property("use_proxy", core.serialization.boolean().optional()),
browserParams: core.serialization.property("browser_params", CreateSessionInputBrowserParams.optional()),
Expand All @@ -24,6 +25,7 @@ export declare namespace CreateSessionInput {
interface Raw {
url: string;
local?: boolean | null;
agent_id?: string | null;
mode?: Mode.Raw | null;
use_proxy?: boolean | null;
browser_params?: CreateSessionInputBrowserParams.Raw | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const SessionsStepRequest: core.serialization.Schema<
url: core.serialization.string().optional(),
browserParams: core.serialization.property("browser_params", SessionsStepRequestBrowserParams.optional()),
temperature: core.serialization.number().optional(),
agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
mode: Mode.optional(),
includeScreenshot: core.serialization.property("include_screenshot", core.serialization.boolean().optional()),
});
Expand All @@ -26,6 +27,7 @@ export declare namespace SessionsStepRequest {
url?: string | null;
browser_params?: SessionsStepRequestBrowserParams.Raw | null;
temperature?: number | null;
agent_id?: string | null;
mode?: Mode.Raw | null;
include_screenshot?: boolean | null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const SessionsStepStreamRequest: core.serialization.Schema<
url: core.serialization.string().optional(),
browserParams: core.serialization.property("browser_params", SessionsStepStreamRequestBrowserParams.optional()),
temperature: core.serialization.number().optional(),
agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
mode: Mode.optional(),
includeScreenshot: core.serialization.property("include_screenshot", core.serialization.boolean().optional()),
});
Expand All @@ -26,6 +27,7 @@ export declare namespace SessionsStepStreamRequest {
url?: string | null;
browser_params?: SessionsStepStreamRequestBrowserParams.Raw | null;
temperature?: number | null;
agent_id?: string | null;
mode?: Mode.Raw | null;
include_screenshot?: boolean | null;
}
Expand Down
3 changes: 1 addition & 2 deletions src/serialization/types/Mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import * as core from "../../core";
export const Mode: core.serialization.Schema<serializers.Mode.Raw, MultiOn.Mode> = core.serialization.enum_([
"fast",
"standard",
"ludicrous",
]);

export declare namespace Mode {
type Raw = "fast" | "standard" | "ludicrous";
type Raw = "fast" | "standard";
}
Loading

0 comments on commit bdb6e4f

Please sign in to comment.