@company-semantics/contracts 0.103.0 → 0.103.2
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.
- package/package.json +8 -3
- package/src/api/README.md +20 -2
- package/src/api/generated.ts +7235 -0
- package/src/api/index.ts +9 -0
- package/src/generated/openapi-routes.ts +92 -0
- package/src/index.ts +7 -0
package/src/api/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Types Barrel
|
|
3
|
+
*
|
|
4
|
+
* Re-exports OpenAPI-generated types from the backend spec.
|
|
5
|
+
* Import from '@company-semantics/contracts' (root).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// OpenAPI generated types (from openapi/backend.yaml)
|
|
9
|
+
export type { paths, components, operations } from './generated'
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// AUTO-GENERATED — do not edit manually
|
|
2
|
+
// Generated from openapi/backend.yaml by scripts/generate-openapi-routes.ts
|
|
3
|
+
|
|
4
|
+
export const openApiRoutes = {
|
|
5
|
+
'/ai/chat': ['POST'],
|
|
6
|
+
'/api/account/cancel-deletion': ['POST'],
|
|
7
|
+
'/api/account/delete': ['POST'],
|
|
8
|
+
'/api/account/sessions': ['GET'],
|
|
9
|
+
'/api/account/sessions/{sessionId}': ['DELETE'],
|
|
10
|
+
'/api/capabilities/tools': ['GET'],
|
|
11
|
+
'/api/chats': ['GET', 'POST'],
|
|
12
|
+
'/api/chats/events': ['GET'],
|
|
13
|
+
'/api/chats/{chatId}/shares': ['GET', 'POST'],
|
|
14
|
+
'/api/chats/{id}': ['DELETE', 'GET', 'PATCH'],
|
|
15
|
+
'/api/chats/{id}/generate-title': ['POST'],
|
|
16
|
+
'/api/chats/{id}/messages': ['POST'],
|
|
17
|
+
'/api/chats/{id}/pin': ['DELETE', 'POST'],
|
|
18
|
+
'/api/departments': ['GET', 'POST'],
|
|
19
|
+
'/api/departments/{id}': ['DELETE', 'GET', 'PATCH'],
|
|
20
|
+
'/api/departments/{id}/members': ['POST'],
|
|
21
|
+
'/api/departments/{id}/members/{userId}': ['DELETE'],
|
|
22
|
+
'/api/drive/files': ['GET'],
|
|
23
|
+
'/api/drive/files/recent': ['GET'],
|
|
24
|
+
'/api/drive/files/{fileId}/content': ['GET'],
|
|
25
|
+
'/api/executions': ['GET', 'POST'],
|
|
26
|
+
'/api/executions/{executionId}/explanation': ['GET'],
|
|
27
|
+
'/api/executions/{executionId}/summary': ['GET'],
|
|
28
|
+
'/api/executions/{executionId}/timeline': ['GET'],
|
|
29
|
+
'/api/goals/docs/{slug}': ['GET'],
|
|
30
|
+
'/api/goals/docs/{slug}/content': ['PUT'],
|
|
31
|
+
'/api/goals/docs/{slug}/sharing': ['GET'],
|
|
32
|
+
'/api/goals/docs/{slug}/sharing/acl': ['POST'],
|
|
33
|
+
'/api/goals/docs/{slug}/sharing/acl/{aclId}': ['DELETE', 'PUT'],
|
|
34
|
+
'/api/goals/docs/{slug}/sharing/policy': ['PUT'],
|
|
35
|
+
'/api/goals/docs/{slug}/title': ['PUT'],
|
|
36
|
+
'/api/goals/extract': ['POST'],
|
|
37
|
+
'/api/goals/tree': ['GET'],
|
|
38
|
+
'/api/integrations/status': ['GET'],
|
|
39
|
+
'/api/me': ['GET'],
|
|
40
|
+
'/api/org/cancel-deletion': ['POST'],
|
|
41
|
+
'/api/org/delete': ['POST'],
|
|
42
|
+
'/api/org/deletion-eligibility': ['GET'],
|
|
43
|
+
'/api/org/transfer-eligibility': ['GET'],
|
|
44
|
+
'/api/org/transfer-ownership': ['DELETE', 'POST'],
|
|
45
|
+
'/api/org/transfer-ownership/accept': ['POST'],
|
|
46
|
+
'/api/org/transfer-ownership/preview': ['POST'],
|
|
47
|
+
'/api/org/transfer-ownership/status': ['GET'],
|
|
48
|
+
'/api/orgs/{orgId}/ai-usage': ['GET'],
|
|
49
|
+
'/api/orgs/{orgId}/billing': ['GET'],
|
|
50
|
+
'/api/orgs/{orgId}/budget-config': ['GET', 'PUT'],
|
|
51
|
+
'/api/shared/{token}': ['GET'],
|
|
52
|
+
'/api/shares/{shareId}': ['DELETE', 'PATCH'],
|
|
53
|
+
'/api/teams': ['GET', 'POST'],
|
|
54
|
+
'/api/teams/{teamId}': ['DELETE', 'GET', 'PUT'],
|
|
55
|
+
'/api/teams/{teamId}/members': ['POST'],
|
|
56
|
+
'/api/teams/{teamId}/members/{userId}': ['DELETE'],
|
|
57
|
+
'/api/teams/{teamId}/members/{userId}/role': ['PUT'],
|
|
58
|
+
'/api/timeline': ['GET'],
|
|
59
|
+
'/api/user/active-org': ['POST'],
|
|
60
|
+
'/api/user/orgs': ['GET'],
|
|
61
|
+
'/api/user/orgs/{orgId}/leave': ['POST'],
|
|
62
|
+
'/api/user/profile': ['PATCH'],
|
|
63
|
+
'/api/workspace': ['GET'],
|
|
64
|
+
'/api/workspace/access': ['GET'],
|
|
65
|
+
'/api/workspace/audit': ['GET'],
|
|
66
|
+
'/api/workspace/auth': ['GET'],
|
|
67
|
+
'/api/workspace/auth-policy': ['PATCH'],
|
|
68
|
+
'/api/workspace/auth-policy/test-sso': ['POST'],
|
|
69
|
+
'/api/workspace/auth-policy/test-sso/{attemptId}': ['GET'],
|
|
70
|
+
'/api/workspace/auth-policy/validate-oidc': ['POST'],
|
|
71
|
+
'/api/workspace/domains': ['GET', 'POST'],
|
|
72
|
+
'/api/workspace/domains/{id}': ['DELETE'],
|
|
73
|
+
'/api/workspace/domains/{id}/verify': ['POST'],
|
|
74
|
+
'/api/workspace/invites': ['GET', 'POST'],
|
|
75
|
+
'/api/workspace/invites/accept': ['POST'],
|
|
76
|
+
'/api/workspace/invites/{id}': ['DELETE'],
|
|
77
|
+
'/api/workspace/members': ['GET'],
|
|
78
|
+
'/api/workspace/members/{id}': ['DELETE'],
|
|
79
|
+
'/api/workspace/members/{id}/role': ['PATCH'],
|
|
80
|
+
'/auth/logout': ['POST'],
|
|
81
|
+
'/auth/me': ['GET'],
|
|
82
|
+
'/auth/sso/callback': ['GET', 'POST'],
|
|
83
|
+
'/auth/sso/{orgSlug}': ['GET'],
|
|
84
|
+
'/auth/start': ['POST'],
|
|
85
|
+
'/auth/verify': ['POST'],
|
|
86
|
+
'/connect/{provider}': ['GET'],
|
|
87
|
+
'/healthz': ['GET'],
|
|
88
|
+
'/oauth/{provider}/callback': ['GET'],
|
|
89
|
+
} as const;
|
|
90
|
+
|
|
91
|
+
export type OpenApiRoute = keyof typeof openApiRoutes;
|
|
92
|
+
export type OpenApiMethod = (typeof openApiRoutes)[OpenApiRoute][number];
|
package/src/index.ts
CHANGED
|
@@ -539,3 +539,10 @@ export { resolveScope, toQueryKey, fromQueryKey, resourceRelationships, matchesR
|
|
|
539
539
|
|
|
540
540
|
// Resource response wrapper (typed versioning for cache invalidation)
|
|
541
541
|
export type { ResourceResponse } from './resource-response'
|
|
542
|
+
|
|
543
|
+
// OpenAPI generated types (from openapi/backend.yaml)
|
|
544
|
+
// @see src/api/README.md for codegen details
|
|
545
|
+
export type { paths, components, operations } from './api/index'
|
|
546
|
+
|
|
547
|
+
// OpenAPI route registry (generated from openapi/backend.yaml)
|
|
548
|
+
export { openApiRoutes, type OpenApiRoute, type OpenApiMethod } from './generated/openapi-routes'
|