@wildix/xbees-users-client 1.0.2 → 1.0.4
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-cjs/protocols/Aws_restJson1.js +29 -4
- package/dist-es/protocols/Aws_restJson1.js +29 -4
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +4 -2
- package/dist-types/commands/CreateBotCommand.d.ts +3 -1
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBotCommand.d.ts +1 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +3 -2
- package/dist-types/commands/ListBotsCommand.d.ts +6 -3
- package/dist-types/commands/UpdateBotCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +16 -8
- package/package.json +1 -1
|
@@ -53,6 +53,9 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
53
53
|
'content-type': 'application/json',
|
|
54
54
|
};
|
|
55
55
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots";
|
|
56
|
+
const query = (0, smithy_client_1.map)({
|
|
57
|
+
"company": [, input.company],
|
|
58
|
+
});
|
|
56
59
|
let body;
|
|
57
60
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
58
61
|
'callback': _ => (0, smithy_client_1._json)(_),
|
|
@@ -66,6 +69,7 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
66
69
|
method: "POST",
|
|
67
70
|
headers,
|
|
68
71
|
path: resolvedPath,
|
|
72
|
+
query,
|
|
69
73
|
body,
|
|
70
74
|
});
|
|
71
75
|
};
|
|
@@ -77,6 +81,9 @@ const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
|
77
81
|
};
|
|
78
82
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}/keys";
|
|
79
83
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
84
|
+
const query = (0, smithy_client_1.map)({
|
|
85
|
+
"company": [, input.company],
|
|
86
|
+
});
|
|
80
87
|
let body;
|
|
81
88
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
82
89
|
'name': [],
|
|
@@ -88,6 +95,7 @@ const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
|
88
95
|
method: "POST",
|
|
89
96
|
headers,
|
|
90
97
|
path: resolvedPath,
|
|
98
|
+
query,
|
|
91
99
|
body,
|
|
92
100
|
});
|
|
93
101
|
};
|
|
@@ -97,6 +105,9 @@ const se_DeleteBotCommand = async (input, context) => {
|
|
|
97
105
|
const headers = {};
|
|
98
106
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}";
|
|
99
107
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
108
|
+
const query = (0, smithy_client_1.map)({
|
|
109
|
+
"company": [, input.company],
|
|
110
|
+
});
|
|
100
111
|
let body;
|
|
101
112
|
return new protocol_http_1.HttpRequest({
|
|
102
113
|
protocol,
|
|
@@ -105,6 +116,7 @@ const se_DeleteBotCommand = async (input, context) => {
|
|
|
105
116
|
method: "DELETE",
|
|
106
117
|
headers,
|
|
107
118
|
path: resolvedPath,
|
|
119
|
+
query,
|
|
108
120
|
body,
|
|
109
121
|
});
|
|
110
122
|
};
|
|
@@ -115,6 +127,9 @@ const se_DeleteBotApiKeyCommand = async (input, context) => {
|
|
|
115
127
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}/keys/{apiKeySecret}";
|
|
116
128
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
117
129
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'apiKeySecret', () => input.apiKeySecret, '{apiKeySecret}', false);
|
|
130
|
+
const query = (0, smithy_client_1.map)({
|
|
131
|
+
"company": [, input.company],
|
|
132
|
+
});
|
|
118
133
|
let body;
|
|
119
134
|
return new protocol_http_1.HttpRequest({
|
|
120
135
|
protocol,
|
|
@@ -123,6 +138,7 @@ const se_DeleteBotApiKeyCommand = async (input, context) => {
|
|
|
123
138
|
method: "DELETE",
|
|
124
139
|
headers,
|
|
125
140
|
path: resolvedPath,
|
|
141
|
+
query,
|
|
126
142
|
body,
|
|
127
143
|
});
|
|
128
144
|
};
|
|
@@ -132,6 +148,9 @@ const se_ListBotApiKeysCommand = async (input, context) => {
|
|
|
132
148
|
const headers = {};
|
|
133
149
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}";
|
|
134
150
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
151
|
+
const query = (0, smithy_client_1.map)({
|
|
152
|
+
"company": [, input.company],
|
|
153
|
+
});
|
|
135
154
|
let body;
|
|
136
155
|
return new protocol_http_1.HttpRequest({
|
|
137
156
|
protocol,
|
|
@@ -140,18 +159,19 @@ const se_ListBotApiKeysCommand = async (input, context) => {
|
|
|
140
159
|
method: "GET",
|
|
141
160
|
headers,
|
|
142
161
|
path: resolvedPath,
|
|
162
|
+
query,
|
|
143
163
|
body,
|
|
144
164
|
});
|
|
145
165
|
};
|
|
146
166
|
exports.se_ListBotApiKeysCommand = se_ListBotApiKeysCommand;
|
|
147
167
|
const se_ListBotsCommand = async (input, context) => {
|
|
148
168
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
|
-
const headers = {
|
|
150
|
-
'content-type': 'application/json',
|
|
151
|
-
};
|
|
169
|
+
const headers = {};
|
|
152
170
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots";
|
|
171
|
+
const query = (0, smithy_client_1.map)({
|
|
172
|
+
"company": [, input.company],
|
|
173
|
+
});
|
|
153
174
|
let body;
|
|
154
|
-
body = "";
|
|
155
175
|
return new protocol_http_1.HttpRequest({
|
|
156
176
|
protocol,
|
|
157
177
|
hostname,
|
|
@@ -159,6 +179,7 @@ const se_ListBotsCommand = async (input, context) => {
|
|
|
159
179
|
method: "GET",
|
|
160
180
|
headers,
|
|
161
181
|
path: resolvedPath,
|
|
182
|
+
query,
|
|
162
183
|
body,
|
|
163
184
|
});
|
|
164
185
|
};
|
|
@@ -170,6 +191,9 @@ const se_UpdateBotCommand = async (input, context) => {
|
|
|
170
191
|
};
|
|
171
192
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}";
|
|
172
193
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
194
|
+
const query = (0, smithy_client_1.map)({
|
|
195
|
+
"company": [, input.company],
|
|
196
|
+
});
|
|
173
197
|
let body;
|
|
174
198
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
175
199
|
'callback': _ => (0, smithy_client_1._json)(_),
|
|
@@ -183,6 +207,7 @@ const se_UpdateBotCommand = async (input, context) => {
|
|
|
183
207
|
method: "POST",
|
|
184
208
|
headers,
|
|
185
209
|
path: resolvedPath,
|
|
210
|
+
query,
|
|
186
211
|
body,
|
|
187
212
|
});
|
|
188
213
|
};
|
|
@@ -48,6 +48,9 @@ export const se_CreateBotCommand = async (input, context) => {
|
|
|
48
48
|
'content-type': 'application/json',
|
|
49
49
|
};
|
|
50
50
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots";
|
|
51
|
+
const query = map({
|
|
52
|
+
"company": [, input.company],
|
|
53
|
+
});
|
|
51
54
|
let body;
|
|
52
55
|
body = JSON.stringify(take(input, {
|
|
53
56
|
'callback': _ => _json(_),
|
|
@@ -61,6 +64,7 @@ export const se_CreateBotCommand = async (input, context) => {
|
|
|
61
64
|
method: "POST",
|
|
62
65
|
headers,
|
|
63
66
|
path: resolvedPath,
|
|
67
|
+
query,
|
|
64
68
|
body,
|
|
65
69
|
});
|
|
66
70
|
};
|
|
@@ -71,6 +75,9 @@ export const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
|
71
75
|
};
|
|
72
76
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}/keys";
|
|
73
77
|
resolvedPath = __resolvedPath(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
78
|
+
const query = map({
|
|
79
|
+
"company": [, input.company],
|
|
80
|
+
});
|
|
74
81
|
let body;
|
|
75
82
|
body = JSON.stringify(take(input, {
|
|
76
83
|
'name': [],
|
|
@@ -82,6 +89,7 @@ export const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
|
82
89
|
method: "POST",
|
|
83
90
|
headers,
|
|
84
91
|
path: resolvedPath,
|
|
92
|
+
query,
|
|
85
93
|
body,
|
|
86
94
|
});
|
|
87
95
|
};
|
|
@@ -90,6 +98,9 @@ export const se_DeleteBotCommand = async (input, context) => {
|
|
|
90
98
|
const headers = {};
|
|
91
99
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}";
|
|
92
100
|
resolvedPath = __resolvedPath(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
101
|
+
const query = map({
|
|
102
|
+
"company": [, input.company],
|
|
103
|
+
});
|
|
93
104
|
let body;
|
|
94
105
|
return new __HttpRequest({
|
|
95
106
|
protocol,
|
|
@@ -98,6 +109,7 @@ export const se_DeleteBotCommand = async (input, context) => {
|
|
|
98
109
|
method: "DELETE",
|
|
99
110
|
headers,
|
|
100
111
|
path: resolvedPath,
|
|
112
|
+
query,
|
|
101
113
|
body,
|
|
102
114
|
});
|
|
103
115
|
};
|
|
@@ -107,6 +119,9 @@ export const se_DeleteBotApiKeyCommand = async (input, context) => {
|
|
|
107
119
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}/keys/{apiKeySecret}";
|
|
108
120
|
resolvedPath = __resolvedPath(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
109
121
|
resolvedPath = __resolvedPath(resolvedPath, input, 'apiKeySecret', () => input.apiKeySecret, '{apiKeySecret}', false);
|
|
122
|
+
const query = map({
|
|
123
|
+
"company": [, input.company],
|
|
124
|
+
});
|
|
110
125
|
let body;
|
|
111
126
|
return new __HttpRequest({
|
|
112
127
|
protocol,
|
|
@@ -115,6 +130,7 @@ export const se_DeleteBotApiKeyCommand = async (input, context) => {
|
|
|
115
130
|
method: "DELETE",
|
|
116
131
|
headers,
|
|
117
132
|
path: resolvedPath,
|
|
133
|
+
query,
|
|
118
134
|
body,
|
|
119
135
|
});
|
|
120
136
|
};
|
|
@@ -123,6 +139,9 @@ export const se_ListBotApiKeysCommand = async (input, context) => {
|
|
|
123
139
|
const headers = {};
|
|
124
140
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}";
|
|
125
141
|
resolvedPath = __resolvedPath(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
142
|
+
const query = map({
|
|
143
|
+
"company": [, input.company],
|
|
144
|
+
});
|
|
126
145
|
let body;
|
|
127
146
|
return new __HttpRequest({
|
|
128
147
|
protocol,
|
|
@@ -131,17 +150,18 @@ export const se_ListBotApiKeysCommand = async (input, context) => {
|
|
|
131
150
|
method: "GET",
|
|
132
151
|
headers,
|
|
133
152
|
path: resolvedPath,
|
|
153
|
+
query,
|
|
134
154
|
body,
|
|
135
155
|
});
|
|
136
156
|
};
|
|
137
157
|
export const se_ListBotsCommand = async (input, context) => {
|
|
138
158
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
|
-
const headers = {
|
|
140
|
-
'content-type': 'application/json',
|
|
141
|
-
};
|
|
159
|
+
const headers = {};
|
|
142
160
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots";
|
|
161
|
+
const query = map({
|
|
162
|
+
"company": [, input.company],
|
|
163
|
+
});
|
|
143
164
|
let body;
|
|
144
|
-
body = "";
|
|
145
165
|
return new __HttpRequest({
|
|
146
166
|
protocol,
|
|
147
167
|
hostname,
|
|
@@ -149,6 +169,7 @@ export const se_ListBotsCommand = async (input, context) => {
|
|
|
149
169
|
method: "GET",
|
|
150
170
|
headers,
|
|
151
171
|
path: resolvedPath,
|
|
172
|
+
query,
|
|
152
173
|
body,
|
|
153
174
|
});
|
|
154
175
|
};
|
|
@@ -159,6 +180,9 @@ export const se_UpdateBotCommand = async (input, context) => {
|
|
|
159
180
|
};
|
|
160
181
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/users/bots/{botId}";
|
|
161
182
|
resolvedPath = __resolvedPath(resolvedPath, input, 'botId', () => input.botId, '{botId}', false);
|
|
183
|
+
const query = map({
|
|
184
|
+
"company": [, input.company],
|
|
185
|
+
});
|
|
162
186
|
let body;
|
|
163
187
|
body = JSON.stringify(take(input, {
|
|
164
188
|
'callback': _ => _json(_),
|
|
@@ -172,6 +196,7 @@ export const se_UpdateBotCommand = async (input, context) => {
|
|
|
172
196
|
method: "POST",
|
|
173
197
|
headers,
|
|
174
198
|
path: resolvedPath,
|
|
199
|
+
query,
|
|
175
200
|
body,
|
|
176
201
|
});
|
|
177
202
|
};
|
|
@@ -30,6 +30,7 @@ export interface CreateBotApiKeyCommandOutput extends CreateBotApiKeyOutput, __M
|
|
|
30
30
|
* // const { UsersClient, CreateBotApiKeyCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
31
|
* const client = new UsersClient(config);
|
|
32
32
|
* const input = { // CreateBotApiKeyInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
33
34
|
* botId: "STRING_VALUE", // required
|
|
34
35
|
* name: "STRING_VALUE",
|
|
35
36
|
* };
|
|
@@ -65,12 +66,13 @@ export interface CreateBotApiKeyCommandOutput extends CreateBotApiKeyOutput, __M
|
|
|
65
66
|
* // },
|
|
66
67
|
* // },
|
|
67
68
|
* // },
|
|
68
|
-
* // createdAt: "STRING_VALUE",
|
|
69
|
+
* // createdAt: "STRING_VALUE", // required
|
|
70
|
+
* // updated: "STRING_VALUE",
|
|
69
71
|
* // },
|
|
70
72
|
* // key: { // BotApiKey
|
|
71
73
|
* // secret: "STRING_VALUE", // required
|
|
72
74
|
* // name: "STRING_VALUE",
|
|
73
|
-
* // createdAt: "STRING_VALUE",
|
|
75
|
+
* // createdAt: "STRING_VALUE", // required
|
|
74
76
|
* // },
|
|
75
77
|
* // };
|
|
76
78
|
*
|
|
@@ -30,6 +30,7 @@ export interface CreateBotCommandOutput extends CreateBotOutput, __MetadataBeare
|
|
|
30
30
|
* // const { UsersClient, CreateBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
31
|
* const client = new UsersClient(config);
|
|
32
32
|
* const input = { // CreateBotInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
33
34
|
* name: "STRING_VALUE", // required
|
|
34
35
|
* visibility: { // BotVisibilitySettings
|
|
35
36
|
* search: true || false,
|
|
@@ -89,7 +90,8 @@ export interface CreateBotCommandOutput extends CreateBotOutput, __MetadataBeare
|
|
|
89
90
|
* // },
|
|
90
91
|
* // },
|
|
91
92
|
* // },
|
|
92
|
-
* // createdAt: "STRING_VALUE",
|
|
93
|
+
* // createdAt: "STRING_VALUE", // required
|
|
94
|
+
* // updated: "STRING_VALUE",
|
|
93
95
|
* // },
|
|
94
96
|
* // };
|
|
95
97
|
*
|
|
@@ -30,6 +30,7 @@ export interface DeleteBotApiKeyCommandOutput extends DeleteBotApiKeyOutput, __M
|
|
|
30
30
|
* // const { UsersClient, DeleteBotApiKeyCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
31
|
* const client = new UsersClient(config);
|
|
32
32
|
* const input = { // DeleteBotApiKeyInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
33
34
|
* botId: "STRING_VALUE", // required
|
|
34
35
|
* apiKeySecret: "STRING_VALUE", // required
|
|
35
36
|
* };
|
|
@@ -30,6 +30,7 @@ export interface DeleteBotCommandOutput extends DeleteBotOutput, __MetadataBeare
|
|
|
30
30
|
* // const { UsersClient, DeleteBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
31
|
* const client = new UsersClient(config);
|
|
32
32
|
* const input = { // DeleteBotInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
33
34
|
* botId: "STRING_VALUE", // required
|
|
34
35
|
* };
|
|
35
36
|
* const command = new DeleteBotCommand(input);
|
|
@@ -30,16 +30,17 @@ export interface ListBotApiKeysCommandOutput extends ListBotApiKeysOutput, __Met
|
|
|
30
30
|
* // const { UsersClient, ListBotApiKeysCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
31
|
* const client = new UsersClient(config);
|
|
32
32
|
* const input = { // ListBotApiKeysInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
33
34
|
* botId: "STRING_VALUE", // required
|
|
34
35
|
* };
|
|
35
36
|
* const command = new ListBotApiKeysCommand(input);
|
|
36
37
|
* const response = await client.send(command);
|
|
37
38
|
* // { // ListBotApiKeysOutput
|
|
38
|
-
* // keys: [ // BotApiKeysList
|
|
39
|
+
* // keys: [ // BotApiKeysList // required
|
|
39
40
|
* // { // BotApiKey
|
|
40
41
|
* // secret: "STRING_VALUE", // required
|
|
41
42
|
* // name: "STRING_VALUE",
|
|
42
|
-
* // createdAt: "STRING_VALUE",
|
|
43
|
+
* // createdAt: "STRING_VALUE", // required
|
|
43
44
|
* // },
|
|
44
45
|
* // ],
|
|
45
46
|
* // };
|
|
@@ -29,11 +29,13 @@ export interface ListBotsCommandOutput extends ListBotsOutput, __MetadataBearer
|
|
|
29
29
|
* import { UsersClient, ListBotsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
30
30
|
* // const { UsersClient, ListBotsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
31
|
* const client = new UsersClient(config);
|
|
32
|
-
* const input = {
|
|
32
|
+
* const input = { // ListBotsInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
34
|
+
* };
|
|
33
35
|
* const command = new ListBotsCommand(input);
|
|
34
36
|
* const response = await client.send(command);
|
|
35
37
|
* // { // ListBotsOutput
|
|
36
|
-
* // bots: [ // BotList
|
|
38
|
+
* // bots: [ // BotList // required
|
|
37
39
|
* // { // Bot
|
|
38
40
|
* // id: "STRING_VALUE", // required
|
|
39
41
|
* // name: "STRING_VALUE", // required
|
|
@@ -63,7 +65,8 @@ export interface ListBotsCommandOutput extends ListBotsOutput, __MetadataBearer
|
|
|
63
65
|
* // },
|
|
64
66
|
* // },
|
|
65
67
|
* // },
|
|
66
|
-
* // createdAt: "STRING_VALUE",
|
|
68
|
+
* // createdAt: "STRING_VALUE", // required
|
|
69
|
+
* // updated: "STRING_VALUE",
|
|
67
70
|
* // },
|
|
68
71
|
* // ],
|
|
69
72
|
* // };
|
|
@@ -30,6 +30,7 @@ export interface UpdateBotCommandOutput extends UpdateBotOutput, __MetadataBeare
|
|
|
30
30
|
* // const { UsersClient, UpdateBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
31
|
* const client = new UsersClient(config);
|
|
32
32
|
* const input = { // UpdateBotInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
33
34
|
* botId: "STRING_VALUE", // required
|
|
34
35
|
* name: "STRING_VALUE", // required
|
|
35
36
|
* visibility: { // BotVisibilitySettings
|
|
@@ -90,7 +91,8 @@ export interface UpdateBotCommandOutput extends UpdateBotOutput, __MetadataBeare
|
|
|
90
91
|
* // },
|
|
91
92
|
* // },
|
|
92
93
|
* // },
|
|
93
|
-
* // createdAt: "STRING_VALUE",
|
|
94
|
+
* // createdAt: "STRING_VALUE", // required
|
|
95
|
+
* // updated: "STRING_VALUE",
|
|
94
96
|
* // },
|
|
95
97
|
* // };
|
|
96
98
|
*
|
|
@@ -148,7 +148,8 @@ export interface Bot {
|
|
|
148
148
|
secret: string;
|
|
149
149
|
visibility?: BotVisibilitySettings;
|
|
150
150
|
callback?: BotCallbackSettings;
|
|
151
|
-
createdAt
|
|
151
|
+
createdAt: string;
|
|
152
|
+
updated?: string;
|
|
152
153
|
}
|
|
153
154
|
/**
|
|
154
155
|
* @public
|
|
@@ -156,7 +157,7 @@ export interface Bot {
|
|
|
156
157
|
export interface BotApiKey {
|
|
157
158
|
secret: string;
|
|
158
159
|
name?: string;
|
|
159
|
-
createdAt
|
|
160
|
+
createdAt: string;
|
|
160
161
|
}
|
|
161
162
|
/**
|
|
162
163
|
* @public
|
|
@@ -195,6 +196,7 @@ export declare class BotSecretKeyNotValidException extends __BaseException {
|
|
|
195
196
|
* @public
|
|
196
197
|
*/
|
|
197
198
|
export interface CreateBotInput {
|
|
199
|
+
company?: string;
|
|
198
200
|
name: string;
|
|
199
201
|
visibility?: BotVisibilitySettings;
|
|
200
202
|
callback?: BotCallbackSettings;
|
|
@@ -203,12 +205,13 @@ export interface CreateBotInput {
|
|
|
203
205
|
* @public
|
|
204
206
|
*/
|
|
205
207
|
export interface CreateBotOutput {
|
|
206
|
-
bot
|
|
208
|
+
bot: Bot;
|
|
207
209
|
}
|
|
208
210
|
/**
|
|
209
211
|
* @public
|
|
210
212
|
*/
|
|
211
213
|
export interface CreateBotApiKeyInput {
|
|
214
|
+
company?: string;
|
|
212
215
|
botId: string;
|
|
213
216
|
name?: string;
|
|
214
217
|
}
|
|
@@ -216,13 +219,14 @@ export interface CreateBotApiKeyInput {
|
|
|
216
219
|
* @public
|
|
217
220
|
*/
|
|
218
221
|
export interface CreateBotApiKeyOutput {
|
|
219
|
-
bot
|
|
220
|
-
key
|
|
222
|
+
bot: Bot;
|
|
223
|
+
key: BotApiKey;
|
|
221
224
|
}
|
|
222
225
|
/**
|
|
223
226
|
* @public
|
|
224
227
|
*/
|
|
225
228
|
export interface DeleteBotInput {
|
|
229
|
+
company?: string;
|
|
226
230
|
botId: string;
|
|
227
231
|
}
|
|
228
232
|
/**
|
|
@@ -234,6 +238,7 @@ export interface DeleteBotOutput {
|
|
|
234
238
|
* @public
|
|
235
239
|
*/
|
|
236
240
|
export interface DeleteBotApiKeyInput {
|
|
241
|
+
company?: string;
|
|
237
242
|
botId: string;
|
|
238
243
|
apiKeySecret: string;
|
|
239
244
|
}
|
|
@@ -246,29 +251,32 @@ export interface DeleteBotApiKeyOutput {
|
|
|
246
251
|
* @public
|
|
247
252
|
*/
|
|
248
253
|
export interface ListBotApiKeysInput {
|
|
254
|
+
company?: string;
|
|
249
255
|
botId: string;
|
|
250
256
|
}
|
|
251
257
|
/**
|
|
252
258
|
* @public
|
|
253
259
|
*/
|
|
254
260
|
export interface ListBotApiKeysOutput {
|
|
255
|
-
keys
|
|
261
|
+
keys: (BotApiKey)[];
|
|
256
262
|
}
|
|
257
263
|
/**
|
|
258
264
|
* @public
|
|
259
265
|
*/
|
|
260
266
|
export interface ListBotsInput {
|
|
267
|
+
company?: string;
|
|
261
268
|
}
|
|
262
269
|
/**
|
|
263
270
|
* @public
|
|
264
271
|
*/
|
|
265
272
|
export interface ListBotsOutput {
|
|
266
|
-
bots
|
|
273
|
+
bots: (Bot)[];
|
|
267
274
|
}
|
|
268
275
|
/**
|
|
269
276
|
* @public
|
|
270
277
|
*/
|
|
271
278
|
export interface UpdateBotInput {
|
|
279
|
+
company?: string;
|
|
272
280
|
botId: string;
|
|
273
281
|
name: string;
|
|
274
282
|
visibility?: BotVisibilitySettings;
|
|
@@ -278,7 +286,7 @@ export interface UpdateBotInput {
|
|
|
278
286
|
* @public
|
|
279
287
|
*/
|
|
280
288
|
export interface UpdateBotOutput {
|
|
281
|
-
bot
|
|
289
|
+
bot: Bot;
|
|
282
290
|
}
|
|
283
291
|
/**
|
|
284
292
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-users-client",
|
|
3
3
|
"description": "@wildix/xbees-users-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|