@doist/todoist-sdk 9.1.3 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/clients/app-client.js +24 -25
- package/dist/cjs/clients/comment-client.js +3 -3
- package/dist/cjs/clients/folder-client.js +3 -3
- package/dist/cjs/clients/insights-client.js +6 -6
- package/dist/cjs/clients/label-client.js +3 -3
- package/dist/cjs/clients/project-client.js +8 -8
- package/dist/cjs/clients/section-client.js +5 -5
- package/dist/cjs/clients/task-client.js +6 -6
- package/dist/cjs/clients/ui-extension-client.js +4 -4
- package/dist/cjs/clients/workspace-client.js +3 -3
- package/dist/cjs/test-utils/test-defaults.js +1 -0
- package/dist/cjs/types/apps/types.js +1 -0
- package/dist/esm/clients/app-client.js +24 -25
- package/dist/esm/clients/comment-client.js +3 -3
- package/dist/esm/clients/folder-client.js +3 -3
- package/dist/esm/clients/insights-client.js +6 -6
- package/dist/esm/clients/label-client.js +3 -3
- package/dist/esm/clients/project-client.js +8 -8
- package/dist/esm/clients/section-client.js +5 -5
- package/dist/esm/clients/task-client.js +6 -6
- package/dist/esm/clients/ui-extension-client.js +4 -4
- package/dist/esm/clients/workspace-client.js +3 -3
- package/dist/esm/test-utils/test-defaults.js +1 -0
- package/dist/esm/types/apps/types.js +1 -0
- package/dist/types/clients/app-client.d.ts +1 -1
- package/dist/types/types/apps/types.d.ts +4 -0
- package/dist/types/utils/validators.d.ts +5 -0
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
41
41
|
return (0, validators_1.validateAppArray)(response.data);
|
|
42
42
|
}
|
|
43
43
|
async getApp(appId, requestId) {
|
|
44
|
-
zod_1.z.string().parse(appId);
|
|
44
|
+
zod_1.z.string().min(1).parse(appId);
|
|
45
45
|
const response = await (0, http_client_1.request)({
|
|
46
46
|
httpMethod: 'GET',
|
|
47
47
|
baseUri: this.apiRootBase,
|
|
@@ -65,7 +65,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
65
65
|
return (0, validators_1.validateApp)(response.data);
|
|
66
66
|
}
|
|
67
67
|
async updateApp(appId, args, requestId) {
|
|
68
|
-
zod_1.z.string().parse(appId);
|
|
68
|
+
zod_1.z.string().min(1).parse(appId);
|
|
69
69
|
const { appTokenScopes } = args, rest = __rest(args, ["appTokenScopes"]);
|
|
70
70
|
const payload = Object.assign({}, rest);
|
|
71
71
|
if (appTokenScopes !== undefined) {
|
|
@@ -83,7 +83,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
83
83
|
return (0, validators_1.validateAppWithUserCount)(response.data);
|
|
84
84
|
}
|
|
85
85
|
async deleteApp(appId, requestId) {
|
|
86
|
-
zod_1.z.string().parse(appId);
|
|
86
|
+
zod_1.z.string().min(1).parse(appId);
|
|
87
87
|
const response = await (0, http_client_1.request)({
|
|
88
88
|
httpMethod: 'DELETE',
|
|
89
89
|
baseUri: this.apiRootBase,
|
|
@@ -95,7 +95,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
95
95
|
return (0, http_client_1.isSuccess)(response);
|
|
96
96
|
}
|
|
97
97
|
async getAppSecrets(appId, requestId) {
|
|
98
|
-
zod_1.z.string().parse(appId);
|
|
98
|
+
zod_1.z.string().min(1).parse(appId);
|
|
99
99
|
const response = await (0, http_client_1.request)({
|
|
100
100
|
httpMethod: 'GET',
|
|
101
101
|
baseUri: this.apiRootBase,
|
|
@@ -107,7 +107,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
107
107
|
return (0, validators_1.validateAppSecrets)(response.data);
|
|
108
108
|
}
|
|
109
109
|
async resetAppClientSecret(appId, requestId) {
|
|
110
|
-
zod_1.z.string().parse(appId);
|
|
110
|
+
zod_1.z.string().min(1).parse(appId);
|
|
111
111
|
const response = await (0, http_client_1.request)({
|
|
112
112
|
httpMethod: 'DELETE',
|
|
113
113
|
baseUri: this.apiRootBase,
|
|
@@ -119,7 +119,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
119
119
|
return (0, validators_1.validateAppWithUserCount)(response.data);
|
|
120
120
|
}
|
|
121
121
|
async revokeAppTokens(appId, requestId) {
|
|
122
|
-
zod_1.z.string().parse(appId);
|
|
122
|
+
zod_1.z.string().min(1).parse(appId);
|
|
123
123
|
const response = await (0, http_client_1.request)({
|
|
124
124
|
httpMethod: 'DELETE',
|
|
125
125
|
baseUri: this.apiRootBase,
|
|
@@ -130,26 +130,25 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
130
130
|
});
|
|
131
131
|
return (0, validators_1.validateAppWithUserCount)(response.data);
|
|
132
132
|
}
|
|
133
|
-
async uploadAppIcon(
|
|
134
|
-
|
|
135
|
-
if (Buffer.isBuffer(
|
|
133
|
+
async uploadAppIcon({ appId, file, fileName = '', size = 'medium' }, requestId) {
|
|
134
|
+
zod_1.z.string().min(1).parse(appId);
|
|
135
|
+
if (Buffer.isBuffer(file) && file.length === 0) {
|
|
136
136
|
throw new Error('Cannot upload empty image file');
|
|
137
137
|
}
|
|
138
|
-
const size = (_a = args.size) !== null && _a !== void 0 ? _a : 'medium';
|
|
139
138
|
const data = await (0, multipart_upload_1.uploadMultipartFile)({
|
|
140
139
|
baseUrl: this.apiRootBase,
|
|
141
140
|
authToken: this.authToken,
|
|
142
|
-
endpoint: (0, endpoints_1.getAppIconEndpoint)(
|
|
143
|
-
file
|
|
144
|
-
fileName
|
|
145
|
-
additionalFields: { file_name:
|
|
141
|
+
endpoint: (0, endpoints_1.getAppIconEndpoint)(appId, size),
|
|
142
|
+
file,
|
|
143
|
+
fileName,
|
|
144
|
+
additionalFields: { file_name: fileName },
|
|
146
145
|
requestId: requestId,
|
|
147
146
|
customFetch: this.customFetch,
|
|
148
147
|
});
|
|
149
148
|
return (0, validators_1.validateAppWithUserCount)((0, case_conversion_1.camelCaseKeys)(data));
|
|
150
149
|
}
|
|
151
150
|
async getAppTestToken(appId, requestId) {
|
|
152
|
-
zod_1.z.string().parse(appId);
|
|
151
|
+
zod_1.z.string().min(1).parse(appId);
|
|
153
152
|
const response = await (0, http_client_1.request)({
|
|
154
153
|
httpMethod: 'GET',
|
|
155
154
|
baseUri: this.apiRootBase,
|
|
@@ -161,7 +160,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
161
160
|
return (0, validators_1.validateAppTestToken)(response.data);
|
|
162
161
|
}
|
|
163
162
|
async createAppTestToken(appId, requestId) {
|
|
164
|
-
zod_1.z.string().parse(appId);
|
|
163
|
+
zod_1.z.string().min(1).parse(appId);
|
|
165
164
|
const response = await (0, http_client_1.request)({
|
|
166
165
|
httpMethod: 'PUT',
|
|
167
166
|
baseUri: this.apiRootBase,
|
|
@@ -173,7 +172,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
173
172
|
return (0, validators_1.validateAppTestToken)(response.data);
|
|
174
173
|
}
|
|
175
174
|
async getAppDistributionToken(appId, requestId) {
|
|
176
|
-
zod_1.z.string().parse(appId);
|
|
175
|
+
zod_1.z.string().min(1).parse(appId);
|
|
177
176
|
const response = await (0, http_client_1.request)({
|
|
178
177
|
httpMethod: 'GET',
|
|
179
178
|
baseUri: this.apiRootBase,
|
|
@@ -185,7 +184,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
185
184
|
return (0, validators_1.validateAppDistributionToken)(response.data);
|
|
186
185
|
}
|
|
187
186
|
async getAppVerificationToken(appId, requestId) {
|
|
188
|
-
zod_1.z.string().parse(appId);
|
|
187
|
+
zod_1.z.string().min(1).parse(appId);
|
|
189
188
|
const response = await (0, http_client_1.request)({
|
|
190
189
|
httpMethod: 'GET',
|
|
191
190
|
baseUri: this.apiRootBase,
|
|
@@ -197,7 +196,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
197
196
|
return (0, validators_1.validateAppVerificationToken)(response.data);
|
|
198
197
|
}
|
|
199
198
|
async resetAppVerificationToken(appId, requestId) {
|
|
200
|
-
zod_1.z.string().parse(appId);
|
|
199
|
+
zod_1.z.string().min(1).parse(appId);
|
|
201
200
|
const response = await (0, http_client_1.request)({
|
|
202
201
|
httpMethod: 'DELETE',
|
|
203
202
|
baseUri: this.apiRootBase,
|
|
@@ -209,7 +208,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
209
208
|
return (0, validators_1.validateAppVerificationToken)(response.data);
|
|
210
209
|
}
|
|
211
210
|
async getAppByDistributionToken(distributionToken, requestId) {
|
|
212
|
-
zod_1.z.string().parse(distributionToken);
|
|
211
|
+
zod_1.z.string().min(1).parse(distributionToken);
|
|
213
212
|
const response = await (0, http_client_1.request)({
|
|
214
213
|
httpMethod: 'GET',
|
|
215
214
|
baseUri: this.apiRootBase,
|
|
@@ -222,7 +221,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
222
221
|
}
|
|
223
222
|
// --- App webhooks ---
|
|
224
223
|
async getAppWebhook(appId, requestId) {
|
|
225
|
-
zod_1.z.string().parse(appId);
|
|
224
|
+
zod_1.z.string().min(1).parse(appId);
|
|
226
225
|
const response = await (0, http_client_1.request)({
|
|
227
226
|
httpMethod: 'GET',
|
|
228
227
|
baseUri: this.apiRootBase,
|
|
@@ -247,7 +246,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
247
246
|
return (0, validators_1.validateAppWebhook)(response.data);
|
|
248
247
|
}
|
|
249
248
|
async deleteAppWebhook(appId, requestId) {
|
|
250
|
-
zod_1.z.string().parse(appId);
|
|
249
|
+
zod_1.z.string().min(1).parse(appId);
|
|
251
250
|
const response = await (0, http_client_1.request)({
|
|
252
251
|
httpMethod: 'DELETE',
|
|
253
252
|
baseUri: this.apiRootBase,
|
|
@@ -283,7 +282,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
283
282
|
return (0, validators_1.validateAppInstallation)(response.data);
|
|
284
283
|
}
|
|
285
284
|
async getAppInstallation(installationId, requestId) {
|
|
286
|
-
zod_1.z.string().parse(installationId);
|
|
285
|
+
zod_1.z.string().min(1).parse(installationId);
|
|
287
286
|
const response = await (0, http_client_1.request)({
|
|
288
287
|
httpMethod: 'GET',
|
|
289
288
|
baseUri: this.apiRootBase,
|
|
@@ -295,7 +294,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
295
294
|
return (0, validators_1.validateAppInstallation)(response.data);
|
|
296
295
|
}
|
|
297
296
|
async updateAppInstallation(installationId, args, requestId) {
|
|
298
|
-
zod_1.z.string().parse(installationId);
|
|
297
|
+
zod_1.z.string().min(1).parse(installationId);
|
|
299
298
|
const response = await (0, http_client_1.request)({
|
|
300
299
|
httpMethod: 'POST',
|
|
301
300
|
baseUri: this.apiRootBase,
|
|
@@ -308,7 +307,7 @@ class AppClient extends base_client_1.BaseClient {
|
|
|
308
307
|
return (0, validators_1.validateAppInstallation)(response.data);
|
|
309
308
|
}
|
|
310
309
|
async uninstallApp(installationId, requestId) {
|
|
311
|
-
zod_1.z.string().parse(installationId);
|
|
310
|
+
zod_1.z.string().min(1).parse(installationId);
|
|
312
311
|
const response = await (0, http_client_1.request)({
|
|
313
312
|
httpMethod: 'DELETE',
|
|
314
313
|
baseUri: this.apiRootBase,
|
|
@@ -40,7 +40,7 @@ class CommentClient extends base_client_1.BaseClient {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
async getComment(id) {
|
|
43
|
-
zod_1.z.string().parse(id);
|
|
43
|
+
zod_1.z.string().min(1).parse(id);
|
|
44
44
|
const response = await (0, http_client_1.request)({
|
|
45
45
|
httpMethod: 'GET',
|
|
46
46
|
baseUri: this.syncApiBase,
|
|
@@ -64,7 +64,7 @@ class CommentClient extends base_client_1.BaseClient {
|
|
|
64
64
|
return (0, validators_1.validateComment)(response.data);
|
|
65
65
|
}
|
|
66
66
|
async updateComment(id, args, requestId) {
|
|
67
|
-
zod_1.z.string().parse(id);
|
|
67
|
+
zod_1.z.string().min(1).parse(id);
|
|
68
68
|
const response = await (0, http_client_1.request)({
|
|
69
69
|
httpMethod: 'POST',
|
|
70
70
|
baseUri: this.syncApiBase,
|
|
@@ -77,7 +77,7 @@ class CommentClient extends base_client_1.BaseClient {
|
|
|
77
77
|
return (0, validators_1.validateComment)(response.data);
|
|
78
78
|
}
|
|
79
79
|
async deleteComment(id, requestId) {
|
|
80
|
-
zod_1.z.string().parse(id);
|
|
80
|
+
zod_1.z.string().min(1).parse(id);
|
|
81
81
|
const response = await (0, http_client_1.request)({
|
|
82
82
|
httpMethod: 'DELETE',
|
|
83
83
|
baseUri: this.syncApiBase,
|
|
@@ -29,7 +29,7 @@ class FolderClient extends base_client_1.BaseClient {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
async getFolder(id) {
|
|
32
|
-
zod_1.z.string().parse(id);
|
|
32
|
+
zod_1.z.string().min(1).parse(id);
|
|
33
33
|
const response = await (0, http_client_1.request)({
|
|
34
34
|
httpMethod: 'GET',
|
|
35
35
|
baseUri: this.syncApiBase,
|
|
@@ -52,7 +52,7 @@ class FolderClient extends base_client_1.BaseClient {
|
|
|
52
52
|
return (0, validators_1.validateFolder)(response.data);
|
|
53
53
|
}
|
|
54
54
|
async updateFolder(id, args, requestId) {
|
|
55
|
-
zod_1.z.string().parse(id);
|
|
55
|
+
zod_1.z.string().min(1).parse(id);
|
|
56
56
|
const response = await (0, http_client_1.request)({
|
|
57
57
|
httpMethod: 'POST',
|
|
58
58
|
baseUri: this.syncApiBase,
|
|
@@ -65,7 +65,7 @@ class FolderClient extends base_client_1.BaseClient {
|
|
|
65
65
|
return (0, validators_1.validateFolder)(response.data);
|
|
66
66
|
}
|
|
67
67
|
async deleteFolder(id, requestId) {
|
|
68
|
-
zod_1.z.string().parse(id);
|
|
68
|
+
zod_1.z.string().min(1).parse(id);
|
|
69
69
|
const response = await (0, http_client_1.request)({
|
|
70
70
|
httpMethod: 'DELETE',
|
|
71
71
|
baseUri: this.syncApiBase,
|
|
@@ -16,7 +16,7 @@ const base_client_1 = require("./base-client");
|
|
|
16
16
|
*/
|
|
17
17
|
class InsightsClient extends base_client_1.BaseClient {
|
|
18
18
|
async getProjectActivityStats(projectId, args = {}) {
|
|
19
|
-
zod_1.z.string().parse(projectId);
|
|
19
|
+
zod_1.z.string().min(1).parse(projectId);
|
|
20
20
|
const response = await (0, http_client_1.request)({
|
|
21
21
|
httpMethod: 'GET',
|
|
22
22
|
baseUri: this.syncApiBase,
|
|
@@ -28,7 +28,7 @@ class InsightsClient extends base_client_1.BaseClient {
|
|
|
28
28
|
return (0, validators_1.validateProjectActivityStats)(response.data);
|
|
29
29
|
}
|
|
30
30
|
async getProjectHealth(projectId) {
|
|
31
|
-
zod_1.z.string().parse(projectId);
|
|
31
|
+
zod_1.z.string().min(1).parse(projectId);
|
|
32
32
|
const response = await (0, http_client_1.request)({
|
|
33
33
|
httpMethod: 'GET',
|
|
34
34
|
baseUri: this.syncApiBase,
|
|
@@ -39,7 +39,7 @@ class InsightsClient extends base_client_1.BaseClient {
|
|
|
39
39
|
return (0, validators_1.validateProjectHealth)(response.data);
|
|
40
40
|
}
|
|
41
41
|
async getProjectHealthContext(projectId) {
|
|
42
|
-
zod_1.z.string().parse(projectId);
|
|
42
|
+
zod_1.z.string().min(1).parse(projectId);
|
|
43
43
|
const response = await (0, http_client_1.request)({
|
|
44
44
|
httpMethod: 'GET',
|
|
45
45
|
baseUri: this.syncApiBase,
|
|
@@ -50,7 +50,7 @@ class InsightsClient extends base_client_1.BaseClient {
|
|
|
50
50
|
return (0, validators_1.validateProjectHealthContext)(response.data);
|
|
51
51
|
}
|
|
52
52
|
async getProjectProgress(projectId) {
|
|
53
|
-
zod_1.z.string().parse(projectId);
|
|
53
|
+
zod_1.z.string().min(1).parse(projectId);
|
|
54
54
|
const response = await (0, http_client_1.request)({
|
|
55
55
|
httpMethod: 'GET',
|
|
56
56
|
baseUri: this.syncApiBase,
|
|
@@ -61,7 +61,7 @@ class InsightsClient extends base_client_1.BaseClient {
|
|
|
61
61
|
return (0, validators_1.validateProjectProgress)(response.data);
|
|
62
62
|
}
|
|
63
63
|
async getWorkspaceInsights(workspaceId, args = {}) {
|
|
64
|
-
zod_1.z.string().parse(workspaceId);
|
|
64
|
+
zod_1.z.string().min(1).parse(workspaceId);
|
|
65
65
|
const response = await (0, http_client_1.request)({
|
|
66
66
|
httpMethod: 'GET',
|
|
67
67
|
baseUri: this.syncApiBase,
|
|
@@ -73,7 +73,7 @@ class InsightsClient extends base_client_1.BaseClient {
|
|
|
73
73
|
return (0, validators_1.validateWorkspaceInsights)(response.data);
|
|
74
74
|
}
|
|
75
75
|
async analyzeProjectHealth(projectId, requestId) {
|
|
76
|
-
zod_1.z.string().parse(projectId);
|
|
76
|
+
zod_1.z.string().min(1).parse(projectId);
|
|
77
77
|
const response = await (0, http_client_1.request)({
|
|
78
78
|
httpMethod: 'POST',
|
|
79
79
|
baseUri: this.syncApiBase,
|
|
@@ -15,7 +15,7 @@ const base_client_1 = require("./base-client");
|
|
|
15
15
|
*/
|
|
16
16
|
class LabelClient extends base_client_1.BaseClient {
|
|
17
17
|
async getLabel(id) {
|
|
18
|
-
zod_1.z.string().parse(id);
|
|
18
|
+
zod_1.z.string().min(1).parse(id);
|
|
19
19
|
const response = await (0, http_client_1.request)({
|
|
20
20
|
httpMethod: 'GET',
|
|
21
21
|
baseUri: this.syncApiBase,
|
|
@@ -66,7 +66,7 @@ class LabelClient extends base_client_1.BaseClient {
|
|
|
66
66
|
return (0, validators_1.validateLabel)(response.data);
|
|
67
67
|
}
|
|
68
68
|
async updateLabel(id, args, requestId) {
|
|
69
|
-
zod_1.z.string().parse(id);
|
|
69
|
+
zod_1.z.string().min(1).parse(id);
|
|
70
70
|
const response = await (0, http_client_1.request)({
|
|
71
71
|
httpMethod: 'POST',
|
|
72
72
|
baseUri: this.syncApiBase,
|
|
@@ -79,7 +79,7 @@ class LabelClient extends base_client_1.BaseClient {
|
|
|
79
79
|
return (0, validators_1.validateLabel)(response.data);
|
|
80
80
|
}
|
|
81
81
|
async deleteLabel(id, requestId) {
|
|
82
|
-
zod_1.z.string().parse(id);
|
|
82
|
+
zod_1.z.string().min(1).parse(id);
|
|
83
83
|
const response = await (0, http_client_1.request)({
|
|
84
84
|
httpMethod: 'DELETE',
|
|
85
85
|
baseUri: this.syncApiBase,
|
|
@@ -15,7 +15,7 @@ const base_client_1 = require("./base-client");
|
|
|
15
15
|
*/
|
|
16
16
|
class ProjectClient extends base_client_1.BaseClient {
|
|
17
17
|
async getProject(id) {
|
|
18
|
-
zod_1.z.string().parse(id);
|
|
18
|
+
zod_1.z.string().min(1).parse(id);
|
|
19
19
|
const response = await (0, http_client_1.request)({
|
|
20
20
|
httpMethod: 'GET',
|
|
21
21
|
baseUri: this.syncApiBase,
|
|
@@ -80,7 +80,7 @@ class ProjectClient extends base_client_1.BaseClient {
|
|
|
80
80
|
return (0, validators_1.validateProject)(response.data);
|
|
81
81
|
}
|
|
82
82
|
async updateProject(id, args, requestId) {
|
|
83
|
-
zod_1.z.string().parse(id);
|
|
83
|
+
zod_1.z.string().min(1).parse(id);
|
|
84
84
|
const response = await (0, http_client_1.request)({
|
|
85
85
|
httpMethod: 'POST',
|
|
86
86
|
baseUri: this.syncApiBase,
|
|
@@ -93,7 +93,7 @@ class ProjectClient extends base_client_1.BaseClient {
|
|
|
93
93
|
return (0, validators_1.validateProject)(response.data);
|
|
94
94
|
}
|
|
95
95
|
async deleteProject(id, requestId) {
|
|
96
|
-
zod_1.z.string().parse(id);
|
|
96
|
+
zod_1.z.string().min(1).parse(id);
|
|
97
97
|
const response = await (0, http_client_1.request)({
|
|
98
98
|
httpMethod: 'DELETE',
|
|
99
99
|
baseUri: this.syncApiBase,
|
|
@@ -105,7 +105,7 @@ class ProjectClient extends base_client_1.BaseClient {
|
|
|
105
105
|
return (0, http_client_1.isSuccess)(response);
|
|
106
106
|
}
|
|
107
107
|
async archiveProject(id, requestId) {
|
|
108
|
-
zod_1.z.string().parse(id);
|
|
108
|
+
zod_1.z.string().min(1).parse(id);
|
|
109
109
|
const response = await (0, http_client_1.request)({
|
|
110
110
|
httpMethod: 'POST',
|
|
111
111
|
baseUri: this.syncApiBase,
|
|
@@ -117,7 +117,7 @@ class ProjectClient extends base_client_1.BaseClient {
|
|
|
117
117
|
return (0, validators_1.validateProject)(response.data);
|
|
118
118
|
}
|
|
119
119
|
async unarchiveProject(id, requestId) {
|
|
120
|
-
zod_1.z.string().parse(id);
|
|
120
|
+
zod_1.z.string().min(1).parse(id);
|
|
121
121
|
const response = await (0, http_client_1.request)({
|
|
122
122
|
httpMethod: 'POST',
|
|
123
123
|
baseUri: this.syncApiBase,
|
|
@@ -174,7 +174,7 @@ class ProjectClient extends base_client_1.BaseClient {
|
|
|
174
174
|
return data;
|
|
175
175
|
}
|
|
176
176
|
async getFullProject(id, args = {}) {
|
|
177
|
-
zod_1.z.string().parse(id);
|
|
177
|
+
zod_1.z.string().min(1).parse(id);
|
|
178
178
|
const { data } = await (0, http_client_1.request)({
|
|
179
179
|
httpMethod: 'GET',
|
|
180
180
|
baseUri: this.syncApiBase,
|
|
@@ -193,7 +193,7 @@ class ProjectClient extends base_client_1.BaseClient {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
async joinProject(id, requestId) {
|
|
196
|
-
zod_1.z.string().parse(id);
|
|
196
|
+
zod_1.z.string().min(1).parse(id);
|
|
197
197
|
const { data } = await (0, http_client_1.request)({
|
|
198
198
|
httpMethod: 'POST',
|
|
199
199
|
baseUri: this.syncApiBase,
|
|
@@ -214,7 +214,7 @@ class ProjectClient extends base_client_1.BaseClient {
|
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
async getProjectCollaborators(projectId, args = {}) {
|
|
217
|
-
zod_1.z.string().parse(projectId);
|
|
217
|
+
zod_1.z.string().min(1).parse(projectId);
|
|
218
218
|
const { data: { results, nextCursor }, } = await (0, http_client_1.request)({
|
|
219
219
|
httpMethod: 'GET',
|
|
220
220
|
baseUri: this.syncApiBase,
|
|
@@ -43,7 +43,7 @@ class SectionClient extends base_client_1.BaseClient {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
async getSection(id) {
|
|
46
|
-
zod_1.z.string().parse(id);
|
|
46
|
+
zod_1.z.string().min(1).parse(id);
|
|
47
47
|
const response = await (0, http_client_1.request)({
|
|
48
48
|
httpMethod: 'GET',
|
|
49
49
|
baseUri: this.syncApiBase,
|
|
@@ -66,7 +66,7 @@ class SectionClient extends base_client_1.BaseClient {
|
|
|
66
66
|
return (0, validators_1.validateSection)(response.data);
|
|
67
67
|
}
|
|
68
68
|
async updateSection(id, args, requestId) {
|
|
69
|
-
zod_1.z.string().parse(id);
|
|
69
|
+
zod_1.z.string().min(1).parse(id);
|
|
70
70
|
const response = await (0, http_client_1.request)({
|
|
71
71
|
httpMethod: 'POST',
|
|
72
72
|
baseUri: this.syncApiBase,
|
|
@@ -79,7 +79,7 @@ class SectionClient extends base_client_1.BaseClient {
|
|
|
79
79
|
return (0, validators_1.validateSection)(response.data);
|
|
80
80
|
}
|
|
81
81
|
async deleteSection(id, requestId) {
|
|
82
|
-
zod_1.z.string().parse(id);
|
|
82
|
+
zod_1.z.string().min(1).parse(id);
|
|
83
83
|
const response = await (0, http_client_1.request)({
|
|
84
84
|
httpMethod: 'DELETE',
|
|
85
85
|
baseUri: this.syncApiBase,
|
|
@@ -91,7 +91,7 @@ class SectionClient extends base_client_1.BaseClient {
|
|
|
91
91
|
return (0, http_client_1.isSuccess)(response);
|
|
92
92
|
}
|
|
93
93
|
async archiveSection(id, requestId) {
|
|
94
|
-
zod_1.z.string().parse(id);
|
|
94
|
+
zod_1.z.string().min(1).parse(id);
|
|
95
95
|
const response = await (0, http_client_1.request)({
|
|
96
96
|
httpMethod: 'POST',
|
|
97
97
|
baseUri: this.syncApiBase,
|
|
@@ -103,7 +103,7 @@ class SectionClient extends base_client_1.BaseClient {
|
|
|
103
103
|
return (0, validators_1.validateSection)(response.data);
|
|
104
104
|
}
|
|
105
105
|
async unarchiveSection(id, requestId) {
|
|
106
|
-
zod_1.z.string().parse(id);
|
|
106
|
+
zod_1.z.string().min(1).parse(id);
|
|
107
107
|
const response = await (0, http_client_1.request)({
|
|
108
108
|
httpMethod: 'POST',
|
|
109
109
|
baseUri: this.syncApiBase,
|
|
@@ -31,7 +31,7 @@ const MAX_COMMAND_COUNT = 100;
|
|
|
31
31
|
*/
|
|
32
32
|
class TaskClient extends base_client_1.BaseClient {
|
|
33
33
|
async getTask(id) {
|
|
34
|
-
zod_1.z.string().parse(id);
|
|
34
|
+
zod_1.z.string().min(1).parse(id);
|
|
35
35
|
const response = await (0, http_client_1.request)({
|
|
36
36
|
httpMethod: 'GET',
|
|
37
37
|
baseUri: this.syncApiBase,
|
|
@@ -155,7 +155,7 @@ class TaskClient extends base_client_1.BaseClient {
|
|
|
155
155
|
return (0, validators_1.validateTask)(response.data);
|
|
156
156
|
}
|
|
157
157
|
async updateTask(id, args, requestId) {
|
|
158
|
-
zod_1.z.string().parse(id);
|
|
158
|
+
zod_1.z.string().min(1).parse(id);
|
|
159
159
|
// Translate SDK alias for due-date clearing to Todoist's accepted payload value.
|
|
160
160
|
const normalizedArgs = args.dueString === null ? Object.assign(Object.assign({}, args), { dueString: 'no date' }) : args;
|
|
161
161
|
// Process content if both content and isUncompletable are provided
|
|
@@ -203,7 +203,7 @@ class TaskClient extends base_client_1.BaseClient {
|
|
|
203
203
|
return (0, validators_1.validateTaskArray)(syncTasks);
|
|
204
204
|
}
|
|
205
205
|
async moveTask(id, args, requestId) {
|
|
206
|
-
zod_1.z.string().parse(id);
|
|
206
|
+
zod_1.z.string().min(1).parse(id);
|
|
207
207
|
const response = await (0, http_client_1.request)({
|
|
208
208
|
httpMethod: 'POST',
|
|
209
209
|
baseUri: this.syncApiBase,
|
|
@@ -216,7 +216,7 @@ class TaskClient extends base_client_1.BaseClient {
|
|
|
216
216
|
return (0, validators_1.validateTask)(response.data);
|
|
217
217
|
}
|
|
218
218
|
async closeTask(id, requestId) {
|
|
219
|
-
zod_1.z.string().parse(id);
|
|
219
|
+
zod_1.z.string().min(1).parse(id);
|
|
220
220
|
const response = await (0, http_client_1.request)({
|
|
221
221
|
httpMethod: 'POST',
|
|
222
222
|
baseUri: this.syncApiBase,
|
|
@@ -228,7 +228,7 @@ class TaskClient extends base_client_1.BaseClient {
|
|
|
228
228
|
return (0, http_client_1.isSuccess)(response);
|
|
229
229
|
}
|
|
230
230
|
async reopenTask(id, requestId) {
|
|
231
|
-
zod_1.z.string().parse(id);
|
|
231
|
+
zod_1.z.string().min(1).parse(id);
|
|
232
232
|
const response = await (0, http_client_1.request)({
|
|
233
233
|
httpMethod: 'POST',
|
|
234
234
|
baseUri: this.syncApiBase,
|
|
@@ -240,7 +240,7 @@ class TaskClient extends base_client_1.BaseClient {
|
|
|
240
240
|
return (0, http_client_1.isSuccess)(response);
|
|
241
241
|
}
|
|
242
242
|
async deleteTask(id, requestId) {
|
|
243
|
-
zod_1.z.string().parse(id);
|
|
243
|
+
zod_1.z.string().min(1).parse(id);
|
|
244
244
|
const response = await (0, http_client_1.request)({
|
|
245
245
|
httpMethod: 'DELETE',
|
|
246
246
|
baseUri: this.syncApiBase,
|
|
@@ -17,7 +17,7 @@ const base_client_1 = require("./base-client");
|
|
|
17
17
|
*/
|
|
18
18
|
class UiExtensionClient extends base_client_1.BaseClient {
|
|
19
19
|
async getUiExtension(uiExtensionId, requestId) {
|
|
20
|
-
zod_1.z.string().parse(uiExtensionId);
|
|
20
|
+
zod_1.z.string().min(1).parse(uiExtensionId);
|
|
21
21
|
const response = await (0, http_client_1.request)({
|
|
22
22
|
httpMethod: 'GET',
|
|
23
23
|
baseUri: this.apiRootBase,
|
|
@@ -40,7 +40,7 @@ class UiExtensionClient extends base_client_1.BaseClient {
|
|
|
40
40
|
return (0, validators_1.validateUiExtensionArray)(response.data);
|
|
41
41
|
}
|
|
42
42
|
async getUiExtensionsForApp(appId, requestId) {
|
|
43
|
-
zod_1.z.string().parse(appId);
|
|
43
|
+
zod_1.z.string().min(1).parse(appId);
|
|
44
44
|
const response = await (0, http_client_1.request)({
|
|
45
45
|
httpMethod: 'GET',
|
|
46
46
|
baseUri: this.apiRootBase,
|
|
@@ -64,7 +64,7 @@ class UiExtensionClient extends base_client_1.BaseClient {
|
|
|
64
64
|
return (0, validators_1.validateUiExtension)(response.data);
|
|
65
65
|
}
|
|
66
66
|
async updateUiExtension(uiExtensionId, args, requestId) {
|
|
67
|
-
zod_1.z.string().parse(uiExtensionId);
|
|
67
|
+
zod_1.z.string().min(1).parse(uiExtensionId);
|
|
68
68
|
const response = await (0, http_client_1.request)({
|
|
69
69
|
httpMethod: 'PATCH',
|
|
70
70
|
baseUri: this.apiRootBase,
|
|
@@ -77,7 +77,7 @@ class UiExtensionClient extends base_client_1.BaseClient {
|
|
|
77
77
|
return (0, validators_1.validateUiExtension)(response.data);
|
|
78
78
|
}
|
|
79
79
|
async deleteUiExtension(uiExtensionId, requestId) {
|
|
80
|
-
zod_1.z.string().parse(uiExtensionId);
|
|
80
|
+
zod_1.z.string().min(1).parse(uiExtensionId);
|
|
81
81
|
const response = await (0, http_client_1.request)({
|
|
82
82
|
httpMethod: 'DELETE',
|
|
83
83
|
baseUri: this.apiRootBase,
|
|
@@ -199,7 +199,7 @@ class WorkspaceClient extends base_client_1.BaseClient {
|
|
|
199
199
|
return (0, validators_1.validateWorkspaceArray)(response.data);
|
|
200
200
|
}
|
|
201
201
|
async getWorkspace(id, requestId) {
|
|
202
|
-
zod_1.z.string().parse(id);
|
|
202
|
+
zod_1.z.string().min(1).parse(id);
|
|
203
203
|
const response = await (0, http_client_1.request)({
|
|
204
204
|
httpMethod: 'GET',
|
|
205
205
|
baseUri: this.syncApiBase,
|
|
@@ -223,7 +223,7 @@ class WorkspaceClient extends base_client_1.BaseClient {
|
|
|
223
223
|
return (0, validators_1.validateWorkspace)(response.data);
|
|
224
224
|
}
|
|
225
225
|
async updateWorkspace(id, args, requestId) {
|
|
226
|
-
zod_1.z.string().parse(id);
|
|
226
|
+
zod_1.z.string().min(1).parse(id);
|
|
227
227
|
const response = await (0, http_client_1.request)({
|
|
228
228
|
httpMethod: 'POST',
|
|
229
229
|
baseUri: this.syncApiBase,
|
|
@@ -236,7 +236,7 @@ class WorkspaceClient extends base_client_1.BaseClient {
|
|
|
236
236
|
return (0, validators_1.validateWorkspace)(response.data);
|
|
237
237
|
}
|
|
238
238
|
async deleteWorkspace(id, requestId) {
|
|
239
|
-
zod_1.z.string().parse(id);
|
|
239
|
+
zod_1.z.string().min(1).parse(id);
|
|
240
240
|
const response = await (0, http_client_1.request)({
|
|
241
241
|
httpMethod: 'DELETE',
|
|
242
242
|
baseUri: this.syncApiBase,
|
|
@@ -288,6 +288,7 @@ exports.DEFAULT_DISTRIBUTION_TOKEN = 'dist-token-abc';
|
|
|
288
288
|
exports.DEFAULT_ACCESS_TOKEN_ID = '3003';
|
|
289
289
|
exports.DEFAULT_APP = {
|
|
290
290
|
id: exports.DEFAULT_APP_ID,
|
|
291
|
+
clientId: 'client-id-xyz',
|
|
291
292
|
status: 'public',
|
|
292
293
|
displayName: 'Sample App',
|
|
293
294
|
userId: DEFAULT_USER_ID,
|
|
@@ -141,6 +141,7 @@ exports.AppTokenScopesSchema = zod_1.z
|
|
|
141
141
|
*/
|
|
142
142
|
exports.AppSchema = zod_1.z.object({
|
|
143
143
|
id: common_1.StringOrNumberSchema,
|
|
144
|
+
clientId: zod_1.z.string(),
|
|
144
145
|
status: exports.AppStatusSchema,
|
|
145
146
|
displayName: zod_1.z.string(),
|
|
146
147
|
userId: common_1.StringOrNumberSchema,
|
|
@@ -38,7 +38,7 @@ export class AppClient extends BaseClient {
|
|
|
38
38
|
return validateAppArray(response.data);
|
|
39
39
|
}
|
|
40
40
|
async getApp(appId, requestId) {
|
|
41
|
-
z.string().parse(appId);
|
|
41
|
+
z.string().min(1).parse(appId);
|
|
42
42
|
const response = await request({
|
|
43
43
|
httpMethod: 'GET',
|
|
44
44
|
baseUri: this.apiRootBase,
|
|
@@ -62,7 +62,7 @@ export class AppClient extends BaseClient {
|
|
|
62
62
|
return validateApp(response.data);
|
|
63
63
|
}
|
|
64
64
|
async updateApp(appId, args, requestId) {
|
|
65
|
-
z.string().parse(appId);
|
|
65
|
+
z.string().min(1).parse(appId);
|
|
66
66
|
const { appTokenScopes } = args, rest = __rest(args, ["appTokenScopes"]);
|
|
67
67
|
const payload = Object.assign({}, rest);
|
|
68
68
|
if (appTokenScopes !== undefined) {
|
|
@@ -80,7 +80,7 @@ export class AppClient extends BaseClient {
|
|
|
80
80
|
return validateAppWithUserCount(response.data);
|
|
81
81
|
}
|
|
82
82
|
async deleteApp(appId, requestId) {
|
|
83
|
-
z.string().parse(appId);
|
|
83
|
+
z.string().min(1).parse(appId);
|
|
84
84
|
const response = await request({
|
|
85
85
|
httpMethod: 'DELETE',
|
|
86
86
|
baseUri: this.apiRootBase,
|
|
@@ -92,7 +92,7 @@ export class AppClient extends BaseClient {
|
|
|
92
92
|
return isSuccess(response);
|
|
93
93
|
}
|
|
94
94
|
async getAppSecrets(appId, requestId) {
|
|
95
|
-
z.string().parse(appId);
|
|
95
|
+
z.string().min(1).parse(appId);
|
|
96
96
|
const response = await request({
|
|
97
97
|
httpMethod: 'GET',
|
|
98
98
|
baseUri: this.apiRootBase,
|
|
@@ -104,7 +104,7 @@ export class AppClient extends BaseClient {
|
|
|
104
104
|
return validateAppSecrets(response.data);
|
|
105
105
|
}
|
|
106
106
|
async resetAppClientSecret(appId, requestId) {
|
|
107
|
-
z.string().parse(appId);
|
|
107
|
+
z.string().min(1).parse(appId);
|
|
108
108
|
const response = await request({
|
|
109
109
|
httpMethod: 'DELETE',
|
|
110
110
|
baseUri: this.apiRootBase,
|
|
@@ -116,7 +116,7 @@ export class AppClient extends BaseClient {
|
|
|
116
116
|
return validateAppWithUserCount(response.data);
|
|
117
117
|
}
|
|
118
118
|
async revokeAppTokens(appId, requestId) {
|
|
119
|
-
z.string().parse(appId);
|
|
119
|
+
z.string().min(1).parse(appId);
|
|
120
120
|
const response = await request({
|
|
121
121
|
httpMethod: 'DELETE',
|
|
122
122
|
baseUri: this.apiRootBase,
|
|
@@ -127,26 +127,25 @@ export class AppClient extends BaseClient {
|
|
|
127
127
|
});
|
|
128
128
|
return validateAppWithUserCount(response.data);
|
|
129
129
|
}
|
|
130
|
-
async uploadAppIcon(
|
|
131
|
-
|
|
132
|
-
if (Buffer.isBuffer(
|
|
130
|
+
async uploadAppIcon({ appId, file, fileName = '', size = 'medium' }, requestId) {
|
|
131
|
+
z.string().min(1).parse(appId);
|
|
132
|
+
if (Buffer.isBuffer(file) && file.length === 0) {
|
|
133
133
|
throw new Error('Cannot upload empty image file');
|
|
134
134
|
}
|
|
135
|
-
const size = (_a = args.size) !== null && _a !== void 0 ? _a : 'medium';
|
|
136
135
|
const data = await uploadMultipartFile({
|
|
137
136
|
baseUrl: this.apiRootBase,
|
|
138
137
|
authToken: this.authToken,
|
|
139
|
-
endpoint: getAppIconEndpoint(
|
|
140
|
-
file
|
|
141
|
-
fileName
|
|
142
|
-
additionalFields: { file_name:
|
|
138
|
+
endpoint: getAppIconEndpoint(appId, size),
|
|
139
|
+
file,
|
|
140
|
+
fileName,
|
|
141
|
+
additionalFields: { file_name: fileName },
|
|
143
142
|
requestId: requestId,
|
|
144
143
|
customFetch: this.customFetch,
|
|
145
144
|
});
|
|
146
145
|
return validateAppWithUserCount(camelCaseKeys(data));
|
|
147
146
|
}
|
|
148
147
|
async getAppTestToken(appId, requestId) {
|
|
149
|
-
z.string().parse(appId);
|
|
148
|
+
z.string().min(1).parse(appId);
|
|
150
149
|
const response = await request({
|
|
151
150
|
httpMethod: 'GET',
|
|
152
151
|
baseUri: this.apiRootBase,
|
|
@@ -158,7 +157,7 @@ export class AppClient extends BaseClient {
|
|
|
158
157
|
return validateAppTestToken(response.data);
|
|
159
158
|
}
|
|
160
159
|
async createAppTestToken(appId, requestId) {
|
|
161
|
-
z.string().parse(appId);
|
|
160
|
+
z.string().min(1).parse(appId);
|
|
162
161
|
const response = await request({
|
|
163
162
|
httpMethod: 'PUT',
|
|
164
163
|
baseUri: this.apiRootBase,
|
|
@@ -170,7 +169,7 @@ export class AppClient extends BaseClient {
|
|
|
170
169
|
return validateAppTestToken(response.data);
|
|
171
170
|
}
|
|
172
171
|
async getAppDistributionToken(appId, requestId) {
|
|
173
|
-
z.string().parse(appId);
|
|
172
|
+
z.string().min(1).parse(appId);
|
|
174
173
|
const response = await request({
|
|
175
174
|
httpMethod: 'GET',
|
|
176
175
|
baseUri: this.apiRootBase,
|
|
@@ -182,7 +181,7 @@ export class AppClient extends BaseClient {
|
|
|
182
181
|
return validateAppDistributionToken(response.data);
|
|
183
182
|
}
|
|
184
183
|
async getAppVerificationToken(appId, requestId) {
|
|
185
|
-
z.string().parse(appId);
|
|
184
|
+
z.string().min(1).parse(appId);
|
|
186
185
|
const response = await request({
|
|
187
186
|
httpMethod: 'GET',
|
|
188
187
|
baseUri: this.apiRootBase,
|
|
@@ -194,7 +193,7 @@ export class AppClient extends BaseClient {
|
|
|
194
193
|
return validateAppVerificationToken(response.data);
|
|
195
194
|
}
|
|
196
195
|
async resetAppVerificationToken(appId, requestId) {
|
|
197
|
-
z.string().parse(appId);
|
|
196
|
+
z.string().min(1).parse(appId);
|
|
198
197
|
const response = await request({
|
|
199
198
|
httpMethod: 'DELETE',
|
|
200
199
|
baseUri: this.apiRootBase,
|
|
@@ -206,7 +205,7 @@ export class AppClient extends BaseClient {
|
|
|
206
205
|
return validateAppVerificationToken(response.data);
|
|
207
206
|
}
|
|
208
207
|
async getAppByDistributionToken(distributionToken, requestId) {
|
|
209
|
-
z.string().parse(distributionToken);
|
|
208
|
+
z.string().min(1).parse(distributionToken);
|
|
210
209
|
const response = await request({
|
|
211
210
|
httpMethod: 'GET',
|
|
212
211
|
baseUri: this.apiRootBase,
|
|
@@ -219,7 +218,7 @@ export class AppClient extends BaseClient {
|
|
|
219
218
|
}
|
|
220
219
|
// --- App webhooks ---
|
|
221
220
|
async getAppWebhook(appId, requestId) {
|
|
222
|
-
z.string().parse(appId);
|
|
221
|
+
z.string().min(1).parse(appId);
|
|
223
222
|
const response = await request({
|
|
224
223
|
httpMethod: 'GET',
|
|
225
224
|
baseUri: this.apiRootBase,
|
|
@@ -244,7 +243,7 @@ export class AppClient extends BaseClient {
|
|
|
244
243
|
return validateAppWebhook(response.data);
|
|
245
244
|
}
|
|
246
245
|
async deleteAppWebhook(appId, requestId) {
|
|
247
|
-
z.string().parse(appId);
|
|
246
|
+
z.string().min(1).parse(appId);
|
|
248
247
|
const response = await request({
|
|
249
248
|
httpMethod: 'DELETE',
|
|
250
249
|
baseUri: this.apiRootBase,
|
|
@@ -280,7 +279,7 @@ export class AppClient extends BaseClient {
|
|
|
280
279
|
return validateAppInstallation(response.data);
|
|
281
280
|
}
|
|
282
281
|
async getAppInstallation(installationId, requestId) {
|
|
283
|
-
z.string().parse(installationId);
|
|
282
|
+
z.string().min(1).parse(installationId);
|
|
284
283
|
const response = await request({
|
|
285
284
|
httpMethod: 'GET',
|
|
286
285
|
baseUri: this.apiRootBase,
|
|
@@ -292,7 +291,7 @@ export class AppClient extends BaseClient {
|
|
|
292
291
|
return validateAppInstallation(response.data);
|
|
293
292
|
}
|
|
294
293
|
async updateAppInstallation(installationId, args, requestId) {
|
|
295
|
-
z.string().parse(installationId);
|
|
294
|
+
z.string().min(1).parse(installationId);
|
|
296
295
|
const response = await request({
|
|
297
296
|
httpMethod: 'POST',
|
|
298
297
|
baseUri: this.apiRootBase,
|
|
@@ -305,7 +304,7 @@ export class AppClient extends BaseClient {
|
|
|
305
304
|
return validateAppInstallation(response.data);
|
|
306
305
|
}
|
|
307
306
|
async uninstallApp(installationId, requestId) {
|
|
308
|
-
z.string().parse(installationId);
|
|
307
|
+
z.string().min(1).parse(installationId);
|
|
309
308
|
const response = await request({
|
|
310
309
|
httpMethod: 'DELETE',
|
|
311
310
|
baseUri: this.apiRootBase,
|
|
@@ -37,7 +37,7 @@ export class CommentClient extends BaseClient {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
async getComment(id) {
|
|
40
|
-
z.string().parse(id);
|
|
40
|
+
z.string().min(1).parse(id);
|
|
41
41
|
const response = await request({
|
|
42
42
|
httpMethod: 'GET',
|
|
43
43
|
baseUri: this.syncApiBase,
|
|
@@ -61,7 +61,7 @@ export class CommentClient extends BaseClient {
|
|
|
61
61
|
return validateComment(response.data);
|
|
62
62
|
}
|
|
63
63
|
async updateComment(id, args, requestId) {
|
|
64
|
-
z.string().parse(id);
|
|
64
|
+
z.string().min(1).parse(id);
|
|
65
65
|
const response = await request({
|
|
66
66
|
httpMethod: 'POST',
|
|
67
67
|
baseUri: this.syncApiBase,
|
|
@@ -74,7 +74,7 @@ export class CommentClient extends BaseClient {
|
|
|
74
74
|
return validateComment(response.data);
|
|
75
75
|
}
|
|
76
76
|
async deleteComment(id, requestId) {
|
|
77
|
-
z.string().parse(id);
|
|
77
|
+
z.string().min(1).parse(id);
|
|
78
78
|
const response = await request({
|
|
79
79
|
httpMethod: 'DELETE',
|
|
80
80
|
baseUri: this.syncApiBase,
|
|
@@ -26,7 +26,7 @@ export class FolderClient extends BaseClient {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
async getFolder(id) {
|
|
29
|
-
z.string().parse(id);
|
|
29
|
+
z.string().min(1).parse(id);
|
|
30
30
|
const response = await request({
|
|
31
31
|
httpMethod: 'GET',
|
|
32
32
|
baseUri: this.syncApiBase,
|
|
@@ -49,7 +49,7 @@ export class FolderClient extends BaseClient {
|
|
|
49
49
|
return validateFolder(response.data);
|
|
50
50
|
}
|
|
51
51
|
async updateFolder(id, args, requestId) {
|
|
52
|
-
z.string().parse(id);
|
|
52
|
+
z.string().min(1).parse(id);
|
|
53
53
|
const response = await request({
|
|
54
54
|
httpMethod: 'POST',
|
|
55
55
|
baseUri: this.syncApiBase,
|
|
@@ -62,7 +62,7 @@ export class FolderClient extends BaseClient {
|
|
|
62
62
|
return validateFolder(response.data);
|
|
63
63
|
}
|
|
64
64
|
async deleteFolder(id, requestId) {
|
|
65
|
-
z.string().parse(id);
|
|
65
|
+
z.string().min(1).parse(id);
|
|
66
66
|
const response = await request({
|
|
67
67
|
httpMethod: 'DELETE',
|
|
68
68
|
baseUri: this.syncApiBase,
|
|
@@ -13,7 +13,7 @@ import { BaseClient } from './base-client.js';
|
|
|
13
13
|
*/
|
|
14
14
|
export class InsightsClient extends BaseClient {
|
|
15
15
|
async getProjectActivityStats(projectId, args = {}) {
|
|
16
|
-
z.string().parse(projectId);
|
|
16
|
+
z.string().min(1).parse(projectId);
|
|
17
17
|
const response = await request({
|
|
18
18
|
httpMethod: 'GET',
|
|
19
19
|
baseUri: this.syncApiBase,
|
|
@@ -25,7 +25,7 @@ export class InsightsClient extends BaseClient {
|
|
|
25
25
|
return validateProjectActivityStats(response.data);
|
|
26
26
|
}
|
|
27
27
|
async getProjectHealth(projectId) {
|
|
28
|
-
z.string().parse(projectId);
|
|
28
|
+
z.string().min(1).parse(projectId);
|
|
29
29
|
const response = await request({
|
|
30
30
|
httpMethod: 'GET',
|
|
31
31
|
baseUri: this.syncApiBase,
|
|
@@ -36,7 +36,7 @@ export class InsightsClient extends BaseClient {
|
|
|
36
36
|
return validateProjectHealth(response.data);
|
|
37
37
|
}
|
|
38
38
|
async getProjectHealthContext(projectId) {
|
|
39
|
-
z.string().parse(projectId);
|
|
39
|
+
z.string().min(1).parse(projectId);
|
|
40
40
|
const response = await request({
|
|
41
41
|
httpMethod: 'GET',
|
|
42
42
|
baseUri: this.syncApiBase,
|
|
@@ -47,7 +47,7 @@ export class InsightsClient extends BaseClient {
|
|
|
47
47
|
return validateProjectHealthContext(response.data);
|
|
48
48
|
}
|
|
49
49
|
async getProjectProgress(projectId) {
|
|
50
|
-
z.string().parse(projectId);
|
|
50
|
+
z.string().min(1).parse(projectId);
|
|
51
51
|
const response = await request({
|
|
52
52
|
httpMethod: 'GET',
|
|
53
53
|
baseUri: this.syncApiBase,
|
|
@@ -58,7 +58,7 @@ export class InsightsClient extends BaseClient {
|
|
|
58
58
|
return validateProjectProgress(response.data);
|
|
59
59
|
}
|
|
60
60
|
async getWorkspaceInsights(workspaceId, args = {}) {
|
|
61
|
-
z.string().parse(workspaceId);
|
|
61
|
+
z.string().min(1).parse(workspaceId);
|
|
62
62
|
const response = await request({
|
|
63
63
|
httpMethod: 'GET',
|
|
64
64
|
baseUri: this.syncApiBase,
|
|
@@ -70,7 +70,7 @@ export class InsightsClient extends BaseClient {
|
|
|
70
70
|
return validateWorkspaceInsights(response.data);
|
|
71
71
|
}
|
|
72
72
|
async analyzeProjectHealth(projectId, requestId) {
|
|
73
|
-
z.string().parse(projectId);
|
|
73
|
+
z.string().min(1).parse(projectId);
|
|
74
74
|
const response = await request({
|
|
75
75
|
httpMethod: 'POST',
|
|
76
76
|
baseUri: this.syncApiBase,
|
|
@@ -12,7 +12,7 @@ import { BaseClient } from './base-client.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export class LabelClient extends BaseClient {
|
|
14
14
|
async getLabel(id) {
|
|
15
|
-
z.string().parse(id);
|
|
15
|
+
z.string().min(1).parse(id);
|
|
16
16
|
const response = await request({
|
|
17
17
|
httpMethod: 'GET',
|
|
18
18
|
baseUri: this.syncApiBase,
|
|
@@ -63,7 +63,7 @@ export class LabelClient extends BaseClient {
|
|
|
63
63
|
return validateLabel(response.data);
|
|
64
64
|
}
|
|
65
65
|
async updateLabel(id, args, requestId) {
|
|
66
|
-
z.string().parse(id);
|
|
66
|
+
z.string().min(1).parse(id);
|
|
67
67
|
const response = await request({
|
|
68
68
|
httpMethod: 'POST',
|
|
69
69
|
baseUri: this.syncApiBase,
|
|
@@ -76,7 +76,7 @@ export class LabelClient extends BaseClient {
|
|
|
76
76
|
return validateLabel(response.data);
|
|
77
77
|
}
|
|
78
78
|
async deleteLabel(id, requestId) {
|
|
79
|
-
z.string().parse(id);
|
|
79
|
+
z.string().min(1).parse(id);
|
|
80
80
|
const response = await request({
|
|
81
81
|
httpMethod: 'DELETE',
|
|
82
82
|
baseUri: this.syncApiBase,
|
|
@@ -12,7 +12,7 @@ import { BaseClient } from './base-client.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export class ProjectClient extends BaseClient {
|
|
14
14
|
async getProject(id) {
|
|
15
|
-
z.string().parse(id);
|
|
15
|
+
z.string().min(1).parse(id);
|
|
16
16
|
const response = await request({
|
|
17
17
|
httpMethod: 'GET',
|
|
18
18
|
baseUri: this.syncApiBase,
|
|
@@ -77,7 +77,7 @@ export class ProjectClient extends BaseClient {
|
|
|
77
77
|
return validateProject(response.data);
|
|
78
78
|
}
|
|
79
79
|
async updateProject(id, args, requestId) {
|
|
80
|
-
z.string().parse(id);
|
|
80
|
+
z.string().min(1).parse(id);
|
|
81
81
|
const response = await request({
|
|
82
82
|
httpMethod: 'POST',
|
|
83
83
|
baseUri: this.syncApiBase,
|
|
@@ -90,7 +90,7 @@ export class ProjectClient extends BaseClient {
|
|
|
90
90
|
return validateProject(response.data);
|
|
91
91
|
}
|
|
92
92
|
async deleteProject(id, requestId) {
|
|
93
|
-
z.string().parse(id);
|
|
93
|
+
z.string().min(1).parse(id);
|
|
94
94
|
const response = await request({
|
|
95
95
|
httpMethod: 'DELETE',
|
|
96
96
|
baseUri: this.syncApiBase,
|
|
@@ -102,7 +102,7 @@ export class ProjectClient extends BaseClient {
|
|
|
102
102
|
return isSuccess(response);
|
|
103
103
|
}
|
|
104
104
|
async archiveProject(id, requestId) {
|
|
105
|
-
z.string().parse(id);
|
|
105
|
+
z.string().min(1).parse(id);
|
|
106
106
|
const response = await request({
|
|
107
107
|
httpMethod: 'POST',
|
|
108
108
|
baseUri: this.syncApiBase,
|
|
@@ -114,7 +114,7 @@ export class ProjectClient extends BaseClient {
|
|
|
114
114
|
return validateProject(response.data);
|
|
115
115
|
}
|
|
116
116
|
async unarchiveProject(id, requestId) {
|
|
117
|
-
z.string().parse(id);
|
|
117
|
+
z.string().min(1).parse(id);
|
|
118
118
|
const response = await request({
|
|
119
119
|
httpMethod: 'POST',
|
|
120
120
|
baseUri: this.syncApiBase,
|
|
@@ -171,7 +171,7 @@ export class ProjectClient extends BaseClient {
|
|
|
171
171
|
return data;
|
|
172
172
|
}
|
|
173
173
|
async getFullProject(id, args = {}) {
|
|
174
|
-
z.string().parse(id);
|
|
174
|
+
z.string().min(1).parse(id);
|
|
175
175
|
const { data } = await request({
|
|
176
176
|
httpMethod: 'GET',
|
|
177
177
|
baseUri: this.syncApiBase,
|
|
@@ -190,7 +190,7 @@ export class ProjectClient extends BaseClient {
|
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
async joinProject(id, requestId) {
|
|
193
|
-
z.string().parse(id);
|
|
193
|
+
z.string().min(1).parse(id);
|
|
194
194
|
const { data } = await request({
|
|
195
195
|
httpMethod: 'POST',
|
|
196
196
|
baseUri: this.syncApiBase,
|
|
@@ -211,7 +211,7 @@ export class ProjectClient extends BaseClient {
|
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
213
|
async getProjectCollaborators(projectId, args = {}) {
|
|
214
|
-
z.string().parse(projectId);
|
|
214
|
+
z.string().min(1).parse(projectId);
|
|
215
215
|
const { data: { results, nextCursor }, } = await request({
|
|
216
216
|
httpMethod: 'GET',
|
|
217
217
|
baseUri: this.syncApiBase,
|
|
@@ -40,7 +40,7 @@ export class SectionClient extends BaseClient {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
async getSection(id) {
|
|
43
|
-
z.string().parse(id);
|
|
43
|
+
z.string().min(1).parse(id);
|
|
44
44
|
const response = await request({
|
|
45
45
|
httpMethod: 'GET',
|
|
46
46
|
baseUri: this.syncApiBase,
|
|
@@ -63,7 +63,7 @@ export class SectionClient extends BaseClient {
|
|
|
63
63
|
return validateSection(response.data);
|
|
64
64
|
}
|
|
65
65
|
async updateSection(id, args, requestId) {
|
|
66
|
-
z.string().parse(id);
|
|
66
|
+
z.string().min(1).parse(id);
|
|
67
67
|
const response = await request({
|
|
68
68
|
httpMethod: 'POST',
|
|
69
69
|
baseUri: this.syncApiBase,
|
|
@@ -76,7 +76,7 @@ export class SectionClient extends BaseClient {
|
|
|
76
76
|
return validateSection(response.data);
|
|
77
77
|
}
|
|
78
78
|
async deleteSection(id, requestId) {
|
|
79
|
-
z.string().parse(id);
|
|
79
|
+
z.string().min(1).parse(id);
|
|
80
80
|
const response = await request({
|
|
81
81
|
httpMethod: 'DELETE',
|
|
82
82
|
baseUri: this.syncApiBase,
|
|
@@ -88,7 +88,7 @@ export class SectionClient extends BaseClient {
|
|
|
88
88
|
return isSuccess(response);
|
|
89
89
|
}
|
|
90
90
|
async archiveSection(id, requestId) {
|
|
91
|
-
z.string().parse(id);
|
|
91
|
+
z.string().min(1).parse(id);
|
|
92
92
|
const response = await request({
|
|
93
93
|
httpMethod: 'POST',
|
|
94
94
|
baseUri: this.syncApiBase,
|
|
@@ -100,7 +100,7 @@ export class SectionClient extends BaseClient {
|
|
|
100
100
|
return validateSection(response.data);
|
|
101
101
|
}
|
|
102
102
|
async unarchiveSection(id, requestId) {
|
|
103
|
-
z.string().parse(id);
|
|
103
|
+
z.string().min(1).parse(id);
|
|
104
104
|
const response = await request({
|
|
105
105
|
httpMethod: 'POST',
|
|
106
106
|
baseUri: this.syncApiBase,
|
|
@@ -28,7 +28,7 @@ const MAX_COMMAND_COUNT = 100;
|
|
|
28
28
|
*/
|
|
29
29
|
export class TaskClient extends BaseClient {
|
|
30
30
|
async getTask(id) {
|
|
31
|
-
z.string().parse(id);
|
|
31
|
+
z.string().min(1).parse(id);
|
|
32
32
|
const response = await request({
|
|
33
33
|
httpMethod: 'GET',
|
|
34
34
|
baseUri: this.syncApiBase,
|
|
@@ -152,7 +152,7 @@ export class TaskClient extends BaseClient {
|
|
|
152
152
|
return validateTask(response.data);
|
|
153
153
|
}
|
|
154
154
|
async updateTask(id, args, requestId) {
|
|
155
|
-
z.string().parse(id);
|
|
155
|
+
z.string().min(1).parse(id);
|
|
156
156
|
// Translate SDK alias for due-date clearing to Todoist's accepted payload value.
|
|
157
157
|
const normalizedArgs = args.dueString === null ? Object.assign(Object.assign({}, args), { dueString: 'no date' }) : args;
|
|
158
158
|
// Process content if both content and isUncompletable are provided
|
|
@@ -200,7 +200,7 @@ export class TaskClient extends BaseClient {
|
|
|
200
200
|
return validateTaskArray(syncTasks);
|
|
201
201
|
}
|
|
202
202
|
async moveTask(id, args, requestId) {
|
|
203
|
-
z.string().parse(id);
|
|
203
|
+
z.string().min(1).parse(id);
|
|
204
204
|
const response = await request({
|
|
205
205
|
httpMethod: 'POST',
|
|
206
206
|
baseUri: this.syncApiBase,
|
|
@@ -213,7 +213,7 @@ export class TaskClient extends BaseClient {
|
|
|
213
213
|
return validateTask(response.data);
|
|
214
214
|
}
|
|
215
215
|
async closeTask(id, requestId) {
|
|
216
|
-
z.string().parse(id);
|
|
216
|
+
z.string().min(1).parse(id);
|
|
217
217
|
const response = await request({
|
|
218
218
|
httpMethod: 'POST',
|
|
219
219
|
baseUri: this.syncApiBase,
|
|
@@ -225,7 +225,7 @@ export class TaskClient extends BaseClient {
|
|
|
225
225
|
return isSuccess(response);
|
|
226
226
|
}
|
|
227
227
|
async reopenTask(id, requestId) {
|
|
228
|
-
z.string().parse(id);
|
|
228
|
+
z.string().min(1).parse(id);
|
|
229
229
|
const response = await request({
|
|
230
230
|
httpMethod: 'POST',
|
|
231
231
|
baseUri: this.syncApiBase,
|
|
@@ -237,7 +237,7 @@ export class TaskClient extends BaseClient {
|
|
|
237
237
|
return isSuccess(response);
|
|
238
238
|
}
|
|
239
239
|
async deleteTask(id, requestId) {
|
|
240
|
-
z.string().parse(id);
|
|
240
|
+
z.string().min(1).parse(id);
|
|
241
241
|
const response = await request({
|
|
242
242
|
httpMethod: 'DELETE',
|
|
243
243
|
baseUri: this.syncApiBase,
|
|
@@ -14,7 +14,7 @@ import { BaseClient } from './base-client.js';
|
|
|
14
14
|
*/
|
|
15
15
|
export class UiExtensionClient extends BaseClient {
|
|
16
16
|
async getUiExtension(uiExtensionId, requestId) {
|
|
17
|
-
z.string().parse(uiExtensionId);
|
|
17
|
+
z.string().min(1).parse(uiExtensionId);
|
|
18
18
|
const response = await request({
|
|
19
19
|
httpMethod: 'GET',
|
|
20
20
|
baseUri: this.apiRootBase,
|
|
@@ -37,7 +37,7 @@ export class UiExtensionClient extends BaseClient {
|
|
|
37
37
|
return validateUiExtensionArray(response.data);
|
|
38
38
|
}
|
|
39
39
|
async getUiExtensionsForApp(appId, requestId) {
|
|
40
|
-
z.string().parse(appId);
|
|
40
|
+
z.string().min(1).parse(appId);
|
|
41
41
|
const response = await request({
|
|
42
42
|
httpMethod: 'GET',
|
|
43
43
|
baseUri: this.apiRootBase,
|
|
@@ -61,7 +61,7 @@ export class UiExtensionClient extends BaseClient {
|
|
|
61
61
|
return validateUiExtension(response.data);
|
|
62
62
|
}
|
|
63
63
|
async updateUiExtension(uiExtensionId, args, requestId) {
|
|
64
|
-
z.string().parse(uiExtensionId);
|
|
64
|
+
z.string().min(1).parse(uiExtensionId);
|
|
65
65
|
const response = await request({
|
|
66
66
|
httpMethod: 'PATCH',
|
|
67
67
|
baseUri: this.apiRootBase,
|
|
@@ -74,7 +74,7 @@ export class UiExtensionClient extends BaseClient {
|
|
|
74
74
|
return validateUiExtension(response.data);
|
|
75
75
|
}
|
|
76
76
|
async deleteUiExtension(uiExtensionId, requestId) {
|
|
77
|
-
z.string().parse(uiExtensionId);
|
|
77
|
+
z.string().min(1).parse(uiExtensionId);
|
|
78
78
|
const response = await request({
|
|
79
79
|
httpMethod: 'DELETE',
|
|
80
80
|
baseUri: this.apiRootBase,
|
|
@@ -196,7 +196,7 @@ export class WorkspaceClient extends BaseClient {
|
|
|
196
196
|
return validateWorkspaceArray(response.data);
|
|
197
197
|
}
|
|
198
198
|
async getWorkspace(id, requestId) {
|
|
199
|
-
z.string().parse(id);
|
|
199
|
+
z.string().min(1).parse(id);
|
|
200
200
|
const response = await request({
|
|
201
201
|
httpMethod: 'GET',
|
|
202
202
|
baseUri: this.syncApiBase,
|
|
@@ -220,7 +220,7 @@ export class WorkspaceClient extends BaseClient {
|
|
|
220
220
|
return validateWorkspace(response.data);
|
|
221
221
|
}
|
|
222
222
|
async updateWorkspace(id, args, requestId) {
|
|
223
|
-
z.string().parse(id);
|
|
223
|
+
z.string().min(1).parse(id);
|
|
224
224
|
const response = await request({
|
|
225
225
|
httpMethod: 'POST',
|
|
226
226
|
baseUri: this.syncApiBase,
|
|
@@ -233,7 +233,7 @@ export class WorkspaceClient extends BaseClient {
|
|
|
233
233
|
return validateWorkspace(response.data);
|
|
234
234
|
}
|
|
235
235
|
async deleteWorkspace(id, requestId) {
|
|
236
|
-
z.string().parse(id);
|
|
236
|
+
z.string().min(1).parse(id);
|
|
237
237
|
const response = await request({
|
|
238
238
|
httpMethod: 'DELETE',
|
|
239
239
|
baseUri: this.syncApiBase,
|
|
@@ -284,6 +284,7 @@ export const DEFAULT_DISTRIBUTION_TOKEN = 'dist-token-abc';
|
|
|
284
284
|
export const DEFAULT_ACCESS_TOKEN_ID = '3003';
|
|
285
285
|
export const DEFAULT_APP = {
|
|
286
286
|
id: DEFAULT_APP_ID,
|
|
287
|
+
clientId: 'client-id-xyz',
|
|
287
288
|
status: 'public',
|
|
288
289
|
displayName: 'Sample App',
|
|
289
290
|
userId: DEFAULT_USER_ID,
|
|
@@ -17,7 +17,7 @@ export declare class AppClient extends BaseClient {
|
|
|
17
17
|
getAppSecrets(appId: string, requestId?: string): Promise<AppSecrets>;
|
|
18
18
|
resetAppClientSecret(appId: string, requestId?: string): Promise<AppWithUserCount>;
|
|
19
19
|
revokeAppTokens(appId: string, requestId?: string): Promise<AppWithUserCount>;
|
|
20
|
-
uploadAppIcon(
|
|
20
|
+
uploadAppIcon({ appId, file, fileName, size }: UploadAppIconArgs, requestId?: string): Promise<AppWithUserCount>;
|
|
21
21
|
getAppTestToken(appId: string, requestId?: string): Promise<AppTestToken>;
|
|
22
22
|
createAppTestToken(appId: string, requestId?: string): Promise<AppTestToken>;
|
|
23
23
|
getAppDistributionToken(appId: string, requestId?: string): Promise<AppDistributionToken>;
|
|
@@ -152,6 +152,7 @@ export declare const AppTokenScopesSchema: z.ZodPipe<z.ZodNullable<z.ZodString>,
|
|
|
152
152
|
*/
|
|
153
153
|
export declare const AppSchema: z.ZodObject<{
|
|
154
154
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
155
|
+
clientId: z.ZodString;
|
|
155
156
|
status: z.ZodEnum<{
|
|
156
157
|
public: "public";
|
|
157
158
|
}>;
|
|
@@ -176,6 +177,7 @@ export type App = z.infer<typeof AppSchema>;
|
|
|
176
177
|
*/
|
|
177
178
|
export declare const AppWithUserCountSchema: z.ZodObject<{
|
|
178
179
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
180
|
+
clientId: z.ZodString;
|
|
179
181
|
status: z.ZodEnum<{
|
|
180
182
|
public: "public";
|
|
181
183
|
}>;
|
|
@@ -328,6 +330,7 @@ export type AppWebhook = z.infer<typeof AppWebhookSchema>;
|
|
|
328
330
|
*/
|
|
329
331
|
export declare const InstalledIntegrationSchema: z.ZodObject<{
|
|
330
332
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
333
|
+
clientId: z.ZodString;
|
|
331
334
|
status: z.ZodEnum<{
|
|
332
335
|
public: "public";
|
|
333
336
|
}>;
|
|
@@ -359,6 +362,7 @@ export declare const AppInstallationSchema: z.ZodObject<{
|
|
|
359
362
|
appTokenScopesValidated: z.ZodBoolean;
|
|
360
363
|
integration: z.ZodNullable<z.ZodObject<{
|
|
361
364
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
365
|
+
clientId: z.ZodString;
|
|
362
366
|
status: z.ZodEnum<{
|
|
363
367
|
public: "public";
|
|
364
368
|
}>;
|
|
@@ -1522,6 +1522,7 @@ export declare const validateSuggestion: (input: unknown) => {
|
|
|
1522
1522
|
export declare function parseSyncResponse(raw: Record<string, unknown>): SyncResponse;
|
|
1523
1523
|
export declare const validateApp: (input: unknown) => {
|
|
1524
1524
|
id: string;
|
|
1525
|
+
clientId: string;
|
|
1525
1526
|
status: "public";
|
|
1526
1527
|
displayName: string;
|
|
1527
1528
|
userId: string;
|
|
@@ -1535,6 +1536,7 @@ export declare const validateApp: (input: unknown) => {
|
|
|
1535
1536
|
appTokenScopes: string[] | null;
|
|
1536
1537
|
}, validateAppArray: (input: unknown) => {
|
|
1537
1538
|
id: string;
|
|
1539
|
+
clientId: string;
|
|
1538
1540
|
status: "public";
|
|
1539
1541
|
displayName: string;
|
|
1540
1542
|
userId: string;
|
|
@@ -1549,6 +1551,7 @@ export declare const validateApp: (input: unknown) => {
|
|
|
1549
1551
|
}[];
|
|
1550
1552
|
export declare const validateAppWithUserCount: (input: unknown) => {
|
|
1551
1553
|
id: string;
|
|
1554
|
+
clientId: string;
|
|
1552
1555
|
status: "public";
|
|
1553
1556
|
displayName: string;
|
|
1554
1557
|
userId: string;
|
|
@@ -1602,6 +1605,7 @@ export declare const validateAppInstallation: (input: unknown) => {
|
|
|
1602
1605
|
appTokenScopesValidated: boolean;
|
|
1603
1606
|
integration: {
|
|
1604
1607
|
id: string;
|
|
1608
|
+
clientId: string;
|
|
1605
1609
|
status: "public";
|
|
1606
1610
|
displayName: string;
|
|
1607
1611
|
userId: string;
|
|
@@ -1622,6 +1626,7 @@ export declare const validateAppInstallation: (input: unknown) => {
|
|
|
1622
1626
|
appTokenScopesValidated: boolean;
|
|
1623
1627
|
integration: {
|
|
1624
1628
|
id: string;
|
|
1629
|
+
clientId: string;
|
|
1625
1630
|
status: "public";
|
|
1626
1631
|
displayName: string;
|
|
1627
1632
|
userId: string;
|
package/package.json
CHANGED