@atiproto/lexicons 0.7.2 → 0.8.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.
- package/dist/index.js +1109 -594
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1109 -594
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +19 -14
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +15 -10
- package/dist/lexicons/com/atiproto/account/cart/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +19 -14
- package/dist/lexicons/com/atiproto/actions.d.ts +2 -0
- package/dist/lexicons/com/atiproto/actions.defs.d.ts +120 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +15 -10
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +11 -6
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +11 -6
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +27 -27
- package/dist/lexicons/com/atiproto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
2
3
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
4
|
import * as AtiprotoTip from '../../tip.defs.js';
|
|
4
5
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
@@ -12,16 +13,18 @@ declare const main: l.Procedure<"com.atiproto.account.cart.clone", l.ParamsSchem
|
|
|
12
13
|
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
13
14
|
readonly format: "uri";
|
|
14
15
|
}>>;
|
|
16
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
15
17
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
19
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
20
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
18
21
|
readonly format: "at-uri";
|
|
19
|
-
}
|
|
20
|
-
checkoutUrl: l.StringSchema<{
|
|
22
|
+
}>>;
|
|
23
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
21
24
|
readonly format: "uri";
|
|
22
|
-
}
|
|
23
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View
|
|
24
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
25
|
+
}>>;
|
|
26
|
+
tips: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>>;
|
|
27
|
+
subscriptions: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>>;
|
|
25
28
|
}>>, undefined>;
|
|
26
29
|
export { main };
|
|
27
30
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -36,14 +39,16 @@ export declare const $lxm: "com.atiproto.account.cart.clone", $params: l.ParamsS
|
|
|
36
39
|
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
37
40
|
readonly format: "uri";
|
|
38
41
|
}>>;
|
|
42
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
39
43
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
45
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
46
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
42
47
|
readonly format: "at-uri";
|
|
43
|
-
}
|
|
44
|
-
checkoutUrl: l.StringSchema<{
|
|
48
|
+
}>>;
|
|
49
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
45
50
|
readonly format: "uri";
|
|
46
|
-
}
|
|
47
|
-
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View
|
|
48
|
-
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
51
|
+
}>>;
|
|
52
|
+
tips: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>>;
|
|
53
|
+
subscriptions: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>>;
|
|
49
54
|
}>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
2
3
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
4
|
declare const $nsid = "com.atiproto.account.cart.create";
|
|
4
5
|
export { $nsid };
|
|
@@ -10,14 +11,16 @@ declare const main: l.Procedure<"com.atiproto.account.cart.create", l.ParamsSche
|
|
|
10
11
|
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
11
12
|
readonly format: "uri";
|
|
12
13
|
}>>;
|
|
14
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
13
15
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
17
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
18
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "at-uri";
|
|
17
|
-
}
|
|
18
|
-
checkoutUrl: l.StringSchema<{
|
|
20
|
+
}>>;
|
|
21
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
19
22
|
readonly format: "uri";
|
|
20
|
-
}
|
|
23
|
+
}>>;
|
|
21
24
|
}>>, undefined>;
|
|
22
25
|
export { main };
|
|
23
26
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -32,12 +35,14 @@ export declare const $lxm: "com.atiproto.account.cart.create", $params: l.Params
|
|
|
32
35
|
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
33
36
|
readonly format: "uri";
|
|
34
37
|
}>>;
|
|
38
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
35
39
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
41
|
+
cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
|
|
42
|
+
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
38
43
|
readonly format: "at-uri";
|
|
39
|
-
}
|
|
40
|
-
checkoutUrl: l.StringSchema<{
|
|
44
|
+
}>>;
|
|
45
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
41
46
|
readonly format: "uri";
|
|
42
|
-
}
|
|
47
|
+
}>>;
|
|
43
48
|
}>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
4
|
declare const $nsid = "com.atiproto.account.cart.put";
|
|
4
5
|
export { $nsid };
|
|
5
6
|
/** Update a cart. Only open carts can be updated. */
|
|
@@ -8,13 +9,15 @@ declare const main: l.Procedure<"com.atiproto.account.cart.put", l.ParamsSchema<
|
|
|
8
9
|
readonly format: "at-uri";
|
|
9
10
|
}>;
|
|
10
11
|
record: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
12
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
11
13
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
-
|
|
14
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
15
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
13
16
|
readonly format: "at-uri";
|
|
14
|
-
}
|
|
15
|
-
cid: l.StringSchema<{
|
|
17
|
+
}>>;
|
|
18
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "cid";
|
|
17
|
-
}
|
|
20
|
+
}>>;
|
|
18
21
|
}>>, undefined>;
|
|
19
22
|
export { main };
|
|
20
23
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -27,11 +30,13 @@ export declare const $lxm: "com.atiproto.account.cart.put", $params: l.ParamsSch
|
|
|
27
30
|
readonly format: "at-uri";
|
|
28
31
|
}>;
|
|
29
32
|
record: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
33
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
30
34
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
31
|
-
|
|
35
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
36
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
32
37
|
readonly format: "at-uri";
|
|
33
|
-
}
|
|
34
|
-
cid: l.StringSchema<{
|
|
38
|
+
}>>;
|
|
39
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
35
40
|
readonly format: "cid";
|
|
36
|
-
}
|
|
41
|
+
}>>;
|
|
37
42
|
}>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
2
3
|
import * as AtiprotoProfile from '../../profile.defs.js';
|
|
3
4
|
declare const $nsid = "com.atiproto.account.profile.put";
|
|
4
5
|
export { $nsid };
|
|
@@ -7,16 +8,18 @@ declare const main: l.Procedure<"com.atiproto.account.profile.put", l.ParamsSche
|
|
|
7
8
|
acceptsTips: l.OptionalSchema<l.BooleanSchema>;
|
|
8
9
|
acceptsSubscriptions: l.OptionalSchema<l.BooleanSchema>;
|
|
9
10
|
disableReceiptNotifications: l.OptionalSchema<l.BooleanSchema>;
|
|
11
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
10
12
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
11
|
-
|
|
13
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
14
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
12
15
|
readonly format: "at-uri";
|
|
13
|
-
}
|
|
14
|
-
cid: l.StringSchema<{
|
|
16
|
+
}>>;
|
|
17
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
15
18
|
readonly format: "cid";
|
|
16
|
-
}
|
|
17
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View
|
|
18
|
-
hasProfile: l.BooleanSchema
|
|
19
|
-
readyForPayment: l.BooleanSchema
|
|
19
|
+
}>>;
|
|
20
|
+
profile: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>>;
|
|
21
|
+
hasProfile: l.OptionalSchema<l.BooleanSchema>;
|
|
22
|
+
readyForPayment: l.OptionalSchema<l.BooleanSchema>;
|
|
20
23
|
}>>, undefined>;
|
|
21
24
|
export { main };
|
|
22
25
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -28,14 +31,16 @@ export declare const $lxm: "com.atiproto.account.profile.put", $params: l.Params
|
|
|
28
31
|
acceptsTips: l.OptionalSchema<l.BooleanSchema>;
|
|
29
32
|
acceptsSubscriptions: l.OptionalSchema<l.BooleanSchema>;
|
|
30
33
|
disableReceiptNotifications: l.OptionalSchema<l.BooleanSchema>;
|
|
34
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
31
35
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
32
|
-
|
|
36
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
37
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
33
38
|
readonly format: "at-uri";
|
|
34
|
-
}
|
|
35
|
-
cid: l.StringSchema<{
|
|
39
|
+
}>>;
|
|
40
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
36
41
|
readonly format: "cid";
|
|
37
|
-
}
|
|
38
|
-
profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View
|
|
39
|
-
hasProfile: l.BooleanSchema
|
|
40
|
-
readyForPayment: l.BooleanSchema
|
|
42
|
+
}>>;
|
|
43
|
+
profile: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>>;
|
|
44
|
+
hasProfile: l.OptionalSchema<l.BooleanSchema>;
|
|
45
|
+
readyForPayment: l.OptionalSchema<l.BooleanSchema>;
|
|
41
46
|
}>>;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
declare const $nsid = "com.atiproto.actions";
|
|
3
|
+
export { $nsid };
|
|
4
|
+
/** Instructs the agent to call com.atproto.repo.createRecord on the user's PDS. */
|
|
5
|
+
type Create = {
|
|
6
|
+
$type?: 'com.atiproto.actions#create';
|
|
7
|
+
/**
|
|
8
|
+
* DID of the repo to write to. The PDS auth check is the source of truth for whether the write is allowed.
|
|
9
|
+
*/
|
|
10
|
+
repo: l.DidString;
|
|
11
|
+
/**
|
|
12
|
+
* Server-assigned name for this action; echoed back on the corresponding response so the server can correlate.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
collection: l.NsidString;
|
|
16
|
+
/**
|
|
17
|
+
* Optional. When omitted (the default), the PDS generates the rkey and returns the resulting URI on the response. Server-assigned rkeys are reserved for fixed-rkey records like com.atiproto.profile/self.
|
|
18
|
+
*/
|
|
19
|
+
rkey?: string;
|
|
20
|
+
record: l.LexMap;
|
|
21
|
+
};
|
|
22
|
+
export type { Create };
|
|
23
|
+
/** Instructs the agent to call com.atproto.repo.createRecord on the user's PDS. */
|
|
24
|
+
declare const create: l.TypedObjectSchema<"com.atiproto.actions#create", l.Validator<Create, Create>>;
|
|
25
|
+
export { create };
|
|
26
|
+
/** Instructs the agent to call com.atproto.repo.putRecord on the user's PDS. */
|
|
27
|
+
type Update = {
|
|
28
|
+
$type?: 'com.atiproto.actions#update';
|
|
29
|
+
repo: l.DidString;
|
|
30
|
+
name: string;
|
|
31
|
+
collection: l.NsidString;
|
|
32
|
+
rkey: string;
|
|
33
|
+
record: l.LexMap;
|
|
34
|
+
swapCommit?: l.CidString;
|
|
35
|
+
};
|
|
36
|
+
export type { Update };
|
|
37
|
+
/** Instructs the agent to call com.atproto.repo.putRecord on the user's PDS. */
|
|
38
|
+
declare const update: l.TypedObjectSchema<"com.atiproto.actions#update", l.Validator<Update, Update>>;
|
|
39
|
+
export { update };
|
|
40
|
+
/** Instructs the agent to call com.atproto.repo.deleteRecord on the user's PDS. */
|
|
41
|
+
type Delete$0 = {
|
|
42
|
+
$type?: 'com.atiproto.actions#delete';
|
|
43
|
+
repo: l.DidString;
|
|
44
|
+
name: string;
|
|
45
|
+
collection: l.NsidString;
|
|
46
|
+
rkey: string;
|
|
47
|
+
swapCommit?: l.CidString;
|
|
48
|
+
};
|
|
49
|
+
export type { Delete$0 as Delete };
|
|
50
|
+
/** Instructs the agent to call com.atproto.repo.deleteRecord on the user's PDS. */
|
|
51
|
+
declare const delete$0: l.TypedObjectSchema<"com.atiproto.actions#delete", l.Validator<Delete$0, Delete$0>>;
|
|
52
|
+
export { delete$0 as 'delete' };
|
|
53
|
+
/** Terminal action: the agent throws a WorkflowRaisedError carrying message and code. Subsequent actions in the same batch are not executed. */
|
|
54
|
+
type Raise = {
|
|
55
|
+
$type?: 'com.atiproto.actions#raise';
|
|
56
|
+
message: string;
|
|
57
|
+
code?: string;
|
|
58
|
+
};
|
|
59
|
+
export type { Raise };
|
|
60
|
+
/** Terminal action: the agent throws a WorkflowRaisedError carrying message and code. Subsequent actions in the same batch are not executed. */
|
|
61
|
+
declare const raise: l.TypedObjectSchema<"com.atiproto.actions#raise", l.Validator<Raise, Raise>>;
|
|
62
|
+
export { raise };
|
|
63
|
+
/** Result of executing one action. Carries the verb (so the server can branch without inspecting result shape) plus the action name and the resulting record reference. */
|
|
64
|
+
type Response = {
|
|
65
|
+
$type?: 'com.atiproto.actions#response';
|
|
66
|
+
action: 'create' | 'update' | 'delete' | l.UnknownString;
|
|
67
|
+
name: string;
|
|
68
|
+
result: RecordResult;
|
|
69
|
+
};
|
|
70
|
+
export type { Response };
|
|
71
|
+
/** Result of executing one action. Carries the verb (so the server can branch without inspecting result shape) plus the action name and the resulting record reference. */
|
|
72
|
+
declare const response: l.TypedObjectSchema<"com.atiproto.actions#response", l.Validator<Response, Response>>;
|
|
73
|
+
export { response };
|
|
74
|
+
type RecordResult = {
|
|
75
|
+
$type?: 'com.atiproto.actions#recordResult';
|
|
76
|
+
uri: l.AtUriString;
|
|
77
|
+
/**
|
|
78
|
+
* Present on create/update responses; absent on delete (the record is gone).
|
|
79
|
+
*/
|
|
80
|
+
cid?: l.CidString;
|
|
81
|
+
};
|
|
82
|
+
export type { RecordResult };
|
|
83
|
+
declare const recordResult: l.TypedObjectSchema<"com.atiproto.actions#recordResult", l.Validator<RecordResult, RecordResult>>;
|
|
84
|
+
export { recordResult };
|
|
85
|
+
/** Populated by the agent when an action fails. The server's error branch uses this to construct compensating actions and a final raise. */
|
|
86
|
+
type Error = {
|
|
87
|
+
$type?: 'com.atiproto.actions#error';
|
|
88
|
+
/**
|
|
89
|
+
* The verb of the action that failed (create/update/delete).
|
|
90
|
+
*/
|
|
91
|
+
action: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
message: string;
|
|
94
|
+
code?: string;
|
|
95
|
+
};
|
|
96
|
+
export type { Error };
|
|
97
|
+
/** Populated by the agent when an action fails. The server's error branch uses this to construct compensating actions and a final raise. */
|
|
98
|
+
declare const error: l.TypedObjectSchema<"com.atiproto.actions#error", l.Validator<Error, Error>>;
|
|
99
|
+
export { error };
|
|
100
|
+
/** Agent → server callback envelope. Echoes the server's intent verbatim, except when the agent overrides to "error" after an action failure. */
|
|
101
|
+
type InboundWorkflow = {
|
|
102
|
+
$type?: 'com.atiproto.actions#inboundWorkflow';
|
|
103
|
+
intent: string;
|
|
104
|
+
responses: Response[];
|
|
105
|
+
error?: Error;
|
|
106
|
+
};
|
|
107
|
+
export type { InboundWorkflow };
|
|
108
|
+
/** Agent → server callback envelope. Echoes the server's intent verbatim, except when the agent overrides to "error" after an action failure. */
|
|
109
|
+
declare const inboundWorkflow: l.TypedObjectSchema<"com.atiproto.actions#inboundWorkflow", l.Validator<InboundWorkflow, InboundWorkflow>>;
|
|
110
|
+
export { inboundWorkflow };
|
|
111
|
+
/** Server → agent envelope. Server-defined intent string acts as a phase marker; the agent treats it as opaque. Each item in `actions` is discriminated by `$type` against `#create` / `#update` / `#delete` / `#raise`. */
|
|
112
|
+
type OutboundWorkflow = {
|
|
113
|
+
$type?: 'com.atiproto.actions#outboundWorkflow';
|
|
114
|
+
intent: string;
|
|
115
|
+
actions: (l.$Typed<Create> | l.$Typed<Update> | l.$Typed<Delete$0> | l.$Typed<Raise> | l.Unknown$TypedObject)[];
|
|
116
|
+
};
|
|
117
|
+
export type { OutboundWorkflow };
|
|
118
|
+
/** Server → agent envelope. Server-defined intent string acts as a phase marker; the agent treats it as opaque. Each item in `actions` is discriminated by `$type` against `#create` / `#update` / `#delete` / `#raise`. */
|
|
119
|
+
declare const outboundWorkflow: l.TypedObjectSchema<"com.atiproto.actions#outboundWorkflow", l.Validator<OutboundWorkflow, OutboundWorkflow>>;
|
|
120
|
+
export { outboundWorkflow };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
2
3
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
4
|
declare const $nsid = "com.atiproto.feed.subscription.cancel";
|
|
4
5
|
export { $nsid };
|
|
@@ -7,14 +8,16 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.cancel", l.Param
|
|
|
7
8
|
subscriptionUri: l.StringSchema<{
|
|
8
9
|
readonly format: "at-uri";
|
|
9
10
|
}>;
|
|
11
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
10
12
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
11
|
-
|
|
13
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
14
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
12
15
|
readonly format: "at-uri";
|
|
13
|
-
}
|
|
14
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
15
|
-
accessUntil: l.StringSchema<{
|
|
16
|
+
}>>;
|
|
17
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
18
|
+
accessUntil: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "datetime";
|
|
17
|
-
}
|
|
20
|
+
}>>;
|
|
18
21
|
}>>, undefined>;
|
|
19
22
|
export { main };
|
|
20
23
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -26,12 +29,14 @@ export declare const $lxm: "com.atiproto.feed.subscription.cancel", $params: l.P
|
|
|
26
29
|
subscriptionUri: l.StringSchema<{
|
|
27
30
|
readonly format: "at-uri";
|
|
28
31
|
}>;
|
|
32
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
29
33
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
30
|
-
|
|
34
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
35
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
31
36
|
readonly format: "at-uri";
|
|
32
|
-
}
|
|
33
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
34
|
-
accessUntil: l.StringSchema<{
|
|
37
|
+
}>>;
|
|
38
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
39
|
+
accessUntil: l.OptionalSchema<l.StringSchema<{
|
|
35
40
|
readonly format: "datetime";
|
|
36
|
-
}
|
|
41
|
+
}>>;
|
|
37
42
|
}>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
2
3
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
4
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
4
5
|
declare const $nsid = "com.atiproto.feed.subscription.create";
|
|
@@ -20,11 +21,13 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.create", l.Param
|
|
|
20
21
|
readonly format: "uri";
|
|
21
22
|
}>>;
|
|
22
23
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
24
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
23
25
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
24
|
-
|
|
26
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
27
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
25
28
|
readonly format: "at-uri";
|
|
26
|
-
}
|
|
27
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
29
|
+
}>>;
|
|
30
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
28
31
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
29
32
|
readonly format: "at-uri";
|
|
30
33
|
}>>;
|
|
@@ -55,11 +58,13 @@ export declare const $lxm: "com.atiproto.feed.subscription.create", $params: l.P
|
|
|
55
58
|
readonly format: "uri";
|
|
56
59
|
}>>;
|
|
57
60
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
61
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
58
62
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
59
|
-
|
|
63
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
64
|
+
subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
60
65
|
readonly format: "at-uri";
|
|
61
|
-
}
|
|
62
|
-
subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View
|
|
66
|
+
}>>;
|
|
67
|
+
subscription: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
63
68
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
64
69
|
readonly format: "at-uri";
|
|
65
70
|
}>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
4
|
declare const $nsid = "com.atiproto.feed.subscription.put";
|
|
4
5
|
export { $nsid };
|
|
5
6
|
/** Update a pending subscription. Only pending subscriptions can be updated. */
|
|
@@ -8,13 +9,15 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.put", l.ParamsSc
|
|
|
8
9
|
readonly format: "at-uri";
|
|
9
10
|
}>;
|
|
10
11
|
record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
|
|
12
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
11
13
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
-
|
|
14
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
15
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
13
16
|
readonly format: "at-uri";
|
|
14
|
-
}
|
|
15
|
-
cid: l.StringSchema<{
|
|
17
|
+
}>>;
|
|
18
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "cid";
|
|
17
|
-
}
|
|
20
|
+
}>>;
|
|
18
21
|
}>>, undefined>;
|
|
19
22
|
export { main };
|
|
20
23
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -27,11 +30,13 @@ export declare const $lxm: "com.atiproto.feed.subscription.put", $params: l.Para
|
|
|
27
30
|
readonly format: "at-uri";
|
|
28
31
|
}>;
|
|
29
32
|
record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
|
|
33
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
30
34
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
31
|
-
|
|
35
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
36
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
32
37
|
readonly format: "at-uri";
|
|
33
|
-
}
|
|
34
|
-
cid: l.StringSchema<{
|
|
38
|
+
}>>;
|
|
39
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
35
40
|
readonly format: "cid";
|
|
36
|
-
}
|
|
41
|
+
}>>;
|
|
37
42
|
}>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
2
3
|
import * as AtiprotoTip from '../../tip.defs.js';
|
|
3
4
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
4
5
|
declare const $nsid = "com.atiproto.feed.tip.create";
|
|
@@ -26,11 +27,13 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
|
|
|
26
27
|
readonly maxLength: 5000;
|
|
27
28
|
}>>;
|
|
28
29
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
30
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
29
31
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
30
|
-
|
|
32
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
33
|
+
tipUri: l.OptionalSchema<l.StringSchema<{
|
|
31
34
|
readonly format: "at-uri";
|
|
32
|
-
}
|
|
33
|
-
tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View
|
|
35
|
+
}>>;
|
|
36
|
+
tip: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
34
37
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
35
38
|
readonly format: "at-uri";
|
|
36
39
|
}>>;
|
|
@@ -67,11 +70,13 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
|
|
|
67
70
|
readonly maxLength: 5000;
|
|
68
71
|
}>>;
|
|
69
72
|
isPrivate: l.OptionalSchema<l.BooleanSchema>;
|
|
73
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
70
74
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
71
|
-
|
|
75
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
76
|
+
tipUri: l.OptionalSchema<l.StringSchema<{
|
|
72
77
|
readonly format: "at-uri";
|
|
73
|
-
}
|
|
74
|
-
tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View
|
|
78
|
+
}>>;
|
|
79
|
+
tip: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
|
|
75
80
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
76
81
|
readonly format: "at-uri";
|
|
77
82
|
}>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoTip from '../../tip.defs.js';
|
|
3
|
+
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
4
|
declare const $nsid = "com.atiproto.feed.tip.put";
|
|
4
5
|
export { $nsid };
|
|
5
6
|
/** Update a pending tip. Only pending tips can be updated. */
|
|
@@ -8,13 +9,15 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.put", l.ParamsSchema<{}>,
|
|
|
8
9
|
readonly format: "at-uri";
|
|
9
10
|
}>;
|
|
10
11
|
record: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
|
|
12
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
11
13
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
-
|
|
14
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
15
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
13
16
|
readonly format: "at-uri";
|
|
14
|
-
}
|
|
15
|
-
cid: l.StringSchema<{
|
|
17
|
+
}>>;
|
|
18
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "cid";
|
|
17
|
-
}
|
|
20
|
+
}>>;
|
|
18
21
|
}>>, undefined>;
|
|
19
22
|
export { main };
|
|
20
23
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
@@ -27,11 +30,13 @@ export declare const $lxm: "com.atiproto.feed.tip.put", $params: l.ParamsSchema<
|
|
|
27
30
|
readonly format: "at-uri";
|
|
28
31
|
}>;
|
|
29
32
|
record: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
|
|
33
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
30
34
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
31
|
-
|
|
35
|
+
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
36
|
+
uri: l.OptionalSchema<l.StringSchema<{
|
|
32
37
|
readonly format: "at-uri";
|
|
33
|
-
}
|
|
34
|
-
cid: l.StringSchema<{
|
|
38
|
+
}>>;
|
|
39
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
35
40
|
readonly format: "cid";
|
|
36
|
-
}
|
|
41
|
+
}>>;
|
|
37
42
|
}>>;
|