@authhero/kysely-adapter 11.12.0 → 11.13.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.
- package/dist/kysely-adapter.cjs +16 -16
- package/dist/kysely-adapter.d.ts +41 -0
- package/dist/kysely-adapter.mjs +2384 -2130
- package/dist/types/migrate/migrations/2026-07-04T12:00:00_tenant_operations.d.ts +9 -0
- package/dist/types/migrate/migrations/index.d.ts +2 -0
- package/dist/types/src/db.d.ts +41 -0
- package/dist/types/src/rollouts/index.d.ts +4 -0
- package/dist/types/src/tenantOperationEvents/index.d.ts +4 -0
- package/dist/types/src/tenantOperations/index.d.ts +4 -0
- package/dist/types/src/utils/monotonic-id.d.ts +8 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
121
121
|
family_name: z.ZodOptional<z.ZodString>;
|
|
122
122
|
}, z.core.$catchall<z.ZodAny>>>;
|
|
123
123
|
}, z.core.$strip>>>;
|
|
124
|
+
login_count: z.ZodOptional<z.ZodNumber>;
|
|
124
125
|
email_verified: z.ZodNumber;
|
|
125
126
|
phone_verified: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
126
127
|
is_social: z.ZodNumber;
|
|
@@ -938,6 +939,46 @@ interface Database {
|
|
|
938
939
|
created_at: string;
|
|
939
940
|
updated_at: string;
|
|
940
941
|
};
|
|
942
|
+
tenant_operations: {
|
|
943
|
+
id: string;
|
|
944
|
+
tenant_id: string | null;
|
|
945
|
+
rollout_id: string | null;
|
|
946
|
+
kind: string;
|
|
947
|
+
status: string;
|
|
948
|
+
current_step: string | null;
|
|
949
|
+
engine: string;
|
|
950
|
+
engine_instance_id: string | null;
|
|
951
|
+
target_worker_version: string | null;
|
|
952
|
+
target_database_version: string | null;
|
|
953
|
+
error: string | null;
|
|
954
|
+
initiated_by: string | null;
|
|
955
|
+
created_at: string;
|
|
956
|
+
updated_at: string;
|
|
957
|
+
finished_at: string | null;
|
|
958
|
+
};
|
|
959
|
+
tenant_operation_events: {
|
|
960
|
+
id: string;
|
|
961
|
+
operation_id: string;
|
|
962
|
+
step: string;
|
|
963
|
+
outcome: string;
|
|
964
|
+
detail: string | null;
|
|
965
|
+
attempt: number;
|
|
966
|
+
created_at: string;
|
|
967
|
+
};
|
|
968
|
+
rollouts: {
|
|
969
|
+
id: string;
|
|
970
|
+
kind: string;
|
|
971
|
+
status: string;
|
|
972
|
+
target_worker_version: string | null;
|
|
973
|
+
target_database_version: string | null;
|
|
974
|
+
wave_size: number;
|
|
975
|
+
canary_tenant_ids: string | null;
|
|
976
|
+
filter: string | null;
|
|
977
|
+
initiated_by: string | null;
|
|
978
|
+
created_at: string;
|
|
979
|
+
updated_at: string;
|
|
980
|
+
finished_at: string | null;
|
|
981
|
+
};
|
|
941
982
|
}
|
|
942
983
|
|
|
943
984
|
declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
|