@inneropen/marvin-sdk 2.0.0-next.22 → 2.0.0-next.24

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.
@@ -3630,30 +3630,8 @@ declare class APIClientsModule {
3630
3630
  * Entry Types Module - Platform API
3631
3631
  */
3632
3632
 
3633
- interface EntryTypeCreate {
3634
- name: string;
3635
- slug?: string;
3636
- description?: string;
3637
- icon?: string;
3638
- color?: string;
3639
- sortOrder?: number;
3640
- isRendered?: boolean;
3641
- schemaJson?: Record<string, unknown>;
3642
- renderingJson?: Record<string, unknown>;
3643
- capabilitiesJson?: Record<string, unknown>;
3644
- }
3645
- interface EntryTypeUpdate {
3646
- name?: string;
3647
- slug?: string;
3648
- description?: string;
3649
- icon?: string;
3650
- color?: string;
3651
- sortOrder?: number;
3652
- isRendered?: boolean;
3653
- schemaJson?: Record<string, unknown>;
3654
- renderingJson?: Record<string, unknown>;
3655
- capabilitiesJson?: Record<string, unknown>;
3656
- }
3633
+ type EntryTypeCreate = components['schemas']['EntryTypeCreate'];
3634
+ type EntryTypeUpdate = components['schemas']['EntryTypeUpdate'];
3657
3635
  declare class EntryTypesModule {
3658
3636
  private http;
3659
3637
  constructor(http: HttpClient);
@@ -3716,45 +3694,15 @@ declare class WorkspaceMembersModule {
3716
3694
  * Workspace activation and listing operations
3717
3695
  */
3718
3696
 
3719
- interface Workspace {
3720
- id: string;
3721
- slug: string;
3722
- name: string;
3723
- description?: string | null;
3724
- }
3725
- interface WorkspaceWithMembership {
3726
- workspace: Workspace;
3727
- role: string;
3728
- isActive: boolean;
3729
- }
3697
+ type Workspace = components['schemas']['GroupRead'];
3698
+ type WorkspaceCreate = components['schemas']['GroupCreate'];
3699
+ type WorkspaceUpdate = components['schemas']['GroupAdminUpdate'];
3700
+ type WorkspacePreferences = components['schemas']['GroupPreferencesRead'];
3701
+ type WorkspacePreferencesUpdate = components['schemas']['GroupPreferencesUpdate'];
3702
+ type WorkspaceWithMembership = components['schemas']['WorkspaceWithMembership'];
3730
3703
  interface WorkspaceActivationRequest {
3731
3704
  workspace: string;
3732
3705
  }
3733
- interface WorkspaceCreate {
3734
- name: string;
3735
- slug?: string;
3736
- description?: string | null;
3737
- }
3738
- interface WorkspaceUpdate {
3739
- name?: string;
3740
- description?: string | null;
3741
- }
3742
- /**
3743
- * Workspace preferences - dynamic key-value store
3744
- * Common keys include: theme, locale, notifications, etc.
3745
- */
3746
- interface WorkspacePreferences {
3747
- theme?: string;
3748
- locale?: string;
3749
- notifications?: boolean;
3750
- [key: string]: unknown;
3751
- }
3752
- interface WorkspacePreferencesUpdate {
3753
- theme?: string;
3754
- locale?: string;
3755
- notifications?: boolean;
3756
- [key: string]: unknown;
3757
- }
3758
3706
  declare class WorkspacesModule {
3759
3707
  private http;
3760
3708
  constructor(http: HttpClient);
@@ -3865,28 +3813,9 @@ declare class InvitesModule {
3865
3813
  * Manage workspace notifications
3866
3814
  */
3867
3815
 
3868
- interface Notification {
3869
- id: string;
3870
- name: string;
3871
- enabled: boolean;
3872
- eventType: string;
3873
- url?: string;
3874
- config?: Record<string, any>;
3875
- }
3876
- interface NotificationCreate {
3877
- name: string;
3878
- eventType: string;
3879
- url?: string;
3880
- enabled?: boolean;
3881
- config?: Record<string, any>;
3882
- }
3883
- interface NotificationUpdate {
3884
- name?: string;
3885
- eventType?: string;
3886
- url?: string;
3887
- enabled?: boolean;
3888
- config?: Record<string, any>;
3889
- }
3816
+ type Notification = components['schemas']['GroupEventNotifierRead'];
3817
+ type NotificationCreate = components['schemas']['GroupEventNotifierCreate'];
3818
+ type NotificationUpdate = components['schemas']['GroupEventNotifierUpdate'];
3890
3819
  declare class NotificationsModule {
3891
3820
  private http;
3892
3821
  constructor(http: HttpClient);
@@ -3929,14 +3858,7 @@ type Webhook = components['schemas']['WebhookRead'];
3929
3858
  type WebhookCreate = components['schemas']['WebhookCreate'];
3930
3859
  type WebhookPagination = components['schemas']['WebhookPagination'];
3931
3860
  type WebhookMethod = components['schemas']['WebhookMethod'];
3932
- interface WebhookUpdate {
3933
- name?: string;
3934
- url?: string;
3935
- enabled?: boolean;
3936
- eventTypes?: string[];
3937
- method?: WebhookMethod;
3938
- headers?: Record<string, string>;
3939
- }
3861
+ type WebhookUpdate = components['schemas']['WebhookCreate'];
3940
3862
  declare class WebhooksModule {
3941
3863
  private http;
3942
3864
  constructor(http: HttpClient);
@@ -4173,38 +4095,12 @@ declare class AdminMaintenanceModule {
4173
4095
  * User profile and personal API token management
4174
4096
  */
4175
4097
 
4176
- interface UserProfile {
4177
- id: string;
4178
- username: string;
4179
- email: string;
4180
- fullName?: string | null;
4181
- admin: boolean;
4182
- }
4183
- interface ApiToken {
4184
- id: string;
4185
- name: string;
4186
- description?: string | null;
4187
- lastUsedAt?: string | null;
4188
- createdAt: string;
4189
- expiresAt?: string | null;
4190
- }
4191
- interface ApiTokenCreate {
4192
- name: string;
4193
- description?: string | null;
4194
- expiresAt?: string | null;
4195
- }
4196
- interface ApiTokenWithToken extends ApiToken {
4197
- token: string;
4198
- }
4199
- interface PasswordChange {
4200
- currentPassword: string;
4201
- newPassword: string;
4202
- }
4203
- interface UserProfileUpdate {
4204
- username?: string;
4205
- email?: string;
4206
- fullName?: string | null;
4207
- }
4098
+ type UserProfile = components['schemas']['UserRead'];
4099
+ type UserProfileUpdate = components['schemas']['UserUpdate'];
4100
+ type ApiToken = components['schemas']['LongLiveTokenRead'];
4101
+ type ApiTokenCreate = components['schemas']['LongLiveTokenCreate'];
4102
+ type ApiTokenWithToken = components['schemas']['LongLiveTokenWithToken'];
4103
+ type PasswordChange = components['schemas']['ChangePassword'];
4208
4104
  declare class UserModule {
4209
4105
  private http;
4210
4106
  constructor(http: HttpClient);
@@ -4431,57 +4327,11 @@ declare class ThemeModule {
4431
4327
  * Manage workspace email templates
4432
4328
  */
4433
4329
 
4434
- interface EmailTemplateSummary {
4435
- id: string;
4436
- template_type: string;
4437
- group_id: string | null;
4438
- name: string;
4439
- description?: string;
4440
- enabled: boolean;
4441
- created_at: string;
4442
- updated_at: string;
4443
- }
4444
- interface EmailTemplateRead extends EmailTemplateSummary {
4445
- subject: string;
4446
- header_text?: string;
4447
- message_top?: string;
4448
- message_bottom?: string;
4449
- button_text?: string;
4450
- custom_html?: string;
4451
- available_variables?: Record<string, string>;
4452
- }
4453
- interface EmailTemplateCreate {
4454
- template_type: string;
4455
- group_id?: string;
4456
- name: string;
4457
- description?: string;
4458
- subject: string;
4459
- header_text?: string;
4460
- message_top?: string;
4461
- message_bottom?: string;
4462
- button_text?: string;
4463
- custom_html?: string;
4464
- available_variables?: Record<string, string>;
4465
- enabled?: boolean;
4466
- }
4467
- interface EmailTemplateUpdate {
4468
- name?: string;
4469
- description?: string;
4470
- subject?: string;
4471
- header_text?: string;
4472
- message_top?: string;
4473
- message_bottom?: string;
4474
- button_text?: string;
4475
- custom_html?: string;
4476
- available_variables?: Record<string, string>;
4477
- enabled?: boolean;
4478
- }
4479
- interface TestEmailRequest {
4480
- recipient_email: string;
4481
- }
4482
- interface TestEmailResponse {
4483
- message: string;
4484
- }
4330
+ type EmailTemplateSummary = components['schemas']['EmailTemplateSummary'];
4331
+ type EmailTemplateRead = components['schemas']['EmailTemplateRead'];
4332
+ type EmailTemplateCreate = components['schemas']['EmailTemplateCreate'];
4333
+ type EmailTemplateUpdate = components['schemas']['EmailTemplateUpdate'];
4334
+ type TestEmailRequest = components['schemas']['EmailTest'];
4485
4335
  /**
4486
4336
  * Email Templates API client for workspace-scoped templates
4487
4337
  */
@@ -4490,41 +4340,30 @@ declare class EmailTemplatesClient {
4490
4340
  constructor(http: HttpClient);
4491
4341
  /**
4492
4342
  * List all email templates for the workspace
4493
- * @param groupId - Workspace ID
4494
4343
  */
4495
4344
  list(groupId: string): Promise<EmailTemplateSummary[]>;
4496
4345
  /**
4497
4346
  * Get a specific email template
4498
- * @param groupId - Workspace ID
4499
- * @param templateId - Template ID
4500
4347
  */
4501
4348
  get(groupId: string, templateId: string): Promise<EmailTemplateRead>;
4502
4349
  /**
4503
4350
  * Create a new email template
4504
- * @param groupId - Workspace ID
4505
- * @param data - Template data
4506
4351
  */
4507
4352
  create(groupId: string, data: EmailTemplateCreate): Promise<EmailTemplateRead>;
4508
4353
  /**
4509
4354
  * Update an email template
4510
- * @param groupId - Workspace ID
4511
- * @param templateId - Template ID
4512
- * @param data - Updated template data
4513
4355
  */
4514
4356
  update(groupId: string, templateId: string, data: EmailTemplateUpdate): Promise<EmailTemplateRead>;
4515
4357
  /**
4516
4358
  * Delete an email template
4517
- * @param groupId - Workspace ID
4518
- * @param templateId - Template ID
4519
4359
  */
4520
4360
  delete(groupId: string, templateId: string): Promise<void>;
4521
4361
  /**
4522
4362
  * Send a test email using a template
4523
- * @param groupId - Workspace ID
4524
- * @param templateId - Template ID
4525
- * @param recipientEmail - Test recipient email address
4526
4363
  */
4527
- sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<TestEmailResponse>;
4364
+ sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<{
4365
+ message: string;
4366
+ }>;
4528
4367
  }
4529
4368
 
4530
4369
  /**
@@ -4693,4 +4532,4 @@ declare class PlatformClient extends HttpClient {
4693
4532
  */
4694
4533
  declare function createPlatformClient(config?: Partial<PlatformClientConfig>): PlatformClient;
4695
4534
 
4696
- export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, type AppTheme, AssetsModule, AuthModule, CollectionsModule, type EmailInvitationRequest, type EmailSettings, type EmailSettingsUpdate, type EmailTemplateCreate, type EmailTemplateRead, type EmailTemplateSummary, type EmailTemplateUpdate, EmailTemplatesClient, EntriesModule, EntryTypesModule, type EventLogEntry, EventLogModule, type EventLogQueryParams, type EventLogSummary, type EventOption, EventsModule, FormsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformForm, type PlatformFormCreate, type PlatformFormSubmission, type PlatformFormUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type ScheduledTask, type ScheduledTaskCreate, type ScheduledTaskExecutionLog, type ScheduledTaskUpdate, ScheduledTasksModule, type StartupInfo, type SystemStatistics, type TaskTypeInfo, type TestEmailRequest, type TestEmailResponse, ThemeModule, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserProfileUpdate, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient, createPlatformConfigFromEnv };
4535
+ export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, type AppTheme, AssetsModule, AuthModule, CollectionsModule, type EmailInvitationRequest, type EmailSettings, type EmailSettingsUpdate, type EmailTemplateCreate, type EmailTemplateRead, type EmailTemplateSummary, type EmailTemplateUpdate, EmailTemplatesClient, EntriesModule, EntryTypesModule, type EventLogEntry, EventLogModule, type EventLogQueryParams, type EventLogSummary, type EventOption, EventsModule, FormsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformForm, type PlatformFormCreate, type PlatformFormSubmission, type PlatformFormUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type ScheduledTask, type ScheduledTaskCreate, type ScheduledTaskExecutionLog, type ScheduledTaskUpdate, ScheduledTasksModule, type StartupInfo, type SystemStatistics, type TaskTypeInfo, type TestEmailRequest, ThemeModule, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserProfileUpdate, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient, createPlatformConfigFromEnv };
@@ -3630,30 +3630,8 @@ declare class APIClientsModule {
3630
3630
  * Entry Types Module - Platform API
3631
3631
  */
3632
3632
 
3633
- interface EntryTypeCreate {
3634
- name: string;
3635
- slug?: string;
3636
- description?: string;
3637
- icon?: string;
3638
- color?: string;
3639
- sortOrder?: number;
3640
- isRendered?: boolean;
3641
- schemaJson?: Record<string, unknown>;
3642
- renderingJson?: Record<string, unknown>;
3643
- capabilitiesJson?: Record<string, unknown>;
3644
- }
3645
- interface EntryTypeUpdate {
3646
- name?: string;
3647
- slug?: string;
3648
- description?: string;
3649
- icon?: string;
3650
- color?: string;
3651
- sortOrder?: number;
3652
- isRendered?: boolean;
3653
- schemaJson?: Record<string, unknown>;
3654
- renderingJson?: Record<string, unknown>;
3655
- capabilitiesJson?: Record<string, unknown>;
3656
- }
3633
+ type EntryTypeCreate = components['schemas']['EntryTypeCreate'];
3634
+ type EntryTypeUpdate = components['schemas']['EntryTypeUpdate'];
3657
3635
  declare class EntryTypesModule {
3658
3636
  private http;
3659
3637
  constructor(http: HttpClient);
@@ -3716,45 +3694,15 @@ declare class WorkspaceMembersModule {
3716
3694
  * Workspace activation and listing operations
3717
3695
  */
3718
3696
 
3719
- interface Workspace {
3720
- id: string;
3721
- slug: string;
3722
- name: string;
3723
- description?: string | null;
3724
- }
3725
- interface WorkspaceWithMembership {
3726
- workspace: Workspace;
3727
- role: string;
3728
- isActive: boolean;
3729
- }
3697
+ type Workspace = components['schemas']['GroupRead'];
3698
+ type WorkspaceCreate = components['schemas']['GroupCreate'];
3699
+ type WorkspaceUpdate = components['schemas']['GroupAdminUpdate'];
3700
+ type WorkspacePreferences = components['schemas']['GroupPreferencesRead'];
3701
+ type WorkspacePreferencesUpdate = components['schemas']['GroupPreferencesUpdate'];
3702
+ type WorkspaceWithMembership = components['schemas']['WorkspaceWithMembership'];
3730
3703
  interface WorkspaceActivationRequest {
3731
3704
  workspace: string;
3732
3705
  }
3733
- interface WorkspaceCreate {
3734
- name: string;
3735
- slug?: string;
3736
- description?: string | null;
3737
- }
3738
- interface WorkspaceUpdate {
3739
- name?: string;
3740
- description?: string | null;
3741
- }
3742
- /**
3743
- * Workspace preferences - dynamic key-value store
3744
- * Common keys include: theme, locale, notifications, etc.
3745
- */
3746
- interface WorkspacePreferences {
3747
- theme?: string;
3748
- locale?: string;
3749
- notifications?: boolean;
3750
- [key: string]: unknown;
3751
- }
3752
- interface WorkspacePreferencesUpdate {
3753
- theme?: string;
3754
- locale?: string;
3755
- notifications?: boolean;
3756
- [key: string]: unknown;
3757
- }
3758
3706
  declare class WorkspacesModule {
3759
3707
  private http;
3760
3708
  constructor(http: HttpClient);
@@ -3865,28 +3813,9 @@ declare class InvitesModule {
3865
3813
  * Manage workspace notifications
3866
3814
  */
3867
3815
 
3868
- interface Notification {
3869
- id: string;
3870
- name: string;
3871
- enabled: boolean;
3872
- eventType: string;
3873
- url?: string;
3874
- config?: Record<string, any>;
3875
- }
3876
- interface NotificationCreate {
3877
- name: string;
3878
- eventType: string;
3879
- url?: string;
3880
- enabled?: boolean;
3881
- config?: Record<string, any>;
3882
- }
3883
- interface NotificationUpdate {
3884
- name?: string;
3885
- eventType?: string;
3886
- url?: string;
3887
- enabled?: boolean;
3888
- config?: Record<string, any>;
3889
- }
3816
+ type Notification = components['schemas']['GroupEventNotifierRead'];
3817
+ type NotificationCreate = components['schemas']['GroupEventNotifierCreate'];
3818
+ type NotificationUpdate = components['schemas']['GroupEventNotifierUpdate'];
3890
3819
  declare class NotificationsModule {
3891
3820
  private http;
3892
3821
  constructor(http: HttpClient);
@@ -3929,14 +3858,7 @@ type Webhook = components['schemas']['WebhookRead'];
3929
3858
  type WebhookCreate = components['schemas']['WebhookCreate'];
3930
3859
  type WebhookPagination = components['schemas']['WebhookPagination'];
3931
3860
  type WebhookMethod = components['schemas']['WebhookMethod'];
3932
- interface WebhookUpdate {
3933
- name?: string;
3934
- url?: string;
3935
- enabled?: boolean;
3936
- eventTypes?: string[];
3937
- method?: WebhookMethod;
3938
- headers?: Record<string, string>;
3939
- }
3861
+ type WebhookUpdate = components['schemas']['WebhookCreate'];
3940
3862
  declare class WebhooksModule {
3941
3863
  private http;
3942
3864
  constructor(http: HttpClient);
@@ -4173,38 +4095,12 @@ declare class AdminMaintenanceModule {
4173
4095
  * User profile and personal API token management
4174
4096
  */
4175
4097
 
4176
- interface UserProfile {
4177
- id: string;
4178
- username: string;
4179
- email: string;
4180
- fullName?: string | null;
4181
- admin: boolean;
4182
- }
4183
- interface ApiToken {
4184
- id: string;
4185
- name: string;
4186
- description?: string | null;
4187
- lastUsedAt?: string | null;
4188
- createdAt: string;
4189
- expiresAt?: string | null;
4190
- }
4191
- interface ApiTokenCreate {
4192
- name: string;
4193
- description?: string | null;
4194
- expiresAt?: string | null;
4195
- }
4196
- interface ApiTokenWithToken extends ApiToken {
4197
- token: string;
4198
- }
4199
- interface PasswordChange {
4200
- currentPassword: string;
4201
- newPassword: string;
4202
- }
4203
- interface UserProfileUpdate {
4204
- username?: string;
4205
- email?: string;
4206
- fullName?: string | null;
4207
- }
4098
+ type UserProfile = components['schemas']['UserRead'];
4099
+ type UserProfileUpdate = components['schemas']['UserUpdate'];
4100
+ type ApiToken = components['schemas']['LongLiveTokenRead'];
4101
+ type ApiTokenCreate = components['schemas']['LongLiveTokenCreate'];
4102
+ type ApiTokenWithToken = components['schemas']['LongLiveTokenWithToken'];
4103
+ type PasswordChange = components['schemas']['ChangePassword'];
4208
4104
  declare class UserModule {
4209
4105
  private http;
4210
4106
  constructor(http: HttpClient);
@@ -4431,57 +4327,11 @@ declare class ThemeModule {
4431
4327
  * Manage workspace email templates
4432
4328
  */
4433
4329
 
4434
- interface EmailTemplateSummary {
4435
- id: string;
4436
- template_type: string;
4437
- group_id: string | null;
4438
- name: string;
4439
- description?: string;
4440
- enabled: boolean;
4441
- created_at: string;
4442
- updated_at: string;
4443
- }
4444
- interface EmailTemplateRead extends EmailTemplateSummary {
4445
- subject: string;
4446
- header_text?: string;
4447
- message_top?: string;
4448
- message_bottom?: string;
4449
- button_text?: string;
4450
- custom_html?: string;
4451
- available_variables?: Record<string, string>;
4452
- }
4453
- interface EmailTemplateCreate {
4454
- template_type: string;
4455
- group_id?: string;
4456
- name: string;
4457
- description?: string;
4458
- subject: string;
4459
- header_text?: string;
4460
- message_top?: string;
4461
- message_bottom?: string;
4462
- button_text?: string;
4463
- custom_html?: string;
4464
- available_variables?: Record<string, string>;
4465
- enabled?: boolean;
4466
- }
4467
- interface EmailTemplateUpdate {
4468
- name?: string;
4469
- description?: string;
4470
- subject?: string;
4471
- header_text?: string;
4472
- message_top?: string;
4473
- message_bottom?: string;
4474
- button_text?: string;
4475
- custom_html?: string;
4476
- available_variables?: Record<string, string>;
4477
- enabled?: boolean;
4478
- }
4479
- interface TestEmailRequest {
4480
- recipient_email: string;
4481
- }
4482
- interface TestEmailResponse {
4483
- message: string;
4484
- }
4330
+ type EmailTemplateSummary = components['schemas']['EmailTemplateSummary'];
4331
+ type EmailTemplateRead = components['schemas']['EmailTemplateRead'];
4332
+ type EmailTemplateCreate = components['schemas']['EmailTemplateCreate'];
4333
+ type EmailTemplateUpdate = components['schemas']['EmailTemplateUpdate'];
4334
+ type TestEmailRequest = components['schemas']['EmailTest'];
4485
4335
  /**
4486
4336
  * Email Templates API client for workspace-scoped templates
4487
4337
  */
@@ -4490,41 +4340,30 @@ declare class EmailTemplatesClient {
4490
4340
  constructor(http: HttpClient);
4491
4341
  /**
4492
4342
  * List all email templates for the workspace
4493
- * @param groupId - Workspace ID
4494
4343
  */
4495
4344
  list(groupId: string): Promise<EmailTemplateSummary[]>;
4496
4345
  /**
4497
4346
  * Get a specific email template
4498
- * @param groupId - Workspace ID
4499
- * @param templateId - Template ID
4500
4347
  */
4501
4348
  get(groupId: string, templateId: string): Promise<EmailTemplateRead>;
4502
4349
  /**
4503
4350
  * Create a new email template
4504
- * @param groupId - Workspace ID
4505
- * @param data - Template data
4506
4351
  */
4507
4352
  create(groupId: string, data: EmailTemplateCreate): Promise<EmailTemplateRead>;
4508
4353
  /**
4509
4354
  * Update an email template
4510
- * @param groupId - Workspace ID
4511
- * @param templateId - Template ID
4512
- * @param data - Updated template data
4513
4355
  */
4514
4356
  update(groupId: string, templateId: string, data: EmailTemplateUpdate): Promise<EmailTemplateRead>;
4515
4357
  /**
4516
4358
  * Delete an email template
4517
- * @param groupId - Workspace ID
4518
- * @param templateId - Template ID
4519
4359
  */
4520
4360
  delete(groupId: string, templateId: string): Promise<void>;
4521
4361
  /**
4522
4362
  * Send a test email using a template
4523
- * @param groupId - Workspace ID
4524
- * @param templateId - Template ID
4525
- * @param recipientEmail - Test recipient email address
4526
4363
  */
4527
- sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<TestEmailResponse>;
4364
+ sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<{
4365
+ message: string;
4366
+ }>;
4528
4367
  }
4529
4368
 
4530
4369
  /**
@@ -4693,4 +4532,4 @@ declare class PlatformClient extends HttpClient {
4693
4532
  */
4694
4533
  declare function createPlatformClient(config?: Partial<PlatformClientConfig>): PlatformClient;
4695
4534
 
4696
- export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, type AppTheme, AssetsModule, AuthModule, CollectionsModule, type EmailInvitationRequest, type EmailSettings, type EmailSettingsUpdate, type EmailTemplateCreate, type EmailTemplateRead, type EmailTemplateSummary, type EmailTemplateUpdate, EmailTemplatesClient, EntriesModule, EntryTypesModule, type EventLogEntry, EventLogModule, type EventLogQueryParams, type EventLogSummary, type EventOption, EventsModule, FormsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformForm, type PlatformFormCreate, type PlatformFormSubmission, type PlatformFormUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type ScheduledTask, type ScheduledTaskCreate, type ScheduledTaskExecutionLog, type ScheduledTaskUpdate, ScheduledTasksModule, type StartupInfo, type SystemStatistics, type TaskTypeInfo, type TestEmailRequest, type TestEmailResponse, ThemeModule, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserProfileUpdate, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient, createPlatformConfigFromEnv };
4535
+ export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, type AppTheme, AssetsModule, AuthModule, CollectionsModule, type EmailInvitationRequest, type EmailSettings, type EmailSettingsUpdate, type EmailTemplateCreate, type EmailTemplateRead, type EmailTemplateSummary, type EmailTemplateUpdate, EmailTemplatesClient, EntriesModule, EntryTypesModule, type EventLogEntry, EventLogModule, type EventLogQueryParams, type EventLogSummary, type EventOption, EventsModule, FormsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformForm, type PlatformFormCreate, type PlatformFormSubmission, type PlatformFormUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type ScheduledTask, type ScheduledTaskCreate, type ScheduledTaskExecutionLog, type ScheduledTaskUpdate, ScheduledTasksModule, type StartupInfo, type SystemStatistics, type TaskTypeInfo, type TestEmailRequest, ThemeModule, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserProfileUpdate, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient, createPlatformConfigFromEnv };
package/dist/platform.js CHANGED
@@ -1124,53 +1124,40 @@ var EmailTemplatesClient = class {
1124
1124
  http;
1125
1125
  /**
1126
1126
  * List all email templates for the workspace
1127
- * @param groupId - Workspace ID
1128
1127
  */
1129
1128
  async list(groupId) {
1130
1129
  return this.http.get(`/api/platform/workspaces/${groupId}/email-templates`);
1131
1130
  }
1132
1131
  /**
1133
1132
  * Get a specific email template
1134
- * @param groupId - Workspace ID
1135
- * @param templateId - Template ID
1136
1133
  */
1137
1134
  async get(groupId, templateId) {
1138
1135
  return this.http.get(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
1139
1136
  }
1140
1137
  /**
1141
1138
  * Create a new email template
1142
- * @param groupId - Workspace ID
1143
- * @param data - Template data
1144
1139
  */
1145
1140
  async create(groupId, data) {
1146
1141
  return this.http.post(`/api/platform/workspaces/${groupId}/email-templates`, data);
1147
1142
  }
1148
1143
  /**
1149
1144
  * Update an email template
1150
- * @param groupId - Workspace ID
1151
- * @param templateId - Template ID
1152
- * @param data - Updated template data
1153
1145
  */
1154
1146
  async update(groupId, templateId, data) {
1155
1147
  return this.http.patch(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`, data);
1156
1148
  }
1157
1149
  /**
1158
1150
  * Delete an email template
1159
- * @param groupId - Workspace ID
1160
- * @param templateId - Template ID
1161
1151
  */
1162
1152
  async delete(groupId, templateId) {
1163
1153
  await this.http.delete(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
1164
1154
  }
1165
1155
  /**
1166
1156
  * Send a test email using a template
1167
- * @param groupId - Workspace ID
1168
- * @param templateId - Template ID
1169
- * @param recipientEmail - Test recipient email address
1170
1157
  */
1171
1158
  async sendTest(groupId, templateId, recipientEmail) {
1172
1159
  return this.http.post(`/api/platform/workspaces/${groupId}/email-templates/${templateId}/test`, {
1173
- recipient_email: recipientEmail
1160
+ email: recipientEmail
1174
1161
  });
1175
1162
  }
1176
1163
  };