@adeli/sdk 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +30 -2
- package/dist/comments-C_vDnwix.d.cts +8268 -0
- package/dist/comments-Dx3195Ty.d.ts +8268 -0
- package/dist/helpers/index.cjs +482 -0
- package/dist/helpers/index.cjs.map +1 -0
- package/dist/helpers/index.d.cts +207 -0
- package/dist/helpers/index.d.ts +207 -0
- package/dist/helpers/index.js +471 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/index.cjs +878 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +360 -0
- package/dist/index.d.ts +360 -0
- package/dist/index.js +860 -0
- package/dist/index.js.map +1 -0
- package/dist/uploads-MGVSU99R.d.cts +100 -0
- package/dist/uploads-MGVSU99R.d.ts +100 -0
- package/dist/uploads.cjs +45 -0
- package/dist/uploads.cjs.map +1 -0
- package/dist/uploads.d.cts +1 -0
- package/dist/uploads.d.ts +1 -0
- package/dist/uploads.js +41 -0
- package/dist/uploads.js.map +1 -0
- package/docs/api-reference.md +72 -0
- package/docs/availability.md +26 -0
- package/docs/client.md +72 -0
- package/docs/maintenance.md +30 -0
- package/docs/publishing.md +39 -0
- package/openapi/adeli.openapi.json +20505 -0
- package/openapi/docs-links.json +71 -0
- package/openapi/provenance.json +8 -0
- package/package.json +85 -4
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "public core docs navigation metadata (apps/landing-page/src/lib/docs/navigation.ts)",
|
|
3
|
+
"baseUrl": "https://www.tryadeli.com",
|
|
4
|
+
"operations": {
|
|
5
|
+
"getMe": [{"method":"GET","path":"/api/v1/me","href":"/docs/api/me"}],
|
|
6
|
+
"listProfiles": [{"method":"GET","path":"/api/v1/profiles","href":"/docs/api/profiles/list-profiles"}],
|
|
7
|
+
"createProfile": [{"method":"POST","path":"/api/v1/profiles","href":"/docs/api/profiles/create-profile"}],
|
|
8
|
+
"getProfile": [{"method":"GET","path":"/api/v1/profiles/{profileId}","href":"/docs/api/profiles/get-profile"}],
|
|
9
|
+
"updateProfile": [{"method":"PUT","path":"/api/v1/profiles/{profileId}","href":"/docs/api/profiles/update-profile"}],
|
|
10
|
+
"deleteProfile": [{"method":"DELETE","path":"/api/v1/profiles/{profileId}","href":"/docs/api/profiles/delete-profile"}],
|
|
11
|
+
"startConnection": [{"method":"POST","path":"/api/v1/profiles/{profileId}/connect","href":"/docs/api/connect/start-connection"}],
|
|
12
|
+
"getConnection": [{"method":"GET","path":"/api/v1/profiles/{profileId}/connect/{connectionSessionId}","href":"/docs/api/connect/get-connection-session"}],
|
|
13
|
+
"listAccounts": [{"method":"GET","path":"/api/v1/accounts","href":"/docs/api/accounts/list-accounts"}],
|
|
14
|
+
"listProfileAccounts": [{"method":"GET","path":"/api/v1/profiles/{profileId}/accounts","href":"/docs/api/accounts/list-profile-accounts"}],
|
|
15
|
+
"getAccount": [{"method":"GET","path":"/api/v1/profiles/{profileId}/accounts/{accountId}","href":"/docs/api/accounts/get-account"}],
|
|
16
|
+
"updateAccount": [{"method":"PATCH","path":"/api/v1/profiles/{profileId}/accounts/{accountId}","href":"/docs/api/accounts/update-x-account"}],
|
|
17
|
+
"disconnectAccount": [{"method":"DELETE","path":"/api/v1/profiles/{profileId}/accounts/{accountId}","href":"/docs/api/accounts/disconnect-account"}],
|
|
18
|
+
"refreshAccounts": [{"method":"POST","path":"/api/v1/profiles/{profileId}/accounts/refresh","href":"/docs/api/accounts/refresh-tokens"}],
|
|
19
|
+
"listPosts": [{"method":"GET","path":"/api/v1/posts","href":"/docs/api/posts/list-posts"}],
|
|
20
|
+
"createMediaUploads": [{"method":"POST","path":"/api/v1/media/uploads","href":"/docs/api/posts/create-media-uploads"}],
|
|
21
|
+
"createPost": [
|
|
22
|
+
{"method":"POST","path":"/api/v1/posts","href":"/docs/api/posts/publish-instagram"},
|
|
23
|
+
{"method":"POST","path":"/api/v1/posts","href":"/docs/api/posts/publish-facebook"},
|
|
24
|
+
{"method":"POST","path":"/api/v1/posts","href":"/docs/api/posts/publish-tiktok"},
|
|
25
|
+
{"method":"POST","path":"/api/v1/posts","href":"/docs/api/posts/publish-youtube"},
|
|
26
|
+
{"method":"POST","path":"/api/v1/posts","href":"/docs/api/posts/publish-x"},
|
|
27
|
+
{"method":"POST","path":"/api/v1/posts","href":"/docs/api/posts/publish-bluesky"}
|
|
28
|
+
],
|
|
29
|
+
"uploadYouTubeVideo": [{"method":"POST","path":"/api/v1/posts/youtube","href":"/docs/api/posts/upload-youtube-video-file"}],
|
|
30
|
+
"deleteXPost": [{"method":"DELETE","path":"/api/v1/posts/x/{postId}","href":"/docs/api/posts/delete-x-post"}],
|
|
31
|
+
"deleteBlueskyPost": [{"method":"DELETE","path":"/api/v1/posts/bluesky/{postId}","href":"/docs/api/posts/delete-bluesky-post"}],
|
|
32
|
+
"getInstagramPostStatus": [{"method":"GET","path":"/api/v1/posts/instagram/status","href":"/docs/api/posts/get-instagram-publish-status"}],
|
|
33
|
+
"getFacebookPostStatus": [{"method":"GET","path":"/api/v1/posts/facebook/status","href":"/docs/api/posts/get-facebook-video-status"}],
|
|
34
|
+
"getTikTokPostStatus": [{"method":"GET","path":"/api/v1/posts/tiktok/status","href":"/docs/api/posts/get-tiktok-publish-status"}],
|
|
35
|
+
"getTikTokCreatorInfo": [{"method":"GET","path":"/api/v1/posts/tiktok/creator-info","href":"/docs/api/posts/get-tiktok-creator-info"}],
|
|
36
|
+
"getYouTubeVideoStatus": [{"method":"GET","path":"/api/v1/posts/youtube/status","href":"/docs/api/posts/get-youtube-upload-status"}],
|
|
37
|
+
"listComments": [{"method":"GET","path":"/api/v1/comments","href":"/docs/api/comments/list-comments"}],
|
|
38
|
+
"createComment": [{"method":"POST","path":"/api/v1/comments","href":"/docs/api/comments/create-comment"}],
|
|
39
|
+
"updateComment": [{"method":"PATCH","path":"/api/v1/comments/{commentId}","href":"/docs/api/comments/update-comment"}],
|
|
40
|
+
"deleteComment": [{"method":"DELETE","path":"/api/v1/comments/{commentId}","href":"/docs/api/comments/delete-comment"}],
|
|
41
|
+
"listMessages": [{"method":"GET","path":"/api/v1/messages","href":"/docs/api/messages/list-messages"}],
|
|
42
|
+
"sendMessage": [{"method":"POST","path":"/api/v1/messages","href":"/docs/api/messages/send-message"}],
|
|
43
|
+
"sendInstagramMessage": [{"method":"POST","path":"/api/v1/messages/instagram","href":"/docs/api/messages/send-instagram-message"}],
|
|
44
|
+
"listWebhooks": [{"method":"GET","path":"/api/v1/webhooks","href":"/docs/api/webhooks/list-webhooks"}],
|
|
45
|
+
"createWebhook": [{"method":"POST","path":"/api/v1/webhooks","href":"/docs/api/webhooks/create-webhook"}],
|
|
46
|
+
"deleteWebhook": [{"method":"DELETE","path":"/api/v1/webhooks/{webhookId}","href":"/docs/api/webhooks/delete-webhook"}],
|
|
47
|
+
"getInstagramAccountInsights": [{"method":"GET","path":"/api/v1/analytics/instagram/account-insights","href":"/docs/api/analytics/instagram-account-insights"}],
|
|
48
|
+
"getFacebookPageMetrics": [{"method":"GET","path":"/api/v1/analytics/facebook/page-metrics","href":"/docs/api/analytics/facebook-page-metrics"}],
|
|
49
|
+
"getTikTokAccountAnalytics": [{"method":"GET","path":"/api/v1/analytics/tiktok/account-analytics","href":"/docs/api/analytics/tiktok-account-analytics"}],
|
|
50
|
+
"getTikTokAccountInsights": [{"method":"GET","path":"/api/v1/analytics/tiktok/account-insights","href":"/docs/api/analytics/tiktok-account-insights"}],
|
|
51
|
+
"getTikTokVideoInsights": [{"method":"GET","path":"/api/v1/analytics/tiktok/video-insights","href":"/docs/api/analytics/tiktok-post-insights"}],
|
|
52
|
+
"getYouTubeChannelInsights": [{"method":"GET","path":"/api/v1/analytics/youtube/channel-insights","href":"/docs/api/analytics/youtube-channel-insights"}],
|
|
53
|
+
"getYouTubeVideoInsights": [{"method":"GET","path":"/api/v1/analytics/youtube/video-insights","href":"/docs/api/analytics/youtube-video-insights"}],
|
|
54
|
+
"listAdBusinesses": [{"method":"GET","path":"/api/v1/ads/businesses","href":"/docs/api/ads/list-businesses"}],
|
|
55
|
+
"listAdAccounts": [{"method":"GET","path":"/api/v1/ads/accounts","href":"/docs/api/ads/list-ad-accounts"}],
|
|
56
|
+
"createAdAccount": [{"method":"POST","path":"/api/v1/ads/accounts","href":"/docs/api/ads/create-ad-account"}],
|
|
57
|
+
"getAdAccount": [{"method":"GET","path":"/api/v1/ads/accounts/{adAccountId}","href":"/docs/api/ads/get-ad-account"}],
|
|
58
|
+
"updateAdAccount": [{"method":"PATCH","path":"/api/v1/ads/accounts/{adAccountId}","href":"/docs/api/ads/update-ad-account"}],
|
|
59
|
+
"getAdTree": [{"method":"GET","path":"/api/v1/ads/tree","href":"/docs/api/ads/get-campaign-tree"}],
|
|
60
|
+
"getAdInsights": [{"method":"GET","path":"/api/v1/ads/insights","href":"/docs/api/ads/get-insights"}],
|
|
61
|
+
"listAdLeads": [{"method":"GET","path":"/api/v1/ads/leads","href":"/docs/api/ads/list-leads"}],
|
|
62
|
+
"createCampaign": [{"method":"POST","path":"/api/v1/ads/campaigns","href":"/docs/api/ads/create-campaign"}],
|
|
63
|
+
"deleteCampaign": [{"method":"DELETE","path":"/api/v1/ads/campaigns/{campaignId}","href":"/docs/api/ads/delete-campaign"}],
|
|
64
|
+
"setAdStatus": [{"method":"PUT","path":"/api/v1/ads/status","href":"/docs/api/ads/update-status"}],
|
|
65
|
+
"updateAdGroup": [{"method":"PATCH","path":"/api/v1/ads/ad-groups/{adGroupId}","href":"/docs/api/ads/update-ad-group"}],
|
|
66
|
+
"listAdTargeting": [{"method":"GET","path":"/api/v1/ads/targeting","href":"/docs/api/ads/list-targeting"}],
|
|
67
|
+
"listAdIdentities": [{"method":"GET","path":"/api/v1/ads/identities","href":"/docs/api/ads/list-identities"}],
|
|
68
|
+
"createAdIdentity": [{"method":"POST","path":"/api/v1/ads/identities","href":"/docs/api/ads/create-identity"}],
|
|
69
|
+
"getXUsage": [{"method":"GET","path":"/api/v1/usage/x","href":"/docs/pricing/x"}]
|
|
70
|
+
}
|
|
71
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adeli/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Server-side TypeScript SDK for Adeli",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/kingscrosslabs/adeli-sdk.git"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=24"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dist/index.d.cts",
|
|
22
|
+
"default": "./dist/index.cjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"./helpers": {
|
|
26
|
+
"import": {
|
|
27
|
+
"types": "./dist/helpers/index.d.ts",
|
|
28
|
+
"default": "./dist/helpers/index.js"
|
|
29
|
+
},
|
|
30
|
+
"require": {
|
|
31
|
+
"types": "./dist/helpers/index.d.cts",
|
|
32
|
+
"default": "./dist/helpers/index.cjs"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"./uploads": {
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./dist/uploads.d.ts",
|
|
38
|
+
"default": "./dist/uploads.js"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./dist/uploads.d.cts",
|
|
42
|
+
"default": "./dist/uploads.cjs"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist",
|
|
51
|
+
"openapi/*.json",
|
|
52
|
+
"README.md",
|
|
53
|
+
"docs/*.md"
|
|
54
|
+
],
|
|
55
|
+
"sideEffects": false,
|
|
56
|
+
"scripts": {
|
|
57
|
+
"sync:openapi": "tsx scripts/sync-openapi.ts",
|
|
58
|
+
"generate": "tsx scripts/generate.ts",
|
|
59
|
+
"generate:api-reference": "tsx scripts/generate-api-reference.ts",
|
|
60
|
+
"check:api-reference": "tsx scripts/check-api-reference.ts",
|
|
61
|
+
"check:generated": "tsx scripts/check-generated.ts && npm run check:api-reference",
|
|
62
|
+
"check:contract": "tsx scripts/check-contract.ts",
|
|
63
|
+
"lint": "eslint . --cache --cache-location .eslintcache",
|
|
64
|
+
"typecheck": "tsc --noEmit",
|
|
65
|
+
"test": "vitest run",
|
|
66
|
+
"build": "tsup",
|
|
67
|
+
"check:package": "npm run build && npm pack --dry-run && tsx scripts/check-package.ts",
|
|
68
|
+
"test:package": "node test/package-smoke.mjs",
|
|
69
|
+
"typecheck:examples": "tsx scripts/typecheck-examples.ts",
|
|
70
|
+
"release:check": "tsx scripts/check-package.ts --release"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
74
|
+
"@changesets/cli": "3.0.3",
|
|
75
|
+
"@redocly/ajv": "8.11.2",
|
|
76
|
+
"@types/node": "24.19.2",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "8.72.0",
|
|
78
|
+
"@typescript-eslint/parser": "8.72.0",
|
|
79
|
+
"eslint": "9.39.5",
|
|
80
|
+
"openapi-typescript": "7.9.1",
|
|
81
|
+
"publint": "0.3.25",
|
|
82
|
+
"tsup": "8.5.0",
|
|
83
|
+
"tsx": "4.19.4",
|
|
84
|
+
"typescript": "5.8.3",
|
|
85
|
+
"vitest": "5.0.5"
|
|
86
|
+
}
|
|
87
|
+
}
|