twilio-taskrouter 0.8.2 → 0.8.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.
@@ -30,14 +30,21 @@
30
30
  <li class="dropdown">
31
31
  <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
32
32
  <ul class="dropdown-menu ">
33
- <li><a href="Activity.html">Activity</a></li><li><a href="Channel.html">Channel</a></li><li><a href="IncomingTransfer.html">IncomingTransfer</a></li><li><a href="OutgoingTransfer.html">OutgoingTransfer</a></li><li><a href="Reservation.html">Reservation</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskQueue.html">TaskQueue</a></li><li><a href="Transfers.html">Transfers</a></li><li><a href="Worker.html">Worker</a></li><li><a href="Workspace.html">Workspace</a></li>
33
+ <li><a href="Activity.html">Activity</a></li><li><a href="Channel.html">Channel</a></li><li><a href="IncomingTransfer.html">IncomingTransfer</a></li><li><a href="OutgoingTransfer.html">OutgoingTransfer</a></li><li><a href="Reservation.html">Reservation</a></li><li><a href="Supervisor.html">Supervisor</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskQueue.html">TaskQueue</a></li><li><a href="Transfers.html">Transfers</a></li><li><a href="Worker.html">Worker</a></li><li><a href="Workspace.html">Workspace</a></li>
34
34
  </ul>
35
35
  </li>
36
36
 
37
37
  <li class="dropdown">
38
38
  <a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
39
39
  <ul class="dropdown-menu ">
40
- <li><a href="Channel.html#event:availabilityUpdated">Channel#event:availabilityUpdated</a></li><li><a href="Channel.html#event:capacityUpdated">Channel#event:capacityUpdated</a></li><li><a href="OutgoingTransfer.html#event:attemptFailed">OutgoingTransfer#event:attemptFailed</a></li><li><a href="OutgoingTransfer.html#event:canceled">OutgoingTransfer#event:canceled</a></li><li><a href="OutgoingTransfer.html#event:completed">OutgoingTransfer#event:completed</a></li><li><a href="OutgoingTransfer.html#event:failed">OutgoingTransfer#event:failed</a></li><li><a href="Reservation.html#event:accepted">Reservation#event:accepted</a></li><li><a href="Reservation.html#event:canceled">Reservation#event:canceled</a></li><li><a href="Reservation.html#event:completed">Reservation#event:completed</a></li><li><a href="Reservation.html#event:rejected">Reservation#event:rejected</a></li><li><a href="Reservation.html#event:rescinded">Reservation#event:rescinded</a></li><li><a href="Reservation.html#event:timeout">Reservation#event:timeout</a></li><li><a href="Reservation.html#event:wrapup">Reservation#event:wrapup</a></li><li><a href="Task.html#event:canceled">Task#event:canceled</a></li><li><a href="Task.html#event:completed">Task#event:completed</a></li><li><a href="Task.html#event:transferInitiated">Task#event:transferInitiated</a></li><li><a href="Task.html#event:updated">Task#event:updated</a></li><li><a href="Task.html#event:wrapup">Task#event:wrapup</a></li><li><a href="Worker.html#event:activityUpdated">Worker#event:activityUpdated</a></li><li><a href="Worker.html#event:attributesUpdated">Worker#event:attributesUpdated</a></li><li><a href="Worker.html#event:disconnected">Worker#event:disconnected</a></li><li><a href="Worker.html#event:error">Worker#event:error</a></li><li><a href="Worker.html#event:ready">Worker#event:ready</a></li><li><a href="Worker.html#event:reservationCreated">Worker#event:reservationCreated</a></li><li><a href="Worker.html#event:reservationFailed">Worker#event:reservationFailed</a></li><li><a href="Worker.html#event:tokenExpired">Worker#event:tokenExpired</a></li><li><a href="Worker.html#event:tokenUpdated">Worker#event:tokenUpdated</a></li>
40
+ <li><a href="Channel.html#event:availabilityUpdated">Channel#event:availabilityUpdated</a></li><li><a href="Channel.html#event:capacityUpdated">Channel#event:capacityUpdated</a></li><li><a href="OutgoingTransfer.html#event:attemptFailed">OutgoingTransfer#event:attemptFailed</a></li><li><a href="OutgoingTransfer.html#event:canceled">OutgoingTransfer#event:canceled</a></li><li><a href="OutgoingTransfer.html#event:completed">OutgoingTransfer#event:completed</a></li><li><a href="OutgoingTransfer.html#event:failed">OutgoingTransfer#event:failed</a></li><li><a href="Reservation.html#event:accepted">Reservation#event:accepted</a></li><li><a href="Reservation.html#event:canceled">Reservation#event:canceled</a></li><li><a href="Reservation.html#event:completed">Reservation#event:completed</a></li><li><a href="Reservation.html#event:rejected">Reservation#event:rejected</a></li><li><a href="Reservation.html#event:rescinded">Reservation#event:rescinded</a></li><li><a href="Reservation.html#event:timeout">Reservation#event:timeout</a></li><li><a href="Reservation.html#event:wrapup">Reservation#event:wrapup</a></li><li><a href="Supervisor.html#event:activityUpdated">Supervisor#event:activityUpdated</a></li><li><a href="Supervisor.html#event:attributesUpdated">Supervisor#event:attributesUpdated</a></li><li><a href="Supervisor.html#event:disconnected">Supervisor#event:disconnected</a></li><li><a href="Supervisor.html#event:error">Supervisor#event:error</a></li><li><a href="Supervisor.html#event:monitor">Supervisor#event:monitor</a></li><li><a href="Supervisor.html#event:ready">Supervisor#event:ready</a></li><li><a href="Supervisor.html#event:reservationCreated">Supervisor#event:reservationCreated</a></li><li><a href="Supervisor.html#event:reservationFailed">Supervisor#event:reservationFailed</a></li><li><a href="Supervisor.html#event:tokenExpired">Supervisor#event:tokenExpired</a></li><li><a href="Supervisor.html#event:tokenUpdated">Supervisor#event:tokenUpdated</a></li><li><a href="Task.html#event:canceled">Task#event:canceled</a></li><li><a href="Task.html#event:completed">Task#event:completed</a></li><li><a href="Task.html#event:transferAttemptFailed">Task#event:transferAttemptFailed</a></li><li><a href="Task.html#event:transferCanceled">Task#event:transferCanceled</a></li><li><a href="Task.html#event:transferCompleted">Task#event:transferCompleted</a></li><li><a href="Task.html#event:transferFailed">Task#event:transferFailed</a></li><li><a href="Task.html#event:transferInitiated">Task#event:transferInitiated</a></li><li><a href="Task.html#event:updated">Task#event:updated</a></li><li><a href="Task.html#event:wrapup">Task#event:wrapup</a></li><li><a href="Worker.html#event:activityUpdated">Worker#event:activityUpdated</a></li><li><a href="Worker.html#event:attributesUpdated">Worker#event:attributesUpdated</a></li><li><a href="Worker.html#event:disconnected">Worker#event:disconnected</a></li><li><a href="Worker.html#event:error">Worker#event:error</a></li><li><a href="Worker.html#event:ready">Worker#event:ready</a></li><li><a href="Worker.html#event:reservationCreated">Worker#event:reservationCreated</a></li><li><a href="Worker.html#event:reservationFailed">Worker#event:reservationFailed</a></li><li><a href="Worker.html#event:tokenExpired">Worker#event:tokenExpired</a></li><li><a href="Worker.html#event:tokenUpdated">Worker#event:tokenUpdated</a></li>
41
+ </ul>
42
+ </li>
43
+
44
+ <li class="dropdown">
45
+ <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
46
+ <ul class="dropdown-menu ">
47
+ <li><a href="global.html">Global</a></li>
41
48
  </ul>
42
49
  </li>
43
50
 
@@ -90,7 +97,7 @@
90
97
 
91
98
  <hr>
92
99
  <dt>
93
- <h4 class="name" id="Worker"><span class="type-signature"></span>new <span style="color: #999">Twilio.TaskRouter.</span>Worker(token [, options])</h4>
100
+ <h4 class="name" id="Worker"><span class="type-signature"></span>new <span style="color: #999">Twilio.TaskRouter.</span>Worker(token [, options] [, deps])</h4>
94
101
 
95
102
 
96
103
  </dt>
@@ -169,7 +176,41 @@
169
176
  <td class="type">
170
177
 
171
178
 
172
- <span class="param-type"><a href="Worker.html#.Options">Worker.Options</a></span>
179
+ <span class="param-type"><a href="global.html#WorkerOptions">WorkerOptions</a></span>
180
+
181
+
182
+
183
+
184
+ </td>
185
+
186
+
187
+ <td class="attributes">
188
+
189
+ &lt;optional&gt;<br>
190
+
191
+
192
+
193
+
194
+
195
+ </td>
196
+
197
+
198
+
199
+
200
+ <td class="description last"></td>
201
+ </tr>
202
+
203
+
204
+
205
+ <tr>
206
+
207
+ <td class="name"><code>deps</code></td>
208
+
209
+
210
+ <td class="type">
211
+
212
+
213
+ <span class="param-type"><a href="global.html#WorkerDeps">WorkerDeps</a></span>
173
214
 
174
215
 
175
216
 
@@ -355,7 +396,7 @@
355
396
  <td class="type">
356
397
 
357
398
 
358
- <span class="param-type">Object</span>
399
+ <span class="param-type">Record.&lt;any, any&gt;</span>
359
400
 
360
401
 
361
402
 
@@ -810,6 +851,15 @@
810
851
  </div>
811
852
 
812
853
 
854
+ <h3 class="subsection-title">Extends</h3>
855
+
856
+
857
+
858
+
859
+ <ul>
860
+ <li>EventEmitter</li>
861
+ </ul>
862
+
813
863
 
814
864
 
815
865
 
@@ -822,219 +872,141 @@
822
872
 
823
873
 
824
874
 
825
- <h3 class="subsection-title">Methods</h3>
875
+ <h3 class="subsection-title">Members</h3>
826
876
 
827
877
  <dl>
828
878
 
829
879
  <hr>
830
- <dt>
831
- <h4 class="name" id="createTask"><span class="type-signature"></span>createTask(to, from, workflowSid, taskQueueSid [, options])</h4>
832
-
880
+ <dt class="name" id="accountSid">
881
+ <h4 id="accountSid"><span class="type-signature">&lt;readonly&gt; </span>accountSid<span class="type-signature"> :string</span></h4>
882
+
833
883
 
834
884
  </dt>
835
885
  <dd>
836
-
837
-
838
- <div class="description">
839
- <p>Create a Task</p>
840
- </div>
841
886
 
842
887
 
843
888
 
889
+ <h5>Type:</h5>
890
+ <ul>
891
+ <li>
892
+
893
+ <span class="param-type">string</span>
844
894
 
895
+
896
+
897
+ </li>
898
+ </ul>
845
899
 
846
900
 
847
901
 
902
+ <dl class="details">
848
903
 
849
- <h5>Parameters:</h5>
850
-
851
-
852
- <table class="params table table-striped">
853
- <thead>
854
- <tr>
855
-
856
- <th>Name</th>
857
-
858
-
859
- <th>Type</th>
860
904
 
861
-
862
- <th>Argument</th>
863
-
905
+
864
906
 
865
-
907
+
866
908
 
867
- <th class="last">Description</th>
868
- </tr>
869
- </thead>
909
+
870
910
 
871
- <tbody>
872
911
 
873
912
 
874
- <tr>
875
-
876
- <td class="name"><code>to</code></td>
877
-
878
-
879
- <td class="type">
880
-
881
-
882
- <span class="param-type">string</span>
883
-
884
-
885
-
886
-
887
- </td>
888
-
889
-
890
- <td class="attributes">
891
-
892
-
893
-
913
+
894
914
 
895
-
896
- </td>
897
-
915
+
898
916
 
899
-
917
+
900
918
 
901
- <td class="description last"><p>The contact uri of the customer. Stored in the <a href="Task.html">Task</a>'s attributes as "outbound_to"</p></td>
902
- </tr>
919
+
903
920
 
904
-
921
+
905
922
 
906
- <tr>
907
-
908
- <td class="name"><code>from</code></td>
909
-
923
+
910
924
 
911
- <td class="type">
912
-
913
-
914
- <span class="param-type">string</span>
925
+
915
926
 
927
+
916
928
 
917
929
 
918
-
919
- </td>
920
930
 
921
-
922
- <td class="attributes">
923
-
931
+
924
932
 
925
-
933
+
926
934
 
927
-
928
- </td>
929
-
935
+
930
936
 
931
-
937
+
938
+ </dl>
932
939
 
933
- <td class="description last"><p>The contact uri of the <a href="Worker.html">Worker</a>. Stored in the <a href="Task.html">Task</a>'s attributes as "from"</p></td>
934
- </tr>
935
940
 
936
941
 
942
+ </dd>
937
943
 
938
- <tr>
939
-
940
- <td class="name"><code>workflowSid</code></td>
941
-
942
-
943
- <td class="type">
944
+
944
945
 
945
-
946
- <span class="param-type">string</span>
947
-
948
-
946
+ <hr>
947
+ <dt class="name" id="activities">
948
+ <h4 id="activities"><span class="type-signature"></span>activities<span class="type-signature"></span></h4>
949
949
 
950
-
951
- </td>
950
+
951
+ </dt>
952
+ <dd>
953
+
952
954
 
953
-
954
- <td class="attributes">
955
-
955
+
956
956
 
957
-
957
+
958
+ <dl class="details">
959
+
958
960
 
959
-
960
- </td>
961
-
961
+
962
962
 
963
-
963
+
964
964
 
965
- <td class="description last"><p>The Sid of the Workflow this Task should belong to</p></td>
966
- </tr>
965
+
967
966
 
968
967
 
969
968
 
970
- <tr>
971
-
972
- <td class="name"><code>taskQueueSid</code></td>
973
-
974
-
975
- <td class="type">
976
-
977
-
978
- <span class="param-type">string</span>
979
-
980
-
969
+
981
970
 
982
-
983
- </td>
971
+
984
972
 
985
-
986
- <td class="attributes">
987
-
973
+
988
974
 
989
-
975
+
990
976
 
991
-
992
- </td>
993
-
977
+
994
978
 
995
-
979
+
996
980
 
997
- <td class="description last"><p>The Sid of the <a href="TaskQueue.html">TaskQueue</a> this Task should belong to, used for reporting
998
- purposes only</p></td>
999
- </tr>
981
+
1000
982
 
1001
-
983
+
1002
984
 
1003
- <tr>
1004
-
1005
- <td class="name"><code>options</code></td>
1006
-
1007
985
 
1008
- <td class="type">
1009
-
1010
-
1011
- <span class="param-type"><a href="Worker.html#.TaskOptions">Worker.TaskOptions</a></span>
1012
986
 
987
+
1013
988
 
989
+
1014
990
 
1015
-
1016
- </td>
991
+
1017
992
 
1018
-
1019
- <td class="attributes">
1020
-
1021
- &lt;optional&gt;<br>
1022
-
993
+
994
+ </dl>
1023
995
 
1024
-
1025
996
 
1026
-
1027
- </td>
1028
-
997
+
998
+ </dd>
1029
999
 
1000
+
1030
1001
 
1031
-
1032
- <td class="description last"></td>
1033
- </tr>
1002
+ <hr>
1003
+ <dt class="name" id="activity">
1004
+ <h4 id="activity"><span class="type-signature">&lt;readonly&gt; </span>activity<span class="type-signature"></span></h4>
1034
1005
 
1035
1006
 
1036
- </tbody>
1037
- </table>
1007
+ </dt>
1008
+ <dd>
1009
+
1038
1010
 
1039
1011
 
1040
1012
 
@@ -1079,68 +1051,30 @@ purposes only</p></td>
1079
1051
 
1080
1052
 
1081
1053
 
1054
+ </dd>
1082
1055
 
1083
-
1056
+
1057
+
1058
+ <hr>
1059
+ <dt class="name" id="attributes">
1060
+ <h4 id="attributes"><span class="type-signature">&lt;readonly&gt; </span>attributes<span class="type-signature"> :Record.&lt;any, any&gt;</span></h4>
1084
1061
 
1085
1062
 
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
- <h5>Returns:</h5>
1093
-
1094
-
1095
- <div class="param-desc">
1096
- <ul>
1097
- <li>Rejected if unable to create a Task on behalf of the <a href="Worker.html">Worker</a>. Returns the
1098
- TaskSid of the created Task.</li>
1099
- </ul>
1100
- </div>
1101
-
1102
-
1103
-
1104
- <dl>
1105
- <dt>
1106
- Type
1107
- </dt>
1108
- <dd>
1109
-
1110
- <span class="param-type">Promise.&lt;String&gt;</span>
1111
-
1112
-
1113
-
1114
- </dd>
1115
- </dl>
1116
-
1117
-
1118
-
1119
-
1120
-
1121
- </dd>
1122
-
1123
-
1124
-
1125
- <hr>
1126
- <dt>
1127
- <h4 class="name" id="disconnect"><span class="type-signature"></span>disconnect()</h4>
1128
-
1129
-
1130
1063
  </dt>
1131
1064
  <dd>
1132
-
1133
-
1134
- <div class="description">
1135
- <p>Gracefully disconnect the client.</p>
1136
- </div>
1137
1065
 
1138
1066
 
1139
1067
 
1068
+ <h5>Type:</h5>
1069
+ <ul>
1070
+ <li>
1071
+
1072
+ <span class="param-type">Record.&lt;any, any&gt;</span>
1140
1073
 
1141
-
1142
1074
 
1143
-
1075
+
1076
+ </li>
1077
+ </ul>
1144
1078
 
1145
1079
 
1146
1080
 
@@ -1184,36 +1118,60 @@ TaskSid of the created Task.</li>
1184
1118
 
1185
1119
 
1186
1120
 
1121
+ </dd>
1122
+
1123
+
1124
+
1125
+ <hr>
1126
+ <dt class="name" id="channels">
1127
+ <h4 id="channels"><span class="type-signature"></span>channels<span class="type-signature"></span></h4>
1128
+
1129
+
1130
+ </dt>
1131
+ <dd>
1132
+
1187
1133
 
1188
1134
 
1189
1135
 
1190
1136
 
1137
+ <dl class="details">
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1191
1145
 
1192
1146
 
1193
1147
 
1194
1148
 
1195
1149
 
1196
1150
 
1197
- <h5>Returns:</h5>
1151
+
1198
1152
 
1199
-
1200
1153
 
1154
+
1201
1155
 
1202
- <dl>
1203
- <dt>
1204
- Type
1205
- </dt>
1206
- <dd>
1207
-
1208
- <span class="param-type">void</span>
1156
+
1157
+
1158
+
1209
1159
 
1160
+
1210
1161
 
1162
+
1211
1163
 
1212
- </dd>
1213
- </dl>
1214
1164
 
1215
1165
 
1216
-
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+ </dl>
1174
+
1217
1175
 
1218
1176
 
1219
1177
  </dd>
@@ -1221,24 +1179,25 @@ TaskSid of the created Task.</li>
1221
1179
 
1222
1180
 
1223
1181
  <hr>
1224
- <dt>
1225
- <h4 class="name" id="fetchLatestVersion"><span class="type-signature"></span>fetchLatestVersion()</h4>
1226
-
1182
+ <dt class="name" id="dateActivityChanged">
1183
+ <h4 id="dateActivityChanged"><span class="type-signature">&lt;readonly&gt; </span>dateActivityChanged<span class="type-signature"> :Date</span></h4>
1184
+
1227
1185
 
1228
1186
  </dt>
1229
1187
  <dd>
1230
-
1231
-
1232
- <div class="description">
1233
- <p>Fetch the last version of this <a href="Worker.html">Worker</a></p>
1234
- </div>
1235
1188
 
1236
1189
 
1237
1190
 
1191
+ <h5>Type:</h5>
1192
+ <ul>
1193
+ <li>
1194
+
1195
+ <span class="param-type">Date</span>
1238
1196
 
1239
-
1240
1197
 
1241
-
1198
+
1199
+ </li>
1200
+ </ul>
1242
1201
 
1243
1202
 
1244
1203
 
@@ -1282,111 +1241,97 @@ TaskSid of the created Task.</li>
1282
1241
 
1283
1242
 
1284
1243
 
1244
+ </dd>
1285
1245
 
1286
-
1287
-
1288
-
1246
+
1247
+
1248
+ <hr>
1249
+ <dt class="name" id="dateCreated">
1250
+ <h4 id="dateCreated"><span class="type-signature">&lt;readonly&gt; </span>dateCreated<span class="type-signature"> :Date</span></h4>
1289
1251
 
1290
1252
 
1291
-
1253
+ </dt>
1254
+ <dd>
1292
1255
 
1293
1256
 
1294
1257
 
1295
- <h5>Returns:</h5>
1296
-
1297
-
1298
-
1258
+ <h5>Type:</h5>
1259
+ <ul>
1260
+ <li>
1261
+
1262
+ <span class="param-type">Date</span>
1299
1263
 
1300
- <dl>
1301
- <dt>
1302
- Type
1303
- </dt>
1304
- <dd>
1305
-
1306
- <span class="param-type">Promise.&lt;<a href="Worker.html">Worker</a>&gt;</span>
1307
1264
 
1308
1265
 
1266
+ </li>
1267
+ </ul>
1268
+
1309
1269
 
1310
- </dd>
1311
- </dl>
1270
+
1271
+ <dl class="details">
1272
+
1312
1273
 
1274
+
1313
1275
 
1314
-
1276
+
1315
1277
 
1316
-
1317
- </dd>
1278
+
1318
1279
 
1319
-
1320
-
1321
- <hr>
1322
- <dt>
1323
- <h4 class="name" id="setAttributes"><span class="type-signature"></span>setAttributes(attributes)</h4>
1324
1280
 
1325
-
1326
- </dt>
1327
- <dd>
1328
1281
 
1329
1282
 
1330
- <div class="description">
1331
- <p>Update attributes</p>
1332
- </div>
1333
-
1334
1283
 
1335
1284
 
1336
1285
 
1337
1286
 
1338
1287
 
1339
-
1340
-
1341
- <h5>Parameters:</h5>
1342
-
1288
+
1343
1289
 
1344
- <table class="params table table-striped">
1345
- <thead>
1346
- <tr>
1347
-
1348
- <th>Name</th>
1349
-
1290
+
1350
1291
 
1351
- <th>Type</th>
1292
+
1352
1293
 
1353
-
1294
+
1354
1295
 
1355
-
1296
+
1356
1297
 
1357
- <th class="last">Description</th>
1358
- </tr>
1359
- </thead>
1360
1298
 
1361
- <tbody>
1362
-
1363
1299
 
1364
- <tr>
1365
-
1366
- <td class="name"><code>attributes</code></td>
1367
-
1300
+
1368
1301
 
1369
- <td class="type">
1370
-
1371
-
1372
- <span class="param-type">Object</span>
1302
+
1373
1303
 
1304
+
1374
1305
 
1306
+
1307
+ </dl>
1375
1308
 
1376
-
1377
- </td>
1378
1309
 
1379
-
1310
+
1311
+ </dd>
1380
1312
 
1313
+
1381
1314
 
1315
+ <hr>
1316
+ <dt class="name" id="dateStatusChanged">
1317
+ <h4 id="dateStatusChanged"><span class="type-signature">&lt;readonly&gt; </span>dateStatusChanged<span class="type-signature"> :Date</span></h4>
1382
1318
 
1383
- <td class="description last"><p>A JSON describing the Worker's attributes</p></td>
1384
- </tr>
1319
+
1320
+ </dt>
1321
+ <dd>
1322
+
1385
1323
 
1386
1324
 
1387
- </tbody>
1388
- </table>
1325
+ <h5>Type:</h5>
1326
+ <ul>
1327
+ <li>
1328
+
1329
+ <span class="param-type">Date</span>
1330
+
1389
1331
 
1332
+
1333
+ </li>
1334
+ </ul>
1390
1335
 
1391
1336
 
1392
1337
 
@@ -1430,27 +1375,1157 @@ TaskSid of the created Task.</li>
1430
1375
 
1431
1376
 
1432
1377
 
1378
+ </dd>
1433
1379
 
1434
-
1380
+
1381
+
1382
+ <hr>
1383
+ <dt class="name" id="dateUpdated">
1384
+ <h4 id="dateUpdated"><span class="type-signature">&lt;readonly&gt; </span>dateUpdated<span class="type-signature"> :Date</span></h4>
1435
1385
 
1436
1386
 
1387
+ </dt>
1388
+ <dd>
1389
+
1437
1390
 
1438
1391
 
1392
+ <h5>Type:</h5>
1393
+ <ul>
1394
+ <li>
1395
+
1396
+ <span class="param-type">Date</span>
1397
+
1398
+
1439
1399
 
1400
+ </li>
1401
+ </ul>
1440
1402
 
1441
1403
 
1442
1404
 
1443
- <h5>Returns:</h5>
1405
+ <dl class="details">
1444
1406
 
1445
-
1446
- <div class="param-desc">
1447
- <ul>
1448
- <li>Rejected if the attributes cannot be set</li>
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+ </dl>
1442
+
1443
+
1444
+
1445
+ </dd>
1446
+
1447
+
1448
+
1449
+ <hr>
1450
+ <dt class="name" id="friendlyName">
1451
+ <h4 id="friendlyName"><span class="type-signature">&lt;readonly&gt; </span>friendlyName<span class="type-signature"> :string</span></h4>
1452
+
1453
+
1454
+ </dt>
1455
+ <dd>
1456
+
1457
+
1458
+
1459
+ <h5>Type:</h5>
1460
+ <ul>
1461
+ <li>
1462
+
1463
+ <span class="param-type">string</span>
1464
+
1465
+
1466
+
1467
+ </li>
1468
+ </ul>
1469
+
1470
+
1471
+
1472
+ <dl class="details">
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+ </dl>
1509
+
1510
+
1511
+
1512
+ </dd>
1513
+
1514
+
1515
+
1516
+ <hr>
1517
+ <dt class="name" id="name">
1518
+ <h4 id="name"><span class="type-signature">&lt;readonly&gt; </span>name<span class="type-signature"> :string</span></h4>
1519
+
1520
+
1521
+ </dt>
1522
+ <dd>
1523
+
1524
+
1525
+
1526
+ <h5>Type:</h5>
1527
+ <ul>
1528
+ <li>
1529
+
1530
+ <span class="param-type">string</span>
1531
+
1532
+
1533
+
1534
+ </li>
1535
+ </ul>
1536
+
1537
+
1538
+
1539
+ <dl class="details">
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+ </dl>
1576
+
1577
+
1578
+
1579
+ </dd>
1580
+
1581
+
1582
+
1583
+ <hr>
1584
+ <dt class="name" id="reservations">
1585
+ <h4 id="reservations"><span class="type-signature"></span>reservations<span class="type-signature"></span></h4>
1586
+
1587
+
1588
+ </dt>
1589
+ <dd>
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+ <dl class="details">
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+ </dl>
1632
+
1633
+
1634
+
1635
+ </dd>
1636
+
1637
+
1638
+
1639
+ <hr>
1640
+ <dt class="name" id="sid">
1641
+ <h4 id="sid"><span class="type-signature">&lt;readonly&gt; </span>sid<span class="type-signature"> :string</span></h4>
1642
+
1643
+
1644
+ </dt>
1645
+ <dd>
1646
+
1647
+
1648
+
1649
+ <h5>Type:</h5>
1650
+ <ul>
1651
+ <li>
1652
+
1653
+ <span class="param-type">string</span>
1654
+
1655
+
1656
+
1657
+ </li>
1658
+ </ul>
1659
+
1660
+
1661
+
1662
+ <dl class="details">
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+ </dl>
1699
+
1700
+
1701
+
1702
+ </dd>
1703
+
1704
+
1705
+
1706
+ <hr>
1707
+ <dt class="name" id="version">
1708
+ <h4 id="version"><span class="type-signature"></span>version<span class="type-signature"> :string</span></h4>
1709
+
1710
+
1711
+ </dt>
1712
+ <dd>
1713
+
1714
+
1715
+
1716
+ <h5>Type:</h5>
1717
+ <ul>
1718
+ <li>
1719
+
1720
+ <span class="param-type">string</span>
1721
+
1722
+
1723
+
1724
+ </li>
1725
+ </ul>
1726
+
1727
+
1728
+
1729
+ <dl class="details">
1730
+
1731
+
1732
+
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+
1741
+
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+ </dl>
1766
+
1767
+
1768
+
1769
+ </dd>
1770
+
1771
+
1772
+
1773
+ <hr>
1774
+ <dt class="name" id="workerActivitySid">
1775
+ <h4 id="workerActivitySid"><span class="type-signature">&lt;readonly&gt; </span>workerActivitySid<span class="type-signature"> :string</span></h4>
1776
+
1777
+
1778
+ </dt>
1779
+ <dd>
1780
+
1781
+
1782
+
1783
+ <h5>Type:</h5>
1784
+ <ul>
1785
+ <li>
1786
+
1787
+ <span class="param-type">string</span>
1788
+
1789
+
1790
+
1791
+ </li>
1792
+ </ul>
1793
+
1794
+
1795
+
1796
+ <dl class="details">
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+
1812
+
1813
+
1814
+
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+ </dl>
1833
+
1834
+
1835
+
1836
+ </dd>
1837
+
1838
+
1839
+
1840
+ <hr>
1841
+ <dt class="name" id="workerSid">
1842
+ <h4 id="workerSid"><span class="type-signature">&lt;readonly&gt; </span>workerSid<span class="type-signature"> :string</span></h4>
1843
+
1844
+
1845
+ </dt>
1846
+ <dd>
1847
+
1848
+
1849
+
1850
+ <h5>Type:</h5>
1851
+ <ul>
1852
+ <li>
1853
+
1854
+ <span class="param-type">string</span>
1855
+
1856
+
1857
+
1858
+ </li>
1859
+ </ul>
1860
+
1861
+
1862
+
1863
+ <dl class="details">
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
+
1896
+
1897
+
1898
+
1899
+ </dl>
1900
+
1901
+
1902
+
1903
+ </dd>
1904
+
1905
+
1906
+
1907
+ <hr>
1908
+ <dt class="name" id="workspaceSid">
1909
+ <h4 id="workspaceSid"><span class="type-signature">&lt;readonly&gt; </span>workspaceSid<span class="type-signature"> :string</span></h4>
1910
+
1911
+
1912
+ </dt>
1913
+ <dd>
1914
+
1915
+
1916
+
1917
+ <h5>Type:</h5>
1918
+ <ul>
1919
+ <li>
1920
+
1921
+ <span class="param-type">string</span>
1922
+
1923
+
1924
+
1925
+ </li>
1926
+ </ul>
1927
+
1928
+
1929
+
1930
+ <dl class="details">
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+ </dl>
1967
+
1968
+
1969
+
1970
+ </dd>
1971
+
1972
+ </dl>
1973
+
1974
+
1975
+
1976
+ <h3 class="subsection-title">Methods</h3>
1977
+
1978
+ <dl>
1979
+
1980
+ <hr>
1981
+ <dt>
1982
+ <h4 class="name" id="_bumpVersion"><span class="type-signature"></span>_bumpVersion()</h4>
1983
+
1984
+
1985
+ </dt>
1986
+ <dd>
1987
+
1988
+
1989
+ <div class="description">
1990
+ <p>bumps the worker version</p>
1991
+ </div>
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+ <dl class="details">
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+
2029
+
2030
+
2031
+
2032
+
2033
+
2034
+
2035
+
2036
+
2037
+
2038
+ </dl>
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+
2045
+
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+
2053
+
2054
+ </dd>
2055
+
2056
+
2057
+
2058
+ <hr>
2059
+ <dt>
2060
+ <h4 class="name" id="createTask"><span class="type-signature"></span>createTask(to, from, workflowSid, taskQueueSid [, options])</h4>
2061
+
2062
+
2063
+ </dt>
2064
+ <dd>
2065
+
2066
+
2067
+ <div class="description">
2068
+ <p>Create a Task</p>
2069
+ </div>
2070
+
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+
2077
+
2078
+ <h5>Parameters:</h5>
2079
+
2080
+
2081
+ <table class="params table table-striped">
2082
+ <thead>
2083
+ <tr>
2084
+
2085
+ <th>Name</th>
2086
+
2087
+
2088
+ <th>Type</th>
2089
+
2090
+
2091
+ <th>Argument</th>
2092
+
2093
+
2094
+
2095
+
2096
+ <th class="last">Description</th>
2097
+ </tr>
2098
+ </thead>
2099
+
2100
+ <tbody>
2101
+
2102
+
2103
+ <tr>
2104
+
2105
+ <td class="name"><code>to</code></td>
2106
+
2107
+
2108
+ <td class="type">
2109
+
2110
+
2111
+ <span class="param-type">string</span>
2112
+
2113
+
2114
+
2115
+
2116
+ </td>
2117
+
2118
+
2119
+ <td class="attributes">
2120
+
2121
+
2122
+
2123
+
2124
+
2125
+ </td>
2126
+
2127
+
2128
+
2129
+
2130
+ <td class="description last"><p>The contact uri of the customer. Stored in the <a href="Task.html">Task</a>'s attributes as "outbound_to"</p></td>
2131
+ </tr>
2132
+
2133
+
2134
+
2135
+ <tr>
2136
+
2137
+ <td class="name"><code>from</code></td>
2138
+
2139
+
2140
+ <td class="type">
2141
+
2142
+
2143
+ <span class="param-type">string</span>
2144
+
2145
+
2146
+
2147
+
2148
+ </td>
2149
+
2150
+
2151
+ <td class="attributes">
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+ </td>
2158
+
2159
+
2160
+
2161
+
2162
+ <td class="description last"><p>The contact uri of the <a href="Worker.html">Worker</a>. Stored in the <a href="Task.html">Task</a>'s attributes as "from"</p></td>
2163
+ </tr>
2164
+
2165
+
2166
+
2167
+ <tr>
2168
+
2169
+ <td class="name"><code>workflowSid</code></td>
2170
+
2171
+
2172
+ <td class="type">
2173
+
2174
+
2175
+ <span class="param-type">string</span>
2176
+
2177
+
2178
+
2179
+
2180
+ </td>
2181
+
2182
+
2183
+ <td class="attributes">
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+ </td>
2190
+
2191
+
2192
+
2193
+
2194
+ <td class="description last"><p>The Sid of the Workflow this Task should belong to</p></td>
2195
+ </tr>
2196
+
2197
+
2198
+
2199
+ <tr>
2200
+
2201
+ <td class="name"><code>taskQueueSid</code></td>
2202
+
2203
+
2204
+ <td class="type">
2205
+
2206
+
2207
+ <span class="param-type">string</span>
2208
+
2209
+
2210
+
2211
+
2212
+ </td>
2213
+
2214
+
2215
+ <td class="attributes">
2216
+
2217
+
2218
+
2219
+
2220
+
2221
+ </td>
2222
+
2223
+
2224
+
2225
+
2226
+ <td class="description last"><p>The Sid of the <a href="TaskQueue.html">TaskQueue</a> this Task should belong to, used for reporting
2227
+ purposes only</p></td>
2228
+ </tr>
2229
+
2230
+
2231
+
2232
+ <tr>
2233
+
2234
+ <td class="name"><code>options</code></td>
2235
+
2236
+
2237
+ <td class="type">
2238
+
2239
+
2240
+ <span class="param-type"><a href="global.html#WorkerTaskOptions">WorkerTaskOptions</a></span>
2241
+
2242
+
2243
+
2244
+
2245
+ </td>
2246
+
2247
+
2248
+ <td class="attributes">
2249
+
2250
+ &lt;optional&gt;<br>
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+ </td>
2257
+
2258
+
2259
+
2260
+
2261
+ <td class="description last"></td>
2262
+ </tr>
2263
+
2264
+
2265
+ </tbody>
2266
+ </table>
2267
+
2268
+
2269
+
2270
+
2271
+ <dl class="details">
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+ </dl>
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+
2320
+
2321
+ <h5>Returns:</h5>
2322
+
2323
+
2324
+ <div class="param-desc">
2325
+ <ul>
2326
+ <li>Rejected if unable to create a Task on behalf of the <a href="Worker.html">Worker</a>. Returns the
2327
+ TaskSid of the created Task.</li>
1449
2328
  </ul>
1450
2329
  </div>
1451
2330
 
1452
2331
 
1453
2332
 
2333
+ <dl>
2334
+ <dt>
2335
+ Type
2336
+ </dt>
2337
+ <dd>
2338
+
2339
+ <span class="param-type">Promise.&lt;string&gt;</span>
2340
+
2341
+
2342
+
2343
+ </dd>
2344
+ </dl>
2345
+
2346
+
2347
+
2348
+
2349
+
2350
+ </dd>
2351
+
2352
+
2353
+
2354
+ <hr>
2355
+ <dt>
2356
+ <h4 class="name" id="disconnect"><span class="type-signature"></span>disconnect()</h4>
2357
+
2358
+
2359
+ </dt>
2360
+ <dd>
2361
+
2362
+
2363
+ <div class="description">
2364
+ <p>Gracefully disconnect the client.</p>
2365
+ </div>
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+
2375
+
2376
+ <dl class="details">
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+
2398
+
2399
+
2400
+
2401
+
2402
+
2403
+
2404
+
2405
+
2406
+
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+ </dl>
2413
+
2414
+
2415
+
2416
+
2417
+
2418
+
2419
+
2420
+
2421
+
2422
+
2423
+
2424
+
2425
+
2426
+ <h5>Returns:</h5>
2427
+
2428
+
2429
+
2430
+
2431
+ <dl>
2432
+ <dt>
2433
+ Type
2434
+ </dt>
2435
+ <dd>
2436
+
2437
+ <span class="param-type">void</span>
2438
+
2439
+
2440
+
2441
+ </dd>
2442
+ </dl>
2443
+
2444
+
2445
+
2446
+
2447
+
2448
+ </dd>
2449
+
2450
+
2451
+
2452
+ <hr>
2453
+ <dt>
2454
+ <h4 class="name" id="fetchLatestVersion"><span class="type-signature"></span>fetchLatestVersion()</h4>
2455
+
2456
+
2457
+ </dt>
2458
+ <dd>
2459
+
2460
+
2461
+ <div class="description">
2462
+ <p>Fetch the last version of this <a href="Worker.html">Worker</a></p>
2463
+ </div>
2464
+
2465
+
2466
+
2467
+
2468
+
2469
+
2470
+
2471
+
2472
+
2473
+
2474
+ <dl class="details">
2475
+
2476
+
2477
+
2478
+
2479
+
2480
+
2481
+
2482
+
2483
+
2484
+
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+
2496
+
2497
+
2498
+
2499
+
2500
+
2501
+
2502
+
2503
+
2504
+
2505
+
2506
+
2507
+
2508
+
2509
+
2510
+ </dl>
2511
+
2512
+
2513
+
2514
+
2515
+
2516
+
2517
+
2518
+
2519
+
2520
+
2521
+
2522
+
2523
+
2524
+ <h5>Returns:</h5>
2525
+
2526
+
2527
+
2528
+
1454
2529
  <dl>
1455
2530
  <dt>
1456
2531
  Type
@@ -1474,17 +2549,13 @@ TaskSid of the created Task.</li>
1474
2549
 
1475
2550
  <hr>
1476
2551
  <dt>
1477
- <h4 class="name" id="updateToken"><span class="type-signature"></span>updateToken(newToken)</h4>
2552
+ <h4 class="name" id="getLogger"><span class="type-signature"></span>getLogger(prefix)</h4>
1478
2553
 
1479
2554
 
1480
2555
  </dt>
1481
2556
  <dd>
1482
2557
 
1483
2558
 
1484
- <div class="description">
1485
- <p>Update token</p>
1486
- </div>
1487
-
1488
2559
 
1489
2560
 
1490
2561
 
@@ -1517,7 +2588,7 @@ TaskSid of the created Task.</li>
1517
2588
 
1518
2589
  <tr>
1519
2590
 
1520
- <td class="name"><code>newToken</code></td>
2591
+ <td class="name"><code>prefix</code></td>
1521
2592
 
1522
2593
 
1523
2594
  <td class="type">
@@ -1534,7 +2605,7 @@ TaskSid of the created Task.</li>
1534
2605
 
1535
2606
 
1536
2607
 
1537
- <td class="description last"><p>The new token that should be used for authentication</p></td>
2608
+ <td class="description last"></td>
1538
2609
  </tr>
1539
2610
 
1540
2611
 
@@ -1597,12 +2668,6 @@ TaskSid of the created Task.</li>
1597
2668
  <h5>Returns:</h5>
1598
2669
 
1599
2670
 
1600
- <div class="param-desc">
1601
- <ul>
1602
- <li>Emits error if unable to update token</li>
1603
- </ul>
1604
- </div>
1605
-
1606
2671
 
1607
2672
 
1608
2673
  <dl>
@@ -1611,7 +2676,7 @@ TaskSid of the created Task.</li>
1611
2676
  </dt>
1612
2677
  <dd>
1613
2678
 
1614
- <span class="param-type">void</span>
2679
+ <span class="param-type">Logger</span>
1615
2680
 
1616
2681
 
1617
2682
 
@@ -1624,229 +2689,154 @@ TaskSid of the created Task.</li>
1624
2689
 
1625
2690
  </dd>
1626
2691
 
1627
- </dl>
1628
-
1629
-
1630
-
1631
- <h3 class="subsection-title">Type Definitions</h3>
1632
-
1633
- <dl>
1634
-
2692
+
2693
+
1635
2694
  <hr>
1636
- <dt class="name" id=".Options">
1637
- <h4 id=".Options">Options</h4>
1638
-
2695
+ <dt>
2696
+ <h4 class="name" id="getRoutes"><span class="type-signature"></span>getRoutes()</h4>
2697
+
1639
2698
 
1640
2699
  </dt>
1641
2700
  <dd>
1642
-
1643
2701
 
1644
2702
 
1645
- <h5>Type:</h5>
1646
- <ul>
1647
- <li>
1648
-
1649
- <span class="param-type">Object</span>
1650
2703
 
2704
+
1651
2705
 
2706
+
1652
2707
 
1653
- </li>
1654
- </ul>
2708
+
1655
2709
 
1656
2710
 
1657
2711
 
1658
2712
  <dl class="details">
1659
2713
 
1660
2714
 
1661
- <h5 class="subsection-title">Properties:</h5>
1662
-
1663
- <dl>
2715
+
1664
2716
 
1665
- <table class="props table table-striped">
1666
- <thead>
1667
- <tr>
1668
-
1669
- <th>Name</th>
1670
-
2717
+
1671
2718
 
1672
- <th>Type</th>
2719
+
1673
2720
 
1674
-
1675
- <th>Argument</th>
1676
-
2721
+
1677
2722
 
1678
-
1679
- <th>Default</th>
1680
-
2723
+
1681
2724
 
1682
- <th class="last">Description</th>
1683
- </tr>
1684
- </thead>
2725
+
1685
2726
 
1686
- <tbody>
1687
2727
 
1688
2728
 
1689
- <tr>
1690
-
1691
- <td class="name"><code>connectActivitySid</code></td>
1692
-
2729
+
1693
2730
 
1694
- <td class="type">
1695
-
1696
-
1697
- <span class="param-type">string</span>
2731
+
1698
2732
 
2733
+
1699
2734
 
2735
+
1700
2736
 
1701
-
1702
- </td>
2737
+
1703
2738
 
1704
-
1705
- <td class="attributes">
1706
-
1707
- &lt;optional&gt;<br>
1708
-
1709
2739
 
1710
-
1711
- </td>
1712
-
1713
2740
 
1714
-
1715
- <td class="default">
1716
-
1717
- ''
1718
-
1719
- </td>
1720
-
2741
+
1721
2742
 
1722
- <td class="description last"><p>The <a href="Activity.html">Activity</a> state of the Worker upon connect</p></td>
1723
- </tr>
2743
+
1724
2744
 
1725
-
2745
+
1726
2746
 
1727
- <tr>
1728
-
1729
- <td class="name"><code>closeExistingSessions</code></td>
1730
-
2747
+
2748
+ </dl>
1731
2749
 
1732
- <td class="type">
1733
-
1734
-
1735
- <span class="param-type">boolean</span>
1736
2750
 
2751
+
1737
2752
 
2753
+
1738
2754
 
1739
-
1740
- </td>
2755
+
1741
2756
 
1742
-
1743
- <td class="attributes">
1744
-
1745
- &lt;optional&gt;<br>
1746
-
2757
+
1747
2758
 
1748
-
1749
- </td>
1750
-
2759
+
1751
2760
 
2761
+
2762
+ <h5>Returns:</h5>
2763
+
1752
2764
 
1753
- <td class="default">
1754
-
1755
- false
1756
-
1757
- </td>
1758
-
1759
-
1760
- <td class="description last"><ul>
1761
- <li>Whether other open sessions of this <a href="Worker.html">Worker</a>
1762
- should be terminated</li>
1763
- </ul></td>
1764
- </tr>
1765
2765
 
1766
-
1767
2766
 
1768
- <tr>
1769
-
1770
- <td class="name"><code>logLevel</code></td>
1771
-
2767
+ <dl>
2768
+ <dt>
2769
+ Type
2770
+ </dt>
2771
+ <dd>
2772
+
2773
+ <span class="param-type">Routes</span>
1772
2774
 
1773
- <td class="type">
1774
-
1775
-
1776
- <span class="param-type">string</span>
1777
2775
 
1778
2776
 
2777
+ </dd>
2778
+ </dl>
1779
2779
 
1780
-
1781
- </td>
1782
2780
 
1783
-
1784
- <td class="attributes">
1785
-
1786
- &lt;optional&gt;<br>
1787
-
2781
+
1788
2782
 
1789
-
1790
- </td>
1791
-
2783
+
2784
+ </dd>
1792
2785
 
2786
+
1793
2787
 
1794
- <td class="default">
1795
-
1796
- 'error'
1797
-
1798
- </td>
1799
-
1800
-
1801
- <td class="description last"><p>The level of logging to enable
1802
- ['error', 'warn', 'info', 'debug', 'trace', 'silent']</p></td>
1803
- </tr>
2788
+ <hr>
2789
+ <dt>
2790
+ <h4 class="name" id="setAttributes"><span class="type-signature"></span>setAttributes(attributes)</h4>
2791
+
2792
+
2793
+ </dt>
2794
+ <dd>
1804
2795
 
1805
2796
 
2797
+ <div class="description">
2798
+ <p>Update attributes</p>
2799
+ </div>
2800
+
1806
2801
 
1807
- <tr>
1808
-
1809
- <td class="name"><code>region</code></td>
1810
-
1811
-
1812
- <td class="type">
1813
-
1814
-
1815
- <span class="param-type">string</span>
2802
+
1816
2803
 
2804
+
1817
2805
 
2806
+
2807
+
2808
+ <h5>Parameters:</h5>
2809
+
1818
2810
 
1819
-
1820
- </td>
2811
+ <table class="params table table-striped">
2812
+ <thead>
2813
+ <tr>
2814
+
2815
+ <th>Name</th>
2816
+
1821
2817
 
1822
-
1823
- <td class="attributes">
1824
-
2818
+ <th>Type</th>
1825
2819
 
1826
-
1827
- </td>
1828
-
2820
+
1829
2821
 
1830
-
1831
- <td class="default">
1832
-
1833
- </td>
1834
-
2822
+
1835
2823
 
1836
- <td class="description last"><p>the realm for connections (ex. "stage-us1")</p></td>
1837
- </tr>
2824
+ <th class="last">Description</th>
2825
+ </tr>
2826
+ </thead>
1838
2827
 
2828
+ <tbody>
1839
2829
 
1840
2830
 
1841
2831
  <tr>
1842
2832
 
1843
- <td class="name"><code>edge</code></td>
2833
+ <td class="name"><code>attributes</code></td>
1844
2834
 
1845
2835
 
1846
2836
  <td class="type">
1847
2837
 
1848
2838
 
1849
- <span class="param-type">string</span>
2839
+ <span class="param-type">Record.&lt;any, any&gt;</span>
1850
2840
 
1851
2841
 
1852
2842
 
@@ -1854,29 +2844,22 @@ should be terminated</li>
1854
2844
  </td>
1855
2845
 
1856
2846
 
1857
- <td class="attributes">
1858
-
1859
-
1860
-
1861
- </td>
1862
-
1863
2847
 
1864
2848
 
1865
- <td class="default">
1866
-
1867
- </td>
1868
-
1869
2849
 
1870
- <td class="description last"><p>the ingress for connections (ex. "sydney")</p></td>
2850
+ <td class="description last"><p>A JSON describing the Worker's attributes</p></td>
1871
2851
  </tr>
1872
2852
 
1873
2853
 
1874
2854
  </tbody>
1875
2855
  </table>
1876
- </dl>
1877
2856
 
1878
2857
 
1879
2858
 
2859
+
2860
+ <dl class="details">
2861
+
2862
+
1880
2863
 
1881
2864
 
1882
2865
 
@@ -1914,41 +2897,72 @@ should be terminated</li>
1914
2897
 
1915
2898
 
1916
2899
 
1917
- </dd>
1918
2900
 
1919
-
1920
-
1921
- <hr>
1922
- <dt class="name" id=".TaskOptions">
1923
- <h4 id=".TaskOptions">TaskOptions</h4>
2901
+
1924
2902
 
1925
2903
 
1926
- </dt>
1927
- <dd>
2904
+
1928
2905
 
1929
2906
 
1930
2907
 
1931
- <h5>Type:</h5>
1932
- <ul>
1933
- <li>
1934
-
1935
- <span class="param-type">Object</span>
2908
+
2909
+
2910
+ <h5>Returns:</h5>
2911
+
2912
+
2913
+ <div class="param-desc">
2914
+ <ul>
2915
+ <li>Rejected if the attributes cannot be set</li>
2916
+ </ul>
2917
+ </div>
1936
2918
 
1937
2919
 
1938
2920
 
1939
- </li>
1940
- </ul>
2921
+ <dl>
2922
+ <dt>
2923
+ Type
2924
+ </dt>
2925
+ <dd>
2926
+
2927
+ <span class="param-type">Promise.&lt;this&gt;</span>
2928
+
2929
+
2930
+
2931
+ </dd>
2932
+ </dl>
2933
+
2934
+
2935
+
2936
+
1941
2937
 
2938
+ </dd>
1942
2939
 
2940
+
2941
+
2942
+ <hr>
2943
+ <dt>
2944
+ <h4 class="name" id="updateToken"><span class="type-signature"></span>updateToken(newToken)</h4>
1943
2945
 
1944
- <dl class="details">
1945
2946
 
2947
+ </dt>
2948
+ <dd>
1946
2949
 
1947
- <h5 class="subsection-title">Properties:</h5>
2950
+
2951
+ <div class="description">
2952
+ <p>Update token</p>
2953
+ </div>
2954
+
1948
2955
 
1949
- <dl>
2956
+
1950
2957
 
1951
- <table class="props table table-striped">
2958
+
2959
+
2960
+
2961
+
2962
+ <h5>Parameters:</h5>
2963
+
2964
+
2965
+ <table class="params table table-striped">
1952
2966
  <thead>
1953
2967
  <tr>
1954
2968
 
@@ -1958,12 +2972,8 @@ should be terminated</li>
1958
2972
  <th>Type</th>
1959
2973
 
1960
2974
 
1961
- <th>Argument</th>
1962
-
1963
2975
 
1964
2976
 
1965
- <th>Default</th>
1966
-
1967
2977
 
1968
2978
  <th class="last">Description</th>
1969
2979
  </tr>
@@ -1974,13 +2984,13 @@ should be terminated</li>
1974
2984
 
1975
2985
  <tr>
1976
2986
 
1977
- <td class="name"><code>attributes</code></td>
2987
+ <td class="name"><code>newToken</code></td>
1978
2988
 
1979
2989
 
1980
2990
  <td class="type">
1981
2991
 
1982
2992
 
1983
- <span class="param-type">object</span>
2993
+ <span class="param-type">string</span>
1984
2994
 
1985
2995
 
1986
2996
 
@@ -1988,118 +2998,57 @@ should be terminated</li>
1988
2998
  </td>
1989
2999
 
1990
3000
 
1991
- <td class="attributes">
1992
-
1993
- &lt;optional&gt;<br>
1994
-
1995
-
1996
-
1997
- </td>
1998
-
1999
3001
 
2000
3002
 
2001
- <td class="default">
2002
-
2003
- null
2004
-
2005
- </td>
2006
-
2007
3003
 
2008
- <td class="description last"><p>Additional attributes for the <a href="Task.html">Task</a></p></td>
3004
+ <td class="description last"><p>The new token that should be used for authentication</p></td>
2009
3005
  </tr>
2010
3006
 
2011
3007
 
3008
+ </tbody>
3009
+ </table>
2012
3010
 
2013
- <tr>
2014
-
2015
- <td class="name"><code>taskChannelUniqueName</code></td>
2016
-
2017
-
2018
- <td class="type">
2019
-
2020
-
2021
- <span class="param-type">string</span>
2022
-
2023
-
2024
-
2025
-
2026
- </td>
3011
+
2027
3012
 
2028
-
2029
- <td class="attributes">
2030
-
2031
- &lt;optional&gt;<br>
2032
-
3013
+
3014
+ <dl class="details">
3015
+
2033
3016
 
2034
-
2035
- </td>
2036
-
3017
+
2037
3018
 
2038
-
2039
- <td class="default">
2040
-
2041
- null
2042
-
2043
- </td>
2044
-
3019
+
2045
3020
 
2046
- <td class="description last"><p>The friendly name of the <a href="Channel.html">Channel</a> this <a href="Task.html">Task</a>
2047
- belongs to. If not provided, defaults to 'default' channel.</p></td>
2048
- </tr>
3021
+
2049
3022
 
2050
3023
 
2051
3024
 
2052
- <tr>
2053
-
2054
- <td class="name"><code>taskChannelSid</code></td>
2055
-
3025
+
2056
3026
 
2057
- <td class="type">
2058
-
2059
-
2060
- <span class="param-type">string</span>
3027
+
2061
3028
 
3029
+
2062
3030
 
3031
+
2063
3032
 
2064
-
2065
- </td>
3033
+
2066
3034
 
2067
-
2068
- <td class="attributes">
2069
-
2070
- &lt;optional&gt;<br>
2071
-
3035
+
2072
3036
 
2073
-
2074
- </td>
2075
-
3037
+
2076
3038
 
2077
-
2078
- <td class="default">
2079
-
2080
- null
2081
-
2082
- </td>
2083
-
3039
+
2084
3040
 
2085
- <td class="description last"><p>The Sid of the <a href="Channel.html">Channel</a> this <a href="Task.html">Task</a> belongs to. If not
2086
- provided, defaults to 'default' channel.</p></td>
2087
- </tr>
2088
3041
 
2089
-
2090
- </tbody>
2091
- </table>
2092
- </dl>
2093
3042
 
2094
-
3043
+
2095
3044
 
2096
3045
 
2097
3046
 
2098
3047
 
2099
3048
 
2100
3049
 
3050
+ </dl>
2101
3051
 
2102
-
2103
3052
 
2104
3053
 
2105
3054
 
@@ -2107,32 +3056,44 @@ provided, defaults to 'default' channel.</p></td>
2107
3056
 
2108
3057
 
2109
3058
 
2110
-
2111
-
2112
-
2113
-
2114
-
3059
+
2115
3060
 
2116
-
3061
+
2117
3062
 
2118
-
3063
+
3064
+ <h5>Returns:</h5>
3065
+
3066
+
3067
+ <div class="param-desc">
3068
+ <ul>
3069
+ <li>Emits error if unable to update token</li>
3070
+ </ul>
3071
+ </div>
2119
3072
 
2120
3073
 
2121
3074
 
2122
-
3075
+ <dl>
3076
+ <dt>
3077
+ Type
3078
+ </dt>
3079
+ <dd>
3080
+
3081
+ <span class="param-type">void</span>
2123
3082
 
2124
-
2125
3083
 
2126
-
2127
3084
 
2128
-
3085
+ </dd>
2129
3086
  </dl>
2130
3087
 
2131
3088
 
3089
+
3090
+
2132
3091
 
2133
3092
  </dd>
2134
3093
 
2135
- </dl>
3094
+ </dl>
3095
+
3096
+
2136
3097
 
2137
3098
 
2138
3099
 
@@ -3184,9 +4145,9 @@ provided, defaults to 'default' channel.</p></td>
3184
4145
 
3185
4146
 
3186
4147
  <span class="jsdoc-message">
3187
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a>
4148
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
3188
4149
 
3189
- on 2023-05-09T04:37:13+00:00
4150
+ on 2023-08-01T08:45:21+00:00
3190
4151
 
3191
4152
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
3192
4153
  </span>