hostinger-api-sdk 2.1.2 → 2.2.0

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.2
4
+ * API Version: 2.2.0
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
@@ -8748,6 +8748,37 @@ export interface HostingV1NodeJsEnvVarResource {
8748
8748
  */
8749
8749
  'value': string;
8750
8750
  }
8751
+ /**
8752
+ *
8753
+ * @export
8754
+ * @interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8755
+ */
8756
+ export interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest {
8757
+ /**
8758
+ * Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes.
8759
+ * @type {string}
8760
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8761
+ */
8762
+ 'owner': string;
8763
+ /**
8764
+ * Repository name without the .git suffix
8765
+ * @type {string}
8766
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8767
+ */
8768
+ 'repository': string;
8769
+ /**
8770
+ * Branch whose package.json is inspected
8771
+ * @type {string}
8772
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8773
+ */
8774
+ 'branch': string;
8775
+ /**
8776
+ * Git installation used to access the repository, taken from `List Git installations`
8777
+ * @type {string}
8778
+ * @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
8779
+ */
8780
+ 'installation_uuid': string;
8781
+ }
8751
8782
  /**
8752
8783
  *
8753
8784
  * @export
@@ -14338,6 +14369,19 @@ export interface ReachV1ContactsUpdateRequestFieldsInner {
14338
14369
  */
14339
14370
  'selected_option_uuids': Array<string>;
14340
14371
  }
14372
+ /**
14373
+ * Tags every future submitter of the form receives
14374
+ * @export
14375
+ * @interface ReachV1FormsAssignTagsRequest
14376
+ */
14377
+ export interface ReachV1FormsAssignTagsRequest {
14378
+ /**
14379
+ *
14380
+ * @type {Array<string>}
14381
+ * @memberof ReachV1FormsAssignTagsRequest
14382
+ */
14383
+ 'tag_uuids': Array<string>;
14384
+ }
14341
14385
  /**
14342
14386
  *
14343
14387
  * @export
@@ -14538,6 +14582,112 @@ export interface ReachV1FormsFormTemplateResource {
14538
14582
  */
14539
14583
  'path': string | null;
14540
14584
  }
14585
+ /**
14586
+ * The stored version of a saved form design.
14587
+ * @export
14588
+ * @interface ReachV1FormsFormTemplateVersionResource
14589
+ */
14590
+ export interface ReachV1FormsFormTemplateVersionResource {
14591
+ /**
14592
+ *
14593
+ * @type {string}
14594
+ * @memberof ReachV1FormsFormTemplateVersionResource
14595
+ */
14596
+ 'uuid': string;
14597
+ /**
14598
+ * Storage path of the template HTML, relative to the storage directory of this profile.
14599
+ * @type {string}
14600
+ * @memberof ReachV1FormsFormTemplateVersionResource
14601
+ */
14602
+ 'path': string;
14603
+ /**
14604
+ * Whether the design was saved by hand or by the AI builder.
14605
+ * @type {string}
14606
+ * @memberof ReachV1FormsFormTemplateVersionResource
14607
+ */
14608
+ 'edit_type': ReachV1FormsFormTemplateVersionResourceEditTypeEnum | null;
14609
+ /**
14610
+ *
14611
+ * @type {string}
14612
+ * @memberof ReachV1FormsFormTemplateVersionResource
14613
+ */
14614
+ 'created_at': string;
14615
+ /**
14616
+ *
14617
+ * @type {string}
14618
+ * @memberof ReachV1FormsFormTemplateVersionResource
14619
+ */
14620
+ 'updated_at': string;
14621
+ }
14622
+ export declare const ReachV1FormsFormTemplateVersionResourceEditTypeEnum: {
14623
+ readonly Manual: "manual";
14624
+ readonly Ai: "ai";
14625
+ };
14626
+ export type ReachV1FormsFormTemplateVersionResourceEditTypeEnum = typeof ReachV1FormsFormTemplateVersionResourceEditTypeEnum[keyof typeof ReachV1FormsFormTemplateVersionResourceEditTypeEnum];
14627
+ /**
14628
+ * Tag the form stops applying to future submitters
14629
+ * @export
14630
+ * @interface ReachV1FormsRemoveTagRequest
14631
+ */
14632
+ export interface ReachV1FormsRemoveTagRequest {
14633
+ /**
14634
+ *
14635
+ * @type {string}
14636
+ * @memberof ReachV1FormsRemoveTagRequest
14637
+ */
14638
+ 'tag_uuid': string;
14639
+ }
14640
+ /**
14641
+ * Create a draft form
14642
+ * @export
14643
+ * @interface ReachV1FormsStoreRequest
14644
+ */
14645
+ export interface ReachV1FormsStoreRequest {
14646
+ /**
14647
+ * Form name. Letters, digits, spaces and - . \' _ only.
14648
+ * @type {string}
14649
+ * @memberof ReachV1FormsStoreRequest
14650
+ */
14651
+ 'name': string;
14652
+ }
14653
+ /**
14654
+ * Rename a form and/or change its status. Send at least one field.
14655
+ * @export
14656
+ * @interface ReachV1FormsUpdateRequest
14657
+ */
14658
+ export interface ReachV1FormsUpdateRequest {
14659
+ /**
14660
+ * Form name. Letters, digits, spaces and - . \' _ only.
14661
+ * @type {string}
14662
+ * @memberof ReachV1FormsUpdateRequest
14663
+ */
14664
+ 'name': string;
14665
+ /**
14666
+ * `active` takes the form live, `paused` and `draft` stop it accepting submissions.
14667
+ * @type {string}
14668
+ * @memberof ReachV1FormsUpdateRequest
14669
+ */
14670
+ 'status': ReachV1FormsUpdateRequestStatusEnum;
14671
+ }
14672
+ export declare const ReachV1FormsUpdateRequestStatusEnum: {
14673
+ readonly Active: "active";
14674
+ readonly Paused: "paused";
14675
+ readonly Draft: "draft";
14676
+ };
14677
+ export type ReachV1FormsUpdateRequestStatusEnum = typeof ReachV1FormsUpdateRequestStatusEnum[keyof typeof ReachV1FormsUpdateRequestStatusEnum];
14678
+ /**
14679
+ * Save the design of a form
14680
+ * @export
14681
+ * @interface ReachV1FormsUpdateTemplateRequest
14682
+ */
14683
+ export interface ReachV1FormsUpdateTemplateRequest {
14684
+ /**
14685
+ * 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`).
14686
+ * @type {string}
14687
+ * @memberof ReachV1FormsUpdateTemplateRequest
14688
+ */
14689
+ 'content': string;
14690
+ }
14541
14691
  /**
14542
14692
  * Sending domain to connect to the profile
14543
14693
  * @export
@@ -26147,6 +26297,19 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
26147
26297
  * @throws {RequiredError}
26148
26298
  */
26149
26299
  getNodeJsBuildSettingsFromArchiveV1: (username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26300
+ /**
26301
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26302
+ * @summary Get Node.js build settings from repository
26303
+ * @param {string} username
26304
+ * @param {string} domain Domain name
26305
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26306
+ * @param {string} repository Repository name without the .git suffix
26307
+ * @param {string} branch Branch whose package.json is inspected
26308
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26309
+ * @param {*} [options] Override http request option.
26310
+ * @throws {RequiredError}
26311
+ */
26312
+ getNodeJsBuildSettingsFromRepositoryV1: (username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26150
26313
  /**
26151
26314
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26152
26315
  * @summary Get Node.js build settings
@@ -26305,6 +26468,19 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
26305
26468
  * @throws {RequiredError}
26306
26469
  */
26307
26470
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>>;
26471
+ /**
26472
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26473
+ * @summary Get Node.js build settings from repository
26474
+ * @param {string} username
26475
+ * @param {string} domain Domain name
26476
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26477
+ * @param {string} repository Repository name without the .git suffix
26478
+ * @param {string} branch Branch whose package.json is inspected
26479
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26480
+ * @param {*} [options] Override http request option.
26481
+ * @throws {RequiredError}
26482
+ */
26483
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>>;
26308
26484
  /**
26309
26485
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26310
26486
  * @summary Get Node.js build settings
@@ -26463,6 +26639,19 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
26463
26639
  * @throws {RequiredError}
26464
26640
  */
26465
26641
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource>;
26642
+ /**
26643
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26644
+ * @summary Get Node.js build settings from repository
26645
+ * @param {string} username
26646
+ * @param {string} domain Domain name
26647
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26648
+ * @param {string} repository Repository name without the .git suffix
26649
+ * @param {string} branch Branch whose package.json is inspected
26650
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26651
+ * @param {*} [options] Override http request option.
26652
+ * @throws {RequiredError}
26653
+ */
26654
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource>;
26466
26655
  /**
26467
26656
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26468
26657
  * @summary Get Node.js build settings
@@ -26628,6 +26817,20 @@ export declare class HostingNodeJSApi extends BaseAPI {
26628
26817
  * @memberof HostingNodeJSApi
26629
26818
  */
26630
26819
  getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildSettingsResource, any, {}, any>>;
26820
+ /**
26821
+ * Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
26822
+ * @summary Get Node.js build settings from repository
26823
+ * @param {string} username
26824
+ * @param {string} domain Domain name
26825
+ * @param {string} owner Repository owner login. GitLab group paths use slashes.
26826
+ * @param {string} repository Repository name without the .git suffix
26827
+ * @param {string} branch Branch whose package.json is inspected
26828
+ * @param {string} installationUuid Git installation used to access the repository, taken from &#x60;List Git installations&#x60;
26829
+ * @param {*} [options] Override http request option.
26830
+ * @throws {RequiredError}
26831
+ * @memberof HostingNodeJSApi
26832
+ */
26833
+ getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildSettingsResource, any, {}, any>>;
26631
26834
  /**
26632
26835
  * Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
26633
26836
  * @summary Get Node.js build settings
@@ -30628,6 +30831,25 @@ export type ListProfileContactsV1SubscriptionStatusEnum = typeof ListProfileCont
30628
30831
  * @export
30629
30832
  */
30630
30833
  export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configuration) => {
30834
+ /**
30835
+ * 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.
30836
+ * @summary Add form submitter tags
30837
+ * @param {string} profileUuid Profile uuid parameter
30838
+ * @param {string} formUuid Form uuid parameter
30839
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
30840
+ * @param {*} [options] Override http request option.
30841
+ * @throws {RequiredError}
30842
+ */
30843
+ addFormSubmitterTagsV1: (profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30844
+ /**
30845
+ * 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.
30846
+ * @summary Create form
30847
+ * @param {string} profileUuid Profile uuid parameter
30848
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
30849
+ * @param {*} [options] Override http request option.
30850
+ * @throws {RequiredError}
30851
+ */
30852
+ createFormV1: (profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30631
30853
  /**
30632
30854
  * 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.
30633
30855
  * @summary Delete form
@@ -30637,6 +30859,15 @@ export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configurat
30637
30859
  * @throws {RequiredError}
30638
30860
  */
30639
30861
  deleteFormV1: (profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30862
+ /**
30863
+ * 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`.
30864
+ * @summary Duplicate form
30865
+ * @param {string} profileUuid Profile uuid parameter
30866
+ * @param {string} formUuid Form uuid parameter
30867
+ * @param {*} [options] Override http request option.
30868
+ * @throws {RequiredError}
30869
+ */
30870
+ duplicateFormV1: (profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30640
30871
  /**
30641
30872
  * 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.
30642
30873
  * @summary Get form details
@@ -30652,16 +30883,66 @@ export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configurat
30652
30883
  * @param {string} profileUuid Profile uuid parameter
30653
30884
  * @param {number} [page] Page number
30654
30885
  * @param {number} [perPage] Number of items per page
30886
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
30887
+ * @param {*} [options] Override http request option.
30888
+ * @throws {RequiredError}
30889
+ */
30890
+ listFormsV1: (profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30891
+ /**
30892
+ * 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.
30893
+ * @summary Remove form submitter tag
30894
+ * @param {string} profileUuid Profile uuid parameter
30895
+ * @param {string} formUuid Form uuid parameter
30896
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
30897
+ * @param {*} [options] Override http request option.
30898
+ * @throws {RequiredError}
30899
+ */
30900
+ removeFormSubmitterTagV1: (profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30901
+ /**
30902
+ * 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.
30903
+ * @summary Update form template
30904
+ * @param {string} profileUuid Profile uuid parameter
30905
+ * @param {string} formUuid Form uuid parameter
30906
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
30655
30907
  * @param {*} [options] Override http request option.
30656
30908
  * @throws {RequiredError}
30657
30909
  */
30658
- listFormsV1: (profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30910
+ updateFormTemplateV1: (profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30911
+ /**
30912
+ * 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.
30913
+ * @summary Update form
30914
+ * @param {string} profileUuid Profile uuid parameter
30915
+ * @param {string} formUuid Form uuid parameter
30916
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
30917
+ * @param {*} [options] Override http request option.
30918
+ * @throws {RequiredError}
30919
+ */
30920
+ updateFormV1: (profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30659
30921
  };
30660
30922
  /**
30661
30923
  * ReachFormsApi - functional programming interface
30662
30924
  * @export
30663
30925
  */
30664
30926
  export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30927
+ /**
30928
+ * 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.
30929
+ * @summary Add form submitter tags
30930
+ * @param {string} profileUuid Profile uuid parameter
30931
+ * @param {string} formUuid Form uuid parameter
30932
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
30933
+ * @param {*} [options] Override http request option.
30934
+ * @throws {RequiredError}
30935
+ */
30936
+ addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
30937
+ /**
30938
+ * 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.
30939
+ * @summary Create form
30940
+ * @param {string} profileUuid Profile uuid parameter
30941
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
30942
+ * @param {*} [options] Override http request option.
30943
+ * @throws {RequiredError}
30944
+ */
30945
+ createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>>;
30665
30946
  /**
30666
30947
  * 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.
30667
30948
  * @summary Delete form
@@ -30671,6 +30952,15 @@ export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30671
30952
  * @throws {RequiredError}
30672
30953
  */
30673
30954
  deleteFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
30955
+ /**
30956
+ * 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`.
30957
+ * @summary Duplicate form
30958
+ * @param {string} profileUuid Profile uuid parameter
30959
+ * @param {string} formUuid Form uuid parameter
30960
+ * @param {*} [options] Override http request option.
30961
+ * @throws {RequiredError}
30962
+ */
30963
+ duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>>;
30674
30964
  /**
30675
30965
  * 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.
30676
30966
  * @summary Get form details
@@ -30686,16 +30976,66 @@ export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30686
30976
  * @param {string} profileUuid Profile uuid parameter
30687
30977
  * @param {number} [page] Page number
30688
30978
  * @param {number} [perPage] Number of items per page
30979
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
30980
+ * @param {*} [options] Override http request option.
30981
+ * @throws {RequiredError}
30982
+ */
30983
+ listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListFormsV1200Response>>;
30984
+ /**
30985
+ * 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.
30986
+ * @summary Remove form submitter tag
30987
+ * @param {string} profileUuid Profile uuid parameter
30988
+ * @param {string} formUuid Form uuid parameter
30989
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
30990
+ * @param {*} [options] Override http request option.
30991
+ * @throws {RequiredError}
30992
+ */
30993
+ removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
30994
+ /**
30995
+ * 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.
30996
+ * @summary Update form template
30997
+ * @param {string} profileUuid Profile uuid parameter
30998
+ * @param {string} formUuid Form uuid parameter
30999
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
31000
+ * @param {*} [options] Override http request option.
31001
+ * @throws {RequiredError}
31002
+ */
31003
+ updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormTemplateVersionResource>>;
31004
+ /**
31005
+ * 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.
31006
+ * @summary Update form
31007
+ * @param {string} profileUuid Profile uuid parameter
31008
+ * @param {string} formUuid Form uuid parameter
31009
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
30689
31010
  * @param {*} [options] Override http request option.
30690
31011
  * @throws {RequiredError}
30691
31012
  */
30692
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListFormsV1200Response>>;
31013
+ updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>>;
30693
31014
  };
30694
31015
  /**
30695
31016
  * ReachFormsApi - factory interface
30696
31017
  * @export
30697
31018
  */
30698
31019
  export declare const ReachFormsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
31020
+ /**
31021
+ * 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.
31022
+ * @summary Add form submitter tags
31023
+ * @param {string} profileUuid Profile uuid parameter
31024
+ * @param {string} formUuid Form uuid parameter
31025
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
31026
+ * @param {*} [options] Override http request option.
31027
+ * @throws {RequiredError}
31028
+ */
31029
+ addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31030
+ /**
31031
+ * 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.
31032
+ * @summary Create form
31033
+ * @param {string} profileUuid Profile uuid parameter
31034
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
31035
+ * @param {*} [options] Override http request option.
31036
+ * @throws {RequiredError}
31037
+ */
31038
+ createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource>;
30699
31039
  /**
30700
31040
  * 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.
30701
31041
  * @summary Delete form
@@ -30705,6 +31045,15 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30705
31045
  * @throws {RequiredError}
30706
31046
  */
30707
31047
  deleteFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31048
+ /**
31049
+ * 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`.
31050
+ * @summary Duplicate form
31051
+ * @param {string} profileUuid Profile uuid parameter
31052
+ * @param {string} formUuid Form uuid parameter
31053
+ * @param {*} [options] Override http request option.
31054
+ * @throws {RequiredError}
31055
+ */
31056
+ duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource>;
30708
31057
  /**
30709
31058
  * 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.
30710
31059
  * @summary Get form details
@@ -30720,10 +31069,41 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30720
31069
  * @param {string} profileUuid Profile uuid parameter
30721
31070
  * @param {number} [page] Page number
30722
31071
  * @param {number} [perPage] Number of items per page
31072
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
31073
+ * @param {*} [options] Override http request option.
31074
+ * @throws {RequiredError}
31075
+ */
31076
+ listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ReachListFormsV1200Response>;
31077
+ /**
31078
+ * 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.
31079
+ * @summary Remove form submitter tag
31080
+ * @param {string} profileUuid Profile uuid parameter
31081
+ * @param {string} formUuid Form uuid parameter
31082
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
30723
31083
  * @param {*} [options] Override http request option.
30724
31084
  * @throws {RequiredError}
30725
31085
  */
30726
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListFormsV1200Response>;
31086
+ removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31087
+ /**
31088
+ * 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.
31089
+ * @summary Update form template
31090
+ * @param {string} profileUuid Profile uuid parameter
31091
+ * @param {string} formUuid Form uuid parameter
31092
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
31093
+ * @param {*} [options] Override http request option.
31094
+ * @throws {RequiredError}
31095
+ */
31096
+ updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormTemplateVersionResource>;
31097
+ /**
31098
+ * 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.
31099
+ * @summary Update form
31100
+ * @param {string} profileUuid Profile uuid parameter
31101
+ * @param {string} formUuid Form uuid parameter
31102
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
31103
+ * @param {*} [options] Override http request option.
31104
+ * @throws {RequiredError}
31105
+ */
31106
+ updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource>;
30727
31107
  };
30728
31108
  /**
30729
31109
  * ReachFormsApi - object-oriented interface
@@ -30732,6 +31112,27 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30732
31112
  * @extends {BaseAPI}
30733
31113
  */
30734
31114
  export declare class ReachFormsApi extends BaseAPI {
31115
+ /**
31116
+ * 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.
31117
+ * @summary Add form submitter tags
31118
+ * @param {string} profileUuid Profile uuid parameter
31119
+ * @param {string} formUuid Form uuid parameter
31120
+ * @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
31121
+ * @param {*} [options] Override http request option.
31122
+ * @throws {RequiredError}
31123
+ * @memberof ReachFormsApi
31124
+ */
31125
+ addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31126
+ /**
31127
+ * 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.
31128
+ * @summary Create form
31129
+ * @param {string} profileUuid Profile uuid parameter
31130
+ * @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
31131
+ * @param {*} [options] Override http request option.
31132
+ * @throws {RequiredError}
31133
+ * @memberof ReachFormsApi
31134
+ */
31135
+ createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormResource, any, {}, any>>;
30735
31136
  /**
30736
31137
  * 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.
30737
31138
  * @summary Delete form
@@ -30742,6 +31143,16 @@ export declare class ReachFormsApi extends BaseAPI {
30742
31143
  * @memberof ReachFormsApi
30743
31144
  */
30744
31145
  deleteFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31146
+ /**
31147
+ * 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`.
31148
+ * @summary Duplicate form
31149
+ * @param {string} profileUuid Profile uuid parameter
31150
+ * @param {string} formUuid Form uuid parameter
31151
+ * @param {*} [options] Override http request option.
31152
+ * @throws {RequiredError}
31153
+ * @memberof ReachFormsApi
31154
+ */
31155
+ duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormResource, any, {}, any>>;
30745
31156
  /**
30746
31157
  * 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.
30747
31158
  * @summary Get form details
@@ -30758,12 +31169,55 @@ export declare class ReachFormsApi extends BaseAPI {
30758
31169
  * @param {string} profileUuid Profile uuid parameter
30759
31170
  * @param {number} [page] Page number
30760
31171
  * @param {number} [perPage] Number of items per page
31172
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
31173
+ * @param {*} [options] Override http request option.
31174
+ * @throws {RequiredError}
31175
+ * @memberof ReachFormsApi
31176
+ */
31177
+ listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListFormsV1200Response, any, {}, any>>;
31178
+ /**
31179
+ * 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.
31180
+ * @summary Remove form submitter tag
31181
+ * @param {string} profileUuid Profile uuid parameter
31182
+ * @param {string} formUuid Form uuid parameter
31183
+ * @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
31184
+ * @param {*} [options] Override http request option.
31185
+ * @throws {RequiredError}
31186
+ * @memberof ReachFormsApi
31187
+ */
31188
+ removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31189
+ /**
31190
+ * 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.
31191
+ * @summary Update form template
31192
+ * @param {string} profileUuid Profile uuid parameter
31193
+ * @param {string} formUuid Form uuid parameter
31194
+ * @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
30761
31195
  * @param {*} [options] Override http request option.
30762
31196
  * @throws {RequiredError}
30763
31197
  * @memberof ReachFormsApi
30764
31198
  */
30765
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListFormsV1200Response, any, {}, any>>;
31199
+ updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormTemplateVersionResource, any, {}, any>>;
31200
+ /**
31201
+ * 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.
31202
+ * @summary Update form
31203
+ * @param {string} profileUuid Profile uuid parameter
31204
+ * @param {string} formUuid Form uuid parameter
31205
+ * @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
31206
+ * @param {*} [options] Override http request option.
31207
+ * @throws {RequiredError}
31208
+ * @memberof ReachFormsApi
31209
+ */
31210
+ updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1FormsFormResource, any, {}, any>>;
30766
31211
  }
31212
+ /**
31213
+ * @export
31214
+ */
31215
+ export declare const ListFormsV1StatusEnum: {
31216
+ readonly Active: "active";
31217
+ readonly Paused: "paused";
31218
+ readonly Draft: "draft";
31219
+ };
31220
+ export type ListFormsV1StatusEnum = typeof ListFormsV1StatusEnum[keyof typeof ListFormsV1StatusEnum];
30767
31221
  /**
30768
31222
  * ReachProfilesApi - axios parameter creator
30769
31223
  * @export