@atiproto/lexicons 0.0.1 → 0.1.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 (103) hide show
  1. package/dist/index.js +2940 -19
  2. package/dist/index.js.map +1 -0
  3. package/dist/index.mjs +2919 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +2 -8
  6. package/dist/lexicons/com/atiproto/profile.defs.d.ts +10 -159
  7. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +3 -3
  8. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +2 -2
  9. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +20 -20
  10. package/dist/lexicons/com/atiproto/tip.defs.d.ts +40 -40
  11. package/package.json +6 -3
  12. package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +0 -58
  13. package/dist/lexicons/com/atiproto/account/cart/clone.js +0 -44
  14. package/dist/lexicons/com/atiproto/account/cart/create.defs.js +0 -54
  15. package/dist/lexicons/com/atiproto/account/cart/create.js +0 -44
  16. package/dist/lexicons/com/atiproto/account/cart/get.defs.js +0 -56
  17. package/dist/lexicons/com/atiproto/account/cart/get.js +0 -44
  18. package/dist/lexicons/com/atiproto/account/cart/list.defs.js +0 -56
  19. package/dist/lexicons/com/atiproto/account/cart/list.js +0 -44
  20. package/dist/lexicons/com/atiproto/account/cart/put.defs.js +0 -53
  21. package/dist/lexicons/com/atiproto/account/cart/put.js +0 -44
  22. package/dist/lexicons/com/atiproto/account/cart.js +0 -44
  23. package/dist/lexicons/com/atiproto/account/profile/get.defs.js +0 -53
  24. package/dist/lexicons/com/atiproto/account/profile/get.js +0 -44
  25. package/dist/lexicons/com/atiproto/account/profile/put.defs.js +0 -60
  26. package/dist/lexicons/com/atiproto/account/profile/put.js +0 -44
  27. package/dist/lexicons/com/atiproto/account/profile.js +0 -41
  28. package/dist/lexicons/com/atiproto/account.js +0 -41
  29. package/dist/lexicons/com/atiproto/cart.defs.js +0 -27
  30. package/dist/lexicons/com/atiproto/cart.js +0 -44
  31. package/dist/lexicons/com/atiproto/feed/list.defs.js +0 -54
  32. package/dist/lexicons/com/atiproto/feed/list.js +0 -44
  33. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +0 -51
  34. package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +0 -44
  35. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +0 -59
  36. package/dist/lexicons/com/atiproto/feed/subscription/create.js +0 -44
  37. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +0 -51
  38. package/dist/lexicons/com/atiproto/feed/subscription/get.js +0 -44
  39. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +0 -55
  40. package/dist/lexicons/com/atiproto/feed/subscription/list.js +0 -44
  41. package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +0 -53
  42. package/dist/lexicons/com/atiproto/feed/subscription/put.js +0 -44
  43. package/dist/lexicons/com/atiproto/feed/subscription.js +0 -44
  44. package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +0 -62
  45. package/dist/lexicons/com/atiproto/feed/tip/create.js +0 -44
  46. package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +0 -51
  47. package/dist/lexicons/com/atiproto/feed/tip/get.js +0 -44
  48. package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +0 -50
  49. package/dist/lexicons/com/atiproto/feed/tip/list.js +0 -44
  50. package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +0 -53
  51. package/dist/lexicons/com/atiproto/feed/tip/put.js +0 -44
  52. package/dist/lexicons/com/atiproto/feed/tip.js +0 -43
  53. package/dist/lexicons/com/atiproto/feed.js +0 -42
  54. package/dist/lexicons/com/atiproto/profile.defs.js +0 -32
  55. package/dist/lexicons/com/atiproto/profile.js +0 -44
  56. package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +0 -50
  57. package/dist/lexicons/com/atiproto/repo/profile/get.js +0 -44
  58. package/dist/lexicons/com/atiproto/repo/profile.js +0 -40
  59. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +0 -59
  60. package/dist/lexicons/com/atiproto/repo/subscription/search.js +0 -44
  61. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +0 -22
  62. package/dist/lexicons/com/atiproto/repo/subscription/validate.js +0 -44
  63. package/dist/lexicons/com/atiproto/repo/subscription.js +0 -41
  64. package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +0 -59
  65. package/dist/lexicons/com/atiproto/repo/tip/search.js +0 -44
  66. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +0 -23
  67. package/dist/lexicons/com/atiproto/repo/tip/validate.js +0 -44
  68. package/dist/lexicons/com/atiproto/repo/tip.js +0 -41
  69. package/dist/lexicons/com/atiproto/repo.js +0 -42
  70. package/dist/lexicons/com/atiproto/subscription.defs.js +0 -24
  71. package/dist/lexicons/com/atiproto/subscription.js +0 -44
  72. package/dist/lexicons/com/atiproto/tip.defs.js +0 -29
  73. package/dist/lexicons/com/atiproto/tip.js +0 -44
  74. package/dist/lexicons/com/atiproto.js +0 -46
  75. package/dist/lexicons/com.js +0 -40
  76. package/dist/lexicons/index.js +0 -40
  77. package/dist/schemas/account/cart/clone.json +0 -75
  78. package/dist/schemas/account/cart/create.json +0 -52
  79. package/dist/schemas/account/cart/get.json +0 -66
  80. package/dist/schemas/account/cart/list.json +0 -73
  81. package/dist/schemas/account/cart/put.json +0 -47
  82. package/dist/schemas/account/profile/get.json +0 -42
  83. package/dist/schemas/account/profile/put.json +0 -84
  84. package/dist/schemas/cart.json +0 -74
  85. package/dist/schemas/feed/list.json +0 -49
  86. package/dist/schemas/feed/subscription/cancel.json +0 -48
  87. package/dist/schemas/feed/subscription/create.json +0 -76
  88. package/dist/schemas/feed/subscription/get.json +0 -45
  89. package/dist/schemas/feed/subscription/list.json +0 -64
  90. package/dist/schemas/feed/subscription/put.json +0 -47
  91. package/dist/schemas/feed/tip/create.json +0 -87
  92. package/dist/schemas/feed/tip/get.json +0 -45
  93. package/dist/schemas/feed/tip/list.json +0 -49
  94. package/dist/schemas/feed/tip/put.json +0 -47
  95. package/dist/schemas/profile.json +0 -88
  96. package/dist/schemas/repo/profile/get.json +0 -40
  97. package/dist/schemas/repo/subscription/search.json +0 -67
  98. package/dist/schemas/repo/subscription/validate.json +0 -55
  99. package/dist/schemas/repo/tip/search.json +0 -67
  100. package/dist/schemas/repo/tip/validate.json +0 -60
  101. package/dist/schemas/subscription.json +0 -67
  102. package/dist/schemas/tip.json +0 -57
  103. package/dist/schemas.js +0 -60
@@ -1,44 +0,0 @@
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"));
@@ -1,60 +0,0 @@
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 AtiprotoProfile = __importStar(require("../../profile.defs.js"));
42
- const $nsid = 'com.atiproto.account.profile.put';
43
- exports.$nsid = $nsid;
44
- /** Create or update the authenticated user's profile settings */
45
- const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
46
- acceptsTips: lex_1.l.optional(lex_1.l.boolean()),
47
- acceptsSubscriptions: lex_1.l.optional(lex_1.l.boolean()),
48
- allowPayAsYouWant: lex_1.l.optional(lex_1.l.boolean()),
49
- allowZeroTips: lex_1.l.optional(lex_1.l.boolean()),
50
- minimumTip: lex_1.l.optional(lex_1.l.integer()),
51
- subscriptionTiers: lex_1.l.optional(lex_1.l.array(lex_1.l.ref((() => AtiprotoProfile.subscriptionTier)))),
52
- }), lex_1.l.jsonPayload({
53
- uri: lex_1.l.string({ format: 'at-uri' }),
54
- cid: lex_1.l.string({ format: 'cid' }),
55
- profile: lex_1.l.ref((() => AtiprotoProfile.main)),
56
- hasProfile: lex_1.l.boolean(),
57
- readyForPayment: lex_1.l.boolean(),
58
- }));
59
- exports.main = main;
60
- exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$input = main.input, exports.$output = main.output;
@@ -1,44 +0,0 @@
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"));
@@ -1,41 +0,0 @@
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["get"] = void 0;
40
- exports["get"] = __importStar(require("./profile/get.js"));
41
- exports.put = __importStar(require("./profile/put.js"));
@@ -1,41 +0,0 @@
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.profile = exports.cart = void 0;
40
- exports.cart = __importStar(require("./account/cart.js"));
41
- exports.profile = __importStar(require("./account/profile.js"));
@@ -1,27 +0,0 @@
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;
@@ -1,44 +0,0 @@
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"));
@@ -1,54 +0,0 @@
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;
@@ -1,44 +0,0 @@
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"));
@@ -1,51 +0,0 @@
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;
@@ -1,44 +0,0 @@
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"));
@@ -1,59 +0,0 @@
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;
@@ -1,44 +0,0 @@
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"));
@@ -1,51 +0,0 @@
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;