Skip to content

Commit ffdf6c6

Browse files
gjtorikianclaude
andcommitted
feat(oagen): add remaining generated models, serializers, fixtures, and specs
Adds all remaining oagen-generated files not included in the existing-files PR: - Serializers for all new and existing model interfaces - JSON fixtures for all API objects (for testing) - Spec files for new user-management sub-services - Remaining standalone interfaces (roles, schemas, connection types, etc.) - Common enum types (directory-state, directory-type, etc.) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0a04e9f commit ffdf6c6

285 files changed

Lines changed: 5384 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "organization",
3+
"id": "org_01EHZNVPK3SFK441A1RGBFSHRT"
4+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"api_key": {
3+
"object": "api_key",
4+
"id": "api_key_01EHZNVPK3SFK441A1RGBFSHRT",
5+
"owner": {
6+
"type": "organization",
7+
"id": "org_01EHZNVPK3SFK441A1RGBFSHRT"
8+
},
9+
"name": "Production API Key",
10+
"obfuscated_value": "sk_...3456",
11+
"last_used_at": null,
12+
"permissions": ["posts:read", "posts:write"],
13+
"created_at": "2026-01-15T12:00:00.000Z",
14+
"updated_at": "2026-01-15T12:00:00.000Z"
15+
}
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"object": "api_key",
3+
"id": "api_key_01EHZNVPK3SFK441A1RGBFSHRT",
4+
"owner": {
5+
"type": "organization",
6+
"id": "org_01EHZNVPK3SFK441A1RGBFSHRT"
7+
},
8+
"name": "Production API Key",
9+
"obfuscated_value": "sk_...3456",
10+
"last_used_at": null,
11+
"permissions": ["posts:read", "posts:write"],
12+
"created_at": "2026-01-15T12:00:00.000Z",
13+
"updated_at": "2026-01-15T12:00:00.000Z"
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"value": "sk_example_1234567890abcdef"
3+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// This file is auto-generated by oagen. Do not edit.
2+
3+
import type {
4+
ApiKeyValidationResponse,
5+
ApiKeyValidationResponseWire,
6+
} from '../interfaces/api-key-validation-response.interface';
7+
import { deserializeApiKey, serializeApiKey } from './api-key.serializer';
8+
9+
export const deserializeApiKeyValidationResponse = (
10+
response: ApiKeyValidationResponseWire,
11+
): ApiKeyValidationResponse => ({
12+
apiKey: response.api_key != null ? deserializeApiKey(response.api_key) : null,
13+
});
14+
15+
export const serializeApiKeyValidationResponse = (
16+
model: ApiKeyValidationResponse,
17+
): ApiKeyValidationResponseWire => ({
18+
api_key: model.apiKey != null ? serializeApiKey(model.apiKey) : null,
19+
});
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"object": "audit_log_action",
3+
"name": "user.viewed_invoice",
4+
"schema": {
5+
"object": "audit_log_schema",
6+
"version": 1,
7+
"actor": {
8+
"metadata": {
9+
"type": "object",
10+
"properties": {
11+
"role": {
12+
"type": "string"
13+
}
14+
}
15+
}
16+
},
17+
"targets": [
18+
{
19+
"type": "invoice",
20+
"metadata": {
21+
"type": "object",
22+
"properties": {
23+
"cost": {
24+
"type": "number"
25+
}
26+
}
27+
}
28+
}
29+
],
30+
"metadata": {
31+
"type": "object",
32+
"properties": {
33+
"transactionId": {
34+
"type": "string"
35+
}
36+
}
37+
},
38+
"created_at": "2026-01-15T12:00:00.000Z"
39+
},
40+
"created_at": "2026-01-15T12:00:00.000Z",
41+
"updated_at": "2026-01-15T12:00:00.000Z"
42+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "user_TF4C5938",
3+
"type": "user",
4+
"name": "Jon Smith",
5+
"metadata": {
6+
"owner": "user_01GBTCQ2"
7+
}
8+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"location": "123.123.123.123",
3+
"user_agent": "Chrome/104.0.0.0"
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"success": true
3+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"organization_id": "org_01EHWNCE74X7JSDV0X3SZ3KJNY",
3+
"event": {
4+
"action": "user.signed_in",
5+
"occurred_at": "2026-02-02T16:35:39.317Z",
6+
"actor": {
7+
"id": "user_TF4C5938",
8+
"type": "user",
9+
"name": "Jon Smith",
10+
"metadata": {
11+
"owner": "user_01GBTCQ2"
12+
}
13+
},
14+
"targets": [
15+
{
16+
"id": "user_TF4C5938",
17+
"type": "user",
18+
"name": "Jon Smith",
19+
"metadata": {
20+
"owner": "user_01GBTCQ2"
21+
}
22+
}
23+
],
24+
"context": {
25+
"location": "123.123.123.123",
26+
"user_agent": "Chrome/104.0.0.0"
27+
},
28+
"metadata": {
29+
"owner": "user_01GBTCQ2"
30+
},
31+
"version": 1
32+
}
33+
}

0 commit comments

Comments
 (0)