@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,60 @@
1
+ export type { paths, components, operations, webhooks } from "./schema.js";
2
+ import type { operations } from "./schema.js";
3
+ /** `GET /api/v1/notifications` 成功时的响应体。 */
4
+ export type ListNotificationsResult = operations["list-notifications"]["responses"][200]["content"]["application/json"];
5
+ /** `GET /api/v1/notifications` 的查询参数。 */
6
+ export type ListNotificationsQuery = operations["list-notifications"]["parameters"]["query"];
7
+ /** `POST /api/v1/notifications/read` 成功时的响应体。 */
8
+ export type MarkNotificationsReadResult = operations["mark-notifications-read"]["responses"][200]["content"]["application/json"];
9
+ /** `POST /api/v1/notifications/read` 的请求体。 */
10
+ export type MarkNotificationsReadBody = NonNullable<operations["mark-notifications-read"]["requestBody"]>["content"]["application/json"];
11
+ /** `GET /api/v1/notifications/unread-count` 成功时的响应体。 */
12
+ export type CountUnreadNotificationsResult = operations["count-unread-notifications"]["responses"][200]["content"]["application/json"];
13
+ /** `GET /api/v1/notifications/unread-count` 的查询参数。 */
14
+ export type CountUnreadNotificationsQuery = operations["count-unread-notifications"]["parameters"]["query"];
15
+ /** `GET /api/v1/notifications/{notificationId}` 成功时的响应体。 */
16
+ export type GetNotificationResult = operations["get-notification"]["responses"][200]["content"]["application/json"];
17
+ /** `POST /api/v1/notifications/{notificationId}/read` 成功时的响应体。 */
18
+ export type MarkNotificationReadResult = operations["mark-notification-read"]["responses"][200]["content"]["application/json"];
19
+ /** `POST /api/v1/notifications/{notificationId}/archive` 成功时的响应体。 */
20
+ export type ArchiveNotificationResult = operations["archive-notification"]["responses"][200]["content"]["application/json"];
21
+ /** `GET /api/v1/notification-types` 成功时的响应体。 */
22
+ export type ListNotificationTypesResult = operations["list-notification-types"]["responses"][200]["content"]["application/json"];
23
+ /** `GET /api/v1/preferences` 成功时的响应体。 */
24
+ export type GetNotificationPreferencesResult = operations["get-notification-preferences"]["responses"][200]["content"]["application/json"];
25
+ /** `PATCH /api/v1/preferences` 成功时的响应体。 */
26
+ export type UpdateNotificationPreferencesResult = operations["update-notification-preferences"]["responses"][200]["content"]["application/json"];
27
+ /** `PATCH /api/v1/preferences` 的请求体。 */
28
+ export type UpdateNotificationPreferencesBody = NonNullable<operations["update-notification-preferences"]["requestBody"]>["content"]["application/json"];
29
+ /** `GET /api/v1/preferences/types` 成功时的响应体。 */
30
+ export type ListTypePreferencesResult = operations["list-type-preferences"]["responses"][200]["content"]["application/json"];
31
+ /** `GET /api/v1/preferences/types` 的查询参数。 */
32
+ export type ListTypePreferencesQuery = operations["list-type-preferences"]["parameters"]["query"];
33
+ /** `PUT /api/v1/preferences/types/{type}` 成功时的响应体。 */
34
+ export type UpdateTypePreferenceResult = operations["update-type-preference"]["responses"][200]["content"]["application/json"];
35
+ /** `PUT /api/v1/preferences/types/{type}` 的请求体。 */
36
+ export type UpdateTypePreferenceBody = NonNullable<operations["update-type-preference"]["requestBody"]>["content"]["application/json"];
37
+ /** `GET /api/v1/channels` 成功时的响应体。 */
38
+ export type ListUserChannelsResult = operations["list-user-channels"]["responses"][200]["content"]["application/json"];
39
+ /** `GET /api/v1/channels` 的查询参数。 */
40
+ export type ListUserChannelsQuery = operations["list-user-channels"]["parameters"]["query"];
41
+ /** `POST /api/v1/channels` 成功时的响应体。 */
42
+ export type CreateUserChannelResult = operations["create-user-channel"]["responses"][201]["content"]["application/json"];
43
+ /** `POST /api/v1/channels` 的请求体。 */
44
+ export type CreateUserChannelBody = NonNullable<operations["create-user-channel"]["requestBody"]>["content"]["application/json"];
45
+ /** `PATCH /api/v1/channels/{channelId}` 成功时的响应体。 */
46
+ export type UpdateUserChannelResult = operations["update-user-channel"]["responses"][200]["content"]["application/json"];
47
+ /** `PATCH /api/v1/channels/{channelId}` 的请求体。 */
48
+ export type UpdateUserChannelBody = NonNullable<operations["update-user-channel"]["requestBody"]>["content"]["application/json"];
49
+ /** `POST /api/v1/channels/{channelId}/verify` 成功时的响应体。 */
50
+ export type VerifyUserChannelResult = operations["verify-user-channel"]["responses"][200]["content"]["application/json"];
51
+ /** `GET /api/v1/credentials/{ticketId}` 成功时的响应体。 */
52
+ export type DescribeCredentialTicketResult = operations["describe-credential-ticket"]["responses"][200]["content"]["application/json"];
53
+ /** `POST /api/v1/credentials/{ticketId}/reveal` 成功时的响应体。 */
54
+ export type RevealCredentialResult = operations["reveal-credential"]["responses"][200]["content"]["application/json"];
55
+ /** `GET /api/v1/realtime` 成功时的响应体。 */
56
+ export type DescribeRealtimeConnectionResult = operations["describe-realtime-connection"]["responses"][200]["content"]["application/json"];
57
+ /** `POST /api/v1/realtime/auth` 成功时的响应体。 */
58
+ export type AuthorizeRealtimeChannelResult = operations["authorize-realtime-channel"]["responses"][200]["content"]["application/json"];
59
+ /** `POST /api/v1/realtime/auth` 的请求体。 */
60
+ export type AuthorizeRealtimeChannelBody = NonNullable<operations["authorize-realtime-channel"]["requestBody"]>["content"]["application/json"];
@@ -0,0 +1,5 @@
1
+ // 由 scripts/generate-ts.mjs 生成,不要手改。
2
+ //
3
+ // 别名把 operations[...] 那串下标换成一个名字。原始的 paths / components / operations 也
4
+ // 一并导出:paths 是给 openapi-fetch 的 createClient<paths>() 用的。
5
+ export {};