Skip to content

Commit 60bc6c9

Browse files
mikewuuseambot
andauthored
fix: missing parameters for Array of Objects (#824)
* fix: missing parameters for Array of Objects * ci: Generate docs --------- Co-authored-by: Seam Bot <[email protected]>
1 parent fee8e39 commit 60bc6c9

File tree

5 files changed

+1149
-20
lines changed

5 files changed

+1149
-20
lines changed

codegen/lib/layout/api-endpoint.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ const mapBlueprintParamToEndpointParam = (
246246
...(param.format === 'object' && {
247247
objectParameters: param.parameters.map(mapBlueprintParamToEndpointParam),
248248
}),
249+
250+
...(param.format === 'list' &&
251+
param.itemFormat === 'object' && {
252+
objectParameters: param.itemParameters.map(
253+
mapBlueprintParamToEndpointParam,
254+
),
255+
}),
249256
}
250257
}
251258

docs/api/access_grants/create.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,35 @@ To learn more, see [Authentication](https://docs.seam.co/latest/api/authenticati
433433

434434
**`requested_access_methods`** *Array* *of Objects* (Required)
435435

436+
<details>
437+
438+
<summary><b><code>code</code></b> <i>String</i></summary>
439+
440+
Specific PIN code to use for this access method. Only applicable when mode is 'code'.
441+
442+
</details>
443+
436444
---
437445

446+
447+
448+
<details>
449+
450+
<summary><b><code>mode</code></b> <i>Enum</i></summary>
451+
452+
Access method mode. Supported values: `code`, `card`, `mobile_key`.
453+
454+
Enum values:
455+
456+
- <code>code</code>
457+
- <code>card</code>
458+
- <code>mobile_key</code>
459+
460+
</details>
461+
462+
---
463+
464+
438465
**`access_grant_key`** *String*
439466

440467
Unique key for the access grant within the workspace.

0 commit comments

Comments
 (0)