@stacksjs/types 0.75.88 → 0.75.90
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.d.ts +1 -0
- package/dist/mobile.d.ts +1 -0
- package/dist/socials.d.ts +58 -0
- package/dist/stacks.d.ts +2 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
package/dist/mobile.d.ts
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **Socials Options**
|
|
3
|
+
*
|
|
4
|
+
* Which social accounts this application posts as, and where each one's
|
|
5
|
+
* credentials come from. Because Stacks is fully-typed, you may hover any of
|
|
6
|
+
* the options below and the definitions will be provided. In case you have any
|
|
7
|
+
* questions, feel free to reach out via Discord or GitHub Discussions.
|
|
8
|
+
*/
|
|
9
|
+
export declare interface SocialsOptions {
|
|
10
|
+
default?: string
|
|
11
|
+
identities?: Record<string, SocialIdentityOptions>
|
|
12
|
+
}
|
|
13
|
+
/** One account, and the platforms it posts on. */
|
|
14
|
+
export declare interface SocialIdentityOptions {
|
|
15
|
+
handle?: string
|
|
16
|
+
platforms?: readonly SocialCredentialPlatform[]
|
|
17
|
+
credentials?: Partial<SocialCredentialsByPlatform>
|
|
18
|
+
}
|
|
19
|
+
export declare interface SocialCredentialsByPlatform {
|
|
20
|
+
bluesky: BlueskyCredentialOptions
|
|
21
|
+
twitter: TwitterCredentialOptions
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Bluesky authenticates with an app password, not an OAuth token.
|
|
25
|
+
*
|
|
26
|
+
* Generate it in Settings, App Passwords; it is not the account password and
|
|
27
|
+
* can be revoked on its own. The driver mints a session per use from these,
|
|
28
|
+
* so there is nothing short-lived to store or refresh.
|
|
29
|
+
*
|
|
30
|
+
* Environment convention: `SOCIALS_<IDENTITY>_BLUESKY_IDENTIFIER` and
|
|
31
|
+
* `SOCIALS_<IDENTITY>_BLUESKY_PASSWORD`.
|
|
32
|
+
*/
|
|
33
|
+
export declare interface BlueskyCredentialOptions {
|
|
34
|
+
identifier?: string
|
|
35
|
+
password?: string
|
|
36
|
+
service?: string
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* X authenticates posting with a user-context OAuth 2.0 token (PKCE).
|
|
40
|
+
*
|
|
41
|
+
* Only `clientId` and `clientSecret` are static. The access and refresh
|
|
42
|
+
* tokens are per identity and come out of a consent flow, so unlike Bluesky
|
|
43
|
+
* they cannot simply be pasted into `.env` ahead of time: something has to run
|
|
44
|
+
* the flow and persist the result. Until then an identity can be declared and
|
|
45
|
+
* will report that it is not yet authorized, rather than appearing to work.
|
|
46
|
+
*
|
|
47
|
+
* Environment convention: `SOCIALS_<IDENTITY>_TWITTER_CLIENT_ID`,
|
|
48
|
+
* `_CLIENT_SECRET`, `_ACCESS_TOKEN` and `_REFRESH_TOKEN`.
|
|
49
|
+
*/
|
|
50
|
+
export declare interface TwitterCredentialOptions {
|
|
51
|
+
clientId?: string
|
|
52
|
+
clientSecret?: string
|
|
53
|
+
accessToken?: string
|
|
54
|
+
refreshToken?: string
|
|
55
|
+
}
|
|
56
|
+
/** The platforms whose credential shape is confirmed against their driver. */
|
|
57
|
+
export type SocialCredentialPlatform = 'bluesky' | 'twitter';
|
|
58
|
+
export type SocialsConfig = Partial<SocialsOptions>;
|
package/dist/stacks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AiConfig, AnalyticsConfig, AppConfig, AuthConfig, BinaryConfig, CacheConfig, CloudConfig, CmsConfig, CommerceConfig, CorsConfig, DashboardConfig, DatabaseConfig, DnsConfig, DocsConfig, EmailConfig, ErrorConfig, FeatureFlagsConfig, FilesystemsConfig, GitConfig, HashingConfig, ImagesConfig, LibraryConfig, LoggingConfig, MarketingConfig, MonitoringConfig, NotificationConfig, PaymentConfig, Ports, QueueConfig, RealtimeConfig, SaasConfig, SearchEngineConfig, FormsConfig, SitesConfig, SmsConfig, SecurityConfig, ServerConfig, ServicesConfig, Team, UiConfig } from '.';
|
|
1
|
+
import type { AiConfig, AnalyticsConfig, AppConfig, AuthConfig, BinaryConfig, CacheConfig, CloudConfig, CmsConfig, CommerceConfig, CorsConfig, DashboardConfig, DatabaseConfig, DnsConfig, DocsConfig, EmailConfig, ErrorConfig, FeatureFlagsConfig, FilesystemsConfig, GitConfig, HashingConfig, ImagesConfig, LibraryConfig, LoggingConfig, MarketingConfig, MonitoringConfig, NotificationConfig, PaymentConfig, Ports, QueueConfig, RealtimeConfig, SaasConfig, SearchEngineConfig, FormsConfig, SitesConfig, SmsConfig, SocialsConfig, SecurityConfig, ServerConfig, ServicesConfig, Team, UiConfig } from '.';
|
|
2
2
|
/**
|
|
3
3
|
* **Stacks Options**
|
|
4
4
|
*
|
|
@@ -43,6 +43,7 @@ export declare interface StacksOptions {
|
|
|
43
43
|
sites: SitesConfig
|
|
44
44
|
forms: FormsConfig
|
|
45
45
|
sms: SmsConfig
|
|
46
|
+
socials: SocialsConfig
|
|
46
47
|
services: ServicesConfig
|
|
47
48
|
filesystems: FilesystemsConfig
|
|
48
49
|
team: Team
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.90",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@stacksjs/bunpress": "^0.2.15",
|
|
60
60
|
"@stacksjs/clapp": "^0.2.12",
|
|
61
|
-
"@stacksjs/events": "0.75.
|
|
62
|
-
"@stacksjs/strings": "0.75.
|
|
63
|
-
"@stacksjs/stx": "^0.2.
|
|
61
|
+
"@stacksjs/events": "0.75.90",
|
|
62
|
+
"@stacksjs/strings": "0.75.90",
|
|
63
|
+
"@stacksjs/stx": "^0.2.395",
|
|
64
64
|
"@stacksjs/ts-validation": "^0.5.6",
|
|
65
65
|
"bun-query-builder": "^0.3.5"
|
|
66
66
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@stacksjs/validation": "0.75.
|
|
76
|
+
"@stacksjs/validation": "0.75.90",
|
|
77
77
|
"better-dx": "^0.2.24",
|
|
78
78
|
"meilisearch": "^0.62.0"
|
|
79
79
|
},
|