@alicloud/websitebuild20250429 2.34.0 → 2.35.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.
package/dist/client.d.ts CHANGED
@@ -3409,4 +3409,25 @@ export default class Client extends OpenApi {
3409
3409
  * @returns UploadMaterialFileResponse
3410
3410
  */
3411
3411
  uploadMaterialFile(request: $_model.UploadMaterialFileRequest): Promise<$_model.UploadMaterialFileResponse>;
3412
+ /**
3413
+ * Uploads a material file as an administrator (AI-generated).
3414
+ *
3415
+ * @remarks
3416
+ * The Supabase instance information corresponding to the operation resource.
3417
+ *
3418
+ * @param request - UploadMaterialFileForAdminRequest
3419
+ * @param runtime - runtime options for this request RuntimeOptions
3420
+ * @returns UploadMaterialFileForAdminResponse
3421
+ */
3422
+ uploadMaterialFileForAdminWithOptions(request: $_model.UploadMaterialFileForAdminRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UploadMaterialFileForAdminResponse>;
3423
+ /**
3424
+ * Uploads a material file as an administrator (AI-generated).
3425
+ *
3426
+ * @remarks
3427
+ * The Supabase instance information corresponding to the operation resource.
3428
+ *
3429
+ * @param request - UploadMaterialFileForAdminRequest
3430
+ * @returns UploadMaterialFileForAdminResponse
3431
+ */
3432
+ uploadMaterialFileForAdmin(request: $_model.UploadMaterialFileForAdminRequest): Promise<$_model.UploadMaterialFileForAdminResponse>;
3412
3433
  }
package/dist/client.js CHANGED
@@ -9517,6 +9517,60 @@ class Client extends openapi_core_1.default {
9517
9517
  let runtime = new $dara.RuntimeOptions({});
9518
9518
  return await this.uploadMaterialFileWithOptions(request, runtime);
9519
9519
  }
9520
+ /**
9521
+ * Uploads a material file as an administrator (AI-generated).
9522
+ *
9523
+ * @remarks
9524
+ * The Supabase instance information corresponding to the operation resource.
9525
+ *
9526
+ * @param request - UploadMaterialFileForAdminRequest
9527
+ * @param runtime - runtime options for this request RuntimeOptions
9528
+ * @returns UploadMaterialFileForAdminResponse
9529
+ */
9530
+ async uploadMaterialFileForAdminWithOptions(request, runtime) {
9531
+ request.validate();
9532
+ let query = {};
9533
+ if (!$dara.isNull(request.belongId)) {
9534
+ query["BelongId"] = request.belongId;
9535
+ }
9536
+ if (!$dara.isNull(request.bizId)) {
9537
+ query["BizId"] = request.bizId;
9538
+ }
9539
+ if (!$dara.isNull(request.fileUrl)) {
9540
+ query["FileUrl"] = request.fileUrl;
9541
+ }
9542
+ if (!$dara.isNull(request.name)) {
9543
+ query["Name"] = request.name;
9544
+ }
9545
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9546
+ query: openapi_core_2.OpenApiUtil.query(query),
9547
+ });
9548
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9549
+ action: "UploadMaterialFileForAdmin",
9550
+ version: "2025-04-29",
9551
+ protocol: "HTTPS",
9552
+ pathname: "/",
9553
+ method: "POST",
9554
+ authType: "AK",
9555
+ style: "RPC",
9556
+ reqBodyType: "formData",
9557
+ bodyType: "json",
9558
+ });
9559
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UploadMaterialFileForAdminResponse({}));
9560
+ }
9561
+ /**
9562
+ * Uploads a material file as an administrator (AI-generated).
9563
+ *
9564
+ * @remarks
9565
+ * The Supabase instance information corresponding to the operation resource.
9566
+ *
9567
+ * @param request - UploadMaterialFileForAdminRequest
9568
+ * @returns UploadMaterialFileForAdminResponse
9569
+ */
9570
+ async uploadMaterialFileForAdmin(request) {
9571
+ let runtime = new $dara.RuntimeOptions({});
9572
+ return await this.uploadMaterialFileForAdminWithOptions(request, runtime);
9573
+ }
9520
9574
  }
9521
9575
  exports.default = Client;
9522
9576
  //# sourceMappingURL=client.js.map