@topolo/sdk 0.4.10 → 0.6.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/README.md +4 -4
- package/dist/index.cjs +160 -158
- package/dist/index.d.cts +136 -138
- package/dist/index.d.ts +136 -138
- package/dist/index.js +159 -157
- package/dist/node/credential-store.cjs +440 -0
- package/dist/node/credential-store.d.cts +81 -0
- package/dist/node/credential-store.d.ts +81 -0
- package/dist/node/credential-store.js +399 -0
- package/package.json +7 -2
- package/src/application-requirements.ts +16 -16
- package/src/applications.generated.ts +98 -98
- package/src/client.test.ts +56 -56
- package/src/client.ts +48 -48
- package/src/index.test.ts +3 -3
- package/src/index.ts +2 -2
- package/src/modules/crm.test.ts +4 -4
- package/src/modules/identity.test.ts +4 -4
- package/src/modules/p2p.test.ts +4 -8
- package/src/modules/p2p.ts +0 -3
- package/src/node/credential-store.ts +311 -0
- package/src/oauth.ts +2 -2
- package/src/services.generated.ts +2 -2
- package/src/services.test.ts +29 -29
- package/src/services.ts +19 -19
- package/src/widgets.test.ts +14 -14
- package/src/widgets.ts +8 -8
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ services and actions become usable without an SDK, CLI, or MCP release.
|
|
|
96
96
|
|
|
97
97
|
`APPLICATIONS` describes every Topolo platform application discovered from the
|
|
98
98
|
PlatformApplications metadata, including Worker apps that do not expose a
|
|
99
|
-
callable
|
|
99
|
+
callable app API. `DEFAULT_APP_URLS` is the bundled callable API service
|
|
100
100
|
snapshot generated from `topolo.cloudcontrol.json`.
|
|
101
101
|
|
|
102
102
|
For agent-scale fleets, the bundle is packaging metadata, not an authorization
|
|
@@ -104,7 +104,7 @@ source. `TopoloClient.listServices()` always calls the live TopoloAuth catalog
|
|
|
104
104
|
with the current credential and returns only services that credential can use in
|
|
105
105
|
its organization, including the granted permissions. `TopoloClient.request()`
|
|
106
106
|
uses that credential-scoped catalog before routing any non-Auth service, so a
|
|
107
|
-
bundled
|
|
107
|
+
bundled app ID is only a convenient alias after Auth confirms access.
|
|
108
108
|
|
|
109
109
|
`listBundledServices()` is available for packaging/audit tooling that needs the
|
|
110
110
|
generated snapshot. Do not use it to decide what an end user or agent may call.
|
|
@@ -142,8 +142,8 @@ their own `GET /api/widget` endpoint. The SDK owns the shared payload contract:
|
|
|
142
142
|
import { createTopoloWidgetResponse } from '@topolo/sdk';
|
|
143
143
|
|
|
144
144
|
return Response.json(createTopoloWidgetResponse({
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
appId: '<runtime-app-id>',
|
|
146
|
+
appName: 'Example',
|
|
147
147
|
widgets: [
|
|
148
148
|
{
|
|
149
149
|
type: 'stats',
|