@atiproto/lexicons 0.0.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.
Files changed (161) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +20 -0
  3. package/dist/lexicons/com/atiproto/account/cart/clone.d.ts +2 -0
  4. package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +49 -0
  5. package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +58 -0
  6. package/dist/lexicons/com/atiproto/account/cart/clone.js +44 -0
  7. package/dist/lexicons/com/atiproto/account/cart/create.d.ts +2 -0
  8. package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +39 -0
  9. package/dist/lexicons/com/atiproto/account/cart/create.defs.js +54 -0
  10. package/dist/lexicons/com/atiproto/account/cart/create.js +44 -0
  11. package/dist/lexicons/com/atiproto/account/cart/get.d.ts +2 -0
  12. package/dist/lexicons/com/atiproto/account/cart/get.defs.d.ts +47 -0
  13. package/dist/lexicons/com/atiproto/account/cart/get.defs.js +56 -0
  14. package/dist/lexicons/com/atiproto/account/cart/get.js +44 -0
  15. package/dist/lexicons/com/atiproto/account/cart/list.d.ts +2 -0
  16. package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +32 -0
  17. package/dist/lexicons/com/atiproto/account/cart/list.defs.js +56 -0
  18. package/dist/lexicons/com/atiproto/account/cart/list.js +44 -0
  19. package/dist/lexicons/com/atiproto/account/cart/put.d.ts +2 -0
  20. package/dist/lexicons/com/atiproto/account/cart/put.defs.d.ts +37 -0
  21. package/dist/lexicons/com/atiproto/account/cart/put.defs.js +53 -0
  22. package/dist/lexicons/com/atiproto/account/cart/put.js +44 -0
  23. package/dist/lexicons/com/atiproto/account/cart.d.ts +5 -0
  24. package/dist/lexicons/com/atiproto/account/cart.js +44 -0
  25. package/dist/lexicons/com/atiproto/account/profile/get.d.ts +2 -0
  26. package/dist/lexicons/com/atiproto/account/profile/get.defs.d.ts +31 -0
  27. package/dist/lexicons/com/atiproto/account/profile/get.defs.js +53 -0
  28. package/dist/lexicons/com/atiproto/account/profile/get.js +44 -0
  29. package/dist/lexicons/com/atiproto/account/profile/put.d.ts +2 -0
  30. package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +47 -0
  31. package/dist/lexicons/com/atiproto/account/profile/put.defs.js +60 -0
  32. package/dist/lexicons/com/atiproto/account/profile/put.js +44 -0
  33. package/dist/lexicons/com/atiproto/account/profile.d.ts +2 -0
  34. package/dist/lexicons/com/atiproto/account/profile.js +41 -0
  35. package/dist/lexicons/com/atiproto/account.d.ts +2 -0
  36. package/dist/lexicons/com/atiproto/account.js +41 -0
  37. package/dist/lexicons/com/atiproto/cart.d.ts +2 -0
  38. package/dist/lexicons/com/atiproto/cart.defs.d.ts +147 -0
  39. package/dist/lexicons/com/atiproto/cart.defs.js +27 -0
  40. package/dist/lexicons/com/atiproto/cart.js +44 -0
  41. package/dist/lexicons/com/atiproto/feed/list.d.ts +2 -0
  42. package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +18 -0
  43. package/dist/lexicons/com/atiproto/feed/list.defs.js +54 -0
  44. package/dist/lexicons/com/atiproto/feed/list.js +44 -0
  45. package/dist/lexicons/com/atiproto/feed/subscription/cancel.d.ts +2 -0
  46. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +37 -0
  47. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +51 -0
  48. package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +44 -0
  49. package/dist/lexicons/com/atiproto/feed/subscription/create.d.ts +2 -0
  50. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +52 -0
  51. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +59 -0
  52. package/dist/lexicons/com/atiproto/feed/subscription/create.js +44 -0
  53. package/dist/lexicons/com/atiproto/feed/subscription/get.d.ts +2 -0
  54. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +35 -0
  55. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +51 -0
  56. package/dist/lexicons/com/atiproto/feed/subscription/get.js +44 -0
  57. package/dist/lexicons/com/atiproto/feed/subscription/list.d.ts +2 -0
  58. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +28 -0
  59. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +55 -0
  60. package/dist/lexicons/com/atiproto/feed/subscription/list.js +44 -0
  61. package/dist/lexicons/com/atiproto/feed/subscription/put.d.ts +2 -0
  62. package/dist/lexicons/com/atiproto/feed/subscription/put.defs.d.ts +37 -0
  63. package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +53 -0
  64. package/dist/lexicons/com/atiproto/feed/subscription/put.js +44 -0
  65. package/dist/lexicons/com/atiproto/feed/subscription.d.ts +5 -0
  66. package/dist/lexicons/com/atiproto/feed/subscription.js +44 -0
  67. package/dist/lexicons/com/atiproto/feed/tip/create.d.ts +2 -0
  68. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +76 -0
  69. package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +62 -0
  70. package/dist/lexicons/com/atiproto/feed/tip/create.js +44 -0
  71. package/dist/lexicons/com/atiproto/feed/tip/get.d.ts +2 -0
  72. package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +35 -0
  73. package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +51 -0
  74. package/dist/lexicons/com/atiproto/feed/tip/get.js +44 -0
  75. package/dist/lexicons/com/atiproto/feed/tip/list.d.ts +2 -0
  76. package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +17 -0
  77. package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +50 -0
  78. package/dist/lexicons/com/atiproto/feed/tip/list.js +44 -0
  79. package/dist/lexicons/com/atiproto/feed/tip/put.d.ts +2 -0
  80. package/dist/lexicons/com/atiproto/feed/tip/put.defs.d.ts +37 -0
  81. package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +53 -0
  82. package/dist/lexicons/com/atiproto/feed/tip/put.js +44 -0
  83. package/dist/lexicons/com/atiproto/feed/tip.d.ts +4 -0
  84. package/dist/lexicons/com/atiproto/feed/tip.js +43 -0
  85. package/dist/lexicons/com/atiproto/feed.d.ts +3 -0
  86. package/dist/lexicons/com/atiproto/feed.js +42 -0
  87. package/dist/lexicons/com/atiproto/profile.d.ts +2 -0
  88. package/dist/lexicons/com/atiproto/profile.defs.d.ts +377 -0
  89. package/dist/lexicons/com/atiproto/profile.defs.js +32 -0
  90. package/dist/lexicons/com/atiproto/profile.js +44 -0
  91. package/dist/lexicons/com/atiproto/repo/profile/get.d.ts +2 -0
  92. package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +29 -0
  93. package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +50 -0
  94. package/dist/lexicons/com/atiproto/repo/profile/get.js +44 -0
  95. package/dist/lexicons/com/atiproto/repo/profile.d.ts +1 -0
  96. package/dist/lexicons/com/atiproto/repo/profile.js +40 -0
  97. package/dist/lexicons/com/atiproto/repo/subscription/search.d.ts +2 -0
  98. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +40 -0
  99. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +59 -0
  100. package/dist/lexicons/com/atiproto/repo/subscription/search.js +44 -0
  101. package/dist/lexicons/com/atiproto/repo/subscription/validate.d.ts +2 -0
  102. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +36 -0
  103. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +22 -0
  104. package/dist/lexicons/com/atiproto/repo/subscription/validate.js +44 -0
  105. package/dist/lexicons/com/atiproto/repo/subscription.d.ts +2 -0
  106. package/dist/lexicons/com/atiproto/repo/subscription.js +41 -0
  107. package/dist/lexicons/com/atiproto/repo/tip/search.d.ts +2 -0
  108. package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +40 -0
  109. package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +59 -0
  110. package/dist/lexicons/com/atiproto/repo/tip/search.js +44 -0
  111. package/dist/lexicons/com/atiproto/repo/tip/validate.d.ts +2 -0
  112. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +42 -0
  113. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +23 -0
  114. package/dist/lexicons/com/atiproto/repo/tip/validate.js +44 -0
  115. package/dist/lexicons/com/atiproto/repo/tip.d.ts +2 -0
  116. package/dist/lexicons/com/atiproto/repo/tip.js +41 -0
  117. package/dist/lexicons/com/atiproto/repo.d.ts +3 -0
  118. package/dist/lexicons/com/atiproto/repo.js +42 -0
  119. package/dist/lexicons/com/atiproto/subscription.d.ts +2 -0
  120. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +244 -0
  121. package/dist/lexicons/com/atiproto/subscription.defs.js +24 -0
  122. package/dist/lexicons/com/atiproto/subscription.js +44 -0
  123. package/dist/lexicons/com/atiproto/tip.d.ts +2 -0
  124. package/dist/lexicons/com/atiproto/tip.defs.d.ts +230 -0
  125. package/dist/lexicons/com/atiproto/tip.defs.js +29 -0
  126. package/dist/lexicons/com/atiproto/tip.js +44 -0
  127. package/dist/lexicons/com/atiproto.d.ts +7 -0
  128. package/dist/lexicons/com/atiproto.js +46 -0
  129. package/dist/lexicons/com.d.ts +1 -0
  130. package/dist/lexicons/com.js +40 -0
  131. package/dist/lexicons/index.d.ts +1 -0
  132. package/dist/lexicons/index.js +40 -0
  133. package/dist/schemas/account/cart/clone.json +75 -0
  134. package/dist/schemas/account/cart/create.json +52 -0
  135. package/dist/schemas/account/cart/get.json +66 -0
  136. package/dist/schemas/account/cart/list.json +73 -0
  137. package/dist/schemas/account/cart/put.json +47 -0
  138. package/dist/schemas/account/profile/get.json +42 -0
  139. package/dist/schemas/account/profile/put.json +84 -0
  140. package/dist/schemas/cart.json +74 -0
  141. package/dist/schemas/feed/list.json +49 -0
  142. package/dist/schemas/feed/subscription/cancel.json +48 -0
  143. package/dist/schemas/feed/subscription/create.json +76 -0
  144. package/dist/schemas/feed/subscription/get.json +45 -0
  145. package/dist/schemas/feed/subscription/list.json +64 -0
  146. package/dist/schemas/feed/subscription/put.json +47 -0
  147. package/dist/schemas/feed/tip/create.json +87 -0
  148. package/dist/schemas/feed/tip/get.json +45 -0
  149. package/dist/schemas/feed/tip/list.json +49 -0
  150. package/dist/schemas/feed/tip/put.json +47 -0
  151. package/dist/schemas/profile.json +88 -0
  152. package/dist/schemas/repo/profile/get.json +40 -0
  153. package/dist/schemas/repo/subscription/search.json +67 -0
  154. package/dist/schemas/repo/subscription/validate.json +55 -0
  155. package/dist/schemas/repo/tip/search.json +67 -0
  156. package/dist/schemas/repo/tip/validate.json +60 -0
  157. package/dist/schemas/subscription.json +67 -0
  158. package/dist/schemas/tip.json +57 -0
  159. package/dist/schemas.d.ts +2 -0
  160. package/dist/schemas.js +60 -0
  161. package/package.json +31 -0
@@ -0,0 +1,147 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.cart";
3
+ export { $nsid };
4
+ /** A record representing a shopping cart for tips/subscriptions */
5
+ type Main = {
6
+ $type: 'com.atiproto.cart';
7
+ items: CartItem[];
8
+ /**
9
+ * ISO 4217 currency code
10
+ */
11
+ currency: string;
12
+ /**
13
+ * Total amount in cents
14
+ */
15
+ total: number;
16
+ /**
17
+ * Cart status: open, completed, expired, abandoned
18
+ */
19
+ status: string;
20
+ /**
21
+ * Creation timestamp
22
+ */
23
+ createdAt: l.DatetimeString;
24
+ /**
25
+ * Expiration timestamp
26
+ */
27
+ expiresAt: l.DatetimeString;
28
+ /**
29
+ * Completion timestamp
30
+ */
31
+ completedAt?: l.DatetimeString;
32
+ };
33
+ export type { Main };
34
+ /** A record representing a shopping cart for tips/subscriptions */
35
+ declare const main: l.RecordSchema<"any", "com.atiproto.cart", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
36
+ export { main };
37
+ export declare const $isTypeOf: <TValue extends {
38
+ $type?: unknown;
39
+ }>(value: TValue) => value is l.TypedRecord<"com.atiproto.cart", TValue>, $build: {
40
+ (input: Omit<Omit<Main, "$type">, "$type">): {
41
+ items: CartItem[];
42
+ currency: string;
43
+ total: number;
44
+ status: string;
45
+ createdAt: l.DatetimeString;
46
+ expiresAt: l.DatetimeString;
47
+ completedAt?: l.DatetimeString | undefined;
48
+ $type: "com.atiproto.cart";
49
+ };
50
+ (input: Omit<Omit<Main, "$type">, "$type">): {
51
+ items: CartItem[];
52
+ currency: string;
53
+ total: number;
54
+ status: string;
55
+ createdAt: l.DatetimeString;
56
+ expiresAt: l.DatetimeString;
57
+ completedAt?: l.DatetimeString | undefined;
58
+ $type: "com.atiproto.cart";
59
+ };
60
+ }, $type: "com.atiproto.cart";
61
+ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
62
+ items: CartItem[];
63
+ currency: string;
64
+ total: number;
65
+ status: string;
66
+ createdAt: l.DatetimeString;
67
+ expiresAt: l.DatetimeString;
68
+ completedAt?: l.DatetimeString | undefined;
69
+ $type: "com.atiproto.cart";
70
+ }, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
71
+ items: CartItem[];
72
+ currency: string;
73
+ total: number;
74
+ status: string;
75
+ createdAt: l.DatetimeString;
76
+ expiresAt: l.DatetimeString;
77
+ completedAt?: l.DatetimeString | undefined;
78
+ $type: "com.atiproto.cart";
79
+ }, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
80
+ items: CartItem[];
81
+ currency: string;
82
+ total: number;
83
+ status: string;
84
+ createdAt: l.DatetimeString;
85
+ expiresAt: l.DatetimeString;
86
+ completedAt?: l.DatetimeString | undefined;
87
+ $type: "com.atiproto.cart";
88
+ }) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
89
+ items: CartItem[];
90
+ currency: string;
91
+ total: number;
92
+ status: string;
93
+ createdAt: l.DatetimeString;
94
+ expiresAt: l.DatetimeString;
95
+ completedAt?: l.DatetimeString | undefined;
96
+ $type: "com.atiproto.cart";
97
+ }, $parse: (input: unknown, options?: l.ParseOptions) => {
98
+ items: CartItem[];
99
+ currency: string;
100
+ total: number;
101
+ status: string;
102
+ createdAt: l.DatetimeString;
103
+ expiresAt: l.DatetimeString;
104
+ completedAt?: l.DatetimeString | undefined;
105
+ $type: "com.atiproto.cart";
106
+ }, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
107
+ items: CartItem[];
108
+ currency: string;
109
+ total: number;
110
+ status: string;
111
+ createdAt: l.DatetimeString;
112
+ expiresAt: l.DatetimeString;
113
+ completedAt?: l.DatetimeString | undefined;
114
+ $type: "com.atiproto.cart";
115
+ }>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
116
+ items: CartItem[];
117
+ currency: string;
118
+ total: number;
119
+ status: string;
120
+ createdAt: l.DatetimeString;
121
+ expiresAt: l.DatetimeString;
122
+ completedAt?: l.DatetimeString | undefined;
123
+ $type: "com.atiproto.cart";
124
+ }, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
125
+ items: CartItem[];
126
+ currency: string;
127
+ total: number;
128
+ status: string;
129
+ createdAt: l.DatetimeString;
130
+ expiresAt: l.DatetimeString;
131
+ completedAt?: l.DatetimeString | undefined;
132
+ $type: "com.atiproto.cart";
133
+ }>;
134
+ type CartItem = {
135
+ $type?: 'com.atiproto.cart#cartItem';
136
+ /**
137
+ * Item type: tip or subscription
138
+ */
139
+ type: 'com.atiproto.tip' | 'com.atiproto.subscription';
140
+ /**
141
+ * AT-URI for tip on record
142
+ */
143
+ recordUri: l.AtUriString;
144
+ };
145
+ export type { CartItem };
146
+ declare const cartItem: l.TypedObjectSchema<"com.atiproto.cart#cartItem", l.Validator<CartItem, CartItem>>;
147
+ export { cartItem };
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cartItem = exports.$safeValidate = exports.$validate = exports.$safeParse = exports.$parse = exports.$matches = exports.$ifMatches = exports.$cast = exports.$check = exports.$assert = exports.$type = exports.$build = exports.$isTypeOf = exports.main = exports.$nsid = void 0;
7
+ const lex_1 = require("@atproto/lex");
8
+ const $nsid = 'com.atiproto.cart';
9
+ exports.$nsid = $nsid;
10
+ /** A record representing a shopping cart for tips/subscriptions */
11
+ const main = lex_1.l.record('any', $nsid, lex_1.l.object({
12
+ items: lex_1.l.array(lex_1.l.ref((() => cartItem))),
13
+ currency: lex_1.l.string(),
14
+ total: lex_1.l.integer(),
15
+ status: lex_1.l.string(),
16
+ createdAt: lex_1.l.string({ format: 'datetime' }),
17
+ expiresAt: lex_1.l.string({ format: 'datetime' }),
18
+ completedAt: lex_1.l.optional(lex_1.l.string({ format: 'datetime' })),
19
+ }));
20
+ exports.main = main;
21
+ exports.$isTypeOf = main.isTypeOf.bind(main), exports.$build = main.build.bind(main), exports.$type = main.$type;
22
+ exports.$assert = main.assert.bind(main), exports.$check = main.check.bind(main), exports.$cast = main.cast.bind(main), exports.$ifMatches = main.ifMatches.bind(main), exports.$matches = main.matches.bind(main), exports.$parse = main.parse.bind(main), exports.$safeParse = main.safeParse.bind(main), exports.$validate = main.validate.bind(main), exports.$safeValidate = main.safeValidate.bind(main);
23
+ const cartItem = lex_1.l.typedObject($nsid, 'cartItem', lex_1.l.object({
24
+ type: lex_1.l.enum(['com.atiproto.tip', 'com.atiproto.subscription']),
25
+ recordUri: lex_1.l.string({ format: 'at-uri' }),
26
+ }));
27
+ exports.cartItem = cartItem;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.$defs = void 0;
43
+ __exportStar(require("./cart.defs.js"), exports);
44
+ exports.$defs = __importStar(require("./cart.defs.js"));
@@ -0,0 +1,2 @@
1
+ export * from './list.defs.js';
2
+ export * as $defs from './list.defs.js';
@@ -0,0 +1,18 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoTip from '../tip.defs.js';
3
+ import * as AtiprotoSubscription from '../subscription.defs.js';
4
+ declare const $nsid = "com.atiproto.feed.list";
5
+ export { $nsid };
6
+ /** List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created. */
7
+ declare const main: l.Query<"com.atiproto.feed.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
8
+ items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
9
+ cursor: l.OptionalSchema<l.StringSchema<{}>>;
10
+ }>>, undefined>;
11
+ export { main };
12
+ export type $Params = l.InferMethodParams<typeof main>;
13
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
14
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
15
+ export declare const $lxm: "com.atiproto.feed.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
16
+ items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
17
+ cursor: l.OptionalSchema<l.StringSchema<{}>>;
18
+ }>>;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
40
+ const lex_1 = require("@atproto/lex");
41
+ const AtiprotoTip = __importStar(require("../tip.defs.js"));
42
+ const AtiprotoSubscription = __importStar(require("../subscription.defs.js"));
43
+ const $nsid = 'com.atiproto.feed.list';
44
+ exports.$nsid = $nsid;
45
+ /** List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created. */
46
+ const main = lex_1.l.query($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
47
+ items: lex_1.l.array(lex_1.l.typedUnion([
48
+ lex_1.l.typedRef((() => AtiprotoTip.main)),
49
+ lex_1.l.typedRef((() => AtiprotoSubscription.main)),
50
+ ], false)),
51
+ cursor: lex_1.l.optional(lex_1.l.string()),
52
+ }));
53
+ exports.main = main;
54
+ exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.$defs = void 0;
43
+ __exportStar(require("./list.defs.js"), exports);
44
+ exports.$defs = __importStar(require("./list.defs.js"));
@@ -0,0 +1,2 @@
1
+ export * from './cancel.defs.js';
2
+ export * as $defs from './cancel.defs.js';
@@ -0,0 +1,37 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoSubscription from '../../subscription.defs.js';
3
+ declare const $nsid = "com.atiproto.feed.subscription.cancel";
4
+ export { $nsid };
5
+ /** Cancel an active subscription */
6
+ declare const main: l.Procedure<"com.atiproto.feed.subscription.cancel", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
+ subscriptionUri: l.StringSchema<{
8
+ readonly format: "at-uri";
9
+ }>;
10
+ }>>, l.Payload<"application/json", l.ObjectSchema<{
11
+ subscriptionUri: l.StringSchema<{
12
+ readonly format: "at-uri";
13
+ }>;
14
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
15
+ accessUntil: l.StringSchema<{
16
+ readonly format: "datetime";
17
+ }>;
18
+ }>>, undefined>;
19
+ export { main };
20
+ export type $Params = l.InferMethodParams<typeof main>;
21
+ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
22
+ export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
23
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
24
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
25
+ export declare const $lxm: "com.atiproto.feed.subscription.cancel", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
26
+ subscriptionUri: l.StringSchema<{
27
+ readonly format: "at-uri";
28
+ }>;
29
+ }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
30
+ subscriptionUri: l.StringSchema<{
31
+ readonly format: "at-uri";
32
+ }>;
33
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
34
+ accessUntil: l.StringSchema<{
35
+ readonly format: "datetime";
36
+ }>;
37
+ }>>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.$output = exports.$input = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
40
+ const lex_1 = require("@atproto/lex");
41
+ const AtiprotoSubscription = __importStar(require("../../subscription.defs.js"));
42
+ const $nsid = 'com.atiproto.feed.subscription.cancel';
43
+ exports.$nsid = $nsid;
44
+ /** Cancel an active subscription */
45
+ const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({ subscriptionUri: lex_1.l.string({ format: 'at-uri' }) }), lex_1.l.jsonPayload({
46
+ subscriptionUri: lex_1.l.string({ format: 'at-uri' }),
47
+ subscription: lex_1.l.ref((() => AtiprotoSubscription.main)),
48
+ accessUntil: lex_1.l.string({ format: 'datetime' }),
49
+ }));
50
+ exports.main = main;
51
+ exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$input = main.input, exports.$output = main.output;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.$defs = void 0;
43
+ __exportStar(require("./cancel.defs.js"), exports);
44
+ exports.$defs = __importStar(require("./cancel.defs.js"));
@@ -0,0 +1,2 @@
1
+ export * from './create.defs.js';
2
+ export * as $defs from './create.defs.js';
@@ -0,0 +1,52 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoSubscription from '../../subscription.defs.js';
3
+ import * as AtiprotoCart from '../../cart.defs.js';
4
+ declare const $nsid = "com.atiproto.feed.subscription.create";
5
+ export { $nsid };
6
+ /** Create a subscription to a user. Returns a one-off cart with checkout URL. */
7
+ declare const main: l.Procedure<"com.atiproto.feed.subscription.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
8
+ subject: l.StringSchema<{
9
+ readonly format: "did";
10
+ }>;
11
+ amount: l.OptionalSchema<l.IntegerSchema>;
12
+ currency: l.StringSchema<{}>;
13
+ interval: l.StringSchema<{}>;
14
+ }>>, l.Payload<"application/json", l.ObjectSchema<{
15
+ subscriptionUri: l.StringSchema<{
16
+ readonly format: "at-uri";
17
+ }>;
18
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
19
+ cartUri: l.StringSchema<{
20
+ readonly format: "at-uri";
21
+ }>;
22
+ cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
23
+ checkoutUrl: l.StringSchema<{
24
+ readonly format: "uri";
25
+ }>;
26
+ }>>, undefined>;
27
+ export { main };
28
+ export type $Params = l.InferMethodParams<typeof main>;
29
+ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
30
+ export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
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.feed.subscription.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
34
+ subject: l.StringSchema<{
35
+ readonly format: "did";
36
+ }>;
37
+ amount: l.OptionalSchema<l.IntegerSchema>;
38
+ currency: l.StringSchema<{}>;
39
+ interval: l.StringSchema<{}>;
40
+ }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
41
+ subscriptionUri: l.StringSchema<{
42
+ readonly format: "at-uri";
43
+ }>;
44
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
45
+ cartUri: l.StringSchema<{
46
+ readonly format: "at-uri";
47
+ }>;
48
+ cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
49
+ checkoutUrl: l.StringSchema<{
50
+ readonly format: "uri";
51
+ }>;
52
+ }>>;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.$output = exports.$input = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
40
+ const lex_1 = require("@atproto/lex");
41
+ const AtiprotoSubscription = __importStar(require("../../subscription.defs.js"));
42
+ const AtiprotoCart = __importStar(require("../../cart.defs.js"));
43
+ const $nsid = 'com.atiproto.feed.subscription.create';
44
+ exports.$nsid = $nsid;
45
+ /** Create a subscription to a user. Returns a one-off cart with checkout URL. */
46
+ const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
47
+ subject: lex_1.l.string({ format: 'did' }),
48
+ amount: lex_1.l.optional(lex_1.l.integer()),
49
+ currency: lex_1.l.string(),
50
+ interval: lex_1.l.string(),
51
+ }), lex_1.l.jsonPayload({
52
+ subscriptionUri: lex_1.l.string({ format: 'at-uri' }),
53
+ subscription: lex_1.l.ref((() => AtiprotoSubscription.main)),
54
+ cartUri: lex_1.l.string({ format: 'at-uri' }),
55
+ cart: lex_1.l.ref((() => AtiprotoCart.main)),
56
+ checkoutUrl: lex_1.l.string({ format: 'uri' }),
57
+ }));
58
+ exports.main = main;
59
+ exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$input = main.input, exports.$output = main.output;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /*
3
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.$defs = void 0;
43
+ __exportStar(require("./create.defs.js"), exports);
44
+ exports.$defs = __importStar(require("./create.defs.js"));
@@ -0,0 +1,2 @@
1
+ export * from './get.defs.js';
2
+ export * as $defs from './get.defs.js';