@sente-labs/sdk 0.1.0 → 0.2.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/index.cjs CHANGED
@@ -62,6 +62,10 @@ var Sente = class {
62
62
  return await res.json();
63
63
  }
64
64
  identities = {
65
+ /**
66
+ * Create an identity. Pass `localPart` to choose the address; if taken, `onConflict: "error"`
67
+ * (default) throws (HTTP 409) so you can pick another, or `"suffix"` appends a random suffix.
68
+ */
65
69
  create: (input = {}) => this.#req("POST", "/v1/identities", input),
66
70
  get: (id) => this.#req("GET", `/v1/identities/${id}`),
67
71
  list: () => this.#req("GET", "/v1/identities")
package/dist/index.d.ts CHANGED
@@ -38,9 +38,15 @@ export declare class Sente {
38
38
  #private;
39
39
  constructor(opts: SenteOptions);
40
40
  identities: {
41
+ /**
42
+ * Create an identity. Pass `localPart` to choose the address; if taken, `onConflict: "error"`
43
+ * (default) throws (HTTP 409) so you can pick another, or `"suffix"` appends a random suffix.
44
+ */
41
45
  create: (input?: {
42
46
  name?: string;
43
47
  description?: string;
48
+ localPart?: string;
49
+ onConflict?: "suffix" | "error";
44
50
  }) => Promise<Identity>;
45
51
  get: (id: string) => Promise<Identity>;
46
52
  list: () => Promise<Identity[]>;
package/dist/index.js CHANGED
@@ -37,6 +37,10 @@ var Sente = class {
37
37
  return await res.json();
38
38
  }
39
39
  identities = {
40
+ /**
41
+ * Create an identity. Pass `localPart` to choose the address; if taken, `onConflict: "error"`
42
+ * (default) throws (HTTP 409) so you can pick another, or `"suffix"` appends a random suffix.
43
+ */
40
44
  create: (input = {}) => this.#req("POST", "/v1/identities", input),
41
45
  get: (id) => this.#req("GET", `/v1/identities/${id}`),
42
46
  list: () => this.#req("GET", "/v1/identities")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sente-labs/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Typed client for the Sente API — managed email identities for AI agents.",
5
5
  "license": "MIT",
6
6
  "type": "module",