@widgetic/api-sdk 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/CompositionsApi.d.ts +17 -13
- package/dist/apis/CompositionsApi.js +19 -12
- package/dist/apis/PartnerApi.d.ts +77 -16
- package/dist/apis/PartnerApi.js +186 -12
- package/dist/apis/PartnersApi.d.ts +58 -1
- package/dist/apis/PartnersApi.js +167 -0
- package/dist/apis/PublicEmbedApi.d.ts +42 -3
- package/dist/apis/PublicEmbedApi.js +99 -2
- package/dist/apis/index.d.ts +0 -4
- package/dist/apis/index.js +0 -4
- package/dist/esm/apis/CompositionsApi.d.ts +17 -13
- package/dist/esm/apis/CompositionsApi.js +20 -13
- package/dist/esm/apis/PartnerApi.d.ts +77 -16
- package/dist/esm/apis/PartnerApi.js +187 -13
- package/dist/esm/apis/PartnersApi.d.ts +58 -1
- package/dist/esm/apis/PartnersApi.js +168 -1
- package/dist/esm/apis/PublicEmbedApi.d.ts +42 -3
- package/dist/esm/apis/PublicEmbedApi.js +100 -3
- package/dist/esm/apis/index.d.ts +0 -4
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/Composition.d.ts +12 -0
- package/dist/esm/models/Composition.js +2 -0
- package/dist/esm/models/CompositionDataSource.d.ts +41 -0
- package/dist/esm/models/CompositionDataSource.js +47 -0
- package/dist/esm/models/CompositionEntriesReading.d.ts +20 -4
- package/dist/esm/models/CompositionEntriesReading.js +3 -0
- package/dist/esm/models/CompositionEntryAggregateTally.d.ts +15 -8
- package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +10 -0
- package/dist/esm/models/CompositionEntryItem.d.ts +4 -1
- package/dist/esm/models/CompositionEntryItemsMeta.d.ts +8 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
- package/dist/esm/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
- package/dist/esm/models/GetPublicCompositionEmbed200Response.js +67 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
- package/dist/esm/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
- package/dist/esm/models/GetPublicCompositionEmbed403Response.js +48 -0
- package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
- package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.js +50 -0
- package/dist/esm/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
- package/dist/esm/models/GetPublicCompositionEmbed404Response.js +51 -0
- package/dist/esm/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
- package/dist/esm/models/GetPublicCompositionEmbed429Response.js +43 -0
- package/dist/esm/models/ManagedUserEntryItem.d.ts +4 -1
- package/dist/esm/models/PartnerEntryContextSecret.d.ts +39 -0
- package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
- package/dist/esm/models/PartnerEntryContextSigning.d.ts +62 -0
- package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
- package/dist/esm/models/PartnerNotification.d.ts +1 -1
- package/dist/esm/models/PartnerNotificationTestEventRequest.d.ts +33 -0
- package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
- package/dist/esm/models/PartnerNotificationTestEventResult.d.ts +50 -0
- package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +44 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.js +41 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
- package/dist/esm/models/PublicCompositionEntryRequest.d.ts +1 -1
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
- package/dist/esm/models/index.d.ts +18 -77
- package/dist/esm/models/index.js +18 -77
- package/dist/models/Composition.d.ts +12 -0
- package/dist/models/Composition.js +2 -0
- package/dist/models/CompositionDataSource.d.ts +41 -0
- package/dist/models/CompositionDataSource.js +54 -0
- package/dist/models/CompositionEntriesReading.d.ts +20 -4
- package/dist/models/CompositionEntriesReading.js +3 -0
- package/dist/models/CompositionEntryAggregateTally.d.ts +15 -8
- package/dist/models/CompositionEntryAggregatesBlock.d.ts +10 -0
- package/dist/models/CompositionEntryItem.d.ts +4 -1
- package/dist/models/CompositionEntryItemsMeta.d.ts +8 -0
- package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
- package/dist/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
- package/dist/models/GetPublicCompositionEmbed200Response.js +74 -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/GetPublicCompositionEmbed403Response.d.ts +51 -0
- package/dist/models/GetPublicCompositionEmbed403Response.js +55 -0
- package/dist/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
- package/dist/models/GetPublicCompositionEmbed403ResponseDetails.js +58 -0
- package/dist/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
- package/dist/models/GetPublicCompositionEmbed404Response.js +59 -0
- package/dist/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
- package/dist/models/GetPublicCompositionEmbed429Response.js +50 -0
- package/dist/models/ManagedUserEntryItem.d.ts +4 -1
- package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
- package/dist/models/PartnerEntryContextSecret.js +55 -0
- package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
- package/dist/models/PartnerEntryContextSigning.js +70 -0
- package/dist/models/PartnerNotification.d.ts +1 -1
- 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/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
- package/dist/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
- package/dist/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
- package/dist/models/PostPublicCompositionEmbedStatus429Response.js +48 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
- package/dist/models/PublicCompositionEntryRequest.d.ts +1 -1
- package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
- package/dist/models/index.d.ts +18 -77
- package/dist/models/index.js +18 -77
- package/package.json +1 -1
- package/dist/apis/AgentRepositoryManagementApi.d.ts +0 -32
- package/dist/apis/AgentRepositoryManagementApi.js +0 -75
- package/dist/apis/EnterpriseCustomizationsApi.d.ts +0 -87
- package/dist/apis/EnterpriseCustomizationsApi.js +0 -233
- package/dist/apis/UIComponentsApi.d.ts +0 -96
- package/dist/apis/UIComponentsApi.js +0 -209
- package/dist/apis/WorkflowsApi.d.ts +0 -44
- package/dist/apis/WorkflowsApi.js +0 -111
- package/dist/esm/apis/AgentRepositoryManagementApi.d.ts +0 -32
- package/dist/esm/apis/AgentRepositoryManagementApi.js +0 -71
- package/dist/esm/apis/EnterpriseCustomizationsApi.d.ts +0 -87
- package/dist/esm/apis/EnterpriseCustomizationsApi.js +0 -229
- package/dist/esm/apis/UIComponentsApi.d.ts +0 -96
- package/dist/esm/apis/UIComponentsApi.js +0 -205
- package/dist/esm/apis/WorkflowsApi.d.ts +0 -44
- package/dist/esm/apis/WorkflowsApi.js +0 -107
- package/dist/esm/models/AgentRepositoriesRepoIdSyncPost202Response.d.ts +0 -32
- package/dist/esm/models/AgentRepositoriesRepoIdSyncPost202Response.js +0 -41
- package/dist/esm/models/AgentRepositoriesRepoIdSyncPostRequest.d.ts +0 -32
- package/dist/esm/models/AgentRepositoriesRepoIdSyncPostRequest.js +0 -43
- package/dist/esm/models/AgentTasksTaskIdStatusPutRequest.d.ts +0 -54
- package/dist/esm/models/AgentTasksTaskIdStatusPutRequest.js +0 -60
- package/dist/esm/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.js +0 -41
- package/dist/esm/models/ApiV1AdminBillingGrantsPostRequest.d.ts +0 -82
- package/dist/esm/models/ApiV1AdminBillingGrantsPostRequest.js +0 -79
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +0 -41
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +0 -43
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.d.ts +0 -64
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.js +0 -60
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +0 -71
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +0 -59
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +0 -48
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +0 -70
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +0 -62
- package/dist/esm/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.d.ts +0 -46
- package/dist/esm/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.js +0 -52
- package/dist/esm/models/ApiV1BillingPricingGet200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingPricingGet200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingPricingGet200ResponseData.d.ts +0 -46
- package/dist/esm/models/ApiV1BillingPricingGet200ResponseData.js +0 -47
- package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataPlansInner.d.ts +0 -68
- package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataPlansInner.js +0 -53
- package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataTrial.d.ts +0 -44
- package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataTrial.js +0 -45
- package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.d.ts +0 -33
- package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.js +0 -42
- package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.d.ts +0 -68
- package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.js +0 -53
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.js +0 -41
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -41
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.js +0 -41
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.js +0 -41
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.d.ts +0 -120
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.js +0 -76
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.d.ts +0 -38
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.js +0 -43
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.d.ts +0 -38
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.js +0 -43
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +0 -53
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +0 -58
- package/dist/esm/models/ApiV1MetricsGet200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1MetricsGet200Response.js +0 -44
- package/dist/esm/models/ApiV1MetricsGet200ResponseData.d.ts +0 -56
- package/dist/esm/models/ApiV1MetricsGet200ResponseData.js +0 -50
- package/dist/esm/models/ApiV1MetricsGet200ResponseDataErrorsValue.d.ts +0 -44
- package/dist/esm/models/ApiV1MetricsGet200ResponseDataErrorsValue.js +0 -45
- package/dist/esm/models/ApiV1MetricsGet200ResponseDataLatencyValue.d.ts +0 -50
- package/dist/esm/models/ApiV1MetricsGet200ResponseDataLatencyValue.js +0 -47
- package/dist/esm/models/ApiV1MetricsLatencyGet200Response.d.ts +0 -41
- package/dist/esm/models/ApiV1MetricsLatencyGet200Response.js +0 -45
- package/dist/esm/models/ApiV1MetricsLatencyGet200ResponseDataValue.d.ts +0 -62
- package/dist/esm/models/ApiV1MetricsLatencyGet200ResponseDataValue.js +0 -51
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +0 -71
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +0 -59
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +0 -48
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +0 -38
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +0 -43
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +0 -44
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +0 -45
- package/dist/esm/models/CancelCurrentSubscription200Response.d.ts +0 -45
- package/dist/esm/models/CancelCurrentSubscription200Response.js +0 -46
- package/dist/esm/models/CancelCurrentSubscriptionRequest.d.ts +0 -44
- package/dist/esm/models/CancelCurrentSubscriptionRequest.js +0 -45
- package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.d.ts +0 -38
- package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.js +0 -43
- package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.d.ts +0 -38
- package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.js +0 -47
- package/dist/esm/models/ComponentManifest.d.ts +0 -52
- package/dist/esm/models/ComponentManifest.js +0 -49
- package/dist/esm/models/ComponentManifestAssets.d.ts +0 -38
- package/dist/esm/models/ComponentManifestAssets.js +0 -43
- package/dist/esm/models/ComponentManifestConfig.d.ts +0 -44
- package/dist/esm/models/ComponentManifestConfig.js +0 -45
- package/dist/esm/models/CreateCheckoutSession200Response.d.ts +0 -38
- package/dist/esm/models/CreateCheckoutSession200Response.js +0 -43
- package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +0 -32
- package/dist/esm/models/CreateCheckoutSessionRequest.js +0 -43
- package/dist/esm/models/CreateComposition201Response.d.ts +0 -39
- package/dist/esm/models/CreateComposition201Response.js +0 -44
- package/dist/esm/models/DevelopmentPlan.d.ts +0 -97
- package/dist/esm/models/DevelopmentPlan.js +0 -69
- package/dist/esm/models/DevelopmentTask.d.ts +0 -90
- package/dist/esm/models/DevelopmentTask.js +0 -66
- package/dist/esm/models/EnterpriseCustomization.d.ts +0 -125
- package/dist/esm/models/EnterpriseCustomization.js +0 -77
- package/dist/esm/models/GenerateComponentWorkflowInput.d.ts +0 -56
- package/dist/esm/models/GenerateComponentWorkflowInput.js +0 -55
- package/dist/esm/models/GenerateMixedComponentInput.d.ts +0 -62
- package/dist/esm/models/GenerateMixedComponentInput.js +0 -59
- package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataBreakdown.d.ts +0 -44
- package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataBreakdown.js +0 -45
- package/dist/esm/models/ListComponents200Response.d.ts +0 -33
- package/dist/esm/models/ListComponents200Response.js +0 -42
- package/dist/esm/models/ListEnterpriseCustomizations200Response.d.ts +0 -40
- package/dist/esm/models/ListEnterpriseCustomizations200Response.js +0 -45
- package/dist/esm/models/ListEnterpriseCustomizations200ResponsePagination.d.ts +0 -50
- package/dist/esm/models/ListEnterpriseCustomizations200ResponsePagination.js +0 -47
- package/dist/esm/models/MountRequest.d.ts +0 -45
- package/dist/esm/models/MountRequest.js +0 -48
- package/dist/esm/models/MountRequestTheme.d.ts +0 -54
- package/dist/esm/models/MountRequestTheme.js +0 -54
- package/dist/esm/models/MountRequestThemeColors.d.ts +0 -50
- package/dist/esm/models/MountRequestThemeColors.js +0 -47
- package/dist/esm/models/MountRequestThemeTypography.d.ts +0 -38
- package/dist/esm/models/MountRequestThemeTypography.js +0 -43
- package/dist/esm/models/MountResponse.d.ts +0 -46
- package/dist/esm/models/MountResponse.js +0 -50
- package/dist/esm/models/NewWidgetComponentsMetadataInner.d.ts +0 -64
- package/dist/esm/models/NewWidgetComponentsMetadataInner.js +0 -53
- package/dist/esm/models/NewWidgetComponentsMetadataInnerPosition.d.ts +0 -38
- package/dist/esm/models/NewWidgetComponentsMetadataInnerPosition.js +0 -43
- package/dist/esm/models/NewWidgetComponentsMetadataInnerSize.d.ts +0 -38
- package/dist/esm/models/NewWidgetComponentsMetadataInnerSize.js +0 -43
- package/dist/esm/models/PurchaseStoragePack200ResponseDataPaymentIntent.d.ts +0 -50
- package/dist/esm/models/PurchaseStoragePack200ResponseDataPaymentIntent.js +0 -47
- package/dist/esm/models/RollbackComponentRequest.d.ts +0 -38
- package/dist/esm/models/RollbackComponentRequest.js +0 -45
- package/dist/esm/models/UIComponent.d.ts +0 -65
- package/dist/esm/models/UIComponent.js +0 -57
- package/dist/esm/models/UpdateCompositionRequest.d.ts +0 -38
- package/dist/esm/models/UpdateCompositionRequest.js +0 -43
- package/dist/esm/models/UpdateCurrentSubscriptionRequest.d.ts +0 -38
- package/dist/esm/models/UpdateCurrentSubscriptionRequest.js +0 -43
- package/dist/esm/models/UpdateEnterpriseCustomizationRequest.d.ts +0 -95
- package/dist/esm/models/UpdateEnterpriseCustomizationRequest.js +0 -67
- package/dist/esm/models/WorkflowAcceptedResponse.d.ts +0 -38
- package/dist/esm/models/WorkflowAcceptedResponse.js +0 -43
- package/dist/models/AgentRepositoriesRepoIdSyncPost202Response.d.ts +0 -32
- package/dist/models/AgentRepositoriesRepoIdSyncPost202Response.js +0 -48
- package/dist/models/AgentRepositoriesRepoIdSyncPostRequest.d.ts +0 -32
- package/dist/models/AgentRepositoriesRepoIdSyncPostRequest.js +0 -50
- package/dist/models/AgentTasksTaskIdStatusPutRequest.d.ts +0 -54
- package/dist/models/AgentTasksTaskIdStatusPutRequest.js +0 -68
- package/dist/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.d.ts +0 -32
- package/dist/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.js +0 -48
- package/dist/models/ApiV1AdminBillingGrantsPostRequest.d.ts +0 -82
- package/dist/models/ApiV1AdminBillingGrantsPostRequest.js +0 -87
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +0 -32
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +0 -48
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +0 -32
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +0 -50
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.d.ts +0 -64
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.js +0 -68
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +0 -71
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +0 -67
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +0 -55
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +0 -70
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +0 -70
- package/dist/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.d.ts +0 -46
- package/dist/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.js +0 -60
- package/dist/models/ApiV1BillingPricingGet200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingPricingGet200Response.js +0 -51
- package/dist/models/ApiV1BillingPricingGet200ResponseData.d.ts +0 -46
- package/dist/models/ApiV1BillingPricingGet200ResponseData.js +0 -54
- package/dist/models/ApiV1BillingPricingGet200ResponseDataPlansInner.d.ts +0 -68
- package/dist/models/ApiV1BillingPricingGet200ResponseDataPlansInner.js +0 -60
- package/dist/models/ApiV1BillingPricingGet200ResponseDataTrial.d.ts +0 -44
- package/dist/models/ApiV1BillingPricingGet200ResponseDataTrial.js +0 -52
- package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.d.ts +0 -33
- package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.js +0 -49
- package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.d.ts +0 -68
- package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.js +0 -60
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.js +0 -48
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -48
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.js +0 -48
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.js +0 -48
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.d.ts +0 -120
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.js +0 -84
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.d.ts +0 -38
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.js +0 -50
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.d.ts +0 -38
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.js +0 -50
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +0 -53
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +0 -66
- package/dist/models/ApiV1MetricsGet200Response.d.ts +0 -39
- package/dist/models/ApiV1MetricsGet200Response.js +0 -51
- package/dist/models/ApiV1MetricsGet200ResponseData.d.ts +0 -56
- package/dist/models/ApiV1MetricsGet200ResponseData.js +0 -57
- package/dist/models/ApiV1MetricsGet200ResponseDataErrorsValue.d.ts +0 -44
- package/dist/models/ApiV1MetricsGet200ResponseDataErrorsValue.js +0 -52
- package/dist/models/ApiV1MetricsGet200ResponseDataLatencyValue.d.ts +0 -50
- package/dist/models/ApiV1MetricsGet200ResponseDataLatencyValue.js +0 -54
- package/dist/models/ApiV1MetricsLatencyGet200Response.d.ts +0 -41
- package/dist/models/ApiV1MetricsLatencyGet200Response.js +0 -52
- package/dist/models/ApiV1MetricsLatencyGet200ResponseDataValue.d.ts +0 -62
- package/dist/models/ApiV1MetricsLatencyGet200ResponseDataValue.js +0 -58
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +0 -71
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +0 -67
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +0 -55
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +0 -38
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +0 -50
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +0 -44
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +0 -52
- package/dist/models/CancelCurrentSubscription200Response.d.ts +0 -45
- package/dist/models/CancelCurrentSubscription200Response.js +0 -53
- package/dist/models/CancelCurrentSubscriptionRequest.d.ts +0 -44
- package/dist/models/CancelCurrentSubscriptionRequest.js +0 -52
- package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.d.ts +0 -38
- package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.js +0 -50
- package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.d.ts +0 -38
- package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.js +0 -54
- package/dist/models/ComponentManifest.d.ts +0 -52
- package/dist/models/ComponentManifest.js +0 -56
- package/dist/models/ComponentManifestAssets.d.ts +0 -38
- package/dist/models/ComponentManifestAssets.js +0 -50
- package/dist/models/ComponentManifestConfig.d.ts +0 -44
- package/dist/models/ComponentManifestConfig.js +0 -52
- package/dist/models/CreateCheckoutSession200Response.d.ts +0 -38
- package/dist/models/CreateCheckoutSession200Response.js +0 -50
- package/dist/models/CreateCheckoutSessionRequest.d.ts +0 -32
- package/dist/models/CreateCheckoutSessionRequest.js +0 -50
- package/dist/models/CreateComposition201Response.d.ts +0 -39
- package/dist/models/CreateComposition201Response.js +0 -51
- package/dist/models/DevelopmentPlan.d.ts +0 -97
- package/dist/models/DevelopmentPlan.js +0 -77
- package/dist/models/DevelopmentTask.d.ts +0 -90
- package/dist/models/DevelopmentTask.js +0 -74
- package/dist/models/EnterpriseCustomization.d.ts +0 -125
- package/dist/models/EnterpriseCustomization.js +0 -85
- package/dist/models/GenerateComponentWorkflowInput.d.ts +0 -56
- package/dist/models/GenerateComponentWorkflowInput.js +0 -62
- package/dist/models/GenerateMixedComponentInput.d.ts +0 -62
- package/dist/models/GenerateMixedComponentInput.js +0 -66
- package/dist/models/GetOrganizationStorageUsage200ResponseDataBreakdown.d.ts +0 -44
- package/dist/models/GetOrganizationStorageUsage200ResponseDataBreakdown.js +0 -52
- package/dist/models/ListComponents200Response.d.ts +0 -33
- package/dist/models/ListComponents200Response.js +0 -49
- package/dist/models/ListEnterpriseCustomizations200Response.d.ts +0 -40
- package/dist/models/ListEnterpriseCustomizations200Response.js +0 -52
- package/dist/models/ListEnterpriseCustomizations200ResponsePagination.d.ts +0 -50
- package/dist/models/ListEnterpriseCustomizations200ResponsePagination.js +0 -54
- package/dist/models/MountRequest.d.ts +0 -45
- package/dist/models/MountRequest.js +0 -55
- package/dist/models/MountRequestTheme.d.ts +0 -54
- package/dist/models/MountRequestTheme.js +0 -62
- package/dist/models/MountRequestThemeColors.d.ts +0 -50
- package/dist/models/MountRequestThemeColors.js +0 -54
- package/dist/models/MountRequestThemeTypography.d.ts +0 -38
- package/dist/models/MountRequestThemeTypography.js +0 -50
- package/dist/models/MountResponse.d.ts +0 -46
- package/dist/models/MountResponse.js +0 -58
- package/dist/models/NewWidgetComponentsMetadataInner.d.ts +0 -64
- package/dist/models/NewWidgetComponentsMetadataInner.js +0 -60
- package/dist/models/NewWidgetComponentsMetadataInnerPosition.d.ts +0 -38
- package/dist/models/NewWidgetComponentsMetadataInnerPosition.js +0 -50
- package/dist/models/NewWidgetComponentsMetadataInnerSize.d.ts +0 -38
- package/dist/models/NewWidgetComponentsMetadataInnerSize.js +0 -50
- package/dist/models/PurchaseStoragePack200ResponseDataPaymentIntent.d.ts +0 -50
- package/dist/models/PurchaseStoragePack200ResponseDataPaymentIntent.js +0 -54
- package/dist/models/RollbackComponentRequest.d.ts +0 -38
- package/dist/models/RollbackComponentRequest.js +0 -52
- package/dist/models/UIComponent.d.ts +0 -65
- package/dist/models/UIComponent.js +0 -65
- package/dist/models/UpdateCompositionRequest.d.ts +0 -38
- package/dist/models/UpdateCompositionRequest.js +0 -50
- package/dist/models/UpdateCurrentSubscriptionRequest.d.ts +0 -38
- package/dist/models/UpdateCurrentSubscriptionRequest.js +0 -50
- package/dist/models/UpdateEnterpriseCustomizationRequest.d.ts +0 -95
- package/dist/models/UpdateEnterpriseCustomizationRequest.js +0 -75
- package/dist/models/WorkflowAcceptedResponse.d.ts +0 -38
- package/dist/models/WorkflowAcceptedResponse.js +0 -50
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { AddPartnerCreditsRequestToJSON, ConfigureAutoReloadRequestToJSON, GetPartnerCreditBalance200ResponseFromJSON, GetPartnerDesignDefaults200ResponseFromJSON, ListPartnerPresets200ResponseFromJSON, MyPartnersFromJSON, PartnerAnalyticsByManagedUserFromJSON, PartnerAnalyticsSummaryFromJSON, PartnerAnalyticsTimelineFromJSON, PartnerAnalyticsTopWidgetsFromJSON, PartnerContractFromJSON, PartnerNotificationDeliveryFromJSON, PartnerNotificationDeliveryLogFromJSON, PartnerNotificationPageFromJSON, PartnerNotificationSettingsFromJSON, PartnerNotificationSettingsChangeFromJSON, PartnerPresetFromJSON, PartnerPresetRemovalFromJSON, PartnerStorageDestinationFromJSON, PartnerStorageRemovalFromJSON, PartnerStorageUsageFromJSON, SetPartnerDesignDefaultsRequestToJSON, SetPartnerPresetRequestToJSON, SetPartnerStorageDestinationRequestToJSON, UpdatePartnerNotificationSettingsRequestToJSON, } from '../models/index.js';
|
|
24
|
+
import { AddPartnerCreditsRequestToJSON, ConfigureAutoReloadRequestToJSON, GetPartnerCreditBalance200ResponseFromJSON, GetPartnerDesignDefaults200ResponseFromJSON, ListPartnerPresets200ResponseFromJSON, MyPartnersFromJSON, PartnerAnalyticsByManagedUserFromJSON, PartnerAnalyticsSummaryFromJSON, PartnerAnalyticsTimelineFromJSON, PartnerAnalyticsTopWidgetsFromJSON, PartnerContractFromJSON, PartnerEntryContextSecretFromJSON, PartnerEntryContextSigningFromJSON, PartnerNotificationDeliveryFromJSON, PartnerNotificationDeliveryLogFromJSON, PartnerNotificationPageFromJSON, PartnerNotificationSettingsFromJSON, PartnerNotificationSettingsChangeFromJSON, PartnerNotificationTestEventRequestToJSON, PartnerNotificationTestEventResultFromJSON, PartnerPresetFromJSON, PartnerPresetRemovalFromJSON, PartnerStorageDestinationFromJSON, PartnerStorageRemovalFromJSON, PartnerStorageUsageFromJSON, SetPartnerDesignDefaultsRequestToJSON, SetPartnerPresetRequestToJSON, SetPartnerStorageDestinationRequestToJSON, UpdatePartnerEntryContextSigningRequestToJSON, UpdatePartnerNotificationSettingsRequestToJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -573,6 +573,43 @@ export class PartnersApi extends runtime.BaseAPI {
|
|
|
573
573
|
return yield response.value();
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* Says whether you have a secret to sign the `context` of your embeds with, when it was made, whether the secret it replaced is still accepted, and whether an entry without a valid signature is refused (`required`). The secret itself is never part of the answer: it is shown once, when it is made (`rotatePartnerEntryContextSecret`, which also explains what signing is for and how to sign). Signing covers the entries written through the gateway into the compositions of your managed users and into those of your own account. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
|
|
578
|
+
* See how the context of your embeds is signed
|
|
579
|
+
*/
|
|
580
|
+
getPartnerEntryContextSigningRaw(requestParameters, initOverrides) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
582
|
+
if (requestParameters['partnerId'] == null) {
|
|
583
|
+
throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling getPartnerEntryContextSigning().');
|
|
584
|
+
}
|
|
585
|
+
const queryParameters = {};
|
|
586
|
+
const headerParameters = {};
|
|
587
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
588
|
+
const token = this.configuration.accessToken;
|
|
589
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
590
|
+
if (tokenString) {
|
|
591
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
const response = yield this.request({
|
|
595
|
+
path: `/partners/{partnerId}/entry-context-signing`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
596
|
+
method: 'GET',
|
|
597
|
+
headers: headerParameters,
|
|
598
|
+
query: queryParameters,
|
|
599
|
+
}, initOverrides);
|
|
600
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PartnerEntryContextSigningFromJSON(jsonValue));
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Says whether you have a secret to sign the `context` of your embeds with, when it was made, whether the secret it replaced is still accepted, and whether an entry without a valid signature is refused (`required`). The secret itself is never part of the answer: it is shown once, when it is made (`rotatePartnerEntryContextSecret`, which also explains what signing is for and how to sign). Signing covers the entries written through the gateway into the compositions of your managed users and into those of your own account. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
|
|
605
|
+
* See how the context of your embeds is signed
|
|
606
|
+
*/
|
|
607
|
+
getPartnerEntryContextSigning(requestParameters, initOverrides) {
|
|
608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
const response = yield this.getPartnerEntryContextSigningRaw(requestParameters, initOverrides);
|
|
610
|
+
return yield response.value();
|
|
611
|
+
});
|
|
612
|
+
}
|
|
576
613
|
/**
|
|
577
614
|
* Returns who gets the emails, which events you want by email and by webhook, the address of your webhook, and whether it has a secret to sign with. The secret itself is never returned: it is shown once, when it is made. `events` lists every kind of event there is, for a settings screen. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
|
|
578
615
|
* Where your notifications go
|
|
@@ -930,6 +967,46 @@ export class PartnersApi extends runtime.BaseAPI {
|
|
|
930
967
|
return yield response.value();
|
|
931
968
|
});
|
|
932
969
|
}
|
|
970
|
+
/**
|
|
971
|
+
* Makes a secret to sign the `context` of your embeds with, and returns it in `secret`: **keep it now, it is shown once** and cannot be read again. Keep it on your server only: whoever holds it can write contexts your compositions accept. Call this again to make a new secret; the one it replaces is still accepted for a day, so that your server can switch without an entry being refused (making another within that day ends the overlap with the first). **What signing is for.** `<widgetic composition-id=\"...\" context=\'{\"customerId\":\"c_42\"}\'>` hands attribution to a widget, which sends it with every entry it saves. The page is yours but the browser is the visitor\'s: anybody can change that attribute and file an entry under another customer\'s id. When your server signs the context, the gateway refuses an entry whose context was changed, and the entries you keep hold attribution your server wrote. **How to sign** (on your server, for each page you render): 1. Take the context to give the widget. It may hold text and whole numbers only (within ±2^53, written without a fraction or an exponent). 2. Choose when the signature stops being good: `widgetic_exp`, in seconds since 1970 (UTC), no more than seven days from now. A minute of difference between clocks is forgiven. 3. Write the text to sign, with no spaces except those inside values: `widgetic-context.v1.<compositionId>.<widgetic_exp>.<json>`. `<compositionId>` is the id of the composition in lower case. `<json>` is the context as JSON with the keys in character-code order (so `Z` comes before `a`, and `10` before `9`), no spaces, strings escaped as JSON escapes them, and the two keys of the signature left out. 4. Sign that text: HMAC-SHA256 with the 32 bytes the secret stands for (the base64 text after `ctxsec_`), and write the result as base64url without padding. 5. Give the widget the context with two keys added: `widgetic_exp` and `widgetic_sig` (the signature). The whole attribute, the two keys included, stays within the limits of any context: at most 20 keys, 2048 bytes of JSON, strings up to 500 characters. The two keys take two of the 20 keys and 87 bytes of the 2048. A test vector, to check your code against before you rely on it. Secret `ctxsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=` (the bytes 0 to 31), composition `7c9e6679-7425-40de-944b-e07fc1f90ae7`, `widgetic_exp` 1792000000 and context `{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` sign the text `widgetic-context.v1.7c9e6679-7425-40de-944b-e07fc1f90ae7.1792000000.{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` and give the signature `j6g7151F54tl9C8oEY9levaYSppHME4fAPZ7WPwL8C8`. (The secret is the example\'s, not a real one.) **What the gateway does with an entry.** When you have a secret, an entry whose context carries a signature is checked: a signature that does not match is refused with 403 `CONTEXT_SIGNATURE_INVALID`, and one that is past `widgetic_exp` with 403 `CONTEXT_SIGNATURE_EXPIRED`. When you also require signatures (`updatePartnerEntryContextSigning`) an entry whose context carries none is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`. The two keys are taken out before the entry is stored or announced: your entries and your `entry.created` events hold the context you wrote. A change you make reaches every part of the gateway within a minute. **What it does not do.** A signed context that has been seen (a page\'s source is public) can be sent again by anyone until `widgetic_exp`; when you must not accept the same context twice, put a value that is new for each page view in it (a `submissionId` you made up) and keep the ones you have seen. The signature covers the entries that reach Widgetic\'s gateway: a widget that writes straight into its own database does not pass through it. Retry this call with the same `Idempotency-Key` if its answer was lost: the answer, secret included, is then given again, and no second secret is made. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
|
|
972
|
+
* Make a secret to sign the context of your embeds
|
|
973
|
+
*/
|
|
974
|
+
rotatePartnerEntryContextSecretRaw(requestParameters, initOverrides) {
|
|
975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
976
|
+
if (requestParameters['partnerId'] == null) {
|
|
977
|
+
throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling rotatePartnerEntryContextSecret().');
|
|
978
|
+
}
|
|
979
|
+
const queryParameters = {};
|
|
980
|
+
const headerParameters = {};
|
|
981
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
982
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
983
|
+
}
|
|
984
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
985
|
+
const token = this.configuration.accessToken;
|
|
986
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
987
|
+
if (tokenString) {
|
|
988
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
const response = yield this.request({
|
|
992
|
+
path: `/partners/{partnerId}/entry-context-signing/secret`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
993
|
+
method: 'POST',
|
|
994
|
+
headers: headerParameters,
|
|
995
|
+
query: queryParameters,
|
|
996
|
+
}, initOverrides);
|
|
997
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PartnerEntryContextSecretFromJSON(jsonValue));
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* Makes a secret to sign the `context` of your embeds with, and returns it in `secret`: **keep it now, it is shown once** and cannot be read again. Keep it on your server only: whoever holds it can write contexts your compositions accept. Call this again to make a new secret; the one it replaces is still accepted for a day, so that your server can switch without an entry being refused (making another within that day ends the overlap with the first). **What signing is for.** `<widgetic composition-id=\"...\" context=\'{\"customerId\":\"c_42\"}\'>` hands attribution to a widget, which sends it with every entry it saves. The page is yours but the browser is the visitor\'s: anybody can change that attribute and file an entry under another customer\'s id. When your server signs the context, the gateway refuses an entry whose context was changed, and the entries you keep hold attribution your server wrote. **How to sign** (on your server, for each page you render): 1. Take the context to give the widget. It may hold text and whole numbers only (within ±2^53, written without a fraction or an exponent). 2. Choose when the signature stops being good: `widgetic_exp`, in seconds since 1970 (UTC), no more than seven days from now. A minute of difference between clocks is forgiven. 3. Write the text to sign, with no spaces except those inside values: `widgetic-context.v1.<compositionId>.<widgetic_exp>.<json>`. `<compositionId>` is the id of the composition in lower case. `<json>` is the context as JSON with the keys in character-code order (so `Z` comes before `a`, and `10` before `9`), no spaces, strings escaped as JSON escapes them, and the two keys of the signature left out. 4. Sign that text: HMAC-SHA256 with the 32 bytes the secret stands for (the base64 text after `ctxsec_`), and write the result as base64url without padding. 5. Give the widget the context with two keys added: `widgetic_exp` and `widgetic_sig` (the signature). The whole attribute, the two keys included, stays within the limits of any context: at most 20 keys, 2048 bytes of JSON, strings up to 500 characters. The two keys take two of the 20 keys and 87 bytes of the 2048. A test vector, to check your code against before you rely on it. Secret `ctxsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=` (the bytes 0 to 31), composition `7c9e6679-7425-40de-944b-e07fc1f90ae7`, `widgetic_exp` 1792000000 and context `{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` sign the text `widgetic-context.v1.7c9e6679-7425-40de-944b-e07fc1f90ae7.1792000000.{\"customerId\":\"c_42\",\"plan\":\"pro\",\"seats\":3}` and give the signature `j6g7151F54tl9C8oEY9levaYSppHME4fAPZ7WPwL8C8`. (The secret is the example\'s, not a real one.) **What the gateway does with an entry.** When you have a secret, an entry whose context carries a signature is checked: a signature that does not match is refused with 403 `CONTEXT_SIGNATURE_INVALID`, and one that is past `widgetic_exp` with 403 `CONTEXT_SIGNATURE_EXPIRED`. When you also require signatures (`updatePartnerEntryContextSigning`) an entry whose context carries none is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`. The two keys are taken out before the entry is stored or announced: your entries and your `entry.created` events hold the context you wrote. A change you make reaches every part of the gateway within a minute. **What it does not do.** A signed context that has been seen (a page\'s source is public) can be sent again by anyone until `widgetic_exp`; when you must not accept the same context twice, put a value that is new for each page view in it (a `submissionId` you made up) and keep the ones you have seen. The signature covers the entries that reach Widgetic\'s gateway: a widget that writes straight into its own database does not pass through it. Retry this call with the same `Idempotency-Key` if its answer was lost: the answer, secret included, is then given again, and no second secret is made. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
|
|
1002
|
+
* Make a secret to sign the context of your embeds
|
|
1003
|
+
*/
|
|
1004
|
+
rotatePartnerEntryContextSecret(requestParameters, initOverrides) {
|
|
1005
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1006
|
+
const response = yield this.rotatePartnerEntryContextSecretRaw(requestParameters, initOverrides);
|
|
1007
|
+
return yield response.value();
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
933
1010
|
/**
|
|
934
1011
|
* Makes a new secret to sign your webhook with, and returns it in `webhookSecret`: **keep it now, it is shown once** and cannot be read again. Use it when the secret was lost, or may have leaked. The secret you had keeps signing beside the new one for a day, so that your receiver can switch without a call being rejected: during that day each call carries two signatures (see `updatePartnerNotificationSettings` for how they are verified). Rotating again within the day ends the overlap with the first secret. Retry this call with the same `Idempotency-Key` if its answer was lost: the answer, secret included, is then given again, and no second secret is made. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
|
|
935
1012
|
* Make a new secret for your webhook
|
|
@@ -970,6 +1047,51 @@ export class PartnersApi extends runtime.BaseAPI {
|
|
|
970
1047
|
return yield response.value();
|
|
971
1048
|
});
|
|
972
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Sends ONE signed call, right now, to the webhook address you saved under notification settings, with a sample of what an event of the type you name carries, and answers how it went: whether your receiver answered with a 2xx status, which status, how long it took, and why not when it did not arrive. Use it to write and try your receiver (above all the signature check) before a real event happens. The call is made like every other: it is signed with your current secret (and the previous one while a rotation overlaps), it carries the headers `webhook-id`, `webhook-timestamp`, `webhook-signature` and `x-widgetic-event` (the event type), and its body is `{ \"id\", \"type\", \"createdAt\", \"partnerId\", \"data\" }`. Three things differ. `id` starts with `evt_test_` and is new every time, so a receiver that remembers ids can tell a test from an event and drop it. `data` holds made-up values of the shape a real event of that type carries (`PartnerNotification` describes each), never anything about your account. And the call is made once: it is not tried again, nothing is stored, and it appears neither in the delivery log nor in the notification list. It is sent whatever `webhookEvents` says: a test is not filtered by what you subscribed to. The answer is 200 whether or not your receiver took the call (read `delivered`); a call that gets no answer within ten seconds is given up and reported as a `timeout`. A webhook address and a signing secret must be saved first (`updatePartnerNotificationSettings`); until then the answer is 409. This needs an API key with full access, and `Idempotency-Key` is required: a retry with the same key gets the first answer back and no second call is made. The caller must be the person who administers the partner, or a Widgetic administrator. Five tests a minute.
|
|
1052
|
+
* Send a test event to your webhook
|
|
1053
|
+
*/
|
|
1054
|
+
sendPartnerNotificationTestEventRaw(requestParameters, initOverrides) {
|
|
1055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1056
|
+
if (requestParameters['partnerId'] == null) {
|
|
1057
|
+
throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling sendPartnerNotificationTestEvent().');
|
|
1058
|
+
}
|
|
1059
|
+
if (requestParameters['partnerNotificationTestEventRequest'] == null) {
|
|
1060
|
+
throw new runtime.RequiredError('partnerNotificationTestEventRequest', 'Required parameter "partnerNotificationTestEventRequest" was null or undefined when calling sendPartnerNotificationTestEvent().');
|
|
1061
|
+
}
|
|
1062
|
+
const queryParameters = {};
|
|
1063
|
+
const headerParameters = {};
|
|
1064
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1065
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1066
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1067
|
+
}
|
|
1068
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1069
|
+
const token = this.configuration.accessToken;
|
|
1070
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
1071
|
+
if (tokenString) {
|
|
1072
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
const response = yield this.request({
|
|
1076
|
+
path: `/partners/{partnerId}/notifications/test-event`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
1077
|
+
method: 'POST',
|
|
1078
|
+
headers: headerParameters,
|
|
1079
|
+
query: queryParameters,
|
|
1080
|
+
body: PartnerNotificationTestEventRequestToJSON(requestParameters['partnerNotificationTestEventRequest']),
|
|
1081
|
+
}, initOverrides);
|
|
1082
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PartnerNotificationTestEventResultFromJSON(jsonValue));
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Sends ONE signed call, right now, to the webhook address you saved under notification settings, with a sample of what an event of the type you name carries, and answers how it went: whether your receiver answered with a 2xx status, which status, how long it took, and why not when it did not arrive. Use it to write and try your receiver (above all the signature check) before a real event happens. The call is made like every other: it is signed with your current secret (and the previous one while a rotation overlaps), it carries the headers `webhook-id`, `webhook-timestamp`, `webhook-signature` and `x-widgetic-event` (the event type), and its body is `{ \"id\", \"type\", \"createdAt\", \"partnerId\", \"data\" }`. Three things differ. `id` starts with `evt_test_` and is new every time, so a receiver that remembers ids can tell a test from an event and drop it. `data` holds made-up values of the shape a real event of that type carries (`PartnerNotification` describes each), never anything about your account. And the call is made once: it is not tried again, nothing is stored, and it appears neither in the delivery log nor in the notification list. It is sent whatever `webhookEvents` says: a test is not filtered by what you subscribed to. The answer is 200 whether or not your receiver took the call (read `delivered`); a call that gets no answer within ten seconds is given up and reported as a `timeout`. A webhook address and a signing secret must be saved first (`updatePartnerNotificationSettings`); until then the answer is 409. This needs an API key with full access, and `Idempotency-Key` is required: a retry with the same key gets the first answer back and no second call is made. The caller must be the person who administers the partner, or a Widgetic administrator. Five tests a minute.
|
|
1087
|
+
* Send a test event to your webhook
|
|
1088
|
+
*/
|
|
1089
|
+
sendPartnerNotificationTestEvent(requestParameters, initOverrides) {
|
|
1090
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1091
|
+
const response = yield this.sendPartnerNotificationTestEventRaw(requestParameters, initOverrides);
|
|
1092
|
+
return yield response.value();
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
973
1095
|
/**
|
|
974
1096
|
* Send `{ \"design\": { ... } }` or `{ \"design\": null }` to remove. New compositions merge this layer over the widget base and under each managed user\'s default and the request body.
|
|
975
1097
|
* Set or clear partner-wide design defaults
|
|
@@ -1098,6 +1220,51 @@ export class PartnersApi extends runtime.BaseAPI {
|
|
|
1098
1220
|
return yield response.value();
|
|
1099
1221
|
});
|
|
1100
1222
|
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Chooses what the gateway does with an entry whose `context` carries no valid signature. With `required: false` (the default) an entry that carries a signature is checked and refused when the signature is wrong or out of date, and an entry that carries none is accepted, as it always was. With `required: true` an entry without a valid signature is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`: use it once every page of yours that embeds a composition signs its context. Signatures cannot be required before you have made a secret (`rotatePartnerEntryContextSecret`): the answer is 409, so that you cannot lock your own compositions out of taking entries. The change reaches every part of the gateway within a minute. Saving the same choice twice leaves the same state, so a retry is harmless and `Idempotency-Key` is optional. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
|
|
1225
|
+
* Require a signed context, or stop requiring it
|
|
1226
|
+
*/
|
|
1227
|
+
updatePartnerEntryContextSigningRaw(requestParameters, initOverrides) {
|
|
1228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1229
|
+
if (requestParameters['partnerId'] == null) {
|
|
1230
|
+
throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling updatePartnerEntryContextSigning().');
|
|
1231
|
+
}
|
|
1232
|
+
if (requestParameters['updatePartnerEntryContextSigningRequest'] == null) {
|
|
1233
|
+
throw new runtime.RequiredError('updatePartnerEntryContextSigningRequest', 'Required parameter "updatePartnerEntryContextSigningRequest" was null or undefined when calling updatePartnerEntryContextSigning().');
|
|
1234
|
+
}
|
|
1235
|
+
const queryParameters = {};
|
|
1236
|
+
const headerParameters = {};
|
|
1237
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1238
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1239
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1240
|
+
}
|
|
1241
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1242
|
+
const token = this.configuration.accessToken;
|
|
1243
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
1244
|
+
if (tokenString) {
|
|
1245
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
const response = yield this.request({
|
|
1249
|
+
path: `/partners/{partnerId}/entry-context-signing`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
1250
|
+
method: 'PUT',
|
|
1251
|
+
headers: headerParameters,
|
|
1252
|
+
query: queryParameters,
|
|
1253
|
+
body: UpdatePartnerEntryContextSigningRequestToJSON(requestParameters['updatePartnerEntryContextSigningRequest']),
|
|
1254
|
+
}, initOverrides);
|
|
1255
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PartnerEntryContextSigningFromJSON(jsonValue));
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* Chooses what the gateway does with an entry whose `context` carries no valid signature. With `required: false` (the default) an entry that carries a signature is checked and refused when the signature is wrong or out of date, and an entry that carries none is accepted, as it always was. With `required: true` an entry without a valid signature is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`: use it once every page of yours that embeds a composition signs its context. Signatures cannot be required before you have made a secret (`rotatePartnerEntryContextSecret`): the answer is 409, so that you cannot lock your own compositions out of taking entries. The change reaches every part of the gateway within a minute. Saving the same choice twice leaves the same state, so a retry is harmless and `Idempotency-Key` is optional. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
|
|
1260
|
+
* Require a signed context, or stop requiring it
|
|
1261
|
+
*/
|
|
1262
|
+
updatePartnerEntryContextSigning(requestParameters, initOverrides) {
|
|
1263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1264
|
+
const response = yield this.updatePartnerEntryContextSigningRaw(requestParameters, initOverrides);
|
|
1265
|
+
return yield response.value();
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1101
1268
|
/**
|
|
1102
1269
|
* Changes who gets the emails, which events you want by email and by webhook, and the address of your webhook. A key you leave out of the body is left as it was; send only what changes. **Email.** `emailRecipients` is the list of addresses (at most five). While it is empty the emails about invoices go to the billing emails of your billing profile (your contact email when there are none), and the others to your contact email. The events about money and about the standing of your account are always emailed, whatever `emailEvents` says; it narrows the others. **Webhook.** `webhookUrl` is where Widgetic sends a signed `POST` for each event, so that your own system can act on it (mark an invoice paid, warn your team that credits are low). The address must be `https` on the standard port, on a public site, and must not redirect. Setting an address when you have no secret yet makes one, and the answer carries it as `webhookSecret`: **keep it now, it is shown once**. `webhookEvents` narrows what is sent. Each call has a JSON body, `{ \"id\": \"evt_...\", \"type\": \"invoice.paid\", \"createdAt\": \"...\", \"partnerId\": \"...\", \"data\": { ... } }` (`data` is the `data` of `PartnerNotification`), and these headers: `webhook-id` (the same as `id`, and the same on every retry), `webhook-timestamp` (seconds since 1970) and `webhook-signature` (`v1,` and a base64 HMAC-SHA256). It is the Standard Webhooks scheme, so any of its libraries verifies it. By hand: take your secret without the `whsec_` prefix, decode it from base64, and sign the text `<webhook-id>.<webhook-timestamp>.<the raw body>` with it; the header holds `v1,<base64 of the result>` (two signatures separated by a space while a rotated secret overlaps). Reject a `webhook-timestamp` that is more than five minutes old. Answer with a 2xx status within ten seconds. Anything else is tried again, eight attempts in all over about two days (`listPartnerNotificationDeliveries` shows each). Delivery is at least once: if your answer was lost the same event arrives again with the same `id`, so drop what you have already handled by it. Changing the settings needs an API key with full access: they decide where your notifications go. The caller must be the person who administers the partner, or a Widgetic administrator.
|
|
1103
1270
|
* Choose where your notifications go
|
|
@@ -10,24 +10,63 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { PublicCompositionEntryCreated, PublicCompositionEntryRequest } from '../models/index';
|
|
13
|
+
import type { GetPublicCompositionEmbed200Response, PostPublicCompositionEmbedStatus200Response, PostPublicCompositionEmbedStatusRequest, PublicCompositionEntryCreated, PublicCompositionEntryRequest } from '../models/index';
|
|
14
14
|
export interface CreatePublicCompositionEntryRequest {
|
|
15
15
|
compositionId: string;
|
|
16
16
|
table: string;
|
|
17
17
|
publicCompositionEntryRequest: PublicCompositionEntryRequest;
|
|
18
18
|
}
|
|
19
|
+
export interface GetPublicCompositionEmbedRequest {
|
|
20
|
+
compositionId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetPublicCompositionIframeRequest {
|
|
23
|
+
compositionId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface PostPublicCompositionEmbedStatusOperationRequest {
|
|
26
|
+
postPublicCompositionEmbedStatusRequest: PostPublicCompositionEmbedStatusRequest;
|
|
27
|
+
}
|
|
19
28
|
/**
|
|
20
29
|
*
|
|
21
30
|
*/
|
|
22
31
|
export declare class PublicEmbedApi extends runtime.BaseAPI {
|
|
23
32
|
/**
|
|
24
|
-
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution
|
|
33
|
+
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
|
|
25
34
|
* Append a visitor entry through the gateway
|
|
26
35
|
*/
|
|
27
36
|
createPublicCompositionEntryRaw(requestParameters: CreatePublicCompositionEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicCompositionEntryCreated>>;
|
|
28
37
|
/**
|
|
29
|
-
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution
|
|
38
|
+
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
|
|
30
39
|
* Append a visitor entry through the gateway
|
|
31
40
|
*/
|
|
32
41
|
createPublicCompositionEntry(requestParameters: CreatePublicCompositionEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicCompositionEntryCreated>;
|
|
42
|
+
/**
|
|
43
|
+
* Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
|
|
44
|
+
* Resolve a composition UUID to a published widget URL
|
|
45
|
+
*/
|
|
46
|
+
getPublicCompositionEmbedRaw(requestParameters: GetPublicCompositionEmbedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPublicCompositionEmbed200Response>>;
|
|
47
|
+
/**
|
|
48
|
+
* Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
|
|
49
|
+
* Resolve a composition UUID to a published widget URL
|
|
50
|
+
*/
|
|
51
|
+
getPublicCompositionEmbed(requestParameters: GetPublicCompositionEmbedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicCompositionEmbed200Response>;
|
|
52
|
+
/**
|
|
53
|
+
* Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
|
|
54
|
+
* Embed a published composition with its saved values
|
|
55
|
+
*/
|
|
56
|
+
getPublicCompositionIframeRaw(requestParameters: GetPublicCompositionIframeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
57
|
+
/**
|
|
58
|
+
* Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
|
|
59
|
+
* Embed a published composition with its saved values
|
|
60
|
+
*/
|
|
61
|
+
getPublicCompositionIframe(requestParameters: GetPublicCompositionIframeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
64
|
+
* Batch-check whether compositions are currently served for embed
|
|
65
|
+
*/
|
|
66
|
+
postPublicCompositionEmbedStatusRaw(requestParameters: PostPublicCompositionEmbedStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostPublicCompositionEmbedStatus200Response>>;
|
|
67
|
+
/**
|
|
68
|
+
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
69
|
+
* Batch-check whether compositions are currently served for embed
|
|
70
|
+
*/
|
|
71
|
+
postPublicCompositionEmbedStatus(requestParameters: PostPublicCompositionEmbedStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostPublicCompositionEmbedStatus200Response>;
|
|
33
72
|
}
|
|
@@ -21,13 +21,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { PublicCompositionEntryCreatedFromJSON, PublicCompositionEntryRequestToJSON, } from '../models/index.js';
|
|
24
|
+
import { GetPublicCompositionEmbed200ResponseFromJSON, PostPublicCompositionEmbedStatus200ResponseFromJSON, PostPublicCompositionEmbedStatusRequestToJSON, PublicCompositionEntryCreatedFromJSON, PublicCompositionEntryRequestToJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class PublicEmbedApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution
|
|
30
|
+
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
|
|
31
31
|
* Append a visitor entry through the gateway
|
|
32
32
|
*/
|
|
33
33
|
createPublicCompositionEntryRaw(requestParameters, initOverrides) {
|
|
@@ -55,7 +55,7 @@ export class PublicEmbedApi extends runtime.BaseAPI {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution
|
|
58
|
+
* Public append-only write into a published composition database. No API key. The browser must send a permitted `Origin` header (the artifact iframe origin or a website the owner allowed). Host `context` is stored for partner attribution; it is not authenticated unless the partner signs it (see **Signed context**). Request bodies are limited to 16 KB before parsing. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/entries/{table}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Signed context.** A partner that wants to trust `context` (to bill a customer by it, say) makes a signing secret (`rotatePartnerEntryContextSecret`), and its server signs the context it hands to the embed. The signature travels inside `context` as two reserved keys, `widgetic_exp` (UTC seconds, at most seven days ahead) and `widgetic_sig`. The gateway checks them after the `Origin` and before anything else is judged, stored or announced, and keeps and announces the context WITHOUT them. A context that is not signed as the partner requires is refused with 403 `CONTEXT_SIGNATURE_REQUIRED`, `CONTEXT_SIGNATURE_INVALID` or `CONTEXT_SIGNATURE_EXPIRED`; when the check cannot be made just now the answer is a retryable 503 `CONTEXT_SIGNATURE_UNAVAILABLE`, never an unchecked entry. Until a partner makes a secret nothing changes: the two keys are dropped and the rest is taken as it came. A signature is good until its `widgetic_exp` and may be used again until then, so a partner that must count each submission once keeps a unique value of its own (a `submissionId`, say) in the context. The recipe and a test vector are in the description of `rotatePartnerEntryContextSecret`.
|
|
59
59
|
* Append a visitor entry through the gateway
|
|
60
60
|
*/
|
|
61
61
|
createPublicCompositionEntry(requestParameters, initOverrides) {
|
|
@@ -64,4 +64,101 @@ export class PublicEmbedApi extends runtime.BaseAPI {
|
|
|
64
64
|
return yield response.value();
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
|
|
69
|
+
* Resolve a composition UUID to a published widget URL
|
|
70
|
+
*/
|
|
71
|
+
getPublicCompositionEmbedRaw(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
if (requestParameters['compositionId'] == null) {
|
|
74
|
+
throw new runtime.RequiredError('compositionId', 'Required parameter "compositionId" was null or undefined when calling getPublicCompositionEmbed().');
|
|
75
|
+
}
|
|
76
|
+
const queryParameters = {};
|
|
77
|
+
const headerParameters = {};
|
|
78
|
+
const response = yield this.request({
|
|
79
|
+
path: `/embed/compositions/{compositionId}`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))),
|
|
80
|
+
method: 'GET',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
}, initOverrides);
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPublicCompositionEmbed200ResponseFromJSON(jsonValue));
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Public customer embed lookup. No API key. Used by embed-sdk.js on third-party sites. If the composition\'s owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers), a request from any other website is refused with 403 `DOMAIN_NOT_ALLOWED`. The website is read from the `Origin` header, or the host of `Referer` when there is no `Origin`; a request that names neither (a server, a tool) is not refused. An owner who listed nothing is not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. The list stops other websites from showing the embed in a visitor\'s browser; it does not hide the published content from someone who holds the composition ID. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** 500 calls for each visitor address and browser in one counting window, shared with the frame and the status routes. Over it the answer is 429 `RATE_LIMITED` with a `Retry-After` header.
|
|
89
|
+
* Resolve a composition UUID to a published widget URL
|
|
90
|
+
*/
|
|
91
|
+
getPublicCompositionEmbed(requestParameters, initOverrides) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const response = yield this.getPublicCompositionEmbedRaw(requestParameters, initOverrides);
|
|
94
|
+
return yield response.value();
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
|
|
99
|
+
* Embed a published composition with its saved values
|
|
100
|
+
*/
|
|
101
|
+
getPublicCompositionIframeRaw(requestParameters, initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
if (requestParameters['compositionId'] == null) {
|
|
104
|
+
throw new runtime.RequiredError('compositionId', 'Required parameter "compositionId" was null or undefined when calling getPublicCompositionIframe().');
|
|
105
|
+
}
|
|
106
|
+
const queryParameters = {};
|
|
107
|
+
const headerParameters = {};
|
|
108
|
+
const response = yield this.request({
|
|
109
|
+
path: `/embed/compositions/{compositionId}/frame`.replace(`{${"compositionId"}}`, encodeURIComponent(String(requestParameters['compositionId']))),
|
|
110
|
+
method: 'GET',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
115
|
+
return new runtime.JSONApiResponse(response);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return new runtime.TextApiResponse(response);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Public HTML wrapper with an inner published artifact iframe. No API key or SDK required. If the composition\'s owner listed the websites it may appear on, the page is sent with `Content-Security-Policy: frame-ancestors` naming those websites (and Widgetic\'s own), so a browser refuses to show it inside any other website whatever `Referer` policy that website uses. Opening the address directly still works. An owner who listed nothing is not restricted. **Address.** `https://api.widgetic.com/embed/compositions/{compositionId}/frame`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag.
|
|
124
|
+
* Embed a published composition with its saved values
|
|
125
|
+
*/
|
|
126
|
+
getPublicCompositionIframe(requestParameters, initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
const response = yield this.getPublicCompositionIframeRaw(requestParameters, initOverrides);
|
|
129
|
+
return yield response.value();
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
134
|
+
* Batch-check whether compositions are currently served for embed
|
|
135
|
+
*/
|
|
136
|
+
postPublicCompositionEmbedStatusRaw(requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
if (requestParameters['postPublicCompositionEmbedStatusRequest'] == null) {
|
|
139
|
+
throw new runtime.RequiredError('postPublicCompositionEmbedStatusRequest', 'Required parameter "postPublicCompositionEmbedStatusRequest" was null or undefined when calling postPublicCompositionEmbedStatus().');
|
|
140
|
+
}
|
|
141
|
+
const queryParameters = {};
|
|
142
|
+
const headerParameters = {};
|
|
143
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
144
|
+
const response = yield this.request({
|
|
145
|
+
path: `/embed/compositions/status`,
|
|
146
|
+
method: 'POST',
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters,
|
|
149
|
+
body: PostPublicCompositionEmbedStatusRequestToJSON(requestParameters['postPublicCompositionEmbedStatusRequest']),
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PostPublicCompositionEmbedStatus200ResponseFromJSON(jsonValue));
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Public batch health check for embed-sdk.js. No API key. Uses the same serving gate and domain policy as `GET /embed/compositions/{compositionId}`: the caller\'s website is read from `Origin`, or the host of `Referer` when there is no `Origin`. A request that names neither (a server or tool) is not refused for domain reasons. **Address.** `https://api.widgetic.com/embed/compositions/status`: the root of the API host, NOT under `/v1`. A client generated from this description for `https://api.widgetic.com/v1` must be given the base address `https://api.widgetic.com` for the calls of the `Public Embed` tag. **Limit.** The route counts against the same limit as the lookup and the frame routes: 500 calls for each visitor address and browser in one counting window. A call is ONE hit whatever the number of `ids` it carries (up to 100), so a server that checks many compositions spends one call for each hundred of them. A visitor who is over the limit gets 429 `RATE_LIMITED` for the WHOLE call, with a `Retry-After` header and no state for any id: there is no per-composition rate-limit state in the answer.
|
|
156
|
+
* Batch-check whether compositions are currently served for embed
|
|
157
|
+
*/
|
|
158
|
+
postPublicCompositionEmbedStatus(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const response = yield this.postPublicCompositionEmbedStatusRaw(requestParameters, initOverrides);
|
|
161
|
+
return yield response.value();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
67
164
|
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './AIProxyApi';
|
|
|
3
3
|
export * from './AdminApi';
|
|
4
4
|
export * from './AdminBillingApi';
|
|
5
5
|
export * from './AgentApi';
|
|
6
|
-
export * from './AgentRepositoryManagementApi';
|
|
7
6
|
export * from './AnalyticsApi';
|
|
8
7
|
export * from './AuthenticationApi';
|
|
9
8
|
export * from './BatchApi';
|
|
@@ -18,7 +17,6 @@ export * from './DemoContentsApi';
|
|
|
18
17
|
export * from './EmailApi';
|
|
19
18
|
export * from './EmailProxyApi';
|
|
20
19
|
export * from './EntitlementsApi';
|
|
21
|
-
export * from './EnterpriseCustomizationsApi';
|
|
22
20
|
export * from './FigmaProxyApi';
|
|
23
21
|
export * from './FoldersApi';
|
|
24
22
|
export * from './HealthApi';
|
|
@@ -45,12 +43,10 @@ export * from './SubscriptionPlansApi';
|
|
|
45
43
|
export * from './SubscriptionsApi';
|
|
46
44
|
export * from './TokensApi';
|
|
47
45
|
export * from './TranslationsApi';
|
|
48
|
-
export * from './UIComponentsApi';
|
|
49
46
|
export * from './UploadsApi';
|
|
50
47
|
export * from './UsageApi';
|
|
51
48
|
export * from './UsersApi';
|
|
52
49
|
export * from './WebhooksApi';
|
|
53
50
|
export * from './WidgetBuilderApi';
|
|
54
51
|
export * from './WidgetsApi';
|
|
55
|
-
export * from './WorkflowsApi';
|
|
56
52
|
export * from './WorkspacesApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -5,7 +5,6 @@ export * from './AIProxyApi.js';
|
|
|
5
5
|
export * from './AdminApi.js';
|
|
6
6
|
export * from './AdminBillingApi.js';
|
|
7
7
|
export * from './AgentApi.js';
|
|
8
|
-
export * from './AgentRepositoryManagementApi.js';
|
|
9
8
|
export * from './AnalyticsApi.js';
|
|
10
9
|
export * from './AuthenticationApi.js';
|
|
11
10
|
export * from './BatchApi.js';
|
|
@@ -20,7 +19,6 @@ export * from './DemoContentsApi.js';
|
|
|
20
19
|
export * from './EmailApi.js';
|
|
21
20
|
export * from './EmailProxyApi.js';
|
|
22
21
|
export * from './EntitlementsApi.js';
|
|
23
|
-
export * from './EnterpriseCustomizationsApi.js';
|
|
24
22
|
export * from './FigmaProxyApi.js';
|
|
25
23
|
export * from './FoldersApi.js';
|
|
26
24
|
export * from './HealthApi.js';
|
|
@@ -47,12 +45,10 @@ export * from './SubscriptionPlansApi.js';
|
|
|
47
45
|
export * from './SubscriptionsApi.js';
|
|
48
46
|
export * from './TokensApi.js';
|
|
49
47
|
export * from './TranslationsApi.js';
|
|
50
|
-
export * from './UIComponentsApi.js';
|
|
51
48
|
export * from './UploadsApi.js';
|
|
52
49
|
export * from './UsageApi.js';
|
|
53
50
|
export * from './UsersApi.js';
|
|
54
51
|
export * from './WebhooksApi.js';
|
|
55
52
|
export * from './WidgetBuilderApi.js';
|
|
56
53
|
export * from './WidgetsApi.js';
|
|
57
|
-
export * from './WorkflowsApi.js';
|
|
58
54
|
export * from './WorkspacesApi.js';
|
|
@@ -99,6 +99,18 @@ export interface Composition {
|
|
|
99
99
|
* @memberof Composition
|
|
100
100
|
*/
|
|
101
101
|
managedUserId?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the widget the composition is made from is drawn straight into the page, without a frame
|
|
104
|
+
* (`true`), or inside a frame (`false`). `null` when the widget has no published version yet. It is a
|
|
105
|
+
* fact about the widget's published version, so every composition of one widget answers the same, and it
|
|
106
|
+
* changes when you publish another version. It cannot be set. Only `getCompositionById` returns it:
|
|
107
|
+
* the other calls that return a composition leave it out, and so does that one on the rare occasion the
|
|
108
|
+
* answer could not be worked out just then (ask again).
|
|
109
|
+
*
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof Composition
|
|
112
|
+
*/
|
|
113
|
+
direct?: boolean | null;
|
|
102
114
|
}
|
|
103
115
|
/**
|
|
104
116
|
* @export
|
|
@@ -63,6 +63,7 @@ export function CompositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
64
64
|
'projectId': json['projectId'] == null ? undefined : json['projectId'],
|
|
65
65
|
'managedUserId': json['managedUserId'] == null ? undefined : json['managedUserId'],
|
|
66
|
+
'direct': json['direct'] == null ? undefined : json['direct'],
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
export function CompositionToJSON(json) {
|
|
@@ -87,5 +88,6 @@ export function CompositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
88
|
'databaseId': value['databaseId'],
|
|
88
89
|
'projectId': value['projectId'],
|
|
89
90
|
'managedUserId': value['managedUserId'],
|
|
91
|
+
'direct': value['direct'],
|
|
90
92
|
};
|
|
91
93
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The public JSON address a composition's widget reads when it loads and again every `refreshSeconds`. One
|
|
14
|
+
* per composition: binding another replaces it. It is sent as `refresh_seconds` (the request body keeps the
|
|
15
|
+
* snake case it always had) and answered as `refreshSeconds`, like every answer of the API.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CompositionDataSource
|
|
19
|
+
*/
|
|
20
|
+
export interface CompositionDataSource {
|
|
21
|
+
/**
|
|
22
|
+
* The https address as it was saved, after the checks (a public host, never loopback, link-local or a metadata address)
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CompositionDataSource
|
|
25
|
+
*/
|
|
26
|
+
url: string;
|
|
27
|
+
/**
|
|
28
|
+
* How often the widget reads the address again, in seconds
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof CompositionDataSource
|
|
31
|
+
*/
|
|
32
|
+
refreshSeconds: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CompositionDataSource interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfCompositionDataSource(value: object): value is CompositionDataSource;
|
|
38
|
+
export declare function CompositionDataSourceFromJSON(json: any): CompositionDataSource;
|
|
39
|
+
export declare function CompositionDataSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompositionDataSource;
|
|
40
|
+
export declare function CompositionDataSourceToJSON(json: any): CompositionDataSource;
|
|
41
|
+
export declare function CompositionDataSourceToJSONTyped(value?: CompositionDataSource | null, ignoreDiscriminator?: boolean): any;
|