@elevasis/sdk 1.51.0 → 1.52.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/{chunk-HIVK54X6.js → chunk-T6DTAP2U.js} +121 -18
- package/dist/{chunk-NNRXVYNC.js → chunk-XC57JNMA.js} +79 -19
- package/dist/cli.cjs +151 -19
- package/dist/index.d.ts +248 -1
- package/dist/index.js +1 -1
- package/dist/test-utils/index.d.ts +13 -2
- package/dist/test-utils/index.js +16 -3
- package/dist/worker/index.d.ts +1 -1
- package/dist/worker/index.js +2 -2
- package/package.json +4 -4
- package/reference/_navigation.md +1 -2
- package/reference/_reference-manifest.json +0 -14
- package/reference/packages/ui/src/hooks/README.md +22 -23
- package/reference/scaffold/recipes/extend-content.md +260 -12
- package/reference/ui/exports.mdx +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3743,6 +3743,7 @@ type Database = {
|
|
|
3743
3743
|
created_at: string | null;
|
|
3744
3744
|
error: string | null;
|
|
3745
3745
|
execution_id: string;
|
|
3746
|
+
idempotency_key: string | null;
|
|
3746
3747
|
input: Json | null;
|
|
3747
3748
|
last_heartbeat_at: string | null;
|
|
3748
3749
|
logs: Json | null;
|
|
@@ -3769,6 +3770,7 @@ type Database = {
|
|
|
3769
3770
|
created_at?: string | null;
|
|
3770
3771
|
error?: string | null;
|
|
3771
3772
|
execution_id?: string;
|
|
3773
|
+
idempotency_key?: string | null;
|
|
3772
3774
|
input?: Json | null;
|
|
3773
3775
|
last_heartbeat_at?: string | null;
|
|
3774
3776
|
logs?: Json | null;
|
|
@@ -3795,6 +3797,7 @@ type Database = {
|
|
|
3795
3797
|
created_at?: string | null;
|
|
3796
3798
|
error?: string | null;
|
|
3797
3799
|
execution_id?: string;
|
|
3800
|
+
idempotency_key?: string | null;
|
|
3798
3801
|
input?: Json | null;
|
|
3799
3802
|
last_heartbeat_at?: string | null;
|
|
3800
3803
|
logs?: Json | null;
|
|
@@ -11701,6 +11704,240 @@ declare const ProjectSchemas: {
|
|
|
11701
11704
|
NoteIdParams: z.ZodObject<{
|
|
11702
11705
|
id: z.ZodString;
|
|
11703
11706
|
}, z.core.$strip>;
|
|
11707
|
+
ProjectListResponse: z.ZodObject<{
|
|
11708
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
11709
|
+
id: z.ZodString;
|
|
11710
|
+
organization_id: z.ZodString;
|
|
11711
|
+
name: z.ZodString;
|
|
11712
|
+
kind: z.ZodString;
|
|
11713
|
+
status: z.ZodString;
|
|
11714
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11715
|
+
deal_id: z.ZodNullable<z.ZodString>;
|
|
11716
|
+
client_id: z.ZodNullable<z.ZodString>;
|
|
11717
|
+
client_company_id: z.ZodNullable<z.ZodString>;
|
|
11718
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
11719
|
+
target_end_date: z.ZodNullable<z.ZodString>;
|
|
11720
|
+
actual_end_date: z.ZodNullable<z.ZodString>;
|
|
11721
|
+
contract_value: z.ZodNullable<z.ZodNumber>;
|
|
11722
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11723
|
+
created_at: z.ZodString;
|
|
11724
|
+
updated_at: z.ZodString;
|
|
11725
|
+
milestoneCount: z.ZodNumber;
|
|
11726
|
+
taskCount: z.ZodNumber;
|
|
11727
|
+
completedMilestones: z.ZodOptional<z.ZodNumber>;
|
|
11728
|
+
completedTasks: z.ZodOptional<z.ZodNumber>;
|
|
11729
|
+
}, z.core.$strip>>;
|
|
11730
|
+
}, z.core.$strip>;
|
|
11731
|
+
ProjectDetailResponse: z.ZodObject<{
|
|
11732
|
+
project: z.ZodObject<{
|
|
11733
|
+
id: z.ZodString;
|
|
11734
|
+
organization_id: z.ZodString;
|
|
11735
|
+
name: z.ZodString;
|
|
11736
|
+
kind: z.ZodString;
|
|
11737
|
+
status: z.ZodString;
|
|
11738
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11739
|
+
deal_id: z.ZodNullable<z.ZodString>;
|
|
11740
|
+
client_id: z.ZodNullable<z.ZodString>;
|
|
11741
|
+
client_company_id: z.ZodNullable<z.ZodString>;
|
|
11742
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
11743
|
+
target_end_date: z.ZodNullable<z.ZodString>;
|
|
11744
|
+
actual_end_date: z.ZodNullable<z.ZodString>;
|
|
11745
|
+
contract_value: z.ZodNullable<z.ZodNumber>;
|
|
11746
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11747
|
+
created_at: z.ZodString;
|
|
11748
|
+
updated_at: z.ZodString;
|
|
11749
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
11750
|
+
id: z.ZodString;
|
|
11751
|
+
organization_id: z.ZodString;
|
|
11752
|
+
project_id: z.ZodString;
|
|
11753
|
+
name: z.ZodString;
|
|
11754
|
+
status: z.ZodString;
|
|
11755
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11756
|
+
due_date: z.ZodNullable<z.ZodString>;
|
|
11757
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
11758
|
+
sequence: z.ZodNumber;
|
|
11759
|
+
checklist: z.ZodNullable<z.ZodUnknown>;
|
|
11760
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11761
|
+
created_at: z.ZodString;
|
|
11762
|
+
updated_at: z.ZodString;
|
|
11763
|
+
}, z.core.$strip>>;
|
|
11764
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
11765
|
+
id: z.ZodString;
|
|
11766
|
+
organization_id: z.ZodString;
|
|
11767
|
+
project_id: z.ZodString;
|
|
11768
|
+
name: z.ZodString;
|
|
11769
|
+
type: z.ZodString;
|
|
11770
|
+
status: z.ZodString;
|
|
11771
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11772
|
+
milestone_id: z.ZodNullable<z.ZodString>;
|
|
11773
|
+
parent_task_id: z.ZodNullable<z.ZodString>;
|
|
11774
|
+
due_date: z.ZodNullable<z.ZodString>;
|
|
11775
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
11776
|
+
file_url: z.ZodNullable<z.ZodString>;
|
|
11777
|
+
checklist: z.ZodUnknown;
|
|
11778
|
+
resume_context: z.ZodNullable<z.ZodUnknown>;
|
|
11779
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11780
|
+
created_at: z.ZodString;
|
|
11781
|
+
updated_at: z.ZodString;
|
|
11782
|
+
}, z.core.$strip>>;
|
|
11783
|
+
company: z.ZodNullable<z.ZodObject<{
|
|
11784
|
+
id: z.ZodString;
|
|
11785
|
+
name: z.ZodString;
|
|
11786
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
11787
|
+
}, z.core.$strip>>;
|
|
11788
|
+
deal: z.ZodNullable<z.ZodObject<{
|
|
11789
|
+
id: z.ZodString;
|
|
11790
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11791
|
+
contactEmail: z.ZodString;
|
|
11792
|
+
stageKey: z.ZodNullable<z.ZodString>;
|
|
11793
|
+
stateKey: z.ZodNullable<z.ZodString>;
|
|
11794
|
+
sourceListId: z.ZodNullable<z.ZodString>;
|
|
11795
|
+
updatedAt: z.ZodString;
|
|
11796
|
+
}, z.core.$strip>>;
|
|
11797
|
+
client: z.ZodNullable<z.ZodObject<{
|
|
11798
|
+
id: z.ZodString;
|
|
11799
|
+
name: z.ZodString;
|
|
11800
|
+
status: z.ZodString;
|
|
11801
|
+
}, z.core.$strip>>;
|
|
11802
|
+
}, z.core.$strip>;
|
|
11803
|
+
}, z.core.$strip>;
|
|
11804
|
+
ProjectResponse: z.ZodObject<{
|
|
11805
|
+
project: z.ZodObject<{
|
|
11806
|
+
id: z.ZodString;
|
|
11807
|
+
organization_id: z.ZodString;
|
|
11808
|
+
name: z.ZodString;
|
|
11809
|
+
kind: z.ZodString;
|
|
11810
|
+
status: z.ZodString;
|
|
11811
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11812
|
+
deal_id: z.ZodNullable<z.ZodString>;
|
|
11813
|
+
client_id: z.ZodNullable<z.ZodString>;
|
|
11814
|
+
client_company_id: z.ZodNullable<z.ZodString>;
|
|
11815
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
11816
|
+
target_end_date: z.ZodNullable<z.ZodString>;
|
|
11817
|
+
actual_end_date: z.ZodNullable<z.ZodString>;
|
|
11818
|
+
contract_value: z.ZodNullable<z.ZodNumber>;
|
|
11819
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11820
|
+
created_at: z.ZodString;
|
|
11821
|
+
updated_at: z.ZodString;
|
|
11822
|
+
}, z.core.$strip>;
|
|
11823
|
+
}, z.core.$strip>;
|
|
11824
|
+
MilestoneListResponse: z.ZodObject<{
|
|
11825
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
11826
|
+
id: z.ZodString;
|
|
11827
|
+
organization_id: z.ZodString;
|
|
11828
|
+
project_id: z.ZodString;
|
|
11829
|
+
name: z.ZodString;
|
|
11830
|
+
status: z.ZodString;
|
|
11831
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11832
|
+
due_date: z.ZodNullable<z.ZodString>;
|
|
11833
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
11834
|
+
sequence: z.ZodNumber;
|
|
11835
|
+
checklist: z.ZodNullable<z.ZodUnknown>;
|
|
11836
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11837
|
+
created_at: z.ZodString;
|
|
11838
|
+
updated_at: z.ZodString;
|
|
11839
|
+
}, z.core.$strip>>;
|
|
11840
|
+
}, z.core.$strip>;
|
|
11841
|
+
MilestoneResponse: z.ZodObject<{
|
|
11842
|
+
milestone: z.ZodObject<{
|
|
11843
|
+
id: z.ZodString;
|
|
11844
|
+
organization_id: z.ZodString;
|
|
11845
|
+
project_id: z.ZodString;
|
|
11846
|
+
name: z.ZodString;
|
|
11847
|
+
status: z.ZodString;
|
|
11848
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11849
|
+
due_date: z.ZodNullable<z.ZodString>;
|
|
11850
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
11851
|
+
sequence: z.ZodNumber;
|
|
11852
|
+
checklist: z.ZodNullable<z.ZodUnknown>;
|
|
11853
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11854
|
+
created_at: z.ZodString;
|
|
11855
|
+
updated_at: z.ZodString;
|
|
11856
|
+
}, z.core.$strip>;
|
|
11857
|
+
}, z.core.$strip>;
|
|
11858
|
+
TaskListResponse: z.ZodObject<{
|
|
11859
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
11860
|
+
id: z.ZodString;
|
|
11861
|
+
organization_id: z.ZodString;
|
|
11862
|
+
project_id: z.ZodString;
|
|
11863
|
+
name: z.ZodString;
|
|
11864
|
+
type: z.ZodString;
|
|
11865
|
+
status: z.ZodString;
|
|
11866
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11867
|
+
milestone_id: z.ZodNullable<z.ZodString>;
|
|
11868
|
+
parent_task_id: z.ZodNullable<z.ZodString>;
|
|
11869
|
+
due_date: z.ZodNullable<z.ZodString>;
|
|
11870
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
11871
|
+
file_url: z.ZodNullable<z.ZodString>;
|
|
11872
|
+
checklist: z.ZodUnknown;
|
|
11873
|
+
resume_context: z.ZodNullable<z.ZodUnknown>;
|
|
11874
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11875
|
+
created_at: z.ZodString;
|
|
11876
|
+
updated_at: z.ZodString;
|
|
11877
|
+
}, z.core.$strip>>;
|
|
11878
|
+
}, z.core.$strip>;
|
|
11879
|
+
TaskResponse: z.ZodObject<{
|
|
11880
|
+
task: z.ZodObject<{
|
|
11881
|
+
id: z.ZodString;
|
|
11882
|
+
organization_id: z.ZodString;
|
|
11883
|
+
project_id: z.ZodString;
|
|
11884
|
+
name: z.ZodString;
|
|
11885
|
+
type: z.ZodString;
|
|
11886
|
+
status: z.ZodString;
|
|
11887
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11888
|
+
milestone_id: z.ZodNullable<z.ZodString>;
|
|
11889
|
+
parent_task_id: z.ZodNullable<z.ZodString>;
|
|
11890
|
+
due_date: z.ZodNullable<z.ZodString>;
|
|
11891
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
11892
|
+
file_url: z.ZodNullable<z.ZodString>;
|
|
11893
|
+
checklist: z.ZodUnknown;
|
|
11894
|
+
resume_context: z.ZodNullable<z.ZodUnknown>;
|
|
11895
|
+
metadata: z.ZodNullable<z.ZodUnknown>;
|
|
11896
|
+
created_at: z.ZodString;
|
|
11897
|
+
updated_at: z.ZodString;
|
|
11898
|
+
}, z.core.$strip>;
|
|
11899
|
+
}, z.core.$strip>;
|
|
11900
|
+
TaskResumeContextResponse: z.ZodObject<{
|
|
11901
|
+
task: z.ZodObject<{
|
|
11902
|
+
id: z.ZodString;
|
|
11903
|
+
project_id: z.ZodString;
|
|
11904
|
+
resume_context: z.ZodNullable<z.ZodUnknown>;
|
|
11905
|
+
updated_at: z.ZodString;
|
|
11906
|
+
}, z.core.$strip>;
|
|
11907
|
+
}, z.core.$strip>;
|
|
11908
|
+
NoteListResponse: z.ZodObject<{
|
|
11909
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
11910
|
+
id: z.ZodString;
|
|
11911
|
+
organization_id: z.ZodString;
|
|
11912
|
+
project_id: z.ZodString;
|
|
11913
|
+
content: z.ZodString;
|
|
11914
|
+
type: z.ZodString;
|
|
11915
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
11916
|
+
task_id: z.ZodNullable<z.ZodString>;
|
|
11917
|
+
milestone_id: z.ZodNullable<z.ZodString>;
|
|
11918
|
+
occurred_at: z.ZodString;
|
|
11919
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
11920
|
+
created_at: z.ZodString;
|
|
11921
|
+
}, z.core.$strip>>;
|
|
11922
|
+
}, z.core.$strip>;
|
|
11923
|
+
NoteResponse: z.ZodObject<{
|
|
11924
|
+
note: z.ZodObject<{
|
|
11925
|
+
id: z.ZodString;
|
|
11926
|
+
organization_id: z.ZodString;
|
|
11927
|
+
project_id: z.ZodString;
|
|
11928
|
+
content: z.ZodString;
|
|
11929
|
+
type: z.ZodString;
|
|
11930
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
11931
|
+
task_id: z.ZodNullable<z.ZodString>;
|
|
11932
|
+
milestone_id: z.ZodNullable<z.ZodString>;
|
|
11933
|
+
occurred_at: z.ZodString;
|
|
11934
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
11935
|
+
created_at: z.ZodString;
|
|
11936
|
+
}, z.core.$strip>;
|
|
11937
|
+
}, z.core.$strip>;
|
|
11938
|
+
DeleteSuccessResponse: z.ZodObject<{
|
|
11939
|
+
success: z.ZodBoolean;
|
|
11940
|
+
}, z.core.$strip>;
|
|
11704
11941
|
};
|
|
11705
11942
|
|
|
11706
11943
|
/**
|
|
@@ -12218,9 +12455,19 @@ type AttioToolMap = {
|
|
|
12218
12455
|
result: DeleteNoteResult;
|
|
12219
12456
|
};
|
|
12220
12457
|
};
|
|
12458
|
+
/**
|
|
12459
|
+
* What a tenant actually passes to `scheduler.createSchedule`.
|
|
12460
|
+
*
|
|
12461
|
+
* `organizationId` is omitted because the caller never supplies it and cannot: the dispatcher injects
|
|
12462
|
+
* the authenticated org via `scopedOrganizationParams` and overwrites whatever arrived on the wire.
|
|
12463
|
+
* Declaring it required made every call site cast the field away -- three verbatim copies of the same
|
|
12464
|
+
* `as` in `packages/elevasis/operations` alone -- to satisfy a type describing the server's shape rather
|
|
12465
|
+
* than the tenant's. `NotificationSDKInput` below has always had this right.
|
|
12466
|
+
*/
|
|
12467
|
+
type CreateScheduleSDKInput = Omit<CreateScheduleInput, 'organizationId'>;
|
|
12221
12468
|
type SchedulerToolMap = {
|
|
12222
12469
|
createSchedule: {
|
|
12223
|
-
params:
|
|
12470
|
+
params: CreateScheduleSDKInput;
|
|
12224
12471
|
result: TaskSchedule;
|
|
12225
12472
|
};
|
|
12226
12473
|
updateAnchor: {
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isBuiltInReadinessProfile, isZodType, lookupReadinessProfile, parseTopologyNodeRef, registerReadinessProfile, resolveContractRef, runDiagnostic, splitName, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance } from './chunk-
|
|
1
|
+
export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isBuiltInReadinessProfile, isZodType, lookupReadinessProfile, parseTopologyNodeRef, registerReadinessProfile, resolveContractRef, runDiagnostic, splitName, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance } from './chunk-XC57JNMA.js';
|
|
2
2
|
export { projectDeploymentSpec, projectTopologyRelationships, toSdkResourceDescriptor, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors } from './chunk-VYWGWJRW.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkflowDefinition, DeploymentSpec, SDKLLMGenerateParams, LLMGenerateResponse, AnymailfinderToolMap, ApifyToolMap, AttioToolMap, DropboxToolMap, GmailToolMap, GoogleSheetsToolMap, InstantlyToolMap, MillionVerifierToolMap, ResendToolMap, SignatureApiToolMap, StripeToolMap, TombaToolMap, LeadToolMap, ApprovalToolMap, ArtifactsToolMap, ContentToolMap, CrmToolMap, EmailToolMap, ExecutionToolMap, ListToolMap, NotificationToolMap, PdfToolMap, ProjectsToolMap, SchedulerToolMap, StorageToolMap } from '@elevasis/sdk';
|
|
1
|
+
import { WorkflowDefinition, DeploymentSpec, SDKLLMGenerateParams, LLMGenerateResponse, AnymailfinderToolMap, ApifyToolMap, AttioToolMap, DropboxToolMap, GmailToolMap, GoogleSheetsToolMap, InstagramToolMap, InstantlyToolMap, MillionVerifierToolMap, ResendToolMap, SignatureApiToolMap, StripeToolMap, TombaToolMap, LeadToolMap, ApprovalToolMap, ArtifactsToolMap, ContentToolMap, CrmToolMap, EmailToolMap, ExecutionToolMap, ListToolMap, NotificationToolMap, PdfToolMap, ProjectsToolMap, SchedulerToolMap, StorageToolMap } from '@elevasis/sdk';
|
|
2
2
|
import { LogEntry, TypedAdapter } from '@elevasis/sdk/worker';
|
|
3
3
|
|
|
4
4
|
interface RunWorkflowContext {
|
|
@@ -81,6 +81,17 @@ declare const createMockApify: (_credential: string, overrides?: MockAdapterOver
|
|
|
81
81
|
declare const createMockDropbox: (_credential: string, overrides?: MockAdapterOverrides<DropboxToolMap>) => TypedAdapter<DropboxToolMap>;
|
|
82
82
|
declare const createMockGmail: (_credential: string, overrides?: MockAdapterOverrides<GmailToolMap>) => TypedAdapter<GmailToolMap>;
|
|
83
83
|
declare const createMockGoogleSheets: (_credential: string, overrides?: MockAdapterOverrides<GoogleSheetsToolMap>) => TypedAdapter<GoogleSheetsToolMap>;
|
|
84
|
+
/**
|
|
85
|
+
* Instagram is the one integration here whose workflow performs an action that cannot be undone --
|
|
86
|
+
* `publishContainer` puts a post on a real account. Test a composed publish pipeline against this
|
|
87
|
+
* mock rather than against the live adapter.
|
|
88
|
+
*
|
|
89
|
+
* Two methods are worth overriding deliberately rather than letting them return `undefined`:
|
|
90
|
+
* `getContainerStatus`, because a publish sequence polls it until the container reports `FINISHED`
|
|
91
|
+
* and an un-overridden mock never gets there, and `refreshToken`, whose `expiresIn` the adapter
|
|
92
|
+
* turns into the stored `expiresAt`.
|
|
93
|
+
*/
|
|
94
|
+
declare const createMockInstagram: (_credential: string, overrides?: MockAdapterOverrides<InstagramToolMap>) => TypedAdapter<InstagramToolMap>;
|
|
84
95
|
declare const createMockInstantly: (_credential: string, overrides?: MockAdapterOverrides<InstantlyToolMap>) => TypedAdapter<InstantlyToolMap>;
|
|
85
96
|
declare const createMockTomba: (_credential: string, overrides?: MockAdapterOverrides<TombaToolMap>) => TypedAdapter<TombaToolMap>;
|
|
86
97
|
declare const createMockResend: (_credential: string, overrides?: MockAdapterOverrides<ResendToolMap>) => TypedAdapter<ResendToolMap>;
|
|
@@ -89,5 +100,5 @@ declare const createMockStripe: (_credential: string, overrides?: MockAdapterOve
|
|
|
89
100
|
declare const createMockAnymailfinder: (_credential: string, overrides?: MockAdapterOverrides<AnymailfinderToolMap>) => TypedAdapter<AnymailfinderToolMap>;
|
|
90
101
|
declare const createMockMillionVerifier: (_credential: string, overrides?: MockAdapterOverrides<MillionVerifierToolMap>) => TypedAdapter<MillionVerifierToolMap>;
|
|
91
102
|
|
|
92
|
-
export { assertResourceRegistry, createMockAnymailfinder, createMockApify, createMockAttio, createMockDropbox, createMockGmail, createMockGoogleSheets, createMockInstantly, createMockMillionVerifier, createMockResend, createMockSignatureApi, createMockStripe, createMockTomba, mockAcqDb, mockApproval, mockArtifacts, mockContent, mockCrm, mockEmail, mockExecution, mockList, mockLlm, mockNotifications, mockPdf, mockProjects, mockScheduler, mockStorage, runLinearWorkflow, runWorkflow };
|
|
103
|
+
export { assertResourceRegistry, createMockAnymailfinder, createMockApify, createMockAttio, createMockDropbox, createMockGmail, createMockGoogleSheets, createMockInstagram, createMockInstantly, createMockMillionVerifier, createMockResend, createMockSignatureApi, createMockStripe, createMockTomba, mockAcqDb, mockApproval, mockArtifacts, mockContent, mockCrm, mockEmail, mockExecution, mockList, mockLlm, mockNotifications, mockPdf, mockProjects, mockScheduler, mockStorage, runLinearWorkflow, runWorkflow };
|
|
93
104
|
export type { AssertResourceRegistryOptions, LinearWorkflowStepEvent, MockAdapterOverrides, MockLlmAdapter, RunLinearWorkflowContext, RunLinearWorkflowOptions, RunLinearWorkflowResult, RunWorkflowContext, RunWorkflowOptions, RunWorkflowResult, WorkflowStepEvent };
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { executeWorkflow } from '../chunk-
|
|
2
|
-
import { validateDeploymentSpec, validateRelationships } from '../chunk-
|
|
1
|
+
import { executeWorkflow } from '../chunk-T6DTAP2U.js';
|
|
2
|
+
import { validateDeploymentSpec, validateRelationships } from '../chunk-XC57JNMA.js';
|
|
3
3
|
import '../chunk-VYWGWJRW.js';
|
|
4
4
|
import { vi } from 'vitest';
|
|
5
5
|
|
|
@@ -341,6 +341,19 @@ var createMockGoogleSheets = (_credential, overrides) => createMockAdapter(
|
|
|
341
341
|
],
|
|
342
342
|
overrides
|
|
343
343
|
);
|
|
344
|
+
var createMockInstagram = (_credential, overrides) => createMockAdapter(
|
|
345
|
+
[
|
|
346
|
+
"createMediaContainer",
|
|
347
|
+
"createCarouselContainer",
|
|
348
|
+
"publishContainer",
|
|
349
|
+
"getContainerStatus",
|
|
350
|
+
"getMediaPermalink",
|
|
351
|
+
"getPublishingLimit",
|
|
352
|
+
"getMediaInsights",
|
|
353
|
+
"refreshToken"
|
|
354
|
+
],
|
|
355
|
+
overrides
|
|
356
|
+
);
|
|
344
357
|
var createMockInstantly = (_credential, overrides) => createMockAdapter(
|
|
345
358
|
[
|
|
346
359
|
"sendReply",
|
|
@@ -390,4 +403,4 @@ var createMockAnymailfinder = (_credential, overrides) => createMockAdapter(
|
|
|
390
403
|
);
|
|
391
404
|
var createMockMillionVerifier = (_credential, overrides) => createMockAdapter(["verifyEmail", "checkCredits"], overrides);
|
|
392
405
|
|
|
393
|
-
export { assertResourceRegistry, createMockAnymailfinder, createMockApify, createMockAttio, createMockDropbox, createMockGmail, createMockGoogleSheets, createMockInstantly, createMockMillionVerifier, createMockResend, createMockSignatureApi, createMockStripe, createMockTomba, mockAcqDb, mockApproval, mockArtifacts, mockContent, mockCrm, mockEmail, mockExecution, mockList, mockLlm, mockNotifications, mockPdf, mockProjects, mockScheduler, mockStorage, runLinearWorkflow, runWorkflow };
|
|
406
|
+
export { assertResourceRegistry, createMockAnymailfinder, createMockApify, createMockAttio, createMockDropbox, createMockGmail, createMockGoogleSheets, createMockInstagram, createMockInstantly, createMockMillionVerifier, createMockResend, createMockSignatureApi, createMockStripe, createMockTomba, mockAcqDb, mockApproval, mockArtifacts, mockContent, mockCrm, mockEmail, mockExecution, mockList, mockLlm, mockNotifications, mockPdf, mockProjects, mockScheduler, mockStorage, runLinearWorkflow, runWorkflow };
|
package/dist/worker/index.d.ts
CHANGED
|
@@ -1164,7 +1164,7 @@ declare function toContentMetrics(insights: InstagramInsights): ContentMetrics;
|
|
|
1164
1164
|
* Parent -> Worker: { type: 'execute', resourceId, executionId, input, organizationId?, organizationName?,
|
|
1165
1165
|
* sessionId?, sessionTurnNumber?, sessionMemory?, conversationHistory?,
|
|
1166
1166
|
* parentExecutionId?, executionDepth }
|
|
1167
|
-
* Worker -> Parent: { type: 'result', status, output?, memorySnapshot?, error?, logs, metrics: { durationMs } }
|
|
1167
|
+
* Worker -> Parent: { type: 'result', status, output?, stopReason?, hasSpoken?, memorySnapshot?, error?, logs, metrics: { durationMs } }
|
|
1168
1168
|
*
|
|
1169
1169
|
* Parent -> Worker: { type: 'abort', reason? } (graceful abort before terminate;
|
|
1170
1170
|
* reason carries AbortSignal.reason
|
package/dist/worker/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ListBuilderResultSchema, ListBuilderResultsSchema, PlatformToolError, acqDb, approval, artifacts, classifyPlatformToolError, content, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createCaptionGenerationWorkflow, createCaptureInstagramMetricsWorkflow, createClickUpAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createImageAnalysisWorkflow, createInstagramAdapter, createInstantlyAdapter, createMillionVerifierAdapter, createPublishInstagramWorkflow, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, crm, email, executeWorkflow, execution, generateHmacToken, list, listBuilderWorkflow, llm, notifications, pdf, platform, projects, scheduler, startWorker, storage, toContentMetrics } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ListBuilderResultSchema, ListBuilderResultsSchema, PlatformToolError, acqDb, approval, artifacts, classifyPlatformToolError, content, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createCaptionGenerationWorkflow, createCaptureInstagramMetricsWorkflow, createClickUpAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createImageAnalysisWorkflow, createInstagramAdapter, createInstantlyAdapter, createMillionVerifierAdapter, createPublishInstagramWorkflow, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, crm, email, executeWorkflow, execution, generateHmacToken, list, listBuilderWorkflow, llm, notifications, pdf, platform, projects, scheduler, startWorker, storage, toContentMetrics } from '../chunk-T6DTAP2U.js';
|
|
2
|
+
import '../chunk-XC57JNMA.js';
|
|
3
3
|
import '../chunk-VYWGWJRW.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"description": "SDK for building Elevasis organization resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"typescript": "5.9.2",
|
|
64
64
|
"vitest": "^3.2.4",
|
|
65
65
|
"zod": "^4.1.0",
|
|
66
|
-
"@repo/core": "0.
|
|
67
|
-
"@repo/
|
|
68
|
-
"@repo/
|
|
66
|
+
"@repo/core": "0.69.0",
|
|
67
|
+
"@repo/typescript-config": "0.0.0",
|
|
68
|
+
"@repo/eslint-config": "0.0.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"lint": "eslint src --max-warnings 0",
|
package/reference/_navigation.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Auto-generated from the package reference manifests.
|
|
6
6
|
|
|
7
|
-
Package entries indexed:
|
|
7
|
+
Package entries indexed: 63.
|
|
8
8
|
|
|
9
9
|
## @elevasis/core / Auth
|
|
10
10
|
|
|
@@ -138,7 +138,6 @@ Package entries indexed: 64.
|
|
|
138
138
|
| Hooks Access | `packages/ui/src/hooks/README.md` | Published Access Model hook surface for checking route, section, and action access. | (not specified) |
|
|
139
139
|
| Hooks Delivery | `packages/ui/src/hooks/README.md` | Published delivery hooks for projects, milestones, tasks, and notes. | (not specified) |
|
|
140
140
|
| Hooks User Notes | `packages/ui/src/hooks/README.md` | Published user-notes query and mutation hooks used by shared Notes surfaces. | (not specified) |
|
|
141
|
-
| Transform Command View Data | `packages/ui/src/hooks/README.md` | Utility that transforms backend CommandViewData arrays into a unified frontend CommandViewGraph with nodes and edges. | (not specified) |
|
|
142
141
|
|
|
143
142
|
## @elevasis/ui / Provider
|
|
144
143
|
|
|
@@ -743,20 +743,6 @@
|
|
|
743
743
|
"referencePath": "packages/ui/src/hooks/README.md",
|
|
744
744
|
"publishedExportPath": "./dist/hooks/user-notes/index.js"
|
|
745
745
|
},
|
|
746
|
-
{
|
|
747
|
-
"packageName": "@elevasis/ui",
|
|
748
|
-
"packageDir": "packages/ui",
|
|
749
|
-
"subpath": "./hooks/operations/command-view/utils/transformCommandViewData",
|
|
750
|
-
"kind": "subpath",
|
|
751
|
-
"title": "Transform Command View Data",
|
|
752
|
-
"description": "Utility that transforms backend CommandViewData arrays into a unified frontend CommandViewGraph with nodes and edges.",
|
|
753
|
-
"group": "Hooks",
|
|
754
|
-
"order": 3,
|
|
755
|
-
"sourcePath": "packages/ui/src/hooks/operations/command-view/utils/transformCommandViewData.ts",
|
|
756
|
-
"docPath": "packages/ui/src/hooks/README.md",
|
|
757
|
-
"referencePath": "packages/ui/src/hooks/README.md",
|
|
758
|
-
"publishedExportPath": "./dist/hooks/operations/command-view/utils/transformCommandViewData.js"
|
|
759
|
-
},
|
|
760
746
|
{
|
|
761
747
|
"packageName": "@elevasis/ui",
|
|
762
748
|
"packageDir": "packages/ui",
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
# Hooks
|
|
2
|
-
|
|
3
|
-
The hooks barrel is the published headless hook surface for the UI package.
|
|
4
|
-
|
|
5
|
-
## Grouped Areas
|
|
6
|
-
|
|
7
|
-
- Execution and workflow hooks
|
|
8
|
-
- Scheduling hooks
|
|
9
|
-
- Monitoring, observability, and notification hooks
|
|
10
|
-
- Session and SSE hooks
|
|
11
|
-
- Operations hooks, including command-view helpers
|
|
12
|
-
- Feature access, table state, and service helpers
|
|
13
|
-
- Acquisition and delivery hooks
|
|
14
|
-
|
|
15
|
-
## Published Subpaths
|
|
16
|
-
|
|
17
|
-
- `./hooks`
|
|
18
|
-
- `./hooks/delivery`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- This barrel is intentionally headless. It should not pull in the visual component layer.
|
|
1
|
+
# Hooks
|
|
2
|
+
|
|
3
|
+
The hooks barrel is the published headless hook surface for the UI package.
|
|
4
|
+
|
|
5
|
+
## Grouped Areas
|
|
6
|
+
|
|
7
|
+
- Execution and workflow hooks
|
|
8
|
+
- Scheduling hooks
|
|
9
|
+
- Monitoring, observability, and notification hooks
|
|
10
|
+
- Session and SSE hooks
|
|
11
|
+
- Operations hooks, including command-view helpers
|
|
12
|
+
- Feature access, table state, and service helpers
|
|
13
|
+
- Acquisition and delivery hooks
|
|
14
|
+
|
|
15
|
+
## Published Subpaths
|
|
16
|
+
|
|
17
|
+
- `./hooks`
|
|
18
|
+
- `./hooks/delivery`
|
|
19
|
+
|
|
20
|
+
## Notes
|
|
21
|
+
|
|
22
|
+
- This barrel is intentionally headless. It should not pull in the visual component layer.
|