@authhero/adapter-interfaces 0.104.0 → 0.106.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/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +1048 -152
- package/dist/adapter-interfaces.mjs +363 -348
- package/package.json +1 -1
|
@@ -640,6 +640,7 @@ export declare const clientInsertSchema: z.ZodObject<{
|
|
|
640
640
|
web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
641
641
|
client_aliases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
642
642
|
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
643
|
+
connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
643
644
|
allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
644
645
|
session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
645
646
|
oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -712,6 +713,7 @@ export declare const clientInsertSchema: z.ZodObject<{
|
|
|
712
713
|
web_origins?: string[] | undefined;
|
|
713
714
|
client_aliases?: string[] | undefined;
|
|
714
715
|
allowed_clients?: string[] | undefined;
|
|
716
|
+
connections?: string[] | undefined;
|
|
715
717
|
allowed_logout_urls?: string[] | undefined;
|
|
716
718
|
session_transfer?: Record<string, any> | undefined;
|
|
717
719
|
oidc_logout?: Record<string, any> | undefined;
|
|
@@ -753,6 +755,7 @@ export declare const clientInsertSchema: z.ZodObject<{
|
|
|
753
755
|
web_origins?: string[] | undefined;
|
|
754
756
|
client_aliases?: string[] | undefined;
|
|
755
757
|
allowed_clients?: string[] | undefined;
|
|
758
|
+
connections?: string[] | undefined;
|
|
756
759
|
allowed_logout_urls?: string[] | undefined;
|
|
757
760
|
session_transfer?: Record<string, any> | undefined;
|
|
758
761
|
oidc_logout?: Record<string, any> | undefined;
|
|
@@ -827,6 +830,7 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
827
830
|
web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
828
831
|
client_aliases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
829
832
|
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
833
|
+
connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
830
834
|
allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
831
835
|
session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
832
836
|
oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -903,6 +907,7 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
903
907
|
web_origins?: string[] | undefined;
|
|
904
908
|
client_aliases?: string[] | undefined;
|
|
905
909
|
allowed_clients?: string[] | undefined;
|
|
910
|
+
connections?: string[] | undefined;
|
|
906
911
|
allowed_logout_urls?: string[] | undefined;
|
|
907
912
|
session_transfer?: Record<string, any> | undefined;
|
|
908
913
|
oidc_logout?: Record<string, any> | undefined;
|
|
@@ -946,6 +951,7 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
946
951
|
web_origins?: string[] | undefined;
|
|
947
952
|
client_aliases?: string[] | undefined;
|
|
948
953
|
allowed_clients?: string[] | undefined;
|
|
954
|
+
connections?: string[] | undefined;
|
|
949
955
|
allowed_logout_urls?: string[] | undefined;
|
|
950
956
|
session_transfer?: Record<string, any> | undefined;
|
|
951
957
|
oidc_logout?: Record<string, any> | undefined;
|
|
@@ -8950,6 +8956,41 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8950
8956
|
global: boolean;
|
|
8951
8957
|
is_first_party: boolean;
|
|
8952
8958
|
oidc_conformant: boolean;
|
|
8959
|
+
connections: {
|
|
8960
|
+
options: {
|
|
8961
|
+
provider?: string | undefined;
|
|
8962
|
+
client_id?: string | undefined;
|
|
8963
|
+
client_secret?: string | undefined;
|
|
8964
|
+
scope?: string | undefined;
|
|
8965
|
+
kid?: string | undefined;
|
|
8966
|
+
team_id?: string | undefined;
|
|
8967
|
+
realms?: string | undefined;
|
|
8968
|
+
authentication_method?: string | undefined;
|
|
8969
|
+
app_secret?: string | undefined;
|
|
8970
|
+
authorization_endpoint?: string | undefined;
|
|
8971
|
+
token_endpoint?: string | undefined;
|
|
8972
|
+
userinfo_endpoint?: string | undefined;
|
|
8973
|
+
jwks_uri?: string | undefined;
|
|
8974
|
+
discovery_url?: string | undefined;
|
|
8975
|
+
issuer?: string | undefined;
|
|
8976
|
+
from?: string | undefined;
|
|
8977
|
+
twilio_sid?: string | undefined;
|
|
8978
|
+
twilio_token?: string | undefined;
|
|
8979
|
+
icon_url?: string | undefined;
|
|
8980
|
+
};
|
|
8981
|
+
created_at: string;
|
|
8982
|
+
updated_at: string;
|
|
8983
|
+
name: string;
|
|
8984
|
+
strategy: string;
|
|
8985
|
+
id?: string | undefined;
|
|
8986
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
8987
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
8988
|
+
display_name?: string | undefined;
|
|
8989
|
+
enabled_clients?: string[] | undefined;
|
|
8990
|
+
is_domain_connection?: boolean | undefined;
|
|
8991
|
+
show_as_button?: boolean | undefined;
|
|
8992
|
+
metadata?: Record<string, any> | undefined;
|
|
8993
|
+
}[];
|
|
8953
8994
|
sso: boolean;
|
|
8954
8995
|
sso_disabled: boolean;
|
|
8955
8996
|
cross_origin_authentication: boolean;
|
|
@@ -9057,41 +9098,6 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
9057
9098
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
9058
9099
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
9059
9100
|
};
|
|
9060
|
-
connections: {
|
|
9061
|
-
options: {
|
|
9062
|
-
provider?: string | undefined;
|
|
9063
|
-
client_id?: string | undefined;
|
|
9064
|
-
client_secret?: string | undefined;
|
|
9065
|
-
scope?: string | undefined;
|
|
9066
|
-
kid?: string | undefined;
|
|
9067
|
-
team_id?: string | undefined;
|
|
9068
|
-
realms?: string | undefined;
|
|
9069
|
-
authentication_method?: string | undefined;
|
|
9070
|
-
app_secret?: string | undefined;
|
|
9071
|
-
authorization_endpoint?: string | undefined;
|
|
9072
|
-
token_endpoint?: string | undefined;
|
|
9073
|
-
userinfo_endpoint?: string | undefined;
|
|
9074
|
-
jwks_uri?: string | undefined;
|
|
9075
|
-
discovery_url?: string | undefined;
|
|
9076
|
-
issuer?: string | undefined;
|
|
9077
|
-
from?: string | undefined;
|
|
9078
|
-
twilio_sid?: string | undefined;
|
|
9079
|
-
twilio_token?: string | undefined;
|
|
9080
|
-
icon_url?: string | undefined;
|
|
9081
|
-
};
|
|
9082
|
-
created_at: string;
|
|
9083
|
-
updated_at: string;
|
|
9084
|
-
name: string;
|
|
9085
|
-
strategy: string;
|
|
9086
|
-
id?: string | undefined;
|
|
9087
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
9088
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
9089
|
-
display_name?: string | undefined;
|
|
9090
|
-
enabled_clients?: string[] | undefined;
|
|
9091
|
-
is_domain_connection?: boolean | undefined;
|
|
9092
|
-
show_as_button?: boolean | undefined;
|
|
9093
|
-
metadata?: Record<string, any> | undefined;
|
|
9094
|
-
}[];
|
|
9095
9101
|
description?: string | undefined;
|
|
9096
9102
|
refresh_token?: Record<string, any> | undefined;
|
|
9097
9103
|
client_secret?: string | undefined;
|
|
@@ -9132,6 +9138,41 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
9132
9138
|
updated_at: string;
|
|
9133
9139
|
name: string;
|
|
9134
9140
|
client_id: string;
|
|
9141
|
+
connections: {
|
|
9142
|
+
created_at: string;
|
|
9143
|
+
updated_at: string;
|
|
9144
|
+
name: string;
|
|
9145
|
+
strategy: string;
|
|
9146
|
+
options?: {
|
|
9147
|
+
provider?: string | undefined;
|
|
9148
|
+
client_id?: string | undefined;
|
|
9149
|
+
client_secret?: string | undefined;
|
|
9150
|
+
scope?: string | undefined;
|
|
9151
|
+
kid?: string | undefined;
|
|
9152
|
+
team_id?: string | undefined;
|
|
9153
|
+
realms?: string | undefined;
|
|
9154
|
+
authentication_method?: string | undefined;
|
|
9155
|
+
app_secret?: string | undefined;
|
|
9156
|
+
authorization_endpoint?: string | undefined;
|
|
9157
|
+
token_endpoint?: string | undefined;
|
|
9158
|
+
userinfo_endpoint?: string | undefined;
|
|
9159
|
+
jwks_uri?: string | undefined;
|
|
9160
|
+
discovery_url?: string | undefined;
|
|
9161
|
+
issuer?: string | undefined;
|
|
9162
|
+
from?: string | undefined;
|
|
9163
|
+
twilio_sid?: string | undefined;
|
|
9164
|
+
twilio_token?: string | undefined;
|
|
9165
|
+
icon_url?: string | undefined;
|
|
9166
|
+
} | undefined;
|
|
9167
|
+
id?: string | undefined;
|
|
9168
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
9169
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
9170
|
+
display_name?: string | undefined;
|
|
9171
|
+
enabled_clients?: string[] | undefined;
|
|
9172
|
+
is_domain_connection?: boolean | undefined;
|
|
9173
|
+
show_as_button?: boolean | undefined;
|
|
9174
|
+
metadata?: Record<string, any> | undefined;
|
|
9175
|
+
}[];
|
|
9135
9176
|
tenant: {
|
|
9136
9177
|
created_at: string | null;
|
|
9137
9178
|
updated_at: string | null;
|
|
@@ -9233,41 +9274,6 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
9233
9274
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
9234
9275
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
9235
9276
|
};
|
|
9236
|
-
connections: {
|
|
9237
|
-
created_at: string;
|
|
9238
|
-
updated_at: string;
|
|
9239
|
-
name: string;
|
|
9240
|
-
strategy: string;
|
|
9241
|
-
options?: {
|
|
9242
|
-
provider?: string | undefined;
|
|
9243
|
-
client_id?: string | undefined;
|
|
9244
|
-
client_secret?: string | undefined;
|
|
9245
|
-
scope?: string | undefined;
|
|
9246
|
-
kid?: string | undefined;
|
|
9247
|
-
team_id?: string | undefined;
|
|
9248
|
-
realms?: string | undefined;
|
|
9249
|
-
authentication_method?: string | undefined;
|
|
9250
|
-
app_secret?: string | undefined;
|
|
9251
|
-
authorization_endpoint?: string | undefined;
|
|
9252
|
-
token_endpoint?: string | undefined;
|
|
9253
|
-
userinfo_endpoint?: string | undefined;
|
|
9254
|
-
jwks_uri?: string | undefined;
|
|
9255
|
-
discovery_url?: string | undefined;
|
|
9256
|
-
issuer?: string | undefined;
|
|
9257
|
-
from?: string | undefined;
|
|
9258
|
-
twilio_sid?: string | undefined;
|
|
9259
|
-
twilio_token?: string | undefined;
|
|
9260
|
-
icon_url?: string | undefined;
|
|
9261
|
-
} | undefined;
|
|
9262
|
-
id?: string | undefined;
|
|
9263
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
9264
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
9265
|
-
display_name?: string | undefined;
|
|
9266
|
-
enabled_clients?: string[] | undefined;
|
|
9267
|
-
is_domain_connection?: boolean | undefined;
|
|
9268
|
-
show_as_button?: boolean | undefined;
|
|
9269
|
-
metadata?: Record<string, any> | undefined;
|
|
9270
|
-
}[];
|
|
9271
9277
|
description?: string | undefined;
|
|
9272
9278
|
refresh_token?: Record<string, any> | undefined;
|
|
9273
9279
|
global?: boolean | undefined;
|
|
@@ -10057,7 +10063,11 @@ export type FormControl = z.infer<typeof formControlSchema>;
|
|
|
10057
10063
|
export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type", [
|
|
10058
10064
|
z.ZodObject<{
|
|
10059
10065
|
id: z.ZodString;
|
|
10066
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10067
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10068
|
+
} & {
|
|
10060
10069
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10070
|
+
} & {
|
|
10061
10071
|
type: z.ZodLiteral<"RICH_TEXT">;
|
|
10062
10072
|
config: z.ZodObject<{
|
|
10063
10073
|
content: z.ZodString;
|
|
@@ -10066,8 +10076,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10066
10076
|
}, {
|
|
10067
10077
|
content: string;
|
|
10068
10078
|
}>;
|
|
10069
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10070
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10071
10079
|
}, "strip", z.ZodTypeAny, {
|
|
10072
10080
|
type: "RICH_TEXT";
|
|
10073
10081
|
id: string;
|
|
@@ -10087,9 +10095,15 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10087
10095
|
order?: number | undefined;
|
|
10088
10096
|
visible?: boolean | undefined;
|
|
10089
10097
|
}>,
|
|
10090
|
-
z.ZodObject<{
|
|
10098
|
+
z.ZodObject<Omit<{
|
|
10091
10099
|
id: z.ZodString;
|
|
10100
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10101
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10102
|
+
} & {
|
|
10092
10103
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10104
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10105
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10106
|
+
}, "sensitive"> & {
|
|
10093
10107
|
type: z.ZodLiteral<"LEGAL">;
|
|
10094
10108
|
config: z.ZodObject<{
|
|
10095
10109
|
text: z.ZodString;
|
|
@@ -10101,9 +10115,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10101
10115
|
text: string;
|
|
10102
10116
|
html?: boolean | undefined;
|
|
10103
10117
|
}>;
|
|
10104
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10105
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10106
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10107
10118
|
}, "strip", z.ZodTypeAny, {
|
|
10108
10119
|
type: "LEGAL";
|
|
10109
10120
|
id: string;
|
|
@@ -10129,7 +10140,13 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10129
10140
|
}>,
|
|
10130
10141
|
z.ZodObject<{
|
|
10131
10142
|
id: z.ZodString;
|
|
10143
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10144
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10145
|
+
} & {
|
|
10132
10146
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10147
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10148
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10149
|
+
} & {
|
|
10133
10150
|
type: z.ZodLiteral<"TEXT">;
|
|
10134
10151
|
config: z.ZodObject<{
|
|
10135
10152
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -10141,10 +10158,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10141
10158
|
placeholder?: string | undefined;
|
|
10142
10159
|
multiline?: boolean | undefined;
|
|
10143
10160
|
}>;
|
|
10144
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10145
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10146
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10147
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10148
10161
|
}, "strip", z.ZodTypeAny, {
|
|
10149
10162
|
type: "TEXT";
|
|
10150
10163
|
id: string;
|
|
@@ -10172,7 +10185,11 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10172
10185
|
}>,
|
|
10173
10186
|
z.ZodObject<{
|
|
10174
10187
|
id: z.ZodString;
|
|
10188
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10189
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10190
|
+
} & {
|
|
10175
10191
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10192
|
+
} & {
|
|
10176
10193
|
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
10177
10194
|
config: z.ZodObject<{
|
|
10178
10195
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -10181,8 +10198,6 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10181
10198
|
}, {
|
|
10182
10199
|
text?: string | undefined;
|
|
10183
10200
|
}>;
|
|
10184
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10185
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10186
10201
|
}, "strip", z.ZodTypeAny, {
|
|
10187
10202
|
type: "NEXT_BUTTON";
|
|
10188
10203
|
id: string;
|
|
@@ -10201,34 +10216,169 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
10201
10216
|
category?: "BLOCK" | undefined;
|
|
10202
10217
|
order?: number | undefined;
|
|
10203
10218
|
visible?: boolean | undefined;
|
|
10204
|
-
}
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10219
|
+
}>,
|
|
10220
|
+
z.ZodObject<{
|
|
10221
|
+
id: z.ZodString;
|
|
10222
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10223
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10224
|
+
} & {
|
|
10225
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10226
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10227
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10228
|
+
} & {
|
|
10229
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
10230
|
+
config: z.ZodObject<{
|
|
10231
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10232
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10233
|
+
}, "strip", z.ZodTypeAny, {
|
|
10234
|
+
label?: string | undefined;
|
|
10235
|
+
placeholder?: string | undefined;
|
|
10236
|
+
}, {
|
|
10237
|
+
label?: string | undefined;
|
|
10238
|
+
placeholder?: string | undefined;
|
|
10239
|
+
}>;
|
|
10215
10240
|
}, "strip", z.ZodTypeAny, {
|
|
10216
|
-
|
|
10217
|
-
|
|
10241
|
+
type: "EMAIL";
|
|
10242
|
+
id: string;
|
|
10243
|
+
config: {
|
|
10244
|
+
label?: string | undefined;
|
|
10245
|
+
placeholder?: string | undefined;
|
|
10246
|
+
};
|
|
10247
|
+
visible: boolean;
|
|
10248
|
+
required?: boolean | undefined;
|
|
10249
|
+
category?: "FIELD" | undefined;
|
|
10250
|
+
sensitive?: boolean | undefined;
|
|
10251
|
+
order?: number | undefined;
|
|
10218
10252
|
}, {
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10253
|
+
type: "EMAIL";
|
|
10254
|
+
id: string;
|
|
10255
|
+
config: {
|
|
10256
|
+
label?: string | undefined;
|
|
10257
|
+
placeholder?: string | undefined;
|
|
10258
|
+
};
|
|
10259
|
+
required?: boolean | undefined;
|
|
10260
|
+
category?: "FIELD" | undefined;
|
|
10261
|
+
sensitive?: boolean | undefined;
|
|
10262
|
+
order?: number | undefined;
|
|
10263
|
+
visible?: boolean | undefined;
|
|
10264
|
+
}>,
|
|
10265
|
+
z.ZodObject<{
|
|
10266
|
+
id: z.ZodString;
|
|
10267
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10268
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10269
|
+
} & {
|
|
10270
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10271
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10272
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10273
|
+
} & {
|
|
10274
|
+
type: z.ZodLiteral<"NUMBER">;
|
|
10275
|
+
config: z.ZodObject<{
|
|
10276
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10277
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10278
|
+
}, "strip", z.ZodTypeAny, {
|
|
10279
|
+
label?: string | undefined;
|
|
10280
|
+
placeholder?: string | undefined;
|
|
10281
|
+
}, {
|
|
10282
|
+
label?: string | undefined;
|
|
10283
|
+
placeholder?: string | undefined;
|
|
10284
|
+
}>;
|
|
10225
10285
|
}, "strip", z.ZodTypeAny, {
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10286
|
+
type: "NUMBER";
|
|
10287
|
+
id: string;
|
|
10288
|
+
config: {
|
|
10289
|
+
label?: string | undefined;
|
|
10290
|
+
placeholder?: string | undefined;
|
|
10291
|
+
};
|
|
10292
|
+
visible: boolean;
|
|
10293
|
+
required?: boolean | undefined;
|
|
10294
|
+
category?: "FIELD" | undefined;
|
|
10295
|
+
sensitive?: boolean | undefined;
|
|
10296
|
+
order?: number | undefined;
|
|
10297
|
+
}, {
|
|
10298
|
+
type: "NUMBER";
|
|
10299
|
+
id: string;
|
|
10300
|
+
config: {
|
|
10301
|
+
label?: string | undefined;
|
|
10302
|
+
placeholder?: string | undefined;
|
|
10303
|
+
};
|
|
10304
|
+
required?: boolean | undefined;
|
|
10305
|
+
category?: "FIELD" | undefined;
|
|
10306
|
+
sensitive?: boolean | undefined;
|
|
10307
|
+
order?: number | undefined;
|
|
10308
|
+
visible?: boolean | undefined;
|
|
10309
|
+
}>,
|
|
10310
|
+
z.ZodObject<{
|
|
10311
|
+
id: z.ZodString;
|
|
10312
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10313
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10314
|
+
} & {
|
|
10315
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10316
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10317
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10318
|
+
} & {
|
|
10319
|
+
type: z.ZodLiteral<"PHONE">;
|
|
10320
|
+
config: z.ZodObject<{
|
|
10321
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10322
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10323
|
+
}, "strip", z.ZodTypeAny, {
|
|
10324
|
+
label?: string | undefined;
|
|
10325
|
+
placeholder?: string | undefined;
|
|
10326
|
+
}, {
|
|
10327
|
+
label?: string | undefined;
|
|
10328
|
+
placeholder?: string | undefined;
|
|
10329
|
+
}>;
|
|
10330
|
+
}, "strip", z.ZodTypeAny, {
|
|
10331
|
+
type: "PHONE";
|
|
10332
|
+
id: string;
|
|
10333
|
+
config: {
|
|
10334
|
+
label?: string | undefined;
|
|
10335
|
+
placeholder?: string | undefined;
|
|
10336
|
+
};
|
|
10337
|
+
visible: boolean;
|
|
10338
|
+
required?: boolean | undefined;
|
|
10339
|
+
category?: "FIELD" | undefined;
|
|
10340
|
+
sensitive?: boolean | undefined;
|
|
10341
|
+
order?: number | undefined;
|
|
10342
|
+
}, {
|
|
10343
|
+
type: "PHONE";
|
|
10344
|
+
id: string;
|
|
10345
|
+
config: {
|
|
10346
|
+
label?: string | undefined;
|
|
10347
|
+
placeholder?: string | undefined;
|
|
10348
|
+
};
|
|
10349
|
+
required?: boolean | undefined;
|
|
10350
|
+
category?: "FIELD" | undefined;
|
|
10351
|
+
sensitive?: boolean | undefined;
|
|
10352
|
+
order?: number | undefined;
|
|
10353
|
+
visible?: boolean | undefined;
|
|
10354
|
+
}>
|
|
10355
|
+
]>;
|
|
10356
|
+
export type FormNodeComponent = z.infer<typeof formNodeComponentDefinition>;
|
|
10357
|
+
/**
|
|
10358
|
+
* Schema for forms (flow-based, matches new JSON structure)
|
|
10359
|
+
*/
|
|
10360
|
+
export declare const formInsertSchema: z.ZodObject<{
|
|
10361
|
+
name: z.ZodString;
|
|
10362
|
+
messages: z.ZodOptional<z.ZodObject<{
|
|
10363
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10364
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10365
|
+
}, "strip", z.ZodTypeAny, {
|
|
10366
|
+
custom?: Record<string, any> | undefined;
|
|
10367
|
+
errors?: Record<string, any> | undefined;
|
|
10368
|
+
}, {
|
|
10369
|
+
custom?: Record<string, any> | undefined;
|
|
10370
|
+
errors?: Record<string, any> | undefined;
|
|
10371
|
+
}>>;
|
|
10372
|
+
languages: z.ZodOptional<z.ZodObject<{
|
|
10373
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
10374
|
+
default: z.ZodOptional<z.ZodString>;
|
|
10375
|
+
}, "strip", z.ZodTypeAny, {
|
|
10376
|
+
default?: string | undefined;
|
|
10377
|
+
primary?: string | undefined;
|
|
10378
|
+
}, {
|
|
10379
|
+
default?: string | undefined;
|
|
10380
|
+
primary?: string | undefined;
|
|
10381
|
+
}>>;
|
|
10232
10382
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10233
10383
|
nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
10234
10384
|
z.ZodObject<{
|
|
@@ -10382,7 +10532,11 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10382
10532
|
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
10383
10533
|
z.ZodObject<{
|
|
10384
10534
|
id: z.ZodString;
|
|
10535
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10536
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10537
|
+
} & {
|
|
10385
10538
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10539
|
+
} & {
|
|
10386
10540
|
type: z.ZodLiteral<"RICH_TEXT">;
|
|
10387
10541
|
config: z.ZodObject<{
|
|
10388
10542
|
content: z.ZodString;
|
|
@@ -10391,8 +10545,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10391
10545
|
}, {
|
|
10392
10546
|
content: string;
|
|
10393
10547
|
}>;
|
|
10394
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10395
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10396
10548
|
}, "strip", z.ZodTypeAny, {
|
|
10397
10549
|
type: "RICH_TEXT";
|
|
10398
10550
|
id: string;
|
|
@@ -10412,9 +10564,15 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10412
10564
|
order?: number | undefined;
|
|
10413
10565
|
visible?: boolean | undefined;
|
|
10414
10566
|
}>,
|
|
10415
|
-
z.ZodObject<{
|
|
10567
|
+
z.ZodObject<Omit<{
|
|
10416
10568
|
id: z.ZodString;
|
|
10569
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10570
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10571
|
+
} & {
|
|
10417
10572
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10573
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10574
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10575
|
+
}, "sensitive"> & {
|
|
10418
10576
|
type: z.ZodLiteral<"LEGAL">;
|
|
10419
10577
|
config: z.ZodObject<{
|
|
10420
10578
|
text: z.ZodString;
|
|
@@ -10426,9 +10584,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10426
10584
|
text: string;
|
|
10427
10585
|
html?: boolean | undefined;
|
|
10428
10586
|
}>;
|
|
10429
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10430
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10431
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10432
10587
|
}, "strip", z.ZodTypeAny, {
|
|
10433
10588
|
type: "LEGAL";
|
|
10434
10589
|
id: string;
|
|
@@ -10454,7 +10609,13 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10454
10609
|
}>,
|
|
10455
10610
|
z.ZodObject<{
|
|
10456
10611
|
id: z.ZodString;
|
|
10612
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10613
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10614
|
+
} & {
|
|
10457
10615
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10616
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10617
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10618
|
+
} & {
|
|
10458
10619
|
type: z.ZodLiteral<"TEXT">;
|
|
10459
10620
|
config: z.ZodObject<{
|
|
10460
10621
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -10466,10 +10627,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10466
10627
|
placeholder?: string | undefined;
|
|
10467
10628
|
multiline?: boolean | undefined;
|
|
10468
10629
|
}>;
|
|
10469
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
10470
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10471
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10472
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10473
10630
|
}, "strip", z.ZodTypeAny, {
|
|
10474
10631
|
type: "TEXT";
|
|
10475
10632
|
id: string;
|
|
@@ -10497,7 +10654,11 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10497
10654
|
}>,
|
|
10498
10655
|
z.ZodObject<{
|
|
10499
10656
|
id: z.ZodString;
|
|
10657
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10658
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10659
|
+
} & {
|
|
10500
10660
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
10661
|
+
} & {
|
|
10501
10662
|
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
10502
10663
|
config: z.ZodObject<{
|
|
10503
10664
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -10506,8 +10667,6 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10506
10667
|
}, {
|
|
10507
10668
|
text?: string | undefined;
|
|
10508
10669
|
}>;
|
|
10509
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
10510
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10511
10670
|
}, "strip", z.ZodTypeAny, {
|
|
10512
10671
|
type: "NEXT_BUTTON";
|
|
10513
10672
|
id: string;
|
|
@@ -10526,6 +10685,141 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10526
10685
|
category?: "BLOCK" | undefined;
|
|
10527
10686
|
order?: number | undefined;
|
|
10528
10687
|
visible?: boolean | undefined;
|
|
10688
|
+
}>,
|
|
10689
|
+
z.ZodObject<{
|
|
10690
|
+
id: z.ZodString;
|
|
10691
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10692
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10693
|
+
} & {
|
|
10694
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10695
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10696
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10697
|
+
} & {
|
|
10698
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
10699
|
+
config: z.ZodObject<{
|
|
10700
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10701
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10702
|
+
}, "strip", z.ZodTypeAny, {
|
|
10703
|
+
label?: string | undefined;
|
|
10704
|
+
placeholder?: string | undefined;
|
|
10705
|
+
}, {
|
|
10706
|
+
label?: string | undefined;
|
|
10707
|
+
placeholder?: string | undefined;
|
|
10708
|
+
}>;
|
|
10709
|
+
}, "strip", z.ZodTypeAny, {
|
|
10710
|
+
type: "EMAIL";
|
|
10711
|
+
id: string;
|
|
10712
|
+
config: {
|
|
10713
|
+
label?: string | undefined;
|
|
10714
|
+
placeholder?: string | undefined;
|
|
10715
|
+
};
|
|
10716
|
+
visible: boolean;
|
|
10717
|
+
required?: boolean | undefined;
|
|
10718
|
+
category?: "FIELD" | undefined;
|
|
10719
|
+
sensitive?: boolean | undefined;
|
|
10720
|
+
order?: number | undefined;
|
|
10721
|
+
}, {
|
|
10722
|
+
type: "EMAIL";
|
|
10723
|
+
id: string;
|
|
10724
|
+
config: {
|
|
10725
|
+
label?: string | undefined;
|
|
10726
|
+
placeholder?: string | undefined;
|
|
10727
|
+
};
|
|
10728
|
+
required?: boolean | undefined;
|
|
10729
|
+
category?: "FIELD" | undefined;
|
|
10730
|
+
sensitive?: boolean | undefined;
|
|
10731
|
+
order?: number | undefined;
|
|
10732
|
+
visible?: boolean | undefined;
|
|
10733
|
+
}>,
|
|
10734
|
+
z.ZodObject<{
|
|
10735
|
+
id: z.ZodString;
|
|
10736
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10737
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10738
|
+
} & {
|
|
10739
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10740
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10741
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10742
|
+
} & {
|
|
10743
|
+
type: z.ZodLiteral<"NUMBER">;
|
|
10744
|
+
config: z.ZodObject<{
|
|
10745
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10746
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10747
|
+
}, "strip", z.ZodTypeAny, {
|
|
10748
|
+
label?: string | undefined;
|
|
10749
|
+
placeholder?: string | undefined;
|
|
10750
|
+
}, {
|
|
10751
|
+
label?: string | undefined;
|
|
10752
|
+
placeholder?: string | undefined;
|
|
10753
|
+
}>;
|
|
10754
|
+
}, "strip", z.ZodTypeAny, {
|
|
10755
|
+
type: "NUMBER";
|
|
10756
|
+
id: string;
|
|
10757
|
+
config: {
|
|
10758
|
+
label?: string | undefined;
|
|
10759
|
+
placeholder?: string | undefined;
|
|
10760
|
+
};
|
|
10761
|
+
visible: boolean;
|
|
10762
|
+
required?: boolean | undefined;
|
|
10763
|
+
category?: "FIELD" | undefined;
|
|
10764
|
+
sensitive?: boolean | undefined;
|
|
10765
|
+
order?: number | undefined;
|
|
10766
|
+
}, {
|
|
10767
|
+
type: "NUMBER";
|
|
10768
|
+
id: string;
|
|
10769
|
+
config: {
|
|
10770
|
+
label?: string | undefined;
|
|
10771
|
+
placeholder?: string | undefined;
|
|
10772
|
+
};
|
|
10773
|
+
required?: boolean | undefined;
|
|
10774
|
+
category?: "FIELD" | undefined;
|
|
10775
|
+
sensitive?: boolean | undefined;
|
|
10776
|
+
order?: number | undefined;
|
|
10777
|
+
visible?: boolean | undefined;
|
|
10778
|
+
}>,
|
|
10779
|
+
z.ZodObject<{
|
|
10780
|
+
id: z.ZodString;
|
|
10781
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10782
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10783
|
+
} & {
|
|
10784
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
10785
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10786
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10787
|
+
} & {
|
|
10788
|
+
type: z.ZodLiteral<"PHONE">;
|
|
10789
|
+
config: z.ZodObject<{
|
|
10790
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10791
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10792
|
+
}, "strip", z.ZodTypeAny, {
|
|
10793
|
+
label?: string | undefined;
|
|
10794
|
+
placeholder?: string | undefined;
|
|
10795
|
+
}, {
|
|
10796
|
+
label?: string | undefined;
|
|
10797
|
+
placeholder?: string | undefined;
|
|
10798
|
+
}>;
|
|
10799
|
+
}, "strip", z.ZodTypeAny, {
|
|
10800
|
+
type: "PHONE";
|
|
10801
|
+
id: string;
|
|
10802
|
+
config: {
|
|
10803
|
+
label?: string | undefined;
|
|
10804
|
+
placeholder?: string | undefined;
|
|
10805
|
+
};
|
|
10806
|
+
visible: boolean;
|
|
10807
|
+
required?: boolean | undefined;
|
|
10808
|
+
category?: "FIELD" | undefined;
|
|
10809
|
+
sensitive?: boolean | undefined;
|
|
10810
|
+
order?: number | undefined;
|
|
10811
|
+
}, {
|
|
10812
|
+
type: "PHONE";
|
|
10813
|
+
id: string;
|
|
10814
|
+
config: {
|
|
10815
|
+
label?: string | undefined;
|
|
10816
|
+
placeholder?: string | undefined;
|
|
10817
|
+
};
|
|
10818
|
+
required?: boolean | undefined;
|
|
10819
|
+
category?: "FIELD" | undefined;
|
|
10820
|
+
sensitive?: boolean | undefined;
|
|
10821
|
+
order?: number | undefined;
|
|
10822
|
+
visible?: boolean | undefined;
|
|
10529
10823
|
}>
|
|
10530
10824
|
]>, "many">;
|
|
10531
10825
|
next_node: z.ZodOptional<z.ZodString>;
|
|
@@ -10571,6 +10865,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10571
10865
|
visible: boolean;
|
|
10572
10866
|
category?: "BLOCK" | undefined;
|
|
10573
10867
|
order?: number | undefined;
|
|
10868
|
+
} | {
|
|
10869
|
+
type: "EMAIL";
|
|
10870
|
+
id: string;
|
|
10871
|
+
config: {
|
|
10872
|
+
label?: string | undefined;
|
|
10873
|
+
placeholder?: string | undefined;
|
|
10874
|
+
};
|
|
10875
|
+
visible: boolean;
|
|
10876
|
+
required?: boolean | undefined;
|
|
10877
|
+
category?: "FIELD" | undefined;
|
|
10878
|
+
sensitive?: boolean | undefined;
|
|
10879
|
+
order?: number | undefined;
|
|
10880
|
+
} | {
|
|
10881
|
+
type: "NUMBER";
|
|
10882
|
+
id: string;
|
|
10883
|
+
config: {
|
|
10884
|
+
label?: string | undefined;
|
|
10885
|
+
placeholder?: string | undefined;
|
|
10886
|
+
};
|
|
10887
|
+
visible: boolean;
|
|
10888
|
+
required?: boolean | undefined;
|
|
10889
|
+
category?: "FIELD" | undefined;
|
|
10890
|
+
sensitive?: boolean | undefined;
|
|
10891
|
+
order?: number | undefined;
|
|
10892
|
+
} | {
|
|
10893
|
+
type: "PHONE";
|
|
10894
|
+
id: string;
|
|
10895
|
+
config: {
|
|
10896
|
+
label?: string | undefined;
|
|
10897
|
+
placeholder?: string | undefined;
|
|
10898
|
+
};
|
|
10899
|
+
visible: boolean;
|
|
10900
|
+
required?: boolean | undefined;
|
|
10901
|
+
category?: "FIELD" | undefined;
|
|
10902
|
+
sensitive?: boolean | undefined;
|
|
10903
|
+
order?: number | undefined;
|
|
10574
10904
|
})[];
|
|
10575
10905
|
next_node?: string | undefined;
|
|
10576
10906
|
}, {
|
|
@@ -10615,6 +10945,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10615
10945
|
category?: "BLOCK" | undefined;
|
|
10616
10946
|
order?: number | undefined;
|
|
10617
10947
|
visible?: boolean | undefined;
|
|
10948
|
+
} | {
|
|
10949
|
+
type: "EMAIL";
|
|
10950
|
+
id: string;
|
|
10951
|
+
config: {
|
|
10952
|
+
label?: string | undefined;
|
|
10953
|
+
placeholder?: string | undefined;
|
|
10954
|
+
};
|
|
10955
|
+
required?: boolean | undefined;
|
|
10956
|
+
category?: "FIELD" | undefined;
|
|
10957
|
+
sensitive?: boolean | undefined;
|
|
10958
|
+
order?: number | undefined;
|
|
10959
|
+
visible?: boolean | undefined;
|
|
10960
|
+
} | {
|
|
10961
|
+
type: "NUMBER";
|
|
10962
|
+
id: string;
|
|
10963
|
+
config: {
|
|
10964
|
+
label?: string | undefined;
|
|
10965
|
+
placeholder?: string | undefined;
|
|
10966
|
+
};
|
|
10967
|
+
required?: boolean | undefined;
|
|
10968
|
+
category?: "FIELD" | undefined;
|
|
10969
|
+
sensitive?: boolean | undefined;
|
|
10970
|
+
order?: number | undefined;
|
|
10971
|
+
visible?: boolean | undefined;
|
|
10972
|
+
} | {
|
|
10973
|
+
type: "PHONE";
|
|
10974
|
+
id: string;
|
|
10975
|
+
config: {
|
|
10976
|
+
label?: string | undefined;
|
|
10977
|
+
placeholder?: string | undefined;
|
|
10978
|
+
};
|
|
10979
|
+
required?: boolean | undefined;
|
|
10980
|
+
category?: "FIELD" | undefined;
|
|
10981
|
+
sensitive?: boolean | undefined;
|
|
10982
|
+
order?: number | undefined;
|
|
10983
|
+
visible?: boolean | undefined;
|
|
10618
10984
|
})[];
|
|
10619
10985
|
next_node?: string | undefined;
|
|
10620
10986
|
}>;
|
|
@@ -10643,11 +11009,44 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10643
11009
|
category?: "FIELD" | undefined;
|
|
10644
11010
|
order?: number | undefined;
|
|
10645
11011
|
} | {
|
|
10646
|
-
type: "TEXT";
|
|
11012
|
+
type: "TEXT";
|
|
11013
|
+
id: string;
|
|
11014
|
+
config: {
|
|
11015
|
+
placeholder?: string | undefined;
|
|
11016
|
+
multiline?: boolean | undefined;
|
|
11017
|
+
};
|
|
11018
|
+
visible: boolean;
|
|
11019
|
+
required?: boolean | undefined;
|
|
11020
|
+
category?: "FIELD" | undefined;
|
|
11021
|
+
sensitive?: boolean | undefined;
|
|
11022
|
+
order?: number | undefined;
|
|
11023
|
+
} | {
|
|
11024
|
+
type: "NEXT_BUTTON";
|
|
11025
|
+
id: string;
|
|
11026
|
+
config: {
|
|
11027
|
+
text?: string | undefined;
|
|
11028
|
+
};
|
|
11029
|
+
visible: boolean;
|
|
11030
|
+
category?: "BLOCK" | undefined;
|
|
11031
|
+
order?: number | undefined;
|
|
11032
|
+
} | {
|
|
11033
|
+
type: "EMAIL";
|
|
11034
|
+
id: string;
|
|
11035
|
+
config: {
|
|
11036
|
+
label?: string | undefined;
|
|
11037
|
+
placeholder?: string | undefined;
|
|
11038
|
+
};
|
|
11039
|
+
visible: boolean;
|
|
11040
|
+
required?: boolean | undefined;
|
|
11041
|
+
category?: "FIELD" | undefined;
|
|
11042
|
+
sensitive?: boolean | undefined;
|
|
11043
|
+
order?: number | undefined;
|
|
11044
|
+
} | {
|
|
11045
|
+
type: "NUMBER";
|
|
10647
11046
|
id: string;
|
|
10648
11047
|
config: {
|
|
11048
|
+
label?: string | undefined;
|
|
10649
11049
|
placeholder?: string | undefined;
|
|
10650
|
-
multiline?: boolean | undefined;
|
|
10651
11050
|
};
|
|
10652
11051
|
visible: boolean;
|
|
10653
11052
|
required?: boolean | undefined;
|
|
@@ -10655,13 +11054,16 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10655
11054
|
sensitive?: boolean | undefined;
|
|
10656
11055
|
order?: number | undefined;
|
|
10657
11056
|
} | {
|
|
10658
|
-
type: "
|
|
11057
|
+
type: "PHONE";
|
|
10659
11058
|
id: string;
|
|
10660
11059
|
config: {
|
|
10661
|
-
|
|
11060
|
+
label?: string | undefined;
|
|
11061
|
+
placeholder?: string | undefined;
|
|
10662
11062
|
};
|
|
10663
11063
|
visible: boolean;
|
|
10664
|
-
|
|
11064
|
+
required?: boolean | undefined;
|
|
11065
|
+
category?: "FIELD" | undefined;
|
|
11066
|
+
sensitive?: boolean | undefined;
|
|
10665
11067
|
order?: number | undefined;
|
|
10666
11068
|
})[];
|
|
10667
11069
|
next_node?: string | undefined;
|
|
@@ -10716,6 +11118,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10716
11118
|
category?: "BLOCK" | undefined;
|
|
10717
11119
|
order?: number | undefined;
|
|
10718
11120
|
visible?: boolean | undefined;
|
|
11121
|
+
} | {
|
|
11122
|
+
type: "EMAIL";
|
|
11123
|
+
id: string;
|
|
11124
|
+
config: {
|
|
11125
|
+
label?: string | undefined;
|
|
11126
|
+
placeholder?: string | undefined;
|
|
11127
|
+
};
|
|
11128
|
+
required?: boolean | undefined;
|
|
11129
|
+
category?: "FIELD" | undefined;
|
|
11130
|
+
sensitive?: boolean | undefined;
|
|
11131
|
+
order?: number | undefined;
|
|
11132
|
+
visible?: boolean | undefined;
|
|
11133
|
+
} | {
|
|
11134
|
+
type: "NUMBER";
|
|
11135
|
+
id: string;
|
|
11136
|
+
config: {
|
|
11137
|
+
label?: string | undefined;
|
|
11138
|
+
placeholder?: string | undefined;
|
|
11139
|
+
};
|
|
11140
|
+
required?: boolean | undefined;
|
|
11141
|
+
category?: "FIELD" | undefined;
|
|
11142
|
+
sensitive?: boolean | undefined;
|
|
11143
|
+
order?: number | undefined;
|
|
11144
|
+
visible?: boolean | undefined;
|
|
11145
|
+
} | {
|
|
11146
|
+
type: "PHONE";
|
|
11147
|
+
id: string;
|
|
11148
|
+
config: {
|
|
11149
|
+
label?: string | undefined;
|
|
11150
|
+
placeholder?: string | undefined;
|
|
11151
|
+
};
|
|
11152
|
+
required?: boolean | undefined;
|
|
11153
|
+
category?: "FIELD" | undefined;
|
|
11154
|
+
sensitive?: boolean | undefined;
|
|
11155
|
+
order?: number | undefined;
|
|
11156
|
+
visible?: boolean | undefined;
|
|
10719
11157
|
})[];
|
|
10720
11158
|
next_node?: string | undefined;
|
|
10721
11159
|
};
|
|
@@ -10926,6 +11364,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10926
11364
|
visible: boolean;
|
|
10927
11365
|
category?: "BLOCK" | undefined;
|
|
10928
11366
|
order?: number | undefined;
|
|
11367
|
+
} | {
|
|
11368
|
+
type: "EMAIL";
|
|
11369
|
+
id: string;
|
|
11370
|
+
config: {
|
|
11371
|
+
label?: string | undefined;
|
|
11372
|
+
placeholder?: string | undefined;
|
|
11373
|
+
};
|
|
11374
|
+
visible: boolean;
|
|
11375
|
+
required?: boolean | undefined;
|
|
11376
|
+
category?: "FIELD" | undefined;
|
|
11377
|
+
sensitive?: boolean | undefined;
|
|
11378
|
+
order?: number | undefined;
|
|
11379
|
+
} | {
|
|
11380
|
+
type: "NUMBER";
|
|
11381
|
+
id: string;
|
|
11382
|
+
config: {
|
|
11383
|
+
label?: string | undefined;
|
|
11384
|
+
placeholder?: string | undefined;
|
|
11385
|
+
};
|
|
11386
|
+
visible: boolean;
|
|
11387
|
+
required?: boolean | undefined;
|
|
11388
|
+
category?: "FIELD" | undefined;
|
|
11389
|
+
sensitive?: boolean | undefined;
|
|
11390
|
+
order?: number | undefined;
|
|
11391
|
+
} | {
|
|
11392
|
+
type: "PHONE";
|
|
11393
|
+
id: string;
|
|
11394
|
+
config: {
|
|
11395
|
+
label?: string | undefined;
|
|
11396
|
+
placeholder?: string | undefined;
|
|
11397
|
+
};
|
|
11398
|
+
visible: boolean;
|
|
11399
|
+
required?: boolean | undefined;
|
|
11400
|
+
category?: "FIELD" | undefined;
|
|
11401
|
+
sensitive?: boolean | undefined;
|
|
11402
|
+
order?: number | undefined;
|
|
10929
11403
|
})[];
|
|
10930
11404
|
next_node?: string | undefined;
|
|
10931
11405
|
};
|
|
@@ -11048,6 +11522,42 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
11048
11522
|
category?: "BLOCK" | undefined;
|
|
11049
11523
|
order?: number | undefined;
|
|
11050
11524
|
visible?: boolean | undefined;
|
|
11525
|
+
} | {
|
|
11526
|
+
type: "EMAIL";
|
|
11527
|
+
id: string;
|
|
11528
|
+
config: {
|
|
11529
|
+
label?: string | undefined;
|
|
11530
|
+
placeholder?: string | undefined;
|
|
11531
|
+
};
|
|
11532
|
+
required?: boolean | undefined;
|
|
11533
|
+
category?: "FIELD" | undefined;
|
|
11534
|
+
sensitive?: boolean | undefined;
|
|
11535
|
+
order?: number | undefined;
|
|
11536
|
+
visible?: boolean | undefined;
|
|
11537
|
+
} | {
|
|
11538
|
+
type: "NUMBER";
|
|
11539
|
+
id: string;
|
|
11540
|
+
config: {
|
|
11541
|
+
label?: string | undefined;
|
|
11542
|
+
placeholder?: string | undefined;
|
|
11543
|
+
};
|
|
11544
|
+
required?: boolean | undefined;
|
|
11545
|
+
category?: "FIELD" | undefined;
|
|
11546
|
+
sensitive?: boolean | undefined;
|
|
11547
|
+
order?: number | undefined;
|
|
11548
|
+
visible?: boolean | undefined;
|
|
11549
|
+
} | {
|
|
11550
|
+
type: "PHONE";
|
|
11551
|
+
id: string;
|
|
11552
|
+
config: {
|
|
11553
|
+
label?: string | undefined;
|
|
11554
|
+
placeholder?: string | undefined;
|
|
11555
|
+
};
|
|
11556
|
+
required?: boolean | undefined;
|
|
11557
|
+
category?: "FIELD" | undefined;
|
|
11558
|
+
sensitive?: boolean | undefined;
|
|
11559
|
+
order?: number | undefined;
|
|
11560
|
+
visible?: boolean | undefined;
|
|
11051
11561
|
})[];
|
|
11052
11562
|
next_node?: string | undefined;
|
|
11053
11563
|
};
|
|
@@ -11257,7 +11767,11 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11257
11767
|
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
11258
11768
|
z.ZodObject<{
|
|
11259
11769
|
id: z.ZodString;
|
|
11770
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11771
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11772
|
+
} & {
|
|
11260
11773
|
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
11774
|
+
} & {
|
|
11261
11775
|
type: z.ZodLiteral<"RICH_TEXT">;
|
|
11262
11776
|
config: z.ZodObject<{
|
|
11263
11777
|
content: z.ZodString;
|
|
@@ -11266,8 +11780,6 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11266
11780
|
}, {
|
|
11267
11781
|
content: string;
|
|
11268
11782
|
}>;
|
|
11269
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11270
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11271
11783
|
}, "strip", z.ZodTypeAny, {
|
|
11272
11784
|
type: "RICH_TEXT";
|
|
11273
11785
|
id: string;
|
|
@@ -11287,9 +11799,15 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11287
11799
|
order?: number | undefined;
|
|
11288
11800
|
visible?: boolean | undefined;
|
|
11289
11801
|
}>,
|
|
11290
|
-
z.ZodObject<{
|
|
11802
|
+
z.ZodObject<Omit<{
|
|
11291
11803
|
id: z.ZodString;
|
|
11804
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11805
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11806
|
+
} & {
|
|
11292
11807
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11808
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11809
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11810
|
+
}, "sensitive"> & {
|
|
11293
11811
|
type: z.ZodLiteral<"LEGAL">;
|
|
11294
11812
|
config: z.ZodObject<{
|
|
11295
11813
|
text: z.ZodString;
|
|
@@ -11301,9 +11819,6 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11301
11819
|
text: string;
|
|
11302
11820
|
html?: boolean | undefined;
|
|
11303
11821
|
}>;
|
|
11304
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
11305
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11306
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11307
11822
|
}, "strip", z.ZodTypeAny, {
|
|
11308
11823
|
type: "LEGAL";
|
|
11309
11824
|
id: string;
|
|
@@ -11329,7 +11844,13 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11329
11844
|
}>,
|
|
11330
11845
|
z.ZodObject<{
|
|
11331
11846
|
id: z.ZodString;
|
|
11847
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11848
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11849
|
+
} & {
|
|
11332
11850
|
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11851
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11852
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11853
|
+
} & {
|
|
11333
11854
|
type: z.ZodLiteral<"TEXT">;
|
|
11334
11855
|
config: z.ZodObject<{
|
|
11335
11856
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -11339,18 +11860,138 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11339
11860
|
multiline?: boolean | undefined;
|
|
11340
11861
|
}, {
|
|
11341
11862
|
placeholder?: string | undefined;
|
|
11342
|
-
multiline?: boolean | undefined;
|
|
11863
|
+
multiline?: boolean | undefined;
|
|
11864
|
+
}>;
|
|
11865
|
+
}, "strip", z.ZodTypeAny, {
|
|
11866
|
+
type: "TEXT";
|
|
11867
|
+
id: string;
|
|
11868
|
+
config: {
|
|
11869
|
+
placeholder?: string | undefined;
|
|
11870
|
+
multiline?: boolean | undefined;
|
|
11871
|
+
};
|
|
11872
|
+
visible: boolean;
|
|
11873
|
+
required?: boolean | undefined;
|
|
11874
|
+
category?: "FIELD" | undefined;
|
|
11875
|
+
sensitive?: boolean | undefined;
|
|
11876
|
+
order?: number | undefined;
|
|
11877
|
+
}, {
|
|
11878
|
+
type: "TEXT";
|
|
11879
|
+
id: string;
|
|
11880
|
+
config: {
|
|
11881
|
+
placeholder?: string | undefined;
|
|
11882
|
+
multiline?: boolean | undefined;
|
|
11883
|
+
};
|
|
11884
|
+
required?: boolean | undefined;
|
|
11885
|
+
category?: "FIELD" | undefined;
|
|
11886
|
+
sensitive?: boolean | undefined;
|
|
11887
|
+
order?: number | undefined;
|
|
11888
|
+
visible?: boolean | undefined;
|
|
11889
|
+
}>,
|
|
11890
|
+
z.ZodObject<{
|
|
11891
|
+
id: z.ZodString;
|
|
11892
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11893
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11894
|
+
} & {
|
|
11895
|
+
category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
|
|
11896
|
+
} & {
|
|
11897
|
+
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
11898
|
+
config: z.ZodObject<{
|
|
11899
|
+
text: z.ZodOptional<z.ZodString>;
|
|
11900
|
+
}, "strip", z.ZodTypeAny, {
|
|
11901
|
+
text?: string | undefined;
|
|
11902
|
+
}, {
|
|
11903
|
+
text?: string | undefined;
|
|
11904
|
+
}>;
|
|
11905
|
+
}, "strip", z.ZodTypeAny, {
|
|
11906
|
+
type: "NEXT_BUTTON";
|
|
11907
|
+
id: string;
|
|
11908
|
+
config: {
|
|
11909
|
+
text?: string | undefined;
|
|
11910
|
+
};
|
|
11911
|
+
visible: boolean;
|
|
11912
|
+
category?: "BLOCK" | undefined;
|
|
11913
|
+
order?: number | undefined;
|
|
11914
|
+
}, {
|
|
11915
|
+
type: "NEXT_BUTTON";
|
|
11916
|
+
id: string;
|
|
11917
|
+
config: {
|
|
11918
|
+
text?: string | undefined;
|
|
11919
|
+
};
|
|
11920
|
+
category?: "BLOCK" | undefined;
|
|
11921
|
+
order?: number | undefined;
|
|
11922
|
+
visible?: boolean | undefined;
|
|
11923
|
+
}>,
|
|
11924
|
+
z.ZodObject<{
|
|
11925
|
+
id: z.ZodString;
|
|
11926
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11927
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11928
|
+
} & {
|
|
11929
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11930
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11931
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11932
|
+
} & {
|
|
11933
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
11934
|
+
config: z.ZodObject<{
|
|
11935
|
+
label: z.ZodOptional<z.ZodString>;
|
|
11936
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11937
|
+
}, "strip", z.ZodTypeAny, {
|
|
11938
|
+
label?: string | undefined;
|
|
11939
|
+
placeholder?: string | undefined;
|
|
11940
|
+
}, {
|
|
11941
|
+
label?: string | undefined;
|
|
11942
|
+
placeholder?: string | undefined;
|
|
11943
|
+
}>;
|
|
11944
|
+
}, "strip", z.ZodTypeAny, {
|
|
11945
|
+
type: "EMAIL";
|
|
11946
|
+
id: string;
|
|
11947
|
+
config: {
|
|
11948
|
+
label?: string | undefined;
|
|
11949
|
+
placeholder?: string | undefined;
|
|
11950
|
+
};
|
|
11951
|
+
visible: boolean;
|
|
11952
|
+
required?: boolean | undefined;
|
|
11953
|
+
category?: "FIELD" | undefined;
|
|
11954
|
+
sensitive?: boolean | undefined;
|
|
11955
|
+
order?: number | undefined;
|
|
11956
|
+
}, {
|
|
11957
|
+
type: "EMAIL";
|
|
11958
|
+
id: string;
|
|
11959
|
+
config: {
|
|
11960
|
+
label?: string | undefined;
|
|
11961
|
+
placeholder?: string | undefined;
|
|
11962
|
+
};
|
|
11963
|
+
required?: boolean | undefined;
|
|
11964
|
+
category?: "FIELD" | undefined;
|
|
11965
|
+
sensitive?: boolean | undefined;
|
|
11966
|
+
order?: number | undefined;
|
|
11967
|
+
visible?: boolean | undefined;
|
|
11968
|
+
}>,
|
|
11969
|
+
z.ZodObject<{
|
|
11970
|
+
id: z.ZodString;
|
|
11971
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11972
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11973
|
+
} & {
|
|
11974
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
11975
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11976
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11977
|
+
} & {
|
|
11978
|
+
type: z.ZodLiteral<"NUMBER">;
|
|
11979
|
+
config: z.ZodObject<{
|
|
11980
|
+
label: z.ZodOptional<z.ZodString>;
|
|
11981
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11982
|
+
}, "strip", z.ZodTypeAny, {
|
|
11983
|
+
label?: string | undefined;
|
|
11984
|
+
placeholder?: string | undefined;
|
|
11985
|
+
}, {
|
|
11986
|
+
label?: string | undefined;
|
|
11987
|
+
placeholder?: string | undefined;
|
|
11343
11988
|
}>;
|
|
11344
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
11345
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
11346
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11347
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11348
11989
|
}, "strip", z.ZodTypeAny, {
|
|
11349
|
-
type: "
|
|
11990
|
+
type: "NUMBER";
|
|
11350
11991
|
id: string;
|
|
11351
11992
|
config: {
|
|
11993
|
+
label?: string | undefined;
|
|
11352
11994
|
placeholder?: string | undefined;
|
|
11353
|
-
multiline?: boolean | undefined;
|
|
11354
11995
|
};
|
|
11355
11996
|
visible: boolean;
|
|
11356
11997
|
required?: boolean | undefined;
|
|
@@ -11358,11 +11999,11 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11358
11999
|
sensitive?: boolean | undefined;
|
|
11359
12000
|
order?: number | undefined;
|
|
11360
12001
|
}, {
|
|
11361
|
-
type: "
|
|
12002
|
+
type: "NUMBER";
|
|
11362
12003
|
id: string;
|
|
11363
12004
|
config: {
|
|
12005
|
+
label?: string | undefined;
|
|
11364
12006
|
placeholder?: string | undefined;
|
|
11365
|
-
multiline?: boolean | undefined;
|
|
11366
12007
|
};
|
|
11367
12008
|
required?: boolean | undefined;
|
|
11368
12009
|
category?: "FIELD" | undefined;
|
|
@@ -11372,33 +12013,46 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11372
12013
|
}>,
|
|
11373
12014
|
z.ZodObject<{
|
|
11374
12015
|
id: z.ZodString;
|
|
11375
|
-
|
|
11376
|
-
|
|
12016
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
12017
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12018
|
+
} & {
|
|
12019
|
+
category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
|
|
12020
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
12021
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
12022
|
+
} & {
|
|
12023
|
+
type: z.ZodLiteral<"PHONE">;
|
|
11377
12024
|
config: z.ZodObject<{
|
|
11378
|
-
|
|
12025
|
+
label: z.ZodOptional<z.ZodString>;
|
|
12026
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11379
12027
|
}, "strip", z.ZodTypeAny, {
|
|
11380
|
-
|
|
12028
|
+
label?: string | undefined;
|
|
12029
|
+
placeholder?: string | undefined;
|
|
11381
12030
|
}, {
|
|
11382
|
-
|
|
12031
|
+
label?: string | undefined;
|
|
12032
|
+
placeholder?: string | undefined;
|
|
11383
12033
|
}>;
|
|
11384
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
11385
|
-
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11386
12034
|
}, "strip", z.ZodTypeAny, {
|
|
11387
|
-
type: "
|
|
12035
|
+
type: "PHONE";
|
|
11388
12036
|
id: string;
|
|
11389
12037
|
config: {
|
|
11390
|
-
|
|
12038
|
+
label?: string | undefined;
|
|
12039
|
+
placeholder?: string | undefined;
|
|
11391
12040
|
};
|
|
11392
12041
|
visible: boolean;
|
|
11393
|
-
|
|
12042
|
+
required?: boolean | undefined;
|
|
12043
|
+
category?: "FIELD" | undefined;
|
|
12044
|
+
sensitive?: boolean | undefined;
|
|
11394
12045
|
order?: number | undefined;
|
|
11395
12046
|
}, {
|
|
11396
|
-
type: "
|
|
12047
|
+
type: "PHONE";
|
|
11397
12048
|
id: string;
|
|
11398
12049
|
config: {
|
|
11399
|
-
|
|
12050
|
+
label?: string | undefined;
|
|
12051
|
+
placeholder?: string | undefined;
|
|
11400
12052
|
};
|
|
11401
|
-
|
|
12053
|
+
required?: boolean | undefined;
|
|
12054
|
+
category?: "FIELD" | undefined;
|
|
12055
|
+
sensitive?: boolean | undefined;
|
|
11402
12056
|
order?: number | undefined;
|
|
11403
12057
|
visible?: boolean | undefined;
|
|
11404
12058
|
}>
|
|
@@ -11446,6 +12100,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11446
12100
|
visible: boolean;
|
|
11447
12101
|
category?: "BLOCK" | undefined;
|
|
11448
12102
|
order?: number | undefined;
|
|
12103
|
+
} | {
|
|
12104
|
+
type: "EMAIL";
|
|
12105
|
+
id: string;
|
|
12106
|
+
config: {
|
|
12107
|
+
label?: string | undefined;
|
|
12108
|
+
placeholder?: string | undefined;
|
|
12109
|
+
};
|
|
12110
|
+
visible: boolean;
|
|
12111
|
+
required?: boolean | undefined;
|
|
12112
|
+
category?: "FIELD" | undefined;
|
|
12113
|
+
sensitive?: boolean | undefined;
|
|
12114
|
+
order?: number | undefined;
|
|
12115
|
+
} | {
|
|
12116
|
+
type: "NUMBER";
|
|
12117
|
+
id: string;
|
|
12118
|
+
config: {
|
|
12119
|
+
label?: string | undefined;
|
|
12120
|
+
placeholder?: string | undefined;
|
|
12121
|
+
};
|
|
12122
|
+
visible: boolean;
|
|
12123
|
+
required?: boolean | undefined;
|
|
12124
|
+
category?: "FIELD" | undefined;
|
|
12125
|
+
sensitive?: boolean | undefined;
|
|
12126
|
+
order?: number | undefined;
|
|
12127
|
+
} | {
|
|
12128
|
+
type: "PHONE";
|
|
12129
|
+
id: string;
|
|
12130
|
+
config: {
|
|
12131
|
+
label?: string | undefined;
|
|
12132
|
+
placeholder?: string | undefined;
|
|
12133
|
+
};
|
|
12134
|
+
visible: boolean;
|
|
12135
|
+
required?: boolean | undefined;
|
|
12136
|
+
category?: "FIELD" | undefined;
|
|
12137
|
+
sensitive?: boolean | undefined;
|
|
12138
|
+
order?: number | undefined;
|
|
11449
12139
|
})[];
|
|
11450
12140
|
next_node?: string | undefined;
|
|
11451
12141
|
}, {
|
|
@@ -11490,6 +12180,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11490
12180
|
category?: "BLOCK" | undefined;
|
|
11491
12181
|
order?: number | undefined;
|
|
11492
12182
|
visible?: boolean | undefined;
|
|
12183
|
+
} | {
|
|
12184
|
+
type: "EMAIL";
|
|
12185
|
+
id: string;
|
|
12186
|
+
config: {
|
|
12187
|
+
label?: string | undefined;
|
|
12188
|
+
placeholder?: string | undefined;
|
|
12189
|
+
};
|
|
12190
|
+
required?: boolean | undefined;
|
|
12191
|
+
category?: "FIELD" | undefined;
|
|
12192
|
+
sensitive?: boolean | undefined;
|
|
12193
|
+
order?: number | undefined;
|
|
12194
|
+
visible?: boolean | undefined;
|
|
12195
|
+
} | {
|
|
12196
|
+
type: "NUMBER";
|
|
12197
|
+
id: string;
|
|
12198
|
+
config: {
|
|
12199
|
+
label?: string | undefined;
|
|
12200
|
+
placeholder?: string | undefined;
|
|
12201
|
+
};
|
|
12202
|
+
required?: boolean | undefined;
|
|
12203
|
+
category?: "FIELD" | undefined;
|
|
12204
|
+
sensitive?: boolean | undefined;
|
|
12205
|
+
order?: number | undefined;
|
|
12206
|
+
visible?: boolean | undefined;
|
|
12207
|
+
} | {
|
|
12208
|
+
type: "PHONE";
|
|
12209
|
+
id: string;
|
|
12210
|
+
config: {
|
|
12211
|
+
label?: string | undefined;
|
|
12212
|
+
placeholder?: string | undefined;
|
|
12213
|
+
};
|
|
12214
|
+
required?: boolean | undefined;
|
|
12215
|
+
category?: "FIELD" | undefined;
|
|
12216
|
+
sensitive?: boolean | undefined;
|
|
12217
|
+
order?: number | undefined;
|
|
12218
|
+
visible?: boolean | undefined;
|
|
11493
12219
|
})[];
|
|
11494
12220
|
next_node?: string | undefined;
|
|
11495
12221
|
}>;
|
|
@@ -11538,6 +12264,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11538
12264
|
visible: boolean;
|
|
11539
12265
|
category?: "BLOCK" | undefined;
|
|
11540
12266
|
order?: number | undefined;
|
|
12267
|
+
} | {
|
|
12268
|
+
type: "EMAIL";
|
|
12269
|
+
id: string;
|
|
12270
|
+
config: {
|
|
12271
|
+
label?: string | undefined;
|
|
12272
|
+
placeholder?: string | undefined;
|
|
12273
|
+
};
|
|
12274
|
+
visible: boolean;
|
|
12275
|
+
required?: boolean | undefined;
|
|
12276
|
+
category?: "FIELD" | undefined;
|
|
12277
|
+
sensitive?: boolean | undefined;
|
|
12278
|
+
order?: number | undefined;
|
|
12279
|
+
} | {
|
|
12280
|
+
type: "NUMBER";
|
|
12281
|
+
id: string;
|
|
12282
|
+
config: {
|
|
12283
|
+
label?: string | undefined;
|
|
12284
|
+
placeholder?: string | undefined;
|
|
12285
|
+
};
|
|
12286
|
+
visible: boolean;
|
|
12287
|
+
required?: boolean | undefined;
|
|
12288
|
+
category?: "FIELD" | undefined;
|
|
12289
|
+
sensitive?: boolean | undefined;
|
|
12290
|
+
order?: number | undefined;
|
|
12291
|
+
} | {
|
|
12292
|
+
type: "PHONE";
|
|
12293
|
+
id: string;
|
|
12294
|
+
config: {
|
|
12295
|
+
label?: string | undefined;
|
|
12296
|
+
placeholder?: string | undefined;
|
|
12297
|
+
};
|
|
12298
|
+
visible: boolean;
|
|
12299
|
+
required?: boolean | undefined;
|
|
12300
|
+
category?: "FIELD" | undefined;
|
|
12301
|
+
sensitive?: boolean | undefined;
|
|
12302
|
+
order?: number | undefined;
|
|
11541
12303
|
})[];
|
|
11542
12304
|
next_node?: string | undefined;
|
|
11543
12305
|
};
|
|
@@ -11591,6 +12353,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11591
12353
|
category?: "BLOCK" | undefined;
|
|
11592
12354
|
order?: number | undefined;
|
|
11593
12355
|
visible?: boolean | undefined;
|
|
12356
|
+
} | {
|
|
12357
|
+
type: "EMAIL";
|
|
12358
|
+
id: string;
|
|
12359
|
+
config: {
|
|
12360
|
+
label?: string | undefined;
|
|
12361
|
+
placeholder?: string | undefined;
|
|
12362
|
+
};
|
|
12363
|
+
required?: boolean | undefined;
|
|
12364
|
+
category?: "FIELD" | undefined;
|
|
12365
|
+
sensitive?: boolean | undefined;
|
|
12366
|
+
order?: number | undefined;
|
|
12367
|
+
visible?: boolean | undefined;
|
|
12368
|
+
} | {
|
|
12369
|
+
type: "NUMBER";
|
|
12370
|
+
id: string;
|
|
12371
|
+
config: {
|
|
12372
|
+
label?: string | undefined;
|
|
12373
|
+
placeholder?: string | undefined;
|
|
12374
|
+
};
|
|
12375
|
+
required?: boolean | undefined;
|
|
12376
|
+
category?: "FIELD" | undefined;
|
|
12377
|
+
sensitive?: boolean | undefined;
|
|
12378
|
+
order?: number | undefined;
|
|
12379
|
+
visible?: boolean | undefined;
|
|
12380
|
+
} | {
|
|
12381
|
+
type: "PHONE";
|
|
12382
|
+
id: string;
|
|
12383
|
+
config: {
|
|
12384
|
+
label?: string | undefined;
|
|
12385
|
+
placeholder?: string | undefined;
|
|
12386
|
+
};
|
|
12387
|
+
required?: boolean | undefined;
|
|
12388
|
+
category?: "FIELD" | undefined;
|
|
12389
|
+
sensitive?: boolean | undefined;
|
|
12390
|
+
order?: number | undefined;
|
|
12391
|
+
visible?: boolean | undefined;
|
|
11594
12392
|
})[];
|
|
11595
12393
|
next_node?: string | undefined;
|
|
11596
12394
|
};
|
|
@@ -11806,6 +12604,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11806
12604
|
visible: boolean;
|
|
11807
12605
|
category?: "BLOCK" | undefined;
|
|
11808
12606
|
order?: number | undefined;
|
|
12607
|
+
} | {
|
|
12608
|
+
type: "EMAIL";
|
|
12609
|
+
id: string;
|
|
12610
|
+
config: {
|
|
12611
|
+
label?: string | undefined;
|
|
12612
|
+
placeholder?: string | undefined;
|
|
12613
|
+
};
|
|
12614
|
+
visible: boolean;
|
|
12615
|
+
required?: boolean | undefined;
|
|
12616
|
+
category?: "FIELD" | undefined;
|
|
12617
|
+
sensitive?: boolean | undefined;
|
|
12618
|
+
order?: number | undefined;
|
|
12619
|
+
} | {
|
|
12620
|
+
type: "NUMBER";
|
|
12621
|
+
id: string;
|
|
12622
|
+
config: {
|
|
12623
|
+
label?: string | undefined;
|
|
12624
|
+
placeholder?: string | undefined;
|
|
12625
|
+
};
|
|
12626
|
+
visible: boolean;
|
|
12627
|
+
required?: boolean | undefined;
|
|
12628
|
+
category?: "FIELD" | undefined;
|
|
12629
|
+
sensitive?: boolean | undefined;
|
|
12630
|
+
order?: number | undefined;
|
|
12631
|
+
} | {
|
|
12632
|
+
type: "PHONE";
|
|
12633
|
+
id: string;
|
|
12634
|
+
config: {
|
|
12635
|
+
label?: string | undefined;
|
|
12636
|
+
placeholder?: string | undefined;
|
|
12637
|
+
};
|
|
12638
|
+
visible: boolean;
|
|
12639
|
+
required?: boolean | undefined;
|
|
12640
|
+
category?: "FIELD" | undefined;
|
|
12641
|
+
sensitive?: boolean | undefined;
|
|
12642
|
+
order?: number | undefined;
|
|
11809
12643
|
})[];
|
|
11810
12644
|
next_node?: string | undefined;
|
|
11811
12645
|
};
|
|
@@ -11931,6 +12765,42 @@ export declare const formSchema: z.ZodObject<{
|
|
|
11931
12765
|
category?: "BLOCK" | undefined;
|
|
11932
12766
|
order?: number | undefined;
|
|
11933
12767
|
visible?: boolean | undefined;
|
|
12768
|
+
} | {
|
|
12769
|
+
type: "EMAIL";
|
|
12770
|
+
id: string;
|
|
12771
|
+
config: {
|
|
12772
|
+
label?: string | undefined;
|
|
12773
|
+
placeholder?: string | undefined;
|
|
12774
|
+
};
|
|
12775
|
+
required?: boolean | undefined;
|
|
12776
|
+
category?: "FIELD" | undefined;
|
|
12777
|
+
sensitive?: boolean | undefined;
|
|
12778
|
+
order?: number | undefined;
|
|
12779
|
+
visible?: boolean | undefined;
|
|
12780
|
+
} | {
|
|
12781
|
+
type: "NUMBER";
|
|
12782
|
+
id: string;
|
|
12783
|
+
config: {
|
|
12784
|
+
label?: string | undefined;
|
|
12785
|
+
placeholder?: string | undefined;
|
|
12786
|
+
};
|
|
12787
|
+
required?: boolean | undefined;
|
|
12788
|
+
category?: "FIELD" | undefined;
|
|
12789
|
+
sensitive?: boolean | undefined;
|
|
12790
|
+
order?: number | undefined;
|
|
12791
|
+
visible?: boolean | undefined;
|
|
12792
|
+
} | {
|
|
12793
|
+
type: "PHONE";
|
|
12794
|
+
id: string;
|
|
12795
|
+
config: {
|
|
12796
|
+
label?: string | undefined;
|
|
12797
|
+
placeholder?: string | undefined;
|
|
12798
|
+
};
|
|
12799
|
+
required?: boolean | undefined;
|
|
12800
|
+
category?: "FIELD" | undefined;
|
|
12801
|
+
sensitive?: boolean | undefined;
|
|
12802
|
+
order?: number | undefined;
|
|
12803
|
+
visible?: boolean | undefined;
|
|
11934
12804
|
})[];
|
|
11935
12805
|
next_node?: string | undefined;
|
|
11936
12806
|
};
|
|
@@ -17207,6 +18077,31 @@ export interface ClientsAdapter {
|
|
|
17207
18077
|
}>;
|
|
17208
18078
|
update(tenant_id: string, client_id: string, client: Partial<Client>): Promise<boolean>;
|
|
17209
18079
|
}
|
|
18080
|
+
export interface ClientConnectionsAdapter {
|
|
18081
|
+
/**
|
|
18082
|
+
* Get all connections enabled for a specific client
|
|
18083
|
+
* Returns connections in the order they were stored
|
|
18084
|
+
*/
|
|
18085
|
+
listByClient(tenant_id: string, client_id: string): Promise<Connection[]>;
|
|
18086
|
+
/**
|
|
18087
|
+
* Update the connections for a client
|
|
18088
|
+
* The connection_ids array determines both which connections are enabled
|
|
18089
|
+
* and their display order on the login page
|
|
18090
|
+
*/
|
|
18091
|
+
updateByClient(tenant_id: string, client_id: string, connection_ids: string[]): Promise<boolean>;
|
|
18092
|
+
/**
|
|
18093
|
+
* Get all clients that have a specific connection enabled
|
|
18094
|
+
*/
|
|
18095
|
+
listByConnection(tenant_id: string, connection_id: string): Promise<string[]>;
|
|
18096
|
+
/**
|
|
18097
|
+
* Add a client to a connection (add client_id to the list of clients using this connection)
|
|
18098
|
+
*/
|
|
18099
|
+
addClientToConnection(tenant_id: string, connection_id: string, client_id: string): Promise<boolean>;
|
|
18100
|
+
/**
|
|
18101
|
+
* Remove a client from a connection
|
|
18102
|
+
*/
|
|
18103
|
+
removeClientFromConnection(tenant_id: string, connection_id: string, client_id: string): Promise<boolean>;
|
|
18104
|
+
}
|
|
17210
18105
|
export interface ListClientGrantsResponse extends Totals {
|
|
17211
18106
|
client_grants: ClientGrant[];
|
|
17212
18107
|
}
|
|
@@ -17467,6 +18362,7 @@ export interface DataAdapters {
|
|
|
17467
18362
|
branding: BrandingAdapter;
|
|
17468
18363
|
cache?: CacheAdapter;
|
|
17469
18364
|
clients: ClientsAdapter;
|
|
18365
|
+
clientConnections: ClientConnectionsAdapter;
|
|
17470
18366
|
clientGrants: ClientGrantsAdapter;
|
|
17471
18367
|
legacyClients: LegacyClientsAdapter;
|
|
17472
18368
|
codes: CodesAdapter;
|