diff --git a/README.md b/README.md index 195154b..3df6c11 100644 --- a/README.md +++ b/README.md @@ -490,7 +490,10 @@ const response = await client.apps.list({ limit: 1, q: "q", sortKey: "name", - sortDirection: "asc" + sortDirection: "asc", + hasComponents: true, + hasActions: true, + hasTriggers: true }); for await (const item of response) { console.log(item); @@ -503,7 +506,10 @@ let page = await client.apps.list({ limit: 1, q: "q", sortKey: "name", - sortDirection: "asc" + sortDirection: "asc", + hasComponents: true, + hasActions: true, + hasTriggers: true }); while (page.hasNextPage()) { page = page.getNextPage(); diff --git a/package.json b/package.json index 7c23760..d43ecd5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/sdk", - "version": "2.3.3", + "version": "2.3.4", "private": false, "repository": "github:PipedreamHQ/pipedream-sdk-typescript", "type": "commonjs", diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts index 3877f49..aa29374 100644 --- a/src/api/resources/apps/client/Client.ts +++ b/src/api/resources/apps/client/Client.ts @@ -36,7 +36,10 @@ export class Apps { * limit: 1, * q: "q", * sortKey: "name", - * sortDirection: "asc" + * sortDirection: "asc", + * hasComponents: true, + * hasActions: true, + * hasTriggers: true * }) */ public async list( @@ -45,7 +48,18 @@ export class Apps { ): Promise> { const list = core.HttpResponsePromise.interceptFunction( async (request: Pipedream.AppsListRequest): Promise> => { - const { after, before, limit, q, sortKey, sortDirection, categoryIds } = request; + const { + after, + before, + limit, + q, + sortKey, + sortDirection, + categoryIds, + hasComponents, + hasActions, + hasTriggers, + } = request; const _queryParams: Record = {}; if (after != null) { _queryParams.after = after; @@ -78,6 +92,15 @@ export class Apps { _queryParams.category_ids = categoryIds; } } + if (hasComponents != null) { + _queryParams.has_components = hasComponents.toString(); + } + if (hasActions != null) { + _queryParams.has_actions = hasActions.toString(); + } + if (hasTriggers != null) { + _queryParams.has_triggers = hasTriggers.toString(); + } const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, mergeOnlyDefinedHeaders({ diff --git a/src/api/resources/apps/client/requests/AppsListRequest.ts b/src/api/resources/apps/client/requests/AppsListRequest.ts index 1d04fbf..3c492d0 100644 --- a/src/api/resources/apps/client/requests/AppsListRequest.ts +++ b/src/api/resources/apps/client/requests/AppsListRequest.ts @@ -10,7 +10,10 @@ import type * as Pipedream from "../../../../index.js"; * limit: 1, * q: "q", * sortKey: "name", - * sortDirection: "asc" + * sortDirection: "asc", + * hasComponents: true, + * hasActions: true, + * hasTriggers: true * } */ export interface AppsListRequest { @@ -28,4 +31,10 @@ export interface AppsListRequest { sortDirection?: Pipedream.AppsListRequestSortDirection; /** Only return apps in these categories */ categoryIds?: string | string[]; + /** Filter to apps that have components (actions or triggers) */ + hasComponents?: boolean; + /** Filter to apps that have actions */ + hasActions?: boolean; + /** Filter to apps that have triggers */ + hasTriggers?: boolean; } diff --git a/src/api/resources/projects/client/requests/CreateProjectOpts.ts b/src/api/resources/projects/client/requests/CreateProjectOpts.ts index 7499c3b..a26c091 100644 --- a/src/api/resources/projects/client/requests/CreateProjectOpts.ts +++ b/src/api/resources/projects/client/requests/CreateProjectOpts.ts @@ -13,4 +13,6 @@ export interface CreateProjectOpts { appName?: string; /** Support email displayed to end users */ supportEmail?: string; + /** Send a test request to the upstream API when adding Connect accounts for key-based apps */ + connectRequireKeyAuthTest?: boolean; } diff --git a/src/api/resources/projects/client/requests/UpdateProjectOpts.ts b/src/api/resources/projects/client/requests/UpdateProjectOpts.ts index 5a5ba1e..b2216d4 100644 --- a/src/api/resources/projects/client/requests/UpdateProjectOpts.ts +++ b/src/api/resources/projects/client/requests/UpdateProjectOpts.ts @@ -11,4 +11,6 @@ export interface UpdateProjectOpts { appName?: string; /** Support email displayed to end users */ supportEmail?: string; + /** Send a test request to the upstream API when adding Connect accounts for key-based apps */ + connectRequireKeyAuthTest?: boolean; } diff --git a/src/api/types/Project.ts b/src/api/types/Project.ts index 5fc26df..a1a60eb 100644 --- a/src/api/types/Project.ts +++ b/src/api/types/Project.ts @@ -12,4 +12,6 @@ export interface Project { appName?: string; /** Support email configured for the project */ supportEmail?: string; + /** Send a test request to the upstream API when adding Connect accounts for key-based apps */ + connectRequireKeyAuthTest?: boolean; } diff --git a/src/serialization/resources/projects/client/requests/CreateProjectOpts.ts b/src/serialization/resources/projects/client/requests/CreateProjectOpts.ts index 82d09e8..598b6f0 100644 --- a/src/serialization/resources/projects/client/requests/CreateProjectOpts.ts +++ b/src/serialization/resources/projects/client/requests/CreateProjectOpts.ts @@ -11,6 +11,10 @@ export const CreateProjectOpts: core.serialization.Schema< name: core.serialization.string(), appName: core.serialization.property("app_name", core.serialization.string().optional()), supportEmail: core.serialization.property("support_email", core.serialization.string().optional()), + connectRequireKeyAuthTest: core.serialization.property( + "connect_require_key_auth_test", + core.serialization.boolean().optional(), + ), }); export declare namespace CreateProjectOpts { @@ -18,5 +22,6 @@ export declare namespace CreateProjectOpts { name: string; app_name?: string | null; support_email?: string | null; + connect_require_key_auth_test?: boolean | null; } } diff --git a/src/serialization/resources/projects/client/requests/UpdateProjectOpts.ts b/src/serialization/resources/projects/client/requests/UpdateProjectOpts.ts index 5f3060d..23600bd 100644 --- a/src/serialization/resources/projects/client/requests/UpdateProjectOpts.ts +++ b/src/serialization/resources/projects/client/requests/UpdateProjectOpts.ts @@ -11,6 +11,10 @@ export const UpdateProjectOpts: core.serialization.Schema< name: core.serialization.string().optional(), appName: core.serialization.property("app_name", core.serialization.string().optional()), supportEmail: core.serialization.property("support_email", core.serialization.string().optional()), + connectRequireKeyAuthTest: core.serialization.property( + "connect_require_key_auth_test", + core.serialization.boolean().optional(), + ), }); export declare namespace UpdateProjectOpts { @@ -18,5 +22,6 @@ export declare namespace UpdateProjectOpts { name?: string | null; app_name?: string | null; support_email?: string | null; + connect_require_key_auth_test?: boolean | null; } } diff --git a/src/serialization/types/Project.ts b/src/serialization/types/Project.ts index f8c83fe..6ffff43 100644 --- a/src/serialization/types/Project.ts +++ b/src/serialization/types/Project.ts @@ -10,6 +10,10 @@ export const Project: core.serialization.ObjectSchema