@leaflow/sdk 0.14.2 → 0.16.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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export {};
@@ -0,0 +1,60 @@
1
+ export type { paths, components, operations, webhooks } from "./schema.js";
2
+ import type { operations } from "./schema.js";
3
+ /** `GET /api/v1/notices` 成功时的响应体。 */
4
+ export type ListNoticesResult = operations["list-notices"]["responses"][200]["content"]["application/json"];
5
+ /** `GET /api/v1/tickets` 成功时的响应体。 */
6
+ export type ListTicketsResult = operations["list-tickets"]["responses"][200]["content"]["application/json"];
7
+ /** `GET /api/v1/tickets` 的查询参数。 */
8
+ export type ListTicketsQuery = operations["list-tickets"]["parameters"]["query"];
9
+ /** `POST /api/v1/tickets` 成功时的响应体。 */
10
+ export type CreateTicketResult = operations["create-ticket"]["responses"][201]["content"]["application/json"];
11
+ /** `POST /api/v1/tickets` 的请求体。 */
12
+ export type CreateTicketBody = NonNullable<operations["create-ticket"]["requestBody"]>["content"]["application/json"];
13
+ /** `GET /api/v1/tickets/{ticketId}` 成功时的响应体。 */
14
+ export type GetTicketResult = operations["get-ticket"]["responses"][200]["content"]["application/json"];
15
+ /** `POST /api/v1/tickets/{ticketId}/close` 成功时的响应体。 */
16
+ export type CloseTicketResult = operations["close-ticket"]["responses"][200]["content"]["application/json"];
17
+ /** `GET /api/v1/tickets/{ticketId}/messages` 成功时的响应体。 */
18
+ export type ListTicketMessagesResult = operations["list-ticket-messages"]["responses"][200]["content"]["application/json"];
19
+ /** `GET /api/v1/tickets/{ticketId}/messages` 的查询参数。 */
20
+ export type ListTicketMessagesQuery = operations["list-ticket-messages"]["parameters"]["query"];
21
+ /** `POST /api/v1/tickets/{ticketId}/messages` 成功时的响应体。 */
22
+ export type CreateTicketMessageResult = operations["create-ticket-message"]["responses"][201]["content"]["application/json"];
23
+ /** `POST /api/v1/tickets/{ticketId}/messages` 的请求体。 */
24
+ export type CreateTicketMessageBody = NonNullable<operations["create-ticket-message"]["requestBody"]>["content"]["application/json"];
25
+ /** `GET /api/v1/tickets/{ticketId}/satisfaction` 成功时的响应体。 */
26
+ export type GetTicketSatisfactionResult = operations["get-ticket-satisfaction"]["responses"][200]["content"]["application/json"];
27
+ /** `POST /api/v1/tickets/{ticketId}/satisfaction` 成功时的响应体。 */
28
+ export type CreateTicketSatisfactionResult = operations["create-ticket-satisfaction"]["responses"][201]["content"]["application/json"];
29
+ /** `POST /api/v1/tickets/{ticketId}/satisfaction` 的请求体。 */
30
+ export type CreateTicketSatisfactionBody = NonNullable<operations["create-ticket-satisfaction"]["requestBody"]>["content"]["application/json"];
31
+ /** `GET /api/v1/ticket-categories` 成功时的响应体。 */
32
+ export type ListTicketCategoriesResult = operations["list-ticket-categories"]["responses"][200]["content"]["application/json"];
33
+ /** `GET /api/v1/ticket-categories` 的查询参数。 */
34
+ export type ListTicketCategoriesQuery = operations["list-ticket-categories"]["parameters"]["query"];
35
+ /** `POST /api/v1/attachments` 成功时的响应体。 */
36
+ export type UploadAttachmentResult = operations["upload-attachment"]["responses"][201]["content"]["application/json"];
37
+ /** `POST /api/v1/attachments` 的查询参数。 */
38
+ export type UploadAttachmentQuery = operations["upload-attachment"]["parameters"]["query"];
39
+ /** `GET /api/v1/attachments/{attachmentId}/download-url` 成功时的响应体。 */
40
+ export type DescribeAttachmentDownloadResult = operations["describe-attachment-download"]["responses"][200]["content"]["application/json"];
41
+ /** `GET /api/v1/announcements` 成功时的响应体。 */
42
+ export type ListAnnouncementsResult = operations["list-announcements"]["responses"][200]["content"]["application/json"];
43
+ /** `GET /api/v1/announcements` 的查询参数。 */
44
+ export type ListAnnouncementsQuery = operations["list-announcements"]["parameters"]["query"];
45
+ /** `GET /api/v1/announcements/unread-count` 成功时的响应体。 */
46
+ export type CountUnreadAnnouncementsResult = operations["count-unread-announcements"]["responses"][200]["content"]["application/json"];
47
+ /** `GET /api/v1/announcements/{announcementId}` 成功时的响应体。 */
48
+ export type GetAnnouncementResult = operations["get-announcement"]["responses"][200]["content"]["application/json"];
49
+ /** `POST /api/v1/announcements/{announcementId}/read` 成功时的响应体。 */
50
+ export type MarkAnnouncementReadResult = operations["mark-announcement-read"]["responses"][200]["content"]["application/json"];
51
+ /** `GET /api/v1/maintenances` 成功时的响应体。 */
52
+ export type ListMaintenancesResult = operations["list-maintenances"]["responses"][200]["content"]["application/json"];
53
+ /** `GET /api/v1/maintenances` 的查询参数。 */
54
+ export type ListMaintenancesQuery = operations["list-maintenances"]["parameters"]["query"];
55
+ /** `GET /api/v1/maintenances/{maintenanceId}` 成功时的响应体。 */
56
+ export type GetMaintenanceResult = operations["get-maintenance"]["responses"][200]["content"]["application/json"];
57
+ /** `GET /api/v1/maintenances/{maintenanceId}/timeline` 成功时的响应体。 */
58
+ export type ListMaintenanceTimelineResult = operations["list-maintenance-timeline"]["responses"][200]["content"]["application/json"];
59
+ /** `GET /api/v1/maintenances/{maintenanceId}/timeline` 的查询参数。 */
60
+ export type ListMaintenanceTimelineQuery = operations["list-maintenance-timeline"]["parameters"]["query"];
@@ -0,0 +1,5 @@
1
+ // 由 scripts/generate-ts.mjs 生成,不要手改。
2
+ //
3
+ // 别名把 operations[...] 那串下标换成一个名字。原始的 paths / components / operations 也
4
+ // 一并导出:paths 是给 openapi-fetch 的 createClient<paths>() 用的。
5
+ export {};