@kittl/sdk 0.0.5 → 0.0.6

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.
@@ -472,6 +472,13 @@ var createAuthBridgeApi = () => {
472
472
  provider: request.provider
473
473
  };
474
474
  return sendMessage(message);
475
+ },
476
+ getUserToken: () => {
477
+ const message = {
478
+ command: "auth-get-user-token",
479
+ messageId: generateMessageId()
480
+ };
481
+ return sendMessage(message);
475
482
  }
476
483
  };
477
484
  };
package/dist/kittl-sdk.js CHANGED
@@ -473,6 +473,13 @@
473
473
  provider: request.provider
474
474
  };
475
475
  return sendMessage(message);
476
+ },
477
+ getUserToken: () => {
478
+ const message = {
479
+ command: "auth-get-user-token",
480
+ messageId: generateMessageId()
481
+ };
482
+ return sendMessage(message);
476
483
  }
477
484
  };
478
485
  };
package/dist/sdk.d.ts CHANGED
@@ -514,8 +514,7 @@ declare enum ObjectType {
514
514
  WarpControlRootPoint = "warpControlRootPoint",
515
515
  Group = "group",
516
516
  Circle = "circle",
517
- Rect = "rect",
518
- EditablePolygon = "editablePolygon"
517
+ Rect = "rect"
519
518
  }
520
519
  declare enum Orientation {
521
520
  HORIZONTAL = "horizontal",
@@ -632,6 +631,7 @@ export interface AsyncAuthAPI {
632
631
  exchangeCode: (request: AuthExchangeRequest) => Promise<SdkResult<AuthTokenResponse>>;
633
632
  getAuthToken: (request: AuthGetTokenRequest) => Promise<SdkResult<AuthTokenResponse | null>>;
634
633
  refreshToken: (request: AuthRefreshRequest) => Promise<SdkResult<AuthTokenResponse>>;
634
+ getUserToken: () => Promise<SdkResult<UserTokenResult>>;
635
635
  logout: (request: AuthLogoutRequest) => Promise<SdkResult<void>>;
636
636
  }
637
637
  export interface AsyncBatchDesignAPI extends AsyncDesignAPI {
@@ -818,10 +818,6 @@ export interface DecorationOptions {
818
818
  distance: number;
819
819
  cutDistance: number;
820
820
  }
821
- export interface DeleteFontStyleOptions {
822
- fontFamilyId: string;
823
- id: string;
824
- }
825
821
  export interface DesignAPI {
826
822
  shape: ShapeAPI;
827
823
  board: BoardAPI;
@@ -900,11 +896,11 @@ export interface FontDataAPI {
900
896
  delete(ids: string[]): SdkResultAsync<void>;
901
897
  destroy(ids: string[]): SdkResultAsync<void>;
902
898
  addStyle(options: AddFontStyleOptions): SdkResultAsync<FontFamilyDto>;
903
- deleteStyle(options: DeleteFontStyleOptions): SdkResultAsync<void>;
904
899
  updateStyle(options: UpdateFontStyleOptions): SdkResultAsync<void>;
905
900
  }
906
901
  export interface FontFamilyDto extends CatalogItem {
907
902
  styles: FontStyleDto[];
903
+ deletedAt: string | null;
908
904
  extension: {
909
905
  id: string;
910
906
  name?: string;
@@ -1327,6 +1323,10 @@ export interface UploadImageAPI {
1327
1323
  blob: Blob;
1328
1324
  }) => SdkResultAsync<TempUserImageUpload[], Error>;
1329
1325
  }
1326
+ export interface UserTokenResult {
1327
+ success: true;
1328
+ token: string;
1329
+ }
1330
1330
  export interface VideoAPI {
1331
1331
  addVideo(params: AddVideoParams, opts?: DesignApiOptions): Promise<NormalizedVideoObject>;
1332
1332
  updateVideo(params: UpdateVideoParams, opts?: DesignApiOptions): NormalizedVideoObject;
@@ -1653,7 +1653,8 @@ export type IllustrationImageSerializedObject = typeof DEFAULT_VALUES$1 & {
1653
1653
  objectName: string | null;
1654
1654
  fallbackObjectName?: string;
1655
1655
  } | undefined;
1656
- _eraseStrokeWidth?: number | undefined;
1656
+ eraseStrokeWidth?: number | undefined;
1657
+ inpaintingStrokeWidth?: number | undefined;
1657
1658
  };
1658
1659
  export type IllustrationProperties = {
1659
1660
  angle?: IllustrationSerializedObject["angle"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kittl/sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "Apache-2.0",
5
5
  "private": false,
6
6
  "type": "module",