@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,9 +1,12 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
3
|
+
declare const $nsid = "com.atiproto.payment.cart.list";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** List carts
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** List carts created by the authenticated user. */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.payment.cart.list", l.ParamsSchema<{
|
|
7
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
readonly format: "did";
|
|
9
|
+
}>>;
|
|
7
10
|
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
8
11
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
12
|
readonly maxLength: 512;
|
|
@@ -19,7 +22,10 @@ export { main };
|
|
|
19
22
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
20
23
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
21
24
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
22
|
-
export declare const $lxm: "com.atiproto.
|
|
25
|
+
export declare const $lxm: "com.atiproto.payment.cart.list", $params: l.ParamsSchema<{
|
|
26
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
27
|
+
readonly format: "did";
|
|
28
|
+
}>>;
|
|
23
29
|
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
24
30
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
25
31
|
readonly maxLength: 512;
|
|
@@ -32,7 +38,7 @@ export declare const $lxm: "com.atiproto.account.cart.list", $params: l.ParamsSc
|
|
|
32
38
|
}>>;
|
|
33
39
|
}>>;
|
|
34
40
|
type CartResponse = {
|
|
35
|
-
$type?: 'com.atiproto.
|
|
41
|
+
$type?: 'com.atiproto.payment.cart.list#cartResponse';
|
|
36
42
|
/**
|
|
37
43
|
* AT-URI of the cart record
|
|
38
44
|
*/
|
|
@@ -44,5 +50,5 @@ type CartResponse = {
|
|
|
44
50
|
record: AtiprotoCart.View;
|
|
45
51
|
};
|
|
46
52
|
export type { CartResponse };
|
|
47
|
-
declare const cartResponse: l.TypedObjectSchema<"com.atiproto.
|
|
53
|
+
declare const cartResponse: l.TypedObjectSchema<"com.atiproto.payment.cart.list#cartResponse", l.Validator<CartResponse, CartResponse>>;
|
|
48
54
|
export { cartResponse };
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
-
|
|
3
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.cart.put";
|
|
4
5
|
export { $nsid };
|
|
5
6
|
/** Update a cart. Only open carts can be updated. */
|
|
6
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
7
|
+
declare const main: l.Procedure<"com.atiproto.payment.cart.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
8
|
uri: l.StringSchema<{
|
|
8
9
|
readonly format: "at-uri";
|
|
9
10
|
}>;
|
|
10
11
|
record: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
12
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
11
13
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
-
|
|
14
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
15
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
13
16
|
readonly format: "at-uri";
|
|
14
|
-
}
|
|
15
|
-
cid: l.StringSchema<{
|
|
17
|
+
}>>;
|
|
18
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "cid";
|
|
17
|
-
}
|
|
20
|
+
}>>;
|
|
18
21
|
}>>, undefined>;
|
|
19
22
|
export { main };
|
|
20
23
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -22,16 +25,18 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
22
25
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
23
26
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
24
27
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
25
|
-
export declare const $lxm: "com.atiproto.
|
|
28
|
+
export declare const $lxm: "com.atiproto.payment.cart.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
26
29
|
uri: l.StringSchema<{
|
|
27
30
|
readonly format: "at-uri";
|
|
28
31
|
}>;
|
|
29
32
|
record: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
33
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
30
34
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
31
|
-
|
|
35
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
36
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
32
37
|
readonly format: "at-uri";
|
|
33
|
-
}
|
|
34
|
-
cid: l.StringSchema<{
|
|
38
|
+
}>>;
|
|
39
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
35
40
|
readonly format: "cid";
|
|
36
|
-
}
|
|
41
|
+
}>>;
|
|
37
42
|
}>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
3
4
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
5
|
+
declare const $nsid = "com.atiproto.payment.item.create";
|
|
5
6
|
export { $nsid };
|
|
6
|
-
/** Create a
|
|
7
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
7
|
+
/** Create a item on a DID or specific record. Creates or adds to a cart and returns a checkout URL. */
|
|
8
|
+
declare const main: l.Procedure<"com.atiproto.payment.item.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
9
|
subject: l.StringSchema<{
|
|
9
10
|
readonly format: "did";
|
|
10
11
|
}>;
|
|
@@ -26,11 +27,13 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
|
|
|
26
27
|
readonly maxLength: 5000;
|
|
27
28
|
}>>;
|
|
28
29
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
30
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
29
31
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
30
|
-
|
|
32
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
33
|
+
itemUri: l.OptionalSchema<l.StringSchema<{
|
|
31
34
|
readonly format: "at-uri";
|
|
32
|
-
}
|
|
33
|
-
|
|
35
|
+
}>>;
|
|
36
|
+
item: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
34
37
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
35
38
|
readonly format: "at-uri";
|
|
36
39
|
}>>;
|
|
@@ -45,7 +48,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
45
48
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
46
49
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
47
50
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
48
|
-
export declare const $lxm: "com.atiproto.
|
|
51
|
+
export declare const $lxm: "com.atiproto.payment.item.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
49
52
|
subject: l.StringSchema<{
|
|
50
53
|
readonly format: "did";
|
|
51
54
|
}>;
|
|
@@ -67,11 +70,13 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
|
|
|
67
70
|
readonly maxLength: 5000;
|
|
68
71
|
}>>;
|
|
69
72
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
73
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
70
74
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
71
|
-
|
|
75
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
76
|
+
itemUri: l.OptionalSchema<l.StringSchema<{
|
|
72
77
|
readonly format: "at-uri";
|
|
73
|
-
}
|
|
74
|
-
|
|
78
|
+
}>>;
|
|
79
|
+
item: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
75
80
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
76
81
|
readonly format: "at-uri";
|
|
77
82
|
}>>;
|
|
@@ -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.payment.item.get";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** Get a specific
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** Get a specific item sent by the authenticated user. Looks up by item record uri, subject (recipient) DID, or record uri. These are mutually exclusive and resolved in that order. */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.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.feed.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.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.feed.tip.get", $params: l.ParamsSchema<
|
|
|
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.payment.item.list";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** List
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** List items sent by the authenticated user */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.payment.item.list", l.ParamsSchema<{
|
|
7
7
|
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "did";
|
|
9
9
|
}>>;
|
|
@@ -15,7 +15,7 @@ declare const main: l.Query<"com.atiproto.feed.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.payment.item.list", $params: l.ParamsSchema<{
|
|
28
28
|
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
29
29
|
readonly format: "did";
|
|
30
30
|
}>>;
|
|
@@ -36,7 +36,7 @@ export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema
|
|
|
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
|
}>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
3
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.item.put";
|
|
5
|
+
export { $nsid };
|
|
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
|
+
uri: l.StringSchema<{
|
|
9
|
+
readonly format: "at-uri";
|
|
10
|
+
}>;
|
|
11
|
+
record: l.RefSchema<l.Validator<AtiprotoItem.Main, AtiprotoItem.Main>>;
|
|
12
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
13
|
+
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
15
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
16
|
+
readonly format: "at-uri";
|
|
17
|
+
}>>;
|
|
18
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
19
|
+
readonly format: "cid";
|
|
20
|
+
}>>;
|
|
21
|
+
}>>, undefined>;
|
|
22
|
+
export { main };
|
|
23
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
24
|
+
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
25
|
+
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
26
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
27
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
28
|
+
export declare const $lxm: "com.atiproto.payment.item.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
29
|
+
uri: l.StringSchema<{
|
|
30
|
+
readonly format: "at-uri";
|
|
31
|
+
}>;
|
|
32
|
+
record: l.RefSchema<l.Validator<AtiprotoItem.Main, AtiprotoItem.Main>>;
|
|
33
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
34
|
+
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
35
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
36
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
37
|
+
readonly format: "at-uri";
|
|
38
|
+
}>>;
|
|
39
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
40
|
+
readonly format: "cid";
|
|
41
|
+
}>>;
|
|
42
|
+
}>>;
|
|
@@ -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
|
}>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
|
+
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.subscription.cancel";
|
|
5
|
+
export { $nsid };
|
|
6
|
+
/** Cancel an active subscription */
|
|
7
|
+
declare const main: l.Procedure<"com.atiproto.payment.subscription.cancel", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
|
+
subscriptionUri: l.StringSchema<{
|
|
9
|
+
readonly format: "at-uri";
|
|
10
|
+
}>;
|
|
11
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
12
|
+
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
14
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
15
|
+
readonly format: "at-uri";
|
|
16
|
+
}>>;
|
|
17
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
18
|
+
accessUntil: l.OptionalSchema<l.StringSchema<{
|
|
19
|
+
readonly format: "datetime";
|
|
20
|
+
}>>;
|
|
21
|
+
}>>, undefined>;
|
|
22
|
+
export { main };
|
|
23
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
24
|
+
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
25
|
+
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
26
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
27
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
28
|
+
export declare const $lxm: "com.atiproto.payment.subscription.cancel", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
29
|
+
subscriptionUri: l.StringSchema<{
|
|
30
|
+
readonly format: "at-uri";
|
|
31
|
+
}>;
|
|
32
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
33
|
+
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
34
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
35
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
36
|
+
readonly format: "at-uri";
|
|
37
|
+
}>>;
|
|
38
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
39
|
+
accessUntil: l.OptionalSchema<l.StringSchema<{
|
|
40
|
+
readonly format: "datetime";
|
|
41
|
+
}>>;
|
|
42
|
+
}>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
2
3
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
4
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
5
|
+
declare const $nsid = "com.atiproto.payment.subscription.create";
|
|
5
6
|
export { $nsid };
|
|
6
7
|
/** Create a subscription to a user. Returns a one-off cart with checkout URL. */
|
|
7
|
-
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<{
|
|
8
9
|
subject: l.StringSchema<{
|
|
9
10
|
readonly format: "did";
|
|
10
11
|
}>;
|
|
@@ -20,11 +21,13 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.create", l.Param
|
|
|
20
21
|
readonly format: "uri";
|
|
21
22
|
}>>;
|
|
22
23
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
24
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
23
25
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
24
|
-
|
|
26
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
27
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
25
28
|
readonly format: "at-uri";
|
|
26
|
-
}
|
|
27
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
29
|
+
}>>;
|
|
30
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
28
31
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
29
32
|
readonly format: "at-uri";
|
|
30
33
|
}>>;
|
|
@@ -39,7 +42,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
39
42
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
40
43
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
41
44
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
42
|
-
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<{
|
|
43
46
|
subject: l.StringSchema<{
|
|
44
47
|
readonly format: "did";
|
|
45
48
|
}>;
|
|
@@ -55,11 +58,13 @@ export declare const $lxm: "com.atiproto.feed.subscription.create", $params: l.P
|
|
|
55
58
|
readonly format: "uri";
|
|
56
59
|
}>>;
|
|
57
60
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
61
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
58
62
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
59
|
-
|
|
63
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
64
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
60
65
|
readonly format: "at-uri";
|
|
61
|
-
}
|
|
62
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
66
|
+
}>>;
|
|
67
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
63
68
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
64
69
|
readonly format: "at-uri";
|
|
65
70
|
}>>;
|
|
@@ -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,20 +1,23 @@
|
|
|
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.payment.subscription.put";
|
|
4
5
|
export { $nsid };
|
|
5
6
|
/** Update a pending subscription. Only pending subscriptions can be updated. */
|
|
6
|
-
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<{
|
|
7
8
|
uri: l.StringSchema<{
|
|
8
9
|
readonly format: "at-uri";
|
|
9
10
|
}>;
|
|
10
11
|
record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
|
|
12
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
11
13
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
-
|
|
14
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
15
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
13
16
|
readonly format: "at-uri";
|
|
14
|
-
}
|
|
15
|
-
cid: l.StringSchema<{
|
|
17
|
+
}>>;
|
|
18
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "cid";
|
|
17
|
-
}
|
|
20
|
+
}>>;
|
|
18
21
|
}>>, undefined>;
|
|
19
22
|
export { main };
|
|
20
23
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -22,16 +25,18 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
22
25
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
23
26
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
24
27
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
25
|
-
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<{
|
|
26
29
|
uri: l.StringSchema<{
|
|
27
30
|
readonly format: "at-uri";
|
|
28
31
|
}>;
|
|
29
32
|
record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
|
|
33
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
30
34
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
31
|
-
|
|
35
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
36
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
32
37
|
readonly format: "at-uri";
|
|
33
|
-
}
|
|
34
|
-
cid: l.StringSchema<{
|
|
38
|
+
}>>;
|
|
39
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
35
40
|
readonly format: "cid";
|
|
36
|
-
}
|
|
41
|
+
}>>;
|
|
37
42
|
}>>;
|
|
@@ -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
|
}>>;
|