@certd/plugin-plus 1.37.17 → 1.38.0

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.
Files changed (160) hide show
  1. package/CHANGELOG.md +133 -181
  2. package/build.md +1 -0
  3. package/dist/d/index.d.ts +1 -23
  4. package/dist/d/synology/client.d.ts +13 -3
  5. package/dist/d/synology/index.d.ts +0 -2
  6. package/dist/d/unicloud/client.d.ts +6 -3
  7. package/dist/index.js +1 -1
  8. package/fix-esm-import-paths.js +11 -11
  9. package/package.json +8 -25
  10. package/{rollup.config.mjs → rollup.config.js} +1 -19
  11. package/tsconfig.json +2 -1
  12. package/dist/d/1panel/access.d.ts +0 -17
  13. package/dist/d/1panel/client.d.ts +0 -37
  14. package/dist/d/1panel/index.d.ts +0 -3
  15. package/dist/d/1panel/plugins/deploy-to-website.d.ts +0 -18
  16. package/dist/d/1panel/plugins/index.d.ts +0 -1
  17. package/dist/d/1panel/util.d.ts +0 -1
  18. package/dist/d/alipay/access.d.ts +0 -11
  19. package/dist/d/alipay/index.d.ts +0 -1
  20. package/dist/d/aliyun/index.d.ts +0 -1
  21. package/dist/d/aliyun/plugins/deploy-to-ack/index.d.ts +0 -26
  22. package/dist/d/aliyun/plugins/deploy-to-all/index.d.ts +0 -39
  23. package/dist/d/aliyun/plugins/index.d.ts +0 -2
  24. package/dist/d/baidu/access.d.ts +0 -11
  25. package/dist/d/baidu/client.d.ts +0 -40
  26. package/dist/d/baidu/index.d.ts +0 -3
  27. package/dist/d/baidu/plugins/index.d.ts +0 -3
  28. package/dist/d/baidu/plugins/plugin-deploy-to-blb.d.ts +0 -17
  29. package/dist/d/baidu/plugins/plugin-deploy-to-cdn.d.ts +0 -11
  30. package/dist/d/baidu/plugins/plugin-upload-to-baidu.d.ts +0 -7
  31. package/dist/d/baishan/access.d.ts +0 -8
  32. package/dist/d/baishan/index.d.ts +0 -2
  33. package/dist/d/baishan/plugins/index.d.ts +0 -1
  34. package/dist/d/baishan/plugins/plugin-update-cert.d.ts +0 -10
  35. package/dist/d/baota/access.d.ts +0 -13
  36. package/dist/d/baota/index.d.ts +0 -4
  37. package/dist/d/baota/lib/client.d.ts +0 -14
  38. package/dist/d/baota/plugins/index.d.ts +0 -5
  39. package/dist/d/baota/plugins/plugin-delete-expiring-cert.d.ts +0 -6
  40. package/dist/d/baota/plugins/plugin-deploy-to-aawaf.d.ts +0 -15
  41. package/dist/d/baota/plugins/plugin-deploy-to-panel.d.ts +0 -8
  42. package/dist/d/baota/plugins/plugin-deploy-to-website-win.d.ts +0 -11
  43. package/dist/d/baota/plugins/plugin-deploy-to-website.d.ts +0 -17
  44. package/dist/d/baota/waf-access.d.ts +0 -19
  45. package/dist/d/cdnfly/access.d.ts +0 -19
  46. package/dist/d/cdnfly/index.d.ts +0 -2
  47. package/dist/d/cdnfly/plugins/index.d.ts +0 -1
  48. package/dist/d/cdnfly/plugins/plugin-deploy-to-cdn.d.ts +0 -25
  49. package/dist/d/ctyun/index.d.ts +0 -1
  50. package/dist/d/ctyun/lib.d.ts +0 -156
  51. package/dist/d/ctyun/plugins/index.d.ts +0 -1
  52. package/dist/d/ctyun/plugins/plugin-deploy-to-cdn.d.ts +0 -12
  53. package/dist/d/ftp/index.d.ts +0 -1
  54. package/dist/d/ftp/plugins/index.d.ts +0 -1
  55. package/dist/d/ftp/plugins/plugin-upload-to-ftp.d.ts +0 -16
  56. package/dist/d/host/index.d.ts +0 -1
  57. package/dist/d/host/plugins/index.d.ts +0 -1
  58. package/dist/d/host/plugins/plugin-deploy-to-iis.d.ts +0 -13
  59. package/dist/d/k8s/access.d.ts +0 -5
  60. package/dist/d/k8s/index.d.ts +0 -2
  61. package/dist/d/k8s/plugins/index.d.ts +0 -3
  62. package/dist/d/k8s/plugins/plugin-apply.d.ts +0 -12
  63. package/dist/d/k8s/plugins/plugin-ingress.d.ts +0 -15
  64. package/dist/d/k8s/plugins/plugin-secret.d.ts +0 -17
  65. package/dist/d/kuocai/access.d.ts +0 -9
  66. package/dist/d/kuocai/index.d.ts +0 -2
  67. package/dist/d/kuocai/plugins/index.d.ts +0 -1
  68. package/dist/d/kuocai/plugins/plugin-deploy-to-cdn.d.ts +0 -17
  69. package/dist/d/lecdn/access.d.ts +0 -10
  70. package/dist/d/lecdn/index.d.ts +0 -2
  71. package/dist/d/lecdn/plugins/index.d.ts +0 -2
  72. package/dist/d/lecdn/plugins/plugin-update-cert-v2.d.ts +0 -19
  73. package/dist/d/lecdn/plugins/plugin-update-cert.d.ts +0 -19
  74. package/dist/d/lib/index.d.ts +0 -6
  75. package/dist/d/lucky/access.d.ts +0 -16
  76. package/dist/d/lucky/index.d.ts +0 -2
  77. package/dist/d/lucky/plugins/index.d.ts +0 -1
  78. package/dist/d/lucky/plugins/plugin-upload.d.ts +0 -18
  79. package/dist/d/maoyun/access.d.ts +0 -8
  80. package/dist/d/maoyun/client.d.ts +0 -17
  81. package/dist/d/maoyun/index.d.ts +0 -2
  82. package/dist/d/maoyun/plugins/plugin-deploy-to-cdn.d.ts +0 -11
  83. package/dist/d/plesk/access.d.ts +0 -31
  84. package/dist/d/plesk/index.d.ts +0 -2
  85. package/dist/d/plesk/plugins/index.d.ts +0 -1
  86. package/dist/d/plesk/plugins/plugin-deploy-cert.d.ts +0 -11
  87. package/dist/d/plesk/plugins/plugin-refresh-cert.d.ts +0 -10
  88. package/dist/d/qiniu/index.d.ts +0 -1
  89. package/dist/d/qiniu/plugins/index.d.ts +0 -1
  90. package/dist/d/qiniu/plugins/plugin-deploy-to-oss.d.ts +0 -9
  91. package/dist/d/safeline/access.d.ts +0 -10
  92. package/dist/d/safeline/index.d.ts +0 -2
  93. package/dist/d/safeline/plugins/deploy-to-website.d.ts +0 -16
  94. package/dist/d/safeline/plugins/index.d.ts +0 -1
  95. package/dist/d/synology/access.d.ts +0 -22
  96. package/dist/d/synology/plugins/index.d.ts +0 -1
  97. package/dist/d/synology/plugins/plugin-deploy-to-panel.d.ts +0 -11
  98. package/dist/d/unicloud/access.d.ts +0 -7
  99. package/dist/d/unicloud/index.d.ts +0 -3
  100. package/dist/d/unicloud/plugins/index.d.ts +0 -1
  101. package/dist/d/unicloud/plugins/plugin-deploy-to-space.d.ts +0 -11
  102. package/dist/d/wxpay/access.d.ts +0 -13
  103. package/dist/d/wxpay/index.d.ts +0 -1
  104. package/dist/d/yidun/access-rcdn.d.ts +0 -9
  105. package/dist/d/yidun/access-sms.d.ts +0 -9
  106. package/dist/d/yidun/access.d.ts +0 -9
  107. package/dist/d/yidun/index.d.ts +0 -4
  108. package/dist/d/yidun/plugins/index.d.ts +0 -2
  109. package/dist/d/yidun/plugins/plugin-deploy-to-cdn.d.ts +0 -13
  110. package/dist/d/yidun/plugins/plugin-deploy-to-rcdn.d.ts +0 -17
  111. package/dist/d/yizhifu/access.d.ts +0 -8
  112. package/dist/d/yizhifu/index.d.ts +0 -1
  113. package/dist/util-9726341d.js +0 -1
  114. package/export-plugin-yaml.js +0 -99
  115. package/metadata/access_1panel.yaml +0 -81
  116. package/metadata/access_alipay.yaml +0 -29
  117. package/metadata/access_baidu.yaml +0 -22
  118. package/metadata/access_baishan.yaml +0 -15
  119. package/metadata/access_baota-waf.yaml +0 -36
  120. package/metadata/access_baota.yaml +0 -50
  121. package/metadata/access_cdnfly.yaml +0 -29
  122. package/metadata/access_k8s.yaml +0 -16
  123. package/metadata/access_kuocaicdn.yaml +0 -20
  124. package/metadata/access_lecdn.yaml +0 -27
  125. package/metadata/access_lucky.yaml +0 -29
  126. package/metadata/access_maoyun.yaml +0 -26
  127. package/metadata/access_plesk.yaml +0 -27
  128. package/metadata/access_safeline.yaml +0 -26
  129. package/metadata/access_synology.yaml +0 -80
  130. package/metadata/access_unicloud.yaml +0 -21
  131. package/metadata/access_wxpay.yaml +0 -40
  132. package/metadata/access_yfysms.yaml +0 -21
  133. package/metadata/access_yidun.yaml +0 -22
  134. package/metadata/access_yidunrcdn.yaml +0 -20
  135. package/metadata/access_yizhifu.yaml +0 -45
  136. package/metadata/deploy_1PanelDeployToWebsitePlugin.yaml +0 -60
  137. package/metadata/deploy_AliyunDeployCertToAll.yaml +0 -174
  138. package/metadata/deploy_BaiduDeployToCDN.yaml +0 -43
  139. package/metadata/deploy_BaishanUpdateCert.yaml +0 -47
  140. package/metadata/deploy_BaotaDeployPanelCert.yaml +0 -34
  141. package/metadata/deploy_BaotaDeployWebSiteCert.yaml +0 -85
  142. package/metadata/deploy_CdnflyDeployToCDN.yaml +0 -123
  143. package/metadata/deploy_CtyunDeployToCDN.yaml +0 -97
  144. package/metadata/deploy_DeployCertToAliyunAck.yaml +0 -122
  145. package/metadata/deploy_HostDeployToIIS.yaml +0 -76
  146. package/metadata/deploy_K8sDeployToIngress.yaml +0 -46
  147. package/metadata/deploy_K8sDeployToSecret.yaml +0 -50
  148. package/metadata/deploy_KuocaiDeployToRCDN.yaml +0 -59
  149. package/metadata/deploy_LeCDNUpdateCert.yaml +0 -57
  150. package/metadata/deploy_LeCDNUpdateCertV2.yaml +0 -58
  151. package/metadata/deploy_LuckyUpdateCert.yaml +0 -73
  152. package/metadata/deploy_MaoyunDeployToCdn.yaml +0 -72
  153. package/metadata/deploy_PleskDeploySiteCert.yaml +0 -72
  154. package/metadata/deploy_QiniuDeployCertToOSS.yaml +0 -39
  155. package/metadata/deploy_SafelineDeployToWebsitePlugin.yaml +0 -75
  156. package/metadata/deploy_SynologyDeployToPanel.yaml +0 -45
  157. package/metadata/deploy_UniCloudDeployToSpace.yaml +0 -64
  158. package/metadata/deploy_UploadCertToFTP.yaml +0 -171
  159. package/metadata/deploy_YidunDeployToCDN.yaml +0 -48
  160. package/metadata/deploy_YidunDeployToRCDN.yaml +0 -59
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@certd/plugin-plus",
3
3
  "private": false,
4
- "version": "1.37.17",
4
+ "version": "1.38.0",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/d/index.d.ts",
@@ -10,41 +10,24 @@
10
10
  "dev": "vite",
11
11
  "before-build": "rimraf dist && rimraf tsconfig.tsbuildinfo && rimraf .rollup.cache",
12
12
  "build": "npm run before-build && rollup -c ",
13
- "dev-build": "npm run before-build && tsc --skipLibCheck",
13
+ "dev-build": "npm run before-build &&tsc --skipLibCheck",
14
14
  "preview": "vite preview",
15
- "lint-fix": "eslint --ext .js,.jsx,.vue . --fix",
16
15
  "pub": "npm publish",
17
- "compile": "tsc --skipLibCheck --watch",
18
- "metadata": "node export-plugin-yaml.js"
16
+ "compile": "tsc --skipLibCheck --watch"
19
17
  },
20
18
  "dependencies": {
21
- "@alicloud/pop-core": "^1.7.10",
22
- "@baiducloud/sdk": "^1.0.2",
23
- "@certd/basic": "^1.37.17",
24
- "@certd/lib-k8s": "^1.37.17",
25
- "@certd/pipeline": "^1.37.17",
26
- "@certd/plugin-cert": "^1.37.17",
27
- "@certd/plugin-lib": "^1.37.17",
28
- "@certd/plus-core": "^1.37.17",
29
- "ali-oss": "^6.21.0",
30
- "baidu-aip-sdk": "^4.16.16",
31
- "basic-ftp": "^5.0.5",
32
- "cos-nodejs-sdk-v5": "^2.14.6",
19
+ "@certd/basic": "^1.38.0",
20
+ "@certd/pipeline": "^1.38.0",
21
+ "@certd/plugin-lib": "^1.38.0",
33
22
  "crypto-js": "^4.2.0",
34
23
  "dayjs": "^1.11.7",
35
24
  "form-data": "^4.0.0",
36
- "https-proxy-agent": "^7.0.5",
37
- "js-yaml": "^4.1.0",
38
- "jsencrypt": "^3.3.2",
39
- "jsrsasign": "^11.1.0",
40
- "qiniu": "^7.12.0",
41
- "tencentcloud-sdk-nodejs": "^4.0.44"
25
+ "querystring": "^0.2.1"
42
26
  },
43
27
  "devDependencies": {
44
28
  "@rollup/plugin-json": "^6.0.0",
45
29
  "@rollup/plugin-terser": "^0.4.3",
46
30
  "@rollup/plugin-typescript": "^11.0.0",
47
- "@types/ali-oss": "^6.16.11",
48
31
  "@types/chai": "^4.3.10",
49
32
  "@types/mocha": "^10.0.7",
50
33
  "@types/node": "^18",
@@ -61,5 +44,5 @@
61
44
  "tslib": "^2.8.1",
62
45
  "typescript": "^5.4.2"
63
46
  },
64
- "gitHead": "786780ce9b0ee9b9ebb104f54abb161ae9a924e9"
47
+ "gitHead": "a218cd0ffb16b658dd261e106cc0dbea63034756"
65
48
  }
@@ -31,23 +31,5 @@ export default {
31
31
  },
32
32
  }),
33
33
  ],
34
- external: [
35
- "vue",
36
- "lodash-es",
37
- "dayjs",
38
- "log4js",
39
- "@midwayjs/core",
40
- "@certd/pipeline",
41
- "axios",
42
- "basic-ftp",
43
- "@alicloud/pop-core",
44
- "ali-oss",
45
- "https-proxy-agent",
46
- "form-data",
47
- "syno",
48
- "@certd/lib-k8s",
49
- "tencentcloud-sdk-nodejs",
50
- "qiniu",
51
- "@certd/plugin-cert",
52
- ],
34
+ external: ["vue", "lodash-es", "dayjs", "log4js", "@midwayjs/core", "@certd/pipeline", "axios"],
53
35
  };
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compileOnSave": true,
3
3
  "compilerOptions": {
4
- "importHelpers": true,
4
+ "importHelpers": false,
5
5
  "target": "ESNext",
6
6
  "module": "ESNext",
7
7
  "moduleResolution": "node",
@@ -23,6 +23,7 @@
23
23
  "useDefineForClassFields": true,
24
24
  "strict": false,
25
25
  "sourceMap": false,
26
+ "inlineSourceMap": false,
26
27
  "resolveJsonModule": true,
27
28
  "isolatedModules": false,
28
29
  "lib": ["ESNext", "DOM"],
@@ -1,17 +0,0 @@
1
- import { BaseAccess } from "@certd/pipeline";
2
- /**
3
- * 这个注解将注册一个授权配置
4
- * 在certd的后台管理系统中,用户可以选择添加此类型的授权
5
- */
6
- export declare class OnePanelAccess extends BaseAccess {
7
- baseUrl: string;
8
- safeEnter: string;
9
- type: string;
10
- apiVersion: string;
11
- username: string;
12
- password: string;
13
- apiKey: string;
14
- skipSslVerify: boolean;
15
- testRequest: boolean;
16
- onTestRequest(): Promise<string>;
17
- }
@@ -1,37 +0,0 @@
1
- import { HttpClient, HttpRequestConfig, ILogger } from "@certd/basic";
2
- import { OnePanelAccess } from "./access.js";
3
- export declare class OnePanelClient {
4
- access: OnePanelAccess;
5
- http: HttpClient;
6
- logger: ILogger;
7
- utils: any;
8
- token: string;
9
- constructor(opts: {
10
- access: OnePanelAccess;
11
- http: HttpClient;
12
- logger: ILogger;
13
- utils: any;
14
- });
15
- get1PanelCertInfo(sslId: string): Promise<any>;
16
- doRequest(config: {
17
- currentNode?: string;
18
- } & HttpRequestConfig<any>): Promise<any>;
19
- doRequestWithoutAuth(config: HttpRequestConfig<any>): Promise<any>;
20
- getCookie(name: string): Promise<any>;
21
- encryptPassword(password: string): Promise<string>;
22
- getAccessToken(): Promise<{
23
- "1Panel-Token": any;
24
- "1Panel-Timestamp": number;
25
- } | {
26
- PanelAuthorization: string;
27
- }>;
28
- getAccessTokenByApiKey(): Promise<{
29
- "1Panel-Token": any;
30
- "1Panel-Timestamp": number;
31
- }>;
32
- getAccessTokenByPassword(): Promise<{
33
- PanelAuthorization: string;
34
- }>;
35
- onGetSSLIds(): Promise<any>;
36
- getNodeValue(node?: string): string;
37
- }
@@ -1,3 +0,0 @@
1
- export * from "./plugins/index.js";
2
- export * from "./access.js";
3
- export * from "./client.js";
@@ -1,18 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- import { OnePanelAccess } from "../access";
4
- import { OnePanelClient } from "../client.js";
5
- export declare class OnePanelDeployToWebsitePlugin extends AbstractTaskPlugin {
6
- cert: CertInfo;
7
- certDomains: string[];
8
- accessId: string;
9
- currentNode: string;
10
- sslIds: string[];
11
- access: OnePanelAccess;
12
- onInstance(): Promise<void>;
13
- execute(): Promise<void>;
14
- isNeedUpdate(certRes: any): boolean;
15
- get1PanelCertInfo(client: OnePanelClient, sslId: string): Promise<any>;
16
- onGetNodes(): Promise<any[]>;
17
- onGetSSLIds(): Promise<any[]>;
18
- }
@@ -1 +0,0 @@
1
- export * from "./deploy-to-website.js";
@@ -1 +0,0 @@
1
- export declare const encryptPassword: (rsaPublicKeyText: string, password: string) => string;
@@ -1,11 +0,0 @@
1
- import { BaseAccess } from "@certd/pipeline";
2
- export declare class AlipayAccess extends BaseAccess {
3
- /**
4
- * appId: "<-- 请填写您的AppId,例如:2019091767145019 -->",
5
- * privateKey: "<-- 请填写您的应用私钥,例如:MIIEvQIBADANB ... ... -->",
6
- * alipayPublicKey: "<-- 请填写您的支付宝公钥,例如:MIIBIjANBg... -->",
7
- */
8
- appId: string;
9
- privateKey: string;
10
- alipayPublicKey: string;
11
- }
@@ -1 +0,0 @@
1
- export * from "./access.js";
@@ -1 +0,0 @@
1
- export * from "./plugins/index.js";
@@ -1,26 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- import { AliyunClient } from "@certd/plugin-lib";
4
- export declare class DeployCertToAliyunAckPlugin extends AbstractTaskPlugin {
5
- cert: CertInfo;
6
- accessId: string;
7
- regionId: string;
8
- clusterId: string;
9
- secretName: string | string[];
10
- namespace: string;
11
- isPrivateIpAddress: boolean;
12
- skipTLSVerify: boolean;
13
- createOnNotFound: boolean;
14
- K8sClient: any;
15
- onInstance(): Promise<void>;
16
- execute(): Promise<void>;
17
- restartIngress(options: {
18
- k8sClient: any;
19
- }): Promise<void>;
20
- patchCertSecret(options: {
21
- cert: CertInfo;
22
- k8sClient: any;
23
- }): Promise<void>;
24
- getClient(aliyunProvider: any, regionId: string): Promise<AliyunClient>;
25
- getKubeConfig(client: any, clusterId: string, isPrivateIpAddress?: boolean): Promise<any>;
26
- }
@@ -1,39 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- import { AliyunSslClient } from "@certd/plugin-lib";
4
- export declare class AliyunDeployCertToAll extends AbstractTaskPlugin {
5
- cert: CertInfo | number;
6
- certDomains: string[];
7
- endpoint: string;
8
- accessId: string;
9
- /**
10
- * SLB:传统型负载均衡 CLB(仅中国站)
11
- * LIVE:视频直播(仅中国站)
12
- * webHosting:云虚拟主机(仅中国站)
13
- * VOD:视频点播(仅中国站)
14
- * CR:容器镜像服务(仅中国站)
15
- * DCDN:全站加速
16
- * DDoS:DDos 防护
17
- * CDN:内容分发网络
18
- * ALB:应用负载均衡
19
- * APIGateway:API 网关
20
- * FC:函数计算
21
- * GA:全球加速
22
- * MSE:微服务引擎
23
- * NLB:网络型负载均衡
24
- * OSS:对象存储
25
- * SAE:Serverless 应用引擎
26
- * WAF:Web 应用防火墙
27
- */
28
- cloudProduct: string;
29
- productIds: string[];
30
- contactIds: string[];
31
- checkTimeout: number;
32
- onInstance(): Promise<void>;
33
- execute(): Promise<void>;
34
- updateJobStatus(sslClient: AliyunSslClient, jobId: string, status: string): Promise<void>;
35
- onGetProductList(data: any): Promise<any[]>;
36
- onGetContactList(data: any): Promise<any>;
37
- getJobDetail(sslClient: AliyunSslClient, jobId: number): Promise<any>;
38
- private createDeployJob;
39
- }
@@ -1,2 +0,0 @@
1
- export * from "./deploy-to-ack/index.js";
2
- export * from "./deploy-to-all/index.js";
@@ -1,11 +0,0 @@
1
- import { BaseAccess } from "@certd/pipeline";
2
- /**
3
- * 这个注解将注册一个授权配置
4
- * 在certd的后台管理系统中,用户可以选择添加此类型的授权
5
- */
6
- export declare class BaiduAccess extends BaseAccess {
7
- accessKey: string;
8
- secretKey: string;
9
- testRequest: boolean;
10
- onTestRequest(): Promise<string>;
11
- }
@@ -1,40 +0,0 @@
1
- import { HttpClient, HttpRequestConfig, ILogger } from "@certd/basic";
2
- import { BaiduAccess } from "./access";
3
- import { CertInfo } from "@certd/plugin-cert";
4
- export type BaiduYunClientOptions = {
5
- access: BaiduAccess;
6
- logger: ILogger;
7
- http: HttpClient;
8
- };
9
- export type BaiduYunReq = {
10
- host: string;
11
- uri: string;
12
- body?: any;
13
- headers?: any;
14
- query?: any;
15
- method: string;
16
- };
17
- export declare class BaiduYunClient {
18
- opts: BaiduYunClientOptions;
19
- constructor(opts: BaiduYunClientOptions);
20
- doRequest(req: BaiduYunReq, config?: HttpRequestConfig): Promise<any>;
21
- getTimestampString(): string;
22
- getQueryString(params: any): string;
23
- uriEncode(input: string, encodeSlash?: boolean): string;
24
- toHexUTF8(ch: any): string;
25
- getAuthString(Host: string, Method: string, CanonicalURI: string, CanonicalQueryString: string, timestamp: string): string;
26
- }
27
- export declare class BaiduYunCertClient {
28
- client: BaiduYunClient;
29
- constructor(opts: BaiduYunClientOptions);
30
- createCert(opts: {
31
- certName: string;
32
- cert: CertInfo;
33
- }): Promise<any>;
34
- getCertList(): Promise<any>;
35
- updateCert(opts: {
36
- certId: string;
37
- certName: string;
38
- cert: CertInfo;
39
- }): Promise<any>;
40
- }
@@ -1,3 +0,0 @@
1
- export * from "./plugins/index.js";
2
- export * from "./access.js";
3
- export * from "./client.js";
@@ -1,3 +0,0 @@
1
- export * from "./plugin-deploy-to-cdn.js";
2
- export * from "./plugin-deploy-to-blb.js";
3
- export * from "./plugin-upload-to-baidu.js";
@@ -1,17 +0,0 @@
1
- import { AbstractTaskPlugin, PageSearch } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- export declare class BaiduDeployToBLBPlugin extends AbstractTaskPlugin {
4
- cert: CertInfo | string;
5
- certDomains: string[];
6
- region: string;
7
- blbType: string;
8
- accessId: string;
9
- blbIds: string[];
10
- listenerIds: string[];
11
- onInstance(): Promise<void>;
12
- execute(): Promise<void>;
13
- onGetListenerList(data?: PageSearch): Promise<any[]>;
14
- private getListeners;
15
- onGetBLBList(data?: PageSearch): Promise<any[]>;
16
- private updateListenerCert;
17
- }
@@ -1,11 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- export declare class BaiduDeployToCDNPlugin extends AbstractTaskPlugin {
4
- cert: CertInfo | string;
5
- certDomains: string[];
6
- accessId: string;
7
- domains: string[];
8
- onInstance(): Promise<void>;
9
- execute(): Promise<void>;
10
- onGetDomainList(): Promise<any[]>;
11
- }
@@ -1,7 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- export declare class BaiduUploadCert extends AbstractTaskPlugin {
3
- cert: any;
4
- accessId: string;
5
- baiduCertId?: string;
6
- execute(): Promise<void>;
7
- }
@@ -1,8 +0,0 @@
1
- import { BaseAccess } from "@certd/pipeline";
2
- /**
3
- * 这个注解将注册一个授权配置
4
- * 在certd的后台管理系统中,用户可以选择添加此类型的授权
5
- */
6
- export declare class BaishanAccess extends BaseAccess {
7
- token: string;
8
- }
@@ -1,2 +0,0 @@
1
- export * from "./plugins/index.js";
2
- export * from "./access.js";
@@ -1 +0,0 @@
1
- export * from "./plugin-update-cert.js";
@@ -1,10 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- export declare class BaishanUpdateCert extends AbstractTaskPlugin {
4
- certId: number;
5
- certName: string;
6
- cert: CertInfo;
7
- accessId: string;
8
- onInstance(): Promise<void>;
9
- execute(): Promise<void>;
10
- }
@@ -1,13 +0,0 @@
1
- import { BaseAccess } from "@certd/pipeline";
2
- /**
3
- * 这个注解将注册一个授权配置
4
- * 在certd的后台管理系统中,用户可以选择添加此类型的授权
5
- */
6
- export declare class BaotaAccess extends BaseAccess {
7
- panelUrl: string;
8
- apiSecret: string;
9
- skipSslVerify: boolean;
10
- isWindows: boolean;
11
- testRequest: boolean;
12
- onTestRequest(): Promise<string>;
13
- }
@@ -1,4 +0,0 @@
1
- export * from "./plugins/index.js";
2
- export * from "./access.js";
3
- export * from "./waf-access.js";
4
- export * from "./lib/client.js";
@@ -1,14 +0,0 @@
1
- import { BaotaAccess } from "../access.js";
2
- import { HttpClient, HttpRequestConfig } from "@certd/basic";
3
- export declare class BaotaClient {
4
- access: BaotaAccess;
5
- http: HttpClient;
6
- constructor(access: BaotaAccess, http: HttpClient);
7
- getRequestToken(): {
8
- request_token: string;
9
- request_time: string;
10
- };
11
- getMd5(content: string): string;
12
- doRequest(path: string, action: string, data?: any, options?: HttpRequestConfig<any>): Promise<any>;
13
- doWindowsRequest(path: string, data: any, options?: HttpRequestConfig<any>): Promise<any>;
14
- }
@@ -1,5 +0,0 @@
1
- export * from "./plugin-deploy-to-panel.js";
2
- export * from "./plugin-deploy-to-website.js";
3
- export * from "./plugin-deploy-to-aawaf.js";
4
- export * from "./plugin-deploy-to-website-win.js";
5
- export * from "./plugin-delete-expiring-cert.js";
@@ -1,6 +0,0 @@
1
- import { AbstractPlusTaskPlugin } from "../../lib/index.js";
2
- export declare class BaotaDeleteExpiringCert extends AbstractPlusTaskPlugin {
3
- accessId: string;
4
- onInstance(): Promise<void>;
5
- execute(): Promise<void>;
6
- }
@@ -1,15 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- import { BaotaWafAccess } from "../waf-access";
4
- export declare class BaotaDeployWAF extends AbstractTaskPlugin {
5
- cert: CertInfo;
6
- certDomains: string[];
7
- accessId: string;
8
- siteIds: string[];
9
- onInstance(): Promise<void>;
10
- execute(): Promise<void>;
11
- getSiteInfo(access: BaotaWafAccess, siteId: string): Promise<any>;
12
- onGetSiteList(data: {
13
- searchKey?: string;
14
- }): Promise<any[]>;
15
- }
@@ -1,8 +0,0 @@
1
- import { CertInfo } from "@certd/plugin-cert";
2
- import { AbstractPlusTaskPlugin } from "../../lib/index.js";
3
- export declare class BaotaDeployPanelCertPlugin extends AbstractPlusTaskPlugin {
4
- cert: CertInfo;
5
- accessId: string;
6
- onInstance(): Promise<void>;
7
- execute(): Promise<void>;
8
- }
@@ -1,11 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- export declare class BaotaDeployWebSiteWin extends AbstractTaskPlugin {
4
- cert: CertInfo;
5
- certDomains: string[];
6
- accessId: string;
7
- siteIds: number[];
8
- onInstance(): Promise<void>;
9
- execute(): Promise<void>;
10
- onGetSiteList(): Promise<any[]>;
11
- }
@@ -1,17 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- export type SiteItem = {
4
- value: string;
5
- label: string;
6
- domain: string;
7
- };
8
- export declare class BaotaDeployWebSiteCert extends AbstractTaskPlugin {
9
- cert: CertInfo;
10
- certDomains: string[];
11
- accessId: string;
12
- isDockerSite: boolean;
13
- siteName: string | string[];
14
- onInstance(): Promise<void>;
15
- execute(): Promise<void>;
16
- onGetSiteList(): Promise<any[]>;
17
- }
@@ -1,19 +0,0 @@
1
- import { BaseAccess } from "@certd/pipeline";
2
- import { HttpRequestConfig } from "@certd/basic";
3
- /**
4
- * 这个注解将注册一个授权配置
5
- * 在certd的后台管理系统中,用户可以选择添加此类型的授权
6
- */
7
- export declare class BaotaWafAccess extends BaseAccess {
8
- panelUrl: string;
9
- apiSecret: string;
10
- skipSslVerify: boolean;
11
- testRequest: boolean;
12
- onTestRequest(): Promise<void>;
13
- getSiteList(req?: {
14
- query?: string;
15
- pageNo?: number;
16
- pageSize?: number;
17
- }): Promise<any>;
18
- doRequest(req: HttpRequestConfig): Promise<any>;
19
- }
@@ -1,19 +0,0 @@
1
- import { BaseAccess } from "@certd/pipeline";
2
- import { HttpRequestConfig } from "@certd/basic";
3
- /**
4
- * 这个注解将注册一个授权配置
5
- * 在certd的后台管理系统中,用户可以选择添加此类型的授权
6
- */
7
- export declare class CdnflyAccess extends BaseAccess {
8
- url: string;
9
- type: string;
10
- username: string;
11
- password: string;
12
- apiKey: string;
13
- apiSecret: string;
14
- testRequest: boolean;
15
- accessToken: string;
16
- onTestRequest(): Promise<string>;
17
- getToken(): Promise<string>;
18
- doRequest(config?: HttpRequestConfig): Promise<any>;
19
- }
@@ -1,2 +0,0 @@
1
- export * from "./plugins/index.js";
2
- export * from "./access.js";
@@ -1 +0,0 @@
1
- export * from "./plugin-deploy-to-cdn.js";
@@ -1,25 +0,0 @@
1
- import { AbstractTaskPlugin } from "@certd/pipeline";
2
- import { CertInfo } from "@certd/plugin-cert";
3
- import { CdnflyAccess } from "../access";
4
- export declare class CdnflyDeployToCDNPlugin extends AbstractTaskPlugin {
5
- cert: CertInfo;
6
- certDomains: string[];
7
- accessId: string;
8
- autoMatch: boolean;
9
- certId: number | number[];
10
- siteId: number[];
11
- access: CdnflyAccess;
12
- uploadCertId: number;
13
- onInstance(): Promise<void>;
14
- execute(): Promise<void>;
15
- private updateByCertId;
16
- doRequest(url: string, method: string, data: any): Promise<any>;
17
- private updateByDomain;
18
- private updateBySiteId;
19
- querySite(domain?: string): Promise<any>;
20
- queryCert(domain?: string): Promise<any>;
21
- onGetSiteList(data: {
22
- searchKey: string;
23
- }): Promise<any[]>;
24
- onGetCertList(data: any): Promise<any[]>;
25
- }
@@ -1 +0,0 @@
1
- export * from "./plugins/index.js";