hostinger-api-sdk 2.1.2 → 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/base.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.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
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.1.2
7
+ * API Version: 2.1.3
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.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.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
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.1.2
7
+ * API Version: 2.1.3
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.2
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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.1.2
7
+ * API Version: 2.1.3
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.1.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.1.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
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.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
@@ -14338,6 +14338,19 @@ export interface ReachV1ContactsUpdateRequestFieldsInner {
14338
14338
  */
14339
14339
  'selected_option_uuids': Array<string>;
14340
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
+ }
14341
14354
  /**
14342
14355
  *
14343
14356
  * @export
@@ -14538,6 +14551,112 @@ export interface ReachV1FormsFormTemplateResource {
14538
14551
  */
14539
14552
  'path': string | null;
14540
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
+ }
14541
14660
  /**
14542
14661
  * Sending domain to connect to the profile
14543
14662
  * @export
@@ -30628,6 +30747,25 @@ export type ListProfileContactsV1SubscriptionStatusEnum = typeof ListProfileCont
30628
30747
  * @export
30629
30748
  */
30630
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>;
30631
30769
  /**
30632
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.
30633
30771
  * @summary Delete form
@@ -30637,6 +30775,15 @@ export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configurat
30637
30775
  * @throws {RequiredError}
30638
30776
  */
30639
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>;
30640
30787
  /**
30641
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.
30642
30789
  * @summary Get form details
@@ -30652,16 +30799,66 @@ export declare const ReachFormsApiAxiosParamCreator: (configuration?: Configurat
30652
30799
  * @param {string} profileUuid Profile uuid parameter
30653
30800
  * @param {number} [page] Page number
30654
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
30655
30833
  * @param {*} [options] Override http request option.
30656
30834
  * @throws {RequiredError}
30657
30835
  */
30658
- listFormsV1: (profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30836
+ updateFormV1: (profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30659
30837
  };
30660
30838
  /**
30661
30839
  * ReachFormsApi - functional programming interface
30662
30840
  * @export
30663
30841
  */
30664
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>>;
30665
30862
  /**
30666
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.
30667
30864
  * @summary Delete form
@@ -30671,6 +30868,15 @@ export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30671
30868
  * @throws {RequiredError}
30672
30869
  */
30673
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>>;
30674
30880
  /**
30675
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.
30676
30882
  * @summary Get form details
@@ -30686,16 +30892,66 @@ export declare const ReachFormsApiFp: (configuration?: Configuration) => {
30686
30892
  * @param {string} profileUuid Profile uuid parameter
30687
30893
  * @param {number} [page] Page number
30688
30894
  * @param {number} [perPage] Number of items per page
30895
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
30689
30896
  * @param {*} [options] Override http request option.
30690
30897
  * @throws {RequiredError}
30691
30898
  */
30692
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListFormsV1200Response>>;
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
30906
+ * @param {*} [options] Override http request option.
30907
+ * @throws {RequiredError}
30908
+ */
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>>;
30693
30930
  };
30694
30931
  /**
30695
30932
  * ReachFormsApi - factory interface
30696
30933
  * @export
30697
30934
  */
30698
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>;
30699
30955
  /**
30700
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.
30701
30957
  * @summary Delete form
@@ -30705,6 +30961,15 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30705
30961
  * @throws {RequiredError}
30706
30962
  */
30707
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>;
30708
30973
  /**
30709
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.
30710
30975
  * @summary Get form details
@@ -30720,10 +30985,41 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30720
30985
  * @param {string} profileUuid Profile uuid parameter
30721
30986
  * @param {number} [page] Page number
30722
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
30723
31009
  * @param {*} [options] Override http request option.
30724
31010
  * @throws {RequiredError}
30725
31011
  */
30726
- 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>;
30727
31023
  };
30728
31024
  /**
30729
31025
  * ReachFormsApi - object-oriented interface
@@ -30732,6 +31028,27 @@ export declare const ReachFormsApiFactory: (configuration?: Configuration, baseP
30732
31028
  * @extends {BaseAPI}
30733
31029
  */
30734
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>>;
30735
31052
  /**
30736
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.
30737
31054
  * @summary Delete form
@@ -30742,6 +31059,16 @@ export declare class ReachFormsApi extends BaseAPI {
30742
31059
  * @memberof ReachFormsApi
30743
31060
  */
30744
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>>;
30745
31072
  /**
30746
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.
30747
31074
  * @summary Get form details
@@ -30758,12 +31085,55 @@ export declare class ReachFormsApi extends BaseAPI {
30758
31085
  * @param {string} profileUuid Profile uuid parameter
30759
31086
  * @param {number} [page] Page number
30760
31087
  * @param {number} [perPage] Number of items per page
31088
+ * @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
30761
31089
  * @param {*} [options] Override http request option.
30762
31090
  * @throws {RequiredError}
30763
31091
  * @memberof ReachFormsApi
30764
31092
  */
30765
- listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListFormsV1200Response, any, {}, any>>;
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
31100
+ * @param {*} [options] Override http request option.
31101
+ * @throws {RequiredError}
31102
+ * @memberof ReachFormsApi
31103
+ */
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>>;
30766
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];
30767
31137
  /**
30768
31138
  * ReachProfilesApi - axios parameter creator
30769
31139
  * @export