build misskey-js with types
This commit is contained in:
parent
8e4914ddb7
commit
cd6cf3b9dc
|
@ -1679,6 +1679,7 @@ export type Endpoints = Overwrite<Endpoints_2, {
|
||||||
'signin-flow': {
|
'signin-flow': {
|
||||||
req: SigninFlowRequest;
|
req: SigninFlowRequest;
|
||||||
res: SigninFlowResponse;
|
res: SigninFlowResponse;
|
||||||
|
errors: SigninFlowErrors;
|
||||||
};
|
};
|
||||||
'signin-with-passkey': {
|
'signin-with-passkey': {
|
||||||
req: SigninWithPasskeyRequest;
|
req: SigninWithPasskeyRequest;
|
||||||
|
@ -1695,12 +1696,14 @@ export type Endpoints = Overwrite<Endpoints_2, {
|
||||||
$default: SigninWithPasskeyInitResponse;
|
$default: SigninWithPasskeyInitResponse;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
errors: SigninWithPasskeyErrors;
|
||||||
};
|
};
|
||||||
'admin/roles/create': {
|
'admin/roles/create': {
|
||||||
req: Overwrite<AdminRolesCreateRequest, {
|
req: Overwrite<AdminRolesCreateRequest, {
|
||||||
policies: PartialRolePolicyOverride;
|
policies: PartialRolePolicyOverride;
|
||||||
}>;
|
}>;
|
||||||
res: AdminRolesCreateResponse;
|
res: AdminRolesCreateResponse;
|
||||||
|
errors: AdminRolesCreateErrors;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
@ -1732,10 +1735,11 @@ declare namespace entities {
|
||||||
SignupErrors,
|
SignupErrors,
|
||||||
SigninFlowRequest,
|
SigninFlowRequest,
|
||||||
SigninFlowResponse,
|
SigninFlowResponse,
|
||||||
SigninErrors,
|
SigninFlowErrors,
|
||||||
SigninWithPasskeyRequest,
|
SigninWithPasskeyRequest,
|
||||||
SigninWithPasskeyInitResponse,
|
SigninWithPasskeyInitResponse,
|
||||||
SigninWithPasskeyResponse,
|
SigninWithPasskeyResponse,
|
||||||
|
SigninWithPasskeyErrors,
|
||||||
PartialRolePolicyOverride,
|
PartialRolePolicyOverride,
|
||||||
EmptyRequest,
|
EmptyRequest,
|
||||||
EmptyResponse,
|
EmptyResponse,
|
||||||
|
@ -3515,7 +3519,7 @@ type IRevokeTokenErrors = EndpointsErrors['i___revoke-token'][keyof EndpointsErr
|
||||||
type IRevokeTokenRequest = operations['i___revoke-token']['requestBody']['content']['application/json'];
|
type IRevokeTokenRequest = operations['i___revoke-token']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
function isAPIError(reason: any): reason is Error & Record<typeof MK_API_ERROR, unknown>;
|
function isAPIError(reason: Record<PropertyKey, unknown>): reason is APIError;
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type ISigninHistoryErrors = EndpointsErrors['i___signin-history'][keyof EndpointsErrors['i___signin-history']];
|
type ISigninHistoryErrors = EndpointsErrors['i___signin-history'][keyof EndpointsErrors['i___signin-history']];
|
||||||
|
@ -4484,8 +4488,10 @@ type ServerStatsLog = ServerStats[];
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type Signin = components['schemas']['Signin'];
|
type Signin = components['schemas']['Signin'];
|
||||||
|
|
||||||
|
// Warning: (ae-forgotten-export) The symbol "WebAuthnServiceErrors" needs to be exported by the entry point index.d.ts
|
||||||
|
//
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type SigninErrors = {
|
type SigninFlowErrors = {
|
||||||
message: 'Too many failed attempts to sign in. Try again later.';
|
message: 'Too many failed attempts to sign in. Try again later.';
|
||||||
code: 'TOO_MANY_AUTHENTICATION_FAILURES';
|
code: 'TOO_MANY_AUTHENTICATION_FAILURES';
|
||||||
id: '22d05606-fbcf-421a-a2db-b32610dcfd1b';
|
id: '22d05606-fbcf-421a-a2db-b32610dcfd1b';
|
||||||
|
@ -4501,7 +4507,7 @@ type SigninErrors = {
|
||||||
id: 'cdf1235b-ac71-46d4-a3a6-84ccce48df6f';
|
id: 'cdf1235b-ac71-46d4-a3a6-84ccce48df6f';
|
||||||
} | {
|
} | {
|
||||||
id: '93b86c4b-72f9-40eb-9815-798928603d1e';
|
id: '93b86c4b-72f9-40eb-9815-798928603d1e';
|
||||||
};
|
} | WebAuthnServiceErrors;
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type SigninFlowRequest = {
|
type SigninFlowRequest = {
|
||||||
|
@ -4529,6 +4535,25 @@ type SigninFlowResponse = {
|
||||||
authRequest: PublicKeyCredentialRequestOptionsJSON;
|
authRequest: PublicKeyCredentialRequestOptionsJSON;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
type SigninWithPasskeyErrors = {
|
||||||
|
message: 'Too many failed attempts to sign in. Try again later.';
|
||||||
|
code: 'TOO_MANY_AUTHENTICATION_FAILURES';
|
||||||
|
id: '22d05606-fbcf-421a-a2db-b32610dcfd1b';
|
||||||
|
} | {
|
||||||
|
id: '4e30e80c-e338-45a0-8c8f-44455efa3b76';
|
||||||
|
} | {
|
||||||
|
id: '1658cc2e-4495-461f-aee4-d403cdf073c1';
|
||||||
|
} | {
|
||||||
|
id: '932c904e-9460-45b7-9ce6-7ed33be7eb2c';
|
||||||
|
} | {
|
||||||
|
id: '652f899f-66d4-490e-993e-6606c8ec04c3';
|
||||||
|
} | {
|
||||||
|
id: 'e03a5f46-d309-4865-9b69-56282d94e1eb';
|
||||||
|
} | {
|
||||||
|
id: '2d84773e-f7b7-4d0b-8f72-bb69b584c912';
|
||||||
|
} | WebAuthnServiceErrors;
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type SigninWithPasskeyInitResponse = {
|
type SigninWithPasskeyInitResponse = {
|
||||||
option: PublicKeyCredentialRequestOptionsJSON;
|
option: PublicKeyCredentialRequestOptionsJSON;
|
||||||
|
|
|
@ -1966,6 +1966,7 @@ export type EndpointsErrors = {
|
||||||
'URI_NULL': IdentifiableError['bf326f31-d430-4f97-9933-5d61e4d48a23'],
|
'URI_NULL': IdentifiableError['bf326f31-d430-4f97-9933-5d61e4d48a23'],
|
||||||
'FORBIDDEN_TO_SET_YOURSELF': IdentifiableError['25c90186-4ab0-49c8-9bba-a1fa6c202ba4'],
|
'FORBIDDEN_TO_SET_YOURSELF': IdentifiableError['25c90186-4ab0-49c8-9bba-a1fa6c202ba4'],
|
||||||
'RESTRICTED_BY_ROLE': IdentifiableError['8feff0ba-5ab5-585b-31f4-4df816663fad'],
|
'RESTRICTED_BY_ROLE': IdentifiableError['8feff0ba-5ab5-585b-31f4-4df816663fad'],
|
||||||
|
'YOUR_NAME_CONTAINS_PROHIBITED_WORDS': IdentifiableError['0b3f9f6a-2f4d-4b1f-9fb4-49d3a2fd7191'],
|
||||||
'INVALID_PARAM': IdentifiableError['3d81ceae-475f-4600-b2a8-2bc116157532'],
|
'INVALID_PARAM': IdentifiableError['3d81ceae-475f-4600-b2a8-2bc116157532'],
|
||||||
'CREDENTIAL_REQUIRED': IdentifiableError['1384574d-a912-4b81-8601-c7b1c4085df1'],
|
'CREDENTIAL_REQUIRED': IdentifiableError['1384574d-a912-4b81-8601-c7b1c4085df1'],
|
||||||
'AUTHENTICATION_FAILED': IdentifiableError['b0a7f5f8-dc2f-4171-b91f-de88ad238e14'],
|
'AUTHENTICATION_FAILED': IdentifiableError['b0a7f5f8-dc2f-4171-b91f-de88ad238e14'],
|
||||||
|
@ -3285,6 +3286,7 @@ export type IdentifiableError = {
|
||||||
'bf326f31-d430-4f97-9933-5d61e4d48a23': {'message':'User ActivityPup URI is null.', 'code':'URI_NULL', 'id':'bf326f31-d430-4f97-9933-5d61e4d48a23', [x: string]: any },
|
'bf326f31-d430-4f97-9933-5d61e4d48a23': {'message':'User ActivityPup URI is null.', 'code':'URI_NULL', 'id':'bf326f31-d430-4f97-9933-5d61e4d48a23', [x: string]: any },
|
||||||
'25c90186-4ab0-49c8-9bba-a1fa6c202ba4': {'message':'You can\'t set yourself as your own alias.', 'code':'FORBIDDEN_TO_SET_YOURSELF', 'id':'25c90186-4ab0-49c8-9bba-a1fa6c202ba4', [x: string]: any },
|
'25c90186-4ab0-49c8-9bba-a1fa6c202ba4': {'message':'You can\'t set yourself as your own alias.', 'code':'FORBIDDEN_TO_SET_YOURSELF', 'id':'25c90186-4ab0-49c8-9bba-a1fa6c202ba4', [x: string]: any },
|
||||||
'8feff0ba-5ab5-585b-31f4-4df816663fad': {'message':'This feature is restricted by your role.', 'code':'RESTRICTED_BY_ROLE', 'id':'8feff0ba-5ab5-585b-31f4-4df816663fad', [x: string]: any },
|
'8feff0ba-5ab5-585b-31f4-4df816663fad': {'message':'This feature is restricted by your role.', 'code':'RESTRICTED_BY_ROLE', 'id':'8feff0ba-5ab5-585b-31f4-4df816663fad', [x: string]: any },
|
||||||
|
'0b3f9f6a-2f4d-4b1f-9fb4-49d3a2fd7191': {'message':'Your new name contains prohibited words.', 'code':'YOUR_NAME_CONTAINS_PROHIBITED_WORDS', 'id':'0b3f9f6a-2f4d-4b1f-9fb4-49d3a2fd7191', 'httpStatusCode':422, [x: string]: any },
|
||||||
'b5c90186-4ab0-49c8-9bba-a1f766282ba4': {'message':'Destination account doesn\'t have proper \'Known As\' alias, or has already moved.', 'code':'DESTINATION_ACCOUNT_FORBIDS', 'id':'b5c90186-4ab0-49c8-9bba-a1f766282ba4', [x: string]: any },
|
'b5c90186-4ab0-49c8-9bba-a1f766282ba4': {'message':'Destination account doesn\'t have proper \'Known As\' alias, or has already moved.', 'code':'DESTINATION_ACCOUNT_FORBIDS', 'id':'b5c90186-4ab0-49c8-9bba-a1f766282ba4', [x: string]: any },
|
||||||
'4362e8dc-731f-4ad8-a694-be2a88922a24': {'message':'The root can\'t migrate.', 'code':'NOT_ROOT_FORBIDDEN', 'id':'4362e8dc-731f-4ad8-a694-be2a88922a24', [x: string]: any },
|
'4362e8dc-731f-4ad8-a694-be2a88922a24': {'message':'The root can\'t migrate.', 'code':'NOT_ROOT_FORBIDDEN', 'id':'4362e8dc-731f-4ad8-a694-be2a88922a24', [x: string]: any },
|
||||||
'95ba11b9-90e8-43a5-ba16-7acc1ab32e71': {'message':'Local User ActivityPup URI is null.', 'code':'URI_NULL', 'id':'95ba11b9-90e8-43a5-ba16-7acc1ab32e71', [x: string]: any },
|
'95ba11b9-90e8-43a5-ba16-7acc1ab32e71': {'message':'Local User ActivityPup URI is null.', 'code':'URI_NULL', 'id':'95ba11b9-90e8-43a5-ba16-7acc1ab32e71', [x: string]: any },
|
||||||
|
|
Loading…
Reference in New Issue