rizamo 1.0.0 → 1.1.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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/types/Actor.d.ts +49 -21
- package/dist/cjs/api/types/Actor.js +20 -0
- package/dist/cjs/api/types/TargetOptions.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/types/Actor.d.mts +49 -21
- package/dist/esm/api/types/Actor.mjs +19 -1
- package/dist/esm/api/types/TargetOptions.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "rizamo/1.
|
|
46
|
+
"X-Fern-SDK-Version": "1.1.0",
|
|
47
|
+
"User-Agent": "rizamo/1.1.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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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?:
|
|
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?:
|
|
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: {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.1.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "rizamo/1.
|
|
9
|
+
"X-Fern-SDK-Version": "1.1.0",
|
|
10
|
+
"User-Agent": "rizamo/1.1.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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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?:
|
|
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?:
|
|
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: {
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.1.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.1.0";
|