@alicloud/aligenieip_1_0 2.5.0 → 2.6.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
@@ -4925,6 +4925,82 @@ export declare class PushHotelMessageResponse extends $tea.Model {
4925
4925
  [key: string]: any;
4926
4926
  });
4927
4927
  }
4928
+ export declare class PushVoiceBoxCommandsHeaders extends $tea.Model {
4929
+ commonHeaders?: {
4930
+ [key: string]: string;
4931
+ };
4932
+ xAcsAligenieAccessToken?: string;
4933
+ authorization?: string;
4934
+ static names(): {
4935
+ [key: string]: string;
4936
+ };
4937
+ static types(): {
4938
+ [key: string]: any;
4939
+ };
4940
+ constructor(map?: {
4941
+ [key: string]: any;
4942
+ });
4943
+ }
4944
+ export declare class PushVoiceBoxCommandsRequest extends $tea.Model {
4945
+ commands?: PushVoiceBoxCommandsRequestCommands[];
4946
+ hotelId?: string;
4947
+ roomNo?: string;
4948
+ static names(): {
4949
+ [key: string]: string;
4950
+ };
4951
+ static types(): {
4952
+ [key: string]: any;
4953
+ };
4954
+ constructor(map?: {
4955
+ [key: string]: any;
4956
+ });
4957
+ }
4958
+ export declare class PushVoiceBoxCommandsShrinkRequest extends $tea.Model {
4959
+ commandsShrink?: string;
4960
+ hotelId?: string;
4961
+ roomNo?: string;
4962
+ static names(): {
4963
+ [key: string]: string;
4964
+ };
4965
+ static types(): {
4966
+ [key: string]: any;
4967
+ };
4968
+ constructor(map?: {
4969
+ [key: string]: any;
4970
+ });
4971
+ }
4972
+ export declare class PushVoiceBoxCommandsResponseBody extends $tea.Model {
4973
+ code?: number;
4974
+ message?: string;
4975
+ requestId?: string;
4976
+ result?: boolean;
4977
+ statusCode?: number;
4978
+ static names(): {
4979
+ [key: string]: string;
4980
+ };
4981
+ static types(): {
4982
+ [key: string]: any;
4983
+ };
4984
+ constructor(map?: {
4985
+ [key: string]: any;
4986
+ });
4987
+ }
4988
+ export declare class PushVoiceBoxCommandsResponse extends $tea.Model {
4989
+ headers: {
4990
+ [key: string]: string;
4991
+ };
4992
+ statusCode: number;
4993
+ body: PushVoiceBoxCommandsResponseBody;
4994
+ static names(): {
4995
+ [key: string]: string;
4996
+ };
4997
+ static types(): {
4998
+ [key: string]: any;
4999
+ };
5000
+ constructor(map?: {
5001
+ [key: string]: any;
5002
+ });
5003
+ }
4928
5004
  export declare class PushWelcomeHeaders extends $tea.Model {
4929
5005
  commonHeaders?: {
4930
5006
  [key: string]: string;
@@ -8289,6 +8365,20 @@ export declare class PushHotelMessageRequestPushHotelMessageReq extends $tea.Mod
8289
8365
  [key: string]: any;
8290
8366
  });
8291
8367
  }
8368
+ export declare class PushVoiceBoxCommandsRequestCommands extends $tea.Model {
8369
+ commandDomain?: string;
8370
+ commandName?: string;
8371
+ payload?: string;
8372
+ static names(): {
8373
+ [key: string]: string;
8374
+ };
8375
+ static types(): {
8376
+ [key: string]: any;
8377
+ };
8378
+ constructor(map?: {
8379
+ [key: string]: any;
8380
+ });
8381
+ }
8292
8382
  export declare class QueryDeviceStatusRequestPayloadLocationDevices extends $tea.Model {
8293
8383
  deviceNumber?: string;
8294
8384
  deviceType?: string;
@@ -8917,6 +9007,8 @@ export default class Client extends OpenApi {
8917
9007
  pageGetHotelRoomDevices(request: PageGetHotelRoomDevicesRequest): Promise<PageGetHotelRoomDevicesResponse>;
8918
9008
  pushHotelMessageWithOptions(tmpReq: PushHotelMessageRequest, headers: PushHotelMessageHeaders, runtime: $Util.RuntimeOptions): Promise<PushHotelMessageResponse>;
8919
9009
  pushHotelMessage(request: PushHotelMessageRequest): Promise<PushHotelMessageResponse>;
9010
+ pushVoiceBoxCommandsWithOptions(tmpReq: PushVoiceBoxCommandsRequest, headers: PushVoiceBoxCommandsHeaders, runtime: $Util.RuntimeOptions): Promise<PushVoiceBoxCommandsResponse>;
9011
+ pushVoiceBoxCommands(request: PushVoiceBoxCommandsRequest): Promise<PushVoiceBoxCommandsResponse>;
8920
9012
  pushWelcomeWithOptions(request: PushWelcomeRequest, headers: PushWelcomeHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeResponse>;
8921
9013
  pushWelcome(request: PushWelcomeRequest): Promise<PushWelcomeResponse>;
8922
9014
  pushWelcomeTextAndMusicWithOptions(tmpReq: PushWelcomeTextAndMusicRequest, headers: PushWelcomeTextAndMusicHeaders, runtime: $Util.RuntimeOptions): Promise<PushWelcomeTextAndMusicResponse>;
package/dist/client.js CHANGED
@@ -6625,6 +6625,110 @@ class PushHotelMessageResponse extends $tea.Model {
6625
6625
  }
6626
6626
  }
6627
6627
  exports.PushHotelMessageResponse = PushHotelMessageResponse;
6628
+ class PushVoiceBoxCommandsHeaders extends $tea.Model {
6629
+ constructor(map) {
6630
+ super(map);
6631
+ }
6632
+ static names() {
6633
+ return {
6634
+ commonHeaders: 'commonHeaders',
6635
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
6636
+ authorization: 'Authorization',
6637
+ };
6638
+ }
6639
+ static types() {
6640
+ return {
6641
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6642
+ xAcsAligenieAccessToken: 'string',
6643
+ authorization: 'string',
6644
+ };
6645
+ }
6646
+ }
6647
+ exports.PushVoiceBoxCommandsHeaders = PushVoiceBoxCommandsHeaders;
6648
+ class PushVoiceBoxCommandsRequest extends $tea.Model {
6649
+ constructor(map) {
6650
+ super(map);
6651
+ }
6652
+ static names() {
6653
+ return {
6654
+ commands: 'Commands',
6655
+ hotelId: 'HotelId',
6656
+ roomNo: 'RoomNo',
6657
+ };
6658
+ }
6659
+ static types() {
6660
+ return {
6661
+ commands: { 'type': 'array', 'itemType': PushVoiceBoxCommandsRequestCommands },
6662
+ hotelId: 'string',
6663
+ roomNo: 'string',
6664
+ };
6665
+ }
6666
+ }
6667
+ exports.PushVoiceBoxCommandsRequest = PushVoiceBoxCommandsRequest;
6668
+ class PushVoiceBoxCommandsShrinkRequest extends $tea.Model {
6669
+ constructor(map) {
6670
+ super(map);
6671
+ }
6672
+ static names() {
6673
+ return {
6674
+ commandsShrink: 'Commands',
6675
+ hotelId: 'HotelId',
6676
+ roomNo: 'RoomNo',
6677
+ };
6678
+ }
6679
+ static types() {
6680
+ return {
6681
+ commandsShrink: 'string',
6682
+ hotelId: 'string',
6683
+ roomNo: 'string',
6684
+ };
6685
+ }
6686
+ }
6687
+ exports.PushVoiceBoxCommandsShrinkRequest = PushVoiceBoxCommandsShrinkRequest;
6688
+ class PushVoiceBoxCommandsResponseBody extends $tea.Model {
6689
+ constructor(map) {
6690
+ super(map);
6691
+ }
6692
+ static names() {
6693
+ return {
6694
+ code: 'Code',
6695
+ message: 'Message',
6696
+ requestId: 'RequestId',
6697
+ result: 'Result',
6698
+ statusCode: 'StatusCode',
6699
+ };
6700
+ }
6701
+ static types() {
6702
+ return {
6703
+ code: 'number',
6704
+ message: 'string',
6705
+ requestId: 'string',
6706
+ result: 'boolean',
6707
+ statusCode: 'number',
6708
+ };
6709
+ }
6710
+ }
6711
+ exports.PushVoiceBoxCommandsResponseBody = PushVoiceBoxCommandsResponseBody;
6712
+ class PushVoiceBoxCommandsResponse extends $tea.Model {
6713
+ constructor(map) {
6714
+ super(map);
6715
+ }
6716
+ static names() {
6717
+ return {
6718
+ headers: 'headers',
6719
+ statusCode: 'statusCode',
6720
+ body: 'body',
6721
+ };
6722
+ }
6723
+ static types() {
6724
+ return {
6725
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6726
+ statusCode: 'number',
6727
+ body: PushVoiceBoxCommandsResponseBody,
6728
+ };
6729
+ }
6730
+ }
6731
+ exports.PushVoiceBoxCommandsResponse = PushVoiceBoxCommandsResponse;
6628
6732
  class PushWelcomeHeaders extends $tea.Model {
6629
6733
  constructor(map) {
6630
6734
  super(map);
@@ -11409,6 +11513,26 @@ class PushHotelMessageRequestPushHotelMessageReq extends $tea.Model {
11409
11513
  }
11410
11514
  }
11411
11515
  exports.PushHotelMessageRequestPushHotelMessageReq = PushHotelMessageRequestPushHotelMessageReq;
11516
+ class PushVoiceBoxCommandsRequestCommands extends $tea.Model {
11517
+ constructor(map) {
11518
+ super(map);
11519
+ }
11520
+ static names() {
11521
+ return {
11522
+ commandDomain: 'CommandDomain',
11523
+ commandName: 'CommandName',
11524
+ payload: 'Payload',
11525
+ };
11526
+ }
11527
+ static types() {
11528
+ return {
11529
+ commandDomain: 'string',
11530
+ commandName: 'string',
11531
+ payload: 'string',
11532
+ };
11533
+ }
11534
+ }
11535
+ exports.PushVoiceBoxCommandsRequestCommands = PushVoiceBoxCommandsRequestCommands;
11412
11536
  class QueryDeviceStatusRequestPayloadLocationDevices extends $tea.Model {
11413
11537
  constructor(map) {
11414
11538
  super(map);
@@ -15429,6 +15553,55 @@ class Client extends openapi_client_1.default {
15429
15553
  let headers = new PushHotelMessageHeaders({});
15430
15554
  return await this.pushHotelMessageWithOptions(request, headers, runtime);
15431
15555
  }
15556
+ async pushVoiceBoxCommandsWithOptions(tmpReq, headers, runtime) {
15557
+ tea_util_1.default.validateModel(tmpReq);
15558
+ let request = new PushVoiceBoxCommandsShrinkRequest({});
15559
+ openapi_util_1.default.convert(tmpReq, request);
15560
+ if (!tea_util_1.default.isUnset(tmpReq.commands)) {
15561
+ request.commandsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.commands, "Commands", "json");
15562
+ }
15563
+ let body = {};
15564
+ if (!tea_util_1.default.isUnset(request.commandsShrink)) {
15565
+ body["Commands"] = request.commandsShrink;
15566
+ }
15567
+ if (!tea_util_1.default.isUnset(request.hotelId)) {
15568
+ body["HotelId"] = request.hotelId;
15569
+ }
15570
+ if (!tea_util_1.default.isUnset(request.roomNo)) {
15571
+ body["RoomNo"] = request.roomNo;
15572
+ }
15573
+ let realHeaders = {};
15574
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
15575
+ realHeaders = headers.commonHeaders;
15576
+ }
15577
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
15578
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
15579
+ }
15580
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
15581
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
15582
+ }
15583
+ let req = new $OpenApi.OpenApiRequest({
15584
+ headers: realHeaders,
15585
+ body: openapi_util_1.default.parseToMap(body),
15586
+ });
15587
+ let params = new $OpenApi.Params({
15588
+ action: "PushVoiceBoxCommands",
15589
+ version: "ip_1.0",
15590
+ protocol: "HTTPS",
15591
+ pathname: `/v1.0/ip/pushVoiceBoxCommands`,
15592
+ method: "POST",
15593
+ authType: "AK",
15594
+ style: "ROA",
15595
+ reqBodyType: "formData",
15596
+ bodyType: "json",
15597
+ });
15598
+ return $tea.cast(await this.callApi(params, req, runtime), new PushVoiceBoxCommandsResponse({}));
15599
+ }
15600
+ async pushVoiceBoxCommands(request) {
15601
+ let runtime = new $Util.RuntimeOptions({});
15602
+ let headers = new PushVoiceBoxCommandsHeaders({});
15603
+ return await this.pushVoiceBoxCommandsWithOptions(request, headers, runtime);
15604
+ }
15432
15605
  async pushWelcomeWithOptions(request, headers, runtime) {
15433
15606
  tea_util_1.default.validateModel(request);
15434
15607
  let body = {};