@fonderie/client 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brain/signatures.md +30 -0
- package/dist/index.cjs +127 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +126 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/brain/signatures.md
CHANGED
|
@@ -48,6 +48,7 @@ new FonderieClient(opts: IFonderieClientOptions): FonderieClient
|
|
|
48
48
|
.audit: AuditClient
|
|
49
49
|
.webhooks: WebhooksClient
|
|
50
50
|
.customers: CustomersClient
|
|
51
|
+
.media: MediaClient
|
|
51
52
|
.setAccessToken(token: string | undefined): void
|
|
52
53
|
.clearCache(): void
|
|
53
54
|
.setWorkspaceId(workspaceId: string | undefined): void
|
|
@@ -377,6 +378,20 @@ new CustomersClient(http: HttpClient, tokens: TokenStore): CustomersClient
|
|
|
377
378
|
.listLabels(type: CustomerLabelType, opts?: IReadOptions | undefined): Promise<IApiResponse<ICustomerLabelListResult>>
|
|
378
379
|
.removeLabel(labelId: string): Promise<IApiResponse<undefined>>
|
|
379
380
|
|
|
381
|
+
interface IUploadMediaInput {
|
|
382
|
+
dataBase64: string;
|
|
383
|
+
purpose?: string;
|
|
384
|
+
ownerType?: string;
|
|
385
|
+
ownerId?: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
new MediaClient(http: HttpClient, tokens: TokenStore): MediaClient
|
|
389
|
+
.setAccessToken(token: string | undefined): void
|
|
390
|
+
.upload(input: IUploadMediaInput): Promise<IApiResponse<IMediaAssetResult>>
|
|
391
|
+
.delete(id: string): Promise<IApiResponse<{ id: string; }>>
|
|
392
|
+
.assetUrl(id: string): string
|
|
393
|
+
.assetIdFromUrl(url: string | null | undefined): string | null
|
|
394
|
+
|
|
380
395
|
interface ICreateWebhookEndpointInput {
|
|
381
396
|
url: string;
|
|
382
397
|
events?: string[];
|
|
@@ -800,6 +815,21 @@ interface ILoginResult {
|
|
|
800
815
|
requiresVerification?: boolean;
|
|
801
816
|
}
|
|
802
817
|
|
|
818
|
+
interface IMediaAssetDTO {
|
|
819
|
+
id: string;
|
|
820
|
+
url: string;
|
|
821
|
+
contentType: string;
|
|
822
|
+
byteSize: number;
|
|
823
|
+
ownerType: string;
|
|
824
|
+
ownerId: string;
|
|
825
|
+
purpose: string;
|
|
826
|
+
createdAt: string;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
interface IMediaAssetResult {
|
|
830
|
+
asset: IMediaAssetDTO;
|
|
831
|
+
}
|
|
832
|
+
|
|
803
833
|
interface IMemberDTO {
|
|
804
834
|
userId: string;
|
|
805
835
|
workspaceId: string;
|