hostinger-api-sdk 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.1
4
+ * API Version: 2.1.3
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7076,6 +7076,19 @@ export interface HostingV1CacheToggleCachelessModeRequest {
7076
7076
  */
7077
7077
  'enabled': boolean;
7078
7078
  }
7079
+ /**
7080
+ *
7081
+ * @export
7082
+ * @interface HostingV1CdnCdnStatusResource
7083
+ */
7084
+ export interface HostingV1CdnCdnStatusResource {
7085
+ /**
7086
+ * Whether the Hostinger CDN is enabled for the website domain
7087
+ * @type {boolean}
7088
+ * @memberof HostingV1CdnCdnStatusResource
7089
+ */
7090
+ 'is_enabled': boolean;
7091
+ }
7079
7092
  /**
7080
7093
  *
7081
7094
  * @export
@@ -14325,6 +14338,19 @@ export interface ReachV1ContactsUpdateRequestFieldsInner {
14325
14338
  */
14326
14339
  'selected_option_uuids': Array<string>;
14327
14340
  }
14341
+ /**
14342
+ * Tags every future submitter of the form receives
14343
+ * @export
14344
+ * @interface ReachV1FormsAssignTagsRequest
14345
+ */
14346
+ export interface ReachV1FormsAssignTagsRequest {
14347
+ /**
14348
+ *
14349
+ * @type {Array<string>}
14350
+ * @memberof ReachV1FormsAssignTagsRequest
14351
+ */
14352
+ 'tag_uuids': Array<string>;
14353
+ }
14328
14354
  /**
14329
14355
  *
14330
14356
  * @export
@@ -14525,6 +14551,112 @@ export interface ReachV1FormsFormTemplateResource {
14525
14551
  */
14526
14552
  'path': string | null;
14527
14553
  }
14554
+ /**
14555
+ * The stored version of a saved form design.
14556
+ * @export
14557
+ * @interface ReachV1FormsFormTemplateVersionResource
14558
+ */
14559
+ export interface ReachV1FormsFormTemplateVersionResource {
14560
+ /**
14561
+ *
14562
+ * @type {string}
14563
+ * @memberof ReachV1FormsFormTemplateVersionResource
14564
+ */
14565
+ 'uuid': string;
14566
+ /**
14567
+ * Storage path of the template HTML, relative to the storage directory of this profile.
14568
+ * @type {string}
14569
+ * @memberof ReachV1FormsFormTemplateVersionResource
14570
+ */
14571
+ 'path': string;
14572
+ /**
14573
+ * Whether the design was saved by hand or by the AI builder.
14574
+ * @type {string}
14575
+ * @memberof ReachV1FormsFormTemplateVersionResource
14576
+ */
14577
+ 'edit_type': ReachV1FormsFormTemplateVersionResourceEditTypeEnum | null;
14578
+ /**
14579
+ *
14580
+ * @type {string}
14581
+ * @memberof ReachV1FormsFormTemplateVersionResource
14582
+ */
14583
+ 'created_at': string;
14584
+ /**
14585
+ *
14586
+ * @type {string}
14587
+ * @memberof ReachV1FormsFormTemplateVersionResource
14588
+ */
14589
+ 'updated_at': string;
14590
+ }
14591
+ export declare const ReachV1FormsFormTemplateVersionResourceEditTypeEnum: {
14592
+ readonly Manual: "manual";
14593
+ readonly Ai: "ai";
14594
+ };
14595
+ export type ReachV1FormsFormTemplateVersionResourceEditTypeEnum = typeof ReachV1FormsFormTemplateVersionResourceEditTypeEnum[keyof typeof ReachV1FormsFormTemplateVersionResourceEditTypeEnum];
14596
+ /**
14597
+ * Tag the form stops applying to future submitters
14598
+ * @export
14599
+ * @interface ReachV1FormsRemoveTagRequest
14600
+ */
14601
+ export interface ReachV1FormsRemoveTagRequest {
14602
+ /**
14603
+ *
14604
+ * @type {string}
14605
+ * @memberof ReachV1FormsRemoveTagRequest
14606
+ */
14607
+ 'tag_uuid': string;
14608
+ }
14609
+ /**
14610
+ * Create a draft form
14611
+ * @export
14612
+ * @interface ReachV1FormsStoreRequest
14613
+ */
14614
+ export interface ReachV1FormsStoreRequest {
14615
+ /**
14616
+ * Form name. Letters, digits, spaces and - . \' _ only.
14617
+ * @type {string}
14618
+ * @memberof ReachV1FormsStoreRequest
14619
+ */
14620
+ 'name': string;
14621
+ }
14622
+ /**
14623
+ * Rename a form and/or change its status. Send at least one field.
14624
+ * @export
14625
+ * @interface ReachV1FormsUpdateRequest
14626
+ */
14627
+ export interface ReachV1FormsUpdateRequest {
14628
+ /**
14629
+ * Form name. Letters, digits, spaces and - . \' _ only.
14630
+ * @type {string}
14631
+ * @memberof ReachV1FormsUpdateRequest
14632
+ */
14633
+ 'name': string;
14634
+ /**
14635
+ * `active` takes the form live, `paused` and `draft` stop it accepting submissions.
14636
+ * @type {string}
14637
+ * @memberof ReachV1FormsUpdateRequest
14638
+ */
14639
+ 'status': ReachV1FormsUpdateRequestStatusEnum;
14640
+ }
14641
+ export declare const ReachV1FormsUpdateRequestStatusEnum: {
14642
+ readonly Active: "active";
14643
+ readonly Paused: "paused";
14644
+ readonly Draft: "draft";
14645
+ };
14646
+ export type ReachV1FormsUpdateRequestStatusEnum = typeof ReachV1FormsUpdateRequestStatusEnum[keyof typeof ReachV1FormsUpdateRequestStatusEnum];
14647
+ /**
14648
+ * Save the design of a form
14649
+ * @export
14650
+ * @interface ReachV1FormsUpdateTemplateRequest
14651
+ */
14652
+ export interface ReachV1FormsUpdateTemplateRequest {
14653
+ /**
14654
+ * HTML of the form design. After sanitizing it must still contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`).
14655
+ * @type {string}
14656
+ * @memberof ReachV1FormsUpdateTemplateRequest
14657
+ */
14658
+ 'content': string;
14659
+ }
14528
14660
  /**
14529
14661
  * Sending domain to connect to the profile
14530
14662
  * @export
@@ -24166,13 +24298,187 @@ export declare class HorizonsWebsitesApi extends BaseAPI {
24166
24298
  */
24167
24299
  publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesPublishedWebsiteResource, any, {}, any>>;
24168
24300
  }
24301
+ /**
24302
+ * HostingCDNApi - axios parameter creator
24303
+ * @export
24304
+ */
24305
+ export declare const HostingCDNApiAxiosParamCreator: (configuration?: Configuration) => {
24306
+ /**
24307
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24308
+ * @summary Disable CDN
24309
+ * @param {string} username
24310
+ * @param {string} domain Domain name
24311
+ * @param {*} [options] Override http request option.
24312
+ * @throws {RequiredError}
24313
+ */
24314
+ disableCDNV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24315
+ /**
24316
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24317
+ * @summary Enable CDN
24318
+ * @param {string} username
24319
+ * @param {string} domain Domain name
24320
+ * @param {*} [options] Override http request option.
24321
+ * @throws {RequiredError}
24322
+ */
24323
+ enableCDNV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24324
+ /**
24325
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
24326
+ * @summary Get CDN status
24327
+ * @param {string} username
24328
+ * @param {string} domain Domain name
24329
+ * @param {*} [options] Override http request option.
24330
+ * @throws {RequiredError}
24331
+ */
24332
+ getCDNStatusV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24333
+ /**
24334
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
24335
+ * @summary Purge CDN cache
24336
+ * @param {string} username
24337
+ * @param {string} domain Domain name
24338
+ * @param {*} [options] Override http request option.
24339
+ * @throws {RequiredError}
24340
+ */
24341
+ purgeCDNCacheV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24342
+ };
24343
+ /**
24344
+ * HostingCDNApi - functional programming interface
24345
+ * @export
24346
+ */
24347
+ export declare const HostingCDNApiFp: (configuration?: Configuration) => {
24348
+ /**
24349
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24350
+ * @summary Disable CDN
24351
+ * @param {string} username
24352
+ * @param {string} domain Domain name
24353
+ * @param {*} [options] Override http request option.
24354
+ * @throws {RequiredError}
24355
+ */
24356
+ disableCDNV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
24357
+ /**
24358
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24359
+ * @summary Enable CDN
24360
+ * @param {string} username
24361
+ * @param {string} domain Domain name
24362
+ * @param {*} [options] Override http request option.
24363
+ * @throws {RequiredError}
24364
+ */
24365
+ enableCDNV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
24366
+ /**
24367
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
24368
+ * @summary Get CDN status
24369
+ * @param {string} username
24370
+ * @param {string} domain Domain name
24371
+ * @param {*} [options] Override http request option.
24372
+ * @throws {RequiredError}
24373
+ */
24374
+ getCDNStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CdnCdnStatusResource>>;
24375
+ /**
24376
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
24377
+ * @summary Purge CDN cache
24378
+ * @param {string} username
24379
+ * @param {string} domain Domain name
24380
+ * @param {*} [options] Override http request option.
24381
+ * @throws {RequiredError}
24382
+ */
24383
+ purgeCDNCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
24384
+ };
24385
+ /**
24386
+ * HostingCDNApi - factory interface
24387
+ * @export
24388
+ */
24389
+ export declare const HostingCDNApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
24390
+ /**
24391
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24392
+ * @summary Disable CDN
24393
+ * @param {string} username
24394
+ * @param {string} domain Domain name
24395
+ * @param {*} [options] Override http request option.
24396
+ * @throws {RequiredError}
24397
+ */
24398
+ disableCDNV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
24399
+ /**
24400
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24401
+ * @summary Enable CDN
24402
+ * @param {string} username
24403
+ * @param {string} domain Domain name
24404
+ * @param {*} [options] Override http request option.
24405
+ * @throws {RequiredError}
24406
+ */
24407
+ enableCDNV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
24408
+ /**
24409
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
24410
+ * @summary Get CDN status
24411
+ * @param {string} username
24412
+ * @param {string} domain Domain name
24413
+ * @param {*} [options] Override http request option.
24414
+ * @throws {RequiredError}
24415
+ */
24416
+ getCDNStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CdnCdnStatusResource>;
24417
+ /**
24418
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
24419
+ * @summary Purge CDN cache
24420
+ * @param {string} username
24421
+ * @param {string} domain Domain name
24422
+ * @param {*} [options] Override http request option.
24423
+ * @throws {RequiredError}
24424
+ */
24425
+ purgeCDNCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
24426
+ };
24427
+ /**
24428
+ * HostingCDNApi - object-oriented interface
24429
+ * @export
24430
+ * @class HostingCDNApi
24431
+ * @extends {BaseAPI}
24432
+ */
24433
+ export declare class HostingCDNApi extends BaseAPI {
24434
+ /**
24435
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24436
+ * @summary Disable CDN
24437
+ * @param {string} username
24438
+ * @param {string} domain Domain name
24439
+ * @param {*} [options] Override http request option.
24440
+ * @throws {RequiredError}
24441
+ * @memberof HostingCDNApi
24442
+ */
24443
+ disableCDNV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
24444
+ /**
24445
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
24446
+ * @summary Enable CDN
24447
+ * @param {string} username
24448
+ * @param {string} domain Domain name
24449
+ * @param {*} [options] Override http request option.
24450
+ * @throws {RequiredError}
24451
+ * @memberof HostingCDNApi
24452
+ */
24453
+ enableCDNV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
24454
+ /**
24455
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
24456
+ * @summary Get CDN status
24457
+ * @param {string} username
24458
+ * @param {string} domain Domain name
24459
+ * @param {*} [options] Override http request option.
24460
+ * @throws {RequiredError}
24461
+ * @memberof HostingCDNApi
24462
+ */
24463
+ getCDNStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1CdnCdnStatusResource, any, {}, any>>;
24464
+ /**
24465
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
24466
+ * @summary Purge CDN cache
24467
+ * @param {string} username
24468
+ * @param {string} domain Domain name
24469
+ * @param {*} [options] Override http request option.
24470
+ * @throws {RequiredError}
24471
+ * @memberof HostingCDNApi
24472
+ */
24473
+ purgeCDNCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
24474
+ }
24169
24475
  /**
24170
24476
  * HostingCacheApi - axios parameter creator
24171
24477
  * @export
24172
24478
  */
24173
24479
  export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configuration) => {
24174
24480
  /**
24175
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24481
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24176
24482
  * @summary Clear website cache
24177
24483
  * @param {string} username
24178
24484
  * @param {string} domain Domain name
@@ -24208,7 +24514,7 @@ export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configur
24208
24514
  */
24209
24515
  export declare const HostingCacheApiFp: (configuration?: Configuration) => {
24210
24516
  /**
24211
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24517
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24212
24518
  * @summary Clear website cache
24213
24519
  * @param {string} username
24214
24520
  * @param {string} domain Domain name
@@ -24244,7 +24550,7 @@ export declare const HostingCacheApiFp: (configuration?: Configuration) => {
24244
24550
  */
24245
24551
  export declare const HostingCacheApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
24246
24552
  /**
24247
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24553
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24248
24554
  * @summary Clear website cache
24249
24555
  * @param {string} username
24250
24556
  * @param {string} domain Domain name
@@ -24282,7 +24588,7 @@ export declare const HostingCacheApiFactory: (configuration?: Configuration, bas
24282
24588
  */
24283
24589
  export declare class HostingCacheApi extends BaseAPI {
24284
24590
  /**
24285
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24591
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
24286
24592
  * @summary Clear website cache
24287
24593
  * @param {string} username
24288
24594
  * @param {string} domain Domain name
@@ -30441,6 +30747,25 @@ export type ListProfileContactsV1SubscriptionStatusEnum = typeof ListProfileCont
30441
30747
  * @export
30442
30748
  */
30443
30749
  export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configuration) => {
30750
+ /**
30751
+ * Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
30752
+ * @summary Add form submitter tags
30753
+ * @param {string} profileUuid Profile uuid parameter
30754
+ * @param {string} formUuid Form uuid parameter
30755
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
30756
+ * @param {*} [options] Override http request option.
30757
+ * @throws {RequiredError}
30758
+ */
30759
+ addFormSubmitterTagsV1: (profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30760
+ /**
30761
+ * Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
30762
+ * @summary Create form
30763
+ * @param {string} profileUuid Profile uuid parameter
30764
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
30765
+ * @param {*} [options] Override http request option.
30766
+ * @throws {RequiredError}
30767
+ */
30768
+ createFormV1: (profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30444
30769
  /**
30445
30770
  * Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
30446
30771
  * @summary Delete form
@@ -30450,6 +30775,15 @@ export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configurat
30450
30775
  * @throws {RequiredError}
30451
30776
  */
30452
30777
  deleteFormV1: (profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30778
+ /**
30779
+ * Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
30780
+ * @summary Duplicate form
30781
+ * @param {string} profileUuid Profile uuid parameter
30782
+ * @param {string} formUuid Form uuid parameter
30783
+ * @param {*} [options] Override http request option.
30784
+ * @throws {RequiredError}
30785
+ */
30786
+ duplicateFormV1: (profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30453
30787
  /**
30454
30788
  * Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
30455
30789
  * @summary Get form details
@@ -30465,16 +30799,66 @@ export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configurat
30465
30799
  * @param {string} profileUuid Profile uuid parameter
30466
30800
  * @param {number} [page] Page number
30467
30801
  * @param {number} [perPage] Number of items per page
30802
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
30803
+ * @param {*} [options] Override http request option.
30804
+ * @throws {RequiredError}
30805
+ */
30806
+ listFormsV1: (profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30807
+ /**
30808
+ * Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
30809
+ * @summary Remove form submitter tag
30810
+ * @param {string} profileUuid Profile uuid parameter
30811
+ * @param {string} formUuid Form uuid parameter
30812
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
30813
+ * @param {*} [options] Override http request option.
30814
+ * @throws {RequiredError}
30815
+ */
30816
+ removeFormSubmitterTagV1: (profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30817
+ /**
30818
+ * Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
30819
+ * @summary Update form template
30820
+ * @param {string} profileUuid Profile uuid parameter
30821
+ * @param {string} formUuid Form uuid parameter
30822
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
30823
+ * @param {*} [options] Override http request option.
30824
+ * @throws {RequiredError}
30825
+ */
30826
+ updateFormTemplateV1: (profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30827
+ /**
30828
+ * Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
30829
+ * @summary Update form
30830
+ * @param {string} profileUuid Profile uuid parameter
30831
+ * @param {string} formUuid Form uuid parameter
30832
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
30468
30833
  * @param {*} [options] Override http request option.
30469
30834
  * @throws {RequiredError}
30470
30835
  */
30471
- listFormsV1: (profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30836
+ updateFormV1: (profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30472
30837
  };
30473
30838
  /**
30474
30839
  * ReachFormsApi - functional programming interface
30475
30840
  * @export
30476
30841
  */
30477
30842
  export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30843
+ /**
30844
+ * Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
30845
+ * @summary Add form submitter tags
30846
+ * @param {string} profileUuid Profile uuid parameter
30847
+ * @param {string} formUuid Form uuid parameter
30848
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
30849
+ * @param {*} [options] Override http request option.
30850
+ * @throws {RequiredError}
30851
+ */
30852
+ addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
30853
+ /**
30854
+ * Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
30855
+ * @summary Create form
30856
+ * @param {string} profileUuid Profile uuid parameter
30857
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
30858
+ * @param {*} [options] Override http request option.
30859
+ * @throws {RequiredError}
30860
+ */
30861
+ createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>>;
30478
30862
  /**
30479
30863
  * Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
30480
30864
  * @summary Delete form
@@ -30484,6 +30868,15 @@ export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30484
30868
  * @throws {RequiredError}
30485
30869
  */
30486
30870
  deleteFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
30871
+ /**
30872
+ * Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
30873
+ * @summary Duplicate form
30874
+ * @param {string} profileUuid Profile uuid parameter
30875
+ * @param {string} formUuid Form uuid parameter
30876
+ * @param {*} [options] Override http request option.
30877
+ * @throws {RequiredError}
30878
+ */
30879
+ duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>>;
30487
30880
  /**
30488
30881
  * Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
30489
30882
  * @summary Get form details
@@ -30499,16 +30892,66 @@ export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30499
30892
  * @param {string} profileUuid Profile uuid parameter
30500
30893
  * @param {number} [page] Page number
30501
30894
  * @param {number} [perPage] Number of items per page
30895
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
30896
+ * @param {*} [options] Override http request option.
30897
+ * @throws {RequiredError}
30898
+ */
30899
+ listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListFormsV1200Response>>;
30900
+ /**
30901
+ * Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
30902
+ * @summary Remove form submitter tag
30903
+ * @param {string} profileUuid Profile uuid parameter
30904
+ * @param {string} formUuid Form uuid parameter
30905
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
30502
30906
  * @param {*} [options] Override http request option.
30503
30907
  * @throws {RequiredError}
30504
30908
  */
30505
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListFormsV1200Response>>;
30909
+ removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
30910
+ /**
30911
+ * Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
30912
+ * @summary Update form template
30913
+ * @param {string} profileUuid Profile uuid parameter
30914
+ * @param {string} formUuid Form uuid parameter
30915
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
30916
+ * @param {*} [options] Override http request option.
30917
+ * @throws {RequiredError}
30918
+ */
30919
+ updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormTemplateVersionResource>>;
30920
+ /**
30921
+ * Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
30922
+ * @summary Update form
30923
+ * @param {string} profileUuid Profile uuid parameter
30924
+ * @param {string} formUuid Form uuid parameter
30925
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
30926
+ * @param {*} [options] Override http request option.
30927
+ * @throws {RequiredError}
30928
+ */
30929
+ updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>>;
30506
30930
  };
30507
30931
  /**
30508
30932
  * ReachFormsApi - factory interface
30509
30933
  * @export
30510
30934
  */
30511
30935
  export declare const ReachFormsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
30936
+ /**
30937
+ * Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
30938
+ * @summary Add form submitter tags
30939
+ * @param {string} profileUuid Profile uuid parameter
30940
+ * @param {string} formUuid Form uuid parameter
30941
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
30942
+ * @param {*} [options] Override http request option.
30943
+ * @throws {RequiredError}
30944
+ */
30945
+ addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
30946
+ /**
30947
+ * Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
30948
+ * @summary Create form
30949
+ * @param {string} profileUuid Profile uuid parameter
30950
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
30951
+ * @param {*} [options] Override http request option.
30952
+ * @throws {RequiredError}
30953
+ */
30954
+ createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource>;
30512
30955
  /**
30513
30956
  * Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
30514
30957
  * @summary Delete form
@@ -30518,6 +30961,15 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30518
30961
  * @throws {RequiredError}
30519
30962
  */
30520
30963
  deleteFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
30964
+ /**
30965
+ * Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
30966
+ * @summary Duplicate form
30967
+ * @param {string} profileUuid Profile uuid parameter
30968
+ * @param {string} formUuid Form uuid parameter
30969
+ * @param {*} [options] Override http request option.
30970
+ * @throws {RequiredError}
30971
+ */
30972
+ duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource>;
30521
30973
  /**
30522
30974
  * Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
30523
30975
  * @summary Get form details
@@ -30533,10 +30985,41 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30533
30985
  * @param {string} profileUuid Profile uuid parameter
30534
30986
  * @param {number} [page] Page number
30535
30987
  * @param {number} [perPage] Number of items per page
30988
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
30989
+ * @param {*} [options] Override http request option.
30990
+ * @throws {RequiredError}
30991
+ */
30992
+ listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ReachListFormsV1200Response>;
30993
+ /**
30994
+ * Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
30995
+ * @summary Remove form submitter tag
30996
+ * @param {string} profileUuid Profile uuid parameter
30997
+ * @param {string} formUuid Form uuid parameter
30998
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
30999
+ * @param {*} [options] Override http request option.
31000
+ * @throws {RequiredError}
31001
+ */
31002
+ removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31003
+ /**
31004
+ * Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
31005
+ * @summary Update form template
31006
+ * @param {string} profileUuid Profile uuid parameter
31007
+ * @param {string} formUuid Form uuid parameter
31008
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
30536
31009
  * @param {*} [options] Override http request option.
30537
31010
  * @throws {RequiredError}
30538
31011
  */
30539
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListFormsV1200Response>;
31012
+ updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormTemplateVersionResource>;
31013
+ /**
31014
+ * Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
31015
+ * @summary Update form
31016
+ * @param {string} profileUuid Profile uuid parameter
31017
+ * @param {string} formUuid Form uuid parameter
31018
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
31019
+ * @param {*} [options] Override http request option.
31020
+ * @throws {RequiredError}
31021
+ */
31022
+ updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource>;
30540
31023
  };
30541
31024
  /**
30542
31025
  * ReachFormsApi - object-oriented interface
@@ -30545,6 +31028,27 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30545
31028
  * @extends {BaseAPI}
30546
31029
  */
30547
31030
  export declare class ReachFormsApi extends BaseAPI {
31031
+ /**
31032
+ * Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
31033
+ * @summary Add form submitter tags
31034
+ * @param {string} profileUuid Profile uuid parameter
31035
+ * @param {string} formUuid Form uuid parameter
31036
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
31037
+ * @param {*} [options] Override http request option.
31038
+ * @throws {RequiredError}
31039
+ * @memberof ReachFormsApi
31040
+ */
31041
+ addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31042
+ /**
31043
+ * Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
31044
+ * @summary Create form
31045
+ * @param {string} profileUuid Profile uuid parameter
31046
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
31047
+ * @param {*} [options] Override http request option.
31048
+ * @throws {RequiredError}
31049
+ * @memberof ReachFormsApi
31050
+ */
31051
+ createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormResource, any, {}, any>>;
30548
31052
  /**
30549
31053
  * Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
30550
31054
  * @summary Delete form
@@ -30555,6 +31059,16 @@ export declare class ReachFormsApi extends BaseAPI {
30555
31059
  * @memberof ReachFormsApi
30556
31060
  */
30557
31061
  deleteFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31062
+ /**
31063
+ * Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
31064
+ * @summary Duplicate form
31065
+ * @param {string} profileUuid Profile uuid parameter
31066
+ * @param {string} formUuid Form uuid parameter
31067
+ * @param {*} [options] Override http request option.
31068
+ * @throws {RequiredError}
31069
+ * @memberof ReachFormsApi
31070
+ */
31071
+ duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormResource, any, {}, any>>;
30558
31072
  /**
30559
31073
  * Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
30560
31074
  * @summary Get form details
@@ -30571,12 +31085,55 @@ export declare class ReachFormsApi extends BaseAPI {
30571
31085
  * @param {string} profileUuid Profile uuid parameter
30572
31086
  * @param {number} [page] Page number
30573
31087
  * @param {number} [perPage] Number of items per page
31088
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
31089
+ * @param {*} [options] Override http request option.
31090
+ * @throws {RequiredError}
31091
+ * @memberof ReachFormsApi
31092
+ */
31093
+ listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListFormsV1200Response, any, {}, any>>;
31094
+ /**
31095
+ * Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
31096
+ * @summary Remove form submitter tag
31097
+ * @param {string} profileUuid Profile uuid parameter
31098
+ * @param {string} formUuid Form uuid parameter
31099
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
30574
31100
  * @param {*} [options] Override http request option.
30575
31101
  * @throws {RequiredError}
30576
31102
  * @memberof ReachFormsApi
30577
31103
  */
30578
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListFormsV1200Response, any, {}, any>>;
31104
+ removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31105
+ /**
31106
+ * Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
31107
+ * @summary Update form template
31108
+ * @param {string} profileUuid Profile uuid parameter
31109
+ * @param {string} formUuid Form uuid parameter
31110
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
31111
+ * @param {*} [options] Override http request option.
31112
+ * @throws {RequiredError}
31113
+ * @memberof ReachFormsApi
31114
+ */
31115
+ updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormTemplateVersionResource, any, {}, any>>;
31116
+ /**
31117
+ * Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
31118
+ * @summary Update form
31119
+ * @param {string} profileUuid Profile uuid parameter
31120
+ * @param {string} formUuid Form uuid parameter
31121
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
31122
+ * @param {*} [options] Override http request option.
31123
+ * @throws {RequiredError}
31124
+ * @memberof ReachFormsApi
31125
+ */
31126
+ updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormResource, any, {}, any>>;
30579
31127
  }
31128
+ /**
31129
+ * @export
31130
+ */
31131
+ export declare const ListFormsV1StatusEnum: {
31132
+ readonly Active: "active";
31133
+ readonly Paused: "paused";
31134
+ readonly Draft: "draft";
31135
+ };
31136
+ export type ListFormsV1StatusEnum = typeof ListFormsV1StatusEnum[keyof typeof ListFormsV1StatusEnum];
30580
31137
  /**
30581
31138
  * ReachProfilesApi - axios parameter creator
30582
31139
  * @export