@authhero/adapter-interfaces 0.29.1 → 0.31.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.
|
@@ -4266,10 +4266,11 @@ export interface ListCodesResponse extends Totals {
|
|
|
4266
4266
|
codes: Code[];
|
|
4267
4267
|
}
|
|
4268
4268
|
export interface CodesAdapter {
|
|
4269
|
-
create: (tenant_id: string,
|
|
4269
|
+
create: (tenant_id: string, code: CodeInsert) => Promise<Code>;
|
|
4270
4270
|
get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
|
|
4271
4271
|
list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
|
|
4272
|
-
|
|
4272
|
+
used: (tenant_id: string, code_id: string) => Promise<boolean>;
|
|
4273
|
+
remove: (tenant_id: string, code_id: string) => Promise<boolean>;
|
|
4273
4274
|
}
|
|
4274
4275
|
export interface PasswordsAdapter {
|
|
4275
4276
|
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|