@alicloud/aliding20230426 2.28.0 → 2.29.1
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 +322 -0
- package/dist/client.js +547 -42
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +659 -0
package/src/client.ts
CHANGED
|
@@ -5721,6 +5721,248 @@ export class CreateRunResponseBodyContent extends $dara.Model {
|
|
|
5721
5721
|
}
|
|
5722
5722
|
}
|
|
5723
5723
|
|
|
5724
|
+
export class CreateRunResponseBodyDataContentCardCallback extends $dara.Model {
|
|
5725
|
+
content?: string;
|
|
5726
|
+
templateId?: string;
|
|
5727
|
+
userId?: string;
|
|
5728
|
+
static names(): { [key: string]: string } {
|
|
5729
|
+
return {
|
|
5730
|
+
content: 'content',
|
|
5731
|
+
templateId: 'templateId',
|
|
5732
|
+
userId: 'userId',
|
|
5733
|
+
};
|
|
5734
|
+
}
|
|
5735
|
+
|
|
5736
|
+
static types(): { [key: string]: any } {
|
|
5737
|
+
return {
|
|
5738
|
+
content: 'string',
|
|
5739
|
+
templateId: 'string',
|
|
5740
|
+
userId: 'string',
|
|
5741
|
+
};
|
|
5742
|
+
}
|
|
5743
|
+
|
|
5744
|
+
validate() {
|
|
5745
|
+
super.validate();
|
|
5746
|
+
}
|
|
5747
|
+
|
|
5748
|
+
constructor(map?: { [key: string]: any }) {
|
|
5749
|
+
super(map);
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5753
|
+
export class CreateRunResponseBodyDataContentDingCard extends $dara.Model {
|
|
5754
|
+
cardDesc?: string;
|
|
5755
|
+
content?: string;
|
|
5756
|
+
contentType?: string;
|
|
5757
|
+
finished?: boolean;
|
|
5758
|
+
templateId?: string;
|
|
5759
|
+
static names(): { [key: string]: string } {
|
|
5760
|
+
return {
|
|
5761
|
+
cardDesc: 'cardDesc',
|
|
5762
|
+
content: 'content',
|
|
5763
|
+
contentType: 'contentType',
|
|
5764
|
+
finished: 'finished',
|
|
5765
|
+
templateId: 'templateId',
|
|
5766
|
+
};
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
static types(): { [key: string]: any } {
|
|
5770
|
+
return {
|
|
5771
|
+
cardDesc: 'string',
|
|
5772
|
+
content: 'string',
|
|
5773
|
+
contentType: 'string',
|
|
5774
|
+
finished: 'boolean',
|
|
5775
|
+
templateId: 'string',
|
|
5776
|
+
};
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5779
|
+
validate() {
|
|
5780
|
+
super.validate();
|
|
5781
|
+
}
|
|
5782
|
+
|
|
5783
|
+
constructor(map?: { [key: string]: any }) {
|
|
5784
|
+
super(map);
|
|
5785
|
+
}
|
|
5786
|
+
}
|
|
5787
|
+
|
|
5788
|
+
export class CreateRunResponseBodyDataContentImageUrl extends $dara.Model {
|
|
5789
|
+
detail?: string;
|
|
5790
|
+
imageDesc?: string;
|
|
5791
|
+
url?: string;
|
|
5792
|
+
static names(): { [key: string]: string } {
|
|
5793
|
+
return {
|
|
5794
|
+
detail: 'detail',
|
|
5795
|
+
imageDesc: 'imageDesc',
|
|
5796
|
+
url: 'url',
|
|
5797
|
+
};
|
|
5798
|
+
}
|
|
5799
|
+
|
|
5800
|
+
static types(): { [key: string]: any } {
|
|
5801
|
+
return {
|
|
5802
|
+
detail: 'string',
|
|
5803
|
+
imageDesc: 'string',
|
|
5804
|
+
url: 'string',
|
|
5805
|
+
};
|
|
5806
|
+
}
|
|
5807
|
+
|
|
5808
|
+
validate() {
|
|
5809
|
+
super.validate();
|
|
5810
|
+
}
|
|
5811
|
+
|
|
5812
|
+
constructor(map?: { [key: string]: any }) {
|
|
5813
|
+
super(map);
|
|
5814
|
+
}
|
|
5815
|
+
}
|
|
5816
|
+
|
|
5817
|
+
export class CreateRunResponseBodyDataContentMarkdown extends $dara.Model {
|
|
5818
|
+
value?: string;
|
|
5819
|
+
static names(): { [key: string]: string } {
|
|
5820
|
+
return {
|
|
5821
|
+
value: 'value',
|
|
5822
|
+
};
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
static types(): { [key: string]: any } {
|
|
5826
|
+
return {
|
|
5827
|
+
value: 'string',
|
|
5828
|
+
};
|
|
5829
|
+
}
|
|
5830
|
+
|
|
5831
|
+
validate() {
|
|
5832
|
+
super.validate();
|
|
5833
|
+
}
|
|
5834
|
+
|
|
5835
|
+
constructor(map?: { [key: string]: any }) {
|
|
5836
|
+
super(map);
|
|
5837
|
+
}
|
|
5838
|
+
}
|
|
5839
|
+
|
|
5840
|
+
export class CreateRunResponseBodyDataContentText extends $dara.Model {
|
|
5841
|
+
value?: string;
|
|
5842
|
+
static names(): { [key: string]: string } {
|
|
5843
|
+
return {
|
|
5844
|
+
value: 'value',
|
|
5845
|
+
};
|
|
5846
|
+
}
|
|
5847
|
+
|
|
5848
|
+
static types(): { [key: string]: any } {
|
|
5849
|
+
return {
|
|
5850
|
+
value: 'string',
|
|
5851
|
+
};
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
validate() {
|
|
5855
|
+
super.validate();
|
|
5856
|
+
}
|
|
5857
|
+
|
|
5858
|
+
constructor(map?: { [key: string]: any }) {
|
|
5859
|
+
super(map);
|
|
5860
|
+
}
|
|
5861
|
+
}
|
|
5862
|
+
|
|
5863
|
+
export class CreateRunResponseBodyDataContent extends $dara.Model {
|
|
5864
|
+
cardCallback?: CreateRunResponseBodyDataContentCardCallback;
|
|
5865
|
+
dingCard?: CreateRunResponseBodyDataContentDingCard;
|
|
5866
|
+
imageUrl?: CreateRunResponseBodyDataContentImageUrl;
|
|
5867
|
+
markdown?: CreateRunResponseBodyDataContentMarkdown;
|
|
5868
|
+
text?: CreateRunResponseBodyDataContentText;
|
|
5869
|
+
type?: string;
|
|
5870
|
+
static names(): { [key: string]: string } {
|
|
5871
|
+
return {
|
|
5872
|
+
cardCallback: 'cardCallback',
|
|
5873
|
+
dingCard: 'dingCard',
|
|
5874
|
+
imageUrl: 'imageUrl',
|
|
5875
|
+
markdown: 'markdown',
|
|
5876
|
+
text: 'text',
|
|
5877
|
+
type: 'type',
|
|
5878
|
+
};
|
|
5879
|
+
}
|
|
5880
|
+
|
|
5881
|
+
static types(): { [key: string]: any } {
|
|
5882
|
+
return {
|
|
5883
|
+
cardCallback: CreateRunResponseBodyDataContentCardCallback,
|
|
5884
|
+
dingCard: CreateRunResponseBodyDataContentDingCard,
|
|
5885
|
+
imageUrl: CreateRunResponseBodyDataContentImageUrl,
|
|
5886
|
+
markdown: CreateRunResponseBodyDataContentMarkdown,
|
|
5887
|
+
text: CreateRunResponseBodyDataContentText,
|
|
5888
|
+
type: 'string',
|
|
5889
|
+
};
|
|
5890
|
+
}
|
|
5891
|
+
|
|
5892
|
+
validate() {
|
|
5893
|
+
if(this.cardCallback && typeof (this.cardCallback as any).validate === 'function') {
|
|
5894
|
+
(this.cardCallback as any).validate();
|
|
5895
|
+
}
|
|
5896
|
+
if(this.dingCard && typeof (this.dingCard as any).validate === 'function') {
|
|
5897
|
+
(this.dingCard as any).validate();
|
|
5898
|
+
}
|
|
5899
|
+
if(this.imageUrl && typeof (this.imageUrl as any).validate === 'function') {
|
|
5900
|
+
(this.imageUrl as any).validate();
|
|
5901
|
+
}
|
|
5902
|
+
if(this.markdown && typeof (this.markdown as any).validate === 'function') {
|
|
5903
|
+
(this.markdown as any).validate();
|
|
5904
|
+
}
|
|
5905
|
+
if(this.text && typeof (this.text as any).validate === 'function') {
|
|
5906
|
+
(this.text as any).validate();
|
|
5907
|
+
}
|
|
5908
|
+
super.validate();
|
|
5909
|
+
}
|
|
5910
|
+
|
|
5911
|
+
constructor(map?: { [key: string]: any }) {
|
|
5912
|
+
super(map);
|
|
5913
|
+
}
|
|
5914
|
+
}
|
|
5915
|
+
|
|
5916
|
+
export class CreateRunResponseBodyData extends $dara.Model {
|
|
5917
|
+
content?: CreateRunResponseBodyDataContent[];
|
|
5918
|
+
createAt?: number;
|
|
5919
|
+
id?: string;
|
|
5920
|
+
metadata?: { [key: string]: any };
|
|
5921
|
+
object?: string;
|
|
5922
|
+
role?: string;
|
|
5923
|
+
runId?: string;
|
|
5924
|
+
threadId?: string;
|
|
5925
|
+
static names(): { [key: string]: string } {
|
|
5926
|
+
return {
|
|
5927
|
+
content: 'content',
|
|
5928
|
+
createAt: 'createAt',
|
|
5929
|
+
id: 'id',
|
|
5930
|
+
metadata: 'metadata',
|
|
5931
|
+
object: 'object',
|
|
5932
|
+
role: 'role',
|
|
5933
|
+
runId: 'runId',
|
|
5934
|
+
threadId: 'threadId',
|
|
5935
|
+
};
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5938
|
+
static types(): { [key: string]: any } {
|
|
5939
|
+
return {
|
|
5940
|
+
content: { 'type': 'array', 'itemType': CreateRunResponseBodyDataContent },
|
|
5941
|
+
createAt: 'number',
|
|
5942
|
+
id: 'string',
|
|
5943
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
5944
|
+
object: 'string',
|
|
5945
|
+
role: 'string',
|
|
5946
|
+
runId: 'string',
|
|
5947
|
+
threadId: 'string',
|
|
5948
|
+
};
|
|
5949
|
+
}
|
|
5950
|
+
|
|
5951
|
+
validate() {
|
|
5952
|
+
if(Array.isArray(this.content)) {
|
|
5953
|
+
$dara.Model.validateArray(this.content);
|
|
5954
|
+
}
|
|
5955
|
+
if(this.metadata) {
|
|
5956
|
+
$dara.Model.validateMap(this.metadata);
|
|
5957
|
+
}
|
|
5958
|
+
super.validate();
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5961
|
+
constructor(map?: { [key: string]: any }) {
|
|
5962
|
+
super(map);
|
|
5963
|
+
}
|
|
5964
|
+
}
|
|
5965
|
+
|
|
5724
5966
|
export class CreateRunResponseBodyDeltaContentCardCallback extends $dara.Model {
|
|
5725
5967
|
/**
|
|
5726
5968
|
* @example
|
|
@@ -15613,6 +15855,35 @@ export class GetRangeResponseBodyBackgroundColors extends $dara.Model {
|
|
|
15613
15855
|
}
|
|
15614
15856
|
}
|
|
15615
15857
|
|
|
15858
|
+
export class GetRangeResponseBodyHyperlinks extends $dara.Model {
|
|
15859
|
+
type?: string;
|
|
15860
|
+
link?: string;
|
|
15861
|
+
text?: string;
|
|
15862
|
+
static names(): { [key: string]: string } {
|
|
15863
|
+
return {
|
|
15864
|
+
type: 'type',
|
|
15865
|
+
link: 'link',
|
|
15866
|
+
text: 'text',
|
|
15867
|
+
};
|
|
15868
|
+
}
|
|
15869
|
+
|
|
15870
|
+
static types(): { [key: string]: any } {
|
|
15871
|
+
return {
|
|
15872
|
+
type: 'string',
|
|
15873
|
+
link: 'string',
|
|
15874
|
+
text: 'string',
|
|
15875
|
+
};
|
|
15876
|
+
}
|
|
15877
|
+
|
|
15878
|
+
validate() {
|
|
15879
|
+
super.validate();
|
|
15880
|
+
}
|
|
15881
|
+
|
|
15882
|
+
constructor(map?: { [key: string]: any }) {
|
|
15883
|
+
super(map);
|
|
15884
|
+
}
|
|
15885
|
+
}
|
|
15886
|
+
|
|
15616
15887
|
export class GetRelatedWorkspacesHeadersAccountContext extends $dara.Model {
|
|
15617
15888
|
/**
|
|
15618
15889
|
* @remarks
|
|
@@ -31777,6 +32048,90 @@ export class SubscribeEventRequestTenantContext extends $dara.Model {
|
|
|
31777
32048
|
}
|
|
31778
32049
|
}
|
|
31779
32050
|
|
|
32051
|
+
export class SwitchMainOrgHeadersAccountContext extends $dara.Model {
|
|
32052
|
+
/**
|
|
32053
|
+
* @remarks
|
|
32054
|
+
* This parameter is required.
|
|
32055
|
+
*
|
|
32056
|
+
* @example
|
|
32057
|
+
* 012345
|
|
32058
|
+
*/
|
|
32059
|
+
accountId?: string;
|
|
32060
|
+
static names(): { [key: string]: string } {
|
|
32061
|
+
return {
|
|
32062
|
+
accountId: 'accountId',
|
|
32063
|
+
};
|
|
32064
|
+
}
|
|
32065
|
+
|
|
32066
|
+
static types(): { [key: string]: any } {
|
|
32067
|
+
return {
|
|
32068
|
+
accountId: 'string',
|
|
32069
|
+
};
|
|
32070
|
+
}
|
|
32071
|
+
|
|
32072
|
+
validate() {
|
|
32073
|
+
super.validate();
|
|
32074
|
+
}
|
|
32075
|
+
|
|
32076
|
+
constructor(map?: { [key: string]: any }) {
|
|
32077
|
+
super(map);
|
|
32078
|
+
}
|
|
32079
|
+
}
|
|
32080
|
+
|
|
32081
|
+
export class SwitchMainOrgRequestTenantContext extends $dara.Model {
|
|
32082
|
+
/**
|
|
32083
|
+
* @example
|
|
32084
|
+
* xxxxxx
|
|
32085
|
+
*/
|
|
32086
|
+
tenantId?: string;
|
|
32087
|
+
static names(): { [key: string]: string } {
|
|
32088
|
+
return {
|
|
32089
|
+
tenantId: 'tenantId',
|
|
32090
|
+
};
|
|
32091
|
+
}
|
|
32092
|
+
|
|
32093
|
+
static types(): { [key: string]: any } {
|
|
32094
|
+
return {
|
|
32095
|
+
tenantId: 'string',
|
|
32096
|
+
};
|
|
32097
|
+
}
|
|
32098
|
+
|
|
32099
|
+
validate() {
|
|
32100
|
+
super.validate();
|
|
32101
|
+
}
|
|
32102
|
+
|
|
32103
|
+
constructor(map?: { [key: string]: any }) {
|
|
32104
|
+
super(map);
|
|
32105
|
+
}
|
|
32106
|
+
}
|
|
32107
|
+
|
|
32108
|
+
export class SwitchMainOrgResponseBodyContent extends $dara.Model {
|
|
32109
|
+
/**
|
|
32110
|
+
* @example
|
|
32111
|
+
* null
|
|
32112
|
+
*/
|
|
32113
|
+
data?: any;
|
|
32114
|
+
static names(): { [key: string]: string } {
|
|
32115
|
+
return {
|
|
32116
|
+
data: 'data',
|
|
32117
|
+
};
|
|
32118
|
+
}
|
|
32119
|
+
|
|
32120
|
+
static types(): { [key: string]: any } {
|
|
32121
|
+
return {
|
|
32122
|
+
data: 'any',
|
|
32123
|
+
};
|
|
32124
|
+
}
|
|
32125
|
+
|
|
32126
|
+
validate() {
|
|
32127
|
+
super.validate();
|
|
32128
|
+
}
|
|
32129
|
+
|
|
32130
|
+
constructor(map?: { [key: string]: any }) {
|
|
32131
|
+
super(map);
|
|
32132
|
+
}
|
|
32133
|
+
}
|
|
32134
|
+
|
|
31780
32135
|
export class SyncDingTypeHeadersAccountContext extends $dara.Model {
|
|
31781
32136
|
/**
|
|
31782
32137
|
* @remarks
|
|
@@ -43496,6 +43851,7 @@ export class CreateRunResponseBody extends $dara.Model {
|
|
|
43496
43851
|
* 1642448000000
|
|
43497
43852
|
*/
|
|
43498
43853
|
createAt?: number;
|
|
43854
|
+
data?: CreateRunResponseBodyData;
|
|
43499
43855
|
/**
|
|
43500
43856
|
* @example
|
|
43501
43857
|
* {}
|
|
@@ -43557,6 +43913,7 @@ export class CreateRunResponseBody extends $dara.Model {
|
|
|
43557
43913
|
completedAt: 'completedAt',
|
|
43558
43914
|
content: 'content',
|
|
43559
43915
|
createAt: 'createAt',
|
|
43916
|
+
data: 'data',
|
|
43560
43917
|
delta: 'delta',
|
|
43561
43918
|
expiresAt: 'expiresAt',
|
|
43562
43919
|
failedAt: 'failedAt',
|
|
@@ -43577,6 +43934,7 @@ export class CreateRunResponseBody extends $dara.Model {
|
|
|
43577
43934
|
completedAt: 'number',
|
|
43578
43935
|
content: CreateRunResponseBodyContent,
|
|
43579
43936
|
createAt: 'number',
|
|
43937
|
+
data: CreateRunResponseBodyData,
|
|
43580
43938
|
delta: CreateRunResponseBodyDelta,
|
|
43581
43939
|
expiresAt: 'number',
|
|
43582
43940
|
failedAt: 'number',
|
|
@@ -43595,6 +43953,9 @@ export class CreateRunResponseBody extends $dara.Model {
|
|
|
43595
43953
|
if(this.content && typeof (this.content as any).validate === 'function') {
|
|
43596
43954
|
(this.content as any).validate();
|
|
43597
43955
|
}
|
|
43956
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
43957
|
+
(this.data as any).validate();
|
|
43958
|
+
}
|
|
43598
43959
|
if(this.delta && typeof (this.delta as any).validate === 'function') {
|
|
43599
43960
|
(this.delta as any).validate();
|
|
43600
43961
|
}
|
|
@@ -61759,6 +62120,11 @@ export class GetRangeResponseBody extends $dara.Model {
|
|
|
61759
62120
|
* []
|
|
61760
62121
|
*/
|
|
61761
62122
|
formulas?: string[][];
|
|
62123
|
+
/**
|
|
62124
|
+
* @example
|
|
62125
|
+
* []
|
|
62126
|
+
*/
|
|
62127
|
+
hyperlinks?: GetRangeResponseBodyHyperlinks[][];
|
|
61762
62128
|
/**
|
|
61763
62129
|
* @remarks
|
|
61764
62130
|
* requestId
|
|
@@ -61777,6 +62143,7 @@ export class GetRangeResponseBody extends $dara.Model {
|
|
|
61777
62143
|
backgroundColors: 'backgroundColors',
|
|
61778
62144
|
displayValues: 'displayValues',
|
|
61779
62145
|
formulas: 'formulas',
|
|
62146
|
+
hyperlinks: 'hyperlinks',
|
|
61780
62147
|
requestId: 'requestId',
|
|
61781
62148
|
values: 'values',
|
|
61782
62149
|
};
|
|
@@ -61787,6 +62154,7 @@ export class GetRangeResponseBody extends $dara.Model {
|
|
|
61787
62154
|
backgroundColors: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': GetRangeResponseBodyBackgroundColors } },
|
|
61788
62155
|
displayValues: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': 'string' } },
|
|
61789
62156
|
formulas: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': 'string' } },
|
|
62157
|
+
hyperlinks: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': GetRangeResponseBodyHyperlinks } },
|
|
61790
62158
|
requestId: 'string',
|
|
61791
62159
|
values: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': 'any' } },
|
|
61792
62160
|
};
|
|
@@ -61802,6 +62170,9 @@ export class GetRangeResponseBody extends $dara.Model {
|
|
|
61802
62170
|
if(Array.isArray(this.formulas)) {
|
|
61803
62171
|
$dara.Model.validateArray(this.formulas);
|
|
61804
62172
|
}
|
|
62173
|
+
if(Array.isArray(this.hyperlinks)) {
|
|
62174
|
+
$dara.Model.validateArray(this.hyperlinks);
|
|
62175
|
+
}
|
|
61805
62176
|
if(Array.isArray(this.values)) {
|
|
61806
62177
|
$dara.Model.validateArray(this.values);
|
|
61807
62178
|
}
|
|
@@ -86830,6 +87201,228 @@ export class SubscribeEventResponse extends $dara.Model {
|
|
|
86830
87201
|
}
|
|
86831
87202
|
}
|
|
86832
87203
|
|
|
87204
|
+
export class SwitchMainOrgHeaders extends $dara.Model {
|
|
87205
|
+
commonHeaders?: { [key: string]: string };
|
|
87206
|
+
accountContext?: SwitchMainOrgHeadersAccountContext;
|
|
87207
|
+
static names(): { [key: string]: string } {
|
|
87208
|
+
return {
|
|
87209
|
+
commonHeaders: 'commonHeaders',
|
|
87210
|
+
accountContext: 'AccountContext',
|
|
87211
|
+
};
|
|
87212
|
+
}
|
|
87213
|
+
|
|
87214
|
+
static types(): { [key: string]: any } {
|
|
87215
|
+
return {
|
|
87216
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
87217
|
+
accountContext: SwitchMainOrgHeadersAccountContext,
|
|
87218
|
+
};
|
|
87219
|
+
}
|
|
87220
|
+
|
|
87221
|
+
validate() {
|
|
87222
|
+
if(this.commonHeaders) {
|
|
87223
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
87224
|
+
}
|
|
87225
|
+
if(this.accountContext && typeof (this.accountContext as any).validate === 'function') {
|
|
87226
|
+
(this.accountContext as any).validate();
|
|
87227
|
+
}
|
|
87228
|
+
super.validate();
|
|
87229
|
+
}
|
|
87230
|
+
|
|
87231
|
+
constructor(map?: { [key: string]: any }) {
|
|
87232
|
+
super(map);
|
|
87233
|
+
}
|
|
87234
|
+
}
|
|
87235
|
+
|
|
87236
|
+
export class SwitchMainOrgShrinkHeaders extends $dara.Model {
|
|
87237
|
+
commonHeaders?: { [key: string]: string };
|
|
87238
|
+
accountContextShrink?: string;
|
|
87239
|
+
static names(): { [key: string]: string } {
|
|
87240
|
+
return {
|
|
87241
|
+
commonHeaders: 'commonHeaders',
|
|
87242
|
+
accountContextShrink: 'AccountContext',
|
|
87243
|
+
};
|
|
87244
|
+
}
|
|
87245
|
+
|
|
87246
|
+
static types(): { [key: string]: any } {
|
|
87247
|
+
return {
|
|
87248
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
87249
|
+
accountContextShrink: 'string',
|
|
87250
|
+
};
|
|
87251
|
+
}
|
|
87252
|
+
|
|
87253
|
+
validate() {
|
|
87254
|
+
if(this.commonHeaders) {
|
|
87255
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
87256
|
+
}
|
|
87257
|
+
super.validate();
|
|
87258
|
+
}
|
|
87259
|
+
|
|
87260
|
+
constructor(map?: { [key: string]: any }) {
|
|
87261
|
+
super(map);
|
|
87262
|
+
}
|
|
87263
|
+
}
|
|
87264
|
+
|
|
87265
|
+
export class SwitchMainOrgRequest extends $dara.Model {
|
|
87266
|
+
/**
|
|
87267
|
+
* @example
|
|
87268
|
+
* 21001
|
|
87269
|
+
*/
|
|
87270
|
+
targetOrgId?: number;
|
|
87271
|
+
tenantContext?: SwitchMainOrgRequestTenantContext;
|
|
87272
|
+
static names(): { [key: string]: string } {
|
|
87273
|
+
return {
|
|
87274
|
+
targetOrgId: 'TargetOrgId',
|
|
87275
|
+
tenantContext: 'TenantContext',
|
|
87276
|
+
};
|
|
87277
|
+
}
|
|
87278
|
+
|
|
87279
|
+
static types(): { [key: string]: any } {
|
|
87280
|
+
return {
|
|
87281
|
+
targetOrgId: 'number',
|
|
87282
|
+
tenantContext: SwitchMainOrgRequestTenantContext,
|
|
87283
|
+
};
|
|
87284
|
+
}
|
|
87285
|
+
|
|
87286
|
+
validate() {
|
|
87287
|
+
if(this.tenantContext && typeof (this.tenantContext as any).validate === 'function') {
|
|
87288
|
+
(this.tenantContext as any).validate();
|
|
87289
|
+
}
|
|
87290
|
+
super.validate();
|
|
87291
|
+
}
|
|
87292
|
+
|
|
87293
|
+
constructor(map?: { [key: string]: any }) {
|
|
87294
|
+
super(map);
|
|
87295
|
+
}
|
|
87296
|
+
}
|
|
87297
|
+
|
|
87298
|
+
export class SwitchMainOrgShrinkRequest extends $dara.Model {
|
|
87299
|
+
/**
|
|
87300
|
+
* @example
|
|
87301
|
+
* 21001
|
|
87302
|
+
*/
|
|
87303
|
+
targetOrgId?: number;
|
|
87304
|
+
tenantContextShrink?: string;
|
|
87305
|
+
static names(): { [key: string]: string } {
|
|
87306
|
+
return {
|
|
87307
|
+
targetOrgId: 'TargetOrgId',
|
|
87308
|
+
tenantContextShrink: 'TenantContext',
|
|
87309
|
+
};
|
|
87310
|
+
}
|
|
87311
|
+
|
|
87312
|
+
static types(): { [key: string]: any } {
|
|
87313
|
+
return {
|
|
87314
|
+
targetOrgId: 'number',
|
|
87315
|
+
tenantContextShrink: 'string',
|
|
87316
|
+
};
|
|
87317
|
+
}
|
|
87318
|
+
|
|
87319
|
+
validate() {
|
|
87320
|
+
super.validate();
|
|
87321
|
+
}
|
|
87322
|
+
|
|
87323
|
+
constructor(map?: { [key: string]: any }) {
|
|
87324
|
+
super(map);
|
|
87325
|
+
}
|
|
87326
|
+
}
|
|
87327
|
+
|
|
87328
|
+
export class SwitchMainOrgResponseBody extends $dara.Model {
|
|
87329
|
+
content?: SwitchMainOrgResponseBodyContent;
|
|
87330
|
+
/**
|
|
87331
|
+
* @example
|
|
87332
|
+
* 0
|
|
87333
|
+
*/
|
|
87334
|
+
errorCode?: string;
|
|
87335
|
+
errorCtx?: { [key: string]: any };
|
|
87336
|
+
errorMsg?: string;
|
|
87337
|
+
/**
|
|
87338
|
+
* @example
|
|
87339
|
+
* 200
|
|
87340
|
+
*/
|
|
87341
|
+
httpStatusCode?: number;
|
|
87342
|
+
/**
|
|
87343
|
+
* @example
|
|
87344
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
87345
|
+
*/
|
|
87346
|
+
requestId?: string;
|
|
87347
|
+
/**
|
|
87348
|
+
* @example
|
|
87349
|
+
* true
|
|
87350
|
+
*/
|
|
87351
|
+
success?: boolean;
|
|
87352
|
+
static names(): { [key: string]: string } {
|
|
87353
|
+
return {
|
|
87354
|
+
content: 'content',
|
|
87355
|
+
errorCode: 'errorCode',
|
|
87356
|
+
errorCtx: 'errorCtx',
|
|
87357
|
+
errorMsg: 'errorMsg',
|
|
87358
|
+
httpStatusCode: 'httpStatusCode',
|
|
87359
|
+
requestId: 'requestId',
|
|
87360
|
+
success: 'success',
|
|
87361
|
+
};
|
|
87362
|
+
}
|
|
87363
|
+
|
|
87364
|
+
static types(): { [key: string]: any } {
|
|
87365
|
+
return {
|
|
87366
|
+
content: SwitchMainOrgResponseBodyContent,
|
|
87367
|
+
errorCode: 'string',
|
|
87368
|
+
errorCtx: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
87369
|
+
errorMsg: 'string',
|
|
87370
|
+
httpStatusCode: 'number',
|
|
87371
|
+
requestId: 'string',
|
|
87372
|
+
success: 'boolean',
|
|
87373
|
+
};
|
|
87374
|
+
}
|
|
87375
|
+
|
|
87376
|
+
validate() {
|
|
87377
|
+
if(this.content && typeof (this.content as any).validate === 'function') {
|
|
87378
|
+
(this.content as any).validate();
|
|
87379
|
+
}
|
|
87380
|
+
if(this.errorCtx) {
|
|
87381
|
+
$dara.Model.validateMap(this.errorCtx);
|
|
87382
|
+
}
|
|
87383
|
+
super.validate();
|
|
87384
|
+
}
|
|
87385
|
+
|
|
87386
|
+
constructor(map?: { [key: string]: any }) {
|
|
87387
|
+
super(map);
|
|
87388
|
+
}
|
|
87389
|
+
}
|
|
87390
|
+
|
|
87391
|
+
export class SwitchMainOrgResponse extends $dara.Model {
|
|
87392
|
+
headers?: { [key: string]: string };
|
|
87393
|
+
statusCode?: number;
|
|
87394
|
+
body?: SwitchMainOrgResponseBody;
|
|
87395
|
+
static names(): { [key: string]: string } {
|
|
87396
|
+
return {
|
|
87397
|
+
headers: 'headers',
|
|
87398
|
+
statusCode: 'statusCode',
|
|
87399
|
+
body: 'body',
|
|
87400
|
+
};
|
|
87401
|
+
}
|
|
87402
|
+
|
|
87403
|
+
static types(): { [key: string]: any } {
|
|
87404
|
+
return {
|
|
87405
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
87406
|
+
statusCode: 'number',
|
|
87407
|
+
body: SwitchMainOrgResponseBody,
|
|
87408
|
+
};
|
|
87409
|
+
}
|
|
87410
|
+
|
|
87411
|
+
validate() {
|
|
87412
|
+
if(this.headers) {
|
|
87413
|
+
$dara.Model.validateMap(this.headers);
|
|
87414
|
+
}
|
|
87415
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
87416
|
+
(this.body as any).validate();
|
|
87417
|
+
}
|
|
87418
|
+
super.validate();
|
|
87419
|
+
}
|
|
87420
|
+
|
|
87421
|
+
constructor(map?: { [key: string]: any }) {
|
|
87422
|
+
super(map);
|
|
87423
|
+
}
|
|
87424
|
+
}
|
|
87425
|
+
|
|
86833
87426
|
export class SyncDingTypeHeaders extends $dara.Model {
|
|
86834
87427
|
commonHeaders?: { [key: string]: string };
|
|
86835
87428
|
accountContext?: SyncDingTypeHeadersAccountContext;
|
|
@@ -110202,6 +110795,72 @@ export default class Client extends OpenApi {
|
|
|
110202
110795
|
return await this.subscribeEventWithOptions(request, headers, runtime);
|
|
110203
110796
|
}
|
|
110204
110797
|
|
|
110798
|
+
/**
|
|
110799
|
+
* @param tmpReq - SwitchMainOrgRequest
|
|
110800
|
+
* @param tmpHeader - SwitchMainOrgHeaders
|
|
110801
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
110802
|
+
* @returns SwitchMainOrgResponse
|
|
110803
|
+
*/
|
|
110804
|
+
async switchMainOrgWithOptions(tmpReq: SwitchMainOrgRequest, tmpHeader: SwitchMainOrgHeaders, runtime: $dara.RuntimeOptions): Promise<SwitchMainOrgResponse> {
|
|
110805
|
+
tmpReq.validate();
|
|
110806
|
+
let request = new SwitchMainOrgShrinkRequest({ });
|
|
110807
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
110808
|
+
let headers = new SwitchMainOrgShrinkHeaders({ });
|
|
110809
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
110810
|
+
if (!$dara.isNull(tmpHeader.accountContext)) {
|
|
110811
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
110812
|
+
}
|
|
110813
|
+
|
|
110814
|
+
if (!$dara.isNull(tmpReq.tenantContext)) {
|
|
110815
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
110816
|
+
}
|
|
110817
|
+
|
|
110818
|
+
let body : {[key: string ]: any} = { };
|
|
110819
|
+
if (!$dara.isNull(request.targetOrgId)) {
|
|
110820
|
+
body["TargetOrgId"] = request.targetOrgId;
|
|
110821
|
+
}
|
|
110822
|
+
|
|
110823
|
+
if (!$dara.isNull(request.tenantContextShrink)) {
|
|
110824
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
110825
|
+
}
|
|
110826
|
+
|
|
110827
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
110828
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
110829
|
+
realHeaders = headers.commonHeaders;
|
|
110830
|
+
}
|
|
110831
|
+
|
|
110832
|
+
if (!$dara.isNull(headers.accountContextShrink)) {
|
|
110833
|
+
realHeaders["AccountContext"] = JSON.stringify(headers.accountContextShrink);
|
|
110834
|
+
}
|
|
110835
|
+
|
|
110836
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
110837
|
+
headers: realHeaders,
|
|
110838
|
+
body: OpenApiUtil.parseToMap(body),
|
|
110839
|
+
});
|
|
110840
|
+
let params = new $OpenApiUtil.Params({
|
|
110841
|
+
action: "SwitchMainOrg",
|
|
110842
|
+
version: "2023-04-26",
|
|
110843
|
+
protocol: "HTTPS",
|
|
110844
|
+
pathname: `/aliding/v1/user/switchMainOrg`,
|
|
110845
|
+
method: "POST",
|
|
110846
|
+
authType: "AK",
|
|
110847
|
+
style: "ROA",
|
|
110848
|
+
reqBodyType: "formData",
|
|
110849
|
+
bodyType: "json",
|
|
110850
|
+
});
|
|
110851
|
+
return $dara.cast<SwitchMainOrgResponse>(await this.callApi(params, req, runtime), new SwitchMainOrgResponse({}));
|
|
110852
|
+
}
|
|
110853
|
+
|
|
110854
|
+
/**
|
|
110855
|
+
* @param request - SwitchMainOrgRequest
|
|
110856
|
+
* @returns SwitchMainOrgResponse
|
|
110857
|
+
*/
|
|
110858
|
+
async switchMainOrg(request: SwitchMainOrgRequest): Promise<SwitchMainOrgResponse> {
|
|
110859
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
110860
|
+
let headers = new SwitchMainOrgHeaders({ });
|
|
110861
|
+
return await this.switchMainOrgWithOptions(request, headers, runtime);
|
|
110862
|
+
}
|
|
110863
|
+
|
|
110205
110864
|
/**
|
|
110206
110865
|
* 同步钉钉账号类型
|
|
110207
110866
|
*
|