Skip to content

Commit

Permalink
Release 1.9.20
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 9, 2024
1 parent f857898 commit 740b3de
Show file tree
Hide file tree
Showing 55 changed files with 327 additions and 199 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flatfile/api",
"version": "1.9.19",
"version": "1.9.20",
"private": false,
"repository": "https://github.com/FlatFilers/flatfile-node",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/accounts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Accounts {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -106,7 +106,7 @@ export class Accounts {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/actions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Actions {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -96,7 +96,7 @@ export class Actions {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -152,7 +152,7 @@ export class Actions {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -208,7 +208,7 @@ export class Actions {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -264,7 +264,7 @@ export class Actions {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
26 changes: 13 additions & 13 deletions src/api/resources/agents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -125,7 +125,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -211,7 +211,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -294,7 +294,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -379,7 +379,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -463,7 +463,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -558,7 +558,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -656,7 +656,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -757,7 +757,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -849,7 +849,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -960,7 +960,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1071,7 +1071,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1164,7 +1164,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/apps/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -98,7 +98,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -169,7 +169,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -241,7 +241,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -303,7 +303,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -368,7 +368,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -428,7 +428,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -490,7 +490,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -552,7 +552,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -614,7 +614,7 @@ export class Apps {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
16 changes: 10 additions & 6 deletions src/api/resources/assistant/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ export class Assistant {
request: Flatfile.ListPromptsRequest = {},
requestOptions?: Assistant.RequestOptions
): Promise<Flatfile.PromptsResponse> {
const { pageSize, pageNumber } = request;
const { promptType, pageSize, pageNumber } = request;
const _queryParams: Record<string, string | string[] | object | object[]> = {};
if (promptType != null) {
_queryParams["promptType"] = promptType;
}

if (pageSize != null) {
_queryParams["pageSize"] = pageSize.toString();
}
Expand All @@ -56,7 +60,7 @@ export class Assistant {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -118,7 +122,7 @@ export class Assistant {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -182,7 +186,7 @@ export class Assistant {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -248,7 +252,7 @@ export class Assistant {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -310,7 +314,7 @@ export class Assistant {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.9.19",
"X-Fern-SDK-Version": "1.9.20",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flatfile from "../../../..";

/**
* @example
* {}
*/
export interface ListPromptsRequest {
/**
* Type of prompt (default AI_ASSIST)
*/
promptType?: Flatfile.PromptTypeQueryEnum;
/**
* Number of prompts to return in a page (default 7)
*/
Expand Down
3 changes: 3 additions & 0 deletions src/api/resources/assistant/types/Prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import * as Flatfile from "../../..";
* accountId: "us_acc_YOUR_ID",
* environmentId: "us_env_YOUR_ID",
* spaceId: "us_sp_YOUR_ID",
* promptType: Flatfile.PromptTypeEnum.AiAssist,
* prompt: "Combine first name and last name into a new column called Full Name",
* createdAt: new Date("2021-01-01T00:00:00.000Z"),
* updatedAt: new Date("2021-01-01T00:00:00.000Z")
Expand All @@ -24,6 +25,8 @@ export interface Prompt {
accountId: Flatfile.AccountId;
environmentId?: Flatfile.EnvironmentId;
spaceId?: Flatfile.SpaceId;
/** Type of prompt */
promptType: Flatfile.PromptTypeEnum;
/** Text for prompts for AI Assist */
prompt: string;
createdAt: Date;
Expand Down
2 changes: 2 additions & 0 deletions src/api/resources/assistant/types/PromptCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import * as Flatfile from "../../..";
* }
*/
export interface PromptCreate {
/** Type of prompt; Defaults to AI_ASSIST */
promptType?: Flatfile.PromptTypeEnum;
prompt: string;
environmentId: Flatfile.EnvironmentId;
spaceId: Flatfile.SpaceId;
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/assistant/types/PromptPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
* }
*/
export interface PromptPatch {
prompt?: string;
prompt: string;
}
1 change: 1 addition & 0 deletions src/api/resources/assistant/types/PromptResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import * as Flatfile from "../../..";
* accountId: "us_acc_YOUR_ID",
* environmentId: "us_env_YOUR_ID",
* spaceId: "us_sp_YOUR_ID",
* promptType: Flatfile.PromptTypeEnum.AiAssist,
* prompt: "Combine first name and last name into a new column called Full Name",
* createdAt: new Date("2021-01-01T00:00:00.000Z"),
* updatedAt: new Date("2021-01-01T00:00:00.000Z")
Expand Down
Loading

0 comments on commit 740b3de

Please sign in to comment.