@scalemule/sdk 0.0.5 → 0.0.7
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.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2582,6 +2582,7 @@ declare class TeamsService extends ServiceModule {
|
|
|
2582
2582
|
description?: string;
|
|
2583
2583
|
}, options?: RequestOptions): Promise<ApiResponse<Team>>;
|
|
2584
2584
|
list(params?: PaginationParams, requestOptions?: RequestOptions): Promise<PaginatedResponse<Team>>;
|
|
2585
|
+
mine(params?: PaginationParams, options?: RequestOptions): Promise<PaginatedResponse<Team>>;
|
|
2585
2586
|
get(id: string, options?: RequestOptions): Promise<ApiResponse<Team>>;
|
|
2586
2587
|
update(id: string, data: Partial<{
|
|
2587
2588
|
name: string;
|
|
@@ -4180,6 +4181,8 @@ interface Project {
|
|
|
4180
4181
|
name: string;
|
|
4181
4182
|
description?: string;
|
|
4182
4183
|
status: string;
|
|
4184
|
+
owner_user_id?: string;
|
|
4185
|
+
metadata?: Record<string, unknown>;
|
|
4183
4186
|
created_at: string;
|
|
4184
4187
|
updated_at: string;
|
|
4185
4188
|
}
|
|
@@ -4277,6 +4280,7 @@ interface ProjectGrant {
|
|
|
4277
4280
|
expires_at: string;
|
|
4278
4281
|
redeemed_at?: string;
|
|
4279
4282
|
email_sent?: boolean;
|
|
4283
|
+
team_invitation_id?: string;
|
|
4280
4284
|
}
|
|
4281
4285
|
interface GrantInfo {
|
|
4282
4286
|
id: string;
|
|
@@ -4297,15 +4301,18 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4297
4301
|
createProject(data: {
|
|
4298
4302
|
name: string;
|
|
4299
4303
|
description?: string;
|
|
4304
|
+
metadata?: Record<string, unknown>;
|
|
4300
4305
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Project>>;
|
|
4301
4306
|
listProjects(params?: PaginationParams & {
|
|
4302
4307
|
application_id?: string;
|
|
4308
|
+
team_id?: string;
|
|
4303
4309
|
}, options?: RequestOptions): Promise<PaginatedResponse<Project>>;
|
|
4304
4310
|
getProject(id: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Project>>;
|
|
4305
4311
|
updateProject(id: string, data: Partial<{
|
|
4306
4312
|
name: string;
|
|
4307
4313
|
description: string;
|
|
4308
4314
|
status: string;
|
|
4315
|
+
metadata: Record<string, unknown>;
|
|
4309
4316
|
}>, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Project>>;
|
|
4310
4317
|
addMember(projectId: string, data: {
|
|
4311
4318
|
user_id: string;
|
|
@@ -4390,6 +4397,8 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4390
4397
|
user_email: string;
|
|
4391
4398
|
expires_at: string;
|
|
4392
4399
|
invite_url?: string;
|
|
4400
|
+
team_invitation_id?: string;
|
|
4401
|
+
team_id?: string;
|
|
4393
4402
|
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4394
4403
|
listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
|
|
4395
4404
|
getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2582,6 +2582,7 @@ declare class TeamsService extends ServiceModule {
|
|
|
2582
2582
|
description?: string;
|
|
2583
2583
|
}, options?: RequestOptions): Promise<ApiResponse<Team>>;
|
|
2584
2584
|
list(params?: PaginationParams, requestOptions?: RequestOptions): Promise<PaginatedResponse<Team>>;
|
|
2585
|
+
mine(params?: PaginationParams, options?: RequestOptions): Promise<PaginatedResponse<Team>>;
|
|
2585
2586
|
get(id: string, options?: RequestOptions): Promise<ApiResponse<Team>>;
|
|
2586
2587
|
update(id: string, data: Partial<{
|
|
2587
2588
|
name: string;
|
|
@@ -4180,6 +4181,8 @@ interface Project {
|
|
|
4180
4181
|
name: string;
|
|
4181
4182
|
description?: string;
|
|
4182
4183
|
status: string;
|
|
4184
|
+
owner_user_id?: string;
|
|
4185
|
+
metadata?: Record<string, unknown>;
|
|
4183
4186
|
created_at: string;
|
|
4184
4187
|
updated_at: string;
|
|
4185
4188
|
}
|
|
@@ -4277,6 +4280,7 @@ interface ProjectGrant {
|
|
|
4277
4280
|
expires_at: string;
|
|
4278
4281
|
redeemed_at?: string;
|
|
4279
4282
|
email_sent?: boolean;
|
|
4283
|
+
team_invitation_id?: string;
|
|
4280
4284
|
}
|
|
4281
4285
|
interface GrantInfo {
|
|
4282
4286
|
id: string;
|
|
@@ -4297,15 +4301,18 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4297
4301
|
createProject(data: {
|
|
4298
4302
|
name: string;
|
|
4299
4303
|
description?: string;
|
|
4304
|
+
metadata?: Record<string, unknown>;
|
|
4300
4305
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Project>>;
|
|
4301
4306
|
listProjects(params?: PaginationParams & {
|
|
4302
4307
|
application_id?: string;
|
|
4308
|
+
team_id?: string;
|
|
4303
4309
|
}, options?: RequestOptions): Promise<PaginatedResponse<Project>>;
|
|
4304
4310
|
getProject(id: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Project>>;
|
|
4305
4311
|
updateProject(id: string, data: Partial<{
|
|
4306
4312
|
name: string;
|
|
4307
4313
|
description: string;
|
|
4308
4314
|
status: string;
|
|
4315
|
+
metadata: Record<string, unknown>;
|
|
4309
4316
|
}>, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Project>>;
|
|
4310
4317
|
addMember(projectId: string, data: {
|
|
4311
4318
|
user_id: string;
|
|
@@ -4390,6 +4397,8 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4390
4397
|
user_email: string;
|
|
4391
4398
|
expires_at: string;
|
|
4392
4399
|
invite_url?: string;
|
|
4400
|
+
team_invitation_id?: string;
|
|
4401
|
+
team_id?: string;
|
|
4393
4402
|
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4394
4403
|
listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
|
|
4395
4404
|
getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
package/dist/index.js
CHANGED
|
@@ -2906,7 +2906,8 @@ var RealtimeService = class extends ServiceModule {
|
|
|
2906
2906
|
});
|
|
2907
2907
|
}
|
|
2908
2908
|
handleMessage(msg) {
|
|
2909
|
-
|
|
2909
|
+
const type = msg.type;
|
|
2910
|
+
switch (type) {
|
|
2910
2911
|
case "auth_success":
|
|
2911
2912
|
this.authenticated = true;
|
|
2912
2913
|
this.setStatus("connected");
|
|
@@ -3918,6 +3919,9 @@ var TeamsService = class extends ServiceModule {
|
|
|
3918
3919
|
async list(params, requestOptions) {
|
|
3919
3920
|
return this._list("", params, requestOptions);
|
|
3920
3921
|
}
|
|
3922
|
+
async mine(params, options) {
|
|
3923
|
+
return this._list("/mine", params, options);
|
|
3924
|
+
}
|
|
3921
3925
|
async get(id, options) {
|
|
3922
3926
|
return this._get(`/${id}`, options);
|
|
3923
3927
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2554,7 +2554,8 @@ var RealtimeService = class extends ServiceModule {
|
|
|
2554
2554
|
});
|
|
2555
2555
|
}
|
|
2556
2556
|
handleMessage(msg) {
|
|
2557
|
-
|
|
2557
|
+
const type = msg.type;
|
|
2558
|
+
switch (type) {
|
|
2558
2559
|
case "auth_success":
|
|
2559
2560
|
this.authenticated = true;
|
|
2560
2561
|
this.setStatus("connected");
|
|
@@ -3566,6 +3567,9 @@ var TeamsService = class extends ServiceModule {
|
|
|
3566
3567
|
async list(params, requestOptions) {
|
|
3567
3568
|
return this._list("", params, requestOptions);
|
|
3568
3569
|
}
|
|
3570
|
+
async mine(params, options) {
|
|
3571
|
+
return this._list("/mine", params, options);
|
|
3572
|
+
}
|
|
3569
3573
|
async get(id, options) {
|
|
3570
3574
|
return this._get(`/${id}`, options);
|
|
3571
3575
|
}
|