rizamo 1.0.0 → 1.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/README.md CHANGED
@@ -3,12 +3,13 @@
3
3
  [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Rizamo%2FTypeScript)
4
4
  [![npm shield](https://img.shields.io/npm/v/rizamo)](https://www.npmjs.com/package/rizamo)
5
5
 
6
- The Rizamo TypeScript library provides convenient access to the Rizamo APIs from TypeScript.
6
+ Publish, schedule and measure social posts on Instagram, Facebook, TikTok, Threads, LinkedIn and YouTube from your code, answer comments and messages, and receive webhooks. Docs: https://docs.rizamo.com
7
7
 
8
8
  ## Table of Contents
9
9
 
10
10
  - [Installation](#installation)
11
11
  - [Reference](#reference)
12
+ - [Agents](#agents)
12
13
  - [Usage](#usage)
13
14
  - [Environments](#environments)
14
15
  - [Request and Response Types](#request-and-response-types)
@@ -37,6 +38,15 @@ npm i -s rizamo
37
38
 
38
39
  A full reference for this library is available [here](./reference.md).
39
40
 
41
+ ## Agents
42
+
43
+ Agents read the docs as text at https://docs.rizamo.com/llms.txt, or ask about this SDK on DeepWiki:
44
+
45
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/rizamohq/rizamo-node)
46
+
47
+ An agent that works through MCP connects to https://mcp.rizamo.com/mcp instead, with no code.
48
+
49
+
40
50
  ## Usage
41
51
 
42
52
  Instantiate and use the client with the following:
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "rizamo",
46
- "X-Fern-SDK-Version": "1.0.0",
47
- "User-Agent": "rizamo/1.0.0",
46
+ "X-Fern-SDK-Version": "1.2.0",
47
+ "User-Agent": "rizamo/1.2.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,23 +1,51 @@
1
- export type Actor = {
2
- type: "agent";
3
- agent: ("claude" | "chatgpt" | "claudecode" | "cursor" | "codex" | "gemini" | "perplexity" | "openclaw" | "n8n" | "make" | "zapier") | null;
4
- name: string;
5
- agentId?: string | undefined;
6
- onBehalfOf?: {
1
+ import type * as Rizamo from "../index.js";
2
+ export type Actor = Rizamo.Actor.Agent | Rizamo.Actor.User | Rizamo.Actor.ApiKey | Rizamo.Actor.Automation;
3
+ export declare namespace Actor {
4
+ interface Agent {
5
+ type: "agent";
6
+ agent: ActorAgent.Agent | null;
7
+ name: string;
8
+ agentId?: string | undefined;
9
+ /** The person whose agent it is, who connected it and whom it acts as, with their role: "Ana via Claude Code". Events from before 2026-11-02 have it too, with the person's name now. Left out of an agent with no person, and of other records from before. After the person's erasure, `name` is "A former member" and `userId` empty. */
10
+ onBehalfOf?: ActorAgent.OnBehalfOf | undefined;
11
+ }
12
+ namespace ActorAgent {
13
+ const Agent: {
14
+ readonly Claude: "claude";
15
+ readonly Chatgpt: "chatgpt";
16
+ readonly Claudecode: "claudecode";
17
+ readonly Cursor: "cursor";
18
+ readonly Codex: "codex";
19
+ readonly Gemini: "gemini";
20
+ readonly Perplexity: "perplexity";
21
+ readonly Openclaw: "openclaw";
22
+ readonly N8N: "n8n";
23
+ readonly Make: "make";
24
+ readonly Zapier: "zapier";
25
+ };
26
+ type Agent = (typeof Agent)[keyof typeof Agent];
27
+ /**
28
+ * The person whose agent it is, who connected it and whom it acts as, with their role: "Ana via Claude Code". Events from before 2026-11-02 have it too, with the person's name now. Left out of an agent with no person, and of other records from before. After the person's erasure, `name` is "A former member" and `userId` empty.
29
+ */
30
+ interface OnBehalfOf {
31
+ userId: string;
32
+ name: string;
33
+ }
34
+ }
35
+ interface User {
36
+ type: "user";
7
37
  userId: string;
8
38
  name: string;
9
- } | undefined;
10
- } | {
11
- type: "user";
12
- userId: string;
13
- name: string;
14
- initials: string;
15
- } | {
16
- type: "api_key";
17
- keyId: string;
18
- name: string;
19
- } | {
20
- type: "automation";
21
- automationId: string;
22
- name: string;
23
- };
39
+ initials: string;
40
+ }
41
+ interface ApiKey {
42
+ type: "api_key";
43
+ keyId: string;
44
+ name: string;
45
+ }
46
+ interface Automation {
47
+ type: "automation";
48
+ automationId: string;
49
+ name: string;
50
+ }
51
+ }
@@ -1,3 +1,23 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Actor = void 0;
5
+ var Actor;
6
+ (function (Actor) {
7
+ let ActorAgent;
8
+ (function (ActorAgent) {
9
+ ActorAgent.Agent = {
10
+ Claude: "claude",
11
+ Chatgpt: "chatgpt",
12
+ Claudecode: "claudecode",
13
+ Cursor: "cursor",
14
+ Codex: "codex",
15
+ Gemini: "gemini",
16
+ Perplexity: "perplexity",
17
+ Openclaw: "openclaw",
18
+ N8N: "n8n",
19
+ Make: "make",
20
+ Zapier: "zapier",
21
+ };
22
+ })(ActorAgent = Actor.ActorAgent || (Actor.ActorAgent = {}));
23
+ })(Actor || (exports.Actor = Actor = {}));
@@ -135,7 +135,7 @@ export declare namespace TargetOptions {
135
135
  /** Send it to the creator's TikTok inbox as a draft instead of publishing. The person finishes it in the TikTok app, where TikTok asks for every other choice; the target is published once it reaches the inbox, with no link. */
136
136
  draft?: boolean | undefined;
137
137
  /** Required to publish: the person saw the post, the account's name and these choices, and agreed to TikTok's Music Usage Confirmation (and its Branded Content Policy for branded content). Never set it without asking. */
138
- consent?: string | undefined;
138
+ consent?: boolean | undefined;
139
139
  }
140
140
  namespace Tiktok {
141
141
  /** Required for photos (videos are always public): one of the account's `privacyLevels` from its creator info. */
@@ -222,7 +222,7 @@ export declare namespace TargetOptions {
222
222
  /** 2 to 4 answers, each up to 30 characters. */
223
223
  options: string[];
224
224
  /** How long it stays open: 1, 3, 7 or 14 days. Left out: 7. */
225
- days?: string | undefined;
225
+ days?: number | undefined;
226
226
  }
227
227
  /** Profiles only: who sees the post, anyone (public, the default) or the person's connections. */
228
228
  const Visibility: {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.0";
1
+ export declare const SDK_VERSION = "1.2.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.0";
4
+ exports.SDK_VERSION = "1.2.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "rizamo",
9
- "X-Fern-SDK-Version": "1.0.0",
10
- "User-Agent": "rizamo/1.0.0",
9
+ "X-Fern-SDK-Version": "1.2.0",
10
+ "User-Agent": "rizamo/1.2.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,23 +1,51 @@
1
- export type Actor = {
2
- type: "agent";
3
- agent: ("claude" | "chatgpt" | "claudecode" | "cursor" | "codex" | "gemini" | "perplexity" | "openclaw" | "n8n" | "make" | "zapier") | null;
4
- name: string;
5
- agentId?: string | undefined;
6
- onBehalfOf?: {
1
+ import type * as Rizamo from "../index.mjs";
2
+ export type Actor = Rizamo.Actor.Agent | Rizamo.Actor.User | Rizamo.Actor.ApiKey | Rizamo.Actor.Automation;
3
+ export declare namespace Actor {
4
+ interface Agent {
5
+ type: "agent";
6
+ agent: ActorAgent.Agent | null;
7
+ name: string;
8
+ agentId?: string | undefined;
9
+ /** The person whose agent it is, who connected it and whom it acts as, with their role: "Ana via Claude Code". Events from before 2026-11-02 have it too, with the person's name now. Left out of an agent with no person, and of other records from before. After the person's erasure, `name` is "A former member" and `userId` empty. */
10
+ onBehalfOf?: ActorAgent.OnBehalfOf | undefined;
11
+ }
12
+ namespace ActorAgent {
13
+ const Agent: {
14
+ readonly Claude: "claude";
15
+ readonly Chatgpt: "chatgpt";
16
+ readonly Claudecode: "claudecode";
17
+ readonly Cursor: "cursor";
18
+ readonly Codex: "codex";
19
+ readonly Gemini: "gemini";
20
+ readonly Perplexity: "perplexity";
21
+ readonly Openclaw: "openclaw";
22
+ readonly N8N: "n8n";
23
+ readonly Make: "make";
24
+ readonly Zapier: "zapier";
25
+ };
26
+ type Agent = (typeof Agent)[keyof typeof Agent];
27
+ /**
28
+ * The person whose agent it is, who connected it and whom it acts as, with their role: "Ana via Claude Code". Events from before 2026-11-02 have it too, with the person's name now. Left out of an agent with no person, and of other records from before. After the person's erasure, `name` is "A former member" and `userId` empty.
29
+ */
30
+ interface OnBehalfOf {
31
+ userId: string;
32
+ name: string;
33
+ }
34
+ }
35
+ interface User {
36
+ type: "user";
7
37
  userId: string;
8
38
  name: string;
9
- } | undefined;
10
- } | {
11
- type: "user";
12
- userId: string;
13
- name: string;
14
- initials: string;
15
- } | {
16
- type: "api_key";
17
- keyId: string;
18
- name: string;
19
- } | {
20
- type: "automation";
21
- automationId: string;
22
- name: string;
23
- };
39
+ initials: string;
40
+ }
41
+ interface ApiKey {
42
+ type: "api_key";
43
+ keyId: string;
44
+ name: string;
45
+ }
46
+ interface Automation {
47
+ type: "automation";
48
+ automationId: string;
49
+ name: string;
50
+ }
51
+ }
@@ -1,2 +1,20 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var Actor;
3
+ (function (Actor) {
4
+ let ActorAgent;
5
+ (function (ActorAgent) {
6
+ ActorAgent.Agent = {
7
+ Claude: "claude",
8
+ Chatgpt: "chatgpt",
9
+ Claudecode: "claudecode",
10
+ Cursor: "cursor",
11
+ Codex: "codex",
12
+ Gemini: "gemini",
13
+ Perplexity: "perplexity",
14
+ Openclaw: "openclaw",
15
+ N8N: "n8n",
16
+ Make: "make",
17
+ Zapier: "zapier",
18
+ };
19
+ })(ActorAgent = Actor.ActorAgent || (Actor.ActorAgent = {}));
20
+ })(Actor || (Actor = {}));
@@ -135,7 +135,7 @@ export declare namespace TargetOptions {
135
135
  /** Send it to the creator's TikTok inbox as a draft instead of publishing. The person finishes it in the TikTok app, where TikTok asks for every other choice; the target is published once it reaches the inbox, with no link. */
136
136
  draft?: boolean | undefined;
137
137
  /** Required to publish: the person saw the post, the account's name and these choices, and agreed to TikTok's Music Usage Confirmation (and its Branded Content Policy for branded content). Never set it without asking. */
138
- consent?: string | undefined;
138
+ consent?: boolean | undefined;
139
139
  }
140
140
  namespace Tiktok {
141
141
  /** Required for photos (videos are always public): one of the account's `privacyLevels` from its creator info. */
@@ -222,7 +222,7 @@ export declare namespace TargetOptions {
222
222
  /** 2 to 4 answers, each up to 30 characters. */
223
223
  options: string[];
224
224
  /** How long it stays open: 1, 3, 7 or 14 days. Left out: 7. */
225
- days?: string | undefined;
225
+ days?: number | undefined;
226
226
  }
227
227
  /** Profiles only: who sees the post, anyone (public, the default) or the person's connections. */
228
228
  const Visibility: {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.0";
1
+ export declare const SDK_VERSION = "1.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.0";
1
+ export const SDK_VERSION = "1.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rizamo",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -242,5 +242,32 @@
242
242
  "engines": {
243
243
  "node": ">=18.0.0"
244
244
  },
245
- "sideEffects": false
245
+ "sideEffects": false,
246
+ "description": "The official TypeScript SDK for the Rizamo API: publish, schedule and measure social posts on Instagram, Facebook, TikTok, Threads, LinkedIn and YouTube, answer comments and messages, and receive webhooks.",
247
+ "keywords": [
248
+ "rizamo",
249
+ "social-media",
250
+ "social-media-api",
251
+ "social-media-scheduler",
252
+ "instagram-api",
253
+ "facebook-api",
254
+ "tiktok-api",
255
+ "threads-api",
256
+ "linkedin-api",
257
+ "youtube-api",
258
+ "schedule-posts",
259
+ "publishing",
260
+ "ai-agents",
261
+ "mcp",
262
+ "sdk"
263
+ ],
264
+ "homepage": "https://docs.rizamo.com/sdks",
265
+ "author": {
266
+ "name": "Rizamo",
267
+ "email": "hi@rizamo.com",
268
+ "url": "https://rizamo.com"
269
+ },
270
+ "bugs": {
271
+ "url": "https://github.com/rizamohq/rizamo-node/issues"
272
+ }
246
273
  }