@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,514 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.UsersApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class UsersApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
|
|
58
|
+
* Allow a website to show your widgets
|
|
59
|
+
*/
|
|
60
|
+
async addPersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['id'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addPersonalWorkspaceDomain().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['addDomainRequest'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('addDomainRequest', 'Required parameter "addDomainRequest" was null or undefined when calling addPersonalWorkspaceDomain().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
71
|
+
const token = this.configuration.accessToken;
|
|
72
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
73
|
+
if (tokenString) {
|
|
74
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const response = await this.request({
|
|
78
|
+
path: `/users/{id}/workspace/domains`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
79
|
+
method: 'POST',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
body: (0, index_1.AddDomainRequestToJSON)(requestParameters['addDomainRequest']),
|
|
83
|
+
}, initOverrides);
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PersonalWorkspaceDomainResultResponseFromJSON)(jsonValue));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. There is no limit on the list of an account that administers a partner, so a partner can add the website of each of its customers as they publish on their own domain, one call each. Any other account can list at most 50 websites, and the 51st is answered with a 409 (`BUSINESS_STATE_CONFLICT`). A wildcard such as `*.example.com` counts as one website, not one per subdomain, so use it instead of listing each subdomain. A page that frames a widget can name only so many websites to the browser (about fifty of ordinary length). Past that, the browser no longer checks the list for that page; the lookup that the Embed SDK makes for the widget still refuses every website that is not on the list.
|
|
88
|
+
* Allow a website to show your widgets
|
|
89
|
+
*/
|
|
90
|
+
async addPersonalWorkspaceDomain(requestParameters, initOverrides) {
|
|
91
|
+
const response = await this.addPersonalWorkspaceDomainRaw(requestParameters, initOverrides);
|
|
92
|
+
return await response.value();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
|
|
96
|
+
* Create an API key
|
|
97
|
+
*/
|
|
98
|
+
async createUserApiKeyRaw(requestParameters, initOverrides) {
|
|
99
|
+
if (requestParameters['id'] == null) {
|
|
100
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createUserApiKey().');
|
|
101
|
+
}
|
|
102
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
103
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling createUserApiKey().');
|
|
104
|
+
}
|
|
105
|
+
if (requestParameters['createUserApiKeyRequest'] == null) {
|
|
106
|
+
throw new runtime.RequiredError('createUserApiKeyRequest', 'Required parameter "createUserApiKeyRequest" was null or undefined when calling createUserApiKey().');
|
|
107
|
+
}
|
|
108
|
+
const queryParameters = {};
|
|
109
|
+
const headerParameters = {};
|
|
110
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
111
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
112
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
113
|
+
}
|
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
115
|
+
const token = this.configuration.accessToken;
|
|
116
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
117
|
+
if (tokenString) {
|
|
118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const response = await this.request({
|
|
122
|
+
path: `/users/{id}/keys`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
123
|
+
method: 'POST',
|
|
124
|
+
headers: headerParameters,
|
|
125
|
+
query: queryParameters,
|
|
126
|
+
body: (0, index_1.CreateUserApiKeyRequestToJSON)(requestParameters['createUserApiKeyRequest']),
|
|
127
|
+
}, initOverrides);
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreatedUserApiKeyResponseFromJSON)(jsonValue));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. Accounts with API access (Solo, Teams and partner accounts) have no limit on how many keys they hold. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
|
|
132
|
+
* Create an API key
|
|
133
|
+
*/
|
|
134
|
+
async createUserApiKey(requestParameters, initOverrides) {
|
|
135
|
+
const response = await this.createUserApiKeyRaw(requestParameters, initOverrides);
|
|
136
|
+
return await response.value();
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
|
|
140
|
+
* Stop allowing a website to show your widgets
|
|
141
|
+
*/
|
|
142
|
+
async deletePersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
|
|
143
|
+
if (requestParameters['id'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deletePersonalWorkspaceDomain().');
|
|
145
|
+
}
|
|
146
|
+
if (requestParameters['domainId'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling deletePersonalWorkspaceDomain().');
|
|
148
|
+
}
|
|
149
|
+
const queryParameters = {};
|
|
150
|
+
const headerParameters = {};
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
const token = this.configuration.accessToken;
|
|
153
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const response = await this.request({
|
|
159
|
+
path: `/users/{id}/workspace/domains/{domainId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
160
|
+
method: 'DELETE',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeletePersonalWorkspaceDomainResponseFromJSON)(jsonValue));
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
|
|
168
|
+
* Stop allowing a website to show your widgets
|
|
169
|
+
*/
|
|
170
|
+
async deletePersonalWorkspaceDomain(requestParameters, initOverrides) {
|
|
171
|
+
const response = await this.deletePersonalWorkspaceDomainRaw(requestParameters, initOverrides);
|
|
172
|
+
return await response.value();
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
|
|
176
|
+
* Delete an API key
|
|
177
|
+
*/
|
|
178
|
+
async deleteUserApiKeyRaw(requestParameters, initOverrides) {
|
|
179
|
+
if (requestParameters['id'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteUserApiKey().');
|
|
181
|
+
}
|
|
182
|
+
if (requestParameters['keyId'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('keyId', 'Required parameter "keyId" was null or undefined when calling deleteUserApiKey().');
|
|
184
|
+
}
|
|
185
|
+
const queryParameters = {};
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
188
|
+
const token = this.configuration.accessToken;
|
|
189
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
190
|
+
if (tokenString) {
|
|
191
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
const response = await this.request({
|
|
195
|
+
path: `/users/{id}/keys/{keyId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters['keyId']))),
|
|
196
|
+
method: 'DELETE',
|
|
197
|
+
headers: headerParameters,
|
|
198
|
+
query: queryParameters,
|
|
199
|
+
}, initOverrides);
|
|
200
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteUserApiKeyResponseFromJSON)(jsonValue));
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
|
|
204
|
+
* Delete an API key
|
|
205
|
+
*/
|
|
206
|
+
async deleteUserApiKey(requestParameters, initOverrides) {
|
|
207
|
+
const response = await this.deleteUserApiKeyRaw(requestParameters, initOverrides);
|
|
208
|
+
return await response.value();
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
|
|
212
|
+
* List the websites allowed to show your widgets
|
|
213
|
+
*/
|
|
214
|
+
async getPersonalWorkspaceDomainsRaw(requestParameters, initOverrides) {
|
|
215
|
+
if (requestParameters['id'] == null) {
|
|
216
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPersonalWorkspaceDomains().');
|
|
217
|
+
}
|
|
218
|
+
const queryParameters = {};
|
|
219
|
+
const headerParameters = {};
|
|
220
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
221
|
+
const token = this.configuration.accessToken;
|
|
222
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
223
|
+
if (tokenString) {
|
|
224
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
const response = await this.request({
|
|
228
|
+
path: `/users/{id}/workspace/domains`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
229
|
+
method: 'GET',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
}, initOverrides);
|
|
233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPersonalWorkspaceDomains200ResponseFromJSON)(jsonValue));
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead. The answer holds the whole list, however long it is: a partner\'s list has no limit.
|
|
237
|
+
* List the websites allowed to show your widgets
|
|
238
|
+
*/
|
|
239
|
+
async getPersonalWorkspaceDomains(requestParameters, initOverrides) {
|
|
240
|
+
const response = await this.getPersonalWorkspaceDomainsRaw(requestParameters, initOverrides);
|
|
241
|
+
return await response.value();
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Widget adapters are capabilities a widget can use, and some of them act through a service the owner has an account with: an adapter that sends email needs the owner\'s email provider key, one that sends texts needs the owner\'s SMS provider key. This lists every key an adapter takes from an owner and whether this account has connected it, so a settings page can show what is missing. An empty list means no adapter takes a key from an owner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setUserAdapterConnection`; take it away with `removeUserAdapterConnection`. The widgets of customers a partner manages use the partner\'s keys instead (`getPartnerAdapterConnections`). The caller must be the account itself (an API key of that account works, with the `account:read` scope), or a Widgetic administrator.
|
|
245
|
+
* See which adapter keys an account has connected
|
|
246
|
+
*/
|
|
247
|
+
async getUserAdapterConnectionsRaw(requestParameters, initOverrides) {
|
|
248
|
+
if (requestParameters['userId'] == null) {
|
|
249
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserAdapterConnections().');
|
|
250
|
+
}
|
|
251
|
+
const queryParameters = {};
|
|
252
|
+
const headerParameters = {};
|
|
253
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
254
|
+
const token = this.configuration.accessToken;
|
|
255
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
256
|
+
if (tokenString) {
|
|
257
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
const response = await this.request({
|
|
261
|
+
path: `/users/{userId}/adapter-connections`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
262
|
+
method: 'GET',
|
|
263
|
+
headers: headerParameters,
|
|
264
|
+
query: queryParameters,
|
|
265
|
+
}, initOverrides);
|
|
266
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetUserAdapterConnections200ResponseFromJSON)(jsonValue));
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Widget adapters are capabilities a widget can use, and some of them act through a service the owner has an account with: an adapter that sends email needs the owner\'s email provider key, one that sends texts needs the owner\'s SMS provider key. This lists every key an adapter takes from an owner and whether this account has connected it, so a settings page can show what is missing. An empty list means no adapter takes a key from an owner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setUserAdapterConnection`; take it away with `removeUserAdapterConnection`. The widgets of customers a partner manages use the partner\'s keys instead (`getPartnerAdapterConnections`). The caller must be the account itself (an API key of that account works, with the `account:read` scope), or a Widgetic administrator.
|
|
270
|
+
* See which adapter keys an account has connected
|
|
271
|
+
*/
|
|
272
|
+
async getUserAdapterConnections(requestParameters, initOverrides) {
|
|
273
|
+
const response = await this.getUserAdapterConnectionsRaw(requestParameters, initOverrides);
|
|
274
|
+
return await response.value();
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Lists the calls made with one key, newest first: when, which path and method, and the status each ended with. Use it to see whether a key is still in use before deleting it, or to see what a key that should not be in use has been doing.
|
|
278
|
+
* Read what an API key was used for
|
|
279
|
+
*/
|
|
280
|
+
async getUserApiKeyUsageLogsRaw(requestParameters, initOverrides) {
|
|
281
|
+
if (requestParameters['id'] == null) {
|
|
282
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getUserApiKeyUsageLogs().');
|
|
283
|
+
}
|
|
284
|
+
if (requestParameters['keyId'] == null) {
|
|
285
|
+
throw new runtime.RequiredError('keyId', 'Required parameter "keyId" was null or undefined when calling getUserApiKeyUsageLogs().');
|
|
286
|
+
}
|
|
287
|
+
const queryParameters = {};
|
|
288
|
+
if (requestParameters['limit'] != null) {
|
|
289
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
290
|
+
}
|
|
291
|
+
const headerParameters = {};
|
|
292
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
293
|
+
const token = this.configuration.accessToken;
|
|
294
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
295
|
+
if (tokenString) {
|
|
296
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
const response = await this.request({
|
|
300
|
+
path: `/users/{id}/api-keys/{keyId}/logs`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters['keyId']))),
|
|
301
|
+
method: 'GET',
|
|
302
|
+
headers: headerParameters,
|
|
303
|
+
query: queryParameters,
|
|
304
|
+
}, initOverrides);
|
|
305
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetUserApiKeyUsageLogsResponseFromJSON)(jsonValue));
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Lists the calls made with one key, newest first: when, which path and method, and the status each ended with. Use it to see whether a key is still in use before deleting it, or to see what a key that should not be in use has been doing.
|
|
309
|
+
* Read what an API key was used for
|
|
310
|
+
*/
|
|
311
|
+
async getUserApiKeyUsageLogs(requestParameters, initOverrides) {
|
|
312
|
+
const response = await this.getUserApiKeyUsageLogsRaw(requestParameters, initOverrides);
|
|
313
|
+
return await response.value();
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Lists the API keys of an account, in the order they were made: name, the first characters of the key, when it was made, when it expires, when it was last used, whether it is switched on and what it is limited to (`scopes` and `preset`). The secret of a key is never part of the list. A caller can list its own account\'s keys; Widgetic staff can list any account\'s.
|
|
317
|
+
* List the API keys of an account
|
|
318
|
+
*/
|
|
319
|
+
async getUserApiKeysRaw(requestParameters, initOverrides) {
|
|
320
|
+
if (requestParameters['id'] == null) {
|
|
321
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getUserApiKeys().');
|
|
322
|
+
}
|
|
323
|
+
const queryParameters = {};
|
|
324
|
+
const headerParameters = {};
|
|
325
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
326
|
+
const token = this.configuration.accessToken;
|
|
327
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
328
|
+
if (tokenString) {
|
|
329
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
const response = await this.request({
|
|
333
|
+
path: `/users/{id}/keys`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
334
|
+
method: 'GET',
|
|
335
|
+
headers: headerParameters,
|
|
336
|
+
query: queryParameters,
|
|
337
|
+
}, initOverrides);
|
|
338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetUserApiKeys200ResponseFromJSON)(jsonValue));
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Lists the API keys of an account, in the order they were made: name, the first characters of the key, when it was made, when it expires, when it was last used, whether it is switched on and what it is limited to (`scopes` and `preset`). The secret of a key is never part of the list. A caller can list its own account\'s keys; Widgetic staff can list any account\'s.
|
|
342
|
+
* List the API keys of an account
|
|
343
|
+
*/
|
|
344
|
+
async getUserApiKeys(requestParameters, initOverrides) {
|
|
345
|
+
const response = await this.getUserApiKeysRaw(requestParameters, initOverrides);
|
|
346
|
+
return await response.value();
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Removes a key an adapter was given. The adapter stops working for the widgets that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. Removing a key that is not connected answers 200 with `removed: false`: the state asked for is the state it is in. A key of an adapter that has since been retired from the catalog can still be removed. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
|
|
350
|
+
* Remove an adapter key from an account
|
|
351
|
+
*/
|
|
352
|
+
async removeUserAdapterConnectionRaw(requestParameters, initOverrides) {
|
|
353
|
+
if (requestParameters['userId'] == null) {
|
|
354
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling removeUserAdapterConnection().');
|
|
355
|
+
}
|
|
356
|
+
if (requestParameters['adapterId'] == null) {
|
|
357
|
+
throw new runtime.RequiredError('adapterId', 'Required parameter "adapterId" was null or undefined when calling removeUserAdapterConnection().');
|
|
358
|
+
}
|
|
359
|
+
if (requestParameters['credentialKey'] == null) {
|
|
360
|
+
throw new runtime.RequiredError('credentialKey', 'Required parameter "credentialKey" was null or undefined when calling removeUserAdapterConnection().');
|
|
361
|
+
}
|
|
362
|
+
const queryParameters = {};
|
|
363
|
+
const headerParameters = {};
|
|
364
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
365
|
+
const token = this.configuration.accessToken;
|
|
366
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
367
|
+
if (tokenString) {
|
|
368
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
const response = await this.request({
|
|
372
|
+
path: `/users/{userId}/adapter-connections/{adapterId}/{credentialKey}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"adapterId"}}`, encodeURIComponent(String(requestParameters['adapterId']))).replace(`{${"credentialKey"}}`, encodeURIComponent(String(requestParameters['credentialKey']))),
|
|
373
|
+
method: 'DELETE',
|
|
374
|
+
headers: headerParameters,
|
|
375
|
+
query: queryParameters,
|
|
376
|
+
}, initOverrides);
|
|
377
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RemoveUserAdapterConnection200ResponseFromJSON)(jsonValue));
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Removes a key an adapter was given. The adapter stops working for the widgets that need it: their visitors are told the feature is unavailable. Nothing else of the widgets changes, and connecting a key again brings them back. Removing a key that is not connected answers 200 with `removed: false`: the state asked for is the state it is in. A key of an adapter that has since been retired from the catalog can still be removed. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator.
|
|
381
|
+
* Remove an adapter key from an account
|
|
382
|
+
*/
|
|
383
|
+
async removeUserAdapterConnection(requestParameters, initOverrides) {
|
|
384
|
+
const response = await this.removeUserAdapterConnectionRaw(requestParameters, initOverrides);
|
|
385
|
+
return await response.value();
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
|
|
389
|
+
* Connect an adapter key to an account
|
|
390
|
+
*/
|
|
391
|
+
async setUserAdapterConnectionRaw(requestParameters, initOverrides) {
|
|
392
|
+
if (requestParameters['userId'] == null) {
|
|
393
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling setUserAdapterConnection().');
|
|
394
|
+
}
|
|
395
|
+
if (requestParameters['adapterId'] == null) {
|
|
396
|
+
throw new runtime.RequiredError('adapterId', 'Required parameter "adapterId" was null or undefined when calling setUserAdapterConnection().');
|
|
397
|
+
}
|
|
398
|
+
if (requestParameters['credentialKey'] == null) {
|
|
399
|
+
throw new runtime.RequiredError('credentialKey', 'Required parameter "credentialKey" was null or undefined when calling setUserAdapterConnection().');
|
|
400
|
+
}
|
|
401
|
+
if (requestParameters['setAdapterConnectionRequest'] == null) {
|
|
402
|
+
throw new runtime.RequiredError('setAdapterConnectionRequest', 'Required parameter "setAdapterConnectionRequest" was null or undefined when calling setUserAdapterConnection().');
|
|
403
|
+
}
|
|
404
|
+
const queryParameters = {};
|
|
405
|
+
const headerParameters = {};
|
|
406
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
407
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
408
|
+
const token = this.configuration.accessToken;
|
|
409
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
410
|
+
if (tokenString) {
|
|
411
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
const response = await this.request({
|
|
415
|
+
path: `/users/{userId}/adapter-connections/{adapterId}/{credentialKey}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"adapterId"}}`, encodeURIComponent(String(requestParameters['adapterId']))).replace(`{${"credentialKey"}}`, encodeURIComponent(String(requestParameters['credentialKey']))),
|
|
416
|
+
method: 'PUT',
|
|
417
|
+
headers: headerParameters,
|
|
418
|
+
query: queryParameters,
|
|
419
|
+
body: (0, index_1.SetAdapterConnectionRequestToJSON)(requestParameters['setAdapterConnectionRequest']),
|
|
420
|
+
}, initOverrides);
|
|
421
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SetUserAdapterConnection200ResponseFromJSON)(jsonValue));
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Gives an adapter the key it needs to act through a service you have an account with, for the widgets you made. Take the `adapterId` and `credentialKey` from `getUserAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this account, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on your behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that an owner may keep it (some are for a partner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it, and the widget tells its owner. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the owner is told once a day what to connect. This needs an API key with full access. The caller must be the account itself or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
|
|
425
|
+
* Connect an adapter key to an account
|
|
426
|
+
*/
|
|
427
|
+
async setUserAdapterConnection(requestParameters, initOverrides) {
|
|
428
|
+
const response = await this.setUserAdapterConnectionRaw(requestParameters, initOverrides);
|
|
429
|
+
return await response.value();
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
|
|
433
|
+
* Change a website on your list
|
|
434
|
+
*/
|
|
435
|
+
async updatePersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
|
|
436
|
+
if (requestParameters['id'] == null) {
|
|
437
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updatePersonalWorkspaceDomain().');
|
|
438
|
+
}
|
|
439
|
+
if (requestParameters['domainId'] == null) {
|
|
440
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling updatePersonalWorkspaceDomain().');
|
|
441
|
+
}
|
|
442
|
+
if (requestParameters['updateDomainRequest'] == null) {
|
|
443
|
+
throw new runtime.RequiredError('updateDomainRequest', 'Required parameter "updateDomainRequest" was null or undefined when calling updatePersonalWorkspaceDomain().');
|
|
444
|
+
}
|
|
445
|
+
const queryParameters = {};
|
|
446
|
+
const headerParameters = {};
|
|
447
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
448
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
449
|
+
const token = this.configuration.accessToken;
|
|
450
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
451
|
+
if (tokenString) {
|
|
452
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
const response = await this.request({
|
|
456
|
+
path: `/users/{id}/workspace/domains/{domainId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
457
|
+
method: 'PUT',
|
|
458
|
+
headers: headerParameters,
|
|
459
|
+
query: queryParameters,
|
|
460
|
+
body: (0, index_1.UpdateDomainRequestToJSON)(requestParameters['updateDomainRequest']),
|
|
461
|
+
}, initOverrides);
|
|
462
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PersonalWorkspaceDomainResultResponseFromJSON)(jsonValue));
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
|
|
466
|
+
* Change a website on your list
|
|
467
|
+
*/
|
|
468
|
+
async updatePersonalWorkspaceDomain(requestParameters, initOverrides) {
|
|
469
|
+
const response = await this.updatePersonalWorkspaceDomainRaw(requestParameters, initOverrides);
|
|
470
|
+
return await response.value();
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
|
|
474
|
+
* Rename an API key, or switch it off or on
|
|
475
|
+
*/
|
|
476
|
+
async updateUserApiKeyRaw(requestParameters, initOverrides) {
|
|
477
|
+
if (requestParameters['id'] == null) {
|
|
478
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateUserApiKey().');
|
|
479
|
+
}
|
|
480
|
+
if (requestParameters['keyId'] == null) {
|
|
481
|
+
throw new runtime.RequiredError('keyId', 'Required parameter "keyId" was null or undefined when calling updateUserApiKey().');
|
|
482
|
+
}
|
|
483
|
+
if (requestParameters['updateUserApiKeyRequest'] == null) {
|
|
484
|
+
throw new runtime.RequiredError('updateUserApiKeyRequest', 'Required parameter "updateUserApiKeyRequest" was null or undefined when calling updateUserApiKey().');
|
|
485
|
+
}
|
|
486
|
+
const queryParameters = {};
|
|
487
|
+
const headerParameters = {};
|
|
488
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
489
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
490
|
+
const token = this.configuration.accessToken;
|
|
491
|
+
const tokenString = await token("apiKeyAuth", []);
|
|
492
|
+
if (tokenString) {
|
|
493
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
const response = await this.request({
|
|
497
|
+
path: `/users/{id}/keys/{keyId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters['keyId']))),
|
|
498
|
+
method: 'PUT',
|
|
499
|
+
headers: headerParameters,
|
|
500
|
+
query: queryParameters,
|
|
501
|
+
body: (0, index_1.UpdateUserApiKeyRequestToJSON)(requestParameters['updateUserApiKeyRequest']),
|
|
502
|
+
}, initOverrides);
|
|
503
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserApiKeyResponseFromJSON)(jsonValue));
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
|
|
507
|
+
* Rename an API key, or switch it off or on
|
|
508
|
+
*/
|
|
509
|
+
async updateUserApiKey(requestParameters, initOverrides) {
|
|
510
|
+
const response = await this.updateUserApiKeyRaw(requestParameters, initOverrides);
|
|
511
|
+
return await response.value();
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
exports.UsersApi = UsersApi;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateCompositionFromWidget201Response, CreateCompositionFromWidgetRequest, CreateWidget201Response, GetWidgets200Response, GetWidgetsBatchRequest, GetWidgetsBatchResponse, NewWidget } from '../models/index';
|
|
14
|
+
export interface CreateCompositionFromWidget0Request {
|
|
15
|
+
id: string;
|
|
16
|
+
idempotencyKey: string;
|
|
17
|
+
createCompositionFromWidgetRequest: CreateCompositionFromWidgetRequest;
|
|
18
|
+
}
|
|
19
|
+
export interface CreateWidget0Request {
|
|
20
|
+
idempotencyKey: string;
|
|
21
|
+
newWidget: NewWidget;
|
|
22
|
+
}
|
|
23
|
+
export interface GetWidgetsBatch0Request {
|
|
24
|
+
getWidgetsBatchRequest: GetWidgetsBatchRequest;
|
|
25
|
+
}
|
|
26
|
+
export interface GetWidgets0Request {
|
|
27
|
+
page?: number;
|
|
28
|
+
size?: number;
|
|
29
|
+
canvasId?: string;
|
|
30
|
+
managedUserId?: string;
|
|
31
|
+
managedUserExternalId?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare class WidgetsApi extends runtime.BaseAPI {
|
|
37
|
+
/**
|
|
38
|
+
* After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managedUserId`. When you send it, it must match that tag. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The widget must be published. The `Idempotency-Key` header is required.
|
|
39
|
+
* Create a composition for a widget in one call
|
|
40
|
+
*/
|
|
41
|
+
createCompositionFromWidgetRaw(requestParameters: CreateCompositionFromWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
|
|
42
|
+
/**
|
|
43
|
+
* After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managedUserId`. When you send it, it must match that tag. A widget that keeps what visitors send (a form, a vote, a rating) declares its tables in its own source (`src/lib/meta/database.json`); they are made for the composition here, in a schema of its own, as the widget was when it was last published. A widget that keeps nothing leaves the composition without tables. If the tables cannot be made just now, or the widget\'s file cannot be used, the composition is still created (`201`) and `meta.warnings` says why; the tables are made the next time the widget is generated. The widget must be published. The `Idempotency-Key` header is required.
|
|
44
|
+
* Create a composition for a widget in one call
|
|
45
|
+
*/
|
|
46
|
+
createCompositionFromWidget(requestParameters: CreateCompositionFromWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
|
|
49
|
+
* Create Widget
|
|
50
|
+
*/
|
|
51
|
+
createWidgetRaw(requestParameters: CreateWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWidget201Response>>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name). It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If a step after the widget was saved does not go through, the widget is still created, and `data.warnings` says what did not. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. This call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. A widget has no database of its own: what the visitors of a composition leave is kept in the tables of that composition, made when the composition is. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
|
|
54
|
+
* Create Widget
|
|
55
|
+
*/
|
|
56
|
+
createWidget(requestParameters: CreateWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWidget201Response>;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
|
|
59
|
+
* Get Widgets Batch
|
|
60
|
+
*/
|
|
61
|
+
getWidgetsBatchRaw(requestParameters: GetWidgetsBatch0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgetsBatchResponse>>;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
|
|
64
|
+
* Get Widgets Batch
|
|
65
|
+
*/
|
|
66
|
+
getWidgetsBatch(requestParameters: GetWidgetsBatch0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgetsBatchResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
|
|
69
|
+
* List Widgets
|
|
70
|
+
*/
|
|
71
|
+
getWidgetsRaw(requestParameters: GetWidgets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgets200Response>>;
|
|
72
|
+
/**
|
|
73
|
+
* Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
|
|
74
|
+
* List Widgets
|
|
75
|
+
*/
|
|
76
|
+
getWidgets(requestParameters?: GetWidgets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgets200Response>;
|
|
77
|
+
}
|