@lssm/integration.providers-impls 0.0.0-canary-20251217083314 → 1.41.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/_virtual/rolldown_runtime.js +1 -42
- package/dist/calendar.js +1 -0
- package/dist/email.js +1 -0
- package/dist/embedding.js +1 -0
- package/dist/impls/elevenlabs-voice.js +1 -95
- package/dist/impls/gcs-storage.js +1 -88
- package/dist/impls/gmail-inbound.js +1 -200
- package/dist/impls/gmail-outbound.js +5 -104
- package/dist/impls/google-calendar.js +1 -154
- package/dist/impls/index.js +1 -16
- package/dist/impls/mistral-embedding.js +1 -41
- package/dist/impls/mistral-llm.js +1 -247
- package/dist/impls/postmark-email.js +1 -55
- package/dist/impls/powens-client.js +1 -171
- package/dist/impls/powens-openbanking.js +1 -218
- package/dist/impls/provider-factory.js +1 -142
- package/dist/impls/qdrant-vector.js +1 -69
- package/dist/impls/stripe-payments.js +1 -202
- package/dist/impls/twilio-sms.js +1 -58
- package/dist/index.js +1 -17
- package/dist/llm.js +1 -0
- package/dist/openbanking.js +1 -0
- package/dist/payments.js +1 -0
- package/dist/secrets/provider.js +1 -3
- package/dist/sms.js +1 -0
- package/dist/storage.js +1 -0
- package/dist/vector-store.js +1 -0
- package/dist/voice.js +1 -0
- package/package.json +33 -34
- package/dist/calendar.d.ts +0 -7
- package/dist/email.d.ts +0 -7
- package/dist/embedding.d.ts +0 -7
- package/dist/impls/elevenlabs-voice.d.ts +0 -20
- package/dist/impls/gcs-storage.d.ts +0 -24
- package/dist/impls/gmail-inbound.d.ts +0 -26
- package/dist/impls/gmail-outbound.d.ts +0 -18
- package/dist/impls/google-calendar.d.ts +0 -23
- package/dist/impls/index.d.ts +0 -15
- package/dist/impls/mistral-embedding.d.ts +0 -23
- package/dist/impls/mistral-llm.d.ts +0 -31
- package/dist/impls/postmark-email.d.ts +0 -19
- package/dist/impls/powens-client.d.ts +0 -124
- package/dist/impls/powens-openbanking.d.ts +0 -27
- package/dist/impls/provider-factory.d.ts +0 -26
- package/dist/impls/qdrant-vector.d.ts +0 -24
- package/dist/impls/stripe-payments.d.ts +0 -28
- package/dist/impls/twilio-sms.d.ts +0 -20
- package/dist/index.d.ts +0 -43
- package/dist/llm.d.ts +0 -7
- package/dist/openbanking.d.ts +0 -7
- package/dist/payments.d.ts +0 -7
- package/dist/runtime/dist/secrets/provider.js +0 -58
- package/dist/runtime.d.ts +0 -2
- package/dist/secrets/provider.d.ts +0 -2
- package/dist/sms.d.ts +0 -7
- package/dist/storage.d.ts +0 -7
- package/dist/vector-store.d.ts +0 -7
- package/dist/voice.d.ts +0 -7
|
@@ -1,202 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/impls/stripe-payments.ts
|
|
4
|
-
const API_VERSION = "2025-10-29.clover";
|
|
5
|
-
var StripePaymentsProvider = class {
|
|
6
|
-
stripe;
|
|
7
|
-
constructor(options) {
|
|
8
|
-
this.stripe = options.stripe ?? new Stripe(options.apiKey, { apiVersion: API_VERSION });
|
|
9
|
-
}
|
|
10
|
-
async createCustomer(input) {
|
|
11
|
-
const customer = await this.stripe.customers.create({
|
|
12
|
-
email: input.email,
|
|
13
|
-
name: input.name,
|
|
14
|
-
description: input.description,
|
|
15
|
-
metadata: input.metadata
|
|
16
|
-
});
|
|
17
|
-
return this.toCustomer(customer);
|
|
18
|
-
}
|
|
19
|
-
async getCustomer(customerId) {
|
|
20
|
-
const customer = await this.stripe.customers.retrieve(customerId);
|
|
21
|
-
if (customer.deleted) return null;
|
|
22
|
-
return this.toCustomer(customer);
|
|
23
|
-
}
|
|
24
|
-
async createPaymentIntent(input) {
|
|
25
|
-
const intent = await this.stripe.paymentIntents.create({
|
|
26
|
-
amount: input.amount.amount,
|
|
27
|
-
currency: input.amount.currency,
|
|
28
|
-
customer: input.customerId,
|
|
29
|
-
description: input.description,
|
|
30
|
-
capture_method: input.captureMethod ?? "automatic",
|
|
31
|
-
confirmation_method: input.confirmationMethod ?? "automatic",
|
|
32
|
-
automatic_payment_methods: { enabled: true },
|
|
33
|
-
metadata: input.metadata,
|
|
34
|
-
return_url: input.returnUrl,
|
|
35
|
-
statement_descriptor: input.statementDescriptor
|
|
36
|
-
});
|
|
37
|
-
return this.toPaymentIntent(intent);
|
|
38
|
-
}
|
|
39
|
-
async capturePayment(paymentIntentId, input) {
|
|
40
|
-
const intent = await this.stripe.paymentIntents.capture(paymentIntentId, input?.amount ? { amount_to_capture: input.amount.amount } : void 0);
|
|
41
|
-
return this.toPaymentIntent(intent);
|
|
42
|
-
}
|
|
43
|
-
async cancelPaymentIntent(paymentIntentId) {
|
|
44
|
-
const intent = await this.stripe.paymentIntents.cancel(paymentIntentId);
|
|
45
|
-
return this.toPaymentIntent(intent);
|
|
46
|
-
}
|
|
47
|
-
async refundPayment(input) {
|
|
48
|
-
const refund = await this.stripe.refunds.create({
|
|
49
|
-
payment_intent: input.paymentIntentId,
|
|
50
|
-
amount: input.amount?.amount,
|
|
51
|
-
reason: mapRefundReason(input.reason),
|
|
52
|
-
metadata: input.metadata
|
|
53
|
-
});
|
|
54
|
-
const paymentIntentId = typeof refund.payment_intent === "string" ? refund.payment_intent : refund.payment_intent?.id ?? "";
|
|
55
|
-
return {
|
|
56
|
-
id: refund.id,
|
|
57
|
-
paymentIntentId,
|
|
58
|
-
amount: {
|
|
59
|
-
amount: refund.amount ?? 0,
|
|
60
|
-
currency: refund.currency?.toUpperCase() ?? "USD"
|
|
61
|
-
},
|
|
62
|
-
status: mapRefundStatus(refund.status),
|
|
63
|
-
reason: refund.reason ?? void 0,
|
|
64
|
-
metadata: this.toMetadata(refund.metadata),
|
|
65
|
-
createdAt: refund.created ? /* @__PURE__ */ new Date(refund.created * 1e3) : void 0
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
async listInvoices(query) {
|
|
69
|
-
const requestedStatus = query?.status?.[0];
|
|
70
|
-
const stripeStatus = requestedStatus && requestedStatus !== "deleted" ? requestedStatus : void 0;
|
|
71
|
-
return (await this.stripe.invoices.list({
|
|
72
|
-
customer: query?.customerId,
|
|
73
|
-
status: stripeStatus,
|
|
74
|
-
limit: query?.limit,
|
|
75
|
-
starting_after: query?.startingAfter
|
|
76
|
-
})).data.map((invoice) => this.toInvoice(invoice));
|
|
77
|
-
}
|
|
78
|
-
async listTransactions(query) {
|
|
79
|
-
return (await this.stripe.charges.list({
|
|
80
|
-
customer: query?.customerId,
|
|
81
|
-
payment_intent: query?.paymentIntentId,
|
|
82
|
-
limit: query?.limit,
|
|
83
|
-
starting_after: query?.startingAfter
|
|
84
|
-
})).data.map((charge) => ({
|
|
85
|
-
id: charge.id,
|
|
86
|
-
paymentIntentId: typeof charge.payment_intent === "string" ? charge.payment_intent : charge.payment_intent?.id,
|
|
87
|
-
amount: {
|
|
88
|
-
amount: charge.amount,
|
|
89
|
-
currency: charge.currency?.toUpperCase() ?? "USD"
|
|
90
|
-
},
|
|
91
|
-
type: "capture",
|
|
92
|
-
status: mapChargeStatus(charge.status),
|
|
93
|
-
description: charge.description ?? void 0,
|
|
94
|
-
createdAt: /* @__PURE__ */ new Date(charge.created * 1e3),
|
|
95
|
-
metadata: this.mergeMetadata(this.toMetadata(charge.metadata), { balanceTransaction: typeof charge.balance_transaction === "string" ? charge.balance_transaction : void 0 })
|
|
96
|
-
}));
|
|
97
|
-
}
|
|
98
|
-
toCustomer(customer) {
|
|
99
|
-
const metadata = this.toMetadata(customer.metadata);
|
|
100
|
-
const updatedAtValue = metadata?.updatedAt;
|
|
101
|
-
return {
|
|
102
|
-
id: customer.id,
|
|
103
|
-
email: customer.email ?? void 0,
|
|
104
|
-
name: customer.name ?? void 0,
|
|
105
|
-
metadata,
|
|
106
|
-
createdAt: customer.created ? /* @__PURE__ */ new Date(customer.created * 1e3) : void 0,
|
|
107
|
-
updatedAt: updatedAtValue ? new Date(updatedAtValue) : void 0
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
toPaymentIntent(intent) {
|
|
111
|
-
const metadata = this.toMetadata(intent.metadata);
|
|
112
|
-
return {
|
|
113
|
-
id: intent.id,
|
|
114
|
-
amount: this.toMoney(intent.amount_received ?? intent.amount ?? 0, intent.currency),
|
|
115
|
-
status: mapPaymentIntentStatus(intent.status),
|
|
116
|
-
customerId: typeof intent.customer === "string" ? intent.customer : intent.customer?.id,
|
|
117
|
-
description: intent.description ?? void 0,
|
|
118
|
-
clientSecret: intent.client_secret ?? void 0,
|
|
119
|
-
metadata,
|
|
120
|
-
createdAt: /* @__PURE__ */ new Date(intent.created * 1e3),
|
|
121
|
-
updatedAt: intent.canceled_at != null ? /* @__PURE__ */ new Date(intent.canceled_at * 1e3) : /* @__PURE__ */ new Date(intent.created * 1e3)
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
toInvoice(invoice) {
|
|
125
|
-
const metadata = this.toMetadata(invoice.metadata);
|
|
126
|
-
return {
|
|
127
|
-
id: invoice.id,
|
|
128
|
-
number: invoice.number ?? void 0,
|
|
129
|
-
status: invoice.status ?? "draft",
|
|
130
|
-
amountDue: this.toMoney(invoice.amount_due ?? 0, invoice.currency),
|
|
131
|
-
amountPaid: this.toMoney(invoice.amount_paid ?? 0, invoice.currency),
|
|
132
|
-
customerId: typeof invoice.customer === "string" ? invoice.customer : invoice.customer?.id,
|
|
133
|
-
dueDate: invoice.due_date ? /* @__PURE__ */ new Date(invoice.due_date * 1e3) : void 0,
|
|
134
|
-
hostedInvoiceUrl: invoice.hosted_invoice_url ?? void 0,
|
|
135
|
-
metadata,
|
|
136
|
-
createdAt: invoice.created ? /* @__PURE__ */ new Date(invoice.created * 1e3) : void 0,
|
|
137
|
-
updatedAt: invoice.status_transitions?.finalized_at ? /* @__PURE__ */ new Date(invoice.status_transitions.finalized_at * 1e3) : void 0
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
toMoney(amount, currency) {
|
|
141
|
-
return {
|
|
142
|
-
amount,
|
|
143
|
-
currency: currency?.toUpperCase() ?? "USD"
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
toMetadata(metadata) {
|
|
147
|
-
if (!metadata) return void 0;
|
|
148
|
-
const entries = Object.entries(metadata).filter((entry) => typeof entry[1] === "string");
|
|
149
|
-
if (entries.length === 0) return void 0;
|
|
150
|
-
return Object.fromEntries(entries);
|
|
151
|
-
}
|
|
152
|
-
mergeMetadata(base, extras) {
|
|
153
|
-
const filteredExtras = Object.entries(extras).filter((entry) => typeof entry[1] === "string");
|
|
154
|
-
if (!base && filteredExtras.length === 0) return;
|
|
155
|
-
return {
|
|
156
|
-
...base ?? {},
|
|
157
|
-
...Object.fromEntries(filteredExtras)
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
function mapRefundReason(reason) {
|
|
162
|
-
if (!reason) return void 0;
|
|
163
|
-
return [
|
|
164
|
-
"duplicate",
|
|
165
|
-
"fraudulent",
|
|
166
|
-
"requested_by_customer"
|
|
167
|
-
].includes(reason) ? reason : void 0;
|
|
168
|
-
}
|
|
169
|
-
function mapPaymentIntentStatus(status) {
|
|
170
|
-
switch (status) {
|
|
171
|
-
case "requires_payment_method": return "requires_payment_method";
|
|
172
|
-
case "requires_confirmation": return "requires_confirmation";
|
|
173
|
-
case "requires_action":
|
|
174
|
-
case "requires_capture": return "requires_action";
|
|
175
|
-
case "processing": return "processing";
|
|
176
|
-
case "succeeded": return "succeeded";
|
|
177
|
-
case "canceled": return "canceled";
|
|
178
|
-
default: return "requires_payment_method";
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function mapRefundStatus(status) {
|
|
182
|
-
switch (status) {
|
|
183
|
-
case "pending":
|
|
184
|
-
case "succeeded":
|
|
185
|
-
case "failed":
|
|
186
|
-
case "canceled": return status;
|
|
187
|
-
default: return "pending";
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function mapChargeStatus(status) {
|
|
191
|
-
switch (status) {
|
|
192
|
-
case "pending":
|
|
193
|
-
case "processing": return "pending";
|
|
194
|
-
case "succeeded": return "succeeded";
|
|
195
|
-
case "failed":
|
|
196
|
-
case "canceled": return "failed";
|
|
197
|
-
default: return "pending";
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
//#endregion
|
|
202
|
-
export { StripePaymentsProvider };
|
|
1
|
+
import e from"stripe";var t=class{stripe;constructor(t){this.stripe=t.stripe??new e(t.apiKey,{apiVersion:`2025-10-29.clover`})}async createCustomer(e){let t=await this.stripe.customers.create({email:e.email,name:e.name,description:e.description,metadata:e.metadata});return this.toCustomer(t)}async getCustomer(e){let t=await this.stripe.customers.retrieve(e);return t.deleted?null:this.toCustomer(t)}async createPaymentIntent(e){let t=await this.stripe.paymentIntents.create({amount:e.amount.amount,currency:e.amount.currency,customer:e.customerId,description:e.description,capture_method:e.captureMethod??`automatic`,confirmation_method:e.confirmationMethod??`automatic`,automatic_payment_methods:{enabled:!0},metadata:e.metadata,return_url:e.returnUrl,statement_descriptor:e.statementDescriptor});return this.toPaymentIntent(t)}async capturePayment(e,t){let n=await this.stripe.paymentIntents.capture(e,t?.amount?{amount_to_capture:t.amount.amount}:void 0);return this.toPaymentIntent(n)}async cancelPaymentIntent(e){let t=await this.stripe.paymentIntents.cancel(e);return this.toPaymentIntent(t)}async refundPayment(e){let t=await this.stripe.refunds.create({payment_intent:e.paymentIntentId,amount:e.amount?.amount,reason:n(e.reason),metadata:e.metadata}),r=typeof t.payment_intent==`string`?t.payment_intent:t.payment_intent?.id??``;return{id:t.id,paymentIntentId:r,amount:{amount:t.amount??0,currency:t.currency?.toUpperCase()??`USD`},status:i(t.status),reason:t.reason??void 0,metadata:this.toMetadata(t.metadata),createdAt:t.created?new Date(t.created*1e3):void 0}}async listInvoices(e){let t=e?.status?.[0],n=t&&t!==`deleted`?t:void 0;return(await this.stripe.invoices.list({customer:e?.customerId,status:n,limit:e?.limit,starting_after:e?.startingAfter})).data.map(e=>this.toInvoice(e))}async listTransactions(e){return(await this.stripe.charges.list({customer:e?.customerId,payment_intent:e?.paymentIntentId,limit:e?.limit,starting_after:e?.startingAfter})).data.map(e=>({id:e.id,paymentIntentId:typeof e.payment_intent==`string`?e.payment_intent:e.payment_intent?.id,amount:{amount:e.amount,currency:e.currency?.toUpperCase()??`USD`},type:`capture`,status:a(e.status),description:e.description??void 0,createdAt:new Date(e.created*1e3),metadata:this.mergeMetadata(this.toMetadata(e.metadata),{balanceTransaction:typeof e.balance_transaction==`string`?e.balance_transaction:void 0})}))}toCustomer(e){let t=this.toMetadata(e.metadata),n=t?.updatedAt;return{id:e.id,email:e.email??void 0,name:e.name??void 0,metadata:t,createdAt:e.created?new Date(e.created*1e3):void 0,updatedAt:n?new Date(n):void 0}}toPaymentIntent(e){let t=this.toMetadata(e.metadata);return{id:e.id,amount:this.toMoney(e.amount_received??e.amount??0,e.currency),status:r(e.status),customerId:typeof e.customer==`string`?e.customer:e.customer?.id,description:e.description??void 0,clientSecret:e.client_secret??void 0,metadata:t,createdAt:new Date(e.created*1e3),updatedAt:e.canceled_at==null?new Date(e.created*1e3):new Date(e.canceled_at*1e3)}}toInvoice(e){let t=this.toMetadata(e.metadata);return{id:e.id,number:e.number??void 0,status:e.status??`draft`,amountDue:this.toMoney(e.amount_due??0,e.currency),amountPaid:this.toMoney(e.amount_paid??0,e.currency),customerId:typeof e.customer==`string`?e.customer:e.customer?.id,dueDate:e.due_date?new Date(e.due_date*1e3):void 0,hostedInvoiceUrl:e.hosted_invoice_url??void 0,metadata:t,createdAt:e.created?new Date(e.created*1e3):void 0,updatedAt:e.status_transitions?.finalized_at?new Date(e.status_transitions.finalized_at*1e3):void 0}}toMoney(e,t){return{amount:e,currency:t?.toUpperCase()??`USD`}}toMetadata(e){if(!e)return;let t=Object.entries(e).filter(e=>typeof e[1]==`string`);if(t.length!==0)return Object.fromEntries(t)}mergeMetadata(e,t){let n=Object.entries(t).filter(e=>typeof e[1]==`string`);if(!(!e&&n.length===0))return{...e??{},...Object.fromEntries(n)}}};function n(e){if(e)return[`duplicate`,`fraudulent`,`requested_by_customer`].includes(e)?e:void 0}function r(e){switch(e){case`requires_payment_method`:return`requires_payment_method`;case`requires_confirmation`:return`requires_confirmation`;case`requires_action`:case`requires_capture`:return`requires_action`;case`processing`:return`processing`;case`succeeded`:return`succeeded`;case`canceled`:return`canceled`;default:return`requires_payment_method`}}function i(e){switch(e){case`pending`:case`succeeded`:case`failed`:case`canceled`:return e;default:return`pending`}}function a(e){switch(e){case`pending`:case`processing`:return`pending`;case`succeeded`:return`succeeded`;case`failed`:case`canceled`:return`failed`;default:return`pending`}}export{t as StripePaymentsProvider};
|
package/dist/impls/twilio-sms.js
CHANGED
|
@@ -1,58 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/impls/twilio-sms.ts
|
|
4
|
-
var TwilioSmsProvider = class {
|
|
5
|
-
client;
|
|
6
|
-
fromNumber;
|
|
7
|
-
constructor(options) {
|
|
8
|
-
this.client = options.client ?? Twilio(options.accountSid, options.authToken);
|
|
9
|
-
this.fromNumber = options.fromNumber;
|
|
10
|
-
}
|
|
11
|
-
async sendSms(input) {
|
|
12
|
-
const message = await this.client.messages.create({
|
|
13
|
-
to: input.to,
|
|
14
|
-
from: input.from ?? this.fromNumber,
|
|
15
|
-
body: input.body
|
|
16
|
-
});
|
|
17
|
-
return {
|
|
18
|
-
id: message.sid,
|
|
19
|
-
to: message.to ?? input.to,
|
|
20
|
-
from: message.from ?? input.from ?? this.fromNumber ?? "",
|
|
21
|
-
body: message.body ?? input.body,
|
|
22
|
-
status: mapStatus(message.status),
|
|
23
|
-
sentAt: message.dateCreated ? new Date(message.dateCreated) : void 0,
|
|
24
|
-
deliveredAt: message.status === "delivered" && message.dateUpdated ? new Date(message.dateUpdated) : void 0,
|
|
25
|
-
price: message.price ? Number(message.price) : void 0,
|
|
26
|
-
priceCurrency: message.priceUnit ?? void 0,
|
|
27
|
-
errorCode: message.errorCode ? String(message.errorCode) : void 0,
|
|
28
|
-
errorMessage: message.errorMessage ?? void 0
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
async getDeliveryStatus(messageId) {
|
|
32
|
-
const message = await this.client.messages(messageId).fetch();
|
|
33
|
-
return {
|
|
34
|
-
status: mapStatus(message.status),
|
|
35
|
-
errorCode: message.errorCode ? String(message.errorCode) : void 0,
|
|
36
|
-
errorMessage: message.errorMessage ?? void 0,
|
|
37
|
-
updatedAt: message.dateUpdated ? new Date(message.dateUpdated) : /* @__PURE__ */ new Date()
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
function mapStatus(status) {
|
|
42
|
-
switch (status) {
|
|
43
|
-
case "queued":
|
|
44
|
-
case "accepted":
|
|
45
|
-
case "scheduled": return "queued";
|
|
46
|
-
case "sending":
|
|
47
|
-
case "processing": return "sending";
|
|
48
|
-
case "sent": return "sent";
|
|
49
|
-
case "delivered": return "delivered";
|
|
50
|
-
case "undelivered": return "undelivered";
|
|
51
|
-
case "failed":
|
|
52
|
-
case "canceled": return "failed";
|
|
53
|
-
default: return "queued";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
export { TwilioSmsProvider };
|
|
1
|
+
import e from"twilio";var t=class{client;fromNumber;constructor(t){this.client=t.client??e(t.accountSid,t.authToken),this.fromNumber=t.fromNumber}async sendSms(e){let t=await this.client.messages.create({to:e.to,from:e.from??this.fromNumber,body:e.body});return{id:t.sid,to:t.to??e.to,from:t.from??e.from??this.fromNumber??``,body:t.body??e.body,status:n(t.status),sentAt:t.dateCreated?new Date(t.dateCreated):void 0,deliveredAt:t.status===`delivered`&&t.dateUpdated?new Date(t.dateUpdated):void 0,price:t.price?Number(t.price):void 0,priceCurrency:t.priceUnit??void 0,errorCode:t.errorCode?String(t.errorCode):void 0,errorMessage:t.errorMessage??void 0}}async getDeliveryStatus(e){let t=await this.client.messages(e).fetch();return{status:n(t.status),errorCode:t.errorCode?String(t.errorCode):void 0,errorMessage:t.errorMessage??void 0,updatedAt:t.dateUpdated?new Date(t.dateUpdated):new Date}}};function n(e){switch(e){case`queued`:case`accepted`:case`scheduled`:return`queued`;case`sending`:case`processing`:return`sending`;case`sent`:return`sent`;case`delivered`:return`delivered`;case`undelivered`:return`undelivered`;case`failed`:case`canceled`:return`failed`;default:return`queued`}}export{t as TwilioSmsProvider};
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MistralEmbeddingProvider } from "./impls/mistral-embedding.js";
|
|
3
|
-
import { QdrantVectorProvider } from "./impls/qdrant-vector.js";
|
|
4
|
-
import { GoogleCloudStorageProvider } from "./impls/gcs-storage.js";
|
|
5
|
-
import { StripePaymentsProvider } from "./impls/stripe-payments.js";
|
|
6
|
-
import { PostmarkEmailProvider } from "./impls/postmark-email.js";
|
|
7
|
-
import { TwilioSmsProvider } from "./impls/twilio-sms.js";
|
|
8
|
-
import { ElevenLabsVoiceProvider } from "./impls/elevenlabs-voice.js";
|
|
9
|
-
import { PowensClient, PowensClientError } from "./impls/powens-client.js";
|
|
10
|
-
import { PowensOpenBankingProvider } from "./impls/powens-openbanking.js";
|
|
11
|
-
import { IntegrationProviderFactory } from "./impls/provider-factory.js";
|
|
12
|
-
import { GmailInboundProvider } from "./impls/gmail-inbound.js";
|
|
13
|
-
import { GmailOutboundProvider } from "./impls/gmail-outbound.js";
|
|
14
|
-
import { GoogleCalendarProvider } from "./impls/google-calendar.js";
|
|
15
|
-
import "./impls/index.js";
|
|
16
|
-
|
|
17
|
-
export { ElevenLabsVoiceProvider, GmailInboundProvider, GmailOutboundProvider, GoogleCalendarProvider, GoogleCloudStorageProvider, IntegrationProviderFactory, MistralEmbeddingProvider, MistralLLMProvider, PostmarkEmailProvider, PowensClient, PowensClientError, PowensOpenBankingProvider, QdrantVectorProvider, StripePaymentsProvider, TwilioSmsProvider };
|
|
1
|
+
import{__export as e,__reExport as t}from"./_virtual/rolldown_runtime.js";import"./calendar.js";import"./email.js";import"./embedding.js";import{MistralLLMProvider as n}from"./impls/mistral-llm.js";import{MistralEmbeddingProvider as r}from"./impls/mistral-embedding.js";import{QdrantVectorProvider as i}from"./impls/qdrant-vector.js";import{GoogleCloudStorageProvider as a}from"./impls/gcs-storage.js";import{StripePaymentsProvider as o}from"./impls/stripe-payments.js";import{PostmarkEmailProvider as s}from"./impls/postmark-email.js";import{TwilioSmsProvider as c}from"./impls/twilio-sms.js";import{ElevenLabsVoiceProvider as l}from"./impls/elevenlabs-voice.js";import{PowensClient as u,PowensClientError as d}from"./impls/powens-client.js";import{PowensOpenBankingProvider as f}from"./impls/powens-openbanking.js";import{IntegrationProviderFactory as p}from"./impls/provider-factory.js";import{GmailInboundProvider as m}from"./impls/gmail-inbound.js";import{GmailOutboundProvider as h}from"./impls/gmail-outbound.js";import{GoogleCalendarProvider as g}from"./impls/google-calendar.js";import"./impls/index.js";import"./openbanking.js";import"./llm.js";import"./vector-store.js";import"./storage.js";import"./sms.js";import"./payments.js";import"./voice.js";export*from"@lssm/lib.contracts/integrations/providers/calendar";export*from"@lssm/lib.contracts/integrations/providers/email";export*from"@lssm/lib.contracts/integrations/providers/embedding";export*from"@lssm/lib.contracts/integrations/providers/openbanking";export*from"@lssm/lib.contracts/integrations/providers/llm";export*from"@lssm/lib.contracts/integrations/providers/vector-store";export*from"@lssm/lib.contracts/integrations/providers/storage";export*from"@lssm/lib.contracts/integrations/providers/sms";export*from"@lssm/lib.contracts/integrations/providers/payments";export*from"@lssm/lib.contracts/integrations/providers/voice";export{l as ElevenLabsVoiceProvider,m as GmailInboundProvider,h as GmailOutboundProvider,g as GoogleCalendarProvider,a as GoogleCloudStorageProvider,p as IntegrationProviderFactory,r as MistralEmbeddingProvider,n as MistralLLMProvider,s as PostmarkEmailProvider,u as PowensClient,d as PowensClientError,f as PowensOpenBankingProvider,i as QdrantVectorProvider,o as StripePaymentsProvider,c as TwilioSmsProvider};
|
package/dist/llm.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__reExport as e}from"./_virtual/rolldown_runtime.js";export*from"@lssm/lib.contracts/integrations/providers/llm";
|
package/dist/openbanking.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__reExport as e}from"./_virtual/rolldown_runtime.js";export*from"@lssm/lib.contracts/integrations/providers/openbanking";
|
package/dist/payments.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__reExport as e}from"./_virtual/rolldown_runtime.js";export*from"@lssm/lib.contracts/integrations/providers/payments";
|
package/dist/secrets/provider.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { SecretProviderError, normalizeSecretPayload, parseSecretUri };
|
|
1
|
+
import{SecretProviderError as e,normalizeSecretPayload as t,parseSecretUri as n}from"@lssm/integration.runtime/secrets/provider";export{e as SecretProviderError,t as normalizeSecretPayload,n as parseSecretUri};
|
package/dist/sms.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__reExport as e}from"./_virtual/rolldown_runtime.js";export*from"@lssm/lib.contracts/integrations/providers/sms";
|
package/dist/storage.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__reExport as e}from"./_virtual/rolldown_runtime.js";export*from"@lssm/lib.contracts/integrations/providers/storage";
|
package/dist/vector-store.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__reExport as e}from"./_virtual/rolldown_runtime.js";export*from"@lssm/lib.contracts/integrations/providers/vector-store";
|
package/dist/voice.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__reExport as e}from"./_virtual/rolldown_runtime.js";export*from"@lssm/lib.contracts/integrations/providers/voice";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/integration.providers-impls",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
14
|
-
"publish:pkg:canary": "bun publish:pkg --tag canary",
|
|
15
14
|
"build": "bun build:bundle && bun build:types",
|
|
16
15
|
"build:bundle": "tsdown",
|
|
17
16
|
"build:types": "tsc --noEmit",
|
|
@@ -23,8 +22,8 @@
|
|
|
23
22
|
"test": "bun test"
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {
|
|
26
|
-
"@lssm/lib.contracts": "
|
|
27
|
-
"@lssm/integration.runtime": "
|
|
25
|
+
"@lssm/lib.contracts": "workspace:*",
|
|
26
|
+
"@lssm/integration.runtime": "workspace:*",
|
|
28
27
|
"@elevenlabs/elevenlabs-js": "^2.27.0",
|
|
29
28
|
"@google-cloud/storage": "^7.18.0",
|
|
30
29
|
"@mistralai/mistralai": "^1.2.3",
|
|
@@ -36,40 +35,40 @@
|
|
|
36
35
|
"zod": "^4.1.13"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@lssm/tool.tsdown": "
|
|
40
|
-
"@lssm/tool.typescript": "
|
|
38
|
+
"@lssm/tool.tsdown": "workspace:*",
|
|
39
|
+
"@lssm/tool.typescript": "workspace:*",
|
|
41
40
|
"tsdown": "^0.17.4",
|
|
42
41
|
"typescript": "^5.9.3"
|
|
43
42
|
},
|
|
44
43
|
"exports": {
|
|
45
|
-
".": "./
|
|
46
|
-
"./calendar": "./
|
|
47
|
-
"./email": "./
|
|
48
|
-
"./embedding": "./
|
|
49
|
-
"./impls": "./
|
|
50
|
-
"./impls/elevenlabs-voice": "./
|
|
51
|
-
"./impls/gcs-storage": "./
|
|
52
|
-
"./impls/gmail-inbound": "./
|
|
53
|
-
"./impls/gmail-outbound": "./
|
|
54
|
-
"./impls/google-calendar": "./
|
|
55
|
-
"./impls/mistral-embedding": "./
|
|
56
|
-
"./impls/mistral-llm": "./
|
|
57
|
-
"./impls/postmark-email": "./
|
|
58
|
-
"./impls/powens-client": "./
|
|
59
|
-
"./impls/powens-openbanking": "./
|
|
60
|
-
"./impls/provider-factory": "./
|
|
61
|
-
"./impls/qdrant-vector": "./
|
|
62
|
-
"./impls/stripe-payments": "./
|
|
63
|
-
"./impls/twilio-sms": "./
|
|
64
|
-
"./llm": "./
|
|
65
|
-
"./openbanking": "./
|
|
66
|
-
"./payments": "./
|
|
67
|
-
"./runtime": "./
|
|
68
|
-
"./secrets/provider": "./
|
|
69
|
-
"./sms": "./
|
|
70
|
-
"./storage": "./
|
|
71
|
-
"./vector-store": "./
|
|
72
|
-
"./voice": "./
|
|
44
|
+
".": "./src/index.ts",
|
|
45
|
+
"./calendar": "./src/calendar.ts",
|
|
46
|
+
"./email": "./src/email.ts",
|
|
47
|
+
"./embedding": "./src/embedding.ts",
|
|
48
|
+
"./impls": "./src/impls/index.ts",
|
|
49
|
+
"./impls/elevenlabs-voice": "./src/impls/elevenlabs-voice.ts",
|
|
50
|
+
"./impls/gcs-storage": "./src/impls/gcs-storage.ts",
|
|
51
|
+
"./impls/gmail-inbound": "./src/impls/gmail-inbound.ts",
|
|
52
|
+
"./impls/gmail-outbound": "./src/impls/gmail-outbound.ts",
|
|
53
|
+
"./impls/google-calendar": "./src/impls/google-calendar.ts",
|
|
54
|
+
"./impls/mistral-embedding": "./src/impls/mistral-embedding.ts",
|
|
55
|
+
"./impls/mistral-llm": "./src/impls/mistral-llm.ts",
|
|
56
|
+
"./impls/postmark-email": "./src/impls/postmark-email.ts",
|
|
57
|
+
"./impls/powens-client": "./src/impls/powens-client.ts",
|
|
58
|
+
"./impls/powens-openbanking": "./src/impls/powens-openbanking.ts",
|
|
59
|
+
"./impls/provider-factory": "./src/impls/provider-factory.ts",
|
|
60
|
+
"./impls/qdrant-vector": "./src/impls/qdrant-vector.ts",
|
|
61
|
+
"./impls/stripe-payments": "./src/impls/stripe-payments.ts",
|
|
62
|
+
"./impls/twilio-sms": "./src/impls/twilio-sms.ts",
|
|
63
|
+
"./llm": "./src/llm.ts",
|
|
64
|
+
"./openbanking": "./src/openbanking.ts",
|
|
65
|
+
"./payments": "./src/payments.ts",
|
|
66
|
+
"./runtime": "./src/runtime.ts",
|
|
67
|
+
"./secrets/provider": "./src/secrets/provider.ts",
|
|
68
|
+
"./sms": "./src/sms.ts",
|
|
69
|
+
"./storage": "./src/storage.ts",
|
|
70
|
+
"./vector-store": "./src/vector-store.ts",
|
|
71
|
+
"./voice": "./src/voice.ts",
|
|
73
72
|
"./*": "./*"
|
|
74
73
|
},
|
|
75
74
|
"publishConfig": {
|
package/dist/calendar.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "@lssm/lib.contracts/integrations/providers/calendar";
|
|
2
|
-
|
|
3
|
-
//#region src/calendar.d.ts
|
|
4
|
-
|
|
5
|
-
import * as import___lssm_lib_contracts_integrations_providers_calendar from "@lssm/lib.contracts/integrations/providers/calendar";
|
|
6
|
-
//#endregion
|
|
7
|
-
export { import___lssm_lib_contracts_integrations_providers_calendar as calendar_d_exports };
|
package/dist/email.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "@lssm/lib.contracts/integrations/providers/email";
|
|
2
|
-
|
|
3
|
-
//#region src/email.d.ts
|
|
4
|
-
|
|
5
|
-
import * as import___lssm_lib_contracts_integrations_providers_email from "@lssm/lib.contracts/integrations/providers/email";
|
|
6
|
-
//#endregion
|
|
7
|
-
export { import___lssm_lib_contracts_integrations_providers_email as email_d_exports };
|
package/dist/embedding.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "@lssm/lib.contracts/integrations/providers/embedding";
|
|
2
|
-
|
|
3
|
-
//#region src/embedding.d.ts
|
|
4
|
-
|
|
5
|
-
import * as import___lssm_lib_contracts_integrations_providers_embedding from "@lssm/lib.contracts/integrations/providers/embedding";
|
|
6
|
-
//#endregion
|
|
7
|
-
export { import___lssm_lib_contracts_integrations_providers_embedding as embedding_d_exports };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { voice_d_exports } from "../voice.js";
|
|
2
|
-
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
|
|
3
|
-
|
|
4
|
-
//#region src/impls/elevenlabs-voice.d.ts
|
|
5
|
-
interface ElevenLabsVoiceProviderOptions {
|
|
6
|
-
apiKey: string;
|
|
7
|
-
defaultVoiceId?: string;
|
|
8
|
-
modelId?: string;
|
|
9
|
-
client?: ElevenLabsClient;
|
|
10
|
-
}
|
|
11
|
-
declare class ElevenLabsVoiceProvider implements voice_d_exports.VoiceProvider {
|
|
12
|
-
private readonly client;
|
|
13
|
-
private readonly defaultVoiceId?;
|
|
14
|
-
private readonly modelId?;
|
|
15
|
-
constructor(options: ElevenLabsVoiceProviderOptions);
|
|
16
|
-
listVoices(): Promise<voice_d_exports.Voice[]>;
|
|
17
|
-
synthesize(input: voice_d_exports.VoiceSynthesisInput): Promise<voice_d_exports.VoiceSynthesisResult>;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ElevenLabsVoiceProvider, ElevenLabsVoiceProviderOptions };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { storage_d_exports } from "../storage.js";
|
|
2
|
-
import { Storage, StorageOptions } from "@google-cloud/storage";
|
|
3
|
-
|
|
4
|
-
//#region src/impls/gcs-storage.d.ts
|
|
5
|
-
interface GoogleCloudStorageProviderOptions {
|
|
6
|
-
bucket: string;
|
|
7
|
-
storage?: Storage;
|
|
8
|
-
clientOptions?: StorageOptions;
|
|
9
|
-
}
|
|
10
|
-
declare class GoogleCloudStorageProvider implements storage_d_exports.ObjectStorageProvider {
|
|
11
|
-
private readonly storage;
|
|
12
|
-
private readonly bucketName;
|
|
13
|
-
constructor(options: GoogleCloudStorageProviderOptions);
|
|
14
|
-
putObject(input: storage_d_exports.PutObjectInput): Promise<storage_d_exports.StorageObjectMetadata>;
|
|
15
|
-
getObject(input: storage_d_exports.DeleteObjectInput): Promise<storage_d_exports.GetObjectResult | null>;
|
|
16
|
-
deleteObject(input: storage_d_exports.DeleteObjectInput): Promise<void>;
|
|
17
|
-
generateSignedUrl(options: storage_d_exports.SignedUrlOptions): Promise<{
|
|
18
|
-
url: string;
|
|
19
|
-
expiresAt: Date;
|
|
20
|
-
}>;
|
|
21
|
-
listObjects(query: storage_d_exports.ListObjectsQuery): Promise<storage_d_exports.ListObjectsResult>;
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { GoogleCloudStorageProvider, GoogleCloudStorageProviderOptions };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { email_d_exports } from "../email.js";
|
|
2
|
-
import { gmail_v1 } from "googleapis";
|
|
3
|
-
|
|
4
|
-
//#region src/impls/gmail-inbound.d.ts
|
|
5
|
-
interface GmailInboundProviderOptions {
|
|
6
|
-
auth: gmail_v1.Options['auth'];
|
|
7
|
-
userId?: string;
|
|
8
|
-
gmail?: gmail_v1.Gmail;
|
|
9
|
-
includeSpamTrash?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare class GmailInboundProvider implements email_d_exports.EmailInboundProvider {
|
|
12
|
-
private readonly gmail;
|
|
13
|
-
private readonly userId;
|
|
14
|
-
private readonly includeSpamTrash;
|
|
15
|
-
private readonly auth;
|
|
16
|
-
constructor(options: GmailInboundProviderOptions);
|
|
17
|
-
listThreads(query?: email_d_exports.EmailThreadListQuery): Promise<email_d_exports.EmailThread[]>;
|
|
18
|
-
getThread(threadId: string): Promise<email_d_exports.EmailThread | null>;
|
|
19
|
-
listMessagesSince(query: email_d_exports.EmailMessagesSinceQuery): Promise<{
|
|
20
|
-
messages: email_d_exports.EmailMessage[];
|
|
21
|
-
nextPageToken: string | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
private transformMessage;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { GmailInboundProvider, GmailInboundProviderOptions };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { email_d_exports } from "../email.js";
|
|
2
|
-
import { gmail_v1 } from "googleapis";
|
|
3
|
-
|
|
4
|
-
//#region src/impls/gmail-outbound.d.ts
|
|
5
|
-
interface GmailOutboundProviderOptions {
|
|
6
|
-
auth: gmail_v1.Options['auth'];
|
|
7
|
-
userId?: string;
|
|
8
|
-
gmail?: gmail_v1.Gmail;
|
|
9
|
-
}
|
|
10
|
-
declare class GmailOutboundProvider implements email_d_exports.EmailOutboundProvider {
|
|
11
|
-
private readonly gmail;
|
|
12
|
-
private readonly userId;
|
|
13
|
-
private readonly auth;
|
|
14
|
-
constructor(options: GmailOutboundProviderOptions);
|
|
15
|
-
sendEmail(message: email_d_exports.EmailOutboundMessage): Promise<email_d_exports.EmailOutboundResult>;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { GmailOutboundProvider, GmailOutboundProviderOptions };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { calendar_d_exports } from "../calendar.js";
|
|
2
|
-
import { calendar_v3 } from "googleapis";
|
|
3
|
-
|
|
4
|
-
//#region src/impls/google-calendar.d.ts
|
|
5
|
-
interface GoogleCalendarProviderOptions {
|
|
6
|
-
auth: calendar_v3.Options['auth'];
|
|
7
|
-
calendar?: calendar_v3.Calendar;
|
|
8
|
-
calendarId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare class GoogleCalendarProvider implements calendar_d_exports.CalendarProvider {
|
|
11
|
-
private readonly calendar;
|
|
12
|
-
private readonly defaultCalendarId;
|
|
13
|
-
private readonly auth;
|
|
14
|
-
constructor(options: GoogleCalendarProviderOptions);
|
|
15
|
-
listEvents(query: calendar_d_exports.CalendarListEventsQuery): Promise<calendar_d_exports.CalendarListEventsResult>;
|
|
16
|
-
createEvent(input: calendar_d_exports.CalendarEventInput): Promise<calendar_d_exports.CalendarEvent>;
|
|
17
|
-
updateEvent(calendarId: string, eventId: string, input: calendar_d_exports.CalendarEventUpdateInput): Promise<calendar_d_exports.CalendarEvent>;
|
|
18
|
-
deleteEvent(calendarId: string, eventId: string): Promise<void>;
|
|
19
|
-
private fromGoogleEvent;
|
|
20
|
-
private toGoogleEvent;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { GoogleCalendarProvider, GoogleCalendarProviderOptions };
|
package/dist/impls/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ElevenLabsVoiceProvider, ElevenLabsVoiceProviderOptions } from "./elevenlabs-voice.js";
|
|
2
|
-
import { GoogleCloudStorageProvider, GoogleCloudStorageProviderOptions } from "./gcs-storage.js";
|
|
3
|
-
import { GmailInboundProvider, GmailInboundProviderOptions } from "./gmail-inbound.js";
|
|
4
|
-
import { GmailOutboundProvider, GmailOutboundProviderOptions } from "./gmail-outbound.js";
|
|
5
|
-
import { GoogleCalendarProvider, GoogleCalendarProviderOptions } from "./google-calendar.js";
|
|
6
|
-
import { IntegrationProviderFactory } from "./provider-factory.js";
|
|
7
|
-
import { MistralLLMProvider, MistralLLMProviderOptions } from "./mistral-llm.js";
|
|
8
|
-
import { MistralEmbeddingProvider, MistralEmbeddingProviderOptions } from "./mistral-embedding.js";
|
|
9
|
-
import { QdrantVectorProvider, QdrantVectorProviderOptions } from "./qdrant-vector.js";
|
|
10
|
-
import { StripePaymentsProvider, StripePaymentsProviderOptions } from "./stripe-payments.js";
|
|
11
|
-
import { PostmarkEmailProvider, PostmarkEmailProviderOptions } from "./postmark-email.js";
|
|
12
|
-
import { TwilioSmsProvider, TwilioSmsProviderOptions } from "./twilio-sms.js";
|
|
13
|
-
import { PowensAccount, PowensAccountListResponse, PowensBalance, PowensClient, PowensClientError, PowensClientOptions, PowensConnectionStatusResponse, PowensEnvironment, PowensTransaction, PowensTransactionListResponse } from "./powens-client.js";
|
|
14
|
-
import { PowensOpenBankingProvider, PowensOpenBankingProviderOptions } from "./powens-openbanking.js";
|
|
15
|
-
export { ElevenLabsVoiceProvider, ElevenLabsVoiceProviderOptions, GmailInboundProvider, GmailInboundProviderOptions, GmailOutboundProvider, GmailOutboundProviderOptions, GoogleCalendarProvider, GoogleCalendarProviderOptions, GoogleCloudStorageProvider, GoogleCloudStorageProviderOptions, IntegrationProviderFactory, MistralEmbeddingProvider, MistralEmbeddingProviderOptions, MistralLLMProvider, MistralLLMProviderOptions, PostmarkEmailProvider, PostmarkEmailProviderOptions, PowensAccount, PowensAccountListResponse, PowensBalance, PowensClient, PowensClientError, PowensClientOptions, PowensConnectionStatusResponse, PowensEnvironment, PowensOpenBankingProvider, PowensOpenBankingProviderOptions, PowensTransaction, PowensTransactionListResponse, QdrantVectorProvider, QdrantVectorProviderOptions, StripePaymentsProvider, StripePaymentsProviderOptions, TwilioSmsProvider, TwilioSmsProviderOptions };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { embedding_d_exports } from "../embedding.js";
|
|
2
|
-
import { Mistral } from "@mistralai/mistralai";
|
|
3
|
-
|
|
4
|
-
//#region src/impls/mistral-embedding.d.ts
|
|
5
|
-
interface MistralEmbeddingProviderOptions {
|
|
6
|
-
apiKey: string;
|
|
7
|
-
defaultModel?: string;
|
|
8
|
-
serverURL?: string;
|
|
9
|
-
client?: Mistral;
|
|
10
|
-
}
|
|
11
|
-
declare class MistralEmbeddingProvider implements embedding_d_exports.EmbeddingProvider {
|
|
12
|
-
private readonly client;
|
|
13
|
-
private readonly defaultModel;
|
|
14
|
-
constructor(options: MistralEmbeddingProviderOptions);
|
|
15
|
-
embedDocuments(documents: embedding_d_exports.EmbeddingDocument[], options?: {
|
|
16
|
-
model?: string;
|
|
17
|
-
}): Promise<embedding_d_exports.EmbeddingResult[]>;
|
|
18
|
-
embedQuery(query: string, options?: {
|
|
19
|
-
model?: string;
|
|
20
|
-
}): Promise<embedding_d_exports.EmbeddingResult>;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { MistralEmbeddingProvider, MistralEmbeddingProviderOptions };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { llm_d_exports } from "../llm.js";
|
|
2
|
-
import { Mistral } from "@mistralai/mistralai";
|
|
3
|
-
|
|
4
|
-
//#region src/impls/mistral-llm.d.ts
|
|
5
|
-
interface MistralLLMProviderOptions {
|
|
6
|
-
apiKey: string;
|
|
7
|
-
defaultModel?: string;
|
|
8
|
-
serverURL?: string;
|
|
9
|
-
client?: Mistral;
|
|
10
|
-
userAgentSuffix?: string;
|
|
11
|
-
}
|
|
12
|
-
declare class MistralLLMProvider implements llm_d_exports.LLMProvider {
|
|
13
|
-
private readonly client;
|
|
14
|
-
private readonly defaultModel;
|
|
15
|
-
constructor(options: MistralLLMProviderOptions);
|
|
16
|
-
chat(messages: llm_d_exports.LLMMessage[], options?: llm_d_exports.LLMChatOptions): Promise<llm_d_exports.LLMResponse>;
|
|
17
|
-
stream(messages: llm_d_exports.LLMMessage[], options?: llm_d_exports.LLMChatOptions): AsyncIterable<llm_d_exports.LLMStreamChunk>;
|
|
18
|
-
countTokens(messages: llm_d_exports.LLMMessage[]): Promise<{
|
|
19
|
-
promptTokens: number;
|
|
20
|
-
}>;
|
|
21
|
-
private buildChatRequest;
|
|
22
|
-
private buildLLMResponse;
|
|
23
|
-
private fromUsage;
|
|
24
|
-
private fromAssistantMessage;
|
|
25
|
-
private fromMistralToolCall;
|
|
26
|
-
private toMistralMessage;
|
|
27
|
-
private extractText;
|
|
28
|
-
private extractToolCalls;
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { MistralLLMProvider, MistralLLMProviderOptions };
|