@otto-code/client 0.9.8 → 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/dist/daemon-client.d.ts +4 -1
- package/dist/daemon-client.js +2 -1
- package/package.json +3 -3
package/dist/daemon-client.d.ts
CHANGED
|
@@ -2012,7 +2012,10 @@ export declare class DaemonClient {
|
|
|
2012
2012
|
* itself settles later on the `connectors.oauth.status` push, because the user
|
|
2013
2013
|
* is in a browser by then.
|
|
2014
2014
|
*/
|
|
2015
|
-
connectorsOauthAuthorize(connectorId: string, scope?: string, requestId?: string
|
|
2015
|
+
connectorsOauthAuthorize(connectorId: string, scope?: string, requestId?: string, oauthClient?: {
|
|
2016
|
+
clientId: string;
|
|
2017
|
+
clientSecret: string;
|
|
2018
|
+
}): Promise<ConnectorsOauthAuthorizeResponse["payload"]>;
|
|
2016
2019
|
/** Drop a connector's stored authorization. */
|
|
2017
2020
|
connectorsOauthDisconnect(connectorId: string, requestId?: string): Promise<ConnectorsOauthDisconnectResponse["payload"]>;
|
|
2018
2021
|
/**
|
package/dist/daemon-client.js
CHANGED
|
@@ -4860,13 +4860,14 @@ export class DaemonClient {
|
|
|
4860
4860
|
* itself settles later on the `connectors.oauth.status` push, because the user
|
|
4861
4861
|
* is in a browser by then.
|
|
4862
4862
|
*/
|
|
4863
|
-
async connectorsOauthAuthorize(connectorId, scope, requestId) {
|
|
4863
|
+
async connectorsOauthAuthorize(connectorId, scope, requestId, oauthClient) {
|
|
4864
4864
|
return this.sendCorrelatedSessionRequest({
|
|
4865
4865
|
requestId,
|
|
4866
4866
|
message: {
|
|
4867
4867
|
type: "connectors.oauth.authorize.request",
|
|
4868
4868
|
connectorId,
|
|
4869
4869
|
...(scope ? { scope } : {}),
|
|
4870
|
+
...(oauthClient ? { oauthClient } : {}),
|
|
4870
4871
|
},
|
|
4871
4872
|
responseType: "connectors.oauth.authorize.response",
|
|
4872
4873
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otto-code/client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"description": "Otto client SDK package",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"files": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"test": "vitest run"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@otto-code/protocol": "0.9.
|
|
44
|
-
"@otto-code/relay": "0.9.
|
|
43
|
+
"@otto-code/protocol": "0.9.9",
|
|
44
|
+
"@otto-code/relay": "0.9.9",
|
|
45
45
|
"zod": "^4.4.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|