@atiproto/lexicons 0.1.1 → 0.2.0

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.
@@ -0,0 +1,2 @@
1
+ export * from './authEnhanced.defs.js';
2
+ export * as $defs from './authEnhanced.defs.js';
@@ -0,0 +1,5 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.authEnhanced";
3
+ export { $nsid };
4
+ declare const main: l.PermissionSet<"com.atiproto.authEnhanced", readonly [l.Permission<"repo", Record<string, string | number | boolean | number[] | string[] | boolean[] | undefined>>, l.Permission<"rpc", Record<string, string | number | boolean | number[] | string[] | boolean[] | undefined>>]>;
5
+ export { main };
@@ -0,0 +1,2 @@
1
+ export * from './authGeneral.defs.js';
2
+ export * as $defs from './authGeneral.defs.js';
@@ -0,0 +1,5 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.authGeneral";
3
+ export { $nsid };
4
+ declare const main: l.PermissionSet<"com.atiproto.authGeneral", readonly [l.Permission<"repo", Record<string, string | number | boolean | number[] | string[] | boolean[] | undefined>>, l.Permission<"rpc", Record<string, string | number | boolean | number[] | string[] | boolean[] | undefined>>]>;
5
+ export { main };
@@ -1,14 +1,17 @@
1
1
  import { l } from '@atproto/lex';
2
2
  declare const $nsid = "com.atiproto.repo.subscription.validate";
3
3
  export { $nsid };
4
- /** Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check the subscription amount. */
4
+ /** Validate that a sender has an active, Stripe-verified subscription. Looks up by subscriptionUri (a specific subscription record) or subject (recipient DID). These are mutually exclusive; subscriptionUri takes precedence. */
5
5
  declare const main: l.Query<"com.atiproto.repo.subscription.validate", l.ParamsSchema<{
6
6
  readonly sender: l.StringSchema<{
7
7
  readonly format: "did";
8
8
  }>;
9
- readonly subject: l.StringSchema<{
9
+ readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
10
+ readonly format: "at-uri";
11
+ }>>;
12
+ readonly subject: l.OptionalSchema<l.StringSchema<{
10
13
  readonly format: "did";
11
- }>;
14
+ }>>;
12
15
  readonly amount: l.OptionalSchema<l.IntegerSchema>;
13
16
  }>, l.Payload<"application/json", l.ObjectSchema<{
14
17
  valid: l.BooleanSchema;
@@ -24,9 +27,12 @@ export declare const $lxm: "com.atiproto.repo.subscription.validate", $params: l
24
27
  readonly sender: l.StringSchema<{
25
28
  readonly format: "did";
26
29
  }>;
27
- readonly subject: l.StringSchema<{
30
+ readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
31
+ readonly format: "at-uri";
32
+ }>>;
33
+ readonly subject: l.OptionalSchema<l.StringSchema<{
28
34
  readonly format: "did";
29
- }>;
35
+ }>>;
30
36
  readonly amount: l.OptionalSchema<l.IntegerSchema>;
31
37
  }>, $output: l.Payload<"application/json", l.ObjectSchema<{
32
38
  valid: l.BooleanSchema;
@@ -1,17 +1,20 @@
1
1
  import { l } from '@atproto/lex';
2
2
  declare const $nsid = "com.atiproto.repo.tip.validate";
3
3
  export { $nsid };
4
- /** 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. */
4
+ /** Validate that a sender has completed tip payment(s). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or subject (recipient DID). These are mutually exclusive and resolved in that order. */
5
5
  declare const main: l.Query<"com.atiproto.repo.tip.validate", l.ParamsSchema<{
6
6
  readonly sender: l.StringSchema<{
7
7
  readonly format: "did";
8
8
  }>;
9
- readonly subject: l.OptionalSchema<l.StringSchema<{
10
- readonly format: "did";
9
+ readonly tipUri: l.OptionalSchema<l.StringSchema<{
10
+ readonly format: "at-uri";
11
11
  }>>;
12
12
  readonly recordUri: l.OptionalSchema<l.StringSchema<{
13
13
  readonly format: "at-uri";
14
14
  }>>;
15
+ readonly subject: l.OptionalSchema<l.StringSchema<{
16
+ readonly format: "did";
17
+ }>>;
15
18
  readonly amount: l.OptionalSchema<l.IntegerSchema>;
16
19
  }>, l.Payload<"application/json", l.ObjectSchema<{
17
20
  valid: l.BooleanSchema;
@@ -27,12 +30,15 @@ export declare const $lxm: "com.atiproto.repo.tip.validate", $params: l.ParamsSc
27
30
  readonly sender: l.StringSchema<{
28
31
  readonly format: "did";
29
32
  }>;
30
- readonly subject: l.OptionalSchema<l.StringSchema<{
31
- readonly format: "did";
33
+ readonly tipUri: l.OptionalSchema<l.StringSchema<{
34
+ readonly format: "at-uri";
32
35
  }>>;
33
36
  readonly recordUri: l.OptionalSchema<l.StringSchema<{
34
37
  readonly format: "at-uri";
35
38
  }>>;
39
+ readonly subject: l.OptionalSchema<l.StringSchema<{
40
+ readonly format: "did";
41
+ }>>;
36
42
  readonly amount: l.OptionalSchema<l.IntegerSchema>;
37
43
  }>, $output: l.Payload<"application/json", l.ObjectSchema<{
38
44
  valid: l.BooleanSchema;
@@ -1,4 +1,6 @@
1
1
  export * as account from './atiproto/account.js';
2
+ export * as authEnhanced from './atiproto/authEnhanced.js';
3
+ export * as authGeneral from './atiproto/authGeneral.js';
2
4
  export * as cart from './atiproto/cart.js';
3
5
  export * as feed from './atiproto/feed.js';
4
6
  export * as profile from './atiproto/profile.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atiproto/lexicons",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "ATProto lexicon types and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -22,6 +22,13 @@
22
22
  "prepack": "npm run build",
23
23
  "test": "echo \"No tests yet\" && exit 0"
24
24
  },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/Yakrware/atiproto.git",
28
+ "directory": "packages/lexicons"
29
+ },
30
+ "homepage": "https://atiproto.com/docs/lexicon",
31
+ "bugs": "https://github.com/Yakrware/atiproto/issues",
25
32
  "license": "MIT",
26
33
  "dependencies": {
27
34
  "@atproto/lex": "^0.0.23"