@atiproto/lexicons 0.3.0 → 0.4.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 +310 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +310 -52
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +6 -6
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/account/cart/get.defs.d.ts +6 -6
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/account/profile/get.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +33 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +28 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +44 -0
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +40 -0
- package/package.json +1 -1
|
@@ -13,15 +13,15 @@ declare const main: l.Procedure<"com.atiproto.account.cart.clone", l.ParamsSchem
|
|
|
13
13
|
readonly format: "uri";
|
|
14
14
|
}>>;
|
|
15
15
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
16
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.
|
|
16
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
17
17
|
cartUri: l.StringSchema<{
|
|
18
18
|
readonly format: "at-uri";
|
|
19
19
|
}>;
|
|
20
20
|
checkoutUrl: l.StringSchema<{
|
|
21
21
|
readonly format: "uri";
|
|
22
22
|
}>;
|
|
23
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.
|
|
24
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
23
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
24
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
25
25
|
}>>, undefined>;
|
|
26
26
|
export { main };
|
|
27
27
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -37,13 +37,13 @@ export declare const $lxm: "com.atiproto.account.cart.clone", $params: l.ParamsS
|
|
|
37
37
|
readonly format: "uri";
|
|
38
38
|
}>>;
|
|
39
39
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
40
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.
|
|
40
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
41
41
|
cartUri: l.StringSchema<{
|
|
42
42
|
readonly format: "at-uri";
|
|
43
43
|
}>;
|
|
44
44
|
checkoutUrl: l.StringSchema<{
|
|
45
45
|
readonly format: "uri";
|
|
46
46
|
}>;
|
|
47
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.
|
|
48
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
47
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
48
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
49
49
|
}>>;
|
|
@@ -11,7 +11,7 @@ declare const main: l.Procedure<"com.atiproto.account.cart.create", l.ParamsSche
|
|
|
11
11
|
readonly format: "uri";
|
|
12
12
|
}>>;
|
|
13
13
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.
|
|
14
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
15
15
|
cartUri: l.StringSchema<{
|
|
16
16
|
readonly format: "at-uri";
|
|
17
17
|
}>;
|
|
@@ -33,7 +33,7 @@ export declare const $lxm: "com.atiproto.account.cart.create", $params: l.Params
|
|
|
33
33
|
readonly format: "uri";
|
|
34
34
|
}>>;
|
|
35
35
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
36
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.
|
|
36
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
37
37
|
cartUri: l.StringSchema<{
|
|
38
38
|
readonly format: "at-uri";
|
|
39
39
|
}>;
|
|
@@ -16,12 +16,12 @@ declare const main: l.Query<"com.atiproto.account.cart.get", l.ParamsSchema<{
|
|
|
16
16
|
cid: l.OptionalSchema<l.StringSchema<{
|
|
17
17
|
readonly format: "cid";
|
|
18
18
|
}>>;
|
|
19
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.
|
|
19
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
20
20
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
21
21
|
readonly format: "uri";
|
|
22
22
|
}>>;
|
|
23
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.
|
|
24
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
23
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
24
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
25
25
|
}>>, undefined>;
|
|
26
26
|
export { main };
|
|
27
27
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -38,10 +38,10 @@ export declare const $lxm: "com.atiproto.account.cart.get", $params: l.ParamsSch
|
|
|
38
38
|
cid: l.OptionalSchema<l.StringSchema<{
|
|
39
39
|
readonly format: "cid";
|
|
40
40
|
}>>;
|
|
41
|
-
cart: l.RefSchema<l.Validator<AtiprotoCart.
|
|
41
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
42
42
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
43
43
|
readonly format: "uri";
|
|
44
44
|
}>>;
|
|
45
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.
|
|
46
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
45
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
46
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
47
47
|
}>>;
|
|
@@ -29,7 +29,7 @@ type CartResponse = {
|
|
|
29
29
|
* CID of the cart record
|
|
30
30
|
*/
|
|
31
31
|
cid: l.CidString;
|
|
32
|
-
record: AtiprotoCart.
|
|
32
|
+
record: AtiprotoCart.View;
|
|
33
33
|
};
|
|
34
34
|
export type { CartResponse };
|
|
35
35
|
declare const cartResponse: l.TypedObjectSchema<"com.atiproto.account.cart.list#cartResponse", l.Validator<CartResponse, CartResponse>>;
|
|
@@ -10,7 +10,7 @@ declare const main: l.Query<"com.atiproto.account.profile.get", l.ParamsSchema<{
|
|
|
10
10
|
cid: l.OptionalSchema<l.StringSchema<{
|
|
11
11
|
readonly format: "cid";
|
|
12
12
|
}>>;
|
|
13
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.
|
|
13
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
14
14
|
hasProfile: l.BooleanSchema;
|
|
15
15
|
readyForPayment: l.BooleanSchema;
|
|
16
16
|
}>>, undefined>;
|
|
@@ -25,7 +25,7 @@ export declare const $lxm: "com.atiproto.account.profile.get", $params: l.Params
|
|
|
25
25
|
cid: l.OptionalSchema<l.StringSchema<{
|
|
26
26
|
readonly format: "cid";
|
|
27
27
|
}>>;
|
|
28
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.
|
|
28
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
29
29
|
hasProfile: l.BooleanSchema;
|
|
30
30
|
readyForPayment: l.BooleanSchema;
|
|
31
31
|
}>>;
|
|
@@ -14,7 +14,7 @@ declare const main: l.Procedure<"com.atiproto.account.profile.put", l.ParamsSche
|
|
|
14
14
|
cid: l.StringSchema<{
|
|
15
15
|
readonly format: "cid";
|
|
16
16
|
}>;
|
|
17
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.
|
|
17
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
18
18
|
hasProfile: l.BooleanSchema;
|
|
19
19
|
readyForPayment: l.BooleanSchema;
|
|
20
20
|
}>>, undefined>;
|
|
@@ -35,7 +35,7 @@ export declare const $lxm: "com.atiproto.account.profile.put", $params: l.Params
|
|
|
35
35
|
cid: l.StringSchema<{
|
|
36
36
|
readonly format: "cid";
|
|
37
37
|
}>;
|
|
38
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.
|
|
38
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
39
39
|
hasProfile: l.BooleanSchema;
|
|
40
40
|
readyForPayment: l.BooleanSchema;
|
|
41
41
|
}>>;
|
|
@@ -131,6 +131,39 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
131
131
|
completedAt?: l.DatetimeString | undefined;
|
|
132
132
|
$type: "com.atiproto.cart";
|
|
133
133
|
}>;
|
|
134
|
+
/** View of a cart record for use in API responses */
|
|
135
|
+
type View = {
|
|
136
|
+
$type?: 'com.atiproto.cart#view';
|
|
137
|
+
items: CartItem[];
|
|
138
|
+
/**
|
|
139
|
+
* ISO 4217 currency code
|
|
140
|
+
*/
|
|
141
|
+
currency: string;
|
|
142
|
+
/**
|
|
143
|
+
* Total amount in cents
|
|
144
|
+
*/
|
|
145
|
+
total: number;
|
|
146
|
+
/**
|
|
147
|
+
* Cart status
|
|
148
|
+
*/
|
|
149
|
+
status: 'open' | 'completed' | 'expired' | 'abandoned';
|
|
150
|
+
/**
|
|
151
|
+
* Creation timestamp
|
|
152
|
+
*/
|
|
153
|
+
createdAt: l.DatetimeString;
|
|
154
|
+
/**
|
|
155
|
+
* Expiration timestamp
|
|
156
|
+
*/
|
|
157
|
+
expiresAt: l.DatetimeString;
|
|
158
|
+
/**
|
|
159
|
+
* Completion timestamp
|
|
160
|
+
*/
|
|
161
|
+
completedAt?: l.DatetimeString;
|
|
162
|
+
};
|
|
163
|
+
export type { View };
|
|
164
|
+
/** View of a cart record for use in API responses */
|
|
165
|
+
declare const view: l.TypedObjectSchema<"com.atiproto.cart#view", l.Validator<View, View>>;
|
|
166
|
+
export { view };
|
|
134
167
|
type CartItem = {
|
|
135
168
|
$type?: 'com.atiproto.cart#cartItem';
|
|
136
169
|
/**
|
|
@@ -11,7 +11,7 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.cancel", l.Param
|
|
|
11
11
|
subscriptionUri: l.StringSchema<{
|
|
12
12
|
readonly format: "at-uri";
|
|
13
13
|
}>;
|
|
14
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
14
|
+
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
15
15
|
accessUntil: l.StringSchema<{
|
|
16
16
|
readonly format: "datetime";
|
|
17
17
|
}>;
|
|
@@ -30,7 +30,7 @@ export declare const $lxm: "com.atiproto.feed.subscription.cancel", $params: l.P
|
|
|
30
30
|
subscriptionUri: l.StringSchema<{
|
|
31
31
|
readonly format: "at-uri";
|
|
32
32
|
}>;
|
|
33
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
33
|
+
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
34
34
|
accessUntil: l.StringSchema<{
|
|
35
35
|
readonly format: "datetime";
|
|
36
36
|
}>;
|
|
@@ -23,11 +23,11 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.create", l.Param
|
|
|
23
23
|
subscriptionUri: l.StringSchema<{
|
|
24
24
|
readonly format: "at-uri";
|
|
25
25
|
}>;
|
|
26
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
26
|
+
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
27
27
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
28
28
|
readonly format: "at-uri";
|
|
29
29
|
}>>;
|
|
30
|
-
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.
|
|
30
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
31
31
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
32
32
|
readonly format: "uri";
|
|
33
33
|
}>>;
|
|
@@ -57,11 +57,11 @@ export declare const $lxm: "com.atiproto.feed.subscription.create", $params: l.P
|
|
|
57
57
|
subscriptionUri: l.StringSchema<{
|
|
58
58
|
readonly format: "at-uri";
|
|
59
59
|
}>;
|
|
60
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
60
|
+
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
61
61
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
62
62
|
readonly format: "at-uri";
|
|
63
63
|
}>>;
|
|
64
|
-
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.
|
|
64
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
65
65
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
66
66
|
readonly format: "uri";
|
|
67
67
|
}>>;
|
|
@@ -14,7 +14,7 @@ declare const main: l.Query<"com.atiproto.feed.subscription.get", l.ParamsSchema
|
|
|
14
14
|
cid: l.StringSchema<{
|
|
15
15
|
readonly format: "cid";
|
|
16
16
|
}>;
|
|
17
|
-
record: l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
17
|
+
record: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
18
18
|
}>>, undefined>;
|
|
19
19
|
export { main };
|
|
20
20
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -31,5 +31,5 @@ export declare const $lxm: "com.atiproto.feed.subscription.get", $params: l.Para
|
|
|
31
31
|
cid: l.StringSchema<{
|
|
32
32
|
readonly format: "cid";
|
|
33
33
|
}>;
|
|
34
|
-
record: l.RefSchema<l.Validator<AtiprotoSubscription.
|
|
34
|
+
record: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
35
35
|
}>>;
|
|
@@ -25,7 +25,7 @@ type SubscriptionResponse = {
|
|
|
25
25
|
* AT-URI of the subscription record
|
|
26
26
|
*/
|
|
27
27
|
uri: l.AtUriString;
|
|
28
|
-
record: AtiprotoSubscription.
|
|
28
|
+
record: AtiprotoSubscription.View;
|
|
29
29
|
};
|
|
30
30
|
export type { SubscriptionResponse };
|
|
31
31
|
declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.feed.subscription.list#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
|
|
@@ -29,11 +29,11 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
|
|
|
29
29
|
tipUri: l.StringSchema<{
|
|
30
30
|
readonly format: "at-uri";
|
|
31
31
|
}>;
|
|
32
|
-
tip: l.RefSchema<l.Validator<AtiprotoTip.
|
|
32
|
+
tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
|
|
33
33
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
34
34
|
readonly format: "at-uri";
|
|
35
35
|
}>>;
|
|
36
|
-
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.
|
|
36
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
37
37
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
38
38
|
readonly format: "uri";
|
|
39
39
|
}>>;
|
|
@@ -69,11 +69,11 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
|
|
|
69
69
|
tipUri: l.StringSchema<{
|
|
70
70
|
readonly format: "at-uri";
|
|
71
71
|
}>;
|
|
72
|
-
tip: l.RefSchema<l.Validator<AtiprotoTip.
|
|
72
|
+
tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
|
|
73
73
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
74
74
|
readonly format: "at-uri";
|
|
75
75
|
}>>;
|
|
76
|
-
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.
|
|
76
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
77
77
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
78
78
|
readonly format: "uri";
|
|
79
79
|
}>>;
|
|
@@ -14,7 +14,7 @@ declare const main: l.Query<"com.atiproto.feed.tip.get", l.ParamsSchema<{
|
|
|
14
14
|
cid: l.StringSchema<{
|
|
15
15
|
readonly format: "cid";
|
|
16
16
|
}>;
|
|
17
|
-
value: l.RefSchema<l.Validator<AtiprotoTip.
|
|
17
|
+
value: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
|
|
18
18
|
}>>, undefined>;
|
|
19
19
|
export { main };
|
|
20
20
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -31,5 +31,5 @@ export declare const $lxm: "com.atiproto.feed.tip.get", $params: l.ParamsSchema<
|
|
|
31
31
|
cid: l.StringSchema<{
|
|
32
32
|
readonly format: "cid";
|
|
33
33
|
}>;
|
|
34
|
-
value: l.RefSchema<l.Validator<AtiprotoTip.
|
|
34
|
+
value: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
|
|
35
35
|
}>>;
|
|
@@ -4,7 +4,7 @@ declare const $nsid = "com.atiproto.feed.tip.list";
|
|
|
4
4
|
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
|
-
records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.
|
|
7
|
+
records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
8
8
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
9
|
readonly maxLength: 512;
|
|
10
10
|
}>>;
|
|
@@ -14,7 +14,7 @@ export type $Params = l.InferMethodParams<typeof main>;
|
|
|
14
14
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
15
15
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
16
16
|
export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
17
|
-
records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.
|
|
17
|
+
records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
18
18
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
19
19
|
readonly maxLength: 512;
|
|
20
20
|
}>>;
|
|
@@ -226,3 +226,31 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
226
226
|
updatedAt?: l.DatetimeString | undefined;
|
|
227
227
|
$type: "com.atiproto.profile";
|
|
228
228
|
}>;
|
|
229
|
+
/** View of a user's profile settings for use in API responses */
|
|
230
|
+
type View = {
|
|
231
|
+
$type?: 'com.atiproto.profile#view';
|
|
232
|
+
/**
|
|
233
|
+
* Whether user accepts tips (default: true)
|
|
234
|
+
*/
|
|
235
|
+
acceptsTips?: boolean;
|
|
236
|
+
/**
|
|
237
|
+
* Whether user accepts subscriptions (default: true)
|
|
238
|
+
*/
|
|
239
|
+
acceptsSubscriptions?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Opt out of payment receipt DMs (default: false)
|
|
242
|
+
*/
|
|
243
|
+
disableReceiptNotifications?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Creation timestamp
|
|
246
|
+
*/
|
|
247
|
+
createdAt: l.DatetimeString;
|
|
248
|
+
/**
|
|
249
|
+
* Last update timestamp
|
|
250
|
+
*/
|
|
251
|
+
updatedAt?: l.DatetimeString;
|
|
252
|
+
};
|
|
253
|
+
export type { View };
|
|
254
|
+
/** View of a user's profile settings for use in API responses */
|
|
255
|
+
declare const view: l.TypedObjectSchema<"com.atiproto.profile#view", l.Validator<View, View>>;
|
|
256
|
+
export { view };
|
|
@@ -11,7 +11,7 @@ declare const main: l.Query<"com.atiproto.repo.profile.get", l.ParamsSchema<{
|
|
|
11
11
|
did: l.StringSchema<{
|
|
12
12
|
readonly format: "did";
|
|
13
13
|
}>;
|
|
14
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.
|
|
14
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
15
15
|
}>>, undefined>;
|
|
16
16
|
export { main };
|
|
17
17
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -25,5 +25,5 @@ export declare const $lxm: "com.atiproto.repo.profile.get", $params: l.ParamsSch
|
|
|
25
25
|
did: l.StringSchema<{
|
|
26
26
|
readonly format: "did";
|
|
27
27
|
}>;
|
|
28
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.
|
|
28
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
29
29
|
}>>;
|
|
@@ -41,7 +41,7 @@ type SubscriptionResponse = {
|
|
|
41
41
|
* AT-URI of the subscription record
|
|
42
42
|
*/
|
|
43
43
|
uri: l.AtUriString;
|
|
44
|
-
record: AtiprotoSubscription.
|
|
44
|
+
record: AtiprotoSubscription.View;
|
|
45
45
|
};
|
|
46
46
|
export type { SubscriptionResponse };
|
|
47
47
|
declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.repo.subscription.search#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
|
|
@@ -41,7 +41,7 @@ type TipResponse = {
|
|
|
41
41
|
* AT-URI of the tip record
|
|
42
42
|
*/
|
|
43
43
|
uri: l.AtUriString;
|
|
44
|
-
record: AtiprotoTip.
|
|
44
|
+
record: AtiprotoTip.View;
|
|
45
45
|
};
|
|
46
46
|
export type { TipResponse };
|
|
47
47
|
declare const tipResponse: l.TypedObjectSchema<"com.atiproto.repo.tip.search#tipResponse", l.Validator<TipResponse, TipResponse>>;
|
|
@@ -242,3 +242,47 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
242
242
|
| undefined;
|
|
243
243
|
$type: "com.atiproto.subscription";
|
|
244
244
|
}>;
|
|
245
|
+
/** View of a subscription record for use in API responses */
|
|
246
|
+
type View = {
|
|
247
|
+
$type?: 'com.atiproto.subscription#view';
|
|
248
|
+
/**
|
|
249
|
+
* DID of the user being subscribed to
|
|
250
|
+
*/
|
|
251
|
+
subject: l.DidString;
|
|
252
|
+
/**
|
|
253
|
+
* Subscription amount in cents (0 for free subscriptions)
|
|
254
|
+
*/
|
|
255
|
+
amount: number;
|
|
256
|
+
/**
|
|
257
|
+
* ISO 4217 currency code
|
|
258
|
+
*/
|
|
259
|
+
currency: string;
|
|
260
|
+
/**
|
|
261
|
+
* Billing interval
|
|
262
|
+
*/
|
|
263
|
+
interval: 'monthly' | 'yearly';
|
|
264
|
+
/**
|
|
265
|
+
* Subscription status
|
|
266
|
+
*/
|
|
267
|
+
status: 'pending' | 'active' | 'past_due' | 'cancelled' | 'expired';
|
|
268
|
+
/**
|
|
269
|
+
* First billing period, can be used to determine recurrence
|
|
270
|
+
*/
|
|
271
|
+
billingStartDate: l.DatetimeString;
|
|
272
|
+
/**
|
|
273
|
+
* Cancellation timestamp
|
|
274
|
+
*/
|
|
275
|
+
cancelledAt?: l.DatetimeString;
|
|
276
|
+
/**
|
|
277
|
+
* Date until which the subscriber retains access after cancellation
|
|
278
|
+
*/
|
|
279
|
+
accessUntil?: l.DatetimeString;
|
|
280
|
+
/**
|
|
281
|
+
* Creation timestamp
|
|
282
|
+
*/
|
|
283
|
+
createdAt: l.DatetimeString;
|
|
284
|
+
};
|
|
285
|
+
export type { View };
|
|
286
|
+
/** View of a subscription record for use in API responses */
|
|
287
|
+
declare const view: l.TypedObjectSchema<"com.atiproto.subscription#view", l.Validator<View, View>>;
|
|
288
|
+
export { view };
|
|
@@ -228,3 +228,43 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
228
228
|
| undefined;
|
|
229
229
|
$type: "com.atiproto.tip";
|
|
230
230
|
}>;
|
|
231
|
+
/** View of a tip record for use in API responses */
|
|
232
|
+
type View = {
|
|
233
|
+
$type?: 'com.atiproto.tip#view';
|
|
234
|
+
/**
|
|
235
|
+
* DID of the user receiving the tip
|
|
236
|
+
*/
|
|
237
|
+
subject: l.DidString;
|
|
238
|
+
/**
|
|
239
|
+
* AT-URI of specific record being tipped
|
|
240
|
+
*/
|
|
241
|
+
recordUri?: l.AtUriString;
|
|
242
|
+
/**
|
|
243
|
+
* Tip amount in cents (0 when recipient allows zero tips)
|
|
244
|
+
*/
|
|
245
|
+
amount: number;
|
|
246
|
+
/**
|
|
247
|
+
* ISO 4217 currency code
|
|
248
|
+
*/
|
|
249
|
+
currency: string;
|
|
250
|
+
/**
|
|
251
|
+
* Tip status
|
|
252
|
+
*/
|
|
253
|
+
status: 'pending' | 'authorized' | 'completed' | 'failed' | 'refunded';
|
|
254
|
+
/**
|
|
255
|
+
* Optional message (max 500 chars)
|
|
256
|
+
*/
|
|
257
|
+
message?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Creation timestamp
|
|
260
|
+
*/
|
|
261
|
+
createdAt: l.DatetimeString;
|
|
262
|
+
/**
|
|
263
|
+
* Completion timestamp
|
|
264
|
+
*/
|
|
265
|
+
completedAt?: l.DatetimeString;
|
|
266
|
+
};
|
|
267
|
+
export type { View };
|
|
268
|
+
/** View of a tip record for use in API responses */
|
|
269
|
+
declare const view: l.TypedObjectSchema<"com.atiproto.tip#view", l.Validator<View, View>>;
|
|
270
|
+
export { view };
|