agentmail 0.2.16 → 0.2.18

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 (68) hide show
  1. package/README.md +0 -681
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/websockets/client/Socket.d.ts +1 -1
  4. package/dist/cjs/api/resources/websockets/types/Error_.d.ts +6 -0
  5. package/dist/cjs/api/resources/websockets/types/Error_.js +3 -0
  6. package/dist/cjs/api/resources/websockets/types/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/websockets/types/index.js +1 -0
  8. package/dist/cjs/api/types/ErrorMessage.d.ts +4 -0
  9. package/dist/cjs/api/types/ErrorMessage.js +3 -0
  10. package/dist/cjs/api/types/ErrorResponse.d.ts +1 -2
  11. package/dist/cjs/api/types/index.d.ts +1 -0
  12. package/dist/cjs/api/types/index.js +1 -0
  13. package/dist/cjs/core/fetcher/Fetcher.js +7 -1
  14. package/dist/cjs/core/schemas/builders/list/list.js +12 -17
  15. package/dist/cjs/core/schemas/builders/object/object.js +102 -40
  16. package/dist/cjs/core/schemas/builders/object-like/getObjectLikeUtils.js +10 -3
  17. package/dist/cjs/core/schemas/builders/record/record.js +26 -25
  18. package/dist/cjs/core/schemas/builders/union/union.js +9 -12
  19. package/dist/cjs/core/schemas/utils/isPlainObject.js +4 -6
  20. package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +3 -2
  21. package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +2 -0
  22. package/dist/cjs/serialization/resources/websockets/types/Error_.d.ts +13 -0
  23. package/dist/cjs/serialization/resources/websockets/types/Error_.js +45 -0
  24. package/dist/cjs/serialization/resources/websockets/types/index.d.ts +1 -0
  25. package/dist/cjs/serialization/resources/websockets/types/index.js +1 -0
  26. package/dist/cjs/serialization/types/ErrorMessage.d.ts +7 -0
  27. package/dist/cjs/serialization/types/ErrorMessage.js +39 -0
  28. package/dist/cjs/serialization/types/ErrorResponse.d.ts +2 -1
  29. package/dist/cjs/serialization/types/ErrorResponse.js +2 -1
  30. package/dist/cjs/serialization/types/index.d.ts +1 -0
  31. package/dist/cjs/serialization/types/index.js +1 -0
  32. package/dist/cjs/version.d.ts +1 -1
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/esm/BaseClient.mjs +2 -2
  35. package/dist/esm/api/resources/websockets/client/Socket.d.mts +1 -1
  36. package/dist/esm/api/resources/websockets/types/Error_.d.mts +6 -0
  37. package/dist/esm/api/resources/websockets/types/Error_.mjs +2 -0
  38. package/dist/esm/api/resources/websockets/types/index.d.mts +1 -0
  39. package/dist/esm/api/resources/websockets/types/index.mjs +1 -0
  40. package/dist/esm/api/types/ErrorMessage.d.mts +4 -0
  41. package/dist/esm/api/types/ErrorMessage.mjs +2 -0
  42. package/dist/esm/api/types/ErrorResponse.d.mts +1 -2
  43. package/dist/esm/api/types/index.d.mts +1 -0
  44. package/dist/esm/api/types/index.mjs +1 -0
  45. package/dist/esm/core/fetcher/Fetcher.mjs +7 -1
  46. package/dist/esm/core/schemas/builders/list/list.mjs +12 -17
  47. package/dist/esm/core/schemas/builders/object/object.mjs +102 -40
  48. package/dist/esm/core/schemas/builders/object-like/getObjectLikeUtils.mjs +10 -3
  49. package/dist/esm/core/schemas/builders/record/record.mjs +26 -25
  50. package/dist/esm/core/schemas/builders/union/union.mjs +9 -12
  51. package/dist/esm/core/schemas/utils/isPlainObject.mjs +4 -6
  52. package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.mts +3 -2
  53. package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.mjs +2 -0
  54. package/dist/esm/serialization/resources/websockets/types/Error_.d.mts +13 -0
  55. package/dist/esm/serialization/resources/websockets/types/Error_.mjs +9 -0
  56. package/dist/esm/serialization/resources/websockets/types/index.d.mts +1 -0
  57. package/dist/esm/serialization/resources/websockets/types/index.mjs +1 -0
  58. package/dist/esm/serialization/types/ErrorMessage.d.mts +7 -0
  59. package/dist/esm/serialization/types/ErrorMessage.mjs +3 -0
  60. package/dist/esm/serialization/types/ErrorResponse.d.mts +2 -1
  61. package/dist/esm/serialization/types/ErrorResponse.mjs +2 -1
  62. package/dist/esm/serialization/types/index.d.mts +1 -0
  63. package/dist/esm/serialization/types/index.mjs +1 -0
  64. package/dist/esm/version.d.mts +1 -1
  65. package/dist/esm/version.mjs +1 -1
  66. package/dist/llms-full.txt +144 -260
  67. package/dist/llms.txt +1 -0
  68. package/package.json +2 -2
@@ -1,2 +1,3 @@
1
+ export * from "./Error_.mjs";
1
2
  export * from "./Subscribe.mjs";
2
3
  export * from "./Subscribed.mjs";
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const ErrorMessage: core.serialization.Schema<serializers.ErrorMessage.Raw, AgentMail.ErrorMessage>;
5
+ export declare namespace ErrorMessage {
6
+ type Raw = string;
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const ErrorMessage = core.serialization.string();
@@ -1,11 +1,12 @@
1
1
  import type * as AgentMail from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
+ import { ErrorMessage } from "./ErrorMessage.mjs";
4
5
  import { ErrorName } from "./ErrorName.mjs";
5
6
  export declare const ErrorResponse: core.serialization.ObjectSchema<serializers.ErrorResponse.Raw, AgentMail.ErrorResponse>;
6
7
  export declare namespace ErrorResponse {
7
8
  interface Raw {
8
9
  name: ErrorName.Raw;
9
- message: string;
10
+ message: ErrorMessage.Raw;
10
11
  }
11
12
  }
@@ -1,7 +1,8 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
+ import { ErrorMessage } from "./ErrorMessage.mjs";
3
4
  import { ErrorName } from "./ErrorName.mjs";
4
5
  export const ErrorResponse = core.serialization.object({
5
6
  name: ErrorName,
6
- message: core.serialization.string(),
7
+ message: ErrorMessage,
7
8
  });
@@ -2,6 +2,7 @@ export * from "./After.mjs";
2
2
  export * from "./Ascending.mjs";
3
3
  export * from "./Before.mjs";
4
4
  export * from "./Count.mjs";
5
+ export * from "./ErrorMessage.mjs";
5
6
  export * from "./ErrorName.mjs";
6
7
  export * from "./ErrorResponse.mjs";
7
8
  export * from "./IncludeSpam.mjs";
@@ -2,6 +2,7 @@ export * from "./After.mjs";
2
2
  export * from "./Ascending.mjs";
3
3
  export * from "./Before.mjs";
4
4
  export * from "./Count.mjs";
5
+ export * from "./ErrorMessage.mjs";
5
6
  export * from "./ErrorName.mjs";
6
7
  export * from "./ErrorResponse.mjs";
7
8
  export * from "./IncludeSpam.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.16";
1
+ export declare const SDK_VERSION = "0.2.18";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.2.16";
1
+ export const SDK_VERSION = "0.2.18";