@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,62 +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 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;
@@ -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 AtiprotoTip = __importStar(require("../../tip.defs.js"));
42
- const $nsid = 'com.atiproto.feed.tip.get';
43
- exports.$nsid = $nsid;
44
- /** Get a specific tip 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
- value: lex_1.l.ref((() => AtiprotoTip.main)),
49
- }));
50
- exports.main = main;
51
- 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,50 +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 $nsid = 'com.atiproto.feed.tip.list';
43
- exports.$nsid = $nsid;
44
- /** List tips for the authenticated user */
45
- const main = lex_1.l.query($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
46
- records: lex_1.l.array(lex_1.l.ref((() => AtiprotoTip.main))),
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;
@@ -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 AtiprotoTip = __importStar(require("../../tip.defs.js"));
42
- const $nsid = 'com.atiproto.feed.tip.put';
43
- exports.$nsid = $nsid;
44
- /** Update a pending tip. Only pending tips 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((() => AtiprotoTip.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,43 +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 = void 0;
40
- exports.create = __importStar(require("./tip/create.js"));
41
- exports["get"] = __importStar(require("./tip/get.js"));
42
- exports.list = __importStar(require("./tip/list.js"));
43
- exports.put = __importStar(require("./tip/put.js"));
@@ -1,42 +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.tip = exports.subscription = exports.list = void 0;
40
- exports.list = __importStar(require("./feed/list.js"));
41
- exports.subscription = __importStar(require("./feed/subscription.js"));
42
- exports.tip = __importStar(require("./feed/tip.js"));
@@ -1,20 +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.$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.profile';
9
- exports.$nsid = $nsid;
10
- /** A record representing a user's tipping/subscription settings */
11
- const main = lex_1.l.record('literal:self', $nsid, lex_1.l.object({
12
- acceptsTips: lex_1.l.optional(lex_1.l.boolean()),
13
- acceptsSubscriptions: lex_1.l.optional(lex_1.l.boolean()),
14
- disableReceiptNotifications: lex_1.l.optional(lex_1.l.boolean()),
15
- createdAt: lex_1.l.string({ format: 'datetime' }),
16
- updatedAt: lex_1.l.optional(lex_1.l.string({ format: 'datetime' })),
17
- }));
18
- exports.main = main;
19
- exports.$isTypeOf = main.isTypeOf.bind(main), exports.$build = main.build.bind(main), exports.$type = main.$type;
20
- 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);
@@ -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("./profile.defs.js"), exports);
44
- exports.$defs = __importStar(require("./profile.defs.js"));
@@ -1,50 +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.repo.profile.get';
43
- exports.$nsid = $nsid;
44
- /** Look up public profile information for any user */
45
- const main = lex_1.l.query($nsid, lex_1.l.params({ did: lex_1.l.string({ format: 'did' }) }), lex_1.l.jsonPayload({
46
- did: lex_1.l.string({ format: 'did' }),
47
- profile: lex_1.l.ref((() => AtiprotoProfile.main)),
48
- }));
49
- exports.main = main;
50
- 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"));