@camunda/camunda-api-zod-schemas 0.0.52 → 0.0.53

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/8.8/group.js CHANGED
@@ -15,7 +15,7 @@ const getGroup = {
15
15
  method: "GET",
16
16
  getUrl(params) {
17
17
  const { groupId } = params;
18
- return `/${API_VERSION}/groups/${groupId}`;
18
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}`;
19
19
  }
20
20
  };
21
21
  const getGroupResponseBodySchema = groupSchema;
@@ -28,14 +28,14 @@ const updateGroup = {
28
28
  method: "PUT",
29
29
  getUrl(params) {
30
30
  const { groupId } = params;
31
- return `/${API_VERSION}/groups/${groupId}`;
31
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}`;
32
32
  }
33
33
  };
34
34
  const deleteGroup = {
35
35
  method: "DELETE",
36
36
  getUrl(params) {
37
37
  const { groupId } = params;
38
- return `/${API_VERSION}/groups/${groupId}`;
38
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}`;
39
39
  }
40
40
  };
41
41
  const queryGroupsRequestBodySchema = getQueryRequestBodySchema({
@@ -61,7 +61,7 @@ const queryUsersByGroup = {
61
61
  method: "POST",
62
62
  getUrl(params) {
63
63
  const { groupId } = params;
64
- return `/${API_VERSION}/groups/${groupId}/users/search`;
64
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/users/search`;
65
65
  }
66
66
  };
67
67
  const queryClientsByGroupRequestBodySchema = getQueryRequestBodySchema({
@@ -77,7 +77,7 @@ const queryClientsByGroup = {
77
77
  method: "POST",
78
78
  getUrl(params) {
79
79
  const { groupId } = params;
80
- return `/${API_VERSION}/groups/${groupId}/clients/search`;
80
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/clients/search`;
81
81
  }
82
82
  };
83
83
  const queryRolesByGroupRequestBodySchema = getQueryRequestBodySchema({
@@ -92,7 +92,7 @@ const queryRolesByGroup = {
92
92
  method: "POST",
93
93
  getUrl(params) {
94
94
  const { groupId } = params;
95
- return `/${API_VERSION}/groups/${groupId}/roles/search`;
95
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/roles/search`;
96
96
  }
97
97
  };
98
98
  const queryMappingRulesByGroupRequestBodySchema = getQueryRequestBodySchema({
@@ -108,49 +108,49 @@ const queryMappingRulesByGroup = {
108
108
  method: "POST",
109
109
  getUrl(params) {
110
110
  const { groupId } = params;
111
- return `/${API_VERSION}/groups/${groupId}/mapping-rules/search`;
111
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/mapping-rules/search`;
112
112
  }
113
113
  };
114
114
  const assignUserToGroup = {
115
115
  method: "PUT",
116
116
  getUrl(params) {
117
117
  const { groupId, username } = params;
118
- return `/${API_VERSION}/groups/${groupId}/users/${username}`;
118
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/users/${encodeURIComponent(username)}`;
119
119
  }
120
120
  };
121
121
  const unassignUserFromGroup = {
122
122
  method: "DELETE",
123
123
  getUrl(params) {
124
124
  const { groupId, username } = params;
125
- return `/${API_VERSION}/groups/${groupId}/users/${username}`;
125
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/users/${encodeURIComponent(username)}`;
126
126
  }
127
127
  };
128
128
  const assignClientToGroup = {
129
129
  method: "PUT",
130
130
  getUrl(params) {
131
131
  const { groupId, clientId } = params;
132
- return `/${API_VERSION}/groups/${groupId}/clients/${clientId}`;
132
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/clients/${encodeURIComponent(clientId)}`;
133
133
  }
134
134
  };
135
135
  const unassignClientFromGroup = {
136
136
  method: "DELETE",
137
137
  getUrl(params) {
138
138
  const { groupId, clientId } = params;
139
- return `/${API_VERSION}/groups/${groupId}/clients/${clientId}`;
139
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/clients/${encodeURIComponent(clientId)}`;
140
140
  }
141
141
  };
142
142
  const assignMappingToGroup = {
143
143
  method: "PUT",
144
144
  getUrl(params) {
145
145
  const { groupId, mappingRuleId } = params;
146
- return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
146
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`;
147
147
  }
148
148
  };
149
149
  const unassignMappingFromGroup = {
150
150
  method: "DELETE",
151
151
  getUrl(params) {
152
152
  const { groupId, mappingRuleId } = params;
153
- return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
153
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`;
154
154
  }
155
155
  };
156
156
  export {
package/dist/8.8/role.js CHANGED
@@ -59,21 +59,21 @@ const getRole = {
59
59
  method: "GET",
60
60
  getUrl(params) {
61
61
  const { roleId } = params;
62
- return `/${API_VERSION}/roles/${roleId}`;
62
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}`;
63
63
  }
64
64
  };
65
65
  const updateRole = {
66
66
  method: "PUT",
67
67
  getUrl(params) {
68
68
  const { roleId } = params;
69
- return `/${API_VERSION}/roles/${roleId}`;
69
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}`;
70
70
  }
71
71
  };
72
72
  const deleteRole = {
73
73
  method: "DELETE",
74
74
  getUrl(params) {
75
75
  const { roleId } = params;
76
- return `/${API_VERSION}/roles/${roleId}`;
76
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}`;
77
77
  }
78
78
  };
79
79
  const queryRoles = {
@@ -86,84 +86,84 @@ const queryUsersByRole = {
86
86
  method: "POST",
87
87
  getUrl(params) {
88
88
  const { roleId } = params;
89
- return `/${API_VERSION}/roles/${roleId}/users/search`;
89
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/users/search`;
90
90
  }
91
91
  };
92
92
  const queryClientsByRole = {
93
93
  method: "POST",
94
94
  getUrl(params) {
95
95
  const { roleId } = params;
96
- return `/${API_VERSION}/roles/${roleId}/clients/search`;
96
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/clients/search`;
97
97
  }
98
98
  };
99
99
  const assignUserToRole = {
100
100
  method: "PUT",
101
101
  getUrl(params) {
102
102
  const { roleId, username } = params;
103
- return `/${API_VERSION}/roles/${roleId}/users/${username}`;
103
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/users/${encodeURIComponent(username)}`;
104
104
  }
105
105
  };
106
106
  const unassignUserFromRole = {
107
107
  method: "DELETE",
108
108
  getUrl(params) {
109
109
  const { roleId, username } = params;
110
- return `/${API_VERSION}/roles/${roleId}/users/${username}`;
110
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/users/${encodeURIComponent(username)}`;
111
111
  }
112
112
  };
113
113
  const assignClientToRole = {
114
114
  method: "PUT",
115
115
  getUrl(params) {
116
116
  const { roleId, clientId } = params;
117
- return `/${API_VERSION}/roles/${roleId}/clients/${clientId}`;
117
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/clients/${encodeURIComponent(clientId)}`;
118
118
  }
119
119
  };
120
120
  const unassignClientFromRole = {
121
121
  method: "DELETE",
122
122
  getUrl(params) {
123
123
  const { roleId, clientId } = params;
124
- return `/${API_VERSION}/roles/${roleId}/clients/${clientId}`;
124
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/clients/${encodeURIComponent(clientId)}`;
125
125
  }
126
126
  };
127
127
  const assignGroupToRole = {
128
128
  method: "PUT",
129
129
  getUrl(params) {
130
130
  const { roleId, groupId } = params;
131
- return `/${API_VERSION}/roles/${roleId}/groups/${groupId}`;
131
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/groups/${encodeURIComponent(groupId)}`;
132
132
  }
133
133
  };
134
134
  const unassignGroupFromRole = {
135
135
  method: "DELETE",
136
136
  getUrl(params) {
137
137
  const { roleId, groupId } = params;
138
- return `/${API_VERSION}/roles/${roleId}/groups/${groupId}`;
138
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/groups/${encodeURIComponent(groupId)}`;
139
139
  }
140
140
  };
141
141
  const queryGroupsByRole = {
142
142
  method: "POST",
143
143
  getUrl(params) {
144
144
  const { roleId } = params;
145
- return `/${API_VERSION}/roles/${roleId}/groups/search`;
145
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/groups/search`;
146
146
  }
147
147
  };
148
148
  const assignMappingToRole = {
149
149
  method: "PUT",
150
150
  getUrl(params) {
151
151
  const { roleId, mappingRuleId } = params;
152
- return `/${API_VERSION}/roles/${roleId}/mappings/${mappingRuleId}`;
152
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/mappings/${encodeURIComponent(mappingRuleId)}`;
153
153
  }
154
154
  };
155
155
  const unassignMappingFromRole = {
156
156
  method: "DELETE",
157
157
  getUrl(params) {
158
158
  const { roleId, mappingRuleId } = params;
159
- return `/${API_VERSION}/roles/${roleId}/mappings/${mappingRuleId}`;
159
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/mappings/${encodeURIComponent(mappingRuleId)}`;
160
160
  }
161
161
  };
162
162
  const queryMappingRulesByRole = {
163
163
  method: "POST",
164
164
  getUrl(params) {
165
165
  const { roleId } = params;
166
- return `/${API_VERSION}/roles/${roleId}/mapping-rules/search`;
166
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/mapping-rules/search`;
167
167
  }
168
168
  };
169
169
  export {
@@ -56,15 +56,15 @@ const createTenant = {
56
56
  };
57
57
  const getTenant = {
58
58
  method: "GET",
59
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}`
59
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}`
60
60
  };
61
61
  const updateTenant = {
62
62
  method: "PUT",
63
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}`
63
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}`
64
64
  };
65
65
  const deleteTenant = {
66
66
  method: "DELETE",
67
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}`
67
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}`
68
68
  };
69
69
  const queryTenants = {
70
70
  method: "POST",
@@ -72,63 +72,63 @@ const queryTenants = {
72
72
  };
73
73
  const assignUserToTenant = {
74
74
  method: "PUT",
75
- getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${tenantId}/users/${username}`
75
+ getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/users/${encodeURIComponent(username)}`
76
76
  };
77
77
  const unassignUserFromTenant = {
78
78
  method: "DELETE",
79
- getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${tenantId}/users/${username}`
79
+ getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/users/${encodeURIComponent(username)}`
80
80
  };
81
81
  const queryUsersByTenant = {
82
82
  method: "POST",
83
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/users/search`
83
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/users/search`
84
84
  };
85
85
  const queryClientsByTenant = {
86
86
  method: "POST",
87
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/clients/search`
87
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/clients/search`
88
88
  };
89
89
  const queryGroupsByTenant = {
90
90
  method: "POST",
91
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/groups/search`
91
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/groups/search`
92
92
  };
93
93
  const queryRolesByTenant = {
94
94
  method: "POST",
95
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/roles/search`
95
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/roles/search`
96
96
  };
97
97
  const assignClientToTenant = {
98
98
  method: "PUT",
99
- getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${tenantId}/clients/${clientId}`
99
+ getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/clients/${encodeURIComponent(clientId)}`
100
100
  };
101
101
  const unassignClientFromTenant = {
102
102
  method: "DELETE",
103
- getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${tenantId}/clients/${clientId}`
103
+ getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/clients/${encodeURIComponent(clientId)}`
104
104
  };
105
105
  const assignMappingRuleToTenant = {
106
106
  method: "PUT",
107
- getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mappings/${mappingRuleId}`
107
+ getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/mappings/${encodeURIComponent(mappingRuleId)}`
108
108
  };
109
109
  const unassignMappingRuleFromTenant = {
110
110
  method: "DELETE",
111
- getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mappings/${mappingRuleId}`
111
+ getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/mappings/${encodeURIComponent(mappingRuleId)}`
112
112
  };
113
113
  const queryMappingRulesByTenant = {
114
114
  method: "POST",
115
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/mappings/search`
115
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/mappings/search`
116
116
  };
117
117
  const assignGroupToTenant = {
118
118
  method: "PUT",
119
- getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${tenantId}/groups/${groupId}`
119
+ getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/groups/${encodeURIComponent(groupId)}`
120
120
  };
121
121
  const unassignGroupFromTenant = {
122
122
  method: "DELETE",
123
- getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${tenantId}/groups/${groupId}`
123
+ getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/groups/${encodeURIComponent(groupId)}`
124
124
  };
125
125
  const assignRoleToTenant = {
126
126
  method: "PUT",
127
- getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${tenantId}/roles/${roleId}`
127
+ getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/roles/${encodeURIComponent(roleId)}`
128
128
  };
129
129
  const unassignRoleFromTenant = {
130
130
  method: "DELETE",
131
- getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${tenantId}/roles/${roleId}`
131
+ getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/roles/${encodeURIComponent(roleId)}`
132
132
  };
133
133
  export {
134
134
  assignClientToTenant,
@@ -135,7 +135,7 @@ const queryVariablesByUserTaskRequestBodySchema = getQueryRequestBodySchema({
135
135
  const queryVariablesByUserTaskResponseBodySchema = getQueryResponseBodySchema(variableSchema);
136
136
  const queryVariablesByUserTask = {
137
137
  method: "POST",
138
- getUrl: ({ userTaskKey, truncateValues }) => `/${API_VERSION}/user-tasks/${userTaskKey}/variables/search${truncateValues !== void 0 ? `?truncateValues=${truncateValues}` : ""}`
138
+ getUrl: ({ userTaskKey, truncateValues }) => `/${API_VERSION}/user-tasks/${userTaskKey}/effective-variables/search${truncateValues !== void 0 ? `?truncateValues=${truncateValues}` : ""}`
139
139
  };
140
140
  export {
141
141
  assignTask,
package/dist/8.9/group.js CHANGED
@@ -15,7 +15,7 @@ const getGroup = {
15
15
  method: "GET",
16
16
  getUrl(params) {
17
17
  const { groupId } = params;
18
- return `/${API_VERSION}/groups/${groupId}`;
18
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}`;
19
19
  }
20
20
  };
21
21
  const getGroupResponseBodySchema = groupSchema;
@@ -28,14 +28,14 @@ const updateGroup = {
28
28
  method: "PUT",
29
29
  getUrl(params) {
30
30
  const { groupId } = params;
31
- return `/${API_VERSION}/groups/${groupId}`;
31
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}`;
32
32
  }
33
33
  };
34
34
  const deleteGroup = {
35
35
  method: "DELETE",
36
36
  getUrl(params) {
37
37
  const { groupId } = params;
38
- return `/${API_VERSION}/groups/${groupId}`;
38
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}`;
39
39
  }
40
40
  };
41
41
  const queryGroupsRequestBodySchema = getQueryRequestBodySchema({
@@ -61,7 +61,7 @@ const queryUsersByGroup = {
61
61
  method: "POST",
62
62
  getUrl(params) {
63
63
  const { groupId } = params;
64
- return `/${API_VERSION}/groups/${groupId}/users/search`;
64
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/users/search`;
65
65
  }
66
66
  };
67
67
  const queryClientsByGroupRequestBodySchema = getQueryRequestBodySchema({
@@ -77,7 +77,7 @@ const queryClientsByGroup = {
77
77
  method: "POST",
78
78
  getUrl(params) {
79
79
  const { groupId } = params;
80
- return `/${API_VERSION}/groups/${groupId}/clients/search`;
80
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/clients/search`;
81
81
  }
82
82
  };
83
83
  const queryRolesByGroupRequestBodySchema = getQueryRequestBodySchema({
@@ -92,7 +92,7 @@ const queryRolesByGroup = {
92
92
  method: "POST",
93
93
  getUrl(params) {
94
94
  const { groupId } = params;
95
- return `/${API_VERSION}/groups/${groupId}/roles/search`;
95
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/roles/search`;
96
96
  }
97
97
  };
98
98
  const queryMappingRulesByGroupRequestBodySchema = getQueryRequestBodySchema({
@@ -108,49 +108,49 @@ const queryMappingRulesByGroup = {
108
108
  method: "POST",
109
109
  getUrl(params) {
110
110
  const { groupId } = params;
111
- return `/${API_VERSION}/groups/${groupId}/mapping-rules/search`;
111
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/mapping-rules/search`;
112
112
  }
113
113
  };
114
114
  const assignUserToGroup = {
115
115
  method: "PUT",
116
116
  getUrl(params) {
117
117
  const { groupId, username } = params;
118
- return `/${API_VERSION}/groups/${groupId}/users/${username}`;
118
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/users/${encodeURIComponent(username)}`;
119
119
  }
120
120
  };
121
121
  const unassignUserFromGroup = {
122
122
  method: "DELETE",
123
123
  getUrl(params) {
124
124
  const { groupId, username } = params;
125
- return `/${API_VERSION}/groups/${groupId}/users/${username}`;
125
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/users/${encodeURIComponent(username)}`;
126
126
  }
127
127
  };
128
128
  const assignClientToGroup = {
129
129
  method: "PUT",
130
130
  getUrl(params) {
131
131
  const { groupId, clientId } = params;
132
- return `/${API_VERSION}/groups/${groupId}/clients/${clientId}`;
132
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/clients/${encodeURIComponent(clientId)}`;
133
133
  }
134
134
  };
135
135
  const unassignClientFromGroup = {
136
136
  method: "DELETE",
137
137
  getUrl(params) {
138
138
  const { groupId, clientId } = params;
139
- return `/${API_VERSION}/groups/${groupId}/clients/${clientId}`;
139
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/clients/${encodeURIComponent(clientId)}`;
140
140
  }
141
141
  };
142
142
  const assignMappingToGroup = {
143
143
  method: "PUT",
144
144
  getUrl(params) {
145
145
  const { groupId, mappingRuleId } = params;
146
- return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
146
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`;
147
147
  }
148
148
  };
149
149
  const unassignMappingFromGroup = {
150
150
  method: "DELETE",
151
151
  getUrl(params) {
152
152
  const { groupId, mappingRuleId } = params;
153
- return `/${API_VERSION}/groups/${groupId}/mapping-rules/${mappingRuleId}`;
153
+ return `/${API_VERSION}/groups/${encodeURIComponent(groupId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`;
154
154
  }
155
155
  };
156
156
  export {
package/dist/8.9/role.js CHANGED
@@ -60,21 +60,21 @@ const getRole = {
60
60
  method: "GET",
61
61
  getUrl(params) {
62
62
  const { roleId } = params;
63
- return `/${API_VERSION}/roles/${roleId}`;
63
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}`;
64
64
  }
65
65
  };
66
66
  const updateRole = {
67
67
  method: "PUT",
68
68
  getUrl(params) {
69
69
  const { roleId } = params;
70
- return `/${API_VERSION}/roles/${roleId}`;
70
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}`;
71
71
  }
72
72
  };
73
73
  const deleteRole = {
74
74
  method: "DELETE",
75
75
  getUrl(params) {
76
76
  const { roleId } = params;
77
- return `/${API_VERSION}/roles/${roleId}`;
77
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}`;
78
78
  }
79
79
  };
80
80
  const queryRoles = {
@@ -87,84 +87,84 @@ const queryUsersByRole = {
87
87
  method: "POST",
88
88
  getUrl(params) {
89
89
  const { roleId } = params;
90
- return `/${API_VERSION}/roles/${roleId}/users/search`;
90
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/users/search`;
91
91
  }
92
92
  };
93
93
  const queryClientsByRole = {
94
94
  method: "POST",
95
95
  getUrl(params) {
96
96
  const { roleId } = params;
97
- return `/${API_VERSION}/roles/${roleId}/clients/search`;
97
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/clients/search`;
98
98
  }
99
99
  };
100
100
  const assignUserToRole = {
101
101
  method: "PUT",
102
102
  getUrl(params) {
103
103
  const { roleId, username } = params;
104
- return `/${API_VERSION}/roles/${roleId}/users/${username}`;
104
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/users/${encodeURIComponent(username)}`;
105
105
  }
106
106
  };
107
107
  const unassignUserFromRole = {
108
108
  method: "DELETE",
109
109
  getUrl(params) {
110
110
  const { roleId, username } = params;
111
- return `/${API_VERSION}/roles/${roleId}/users/${username}`;
111
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/users/${encodeURIComponent(username)}`;
112
112
  }
113
113
  };
114
114
  const assignClientToRole = {
115
115
  method: "PUT",
116
116
  getUrl(params) {
117
117
  const { roleId, clientId } = params;
118
- return `/${API_VERSION}/roles/${roleId}/clients/${clientId}`;
118
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/clients/${encodeURIComponent(clientId)}`;
119
119
  }
120
120
  };
121
121
  const unassignClientFromRole = {
122
122
  method: "DELETE",
123
123
  getUrl(params) {
124
124
  const { roleId, clientId } = params;
125
- return `/${API_VERSION}/roles/${roleId}/clients/${clientId}`;
125
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/clients/${encodeURIComponent(clientId)}`;
126
126
  }
127
127
  };
128
128
  const assignGroupToRole = {
129
129
  method: "PUT",
130
130
  getUrl(params) {
131
131
  const { roleId, groupId } = params;
132
- return `/${API_VERSION}/roles/${roleId}/groups/${groupId}`;
132
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/groups/${encodeURIComponent(groupId)}`;
133
133
  }
134
134
  };
135
135
  const unassignGroupFromRole = {
136
136
  method: "DELETE",
137
137
  getUrl(params) {
138
138
  const { roleId, groupId } = params;
139
- return `/${API_VERSION}/roles/${roleId}/groups/${groupId}`;
139
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/groups/${encodeURIComponent(groupId)}`;
140
140
  }
141
141
  };
142
142
  const queryGroupsByRole = {
143
143
  method: "POST",
144
144
  getUrl(params) {
145
145
  const { roleId } = params;
146
- return `/${API_VERSION}/roles/${roleId}/groups/search`;
146
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/groups/search`;
147
147
  }
148
148
  };
149
149
  const assignMappingToRole = {
150
150
  method: "PUT",
151
151
  getUrl(params) {
152
152
  const { roleId, mappingRuleId } = params;
153
- return `/${API_VERSION}/roles/${roleId}/mapping-rules/${mappingRuleId}`;
153
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`;
154
154
  }
155
155
  };
156
156
  const unassignMappingFromRole = {
157
157
  method: "DELETE",
158
158
  getUrl(params) {
159
159
  const { roleId, mappingRuleId } = params;
160
- return `/${API_VERSION}/roles/${roleId}/mapping-rules/${mappingRuleId}`;
160
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`;
161
161
  }
162
162
  };
163
163
  const queryMappingRulesByRole = {
164
164
  method: "POST",
165
165
  getUrl(params) {
166
166
  const { roleId } = params;
167
- return `/${API_VERSION}/roles/${roleId}/mapping-rules/search`;
167
+ return `/${API_VERSION}/roles/${encodeURIComponent(roleId)}/mapping-rules/search`;
168
168
  }
169
169
  };
170
170
  export {
@@ -63,15 +63,15 @@ const createTenant = {
63
63
  };
64
64
  const getTenant = {
65
65
  method: "GET",
66
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}`
66
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}`
67
67
  };
68
68
  const updateTenant = {
69
69
  method: "PUT",
70
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}`
70
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}`
71
71
  };
72
72
  const deleteTenant = {
73
73
  method: "DELETE",
74
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}`
74
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}`
75
75
  };
76
76
  const queryTenants = {
77
77
  method: "POST",
@@ -79,63 +79,63 @@ const queryTenants = {
79
79
  };
80
80
  const assignUserToTenant = {
81
81
  method: "PUT",
82
- getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${tenantId}/users/${username}`
82
+ getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/users/${encodeURIComponent(username)}`
83
83
  };
84
84
  const unassignUserFromTenant = {
85
85
  method: "DELETE",
86
- getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${tenantId}/users/${username}`
86
+ getUrl: ({ tenantId, username }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/users/${encodeURIComponent(username)}`
87
87
  };
88
88
  const queryUsersByTenant = {
89
89
  method: "POST",
90
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/users/search`
90
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/users/search`
91
91
  };
92
92
  const queryClientsByTenant = {
93
93
  method: "POST",
94
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/clients/search`
94
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/clients/search`
95
95
  };
96
96
  const queryGroupsByTenant = {
97
97
  method: "POST",
98
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/groups/search`
98
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/groups/search`
99
99
  };
100
100
  const queryRolesByTenant = {
101
101
  method: "POST",
102
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/roles/search`
102
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/roles/search`
103
103
  };
104
104
  const assignClientToTenant = {
105
105
  method: "PUT",
106
- getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${tenantId}/clients/${clientId}`
106
+ getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/clients/${encodeURIComponent(clientId)}`
107
107
  };
108
108
  const unassignClientFromTenant = {
109
109
  method: "DELETE",
110
- getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${tenantId}/clients/${clientId}`
110
+ getUrl: ({ tenantId, clientId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/clients/${encodeURIComponent(clientId)}`
111
111
  };
112
112
  const assignMappingRuleToTenant = {
113
113
  method: "PUT",
114
- getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mapping-rules/${mappingRuleId}`
114
+ getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`
115
115
  };
116
116
  const unassignMappingRuleFromTenant = {
117
117
  method: "DELETE",
118
- getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${tenantId}/mapping-rules/${mappingRuleId}`
118
+ getUrl: ({ tenantId, mappingRuleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/mapping-rules/${encodeURIComponent(mappingRuleId)}`
119
119
  };
120
120
  const queryMappingRulesByTenant = {
121
121
  method: "POST",
122
- getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${tenantId}/mapping-rules/search`
122
+ getUrl: ({ tenantId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/mapping-rules/search`
123
123
  };
124
124
  const assignGroupToTenant = {
125
125
  method: "PUT",
126
- getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${tenantId}/groups/${groupId}`
126
+ getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/groups/${encodeURIComponent(groupId)}`
127
127
  };
128
128
  const unassignGroupFromTenant = {
129
129
  method: "DELETE",
130
- getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${tenantId}/groups/${groupId}`
130
+ getUrl: ({ tenantId, groupId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/groups/${encodeURIComponent(groupId)}`
131
131
  };
132
132
  const assignRoleToTenant = {
133
133
  method: "PUT",
134
- getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${tenantId}/roles/${roleId}`
134
+ getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/roles/${encodeURIComponent(roleId)}`
135
135
  };
136
136
  const unassignRoleFromTenant = {
137
137
  method: "DELETE",
138
- getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${tenantId}/roles/${roleId}`
138
+ getUrl: ({ tenantId, roleId }) => `/${API_VERSION}/tenants/${encodeURIComponent(tenantId)}/roles/${encodeURIComponent(roleId)}`
139
139
  };
140
140
  export {
141
141
  assignClientToTenant,
@@ -137,7 +137,7 @@ const queryVariablesByUserTaskRequestBodySchema = getQueryRequestBodySchema({
137
137
  const queryVariablesByUserTaskResponseBodySchema = getQueryResponseBodySchema(variableSchema);
138
138
  const queryVariablesByUserTask = {
139
139
  method: "POST",
140
- getUrl: ({ userTaskKey, truncateValues }) => `/${API_VERSION}/user-tasks/${userTaskKey}/variables/search${truncateValues !== void 0 ? `?truncateValues=${truncateValues}` : ""}`
140
+ getUrl: ({ userTaskKey, truncateValues }) => `/${API_VERSION}/user-tasks/${userTaskKey}/effective-variables/search${truncateValues !== void 0 ? `?truncateValues=${truncateValues}` : ""}`
141
141
  };
142
142
  export {
143
143
  assignTask,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-api-zod-schemas",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "license": "LicenseRef-Camunda-1.0",
5
5
  "description": "Zod schemas and TypeScript types for Camunda 8 unified API",
6
6
  "author": "Vinicius Goulart <vinicius.goulart@camunda.com>",
@@ -395,9 +395,9 @@
395
395
  "publishConfig": {
396
396
  "access": "public"
397
397
  },
398
- "packageManager": "npm@11.11.0",
398
+ "packageManager": "npm@11.11.1",
399
399
  "devDependencies": {
400
- "@types/node": "25.3.3",
400
+ "@types/node": "25.5.0",
401
401
  "changelogen": "0.6.2",
402
402
  "typescript": "5.9.3",
403
403
  "vite": "7.3.1",