@atiproto/lexicons 1.1.0 → 2.0.0-beta.1
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.d.ts +1 -1
- package/dist/index.js +3455 -2465
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3452 -2465
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/authCreateCart.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authCreateCart.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authCreatePayment.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authCreatePayment.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authReadCart.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authReadCart.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authReadEntitlements.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authReadEntitlements.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authReadPayments.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authReadPayments.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authReadPublic.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authReadPublic.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authReadRecipient.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authReadRecipient.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authWriteProfile.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authWriteProfile.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +277 -112
- package/dist/lexicons/com/atiproto/item.defs.d.ts +97 -202
- package/dist/lexicons/com/atiproto/payment/cart/checkout.d.ts +2 -0
- package/dist/lexicons/com/atiproto/payment/cart/checkout.defs.d.ts +69 -0
- package/dist/lexicons/com/atiproto/payment/cart/create.defs.d.ts +11 -21
- package/dist/lexicons/com/atiproto/payment/cart/get.defs.d.ts +7 -42
- package/dist/lexicons/com/atiproto/payment/cart/list.defs.d.ts +17 -20
- package/dist/lexicons/com/atiproto/payment/cart/put.defs.d.ts +3 -13
- package/dist/lexicons/com/atiproto/payment/cart.d.ts +1 -1
- package/dist/lexicons/com/atiproto/payment/item/create.defs.d.ts +19 -53
- package/dist/lexicons/com/atiproto/payment/item/get.defs.d.ts +5 -17
- package/dist/lexicons/com/atiproto/payment/item/list.defs.d.ts +1 -7
- package/dist/lexicons/com/atiproto/payment/item/put.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/payment/item.d.ts +0 -1
- package/dist/lexicons/com/atiproto/payment/subscription/cancel.defs.d.ts +1 -7
- package/dist/lexicons/com/atiproto/payment/subscription/create.defs.d.ts +22 -45
- package/dist/lexicons/com/atiproto/payment/subscription/get.defs.d.ts +5 -11
- package/dist/lexicons/com/atiproto/payment/subscription/list.defs.d.ts +7 -1
- package/dist/lexicons/com/atiproto/payment/subscription/put.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/payment/subscription.d.ts +0 -1
- package/dist/lexicons/com/atiproto/payment.d.ts +0 -1
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +26 -143
- package/dist/lexicons/com/atiproto/recipient/payment/cart/get.defs.d.ts +7 -33
- package/dist/lexicons/com/atiproto/recipient/payment/cart/list.defs.d.ts +23 -20
- package/dist/lexicons/com/atiproto/recipient/payment/item/get.defs.d.ts +5 -17
- package/dist/lexicons/com/atiproto/recipient/payment/item/list.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/recipient/payment/item.d.ts +0 -1
- package/dist/lexicons/com/atiproto/recipient/payment/subscription/get.defs.d.ts +5 -11
- package/dist/lexicons/com/atiproto/recipient/payment/subscription/list.defs.d.ts +13 -1
- package/dist/lexicons/com/atiproto/recipient/payment/subscription.d.ts +0 -1
- package/dist/lexicons/com/atiproto/recipient/profile/get.defs.d.ts +39 -19
- package/dist/lexicons/com/atiproto/repo/item/count.defs.d.ts +3 -9
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +6 -0
- package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +5 -5
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +90 -157
- package/dist/lexicons/com/atiproto.d.ts +8 -2
- package/dist/lexicons/com/atproto/repo/strongRef.d.ts +2 -0
- package/dist/lexicons/com/atproto/repo/strongRef.defs.d.ts +56 -0
- package/dist/lexicons/com/atproto/repo.d.ts +1 -0
- package/dist/lexicons/com/atproto.d.ts +1 -0
- package/dist/lexicons/com.d.ts +1 -0
- package/dist/lexicons/index.d.ts +1 -0
- package/dist/lexicons/network/attested/entitlement.d.ts +2 -0
- package/dist/lexicons/network/attested/entitlement.defs.d.ts +185 -0
- package/dist/lexicons/network/attested/payment/initiate.d.ts +2 -0
- package/dist/lexicons/network/attested/payment/initiate.defs.d.ts +102 -0
- package/dist/lexicons/network/attested/payment/status.d.ts +2 -0
- package/dist/lexicons/network/attested/payment/status.defs.d.ts +56 -0
- package/dist/lexicons/network/attested/payment.d.ts +4 -0
- package/dist/lexicons/network/attested/payment.defs.d.ts +156 -0
- package/dist/lexicons/network/attested/proof.d.ts +2 -0
- package/dist/lexicons/network/attested/proof.defs.d.ts +172 -0
- package/dist/lexicons/network/attested/signature.d.ts +2 -0
- package/dist/lexicons/network/attested/signature.defs.d.ts +230 -0
- package/dist/lexicons/network/attested/verify.d.ts +2 -0
- package/dist/lexicons/network/attested/verify.defs.d.ts +41 -0
- package/dist/lexicons/network/attested.d.ts +5 -0
- package/dist/lexicons/network.d.ts +1 -0
- package/dist/schemas.d.ts +2 -0
- package/package.json +6 -2
- package/dist/lexicons/com/atiproto/payment/cart/clone.d.ts +0 -2
- package/dist/lexicons/com/atiproto/payment/cart/clone.defs.d.ts +0 -54
- package/dist/lexicons/com/atiproto/payment/item/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/payment/item/validate.defs.d.ts +0 -50
- package/dist/lexicons/com/atiproto/payment/list.d.ts +0 -2
- package/dist/lexicons/com/atiproto/payment/list.defs.d.ts +0 -32
- package/dist/lexicons/com/atiproto/payment/subscription/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/payment/subscription/validate.defs.d.ts +0 -44
- package/dist/lexicons/com/atiproto/recipient/payment/item/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/recipient/payment/item/validate.defs.d.ts +0 -50
- package/dist/lexicons/com/atiproto/recipient/payment/subscription/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/recipient/payment/subscription/validate.defs.d.ts +0 -44
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.payment.subscription.validate";
|
|
3
|
-
export { $nsid };
|
|
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.payment.subscription.validate", l.ParamsSchema<{
|
|
6
|
-
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
7
|
-
readonly format: "at-uri";
|
|
8
|
-
}>>;
|
|
9
|
-
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
10
|
-
readonly format: "did";
|
|
11
|
-
}>>;
|
|
12
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
13
|
-
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
|
-
valid: l.BooleanSchema;
|
|
15
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
16
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
17
|
-
readonly maxLength: 3;
|
|
18
|
-
}>>;
|
|
19
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
20
|
-
readonly maxLength: 1024;
|
|
21
|
-
}>>;
|
|
22
|
-
}>>, undefined>;
|
|
23
|
-
export { main };
|
|
24
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
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.payment.subscription.validate", $params: l.ParamsSchema<{
|
|
28
|
-
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
29
|
-
readonly format: "at-uri";
|
|
30
|
-
}>>;
|
|
31
|
-
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
32
|
-
readonly format: "did";
|
|
33
|
-
}>>;
|
|
34
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
35
|
-
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
36
|
-
valid: l.BooleanSchema;
|
|
37
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
38
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
39
|
-
readonly maxLength: 3;
|
|
40
|
-
}>>;
|
|
41
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
42
|
-
readonly maxLength: 1024;
|
|
43
|
-
}>>;
|
|
44
|
-
}>>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.recipient.payment.item.validate";
|
|
3
|
-
export { $nsid };
|
|
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
|
-
readonly format: "at-uri";
|
|
8
|
-
}>>;
|
|
9
|
-
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
10
|
-
readonly format: "at-uri";
|
|
11
|
-
}>>;
|
|
12
|
-
readonly sender: 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.recipient.payment.item.validate", $params: l.ParamsSchema<{
|
|
31
|
-
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
32
|
-
readonly format: "at-uri";
|
|
33
|
-
}>>;
|
|
34
|
-
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
35
|
-
readonly format: "at-uri";
|
|
36
|
-
}>>;
|
|
37
|
-
readonly sender: 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,44 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.recipient.payment.subscription.validate";
|
|
3
|
-
export { $nsid };
|
|
4
|
-
/** Validate that a sender has an active, Stripe-verified subscription to the authenticated user (as the recipient/subject). Looks up by subscriptionUri (a specific subscription record) or sender (subscriber DID). These are mutually exclusive; subscriptionUri takes precedence. */
|
|
5
|
-
declare const main: l.Query<"com.atiproto.recipient.payment.subscription.validate", l.ParamsSchema<{
|
|
6
|
-
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
7
|
-
readonly format: "at-uri";
|
|
8
|
-
}>>;
|
|
9
|
-
readonly sender: l.OptionalSchema<l.StringSchema<{
|
|
10
|
-
readonly format: "did";
|
|
11
|
-
}>>;
|
|
12
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
13
|
-
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
|
-
valid: l.BooleanSchema;
|
|
15
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
16
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
17
|
-
readonly maxLength: 3;
|
|
18
|
-
}>>;
|
|
19
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
20
|
-
readonly maxLength: 1024;
|
|
21
|
-
}>>;
|
|
22
|
-
}>>, undefined>;
|
|
23
|
-
export { main };
|
|
24
|
-
export type $Params = l.InferMethodParams<typeof main>;
|
|
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.recipient.payment.subscription.validate", $params: l.ParamsSchema<{
|
|
28
|
-
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
29
|
-
readonly format: "at-uri";
|
|
30
|
-
}>>;
|
|
31
|
-
readonly sender: l.OptionalSchema<l.StringSchema<{
|
|
32
|
-
readonly format: "did";
|
|
33
|
-
}>>;
|
|
34
|
-
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
35
|
-
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
36
|
-
valid: l.BooleanSchema;
|
|
37
|
-
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
38
|
-
currency: l.OptionalSchema<l.StringSchema<{
|
|
39
|
-
readonly maxLength: 3;
|
|
40
|
-
}>>;
|
|
41
|
-
reason: l.OptionalSchema<l.StringSchema<{
|
|
42
|
-
readonly maxLength: 1024;
|
|
43
|
-
}>>;
|
|
44
|
-
}>>;
|