terse-types 0.0.1

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.
Files changed (46) hide show
  1. package/README.md +44 -0
  2. package/dist/ApiRouteBuilder.d.ts +185 -0
  3. package/dist/ApiRouteBuilder.js +11 -0
  4. package/dist/ApiRoutes.json +184 -0
  5. package/dist/ApprovalTypes.d.ts +28 -0
  6. package/dist/ApprovalTypes.js +7 -0
  7. package/dist/ClientBoundTools.d.ts +36 -0
  8. package/dist/ClientBoundTools.js +36 -0
  9. package/dist/Configs.d.ts +628 -0
  10. package/dist/Configs.js +868 -0
  11. package/dist/DonatedState.d.ts +4 -0
  12. package/dist/DonatedState.js +12 -0
  13. package/dist/Entities.d.ts +7 -0
  14. package/dist/Entities.js +8 -0
  15. package/dist/FrontendRoutes.json +28 -0
  16. package/dist/FrontendRoutesBuilder.d.ts +30 -0
  17. package/dist/FrontendRoutesBuilder.js +13 -0
  18. package/dist/Integrations.d.ts +254 -0
  19. package/dist/Integrations.js +210 -0
  20. package/dist/InvalidationKeys.d.ts +52 -0
  21. package/dist/InvalidationKeys.js +165 -0
  22. package/dist/ModelEvents.d.ts +175 -0
  23. package/dist/ModelEvents.js +28 -0
  24. package/dist/Notifications.d.ts +42 -0
  25. package/dist/Notifications.js +5 -0
  26. package/dist/RunHistoryTypes.d.ts +103 -0
  27. package/dist/RunHistoryTypes.js +29 -0
  28. package/dist/SentNotifications.d.ts +29 -0
  29. package/dist/SentNotifications.js +12 -0
  30. package/dist/SocketEvents.d.ts +48 -0
  31. package/dist/SocketEvents.js +52 -0
  32. package/dist/Survey.d.ts +9 -0
  33. package/dist/Survey.js +1 -0
  34. package/dist/TicketSystem.d.ts +153 -0
  35. package/dist/TicketSystem.js +20 -0
  36. package/dist/ToolDisplayUtils.d.ts +29 -0
  37. package/dist/ToolDisplayUtils.js +1162 -0
  38. package/dist/Tools.d.ts +9202 -0
  39. package/dist/Tools.js +2099 -0
  40. package/dist/ToolsTypes.d.ts +17 -0
  41. package/dist/ToolsTypes.js +1 -0
  42. package/dist/index.d.ts +20 -0
  43. package/dist/index.js +20 -0
  44. package/dist/types.d.ts +704 -0
  45. package/dist/types.js +115 -0
  46. package/package.json +45 -0
package/dist/types.js ADDED
@@ -0,0 +1,115 @@
1
+ export const TERSE_AGENT_MESSAGE_EVENT_TYPE = "terse_agent_message";
2
+ /**
3
+ * Slack channel type enum
4
+ */
5
+ export var SlackChannelType;
6
+ (function (SlackChannelType) {
7
+ SlackChannelType["CHANNEL"] = "channel";
8
+ SlackChannelType["GROUP"] = "group";
9
+ SlackChannelType["MPIM"] = "mpim";
10
+ SlackChannelType["IM"] = "im";
11
+ })(SlackChannelType || (SlackChannelType = {}));
12
+ // Figma webhook and API types
13
+ export var FigmaEventTypes;
14
+ (function (FigmaEventTypes) {
15
+ FigmaEventTypes["FILE_COMMENT"] = "FILE_COMMENT";
16
+ })(FigmaEventTypes || (FigmaEventTypes = {}));
17
+ // export type SlackChannelListItem = z.infer<typeof slackChannelListItemSchema>
18
+ // export type SlackConversationMessage = z.infer<typeof slackConversationMessageSchema>
19
+ // export type GitHubPagination = z.infer<typeof gitHubPaginationSchema>
20
+ // export type GitHubCodeSearchResult = z.infer<typeof gitHubCodeSearchResultSchema>
21
+ // export type GitHubCodeGrepResult = z.infer<typeof gitHubCodeGrepResultSchema>
22
+ // export type GitHubPullRequestSummary = z.infer<typeof gitHubPullRequestSummarySchema>
23
+ // export type GitHubDirectoryEntry = z.infer<typeof gitHubDirectoryEntrySchema>
24
+ // export type GitHubFileEntry = z.infer<typeof gitHubFileEntrySchema>
25
+ // export type GitHubOtherEntry = z.infer<typeof gitHubOtherEntrySchema>
26
+ // export type GitHubCommitSummary = z.infer<typeof gitHubCommitSummarySchema>
27
+ // export type GitHubPullRequestRef = z.infer<typeof gitHubPullRequestRefSchema>
28
+ // export type SnowflakeQueryRow = Record<string, unknown>
29
+ // export type LinearIssueAssignee = z.infer<typeof linearIssueAssigneeSchema>
30
+ // export type LinearIssueTeam = z.infer<typeof linearIssueTeamSchema>
31
+ // export type LinearIssueProject = z.infer<typeof linearIssueProjectSchema>
32
+ // export type LinearIssueSummary = z.infer<typeof linearIssueSummarySchema>
33
+ // export type LinearIssueDetail = z.infer<typeof linearIssueDetailSchema>
34
+ // export type LinearIssueHandle = z.infer<typeof linearIssueHandleSchema>
35
+ // export type LinearCommentHandle = z.infer<typeof linearCommentHandleSchema>
36
+ // export type LinearStateSummary = z.infer<typeof linearStateSummarySchema>
37
+ // export type LinearLabelSummary = z.infer<typeof linearLabelSummarySchema>
38
+ // export type LinearProjectSummary = z.infer<typeof linearProjectSummarySchema>
39
+ // export type LinearUserSummary = z.infer<typeof linearUserSummarySchema>
40
+ // export type LinearSearchPagination = z.infer<typeof linearSearchPaginationSchema>
41
+ // export type JiraIssueState = z.infer<typeof jiraIssueStateSchema>
42
+ // export type JiraIssueAssignee = z.infer<typeof jiraIssueAssigneeSchema>
43
+ // export type JiraIssueProjectRef = z.infer<typeof jiraIssueProjectRefSchema>
44
+ // export type JiraIssueTypeRef = z.infer<typeof jiraIssueTypeRefSchema>
45
+ // export type JiraRichDescription = z.infer<typeof jiraRichDescriptionSchema>
46
+ // export type JiraIssueSummary = z.infer<typeof jiraIssueSummarySchema>
47
+ // export type GmailSendSummary = z.infer<typeof gmailSendSummarySchema>
48
+ // export type GmailDraftSummary = z.infer<typeof gmailDraftSummarySchema>
49
+ // export type NotionUserReference = z.infer<typeof notionUserReferenceSchema>
50
+ // export type NotionFileReference = z.infer<typeof notionFileReferenceSchema>
51
+ // export type NotionDateReference = z.infer<typeof notionDateReferenceSchema>
52
+ // export type NotionReadablePropertyValue = z.infer<typeof notionReadablePropertyValueSchema>
53
+ // export type NotionPageBlock = z.infer<typeof notionPageBlockSchema>
54
+ // export type NotionPageParent = z.infer<typeof notionPageParentSchema>
55
+ // export type NotionPageQueryMetadata = z.infer<typeof notionPageQueryMetadataSchema>
56
+ // export type NotionDatabaseRowMutationResult = z.infer<typeof notionDatabaseRowMutationResultSchema>
57
+ // export type NotionSchemaProperty = z.infer<typeof notionSchemaPropertySchema>
58
+ // export type NotionDatabaseQueryPage = z.infer<typeof notionDatabaseQueryPageSchema>
59
+ // export type NotionQueryDatabaseFailure = z.infer<typeof notionQueryDatabaseFailureSchema>
60
+ // export type NotionQueryDatabaseSuccess = z.infer<typeof notionQueryDatabaseSuccessSchema>
61
+ // export type NotionModifyBlocksAppendResult = z.infer<typeof notionModifyBlocksAppendResultSchema>
62
+ // export type NotionModifyBlocksUpdateResult = z.infer<typeof notionModifyBlocksUpdateResultSchema>
63
+ // export type NotionModifyBlocksDeleteResult = z.infer<typeof notionModifyBlocksDeleteResultSchema>
64
+ // export type NotionModifyBlocksOperationResult = z.infer<typeof notionModifyBlocksOperationResultSchema>
65
+ // export type NotionModifyBlocksSuccess = z.infer<typeof notionModifyBlocksSuccessSchema>
66
+ // export type NotionModifyBlocksFailure = z.infer<typeof notionModifyBlocksFailureSchema>
67
+ // export type NotionWorkspaceUser = z.infer<typeof notionWorkspaceUserSchema>
68
+ // export type ConfluencePageSpace = z.infer<typeof confluencePageSpaceSchema>
69
+ // export type ConfluencePageVersionAuthor = z.infer<typeof confluencePageVersionAuthorSchema>
70
+ // export type ConfluencePageVersion = z.infer<typeof confluencePageVersionSchema>
71
+ // export type ConfluenceBodyRepresentation = z.infer<typeof confluenceBodyRepresentationSchema>
72
+ // export type ConfluenceBodyContent = z.infer<typeof confluenceBodyContentSchema>
73
+ // export type ConfluencePageRelation = z.infer<typeof confluencePageRelationSchema>
74
+ // export type ConfluencePageQueryResult = z.infer<typeof confluencePageQueryResultSchema>
75
+ // export type ConfluenceCommentPosition = z.infer<typeof confluenceCommentPositionSchema>
76
+ // export type PosthogSessionSummary = z.infer<typeof posthogSessionSummarySchema>
77
+ // export type PosthogSearchSessionsPagination = z.infer<typeof posthogSearchSessionsPaginationSchema>
78
+ // export type PosthogSearchSessionsFound = z.infer<typeof posthogSearchSessionsFoundSchema>
79
+ // export type PosthogSearchSessionsNotFound = z.infer<typeof posthogSearchSessionsNotFoundSchema>
80
+ // export type PosthogLogEntry = z.infer<typeof posthogLogEntrySchema>
81
+ // export type PosthogOffsetPagination = z.infer<typeof posthogOffsetPaginationSchema>
82
+ // export type PosthogEventCount = z.infer<typeof posthogEventCountSchema>
83
+ // export type PosthogEventSummary = z.infer<typeof posthogEventSummarySchema>
84
+ // export type PosthogSessionEvent = z.infer<typeof posthogSessionEventSchema>
85
+ // export type PosthogSessionConsoleLog = z.infer<typeof posthogSessionConsoleLogSchema>
86
+ // export type PosthogSessionEventsSummary = z.infer<typeof posthogSessionEventsSummarySchema>
87
+ // export type LaunchDarklyFlagSummary = z.infer<typeof launchDarklyFlagSummarySchema>
88
+ // export type LaunchDarklyFlagMetadata = z.infer<typeof launchDarklyFlagMetadataSchema>
89
+ // export type LaunchDarklyEnvironmentConfig = z.infer<typeof launchDarklyEnvironmentConfigSchema>
90
+ // export type LaunchDarklyHistoryEntry = z.infer<typeof launchDarklyHistoryEntrySchema>
91
+ // export type LaunchDarklyHistoryResult = z.infer<typeof launchDarklyHistoryResultSchema>
92
+ // export type DatadogLogEntry = z.infer<typeof datadogLogEntrySchema>
93
+ // export type DatadogCursorPagination = z.infer<typeof datadogCursorPaginationSchema>
94
+ // export type DatadogRumSessionDetails = z.infer<typeof datadogRumSessionDetailsSchema>
95
+ // export type DatadogRumViewDetails = z.infer<typeof datadogRumViewDetailsSchema>
96
+ // export type DatadogRumActionDetails = z.infer<typeof datadogRumActionDetailsSchema>
97
+ // export type DatadogRumErrorDetails = z.infer<typeof datadogRumErrorDetailsSchema>
98
+ // export type DatadogRumResourceDetails = z.infer<typeof datadogRumResourceDetailsSchema>
99
+ // export type DatadogRumLongTaskDetails = z.infer<typeof datadogRumLongTaskDetailsSchema>
100
+ // export type DatadogRumEvent = z.infer<typeof datadogRumEventSchema>
101
+ // export type DatadogAggregationBucketCompute = z.infer<typeof datadogAggregationBucketComputeSchema>
102
+ // export type DatadogAggregationBucket = z.infer<typeof datadogAggregationBucketSchema>
103
+ // export type DatadogAggregationMeta = z.infer<typeof datadogAggregationMetaSchema>
104
+ // export type WorkOSUserSummary = z.infer<typeof workOSUserSummarySchema>
105
+ // export type WorkOSOrganizationSummary = z.infer<typeof workOSOrganizationSummarySchema>
106
+ // export type WorkOSPagination = z.infer<typeof workOSPaginationSchema>
107
+ // // TO DO manually define schemas here
108
+ // export type WebSearchResultItem = z.infer<typeof webSearchResultItemSchema>
109
+ // export type WebSearchOutput = z.infer<typeof webSearchOutputSchema>
110
+ // export type WebExtractResultItem = z.infer<typeof webExtractResultItemSchema>
111
+ // export type WebExtractOutput = z.infer<typeof webExtractOutputSchema>
112
+ // export type WebResearchSource = z.infer<typeof webResearchSourceSchema>
113
+ // export type WebResearchOutput = z.infer<typeof webResearchOutputSchema>
114
+ // export type ImageEditSnippet = z.infer<typeof imageEditSnippetSchema>
115
+ // export type ImageEditOutput = z.infer<typeof imageEditOutputSchema>
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "terse-types",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ },
17
+ "./*": {
18
+ "types": "./dist/*.d.ts",
19
+ "import": "./dist/*.js"
20
+ }
21
+ },
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.build.json && node --input-type=module -e \"import { fix } from 'tsc-esm-fix'; await fix({ cwd: process.cwd(), target: ['dist'], ext: '.js' })\"",
24
+ "clean": "rm -rf dist",
25
+ "dev": "node ../scripts/tsc-watch-and-fix.mjs tsconfig.build.json dist",
26
+ "format": "pnpm exec prettier --config ../.prettierrc --write \"*.{ts,json}\"",
27
+ "format:check": "pnpm exec prettier --config ../.prettierrc --check \"*.{ts,json}\""
28
+ },
29
+ "keywords": [
30
+ "typescript",
31
+ "shared-types",
32
+ "terse"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "license": "ISC",
38
+ "devDependencies": {
39
+ "tsc-esm-fix": "^3.1.2",
40
+ "typescript": "^5.8.3"
41
+ },
42
+ "dependencies": {
43
+ "zod": "4.3.6"
44
+ }
45
+ }