files.com 1.0.196 → 1.0.197

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/_VERSION +1 -1
  2. package/lib/models/ActionNotificationExport.js +1 -1
  3. package/lib/models/ActionWebhookFailure.js +1 -1
  4. package/lib/models/ApiKey.js +3 -3
  5. package/lib/models/As2Partner.js +3 -3
  6. package/lib/models/As2Station.js +3 -3
  7. package/lib/models/Automation.js +3 -3
  8. package/lib/models/AutomationRun.js +1 -1
  9. package/lib/models/Behavior.js +4 -4
  10. package/lib/models/Bundle.js +4 -4
  11. package/lib/models/Clickwrap.js +3 -3
  12. package/lib/models/ExternalEvent.js +1 -1
  13. package/lib/models/File.js +8 -8
  14. package/lib/models/FileComment.js +3 -3
  15. package/lib/models/FileCommentReaction.js +1 -1
  16. package/lib/models/FileMigration.js +1 -1
  17. package/lib/models/Folder.js +2 -2
  18. package/lib/models/FormFieldSet.js +3 -3
  19. package/lib/models/Group.js +3 -3
  20. package/lib/models/GroupUser.js +2 -2
  21. package/lib/models/History.js +3 -3
  22. package/lib/models/HistoryExport.js +1 -1
  23. package/lib/models/Invoice.js +1 -1
  24. package/lib/models/Lock.js +3 -3
  25. package/lib/models/Message.js +3 -3
  26. package/lib/models/MessageComment.js +3 -3
  27. package/lib/models/MessageCommentReaction.js +2 -2
  28. package/lib/models/MessageReaction.js +2 -2
  29. package/lib/models/Notification.js +3 -3
  30. package/lib/models/Payment.js +1 -1
  31. package/lib/models/Permission.js +1 -1
  32. package/lib/models/Project.js +3 -3
  33. package/lib/models/PublicKey.js +3 -3
  34. package/lib/models/RemoteServer.js +3 -3
  35. package/lib/models/Request.js +2 -2
  36. package/lib/models/SsoStrategy.js +2 -2
  37. package/lib/models/Style.js +3 -3
  38. package/lib/models/User.js +6 -6
  39. package/lib/models/UserRequest.js +2 -2
  40. package/package.json +1 -1
  41. package/src/models/ActionNotificationExport.js +1 -1
  42. package/src/models/ActionWebhookFailure.js +1 -1
  43. package/src/models/ApiKey.js +3 -3
  44. package/src/models/As2Partner.js +3 -3
  45. package/src/models/As2Station.js +3 -3
  46. package/src/models/Automation.js +3 -3
  47. package/src/models/AutomationRun.js +1 -1
  48. package/src/models/Behavior.js +4 -4
  49. package/src/models/Bundle.js +4 -4
  50. package/src/models/Clickwrap.js +3 -3
  51. package/src/models/ExternalEvent.js +1 -1
  52. package/src/models/File.js +8 -8
  53. package/src/models/FileComment.js +3 -3
  54. package/src/models/FileCommentReaction.js +1 -1
  55. package/src/models/FileMigration.js +1 -1
  56. package/src/models/Folder.js +2 -2
  57. package/src/models/FormFieldSet.js +3 -3
  58. package/src/models/Group.js +3 -3
  59. package/src/models/GroupUser.js +2 -2
  60. package/src/models/History.js +3 -3
  61. package/src/models/HistoryExport.js +1 -1
  62. package/src/models/Invoice.js +1 -1
  63. package/src/models/Lock.js +3 -3
  64. package/src/models/Message.js +3 -3
  65. package/src/models/MessageComment.js +3 -3
  66. package/src/models/MessageCommentReaction.js +2 -2
  67. package/src/models/MessageReaction.js +2 -2
  68. package/src/models/Notification.js +3 -3
  69. package/src/models/Payment.js +1 -1
  70. package/src/models/Permission.js +1 -1
  71. package/src/models/Project.js +3 -3
  72. package/src/models/PublicKey.js +3 -3
  73. package/src/models/RemoteServer.js +3 -3
  74. package/src/models/Request.js +2 -2
  75. package/src/models/SsoStrategy.js +2 -2
  76. package/src/models/Style.js +3 -3
  77. package/src/models/User.js +6 -6
  78. package/src/models/UserRequest.js +2 -2
@@ -74,7 +74,7 @@ class FileCommentReaction {
74
74
  }
75
75
  }
76
76
 
77
- const response = await Api.sendRequest(`/file_comment_reactions/${params['id']}`, 'DELETE', params, this.options)
77
+ const response = await Api.sendRequest(`/file_comment_reactions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
78
78
 
79
79
  return response?.data
80
80
  }
@@ -68,7 +68,7 @@ class FileMigration {
68
68
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
69
69
  }
70
70
 
71
- const response = await Api.sendRequest(`/file_migrations/${params['id']}`, 'GET', params, options)
71
+ const response = await Api.sendRequest(`/file_migrations/${encodeURIComponent(params['id'])}`, 'GET', params, options)
72
72
 
73
73
  return new FileMigration(response?.data, options)
74
74
  }
@@ -195,7 +195,7 @@ class Folder {
195
195
  throw new errors.InvalidParameterError(`Bad parameter: search must be of type String, received ${getType(params['search'])}`)
196
196
  }
197
197
 
198
- const response = await Api.sendRequest(`/folders/${params['path']}`, 'GET', params, options)
198
+ const response = await Api.sendRequest(`/folders/${encodeURIComponent(params['path'])}`, 'GET', params, options)
199
199
 
200
200
  return response?.data?.map(obj => new File(obj, options)) || []
201
201
  }
@@ -218,7 +218,7 @@ class Folder {
218
218
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
219
219
  }
220
220
 
221
- const response = await Api.sendRequest(`/folders/${params['path']}`, 'POST', params, options)
221
+ const response = await Api.sendRequest(`/folders/${encodeURIComponent(params['path'])}`, 'POST', params, options)
222
222
 
223
223
  return new File(response?.data, options)
224
224
  }
@@ -114,7 +114,7 @@ class FormFieldSet {
114
114
  }
115
115
  }
116
116
 
117
- const response = await Api.sendRequest(`/form_field_sets/${params['id']}`, 'PATCH', params, this.options)
117
+ const response = await Api.sendRequest(`/form_field_sets/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
118
118
 
119
119
  return new FormFieldSet(response?.data, this.options)
120
120
  }
@@ -141,7 +141,7 @@ class FormFieldSet {
141
141
  }
142
142
  }
143
143
 
144
- const response = await Api.sendRequest(`/form_field_sets/${params['id']}`, 'DELETE', params, this.options)
144
+ const response = await Api.sendRequest(`/form_field_sets/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
145
145
 
146
146
  return response?.data
147
147
  }
@@ -201,7 +201,7 @@ class FormFieldSet {
201
201
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
202
202
  }
203
203
 
204
- const response = await Api.sendRequest(`/form_field_sets/${params['id']}`, 'GET', params, options)
204
+ const response = await Api.sendRequest(`/form_field_sets/${encodeURIComponent(params['id'])}`, 'GET', params, options)
205
205
 
206
206
  return new FormFieldSet(response?.data, options)
207
207
  }
@@ -105,7 +105,7 @@ class Group {
105
105
  }
106
106
  }
107
107
 
108
- const response = await Api.sendRequest(`/groups/${params['id']}`, 'PATCH', params, this.options)
108
+ const response = await Api.sendRequest(`/groups/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
109
109
 
110
110
  return new Group(response?.data, this.options)
111
111
  }
@@ -132,7 +132,7 @@ class Group {
132
132
  }
133
133
  }
134
134
 
135
- const response = await Api.sendRequest(`/groups/${params['id']}`, 'DELETE', params, this.options)
135
+ const response = await Api.sendRequest(`/groups/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
136
136
 
137
137
  return response?.data
138
138
  }
@@ -199,7 +199,7 @@ class Group {
199
199
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
200
200
  }
201
201
 
202
- const response = await Api.sendRequest(`/groups/${params['id']}`, 'GET', params, options)
202
+ const response = await Api.sendRequest(`/groups/${encodeURIComponent(params['id'])}`, 'GET', params, options)
203
203
 
204
204
  return new Group(response?.data, options)
205
205
  }
@@ -114,7 +114,7 @@ class GroupUser {
114
114
  }
115
115
  }
116
116
 
117
- const response = await Api.sendRequest(`/group_users/${params['id']}`, 'PATCH', params, this.options)
117
+ const response = await Api.sendRequest(`/group_users/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
118
118
 
119
119
  return new GroupUser(response?.data, this.options)
120
120
  }
@@ -166,7 +166,7 @@ class GroupUser {
166
166
  }
167
167
  }
168
168
 
169
- const response = await Api.sendRequest(`/group_users/${params['id']}`, 'DELETE', params, this.options)
169
+ const response = await Api.sendRequest(`/group_users/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
170
170
 
171
171
  return response?.data
172
172
  }
@@ -106,7 +106,7 @@ class History {
106
106
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
107
107
  }
108
108
 
109
- const response = await Api.sendRequest(`/history/files/${params['path']}`, 'GET', params, options)
109
+ const response = await Api.sendRequest(`/history/files/${encodeURIComponent(params['path'])}`, 'GET', params, options)
110
110
 
111
111
  return response?.data?.map(obj => new Action(obj, options)) || []
112
112
  }
@@ -154,7 +154,7 @@ class History {
154
154
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
155
155
  }
156
156
 
157
- const response = await Api.sendRequest(`/history/folders/${params['path']}`, 'GET', params, options)
157
+ const response = await Api.sendRequest(`/history/folders/${encodeURIComponent(params['path'])}`, 'GET', params, options)
158
158
 
159
159
  return response?.data?.map(obj => new Action(obj, options)) || []
160
160
  }
@@ -202,7 +202,7 @@ class History {
202
202
  throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
203
203
  }
204
204
 
205
- const response = await Api.sendRequest(`/history/users/${params['user_id']}`, 'GET', params, options)
205
+ const response = await Api.sendRequest(`/history/users/${encodeURIComponent(params['user_id'])}`, 'GET', params, options)
206
206
 
207
207
  return response?.data?.map(obj => new Action(obj, options)) || []
208
208
  }
@@ -233,7 +233,7 @@ class HistoryExport {
233
233
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
234
234
  }
235
235
 
236
- const response = await Api.sendRequest(`/history_exports/${params['id']}`, 'GET', params, options)
236
+ const response = await Api.sendRequest(`/history_exports/${encodeURIComponent(params['id'])}`, 'GET', params, options)
237
237
 
238
238
  return new HistoryExport(response?.data, options)
239
239
  }
@@ -103,7 +103,7 @@ class Invoice {
103
103
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
104
104
  }
105
105
 
106
- const response = await Api.sendRequest(`/invoices/${params['id']}`, 'GET', params, options)
106
+ const response = await Api.sendRequest(`/invoices/${encodeURIComponent(params['id'])}`, 'GET', params, options)
107
107
 
108
108
  return new AccountLineItem(response?.data, options)
109
109
  }
@@ -143,7 +143,7 @@ class Lock {
143
143
  }
144
144
  }
145
145
 
146
- const response = await Api.sendRequest(`/locks/${params['path']}`, 'DELETE', params, this.options)
146
+ const response = await Api.sendRequest(`/locks/${encodeURIComponent(params['path'])}`, 'DELETE', params, this.options)
147
147
 
148
148
  return response?.data
149
149
  }
@@ -185,7 +185,7 @@ class Lock {
185
185
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
186
186
  }
187
187
 
188
- const response = await Api.sendRequest(`/locks/${params['path']}`, 'GET', params, options)
188
+ const response = await Api.sendRequest(`/locks/${encodeURIComponent(params['path'])}`, 'GET', params, options)
189
189
 
190
190
  return response?.data?.map(obj => new Lock(obj, options)) || []
191
191
  }
@@ -219,7 +219,7 @@ class Lock {
219
219
  throw new errors.InvalidParameterError(`Bad parameter: timeout must be of type Int, received ${getType(params['timeout'])}`)
220
220
  }
221
221
 
222
- const response = await Api.sendRequest(`/locks/${params['path']}`, 'POST', params, options)
222
+ const response = await Api.sendRequest(`/locks/${encodeURIComponent(params['path'])}`, 'POST', params, options)
223
223
 
224
224
  return new Lock(response?.data, options)
225
225
  }
@@ -125,7 +125,7 @@ class Message {
125
125
  }
126
126
  }
127
127
 
128
- const response = await Api.sendRequest(`/messages/${params['id']}`, 'PATCH', params, this.options)
128
+ const response = await Api.sendRequest(`/messages/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
129
129
 
130
130
  return new Message(response?.data, this.options)
131
131
  }
@@ -152,7 +152,7 @@ class Message {
152
152
  }
153
153
  }
154
154
 
155
- const response = await Api.sendRequest(`/messages/${params['id']}`, 'DELETE', params, this.options)
155
+ const response = await Api.sendRequest(`/messages/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
156
156
 
157
157
  return response?.data
158
158
  }
@@ -221,7 +221,7 @@ class Message {
221
221
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
222
222
  }
223
223
 
224
- const response = await Api.sendRequest(`/messages/${params['id']}`, 'GET', params, options)
224
+ const response = await Api.sendRequest(`/messages/${encodeURIComponent(params['id'])}`, 'GET', params, options)
225
225
 
226
226
  return new Message(response?.data, options)
227
227
  }
@@ -87,7 +87,7 @@ class MessageComment {
87
87
  }
88
88
  }
89
89
 
90
- const response = await Api.sendRequest(`/message_comments/${params['id']}`, 'PATCH', params, this.options)
90
+ const response = await Api.sendRequest(`/message_comments/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
91
91
 
92
92
  return new MessageComment(response?.data, this.options)
93
93
  }
@@ -114,7 +114,7 @@ class MessageComment {
114
114
  }
115
115
  }
116
116
 
117
- const response = await Api.sendRequest(`/message_comments/${params['id']}`, 'DELETE', params, this.options)
117
+ const response = await Api.sendRequest(`/message_comments/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
118
118
 
119
119
  return response?.data
120
120
  }
@@ -183,7 +183,7 @@ class MessageComment {
183
183
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
184
184
  }
185
185
 
186
- const response = await Api.sendRequest(`/message_comments/${params['id']}`, 'GET', params, options)
186
+ const response = await Api.sendRequest(`/message_comments/${encodeURIComponent(params['id'])}`, 'GET', params, options)
187
187
 
188
188
  return new MessageComment(response?.data, options)
189
189
  }
@@ -67,7 +67,7 @@ class MessageCommentReaction {
67
67
  }
68
68
  }
69
69
 
70
- const response = await Api.sendRequest(`/message_comment_reactions/${params['id']}`, 'DELETE', params, this.options)
70
+ const response = await Api.sendRequest(`/message_comment_reactions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
71
71
 
72
72
  return response?.data
73
73
  }
@@ -136,7 +136,7 @@ class MessageCommentReaction {
136
136
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
137
137
  }
138
138
 
139
- const response = await Api.sendRequest(`/message_comment_reactions/${params['id']}`, 'GET', params, options)
139
+ const response = await Api.sendRequest(`/message_comment_reactions/${encodeURIComponent(params['id'])}`, 'GET', params, options)
140
140
 
141
141
  return new MessageCommentReaction(response?.data, options)
142
142
  }
@@ -67,7 +67,7 @@ class MessageReaction {
67
67
  }
68
68
  }
69
69
 
70
- const response = await Api.sendRequest(`/message_reactions/${params['id']}`, 'DELETE', params, this.options)
70
+ const response = await Api.sendRequest(`/message_reactions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
71
71
 
72
72
  return response?.data
73
73
  }
@@ -136,7 +136,7 @@ class MessageReaction {
136
136
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
137
137
  }
138
138
 
139
- const response = await Api.sendRequest(`/message_reactions/${params['id']}`, 'GET', params, options)
139
+ const response = await Api.sendRequest(`/message_reactions/${encodeURIComponent(params['id'])}`, 'GET', params, options)
140
140
 
141
141
  return new MessageReaction(response?.data, options)
142
142
  }
@@ -229,7 +229,7 @@ class Notification {
229
229
  }
230
230
  }
231
231
 
232
- const response = await Api.sendRequest(`/notifications/${params['id']}`, 'PATCH', params, this.options)
232
+ const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
233
233
 
234
234
  return new Notification(response?.data, this.options)
235
235
  }
@@ -256,7 +256,7 @@ class Notification {
256
256
  }
257
257
  }
258
258
 
259
- const response = await Api.sendRequest(`/notifications/${params['id']}`, 'DELETE', params, this.options)
259
+ const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
260
260
 
261
261
  return response?.data
262
262
  }
@@ -334,7 +334,7 @@ class Notification {
334
334
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
335
335
  }
336
336
 
337
- const response = await Api.sendRequest(`/notifications/${params['id']}`, 'GET', params, options)
337
+ const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'GET', params, options)
338
338
 
339
339
  return new Notification(response?.data, options)
340
340
  }
@@ -103,7 +103,7 @@ class Payment {
103
103
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
104
104
  }
105
105
 
106
- const response = await Api.sendRequest(`/payments/${params['id']}`, 'GET', params, options)
106
+ const response = await Api.sendRequest(`/payments/${encodeURIComponent(params['id'])}`, 'GET', params, options)
107
107
 
108
108
  return new AccountLineItem(response?.data, options)
109
109
  }
@@ -102,7 +102,7 @@ class Permission {
102
102
  }
103
103
  }
104
104
 
105
- const response = await Api.sendRequest(`/permissions/${params['id']}`, 'DELETE', params, this.options)
105
+ const response = await Api.sendRequest(`/permissions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
106
106
 
107
107
  return response?.data
108
108
  }
@@ -73,7 +73,7 @@ class Project {
73
73
  }
74
74
  }
75
75
 
76
- const response = await Api.sendRequest(`/projects/${params['id']}`, 'PATCH', params, this.options)
76
+ const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
77
77
 
78
78
  return new Project(response?.data, this.options)
79
79
  }
@@ -100,7 +100,7 @@ class Project {
100
100
  }
101
101
  }
102
102
 
103
- const response = await Api.sendRequest(`/projects/${params['id']}`, 'DELETE', params, this.options)
103
+ const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
104
104
 
105
105
  return response?.data
106
106
  }
@@ -155,7 +155,7 @@ class Project {
155
155
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
156
156
  }
157
157
 
158
- const response = await Api.sendRequest(`/projects/${params['id']}`, 'GET', params, options)
158
+ const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'GET', params, options)
159
159
 
160
160
  return new Project(response?.data, options)
161
161
  }
@@ -97,7 +97,7 @@ class PublicKey {
97
97
  }
98
98
  }
99
99
 
100
- const response = await Api.sendRequest(`/public_keys/${params['id']}`, 'PATCH', params, this.options)
100
+ const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
101
101
 
102
102
  return new PublicKey(response?.data, this.options)
103
103
  }
@@ -124,7 +124,7 @@ class PublicKey {
124
124
  }
125
125
  }
126
126
 
127
- const response = await Api.sendRequest(`/public_keys/${params['id']}`, 'DELETE', params, this.options)
127
+ const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
128
128
 
129
129
  return response?.data
130
130
  }
@@ -184,7 +184,7 @@ class PublicKey {
184
184
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
185
185
  }
186
186
 
187
- const response = await Api.sendRequest(`/public_keys/${params['id']}`, 'GET', params, options)
187
+ const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'GET', params, options)
188
188
 
189
189
  return new PublicKey(response?.data, options)
190
190
  }
@@ -618,7 +618,7 @@ class RemoteServer {
618
618
  }
619
619
  }
620
620
 
621
- const response = await Api.sendRequest(`/remote_servers/${params['id']}`, 'PATCH', params, this.options)
621
+ const response = await Api.sendRequest(`/remote_servers/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
622
622
 
623
623
  return new RemoteServer(response?.data, this.options)
624
624
  }
@@ -645,7 +645,7 @@ class RemoteServer {
645
645
  }
646
646
  }
647
647
 
648
- const response = await Api.sendRequest(`/remote_servers/${params['id']}`, 'DELETE', params, this.options)
648
+ const response = await Api.sendRequest(`/remote_servers/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
649
649
 
650
650
  return response?.data
651
651
  }
@@ -700,7 +700,7 @@ class RemoteServer {
700
700
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
701
701
  }
702
702
 
703
- const response = await Api.sendRequest(`/remote_servers/${params['id']}`, 'GET', params, options)
703
+ const response = await Api.sendRequest(`/remote_servers/${encodeURIComponent(params['id'])}`, 'GET', params, options)
704
704
 
705
705
  return new RemoteServer(response?.data, options)
706
706
  }
@@ -102,7 +102,7 @@ class Request {
102
102
  }
103
103
  }
104
104
 
105
- const response = await Api.sendRequest(`/requests/${params['id']}`, 'DELETE', params, this.options)
105
+ const response = await Api.sendRequest(`/requests/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
106
106
 
107
107
  return response?.data
108
108
  }
@@ -176,7 +176,7 @@ class Request {
176
176
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
177
177
  }
178
178
 
179
- const response = await Api.sendRequest(`/requests/folders/${params['path']}`, 'GET', params, options)
179
+ const response = await Api.sendRequest(`/requests/folders/${encodeURIComponent(params['path'])}`, 'GET', params, options)
180
180
 
181
181
  return response?.data?.map(obj => new Request(obj, options)) || []
182
182
  }
@@ -176,7 +176,7 @@ class SsoStrategy {
176
176
  }
177
177
  }
178
178
 
179
- const response = await Api.sendRequest(`/sso_strategies/${params['id']}/sync`, 'POST', params, this.options)
179
+ const response = await Api.sendRequest(`/sso_strategies/${encodeURIComponent(params['id'])}/sync`, 'POST', params, this.options)
180
180
 
181
181
  return response?.data
182
182
  }
@@ -218,7 +218,7 @@ class SsoStrategy {
218
218
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
219
219
  }
220
220
 
221
- const response = await Api.sendRequest(`/sso_strategies/${params['id']}`, 'GET', params, options)
221
+ const response = await Api.sendRequest(`/sso_strategies/${encodeURIComponent(params['id'])}`, 'GET', params, options)
222
222
 
223
223
  return new SsoStrategy(response?.data, options)
224
224
  }
@@ -91,7 +91,7 @@ class Style {
91
91
  }
92
92
  }
93
93
 
94
- const response = await Api.sendRequest(`/styles/${params['path']}`, 'PATCH', params, this.options)
94
+ const response = await Api.sendRequest(`/styles/${encodeURIComponent(params['path'])}`, 'PATCH', params, this.options)
95
95
 
96
96
  return new Style(response?.data, this.options)
97
97
  }
@@ -118,7 +118,7 @@ class Style {
118
118
  }
119
119
  }
120
120
 
121
- const response = await Api.sendRequest(`/styles/${params['path']}`, 'DELETE', params, this.options)
121
+ const response = await Api.sendRequest(`/styles/${encodeURIComponent(params['path'])}`, 'DELETE', params, this.options)
122
122
 
123
123
  return response?.data
124
124
  }
@@ -146,7 +146,7 @@ class Style {
146
146
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
147
147
  }
148
148
 
149
- const response = await Api.sendRequest(`/styles/${params['path']}`, 'GET', params, options)
149
+ const response = await Api.sendRequest(`/styles/${encodeURIComponent(params['path'])}`, 'GET', params, options)
150
150
 
151
151
  return new Style(response?.data, options)
152
152
  }
@@ -459,7 +459,7 @@ class User {
459
459
  }
460
460
  }
461
461
 
462
- const response = await Api.sendRequest(`/users/${params['id']}/unlock`, 'POST', params, this.options)
462
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}/unlock`, 'POST', params, this.options)
463
463
 
464
464
  return response?.data
465
465
  }
@@ -487,7 +487,7 @@ class User {
487
487
  }
488
488
  }
489
489
 
490
- const response = await Api.sendRequest(`/users/${params['id']}/resend_welcome_email`, 'POST', params, this.options)
490
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}/resend_welcome_email`, 'POST', params, this.options)
491
491
 
492
492
  return response?.data
493
493
  }
@@ -515,7 +515,7 @@ class User {
515
515
  }
516
516
  }
517
517
 
518
- const response = await Api.sendRequest(`/users/${params['id']}/2fa/reset`, 'POST', params, this.options)
518
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}/2fa/reset`, 'POST', params, this.options)
519
519
 
520
520
  return response?.data
521
521
  }
@@ -662,7 +662,7 @@ class User {
662
662
  }
663
663
  }
664
664
 
665
- const response = await Api.sendRequest(`/users/${params['id']}`, 'PATCH', params, this.options)
665
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
666
666
 
667
667
  return new User(response?.data, this.options)
668
668
  }
@@ -689,7 +689,7 @@ class User {
689
689
  }
690
690
  }
691
691
 
692
- const response = await Api.sendRequest(`/users/${params['id']}`, 'DELETE', params, this.options)
692
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
693
693
 
694
694
  return response?.data
695
695
  }
@@ -768,7 +768,7 @@ class User {
768
768
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
769
769
  }
770
770
 
771
- const response = await Api.sendRequest(`/users/${params['id']}`, 'GET', params, options)
771
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}`, 'GET', params, options)
772
772
 
773
773
  return new User(response?.data, options)
774
774
  }
@@ -74,7 +74,7 @@ class UserRequest {
74
74
  }
75
75
  }
76
76
 
77
- const response = await Api.sendRequest(`/user_requests/${params['id']}`, 'DELETE', params, this.options)
77
+ const response = await Api.sendRequest(`/user_requests/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
78
78
 
79
79
  return response?.data
80
80
  }
@@ -129,7 +129,7 @@ class UserRequest {
129
129
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
130
130
  }
131
131
 
132
- const response = await Api.sendRequest(`/user_requests/${params['id']}`, 'GET', params, options)
132
+ const response = await Api.sendRequest(`/user_requests/${encodeURIComponent(params['id'])}`, 'GET', params, options)
133
133
 
134
134
  return new UserRequest(response?.data, options)
135
135
  }