szpt-driver-api 1.0.81 → 1.0.83

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/auth.d.ts CHANGED
@@ -13,6 +13,8 @@ export declare class AccessKey {
13
13
  expireAt: number;
14
14
  /** 创建人 */
15
15
  owner: string;
16
+ /** 权限哈希 */
17
+ permissionHash: string;
16
18
  /** 权限列表 */
17
19
  permissions: string[];
18
20
  }
@@ -1530,6 +1532,13 @@ export declare class RemoveDictItemRequest {
1530
1532
  itemKeys?: string[];
1531
1533
  name?: string;
1532
1534
  }
1535
+ export declare class ResetPasswordResult {
1536
+ /** @format int64 */
1537
+ id: number;
1538
+ message: string;
1539
+ success: boolean;
1540
+ username: string;
1541
+ }
1533
1542
  export declare class Resource {
1534
1543
  description: string;
1535
1544
  /** @format binary */
@@ -1768,6 +1777,20 @@ export declare class SyncUserHint {
1768
1777
  roleNotExistPolicy?: "Skip" | "Sync" | "Throw";
1769
1778
  syncUserSignature?: boolean;
1770
1779
  }
1780
+ export declare class TestDelayRequest {
1781
+ /** @format int64 */
1782
+ sendTime?: number;
1783
+ }
1784
+ export declare class TestDelayResponse {
1785
+ /** @format int64 */
1786
+ delay: number;
1787
+ /** @format int64 */
1788
+ recvTime: number;
1789
+ recvTimeStr: string;
1790
+ /** @format int64 */
1791
+ sendTime: number;
1792
+ sendTimeStr: string;
1793
+ }
1771
1794
  export declare class ThirdPlatformBinding {
1772
1795
  appId: string;
1773
1796
  openId: string;
@@ -1779,6 +1802,7 @@ export declare class ThirdPlatformEntity {
1779
1802
  appId: string;
1780
1803
  appKey: string;
1781
1804
  appSecret: string;
1805
+ department: string;
1782
1806
  description: string;
1783
1807
  devMode: boolean;
1784
1808
  generateUrlLinkUseAppId: string;
@@ -1835,6 +1859,7 @@ export declare class Token {
1835
1859
  }
1836
1860
  export declare class User {
1837
1861
  adminDepartmentList: DepartmentSimple[];
1862
+ adminSubDepartments: boolean;
1838
1863
  businessDepartmentList: UserBusinessDepartment[];
1839
1864
  /** @format int64 */
1840
1865
  createTime: number;
@@ -1862,6 +1887,12 @@ export declare class UserAccessoryLoginForm {
1862
1887
  messageRequestId?: string;
1863
1888
  }
1864
1889
  export declare class UserBatchUpdateBean {
1890
+ /** @format int32 */
1891
+ allowDeviceCount?: number;
1892
+ allowLoginDays?: string;
1893
+ allowLoginTimeRange?: string;
1894
+ allowMultiLogin?: boolean;
1895
+ changePasswordFlag?: boolean;
1865
1896
  /** @format int64 */
1866
1897
  departmentId?: number;
1867
1898
  ids?: number[];
@@ -2063,6 +2094,8 @@ export declare class UserLocationQueryBean {
2063
2094
  usernameLike?: string;
2064
2095
  }
2065
2096
  export declare class UserLocationRequest {
2097
+ /** @format int64 */
2098
+ atTime?: number;
2066
2099
  includeNone?: boolean;
2067
2100
  usernames?: string[];
2068
2101
  }
@@ -2723,6 +2756,8 @@ export declare class PageResultString {
2723
2756
  }
2724
2757
  export declare class GetAccessoryParams {
2725
2758
  accessoryType?: string;
2759
+ /** 按绑定用户查询 */
2760
+ bindUsername?: string;
2726
2761
  department?: string;
2727
2762
  includeSubDepartment?: boolean;
2728
2763
  orderBy?: string[];
@@ -2730,6 +2765,7 @@ export declare class GetAccessoryParams {
2730
2765
  pageIndex?: number;
2731
2766
  /** @format int32 */
2732
2767
  pageSize?: number;
2768
+ sdkId?: string;
2733
2769
  sn?: string[];
2734
2770
  }
2735
2771
  export declare class SetHeartbeatIntervalBySnParams {
@@ -2900,6 +2936,12 @@ export declare class IpBlockParams {
2900
2936
  /** @format int32 */
2901
2937
  pageSize?: number;
2902
2938
  }
2939
+ export declare class KickParams {
2940
+ /** redirect */
2941
+ redirect?: string;
2942
+ /** username */
2943
+ username: string;
2944
+ }
2903
2945
  export declare class GetLedgerPushPlanParams {
2904
2946
  orderBy?: string[];
2905
2947
  /** @format int32 */
@@ -2937,6 +2979,7 @@ export declare class LoginLedgerParams {
2937
2979
  scope?: string;
2938
2980
  status?: "FAILED" | "FORBIDDEN" | "NO_AUTHENTICATION" | "NO_PERMISSION" | "SUCCESS";
2939
2981
  targetId?: string;
2982
+ targetIdIn?: string[];
2940
2983
  targetType?: string;
2941
2984
  thirdPlatformAppId?: string;
2942
2985
  /** @format int64 */
@@ -2977,6 +3020,7 @@ export declare class LoginLedgerSelfParams {
2977
3020
  scope?: string;
2978
3021
  status?: "FAILED" | "FORBIDDEN" | "NO_AUTHENTICATION" | "NO_PERMISSION" | "SUCCESS";
2979
3022
  targetId?: string;
3023
+ targetIdIn?: string[];
2980
3024
  targetType?: string;
2981
3025
  thirdPlatformAppId?: string;
2982
3026
  /** @format int64 */
@@ -3017,6 +3061,7 @@ export declare class OperateLedgerParams {
3017
3061
  scope?: string;
3018
3062
  status?: "FAILED" | "FORBIDDEN" | "NO_AUTHENTICATION" | "NO_PERMISSION" | "SUCCESS";
3019
3063
  targetId?: string;
3064
+ targetIdIn?: string[];
3020
3065
  targetType?: string;
3021
3066
  thirdPlatformAppId?: string;
3022
3067
  /** @format int64 */
@@ -3057,6 +3102,7 @@ export declare class SafetyLedgerParams {
3057
3102
  scope?: string;
3058
3103
  status?: "FAILED" | "FORBIDDEN" | "NO_AUTHENTICATION" | "NO_PERMISSION" | "SUCCESS";
3059
3104
  targetId?: string;
3105
+ targetIdIn?: string[];
3060
3106
  targetType?: string;
3061
3107
  thirdPlatformAppId?: string;
3062
3108
  /** @format int64 */
@@ -3473,9 +3519,9 @@ export declare class ThirdPlatformTrustwayPortalLoginByAppIdParams {
3473
3519
  /** appId */
3474
3520
  appId: string;
3475
3521
  }
3476
- export declare class ThirdPlatformZjzzLoginByAppIdParams {
3477
- /** external */
3478
- external?: boolean;
3522
+ export declare class ThirdPlatformTrustwayPortalLogoutByAppIdParams {
3523
+ /** redirect */
3524
+ redirect?: string;
3479
3525
  /** appId */
3480
3526
  appId: string;
3481
3527
  }
@@ -3517,7 +3563,7 @@ export declare class GetRoleParams {
3517
3563
  scope?: string;
3518
3564
  type?: "Auditing" | "Common" | "Security" | "System" | "Work";
3519
3565
  }
3520
- export declare class ExistParams5 {
3566
+ export declare class ExistParams6 {
3521
3567
  /** @format int64 */
3522
3568
  createUser?: number;
3523
3569
  department?: string;
@@ -3713,7 +3759,7 @@ export declare class ToOssParams {
3713
3759
  export declare class UploadPayload {
3714
3760
  file?: File;
3715
3761
  }
3716
- export declare class ByIdParams9 {
3762
+ export declare class ByIdParams2 {
3717
3763
  /** format */
3718
3764
  format?: string;
3719
3765
  /** id */
@@ -3749,6 +3795,10 @@ export declare class ProxyPushHandlerDepartmentConfigParams {
3749
3795
  department: string;
3750
3796
  }
3751
3797
  export declare type ProxyPushHandlerDictionaryPayload = DictionaryWithItems[];
3798
+ export declare class GetProxyTestDelayParams {
3799
+ /** department */
3800
+ department: string;
3801
+ }
3752
3802
  export declare class PushDepartmentConfigByDepartmentParams {
3753
3803
  /** includeChildrenDepartment */
3754
3804
  includeChildrenDepartment?: boolean;
@@ -3970,6 +4020,12 @@ export declare class GenerateUrlLinkParams {
3970
4020
  /** query */
3971
4021
  query?: string;
3972
4022
  }
4023
+ export declare class RegistUserByPhoneParams {
4024
+ /** id */
4025
+ id: string;
4026
+ /** phone */
4027
+ phone: string;
4028
+ }
3973
4029
  export declare class PostBusinessDepartmentDepartmentUsersParams {
3974
4030
  /** category */
3975
4031
  category: string;
@@ -4025,7 +4081,7 @@ export declare class CacheClearParams {
4025
4081
  /** username */
4026
4082
  username: string;
4027
4083
  }
4028
- export declare class ExistParams3 {
4084
+ export declare class ExistParams8 {
4029
4085
  /** 根据可管理部门id查询。支持多选 */
4030
4086
  adminDepartmentId?: number[];
4031
4087
  /** 基于业务部门业务标识匹配 */
@@ -4216,6 +4272,7 @@ export declare class GetListParams {
4216
4272
  usernameLike?: string;
4217
4273
  }
4218
4274
  export declare type ListSimpleByRealnamePayload = string[];
4275
+ export declare type PutResetPasswordPayload = number[];
4219
4276
  export declare type PutAdminDepartmentByIdPayload = number[];
4220
4277
  export declare type PutPermissionsByIdPayload = string[];
4221
4278
  export declare class PutUsernameByIdParams {
@@ -4267,7 +4324,7 @@ interface HttpClient {
4267
4324
  }
4268
4325
  /**
4269
4326
  * @title 授权服务
4270
- * @version 1.2.53
4327
+ * @version 1.2.55
4271
4328
  * @baseUrl //192.168.200.12:5000
4272
4329
  *
4273
4330
  * 授权服务
@@ -4929,6 +4986,22 @@ declare class Api {
4929
4986
  */
4930
4987
  putByIp: (ip: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<IPBlock>;
4931
4988
  };
4989
+ kick: {
4990
+ /**
4991
+ * @description 所需权限:user:admin
4992
+ *
4993
+ * @tags kick
4994
+ * @name Kick
4995
+ * @summary 强制用户注销
4996
+ * @request POST:/auth/kick
4997
+ * @response `200` `void` OK
4998
+ * @response `201` `void` Created
4999
+ * @response `401` `void` Unauthorized
5000
+ * @response `403` `void` Forbidden
5001
+ * @response `404` `void` Not Found
5002
+ */
5003
+ kick: (query: KickParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
5004
+ };
4932
5005
  ledger: {
4933
5006
  /**
4934
5007
  * @description 所需权限:supreme:all
@@ -5377,7 +5450,7 @@ declare class Api {
5377
5450
  *
5378
5451
  * @tags location
5379
5452
  * @name ListByUsername
5380
- * @summary 批量返回指定用户名的当前位置
5453
+ * @summary 批量返回指定用户名的位置信息
5381
5454
  * @request POST:/auth/location/list/by-username
5382
5455
  * @response `200` `(UserLocation)[]` OK
5383
5456
  * @response `201` `void` Created
@@ -6681,6 +6754,20 @@ declare class Api {
6681
6754
  * @response `404` `void` Not Found
6682
6755
  */
6683
6756
  thirdPlatformTrustwayPortalLoginByAppId: ({ appId, ...query }: ThirdPlatformTrustwayPortalLoginByAppIdParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
6757
+ /**
6758
+ * No description
6759
+ *
6760
+ * @tags public
6761
+ * @name ThirdPlatformTrustwayPortalLogoutByAppId
6762
+ * @summary [诚道门户]主动注销
6763
+ * @request POST:/auth/public/third-platform/trustway-portal/{appId}/logout
6764
+ * @response `200` `CdtResponse` OK
6765
+ * @response `201` `void` Created
6766
+ * @response `401` `void` Unauthorized
6767
+ * @response `403` `void` Forbidden
6768
+ * @response `404` `void` Not Found
6769
+ */
6770
+ thirdPlatformTrustwayPortalLogoutByAppId: ({ appId, ...query }: ThirdPlatformTrustwayPortalLogoutByAppIdParams, request: CdtRequest, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<CdtResponse>;
6684
6771
  /**
6685
6772
  * No description
6686
6773
  *
@@ -6693,7 +6780,7 @@ declare class Api {
6693
6780
  * @response `403` `void` Forbidden
6694
6781
  * @response `404` `void` Not Found
6695
6782
  */
6696
- thirdPlatformZjzzLoginByAppId: ({ appId, ...query }: ThirdPlatformZjzzLoginByAppIdParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
6783
+ thirdPlatformZjzzLoginByAppId: (appId: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
6697
6784
  /**
6698
6785
  * @description 仅支持IP白名单下的受控访问
6699
6786
  *
@@ -6776,7 +6863,7 @@ declare class Api {
6776
6863
  * @response `403` `void` Forbidden
6777
6864
  * @response `404` `void` Not Found
6778
6865
  */
6779
- exist: (query: ExistParams5, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
6866
+ exist: (query: ExistParams6, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
6780
6867
  /**
6781
6868
  * @description 所需权限:role:list
6782
6869
  *
@@ -7389,7 +7476,7 @@ declare class Api {
7389
7476
  * @response `403` `void` Forbidden
7390
7477
  * @response `404` `void` Not Found
7391
7478
  */
7392
- byId: ({ id, ...query }: ByIdParams9, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
7479
+ byId: ({ id, ...query }: ByIdParams2, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
7393
7480
  /**
7394
7481
  * No description
7395
7482
  *
@@ -7575,6 +7662,47 @@ declare class Api {
7575
7662
  * @response `404` `void` Not Found
7576
7663
  */
7577
7664
  proxyPushHandlerUserBindings: (data: UserBindingsTransDTO, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
7665
+ /**
7666
+ * No description
7667
+ *
7668
+ * @tags sync
7669
+ * @name ProxyShowDelay
7670
+ * @summary 延迟测试 - 显示
7671
+ * @request POST:/auth/sync/proxy/show-delay
7672
+ * @response `200` `TestDelayResponse` OK
7673
+ * @response `201` `void` Created
7674
+ * @response `401` `void` Unauthorized
7675
+ * @response `403` `void` Forbidden
7676
+ * @response `404` `void` Not Found
7677
+ */
7678
+ proxyShowDelay: (axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<TestDelayResponse>;
7679
+ /**
7680
+ * No description
7681
+ *
7682
+ * @tags sync
7683
+ * @name GetProxyTestDelay
7684
+ * @summary 延迟测试 - 发送
7685
+ * @request GET:/auth/sync/proxy/test-delay
7686
+ * @response `200` `ProxyResponse` OK
7687
+ * @response `401` `void` Unauthorized
7688
+ * @response `403` `void` Forbidden
7689
+ * @response `404` `void` Not Found
7690
+ */
7691
+ getProxyTestDelay: (query: GetProxyTestDelayParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<ProxyResponse>;
7692
+ /**
7693
+ * No description
7694
+ *
7695
+ * @tags sync
7696
+ * @name PostProxyTestDelay
7697
+ * @summary 延迟测试 - 接收
7698
+ * @request POST:/auth/sync/proxy/test-delay
7699
+ * @response `200` `TestDelayResponse` OK
7700
+ * @response `201` `void` Created
7701
+ * @response `401` `void` Unauthorized
7702
+ * @response `403` `void` Forbidden
7703
+ * @response `404` `void` Not Found
7704
+ */
7705
+ postProxyTestDelay: (request: TestDelayRequest, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<TestDelayResponse>;
7578
7706
  /**
7579
7707
  * @description 所需权限:department:config:write、supreme:all (OR)
7580
7708
  *
@@ -8112,7 +8240,7 @@ declare class Api {
8112
8240
  * @response `403` `void` Forbidden
8113
8241
  * @response `404` `void` Not Found
8114
8242
  */
8115
- exist: (query: ExistParams3, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
8243
+ exist: (query: ExistParams8, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
8116
8244
  /**
8117
8245
  * @description 所需权限:user:admin
8118
8246
  *
@@ -8307,6 +8435,20 @@ declare class Api {
8307
8435
  * @response `404` `void` Not Found
8308
8436
  */
8309
8437
  listUsername: (queryBean: UserQueryBean, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<PageResultString>;
8438
+ /**
8439
+ * @description 所需权限:user:password:reset
8440
+ *
8441
+ * @tags user
8442
+ * @name PutResetPassword
8443
+ * @summary 重置密码(批量)
8444
+ * @request PUT:/auth/user/reset-password
8445
+ * @response `200` `(ResetPasswordResult)[]` OK
8446
+ * @response `201` `void` Created
8447
+ * @response `401` `void` Unauthorized
8448
+ * @response `403` `void` Forbidden
8449
+ * @response `404` `void` Not Found
8450
+ */
8451
+ putResetPassword: (ids: PutResetPasswordPayload, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<ResetPasswordResult[]>;
8310
8452
  /**
8311
8453
  * @description 仅修改非空字段<br>所需权限:user:update
8312
8454
  *
@@ -8667,6 +8809,20 @@ declare class Api {
8667
8809
  * @response `404` `void` Not Found
8668
8810
  */
8669
8811
  generateUrlLink: (query: GenerateUrlLinkParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<AppRestResponse>;
8812
+ /**
8813
+ * @description 所需权限:external-user:manage
8814
+ *
8815
+ * @tags userExternal
8816
+ * @name RegistUserByPhone
8817
+ * @summary 注册指定手机号的外部用户
8818
+ * @request POST:/auth/user-external/regist-user-by-phone
8819
+ * @response `200` `void` OK
8820
+ * @response `201` `void` Created
8821
+ * @response `401` `void` Unauthorized
8822
+ * @response `403` `void` Forbidden
8823
+ * @response `404` `void` Not Found
8824
+ */
8825
+ registUserByPhone: (query: RegistUserByPhoneParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
8670
8826
  };
8671
8827
  ws: {
8672
8828
  /**