@aifeatures/backend 0.1.6 → 0.1.7
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/index.d.cts +5 -18
- package/dist/index.d.ts +5 -18
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -311,14 +311,6 @@ declare const createClient: (config?: Config) => Client;
|
|
|
311
311
|
type ClientOptions = {
|
|
312
312
|
baseUrl: "https://aifeatures.dev" | "http://localhost:8788" | (string & {});
|
|
313
313
|
};
|
|
314
|
-
/**
|
|
315
|
-
* CAPTCHA configuration. CAPTCHA is always enabled when available (managed at site level).
|
|
316
|
-
*/
|
|
317
|
-
type Captcha = {
|
|
318
|
-
enabled: boolean;
|
|
319
|
-
provider?: "turnstile";
|
|
320
|
-
site_key?: string;
|
|
321
|
-
};
|
|
322
314
|
type Form = {
|
|
323
315
|
id: string;
|
|
324
316
|
name: string;
|
|
@@ -326,7 +318,10 @@ type Form = {
|
|
|
326
318
|
email_recipients: Array<string>;
|
|
327
319
|
redirect_url: string;
|
|
328
320
|
webhook_url: string;
|
|
329
|
-
|
|
321
|
+
/**
|
|
322
|
+
* Turnstile site key for CAPTCHA. Null if not configured for the org.
|
|
323
|
+
*/
|
|
324
|
+
turnstile_sitekey: string;
|
|
330
325
|
created_at: string;
|
|
331
326
|
updated_at: string;
|
|
332
327
|
};
|
|
@@ -356,10 +351,6 @@ type Site = {
|
|
|
356
351
|
* Default email recipients for forms that do not specify their own
|
|
357
352
|
*/
|
|
358
353
|
default_email_recipients: Array<string>;
|
|
359
|
-
/**
|
|
360
|
-
* Whether CAPTCHA verification is enabled for forms in this site
|
|
361
|
-
*/
|
|
362
|
-
captcha_enabled: boolean;
|
|
363
354
|
created_at: string;
|
|
364
355
|
updated_at: string;
|
|
365
356
|
};
|
|
@@ -390,10 +381,6 @@ type CreateSite = {
|
|
|
390
381
|
type UpdateSite = {
|
|
391
382
|
name?: string;
|
|
392
383
|
default_email_recipients?: Array<string>;
|
|
393
|
-
/**
|
|
394
|
-
* Enable or disable CAPTCHA verification for forms in this site
|
|
395
|
-
*/
|
|
396
|
-
captcha_enabled?: boolean;
|
|
397
384
|
};
|
|
398
385
|
type SiteDomains = {
|
|
399
386
|
/**
|
|
@@ -1003,4 +990,4 @@ declare const getSubmission: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1003
990
|
*/
|
|
1004
991
|
declare const downloadAttachment: <ThrowOnError extends boolean = false>(options: Options<DownloadAttachmentData, ThrowOnError>) => RequestResult<DownloadAttachmentResponses, DownloadAttachmentErrors, ThrowOnError, "fields">;
|
|
1005
992
|
|
|
1006
|
-
export { type Attachment, type
|
|
993
|
+
export { type Attachment, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type Error, type Form, type FormsList, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type Options, type Site, type SiteDomains, type SiteWithToken, type SitesList, type Submission, type SubmissionMetadata, type SubmissionsList, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateSite, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteResponse, type UpdateSiteResponses, createClient, createConfig, createForm, createFormWithSiteToken, createSite, deleteForm, deleteSite, deleteSubmission, downloadAttachment, getForm, getSite, getSubmission, listForms, listFormsWithSiteToken, listSites, listSubmissions, updateForm, updateSite, updateSiteDomains };
|
package/dist/index.d.ts
CHANGED
|
@@ -311,14 +311,6 @@ declare const createClient: (config?: Config) => Client;
|
|
|
311
311
|
type ClientOptions = {
|
|
312
312
|
baseUrl: "https://aifeatures.dev" | "http://localhost:8788" | (string & {});
|
|
313
313
|
};
|
|
314
|
-
/**
|
|
315
|
-
* CAPTCHA configuration. CAPTCHA is always enabled when available (managed at site level).
|
|
316
|
-
*/
|
|
317
|
-
type Captcha = {
|
|
318
|
-
enabled: boolean;
|
|
319
|
-
provider?: "turnstile";
|
|
320
|
-
site_key?: string;
|
|
321
|
-
};
|
|
322
314
|
type Form = {
|
|
323
315
|
id: string;
|
|
324
316
|
name: string;
|
|
@@ -326,7 +318,10 @@ type Form = {
|
|
|
326
318
|
email_recipients: Array<string>;
|
|
327
319
|
redirect_url: string;
|
|
328
320
|
webhook_url: string;
|
|
329
|
-
|
|
321
|
+
/**
|
|
322
|
+
* Turnstile site key for CAPTCHA. Null if not configured for the org.
|
|
323
|
+
*/
|
|
324
|
+
turnstile_sitekey: string;
|
|
330
325
|
created_at: string;
|
|
331
326
|
updated_at: string;
|
|
332
327
|
};
|
|
@@ -356,10 +351,6 @@ type Site = {
|
|
|
356
351
|
* Default email recipients for forms that do not specify their own
|
|
357
352
|
*/
|
|
358
353
|
default_email_recipients: Array<string>;
|
|
359
|
-
/**
|
|
360
|
-
* Whether CAPTCHA verification is enabled for forms in this site
|
|
361
|
-
*/
|
|
362
|
-
captcha_enabled: boolean;
|
|
363
354
|
created_at: string;
|
|
364
355
|
updated_at: string;
|
|
365
356
|
};
|
|
@@ -390,10 +381,6 @@ type CreateSite = {
|
|
|
390
381
|
type UpdateSite = {
|
|
391
382
|
name?: string;
|
|
392
383
|
default_email_recipients?: Array<string>;
|
|
393
|
-
/**
|
|
394
|
-
* Enable or disable CAPTCHA verification for forms in this site
|
|
395
|
-
*/
|
|
396
|
-
captcha_enabled?: boolean;
|
|
397
384
|
};
|
|
398
385
|
type SiteDomains = {
|
|
399
386
|
/**
|
|
@@ -1003,4 +990,4 @@ declare const getSubmission: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1003
990
|
*/
|
|
1004
991
|
declare const downloadAttachment: <ThrowOnError extends boolean = false>(options: Options<DownloadAttachmentData, ThrowOnError>) => RequestResult<DownloadAttachmentResponses, DownloadAttachmentErrors, ThrowOnError, "fields">;
|
|
1005
992
|
|
|
1006
|
-
export { type Attachment, type
|
|
993
|
+
export { type Attachment, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type Error, type Form, type FormsList, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type Options, type Site, type SiteDomains, type SiteWithToken, type SitesList, type Submission, type SubmissionMetadata, type SubmissionsList, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateSite, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteResponse, type UpdateSiteResponses, createClient, createConfig, createForm, createFormWithSiteToken, createSite, deleteForm, deleteSite, deleteSubmission, downloadAttachment, getForm, getSite, getSubmission, listForms, listFormsWithSiteToken, listSites, listSubmissions, updateForm, updateSite, updateSiteDomains };
|