Skip to content

Commit ae2decb

Browse files
committed
feat(sdk): add install SDK entrypoint
1 parent f6d8d80 commit ae2decb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/sdk/src/modules/dashboard/apps/apps.sdk.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
getPayload,
88
jsonToFormData,
99
patchPayload,
10+
postPayload,
1011
type SdkInvalidFileFormatError,
1112
type SdkRecordAlreadyExistsError,
1213
SdkRecordNotFoundError,
@@ -113,4 +114,12 @@ export class AppsSdk extends AbstractNestedSdkWithAuth {
113114
url: this.endpoint(`/summarize-chat-to-app/${chatId}`),
114115
options: getPayload(),
115116
});
117+
118+
readonly commercial = {
119+
install: (agentsLibraryId: SdkTableRowUuidT) =>
120+
this.fetch<SdkTableRowWithIdT>({
121+
url: this.endpoint(`/commercial/install/${agentsLibraryId}`),
122+
options: postPayload(),
123+
}),
124+
};
116125
};

0 commit comments

Comments
 (0)