@widgetic/api-sdk-ts 1.11.109 → 1.11.111
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/dist/apis/BrandKitApi.d.ts +130 -0
- package/dist/apis/BrandKitApi.js +381 -0
- package/dist/apis/PartnerApi.d.ts +113 -1
- package/dist/apis/PartnerApi.js +325 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BrandKitApi.js +344 -0
- package/dist/esm/apis/PartnerApi.js +325 -1
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/BrandColor.js +64 -0
- package/dist/esm/models/BrandFont.js +72 -0
- package/dist/esm/models/BrandKitAssetView.js +96 -0
- package/dist/esm/models/BrandKitFigmaSource.js +59 -0
- package/dist/esm/models/BrandKitTokens.js +56 -0
- package/dist/esm/models/BrandKitTokensFonts.js +48 -0
- package/dist/esm/models/BrandKitView.js +75 -0
- package/dist/esm/models/BrandKitViewOwner.js +54 -0
- package/dist/esm/models/BrandKitViewResponse.js +51 -0
- package/dist/esm/models/BrandSpacing.js +71 -0
- package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
- package/dist/esm/models/PatchBrandKitRequest.js +54 -0
- package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
- package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
- package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
- package/dist/esm/models/PutBrandKitRequest.js +49 -0
- package/dist/esm/models/index.js +16 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BrandColor.d.ts +60 -0
- package/dist/models/BrandColor.js +72 -0
- package/dist/models/BrandFont.d.ts +73 -0
- package/dist/models/BrandFont.js +80 -0
- package/dist/models/BrandKitAssetView.d.ts +130 -0
- package/dist/models/BrandKitAssetView.js +104 -0
- package/dist/models/BrandKitFigmaSource.d.ts +56 -0
- package/dist/models/BrandKitFigmaSource.js +66 -0
- package/dist/models/BrandKitTokens.d.ts +53 -0
- package/dist/models/BrandKitTokens.js +63 -0
- package/dist/models/BrandKitTokensFonts.d.ts +51 -0
- package/dist/models/BrandKitTokensFonts.js +55 -0
- package/dist/models/BrandKitView.d.ts +90 -0
- package/dist/models/BrandKitView.js +82 -0
- package/dist/models/BrandKitViewOwner.d.ts +46 -0
- package/dist/models/BrandKitViewOwner.js +62 -0
- package/dist/models/BrandKitViewResponse.d.ts +46 -0
- package/dist/models/BrandKitViewResponse.js +58 -0
- package/dist/models/BrandSpacing.d.ts +74 -0
- package/dist/models/BrandSpacing.js +78 -0
- package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
- package/dist/models/PatchBrandKitAssetRequest.js +76 -0
- package/dist/models/PatchBrandKitRequest.d.ts +65 -0
- package/dist/models/PatchBrandKitRequest.js +61 -0
- package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
- package/dist/models/PatchBrandKitRequestFonts.js +55 -0
- package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
- package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
- package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
- package/dist/models/PostBrandKitIconRequest.js +54 -0
- package/dist/models/PutBrandKitRequest.d.ts +46 -0
- package/dist/models/PutBrandKitRequest.js +56 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountCreditBalanceResponse, AddAiAnswersKnowledgeDocument201Response, AddAiAnswersKnowledgeDocumentRequest, AddDomainRequest, CanvasResponse, CheckCompositionAccessResponse, CompositionDataSourceResponse, CompositionEntriesDescriptionResponse, CompositionEntriesReadingResponse, CompositionEntryDeleteSuccess, CompositionEntryItemsPageSuccess, CompositionResponse, ConfirmAdapterConnectionRequest, CopyPartnerPresetRequest, CreateCanvasRequest, CreateCompositionContentItem201Response, CreateCompositionContentItemRequest, CreateCompositionDatabaseRecord201Response, CreateCompositionFromPresetRequest, CreateCompositionFromWidget201Response, CreateCompositionFromWidgetRequest, CreateUserApiKeyRequest, CreateWidget201Response, CreateWorkspaceWorkflowFromPreset201Response, CreateWorkspaceWorkflowFromPresetRequest, CreateWorkspaceWorkflowRequest, CreatedUserApiKeyResponse, DeleteCompositionContentItemResponse, DeleteCompositionDataSourceResponse, DeleteManagedUser200Response, DeletePersonalWorkspaceDomainResponse, DeleteUserApiKeyResponse, DeleteWorkspaceWorkflow200Response, DuplicateComposition202Response, DuplicateCompositionRequest, EditorSessionResponse, GetAiAnswersKnowledge200Response, GetAllCanvasesResponse, GetAllCompositions200Response, GetAllManagedUsers200Response, GetCompositionContentResponse, GetCompositionContentSchemaResponse, GetCompositionDataSourceResponse, GetCompositionDatabaseRecords200Response, GetCompositionDesignResponse, GetCompositionDesignSchemaResponse, GetCompositionEmbedSchemaResponse, GetCompositionEmbedSettingsResponse, GetCompositionPreviewResponse, GetCompositionVersions200Response, GetCompositionsBatchRequest, GetCompositionsBatchResponse, GetInvoicesByPartnerId200Response, GetManagedUserEntitlementsResponse, GetManagedUserLimits200Response, GetManagedUserStorageUsage200Response, GetManagedUsersByManagerIdResponse, GetPartnerBillingOverview200Response, GetPartnerCreditTransactions200Response, GetPartnerDesignDefaults200Response, GetPartnerEntitlementsResponse, GetPersonalWorkspaceDomains200Response, GetPublicCompositionEmbed200Response, GetPublicWorkflow200Response, GetUserAdapterConnections200Response, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, GetWidgets200Response, GetWidgetsBatchRequest, GetWidgetsBatchResponse, GetWorkspaceWorkflowStats200Response, GetWorkspaceWorkflowVersion200Response, ListPartnerPresets200Response, ListPartnerWorkflowPresets200Response, ListWorkspaceWorkflowCompositionOptions200Response, ListWorkspaceWorkflowPresets200Response, ListWorkspaceWorkflowVersions200Response, ListWorkspaceWorkflows200Response, ManagedUserEntriesPageSuccess, ManagedUserResponse, ManagedUserUsageResponse, MyPartnersResponse, NewComposition, NewEditorSession, NewManagedUser, NewWidget, OfferWorkflowPresetRequest, OperationsIdGetResponse, PartnerAnalyticsByManagedUserResponse, PartnerAnalyticsSummaryResponse, PartnerAnalyticsTimelineResponse, PartnerAnalyticsTopWidgetsResponse, PartnerContractResponse, PartnerDataDatabaseRemovalResponse, PartnerDataDatabaseResponse, PartnerEntryContextSecretResponse, PartnerEntryContextSigningResponse, PartnerExtraCreditsInvoiceResponse, PartnerNotificationDeliveryLogResponse, PartnerNotificationDeliveryResponse, PartnerNotificationPageResponse, PartnerNotificationSettingsChangeResponse, PartnerNotificationSettingsResponse, PartnerNotificationTestEventRequest, PartnerNotificationTestEventResultResponse, PartnerPresetCopyResponse, PartnerPresetRemovalResponse, PartnerPresetResponse, PartnerStorageDestinationResponse, PartnerStorageRemovalResponse, PartnerStorageUsageResponse, PersonalWorkspaceDomainResultResponse, PostPublicCompositionEmbedStatus200Response, PostPublicCompositionEmbedStatusRequest, PublicAdapterCallRequest, PublicAdapterCallResult, PublicAdapterFileResult, PublicCompositionEntryCreated, PublicCompositionEntryRequest, PublicWorkflowEventsRequest, PublishWorkspaceWorkflow200Response, PublishWorkspaceWorkflowRequest, RemoveAiAnswersKnowledgeDocument200Response, RemovePartnerWorkflowPreset200Response, RemoveUserAdapterConnection200Response, ReportPublicWorkflowEvents200Response, RequestExtraCredits, RevokeManagedUserEditorSessionsResponse, SaveWorkspaceWorkflow200Response, SaveWorkspaceWorkflowRequest, SetAdapterConnectionRequest, SetCompositionDataSourceRequest, SetDynamicContentRequest, SetDynamicContentResponse, SetManagedUserLimitsRequest, SetPartnerDataDatabaseRequest, SetPartnerDesignDefaultsRequest, SetPartnerPresetRequest, SetPartnerStorageDestinationRequest, SetPartnerWorkflowPreset200Response, SetUserAdapterConnection200Response, UpdateCanvasRequest, UpdateComposition, UpdateCompositionStatusRequest, UpdateDomainRequest, UpdateManagedUser, UpdatePartnerEntryContextSigningRequest, UpdatePartnerNotificationSettingsRequest, UpdateUserApiKeyRequest, UploadLimitsResponse, UploadResponse, UploadsGet200Response, UploadsIdDelete200Response, UserApiKeyResponse, ValidateCompositionContentResponse, ValidateToken200Response } from '../models/index';
|
|
13
|
+
import type { AccountCreditBalanceResponse, AddAiAnswersKnowledgeDocument201Response, AddAiAnswersKnowledgeDocumentRequest, AddDomainRequest, BrandKitViewResponse, CanvasResponse, CheckCompositionAccessResponse, CompositionDataSourceResponse, CompositionEntriesDescriptionResponse, CompositionEntriesReadingResponse, CompositionEntryDeleteSuccess, CompositionEntryItemsPageSuccess, CompositionResponse, ConfirmAdapterConnectionRequest, CopyPartnerPresetRequest, CreateCanvasRequest, CreateCompositionContentItem201Response, CreateCompositionContentItemRequest, CreateCompositionDatabaseRecord201Response, CreateCompositionFromPresetRequest, CreateCompositionFromWidget201Response, CreateCompositionFromWidgetRequest, CreateUserApiKeyRequest, CreateWidget201Response, CreateWorkspaceWorkflowFromPreset201Response, CreateWorkspaceWorkflowFromPresetRequest, CreateWorkspaceWorkflowRequest, CreatedUserApiKeyResponse, DeleteCompositionContentItemResponse, DeleteCompositionDataSourceResponse, DeleteManagedUser200Response, DeletePersonalWorkspaceDomainResponse, DeleteUserApiKeyResponse, DeleteWorkspaceWorkflow200Response, DuplicateComposition202Response, DuplicateCompositionRequest, EditorSessionResponse, GetAiAnswersKnowledge200Response, GetAllCanvasesResponse, GetAllCompositions200Response, GetAllManagedUsers200Response, GetCompositionContentResponse, GetCompositionContentSchemaResponse, GetCompositionDataSourceResponse, GetCompositionDatabaseRecords200Response, GetCompositionDesignResponse, GetCompositionDesignSchemaResponse, GetCompositionEmbedSchemaResponse, GetCompositionEmbedSettingsResponse, GetCompositionPreviewResponse, GetCompositionVersions200Response, GetCompositionsBatchRequest, GetCompositionsBatchResponse, GetInvoicesByPartnerId200Response, GetManagedUserEntitlementsResponse, GetManagedUserLimits200Response, GetManagedUserStorageUsage200Response, GetManagedUsersByManagerIdResponse, GetPartnerBillingOverview200Response, GetPartnerCreditTransactions200Response, GetPartnerDesignDefaults200Response, GetPartnerEntitlementsResponse, GetPersonalWorkspaceDomains200Response, GetPublicCompositionEmbed200Response, GetPublicWorkflow200Response, GetUserAdapterConnections200Response, GetUserApiKeyUsageLogsResponse, GetUserApiKeys200Response, GetWidgets200Response, GetWidgetsBatchRequest, GetWidgetsBatchResponse, GetWorkspaceWorkflowStats200Response, GetWorkspaceWorkflowVersion200Response, ListPartnerPresets200Response, ListPartnerWorkflowPresets200Response, ListWorkspaceWorkflowCompositionOptions200Response, ListWorkspaceWorkflowPresets200Response, ListWorkspaceWorkflowVersions200Response, ListWorkspaceWorkflows200Response, ManagedUserEntriesPageSuccess, ManagedUserResponse, ManagedUserUsageResponse, MyPartnersResponse, NewComposition, NewEditorSession, NewManagedUser, NewWidget, OfferWorkflowPresetRequest, OperationsIdGetResponse, PartnerAnalyticsByManagedUserResponse, PartnerAnalyticsSummaryResponse, PartnerAnalyticsTimelineResponse, PartnerAnalyticsTopWidgetsResponse, PartnerContractResponse, PartnerDataDatabaseRemovalResponse, PartnerDataDatabaseResponse, PartnerEntryContextSecretResponse, PartnerEntryContextSigningResponse, PartnerExtraCreditsInvoiceResponse, PartnerNotificationDeliveryLogResponse, PartnerNotificationDeliveryResponse, PartnerNotificationPageResponse, PartnerNotificationSettingsChangeResponse, PartnerNotificationSettingsResponse, PartnerNotificationTestEventRequest, PartnerNotificationTestEventResultResponse, PartnerPresetCopyResponse, PartnerPresetRemovalResponse, PartnerPresetResponse, PartnerStorageDestinationResponse, PartnerStorageRemovalResponse, PartnerStorageUsageResponse, PatchBrandKitAssetRequest, PatchBrandKitRequest, PersonalWorkspaceDomainResultResponse, PostBrandKitIconRequest, PostPublicCompositionEmbedStatus200Response, PostPublicCompositionEmbedStatusRequest, PublicAdapterCallRequest, PublicAdapterCallResult, PublicAdapterFileResult, PublicCompositionEntryCreated, PublicCompositionEntryRequest, PublicWorkflowEventsRequest, PublishWorkspaceWorkflow200Response, PublishWorkspaceWorkflowRequest, PutBrandKitRequest, RemoveAiAnswersKnowledgeDocument200Response, RemovePartnerWorkflowPreset200Response, RemoveUserAdapterConnection200Response, ReportPublicWorkflowEvents200Response, RequestExtraCredits, RevokeManagedUserEditorSessionsResponse, SaveWorkspaceWorkflow200Response, SaveWorkspaceWorkflowRequest, SetAdapterConnectionRequest, SetCompositionDataSourceRequest, SetDynamicContentRequest, SetDynamicContentResponse, SetManagedUserLimitsRequest, SetPartnerDataDatabaseRequest, SetPartnerDesignDefaultsRequest, SetPartnerPresetRequest, SetPartnerStorageDestinationRequest, SetPartnerWorkflowPreset200Response, SetUserAdapterConnection200Response, UpdateCanvasRequest, UpdateComposition, UpdateCompositionStatusRequest, UpdateDomainRequest, UpdateManagedUser, UpdatePartnerEntryContextSigningRequest, UpdatePartnerNotificationSettingsRequest, UpdateUserApiKeyRequest, UploadLimitsResponse, UploadResponse, UploadsGet200Response, UploadsIdDelete200Response, UserApiKeyResponse, ValidateCompositionContentResponse, ValidateToken200Response } from '../models/index';
|
|
14
14
|
export interface AddAiAnswersKnowledgeDocumentOperationRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
addAiAnswersKnowledgeDocumentRequest: AddAiAnswersKnowledgeDocumentRequest;
|
|
@@ -141,6 +141,13 @@ export interface CreateWorkspaceWorkflowFromPresetOperationRequest {
|
|
|
141
141
|
xManagedUserId?: string;
|
|
142
142
|
xManagedUserExternalId?: string;
|
|
143
143
|
}
|
|
144
|
+
export interface DeleteBrandKitRequest {
|
|
145
|
+
organizationId?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface DeleteBrandKitAssetRequest {
|
|
148
|
+
assetId: string;
|
|
149
|
+
organizationId?: string;
|
|
150
|
+
}
|
|
144
151
|
export interface DeleteCanvasRequest {
|
|
145
152
|
id: string;
|
|
146
153
|
}
|
|
@@ -277,6 +284,9 @@ export interface GetAllManagedUsersRequest {
|
|
|
277
284
|
size?: number;
|
|
278
285
|
sort?: string;
|
|
279
286
|
}
|
|
287
|
+
export interface GetBrandKitRequest {
|
|
288
|
+
organizationId?: string;
|
|
289
|
+
}
|
|
280
290
|
export interface GetCanvasRequest {
|
|
281
291
|
id: string;
|
|
282
292
|
}
|
|
@@ -606,6 +616,15 @@ export interface ListWorkspaceWorkflowsRequest {
|
|
|
606
616
|
export interface OperationsIdGetRequest {
|
|
607
617
|
id: string;
|
|
608
618
|
}
|
|
619
|
+
export interface PatchBrandKitOperationRequest {
|
|
620
|
+
patchBrandKitRequest: PatchBrandKitRequest;
|
|
621
|
+
organizationId?: string;
|
|
622
|
+
}
|
|
623
|
+
export interface PatchBrandKitAssetOperationRequest {
|
|
624
|
+
assetId: string;
|
|
625
|
+
patchBrandKitAssetRequest: PatchBrandKitAssetRequest;
|
|
626
|
+
organizationId?: string;
|
|
627
|
+
}
|
|
609
628
|
export interface PatchCompositionContentItemRequest {
|
|
610
629
|
id: string;
|
|
611
630
|
list: string;
|
|
@@ -624,6 +643,17 @@ export interface PauseWorkspaceWorkflowRequest {
|
|
|
624
643
|
xManagedUserId?: string;
|
|
625
644
|
xManagedUserExternalId?: string;
|
|
626
645
|
}
|
|
646
|
+
export interface PostBrandKitFontRequest {
|
|
647
|
+
file: Blob;
|
|
648
|
+
family: string;
|
|
649
|
+
weight: number;
|
|
650
|
+
organizationId?: string;
|
|
651
|
+
style?: PostBrandKitFontStyleEnum;
|
|
652
|
+
}
|
|
653
|
+
export interface PostBrandKitIconOperationRequest {
|
|
654
|
+
postBrandKitIconRequest: PostBrandKitIconRequest;
|
|
655
|
+
organizationId?: string;
|
|
656
|
+
}
|
|
627
657
|
export interface PostPublicCompositionEmbedStatusOperationRequest {
|
|
628
658
|
postPublicCompositionEmbedStatusRequest: PostPublicCompositionEmbedStatusRequest;
|
|
629
659
|
}
|
|
@@ -635,6 +665,10 @@ export interface PublishWorkspaceWorkflowOperationRequest {
|
|
|
635
665
|
xManagedUserId?: string;
|
|
636
666
|
xManagedUserExternalId?: string;
|
|
637
667
|
}
|
|
668
|
+
export interface PutBrandKitOperationRequest {
|
|
669
|
+
putBrandKitRequest: PutBrandKitRequest;
|
|
670
|
+
organizationId?: string;
|
|
671
|
+
}
|
|
638
672
|
export interface ReadCompositionEntriesRequest {
|
|
639
673
|
id: string;
|
|
640
674
|
table: string;
|
|
@@ -1122,6 +1156,22 @@ export declare class PartnerApi extends runtime.BaseAPI {
|
|
|
1122
1156
|
* Start a Workflow from a starting point
|
|
1123
1157
|
*/
|
|
1124
1158
|
createWorkspaceWorkflowFromPreset(requestParameters: CreateWorkspaceWorkflowFromPresetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWorkspaceWorkflowFromPreset201Response>;
|
|
1159
|
+
/**
|
|
1160
|
+
* Reset the Brand Kit to the default
|
|
1161
|
+
*/
|
|
1162
|
+
deleteBrandKitRaw(requestParameters: DeleteBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Reset the Brand Kit to the default
|
|
1165
|
+
*/
|
|
1166
|
+
deleteBrandKit(requestParameters?: DeleteBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Remove a font or icon from the Brand Kit
|
|
1169
|
+
*/
|
|
1170
|
+
deleteBrandKitAssetRaw(requestParameters: DeleteBrandKitAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
1171
|
+
/**
|
|
1172
|
+
* Remove a font or icon from the Brand Kit
|
|
1173
|
+
*/
|
|
1174
|
+
deleteBrandKitAsset(requestParameters: DeleteBrandKitAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
1125
1175
|
/**
|
|
1126
1176
|
* Deletes a canvas together with every widget on it. Called with an editor session, only a canvas whose widgets were all made for the session\'s managed user can be deleted; one that also holds somebody else\'s widgets is refused with 409 and `CANVAS_HAS_OTHER_WIDGETS`, and nothing is deleted. Delete such a canvas with your API key.
|
|
1127
1177
|
* Delete Canvas
|
|
@@ -1310,6 +1360,16 @@ export declare class PartnerApi extends runtime.BaseAPI {
|
|
|
1310
1360
|
* Get Managed Users
|
|
1311
1361
|
*/
|
|
1312
1362
|
getAllManagedUsers(requestParameters?: GetAllManagedUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllManagedUsers200Response>;
|
|
1363
|
+
/**
|
|
1364
|
+
* The colors, fonts, icons, corner radius and style notes every widget made by this account is generated with. An account that never saved a kit gets Widgetic\'s default one (`isDefault` is true). A partner account\'s kit is the default for everything its keys create, and a key reads and changes the kit of the account it belongs to; there is no kit per managed user.
|
|
1365
|
+
* The Brand Kit of the current workspace
|
|
1366
|
+
*/
|
|
1367
|
+
getBrandKitRaw(requestParameters: GetBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
1368
|
+
/**
|
|
1369
|
+
* The colors, fonts, icons, corner radius and style notes every widget made by this account is generated with. An account that never saved a kit gets Widgetic\'s default one (`isDefault` is true). A partner account\'s kit is the default for everything its keys create, and a key reads and changes the kit of the account it belongs to; there is no kit per managed user.
|
|
1370
|
+
* The Brand Kit of the current workspace
|
|
1371
|
+
*/
|
|
1372
|
+
getBrandKit(requestParameters?: GetBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
1313
1373
|
/**
|
|
1314
1374
|
* Retrieves a specific canvas by ID.
|
|
1315
1375
|
* Get Canvas
|
|
@@ -1962,6 +2022,24 @@ export declare class PartnerApi extends runtime.BaseAPI {
|
|
|
1962
2022
|
* Get operation status
|
|
1963
2023
|
*/
|
|
1964
2024
|
operationsIdGet(requestParameters: OperationsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperationsIdGetResponse>;
|
|
2025
|
+
/**
|
|
2026
|
+
* Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
|
|
2027
|
+
* Change part of the Brand Kit
|
|
2028
|
+
*/
|
|
2029
|
+
patchBrandKitRaw(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
2030
|
+
/**
|
|
2031
|
+
* Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
|
|
2032
|
+
* Change part of the Brand Kit
|
|
2033
|
+
*/
|
|
2034
|
+
patchBrandKit(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
2035
|
+
/**
|
|
2036
|
+
* Rename an icon or relabel a font variant
|
|
2037
|
+
*/
|
|
2038
|
+
patchBrandKitAssetRaw(requestParameters: PatchBrandKitAssetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
2039
|
+
/**
|
|
2040
|
+
* Rename an icon or relabel a font variant
|
|
2041
|
+
*/
|
|
2042
|
+
patchBrandKitAsset(requestParameters: PatchBrandKitAssetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
1965
2043
|
/**
|
|
1966
2044
|
* Update a content list item
|
|
1967
2045
|
*/
|
|
@@ -1980,6 +2058,22 @@ export declare class PartnerApi extends runtime.BaseAPI {
|
|
|
1980
2058
|
* Pause a Workflow
|
|
1981
2059
|
*/
|
|
1982
2060
|
pauseWorkspaceWorkflow(requestParameters: PauseWorkspaceWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveWorkspaceWorkflow200Response>;
|
|
2061
|
+
/**
|
|
2062
|
+
* Upload a font file to the Brand Kit
|
|
2063
|
+
*/
|
|
2064
|
+
postBrandKitFontRaw(requestParameters: PostBrandKitFontRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
2065
|
+
/**
|
|
2066
|
+
* Upload a font file to the Brand Kit
|
|
2067
|
+
*/
|
|
2068
|
+
postBrandKitFont(requestParameters: PostBrandKitFontRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
2069
|
+
/**
|
|
2070
|
+
* Add a named SVG icon to the Brand Kit
|
|
2071
|
+
*/
|
|
2072
|
+
postBrandKitIconRaw(requestParameters: PostBrandKitIconOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
2073
|
+
/**
|
|
2074
|
+
* Add a named SVG icon to the Brand Kit
|
|
2075
|
+
*/
|
|
2076
|
+
postBrandKitIcon(requestParameters: PostBrandKitIconOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
1983
2077
|
/**
|
|
1984
2078
|
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
1985
2079
|
* Batch-check whether compositions are currently served for embed
|
|
@@ -2000,6 +2094,16 @@ export declare class PartnerApi extends runtime.BaseAPI {
|
|
|
2000
2094
|
* Publish the Draft of a Workflow
|
|
2001
2095
|
*/
|
|
2002
2096
|
publishWorkspaceWorkflow(requestParameters: PublishWorkspaceWorkflowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWorkspaceWorkflow200Response>;
|
|
2097
|
+
/**
|
|
2098
|
+
* Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
|
|
2099
|
+
* Save Brand Kit tokens
|
|
2100
|
+
*/
|
|
2101
|
+
putBrandKitRaw(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
|
|
2102
|
+
/**
|
|
2103
|
+
* Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
|
|
2104
|
+
* Save Brand Kit tokens
|
|
2105
|
+
*/
|
|
2106
|
+
putBrandKit(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
|
|
2003
2107
|
/**
|
|
2004
2108
|
* Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. - **`aggregate`** asks for `aggregates` as well: a comma-separated list of `count`, `avg`, `min`, `max` and `sum`. `avg`, `min`, `max` and `sum` need `column`, a numeric column of the table. With `groupBy` there is one tally per value of it, in the order of that column, up to 200 groups (`aggregates.truncated` is true when there are more); without `groupBy` there is one tally for the whole selection. **`aggregates` counts a selection; the rest of the answer does not.** `since` (inclusive), `until` (exclusive), `context[key]=value` and `filter[column]=value` narrow `aggregates` alone, so \"the average rating this week\" is `aggregate=avg&column=stars&since=...`. `totalRows`, `tallies` and `rows` always describe the whole table. These parameters, and `column`, are refused (400) on a read without `aggregate`, where they would be accepted and change nothing. This read is bounded on purpose: it never returns more than 25 entries, 20 groups (200 in `aggregates`), 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`; to page through entries with their time, context and filters, use `listCompositionEntryItems`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
|
|
2005
2109
|
* Read the Entries of a Composition\'s Table
|
|
@@ -2564,6 +2668,14 @@ export declare const ListWorkspaceWorkflowsStatusEnum: {
|
|
|
2564
2668
|
readonly All: 'all';
|
|
2565
2669
|
};
|
|
2566
2670
|
export type ListWorkspaceWorkflowsStatusEnum = typeof ListWorkspaceWorkflowsStatusEnum[keyof typeof ListWorkspaceWorkflowsStatusEnum];
|
|
2671
|
+
/**
|
|
2672
|
+
* @export
|
|
2673
|
+
*/
|
|
2674
|
+
export declare const PostBrandKitFontStyleEnum: {
|
|
2675
|
+
readonly Normal: 'normal';
|
|
2676
|
+
readonly Italic: 'italic';
|
|
2677
|
+
};
|
|
2678
|
+
export type PostBrandKitFontStyleEnum = typeof PostBrandKitFontStyleEnum[keyof typeof PostBrandKitFontStyleEnum];
|
|
2567
2679
|
/**
|
|
2568
2680
|
* @export
|
|
2569
2681
|
*/
|
package/dist/apis/PartnerApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.UploadsPostPurposeEnum = exports.UploadsPostSourceEnum = exports.UploadsPostContextTypeEnum = exports.ListWorkspaceWorkflowsStatusEnum = exports.ListManagedUserEntriesOrderEnum = exports.ListCompositionEntryItemsOrderEnum = exports.GetInvoicesByPartnerIdStatusEnum = exports.GetAllCompositionsStatusEnum = exports.GetAllCompositionsWorkspaceEnum = exports.ExportCompositionEntryItemsOrderEnum = exports.ExportCompositionEntryItemsFormatEnum = exports.PartnerApi = void 0;
|
|
49
|
+
exports.UploadsPostPurposeEnum = exports.UploadsPostSourceEnum = exports.UploadsPostContextTypeEnum = exports.PostBrandKitFontStyleEnum = exports.ListWorkspaceWorkflowsStatusEnum = exports.ListManagedUserEntriesOrderEnum = exports.ListCompositionEntryItemsOrderEnum = exports.GetInvoicesByPartnerIdStatusEnum = exports.GetAllCompositionsStatusEnum = exports.GetAllCompositionsWorkspaceEnum = exports.ExportCompositionEntryItemsOrderEnum = exports.ExportCompositionEntryItemsFormatEnum = exports.PartnerApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -1073,6 +1073,71 @@ class PartnerApi extends runtime.BaseAPI {
|
|
|
1073
1073
|
const response = await this.createWorkspaceWorkflowFromPresetRaw(requestParameters, initOverrides);
|
|
1074
1074
|
return await response.value();
|
|
1075
1075
|
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Reset the Brand Kit to the default
|
|
1078
|
+
*/
|
|
1079
|
+
async deleteBrandKitRaw(requestParameters, initOverrides) {
|
|
1080
|
+
const queryParameters = {};
|
|
1081
|
+
if (requestParameters['organizationId'] != null) {
|
|
1082
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
1083
|
+
}
|
|
1084
|
+
const headerParameters = {};
|
|
1085
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1086
|
+
const token = this.configuration.accessToken;
|
|
1087
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1088
|
+
if (tokenString) {
|
|
1089
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
const response = await this.request({
|
|
1093
|
+
path: `/brand-kit`,
|
|
1094
|
+
method: 'DELETE',
|
|
1095
|
+
headers: headerParameters,
|
|
1096
|
+
query: queryParameters,
|
|
1097
|
+
}, initOverrides);
|
|
1098
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Reset the Brand Kit to the default
|
|
1102
|
+
*/
|
|
1103
|
+
async deleteBrandKit(requestParameters = {}, initOverrides) {
|
|
1104
|
+
const response = await this.deleteBrandKitRaw(requestParameters, initOverrides);
|
|
1105
|
+
return await response.value();
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Remove a font or icon from the Brand Kit
|
|
1109
|
+
*/
|
|
1110
|
+
async deleteBrandKitAssetRaw(requestParameters, initOverrides) {
|
|
1111
|
+
if (requestParameters['assetId'] == null) {
|
|
1112
|
+
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling deleteBrandKitAsset().');
|
|
1113
|
+
}
|
|
1114
|
+
const queryParameters = {};
|
|
1115
|
+
if (requestParameters['organizationId'] != null) {
|
|
1116
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
1117
|
+
}
|
|
1118
|
+
const headerParameters = {};
|
|
1119
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1120
|
+
const token = this.configuration.accessToken;
|
|
1121
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1122
|
+
if (tokenString) {
|
|
1123
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
const response = await this.request({
|
|
1127
|
+
path: `/brand-kit/assets/{assetId}`.replace(`{${"assetId"}}`, encodeURIComponent(String(requestParameters['assetId']))),
|
|
1128
|
+
method: 'DELETE',
|
|
1129
|
+
headers: headerParameters,
|
|
1130
|
+
query: queryParameters,
|
|
1131
|
+
}, initOverrides);
|
|
1132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Remove a font or icon from the Brand Kit
|
|
1136
|
+
*/
|
|
1137
|
+
async deleteBrandKitAsset(requestParameters, initOverrides) {
|
|
1138
|
+
const response = await this.deleteBrandKitAssetRaw(requestParameters, initOverrides);
|
|
1139
|
+
return await response.value();
|
|
1140
|
+
}
|
|
1076
1141
|
/**
|
|
1077
1142
|
* Deletes a canvas together with every widget on it. Called with an editor session, only a canvas whose widgets were all made for the session\'s managed user can be deleted; one that also holds somebody else\'s widgets is refused with 409 and `CANVAS_HAS_OTHER_WIDGETS`, and nothing is deleted. Delete such a canvas with your API key.
|
|
1078
1143
|
* Delete Canvas
|
|
@@ -1928,6 +1993,39 @@ class PartnerApi extends runtime.BaseAPI {
|
|
|
1928
1993
|
const response = await this.getAllManagedUsersRaw(requestParameters, initOverrides);
|
|
1929
1994
|
return await response.value();
|
|
1930
1995
|
}
|
|
1996
|
+
/**
|
|
1997
|
+
* The colors, fonts, icons, corner radius and style notes every widget made by this account is generated with. An account that never saved a kit gets Widgetic\'s default one (`isDefault` is true). A partner account\'s kit is the default for everything its keys create, and a key reads and changes the kit of the account it belongs to; there is no kit per managed user.
|
|
1998
|
+
* The Brand Kit of the current workspace
|
|
1999
|
+
*/
|
|
2000
|
+
async getBrandKitRaw(requestParameters, initOverrides) {
|
|
2001
|
+
const queryParameters = {};
|
|
2002
|
+
if (requestParameters['organizationId'] != null) {
|
|
2003
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
2004
|
+
}
|
|
2005
|
+
const headerParameters = {};
|
|
2006
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2007
|
+
const token = this.configuration.accessToken;
|
|
2008
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
2009
|
+
if (tokenString) {
|
|
2010
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
const response = await this.request({
|
|
2014
|
+
path: `/brand-kit`,
|
|
2015
|
+
method: 'GET',
|
|
2016
|
+
headers: headerParameters,
|
|
2017
|
+
query: queryParameters,
|
|
2018
|
+
}, initOverrides);
|
|
2019
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
2020
|
+
}
|
|
2021
|
+
/**
|
|
2022
|
+
* The colors, fonts, icons, corner radius and style notes every widget made by this account is generated with. An account that never saved a kit gets Widgetic\'s default one (`isDefault` is true). A partner account\'s kit is the default for everything its keys create, and a key reads and changes the kit of the account it belongs to; there is no kit per managed user.
|
|
2023
|
+
* The Brand Kit of the current workspace
|
|
2024
|
+
*/
|
|
2025
|
+
async getBrandKit(requestParameters = {}, initOverrides) {
|
|
2026
|
+
const response = await this.getBrandKitRaw(requestParameters, initOverrides);
|
|
2027
|
+
return await response.value();
|
|
2028
|
+
}
|
|
1931
2029
|
/**
|
|
1932
2030
|
* Retrieves a specific canvas by ID.
|
|
1933
2031
|
* Get Canvas
|
|
@@ -4452,6 +4550,83 @@ class PartnerApi extends runtime.BaseAPI {
|
|
|
4452
4550
|
const response = await this.operationsIdGetRaw(requestParameters, initOverrides);
|
|
4453
4551
|
return await response.value();
|
|
4454
4552
|
}
|
|
4553
|
+
/**
|
|
4554
|
+
* Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
|
|
4555
|
+
* Change part of the Brand Kit
|
|
4556
|
+
*/
|
|
4557
|
+
async patchBrandKitRaw(requestParameters, initOverrides) {
|
|
4558
|
+
if (requestParameters['patchBrandKitRequest'] == null) {
|
|
4559
|
+
throw new runtime.RequiredError('patchBrandKitRequest', 'Required parameter "patchBrandKitRequest" was null or undefined when calling patchBrandKit().');
|
|
4560
|
+
}
|
|
4561
|
+
const queryParameters = {};
|
|
4562
|
+
if (requestParameters['organizationId'] != null) {
|
|
4563
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
4564
|
+
}
|
|
4565
|
+
const headerParameters = {};
|
|
4566
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4567
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4568
|
+
const token = this.configuration.accessToken;
|
|
4569
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
4570
|
+
if (tokenString) {
|
|
4571
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4572
|
+
}
|
|
4573
|
+
}
|
|
4574
|
+
const response = await this.request({
|
|
4575
|
+
path: `/brand-kit`,
|
|
4576
|
+
method: 'PATCH',
|
|
4577
|
+
headers: headerParameters,
|
|
4578
|
+
query: queryParameters,
|
|
4579
|
+
body: (0, index_1.PatchBrandKitRequestToJSON)(requestParameters['patchBrandKitRequest']),
|
|
4580
|
+
}, initOverrides);
|
|
4581
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
4582
|
+
}
|
|
4583
|
+
/**
|
|
4584
|
+
* Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
|
|
4585
|
+
* Change part of the Brand Kit
|
|
4586
|
+
*/
|
|
4587
|
+
async patchBrandKit(requestParameters, initOverrides) {
|
|
4588
|
+
const response = await this.patchBrandKitRaw(requestParameters, initOverrides);
|
|
4589
|
+
return await response.value();
|
|
4590
|
+
}
|
|
4591
|
+
/**
|
|
4592
|
+
* Rename an icon or relabel a font variant
|
|
4593
|
+
*/
|
|
4594
|
+
async patchBrandKitAssetRaw(requestParameters, initOverrides) {
|
|
4595
|
+
if (requestParameters['assetId'] == null) {
|
|
4596
|
+
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling patchBrandKitAsset().');
|
|
4597
|
+
}
|
|
4598
|
+
if (requestParameters['patchBrandKitAssetRequest'] == null) {
|
|
4599
|
+
throw new runtime.RequiredError('patchBrandKitAssetRequest', 'Required parameter "patchBrandKitAssetRequest" was null or undefined when calling patchBrandKitAsset().');
|
|
4600
|
+
}
|
|
4601
|
+
const queryParameters = {};
|
|
4602
|
+
if (requestParameters['organizationId'] != null) {
|
|
4603
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
4604
|
+
}
|
|
4605
|
+
const headerParameters = {};
|
|
4606
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4607
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4608
|
+
const token = this.configuration.accessToken;
|
|
4609
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
4610
|
+
if (tokenString) {
|
|
4611
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
const response = await this.request({
|
|
4615
|
+
path: `/brand-kit/assets/{assetId}`.replace(`{${"assetId"}}`, encodeURIComponent(String(requestParameters['assetId']))),
|
|
4616
|
+
method: 'PATCH',
|
|
4617
|
+
headers: headerParameters,
|
|
4618
|
+
query: queryParameters,
|
|
4619
|
+
body: (0, index_1.PatchBrandKitAssetRequestToJSON)(requestParameters['patchBrandKitAssetRequest']),
|
|
4620
|
+
}, initOverrides);
|
|
4621
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
4622
|
+
}
|
|
4623
|
+
/**
|
|
4624
|
+
* Rename an icon or relabel a font variant
|
|
4625
|
+
*/
|
|
4626
|
+
async patchBrandKitAsset(requestParameters, initOverrides) {
|
|
4627
|
+
const response = await this.patchBrandKitAssetRaw(requestParameters, initOverrides);
|
|
4628
|
+
return await response.value();
|
|
4629
|
+
}
|
|
4455
4630
|
/**
|
|
4456
4631
|
* Update a content list item
|
|
4457
4632
|
*/
|
|
@@ -4551,6 +4726,110 @@ class PartnerApi extends runtime.BaseAPI {
|
|
|
4551
4726
|
const response = await this.pauseWorkspaceWorkflowRaw(requestParameters, initOverrides);
|
|
4552
4727
|
return await response.value();
|
|
4553
4728
|
}
|
|
4729
|
+
/**
|
|
4730
|
+
* Upload a font file to the Brand Kit
|
|
4731
|
+
*/
|
|
4732
|
+
async postBrandKitFontRaw(requestParameters, initOverrides) {
|
|
4733
|
+
if (requestParameters['file'] == null) {
|
|
4734
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postBrandKitFont().');
|
|
4735
|
+
}
|
|
4736
|
+
if (requestParameters['family'] == null) {
|
|
4737
|
+
throw new runtime.RequiredError('family', 'Required parameter "family" was null or undefined when calling postBrandKitFont().');
|
|
4738
|
+
}
|
|
4739
|
+
if (requestParameters['weight'] == null) {
|
|
4740
|
+
throw new runtime.RequiredError('weight', 'Required parameter "weight" was null or undefined when calling postBrandKitFont().');
|
|
4741
|
+
}
|
|
4742
|
+
const queryParameters = {};
|
|
4743
|
+
if (requestParameters['organizationId'] != null) {
|
|
4744
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
4745
|
+
}
|
|
4746
|
+
const headerParameters = {};
|
|
4747
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4748
|
+
const token = this.configuration.accessToken;
|
|
4749
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
4750
|
+
if (tokenString) {
|
|
4751
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4752
|
+
}
|
|
4753
|
+
}
|
|
4754
|
+
const consumes = [
|
|
4755
|
+
{ contentType: 'multipart/form-data' },
|
|
4756
|
+
];
|
|
4757
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
4758
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
4759
|
+
let formParams;
|
|
4760
|
+
let useForm = false;
|
|
4761
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
4762
|
+
useForm = canConsumeForm;
|
|
4763
|
+
if (useForm) {
|
|
4764
|
+
formParams = new FormData();
|
|
4765
|
+
}
|
|
4766
|
+
else {
|
|
4767
|
+
formParams = new URLSearchParams();
|
|
4768
|
+
}
|
|
4769
|
+
if (requestParameters['file'] != null) {
|
|
4770
|
+
formParams.append('file', requestParameters['file']);
|
|
4771
|
+
}
|
|
4772
|
+
if (requestParameters['family'] != null) {
|
|
4773
|
+
formParams.append('family', requestParameters['family']);
|
|
4774
|
+
}
|
|
4775
|
+
if (requestParameters['weight'] != null) {
|
|
4776
|
+
formParams.append('weight', requestParameters['weight']);
|
|
4777
|
+
}
|
|
4778
|
+
if (requestParameters['style'] != null) {
|
|
4779
|
+
formParams.append('style', requestParameters['style']);
|
|
4780
|
+
}
|
|
4781
|
+
const response = await this.request({
|
|
4782
|
+
path: `/brand-kit/fonts`,
|
|
4783
|
+
method: 'POST',
|
|
4784
|
+
headers: headerParameters,
|
|
4785
|
+
query: queryParameters,
|
|
4786
|
+
body: formParams,
|
|
4787
|
+
}, initOverrides);
|
|
4788
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
4789
|
+
}
|
|
4790
|
+
/**
|
|
4791
|
+
* Upload a font file to the Brand Kit
|
|
4792
|
+
*/
|
|
4793
|
+
async postBrandKitFont(requestParameters, initOverrides) {
|
|
4794
|
+
const response = await this.postBrandKitFontRaw(requestParameters, initOverrides);
|
|
4795
|
+
return await response.value();
|
|
4796
|
+
}
|
|
4797
|
+
/**
|
|
4798
|
+
* Add a named SVG icon to the Brand Kit
|
|
4799
|
+
*/
|
|
4800
|
+
async postBrandKitIconRaw(requestParameters, initOverrides) {
|
|
4801
|
+
if (requestParameters['postBrandKitIconRequest'] == null) {
|
|
4802
|
+
throw new runtime.RequiredError('postBrandKitIconRequest', 'Required parameter "postBrandKitIconRequest" was null or undefined when calling postBrandKitIcon().');
|
|
4803
|
+
}
|
|
4804
|
+
const queryParameters = {};
|
|
4805
|
+
if (requestParameters['organizationId'] != null) {
|
|
4806
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
4807
|
+
}
|
|
4808
|
+
const headerParameters = {};
|
|
4809
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4810
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4811
|
+
const token = this.configuration.accessToken;
|
|
4812
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
4813
|
+
if (tokenString) {
|
|
4814
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
const response = await this.request({
|
|
4818
|
+
path: `/brand-kit/icons`,
|
|
4819
|
+
method: 'POST',
|
|
4820
|
+
headers: headerParameters,
|
|
4821
|
+
query: queryParameters,
|
|
4822
|
+
body: (0, index_1.PostBrandKitIconRequestToJSON)(requestParameters['postBrandKitIconRequest']),
|
|
4823
|
+
}, initOverrides);
|
|
4824
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
4825
|
+
}
|
|
4826
|
+
/**
|
|
4827
|
+
* Add a named SVG icon to the Brand Kit
|
|
4828
|
+
*/
|
|
4829
|
+
async postBrandKitIcon(requestParameters, initOverrides) {
|
|
4830
|
+
const response = await this.postBrandKitIconRaw(requestParameters, initOverrides);
|
|
4831
|
+
return await response.value();
|
|
4832
|
+
}
|
|
4554
4833
|
/**
|
|
4555
4834
|
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
4556
4835
|
* Batch-check whether compositions are currently served for embed
|
|
@@ -4632,6 +4911,44 @@ class PartnerApi extends runtime.BaseAPI {
|
|
|
4632
4911
|
const response = await this.publishWorkspaceWorkflowRaw(requestParameters, initOverrides);
|
|
4633
4912
|
return await response.value();
|
|
4634
4913
|
}
|
|
4914
|
+
/**
|
|
4915
|
+
* Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
|
|
4916
|
+
* Save Brand Kit tokens
|
|
4917
|
+
*/
|
|
4918
|
+
async putBrandKitRaw(requestParameters, initOverrides) {
|
|
4919
|
+
if (requestParameters['putBrandKitRequest'] == null) {
|
|
4920
|
+
throw new runtime.RequiredError('putBrandKitRequest', 'Required parameter "putBrandKitRequest" was null or undefined when calling putBrandKit().');
|
|
4921
|
+
}
|
|
4922
|
+
const queryParameters = {};
|
|
4923
|
+
if (requestParameters['organizationId'] != null) {
|
|
4924
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
4925
|
+
}
|
|
4926
|
+
const headerParameters = {};
|
|
4927
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4928
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4929
|
+
const token = this.configuration.accessToken;
|
|
4930
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
4931
|
+
if (tokenString) {
|
|
4932
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4933
|
+
}
|
|
4934
|
+
}
|
|
4935
|
+
const response = await this.request({
|
|
4936
|
+
path: `/brand-kit`,
|
|
4937
|
+
method: 'PUT',
|
|
4938
|
+
headers: headerParameters,
|
|
4939
|
+
query: queryParameters,
|
|
4940
|
+
body: (0, index_1.PutBrandKitRequestToJSON)(requestParameters['putBrandKitRequest']),
|
|
4941
|
+
}, initOverrides);
|
|
4942
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
|
|
4943
|
+
}
|
|
4944
|
+
/**
|
|
4945
|
+
* Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
|
|
4946
|
+
* Save Brand Kit tokens
|
|
4947
|
+
*/
|
|
4948
|
+
async putBrandKit(requestParameters, initOverrides) {
|
|
4949
|
+
const response = await this.putBrandKitRaw(requestParameters, initOverrides);
|
|
4950
|
+
return await response.value();
|
|
4951
|
+
}
|
|
4635
4952
|
/**
|
|
4636
4953
|
* Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. - **`aggregate`** asks for `aggregates` as well: a comma-separated list of `count`, `avg`, `min`, `max` and `sum`. `avg`, `min`, `max` and `sum` need `column`, a numeric column of the table. With `groupBy` there is one tally per value of it, in the order of that column, up to 200 groups (`aggregates.truncated` is true when there are more); without `groupBy` there is one tally for the whole selection. **`aggregates` counts a selection; the rest of the answer does not.** `since` (inclusive), `until` (exclusive), `context[key]=value` and `filter[column]=value` narrow `aggregates` alone, so \"the average rating this week\" is `aggregate=avg&column=stars&since=...`. `totalRows`, `tallies` and `rows` always describe the whole table. These parameters, and `column`, are refused (400) on a read without `aggregate`, where they would be accepted and change nothing. This read is bounded on purpose: it never returns more than 25 entries, 20 groups (200 in `aggregates`), 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`; to page through entries with their time, context and filters, use `listCompositionEntryItems`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
|
|
4637
4954
|
* Read the Entries of a Composition\'s Table
|
|
@@ -6721,6 +7038,13 @@ exports.ListWorkspaceWorkflowsStatusEnum = {
|
|
|
6721
7038
|
Archived: 'archived',
|
|
6722
7039
|
All: 'all'
|
|
6723
7040
|
};
|
|
7041
|
+
/**
|
|
7042
|
+
* @export
|
|
7043
|
+
*/
|
|
7044
|
+
exports.PostBrandKitFontStyleEnum = {
|
|
7045
|
+
Normal: 'normal',
|
|
7046
|
+
Italic: 'italic'
|
|
7047
|
+
};
|
|
6724
7048
|
/**
|
|
6725
7049
|
* @export
|
|
6726
7050
|
*/
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./BrandKitApi"), exports);
|
|
19
20
|
__exportStar(require("./CanvasesApi"), exports);
|
|
20
21
|
__exportStar(require("./CompositionsApi"), exports);
|
|
21
22
|
__exportStar(require("./CreditsApi"), exports);
|