@epilot/sdk 2.4.4-alpha.0 → 2.4.4

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 (222) hide show
  1. package/dist/access-token.d-CnmUTOlq.d.cts +552 -0
  2. package/dist/access-token.d-CnmUTOlq.d.ts +552 -0
  3. package/dist/address-suggestions.d-_YwTOR-9.d.cts +339 -0
  4. package/dist/address-suggestions.d-_YwTOR-9.d.ts +339 -0
  5. package/dist/address.d-CwAPOVxa.d.cts +437 -0
  6. package/dist/address.d-CwAPOVxa.d.ts +437 -0
  7. package/dist/ai-agents.d-OkXfr2bz.d.cts +1339 -0
  8. package/dist/ai-agents.d-OkXfr2bz.d.ts +1339 -0
  9. package/dist/apis/access-token.d.cts +18 -0
  10. package/dist/apis/access-token.d.ts +12 -9
  11. package/dist/apis/address-suggestions.d.cts +18 -0
  12. package/dist/apis/address-suggestions.d.ts +12 -9
  13. package/dist/apis/address.d.cts +18 -0
  14. package/dist/apis/address.d.ts +12 -9
  15. package/dist/apis/ai-agents.d.cts +18 -0
  16. package/dist/apis/ai-agents.d.ts +12 -9
  17. package/dist/apis/app.d.cts +18 -0
  18. package/dist/apis/app.d.ts +12 -9
  19. package/dist/apis/audit-logs.d.cts +18 -0
  20. package/dist/apis/audit-logs.d.ts +12 -9
  21. package/dist/apis/automation.d.cts +18 -0
  22. package/dist/apis/automation.d.ts +12 -9
  23. package/dist/apis/billing.d.cts +18 -0
  24. package/dist/apis/billing.d.ts +12 -9
  25. package/dist/apis/blueprint-manifest.d.cts +18 -0
  26. package/dist/apis/blueprint-manifest.d.ts +12 -9
  27. package/dist/apis/calendar.d.cts +18 -0
  28. package/dist/apis/calendar.d.ts +12 -9
  29. package/dist/apis/configuration-hub.d.cts +18 -0
  30. package/dist/apis/configuration-hub.d.ts +12 -9
  31. package/dist/apis/consent.d.cts +18 -0
  32. package/dist/apis/consent.d.ts +12 -9
  33. package/dist/apis/customer-portal.d.cts +18 -0
  34. package/dist/apis/customer-portal.d.ts +12 -9
  35. package/dist/apis/dashboard.d.cts +18 -0
  36. package/dist/apis/dashboard.d.ts +12 -9
  37. package/dist/apis/data-governance.d.cts +18 -0
  38. package/dist/apis/data-governance.d.ts +12 -9
  39. package/dist/apis/deduplication.d.cts +18 -0
  40. package/dist/apis/deduplication.d.ts +12 -9
  41. package/dist/apis/design.d.cts +18 -0
  42. package/dist/apis/design.d.ts +12 -9
  43. package/dist/apis/document.d.cts +18 -0
  44. package/dist/apis/document.d.ts +12 -9
  45. package/dist/apis/email-settings.d.cts +18 -0
  46. package/dist/apis/email-settings.d.ts +12 -9
  47. package/dist/apis/email-template.d.cts +18 -0
  48. package/dist/apis/email-template.d.ts +12 -9
  49. package/dist/apis/entity-mapping.d.cts +18 -0
  50. package/dist/apis/entity-mapping.d.ts +12 -9
  51. package/dist/apis/entity.d.cts +18 -0
  52. package/dist/apis/entity.d.ts +12 -9
  53. package/dist/apis/environments.d.cts +18 -0
  54. package/dist/apis/environments.d.ts +12 -9
  55. package/dist/apis/event-catalog.d.cts +18 -0
  56. package/dist/apis/event-catalog.d.ts +12 -9
  57. package/dist/apis/file.d.cts +18 -0
  58. package/dist/apis/file.d.ts +12 -9
  59. package/dist/apis/iban.d.cts +18 -0
  60. package/dist/apis/iban.d.ts +12 -9
  61. package/dist/apis/integration-toolkit.d.cts +18 -0
  62. package/dist/apis/integration-toolkit.d.ts +12 -9
  63. package/dist/apis/journey.d.cts +18 -0
  64. package/dist/apis/journey.d.ts +12 -9
  65. package/dist/apis/kanban.d.cts +18 -0
  66. package/dist/apis/kanban.d.ts +12 -9
  67. package/dist/apis/message.d.cts +18 -0
  68. package/dist/apis/message.d.ts +12 -9
  69. package/dist/apis/metering.d.cts +18 -0
  70. package/dist/apis/metering.d.ts +12 -9
  71. package/dist/apis/notes.d.cts +18 -0
  72. package/dist/apis/notes.d.ts +12 -9
  73. package/dist/apis/notification.d.cts +18 -0
  74. package/dist/apis/notification.d.ts +12 -9
  75. package/dist/apis/organization.d.cts +18 -0
  76. package/dist/apis/organization.d.ts +12 -9
  77. package/dist/apis/partner-directory.d.cts +18 -0
  78. package/dist/apis/partner-directory.d.ts +12 -9
  79. package/dist/apis/permissions.d.cts +18 -0
  80. package/dist/apis/permissions.d.ts +12 -9
  81. package/dist/apis/pricing-tier.d.cts +18 -0
  82. package/dist/apis/pricing-tier.d.ts +12 -9
  83. package/dist/apis/pricing.d.cts +18 -0
  84. package/dist/apis/pricing.d.ts +12 -9
  85. package/dist/apis/purpose.d.cts +18 -0
  86. package/dist/apis/purpose.d.ts +12 -9
  87. package/dist/apis/query.d.cts +18 -0
  88. package/dist/apis/query.d.ts +12 -9
  89. package/dist/apis/sandbox.d.cts +18 -0
  90. package/dist/apis/sandbox.d.ts +12 -9
  91. package/dist/apis/sharing.d.cts +18 -0
  92. package/dist/apis/sharing.d.ts +12 -9
  93. package/dist/apis/submission.d.cts +18 -0
  94. package/dist/apis/submission.d.ts +12 -9
  95. package/dist/apis/target.d.cts +597 -0
  96. package/dist/apis/target.d.ts +591 -9
  97. package/dist/apis/targeting.d.cts +18 -0
  98. package/dist/apis/targeting.d.ts +12 -9
  99. package/dist/apis/template-variables.d.cts +18 -0
  100. package/dist/apis/template-variables.d.ts +12 -9
  101. package/dist/apis/user.d.cts +18 -0
  102. package/dist/apis/user.d.ts +12 -9
  103. package/dist/apis/validation-rules.d.cts +18 -0
  104. package/dist/apis/validation-rules.d.ts +12 -9
  105. package/dist/apis/webhooks.d.cts +18 -0
  106. package/dist/apis/webhooks.d.ts +12 -9
  107. package/dist/apis/workflow-definition.d.cts +18 -0
  108. package/dist/apis/workflow-definition.d.ts +12 -9
  109. package/dist/apis/workflow.d.cts +18 -0
  110. package/dist/apis/workflow.d.ts +12 -9
  111. package/dist/app.d-u7Dq42kU.d.cts +3391 -0
  112. package/dist/app.d-u7Dq42kU.d.ts +3391 -0
  113. package/dist/audit-logs.d-BRToFqeX.d.cts +287 -0
  114. package/dist/audit-logs.d-BRToFqeX.d.ts +287 -0
  115. package/dist/automation.d-Du6-uiz5.d.cts +5283 -0
  116. package/dist/automation.d-Du6-uiz5.d.ts +5283 -0
  117. package/dist/billing.d-Bs8Ku9qE.d.cts +993 -0
  118. package/dist/billing.d-Bs8Ku9qE.d.ts +993 -0
  119. package/dist/blueprint-manifest.d-BPyzoR0X.d.cts +4343 -0
  120. package/dist/blueprint-manifest.d-BPyzoR0X.d.ts +4343 -0
  121. package/dist/calendar.d-BEjLDagH.d.cts +353 -0
  122. package/dist/calendar.d-BEjLDagH.d.ts +353 -0
  123. package/dist/configuration-hub.d-Cqaq2F-W.d.cts +478 -0
  124. package/dist/configuration-hub.d-Cqaq2F-W.d.ts +478 -0
  125. package/dist/consent.d-C2PROHhX.d.cts +265 -0
  126. package/dist/consent.d-C2PROHhX.d.ts +265 -0
  127. package/dist/customer-portal.d-DyZ2n2dW.d.cts +16728 -0
  128. package/dist/customer-portal.d-DyZ2n2dW.d.ts +16728 -0
  129. package/dist/dashboard.d-CsGcA74I.d.cts +440 -0
  130. package/dist/dashboard.d-CsGcA74I.d.ts +440 -0
  131. package/dist/data-governance.d-BbZ466j5.d.cts +1178 -0
  132. package/dist/data-governance.d-BbZ466j5.d.ts +1178 -0
  133. package/dist/deduplication.d-D5GYddVu.d.cts +218 -0
  134. package/dist/deduplication.d-D5GYddVu.d.ts +218 -0
  135. package/dist/design.d-BRre8iLg.d.cts +2346 -0
  136. package/dist/design.d-BRre8iLg.d.ts +2346 -0
  137. package/dist/document.d-DN37pjdx.d.cts +648 -0
  138. package/dist/document.d-DN37pjdx.d.ts +648 -0
  139. package/dist/email-settings.d-B7Q_xT25.d.cts +2417 -0
  140. package/dist/email-settings.d-B7Q_xT25.d.ts +2417 -0
  141. package/dist/email-template.d-gtQkdaXM.d.cts +1188 -0
  142. package/dist/email-template.d-gtQkdaXM.d.ts +1188 -0
  143. package/dist/entity-mapping.d-DKSW3sfy.d.cts +1092 -0
  144. package/dist/entity-mapping.d-DKSW3sfy.d.ts +1092 -0
  145. package/dist/entity.d-BHR9dEon.d.cts +18479 -0
  146. package/dist/entity.d-BHR9dEon.d.ts +18479 -0
  147. package/dist/environments.d-BvqvN-PD.d.cts +382 -0
  148. package/dist/environments.d-BvqvN-PD.d.ts +382 -0
  149. package/dist/event-catalog.d-ENw6HO-w.d.cts +1511 -0
  150. package/dist/event-catalog.d-ENw6HO-w.d.ts +1511 -0
  151. package/dist/file.d-DcTJxjp7.d.cts +2992 -0
  152. package/dist/file.d-DcTJxjp7.d.ts +2992 -0
  153. package/dist/iban.d-BwdiGbxi.d.cts +70 -0
  154. package/dist/iban.d-BwdiGbxi.d.ts +70 -0
  155. package/dist/index.d.cts +182 -0
  156. package/dist/index.d.ts +182 -12
  157. package/dist/integration-toolkit.d-Ry-KC9ow.d.cts +5796 -0
  158. package/dist/integration-toolkit.d-Ry-KC9ow.d.ts +5796 -0
  159. package/dist/journey.d-ClXO0xK8.d.cts +1931 -0
  160. package/dist/journey.d-ClXO0xK8.d.ts +1931 -0
  161. package/dist/kanban.d-BHnSRCYW.d.cts +760 -0
  162. package/dist/kanban.d-BHnSRCYW.d.ts +760 -0
  163. package/dist/message.d-B5UuSqgw.d.cts +3811 -0
  164. package/dist/message.d-B5UuSqgw.d.ts +3811 -0
  165. package/dist/metering.d-DvtPv7wk.d.cts +1841 -0
  166. package/dist/metering.d-DvtPv7wk.d.ts +1841 -0
  167. package/dist/notes.d-BC-scR42.d.cts +1046 -0
  168. package/dist/notes.d-BC-scR42.d.ts +1046 -0
  169. package/dist/notification.d-BfBL3lga.d.cts +1147 -0
  170. package/dist/notification.d-BfBL3lga.d.ts +1147 -0
  171. package/dist/organization.d-DqwnNxMg.d.cts +1271 -0
  172. package/dist/organization.d-DqwnNxMg.d.ts +1271 -0
  173. package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
  174. package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
  175. package/dist/permissions.d-l6AT8SYP.d.cts +1279 -0
  176. package/dist/permissions.d-l6AT8SYP.d.ts +1279 -0
  177. package/dist/pricing-tier.d-Cg0jl6n_.d.cts +81 -0
  178. package/dist/pricing-tier.d-Cg0jl6n_.d.ts +81 -0
  179. package/dist/pricing.d-BHpMU4KU.d.cts +12255 -0
  180. package/dist/pricing.d-BHpMU4KU.d.ts +12255 -0
  181. package/dist/purpose.d-CbIYfTua.d.cts +372 -0
  182. package/dist/purpose.d-CbIYfTua.d.ts +372 -0
  183. package/dist/query.d-Cmp78IhZ.d.cts +2375 -0
  184. package/dist/query.d-Cmp78IhZ.d.ts +2375 -0
  185. package/dist/sandbox.d-BdbOFzDu.d.cts +465 -0
  186. package/dist/sandbox.d-BdbOFzDu.d.ts +465 -0
  187. package/dist/sharing.d-sOXq-gtz.d.cts +571 -0
  188. package/dist/sharing.d-sOXq-gtz.d.ts +571 -0
  189. package/dist/submission.d-BamwfhXw.d.cts +469 -0
  190. package/dist/submission.d-BamwfhXw.d.ts +469 -0
  191. package/dist/targeting.d-BNmcVsNS.d.cts +2057 -0
  192. package/dist/targeting.d-BNmcVsNS.d.ts +2057 -0
  193. package/dist/template-variables.d-Ble9TSBa.d.cts +1320 -0
  194. package/dist/template-variables.d-Ble9TSBa.d.ts +1320 -0
  195. package/dist/types-ChU9Acbv.d.cts +37 -0
  196. package/dist/types-ChU9Acbv.d.ts +37 -0
  197. package/dist/user.d-D18fe97W.d.cts +2270 -0
  198. package/dist/user.d-D18fe97W.d.ts +2270 -0
  199. package/dist/validation-rules.d-Db5c5zTf.d.cts +807 -0
  200. package/dist/validation-rules.d-Db5c5zTf.d.ts +807 -0
  201. package/dist/webhooks.d-pLHIL_io.d.cts +1256 -0
  202. package/dist/webhooks.d-pLHIL_io.d.ts +1256 -0
  203. package/dist/workflow-definition.d-DOeb0KVV.d.cts +1922 -0
  204. package/dist/workflow-definition.d-DOeb0KVV.d.ts +1922 -0
  205. package/dist/workflow.d-CMSKt8oN.d.cts +3151 -0
  206. package/dist/workflow.d-CMSKt8oN.d.ts +3151 -0
  207. package/package.json +1 -1
  208. package/dist/apis/_registry.d.ts +0 -8
  209. package/dist/authorize.d.ts +0 -3
  210. package/dist/bin/cli.d.ts +0 -1
  211. package/dist/client-factory.d.ts +0 -9
  212. package/dist/client-map.d.ts +0 -102
  213. package/dist/compact.d.ts +0 -22
  214. package/dist/help.d.ts +0 -12
  215. package/dist/large-response.d.ts +0 -9
  216. package/dist/openapi.d.ts +0 -12
  217. package/dist/overrides.d.ts +0 -9
  218. package/dist/proxy.d.ts +0 -14
  219. package/dist/registry.d.ts +0 -19
  220. package/dist/retry.d.ts +0 -11
  221. package/dist/sdk.d.ts +0 -29
  222. package/dist/types.d.ts +0 -53
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.4.4-alpha.0",
3
+ "version": "2.4.4",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,8 +0,0 @@
1
- import type { ApiEntry, ExtensionEntry } from '../types';
2
- export declare const registerBuiltinApis: (registry: Map<string, ApiEntry>) => void;
3
- /**
4
- * Register non-API extensions (plain objects, not OpenAPI clients).
5
- * These are mounted on the SDK alongside API handles.
6
- * Extensions are lazy-loaded — the module is only imported on first access.
7
- */
8
- export declare const registerBuiltinExtensions: (extensions: Map<string, ExtensionEntry>) => void;
@@ -1,3 +0,0 @@
1
- import type { AxiosInstance } from 'axios';
2
- export type TokenArg = string | (() => string | Promise<string>);
3
- export declare const authorize: <T extends AxiosInstance>(client: T, token: TokenArg) => T;
package/dist/bin/cli.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import type { AxiosInstance } from 'axios';
2
- import type { Document } from 'openapi-client-axios';
3
- import { type TokenArg } from './authorize';
4
- export declare const createApiClient: <T extends AxiosInstance = AxiosInstance>(params: {
5
- definition: Document;
6
- token?: TokenArg | null;
7
- headers?: Record<string, string>;
8
- apiName?: string;
9
- }) => T;
@@ -1,102 +0,0 @@
1
- import type { Client as AccessTokenClient } from './types/access-token';
2
- import type { Client as AddressClient } from './types/address';
3
- import type { Client as AddressSuggestionsClient } from './types/address-suggestions';
4
- import type { Client as AiAgentsClient } from './types/ai-agents';
5
- import type { Client as AppClient } from './types/app';
6
- import type { Client as AuditLogsClient } from './types/audit-logs';
7
- import type { Client as AutomationClient } from './types/automation';
8
- import type { Client as BillingClient } from './types/billing';
9
- import type { Client as BlueprintManifestClient } from './types/blueprint-manifest';
10
- import type { Client as CalendarClient } from './types/calendar';
11
- import type { Client as ConfigurationHubClient } from './types/configuration-hub';
12
- import type { Client as ConsentClient } from './types/consent';
13
- import type { Client as CustomerPortalClient } from './types/customer-portal';
14
- import type { Client as DashboardClient } from './types/dashboard';
15
- import type { Client as DataGovernanceClient } from './types/data-governance';
16
- import type { Client as DeduplicationClient } from './types/deduplication';
17
- import type { Client as DesignClient } from './types/design';
18
- import type { Client as DocumentClient } from './types/document';
19
- import type { Client as EmailSettingsClient } from './types/email-settings';
20
- import type { Client as EmailTemplateClient } from './types/email-template';
21
- import type { Client as EntityClient } from './types/entity';
22
- import type { Client as EntityMappingClient } from './types/entity-mapping';
23
- import type { Client as EnvironmentsClient } from './types/environments';
24
- import type { Client as EventCatalogClient } from './types/event-catalog';
25
- import type { Client as FileClient } from './types/file';
26
- import type { Client as IbanClient } from './types/iban';
27
- import type { Client as IntegrationToolkitClient } from './types/integration-toolkit';
28
- import type { Client as JourneyClient } from './types/journey';
29
- import type { Client as KanbanClient } from './types/kanban';
30
- import type { Client as MessageClient } from './types/message';
31
- import type { Client as MeteringClient } from './types/metering';
32
- import type { Client as NotesClient } from './types/notes';
33
- import type { Client as NotificationClient } from './types/notification';
34
- import type { Client as OrganizationClient } from './types/organization';
35
- import type { Client as PartnerDirectoryClient } from './types/partner-directory';
36
- import type { Client as PermissionsClient } from './types/permissions';
37
- import type { Client as PricingClient } from './types/pricing';
38
- import type { Client as PricingTierClient } from './types/pricing-tier';
39
- import type { Client as PurposeClient } from './types/purpose';
40
- import type { Client as QueryClient } from './types/query';
41
- import type { Client as SandboxClient } from './types/sandbox';
42
- import type { Client as SharingClient } from './types/sharing';
43
- import type { Client as SubmissionClient } from './types/submission';
44
- import type { Client as TargetingClient } from './types/targeting';
45
- import type { Client as TemplateVariablesClient } from './types/template-variables';
46
- import type { Client as UserClient } from './types/user';
47
- import type { Client as ValidationRulesClient } from './types/validation-rules';
48
- import type { Client as WebhooksClient } from './types/webhooks';
49
- import type { Client as WorkflowClient } from './types/workflow';
50
- import type { Client as WorkflowDefinitionClient } from './types/workflow-definition';
51
- export type SDKClientMap = {
52
- accessToken: AccessTokenClient;
53
- address: AddressClient;
54
- addressSuggestions: AddressSuggestionsClient;
55
- aiAgents: AiAgentsClient;
56
- app: AppClient;
57
- auditLogs: AuditLogsClient;
58
- automation: AutomationClient;
59
- billing: BillingClient;
60
- blueprintManifest: BlueprintManifestClient;
61
- calendar: CalendarClient;
62
- configurationHub: ConfigurationHubClient;
63
- consent: ConsentClient;
64
- customerPortal: CustomerPortalClient;
65
- dashboard: DashboardClient;
66
- dataGovernance: DataGovernanceClient;
67
- deduplication: DeduplicationClient;
68
- design: DesignClient;
69
- document: DocumentClient;
70
- emailSettings: EmailSettingsClient;
71
- emailTemplate: EmailTemplateClient;
72
- entity: EntityClient;
73
- entityMapping: EntityMappingClient;
74
- environments: EnvironmentsClient;
75
- eventCatalog: EventCatalogClient;
76
- file: FileClient;
77
- iban: IbanClient;
78
- integrationToolkit: IntegrationToolkitClient;
79
- journey: JourneyClient;
80
- kanban: KanbanClient;
81
- message: MessageClient;
82
- metering: MeteringClient;
83
- notes: NotesClient;
84
- notification: NotificationClient;
85
- organization: OrganizationClient;
86
- partnerDirectory: PartnerDirectoryClient;
87
- permissions: PermissionsClient;
88
- pricing: PricingClient;
89
- pricingTier: PricingTierClient;
90
- purpose: PurposeClient;
91
- query: QueryClient;
92
- sandbox: SandboxClient;
93
- sharing: SharingClient;
94
- submission: SubmissionClient;
95
- targeting: TargetingClient;
96
- templateVariables: TemplateVariablesClient;
97
- user: UserClient;
98
- validationRules: ValidationRulesClient;
99
- webhooks: WebhooksClient;
100
- workflow: WorkflowClient;
101
- workflowDefinition: WorkflowDefinitionClient;
102
- };
package/dist/compact.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * Compact OpenAPI definition format for reduced bundle size.
3
- *
4
- * Encodes only the fields openapi-client-axios reads at runtime:
5
- * paths, operationId, parameters (name, in, required, style, explode),
6
- * requestBody presence, servers, and $ref component parameters.
7
- */
8
- type CP = [name: string, loc: 'p' | 'q' | 'h' | 'c', ...rest: (boolean | string)[]];
9
- type CR = [ref: string];
10
- export type CompactDefinition = {
11
- s: string;
12
- sv?: Record<string, {
13
- default: string;
14
- enum?: string[];
15
- }>;
16
- v?: string;
17
- o: [id: string, m: string, p: string, ps?: (CP | CR)[], b?: 0 | 1][];
18
- cp?: Record<string, CP>;
19
- pp?: Record<string, (CP | CR)[]>;
20
- };
21
- export declare const expand: (c: CompactDefinition) => Record<string, unknown>;
22
- export {};
package/dist/help.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * Lazy-loaded help system — returns markdown docs for SDK APIs.
3
- * Each doc is loaded via dynamic import() so only the requested doc affects bundle size.
4
- */
5
- /**
6
- * Get help for a specific API or general SDK help.
7
- *
8
- * @example
9
- * await help() // general SDK docs
10
- * await help('entity') // entity API docs
11
- */
12
- export declare const help: (apiName?: string) => Promise<string>;
@@ -1,9 +0,0 @@
1
- import type { AxiosInstance } from 'axios';
2
- export type LargeResponseConfig = {
3
- /** Enable large response handling. Default: true */
4
- enabled?: boolean;
5
- };
6
- export declare const applyLargeResponseInterceptor: (params: {
7
- client: AxiosInstance;
8
- config: LargeResponseConfig;
9
- }) => void;
package/dist/openapi.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * Lazy-loaded OpenAPI spec — returns the full OpenAPI JSON document for an API.
3
- * Each spec is loaded via dynamic import() so only the requested spec affects bundle size.
4
- */
5
- import type { Document } from 'openapi-client-axios';
6
- /**
7
- * Get the full OpenAPI specification for an API.
8
- *
9
- * @example
10
- * await openapi('entity') // full entity OpenAPI spec
11
- */
12
- export declare const openapi: (apiName: string) => Promise<Document>;
@@ -1,9 +0,0 @@
1
- import type { ApiEntry } from './types';
2
- /**
3
- * Loads overrides from .epilot/sdk-overrides.json synchronously.
4
- * Only performs filesystem reads on first call - subsequent calls are no-ops.
5
- * Safe to call in browser environments (fs/path are dynamically required).
6
- */
7
- export declare const loadOverrides: (registry: Map<string, ApiEntry>, cwd?: string) => void;
8
- /** Reset override loading state (for testing) */
9
- export declare const _resetOverrides: () => void;
package/dist/proxy.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import type { AxiosInstance } from 'axios';
2
- import type { ApiHandle } from './types';
3
- /**
4
- * Creates an ApiHandle — a proxy that exposes explicit getClient() / createClient()
5
- * and forwards any other property access as an operation call on the lazy singleton.
6
- *
7
- * help() and openapi() are attached to clients at creation time in client-factory.ts,
8
- * so they work regardless of how the client is obtained.
9
- */
10
- export declare const createApiHandle: <T extends AxiosInstance>(params: {
11
- resolveClient: () => T;
12
- createClient: () => T;
13
- apiName?: string;
14
- }) => ApiHandle<T>;
@@ -1,19 +0,0 @@
1
- import type { AxiosInstance } from 'axios';
2
- import type { Document } from 'openapi-client-axios';
3
- import type { ApiEntry, SDKState } from './types';
4
- export declare const createRegistry: () => Map<string, ApiEntry>;
5
- export declare const registerApi: (params: {
6
- registry: Map<string, ApiEntry>;
7
- name: string;
8
- loader: () => Document;
9
- }) => void;
10
- export declare const resolveClient: (params: {
11
- registry: Map<string, ApiEntry>;
12
- name: string;
13
- state: SDKState;
14
- }) => AxiosInstance;
15
- export declare const resetClient: (params: {
16
- registry: Map<string, ApiEntry>;
17
- name: string;
18
- }) => void;
19
- export declare const resetAllClients: (registry: Map<string, ApiEntry>) => void;
package/dist/retry.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { AxiosInstance } from 'axios';
2
- export type RetryConfig = {
3
- /** Maximum number of retries for 429 responses. Set to 0 to disable. Default: 3 */
4
- maxRetries?: number;
5
- /** Default delay in ms when Retry-After header is missing. Default: 1000 */
6
- defaultDelayMs?: number;
7
- };
8
- export declare const applyRetryInterceptor: (params: {
9
- client: AxiosInstance;
10
- config: RetryConfig;
11
- }) => void;
package/dist/sdk.d.ts DELETED
@@ -1,29 +0,0 @@
1
- import type { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
2
- import type { TokenArg } from './authorize';
3
- import type { SDKClientMap } from './client-map';
4
- import type { LargeResponseConfig } from './large-response';
5
- import type { RetryConfig } from './retry';
6
- import type { ApiHandle, HeadersConfig } from './types';
7
- export type InterceptorUse = {
8
- request: (fulfilled: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>, rejected?: (error: unknown) => unknown) => void;
9
- response: (fulfilled: (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>, rejected?: (error: unknown) => unknown) => void;
10
- };
11
- export type EpilotSDK = {
12
- /** Set a Bearer token (static string or async function) for all clients */
13
- authorize: (token: TokenArg) => void;
14
- /** Set global default headers applied to all clients (e.g. x-epilot-org-id) */
15
- headers: (headers: HeadersConfig) => void;
16
- /** Register global axios interceptors applied to all clients */
17
- interceptors: InterceptorUse;
18
- /** Configure retry behavior for 429 Too Many Requests responses */
19
- retry: (config: RetryConfig) => void;
20
- /** Configure large response handling for S3-backed payloads */
21
- largeResponse: (config: LargeResponseConfig) => void;
22
- /** Get markdown docs. No args = general SDK help, with API name = API-specific docs */
23
- help: (apiName?: string) => Promise<string>;
24
- /** Get the full OpenAPI specification for an API (lazy-loaded) */
25
- openapi: (apiName: string) => Promise<import('openapi-client-axios').Document>;
26
- } & {
27
- [K in keyof SDKClientMap]: ApiHandle<SDKClientMap[K]>;
28
- } & Record<string, ApiHandle<AxiosInstance>>;
29
- export declare const createSDK: () => EpilotSDK;
package/dist/types.d.ts DELETED
@@ -1,53 +0,0 @@
1
- import type { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
2
- import type { Document } from 'openapi-client-axios';
3
- import type { LargeResponseConfig } from './large-response';
4
- import type { RetryConfig } from './retry';
5
- export type ApiEntry = {
6
- loader: () => Document;
7
- instance: AxiosInstance | null;
8
- };
9
- export type RequestInterceptor = {
10
- type: 'request';
11
- fulfilled: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>;
12
- rejected?: (error: unknown) => unknown;
13
- };
14
- export type ResponseInterceptor = {
15
- type: 'response';
16
- fulfilled: (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>;
17
- rejected?: (error: unknown) => unknown;
18
- };
19
- export type Interceptor = RequestInterceptor | ResponseInterceptor;
20
- export type SDKState = {
21
- token: string | null;
22
- tokenFn: (() => string | Promise<string>) | null;
23
- globalHeaders: Record<string, string>;
24
- interceptors: Interceptor[];
25
- retry: RetryConfig;
26
- largeResponse: LargeResponseConfig;
27
- };
28
- export type HeadersConfig = Record<string, string>;
29
- export type OverridesConfig = Record<string, string>;
30
- /**
31
- * A non-API extension mounted on the SDK.
32
- * Unlike ApiEntry (OpenAPI-based), extensions are plain objects
33
- * with arbitrary methods and properties (e.g. factory functions, utilities).
34
- */
35
- export type ExtensionEntry = {
36
- value: unknown;
37
- };
38
- /**
39
- * An API handle that provides:
40
- * - `getClient()` — cached singleton
41
- * - `createClient()` — fresh instance
42
- * - Any operation method (e.g. `.getEntity(...)`) — auto-resolved via lazy singleton
43
- */
44
- export type ApiHandle<T extends AxiosInstance = AxiosInstance> = {
45
- /** Get the cached singleton client instance (lazy-initialized on first call) */
46
- getClient: () => T;
47
- /** Create a fresh client instance (not cached) */
48
- createClient: () => T;
49
- /** Get the full OpenAPI specification document (lazy-loaded) */
50
- openapi: () => Promise<Document>;
51
- } & {
52
- [K in keyof T]: T[K];
53
- };