@atiproto/lexicons 0.7.2 → 1.0.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 +3223 -2409
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3223 -2409
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/actions.d.ts +2 -0
- package/dist/lexicons/com/atiproto/actions.defs.d.ts +120 -0
- package/dist/lexicons/com/atiproto/authEnhanced.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/authGeneral.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +5 -5
- package/dist/lexicons/com/atiproto/item.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{tip.defs.d.ts → item.defs.d.ts} +55 -55
- package/dist/lexicons/com/atiproto/payment/cart/clone.defs.d.ts +54 -0
- package/dist/lexicons/com/atiproto/{account → payment}/cart/create.defs.d.ts +18 -13
- package/dist/lexicons/com/atiproto/{account → payment}/cart/get.defs.d.ts +23 -11
- package/dist/lexicons/com/atiproto/{account → payment}/cart/list.defs.d.ts +12 -6
- package/dist/lexicons/com/atiproto/{account → payment}/cart/put.defs.d.ts +16 -11
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/create.defs.d.ts +16 -11
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/get.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/list.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/payment/item/put.defs.d.ts +42 -0
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/validate.defs.d.ts +6 -6
- package/dist/lexicons/com/atiproto/payment/item.d.ts +5 -0
- package/dist/lexicons/com/atiproto/{feed → payment}/list.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/payment/subscription/cancel.defs.d.ts +42 -0
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/create.defs.d.ts +14 -9
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/get.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/list.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/put.defs.d.ts +16 -11
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/validate.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/payment.d.ts +4 -0
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +14 -14
- package/dist/lexicons/com/atiproto/recipient/payment/cart/get.defs.d.ts +53 -0
- package/dist/lexicons/com/atiproto/recipient/payment/cart/list.defs.d.ts +54 -0
- package/dist/lexicons/com/atiproto/recipient/payment/cart.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/get.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/list.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/validate.defs.d.ts +6 -6
- package/dist/lexicons/com/atiproto/recipient/payment/item.d.ts +3 -0
- package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/get.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/recipient/payment/subscription/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/list.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/validate.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/recipient/payment.d.ts +3 -0
- package/dist/lexicons/com/atiproto/recipient/profile/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{account → recipient}/profile/get.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/recipient/profile/put.defs.d.ts +46 -0
- package/dist/lexicons/com/atiproto/recipient.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/{tip → item}/count.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/repo/item.d.ts +1 -0
- package/dist/lexicons/com/atiproto/repo.d.ts +1 -1
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +4 -0
- package/dist/lexicons/com/atiproto.d.ts +4 -3
- package/package.json +1 -1
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +0 -49
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +0 -41
- package/dist/lexicons/com/atiproto/account/tip.d.ts +0 -3
- package/dist/lexicons/com/atiproto/account.d.ts +0 -4
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +0 -37
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.d.ts +0 -37
- package/dist/lexicons/com/atiproto/feed/tip.d.ts +0 -5
- package/dist/lexicons/com/atiproto/feed.d.ts +0 -3
- package/dist/lexicons/com/atiproto/repo/subscription/search.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +0 -48
- package/dist/lexicons/com/atiproto/repo/subscription/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +0 -50
- package/dist/lexicons/com/atiproto/repo/tip/search.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +0 -48
- package/dist/lexicons/com/atiproto/repo/tip/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +0 -56
- package/dist/lexicons/com/atiproto/repo/tip.d.ts +0 -1
- package/dist/lexicons/com/atiproto/tip.d.ts +0 -2
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/clone.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/create.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → payment/item}/create.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/profile → payment/item}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/subscription → payment/item}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/profile → payment/item}/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/subscription → payment/item}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/tip → payment}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment}/subscription/cancel.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → payment/subscription}/create.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/subscription/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment/subscription}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment}/subscription/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/tip → payment/subscription}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment}/subscription.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/cart}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/cart}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/item}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/item}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/item}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/subscription}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/subscription}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/profile}/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → recipient}/profile.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/repo/{tip → item}/count.d.ts +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
import * as AtiprotoProfile from '../../profile.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.account.profile.put";
|
|
4
|
-
export { $nsid };
|
|
5
|
-
/** Create or update the authenticated user's profile settings */
|
|
6
|
-
declare const main: l.Procedure<"com.atiproto.account.profile.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
|
-
acceptsTips: l.OptionalSchema<l.BooleanSchema>;
|
|
8
|
-
acceptsSubscriptions: l.OptionalSchema<l.BooleanSchema>;
|
|
9
|
-
disableReceiptNotifications: l.OptionalSchema<l.BooleanSchema>;
|
|
10
|
-
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
11
|
-
uri: l.StringSchema<{
|
|
12
|
-
readonly format: "at-uri";
|
|
13
|
-
}>;
|
|
14
|
-
cid: l.StringSchema<{
|
|
15
|
-
readonly format: "cid";
|
|
16
|
-
}>;
|
|
17
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
18
|
-
hasProfile: l.BooleanSchema;
|
|
19
|
-
readyForPayment: l.BooleanSchema;
|
|
20
|
-
}>>, undefined>;
|
|
21
|
-
export { main };
|
|
22
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
23
|
-
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
24
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
25
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
26
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
27
|
-
export declare const $lxm: "com.atiproto.account.profile.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
28
|
-
acceptsTips: l.OptionalSchema<l.BooleanSchema>;
|
|
29
|
-
acceptsSubscriptions: l.OptionalSchema<l.BooleanSchema>;
|
|
30
|
-
disableReceiptNotifications: l.OptionalSchema<l.BooleanSchema>;
|
|
31
|
-
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
32
|
-
uri: l.StringSchema<{
|
|
33
|
-
readonly format: "at-uri";
|
|
34
|
-
}>;
|
|
35
|
-
cid: l.StringSchema<{
|
|
36
|
-
readonly format: "cid";
|
|
37
|
-
}>;
|
|
38
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
|
|
39
|
-
hasProfile: l.BooleanSchema;
|
|
40
|
-
readyForPayment: l.BooleanSchema;
|
|
41
|
-
}>>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.feed.subscription.cancel";
|
|
4
|
-
export { $nsid };
|
|
5
|
-
/** Cancel an active subscription */
|
|
6
|
-
declare const main: l.Procedure<"com.atiproto.feed.subscription.cancel", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
|
-
subscriptionUri: l.StringSchema<{
|
|
8
|
-
readonly format: "at-uri";
|
|
9
|
-
}>;
|
|
10
|
-
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
11
|
-
subscriptionUri: l.StringSchema<{
|
|
12
|
-
readonly format: "at-uri";
|
|
13
|
-
}>;
|
|
14
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
15
|
-
accessUntil: l.StringSchema<{
|
|
16
|
-
readonly format: "datetime";
|
|
17
|
-
}>;
|
|
18
|
-
}>>, undefined>;
|
|
19
|
-
export { main };
|
|
20
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
21
|
-
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
22
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
23
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
24
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
25
|
-
export declare const $lxm: "com.atiproto.feed.subscription.cancel", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
26
|
-
subscriptionUri: l.StringSchema<{
|
|
27
|
-
readonly format: "at-uri";
|
|
28
|
-
}>;
|
|
29
|
-
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
30
|
-
subscriptionUri: l.StringSchema<{
|
|
31
|
-
readonly format: "at-uri";
|
|
32
|
-
}>;
|
|
33
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
|
|
34
|
-
accessUntil: l.StringSchema<{
|
|
35
|
-
readonly format: "datetime";
|
|
36
|
-
}>;
|
|
37
|
-
}>>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
import * as AtiprotoTip from '../../tip.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.feed.tip.put";
|
|
4
|
-
export { $nsid };
|
|
5
|
-
/** Update a pending tip. Only pending tips can be updated. */
|
|
6
|
-
declare const main: l.Procedure<"com.atiproto.feed.tip.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
|
-
uri: l.StringSchema<{
|
|
8
|
-
readonly format: "at-uri";
|
|
9
|
-
}>;
|
|
10
|
-
record: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
|
|
11
|
-
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
-
uri: l.StringSchema<{
|
|
13
|
-
readonly format: "at-uri";
|
|
14
|
-
}>;
|
|
15
|
-
cid: l.StringSchema<{
|
|
16
|
-
readonly format: "cid";
|
|
17
|
-
}>;
|
|
18
|
-
}>>, undefined>;
|
|
19
|
-
export { main };
|
|
20
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
21
|
-
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
22
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
23
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
24
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
25
|
-
export declare const $lxm: "com.atiproto.feed.tip.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
26
|
-
uri: l.StringSchema<{
|
|
27
|
-
readonly format: "at-uri";
|
|
28
|
-
}>;
|
|
29
|
-
record: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
|
|
30
|
-
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
31
|
-
uri: l.StringSchema<{
|
|
32
|
-
readonly format: "at-uri";
|
|
33
|
-
}>;
|
|
34
|
-
cid: l.StringSchema<{
|
|
35
|
-
readonly format: "cid";
|
|
36
|
-
}>;
|
|
37
|
-
}>>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.repo.subscription.search";
|
|
4
|
-
export { $nsid };
|
|
5
|
-
/** Search for subscriptions to a user (subscriptions where subject matches the given DID) */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.repo.subscription.search", l.ParamsSchema<{
|
|
7
|
-
readonly subject: l.StringSchema<{
|
|
8
|
-
readonly format: "did";
|
|
9
|
-
}>;
|
|
10
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
11
|
-
readonly maxLength: 512;
|
|
12
|
-
}>>;
|
|
13
|
-
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
14
|
-
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
15
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
16
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
17
|
-
readonly maxLength: 512;
|
|
18
|
-
}>>;
|
|
19
|
-
}>>, undefined>;
|
|
20
|
-
export { main };
|
|
21
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
22
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
23
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
24
|
-
export declare const $lxm: "com.atiproto.repo.subscription.search", $params: l.ParamsSchema<{
|
|
25
|
-
readonly subject: l.StringSchema<{
|
|
26
|
-
readonly format: "did";
|
|
27
|
-
}>;
|
|
28
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
29
|
-
readonly maxLength: 512;
|
|
30
|
-
}>>;
|
|
31
|
-
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
32
|
-
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
33
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
34
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
35
|
-
readonly maxLength: 512;
|
|
36
|
-
}>>;
|
|
37
|
-
}>>;
|
|
38
|
-
type SubscriptionResponse = {
|
|
39
|
-
$type?: 'com.atiproto.repo.subscription.search#subscriptionResponse';
|
|
40
|
-
/**
|
|
41
|
-
* AT-URI of the subscription record
|
|
42
|
-
*/
|
|
43
|
-
uri: l.AtUriString;
|
|
44
|
-
record: AtiprotoSubscription.View;
|
|
45
|
-
};
|
|
46
|
-
export type { SubscriptionResponse };
|
|
47
|
-
declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.repo.subscription.search#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
|
|
48
|
-
export { subscriptionResponse };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.repo.subscription.validate";
|
|
3
|
-
export { $nsid };
|
|
4
|
-
/** Validate that a sender has an active, Stripe-verified subscription. Looks up by subscriptionUri (a specific subscription record) or subject (recipient DID). These are mutually exclusive; subscriptionUri takes precedence. */
|
|
5
|
-
declare const main: l.Query<"com.atiproto.repo.subscription.validate", l.ParamsSchema<{
|
|
6
|
-
readonly sender: l.StringSchema<{
|
|
7
|
-
readonly format: "did";
|
|
8
|
-
}>;
|
|
9
|
-
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
10
|
-
readonly format: "at-uri";
|
|
11
|
-
}>>;
|
|
12
|
-
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
13
|
-
readonly format: "did";
|
|
14
|
-
}>>;
|
|
15
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
16
|
-
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
17
|
-
valid: l.BooleanSchema;
|
|
18
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
19
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
20
|
-
readonly maxLength: 3;
|
|
21
|
-
}>>;
|
|
22
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
23
|
-
readonly maxLength: 1024;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>, undefined>;
|
|
26
|
-
export { main };
|
|
27
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
28
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
29
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
30
|
-
export declare const $lxm: "com.atiproto.repo.subscription.validate", $params: l.ParamsSchema<{
|
|
31
|
-
readonly sender: l.StringSchema<{
|
|
32
|
-
readonly format: "did";
|
|
33
|
-
}>;
|
|
34
|
-
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
35
|
-
readonly format: "at-uri";
|
|
36
|
-
}>>;
|
|
37
|
-
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
38
|
-
readonly format: "did";
|
|
39
|
-
}>>;
|
|
40
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
41
|
-
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
42
|
-
valid: l.BooleanSchema;
|
|
43
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
44
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
45
|
-
readonly maxLength: 3;
|
|
46
|
-
}>>;
|
|
47
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
48
|
-
readonly maxLength: 1024;
|
|
49
|
-
}>>;
|
|
50
|
-
}>>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
import * as AtiprotoTip from '../../tip.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.repo.tip.search";
|
|
4
|
-
export { $nsid };
|
|
5
|
-
/** Search for tips sent to a user (tips where subject matches the given DID) */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.repo.tip.search", l.ParamsSchema<{
|
|
7
|
-
readonly subject: l.StringSchema<{
|
|
8
|
-
readonly format: "did";
|
|
9
|
-
}>;
|
|
10
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
11
|
-
readonly maxLength: 512;
|
|
12
|
-
}>>;
|
|
13
|
-
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
14
|
-
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
15
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
|
|
16
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
17
|
-
readonly maxLength: 512;
|
|
18
|
-
}>>;
|
|
19
|
-
}>>, undefined>;
|
|
20
|
-
export { main };
|
|
21
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
22
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
23
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
24
|
-
export declare const $lxm: "com.atiproto.repo.tip.search", $params: l.ParamsSchema<{
|
|
25
|
-
readonly subject: l.StringSchema<{
|
|
26
|
-
readonly format: "did";
|
|
27
|
-
}>;
|
|
28
|
-
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
29
|
-
readonly maxLength: 512;
|
|
30
|
-
}>>;
|
|
31
|
-
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
32
|
-
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
33
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
|
|
34
|
-
cursor: l.OptionalSchema<l.StringSchema<{
|
|
35
|
-
readonly maxLength: 512;
|
|
36
|
-
}>>;
|
|
37
|
-
}>>;
|
|
38
|
-
type TipResponse = {
|
|
39
|
-
$type?: 'com.atiproto.repo.tip.search#tipResponse';
|
|
40
|
-
/**
|
|
41
|
-
* AT-URI of the tip record
|
|
42
|
-
*/
|
|
43
|
-
uri: l.AtUriString;
|
|
44
|
-
record: AtiprotoTip.View;
|
|
45
|
-
};
|
|
46
|
-
export type { TipResponse };
|
|
47
|
-
declare const tipResponse: l.TypedObjectSchema<"com.atiproto.repo.tip.search#tipResponse", l.Validator<TipResponse, TipResponse>>;
|
|
48
|
-
export { tipResponse };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.repo.tip.validate";
|
|
3
|
-
export { $nsid };
|
|
4
|
-
/** Validate that a sender has completed tip payment(s). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or subject (recipient DID). These are mutually exclusive and resolved in that order. */
|
|
5
|
-
declare const main: l.Query<"com.atiproto.repo.tip.validate", l.ParamsSchema<{
|
|
6
|
-
readonly sender: l.StringSchema<{
|
|
7
|
-
readonly format: "did";
|
|
8
|
-
}>;
|
|
9
|
-
readonly tipUri: l.OptionalSchema<l.StringSchema<{
|
|
10
|
-
readonly format: "at-uri";
|
|
11
|
-
}>>;
|
|
12
|
-
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
13
|
-
readonly format: "at-uri";
|
|
14
|
-
}>>;
|
|
15
|
-
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
16
|
-
readonly format: "did";
|
|
17
|
-
}>>;
|
|
18
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
19
|
-
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
20
|
-
valid: l.BooleanSchema;
|
|
21
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
22
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
23
|
-
readonly maxLength: 3;
|
|
24
|
-
}>>;
|
|
25
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
26
|
-
readonly maxLength: 1024;
|
|
27
|
-
}>>;
|
|
28
|
-
}>>, undefined>;
|
|
29
|
-
export { main };
|
|
30
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
31
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
32
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
33
|
-
export declare const $lxm: "com.atiproto.repo.tip.validate", $params: l.ParamsSchema<{
|
|
34
|
-
readonly sender: l.StringSchema<{
|
|
35
|
-
readonly format: "did";
|
|
36
|
-
}>;
|
|
37
|
-
readonly tipUri: l.OptionalSchema<l.StringSchema<{
|
|
38
|
-
readonly format: "at-uri";
|
|
39
|
-
}>>;
|
|
40
|
-
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
41
|
-
readonly format: "at-uri";
|
|
42
|
-
}>>;
|
|
43
|
-
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
44
|
-
readonly format: "did";
|
|
45
|
-
}>>;
|
|
46
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
47
|
-
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
48
|
-
valid: l.BooleanSchema;
|
|
49
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
50
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
51
|
-
readonly maxLength: 3;
|
|
52
|
-
}>>;
|
|
53
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
54
|
-
readonly maxLength: 1024;
|
|
55
|
-
}>>;
|
|
56
|
-
}>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as count from './tip/count.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/item}/validate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/subscription}/validate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|