@widgetic/api-sdk-ts 0.0.0-stage → 1.11.64
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 +619 -0
- package/dist/apis/CompositionsApi.js +1659 -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 +2114 -0
- package/dist/apis/PartnerApi.js +5475 -0
- package/dist/apis/PartnersApi.d.ts +542 -0
- package/dist/apis/PartnersApi.js +1450 -0
- package/dist/apis/PublicEmbedApi.d.ts +104 -0
- package/dist/apis/PublicEmbedApi.js +250 -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 +190 -0
- package/dist/apis/UsersApi.js +514 -0
- package/dist/apis/WidgetsApi.d.ts +77 -0
- package/dist/apis/WidgetsApi.js +222 -0
- package/dist/apis/index.d.ts +14 -0
- package/dist/apis/index.js +32 -0
- package/dist/esm/apis/CanvasesApi.js +216 -0
- package/dist/esm/apis/CompositionsApi.js +1622 -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 +5438 -0
- package/dist/esm/apis/PartnersApi.js +1413 -0
- package/dist/esm/apis/PublicEmbedApi.js +213 -0
- package/dist/esm/apis/TokensApi.js +51 -0
- package/dist/esm/apis/UploadsApi.js +248 -0
- package/dist/esm/apis/UsersApi.js +477 -0
- package/dist/esm/apis/WidgetsApi.js +185 -0
- package/dist/esm/apis/index.js +16 -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 +75 -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 +93 -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/CompositionResponse.js +51 -0
- package/dist/esm/models/CompositionVersion.js +49 -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 +92 -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/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 +79 -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 +71 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -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/ListPartnerPresets200Response.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 +57 -0
- package/dist/esm/models/NewManagedUser.js +47 -0
- package/dist/esm/models/NewWidget.js +74 -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 +57 -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/PurposeStorageBucket.js +47 -0
- package/dist/esm/models/RemoveAiAnswersKnowledgeDocument200Response.js +51 -0
- package/dist/esm/models/RemoveUserAdapterConnection200Response.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/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/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 +90 -0
- package/dist/esm/models/index.js +268 -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 +77 -0
- package/dist/models/AdapterConnection.js +83 -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 +131 -0
- package/dist/models/Composition.js +101 -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/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/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 +174 -0
- package/dist/models/CreateWidget201ResponseData.js +100 -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/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 +91 -0
- package/dist/models/EditorSession.js +87 -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 +120 -0
- package/dist/models/GetPublicCompositionEmbed200Response.js +78 -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/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/ListPartnerPresets200Response.d.ts +46 -0
- package/dist/models/ListPartnerPresets200Response.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 +122 -0
- package/dist/models/NewComposition.js +72 -0
- package/dist/models/NewEditorSession.d.ts +62 -0
- package/dist/models/NewEditorSession.js +65 -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/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 +39 -0
- package/dist/models/PartnerNotificationEventType.js +65 -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/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/RemoveUserAdapterConnection200Response.d.ts +46 -0
- package/dist/models/RemoveUserAdapterConnection200Response.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/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/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 +80 -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 +168 -0
- package/dist/models/Widget.js +98 -0
- package/dist/models/index.d.ts +266 -0
- package/dist/models/index.js +284 -0
- package/dist/runtime.d.ts +238 -0
- package/dist/runtime.js +534 -0
- package/package.json +42 -4
|
@@ -0,0 +1,213 @@
|
|
|
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 { GetPublicCompositionEmbed200ResponseFromJSON, PostPublicCompositionEmbedStatus200ResponseFromJSON, PostPublicCompositionEmbedStatusRequestToJSON, PublicAdapterCallRequestToJSON, PublicAdapterCallResultFromJSON, PublicAdapterFileResultFromJSON, PublicCompositionEntryCreatedFromJSON, PublicCompositionEntryRequestToJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class PublicEmbedApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
|
|
22
|
+
* Call a gateway operation of an adapter a published widget uses
|
|
23
|
+
*/
|
|
24
|
+
async callPublicCompositionAdapterRaw(requestParameters, initOverrides) {
|
|
25
|
+
if (requestParameters['compositionId'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('compositionId', 'Required parameter "compositionId" was null or undefined when calling callPublicCompositionAdapter().');
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters['adapterId'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('adapterId', 'Required parameter "adapterId" was null or undefined when calling callPublicCompositionAdapter().');
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['operation'] == null) {
|
|
32
|
+
throw new runtime.RequiredError('operation', 'Required parameter "operation" was null or undefined when calling callPublicCompositionAdapter().');
|
|
33
|
+
}
|
|
34
|
+
if (requestParameters['publicAdapterCallRequest'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('publicAdapterCallRequest', 'Required parameter "publicAdapterCallRequest" was null or undefined when calling callPublicCompositionAdapter().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
const response = await this.request({
|
|
41
|
+
path: `/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))).replace(`{${"adapterId"}}`, encodeURIComponent(String(requestParameters['adapterId']))).replace(`{${"operation"}}`, encodeURIComponent(String(requestParameters['operation']))),
|
|
42
|
+
method: 'POST',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
body: PublicAdapterCallRequestToJSON(requestParameters['publicAdapterCallRequest']),
|
|
46
|
+
}, initOverrides);
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicAdapterCallResultFromJSON(jsonValue));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The door a widget\'s adapter module calls, from the visitor\'s browser, for the operations that cannot run in the browser: anything with a secret, a charge in credits or the owner\'s storage behind it. A widget that uses such an adapter is handed the address of this route as `adapters.url` in its `widgetic:host` message (see the host bridge contract) and calls `{adapters.url}/{adapterId}/{operation}`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/{adapterId}/{operation}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **What it serves.** Only an adapter, and a version of it, that the widget\'s LIVE manifest (what the version that is published uses) lists, and only an operation that runs on the gateway. Anything else is one 404 `ADAPTER_NOT_AVAILABLE`, whatever the reason, so the route is no way to ask what a widget contains. An adapter an administrator stopped offering to NEW widgets keeps serving the widgets that already use it. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). Page script cannot forge it. A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. When the partner of the owner signs the host context, a context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`. **Cost and retries.** An operation priced in credits is charged to the owner of the widget (for a customer a partner manages, to the partner\'s administrator, within the monthly credits set for that customer), once for each `requestId`, before it runs, and given back if it does not answer. A `requestId` that was charged and not given back is 409 `REQUEST_ALREADY_USED` and the operation is NOT run a second time; one whose charge was given back may be tried again with the same `requestId`. A visitor never sees an owner\'s balance: a feature that cannot be used because its owner has no credits left, because the customer\'s monthly credits are spent, or because an administrator stopped the adapter, is the same 503 `ADAPTER_UNAVAILABLE` as every other \"not right now\". The owner is told through a notice. **Limits.** In front of everything, 120 calls a minute for each visitor address and composition and 600 a minute for a composition (429 `RATE_LIMITED`). Then, for each operation of a widget, a rate for each visitor address a minute and a cap for the widget a day: 30 and 5000 for an operation that is free, 10 and 500 for one that costs credits, unless the adapter says otherwise (never above 120 and 100000). A visitor over the rate is 429 `RATE_LIMITED`; a widget over its cap is 429 `WIDGET_LIMIT_REACHED`. Both carry a `Retry-After` header. The body is at most 64 KiB (413 `PAYLOAD_TOO_LARGE`) and JSON (415 `UNSUPPORTED_MEDIA_TYPE`); an operation has 30 seconds to answer (504 `ADAPTER_TIMEOUT`, and the charge is given back).
|
|
51
|
+
* Call a gateway operation of an adapter a published widget uses
|
|
52
|
+
*/
|
|
53
|
+
async callPublicCompositionAdapter(requestParameters, initOverrides) {
|
|
54
|
+
const response = await this.callPublicCompositionAdapterRaw(requestParameters, initOverrides);
|
|
55
|
+
return await response.value();
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
|
|
59
|
+
* Append a visitor entry through the gateway
|
|
60
|
+
*/
|
|
61
|
+
async createPublicCompositionEntryRaw(requestParameters, initOverrides) {
|
|
62
|
+
if (requestParameters['compositionId'] == null) {
|
|
63
|
+
throw new runtime.RequiredError('compositionId', 'Required parameter "compositionId" was null or undefined when calling createPublicCompositionEntry().');
|
|
64
|
+
}
|
|
65
|
+
if (requestParameters['table'] == null) {
|
|
66
|
+
throw new runtime.RequiredError('table', 'Required parameter "table" was null or undefined when calling createPublicCompositionEntry().');
|
|
67
|
+
}
|
|
68
|
+
if (requestParameters['publicCompositionEntryRequest'] == null) {
|
|
69
|
+
throw new runtime.RequiredError('publicCompositionEntryRequest', 'Required parameter "publicCompositionEntryRequest" was null or undefined when calling createPublicCompositionEntry().');
|
|
70
|
+
}
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
const headerParameters = {};
|
|
73
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
+
if (requestParameters['xWidgeticWriteToken'] != null) {
|
|
75
|
+
headerParameters['X-Widgetic-Write-Token'] = String(requestParameters['xWidgeticWriteToken']);
|
|
76
|
+
}
|
|
77
|
+
const response = await this.request({
|
|
78
|
+
path: `/embed/compositions/{compositionId}/entries/{table}`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
79
|
+
method: 'POST',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
body: PublicCompositionEntryRequestToJSON(requestParameters['publicCompositionEntryRequest']),
|
|
83
|
+
}, initOverrides);
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicCompositionEntryCreatedFromJSON(jsonValue));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). When the request comes from the shared artifact origin, it must also carry the per-composition write token (`X-Widgetic-Write-Token` header or `writeToken` body field, handed to the widget in `widgetic:host` as `entries.writeToken` and returned as `entryWriteToken` on `getPublicCompositionEmbed`). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
|
|
88
|
+
* Append a visitor entry through the gateway
|
|
89
|
+
*/
|
|
90
|
+
async createPublicCompositionEntry(requestParameters, initOverrides) {
|
|
91
|
+
const response = await this.createPublicCompositionEntryRaw(requestParameters, initOverrides);
|
|
92
|
+
return await response.value();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is 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 widgets of that partner: a partner\'s list never has to name it. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
|
|
96
|
+
* Resolve a composition UUID to a published widget URL
|
|
97
|
+
*/
|
|
98
|
+
async getPublicCompositionEmbedRaw(requestParameters, initOverrides) {
|
|
99
|
+
if (requestParameters['compositionId'] == null) {
|
|
100
|
+
throw new runtime.RequiredError('compositionId', 'Required parameter "compositionId" was null or undefined when calling getPublicCompositionEmbed().');
|
|
101
|
+
}
|
|
102
|
+
const queryParameters = {};
|
|
103
|
+
const headerParameters = {};
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/embed/compositions/{compositionId}`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))),
|
|
106
|
+
method: 'GET',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPublicCompositionEmbed200ResponseFromJSON(jsonValue));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is 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 widgets of that partner: a partner\'s list never has to name it. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
|
|
114
|
+
* Resolve a composition UUID to a published widget URL
|
|
115
|
+
*/
|
|
116
|
+
async getPublicCompositionEmbed(requestParameters, initOverrides) {
|
|
117
|
+
const response = await this.getPublicCompositionEmbedRaw(requestParameters, initOverrides);
|
|
118
|
+
return await response.value();
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own, and the website where the partner the owner administers integrates Widgetic, with its subdomains), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
|
|
122
|
+
* Embed a published composition with its saved values
|
|
123
|
+
*/
|
|
124
|
+
async getPublicCompositionIframeRaw(requestParameters, initOverrides) {
|
|
125
|
+
if (requestParameters['compositionId'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('compositionId', 'Required parameter "compositionId" was null or undefined when calling getPublicCompositionIframe().');
|
|
127
|
+
}
|
|
128
|
+
const queryParameters = {};
|
|
129
|
+
const headerParameters = {};
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: `/embed/compositions/{compositionId}/frame`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))),
|
|
132
|
+
method: 'GET',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
137
|
+
return new runtime.JSONApiResponse(response);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
return new runtime.TextApiResponse(response);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own, and the website where the partner the owner administers integrates Widgetic, with its subdomains), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
|
|
145
|
+
* Embed a published composition with its saved values
|
|
146
|
+
*/
|
|
147
|
+
async getPublicCompositionIframe(requestParameters, initOverrides) {
|
|
148
|
+
const response = await this.getPublicCompositionIframeRaw(requestParameters, initOverrides);
|
|
149
|
+
return await response.value();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
153
|
+
* Batch-check whether compositions are currently served for embed
|
|
154
|
+
*/
|
|
155
|
+
async postPublicCompositionEmbedStatusRaw(requestParameters, initOverrides) {
|
|
156
|
+
if (requestParameters['postPublicCompositionEmbedStatusRequest'] == null) {
|
|
157
|
+
throw new runtime.RequiredError('postPublicCompositionEmbedStatusRequest', 'Required parameter "postPublicCompositionEmbedStatusRequest" was null or undefined when calling postPublicCompositionEmbedStatus().');
|
|
158
|
+
}
|
|
159
|
+
const queryParameters = {};
|
|
160
|
+
const headerParameters = {};
|
|
161
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/embed/compositions/status`,
|
|
164
|
+
method: 'POST',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
body: PostPublicCompositionEmbedStatusRequestToJSON(requestParameters['postPublicCompositionEmbedStatusRequest']),
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PostPublicCompositionEmbedStatus200ResponseFromJSON(jsonValue));
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
173
|
+
* Batch-check whether compositions are currently served for embed
|
|
174
|
+
*/
|
|
175
|
+
async postPublicCompositionEmbedStatus(requestParameters, initOverrides) {
|
|
176
|
+
const response = await this.postPublicCompositionEmbedStatusRaw(requestParameters, initOverrides);
|
|
177
|
+
return await response.value();
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
|
|
181
|
+
* Send the file a visitor chose through the upload adapter of a published widget
|
|
182
|
+
*/
|
|
183
|
+
async uploadPublicCompositionAdapterFileRaw(requestParameters, initOverrides) {
|
|
184
|
+
if (requestParameters['compositionId'] == null) {
|
|
185
|
+
throw new runtime.RequiredError('compositionId', 'Required parameter "compositionId" was null or undefined when calling uploadPublicCompositionAdapterFile().');
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['ticket'] == null) {
|
|
188
|
+
throw new runtime.RequiredError('ticket', 'Required parameter "ticket" was null or undefined when calling uploadPublicCompositionAdapterFile().');
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['body'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling uploadPublicCompositionAdapterFile().');
|
|
192
|
+
}
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
const headerParameters = {};
|
|
195
|
+
headerParameters['Content-Type'] = 'application/pdf';
|
|
196
|
+
const response = await this.request({
|
|
197
|
+
path: `/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))).replace(`{${"ticket"}}`, encodeURIComponent(String(requestParameters['ticket']))),
|
|
198
|
+
method: 'PUT',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
body: requestParameters['body'],
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicAdapterFileResultFromJSON(jsonValue));
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* The second of the two calls the `upload` adapter\'s module makes from the visitor\'s browser (the first, the `begin-upload` operation of `callPublicCompositionAdapter`, answers with the ticket this route takes). The module sends the file itself, as the body, with its media type as the `Content-Type`. It is not meant to be called by hand, and it takes no API key. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/adapters/upload/files/{ticket}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **The ticket.** Single-use and valid for ten minutes, given for one file: its name, its media type and its exact size are what the visitor said when the ticket was asked for, after the widget\'s owner\'s settings (the kinds of file they take, the largest size) were applied. The `Content-Type` and the `Content-Length` of this request must be those, and the body must be exactly that many bytes (400 `UPLOAD_FILE_CHANGED` otherwise). The gateway never believes the type it was told: the first bytes of the file must be a file of that type and one the owner accepts (422 otherwise). A ticket whose file was stored and is sent again is answered with the same file, so a visitor whose connection dropped after the file landed does not store it twice; a ticket whose attempt failed is spent, and the module asks for a new one. **What it stores.** The file goes to the widget owner\'s storage: Widgetic\'s, or the partner\'s own bucket for a widget of a customer a partner manages. It counts against the owner\'s storage allowance and is filed in the folder the owner chose, as a file sent by a visitor, which the owner\'s own file list leaves out. A full allowance, a partner\'s storage that cannot be used and a stopped feature are all the same 503 `UPLOAD_UNAVAILABLE` to a visitor, and the owner is told through a notice. **Who may call.** The same rule as the entry route: a permitted `Origin` header, which is the artifact origin the widget runs from or a website the owner allowed (or the owner\'s own platform). A request without a permitted `Origin` is 403 `ORIGIN_NOT_ALLOWED`. A composition that is not served (unpublished, or its owner\'s plan does not serve it) is 404, with the codes of the other public embed routes. **Limits.** 30 requests a minute for each visitor address and composition and 240 a minute for a composition (429 `RATE_LIMITED`, with a `Retry-After` header); at most 10 MB for a file, and only so many files held in memory at once on each gateway process (503 `UPLOAD_BUSY`, with a `Retry-After`). A file that does not arrive within two minutes is 408 `UPLOAD_TIMEOUT`. Every answer but a success closes the connection, so a client that is refused before it has sent the file reads the answer and stops.
|
|
207
|
+
* Send the file a visitor chose through the upload adapter of a published widget
|
|
208
|
+
*/
|
|
209
|
+
async uploadPublicCompositionAdapterFile(requestParameters, initOverrides) {
|
|
210
|
+
const response = await this.uploadPublicCompositionAdapterFileRaw(requestParameters, initOverrides);
|
|
211
|
+
return await response.value();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ValidateToken200ResponseFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class TokensApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Validate current authentication token
|
|
22
|
+
*/
|
|
23
|
+
async validateTokenRaw(initOverrides) {
|
|
24
|
+
const queryParameters = {};
|
|
25
|
+
const headerParameters = {};
|
|
26
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
27
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
|
|
28
|
+
}
|
|
29
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
30
|
+
const token = this.configuration.accessToken;
|
|
31
|
+
const tokenString = await token("BearerAuth", []);
|
|
32
|
+
if (tokenString) {
|
|
33
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const response = await this.request({
|
|
37
|
+
path: `/tokens/validate`,
|
|
38
|
+
method: 'GET',
|
|
39
|
+
headers: headerParameters,
|
|
40
|
+
query: queryParameters,
|
|
41
|
+
}, initOverrides);
|
|
42
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ValidateToken200ResponseFromJSON(jsonValue));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Validate current authentication token
|
|
46
|
+
*/
|
|
47
|
+
async validateToken(initOverrides) {
|
|
48
|
+
const response = await this.validateTokenRaw(initOverrides);
|
|
49
|
+
return await response.value();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
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 { UploadLimitsResponseFromJSON, UploadResponseFromJSON, UploadsGet200ResponseFromJSON, UploadsIdDelete200ResponseFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class UploadsApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* The files the account has uploaded, newest first. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
|
|
22
|
+
* List the account\'s uploads
|
|
23
|
+
*/
|
|
24
|
+
async uploadsGetRaw(requestParameters, initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
if (requestParameters['limit'] != null) {
|
|
27
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
28
|
+
}
|
|
29
|
+
if (requestParameters['managedUserId'] != null) {
|
|
30
|
+
queryParameters['managedUserId'] = requestParameters['managedUserId'];
|
|
31
|
+
}
|
|
32
|
+
if (requestParameters['managedUserExternalId'] != null) {
|
|
33
|
+
queryParameters['managedUserExternalId'] = requestParameters['managedUserExternalId'];
|
|
34
|
+
}
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37
|
+
const token = this.configuration.accessToken;
|
|
38
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
39
|
+
if (tokenString) {
|
|
40
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const response = await this.request({
|
|
44
|
+
path: `/uploads`,
|
|
45
|
+
method: 'GET',
|
|
46
|
+
headers: headerParameters,
|
|
47
|
+
query: queryParameters,
|
|
48
|
+
}, initOverrides);
|
|
49
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadsGet200ResponseFromJSON(jsonValue));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The files the account has uploaded, newest first. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managedUserId` or `managedUserExternalId`. The files that visitors sent through a widget\'s upload adapter (`source` is `widget-visitor-upload`) are not part of this list, so that a popular widget does not push the account\'s own files out of it; naming one widget with `widgetId` lists what visitors sent to that widget as well.
|
|
53
|
+
* List the account\'s uploads
|
|
54
|
+
*/
|
|
55
|
+
async uploadsGet(requestParameters = {}, initOverrides) {
|
|
56
|
+
const response = await this.uploadsGetRaw(requestParameters, initOverrides);
|
|
57
|
+
return await response.value();
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
61
|
+
* Delete an upload
|
|
62
|
+
*/
|
|
63
|
+
async uploadsIdDeleteRaw(requestParameters, initOverrides) {
|
|
64
|
+
if (requestParameters['id'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadsIdDelete().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
70
|
+
const token = this.configuration.accessToken;
|
|
71
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
72
|
+
if (tokenString) {
|
|
73
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const response = await this.request({
|
|
77
|
+
path: `/uploads/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
78
|
+
method: 'DELETE',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
}, initOverrides);
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadsIdDelete200ResponseFromJSON(jsonValue));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
|
|
86
|
+
* Delete an upload
|
|
87
|
+
*/
|
|
88
|
+
async uploadsIdDelete(requestParameters, initOverrides) {
|
|
89
|
+
const response = await this.uploadsIdDeleteRaw(requestParameters, initOverrides);
|
|
90
|
+
return await response.value();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The details of one of the account\'s uploads. An upload that belongs to another account is not found.
|
|
94
|
+
* Get an upload by id
|
|
95
|
+
*/
|
|
96
|
+
async uploadsIdGetRaw(requestParameters, initOverrides) {
|
|
97
|
+
if (requestParameters['id'] == null) {
|
|
98
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadsIdGet().');
|
|
99
|
+
}
|
|
100
|
+
const queryParameters = {};
|
|
101
|
+
const headerParameters = {};
|
|
102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
+
const token = this.configuration.accessToken;
|
|
104
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
105
|
+
if (tokenString) {
|
|
106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/uploads/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadResponseFromJSON(jsonValue));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The details of one of the account\'s uploads. An upload that belongs to another account is not found.
|
|
119
|
+
* Get an upload by id
|
|
120
|
+
*/
|
|
121
|
+
async uploadsIdGet(requestParameters, initOverrides) {
|
|
122
|
+
const response = await this.uploadsIdGetRaw(requestParameters, initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The size limit and the accepted file types of the upload endpoints. Read them from here rather than hard-coding thresholds: they are configuration and can change. The limits are the same for every account, whatever its plan: `multipart_max_bytes` for a file sent in one request (10 MB) and `tus_max_bytes` for a resumable upload (250 MB).
|
|
127
|
+
* Upload size limits and accepted file types
|
|
128
|
+
*/
|
|
129
|
+
async uploadsLimitsGetRaw(initOverrides) {
|
|
130
|
+
const queryParameters = {};
|
|
131
|
+
const headerParameters = {};
|
|
132
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
133
|
+
const token = this.configuration.accessToken;
|
|
134
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
135
|
+
if (tokenString) {
|
|
136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
const response = await this.request({
|
|
140
|
+
path: `/uploads/limits`,
|
|
141
|
+
method: 'GET',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
}, initOverrides);
|
|
145
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadLimitsResponseFromJSON(jsonValue));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The size limit and the accepted file types of the upload endpoints. Read them from here rather than hard-coding thresholds: they are configuration and can change. The limits are the same for every account, whatever its plan: `multipart_max_bytes` for a file sent in one request (10 MB) and `tus_max_bytes` for a resumable upload (250 MB).
|
|
149
|
+
* Upload size limits and accepted file types
|
|
150
|
+
*/
|
|
151
|
+
async uploadsLimitsGet(initOverrides) {
|
|
152
|
+
const response = await this.uploadsLimitsGetRaw(initOverrides);
|
|
153
|
+
return await response.value();
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the storage of the workspace it is uploaded in, and a full workspace is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. For a person signed in on widgetic.com that is the workspace they are currently working in: inside a team, the team\'s shared storage; inside their own workspace, their own allowance. An organization API key, and a Shopify store\'s session, always work in that team\'s shared storage. A personal API key or an SDK token always uses the account\'s own allowance. The two never add up and one never lends room to the other. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. A file is judged by what is in it, not by the type it is sent as. A file that is not the type it claims (a web page sent as `image/png`) is refused with 415 and `UPLOAD_UNSUPPORTED_TYPE`, and a picture sent under the wrong picture type is stored under the type it really is, which `mime_type` in the answer says. An SVG is rewritten as it is stored: script, `foreignObject`, animation and references to other addresses are taken out, it must be UTF-8 and at most 2 MB, and the stored file can be larger or smaller than the one sent. Anything that is not an image, audio or video (a PDF, for example) is served as a download rather than shown in a page. When the full storage is a Shopify store\'s team\'s, extra storage cannot be added through Shopify yet, so the message ends by saying so and what to do instead: delete files, or contact support. On a Solo plan it names the Teams plan (which holds more) and `error.details.planPageUrl` is the address of the plan page on Shopify. `error.suggestedAction` says the same in a few words, instead of the usual \"upgrade your storage plan\". Any other team, and a person\'s own workspace, get the shorter message. To upload the file for one of your managed users, send `managedUserId` (Widgetic\'s id for the user) or `managedUserExternalId` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `contextType`, `source`, `widgetId` and `conversationId` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional, and it does not depend on how the file arrives. A partner\'s own uploads (with its API key, an SDK token, or from the Widgetic website, the resumable route and the media library alike) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
|
|
157
|
+
* Upload a file
|
|
158
|
+
*/
|
|
159
|
+
async uploadsPostRaw(requestParameters, initOverrides) {
|
|
160
|
+
if (requestParameters['file'] == null) {
|
|
161
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling uploadsPost().');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
166
|
+
const token = this.configuration.accessToken;
|
|
167
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
168
|
+
if (tokenString) {
|
|
169
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const consumes = [
|
|
173
|
+
{ contentType: 'multipart/form-data' },
|
|
174
|
+
];
|
|
175
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
176
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
177
|
+
let formParams;
|
|
178
|
+
let useForm = false;
|
|
179
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
180
|
+
useForm = canConsumeForm;
|
|
181
|
+
if (useForm) {
|
|
182
|
+
formParams = new FormData();
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
formParams = new URLSearchParams();
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['file'] != null) {
|
|
188
|
+
formParams.append('file', requestParameters['file']);
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['contextType'] != null) {
|
|
191
|
+
formParams.append('contextType', requestParameters['contextType']);
|
|
192
|
+
}
|
|
193
|
+
if (requestParameters['source'] != null) {
|
|
194
|
+
formParams.append('source', requestParameters['source']);
|
|
195
|
+
}
|
|
196
|
+
if (requestParameters['managedUserId'] != null) {
|
|
197
|
+
formParams.append('managedUserId', requestParameters['managedUserId']);
|
|
198
|
+
}
|
|
199
|
+
if (requestParameters['managedUserExternalId'] != null) {
|
|
200
|
+
formParams.append('managedUserExternalId', requestParameters['managedUserExternalId']);
|
|
201
|
+
}
|
|
202
|
+
if (requestParameters['purpose'] != null) {
|
|
203
|
+
formParams.append('purpose', requestParameters['purpose']);
|
|
204
|
+
}
|
|
205
|
+
const response = await this.request({
|
|
206
|
+
path: `/uploads`,
|
|
207
|
+
method: 'POST',
|
|
208
|
+
headers: headerParameters,
|
|
209
|
+
query: queryParameters,
|
|
210
|
+
body: formParams,
|
|
211
|
+
}, initOverrides);
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadResponseFromJSON(jsonValue));
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the storage of the workspace it is uploaded in, and a full workspace is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. For a person signed in on widgetic.com that is the workspace they are currently working in: inside a team, the team\'s shared storage; inside their own workspace, their own allowance. An organization API key, and a Shopify store\'s session, always work in that team\'s shared storage. A personal API key or an SDK token always uses the account\'s own allowance. The two never add up and one never lends room to the other. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. A file is judged by what is in it, not by the type it is sent as. A file that is not the type it claims (a web page sent as `image/png`) is refused with 415 and `UPLOAD_UNSUPPORTED_TYPE`, and a picture sent under the wrong picture type is stored under the type it really is, which `mime_type` in the answer says. An SVG is rewritten as it is stored: script, `foreignObject`, animation and references to other addresses are taken out, it must be UTF-8 and at most 2 MB, and the stored file can be larger or smaller than the one sent. Anything that is not an image, audio or video (a PDF, for example) is served as a download rather than shown in a page. When the full storage is a Shopify store\'s team\'s, extra storage cannot be added through Shopify yet, so the message ends by saying so and what to do instead: delete files, or contact support. On a Solo plan it names the Teams plan (which holds more) and `error.details.planPageUrl` is the address of the plan page on Shopify. `error.suggestedAction` says the same in a few words, instead of the usual \"upgrade your storage plan\". Any other team, and a person\'s own workspace, get the shorter message. To upload the file for one of your managed users, send `managedUserId` (Widgetic\'s id for the user) or `managedUserExternalId` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `contextType`, `source`, `widgetId` and `conversationId` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional, and it does not depend on how the file arrives. A partner\'s own uploads (with its API key, an SDK token, or from the Widgetic website, the resumable route and the media library alike) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
|
|
216
|
+
* Upload a file
|
|
217
|
+
*/
|
|
218
|
+
async uploadsPost(requestParameters, initOverrides) {
|
|
219
|
+
const response = await this.uploadsPostRaw(requestParameters, initOverrides);
|
|
220
|
+
return await response.value();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @export
|
|
225
|
+
*/
|
|
226
|
+
export const UploadsPost0ContextTypeEnum = {
|
|
227
|
+
WidgetCodegen: 'widget-codegen',
|
|
228
|
+
BrowserIc: 'browser-ic',
|
|
229
|
+
ContentProperty: 'content-property'
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* @export
|
|
233
|
+
*/
|
|
234
|
+
export const UploadsPost0SourceEnum = {
|
|
235
|
+
ChatUpload: 'chat-upload',
|
|
236
|
+
ChatScreenshot: 'chat-screenshot',
|
|
237
|
+
BrowserIcScreenshot: 'browser-ic-screenshot',
|
|
238
|
+
PreviewScreenshot: 'preview-screenshot',
|
|
239
|
+
FileBrowserUpload: 'file-browser-upload'
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* @export
|
|
243
|
+
*/
|
|
244
|
+
export const UploadsPost0PurposeEnum = {
|
|
245
|
+
Canvas: 'canvas',
|
|
246
|
+
Chat: 'chat',
|
|
247
|
+
Field: 'field'
|
|
248
|
+
};
|