@nasebanal/cli 0.12.0 → 0.13.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/README.md +268 -79
- package/dist/apis.js +2 -1
- package/dist/index.js +12 -3
- package/dist/reports/monitors.js +57 -0
- package/dist/reports/upload.js +117 -249
- package/dist/spec/build.js +61 -7
- package/dist/specs/apiVersion.js +38 -0
- package/dist/specs/command.js +210 -13
- package/dist/specs/docs.js +73 -0
- package/dist/specs/pull.js +18 -13
- package/dist/specs/push.js +170 -16
- package/dist/specs/resolve.js +182 -0
- package/dist/specs/servers.js +88 -0
- package/dist/specs/settings.js +48 -0
- package/package.json +1 -1
- package/specs/account.yaml +90 -1
- package/specs/assurance.yaml +229 -1215
- package/specs/specs.yaml +1574 -0
- package/specs/target.yaml +1 -1
package/specs/account.yaml
CHANGED
|
@@ -2,7 +2,7 @@ openapi: 3.0.3
|
|
|
2
2
|
info:
|
|
3
3
|
title: NASEBANAL Account API
|
|
4
4
|
description: Centralized user and billing management API for NASEBANAL applications. Manages user profiles, per-service subscriptions, and Personal Access Tokens (PAT).
|
|
5
|
-
version: 1.
|
|
5
|
+
version: 1.8.0
|
|
6
6
|
contact:
|
|
7
7
|
name: NASEBANAL
|
|
8
8
|
url: https://www.nasebanal.com
|
|
@@ -165,6 +165,65 @@ paths:
|
|
|
165
165
|
format: date-time
|
|
166
166
|
"401":
|
|
167
167
|
$ref: "#/components/responses/Unauthorized"
|
|
168
|
+
/api/v1/me/newsletter:
|
|
169
|
+
get:
|
|
170
|
+
tags:
|
|
171
|
+
- User
|
|
172
|
+
summary: Newsletter subscription
|
|
173
|
+
description: "Whether the caller's own address receives the newsletter: it is in the newsletter segment and has not unsubscribed through a broadcast's own link. Only the caller's own address is ever read. `available` is false when the newsletter is not configured on this API (the switch should be hidden). Requires the API's Resend key to have Full access; a Resend failure answers 502, never a wrong state."
|
|
174
|
+
responses:
|
|
175
|
+
"200":
|
|
176
|
+
description: Current newsletter state
|
|
177
|
+
content:
|
|
178
|
+
application/json:
|
|
179
|
+
schema:
|
|
180
|
+
$ref: "#/components/schemas/NewsletterResponse"
|
|
181
|
+
"401":
|
|
182
|
+
$ref: "#/components/responses/Unauthorized"
|
|
183
|
+
"502":
|
|
184
|
+
description: The newsletter service (Resend) could not be read or updated
|
|
185
|
+
content:
|
|
186
|
+
application/json:
|
|
187
|
+
schema:
|
|
188
|
+
$ref: "#/components/schemas/Error"
|
|
189
|
+
put:
|
|
190
|
+
tags:
|
|
191
|
+
- User
|
|
192
|
+
summary: Subscribe or unsubscribe the newsletter
|
|
193
|
+
description: Subscribes (adds the caller to the newsletter segment and clears `unsubscribed`) or unsubscribes (removes the caller from the newsletter segment only; the Users segment and the contact stay). The address always comes from the token, never from the body.
|
|
194
|
+
requestBody:
|
|
195
|
+
required: true
|
|
196
|
+
content:
|
|
197
|
+
application/json:
|
|
198
|
+
schema:
|
|
199
|
+
$ref: "#/components/schemas/UpdateNewsletterInput"
|
|
200
|
+
responses:
|
|
201
|
+
"200":
|
|
202
|
+
description: Newsletter state after the change
|
|
203
|
+
content:
|
|
204
|
+
application/json:
|
|
205
|
+
schema:
|
|
206
|
+
$ref: "#/components/schemas/NewsletterResponse"
|
|
207
|
+
"400":
|
|
208
|
+
description: "`subscribed` is not a boolean"
|
|
209
|
+
content:
|
|
210
|
+
application/json:
|
|
211
|
+
schema:
|
|
212
|
+
$ref: "#/components/schemas/Error"
|
|
213
|
+
"401":
|
|
214
|
+
$ref: "#/components/responses/Unauthorized"
|
|
215
|
+
"502":
|
|
216
|
+
description: The newsletter service (Resend) could not be read or updated
|
|
217
|
+
content:
|
|
218
|
+
application/json:
|
|
219
|
+
schema:
|
|
220
|
+
$ref: "#/components/schemas/Error"
|
|
221
|
+
"503":
|
|
222
|
+
description: The newsletter is not available for this account
|
|
223
|
+
content:
|
|
224
|
+
application/json:
|
|
225
|
+
schema:
|
|
226
|
+
$ref: "#/components/schemas/Error"
|
|
168
227
|
/api/v1/me/subscriptions:
|
|
169
228
|
get:
|
|
170
229
|
tags:
|
|
@@ -1127,6 +1186,36 @@ components:
|
|
|
1127
1186
|
details:
|
|
1128
1187
|
type: object
|
|
1129
1188
|
additionalProperties: true
|
|
1189
|
+
NewsletterResponse:
|
|
1190
|
+
type: object
|
|
1191
|
+
required:
|
|
1192
|
+
- success
|
|
1193
|
+
- data
|
|
1194
|
+
properties:
|
|
1195
|
+
success:
|
|
1196
|
+
type: boolean
|
|
1197
|
+
enum:
|
|
1198
|
+
- true
|
|
1199
|
+
data:
|
|
1200
|
+
type: object
|
|
1201
|
+
required:
|
|
1202
|
+
- available
|
|
1203
|
+
- subscribed
|
|
1204
|
+
properties:
|
|
1205
|
+
available:
|
|
1206
|
+
type: boolean
|
|
1207
|
+
description: False when the newsletter is not configured on this API (hide the switch).
|
|
1208
|
+
subscribed:
|
|
1209
|
+
type: boolean
|
|
1210
|
+
description: True while the address is in the newsletter segment and has not unsubscribed.
|
|
1211
|
+
UpdateNewsletterInput:
|
|
1212
|
+
type: object
|
|
1213
|
+
required:
|
|
1214
|
+
- subscribed
|
|
1215
|
+
properties:
|
|
1216
|
+
subscribed:
|
|
1217
|
+
type: boolean
|
|
1218
|
+
description: true to subscribe, false to unsubscribe.
|
|
1130
1219
|
responses:
|
|
1131
1220
|
Unauthorized:
|
|
1132
1221
|
description: Authentication required or invalid token
|