@widgetic/api-sdk-ts 0.0.0-stage → 1.11.109
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/README.md +98 -2
- package/dist/apis/CanvasesApi.d.ts +92 -0
- package/dist/apis/CanvasesApi.js +253 -0
- package/dist/apis/CompositionsApi.d.ts +637 -0
- package/dist/apis/CompositionsApi.js +1726 -0
- package/dist/apis/CreditsApi.d.ts +47 -0
- package/dist/apis/CreditsApi.js +132 -0
- package/dist/apis/EntitlementsApi.d.ts +50 -0
- package/dist/apis/EntitlementsApi.js +141 -0
- package/dist/apis/InvoicesApi.d.ts +49 -0
- package/dist/apis/InvoicesApi.js +113 -0
- package/dist/apis/ManagedUsersApi.d.ts +253 -0
- package/dist/apis/ManagedUsersApi.js +695 -0
- package/dist/apis/OperationsApi.d.ts +31 -0
- package/dist/apis/OperationsApi.js +90 -0
- package/dist/apis/PartnerApi.d.ts +2595 -0
- package/dist/apis/PartnerApi.js +6749 -0
- package/dist/apis/PartnersApi.d.ts +600 -0
- package/dist/apis/PartnersApi.js +1604 -0
- package/dist/apis/PublicEmbedApi.d.ts +159 -0
- package/dist/apis/PublicEmbedApi.js +370 -0
- package/dist/apis/TokensApi.d.ts +26 -0
- package/dist/apis/TokensApi.js +88 -0
- package/dist/apis/UploadsApi.d.ts +116 -0
- package/dist/apis/UploadsApi.js +285 -0
- package/dist/apis/UsersApi.d.ts +206 -0
- package/dist/apis/UsersApi.js +558 -0
- package/dist/apis/WidgetsApi.d.ts +77 -0
- package/dist/apis/WidgetsApi.js +222 -0
- package/dist/apis/WorkflowsApi.d.ts +394 -0
- package/dist/apis/WorkflowsApi.js +1056 -0
- package/dist/apis/WorkspacesApi.d.ts +352 -0
- package/dist/apis/WorkspacesApi.js +946 -0
- package/dist/apis/index.d.ts +16 -0
- package/dist/apis/index.js +34 -0
- package/dist/esm/apis/CanvasesApi.js +216 -0
- package/dist/esm/apis/CompositionsApi.js +1689 -0
- package/dist/esm/apis/CreditsApi.js +95 -0
- package/dist/esm/apis/EntitlementsApi.js +104 -0
- package/dist/esm/apis/InvoicesApi.js +76 -0
- package/dist/esm/apis/ManagedUsersApi.js +658 -0
- package/dist/esm/apis/OperationsApi.js +53 -0
- package/dist/esm/apis/PartnerApi.js +6712 -0
- package/dist/esm/apis/PartnersApi.js +1567 -0
- package/dist/esm/apis/PublicEmbedApi.js +333 -0
- package/dist/esm/apis/TokensApi.js +51 -0
- package/dist/esm/apis/UploadsApi.js +248 -0
- package/dist/esm/apis/UsersApi.js +521 -0
- package/dist/esm/apis/WidgetsApi.js +185 -0
- package/dist/esm/apis/WorkflowsApi.js +1019 -0
- package/dist/esm/apis/WorkspacesApi.js +909 -0
- package/dist/esm/apis/index.js +18 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AccountCreditBalance.js +49 -0
- package/dist/esm/models/AccountCreditBalanceResponse.js +51 -0
- package/dist/esm/models/AccountCreditTransaction.js +53 -0
- package/dist/esm/models/AdapterConnection.js +87 -0
- package/dist/esm/models/AdapterConnectionRemoval.js +43 -0
- package/dist/esm/models/AddAiAnswersKnowledgeDocument201Response.js +51 -0
- package/dist/esm/models/AddAiAnswersKnowledgeDocumentRequest.js +47 -0
- package/dist/esm/models/AddDomainRequest.js +43 -0
- package/dist/esm/models/AiAnswersKnowledge.js +49 -0
- package/dist/esm/models/AiAnswersKnowledgeDocument.js +74 -0
- package/dist/esm/models/AiAnswersKnowledgeRemoval.js +43 -0
- package/dist/esm/models/AiAnswersKnowledgeTotals.js +55 -0
- package/dist/esm/models/ApiKeyScope.js +74 -0
- package/dist/esm/models/Canvas.js +63 -0
- package/dist/esm/models/CanvasResponse.js +51 -0
- package/dist/esm/models/CheckCompositionAccessResponse.js +51 -0
- package/dist/esm/models/CheckCompositionAccessResponseData.js +43 -0
- package/dist/esm/models/Composition.js +98 -0
- package/dist/esm/models/CompositionDataSource.js +47 -0
- package/dist/esm/models/CompositionDataSourceResponse.js +51 -0
- package/dist/esm/models/CompositionEntriesDescription.js +52 -0
- package/dist/esm/models/CompositionEntriesDescriptionResponse.js +51 -0
- package/dist/esm/models/CompositionEntriesReading.js +75 -0
- package/dist/esm/models/CompositionEntriesReadingResponse.js +51 -0
- package/dist/esm/models/CompositionEntryAggregateTally.js +51 -0
- package/dist/esm/models/CompositionEntryAggregatesBlock.js +50 -0
- package/dist/esm/models/CompositionEntryColumn.js +47 -0
- package/dist/esm/models/CompositionEntryDeleteSuccess.js +48 -0
- package/dist/esm/models/CompositionEntryDeleteSuccessData.js +43 -0
- package/dist/esm/models/CompositionEntryItem.js +57 -0
- package/dist/esm/models/CompositionEntryItemsMeta.js +55 -0
- package/dist/esm/models/CompositionEntryItemsPageSuccess.js +53 -0
- package/dist/esm/models/CompositionEntryTable.js +52 -0
- package/dist/esm/models/CompositionEntryTally.js +47 -0
- package/dist/esm/models/CompositionLastEditedBy.js +43 -0
- package/dist/esm/models/CompositionResponse.js +51 -0
- package/dist/esm/models/CompositionVersion.js +49 -0
- package/dist/esm/models/ConfirmAdapterConnectionRequest.js +43 -0
- package/dist/esm/models/ContentCheckFinding.js +51 -0
- package/dist/esm/models/ContentItemWriteResult.js +52 -0
- package/dist/esm/models/ContentItemWriteResultValidationResult.js +45 -0
- package/dist/esm/models/CopyPartnerPresetRequest.js +41 -0
- package/dist/esm/models/CreateCanvasRequest.js +53 -0
- package/dist/esm/models/CreateCompositionContentItem201Response.js +51 -0
- package/dist/esm/models/CreateCompositionContentItemRequest.js +43 -0
- package/dist/esm/models/CreateCompositionDatabaseRecord201Response.js +50 -0
- package/dist/esm/models/CreateCompositionFromPresetRequest.js +51 -0
- package/dist/esm/models/CreateCompositionFromWidget201Response.js +51 -0
- package/dist/esm/models/CreateCompositionFromWidgetRequest.js +53 -0
- package/dist/esm/models/CreateUserApiKeyRequest.js +58 -0
- package/dist/esm/models/CreateWidget201Response.js +51 -0
- package/dist/esm/models/CreateWidget201ResponseData.js +90 -0
- package/dist/esm/models/CreateWorkspaceWorkflowFromPreset201Response.js +51 -0
- package/dist/esm/models/CreateWorkspaceWorkflowFromPresetRequest.js +45 -0
- package/dist/esm/models/CreateWorkspaceWorkflowRequest.js +47 -0
- package/dist/esm/models/CreatedUserApiKey.js +83 -0
- package/dist/esm/models/CreatedUserApiKeyResponse.js +51 -0
- package/dist/esm/models/DeleteCompositionContentItemResponse.js +51 -0
- package/dist/esm/models/DeleteCompositionContentItemResponseData.js +43 -0
- package/dist/esm/models/DeleteCompositionDataSourceResponse.js +51 -0
- package/dist/esm/models/DeleteCompositionDataSourceResponseData.js +43 -0
- package/dist/esm/models/DeleteManagedUser200Response.js +51 -0
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponse.js +51 -0
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +41 -0
- package/dist/esm/models/DeleteUserApiKeyResponse.js +51 -0
- package/dist/esm/models/DeleteUserApiKeyResponseData.js +41 -0
- package/dist/esm/models/DeleteWorkspaceWorkflow200Response.js +51 -0
- package/dist/esm/models/DesignDefaults.js +43 -0
- package/dist/esm/models/DuplicateComposition202Response.js +51 -0
- package/dist/esm/models/DuplicateComposition202ResponseData.js +41 -0
- package/dist/esm/models/DuplicateCompositionRequest.js +43 -0
- package/dist/esm/models/EditorSession.js +80 -0
- package/dist/esm/models/EditorSessionResponse.js +51 -0
- package/dist/esm/models/Entitlement.js +71 -0
- package/dist/esm/models/ErrorDetail.js +63 -0
- package/dist/esm/models/ErrorResponse.js +54 -0
- package/dist/esm/models/ExportCompositionEntryItems200Response.js +53 -0
- package/dist/esm/models/ExportCompositionEntryItems200ResponseMeta.js +47 -0
- package/dist/esm/models/GetAiAnswersKnowledge200Response.js +51 -0
- package/dist/esm/models/GetAllCanvasesResponse.js +51 -0
- package/dist/esm/models/GetAllCanvasesResponseData.js +48 -0
- package/dist/esm/models/GetAllCompositions200Response.js +51 -0
- package/dist/esm/models/GetAllManagedUsers200Response.js +51 -0
- package/dist/esm/models/GetCompositionContentResponse.js +50 -0
- package/dist/esm/models/GetCompositionContentSchemaResponse.js +51 -0
- package/dist/esm/models/GetCompositionContentSchemaResponseData.js +51 -0
- package/dist/esm/models/GetCompositionDataSourceResponse.js +51 -0
- package/dist/esm/models/GetCompositionDatabaseRecords200Response.js +50 -0
- package/dist/esm/models/GetCompositionDesignResponse.js +50 -0
- package/dist/esm/models/GetCompositionDesignSchemaResponse.js +51 -0
- package/dist/esm/models/GetCompositionDesignSchemaResponseData.js +51 -0
- package/dist/esm/models/GetCompositionEmbedSchemaResponse.js +51 -0
- package/dist/esm/models/GetCompositionEmbedSchemaResponseData.js +57 -0
- package/dist/esm/models/GetCompositionEmbedSettingsResponse.js +50 -0
- package/dist/esm/models/GetCompositionPreviewResponse.js +51 -0
- package/dist/esm/models/GetCompositionPreviewResponseData.js +47 -0
- package/dist/esm/models/GetCompositionVersions200Response.js +51 -0
- package/dist/esm/models/GetCompositionsBatchRequest.js +43 -0
- package/dist/esm/models/GetCompositionsBatchResponse.js +51 -0
- package/dist/esm/models/GetCompositionsBatchResponseData.js +45 -0
- package/dist/esm/models/GetInvoicesByPartnerId200Response.js +51 -0
- package/dist/esm/models/GetManagedUserEntitlementsResponse.js +51 -0
- package/dist/esm/models/GetManagedUserEntitlementsResponseData.js +44 -0
- package/dist/esm/models/GetManagedUserLimits200Response.js +51 -0
- package/dist/esm/models/GetManagedUserStorageUsage200Response.js +51 -0
- package/dist/esm/models/GetManagedUserStorageUsage200ResponseData.js +52 -0
- package/dist/esm/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +48 -0
- package/dist/esm/models/GetManagedUsersByManagerIdResponse.js +51 -0
- package/dist/esm/models/GetManagedUsersByManagerIdResponseData.js +48 -0
- package/dist/esm/models/GetPartnerBillingOverview200Response.js +51 -0
- package/dist/esm/models/GetPartnerCreditTransactions200Response.js +51 -0
- package/dist/esm/models/GetPartnerDesignDefaults200Response.js +51 -0
- package/dist/esm/models/GetPartnerEntitlementsResponse.js +51 -0
- package/dist/esm/models/GetPartnerEntitlementsResponseData.js +44 -0
- package/dist/esm/models/GetPersonalWorkspaceDomains200Response.js +51 -0
- package/dist/esm/models/GetPublicCompositionEmbed200Response.js +80 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseAdapters.js +44 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.js +41 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseEntries.js +43 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseMedia.js +41 -0
- package/dist/esm/models/GetPublicWorkflow200Response.js +51 -0
- package/dist/esm/models/GetUserAdapterConnections200Response.js +51 -0
- package/dist/esm/models/GetUserApiKeyUsageLogsResponse.js +51 -0
- package/dist/esm/models/GetUserApiKeyUsageLogsResponseData.js +44 -0
- package/dist/esm/models/GetUserApiKeys200Response.js +51 -0
- package/dist/esm/models/GetWidgets200Response.js +51 -0
- package/dist/esm/models/GetWidgetsBatchRequest.js +43 -0
- package/dist/esm/models/GetWidgetsBatchResponse.js +51 -0
- package/dist/esm/models/GetWidgetsBatchResponseData.js +45 -0
- package/dist/esm/models/GetWidgetsBatchResponseDataErrorsInner.js +43 -0
- package/dist/esm/models/GetWorkspaceWorkflowStats200Response.js +51 -0
- package/dist/esm/models/GetWorkspaceWorkflowVersion200Response.js +51 -0
- package/dist/esm/models/ListPartnerPresets200Response.js +51 -0
- package/dist/esm/models/ListPartnerWorkflowPresets200Response.js +51 -0
- package/dist/esm/models/ListWorkspaceWorkflowCompositionOptions200Response.js +51 -0
- package/dist/esm/models/ListWorkspaceWorkflowPresets200Response.js +51 -0
- package/dist/esm/models/ListWorkspaceWorkflowVersions200Response.js +51 -0
- package/dist/esm/models/ListWorkspaceWorkflows200Response.js +51 -0
- package/dist/esm/models/ManagedUser.js +63 -0
- package/dist/esm/models/ManagedUserEntriesMeta.js +57 -0
- package/dist/esm/models/ManagedUserEntriesPageSuccess.js +53 -0
- package/dist/esm/models/ManagedUserEntryItem.js +65 -0
- package/dist/esm/models/ManagedUserLimits.js +55 -0
- package/dist/esm/models/ManagedUserOperationUsage.js +59 -0
- package/dist/esm/models/ManagedUserRemoval.js +47 -0
- package/dist/esm/models/ManagedUserResponse.js +51 -0
- package/dist/esm/models/ManagedUserUsage.js +65 -0
- package/dist/esm/models/ManagedUserUsageResponse.js +51 -0
- package/dist/esm/models/ManagedUserUsageTotals.js +55 -0
- package/dist/esm/models/MyPartner.js +79 -0
- package/dist/esm/models/MyPartners.js +62 -0
- package/dist/esm/models/MyPartnersResponse.js +51 -0
- package/dist/esm/models/NewComposition.js +65 -0
- package/dist/esm/models/NewEditorSession.js +58 -0
- package/dist/esm/models/NewManagedUser.js +47 -0
- package/dist/esm/models/NewWidget.js +74 -0
- package/dist/esm/models/OfferWorkflowPresetRequest.js +49 -0
- package/dist/esm/models/OfferedWorkflowPreset.js +101 -0
- package/dist/esm/models/OfferedWorkflowPresetList.js +44 -0
- package/dist/esm/models/OfferedWorkflowPresetWidget.js +51 -0
- package/dist/esm/models/OperationsIdGetResponse.js +51 -0
- package/dist/esm/models/OperationsIdGetResponseData.js +65 -0
- package/dist/esm/models/PartnerAnalyticsByManagedUser.js +58 -0
- package/dist/esm/models/PartnerAnalyticsByManagedUserResponse.js +51 -0
- package/dist/esm/models/PartnerAnalyticsOfDay.js +55 -0
- package/dist/esm/models/PartnerAnalyticsOfManagedUser.js +79 -0
- package/dist/esm/models/PartnerAnalyticsOfWidget.js +63 -0
- package/dist/esm/models/PartnerAnalyticsSummary.js +72 -0
- package/dist/esm/models/PartnerAnalyticsSummaryResponse.js +51 -0
- package/dist/esm/models/PartnerAnalyticsTimeline.js +57 -0
- package/dist/esm/models/PartnerAnalyticsTimelineResponse.js +51 -0
- package/dist/esm/models/PartnerAnalyticsTopWidgets.js +57 -0
- package/dist/esm/models/PartnerAnalyticsTopWidgetsResponse.js +51 -0
- package/dist/esm/models/PartnerBillingOverview.js +57 -0
- package/dist/esm/models/PartnerBillingOverviewBillingIntegration.js +63 -0
- package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +56 -0
- package/dist/esm/models/PartnerBillingOverviewPartner.js +62 -0
- package/dist/esm/models/PartnerContract.js +79 -0
- package/dist/esm/models/PartnerContractResponse.js +51 -0
- package/dist/esm/models/PartnerCustomization.js +81 -0
- package/dist/esm/models/PartnerDataDatabase.js +71 -0
- package/dist/esm/models/PartnerDataDatabaseRemoval.js +43 -0
- package/dist/esm/models/PartnerDataDatabaseRemovalResponse.js +51 -0
- package/dist/esm/models/PartnerDataDatabaseResponse.js +51 -0
- package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
- package/dist/esm/models/PartnerEntryContextSecretResponse.js +51 -0
- package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
- package/dist/esm/models/PartnerEntryContextSigningResponse.js +51 -0
- package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
- package/dist/esm/models/PartnerExtraCreditsInvoiceResponse.js +51 -0
- package/dist/esm/models/PartnerInvoice.js +101 -0
- package/dist/esm/models/PartnerNotification.js +77 -0
- package/dist/esm/models/PartnerNotificationDefaultRecipients.js +47 -0
- package/dist/esm/models/PartnerNotificationDelivery.js +115 -0
- package/dist/esm/models/PartnerNotificationDeliveryLog.js +44 -0
- package/dist/esm/models/PartnerNotificationDeliveryLogResponse.js +51 -0
- package/dist/esm/models/PartnerNotificationDeliveryResponse.js +51 -0
- package/dist/esm/models/PartnerNotificationEvent.js +81 -0
- package/dist/esm/models/PartnerNotificationEventType.js +61 -0
- package/dist/esm/models/PartnerNotificationPage.js +48 -0
- package/dist/esm/models/PartnerNotificationPageResponse.js +51 -0
- package/dist/esm/models/PartnerNotificationSettings.js +82 -0
- package/dist/esm/models/PartnerNotificationSettingsChange.js +48 -0
- package/dist/esm/models/PartnerNotificationSettingsChangeResponse.js +51 -0
- package/dist/esm/models/PartnerNotificationSettingsResponse.js +51 -0
- package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
- package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
- package/dist/esm/models/PartnerNotificationTestEventResultResponse.js +51 -0
- package/dist/esm/models/PartnerPreset.js +75 -0
- package/dist/esm/models/PartnerPresetCopy.js +63 -0
- package/dist/esm/models/PartnerPresetCopyResponse.js +51 -0
- package/dist/esm/models/PartnerPresetRemoval.js +43 -0
- package/dist/esm/models/PartnerPresetRemovalResponse.js +51 -0
- package/dist/esm/models/PartnerPresetResponse.js +51 -0
- package/dist/esm/models/PartnerReportPage.js +51 -0
- package/dist/esm/models/PartnerReportPeriod.js +47 -0
- package/dist/esm/models/PartnerStorageDestination.js +83 -0
- package/dist/esm/models/PartnerStorageDestinationResponse.js +51 -0
- package/dist/esm/models/PartnerStorageRemoval.js +43 -0
- package/dist/esm/models/PartnerStorageRemovalResponse.js +51 -0
- package/dist/esm/models/PartnerStorageUsage.js +58 -0
- package/dist/esm/models/PartnerStorageUsageOfManagedUser.js +75 -0
- package/dist/esm/models/PartnerStorageUsageResponse.js +51 -0
- package/dist/esm/models/PartnerStorageUsageTotals.js +55 -0
- package/dist/esm/models/PersonalWorkspaceDomain.js +55 -0
- package/dist/esm/models/PersonalWorkspaceDomainResult.js +48 -0
- package/dist/esm/models/PersonalWorkspaceDomainResultResponse.js +51 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
- package/dist/esm/models/PublicAdapterCallError.js +53 -0
- package/dist/esm/models/PublicAdapterCallRequest.js +51 -0
- package/dist/esm/models/PublicAdapterCallResult.js +48 -0
- package/dist/esm/models/PublicAdapterCallResultData.js +43 -0
- package/dist/esm/models/PublicAdapterFileResult.js +48 -0
- package/dist/esm/models/PublicAdapterFileResultData.js +44 -0
- package/dist/esm/models/PublicAdapterFileResultDataFile.js +63 -0
- package/dist/esm/models/PublicCompositionEntryCreated.js +48 -0
- package/dist/esm/models/PublicCompositionEntryCreatedData.js +51 -0
- package/dist/esm/models/PublicCompositionEntryRequest.js +47 -0
- package/dist/esm/models/PublicEmbedFailure.js +61 -0
- package/dist/esm/models/PublicEmbedFailureDetails.js +52 -0
- package/dist/esm/models/PublicEmbedFailureError.js +57 -0
- package/dist/esm/models/PublicWorkflow.js +73 -0
- package/dist/esm/models/PublicWorkflowEventsAccepted.js +47 -0
- package/dist/esm/models/PublicWorkflowEventsRequest.js +53 -0
- package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +57 -0
- package/dist/esm/models/PublicWorkflowEventsRequestHeightsInner.js +47 -0
- package/dist/esm/models/PublicWorkflowTranslation.js +47 -0
- package/dist/esm/models/PublishWorkspaceWorkflow200Response.js +51 -0
- package/dist/esm/models/PublishWorkspaceWorkflowRequest.js +43 -0
- package/dist/esm/models/PurposeStorageBucket.js +47 -0
- package/dist/esm/models/RemoveAiAnswersKnowledgeDocument200Response.js +51 -0
- package/dist/esm/models/RemovePartnerWorkflowPreset200Response.js +51 -0
- package/dist/esm/models/RemoveUserAdapterConnection200Response.js +51 -0
- package/dist/esm/models/ReportPublicWorkflowEvents200Response.js +51 -0
- package/dist/esm/models/RequestExtraCredits.js +43 -0
- package/dist/esm/models/ResponseMeta.js +59 -0
- package/dist/esm/models/RevokeManagedUserEditorSessionsResponse.js +51 -0
- package/dist/esm/models/RevokeManagedUserEditorSessionsResponseData.js +41 -0
- package/dist/esm/models/SaveWorkspaceWorkflow200Response.js +51 -0
- package/dist/esm/models/SaveWorkspaceWorkflowRequest.js +50 -0
- package/dist/esm/models/SetAdapterConnectionRequest.js +43 -0
- package/dist/esm/models/SetCompositionDataSourceRequest.js +47 -0
- package/dist/esm/models/SetDynamicContentRequest.js +51 -0
- package/dist/esm/models/SetDynamicContentResponse.js +51 -0
- package/dist/esm/models/SetDynamicContentResponseData.js +50 -0
- package/dist/esm/models/SetDynamicContentResponseDataValidationResult.js +45 -0
- package/dist/esm/models/SetManagedUserLimitsRequest.js +43 -0
- package/dist/esm/models/SetPartnerDataDatabaseRequest.js +43 -0
- package/dist/esm/models/SetPartnerDesignDefaultsRequest.js +43 -0
- package/dist/esm/models/SetPartnerPresetRequest.js +49 -0
- package/dist/esm/models/SetPartnerStorageDestinationRequest.js +67 -0
- package/dist/esm/models/SetPartnerWorkflowPreset200Response.js +51 -0
- package/dist/esm/models/SetUserAdapterConnection200Response.js +51 -0
- package/dist/esm/models/SuccessResponse.js +50 -0
- package/dist/esm/models/UpdateCanvasRequest.js +45 -0
- package/dist/esm/models/UpdateComposition.js +55 -0
- package/dist/esm/models/UpdateCompositionStatusRequest.js +51 -0
- package/dist/esm/models/UpdateDomainRequest.js +43 -0
- package/dist/esm/models/UpdateManagedUser.js +45 -0
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
- package/dist/esm/models/UpdatePartnerNotificationSettingsRequest.js +48 -0
- package/dist/esm/models/UpdateUserApiKeyRequest.js +43 -0
- package/dist/esm/models/Upload.js +110 -0
- package/dist/esm/models/UploadLimits.js +51 -0
- package/dist/esm/models/UploadLimitsResponse.js +51 -0
- package/dist/esm/models/UploadResponse.js +51 -0
- package/dist/esm/models/UploadsGet200Response.js +51 -0
- package/dist/esm/models/UploadsIdDelete200Response.js +51 -0
- package/dist/esm/models/UploadsIdDelete200ResponseData.js +41 -0
- package/dist/esm/models/UserApiKey.js +81 -0
- package/dist/esm/models/UserApiKeyResponse.js +51 -0
- package/dist/esm/models/UserApiKeyUsageLog.js +67 -0
- package/dist/esm/models/ValidateCompositionContentResponse.js +51 -0
- package/dist/esm/models/ValidateCompositionContentResponseData.js +50 -0
- package/dist/esm/models/ValidateToken200Response.js +51 -0
- package/dist/esm/models/ValidateToken200ResponseData.js +57 -0
- package/dist/esm/models/Widget.js +88 -0
- package/dist/esm/models/Workflow.js +96 -0
- package/dist/esm/models/WorkflowCompositionAction.js +53 -0
- package/dist/esm/models/WorkflowCompositionField.js +63 -0
- package/dist/esm/models/WorkflowCompositionOption.js +67 -0
- package/dist/esm/models/WorkflowCompositionOptionActions.js +57 -0
- package/dist/esm/models/WorkflowCompositionOptionInputs.js +61 -0
- package/dist/esm/models/WorkflowCompositionOptions.js +56 -0
- package/dist/esm/models/WorkflowConditionCase.js +61 -0
- package/dist/esm/models/WorkflowConditionTest.js +67 -0
- package/dist/esm/models/WorkflowCounter.js +47 -0
- package/dist/esm/models/WorkflowDetail.js +113 -0
- package/dist/esm/models/WorkflowDetailAllOfLastEditedBy.js +43 -0
- package/dist/esm/models/WorkflowEdge.js +55 -0
- package/dist/esm/models/WorkflowFieldReference.js +66 -0
- package/dist/esm/models/WorkflowGraph.js +59 -0
- package/dist/esm/models/WorkflowIssue.js +62 -0
- package/dist/esm/models/WorkflowList.js +56 -0
- package/dist/esm/models/WorkflowNode.js +68 -0
- package/dist/esm/models/WorkflowNodePosition.js +47 -0
- package/dist/esm/models/WorkflowPresetChoice.js +60 -0
- package/dist/esm/models/WorkflowPresetChoices.js +44 -0
- package/dist/esm/models/WorkflowPresetRemoval.js +43 -0
- package/dist/esm/models/WorkflowPresetWidget.js +47 -0
- package/dist/esm/models/WorkflowPublishResult.js +54 -0
- package/dist/esm/models/WorkflowRemoved.js +43 -0
- package/dist/esm/models/WorkflowSchedule.js +66 -0
- package/dist/esm/models/WorkflowStats.js +68 -0
- package/dist/esm/models/WorkflowStatus.js +48 -0
- package/dist/esm/models/WorkflowTrigger.js +64 -0
- package/dist/esm/models/WorkflowTriggerValuesInner.js +55 -0
- package/dist/esm/models/WorkflowVersion.js +62 -0
- package/dist/esm/models/WorkflowVersionDetail.js +71 -0
- package/dist/esm/models/WorkflowVersionList.js +44 -0
- package/dist/esm/models/WorkflowVersionPublishedBy.js +43 -0
- package/dist/esm/models/index.js +337 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/runtime.js +516 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AccountCreditBalance.d.ts +58 -0
- package/dist/models/AccountCreditBalance.js +56 -0
- package/dist/models/AccountCreditBalanceResponse.d.ts +46 -0
- package/dist/models/AccountCreditBalanceResponse.js +58 -0
- package/dist/models/AccountCreditTransaction.d.ts +69 -0
- package/dist/models/AccountCreditTransaction.js +60 -0
- package/dist/models/AdapterConnection.d.ts +95 -0
- package/dist/models/AdapterConnection.js +95 -0
- package/dist/models/AdapterConnectionRemoval.d.ts +32 -0
- package/dist/models/AdapterConnectionRemoval.js +50 -0
- package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +46 -0
- package/dist/models/AddAiAnswersKnowledgeDocument201Response.js +58 -0
- package/dist/models/AddAiAnswersKnowledgeDocumentRequest.d.ts +38 -0
- package/dist/models/AddAiAnswersKnowledgeDocumentRequest.js +54 -0
- package/dist/models/AddDomainRequest.d.ts +32 -0
- package/dist/models/AddDomainRequest.js +50 -0
- package/dist/models/AiAnswersKnowledge.d.ts +40 -0
- package/dist/models/AiAnswersKnowledge.js +56 -0
- package/dist/models/AiAnswersKnowledgeDocument.d.ts +76 -0
- package/dist/models/AiAnswersKnowledgeDocument.js +82 -0
- package/dist/models/AiAnswersKnowledgeRemoval.d.ts +32 -0
- package/dist/models/AiAnswersKnowledgeRemoval.js +50 -0
- package/dist/models/AiAnswersKnowledgeTotals.d.ts +50 -0
- package/dist/models/AiAnswersKnowledgeTotals.js +62 -0
- package/dist/models/ApiKeyScope.d.ts +56 -0
- package/dist/models/ApiKeyScope.js +82 -0
- package/dist/models/Canvas.d.ts +74 -0
- package/dist/models/Canvas.js +70 -0
- package/dist/models/CanvasResponse.d.ts +46 -0
- package/dist/models/CanvasResponse.js +58 -0
- package/dist/models/CheckCompositionAccessResponse.d.ts +46 -0
- package/dist/models/CheckCompositionAccessResponse.js +58 -0
- package/dist/models/CheckCompositionAccessResponseData.d.ts +38 -0
- package/dist/models/CheckCompositionAccessResponseData.js +50 -0
- package/dist/models/Composition.d.ts +144 -0
- package/dist/models/Composition.js +106 -0
- package/dist/models/CompositionDataSource.d.ts +41 -0
- package/dist/models/CompositionDataSource.js +54 -0
- package/dist/models/CompositionDataSourceResponse.d.ts +46 -0
- package/dist/models/CompositionDataSourceResponse.js +58 -0
- package/dist/models/CompositionEntriesDescription.d.ts +47 -0
- package/dist/models/CompositionEntriesDescription.js +59 -0
- package/dist/models/CompositionEntriesDescriptionResponse.d.ts +46 -0
- package/dist/models/CompositionEntriesDescriptionResponse.js +58 -0
- package/dist/models/CompositionEntriesReading.d.ts +99 -0
- package/dist/models/CompositionEntriesReading.js +82 -0
- package/dist/models/CompositionEntriesReadingResponse.d.ts +46 -0
- package/dist/models/CompositionEntriesReadingResponse.js +58 -0
- package/dist/models/CompositionEntryAggregateTally.d.ts +69 -0
- package/dist/models/CompositionEntryAggregateTally.js +58 -0
- package/dist/models/CompositionEntryAggregatesBlock.d.ts +55 -0
- package/dist/models/CompositionEntryAggregatesBlock.js +57 -0
- package/dist/models/CompositionEntryColumn.d.ts +38 -0
- package/dist/models/CompositionEntryColumn.js +54 -0
- package/dist/models/CompositionEntryDeleteSuccess.d.ts +39 -0
- package/dist/models/CompositionEntryDeleteSuccess.js +55 -0
- package/dist/models/CompositionEntryDeleteSuccessData.d.ts +32 -0
- package/dist/models/CompositionEntryDeleteSuccessData.js +50 -0
- package/dist/models/CompositionEntryItem.d.ts +63 -0
- package/dist/models/CompositionEntryItem.js +64 -0
- package/dist/models/CompositionEntryItemsMeta.d.ts +59 -0
- package/dist/models/CompositionEntryItemsMeta.js +63 -0
- package/dist/models/CompositionEntryItemsPageSuccess.d.ts +46 -0
- package/dist/models/CompositionEntryItemsPageSuccess.js +60 -0
- package/dist/models/CompositionEntryTable.d.ts +45 -0
- package/dist/models/CompositionEntryTable.js +59 -0
- package/dist/models/CompositionEntryTally.d.ts +40 -0
- package/dist/models/CompositionEntryTally.js +54 -0
- package/dist/models/CompositionLastEditedBy.d.ts +52 -0
- package/dist/models/CompositionLastEditedBy.js +50 -0
- package/dist/models/CompositionResponse.d.ts +46 -0
- package/dist/models/CompositionResponse.js +58 -0
- package/dist/models/CompositionVersion.d.ts +56 -0
- package/dist/models/CompositionVersion.js +56 -0
- package/dist/models/ConfirmAdapterConnectionRequest.d.ts +32 -0
- package/dist/models/ConfirmAdapterConnectionRequest.js +50 -0
- package/dist/models/ContentCheckFinding.d.ts +50 -0
- package/dist/models/ContentCheckFinding.js +58 -0
- package/dist/models/ContentItemWriteResult.d.ts +65 -0
- package/dist/models/ContentItemWriteResult.js +59 -0
- package/dist/models/ContentItemWriteResultValidationResult.d.ts +48 -0
- package/dist/models/ContentItemWriteResultValidationResult.js +52 -0
- package/dist/models/CopyPartnerPresetRequest.d.ts +32 -0
- package/dist/models/CopyPartnerPresetRequest.js +48 -0
- package/dist/models/CreateCanvasRequest.d.ts +62 -0
- package/dist/models/CreateCanvasRequest.js +60 -0
- package/dist/models/CreateCompositionContentItem201Response.d.ts +46 -0
- package/dist/models/CreateCompositionContentItem201Response.js +58 -0
- package/dist/models/CreateCompositionContentItemRequest.d.ts +33 -0
- package/dist/models/CreateCompositionContentItemRequest.js +50 -0
- package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +48 -0
- package/dist/models/CreateCompositionDatabaseRecord201Response.js +57 -0
- package/dist/models/CreateCompositionFromPresetRequest.d.ts +56 -0
- package/dist/models/CreateCompositionFromPresetRequest.js +58 -0
- package/dist/models/CreateCompositionFromWidget201Response.d.ts +46 -0
- package/dist/models/CreateCompositionFromWidget201Response.js +58 -0
- package/dist/models/CreateCompositionFromWidgetRequest.d.ts +62 -0
- package/dist/models/CreateCompositionFromWidgetRequest.js +60 -0
- package/dist/models/CreateUserApiKeyRequest.d.ts +60 -0
- package/dist/models/CreateUserApiKeyRequest.js +66 -0
- package/dist/models/CreateWidget201Response.d.ts +46 -0
- package/dist/models/CreateWidget201Response.js +58 -0
- package/dist/models/CreateWidget201ResponseData.d.ts +168 -0
- package/dist/models/CreateWidget201ResponseData.js +98 -0
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +46 -0
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +58 -0
- package/dist/models/CreateWorkspaceWorkflowFromPresetRequest.d.ts +38 -0
- package/dist/models/CreateWorkspaceWorkflowFromPresetRequest.js +52 -0
- package/dist/models/CreateWorkspaceWorkflowRequest.d.ts +44 -0
- package/dist/models/CreateWorkspaceWorkflowRequest.js +54 -0
- package/dist/models/CreatedUserApiKey.d.ts +91 -0
- package/dist/models/CreatedUserApiKey.js +91 -0
- package/dist/models/CreatedUserApiKeyResponse.d.ts +46 -0
- package/dist/models/CreatedUserApiKeyResponse.js +58 -0
- package/dist/models/DeleteCompositionContentItemResponse.d.ts +46 -0
- package/dist/models/DeleteCompositionContentItemResponse.js +58 -0
- package/dist/models/DeleteCompositionContentItemResponseData.d.ts +38 -0
- package/dist/models/DeleteCompositionContentItemResponseData.js +50 -0
- package/dist/models/DeleteCompositionDataSourceResponse.d.ts +46 -0
- package/dist/models/DeleteCompositionDataSourceResponse.js +58 -0
- package/dist/models/DeleteCompositionDataSourceResponseData.d.ts +32 -0
- package/dist/models/DeleteCompositionDataSourceResponseData.js +50 -0
- package/dist/models/DeleteManagedUser200Response.d.ts +46 -0
- package/dist/models/DeleteManagedUser200Response.js +58 -0
- package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +46 -0
- package/dist/models/DeletePersonalWorkspaceDomainResponse.js +58 -0
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +32 -0
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +48 -0
- package/dist/models/DeleteUserApiKeyResponse.d.ts +46 -0
- package/dist/models/DeleteUserApiKeyResponse.js +58 -0
- package/dist/models/DeleteUserApiKeyResponseData.d.ts +32 -0
- package/dist/models/DeleteUserApiKeyResponseData.js +48 -0
- package/dist/models/DeleteWorkspaceWorkflow200Response.d.ts +46 -0
- package/dist/models/DeleteWorkspaceWorkflow200Response.js +58 -0
- package/dist/models/DesignDefaults.d.ts +34 -0
- package/dist/models/DesignDefaults.js +50 -0
- package/dist/models/DuplicateComposition202Response.d.ts +46 -0
- package/dist/models/DuplicateComposition202Response.js +58 -0
- package/dist/models/DuplicateComposition202ResponseData.d.ts +32 -0
- package/dist/models/DuplicateComposition202ResponseData.js +48 -0
- package/dist/models/DuplicateCompositionRequest.d.ts +41 -0
- package/dist/models/DuplicateCompositionRequest.js +50 -0
- package/dist/models/EditorSession.d.ts +92 -0
- package/dist/models/EditorSession.js +88 -0
- package/dist/models/EditorSessionResponse.d.ts +46 -0
- package/dist/models/EditorSessionResponse.js +58 -0
- package/dist/models/Entitlement.d.ts +103 -0
- package/dist/models/Entitlement.js +79 -0
- package/dist/models/ErrorDetail.d.ts +82 -0
- package/dist/models/ErrorDetail.js +70 -0
- package/dist/models/ErrorResponse.d.ts +46 -0
- package/dist/models/ErrorResponse.js +61 -0
- package/dist/models/ExportCompositionEntryItems200Response.d.ts +46 -0
- package/dist/models/ExportCompositionEntryItems200Response.js +60 -0
- package/dist/models/ExportCompositionEntryItems200ResponseMeta.d.ts +38 -0
- package/dist/models/ExportCompositionEntryItems200ResponseMeta.js +54 -0
- package/dist/models/GetAiAnswersKnowledge200Response.d.ts +46 -0
- package/dist/models/GetAiAnswersKnowledge200Response.js +58 -0
- package/dist/models/GetAllCanvasesResponse.d.ts +46 -0
- package/dist/models/GetAllCanvasesResponse.js +58 -0
- package/dist/models/GetAllCanvasesResponseData.d.ts +51 -0
- package/dist/models/GetAllCanvasesResponseData.js +55 -0
- package/dist/models/GetAllCompositions200Response.d.ts +46 -0
- package/dist/models/GetAllCompositions200Response.js +58 -0
- package/dist/models/GetAllManagedUsers200Response.d.ts +46 -0
- package/dist/models/GetAllManagedUsers200Response.js +58 -0
- package/dist/models/GetCompositionContentResponse.d.ts +45 -0
- package/dist/models/GetCompositionContentResponse.js +57 -0
- package/dist/models/GetCompositionContentSchemaResponse.d.ts +46 -0
- package/dist/models/GetCompositionContentSchemaResponse.js +58 -0
- package/dist/models/GetCompositionContentSchemaResponseData.d.ts +62 -0
- package/dist/models/GetCompositionContentSchemaResponseData.js +58 -0
- package/dist/models/GetCompositionDataSourceResponse.d.ts +46 -0
- package/dist/models/GetCompositionDataSourceResponse.js +58 -0
- package/dist/models/GetCompositionDatabaseRecords200Response.d.ts +47 -0
- package/dist/models/GetCompositionDatabaseRecords200Response.js +57 -0
- package/dist/models/GetCompositionDesignResponse.d.ts +45 -0
- package/dist/models/GetCompositionDesignResponse.js +57 -0
- package/dist/models/GetCompositionDesignSchemaResponse.d.ts +46 -0
- package/dist/models/GetCompositionDesignSchemaResponse.js +58 -0
- package/dist/models/GetCompositionDesignSchemaResponseData.d.ts +62 -0
- package/dist/models/GetCompositionDesignSchemaResponseData.js +58 -0
- package/dist/models/GetCompositionEmbedSchemaResponse.d.ts +46 -0
- package/dist/models/GetCompositionEmbedSchemaResponse.js +58 -0
- package/dist/models/GetCompositionEmbedSchemaResponseData.d.ts +74 -0
- package/dist/models/GetCompositionEmbedSchemaResponseData.js +65 -0
- package/dist/models/GetCompositionEmbedSettingsResponse.d.ts +45 -0
- package/dist/models/GetCompositionEmbedSettingsResponse.js +57 -0
- package/dist/models/GetCompositionPreviewResponse.d.ts +46 -0
- package/dist/models/GetCompositionPreviewResponse.js +58 -0
- package/dist/models/GetCompositionPreviewResponseData.d.ts +50 -0
- package/dist/models/GetCompositionPreviewResponseData.js +54 -0
- package/dist/models/GetCompositionVersions200Response.d.ts +46 -0
- package/dist/models/GetCompositionVersions200Response.js +58 -0
- package/dist/models/GetCompositionsBatchRequest.d.ts +32 -0
- package/dist/models/GetCompositionsBatchRequest.js +50 -0
- package/dist/models/GetCompositionsBatchResponse.d.ts +46 -0
- package/dist/models/GetCompositionsBatchResponse.js +58 -0
- package/dist/models/GetCompositionsBatchResponseData.d.ts +40 -0
- package/dist/models/GetCompositionsBatchResponseData.js +52 -0
- package/dist/models/GetInvoicesByPartnerId200Response.d.ts +46 -0
- package/dist/models/GetInvoicesByPartnerId200Response.js +58 -0
- package/dist/models/GetManagedUserEntitlementsResponse.d.ts +46 -0
- package/dist/models/GetManagedUserEntitlementsResponse.js +58 -0
- package/dist/models/GetManagedUserEntitlementsResponseData.d.ts +39 -0
- package/dist/models/GetManagedUserEntitlementsResponseData.js +51 -0
- package/dist/models/GetManagedUserLimits200Response.d.ts +46 -0
- package/dist/models/GetManagedUserLimits200Response.js +58 -0
- package/dist/models/GetManagedUserStorageUsage200Response.d.ts +46 -0
- package/dist/models/GetManagedUserStorageUsage200Response.js +58 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseData.d.ts +45 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseData.js +59 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.d.ts +51 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +55 -0
- package/dist/models/GetManagedUsersByManagerIdResponse.d.ts +46 -0
- package/dist/models/GetManagedUsersByManagerIdResponse.js +58 -0
- package/dist/models/GetManagedUsersByManagerIdResponseData.d.ts +51 -0
- package/dist/models/GetManagedUsersByManagerIdResponseData.js +55 -0
- package/dist/models/GetPartnerBillingOverview200Response.d.ts +46 -0
- package/dist/models/GetPartnerBillingOverview200Response.js +58 -0
- package/dist/models/GetPartnerCreditTransactions200Response.d.ts +46 -0
- package/dist/models/GetPartnerCreditTransactions200Response.js +58 -0
- package/dist/models/GetPartnerDesignDefaults200Response.d.ts +46 -0
- package/dist/models/GetPartnerDesignDefaults200Response.js +58 -0
- package/dist/models/GetPartnerEntitlementsResponse.d.ts +46 -0
- package/dist/models/GetPartnerEntitlementsResponse.js +58 -0
- package/dist/models/GetPartnerEntitlementsResponseData.d.ts +39 -0
- package/dist/models/GetPartnerEntitlementsResponseData.js +51 -0
- package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +46 -0
- package/dist/models/GetPersonalWorkspaceDomains200Response.js +58 -0
- package/dist/models/GetPublicCompositionEmbed200Response.d.ts +141 -0
- package/dist/models/GetPublicCompositionEmbed200Response.js +87 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseAdapters.d.ts +39 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseAdapters.js +51 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.d.ts +32 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.js +48 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseEntries.d.ts +38 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseEntries.js +50 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseMedia.d.ts +32 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseMedia.js +48 -0
- package/dist/models/GetPublicWorkflow200Response.d.ts +46 -0
- package/dist/models/GetPublicWorkflow200Response.js +58 -0
- package/dist/models/GetUserAdapterConnections200Response.d.ts +46 -0
- package/dist/models/GetUserAdapterConnections200Response.js +58 -0
- package/dist/models/GetUserApiKeyUsageLogsResponse.d.ts +46 -0
- package/dist/models/GetUserApiKeyUsageLogsResponse.js +58 -0
- package/dist/models/GetUserApiKeyUsageLogsResponseData.d.ts +33 -0
- package/dist/models/GetUserApiKeyUsageLogsResponseData.js +51 -0
- package/dist/models/GetUserApiKeys200Response.d.ts +46 -0
- package/dist/models/GetUserApiKeys200Response.js +58 -0
- package/dist/models/GetWidgets200Response.d.ts +46 -0
- package/dist/models/GetWidgets200Response.js +58 -0
- package/dist/models/GetWidgetsBatchRequest.d.ts +32 -0
- package/dist/models/GetWidgetsBatchRequest.js +50 -0
- package/dist/models/GetWidgetsBatchResponse.d.ts +46 -0
- package/dist/models/GetWidgetsBatchResponse.js +58 -0
- package/dist/models/GetWidgetsBatchResponseData.d.ts +40 -0
- package/dist/models/GetWidgetsBatchResponseData.js +52 -0
- package/dist/models/GetWidgetsBatchResponseDataErrorsInner.d.ts +38 -0
- package/dist/models/GetWidgetsBatchResponseDataErrorsInner.js +50 -0
- package/dist/models/GetWorkspaceWorkflowStats200Response.d.ts +46 -0
- package/dist/models/GetWorkspaceWorkflowStats200Response.js +58 -0
- package/dist/models/GetWorkspaceWorkflowVersion200Response.d.ts +46 -0
- package/dist/models/GetWorkspaceWorkflowVersion200Response.js +58 -0
- package/dist/models/ListPartnerPresets200Response.d.ts +46 -0
- package/dist/models/ListPartnerPresets200Response.js +58 -0
- package/dist/models/ListPartnerWorkflowPresets200Response.d.ts +46 -0
- package/dist/models/ListPartnerWorkflowPresets200Response.js +58 -0
- package/dist/models/ListWorkspaceWorkflowCompositionOptions200Response.d.ts +46 -0
- package/dist/models/ListWorkspaceWorkflowCompositionOptions200Response.js +58 -0
- package/dist/models/ListWorkspaceWorkflowPresets200Response.d.ts +46 -0
- package/dist/models/ListWorkspaceWorkflowPresets200Response.js +58 -0
- package/dist/models/ListWorkspaceWorkflowVersions200Response.d.ts +46 -0
- package/dist/models/ListWorkspaceWorkflowVersions200Response.js +58 -0
- package/dist/models/ListWorkspaceWorkflows200Response.d.ts +46 -0
- package/dist/models/ListWorkspaceWorkflows200Response.js +58 -0
- package/dist/models/ManagedUser.d.ts +70 -0
- package/dist/models/ManagedUser.js +70 -0
- package/dist/models/ManagedUserEntriesMeta.d.ts +56 -0
- package/dist/models/ManagedUserEntriesMeta.js +64 -0
- package/dist/models/ManagedUserEntriesPageSuccess.d.ts +46 -0
- package/dist/models/ManagedUserEntriesPageSuccess.js +60 -0
- package/dist/models/ManagedUserEntryItem.d.ts +75 -0
- package/dist/models/ManagedUserEntryItem.js +72 -0
- package/dist/models/ManagedUserLimits.d.ts +50 -0
- package/dist/models/ManagedUserLimits.js +62 -0
- package/dist/models/ManagedUserOperationUsage.d.ts +56 -0
- package/dist/models/ManagedUserOperationUsage.js +66 -0
- package/dist/models/ManagedUserRemoval.d.ts +38 -0
- package/dist/models/ManagedUserRemoval.js +54 -0
- package/dist/models/ManagedUserResponse.d.ts +46 -0
- package/dist/models/ManagedUserResponse.js +58 -0
- package/dist/models/ManagedUserUsage.d.ts +65 -0
- package/dist/models/ManagedUserUsage.js +72 -0
- package/dist/models/ManagedUserUsageResponse.d.ts +46 -0
- package/dist/models/ManagedUserUsageResponse.js +58 -0
- package/dist/models/ManagedUserUsageTotals.d.ts +50 -0
- package/dist/models/ManagedUserUsageTotals.js +62 -0
- package/dist/models/MyPartner.d.ts +93 -0
- package/dist/models/MyPartner.js +87 -0
- package/dist/models/MyPartners.d.ts +58 -0
- package/dist/models/MyPartners.js +70 -0
- package/dist/models/MyPartnersResponse.d.ts +46 -0
- package/dist/models/MyPartnersResponse.js +58 -0
- package/dist/models/NewComposition.d.ts +135 -0
- package/dist/models/NewComposition.js +72 -0
- package/dist/models/NewEditorSession.d.ts +63 -0
- package/dist/models/NewEditorSession.js +66 -0
- package/dist/models/NewManagedUser.d.ts +44 -0
- package/dist/models/NewManagedUser.js +54 -0
- package/dist/models/NewWidget.d.ts +106 -0
- package/dist/models/NewWidget.js +82 -0
- package/dist/models/OfferWorkflowPresetRequest.d.ts +50 -0
- package/dist/models/OfferWorkflowPresetRequest.js +56 -0
- package/dist/models/OfferedWorkflowPreset.d.ts +120 -0
- package/dist/models/OfferedWorkflowPreset.js +109 -0
- package/dist/models/OfferedWorkflowPresetList.d.ts +33 -0
- package/dist/models/OfferedWorkflowPresetList.js +51 -0
- package/dist/models/OfferedWorkflowPresetWidget.d.ts +44 -0
- package/dist/models/OfferedWorkflowPresetWidget.js +58 -0
- package/dist/models/OperationsIdGetResponse.d.ts +46 -0
- package/dist/models/OperationsIdGetResponse.js +58 -0
- package/dist/models/OperationsIdGetResponseData.d.ts +88 -0
- package/dist/models/OperationsIdGetResponseData.js +73 -0
- package/dist/models/PartnerAnalyticsByManagedUser.d.ts +54 -0
- package/dist/models/PartnerAnalyticsByManagedUser.js +65 -0
- package/dist/models/PartnerAnalyticsByManagedUserResponse.d.ts +46 -0
- package/dist/models/PartnerAnalyticsByManagedUserResponse.js +58 -0
- package/dist/models/PartnerAnalyticsOfDay.d.ts +50 -0
- package/dist/models/PartnerAnalyticsOfDay.js +62 -0
- package/dist/models/PartnerAnalyticsOfManagedUser.d.ts +86 -0
- package/dist/models/PartnerAnalyticsOfManagedUser.js +86 -0
- package/dist/models/PartnerAnalyticsOfWidget.d.ts +62 -0
- package/dist/models/PartnerAnalyticsOfWidget.js +70 -0
- package/dist/models/PartnerAnalyticsSummary.d.ts +76 -0
- package/dist/models/PartnerAnalyticsSummary.js +79 -0
- package/dist/models/PartnerAnalyticsSummaryResponse.d.ts +46 -0
- package/dist/models/PartnerAnalyticsSummaryResponse.js +58 -0
- package/dist/models/PartnerAnalyticsTimeline.d.ts +52 -0
- package/dist/models/PartnerAnalyticsTimeline.js +64 -0
- package/dist/models/PartnerAnalyticsTimelineResponse.d.ts +46 -0
- package/dist/models/PartnerAnalyticsTimelineResponse.js +58 -0
- package/dist/models/PartnerAnalyticsTopWidgets.d.ts +52 -0
- package/dist/models/PartnerAnalyticsTopWidgets.js +64 -0
- package/dist/models/PartnerAnalyticsTopWidgetsResponse.d.ts +46 -0
- package/dist/models/PartnerAnalyticsTopWidgetsResponse.js +58 -0
- package/dist/models/PartnerBillingOverview.d.ts +54 -0
- package/dist/models/PartnerBillingOverview.js +64 -0
- package/dist/models/PartnerBillingOverviewBillingIntegration.d.ts +59 -0
- package/dist/models/PartnerBillingOverviewBillingIntegration.js +71 -0
- package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +52 -0
- package/dist/models/PartnerBillingOverviewOperationalCredits.js +63 -0
- package/dist/models/PartnerBillingOverviewPartner.d.ts +58 -0
- package/dist/models/PartnerBillingOverviewPartner.js +70 -0
- package/dist/models/PartnerContract.d.ts +132 -0
- package/dist/models/PartnerContract.js +87 -0
- package/dist/models/PartnerContractResponse.d.ts +46 -0
- package/dist/models/PartnerContractResponse.js +58 -0
- package/dist/models/PartnerCustomization.d.ts +137 -0
- package/dist/models/PartnerCustomization.js +89 -0
- package/dist/models/PartnerDataDatabase.d.ts +74 -0
- package/dist/models/PartnerDataDatabase.js +78 -0
- package/dist/models/PartnerDataDatabaseRemoval.d.ts +32 -0
- package/dist/models/PartnerDataDatabaseRemoval.js +50 -0
- package/dist/models/PartnerDataDatabaseRemovalResponse.d.ts +46 -0
- package/dist/models/PartnerDataDatabaseRemovalResponse.js +58 -0
- package/dist/models/PartnerDataDatabaseResponse.d.ts +46 -0
- package/dist/models/PartnerDataDatabaseResponse.js +58 -0
- package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
- package/dist/models/PartnerEntryContextSecret.js +55 -0
- package/dist/models/PartnerEntryContextSecretResponse.d.ts +46 -0
- package/dist/models/PartnerEntryContextSecretResponse.js +58 -0
- package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
- package/dist/models/PartnerEntryContextSigning.js +70 -0
- package/dist/models/PartnerEntryContextSigningResponse.d.ts +46 -0
- package/dist/models/PartnerEntryContextSigningResponse.js +58 -0
- package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
- package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
- package/dist/models/PartnerExtraCreditsInvoiceResponse.d.ts +46 -0
- package/dist/models/PartnerExtraCreditsInvoiceResponse.js +58 -0
- package/dist/models/PartnerInvoice.d.ts +189 -0
- package/dist/models/PartnerInvoice.js +109 -0
- package/dist/models/PartnerNotification.d.ts +81 -0
- package/dist/models/PartnerNotification.js +85 -0
- package/dist/models/PartnerNotificationDefaultRecipients.d.ts +38 -0
- package/dist/models/PartnerNotificationDefaultRecipients.js +54 -0
- package/dist/models/PartnerNotificationDelivery.d.ts +134 -0
- package/dist/models/PartnerNotificationDelivery.js +123 -0
- package/dist/models/PartnerNotificationDeliveryLog.d.ts +33 -0
- package/dist/models/PartnerNotificationDeliveryLog.js +51 -0
- package/dist/models/PartnerNotificationDeliveryLogResponse.d.ts +46 -0
- package/dist/models/PartnerNotificationDeliveryLogResponse.js +58 -0
- package/dist/models/PartnerNotificationDeliveryResponse.d.ts +46 -0
- package/dist/models/PartnerNotificationDeliveryResponse.js +58 -0
- package/dist/models/PartnerNotificationEvent.d.ts +82 -0
- package/dist/models/PartnerNotificationEvent.js +89 -0
- package/dist/models/PartnerNotificationEventType.d.ts +43 -0
- package/dist/models/PartnerNotificationEventType.js +69 -0
- package/dist/models/PartnerNotificationPage.d.ts +39 -0
- package/dist/models/PartnerNotificationPage.js +55 -0
- package/dist/models/PartnerNotificationPageResponse.d.ts +46 -0
- package/dist/models/PartnerNotificationPageResponse.js +58 -0
- package/dist/models/PartnerNotificationSettings.d.ts +89 -0
- package/dist/models/PartnerNotificationSettings.js +89 -0
- package/dist/models/PartnerNotificationSettingsChange.d.ts +39 -0
- package/dist/models/PartnerNotificationSettingsChange.js +55 -0
- package/dist/models/PartnerNotificationSettingsChangeResponse.d.ts +46 -0
- package/dist/models/PartnerNotificationSettingsChangeResponse.js +58 -0
- package/dist/models/PartnerNotificationSettingsResponse.d.ts +46 -0
- package/dist/models/PartnerNotificationSettingsResponse.js +58 -0
- package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
- package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
- package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
- package/dist/models/PartnerNotificationTestEventResult.js +60 -0
- package/dist/models/PartnerNotificationTestEventResultResponse.d.ts +46 -0
- package/dist/models/PartnerNotificationTestEventResultResponse.js +58 -0
- package/dist/models/PartnerPreset.d.ts +81 -0
- package/dist/models/PartnerPreset.js +82 -0
- package/dist/models/PartnerPresetCopy.d.ts +62 -0
- package/dist/models/PartnerPresetCopy.js +70 -0
- package/dist/models/PartnerPresetCopyResponse.d.ts +46 -0
- package/dist/models/PartnerPresetCopyResponse.js +58 -0
- package/dist/models/PartnerPresetRemoval.d.ts +32 -0
- package/dist/models/PartnerPresetRemoval.js +50 -0
- package/dist/models/PartnerPresetRemovalResponse.d.ts +46 -0
- package/dist/models/PartnerPresetRemovalResponse.js +58 -0
- package/dist/models/PartnerPresetResponse.d.ts +46 -0
- package/dist/models/PartnerPresetResponse.js +58 -0
- package/dist/models/PartnerReportPage.d.ts +44 -0
- package/dist/models/PartnerReportPage.js +58 -0
- package/dist/models/PartnerReportPeriod.d.ts +38 -0
- package/dist/models/PartnerReportPeriod.js +54 -0
- package/dist/models/PartnerStorageDestination.d.ts +99 -0
- package/dist/models/PartnerStorageDestination.js +90 -0
- package/dist/models/PartnerStorageDestinationResponse.d.ts +46 -0
- package/dist/models/PartnerStorageDestinationResponse.js +58 -0
- package/dist/models/PartnerStorageRemoval.d.ts +32 -0
- package/dist/models/PartnerStorageRemoval.js +50 -0
- package/dist/models/PartnerStorageRemovalResponse.d.ts +46 -0
- package/dist/models/PartnerStorageRemovalResponse.js +58 -0
- package/dist/models/PartnerStorageUsage.d.ts +54 -0
- package/dist/models/PartnerStorageUsage.js +65 -0
- package/dist/models/PartnerStorageUsageOfManagedUser.d.ts +81 -0
- package/dist/models/PartnerStorageUsageOfManagedUser.js +82 -0
- package/dist/models/PartnerStorageUsageResponse.d.ts +46 -0
- package/dist/models/PartnerStorageUsageResponse.js +58 -0
- package/dist/models/PartnerStorageUsageTotals.d.ts +50 -0
- package/dist/models/PartnerStorageUsageTotals.js +62 -0
- package/dist/models/PersonalWorkspaceDomain.d.ts +56 -0
- package/dist/models/PersonalWorkspaceDomain.js +62 -0
- package/dist/models/PersonalWorkspaceDomainResult.d.ts +39 -0
- package/dist/models/PersonalWorkspaceDomainResult.js +55 -0
- package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +46 -0
- package/dist/models/PersonalWorkspaceDomainResultResponse.js +58 -0
- package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +46 -0
- package/dist/models/PostPublicCompositionEmbedStatus200Response.js +58 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
- package/dist/models/PublicAdapterCallError.d.ts +50 -0
- package/dist/models/PublicAdapterCallError.js +60 -0
- package/dist/models/PublicAdapterCallRequest.d.ts +60 -0
- package/dist/models/PublicAdapterCallRequest.js +58 -0
- package/dist/models/PublicAdapterCallResult.d.ts +39 -0
- package/dist/models/PublicAdapterCallResult.js +55 -0
- package/dist/models/PublicAdapterCallResultData.d.ts +34 -0
- package/dist/models/PublicAdapterCallResultData.js +50 -0
- package/dist/models/PublicAdapterFileResult.d.ts +39 -0
- package/dist/models/PublicAdapterFileResult.js +55 -0
- package/dist/models/PublicAdapterFileResultData.d.ts +33 -0
- package/dist/models/PublicAdapterFileResultData.js +51 -0
- package/dist/models/PublicAdapterFileResultDataFile.d.ts +62 -0
- package/dist/models/PublicAdapterFileResultDataFile.js +70 -0
- package/dist/models/PublicCompositionEntryCreated.d.ts +39 -0
- package/dist/models/PublicCompositionEntryCreated.js +55 -0
- package/dist/models/PublicCompositionEntryCreatedData.d.ts +44 -0
- package/dist/models/PublicCompositionEntryCreatedData.js +58 -0
- package/dist/models/PublicCompositionEntryRequest.d.ts +46 -0
- package/dist/models/PublicCompositionEntryRequest.js +54 -0
- package/dist/models/PublicEmbedFailure.d.ts +64 -0
- package/dist/models/PublicEmbedFailure.js +68 -0
- package/dist/models/PublicEmbedFailureDetails.d.ts +47 -0
- package/dist/models/PublicEmbedFailureDetails.js +60 -0
- package/dist/models/PublicEmbedFailureError.d.ts +64 -0
- package/dist/models/PublicEmbedFailureError.js +64 -0
- package/dist/models/PublicWorkflow.d.ts +109 -0
- package/dist/models/PublicWorkflow.js +81 -0
- package/dist/models/PublicWorkflowEventsAccepted.d.ts +44 -0
- package/dist/models/PublicWorkflowEventsAccepted.js +54 -0
- package/dist/models/PublicWorkflowEventsRequest.d.ts +59 -0
- package/dist/models/PublicWorkflowEventsRequest.js +60 -0
- package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +53 -0
- package/dist/models/PublicWorkflowEventsRequestEventsInner.js +65 -0
- package/dist/models/PublicWorkflowEventsRequestHeightsInner.d.ts +38 -0
- package/dist/models/PublicWorkflowEventsRequestHeightsInner.js +54 -0
- package/dist/models/PublicWorkflowTranslation.d.ts +40 -0
- package/dist/models/PublicWorkflowTranslation.js +54 -0
- package/dist/models/PublishWorkspaceWorkflow200Response.d.ts +46 -0
- package/dist/models/PublishWorkspaceWorkflow200Response.js +58 -0
- package/dist/models/PublishWorkspaceWorkflowRequest.d.ts +32 -0
- package/dist/models/PublishWorkspaceWorkflowRequest.js +50 -0
- package/dist/models/PurposeStorageBucket.d.ts +38 -0
- package/dist/models/PurposeStorageBucket.js +54 -0
- package/dist/models/RemoveAiAnswersKnowledgeDocument200Response.d.ts +46 -0
- package/dist/models/RemoveAiAnswersKnowledgeDocument200Response.js +58 -0
- package/dist/models/RemovePartnerWorkflowPreset200Response.d.ts +46 -0
- package/dist/models/RemovePartnerWorkflowPreset200Response.js +58 -0
- package/dist/models/RemoveUserAdapterConnection200Response.d.ts +46 -0
- package/dist/models/RemoveUserAdapterConnection200Response.js +58 -0
- package/dist/models/ReportPublicWorkflowEvents200Response.d.ts +46 -0
- package/dist/models/ReportPublicWorkflowEvents200Response.js +58 -0
- package/dist/models/RequestExtraCredits.d.ts +33 -0
- package/dist/models/RequestExtraCredits.js +50 -0
- package/dist/models/ResponseMeta.d.ts +81 -0
- package/dist/models/ResponseMeta.js +66 -0
- package/dist/models/RevokeManagedUserEditorSessionsResponse.d.ts +46 -0
- package/dist/models/RevokeManagedUserEditorSessionsResponse.js +58 -0
- package/dist/models/RevokeManagedUserEditorSessionsResponseData.d.ts +32 -0
- package/dist/models/RevokeManagedUserEditorSessionsResponseData.js +48 -0
- package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +46 -0
- package/dist/models/SaveWorkspaceWorkflow200Response.js +58 -0
- package/dist/models/SaveWorkspaceWorkflowRequest.d.ts +51 -0
- package/dist/models/SaveWorkspaceWorkflowRequest.js +57 -0
- package/dist/models/SetAdapterConnectionRequest.d.ts +32 -0
- package/dist/models/SetAdapterConnectionRequest.js +50 -0
- package/dist/models/SetCompositionDataSourceRequest.d.ts +38 -0
- package/dist/models/SetCompositionDataSourceRequest.js +54 -0
- package/dist/models/SetDynamicContentRequest.d.ts +56 -0
- package/dist/models/SetDynamicContentRequest.js +58 -0
- package/dist/models/SetDynamicContentResponse.d.ts +46 -0
- package/dist/models/SetDynamicContentResponse.js +58 -0
- package/dist/models/SetDynamicContentResponseData.d.ts +57 -0
- package/dist/models/SetDynamicContentResponseData.js +57 -0
- package/dist/models/SetDynamicContentResponseDataValidationResult.d.ts +44 -0
- package/dist/models/SetDynamicContentResponseDataValidationResult.js +52 -0
- package/dist/models/SetManagedUserLimitsRequest.d.ts +32 -0
- package/dist/models/SetManagedUserLimitsRequest.js +50 -0
- package/dist/models/SetPartnerDataDatabaseRequest.d.ts +32 -0
- package/dist/models/SetPartnerDataDatabaseRequest.js +50 -0
- package/dist/models/SetPartnerDesignDefaultsRequest.d.ts +32 -0
- package/dist/models/SetPartnerDesignDefaultsRequest.js +50 -0
- package/dist/models/SetPartnerPresetRequest.d.ts +50 -0
- package/dist/models/SetPartnerPresetRequest.js +56 -0
- package/dist/models/SetPartnerStorageDestinationRequest.d.ts +79 -0
- package/dist/models/SetPartnerStorageDestinationRequest.js +74 -0
- package/dist/models/SetPartnerWorkflowPreset200Response.d.ts +46 -0
- package/dist/models/SetPartnerWorkflowPreset200Response.js +58 -0
- package/dist/models/SetUserAdapterConnection200Response.d.ts +46 -0
- package/dist/models/SetUserAdapterConnection200Response.js +58 -0
- package/dist/models/SuccessResponse.d.ts +47 -0
- package/dist/models/SuccessResponse.js +57 -0
- package/dist/models/UpdateCanvasRequest.d.ts +44 -0
- package/dist/models/UpdateCanvasRequest.js +52 -0
- package/dist/models/UpdateComposition.d.ts +82 -0
- package/dist/models/UpdateComposition.js +62 -0
- package/dist/models/UpdateCompositionStatusRequest.d.ts +41 -0
- package/dist/models/UpdateCompositionStatusRequest.js +59 -0
- package/dist/models/UpdateDomainRequest.d.ts +32 -0
- package/dist/models/UpdateDomainRequest.js +50 -0
- package/dist/models/UpdateManagedUser.d.ts +45 -0
- package/dist/models/UpdateManagedUser.js +52 -0
- package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
- package/dist/models/UpdatePartnerNotificationSettingsRequest.d.ts +51 -0
- package/dist/models/UpdatePartnerNotificationSettingsRequest.js +55 -0
- package/dist/models/UpdateUserApiKeyRequest.d.ts +38 -0
- package/dist/models/UpdateUserApiKeyRequest.js +50 -0
- package/dist/models/Upload.d.ts +140 -0
- package/dist/models/Upload.js +118 -0
- package/dist/models/UploadLimits.d.ts +62 -0
- package/dist/models/UploadLimits.js +58 -0
- package/dist/models/UploadLimitsResponse.d.ts +46 -0
- package/dist/models/UploadLimitsResponse.js +58 -0
- package/dist/models/UploadResponse.d.ts +46 -0
- package/dist/models/UploadResponse.js +58 -0
- package/dist/models/UploadsGet200Response.d.ts +46 -0
- package/dist/models/UploadsGet200Response.js +58 -0
- package/dist/models/UploadsIdDelete200Response.d.ts +46 -0
- package/dist/models/UploadsIdDelete200Response.js +58 -0
- package/dist/models/UploadsIdDelete200ResponseData.d.ts +32 -0
- package/dist/models/UploadsIdDelete200ResponseData.js +48 -0
- package/dist/models/UserApiKey.d.ts +91 -0
- package/dist/models/UserApiKey.js +89 -0
- package/dist/models/UserApiKeyResponse.d.ts +46 -0
- package/dist/models/UserApiKeyResponse.js +58 -0
- package/dist/models/UserApiKeyUsageLog.d.ts +76 -0
- package/dist/models/UserApiKeyUsageLog.js +74 -0
- package/dist/models/ValidateCompositionContentResponse.d.ts +46 -0
- package/dist/models/ValidateCompositionContentResponse.js +58 -0
- package/dist/models/ValidateCompositionContentResponseData.d.ts +53 -0
- package/dist/models/ValidateCompositionContentResponseData.js +57 -0
- package/dist/models/ValidateToken200Response.d.ts +46 -0
- package/dist/models/ValidateToken200Response.js +58 -0
- package/dist/models/ValidateToken200ResponseData.d.ts +65 -0
- package/dist/models/ValidateToken200ResponseData.js +65 -0
- package/dist/models/Widget.d.ts +162 -0
- package/dist/models/Widget.js +96 -0
- package/dist/models/Workflow.d.ts +133 -0
- package/dist/models/Workflow.js +103 -0
- package/dist/models/WorkflowCompositionAction.d.ts +52 -0
- package/dist/models/WorkflowCompositionAction.js +60 -0
- package/dist/models/WorkflowCompositionField.d.ts +59 -0
- package/dist/models/WorkflowCompositionField.js +71 -0
- package/dist/models/WorkflowCompositionOption.d.ts +73 -0
- package/dist/models/WorkflowCompositionOption.js +74 -0
- package/dist/models/WorkflowCompositionOptionActions.d.ts +55 -0
- package/dist/models/WorkflowCompositionOptionActions.js +65 -0
- package/dist/models/WorkflowCompositionOptionInputs.d.ts +64 -0
- package/dist/models/WorkflowCompositionOptionInputs.js +69 -0
- package/dist/models/WorkflowCompositionOptions.d.ts +51 -0
- package/dist/models/WorkflowCompositionOptions.js +63 -0
- package/dist/models/WorkflowConditionCase.d.ts +61 -0
- package/dist/models/WorkflowConditionCase.js +69 -0
- package/dist/models/WorkflowConditionTest.d.ts +68 -0
- package/dist/models/WorkflowConditionTest.js +75 -0
- package/dist/models/WorkflowCounter.d.ts +38 -0
- package/dist/models/WorkflowCounter.js +54 -0
- package/dist/models/WorkflowDetail.d.ts +166 -0
- package/dist/models/WorkflowDetail.js +120 -0
- package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +42 -0
- package/dist/models/WorkflowDetailAllOfLastEditedBy.js +50 -0
- package/dist/models/WorkflowEdge.d.ts +50 -0
- package/dist/models/WorkflowEdge.js +62 -0
- package/dist/models/WorkflowFieldReference.d.ts +63 -0
- package/dist/models/WorkflowFieldReference.js +74 -0
- package/dist/models/WorkflowGraph.d.ts +53 -0
- package/dist/models/WorkflowGraph.js +67 -0
- package/dist/models/WorkflowIssue.d.ts +72 -0
- package/dist/models/WorkflowIssue.js +70 -0
- package/dist/models/WorkflowList.d.ts +51 -0
- package/dist/models/WorkflowList.js +63 -0
- package/dist/models/WorkflowNode.d.ts +83 -0
- package/dist/models/WorkflowNode.js +76 -0
- package/dist/models/WorkflowNodePosition.d.ts +38 -0
- package/dist/models/WorkflowNodePosition.js +54 -0
- package/dist/models/WorkflowPresetChoice.d.ts +60 -0
- package/dist/models/WorkflowPresetChoice.js +67 -0
- package/dist/models/WorkflowPresetChoices.d.ts +33 -0
- package/dist/models/WorkflowPresetChoices.js +51 -0
- package/dist/models/WorkflowPresetRemoval.d.ts +32 -0
- package/dist/models/WorkflowPresetRemoval.js +50 -0
- package/dist/models/WorkflowPresetWidget.d.ts +38 -0
- package/dist/models/WorkflowPresetWidget.js +54 -0
- package/dist/models/WorkflowPublishResult.d.ts +47 -0
- package/dist/models/WorkflowPublishResult.js +61 -0
- package/dist/models/WorkflowRemoved.d.ts +32 -0
- package/dist/models/WorkflowRemoved.js +50 -0
- package/dist/models/WorkflowSchedule.d.ts +69 -0
- package/dist/models/WorkflowSchedule.js +74 -0
- package/dist/models/WorkflowStats.d.ts +77 -0
- package/dist/models/WorkflowStats.js +75 -0
- package/dist/models/WorkflowStatus.d.ts +30 -0
- package/dist/models/WorkflowStatus.js +56 -0
- package/dist/models/WorkflowTrigger.d.ts +77 -0
- package/dist/models/WorkflowTrigger.js +72 -0
- package/dist/models/WorkflowTriggerValuesInner.d.ts +47 -0
- package/dist/models/WorkflowTriggerValuesInner.js +63 -0
- package/dist/models/WorkflowVersion.d.ts +63 -0
- package/dist/models/WorkflowVersion.js +69 -0
- package/dist/models/WorkflowVersionDetail.d.ts +76 -0
- package/dist/models/WorkflowVersionDetail.js +78 -0
- package/dist/models/WorkflowVersionList.d.ts +33 -0
- package/dist/models/WorkflowVersionList.js +51 -0
- package/dist/models/WorkflowVersionPublishedBy.d.ts +38 -0
- package/dist/models/WorkflowVersionPublishedBy.js +50 -0
- package/dist/models/index.d.ts +335 -0
- package/dist/models/index.js +353 -0
- package/dist/runtime.d.ts +238 -0
- package/dist/runtime.js +534 -0
- package/package.json +42 -4
|
@@ -0,0 +1,1689 @@
|
|
|
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
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { AddAiAnswersKnowledgeDocument201ResponseFromJSON, AddAiAnswersKnowledgeDocumentRequestToJSON, CheckCompositionAccessResponseFromJSON, CompositionDataSourceResponseFromJSON, CompositionEntriesDescriptionResponseFromJSON, CompositionEntriesReadingResponseFromJSON, CompositionResponseFromJSON, CreateCompositionContentItem201ResponseFromJSON, CreateCompositionContentItemRequestToJSON, CreateCompositionDatabaseRecord201ResponseFromJSON, CreateCompositionFromWidget201ResponseFromJSON, DeleteCompositionContentItemResponseFromJSON, DeleteCompositionDataSourceResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAiAnswersKnowledge200ResponseFromJSON, GetAllCompositions200ResponseFromJSON, GetCompositionContentResponseFromJSON, GetCompositionContentSchemaResponseFromJSON, GetCompositionDataSourceResponseFromJSON, GetCompositionDatabaseRecords200ResponseFromJSON, GetCompositionDesignResponseFromJSON, GetCompositionDesignSchemaResponseFromJSON, GetCompositionEmbedSchemaResponseFromJSON, GetCompositionEmbedSettingsResponseFromJSON, GetCompositionPreviewResponseFromJSON, GetCompositionVersions200ResponseFromJSON, GetCompositionsBatchRequestToJSON, GetCompositionsBatchResponseFromJSON, NewCompositionToJSON, RemoveAiAnswersKnowledgeDocument200ResponseFromJSON, SetCompositionDataSourceRequestToJSON, SetDynamicContentRequestToJSON, SetDynamicContentResponseFromJSON, UpdateCompositionToJSON, UpdateCompositionStatusRequestToJSON, ValidateCompositionContentResponseFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class CompositionsApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Gives the widget\'s AI a document to answer visitors\' questions from. Send the title and the plain text. The call returns once the document is ready to be used, which takes a few seconds, longer for a long text. **How it is used.** The text is cleaned, cut into short passages and each passage is turned into numbers (an embedding) so the widget can find the passages nearest to a question. When a visitor asks, the nearest passages and the question are shown to an AI model, which writes the answer from them and from nothing else; if the documents say nothing about the question the visitor is told so, and the owner is not charged for that question. The titles of the documents an answer used are shown to the visitor as its sources. **What leaves Widgetic.** The text of a document is sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** A widget holds up to 20 documents, each up to 100000 characters, and up to 400000 characters in all (`getAiAnswersKnowledge` reports the current numbers). This call takes text. To add a text file or a picture of a document (a PDF too, once PDFs are read) without turning it into text yourself, use `addAiAnswersKnowledgeFile`. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds are limited to ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
|
|
22
|
+
* Add a document for a widget\'s AI to answer from
|
|
23
|
+
*/
|
|
24
|
+
async addAiAnswersKnowledgeDocumentRaw(requestParameters, initOverrides) {
|
|
25
|
+
if (requestParameters['id'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addAiAnswersKnowledgeDocument().');
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters['addAiAnswersKnowledgeDocumentRequest'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('addAiAnswersKnowledgeDocumentRequest', 'Required parameter "addAiAnswersKnowledgeDocumentRequest" was null or undefined when calling addAiAnswersKnowledgeDocument().');
|
|
30
|
+
}
|
|
31
|
+
const queryParameters = {};
|
|
32
|
+
const headerParameters = {};
|
|
33
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
34
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
35
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
38
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
39
|
+
}
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = await this.request({
|
|
48
|
+
path: `/compositions/{id}/adapters/ai-answers/knowledge/documents`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
body: AddAiAnswersKnowledgeDocumentRequestToJSON(requestParameters['addAiAnswersKnowledgeDocumentRequest']),
|
|
53
|
+
}, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AddAiAnswersKnowledgeDocument201ResponseFromJSON(jsonValue));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Gives the widget\'s AI a document to answer visitors\' questions from. Send the title and the plain text. The call returns once the document is ready to be used, which takes a few seconds, longer for a long text. **How it is used.** The text is cleaned, cut into short passages and each passage is turned into numbers (an embedding) so the widget can find the passages nearest to a question. When a visitor asks, the nearest passages and the question are shown to an AI model, which writes the answer from them and from nothing else; if the documents say nothing about the question the visitor is told so, and the owner is not charged for that question. The titles of the documents an answer used are shown to the visitor as its sources. **What leaves Widgetic.** The text of a document is sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** A widget holds up to 20 documents, each up to 100000 characters, and up to 400000 characters in all (`getAiAnswersKnowledge` reports the current numbers). This call takes text. To add a text file or a picture of a document (a PDF too, once PDFs are read) without turning it into text yourself, use `addAiAnswersKnowledgeFile`. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds are limited to ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
|
|
58
|
+
* Add a document for a widget\'s AI to answer from
|
|
59
|
+
*/
|
|
60
|
+
async addAiAnswersKnowledgeDocument(requestParameters, initOverrides) {
|
|
61
|
+
const response = await this.addAiAnswersKnowledgeDocumentRaw(requestParameters, initOverrides);
|
|
62
|
+
return await response.value();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Gives the widget\'s AI a document made from a file. Send a `multipart/form-data` request with the file in the field named `file` and, if you like, a `title`. The file is turned into text and then added exactly as `addAiAnswersKnowledgeDocument` adds text: the same cleaning, the same limits, the same refusal of a copy of a document the widget already has. The call returns once the document is ready to be used, which takes a few seconds (a PDF is read first, so it takes longer). **PDFs are not read yet.** For now a PDF is refused with 415, in a sentence that says what to do instead: paste the text, upload it as a text file, or upload its pages as pictures. What this description says about a PDF is what will hold from the day PDFs are read. **Which files.** - A **PDF** (not read yet, see above), up to 10 MB and 300 pages. Its text is read and its paragraphs are put back together. A PDF that is only pictures of pages (a scan) has no text to read: upload the pages as pictures instead. A PDF locked with a password is refused. - A **text file**: `.txt`, `.text`, `.md`, `.markdown` or `.csv`, in UTF-8, UTF-16 or Windows-1252. - A **picture of a document**: PNG, JPEG or WebP, up to 4 MB. The text in it is read with the same text recognition as the `ocr` adapter. - Word and other office files are not read yet: save the file as a PDF and upload that. What a file is comes from what is in it, not from its name or the type it is sent as. A file that is none of these is refused with 415. **The title.** Left out, the name of the file (without its extension) is the title. Visitors see the title as the source of an answer, so send one that means something to them. **The file is not kept.** Only its text, cut into passages, is kept, and `getAiAnswersKnowledge` never returns it. **What leaves Widgetic.** As for text, the words of the document are sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. A picture is also sent to the text recognition service. A PDF is read on Widgetic\'s own servers and is not sent anywhere to be read. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** The widget\'s limits are those of `addAiAnswersKnowledgeDocument` (up to 20 documents, each up to 100000 characters of text, and up to 400000 characters in all; `getAiAnswersKnowledge` reports the current numbers), and the file is at most 10 MB. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds, from text or from a file, share one limit of ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
|
|
66
|
+
* Add a text file or a picture of a document (a PDF once PDFs are read) for a widget\'s AI to answer from
|
|
67
|
+
*/
|
|
68
|
+
async addAiAnswersKnowledgeFileRaw(requestParameters, initOverrides) {
|
|
69
|
+
if (requestParameters['id'] == null) {
|
|
70
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addAiAnswersKnowledgeFile().');
|
|
71
|
+
}
|
|
72
|
+
if (requestParameters['file'] == null) {
|
|
73
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling addAiAnswersKnowledgeFile().');
|
|
74
|
+
}
|
|
75
|
+
const queryParameters = {};
|
|
76
|
+
const headerParameters = {};
|
|
77
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
78
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
81
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
82
|
+
}
|
|
83
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
+
const token = this.configuration.accessToken;
|
|
85
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const consumes = [
|
|
91
|
+
{ contentType: 'multipart/form-data' },
|
|
92
|
+
];
|
|
93
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
94
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
95
|
+
let formParams;
|
|
96
|
+
let useForm = false;
|
|
97
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
98
|
+
useForm = canConsumeForm;
|
|
99
|
+
if (useForm) {
|
|
100
|
+
formParams = new FormData();
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
formParams = new URLSearchParams();
|
|
104
|
+
}
|
|
105
|
+
if (requestParameters['file'] != null) {
|
|
106
|
+
formParams.append('file', requestParameters['file']);
|
|
107
|
+
}
|
|
108
|
+
if (requestParameters['title'] != null) {
|
|
109
|
+
formParams.append('title', requestParameters['title']);
|
|
110
|
+
}
|
|
111
|
+
const response = await this.request({
|
|
112
|
+
path: `/compositions/{id}/adapters/ai-answers/knowledge/documents/file`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
113
|
+
method: 'POST',
|
|
114
|
+
headers: headerParameters,
|
|
115
|
+
query: queryParameters,
|
|
116
|
+
body: formParams,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AddAiAnswersKnowledgeDocument201ResponseFromJSON(jsonValue));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Gives the widget\'s AI a document made from a file. Send a `multipart/form-data` request with the file in the field named `file` and, if you like, a `title`. The file is turned into text and then added exactly as `addAiAnswersKnowledgeDocument` adds text: the same cleaning, the same limits, the same refusal of a copy of a document the widget already has. The call returns once the document is ready to be used, which takes a few seconds (a PDF is read first, so it takes longer). **PDFs are not read yet.** For now a PDF is refused with 415, in a sentence that says what to do instead: paste the text, upload it as a text file, or upload its pages as pictures. What this description says about a PDF is what will hold from the day PDFs are read. **Which files.** - A **PDF** (not read yet, see above), up to 10 MB and 300 pages. Its text is read and its paragraphs are put back together. A PDF that is only pictures of pages (a scan) has no text to read: upload the pages as pictures instead. A PDF locked with a password is refused. - A **text file**: `.txt`, `.text`, `.md`, `.markdown` or `.csv`, in UTF-8, UTF-16 or Windows-1252. - A **picture of a document**: PNG, JPEG or WebP, up to 4 MB. The text in it is read with the same text recognition as the `ocr` adapter. - Word and other office files are not read yet: save the file as a PDF and upload that. What a file is comes from what is in it, not from its name or the type it is sent as. A file that is none of these is refused with 415. **The title.** Left out, the name of the file (without its extension) is the title. Visitors see the title as the source of an answer, so send one that means something to them. **The file is not kept.** Only its text, cut into passages, is kept, and `getAiAnswersKnowledge` never returns it. **What leaves Widgetic.** As for text, the words of the document are sent to OpenAI to be embedded when it is added, and the passages used for a question are sent to the AI model that writes the answer. A picture is also sent to the text recognition service. A PDF is read on Widgetic\'s own servers and is not sent anywhere to be read. Say so in your privacy policy. **Treat every document as public.** An answer can quote or paraphrase anything a document says, to any visitor of the widget. Do not add passwords, keys, personal data or anything that must stay private. **Limits.** The widget\'s limits are those of `addAiAnswersKnowledgeDocument` (up to 20 documents, each up to 100000 characters of text, and up to 400000 characters in all; `getAiAnswersKnowledge` reports the current numbers), and the file is at most 10 MB. Adding a document costs no credits. The same text cannot be added twice to one widget (409). The caller must be allowed to change the widget. An API key needs the `content:write` scope. Adds, from text or from a file, share one limit of ten in ten minutes per person. A partner\'s customer in an editor session is one person of its own: its adds are not counted with the partner\'s other customers\'.
|
|
122
|
+
* Add a text file or a picture of a document (a PDF once PDFs are read) for a widget\'s AI to answer from
|
|
123
|
+
*/
|
|
124
|
+
async addAiAnswersKnowledgeFile(requestParameters, initOverrides) {
|
|
125
|
+
const response = await this.addAiAnswersKnowledgeFileRaw(requestParameters, initOverrides);
|
|
126
|
+
return await response.value();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Checks if the authenticated user can access a specific composition based on workspace context and permissions.
|
|
130
|
+
* Check Composition Access
|
|
131
|
+
*/
|
|
132
|
+
async checkCompositionAccessRaw(requestParameters, initOverrides) {
|
|
133
|
+
if (requestParameters['id'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling checkCompositionAccess().');
|
|
135
|
+
}
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
139
|
+
const token = this.configuration.accessToken;
|
|
140
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
141
|
+
if (tokenString) {
|
|
142
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const response = await this.request({
|
|
146
|
+
path: `/compositions/{id}/access`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
147
|
+
method: 'GET',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CheckCompositionAccessResponseFromJSON(jsonValue));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Checks if the authenticated user can access a specific composition based on workspace context and permissions.
|
|
155
|
+
* Check Composition Access
|
|
156
|
+
*/
|
|
157
|
+
async checkCompositionAccess(requestParameters, initOverrides) {
|
|
158
|
+
const response = await this.checkCompositionAccessRaw(requestParameters, initOverrides);
|
|
159
|
+
return await response.value();
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Creates one item in a widget content list without replacing the whole list. Item field keys are widget data (camelCase or snake_case are kept as sent). Partners use this to keep galleries in sync.
|
|
163
|
+
* Add a content list item
|
|
164
|
+
*/
|
|
165
|
+
async createCompositionContentItemRaw(requestParameters, initOverrides) {
|
|
166
|
+
if (requestParameters['id'] == null) {
|
|
167
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createCompositionContentItem().');
|
|
168
|
+
}
|
|
169
|
+
if (requestParameters['list'] == null) {
|
|
170
|
+
throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling createCompositionContentItem().');
|
|
171
|
+
}
|
|
172
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
173
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createCompositionContentItem().');
|
|
174
|
+
}
|
|
175
|
+
if (requestParameters['createCompositionContentItemRequest'] == null) {
|
|
176
|
+
throw new runtime.RequiredError('createCompositionContentItemRequest', 'Required parameter "createCompositionContentItemRequest" was null or undefined when calling createCompositionContentItem().');
|
|
177
|
+
}
|
|
178
|
+
const queryParameters = {};
|
|
179
|
+
const headerParameters = {};
|
|
180
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
181
|
+
if (requestParameters['ifMatch'] != null) {
|
|
182
|
+
headerParameters['If-Match'] = String(requestParameters['ifMatch']);
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
185
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
188
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
191
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
192
|
+
}
|
|
193
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
194
|
+
const token = this.configuration.accessToken;
|
|
195
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
196
|
+
if (tokenString) {
|
|
197
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const response = await this.request({
|
|
201
|
+
path: `/compositions/{id}/content/{list}/items`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"list"}}`, encodeURIComponent(String(requestParameters['list']))),
|
|
202
|
+
method: 'POST',
|
|
203
|
+
headers: headerParameters,
|
|
204
|
+
query: queryParameters,
|
|
205
|
+
body: CreateCompositionContentItemRequestToJSON(requestParameters['createCompositionContentItemRequest']),
|
|
206
|
+
}, initOverrides);
|
|
207
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionContentItem201ResponseFromJSON(jsonValue));
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Creates one item in a widget content list without replacing the whole list. Item field keys are widget data (camelCase or snake_case are kept as sent). Partners use this to keep galleries in sync.
|
|
211
|
+
* Add a content list item
|
|
212
|
+
*/
|
|
213
|
+
async createCompositionContentItem(requestParameters, initOverrides) {
|
|
214
|
+
const response = await this.createCompositionContentItemRaw(requestParameters, initOverrides);
|
|
215
|
+
return await response.value();
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Creates a new record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
219
|
+
* Create Record In Composition Database
|
|
220
|
+
*/
|
|
221
|
+
async createCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
|
|
222
|
+
if (requestParameters['id'] == null) {
|
|
223
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createCompositionDatabaseRecord().');
|
|
224
|
+
}
|
|
225
|
+
if (requestParameters['table'] == null) {
|
|
226
|
+
throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling createCompositionDatabaseRecord().');
|
|
227
|
+
}
|
|
228
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
229
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createCompositionDatabaseRecord().');
|
|
230
|
+
}
|
|
231
|
+
if (requestParameters['body'] == null) {
|
|
232
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling createCompositionDatabaseRecord().');
|
|
233
|
+
}
|
|
234
|
+
const queryParameters = {};
|
|
235
|
+
const headerParameters = {};
|
|
236
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
237
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
238
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
239
|
+
}
|
|
240
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
241
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
242
|
+
}
|
|
243
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
244
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
245
|
+
}
|
|
246
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
247
|
+
const token = this.configuration.accessToken;
|
|
248
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
249
|
+
if (tokenString) {
|
|
250
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
const response = await this.request({
|
|
254
|
+
path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
255
|
+
method: 'POST',
|
|
256
|
+
headers: headerParameters,
|
|
257
|
+
query: queryParameters,
|
|
258
|
+
body: requestParameters['body'],
|
|
259
|
+
}, initOverrides);
|
|
260
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Creates a new record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
264
|
+
* Create Record In Composition Database
|
|
265
|
+
*/
|
|
266
|
+
async createCompositionDatabaseRecord(requestParameters, initOverrides) {
|
|
267
|
+
const response = await this.createCompositionDatabaseRecordRaw(requestParameters, initOverrides);
|
|
268
|
+
return await response.value();
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. Send `databaseSchema` to give the composition tables of its own for what visitors send it (the shape, the allowed types and the limits are described on the field). A `databaseSchema` that cannot be used is refused before anything is created, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is created but its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. Leave `databaseSchema` out and the composition gets the tables its widget declares in its own source (`src/lib/meta/database.json`), if it declares any: they are made the same way, in a schema of the composition\'s own. A widget that keeps nothing leaves the composition without tables. If the widget\'s file cannot be used, or its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. The widget is read as it was when it was last published (as it is now, when it never was). The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
|
|
272
|
+
* Create Composition
|
|
273
|
+
*/
|
|
274
|
+
async createCompositionRaw(requestParameters, initOverrides) {
|
|
275
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
276
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createComposition().');
|
|
277
|
+
}
|
|
278
|
+
if (requestParameters['newComposition'] == null) {
|
|
279
|
+
throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
|
|
280
|
+
}
|
|
281
|
+
const queryParameters = {};
|
|
282
|
+
const headerParameters = {};
|
|
283
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
284
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
285
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
286
|
+
}
|
|
287
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
288
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
289
|
+
}
|
|
290
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
291
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
292
|
+
}
|
|
293
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
294
|
+
const token = this.configuration.accessToken;
|
|
295
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
296
|
+
if (tokenString) {
|
|
297
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
const response = await this.request({
|
|
301
|
+
path: `/compositions`,
|
|
302
|
+
method: 'POST',
|
|
303
|
+
headers: headerParameters,
|
|
304
|
+
query: queryParameters,
|
|
305
|
+
body: NewCompositionToJSON(requestParameters['newComposition']),
|
|
306
|
+
}, initOverrides);
|
|
307
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. Send `databaseSchema` to give the composition tables of its own for what visitors send it (the shape, the allowed types and the limits are described on the field). A `databaseSchema` that cannot be used is refused before anything is created, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is created but its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. Leave `databaseSchema` out and the composition gets the tables its widget declares in its own source (`src/lib/meta/database.json`), if it declares any: they are made the same way, in a schema of the composition\'s own. A widget that keeps nothing leaves the composition without tables. If the widget\'s file cannot be used, or its tables cannot be made just now, the answer is still `201` and `meta.warnings` says so. The widget is read as it was when it was last published (as it is now, when it never was). The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
|
|
311
|
+
* Create Composition
|
|
312
|
+
*/
|
|
313
|
+
async createComposition(requestParameters, initOverrides) {
|
|
314
|
+
const response = await this.createCompositionRaw(requestParameters, initOverrides);
|
|
315
|
+
return await response.value();
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Delete a content list item
|
|
319
|
+
*/
|
|
320
|
+
async deleteCompositionContentItemRaw(requestParameters, initOverrides) {
|
|
321
|
+
if (requestParameters['id'] == null) {
|
|
322
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionContentItem().');
|
|
323
|
+
}
|
|
324
|
+
if (requestParameters['list'] == null) {
|
|
325
|
+
throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling deleteCompositionContentItem().');
|
|
326
|
+
}
|
|
327
|
+
if (requestParameters['itemId'] == null) {
|
|
328
|
+
throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling deleteCompositionContentItem().');
|
|
329
|
+
}
|
|
330
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
331
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling deleteCompositionContentItem().');
|
|
332
|
+
}
|
|
333
|
+
const queryParameters = {};
|
|
334
|
+
const headerParameters = {};
|
|
335
|
+
if (requestParameters['ifMatch'] != null) {
|
|
336
|
+
headerParameters['If-Match'] = String(requestParameters['ifMatch']);
|
|
337
|
+
}
|
|
338
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
339
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
340
|
+
}
|
|
341
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
342
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
343
|
+
}
|
|
344
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
345
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
346
|
+
}
|
|
347
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
348
|
+
const token = this.configuration.accessToken;
|
|
349
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
350
|
+
if (tokenString) {
|
|
351
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
const response = await this.request({
|
|
355
|
+
path: `/compositions/{id}/content/{list}/items/{itemId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"list"}}`, encodeURIComponent(String(requestParameters['list']))).replace(`{${"itemId"}}`, encodeURIComponent(String(requestParameters['itemId']))),
|
|
356
|
+
method: 'DELETE',
|
|
357
|
+
headers: headerParameters,
|
|
358
|
+
query: queryParameters,
|
|
359
|
+
}, initOverrides);
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteCompositionContentItemResponseFromJSON(jsonValue));
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Delete a content list item
|
|
364
|
+
*/
|
|
365
|
+
async deleteCompositionContentItem(requestParameters, initOverrides) {
|
|
366
|
+
const response = await this.deleteCompositionContentItemRaw(requestParameters, initOverrides);
|
|
367
|
+
return await response.value();
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Removes the binding. Asking again, or asking for a composition that had none, is not an error: the composition has no data source afterwards, and that is all `removed: true` says.
|
|
371
|
+
* Remove the composition data source binding
|
|
372
|
+
*/
|
|
373
|
+
async deleteCompositionDataSourceRaw(requestParameters, initOverrides) {
|
|
374
|
+
if (requestParameters['id'] == null) {
|
|
375
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionDataSource().');
|
|
376
|
+
}
|
|
377
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
378
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling deleteCompositionDataSource().');
|
|
379
|
+
}
|
|
380
|
+
const queryParameters = {};
|
|
381
|
+
const headerParameters = {};
|
|
382
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
383
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
384
|
+
}
|
|
385
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
386
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
387
|
+
}
|
|
388
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
389
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
390
|
+
}
|
|
391
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
392
|
+
const token = this.configuration.accessToken;
|
|
393
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
394
|
+
if (tokenString) {
|
|
395
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
const response = await this.request({
|
|
399
|
+
path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
400
|
+
method: 'DELETE',
|
|
401
|
+
headers: headerParameters,
|
|
402
|
+
query: queryParameters,
|
|
403
|
+
}, initOverrides);
|
|
404
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteCompositionDataSourceResponseFromJSON(jsonValue));
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Removes the binding. Asking again, or asking for a composition that had none, is not an error: the composition has no data source afterwards, and that is all `removed: true` says.
|
|
408
|
+
* Remove the composition data source binding
|
|
409
|
+
*/
|
|
410
|
+
async deleteCompositionDataSource(requestParameters, initOverrides) {
|
|
411
|
+
const response = await this.deleteCompositionDataSourceRaw(requestParameters, initOverrides);
|
|
412
|
+
return await response.value();
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Deletes a specific record from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
416
|
+
* Delete Record From Composition Database
|
|
417
|
+
*/
|
|
418
|
+
async deleteCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
|
|
419
|
+
if (requestParameters['id'] == null) {
|
|
420
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionDatabaseRecord().');
|
|
421
|
+
}
|
|
422
|
+
if (requestParameters['table'] == null) {
|
|
423
|
+
throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling deleteCompositionDatabaseRecord().');
|
|
424
|
+
}
|
|
425
|
+
if (requestParameters['recordId'] == null) {
|
|
426
|
+
throw new runtime.RequiredError('recordId', 'Required parameter "recordId" was null or undefined when calling deleteCompositionDatabaseRecord().');
|
|
427
|
+
}
|
|
428
|
+
const queryParameters = {};
|
|
429
|
+
const headerParameters = {};
|
|
430
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
431
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
432
|
+
}
|
|
433
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
434
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
435
|
+
}
|
|
436
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
437
|
+
const token = this.configuration.accessToken;
|
|
438
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
439
|
+
if (tokenString) {
|
|
440
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
const response = await this.request({
|
|
444
|
+
path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
445
|
+
method: 'DELETE',
|
|
446
|
+
headers: headerParameters,
|
|
447
|
+
query: queryParameters,
|
|
448
|
+
}, initOverrides);
|
|
449
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Deletes a specific record from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
453
|
+
* Delete Record From Composition Database
|
|
454
|
+
*/
|
|
455
|
+
async deleteCompositionDatabaseRecord(requestParameters, initOverrides) {
|
|
456
|
+
const response = await this.deleteCompositionDatabaseRecordRaw(requestParameters, initOverrides);
|
|
457
|
+
return await response.value();
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
|
|
461
|
+
* Delete Composition
|
|
462
|
+
*/
|
|
463
|
+
async deleteCompositionRaw(requestParameters, initOverrides) {
|
|
464
|
+
if (requestParameters['id'] == null) {
|
|
465
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
|
|
466
|
+
}
|
|
467
|
+
const queryParameters = {};
|
|
468
|
+
const headerParameters = {};
|
|
469
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
470
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
471
|
+
}
|
|
472
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
473
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
474
|
+
}
|
|
475
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
476
|
+
const token = this.configuration.accessToken;
|
|
477
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
478
|
+
if (tokenString) {
|
|
479
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
const response = await this.request({
|
|
483
|
+
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
484
|
+
method: 'DELETE',
|
|
485
|
+
headers: headerParameters,
|
|
486
|
+
query: queryParameters,
|
|
487
|
+
}, initOverrides);
|
|
488
|
+
return new runtime.VoidApiResponse(response);
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Deletes a specific composition, and the data it keeps (the tables it declared and what visitors left in them).
|
|
492
|
+
* Delete Composition
|
|
493
|
+
*/
|
|
494
|
+
async deleteComposition(requestParameters, initOverrides) {
|
|
495
|
+
await this.deleteCompositionRaw(requestParameters, initOverrides);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Names the tables a composition\'s widget keeps entries in (the votes, ratings, answers or sign-ups its visitors left), their columns, and how many entries each holds. Call it first to learn the table and column names that `readCompositionEntries` takes. A widget that only shows content keeps nothing of its own: the answer is `hasData: false` with no tables, and that is not an error. A table that could not be counted has `rows: null`, which is not zero. 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.
|
|
499
|
+
* Describe What a Composition Keeps
|
|
500
|
+
*/
|
|
501
|
+
async describeCompositionEntriesRaw(requestParameters, initOverrides) {
|
|
502
|
+
if (requestParameters['id'] == null) {
|
|
503
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling describeCompositionEntries().');
|
|
504
|
+
}
|
|
505
|
+
const queryParameters = {};
|
|
506
|
+
const headerParameters = {};
|
|
507
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
508
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
509
|
+
}
|
|
510
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
511
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
512
|
+
}
|
|
513
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
514
|
+
const token = this.configuration.accessToken;
|
|
515
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
516
|
+
if (tokenString) {
|
|
517
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
const response = await this.request({
|
|
521
|
+
path: `/compositions/{id}/entries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
522
|
+
method: 'GET',
|
|
523
|
+
headers: headerParameters,
|
|
524
|
+
query: queryParameters,
|
|
525
|
+
}, initOverrides);
|
|
526
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CompositionEntriesDescriptionResponseFromJSON(jsonValue));
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Names the tables a composition\'s widget keeps entries in (the votes, ratings, answers or sign-ups its visitors left), their columns, and how many entries each holds. Call it first to learn the table and column names that `readCompositionEntries` takes. A widget that only shows content keeps nothing of its own: the answer is `hasData: false` with no tables, and that is not an error. A table that could not be counted has `rows: null`, which is not zero. 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.
|
|
530
|
+
* Describe What a Composition Keeps
|
|
531
|
+
*/
|
|
532
|
+
async describeCompositionEntries(requestParameters, initOverrides) {
|
|
533
|
+
const response = await this.describeCompositionEntriesRaw(requestParameters, initOverrides);
|
|
534
|
+
return await response.value();
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Creates a duplicate of an existing composition for the authenticated user. The duplicate is made after the answer: the call returns `202` with an `operationId`. Ask `GET /operations/{id}` for that operation until its `status` is `completed`; the new composition is named in `metadata.newCompositionId`. A problem with the duplicate\'s database (for example, tables that could not be made just now) is listed in `metadata.warnings`, which is absent when there is none. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one duplicate is made, not two.
|
|
538
|
+
* Duplicate Composition
|
|
539
|
+
*/
|
|
540
|
+
async duplicateCompositionRaw(requestParameters, initOverrides) {
|
|
541
|
+
if (requestParameters['id'] == null) {
|
|
542
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling duplicateComposition().');
|
|
543
|
+
}
|
|
544
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
545
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling duplicateComposition().');
|
|
546
|
+
}
|
|
547
|
+
const queryParameters = {};
|
|
548
|
+
const headerParameters = {};
|
|
549
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
550
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
551
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
552
|
+
}
|
|
553
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
554
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
555
|
+
}
|
|
556
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
557
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
558
|
+
}
|
|
559
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
560
|
+
const token = this.configuration.accessToken;
|
|
561
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
562
|
+
if (tokenString) {
|
|
563
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
const response = await this.request({
|
|
567
|
+
path: `/compositions/{id}/duplicate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
568
|
+
method: 'POST',
|
|
569
|
+
headers: headerParameters,
|
|
570
|
+
query: queryParameters,
|
|
571
|
+
body: DuplicateCompositionRequestToJSON(requestParameters['duplicateCompositionRequest']),
|
|
572
|
+
}, initOverrides);
|
|
573
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DuplicateComposition202ResponseFromJSON(jsonValue));
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Creates a duplicate of an existing composition for the authenticated user. The duplicate is made after the answer: the call returns `202` with an `operationId`. Ask `GET /operations/{id}` for that operation until its `status` is `completed`; the new composition is named in `metadata.newCompositionId`. A problem with the duplicate\'s database (for example, tables that could not be made just now) is listed in `metadata.warnings`, which is absent when there is none. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one duplicate is made, not two.
|
|
577
|
+
* Duplicate Composition
|
|
578
|
+
*/
|
|
579
|
+
async duplicateComposition(requestParameters, initOverrides) {
|
|
580
|
+
const response = await this.duplicateCompositionRaw(requestParameters, initOverrides);
|
|
581
|
+
return await response.value();
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* The `ai-answers` adapter lets a widget answer a visitor\'s question with text an AI model writes from documents the widget\'s owner provides. This lists those documents, and how much room is left for more: `totals` carries the widget\'s limits next to what it uses. The list never contains what a document says, only which documents there are: their title, size and state. A `processing` document is not used to answer questions yet (or an add of it was interrupted: remove it and add it again). Add a document with `addAiAnswersKnowledgeDocument`; remove one with `removeAiAnswersKnowledgeDocument`. The caller must be allowed to see the widget: its owner, a partner for a customer it manages, or a Widgetic administrator. An API key needs the `content:read` scope.
|
|
585
|
+
* See the documents a widget\'s AI answers from
|
|
586
|
+
*/
|
|
587
|
+
async getAiAnswersKnowledgeRaw(requestParameters, initOverrides) {
|
|
588
|
+
if (requestParameters['id'] == null) {
|
|
589
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAiAnswersKnowledge().');
|
|
590
|
+
}
|
|
591
|
+
const queryParameters = {};
|
|
592
|
+
const headerParameters = {};
|
|
593
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
594
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
595
|
+
}
|
|
596
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
597
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
598
|
+
}
|
|
599
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
600
|
+
const token = this.configuration.accessToken;
|
|
601
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
602
|
+
if (tokenString) {
|
|
603
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
const response = await this.request({
|
|
607
|
+
path: `/compositions/{id}/adapters/ai-answers/knowledge`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
608
|
+
method: 'GET',
|
|
609
|
+
headers: headerParameters,
|
|
610
|
+
query: queryParameters,
|
|
611
|
+
}, initOverrides);
|
|
612
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAiAnswersKnowledge200ResponseFromJSON(jsonValue));
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* The `ai-answers` adapter lets a widget answer a visitor\'s question with text an AI model writes from documents the widget\'s owner provides. This lists those documents, and how much room is left for more: `totals` carries the widget\'s limits next to what it uses. The list never contains what a document says, only which documents there are: their title, size and state. A `processing` document is not used to answer questions yet (or an add of it was interrupted: remove it and add it again). Add a document with `addAiAnswersKnowledgeDocument`; remove one with `removeAiAnswersKnowledgeDocument`. The caller must be allowed to see the widget: its owner, a partner for a customer it manages, or a Widgetic administrator. An API key needs the `content:read` scope.
|
|
616
|
+
* See the documents a widget\'s AI answers from
|
|
617
|
+
*/
|
|
618
|
+
async getAiAnswersKnowledge(requestParameters, initOverrides) {
|
|
619
|
+
const response = await this.getAiAnswersKnowledgeRaw(requestParameters, initOverrides);
|
|
620
|
+
return await response.value();
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Retrieves all compositions with pagination support. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the compositions made for that managed user. The compositions of your other managed users, and your own, are left out. It combines with the other filters and with paging. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`. An editor session with the `creator` surface may call this to list the compositions of ONE widget it built: it must send `widgetId`, and the answer holds only the compositions made for the session\'s managed user.
|
|
624
|
+
* Get All Compositions
|
|
625
|
+
*/
|
|
626
|
+
async getAllCompositionsRaw(requestParameters, initOverrides) {
|
|
627
|
+
const queryParameters = {};
|
|
628
|
+
if (requestParameters['page'] != null) {
|
|
629
|
+
queryParameters['page'] = requestParameters['page'];
|
|
630
|
+
}
|
|
631
|
+
if (requestParameters['size'] != null) {
|
|
632
|
+
queryParameters['size'] = requestParameters['size'];
|
|
633
|
+
}
|
|
634
|
+
if (requestParameters['sort'] != null) {
|
|
635
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
636
|
+
}
|
|
637
|
+
if (requestParameters['widgetId'] != null) {
|
|
638
|
+
queryParameters['widgetId'] = requestParameters['widgetId'];
|
|
639
|
+
}
|
|
640
|
+
if (requestParameters['workspace'] != null) {
|
|
641
|
+
queryParameters['workspace'] = requestParameters['workspace'];
|
|
642
|
+
}
|
|
643
|
+
if (requestParameters['projectFolder'] != null) {
|
|
644
|
+
queryParameters['projectFolder'] = requestParameters['projectFolder'];
|
|
645
|
+
}
|
|
646
|
+
if (requestParameters['status'] != null) {
|
|
647
|
+
queryParameters['status'] = requestParameters['status'];
|
|
648
|
+
}
|
|
649
|
+
if (requestParameters['managedUserId'] != null) {
|
|
650
|
+
queryParameters['managedUserId'] = requestParameters['managedUserId'];
|
|
651
|
+
}
|
|
652
|
+
if (requestParameters['managedUserExternalId'] != null) {
|
|
653
|
+
queryParameters['managedUserExternalId'] = requestParameters['managedUserExternalId'];
|
|
654
|
+
}
|
|
655
|
+
const headerParameters = {};
|
|
656
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
657
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
658
|
+
}
|
|
659
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
660
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
661
|
+
}
|
|
662
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
663
|
+
const token = this.configuration.accessToken;
|
|
664
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
665
|
+
if (tokenString) {
|
|
666
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
const response = await this.request({
|
|
670
|
+
path: `/compositions`,
|
|
671
|
+
method: 'GET',
|
|
672
|
+
headers: headerParameters,
|
|
673
|
+
query: queryParameters,
|
|
674
|
+
}, initOverrides);
|
|
675
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAllCompositions200ResponseFromJSON(jsonValue));
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Retrieves all compositions with pagination support. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the compositions made for that managed user. The compositions of your other managed users, and your own, are left out. It combines with the other filters and with paging. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`. An editor session with the `creator` surface may call this to list the compositions of ONE widget it built: it must send `widgetId`, and the answer holds only the compositions made for the session\'s managed user.
|
|
679
|
+
* Get All Compositions
|
|
680
|
+
*/
|
|
681
|
+
async getAllCompositions(requestParameters = {}, initOverrides) {
|
|
682
|
+
const response = await this.getAllCompositionsRaw(requestParameters, initOverrides);
|
|
683
|
+
return await response.value();
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Retrieves a specific composition by its ID. The answer carries `direct`, which says whether the widget the composition is made from is drawn straight into your page (`true`) or inside a frame (`false`), or `null` while the widget has no published version. Read it before you go live: a widget drawn without a frame writes its entries from your own page, so the public entry route looks at the website that page is on. While the composition\'s allowed list is empty (you have not restricted the allowed websites), every website may write; once you list websites, only those may, besides Widgetic\'s own sites, the visitor\'s own machine and your own platform. A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says. The public JSON of the composition stays open to every website. For a composition a team shares (one filed under a project of an organization, or made in a Shopify store\'s workspace) the answer also carries `lastEditedBy` and `lastEditedAt`: who made the latest change and when, so that a teammate who opens it can be told \"Anna changed this at 14:32\". A composition in a personal project leaves both out, and so does an answer given to an editor session or to a call made for one managed user: only a person is told who a teammate is.
|
|
687
|
+
* Get Composition
|
|
688
|
+
*/
|
|
689
|
+
async getCompositionByIdRaw(requestParameters, initOverrides) {
|
|
690
|
+
if (requestParameters['id'] == null) {
|
|
691
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionById().');
|
|
692
|
+
}
|
|
693
|
+
const queryParameters = {};
|
|
694
|
+
const headerParameters = {};
|
|
695
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
696
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
697
|
+
}
|
|
698
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
699
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
700
|
+
}
|
|
701
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
702
|
+
const token = this.configuration.accessToken;
|
|
703
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
704
|
+
if (tokenString) {
|
|
705
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
const response = await this.request({
|
|
709
|
+
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
710
|
+
method: 'GET',
|
|
711
|
+
headers: headerParameters,
|
|
712
|
+
query: queryParameters,
|
|
713
|
+
}, initOverrides);
|
|
714
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Retrieves a specific composition by its ID. The answer carries `direct`, which says whether the widget the composition is made from is drawn straight into your page (`true`) or inside a frame (`false`), or `null` while the widget has no published version. Read it before you go live: a widget drawn without a frame writes its entries from your own page, so the public entry route looks at the website that page is on. While the composition\'s allowed list is empty (you have not restricted the allowed websites), every website may write; once you list websites, only those may, besides Widgetic\'s own sites, the visitor\'s own machine and your own platform. A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says. The public JSON of the composition stays open to every website. For a composition a team shares (one filed under a project of an organization, or made in a Shopify store\'s workspace) the answer also carries `lastEditedBy` and `lastEditedAt`: who made the latest change and when, so that a teammate who opens it can be told \"Anna changed this at 14:32\". A composition in a personal project leaves both out, and so does an answer given to an editor session or to a call made for one managed user: only a person is told who a teammate is.
|
|
718
|
+
* Get Composition
|
|
719
|
+
*/
|
|
720
|
+
async getCompositionById(requestParameters, initOverrides) {
|
|
721
|
+
const response = await this.getCompositionByIdRaw(requestParameters, initOverrides);
|
|
722
|
+
return await response.value();
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Retrieves the content schema for a composition based on its widget type
|
|
726
|
+
* Get Content Schema
|
|
727
|
+
*/
|
|
728
|
+
async getCompositionContentSchemaRaw(requestParameters, initOverrides) {
|
|
729
|
+
if (requestParameters['id'] == null) {
|
|
730
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
|
|
731
|
+
}
|
|
732
|
+
const queryParameters = {};
|
|
733
|
+
const headerParameters = {};
|
|
734
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
735
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
736
|
+
}
|
|
737
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
738
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
739
|
+
}
|
|
740
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
741
|
+
const token = this.configuration.accessToken;
|
|
742
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
743
|
+
if (tokenString) {
|
|
744
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
const response = await this.request({
|
|
748
|
+
path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
749
|
+
method: 'GET',
|
|
750
|
+
headers: headerParameters,
|
|
751
|
+
query: queryParameters,
|
|
752
|
+
}, initOverrides);
|
|
753
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentSchemaResponseFromJSON(jsonValue));
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Retrieves the content schema for a composition based on its widget type
|
|
757
|
+
* Get Content Schema
|
|
758
|
+
*/
|
|
759
|
+
async getCompositionContentSchema(requestParameters, initOverrides) {
|
|
760
|
+
const response = await this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
|
|
761
|
+
return await response.value();
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Retrieves the current content of a composition
|
|
765
|
+
* Get Current Content
|
|
766
|
+
*/
|
|
767
|
+
async getCompositionContentRaw(requestParameters, initOverrides) {
|
|
768
|
+
if (requestParameters['id'] == null) {
|
|
769
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContent().');
|
|
770
|
+
}
|
|
771
|
+
const queryParameters = {};
|
|
772
|
+
const headerParameters = {};
|
|
773
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
774
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
775
|
+
}
|
|
776
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
777
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
778
|
+
}
|
|
779
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
780
|
+
const token = this.configuration.accessToken;
|
|
781
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
782
|
+
if (tokenString) {
|
|
783
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
const response = await this.request({
|
|
787
|
+
path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
788
|
+
method: 'GET',
|
|
789
|
+
headers: headerParameters,
|
|
790
|
+
query: queryParameters,
|
|
791
|
+
}, initOverrides);
|
|
792
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentResponseFromJSON(jsonValue));
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Retrieves the current content of a composition
|
|
796
|
+
* Get Current Content
|
|
797
|
+
*/
|
|
798
|
+
async getCompositionContent(requestParameters, initOverrides) {
|
|
799
|
+
const response = await this.getCompositionContentRaw(requestParameters, initOverrides);
|
|
800
|
+
return await response.value();
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* The data source that is bound to the composition: `url` and `refreshSeconds`. The answer\'s `data` is `null` when none is bound, and also when what is stored does not pass the rule for a public https address (a binding written by another path, such as the general embed-settings update, is never shown to a page unless it passes the same checks as this route).
|
|
804
|
+
* Read the composition data source binding
|
|
805
|
+
*/
|
|
806
|
+
async getCompositionDataSourceRaw(requestParameters, initOverrides) {
|
|
807
|
+
if (requestParameters['id'] == null) {
|
|
808
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDataSource().');
|
|
809
|
+
}
|
|
810
|
+
const queryParameters = {};
|
|
811
|
+
const headerParameters = {};
|
|
812
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
813
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
814
|
+
}
|
|
815
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
816
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
817
|
+
}
|
|
818
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
819
|
+
const token = this.configuration.accessToken;
|
|
820
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
821
|
+
if (tokenString) {
|
|
822
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
const response = await this.request({
|
|
826
|
+
path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
827
|
+
method: 'GET',
|
|
828
|
+
headers: headerParameters,
|
|
829
|
+
query: queryParameters,
|
|
830
|
+
}, initOverrides);
|
|
831
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDataSourceResponseFromJSON(jsonValue));
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* The data source that is bound to the composition: `url` and `refreshSeconds`. The answer\'s `data` is `null` when none is bound, and also when what is stored does not pass the rule for a public https address (a binding written by another path, such as the general embed-settings update, is never shown to a page unless it passes the same checks as this route).
|
|
835
|
+
* Read the composition data source binding
|
|
836
|
+
*/
|
|
837
|
+
async getCompositionDataSource(requestParameters, initOverrides) {
|
|
838
|
+
const response = await this.getCompositionDataSourceRaw(requestParameters, initOverrides);
|
|
839
|
+
return await response.value();
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Retrieves a specific record from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
843
|
+
* Get Record From Composition Database
|
|
844
|
+
*/
|
|
845
|
+
async getCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
|
|
846
|
+
if (requestParameters['id'] == null) {
|
|
847
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDatabaseRecord().');
|
|
848
|
+
}
|
|
849
|
+
if (requestParameters['table'] == null) {
|
|
850
|
+
throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling getCompositionDatabaseRecord().');
|
|
851
|
+
}
|
|
852
|
+
if (requestParameters['recordId'] == null) {
|
|
853
|
+
throw new runtime.RequiredError('recordId', 'Required parameter "recordId" was null or undefined when calling getCompositionDatabaseRecord().');
|
|
854
|
+
}
|
|
855
|
+
const queryParameters = {};
|
|
856
|
+
const headerParameters = {};
|
|
857
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
858
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
859
|
+
}
|
|
860
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
861
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
862
|
+
}
|
|
863
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
864
|
+
const token = this.configuration.accessToken;
|
|
865
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
866
|
+
if (tokenString) {
|
|
867
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
const response = await this.request({
|
|
871
|
+
path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
872
|
+
method: 'GET',
|
|
873
|
+
headers: headerParameters,
|
|
874
|
+
query: queryParameters,
|
|
875
|
+
}, initOverrides);
|
|
876
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Retrieves a specific record from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
880
|
+
* Get Record From Composition Database
|
|
881
|
+
*/
|
|
882
|
+
async getCompositionDatabaseRecord(requestParameters, initOverrides) {
|
|
883
|
+
const response = await this.getCompositionDatabaseRecordRaw(requestParameters, initOverrides);
|
|
884
|
+
return await response.value();
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Retrieves all records from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
888
|
+
* Get All Records From Composition Database Table
|
|
889
|
+
*/
|
|
890
|
+
async getCompositionDatabaseRecordsRaw(requestParameters, initOverrides) {
|
|
891
|
+
if (requestParameters['id'] == null) {
|
|
892
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDatabaseRecords().');
|
|
893
|
+
}
|
|
894
|
+
if (requestParameters['table'] == null) {
|
|
895
|
+
throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling getCompositionDatabaseRecords().');
|
|
896
|
+
}
|
|
897
|
+
const queryParameters = {};
|
|
898
|
+
const headerParameters = {};
|
|
899
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
900
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
901
|
+
}
|
|
902
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
903
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
904
|
+
}
|
|
905
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
906
|
+
const token = this.configuration.accessToken;
|
|
907
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
908
|
+
if (tokenString) {
|
|
909
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
const response = await this.request({
|
|
913
|
+
path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
914
|
+
method: 'GET',
|
|
915
|
+
headers: headerParameters,
|
|
916
|
+
query: queryParameters,
|
|
917
|
+
}, initOverrides);
|
|
918
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDatabaseRecords200ResponseFromJSON(jsonValue));
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Retrieves all records from one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
922
|
+
* Get All Records From Composition Database Table
|
|
923
|
+
*/
|
|
924
|
+
async getCompositionDatabaseRecords(requestParameters, initOverrides) {
|
|
925
|
+
const response = await this.getCompositionDatabaseRecordsRaw(requestParameters, initOverrides);
|
|
926
|
+
return await response.value();
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Retrieves the design schema for a composition based on its widget type
|
|
930
|
+
* Get Design Schema
|
|
931
|
+
*/
|
|
932
|
+
async getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
|
|
933
|
+
if (requestParameters['id'] == null) {
|
|
934
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
|
|
935
|
+
}
|
|
936
|
+
const queryParameters = {};
|
|
937
|
+
const headerParameters = {};
|
|
938
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
939
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
940
|
+
}
|
|
941
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
942
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
943
|
+
}
|
|
944
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
945
|
+
const token = this.configuration.accessToken;
|
|
946
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
947
|
+
if (tokenString) {
|
|
948
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
const response = await this.request({
|
|
952
|
+
path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
953
|
+
method: 'GET',
|
|
954
|
+
headers: headerParameters,
|
|
955
|
+
query: queryParameters,
|
|
956
|
+
}, initOverrides);
|
|
957
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignSchemaResponseFromJSON(jsonValue));
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Retrieves the design schema for a composition based on its widget type
|
|
961
|
+
* Get Design Schema
|
|
962
|
+
*/
|
|
963
|
+
async getCompositionDesignSchema(requestParameters, initOverrides) {
|
|
964
|
+
const response = await this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
|
|
965
|
+
return await response.value();
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* Retrieves only the design field from a composition.
|
|
969
|
+
* Get Composition Design
|
|
970
|
+
*/
|
|
971
|
+
async getCompositionDesignRaw(requestParameters, initOverrides) {
|
|
972
|
+
if (requestParameters['id'] == null) {
|
|
973
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
|
|
974
|
+
}
|
|
975
|
+
const queryParameters = {};
|
|
976
|
+
const headerParameters = {};
|
|
977
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
978
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
979
|
+
}
|
|
980
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
981
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
982
|
+
}
|
|
983
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
984
|
+
const token = this.configuration.accessToken;
|
|
985
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
986
|
+
if (tokenString) {
|
|
987
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
const response = await this.request({
|
|
991
|
+
path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
992
|
+
method: 'GET',
|
|
993
|
+
headers: headerParameters,
|
|
994
|
+
query: queryParameters,
|
|
995
|
+
}, initOverrides);
|
|
996
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignResponseFromJSON(jsonValue));
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Retrieves only the design field from a composition.
|
|
1000
|
+
* Get Composition Design
|
|
1001
|
+
*/
|
|
1002
|
+
async getCompositionDesign(requestParameters, initOverrides) {
|
|
1003
|
+
const response = await this.getCompositionDesignRaw(requestParameters, initOverrides);
|
|
1004
|
+
return await response.value();
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Retrieves the definition of the composition\'s Embed tab: which settings exist, what each one holds, what it defaults to, and when its control is shown. It is the third tab beside `schema/content` and `schema/design`, in the same format (`componentGroups` → `components` → `propertyGroups` → `properties`, each property with a `type`, a `defaultValue` and an `inputController`), so a client that draws those two tabs draws this one with the same code. The schema is the same for every composition (it is the one Widgetic\'s own Embed Editor draws). The composition id decides who may ask: the caller must be able to read the composition. Reading and saving the values: - `GET /compositions/{id}/embed-settings` returns what the composition saved. A composition whose Embed tab was never saved has nothing to return; seed the form from `defaults`, which holds the `defaultValue` of every setting that declares one. - `PUT /compositions/{id}` with `embedSettings` saves them. The gateway stores `embedSettings` as given and does not check it against this schema; the schema is how a client knows what to put there. A property\'s `visibilityCondition` says when its control is shown: `condition` is a comparison of the current values of the properties named in `dependsOn` (`useIframe === false`, `embedTarget === \'mixed\' && keepDimensions === false`). While it is false the Embed Editor does not show the control. A colour picker with `showOpacityControls` saves its opacity next to the colour, under the key `<name>_opacity` as a number from 0 to 1 (`overlayBackgroundColor` → `overlayBackgroundColor_opacity`). Its `defaultTransparency` is a percentage and the saved value a fraction (50 → 0.5).
|
|
1008
|
+
* Get Embed Schema
|
|
1009
|
+
*/
|
|
1010
|
+
async getCompositionEmbedSchemaRaw(requestParameters, initOverrides) {
|
|
1011
|
+
if (requestParameters['id'] == null) {
|
|
1012
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionEmbedSchema().');
|
|
1013
|
+
}
|
|
1014
|
+
const queryParameters = {};
|
|
1015
|
+
const headerParameters = {};
|
|
1016
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1017
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1018
|
+
}
|
|
1019
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1020
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1021
|
+
}
|
|
1022
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1023
|
+
const token = this.configuration.accessToken;
|
|
1024
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1025
|
+
if (tokenString) {
|
|
1026
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
const response = await this.request({
|
|
1030
|
+
path: `/compositions/{id}/schema/embed`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1031
|
+
method: 'GET',
|
|
1032
|
+
headers: headerParameters,
|
|
1033
|
+
query: queryParameters,
|
|
1034
|
+
}, initOverrides);
|
|
1035
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionEmbedSchemaResponseFromJSON(jsonValue));
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Retrieves the definition of the composition\'s Embed tab: which settings exist, what each one holds, what it defaults to, and when its control is shown. It is the third tab beside `schema/content` and `schema/design`, in the same format (`componentGroups` → `components` → `propertyGroups` → `properties`, each property with a `type`, a `defaultValue` and an `inputController`), so a client that draws those two tabs draws this one with the same code. The schema is the same for every composition (it is the one Widgetic\'s own Embed Editor draws). The composition id decides who may ask: the caller must be able to read the composition. Reading and saving the values: - `GET /compositions/{id}/embed-settings` returns what the composition saved. A composition whose Embed tab was never saved has nothing to return; seed the form from `defaults`, which holds the `defaultValue` of every setting that declares one. - `PUT /compositions/{id}` with `embedSettings` saves them. The gateway stores `embedSettings` as given and does not check it against this schema; the schema is how a client knows what to put there. A property\'s `visibilityCondition` says when its control is shown: `condition` is a comparison of the current values of the properties named in `dependsOn` (`useIframe === false`, `embedTarget === \'mixed\' && keepDimensions === false`). While it is false the Embed Editor does not show the control. A colour picker with `showOpacityControls` saves its opacity next to the colour, under the key `<name>_opacity` as a number from 0 to 1 (`overlayBackgroundColor` → `overlayBackgroundColor_opacity`). Its `defaultTransparency` is a percentage and the saved value a fraction (50 → 0.5).
|
|
1039
|
+
* Get Embed Schema
|
|
1040
|
+
*/
|
|
1041
|
+
async getCompositionEmbedSchema(requestParameters, initOverrides) {
|
|
1042
|
+
const response = await this.getCompositionEmbedSchemaRaw(requestParameters, initOverrides);
|
|
1043
|
+
return await response.value();
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Retrieves only the embedSettings field from a composition.
|
|
1047
|
+
* Get Composition Embed Settings
|
|
1048
|
+
*/
|
|
1049
|
+
async getCompositionEmbedSettingsRaw(requestParameters, initOverrides) {
|
|
1050
|
+
if (requestParameters['id'] == null) {
|
|
1051
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionEmbedSettings().');
|
|
1052
|
+
}
|
|
1053
|
+
const queryParameters = {};
|
|
1054
|
+
const headerParameters = {};
|
|
1055
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1056
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1057
|
+
}
|
|
1058
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1059
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1060
|
+
}
|
|
1061
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1062
|
+
const token = this.configuration.accessToken;
|
|
1063
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1064
|
+
if (tokenString) {
|
|
1065
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
const response = await this.request({
|
|
1069
|
+
path: `/compositions/{id}/embed-settings`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1070
|
+
method: 'GET',
|
|
1071
|
+
headers: headerParameters,
|
|
1072
|
+
query: queryParameters,
|
|
1073
|
+
}, initOverrides);
|
|
1074
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionEmbedSettingsResponseFromJSON(jsonValue));
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Retrieves only the embedSettings field from a composition.
|
|
1078
|
+
* Get Composition Embed Settings
|
|
1079
|
+
*/
|
|
1080
|
+
async getCompositionEmbedSettings(requestParameters, initOverrides) {
|
|
1081
|
+
const response = await this.getCompositionEmbedSettingsRaw(requestParameters, initOverrides);
|
|
1082
|
+
return await response.value();
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Returns the address of the page an editor shows the composition in: the page of the widget\'s published version on the CDN, with the widget and version it is. Load it in a frame, then send the frame what to show (the content, design and embed settings you read from the composition, and every change the user makes) with `postMessage`: `{ type: \'widgetic:update\', design }`, `{ type: \'widgetic:update\', content }` or `{ type: \'widgetic:update\', contentItems }`. The version is the one embeds show, so the editor previews what a visitor gets. The address does not carry the composition id: an embed uses the id to fetch the saved composition itself, while an editor sends the current state (unsaved changes included). A widget that has never been published has no page to show: the answer is 409 `WIDGET_NOT_PUBLISHED`.
|
|
1086
|
+
* Get Composition Preview
|
|
1087
|
+
*/
|
|
1088
|
+
async getCompositionPreviewRaw(requestParameters, initOverrides) {
|
|
1089
|
+
if (requestParameters['id'] == null) {
|
|
1090
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionPreview().');
|
|
1091
|
+
}
|
|
1092
|
+
const queryParameters = {};
|
|
1093
|
+
const headerParameters = {};
|
|
1094
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1095
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1096
|
+
}
|
|
1097
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1098
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1099
|
+
}
|
|
1100
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1101
|
+
const token = this.configuration.accessToken;
|
|
1102
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1103
|
+
if (tokenString) {
|
|
1104
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
const response = await this.request({
|
|
1108
|
+
path: `/compositions/{id}/preview`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1109
|
+
method: 'GET',
|
|
1110
|
+
headers: headerParameters,
|
|
1111
|
+
query: queryParameters,
|
|
1112
|
+
}, initOverrides);
|
|
1113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionPreviewResponseFromJSON(jsonValue));
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Returns the address of the page an editor shows the composition in: the page of the widget\'s published version on the CDN, with the widget and version it is. Load it in a frame, then send the frame what to show (the content, design and embed settings you read from the composition, and every change the user makes) with `postMessage`: `{ type: \'widgetic:update\', design }`, `{ type: \'widgetic:update\', content }` or `{ type: \'widgetic:update\', contentItems }`. The version is the one embeds show, so the editor previews what a visitor gets. The address does not carry the composition id: an embed uses the id to fetch the saved composition itself, while an editor sends the current state (unsaved changes included). A widget that has never been published has no page to show: the answer is 409 `WIDGET_NOT_PUBLISHED`.
|
|
1117
|
+
* Get Composition Preview
|
|
1118
|
+
*/
|
|
1119
|
+
async getCompositionPreview(requestParameters, initOverrides) {
|
|
1120
|
+
const response = await this.getCompositionPreviewRaw(requestParameters, initOverrides);
|
|
1121
|
+
return await response.value();
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* Retrieves version history for a specific composition.
|
|
1125
|
+
* Get Composition Versions
|
|
1126
|
+
*/
|
|
1127
|
+
async getCompositionVersionsRaw(requestParameters, initOverrides) {
|
|
1128
|
+
if (requestParameters['id'] == null) {
|
|
1129
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionVersions().');
|
|
1130
|
+
}
|
|
1131
|
+
const queryParameters = {};
|
|
1132
|
+
const headerParameters = {};
|
|
1133
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1134
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1135
|
+
}
|
|
1136
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1137
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1138
|
+
}
|
|
1139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1140
|
+
const token = this.configuration.accessToken;
|
|
1141
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1142
|
+
if (tokenString) {
|
|
1143
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
const response = await this.request({
|
|
1147
|
+
path: `/compositions/{id}/versions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1148
|
+
method: 'GET',
|
|
1149
|
+
headers: headerParameters,
|
|
1150
|
+
query: queryParameters,
|
|
1151
|
+
}, initOverrides);
|
|
1152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionVersions200ResponseFromJSON(jsonValue));
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Retrieves version history for a specific composition.
|
|
1156
|
+
* Get Composition Versions
|
|
1157
|
+
*/
|
|
1158
|
+
async getCompositionVersions(requestParameters, initOverrides) {
|
|
1159
|
+
const response = await this.getCompositionVersionsRaw(requestParameters, initOverrides);
|
|
1160
|
+
return await response.value();
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
|
|
1164
|
+
* Get Compositions Batch
|
|
1165
|
+
*/
|
|
1166
|
+
async getCompositionsBatchRaw(requestParameters, initOverrides) {
|
|
1167
|
+
if (requestParameters['getCompositionsBatchRequest'] == null) {
|
|
1168
|
+
throw new runtime.RequiredError('getCompositionsBatchRequest', 'Required parameter "getCompositionsBatchRequest" was null or undefined when calling getCompositionsBatch().');
|
|
1169
|
+
}
|
|
1170
|
+
const queryParameters = {};
|
|
1171
|
+
const headerParameters = {};
|
|
1172
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1174
|
+
const token = this.configuration.accessToken;
|
|
1175
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1176
|
+
if (tokenString) {
|
|
1177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
const response = await this.request({
|
|
1181
|
+
path: `/compositions/batch`,
|
|
1182
|
+
method: 'POST',
|
|
1183
|
+
headers: headerParameters,
|
|
1184
|
+
query: queryParameters,
|
|
1185
|
+
body: GetCompositionsBatchRequestToJSON(requestParameters['getCompositionsBatchRequest']),
|
|
1186
|
+
}, initOverrides);
|
|
1187
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionsBatchResponseFromJSON(jsonValue));
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
|
|
1191
|
+
* Get Compositions Batch
|
|
1192
|
+
*/
|
|
1193
|
+
async getCompositionsBatch(requestParameters, initOverrides) {
|
|
1194
|
+
const response = await this.getCompositionsBatchRaw(requestParameters, initOverrides);
|
|
1195
|
+
return await response.value();
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* Update a content list item
|
|
1199
|
+
*/
|
|
1200
|
+
async patchCompositionContentItemRaw(requestParameters, initOverrides) {
|
|
1201
|
+
if (requestParameters['id'] == null) {
|
|
1202
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling patchCompositionContentItem().');
|
|
1203
|
+
}
|
|
1204
|
+
if (requestParameters['list'] == null) {
|
|
1205
|
+
throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling patchCompositionContentItem().');
|
|
1206
|
+
}
|
|
1207
|
+
if (requestParameters['itemId'] == null) {
|
|
1208
|
+
throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling patchCompositionContentItem().');
|
|
1209
|
+
}
|
|
1210
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
1211
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling patchCompositionContentItem().');
|
|
1212
|
+
}
|
|
1213
|
+
if (requestParameters['requestBody'] == null) {
|
|
1214
|
+
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling patchCompositionContentItem().');
|
|
1215
|
+
}
|
|
1216
|
+
const queryParameters = {};
|
|
1217
|
+
const headerParameters = {};
|
|
1218
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1219
|
+
if (requestParameters['ifMatch'] != null) {
|
|
1220
|
+
headerParameters['If-Match'] = String(requestParameters['ifMatch']);
|
|
1221
|
+
}
|
|
1222
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1223
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1224
|
+
}
|
|
1225
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1226
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1227
|
+
}
|
|
1228
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1229
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1230
|
+
}
|
|
1231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1232
|
+
const token = this.configuration.accessToken;
|
|
1233
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1234
|
+
if (tokenString) {
|
|
1235
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
const response = await this.request({
|
|
1239
|
+
path: `/compositions/{id}/content/{list}/items/{itemId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"list"}}`, encodeURIComponent(String(requestParameters['list']))).replace(`{${"itemId"}}`, encodeURIComponent(String(requestParameters['itemId']))),
|
|
1240
|
+
method: 'PATCH',
|
|
1241
|
+
headers: headerParameters,
|
|
1242
|
+
query: queryParameters,
|
|
1243
|
+
body: requestParameters['requestBody'],
|
|
1244
|
+
}, initOverrides);
|
|
1245
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionContentItem201ResponseFromJSON(jsonValue));
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Update a content list item
|
|
1249
|
+
*/
|
|
1250
|
+
async patchCompositionContentItem(requestParameters, initOverrides) {
|
|
1251
|
+
const response = await this.patchCompositionContentItemRaw(requestParameters, initOverrides);
|
|
1252
|
+
return await response.value();
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* 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.
|
|
1256
|
+
* Read the Entries of a Composition\'s Table
|
|
1257
|
+
*/
|
|
1258
|
+
async readCompositionEntriesRaw(requestParameters, initOverrides) {
|
|
1259
|
+
if (requestParameters['id'] == null) {
|
|
1260
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling readCompositionEntries().');
|
|
1261
|
+
}
|
|
1262
|
+
if (requestParameters['table'] == null) {
|
|
1263
|
+
throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling readCompositionEntries().');
|
|
1264
|
+
}
|
|
1265
|
+
const queryParameters = {};
|
|
1266
|
+
if (requestParameters['groupBy'] != null) {
|
|
1267
|
+
queryParameters['groupBy'] = requestParameters['groupBy'];
|
|
1268
|
+
}
|
|
1269
|
+
if (requestParameters['rows'] != null) {
|
|
1270
|
+
queryParameters['rows'] = requestParameters['rows'];
|
|
1271
|
+
}
|
|
1272
|
+
if (requestParameters['aggregate'] != null) {
|
|
1273
|
+
queryParameters['aggregate'] = requestParameters['aggregate'];
|
|
1274
|
+
}
|
|
1275
|
+
if (requestParameters['column'] != null) {
|
|
1276
|
+
queryParameters['column'] = requestParameters['column'];
|
|
1277
|
+
}
|
|
1278
|
+
if (requestParameters['since'] != null) {
|
|
1279
|
+
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
1280
|
+
}
|
|
1281
|
+
if (requestParameters['until'] != null) {
|
|
1282
|
+
queryParameters['until'] = requestParameters['until'].toISOString();
|
|
1283
|
+
}
|
|
1284
|
+
if (requestParameters['context'] != null) {
|
|
1285
|
+
queryParameters['context'] = requestParameters['context'];
|
|
1286
|
+
}
|
|
1287
|
+
if (requestParameters['filter'] != null) {
|
|
1288
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1289
|
+
}
|
|
1290
|
+
const headerParameters = {};
|
|
1291
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1292
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1293
|
+
}
|
|
1294
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1295
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1296
|
+
}
|
|
1297
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1298
|
+
const token = this.configuration.accessToken;
|
|
1299
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1300
|
+
if (tokenString) {
|
|
1301
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
const response = await this.request({
|
|
1305
|
+
path: `/compositions/{id}/entries/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
1306
|
+
method: 'GET',
|
|
1307
|
+
headers: headerParameters,
|
|
1308
|
+
query: queryParameters,
|
|
1309
|
+
}, initOverrides);
|
|
1310
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CompositionEntriesReadingResponseFromJSON(jsonValue));
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* 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.
|
|
1314
|
+
* Read the Entries of a Composition\'s Table
|
|
1315
|
+
*/
|
|
1316
|
+
async readCompositionEntries(requestParameters, initOverrides) {
|
|
1317
|
+
const response = await this.readCompositionEntriesRaw(requestParameters, initOverrides);
|
|
1318
|
+
return await response.value();
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* Removes one document and its passages: the widget\'s AI stops answering from it at once. Take the `documentId` from `getAiAnswersKnowledge`. The caller must be allowed to change the widget. An API key needs the `content:write` scope.
|
|
1322
|
+
* Remove a document from a widget\'s knowledge base
|
|
1323
|
+
*/
|
|
1324
|
+
async removeAiAnswersKnowledgeDocumentRaw(requestParameters, initOverrides) {
|
|
1325
|
+
if (requestParameters['id'] == null) {
|
|
1326
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeAiAnswersKnowledgeDocument().');
|
|
1327
|
+
}
|
|
1328
|
+
if (requestParameters['documentId'] == null) {
|
|
1329
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling removeAiAnswersKnowledgeDocument().');
|
|
1330
|
+
}
|
|
1331
|
+
const queryParameters = {};
|
|
1332
|
+
const headerParameters = {};
|
|
1333
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1334
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1335
|
+
}
|
|
1336
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1337
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1338
|
+
}
|
|
1339
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1340
|
+
const token = this.configuration.accessToken;
|
|
1341
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1342
|
+
if (tokenString) {
|
|
1343
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
const response = await this.request({
|
|
1347
|
+
path: `/compositions/{id}/adapters/ai-answers/knowledge/documents/{documentId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
|
|
1348
|
+
method: 'DELETE',
|
|
1349
|
+
headers: headerParameters,
|
|
1350
|
+
query: queryParameters,
|
|
1351
|
+
}, initOverrides);
|
|
1352
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RemoveAiAnswersKnowledgeDocument200ResponseFromJSON(jsonValue));
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Removes one document and its passages: the widget\'s AI stops answering from it at once. Take the `documentId` from `getAiAnswersKnowledge`. The caller must be allowed to change the widget. An API key needs the `content:write` scope.
|
|
1356
|
+
* Remove a document from a widget\'s knowledge base
|
|
1357
|
+
*/
|
|
1358
|
+
async removeAiAnswersKnowledgeDocument(requestParameters, initOverrides) {
|
|
1359
|
+
const response = await this.removeAiAnswersKnowledgeDocumentRaw(requestParameters, initOverrides);
|
|
1360
|
+
return await response.value();
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Stores an https URL the widget runtime may read on load and every `refreshSeconds`. The URL must name a public host (no loopback, link-local or metadata addresses). A composition has one binding: saving another replaces it. The answer is the binding as it was saved (`url`, `refreshSeconds`).
|
|
1364
|
+
* Bind a public JSON data source for embed refresh
|
|
1365
|
+
*/
|
|
1366
|
+
async setCompositionDataSourceRaw(requestParameters, initOverrides) {
|
|
1367
|
+
if (requestParameters['id'] == null) {
|
|
1368
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setCompositionDataSource().');
|
|
1369
|
+
}
|
|
1370
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
1371
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling setCompositionDataSource().');
|
|
1372
|
+
}
|
|
1373
|
+
if (requestParameters['setCompositionDataSourceRequest'] == null) {
|
|
1374
|
+
throw new runtime.RequiredError('setCompositionDataSourceRequest', 'Required parameter "setCompositionDataSourceRequest" was null or undefined when calling setCompositionDataSource().');
|
|
1375
|
+
}
|
|
1376
|
+
const queryParameters = {};
|
|
1377
|
+
const headerParameters = {};
|
|
1378
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1379
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1380
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1381
|
+
}
|
|
1382
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1383
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1384
|
+
}
|
|
1385
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1386
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1387
|
+
}
|
|
1388
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1389
|
+
const token = this.configuration.accessToken;
|
|
1390
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1391
|
+
if (tokenString) {
|
|
1392
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
const response = await this.request({
|
|
1396
|
+
path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1397
|
+
method: 'PUT',
|
|
1398
|
+
headers: headerParameters,
|
|
1399
|
+
query: queryParameters,
|
|
1400
|
+
body: SetCompositionDataSourceRequestToJSON(requestParameters['setCompositionDataSourceRequest']),
|
|
1401
|
+
}, initOverrides);
|
|
1402
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CompositionDataSourceResponseFromJSON(jsonValue));
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Stores an https URL the widget runtime may read on load and every `refreshSeconds`. The URL must name a public host (no loopback, link-local or metadata addresses). A composition has one binding: saving another replaces it. The answer is the binding as it was saved (`url`, `refreshSeconds`).
|
|
1406
|
+
* Bind a public JSON data source for embed refresh
|
|
1407
|
+
*/
|
|
1408
|
+
async setCompositionDataSource(requestParameters, initOverrides) {
|
|
1409
|
+
const response = await this.setCompositionDataSourceRaw(requestParameters, initOverrides);
|
|
1410
|
+
return await response.value();
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
|
|
1414
|
+
* Set Dynamic Content
|
|
1415
|
+
*/
|
|
1416
|
+
async setDynamicContentRaw(requestParameters, initOverrides) {
|
|
1417
|
+
if (requestParameters['id'] == null) {
|
|
1418
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setDynamicContent().');
|
|
1419
|
+
}
|
|
1420
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
1421
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling setDynamicContent().');
|
|
1422
|
+
}
|
|
1423
|
+
if (requestParameters['setDynamicContentRequest'] == null) {
|
|
1424
|
+
throw new runtime.RequiredError('setDynamicContentRequest', 'Required parameter "setDynamicContentRequest" was null or undefined when calling setDynamicContent().');
|
|
1425
|
+
}
|
|
1426
|
+
const queryParameters = {};
|
|
1427
|
+
const headerParameters = {};
|
|
1428
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1429
|
+
if (requestParameters['ifMatch'] != null) {
|
|
1430
|
+
headerParameters['If-Match'] = String(requestParameters['ifMatch']);
|
|
1431
|
+
}
|
|
1432
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1433
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1434
|
+
}
|
|
1435
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1436
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1437
|
+
}
|
|
1438
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1439
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1440
|
+
}
|
|
1441
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1442
|
+
const token = this.configuration.accessToken;
|
|
1443
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1444
|
+
if (tokenString) {
|
|
1445
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
const response = await this.request({
|
|
1449
|
+
path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1450
|
+
method: 'PUT',
|
|
1451
|
+
headers: headerParameters,
|
|
1452
|
+
query: queryParameters,
|
|
1453
|
+
body: SetDynamicContentRequestToJSON(requestParameters['setDynamicContentRequest']),
|
|
1454
|
+
}, initOverrides);
|
|
1455
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SetDynamicContentResponseFromJSON(jsonValue));
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
|
|
1459
|
+
* Set Dynamic Content
|
|
1460
|
+
*/
|
|
1461
|
+
async setDynamicContent(requestParameters, initOverrides) {
|
|
1462
|
+
const response = await this.setDynamicContentRaw(requestParameters, initOverrides);
|
|
1463
|
+
return await response.value();
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Updates a specific record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
1467
|
+
* Update Record In Composition Database
|
|
1468
|
+
*/
|
|
1469
|
+
async updateCompositionDatabaseRecordRaw(requestParameters, initOverrides) {
|
|
1470
|
+
if (requestParameters['id'] == null) {
|
|
1471
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionDatabaseRecord().');
|
|
1472
|
+
}
|
|
1473
|
+
if (requestParameters['table'] == null) {
|
|
1474
|
+
throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling updateCompositionDatabaseRecord().');
|
|
1475
|
+
}
|
|
1476
|
+
if (requestParameters['recordId'] == null) {
|
|
1477
|
+
throw new runtime.RequiredError('recordId', 'Required parameter "recordId" was null or undefined when calling updateCompositionDatabaseRecord().');
|
|
1478
|
+
}
|
|
1479
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
1480
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionDatabaseRecord().');
|
|
1481
|
+
}
|
|
1482
|
+
if (requestParameters['body'] == null) {
|
|
1483
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateCompositionDatabaseRecord().');
|
|
1484
|
+
}
|
|
1485
|
+
const queryParameters = {};
|
|
1486
|
+
const headerParameters = {};
|
|
1487
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1488
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1489
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1490
|
+
}
|
|
1491
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1492
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1493
|
+
}
|
|
1494
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1495
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1496
|
+
}
|
|
1497
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1498
|
+
const token = this.configuration.accessToken;
|
|
1499
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1500
|
+
if (tokenString) {
|
|
1501
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
const response = await this.request({
|
|
1505
|
+
path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
1506
|
+
method: 'PUT',
|
|
1507
|
+
headers: headerParameters,
|
|
1508
|
+
query: queryParameters,
|
|
1509
|
+
body: requestParameters['body'],
|
|
1510
|
+
}, initOverrides);
|
|
1511
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionDatabaseRecord201ResponseFromJSON(jsonValue));
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Updates a specific record in one of the composition\'s tables. Only the composition\'s own tables (made from its `databaseSchema` or from the tables its widget declares) can be reached; any other table name answers `404`.
|
|
1515
|
+
* Update Record In Composition Database
|
|
1516
|
+
*/
|
|
1517
|
+
async updateCompositionDatabaseRecord(requestParameters, initOverrides) {
|
|
1518
|
+
const response = await this.updateCompositionDatabaseRecordRaw(requestParameters, initOverrides);
|
|
1519
|
+
return await response.value();
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
|
|
1523
|
+
* Update Composition Status
|
|
1524
|
+
*/
|
|
1525
|
+
async updateCompositionStatusRaw(requestParameters, initOverrides) {
|
|
1526
|
+
if (requestParameters['id'] == null) {
|
|
1527
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateCompositionStatus().');
|
|
1528
|
+
}
|
|
1529
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
1530
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateCompositionStatus().');
|
|
1531
|
+
}
|
|
1532
|
+
if (requestParameters['updateCompositionStatusRequest'] == null) {
|
|
1533
|
+
throw new runtime.RequiredError('updateCompositionStatusRequest', 'Required parameter "updateCompositionStatusRequest" was null or undefined when calling updateCompositionStatus().');
|
|
1534
|
+
}
|
|
1535
|
+
const queryParameters = {};
|
|
1536
|
+
const headerParameters = {};
|
|
1537
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1538
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1539
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1540
|
+
}
|
|
1541
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1542
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1543
|
+
}
|
|
1544
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1545
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1546
|
+
}
|
|
1547
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1548
|
+
const token = this.configuration.accessToken;
|
|
1549
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1550
|
+
if (tokenString) {
|
|
1551
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
const response = await this.request({
|
|
1555
|
+
path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1556
|
+
method: 'PUT',
|
|
1557
|
+
headers: headerParameters,
|
|
1558
|
+
query: queryParameters,
|
|
1559
|
+
body: UpdateCompositionStatusRequestToJSON(requestParameters['updateCompositionStatusRequest']),
|
|
1560
|
+
}, initOverrides);
|
|
1561
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CompositionResponseFromJSON(jsonValue));
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Updates the status of a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry.
|
|
1565
|
+
* Update Composition Status
|
|
1566
|
+
*/
|
|
1567
|
+
async updateCompositionStatus(requestParameters, initOverrides) {
|
|
1568
|
+
const response = await this.updateCompositionStatusRaw(requestParameters, initOverrides);
|
|
1569
|
+
return await response.value();
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
|
|
1573
|
+
* Update Composition
|
|
1574
|
+
*/
|
|
1575
|
+
async updateCompositionRaw(requestParameters, initOverrides) {
|
|
1576
|
+
if (requestParameters['id'] == null) {
|
|
1577
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
|
|
1578
|
+
}
|
|
1579
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
1580
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling updateComposition().');
|
|
1581
|
+
}
|
|
1582
|
+
if (requestParameters['updateComposition'] == null) {
|
|
1583
|
+
throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
|
|
1584
|
+
}
|
|
1585
|
+
const queryParameters = {};
|
|
1586
|
+
const headerParameters = {};
|
|
1587
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1588
|
+
if (requestParameters['ifMatch'] != null) {
|
|
1589
|
+
headerParameters['If-Match'] = String(requestParameters['ifMatch']);
|
|
1590
|
+
}
|
|
1591
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1592
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1593
|
+
}
|
|
1594
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1595
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1596
|
+
}
|
|
1597
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1598
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1599
|
+
}
|
|
1600
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1601
|
+
const token = this.configuration.accessToken;
|
|
1602
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1603
|
+
if (tokenString) {
|
|
1604
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
const response = await this.request({
|
|
1608
|
+
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1609
|
+
method: 'PUT',
|
|
1610
|
+
headers: headerParameters,
|
|
1611
|
+
query: queryParameters,
|
|
1612
|
+
body: UpdateCompositionToJSON(requestParameters['updateComposition']),
|
|
1613
|
+
}, initOverrides);
|
|
1614
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Send `databaseSchema` to add tables to the composition: the tables that are missing are made, and the ones that exist are left as they are. A `databaseSchema` that cannot be used is refused before anything is saved, with `400` and `INVALID_DATABASE_SCHEMA`. If the composition is saved but its tables cannot be made just now, the answer is still `200` and `meta.warnings` says so. **When several people edit the same composition.** A save that carries `content` can name the content version it started from in the `If-Match` header (the `contentVersion` of the composition you read, or the `ETag` of an earlier answer). If somebody saved the content since, nothing is overwritten: the save is refused with `412` and `CONTENT_VERSION_MISMATCH`, and `error.details.currentVersion` is the version to start again from. For a composition a team shares, `error.details` also says who got there first: `lastEditedBy` (`{ id, name }`, or `null` when nobody can be named) and `lastEditedAt`. An editor session, or a call made for one managed user, is told the version only. A save without `If-Match` still goes through, and the other person\'s change is replaced, as it always was.
|
|
1618
|
+
* Update Composition
|
|
1619
|
+
*/
|
|
1620
|
+
async updateComposition(requestParameters, initOverrides) {
|
|
1621
|
+
const response = await this.updateCompositionRaw(requestParameters, initOverrides);
|
|
1622
|
+
return await response.value();
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* Checks content against the composition\'s widget schema without saving it. Send what a content update (`PUT /compositions/{id}/content`) would store, `{ \"design\": {...}, \"content\": {...} }`, or the widget\'s values alone. Each value is checked by the kind of field the widget declares for it: text, a number within the limits of its slider, true or false, one of the choices of a dropdown, a color, a font, the address of an image, a date. The items of the widget\'s list are checked the same way, and their number against the limits of the list. A value that cannot be what the field holds, or a number outside its range, is an error and `valid` is false. Text longer than the field takes, a number or true/false sent as text, and a name the widget has no field for are warnings, and `valid` stays true. The design is not checked here. Nothing is saved and nothing in the body is changed.
|
|
1626
|
+
* Validate Content
|
|
1627
|
+
*/
|
|
1628
|
+
async validateCompositionContentRaw(requestParameters, initOverrides) {
|
|
1629
|
+
if (requestParameters['id'] == null) {
|
|
1630
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling validateCompositionContent().');
|
|
1631
|
+
}
|
|
1632
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
1633
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling validateCompositionContent().');
|
|
1634
|
+
}
|
|
1635
|
+
if (requestParameters['requestBody'] == null) {
|
|
1636
|
+
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling validateCompositionContent().');
|
|
1637
|
+
}
|
|
1638
|
+
const queryParameters = {};
|
|
1639
|
+
const headerParameters = {};
|
|
1640
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1641
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1642
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1643
|
+
}
|
|
1644
|
+
if (requestParameters['xManagedUserId'] != null) {
|
|
1645
|
+
headerParameters['X-Managed-User-Id'] = String(requestParameters['xManagedUserId']);
|
|
1646
|
+
}
|
|
1647
|
+
if (requestParameters['xManagedUserExternalId'] != null) {
|
|
1648
|
+
headerParameters['X-Managed-User-External-Id'] = String(requestParameters['xManagedUserExternalId']);
|
|
1649
|
+
}
|
|
1650
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1651
|
+
const token = this.configuration.accessToken;
|
|
1652
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
1653
|
+
if (tokenString) {
|
|
1654
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
const response = await this.request({
|
|
1658
|
+
path: `/compositions/{id}/content/validate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1659
|
+
method: 'POST',
|
|
1660
|
+
headers: headerParameters,
|
|
1661
|
+
query: queryParameters,
|
|
1662
|
+
body: requestParameters['requestBody'],
|
|
1663
|
+
}, initOverrides);
|
|
1664
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ValidateCompositionContentResponseFromJSON(jsonValue));
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Checks content against the composition\'s widget schema without saving it. Send what a content update (`PUT /compositions/{id}/content`) would store, `{ \"design\": {...}, \"content\": {...} }`, or the widget\'s values alone. Each value is checked by the kind of field the widget declares for it: text, a number within the limits of its slider, true or false, one of the choices of a dropdown, a color, a font, the address of an image, a date. The items of the widget\'s list are checked the same way, and their number against the limits of the list. A value that cannot be what the field holds, or a number outside its range, is an error and `valid` is false. Text longer than the field takes, a number or true/false sent as text, and a name the widget has no field for are warnings, and `valid` stays true. The design is not checked here. Nothing is saved and nothing in the body is changed.
|
|
1668
|
+
* Validate Content
|
|
1669
|
+
*/
|
|
1670
|
+
async validateCompositionContent(requestParameters, initOverrides) {
|
|
1671
|
+
const response = await this.validateCompositionContentRaw(requestParameters, initOverrides);
|
|
1672
|
+
return await response.value();
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* @export
|
|
1677
|
+
*/
|
|
1678
|
+
export const GetAllCompositions0WorkspaceEnum = {
|
|
1679
|
+
True: 'true',
|
|
1680
|
+
False: 'false'
|
|
1681
|
+
};
|
|
1682
|
+
/**
|
|
1683
|
+
* @export
|
|
1684
|
+
*/
|
|
1685
|
+
export const GetAllCompositions0StatusEnum = {
|
|
1686
|
+
Draft: 'draft',
|
|
1687
|
+
Published: 'published',
|
|
1688
|
+
Archived: 'archived'
|
|
1689
|
+
};
|