@atiproto/lexicons 0.1.0 → 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 (100) 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/profile.defs.d.ts +10 -10
  6. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +20 -20
  7. package/dist/lexicons/com/atiproto/tip.defs.d.ts +40 -40
  8. package/package.json +6 -3
  9. package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +0 -58
  10. package/dist/lexicons/com/atiproto/account/cart/clone.js +0 -44
  11. package/dist/lexicons/com/atiproto/account/cart/create.defs.js +0 -54
  12. package/dist/lexicons/com/atiproto/account/cart/create.js +0 -44
  13. package/dist/lexicons/com/atiproto/account/cart/get.defs.js +0 -56
  14. package/dist/lexicons/com/atiproto/account/cart/get.js +0 -44
  15. package/dist/lexicons/com/atiproto/account/cart/list.defs.js +0 -56
  16. package/dist/lexicons/com/atiproto/account/cart/list.js +0 -44
  17. package/dist/lexicons/com/atiproto/account/cart/put.defs.js +0 -53
  18. package/dist/lexicons/com/atiproto/account/cart/put.js +0 -44
  19. package/dist/lexicons/com/atiproto/account/cart.js +0 -44
  20. package/dist/lexicons/com/atiproto/account/profile/get.defs.js +0 -53
  21. package/dist/lexicons/com/atiproto/account/profile/get.js +0 -44
  22. package/dist/lexicons/com/atiproto/account/profile/put.defs.js +0 -57
  23. package/dist/lexicons/com/atiproto/account/profile/put.js +0 -44
  24. package/dist/lexicons/com/atiproto/account/profile.js +0 -41
  25. package/dist/lexicons/com/atiproto/account.js +0 -41
  26. package/dist/lexicons/com/atiproto/cart.defs.js +0 -27
  27. package/dist/lexicons/com/atiproto/cart.js +0 -44
  28. package/dist/lexicons/com/atiproto/feed/list.defs.js +0 -54
  29. package/dist/lexicons/com/atiproto/feed/list.js +0 -44
  30. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +0 -51
  31. package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +0 -44
  32. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +0 -59
  33. package/dist/lexicons/com/atiproto/feed/subscription/create.js +0 -44
  34. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +0 -51
  35. package/dist/lexicons/com/atiproto/feed/subscription/get.js +0 -44
  36. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +0 -55
  37. package/dist/lexicons/com/atiproto/feed/subscription/list.js +0 -44
  38. package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +0 -53
  39. package/dist/lexicons/com/atiproto/feed/subscription/put.js +0 -44
  40. package/dist/lexicons/com/atiproto/feed/subscription.js +0 -44
  41. package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +0 -62
  42. package/dist/lexicons/com/atiproto/feed/tip/create.js +0 -44
  43. package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +0 -51
  44. package/dist/lexicons/com/atiproto/feed/tip/get.js +0 -44
  45. package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +0 -50
  46. package/dist/lexicons/com/atiproto/feed/tip/list.js +0 -44
  47. package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +0 -53
  48. package/dist/lexicons/com/atiproto/feed/tip/put.js +0 -44
  49. package/dist/lexicons/com/atiproto/feed/tip.js +0 -43
  50. package/dist/lexicons/com/atiproto/feed.js +0 -42
  51. package/dist/lexicons/com/atiproto/profile.defs.js +0 -20
  52. package/dist/lexicons/com/atiproto/profile.js +0 -44
  53. package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +0 -50
  54. package/dist/lexicons/com/atiproto/repo/profile/get.js +0 -44
  55. package/dist/lexicons/com/atiproto/repo/profile.js +0 -40
  56. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +0 -59
  57. package/dist/lexicons/com/atiproto/repo/subscription/search.js +0 -44
  58. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +0 -22
  59. package/dist/lexicons/com/atiproto/repo/subscription/validate.js +0 -44
  60. package/dist/lexicons/com/atiproto/repo/subscription.js +0 -41
  61. package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +0 -59
  62. package/dist/lexicons/com/atiproto/repo/tip/search.js +0 -44
  63. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +0 -23
  64. package/dist/lexicons/com/atiproto/repo/tip/validate.js +0 -44
  65. package/dist/lexicons/com/atiproto/repo/tip.js +0 -41
  66. package/dist/lexicons/com/atiproto/repo.js +0 -42
  67. package/dist/lexicons/com/atiproto/subscription.defs.js +0 -24
  68. package/dist/lexicons/com/atiproto/subscription.js +0 -44
  69. package/dist/lexicons/com/atiproto/tip.defs.js +0 -29
  70. package/dist/lexicons/com/atiproto/tip.js +0 -44
  71. package/dist/lexicons/com/atiproto.js +0 -46
  72. package/dist/lexicons/com.js +0 -40
  73. package/dist/lexicons/index.js +0 -40
  74. package/dist/schemas/account/cart/clone.json +0 -75
  75. package/dist/schemas/account/cart/create.json +0 -52
  76. package/dist/schemas/account/cart/get.json +0 -66
  77. package/dist/schemas/account/cart/list.json +0 -73
  78. package/dist/schemas/account/cart/put.json +0 -47
  79. package/dist/schemas/account/profile/get.json +0 -42
  80. package/dist/schemas/account/profile/put.json +0 -68
  81. package/dist/schemas/cart.json +0 -74
  82. package/dist/schemas/feed/list.json +0 -49
  83. package/dist/schemas/feed/subscription/cancel.json +0 -48
  84. package/dist/schemas/feed/subscription/create.json +0 -76
  85. package/dist/schemas/feed/subscription/get.json +0 -45
  86. package/dist/schemas/feed/subscription/list.json +0 -64
  87. package/dist/schemas/feed/subscription/put.json +0 -47
  88. package/dist/schemas/feed/tip/create.json +0 -87
  89. package/dist/schemas/feed/tip/get.json +0 -45
  90. package/dist/schemas/feed/tip/list.json +0 -49
  91. package/dist/schemas/feed/tip/put.json +0 -47
  92. package/dist/schemas/profile.json +0 -39
  93. package/dist/schemas/repo/profile/get.json +0 -40
  94. package/dist/schemas/repo/subscription/search.json +0 -67
  95. package/dist/schemas/repo/subscription/validate.json +0 -55
  96. package/dist/schemas/repo/tip/search.json +0 -67
  97. package/dist/schemas/repo/tip/validate.json +0 -60
  98. package/dist/schemas/subscription.json +0 -67
  99. package/dist/schemas/tip.json +0 -57
  100. 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,56 +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.cartResponse = exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
40
- const lex_1 = require("@atproto/lex");
41
- const AtiprotoCart = __importStar(require("../../cart.defs.js"));
42
- const $nsid = 'com.atiproto.account.cart.list';
43
- exports.$nsid = $nsid;
44
- /** List carts for the authenticated user */
45
- const main = lex_1.l.query($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
46
- carts: lex_1.l.array(lex_1.l.ref((() => cartResponse))),
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 cartResponse = lex_1.l.typedObject($nsid, 'cartResponse', lex_1.l.object({
52
- uri: lex_1.l.string({ format: 'at-uri' }),
53
- cid: lex_1.l.string({ format: 'cid' }),
54
- record: lex_1.l.ref((() => AtiprotoCart.main)),
55
- }));
56
- exports.cartResponse = cartResponse;
@@ -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,53 +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 AtiprotoCart = __importStar(require("../../cart.defs.js"));
42
- const $nsid = 'com.atiproto.account.cart.put';
43
- exports.$nsid = $nsid;
44
- /** Update a cart. Only open carts 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((() => AtiprotoCart.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;
@@ -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,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 __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.clone = void 0;
40
- exports.clone = __importStar(require("./cart/clone.js"));
41
- exports.create = __importStar(require("./cart/create.js"));
42
- exports["get"] = __importStar(require("./cart/get.js"));
43
- exports.list = __importStar(require("./cart/list.js"));
44
- exports.put = __importStar(require("./cart/put.js"));
@@ -1,53 +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 AtiprotoProfile = __importStar(require("../../profile.defs.js"));
42
- const $nsid = 'com.atiproto.account.profile.get';
43
- exports.$nsid = $nsid;
44
- /** Get the authenticated user's profile settings. Returns defaults if no profile exists. */
45
- const main = lex_1.l.query($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
46
- uri: lex_1.l.optional(lex_1.l.string({ format: 'at-uri' })),
47
- cid: lex_1.l.optional(lex_1.l.string({ format: 'cid' })),
48
- profile: lex_1.l.ref((() => AtiprotoProfile.main)),
49
- hasProfile: lex_1.l.boolean(),
50
- readyForPayment: lex_1.l.boolean(),
51
- }));
52
- exports.main = main;
53
- 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("./get.defs.js"), exports);
44
- exports.$defs = __importStar(require("./get.defs.js"));
@@ -1,57 +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
- disableReceiptNotifications: lex_1.l.optional(lex_1.l.boolean()),
49
- }), lex_1.l.jsonPayload({
50
- uri: lex_1.l.string({ format: 'at-uri' }),
51
- cid: lex_1.l.string({ format: 'cid' }),
52
- profile: lex_1.l.ref((() => AtiprotoProfile.main)),
53
- hasProfile: lex_1.l.boolean(),
54
- readyForPayment: lex_1.l.boolean(),
55
- }));
56
- exports.main = main;
57
- 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"));