@alicloud/websitebuild20250429 2.23.8 → 2.25.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 (61) hide show
  1. package/dist/client.d.ts +60 -0
  2. package/dist/client.js +202 -14
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/GetMiniAppAuthUrlRequest.d.ts +24 -0
  5. package/dist/models/GetMiniAppAuthUrlRequest.js +62 -0
  6. package/dist/models/GetMiniAppAuthUrlRequest.js.map +1 -0
  7. package/dist/models/GetMiniAppAuthUrlResponse.d.ts +19 -0
  8. package/dist/models/GetMiniAppAuthUrlResponse.js +69 -0
  9. package/dist/models/GetMiniAppAuthUrlResponse.js.map +1 -0
  10. package/dist/models/GetMiniAppAuthUrlResponseBody.d.ts +32 -0
  11. package/dist/models/GetMiniAppAuthUrlResponseBody.js +82 -0
  12. package/dist/models/GetMiniAppAuthUrlResponseBody.js.map +1 -0
  13. package/dist/models/GetMiniAppBindingForAdminRequest.d.ts +28 -0
  14. package/dist/models/GetMiniAppBindingForAdminRequest.js +62 -0
  15. package/dist/models/GetMiniAppBindingForAdminRequest.js.map +1 -0
  16. package/dist/models/GetMiniAppBindingForAdminResponse.d.ts +19 -0
  17. package/dist/models/GetMiniAppBindingForAdminResponse.js +69 -0
  18. package/dist/models/GetMiniAppBindingForAdminResponse.js.map +1 -0
  19. package/dist/models/GetMiniAppBindingForAdminResponseBody.d.ts +49 -0
  20. package/dist/models/GetMiniAppBindingForAdminResponseBody.js +86 -0
  21. package/dist/models/GetMiniAppBindingForAdminResponseBody.js.map +1 -0
  22. package/dist/models/GetMiniAppBindingRequest.d.ts +24 -0
  23. package/dist/models/GetMiniAppBindingRequest.js +65 -0
  24. package/dist/models/GetMiniAppBindingRequest.js.map +1 -0
  25. package/dist/models/GetMiniAppBindingResponse.d.ts +19 -0
  26. package/dist/models/GetMiniAppBindingResponse.js +69 -0
  27. package/dist/models/GetMiniAppBindingResponse.js.map +1 -0
  28. package/dist/models/GetMiniAppBindingResponseBody.d.ts +51 -0
  29. package/dist/models/GetMiniAppBindingResponseBody.js +97 -0
  30. package/dist/models/GetMiniAppBindingResponseBody.js.map +1 -0
  31. package/dist/models/GetMiniAppBindingShrinkRequest.d.ts +24 -0
  32. package/dist/models/GetMiniAppBindingShrinkRequest.js +62 -0
  33. package/dist/models/GetMiniAppBindingShrinkRequest.js.map +1 -0
  34. package/dist/models/UpdateMiniAppBindingRequest.d.ts +33 -0
  35. package/dist/models/UpdateMiniAppBindingRequest.js +64 -0
  36. package/dist/models/UpdateMiniAppBindingRequest.js.map +1 -0
  37. package/dist/models/UpdateMiniAppBindingResponse.d.ts +19 -0
  38. package/dist/models/UpdateMiniAppBindingResponse.js +69 -0
  39. package/dist/models/UpdateMiniAppBindingResponse.js.map +1 -0
  40. package/dist/models/UpdateMiniAppBindingResponseBody.d.ts +39 -0
  41. package/dist/models/UpdateMiniAppBindingResponseBody.js +82 -0
  42. package/dist/models/UpdateMiniAppBindingResponseBody.js.map +1 -0
  43. package/dist/models/model.d.ts +17 -0
  44. package/dist/models/model.js +45 -11
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +224 -14
  48. package/src/models/GetMiniAppAuthUrlRequest.ts +41 -0
  49. package/src/models/GetMiniAppAuthUrlResponse.ts +40 -0
  50. package/src/models/GetMiniAppAuthUrlResponseBody.ts +60 -0
  51. package/src/models/GetMiniAppBindingForAdminRequest.ts +45 -0
  52. package/src/models/GetMiniAppBindingForAdminResponse.ts +40 -0
  53. package/src/models/GetMiniAppBindingForAdminResponseBody.ts +81 -0
  54. package/src/models/GetMiniAppBindingRequest.ts +44 -0
  55. package/src/models/GetMiniAppBindingResponse.ts +40 -0
  56. package/src/models/GetMiniAppBindingResponseBody.ts +92 -0
  57. package/src/models/GetMiniAppBindingShrinkRequest.ts +41 -0
  58. package/src/models/UpdateMiniAppBindingRequest.ts +52 -0
  59. package/src/models/UpdateMiniAppBindingResponse.ts +40 -0
  60. package/src/models/UpdateMiniAppBindingResponseBody.ts +67 -0
  61. package/src/models/model.ts +17 -0
package/src/client.ts CHANGED
@@ -603,29 +603,29 @@ export default class Client extends OpenApi {
603
603
  */
604
604
  async *createAppChatWithSSE(request: $_model.CreateAppChatRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.CreateAppChatResponse, any, unknown> {
605
605
  request.validate();
606
- let query = { };
606
+ let body : {[key: string ]: any} = { };
607
607
  if (!$dara.isNull(request.botId)) {
608
- query["BotId"] = request.botId;
608
+ body["BotId"] = request.botId;
609
609
  }
610
610
 
611
611
  if (!$dara.isNull(request.chatId)) {
612
- query["ChatId"] = request.chatId;
612
+ body["ChatId"] = request.chatId;
613
613
  }
614
614
 
615
615
  if (!$dara.isNull(request.conversationId)) {
616
- query["ConversationId"] = request.conversationId;
616
+ body["ConversationId"] = request.conversationId;
617
617
  }
618
618
 
619
619
  if (!$dara.isNull(request.messages)) {
620
- query["Messages"] = request.messages;
620
+ body["Messages"] = request.messages;
621
621
  }
622
622
 
623
623
  if (!$dara.isNull(request.siteId)) {
624
- query["SiteId"] = request.siteId;
624
+ body["SiteId"] = request.siteId;
625
625
  }
626
626
 
627
627
  let req = new $OpenApiUtil.OpenApiRequest({
628
- query: OpenApiUtil.query(query),
628
+ body: OpenApiUtil.parseToMap(body),
629
629
  });
630
630
  let params = new $OpenApiUtil.Params({
631
631
  action: "CreateAppChat",
@@ -664,29 +664,29 @@ export default class Client extends OpenApi {
664
664
  */
665
665
  async createAppChatWithOptions(request: $_model.CreateAppChatRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAppChatResponse> {
666
666
  request.validate();
667
- let query = { };
667
+ let body : {[key: string ]: any} = { };
668
668
  if (!$dara.isNull(request.botId)) {
669
- query["BotId"] = request.botId;
669
+ body["BotId"] = request.botId;
670
670
  }
671
671
 
672
672
  if (!$dara.isNull(request.chatId)) {
673
- query["ChatId"] = request.chatId;
673
+ body["ChatId"] = request.chatId;
674
674
  }
675
675
 
676
676
  if (!$dara.isNull(request.conversationId)) {
677
- query["ConversationId"] = request.conversationId;
677
+ body["ConversationId"] = request.conversationId;
678
678
  }
679
679
 
680
680
  if (!$dara.isNull(request.messages)) {
681
- query["Messages"] = request.messages;
681
+ body["Messages"] = request.messages;
682
682
  }
683
683
 
684
684
  if (!$dara.isNull(request.siteId)) {
685
- query["SiteId"] = request.siteId;
685
+ body["SiteId"] = request.siteId;
686
686
  }
687
687
 
688
688
  let req = new $OpenApiUtil.OpenApiRequest({
689
- query: OpenApiUtil.query(query),
689
+ body: OpenApiUtil.parseToMap(body),
690
690
  });
691
691
  let params = new $OpenApiUtil.Params({
692
692
  action: "CreateAppChat",
@@ -2876,6 +2876,162 @@ export default class Client extends OpenApi {
2876
2876
  return await this.getLlmProxyConfigForAdminWithOptions(request, runtime);
2877
2877
  }
2878
2878
 
2879
+ /**
2880
+ * 获取小程序授权链接
2881
+ *
2882
+ * @param request - GetMiniAppAuthUrlRequest
2883
+ * @param runtime - runtime options for this request RuntimeOptions
2884
+ * @returns GetMiniAppAuthUrlResponse
2885
+ */
2886
+ async getMiniAppAuthUrlWithOptions(request: $_model.GetMiniAppAuthUrlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMiniAppAuthUrlResponse> {
2887
+ request.validate();
2888
+ let query = { };
2889
+ if (!$dara.isNull(request.bizId)) {
2890
+ query["BizId"] = request.bizId;
2891
+ }
2892
+
2893
+ if (!$dara.isNull(request.channel)) {
2894
+ query["Channel"] = request.channel;
2895
+ }
2896
+
2897
+ if (!$dara.isNull(request.redirectUri)) {
2898
+ query["RedirectUri"] = request.redirectUri;
2899
+ }
2900
+
2901
+ let req = new $OpenApiUtil.OpenApiRequest({
2902
+ query: OpenApiUtil.query(query),
2903
+ });
2904
+ let params = new $OpenApiUtil.Params({
2905
+ action: "GetMiniAppAuthUrl",
2906
+ version: "2025-04-29",
2907
+ protocol: "HTTPS",
2908
+ pathname: "/",
2909
+ method: "POST",
2910
+ authType: "AK",
2911
+ style: "RPC",
2912
+ reqBodyType: "formData",
2913
+ bodyType: "json",
2914
+ });
2915
+ return $dara.cast<$_model.GetMiniAppAuthUrlResponse>(await this.callApi(params, req, runtime), new $_model.GetMiniAppAuthUrlResponse({}));
2916
+ }
2917
+
2918
+ /**
2919
+ * 获取小程序授权链接
2920
+ *
2921
+ * @param request - GetMiniAppAuthUrlRequest
2922
+ * @returns GetMiniAppAuthUrlResponse
2923
+ */
2924
+ async getMiniAppAuthUrl(request: $_model.GetMiniAppAuthUrlRequest): Promise<$_model.GetMiniAppAuthUrlResponse> {
2925
+ let runtime = new $dara.RuntimeOptions({ });
2926
+ return await this.getMiniAppAuthUrlWithOptions(request, runtime);
2927
+ }
2928
+
2929
+ /**
2930
+ * 查询站点绑定的小程序
2931
+ *
2932
+ * @param tmpReq - GetMiniAppBindingRequest
2933
+ * @param runtime - runtime options for this request RuntimeOptions
2934
+ * @returns GetMiniAppBindingResponse
2935
+ */
2936
+ async getMiniAppBindingWithOptions(tmpReq: $_model.GetMiniAppBindingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMiniAppBindingResponse> {
2937
+ tmpReq.validate();
2938
+ let request = new $_model.GetMiniAppBindingShrinkRequest({ });
2939
+ OpenApiUtil.convert(tmpReq, request);
2940
+ if (!$dara.isNull(tmpReq.settingKeys)) {
2941
+ request.settingKeysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.settingKeys, "SettingKeys", "json");
2942
+ }
2943
+
2944
+ let query = { };
2945
+ if (!$dara.isNull(request.bizId)) {
2946
+ query["BizId"] = request.bizId;
2947
+ }
2948
+
2949
+ if (!$dara.isNull(request.channel)) {
2950
+ query["Channel"] = request.channel;
2951
+ }
2952
+
2953
+ if (!$dara.isNull(request.settingKeysShrink)) {
2954
+ query["SettingKeys"] = request.settingKeysShrink;
2955
+ }
2956
+
2957
+ let req = new $OpenApiUtil.OpenApiRequest({
2958
+ query: OpenApiUtil.query(query),
2959
+ });
2960
+ let params = new $OpenApiUtil.Params({
2961
+ action: "GetMiniAppBinding",
2962
+ version: "2025-04-29",
2963
+ protocol: "HTTPS",
2964
+ pathname: "/",
2965
+ method: "POST",
2966
+ authType: "AK",
2967
+ style: "RPC",
2968
+ reqBodyType: "formData",
2969
+ bodyType: "json",
2970
+ });
2971
+ return $dara.cast<$_model.GetMiniAppBindingResponse>(await this.callApi(params, req, runtime), new $_model.GetMiniAppBindingResponse({}));
2972
+ }
2973
+
2974
+ /**
2975
+ * 查询站点绑定的小程序
2976
+ *
2977
+ * @param request - GetMiniAppBindingRequest
2978
+ * @returns GetMiniAppBindingResponse
2979
+ */
2980
+ async getMiniAppBinding(request: $_model.GetMiniAppBindingRequest): Promise<$_model.GetMiniAppBindingResponse> {
2981
+ let runtime = new $dara.RuntimeOptions({ });
2982
+ return await this.getMiniAppBindingWithOptions(request, runtime);
2983
+ }
2984
+
2985
+ /**
2986
+ * 根据条件查询应用实例绑定的小程序
2987
+ *
2988
+ * @param request - GetMiniAppBindingForAdminRequest
2989
+ * @param runtime - runtime options for this request RuntimeOptions
2990
+ * @returns GetMiniAppBindingForAdminResponse
2991
+ */
2992
+ async getMiniAppBindingForAdminWithOptions(request: $_model.GetMiniAppBindingForAdminRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMiniAppBindingForAdminResponse> {
2993
+ request.validate();
2994
+ let query = { };
2995
+ if (!$dara.isNull(request.bizId)) {
2996
+ query["BizId"] = request.bizId;
2997
+ }
2998
+
2999
+ if (!$dara.isNull(request.channel)) {
3000
+ query["Channel"] = request.channel;
3001
+ }
3002
+
3003
+ if (!$dara.isNull(request.platformAppid)) {
3004
+ query["PlatformAppid"] = request.platformAppid;
3005
+ }
3006
+
3007
+ let req = new $OpenApiUtil.OpenApiRequest({
3008
+ query: OpenApiUtil.query(query),
3009
+ });
3010
+ let params = new $OpenApiUtil.Params({
3011
+ action: "GetMiniAppBindingForAdmin",
3012
+ version: "2025-04-29",
3013
+ protocol: "HTTPS",
3014
+ pathname: "/",
3015
+ method: "POST",
3016
+ authType: "AK",
3017
+ style: "RPC",
3018
+ reqBodyType: "formData",
3019
+ bodyType: "json",
3020
+ });
3021
+ return $dara.cast<$_model.GetMiniAppBindingForAdminResponse>(await this.callApi(params, req, runtime), new $_model.GetMiniAppBindingForAdminResponse({}));
3022
+ }
3023
+
3024
+ /**
3025
+ * 根据条件查询应用实例绑定的小程序
3026
+ *
3027
+ * @param request - GetMiniAppBindingForAdminRequest
3028
+ * @returns GetMiniAppBindingForAdminResponse
3029
+ */
3030
+ async getMiniAppBindingForAdmin(request: $_model.GetMiniAppBindingForAdminRequest): Promise<$_model.GetMiniAppBindingForAdminResponse> {
3031
+ let runtime = new $dara.RuntimeOptions({ });
3032
+ return await this.getMiniAppBindingForAdminWithOptions(request, runtime);
3033
+ }
3034
+
2879
3035
  /**
2880
3036
  * 通过授权码得到accessToken
2881
3037
  *
@@ -6843,6 +6999,60 @@ export default class Client extends OpenApi {
6843
6999
  return await this.updateAppSupabaseSecretWithOptions(request, runtime);
6844
7000
  }
6845
7001
 
7002
+ /**
7003
+ * 更新绑定小程序信息
7004
+ *
7005
+ * @param request - UpdateMiniAppBindingRequest
7006
+ * @param runtime - runtime options for this request RuntimeOptions
7007
+ * @returns UpdateMiniAppBindingResponse
7008
+ */
7009
+ async updateMiniAppBindingWithOptions(request: $_model.UpdateMiniAppBindingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMiniAppBindingResponse> {
7010
+ request.validate();
7011
+ let query = { };
7012
+ if (!$dara.isNull(request.bizId)) {
7013
+ query["BizId"] = request.bizId;
7014
+ }
7015
+
7016
+ if (!$dara.isNull(request.channel)) {
7017
+ query["Channel"] = request.channel;
7018
+ }
7019
+
7020
+ if (!$dara.isNull(request.settingKey)) {
7021
+ query["SettingKey"] = request.settingKey;
7022
+ }
7023
+
7024
+ if (!$dara.isNull(request.settingValue)) {
7025
+ query["SettingValue"] = request.settingValue;
7026
+ }
7027
+
7028
+ let req = new $OpenApiUtil.OpenApiRequest({
7029
+ query: OpenApiUtil.query(query),
7030
+ });
7031
+ let params = new $OpenApiUtil.Params({
7032
+ action: "UpdateMiniAppBinding",
7033
+ version: "2025-04-29",
7034
+ protocol: "HTTPS",
7035
+ pathname: "/",
7036
+ method: "POST",
7037
+ authType: "AK",
7038
+ style: "RPC",
7039
+ reqBodyType: "formData",
7040
+ bodyType: "json",
7041
+ });
7042
+ return $dara.cast<$_model.UpdateMiniAppBindingResponse>(await this.callApi(params, req, runtime), new $_model.UpdateMiniAppBindingResponse({}));
7043
+ }
7044
+
7045
+ /**
7046
+ * 更新绑定小程序信息
7047
+ *
7048
+ * @param request - UpdateMiniAppBindingRequest
7049
+ * @returns UpdateMiniAppBindingResponse
7050
+ */
7051
+ async updateMiniAppBinding(request: $_model.UpdateMiniAppBindingRequest): Promise<$_model.UpdateMiniAppBindingResponse> {
7052
+ let runtime = new $dara.RuntimeOptions({ });
7053
+ return await this.updateMiniAppBindingWithOptions(request, runtime);
7054
+ }
7055
+
6846
7056
  /**
6847
7057
  * 上传到站点根目录
6848
7058
  *
@@ -0,0 +1,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetMiniAppAuthUrlRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * WS20250731233102000001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @example
13
+ * WECHAT
14
+ */
15
+ channel?: string;
16
+ redirectUri?: string;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ bizId: 'BizId',
20
+ channel: 'Channel',
21
+ redirectUri: 'RedirectUri',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ bizId: 'string',
28
+ channel: 'string',
29
+ redirectUri: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetMiniAppAuthUrlResponseBody } from "./GetMiniAppAuthUrlResponseBody";
4
+
5
+
6
+ export class GetMiniAppAuthUrlResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetMiniAppAuthUrlResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: GetMiniAppAuthUrlResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,60 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetMiniAppAuthUrlResponseBodyData extends $dara.Model {
6
+ authUrl?: string;
7
+ static names(): { [key: string]: string } {
8
+ return {
9
+ authUrl: 'AuthUrl',
10
+ };
11
+ }
12
+
13
+ static types(): { [key: string]: any } {
14
+ return {
15
+ authUrl: 'string',
16
+ };
17
+ }
18
+
19
+ validate() {
20
+ super.validate();
21
+ }
22
+
23
+ constructor(map?: { [key: string]: any }) {
24
+ super(map);
25
+ }
26
+ }
27
+
28
+ export class GetMiniAppAuthUrlResponseBody extends $dara.Model {
29
+ data?: GetMiniAppAuthUrlResponseBodyData;
30
+ /**
31
+ * @example
32
+ * 6C6B99AC-39EC-5350-874C-204128C905E6
33
+ */
34
+ requestId?: string;
35
+ static names(): { [key: string]: string } {
36
+ return {
37
+ data: 'Data',
38
+ requestId: 'RequestId',
39
+ };
40
+ }
41
+
42
+ static types(): { [key: string]: any } {
43
+ return {
44
+ data: GetMiniAppAuthUrlResponseBodyData,
45
+ requestId: 'string',
46
+ };
47
+ }
48
+
49
+ validate() {
50
+ if(this.data && typeof (this.data as any).validate === 'function') {
51
+ (this.data as any).validate();
52
+ }
53
+ super.validate();
54
+ }
55
+
56
+ constructor(map?: { [key: string]: any }) {
57
+ super(map);
58
+ }
59
+ }
60
+
@@ -0,0 +1,45 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetMiniAppBindingForAdminRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * WS20250801152639000005
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @example
13
+ * WECHAT
14
+ */
15
+ channel?: string;
16
+ /**
17
+ * @example
18
+ * xxxx
19
+ */
20
+ platformAppid?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ bizId: 'BizId',
24
+ channel: 'Channel',
25
+ platformAppid: 'PlatformAppid',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ bizId: 'string',
32
+ channel: 'string',
33
+ platformAppid: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetMiniAppBindingForAdminResponseBody } from "./GetMiniAppBindingForAdminResponseBody";
4
+
5
+
6
+ export class GetMiniAppBindingForAdminResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetMiniAppBindingForAdminResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: GetMiniAppBindingForAdminResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,81 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetMiniAppBindingForAdminResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * AUTHORIZED
9
+ */
10
+ authStatus?: string;
11
+ /**
12
+ * @example
13
+ * WS20250801004817000002
14
+ */
15
+ bizId?: string;
16
+ /**
17
+ * @example
18
+ * xxxx
19
+ */
20
+ platformAppid?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ authStatus: 'AuthStatus',
24
+ bizId: 'BizId',
25
+ platformAppid: 'PlatformAppid',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ authStatus: 'string',
32
+ bizId: 'string',
33
+ platformAppid: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
46
+ export class GetMiniAppBindingForAdminResponseBody extends $dara.Model {
47
+ data?: GetMiniAppBindingForAdminResponseBodyData;
48
+ /**
49
+ * @remarks
50
+ * Id of the request
51
+ *
52
+ * @example
53
+ * 6C6B99AC-39EC-5350-874C-204128C905E6
54
+ */
55
+ requestId?: string;
56
+ static names(): { [key: string]: string } {
57
+ return {
58
+ data: 'Data',
59
+ requestId: 'RequestId',
60
+ };
61
+ }
62
+
63
+ static types(): { [key: string]: any } {
64
+ return {
65
+ data: GetMiniAppBindingForAdminResponseBodyData,
66
+ requestId: 'string',
67
+ };
68
+ }
69
+
70
+ validate() {
71
+ if(this.data && typeof (this.data as any).validate === 'function') {
72
+ (this.data as any).validate();
73
+ }
74
+ super.validate();
75
+ }
76
+
77
+ constructor(map?: { [key: string]: any }) {
78
+ super(map);
79
+ }
80
+ }
81
+
@@ -0,0 +1,44 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetMiniAppBindingRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * WS20250814102215000001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @example
13
+ * WECHAT
14
+ */
15
+ channel?: string;
16
+ settingKeys?: string[];
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ bizId: 'BizId',
20
+ channel: 'Channel',
21
+ settingKeys: 'SettingKeys',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ bizId: 'string',
28
+ channel: 'string',
29
+ settingKeys: { 'type': 'array', 'itemType': 'string' },
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ if(Array.isArray(this.settingKeys)) {
35
+ $dara.Model.validateArray(this.settingKeys);
36
+ }
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetMiniAppBindingResponseBody } from "./GetMiniAppBindingResponseBody";
4
+
5
+
6
+ export class GetMiniAppBindingResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetMiniAppBindingResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: GetMiniAppBindingResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+