@happyvertical/smrt-social 0.57.36 → 0.57.38

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,224 @@
1
+ /**
2
+ * Declared recipes for smrt-social (#4409): user-facing units of
3
+ * functionality an app or agent can pick instead of the whole package.
4
+ * The scanner reads these statics into the `recipes` array of `manifest.json`
5
+ * and `smrt-knowledge.json`; nothing here runs at that point.
6
+ *
7
+ * `OAuthState` is deliberately not listed: it is the sign-in handshake record,
8
+ * not something a person opens.
9
+ *
10
+ * @packageDocumentation
11
+ */
12
+ import { SmrtRecipe } from '@happyvertical/smrt-core';
13
+ import { SocialAccount } from './social-account.js';
14
+ import { SocialPost } from './social-post.js';
15
+ import { SocialPostAnalyticsSnapshot } from './social-post-analytics-snapshot.js';
16
+ /** Social: Write posts for your social accounts and see how each one did. */
17
+ export declare class SocialPostsRecipe extends SmrtRecipe {
18
+ static id: string;
19
+ static help: string;
20
+ static label: string;
21
+ static summary: string;
22
+ static synonyms: string[];
23
+ static section: {
24
+ id: string;
25
+ label: string;
26
+ icon: string;
27
+ description: string;
28
+ };
29
+ static models: (typeof SocialAccount | typeof SocialPost | typeof SocialPostAnalyticsSnapshot)[];
30
+ static nav: ({
31
+ label: string;
32
+ model: typeof SocialPost;
33
+ icon: string;
34
+ description: string;
35
+ noun: string;
36
+ } | {
37
+ label: string;
38
+ model: typeof SocialAccount;
39
+ icon: string;
40
+ description: string;
41
+ noun: string;
42
+ })[];
43
+ static options: {
44
+ readonly SocialPost: {
45
+ readonly fields: {
46
+ readonly socialAccountId: {
47
+ readonly label: "Account";
48
+ readonly order: 1;
49
+ };
50
+ readonly title: {
51
+ readonly order: 2;
52
+ };
53
+ readonly description: {
54
+ readonly label: "Text";
55
+ readonly order: 3;
56
+ };
57
+ readonly hashtags: {
58
+ readonly order: 4;
59
+ };
60
+ readonly linkUrl: {
61
+ readonly label: "Link";
62
+ readonly order: 5;
63
+ };
64
+ readonly postType: {
65
+ readonly label: "Kind of post";
66
+ readonly order: 6;
67
+ };
68
+ readonly scheduledAt: {
69
+ readonly label: "Planned for";
70
+ readonly order: 7;
71
+ };
72
+ readonly status: {
73
+ readonly locked: true;
74
+ readonly order: 8;
75
+ };
76
+ readonly publishedAt: {
77
+ readonly label: "Published on";
78
+ readonly locked: true;
79
+ readonly order: 9;
80
+ };
81
+ readonly platformUrl: {
82
+ readonly label: "Link to the post";
83
+ readonly locked: true;
84
+ readonly order: 10;
85
+ };
86
+ readonly videoContentId: {
87
+ readonly label: "Video";
88
+ readonly visibility: "advanced";
89
+ };
90
+ readonly contentId: {
91
+ readonly label: "Content";
92
+ readonly visibility: "advanced";
93
+ };
94
+ readonly mediaUrl: {
95
+ readonly label: "Media link";
96
+ readonly visibility: "advanced";
97
+ };
98
+ readonly errorMessage: {
99
+ readonly label: "What went wrong";
100
+ readonly visibility: "advanced";
101
+ };
102
+ readonly analyticsLastSyncedAt: {
103
+ readonly label: "Results last updated";
104
+ readonly visibility: "advanced";
105
+ };
106
+ readonly tenantId: {
107
+ readonly visibility: "hidden";
108
+ };
109
+ readonly createdByUserId: {
110
+ readonly visibility: "hidden";
111
+ };
112
+ readonly platformPostId: {
113
+ readonly visibility: "hidden";
114
+ };
115
+ readonly analytics: {
116
+ readonly visibility: "hidden";
117
+ };
118
+ };
119
+ };
120
+ readonly SocialAccount: {
121
+ readonly fields: {
122
+ readonly name: {
123
+ readonly order: 1;
124
+ };
125
+ readonly platform: {
126
+ readonly order: 2;
127
+ };
128
+ readonly platformUsername: {
129
+ readonly label: "Username";
130
+ readonly order: 3;
131
+ };
132
+ readonly platformUrl: {
133
+ readonly label: "Profile link";
134
+ readonly order: 4;
135
+ };
136
+ readonly status: {
137
+ readonly locked: true;
138
+ readonly order: 5;
139
+ };
140
+ readonly isActive: {
141
+ readonly label: "In use";
142
+ readonly order: 6;
143
+ };
144
+ readonly defaultHashtags: {
145
+ readonly order: 7;
146
+ };
147
+ readonly linkBehavior: {
148
+ readonly label: "Where links go";
149
+ readonly order: 8;
150
+ };
151
+ readonly publishMode: {
152
+ readonly label: "Publishing mode";
153
+ readonly visibility: "advanced";
154
+ };
155
+ readonly publicPublishingAllowed: {
156
+ readonly label: "Allow public posts";
157
+ readonly visibility: "advanced";
158
+ };
159
+ readonly platformUserId: {
160
+ readonly visibility: "advanced";
161
+ };
162
+ readonly tokenExpiresAt: {
163
+ readonly label: "Connection expires";
164
+ readonly visibility: "advanced";
165
+ };
166
+ readonly scopes: {
167
+ readonly label: "Permissions granted";
168
+ readonly visibility: "advanced";
169
+ };
170
+ readonly missingPermissions: {
171
+ readonly visibility: "advanced";
172
+ };
173
+ readonly errorMessage: {
174
+ readonly label: "What went wrong";
175
+ readonly visibility: "advanced";
176
+ };
177
+ readonly tenantId: {
178
+ readonly visibility: "hidden";
179
+ };
180
+ readonly accessToken: {
181
+ readonly visibility: "hidden";
182
+ };
183
+ readonly refreshToken: {
184
+ readonly visibility: "hidden";
185
+ };
186
+ readonly credentialSecretId: {
187
+ readonly visibility: "hidden";
188
+ };
189
+ readonly accessTokenSecretName: {
190
+ readonly visibility: "hidden";
191
+ };
192
+ readonly refreshTokenSecretName: {
193
+ readonly visibility: "hidden";
194
+ };
195
+ };
196
+ };
197
+ readonly SocialPostAnalyticsSnapshot: {
198
+ readonly fields: {
199
+ readonly socialPostId: {
200
+ readonly label: "Post";
201
+ readonly order: 1;
202
+ };
203
+ readonly platform: {
204
+ readonly order: 2;
205
+ };
206
+ readonly capturedAt: {
207
+ readonly label: "Measured on";
208
+ readonly order: 3;
209
+ };
210
+ readonly analytics: {
211
+ readonly label: "Numbers";
212
+ readonly order: 4;
213
+ };
214
+ readonly tenantId: {
215
+ readonly visibility: "hidden";
216
+ };
217
+ readonly raw: {
218
+ readonly visibility: "hidden";
219
+ };
220
+ };
221
+ };
222
+ };
223
+ }
224
+ //# sourceMappingURL=recipes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAElF,6EAA6E;AAC7E,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,EAAE,SAAkB;IAC3B,MAAM,CAAC,IAAI,SAAuB;IAClC,MAAM,CAAC,KAAK,SAAY;IACxB,MAAM,CAAC,OAAO,SACqG;IACnH,MAAM,CAAC,QAAQ,WASb;IACF,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,oFAA4D;IACzE,MAAM,CAAC,GAAG;;;;;;;;;;;;SAgBR;IACF,MAAM,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiEH;CACZ"}