memorysync-sdk 1.4.0 → 1.5.0
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 +103 -95
- package/dist/index.d.ts +103 -95
- package/dist/index.js +152 -70
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +152 -70
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -446,20 +446,6 @@ interface CurrentPlanResponse {
|
|
|
446
446
|
scheduledPlanId: string | null;
|
|
447
447
|
cancelAtPeriodEnd: boolean;
|
|
448
448
|
}
|
|
449
|
-
interface TeamMember {
|
|
450
|
-
id: string;
|
|
451
|
-
name: string;
|
|
452
|
-
email: string;
|
|
453
|
-
role: string;
|
|
454
|
-
status: string;
|
|
455
|
-
lastActive?: string | null;
|
|
456
|
-
mfaEnabled: boolean;
|
|
457
|
-
authMethod: string;
|
|
458
|
-
loginProvider?: string;
|
|
459
|
-
devices?: number;
|
|
460
|
-
sessions: number;
|
|
461
|
-
isScimManaged?: boolean;
|
|
462
|
-
}
|
|
463
449
|
interface Session {
|
|
464
450
|
id: number;
|
|
465
451
|
isCurrent: boolean;
|
|
@@ -477,58 +463,6 @@ interface SessionListResponse {
|
|
|
477
463
|
sessions: Session[];
|
|
478
464
|
currentSessionId: number | null;
|
|
479
465
|
}
|
|
480
|
-
type AuditSortDirection = "asc" | "desc";
|
|
481
|
-
interface AuditEventQuery {
|
|
482
|
-
limit?: number;
|
|
483
|
-
cursor?: number;
|
|
484
|
-
skip?: number;
|
|
485
|
-
sortDirection?: AuditSortDirection;
|
|
486
|
-
tenantId?: string;
|
|
487
|
-
actor?: string;
|
|
488
|
-
actorEmail?: string;
|
|
489
|
-
ip?: string;
|
|
490
|
-
action?: string;
|
|
491
|
-
resourceType?: string;
|
|
492
|
-
resourceId?: string;
|
|
493
|
-
severity?: string;
|
|
494
|
-
category?: string;
|
|
495
|
-
start?: string;
|
|
496
|
-
end?: string;
|
|
497
|
-
success?: boolean;
|
|
498
|
-
source?: string;
|
|
499
|
-
ingestMethod?: string;
|
|
500
|
-
search?: string;
|
|
501
|
-
includeStats?: boolean;
|
|
502
|
-
}
|
|
503
|
-
interface AuditActor {
|
|
504
|
-
id: string;
|
|
505
|
-
email: string | null;
|
|
506
|
-
name: string | null;
|
|
507
|
-
type: string;
|
|
508
|
-
}
|
|
509
|
-
interface AuditResource {
|
|
510
|
-
type: string;
|
|
511
|
-
id: string;
|
|
512
|
-
label: string | null;
|
|
513
|
-
}
|
|
514
|
-
interface AuditEvent {
|
|
515
|
-
id: number;
|
|
516
|
-
eventId: string;
|
|
517
|
-
timestamp: string;
|
|
518
|
-
category: string;
|
|
519
|
-
actor: AuditActor;
|
|
520
|
-
action: string;
|
|
521
|
-
resource: AuditResource;
|
|
522
|
-
severity: string;
|
|
523
|
-
success: boolean;
|
|
524
|
-
metadata?: Record<string, unknown> | null;
|
|
525
|
-
}
|
|
526
|
-
interface AuditEventListResponse {
|
|
527
|
-
events: AuditEvent[];
|
|
528
|
-
nextCursor: number | null;
|
|
529
|
-
stats?: Record<string, unknown> | null;
|
|
530
|
-
sort: AuditSortDirection;
|
|
531
|
-
}
|
|
532
466
|
interface IntegrationQuery {
|
|
533
467
|
category?: string;
|
|
534
468
|
}
|
|
@@ -552,28 +486,6 @@ interface OrganizationMembership {
|
|
|
552
486
|
organizationId: number;
|
|
553
487
|
role: string;
|
|
554
488
|
}
|
|
555
|
-
interface OrganizationSettingsQuery {
|
|
556
|
-
tenantId?: string;
|
|
557
|
-
}
|
|
558
|
-
interface OrganizationSettings {
|
|
559
|
-
tenantId: string;
|
|
560
|
-
tenantName: string;
|
|
561
|
-
tenantSlug: string;
|
|
562
|
-
description: string | null;
|
|
563
|
-
plan: string;
|
|
564
|
-
status: string;
|
|
565
|
-
createdAt: string;
|
|
566
|
-
contactEmail: string | null;
|
|
567
|
-
customDomain: string | null;
|
|
568
|
-
customDomainVerified: boolean;
|
|
569
|
-
logoUrl: string | null;
|
|
570
|
-
totalMemories: number;
|
|
571
|
-
activeUsers: number;
|
|
572
|
-
organizationName: string;
|
|
573
|
-
scheduledDeletionAt: string | null;
|
|
574
|
-
mfaEnrolled: boolean;
|
|
575
|
-
passwordEnabled: boolean;
|
|
576
|
-
}
|
|
577
489
|
interface Project {
|
|
578
490
|
id: string;
|
|
579
491
|
name: string;
|
|
@@ -584,6 +496,12 @@ interface Project {
|
|
|
584
496
|
createdAt: string;
|
|
585
497
|
updatedAt: string;
|
|
586
498
|
}
|
|
499
|
+
interface CreateProjectRequest {
|
|
500
|
+
name: string;
|
|
501
|
+
}
|
|
502
|
+
interface RenameProjectRequest {
|
|
503
|
+
name: string;
|
|
504
|
+
}
|
|
587
505
|
interface WebhookRetryConfig {
|
|
588
506
|
enabled?: boolean;
|
|
589
507
|
maxRetries?: number;
|
|
@@ -713,6 +631,81 @@ interface WebhookDeliveryListResponse {
|
|
|
713
631
|
page: number;
|
|
714
632
|
pageSize: number;
|
|
715
633
|
}
|
|
634
|
+
interface WebhookEventTypesResponse {
|
|
635
|
+
eventTypes: string[];
|
|
636
|
+
categories: Record<string, string[]>;
|
|
637
|
+
}
|
|
638
|
+
interface WebhookHealth {
|
|
639
|
+
activeWebhooks: number;
|
|
640
|
+
totalWebhooks: number;
|
|
641
|
+
totalDeliveriesAllTime: number;
|
|
642
|
+
totalDeliveries24h: number;
|
|
643
|
+
successRate7d: number;
|
|
644
|
+
failingEndpoints: number;
|
|
645
|
+
pendingRetries: number;
|
|
646
|
+
deadLetterCount: number;
|
|
647
|
+
}
|
|
648
|
+
interface RecentWebhookDeliveryQuery extends WebhookDeliveryQuery {
|
|
649
|
+
endpointId?: number;
|
|
650
|
+
}
|
|
651
|
+
type ExportFormat = "csv" | "jsonl";
|
|
652
|
+
type ExportScope = "filtered" | "all" | "date_range";
|
|
653
|
+
type ExportJobStatus = "queued" | "processing" | "generating" | "completed" | "failed" | "cancelled" | "expired";
|
|
654
|
+
interface ExportFilters {
|
|
655
|
+
q?: string | null;
|
|
656
|
+
userId?: string | null;
|
|
657
|
+
isSummary?: boolean | null;
|
|
658
|
+
tier?: string | null;
|
|
659
|
+
source?: string | null;
|
|
660
|
+
timeRange?: string | null;
|
|
661
|
+
dateFrom?: string | null;
|
|
662
|
+
dateTo?: string | null;
|
|
663
|
+
includeSoftDeleted?: boolean;
|
|
664
|
+
}
|
|
665
|
+
interface CreateExportRequest {
|
|
666
|
+
format?: ExportFormat;
|
|
667
|
+
scope?: ExportScope;
|
|
668
|
+
filters?: ExportFilters | null;
|
|
669
|
+
}
|
|
670
|
+
interface ExportJob {
|
|
671
|
+
id: string;
|
|
672
|
+
projectId: string | null;
|
|
673
|
+
environment: string;
|
|
674
|
+
format: ExportFormat;
|
|
675
|
+
scope: ExportScope;
|
|
676
|
+
filters: ExportFilters;
|
|
677
|
+
status: ExportJobStatus;
|
|
678
|
+
errorMessage: string | null;
|
|
679
|
+
retryCount: number;
|
|
680
|
+
totalRows: number | null;
|
|
681
|
+
processedRows: number;
|
|
682
|
+
progressPercentage: number;
|
|
683
|
+
fileSizeBytes: number | null;
|
|
684
|
+
sha256Hash: string | null;
|
|
685
|
+
downloadCount: number;
|
|
686
|
+
createdAt: string | null;
|
|
687
|
+
startedAt: string | null;
|
|
688
|
+
completedAt: string | null;
|
|
689
|
+
expiresAt: string | null;
|
|
690
|
+
downloadUrl: string | null;
|
|
691
|
+
}
|
|
692
|
+
interface CreateExportResponse {
|
|
693
|
+
job: ExportJob;
|
|
694
|
+
estimatedTotal: number | null;
|
|
695
|
+
}
|
|
696
|
+
interface ExportListQuery {
|
|
697
|
+
limit?: number;
|
|
698
|
+
}
|
|
699
|
+
interface ExportJobListResponse {
|
|
700
|
+
jobs: ExportJob[];
|
|
701
|
+
total: number;
|
|
702
|
+
}
|
|
703
|
+
interface ExportDownloadUrl {
|
|
704
|
+
downloadUrl: string;
|
|
705
|
+
expiresAt: string | null;
|
|
706
|
+
fileSizeBytes: number | null;
|
|
707
|
+
filename: string;
|
|
708
|
+
}
|
|
716
709
|
declare class ControlPlaneClient {
|
|
717
710
|
private readonly baseUrl;
|
|
718
711
|
private readonly accessToken?;
|
|
@@ -726,25 +719,40 @@ declare class ControlPlaneClient {
|
|
|
726
719
|
testApiKey(keyId: number, options?: ControlPlaneRequestOptions): Promise<ApiKeyTestResponse>;
|
|
727
720
|
login(request: LoginRequest, options?: ControlPlaneRequestOptions): Promise<LoginResponse>;
|
|
728
721
|
getCurrentPlan(options?: ControlPlaneRequestOptions): Promise<CurrentPlanResponse>;
|
|
729
|
-
listTeamMembers(options?: ControlPlaneRequestOptions): Promise<TeamMember[]>;
|
|
730
|
-
suspendTeamMember(memberId: number, options?: ControlPlaneRequestOptions): Promise<TeamMember>;
|
|
731
|
-
removeTeamMember(memberId: number, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
732
722
|
listSessions(options?: ControlPlaneRequestOptions): Promise<SessionListResponse>;
|
|
733
723
|
revokeSession(sessionId: number, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
734
|
-
listAuditEvents(query?: AuditEventQuery, options?: ControlPlaneRequestOptions): Promise<AuditEventListResponse>;
|
|
735
724
|
listIntegrations(query?: IntegrationQuery, options?: ControlPlaneRequestOptions): Promise<Integration[]>;
|
|
736
725
|
createOrganization(request: CreateOrganizationRequest, options?: ControlPlaneRequestOptions): Promise<OrganizationMembership>;
|
|
737
726
|
listOrganizations(options?: ControlPlaneRequestOptions): Promise<OrganizationMembership[]>;
|
|
738
|
-
listOrganizationMembers(options?: ControlPlaneRequestOptions): Promise<TeamMember[]>;
|
|
739
|
-
getOrganizationSettings(query?: OrganizationSettingsQuery, options?: ControlPlaneRequestOptions): Promise<OrganizationSettings>;
|
|
740
727
|
listProjects(options?: ControlPlaneRequestOptions): Promise<Project[]>;
|
|
728
|
+
createProject(request: CreateProjectRequest, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
729
|
+
renameProject(projectId: string, request: RenameProjectRequest, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
730
|
+
archiveProject(projectId: string, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
731
|
+
unarchiveProject(projectId: string, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
732
|
+
deleteProject(projectId: string, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
741
733
|
createWebhook(request: CreateWebhookRequest, options?: ControlPlaneRequestOptions): Promise<CreatedWebhook>;
|
|
742
734
|
listWebhooks(options?: ControlPlaneRequestOptions): Promise<WebhookListResponse>;
|
|
735
|
+
getWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
736
|
+
getWebhookEventTypes(options?: ControlPlaneRequestOptions): Promise<WebhookEventTypesResponse>;
|
|
737
|
+
getWebhookHealth(options?: ControlPlaneRequestOptions): Promise<WebhookHealth>;
|
|
738
|
+
pauseWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
739
|
+
resumeWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
740
|
+
rotateWebhookSecret(endpointId: number, options?: ControlPlaneRequestOptions): Promise<CreatedWebhook>;
|
|
743
741
|
updateWebhook(endpointId: number, request: UpdateWebhookRequest, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
744
742
|
deleteWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
745
743
|
testWebhook(endpointId: number, request?: TestWebhookRequest, options?: ControlPlaneRequestOptions): Promise<TestWebhookResponse>;
|
|
746
744
|
replayWebhookDeliveries(endpointId: number, request?: ReplayWebhookDeliveriesRequest, options?: ControlPlaneRequestOptions): Promise<ReplayWebhookDeliveriesResponse>;
|
|
747
745
|
listWebhookDeliveries(endpointId: number, query?: WebhookDeliveryQuery, options?: ControlPlaneRequestOptions): Promise<WebhookDeliveryListResponse>;
|
|
746
|
+
getLatestWebhookDelivery(endpointId: number, options?: ControlPlaneRequestOptions): Promise<WebhookDelivery | null>;
|
|
747
|
+
listRecentWebhookDeliveries(query?: RecentWebhookDeliveryQuery, options?: ControlPlaneRequestOptions): Promise<WebhookDeliveryListResponse>;
|
|
748
|
+
getWebhookDelivery(deliveryId: number, options?: ControlPlaneRequestOptions): Promise<WebhookDelivery>;
|
|
749
|
+
retryWebhookDelivery(deliveryId: number, options?: ControlPlaneRequestOptions): Promise<WebhookDelivery>;
|
|
750
|
+
createExport(request: CreateExportRequest, options?: ControlPlaneRequestOptions): Promise<CreateExportResponse>;
|
|
751
|
+
listExports(query?: ExportListQuery, options?: ControlPlaneRequestOptions): Promise<ExportJobListResponse>;
|
|
752
|
+
getExport(jobId: string, options?: ControlPlaneRequestOptions): Promise<ExportJob>;
|
|
753
|
+
cancelExport(jobId: string, options?: ControlPlaneRequestOptions): Promise<ExportJob>;
|
|
754
|
+
retryExport(jobId: string, options?: ControlPlaneRequestOptions): Promise<CreateExportResponse>;
|
|
755
|
+
getExportDownloadUrl(jobId: string, options?: ControlPlaneRequestOptions): Promise<ExportDownloadUrl>;
|
|
748
756
|
}
|
|
749
757
|
|
|
750
758
|
/**
|
|
@@ -1220,4 +1228,4 @@ declare class MemorySyncClient {
|
|
|
1220
1228
|
}): Promise<Record<string, unknown>>;
|
|
1221
1229
|
}
|
|
1222
1230
|
|
|
1223
|
-
export { type AddRequest, type AddResponse, type AddSkippedResponse, type ApiKeyTestResponse, type ApiKeyTestStatus, type
|
|
1231
|
+
export { type AddRequest, type AddResponse, type AddSkippedResponse, type ApiKeyTestResponse, type ApiKeyTestStatus, AuthError, type BatchUpdateItem, type BatchUpdateItemResult, type BatchUpdateResponse, type BulkAddItem, type BulkAddItemResult, type BulkAddResponse, type BulkRevokeApiKeyResult, type BulkRevokeApiKeysRequest, type BulkRevokeApiKeysResponse, type ComposeRequest, type ComposeResponse, ConnectionOAuthNamespace, ConnectionsNamespace, ControlPlaneClient, type ControlPlaneConfig, type ControlPlaneRequestOptions, type CreateExportRequest, type CreateExportResponse, type CreateOrganizationRequest, type CreateProjectRequest, type CreateWebhookRequest, type CreatedWebhook, type CurrentPlanResponse, type ExportDownloadUrl, type ExportFilters, type ExportFormat, type ExportJob, type ExportJobListResponse, type ExportJobStatus, type ExportListQuery, type ExportResponse, type ExportScope, type FeedbackResponse, type FeedbackSignal, type FeedbackSummary, type FeedbackTrend, type ForgetFilters, type ForgetRequest, GoogleDriveNamespace, GranolaNamespace, type HistoryResponse, type Integration, type IntegrationQuery, IntegrationsNamespace, type LoginRequest, type LoginResponse, type MemoryRecord, MemorySyncClient, type MemorySyncConfig, MemorySyncError, NotFoundError, ObjectsNamespace, type Ontology, type OntologyUpdateRequest, type OrganizationMembership, type Plan, type PlanLimits, type Project, ProvidersNamespace, type QueryFilters, type QueryRequest, type QueryResponse, RateLimitError, type RecentWebhookDeliveryQuery, type RelationCreateRequest, type RelationRecord, type RelationshipType, type RenameProjectRequest, type ReplayWebhookDeliveriesRequest, type ReplayWebhookDeliveriesResponse, type RevisionEntry, type RevisionEvent, S3Namespace, ServerError, type Session, type SessionListResponse, SlackNamespace, type SummarizeRequest, SyncJobsNamespace, type TestWebhookRequest, type TestWebhookResponse, type UpdateRequest, type UpdateWebhookRequest, type UploadRequest, ValidationError, WebCrawlerNamespace, type Webhook, type WebhookDelivery, type WebhookDeliveryListResponse, type WebhookDeliveryQuery, type WebhookEventTypesResponse, type WebhookHealth, type WebhookListResponse, type WebhookRetryConfig, type WebhookSignatureConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -446,20 +446,6 @@ interface CurrentPlanResponse {
|
|
|
446
446
|
scheduledPlanId: string | null;
|
|
447
447
|
cancelAtPeriodEnd: boolean;
|
|
448
448
|
}
|
|
449
|
-
interface TeamMember {
|
|
450
|
-
id: string;
|
|
451
|
-
name: string;
|
|
452
|
-
email: string;
|
|
453
|
-
role: string;
|
|
454
|
-
status: string;
|
|
455
|
-
lastActive?: string | null;
|
|
456
|
-
mfaEnabled: boolean;
|
|
457
|
-
authMethod: string;
|
|
458
|
-
loginProvider?: string;
|
|
459
|
-
devices?: number;
|
|
460
|
-
sessions: number;
|
|
461
|
-
isScimManaged?: boolean;
|
|
462
|
-
}
|
|
463
449
|
interface Session {
|
|
464
450
|
id: number;
|
|
465
451
|
isCurrent: boolean;
|
|
@@ -477,58 +463,6 @@ interface SessionListResponse {
|
|
|
477
463
|
sessions: Session[];
|
|
478
464
|
currentSessionId: number | null;
|
|
479
465
|
}
|
|
480
|
-
type AuditSortDirection = "asc" | "desc";
|
|
481
|
-
interface AuditEventQuery {
|
|
482
|
-
limit?: number;
|
|
483
|
-
cursor?: number;
|
|
484
|
-
skip?: number;
|
|
485
|
-
sortDirection?: AuditSortDirection;
|
|
486
|
-
tenantId?: string;
|
|
487
|
-
actor?: string;
|
|
488
|
-
actorEmail?: string;
|
|
489
|
-
ip?: string;
|
|
490
|
-
action?: string;
|
|
491
|
-
resourceType?: string;
|
|
492
|
-
resourceId?: string;
|
|
493
|
-
severity?: string;
|
|
494
|
-
category?: string;
|
|
495
|
-
start?: string;
|
|
496
|
-
end?: string;
|
|
497
|
-
success?: boolean;
|
|
498
|
-
source?: string;
|
|
499
|
-
ingestMethod?: string;
|
|
500
|
-
search?: string;
|
|
501
|
-
includeStats?: boolean;
|
|
502
|
-
}
|
|
503
|
-
interface AuditActor {
|
|
504
|
-
id: string;
|
|
505
|
-
email: string | null;
|
|
506
|
-
name: string | null;
|
|
507
|
-
type: string;
|
|
508
|
-
}
|
|
509
|
-
interface AuditResource {
|
|
510
|
-
type: string;
|
|
511
|
-
id: string;
|
|
512
|
-
label: string | null;
|
|
513
|
-
}
|
|
514
|
-
interface AuditEvent {
|
|
515
|
-
id: number;
|
|
516
|
-
eventId: string;
|
|
517
|
-
timestamp: string;
|
|
518
|
-
category: string;
|
|
519
|
-
actor: AuditActor;
|
|
520
|
-
action: string;
|
|
521
|
-
resource: AuditResource;
|
|
522
|
-
severity: string;
|
|
523
|
-
success: boolean;
|
|
524
|
-
metadata?: Record<string, unknown> | null;
|
|
525
|
-
}
|
|
526
|
-
interface AuditEventListResponse {
|
|
527
|
-
events: AuditEvent[];
|
|
528
|
-
nextCursor: number | null;
|
|
529
|
-
stats?: Record<string, unknown> | null;
|
|
530
|
-
sort: AuditSortDirection;
|
|
531
|
-
}
|
|
532
466
|
interface IntegrationQuery {
|
|
533
467
|
category?: string;
|
|
534
468
|
}
|
|
@@ -552,28 +486,6 @@ interface OrganizationMembership {
|
|
|
552
486
|
organizationId: number;
|
|
553
487
|
role: string;
|
|
554
488
|
}
|
|
555
|
-
interface OrganizationSettingsQuery {
|
|
556
|
-
tenantId?: string;
|
|
557
|
-
}
|
|
558
|
-
interface OrganizationSettings {
|
|
559
|
-
tenantId: string;
|
|
560
|
-
tenantName: string;
|
|
561
|
-
tenantSlug: string;
|
|
562
|
-
description: string | null;
|
|
563
|
-
plan: string;
|
|
564
|
-
status: string;
|
|
565
|
-
createdAt: string;
|
|
566
|
-
contactEmail: string | null;
|
|
567
|
-
customDomain: string | null;
|
|
568
|
-
customDomainVerified: boolean;
|
|
569
|
-
logoUrl: string | null;
|
|
570
|
-
totalMemories: number;
|
|
571
|
-
activeUsers: number;
|
|
572
|
-
organizationName: string;
|
|
573
|
-
scheduledDeletionAt: string | null;
|
|
574
|
-
mfaEnrolled: boolean;
|
|
575
|
-
passwordEnabled: boolean;
|
|
576
|
-
}
|
|
577
489
|
interface Project {
|
|
578
490
|
id: string;
|
|
579
491
|
name: string;
|
|
@@ -584,6 +496,12 @@ interface Project {
|
|
|
584
496
|
createdAt: string;
|
|
585
497
|
updatedAt: string;
|
|
586
498
|
}
|
|
499
|
+
interface CreateProjectRequest {
|
|
500
|
+
name: string;
|
|
501
|
+
}
|
|
502
|
+
interface RenameProjectRequest {
|
|
503
|
+
name: string;
|
|
504
|
+
}
|
|
587
505
|
interface WebhookRetryConfig {
|
|
588
506
|
enabled?: boolean;
|
|
589
507
|
maxRetries?: number;
|
|
@@ -713,6 +631,81 @@ interface WebhookDeliveryListResponse {
|
|
|
713
631
|
page: number;
|
|
714
632
|
pageSize: number;
|
|
715
633
|
}
|
|
634
|
+
interface WebhookEventTypesResponse {
|
|
635
|
+
eventTypes: string[];
|
|
636
|
+
categories: Record<string, string[]>;
|
|
637
|
+
}
|
|
638
|
+
interface WebhookHealth {
|
|
639
|
+
activeWebhooks: number;
|
|
640
|
+
totalWebhooks: number;
|
|
641
|
+
totalDeliveriesAllTime: number;
|
|
642
|
+
totalDeliveries24h: number;
|
|
643
|
+
successRate7d: number;
|
|
644
|
+
failingEndpoints: number;
|
|
645
|
+
pendingRetries: number;
|
|
646
|
+
deadLetterCount: number;
|
|
647
|
+
}
|
|
648
|
+
interface RecentWebhookDeliveryQuery extends WebhookDeliveryQuery {
|
|
649
|
+
endpointId?: number;
|
|
650
|
+
}
|
|
651
|
+
type ExportFormat = "csv" | "jsonl";
|
|
652
|
+
type ExportScope = "filtered" | "all" | "date_range";
|
|
653
|
+
type ExportJobStatus = "queued" | "processing" | "generating" | "completed" | "failed" | "cancelled" | "expired";
|
|
654
|
+
interface ExportFilters {
|
|
655
|
+
q?: string | null;
|
|
656
|
+
userId?: string | null;
|
|
657
|
+
isSummary?: boolean | null;
|
|
658
|
+
tier?: string | null;
|
|
659
|
+
source?: string | null;
|
|
660
|
+
timeRange?: string | null;
|
|
661
|
+
dateFrom?: string | null;
|
|
662
|
+
dateTo?: string | null;
|
|
663
|
+
includeSoftDeleted?: boolean;
|
|
664
|
+
}
|
|
665
|
+
interface CreateExportRequest {
|
|
666
|
+
format?: ExportFormat;
|
|
667
|
+
scope?: ExportScope;
|
|
668
|
+
filters?: ExportFilters | null;
|
|
669
|
+
}
|
|
670
|
+
interface ExportJob {
|
|
671
|
+
id: string;
|
|
672
|
+
projectId: string | null;
|
|
673
|
+
environment: string;
|
|
674
|
+
format: ExportFormat;
|
|
675
|
+
scope: ExportScope;
|
|
676
|
+
filters: ExportFilters;
|
|
677
|
+
status: ExportJobStatus;
|
|
678
|
+
errorMessage: string | null;
|
|
679
|
+
retryCount: number;
|
|
680
|
+
totalRows: number | null;
|
|
681
|
+
processedRows: number;
|
|
682
|
+
progressPercentage: number;
|
|
683
|
+
fileSizeBytes: number | null;
|
|
684
|
+
sha256Hash: string | null;
|
|
685
|
+
downloadCount: number;
|
|
686
|
+
createdAt: string | null;
|
|
687
|
+
startedAt: string | null;
|
|
688
|
+
completedAt: string | null;
|
|
689
|
+
expiresAt: string | null;
|
|
690
|
+
downloadUrl: string | null;
|
|
691
|
+
}
|
|
692
|
+
interface CreateExportResponse {
|
|
693
|
+
job: ExportJob;
|
|
694
|
+
estimatedTotal: number | null;
|
|
695
|
+
}
|
|
696
|
+
interface ExportListQuery {
|
|
697
|
+
limit?: number;
|
|
698
|
+
}
|
|
699
|
+
interface ExportJobListResponse {
|
|
700
|
+
jobs: ExportJob[];
|
|
701
|
+
total: number;
|
|
702
|
+
}
|
|
703
|
+
interface ExportDownloadUrl {
|
|
704
|
+
downloadUrl: string;
|
|
705
|
+
expiresAt: string | null;
|
|
706
|
+
fileSizeBytes: number | null;
|
|
707
|
+
filename: string;
|
|
708
|
+
}
|
|
716
709
|
declare class ControlPlaneClient {
|
|
717
710
|
private readonly baseUrl;
|
|
718
711
|
private readonly accessToken?;
|
|
@@ -726,25 +719,40 @@ declare class ControlPlaneClient {
|
|
|
726
719
|
testApiKey(keyId: number, options?: ControlPlaneRequestOptions): Promise<ApiKeyTestResponse>;
|
|
727
720
|
login(request: LoginRequest, options?: ControlPlaneRequestOptions): Promise<LoginResponse>;
|
|
728
721
|
getCurrentPlan(options?: ControlPlaneRequestOptions): Promise<CurrentPlanResponse>;
|
|
729
|
-
listTeamMembers(options?: ControlPlaneRequestOptions): Promise<TeamMember[]>;
|
|
730
|
-
suspendTeamMember(memberId: number, options?: ControlPlaneRequestOptions): Promise<TeamMember>;
|
|
731
|
-
removeTeamMember(memberId: number, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
732
722
|
listSessions(options?: ControlPlaneRequestOptions): Promise<SessionListResponse>;
|
|
733
723
|
revokeSession(sessionId: number, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
734
|
-
listAuditEvents(query?: AuditEventQuery, options?: ControlPlaneRequestOptions): Promise<AuditEventListResponse>;
|
|
735
724
|
listIntegrations(query?: IntegrationQuery, options?: ControlPlaneRequestOptions): Promise<Integration[]>;
|
|
736
725
|
createOrganization(request: CreateOrganizationRequest, options?: ControlPlaneRequestOptions): Promise<OrganizationMembership>;
|
|
737
726
|
listOrganizations(options?: ControlPlaneRequestOptions): Promise<OrganizationMembership[]>;
|
|
738
|
-
listOrganizationMembers(options?: ControlPlaneRequestOptions): Promise<TeamMember[]>;
|
|
739
|
-
getOrganizationSettings(query?: OrganizationSettingsQuery, options?: ControlPlaneRequestOptions): Promise<OrganizationSettings>;
|
|
740
727
|
listProjects(options?: ControlPlaneRequestOptions): Promise<Project[]>;
|
|
728
|
+
createProject(request: CreateProjectRequest, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
729
|
+
renameProject(projectId: string, request: RenameProjectRequest, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
730
|
+
archiveProject(projectId: string, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
731
|
+
unarchiveProject(projectId: string, options?: ControlPlaneRequestOptions): Promise<Project>;
|
|
732
|
+
deleteProject(projectId: string, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
741
733
|
createWebhook(request: CreateWebhookRequest, options?: ControlPlaneRequestOptions): Promise<CreatedWebhook>;
|
|
742
734
|
listWebhooks(options?: ControlPlaneRequestOptions): Promise<WebhookListResponse>;
|
|
735
|
+
getWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
736
|
+
getWebhookEventTypes(options?: ControlPlaneRequestOptions): Promise<WebhookEventTypesResponse>;
|
|
737
|
+
getWebhookHealth(options?: ControlPlaneRequestOptions): Promise<WebhookHealth>;
|
|
738
|
+
pauseWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
739
|
+
resumeWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
740
|
+
rotateWebhookSecret(endpointId: number, options?: ControlPlaneRequestOptions): Promise<CreatedWebhook>;
|
|
743
741
|
updateWebhook(endpointId: number, request: UpdateWebhookRequest, options?: ControlPlaneRequestOptions): Promise<Webhook>;
|
|
744
742
|
deleteWebhook(endpointId: number, options?: ControlPlaneRequestOptions): Promise<void>;
|
|
745
743
|
testWebhook(endpointId: number, request?: TestWebhookRequest, options?: ControlPlaneRequestOptions): Promise<TestWebhookResponse>;
|
|
746
744
|
replayWebhookDeliveries(endpointId: number, request?: ReplayWebhookDeliveriesRequest, options?: ControlPlaneRequestOptions): Promise<ReplayWebhookDeliveriesResponse>;
|
|
747
745
|
listWebhookDeliveries(endpointId: number, query?: WebhookDeliveryQuery, options?: ControlPlaneRequestOptions): Promise<WebhookDeliveryListResponse>;
|
|
746
|
+
getLatestWebhookDelivery(endpointId: number, options?: ControlPlaneRequestOptions): Promise<WebhookDelivery | null>;
|
|
747
|
+
listRecentWebhookDeliveries(query?: RecentWebhookDeliveryQuery, options?: ControlPlaneRequestOptions): Promise<WebhookDeliveryListResponse>;
|
|
748
|
+
getWebhookDelivery(deliveryId: number, options?: ControlPlaneRequestOptions): Promise<WebhookDelivery>;
|
|
749
|
+
retryWebhookDelivery(deliveryId: number, options?: ControlPlaneRequestOptions): Promise<WebhookDelivery>;
|
|
750
|
+
createExport(request: CreateExportRequest, options?: ControlPlaneRequestOptions): Promise<CreateExportResponse>;
|
|
751
|
+
listExports(query?: ExportListQuery, options?: ControlPlaneRequestOptions): Promise<ExportJobListResponse>;
|
|
752
|
+
getExport(jobId: string, options?: ControlPlaneRequestOptions): Promise<ExportJob>;
|
|
753
|
+
cancelExport(jobId: string, options?: ControlPlaneRequestOptions): Promise<ExportJob>;
|
|
754
|
+
retryExport(jobId: string, options?: ControlPlaneRequestOptions): Promise<CreateExportResponse>;
|
|
755
|
+
getExportDownloadUrl(jobId: string, options?: ControlPlaneRequestOptions): Promise<ExportDownloadUrl>;
|
|
748
756
|
}
|
|
749
757
|
|
|
750
758
|
/**
|
|
@@ -1220,4 +1228,4 @@ declare class MemorySyncClient {
|
|
|
1220
1228
|
}): Promise<Record<string, unknown>>;
|
|
1221
1229
|
}
|
|
1222
1230
|
|
|
1223
|
-
export { type AddRequest, type AddResponse, type AddSkippedResponse, type ApiKeyTestResponse, type ApiKeyTestStatus, type
|
|
1231
|
+
export { type AddRequest, type AddResponse, type AddSkippedResponse, type ApiKeyTestResponse, type ApiKeyTestStatus, AuthError, type BatchUpdateItem, type BatchUpdateItemResult, type BatchUpdateResponse, type BulkAddItem, type BulkAddItemResult, type BulkAddResponse, type BulkRevokeApiKeyResult, type BulkRevokeApiKeysRequest, type BulkRevokeApiKeysResponse, type ComposeRequest, type ComposeResponse, ConnectionOAuthNamespace, ConnectionsNamespace, ControlPlaneClient, type ControlPlaneConfig, type ControlPlaneRequestOptions, type CreateExportRequest, type CreateExportResponse, type CreateOrganizationRequest, type CreateProjectRequest, type CreateWebhookRequest, type CreatedWebhook, type CurrentPlanResponse, type ExportDownloadUrl, type ExportFilters, type ExportFormat, type ExportJob, type ExportJobListResponse, type ExportJobStatus, type ExportListQuery, type ExportResponse, type ExportScope, type FeedbackResponse, type FeedbackSignal, type FeedbackSummary, type FeedbackTrend, type ForgetFilters, type ForgetRequest, GoogleDriveNamespace, GranolaNamespace, type HistoryResponse, type Integration, type IntegrationQuery, IntegrationsNamespace, type LoginRequest, type LoginResponse, type MemoryRecord, MemorySyncClient, type MemorySyncConfig, MemorySyncError, NotFoundError, ObjectsNamespace, type Ontology, type OntologyUpdateRequest, type OrganizationMembership, type Plan, type PlanLimits, type Project, ProvidersNamespace, type QueryFilters, type QueryRequest, type QueryResponse, RateLimitError, type RecentWebhookDeliveryQuery, type RelationCreateRequest, type RelationRecord, type RelationshipType, type RenameProjectRequest, type ReplayWebhookDeliveriesRequest, type ReplayWebhookDeliveriesResponse, type RevisionEntry, type RevisionEvent, S3Namespace, ServerError, type Session, type SessionListResponse, SlackNamespace, type SummarizeRequest, SyncJobsNamespace, type TestWebhookRequest, type TestWebhookResponse, type UpdateRequest, type UpdateWebhookRequest, type UploadRequest, ValidationError, WebCrawlerNamespace, type Webhook, type WebhookDelivery, type WebhookDeliveryListResponse, type WebhookDeliveryQuery, type WebhookEventTypesResponse, type WebhookHealth, type WebhookListResponse, type WebhookRetryConfig, type WebhookSignatureConfig };
|