@happyrobot-ai/sdk 0.1.5 → 0.1.7

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 (126) hide show
  1. package/README.md +117 -0
  2. package/chat/index.d.ts +17 -0
  3. package/chat/index.js +20 -0
  4. package/chat/index.mjs +3 -0
  5. package/chat-client.mjs +1 -2
  6. package/client.d.ts +3 -0
  7. package/client.js +4 -0
  8. package/client.mjs +1 -2
  9. package/core/errors.mjs +1 -2
  10. package/core/http.mjs +1 -2
  11. package/core/pagination.mjs +1 -2
  12. package/core/sse.mjs +1 -2
  13. package/core/types.mjs +0 -1
  14. package/helpers/index.mjs +1 -2
  15. package/helpers/template-workflows.mjs +1 -2
  16. package/helpers/trigger-and-wait.mjs +1 -2
  17. package/helpers/voice-agent.mjs +1 -2
  18. package/index.d.ts +2 -2
  19. package/index.js +3 -3
  20. package/index.mjs +3 -4
  21. package/package.json +19 -1
  22. package/resources/adversarial-suites.mjs +1 -2
  23. package/resources/adversarial-tests.mjs +1 -2
  24. package/resources/api-key.mjs +1 -2
  25. package/resources/artifacts.mjs +1 -2
  26. package/resources/audit-remarks.mjs +1 -2
  27. package/resources/billing.mjs +1 -2
  28. package/resources/chat.mjs +1 -2
  29. package/resources/contacts.mjs +1 -2
  30. package/resources/custom-evals.mjs +1 -2
  31. package/resources/integrations.mjs +1 -2
  32. package/resources/issues.mjs +1 -2
  33. package/resources/knowledge-bases.mjs +1 -2
  34. package/resources/mcp.mjs +1 -2
  35. package/resources/messages.mjs +1 -2
  36. package/resources/nodes.mjs +1 -2
  37. package/resources/northstars.mjs +1 -2
  38. package/resources/phone-numbers.mjs +1 -2
  39. package/resources/runs.mjs +1 -2
  40. package/resources/sessions.mjs +1 -2
  41. package/resources/sip-trunks.mjs +1 -2
  42. package/resources/variables.mjs +1 -2
  43. package/resources/versions.mjs +1 -2
  44. package/resources/voice.d.ts +29 -0
  45. package/resources/voice.js +40 -0
  46. package/resources/voice.mjs +3 -0
  47. package/resources/workflow-folders.mjs +1 -2
  48. package/resources/workflows.mjs +1 -2
  49. package/types/adversarial-suites.types.d.ts +26 -0
  50. package/types/adversarial-suites.types.js +6 -0
  51. package/types/adversarial-suites.types.mjs +1 -0
  52. package/types/adversarial-tests.types.d.ts +21 -0
  53. package/types/adversarial-tests.types.js +6 -0
  54. package/types/adversarial-tests.types.mjs +1 -0
  55. package/types/artifacts.types.d.ts +4 -0
  56. package/types/artifacts.types.js +3 -0
  57. package/types/artifacts.types.mjs +1 -0
  58. package/types/audit-remarks.types.d.ts +19 -0
  59. package/types/audit-remarks.types.js +6 -0
  60. package/types/audit-remarks.types.mjs +1 -0
  61. package/types/chat.types.d.ts +146 -0
  62. package/types/chat.types.js +3 -0
  63. package/types/chat.types.mjs +1 -0
  64. package/types/common.types.d.ts +19 -0
  65. package/types/common.types.js +7 -0
  66. package/types/common.types.mjs +1 -0
  67. package/types/contacts.types.d.ts +6 -0
  68. package/types/contacts.types.js +6 -0
  69. package/types/contacts.types.mjs +1 -0
  70. package/types/custom-evals.types.d.ts +19 -0
  71. package/types/custom-evals.types.js +6 -0
  72. package/types/custom-evals.types.mjs +1 -0
  73. package/types/integrations.types.d.ts +45 -0
  74. package/types/integrations.types.js +6 -0
  75. package/types/integrations.types.mjs +1 -0
  76. package/types/issues.types.d.ts +11 -0
  77. package/types/issues.types.js +6 -0
  78. package/types/issues.types.mjs +1 -0
  79. package/types/knowledge-bases.types.d.ts +21 -0
  80. package/types/knowledge-bases.types.js +7 -0
  81. package/types/knowledge-bases.types.mjs +1 -0
  82. package/types/mcp.types.d.ts +10 -0
  83. package/types/mcp.types.js +6 -0
  84. package/types/mcp.types.mjs +1 -0
  85. package/types/messages.types.d.ts +9 -0
  86. package/types/messages.types.js +6 -0
  87. package/types/messages.types.mjs +1 -0
  88. package/types/nodes.types.d.ts +12 -0
  89. package/types/nodes.types.js +6 -0
  90. package/types/nodes.types.mjs +1 -0
  91. package/types/northstars.types.d.ts +18 -0
  92. package/types/northstars.types.js +6 -0
  93. package/types/northstars.types.mjs +1 -0
  94. package/types/phone-numbers.types.d.ts +24 -0
  95. package/types/phone-numbers.types.js +6 -0
  96. package/types/phone-numbers.types.mjs +1 -0
  97. package/types/runs.types.d.ts +16 -0
  98. package/types/runs.types.js +6 -0
  99. package/types/runs.types.mjs +1 -0
  100. package/types/sessions.types.d.ts +51 -0
  101. package/types/sessions.types.js +6 -0
  102. package/types/sessions.types.mjs +1 -0
  103. package/types/sip-trunks.types.d.ts +11 -0
  104. package/types/sip-trunks.types.js +6 -0
  105. package/types/sip-trunks.types.mjs +1 -0
  106. package/types/variables.types.d.ts +10 -0
  107. package/types/variables.types.js +6 -0
  108. package/types/variables.types.mjs +1 -0
  109. package/types/versions.types.d.ts +22 -0
  110. package/types/versions.types.js +6 -0
  111. package/types/versions.types.mjs +1 -0
  112. package/types/voice.types.d.ts +13 -0
  113. package/types/voice.types.js +3 -0
  114. package/types/voice.types.mjs +1 -0
  115. package/types/workflow-folders.types.d.ts +9 -0
  116. package/types/workflow-folders.types.js +6 -0
  117. package/types/workflow-folders.types.mjs +1 -0
  118. package/types/workflows.types.d.ts +24 -0
  119. package/types/workflows.types.js +7 -0
  120. package/types/workflows.types.mjs +1 -0
  121. package/voice/index.d.ts +22 -0
  122. package/voice/index.js +25 -0
  123. package/voice/index.mjs +3 -0
  124. package/voice-client.d.ts +87 -0
  125. package/voice-client.js +148 -0
  126. package/voice-client.mjs +3 -0
@@ -1,4 +1,3 @@
1
- import _cjs from "./workflows.js";
1
+ import * as _cjs from "./workflows.js";
2
2
  const { WorkflowsResource } = _cjs;
3
3
  export { WorkflowsResource };
4
- export default _cjs;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Adversarial suite types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { AdversarialSuiteApiSchema } from "../../routes/nodes/:node_id/adversarial-suites/get";
6
+ import type { GetAdversarialSuiteByIdResponseSchema } from "../../routes/adversarial-suites/get";
7
+ import type { PatchAdversarialSuiteBodySchema, PatchAdversarialSuiteResponseSchema } from "../../routes/adversarial-suites/patch";
8
+ import type { RunAdversarialSuiteBodySchema, RunAdversarialSuiteResponseSchema } from "../../routes/adversarial-suites/run/post";
9
+ import type { AdversarialSuiteRunApiSchema, GetAdversarialSuiteRunsResponseSchema } from "../../routes/adversarial-suites/runs/get";
10
+ import type { AdversarialSuiteTestRunItemSchema, GetAdversarialSuiteRunTestRunsResponseSchema } from "../../routes/adversarial-suites/runs/:suite_run_id/test-runs/get";
11
+ import type { GenerateAdversarialSuiteTestsBodySchema, GenerateAdversarialSuiteTestsResponseSchema } from "../../routes/adversarial-suites/generate/post";
12
+ import type { GenerateAdversarialSuiteGraphBodySchema, GenerateAdversarialSuiteGraphResponseSchema } from "../../routes/adversarial-suites/generate-graph/post";
13
+ export type AdversarialSuite = z.infer<typeof AdversarialSuiteApiSchema>;
14
+ export type GetAdversarialSuiteResponse = z.infer<typeof GetAdversarialSuiteByIdResponseSchema>;
15
+ export type PatchAdversarialSuiteBody = z.input<typeof PatchAdversarialSuiteBodySchema>;
16
+ export type PatchAdversarialSuiteResponse = z.infer<typeof PatchAdversarialSuiteResponseSchema>;
17
+ export type RunAdversarialSuiteBody = z.input<typeof RunAdversarialSuiteBodySchema>;
18
+ export type RunAdversarialSuiteResponse = z.infer<typeof RunAdversarialSuiteResponseSchema>;
19
+ export type AdversarialSuiteRun = z.infer<typeof AdversarialSuiteRunApiSchema>;
20
+ export type ListAdversarialSuiteRunsResponse = z.infer<typeof GetAdversarialSuiteRunsResponseSchema>;
21
+ export type AdversarialSuiteTestRunItem = z.infer<typeof AdversarialSuiteTestRunItemSchema>;
22
+ export type ListAdversarialSuiteRunTestRunsResponse = z.infer<typeof GetAdversarialSuiteRunTestRunsResponseSchema>;
23
+ export type GenerateAdversarialSuiteTestsBody = z.input<typeof GenerateAdversarialSuiteTestsBodySchema>;
24
+ export type GenerateAdversarialSuiteTestsResponse = z.infer<typeof GenerateAdversarialSuiteTestsResponseSchema>;
25
+ export type GenerateAdversarialSuiteGraphBody = z.input<typeof GenerateAdversarialSuiteGraphBodySchema>;
26
+ export type GenerateAdversarialSuiteGraphResponse = z.infer<typeof GenerateAdversarialSuiteGraphResponseSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Adversarial suite types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=adversarial-suites.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./adversarial-suites.types.js";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Adversarial test types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { AdversarialTestApiSchema } from "../../routes/nodes/:node_id/adversarial-tests/get";
6
+ import type { GetAdversarialTestByIdResponseSchema } from "../../routes/adversarial-tests/get";
7
+ import type { PatchAdversarialTestBodySchema, PatchAdversarialTestResponseSchema } from "../../routes/adversarial-tests/patch";
8
+ import type { RunAdversarialTestBodySchema, RunAdversarialTestResponseSchema } from "../../routes/adversarial-tests/run/post";
9
+ import type { AuditRemarkApiSchema, AdversarialTestRunApiSchema, GetAdversarialTestRunsResponseSchema } from "../../routes/adversarial-tests/runs/get";
10
+ import type { AdversarialTestRunMessageSchema, GetAdversarialTestRunMessagesResponseSchema } from "../../routes/adversarial-tests/runs/:run_id/messages/get";
11
+ export type AdversarialTest = z.infer<typeof AdversarialTestApiSchema>;
12
+ export type GetAdversarialTestResponse = z.infer<typeof GetAdversarialTestByIdResponseSchema>;
13
+ export type PatchAdversarialTestBody = z.input<typeof PatchAdversarialTestBodySchema>;
14
+ export type PatchAdversarialTestResponse = z.infer<typeof PatchAdversarialTestResponseSchema>;
15
+ export type RunAdversarialTestBody = z.input<typeof RunAdversarialTestBodySchema>;
16
+ export type RunAdversarialTestResponse = z.infer<typeof RunAdversarialTestResponseSchema>;
17
+ export type AuditRemark = z.infer<typeof AuditRemarkApiSchema>;
18
+ export type AdversarialTestRun = z.infer<typeof AdversarialTestRunApiSchema>;
19
+ export type ListAdversarialTestRunsResponse = z.infer<typeof GetAdversarialTestRunsResponseSchema>;
20
+ export type AdversarialTestRunMessage = z.infer<typeof AdversarialTestRunMessageSchema>;
21
+ export type ListAdversarialTestRunMessagesResponse = z.infer<typeof GetAdversarialTestRunMessagesResponseSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Adversarial test types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=adversarial-tests.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./adversarial-tests.types.js";
@@ -0,0 +1,4 @@
1
+ import type { z } from "zod";
2
+ import type { ResolveArtifactsBodySchema, ResolveArtifactsResponseSchema } from "../../routes/artifacts/schemas";
3
+ export type ResolveArtifactsBody = z.input<typeof ResolveArtifactsBodySchema>;
4
+ export type ResolveArtifactsResponse = z.infer<typeof ResolveArtifactsResponseSchema>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=artifacts.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./artifacts.types.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Audit remark types.
3
+ */
4
+ export interface AuditRemarkFeedback {
5
+ id: string;
6
+ polarity: boolean;
7
+ issue_attribution: string | null;
8
+ comment: string | null;
9
+ audit_remark_id: string;
10
+ northstar_id: string;
11
+ created_by: string;
12
+ created_at: string;
13
+ }
14
+ export interface SubmitAuditRemarkFeedbackBody {
15
+ polarity: boolean;
16
+ /** Attribution when polarity is false. */
17
+ issue_attribution?: "auditor" | "northstar";
18
+ comment?: string;
19
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Audit remark types.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=audit-remarks.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./audit-remarks.types.js";
@@ -0,0 +1,146 @@
1
+ /** POST /chat/tokens request body. */
2
+ export interface CreateChatTokenBody {
3
+ workflow_id: string;
4
+ data?: Record<string, unknown>;
5
+ env?: "production" | "staging" | "development";
6
+ }
7
+ /** POST /chat/tokens response. */
8
+ export interface CreateChatTokenResponse {
9
+ token: string;
10
+ expires_at: string;
11
+ }
12
+ /** POST /chat/sessions response. */
13
+ export interface CreateChatSessionResponse {
14
+ session_id: string;
15
+ status: string;
16
+ }
17
+ /** Artifact reference for file attachments. */
18
+ export interface ArtifactRef {
19
+ type?: string;
20
+ media_id: string;
21
+ s3_key?: string;
22
+ mime_type: string;
23
+ presigned_url?: string;
24
+ filename?: string;
25
+ size_bytes?: number;
26
+ artifact_text?: string;
27
+ }
28
+ /** POST /chat/sessions/:id/messages request body. */
29
+ export interface SendChatMessageBody {
30
+ content: string;
31
+ artifacts?: ArtifactRef[];
32
+ }
33
+ /** POST /chat/sessions/:id/messages response. */
34
+ export interface SendChatMessageResponse {
35
+ message: {
36
+ id: string;
37
+ session_id: string;
38
+ content: string;
39
+ role: string;
40
+ created_at: string;
41
+ };
42
+ }
43
+ /** History artifact in message. */
44
+ export interface HistoryArtifact {
45
+ media_id: string;
46
+ filename: string;
47
+ mime_type: string;
48
+ file_size?: number;
49
+ presigned_url?: string;
50
+ }
51
+ /** History message. */
52
+ export interface HistoryMessage {
53
+ id: string;
54
+ role: string;
55
+ content: string;
56
+ timestamp: string;
57
+ metadata?: Record<string, unknown>;
58
+ artifacts?: HistoryArtifact[];
59
+ }
60
+ /** GET /chat/sessions/:id/history response. */
61
+ export interface ChatHistoryResponse {
62
+ session_id: string;
63
+ status: string;
64
+ started_at: string;
65
+ last_activity: string;
66
+ messages: HistoryMessage[];
67
+ metadata?: Record<string, unknown>;
68
+ }
69
+ /** GET /chat/upload/presigned query. */
70
+ export interface PresignedUploadQuery {
71
+ filename: string;
72
+ mime_type: string;
73
+ }
74
+ /** GET /chat/upload/presigned response. */
75
+ export interface PresignedUploadResponse {
76
+ artifact_id: string;
77
+ upload_url: string;
78
+ s3_uri: string;
79
+ max_file_size: number;
80
+ }
81
+ /** POST /chat/upload/complete request body. */
82
+ export interface CompleteUploadBody {
83
+ artifact_id: string;
84
+ s3_uri: string;
85
+ filename: string;
86
+ mime_type: string;
87
+ size_bytes: number;
88
+ }
89
+ /** POST /chat/upload/complete response. */
90
+ export interface CompleteUploadResponse {
91
+ artifact_id: string;
92
+ status: string;
93
+ }
94
+ export interface ChatClientConfig {
95
+ /** Scoped client token from `client.chat.createToken()`. */
96
+ token: string;
97
+ /** Custom fetch implementation. Defaults to `globalThis.fetch`. */
98
+ fetch?: typeof globalThis.fetch;
99
+ }
100
+ export interface ChatWsConnectedEvent {
101
+ type: "connected";
102
+ session_id: string;
103
+ }
104
+ export interface ChatWsResponseStartEvent {
105
+ type: "response-start";
106
+ content: string;
107
+ }
108
+ export interface ChatWsResponseChunkEvent {
109
+ type: "response-chunk";
110
+ content: string;
111
+ }
112
+ export interface ChatWsResponseEndEvent {
113
+ type: "response-end";
114
+ content: string;
115
+ }
116
+ export interface ChatWsSessionClosedEvent {
117
+ type: "session-closed";
118
+ session_id: string;
119
+ status: string;
120
+ reason: string;
121
+ duration: number;
122
+ timestamp: string;
123
+ }
124
+ export interface ChatWsHeartbeatEvent {
125
+ type: "heartbeat";
126
+ }
127
+ export interface ChatWsTokenExpiredEvent {
128
+ type: "token-expired";
129
+ }
130
+ export interface ChatWsMessageAckEvent {
131
+ type: "message-ack";
132
+ id?: string;
133
+ message: {
134
+ id: string;
135
+ session_id: string;
136
+ content: string;
137
+ role: string;
138
+ created_at: string;
139
+ };
140
+ }
141
+ export interface ChatWsMessageErrorEvent {
142
+ type: "message-error";
143
+ id?: string;
144
+ error: string;
145
+ }
146
+ export type ChatWsEvent = ChatWsConnectedEvent | ChatWsResponseStartEvent | ChatWsResponseChunkEvent | ChatWsResponseEndEvent | ChatWsSessionClosedEvent | ChatWsHeartbeatEvent | ChatWsTokenExpiredEvent | ChatWsMessageAckEvent | ChatWsMessageErrorEvent;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=chat.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./chat.types.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Common types shared across the SDK.
3
+ * Extracted from Zod schemas using import type only — zero runtime cost.
4
+ */
5
+ import type { z } from "zod";
6
+ import type { PaginationMetadataSchema } from "../../routes/shared/pagination";
7
+ export type PaginationMetadata = z.infer<typeof PaginationMetadataSchema>;
8
+ /** Standard paginated response shape. */
9
+ export interface PaginatedResponse<T> {
10
+ data: T[];
11
+ pagination: PaginationMetadata;
12
+ }
13
+ /** Standard error response shape. */
14
+ export interface ErrorResponse {
15
+ error: string;
16
+ message: string;
17
+ statusCode: number;
18
+ details?: unknown;
19
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Common types shared across the SDK.
4
+ * Extracted from Zod schemas using import type only — zero runtime cost.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=common.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./common.types.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Contact types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { ContactSchema } from "../../routes/contacts/schemas";
6
+ export type Contact = z.infer<typeof ContactSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Contact types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=contacts.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./contacts.types.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Custom eval types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { CustomTestApiSchema, TestMessageSchema, ExpectedToolCallSchema } from "../../routes/nodes/:node_id/custom-evals/get";
6
+ import type { GetCustomEvalByIdResponseSchema } from "../../routes/custom-evals/get";
7
+ import type { PatchCustomEvalBodySchema, PatchCustomEvalResponseSchema } from "../../routes/custom-evals/patch";
8
+ import type { RunCustomEvalBodySchema, RunCustomEvalResponseSchema } from "../../routes/custom-evals/run/post";
9
+ import type { CustomEvalRunItemSchema, GetCustomEvalRunsResponseSchema } from "../../routes/custom-evals/runs/get";
10
+ export type CustomEval = z.infer<typeof CustomTestApiSchema>;
11
+ export type TestMessage = z.infer<typeof TestMessageSchema>;
12
+ export type ExpectedToolCall = z.infer<typeof ExpectedToolCallSchema>;
13
+ export type GetCustomEvalResponse = z.infer<typeof GetCustomEvalByIdResponseSchema>;
14
+ export type PatchCustomEvalBody = z.input<typeof PatchCustomEvalBodySchema>;
15
+ export type PatchCustomEvalResponse = z.infer<typeof PatchCustomEvalResponseSchema>;
16
+ export type RunCustomEvalBody = z.input<typeof RunCustomEvalBodySchema>;
17
+ export type RunCustomEvalResponse = z.infer<typeof RunCustomEvalResponseSchema>;
18
+ export type CustomEvalRunItem = z.infer<typeof CustomEvalRunItemSchema>;
19
+ export type ListCustomEvalRunsResponse = z.infer<typeof GetCustomEvalRunsResponseSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Custom eval types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=custom-evals.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./custom-evals.types.js";
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Integration types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { IntegrationSchema, EventSchema, CredentialSchema, ListIntegrationsQuerySchema, ListIntegrationsResponseSchema, CreateCredentialBodySchema, CreateCredentialResponseSchema } from "../../routes/integrations/schemas";
6
+ import type { ResourceListResponseSchema, ResourceListWithDescriptionResponseSchema, WhatsAppTemplateListResponseSchema } from "../../routes/integrations/resources-schemas";
7
+ export type Integration = z.infer<typeof IntegrationSchema>;
8
+ export type IntegrationEvent = z.infer<typeof EventSchema>;
9
+ export type Credential = z.infer<typeof CredentialSchema>;
10
+ export type ListIntegrationsQuery = z.input<typeof ListIntegrationsQuerySchema>;
11
+ export type ListIntegrationsResponse = z.infer<typeof ListIntegrationsResponseSchema>;
12
+ export type CreateCredentialBody = z.infer<typeof CreateCredentialBodySchema>;
13
+ export type CreateCredentialResponse = z.infer<typeof CreateCredentialResponseSchema>;
14
+ export type ResourceListResponse = z.infer<typeof ResourceListResponseSchema>;
15
+ export type ResourceListWithDescriptionResponse = z.infer<typeof ResourceListWithDescriptionResponseSchema>;
16
+ export type WhatsAppTemplateListResponse = z.infer<typeof WhatsAppTemplateListResponseSchema>;
17
+ export interface CredentialIdQuery {
18
+ credential_id?: string;
19
+ }
20
+ export interface GoogleSheetsWorksheetsQuery extends CredentialIdQuery {
21
+ spreadsheet_id: string;
22
+ }
23
+ export interface GoogleSheetsColumnsQuery extends CredentialIdQuery {
24
+ spreadsheet_id: string;
25
+ worksheet_name: string;
26
+ }
27
+ export interface GoogleSheetsRowsQuery extends CredentialIdQuery {
28
+ spreadsheet_id: string;
29
+ worksheet_name: string;
30
+ }
31
+ export interface TeamsChannelsQuery extends CredentialIdQuery {
32
+ team_id?: string;
33
+ }
34
+ export interface WhatsAppCredentialQuery {
35
+ credential_id: string;
36
+ }
37
+ export interface WhatsAppBusinessAccountsQuery extends WhatsAppCredentialQuery {
38
+ business_id: string;
39
+ }
40
+ export interface WhatsAppPhoneNumbersQuery extends WhatsAppCredentialQuery {
41
+ business_account_id: string;
42
+ }
43
+ export interface WhatsAppMessageTemplatesQuery extends WhatsAppCredentialQuery {
44
+ business_account_id?: string;
45
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Integration types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=integrations.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./integrations.types.js";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Issue types.
3
+ */
4
+ export interface UpdateIssueBody {
5
+ status: "open" | "approved" | "rejected" | "closed";
6
+ }
7
+ export interface UpdateIssueResponse {
8
+ id: string;
9
+ status: string;
10
+ updated_at: string;
11
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Issue types.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=issues.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./issues.types.js";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Knowledge base types.
3
+ * The KB routes use minimal schemas; define types manually.
4
+ */
5
+ export interface KnowledgeBase {
6
+ id: string;
7
+ name: string;
8
+ org_id: string;
9
+ description: string | null;
10
+ created_at: string;
11
+ updated_at: string;
12
+ }
13
+ export interface KnowledgeBaseDocument {
14
+ id: string;
15
+ knowledge_base_id: string;
16
+ name: string;
17
+ type: string;
18
+ status: string;
19
+ created_at: string;
20
+ updated_at: string;
21
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Knowledge base types.
4
+ * The KB routes use minimal schemas; define types manually.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=knowledge-bases.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./knowledge-bases.types.js";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * MCP server types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { MCPServerResponseSchema, MCPToolResponseSchema, ListMCPServersQuerySchema, PaginatedMCPServersResponseSchema, CreateMCPServerBodySchema } from "../../routes/mcp/schemas";
6
+ export type MCPServerResponse = z.infer<typeof MCPServerResponseSchema>;
7
+ export type MCPToolResponse = z.infer<typeof MCPToolResponseSchema>;
8
+ export type ListMCPServersQuery = z.input<typeof ListMCPServersQuerySchema>;
9
+ export type PaginatedMCPServersResponse = z.infer<typeof PaginatedMCPServersResponseSchema>;
10
+ export type CreateMCPServerBody = z.input<typeof CreateMCPServerBodySchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * MCP server types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=mcp.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./mcp.types.js";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Message types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { ListMessageFlagsQuerySchema, MessageFlagItemSchema, PaginatedMessageFlagsResponseSchema, CreateMessageFlagBodySchema } from "../../routes/messages/schemas";
6
+ export type ListMessageFlagsQuery = z.input<typeof ListMessageFlagsQuerySchema>;
7
+ export type MessageFlagItem = z.infer<typeof MessageFlagItemSchema>;
8
+ export type PaginatedMessageFlagsResponse = z.infer<typeof PaginatedMessageFlagsResponseSchema>;
9
+ export type CreateMessageFlagBody = z.input<typeof CreateMessageFlagBodySchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Message types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=messages.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./messages.types.js";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Node types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { NodeResponseSchema, AddNodeResponseSchema, NodeInputSchema as VersionNodeInputSchema } from "../../routes/versions/:version_id/schemas";
6
+ import type { AvailableVarsResponseSchema } from "../../routes/versions/:version_id/nodes/:node_id/available-vars/schemas";
7
+ import type { ConfigSchemaResponseSchema } from "../../routes/versions/:version_id/nodes/:node_id/config-schema/schemas";
8
+ export type NodeResponse = z.infer<typeof NodeResponseSchema>;
9
+ export type AddNodeResponse = z.infer<typeof AddNodeResponseSchema>;
10
+ export type NodeInput = z.input<typeof VersionNodeInputSchema>;
11
+ export type AvailableVarsResponse = z.infer<typeof AvailableVarsResponseSchema>;
12
+ export type ConfigSchemaResponse = z.infer<typeof ConfigSchemaResponseSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Node types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=nodes.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./nodes.types.js";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Northstar types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { NorthstarApiSchema, NorthstarFeedbackApiSchema } from "../../routes/nodes/:node_id/northstars/get";
6
+ import type { GetNorthstarByIdResponseSchema } from "../../routes/northstars/get";
7
+ import type { PatchNorthstarBodySchema, PatchNorthstarResponseSchema } from "../../routes/northstars/patch";
8
+ import type { GetNorthstarHistoryResponseSchema } from "../../routes/northstars/history/get";
9
+ import type { SubmitNorthstarFeedbackBodySchema, NorthstarFeedbackItemSchema, SubmitNorthstarFeedbackResponseSchema } from "../../routes/northstars/feedback/post";
10
+ export type Northstar = z.infer<typeof NorthstarApiSchema>;
11
+ export type NorthstarFeedback = z.infer<typeof NorthstarFeedbackApiSchema>;
12
+ export type GetNorthstarResponse = z.infer<typeof GetNorthstarByIdResponseSchema>;
13
+ export type PatchNorthstarBody = z.input<typeof PatchNorthstarBodySchema>;
14
+ export type PatchNorthstarResponse = z.infer<typeof PatchNorthstarResponseSchema>;
15
+ export type GetNorthstarHistoryResponse = z.infer<typeof GetNorthstarHistoryResponseSchema>;
16
+ export type SubmitNorthstarFeedbackBody = z.input<typeof SubmitNorthstarFeedbackBodySchema>;
17
+ export type NorthstarFeedbackItem = z.infer<typeof NorthstarFeedbackItemSchema>;
18
+ export type SubmitNorthstarFeedbackResponse = z.infer<typeof SubmitNorthstarFeedbackResponseSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Northstar types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=northstars.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./northstars.types.js";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Phone number types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { ListPhoneNumbersQuerySchema, PhoneNumberResponseSchema, ListPhoneNumbersResponseSchema, BuyPhoneNumberBodySchema, BuyPhoneNumberResponseSchema, FreeUpNumberResponseSchema, DeleteNumberResponseSchema, PhoneNumberUsageResponseSchema, RemoveFromUseCaseBodySchema, RemoveFromUseCaseResponseSchema, TollFreeVerificationResponseSchema, CreateTollFreeVerificationBodySchema, CreateTollFreeVerificationResponseSchema, DeleteTollFreeVerificationResponseSchema, CreateSipTrunkResponseSchema, UpdatePhoneNumberBodySchema, UpdatePhoneNumberResponseSchema, ValidateTollFreeNumbersBodySchema, ValidateTollFreeNumbersResponseSchema } from "../../routes/phone-numbers/schemas";
6
+ export type ListPhoneNumbersQuery = z.input<typeof ListPhoneNumbersQuerySchema>;
7
+ export type PhoneNumberResponse = z.infer<typeof PhoneNumberResponseSchema>;
8
+ export type ListPhoneNumbersResponse = z.infer<typeof ListPhoneNumbersResponseSchema>;
9
+ export type BuyPhoneNumberBody = z.input<typeof BuyPhoneNumberBodySchema>;
10
+ export type BuyPhoneNumberResponse = z.infer<typeof BuyPhoneNumberResponseSchema>;
11
+ export type FreeUpNumberResponse = z.infer<typeof FreeUpNumberResponseSchema>;
12
+ export type DeleteNumberResponse = z.infer<typeof DeleteNumberResponseSchema>;
13
+ export type PhoneNumberUsageResponse = z.infer<typeof PhoneNumberUsageResponseSchema>;
14
+ export type RemoveFromUseCaseBody = z.input<typeof RemoveFromUseCaseBodySchema>;
15
+ export type RemoveFromUseCaseResponse = z.infer<typeof RemoveFromUseCaseResponseSchema>;
16
+ export type TollFreeVerificationResponse = z.infer<typeof TollFreeVerificationResponseSchema>;
17
+ export type CreateTollFreeVerificationBody = z.input<typeof CreateTollFreeVerificationBodySchema>;
18
+ export type CreateTollFreeVerificationResponse = z.infer<typeof CreateTollFreeVerificationResponseSchema>;
19
+ export type DeleteTollFreeVerificationResponse = z.infer<typeof DeleteTollFreeVerificationResponseSchema>;
20
+ export type CreateSipTrunkForPhoneResponse = z.infer<typeof CreateSipTrunkResponseSchema>;
21
+ export type UpdatePhoneNumberBody = z.input<typeof UpdatePhoneNumberBodySchema>;
22
+ export type UpdatePhoneNumberResponse = z.infer<typeof UpdatePhoneNumberResponseSchema>;
23
+ export type ValidateTollFreeNumbersBody = z.input<typeof ValidateTollFreeNumbersBodySchema>;
24
+ export type ValidateTollFreeNumbersResponse = z.infer<typeof ValidateTollFreeNumbersResponseSchema>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Phone number types extracted from Zod schemas.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=phone-numbers.types.js.map
@@ -0,0 +1 @@
1
+ export * from "./phone-numbers.types.js";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Run types extracted from Zod schemas.
3
+ */
4
+ import type { z } from "zod";
5
+ import type { RunDetailSchema, MarkRunBodySchema, MarkRunResponseSchema, ListFlagsQuerySchema, PaginatedFlagsResponseSchema, FlagItemSchema } from "../../routes/runs/schemas";
6
+ import type { WorkflowRunsQuerySchema, PaginatedWorkflowRunsResponseSchema, TriggerRunBodySchema, TriggerRunResponseSchema } from "../../routes/workflows/:workflow_id/runs/schemas";
7
+ export type WorkflowRunsQuery = z.input<typeof WorkflowRunsQuerySchema>;
8
+ export type PaginatedWorkflowRunsResponse = z.infer<typeof PaginatedWorkflowRunsResponseSchema>;
9
+ export type TriggerRunBody = z.input<typeof TriggerRunBodySchema>;
10
+ export type TriggerRunResponse = z.infer<typeof TriggerRunResponseSchema>;
11
+ export type RunDetail = z.infer<typeof RunDetailSchema>;
12
+ export type MarkRunBody = z.input<typeof MarkRunBodySchema>;
13
+ export type MarkRunResponse = z.infer<typeof MarkRunResponseSchema>;
14
+ export type ListFlagsQuery = z.input<typeof ListFlagsQuerySchema>;
15
+ export type PaginatedFlagsResponse = z.infer<typeof PaginatedFlagsResponseSchema>;
16
+ export type FlagItem = z.infer<typeof FlagItemSchema>;