@eigenpal/sdk 0.25.14 → 1.0.0-rc.2

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 (73) hide show
  1. package/README.md +27 -105
  2. package/dist/client.d.ts +164 -0
  3. package/dist/client.js +234 -0
  4. package/dist/core.d.ts +82 -0
  5. package/dist/core.js +311 -0
  6. package/dist/errors.d.ts +64 -0
  7. package/dist/errors.js +132 -0
  8. package/dist/generated/operations.gen.d.ts +336 -0
  9. package/dist/generated/operations.gen.js +135 -0
  10. package/dist/generated/public.gen.d.ts +2 -0
  11. package/dist/generated/public.gen.js +2 -0
  12. package/dist/generated/resources.gen.d.ts +490 -0
  13. package/dist/generated/resources.gen.js +659 -0
  14. package/dist/generated/types.gen.d.ts +2457 -0
  15. package/dist/generated/types.gen.js +2 -0
  16. package/dist/index.d.ts +20 -0
  17. package/dist/index.js +15 -0
  18. package/dist/lib/fetch-body.d.ts +23 -0
  19. package/dist/lib/fetch-body.js +66 -0
  20. package/dist/lib/files.d.ts +134 -0
  21. package/dist/lib/files.js +296 -0
  22. package/dist/lib/upload-app-chunked.d.ts +36 -0
  23. package/dist/lib/upload-app-chunked.js +94 -0
  24. package/dist/lib/upload-limits.d.ts +32 -0
  25. package/dist/lib/upload-limits.js +60 -0
  26. package/dist/lib/upload-presigned-multipart.d.ts +74 -0
  27. package/dist/lib/upload-presigned-multipart.js +212 -0
  28. package/dist/page.d.ts +30 -0
  29. package/dist/page.js +38 -0
  30. package/dist/resources.d.ts +85 -0
  31. package/dist/resources.js +247 -0
  32. package/dist/telemetry.d.ts +20 -0
  33. package/{src/telemetry.ts → dist/telemetry.js} +26 -31
  34. package/dist/upload-file.d.ts +31 -0
  35. package/dist/upload-file.js +286 -0
  36. package/{src/upload.ts → dist/upload.d.ts} +4 -4
  37. package/dist/upload.js +12 -0
  38. package/package.json +19 -15
  39. package/src/client.ts +0 -656
  40. package/src/errors.ts +0 -130
  41. package/src/generated/client/client.gen.ts +0 -277
  42. package/src/generated/client/index.ts +0 -27
  43. package/src/generated/client/types.gen.ts +0 -218
  44. package/src/generated/client/utils.gen.ts +0 -316
  45. package/src/generated/client.gen.ts +0 -18
  46. package/src/generated/core/auth.gen.ts +0 -48
  47. package/src/generated/core/bodySerializer.gen.ts +0 -82
  48. package/src/generated/core/params.gen.ts +0 -178
  49. package/src/generated/core/pathSerializer.gen.ts +0 -171
  50. package/src/generated/core/queryKeySerializer.gen.ts +0 -117
  51. package/src/generated/core/serverSentEvents.gen.ts +0 -242
  52. package/src/generated/core/types.gen.ts +0 -110
  53. package/src/generated/core/utils.gen.ts +0 -140
  54. package/src/generated/index.ts +0 -4
  55. package/src/generated/sdk.gen.ts +0 -1361
  56. package/src/generated/types.gen.ts +0 -9282
  57. package/src/index.ts +0 -120
  58. package/src/lib/fetch-body.ts +0 -92
  59. package/src/lib/files.ts +0 -390
  60. package/src/lib/upload-app-chunked.ts +0 -121
  61. package/src/lib/upload-limits.ts +0 -72
  62. package/src/lib/upload-presigned-multipart.ts +0 -285
  63. package/src/resources/auth.ts +0 -18
  64. package/src/resources/automations.ts +0 -830
  65. package/src/resources/dataset-review-requests.ts +0 -38
  66. package/src/resources/email-servers.ts +0 -95
  67. package/src/resources/files.ts +0 -592
  68. package/src/resources/folders.ts +0 -77
  69. package/src/resources/human-reviews.ts +0 -106
  70. package/src/resources/models.ts +0 -37
  71. package/src/resources/runs.ts +0 -350
  72. package/src/resources/templates.ts +0 -153
  73. package/src/runtime-config.ts +0 -14
@@ -1,38 +0,0 @@
1
- import type { OperationResult } from '../client';
2
- import type { Client } from '../generated/client';
3
- import { datasetReviewRequestsList } from '../generated/sdk.gen';
4
- import type { DatasetReviewInboxList } from '../generated/types.gen';
5
-
6
- type Dispatch = <T>(call: () => Promise<OperationResult<T>>) => Promise<T>;
7
- type SignalOptions = { signal?: AbortSignal };
8
-
9
- export type ListDatasetReviewRequestsOptions = SignalOptions & {
10
- status?: string | readonly string[];
11
- limit?: number;
12
- offset?: number;
13
- };
14
-
15
- function joinCsv(values: string | readonly string[] | undefined): string | undefined {
16
- if (values === undefined) return undefined;
17
- if (typeof values === 'string') return values;
18
- return values.join(',');
19
- }
20
-
21
- /** Tenant-wide dataset review inbox. Reviewer-facing: no workflow access required. */
22
- export class DatasetReviewRequestsResource {
23
- constructor(
24
- private readonly client: Client,
25
- private readonly dispatch: Dispatch
26
- ) {}
27
-
28
- async list(options: ListDatasetReviewRequestsOptions = {}): Promise<DatasetReviewInboxList> {
29
- const { signal, status, limit, offset } = options;
30
- return this.dispatch(() =>
31
- datasetReviewRequestsList({
32
- client: this.client,
33
- query: { status: joinCsv(status), limit, offset },
34
- signal,
35
- })
36
- );
37
- }
38
- }
@@ -1,95 +0,0 @@
1
- import type { OperationResult } from '../client';
2
- import type { Client } from '../generated/client';
3
- import {
4
- emailServersCreate,
5
- emailServersDelete,
6
- emailServersGet,
7
- emailServersList,
8
- emailServersTest,
9
- emailServersUpdate,
10
- } from '../generated/sdk.gen';
11
- import type {
12
- CreateEmailServerRequest,
13
- DeleteEmailServerResponse,
14
- EmailServer,
15
- EmailServersListData,
16
- ListEmailServersResponse,
17
- TestEmailServerRequest,
18
- TestEmailServerResponse,
19
- UpdateEmailServerRequest,
20
- } from '../generated/types.gen';
21
-
22
- type Dispatch = <T>(call: () => Promise<OperationResult<T>>) => Promise<T>;
23
- type SignalOptions = { signal?: AbortSignal };
24
-
25
- export type ListEmailServersOptions = NonNullable<EmailServersListData['query']> & SignalOptions;
26
-
27
- export class EmailServersResource {
28
- constructor(
29
- private readonly client: Client,
30
- private readonly dispatch: Dispatch
31
- ) {}
32
-
33
- async list(options: ListEmailServersOptions = {}): Promise<ListEmailServersResponse> {
34
- const { signal, ...query } = options;
35
- return this.dispatch(() =>
36
- emailServersList({
37
- client: this.client,
38
- query,
39
- signal,
40
- })
41
- );
42
- }
43
-
44
- async get(id: string, options: SignalOptions = {}): Promise<EmailServer> {
45
- return this.dispatch(() =>
46
- emailServersGet({ client: this.client, path: { id }, signal: options.signal })
47
- );
48
- }
49
-
50
- async create(body: CreateEmailServerRequest, options: SignalOptions = {}): Promise<EmailServer> {
51
- return this.dispatch(() =>
52
- emailServersCreate({
53
- client: this.client,
54
- body,
55
- signal: options.signal,
56
- })
57
- );
58
- }
59
-
60
- async update(
61
- id: string,
62
- body: UpdateEmailServerRequest,
63
- options: SignalOptions = {}
64
- ): Promise<EmailServer> {
65
- return this.dispatch(() =>
66
- emailServersUpdate({
67
- client: this.client,
68
- path: { id },
69
- body,
70
- signal: options.signal,
71
- })
72
- );
73
- }
74
-
75
- async delete(id: string, options: SignalOptions = {}): Promise<DeleteEmailServerResponse> {
76
- return this.dispatch(() =>
77
- emailServersDelete({ client: this.client, path: { id }, signal: options.signal })
78
- );
79
- }
80
-
81
- async test(
82
- id: string,
83
- body: TestEmailServerRequest,
84
- options: SignalOptions = {}
85
- ): Promise<TestEmailServerResponse> {
86
- return this.dispatch(() =>
87
- emailServersTest({
88
- client: this.client,
89
- path: { id },
90
- body,
91
- signal: options.signal,
92
- })
93
- );
94
- }
95
- }