@1claw/sdk 0.59.7 → 0.59.8
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/core/client.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ import { EnvVarsResource } from "../resources/env-vars";
|
|
|
50
50
|
* import { createClient } from "@1claw/sdk";
|
|
51
51
|
*
|
|
52
52
|
* const client = createClient({
|
|
53
|
-
* baseUrl: "https://api.1claw.
|
|
53
|
+
* baseUrl: "https://api.1claw.co",
|
|
54
54
|
* apiKey: "ocv_...",
|
|
55
55
|
* });
|
|
56
56
|
*
|
|
@@ -158,20 +158,20 @@ export declare class OneclawClient {
|
|
|
158
158
|
* ```ts
|
|
159
159
|
* // User with API key
|
|
160
160
|
* const client = createClient({
|
|
161
|
-
* baseUrl: "https://api.1claw.
|
|
161
|
+
* baseUrl: "https://api.1claw.co",
|
|
162
162
|
* apiKey: "ocv_...",
|
|
163
163
|
* });
|
|
164
164
|
*
|
|
165
165
|
* // Agent with API key
|
|
166
166
|
* const agent = createClient({
|
|
167
|
-
* baseUrl: "https://api.1claw.
|
|
167
|
+
* baseUrl: "https://api.1claw.co",
|
|
168
168
|
* apiKey: "ocv_...",
|
|
169
169
|
* agentId: "agent-uuid",
|
|
170
170
|
* });
|
|
171
171
|
*
|
|
172
172
|
* // Pre-authenticated with JWT
|
|
173
173
|
* const authed = createClient({
|
|
174
|
-
* baseUrl: "https://api.1claw.
|
|
174
|
+
* baseUrl: "https://api.1claw.co",
|
|
175
175
|
* token: "eyJ...",
|
|
176
176
|
* });
|
|
177
177
|
* ```
|
package/dist/core/client.js
CHANGED
|
@@ -49,7 +49,7 @@ import { EnvVarsResource } from "../resources/env-vars.js";
|
|
|
49
49
|
* import { createClient } from "@1claw/sdk";
|
|
50
50
|
*
|
|
51
51
|
* const client = createClient({
|
|
52
|
-
* baseUrl: "https://api.1claw.
|
|
52
|
+
* baseUrl: "https://api.1claw.co",
|
|
53
53
|
* apiKey: "ocv_...",
|
|
54
54
|
* });
|
|
55
55
|
*
|
|
@@ -138,20 +138,20 @@ export class OneclawClient {
|
|
|
138
138
|
* ```ts
|
|
139
139
|
* // User with API key
|
|
140
140
|
* const client = createClient({
|
|
141
|
-
* baseUrl: "https://api.1claw.
|
|
141
|
+
* baseUrl: "https://api.1claw.co",
|
|
142
142
|
* apiKey: "ocv_...",
|
|
143
143
|
* });
|
|
144
144
|
*
|
|
145
145
|
* // Agent with API key
|
|
146
146
|
* const agent = createClient({
|
|
147
|
-
* baseUrl: "https://api.1claw.
|
|
147
|
+
* baseUrl: "https://api.1claw.co",
|
|
148
148
|
* apiKey: "ocv_...",
|
|
149
149
|
* agentId: "agent-uuid",
|
|
150
150
|
* });
|
|
151
151
|
*
|
|
152
152
|
* // Pre-authenticated with JWT
|
|
153
153
|
* const authed = createClient({
|
|
154
|
-
* baseUrl: "https://api.1claw.
|
|
154
|
+
* baseUrl: "https://api.1claw.co",
|
|
155
155
|
* token: "eyJ...",
|
|
156
156
|
* });
|
|
157
157
|
* ```
|
|
@@ -11230,6 +11230,13 @@ export interface components {
|
|
|
11230
11230
|
* @default false
|
|
11231
11231
|
*/
|
|
11232
11232
|
create_sub_org: boolean;
|
|
11233
|
+
/**
|
|
11234
|
+
* Format: uuid
|
|
11235
|
+
* @description Required only when calling as a user (the dashboard wizard).
|
|
11236
|
+
* A `plt_` key carries its app in the credential; a user does not,
|
|
11237
|
+
* so the app is named here and checked against the caller's org.
|
|
11238
|
+
*/
|
|
11239
|
+
app_id?: string;
|
|
11233
11240
|
};
|
|
11234
11241
|
PlatformUserResponse: {
|
|
11235
11242
|
/** Format: uuid */
|