Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
test(ts): update failing snapshots in cli
jkomyno committed
Dec 10, 2025 at 11:55 UTC
502af1c2a4795e81dd27af2e833d5af955a45c04
1 file changed
-94
ts/packages/cli/test/src/generation/typescript/generate-toolkit-source.test.ts
-94
@@ -251,31 +251,26 @@ describe('generateTypeScriptToolkitSources', () => {
251
/**
252
* Author
253
* @description The GitHub username of the commit author
254
- * @example octocat
254
*/
255
author?: string;
256
/**
257
* Id
258
* @description The SHA of the commit
260
- * @example 7638417db6d59f3c431d3e1f261cc637155684cd
259
*/
260
id?: string;
261
/**
262
* Message
263
* @description The commit message
266
- * @example Fix typo in README
264
*/
265
message?: string;
266
/**
267
* Timestamp
268
* @description The timestamp of the commit
272
- * @example 2021-04-14T02:15:15Z
269
*/
270
timestamp?: string;
271
/**
272
* Url
273
* @description The GitHub URL of the commit
278
- * @example https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd
274
*/
275
url?: string;
276
};
@@ -298,50 +293,42 @@ describe('generateTypeScriptToolkitSources', () => {
293
/**
294
* Action
295
* @description The action that was performed on the issue
301
- * @example opened
296
*/
297
action?: string;
298
/**
299
* Createdat
300
* @description The timestamp when the issue was created
307
- * @example 2021-04-14T02:15:15Z
301
*/
302
createdAt?: string;
303
/**
304
* Createdby
305
* @description The GitHub username of the user who created the issue
313
- * @example octocat
306
*/
307
createdBy?: string;
308
/**
309
* Description
310
* @description A detailed description of the issue
311
* @default
320
- * @example There is a bug in the code that needs to be fixed.
312
*/
313
description: string;
314
/**
315
* Issue Id
316
* @description The unique ID assigned to the issue
326
- * @example 101
317
*/
318
issue_id?: number;
319
/**
320
* Number
321
* @description The unique number assigned to the issue
332
- * @example 42
322
*/
323
number?: number;
324
/**
325
* Title
326
* @description The title of the issue
338
- * @example Bug in code
327
*/
328
title?: string;
329
/**
330
* Url
331
* @description The GitHub URL of the issue
344
- * @example https://github.com/octocat/Hello-World/issues/42
332
*/
333
url?: string;
334
};
@@ -353,44 +340,36 @@ describe('generateTypeScriptToolkitSources', () => {
340
/**
341
* Action
342
* @description The action that was performed on the label
356
- * @example labeled
343
*/
344
action?: string;
345
/**
346
* Label
347
* @description The name of the label that was added
362
- * @example bug
363
- * @example enhancement
348
*/
349
label?: string;
350
/**
351
* Labeled At
352
* @description The timestamp when the label was added
369
- * @example 2021-04-14T02:15:15Z
353
*/
354
labeled_at?: string;
355
/**
356
* Labeled By
357
* @description The GitHub username of the user who added the label
375
- * @example octocat
358
*/
359
labeled_by?: string;
360
/**
361
* Pull Request Number
362
* @description The unique number assigned to the pull request
381
- * @example 42
363
*/
364
pull_request_number?: number;
365
/**
366
* Pull Request Title
367
* @description The title of the pull request
387
- * @example Fix typo in README
368
*/
369
pull_request_title?: string;
370
/**
371
* Pull Request Url
372
* @description The GitHub URL of the pull request
393
- * @example https://github.com/octocat/Hello-World/pull/42
373
*/
374
pull_request_url?: string;
375
};
@@ -402,46 +381,37 @@ describe('generateTypeScriptToolkitSources', () => {
381
/**
382
* Action
383
* @description The action that was performed on the pull request
405
- * @example opened
406
- * @example closed
407
- * @example synchronize
384
*/
385
action?: string;
386
/**
387
* Createdat
388
* @description The timestamp when the pull request was created
413
- * @example 2021-04-14T02:15:15Z
389
*/
390
createdAt?: string;
391
/**
392
* Createdby
393
* @description The GitHub username of the user who created the pull request
419
- * @example octocat
394
*/
395
createdBy?: string;
396
/**
397
* Description
398
* @description A detailed description of the pull request
399
* @default
426
- * @example This pull request fixes a typo found in the README file under the 'Installation' section.
400
*/
401
description: string;
402
/**
403
* Number
404
* @description The unique number assigned to the pull request
432
- * @example 42
405
*/
406
number?: number;
407
/**
408
* Title
409
* @description The title of the pull request
438
- * @example Fix typo in README
410
*/
411
title?: string;
412
/**
413
* Url
414
* @description The GitHub URL of the pull request
444
- * @example https://github.com/octocat/Hello-World/pull/42
415
*/
416
url?: string;
417
};
@@ -453,37 +423,31 @@ describe('generateTypeScriptToolkitSources', () => {
423
/**
424
* Action
425
* @description The action that was performed on the star
456
- * @example created
426
*/
427
action?: string;
428
/**
429
* Repository Id
430
* @description The unique ID assigned to the repository
462
- * @example 101
431
*/
432
repository_id?: number;
433
/**
434
* Repository Name
435
* @description The name of the repository
468
- * @example Hello-World
436
*/
437
repository_name?: string;
438
/**
439
* Repository Url
440
* @description The GitHub URL of the repository
474
- * @example https://github.com/octocat/Hello-World
441
*/
442
repository_url?: string;
443
/**
444
* Starred At
445
* @description The timestamp when the star was added
480
- * @example 2021-04-14T02:15:15Z
446
*/
447
starred_at?: string;
448
/**
449
* Starred By
450
* @description The GitHub username of the user who added the star
486
- * @example octocat
451
*/
452
starred_by?: string;
453
};
@@ -815,8 +779,6 @@ describe('generateTypeScriptToolkitSources', () => {
779
/**
780
* Invitation Id
781
* @description Unique identifier of the repository invitation. Obtain by listing pending invitations for the authenticated user.
818
- * @example 12345
819
- * @example 67890
782
*/
783
invitation_id?: number;
784
};
@@ -853,8 +815,6 @@ describe('generateTypeScriptToolkitSources', () => {
815
* Direction
816
* @description Sort direction: 'asc' (ascending) or 'desc' (descending).
817
* @default desc
856
- * @example asc
857
- * @example desc
818
* @enum {string}
819
*/
820
direction: "asc" | "desc";
@@ -862,26 +822,18 @@ describe('generateTypeScriptToolkitSources', () => {
822
* Page
823
* @description Page number of results (starts from 1).
824
* @default 1
865
- * @example 1
866
- * @example 2
867
- * @example 5
825
*/
826
page: number;
827
/**
828
* Per Page
829
* @description Number of results per page (max 100).
830
* @default 1
874
- * @example 30
875
- * @example 50
876
- * @example 100
831
*/
832
per_page: number;
833
/**
834
* Sort
835
* @description Sorts starred repositories by 'created' (date starred) or 'updated' (date last pushed).
836
* @default created
883
- * @example created
884
- * @example updated
837
* @enum {string}
838
*/
839
sort: "created" | "updated";
@@ -915,33 +867,23 @@ describe('generateTypeScriptToolkitSources', () => {
867
/**
868
* Owner
869
* @description Username of the account owner (user or organization) of the repository; case-insensitive.
918
- * @example octocat
919
- * @example google
870
*/
871
owner?: string;
872
/**
873
* Page
874
* @description Page number of the results to fetch.
875
* @default 1
926
- * @example 1
927
- * @example 2
928
- * @example 10
876
*/
877
page: number;
878
/**
879
* Per Page
880
* @description Number of results to display per page (max 100).
881
* @default 30
935
- * @example 30
936
- * @example 50
937
- * @example 100
882
*/
883
per_page: number;
884
/**
885
* Repo
886
* @description Name of the repository, without the \`.git\` extension; case-insensitive.
943
- * @example Spoon-Knife
944
- * @example mercury
887
*/
888
repo?: string;
889
};
@@ -998,31 +940,26 @@ describe('generateTypeScriptToolkitSources', () => {
940
/**
941
* Author
942
* @description The GitHub username of the commit author
1001
- * @example octocat
943
*/
944
author?: string;
945
/**
946
* Id
947
* @description The SHA of the commit
1007
- * @example 7638417db6d59f3c431d3e1f261cc637155684cd
948
*/
949
id?: string;
950
/**
951
* Message
952
* @description The commit message
1013
- * @example Fix typo in README
953
*/
954
message?: string;
955
/**
956
* Timestamp
957
* @description The timestamp of the commit
1019
- * @example 2021-04-14T02:15:15Z
958
*/
959
timestamp?: string;
960
/**
961
* Url
962
* @description The GitHub URL of the commit
1025
- * @example https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd
963
*/
964
url?: string;
965
};
@@ -1045,50 +982,42 @@ describe('generateTypeScriptToolkitSources', () => {
982
/**
983
* Action
984
* @description The action that was performed on the issue
1048
- * @example opened
985
*/
986
action?: string;
987
/**
988
* Createdat
989
* @description The timestamp when the issue was created
1054
- * @example 2021-04-14T02:15:15Z
990
*/
991
createdAt?: string;
992
/**
993
* Createdby
994
* @description The GitHub username of the user who created the issue
1060
- * @example octocat
995
*/
996
createdBy?: string;
997
/**
998
* Description
999
* @description A detailed description of the issue
1000
* @default
1067
- * @example There is a bug in the code that needs to be fixed.
1001
*/
1002
description: string;
1003
/**
1004
* Issue Id
1005
* @description The unique ID assigned to the issue
1073
- * @example 101
1006
*/
1007
issue_id?: number;
1008
/**
1009
* Number
1010
* @description The unique number assigned to the issue
1079
- * @example 42
1011
*/
1012
number?: number;
1013
/**
1014
* Title
1015
* @description The title of the issue
1085
- * @example Bug in code
1016
*/
1017
title?: string;
1018
/**
1019
* Url
1020
* @description The GitHub URL of the issue
1091
- * @example https://github.com/octocat/Hello-World/issues/42
1021
*/
1022
url?: string;
1023
};
@@ -1100,44 +1029,36 @@ describe('generateTypeScriptToolkitSources', () => {
1029
/**
1030
* Action
1031
* @description The action that was performed on the label
1103
- * @example labeled
1032
*/
1033
action?: string;
1034
/**
1035
* Label
1036
* @description The name of the label that was added
1109
- * @example bug
1110
- * @example enhancement
1037
*/
1038
label?: string;
1039
/**
1040
* Labeled At
1041
* @description The timestamp when the label was added
1116
- * @example 2021-04-14T02:15:15Z
1042
*/
1043
labeled_at?: string;
1044
/**
1045
* Labeled By
1046
* @description The GitHub username of the user who added the label
1122
- * @example octocat
1047
*/
1048
labeled_by?: string;
1049
/**
1050
* Pull Request Number
1051
* @description The unique number assigned to the pull request
1128
- * @example 42
1052
*/
1053
pull_request_number?: number;
1054
/**
1055
* Pull Request Title
1056
* @description The title of the pull request
1134
- * @example Fix typo in README
1057
*/
1058
pull_request_title?: string;
1059
/**
1060
* Pull Request Url
1061
* @description The GitHub URL of the pull request
1140
- * @example https://github.com/octocat/Hello-World/pull/42
1062
*/
1063
pull_request_url?: string;
1064
};
@@ -1149,46 +1070,37 @@ describe('generateTypeScriptToolkitSources', () => {
1070
/**
1071
* Action
1072
* @description The action that was performed on the pull request
1152
- * @example opened
1153
- * @example closed
1154
- * @example synchronize
1073
*/
1074
action?: string;
1075
/**
1076
* Createdat
1077
* @description The timestamp when the pull request was created
1160
- * @example 2021-04-14T02:15:15Z
1078
*/
1079
createdAt?: string;
1080
/**
1081
* Createdby
1082
* @description The GitHub username of the user who created the pull request
1166
- * @example octocat
1083
*/
1084
createdBy?: string;
1085
/**
1086
* Description
1087
* @description A detailed description of the pull request
1088
* @default
1173
- * @example This pull request fixes a typo found in the README file under the 'Installation' section.
1089
*/
1090
description: string;
1091
/**
1092
* Number
1093
* @description The unique number assigned to the pull request
1179
- * @example 42
1094
*/
1095
number?: number;
1096
/**
1097
* Title
1098
* @description The title of the pull request
1185
- * @example Fix typo in README
1099
*/
1100
title?: string;
1101
/**
1102
* Url
1103
* @description The GitHub URL of the pull request
1191
- * @example https://github.com/octocat/Hello-World/pull/42
1104
*/
1105
url?: string;
1106
};
@@ -1200,37 +1112,31 @@ describe('generateTypeScriptToolkitSources', () => {
1112
/**
1113
* Action
1114
* @description The action that was performed on the star
1203
- * @example created
1115
*/
1116
action?: string;
1117
/**
1118
* Repository Id
1119
* @description The unique ID assigned to the repository
1209
- * @example 101
1120
*/
1121
repository_id?: number;
1122
/**
1123
* Repository Name
1124
* @description The name of the repository
1215
- * @example Hello-World
1125
*/
1126
repository_name?: string;
1127
/**
1128
* Repository Url
1129
* @description The GitHub URL of the repository
1221
- * @example https://github.com/octocat/Hello-World
1130
*/
1131
repository_url?: string;
1132
/**
1133
* Starred At
1134
* @description The timestamp when the star was added
1227
- * @example 2021-04-14T02:15:15Z
1135
*/
1136
starred_at?: string;
1137
/**
1138
* Starred By
1139
* @description The GitHub username of the user who added the star
1233
- * @example octocat
1140
*/
1141
starred_by?: string;
1142
};