├── .fernignore ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .mock ├── definition │ ├── __package__.yml │ ├── accessGroups.yml │ ├── api.yml │ ├── assets.yml │ ├── collections.yml │ ├── collections │ │ ├── fields.yml │ │ └── items.yml │ ├── components.yml │ ├── ecommerce.yml │ ├── forms.yml │ ├── inventory.yml │ ├── orders.yml │ ├── pages.yml │ ├── pages │ │ └── scripts.yml │ ├── products.yml │ ├── scripts.yml │ ├── sites.yml │ ├── sites │ │ ├── activityLogs.yml │ │ ├── comments.yml │ │ ├── plans.yml │ │ ├── redirects.yml │ │ ├── robotsTxt.yml │ │ ├── scripts.yml │ │ └── wellKnown.yml │ ├── token.yml │ ├── users.yml │ ├── webhooks.yml │ └── workspaces │ │ └── auditLogs.yml └── fern.config.json ├── .npmignore ├── .prettierrc.yml ├── MIGRATION.md ├── README.md ├── jest.config.js ├── package.json ├── reference.md ├── src ├── Client.ts ├── api │ ├── errors │ │ ├── BadRequestError.ts │ │ ├── ConflictError.ts │ │ ├── ForbiddenError.ts │ │ ├── InternalServerError.ts │ │ ├── NotFoundError.ts │ │ ├── TooManyRequestsError.ts │ │ ├── UnauthorizedError.ts │ │ └── index.ts │ ├── index.ts │ ├── resources │ │ ├── accessGroups │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── AccessGroupsListRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── AccessGroupsListRequestSort.ts │ │ │ │ └── index.ts │ │ ├── assets │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── AssetsCreateFolderRequest.ts │ │ │ │ │ ├── AssetsCreateRequest.ts │ │ │ │ │ ├── AssetsUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── collections │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── CollectionsCreateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── resources │ │ │ │ ├── fields │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── FieldUpdate.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── items │ │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── CreateBulkCollectionItemRequestBody.ts │ │ │ │ │ ├── ItemsDeleteItemLiveRequest.ts │ │ │ │ │ ├── ItemsDeleteItemRequest.ts │ │ │ │ │ ├── ItemsDeleteItemsLiveRequest.ts │ │ │ │ │ ├── ItemsDeleteItemsRequest.ts │ │ │ │ │ ├── ItemsGetItemLiveRequest.ts │ │ │ │ │ ├── ItemsGetItemRequest.ts │ │ │ │ │ ├── ItemsListItemsLiveRequest.ts │ │ │ │ │ ├── ItemsListItemsRequest.ts │ │ │ │ │ ├── ItemsPublishItemRequest.ts │ │ │ │ │ ├── ItemsUpdateItemsLiveRequest.ts │ │ │ │ │ ├── ItemsUpdateItemsRequest.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── types │ │ │ │ ├── CreateBulkCollectionItemRequestBodyFieldData.ts │ │ │ │ ├── CreateBulkCollectionItemRequestBodyFieldDataItem.ts │ │ │ │ ├── ItemsCreateItemLiveRequest.ts │ │ │ │ ├── ItemsCreateItemRequest.ts │ │ │ │ ├── ItemsDeleteItemsLiveRequestItemsItem.ts │ │ │ │ ├── ItemsDeleteItemsRequestItemsItem.ts │ │ │ │ ├── ItemsListItemsLiveRequestSortBy.ts │ │ │ │ ├── ItemsListItemsLiveRequestSortOrder.ts │ │ │ │ ├── ItemsListItemsRequestSortBy.ts │ │ │ │ ├── ItemsListItemsRequestSortOrder.ts │ │ │ │ ├── ItemsPublishItemResponse.ts │ │ │ │ ├── MultipleItems.ts │ │ │ │ ├── MultipleLiveItems.ts │ │ │ │ ├── SingleCmsItem.ts │ │ │ │ └── index.ts │ │ ├── components │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── ComponentDomWrite.ts │ │ │ │ │ ├── ComponentPropertiesWrite.ts │ │ │ │ │ ├── ComponentsGetContentRequest.ts │ │ │ │ │ ├── ComponentsGetPropertiesRequest.ts │ │ │ │ │ ├── ComponentsListRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── ComponentDomWriteNodesItem.ts │ │ │ │ ├── ComponentPropertiesWritePropertiesItem.ts │ │ │ │ ├── ComponentsUpdateContentResponse.ts │ │ │ │ ├── ComponentsUpdatePropertiesResponse.ts │ │ │ │ └── index.ts │ │ ├── ecommerce │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── forms │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── FormsListRequest.ts │ │ │ │ │ ├── FormsListSubmissionsBySiteRequest.ts │ │ │ │ │ ├── FormsListSubmissionsRequest.ts │ │ │ │ │ ├── FormsUpdateSubmissionRequest.ts │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── inventory │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── InventoryUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── InventoryUpdateRequestInventoryType.ts │ │ │ │ └── index.ts │ │ ├── orders │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── OrdersListRequest.ts │ │ │ │ │ ├── OrdersRefundRequest.ts │ │ │ │ │ ├── OrdersUpdateFulfillRequest.ts │ │ │ │ │ ├── OrdersUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── OrdersListRequestStatus.ts │ │ │ │ ├── OrdersRefundRequestReason.ts │ │ │ │ └── index.ts │ │ ├── pages │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── PageDomWrite.ts │ │ │ │ │ ├── PagesGetContentRequest.ts │ │ │ │ │ ├── PagesGetMetadataRequest.ts │ │ │ │ │ ├── PagesListRequest.ts │ │ │ │ │ ├── UpdatePageSettingsRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── resources │ │ │ │ ├── index.ts │ │ │ │ └── scripts │ │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ └── types │ │ │ │ ├── PageDomWriteNodesItem.ts │ │ │ │ ├── UpdateStaticContentResponse.ts │ │ │ │ └── index.ts │ │ ├── products │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── ProductSkuCreate.ts │ │ │ │ │ ├── ProductSkuUpdate.ts │ │ │ │ │ ├── ProductsCreateSkuRequest.ts │ │ │ │ │ ├── ProductsListRequest.ts │ │ │ │ │ ├── ProductsUpdateSkuRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── ProductSkuCreateProduct.ts │ │ │ │ ├── ProductSkuCreateSku.ts │ │ │ │ ├── ProductsCreateSkuResponse.ts │ │ │ │ └── index.ts │ │ ├── scripts │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── CustomCodeHostedRequest.ts │ │ │ │ │ ├── CustomCodeInlineRequest.ts │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── sites │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── SitesCreateRequest.ts │ │ │ │ │ ├── SitesPublishRequest.ts │ │ │ │ │ ├── SitesUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── resources │ │ │ │ ├── activityLogs │ │ │ │ │ ├── client │ │ │ │ │ │ ├── Client.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── requests │ │ │ │ │ │ │ ├── ActivityLogsListRequest.ts │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── comments │ │ │ │ │ ├── client │ │ │ │ │ │ ├── Client.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── requests │ │ │ │ │ │ │ ├── CommentsGetCommentThreadRequest.ts │ │ │ │ │ │ │ ├── CommentsListCommentRepliesRequest.ts │ │ │ │ │ │ │ ├── CommentsListCommentThreadsRequest.ts │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types │ │ │ │ │ │ ├── CommentsGetCommentThreadRequestSortBy.ts │ │ │ │ │ │ ├── CommentsGetCommentThreadRequestSortOrder.ts │ │ │ │ │ │ ├── CommentsListCommentRepliesRequestSortBy.ts │ │ │ │ │ │ ├── CommentsListCommentRepliesRequestSortOrder.ts │ │ │ │ │ │ ├── CommentsListCommentThreadsRequestSortBy.ts │ │ │ │ │ │ ├── CommentsListCommentThreadsRequestSortOrder.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ ├── plans │ │ │ │ │ ├── client │ │ │ │ │ │ ├── Client.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── redirects │ │ │ │ │ ├── client │ │ │ │ │ │ ├── Client.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── robotsTxt │ │ │ │ │ ├── client │ │ │ │ │ │ ├── Client.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── scripts │ │ │ │ │ ├── client │ │ │ │ │ │ ├── Client.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── requests │ │ │ │ │ │ │ ├── ScriptsListCustomCodeBlocksRequest.ts │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ └── wellKnown │ │ │ │ │ ├── client │ │ │ │ │ ├── Client.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── WellKnownDeleteRequest.ts │ │ │ │ │ │ ├── WellKnownFile.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types │ │ │ │ │ ├── WellKnownFileContentType.ts │ │ │ │ │ └── index.ts │ │ │ └── types │ │ │ │ ├── SitesPublishResponse.ts │ │ │ │ └── index.ts │ │ ├── token │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── users │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── UsersInviteRequest.ts │ │ │ │ │ ├── UsersListRequest.ts │ │ │ │ │ ├── UsersUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── UsersListRequestSort.ts │ │ │ │ ├── UsersUpdateRequestData.ts │ │ │ │ └── index.ts │ │ ├── webhooks │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── workspaces │ │ │ ├── client │ │ │ ├── Client.ts │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── resources │ │ │ ├── auditLogs │ │ │ ├── client │ │ │ │ ├── Client.ts │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── AuditLogsGetWorkspaceAuditLogsRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── AuditLogsGetWorkspaceAuditLogsRequestEventType.ts │ │ │ │ ├── AuditLogsGetWorkspaceAuditLogsRequestSortOrder.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ └── types │ │ ├── AccessGroup.ts │ │ ├── AccessGroupList.ts │ │ ├── Application.ts │ │ ├── Asset.ts │ │ ├── AssetFolder.ts │ │ ├── AssetFolderList.ts │ │ ├── AssetUpload.ts │ │ ├── AssetUploadUploadDetails.ts │ │ ├── AssetVariant.ts │ │ ├── Assets.ts │ │ ├── Authorization.ts │ │ ├── AuthorizationAuthorization.ts │ │ ├── AuthorizationAuthorizationAuthorizedTo.ts │ │ ├── AuthorizedUser.ts │ │ ├── BadRequestErrorBody.ts │ │ ├── BulkCollectionItem.ts │ │ ├── BulkCollectionItemFieldData.ts │ │ ├── Collection.ts │ │ ├── CollectionItem.ts │ │ ├── CollectionItemFieldData.ts │ │ ├── CollectionItemList.ts │ │ ├── CollectionItemListNoPagination.ts │ │ ├── CollectionItemListPagination.ts │ │ ├── CollectionItemPatchSingle.ts │ │ ├── CollectionItemPatchSingleFieldData.ts │ │ ├── CollectionItemPostSingle.ts │ │ ├── CollectionItemPostSingleFieldData.ts │ │ ├── CollectionItemWithIdInput.ts │ │ ├── CollectionItemWithIdInputFieldData.ts │ │ ├── CollectionList.ts │ │ ├── CollectionListArrayItem.ts │ │ ├── CommentReply.ts │ │ ├── CommentReplyAuthor.ts │ │ ├── CommentReplyList.ts │ │ ├── CommentReplyListPagination.ts │ │ ├── CommentReplyMentionedUsersItem.ts │ │ ├── CommentThread.ts │ │ ├── CommentThreadAuthor.ts │ │ ├── CommentThreadList.ts │ │ ├── CommentThreadListPagination.ts │ │ ├── CommentThreadMentionedUsersItem.ts │ │ ├── Component.ts │ │ ├── ComponentDom.ts │ │ ├── ComponentInstanceNodePropertyOverridesWrite.ts │ │ ├── ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.ts │ │ ├── ComponentList.ts │ │ ├── ComponentNode.ts │ │ ├── ComponentProperties.ts │ │ ├── ComponentProperty.ts │ │ ├── ComponentPropertyType.ts │ │ ├── Conflict.ts │ │ ├── ConflictErrorBody.ts │ │ ├── CustomCodeBlock.ts │ │ ├── CustomCodeBlockType.ts │ │ ├── CustomCodeHostedResponse.ts │ │ ├── CustomCodeInlineResponse.ts │ │ ├── CustomRole.ts │ │ ├── CustomRoleAuditLogItem.ts │ │ ├── CustomRoleAuditLogItemEventSubType.ts │ │ ├── Dom.ts │ │ ├── Domain.ts │ │ ├── Domains.ts │ │ ├── DuplicateUserEmail.ts │ │ ├── EcommerceSettings.ts │ │ ├── ErrorCode.ts │ │ ├── Error_.ts │ │ ├── Field.ts │ │ ├── FieldCreate.ts │ │ ├── FieldType.ts │ │ ├── ForbiddenErrorBody.ts │ │ ├── Form.ts │ │ ├── FormField.ts │ │ ├── FormFieldValue.ts │ │ ├── FormFieldValueType.ts │ │ ├── FormList.ts │ │ ├── FormResponseSettings.ts │ │ ├── FormSubmission.ts │ │ ├── FormSubmissionList.ts │ │ ├── ImageNode.ts │ │ ├── ImageNodeImage.ts │ │ ├── InvalidDomain.ts │ │ ├── InvalidScopes.ts │ │ ├── InventoryItem.ts │ │ ├── InventoryItemInventoryType.ts │ │ ├── ListCustomCodeBlocks.ts │ │ ├── Locale.ts │ │ ├── Locales.ts │ │ ├── Metadata.ts │ │ ├── MetadataOptionsItem.ts │ │ ├── NoDomains.ts │ │ ├── Node.ts │ │ ├── NotEnterprisePlanSite.ts │ │ ├── NotEnterprisePlanWorkspace.ts │ │ ├── OAuthScope.ts │ │ ├── OptionField.ts │ │ ├── Order.ts │ │ ├── OrderAddress.ts │ │ ├── OrderAddressJapanType.ts │ │ ├── OrderAddressType.ts │ │ ├── OrderCustomerInfo.ts │ │ ├── OrderDisputeLastStatus.ts │ │ ├── OrderDownloadFilesItem.ts │ │ ├── OrderList.ts │ │ ├── OrderMetadata.ts │ │ ├── OrderPrice.ts │ │ ├── OrderPurchasedItem.ts │ │ ├── OrderPurchasedItemVariantImage.ts │ │ ├── OrderPurchasedItemVariantImageFile.ts │ │ ├── OrderPurchasedItemVariantImageFileVariantsItem.ts │ │ ├── OrderStatus.ts │ │ ├── OrderTotals.ts │ │ ├── OrderTotalsExtrasItem.ts │ │ ├── OrderTotalsExtrasItemType.ts │ │ ├── Page.ts │ │ ├── PageList.ts │ │ ├── PageOpenGraph.ts │ │ ├── PageSeo.ts │ │ ├── Pagination.ts │ │ ├── PaypalDetails.ts │ │ ├── Product.ts │ │ ├── ProductAndSkUs.ts │ │ ├── ProductAndSkUsList.ts │ │ ├── ProductFieldData.ts │ │ ├── ProductFieldDataEcProductType.ts │ │ ├── ProductFieldDataTaxCategory.ts │ │ ├── PublishStatus.ts │ │ ├── Redirect.ts │ │ ├── Redirects.ts │ │ ├── ReferenceField.ts │ │ ├── ReferenceFieldMetadata.ts │ │ ├── ReferenceFieldType.ts │ │ ├── RegisteredScriptList.ts │ │ ├── Robots.ts │ │ ├── RobotsRulesItem.ts │ │ ├── ScriptApply.ts │ │ ├── ScriptApplyList.ts │ │ ├── ScriptApplyLocation.ts │ │ ├── Scripts.ts │ │ ├── SearchButtonNode.ts │ │ ├── SearchButtonNodeWrite.ts │ │ ├── SelectNode.ts │ │ ├── SelectNodeChoicesItem.ts │ │ ├── SelectNodeWrite.ts │ │ ├── SelectNodeWriteChoicesItem.ts │ │ ├── Site.ts │ │ ├── SiteActivityLogItem.ts │ │ ├── SiteActivityLogItemEvent.ts │ │ ├── SiteActivityLogItemResourceOperation.ts │ │ ├── SiteActivityLogItemUser.ts │ │ ├── SiteActivityLogResponse.ts │ │ ├── SiteDataCollectionType.ts │ │ ├── SiteMembership.ts │ │ ├── SiteMembershipAuditLogItem.ts │ │ ├── SiteMembershipAuditLogItemEventSubType.ts │ │ ├── SitePlan.ts │ │ ├── SitePlanId.ts │ │ ├── SitePlanName.ts │ │ ├── Sites.ts │ │ ├── Sku.ts │ │ ├── SkuFieldData.ts │ │ ├── SkuFieldDataCompareAtPrice.ts │ │ ├── SkuFieldDataEcSkuBillingMethod.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlan.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlanInterval.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts │ │ ├── SkuFieldDataPrice.ts │ │ ├── SkuPropertyList.ts │ │ ├── SkuPropertyListEnumItem.ts │ │ ├── SkuValueList.ts │ │ ├── StaticField.ts │ │ ├── StaticFieldType.ts │ │ ├── StripeCard.ts │ │ ├── StripeCardBrand.ts │ │ ├── StripeCardExpires.ts │ │ ├── StripeDetails.ts │ │ ├── SubmitButtonNode.ts │ │ ├── SubmitButtonNodeWrite.ts │ │ ├── Text.ts │ │ ├── TextInputNode.ts │ │ ├── TextInputNodeWrite.ts │ │ ├── TextNode.ts │ │ ├── TextNodeText.ts │ │ ├── TextNodeWrite.ts │ │ ├── TriggerType.ts │ │ ├── User.ts │ │ ├── UserAccess.ts │ │ ├── UserAccessAuditLogItem.ts │ │ ├── UserAccessAuditLogItemEventSubType.ts │ │ ├── UserAccessGroupsItem.ts │ │ ├── UserAccessGroupsItemType.ts │ │ ├── UserData.ts │ │ ├── UserDataData.ts │ │ ├── UserLimitReached.ts │ │ ├── UserList.ts │ │ ├── UserStatus.ts │ │ ├── UsersNotEnabled.ts │ │ ├── Webhook.ts │ │ ├── WebhookFilter.ts │ │ ├── WebhookList.ts │ │ ├── WorkspaceAuditLogItem.ts │ │ ├── WorkspaceAuditLogItemActor.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipSite.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipUserType.ts │ │ ├── WorkspaceAuditLogItemPayloadUserAccessMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.ts │ │ ├── WorkspaceAuditLogItemWorkspace.ts │ │ ├── WorkspaceAuditLogResponse.ts │ │ ├── WorkspaceInvitation.ts │ │ ├── WorkspaceInvitationAuditLogItem.ts │ │ ├── WorkspaceInvitationAuditLogItemEventSubType.ts │ │ ├── WorkspaceMembership.ts │ │ ├── WorkspaceMembershipAuditLogItem.ts │ │ ├── WorkspaceMembershipAuditLogItemEventSubType.ts │ │ └── index.ts ├── core │ ├── auth │ │ ├── BasicAuth.ts │ │ ├── BearerToken.ts │ │ └── index.ts │ ├── fetcher │ │ ├── APIResponse.ts │ │ ├── Fetcher.ts │ │ ├── Supplier.ts │ │ ├── createRequestUrl.ts │ │ ├── getFetchFn.ts │ │ ├── getHeader.ts │ │ ├── getRequestBody.ts │ │ ├── getResponseBody.ts │ │ ├── index.ts │ │ ├── makeRequest.ts │ │ ├── requestWithRetries.ts │ │ ├── signals.ts │ │ └── stream-wrappers │ │ │ ├── Node18UniversalStreamWrapper.ts │ │ │ ├── NodePre18StreamWrapper.ts │ │ │ ├── UndiciStreamWrapper.ts │ │ │ └── chooseStreamWrapper.ts │ ├── index.ts │ ├── runtime │ │ ├── index.ts │ │ └── runtime.ts │ └── schemas │ │ ├── Schema.ts │ │ ├── builders │ │ ├── bigint │ │ │ ├── bigint.ts │ │ │ └── index.ts │ │ ├── date │ │ │ ├── date.ts │ │ │ └── index.ts │ │ ├── enum │ │ │ ├── enum.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── lazy │ │ │ ├── index.ts │ │ │ ├── lazy.ts │ │ │ └── lazyObject.ts │ │ ├── list │ │ │ ├── index.ts │ │ │ └── list.ts │ │ ├── literals │ │ │ ├── booleanLiteral.ts │ │ │ ├── index.ts │ │ │ └── stringLiteral.ts │ │ ├── object-like │ │ │ ├── getObjectLikeUtils.ts │ │ │ ├── index.ts │ │ │ └── types.ts │ │ ├── object │ │ │ ├── index.ts │ │ │ ├── object.ts │ │ │ ├── objectWithoutOptionalProperties.ts │ │ │ ├── property.ts │ │ │ └── types.ts │ │ ├── primitives │ │ │ ├── any.ts │ │ │ ├── boolean.ts │ │ │ ├── index.ts │ │ │ ├── number.ts │ │ │ ├── string.ts │ │ │ └── unknown.ts │ │ ├── record │ │ │ ├── index.ts │ │ │ ├── record.ts │ │ │ └── types.ts │ │ ├── schema-utils │ │ │ ├── JsonError.ts │ │ │ ├── ParseError.ts │ │ │ ├── getSchemaUtils.ts │ │ │ ├── index.ts │ │ │ └── stringifyValidationErrors.ts │ │ ├── set │ │ │ ├── index.ts │ │ │ └── set.ts │ │ ├── undiscriminated-union │ │ │ ├── index.ts │ │ │ ├── types.ts │ │ │ └── undiscriminatedUnion.ts │ │ └── union │ │ │ ├── discriminant.ts │ │ │ ├── index.ts │ │ │ ├── types.ts │ │ │ └── union.ts │ │ ├── index.ts │ │ └── utils │ │ ├── MaybePromise.ts │ │ ├── addQuestionMarksToNullableProperties.ts │ │ ├── createIdentitySchemaCreator.ts │ │ ├── entries.ts │ │ ├── filterObject.ts │ │ ├── getErrorMessageForIncorrectType.ts │ │ ├── isPlainObject.ts │ │ ├── keys.ts │ │ ├── maybeSkipValidation.ts │ │ └── partition.ts ├── environments.ts ├── errors │ ├── WebflowError.ts │ ├── WebflowTimeoutError.ts │ └── index.ts ├── index.ts ├── serialization │ ├── index.ts │ ├── resources │ │ ├── accessGroups │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── AccessGroupsListRequestSort.ts │ │ │ │ └── index.ts │ │ ├── assets │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── AssetsCreateFolderRequest.ts │ │ │ │ │ ├── AssetsCreateRequest.ts │ │ │ │ │ ├── AssetsUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── collections │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── CollectionsCreateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── resources │ │ │ │ ├── fields │ │ │ │ ├── client │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── FieldUpdate.ts │ │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── items │ │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── CreateBulkCollectionItemRequestBody.ts │ │ │ │ │ ├── ItemsDeleteItemsLiveRequest.ts │ │ │ │ │ ├── ItemsDeleteItemsRequest.ts │ │ │ │ │ ├── ItemsPublishItemRequest.ts │ │ │ │ │ ├── ItemsUpdateItemsLiveRequest.ts │ │ │ │ │ ├── ItemsUpdateItemsRequest.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── types │ │ │ │ ├── CreateBulkCollectionItemRequestBodyFieldData.ts │ │ │ │ ├── CreateBulkCollectionItemRequestBodyFieldDataItem.ts │ │ │ │ ├── ItemsCreateItemLiveRequest.ts │ │ │ │ ├── ItemsCreateItemRequest.ts │ │ │ │ ├── ItemsDeleteItemsLiveRequestItemsItem.ts │ │ │ │ ├── ItemsDeleteItemsRequestItemsItem.ts │ │ │ │ ├── ItemsListItemsLiveRequestSortBy.ts │ │ │ │ ├── ItemsListItemsLiveRequestSortOrder.ts │ │ │ │ ├── ItemsListItemsRequestSortBy.ts │ │ │ │ ├── ItemsListItemsRequestSortOrder.ts │ │ │ │ ├── ItemsPublishItemResponse.ts │ │ │ │ ├── MultipleItems.ts │ │ │ │ ├── MultipleLiveItems.ts │ │ │ │ ├── SingleCmsItem.ts │ │ │ │ └── index.ts │ │ ├── components │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── ComponentDomWrite.ts │ │ │ │ │ ├── ComponentPropertiesWrite.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── ComponentDomWriteNodesItem.ts │ │ │ │ ├── ComponentPropertiesWritePropertiesItem.ts │ │ │ │ ├── ComponentsUpdateContentResponse.ts │ │ │ │ ├── ComponentsUpdatePropertiesResponse.ts │ │ │ │ └── index.ts │ │ ├── forms │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── FormsUpdateSubmissionRequest.ts │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── inventory │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── InventoryUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── InventoryUpdateRequestInventoryType.ts │ │ │ │ └── index.ts │ │ ├── orders │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── OrdersRefundRequest.ts │ │ │ │ │ ├── OrdersUpdateFulfillRequest.ts │ │ │ │ │ ├── OrdersUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── OrdersListRequestStatus.ts │ │ │ │ ├── OrdersRefundRequestReason.ts │ │ │ │ └── index.ts │ │ ├── pages │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── PageDomWrite.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── PageDomWriteNodesItem.ts │ │ │ │ ├── UpdateStaticContentResponse.ts │ │ │ │ └── index.ts │ │ ├── products │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── ProductSkuCreate.ts │ │ │ │ │ ├── ProductSkuUpdate.ts │ │ │ │ │ ├── ProductsCreateSkuRequest.ts │ │ │ │ │ ├── ProductsUpdateSkuRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── ProductSkuCreateProduct.ts │ │ │ │ ├── ProductSkuCreateSku.ts │ │ │ │ ├── ProductsCreateSkuResponse.ts │ │ │ │ └── index.ts │ │ ├── scripts │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── CustomCodeHostedRequest.ts │ │ │ │ │ ├── CustomCodeInlineRequest.ts │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── sites │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── SitesCreateRequest.ts │ │ │ │ │ ├── SitesPublishRequest.ts │ │ │ │ │ ├── SitesUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── resources │ │ │ │ ├── comments │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types │ │ │ │ │ │ ├── CommentsGetCommentThreadRequestSortBy.ts │ │ │ │ │ │ ├── CommentsGetCommentThreadRequestSortOrder.ts │ │ │ │ │ │ ├── CommentsListCommentRepliesRequestSortBy.ts │ │ │ │ │ │ ├── CommentsListCommentRepliesRequestSortOrder.ts │ │ │ │ │ │ ├── CommentsListCommentThreadsRequestSortBy.ts │ │ │ │ │ │ ├── CommentsListCommentThreadsRequestSortOrder.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── wellKnown │ │ │ │ │ ├── client │ │ │ │ │ ├── index.ts │ │ │ │ │ └── requests │ │ │ │ │ │ ├── WellKnownDeleteRequest.ts │ │ │ │ │ │ ├── WellKnownFile.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── types │ │ │ │ │ ├── WellKnownFileContentType.ts │ │ │ │ │ └── index.ts │ │ │ └── types │ │ │ │ ├── SitesPublishResponse.ts │ │ │ │ └── index.ts │ │ ├── users │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── UsersInviteRequest.ts │ │ │ │ │ ├── UsersUpdateRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── UsersListRequestSort.ts │ │ │ │ ├── UsersUpdateRequestData.ts │ │ │ │ └── index.ts │ │ └── workspaces │ │ │ ├── index.ts │ │ │ └── resources │ │ │ ├── auditLogs │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── AuditLogsGetWorkspaceAuditLogsRequestEventType.ts │ │ │ │ ├── AuditLogsGetWorkspaceAuditLogsRequestSortOrder.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ └── types │ │ ├── AccessGroup.ts │ │ ├── AccessGroupList.ts │ │ ├── Application.ts │ │ ├── Asset.ts │ │ ├── AssetFolder.ts │ │ ├── AssetFolderList.ts │ │ ├── AssetUpload.ts │ │ ├── AssetUploadUploadDetails.ts │ │ ├── AssetVariant.ts │ │ ├── Assets.ts │ │ ├── Authorization.ts │ │ ├── AuthorizationAuthorization.ts │ │ ├── AuthorizationAuthorizationAuthorizedTo.ts │ │ ├── AuthorizedUser.ts │ │ ├── BadRequestErrorBody.ts │ │ ├── BulkCollectionItem.ts │ │ ├── BulkCollectionItemFieldData.ts │ │ ├── Collection.ts │ │ ├── CollectionItem.ts │ │ ├── CollectionItemFieldData.ts │ │ ├── CollectionItemList.ts │ │ ├── CollectionItemListNoPagination.ts │ │ ├── CollectionItemListPagination.ts │ │ ├── CollectionItemPatchSingle.ts │ │ ├── CollectionItemPatchSingleFieldData.ts │ │ ├── CollectionItemPostSingle.ts │ │ ├── CollectionItemPostSingleFieldData.ts │ │ ├── CollectionItemWithIdInput.ts │ │ ├── CollectionItemWithIdInputFieldData.ts │ │ ├── CollectionList.ts │ │ ├── CollectionListArrayItem.ts │ │ ├── CommentReply.ts │ │ ├── CommentReplyAuthor.ts │ │ ├── CommentReplyList.ts │ │ ├── CommentReplyListPagination.ts │ │ ├── CommentReplyMentionedUsersItem.ts │ │ ├── CommentThread.ts │ │ ├── CommentThreadAuthor.ts │ │ ├── CommentThreadList.ts │ │ ├── CommentThreadListPagination.ts │ │ ├── CommentThreadMentionedUsersItem.ts │ │ ├── Component.ts │ │ ├── ComponentDom.ts │ │ ├── ComponentInstanceNodePropertyOverridesWrite.ts │ │ ├── ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.ts │ │ ├── ComponentList.ts │ │ ├── ComponentNode.ts │ │ ├── ComponentProperties.ts │ │ ├── ComponentProperty.ts │ │ ├── ComponentPropertyType.ts │ │ ├── Conflict.ts │ │ ├── ConflictErrorBody.ts │ │ ├── CustomCodeBlock.ts │ │ ├── CustomCodeBlockType.ts │ │ ├── CustomCodeHostedResponse.ts │ │ ├── CustomCodeInlineResponse.ts │ │ ├── CustomRole.ts │ │ ├── CustomRoleAuditLogItem.ts │ │ ├── CustomRoleAuditLogItemEventSubType.ts │ │ ├── Dom.ts │ │ ├── Domain.ts │ │ ├── Domains.ts │ │ ├── DuplicateUserEmail.ts │ │ ├── EcommerceSettings.ts │ │ ├── ErrorCode.ts │ │ ├── Error_.ts │ │ ├── Field.ts │ │ ├── FieldCreate.ts │ │ ├── FieldType.ts │ │ ├── ForbiddenErrorBody.ts │ │ ├── Form.ts │ │ ├── FormField.ts │ │ ├── FormFieldValue.ts │ │ ├── FormFieldValueType.ts │ │ ├── FormList.ts │ │ ├── FormResponseSettings.ts │ │ ├── FormSubmission.ts │ │ ├── FormSubmissionList.ts │ │ ├── ImageNode.ts │ │ ├── ImageNodeImage.ts │ │ ├── InvalidDomain.ts │ │ ├── InvalidScopes.ts │ │ ├── InventoryItem.ts │ │ ├── InventoryItemInventoryType.ts │ │ ├── ListCustomCodeBlocks.ts │ │ ├── Locale.ts │ │ ├── Locales.ts │ │ ├── Metadata.ts │ │ ├── MetadataOptionsItem.ts │ │ ├── NoDomains.ts │ │ ├── Node.ts │ │ ├── NotEnterprisePlanSite.ts │ │ ├── NotEnterprisePlanWorkspace.ts │ │ ├── OptionField.ts │ │ ├── Order.ts │ │ ├── OrderAddress.ts │ │ ├── OrderAddressJapanType.ts │ │ ├── OrderAddressType.ts │ │ ├── OrderCustomerInfo.ts │ │ ├── OrderDisputeLastStatus.ts │ │ ├── OrderDownloadFilesItem.ts │ │ ├── OrderList.ts │ │ ├── OrderMetadata.ts │ │ ├── OrderPrice.ts │ │ ├── OrderPurchasedItem.ts │ │ ├── OrderPurchasedItemVariantImage.ts │ │ ├── OrderPurchasedItemVariantImageFile.ts │ │ ├── OrderPurchasedItemVariantImageFileVariantsItem.ts │ │ ├── OrderStatus.ts │ │ ├── OrderTotals.ts │ │ ├── OrderTotalsExtrasItem.ts │ │ ├── OrderTotalsExtrasItemType.ts │ │ ├── Page.ts │ │ ├── PageList.ts │ │ ├── PageOpenGraph.ts │ │ ├── PageSeo.ts │ │ ├── Pagination.ts │ │ ├── PaypalDetails.ts │ │ ├── Product.ts │ │ ├── ProductAndSkUs.ts │ │ ├── ProductAndSkUsList.ts │ │ ├── ProductFieldData.ts │ │ ├── ProductFieldDataEcProductType.ts │ │ ├── ProductFieldDataTaxCategory.ts │ │ ├── PublishStatus.ts │ │ ├── Redirect.ts │ │ ├── Redirects.ts │ │ ├── ReferenceField.ts │ │ ├── ReferenceFieldMetadata.ts │ │ ├── ReferenceFieldType.ts │ │ ├── RegisteredScriptList.ts │ │ ├── Robots.ts │ │ ├── RobotsRulesItem.ts │ │ ├── ScriptApply.ts │ │ ├── ScriptApplyList.ts │ │ ├── ScriptApplyLocation.ts │ │ ├── Scripts.ts │ │ ├── SearchButtonNode.ts │ │ ├── SearchButtonNodeWrite.ts │ │ ├── SelectNode.ts │ │ ├── SelectNodeChoicesItem.ts │ │ ├── SelectNodeWrite.ts │ │ ├── SelectNodeWriteChoicesItem.ts │ │ ├── Site.ts │ │ ├── SiteActivityLogItem.ts │ │ ├── SiteActivityLogItemEvent.ts │ │ ├── SiteActivityLogItemResourceOperation.ts │ │ ├── SiteActivityLogItemUser.ts │ │ ├── SiteActivityLogResponse.ts │ │ ├── SiteDataCollectionType.ts │ │ ├── SiteMembership.ts │ │ ├── SiteMembershipAuditLogItem.ts │ │ ├── SiteMembershipAuditLogItemEventSubType.ts │ │ ├── SitePlan.ts │ │ ├── SitePlanId.ts │ │ ├── SitePlanName.ts │ │ ├── Sites.ts │ │ ├── Sku.ts │ │ ├── SkuFieldData.ts │ │ ├── SkuFieldDataCompareAtPrice.ts │ │ ├── SkuFieldDataEcSkuBillingMethod.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlan.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlanInterval.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts │ │ ├── SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts │ │ ├── SkuFieldDataPrice.ts │ │ ├── SkuPropertyList.ts │ │ ├── SkuPropertyListEnumItem.ts │ │ ├── SkuValueList.ts │ │ ├── StaticField.ts │ │ ├── StaticFieldType.ts │ │ ├── StripeCard.ts │ │ ├── StripeCardBrand.ts │ │ ├── StripeCardExpires.ts │ │ ├── StripeDetails.ts │ │ ├── SubmitButtonNode.ts │ │ ├── SubmitButtonNodeWrite.ts │ │ ├── Text.ts │ │ ├── TextInputNode.ts │ │ ├── TextInputNodeWrite.ts │ │ ├── TextNode.ts │ │ ├── TextNodeText.ts │ │ ├── TextNodeWrite.ts │ │ ├── TriggerType.ts │ │ ├── User.ts │ │ ├── UserAccess.ts │ │ ├── UserAccessAuditLogItem.ts │ │ ├── UserAccessAuditLogItemEventSubType.ts │ │ ├── UserAccessGroupsItem.ts │ │ ├── UserAccessGroupsItemType.ts │ │ ├── UserData.ts │ │ ├── UserDataData.ts │ │ ├── UserLimitReached.ts │ │ ├── UserList.ts │ │ ├── UserStatus.ts │ │ ├── UsersNotEnabled.ts │ │ ├── Webhook.ts │ │ ├── WebhookFilter.ts │ │ ├── WebhookList.ts │ │ ├── WorkspaceAuditLogItem.ts │ │ ├── WorkspaceAuditLogItemActor.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipSite.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.ts │ │ ├── WorkspaceAuditLogItemPayloadSiteMembershipUserType.ts │ │ ├── WorkspaceAuditLogItemPayloadUserAccessMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.ts │ │ ├── WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.ts │ │ ├── WorkspaceAuditLogItemWorkspace.ts │ │ ├── WorkspaceAuditLogResponse.ts │ │ ├── WorkspaceInvitation.ts │ │ ├── WorkspaceInvitationAuditLogItem.ts │ │ ├── WorkspaceInvitationAuditLogItemEventSubType.ts │ │ ├── WorkspaceMembership.ts │ │ ├── WorkspaceMembershipAuditLogItem.ts │ │ ├── WorkspaceMembershipAuditLogItemEventSubType.ts │ │ └── index.ts ├── version.ts └── wrapper │ ├── AssetsClient.ts │ ├── AssetsUtilitiesClient.ts │ ├── WebflowClient.ts │ └── WebhooksClient.ts ├── tests ├── custom.test.ts ├── unit │ ├── auth │ │ ├── BasicAuth.test.ts │ │ └── BearerToken.test.ts │ ├── fetcher │ │ ├── Fetcher.test.ts │ │ ├── createRequestUrl.test.ts │ │ ├── getFetchFn.test.ts │ │ ├── getRequestBody.test.ts │ │ ├── getResponseBody.test.ts │ │ ├── makeRequest.test.ts │ │ ├── requestWithRetries.test.ts │ │ ├── signals.test.ts │ │ ├── stream-wrappers │ │ │ ├── Node18UniversalStreamWrapper.test.ts │ │ │ ├── NodePre18StreamWrapper.test.ts │ │ │ ├── UndiciStreamWrapper.test.ts │ │ │ ├── chooseStreamWrapper.test.ts │ │ │ └── webpack.test.ts │ │ └── test-file.txt │ └── zurg │ │ ├── bigint │ │ └── bigint.test.ts │ │ ├── date │ │ └── date.test.ts │ │ ├── enum │ │ └── enum.test.ts │ │ ├── lazy │ │ ├── lazy.test.ts │ │ ├── lazyObject.test.ts │ │ └── recursive │ │ │ ├── a.ts │ │ │ └── b.ts │ │ ├── list │ │ └── list.test.ts │ │ ├── literals │ │ └── stringLiteral.test.ts │ │ ├── object-like │ │ └── withParsedProperties.test.ts │ │ ├── object │ │ ├── extend.test.ts │ │ ├── object.test.ts │ │ ├── objectWithoutOptionalProperties.test.ts │ │ └── passthrough.test.ts │ │ ├── primitives │ │ ├── any.test.ts │ │ ├── boolean.test.ts │ │ ├── number.test.ts │ │ ├── string.test.ts │ │ └── unknown.test.ts │ │ ├── record │ │ └── record.test.ts │ │ ├── schema-utils │ │ └── getSchemaUtils.test.ts │ │ ├── schema.test.ts │ │ ├── set │ │ └── set.test.ts │ │ ├── skipValidation.test.ts │ │ ├── undiscriminated-union │ │ └── undiscriminatedUnion.test.ts │ │ ├── union │ │ └── union.test.ts │ │ └── utils │ │ ├── itSchema.ts │ │ └── itValidate.ts └── wrapper │ └── AssetsUtilitiesClient.test.ts ├── tsconfig.json └── yarn.lock /.fernignore: -------------------------------------------------------------------------------- 1 | # Specify files that shouldn't be modified by Fern 2 | 3 | README.md 4 | MIGRATION.md 5 | 6 | # Oauth Helpers 7 | src/api/types/OAuthScope.ts 8 | src/index.ts 9 | src/oauth.ts 10 | src/wrapper 11 | tests/wrapper 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | /dist -------------------------------------------------------------------------------- /.mock/definition/api.yml: -------------------------------------------------------------------------------- 1 | name: api 2 | error-discrimination: 3 | strategy: status-code 4 | display-name: Data API 5 | environments: 6 | Data API: 7 | urls: 8 | Base: https://api.webflow.com/v2 9 | Data API: https://api.webflow.com/v2 10 | Content Delivery API: https://api-cdn.webflow.com/v2 11 | Production: https://api.webflow.com/v2 12 | CDN: https://api-cdn.webflow.com/v2 13 | default-environment: Data API 14 | default-url: Base 15 | auth-schemes: 16 | BearerToken: 17 | scheme: bearer 18 | token: 19 | name: accessToken 20 | auth: BearerToken 21 | -------------------------------------------------------------------------------- /.mock/fern.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "organization" : "webflow", 3 | "version" : "0.56.34" 4 | } -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | src 3 | tests 4 | .gitignore 5 | .github 6 | .fernignore 7 | .prettierrc.yml 8 | tsconfig.json 9 | yarn.lock -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- 1 | tabWidth: 4 2 | printWidth: 120 3 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('jest').Config} */ 2 | module.exports = { 3 | preset: "ts-jest", 4 | testEnvironment: "node", 5 | }; 6 | -------------------------------------------------------------------------------- /src/api/errors/BadRequestError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../errors/index"; 6 | 7 | export class BadRequestError extends errors.WebflowError { 8 | constructor(body?: unknown) { 9 | super({ 10 | message: "BadRequestError", 11 | statusCode: 400, 12 | body: body, 13 | }); 14 | Object.setPrototypeOf(this, BadRequestError.prototype); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/api/errors/ConflictError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../errors/index"; 6 | 7 | export class ConflictError extends errors.WebflowError { 8 | constructor(body?: unknown) { 9 | super({ 10 | message: "ConflictError", 11 | statusCode: 409, 12 | body: body, 13 | }); 14 | Object.setPrototypeOf(this, ConflictError.prototype); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/api/errors/ForbiddenError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../errors/index"; 6 | 7 | export class ForbiddenError extends errors.WebflowError { 8 | constructor(body?: unknown) { 9 | super({ 10 | message: "ForbiddenError", 11 | statusCode: 403, 12 | body: body, 13 | }); 14 | Object.setPrototypeOf(this, ForbiddenError.prototype); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/api/errors/InternalServerError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../errors/index"; 6 | import * as Webflow from "../index"; 7 | 8 | export class InternalServerError extends errors.WebflowError { 9 | constructor(body: Webflow.Error_) { 10 | super({ 11 | message: "InternalServerError", 12 | statusCode: 500, 13 | body: body, 14 | }); 15 | Object.setPrototypeOf(this, InternalServerError.prototype); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api/errors/NotFoundError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../errors/index"; 6 | import * as Webflow from "../index"; 7 | 8 | export class NotFoundError extends errors.WebflowError { 9 | constructor(body: Webflow.Error_) { 10 | super({ 11 | message: "NotFoundError", 12 | statusCode: 404, 13 | body: body, 14 | }); 15 | Object.setPrototypeOf(this, NotFoundError.prototype); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api/errors/TooManyRequestsError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../errors/index"; 6 | import * as Webflow from "../index"; 7 | 8 | export class TooManyRequestsError extends errors.WebflowError { 9 | constructor(body: Webflow.Error_) { 10 | super({ 11 | message: "TooManyRequestsError", 12 | statusCode: 429, 13 | body: body, 14 | }); 15 | Object.setPrototypeOf(this, TooManyRequestsError.prototype); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api/errors/UnauthorizedError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as errors from "../../errors/index"; 6 | import * as Webflow from "../index"; 7 | 8 | export class UnauthorizedError extends errors.WebflowError { 9 | constructor(body: Webflow.Error_) { 10 | super({ 11 | message: "UnauthorizedError", 12 | statusCode: 401, 13 | body: body, 14 | }); 15 | Object.setPrototypeOf(this, UnauthorizedError.prototype); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/api/errors/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./UnauthorizedError"; 2 | export * from "./ForbiddenError"; 3 | export * from "./BadRequestError"; 4 | export * from "./NotFoundError"; 5 | export * from "./TooManyRequestsError"; 6 | export * from "./InternalServerError"; 7 | export * from "./ConflictError"; 8 | -------------------------------------------------------------------------------- /src/api/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./types"; 3 | export * from "./errors"; 4 | -------------------------------------------------------------------------------- /src/api/resources/accessGroups/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/accessGroups/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type AccessGroupsListRequest } from "./AccessGroupsListRequest"; 2 | -------------------------------------------------------------------------------- /src/api/resources/accessGroups/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/accessGroups/types/AccessGroupsListRequestSort.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type AccessGroupsListRequestSort = 6 | /** 7 | * Sorts users in ascending order based on their created date */ 8 | | "CreatedOn" 9 | /** 10 | * Sorts users in descending order based on their created date */ 11 | | "-CreatedOn"; 12 | 13 | export const AccessGroupsListRequestSort = { 14 | CreatedOnAscending: "CreatedOn", 15 | CreatedOnDescending: "-CreatedOn", 16 | } as const; 17 | -------------------------------------------------------------------------------- /src/api/resources/accessGroups/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./AccessGroupsListRequestSort"; 2 | -------------------------------------------------------------------------------- /src/api/resources/assets/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/assets/client/requests/AssetsCreateFolderRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * displayName: "my asset folder" 9 | * } 10 | */ 11 | export interface AssetsCreateFolderRequest { 12 | /** A human readable name for the Asset Folder */ 13 | displayName: string; 14 | /** An (optional) pointer to a parent Asset Folder (or null for root) */ 15 | parentFolder?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/assets/client/requests/AssetsCreateRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * fileName: "file.png", 9 | * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e" 10 | * } 11 | */ 12 | export interface AssetsCreateRequest { 13 | /** File name including file extension. File names must be less than 100 characters. */ 14 | fileName: string; 15 | /** MD5 hash of the file */ 16 | fileHash: string; 17 | /** ID of the Asset folder (optional) */ 18 | parentFolder?: string; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/resources/assets/client/requests/AssetsUpdateRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface AssetsUpdateRequest { 10 | /** Unique identifier for a specific locale. Applicable, when using localization. */ 11 | localeId?: string; 12 | /** A human readable name for the asset */ 13 | displayName?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/assets/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type AssetsCreateRequest } from "./AssetsCreateRequest"; 2 | export { type AssetsUpdateRequest } from "./AssetsUpdateRequest"; 3 | export { type AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest"; 4 | -------------------------------------------------------------------------------- /src/api/resources/assets/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/collections/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/collections/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type CollectionsCreateRequest } from "./CollectionsCreateRequest"; 2 | -------------------------------------------------------------------------------- /src/api/resources/collections/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/fields/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/fields/client/requests/FieldUpdate.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * isRequired: false, 9 | * displayName: "Post Body", 10 | * helpText: "Add the body of your post here" 11 | * } 12 | */ 13 | export interface FieldUpdate { 14 | /** Define whether a field is required in a collection */ 15 | isRequired?: boolean; 16 | /** The name of a field */ 17 | displayName?: string; 18 | /** Additional text to help anyone filling out this field */ 19 | helpText?: string; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/fields/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type FieldUpdate } from "./FieldUpdate"; 2 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/fields/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as items from "./items"; 2 | export * from "./items/types"; 3 | export * as fields from "./fields"; 4 | export * from "./fields/client/requests"; 5 | export * from "./items/client/requests"; 6 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ItemsDeleteItemLiveRequest { 10 | /** 11 | * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string. 12 | */ 13 | cmsLocaleId?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ItemsDeleteItemRequest { 10 | /** 11 | * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string. 12 | */ 13 | cmsLocaleId?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../../index"; 6 | 7 | /** 8 | * @example 9 | * { 10 | * items: [{ 11 | * id: "580e64008c9a982ac9b8b754" 12 | * }] 13 | * } 14 | */ 15 | export interface ItemsDeleteItemsLiveRequest { 16 | items: Webflow.collections.ItemsDeleteItemsLiveRequestItemsItem[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../../index"; 6 | 7 | /** 8 | * @example 9 | * { 10 | * items: [{ 11 | * id: "580e64008c9a982ac9b8b754" 12 | * }] 13 | * } 14 | */ 15 | export interface ItemsDeleteItemsRequest { 16 | items: Webflow.collections.ItemsDeleteItemsRequestItemsItem[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ItemsGetItemLiveRequest { 10 | /** 11 | * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string. 12 | */ 13 | cmsLocaleId?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ItemsGetItemRequest { 10 | /** 11 | * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string. 12 | */ 13 | cmsLocaleId?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * itemIds: ["itemIds"] 9 | * } 10 | */ 11 | export interface ItemsPublishItemRequest { 12 | itemIds: string[]; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../index"; 6 | 7 | export type CreateBulkCollectionItemRequestBodyFieldData = 8 | | Webflow.collections.SingleCmsItem 9 | /** 10 | * A list of CMS items to create */ 11 | | Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataItem[]; 12 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A single CMS item to create 7 | */ 8 | export interface CreateBulkCollectionItemRequestBodyFieldDataItem { 9 | /** The name of the item. */ 10 | name: string; 11 | /** 12 | * URL slug for the item in your site. 13 | * Note: Updating the item slug will break all links referencing the old slug. 14 | */ 15 | slug: string; 16 | /** Accepts any additional properties */ 17 | [key: string]: any; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../index"; 6 | 7 | export type ItemsCreateItemLiveRequest = Webflow.CollectionItem | Webflow.collections.MultipleLiveItems; 8 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsCreateItemRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../index"; 6 | 7 | export type ItemsCreateItemRequest = Webflow.CollectionItemPostSingle | Webflow.collections.MultipleItems; 8 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ItemsDeleteItemsLiveRequestItemsItem { 6 | /** Unique identifier for the Item */ 7 | id: string; 8 | /** Array of identifiers for the locales where the item will be created */ 9 | cmsLocaleIds?: string[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ItemsDeleteItemsRequestItemsItem { 6 | /** Unique identifier for the Item */ 7 | id: string; 8 | /** Array of identifiers for the locales where the item will be created */ 9 | cmsLocaleIds?: string[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ItemsListItemsLiveRequestSortBy = "lastPublished" | "name" | "slug"; 6 | 7 | export const ItemsListItemsLiveRequestSortBy = { 8 | LastPublished: "lastPublished", 9 | Name: "name", 10 | Slug: "slug", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ItemsListItemsLiveRequestSortOrder = "asc" | "desc"; 6 | 7 | export const ItemsListItemsLiveRequestSortOrder = { 8 | Asc: "asc", 9 | Desc: "desc", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ItemsListItemsRequestSortBy = "lastPublished" | "name" | "slug"; 6 | 7 | export const ItemsListItemsRequestSortBy = { 8 | LastPublished: "lastPublished", 9 | Name: "name", 10 | Slug: "slug", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type ItemsListItemsRequestSortOrder = "asc" | "desc"; 6 | 7 | export const ItemsListItemsRequestSortOrder = { 8 | Asc: "asc", 9 | Desc: "desc", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/ItemsPublishItemResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ItemsPublishItemResponse { 6 | publishedItemIds?: string[]; 7 | errors?: string[]; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/MultipleItems.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../index"; 6 | 7 | export interface MultipleItems { 8 | /** An array of items to create */ 9 | items?: Webflow.CollectionItemPostSingle[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/MultipleLiveItems.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../index"; 6 | 7 | export interface MultipleLiveItems { 8 | /** List of collection items to create */ 9 | items?: Webflow.CollectionItem[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/resources/collections/resources/items/types/SingleCmsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface SingleCmsItem { 6 | /** The name of the item. */ 7 | name: string; 8 | /** 9 | * URL slug for the item in your site. 10 | * Note: Updating the item slug will break all links referencing the old slug. 11 | */ 12 | slug: string; 13 | /** Accepts any additional properties */ 14 | [key: string]: any; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/components/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/components/client/requests/ComponentsListRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ComponentsListRequest { 10 | /** 11 | * Maximum number of records to be returned (max limit: 100) 12 | */ 13 | limit?: number; 14 | /** 15 | * Offset used for pagination if the results have more than limit records 16 | */ 17 | offset?: number; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/components/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ComponentsListRequest } from "./ComponentsListRequest"; 2 | export { type ComponentsGetContentRequest } from "./ComponentsGetContentRequest"; 3 | export { type ComponentDomWrite } from "./ComponentDomWrite"; 4 | export { type ComponentsGetPropertiesRequest } from "./ComponentsGetPropertiesRequest"; 5 | export { type ComponentPropertiesWrite } from "./ComponentPropertiesWrite"; 6 | -------------------------------------------------------------------------------- /src/api/resources/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/components/types/ComponentDomWriteNodesItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../index"; 6 | 7 | export type ComponentDomWriteNodesItem = 8 | | Webflow.TextNodeWrite 9 | | Webflow.ComponentInstanceNodePropertyOverridesWrite 10 | | Webflow.SelectNodeWrite 11 | | Webflow.TextInputNodeWrite 12 | | Webflow.SubmitButtonNodeWrite 13 | | Webflow.SearchButtonNodeWrite; 14 | -------------------------------------------------------------------------------- /src/api/resources/components/types/ComponentsUpdateContentResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ComponentsUpdateContentResponse { 6 | /** A list of error messages, if any. */ 7 | errors: string[]; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/components/types/ComponentsUpdatePropertiesResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface ComponentsUpdatePropertiesResponse { 6 | /** A list of error messages, if any. */ 7 | errors: string[]; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/components/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./ComponentDomWriteNodesItem"; 2 | export * from "./ComponentsUpdateContentResponse"; 3 | export * from "./ComponentPropertiesWritePropertiesItem"; 4 | export * from "./ComponentsUpdatePropertiesResponse"; 5 | -------------------------------------------------------------------------------- /src/api/resources/ecommerce/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/ecommerce/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/forms/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/forms/client/requests/FormsListRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface FormsListRequest { 10 | /** 11 | * Maximum number of records to be returned (max limit: 100) 12 | */ 13 | limit?: number; 14 | /** 15 | * Offset used for pagination if the results have more than limit records 16 | */ 17 | offset?: number; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface FormsListSubmissionsRequest { 10 | /** 11 | * Offset used for pagination if the results have more than limit records 12 | */ 13 | offset?: number; 14 | /** 15 | * Maximum number of records to be returned (max limit: 100) 16 | */ 17 | limit?: number; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/forms/client/requests/FormsUpdateSubmissionRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface FormsUpdateSubmissionRequest { 10 | /** An existing **hidden field** defined on the form schema, and the corresponding value to set */ 11 | formSubmissionData?: Record; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/forms/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type FormsListRequest } from "./FormsListRequest"; 2 | export { type FormsListSubmissionsRequest } from "./FormsListSubmissionsRequest"; 3 | export { type FormsUpdateSubmissionRequest } from "./FormsUpdateSubmissionRequest"; 4 | export { type FormsListSubmissionsBySiteRequest } from "./FormsListSubmissionsBySiteRequest"; 5 | -------------------------------------------------------------------------------- /src/api/resources/forms/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/inventory/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/inventory/client/requests/InventoryUpdateRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../index"; 6 | 7 | /** 8 | * @example 9 | * { 10 | * inventoryType: "infinite" 11 | * } 12 | */ 13 | export interface InventoryUpdateRequest { 14 | /** infinite or finite */ 15 | inventoryType: Webflow.InventoryUpdateRequestInventoryType; 16 | /** Adds this quantity to currently store quantity. Can be negative. */ 17 | updateQuantity?: number; 18 | /** Immediately sets quantity to this value. */ 19 | quantity?: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/resources/inventory/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type InventoryUpdateRequest } from "./InventoryUpdateRequest"; 2 | -------------------------------------------------------------------------------- /src/api/resources/inventory/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/inventory/types/InventoryUpdateRequestInventoryType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * infinite or finite 7 | */ 8 | export type InventoryUpdateRequestInventoryType = "infinite" | "finite"; 9 | 10 | export const InventoryUpdateRequestInventoryType = { 11 | Infinite: "infinite", 12 | Finite: "finite", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/resources/inventory/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./InventoryUpdateRequestInventoryType"; 2 | -------------------------------------------------------------------------------- /src/api/resources/orders/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/orders/client/requests/OrdersListRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../index"; 6 | 7 | /** 8 | * @example 9 | * {} 10 | */ 11 | export interface OrdersListRequest { 12 | /** 13 | * Filter the orders by status 14 | */ 15 | status?: Webflow.OrdersListRequestStatus; 16 | /** 17 | * Offset used for pagination if the results have more than limit records 18 | */ 19 | offset?: number; 20 | /** 21 | * Maximum number of records to be returned (max limit: 100) 22 | */ 23 | limit?: number; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/resources/orders/client/requests/OrdersRefundRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../index"; 6 | 7 | /** 8 | * @example 9 | * {} 10 | */ 11 | export interface OrdersRefundRequest { 12 | /** The reason for the refund */ 13 | reason?: Webflow.OrdersRefundRequestReason; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/orders/client/requests/OrdersUpdateFulfillRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface OrdersUpdateFulfillRequest { 10 | /** Whether or not the Order Fulfilled email should be sent */ 11 | sendOrderFulfilledEmail?: boolean; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/orders/client/requests/OrdersUpdateRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface OrdersUpdateRequest { 10 | /** Arbitrary data for your records */ 11 | comment?: string; 12 | /** Company or method used to ship order */ 13 | shippingProvider?: string; 14 | /** Tracking number for order shipment */ 15 | shippingTracking?: string; 16 | /** URL to track order shipment */ 17 | shippingTrackingUrl?: string; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/orders/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type OrdersListRequest } from "./OrdersListRequest"; 2 | export { type OrdersUpdateRequest } from "./OrdersUpdateRequest"; 3 | export { type OrdersUpdateFulfillRequest } from "./OrdersUpdateFulfillRequest"; 4 | export { type OrdersRefundRequest } from "./OrdersRefundRequest"; 5 | -------------------------------------------------------------------------------- /src/api/resources/orders/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/orders/types/OrdersListRequestStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type OrdersListRequestStatus = 6 | | "pending" 7 | | "refunded" 8 | | "dispute-lost" 9 | | "fulfilled" 10 | | "disputed" 11 | | "unfulfilled"; 12 | 13 | export const OrdersListRequestStatus = { 14 | Pending: "pending", 15 | Refunded: "refunded", 16 | DisputeLost: "dispute-lost", 17 | Fulfilled: "fulfilled", 18 | Disputed: "disputed", 19 | Unfulfilled: "unfulfilled", 20 | } as const; 21 | -------------------------------------------------------------------------------- /src/api/resources/orders/types/OrdersRefundRequestReason.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The reason for the refund 7 | */ 8 | export type OrdersRefundRequestReason = "duplicate" | "fraudulent" | "requested"; 9 | 10 | export const OrdersRefundRequestReason = { 11 | Duplicate: "duplicate", 12 | Fraudulent: "fraudulent", 13 | Requested: "requested", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/resources/orders/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./OrdersListRequestStatus"; 2 | export * from "./OrdersRefundRequestReason"; 3 | -------------------------------------------------------------------------------- /src/api/resources/pages/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * localeId: "65427cf400e02b306eaa04a0" 9 | * } 10 | */ 11 | export interface PagesGetMetadataRequest { 12 | /** 13 | * Unique identifier for a specific locale. Applicable, when using localization. 14 | */ 15 | localeId?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/resources/pages/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type PagesListRequest } from "./PagesListRequest"; 2 | export { type PagesGetMetadataRequest } from "./PagesGetMetadataRequest"; 3 | export { type UpdatePageSettingsRequest } from "./UpdatePageSettingsRequest"; 4 | export { type PagesGetContentRequest } from "./PagesGetContentRequest"; 5 | export { type PageDomWrite } from "./PageDomWrite"; 6 | -------------------------------------------------------------------------------- /src/api/resources/pages/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | export * from "./resources"; 4 | -------------------------------------------------------------------------------- /src/api/resources/pages/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as scripts from "./scripts"; 2 | -------------------------------------------------------------------------------- /src/api/resources/pages/resources/scripts/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/pages/resources/scripts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/pages/types/PageDomWriteNodesItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../index"; 6 | 7 | export type PageDomWriteNodesItem = 8 | | Webflow.TextNodeWrite 9 | | Webflow.ComponentInstanceNodePropertyOverridesWrite 10 | | Webflow.SelectNodeWrite 11 | | Webflow.TextInputNodeWrite 12 | | Webflow.SubmitButtonNodeWrite 13 | | Webflow.SearchButtonNodeWrite; 14 | -------------------------------------------------------------------------------- /src/api/resources/pages/types/UpdateStaticContentResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface UpdateStaticContentResponse { 6 | /** A list of error messages, if any. */ 7 | errors: string[]; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/pages/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./PageDomWriteNodesItem"; 2 | export * from "./UpdateStaticContentResponse"; 3 | -------------------------------------------------------------------------------- /src/api/resources/products/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/products/client/requests/ProductSkuUpdate.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../index"; 6 | 7 | /** 8 | * @example 9 | * {} 10 | */ 11 | export interface ProductSkuUpdate { 12 | publishStatus?: Webflow.PublishStatus; 13 | product?: Webflow.Product; 14 | sku?: Webflow.Sku; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/resources/products/client/requests/ProductsListRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ProductsListRequest { 10 | /** 11 | * Offset used for pagination if the results have more than limit records 12 | */ 13 | offset?: number; 14 | /** 15 | * Maximum number of records to be returned (max limit: 100) 16 | */ 17 | limit?: number; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/products/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ProductsListRequest } from "./ProductsListRequest"; 2 | export { type ProductSkuCreate } from "./ProductSkuCreate"; 3 | export { type ProductSkuUpdate } from "./ProductSkuUpdate"; 4 | export { type ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest"; 5 | export { type ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest"; 6 | -------------------------------------------------------------------------------- /src/api/resources/products/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/products/types/ProductSkuCreateProduct.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../index"; 6 | 7 | export interface ProductSkuCreateProduct { 8 | fieldData?: Webflow.ProductFieldData; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/products/types/ProductSkuCreateSku.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../index"; 6 | 7 | export interface ProductSkuCreateSku { 8 | fieldData?: Webflow.SkuFieldData; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/products/types/ProductsCreateSkuResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../index"; 6 | 7 | export interface ProductsCreateSkuResponse { 8 | skus?: Webflow.Sku[]; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/resources/products/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./ProductSkuCreateProduct"; 2 | export * from "./ProductSkuCreateSku"; 3 | export * from "./ProductsCreateSkuResponse"; 4 | -------------------------------------------------------------------------------- /src/api/resources/scripts/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/scripts/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type CustomCodeHostedRequest } from "./CustomCodeHostedRequest"; 2 | export { type CustomCodeInlineRequest } from "./CustomCodeInlineRequest"; 3 | -------------------------------------------------------------------------------- /src/api/resources/scripts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/client/requests/SitesCreateRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * name: "The Hitchhiker's Guide to the Galaxy" 9 | * } 10 | */ 11 | export interface SitesCreateRequest { 12 | /** The name of the site */ 13 | name: string; 14 | /** The workspace or marketplace template to use */ 15 | templateName?: string; 16 | /** MegaDodo Publications - Potential Book Ideas */ 17 | parentFolderId?: string; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/sites/client/requests/SitesPublishRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface SitesPublishRequest { 10 | /** Array of Custom Domain IDs to publish */ 11 | customDomains?: string[]; 12 | /** Choice of whether to publish to the default Webflow Subdomain */ 13 | publishToWebflowSubdomain?: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/sites/client/requests/SitesUpdateRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface SitesUpdateRequest { 10 | /** The name of the site */ 11 | name?: string; 12 | /** The parent folder ID of the site */ 13 | parentFolderId?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/resources/sites/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type SitesCreateRequest } from "./SitesCreateRequest"; 2 | export { type SitesUpdateRequest } from "./SitesUpdateRequest"; 3 | export { type SitesPublishRequest } from "./SitesPublishRequest"; 4 | -------------------------------------------------------------------------------- /src/api/resources/sites/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./resources"; 3 | export * from "./client"; 4 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/activityLogs/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ActivityLogsListRequest { 10 | /** 11 | * Maximum number of records to be returned (max limit: 100) 12 | */ 13 | limit?: number; 14 | /** 15 | * Offset used for pagination if the results have more than limit records 16 | */ 17 | offset?: number; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/activityLogs/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ActivityLogsListRequest } from "./ActivityLogsListRequest"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/activityLogs/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type CommentsListCommentThreadsRequest } from "./CommentsListCommentThreadsRequest"; 2 | export { type CommentsGetCommentThreadRequest } from "./CommentsGetCommentThreadRequest"; 3 | export { type CommentsListCommentRepliesRequest } from "./CommentsListCommentRepliesRequest"; 4 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type CommentsGetCommentThreadRequestSortBy = "createdOn" | "lastUpdated"; 6 | 7 | export const CommentsGetCommentThreadRequestSortBy = { 8 | CreatedOn: "createdOn", 9 | LastUpdated: "lastUpdated", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type CommentsGetCommentThreadRequestSortOrder = "asc" | "desc"; 6 | 7 | export const CommentsGetCommentThreadRequestSortOrder = { 8 | Asc: "asc", 9 | Desc: "desc", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type CommentsListCommentRepliesRequestSortBy = "createdOn" | "lastUpdated"; 6 | 7 | export const CommentsListCommentRepliesRequestSortBy = { 8 | CreatedOn: "createdOn", 9 | LastUpdated: "lastUpdated", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type CommentsListCommentRepliesRequestSortOrder = "asc" | "desc"; 6 | 7 | export const CommentsListCommentRepliesRequestSortOrder = { 8 | Asc: "asc", 9 | Desc: "desc", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type CommentsListCommentThreadsRequestSortBy = "createdOn" | "lastUpdated"; 6 | 7 | export const CommentsListCommentThreadsRequestSortBy = { 8 | CreatedOn: "createdOn", 9 | LastUpdated: "lastUpdated", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type CommentsListCommentThreadsRequestSortOrder = "asc" | "desc"; 6 | 7 | export const CommentsListCommentThreadsRequestSortOrder = { 8 | Asc: "asc", 9 | Desc: "desc", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/comments/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./CommentsListCommentThreadsRequestSortBy"; 2 | export * from "./CommentsListCommentThreadsRequestSortOrder"; 3 | export * from "./CommentsGetCommentThreadRequestSortBy"; 4 | export * from "./CommentsGetCommentThreadRequestSortOrder"; 5 | export * from "./CommentsListCommentRepliesRequestSortBy"; 6 | export * from "./CommentsListCommentRepliesRequestSortOrder"; 7 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as wellKnown from "./wellKnown"; 2 | export * from "./wellKnown/types"; 3 | export * as comments from "./comments"; 4 | export * from "./comments/types"; 5 | export * as redirects from "./redirects"; 6 | export * as plans from "./plans"; 7 | export * as robotsTxt from "./robotsTxt"; 8 | export * as activityLogs from "./activityLogs"; 9 | export * as scripts from "./scripts"; 10 | export * from "./wellKnown/client/requests"; 11 | export * from "./activityLogs/client/requests"; 12 | export * from "./comments/client/requests"; 13 | export * from "./scripts/client/requests"; 14 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/plans/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/plans/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/redirects/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/redirects/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/robotsTxt/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/robotsTxt/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/scripts/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface ScriptsListCustomCodeBlocksRequest { 10 | /** 11 | * Offset used for pagination if the results have more than limit records 12 | */ 13 | offset?: number; 14 | /** 15 | * Maximum number of records to be returned (max limit: 100) 16 | */ 17 | limit?: number; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/scripts/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type ScriptsListCustomCodeBlocksRequest } from "./ScriptsListCustomCodeBlocksRequest"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/scripts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/wellKnown/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/wellKnown/client/requests/WellKnownDeleteRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * {} 8 | */ 9 | export interface WellKnownDeleteRequest { 10 | /** A list of file names to delete */ 11 | fileNames?: string[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../../../../index"; 6 | 7 | /** 8 | * @example 9 | * { 10 | * fileName: "fileName", 11 | * fileData: "fileData" 12 | * } 13 | */ 14 | export interface WellKnownFile { 15 | /** The name of the file */ 16 | fileName: string; 17 | /** The contents of the file */ 18 | fileData: string; 19 | /** The content type of the file. Defaults to application/json */ 20 | contentType?: Webflow.sites.WellKnownFileContentType; 21 | } 22 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/wellKnown/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type WellKnownFile } from "./WellKnownFile"; 2 | export { type WellKnownDeleteRequest } from "./WellKnownDeleteRequest"; 3 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/wellKnown/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The content type of the file. Defaults to application/json 7 | */ 8 | export type WellKnownFileContentType = "application/json" | "text/plain"; 9 | 10 | export const WellKnownFileContentType = { 11 | ApplicationJson: "application/json", 12 | TextPlain: "text/plain", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/resources/sites/resources/wellKnown/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./WellKnownFileContentType"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sites/types/SitesPublishResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../../../index"; 6 | 7 | export interface SitesPublishResponse { 8 | /** Array of domains objects */ 9 | customDomains?: Webflow.Domain[]; 10 | /** Flag for publishing to webflow.io subdomain */ 11 | publishToWebflowSubdomain?: boolean; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/sites/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./SitesPublishResponse"; 2 | -------------------------------------------------------------------------------- /src/api/resources/token/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/token/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/users/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/users/client/requests/UsersInviteRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * @example 7 | * { 8 | * email: "some.one@home.com", 9 | * accessGroups: ["webflowers"] 10 | * } 11 | */ 12 | export interface UsersInviteRequest { 13 | /** Email address of user to send invite to */ 14 | email: string; 15 | /** An array of access group slugs. Access groups are assigned to the user as type `admin` and the user remains in the group until removed. */ 16 | accessGroups?: string[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/resources/users/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type UsersListRequest } from "./UsersListRequest"; 2 | export { type UsersUpdateRequest } from "./UsersUpdateRequest"; 3 | export { type UsersInviteRequest } from "./UsersInviteRequest"; 4 | -------------------------------------------------------------------------------- /src/api/resources/users/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/users/types/UsersUpdateRequestData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface UsersUpdateRequestData { 6 | /** The name of the user */ 7 | name?: string; 8 | /** Boolean indicating if the user has accepted the privacy policy */ 9 | acceptPrivacy?: boolean; 10 | /** Boolean indicating if the user has accepted to receive communications */ 11 | acceptCommunications?: boolean; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/resources/users/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./UsersListRequestSort"; 2 | export * from "./UsersUpdateRequestData"; 3 | -------------------------------------------------------------------------------- /src/api/resources/webhooks/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/webhooks/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/client/index.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/resources/auditLogs/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/resources/auditLogs/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { type AuditLogsGetWorkspaceAuditLogsRequest } from "./AuditLogsGetWorkspaceAuditLogsRequest"; 2 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/resources/auditLogs/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type AuditLogsGetWorkspaceAuditLogsRequestSortOrder = "asc" | "desc"; 6 | 7 | export const AuditLogsGetWorkspaceAuditLogsRequestSortOrder = { 8 | Asc: "asc", 9 | Desc: "desc", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/resources/auditLogs/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./AuditLogsGetWorkspaceAuditLogsRequestSortOrder"; 2 | export * from "./AuditLogsGetWorkspaceAuditLogsRequestEventType"; 3 | -------------------------------------------------------------------------------- /src/api/resources/workspaces/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as auditLogs from "./auditLogs"; 2 | export * from "./auditLogs/types"; 3 | export * from "./auditLogs/client/requests"; 4 | -------------------------------------------------------------------------------- /src/api/types/AccessGroup.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface AccessGroup { 6 | /** Unique identifier for the Access Group */ 7 | id?: string; 8 | /** Name of the the Access Group */ 9 | name?: string; 10 | /** Shortened unique identifier based on name, optimized for its use in the user’s JWT */ 11 | shortId?: string; 12 | /** Shortened unique identifier based on name, optimized for human readability and public API use */ 13 | slug?: string; 14 | /** The date the Access Group was created */ 15 | createdOn?: Date; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/types/AccessGroupList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The list access groups results 9 | */ 10 | export interface AccessGroupList { 11 | /** Number of access groups returned */ 12 | count?: number; 13 | /** The limit specified in the request */ 14 | limit?: number; 15 | /** The offset specified for pagination */ 16 | offset?: number; 17 | /** Total number of access groups in the collection */ 18 | total?: number; 19 | /** List of Site Access Groups */ 20 | accessGroups?: Webflow.AccessGroup[]; 21 | } 22 | -------------------------------------------------------------------------------- /src/api/types/Application.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Application = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/AssetFolderList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The Asset Folders object 9 | */ 10 | export interface AssetFolderList { 11 | /** A list of Asset folders */ 12 | assetFolders?: Webflow.AssetFolder[]; 13 | pagination?: Webflow.Pagination; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/AssetUploadUploadDetails.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Metadata for uploading the asset binary 7 | */ 8 | export interface AssetUploadUploadDetails { 9 | acl?: string; 10 | bucket?: string; 11 | xAmzAlgorithm?: string; 12 | xAmzCredential?: string; 13 | xAmzDate?: string; 14 | key?: string; 15 | policy?: string; 16 | xAmzSignature?: string; 17 | successActionStatus?: string; 18 | contentType?: string; 19 | cacheControl?: string; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/types/Assets.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A list of assets 9 | */ 10 | export interface Assets { 11 | assets?: Webflow.Asset[]; 12 | pagination?: Webflow.Pagination; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/Authorization.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface Authorization { 8 | /** The Authorization object */ 9 | authorization?: Webflow.AuthorizationAuthorization; 10 | application?: Webflow.Application | undefined; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/AuthorizationAuthorizationAuthorizedTo.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface AuthorizationAuthorizationAuthorizedTo { 6 | /** Array of Sites this app is authorized to */ 7 | siteIds?: unknown[]; 8 | /** Array of Workspaces this app is authorized to */ 9 | workspaceIds?: unknown[]; 10 | /** Array of Users this app is authorized to */ 11 | userIds?: unknown[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/AuthorizedUser.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface AuthorizedUser { 6 | /** The unique ID of the user */ 7 | id?: string; 8 | /** The user's email address */ 9 | email?: string; 10 | /** The user's first name */ 11 | firstName?: string; 12 | /** The user's last name */ 13 | lastName?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/BadRequestErrorBody.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export type BadRequestErrorBody = Webflow.InvalidDomain | undefined | Webflow.NoDomains | undefined; 8 | -------------------------------------------------------------------------------- /src/api/types/BulkCollectionItemFieldData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface BulkCollectionItemFieldData { 6 | /** Name of the Item */ 7 | name?: string; 8 | /** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */ 9 | slug?: string; 10 | /** Accepts any additional properties */ 11 | [key: string]: any; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CollectionItemFieldData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CollectionItemFieldData { 6 | /** Name of the Item */ 7 | name: string; 8 | /** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */ 9 | slug: string; 10 | /** Accepts any additional properties */ 11 | [key: string]: any; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CollectionItemList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Results from collection items list 9 | */ 10 | export interface CollectionItemList { 11 | /** List of Items within the collection */ 12 | items?: Webflow.CollectionItem[]; 13 | pagination?: Webflow.CollectionItemListPagination; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/CollectionItemListNoPagination.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Results from collection items list 9 | */ 10 | export interface CollectionItemListNoPagination { 11 | /** List of Items within the collection */ 12 | items?: Webflow.CollectionItem[]; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/CollectionItemListPagination.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CollectionItemListPagination { 6 | /** The limit specified in the request */ 7 | limit?: number; 8 | /** The offset specified for pagination */ 9 | offset?: number; 10 | /** Total number of items in the collection */ 11 | total?: number; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CollectionItemPatchSingleFieldData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CollectionItemPatchSingleFieldData { 6 | /** Name of the Item */ 7 | name?: string; 8 | /** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */ 9 | slug?: string; 10 | /** Accepts any additional properties */ 11 | [key: string]: any; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CollectionItemPostSingleFieldData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CollectionItemPostSingleFieldData { 6 | /** Name of the Item */ 7 | name: string; 8 | /** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */ 9 | slug: string; 10 | /** Accepts any additional properties */ 11 | [key: string]: any; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CollectionItemWithIdInputFieldData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CollectionItemWithIdInputFieldData { 6 | /** Name of the Item */ 7 | name?: string; 8 | /** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */ 9 | slug?: string; 10 | /** Accepts any additional properties */ 11 | [key: string]: any; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CollectionList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface CollectionList { 8 | /** An array of Collections */ 9 | collections?: Webflow.CollectionListArrayItem[]; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/CommentReplyAuthor.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CommentReplyAuthor { 6 | /** The unique identifier of the author */ 7 | id: string; 8 | /** Email of the author */ 9 | email: string; 10 | /** Name of the author */ 11 | name: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CommentReplyList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A list of comment replies. 9 | */ 10 | export interface CommentReplyList { 11 | comments: Webflow.CommentReply[]; 12 | pagination: Webflow.CommentReplyListPagination; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/CommentReplyListPagination.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CommentReplyListPagination { 6 | /** The limit specified in the request (default 100) */ 7 | limit: number; 8 | /** The offset specified for pagination */ 9 | offset: number; 10 | /** Total number of comment replies */ 11 | total: number; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CommentReplyMentionedUsersItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CommentReplyMentionedUsersItem { 6 | /** The unique identifier of the mentioned user */ 7 | id: string; 8 | /** Email of the user */ 9 | email: string; 10 | /** Name of the User */ 11 | name: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CommentThreadAuthor.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CommentThreadAuthor { 6 | /** The unique identifier of the author */ 7 | userId: string; 8 | /** Email of the author */ 9 | email: string; 10 | /** Name of the author */ 11 | name: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CommentThreadList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A list of comment threads on the site. Contains the content of the first reply. 9 | */ 10 | export interface CommentThreadList { 11 | comments: Webflow.CommentThread[]; 12 | pagination: Webflow.CommentThreadListPagination; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/CommentThreadListPagination.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CommentThreadListPagination { 6 | /** The limit specified in the request (default 100) */ 7 | limit: number; 8 | /** The offset specified for pagination */ 9 | offset: number; 10 | /** Total number of comment threads */ 11 | total: number; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/CommentThreadMentionedUsersItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CommentThreadMentionedUsersItem { 6 | /** The unique identifier of the mentioned user */ 7 | userId: string; 8 | /** Email of the user */ 9 | email: string; 10 | /** Name of the User */ 11 | name: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/Component.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The Component object 7 | */ 8 | export interface Component { 9 | /** Unique identifier for the Component */ 10 | id: string; 11 | /** Component Name */ 12 | name?: string; 13 | /** The group that the component belongs to */ 14 | group?: string; 15 | /** Component Description */ 16 | description?: string; 17 | /** Indicates whether the component is read-only. Components that cannot be updated within this Site are set to readonly. Workspace Libraries are a good example. */ 18 | readonly?: boolean; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/types/ComponentInstanceNodePropertyOverridesWrite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Update text property overrides of a component instance 9 | */ 10 | export interface ComponentInstanceNodePropertyOverridesWrite { 11 | /** Node UUID */ 12 | nodeId: string; 13 | /** A list of component instance properties to override within the specified secondary locale. */ 14 | propertyOverrides: Webflow.ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem[]; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/ComponentList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * List of Components on a site. 9 | */ 10 | export interface ComponentList { 11 | components?: Webflow.Component[]; 12 | pagination?: Webflow.Pagination; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/ComponentPropertyType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The type of the property. 7 | */ 8 | export type ComponentPropertyType = "Plain Text" | "Rich Text" | "Alt Text"; 9 | 10 | export const ComponentPropertyType = { 11 | PlainText: "Plain Text", 12 | RichText: "Rich Text", 13 | AltText: "Alt Text", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/types/Conflict.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type Conflict = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/ConflictErrorBody.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export type ConflictErrorBody = Webflow.DuplicateUserEmail | undefined | Webflow.UserLimitReached | undefined; 8 | -------------------------------------------------------------------------------- /src/api/types/CustomCodeBlockType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Whether the Custom Code script is applied at the Site-level or Page-level 7 | */ 8 | export type CustomCodeBlockType = "page" | "site"; 9 | 10 | export const CustomCodeBlockType = { 11 | Page: "page", 12 | Site: "site", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/CustomRole.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface CustomRole { 6 | /** The name of the custom role */ 7 | roleName?: string; 8 | /** The previous name of the custom role */ 9 | previousRoleName?: string; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/CustomRoleAuditLogItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface CustomRoleAuditLogItem { 8 | eventSubType?: Webflow.CustomRoleAuditLogItemEventSubType; 9 | payload?: Webflow.CustomRole; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/CustomRoleAuditLogItemEventSubType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type CustomRoleAuditLogItemEventSubType = "role_created" | "role_updated" | "role_deleted"; 6 | 7 | export const CustomRoleAuditLogItemEventSubType = { 8 | RoleCreated: "role_created", 9 | RoleUpdated: "role_updated", 10 | RoleDeleted: "role_deleted", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/types/Domain.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface Domain { 6 | /** Unique identifier for the Domain */ 7 | id: string; 8 | /** The registered Domain name */ 9 | url?: string; 10 | /** The date the custom domain was last published to */ 11 | lastPublished?: Date; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/Domains.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface Domains { 8 | customDomains?: Webflow.Domain[]; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/DuplicateUserEmail.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type DuplicateUserEmail = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/EcommerceSettings.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Ecommerce settings for a Webflow Site 7 | */ 8 | export interface EcommerceSettings { 9 | /** The identifier of the Site */ 10 | siteId?: string; 11 | /** Date that the Site was created on */ 12 | createdOn?: Date; 13 | /** The three-letter ISO currency code for the Site */ 14 | defaultCurrency?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/Error_.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface Error_ { 8 | /** Error code */ 9 | code?: Webflow.ErrorCode; 10 | /** Error message */ 11 | message?: string; 12 | /** Link to more information */ 13 | externalReference?: string; 14 | /** Array of errors */ 15 | details?: unknown[]; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/types/FieldCreate.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Details about the field of a collection 9 | */ 10 | export type FieldCreate = Webflow.StaticField | Webflow.OptionField | Webflow.ReferenceField; 11 | -------------------------------------------------------------------------------- /src/api/types/ForbiddenErrorBody.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export type ForbiddenErrorBody = Webflow.InvalidScopes | undefined | Webflow.UsersNotEnabled | undefined; 8 | -------------------------------------------------------------------------------- /src/api/types/FormField.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A collection of form fields with additional properties. 9 | */ 10 | export type FormField = Record; 11 | -------------------------------------------------------------------------------- /src/api/types/FormFieldValue.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * An object containing field info for a specific fieldID. 9 | */ 10 | export interface FormFieldValue { 11 | /** The field name displayed on the site */ 12 | displayName?: string; 13 | /** The field type */ 14 | type?: Webflow.FormFieldValueType; 15 | /** The placeholder text for the field */ 16 | placeholder?: string; 17 | /** Whether the field is visible to the user */ 18 | userVisible?: boolean; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/types/FormFieldValueType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The field type 7 | */ 8 | export type FormFieldValueType = "Plain" | "Email" | "Password" | "Phone" | "Number"; 9 | 10 | export const FormFieldValueType = { 11 | Plain: "Plain", 12 | Email: "Email", 13 | Password: "Password", 14 | Phone: "Phone", 15 | Number: "Number", 16 | } as const; 17 | -------------------------------------------------------------------------------- /src/api/types/FormList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface FormList { 8 | forms?: Webflow.Form[]; 9 | pagination?: Webflow.Pagination; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/FormResponseSettings.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Settings for form responses 7 | */ 8 | export interface FormResponseSettings { 9 | /** The url or path to redirect the user to after form submission */ 10 | redirectUrl?: string; 11 | /** The HTTP request method to use for the redirectUrl (eg. POST or GET) */ 12 | redirectMethod?: string; 13 | /** The action to take after form submission */ 14 | redirectAction?: string; 15 | /** Whether to send an email confirmation to the user */ 16 | sendEmailConfirmation?: boolean; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/types/FormSubmissionList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface FormSubmissionList { 8 | formSubmissions?: Webflow.FormSubmission[]; 9 | pagination?: Webflow.Pagination; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/ImageNodeImage.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The image details of the node 7 | */ 8 | export interface ImageNodeImage { 9 | alt?: string; 10 | assetId?: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/InvalidDomain.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type InvalidDomain = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/InvalidScopes.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type InvalidScopes = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/InventoryItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The availabile inventory for an item 9 | */ 10 | export interface InventoryItem { 11 | /** Unique identifier for a SKU item */ 12 | id?: string; 13 | /** Total quantity of items remaining in inventory (if inventoryType is finite) */ 14 | quantity?: number; 15 | /** infinite or finite */ 16 | inventoryType?: Webflow.InventoryItemInventoryType; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/types/InventoryItemInventoryType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * infinite or finite 7 | */ 8 | export type InventoryItemInventoryType = "infinite" | "finite"; 9 | 10 | export const InventoryItemInventoryType = { 11 | Infinite: "infinite", 12 | Finite: "finite", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/ListCustomCodeBlocks.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Custom Code Blocks corresponding to where scripts were applied 9 | */ 10 | export interface ListCustomCodeBlocks { 11 | blocks?: Webflow.CustomCodeBlock[]; 12 | pagination?: Webflow.Pagination; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/Locales.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface Locales { 8 | /** The primary locale for the site or application. */ 9 | primary?: Webflow.Locale; 10 | /** A list of secondary locales available for the site or application. */ 11 | secondary?: Webflow.Locale[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/Metadata.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The metadata for the Option field. 9 | */ 10 | export interface Metadata { 11 | /** The option values for the Option field. */ 12 | options: Webflow.MetadataOptionsItem[]; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/MetadataOptionsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A single option value for the Option field. 7 | */ 8 | export interface MetadataOptionsItem { 9 | /** The name of the option */ 10 | name: string; 11 | /** The unique identifier of the option */ 12 | id?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/NoDomains.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type NoDomains = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/NotEnterprisePlanSite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type NotEnterprisePlanSite = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/NotEnterprisePlanWorkspace.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type NotEnterprisePlanWorkspace = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/OrderAddressJapanType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Represents a Japan-only address format. This field will only appear on orders placed from Japan. 7 | */ 8 | export type OrderAddressJapanType = "kana" | "kanji"; 9 | 10 | export const OrderAddressJapanType = { 11 | Kana: "kana", 12 | Kanji: "kanji", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/OrderAddressType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The type of the order address (billing or shipping) 7 | */ 8 | export type OrderAddressType = "shipping" | "billing"; 9 | 10 | export const OrderAddressType = { 11 | Shipping: "shipping", 12 | Billing: "billing", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/OrderCustomerInfo.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * An object with the keys `fullName` and `email`. 7 | */ 8 | export interface OrderCustomerInfo { 9 | /** The full name of the Customer */ 10 | fullName?: string; 11 | /** The Customer's email address */ 12 | email?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/OrderDownloadFilesItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface OrderDownloadFilesItem { 6 | /** The unique identifier for the downloadable file */ 7 | id?: string; 8 | /** The user-facing name for the downloadable file */ 9 | name?: string; 10 | /** The hosted location for the downloadable file */ 11 | url?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/OrderList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Results from order list 9 | */ 10 | export interface OrderList { 11 | /** List of orders */ 12 | orders?: Webflow.Order[]; 13 | pagination?: Webflow.Pagination; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/OrderMetadata.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface OrderMetadata { 6 | isBuyNow?: boolean; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/OrderPrice.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface OrderPrice { 6 | /** The three-letter ISO currency code */ 7 | unit?: string; 8 | /** The numeric value in the base unit of the currency */ 9 | value?: string; 10 | /** The user-facing string representation of the amount */ 11 | string?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/OrderPurchasedItemVariantImage.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface OrderPurchasedItemVariantImage { 8 | /** The hosted location for the Variant's image */ 9 | url?: string; 10 | file?: Webflow.OrderPurchasedItemVariantImageFile; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/OrderPurchasedItemVariantImageFileVariantsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface OrderPurchasedItemVariantImageFileVariantsItem { 6 | /** The hosted location for the Variant's image */ 7 | url?: string; 8 | originalFileName?: string; 9 | /** The image size in bytes */ 10 | size?: number; 11 | /** The image width in pixels */ 12 | width?: number; 13 | /** The image height in pixels */ 14 | height?: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/OrderStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The status of the Order 7 | */ 8 | export type OrderStatus = "pending" | "unfulfilled" | "fulfilled" | "disputed" | "dispute-lost" | "refunded"; 9 | 10 | export const OrderStatus = { 11 | Pending: "pending", 12 | Unfulfilled: "unfulfilled", 13 | Fulfilled: "fulfilled", 14 | Disputed: "disputed", 15 | DisputeLost: "dispute-lost", 16 | Refunded: "refunded", 17 | } as const; 18 | -------------------------------------------------------------------------------- /src/api/types/OrderTotals.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * An object describing various pricing totals 9 | */ 10 | export interface OrderTotals { 11 | /** The subtotal price */ 12 | subtotal?: Webflow.OrderPrice; 13 | /** An array of extra items, includes discounts, shipping, and taxes. */ 14 | extras?: Webflow.OrderTotalsExtrasItem[]; 15 | /** The total price */ 16 | total?: Webflow.OrderPrice; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/types/OrderTotalsExtrasItemType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The type of extra item this is. 7 | */ 8 | export type OrderTotalsExtrasItemType = "discount" | "discount-shipping" | "shipping" | "tax"; 9 | 10 | export const OrderTotalsExtrasItemType = { 11 | Discount: "discount", 12 | DiscountShipping: "discount-shipping", 13 | Shipping: "shipping", 14 | Tax: "tax", 15 | } as const; 16 | -------------------------------------------------------------------------------- /src/api/types/PageList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The Page object 9 | */ 10 | export interface PageList { 11 | pages?: Webflow.Page[]; 12 | pagination?: Webflow.Pagination; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/PageOpenGraph.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Open Graph fields for the Page 7 | */ 8 | export interface PageOpenGraph { 9 | /** The title supplied to Open Graph annotations */ 10 | title?: string; 11 | /** Indicates the Open Graph title was copied from the SEO title */ 12 | titleCopied?: boolean; 13 | /** The description supplied to Open Graph annotations */ 14 | description?: string; 15 | /** Indicates the Open Graph description was copied from the SEO description */ 16 | descriptionCopied?: boolean; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/types/PageSeo.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * SEO-related fields for the Page 7 | */ 8 | export interface PageSeo { 9 | /** The Page title shown in search engine results */ 10 | title?: string; 11 | /** The Page description shown in search engine results */ 12 | description?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/Pagination.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Pagination object 7 | */ 8 | export interface Pagination { 9 | /** The limit used for pagination */ 10 | limit?: number; 11 | /** The offset used for pagination */ 12 | offset?: number; 13 | /** The total number of records */ 14 | total?: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/PaypalDetails.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface PaypalDetails { 6 | /** PayPal order identifier */ 7 | orderId?: string; 8 | /** PayPal payer identifier */ 9 | payerId?: string; 10 | /** PayPal capture identifier */ 11 | captureId?: string; 12 | /** PayPal refund identifier */ 13 | refundId?: string; 14 | /** PayPal-issued reason for the refund */ 15 | refundReason?: string; 16 | /** PayPal dispute identifier */ 17 | disputeId?: string; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/types/ProductAndSkUs.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A product and its SKUs. 9 | */ 10 | export interface ProductAndSkUs { 11 | product?: Webflow.Product; 12 | /** A list of SKU Objects */ 13 | skus?: Webflow.Sku[]; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/ProductAndSkUsList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Results from product list 9 | */ 10 | export interface ProductAndSkUsList { 11 | /** List of Item objects within the Collection. Contains product and skus keys for each Item */ 12 | items?: Webflow.ProductAndSkUs[]; 13 | pagination?: Webflow.Pagination; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/PublishStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Indicate whether your Product should be set as "staging" or "live" 7 | */ 8 | export type PublishStatus = "staging" | "live"; 9 | 10 | export const PublishStatus = { 11 | Staging: "staging", 12 | Live: "live", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/Redirect.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A single redirection rule, specifying a source URL and a destination URL. 7 | */ 8 | export interface Redirect { 9 | /** The ID of the specific redirect rule */ 10 | id?: string; 11 | /** The source URL path that will be redirected. */ 12 | fromUrl?: string; 13 | /** The target URL path where the user or client will be redirected. */ 14 | toUrl?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/Redirects.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Site redirects response 9 | */ 10 | export interface Redirects { 11 | /** List of redirects for a given site */ 12 | redirects?: Webflow.Redirect[]; 13 | pagination?: Webflow.Pagination; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/ReferenceFieldMetadata.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The collectionId for the referenced collection. Only applicable for Reference and MultiReference fields. 7 | */ 8 | export interface ReferenceFieldMetadata { 9 | /** The unique identifier of the collection */ 10 | collectionId: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/ReferenceFieldType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Choose these appropriate field type for your collection data 7 | */ 8 | export type ReferenceFieldType = "MultiReference" | "Reference"; 9 | 10 | export const ReferenceFieldType = { 11 | MultiReference: "MultiReference", 12 | Reference: "Reference", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/RegisteredScriptList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A list of scripts registered to the site 9 | */ 10 | export interface RegisteredScriptList { 11 | registeredScripts?: Webflow.CustomCodeHostedResponse[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/Robots.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The robots.txt file for a given site 9 | */ 10 | export interface Robots { 11 | /** List of rules for user agents. */ 12 | rules?: Webflow.RobotsRulesItem[]; 13 | /** URL to the sitemap. */ 14 | sitemap?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/RobotsRulesItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface RobotsRulesItem { 6 | /** The user agent the rules apply to. */ 7 | userAgent: string; 8 | /** List of paths allowed for this user agent. */ 9 | allows?: string[]; 10 | /** List of paths disallowed for this user agent. */ 11 | disallows?: string[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/ScriptApply.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface ScriptApply { 8 | /** ID of the registered custom code script */ 9 | id: string; 10 | /** Location of the script, either in the header or footer of the published site */ 11 | location: Webflow.ScriptApplyLocation; 12 | /** Semantic Version String for the registered script *e.g. 0.0.1* */ 13 | version: string; 14 | /** Developer-specified key/value pairs to be applied as attributes to the script */ 15 | attributes?: Record; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/types/ScriptApplyList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface ScriptApplyList { 8 | /** A list of scripts applied to a Site or a Page */ 9 | scripts?: Webflow.ScriptApply[]; 10 | /** Date when the Site's scripts were last updated */ 11 | lastUpdated?: string; 12 | /** Date when the Site's scripts were created */ 13 | createdOn?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/ScriptApplyLocation.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Location of the script, either in the header or footer of the published site 7 | */ 8 | export type ScriptApplyLocation = "header" | "footer"; 9 | 10 | export const ScriptApplyLocation = { 11 | Header: "header", 12 | Footer: "footer", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/Scripts.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A list of scripts applied to a Site or a Page 9 | */ 10 | export type Scripts = Webflow.ScriptApply[]; 11 | -------------------------------------------------------------------------------- /src/api/types/SearchButtonNode.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Represents search button elements within the DOM. It contains the text of the button. Additional attributes can be associated with the text for styling or other purposes. 7 | */ 8 | export interface SearchButtonNode { 9 | /** Node UUID */ 10 | id: string; 11 | /** The text content of the search button. */ 12 | value: string; 13 | /** The custom attributes of the node */ 14 | attributes?: Record; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/SearchButtonNodeWrite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Update a search button node 7 | */ 8 | export interface SearchButtonNodeWrite { 9 | /** Node UUID */ 10 | nodeId: string; 11 | /** The text content of the search button. */ 12 | value: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/SelectNode.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Represents select elements within the DOM. It contains the list of choices in the select. Additional attributes can be associated with the text for styling or other purposes. 9 | */ 10 | export interface SelectNode { 11 | /** Node UUID */ 12 | id: string; 13 | /** The list of choices in this select node. */ 14 | choices: Webflow.SelectNodeChoicesItem[]; 15 | /** The custom attributes of the node */ 16 | attributes?: Record; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/types/SelectNodeChoicesItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface SelectNodeChoicesItem { 6 | /** The value of the choice when selected. */ 7 | value: string; 8 | /** The text to display for the choice. */ 9 | text: string; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/SelectNodeWrite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Update choices on a select node 9 | */ 10 | export interface SelectNodeWrite { 11 | /** Node UUID */ 12 | nodeId: string; 13 | /** The list of choices to set on the select node. */ 14 | choices: Webflow.SelectNodeWriteChoicesItem[]; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/SelectNodeWriteChoicesItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface SelectNodeWriteChoicesItem { 6 | /** The value of the choice when selected. */ 7 | value: string; 8 | /** The text to display for the choice. */ 9 | text: string; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/SiteActivityLogItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface SiteActivityLogItem { 8 | id?: string; 9 | createdOn?: Date; 10 | lastUpdated?: Date; 11 | event?: Webflow.SiteActivityLogItemEvent; 12 | resourceOperation?: Webflow.SiteActivityLogItemResourceOperation; 13 | user?: Webflow.SiteActivityLogItemUser; 14 | resourceId?: string; 15 | resourceName?: string; 16 | newValue?: string; 17 | previousValue?: string; 18 | payload?: Record; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/types/SiteActivityLogItemUser.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface SiteActivityLogItemUser { 6 | id?: string; 7 | displayName?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/SiteActivityLogResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface SiteActivityLogResponse { 8 | items?: Webflow.SiteActivityLogItem[]; 9 | pagination?: Webflow.Pagination; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/SiteDataCollectionType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The type of data collection enabled for the site. 7 | */ 8 | export type SiteDataCollectionType = "always" | "optOut" | "disabled"; 9 | 10 | export const SiteDataCollectionType = { 11 | Always: "always", 12 | OptOut: "optOut", 13 | Disabled: "disabled", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/types/SiteMembershipAuditLogItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface SiteMembershipAuditLogItem { 8 | eventSubType?: Webflow.SiteMembershipAuditLogItemEventSubType; 9 | payload?: Webflow.SiteMembership; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/SiteMembershipAuditLogItemEventSubType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type SiteMembershipAuditLogItemEventSubType = "user_added" | "user_removed" | "user_role_updated"; 6 | 7 | export const SiteMembershipAuditLogItemEventSubType = { 8 | UserAdded: "user_added", 9 | UserRemoved: "user_removed", 10 | UserRoleUpdated: "user_role_updated", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/types/SitePlan.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface SitePlan { 8 | /** ID of the hosting plan. */ 9 | id?: Webflow.SitePlanId; 10 | /** Name of the hosting plan. */ 11 | name?: Webflow.SitePlanName; 12 | /** URL for more information about Webflow hosting plan pricing. */ 13 | pricingInfo?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/Sites.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface Sites { 8 | sites?: Webflow.Site[]; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/Sku.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The SKU object 9 | */ 10 | export interface Sku { 11 | /** Unique identifier for the Product */ 12 | id?: string; 13 | /** Identifier for the locale of the CMS item */ 14 | cmsLocaleId?: string; 15 | /** The date the Product was last published */ 16 | lastPublished?: Date; 17 | /** The date the Product was last updated */ 18 | lastUpdated?: Date; 19 | /** The date the Product was created */ 20 | createdOn?: Date; 21 | fieldData?: Webflow.SkuFieldData; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/types/SkuFieldDataCompareAtPrice.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * comparison price of SKU 7 | */ 8 | export interface SkuFieldDataCompareAtPrice { 9 | /** Price of SKU */ 10 | value?: number; 11 | /** Currency of Item */ 12 | unit?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/SkuFieldDataEcSkuBillingMethod.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * [Billing method](https://help.webflow.com/hc/en-us/articles/33961432087955-Add-and-manage-products-and-categories#billing-methods)for the SKU 7 | */ 8 | export type SkuFieldDataEcSkuBillingMethod = "one-time" | "subscription"; 9 | 10 | export const SkuFieldDataEcSkuBillingMethod = { 11 | OneTime: "one-time", 12 | Subscription: "subscription", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Interval of subscription renewal 7 | */ 8 | export type SkuFieldDataEcSkuSubscriptionPlanInterval = "day" | "week" | "month" | "year"; 9 | 10 | export const SkuFieldDataEcSkuSubscriptionPlanInterval = { 11 | Day: "day", 12 | Week: "week", 13 | Month: "month", 14 | Year: "year", 15 | } as const; 16 | -------------------------------------------------------------------------------- /src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface SkuFieldDataEcSkuSubscriptionPlanPlansItem { 8 | /** The platform of the subscription plan */ 9 | platform?: "stripe"; 10 | /** The unique identifier of the plan */ 11 | id?: string; 12 | /** The status of the plan */ 13 | status?: Webflow.SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The status of the plan 7 | */ 8 | export type SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus = "active" | "inactive" | "canceled"; 9 | 10 | export const SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus = { 11 | Active: "active", 12 | Inactive: "inactive", 13 | Canceled: "canceled", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/types/SkuFieldDataPrice.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * price of SKU 7 | */ 8 | export interface SkuFieldDataPrice { 9 | /** Price of SKU */ 10 | value?: number; 11 | /** Currency of Item */ 12 | unit?: string; 13 | /** Currency of Item (alternative representation) */ 14 | currency?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/SkuPropertyList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * A variant/option type for a SKU 9 | */ 10 | export interface SkuPropertyList { 11 | /** Unique identifier for a collection of Product Variants */ 12 | id: string; 13 | /** Name of the collection of Product Variants */ 14 | name: string; 15 | /** The individual Product variants that are contained within the collection */ 16 | enum: Webflow.SkuPropertyListEnumItem[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/types/SkuPropertyListEnumItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Enumerated Product variants/Options for the SKU 7 | */ 8 | export interface SkuPropertyListEnumItem { 9 | /** Unique identifier for a Product variant/Option */ 10 | id: string; 11 | /** Name of the Product variant/Option */ 12 | name: string; 13 | /** Slug for the Product variant/Option in the Site URL structure */ 14 | slug: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/SkuValueList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * A mapping between SKU properties and their values, represented as key-value pairs. Each key represents a SKU Property ID (e.g. "color") and maps to its corresponding SKU Value ID (e.g. "blue"). This structure defines the specific variant combination for a SKU. 7 | */ 8 | export type SkuValueList = Record; 9 | -------------------------------------------------------------------------------- /src/api/types/StripeCard.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Details on the card used to fulfill this order, if this order was finalized with Stripe. 9 | */ 10 | export interface StripeCard { 11 | /** The last 4 digits on the card as a string */ 12 | last4?: string; 13 | /** The card's brand (ie. credit card network) */ 14 | brand?: Webflow.StripeCardBrand; 15 | /** The name on the card. */ 16 | ownerName?: string; 17 | /** The card's expiration date. */ 18 | expires?: Webflow.StripeCardExpires; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/types/StripeCardBrand.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The card's brand (ie. credit card network) 7 | */ 8 | export type StripeCardBrand = 9 | | "Visa" 10 | | "American Express" 11 | | "MasterCard" 12 | | "Discover" 13 | | "JCB" 14 | | "Diners Club" 15 | | "Unknown"; 16 | 17 | export const StripeCardBrand = { 18 | Visa: "Visa", 19 | AmericanExpress: "American Express", 20 | MasterCard: "MasterCard", 21 | Discover: "Discover", 22 | Jcb: "JCB", 23 | DinersClub: "Diners Club", 24 | Unknown: "Unknown", 25 | } as const; 26 | -------------------------------------------------------------------------------- /src/api/types/StripeCardExpires.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The card's expiration date. 7 | */ 8 | export interface StripeCardExpires { 9 | /** Year that the card expires */ 10 | year?: number; 11 | /** Month that the card expires */ 12 | month?: number; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/SubmitButtonNodeWrite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Update a submit button node 7 | */ 8 | export interface SubmitButtonNodeWrite { 9 | /** Node UUID */ 10 | nodeId: string; 11 | /** The text content of the submit button. */ 12 | value?: string; 13 | /** The text to show while the form is submitting. */ 14 | waitingText?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/Text.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The text content of the node 7 | */ 8 | export interface Text { 9 | /** The HTML content of the text node. */ 10 | html?: string; 11 | /** The raw text content of the text node. */ 12 | text?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/TextInputNode.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Represents text input and textarea elements within the DOM. It contains the placeholder text in the input. Additional attributes can be associated with the text for styling or other purposes. 7 | */ 8 | export interface TextInputNode { 9 | /** Node UUID */ 10 | id: string; 11 | /** The placeholder text of the input node */ 12 | placeholder: string; 13 | /** The custom attributes of the node */ 14 | attributes?: Record; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/TextInputNodeWrite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Update placeholder text on a text input node 7 | */ 8 | export interface TextInputNodeWrite { 9 | /** Node UUID */ 10 | nodeId: string; 11 | /** The placeholder text of the input node */ 12 | placeholder: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/TextNode.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Represents text content within the DOM. It contains both the raw text and its HTML representation. Additional attributes can be associated with the text for styling or other purposes. 9 | */ 10 | export interface TextNode { 11 | /** Node UUID */ 12 | id?: string; 13 | /** The text content of the node */ 14 | text?: Webflow.TextNodeText; 15 | /** The custom attributes of the node */ 16 | attributes?: Record; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/types/TextNodeText.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The text content of the node 7 | */ 8 | export interface TextNodeText { 9 | /** The HTML content of the text node. */ 10 | html?: string; 11 | /** The raw text content of the text node. */ 12 | text?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/TextNodeWrite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Update a text node 7 | */ 8 | export interface TextNodeWrite { 9 | /** Node UUID */ 10 | nodeId: string; 11 | /** HTML content of the node, including the HTML tag. The HTML tags must be the same as what's returned from the Get Content endpoint. */ 12 | text: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/UserAccess.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface UserAccess { 8 | method?: Webflow.WorkspaceAuditLogItemPayloadUserAccessMethod; 9 | /** The geolocation based on the logged IP address */ 10 | location?: string; 11 | /** The captured IP address of the user */ 12 | ipAddress?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/types/UserAccessAuditLogItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface UserAccessAuditLogItem { 8 | eventSubType?: Webflow.UserAccessAuditLogItemEventSubType; 9 | payload?: Webflow.UserAccess; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/UserAccessAuditLogItemEventSubType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type UserAccessAuditLogItemEventSubType = "login" | "logout"; 6 | 7 | export const UserAccessAuditLogItemEventSubType = { 8 | Login: "login", 9 | Logout: "logout", 10 | } as const; 11 | -------------------------------------------------------------------------------- /src/api/types/UserAccessGroupsItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * Access group slugs and types 9 | */ 10 | export interface UserAccessGroupsItem { 11 | /** Access group identifier for APIs */ 12 | slug?: string; 13 | /** 14 | * The type of access group based on how it was assigned to the user. 15 | * * `admin` - Assigned to the user via API or in the designer 16 | * * `ecommerce` - Assigned to the user via an ecommerce purchase 17 | */ 18 | type?: Webflow.UserAccessGroupsItemType; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/types/UserAccessGroupsItemType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The type of access group based on how it was assigned to the user. 7 | * * `admin` - Assigned to the user via API or in the designer 8 | * * `ecommerce` - Assigned to the user via an ecommerce purchase 9 | */ 10 | export type UserAccessGroupsItemType = "admin" | "ecommerce"; 11 | 12 | export const UserAccessGroupsItemType = { 13 | Admin: "admin", 14 | Ecommerce: "ecommerce", 15 | } as const; 16 | -------------------------------------------------------------------------------- /src/api/types/UserData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * An object containing the User's basic info and custom fields 9 | */ 10 | export interface UserData { 11 | data?: Webflow.UserDataData; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/types/UserDataData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface UserDataData { 6 | /** The name of the user */ 7 | name?: string; 8 | /** The email address of the user */ 9 | email?: string; 10 | /** Boolean indicating if the user has accepted the privacy policy */ 11 | acceptPrivacy?: boolean; 12 | /** Boolean indicating if the user has accepted to receive communications */ 13 | acceptCommunications?: boolean; 14 | /** Custom user attributes */ 15 | additionalProperties?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/types/UserLimitReached.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type UserLimitReached = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/UserList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | /** 8 | * The list users results 9 | */ 10 | export interface UserList { 11 | /** Number of users returned */ 12 | count?: number; 13 | /** The limit specified in the request */ 14 | limit?: number; 15 | /** The offset specified for pagination */ 16 | offset?: number; 17 | /** Total number of users in the collection */ 18 | total?: number; 19 | /** List of Users for a Site */ 20 | users?: Webflow.User[]; 21 | } 22 | -------------------------------------------------------------------------------- /src/api/types/UserStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * The status of the user 7 | */ 8 | export type UserStatus = "invited" | "verified" | "unverified"; 9 | 10 | export const UserStatus = { 11 | Invited: "invited", 12 | Verified: "verified", 13 | Unverified: "unverified", 14 | } as const; 15 | -------------------------------------------------------------------------------- /src/api/types/UsersNotEnabled.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type UsersNotEnabled = unknown; 6 | -------------------------------------------------------------------------------- /src/api/types/WebhookFilter.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | /** 6 | * Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for. 7 | */ 8 | export interface WebhookFilter { 9 | /** The name of the form you'd like to recieve notifications for. */ 10 | name?: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/WebhookList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface WebhookList { 8 | webhooks?: Webflow.Webhook[]; 9 | pagination?: Webflow.Pagination; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemActor.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface WorkspaceAuditLogItemActor { 6 | id?: string; 7 | email?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceAuditLogItemPayloadSiteMembershipMethod = "sso" | "invite" | "scim" | "dashboard" | "admin"; 6 | 7 | export const WorkspaceAuditLogItemPayloadSiteMembershipMethod = { 8 | Sso: "sso", 9 | Invite: "invite", 10 | Scim: "scim", 11 | Dashboard: "dashboard", 12 | Admin: "admin", 13 | } as const; 14 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipSite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface WorkspaceAuditLogItemPayloadSiteMembershipSite { 6 | id?: string; 7 | slug?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface WorkspaceAuditLogItemPayloadSiteMembershipTargetUser { 6 | id?: string; 7 | email?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceAuditLogItemPayloadSiteMembershipUserType = "member" | "guest" | "reviewer" | "client"; 6 | 7 | export const WorkspaceAuditLogItemPayloadSiteMembershipUserType = { 8 | Member: "member", 9 | Guest: "guest", 10 | Reviewer: "reviewer", 11 | Client: "client", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadUserAccessMethod.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceAuditLogItemPayloadUserAccessMethod = "dashboard" | "sso" | "api" | "google"; 6 | 7 | export const WorkspaceAuditLogItemPayloadUserAccessMethod = { 8 | Dashboard: "dashboard", 9 | Sso: "sso", 10 | Api: "api", 11 | Google: "google", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod = "sso" | "dashboard" | "admin"; 6 | 7 | export const WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod = { 8 | Sso: "sso", 9 | Dashboard: "dashboard", 10 | Admin: "admin", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser { 6 | id?: string; 7 | email?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType = "member" | "guest" | "reviewer" | "client"; 6 | 7 | export const WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType = { 8 | Member: "member", 9 | Guest: "guest", 10 | Reviewer: "reviewer", 11 | Client: "client", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod = "sso" | "dashboard" | "admin"; 6 | 7 | export const WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod = { 8 | Sso: "sso", 9 | Dashboard: "dashboard", 10 | Admin: "admin", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser { 6 | id?: string; 7 | email?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType = "member" | "guest" | "reviewer" | "client"; 6 | 7 | export const WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType = { 8 | Member: "member", 9 | Guest: "guest", 10 | Reviewer: "reviewer", 11 | Client: "client", 12 | } as const; 13 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogItemWorkspace.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export interface WorkspaceAuditLogItemWorkspace { 6 | id?: string; 7 | slug?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceAuditLogResponse.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface WorkspaceAuditLogResponse { 8 | items?: Webflow.WorkspaceAuditLogItem[]; 9 | pagination?: Webflow.Pagination; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceInvitation.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface WorkspaceInvitation { 8 | targetUser?: Webflow.WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser; 9 | method?: Webflow.WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod; 10 | userType?: Webflow.WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType; 11 | /** The name of the role that was assigned to the user */ 12 | roleName?: string; 13 | /** The previous role that the user had */ 14 | previousRoleName?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceInvitationAuditLogItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface WorkspaceInvitationAuditLogItem { 8 | eventSubType?: Webflow.WorkspaceInvitationAuditLogItemEventSubType; 9 | payload?: Webflow.WorkspaceInvitation; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceInvitationAuditLogItemEventSubType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceInvitationAuditLogItemEventSubType = 6 | | "invite_sent" 7 | | "invite_accepted" 8 | | "invite_updated" 9 | | "invite_canceled" 10 | | "invite_declined"; 11 | 12 | export const WorkspaceInvitationAuditLogItemEventSubType = { 13 | InviteSent: "invite_sent", 14 | InviteAccepted: "invite_accepted", 15 | InviteUpdated: "invite_updated", 16 | InviteCanceled: "invite_canceled", 17 | InviteDeclined: "invite_declined", 18 | } as const; 19 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceMembership.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface WorkspaceMembership { 8 | targetUser?: Webflow.WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser; 9 | method?: Webflow.WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod; 10 | userType?: Webflow.WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType; 11 | /** The name of the role that was assigned to the user */ 12 | roleName?: string; 13 | /** The previous role that the user had */ 14 | previousRoleName?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceMembershipAuditLogItem.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as Webflow from "../index"; 6 | 7 | export interface WorkspaceMembershipAuditLogItem { 8 | eventSubType?: Webflow.WorkspaceMembershipAuditLogItemEventSubType; 9 | payload?: Webflow.WorkspaceMembership; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/WorkspaceMembershipAuditLogItemEventSubType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export type WorkspaceMembershipAuditLogItemEventSubType = "user_added" | "user_removed" | "user_role_updated"; 6 | 7 | export const WorkspaceMembershipAuditLogItemEventSubType = { 8 | UserAdded: "user_added", 9 | UserRemoved: "user_removed", 10 | UserRoleUpdated: "user_role_updated", 11 | } as const; 12 | -------------------------------------------------------------------------------- /src/core/auth/BearerToken.ts: -------------------------------------------------------------------------------- 1 | export type BearerToken = string; 2 | 3 | const BEARER_AUTH_HEADER_PREFIX = /^Bearer /i; 4 | 5 | export const BearerToken = { 6 | toAuthorizationHeader: (token: BearerToken | undefined): string | undefined => { 7 | if (token == null) { 8 | return undefined; 9 | } 10 | return `Bearer ${token}`; 11 | }, 12 | fromAuthorizationHeader: (header: string): BearerToken => { 13 | return header.replace(BEARER_AUTH_HEADER_PREFIX, "").trim() as BearerToken; 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /src/core/auth/index.ts: -------------------------------------------------------------------------------- 1 | export { BasicAuth } from "./BasicAuth"; 2 | export { BearerToken } from "./BearerToken"; 3 | -------------------------------------------------------------------------------- /src/core/fetcher/APIResponse.ts: -------------------------------------------------------------------------------- 1 | export type APIResponse = SuccessfulResponse | FailedResponse; 2 | 3 | export interface SuccessfulResponse { 4 | ok: true; 5 | body: T; 6 | headers?: Record; 7 | } 8 | 9 | export interface FailedResponse { 10 | ok: false; 11 | error: T; 12 | } 13 | -------------------------------------------------------------------------------- /src/core/fetcher/Supplier.ts: -------------------------------------------------------------------------------- 1 | export type Supplier = T | Promise | (() => T | Promise); 2 | 3 | export const Supplier = { 4 | get: async (supplier: Supplier): Promise => { 5 | if (typeof supplier === "function") { 6 | return (supplier as () => T)(); 7 | } else { 8 | return supplier; 9 | } 10 | }, 11 | }; 12 | -------------------------------------------------------------------------------- /src/core/fetcher/createRequestUrl.ts: -------------------------------------------------------------------------------- 1 | import qs from "qs"; 2 | 3 | export function createRequestUrl( 4 | baseUrl: string, 5 | queryParameters?: Record 6 | ): string { 7 | return Object.keys(queryParameters ?? {}).length > 0 8 | ? `${baseUrl}?${qs.stringify(queryParameters, { arrayFormat: "repeat" })}` 9 | : baseUrl; 10 | } 11 | -------------------------------------------------------------------------------- /src/core/fetcher/getHeader.ts: -------------------------------------------------------------------------------- 1 | export function getHeader(headers: Record, header: string): string | undefined { 2 | for (const [headerKey, headerValue] of Object.entries(headers)) { 3 | if (headerKey.toLowerCase() === header.toLowerCase()) { 4 | return headerValue; 5 | } 6 | } 7 | return undefined; 8 | } 9 | -------------------------------------------------------------------------------- /src/core/fetcher/getRequestBody.ts: -------------------------------------------------------------------------------- 1 | export declare namespace GetRequestBody { 2 | interface Args { 3 | body: unknown; 4 | type: "json" | "file" | "bytes" | "other"; 5 | } 6 | } 7 | 8 | export async function getRequestBody({ body, type }: GetRequestBody.Args): Promise { 9 | if (type.includes("json")) { 10 | return JSON.stringify(body); 11 | } else { 12 | return body as BodyInit; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/core/fetcher/index.ts: -------------------------------------------------------------------------------- 1 | export type { APIResponse } from "./APIResponse"; 2 | export { fetcher } from "./Fetcher"; 3 | export type { Fetcher, FetchFunction } from "./Fetcher"; 4 | export { getHeader } from "./getHeader"; 5 | export { Supplier } from "./Supplier"; 6 | -------------------------------------------------------------------------------- /src/core/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./fetcher"; 2 | export * from "./auth"; 3 | export * from "./runtime"; 4 | export * as serialization from "./schemas"; 5 | -------------------------------------------------------------------------------- /src/core/runtime/index.ts: -------------------------------------------------------------------------------- 1 | export { RUNTIME } from "./runtime"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/bigint/index.ts: -------------------------------------------------------------------------------- 1 | export { bigint } from "./bigint"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/date/index.ts: -------------------------------------------------------------------------------- 1 | export { date } from "./date"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/enum/index.ts: -------------------------------------------------------------------------------- 1 | export { enum_ } from "./enum"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./bigint"; 2 | export * from "./date"; 3 | export * from "./enum"; 4 | export * from "./lazy"; 5 | export * from "./list"; 6 | export * from "./literals"; 7 | export * from "./object"; 8 | export * from "./object-like"; 9 | export * from "./primitives"; 10 | export * from "./record"; 11 | export * from "./schema-utils"; 12 | export * from "./set"; 13 | export * from "./undiscriminated-union"; 14 | export * from "./union"; 15 | -------------------------------------------------------------------------------- /src/core/schemas/builders/lazy/index.ts: -------------------------------------------------------------------------------- 1 | export { lazy } from "./lazy"; 2 | export type { SchemaGetter } from "./lazy"; 3 | export { lazyObject } from "./lazyObject"; 4 | -------------------------------------------------------------------------------- /src/core/schemas/builders/list/index.ts: -------------------------------------------------------------------------------- 1 | export { list } from "./list"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/literals/index.ts: -------------------------------------------------------------------------------- 1 | export { stringLiteral } from "./stringLiteral"; 2 | export { booleanLiteral } from "./booleanLiteral"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/builders/object-like/index.ts: -------------------------------------------------------------------------------- 1 | export { getObjectLikeUtils, withParsedProperties } from "./getObjectLikeUtils"; 2 | export type { ObjectLikeSchema, ObjectLikeUtils } from "./types"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/builders/object-like/types.ts: -------------------------------------------------------------------------------- 1 | import { BaseSchema, Schema } from "../../Schema"; 2 | 3 | export type ObjectLikeSchema = Schema & 4 | BaseSchema & 5 | ObjectLikeUtils; 6 | 7 | export interface ObjectLikeUtils { 8 | withParsedProperties: >(properties: { 9 | [K in keyof T]: T[K] | ((parsed: Parsed) => T[K]); 10 | }) => ObjectLikeSchema; 11 | } 12 | -------------------------------------------------------------------------------- /src/core/schemas/builders/primitives/any.ts: -------------------------------------------------------------------------------- 1 | import { SchemaType } from "../../Schema"; 2 | import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; 3 | 4 | export const any = createIdentitySchemaCreator(SchemaType.ANY, (value) => ({ ok: true, value })); 5 | -------------------------------------------------------------------------------- /src/core/schemas/builders/primitives/index.ts: -------------------------------------------------------------------------------- 1 | export { any } from "./any"; 2 | export { boolean } from "./boolean"; 3 | export { number } from "./number"; 4 | export { string } from "./string"; 5 | export { unknown } from "./unknown"; 6 | -------------------------------------------------------------------------------- /src/core/schemas/builders/primitives/unknown.ts: -------------------------------------------------------------------------------- 1 | import { SchemaType } from "../../Schema"; 2 | import { createIdentitySchemaCreator } from "../../utils/createIdentitySchemaCreator"; 3 | 4 | export const unknown = createIdentitySchemaCreator(SchemaType.UNKNOWN, (value) => ({ ok: true, value })); 5 | -------------------------------------------------------------------------------- /src/core/schemas/builders/record/index.ts: -------------------------------------------------------------------------------- 1 | export { record } from "./record"; 2 | export type { BaseRecordSchema, RecordSchema } from "./types"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/JsonError.ts: -------------------------------------------------------------------------------- 1 | import { ValidationError } from "../../Schema"; 2 | import { stringifyValidationError } from "./stringifyValidationErrors"; 3 | 4 | export class JsonError extends Error { 5 | constructor(public readonly errors: ValidationError[]) { 6 | super(errors.map(stringifyValidationError).join("; ")); 7 | Object.setPrototypeOf(this, JsonError.prototype); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/ParseError.ts: -------------------------------------------------------------------------------- 1 | import { ValidationError } from "../../Schema"; 2 | import { stringifyValidationError } from "./stringifyValidationErrors"; 3 | 4 | export class ParseError extends Error { 5 | constructor(public readonly errors: ValidationError[]) { 6 | super(errors.map(stringifyValidationError).join("; ")); 7 | Object.setPrototypeOf(this, ParseError.prototype); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getSchemaUtils, optional, transform } from "./getSchemaUtils"; 2 | export type { SchemaUtils } from "./getSchemaUtils"; 3 | export { JsonError } from "./JsonError"; 4 | export { ParseError } from "./ParseError"; 5 | -------------------------------------------------------------------------------- /src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts: -------------------------------------------------------------------------------- 1 | import { ValidationError } from "../../Schema"; 2 | 3 | export function stringifyValidationError(error: ValidationError): string { 4 | if (error.path.length === 0) { 5 | return error.message; 6 | } 7 | return `${error.path.join(" -> ")}: ${error.message}`; 8 | } 9 | -------------------------------------------------------------------------------- /src/core/schemas/builders/set/index.ts: -------------------------------------------------------------------------------- 1 | export { set } from "./set"; 2 | -------------------------------------------------------------------------------- /src/core/schemas/builders/undiscriminated-union/index.ts: -------------------------------------------------------------------------------- 1 | export type { 2 | inferParsedUnidiscriminatedUnionSchema, 3 | inferRawUnidiscriminatedUnionSchema, 4 | UndiscriminatedUnionSchema, 5 | } from "./types"; 6 | export { undiscriminatedUnion } from "./undiscriminatedUnion"; 7 | -------------------------------------------------------------------------------- /src/core/schemas/builders/undiscriminated-union/types.ts: -------------------------------------------------------------------------------- 1 | import { inferParsed, inferRaw, Schema } from "../../Schema"; 2 | 3 | export type UndiscriminatedUnionSchema = Schema< 4 | inferRawUnidiscriminatedUnionSchema, 5 | inferParsedUnidiscriminatedUnionSchema 6 | >; 7 | 8 | export type inferRawUnidiscriminatedUnionSchema = inferRaw; 9 | 10 | export type inferParsedUnidiscriminatedUnionSchema = inferParsed; 11 | -------------------------------------------------------------------------------- /src/core/schemas/builders/union/discriminant.ts: -------------------------------------------------------------------------------- 1 | export function discriminant( 2 | parsedDiscriminant: ParsedDiscriminant, 3 | rawDiscriminant: RawDiscriminant 4 | ): Discriminant { 5 | return { 6 | parsedDiscriminant, 7 | rawDiscriminant, 8 | }; 9 | } 10 | 11 | export interface Discriminant { 12 | parsedDiscriminant: ParsedDiscriminant; 13 | rawDiscriminant: RawDiscriminant; 14 | } 15 | -------------------------------------------------------------------------------- /src/core/schemas/builders/union/index.ts: -------------------------------------------------------------------------------- 1 | export { discriminant } from "./discriminant"; 2 | export type { Discriminant } from "./discriminant"; 3 | export type { 4 | inferParsedDiscriminant, 5 | inferParsedUnion, 6 | inferRawDiscriminant, 7 | inferRawUnion, 8 | UnionSubtypes, 9 | } from "./types"; 10 | export { union } from "./union"; 11 | -------------------------------------------------------------------------------- /src/core/schemas/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./builders"; 2 | export type { inferParsed, inferRaw, Schema, SchemaOptions } from "./Schema"; 3 | -------------------------------------------------------------------------------- /src/core/schemas/utils/MaybePromise.ts: -------------------------------------------------------------------------------- 1 | export type MaybePromise = T | Promise; 2 | -------------------------------------------------------------------------------- /src/core/schemas/utils/addQuestionMarksToNullableProperties.ts: -------------------------------------------------------------------------------- 1 | export type addQuestionMarksToNullableProperties = { 2 | [K in OptionalKeys]?: T[K]; 3 | } & Pick>; 4 | 5 | export type OptionalKeys = { 6 | [K in keyof T]-?: undefined extends T[K] 7 | ? K 8 | : null extends T[K] 9 | ? K 10 | : 1 extends (any extends T[K] ? 0 : 1) 11 | ? never 12 | : K; 13 | }[keyof T]; 14 | 15 | export type RequiredKeys = Exclude>; 16 | -------------------------------------------------------------------------------- /src/core/schemas/utils/entries.ts: -------------------------------------------------------------------------------- 1 | export function entries(object: T): [keyof T, T[keyof T]][] { 2 | return Object.entries(object) as [keyof T, T[keyof T]][]; 3 | } 4 | -------------------------------------------------------------------------------- /src/core/schemas/utils/filterObject.ts: -------------------------------------------------------------------------------- 1 | export function filterObject(obj: T, keysToInclude: K[]): Pick { 2 | const keysToIncludeSet = new Set(keysToInclude); 3 | return Object.entries(obj).reduce((acc, [key, value]) => { 4 | if (keysToIncludeSet.has(key as K)) { 5 | acc[key as K] = value; 6 | } 7 | return acc; 8 | // eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter 9 | }, {} as Pick); 10 | } 11 | -------------------------------------------------------------------------------- /src/core/schemas/utils/isPlainObject.ts: -------------------------------------------------------------------------------- 1 | // borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js 2 | export function isPlainObject(value: unknown): value is Record { 3 | if (typeof value !== "object" || value === null) { 4 | return false; 5 | } 6 | 7 | if (Object.getPrototypeOf(value) === null) { 8 | return true; 9 | } 10 | 11 | let proto = value; 12 | while (Object.getPrototypeOf(proto) !== null) { 13 | proto = Object.getPrototypeOf(proto); 14 | } 15 | 16 | return Object.getPrototypeOf(value) === proto; 17 | } 18 | -------------------------------------------------------------------------------- /src/core/schemas/utils/keys.ts: -------------------------------------------------------------------------------- 1 | export function keys(object: T): (keyof T)[] { 2 | return Object.keys(object) as (keyof T)[]; 3 | } 4 | -------------------------------------------------------------------------------- /src/core/schemas/utils/partition.ts: -------------------------------------------------------------------------------- 1 | export function partition(items: readonly T[], predicate: (item: T) => boolean): [T[], T[]] { 2 | const trueItems: T[] = [], 3 | falseItems: T[] = []; 4 | for (const item of items) { 5 | if (predicate(item)) { 6 | trueItems.push(item); 7 | } else { 8 | falseItems.push(item); 9 | } 10 | } 11 | return [trueItems, falseItems]; 12 | } 13 | -------------------------------------------------------------------------------- /src/errors/WebflowTimeoutError.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | export class WebflowTimeoutError extends Error { 6 | constructor(message: string) { 7 | super(message); 8 | Object.setPrototypeOf(this, WebflowTimeoutError.prototype); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/errors/index.ts: -------------------------------------------------------------------------------- 1 | export { WebflowError } from "./WebflowError"; 2 | export { WebflowTimeoutError } from "./WebflowTimeoutError"; 3 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * as Webflow from "./api"; 2 | export { WebflowClient } from "./wrapper/WebflowClient"; 3 | export { WebflowEnvironment } from "./environments"; 4 | export { WebflowError, WebflowTimeoutError } from "./errors"; 5 | -------------------------------------------------------------------------------- /src/serialization/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./types"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/accessGroups/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../../../index"; 6 | import * as Webflow from "../../../../api/index"; 7 | import * as core from "../../../../core"; 8 | 9 | export const AccessGroupsListRequestSort: core.serialization.Schema< 10 | serializers.AccessGroupsListRequestSort.Raw, 11 | Webflow.AccessGroupsListRequestSort 12 | > = core.serialization.enum_(["CreatedOn", "-CreatedOn"]); 13 | 14 | export declare namespace AccessGroupsListRequestSort { 15 | type Raw = "CreatedOn" | "-CreatedOn"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/resources/accessGroups/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./AccessGroupsListRequestSort"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/assets/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/assets/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { AssetsCreateRequest } from "./AssetsCreateRequest"; 2 | export { AssetsUpdateRequest } from "./AssetsUpdateRequest"; 3 | export { AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest"; 4 | -------------------------------------------------------------------------------- /src/serialization/resources/assets/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { CollectionsCreateRequest } from "./CollectionsCreateRequest"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/resources/fields/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/resources/fields/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { FieldUpdate } from "./FieldUpdate"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/resources/fields/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as items from "./items"; 2 | export * from "./items/types"; 3 | export * as fields from "./fields"; 4 | export * from "./fields/client/requests"; 5 | export * from "./items/client/requests"; 6 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/resources/items/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/resources/items/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { ItemsDeleteItemsRequest } from "./ItemsDeleteItemsRequest"; 2 | export { ItemsUpdateItemsRequest } from "./ItemsUpdateItemsRequest"; 3 | export { ItemsDeleteItemsLiveRequest } from "./ItemsDeleteItemsLiveRequest"; 4 | export { ItemsUpdateItemsLiveRequest } from "./ItemsUpdateItemsLiveRequest"; 5 | export { CreateBulkCollectionItemRequestBody } from "./CreateBulkCollectionItemRequestBody"; 6 | export { ItemsPublishItemRequest } from "./ItemsPublishItemRequest"; 7 | -------------------------------------------------------------------------------- /src/serialization/resources/collections/resources/items/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/components/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/components/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { ComponentDomWrite } from "./ComponentDomWrite"; 2 | export { ComponentPropertiesWrite } from "./ComponentPropertiesWrite"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/components/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./ComponentDomWriteNodesItem"; 2 | export * from "./ComponentsUpdateContentResponse"; 3 | export * from "./ComponentPropertiesWritePropertiesItem"; 4 | export * from "./ComponentsUpdatePropertiesResponse"; 5 | -------------------------------------------------------------------------------- /src/serialization/resources/forms/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/forms/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { FormsUpdateSubmissionRequest } from "./FormsUpdateSubmissionRequest"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/forms/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/inventory/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/inventory/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { InventoryUpdateRequest } from "./InventoryUpdateRequest"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/inventory/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/inventory/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./InventoryUpdateRequestInventoryType"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/orders/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/orders/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { OrdersUpdateRequest } from "./OrdersUpdateRequest"; 2 | export { OrdersUpdateFulfillRequest } from "./OrdersUpdateFulfillRequest"; 3 | export { OrdersRefundRequest } from "./OrdersRefundRequest"; 4 | -------------------------------------------------------------------------------- /src/serialization/resources/orders/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/orders/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./OrdersListRequestStatus"; 2 | export * from "./OrdersRefundRequestReason"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/pages/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/pages/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { PageDomWrite } from "./PageDomWrite"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/pages/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/pages/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./PageDomWriteNodesItem"; 2 | export * from "./UpdateStaticContentResponse"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/products/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/products/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { ProductSkuCreate } from "./ProductSkuCreate"; 2 | export { ProductSkuUpdate } from "./ProductSkuUpdate"; 3 | export { ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest"; 4 | export { ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest"; 5 | -------------------------------------------------------------------------------- /src/serialization/resources/products/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/products/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./ProductSkuCreateProduct"; 2 | export * from "./ProductSkuCreateSku"; 3 | export * from "./ProductsCreateSkuResponse"; 4 | -------------------------------------------------------------------------------- /src/serialization/resources/scripts/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/scripts/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { CustomCodeHostedRequest } from "./CustomCodeHostedRequest"; 2 | export { CustomCodeInlineRequest } from "./CustomCodeInlineRequest"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/scripts/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { SitesCreateRequest } from "./SitesCreateRequest"; 2 | export { SitesUpdateRequest } from "./SitesUpdateRequest"; 3 | export { SitesPublishRequest } from "./SitesPublishRequest"; 4 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./resources"; 3 | export * from "./client"; 4 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/resources/comments/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/resources/comments/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./CommentsListCommentThreadsRequestSortBy"; 2 | export * from "./CommentsListCommentThreadsRequestSortOrder"; 3 | export * from "./CommentsGetCommentThreadRequestSortBy"; 4 | export * from "./CommentsGetCommentThreadRequestSortOrder"; 5 | export * from "./CommentsListCommentRepliesRequestSortBy"; 6 | export * from "./CommentsListCommentRepliesRequestSortOrder"; 7 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as wellKnown from "./wellKnown"; 2 | export * from "./wellKnown/types"; 3 | export * as comments from "./comments"; 4 | export * from "./comments/types"; 5 | export * from "./wellKnown/client/requests"; 6 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/resources/wellKnown/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/resources/wellKnown/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { WellKnownFile } from "./WellKnownFile"; 2 | export { WellKnownDeleteRequest } from "./WellKnownDeleteRequest"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/resources/wellKnown/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/resources/wellKnown/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./WellKnownFileContentType"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/sites/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./SitesPublishResponse"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/users/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/users/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export { UsersUpdateRequest } from "./UsersUpdateRequest"; 2 | export { UsersInviteRequest } from "./UsersInviteRequest"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/users/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | export * from "./client"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/users/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./UsersListRequestSort"; 2 | export * from "./UsersUpdateRequestData"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/workspaces/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./resources"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/workspaces/resources/auditLogs/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./types"; 2 | -------------------------------------------------------------------------------- /src/serialization/resources/workspaces/resources/auditLogs/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./AuditLogsGetWorkspaceAuditLogsRequestSortOrder"; 2 | export * from "./AuditLogsGetWorkspaceAuditLogsRequestEventType"; 3 | -------------------------------------------------------------------------------- /src/serialization/resources/workspaces/resources/index.ts: -------------------------------------------------------------------------------- 1 | export * as auditLogs from "./auditLogs"; 2 | export * from "./auditLogs/types"; 3 | -------------------------------------------------------------------------------- /src/serialization/types/Application.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const Application: core.serialization.Schema = 10 | core.serialization.unknown(); 11 | 12 | export declare namespace Application { 13 | type Raw = unknown; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/ComponentPropertyType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const ComponentPropertyType: core.serialization.Schema< 10 | serializers.ComponentPropertyType.Raw, 11 | Webflow.ComponentPropertyType 12 | > = core.serialization.enum_(["Plain Text", "Rich Text", "Alt Text"]); 13 | 14 | export declare namespace ComponentPropertyType { 15 | type Raw = "Plain Text" | "Rich Text" | "Alt Text"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/Conflict.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const Conflict: core.serialization.Schema = 10 | core.serialization.unknown(); 11 | 12 | export declare namespace Conflict { 13 | type Raw = unknown; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/CustomCodeBlockType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const CustomCodeBlockType: core.serialization.Schema< 10 | serializers.CustomCodeBlockType.Raw, 11 | Webflow.CustomCodeBlockType 12 | > = core.serialization.enum_(["page", "site"]); 13 | 14 | export declare namespace CustomCodeBlockType { 15 | type Raw = "page" | "site"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/Domains.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | import { Domain } from "./Domain"; 9 | 10 | export const Domains: core.serialization.ObjectSchema = 11 | core.serialization.object({ 12 | customDomains: core.serialization.list(Domain).optional(), 13 | }); 14 | 15 | export declare namespace Domains { 16 | interface Raw { 17 | customDomains?: Domain.Raw[] | null; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/serialization/types/DuplicateUserEmail.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const DuplicateUserEmail: core.serialization.Schema< 10 | serializers.DuplicateUserEmail.Raw, 11 | Webflow.DuplicateUserEmail 12 | > = core.serialization.unknown(); 13 | 14 | export declare namespace DuplicateUserEmail { 15 | type Raw = unknown; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/FormField.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | import { FormFieldValue } from "./FormFieldValue"; 9 | 10 | export const FormField: core.serialization.Schema = 11 | core.serialization.record(core.serialization.string(), FormFieldValue); 12 | 13 | export declare namespace FormField { 14 | type Raw = Record; 15 | } 16 | -------------------------------------------------------------------------------- /src/serialization/types/FormFieldValueType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const FormFieldValueType: core.serialization.Schema< 10 | serializers.FormFieldValueType.Raw, 11 | Webflow.FormFieldValueType 12 | > = core.serialization.enum_(["Plain", "Email", "Password", "Phone", "Number"]); 13 | 14 | export declare namespace FormFieldValueType { 15 | type Raw = "Plain" | "Email" | "Password" | "Phone" | "Number"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/InvalidDomain.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const InvalidDomain: core.serialization.Schema = 10 | core.serialization.unknown(); 11 | 12 | export declare namespace InvalidDomain { 13 | type Raw = unknown; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/InvalidScopes.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const InvalidScopes: core.serialization.Schema = 10 | core.serialization.unknown(); 11 | 12 | export declare namespace InvalidScopes { 13 | type Raw = unknown; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/InventoryItemInventoryType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const InventoryItemInventoryType: core.serialization.Schema< 10 | serializers.InventoryItemInventoryType.Raw, 11 | Webflow.InventoryItemInventoryType 12 | > = core.serialization.enum_(["infinite", "finite"]); 13 | 14 | export declare namespace InventoryItemInventoryType { 15 | type Raw = "infinite" | "finite"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/NoDomains.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const NoDomains: core.serialization.Schema = 10 | core.serialization.unknown(); 11 | 12 | export declare namespace NoDomains { 13 | type Raw = unknown; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/NotEnterprisePlanSite.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const NotEnterprisePlanSite: core.serialization.Schema< 10 | serializers.NotEnterprisePlanSite.Raw, 11 | Webflow.NotEnterprisePlanSite 12 | > = core.serialization.unknown(); 13 | 14 | export declare namespace NotEnterprisePlanSite { 15 | type Raw = unknown; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/NotEnterprisePlanWorkspace.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const NotEnterprisePlanWorkspace: core.serialization.Schema< 10 | serializers.NotEnterprisePlanWorkspace.Raw, 11 | Webflow.NotEnterprisePlanWorkspace 12 | > = core.serialization.unknown(); 13 | 14 | export declare namespace NotEnterprisePlanWorkspace { 15 | type Raw = unknown; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/OrderAddressJapanType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const OrderAddressJapanType: core.serialization.Schema< 10 | serializers.OrderAddressJapanType.Raw, 11 | Webflow.OrderAddressJapanType 12 | > = core.serialization.enum_(["kana", "kanji"]); 13 | 14 | export declare namespace OrderAddressJapanType { 15 | type Raw = "kana" | "kanji"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/OrderAddressType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const OrderAddressType: core.serialization.Schema = 10 | core.serialization.enum_(["shipping", "billing"]); 11 | 12 | export declare namespace OrderAddressType { 13 | type Raw = "shipping" | "billing"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/OrderMetadata.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const OrderMetadata: core.serialization.ObjectSchema = 10 | core.serialization.object({ 11 | isBuyNow: core.serialization.boolean().optional(), 12 | }); 13 | 14 | export declare namespace OrderMetadata { 15 | interface Raw { 16 | isBuyNow?: boolean | null; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/serialization/types/OrderStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const OrderStatus: core.serialization.Schema = 10 | core.serialization.enum_(["pending", "unfulfilled", "fulfilled", "disputed", "dispute-lost", "refunded"]); 11 | 12 | export declare namespace OrderStatus { 13 | type Raw = "pending" | "unfulfilled" | "fulfilled" | "disputed" | "dispute-lost" | "refunded"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/PublishStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const PublishStatus: core.serialization.Schema = 10 | core.serialization.enum_(["staging", "live"]); 11 | 12 | export declare namespace PublishStatus { 13 | type Raw = "staging" | "live"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/ReferenceFieldMetadata.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const ReferenceFieldMetadata: core.serialization.ObjectSchema< 10 | serializers.ReferenceFieldMetadata.Raw, 11 | Webflow.ReferenceFieldMetadata 12 | > = core.serialization.object({ 13 | collectionId: core.serialization.string(), 14 | }); 15 | 16 | export declare namespace ReferenceFieldMetadata { 17 | interface Raw { 18 | collectionId: string; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/serialization/types/ReferenceFieldType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const ReferenceFieldType: core.serialization.Schema< 10 | serializers.ReferenceFieldType.Raw, 11 | Webflow.ReferenceFieldType 12 | > = core.serialization.enum_(["MultiReference", "Reference"]); 13 | 14 | export declare namespace ReferenceFieldType { 15 | type Raw = "MultiReference" | "Reference"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/ScriptApplyLocation.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const ScriptApplyLocation: core.serialization.Schema< 10 | serializers.ScriptApplyLocation.Raw, 11 | Webflow.ScriptApplyLocation 12 | > = core.serialization.enum_(["header", "footer"]); 13 | 14 | export declare namespace ScriptApplyLocation { 15 | type Raw = "header" | "footer"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/Scripts.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | import { ScriptApply } from "./ScriptApply"; 9 | 10 | export const Scripts: core.serialization.Schema = 11 | core.serialization.list(ScriptApply); 12 | 13 | export declare namespace Scripts { 14 | type Raw = ScriptApply.Raw[]; 15 | } 16 | -------------------------------------------------------------------------------- /src/serialization/types/SiteDataCollectionType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const SiteDataCollectionType: core.serialization.Schema< 10 | serializers.SiteDataCollectionType.Raw, 11 | Webflow.SiteDataCollectionType 12 | > = core.serialization.enum_(["always", "optOut", "disabled"]); 13 | 14 | export declare namespace SiteDataCollectionType { 15 | type Raw = "always" | "optOut" | "disabled"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/Sites.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | import { Site } from "./Site"; 9 | 10 | export const Sites: core.serialization.ObjectSchema = core.serialization.object({ 11 | sites: core.serialization.list(Site).optional(), 12 | }); 13 | 14 | export declare namespace Sites { 15 | interface Raw { 16 | sites?: Site.Raw[] | null; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/serialization/types/SkuFieldDataEcSkuBillingMethod.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const SkuFieldDataEcSkuBillingMethod: core.serialization.Schema< 10 | serializers.SkuFieldDataEcSkuBillingMethod.Raw, 11 | Webflow.SkuFieldDataEcSkuBillingMethod 12 | > = core.serialization.enum_(["one-time", "subscription"]); 13 | 14 | export declare namespace SkuFieldDataEcSkuBillingMethod { 15 | type Raw = "one-time" | "subscription"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/SkuValueList.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const SkuValueList: core.serialization.Schema = 10 | core.serialization.record(core.serialization.string(), core.serialization.string()); 11 | 12 | export declare namespace SkuValueList { 13 | type Raw = Record; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/Text.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const Text: core.serialization.ObjectSchema = core.serialization.object({ 10 | html: core.serialization.string().optional(), 11 | text: core.serialization.string().optional(), 12 | }); 13 | 14 | export declare namespace Text { 15 | interface Raw { 16 | html?: string | null; 17 | text?: string | null; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/serialization/types/UserAccessAuditLogItemEventSubType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const UserAccessAuditLogItemEventSubType: core.serialization.Schema< 10 | serializers.UserAccessAuditLogItemEventSubType.Raw, 11 | Webflow.UserAccessAuditLogItemEventSubType 12 | > = core.serialization.enum_(["login", "logout"]); 13 | 14 | export declare namespace UserAccessAuditLogItemEventSubType { 15 | type Raw = "login" | "logout"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/UserAccessGroupsItemType.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const UserAccessGroupsItemType: core.serialization.Schema< 10 | serializers.UserAccessGroupsItemType.Raw, 11 | Webflow.UserAccessGroupsItemType 12 | > = core.serialization.enum_(["admin", "ecommerce"]); 13 | 14 | export declare namespace UserAccessGroupsItemType { 15 | type Raw = "admin" | "ecommerce"; 16 | } 17 | -------------------------------------------------------------------------------- /src/serialization/types/UserData.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | import { UserDataData } from "./UserDataData"; 9 | 10 | export const UserData: core.serialization.ObjectSchema = 11 | core.serialization.object({ 12 | data: UserDataData.optional(), 13 | }); 14 | 15 | export declare namespace UserData { 16 | interface Raw { 17 | data?: UserDataData.Raw | null; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/serialization/types/UserLimitReached.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const UserLimitReached: core.serialization.Schema = 10 | core.serialization.unknown(); 11 | 12 | export declare namespace UserLimitReached { 13 | type Raw = unknown; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/UserStatus.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const UserStatus: core.serialization.Schema = 10 | core.serialization.enum_(["invited", "verified", "unverified"]); 11 | 12 | export declare namespace UserStatus { 13 | type Raw = "invited" | "verified" | "unverified"; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/UsersNotEnabled.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const UsersNotEnabled: core.serialization.Schema = 10 | core.serialization.unknown(); 11 | 12 | export declare namespace UsersNotEnabled { 13 | type Raw = unknown; 14 | } 15 | -------------------------------------------------------------------------------- /src/serialization/types/WebhookFilter.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file was auto-generated by Fern from our API Definition. 3 | */ 4 | 5 | import * as serializers from "../index"; 6 | import * as Webflow from "../../api/index"; 7 | import * as core from "../../core"; 8 | 9 | export const WebhookFilter: core.serialization.ObjectSchema = 10 | core.serialization.object({ 11 | name: core.serialization.string().optional(), 12 | }); 13 | 14 | export declare namespace WebhookFilter { 15 | interface Raw { 16 | name?: string | null; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/version.ts: -------------------------------------------------------------------------------- 1 | export const SDK_VERSION = "3.1.4"; 2 | -------------------------------------------------------------------------------- /tests/custom.test.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This is a custom test file, if you wish to add more tests 3 | * to your SDK. 4 | * Be sure to mark this file in `.fernignore`. 5 | * 6 | * If you include example requests/responses in your fern definition, 7 | * you will have tests automatically generated for you. 8 | */ 9 | describe("test", () => { 10 | it("default", () => { 11 | expect(true).toBe(true); 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /tests/unit/auth/BearerToken.test.ts: -------------------------------------------------------------------------------- 1 | import { BearerToken } from "../../../src/core/auth/BearerToken"; 2 | 3 | describe("BearerToken", () => { 4 | describe("toAuthorizationHeader", () => { 5 | it("correctly converts to header", () => { 6 | expect(BearerToken.toAuthorizationHeader("my-token")).toBe("Bearer my-token"); 7 | }); 8 | }); 9 | describe("fromAuthorizationHeader", () => { 10 | it("correctly parses header", () => { 11 | expect(BearerToken.fromAuthorizationHeader("Bearer my-token")).toBe("my-token"); 12 | }); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /tests/unit/fetcher/test-file.txt: -------------------------------------------------------------------------------- 1 | This is a test file! 2 | -------------------------------------------------------------------------------- /tests/unit/zurg/lazy/lazyObject.test.ts: -------------------------------------------------------------------------------- 1 | import { lazyObject, number, object, string } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | 4 | describe("lazy", () => { 5 | itSchemaIdentity( 6 | lazyObject(() => object({ foo: string() })), 7 | { foo: "hello" } 8 | ); 9 | 10 | itSchemaIdentity( 11 | lazyObject(() => object({ foo: string() })).extend(object({ bar: number() })), 12 | { 13 | foo: "hello", 14 | bar: 42, 15 | }, 16 | { title: "returned schema has object utils" } 17 | ); 18 | }); 19 | -------------------------------------------------------------------------------- /tests/unit/zurg/lazy/recursive/a.ts: -------------------------------------------------------------------------------- 1 | import { object } from "../../../../../src/core/schemas/builders/object"; 2 | import { schemaB } from "./b"; 3 | 4 | // @ts-expect-error 5 | export const schemaA = object({ 6 | b: schemaB, 7 | }); 8 | -------------------------------------------------------------------------------- /tests/unit/zurg/lazy/recursive/b.ts: -------------------------------------------------------------------------------- 1 | import { object } from "../../../../../src/core/schemas/builders/object"; 2 | import { optional } from "../../../../../src/core/schemas/builders/schema-utils"; 3 | import { schemaA } from "./a"; 4 | 5 | // @ts-expect-error 6 | export const schemaB = object({ 7 | a: optional(schemaA), 8 | }); 9 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/any.test.ts: -------------------------------------------------------------------------------- 1 | import { any } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | 4 | describe("any", () => { 5 | itSchemaIdentity(any(), true); 6 | }); 7 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/boolean.test.ts: -------------------------------------------------------------------------------- 1 | import { boolean } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | import { itValidate } from "../utils/itValidate"; 4 | 5 | describe("boolean", () => { 6 | itSchemaIdentity(boolean(), true); 7 | 8 | itValidate("non-boolean", boolean(), {}, [ 9 | { 10 | path: [], 11 | message: "Expected boolean. Received object.", 12 | }, 13 | ]); 14 | }); 15 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/number.test.ts: -------------------------------------------------------------------------------- 1 | import { number } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | import { itValidate } from "../utils/itValidate"; 4 | 5 | describe("number", () => { 6 | itSchemaIdentity(number(), 42); 7 | 8 | itValidate("non-number", number(), "hello", [ 9 | { 10 | path: [], 11 | message: 'Expected number. Received "hello".', 12 | }, 13 | ]); 14 | }); 15 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/string.test.ts: -------------------------------------------------------------------------------- 1 | import { string } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | import { itValidate } from "../utils/itValidate"; 4 | 5 | describe("string", () => { 6 | itSchemaIdentity(string(), "hello"); 7 | 8 | itValidate("non-string", string(), 42, [ 9 | { 10 | path: [], 11 | message: "Expected string. Received 42.", 12 | }, 13 | ]); 14 | }); 15 | -------------------------------------------------------------------------------- /tests/unit/zurg/primitives/unknown.test.ts: -------------------------------------------------------------------------------- 1 | import { unknown } from "../../../../src/core/schemas/builders"; 2 | import { itSchemaIdentity } from "../utils/itSchema"; 3 | 4 | describe("unknown", () => { 5 | itSchemaIdentity(unknown(), true); 6 | }); 7 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "extendedDiagnostics": true, 4 | "strict": true, 5 | "target": "ES6", 6 | "module": "CommonJS", 7 | "moduleResolution": "node", 8 | "esModuleInterop": true, 9 | "skipLibCheck": true, 10 | "declaration": true, 11 | "outDir": "dist", 12 | "rootDir": "src", 13 | "baseUrl": "src" 14 | }, 15 | "include": ["src"], 16 | "exclude": [] 17 | } 18 | --------------------------------------------------------------------------------