Skip to content

Commit

Permalink
Fix:cherrypick-js (yojo-art#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net authored Aug 12, 2024
1 parent fad299c commit 7002f9b
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cherrypick-js/etc/cherrypick-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ type AntennasUpdateRequest = operations['antennas___update']['requestBody']['con
// @public (undocumented)
type AntennasUpdateResponse = operations['antennas___update']['responses']['200']['content']['application/json'];

// @public (undocumented)
type ApFetchOutboxRequest = operations['ap___fetch-outbox']['requestBody']['content']['application/json'];

// @public (undocumented)
type ApGetRequest = operations['ap___get']['requestBody']['content']['application/json'];

Expand Down Expand Up @@ -1331,6 +1334,7 @@ declare namespace entities {
ApGetResponse,
ApShowRequest,
ApShowResponse,
ApFetchOutboxRequest,
AppCreateRequest,
AppCreateResponse,
AppShowRequest,
Expand Down
11 changes: 11 additions & 0 deletions packages/cherrypick-js/src/autogen/apiClientJSDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,17 @@ declare module '../api.js' {
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;

/**
* リモートユーザの投稿を取得します
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
request<E extends 'ap/fetch-outbox', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;

/**
* No description provided.
*
Expand Down
3 changes: 3 additions & 0 deletions packages/cherrypick-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ import type {
ApGetResponse,
ApShowRequest,
ApShowResponse,
ApFetchOutboxRequest,
AppCreateRequest,
AppCreateResponse,
AppShowRequest,
Expand Down Expand Up @@ -709,6 +710,7 @@ export type Endpoints = {
'antennas/update': { req: AntennasUpdateRequest; res: AntennasUpdateResponse };
'ap/get': { req: ApGetRequest; res: ApGetResponse };
'ap/show': { req: ApShowRequest; res: ApShowResponse };
'ap/fetch-outbox': { req: ApFetchOutboxRequest; res: EmptyResponse };
'app/create': { req: AppCreateRequest; res: AppCreateResponse };
'app/show': { req: AppShowRequest; res: AppShowResponse };
'auth/accept': { req: AuthAcceptRequest; res: EmptyResponse };
Expand Down Expand Up @@ -1115,6 +1117,7 @@ export const endpointReqTypes: Record<keyof Endpoints, 'application/json' | 'mul
'antennas/update': 'application/json',
'ap/get': 'application/json',
'ap/show': 'application/json',
'ap/fetch-outbox': 'application/json',
'app/create': 'application/json',
'app/show': 'application/json',
'auth/accept': 'application/json',
Expand Down
1 change: 1 addition & 0 deletions packages/cherrypick-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export type ApGetRequest = operations['ap___get']['requestBody']['content']['app
export type ApGetResponse = operations['ap___get']['responses']['200']['content']['application/json'];
export type ApShowRequest = operations['ap___show']['requestBody']['content']['application/json'];
export type ApShowResponse = operations['ap___show']['responses']['200']['content']['application/json'];
export type ApFetchOutboxRequest = operations['ap___fetch-outbox']['requestBody']['content']['application/json'];
export type AppCreateRequest = operations['app___create']['requestBody']['content']['application/json'];
export type AppCreateResponse = operations['app___create']['responses']['200']['content']['application/json'];
export type AppShowRequest = operations['app___show']['requestBody']['content']['application/json'];
Expand Down
80 changes: 80 additions & 0 deletions packages/cherrypick-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,15 @@ export type paths = {
*/
post: operations['ap___show'];
};
'/ap/fetch-outbox': {
/**
* ap/fetch-outbox
* @description リモートユーザの投稿を取得します
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
post: operations['ap___fetch-outbox'];
};
'/app/create': {
/**
* app/create
Expand Down Expand Up @@ -11759,6 +11768,77 @@ export type operations = {
};
};
};
/**
* ap/fetch-outbox
* @description リモートユーザの投稿を取得します
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
'ap___fetch-outbox': {
requestBody: {
content: {
'application/json': {
/**
* Format: misskey:id
* @description Outbox取得対象ユーザのローカルのユーザID
*/
userId: string;
/**
* @description Outboxの取得が終わるまで待ちます
* @default false
*/
wait?: boolean;
/**
* @description Outbox取得の際にRenoteも対象にします
* @default false
*/
includeAnnounce?: boolean;
};
};
};
responses: {
/** @description OK (without any results) */
204: {
content: never;
};
/** @description Client error */
400: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Authentication error */
401: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Forbidden error */
403: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description I'm Ai */
418: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description To many requests */
429: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Internal server error */
500: {
content: {
'application/json': components['schemas']['Error'];
};
};
};
};
/**
* app/create
* @description No description provided.
Expand Down

0 comments on commit 7002f9b

Please sign in to comment.