@topolo/sdk 0.9.7 → 0.9.9
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 +12 -0
- package/dist/index.cjs +491 -66
- package/dist/index.d.cts +149 -27
- package/dist/index.d.ts +149 -27
- package/dist/index.js +488 -66
- package/dist/node/credential-store.cjs +32 -3
- package/dist/node/credential-store.js +32 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -131,6 +131,18 @@ schemas, read-only and destructive hints, and the stable MCP/agent tool name.
|
|
|
131
131
|
from `input`, and routes the request through the same auth, audit-header, and
|
|
132
132
|
write-confirmation flow as `request()`.
|
|
133
133
|
|
|
134
|
+
`TopoloClient.uploadAction(actionRef, bytes, input, options)` requires an
|
|
135
|
+
`agentContract.upload` profile. `inline-base64` declares the content, MIME-type,
|
|
136
|
+
and file-name input fields; the SDK validates and base64-encodes the file before
|
|
137
|
+
calling the action. `url-session` declares the initiation fields, response path
|
|
138
|
+
for the returned URL, upload method, and optional completion action mapping; the
|
|
139
|
+
SDK initiates, uploads the raw bytes, and completes the session in one call.
|
|
140
|
+
Both profiles declare a maximum byte length and accepted MIME patterns, and use
|
|
141
|
+
the same authorization and confirmation path as `callAction()`.
|
|
142
|
+
`TopoloClient.uploadActionBase64()` provides the same contract for MCP and
|
|
143
|
+
other transports that already hold canonical base64. `completionInput` supplies
|
|
144
|
+
any additional fields required by a declared URL-session completion action.
|
|
145
|
+
|
|
134
146
|
`APPLICATION_REQUIREMENTS` is the versioned app-build contract agents should
|
|
135
147
|
read before creating or expanding a Topolo app. `requirementsForApplication()`
|
|
136
148
|
filters the shared contract to the browser/API/tooling scopes implied by the app
|