@cloudbase/js-sdk 2.22.0 → 2.22.2

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/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { IMySqlClient } from '@cloudbase/mysql';
3
3
  import { authModels } from '@cloudbase/oauth';
4
4
  import { AI } from '@cloudbase/ai';
5
5
  import { CloudbaseAdapter, ResponseObject } from '@cloudbase/adapter-interface'
6
- import { ICloudbaseUpgradedConfig, ICloudbase, Persistence, ICloudbaseApis } from '@cloudbase/types'
6
+ import { ICloudbaseUpgradedConfig, ICloudbase, Persistence } from '@cloudbase/types'
7
7
  import { LANGS } from '@cloudbase/types'
8
8
  import { ICustomReqOpts } from '@cloudbase/types/functions'
9
9
 
@@ -13,6 +13,13 @@ type KV<T> = {
13
13
 
14
14
  type ExcludeOf<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
15
15
 
16
+ declare type MethodType = 'request' | 'post' | 'get' | 'head' | 'patch' | 'delete' | 'put'
17
+ interface ICloudbaseApis {
18
+ [apiName: string]: {
19
+ [method in MethodType]: (callApiOptions: ICallApiOptions, opts?: KV<any>) => Promise<ResponseObject['data']>
20
+ }
21
+ }
22
+
16
23
  /**
17
24
  * module
18
25
  */
@@ -913,7 +920,7 @@ declare namespace cloudbase.auth {
913
920
  *
914
921
  * @return Promise
915
922
  */
916
- signOut(): Promise<void>
923
+ signOut(): Promise<void | { redirect_uri?: string }>
917
924
  /**
918
925
  * 检查用户名是否被绑定过
919
926
  *