@yielded/auth-persistence-drizzle 0.1.0-beta.17 → 0.1.0-beta.18
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/D1.d.mts +114 -114
- package/dist/Libsql.d.mts +122 -122
- package/dist/Mysql2.d.mts +122 -122
- package/dist/Pglite.d.mts +122 -122
- package/dist/Postgres.d.mts +120 -120
- package/dist/SqliteBun.d.mts +124 -124
- package/dist/SqliteDo.d.mts +125 -125
- package/dist/SqliteNode.d.mts +116 -116
- package/dist/SqliteWasm.d.mts +125 -125
- package/dist/drizzle/d1-oauth.d.mts +6 -6
- package/dist/drizzle/d1-password-prepared.mjs +3 -3
- package/dist/drizzle/d1-password-prepared.mjs.map +1 -1
- package/dist/drizzle/d1-passwords.mjs +1 -1
- package/dist/drizzle/d1-passwords.mjs.map +1 -1
- package/dist/drizzle/d1-sessions.mjs +4 -3
- package/dist/drizzle/d1-sessions.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-state.d.mts +252 -252
- package/dist/drizzle/oauth-connected-target.d.mts +98 -98
- package/dist/drizzle/password-prepared-sql.mjs +1 -1
- package/dist/drizzle/password-prepared-sql.mjs.map +1 -1
- package/package.json +1 -1
- package/src/drizzle/d1-password-prepared.ts +11 -5
- package/src/drizzle/d1-passwords.ts +1 -1
- package/src/drizzle/d1-sessions.ts +8 -2
- package/src/drizzle/password-prepared-sql.ts +1 -1
package/dist/SqliteDo.d.mts
CHANGED
|
@@ -96,12 +96,12 @@ export declare const coordinateEmailAddress: {
|
|
|
96
96
|
export declare const coordinatePasswordPersistence: {
|
|
97
97
|
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, PM extends ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any> | undefined, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
98
98
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasswordPersistenceMapping<DrizzleTableModel<S>, DrizzleTableModel<I>, DrizzleTableModel<C>, DrizzleTableModel<AC>, DrizzleTableModel<A>, DrizzleTableModel<RS>, DrizzleTableModel<CE>, DrizzleTableModel<M>, NativeId, import("drizzle-orm").SQL<unknown>>;
|
|
99
|
-
readonly proofMapping?: PM
|
|
99
|
+
readonly proofMapping?: PM;
|
|
100
100
|
readonly transaction?: never;
|
|
101
101
|
}, body: Effect.Effect<Out, E, NoInfer<import("@yielded/auth/Password").PasswordPersistence>>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks>;
|
|
102
102
|
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, PM extends ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any> | undefined, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
103
103
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasswordPersistenceMapping<DrizzleTableModel<S>, DrizzleTableModel<I>, DrizzleTableModel<C>, DrizzleTableModel<AC>, DrizzleTableModel<A>, DrizzleTableModel<RS>, DrizzleTableModel<CE>, DrizzleTableModel<M>, NativeId, import("drizzle-orm").SQL<unknown>>;
|
|
104
|
-
readonly proofMapping?: PM
|
|
104
|
+
readonly proofMapping?: PM;
|
|
105
105
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
106
106
|
}, body: Effect.Effect<Out, E, NoInfer<TxId | import("@yielded/auth/Password").PasswordPersistence>>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks>;
|
|
107
107
|
}, coordinatePasswordRegistration: {
|
|
@@ -395,11 +395,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
395
395
|
readonly resources: readonly string[];
|
|
396
396
|
readonly retention: "access-and-refresh" | "access-only";
|
|
397
397
|
readonly maximumAccessLifetimeMillis: number;
|
|
398
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
398
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
399
399
|
readonly refreshAheadMillis: number;
|
|
400
400
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
401
401
|
readonly revocation: "cohort" | "unsupported";
|
|
402
|
-
}
|
|
402
|
+
};
|
|
403
403
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
404
404
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
405
405
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -461,11 +461,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
461
461
|
readonly resources: readonly string[];
|
|
462
462
|
readonly retention: "access-and-refresh" | "access-only";
|
|
463
463
|
readonly maximumAccessLifetimeMillis: number;
|
|
464
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
464
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
465
465
|
readonly refreshAheadMillis: number;
|
|
466
466
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
467
467
|
readonly revocation: "cohort" | "unsupported";
|
|
468
|
-
}
|
|
468
|
+
};
|
|
469
469
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
470
470
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
471
471
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -505,12 +505,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
505
505
|
readonly nowMillis: number;
|
|
506
506
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
507
507
|
readonly _tag: "Rejected";
|
|
508
|
-
} | {
|
|
509
|
-
readonly _tag: "Cancelled";
|
|
510
508
|
} | {
|
|
511
509
|
readonly _tag: "Ambiguous";
|
|
512
510
|
} | {
|
|
513
|
-
readonly _tag: "
|
|
511
|
+
readonly _tag: "Cancelled";
|
|
514
512
|
} | {
|
|
515
513
|
readonly _tag: "Linked";
|
|
516
514
|
readonly credential: {
|
|
@@ -532,6 +530,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
532
530
|
};
|
|
533
531
|
};
|
|
534
532
|
readonly changed: boolean;
|
|
533
|
+
} | {
|
|
534
|
+
readonly _tag: "Conflict";
|
|
535
535
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
536
536
|
readonly inspectUnlink: (input: {
|
|
537
537
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -878,10 +878,12 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
878
878
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
879
879
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
880
880
|
readonly _tag: "Rejected";
|
|
881
|
+
} | {
|
|
882
|
+
readonly _tag: "Ambiguous";
|
|
881
883
|
} | {
|
|
882
884
|
readonly _tag: "Cancelled";
|
|
883
885
|
} | {
|
|
884
|
-
readonly _tag: "
|
|
886
|
+
readonly _tag: "Conflict";
|
|
885
887
|
} | {
|
|
886
888
|
readonly _tag: "Connected";
|
|
887
889
|
readonly grant: {
|
|
@@ -913,7 +915,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
913
915
|
readonly resources: readonly string[];
|
|
914
916
|
readonly retention: "access-and-refresh" | "access-only";
|
|
915
917
|
readonly maximumAccessLifetimeMillis: number;
|
|
916
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
918
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
917
919
|
readonly refreshAheadMillis: number;
|
|
918
920
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
919
921
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -926,22 +928,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
926
928
|
readonly metadata: {
|
|
927
929
|
readonly scopes: readonly string[];
|
|
928
930
|
readonly resources: readonly string[];
|
|
929
|
-
readonly accessExpiresAtMillis?: number
|
|
930
|
-
readonly refreshExpiresAtMillis?: number
|
|
931
|
+
readonly accessExpiresAtMillis?: number;
|
|
932
|
+
readonly refreshExpiresAtMillis?: number;
|
|
931
933
|
readonly useUntilMillis: number;
|
|
932
|
-
readonly refreshUseUntilMillis?: number
|
|
934
|
+
readonly refreshUseUntilMillis?: number;
|
|
933
935
|
readonly obtainedAtMillis: number;
|
|
934
936
|
readonly profile?: {
|
|
935
|
-
readonly displayName?: string
|
|
936
|
-
readonly handle?: string
|
|
937
|
-
readonly avatarUrl?: string
|
|
938
|
-
readonly profileUrl?: string
|
|
939
|
-
readonly email?: string
|
|
940
|
-
readonly emailVerified?: boolean
|
|
937
|
+
readonly displayName?: string;
|
|
938
|
+
readonly handle?: string;
|
|
939
|
+
readonly avatarUrl?: string;
|
|
940
|
+
readonly profileUrl?: string;
|
|
941
|
+
readonly email?: string;
|
|
942
|
+
readonly emailVerified?: boolean;
|
|
941
943
|
readonly providerData?: {
|
|
942
944
|
readonly [x: string]: import("effect/Schema").Json;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
+
};
|
|
946
|
+
};
|
|
945
947
|
};
|
|
946
948
|
};
|
|
947
949
|
readonly sealed: {
|
|
@@ -951,8 +953,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
951
953
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
952
954
|
};
|
|
953
955
|
};
|
|
954
|
-
} | {
|
|
955
|
-
readonly _tag: "Conflict";
|
|
956
956
|
} | {
|
|
957
957
|
readonly _tag: "Busy";
|
|
958
958
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -994,11 +994,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
994
994
|
readonly resources: readonly string[];
|
|
995
995
|
readonly retention: "access-and-refresh" | "access-only";
|
|
996
996
|
readonly maximumAccessLifetimeMillis: number;
|
|
997
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
997
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
998
998
|
readonly refreshAheadMillis: number;
|
|
999
999
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1000
1000
|
readonly revocation: "cohort" | "unsupported";
|
|
1001
|
-
}
|
|
1001
|
+
};
|
|
1002
1002
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1003
1003
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1004
1004
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1025,7 +1025,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1025
1025
|
readonly resources: readonly string[];
|
|
1026
1026
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1027
1027
|
readonly maximumAccessLifetimeMillis: number;
|
|
1028
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1028
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1029
1029
|
readonly refreshAheadMillis: number;
|
|
1030
1030
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1031
1031
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1059,13 +1059,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1059
1059
|
readonly resources: readonly string[];
|
|
1060
1060
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1061
1061
|
readonly maximumAccessLifetimeMillis: number;
|
|
1062
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1062
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1063
1063
|
readonly refreshAheadMillis: number;
|
|
1064
1064
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1065
1065
|
readonly revocation: "cohort" | "unsupported";
|
|
1066
1066
|
};
|
|
1067
1067
|
};
|
|
1068
|
-
}
|
|
1068
|
+
};
|
|
1069
1069
|
readonly maximumEvidenceAgeMillis: number;
|
|
1070
1070
|
};
|
|
1071
1071
|
readonly sealed: {
|
|
@@ -1107,11 +1107,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1107
1107
|
readonly resources: readonly string[];
|
|
1108
1108
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1109
1109
|
readonly maximumAccessLifetimeMillis: number;
|
|
1110
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1110
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1111
1111
|
readonly refreshAheadMillis: number;
|
|
1112
1112
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1113
1113
|
readonly revocation: "cohort" | "unsupported";
|
|
1114
|
-
}
|
|
1114
|
+
};
|
|
1115
1115
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1116
1116
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1117
1117
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1138,7 +1138,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1138
1138
|
readonly resources: readonly string[];
|
|
1139
1139
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1140
1140
|
readonly maximumAccessLifetimeMillis: number;
|
|
1141
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1141
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1142
1142
|
readonly refreshAheadMillis: number;
|
|
1143
1143
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1144
1144
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1172,13 +1172,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1172
1172
|
readonly resources: readonly string[];
|
|
1173
1173
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1174
1174
|
readonly maximumAccessLifetimeMillis: number;
|
|
1175
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1175
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1176
1176
|
readonly refreshAheadMillis: number;
|
|
1177
1177
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1178
1178
|
readonly revocation: "cohort" | "unsupported";
|
|
1179
1179
|
};
|
|
1180
1180
|
};
|
|
1181
|
-
}
|
|
1181
|
+
};
|
|
1182
1182
|
readonly maximumEvidenceAgeMillis: number;
|
|
1183
1183
|
};
|
|
1184
1184
|
readonly sealed: {
|
|
@@ -1225,11 +1225,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1225
1225
|
readonly resources: readonly string[];
|
|
1226
1226
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1227
1227
|
readonly maximumAccessLifetimeMillis: number;
|
|
1228
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1228
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1229
1229
|
readonly refreshAheadMillis: number;
|
|
1230
1230
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1231
1231
|
readonly revocation: "cohort" | "unsupported";
|
|
1232
|
-
}
|
|
1232
|
+
};
|
|
1233
1233
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1234
1234
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1235
1235
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1256,7 +1256,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1256
1256
|
readonly resources: readonly string[];
|
|
1257
1257
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1258
1258
|
readonly maximumAccessLifetimeMillis: number;
|
|
1259
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1259
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1260
1260
|
readonly refreshAheadMillis: number;
|
|
1261
1261
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1262
1262
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1290,13 +1290,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1290
1290
|
readonly resources: readonly string[];
|
|
1291
1291
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1292
1292
|
readonly maximumAccessLifetimeMillis: number;
|
|
1293
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1293
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1294
1294
|
readonly refreshAheadMillis: number;
|
|
1295
1295
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1296
1296
|
readonly revocation: "cohort" | "unsupported";
|
|
1297
1297
|
};
|
|
1298
1298
|
};
|
|
1299
|
-
}
|
|
1299
|
+
};
|
|
1300
1300
|
readonly maximumEvidenceAgeMillis: number;
|
|
1301
1301
|
};
|
|
1302
1302
|
readonly sealed: {
|
|
@@ -1338,10 +1338,12 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1338
1338
|
readonly nowMillis: number;
|
|
1339
1339
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1340
1340
|
readonly _tag: "Rejected";
|
|
1341
|
+
} | {
|
|
1342
|
+
readonly _tag: "Ambiguous";
|
|
1341
1343
|
} | {
|
|
1342
1344
|
readonly _tag: "Cancelled";
|
|
1343
1345
|
} | {
|
|
1344
|
-
readonly _tag: "
|
|
1346
|
+
readonly _tag: "Conflict";
|
|
1345
1347
|
} | {
|
|
1346
1348
|
readonly _tag: "Connected";
|
|
1347
1349
|
readonly grant: {
|
|
@@ -1373,7 +1375,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1373
1375
|
readonly resources: readonly string[];
|
|
1374
1376
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1375
1377
|
readonly maximumAccessLifetimeMillis: number;
|
|
1376
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1378
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1377
1379
|
readonly refreshAheadMillis: number;
|
|
1378
1380
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1379
1381
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1386,22 +1388,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1386
1388
|
readonly metadata: {
|
|
1387
1389
|
readonly scopes: readonly string[];
|
|
1388
1390
|
readonly resources: readonly string[];
|
|
1389
|
-
readonly accessExpiresAtMillis?: number
|
|
1390
|
-
readonly refreshExpiresAtMillis?: number
|
|
1391
|
+
readonly accessExpiresAtMillis?: number;
|
|
1392
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1391
1393
|
readonly useUntilMillis: number;
|
|
1392
|
-
readonly refreshUseUntilMillis?: number
|
|
1394
|
+
readonly refreshUseUntilMillis?: number;
|
|
1393
1395
|
readonly obtainedAtMillis: number;
|
|
1394
1396
|
readonly profile?: {
|
|
1395
|
-
readonly displayName?: string
|
|
1396
|
-
readonly handle?: string
|
|
1397
|
-
readonly avatarUrl?: string
|
|
1398
|
-
readonly profileUrl?: string
|
|
1399
|
-
readonly email?: string
|
|
1400
|
-
readonly emailVerified?: boolean
|
|
1397
|
+
readonly displayName?: string;
|
|
1398
|
+
readonly handle?: string;
|
|
1399
|
+
readonly avatarUrl?: string;
|
|
1400
|
+
readonly profileUrl?: string;
|
|
1401
|
+
readonly email?: string;
|
|
1402
|
+
readonly emailVerified?: boolean;
|
|
1401
1403
|
readonly providerData?: {
|
|
1402
1404
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1405
1407
|
};
|
|
1406
1408
|
};
|
|
1407
1409
|
readonly sealed: {
|
|
@@ -1411,8 +1413,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1411
1413
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1412
1414
|
};
|
|
1413
1415
|
};
|
|
1414
|
-
} | {
|
|
1415
|
-
readonly _tag: "Conflict";
|
|
1416
1416
|
} | {
|
|
1417
1417
|
readonly _tag: "Busy";
|
|
1418
1418
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1428,22 +1428,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1428
1428
|
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1429
1429
|
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
1430
1430
|
readonly scopes: readonly string[];
|
|
1431
|
-
readonly accessExpiresAtMillis?: number
|
|
1431
|
+
readonly accessExpiresAtMillis?: number;
|
|
1432
1432
|
readonly useUntilMillis: number;
|
|
1433
1433
|
readonly profile?: {
|
|
1434
|
-
readonly displayName?: string
|
|
1435
|
-
readonly handle?: string
|
|
1436
|
-
readonly avatarUrl?: string
|
|
1437
|
-
readonly profileUrl?: string
|
|
1438
|
-
readonly email?: string
|
|
1439
|
-
readonly emailVerified?: boolean
|
|
1434
|
+
readonly displayName?: string;
|
|
1435
|
+
readonly handle?: string;
|
|
1436
|
+
readonly avatarUrl?: string;
|
|
1437
|
+
readonly profileUrl?: string;
|
|
1438
|
+
readonly email?: string;
|
|
1439
|
+
readonly emailVerified?: boolean;
|
|
1440
1440
|
readonly providerData?: {
|
|
1441
1441
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1442
|
+
};
|
|
1443
|
+
};
|
|
1444
1444
|
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1445
1445
|
}[];
|
|
1446
|
-
readonly cursor?: string
|
|
1446
|
+
readonly cursor?: string;
|
|
1447
1447
|
}, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1448
1448
|
readonly inspectDisconnect: (input: {
|
|
1449
1449
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -1486,7 +1486,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1486
1486
|
readonly resources: readonly string[];
|
|
1487
1487
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1488
1488
|
readonly maximumAccessLifetimeMillis: number;
|
|
1489
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1489
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1490
1490
|
readonly refreshAheadMillis: number;
|
|
1491
1491
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1492
1492
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1499,22 +1499,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1499
1499
|
readonly metadata: {
|
|
1500
1500
|
readonly scopes: readonly string[];
|
|
1501
1501
|
readonly resources: readonly string[];
|
|
1502
|
-
readonly accessExpiresAtMillis?: number
|
|
1503
|
-
readonly refreshExpiresAtMillis?: number
|
|
1502
|
+
readonly accessExpiresAtMillis?: number;
|
|
1503
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1504
1504
|
readonly useUntilMillis: number;
|
|
1505
|
-
readonly refreshUseUntilMillis?: number
|
|
1505
|
+
readonly refreshUseUntilMillis?: number;
|
|
1506
1506
|
readonly obtainedAtMillis: number;
|
|
1507
1507
|
readonly profile?: {
|
|
1508
|
-
readonly displayName?: string
|
|
1509
|
-
readonly handle?: string
|
|
1510
|
-
readonly avatarUrl?: string
|
|
1511
|
-
readonly profileUrl?: string
|
|
1512
|
-
readonly email?: string
|
|
1513
|
-
readonly emailVerified?: boolean
|
|
1508
|
+
readonly displayName?: string;
|
|
1509
|
+
readonly handle?: string;
|
|
1510
|
+
readonly avatarUrl?: string;
|
|
1511
|
+
readonly profileUrl?: string;
|
|
1512
|
+
readonly email?: string;
|
|
1513
|
+
readonly emailVerified?: boolean;
|
|
1514
1514
|
readonly providerData?: {
|
|
1515
1515
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
1518
|
};
|
|
1519
1519
|
};
|
|
1520
1520
|
readonly sealed?: {
|
|
@@ -1522,7 +1522,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1522
1522
|
readonly keyId: string;
|
|
1523
1523
|
readonly nonce: string;
|
|
1524
1524
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1525
|
-
}
|
|
1525
|
+
};
|
|
1526
1526
|
};
|
|
1527
1527
|
readonly revision: {
|
|
1528
1528
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
@@ -1599,7 +1599,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1599
1599
|
readonly resources: readonly string[];
|
|
1600
1600
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1601
1601
|
readonly maximumAccessLifetimeMillis: number;
|
|
1602
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1602
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1603
1603
|
readonly refreshAheadMillis: number;
|
|
1604
1604
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1605
1605
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1612,22 +1612,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1612
1612
|
readonly metadata: {
|
|
1613
1613
|
readonly scopes: readonly string[];
|
|
1614
1614
|
readonly resources: readonly string[];
|
|
1615
|
-
readonly accessExpiresAtMillis?: number
|
|
1616
|
-
readonly refreshExpiresAtMillis?: number
|
|
1615
|
+
readonly accessExpiresAtMillis?: number;
|
|
1616
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1617
1617
|
readonly useUntilMillis: number;
|
|
1618
|
-
readonly refreshUseUntilMillis?: number
|
|
1618
|
+
readonly refreshUseUntilMillis?: number;
|
|
1619
1619
|
readonly obtainedAtMillis: number;
|
|
1620
1620
|
readonly profile?: {
|
|
1621
|
-
readonly displayName?: string
|
|
1622
|
-
readonly handle?: string
|
|
1623
|
-
readonly avatarUrl?: string
|
|
1624
|
-
readonly profileUrl?: string
|
|
1625
|
-
readonly email?: string
|
|
1626
|
-
readonly emailVerified?: boolean
|
|
1621
|
+
readonly displayName?: string;
|
|
1622
|
+
readonly handle?: string;
|
|
1623
|
+
readonly avatarUrl?: string;
|
|
1624
|
+
readonly profileUrl?: string;
|
|
1625
|
+
readonly email?: string;
|
|
1626
|
+
readonly emailVerified?: boolean;
|
|
1627
1627
|
readonly providerData?: {
|
|
1628
1628
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
1631
|
};
|
|
1632
1632
|
};
|
|
1633
1633
|
readonly sealed: {
|
|
@@ -1684,7 +1684,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1684
1684
|
readonly resources: readonly string[];
|
|
1685
1685
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1686
1686
|
readonly maximumAccessLifetimeMillis: number;
|
|
1687
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1687
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1688
1688
|
readonly refreshAheadMillis: number;
|
|
1689
1689
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1690
1690
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1697,22 +1697,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1697
1697
|
readonly metadata: {
|
|
1698
1698
|
readonly scopes: readonly string[];
|
|
1699
1699
|
readonly resources: readonly string[];
|
|
1700
|
-
readonly accessExpiresAtMillis?: number
|
|
1701
|
-
readonly refreshExpiresAtMillis?: number
|
|
1700
|
+
readonly accessExpiresAtMillis?: number;
|
|
1701
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1702
1702
|
readonly useUntilMillis: number;
|
|
1703
|
-
readonly refreshUseUntilMillis?: number
|
|
1703
|
+
readonly refreshUseUntilMillis?: number;
|
|
1704
1704
|
readonly obtainedAtMillis: number;
|
|
1705
1705
|
readonly profile?: {
|
|
1706
|
-
readonly displayName?: string
|
|
1707
|
-
readonly handle?: string
|
|
1708
|
-
readonly avatarUrl?: string
|
|
1709
|
-
readonly profileUrl?: string
|
|
1710
|
-
readonly email?: string
|
|
1711
|
-
readonly emailVerified?: boolean
|
|
1706
|
+
readonly displayName?: string;
|
|
1707
|
+
readonly handle?: string;
|
|
1708
|
+
readonly avatarUrl?: string;
|
|
1709
|
+
readonly profileUrl?: string;
|
|
1710
|
+
readonly email?: string;
|
|
1711
|
+
readonly emailVerified?: boolean;
|
|
1712
1712
|
readonly providerData?: {
|
|
1713
1713
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
1716
|
};
|
|
1717
1717
|
};
|
|
1718
1718
|
readonly sealed: {
|
|
@@ -1768,7 +1768,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1768
1768
|
readonly resources: readonly string[];
|
|
1769
1769
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1770
1770
|
readonly maximumAccessLifetimeMillis: number;
|
|
1771
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1771
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1772
1772
|
readonly refreshAheadMillis: number;
|
|
1773
1773
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1774
1774
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1781,22 +1781,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1781
1781
|
readonly metadata: {
|
|
1782
1782
|
readonly scopes: readonly string[];
|
|
1783
1783
|
readonly resources: readonly string[];
|
|
1784
|
-
readonly accessExpiresAtMillis?: number
|
|
1785
|
-
readonly refreshExpiresAtMillis?: number
|
|
1784
|
+
readonly accessExpiresAtMillis?: number;
|
|
1785
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1786
1786
|
readonly useUntilMillis: number;
|
|
1787
|
-
readonly refreshUseUntilMillis?: number
|
|
1787
|
+
readonly refreshUseUntilMillis?: number;
|
|
1788
1788
|
readonly obtainedAtMillis: number;
|
|
1789
1789
|
readonly profile?: {
|
|
1790
|
-
readonly displayName?: string
|
|
1791
|
-
readonly handle?: string
|
|
1792
|
-
readonly avatarUrl?: string
|
|
1793
|
-
readonly profileUrl?: string
|
|
1794
|
-
readonly email?: string
|
|
1795
|
-
readonly emailVerified?: boolean
|
|
1790
|
+
readonly displayName?: string;
|
|
1791
|
+
readonly handle?: string;
|
|
1792
|
+
readonly avatarUrl?: string;
|
|
1793
|
+
readonly profileUrl?: string;
|
|
1794
|
+
readonly email?: string;
|
|
1795
|
+
readonly emailVerified?: boolean;
|
|
1796
1796
|
readonly providerData?: {
|
|
1797
1797
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1798
|
+
};
|
|
1799
|
+
};
|
|
1800
1800
|
};
|
|
1801
1801
|
};
|
|
1802
1802
|
readonly sealed: {
|
|
@@ -1887,7 +1887,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1887
1887
|
readonly resources: readonly string[];
|
|
1888
1888
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1889
1889
|
readonly maximumAccessLifetimeMillis: number;
|
|
1890
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1890
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1891
1891
|
readonly refreshAheadMillis: number;
|
|
1892
1892
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1893
1893
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1900,22 +1900,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1900
1900
|
readonly metadata: {
|
|
1901
1901
|
readonly scopes: readonly string[];
|
|
1902
1902
|
readonly resources: readonly string[];
|
|
1903
|
-
readonly accessExpiresAtMillis?: number
|
|
1904
|
-
readonly refreshExpiresAtMillis?: number
|
|
1903
|
+
readonly accessExpiresAtMillis?: number;
|
|
1904
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1905
1905
|
readonly useUntilMillis: number;
|
|
1906
|
-
readonly refreshUseUntilMillis?: number
|
|
1906
|
+
readonly refreshUseUntilMillis?: number;
|
|
1907
1907
|
readonly obtainedAtMillis: number;
|
|
1908
1908
|
readonly profile?: {
|
|
1909
|
-
readonly displayName?: string
|
|
1910
|
-
readonly handle?: string
|
|
1911
|
-
readonly avatarUrl?: string
|
|
1912
|
-
readonly profileUrl?: string
|
|
1913
|
-
readonly email?: string
|
|
1914
|
-
readonly emailVerified?: boolean
|
|
1909
|
+
readonly displayName?: string;
|
|
1910
|
+
readonly handle?: string;
|
|
1911
|
+
readonly avatarUrl?: string;
|
|
1912
|
+
readonly profileUrl?: string;
|
|
1913
|
+
readonly email?: string;
|
|
1914
|
+
readonly emailVerified?: boolean;
|
|
1915
1915
|
readonly providerData?: {
|
|
1916
1916
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1917
|
+
};
|
|
1918
|
+
};
|
|
1919
1919
|
};
|
|
1920
1920
|
};
|
|
1921
1921
|
};
|