@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/dist/client.d.ts CHANGED
@@ -853,6 +853,51 @@ export default class Client extends OpenApi {
853
853
  * @returns GetLlmProxyConfigForAdminResponse
854
854
  */
855
855
  getLlmProxyConfigForAdmin(request: $_model.GetLlmProxyConfigForAdminRequest): Promise<$_model.GetLlmProxyConfigForAdminResponse>;
856
+ /**
857
+ * 获取小程序授权链接
858
+ *
859
+ * @param request - GetMiniAppAuthUrlRequest
860
+ * @param runtime - runtime options for this request RuntimeOptions
861
+ * @returns GetMiniAppAuthUrlResponse
862
+ */
863
+ getMiniAppAuthUrlWithOptions(request: $_model.GetMiniAppAuthUrlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMiniAppAuthUrlResponse>;
864
+ /**
865
+ * 获取小程序授权链接
866
+ *
867
+ * @param request - GetMiniAppAuthUrlRequest
868
+ * @returns GetMiniAppAuthUrlResponse
869
+ */
870
+ getMiniAppAuthUrl(request: $_model.GetMiniAppAuthUrlRequest): Promise<$_model.GetMiniAppAuthUrlResponse>;
871
+ /**
872
+ * 查询站点绑定的小程序
873
+ *
874
+ * @param tmpReq - GetMiniAppBindingRequest
875
+ * @param runtime - runtime options for this request RuntimeOptions
876
+ * @returns GetMiniAppBindingResponse
877
+ */
878
+ getMiniAppBindingWithOptions(tmpReq: $_model.GetMiniAppBindingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMiniAppBindingResponse>;
879
+ /**
880
+ * 查询站点绑定的小程序
881
+ *
882
+ * @param request - GetMiniAppBindingRequest
883
+ * @returns GetMiniAppBindingResponse
884
+ */
885
+ getMiniAppBinding(request: $_model.GetMiniAppBindingRequest): Promise<$_model.GetMiniAppBindingResponse>;
886
+ /**
887
+ * 根据条件查询应用实例绑定的小程序
888
+ *
889
+ * @param request - GetMiniAppBindingForAdminRequest
890
+ * @param runtime - runtime options for this request RuntimeOptions
891
+ * @returns GetMiniAppBindingForAdminResponse
892
+ */
893
+ getMiniAppBindingForAdminWithOptions(request: $_model.GetMiniAppBindingForAdminRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMiniAppBindingForAdminResponse>;
894
+ /**
895
+ * 根据条件查询应用实例绑定的小程序
896
+ *
897
+ * @param request - GetMiniAppBindingForAdminRequest
898
+ * @returns GetMiniAppBindingForAdminResponse
899
+ */
900
+ getMiniAppBindingForAdmin(request: $_model.GetMiniAppBindingForAdminRequest): Promise<$_model.GetMiniAppBindingForAdminResponse>;
856
901
  /**
857
902
  * 通过授权码得到accessToken
858
903
  *
@@ -1870,6 +1915,21 @@ export default class Client extends OpenApi {
1870
1915
  * @returns UpdateAppSupabaseSecretResponse
1871
1916
  */
1872
1917
  updateAppSupabaseSecret(request: $_model.UpdateAppSupabaseSecretRequest): Promise<$_model.UpdateAppSupabaseSecretResponse>;
1918
+ /**
1919
+ * 更新绑定小程序信息
1920
+ *
1921
+ * @param request - UpdateMiniAppBindingRequest
1922
+ * @param runtime - runtime options for this request RuntimeOptions
1923
+ * @returns UpdateMiniAppBindingResponse
1924
+ */
1925
+ updateMiniAppBindingWithOptions(request: $_model.UpdateMiniAppBindingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMiniAppBindingResponse>;
1926
+ /**
1927
+ * 更新绑定小程序信息
1928
+ *
1929
+ * @param request - UpdateMiniAppBindingRequest
1930
+ * @returns UpdateMiniAppBindingResponse
1931
+ */
1932
+ updateMiniAppBinding(request: $_model.UpdateMiniAppBindingRequest): Promise<$_model.UpdateMiniAppBindingResponse>;
1873
1933
  /**
1874
1934
  * 上传到站点根目录
1875
1935
  *
package/dist/client.js CHANGED
@@ -589,24 +589,24 @@ class Client extends openapi_core_1.default {
589
589
  return __asyncGenerator(this, arguments, function* createAppChatWithSSE_1() {
590
590
  var _a, e_1, _b, _c;
591
591
  request.validate();
592
- let query = {};
592
+ let body = {};
593
593
  if (!$dara.isNull(request.botId)) {
594
- query["BotId"] = request.botId;
594
+ body["BotId"] = request.botId;
595
595
  }
596
596
  if (!$dara.isNull(request.chatId)) {
597
- query["ChatId"] = request.chatId;
597
+ body["ChatId"] = request.chatId;
598
598
  }
599
599
  if (!$dara.isNull(request.conversationId)) {
600
- query["ConversationId"] = request.conversationId;
600
+ body["ConversationId"] = request.conversationId;
601
601
  }
602
602
  if (!$dara.isNull(request.messages)) {
603
- query["Messages"] = request.messages;
603
+ body["Messages"] = request.messages;
604
604
  }
605
605
  if (!$dara.isNull(request.siteId)) {
606
- query["SiteId"] = request.siteId;
606
+ body["SiteId"] = request.siteId;
607
607
  }
608
608
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
609
- query: openapi_core_2.OpenApiUtil.query(query),
609
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
610
610
  });
611
611
  let params = new openapi_core_2.$OpenApiUtil.Params({
612
612
  action: "CreateAppChat",
@@ -655,24 +655,24 @@ class Client extends openapi_core_1.default {
655
655
  */
656
656
  async createAppChatWithOptions(request, runtime) {
657
657
  request.validate();
658
- let query = {};
658
+ let body = {};
659
659
  if (!$dara.isNull(request.botId)) {
660
- query["BotId"] = request.botId;
660
+ body["BotId"] = request.botId;
661
661
  }
662
662
  if (!$dara.isNull(request.chatId)) {
663
- query["ChatId"] = request.chatId;
663
+ body["ChatId"] = request.chatId;
664
664
  }
665
665
  if (!$dara.isNull(request.conversationId)) {
666
- query["ConversationId"] = request.conversationId;
666
+ body["ConversationId"] = request.conversationId;
667
667
  }
668
668
  if (!$dara.isNull(request.messages)) {
669
- query["Messages"] = request.messages;
669
+ body["Messages"] = request.messages;
670
670
  }
671
671
  if (!$dara.isNull(request.siteId)) {
672
- query["SiteId"] = request.siteId;
672
+ body["SiteId"] = request.siteId;
673
673
  }
674
674
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
675
- query: openapi_core_2.OpenApiUtil.query(query),
675
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
676
676
  });
677
677
  let params = new openapi_core_2.$OpenApiUtil.Params({
678
678
  action: "CreateAppChat",
@@ -2657,6 +2657,146 @@ class Client extends openapi_core_1.default {
2657
2657
  let runtime = new $dara.RuntimeOptions({});
2658
2658
  return await this.getLlmProxyConfigForAdminWithOptions(request, runtime);
2659
2659
  }
2660
+ /**
2661
+ * 获取小程序授权链接
2662
+ *
2663
+ * @param request - GetMiniAppAuthUrlRequest
2664
+ * @param runtime - runtime options for this request RuntimeOptions
2665
+ * @returns GetMiniAppAuthUrlResponse
2666
+ */
2667
+ async getMiniAppAuthUrlWithOptions(request, runtime) {
2668
+ request.validate();
2669
+ let query = {};
2670
+ if (!$dara.isNull(request.bizId)) {
2671
+ query["BizId"] = request.bizId;
2672
+ }
2673
+ if (!$dara.isNull(request.channel)) {
2674
+ query["Channel"] = request.channel;
2675
+ }
2676
+ if (!$dara.isNull(request.redirectUri)) {
2677
+ query["RedirectUri"] = request.redirectUri;
2678
+ }
2679
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2680
+ query: openapi_core_2.OpenApiUtil.query(query),
2681
+ });
2682
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2683
+ action: "GetMiniAppAuthUrl",
2684
+ version: "2025-04-29",
2685
+ protocol: "HTTPS",
2686
+ pathname: "/",
2687
+ method: "POST",
2688
+ authType: "AK",
2689
+ style: "RPC",
2690
+ reqBodyType: "formData",
2691
+ bodyType: "json",
2692
+ });
2693
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMiniAppAuthUrlResponse({}));
2694
+ }
2695
+ /**
2696
+ * 获取小程序授权链接
2697
+ *
2698
+ * @param request - GetMiniAppAuthUrlRequest
2699
+ * @returns GetMiniAppAuthUrlResponse
2700
+ */
2701
+ async getMiniAppAuthUrl(request) {
2702
+ let runtime = new $dara.RuntimeOptions({});
2703
+ return await this.getMiniAppAuthUrlWithOptions(request, runtime);
2704
+ }
2705
+ /**
2706
+ * 查询站点绑定的小程序
2707
+ *
2708
+ * @param tmpReq - GetMiniAppBindingRequest
2709
+ * @param runtime - runtime options for this request RuntimeOptions
2710
+ * @returns GetMiniAppBindingResponse
2711
+ */
2712
+ async getMiniAppBindingWithOptions(tmpReq, runtime) {
2713
+ tmpReq.validate();
2714
+ let request = new $_model.GetMiniAppBindingShrinkRequest({});
2715
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2716
+ if (!$dara.isNull(tmpReq.settingKeys)) {
2717
+ request.settingKeysShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.settingKeys, "SettingKeys", "json");
2718
+ }
2719
+ let query = {};
2720
+ if (!$dara.isNull(request.bizId)) {
2721
+ query["BizId"] = request.bizId;
2722
+ }
2723
+ if (!$dara.isNull(request.channel)) {
2724
+ query["Channel"] = request.channel;
2725
+ }
2726
+ if (!$dara.isNull(request.settingKeysShrink)) {
2727
+ query["SettingKeys"] = request.settingKeysShrink;
2728
+ }
2729
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2730
+ query: openapi_core_2.OpenApiUtil.query(query),
2731
+ });
2732
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2733
+ action: "GetMiniAppBinding",
2734
+ version: "2025-04-29",
2735
+ protocol: "HTTPS",
2736
+ pathname: "/",
2737
+ method: "POST",
2738
+ authType: "AK",
2739
+ style: "RPC",
2740
+ reqBodyType: "formData",
2741
+ bodyType: "json",
2742
+ });
2743
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMiniAppBindingResponse({}));
2744
+ }
2745
+ /**
2746
+ * 查询站点绑定的小程序
2747
+ *
2748
+ * @param request - GetMiniAppBindingRequest
2749
+ * @returns GetMiniAppBindingResponse
2750
+ */
2751
+ async getMiniAppBinding(request) {
2752
+ let runtime = new $dara.RuntimeOptions({});
2753
+ return await this.getMiniAppBindingWithOptions(request, runtime);
2754
+ }
2755
+ /**
2756
+ * 根据条件查询应用实例绑定的小程序
2757
+ *
2758
+ * @param request - GetMiniAppBindingForAdminRequest
2759
+ * @param runtime - runtime options for this request RuntimeOptions
2760
+ * @returns GetMiniAppBindingForAdminResponse
2761
+ */
2762
+ async getMiniAppBindingForAdminWithOptions(request, runtime) {
2763
+ request.validate();
2764
+ let query = {};
2765
+ if (!$dara.isNull(request.bizId)) {
2766
+ query["BizId"] = request.bizId;
2767
+ }
2768
+ if (!$dara.isNull(request.channel)) {
2769
+ query["Channel"] = request.channel;
2770
+ }
2771
+ if (!$dara.isNull(request.platformAppid)) {
2772
+ query["PlatformAppid"] = request.platformAppid;
2773
+ }
2774
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2775
+ query: openapi_core_2.OpenApiUtil.query(query),
2776
+ });
2777
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2778
+ action: "GetMiniAppBindingForAdmin",
2779
+ version: "2025-04-29",
2780
+ protocol: "HTTPS",
2781
+ pathname: "/",
2782
+ method: "POST",
2783
+ authType: "AK",
2784
+ style: "RPC",
2785
+ reqBodyType: "formData",
2786
+ bodyType: "json",
2787
+ });
2788
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMiniAppBindingForAdminResponse({}));
2789
+ }
2790
+ /**
2791
+ * 根据条件查询应用实例绑定的小程序
2792
+ *
2793
+ * @param request - GetMiniAppBindingForAdminRequest
2794
+ * @returns GetMiniAppBindingForAdminResponse
2795
+ */
2796
+ async getMiniAppBindingForAdmin(request) {
2797
+ let runtime = new $dara.RuntimeOptions({});
2798
+ return await this.getMiniAppBindingForAdminWithOptions(request, runtime);
2799
+ }
2660
2800
  /**
2661
2801
  * 通过授权码得到accessToken
2662
2802
  *
@@ -6163,6 +6303,54 @@ class Client extends openapi_core_1.default {
6163
6303
  let runtime = new $dara.RuntimeOptions({});
6164
6304
  return await this.updateAppSupabaseSecretWithOptions(request, runtime);
6165
6305
  }
6306
+ /**
6307
+ * 更新绑定小程序信息
6308
+ *
6309
+ * @param request - UpdateMiniAppBindingRequest
6310
+ * @param runtime - runtime options for this request RuntimeOptions
6311
+ * @returns UpdateMiniAppBindingResponse
6312
+ */
6313
+ async updateMiniAppBindingWithOptions(request, runtime) {
6314
+ request.validate();
6315
+ let query = {};
6316
+ if (!$dara.isNull(request.bizId)) {
6317
+ query["BizId"] = request.bizId;
6318
+ }
6319
+ if (!$dara.isNull(request.channel)) {
6320
+ query["Channel"] = request.channel;
6321
+ }
6322
+ if (!$dara.isNull(request.settingKey)) {
6323
+ query["SettingKey"] = request.settingKey;
6324
+ }
6325
+ if (!$dara.isNull(request.settingValue)) {
6326
+ query["SettingValue"] = request.settingValue;
6327
+ }
6328
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6329
+ query: openapi_core_2.OpenApiUtil.query(query),
6330
+ });
6331
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6332
+ action: "UpdateMiniAppBinding",
6333
+ version: "2025-04-29",
6334
+ protocol: "HTTPS",
6335
+ pathname: "/",
6336
+ method: "POST",
6337
+ authType: "AK",
6338
+ style: "RPC",
6339
+ reqBodyType: "formData",
6340
+ bodyType: "json",
6341
+ });
6342
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateMiniAppBindingResponse({}));
6343
+ }
6344
+ /**
6345
+ * 更新绑定小程序信息
6346
+ *
6347
+ * @param request - UpdateMiniAppBindingRequest
6348
+ * @returns UpdateMiniAppBindingResponse
6349
+ */
6350
+ async updateMiniAppBinding(request) {
6351
+ let runtime = new $dara.RuntimeOptions({});
6352
+ return await this.updateMiniAppBindingWithOptions(request, runtime);
6353
+ }
6166
6354
  /**
6167
6355
  * 上传到站点根目录
6168
6356
  *