-
Notifications
You must be signed in to change notification settings - Fork 46
Update Node SDK to include auditlogs.listSchemas #1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4bf8530
0b3f7d0
c155b07
64dee8d
32f9bc3
d5e63cb
a55e9b7
6d3cf2a
e4ae749
2767707
ddb4337
f325b7e
1b36ea2
34c491f
1e0672f
3079d1c
d120d41
c2552ed
27b5110
e1d508a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| export type AuditLogSchemaMetadata = | ||
| | Record<string, { type: 'string' | 'boolean' | 'number' }> | ||
| | undefined; | ||
swaroopAkkineniWorkos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| export interface AuditLogActorSchema { | ||
| metadata: Record<string, string | boolean | number>; | ||
| } | ||
|
|
||
| export interface AuditLogTargetSchema { | ||
| type: string; | ||
| metadata?: Record<string, string | boolean | number>; | ||
| } | ||
|
|
||
| export interface AuditLogSchema { | ||
| object: 'audit_log_schema'; | ||
| version: number; | ||
| targets: AuditLogTargetSchema[]; | ||
| actor: AuditLogActorSchema | undefined; | ||
| metadata: Record<string, string | boolean | number> | undefined; | ||
| createdAt: string; | ||
swaroopAkkineniWorkos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| interface SerializedAuditLogTargetSchema { | ||
| type: string; | ||
| metadata?: { | ||
| type: 'object'; | ||
| properties: AuditLogSchemaMetadata; | ||
| }; | ||
| } | ||
|
|
||
| export interface AuditLogSchemaResponse { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is exported publicly, this would be a breaking change. Perhaps we can alias
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mattgd updated. Added the alias and also leaving all the exports in CreateAuditLogSchemaResponse as is and just exporting the types from the common, new audit log interface i made. |
||
| object: 'audit_log_schema'; | ||
| version: number; | ||
| targets: SerializedAuditLogTargetSchema[]; | ||
| actor?: { | ||
| metadata: { | ||
| type: 'object'; | ||
| properties: AuditLogSchemaMetadata; | ||
| }; | ||
| }; | ||
| metadata?: { | ||
| type: 'object'; | ||
| properties: AuditLogSchemaMetadata; | ||
| }; | ||
| created_at: string; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.