Skip to content

Commit c56af2a

Browse files
authored
feat: v0.6.0, API changes (#16)
Co-authored-by: chrisdengso <8185683+chrisdengso@users.noreply.github.com>
1 parent f170bc2 commit c56af2a

26 files changed

Lines changed: 3270 additions & 32 deletions

‎.speakeasy/gen.lock‎

Lines changed: 124 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f6fec850-ef66-45dd-9a18-cec7cc0801ce
33
management:
4-
docChecksum: ed2fd953cba3e99fb81365252925a0d4
4+
docChecksum: d6bce8a263f0ec11d54bdf026957ba2f
55
docVersion: 1.1.0
66
speakeasyVersion: internal
77
generationVersion: internal
8-
releaseVersion: 0.5.0
9-
configChecksum: 02a247def0b187defcac9b37ddb44f1f
8+
releaseVersion: 0.6.0
9+
configChecksum: 4cc78732410808a71d9e1e939e1e4dc3
1010
repoURL: https://github.com/moderation-api/cli
1111
installationURL: https://github.com/moderation-api/cli
1212
published: true
@@ -51,7 +51,7 @@ trackedFiles:
5151
internal/cli/actions/delete.go:
5252
last_write_checksum: sha1:c71d0687c59b64159890fec7b396414008aa123b
5353
internal/cli/actions/execute.go:
54-
last_write_checksum: sha1:bb337d261800a8d89f30e634c97fac2dddec248e
54+
last_write_checksum: sha1:4e3e4e3af01895f2f7afe1d7823f245139399f80
5555
internal/cli/actions/list.go:
5656
last_write_checksum: sha1:cb002d17fddd5b5eabee0c3ff054a53bc74633be
5757
internal/cli/actions/retrieve.go:
@@ -76,6 +76,8 @@ trackedFiles:
7676
last_write_checksum: sha1:324996d8d12662d1d801978a342779b4b8ed4572
7777
internal/cli/auth.go:
7878
last_write_checksum: sha1:b4a5f6a9339e2f0c230ecdab7a4da8a907feb0d8
79+
internal/cli/authors/block.go:
80+
last_write_checksum: sha1:0f104961102e3f7506e49a733679085a3fcde8b1
7981
internal/cli/authors/create.go:
8082
last_write_checksum: sha1:e71ddd0d952a6ccbf8d24a93bee125156d915bff
8183
internal/cli/authors/delete.go:
@@ -85,7 +87,11 @@ trackedFiles:
8587
internal/cli/authors/retrieve.go:
8688
last_write_checksum: sha1:fd4a28868414d15ce664f8f632e3da12bfdb4c1b
8789
internal/cli/authors/root.go:
88-
last_write_checksum: sha1:95705c7a4cfdae581b8627ab77fbdabc9817504d
90+
last_write_checksum: sha1:6f0741f5f0ff31108ba804bd8648b48fba2774b5
91+
internal/cli/authors/suspend.go:
92+
last_write_checksum: sha1:b4762cf936b2ee9a623e4ffee8a497bdb93c3718
93+
internal/cli/authors/unblock.go:
94+
last_write_checksum: sha1:6a3bd242b8aaa1f2782a6522a5dea213aedcea32
8995
internal/cli/authors/update.go:
9096
last_write_checksum: sha1:0c5b4bc8f0af5f445a8b0cafe2df7da28540896a
9197
internal/cli/channels/create.go:
@@ -104,8 +110,12 @@ trackedFiles:
104110
last_write_checksum: sha1:de897645adfed72311ae26864695c225bb260b5a
105111
internal/cli/configure.go:
106112
last_write_checksum: sha1:187a7058682f79b18d9da7357259b9e5f2af1309
113+
internal/cli/content/allow.go:
114+
last_write_checksum: sha1:7356d2cbdeab6d89b77caca73a4dc01115920e98
115+
internal/cli/content/reject.go:
116+
last_write_checksum: sha1:2721a7dcb763361facf664575b4a6c934bc26b99
107117
internal/cli/content/root.go:
108-
last_write_checksum: sha1:3c9d297eb0c6908e4efa9ab881dfefd9909c1595
118+
last_write_checksum: sha1:785c6f2a7a640f7d8c59f657a2648e31f78661c9
109119
internal/cli/content/submit.go:
110120
last_write_checksum: sha1:5db89edd5a5f6b7867090c973744f629e4498422
111121
internal/cli/feedback/create.go:
@@ -151,9 +161,9 @@ trackedFiles:
151161
internal/cli/queue/root.go:
152162
last_write_checksum: sha1:ce2788b28359a23ff98a244ac90b71a827c16e63
153163
internal/cli/root.go:
154-
last_write_checksum: sha1:1bc5de6fbf6e903d6ce21034fbfd82719e4bd5e3
164+
last_write_checksum: sha1:e5d1b2211d9b4aaa93e95f248ce7db2af0a1844c
155165
internal/cli/version.go:
156-
last_write_checksum: sha1:3d31261c59e8a154342e9ad6376ff39e5e54b2f7
166+
last_write_checksum: sha1:8ec1fd280177b7de452c747511fd0ad1c8619898
157167
internal/cli/webhooks/create.go:
158168
last_write_checksum: sha1:98c73266c8954efcf0da2493ae41909df45a38f0
159169
internal/cli/webhooks/delete.go:
@@ -257,11 +267,11 @@ trackedFiles:
257267
internal/sdk/apikeys.go:
258268
last_write_checksum: sha1:eb2143b8ecfa3044b599462841bd90d70671bf3b
259269
internal/sdk/authors.go:
260-
last_write_checksum: sha1:6634e98d71de59478161a5e9e0ce21c9109536af
270+
last_write_checksum: sha1:d6ee77fd488d6dfd1225315f04691fbddf772e11
261271
internal/sdk/channels.go:
262272
last_write_checksum: sha1:9725f5e3d5a0f5de727883345c47910195549294
263273
internal/sdk/content.go:
264-
last_write_checksum: sha1:e8867fac2baae5fb6d85d330f8411add76c594e7
274+
last_write_checksum: sha1:cccfa1b907ecf93c3f82bb8c15e599ada01e50fd
265275
internal/sdk/feedback.go:
266276
last_write_checksum: sha1:e851165bd315e8c590b4df1a5b6d40d4e2fa4a92
267277
internal/sdk/items.go:
@@ -306,6 +316,10 @@ trackedFiles:
306316
last_write_checksum: sha1:510eb3e6e24062a550cb732ea312c8963882f0e2
307317
internal/sdk/models/operations/addwordlistwords.go:
308318
last_write_checksum: sha1:67b4548755cf27fc01bbceac7f0255b26cbdfb5d
319+
internal/sdk/models/operations/allowcontent.go:
320+
last_write_checksum: sha1:5d7f539c6af48590b6b166093fcc3b170a2adff6
321+
internal/sdk/models/operations/blockauthor.go:
322+
last_write_checksum: sha1:3075049ab586b95c6e4c9cbcaabe8f5f3bf781fe
309323
internal/sdk/models/operations/createaction.go:
310324
last_write_checksum: sha1:dafdfd1d349f31ed9de63b05537018b44993be23
311325
internal/sdk/models/operations/createauthor.go:
@@ -337,7 +351,7 @@ trackedFiles:
337351
internal/sdk/models/operations/duplicateproject.go:
338352
last_write_checksum: sha1:f9f3c78f7ee05aa9cc2fa6bcc2f6fcb92611d643
339353
internal/sdk/models/operations/executeaction.go:
340-
last_write_checksum: sha1:974f2701f706a14b6cc7965ecc3c5f5930e28528
354+
last_write_checksum: sha1:4dcbe2995f269db017346ba97cc5da07167dbfcb
341355
internal/sdk/models/operations/getaccount.go:
342356
last_write_checksum: sha1:7b0caea7bdc17e48f831fdc4388fc4d29989c75c
343357
internal/sdk/models/operations/getaction.go:
@@ -390,6 +404,8 @@ trackedFiles:
390404
last_write_checksum: sha1:df754a1f944503f21a1189dcd42099a03d37429e
391405
internal/sdk/models/operations/options.go:
392406
last_write_checksum: sha1:48bcab7f3327575bf6309176ee29015cc9477a74
407+
internal/sdk/models/operations/rejectcontent.go:
408+
last_write_checksum: sha1:37290da59e6131e1b4e766e9213ee8ada70c5060
393409
internal/sdk/models/operations/removewordlistwords.go:
394410
last_write_checksum: sha1:3f05a9e7df2be903164ba8bc07835473087b7f64
395411
internal/sdk/models/operations/resolvequeueitem.go:
@@ -398,6 +414,10 @@ trackedFiles:
398414
last_write_checksum: sha1:f43daa692b1e8203ce8ebf2adf80b79e9f04b8ae
399415
internal/sdk/models/operations/submitcontent.go:
400416
last_write_checksum: sha1:cb670d0bf2fdcd9c7ac68031c7512e2c7d0604bf
417+
internal/sdk/models/operations/suspendauthor.go:
418+
last_write_checksum: sha1:af885ce2174abc6695e4dbaddd7b468d50d47bdd
419+
internal/sdk/models/operations/unblockauthor.go:
420+
last_write_checksum: sha1:b3ad277887e69ba140a561cde376dc0d17716ed5
401421
internal/sdk/models/operations/unresolvequeueitem.go:
402422
last_write_checksum: sha1:093fc225a3915f232e5fc18512eb0df40cfc956d
403423
internal/sdk/models/operations/updateaction.go:
@@ -431,7 +451,7 @@ trackedFiles:
431451
internal/sdk/models/sdkerrors/sdkdefaulterror.go:
432452
last_write_checksum: sha1:437b3a3eacb54d8648a68f80b3cd38fa5019f006
433453
internal/sdk/moderationapi.go:
434-
last_write_checksum: sha1:5e3a44fff5b0c2ee7bedd9735b7436f24dd0f947
454+
last_write_checksum: sha1:23253dcf72960a999e32bf25f7b5bb41c216d3e4
435455
internal/sdk/optionalnullable/optionalnullable.go:
436456
last_write_checksum: sha1:b828c94c45116e632925027e4e2c211e971e04e2
437457
internal/sdk/optionalnullable/optionalnullable_test.go:
@@ -491,9 +511,9 @@ trackedFiles:
491511
internal/testclient/testclient.go:
492512
last_write_checksum: sha1:7107e59d336235c44af152c5a61ee3896a7841fa
493513
internal/usage/bodyschemas.go:
494-
last_write_checksum: sha1:e35857ce9ebd1c1ff7a9913f8cdb21a27aff7db3
514+
last_write_checksum: sha1:27959b7df8d97c2b4639655c81c330a43114d7d6
495515
internal/usage/schema.go:
496-
last_write_checksum: sha1:83417c8703b1d61777c96648b8db8a955b562791
516+
last_write_checksum: sha1:3ca5ea9c7c1891b13d1e360a33e7075bd5db1f0b
497517
scripts/install.ps1:
498518
last_write_checksum: sha1:bd3a52c28f647ed881c6e8d72abf2d84216976c9
499519
scripts/install.sh:
@@ -1457,4 +1477,94 @@ examples:
14571477
application/json: {"type": "authentication_error", "code": "unauthorized", "message": "Authorization not provided", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://shameless-excess.net"}
14581478
"429":
14591479
application/json: {"type": "rate_limit_error", "code": "rate_limit_exceeded", "message": "Rate limit exceeded", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://breakable-insolence.info"}
1480+
blockAuthor:
1481+
speakeasy-default-block-author:
1482+
parameters:
1483+
path:
1484+
id: "<id>"
1485+
requestBody:
1486+
application/json: {}
1487+
responses:
1488+
"200":
1489+
application/json: {"success": false}
1490+
"400":
1491+
application/json: {"type": "invalid_request_error", "code": "invalid_request", "message": "Invalid input data", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://mammoth-appliance.org/"}
1492+
"401":
1493+
application/json: {"type": "authentication_error", "code": "unauthorized", "message": "Authorization not provided", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://clumsy-ectoderm.com/"}
1494+
"404":
1495+
application/json: {"type": "not_found_error", "code": "resource_not_found", "message": "Not found", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://square-custody.com"}
1496+
"429":
1497+
application/json: {"type": "rate_limit_error", "code": "rate_limit_exceeded", "message": "Rate limit exceeded", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://mysterious-dime.name/"}
1498+
suspendAuthor:
1499+
speakeasy-default-suspend-author:
1500+
parameters:
1501+
path:
1502+
id: "<id>"
1503+
requestBody:
1504+
application/json: {}
1505+
responses:
1506+
"200":
1507+
application/json: {"success": true}
1508+
"400":
1509+
application/json: {"type": "invalid_request_error", "code": "invalid_request", "message": "Invalid input data", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://cluttered-hubris.name/"}
1510+
"401":
1511+
application/json: {"type": "authentication_error", "code": "unauthorized", "message": "Authorization not provided", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://far-off-farm.net/"}
1512+
"404":
1513+
application/json: {"type": "not_found_error", "code": "resource_not_found", "message": "Not found", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://scented-farmer.info"}
1514+
"429":
1515+
application/json: {"type": "rate_limit_error", "code": "rate_limit_exceeded", "message": "Rate limit exceeded", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://miserly-cuckoo.org/"}
1516+
unblockAuthor:
1517+
speakeasy-default-unblock-author:
1518+
parameters:
1519+
path:
1520+
id: "<id>"
1521+
requestBody:
1522+
application/json: {}
1523+
responses:
1524+
"200":
1525+
application/json: {"success": false}
1526+
"400":
1527+
application/json: {"type": "invalid_request_error", "code": "invalid_request", "message": "Invalid input data", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://utter-cornet.org"}
1528+
"401":
1529+
application/json: {"type": "authentication_error", "code": "unauthorized", "message": "Authorization not provided", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://oddball-bathhouse.biz/"}
1530+
"404":
1531+
application/json: {"type": "not_found_error", "code": "resource_not_found", "message": "Not found", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://apprehensive-fisherman.info/"}
1532+
"429":
1533+
application/json: {"type": "rate_limit_error", "code": "rate_limit_exceeded", "message": "Rate limit exceeded", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://unhappy-simple.net/"}
1534+
rejectContent:
1535+
speakeasy-default-reject-content:
1536+
parameters:
1537+
path:
1538+
id: "<id>"
1539+
requestBody:
1540+
application/json: {}
1541+
responses:
1542+
"200":
1543+
application/json: {"success": true}
1544+
"400":
1545+
application/json: {"type": "invalid_request_error", "code": "invalid_request", "message": "Invalid input data", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://expert-pasta.com"}
1546+
"401":
1547+
application/json: {"type": "authentication_error", "code": "unauthorized", "message": "Authorization not provided", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://vibrant-adaptation.name"}
1548+
"404":
1549+
application/json: {"type": "not_found_error", "code": "resource_not_found", "message": "Not found", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://boiling-gym.com/"}
1550+
"429":
1551+
application/json: {"type": "rate_limit_error", "code": "rate_limit_exceeded", "message": "Rate limit exceeded", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://spanish-backburn.net"}
1552+
allowContent:
1553+
speakeasy-default-allow-content:
1554+
parameters:
1555+
path:
1556+
id: "<id>"
1557+
requestBody:
1558+
application/json: {}
1559+
responses:
1560+
"200":
1561+
application/json: {"success": true}
1562+
"400":
1563+
application/json: {"type": "invalid_request_error", "code": "invalid_request", "message": "Invalid input data", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://earnest-fishery.com"}
1564+
"401":
1565+
application/json: {"type": "authentication_error", "code": "unauthorized", "message": "Authorization not provided", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://meager-climb.biz/"}
1566+
"404":
1567+
application/json: {"type": "not_found_error", "code": "resource_not_found", "message": "Not found", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://confused-bell.org"}
1568+
"429":
1569+
application/json: {"type": "rate_limit_error", "code": "rate_limit_exceeded", "message": "Rate limit exceeded", "request_id": "h8fkz6kkzoa446ffve37atys", "doc_url": "https://nervous-partridge.org/"}
14601570
examplesVersion: 1.0.2

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: true
3333
skipResponseBodyAssertions: false
3434
cli:
35-
version: 0.5.0
35+
version: 0.6.0
3636
additionalDependencies: {}
3737
agentEnvironmentDetection: true
3838
arrayFlagFormat: repeatable

0 commit comments

Comments
 (0)