Skip to content

Commit f0c1139

Browse files
authored
Add missing fields in SDK types (#17033)
* Add `endpoint_url` field to the component metadata, providing the URL to the HTTP interface of the component. * Add missing pagination fields to the `GetComponentsResponse` and `GetAccountsResponse` types.
1 parent c671c73 commit f0c1139

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

packages/sdk/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
# Changelog
44

5+
## [1.6.8] - 2025-06-07
6+
7+
### Added
8+
9+
- Added `endpoint_url` field to the component metadata, providing the URL to the
10+
HTTP interface of the component.
11+
- Added missing pagination fields to the `GetComponentsResponse` and
12+
`GetAccountsResponse` types.
13+
514
## [1.6.7] - 2025-06-06
615

716
### Added

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pipedream/sdk",
33
"type": "module",
4-
"version": "1.6.7",
4+
"version": "1.6.8",
55
"description": "Pipedream SDK",
66
"main": "./dist/server.js",
77
"module": "./dist/server.js",

packages/sdk/src/shared/component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ export type V1DeployedComponent<T extends ConfigurableProps = any> = { // eslint
157157
name: string;
158158
name_slug: string;
159159
callback_observations?: unknown;
160+
161+
/**
162+
* The URL to the HTTP interface of this component, if it has one.
163+
*/
164+
endpoint_url?: string;
160165
};
161166

162167
export type V1EmittedEvent = {

packages/sdk/src/shared/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ export type ConnectTokenResponse = {
497497
/**
498498
* The response received when retrieving a list of accounts.
499499
*/
500-
export type GetAccountsResponse = { data: Account[]; };
500+
export type GetAccountsResponse = PaginationResponse & {
501+
data: Account[];
502+
};
501503

502504
/**
503505
* @deprecated Use `GetAccountsResponse` instead.
@@ -527,7 +529,7 @@ export type AppRequestResponse = GetAppResponse;
527529
/**
528530
* The response received when retrieving a list of components.
529531
*/
530-
export type GetComponentsResponse = {
532+
export type GetComponentsResponse = PaginationResponse & {
531533
data: V1Component[];
532534
};
533535

pnpm-lock.yaml

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)