@scalemule/sdk 0.0.3 → 0.0.5
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 +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2268,8 +2268,9 @@ declare class CommunicationService extends ServiceModule {
|
|
|
2268
2268
|
sendEmail(data: {
|
|
2269
2269
|
to: string;
|
|
2270
2270
|
subject: string;
|
|
2271
|
-
|
|
2272
|
-
|
|
2271
|
+
html_body: string;
|
|
2272
|
+
text_body?: string;
|
|
2273
|
+
message_type?: string;
|
|
2273
2274
|
}, options?: RequestOptions): Promise<ApiResponse<MessageStatus>>;
|
|
2274
2275
|
sendEmailTemplate(template: string, data: {
|
|
2275
2276
|
to: string;
|
|
@@ -4270,12 +4271,12 @@ interface ProjectGrant {
|
|
|
4270
4271
|
project_id: string;
|
|
4271
4272
|
role: string;
|
|
4272
4273
|
user_email: string;
|
|
4273
|
-
team_invitation_id?: string;
|
|
4274
4274
|
status: 'pending' | 'redeemed' | 'revoked' | 'expired';
|
|
4275
4275
|
created_by: string;
|
|
4276
4276
|
created_at: string;
|
|
4277
4277
|
expires_at: string;
|
|
4278
4278
|
redeemed_at?: string;
|
|
4279
|
+
email_sent?: boolean;
|
|
4279
4280
|
}
|
|
4280
4281
|
interface GrantInfo {
|
|
4281
4282
|
id: string;
|
|
@@ -4388,19 +4389,18 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4388
4389
|
role: string;
|
|
4389
4390
|
user_email: string;
|
|
4390
4391
|
expires_at: string;
|
|
4392
|
+
invite_url?: string;
|
|
4391
4393
|
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4392
4394
|
listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
|
|
4393
4395
|
getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4394
4396
|
/** Public endpoint — no auth required. Returns masked email + project name. */
|
|
4395
4397
|
getGrantInfo(id: string, options?: RequestOptions): Promise<ApiResponse<GrantInfo>>;
|
|
4396
|
-
/** Internal-only — link grant to team invitation. Requires x-sm-internal-token header. */
|
|
4397
|
-
updateGrant(id: string, data: {
|
|
4398
|
-
team_id: string;
|
|
4399
|
-
team_invitation_id: string;
|
|
4400
|
-
team_invitation_token_hash: string;
|
|
4401
|
-
expires_at?: string;
|
|
4402
|
-
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4403
4398
|
revokeGrant(id: string, options?: RequestOptions): Promise<ApiResponse<void>>;
|
|
4399
|
+
resendGrantInvitation(id: string, data: {
|
|
4400
|
+
invite_url: string;
|
|
4401
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
4402
|
+
email_sent: boolean;
|
|
4403
|
+
}>>;
|
|
4404
4404
|
redeemGrant(id: string, options?: RequestOptions): Promise<ApiResponse<RedeemResult>>;
|
|
4405
4405
|
}
|
|
4406
4406
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2268,8 +2268,9 @@ declare class CommunicationService extends ServiceModule {
|
|
|
2268
2268
|
sendEmail(data: {
|
|
2269
2269
|
to: string;
|
|
2270
2270
|
subject: string;
|
|
2271
|
-
|
|
2272
|
-
|
|
2271
|
+
html_body: string;
|
|
2272
|
+
text_body?: string;
|
|
2273
|
+
message_type?: string;
|
|
2273
2274
|
}, options?: RequestOptions): Promise<ApiResponse<MessageStatus>>;
|
|
2274
2275
|
sendEmailTemplate(template: string, data: {
|
|
2275
2276
|
to: string;
|
|
@@ -4270,12 +4271,12 @@ interface ProjectGrant {
|
|
|
4270
4271
|
project_id: string;
|
|
4271
4272
|
role: string;
|
|
4272
4273
|
user_email: string;
|
|
4273
|
-
team_invitation_id?: string;
|
|
4274
4274
|
status: 'pending' | 'redeemed' | 'revoked' | 'expired';
|
|
4275
4275
|
created_by: string;
|
|
4276
4276
|
created_at: string;
|
|
4277
4277
|
expires_at: string;
|
|
4278
4278
|
redeemed_at?: string;
|
|
4279
|
+
email_sent?: boolean;
|
|
4279
4280
|
}
|
|
4280
4281
|
interface GrantInfo {
|
|
4281
4282
|
id: string;
|
|
@@ -4388,19 +4389,18 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4388
4389
|
role: string;
|
|
4389
4390
|
user_email: string;
|
|
4390
4391
|
expires_at: string;
|
|
4392
|
+
invite_url?: string;
|
|
4391
4393
|
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4392
4394
|
listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
|
|
4393
4395
|
getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4394
4396
|
/** Public endpoint — no auth required. Returns masked email + project name. */
|
|
4395
4397
|
getGrantInfo(id: string, options?: RequestOptions): Promise<ApiResponse<GrantInfo>>;
|
|
4396
|
-
/** Internal-only — link grant to team invitation. Requires x-sm-internal-token header. */
|
|
4397
|
-
updateGrant(id: string, data: {
|
|
4398
|
-
team_id: string;
|
|
4399
|
-
team_invitation_id: string;
|
|
4400
|
-
team_invitation_token_hash: string;
|
|
4401
|
-
expires_at?: string;
|
|
4402
|
-
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4403
4398
|
revokeGrant(id: string, options?: RequestOptions): Promise<ApiResponse<void>>;
|
|
4399
|
+
resendGrantInvitation(id: string, data: {
|
|
4400
|
+
invite_url: string;
|
|
4401
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
4402
|
+
email_sent: boolean;
|
|
4403
|
+
}>>;
|
|
4404
4404
|
redeemGrant(id: string, options?: RequestOptions): Promise<ApiResponse<RedeemResult>>;
|
|
4405
4405
|
}
|
|
4406
4406
|
|
package/dist/index.js
CHANGED
|
@@ -4916,13 +4916,12 @@ var AgentProjectsService = class extends ServiceModule {
|
|
|
4916
4916
|
async getGrantInfo(id, options) {
|
|
4917
4917
|
return this._get(`/project-grants/${id}/info`, { skipAuth: true, ...options });
|
|
4918
4918
|
}
|
|
4919
|
-
/** Internal-only — link grant to team invitation. Requires x-sm-internal-token header. */
|
|
4920
|
-
async updateGrant(id, data, options) {
|
|
4921
|
-
return this.patch(`/project-grants/${id}`, data, options);
|
|
4922
|
-
}
|
|
4923
4919
|
async revokeGrant(id, options) {
|
|
4924
4920
|
return this.del(`/project-grants/${id}`, options);
|
|
4925
4921
|
}
|
|
4922
|
+
async resendGrantInvitation(id, data, options) {
|
|
4923
|
+
return this.post(`/project-grants/${id}/resend`, data, options);
|
|
4924
|
+
}
|
|
4926
4925
|
async redeemGrant(id, options) {
|
|
4927
4926
|
return this.post(`/project-grants/${id}/redeem`, void 0, options);
|
|
4928
4927
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4564,13 +4564,12 @@ var AgentProjectsService = class extends ServiceModule {
|
|
|
4564
4564
|
async getGrantInfo(id, options) {
|
|
4565
4565
|
return this._get(`/project-grants/${id}/info`, { skipAuth: true, ...options });
|
|
4566
4566
|
}
|
|
4567
|
-
/** Internal-only — link grant to team invitation. Requires x-sm-internal-token header. */
|
|
4568
|
-
async updateGrant(id, data, options) {
|
|
4569
|
-
return this.patch(`/project-grants/${id}`, data, options);
|
|
4570
|
-
}
|
|
4571
4567
|
async revokeGrant(id, options) {
|
|
4572
4568
|
return this.del(`/project-grants/${id}`, options);
|
|
4573
4569
|
}
|
|
4570
|
+
async resendGrantInvitation(id, data, options) {
|
|
4571
|
+
return this.post(`/project-grants/${id}/resend`, data, options);
|
|
4572
|
+
}
|
|
4574
4573
|
async redeemGrant(id, options) {
|
|
4575
4574
|
return this.post(`/project-grants/${id}/redeem`, void 0, options);
|
|
4576
4575
|
}
|