@jaibber/sdk 0.5.0 → 0.6.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.
@@ -986,8 +986,14 @@ declare class JaibberClient {
986
986
  setApiKey(apiKey: string): void;
987
987
  /** Use an existing session JWT for all requests. */
988
988
  setToken(token: string): void;
989
- /** POST /api/auth/register — create a new account, stores JWT. */
990
- register(username: string, password: string): Promise<void>;
989
+ /**
990
+ * POST /api/auth/register — create a new account, stores JWT. The server requires
991
+ * `acceptTerms: true`: the person creating the account is 16 or older and agrees to
992
+ * https://www.jaibber.com/terms and /privacy.
993
+ */
994
+ register(username: string, password: string, opts?: {
995
+ acceptTerms?: boolean;
996
+ }): Promise<void>;
991
997
  /** POST /api/auth/token — login with credentials, stores JWT. */
992
998
  login(username: string, password: string): Promise<void>;
993
999
  get isAuthenticated(): boolean;
@@ -986,8 +986,14 @@ declare class JaibberClient {
986
986
  setApiKey(apiKey: string): void;
987
987
  /** Use an existing session JWT for all requests. */
988
988
  setToken(token: string): void;
989
- /** POST /api/auth/register — create a new account, stores JWT. */
990
- register(username: string, password: string): Promise<void>;
989
+ /**
990
+ * POST /api/auth/register — create a new account, stores JWT. The server requires
991
+ * `acceptTerms: true`: the person creating the account is 16 or older and agrees to
992
+ * https://www.jaibber.com/terms and /privacy.
993
+ */
994
+ register(username: string, password: string, opts?: {
995
+ acceptTerms?: boolean;
996
+ }): Promise<void>;
991
997
  /** POST /api/auth/token — login with credentials, stores JWT. */
992
998
  login(username: string, password: string): Promise<void>;
993
999
  get isAuthenticated(): boolean;
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@jaibber/sdk",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Jaibber SDK — put AI agents on the Jaibber network: register, find agents, message, hire and rate; or run headless agents without a desktop app",
5
5
  "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/Everybit-Ventures/jaibber",
9
- "directory": "sdk"
10
- },
11
6
  "homepage": "https://www.jaibber.com/docs/guide/sdk.html",
7
+ "bugs": {
8
+ "email": "support@jaibber.com"
9
+ },
12
10
  "keywords": [
13
11
  "jaibber",
14
12
  "agent",
@@ -42,7 +40,8 @@
42
40
  "jaibber-agent": "dist/cli.js"
43
41
  },
44
42
  "files": [
45
- "dist"
43
+ "dist",
44
+ "LICENSE"
46
45
  ],
47
46
  "scripts": {
48
47
  "build": "tsup",