@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,35 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoSubscription from '../../subscription.defs.js';
3
+ declare const $nsid = "com.atiproto.feed.subscription.get";
4
+ export { $nsid };
5
+ /** Get a specific subscription by URI */
6
+ declare const main: l.Query<"com.atiproto.feed.subscription.get", l.ParamsSchema<{
7
+ readonly uri: l.StringSchema<{
8
+ readonly format: "at-uri";
9
+ }>;
10
+ }>, l.Payload<"application/json", l.ObjectSchema<{
11
+ uri: l.StringSchema<{
12
+ readonly format: "at-uri";
13
+ }>;
14
+ cid: l.StringSchema<{
15
+ readonly format: "cid";
16
+ }>;
17
+ record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
18
+ }>>, undefined>;
19
+ export { main };
20
+ export type $Params = l.InferMethodParams<typeof main>;
21
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
22
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
23
+ export declare const $lxm: "com.atiproto.feed.subscription.get", $params: l.ParamsSchema<{
24
+ readonly uri: l.StringSchema<{
25
+ readonly format: "at-uri";
26
+ }>;
27
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
28
+ uri: l.StringSchema<{
29
+ readonly format: "at-uri";
30
+ }>;
31
+ cid: l.StringSchema<{
32
+ readonly format: "cid";
33
+ }>;
34
+ record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
35
+ }>>;
@@ -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.$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.get';
43
+ exports.$nsid = $nsid;
44
+ /** Get a specific subscription by URI */
45
+ const main = lex_1.l.query($nsid, lex_1.l.params({ uri: lex_1.l.string({ format: 'at-uri' }) }), lex_1.l.jsonPayload({
46
+ uri: lex_1.l.string({ format: 'at-uri' }),
47
+ cid: lex_1.l.string({ format: 'cid' }),
48
+ record: lex_1.l.ref((() => AtiprotoSubscription.main)),
49
+ }));
50
+ exports.main = main;
51
+ 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("./get.defs.js"), exports);
44
+ exports.$defs = __importStar(require("./get.defs.js"));
@@ -0,0 +1,2 @@
1
+ export * from './list.defs.js';
2
+ export * as $defs from './list.defs.js';
@@ -0,0 +1,28 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoSubscription from '../../subscription.defs.js';
3
+ declare const $nsid = "com.atiproto.feed.subscription.list";
4
+ export { $nsid };
5
+ /** List subscriptions for the authenticated user */
6
+ declare const main: l.Query<"com.atiproto.feed.subscription.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
8
+ cursor: l.OptionalSchema<l.StringSchema<{}>>;
9
+ }>>, undefined>;
10
+ export { main };
11
+ export type $Params = l.InferMethodParams<typeof main>;
12
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
13
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
14
+ export declare const $lxm: "com.atiproto.feed.subscription.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
15
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
16
+ cursor: l.OptionalSchema<l.StringSchema<{}>>;
17
+ }>>;
18
+ type SubscriptionResponse = {
19
+ $type?: 'com.atiproto.feed.subscription.list#subscriptionResponse';
20
+ /**
21
+ * AT-URI of the subscription record
22
+ */
23
+ uri: l.AtUriString;
24
+ record: AtiprotoSubscription.Main;
25
+ };
26
+ export type { SubscriptionResponse };
27
+ declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.feed.subscription.list#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
28
+ export { subscriptionResponse };
@@ -0,0 +1,55 @@
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.subscriptionResponse = exports.$output = 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.list';
43
+ exports.$nsid = $nsid;
44
+ /** List subscriptions for the authenticated user */
45
+ const main = lex_1.l.query($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
46
+ subscriptions: lex_1.l.array(lex_1.l.ref((() => subscriptionResponse))),
47
+ cursor: lex_1.l.optional(lex_1.l.string()),
48
+ }));
49
+ exports.main = main;
50
+ exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
51
+ const subscriptionResponse = lex_1.l.typedObject($nsid, 'subscriptionResponse', lex_1.l.object({
52
+ uri: lex_1.l.string({ format: 'at-uri' }),
53
+ record: lex_1.l.ref((() => AtiprotoSubscription.main)),
54
+ }));
55
+ exports.subscriptionResponse = subscriptionResponse;
@@ -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 './put.defs.js';
2
+ export * as $defs from './put.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.put";
4
+ export { $nsid };
5
+ /** Update a pending subscription. Only pending subscriptions can be updated. */
6
+ declare const main: l.Procedure<"com.atiproto.feed.subscription.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
+ uri: l.StringSchema<{
8
+ readonly format: "at-uri";
9
+ }>;
10
+ record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
11
+ }>>, l.Payload<"application/json", l.ObjectSchema<{
12
+ uri: l.StringSchema<{
13
+ readonly format: "at-uri";
14
+ }>;
15
+ cid: l.StringSchema<{
16
+ readonly format: "cid";
17
+ }>;
18
+ }>>, undefined>;
19
+ export { main };
20
+ export type $Params = l.InferMethodParams<typeof main>;
21
+ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
22
+ export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
23
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
24
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
25
+ export declare const $lxm: "com.atiproto.feed.subscription.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
26
+ uri: l.StringSchema<{
27
+ readonly format: "at-uri";
28
+ }>;
29
+ record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
30
+ }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
31
+ uri: l.StringSchema<{
32
+ readonly format: "at-uri";
33
+ }>;
34
+ cid: l.StringSchema<{
35
+ readonly format: "cid";
36
+ }>;
37
+ }>>;
@@ -0,0 +1,53 @@
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.put';
43
+ exports.$nsid = $nsid;
44
+ /** Update a pending subscription. Only pending subscriptions can be updated. */
45
+ const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
46
+ uri: lex_1.l.string({ format: 'at-uri' }),
47
+ record: lex_1.l.ref((() => AtiprotoSubscription.main)),
48
+ }), lex_1.l.jsonPayload({
49
+ uri: lex_1.l.string({ format: 'at-uri' }),
50
+ cid: lex_1.l.string({ format: 'cid' }),
51
+ }));
52
+ exports.main = main;
53
+ 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("./put.defs.js"), exports);
44
+ exports.$defs = __importStar(require("./put.defs.js"));
@@ -0,0 +1,5 @@
1
+ export * as cancel from './subscription/cancel.js';
2
+ export * as create from './subscription/create.js';
3
+ export * as 'get' from './subscription/get.js';
4
+ export * as list from './subscription/list.js';
5
+ export * as put from './subscription/put.js';
@@ -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 __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.put = exports.list = exports["get"] = exports.create = exports.cancel = void 0;
40
+ exports.cancel = __importStar(require("./subscription/cancel.js"));
41
+ exports.create = __importStar(require("./subscription/create.js"));
42
+ exports["get"] = __importStar(require("./subscription/get.js"));
43
+ exports.list = __importStar(require("./subscription/list.js"));
44
+ exports.put = __importStar(require("./subscription/put.js"));
@@ -0,0 +1,2 @@
1
+ export * from './create.defs.js';
2
+ export * as $defs from './create.defs.js';
@@ -0,0 +1,76 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoTip from '../../tip.defs.js';
3
+ import * as AtiprotoCart from '../../cart.defs.js';
4
+ declare const $nsid = "com.atiproto.feed.tip.create";
5
+ export { $nsid };
6
+ /** Create a tip on a DID or specific record. Creates or adds to a cart and returns a checkout URL. */
7
+ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
8
+ subject: l.StringSchema<{
9
+ readonly format: "did";
10
+ }>;
11
+ recordUri: l.OptionalSchema<l.StringSchema<{
12
+ readonly format: "at-uri";
13
+ }>>;
14
+ amount: l.IntegerSchema;
15
+ currency: l.StringSchema<{}>;
16
+ cartUri: l.OptionalSchema<l.StringSchema<{
17
+ readonly format: "at-uri";
18
+ }>>;
19
+ redirectUrl: l.OptionalSchema<l.StringSchema<{
20
+ readonly format: "uri";
21
+ }>>;
22
+ message: l.OptionalSchema<l.StringSchema<{
23
+ readonly maxGraphemes: 500;
24
+ readonly maxLength: 5000;
25
+ }>>;
26
+ }>>, l.Payload<"application/json", l.ObjectSchema<{
27
+ tipUri: l.StringSchema<{
28
+ readonly format: "at-uri";
29
+ }>;
30
+ tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
31
+ cartUri: l.StringSchema<{
32
+ readonly format: "at-uri";
33
+ }>;
34
+ cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
35
+ checkoutUrl: l.StringSchema<{
36
+ readonly format: "uri";
37
+ }>;
38
+ }>>, undefined>;
39
+ export { main };
40
+ export type $Params = l.InferMethodParams<typeof main>;
41
+ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
42
+ export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
43
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
44
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
45
+ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
46
+ subject: l.StringSchema<{
47
+ readonly format: "did";
48
+ }>;
49
+ recordUri: l.OptionalSchema<l.StringSchema<{
50
+ readonly format: "at-uri";
51
+ }>>;
52
+ amount: l.IntegerSchema;
53
+ currency: l.StringSchema<{}>;
54
+ cartUri: l.OptionalSchema<l.StringSchema<{
55
+ readonly format: "at-uri";
56
+ }>>;
57
+ redirectUrl: l.OptionalSchema<l.StringSchema<{
58
+ readonly format: "uri";
59
+ }>>;
60
+ message: l.OptionalSchema<l.StringSchema<{
61
+ readonly maxGraphemes: 500;
62
+ readonly maxLength: 5000;
63
+ }>>;
64
+ }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
65
+ tipUri: l.StringSchema<{
66
+ readonly format: "at-uri";
67
+ }>;
68
+ tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
69
+ cartUri: l.StringSchema<{
70
+ readonly format: "at-uri";
71
+ }>;
72
+ cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
73
+ checkoutUrl: l.StringSchema<{
74
+ readonly format: "uri";
75
+ }>;
76
+ }>>;
@@ -0,0 +1,62 @@
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 AtiprotoTip = __importStar(require("../../tip.defs.js"));
42
+ const AtiprotoCart = __importStar(require("../../cart.defs.js"));
43
+ const $nsid = 'com.atiproto.feed.tip.create';
44
+ exports.$nsid = $nsid;
45
+ /** Create a tip on a DID or specific record. Creates or adds to a cart and returns a 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
+ recordUri: lex_1.l.optional(lex_1.l.string({ format: 'at-uri' })),
49
+ amount: lex_1.l.integer(),
50
+ currency: lex_1.l.string(),
51
+ cartUri: lex_1.l.optional(lex_1.l.string({ format: 'at-uri' })),
52
+ redirectUrl: lex_1.l.optional(lex_1.l.string({ format: 'uri' })),
53
+ message: lex_1.l.optional(lex_1.l.string({ maxGraphemes: 500, maxLength: 5000 })),
54
+ }), lex_1.l.jsonPayload({
55
+ tipUri: lex_1.l.string({ format: 'at-uri' }),
56
+ tip: lex_1.l.ref((() => AtiprotoTip.main)),
57
+ cartUri: lex_1.l.string({ format: 'at-uri' }),
58
+ cart: lex_1.l.ref((() => AtiprotoCart.main)),
59
+ checkoutUrl: lex_1.l.string({ format: 'uri' }),
60
+ }));
61
+ exports.main = main;
62
+ 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';