@logto/schemas 1.29.0 → 1.30.1

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.
Files changed (83) hide show
  1. package/alterations/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.ts +81 -0
  2. package/alterations/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.ts +20 -0
  3. package/alterations/1.30.0-1751255436-split-secret-connector-relatioins-table.ts +359 -0
  4. package/alterations/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.ts +20 -0
  5. package/alterations/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.ts +21 -0
  6. package/alterations/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.ts +20 -0
  7. package/alterations/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.ts +20 -0
  8. package/alterations/1.30.0-1753669579-add-organization-user-relations-foreign-key.ts +46 -0
  9. package/alterations-js/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.js +76 -0
  10. package/alterations-js/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.js +16 -0
  11. package/alterations-js/1.30.0-1751255436-split-secret-connector-relatioins-table.js +338 -0
  12. package/alterations-js/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.js +16 -0
  13. package/alterations-js/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.js +17 -0
  14. package/alterations-js/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.js +16 -0
  15. package/alterations-js/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.js +16 -0
  16. package/alterations-js/1.30.0-1753669579-add-organization-user-relations-foreign-key.js +38 -0
  17. package/lib/consts/oidc.d.ts +9 -1
  18. package/lib/consts/oidc.js +5 -0
  19. package/lib/db-entries/connector.d.ts +5 -1
  20. package/lib/db-entries/connector.js +4 -0
  21. package/lib/db-entries/index.d.ts +2 -1
  22. package/lib/db-entries/index.js +2 -1
  23. package/lib/db-entries/secret-enterprise-sso-connector-relation.d.ts +28 -0
  24. package/lib/db-entries/secret-enterprise-sso-connector-relation.js +37 -0
  25. package/lib/db-entries/secret-social-connector-relation.d.ts +28 -0
  26. package/lib/db-entries/secret-social-connector-relation.js +37 -0
  27. package/lib/db-entries/secret.d.ts +9 -9
  28. package/lib/db-entries/secret.js +9 -9
  29. package/lib/db-entries/sso-connector.d.ts +5 -1
  30. package/lib/db-entries/sso-connector.js +4 -0
  31. package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +336 -11
  32. package/lib/foundations/jsonb-types/custom-profile-fields.js +17 -9
  33. package/lib/foundations/jsonb-types/secrets.d.ts +2 -0
  34. package/lib/foundations/jsonb-types/secrets.js +5 -0
  35. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +3 -1
  36. package/lib/foundations/jsonb-types/sign-in-experience.js +2 -0
  37. package/lib/foundations/jsonb-types/users.d.ts +94 -0
  38. package/lib/foundations/jsonb-types/users.js +11 -0
  39. package/lib/types/connector.d.ts +39 -0
  40. package/lib/types/connector.js +1 -0
  41. package/lib/types/consent.d.ts +40 -0
  42. package/lib/types/custom-profile-fields.d.ts +1410 -133
  43. package/lib/types/custom-profile-fields.js +51 -15
  44. package/lib/types/index.d.ts +2 -0
  45. package/lib/types/index.js +2 -0
  46. package/lib/types/interactions.d.ts +175 -1
  47. package/lib/types/interactions.js +48 -1
  48. package/lib/types/logto-config/index.d.ts +214 -179
  49. package/lib/types/logto-config/jwt-customizer.d.ts +453 -328
  50. package/lib/types/logto-config/jwt-customizer.js +6 -1
  51. package/lib/types/secrets.d.ts +436 -0
  52. package/lib/types/secrets.js +73 -0
  53. package/lib/types/sign-in-experience.d.ts +19 -1
  54. package/lib/types/sign-in-experience.js +3 -1
  55. package/lib/types/sso-connector.d.ts +5 -2
  56. package/lib/types/user-logto-config.d.ts +45 -0
  57. package/lib/types/user-logto-config.js +18 -0
  58. package/lib/types/user.d.ts +615 -0
  59. package/lib/types/user.js +14 -1
  60. package/lib/types/verification-records/backup-code-verification.d.ts +18 -0
  61. package/lib/types/verification-records/backup-code-verification.js +3 -0
  62. package/lib/types/verification-records/enterprise-sso-verification.d.ts +145 -0
  63. package/lib/types/verification-records/enterprise-sso-verification.js +5 -0
  64. package/lib/types/verification-records/new-password-identity-verification.d.ts +31 -0
  65. package/lib/types/verification-records/new-password-identity-verification.js +4 -0
  66. package/lib/types/verification-records/social-verification.d.ts +164 -0
  67. package/lib/types/verification-records/social-verification.js +6 -0
  68. package/lib/types/verification-records/totp-verification.d.ts +18 -0
  69. package/lib/types/verification-records/totp-verification.js +3 -0
  70. package/lib/types/verification-records/web-authn-verification.d.ts +44 -0
  71. package/lib/types/verification-records/web-authn-verification.js +5 -0
  72. package/package.json +7 -7
  73. package/tables/account_centers.sql +1 -1
  74. package/tables/connectors.sql +2 -0
  75. package/tables/organization_user_relations.sql +4 -1
  76. package/tables/secret_enterprise_sso_connector_relations.sql +60 -0
  77. package/tables/secret_social_connector_relations.sql +75 -0
  78. package/tables/secrets.sql +4 -4
  79. package/tables/sso_connectors.sql +2 -0
  80. package/tables/users.sql +2 -1
  81. package/lib/db-entries/secret-connector-relation.d.ts +0 -40
  82. package/lib/db-entries/secret-connector-relation.js +0 -49
  83. package/tables/secret_connector_relations.sql +0 -78
@@ -239,6 +239,40 @@ export declare const mfaVerificationBackupCode: z.ZodObject<{
239
239
  lastUsedAt?: string | undefined;
240
240
  }>;
241
241
  export type MfaVerificationBackupCode = z.infer<typeof mfaVerificationBackupCode>;
242
+ export declare const mfaVerificationEmailVerificationCode: z.ZodObject<{
243
+ id: z.ZodString;
244
+ createdAt: z.ZodString;
245
+ lastUsedAt: z.ZodOptional<z.ZodString>;
246
+ type: z.ZodLiteral<MfaFactor.EmailVerificationCode>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ type: MfaFactor.EmailVerificationCode;
249
+ id: string;
250
+ createdAt: string;
251
+ lastUsedAt?: string | undefined;
252
+ }, {
253
+ type: MfaFactor.EmailVerificationCode;
254
+ id: string;
255
+ createdAt: string;
256
+ lastUsedAt?: string | undefined;
257
+ }>;
258
+ export type MfaVerificationEmailVerificationCode = z.infer<typeof mfaVerificationEmailVerificationCode>;
259
+ export declare const mfaVerificationPhoneVerificationCode: z.ZodObject<{
260
+ id: z.ZodString;
261
+ createdAt: z.ZodString;
262
+ lastUsedAt: z.ZodOptional<z.ZodString>;
263
+ type: z.ZodLiteral<MfaFactor.PhoneVerificationCode>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ type: MfaFactor.PhoneVerificationCode;
266
+ id: string;
267
+ createdAt: string;
268
+ lastUsedAt?: string | undefined;
269
+ }, {
270
+ type: MfaFactor.PhoneVerificationCode;
271
+ id: string;
272
+ createdAt: string;
273
+ lastUsedAt?: string | undefined;
274
+ }>;
275
+ export type MfaVerificationPhoneVerificationCode = z.infer<typeof mfaVerificationPhoneVerificationCode>;
242
276
  export declare const mfaVerificationGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
243
277
  key: z.ZodString;
244
278
  id: z.ZodString;
@@ -323,6 +357,36 @@ export declare const mfaVerificationGuard: z.ZodDiscriminatedUnion<"type", [z.Zo
323
357
  usedAt?: string | undefined;
324
358
  }[];
325
359
  lastUsedAt?: string | undefined;
360
+ }>, z.ZodObject<{
361
+ id: z.ZodString;
362
+ createdAt: z.ZodString;
363
+ lastUsedAt: z.ZodOptional<z.ZodString>;
364
+ type: z.ZodLiteral<MfaFactor.EmailVerificationCode>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ type: MfaFactor.EmailVerificationCode;
367
+ id: string;
368
+ createdAt: string;
369
+ lastUsedAt?: string | undefined;
370
+ }, {
371
+ type: MfaFactor.EmailVerificationCode;
372
+ id: string;
373
+ createdAt: string;
374
+ lastUsedAt?: string | undefined;
375
+ }>, z.ZodObject<{
376
+ id: z.ZodString;
377
+ createdAt: z.ZodString;
378
+ lastUsedAt: z.ZodOptional<z.ZodString>;
379
+ type: z.ZodLiteral<MfaFactor.PhoneVerificationCode>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ type: MfaFactor.PhoneVerificationCode;
382
+ id: string;
383
+ createdAt: string;
384
+ lastUsedAt?: string | undefined;
385
+ }, {
386
+ type: MfaFactor.PhoneVerificationCode;
387
+ id: string;
388
+ createdAt: string;
389
+ lastUsedAt?: string | undefined;
326
390
  }>]>;
327
391
  export type MfaVerification = z.infer<typeof mfaVerificationGuard>;
328
392
  export declare const mfaVerificationsGuard: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -409,5 +473,35 @@ export declare const mfaVerificationsGuard: z.ZodArray<z.ZodDiscriminatedUnion<"
409
473
  usedAt?: string | undefined;
410
474
  }[];
411
475
  lastUsedAt?: string | undefined;
476
+ }>, z.ZodObject<{
477
+ id: z.ZodString;
478
+ createdAt: z.ZodString;
479
+ lastUsedAt: z.ZodOptional<z.ZodString>;
480
+ type: z.ZodLiteral<MfaFactor.EmailVerificationCode>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ type: MfaFactor.EmailVerificationCode;
483
+ id: string;
484
+ createdAt: string;
485
+ lastUsedAt?: string | undefined;
486
+ }, {
487
+ type: MfaFactor.EmailVerificationCode;
488
+ id: string;
489
+ createdAt: string;
490
+ lastUsedAt?: string | undefined;
491
+ }>, z.ZodObject<{
492
+ id: z.ZodString;
493
+ createdAt: z.ZodString;
494
+ lastUsedAt: z.ZodOptional<z.ZodString>;
495
+ type: z.ZodLiteral<MfaFactor.PhoneVerificationCode>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ type: MfaFactor.PhoneVerificationCode;
498
+ id: string;
499
+ createdAt: string;
500
+ lastUsedAt?: string | undefined;
501
+ }, {
502
+ type: MfaFactor.PhoneVerificationCode;
503
+ id: string;
504
+ createdAt: string;
505
+ lastUsedAt?: string | undefined;
412
506
  }>]>, "many">;
413
507
  export type MfaVerifications = z.infer<typeof mfaVerificationsGuard>;
@@ -65,9 +65,20 @@ export const mfaVerificationBackupCode = z.object({
65
65
  ...baseMfaVerification,
66
66
  codes: z.object({ code: z.string(), usedAt: z.string().optional() }).array(),
67
67
  });
68
+ // TODO @wangsijie: Implement this later
69
+ export const mfaVerificationEmailVerificationCode = z.object({
70
+ type: z.literal(MfaFactor.EmailVerificationCode),
71
+ ...baseMfaVerification,
72
+ });
73
+ export const mfaVerificationPhoneVerificationCode = z.object({
74
+ type: z.literal(MfaFactor.PhoneVerificationCode),
75
+ ...baseMfaVerification,
76
+ });
68
77
  export const mfaVerificationGuard = z.discriminatedUnion('type', [
69
78
  mfaVerificationTotp,
70
79
  mfaVerificationWebAuthn,
71
80
  mfaVerificationBackupCode,
81
+ mfaVerificationEmailVerificationCode,
82
+ mfaVerificationPhoneVerificationCode,
72
83
  ]);
73
84
  export const mfaVerificationsGuard = mfaVerificationGuard.array();
@@ -5,6 +5,7 @@ export { ConnectorType, ConnectorPlatform } from '@logto/connector-kit';
5
5
  export declare const connectorResponseGuard: z.ZodObject<{
6
6
  config: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
7
7
  syncProfile: z.ZodType<boolean, z.ZodTypeDef, boolean>;
8
+ enableTokenStorage: z.ZodType<boolean, z.ZodTypeDef, boolean>;
8
9
  connectorId: z.ZodType<string, z.ZodTypeDef, string>;
9
10
  metadata: z.ZodType<{
10
11
  target?: string | undefined;
@@ -45,6 +46,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
45
46
  description: z.ZodOptional<z.ZodString>;
46
47
  tooltip: z.ZodOptional<z.ZodString>;
47
48
  isConfidential: z.ZodOptional<z.ZodBoolean>;
49
+ isDevFeature: z.ZodOptional<z.ZodBoolean>;
48
50
  type: z.ZodLiteral<import("@logto/connector-kit").ConnectorConfigFormItemType.Select>;
49
51
  selectItems: z.ZodArray<z.ZodObject<{
50
52
  value: z.ZodString;
@@ -74,6 +76,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
74
76
  description?: string | undefined;
75
77
  tooltip?: string | undefined;
76
78
  isConfidential?: boolean | undefined;
79
+ isDevFeature?: boolean | undefined;
77
80
  }, {
78
81
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Select;
79
82
  selectItems: {
@@ -92,6 +95,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
92
95
  description?: string | undefined;
93
96
  tooltip?: string | undefined;
94
97
  isConfidential?: boolean | undefined;
98
+ isDevFeature?: boolean | undefined;
95
99
  }>, z.ZodObject<{
96
100
  key: z.ZodString;
97
101
  label: z.ZodString;
@@ -111,6 +115,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
111
115
  description: z.ZodOptional<z.ZodString>;
112
116
  tooltip: z.ZodOptional<z.ZodString>;
113
117
  isConfidential: z.ZodOptional<z.ZodBoolean>;
118
+ isDevFeature: z.ZodOptional<z.ZodBoolean>;
114
119
  type: z.ZodLiteral<import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect>;
115
120
  selectItems: z.ZodArray<z.ZodObject<{
116
121
  value: z.ZodString;
@@ -136,6 +141,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
136
141
  description?: string | undefined;
137
142
  tooltip?: string | undefined;
138
143
  isConfidential?: boolean | undefined;
144
+ isDevFeature?: boolean | undefined;
139
145
  }, {
140
146
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect;
141
147
  selectItems: {
@@ -153,6 +159,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
153
159
  description?: string | undefined;
154
160
  tooltip?: string | undefined;
155
161
  isConfidential?: boolean | undefined;
162
+ isDevFeature?: boolean | undefined;
156
163
  }>, z.ZodObject<{
157
164
  key: z.ZodString;
158
165
  label: z.ZodString;
@@ -172,6 +179,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
172
179
  description: z.ZodOptional<z.ZodString>;
173
180
  tooltip: z.ZodOptional<z.ZodString>;
174
181
  isConfidential: z.ZodOptional<z.ZodBoolean>;
182
+ isDevFeature: z.ZodOptional<z.ZodBoolean>;
175
183
  type: z.ZodEnum<[import("@logto/connector-kit").ConnectorConfigFormItemType.Text, import("@logto/connector-kit").ConnectorConfigFormItemType.Number, import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText, import("@logto/connector-kit").ConnectorConfigFormItemType.Switch, import("@logto/connector-kit").ConnectorConfigFormItemType.Json]>;
176
184
  }, "strip", z.ZodTypeAny, {
177
185
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
@@ -187,6 +195,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
187
195
  description?: string | undefined;
188
196
  tooltip?: string | undefined;
189
197
  isConfidential?: boolean | undefined;
198
+ isDevFeature?: boolean | undefined;
190
199
  }, {
191
200
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
192
201
  key: string;
@@ -201,11 +210,13 @@ export declare const connectorResponseGuard: z.ZodObject<{
201
210
  description?: string | undefined;
202
211
  tooltip?: string | undefined;
203
212
  isConfidential?: boolean | undefined;
213
+ isDevFeature?: boolean | undefined;
204
214
  }>]>, "many">>;
205
215
  customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
206
216
  fromEmail: z.ZodOptional<z.ZodString>;
207
217
  platform: z.ZodNullable<z.ZodNativeEnum<typeof import("@logto/connector-kit").ConnectorPlatform>>;
208
218
  isStandard: z.ZodOptional<z.ZodBoolean>;
219
+ isTokenStorageSupported: z.ZodOptional<z.ZodBoolean>;
209
220
  } & {
210
221
  type: z.ZodNativeEnum<typeof ConnectorType>;
211
222
  isDemo: z.ZodOptional<z.ZodBoolean>;
@@ -479,6 +490,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
479
490
  };
480
491
  config: import("@withtyped/server").JsonObject;
481
492
  syncProfile: boolean;
493
+ enableTokenStorage: boolean;
482
494
  connectorId: string;
483
495
  metadata: import("@logto/connector-kit").ConfigurableConnectorMetadata;
484
496
  target: string;
@@ -506,6 +518,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
506
518
  description?: string | undefined;
507
519
  tooltip?: string | undefined;
508
520
  isConfidential?: boolean | undefined;
521
+ isDevFeature?: boolean | undefined;
509
522
  } | {
510
523
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect;
511
524
  selectItems: {
@@ -523,6 +536,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
523
536
  description?: string | undefined;
524
537
  tooltip?: string | undefined;
525
538
  isConfidential?: boolean | undefined;
539
+ isDevFeature?: boolean | undefined;
526
540
  } | {
527
541
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
528
542
  key: string;
@@ -537,9 +551,11 @@ export declare const connectorResponseGuard: z.ZodObject<{
537
551
  description?: string | undefined;
538
552
  tooltip?: string | undefined;
539
553
  isConfidential?: boolean | undefined;
554
+ isDevFeature?: boolean | undefined;
540
555
  })[] | undefined;
541
556
  fromEmail?: string | undefined;
542
557
  isStandard?: boolean | undefined;
558
+ isTokenStorageSupported?: boolean | undefined;
543
559
  isDemo?: boolean | undefined;
544
560
  extraInfo?: Record<string, unknown> | undefined;
545
561
  }, {
@@ -810,6 +826,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
810
826
  };
811
827
  config: import("@withtyped/server").JsonObject;
812
828
  syncProfile: boolean;
829
+ enableTokenStorage: boolean;
813
830
  connectorId: string;
814
831
  metadata: import("@logto/connector-kit").ConfigurableConnectorMetadata;
815
832
  target: string;
@@ -837,6 +854,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
837
854
  description?: string | undefined;
838
855
  tooltip?: string | undefined;
839
856
  isConfidential?: boolean | undefined;
857
+ isDevFeature?: boolean | undefined;
840
858
  } | {
841
859
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect;
842
860
  selectItems: {
@@ -854,6 +872,7 @@ export declare const connectorResponseGuard: z.ZodObject<{
854
872
  description?: string | undefined;
855
873
  tooltip?: string | undefined;
856
874
  isConfidential?: boolean | undefined;
875
+ isDevFeature?: boolean | undefined;
857
876
  } | {
858
877
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
859
878
  key: string;
@@ -868,9 +887,11 @@ export declare const connectorResponseGuard: z.ZodObject<{
868
887
  description?: string | undefined;
869
888
  tooltip?: string | undefined;
870
889
  isConfidential?: boolean | undefined;
890
+ isDevFeature?: boolean | undefined;
871
891
  })[] | undefined;
872
892
  fromEmail?: string | undefined;
873
893
  isStandard?: boolean | undefined;
894
+ isTokenStorageSupported?: boolean | undefined;
874
895
  isDemo?: boolean | undefined;
875
896
  extraInfo?: Record<string, unknown> | undefined;
876
897
  }>;
@@ -906,6 +927,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
906
927
  description: z.ZodOptional<z.ZodString>;
907
928
  tooltip: z.ZodOptional<z.ZodString>;
908
929
  isConfidential: z.ZodOptional<z.ZodBoolean>;
930
+ isDevFeature: z.ZodOptional<z.ZodBoolean>;
909
931
  type: z.ZodLiteral<import("@logto/connector-kit").ConnectorConfigFormItemType.Select>;
910
932
  selectItems: z.ZodArray<z.ZodObject<{
911
933
  value: z.ZodString;
@@ -935,6 +957,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
935
957
  description?: string | undefined;
936
958
  tooltip?: string | undefined;
937
959
  isConfidential?: boolean | undefined;
960
+ isDevFeature?: boolean | undefined;
938
961
  }, {
939
962
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Select;
940
963
  selectItems: {
@@ -953,6 +976,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
953
976
  description?: string | undefined;
954
977
  tooltip?: string | undefined;
955
978
  isConfidential?: boolean | undefined;
979
+ isDevFeature?: boolean | undefined;
956
980
  }>, z.ZodObject<{
957
981
  key: z.ZodString;
958
982
  label: z.ZodString;
@@ -972,6 +996,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
972
996
  description: z.ZodOptional<z.ZodString>;
973
997
  tooltip: z.ZodOptional<z.ZodString>;
974
998
  isConfidential: z.ZodOptional<z.ZodBoolean>;
999
+ isDevFeature: z.ZodOptional<z.ZodBoolean>;
975
1000
  type: z.ZodLiteral<import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect>;
976
1001
  selectItems: z.ZodArray<z.ZodObject<{
977
1002
  value: z.ZodString;
@@ -997,6 +1022,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
997
1022
  description?: string | undefined;
998
1023
  tooltip?: string | undefined;
999
1024
  isConfidential?: boolean | undefined;
1025
+ isDevFeature?: boolean | undefined;
1000
1026
  }, {
1001
1027
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect;
1002
1028
  selectItems: {
@@ -1014,6 +1040,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1014
1040
  description?: string | undefined;
1015
1041
  tooltip?: string | undefined;
1016
1042
  isConfidential?: boolean | undefined;
1043
+ isDevFeature?: boolean | undefined;
1017
1044
  }>, z.ZodObject<{
1018
1045
  key: z.ZodString;
1019
1046
  label: z.ZodString;
@@ -1033,6 +1060,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1033
1060
  description: z.ZodOptional<z.ZodString>;
1034
1061
  tooltip: z.ZodOptional<z.ZodString>;
1035
1062
  isConfidential: z.ZodOptional<z.ZodBoolean>;
1063
+ isDevFeature: z.ZodOptional<z.ZodBoolean>;
1036
1064
  type: z.ZodEnum<[import("@logto/connector-kit").ConnectorConfigFormItemType.Text, import("@logto/connector-kit").ConnectorConfigFormItemType.Number, import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText, import("@logto/connector-kit").ConnectorConfigFormItemType.Switch, import("@logto/connector-kit").ConnectorConfigFormItemType.Json]>;
1037
1065
  }, "strip", z.ZodTypeAny, {
1038
1066
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
@@ -1048,6 +1076,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1048
1076
  description?: string | undefined;
1049
1077
  tooltip?: string | undefined;
1050
1078
  isConfidential?: boolean | undefined;
1079
+ isDevFeature?: boolean | undefined;
1051
1080
  }, {
1052
1081
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
1053
1082
  key: string;
@@ -1062,12 +1091,14 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1062
1091
  description?: string | undefined;
1063
1092
  tooltip?: string | undefined;
1064
1093
  isConfidential?: boolean | undefined;
1094
+ isDevFeature?: boolean | undefined;
1065
1095
  }>]>, "many">>;
1066
1096
  customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1067
1097
  fromEmail: z.ZodOptional<z.ZodString>;
1068
1098
  } & {
1069
1099
  platform: z.ZodNullable<z.ZodNativeEnum<typeof import("@logto/connector-kit").ConnectorPlatform>>;
1070
1100
  isStandard: z.ZodOptional<z.ZodBoolean>;
1101
+ isTokenStorageSupported: z.ZodOptional<z.ZodBoolean>;
1071
1102
  }, "strip", z.ZodTypeAny, {
1072
1103
  type: ConnectorType;
1073
1104
  name: {
@@ -1358,6 +1389,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1358
1389
  description?: string | undefined;
1359
1390
  tooltip?: string | undefined;
1360
1391
  isConfidential?: boolean | undefined;
1392
+ isDevFeature?: boolean | undefined;
1361
1393
  } | {
1362
1394
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect;
1363
1395
  selectItems: {
@@ -1375,6 +1407,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1375
1407
  description?: string | undefined;
1376
1408
  tooltip?: string | undefined;
1377
1409
  isConfidential?: boolean | undefined;
1410
+ isDevFeature?: boolean | undefined;
1378
1411
  } | {
1379
1412
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
1380
1413
  key: string;
@@ -1389,9 +1422,11 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1389
1422
  description?: string | undefined;
1390
1423
  tooltip?: string | undefined;
1391
1424
  isConfidential?: boolean | undefined;
1425
+ isDevFeature?: boolean | undefined;
1392
1426
  })[] | undefined;
1393
1427
  fromEmail?: string | undefined;
1394
1428
  isStandard?: boolean | undefined;
1429
+ isTokenStorageSupported?: boolean | undefined;
1395
1430
  isDemo?: boolean | undefined;
1396
1431
  }, {
1397
1432
  type: ConnectorType;
@@ -1683,6 +1718,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1683
1718
  description?: string | undefined;
1684
1719
  tooltip?: string | undefined;
1685
1720
  isConfidential?: boolean | undefined;
1721
+ isDevFeature?: boolean | undefined;
1686
1722
  } | {
1687
1723
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.MultiSelect;
1688
1724
  selectItems: {
@@ -1700,6 +1736,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1700
1736
  description?: string | undefined;
1701
1737
  tooltip?: string | undefined;
1702
1738
  isConfidential?: boolean | undefined;
1739
+ isDevFeature?: boolean | undefined;
1703
1740
  } | {
1704
1741
  type: import("@logto/connector-kit").ConnectorConfigFormItemType.Text | import("@logto/connector-kit").ConnectorConfigFormItemType.Number | import("@logto/connector-kit").ConnectorConfigFormItemType.MultilineText | import("@logto/connector-kit").ConnectorConfigFormItemType.Switch | import("@logto/connector-kit").ConnectorConfigFormItemType.Json;
1705
1742
  key: string;
@@ -1714,9 +1751,11 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
1714
1751
  description?: string | undefined;
1715
1752
  tooltip?: string | undefined;
1716
1753
  isConfidential?: boolean | undefined;
1754
+ isDevFeature?: boolean | undefined;
1717
1755
  })[] | undefined;
1718
1756
  fromEmail?: string | undefined;
1719
1757
  isStandard?: boolean | undefined;
1758
+ isTokenStorageSupported?: boolean | undefined;
1720
1759
  isDemo?: boolean | undefined;
1721
1760
  }>;
1722
1761
  export type ConnectorFactoryResponse = z.infer<typeof connectorFactoryResponseGuard>;
@@ -6,6 +6,7 @@ export const connectorResponseGuard = Connectors.guard
6
6
  .pick({
7
7
  id: true,
8
8
  syncProfile: true,
9
+ enableTokenStorage: true,
9
10
  config: true,
10
11
  metadata: true,
11
12
  connectorId: true,
@@ -89,6 +89,16 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
89
89
  usedAt?: string | undefined;
90
90
  }[];
91
91
  lastUsedAt?: string | undefined;
92
+ } | {
93
+ type: import("../index.js").MfaFactor.EmailVerificationCode;
94
+ id: string;
95
+ createdAt: string;
96
+ lastUsedAt?: string | undefined;
97
+ } | {
98
+ type: import("../index.js").MfaFactor.PhoneVerificationCode;
99
+ id: string;
100
+ createdAt: string;
101
+ lastUsedAt?: string | undefined;
92
102
  })[], z.ZodTypeDef, ({
93
103
  type: import("../index.js").MfaFactor.TOTP;
94
104
  id: string;
@@ -115,6 +125,16 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
115
125
  usedAt?: string | undefined;
116
126
  }[];
117
127
  lastUsedAt?: string | undefined;
128
+ } | {
129
+ type: import("../index.js").MfaFactor.EmailVerificationCode;
130
+ id: string;
131
+ createdAt: string;
132
+ lastUsedAt?: string | undefined;
133
+ } | {
134
+ type: import("../index.js").MfaFactor.PhoneVerificationCode;
135
+ id: string;
136
+ createdAt: string;
137
+ lastUsedAt?: string | undefined;
118
138
  })[]>;
119
139
  isSuspended: z.ZodType<boolean, z.ZodTypeDef, boolean>;
120
140
  lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
@@ -657,6 +677,16 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
657
677
  usedAt?: string | undefined;
658
678
  }[];
659
679
  lastUsedAt?: string | undefined;
680
+ } | {
681
+ type: import("../index.js").MfaFactor.EmailVerificationCode;
682
+ id: string;
683
+ createdAt: string;
684
+ lastUsedAt?: string | undefined;
685
+ } | {
686
+ type: import("../index.js").MfaFactor.PhoneVerificationCode;
687
+ id: string;
688
+ createdAt: string;
689
+ lastUsedAt?: string | undefined;
660
690
  })[], z.ZodTypeDef, ({
661
691
  type: import("../index.js").MfaFactor.TOTP;
662
692
  id: string;
@@ -683,6 +713,16 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
683
713
  usedAt?: string | undefined;
684
714
  }[];
685
715
  lastUsedAt?: string | undefined;
716
+ } | {
717
+ type: import("../index.js").MfaFactor.EmailVerificationCode;
718
+ id: string;
719
+ createdAt: string;
720
+ lastUsedAt?: string | undefined;
721
+ } | {
722
+ type: import("../index.js").MfaFactor.PhoneVerificationCode;
723
+ id: string;
724
+ createdAt: string;
725
+ lastUsedAt?: string | undefined;
686
726
  })[]>;
687
727
  isSuspended: z.ZodType<boolean, z.ZodTypeDef, boolean>;
688
728
  lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;