@alicloud/rdsai20250507 3.9.5 → 3.9.6
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 +4 -4
- package/dist/client.js +7 -4
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextDatabaseWorkspaceRequest.d.ts +13 -1
- package/dist/models/CreateContextDatabaseWorkspaceRequest.js +2 -0
- package/dist/models/CreateContextDatabaseWorkspaceRequest.js.map +1 -1
- package/dist/models/CreateContextDatabaseWorkspaceResponseBody.d.ts +20 -12
- package/dist/models/CreateContextDatabaseWorkspaceResponseBody.js +2 -0
- package/dist/models/CreateContextDatabaseWorkspaceResponseBody.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +8 -4
- package/src/models/CreateContextDatabaseWorkspaceRequest.ts +15 -1
- package/src/models/CreateContextDatabaseWorkspaceResponseBody.ts +22 -12
|
@@ -12,7 +12,19 @@ export declare class CreateContextDatabaseWorkspaceRequest extends $dara.Model {
|
|
|
12
12
|
memberName?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The workspace
|
|
15
|
+
* The permission mode selected when creating the workspace. Valid values:
|
|
16
|
+
* - `compatibility`: Compatibility mode. This mode is used if this parameter is not specified.
|
|
17
|
+
* - `advanced`: Advanced permission mode. Only the Alibaba Cloud account can select this mode. It takes effect immediately after the workspace is created and cannot be disabled after creation.
|
|
18
|
+
*
|
|
19
|
+
* This parameter is a string, not a Boolean switch. Valid values are case-insensitive and ignore leading and trailing whitespace. If an empty string, a string with only whitespace, or an invalid value is explicitly specified, `InvalidParameter` (HTTP 400) is returned. If a RAM user selects `advanced`, `NoPermission` (HTTP 403) is returned.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* advanced
|
|
23
|
+
*/
|
|
24
|
+
permissionMode?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @remarks
|
|
27
|
+
* The name of the workspace.
|
|
16
28
|
*
|
|
17
29
|
* This parameter is required.
|
|
18
30
|
*
|
|
@@ -40,12 +40,14 @@ class CreateContextDatabaseWorkspaceRequest extends $dara.Model {
|
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
42
|
memberName: 'MemberName',
|
|
43
|
+
permissionMode: 'PermissionMode',
|
|
43
44
|
workspaceName: 'WorkspaceName',
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
static types() {
|
|
47
48
|
return {
|
|
48
49
|
memberName: 'string',
|
|
50
|
+
permissionMode: 'string',
|
|
49
51
|
workspaceName: 'string',
|
|
50
52
|
};
|
|
51
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateContextDatabaseWorkspaceRequest.js","sourceRoot":"","sources":["../../src/models/CreateContextDatabaseWorkspaceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateContextDatabaseWorkspaceRequest.js","sourceRoot":"","sources":["../../src/models/CreateContextDatabaseWorkspaceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAiCpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,cAAc,EAAE,gBAAgB;YAChC,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;YACxB,aAAa,EAAE,QAAQ;SACxB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxDD,sFAwDC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The plaintext API key. This
|
|
5
|
+
* The plaintext API key. This key is returned only once upon creation. The caller must persist the key.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ctxdb-*****
|
|
@@ -10,7 +10,7 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
10
10
|
apiKey?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The name of the first API key. The value is fixed
|
|
13
|
+
* The name of the first API key. The value is fixed to default.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* default
|
|
@@ -18,7 +18,7 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
18
18
|
apiKeyName?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The time
|
|
21
|
+
* The creation time in ISO 8601 format.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* 2026-05-28T17:59:55Z
|
|
@@ -40,6 +40,18 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
40
40
|
* my-member
|
|
41
41
|
*/
|
|
42
42
|
memberName?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The permission mode that actually takes effect after the workspace is created. The value is returned as a lowercase string:
|
|
46
|
+
* - `personal_compatibility`: Compatibility mode, which corresponds to the request value `compatibility`.
|
|
47
|
+
* - `advanced`: Advanced permission mode.
|
|
48
|
+
*
|
|
49
|
+
* This field is optional. If it is not returned in the response, check the actual mode in the workspace details. Do not recreate the workspace only because this field is missing.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* advanced
|
|
53
|
+
*/
|
|
54
|
+
permissionMode?: string;
|
|
43
55
|
/**
|
|
44
56
|
* @remarks
|
|
45
57
|
* The request ID.
|
|
@@ -50,7 +62,7 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
50
62
|
requestId?: string;
|
|
51
63
|
/**
|
|
52
64
|
* @remarks
|
|
53
|
-
* The role of the first member. The value is fixed
|
|
65
|
+
* The role of the first member. The value is fixed to owner.
|
|
54
66
|
*
|
|
55
67
|
* @example
|
|
56
68
|
* owner
|
|
@@ -58,9 +70,7 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
58
70
|
role?: string;
|
|
59
71
|
/**
|
|
60
72
|
* @remarks
|
|
61
|
-
* The workspace
|
|
62
|
-
* - Active: running as expected.
|
|
63
|
-
* - Locked: locked due to overdue payment or expiration.
|
|
73
|
+
* The status of the workspace. Valid values: Active (running normally) and Locked (stopped due to an overdue payment or locked due to expiration).
|
|
64
74
|
*
|
|
65
75
|
* @example
|
|
66
76
|
* Active
|
|
@@ -68,9 +78,7 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
68
78
|
status?: string;
|
|
69
79
|
/**
|
|
70
80
|
* @remarks
|
|
71
|
-
* The workspace
|
|
72
|
-
* - personal: individual account.
|
|
73
|
-
* - enterprise: enterprise account.
|
|
81
|
+
* The type of the workspace. Valid values: personal and enterprise.
|
|
74
82
|
*
|
|
75
83
|
* @example
|
|
76
84
|
* personal
|
|
@@ -78,7 +86,7 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
78
86
|
type?: string;
|
|
79
87
|
/**
|
|
80
88
|
* @remarks
|
|
81
|
-
* The ID of the
|
|
89
|
+
* The ID of the newly created workspace.
|
|
82
90
|
*
|
|
83
91
|
* @example
|
|
84
92
|
* ws-as1llqmkol****
|
|
@@ -86,7 +94,7 @@ export declare class CreateContextDatabaseWorkspaceResponseBody extends $dara.Mo
|
|
|
86
94
|
workspaceId?: string;
|
|
87
95
|
/**
|
|
88
96
|
* @remarks
|
|
89
|
-
* The workspace
|
|
97
|
+
* The name of the workspace.
|
|
90
98
|
*
|
|
91
99
|
* @example
|
|
92
100
|
* my-workspace
|
|
@@ -44,6 +44,7 @@ class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
44
44
|
createdAt: 'CreatedAt',
|
|
45
45
|
memberId: 'MemberId',
|
|
46
46
|
memberName: 'MemberName',
|
|
47
|
+
permissionMode: 'PermissionMode',
|
|
47
48
|
requestId: 'RequestId',
|
|
48
49
|
role: 'Role',
|
|
49
50
|
status: 'Status',
|
|
@@ -59,6 +60,7 @@ class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
59
60
|
createdAt: 'string',
|
|
60
61
|
memberId: 'string',
|
|
61
62
|
memberName: 'string',
|
|
63
|
+
permissionMode: 'string',
|
|
62
64
|
requestId: 'string',
|
|
63
65
|
role: 'string',
|
|
64
66
|
status: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateContextDatabaseWorkspaceResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateContextDatabaseWorkspaceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateContextDatabaseWorkspaceResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateContextDatabaseWorkspaceResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAqGzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;YACrB,aAAa,EAAE,QAAQ;SACxB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ID,gGA8IC"}
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -957,10 +957,10 @@ export default class Client extends OpenApi {
|
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
/**
|
|
960
|
-
* Creates a workspace, the first member, and the first API key in a one-time onboarding
|
|
960
|
+
* Creates a workspace, the first member, and the first API key in a one-time onboarding flow.
|
|
961
961
|
*
|
|
962
962
|
* @remarks
|
|
963
|
-
* Creates a workspace
|
|
963
|
+
* Creates a workspace, the first member, and the first API key in a one-time onboarding flow, and returns the plaintext API key.
|
|
964
964
|
*
|
|
965
965
|
* @param request - CreateContextDatabaseWorkspaceRequest
|
|
966
966
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -973,6 +973,10 @@ export default class Client extends OpenApi {
|
|
|
973
973
|
query["MemberName"] = request.memberName;
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
+
if (!$dara.isNull(request.permissionMode)) {
|
|
977
|
+
query["PermissionMode"] = request.permissionMode;
|
|
978
|
+
}
|
|
979
|
+
|
|
976
980
|
if (!$dara.isNull(request.workspaceName)) {
|
|
977
981
|
query["WorkspaceName"] = request.workspaceName;
|
|
978
982
|
}
|
|
@@ -995,10 +999,10 @@ export default class Client extends OpenApi {
|
|
|
995
999
|
}
|
|
996
1000
|
|
|
997
1001
|
/**
|
|
998
|
-
* Creates a workspace, the first member, and the first API key in a one-time onboarding
|
|
1002
|
+
* Creates a workspace, the first member, and the first API key in a one-time onboarding flow.
|
|
999
1003
|
*
|
|
1000
1004
|
* @remarks
|
|
1001
|
-
* Creates a workspace
|
|
1005
|
+
* Creates a workspace, the first member, and the first API key in a one-time onboarding flow, and returns the plaintext API key.
|
|
1002
1006
|
*
|
|
1003
1007
|
* @param request - CreateContextDatabaseWorkspaceRequest
|
|
1004
1008
|
* @returns CreateContextDatabaseWorkspaceResponse
|
|
@@ -15,7 +15,19 @@ export class CreateContextDatabaseWorkspaceRequest extends $dara.Model {
|
|
|
15
15
|
memberName?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The workspace
|
|
18
|
+
* The permission mode selected when creating the workspace. Valid values:
|
|
19
|
+
* - `compatibility`: Compatibility mode. This mode is used if this parameter is not specified.
|
|
20
|
+
* - `advanced`: Advanced permission mode. Only the Alibaba Cloud account can select this mode. It takes effect immediately after the workspace is created and cannot be disabled after creation.
|
|
21
|
+
*
|
|
22
|
+
* This parameter is a string, not a Boolean switch. Valid values are case-insensitive and ignore leading and trailing whitespace. If an empty string, a string with only whitespace, or an invalid value is explicitly specified, `InvalidParameter` (HTTP 400) is returned. If a RAM user selects `advanced`, `NoPermission` (HTTP 403) is returned.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* advanced
|
|
26
|
+
*/
|
|
27
|
+
permissionMode?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @remarks
|
|
30
|
+
* The name of the workspace.
|
|
19
31
|
*
|
|
20
32
|
* This parameter is required.
|
|
21
33
|
*
|
|
@@ -26,6 +38,7 @@ export class CreateContextDatabaseWorkspaceRequest extends $dara.Model {
|
|
|
26
38
|
static names(): { [key: string]: string } {
|
|
27
39
|
return {
|
|
28
40
|
memberName: 'MemberName',
|
|
41
|
+
permissionMode: 'PermissionMode',
|
|
29
42
|
workspaceName: 'WorkspaceName',
|
|
30
43
|
};
|
|
31
44
|
}
|
|
@@ -33,6 +46,7 @@ export class CreateContextDatabaseWorkspaceRequest extends $dara.Model {
|
|
|
33
46
|
static types(): { [key: string]: any } {
|
|
34
47
|
return {
|
|
35
48
|
memberName: 'string',
|
|
49
|
+
permissionMode: 'string',
|
|
36
50
|
workspaceName: 'string',
|
|
37
51
|
};
|
|
38
52
|
}
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The plaintext API key. This
|
|
8
|
+
* The plaintext API key. This key is returned only once upon creation. The caller must persist the key.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ctxdb-*****
|
|
@@ -13,7 +13,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
13
13
|
apiKey?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The name of the first API key. The value is fixed
|
|
16
|
+
* The name of the first API key. The value is fixed to default.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* default
|
|
@@ -21,7 +21,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
21
21
|
apiKeyName?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The time
|
|
24
|
+
* The creation time in ISO 8601 format.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* 2026-05-28T17:59:55Z
|
|
@@ -43,6 +43,18 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
43
43
|
* my-member
|
|
44
44
|
*/
|
|
45
45
|
memberName?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The permission mode that actually takes effect after the workspace is created. The value is returned as a lowercase string:
|
|
49
|
+
* - `personal_compatibility`: Compatibility mode, which corresponds to the request value `compatibility`.
|
|
50
|
+
* - `advanced`: Advanced permission mode.
|
|
51
|
+
*
|
|
52
|
+
* This field is optional. If it is not returned in the response, check the actual mode in the workspace details. Do not recreate the workspace only because this field is missing.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* advanced
|
|
56
|
+
*/
|
|
57
|
+
permissionMode?: string;
|
|
46
58
|
/**
|
|
47
59
|
* @remarks
|
|
48
60
|
* The request ID.
|
|
@@ -53,7 +65,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
53
65
|
requestId?: string;
|
|
54
66
|
/**
|
|
55
67
|
* @remarks
|
|
56
|
-
* The role of the first member. The value is fixed
|
|
68
|
+
* The role of the first member. The value is fixed to owner.
|
|
57
69
|
*
|
|
58
70
|
* @example
|
|
59
71
|
* owner
|
|
@@ -61,9 +73,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
61
73
|
role?: string;
|
|
62
74
|
/**
|
|
63
75
|
* @remarks
|
|
64
|
-
* The workspace
|
|
65
|
-
* - Active: running as expected.
|
|
66
|
-
* - Locked: locked due to overdue payment or expiration.
|
|
76
|
+
* The status of the workspace. Valid values: Active (running normally) and Locked (stopped due to an overdue payment or locked due to expiration).
|
|
67
77
|
*
|
|
68
78
|
* @example
|
|
69
79
|
* Active
|
|
@@ -71,9 +81,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
71
81
|
status?: string;
|
|
72
82
|
/**
|
|
73
83
|
* @remarks
|
|
74
|
-
* The workspace
|
|
75
|
-
* - personal: individual account.
|
|
76
|
-
* - enterprise: enterprise account.
|
|
84
|
+
* The type of the workspace. Valid values: personal and enterprise.
|
|
77
85
|
*
|
|
78
86
|
* @example
|
|
79
87
|
* personal
|
|
@@ -81,7 +89,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
81
89
|
type?: string;
|
|
82
90
|
/**
|
|
83
91
|
* @remarks
|
|
84
|
-
* The ID of the
|
|
92
|
+
* The ID of the newly created workspace.
|
|
85
93
|
*
|
|
86
94
|
* @example
|
|
87
95
|
* ws-as1llqmkol****
|
|
@@ -89,7 +97,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
89
97
|
workspaceId?: string;
|
|
90
98
|
/**
|
|
91
99
|
* @remarks
|
|
92
|
-
* The workspace
|
|
100
|
+
* The name of the workspace.
|
|
93
101
|
*
|
|
94
102
|
* @example
|
|
95
103
|
* my-workspace
|
|
@@ -102,6 +110,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
102
110
|
createdAt: 'CreatedAt',
|
|
103
111
|
memberId: 'MemberId',
|
|
104
112
|
memberName: 'MemberName',
|
|
113
|
+
permissionMode: 'PermissionMode',
|
|
105
114
|
requestId: 'RequestId',
|
|
106
115
|
role: 'Role',
|
|
107
116
|
status: 'Status',
|
|
@@ -118,6 +127,7 @@ export class CreateContextDatabaseWorkspaceResponseBody extends $dara.Model {
|
|
|
118
127
|
createdAt: 'string',
|
|
119
128
|
memberId: 'string',
|
|
120
129
|
memberName: 'string',
|
|
130
|
+
permissionMode: 'string',
|
|
121
131
|
requestId: 'string',
|
|
122
132
|
role: 'string',
|
|
123
133
|
status: 'string',
|