Skip to content

Commit

Permalink
Release 1.6.39
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Nov 25, 2024
1 parent 1fcca74 commit 98bbcff
Show file tree
Hide file tree
Showing 25 changed files with 149 additions and 37 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagright",
"version": "1.6.38",
"version": "1.6.39",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/batch/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -164,7 +164,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -273,7 +273,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -378,7 +378,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -476,7 +476,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -576,7 +576,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class BusinessUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -188,7 +188,7 @@ export class BusinessUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -185,7 +185,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/consumerUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class ConsumerUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -188,7 +188,7 @@ export class ConsumerUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/consumerUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -218,7 +218,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/transactionEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -178,7 +178,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/transactions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -240,7 +240,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.38",
"X-Fern-SDK-Version": "1.6.39",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/types/Address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export interface Address {
/** Post code of the user's residence address */
postcode?: string;
/** City of the user's residence address */
city: string;
city?: string;
/** State of the user's residence address */
state?: string;
/** User's country of residence */
country: string;
country?: string;
/** Type of the address (ex - Residential, Postal, etc.) */
addressType?: string;
/** Additional information that can be added via tags */
Expand Down
3 changes: 3 additions & 0 deletions src/api/types/DeviceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flagright from "..";

/**
* Model for device data
*/
Expand All @@ -14,6 +16,7 @@ export interface DeviceData {
deviceLongitude?: number;
/** IP address of the device at a given timestamp for an event or transaction */
ipAddress?: string;
ipCountry?: Flagright.CountryCode;
/** Device identifier number */
deviceIdentifier?: string;
/** Whether VPN was used at a given timestamp for an event or transaction */
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/ExecutedRulesResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export interface ExecutedRulesResult {
ruleDescription: string;
ruleAction: Flagright.RuleAction;
ruleHit: boolean;
/** Timestamp when the rule was executed */
executedAt?: number;
ruleHitMeta?: Flagright.RuleHitMeta;
vars?: Flagright.ExecutedLogicVars[];
labels?: Flagright.RuleLabels[];
Expand Down
12 changes: 12 additions & 0 deletions src/api/types/FileInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface FileInfo {
s3Key: string;
bucket?: string;
filename: string;
size: number;
downloadLink?: string;
aiSummary?: string;
}
2 changes: 2 additions & 0 deletions src/api/types/HitRulesDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export interface HitRulesDetails {
ruleName: string;
/** Description of the rule */
ruleDescription: string;
/** Timestamp when the rule was hit */
executedAt?: number;
ruleAction: Flagright.RuleAction;
ruleHitMeta?: Flagright.RuleHitMeta;
labels?: Flagright.RuleLabels[];
Expand Down
4 changes: 4 additions & 0 deletions src/api/types/Person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import * as Flagright from "..";
* Model for a generic individual - different from User model by not having userId field
*/
export interface Person {
/** Unique user ID for the person */
userId?: string;
generalDetails: Flagright.UserDetails;
/** User's legal identity documents - See Document Model for details */
legalDocuments?: Flagright.LegalDocument[];
contactDetails?: Flagright.ContactDetails;
pepStatus?: Flagright.PepStatus[];
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
/** User's attachments uploaded by business user */
attachments?: Flagright.PersonAttachment[];
}
17 changes: 17 additions & 0 deletions src/api/types/PersonAttachment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flagright from "..";

/**
* PersonAttachment model generalizes User's uploaded attachments
*/
export interface PersonAttachment {
id?: string;
/** User's comment on the attached file. */
comment?: string;
files: Flagright.FileInfo[];
userId: string;
createdAt?: number;
}
2 changes: 2 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export * from "./UserSavedPaymentDetailsItem";
export * from "./User";
export * from "./Person";
export * from "./LegalDocument";
export * from "./FileInfo";
export * from "./PersonAttachment";
export * from "./EmploymentDetails";
export * from "./UserTag";
export * from "./Tag";
Expand Down
8 changes: 4 additions & 4 deletions src/serialization/types/Address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const Address: core.serialization.ObjectSchema<serializers.Address.Raw, F
core.serialization.object({
addressLines: core.serialization.list(core.serialization.string()),
postcode: core.serialization.string().optional(),
city: core.serialization.string(),
city: core.serialization.string().optional(),
state: core.serialization.string().optional(),
country: core.serialization.string(),
country: core.serialization.string().optional(),
addressType: core.serialization.string().optional(),
tags: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Tag)).optional(),
});
Expand All @@ -21,9 +21,9 @@ export declare namespace Address {
interface Raw {
addressLines: string[];
postcode?: string | null;
city: string;
city?: string | null;
state?: string | null;
country: string;
country?: string | null;
addressType?: string | null;
tags?: serializers.Tag.Raw[] | null;
}
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/DeviceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const DeviceData: core.serialization.ObjectSchema<serializers.DeviceData.
deviceLatitude: core.serialization.number().optional(),
deviceLongitude: core.serialization.number().optional(),
ipAddress: core.serialization.string().optional(),
ipCountry: core.serialization.lazy(async () => (await import("..")).CountryCode).optional(),
deviceIdentifier: core.serialization.string().optional(),
vpnUsed: core.serialization.boolean().optional(),
operatingSystem: core.serialization.string().optional(),
Expand All @@ -27,6 +28,7 @@ export declare namespace DeviceData {
deviceLatitude?: number | null;
deviceLongitude?: number | null;
ipAddress?: string | null;
ipCountry?: serializers.CountryCode.Raw | null;
deviceIdentifier?: string | null;
vpnUsed?: boolean | null;
operatingSystem?: string | null;
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/ExecutedRulesResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const ExecutedRulesResult: core.serialization.ObjectSchema<
ruleDescription: core.serialization.string(),
ruleAction: core.serialization.lazy(async () => (await import("..")).RuleAction),
ruleHit: core.serialization.boolean(),
executedAt: core.serialization.number().optional(),
ruleHitMeta: core.serialization.lazyObject(async () => (await import("..")).RuleHitMeta).optional(),
vars: core.serialization
.list(core.serialization.lazyObject(async () => (await import("..")).ExecutedLogicVars))
Expand All @@ -33,6 +34,7 @@ export declare namespace ExecutedRulesResult {
ruleDescription: string;
ruleAction: serializers.RuleAction.Raw;
ruleHit: boolean;
executedAt?: number | null;
ruleHitMeta?: serializers.RuleHitMeta.Raw | null;
vars?: serializers.ExecutedLogicVars.Raw[] | null;
labels?: serializers.RuleLabels.Raw[] | null;
Expand Down
28 changes: 28 additions & 0 deletions src/serialization/types/FileInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const FileInfo: core.serialization.ObjectSchema<serializers.FileInfo.Raw, Flagright.FileInfo> =
core.serialization.object({
s3Key: core.serialization.string(),
bucket: core.serialization.string().optional(),
filename: core.serialization.string(),
size: core.serialization.number(),
downloadLink: core.serialization.string().optional(),
aiSummary: core.serialization.string().optional(),
});

export declare namespace FileInfo {
interface Raw {
s3Key: string;
bucket?: string | null;
filename: string;
size: number;
downloadLink?: string | null;
aiSummary?: string | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/HitRulesDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const HitRulesDetails: core.serialization.ObjectSchema<
ruleInstanceId: core.serialization.string(),
ruleName: core.serialization.string(),
ruleDescription: core.serialization.string(),
executedAt: core.serialization.number().optional(),
ruleAction: core.serialization.lazy(async () => (await import("..")).RuleAction),
ruleHitMeta: core.serialization.lazyObject(async () => (await import("..")).RuleHitMeta).optional(),
labels: core.serialization.list(core.serialization.lazy(async () => (await import("..")).RuleLabels)).optional(),
Expand All @@ -27,6 +28,7 @@ export declare namespace HitRulesDetails {
ruleInstanceId: string;
ruleName: string;
ruleDescription: string;
executedAt?: number | null;
ruleAction: serializers.RuleAction.Raw;
ruleHitMeta?: serializers.RuleHitMeta.Raw | null;
labels?: serializers.RuleLabels.Raw[] | null;
Expand Down
Loading

0 comments on commit 98bbcff

Please sign in to comment.