@inklok/api-spec 7.5.0 → 7.5.2

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.
Files changed (2) hide show
  1. package/openapi.yaml +44 -9
  2. package/package.json +1 -1
package/openapi.yaml CHANGED
@@ -8,7 +8,7 @@ info:
8
8
  Authenticate using an API key or bearer token, then use the resources below to manage
9
9
  templates, agreements, documents, and signing. For your first integration, start with
10
10
  the Quick Start guide.
11
- version: "7.5.0"
11
+ version: "7.5.2"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -2202,19 +2202,30 @@ paths:
2202
2202
  x-visibility: internal
2203
2203
  description: |
2204
2204
  Returns simulated emails generated by sandbox agreement workflows visible
2205
- to the authenticated account or the caller's sandbox API-key organization.
2205
+ to the authenticated Cognito user account. API key authentication is not
2206
+ supported for Sandbox Inbox.
2206
2207
  When an agreement action would normally send a notification to a party,
2207
2208
  Inklok creates a simulated email in Sandbox Inbox instead. No emails are
2208
2209
  sent to recipients. Recipient email address is not used for visibility.
2209
2210
  The endpoint uses an explicit allowlist of agreement lifecycle email event
2210
2211
  types and never returns authentication, identity, invitation, security, or
2211
2212
  generic outbound email history. List items are summary-only and do not
2212
- include rendered email bodies.
2213
+ include rendered email bodies. When `messageId` is supplied, the response
2214
+ includes sanitized rendered preview content with executable hrefs, magic
2215
+ links, signer tokens, signing URLs, and replay-enabling identifiers removed.
2216
+ Sanitization is applied to every user-visible Sandbox Inbox field in the
2217
+ response, including subject, preview text, participant labels, agreement
2218
+ titles, and rendered bodies. Email event records remain unchanged.
2213
2219
  x-required-roles: [workflow-editor, workflow-operator, agreement-auditor, organization-admin, platform-super-admin]
2214
- x-required-scopes: [agreements:read]
2215
2220
  tags:
2216
2221
  - Me
2217
2222
  parameters:
2223
+ - name: messageId
2224
+ in: query
2225
+ required: false
2226
+ schema:
2227
+ type: string
2228
+ description: Optional Sandbox Inbox message identifier. When supplied, returns a sanitized message detail instead of a paginated summary list.
2218
2229
  - name: limit
2219
2230
  in: query
2220
2231
  required: false
@@ -2233,11 +2244,13 @@ paths:
2233
2244
  description: Opaque pagination cursor returned by a previous response.
2234
2245
  responses:
2235
2246
  '200':
2236
- description: Simulated Sandbox agreement emails for the authenticated user
2247
+ description: Simulated Sandbox agreement emails or sanitized message detail for the authenticated user
2237
2248
  content:
2238
2249
  application/json:
2239
2250
  schema:
2240
- $ref: '#/components/schemas/SandboxInboxResponse'
2251
+ oneOf:
2252
+ - $ref: '#/components/schemas/SandboxInboxResponse'
2253
+ - $ref: '#/components/schemas/SandboxInboxDetail'
2241
2254
  '401':
2242
2255
  $ref: '#/components/responses/Unauthorized'
2243
2256
  '403':
@@ -3311,10 +3324,11 @@ components:
3311
3324
  email:
3312
3325
  type: string
3313
3326
  nullable: true
3314
- format: email
3327
+ description: Sanitized recipient address preview. Token-like values and replay-enabling identifiers are removed at retrieval time.
3315
3328
  label:
3316
3329
  type: string
3317
3330
  nullable: true
3331
+ description: Sanitized participant display label. Token-like values and replay-enabling identifiers are removed at retrieval time.
3318
3332
 
3319
3333
  SandboxInboxItem:
3320
3334
  type: object
@@ -3336,6 +3350,7 @@ components:
3336
3350
  agreementTitle:
3337
3351
  type: string
3338
3352
  nullable: true
3353
+ description: Sanitized agreement title preview. Token-like values and replay-enabling identifiers are removed at retrieval time.
3339
3354
  eventType:
3340
3355
  type: string
3341
3356
  enum: [SIGN_REQUEST, NEXT_STEP, COMPLETED, REMINDER, SIGNING_REMINDER, AGREEMENT_REMINDER]
@@ -3344,15 +3359,35 @@ components:
3344
3359
  sender:
3345
3360
  type: string
3346
3361
  nullable: true
3362
+ description: Sanitized sender preview. Token-like values and replay-enabling identifiers are removed at retrieval time.
3347
3363
  subject:
3348
3364
  type: string
3349
3365
  nullable: true
3366
+ description: Sanitized email subject preview. Token-like values, signing URLs, and replay-enabling identifiers are removed at retrieval time.
3350
3367
  preview:
3351
3368
  type: string
3369
+ description: Sanitized list preview. Token-like values, signing URLs, and replay-enabling identifiers are removed at retrieval time.
3352
3370
  sentAt:
3353
3371
  type: string
3354
3372
  format: date-time
3355
3373
 
3374
+ SandboxInboxDetail:
3375
+ allOf:
3376
+ - $ref: '#/components/schemas/SandboxInboxItem'
3377
+ - type: object
3378
+ required:
3379
+ - htmlBody
3380
+ - textBody
3381
+ properties:
3382
+ htmlBody:
3383
+ type: string
3384
+ nullable: true
3385
+ description: Sanitized rendered HTML preview. Executable hrefs, magic links, signer tokens, signing URLs, and replay-enabling identifiers are removed at retrieval time.
3386
+ textBody:
3387
+ type: string
3388
+ nullable: true
3389
+ description: Sanitized plain-text preview. Magic links, signer tokens, signing URLs, and replay-enabling identifiers are removed at retrieval time.
3390
+
3356
3391
  SandboxInboxResponse:
3357
3392
  type: object
3358
3393
  required:
@@ -4599,7 +4634,7 @@ components:
4599
4634
  description: Document identifier
4600
4635
  type:
4601
4636
  type: string
4602
- enum: [signature, text, date]
4637
+ enum: [signature, text, date, checkbox]
4603
4638
  description: Placeholder type
4604
4639
  position:
4605
4640
  type: object
@@ -4973,7 +5008,7 @@ components:
4973
5008
  description: Placeholder identifier
4974
5009
  type:
4975
5010
  type: string
4976
- enum: [signature, text, date]
5011
+ enum: [signature, text, date, checkbox]
4977
5012
  description: Placeholder type
4978
5013
  role:
4979
5014
  type: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.5.0",
3
+ "version": "7.5.2",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",