@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,40 +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["get"] = void 0;
40
- exports["get"] = __importStar(require("./profile/get.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.subscriptionResponse = exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
40
- const lex_1 = require("@atproto/lex");
41
- const AtiprotoSubscription = __importStar(require("../../subscription.defs.js"));
42
- const $nsid = 'com.atiproto.repo.subscription.search';
43
- exports.$nsid = $nsid;
44
- /** Search for subscriptions to a user (subscriptions where subject matches the given DID) */
45
- const main = lex_1.l.query($nsid, lex_1.l.params({
46
- subject: lex_1.l.string({ format: 'did' }),
47
- cursor: lex_1.l.optional(lex_1.l.string()),
48
- limit: lex_1.l.optional(lex_1.l.withDefault(lex_1.l.integer({ minimum: 1, maximum: 100 }), 50)),
49
- }), lex_1.l.jsonPayload({
50
- subscriptions: lex_1.l.array(lex_1.l.ref((() => subscriptionResponse))),
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;
55
- const subscriptionResponse = lex_1.l.typedObject($nsid, 'subscriptionResponse', lex_1.l.object({
56
- uri: lex_1.l.string({ format: 'at-uri' }),
57
- record: lex_1.l.ref((() => AtiprotoSubscription.main)),
58
- }));
59
- exports.subscriptionResponse = subscriptionResponse;
@@ -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("./search.defs.js"), exports);
44
- exports.$defs = __importStar(require("./search.defs.js"));
@@ -1,22 +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.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
7
- const lex_1 = require("@atproto/lex");
8
- const $nsid = 'com.atiproto.repo.subscription.validate';
9
- exports.$nsid = $nsid;
10
- /** Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check the subscription amount. */
11
- const main = lex_1.l.query($nsid, lex_1.l.params({
12
- sender: lex_1.l.string({ format: 'did' }),
13
- subject: lex_1.l.string({ format: 'did' }),
14
- amount: lex_1.l.optional(lex_1.l.integer()),
15
- }), lex_1.l.jsonPayload({
16
- valid: lex_1.l.boolean(),
17
- amount: lex_1.l.optional(lex_1.l.integer()),
18
- currency: lex_1.l.optional(lex_1.l.string()),
19
- reason: lex_1.l.optional(lex_1.l.string()),
20
- }));
21
- exports.main = main;
22
- 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("./validate.defs.js"), exports);
44
- exports.$defs = __importStar(require("./validate.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.validate = exports.search = void 0;
40
- exports.search = __importStar(require("./subscription/search.js"));
41
- exports.validate = __importStar(require("./subscription/validate.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.tipResponse = 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.repo.tip.search';
43
- exports.$nsid = $nsid;
44
- /** Search for tips sent to a user (tips where subject matches the given DID) */
45
- const main = lex_1.l.query($nsid, lex_1.l.params({
46
- subject: lex_1.l.string({ format: 'did' }),
47
- cursor: lex_1.l.optional(lex_1.l.string()),
48
- limit: lex_1.l.optional(lex_1.l.withDefault(lex_1.l.integer({ minimum: 1, maximum: 100 }), 50)),
49
- }), lex_1.l.jsonPayload({
50
- tips: lex_1.l.array(lex_1.l.ref((() => tipResponse))),
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;
55
- const tipResponse = lex_1.l.typedObject($nsid, 'tipResponse', lex_1.l.object({
56
- uri: lex_1.l.string({ format: 'at-uri' }),
57
- record: lex_1.l.ref((() => AtiprotoTip.main)),
58
- }));
59
- exports.tipResponse = tipResponse;
@@ -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("./search.defs.js"), exports);
44
- exports.$defs = __importStar(require("./search.defs.js"));
@@ -1,23 +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.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
7
- const lex_1 = require("@atproto/lex");
8
- const $nsid = 'com.atiproto.repo.tip.validate';
9
- exports.$nsid = $nsid;
10
- /** Validate that a sender has completed tip payment(s). Looks up by recordUri (sums all tips for that record) or by subject (recipient DID). These are mutually exclusive; if recordUri is provided, subject is ignored. */
11
- const main = lex_1.l.query($nsid, lex_1.l.params({
12
- sender: lex_1.l.string({ format: 'did' }),
13
- subject: lex_1.l.optional(lex_1.l.string({ format: 'did' })),
14
- recordUri: lex_1.l.optional(lex_1.l.string({ format: 'at-uri' })),
15
- amount: lex_1.l.optional(lex_1.l.integer()),
16
- }), lex_1.l.jsonPayload({
17
- valid: lex_1.l.boolean(),
18
- amount: lex_1.l.optional(lex_1.l.integer()),
19
- currency: lex_1.l.optional(lex_1.l.string()),
20
- reason: lex_1.l.optional(lex_1.l.string()),
21
- }));
22
- exports.main = main;
23
- 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("./validate.defs.js"), exports);
44
- exports.$defs = __importStar(require("./validate.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.validate = exports.search = void 0;
40
- exports.search = __importStar(require("./tip/search.js"));
41
- exports.validate = __importStar(require("./tip/validate.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.profile = void 0;
40
- exports.profile = __importStar(require("./repo/profile.js"));
41
- exports.subscription = __importStar(require("./repo/subscription.js"));
42
- exports.tip = __importStar(require("./repo/tip.js"));
@@ -1,24 +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.subscription';
9
- exports.$nsid = $nsid;
10
- /** A record representing a subscription from one user to another */
11
- const main = lex_1.l.record('any', $nsid, lex_1.l.object({
12
- subject: lex_1.l.string({ format: 'did' }),
13
- amount: lex_1.l.integer({ minimum: 0 }),
14
- currency: lex_1.l.string(),
15
- interval: lex_1.l.string(),
16
- status: lex_1.l.string(),
17
- billingStartDate: lex_1.l.string({ format: 'datetime' }),
18
- cancelledAt: lex_1.l.optional(lex_1.l.string({ format: 'datetime' })),
19
- accessUntil: lex_1.l.optional(lex_1.l.string({ format: 'datetime' })),
20
- createdAt: lex_1.l.string({ format: 'datetime' }),
21
- }));
22
- exports.main = main;
23
- exports.$isTypeOf = main.isTypeOf.bind(main), exports.$build = main.build.bind(main), exports.$type = main.$type;
24
- 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("./subscription.defs.js"), exports);
44
- exports.$defs = __importStar(require("./subscription.defs.js"));
@@ -1,29 +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.tip';
9
- exports.$nsid = $nsid;
10
- /** A record representing a tip given by one user to another */
11
- const main = lex_1.l.record('any', $nsid, lex_1.l.object({
12
- subject: lex_1.l.string({ format: 'did' }),
13
- recordUri: lex_1.l.optional(lex_1.l.string({ format: 'at-uri' })),
14
- amount: lex_1.l.integer({ minimum: 0 }),
15
- currency: lex_1.l.string(),
16
- status: lex_1.l.enum([
17
- 'pending',
18
- 'authorized',
19
- 'completed',
20
- 'failed',
21
- 'refunded',
22
- ]),
23
- message: lex_1.l.optional(lex_1.l.string({ maxGraphemes: 500, maxLength: 5000 })),
24
- createdAt: lex_1.l.string({ format: 'datetime' }),
25
- completedAt: lex_1.l.optional(lex_1.l.string({ format: 'datetime' })),
26
- }));
27
- exports.main = main;
28
- exports.$isTypeOf = main.isTypeOf.bind(main), exports.$build = main.build.bind(main), exports.$type = main.$type;
29
- 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("./tip.defs.js"), exports);
44
- exports.$defs = __importStar(require("./tip.defs.js"));