@inneropen/marvin-sdk 2.0.0-next.23 → 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,31 +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
- isSystem?: boolean;
3641
- isRendered?: boolean;
3642
- schemaJson?: Record<string, unknown>;
3643
- renderingJson?: Record<string, unknown>;
3644
- capabilitiesJson?: Record<string, unknown>;
3645
- }
3646
- interface EntryTypeUpdate {
3647
- name?: string;
3648
- slug?: string;
3649
- description?: string;
3650
- icon?: string;
3651
- color?: string;
3652
- sortOrder?: number;
3653
- isRendered?: boolean;
3654
- schemaJson?: Record<string, unknown>;
3655
- renderingJson?: Record<string, unknown>;
3656
- capabilitiesJson?: Record<string, unknown>;
3657
- }
3633
+ type EntryTypeCreate = components['schemas']['EntryTypeCreate'];
3634
+ type EntryTypeUpdate = components['schemas']['EntryTypeUpdate'];
3658
3635
  declare class EntryTypesModule {
3659
3636
  private http;
3660
3637
  constructor(http: HttpClient);
@@ -3717,45 +3694,15 @@ declare class WorkspaceMembersModule {
3717
3694
  * Workspace activation and listing operations
3718
3695
  */
3719
3696
 
3720
- interface Workspace {
3721
- id: string;
3722
- slug: string;
3723
- name: string;
3724
- description?: string | null;
3725
- }
3726
- interface WorkspaceWithMembership {
3727
- workspace: Workspace;
3728
- role: string;
3729
- isActive: boolean;
3730
- }
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'];
3731
3703
  interface WorkspaceActivationRequest {
3732
3704
  workspace: string;
3733
3705
  }
3734
- interface WorkspaceCreate {
3735
- name: string;
3736
- slug?: string;
3737
- description?: string | null;
3738
- }
3739
- interface WorkspaceUpdate {
3740
- name?: string;
3741
- description?: string | null;
3742
- }
3743
- /**
3744
- * Workspace preferences - dynamic key-value store
3745
- * Common keys include: theme, locale, notifications, etc.
3746
- */
3747
- interface WorkspacePreferences {
3748
- theme?: string;
3749
- locale?: string;
3750
- notifications?: boolean;
3751
- [key: string]: unknown;
3752
- }
3753
- interface WorkspacePreferencesUpdate {
3754
- theme?: string;
3755
- locale?: string;
3756
- notifications?: boolean;
3757
- [key: string]: unknown;
3758
- }
3759
3706
  declare class WorkspacesModule {
3760
3707
  private http;
3761
3708
  constructor(http: HttpClient);
@@ -3866,28 +3813,9 @@ declare class InvitesModule {
3866
3813
  * Manage workspace notifications
3867
3814
  */
3868
3815
 
3869
- interface Notification {
3870
- id: string;
3871
- name: string;
3872
- enabled: boolean;
3873
- eventType: string;
3874
- url?: string;
3875
- config?: Record<string, any>;
3876
- }
3877
- interface NotificationCreate {
3878
- name: string;
3879
- eventType: string;
3880
- url?: string;
3881
- enabled?: boolean;
3882
- config?: Record<string, any>;
3883
- }
3884
- interface NotificationUpdate {
3885
- name?: string;
3886
- eventType?: string;
3887
- url?: string;
3888
- enabled?: boolean;
3889
- config?: Record<string, any>;
3890
- }
3816
+ type Notification = components['schemas']['GroupEventNotifierRead'];
3817
+ type NotificationCreate = components['schemas']['GroupEventNotifierCreate'];
3818
+ type NotificationUpdate = components['schemas']['GroupEventNotifierUpdate'];
3891
3819
  declare class NotificationsModule {
3892
3820
  private http;
3893
3821
  constructor(http: HttpClient);
@@ -3930,14 +3858,7 @@ type Webhook = components['schemas']['WebhookRead'];
3930
3858
  type WebhookCreate = components['schemas']['WebhookCreate'];
3931
3859
  type WebhookPagination = components['schemas']['WebhookPagination'];
3932
3860
  type WebhookMethod = components['schemas']['WebhookMethod'];
3933
- interface WebhookUpdate {
3934
- name?: string;
3935
- url?: string;
3936
- enabled?: boolean;
3937
- eventTypes?: string[];
3938
- method?: WebhookMethod;
3939
- headers?: Record<string, string>;
3940
- }
3861
+ type WebhookUpdate = components['schemas']['WebhookCreate'];
3941
3862
  declare class WebhooksModule {
3942
3863
  private http;
3943
3864
  constructor(http: HttpClient);
@@ -4174,38 +4095,12 @@ declare class AdminMaintenanceModule {
4174
4095
  * User profile and personal API token management
4175
4096
  */
4176
4097
 
4177
- interface UserProfile {
4178
- id: string;
4179
- username: string;
4180
- email: string;
4181
- fullName?: string | null;
4182
- admin: boolean;
4183
- }
4184
- interface ApiToken {
4185
- id: string;
4186
- name: string;
4187
- description?: string | null;
4188
- lastUsedAt?: string | null;
4189
- createdAt: string;
4190
- expiresAt?: string | null;
4191
- }
4192
- interface ApiTokenCreate {
4193
- name: string;
4194
- description?: string | null;
4195
- expiresAt?: string | null;
4196
- }
4197
- interface ApiTokenWithToken extends ApiToken {
4198
- token: string;
4199
- }
4200
- interface PasswordChange {
4201
- currentPassword: string;
4202
- newPassword: string;
4203
- }
4204
- interface UserProfileUpdate {
4205
- username?: string;
4206
- email?: string;
4207
- fullName?: string | null;
4208
- }
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'];
4209
4104
  declare class UserModule {
4210
4105
  private http;
4211
4106
  constructor(http: HttpClient);
@@ -4432,57 +4327,11 @@ declare class ThemeModule {
4432
4327
  * Manage workspace email templates
4433
4328
  */
4434
4329
 
4435
- interface EmailTemplateSummary {
4436
- id: string;
4437
- template_type: string;
4438
- group_id: string | null;
4439
- name: string;
4440
- description?: string;
4441
- enabled: boolean;
4442
- created_at: string;
4443
- updated_at: string;
4444
- }
4445
- interface EmailTemplateRead extends EmailTemplateSummary {
4446
- subject: string;
4447
- header_text?: string;
4448
- message_top?: string;
4449
- message_bottom?: string;
4450
- button_text?: string;
4451
- custom_html?: string;
4452
- available_variables?: Record<string, string>;
4453
- }
4454
- interface EmailTemplateCreate {
4455
- template_type: string;
4456
- group_id?: string;
4457
- name: string;
4458
- description?: string;
4459
- subject: string;
4460
- header_text?: string;
4461
- message_top?: string;
4462
- message_bottom?: string;
4463
- button_text?: string;
4464
- custom_html?: string;
4465
- available_variables?: Record<string, string>;
4466
- enabled?: boolean;
4467
- }
4468
- interface EmailTemplateUpdate {
4469
- name?: string;
4470
- description?: string;
4471
- subject?: string;
4472
- header_text?: string;
4473
- message_top?: string;
4474
- message_bottom?: string;
4475
- button_text?: string;
4476
- custom_html?: string;
4477
- available_variables?: Record<string, string>;
4478
- enabled?: boolean;
4479
- }
4480
- interface TestEmailRequest {
4481
- recipient_email: string;
4482
- }
4483
- interface TestEmailResponse {
4484
- message: string;
4485
- }
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'];
4486
4335
  /**
4487
4336
  * Email Templates API client for workspace-scoped templates
4488
4337
  */
@@ -4491,41 +4340,30 @@ declare class EmailTemplatesClient {
4491
4340
  constructor(http: HttpClient);
4492
4341
  /**
4493
4342
  * List all email templates for the workspace
4494
- * @param groupId - Workspace ID
4495
4343
  */
4496
4344
  list(groupId: string): Promise<EmailTemplateSummary[]>;
4497
4345
  /**
4498
4346
  * Get a specific email template
4499
- * @param groupId - Workspace ID
4500
- * @param templateId - Template ID
4501
4347
  */
4502
4348
  get(groupId: string, templateId: string): Promise<EmailTemplateRead>;
4503
4349
  /**
4504
4350
  * Create a new email template
4505
- * @param groupId - Workspace ID
4506
- * @param data - Template data
4507
4351
  */
4508
4352
  create(groupId: string, data: EmailTemplateCreate): Promise<EmailTemplateRead>;
4509
4353
  /**
4510
4354
  * Update an email template
4511
- * @param groupId - Workspace ID
4512
- * @param templateId - Template ID
4513
- * @param data - Updated template data
4514
4355
  */
4515
4356
  update(groupId: string, templateId: string, data: EmailTemplateUpdate): Promise<EmailTemplateRead>;
4516
4357
  /**
4517
4358
  * Delete an email template
4518
- * @param groupId - Workspace ID
4519
- * @param templateId - Template ID
4520
4359
  */
4521
4360
  delete(groupId: string, templateId: string): Promise<void>;
4522
4361
  /**
4523
4362
  * Send a test email using a template
4524
- * @param groupId - Workspace ID
4525
- * @param templateId - Template ID
4526
- * @param recipientEmail - Test recipient email address
4527
4363
  */
4528
- sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<TestEmailResponse>;
4364
+ sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<{
4365
+ message: string;
4366
+ }>;
4529
4367
  }
4530
4368
 
4531
4369
  /**
@@ -4694,4 +4532,4 @@ declare class PlatformClient extends HttpClient {
4694
4532
  */
4695
4533
  declare function createPlatformClient(config?: Partial<PlatformClientConfig>): PlatformClient;
4696
4534
 
4697
- 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,31 +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
- isSystem?: boolean;
3641
- isRendered?: boolean;
3642
- schemaJson?: Record<string, unknown>;
3643
- renderingJson?: Record<string, unknown>;
3644
- capabilitiesJson?: Record<string, unknown>;
3645
- }
3646
- interface EntryTypeUpdate {
3647
- name?: string;
3648
- slug?: string;
3649
- description?: string;
3650
- icon?: string;
3651
- color?: string;
3652
- sortOrder?: number;
3653
- isRendered?: boolean;
3654
- schemaJson?: Record<string, unknown>;
3655
- renderingJson?: Record<string, unknown>;
3656
- capabilitiesJson?: Record<string, unknown>;
3657
- }
3633
+ type EntryTypeCreate = components['schemas']['EntryTypeCreate'];
3634
+ type EntryTypeUpdate = components['schemas']['EntryTypeUpdate'];
3658
3635
  declare class EntryTypesModule {
3659
3636
  private http;
3660
3637
  constructor(http: HttpClient);
@@ -3717,45 +3694,15 @@ declare class WorkspaceMembersModule {
3717
3694
  * Workspace activation and listing operations
3718
3695
  */
3719
3696
 
3720
- interface Workspace {
3721
- id: string;
3722
- slug: string;
3723
- name: string;
3724
- description?: string | null;
3725
- }
3726
- interface WorkspaceWithMembership {
3727
- workspace: Workspace;
3728
- role: string;
3729
- isActive: boolean;
3730
- }
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'];
3731
3703
  interface WorkspaceActivationRequest {
3732
3704
  workspace: string;
3733
3705
  }
3734
- interface WorkspaceCreate {
3735
- name: string;
3736
- slug?: string;
3737
- description?: string | null;
3738
- }
3739
- interface WorkspaceUpdate {
3740
- name?: string;
3741
- description?: string | null;
3742
- }
3743
- /**
3744
- * Workspace preferences - dynamic key-value store
3745
- * Common keys include: theme, locale, notifications, etc.
3746
- */
3747
- interface WorkspacePreferences {
3748
- theme?: string;
3749
- locale?: string;
3750
- notifications?: boolean;
3751
- [key: string]: unknown;
3752
- }
3753
- interface WorkspacePreferencesUpdate {
3754
- theme?: string;
3755
- locale?: string;
3756
- notifications?: boolean;
3757
- [key: string]: unknown;
3758
- }
3759
3706
  declare class WorkspacesModule {
3760
3707
  private http;
3761
3708
  constructor(http: HttpClient);
@@ -3866,28 +3813,9 @@ declare class InvitesModule {
3866
3813
  * Manage workspace notifications
3867
3814
  */
3868
3815
 
3869
- interface Notification {
3870
- id: string;
3871
- name: string;
3872
- enabled: boolean;
3873
- eventType: string;
3874
- url?: string;
3875
- config?: Record<string, any>;
3876
- }
3877
- interface NotificationCreate {
3878
- name: string;
3879
- eventType: string;
3880
- url?: string;
3881
- enabled?: boolean;
3882
- config?: Record<string, any>;
3883
- }
3884
- interface NotificationUpdate {
3885
- name?: string;
3886
- eventType?: string;
3887
- url?: string;
3888
- enabled?: boolean;
3889
- config?: Record<string, any>;
3890
- }
3816
+ type Notification = components['schemas']['GroupEventNotifierRead'];
3817
+ type NotificationCreate = components['schemas']['GroupEventNotifierCreate'];
3818
+ type NotificationUpdate = components['schemas']['GroupEventNotifierUpdate'];
3891
3819
  declare class NotificationsModule {
3892
3820
  private http;
3893
3821
  constructor(http: HttpClient);
@@ -3930,14 +3858,7 @@ type Webhook = components['schemas']['WebhookRead'];
3930
3858
  type WebhookCreate = components['schemas']['WebhookCreate'];
3931
3859
  type WebhookPagination = components['schemas']['WebhookPagination'];
3932
3860
  type WebhookMethod = components['schemas']['WebhookMethod'];
3933
- interface WebhookUpdate {
3934
- name?: string;
3935
- url?: string;
3936
- enabled?: boolean;
3937
- eventTypes?: string[];
3938
- method?: WebhookMethod;
3939
- headers?: Record<string, string>;
3940
- }
3861
+ type WebhookUpdate = components['schemas']['WebhookCreate'];
3941
3862
  declare class WebhooksModule {
3942
3863
  private http;
3943
3864
  constructor(http: HttpClient);
@@ -4174,38 +4095,12 @@ declare class AdminMaintenanceModule {
4174
4095
  * User profile and personal API token management
4175
4096
  */
4176
4097
 
4177
- interface UserProfile {
4178
- id: string;
4179
- username: string;
4180
- email: string;
4181
- fullName?: string | null;
4182
- admin: boolean;
4183
- }
4184
- interface ApiToken {
4185
- id: string;
4186
- name: string;
4187
- description?: string | null;
4188
- lastUsedAt?: string | null;
4189
- createdAt: string;
4190
- expiresAt?: string | null;
4191
- }
4192
- interface ApiTokenCreate {
4193
- name: string;
4194
- description?: string | null;
4195
- expiresAt?: string | null;
4196
- }
4197
- interface ApiTokenWithToken extends ApiToken {
4198
- token: string;
4199
- }
4200
- interface PasswordChange {
4201
- currentPassword: string;
4202
- newPassword: string;
4203
- }
4204
- interface UserProfileUpdate {
4205
- username?: string;
4206
- email?: string;
4207
- fullName?: string | null;
4208
- }
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'];
4209
4104
  declare class UserModule {
4210
4105
  private http;
4211
4106
  constructor(http: HttpClient);
@@ -4432,57 +4327,11 @@ declare class ThemeModule {
4432
4327
  * Manage workspace email templates
4433
4328
  */
4434
4329
 
4435
- interface EmailTemplateSummary {
4436
- id: string;
4437
- template_type: string;
4438
- group_id: string | null;
4439
- name: string;
4440
- description?: string;
4441
- enabled: boolean;
4442
- created_at: string;
4443
- updated_at: string;
4444
- }
4445
- interface EmailTemplateRead extends EmailTemplateSummary {
4446
- subject: string;
4447
- header_text?: string;
4448
- message_top?: string;
4449
- message_bottom?: string;
4450
- button_text?: string;
4451
- custom_html?: string;
4452
- available_variables?: Record<string, string>;
4453
- }
4454
- interface EmailTemplateCreate {
4455
- template_type: string;
4456
- group_id?: string;
4457
- name: string;
4458
- description?: string;
4459
- subject: string;
4460
- header_text?: string;
4461
- message_top?: string;
4462
- message_bottom?: string;
4463
- button_text?: string;
4464
- custom_html?: string;
4465
- available_variables?: Record<string, string>;
4466
- enabled?: boolean;
4467
- }
4468
- interface EmailTemplateUpdate {
4469
- name?: string;
4470
- description?: string;
4471
- subject?: string;
4472
- header_text?: string;
4473
- message_top?: string;
4474
- message_bottom?: string;
4475
- button_text?: string;
4476
- custom_html?: string;
4477
- available_variables?: Record<string, string>;
4478
- enabled?: boolean;
4479
- }
4480
- interface TestEmailRequest {
4481
- recipient_email: string;
4482
- }
4483
- interface TestEmailResponse {
4484
- message: string;
4485
- }
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'];
4486
4335
  /**
4487
4336
  * Email Templates API client for workspace-scoped templates
4488
4337
  */
@@ -4491,41 +4340,30 @@ declare class EmailTemplatesClient {
4491
4340
  constructor(http: HttpClient);
4492
4341
  /**
4493
4342
  * List all email templates for the workspace
4494
- * @param groupId - Workspace ID
4495
4343
  */
4496
4344
  list(groupId: string): Promise<EmailTemplateSummary[]>;
4497
4345
  /**
4498
4346
  * Get a specific email template
4499
- * @param groupId - Workspace ID
4500
- * @param templateId - Template ID
4501
4347
  */
4502
4348
  get(groupId: string, templateId: string): Promise<EmailTemplateRead>;
4503
4349
  /**
4504
4350
  * Create a new email template
4505
- * @param groupId - Workspace ID
4506
- * @param data - Template data
4507
4351
  */
4508
4352
  create(groupId: string, data: EmailTemplateCreate): Promise<EmailTemplateRead>;
4509
4353
  /**
4510
4354
  * Update an email template
4511
- * @param groupId - Workspace ID
4512
- * @param templateId - Template ID
4513
- * @param data - Updated template data
4514
4355
  */
4515
4356
  update(groupId: string, templateId: string, data: EmailTemplateUpdate): Promise<EmailTemplateRead>;
4516
4357
  /**
4517
4358
  * Delete an email template
4518
- * @param groupId - Workspace ID
4519
- * @param templateId - Template ID
4520
4359
  */
4521
4360
  delete(groupId: string, templateId: string): Promise<void>;
4522
4361
  /**
4523
4362
  * Send a test email using a template
4524
- * @param groupId - Workspace ID
4525
- * @param templateId - Template ID
4526
- * @param recipientEmail - Test recipient email address
4527
4363
  */
4528
- sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<TestEmailResponse>;
4364
+ sendTest(groupId: string, templateId: string, recipientEmail: string): Promise<{
4365
+ message: string;
4366
+ }>;
4529
4367
  }
4530
4368
 
4531
4369
  /**
@@ -4694,4 +4532,4 @@ declare class PlatformClient extends HttpClient {
4694
4532
  */
4695
4533
  declare function createPlatformClient(config?: Partial<PlatformClientConfig>): PlatformClient;
4696
4534
 
4697
- 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
  };