@elqnt/admin 2.0.0
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/dist/api/index.cjs +270 -0
- package/dist/api/index.cjs.map +1 -0
- package/dist/api/index.d.cts +98 -0
- package/dist/api/index.d.ts +98 -0
- package/dist/api/index.js +219 -0
- package/dist/api/index.js.map +1 -0
- package/dist/index.cjs +272 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +219 -0
- package/dist/index.js.map +1 -0
- package/dist/models/index.cjs +19 -0
- package/dist/models/index.cjs.map +1 -0
- package/dist/models/index.d.cts +96 -0
- package/dist/models/index.d.ts +96 -0
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -0
- package/package.json +44 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
// api/index.ts
|
|
2
|
+
import { browserApiRequest, clearGatewayTokenCache } from "@elqnt/api-client/browser";
|
|
3
|
+
async function getOnboardingStatusApi(options) {
|
|
4
|
+
return browserApiRequest("/api/v1/onboarding/status", {
|
|
5
|
+
method: "GET",
|
|
6
|
+
...options,
|
|
7
|
+
orgId: options.orgId || ""
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
async function startOnboardingApi(options) {
|
|
11
|
+
return browserApiRequest("/api/v1/onboarding/start", {
|
|
12
|
+
method: "POST",
|
|
13
|
+
body: {},
|
|
14
|
+
...options,
|
|
15
|
+
orgId: options.orgId || ""
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
async function createPaymentSessionApi(params, options) {
|
|
19
|
+
return browserApiRequest("/api/v1/onboarding/step/payment", {
|
|
20
|
+
method: "POST",
|
|
21
|
+
body: params,
|
|
22
|
+
...options,
|
|
23
|
+
orgId: options.orgId || ""
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async function createOrganizationApi(org, options) {
|
|
27
|
+
return browserApiRequest("/api/v1/onboarding/step/organization", {
|
|
28
|
+
method: "POST",
|
|
29
|
+
body: org,
|
|
30
|
+
...options,
|
|
31
|
+
orgId: options.orgId || ""
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async function sendOnboardingInvitesApi(invites, options) {
|
|
35
|
+
return browserApiRequest("/api/v1/onboarding/step/invites", {
|
|
36
|
+
method: "POST",
|
|
37
|
+
body: { invites },
|
|
38
|
+
...options,
|
|
39
|
+
orgId: options.orgId || ""
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
async function createOnboardingKnowledgeApi(knowledge, options) {
|
|
43
|
+
return browserApiRequest("/api/v1/onboarding/step/knowledge", {
|
|
44
|
+
method: "POST",
|
|
45
|
+
body: knowledge,
|
|
46
|
+
...options,
|
|
47
|
+
orgId: options.orgId || ""
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
async function createOnboardingAgentApi(agent, options) {
|
|
51
|
+
return browserApiRequest("/api/v1/onboarding/step/agent", {
|
|
52
|
+
method: "POST",
|
|
53
|
+
body: agent,
|
|
54
|
+
...options,
|
|
55
|
+
orgId: options.orgId || ""
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
async function createAgentWithSkillsApi(payload, options) {
|
|
59
|
+
return browserApiRequest("/api/v1/onboarding/agent-with-skills", {
|
|
60
|
+
method: "POST",
|
|
61
|
+
body: payload,
|
|
62
|
+
...options,
|
|
63
|
+
orgId: options.orgId || ""
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
async function completeOnboardingApi(options) {
|
|
67
|
+
return browserApiRequest("/api/v1/onboarding/complete", {
|
|
68
|
+
method: "POST",
|
|
69
|
+
body: {},
|
|
70
|
+
...options,
|
|
71
|
+
orgId: options.orgId || ""
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
async function skipOnboardingStepApi(step, options) {
|
|
75
|
+
return browserApiRequest("/api/v1/onboarding/skip-step", {
|
|
76
|
+
method: "POST",
|
|
77
|
+
body: { step },
|
|
78
|
+
...options,
|
|
79
|
+
orgId: options.orgId || ""
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
async function getOrgSettingsApi(options) {
|
|
83
|
+
return browserApiRequest("/api/v1/org/settings", {
|
|
84
|
+
method: "GET",
|
|
85
|
+
...options
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
async function createOrgSettingsApi(settings, options) {
|
|
89
|
+
return browserApiRequest("/api/v1/org/settings", {
|
|
90
|
+
method: "POST",
|
|
91
|
+
body: settings,
|
|
92
|
+
...options
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async function updateOrgSettingsApi(settings, options) {
|
|
96
|
+
return browserApiRequest("/api/v1/org/settings", {
|
|
97
|
+
method: "PUT",
|
|
98
|
+
body: settings,
|
|
99
|
+
...options
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
async function updateOrgAgentsApi(agentIds, options) {
|
|
103
|
+
return browserApiRequest("/api/v1/org/agents", {
|
|
104
|
+
method: "PUT",
|
|
105
|
+
body: { agentIds },
|
|
106
|
+
...options
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
async function updateEntityDefinitionsApi(entityNames, options) {
|
|
110
|
+
return browserApiRequest("/api/v1/org/entities", {
|
|
111
|
+
method: "PUT",
|
|
112
|
+
body: { entityNames },
|
|
113
|
+
...options
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
async function updateWorkflowDefinitionsApi(workflowIds, options) {
|
|
117
|
+
return browserApiRequest("/api/v1/org/workflows", {
|
|
118
|
+
method: "PUT",
|
|
119
|
+
body: { workflowIds },
|
|
120
|
+
...options
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
async function getBillingPlansApi(options) {
|
|
124
|
+
return browserApiRequest("/api/v1/billing/plans", {
|
|
125
|
+
method: "GET",
|
|
126
|
+
...options
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
async function getSubscriptionApi(options) {
|
|
130
|
+
return browserApiRequest("/api/v1/billing/subscription", {
|
|
131
|
+
method: "GET",
|
|
132
|
+
...options
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
async function getCreditsApi(options) {
|
|
136
|
+
return browserApiRequest("/api/v1/billing/credits", {
|
|
137
|
+
method: "GET",
|
|
138
|
+
...options
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
async function createCheckoutSessionApi(params, options) {
|
|
142
|
+
return browserApiRequest("/api/v1/billing/checkout", {
|
|
143
|
+
method: "POST",
|
|
144
|
+
body: params,
|
|
145
|
+
...options
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
async function createPortalSessionApi(params, options) {
|
|
149
|
+
return browserApiRequest("/api/v1/billing/portal", {
|
|
150
|
+
method: "POST",
|
|
151
|
+
body: params,
|
|
152
|
+
...options
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
async function cancelSubscriptionApi(options) {
|
|
156
|
+
return browserApiRequest("/api/v1/billing/subscription/cancel", {
|
|
157
|
+
method: "POST",
|
|
158
|
+
body: {},
|
|
159
|
+
...options
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
async function purchaseCreditsApi(params, options) {
|
|
163
|
+
return browserApiRequest("/api/v1/billing/credits/purchase", {
|
|
164
|
+
method: "POST",
|
|
165
|
+
body: params,
|
|
166
|
+
...options
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
async function provisionDefaultAgentsApi(definitions, options) {
|
|
170
|
+
return browserApiRequest("/api/v1/admin/provision/agents", {
|
|
171
|
+
method: "POST",
|
|
172
|
+
body: { definitions },
|
|
173
|
+
...options
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
async function provisionEntitiesApi(definitions, options) {
|
|
177
|
+
return browserApiRequest("/api/v1/admin/provision/entities", {
|
|
178
|
+
method: "POST",
|
|
179
|
+
body: { definitions },
|
|
180
|
+
...options
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
async function provisionWorkflowsApi(definitions, options) {
|
|
184
|
+
return browserApiRequest("/api/v1/admin/provision/workflows", {
|
|
185
|
+
method: "POST",
|
|
186
|
+
body: { definitions },
|
|
187
|
+
...options
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
export {
|
|
191
|
+
cancelSubscriptionApi,
|
|
192
|
+
clearGatewayTokenCache,
|
|
193
|
+
completeOnboardingApi,
|
|
194
|
+
createAgentWithSkillsApi,
|
|
195
|
+
createCheckoutSessionApi,
|
|
196
|
+
createOnboardingAgentApi,
|
|
197
|
+
createOnboardingKnowledgeApi,
|
|
198
|
+
createOrgSettingsApi,
|
|
199
|
+
createOrganizationApi,
|
|
200
|
+
createPaymentSessionApi,
|
|
201
|
+
createPortalSessionApi,
|
|
202
|
+
getBillingPlansApi,
|
|
203
|
+
getCreditsApi,
|
|
204
|
+
getOnboardingStatusApi,
|
|
205
|
+
getOrgSettingsApi,
|
|
206
|
+
getSubscriptionApi,
|
|
207
|
+
provisionDefaultAgentsApi,
|
|
208
|
+
provisionEntitiesApi,
|
|
209
|
+
provisionWorkflowsApi,
|
|
210
|
+
purchaseCreditsApi,
|
|
211
|
+
sendOnboardingInvitesApi,
|
|
212
|
+
skipOnboardingStepApi,
|
|
213
|
+
startOnboardingApi,
|
|
214
|
+
updateEntityDefinitionsApi,
|
|
215
|
+
updateOrgAgentsApi,
|
|
216
|
+
updateOrgSettingsApi,
|
|
217
|
+
updateWorkflowDefinitionsApi
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../api/index.ts"],"sourcesContent":["/**\n * Admin API functions\n *\n * Browser-side API client for admin operations (onboarding, org-settings, billing).\n * Uses @elqnt/api-client for HTTP requests with automatic token management.\n */\n\nimport { browserApiRequest, clearGatewayTokenCache } from \"@elqnt/api-client/browser\";\nimport type { ApiResponse, ApiClientOptions } from \"@elqnt/api-client\";\n\n// Re-export utility function\nexport { clearGatewayTokenCache };\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type {\n OnboardingState,\n OnboardingResponse,\n CreateOrgResponse,\n SendInvitesResponse,\n CreateKnowledgeResponse,\n CreateAgentResponse,\n CompleteOnboardingResponse,\n PaymentSessionResponse,\n OrgSettings,\n OrgSettingsResponse,\n PlansResponse,\n SubscriptionResponse,\n CreditsResponse,\n CreateCheckoutResponse,\n PortalSessionResponse,\n ProvisionAgentsResponse,\n ProvisionEntitiesResponse,\n ProvisionWorkflowsResponse,\n} from \"../models\";\n\n// =============================================================================\n// ONBOARDING API OPTIONS\n// =============================================================================\n\n/**\n * Onboarding API options - orgId is optional since user may not have org yet\n */\nexport interface OnboardingApiOptions {\n baseUrl: string;\n orgId?: string;\n userId?: string;\n userEmail?: string;\n headers?: Record<string, string>;\n}\n\n// =============================================================================\n// ONBOARDING API\n// =============================================================================\n\nexport async function getOnboardingStatusApi(\n options: OnboardingApiOptions\n): Promise<ApiResponse<OnboardingResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/status\", {\n method: \"GET\",\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function startOnboardingApi(\n options: OnboardingApiOptions\n): Promise<ApiResponse<OnboardingResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/start\", {\n method: \"POST\",\n body: {},\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function createPaymentSessionApi(\n params: { plan: string; billingCycle: string; seats: number; successUrl: string; cancelUrl: string },\n options: OnboardingApiOptions\n): Promise<ApiResponse<PaymentSessionResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/step/payment\", {\n method: \"POST\",\n body: params,\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function createOrganizationApi(\n org: { name: string; industry?: string; size?: string; stripeSessionId?: string },\n options: OnboardingApiOptions\n): Promise<ApiResponse<CreateOrgResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/step/organization\", {\n method: \"POST\",\n body: org,\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function sendOnboardingInvitesApi(\n invites: Array<{ email: string; role?: string }>,\n options: OnboardingApiOptions\n): Promise<ApiResponse<SendInvitesResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/step/invites\", {\n method: \"POST\",\n body: { invites },\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function createOnboardingKnowledgeApi(\n knowledge: { name: string; description?: string; websites?: string[] },\n options: OnboardingApiOptions\n): Promise<ApiResponse<CreateKnowledgeResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/step/knowledge\", {\n method: \"POST\",\n body: knowledge,\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function createOnboardingAgentApi(\n agent: { name: string; description?: string; goal?: string },\n options: OnboardingApiOptions\n): Promise<ApiResponse<CreateAgentResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/step/agent\", {\n method: \"POST\",\n body: agent,\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function createAgentWithSkillsApi(\n payload: { agent: Record<string, unknown>; skills: Record<string, unknown>[]; enabledSkillNames: string[] },\n options: OnboardingApiOptions\n): Promise<ApiResponse<CreateAgentResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/agent-with-skills\", {\n method: \"POST\",\n body: payload,\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function completeOnboardingApi(\n options: OnboardingApiOptions\n): Promise<ApiResponse<CompleteOnboardingResponse>> {\n return browserApiRequest(\"/api/v1/onboarding/complete\", {\n method: \"POST\",\n body: {},\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\nexport async function skipOnboardingStepApi(\n step: string,\n options: OnboardingApiOptions\n): Promise<ApiResponse<{ nextStep: string; metadata: ResponseMetadata }>> {\n return browserApiRequest(\"/api/v1/onboarding/skip-step\", {\n method: \"POST\",\n body: { step },\n ...options,\n orgId: options.orgId || \"\",\n });\n}\n\n// =============================================================================\n// ORG SETTINGS API\n// =============================================================================\n\nexport async function getOrgSettingsApi(\n options: ApiClientOptions\n): Promise<ApiResponse<OrgSettingsResponse>> {\n return browserApiRequest(\"/api/v1/org/settings\", {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function createOrgSettingsApi(\n settings: Partial<OrgSettings>,\n options: ApiClientOptions\n): Promise<ApiResponse<OrgSettingsResponse & { id?: string }>> {\n return browserApiRequest(\"/api/v1/org/settings\", {\n method: \"POST\",\n body: settings,\n ...options,\n });\n}\n\nexport async function updateOrgSettingsApi(\n settings: Partial<OrgSettings>,\n options: ApiClientOptions\n): Promise<ApiResponse<OrgSettingsResponse>> {\n return browserApiRequest(\"/api/v1/org/settings\", {\n method: \"PUT\",\n body: settings,\n ...options,\n });\n}\n\nexport async function updateOrgAgentsApi(\n agentIds: string[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionAgentsResponse>> {\n return browserApiRequest(\"/api/v1/org/agents\", {\n method: \"PUT\",\n body: { agentIds },\n ...options,\n });\n}\n\nexport async function updateEntityDefinitionsApi(\n entityNames: string[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionEntitiesResponse>> {\n return browserApiRequest(\"/api/v1/org/entities\", {\n method: \"PUT\",\n body: { entityNames },\n ...options,\n });\n}\n\nexport async function updateWorkflowDefinitionsApi(\n workflowIds: string[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionWorkflowsResponse>> {\n return browserApiRequest(\"/api/v1/org/workflows\", {\n method: \"PUT\",\n body: { workflowIds },\n ...options,\n });\n}\n\n// =============================================================================\n// BILLING API\n// =============================================================================\n\nexport async function getBillingPlansApi(\n options: ApiClientOptions\n): Promise<ApiResponse<PlansResponse>> {\n return browserApiRequest(\"/api/v1/billing/plans\", {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function getSubscriptionApi(\n options: ApiClientOptions\n): Promise<ApiResponse<SubscriptionResponse>> {\n return browserApiRequest(\"/api/v1/billing/subscription\", {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function getCreditsApi(\n options: ApiClientOptions\n): Promise<ApiResponse<CreditsResponse>> {\n return browserApiRequest(\"/api/v1/billing/credits\", {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function createCheckoutSessionApi(\n params: { priceId: string; seats?: number; successUrl?: string; cancelUrl?: string },\n options: ApiClientOptions\n): Promise<ApiResponse<CreateCheckoutResponse>> {\n return browserApiRequest(\"/api/v1/billing/checkout\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function createPortalSessionApi(\n params: { returnUrl: string },\n options: ApiClientOptions\n): Promise<ApiResponse<PortalSessionResponse>> {\n return browserApiRequest(\"/api/v1/billing/portal\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function cancelSubscriptionApi(\n options: ApiClientOptions\n): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(\"/api/v1/billing/subscription/cancel\", {\n method: \"POST\",\n body: {},\n ...options,\n });\n}\n\nexport async function purchaseCreditsApi(\n params: { packageId: string; successUrl?: string; cancelUrl?: string },\n options: ApiClientOptions\n): Promise<ApiResponse<CreateCheckoutResponse>> {\n return browserApiRequest(\"/api/v1/billing/credits/purchase\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\n// =============================================================================\n// PROVISIONING API\n// =============================================================================\n\nexport async function provisionDefaultAgentsApi(\n definitions: unknown[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionAgentsResponse>> {\n return browserApiRequest(\"/api/v1/admin/provision/agents\", {\n method: \"POST\",\n body: { definitions },\n ...options,\n });\n}\n\nexport async function provisionEntitiesApi(\n definitions: unknown[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionEntitiesResponse>> {\n return browserApiRequest(\"/api/v1/admin/provision/entities\", {\n method: \"POST\",\n body: { definitions },\n ...options,\n });\n}\n\nexport async function provisionWorkflowsApi(\n definitions: unknown[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionWorkflowsResponse>> {\n return browserApiRequest(\"/api/v1/admin/provision/workflows\", {\n method: \"POST\",\n body: { definitions },\n ...options,\n });\n}\n\n// =============================================================================\n// RE-EXPORTS\n// =============================================================================\n\nexport type {\n OnboardingState,\n OnboardingResponse,\n OrgSettings,\n OrgSettingsResponse,\n Plan,\n OrganizationBilling,\n UsageSummary,\n CreditBalance,\n PlansResponse,\n SubscriptionResponse,\n CreditsResponse,\n ProvisionAgentsResponse,\n ProvisionEntitiesResponse,\n ProvisionWorkflowsResponse,\n} from \"../models\";\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// models/index.ts
|
|
17
|
+
var models_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(models_exports);
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +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 @repo/lib and @elqnt/types for consistency.\n */\n\nimport type { ResponseMetadata } 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/types\n// =============================================================================\n\nexport type {\n OrgSettings,\n OrgSettingsRequest,\n OrgSettingsResponse,\n} from \"@elqnt/types\";\n\n// =============================================================================\n// BILLING TYPES - Re-export from @repo/lib\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 \"@repo/lib\";\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: import(\"@repo/lib\").Plan[];\n metadata: ResponseMetadata;\n}\n\nexport interface SubscriptionResponse {\n subscription: import(\"@repo/lib\").OrganizationBilling;\n usage?: import(\"@repo/lib\").UsageSummary;\n metadata: ResponseMetadata;\n}\n\nexport interface CreditsResponse {\n balances: import(\"@repo/lib\").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":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as _repo_lib from '@repo/lib';
|
|
2
|
+
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse, OrganizationBilling, Plan, PurchaseCreditsRequest, PurchaseCreditsResponse, UsagePeriod, UsageSummary } from '@repo/lib';
|
|
3
|
+
import { ResponseMetadata } from '@elqnt/types';
|
|
4
|
+
export { OrgSettings, OrgSettingsRequest, OrgSettingsResponse } from '@elqnt/types';
|
|
5
|
+
|
|
6
|
+
interface OnboardingState {
|
|
7
|
+
currentStep: string;
|
|
8
|
+
completedSteps: string[];
|
|
9
|
+
skippedSteps: string[];
|
|
10
|
+
orgId?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
interface OnboardingResponse {
|
|
15
|
+
state: OnboardingState;
|
|
16
|
+
metadata: ResponseMetadata;
|
|
17
|
+
}
|
|
18
|
+
interface CreateOrgResponse {
|
|
19
|
+
org: unknown;
|
|
20
|
+
nextStep: string;
|
|
21
|
+
metadata: ResponseMetadata;
|
|
22
|
+
}
|
|
23
|
+
interface SendInvitesResponse {
|
|
24
|
+
sent: unknown[];
|
|
25
|
+
failed: string[];
|
|
26
|
+
nextStep: string;
|
|
27
|
+
metadata: ResponseMetadata;
|
|
28
|
+
}
|
|
29
|
+
interface CreateKnowledgeResponse {
|
|
30
|
+
graphId: string;
|
|
31
|
+
nextStep: string;
|
|
32
|
+
metadata: ResponseMetadata;
|
|
33
|
+
}
|
|
34
|
+
interface CreateAgentResponse {
|
|
35
|
+
agentId: string;
|
|
36
|
+
nextStep: string;
|
|
37
|
+
metadata: ResponseMetadata;
|
|
38
|
+
}
|
|
39
|
+
interface CompleteOnboardingResponse {
|
|
40
|
+
success: boolean;
|
|
41
|
+
redirectUrl?: string;
|
|
42
|
+
metadata: ResponseMetadata;
|
|
43
|
+
}
|
|
44
|
+
interface PaymentSessionResponse {
|
|
45
|
+
sessionId: string;
|
|
46
|
+
url: string;
|
|
47
|
+
metadata: ResponseMetadata;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface ProvisionAgentsResponse {
|
|
51
|
+
agentsCreated: number;
|
|
52
|
+
subAgentsCreated: number;
|
|
53
|
+
toolsCreated: number;
|
|
54
|
+
skillsCreated: number;
|
|
55
|
+
success: boolean;
|
|
56
|
+
metadata: ResponseMetadata;
|
|
57
|
+
}
|
|
58
|
+
interface ProvisionEntitiesResponse {
|
|
59
|
+
successCount: number;
|
|
60
|
+
errorCount: number;
|
|
61
|
+
errors: string[];
|
|
62
|
+
success: boolean;
|
|
63
|
+
metadata: ResponseMetadata;
|
|
64
|
+
}
|
|
65
|
+
interface ProvisionWorkflowsResponse {
|
|
66
|
+
successCount: number;
|
|
67
|
+
errorCount: number;
|
|
68
|
+
errors: string[];
|
|
69
|
+
success: boolean;
|
|
70
|
+
metadata: ResponseMetadata;
|
|
71
|
+
}
|
|
72
|
+
interface PlansResponse {
|
|
73
|
+
plans: _repo_lib.Plan[];
|
|
74
|
+
metadata: ResponseMetadata;
|
|
75
|
+
}
|
|
76
|
+
interface SubscriptionResponse {
|
|
77
|
+
subscription: _repo_lib.OrganizationBilling;
|
|
78
|
+
usage?: _repo_lib.UsageSummary;
|
|
79
|
+
metadata: ResponseMetadata;
|
|
80
|
+
}
|
|
81
|
+
interface CreditsResponse {
|
|
82
|
+
balances: _repo_lib.CreditBalance[];
|
|
83
|
+
totalRemaining: number;
|
|
84
|
+
metadata: ResponseMetadata;
|
|
85
|
+
}
|
|
86
|
+
interface CreateCheckoutResponse {
|
|
87
|
+
sessionId: string;
|
|
88
|
+
url: string;
|
|
89
|
+
metadata: ResponseMetadata;
|
|
90
|
+
}
|
|
91
|
+
interface PortalSessionResponse {
|
|
92
|
+
url: string;
|
|
93
|
+
metadata: ResponseMetadata;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type { CompleteOnboardingResponse, CreateAgentResponse, CreateCheckoutResponse, CreateKnowledgeResponse, CreateOrgResponse, CreditsResponse, OnboardingResponse, OnboardingState, PaymentSessionResponse, PlansResponse, PortalSessionResponse, ProvisionAgentsResponse, ProvisionEntitiesResponse, ProvisionWorkflowsResponse, SendInvitesResponse, SubscriptionResponse };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as _repo_lib from '@repo/lib';
|
|
2
|
+
export { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreatePortalSessionRequest, CreatePortalSessionResponse, CreditBalance, CreditPackage, GetCreditsRequest, GetCreditsResponse, GetPlansRequest, GetPlansResponse, GetSubscriptionRequest, GetSubscriptionResponse, OrganizationBilling, Plan, PurchaseCreditsRequest, PurchaseCreditsResponse, UsagePeriod, UsageSummary } from '@repo/lib';
|
|
3
|
+
import { ResponseMetadata } from '@elqnt/types';
|
|
4
|
+
export { OrgSettings, OrgSettingsRequest, OrgSettingsResponse } from '@elqnt/types';
|
|
5
|
+
|
|
6
|
+
interface OnboardingState {
|
|
7
|
+
currentStep: string;
|
|
8
|
+
completedSteps: string[];
|
|
9
|
+
skippedSteps: string[];
|
|
10
|
+
orgId?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
interface OnboardingResponse {
|
|
15
|
+
state: OnboardingState;
|
|
16
|
+
metadata: ResponseMetadata;
|
|
17
|
+
}
|
|
18
|
+
interface CreateOrgResponse {
|
|
19
|
+
org: unknown;
|
|
20
|
+
nextStep: string;
|
|
21
|
+
metadata: ResponseMetadata;
|
|
22
|
+
}
|
|
23
|
+
interface SendInvitesResponse {
|
|
24
|
+
sent: unknown[];
|
|
25
|
+
failed: string[];
|
|
26
|
+
nextStep: string;
|
|
27
|
+
metadata: ResponseMetadata;
|
|
28
|
+
}
|
|
29
|
+
interface CreateKnowledgeResponse {
|
|
30
|
+
graphId: string;
|
|
31
|
+
nextStep: string;
|
|
32
|
+
metadata: ResponseMetadata;
|
|
33
|
+
}
|
|
34
|
+
interface CreateAgentResponse {
|
|
35
|
+
agentId: string;
|
|
36
|
+
nextStep: string;
|
|
37
|
+
metadata: ResponseMetadata;
|
|
38
|
+
}
|
|
39
|
+
interface CompleteOnboardingResponse {
|
|
40
|
+
success: boolean;
|
|
41
|
+
redirectUrl?: string;
|
|
42
|
+
metadata: ResponseMetadata;
|
|
43
|
+
}
|
|
44
|
+
interface PaymentSessionResponse {
|
|
45
|
+
sessionId: string;
|
|
46
|
+
url: string;
|
|
47
|
+
metadata: ResponseMetadata;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface ProvisionAgentsResponse {
|
|
51
|
+
agentsCreated: number;
|
|
52
|
+
subAgentsCreated: number;
|
|
53
|
+
toolsCreated: number;
|
|
54
|
+
skillsCreated: number;
|
|
55
|
+
success: boolean;
|
|
56
|
+
metadata: ResponseMetadata;
|
|
57
|
+
}
|
|
58
|
+
interface ProvisionEntitiesResponse {
|
|
59
|
+
successCount: number;
|
|
60
|
+
errorCount: number;
|
|
61
|
+
errors: string[];
|
|
62
|
+
success: boolean;
|
|
63
|
+
metadata: ResponseMetadata;
|
|
64
|
+
}
|
|
65
|
+
interface ProvisionWorkflowsResponse {
|
|
66
|
+
successCount: number;
|
|
67
|
+
errorCount: number;
|
|
68
|
+
errors: string[];
|
|
69
|
+
success: boolean;
|
|
70
|
+
metadata: ResponseMetadata;
|
|
71
|
+
}
|
|
72
|
+
interface PlansResponse {
|
|
73
|
+
plans: _repo_lib.Plan[];
|
|
74
|
+
metadata: ResponseMetadata;
|
|
75
|
+
}
|
|
76
|
+
interface SubscriptionResponse {
|
|
77
|
+
subscription: _repo_lib.OrganizationBilling;
|
|
78
|
+
usage?: _repo_lib.UsageSummary;
|
|
79
|
+
metadata: ResponseMetadata;
|
|
80
|
+
}
|
|
81
|
+
interface CreditsResponse {
|
|
82
|
+
balances: _repo_lib.CreditBalance[];
|
|
83
|
+
totalRemaining: number;
|
|
84
|
+
metadata: ResponseMetadata;
|
|
85
|
+
}
|
|
86
|
+
interface CreateCheckoutResponse {
|
|
87
|
+
sessionId: string;
|
|
88
|
+
url: string;
|
|
89
|
+
metadata: ResponseMetadata;
|
|
90
|
+
}
|
|
91
|
+
interface PortalSessionResponse {
|
|
92
|
+
url: string;
|
|
93
|
+
metadata: ResponseMetadata;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type { CompleteOnboardingResponse, CreateAgentResponse, CreateCheckoutResponse, CreateKnowledgeResponse, CreateOrgResponse, CreditsResponse, OnboardingResponse, OnboardingState, PaymentSessionResponse, PlansResponse, PortalSessionResponse, ProvisionAgentsResponse, ProvisionEntitiesResponse, ProvisionWorkflowsResponse, SendInvitesResponse, SubscriptionResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elqnt/admin",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Admin APIs for Eloquent platform (onboarding, org-settings, billing)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"require": "./dist/index.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./api": {
|
|
13
|
+
"types": "./dist/api/index.d.ts",
|
|
14
|
+
"import": "./dist/api/index.js",
|
|
15
|
+
"require": "./dist/api/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./models": {
|
|
18
|
+
"types": "./dist/models/index.d.ts",
|
|
19
|
+
"import": "./dist/models/index.js",
|
|
20
|
+
"require": "./dist/models/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@elqnt/api-client": "1.0.2",
|
|
28
|
+
"@elqnt/types": "2.0.8",
|
|
29
|
+
"@repo/lib": "0.1.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"tsup": "^8.0.0",
|
|
33
|
+
"typescript": "^5.0.0"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsup",
|
|
40
|
+
"dev": "tsup --watch",
|
|
41
|
+
"lint": "eslint .",
|
|
42
|
+
"typecheck": "tsc --noEmit"
|
|
43
|
+
}
|
|
44
|
+
}
|