@lightspeed-ai/agent-client 0.1.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.
Files changed (47) hide show
  1. package/README.md +63 -0
  2. package/dist/client.d.ts +65 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +194 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/errors.d.ts +20 -0
  7. package/dist/errors.d.ts.map +1 -0
  8. package/dist/errors.js +47 -0
  9. package/dist/errors.js.map +1 -0
  10. package/dist/generated/methods.d.ts +2497 -0
  11. package/dist/generated/methods.d.ts.map +1 -0
  12. package/dist/generated/methods.js +1751 -0
  13. package/dist/generated/methods.js.map +1 -0
  14. package/dist/generated/types.d.ts +6950 -0
  15. package/dist/generated/types.d.ts.map +1 -0
  16. package/dist/generated/types.js +6 -0
  17. package/dist/generated/types.js.map +1 -0
  18. package/dist/generated/workflow-manifest.d.ts +219 -0
  19. package/dist/generated/workflow-manifest.d.ts.map +1 -0
  20. package/dist/generated/workflow-manifest.js +251 -0
  21. package/dist/generated/workflow-manifest.js.map +1 -0
  22. package/dist/generated/workflow-types.d.ts +451 -0
  23. package/dist/generated/workflow-types.d.ts.map +1 -0
  24. package/dist/generated/workflow-types.js +6 -0
  25. package/dist/generated/workflow-types.js.map +1 -0
  26. package/dist/index.d.ts +8 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +4 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/workflow.d.ts +217 -0
  31. package/dist/workflow.d.ts.map +1 -0
  32. package/dist/workflow.js +338 -0
  33. package/dist/workflow.js.map +1 -0
  34. package/examples/temporal-activity.ts +33 -0
  35. package/package.json +55 -0
  36. package/release.json +4 -0
  37. package/schema/api.schema.json +16643 -0
  38. package/schema/workflow.json +246 -0
  39. package/schema/workflow.schema.json +880 -0
  40. package/src/client.ts +318 -0
  41. package/src/errors.ts +64 -0
  42. package/src/generated/methods.ts +2888 -0
  43. package/src/generated/types.ts +7189 -0
  44. package/src/generated/workflow-manifest.ts +251 -0
  45. package/src/generated/workflow-types.ts +468 -0
  46. package/src/index.ts +31 -0
  47. package/src/workflow.ts +468 -0
@@ -0,0 +1,451 @@
1
+ /**
2
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
3
+ * via the `definition` "BotId".
4
+ */
5
+ export type BotId = string;
6
+ /**
7
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
8
+ * via the `definition` "BotTriggerId".
9
+ */
10
+ export type BotTriggerId = string;
11
+ /**
12
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
13
+ * via the `definition` "ChannelAccountId".
14
+ */
15
+ export type ChannelAccountId = string;
16
+ /**
17
+ * What a connector executes: provider message ids and their direction.
18
+ *
19
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
20
+ * via the `definition` "ChannelDeliveryOperation".
21
+ */
22
+ export type ChannelDeliveryOperation = {
23
+ replyContext?: ReplyContext | null;
24
+ replyTo?: string | null;
25
+ text: string;
26
+ type: "send";
27
+ } | {
28
+ messageId: string;
29
+ text: string;
30
+ type: "edit";
31
+ } | {
32
+ emoji: string;
33
+ /**
34
+ * Whether the reacted-to message is the bot's own.
35
+ */
36
+ fromMe: boolean;
37
+ messageId: string;
38
+ type: "react";
39
+ };
40
+ /**
41
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
42
+ * via the `definition` "ChannelProvider".
43
+ */
44
+ export type ChannelProvider = string;
45
+ /**
46
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
47
+ * via the `definition` "ChannelMediaKind".
48
+ */
49
+ export type ChannelMediaKind = "image" | "audio" | "document";
50
+ /**
51
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
52
+ * via the `definition` "ChatTurnAccess".
53
+ */
54
+ export type ChatTurnAccess = "anyone" | "listed";
55
+ /**
56
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
57
+ * via the `definition` "ChatGroupActivation".
58
+ */
59
+ export type ChatGroupActivation = "mention" | "always";
60
+ /**
61
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
62
+ * via the `definition` "ChatScope".
63
+ */
64
+ export type ChatScope = "direct" | "group";
65
+ /**
66
+ * Closed internal vocabulary carried by the shared delivery signal.
67
+ *
68
+ * Workflow-tool invocation bodies join this enum when the durable tool
69
+ * contracts land. This first slice folds the two existing transports.
70
+ *
71
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
72
+ * via the `definition` "EmissionBody".
73
+ */
74
+ export type EmissionBody = {
75
+ failure_message_ref?: string | null;
76
+ kind: "run_terminal";
77
+ output_ref?: string | null;
78
+ run_id: number;
79
+ status: RunStatus;
80
+ token: string;
81
+ } | {
82
+ kind: "source_resolution";
83
+ promise_id: PromiseId;
84
+ resolution: PromiseResolution;
85
+ } | {
86
+ /**
87
+ * Workflow id of the session that emitted the invocation — the
88
+ * endpoint a receiver signals its reply to. Supplied by the
89
+ * substrate adapter; the engine treats it as opaque.
90
+ */
91
+ holder_workflow_id: string;
92
+ invocation: WorkflowToolInvocation;
93
+ kind: "tool_invocation";
94
+ } | {
95
+ completion_key: string;
96
+ invocation_id: WorkflowToolInvocationId;
97
+ kind: "invocation_cancellation";
98
+ promise_id: PromiseId;
99
+ };
100
+ /**
101
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
102
+ * via the `definition` "RunStatus".
103
+ */
104
+ export type RunStatus = "active" | "parked" | "cancelling" | "completed" | "failed" | "cancelled";
105
+ /**
106
+ * Stable identifier for a promise: a session-scoped counter rendered as
107
+ * `promise_<n>`, the same convention as `run_<n>`, so the model copies a
108
+ * short handle rather than a digest. The engine hands every tool batch a
109
+ * base one past the session cursor (`ToolInvocationBatchRequest::
110
+ * promise_id_base`); the executor numbers the promises it creates from
111
+ * that base, and the reducer accepts a creation only at or above the
112
+ * batch's base and never twice. Producer correlation lives on
113
+ * `PromiseSource`, not in the id.
114
+ *
115
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
116
+ * via the `definition` "PromiseId".
117
+ */
118
+ export type PromiseId = string;
119
+ /**
120
+ * How a promise reached a terminal state. Used by `ResolvePromise`
121
+ * admission; all transports (push notifications, poll results, timers,
122
+ * cancellation) converge on this one funnel.
123
+ *
124
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
125
+ * via the `definition` "PromiseResolution".
126
+ */
127
+ export type PromiseResolution = {
128
+ kind: "resolved";
129
+ payload_ref?: string | null;
130
+ } | {
131
+ error_ref?: string | null;
132
+ kind: "failed";
133
+ } | {
134
+ kind: "cancelled";
135
+ };
136
+ /**
137
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
138
+ * via the `definition` "WorkflowToolInvocationId".
139
+ */
140
+ export type WorkflowToolInvocationId = string;
141
+ /**
142
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
143
+ * via the `definition` "SessionId".
144
+ */
145
+ export type SessionId = string;
146
+ /**
147
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
148
+ * via the `definition` "ToolCallId".
149
+ */
150
+ export type ToolCallId = string;
151
+ /**
152
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
153
+ * via the `definition` "WorkflowToolId".
154
+ */
155
+ export type WorkflowToolId = string;
156
+ /**
157
+ * Stable identity for one cross-workflow emission.
158
+ *
159
+ * Ids are deterministic digests over a domain-separated, length-prefixed
160
+ * producer/source identity. They are safe to recompute after activity retry,
161
+ * worker restart, or workflow continue-as-new.
162
+ *
163
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
164
+ * via the `definition` "EmissionId".
165
+ */
166
+ export type EmissionId = string;
167
+ /**
168
+ * Durable producer identity carried with every emission.
169
+ *
170
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
171
+ * via the `definition` "EmissionProducer".
172
+ */
173
+ export type EmissionProducer = {
174
+ kind: "session";
175
+ log_seq: number;
176
+ session_id: SessionId;
177
+ universe_id: string;
178
+ } | {
179
+ kind: "workflow";
180
+ universe_id: string;
181
+ workflow_id: string;
182
+ };
183
+ /**
184
+ * Envelope and start-on-call types of the fixed deliver_emission transport between sessions and receiver workflows.
185
+ */
186
+ export interface LightspeedWorkflowContract {
187
+ [k: string]: unknown;
188
+ }
189
+ /**
190
+ * One connector activity call. `idempotency_key` is the invocation id, or
191
+ * `{invocation}:chunk:{i}/{n}` for a chunk of a split send.
192
+ *
193
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
194
+ * via the `definition` "ChannelDeliveryCommand".
195
+ */
196
+ export interface ChannelDeliveryCommand {
197
+ idempotencyKey: string;
198
+ invocationId: string;
199
+ operation: ChannelDeliveryOperation;
200
+ route: ChannelRoute;
201
+ version: number;
202
+ }
203
+ /**
204
+ * The message a send replies to, for providers that quote it themselves.
205
+ *
206
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
207
+ * via the `definition` "ReplyContext".
208
+ */
209
+ export interface ReplyContext {
210
+ senderId: string;
211
+ text: string;
212
+ }
213
+ /**
214
+ * Where a delivery goes: one account's chat, optionally a thread.
215
+ *
216
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
217
+ * via the `definition` "ChannelRoute".
218
+ */
219
+ export interface ChannelRoute {
220
+ accountId: ChannelAccountId;
221
+ chatId: string;
222
+ provider: ChannelProvider;
223
+ threadId?: string | null;
224
+ }
225
+ /**
226
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
227
+ * via the `definition` "ChannelDeliveryResult".
228
+ */
229
+ export interface ChannelDeliveryResult {
230
+ /**
231
+ * Every provider id the delivery produced (a chunked send has several;
232
+ * the first is the anchor).
233
+ */
234
+ messageIds: string[];
235
+ provider: ChannelProvider;
236
+ version: number;
237
+ }
238
+ /**
239
+ * A provider-owned attachment reference; never bytes. The connector
240
+ * downloads it when the conversation workflow asks (`prepare_channel_media`).
241
+ *
242
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
243
+ * via the `definition` "ChannelInboundMedia".
244
+ */
245
+ export interface ChannelInboundMedia {
246
+ byteSize?: number | null;
247
+ /**
248
+ * Provider file handle (a Telegram file id, a sealed WhatsApp locator).
249
+ */
250
+ fileId: string;
251
+ kind: ChannelMediaKind;
252
+ mime: string;
253
+ name?: string | null;
254
+ }
255
+ /**
256
+ * Who may take a turn and who may issue control commands, by provider
257
+ * handle (Telegram user id, WhatsApp JID). Handle allowlists on the
258
+ * trigger replace any platform membership lookup.
259
+ *
260
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
261
+ * via the `definition` "ChatAccess".
262
+ */
263
+ export interface ChatAccess {
264
+ /**
265
+ * Handles allowed to take a turn when `turn` is `listed`.
266
+ */
267
+ allowed?: string[];
268
+ /**
269
+ * Handles allowed to issue `/activation` and `/status`; empty denies
270
+ * control commands to everyone.
271
+ */
272
+ controllers?: string[];
273
+ turn?: ChatTurnAccess & string;
274
+ }
275
+ /**
276
+ * When the bot acts in a conversation.
277
+ *
278
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
279
+ * via the `definition` "ChatActivation".
280
+ */
281
+ export interface ChatActivation {
282
+ group?: ChatGroupActivation | null;
283
+ mentionNames?: string[];
284
+ triggerPrefixes?: string[];
285
+ }
286
+ /**
287
+ * The conversation a message belongs to: one account's chat, optionally
288
+ * a thread inside it.
289
+ *
290
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
291
+ * via the `definition` "ConversationRef".
292
+ */
293
+ export interface ConversationRef {
294
+ accountId: ChannelAccountId;
295
+ chatId: string;
296
+ threadId?: string | null;
297
+ }
298
+ /**
299
+ * Secret-free durable input of one conversation workflow: the chat trigger
300
+ * it serves and the conversation it fronts. The workflow owns nothing on
301
+ * the core side: the bot controller creates and controls the session; the
302
+ * workflow is the source of the conversation's events and the receiver of
303
+ * its `message_*` tools.
304
+ *
305
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
306
+ * via the `definition` "ConversationStart".
307
+ */
308
+ export interface ConversationStart {
309
+ access: ChatAccess;
310
+ accountId: ChannelAccountId;
311
+ activation: ChatActivation;
312
+ botId: BotId;
313
+ /**
314
+ * Task queue of the connector host serving the account.
315
+ */
316
+ connectorTaskQueue: string;
317
+ conversation: ConversationRef;
318
+ /**
319
+ * Human label of the conversation (routed session label, display name).
320
+ */
321
+ label: string;
322
+ provider: ChannelProvider;
323
+ scope: ChatScope;
324
+ triggerId: BotTriggerId;
325
+ universeId: string;
326
+ }
327
+ /**
328
+ * Bounded durable record of one successful workflow-tool tool call.
329
+ *
330
+ * The model arguments remain in CAS and are referenced by `arguments_ref`.
331
+ * Receiver-specific interpretation belongs to the receiving workflow.
332
+ *
333
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
334
+ * via the `definition` "WorkflowToolInvocation".
335
+ */
336
+ export interface WorkflowToolInvocation {
337
+ arguments_ref: string;
338
+ binding_fingerprint: string;
339
+ /**
340
+ * Keyed promise set created atomically with this invocation; `None`
341
+ * for notify (`Accepted`) completion. Request/reply is the single
342
+ * reserved key `reply`.
343
+ */
344
+ completion_promises?: {
345
+ [k: string]: PromiseId;
346
+ } | null;
347
+ /**
348
+ * Opaque, runtime-supplied context for the receiving workflow. This is
349
+ * separate from model-authored arguments so runtime state can be pinned
350
+ * without changing the tool's declared argument schema.
351
+ */
352
+ execution_context_ref?: string | null;
353
+ invocation_id: WorkflowToolInvocationId;
354
+ run_id: number;
355
+ schema_revision: number;
356
+ semantic_type: string;
357
+ session_id: SessionId;
358
+ session_universe_id: string;
359
+ tool_batch_id: number;
360
+ tool_call_id: ToolCallId;
361
+ tool_id: WorkflowToolId;
362
+ turn_id: number;
363
+ }
364
+ /**
365
+ * Bounded cross-workflow fact delivered through the fixed
366
+ * `deliver_emission` signal.
367
+ *
368
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
369
+ * via the `definition` "EmissionEnvelope".
370
+ */
371
+ export interface EmissionEnvelope {
372
+ body: EmissionBody;
373
+ emission_id: EmissionId;
374
+ producer: EmissionProducer;
375
+ }
376
+ /**
377
+ * `maintain_channel_typing`: keep the provider's typing indicator up for
378
+ * the conversation until the activity is cancelled.
379
+ *
380
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
381
+ * via the `definition` "MaintainChannelTypingInput".
382
+ */
383
+ export interface MaintainChannelTypingInput {
384
+ route: ChannelRoute;
385
+ }
386
+ /**
387
+ * `prepare_channel_media`: the connector downloads the provider file and
388
+ * stores it in the universe's CAS.
389
+ *
390
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
391
+ * via the `definition` "PrepareChannelMediaInput".
392
+ */
393
+ export interface PrepareChannelMediaInput {
394
+ media: ChannelInboundMedia;
395
+ route: ChannelRoute;
396
+ universeId: string;
397
+ }
398
+ /**
399
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
400
+ * via the `definition` "PrepareChannelMediaResult".
401
+ */
402
+ export interface PrepareChannelMediaResult {
403
+ item: PreparedMediaItem;
404
+ }
405
+ /**
406
+ * A prepared attachment: a CAS reference, never bytes.
407
+ *
408
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
409
+ * via the `definition` "PreparedMediaItem".
410
+ */
411
+ export interface PreparedMediaItem {
412
+ blobRef: string;
413
+ kind: ChannelMediaKind;
414
+ mime: string;
415
+ name?: string | null;
416
+ }
417
+ /**
418
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
419
+ * via the `definition` "WorkflowToolRecipeV1".
420
+ */
421
+ export interface WorkflowToolRecipeV1 {
422
+ taskQueue: string;
423
+ workflowType: string;
424
+ }
425
+ /**
426
+ * Result shape of [`WORKFLOW_TOOL_RECOVERY_QUERY`].
427
+ *
428
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
429
+ * via the `definition` "WorkflowToolRecoveryResult".
430
+ */
431
+ export interface WorkflowToolRecoveryResult {
432
+ resolutions?: {
433
+ [k: string]: PromiseResolution;
434
+ };
435
+ }
436
+ /**
437
+ * Start arguments every start-on-call plugin workflow receives. The plugin
438
+ * resolves each keyed completion promise by emitting `SourceResolution`
439
+ * bodies to the holder workflow through the fixed `deliver_emission`
440
+ * signal, using its own execution id as the producer workflow id.
441
+ *
442
+ * This interface was referenced by `LightspeedWorkflowContract`'s JSON-Schema
443
+ * via the `definition` "WorkflowToolStartArgs".
444
+ */
445
+ export interface WorkflowToolStartArgs {
446
+ execution_id: string;
447
+ holder_workflow_id: string;
448
+ invocation: WorkflowToolInvocation;
449
+ universe_id: string;
450
+ }
451
+ //# sourceMappingURL=workflow-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/generated/workflow-types.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAC3B;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACtC;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAChC;IACE,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AACN;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AACrC;;;GAGG;AACH,MAAM,MAAM,g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;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AACD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;KAChC,CAAC;CACH;AACD;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,sBAAsB,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Generated by clients/typescript/scripts/generate.mjs.
3
+ * Do not edit by hand.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=workflow-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-types.js","sourceRoot":"","sources":["../../src/generated/workflow-types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,8 @@
1
+ export { LightspeedRpcError, LightspeedTransportError, lightspeedRpcErrorKind } from "./errors.js";
2
+ export type { LightspeedRpcErrorKind, JsonRpcErrorPayload } from "./errors.js";
3
+ export { LightspeedClient, generateSubmissionId, } from "./client.js";
4
+ export type { AwaitRunOptions, AwaitRunResult, CallOptions, LightspeedClientOptions, ReadEventsOptions, RequestId, RunTerminalState, StartRunOptions, } from "./client.js";
5
+ export { METHODS, METHOD_INFO, NOTIFICATIONS, rpc, } from "./generated/methods.js";
6
+ export type { Method, MethodMap, MethodParams, MethodResult, NotificationMethod, RpcCaller, } from "./generated/methods.js";
7
+ export type * from "./generated/types.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACnG,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,eAAe,EACf,cAAc,EACd,WAAW,EACX,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,GAAG,GACJ,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,MAAM,EACN,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,mBAAmB,sBAAsB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { LightspeedRpcError, LightspeedTransportError, lightspeedRpcErrorKind } from "./errors.js";
2
+ export { LightspeedClient, generateSubmissionId, } from "./client.js";
3
+ export { METHODS, METHOD_INFO, NOTIFICATIONS, rpc, } from "./generated/methods.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAEnG,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAWrB,OAAO,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,GAAG,GACJ,MAAM,wBAAwB,CAAC"}