@scalemule/sdk 0.0.4 → 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 CHANGED
@@ -2268,8 +2268,9 @@ declare class CommunicationService extends ServiceModule {
2268
2268
  sendEmail(data: {
2269
2269
  to: string;
2270
2270
  subject: string;
2271
- body: string;
2272
- template_id?: string;
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;
@@ -4275,6 +4276,7 @@ interface ProjectGrant {
4275
4276
  created_at: string;
4276
4277
  expires_at: string;
4277
4278
  redeemed_at?: string;
4279
+ email_sent?: boolean;
4278
4280
  }
4279
4281
  interface GrantInfo {
4280
4282
  id: string;
@@ -4387,12 +4389,18 @@ declare class AgentProjectsService extends ServiceModule {
4387
4389
  role: string;
4388
4390
  user_email: string;
4389
4391
  expires_at: string;
4392
+ invite_url?: string;
4390
4393
  }, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
4391
4394
  listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
4392
4395
  getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
4393
4396
  /** Public endpoint — no auth required. Returns masked email + project name. */
4394
4397
  getGrantInfo(id: string, options?: RequestOptions): Promise<ApiResponse<GrantInfo>>;
4395
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
+ }>>;
4396
4404
  redeemGrant(id: string, options?: RequestOptions): Promise<ApiResponse<RedeemResult>>;
4397
4405
  }
4398
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
- body: string;
2272
- template_id?: string;
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;
@@ -4275,6 +4276,7 @@ interface ProjectGrant {
4275
4276
  created_at: string;
4276
4277
  expires_at: string;
4277
4278
  redeemed_at?: string;
4279
+ email_sent?: boolean;
4278
4280
  }
4279
4281
  interface GrantInfo {
4280
4282
  id: string;
@@ -4387,12 +4389,18 @@ declare class AgentProjectsService extends ServiceModule {
4387
4389
  role: string;
4388
4390
  user_email: string;
4389
4391
  expires_at: string;
4392
+ invite_url?: string;
4390
4393
  }, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
4391
4394
  listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
4392
4395
  getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
4393
4396
  /** Public endpoint — no auth required. Returns masked email + project name. */
4394
4397
  getGrantInfo(id: string, options?: RequestOptions): Promise<ApiResponse<GrantInfo>>;
4395
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
+ }>>;
4396
4404
  redeemGrant(id: string, options?: RequestOptions): Promise<ApiResponse<RedeemResult>>;
4397
4405
  }
4398
4406
 
package/dist/index.js CHANGED
@@ -4919,6 +4919,9 @@ var AgentProjectsService = class extends ServiceModule {
4919
4919
  async revokeGrant(id, options) {
4920
4920
  return this.del(`/project-grants/${id}`, options);
4921
4921
  }
4922
+ async resendGrantInvitation(id, data, options) {
4923
+ return this.post(`/project-grants/${id}/resend`, data, options);
4924
+ }
4922
4925
  async redeemGrant(id, options) {
4923
4926
  return this.post(`/project-grants/${id}/redeem`, void 0, options);
4924
4927
  }
package/dist/index.mjs CHANGED
@@ -4567,6 +4567,9 @@ var AgentProjectsService = class extends ServiceModule {
4567
4567
  async revokeGrant(id, options) {
4568
4568
  return this.del(`/project-grants/${id}`, options);
4569
4569
  }
4570
+ async resendGrantInvitation(id, data, options) {
4571
+ return this.post(`/project-grants/${id}/resend`, data, options);
4572
+ }
4570
4573
  async redeemGrant(id, options) {
4571
4574
  return this.post(`/project-grants/${id}/redeem`, void 0, options);
4572
4575
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Official TypeScript/JavaScript SDK for ScaleMule Backend-as-a-Service",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",