ai-publish-sdk 1.0.0 → 1.1.1

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 CHANGED
@@ -37,7 +37,7 @@ Get OAuth token for an integration.
37
37
  ```typescript
38
38
  getToken(appName: IntegrationAppName, options?: GetTokenOptions, config?: RpcConfig): Promise<GetTokenResult | null>
39
39
 
40
- type IntegrationAppName = 'gmail' | 'jira' | 'googledrive' | 'salesforce' | 'googlecalendar'
40
+ type IntegrationAppName = 'gmail' | 'jira' | 'googledrive' | 'salesforce' | 'googlecalendar' | 'slack'
41
41
 
42
42
  interface GetTokenOptions {
43
43
  interactive?: boolean // show OAuth flow if not yet authorized
@@ -62,6 +62,14 @@ interface GenerateMessageOptions {
62
62
  }
63
63
  ```
64
64
 
65
+ ### executeScript(code)
66
+
67
+ Execute JavaScript on the host page.
68
+
69
+ ```typescript
70
+ executeScript(code: string, config?: RpcConfig): Promise<void>
71
+ ```
72
+
65
73
  ### RpcConfig
66
74
 
67
75
  Optional config passed to any function call.
@@ -3,3 +3,4 @@ import { GenerateMessageOptions, GetTokenOptions, GetTokenResult, IntegrationApp
3
3
  export declare function generateMessage(prompt: string, options: GenerateMessageOptions, config?: RpcConfig): Promise<string | null>;
4
4
  export declare function getToken(appName: IntegrationAppName, options?: GetTokenOptions, config?: RpcConfig): Promise<GetTokenResult | null>;
5
5
  export declare function getUserInfo(config?: RpcConfig): Promise<UserInfo | null>;
6
+ export declare function executeScript(code: string, config?: RpcConfig): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-publish-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "module": "./index.mjs",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",