@elqnt/admin 2.0.3 → 2.0.5
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/README.md +243 -0
- package/dist/api/index.d.cts +4 -2
- package/dist/api/index.d.ts +4 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.d.cts +2 -1
- package/dist/models/index.d.ts +2 -1
- package/package.json +4 -3
package/README.md
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# @elqnt/admin
|
|
2
|
+
|
|
3
|
+
Admin APIs for Eloquent platform - onboarding, organization settings, and billing.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @elqnt/admin
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import {
|
|
15
|
+
getOnboardingStatusApi,
|
|
16
|
+
createOrganizationApi,
|
|
17
|
+
getOrgSettingsApi,
|
|
18
|
+
getBillingPlansApi,
|
|
19
|
+
} from "@elqnt/admin/api";
|
|
20
|
+
|
|
21
|
+
// Check onboarding status
|
|
22
|
+
const status = await getOnboardingStatusApi({
|
|
23
|
+
baseUrl: "https://api.elqnt.ai",
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// Create organization during onboarding
|
|
27
|
+
const org = await createOrganizationApi(
|
|
28
|
+
{ name: "Acme Corp", industry: "Technology" },
|
|
29
|
+
{ baseUrl: "https://api.elqnt.ai" }
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
// Get org settings (requires orgId)
|
|
33
|
+
const settings = await getOrgSettingsApi({
|
|
34
|
+
baseUrl: "https://api.elqnt.ai",
|
|
35
|
+
orgId: "org-uuid",
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Exports
|
|
40
|
+
|
|
41
|
+
| Import Path | Description |
|
|
42
|
+
|-------------|-------------|
|
|
43
|
+
| `@elqnt/admin` | All exports |
|
|
44
|
+
| `@elqnt/admin/api` | Browser API functions |
|
|
45
|
+
| `@elqnt/admin/models` | TypeScript types |
|
|
46
|
+
|
|
47
|
+
## API Reference
|
|
48
|
+
|
|
49
|
+
### Onboarding API
|
|
50
|
+
|
|
51
|
+
Functions for new user/organization setup flow.
|
|
52
|
+
|
|
53
|
+
| Function | Description |
|
|
54
|
+
|----------|-------------|
|
|
55
|
+
| `getOnboardingStatusApi(options)` | Get current onboarding state |
|
|
56
|
+
| `startOnboardingApi(options)` | Initialize onboarding process |
|
|
57
|
+
| `createPaymentSessionApi(params, options)` | Create Stripe checkout session |
|
|
58
|
+
| `createOrganizationApi(org, options)` | Create new organization |
|
|
59
|
+
| `sendOnboardingInvitesApi(invites, options)` | Send team invitations |
|
|
60
|
+
| `createOnboardingKnowledgeApi(knowledge, options)` | Set up knowledge base |
|
|
61
|
+
| `createOnboardingAgentApi(agent, options)` | Create initial AI agent |
|
|
62
|
+
| `createAgentWithSkillsApi(payload, options)` | Create agent with skills |
|
|
63
|
+
| `completeOnboardingApi(options)` | Mark onboarding complete |
|
|
64
|
+
| `skipOnboardingStepApi(step, options)` | Skip optional step |
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import {
|
|
68
|
+
getOnboardingStatusApi,
|
|
69
|
+
createOrganizationApi,
|
|
70
|
+
completeOnboardingApi,
|
|
71
|
+
} from "@elqnt/admin/api";
|
|
72
|
+
|
|
73
|
+
// Onboarding options - orgId is optional
|
|
74
|
+
interface OnboardingApiOptions {
|
|
75
|
+
baseUrl: string;
|
|
76
|
+
orgId?: string; // May not exist yet
|
|
77
|
+
userId?: string;
|
|
78
|
+
userEmail?: string;
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Organization Settings API
|
|
83
|
+
|
|
84
|
+
Manage organization configuration.
|
|
85
|
+
|
|
86
|
+
| Function | Description |
|
|
87
|
+
|----------|-------------|
|
|
88
|
+
| `getOrgSettingsApi(options)` | Get organization settings |
|
|
89
|
+
| `createOrgSettingsApi(settings, options)` | Create settings (first time) |
|
|
90
|
+
| `updateOrgSettingsApi(settings, options)` | Update settings |
|
|
91
|
+
| `updateOrgAgentsApi(agentIds, options)` | Update enabled agents |
|
|
92
|
+
| `updateEntityDefinitionsApi(entityNames, options)` | Update enabled entities |
|
|
93
|
+
| `updateWorkflowDefinitionsApi(workflowIds, options)` | Update enabled workflows |
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import { getOrgSettingsApi, updateOrgSettingsApi } from "@elqnt/admin/api";
|
|
97
|
+
|
|
98
|
+
const settings = await getOrgSettingsApi({
|
|
99
|
+
baseUrl: "https://api.elqnt.ai",
|
|
100
|
+
orgId: "org-uuid",
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
if (settings.data) {
|
|
104
|
+
await updateOrgSettingsApi(
|
|
105
|
+
{ ...settings.data.settings, timezone: "America/New_York" },
|
|
106
|
+
{ baseUrl: "https://api.elqnt.ai", orgId: "org-uuid" }
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Billing API
|
|
112
|
+
|
|
113
|
+
Subscription and payment management.
|
|
114
|
+
|
|
115
|
+
| Function | Description |
|
|
116
|
+
|----------|-------------|
|
|
117
|
+
| `getBillingPlansApi(options)` | List available plans |
|
|
118
|
+
| `getSubscriptionApi(options)` | Get current subscription |
|
|
119
|
+
| `getCreditsApi(options)` | Get credit balance |
|
|
120
|
+
| `createCheckoutSessionApi(params, options)` | Create Stripe checkout |
|
|
121
|
+
| `createPortalSessionApi(params, options)` | Create billing portal session |
|
|
122
|
+
| `cancelSubscriptionApi(options)` | Cancel subscription |
|
|
123
|
+
| `purchaseCreditsApi(params, options)` | Purchase additional credits |
|
|
124
|
+
|
|
125
|
+
```typescript
|
|
126
|
+
import {
|
|
127
|
+
getBillingPlansApi,
|
|
128
|
+
getSubscriptionApi,
|
|
129
|
+
createPortalSessionApi,
|
|
130
|
+
} from "@elqnt/admin/api";
|
|
131
|
+
|
|
132
|
+
// Get available plans
|
|
133
|
+
const plans = await getBillingPlansApi({
|
|
134
|
+
baseUrl: "https://api.elqnt.ai",
|
|
135
|
+
orgId: "org-uuid",
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// Get current subscription
|
|
139
|
+
const subscription = await getSubscriptionApi({
|
|
140
|
+
baseUrl: "https://api.elqnt.ai",
|
|
141
|
+
orgId: "org-uuid",
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
// Open billing portal
|
|
145
|
+
const portal = await createPortalSessionApi(
|
|
146
|
+
{ returnUrl: window.location.href },
|
|
147
|
+
{ baseUrl: "https://api.elqnt.ai", orgId: "org-uuid" }
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
if (portal.data?.url) {
|
|
151
|
+
window.location.href = portal.data.url;
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Token Cache Management
|
|
156
|
+
|
|
157
|
+
```typescript
|
|
158
|
+
import { clearGatewayTokenCache } from "@elqnt/admin/api";
|
|
159
|
+
|
|
160
|
+
// Clear cached token after org creation or user switch
|
|
161
|
+
clearGatewayTokenCache();
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Types (`@elqnt/admin/models`)
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
import type {
|
|
168
|
+
// Onboarding
|
|
169
|
+
OnboardingState,
|
|
170
|
+
OnboardingResponse,
|
|
171
|
+
CreateOrgResponse,
|
|
172
|
+
SendInvitesResponse,
|
|
173
|
+
CompleteOnboardingResponse,
|
|
174
|
+
|
|
175
|
+
// Organization
|
|
176
|
+
OrgSettings,
|
|
177
|
+
OrgSettingsResponse,
|
|
178
|
+
|
|
179
|
+
// Billing
|
|
180
|
+
Plan,
|
|
181
|
+
OrganizationBilling,
|
|
182
|
+
UsageSummary,
|
|
183
|
+
CreditBalance,
|
|
184
|
+
PlansResponse,
|
|
185
|
+
SubscriptionResponse,
|
|
186
|
+
CreditsResponse,
|
|
187
|
+
|
|
188
|
+
// Provisioning
|
|
189
|
+
ProvisionAgentsResponse,
|
|
190
|
+
ProvisionEntitiesResponse,
|
|
191
|
+
ProvisionWorkflowsResponse,
|
|
192
|
+
} from "@elqnt/admin/models";
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### OnboardingState
|
|
196
|
+
|
|
197
|
+
```typescript
|
|
198
|
+
interface OnboardingState {
|
|
199
|
+
currentStep: string;
|
|
200
|
+
completedSteps: string[];
|
|
201
|
+
orgId?: string;
|
|
202
|
+
stripeSessionId?: string;
|
|
203
|
+
// ... step-specific data
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### OrgSettings
|
|
208
|
+
|
|
209
|
+
```typescript
|
|
210
|
+
interface OrgSettings {
|
|
211
|
+
id?: string;
|
|
212
|
+
orgId: string;
|
|
213
|
+
timezone?: string;
|
|
214
|
+
locale?: string;
|
|
215
|
+
features?: Record<string, boolean>;
|
|
216
|
+
agents?: string[];
|
|
217
|
+
entities?: string[];
|
|
218
|
+
workflows?: string[];
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Deprecated APIs
|
|
223
|
+
|
|
224
|
+
The following provisioning APIs are deprecated. Use domain-specific packages instead:
|
|
225
|
+
|
|
226
|
+
```typescript
|
|
227
|
+
// DEPRECATED - use @elqnt/agents/api instead
|
|
228
|
+
provisionDefaultAgentsApi(definitions, options)
|
|
229
|
+
|
|
230
|
+
// DEPRECATED - use @elqnt/entity/api instead
|
|
231
|
+
provisionEntitiesApi(definitions, options)
|
|
232
|
+
|
|
233
|
+
// DEPRECATED - use @elqnt/workflow/api instead
|
|
234
|
+
provisionWorkflowsApi(definitions, options)
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## Peer Dependencies
|
|
238
|
+
|
|
239
|
+
- `react` ^18.0.0 || ^19.0.0
|
|
240
|
+
|
|
241
|
+
## License
|
|
242
|
+
|
|
243
|
+
Private - Eloquent Platform
|
package/dist/api/index.d.cts
CHANGED
|
@@ -2,8 +2,10 @@ import { CompleteOnboardingResponse, CreateAgentResponse, CreateCheckoutResponse
|
|
|
2
2
|
export { OnboardingState } from '../models/index.cjs';
|
|
3
3
|
export { clearGatewayTokenCache } from '@elqnt/api-client/browser';
|
|
4
4
|
import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
|
|
5
|
-
import { ResponseMetadata
|
|
6
|
-
export { CreditBalance,
|
|
5
|
+
import { ResponseMetadata } from '@elqnt/types';
|
|
6
|
+
export { CreditBalance, OrganizationBilling, Plan, UsageSummary } from '@elqnt/types';
|
|
7
|
+
import { OrgSettings, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
8
|
+
export { OrgSettings, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* Admin API functions
|
package/dist/api/index.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ import { CompleteOnboardingResponse, CreateAgentResponse, CreateCheckoutResponse
|
|
|
2
2
|
export { OnboardingState } from '../models/index.js';
|
|
3
3
|
export { clearGatewayTokenCache } from '@elqnt/api-client/browser';
|
|
4
4
|
import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
|
|
5
|
-
import { ResponseMetadata
|
|
6
|
-
export { CreditBalance,
|
|
5
|
+
import { ResponseMetadata } from '@elqnt/types';
|
|
6
|
+
export { CreditBalance, OrganizationBilling, Plan, UsageSummary } from '@elqnt/types';
|
|
7
|
+
import { OrgSettings, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
8
|
+
export { OrgSettings, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* Admin API functions
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { CompleteOnboardingResponse, CreateAgentResponse, CreateCheckoutResponse, CreateKnowledgeResponse, CreateOrgResponse, CreditsResponse, OnboardingResponse, OnboardingState, PaymentSessionResponse, PlansResponse, PortalSessionResponse, ProvisionAgentsResponse, ProvisionEntitiesResponse, ProvisionWorkflowsResponse, SendInvitesResponse, SubscriptionResponse } from './models/index.cjs';
|
|
2
2
|
export { OnboardingApiOptions, cancelSubscriptionApi, completeOnboardingApi, createAgentWithSkillsApi, createCheckoutSessionApi, createOnboardingAgentApi, createOnboardingKnowledgeApi, createOrgSettingsApi, createOrganizationApi, createPaymentSessionApi, createPortalSessionApi, getBillingPlansApi, getCreditsApi, getOnboardingStatusApi, getOrgSettingsApi, getSubscriptionApi, provisionDefaultAgentsApi, provisionEntitiesApi, provisionWorkflowsApi, purchaseCreditsApi, sendOnboardingInvitesApi, skipOnboardingStepApi, startOnboardingApi, updateEntityDefinitionsApi, updateOrgAgentsApi, updateOrgSettingsApi, updateWorkflowDefinitionsApi } from './api/index.cjs';
|
|
3
|
-
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse,
|
|
3
|
+
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse, OrganizationBilling, Plan, PurchaseCreditsRequest, PurchaseCreditsResponse, UsagePeriod, UsageSummary } from '@elqnt/types';
|
|
4
|
+
export { OrgSettings, OrgSettingsRequest, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
4
5
|
export { clearGatewayTokenCache } from '@elqnt/api-client/browser';
|
|
5
6
|
import '@elqnt/api-client';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { CompleteOnboardingResponse, CreateAgentResponse, CreateCheckoutResponse, CreateKnowledgeResponse, CreateOrgResponse, CreditsResponse, OnboardingResponse, OnboardingState, PaymentSessionResponse, PlansResponse, PortalSessionResponse, ProvisionAgentsResponse, ProvisionEntitiesResponse, ProvisionWorkflowsResponse, SendInvitesResponse, SubscriptionResponse } from './models/index.js';
|
|
2
2
|
export { OnboardingApiOptions, cancelSubscriptionApi, completeOnboardingApi, createAgentWithSkillsApi, createCheckoutSessionApi, createOnboardingAgentApi, createOnboardingKnowledgeApi, createOrgSettingsApi, createOrganizationApi, createPaymentSessionApi, createPortalSessionApi, getBillingPlansApi, getCreditsApi, getOnboardingStatusApi, getOrgSettingsApi, getSubscriptionApi, provisionDefaultAgentsApi, provisionEntitiesApi, provisionWorkflowsApi, purchaseCreditsApi, sendOnboardingInvitesApi, skipOnboardingStepApi, startOnboardingApi, updateEntityDefinitionsApi, updateOrgAgentsApi, updateOrgSettingsApi, updateWorkflowDefinitionsApi } from './api/index.js';
|
|
3
|
-
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse,
|
|
3
|
+
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse, OrganizationBilling, Plan, PurchaseCreditsRequest, PurchaseCreditsResponse, UsagePeriod, UsageSummary } from '@elqnt/types';
|
|
4
|
+
export { OrgSettings, OrgSettingsRequest, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
4
5
|
export { clearGatewayTokenCache } from '@elqnt/api-client/browser';
|
|
5
6
|
import '@elqnt/api-client';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../models/index.ts"],"sourcesContent":["/**\n * Admin Models\n *\n * Types for admin-related operations (onboarding, org-settings, billing)\n * Re-exports types from @elqnt/types for consistency.\n */\n\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type { Plan, OrganizationBilling, CreditBalance, UsageSummary } from \"@elqnt/types\";\n\n// =============================================================================\n// ONBOARDING TYPES (unique to admin)\n// =============================================================================\n\nexport interface OnboardingState {\n currentStep: string;\n completedSteps: string[];\n skippedSteps: string[];\n orgId?: string;\n userId?: string;\n [key: string]: unknown;\n}\n\nexport interface OnboardingResponse {\n state: OnboardingState;\n metadata: ResponseMetadata;\n}\n\nexport interface CreateOrgResponse {\n org: unknown;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface SendInvitesResponse {\n sent: unknown[];\n failed: string[];\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface CreateKnowledgeResponse {\n graphId: string;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface CreateAgentResponse {\n agentId: string;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface CompleteOnboardingResponse {\n success: boolean;\n redirectUrl?: string;\n metadata: ResponseMetadata;\n}\n\nexport interface PaymentSessionResponse {\n sessionId: string;\n url: string;\n metadata: ResponseMetadata;\n}\n\n// =============================================================================\n// ORG SETTINGS TYPES - Re-export from @elqnt/
|
|
1
|
+
{"version":3,"sources":["../../models/index.ts"],"sourcesContent":["/**\n * Admin Models\n *\n * Types for admin-related operations (onboarding, org-settings, billing)\n * Re-exports types from @elqnt/types for consistency.\n */\n\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type { Plan, OrganizationBilling, CreditBalance, UsageSummary } from \"@elqnt/types\";\n\n// =============================================================================\n// ONBOARDING TYPES (unique to admin)\n// =============================================================================\n\nexport interface OnboardingState {\n currentStep: string;\n completedSteps: string[];\n skippedSteps: string[];\n orgId?: string;\n userId?: string;\n [key: string]: unknown;\n}\n\nexport interface OnboardingResponse {\n state: OnboardingState;\n metadata: ResponseMetadata;\n}\n\nexport interface CreateOrgResponse {\n org: unknown;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface SendInvitesResponse {\n sent: unknown[];\n failed: string[];\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface CreateKnowledgeResponse {\n graphId: string;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface CreateAgentResponse {\n agentId: string;\n nextStep: string;\n metadata: ResponseMetadata;\n}\n\nexport interface CompleteOnboardingResponse {\n success: boolean;\n redirectUrl?: string;\n metadata: ResponseMetadata;\n}\n\nexport interface PaymentSessionResponse {\n sessionId: string;\n url: string;\n metadata: ResponseMetadata;\n}\n\n// =============================================================================\n// ORG SETTINGS TYPES - Re-export from @elqnt/agents\n// =============================================================================\n\nexport type {\n OrgSettings,\n OrgSettingsRequest,\n OrgSettingsResponse,\n} from \"@elqnt/agents/models\";\n\n// =============================================================================\n// BILLING TYPES - Re-export from @elqnt/types\n// =============================================================================\n\nexport type {\n Plan,\n OrganizationBilling,\n CreditBalance,\n CreditPackage,\n UsageSummary,\n UsagePeriod,\n CreateCheckoutSessionRequest,\n CreateCheckoutSessionResponse,\n CreatePortalSessionRequest,\n CreatePortalSessionResponse,\n GetSubscriptionRequest,\n GetSubscriptionResponse,\n GetCreditsRequest,\n GetCreditsResponse,\n GetPlansRequest,\n GetPlansResponse,\n PurchaseCreditsRequest,\n PurchaseCreditsResponse,\n} from \"@elqnt/types\";\n\n// =============================================================================\n// PROVISIONING TYPES\n// =============================================================================\n\nexport interface ProvisionAgentsResponse {\n agentsCreated: number;\n subAgentsCreated: number;\n toolsCreated: number;\n skillsCreated: number;\n success: boolean;\n metadata: ResponseMetadata;\n}\n\nexport interface ProvisionEntitiesResponse {\n successCount: number;\n errorCount: number;\n errors: string[];\n success: boolean;\n metadata: ResponseMetadata;\n}\n\nexport interface ProvisionWorkflowsResponse {\n successCount: number;\n errorCount: number;\n errors: string[];\n success: boolean;\n metadata: ResponseMetadata;\n}\n\n// =============================================================================\n// API RESPONSE TYPES\n// =============================================================================\n\nexport interface PlansResponse {\n plans: Plan[];\n metadata: ResponseMetadata;\n}\n\nexport interface SubscriptionResponse {\n subscription: OrganizationBilling;\n usage?: UsageSummary;\n metadata: ResponseMetadata;\n}\n\nexport interface CreditsResponse {\n balances: CreditBalance[];\n totalRemaining: number;\n metadata: ResponseMetadata;\n}\n\nexport interface CreateCheckoutResponse {\n sessionId: string;\n url: string;\n metadata: ResponseMetadata;\n}\n\nexport interface PortalSessionResponse {\n url: string;\n metadata: ResponseMetadata;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/models/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ResponseMetadata, CreditBalance, Plan, OrganizationBilling, UsageSummary } from '@elqnt/types';
|
|
2
|
-
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse,
|
|
2
|
+
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse, OrganizationBilling, Plan, PurchaseCreditsRequest, PurchaseCreditsResponse, UsagePeriod, UsageSummary } from '@elqnt/types';
|
|
3
|
+
export { OrgSettings, OrgSettingsRequest, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Admin Models
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ResponseMetadata, CreditBalance, Plan, OrganizationBilling, UsageSummary } from '@elqnt/types';
|
|
2
|
-
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse,
|
|
2
|
+
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse, OrganizationBilling, Plan, PurchaseCreditsRequest, PurchaseCreditsResponse, UsagePeriod, UsageSummary } from '@elqnt/types';
|
|
3
|
+
export { OrgSettings, OrgSettingsRequest, OrgSettingsResponse } from '@elqnt/agents/models';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Admin Models
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elqnt/admin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Admin APIs for Eloquent platform (onboarding, org-settings, billing)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@elqnt/
|
|
28
|
-
"@elqnt/api-client": "1.0.
|
|
27
|
+
"@elqnt/agents": "3.0.5",
|
|
28
|
+
"@elqnt/api-client": "1.0.4",
|
|
29
|
+
"@elqnt/types": "2.0.12"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"tsup": "^8.0.0",
|