@atiproto/lexicons 0.8.0 → 1.1.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 +2728 -2419
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2728 -2419
- package/dist/index.mjs.map +1 -1
- 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} +36 -36
- package/dist/lexicons/com/atiproto/{account → payment}/cart/clone.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{account → payment}/cart/create.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{account → payment}/cart/get.defs.d.ts +26 -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 +3 -3
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/create.defs.d.ts +9 -9
- 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/{feed/tip → payment/item}/put.defs.d.ts +7 -7
- 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/{feed → payment}/subscription/cancel.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/create.defs.d.ts +3 -3
- 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 +3 -3
- 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/{account → recipient}/profile/put.defs.d.ts +5 -5
- 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 +3 -3
- package/package.json +1 -1
- 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/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,14 +1,14 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
3
3
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.item.put";
|
|
5
5
|
export { $nsid };
|
|
6
|
-
/** Update a pending
|
|
7
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
6
|
+
/** Update a pending item. Only pending items can be updated. */
|
|
7
|
+
declare const main: l.Procedure<"com.atiproto.payment.item.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
8
|
uri: l.StringSchema<{
|
|
9
9
|
readonly format: "at-uri";
|
|
10
10
|
}>;
|
|
11
|
-
record: l.RefSchema<l.Validator<
|
|
11
|
+
record: l.RefSchema<l.Validator<AtiprotoItem.Main, AtiprotoItem.Main>>;
|
|
12
12
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
13
13
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
14
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
@@ -25,11 +25,11 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
25
25
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
26
26
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
27
27
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
28
|
-
export declare const $lxm: "com.atiproto.
|
|
28
|
+
export declare const $lxm: "com.atiproto.payment.item.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
29
29
|
uri: l.StringSchema<{
|
|
30
30
|
readonly format: "at-uri";
|
|
31
31
|
}>;
|
|
32
|
-
record: l.RefSchema<l.Validator<
|
|
32
|
+
record: l.RefSchema<l.Validator<AtiprotoItem.Main, AtiprotoItem.Main>>;
|
|
33
33
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
34
34
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
35
35
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
declare const $nsid = "com.atiproto.payment.item.validate";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
/** Validate that the authenticated user (as the sender) has completed
|
|
5
|
-
declare const main: l.Query<"com.atiproto.
|
|
6
|
-
readonly
|
|
4
|
+
/** Validate that the authenticated user (as the sender) has completed item payment(s). Looks up by itemUri (a specific item record), recordUri (sums all items for that record), or subject (recipient DID). These are mutually exclusive and resolved in that order. */
|
|
5
|
+
declare const main: l.Query<"com.atiproto.payment.item.validate", l.ParamsSchema<{
|
|
6
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
7
7
|
readonly format: "at-uri";
|
|
8
8
|
}>>;
|
|
9
9
|
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
@@ -27,8 +27,8 @@ export { main };
|
|
|
27
27
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
28
28
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
29
29
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
30
|
-
export declare const $lxm: "com.atiproto.
|
|
31
|
-
readonly
|
|
30
|
+
export declare const $lxm: "com.atiproto.payment.item.validate", $params: l.ParamsSchema<{
|
|
31
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
32
32
|
readonly format: "at-uri";
|
|
33
33
|
}>>;
|
|
34
34
|
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AtiprotoItem from '../item.defs.js';
|
|
3
3
|
import * as AtiprotoSubscription from '../subscription.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.list";
|
|
5
5
|
export { $nsid };
|
|
6
|
-
/** List
|
|
7
|
-
declare const main: l.Query<"com.atiproto.
|
|
6
|
+
/** List items and subscriptions for the authenticated user. Always returns items given by the user and subscriptions the user has created. */
|
|
7
|
+
declare const main: l.Query<"com.atiproto.payment.list", l.ParamsSchema<{
|
|
8
8
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
9
|
readonly maxLength: 512;
|
|
10
10
|
}>>;
|
|
11
11
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
12
12
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
|
-
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<
|
|
13
|
+
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoItem.View, AtiprotoItem.View>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.View, AtiprotoSubscription.View>>], false>>;
|
|
14
14
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
15
15
|
readonly maxLength: 512;
|
|
16
16
|
}>>;
|
|
@@ -19,13 +19,13 @@ export { main };
|
|
|
19
19
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
20
20
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
21
21
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
22
|
-
export declare const $lxm: "com.atiproto.
|
|
22
|
+
export declare const $lxm: "com.atiproto.payment.list", $params: l.ParamsSchema<{
|
|
23
23
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
24
24
|
readonly maxLength: 512;
|
|
25
25
|
}>>;
|
|
26
26
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
27
27
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
28
|
-
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<
|
|
28
|
+
items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoItem.View, AtiprotoItem.View>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.View, AtiprotoSubscription.View>>], false>>;
|
|
29
29
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
30
30
|
readonly maxLength: 512;
|
|
31
31
|
}>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
3
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.subscription.cancel";
|
|
5
5
|
export { $nsid };
|
|
6
6
|
/** Cancel an active subscription */
|
|
7
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
7
|
+
declare const main: l.Procedure<"com.atiproto.payment.subscription.cancel", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
8
|
subscriptionUri: l.StringSchema<{
|
|
9
9
|
readonly format: "at-uri";
|
|
10
10
|
}>;
|
|
@@ -25,7 +25,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
25
25
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
26
26
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
27
27
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
28
|
-
export declare const $lxm: "com.atiproto.
|
|
28
|
+
export declare const $lxm: "com.atiproto.payment.subscription.cancel", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
29
29
|
subscriptionUri: l.StringSchema<{
|
|
30
30
|
readonly format: "at-uri";
|
|
31
31
|
}>;
|
|
@@ -2,10 +2,10 @@ import { l } from '@atproto/lex';
|
|
|
2
2
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
3
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
4
4
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
5
|
-
declare const $nsid = "com.atiproto.
|
|
5
|
+
declare const $nsid = "com.atiproto.payment.subscription.create";
|
|
6
6
|
export { $nsid };
|
|
7
7
|
/** Create a subscription to a user. Returns a one-off cart with checkout URL. */
|
|
8
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
8
|
+
declare const main: l.Procedure<"com.atiproto.payment.subscription.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
9
9
|
subject: l.StringSchema<{
|
|
10
10
|
readonly format: "did";
|
|
11
11
|
}>;
|
|
@@ -42,7 +42,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
42
42
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
43
43
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
44
44
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
45
|
-
export declare const $lxm: "com.atiproto.
|
|
45
|
+
export declare const $lxm: "com.atiproto.payment.subscription.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
46
46
|
subject: l.StringSchema<{
|
|
47
47
|
readonly format: "did";
|
|
48
48
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
3
|
+
declare const $nsid = "com.atiproto.payment.subscription.get";
|
|
4
4
|
export { $nsid };
|
|
5
5
|
/** Get a specific subscription sent by the authenticated user. Looks up by subscription record uri or subject (recipient) DID. These are mutually exclusive; uri takes precedence. */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
6
|
+
declare const main: l.Query<"com.atiproto.payment.subscription.get", l.ParamsSchema<{
|
|
7
7
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "at-uri";
|
|
9
9
|
}>>;
|
|
@@ -17,7 +17,7 @@ export { main };
|
|
|
17
17
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
18
18
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
19
19
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
20
|
-
export declare const $lxm: "com.atiproto.
|
|
20
|
+
export declare const $lxm: "com.atiproto.payment.subscription.get", $params: l.ParamsSchema<{
|
|
21
21
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
22
22
|
readonly format: "at-uri";
|
|
23
23
|
}>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
3
|
+
declare const $nsid = "com.atiproto.payment.subscription.list";
|
|
4
4
|
export { $nsid };
|
|
5
5
|
/** List subscriptions for the authenticated user */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
6
|
+
declare const main: l.Query<"com.atiproto.payment.subscription.list", l.ParamsSchema<{
|
|
7
7
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly maxLength: 512;
|
|
9
9
|
}>>;
|
|
@@ -18,7 +18,7 @@ export { main };
|
|
|
18
18
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
19
19
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
20
20
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
21
|
-
export declare const $lxm: "com.atiproto.
|
|
21
|
+
export declare const $lxm: "com.atiproto.payment.subscription.list", $params: l.ParamsSchema<{
|
|
22
22
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
23
23
|
readonly maxLength: 512;
|
|
24
24
|
}>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
3
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.subscription.put";
|
|
5
5
|
export { $nsid };
|
|
6
6
|
/** Update a pending subscription. Only pending subscriptions can be updated. */
|
|
7
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
7
|
+
declare const main: l.Procedure<"com.atiproto.payment.subscription.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
8
|
uri: l.StringSchema<{
|
|
9
9
|
readonly format: "at-uri";
|
|
10
10
|
}>;
|
|
@@ -25,7 +25,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
25
25
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
26
26
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
27
27
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
28
|
-
export declare const $lxm: "com.atiproto.
|
|
28
|
+
export declare const $lxm: "com.atiproto.payment.subscription.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
29
29
|
uri: l.StringSchema<{
|
|
30
30
|
readonly format: "at-uri";
|
|
31
31
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
declare const $nsid = "com.atiproto.payment.subscription.validate";
|
|
3
3
|
export { $nsid };
|
|
4
4
|
/** Validate that the authenticated user (as the sender/subscriber) 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.
|
|
5
|
+
declare const main: l.Query<"com.atiproto.payment.subscription.validate", l.ParamsSchema<{
|
|
6
6
|
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
7
7
|
readonly format: "at-uri";
|
|
8
8
|
}>>;
|
|
@@ -24,7 +24,7 @@ export { main };
|
|
|
24
24
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
25
25
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
26
26
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
27
|
-
export declare const $lxm: "com.atiproto.
|
|
27
|
+
export declare const $lxm: "com.atiproto.payment.subscription.validate", $params: l.ParamsSchema<{
|
|
28
28
|
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
29
29
|
readonly format: "at-uri";
|
|
30
30
|
}>>;
|
|
@@ -5,9 +5,9 @@ export { $nsid };
|
|
|
5
5
|
type Main = {
|
|
6
6
|
$type: 'com.atiproto.profile';
|
|
7
7
|
/**
|
|
8
|
-
* Whether user accepts
|
|
8
|
+
* Whether user accepts items (default: true)
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
acceptsItems?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* Whether user accepts subscriptions (default: true)
|
|
13
13
|
*/
|
|
@@ -34,7 +34,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
34
34
|
}>(value: TValue) => value is l.TypedRecord<"com.atiproto.profile", TValue>, $build: {
|
|
35
35
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
36
36
|
createdAt: l.DatetimeString;
|
|
37
|
-
|
|
37
|
+
acceptsItems?: boolean
|
|
38
38
|
/**
|
|
39
39
|
* Whether user accepts subscriptions (default: true)
|
|
40
40
|
*/
|
|
@@ -54,7 +54,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
54
54
|
};
|
|
55
55
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
56
56
|
createdAt: l.DatetimeString;
|
|
57
|
-
|
|
57
|
+
acceptsItems?: boolean
|
|
58
58
|
/**
|
|
59
59
|
* Whether user accepts subscriptions (default: true)
|
|
60
60
|
*/
|
|
@@ -75,7 +75,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
75
75
|
}, $type: "com.atiproto.profile";
|
|
76
76
|
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
77
77
|
createdAt: l.DatetimeString;
|
|
78
|
-
|
|
78
|
+
acceptsItems?: boolean
|
|
79
79
|
/**
|
|
80
80
|
* Whether user accepts subscriptions (default: true)
|
|
81
81
|
*/
|
|
@@ -94,7 +94,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
94
94
|
$type: "com.atiproto.profile";
|
|
95
95
|
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
96
96
|
createdAt: l.DatetimeString;
|
|
97
|
-
|
|
97
|
+
acceptsItems?: boolean
|
|
98
98
|
/**
|
|
99
99
|
* Whether user accepts subscriptions (default: true)
|
|
100
100
|
*/
|
|
@@ -113,7 +113,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
113
113
|
$type: "com.atiproto.profile";
|
|
114
114
|
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
115
115
|
createdAt: l.DatetimeString;
|
|
116
|
-
|
|
116
|
+
acceptsItems?: boolean
|
|
117
117
|
/**
|
|
118
118
|
* Whether user accepts subscriptions (default: true)
|
|
119
119
|
*/
|
|
@@ -132,7 +132,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
132
132
|
$type: "com.atiproto.profile";
|
|
133
133
|
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
134
134
|
createdAt: l.DatetimeString;
|
|
135
|
-
|
|
135
|
+
acceptsItems?: boolean
|
|
136
136
|
/**
|
|
137
137
|
* Whether user accepts subscriptions (default: true)
|
|
138
138
|
*/
|
|
@@ -151,7 +151,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
151
151
|
$type: "com.atiproto.profile";
|
|
152
152
|
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
153
153
|
createdAt: l.DatetimeString;
|
|
154
|
-
|
|
154
|
+
acceptsItems?: boolean
|
|
155
155
|
/**
|
|
156
156
|
* Whether user accepts subscriptions (default: true)
|
|
157
157
|
*/
|
|
@@ -170,7 +170,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
170
170
|
$type: "com.atiproto.profile";
|
|
171
171
|
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
172
172
|
createdAt: l.DatetimeString;
|
|
173
|
-
|
|
173
|
+
acceptsItems?: boolean
|
|
174
174
|
/**
|
|
175
175
|
* Whether user accepts subscriptions (default: true)
|
|
176
176
|
*/
|
|
@@ -189,7 +189,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
189
189
|
$type: "com.atiproto.profile";
|
|
190
190
|
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
191
191
|
createdAt: l.DatetimeString;
|
|
192
|
-
|
|
192
|
+
acceptsItems?: boolean
|
|
193
193
|
/**
|
|
194
194
|
* Whether user accepts subscriptions (default: true)
|
|
195
195
|
*/
|
|
@@ -208,7 +208,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
208
208
|
$type: "com.atiproto.profile";
|
|
209
209
|
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
210
210
|
createdAt: l.DatetimeString;
|
|
211
|
-
|
|
211
|
+
acceptsItems?: boolean
|
|
212
212
|
/**
|
|
213
213
|
* Whether user accepts subscriptions (default: true)
|
|
214
214
|
*/
|
|
@@ -234,9 +234,9 @@ type View = {
|
|
|
234
234
|
*/
|
|
235
235
|
uri: l.AtUriString;
|
|
236
236
|
/**
|
|
237
|
-
* Whether user accepts
|
|
237
|
+
* Whether user accepts items (default: true)
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
acceptsItems?: boolean;
|
|
240
240
|
/**
|
|
241
241
|
* Whether user accepts subscriptions (default: true)
|
|
242
242
|
*/
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoCart from '../../../cart.defs.js';
|
|
3
|
+
import * as AtiprotoItem from '../../../item.defs.js';
|
|
4
|
+
import * as AtiprotoSubscription from '../../../subscription.defs.js';
|
|
5
|
+
declare const $nsid = "com.atiproto.recipient.payment.cart.get";
|
|
6
|
+
export { $nsid };
|
|
7
|
+
/** Get a cart that pays the authenticated user — a cart whose items target this user. Look up by cart URI, by a contained item record URI, or by a contained subscription record URI. One of `uri`, `itemUri`, or `subscriptionUri` is required. */
|
|
8
|
+
declare const main: l.Query<"com.atiproto.recipient.payment.cart.get", l.ParamsSchema<{
|
|
9
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
10
|
+
readonly format: "at-uri";
|
|
11
|
+
}>>;
|
|
12
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
13
|
+
readonly format: "at-uri";
|
|
14
|
+
}>>;
|
|
15
|
+
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
16
|
+
readonly format: "at-uri";
|
|
17
|
+
}>>;
|
|
18
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
19
|
+
uri: l.StringSchema<{
|
|
20
|
+
readonly format: "at-uri";
|
|
21
|
+
}>;
|
|
22
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
23
|
+
readonly format: "cid";
|
|
24
|
+
}>>;
|
|
25
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
26
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
27
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
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.recipient.payment.cart.get", $params: l.ParamsSchema<{
|
|
34
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
35
|
+
readonly format: "at-uri";
|
|
36
|
+
}>>;
|
|
37
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
38
|
+
readonly format: "at-uri";
|
|
39
|
+
}>>;
|
|
40
|
+
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
41
|
+
readonly format: "at-uri";
|
|
42
|
+
}>>;
|
|
43
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
44
|
+
uri: l.StringSchema<{
|
|
45
|
+
readonly format: "at-uri";
|
|
46
|
+
}>;
|
|
47
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
48
|
+
readonly format: "cid";
|
|
49
|
+
}>>;
|
|
50
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
|
|
51
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
52
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
53
|
+
}>>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoCart from '../../../cart.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.recipient.payment.cart.list";
|
|
4
|
+
export { $nsid };
|
|
5
|
+
/** List carts whose items pay the authenticated user — i.e. carts targeting this user as a payment recipient. Read-only, no PDS writes. */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.recipient.payment.cart.list", l.ParamsSchema<{
|
|
7
|
+
readonly sender: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
readonly format: "did";
|
|
9
|
+
}>>;
|
|
10
|
+
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
11
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
12
|
+
readonly maxLength: 512;
|
|
13
|
+
}>>;
|
|
14
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
15
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
16
|
+
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
17
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
18
|
+
readonly maxLength: 512;
|
|
19
|
+
}>>;
|
|
20
|
+
}>>, undefined>;
|
|
21
|
+
export { main };
|
|
22
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
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.recipient.payment.cart.list", $params: l.ParamsSchema<{
|
|
26
|
+
readonly sender: l.OptionalSchema<l.StringSchema<{
|
|
27
|
+
readonly format: "did";
|
|
28
|
+
}>>;
|
|
29
|
+
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
30
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
31
|
+
readonly maxLength: 512;
|
|
32
|
+
}>>;
|
|
33
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
34
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
35
|
+
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
36
|
+
cursor: l.OptionalSchema<l.StringSchema<{
|
|
37
|
+
readonly maxLength: 512;
|
|
38
|
+
}>>;
|
|
39
|
+
}>>;
|
|
40
|
+
type CartResponse = {
|
|
41
|
+
$type?: 'com.atiproto.recipient.payment.cart.list#cartResponse';
|
|
42
|
+
/**
|
|
43
|
+
* AT-URI of the cart record
|
|
44
|
+
*/
|
|
45
|
+
uri: l.AtUriString;
|
|
46
|
+
/**
|
|
47
|
+
* CID of the cart record
|
|
48
|
+
*/
|
|
49
|
+
cid: l.CidString;
|
|
50
|
+
record: AtiprotoCart.View;
|
|
51
|
+
};
|
|
52
|
+
export type { CartResponse };
|
|
53
|
+
declare const cartResponse: l.TypedObjectSchema<"com.atiproto.recipient.payment.cart.list#cartResponse", l.Validator<CartResponse, CartResponse>>;
|
|
54
|
+
export { cartResponse };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
import * as AtiprotoItem from '../../../item.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.recipient.payment.item.get";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** Get a specific
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** Get a specific item received by the authenticated user (as the recipient/subject). Looks up by item record uri, sender DID, or record uri. These are mutually exclusive and resolved in that order. */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.recipient.payment.item.get", l.ParamsSchema<{
|
|
7
7
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "at-uri";
|
|
9
9
|
}>>;
|
|
@@ -14,13 +14,13 @@ declare const main: l.Query<"com.atiproto.account.tip.get", l.ParamsSchema<{
|
|
|
14
14
|
readonly format: "at-uri";
|
|
15
15
|
}>>;
|
|
16
16
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
17
|
-
|
|
17
|
+
item: l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>;
|
|
18
18
|
}>>, undefined>;
|
|
19
19
|
export { main };
|
|
20
20
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
21
21
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
22
22
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
23
|
-
export declare const $lxm: "com.atiproto.
|
|
23
|
+
export declare const $lxm: "com.atiproto.recipient.payment.item.get", $params: l.ParamsSchema<{
|
|
24
24
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
25
25
|
readonly format: "at-uri";
|
|
26
26
|
}>>;
|
|
@@ -31,5 +31,5 @@ export declare const $lxm: "com.atiproto.account.tip.get", $params: l.ParamsSche
|
|
|
31
31
|
readonly format: "at-uri";
|
|
32
32
|
}>>;
|
|
33
33
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
34
|
-
|
|
34
|
+
item: l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>;
|
|
35
35
|
}>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
import * as AtiprotoItem from '../../../item.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.recipient.payment.item.list";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** List
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** List items received by the authenticated user (items where the authed user is the recipient/subject). Includes items marked private, which are only stored in atiproto's database. */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.recipient.payment.item.list", l.ParamsSchema<{
|
|
7
7
|
readonly sender: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "did";
|
|
9
9
|
}>>;
|
|
@@ -15,7 +15,7 @@ declare const main: l.Query<"com.atiproto.account.tip.list", l.ParamsSchema<{
|
|
|
15
15
|
}>>;
|
|
16
16
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
17
17
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
18
|
-
|
|
18
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
19
19
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
20
20
|
readonly maxLength: 512;
|
|
21
21
|
}>>;
|
|
@@ -24,7 +24,7 @@ export { main };
|
|
|
24
24
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
25
25
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
26
26
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
27
|
-
export declare const $lxm: "com.atiproto.
|
|
27
|
+
export declare const $lxm: "com.atiproto.recipient.payment.item.list", $params: l.ParamsSchema<{
|
|
28
28
|
readonly sender: l.OptionalSchema<l.StringSchema<{
|
|
29
29
|
readonly format: "did";
|
|
30
30
|
}>>;
|
|
@@ -36,7 +36,7 @@ export declare const $lxm: "com.atiproto.account.tip.list", $params: l.ParamsSch
|
|
|
36
36
|
}>>;
|
|
37
37
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
38
38
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
39
|
-
|
|
39
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
40
40
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
41
41
|
readonly maxLength: 512;
|
|
42
42
|
}>>;
|
package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/validate.defs.d.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
declare const $nsid = "com.atiproto.recipient.payment.item.validate";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
/** Validate that a sender has completed
|
|
5
|
-
declare const main: l.Query<"com.atiproto.
|
|
6
|
-
readonly
|
|
4
|
+
/** Validate that a sender has completed item payment(s) to the authenticated user (as the recipient/subject). Looks up by itemUri (a specific item record), recordUri (sums all items for that record), or sender (sender DID). These are mutually exclusive and resolved in that order. */
|
|
5
|
+
declare const main: l.Query<"com.atiproto.recipient.payment.item.validate", l.ParamsSchema<{
|
|
6
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
7
7
|
readonly format: "at-uri";
|
|
8
8
|
}>>;
|
|
9
9
|
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
@@ -27,8 +27,8 @@ export { main };
|
|
|
27
27
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
28
28
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
29
29
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
30
|
-
export declare const $lxm: "com.atiproto.
|
|
31
|
-
readonly
|
|
30
|
+
export declare const $lxm: "com.atiproto.recipient.payment.item.validate", $params: l.ParamsSchema<{
|
|
31
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
32
32
|
readonly format: "at-uri";
|
|
33
33
|
}>>;
|
|
34
34
|
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as AtiprotoSubscription from '
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
import * as AtiprotoSubscription from '../../../subscription.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.recipient.payment.subscription.get";
|
|
4
4
|
export { $nsid };
|
|
5
5
|
/** Get a specific subscription received by the authenticated user (as the recipient/subject). Looks up by subscription record uri or sender DID. These are mutually exclusive; uri takes precedence. */
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
6
|
+
declare const main: l.Query<"com.atiproto.recipient.payment.subscription.get", l.ParamsSchema<{
|
|
7
7
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "at-uri";
|
|
9
9
|
}>>;
|
|
@@ -17,7 +17,7 @@ export { main };
|
|
|
17
17
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
18
18
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
19
19
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
20
|
-
export declare const $lxm: "com.atiproto.
|
|
20
|
+
export declare const $lxm: "com.atiproto.recipient.payment.subscription.get", $params: l.ParamsSchema<{
|
|
21
21
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
22
22
|
readonly format: "at-uri";
|
|
23
23
|
}>>;
|