@atiproto/lexicons 0.2.0 → 0.3.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.
- package/dist/index.js +92 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +92 -48
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +12 -12
- package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +30 -14
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +16 -12
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +24 -24
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,9 @@ declare const $nsid = "com.atiproto.account.cart.create";
|
|
|
4
4
|
export { $nsid };
|
|
5
5
|
/** Create a new empty cart */
|
|
6
6
|
declare const main: l.Procedure<"com.atiproto.account.cart.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
|
-
currency: l.StringSchema<{
|
|
7
|
+
currency: l.StringSchema<{
|
|
8
|
+
readonly maxLength: 3;
|
|
9
|
+
}>;
|
|
8
10
|
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
9
11
|
readonly format: "uri";
|
|
10
12
|
}>>;
|
|
@@ -24,7 +26,9 @@ export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B
|
|
|
24
26
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
25
27
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
26
28
|
export declare const $lxm: "com.atiproto.account.cart.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
27
|
-
currency: l.StringSchema<{
|
|
29
|
+
currency: l.StringSchema<{
|
|
30
|
+
readonly maxLength: 3;
|
|
31
|
+
}>;
|
|
28
32
|
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
29
33
|
readonly format: "uri";
|
|
30
34
|
}>>;
|
|
@@ -5,7 +5,9 @@ export { $nsid };
|
|
|
5
5
|
/** List carts for the authenticated user */
|
|
6
6
|
declare const main: l.Query<"com.atiproto.account.cart.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
7
|
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
8
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
|
+
readonly maxLength: 512;
|
|
10
|
+
}>>;
|
|
9
11
|
}>>, undefined>;
|
|
10
12
|
export { main };
|
|
11
13
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -13,7 +15,9 @@ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
|
13
15
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
14
16
|
export declare const $lxm: "com.atiproto.account.cart.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
15
17
|
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
16
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
18
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
|
+
readonly maxLength: 512;
|
|
20
|
+
}>>;
|
|
17
21
|
}>>;
|
|
18
22
|
type CartResponse = {
|
|
19
23
|
$type?: 'com.atiproto.account.cart.list#cartResponse';
|
|
@@ -14,9 +14,9 @@ type Main = {
|
|
|
14
14
|
*/
|
|
15
15
|
total: number;
|
|
16
16
|
/**
|
|
17
|
-
* Cart status
|
|
17
|
+
* Cart status
|
|
18
18
|
*/
|
|
19
|
-
status:
|
|
19
|
+
status: 'open' | 'completed' | 'expired' | 'abandoned';
|
|
20
20
|
/**
|
|
21
21
|
* Creation timestamp
|
|
22
22
|
*/
|
|
@@ -41,7 +41,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
41
41
|
items: CartItem[];
|
|
42
42
|
currency: string;
|
|
43
43
|
total: number;
|
|
44
|
-
status:
|
|
44
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
45
45
|
createdAt: l.DatetimeString;
|
|
46
46
|
expiresAt: l.DatetimeString;
|
|
47
47
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -51,7 +51,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
51
51
|
items: CartItem[];
|
|
52
52
|
currency: string;
|
|
53
53
|
total: number;
|
|
54
|
-
status:
|
|
54
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
55
55
|
createdAt: l.DatetimeString;
|
|
56
56
|
expiresAt: l.DatetimeString;
|
|
57
57
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
62
62
|
items: CartItem[];
|
|
63
63
|
currency: string;
|
|
64
64
|
total: number;
|
|
65
|
-
status:
|
|
65
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
66
66
|
createdAt: l.DatetimeString;
|
|
67
67
|
expiresAt: l.DatetimeString;
|
|
68
68
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -71,7 +71,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
71
71
|
items: CartItem[];
|
|
72
72
|
currency: string;
|
|
73
73
|
total: number;
|
|
74
|
-
status:
|
|
74
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
75
75
|
createdAt: l.DatetimeString;
|
|
76
76
|
expiresAt: l.DatetimeString;
|
|
77
77
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -80,7 +80,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
80
80
|
items: CartItem[];
|
|
81
81
|
currency: string;
|
|
82
82
|
total: number;
|
|
83
|
-
status:
|
|
83
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
84
84
|
createdAt: l.DatetimeString;
|
|
85
85
|
expiresAt: l.DatetimeString;
|
|
86
86
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -89,7 +89,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
89
89
|
items: CartItem[];
|
|
90
90
|
currency: string;
|
|
91
91
|
total: number;
|
|
92
|
-
status:
|
|
92
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
93
93
|
createdAt: l.DatetimeString;
|
|
94
94
|
expiresAt: l.DatetimeString;
|
|
95
95
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -98,7 +98,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
98
98
|
items: CartItem[];
|
|
99
99
|
currency: string;
|
|
100
100
|
total: number;
|
|
101
|
-
status:
|
|
101
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
102
102
|
createdAt: l.DatetimeString;
|
|
103
103
|
expiresAt: l.DatetimeString;
|
|
104
104
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -107,7 +107,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
107
107
|
items: CartItem[];
|
|
108
108
|
currency: string;
|
|
109
109
|
total: number;
|
|
110
|
-
status:
|
|
110
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
111
111
|
createdAt: l.DatetimeString;
|
|
112
112
|
expiresAt: l.DatetimeString;
|
|
113
113
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -116,7 +116,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
116
116
|
items: CartItem[];
|
|
117
117
|
currency: string;
|
|
118
118
|
total: number;
|
|
119
|
-
status:
|
|
119
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
120
120
|
createdAt: l.DatetimeString;
|
|
121
121
|
expiresAt: l.DatetimeString;
|
|
122
122
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -125,7 +125,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
125
125
|
items: CartItem[];
|
|
126
126
|
currency: string;
|
|
127
127
|
total: number;
|
|
128
|
-
status:
|
|
128
|
+
status: "open" | "completed" | "expired" | "abandoned";
|
|
129
129
|
createdAt: l.DatetimeString;
|
|
130
130
|
expiresAt: l.DatetimeString;
|
|
131
131
|
completedAt?: l.DatetimeString | undefined;
|
|
@@ -6,7 +6,9 @@ export { $nsid };
|
|
|
6
6
|
/** List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created. */
|
|
7
7
|
declare const main: l.Query<"com.atiproto.feed.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
8
|
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
|
|
9
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
10
|
+
readonly maxLength: 512;
|
|
11
|
+
}>>;
|
|
10
12
|
}>>, undefined>;
|
|
11
13
|
export { main };
|
|
12
14
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -14,5 +16,7 @@ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
|
14
16
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
15
17
|
export declare const $lxm: "com.atiproto.feed.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
16
18
|
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
|
|
17
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
20
|
+
readonly maxLength: 512;
|
|
21
|
+
}>>;
|
|
18
22
|
}>>;
|
|
@@ -9,20 +9,28 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.create", l.Param
|
|
|
9
9
|
readonly format: "did";
|
|
10
10
|
}>;
|
|
11
11
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
12
|
-
currency: l.StringSchema<{
|
|
13
|
-
|
|
12
|
+
currency: l.StringSchema<{
|
|
13
|
+
readonly maxLength: 3;
|
|
14
|
+
}>;
|
|
15
|
+
interval: l.EnumSchema<"monthly" | "yearly">;
|
|
16
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
17
|
+
readonly format: "at-uri";
|
|
18
|
+
}>>;
|
|
19
|
+
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
20
|
+
readonly format: "uri";
|
|
21
|
+
}>>;
|
|
14
22
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
15
23
|
subscriptionUri: l.StringSchema<{
|
|
16
24
|
readonly format: "at-uri";
|
|
17
25
|
}>;
|
|
18
26
|
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
|
|
19
|
-
cartUri: l.StringSchema<{
|
|
27
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
20
28
|
readonly format: "at-uri";
|
|
21
|
-
}
|
|
22
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main
|
|
23
|
-
checkoutUrl: l.StringSchema<{
|
|
29
|
+
}>>;
|
|
30
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
|
|
31
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
24
32
|
readonly format: "uri";
|
|
25
|
-
}
|
|
33
|
+
}>>;
|
|
26
34
|
}>>, undefined>;
|
|
27
35
|
export { main };
|
|
28
36
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -35,18 +43,26 @@ export declare const $lxm: "com.atiproto.feed.subscription.create", $params: l.P
|
|
|
35
43
|
readonly format: "did";
|
|
36
44
|
}>;
|
|
37
45
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
38
|
-
currency: l.StringSchema<{
|
|
39
|
-
|
|
46
|
+
currency: l.StringSchema<{
|
|
47
|
+
readonly maxLength: 3;
|
|
48
|
+
}>;
|
|
49
|
+
interval: l.EnumSchema<"monthly" | "yearly">;
|
|
50
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
51
|
+
readonly format: "at-uri";
|
|
52
|
+
}>>;
|
|
53
|
+
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
54
|
+
readonly format: "uri";
|
|
55
|
+
}>>;
|
|
40
56
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
41
57
|
subscriptionUri: l.StringSchema<{
|
|
42
58
|
readonly format: "at-uri";
|
|
43
59
|
}>;
|
|
44
60
|
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
|
|
45
|
-
cartUri: l.StringSchema<{
|
|
61
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
46
62
|
readonly format: "at-uri";
|
|
47
|
-
}
|
|
48
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main
|
|
49
|
-
checkoutUrl: l.StringSchema<{
|
|
63
|
+
}>>;
|
|
64
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
|
|
65
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
50
66
|
readonly format: "uri";
|
|
51
|
-
}
|
|
67
|
+
}>>;
|
|
52
68
|
}>>;
|
|
@@ -5,7 +5,9 @@ export { $nsid };
|
|
|
5
5
|
/** List subscriptions for the authenticated user */
|
|
6
6
|
declare const main: l.Query<"com.atiproto.feed.subscription.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
7
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
8
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
|
+
readonly maxLength: 512;
|
|
10
|
+
}>>;
|
|
9
11
|
}>>, undefined>;
|
|
10
12
|
export { main };
|
|
11
13
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -13,7 +15,9 @@ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
|
13
15
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
14
16
|
export declare const $lxm: "com.atiproto.feed.subscription.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
15
17
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
16
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
18
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
|
+
readonly maxLength: 512;
|
|
20
|
+
}>>;
|
|
17
21
|
}>>;
|
|
18
22
|
type SubscriptionResponse = {
|
|
19
23
|
$type?: 'com.atiproto.feed.subscription.list#subscriptionResponse';
|
|
@@ -12,7 +12,9 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
|
|
|
12
12
|
readonly format: "at-uri";
|
|
13
13
|
}>>;
|
|
14
14
|
amount: l.IntegerSchema;
|
|
15
|
-
currency: l.StringSchema<{
|
|
15
|
+
currency: l.StringSchema<{
|
|
16
|
+
readonly maxLength: 3;
|
|
17
|
+
}>;
|
|
16
18
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
17
19
|
readonly format: "at-uri";
|
|
18
20
|
}>>;
|
|
@@ -28,13 +30,13 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
|
|
|
28
30
|
readonly format: "at-uri";
|
|
29
31
|
}>;
|
|
30
32
|
tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
|
|
31
|
-
cartUri: l.StringSchema<{
|
|
33
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
32
34
|
readonly format: "at-uri";
|
|
33
|
-
}
|
|
34
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main
|
|
35
|
-
checkoutUrl: l.StringSchema<{
|
|
35
|
+
}>>;
|
|
36
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
|
|
37
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
36
38
|
readonly format: "uri";
|
|
37
|
-
}
|
|
39
|
+
}>>;
|
|
38
40
|
}>>, undefined>;
|
|
39
41
|
export { main };
|
|
40
42
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -50,7 +52,9 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
|
|
|
50
52
|
readonly format: "at-uri";
|
|
51
53
|
}>>;
|
|
52
54
|
amount: l.IntegerSchema;
|
|
53
|
-
currency: l.StringSchema<{
|
|
55
|
+
currency: l.StringSchema<{
|
|
56
|
+
readonly maxLength: 3;
|
|
57
|
+
}>;
|
|
54
58
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
55
59
|
readonly format: "at-uri";
|
|
56
60
|
}>>;
|
|
@@ -66,11 +70,11 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
|
|
|
66
70
|
readonly format: "at-uri";
|
|
67
71
|
}>;
|
|
68
72
|
tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
|
|
69
|
-
cartUri: l.StringSchema<{
|
|
73
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
70
74
|
readonly format: "at-uri";
|
|
71
|
-
}
|
|
72
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main
|
|
73
|
-
checkoutUrl: l.StringSchema<{
|
|
75
|
+
}>>;
|
|
76
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
|
|
77
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
74
78
|
readonly format: "uri";
|
|
75
|
-
}
|
|
79
|
+
}>>;
|
|
76
80
|
}>>;
|
|
@@ -5,7 +5,9 @@ export { $nsid };
|
|
|
5
5
|
/** List tips for the authenticated user */
|
|
6
6
|
declare const main: l.Query<"com.atiproto.feed.tip.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
7
|
records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
|
|
8
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
|
+
readonly maxLength: 512;
|
|
10
|
+
}>>;
|
|
9
11
|
}>>, undefined>;
|
|
10
12
|
export { main };
|
|
11
13
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -13,5 +15,7 @@ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
|
13
15
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
14
16
|
export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
15
17
|
records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
|
|
16
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
18
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
|
+
readonly maxLength: 512;
|
|
20
|
+
}>>;
|
|
17
21
|
}>>;
|
|
@@ -7,11 +7,15 @@ declare const main: l.Query<"com.atiproto.repo.subscription.search", l.ParamsSch
|
|
|
7
7
|
readonly subject: l.StringSchema<{
|
|
8
8
|
readonly format: "did";
|
|
9
9
|
}>;
|
|
10
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
10
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
11
|
+
readonly maxLength: 512;
|
|
12
|
+
}>>;
|
|
11
13
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
12
14
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
15
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
14
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
16
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
17
|
+
readonly maxLength: 512;
|
|
18
|
+
}>>;
|
|
15
19
|
}>>, undefined>;
|
|
16
20
|
export { main };
|
|
17
21
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -21,11 +25,15 @@ export declare const $lxm: "com.atiproto.repo.subscription.search", $params: l.P
|
|
|
21
25
|
readonly subject: l.StringSchema<{
|
|
22
26
|
readonly format: "did";
|
|
23
27
|
}>;
|
|
24
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
28
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
29
|
+
readonly maxLength: 512;
|
|
30
|
+
}>>;
|
|
25
31
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
26
32
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
27
33
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
28
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
34
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
35
|
+
readonly maxLength: 512;
|
|
36
|
+
}>>;
|
|
29
37
|
}>>;
|
|
30
38
|
type SubscriptionResponse = {
|
|
31
39
|
$type?: 'com.atiproto.repo.subscription.search#subscriptionResponse';
|
|
@@ -16,8 +16,12 @@ declare const main: l.Query<"com.atiproto.repo.subscription.validate", l.ParamsS
|
|
|
16
16
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
17
17
|
valid: l.BooleanSchema;
|
|
18
18
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
19
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
20
|
-
|
|
19
|
+
currency: l.OptionalSchema<l.StringSchema<{
|
|
20
|
+
readonly maxLength: 3;
|
|
21
|
+
}>>;
|
|
22
|
+
reason: l.OptionalSchema<l.StringSchema<{
|
|
23
|
+
readonly maxLength: 1024;
|
|
24
|
+
}>>;
|
|
21
25
|
}>>, undefined>;
|
|
22
26
|
export { main };
|
|
23
27
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -37,6 +41,10 @@ export declare const $lxm: "com.atiproto.repo.subscription.validate", $params: l
|
|
|
37
41
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
38
42
|
valid: l.BooleanSchema;
|
|
39
43
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
40
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
41
|
-
|
|
44
|
+
currency: l.OptionalSchema<l.StringSchema<{
|
|
45
|
+
readonly maxLength: 3;
|
|
46
|
+
}>>;
|
|
47
|
+
reason: l.OptionalSchema<l.StringSchema<{
|
|
48
|
+
readonly maxLength: 1024;
|
|
49
|
+
}>>;
|
|
42
50
|
}>>;
|
|
@@ -7,11 +7,15 @@ declare const main: l.Query<"com.atiproto.repo.tip.search", l.ParamsSchema<{
|
|
|
7
7
|
readonly subject: l.StringSchema<{
|
|
8
8
|
readonly format: "did";
|
|
9
9
|
}>;
|
|
10
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
10
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
11
|
+
readonly maxLength: 512;
|
|
12
|
+
}>>;
|
|
11
13
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
12
14
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
15
|
tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
|
|
14
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
16
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
17
|
+
readonly maxLength: 512;
|
|
18
|
+
}>>;
|
|
15
19
|
}>>, undefined>;
|
|
16
20
|
export { main };
|
|
17
21
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -21,11 +25,15 @@ export declare const $lxm: "com.atiproto.repo.tip.search", $params: l.ParamsSche
|
|
|
21
25
|
readonly subject: l.StringSchema<{
|
|
22
26
|
readonly format: "did";
|
|
23
27
|
}>;
|
|
24
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
28
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
29
|
+
readonly maxLength: 512;
|
|
30
|
+
}>>;
|
|
25
31
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
26
32
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
27
33
|
tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
|
|
28
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
34
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
35
|
+
readonly maxLength: 512;
|
|
36
|
+
}>>;
|
|
29
37
|
}>>;
|
|
30
38
|
type TipResponse = {
|
|
31
39
|
$type?: 'com.atiproto.repo.tip.search#tipResponse';
|
|
@@ -19,8 +19,12 @@ declare const main: l.Query<"com.atiproto.repo.tip.validate", l.ParamsSchema<{
|
|
|
19
19
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
20
20
|
valid: l.BooleanSchema;
|
|
21
21
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
22
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
23
|
-
|
|
22
|
+
currency: l.OptionalSchema<l.StringSchema<{
|
|
23
|
+
readonly maxLength: 3;
|
|
24
|
+
}>>;
|
|
25
|
+
reason: l.OptionalSchema<l.StringSchema<{
|
|
26
|
+
readonly maxLength: 1024;
|
|
27
|
+
}>>;
|
|
24
28
|
}>>, undefined>;
|
|
25
29
|
export { main };
|
|
26
30
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -43,6 +47,10 @@ export declare const $lxm: "com.atiproto.repo.tip.validate", $params: l.ParamsSc
|
|
|
43
47
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
44
48
|
valid: l.BooleanSchema;
|
|
45
49
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
46
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
47
|
-
|
|
50
|
+
currency: l.OptionalSchema<l.StringSchema<{
|
|
51
|
+
readonly maxLength: 3;
|
|
52
|
+
}>>;
|
|
53
|
+
reason: l.OptionalSchema<l.StringSchema<{
|
|
54
|
+
readonly maxLength: 1024;
|
|
55
|
+
}>>;
|
|
48
56
|
}>>;
|
|
@@ -17,13 +17,13 @@ type Main = {
|
|
|
17
17
|
*/
|
|
18
18
|
currency: string;
|
|
19
19
|
/**
|
|
20
|
-
* Billing interval
|
|
20
|
+
* Billing interval
|
|
21
21
|
*/
|
|
22
|
-
interval:
|
|
22
|
+
interval: 'monthly' | 'yearly';
|
|
23
23
|
/**
|
|
24
|
-
* Subscription status
|
|
24
|
+
* Subscription status
|
|
25
25
|
*/
|
|
26
|
-
status:
|
|
26
|
+
status: 'pending' | 'active' | 'past_due' | 'cancelled' | 'expired';
|
|
27
27
|
/**
|
|
28
28
|
* First billing period, can be used to determine recurrence
|
|
29
29
|
*/
|
|
@@ -50,11 +50,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
50
50
|
}>(value: TValue) => value is l.TypedRecord<"com.atiproto.subscription", TValue>, $build: {
|
|
51
51
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
52
52
|
currency: string;
|
|
53
|
-
status:
|
|
53
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
54
54
|
createdAt: l.DatetimeString;
|
|
55
55
|
subject: l.DidString;
|
|
56
56
|
amount: number;
|
|
57
|
-
interval:
|
|
57
|
+
interval: "monthly" | "yearly";
|
|
58
58
|
billingStartDate: l.DatetimeString;
|
|
59
59
|
cancelledAt?: l.DatetimeString
|
|
60
60
|
/**
|
|
@@ -70,11 +70,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
70
70
|
};
|
|
71
71
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
72
72
|
currency: string;
|
|
73
|
-
status:
|
|
73
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
74
74
|
createdAt: l.DatetimeString;
|
|
75
75
|
subject: l.DidString;
|
|
76
76
|
amount: number;
|
|
77
|
-
interval:
|
|
77
|
+
interval: "monthly" | "yearly";
|
|
78
78
|
billingStartDate: l.DatetimeString;
|
|
79
79
|
cancelledAt?: l.DatetimeString
|
|
80
80
|
/**
|
|
@@ -91,11 +91,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
91
91
|
}, $type: "com.atiproto.subscription";
|
|
92
92
|
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
93
93
|
currency: string;
|
|
94
|
-
status:
|
|
94
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
95
95
|
createdAt: l.DatetimeString;
|
|
96
96
|
subject: l.DidString;
|
|
97
97
|
amount: number;
|
|
98
|
-
interval:
|
|
98
|
+
interval: "monthly" | "yearly";
|
|
99
99
|
billingStartDate: l.DatetimeString;
|
|
100
100
|
cancelledAt?: l.DatetimeString
|
|
101
101
|
/**
|
|
@@ -110,11 +110,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
110
110
|
$type: "com.atiproto.subscription";
|
|
111
111
|
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
112
112
|
currency: string;
|
|
113
|
-
status:
|
|
113
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
114
114
|
createdAt: l.DatetimeString;
|
|
115
115
|
subject: l.DidString;
|
|
116
116
|
amount: number;
|
|
117
|
-
interval:
|
|
117
|
+
interval: "monthly" | "yearly";
|
|
118
118
|
billingStartDate: l.DatetimeString;
|
|
119
119
|
cancelledAt?: l.DatetimeString
|
|
120
120
|
/**
|
|
@@ -129,11 +129,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
129
129
|
$type: "com.atiproto.subscription";
|
|
130
130
|
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
131
131
|
currency: string;
|
|
132
|
-
status:
|
|
132
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
133
133
|
createdAt: l.DatetimeString;
|
|
134
134
|
subject: l.DidString;
|
|
135
135
|
amount: number;
|
|
136
|
-
interval:
|
|
136
|
+
interval: "monthly" | "yearly";
|
|
137
137
|
billingStartDate: l.DatetimeString;
|
|
138
138
|
cancelledAt?: l.DatetimeString
|
|
139
139
|
/**
|
|
@@ -148,11 +148,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
148
148
|
$type: "com.atiproto.subscription";
|
|
149
149
|
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
150
150
|
currency: string;
|
|
151
|
-
status:
|
|
151
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
152
152
|
createdAt: l.DatetimeString;
|
|
153
153
|
subject: l.DidString;
|
|
154
154
|
amount: number;
|
|
155
|
-
interval:
|
|
155
|
+
interval: "monthly" | "yearly";
|
|
156
156
|
billingStartDate: l.DatetimeString;
|
|
157
157
|
cancelledAt?: l.DatetimeString
|
|
158
158
|
/**
|
|
@@ -167,11 +167,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
167
167
|
$type: "com.atiproto.subscription";
|
|
168
168
|
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
169
169
|
currency: string;
|
|
170
|
-
status:
|
|
170
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
171
171
|
createdAt: l.DatetimeString;
|
|
172
172
|
subject: l.DidString;
|
|
173
173
|
amount: number;
|
|
174
|
-
interval:
|
|
174
|
+
interval: "monthly" | "yearly";
|
|
175
175
|
billingStartDate: l.DatetimeString;
|
|
176
176
|
cancelledAt?: l.DatetimeString
|
|
177
177
|
/**
|
|
@@ -186,11 +186,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
186
186
|
$type: "com.atiproto.subscription";
|
|
187
187
|
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
188
188
|
currency: string;
|
|
189
|
-
status:
|
|
189
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
190
190
|
createdAt: l.DatetimeString;
|
|
191
191
|
subject: l.DidString;
|
|
192
192
|
amount: number;
|
|
193
|
-
interval:
|
|
193
|
+
interval: "monthly" | "yearly";
|
|
194
194
|
billingStartDate: l.DatetimeString;
|
|
195
195
|
cancelledAt?: l.DatetimeString
|
|
196
196
|
/**
|
|
@@ -205,11 +205,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
205
205
|
$type: "com.atiproto.subscription";
|
|
206
206
|
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
207
207
|
currency: string;
|
|
208
|
-
status:
|
|
208
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
209
209
|
createdAt: l.DatetimeString;
|
|
210
210
|
subject: l.DidString;
|
|
211
211
|
amount: number;
|
|
212
|
-
interval:
|
|
212
|
+
interval: "monthly" | "yearly";
|
|
213
213
|
billingStartDate: l.DatetimeString;
|
|
214
214
|
cancelledAt?: l.DatetimeString
|
|
215
215
|
/**
|
|
@@ -224,11 +224,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
224
224
|
$type: "com.atiproto.subscription";
|
|
225
225
|
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
226
226
|
currency: string;
|
|
227
|
-
status:
|
|
227
|
+
status: "pending" | "active" | "past_due" | "cancelled" | "expired";
|
|
228
228
|
createdAt: l.DatetimeString;
|
|
229
229
|
subject: l.DidString;
|
|
230
230
|
amount: number;
|
|
231
|
-
interval:
|
|
231
|
+
interval: "monthly" | "yearly";
|
|
232
232
|
billingStartDate: l.DatetimeString;
|
|
233
233
|
cancelledAt?: l.DatetimeString
|
|
234
234
|
/**
|