Skip to content

Commit

Permalink
fix: Add missing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Jan 15, 2025
1 parent 31d48a7 commit fcf4e16
Show file tree
Hide file tree
Showing 6 changed files with 4,741 additions and 5,664 deletions.
6 changes: 5 additions & 1 deletion src/lib/seam/connect/models/acs/acs-access-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ export const acs_access_group = common_acs_access_group.extend({
`)
export const unmanaged_acs_access_group = common_acs_access_group.extend({
is_managed: z.literal(false),
})
}).describe(`
---
route_path: /acs/access_groups/unmanaged
---
`)

export type AcsAccessGroup = z.output<typeof acs_access_group>
export type UnmanagedAcsAccessGroup = z.output<
Expand Down
34 changes: 20 additions & 14 deletions src/lib/seam/connect/models/acs/acs-credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,27 @@ const common_acs_credential = z.object({
.describe('Vostio-specific metadata for the credential.'),
})

export const acs_credential = common_acs_credential
.merge(
z.object({
is_managed: z.literal(true),
}),
)
.describe(getAcsCredentialDescription())
export const acs_credential = common_acs_credential.merge(
z.object({
is_managed: z.literal(true),
}),
).describe(`
---
route_path: /acs/credentials
---
${getAcsCredentialDescription()}
`)

export const unmanaged_acs_credential = common_acs_credential
.merge(
z.object({
is_managed: z.literal(false),
}),
)
.describe(getAcsCredentialDescription(false))
export const unmanaged_acs_credential = common_acs_credential.merge(
z.object({
is_managed: z.literal(false),
}),
).describe(`
---
route_path: /acs/credentials/unmanaged
---
${getAcsCredentialDescription(false)}
`)

function getAcsCredentialDescription(is_managed = true): string {
const resource_name = is_managed
Expand Down
6 changes: 5 additions & 1 deletion src/lib/seam/connect/models/acs/acs-encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export const acs_encoder = z.object({
.datetime()
.describe('Date and time at which the `acs_encoder` was created.'),
display_name: z.string().describe('Display name for the `acs_encoder`.'),
})
}).describe(`
---
route_path: /acs/encoders
---
`)

export type AcsEncoder = z.infer<typeof acs_encoder>
29 changes: 15 additions & 14 deletions src/lib/seam/connect/models/acs/acs-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,21 +295,22 @@ export const acs_user = common_acs_user.merge(
is_managed: z.literal(true),
}),
).describe(`
---
route_path: /acs/users
---
Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
`)
---
route_path: /acs/users
---
Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
`)

export const unmanaged_acs_user = common_acs_user
.merge(
z.object({
is_managed: z.literal(false),
}),
)
.describe(
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
)
export const unmanaged_acs_user = common_acs_user.merge(
z.object({
is_managed: z.literal(false),
}),
).describe(`
---
route_path: /acs/users/unmanaged
---
Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
`)

export type AcsUser = z.output<typeof acs_user>
export type AcsUnmanagedUser = z.output<typeof unmanaged_acs_user>
Loading

0 comments on commit fcf4e16

Please sign in to comment.