From 1d4018a51662aa2e718ce63b48251cd023c082bc Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 17:48:04 +0000 Subject: [PATCH] SDK regeneration --- src/Client.ts | 6 +- src/api/resources/actions/client/Client.ts | 38 +++++------- .../requests/ActionsConfigurePropRequest.ts | 20 ------- .../requests/ActionsReloadPropsRequest.ts | 19 ------ .../actions/client/requests/RunActionOpts.ts | 1 - .../actions/client/requests/index.ts | 2 - src/api/resources/components/client/Client.ts | 34 ++++------- .../ComponentsConfigurePropRequest.ts | 20 ------- .../requests/ComponentsReloadPropsRequest.ts | 19 ------ .../components/client/requests/index.ts | 2 - src/api/resources/tokens/client/Client.ts | 21 +++---- .../client/requests/TokensValidateRequest.ts | 15 +++-- src/api/resources/triggers/client/Client.ts | 34 ++++------- .../requests/TriggersConfigurePropRequest.ts | 20 ------- .../requests/TriggersReloadPropsRequest.ts | 19 ------ .../triggers/client/requests/index.ts | 2 - .../types/ConfigurablePropAirtableBaseId.ts | 29 +++++++++ .../types/ConfigurablePropAirtableFieldId.ts | 29 +++++++++ .../types/ConfigurablePropAirtableTableId.ts | 29 +++++++++ .../types/ConfigurablePropAirtableViewId.ts | 29 +++++++++ src/api/types/ConfigurablePropApphook.ts | 35 +++++++++++ src/api/types/ConfigurablePropDb.ts | 27 +++++++++ .../types/ConfigurablePropDiscordChannel.ts | 29 +++++++++ .../ConfigurablePropDiscordChannelArray.ts | 29 +++++++++ src/api/types/ConfigurablePropHttp.ts | 29 +++++++++ src/api/types/ConfigurablePropInteger.ts | 4 ++ src/api/types/ConfigurablePropIntegerArray.ts | 35 +++++++++++ src/api/types/ConfigurablePropSql.ts | 37 ++++++++++++ src/api/types/ConfigurablePropTimer.ts | 51 ++++++++++++++++ src/api/types/TimerCron.ts | 11 ++++ src/api/types/TimerInterval.ts | 11 ++++ src/api/types/ValidateTokenParams.ts | 13 ---- .../actions/client/requests/RunActionOpts.ts | 24 ++++---- .../types/ConfigurablePropAirtableBaseId.ts | 42 +++++++++++++ .../types/ConfigurablePropAirtableFieldId.ts | 42 +++++++++++++ .../types/ConfigurablePropAirtableTableId.ts | 42 +++++++++++++ .../types/ConfigurablePropAirtableViewId.ts | 42 +++++++++++++ .../types/ConfigurablePropApphook.ts | 48 +++++++++++++++ src/serialization/types/ConfigurablePropDb.ts | 40 +++++++++++++ .../types/ConfigurablePropDiscordChannel.ts | 42 +++++++++++++ .../ConfigurablePropDiscordChannelArray.ts | 42 +++++++++++++ .../types/ConfigurablePropHttp.ts | 42 +++++++++++++ .../types/ConfigurablePropInteger.ts | 4 ++ .../types/ConfigurablePropIntegerArray.ts | 48 +++++++++++++++ .../types/ConfigurablePropSql.ts | 45 ++++++++++++++ .../types/ConfigurablePropTimer.ts | 49 +++++++++++++++ src/serialization/types/TimerCron.ts | 18 ++++++ src/serialization/types/TimerInterval.ts | 18 ++++++ .../types/ValidateTokenParams.ts | 22 ------- src/serialization/types/index.ts | 15 ++++- src/version.ts | 2 +- yarn.lock | 60 +++++++++---------- 52 files changed, 1097 insertions(+), 289 deletions(-) delete mode 100644 src/api/resources/actions/client/requests/ActionsConfigurePropRequest.ts delete mode 100644 src/api/resources/actions/client/requests/ActionsReloadPropsRequest.ts delete mode 100644 src/api/resources/components/client/requests/ComponentsConfigurePropRequest.ts delete mode 100644 src/api/resources/components/client/requests/ComponentsReloadPropsRequest.ts delete mode 100644 src/api/resources/triggers/client/requests/TriggersConfigurePropRequest.ts delete mode 100644 src/api/resources/triggers/client/requests/TriggersReloadPropsRequest.ts create mode 100644 src/api/types/ConfigurablePropAirtableBaseId.ts create mode 100644 src/api/types/ConfigurablePropAirtableFieldId.ts create mode 100644 src/api/types/ConfigurablePropAirtableTableId.ts create mode 100644 src/api/types/ConfigurablePropAirtableViewId.ts create mode 100644 src/api/types/ConfigurablePropApphook.ts create mode 100644 src/api/types/ConfigurablePropDb.ts create mode 100644 src/api/types/ConfigurablePropDiscordChannel.ts create mode 100644 src/api/types/ConfigurablePropDiscordChannelArray.ts create mode 100644 src/api/types/ConfigurablePropHttp.ts create mode 100644 src/api/types/ConfigurablePropIntegerArray.ts create mode 100644 src/api/types/ConfigurablePropSql.ts create mode 100644 src/api/types/ConfigurablePropTimer.ts create mode 100644 src/api/types/TimerCron.ts create mode 100644 src/api/types/TimerInterval.ts delete mode 100644 src/api/types/ValidateTokenParams.ts create mode 100644 src/serialization/types/ConfigurablePropAirtableBaseId.ts create mode 100644 src/serialization/types/ConfigurablePropAirtableFieldId.ts create mode 100644 src/serialization/types/ConfigurablePropAirtableTableId.ts create mode 100644 src/serialization/types/ConfigurablePropAirtableViewId.ts create mode 100644 src/serialization/types/ConfigurablePropApphook.ts create mode 100644 src/serialization/types/ConfigurablePropDb.ts create mode 100644 src/serialization/types/ConfigurablePropDiscordChannel.ts create mode 100644 src/serialization/types/ConfigurablePropDiscordChannelArray.ts create mode 100644 src/serialization/types/ConfigurablePropHttp.ts create mode 100644 src/serialization/types/ConfigurablePropIntegerArray.ts create mode 100644 src/serialization/types/ConfigurablePropSql.ts create mode 100644 src/serialization/types/ConfigurablePropTimer.ts create mode 100644 src/serialization/types/TimerCron.ts create mode 100644 src/serialization/types/TimerInterval.ts delete mode 100644 src/serialization/types/ValidateTokenParams.ts diff --git a/src/Client.ts b/src/Client.ts index 0f7c8e6..1381475 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -51,7 +51,7 @@ export declare namespace PipedreamClient { export class PipedreamClient { protected readonly _options: PipedreamClient.Options; - protected readonly _oauthTokenProvider: core.OAuthTokenProvider; + private readonly _oauthTokenProvider: core.OAuthTokenProvider; protected _appCategories: AppCategories | undefined; protected _apps: Apps | undefined; protected _accounts: Accounts | undefined; @@ -73,8 +73,8 @@ export class PipedreamClient { "x-pd-environment": _options?.projectEnvironment, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@pipedream/sdk", - "X-Fern-SDK-Version": "2.0.0-rc.7", - "User-Agent": "@pipedream/sdk/2.0.0-rc.7", + "X-Fern-SDK-Version": "2.0.0", + "User-Agent": "@pipedream/sdk/2.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/actions/client/Client.ts b/src/api/resources/actions/client/Client.ts index 0eb39e2..d45bca5 100644 --- a/src/api/resources/actions/client/Client.ts +++ b/src/api/resources/actions/client/Client.ts @@ -231,30 +231,27 @@ export class Actions { } /** - * @param {Pipedream.ActionsConfigurePropRequest} request + * @param {Pipedream.ConfigurePropOpts} request * @param {Actions.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.actions.configureProp({ - * body: { - * id: "id", - * externalUserId: "external_user_id", - * propName: "prop_name" - * } + * id: "id", + * externalUserId: "external_user_id", + * propName: "prop_name" * }) */ public configureProp( - request: Pipedream.ActionsConfigurePropRequest, + request: Pipedream.ConfigurePropOpts, requestOptions?: Actions.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__configureProp(request, requestOptions)); } private async __configureProp( - request: Pipedream.ActionsConfigurePropRequest, + request: Pipedream.ConfigurePropOpts, requestOptions?: Actions.RequestOptions, ): Promise> { - const { asyncHandle, body: _body } = request; const _response = await core.fetcher({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -267,7 +264,6 @@ export class Actions { this._options?.headers, mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader(), - "x-async-handle": asyncHandle != null ? asyncHandle : undefined, "x-pd-environment": requestOptions?.projectEnvironment, }), requestOptions?.headers, @@ -275,7 +271,7 @@ export class Actions { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.ConfigurePropOpts.jsonOrThrow(_body, { + body: serializers.ConfigurePropOpts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), @@ -324,29 +320,26 @@ export class Actions { } /** - * @param {Pipedream.ActionsReloadPropsRequest} request + * @param {Pipedream.ReloadPropsOpts} request * @param {Actions.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.actions.reloadProps({ - * body: { - * id: "id", - * externalUserId: "external_user_id" - * } + * id: "id", + * externalUserId: "external_user_id" * }) */ public reloadProps( - request: Pipedream.ActionsReloadPropsRequest, + request: Pipedream.ReloadPropsOpts, requestOptions?: Actions.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__reloadProps(request, requestOptions)); } private async __reloadProps( - request: Pipedream.ActionsReloadPropsRequest, + request: Pipedream.ReloadPropsOpts, requestOptions?: Actions.RequestOptions, ): Promise> { - const { asyncHandle, body: _body } = request; const _response = await core.fetcher({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -359,7 +352,6 @@ export class Actions { this._options?.headers, mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader(), - "x-async-handle": asyncHandle != null ? asyncHandle : undefined, "x-pd-environment": requestOptions?.projectEnvironment, }), requestOptions?.headers, @@ -367,7 +359,7 @@ export class Actions { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.ReloadPropsOpts.jsonOrThrow(_body, { + body: serializers.ReloadPropsOpts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), @@ -436,7 +428,6 @@ export class Actions { request: Pipedream.RunActionOpts, requestOptions?: Actions.RequestOptions, ): Promise> { - const { asyncHandle, ..._body } = request; const _response = await core.fetcher({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -449,7 +440,6 @@ export class Actions { this._options?.headers, mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader(), - "x-async-handle": asyncHandle != null ? asyncHandle : undefined, "x-pd-environment": requestOptions?.projectEnvironment, }), requestOptions?.headers, @@ -457,7 +447,7 @@ export class Actions { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.RunActionOpts.jsonOrThrow(_body, { + body: serializers.RunActionOpts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), diff --git a/src/api/resources/actions/client/requests/ActionsConfigurePropRequest.ts b/src/api/resources/actions/client/requests/ActionsConfigurePropRequest.ts deleted file mode 100644 index d98fc76..0000000 --- a/src/api/resources/actions/client/requests/ActionsConfigurePropRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Pipedream from "../../../../index.js"; - -/** - * @example - * { - * body: { - * id: "id", - * externalUserId: "external_user_id", - * propName: "prop_name" - * } - * } - */ -export interface ActionsConfigurePropRequest { - asyncHandle?: string; - body: Pipedream.ConfigurePropOpts; -} diff --git a/src/api/resources/actions/client/requests/ActionsReloadPropsRequest.ts b/src/api/resources/actions/client/requests/ActionsReloadPropsRequest.ts deleted file mode 100644 index 59f23ed..0000000 --- a/src/api/resources/actions/client/requests/ActionsReloadPropsRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Pipedream from "../../../../index.js"; - -/** - * @example - * { - * body: { - * id: "id", - * externalUserId: "external_user_id" - * } - * } - */ -export interface ActionsReloadPropsRequest { - asyncHandle?: string; - body: Pipedream.ReloadPropsOpts; -} diff --git a/src/api/resources/actions/client/requests/RunActionOpts.ts b/src/api/resources/actions/client/requests/RunActionOpts.ts index 7d4c7de..65a0256 100644 --- a/src/api/resources/actions/client/requests/RunActionOpts.ts +++ b/src/api/resources/actions/client/requests/RunActionOpts.ts @@ -12,7 +12,6 @@ import * as Pipedream from "../../../../index.js"; * } */ export interface RunActionOpts { - asyncHandle?: string; /** The action component ID */ id: string; /** The external user ID */ diff --git a/src/api/resources/actions/client/requests/index.ts b/src/api/resources/actions/client/requests/index.ts index 3383535..f313388 100644 --- a/src/api/resources/actions/client/requests/index.ts +++ b/src/api/resources/actions/client/requests/index.ts @@ -1,4 +1,2 @@ export { type ActionsListRequest } from "./ActionsListRequest.js"; -export { type ActionsConfigurePropRequest } from "./ActionsConfigurePropRequest.js"; -export { type ActionsReloadPropsRequest } from "./ActionsReloadPropsRequest.js"; export { type RunActionOpts } from "./RunActionOpts.js"; diff --git a/src/api/resources/components/client/Client.ts b/src/api/resources/components/client/Client.ts index a80fdbb..7cdd615 100644 --- a/src/api/resources/components/client/Client.ts +++ b/src/api/resources/components/client/Client.ts @@ -231,30 +231,27 @@ export class Components { } /** - * @param {Pipedream.ComponentsConfigurePropRequest} request + * @param {Pipedream.ConfigurePropOpts} request * @param {Components.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.components.configureProp({ - * body: { - * id: "id", - * externalUserId: "external_user_id", - * propName: "prop_name" - * } + * id: "id", + * externalUserId: "external_user_id", + * propName: "prop_name" * }) */ public configureProp( - request: Pipedream.ComponentsConfigurePropRequest, + request: Pipedream.ConfigurePropOpts, requestOptions?: Components.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__configureProp(request, requestOptions)); } private async __configureProp( - request: Pipedream.ComponentsConfigurePropRequest, + request: Pipedream.ConfigurePropOpts, requestOptions?: Components.RequestOptions, ): Promise> { - const { asyncHandle, body: _body } = request; const _response = await core.fetcher({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -267,7 +264,6 @@ export class Components { this._options?.headers, mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader(), - "x-async-handle": asyncHandle != null ? asyncHandle : undefined, "x-pd-environment": requestOptions?.projectEnvironment, }), requestOptions?.headers, @@ -275,7 +271,7 @@ export class Components { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.ConfigurePropOpts.jsonOrThrow(_body, { + body: serializers.ConfigurePropOpts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), @@ -324,29 +320,26 @@ export class Components { } /** - * @param {Pipedream.ComponentsReloadPropsRequest} request + * @param {Pipedream.ReloadPropsOpts} request * @param {Components.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.components.reloadProps({ - * body: { - * id: "id", - * externalUserId: "external_user_id" - * } + * id: "id", + * externalUserId: "external_user_id" * }) */ public reloadProps( - request: Pipedream.ComponentsReloadPropsRequest, + request: Pipedream.ReloadPropsOpts, requestOptions?: Components.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__reloadProps(request, requestOptions)); } private async __reloadProps( - request: Pipedream.ComponentsReloadPropsRequest, + request: Pipedream.ReloadPropsOpts, requestOptions?: Components.RequestOptions, ): Promise> { - const { asyncHandle, body: _body } = request; const _response = await core.fetcher({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -359,7 +352,6 @@ export class Components { this._options?.headers, mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader(), - "x-async-handle": asyncHandle != null ? asyncHandle : undefined, "x-pd-environment": requestOptions?.projectEnvironment, }), requestOptions?.headers, @@ -367,7 +359,7 @@ export class Components { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.ReloadPropsOpts.jsonOrThrow(_body, { + body: serializers.ReloadPropsOpts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), diff --git a/src/api/resources/components/client/requests/ComponentsConfigurePropRequest.ts b/src/api/resources/components/client/requests/ComponentsConfigurePropRequest.ts deleted file mode 100644 index 454e2f4..0000000 --- a/src/api/resources/components/client/requests/ComponentsConfigurePropRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Pipedream from "../../../../index.js"; - -/** - * @example - * { - * body: { - * id: "id", - * externalUserId: "external_user_id", - * propName: "prop_name" - * } - * } - */ -export interface ComponentsConfigurePropRequest { - asyncHandle?: string; - body: Pipedream.ConfigurePropOpts; -} diff --git a/src/api/resources/components/client/requests/ComponentsReloadPropsRequest.ts b/src/api/resources/components/client/requests/ComponentsReloadPropsRequest.ts deleted file mode 100644 index 60173de..0000000 --- a/src/api/resources/components/client/requests/ComponentsReloadPropsRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Pipedream from "../../../../index.js"; - -/** - * @example - * { - * body: { - * id: "id", - * externalUserId: "external_user_id" - * } - * } - */ -export interface ComponentsReloadPropsRequest { - asyncHandle?: string; - body: Pipedream.ReloadPropsOpts; -} diff --git a/src/api/resources/components/client/requests/index.ts b/src/api/resources/components/client/requests/index.ts index 97a9657..eca4b1b 100644 --- a/src/api/resources/components/client/requests/index.ts +++ b/src/api/resources/components/client/requests/index.ts @@ -1,3 +1 @@ export { type ComponentsListRequest } from "./ComponentsListRequest.js"; -export { type ComponentsConfigurePropRequest } from "./ComponentsConfigurePropRequest.js"; -export { type ComponentsReloadPropsRequest } from "./ComponentsReloadPropsRequest.js"; diff --git a/src/api/resources/tokens/client/Client.ts b/src/api/resources/tokens/client/Client.ts index da2b505..5a841ac 100644 --- a/src/api/resources/tokens/client/Client.ts +++ b/src/api/resources/tokens/client/Client.ts @@ -138,11 +138,13 @@ export class Tokens { * @param {Tokens.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.tokens.validate("ctok") + * await client.tokens.validate("ctok", { + * appId: "app_id" + * }) */ public validate( ctok: Pipedream.ConnectToken, - request: Pipedream.TokensValidateRequest = {}, + request: Pipedream.TokensValidateRequest, requestOptions?: Tokens.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__validate(ctok, request, requestOptions)); @@ -150,19 +152,14 @@ export class Tokens { private async __validate( ctok: Pipedream.ConnectToken, - request: Pipedream.TokensValidateRequest = {}, + request: Pipedream.TokensValidateRequest, requestOptions?: Tokens.RequestOptions, ): Promise> { - const { params } = request; + const { appId, oauthAppId } = request; const _queryParams: Record = {}; - if (params != null) { - _queryParams["params"] = serializers.ValidateTokenParams.jsonOrThrow(params, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - omitUndefined: true, - breadcrumbsPrefix: ["request", "params"], - }); + _queryParams["app_id"] = appId; + if (oauthAppId != null) { + _queryParams["oauth_app_id"] = oauthAppId; } const _response = await core.fetcher({ diff --git a/src/api/resources/tokens/client/requests/TokensValidateRequest.ts b/src/api/resources/tokens/client/requests/TokensValidateRequest.ts index b43cc0d..d1c0cd8 100644 --- a/src/api/resources/tokens/client/requests/TokensValidateRequest.ts +++ b/src/api/resources/tokens/client/requests/TokensValidateRequest.ts @@ -2,12 +2,19 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Pipedream from "../../../../index.js"; - /** * @example - * {} + * { + * appId: "app_id" + * } */ export interface TokensValidateRequest { - params?: Pipedream.ValidateTokenParams; + /** + * The app ID to validate against + */ + appId: string; + /** + * The OAuth app ID to validate against (if the token is for an OAuth app) + */ + oauthAppId?: string; } diff --git a/src/api/resources/triggers/client/Client.ts b/src/api/resources/triggers/client/Client.ts index 6952a86..59a4d9a 100644 --- a/src/api/resources/triggers/client/Client.ts +++ b/src/api/resources/triggers/client/Client.ts @@ -231,30 +231,27 @@ export class Triggers { } /** - * @param {Pipedream.TriggersConfigurePropRequest} request + * @param {Pipedream.ConfigurePropOpts} request * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.triggers.configureProp({ - * body: { - * id: "id", - * externalUserId: "external_user_id", - * propName: "prop_name" - * } + * id: "id", + * externalUserId: "external_user_id", + * propName: "prop_name" * }) */ public configureProp( - request: Pipedream.TriggersConfigurePropRequest, + request: Pipedream.ConfigurePropOpts, requestOptions?: Triggers.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__configureProp(request, requestOptions)); } private async __configureProp( - request: Pipedream.TriggersConfigurePropRequest, + request: Pipedream.ConfigurePropOpts, requestOptions?: Triggers.RequestOptions, ): Promise> { - const { asyncHandle, body: _body } = request; const _response = await core.fetcher({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -267,7 +264,6 @@ export class Triggers { this._options?.headers, mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader(), - "x-async-handle": asyncHandle != null ? asyncHandle : undefined, "x-pd-environment": requestOptions?.projectEnvironment, }), requestOptions?.headers, @@ -275,7 +271,7 @@ export class Triggers { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.ConfigurePropOpts.jsonOrThrow(_body, { + body: serializers.ConfigurePropOpts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), @@ -324,29 +320,26 @@ export class Triggers { } /** - * @param {Pipedream.TriggersReloadPropsRequest} request + * @param {Pipedream.ReloadPropsOpts} request * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.triggers.reloadProps({ - * body: { - * id: "id", - * externalUserId: "external_user_id" - * } + * id: "id", + * externalUserId: "external_user_id" * }) */ public reloadProps( - request: Pipedream.TriggersReloadPropsRequest, + request: Pipedream.ReloadPropsOpts, requestOptions?: Triggers.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__reloadProps(request, requestOptions)); } private async __reloadProps( - request: Pipedream.TriggersReloadPropsRequest, + request: Pipedream.ReloadPropsOpts, requestOptions?: Triggers.RequestOptions, ): Promise> { - const { asyncHandle, body: _body } = request; const _response = await core.fetcher({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -359,7 +352,6 @@ export class Triggers { this._options?.headers, mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader(), - "x-async-handle": asyncHandle != null ? asyncHandle : undefined, "x-pd-environment": requestOptions?.projectEnvironment, }), requestOptions?.headers, @@ -367,7 +359,7 @@ export class Triggers { contentType: "application/json", queryParameters: requestOptions?.queryParams, requestType: "json", - body: serializers.ReloadPropsOpts.jsonOrThrow(_body, { + body: serializers.ReloadPropsOpts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip", omitUndefined: true, }), diff --git a/src/api/resources/triggers/client/requests/TriggersConfigurePropRequest.ts b/src/api/resources/triggers/client/requests/TriggersConfigurePropRequest.ts deleted file mode 100644 index d736cc8..0000000 --- a/src/api/resources/triggers/client/requests/TriggersConfigurePropRequest.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Pipedream from "../../../../index.js"; - -/** - * @example - * { - * body: { - * id: "id", - * externalUserId: "external_user_id", - * propName: "prop_name" - * } - * } - */ -export interface TriggersConfigurePropRequest { - asyncHandle?: string; - body: Pipedream.ConfigurePropOpts; -} diff --git a/src/api/resources/triggers/client/requests/TriggersReloadPropsRequest.ts b/src/api/resources/triggers/client/requests/TriggersReloadPropsRequest.ts deleted file mode 100644 index 85b41e1..0000000 --- a/src/api/resources/triggers/client/requests/TriggersReloadPropsRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Pipedream from "../../../../index.js"; - -/** - * @example - * { - * body: { - * id: "id", - * externalUserId: "external_user_id" - * } - * } - */ -export interface TriggersReloadPropsRequest { - asyncHandle?: string; - body: Pipedream.ReloadPropsOpts; -} diff --git a/src/api/resources/triggers/client/requests/index.ts b/src/api/resources/triggers/client/requests/index.ts index 2859cb5..b57789a 100644 --- a/src/api/resources/triggers/client/requests/index.ts +++ b/src/api/resources/triggers/client/requests/index.ts @@ -1,4 +1,2 @@ export { type TriggersListRequest } from "./TriggersListRequest.js"; -export { type TriggersConfigurePropRequest } from "./TriggersConfigurePropRequest.js"; -export { type TriggersReloadPropsRequest } from "./TriggersReloadPropsRequest.js"; export { type DeployTriggerOpts } from "./DeployTriggerOpts.js"; diff --git a/src/api/types/ConfigurablePropAirtableBaseId.ts b/src/api/types/ConfigurablePropAirtableBaseId.ts new file mode 100644 index 0000000..f9bd66f --- /dev/null +++ b/src/api/types/ConfigurablePropAirtableBaseId.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropAirtableBaseId { + type?: "$.airtable.baseId"; + /** The name of the app prop that provides Airtable authentication */ + appProp?: string; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropAirtableFieldId.ts b/src/api/types/ConfigurablePropAirtableFieldId.ts new file mode 100644 index 0000000..ab86424 --- /dev/null +++ b/src/api/types/ConfigurablePropAirtableFieldId.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropAirtableFieldId { + type?: "$.airtable.fieldId"; + /** The name of the prop that provides the Airtable table ID */ + tableIdProp?: string; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropAirtableTableId.ts b/src/api/types/ConfigurablePropAirtableTableId.ts new file mode 100644 index 0000000..5dc6238 --- /dev/null +++ b/src/api/types/ConfigurablePropAirtableTableId.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropAirtableTableId { + type?: "$.airtable.tableId"; + /** The name of the prop that provides the Airtable base ID */ + baseIdProp?: string; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropAirtableViewId.ts b/src/api/types/ConfigurablePropAirtableViewId.ts new file mode 100644 index 0000000..28241d1 --- /dev/null +++ b/src/api/types/ConfigurablePropAirtableViewId.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropAirtableViewId { + type?: "$.airtable.viewId"; + /** The name of the prop that provides the Airtable table ID */ + tableIdProp?: string; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropApphook.ts b/src/api/types/ConfigurablePropApphook.ts new file mode 100644 index 0000000..9bdc3e3 --- /dev/null +++ b/src/api/types/ConfigurablePropApphook.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropApphook { + type?: "$.interface.apphook"; + /** The name of the app prop that this apphook depends on */ + appProp?: string; + /** List of event names to listen for */ + eventNames?: string[]; + /** Whether this apphook is remote */ + remote?: boolean; + /** Static configuration for the apphook */ + static?: unknown[]; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropDb.ts b/src/api/types/ConfigurablePropDb.ts new file mode 100644 index 0000000..9fa7244 --- /dev/null +++ b/src/api/types/ConfigurablePropDb.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropDb { + type?: "$.service.db"; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropDiscordChannel.ts b/src/api/types/ConfigurablePropDiscordChannel.ts new file mode 100644 index 0000000..01ce96a --- /dev/null +++ b/src/api/types/ConfigurablePropDiscordChannel.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropDiscordChannel { + type?: "$.discord.channel"; + /** The name of the app prop that provides Discord authentication */ + appProp?: string; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropDiscordChannelArray.ts b/src/api/types/ConfigurablePropDiscordChannelArray.ts new file mode 100644 index 0000000..4323822 --- /dev/null +++ b/src/api/types/ConfigurablePropDiscordChannelArray.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropDiscordChannelArray { + type?: "$.discord.channel[]"; + /** The name of the app prop that provides Discord authentication */ + appProp?: string; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropHttp.ts b/src/api/types/ConfigurablePropHttp.ts new file mode 100644 index 0000000..cef50eb --- /dev/null +++ b/src/api/types/ConfigurablePropHttp.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropHttp { + type?: "$.interface.http"; + /** Whether this HTTP interface allows custom responses */ + customResponse?: boolean; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropInteger.ts b/src/api/types/ConfigurablePropInteger.ts index 530c03d..4934b5d 100644 --- a/src/api/types/ConfigurablePropInteger.ts +++ b/src/api/types/ConfigurablePropInteger.ts @@ -8,6 +8,10 @@ export interface ConfigurablePropInteger { min?: number; /** The maximum value for this integer prop. */ max?: number; + /** Default integer value */ + default?: number; + /** Available integer options */ + options?: number[]; /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ name: string; /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ diff --git a/src/api/types/ConfigurablePropIntegerArray.ts b/src/api/types/ConfigurablePropIntegerArray.ts new file mode 100644 index 0000000..81870a3 --- /dev/null +++ b/src/api/types/ConfigurablePropIntegerArray.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropIntegerArray { + type?: "integer[]"; + /** The minimum value for integers in this array */ + min?: number; + /** The maximum value for integers in this array */ + max?: number; + /** Default array of integers */ + default?: number[]; + /** Available options for the integer array */ + options?: number[]; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} diff --git a/src/api/types/ConfigurablePropSql.ts b/src/api/types/ConfigurablePropSql.ts new file mode 100644 index 0000000..58c7028 --- /dev/null +++ b/src/api/types/ConfigurablePropSql.ts @@ -0,0 +1,37 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConfigurablePropSql { + type?: "sql"; + auth?: ConfigurablePropSql.Auth; + /** Default SQL query */ + default?: string; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} + +export namespace ConfigurablePropSql { + export interface Auth { + /** The app that provides SQL authentication */ + app?: string; + } +} diff --git a/src/api/types/ConfigurablePropTimer.ts b/src/api/types/ConfigurablePropTimer.ts new file mode 100644 index 0000000..5125f0e --- /dev/null +++ b/src/api/types/ConfigurablePropTimer.ts @@ -0,0 +1,51 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Pipedream from "../index.js"; + +export interface ConfigurablePropTimer { + type?: "$.interface.timer"; + /** Static timer configuration */ + static?: ConfigurablePropTimer.Static; + /** Default timer configuration */ + default?: ConfigurablePropTimer.Default; + /** Available timer configuration options */ + options?: ConfigurablePropTimer.Options.Item[]; + /** When building `configuredProps`, make sure to use this field as the key when setting the prop value */ + name: string; + /** Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. */ + label?: string; + /** A description of the prop, shown to the user when configuring the component. */ + description?: string; + /** If true, this prop does not need to be specified. */ + optional?: boolean; + /** If true, this prop will be ignored. */ + disabled?: boolean; + /** If true, should not expose this prop to the user */ + hidden?: boolean; + /** If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options */ + remoteOptions?: boolean; + /** If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options */ + useQuery?: boolean; + /** If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one */ + reloadProps?: boolean; + /** If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label */ + withLabel?: boolean; +} + +export namespace ConfigurablePropTimer { + /** + * Static timer configuration + */ + export type Static = Pipedream.TimerInterval | Pipedream.TimerCron; + /** + * Default timer configuration + */ + export type Default = Pipedream.TimerInterval | Pipedream.TimerCron; + export type Options = Options.Item[]; + + export namespace Options { + export type Item = Pipedream.TimerInterval | Pipedream.TimerCron; + } +} diff --git a/src/api/types/TimerCron.ts b/src/api/types/TimerCron.ts new file mode 100644 index 0000000..1208ce8 --- /dev/null +++ b/src/api/types/TimerCron.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Timer configuration using cron expression + */ +export interface TimerCron { + /** Cron expression for timer execution */ + cron: string; +} diff --git a/src/api/types/TimerInterval.ts b/src/api/types/TimerInterval.ts new file mode 100644 index 0000000..137bad3 --- /dev/null +++ b/src/api/types/TimerInterval.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Timer configuration using interval in seconds + */ +export interface TimerInterval { + /** Interval in seconds for timer execution */ + intervalSeconds: number; +} diff --git a/src/api/types/ValidateTokenParams.ts b/src/api/types/ValidateTokenParams.ts deleted file mode 100644 index be0abf3..0000000 --- a/src/api/types/ValidateTokenParams.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Parameters for token validation - */ -export interface ValidateTokenParams { - /** The app ID to validate against */ - appId: string; - /** The OAuth app ID */ - oauthAppId?: string; -} diff --git a/src/serialization/resources/actions/client/requests/RunActionOpts.ts b/src/serialization/resources/actions/client/requests/RunActionOpts.ts index 7982e48..e0eca73 100644 --- a/src/serialization/resources/actions/client/requests/RunActionOpts.ts +++ b/src/serialization/resources/actions/client/requests/RunActionOpts.ts @@ -7,19 +7,17 @@ import * as Pipedream from "../../../../../api/index.js"; import * as core from "../../../../../core/index.js"; import { RunActionOptsStashId } from "../../../../types/RunActionOptsStashId.js"; -export const RunActionOpts: core.serialization.Schema< - serializers.RunActionOpts.Raw, - Omit -> = core.serialization.object({ - id: core.serialization.string(), - externalUserId: core.serialization.property("external_user_id", core.serialization.string()), - configuredProps: core.serialization.property( - "configured_props", - core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - ), - dynamicPropsId: core.serialization.property("dynamic_props_id", core.serialization.string().optional()), - stashId: core.serialization.property("stash_id", RunActionOptsStashId.optional()), -}); +export const RunActionOpts: core.serialization.Schema = + core.serialization.object({ + id: core.serialization.string(), + externalUserId: core.serialization.property("external_user_id", core.serialization.string()), + configuredProps: core.serialization.property( + "configured_props", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + ), + dynamicPropsId: core.serialization.property("dynamic_props_id", core.serialization.string().optional()), + stashId: core.serialization.property("stash_id", RunActionOptsStashId.optional()), + }); export declare namespace RunActionOpts { export interface Raw { diff --git a/src/serialization/types/ConfigurablePropAirtableBaseId.ts b/src/serialization/types/ConfigurablePropAirtableBaseId.ts new file mode 100644 index 0000000..34b6fad --- /dev/null +++ b/src/serialization/types/ConfigurablePropAirtableBaseId.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropAirtableBaseId: core.serialization.ObjectSchema< + serializers.ConfigurablePropAirtableBaseId.Raw, + Pipedream.ConfigurablePropAirtableBaseId +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.airtable.baseId").optional(), + appProp: core.serialization.string().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropAirtableBaseId { + export interface Raw { + type?: "$.airtable.baseId" | null; + appProp?: string | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropAirtableFieldId.ts b/src/serialization/types/ConfigurablePropAirtableFieldId.ts new file mode 100644 index 0000000..55b121d --- /dev/null +++ b/src/serialization/types/ConfigurablePropAirtableFieldId.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropAirtableFieldId: core.serialization.ObjectSchema< + serializers.ConfigurablePropAirtableFieldId.Raw, + Pipedream.ConfigurablePropAirtableFieldId +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.airtable.fieldId").optional(), + tableIdProp: core.serialization.string().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropAirtableFieldId { + export interface Raw { + type?: "$.airtable.fieldId" | null; + tableIdProp?: string | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropAirtableTableId.ts b/src/serialization/types/ConfigurablePropAirtableTableId.ts new file mode 100644 index 0000000..b6f8d9c --- /dev/null +++ b/src/serialization/types/ConfigurablePropAirtableTableId.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropAirtableTableId: core.serialization.ObjectSchema< + serializers.ConfigurablePropAirtableTableId.Raw, + Pipedream.ConfigurablePropAirtableTableId +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.airtable.tableId").optional(), + baseIdProp: core.serialization.string().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropAirtableTableId { + export interface Raw { + type?: "$.airtable.tableId" | null; + baseIdProp?: string | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropAirtableViewId.ts b/src/serialization/types/ConfigurablePropAirtableViewId.ts new file mode 100644 index 0000000..2afedeb --- /dev/null +++ b/src/serialization/types/ConfigurablePropAirtableViewId.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropAirtableViewId: core.serialization.ObjectSchema< + serializers.ConfigurablePropAirtableViewId.Raw, + Pipedream.ConfigurablePropAirtableViewId +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.airtable.viewId").optional(), + tableIdProp: core.serialization.string().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropAirtableViewId { + export interface Raw { + type?: "$.airtable.viewId" | null; + tableIdProp?: string | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropApphook.ts b/src/serialization/types/ConfigurablePropApphook.ts new file mode 100644 index 0000000..f92ec67 --- /dev/null +++ b/src/serialization/types/ConfigurablePropApphook.ts @@ -0,0 +1,48 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropApphook: core.serialization.ObjectSchema< + serializers.ConfigurablePropApphook.Raw, + Pipedream.ConfigurablePropApphook +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.interface.apphook").optional(), + appProp: core.serialization.string().optional(), + eventNames: core.serialization.list(core.serialization.string()).optional(), + remote: core.serialization.boolean().optional(), + static: core.serialization.list(core.serialization.unknown()).optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropApphook { + export interface Raw { + type?: "$.interface.apphook" | null; + appProp?: string | null; + eventNames?: string[] | null; + remote?: boolean | null; + static?: unknown[] | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropDb.ts b/src/serialization/types/ConfigurablePropDb.ts new file mode 100644 index 0000000..296b4a9 --- /dev/null +++ b/src/serialization/types/ConfigurablePropDb.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropDb: core.serialization.ObjectSchema< + serializers.ConfigurablePropDb.Raw, + Pipedream.ConfigurablePropDb +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.service.db").optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropDb { + export interface Raw { + type?: "$.service.db" | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropDiscordChannel.ts b/src/serialization/types/ConfigurablePropDiscordChannel.ts new file mode 100644 index 0000000..ed020f3 --- /dev/null +++ b/src/serialization/types/ConfigurablePropDiscordChannel.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropDiscordChannel: core.serialization.ObjectSchema< + serializers.ConfigurablePropDiscordChannel.Raw, + Pipedream.ConfigurablePropDiscordChannel +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.discord.channel").optional(), + appProp: core.serialization.string().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropDiscordChannel { + export interface Raw { + type?: "$.discord.channel" | null; + appProp?: string | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropDiscordChannelArray.ts b/src/serialization/types/ConfigurablePropDiscordChannelArray.ts new file mode 100644 index 0000000..a5f1f3e --- /dev/null +++ b/src/serialization/types/ConfigurablePropDiscordChannelArray.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropDiscordChannelArray: core.serialization.ObjectSchema< + serializers.ConfigurablePropDiscordChannelArray.Raw, + Pipedream.ConfigurablePropDiscordChannelArray +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.discord.channel[]").optional(), + appProp: core.serialization.string().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropDiscordChannelArray { + export interface Raw { + type?: "$.discord.channel[]" | null; + appProp?: string | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropHttp.ts b/src/serialization/types/ConfigurablePropHttp.ts new file mode 100644 index 0000000..775e8ba --- /dev/null +++ b/src/serialization/types/ConfigurablePropHttp.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropHttp: core.serialization.ObjectSchema< + serializers.ConfigurablePropHttp.Raw, + Pipedream.ConfigurablePropHttp +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.interface.http").optional(), + customResponse: core.serialization.boolean().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropHttp { + export interface Raw { + type?: "$.interface.http" | null; + customResponse?: boolean | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropInteger.ts b/src/serialization/types/ConfigurablePropInteger.ts index 26bbb62..779bd0b 100644 --- a/src/serialization/types/ConfigurablePropInteger.ts +++ b/src/serialization/types/ConfigurablePropInteger.ts @@ -13,6 +13,8 @@ export const ConfigurablePropInteger: core.serialization.ObjectSchema< type: core.serialization.stringLiteral("integer").optional(), min: core.serialization.number().optional(), max: core.serialization.number().optional(), + default: core.serialization.number().optional(), + options: core.serialization.list(core.serialization.number()).optional(), name: core.serialization.string(), label: core.serialization.string().optional(), description: core.serialization.string().optional(), @@ -30,6 +32,8 @@ export declare namespace ConfigurablePropInteger { type?: "integer" | null; min?: number | null; max?: number | null; + default?: number | null; + options?: number[] | null; name: string; label?: string | null; description?: string | null; diff --git a/src/serialization/types/ConfigurablePropIntegerArray.ts b/src/serialization/types/ConfigurablePropIntegerArray.ts new file mode 100644 index 0000000..9271e00 --- /dev/null +++ b/src/serialization/types/ConfigurablePropIntegerArray.ts @@ -0,0 +1,48 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const ConfigurablePropIntegerArray: core.serialization.ObjectSchema< + serializers.ConfigurablePropIntegerArray.Raw, + Pipedream.ConfigurablePropIntegerArray +> = core.serialization.object({ + type: core.serialization.stringLiteral("integer[]").optional(), + min: core.serialization.number().optional(), + max: core.serialization.number().optional(), + default: core.serialization.list(core.serialization.number()).optional(), + options: core.serialization.list(core.serialization.number()).optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropIntegerArray { + export interface Raw { + type?: "integer[]" | null; + min?: number | null; + max?: number | null; + default?: number[] | null; + options?: number[] | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropSql.ts b/src/serialization/types/ConfigurablePropSql.ts new file mode 100644 index 0000000..fe504ee --- /dev/null +++ b/src/serialization/types/ConfigurablePropSql.ts @@ -0,0 +1,45 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; +import { ConfigurablePropSqlAuth } from "./ConfigurablePropSqlAuth"; + +export const ConfigurablePropSql: core.serialization.ObjectSchema< + serializers.ConfigurablePropSql.Raw, + Pipedream.ConfigurablePropSql +> = core.serialization.object({ + type: core.serialization.stringLiteral("sql").optional(), + auth: ConfigurablePropSqlAuth.optional(), + default: core.serialization.string().optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropSql { + export interface Raw { + type?: "sql" | null; + auth?: ConfigurablePropSqlAuth.Raw | null; + default?: string | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/ConfigurablePropTimer.ts b/src/serialization/types/ConfigurablePropTimer.ts new file mode 100644 index 0000000..1745282 --- /dev/null +++ b/src/serialization/types/ConfigurablePropTimer.ts @@ -0,0 +1,49 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; +import { ConfigurablePropTimerStatic } from "./ConfigurablePropTimerStatic"; +import { ConfigurablePropTimerDefault } from "./ConfigurablePropTimerDefault"; +import { ConfigurablePropTimerOptionsItem } from "./ConfigurablePropTimerOptionsItem"; + +export const ConfigurablePropTimer: core.serialization.ObjectSchema< + serializers.ConfigurablePropTimer.Raw, + Pipedream.ConfigurablePropTimer +> = core.serialization.object({ + type: core.serialization.stringLiteral("$.interface.timer").optional(), + static: ConfigurablePropTimerStatic.optional(), + default: ConfigurablePropTimerDefault.optional(), + options: core.serialization.list(ConfigurablePropTimerOptionsItem).optional(), + name: core.serialization.string(), + label: core.serialization.string().optional(), + description: core.serialization.string().optional(), + optional: core.serialization.boolean().optional(), + disabled: core.serialization.boolean().optional(), + hidden: core.serialization.boolean().optional(), + remoteOptions: core.serialization.boolean().optional(), + useQuery: core.serialization.boolean().optional(), + reloadProps: core.serialization.boolean().optional(), + withLabel: core.serialization.boolean().optional(), +}); + +export declare namespace ConfigurablePropTimer { + export interface Raw { + type?: "$.interface.timer" | null; + static?: ConfigurablePropTimerStatic.Raw | null; + default?: ConfigurablePropTimerDefault.Raw | null; + options?: ConfigurablePropTimerOptionsItem.Raw[] | null; + name: string; + label?: string | null; + description?: string | null; + optional?: boolean | null; + disabled?: boolean | null; + hidden?: boolean | null; + remoteOptions?: boolean | null; + useQuery?: boolean | null; + reloadProps?: boolean | null; + withLabel?: boolean | null; + } +} diff --git a/src/serialization/types/TimerCron.ts b/src/serialization/types/TimerCron.ts new file mode 100644 index 0000000..162d86a --- /dev/null +++ b/src/serialization/types/TimerCron.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TimerCron: core.serialization.ObjectSchema = + core.serialization.object({ + cron: core.serialization.string(), + }); + +export declare namespace TimerCron { + export interface Raw { + cron: string; + } +} diff --git a/src/serialization/types/TimerInterval.ts b/src/serialization/types/TimerInterval.ts new file mode 100644 index 0000000..c161d51 --- /dev/null +++ b/src/serialization/types/TimerInterval.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index.js"; +import * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; + +export const TimerInterval: core.serialization.ObjectSchema = + core.serialization.object({ + intervalSeconds: core.serialization.number(), + }); + +export declare namespace TimerInterval { + export interface Raw { + intervalSeconds: number; + } +} diff --git a/src/serialization/types/ValidateTokenParams.ts b/src/serialization/types/ValidateTokenParams.ts deleted file mode 100644 index ee4aeee..0000000 --- a/src/serialization/types/ValidateTokenParams.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index.js"; -import * as Pipedream from "../../api/index.js"; -import * as core from "../../core/index.js"; - -export const ValidateTokenParams: core.serialization.ObjectSchema< - serializers.ValidateTokenParams.Raw, - Pipedream.ValidateTokenParams -> = core.serialization.object({ - appId: core.serialization.property("app_id", core.serialization.string()), - oauthAppId: core.serialization.property("oauth_app_id", core.serialization.string().optional()), -}); - -export declare namespace ValidateTokenParams { - export interface Raw { - app_id: string; - oauth_app_id?: string | null; - } -} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 05388a8..5e3391b 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -6,12 +6,26 @@ export * from "./BackendClientOpts.js"; export * from "./ClientOpts.js"; export * from "./Component.js"; export * from "./ComponentStash.js"; +export * from "./TimerInterval.js"; +export * from "./TimerCron.js"; export * from "./ConfigurableProp.js"; export * from "./ConfigurablePropAlert.js"; export * from "./ConfigurablePropAlertType.js"; export * from "./ConfigurablePropAny.js"; export * from "./ConfigurablePropApp.js"; export * from "./ConfigurablePropBoolean.js"; +export * from "./ConfigurablePropTimer.js"; +export * from "./ConfigurablePropApphook.js"; +export * from "./ConfigurablePropIntegerArray.js"; +export * from "./ConfigurablePropHttp.js"; +export * from "./ConfigurablePropDb.js"; +export * from "./ConfigurablePropSql.js"; +export * from "./ConfigurablePropAirtableBaseId.js"; +export * from "./ConfigurablePropAirtableTableId.js"; +export * from "./ConfigurablePropAirtableViewId.js"; +export * from "./ConfigurablePropAirtableFieldId.js"; +export * from "./ConfigurablePropDiscordChannel.js"; +export * from "./ConfigurablePropDiscordChannelArray.js"; export * from "./ConfigurablePropDiscord.js"; export * from "./ConfigurablePropInteger.js"; export * from "./ConfigurablePropObject.js"; @@ -53,5 +67,4 @@ export * from "./RunActionOptsStashId.js"; export * from "./RunActionResponse.js"; export * from "./StartConnectOpts.js"; export * from "./StashId.js"; -export * from "./ValidateTokenParams.js"; export * from "./ValidateTokenResponse.js"; diff --git a/src/version.ts b/src/version.ts index 69903b3..478f50d 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.0.0-rc.7"; +export const SDK_VERSION = "2.0.0"; diff --git a/yarn.lock b/yarn.lock index 5edd91e..d9d023c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -541,9 +541,9 @@ chalk "^4.0.0" "@jridgewell/gen-mapping@^0.3.12", "@jridgewell/gen-mapping@^0.3.5": - version "0.3.12" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz#2234ce26c62889f03db3d7fea43c1932ab3e927b" - integrity sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg== + version "0.3.13" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz#6342a19f44347518c93e43b1ac69deb3c4656a1f" + integrity sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA== dependencies: "@jridgewell/sourcemap-codec" "^1.5.0" "@jridgewell/trace-mapping" "^0.3.24" @@ -554,22 +554,22 @@ integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== "@jridgewell/source-map@^0.3.3": - version "0.3.10" - resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.10.tgz#a35714446a2e84503ff9bfe66f1d1d4846f2075b" - integrity sha512-0pPkgz9dY+bijgistcTTJ5mR+ocqRXLuhXHYdzoMmmoJ2C9S46RCm2GMUbatPEUK9Yjy26IrAy8D/M00lLkv+Q== + version "0.3.11" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.11.tgz#b21835cbd36db656b857c2ad02ebd413cc13a9ba" + integrity sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA== dependencies: "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": - version "1.5.4" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz#7358043433b2e5da569aa02cbc4c121da3af27d7" - integrity sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw== + version "1.5.5" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" + integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28": - version "0.3.29" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz#a58d31eaadaf92c6695680b2e1d464a9b8fbf7fc" - integrity sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ== + version "0.3.30" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz#4a76c4daeee5df09f5d3940e087442fb36ce2b99" + integrity sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q== dependencies: "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" @@ -1096,12 +1096,12 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.25.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.25.1.tgz#ba9e8e6f298a1d86f829c9b975e07948967bb111" - integrity sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw== + version "4.25.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.25.2.tgz#90c1507143742d743544ae6e92bca3348adff667" + integrity sha512-0si2SJK3ooGzIawRu61ZdPCO1IncZwS8IzuX73sPZsXW6EQ/w/DAfPyKI8l1ETTCr2MnvqWitmlCUxgdul45jA== dependencies: - caniuse-lite "^1.0.30001726" - electron-to-chromium "^1.5.173" + caniuse-lite "^1.0.30001733" + electron-to-chromium "^1.5.199" node-releases "^2.0.19" update-browserslist-db "^1.1.3" @@ -1147,10 +1147,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001726: - version "1.0.30001733" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001733.tgz#918405ed6647a62840fb328832cf5a03f986974b" - integrity sha512-e4QKw/O2Kavj2VQTKZWrwzkt3IxOmIlU6ajRb6LP64LHpBo1J67k2Hi4Vu/TgJWsNtynurfS0uK3MaUTCPfu5Q== +caniuse-lite@^1.0.30001733: + version "1.0.30001734" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001734.tgz#f97e08599e2d75664543ae4b6ef25dc2183c5cc6" + integrity sha512-uhE1Ye5vgqju6OI71HTQqcBCZrvHugk0MjLak7Q+HfoBgoq5Bi+5YnwjP4fjDgrtYr/l8MVRBvzz9dPD4KyK0A== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1344,10 +1344,10 @@ dunder-proto@^1.0.1: es-errors "^1.3.0" gopd "^1.2.0" -electron-to-chromium@^1.5.173: - version "1.5.199" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.199.tgz#4d8be9c78362c05f095eb7392e9a54f1fb14fd3a" - integrity sha512-3gl0S7zQd88kCAZRO/DnxtBKuhMO4h0EaQIN3YgZfV6+pW+5+bf2AdQeHNESCoaQqo/gjGVYEf2YM4O5HJQqpQ== +electron-to-chromium@^1.5.199: + version "1.5.200" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.200.tgz#adffa5db97390ce9d48987f528117a608ed0d7c9" + integrity sha512-rFCxROw7aOe4uPTfIAx+rXv9cEcGx+buAF4npnhtTqCJk5KDFRnh3+KYj7rdVh6lsFt5/aPs+Irj9rZ33WMA7w== emittery@^0.13.1: version "0.13.1" @@ -1359,7 +1359,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== -enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.2: +enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.3: version "5.18.3" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz#9b5f4c5c076b8787c78fe540392ce76a88855b44" integrity sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww== @@ -3053,9 +3053,9 @@ webpack-sources@^3.3.3: integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== webpack@^5.97.1: - version "5.101.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.101.0.tgz#4b81407ffad9857f81ff03f872e3369b9198cc9d" - integrity sha512-B4t+nJqytPeuZlHuIKTbalhljIFXeNRqrUGAQgTGlfOl2lXXKXw+yZu6bicycP+PUlM44CxBjCFD6aciKFT3LQ== + version "5.101.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.101.1.tgz#bda907efcb233161fe17690ef906a2b244bbfede" + integrity sha512-rHY3vHXRbkSfhG6fH8zYQdth/BtDgXXuR2pHF++1f/EBkI8zkgM5XWfsC3BvOoW9pr1CvZ1qQCxhCEsbNgT50g== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -3067,7 +3067,7 @@ webpack@^5.97.1: acorn-import-phases "^1.0.3" browserslist "^4.24.0" chrome-trace-event "^1.0.2" - enhanced-resolve "^5.17.2" + enhanced-resolve "^5.17.3" es-module-lexer "^1.2.1" eslint-scope "5.1.1" events "^3.2.0"