Skip to content

Commit

Permalink
Release 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 23, 2024
1 parent bcb72b7 commit f4b33d7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "",
"version": "1.1.5",
"version": "1.1.6",
"private": false,
"repository": "https://github.com/dopt/blocks-javascript-browser-client",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/blocks/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Blocks {
"x-api-key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.1.5",
"X-Fern-SDK-Version": "1.1.6",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -128,7 +128,7 @@ export class Blocks {
"x-api-key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.1.5",
"X-Fern-SDK-Version": "1.1.6",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/flows/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Flows {
"x-api-key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.1.5",
"X-Fern-SDK-Version": "1.1.6",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -111,7 +111,7 @@ export class Flows {
* @throws {@link DoptApi.InternalServerError}
*/
public async intent(
uid: string,
sid: string,
intent: DoptApi.IntentRequestIntent,
request: DoptApi.IntentRequest
): Promise<void> {
Expand All @@ -137,14 +137,14 @@ export class Flows {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this.options.environment)) ?? environments.DoptApiEnvironment.Default,
`v2/flow/${uid}/${await serializers.IntentRequestIntent.jsonOrThrow(intent)}`
`v2/flow/${sid}/${await serializers.IntentRequestIntent.jsonOrThrow(intent)}`
),
method: "POST",
headers: {
"x-api-key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.1.5",
"X-Fern-SDK-Version": "1.1.6",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/FlowIntentRequestParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
import * as DoptApi from "..";

export interface FlowIntentRequestParams {
uid: string;
sid: string;
intent: DoptApi.FlowIntentRequestParamsIntent;
}
4 changes: 2 additions & 2 deletions src/serialization/types/FlowIntentRequestParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export const FlowIntentRequestParams: core.serialization.ObjectSchema<
serializers.FlowIntentRequestParams.Raw,
DoptApi.FlowIntentRequestParams
> = core.serialization.object({
uid: core.serialization.string(),
sid: core.serialization.string(),
intent: core.serialization.lazy(async () => (await import("..")).FlowIntentRequestParamsIntent),
});

export declare namespace FlowIntentRequestParams {
interface Raw {
uid: string;
sid: string;
intent: serializers.FlowIntentRequestParamsIntent.Raw;
}
}

0 comments on commit f4b33d7

Please sign in to comment.