@widgetic/api-sdk 1.0.17 → 1.0.19

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
13
+ import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, RefreshSessionRequest, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
14
14
  export interface CompleteSignupOperationRequest {
15
15
  completeSignupRequest: CompleteSignupRequest;
16
16
  }
@@ -26,6 +26,9 @@ export interface InitiateOAuthRequest {
26
26
  export interface LoginUserOperationRequest {
27
27
  loginUserRequest: LoginUserRequest;
28
28
  }
29
+ export interface RefreshSessionOperationRequest {
30
+ refreshSessionRequest: RefreshSessionRequest;
31
+ }
29
32
  export interface ResendConfirmationRequest {
30
33
  resetPasswordRequest: ResetPasswordRequest;
31
34
  }
@@ -118,6 +121,14 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
118
121
  * Logout current user
119
122
  */
120
123
  logoutUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
124
+ /**
125
+ * Refresh access token using a refresh token
126
+ */
127
+ refreshSessionRaw(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
128
+ /**
129
+ * Refresh access token using a refresh token
130
+ */
131
+ refreshSession(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
121
132
  /**
122
133
  * Resend email confirmation
123
134
  */
@@ -277,6 +277,35 @@ class AuthenticationApi extends runtime.BaseAPI {
277
277
  yield this.logoutUserRaw(initOverrides);
278
278
  });
279
279
  }
280
+ /**
281
+ * Refresh access token using a refresh token
282
+ */
283
+ refreshSessionRaw(requestParameters, initOverrides) {
284
+ return __awaiter(this, void 0, void 0, function* () {
285
+ if (requestParameters['refreshSessionRequest'] == null) {
286
+ throw new runtime.RequiredError('refreshSessionRequest', 'Required parameter "refreshSessionRequest" was null or undefined when calling refreshSession().');
287
+ }
288
+ const queryParameters = {};
289
+ const headerParameters = {};
290
+ headerParameters['Content-Type'] = 'application/json';
291
+ const response = yield this.request({
292
+ path: `/auth/refresh`,
293
+ method: 'POST',
294
+ headers: headerParameters,
295
+ query: queryParameters,
296
+ body: (0, index_1.RefreshSessionRequestToJSON)(requestParameters['refreshSessionRequest']),
297
+ }, initOverrides);
298
+ return new runtime.VoidApiResponse(response);
299
+ });
300
+ }
301
+ /**
302
+ * Refresh access token using a refresh token
303
+ */
304
+ refreshSession(requestParameters, initOverrides) {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
+ yield this.refreshSessionRaw(requestParameters, initOverrides);
307
+ });
308
+ }
280
309
  /**
281
310
  * Resend email confirmation
282
311
  */
@@ -188,6 +188,36 @@ export declare class WidgetsApi extends runtime.BaseAPI {
188
188
  * Update Widget
189
189
  */
190
190
  updateWidget(requestParameters: UpdateWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
191
+ /**
192
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
193
+ * Upload Widget Thumbnail
194
+ */
195
+ uploadWidgetThumbnailRaw(requestParameters: {
196
+ id: string;
197
+ uploadWidgetThumbnailRequest: {
198
+ imageDataUrl: string;
199
+ };
200
+ }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
201
+ data?: {
202
+ thumbnailUrl?: string;
203
+ };
204
+ thumbnailUrl?: string;
205
+ }>>;
206
+ /**
207
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
208
+ * Upload Widget Thumbnail
209
+ */
210
+ uploadWidgetThumbnail(requestParameters: {
211
+ id: string;
212
+ uploadWidgetThumbnailRequest: {
213
+ imageDataUrl: string;
214
+ };
215
+ }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
216
+ data?: {
217
+ thumbnailUrl?: string;
218
+ };
219
+ thumbnailUrl?: string;
220
+ }>;
191
221
  /**
192
222
  * Associates an existing widget with a repository ID.
193
223
  * Update Widget Repository
@@ -520,6 +520,48 @@ class WidgetsApi extends runtime.BaseAPI {
520
520
  yield this.updateWidgetRaw(requestParameters, initOverrides);
521
521
  });
522
522
  }
523
+ /**
524
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
525
+ * Upload Widget Thumbnail
526
+ */
527
+ uploadWidgetThumbnailRaw(requestParameters, initOverrides) {
528
+ return __awaiter(this, void 0, void 0, function* () {
529
+ if (requestParameters['id'] == null) {
530
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadWidgetThumbnail().');
531
+ }
532
+ if (requestParameters['uploadWidgetThumbnailRequest'] == null) {
533
+ throw new runtime.RequiredError('uploadWidgetThumbnailRequest', 'Required parameter "uploadWidgetThumbnailRequest" was null or undefined when calling uploadWidgetThumbnail().');
534
+ }
535
+ const queryParameters = {};
536
+ const headerParameters = {};
537
+ headerParameters['Content-Type'] = 'application/json';
538
+ if (this.configuration && this.configuration.accessToken) {
539
+ const token = this.configuration.accessToken;
540
+ const tokenString = yield token("apiKeyAuth", []);
541
+ if (tokenString) {
542
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
543
+ }
544
+ }
545
+ const response = yield this.request({
546
+ path: `/widgets/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
547
+ method: 'POST',
548
+ headers: headerParameters,
549
+ query: queryParameters,
550
+ body: requestParameters['uploadWidgetThumbnailRequest'],
551
+ }, initOverrides);
552
+ return new runtime.JSONApiResponse(response);
553
+ });
554
+ }
555
+ /**
556
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
557
+ * Upload Widget Thumbnail
558
+ */
559
+ uploadWidgetThumbnail(requestParameters, initOverrides) {
560
+ return __awaiter(this, void 0, void 0, function* () {
561
+ const response = yield this.uploadWidgetThumbnailRaw(requestParameters, initOverrides);
562
+ return yield response.value();
563
+ });
564
+ }
523
565
  /**
524
566
  * Associates an existing widget with a repository ID.
525
567
  * Update Widget Repository
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
13
+ import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, RefreshSessionRequest, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
14
14
  export interface CompleteSignupOperationRequest {
15
15
  completeSignupRequest: CompleteSignupRequest;
16
16
  }
@@ -26,6 +26,9 @@ export interface InitiateOAuthRequest {
26
26
  export interface LoginUserOperationRequest {
27
27
  loginUserRequest: LoginUserRequest;
28
28
  }
29
+ export interface RefreshSessionOperationRequest {
30
+ refreshSessionRequest: RefreshSessionRequest;
31
+ }
29
32
  export interface ResendConfirmationRequest {
30
33
  resetPasswordRequest: ResetPasswordRequest;
31
34
  }
@@ -118,6 +121,14 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
118
121
  * Logout current user
119
122
  */
120
123
  logoutUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
124
+ /**
125
+ * Refresh access token using a refresh token
126
+ */
127
+ refreshSessionRaw(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
128
+ /**
129
+ * Refresh access token using a refresh token
130
+ */
131
+ refreshSession(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
121
132
  /**
122
133
  * Resend email confirmation
123
134
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { CompleteSignupRequestToJSON, LoginUserRequestToJSON, OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON, ResetPasswordRequestToJSON, SignupUserRequestToJSON, SignupWithInvitationRequestToJSON, UpdateEmailRequestToJSON, UpdateNameRequestToJSON, UpdatePasswordRequestToJSON, UpdateUserMetadataRequestToJSON, } from '../models/index.js';
24
+ import { CompleteSignupRequestToJSON, LoginUserRequestToJSON, OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON, RefreshSessionRequestToJSON, ResetPasswordRequestToJSON, SignupUserRequestToJSON, SignupWithInvitationRequestToJSON, UpdateEmailRequestToJSON, UpdateNameRequestToJSON, UpdatePasswordRequestToJSON, UpdateUserMetadataRequestToJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -274,6 +274,35 @@ export class AuthenticationApi extends runtime.BaseAPI {
274
274
  yield this.logoutUserRaw(initOverrides);
275
275
  });
276
276
  }
277
+ /**
278
+ * Refresh access token using a refresh token
279
+ */
280
+ refreshSessionRaw(requestParameters, initOverrides) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ if (requestParameters['refreshSessionRequest'] == null) {
283
+ throw new runtime.RequiredError('refreshSessionRequest', 'Required parameter "refreshSessionRequest" was null or undefined when calling refreshSession().');
284
+ }
285
+ const queryParameters = {};
286
+ const headerParameters = {};
287
+ headerParameters['Content-Type'] = 'application/json';
288
+ const response = yield this.request({
289
+ path: `/auth/refresh`,
290
+ method: 'POST',
291
+ headers: headerParameters,
292
+ query: queryParameters,
293
+ body: RefreshSessionRequestToJSON(requestParameters['refreshSessionRequest']),
294
+ }, initOverrides);
295
+ return new runtime.VoidApiResponse(response);
296
+ });
297
+ }
298
+ /**
299
+ * Refresh access token using a refresh token
300
+ */
301
+ refreshSession(requestParameters, initOverrides) {
302
+ return __awaiter(this, void 0, void 0, function* () {
303
+ yield this.refreshSessionRaw(requestParameters, initOverrides);
304
+ });
305
+ }
277
306
  /**
278
307
  * Resend email confirmation
279
308
  */
@@ -188,6 +188,36 @@ export declare class WidgetsApi extends runtime.BaseAPI {
188
188
  * Update Widget
189
189
  */
190
190
  updateWidget(requestParameters: UpdateWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
191
+ /**
192
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
193
+ * Upload Widget Thumbnail
194
+ */
195
+ uploadWidgetThumbnailRaw(requestParameters: {
196
+ id: string;
197
+ uploadWidgetThumbnailRequest: {
198
+ imageDataUrl: string;
199
+ };
200
+ }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
201
+ data?: {
202
+ thumbnailUrl?: string;
203
+ };
204
+ thumbnailUrl?: string;
205
+ }>>;
206
+ /**
207
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
208
+ * Upload Widget Thumbnail
209
+ */
210
+ uploadWidgetThumbnail(requestParameters: {
211
+ id: string;
212
+ uploadWidgetThumbnailRequest: {
213
+ imageDataUrl: string;
214
+ };
215
+ }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
216
+ data?: {
217
+ thumbnailUrl?: string;
218
+ };
219
+ thumbnailUrl?: string;
220
+ }>;
191
221
  /**
192
222
  * Associates an existing widget with a repository ID.
193
223
  * Update Widget Repository
@@ -517,6 +517,48 @@ export class WidgetsApi extends runtime.BaseAPI {
517
517
  yield this.updateWidgetRaw(requestParameters, initOverrides);
518
518
  });
519
519
  }
520
+ /**
521
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
522
+ * Upload Widget Thumbnail
523
+ */
524
+ uploadWidgetThumbnailRaw(requestParameters, initOverrides) {
525
+ return __awaiter(this, void 0, void 0, function* () {
526
+ if (requestParameters['id'] == null) {
527
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadWidgetThumbnail().');
528
+ }
529
+ if (requestParameters['uploadWidgetThumbnailRequest'] == null) {
530
+ throw new runtime.RequiredError('uploadWidgetThumbnailRequest', 'Required parameter "uploadWidgetThumbnailRequest" was null or undefined when calling uploadWidgetThumbnail().');
531
+ }
532
+ const queryParameters = {};
533
+ const headerParameters = {};
534
+ headerParameters['Content-Type'] = 'application/json';
535
+ if (this.configuration && this.configuration.accessToken) {
536
+ const token = this.configuration.accessToken;
537
+ const tokenString = yield token("apiKeyAuth", []);
538
+ if (tokenString) {
539
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
540
+ }
541
+ }
542
+ const response = yield this.request({
543
+ path: `/widgets/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
544
+ method: 'POST',
545
+ headers: headerParameters,
546
+ query: queryParameters,
547
+ body: requestParameters['uploadWidgetThumbnailRequest'],
548
+ }, initOverrides);
549
+ return new runtime.JSONApiResponse(response);
550
+ });
551
+ }
552
+ /**
553
+ * Stores a convert/preview screenshot as widgets.thumbnail_url.
554
+ * Upload Widget Thumbnail
555
+ */
556
+ uploadWidgetThumbnail(requestParameters, initOverrides) {
557
+ return __awaiter(this, void 0, void 0, function* () {
558
+ const response = yield this.uploadWidgetThumbnailRaw(requestParameters, initOverrides);
559
+ return yield response.value();
560
+ });
561
+ }
520
562
  /**
521
563
  * Associates an existing widget with a repository ID.
522
564
  * Update Widget Repository
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RefreshSessionRequest
16
+ */
17
+ export interface RefreshSessionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RefreshSessionRequest
22
+ */
23
+ refresh_token?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the RefreshSessionRequest interface.
27
+ */
28
+ export declare function instanceOfRefreshSessionRequest(value: object): value is RefreshSessionRequest;
29
+ export declare function RefreshSessionRequestFromJSON(json: any): RefreshSessionRequest;
30
+ export declare function RefreshSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshSessionRequest;
31
+ export declare function RefreshSessionRequestToJSON(json: any): RefreshSessionRequest;
32
+ export declare function RefreshSessionRequestToJSONTyped(value?: RefreshSessionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the RefreshSessionRequest interface.
16
+ */
17
+ export function instanceOfRefreshSessionRequest(value) {
18
+ return true;
19
+ }
20
+ export function RefreshSessionRequestFromJSON(json) {
21
+ return RefreshSessionRequestFromJSONTyped(json, false);
22
+ }
23
+ export function RefreshSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'refresh_token': json['refresh_token'] == null ? undefined : json['refresh_token'],
29
+ };
30
+ }
31
+ export function RefreshSessionRequestToJSON(json) {
32
+ return RefreshSessionRequestToJSONTyped(json, false);
33
+ }
34
+ export function RefreshSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'refresh_token': value['refresh_token'],
40
+ };
41
+ }
@@ -21,12 +21,42 @@ export interface UpdateCompositionRequest {
21
21
  * @memberof UpdateCompositionRequest
22
22
  */
23
23
  name?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateCompositionRequest
28
+ */
29
+ widgetId?: string;
24
30
  /**
25
31
  *
26
32
  * @type {object}
27
33
  * @memberof UpdateCompositionRequest
28
34
  */
29
35
  content?: object;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateCompositionRequest
40
+ */
41
+ status?: string;
42
+ /**
43
+ *
44
+ * @type {object}
45
+ * @memberof UpdateCompositionRequest
46
+ */
47
+ embedSettings?: object;
48
+ /**
49
+ *
50
+ * @type {object}
51
+ * @memberof UpdateCompositionRequest
52
+ */
53
+ design?: object;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof UpdateCompositionRequest
58
+ */
59
+ projectId?: string;
30
60
  }
31
61
  /**
32
62
  * Check if a given object implements the UpdateCompositionRequest interface.
@@ -26,7 +26,12 @@ export function UpdateCompositionRequestFromJSONTyped(json, ignoreDiscriminator)
26
26
  }
27
27
  return {
28
28
  'name': json['name'] == null ? undefined : json['name'],
29
+ 'widgetId': json['widgetId'] == null ? undefined : json['widgetId'],
29
30
  'content': json['content'] == null ? undefined : json['content'],
31
+ 'status': json['status'] == null ? undefined : json['status'],
32
+ 'embedSettings': json['embedSettings'] == null ? undefined : json['embedSettings'],
33
+ 'design': json['design'] == null ? undefined : json['design'],
34
+ 'projectId': json['projectId'] == null ? undefined : json['projectId'],
30
35
  };
31
36
  }
32
37
  export function UpdateCompositionRequestToJSON(json) {
@@ -38,6 +43,11 @@ export function UpdateCompositionRequestToJSONTyped(value, ignoreDiscriminator =
38
43
  }
39
44
  return {
40
45
  'name': value['name'],
46
+ 'widgetId': value['widgetId'],
41
47
  'content': value['content'],
48
+ 'status': value['status'],
49
+ 'embedSettings': value['embedSettings'],
50
+ 'design': value['design'],
51
+ 'projectId': value['projectId'],
42
52
  };
43
53
  }
@@ -28,13 +28,13 @@ export interface UpdateWidgetRequest {
28
28
  */
29
29
  description?: string;
30
30
  /**
31
- * Move the widget to this project folder.
31
+ *
32
32
  * @type {string}
33
33
  * @memberof UpdateWidgetRequest
34
34
  */
35
35
  projectId?: string;
36
36
  /**
37
- * Legacy project folder id; kept in sync with projectId.
37
+ *
38
38
  * @type {string}
39
39
  * @memberof UpdateWidgetRequest
40
40
  */
@@ -21,15 +21,14 @@ export function UpdateWidgetRequestFromJSON(json) {
21
21
  return UpdateWidgetRequestFromJSONTyped(json, false);
22
22
  }
23
23
  export function UpdateWidgetRequestFromJSONTyped(json, ignoreDiscriminator) {
24
- var _a, _b;
25
24
  if (json == null) {
26
25
  return json;
27
26
  }
28
27
  return {
29
28
  'name': json['name'] == null ? undefined : json['name'],
30
29
  'description': json['description'] == null ? undefined : json['description'],
31
- 'projectId': json['projectId'] == null && json['project_id'] == null ? undefined : ((_a = json['projectId']) !== null && _a !== void 0 ? _a : json['project_id']),
32
- 'projectFolder': json['projectFolder'] == null && json['project_folder'] == null ? undefined : ((_b = json['projectFolder']) !== null && _b !== void 0 ? _b : json['project_folder']),
30
+ 'projectId': json['projectId'] == null ? undefined : json['projectId'],
31
+ 'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
33
32
  };
34
33
  }
35
34
  export function UpdateWidgetRequestToJSON(json) {
@@ -353,6 +353,7 @@ export * from './PurchaseStoragePack200ResponseDataPaymentIntent';
353
353
  export * from './PurchaseStoragePackRequest';
354
354
  export * from './ReactivateMemberRequest';
355
355
  export * from './Referrers';
356
+ export * from './RefreshSessionRequest';
356
357
  export * from './RefundRequest';
357
358
  export * from './RegistrySettings';
358
359
  export * from './RemoveProjectMember200Response';
@@ -355,6 +355,7 @@ export * from './PurchaseStoragePack200ResponseDataPaymentIntent.js';
355
355
  export * from './PurchaseStoragePackRequest.js';
356
356
  export * from './ReactivateMemberRequest.js';
357
357
  export * from './Referrers.js';
358
+ export * from './RefreshSessionRequest.js';
358
359
  export * from './RefundRequest.js';
359
360
  export * from './RegistrySettings.js';
360
361
  export * from './RemoveProjectMember200Response.js';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RefreshSessionRequest
16
+ */
17
+ export interface RefreshSessionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RefreshSessionRequest
22
+ */
23
+ refresh_token?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the RefreshSessionRequest interface.
27
+ */
28
+ export declare function instanceOfRefreshSessionRequest(value: object): value is RefreshSessionRequest;
29
+ export declare function RefreshSessionRequestFromJSON(json: any): RefreshSessionRequest;
30
+ export declare function RefreshSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshSessionRequest;
31
+ export declare function RefreshSessionRequestToJSON(json: any): RefreshSessionRequest;
32
+ export declare function RefreshSessionRequestToJSONTyped(value?: RefreshSessionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRefreshSessionRequest = instanceOfRefreshSessionRequest;
17
+ exports.RefreshSessionRequestFromJSON = RefreshSessionRequestFromJSON;
18
+ exports.RefreshSessionRequestFromJSONTyped = RefreshSessionRequestFromJSONTyped;
19
+ exports.RefreshSessionRequestToJSON = RefreshSessionRequestToJSON;
20
+ exports.RefreshSessionRequestToJSONTyped = RefreshSessionRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RefreshSessionRequest interface.
23
+ */
24
+ function instanceOfRefreshSessionRequest(value) {
25
+ return true;
26
+ }
27
+ function RefreshSessionRequestFromJSON(json) {
28
+ return RefreshSessionRequestFromJSONTyped(json, false);
29
+ }
30
+ function RefreshSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'refresh_token': json['refresh_token'] == null ? undefined : json['refresh_token'],
36
+ };
37
+ }
38
+ function RefreshSessionRequestToJSON(json) {
39
+ return RefreshSessionRequestToJSONTyped(json, false);
40
+ }
41
+ function RefreshSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'refresh_token': value['refresh_token'],
47
+ };
48
+ }
@@ -21,12 +21,42 @@ export interface UpdateCompositionRequest {
21
21
  * @memberof UpdateCompositionRequest
22
22
  */
23
23
  name?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateCompositionRequest
28
+ */
29
+ widgetId?: string;
24
30
  /**
25
31
  *
26
32
  * @type {object}
27
33
  * @memberof UpdateCompositionRequest
28
34
  */
29
35
  content?: object;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateCompositionRequest
40
+ */
41
+ status?: string;
42
+ /**
43
+ *
44
+ * @type {object}
45
+ * @memberof UpdateCompositionRequest
46
+ */
47
+ embedSettings?: object;
48
+ /**
49
+ *
50
+ * @type {object}
51
+ * @memberof UpdateCompositionRequest
52
+ */
53
+ design?: object;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof UpdateCompositionRequest
58
+ */
59
+ projectId?: string;
30
60
  }
31
61
  /**
32
62
  * Check if a given object implements the UpdateCompositionRequest interface.
@@ -33,7 +33,12 @@ function UpdateCompositionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
+ 'widgetId': json['widgetId'] == null ? undefined : json['widgetId'],
36
37
  'content': json['content'] == null ? undefined : json['content'],
38
+ 'status': json['status'] == null ? undefined : json['status'],
39
+ 'embedSettings': json['embedSettings'] == null ? undefined : json['embedSettings'],
40
+ 'design': json['design'] == null ? undefined : json['design'],
41
+ 'projectId': json['projectId'] == null ? undefined : json['projectId'],
37
42
  };
38
43
  }
39
44
  function UpdateCompositionRequestToJSON(json) {
@@ -45,6 +50,11 @@ function UpdateCompositionRequestToJSONTyped(value, ignoreDiscriminator = false)
45
50
  }
46
51
  return {
47
52
  'name': value['name'],
53
+ 'widgetId': value['widgetId'],
48
54
  'content': value['content'],
55
+ 'status': value['status'],
56
+ 'embedSettings': value['embedSettings'],
57
+ 'design': value['design'],
58
+ 'projectId': value['projectId'],
49
59
  };
50
60
  }
@@ -28,13 +28,13 @@ export interface UpdateWidgetRequest {
28
28
  */
29
29
  description?: string;
30
30
  /**
31
- * Move the widget to this project folder.
31
+ *
32
32
  * @type {string}
33
33
  * @memberof UpdateWidgetRequest
34
34
  */
35
35
  projectId?: string;
36
36
  /**
37
- * Legacy project folder id; kept in sync with projectId.
37
+ *
38
38
  * @type {string}
39
39
  * @memberof UpdateWidgetRequest
40
40
  */
@@ -28,15 +28,14 @@ function UpdateWidgetRequestFromJSON(json) {
28
28
  return UpdateWidgetRequestFromJSONTyped(json, false);
29
29
  }
30
30
  function UpdateWidgetRequestFromJSONTyped(json, ignoreDiscriminator) {
31
- var _a, _b;
32
31
  if (json == null) {
33
32
  return json;
34
33
  }
35
34
  return {
36
35
  'name': json['name'] == null ? undefined : json['name'],
37
36
  'description': json['description'] == null ? undefined : json['description'],
38
- 'projectId': json['projectId'] == null && json['project_id'] == null ? undefined : ((_a = json['projectId']) !== null && _a !== void 0 ? _a : json['project_id']),
39
- 'projectFolder': json['projectFolder'] == null && json['project_folder'] == null ? undefined : ((_b = json['projectFolder']) !== null && _b !== void 0 ? _b : json['project_folder']),
37
+ 'projectId': json['projectId'] == null ? undefined : json['projectId'],
38
+ 'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
40
39
  };
41
40
  }
42
41
  function UpdateWidgetRequestToJSON(json) {
@@ -353,6 +353,7 @@ export * from './PurchaseStoragePack200ResponseDataPaymentIntent';
353
353
  export * from './PurchaseStoragePackRequest';
354
354
  export * from './ReactivateMemberRequest';
355
355
  export * from './Referrers';
356
+ export * from './RefreshSessionRequest';
356
357
  export * from './RefundRequest';
357
358
  export * from './RegistrySettings';
358
359
  export * from './RemoveProjectMember200Response';
@@ -371,6 +371,7 @@ __exportStar(require("./PurchaseStoragePack200ResponseDataPaymentIntent"), expor
371
371
  __exportStar(require("./PurchaseStoragePackRequest"), exports);
372
372
  __exportStar(require("./ReactivateMemberRequest"), exports);
373
373
  __exportStar(require("./Referrers"), exports);
374
+ __exportStar(require("./RefreshSessionRequest"), exports);
374
375
  __exportStar(require("./RefundRequest"), exports);
375
376
  __exportStar(require("./RegistrySettings"), exports);
376
377
  __exportStar(require("./RemoveProjectMember200Response"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/api-sdk",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Official JavaScript/TypeScript client for the Widgetic API (ESM & CJS)",
5
5
  "author": "Widgetic",
6
6
  "repository": {