From 5a28c606d59f62677d6315bc58c18e34189671c5 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:32:23 +0000 Subject: [PATCH] SDK regeneration --- package.json | 4 +- reference.md | 182 +++++- src/Client.ts | 8 + src/api/resources/api/index.ts | 1 + src/api/resources/api/resources/index.ts | 1 + src/api/resources/api/resources/v1/index.ts | 1 + .../api/resources/v1/resources/index.ts | 1 + .../api/resources/v1/resources/read/index.ts | 1 + .../v1/resources/read/resources/index.ts | 2 + .../v1/resources/read/resources/type/index.ts | 1 + .../read/resources/type/types/Base64Type.ts | 7 + .../resources/type/types/BigIntegerType.ts | 7 + .../read/resources/type/types/BooleanType.ts | 7 + .../read/resources/type/types/DateType.ts | 7 + .../read/resources/type/types/DatetimeType.ts | 7 + .../read/resources/type/types/DoubleType.ts | 9 + .../read/resources/type/types/IntegerType.ts | 9 + .../read/resources/type/types/ListType.ts | 9 + .../read/resources/type/types/LiteralType.ts | 19 + .../read/resources/type/types/LongType.ts | 9 + .../read/resources/type/types/MapType.ts | 10 + .../read/resources/type/types/OptionalType.ts | 10 + .../resources/type/types/PrimitiveType.ts | 69 +++ .../read/resources/type/types/SetType.ts | 9 + .../read/resources/type/types/StringType.ts | 10 + .../resources/type/types/TypeReference.ts | 51 ++ .../resources/type/types/TypeReferenceId.ts | 10 + .../type/types/TypeReferenceIdDefault.ts | 14 + .../read/resources/type/types/UuidType.ts | 7 + .../read/resources/type/types/index.ts | 19 + .../commons/errors/UserNotInOrgError.ts | 3 +- .../commons/types/EndpointIdentifier.ts | 4 +- ...EndpointPath.ts => EndpointPathLiteral.ts} | 2 +- .../{EndpointMethod.ts => HttpMethod.ts} | 8 +- src/api/resources/commons/types/TokenId.ts | 8 + src/api/resources/commons/types/TypeId.ts | 5 + src/api/resources/commons/types/index.ts | 6 +- src/api/resources/index.ts | 4 + src/api/resources/snippets/client/Client.ts | 15 +- .../client/requests/GetSnippetRequest.ts | 2 +- .../types/SnippetsByEndpointMethod.ts | 2 +- .../resources/snippets/types/SnippetsPage.ts | 2 +- src/api/resources/templates/client/Client.ts | 19 +- .../client/requests/GetSnippetTemplate.ts | 2 +- .../RegisterSnippetTemplateBatchRequest.ts | 2 +- .../RegisterSnippetTemplateRequest.ts | 2 +- .../types/EndpointSnippetTemplate.ts | 1 + src/api/resources/templates/types/Template.ts | 5 + .../templates/types/UnionTemplateMember.ts | 10 + .../templates/types/UnionTemplateV2.ts | 17 + src/api/resources/templates/types/index.ts | 2 + src/api/resources/tokens/client/Client.ts | 157 ++++++ src/api/resources/tokens/client/index.ts | 1 + .../client/requests/GenerateTokenRequest.ts | 27 + .../client/requests/RevokeTokenRequest.ts | 21 + .../resources/tokens/client/requests/index.ts | 2 + src/api/resources/tokens/index.ts | 2 + .../tokens/types/GenerateTokenResponse.ts | 10 + src/api/resources/tokens/types/index.ts | 1 + yarn.lock | 530 +++++++++--------- 60 files changed, 1071 insertions(+), 302 deletions(-) create mode 100644 src/api/resources/api/index.ts create mode 100644 src/api/resources/api/resources/index.ts create mode 100644 src/api/resources/api/resources/v1/index.ts create mode 100644 src/api/resources/api/resources/v1/resources/index.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/index.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/index.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/index.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/Base64Type.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/BigIntegerType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/BooleanType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/DateType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/DatetimeType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/DoubleType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/IntegerType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/ListType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/LiteralType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/LongType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/MapType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/OptionalType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/PrimitiveType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/SetType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/StringType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReference.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceId.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceIdDefault.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/UuidType.ts create mode 100644 src/api/resources/api/resources/v1/resources/read/resources/type/types/index.ts rename src/api/resources/commons/types/{EndpointPath.ts => EndpointPathLiteral.ts} (77%) rename src/api/resources/commons/types/{EndpointMethod.ts => HttpMethod.ts} (62%) create mode 100644 src/api/resources/commons/types/TokenId.ts create mode 100644 src/api/resources/commons/types/TypeId.ts create mode 100644 src/api/resources/templates/types/UnionTemplateMember.ts create mode 100644 src/api/resources/templates/types/UnionTemplateV2.ts create mode 100644 src/api/resources/tokens/client/Client.ts create mode 100644 src/api/resources/tokens/client/index.ts create mode 100644 src/api/resources/tokens/client/requests/GenerateTokenRequest.ts create mode 100644 src/api/resources/tokens/client/requests/RevokeTokenRequest.ts create mode 100644 src/api/resources/tokens/client/requests/index.ts create mode 100644 src/api/resources/tokens/index.ts create mode 100644 src/api/resources/tokens/types/GenerateTokenResponse.ts create mode 100644 src/api/resources/tokens/types/index.ts diff --git a/package.json b/package.json index d5e4296..734ba85 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@fern-api/sdk", - "version": "0.12.3", + "version": "0.13.0", "private": false, - "repository": "https://github.com/fern-api/fern-typescript", + "repository": "https://github.com/fern-api/typescript-sdk", "license": "MIT", "main": "./index.js", "types": "./index.d.ts", diff --git a/reference.md b/reference.md index 4429d48..0a78b5e 100644 --- a/reference.md +++ b/reference.md @@ -39,7 +39,7 @@ Get snippet by endpoint method and path ```ts await fern.snippets.get({ endpoint: { - method: Fern.EndpointMethod.Get, + method: Fern.HttpMethod.Get, path: "/v1/search", }, }); @@ -212,7 +212,7 @@ await fern.templates.register({ }, endpointId: { path: "string", - method: Fern.EndpointMethod.Put, + method: Fern.HttpMethod.Get, identifierOverride: "string", }, snippetTemplate: { @@ -352,7 +352,7 @@ await fern.templates.registerBatch({ }, endpointId: { path: "string", - method: Fern.EndpointMethod.Put, + method: Fern.HttpMethod.Get, identifierOverride: "string", }, snippetTemplate: { @@ -490,7 +490,7 @@ await fern.templates.get({ }, endpointId: { path: "string", - method: Fern.EndpointMethod.Put, + method: Fern.HttpMethod.Get, identifierOverride: "string", }, }); @@ -538,3 +538,177 @@ await fern.templates.get({ + +## Tokens + +
fern.tokens.generate({ ...params }) -> Fern.GenerateTokenResponse + +
+ +
+ +#### 📝 Description + +
+ +
+ +
+ +
+ +Generate a token + +
+ +
+ +
+ +
+ +#### 🔌 Usage + +
+ +
+ +
+ +
+ +```ts +await fern.tokens.generate({ + orgId: "string", + scope: "string", +}); +``` + +
+ +
+ +
+ +
+ +#### ⚙️ Parameters + +
+ +
+ +
+ +
+ +**request: `Fern.GenerateTokenRequest`** + +
+ +
+ +
+ +
+ +**requestOptions: `Tokens.RequestOptions`** + +
+ +
+ +
+ +
+ +
+ +
+
+ +
fern.tokens.revoke({ ...params }) -> void + +
+ +
+ +#### 📝 Description + +
+ +
+ +
+ +
+ +Revoke a token + +
+ +
+ +
+ +
+ +#### 🔌 Usage + +
+ +
+ +
+ +
+ +```ts +await fern.tokens.revoke({ + orgId: "string", + tokenId: "string", +}); +``` + +
+ +
+ +
+ +
+ +#### ⚙️ Parameters + +
+ +
+ +
+ +
+ +**request: `Fern.RevokeTokenRequest`** + +
+ +
+ +
+ +
+ +**requestOptions: `Tokens.RequestOptions`** + +
+ +
+ +
+ +
+ +
+ +
+
diff --git a/src/Client.ts b/src/Client.ts index 418d579..54fbcfa 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -6,11 +6,13 @@ import * as environments from "./environments"; import * as core from "./core"; import { Snippets } from "./api/resources/snippets/client/Client"; import { Templates } from "./api/resources/templates/client/Client"; +import { Tokens } from "./api/resources/tokens/client/Client"; export declare namespace FernClient { interface Options { environment?: core.Supplier; token?: core.Supplier; + fetcher?: core.FetchFunction; } interface RequestOptions { @@ -34,4 +36,10 @@ export class FernClient { public get templates(): Templates { return (this._templates ??= new Templates(this._options)); } + + protected _tokens: Tokens | undefined; + + public get tokens(): Tokens { + return (this._tokens ??= new Tokens(this._options)); + } } diff --git a/src/api/resources/api/index.ts b/src/api/resources/api/index.ts new file mode 100644 index 0000000..3e5335f --- /dev/null +++ b/src/api/resources/api/index.ts @@ -0,0 +1 @@ +export * from "./resources"; diff --git a/src/api/resources/api/resources/index.ts b/src/api/resources/api/resources/index.ts new file mode 100644 index 0000000..6f18d4a --- /dev/null +++ b/src/api/resources/api/resources/index.ts @@ -0,0 +1 @@ +export * as v1 from "./v1"; diff --git a/src/api/resources/api/resources/v1/index.ts b/src/api/resources/api/resources/v1/index.ts new file mode 100644 index 0000000..3e5335f --- /dev/null +++ b/src/api/resources/api/resources/v1/index.ts @@ -0,0 +1 @@ +export * from "./resources"; diff --git a/src/api/resources/api/resources/v1/resources/index.ts b/src/api/resources/api/resources/v1/resources/index.ts new file mode 100644 index 0000000..374baf9 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/index.ts @@ -0,0 +1 @@ +export * as read from "./read"; diff --git a/src/api/resources/api/resources/v1/resources/read/index.ts b/src/api/resources/api/resources/v1/resources/read/index.ts new file mode 100644 index 0000000..3e5335f --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/index.ts @@ -0,0 +1 @@ +export * from "./resources"; diff --git a/src/api/resources/api/resources/v1/resources/read/resources/index.ts b/src/api/resources/api/resources/v1/resources/read/resources/index.ts new file mode 100644 index 0000000..a50b465 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/index.ts @@ -0,0 +1,2 @@ +export * as type_ from "./type"; +export * from "./type/types"; diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/index.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/index.ts new file mode 100644 index 0000000..eea524d --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/Base64Type.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/Base64Type.ts new file mode 100644 index 0000000..5733e3f --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/Base64Type.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface Base64Type { + default?: string; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/BigIntegerType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/BigIntegerType.ts new file mode 100644 index 0000000..eee6cf9 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/BigIntegerType.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BigIntegerType { + default?: string; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/BooleanType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/BooleanType.ts new file mode 100644 index 0000000..56e832e --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/BooleanType.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BooleanType { + default?: boolean; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/DateType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/DateType.ts new file mode 100644 index 0000000..a499bd9 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/DateType.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DateType { + default?: string; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/DatetimeType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/DatetimeType.ts new file mode 100644 index 0000000..42cd0c1 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/DatetimeType.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DatetimeType { + default?: string; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/DoubleType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/DoubleType.ts new file mode 100644 index 0000000..90e40b9 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/DoubleType.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DoubleType { + minimum?: number; + maximum?: number; + default?: number; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/IntegerType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/IntegerType.ts new file mode 100644 index 0000000..5a22ada --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/IntegerType.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface IntegerType { + minimum?: number; + maximum?: number; + default?: number; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/ListType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/ListType.ts new file mode 100644 index 0000000..24997a9 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/ListType.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export interface ListType { + itemType: Fern.api.v1.read.TypeReference; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/LiteralType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/LiteralType.ts new file mode 100644 index 0000000..a91ea2c --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/LiteralType.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export type LiteralType = Fern.api.v1.read.LiteralType.BooleanLiteral | Fern.api.v1.read.LiteralType.StringLiteral; + +export declare namespace LiteralType { + interface BooleanLiteral { + type: "booleanLiteral"; + value: boolean; + } + + interface StringLiteral { + type: "stringLiteral"; + value: string; + } +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/LongType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/LongType.ts new file mode 100644 index 0000000..bdd901d --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/LongType.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface LongType { + minimum?: number; + maximum?: number; + default?: number; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/MapType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/MapType.ts new file mode 100644 index 0000000..c874ca0 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/MapType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export interface MapType { + keyType: Fern.api.v1.read.TypeReference; + valueType: Fern.api.v1.read.TypeReference; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/OptionalType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/OptionalType.ts new file mode 100644 index 0000000..27fb451 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/OptionalType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export interface OptionalType { + itemType: Fern.api.v1.read.TypeReference; + defaultValue?: unknown; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/PrimitiveType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/PrimitiveType.ts new file mode 100644 index 0000000..155b0a5 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/PrimitiveType.ts @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export type PrimitiveType = + | Fern.api.v1.read.PrimitiveType.Integer + | Fern.api.v1.read.PrimitiveType.Double + | Fern.api.v1.read.PrimitiveType.String + | Fern.api.v1.read.PrimitiveType.Long + | Fern.api.v1.read.PrimitiveType.Boolean + | Fern.api.v1.read.PrimitiveType.Datetime + | Fern.api.v1.read.PrimitiveType.Uuid + | Fern.api.v1.read.PrimitiveType.Base64 + | Fern.api.v1.read.PrimitiveType.Date_ + | Fern.api.v1.read.PrimitiveType.BigInteger + | Fern.api.v1.read.PrimitiveType.Uint + | Fern.api.v1.read.PrimitiveType.Uint64; + +export declare namespace PrimitiveType { + interface Integer extends Fern.api.v1.read.IntegerType { + type: "integer"; + } + + interface Double extends Fern.api.v1.read.DoubleType { + type: "double"; + } + + interface String extends Fern.api.v1.read.StringType { + type: "string"; + } + + interface Long extends Fern.api.v1.read.LongType { + type: "long"; + } + + interface Boolean extends Fern.api.v1.read.BooleanType { + type: "boolean"; + } + + interface Datetime extends Fern.api.v1.read.DatetimeType { + type: "datetime"; + } + + interface Uuid extends Fern.api.v1.read.UuidType { + type: "uuid"; + } + + interface Base64 extends Fern.api.v1.read.Base64Type { + type: "base64"; + } + + interface Date_ extends Fern.api.v1.read.DateType { + type: "date"; + } + + interface BigInteger extends Fern.api.v1.read.BigIntegerType { + type: "bigInteger"; + } + + interface Uint { + type: "uint"; + } + + interface Uint64 { + type: "uint64"; + } +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/SetType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/SetType.ts new file mode 100644 index 0000000..8751cd9 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/SetType.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export interface SetType { + itemType: Fern.api.v1.read.TypeReference; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/StringType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/StringType.ts new file mode 100644 index 0000000..3346a9b --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/StringType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface StringType { + regex?: string; + minLength?: number; + maxLength?: number; + default?: string; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReference.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReference.ts new file mode 100644 index 0000000..16cd79b --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReference.ts @@ -0,0 +1,51 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export type TypeReference = + | Fern.api.v1.read.TypeReference.Id + | Fern.api.v1.read.TypeReference.Primitive + | Fern.api.v1.read.TypeReference.Optional + | Fern.api.v1.read.TypeReference.List + | Fern.api.v1.read.TypeReference.Set + | Fern.api.v1.read.TypeReference.Map + | Fern.api.v1.read.TypeReference.Literal + | Fern.api.v1.read.TypeReference.Unknown; + +export declare namespace TypeReference { + interface Id extends Fern.api.v1.read.TypeReferenceId { + type: "id"; + } + + interface Primitive { + type: "primitive"; + value: Fern.api.v1.read.PrimitiveType; + } + + interface Optional extends Fern.api.v1.read.OptionalType { + type: "optional"; + } + + interface List extends Fern.api.v1.read.ListType { + type: "list"; + } + + interface Set extends Fern.api.v1.read.SetType { + type: "set"; + } + + interface Map extends Fern.api.v1.read.MapType { + type: "map"; + } + + interface Literal { + type: "literal"; + value: Fern.api.v1.read.LiteralType; + } + + interface Unknown { + type: "unknown"; + } +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceId.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceId.ts new file mode 100644 index 0000000..8c2447a --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export interface TypeReferenceId { + value: Fern.TypeId; + default?: Fern.api.v1.read.TypeReferenceIdDefault; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceIdDefault.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceIdDefault.ts new file mode 100644 index 0000000..bc61f9c --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/TypeReferenceIdDefault.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../../../../../../index"; + +export type TypeReferenceIdDefault = Fern.api.v1.read.TypeReferenceIdDefault.Enum; + +export declare namespace TypeReferenceIdDefault { + interface Enum { + type: "enum"; + value: string; + } +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/UuidType.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/UuidType.ts new file mode 100644 index 0000000..a36d1a2 --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/UuidType.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UuidType { + default?: string; +} diff --git a/src/api/resources/api/resources/v1/resources/read/resources/type/types/index.ts b/src/api/resources/api/resources/v1/resources/read/resources/type/types/index.ts new file mode 100644 index 0000000..a4908ee --- /dev/null +++ b/src/api/resources/api/resources/v1/resources/read/resources/type/types/index.ts @@ -0,0 +1,19 @@ +export * from "./TypeReference"; +export * from "./TypeReferenceId"; +export * from "./TypeReferenceIdDefault"; +export * from "./PrimitiveType"; +export * from "./IntegerType"; +export * from "./DoubleType"; +export * from "./StringType"; +export * from "./LongType"; +export * from "./BooleanType"; +export * from "./DatetimeType"; +export * from "./UuidType"; +export * from "./Base64Type"; +export * from "./DateType"; +export * from "./BigIntegerType"; +export * from "./OptionalType"; +export * from "./ListType"; +export * from "./SetType"; +export * from "./MapType"; +export * from "./LiteralType"; diff --git a/src/api/resources/commons/errors/UserNotInOrgError.ts b/src/api/resources/commons/errors/UserNotInOrgError.ts index af27050..d5ec81a 100644 --- a/src/api/resources/commons/errors/UserNotInOrgError.ts +++ b/src/api/resources/commons/errors/UserNotInOrgError.ts @@ -5,10 +5,11 @@ import * as errors from "../../../../errors/index"; export class UserNotInOrgError extends errors.FernError { - constructor() { + constructor(body: string) { super({ message: "UserNotInOrgError", statusCode: 403, + body: body, }); Object.setPrototypeOf(this, UserNotInOrgError.prototype); } diff --git a/src/api/resources/commons/types/EndpointIdentifier.ts b/src/api/resources/commons/types/EndpointIdentifier.ts index 39870f3..76cd9a7 100644 --- a/src/api/resources/commons/types/EndpointIdentifier.ts +++ b/src/api/resources/commons/types/EndpointIdentifier.ts @@ -5,8 +5,8 @@ import * as Fern from "../../../index"; export interface EndpointIdentifier { - path: Fern.EndpointPath; - method: Fern.EndpointMethod; + path: Fern.EndpointPathLiteral; + method: Fern.HttpMethod; /** * The ID for the endpoint as declared within the IR, this is a unique name for the endpoint, whereas path and * method are not (specifically for the fern definition, consider chat and chat stream). This is optional to diff --git a/src/api/resources/commons/types/EndpointPath.ts b/src/api/resources/commons/types/EndpointPathLiteral.ts similarity index 77% rename from src/api/resources/commons/types/EndpointPath.ts rename to src/api/resources/commons/types/EndpointPathLiteral.ts index b17bc0d..30d3983 100644 --- a/src/api/resources/commons/types/EndpointPath.ts +++ b/src/api/resources/commons/types/EndpointPathLiteral.ts @@ -5,4 +5,4 @@ /** * The relative path for an endpont (e.g. `/users/{userId}`) */ -export type EndpointPath = string; +export type EndpointPathLiteral = string; diff --git a/src/api/resources/commons/types/EndpointMethod.ts b/src/api/resources/commons/types/HttpMethod.ts similarity index 62% rename from src/api/resources/commons/types/EndpointMethod.ts rename to src/api/resources/commons/types/HttpMethod.ts index e7fc3d8..314ec43 100644 --- a/src/api/resources/commons/types/EndpointMethod.ts +++ b/src/api/resources/commons/types/HttpMethod.ts @@ -2,12 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -export type EndpointMethod = "PUT" | "POST" | "GET" | "PATCH" | "DELETE"; +export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; -export const EndpointMethod = { - Put: "PUT", - Post: "POST", +export const HttpMethod = { Get: "GET", + Post: "POST", + Put: "PUT", Patch: "PATCH", Delete: "DELETE", } as const; diff --git a/src/api/resources/commons/types/TokenId.ts b/src/api/resources/commons/types/TokenId.ts new file mode 100644 index 0000000..756cee4 --- /dev/null +++ b/src/api/resources/commons/types/TokenId.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * ID for a given token + */ +export type TokenId = string; diff --git a/src/api/resources/commons/types/TypeId.ts b/src/api/resources/commons/types/TypeId.ts new file mode 100644 index 0000000..6676f7d --- /dev/null +++ b/src/api/resources/commons/types/TypeId.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TypeId = string; diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts index 33e5505..b508514 100644 --- a/src/api/resources/commons/types/index.ts +++ b/src/api/resources/commons/types/index.ts @@ -1,6 +1,8 @@ export * from "./ApiDefinitionId"; export * from "./OrgId"; +export * from "./TokenId"; export * from "./ApiId"; +export * from "./TypeId"; export * from "./EndpointIdentifier"; -export * from "./EndpointPath"; -export * from "./EndpointMethod"; +export * from "./EndpointPathLiteral"; +export * from "./HttpMethod"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 02492d9..9cb93d5 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,11 +1,15 @@ +export * as api from "./api"; export * as commons from "./commons"; export * from "./commons/types"; export * as snippets from "./snippets"; export * from "./snippets/types"; export * as templates from "./templates"; export * from "./templates/types"; +export * as tokens from "./tokens"; +export * from "./tokens/types"; export * from "./commons/errors"; export * from "./snippets/errors"; export * from "./templates/errors"; export * from "./snippets/client/requests"; export * from "./templates/client/requests"; +export * from "./tokens/client/requests"; diff --git a/src/api/resources/snippets/client/Client.ts b/src/api/resources/snippets/client/Client.ts index 32134db..858e722 100644 --- a/src/api/resources/snippets/client/Client.ts +++ b/src/api/resources/snippets/client/Client.ts @@ -12,6 +12,7 @@ export declare namespace Snippets { interface Options { environment?: core.Supplier; token?: core.Supplier; + fetcher?: core.FetchFunction; } interface RequestOptions { @@ -43,7 +44,7 @@ export class Snippets { * @example * await fern.snippets.get({ * endpoint: { - * method: Fern.EndpointMethod.Get, + * method: Fern.HttpMethod.Get, * path: "/v1/search" * } * }) @@ -52,7 +53,7 @@ export class Snippets { request: Fern.GetSnippetRequest, requestOptions?: Snippets.RequestOptions ): Promise { - const _response = await core.fetcher({ + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.FernEnvironment.Prod, "/snippets" @@ -62,7 +63,7 @@ export class Snippets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/sdk", - "X-Fern-SDK-Version": "0.12.1", + "X-Fern-SDK-Version": "0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -81,7 +82,7 @@ export class Snippets { case "UnauthorizedError": throw new Fern.UnauthorizedError(_response.error.body as string); case "UserNotInOrgError": - throw new Fern.UserNotInOrgError(); + throw new Fern.UserNotInOrgError(_response.error.body as string); case "UnavailableError": throw new Fern.UnavailableError(_response.error.body as string); case "ApiIdRequiredError": @@ -154,7 +155,7 @@ export class Snippets { _queryParams["page"] = page.toString(); } - const _response = await core.fetcher({ + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.FernEnvironment.Prod, "/snippets/load" @@ -164,7 +165,7 @@ export class Snippets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/sdk", - "X-Fern-SDK-Version": "0.12.1", + "X-Fern-SDK-Version": "0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -184,7 +185,7 @@ export class Snippets { case "UnauthorizedError": throw new Fern.UnauthorizedError(_response.error.body as string); case "UserNotInOrgError": - throw new Fern.UserNotInOrgError(); + throw new Fern.UserNotInOrgError(_response.error.body as string); case "UnavailableError": throw new Fern.UnavailableError(_response.error.body as string); case "InvalidPageError": diff --git a/src/api/resources/snippets/client/requests/GetSnippetRequest.ts b/src/api/resources/snippets/client/requests/GetSnippetRequest.ts index 5a69e18..3e34d6e 100644 --- a/src/api/resources/snippets/client/requests/GetSnippetRequest.ts +++ b/src/api/resources/snippets/client/requests/GetSnippetRequest.ts @@ -8,7 +8,7 @@ import * as Fern from "../../../../index"; * @example * { * endpoint: { - * method: Fern.EndpointMethod.Get, + * method: Fern.HttpMethod.Get, * path: "/v1/search" * } * } diff --git a/src/api/resources/snippets/types/SnippetsByEndpointMethod.ts b/src/api/resources/snippets/types/SnippetsByEndpointMethod.ts index 4088cb4..672ffcb 100644 --- a/src/api/resources/snippets/types/SnippetsByEndpointMethod.ts +++ b/src/api/resources/snippets/types/SnippetsByEndpointMethod.ts @@ -4,4 +4,4 @@ import * as Fern from "../../../index"; -export type SnippetsByEndpointMethod = Record; +export type SnippetsByEndpointMethod = Record; diff --git a/src/api/resources/snippets/types/SnippetsPage.ts b/src/api/resources/snippets/types/SnippetsPage.ts index fe45ba1..352675e 100644 --- a/src/api/resources/snippets/types/SnippetsPage.ts +++ b/src/api/resources/snippets/types/SnippetsPage.ts @@ -11,5 +11,5 @@ export interface SnippetsPage { * The snippets are returned as a map of endpoint path (e.g. `/api/users`) * to a map of endpoint method (e.g. `POST`) to snippets. */ - snippets: Record; + snippets: Record; } diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts index 774b89a..d6b3213 100644 --- a/src/api/resources/templates/client/Client.ts +++ b/src/api/resources/templates/client/Client.ts @@ -12,6 +12,7 @@ export declare namespace Templates { interface Options { environment?: core.Supplier; token?: core.Supplier; + fetcher?: core.FetchFunction; } interface RequestOptions { @@ -43,7 +44,7 @@ export class Templates { * }, * endpointId: { * path: "string", - * method: Fern.EndpointMethod.Put, + * method: Fern.HttpMethod.Get, * identifierOverride: "string" * }, * snippetTemplate: { @@ -89,7 +90,7 @@ export class Templates { request: Fern.RegisterSnippetTemplateRequest, requestOptions?: Templates.RequestOptions ): Promise { - const _response = await core.fetcher({ + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.FernEnvironment.Prod, "/snippet-template/register" @@ -99,7 +100,7 @@ export class Templates { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/sdk", - "X-Fern-SDK-Version": "0.12.1", + "X-Fern-SDK-Version": "0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -154,7 +155,7 @@ export class Templates { * }, * endpointId: { * path: "string", - * method: Fern.EndpointMethod.Put, + * method: Fern.HttpMethod.Get, * identifierOverride: "string" * }, * snippetTemplate: { @@ -200,7 +201,7 @@ export class Templates { request: Fern.RegisterSnippetTemplateBatchRequest, requestOptions?: Templates.RequestOptions ): Promise { - const _response = await core.fetcher({ + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.FernEnvironment.Prod, "/snippet-template/register/batch" @@ -210,7 +211,7 @@ export class Templates { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/sdk", - "X-Fern-SDK-Version": "0.12.1", + "X-Fern-SDK-Version": "0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -266,7 +267,7 @@ export class Templates { * }, * endpointId: { * path: "string", - * method: Fern.EndpointMethod.Put, + * method: Fern.HttpMethod.Get, * identifierOverride: "string" * } * }) @@ -275,7 +276,7 @@ export class Templates { request: Fern.GetSnippetTemplate, requestOptions?: Templates.RequestOptions ): Promise { - const _response = await core.fetcher({ + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.FernEnvironment.Prod, "/snippet-template/get" @@ -285,7 +286,7 @@ export class Templates { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/sdk", - "X-Fern-SDK-Version": "0.12.1", + "X-Fern-SDK-Version": "0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/templates/client/requests/GetSnippetTemplate.ts b/src/api/resources/templates/client/requests/GetSnippetTemplate.ts index 0a08612..5ec1e08 100644 --- a/src/api/resources/templates/client/requests/GetSnippetTemplate.ts +++ b/src/api/resources/templates/client/requests/GetSnippetTemplate.ts @@ -16,7 +16,7 @@ import * as Fern from "../../../../index"; * }, * endpointId: { * path: "string", - * method: Fern.EndpointMethod.Put, + * method: Fern.HttpMethod.Get, * identifierOverride: "string" * } * } diff --git a/src/api/resources/templates/client/requests/RegisterSnippetTemplateBatchRequest.ts b/src/api/resources/templates/client/requests/RegisterSnippetTemplateBatchRequest.ts index 3b836d4..587cdff 100644 --- a/src/api/resources/templates/client/requests/RegisterSnippetTemplateBatchRequest.ts +++ b/src/api/resources/templates/client/requests/RegisterSnippetTemplateBatchRequest.ts @@ -18,7 +18,7 @@ import * as Fern from "../../../../index"; * }, * endpointId: { * path: "string", - * method: Fern.EndpointMethod.Put, + * method: Fern.HttpMethod.Get, * identifierOverride: "string" * }, * snippetTemplate: { diff --git a/src/api/resources/templates/client/requests/RegisterSnippetTemplateRequest.ts b/src/api/resources/templates/client/requests/RegisterSnippetTemplateRequest.ts index 36e84e0..b2a159a 100644 --- a/src/api/resources/templates/client/requests/RegisterSnippetTemplateRequest.ts +++ b/src/api/resources/templates/client/requests/RegisterSnippetTemplateRequest.ts @@ -18,7 +18,7 @@ import * as Fern from "../../../../index"; * }, * endpointId: { * path: "string", - * method: Fern.EndpointMethod.Put, + * method: Fern.HttpMethod.Get, * identifierOverride: "string" * }, * snippetTemplate: { diff --git a/src/api/resources/templates/types/EndpointSnippetTemplate.ts b/src/api/resources/templates/types/EndpointSnippetTemplate.ts index 5efd8ca..5296a3c 100644 --- a/src/api/resources/templates/types/EndpointSnippetTemplate.ts +++ b/src/api/resources/templates/types/EndpointSnippetTemplate.ts @@ -7,6 +7,7 @@ import * as Fern from "../../../index"; export interface EndpointSnippetTemplate { sdk: Fern.Sdk; endpointId: Fern.EndpointIdentifier; + apiDefinitionId?: Fern.ApiDefinitionId; /** The default snippet template to use */ snippetTemplate: Fern.VersionedSnippetTemplate; /** diff --git a/src/api/resources/templates/types/Template.ts b/src/api/resources/templates/types/Template.ts index 1760795..025cd4c 100644 --- a/src/api/resources/templates/types/Template.ts +++ b/src/api/resources/templates/types/Template.ts @@ -9,6 +9,7 @@ export type Template = | Fern.Template.Enum | Fern.Template.DiscriminatedUnion | Fern.Template.Union + | Fern.Template.UnionV2 | Fern.Template.Dict | Fern.Template.Iterable; @@ -29,6 +30,10 @@ export declare namespace Template { type: "union"; } + interface UnionV2 extends Fern.UnionTemplateV2 { + type: "union_v2"; + } + interface Dict extends Fern.DictTemplate { type: "dict"; } diff --git a/src/api/resources/templates/types/UnionTemplateMember.ts b/src/api/resources/templates/types/UnionTemplateMember.ts new file mode 100644 index 0000000..fd6fa8d --- /dev/null +++ b/src/api/resources/templates/types/UnionTemplateMember.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../index"; + +export interface UnionTemplateMember { + type: Fern.api.v1.read.TypeReference; + template: Fern.Template; +} diff --git a/src/api/resources/templates/types/UnionTemplateV2.ts b/src/api/resources/templates/types/UnionTemplateV2.ts new file mode 100644 index 0000000..654ca35 --- /dev/null +++ b/src/api/resources/templates/types/UnionTemplateV2.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../index"; + +export interface UnionTemplateV2 { + imports?: string[]; + /** + * We might not need this, but the idea here is to be able to omit if it's optional and undefined, + * or default if omitted and required. + */ + isOptional: boolean; + templateString: string; + members: Fern.UnionTemplateMember[]; + templateInput?: Fern.PayloadInput; +} diff --git a/src/api/resources/templates/types/index.ts b/src/api/resources/templates/types/index.ts index ed6184b..8f090cb 100644 --- a/src/api/resources/templates/types/index.ts +++ b/src/api/resources/templates/types/index.ts @@ -1,3 +1,5 @@ +export * from "./UnionTemplateMember"; +export * from "./UnionTemplateV2"; export * from "./UnionTemplate"; export * from "./DiscriminatedUnionTemplate"; export * from "./EnumTemplate"; diff --git a/src/api/resources/tokens/client/Client.ts b/src/api/resources/tokens/client/Client.ts new file mode 100644 index 0000000..9f4971a --- /dev/null +++ b/src/api/resources/tokens/client/Client.ts @@ -0,0 +1,157 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Fern from "../../../index"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace Tokens { + interface Options { + environment?: core.Supplier; + token?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + timeoutInSeconds?: number; + maxRetries?: number; + abortSignal?: AbortSignal; + } +} + +export class Tokens { + constructor(protected readonly _options: Tokens.Options = {}) {} + + /** + * Generate a token + * + * @param {Fern.GenerateTokenRequest} request + * @param {Tokens.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await fern.tokens.generate({ + * orgId: "string", + * scope: "string" + * }) + */ + public async generate( + request: Fern.GenerateTokenRequest, + requestOptions?: Tokens.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.FernEnvironment.Prod, + "/tokens/generate" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@fern-api/sdk", + "X-Fern-SDK-Version": "0.13.0", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + body: request, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return _response.body as Fern.GenerateTokenResponse; + } + + if (_response.error.reason === "status-code") { + throw new errors.FernError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.FernError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.FernTimeoutError(); + case "unknown": + throw new errors.FernError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Revoke a token + * + * @param {Fern.RevokeTokenRequest} request + * @param {Tokens.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await fern.tokens.revoke({ + * orgId: "string", + * tokenId: "string" + * }) + */ + public async revoke(request: Fern.RevokeTokenRequest, requestOptions?: Tokens.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.FernEnvironment.Prod, + "/tokens/revoke" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@fern-api/sdk", + "X-Fern-SDK-Version": "0.13.0", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + body: request, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return; + } + + if (_response.error.reason === "status-code") { + throw new errors.FernError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.FernError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.FernTimeoutError(); + case "unknown": + throw new errors.FernError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.token); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; + } +} diff --git a/src/api/resources/tokens/client/index.ts b/src/api/resources/tokens/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/tokens/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/resources/tokens/client/requests/GenerateTokenRequest.ts b/src/api/resources/tokens/client/requests/GenerateTokenRequest.ts new file mode 100644 index 0000000..a7b4ef8 --- /dev/null +++ b/src/api/resources/tokens/client/requests/GenerateTokenRequest.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../index"; + +/** + * @example + * { + * orgId: "string", + * scope: "string" + * } + */ +export interface GenerateTokenRequest { + /** + * The organization to generate a token for. + * + */ + orgId: Fern.OrgId; + /** + * The scope of the token. Valid scopes include: + * - admin + * - sdk:read:{package_name} + * + */ + scope: string; +} diff --git a/src/api/resources/tokens/client/requests/RevokeTokenRequest.ts b/src/api/resources/tokens/client/requests/RevokeTokenRequest.ts new file mode 100644 index 0000000..4e412ff --- /dev/null +++ b/src/api/resources/tokens/client/requests/RevokeTokenRequest.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Fern from "../../../../index"; + +/** + * @example + * { + * orgId: "string", + * tokenId: "string" + * } + */ +export interface RevokeTokenRequest { + /** + * The organization to create snippets for. + * + */ + orgId: Fern.OrgId; + tokenId: Fern.TokenId; +} diff --git a/src/api/resources/tokens/client/requests/index.ts b/src/api/resources/tokens/client/requests/index.ts new file mode 100644 index 0000000..b88520d --- /dev/null +++ b/src/api/resources/tokens/client/requests/index.ts @@ -0,0 +1,2 @@ +export { type GenerateTokenRequest } from "./GenerateTokenRequest"; +export { type RevokeTokenRequest } from "./RevokeTokenRequest"; diff --git a/src/api/resources/tokens/index.ts b/src/api/resources/tokens/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/api/resources/tokens/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/resources/tokens/types/GenerateTokenResponse.ts b/src/api/resources/tokens/types/GenerateTokenResponse.ts new file mode 100644 index 0000000..54fbc48 --- /dev/null +++ b/src/api/resources/tokens/types/GenerateTokenResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GenerateTokenResponse { + /** The generated token */ + token: string; + /** The ID of the generated token. */ + id: string; +} diff --git a/src/api/resources/tokens/types/index.ts b/src/api/resources/tokens/types/index.ts new file mode 100644 index 0000000..39ed20e --- /dev/null +++ b/src/api/resources/tokens/types/index.ts @@ -0,0 +1 @@ +export * from "./GenerateTokenResponse"; diff --git a/yarn.lock b/yarn.lock index e7c5de5..bf9627b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,159 +10,131 @@ "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.24" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" - integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.25.7.tgz#438f2c524071531d643c6f0188e1e28f130cebc7" + integrity sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g== dependencies: - "@babel/highlight" "^7.24.7" + "@babel/highlight" "^7.25.7" picocolors "^1.0.0" -"@babel/compat-data@^7.24.8": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.9.tgz#53eee4e68f1c1d0282aa0eb05ddb02d033fc43a0" - integrity sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng== +"@babel/compat-data@^7.25.7": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.8.tgz#0376e83df5ab0eb0da18885c0140041f0747a402" + integrity sha512-ZsysZyXY4Tlx+Q53XdnOFmqwfB9QDTHYxaZYajWRoBLuLEAwI2UIbtxOjWh/cFaa9IKUlcB+DDuoskLuKu56JA== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.9.tgz#dc07c9d307162c97fa9484ea997ade65841c7c82" - integrity sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg== + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.8.tgz#a57137d2a51bbcffcfaeba43cb4dd33ae3e0e1c6" + integrity sha512-Oixnb+DzmRT30qu9d3tJSQkxuygWm32DFykT4bRoORPa9hZ/L4KhVB/XiRm6KG+roIEM7DBQlmg27kw2HZkdZg== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.9" - "@babel/helper-compilation-targets" "^7.24.8" - "@babel/helper-module-transforms" "^7.24.9" - "@babel/helpers" "^7.24.8" - "@babel/parser" "^7.24.8" - "@babel/template" "^7.24.7" - "@babel/traverse" "^7.24.8" - "@babel/types" "^7.24.9" + "@babel/code-frame" "^7.25.7" + "@babel/generator" "^7.25.7" + "@babel/helper-compilation-targets" "^7.25.7" + "@babel/helper-module-transforms" "^7.25.7" + "@babel/helpers" "^7.25.7" + "@babel/parser" "^7.25.8" + "@babel/template" "^7.25.7" + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.8" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.24.8", "@babel/generator@^7.24.9", "@babel/generator@^7.7.2": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.9.tgz#5c2575a1070e661bbbc9df82a853989c9a656f12" - integrity sha512-G8v3jRg+z8IwY1jHFxvCNhOPYPterE4XljNgdGTYfSTtzzwjIswIzIaSPSLs3R7yFuqnqNeay5rjICfqVr+/6A== +"@babel/generator@^7.25.7", "@babel/generator@^7.7.2": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.7.tgz#de86acbeb975a3e11ee92dd52223e6b03b479c56" + integrity sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA== dependencies: - "@babel/types" "^7.24.9" + "@babel/types" "^7.25.7" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" - jsesc "^2.5.1" + jsesc "^3.0.2" -"@babel/helper-compilation-targets@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.8.tgz#b607c3161cd9d1744977d4f97139572fe778c271" - integrity sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw== +"@babel/helper-compilation-targets@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz#11260ac3322dda0ef53edfae6e97b961449f5fa4" + integrity sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A== dependencies: - "@babel/compat-data" "^7.24.8" - "@babel/helper-validator-option" "^7.24.8" - browserslist "^4.23.1" + "@babel/compat-data" "^7.25.7" + "@babel/helper-validator-option" "^7.25.7" + browserslist "^4.24.0" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-environment-visitor@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9" - integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-function-name@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2" - integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA== - dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-hoist-variables@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee" - integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-module-imports@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" - integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-module-transforms@^7.24.9": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.9.tgz#e13d26306b89eea569180868e652e7f514de9d29" - integrity sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw== - dependencies: - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-module-imports" "^7.24.7" - "@babel/helper-simple-access" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" - "@babel/helper-validator-identifier" "^7.24.7" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.8.0": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" - integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== - -"@babel/helper-simple-access@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" - integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-split-export-declaration@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856" - integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-string-parser@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" - integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== - -"@babel/helper-validator-identifier@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" - integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== - -"@babel/helper-validator-option@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" - integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== - -"@babel/helpers@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.8.tgz#2820d64d5d6686cca8789dd15b074cd862795873" - integrity sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ== - dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.8" - -"@babel/highlight@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" - integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== - dependencies: - "@babel/helper-validator-identifier" "^7.24.7" +"@babel/helper-module-imports@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz#dba00d9523539152906ba49263e36d7261040472" + integrity sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-module-transforms@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz#2ac9372c5e001b19bc62f1fe7d96a18cb0901d1a" + integrity sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ== + dependencies: + "@babel/helper-module-imports" "^7.25.7" + "@babel/helper-simple-access" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" + "@babel/traverse" "^7.25.7" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.25.7", "@babel/helper-plugin-utils@^7.8.0": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz#8ec5b21812d992e1ef88a9b068260537b6f0e36c" + integrity sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw== + +"@babel/helper-simple-access@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz#5eb9f6a60c5d6b2e0f76057004f8dacbddfae1c0" + integrity sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-string-parser@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz#d50e8d37b1176207b4fe9acedec386c565a44a54" + integrity sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g== + +"@babel/helper-validator-identifier@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz#77b7f60c40b15c97df735b38a66ba1d7c3e93da5" + integrity sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg== + +"@babel/helper-validator-option@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz#97d1d684448228b30b506d90cace495d6f492729" + integrity sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ== + +"@babel/helpers@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.7.tgz#091b52cb697a171fe0136ab62e54e407211f09c2" + integrity sha512-Sv6pASx7Esm38KQpF/U/OXLwPPrdGHNKoeblRxgZRLXnAtnkEe4ptJPDtAZM7fBLadbc1Q07kQpSiGQ0Jg6tRA== + dependencies: + "@babel/template" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/highlight@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.25.7.tgz#20383b5f442aa606e7b5e3043b0b1aafe9f37de5" + integrity sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw== + dependencies: + "@babel/helper-validator-identifier" "^7.25.7" chalk "^2.4.2" js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7", "@babel/parser@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.8.tgz#58a4dbbcad7eb1d48930524a3fd93d93e9084c6f" - integrity sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.7", "@babel/parser@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.8.tgz#f6aaf38e80c36129460c1657c0762db584c9d5e2" + integrity sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ== + dependencies: + "@babel/types" "^7.25.8" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -178,14 +150,28 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-class-properties@^7.8.3": +"@babel/plugin-syntax-class-properties@^7.12.13": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-syntax-import-meta@^7.8.3": +"@babel/plugin-syntax-class-static-block@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" + integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-import-attributes@^7.24.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.7.tgz#d78dd0499d30df19a598e63ab895e21b909bc43f" + integrity sha512-AqVo+dguCgmpi/3mYBdu9lkngOBlQ2w2vnNpa6gfiCxQZLzV4ZbhsXitJ2Yblkoe1VQwtHSaNmIaGll/26YWRw== + dependencies: + "@babel/helper-plugin-utils" "^7.25.7" + +"@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== @@ -200,13 +186,13 @@ "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz#39a1fa4a7e3d3d7f34e2acc6be585b718d30e02d" - integrity sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ== + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.7.tgz#5352d398d11ea5e7ef330c854dea1dae0bf18165" + integrity sha512-ruZOnKO+ajVL/MVx+PwNBPOkrnXTXoWMtte1MBpegfCArhqOe3Bj52avVj1huLLxNKYKXYaSxZ2F+woK1ekXfw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" -"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": +"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== @@ -220,7 +206,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-numeric-separator@^7.8.3": +"@babel/plugin-syntax-numeric-separator@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== @@ -248,7 +234,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-top-level-await@^7.8.3": +"@babel/plugin-syntax-private-property-in-object@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" + integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-top-level-await@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== @@ -256,44 +249,41 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz#58d458271b4d3b6bb27ee6ac9525acbb259bad1c" - integrity sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - -"@babel/template@^7.24.7", "@babel/template@^7.3.3": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315" - integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/parser" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.8.tgz#6c14ed5232b7549df3371d820fbd9abfcd7dfab7" - integrity sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.8" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-hoist-variables" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" - "@babel/parser" "^7.24.8" - "@babel/types" "^7.24.8" + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.7.tgz#bfc05b0cc31ebd8af09964650cee723bb228108b" + integrity sha512-rR+5FDjpCHqqZN2bzZm18bVYGaejGq5ZkpVCJLXor/+zlSrSoc4KWcHI0URVWjl/68Dyr1uwZUz/1njycEAv9g== + dependencies: + "@babel/helper-plugin-utils" "^7.25.7" + +"@babel/template@^7.25.7", "@babel/template@^7.3.3": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.7.tgz#27f69ce382855d915b14ab0fe5fb4cbf88fa0769" + integrity sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/traverse@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.7.tgz#83e367619be1cab8e4f2892ef30ba04c26a40fa8" + integrity sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/generator" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/template" "^7.25.7" + "@babel/types" "^7.25.7" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.24.9", "@babel/types@^7.3.3": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.9.tgz#228ce953d7b0d16646e755acf204f4cf3d08cc73" - integrity sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.7", "@babel/types@^7.25.8", "@babel/types@^7.3.3": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.8.tgz#5cf6037258e8a9bcad533f4979025140cb9993e1" + integrity sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg== dependencies: - "@babel/helper-string-parser" "^7.24.8" - "@babel/helper-validator-identifier" "^7.24.7" + "@babel/helper-string-parser" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": @@ -657,11 +647,11 @@ form-data "^4.0.0" "@types/node@*": - version "20.14.10" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.10.tgz#a1a218290f1b6428682e3af044785e5874db469a" - integrity sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ== + version "22.7.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.6.tgz#3ec3e2b071e136cd11093c19128405e1d1f92f33" + integrity sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw== dependencies: - undici-types "~5.26.4" + undici-types "~6.19.2" "@types/node@17.0.33": version "17.0.33" @@ -694,9 +684,9 @@ integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== "@types/yargs@^17.0.8": - version "17.0.32" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.32.tgz#030774723a2f7faafebf645f4e5a48371dca6229" - integrity sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog== + version "17.0.33" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.33.tgz#8c32303da83eec050a84b3c7ae7b9f922d13e32d" + integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA== dependencies: "@types/yargs-parser" "*" @@ -714,16 +704,16 @@ acorn-globals@^7.0.0: acorn-walk "^8.0.2" acorn-walk@^8.0.2: - version "8.3.3" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e" - integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw== + version "8.3.4" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" + integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== dependencies: acorn "^8.11.0" acorn@^8.1.0, acorn@^8.11.0, acorn@^8.8.1: - version "8.12.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" - integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== + version "8.13.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.13.0.tgz#2a30d670818ad16ddd6a35d3842dacec9e5d7ca3" + integrity sha512-8zSiw54Oxrdym50NlZ9sUusyO1Z1ZchgRLWRaK6c86XJFClyCgFKetdowBg5bKxyp/u+CDBJG4Mpp0m3HLZl9w== agent-base@6: version "6.0.2" @@ -818,22 +808,25 @@ babel-plugin-jest-hoist@^29.6.3: "@types/babel__traverse" "^7.0.6" babel-preset-current-node-syntax@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" - integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== + version "1.1.0" + resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz#9a929eafece419612ef4ae4f60b1862ebad8ef30" + integrity sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw== dependencies: "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.8.3" - "@babel/plugin-syntax-import-meta" "^7.8.3" + "@babel/plugin-syntax-class-properties" "^7.12.13" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-import-attributes" "^7.24.7" + "@babel/plugin-syntax-import-meta" "^7.10.4" "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-top-level-await" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" babel-preset-jest@^29.6.3: version "29.6.3" @@ -863,14 +856,14 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.23.1: - version "4.23.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.2.tgz#244fe803641f1c19c28c48c4b6ec9736eb3d32ed" - integrity sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA== +browserslist@^4.24.0: + version "4.24.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4" + integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A== dependencies: - caniuse-lite "^1.0.30001640" - electron-to-chromium "^1.4.820" - node-releases "^2.0.14" + caniuse-lite "^1.0.30001663" + electron-to-chromium "^1.5.28" + node-releases "^2.0.18" update-browserslist-db "^1.1.0" bs-logger@0.x: @@ -918,10 +911,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001640: - version "1.0.30001642" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001642.tgz#6aa6610eb24067c246d30c57f055a9d0a7f8d05f" - integrity sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA== +caniuse-lite@^1.0.30001663: + version "1.0.30001669" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001669.tgz#fda8f1d29a8bfdc42de0c170d7f34a9cf19ed7a3" + integrity sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w== chalk@^2.4.2: version "2.4.2" @@ -951,9 +944,9 @@ ci-info@^3.2.0: integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cjs-module-lexer@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz#c485341ae8fd999ca4ee5af2d7a1c9ae01e0099c" - integrity sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q== + version "1.4.1" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170" + integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA== cliui@^8.0.1: version "8.0.1" @@ -1064,11 +1057,11 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.3.5" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" - integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + version "4.3.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" + integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== dependencies: - ms "2.1.2" + ms "^2.1.3" decimal.js@^10.4.2: version "10.4.3" @@ -1116,10 +1109,10 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -electron-to-chromium@^1.4.820: - version "1.4.827" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.827.tgz#76068ed1c71dd3963e1befc8ae815004b2da6a02" - integrity sha512-VY+J0e4SFcNfQy19MEoMdaIcZLmDCprqvBtkii1WTCTQHpRvf5N8+3kTYCgL/PcntvwQvmMJWTuDPsq+IlhWKQ== +electron-to-chromium@^1.5.28: + version "1.5.40" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.40.tgz#5f6aec13751123c5c3185999ebe3e7bcaf828c2b" + integrity sha512-LYm78o6if4zTasnYclgQzxEcgMoIcybWOhkATWepN95uwVVWV0/IW10v+2sIeHE+bIYWipLneTftVyQm45UY7g== emittery@^0.13.1: version "0.13.1" @@ -1131,7 +1124,7 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -entities@^4.4.0: +entities@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== @@ -1155,10 +1148,10 @@ es-errors@^1.3.0: resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -escalade@^3.1.1, escalade@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== +escalade@^3.1.1, escalade@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-string-regexp@^1.0.5: version "1.0.5" @@ -1254,7 +1247,7 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -form-data@4.0.0, form-data@^4.0.0: +form-data@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== @@ -1263,6 +1256,15 @@ form-data@4.0.0, form-data@^4.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" +form-data@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48" + integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + formdata-node@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/formdata-node/-/formdata-node-6.0.3.tgz#48f8e2206ae2befded82af621ef015f08168dc6d" @@ -1419,9 +1421,9 @@ iconv-lite@0.6.3: safer-buffer ">= 2.1.2 < 3.0.0" import-local@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" - integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== + version "3.2.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.2.0.tgz#c3d5c745798c02a6f8b897726aba5100186ee260" + integrity sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA== dependencies: pkg-dir "^4.2.0" resolve-cwd "^3.0.0" @@ -1450,9 +1452,9 @@ is-arrayish@^0.2.1: integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.13.0: - version "2.14.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.14.0.tgz#43b8ef9f46a6a08888db67b1ffd4ec9e3dfd59d1" - integrity sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A== + version "2.15.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" + integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== dependencies: hasown "^2.0.2" @@ -1961,10 +1963,10 @@ jsdom@^20.0.0: ws "^8.11.0" xml-name-validator "^4.0.0" -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== +jsesc@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" + integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== json-parse-even-better-errors@^2.3.0: version "2.3.1" @@ -2035,9 +2037,9 @@ merge-stream@^2.0.0: integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== micromatch@^4.0.4: - version "4.0.7" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5" - integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q== + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== dependencies: braces "^3.0.3" picomatch "^2.3.1" @@ -2066,10 +2068,10 @@ minimatch@^3.0.4, minimatch@^3.1.1: dependencies: brace-expansion "^1.1.7" -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== natural-compare@^1.4.0: version "1.4.0" @@ -2088,10 +2090,10 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" - integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== +node-releases@^2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== normalize-path@^3.0.0: version "3.0.0" @@ -2106,9 +2108,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.12" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.12.tgz#fb6af5c0ec35b27b4581eb3bbad34ec9e5c696f8" - integrity sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w== + version "2.2.13" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.13.tgz#e56b4e98960e7a040e5474536587e599c4ff4655" + integrity sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ== object-inspect@^1.13.1: version "1.13.2" @@ -2166,11 +2168,11 @@ parse-json@^5.2.0: lines-and-columns "^1.1.6" parse5@^7.0.0, parse5@^7.1.1: - version "7.1.2" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32" - integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw== + version "7.2.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.2.0.tgz#8a0591ce9b7c5e2027173ab737d4d3fc3d826fab" + integrity sha512-ZkDsAOcxsUMZ4Lz5fVciOehNcJ+Gb8gTzcA4yl3wnc273BAybYWrQ+Ks/OjCjSEpjvQkDSeZbybK9qj2VHHdGA== dependencies: - entities "^4.4.0" + entities "^4.5.0" path-exists@^4.0.0: version "4.0.0" @@ -2192,10 +2194,10 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -picocolors@^1.0.0, picocolors@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" - integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== +picocolors@^1.0.0, picocolors@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" @@ -2327,9 +2329,9 @@ semver@^6.3.0, semver@^6.3.1: integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== semver@^7.5.3, semver@^7.5.4: - version "7.6.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" - integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== set-function-length@^1.2.1: version "1.2.2" @@ -2552,10 +2554,10 @@ typescript@4.6.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== universalify@^0.2.0: version "0.2.0" @@ -2563,12 +2565,12 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" - integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== + version "1.1.1" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz#80846fba1d79e82547fb661f8d141e0945755fe5" + integrity sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A== dependencies: - escalade "^3.1.2" - picocolors "^1.0.1" + escalade "^3.2.0" + picocolors "^1.1.0" url-join@4.0.1: version "4.0.1"