@inklok/api-spec 7.2.2 → 7.4.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.
Files changed (2) hide show
  1. package/openapi.yaml +54 -26
  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.2.2"
11
+ version: "7.4.0"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -2051,9 +2051,10 @@ paths:
2051
2051
  summary: Resolve a party signing session
2052
2052
  x-visibility: internal
2053
2053
  description: >
2054
- Returns a valid signing URL for the requested execution party when that party
2055
- is the active signer for the agreement. Creates a new magic link if necessary.
2056
- x-required-roles: [workflow-editor, workflow-operator, agreement-auditor, organization-admin, platform-super-admin]
2054
+ Returns a short-lived signer session for the requested execution party when
2055
+ the authenticated Cognito user is the active signer for the agreement. This
2056
+ endpoint never creates or returns magic links.
2057
+ x-required-roles: []
2057
2058
  tags:
2058
2059
  - Agreements
2059
2060
  parameters:
@@ -2082,10 +2083,19 @@ paths:
2082
2083
  schema:
2083
2084
  type: object
2084
2085
  required:
2085
- - signingUrl
2086
+ - signerToken
2086
2087
  properties:
2087
- signingUrl:
2088
+ signerToken:
2089
+ type: string
2090
+ tokenType:
2088
2091
  type: string
2092
+ example: Bearer
2093
+ expiresIn:
2094
+ type: integer
2095
+ minimum: 1
2096
+ expiresAt:
2097
+ type: string
2098
+ format: date-time
2089
2099
  '401':
2090
2100
  $ref: '#/components/responses/Unauthorized'
2091
2101
  '403':
@@ -2188,22 +2198,39 @@ paths:
2188
2198
  /me/sandbox/inbox:
2189
2199
  get:
2190
2200
  operationId: listMeSandboxInbox
2191
- summary: List simulated agreement emails from the current user's sandbox
2201
+ summary: List simulated agreement emails from Sandbox Inbox
2192
2202
  x-visibility: internal
2193
2203
  description: |
2194
2204
  Returns simulated emails generated by sandbox agreement workflows visible
2195
- to the authenticated account. When an agreement action would normally send
2196
- a notification to a party, Inklok creates a simulated email in Sandbox Inbox
2197
- instead. No emails are sent to recipients.
2198
- Recipient email address is not used for visibility. The endpoint uses an
2199
- explicit allowlist of agreement lifecycle email event types and never returns
2200
- authentication, identity, invitation, security, or generic outbound email history.
2201
- Each item includes the rendered simulated email HTML and plain-text body when
2202
- the simulated email content is available.
2205
+ to the authenticated account or the caller's sandbox API-key organization.
2206
+ When an agreement action would normally send a notification to a party,
2207
+ Inklok creates a simulated email in Sandbox Inbox instead. No emails are
2208
+ sent to recipients. Recipient email address is not used for visibility.
2209
+ The endpoint uses an explicit allowlist of agreement lifecycle email event
2210
+ types and never returns authentication, identity, invitation, security, or
2211
+ generic outbound email history. List items are summary-only and do not
2212
+ include rendered email bodies.
2203
2213
  x-required-roles: [workflow-editor, workflow-operator, agreement-auditor, organization-admin, platform-super-admin]
2204
2214
  x-required-scopes: [agreements:read]
2205
2215
  tags:
2206
2216
  - Me
2217
+ parameters:
2218
+ - name: limit
2219
+ in: query
2220
+ required: false
2221
+ schema:
2222
+ type: integer
2223
+ minimum: 1
2224
+ maximum: 50
2225
+ default: 25
2226
+ description: Maximum number of inbox items to return.
2227
+ - name: cursor
2228
+ in: query
2229
+ required: false
2230
+ schema:
2231
+ type: string
2232
+ nullable: true
2233
+ description: Opaque pagination cursor returned by a previous response.
2207
2234
  responses:
2208
2235
  '200':
2209
2236
  description: Simulated Sandbox agreement emails for the authenticated user
@@ -2588,13 +2615,14 @@ paths:
2588
2615
  operationId: signingInitiate
2589
2616
  summary: Create a signing session
2590
2617
  description: >
2591
- Creates a short-lived signing token for the specified agreement participant.
2592
- Use the token to let that recipient review and complete their signing step.
2618
+ Creates a short-lived signing token for the specified agreement participant
2619
+ only when the caller is that participant. API-key authentication is not
2620
+ supported for this endpoint.
2593
2621
  tags:
2594
2622
  - Signing
2595
2623
  security:
2596
2624
  - bearerAuth: []
2597
- x-required-scopes: [agreements:write]
2625
+ x-required-roles: []
2598
2626
  requestBody:
2599
2627
  required: true
2600
2628
  content:
@@ -3296,8 +3324,6 @@ components:
3296
3324
  - sender
3297
3325
  - subject
3298
3326
  - preview
3299
- - htmlBody
3300
- - textBody
3301
3327
  - sentAt
3302
3328
  properties:
3303
3329
  messageId:
@@ -3320,12 +3346,6 @@ components:
3320
3346
  nullable: true
3321
3347
  preview:
3322
3348
  type: string
3323
- htmlBody:
3324
- type: string
3325
- nullable: true
3326
- textBody:
3327
- type: string
3328
- nullable: true
3329
3349
  sentAt:
3330
3350
  type: string
3331
3351
  format: date-time
@@ -3334,6 +3354,8 @@ components:
3334
3354
  type: object
3335
3355
  required:
3336
3356
  - items
3357
+ - nextCursor
3358
+ - hasMore
3337
3359
  - count
3338
3360
  - generatedAt
3339
3361
  properties:
@@ -3341,6 +3363,12 @@ components:
3341
3363
  type: array
3342
3364
  items:
3343
3365
  $ref: '#/components/schemas/SandboxInboxItem'
3366
+ nextCursor:
3367
+ type: string
3368
+ nullable: true
3369
+ description: Opaque cursor for the next page, or null when no next page is available.
3370
+ hasMore:
3371
+ type: boolean
3344
3372
  count:
3345
3373
  type: integer
3346
3374
  generatedAt:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.2.2",
3
+ "version": "7.4.0",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",