@topolo/sdk 0.9.8 → 0.9.10

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.cts CHANGED
@@ -528,6 +528,7 @@ declare const APP_API_URLS: {
528
528
  readonly agent: "https://agent.topolo.app";
529
529
  readonly auth: "https://auth.topolo.app";
530
530
  readonly backup: "https://backup.topolo.app";
531
+ readonly blog: "https://blog.topolo.app";
531
532
  readonly books: "https://books.topolo.app";
532
533
  readonly brand: "https://brand.topolo.app";
533
534
  readonly bugfix: "https://bugfix.topolo.app";
@@ -540,6 +541,7 @@ declare const APP_API_URLS: {
540
541
  readonly compose: "https://compose.topolo.app";
541
542
  readonly consent: "https://consent.topolo.app";
542
543
  readonly crm: "https://crm.topolo.app";
544
+ readonly design: "https://design.topolo.app";
543
545
  readonly developers: "https://developers.topolo.app";
544
546
  readonly director: "https://director.topolo.app";
545
547
  readonly feed: "https://feed.topolo.app";
@@ -613,7 +615,7 @@ declare const APPLICATIONS: {
613
615
  readonly kind: "worker";
614
616
  readonly apiUrl: "https://agent.topolo.app";
615
617
  readonly domains: readonly ["agent.topolo.app"];
616
- readonly routes: readonly [];
618
+ readonly routes: readonly ["agent.topolo.app"];
617
619
  readonly appId: "agent";
618
620
  }, {
619
621
  readonly name: "topolo-agent-api";
@@ -656,6 +658,29 @@ declare const APPLICATIONS: {
656
658
  readonly appId: "backup";
657
659
  }];
658
660
  };
661
+ readonly blog: {
662
+ readonly id: "blog";
663
+ readonly appDir: "TopoloBlog";
664
+ readonly name: "topolo-blog";
665
+ readonly packageName: "topolo-blog";
666
+ readonly productionUrl: "https://blog.topolo.app";
667
+ readonly services: readonly ["blog"];
668
+ readonly deployTargets: readonly [{
669
+ readonly name: "topolo-blog";
670
+ readonly kind: "worker";
671
+ readonly apiUrl: "https://blog.topolo.app";
672
+ readonly domains: readonly ["blog.topolo.app"];
673
+ readonly routes: readonly ["blog.topolo.app"];
674
+ readonly appId: "blog";
675
+ }, {
676
+ readonly name: "topolo-blog-api";
677
+ readonly kind: "worker";
678
+ readonly apiUrl: null;
679
+ readonly domains: readonly [];
680
+ readonly routes: readonly [];
681
+ readonly appId: null;
682
+ }];
683
+ };
659
684
  readonly books: {
660
685
  readonly id: "books";
661
686
  readonly appDir: "TopoloBooks";
@@ -668,7 +693,7 @@ declare const APPLICATIONS: {
668
693
  readonly kind: "worker";
669
694
  readonly apiUrl: "https://books.topolo.app";
670
695
  readonly domains: readonly ["books.topolo.app"];
671
- readonly routes: readonly [];
696
+ readonly routes: readonly ["books.topolo.app"];
672
697
  readonly appId: "books";
673
698
  }, {
674
699
  readonly name: "topolo-books-api";
@@ -776,7 +801,7 @@ declare const APPLICATIONS: {
776
801
  readonly kind: "worker";
777
802
  readonly apiUrl: "https://campaigns.topolo.app";
778
803
  readonly domains: readonly ["campaigns.topolo.app"];
779
- readonly routes: readonly [];
804
+ readonly routes: readonly ["campaigns.topolo.app"];
780
805
  readonly appId: "campaigns";
781
806
  }, {
782
807
  readonly name: "topolo-campaigns-api";
@@ -875,7 +900,7 @@ declare const APPLICATIONS: {
875
900
  readonly kind: "worker";
876
901
  readonly apiUrl: "https://compose.topolo.app";
877
902
  readonly domains: readonly ["compose.topolo.app"];
878
- readonly routes: readonly [];
903
+ readonly routes: readonly ["compose.topolo.app"];
879
904
  readonly appId: "compose";
880
905
  }, {
881
906
  readonly name: "topolo-compose-api";
@@ -898,7 +923,7 @@ declare const APPLICATIONS: {
898
923
  readonly kind: "worker";
899
924
  readonly apiUrl: "https://consent.topolo.app";
900
925
  readonly domains: readonly ["consent.topolo.app"];
901
- readonly routes: readonly [];
926
+ readonly routes: readonly ["consent.topolo.app"];
902
927
  readonly appId: "consent";
903
928
  }, {
904
929
  readonly name: "topolo-consent-api";
@@ -928,10 +953,33 @@ declare const APPLICATIONS: {
928
953
  readonly kind: "worker";
929
954
  readonly apiUrl: "https://crm.topolo.app";
930
955
  readonly domains: readonly ["crm.topolo.app"];
931
- readonly routes: readonly [];
956
+ readonly routes: readonly ["crm.topolo.app"];
932
957
  readonly appId: "crm";
933
958
  }];
934
959
  };
960
+ readonly design: {
961
+ readonly id: "design";
962
+ readonly appDir: "TopoloDesign";
963
+ readonly name: "topolo-design";
964
+ readonly packageName: "@topolo-io/design";
965
+ readonly productionUrl: "https://design.topolo.app";
966
+ readonly services: readonly ["design"];
967
+ readonly deployTargets: readonly [{
968
+ readonly name: "topolo-design";
969
+ readonly kind: "worker";
970
+ readonly apiUrl: "https://design.topolo.app";
971
+ readonly domains: readonly ["design.topolo.app"];
972
+ readonly routes: readonly ["design.topolo.app"];
973
+ readonly appId: "design";
974
+ }, {
975
+ readonly name: "topolo-design-api";
976
+ readonly kind: "worker";
977
+ readonly apiUrl: null;
978
+ readonly domains: readonly [];
979
+ readonly routes: readonly [];
980
+ readonly appId: null;
981
+ }];
982
+ };
935
983
  readonly developers: {
936
984
  readonly id: "developers";
937
985
  readonly appDir: "TopoloDevelopers";
@@ -951,7 +999,7 @@ declare const APPLICATIONS: {
951
999
  readonly kind: "worker";
952
1000
  readonly apiUrl: "https://developers.topolo.app";
953
1001
  readonly domains: readonly ["developers.topolo.app"];
954
- readonly routes: readonly [];
1002
+ readonly routes: readonly ["developers.topolo.app"];
955
1003
  readonly appId: "developers";
956
1004
  }, {
957
1005
  readonly name: "topolo-developers-api";
@@ -974,7 +1022,7 @@ declare const APPLICATIONS: {
974
1022
  readonly kind: "worker";
975
1023
  readonly apiUrl: "https://director.topolo.app";
976
1024
  readonly domains: readonly ["director.topolo.app"];
977
- readonly routes: readonly [];
1025
+ readonly routes: readonly ["director.topolo.app"];
978
1026
  readonly appId: "director";
979
1027
  }, {
980
1028
  readonly name: "topolo-director-api";
@@ -1050,7 +1098,7 @@ declare const APPLICATIONS: {
1050
1098
  readonly kind: "worker";
1051
1099
  readonly apiUrl: "https://flow.topolo.app";
1052
1100
  readonly domains: readonly ["flow.topolo.app"];
1053
- readonly routes: readonly [];
1101
+ readonly routes: readonly ["flow.topolo.app"];
1054
1102
  readonly appId: "flow";
1055
1103
  }, {
1056
1104
  readonly name: "topolo-flow-api";
@@ -1073,7 +1121,7 @@ declare const APPLICATIONS: {
1073
1121
  readonly kind: "worker";
1074
1122
  readonly apiUrl: "https://forecast.topolo.app";
1075
1123
  readonly domains: readonly ["forecast.topolo.app"];
1076
- readonly routes: readonly [];
1124
+ readonly routes: readonly ["forecast.topolo.app"];
1077
1125
  readonly appId: "forecast";
1078
1126
  }, {
1079
1127
  readonly name: "topolo-forecast-api";
@@ -1096,7 +1144,7 @@ declare const APPLICATIONS: {
1096
1144
  readonly kind: "worker";
1097
1145
  readonly apiUrl: "https://forms.topolo.app";
1098
1146
  readonly domains: readonly ["forms.topolo.app"];
1099
- readonly routes: readonly [];
1147
+ readonly routes: readonly ["forms.topolo.app"];
1100
1148
  readonly appId: "forms";
1101
1149
  }, {
1102
1150
  readonly name: "topolo-forms-api";
@@ -1142,7 +1190,7 @@ declare const APPLICATIONS: {
1142
1190
  readonly kind: "worker";
1143
1191
  readonly apiUrl: "https://insights.topolo.app";
1144
1192
  readonly domains: readonly ["insights.topolo.app"];
1145
- readonly routes: readonly [];
1193
+ readonly routes: readonly ["insights.topolo.app"];
1146
1194
  readonly appId: "insights";
1147
1195
  }, {
1148
1196
  readonly name: "topolo-insights-api";
@@ -1165,7 +1213,7 @@ declare const APPLICATIONS: {
1165
1213
  readonly kind: "worker";
1166
1214
  readonly apiUrl: "https://inventory.topolo.app";
1167
1215
  readonly domains: readonly ["inventory.topolo.app"];
1168
- readonly routes: readonly [];
1216
+ readonly routes: readonly ["inventory.topolo.app"];
1169
1217
  readonly appId: "inventory";
1170
1218
  }, {
1171
1219
  readonly name: "topolo-inventory-api";
@@ -1411,7 +1459,7 @@ declare const APPLICATIONS: {
1411
1459
  readonly kind: "worker";
1412
1460
  readonly apiUrl: "https://pay.topolo.app";
1413
1461
  readonly domains: readonly ["pay.topolo.app"];
1414
- readonly routes: readonly [];
1462
+ readonly routes: readonly ["pay.topolo.app"];
1415
1463
  readonly appId: "pay";
1416
1464
  }, {
1417
1465
  readonly name: "topolo-pay-api";
@@ -1434,7 +1482,7 @@ declare const APPLICATIONS: {
1434
1482
  readonly kind: "worker";
1435
1483
  readonly apiUrl: "https://people.topolo.app";
1436
1484
  readonly domains: readonly ["people.topolo.app"];
1437
- readonly routes: readonly [];
1485
+ readonly routes: readonly ["people.topolo.app"];
1438
1486
  readonly appId: "people";
1439
1487
  }, {
1440
1488
  readonly name: "topolo-people-api";
@@ -1487,7 +1535,7 @@ declare const APPLICATIONS: {
1487
1535
  readonly kind: "worker";
1488
1536
  readonly apiUrl: "https://roadmapper.topolo.app";
1489
1537
  readonly domains: readonly ["roadmapper.topolo.app"];
1490
- readonly routes: readonly [];
1538
+ readonly routes: readonly ["roadmapper.topolo.app"];
1491
1539
  readonly appId: "roadmapper";
1492
1540
  }, {
1493
1541
  readonly name: "topolo-roadmapper-api";
@@ -1510,7 +1558,7 @@ declare const APPLICATIONS: {
1510
1558
  readonly kind: "worker";
1511
1559
  readonly apiUrl: "https://sign.topolo.app";
1512
1560
  readonly domains: readonly ["sign.topolo.app"];
1513
- readonly routes: readonly [];
1561
+ readonly routes: readonly ["sign.topolo.app"];
1514
1562
  readonly appId: "sign";
1515
1563
  }, {
1516
1564
  readonly name: "topolo-sign-api";
@@ -1593,7 +1641,7 @@ declare const APPLICATIONS: {
1593
1641
  readonly kind: "worker";
1594
1642
  readonly apiUrl: "https://spaces.topolo.app";
1595
1643
  readonly domains: readonly ["spaces.topolo.app"];
1596
- readonly routes: readonly [];
1644
+ readonly routes: readonly ["spaces.topolo.app"];
1597
1645
  readonly appId: "spaces";
1598
1646
  }, {
1599
1647
  readonly name: "topolo-spaces-api";
@@ -1678,7 +1726,7 @@ declare const APPLICATIONS: {
1678
1726
  readonly kind: "worker";
1679
1727
  readonly apiUrl: "https://survey.topolo.app";
1680
1728
  readonly domains: readonly ["survey.topolo.app"];
1681
- readonly routes: readonly [];
1729
+ readonly routes: readonly ["survey.topolo.app"];
1682
1730
  readonly appId: "survey";
1683
1731
  }, {
1684
1732
  readonly name: "topolo-survey-api";
@@ -2008,6 +2056,66 @@ declare class IdentityModule {
2008
2056
  whoami(): Promise<CredentialIntrospection>;
2009
2057
  }
2010
2058
 
2059
+ interface TopoloWorkspace {
2060
+ id: string;
2061
+ appId: string;
2062
+ organizationId: string;
2063
+ name: string;
2064
+ slug: string;
2065
+ status: string;
2066
+ isDefault: boolean;
2067
+ ownerUserId: string | null;
2068
+ createdByUserId: string | null;
2069
+ createdAt: number;
2070
+ updatedAt: number;
2071
+ archivedAt: number | null;
2072
+ accessRole: string;
2073
+ accessLevel: string;
2074
+ }
2075
+ interface TopoloWorkspacePolicy {
2076
+ mode: string;
2077
+ limit: number | null;
2078
+ remaining: number | null;
2079
+ userLimit: number | null;
2080
+ userRemaining: number | null;
2081
+ canCreate: boolean;
2082
+ reason: string;
2083
+ }
2084
+ interface TopoloWorkspaceListResult {
2085
+ success: boolean;
2086
+ message: string;
2087
+ data: {
2088
+ appId: string;
2089
+ organizationId: string;
2090
+ accessMode: string;
2091
+ canManageAll: boolean;
2092
+ workspaces: TopoloWorkspace[];
2093
+ policy: TopoloWorkspacePolicy;
2094
+ };
2095
+ timestamp?: string;
2096
+ }
2097
+ interface TopoloWorkspaceMutationResult {
2098
+ success: boolean;
2099
+ message: string;
2100
+ data: {
2101
+ workspace: TopoloWorkspace;
2102
+ };
2103
+ timestamp?: string;
2104
+ }
2105
+ declare class WorkspacesModule {
2106
+ private readonly client;
2107
+ constructor(client: TopoloClient);
2108
+ list(application: string): Promise<TopoloWorkspaceListResult>;
2109
+ create(application: string, input: {
2110
+ name: string;
2111
+ isDefault?: boolean;
2112
+ confirm?: boolean;
2113
+ }): Promise<TopoloWorkspaceMutationResult>;
2114
+ rename(application: string, workspaceId: string, name: string, confirm?: boolean): Promise<TopoloWorkspaceMutationResult>;
2115
+ setDefault(application: string, workspaceId: string, confirm?: boolean): Promise<TopoloWorkspaceMutationResult>;
2116
+ private resolveContext;
2117
+ }
2118
+
2011
2119
  type P2PPricingModel = 'free' | 'fixed' | 'metered' | 'quote' | 'invoice';
2012
2120
  interface P2PCapability {
2013
2121
  capability_id: string;
@@ -2433,8 +2541,9 @@ declare function validateTopoloWidgetResponse(response: unknown): TopoloWidgetVa
2433
2541
  declare function createTopolo(options: TopoloClientOptions): {
2434
2542
  client: TopoloClient;
2435
2543
  identity: IdentityModule;
2544
+ workspaces: WorkspacesModule;
2436
2545
  crm: CrmModule;
2437
2546
  };
2438
2547
  type Topolo = ReturnType<typeof createTopolo>;
2439
2548
 
2440
- export { ACTION_CATALOG_DIGEST_ALGORITHM, APPLICATIONS, APPLICATION_REQUIREMENTS, APPLICATION_REQUIREMENTS_VERSION, type ActionContractManifest, type ActionContractSource, type AgentIdentity, type AppApiId, type ApplicationCatalogEntry, type ApplicationDeployTarget, type ApplicationId, type ApplicationRequirement, type ApplicationRequirementAudit, type ApplicationRequirementFinding, type ApplicationRequirementMigrationItem, type ApplicationRequirementScope, type ApplicationRequirementScore, type ApplicationRequirementStatus, type ApplicationRequirementsAuditReport, type CredentialIntrospection, type CrmContactSummary, CrmModule, DEFAULT_APP_URLS, type DeviceAuthorizationResponse, IdentityModule, type ListContactsOptions, type ListContactsResult, type OAuthHelperOptions, type P2PActionDetail, type P2PActionRequestInput, type P2PActionRequestResult, type P2PActionRow, type P2PActionRun, type P2PCapability, type P2PConnection, type P2PHold, type P2PLedgerEntry, P2PModule, type P2PPolicy, type P2PPricingModel, type P2PSettlementBatch, type P2PSettlementGroup, type PublishCapabilityInput, type RequestOptions, type ServiceCatalogUrlEntry, TOPOLO_WIDGET_ENDPOINT, TOPOLO_WIDGET_REFRESH_INTERVAL_MS, type TokenResponse, type Topolo, type TopoloActionAgentContract, type TopoloActionCatalogEntry, type TopoloActionCatalogSummary, type TopoloActionDigestInput, type TopoloActionPlan, type TopoloActionUploadOptions, type TopoloActionValidationIssue, type TopoloActionValidationResult, type TopoloApiKeyResourceMetadata, TopoloAuthError, type TopoloBindableResource, type TopoloBindableResourceCatalog, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, TopoloConfirmationRequiredError, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, type TopoloInlineBase64UploadContract, type TopoloNotificationsWidget, TopoloOAuth, TopoloPermissionError, type TopoloQuickActionsWidget, type TopoloRecentActivityWidget, TopoloSdkError, type TopoloServiceCatalogEntry, type TopoloStatsWidget, type TopoloWidget, type TopoloWidgetActionItem, type TopoloWidgetActivityItem, type TopoloWidgetApiResponse, type TopoloWidgetBase, type TopoloWidgetConfig, type TopoloWidgetDraft, type TopoloWidgetMetric, type TopoloWidgetNotificationItem, type TopoloWidgetResponseOptions, type TopoloWidgetSnapshotMetadata, type TopoloWidgetSnapshotMetric, type TopoloWidgetType, type TopoloWidgetValidationResult, actionContractCompleteness, applicationRequirementScopes, auditAllApplicationRequirements, auditApplicationRequirements, createTopolo, createTopoloWidgetError, createTopoloWidgetResponse, defineTopoloChartWidget, defineTopoloNotificationsWidget, defineTopoloQuickActionsWidget, defineTopoloRecentActivityWidget, defineTopoloStatsWidget, digestTopoloActionCatalog, enrichActionContract, parseTopoloActionUploadContract, prepareTopoloActionBase64UploadInput, prepareTopoloActionUploadInput, requirementsForApplication, resolveCatalogServiceUrl, resolveServiceUrl, validateTopoloActionInput, validateTopoloWidgetResponse };
2549
+ export { ACTION_CATALOG_DIGEST_ALGORITHM, APPLICATIONS, APPLICATION_REQUIREMENTS, APPLICATION_REQUIREMENTS_VERSION, type ActionContractManifest, type ActionContractSource, type AgentIdentity, type AppApiId, type ApplicationCatalogEntry, type ApplicationDeployTarget, type ApplicationId, type ApplicationRequirement, type ApplicationRequirementAudit, type ApplicationRequirementFinding, type ApplicationRequirementMigrationItem, type ApplicationRequirementScope, type ApplicationRequirementScore, type ApplicationRequirementStatus, type ApplicationRequirementsAuditReport, type CredentialIntrospection, type CrmContactSummary, CrmModule, DEFAULT_APP_URLS, type DeviceAuthorizationResponse, IdentityModule, type ListContactsOptions, type ListContactsResult, type OAuthHelperOptions, type P2PActionDetail, type P2PActionRequestInput, type P2PActionRequestResult, type P2PActionRow, type P2PActionRun, type P2PCapability, type P2PConnection, type P2PHold, type P2PLedgerEntry, P2PModule, type P2PPolicy, type P2PPricingModel, type P2PSettlementBatch, type P2PSettlementGroup, type PublishCapabilityInput, type RequestOptions, type ServiceCatalogUrlEntry, TOPOLO_WIDGET_ENDPOINT, TOPOLO_WIDGET_REFRESH_INTERVAL_MS, type TokenResponse, type Topolo, type TopoloActionAgentContract, type TopoloActionCatalogEntry, type TopoloActionCatalogSummary, type TopoloActionDigestInput, type TopoloActionPlan, type TopoloActionUploadOptions, type TopoloActionValidationIssue, type TopoloActionValidationResult, type TopoloApiKeyResourceMetadata, TopoloAuthError, type TopoloBindableResource, type TopoloBindableResourceCatalog, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, TopoloConfirmationRequiredError, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, type TopoloInlineBase64UploadContract, type TopoloNotificationsWidget, TopoloOAuth, TopoloPermissionError, type TopoloQuickActionsWidget, type TopoloRecentActivityWidget, TopoloSdkError, type TopoloServiceCatalogEntry, type TopoloStatsWidget, type TopoloWidget, type TopoloWidgetActionItem, type TopoloWidgetActivityItem, type TopoloWidgetApiResponse, type TopoloWidgetBase, type TopoloWidgetConfig, type TopoloWidgetDraft, type TopoloWidgetMetric, type TopoloWidgetNotificationItem, type TopoloWidgetResponseOptions, type TopoloWidgetSnapshotMetadata, type TopoloWidgetSnapshotMetric, type TopoloWidgetType, type TopoloWidgetValidationResult, type TopoloWorkspace, type TopoloWorkspaceListResult, type TopoloWorkspaceMutationResult, type TopoloWorkspacePolicy, WorkspacesModule, actionContractCompleteness, applicationRequirementScopes, auditAllApplicationRequirements, auditApplicationRequirements, createTopolo, createTopoloWidgetError, createTopoloWidgetResponse, defineTopoloChartWidget, defineTopoloNotificationsWidget, defineTopoloQuickActionsWidget, defineTopoloRecentActivityWidget, defineTopoloStatsWidget, digestTopoloActionCatalog, enrichActionContract, parseTopoloActionUploadContract, prepareTopoloActionBase64UploadInput, prepareTopoloActionUploadInput, requirementsForApplication, resolveCatalogServiceUrl, resolveServiceUrl, validateTopoloActionInput, validateTopoloWidgetResponse };
package/dist/index.d.ts CHANGED
@@ -528,6 +528,7 @@ declare const APP_API_URLS: {
528
528
  readonly agent: "https://agent.topolo.app";
529
529
  readonly auth: "https://auth.topolo.app";
530
530
  readonly backup: "https://backup.topolo.app";
531
+ readonly blog: "https://blog.topolo.app";
531
532
  readonly books: "https://books.topolo.app";
532
533
  readonly brand: "https://brand.topolo.app";
533
534
  readonly bugfix: "https://bugfix.topolo.app";
@@ -540,6 +541,7 @@ declare const APP_API_URLS: {
540
541
  readonly compose: "https://compose.topolo.app";
541
542
  readonly consent: "https://consent.topolo.app";
542
543
  readonly crm: "https://crm.topolo.app";
544
+ readonly design: "https://design.topolo.app";
543
545
  readonly developers: "https://developers.topolo.app";
544
546
  readonly director: "https://director.topolo.app";
545
547
  readonly feed: "https://feed.topolo.app";
@@ -613,7 +615,7 @@ declare const APPLICATIONS: {
613
615
  readonly kind: "worker";
614
616
  readonly apiUrl: "https://agent.topolo.app";
615
617
  readonly domains: readonly ["agent.topolo.app"];
616
- readonly routes: readonly [];
618
+ readonly routes: readonly ["agent.topolo.app"];
617
619
  readonly appId: "agent";
618
620
  }, {
619
621
  readonly name: "topolo-agent-api";
@@ -656,6 +658,29 @@ declare const APPLICATIONS: {
656
658
  readonly appId: "backup";
657
659
  }];
658
660
  };
661
+ readonly blog: {
662
+ readonly id: "blog";
663
+ readonly appDir: "TopoloBlog";
664
+ readonly name: "topolo-blog";
665
+ readonly packageName: "topolo-blog";
666
+ readonly productionUrl: "https://blog.topolo.app";
667
+ readonly services: readonly ["blog"];
668
+ readonly deployTargets: readonly [{
669
+ readonly name: "topolo-blog";
670
+ readonly kind: "worker";
671
+ readonly apiUrl: "https://blog.topolo.app";
672
+ readonly domains: readonly ["blog.topolo.app"];
673
+ readonly routes: readonly ["blog.topolo.app"];
674
+ readonly appId: "blog";
675
+ }, {
676
+ readonly name: "topolo-blog-api";
677
+ readonly kind: "worker";
678
+ readonly apiUrl: null;
679
+ readonly domains: readonly [];
680
+ readonly routes: readonly [];
681
+ readonly appId: null;
682
+ }];
683
+ };
659
684
  readonly books: {
660
685
  readonly id: "books";
661
686
  readonly appDir: "TopoloBooks";
@@ -668,7 +693,7 @@ declare const APPLICATIONS: {
668
693
  readonly kind: "worker";
669
694
  readonly apiUrl: "https://books.topolo.app";
670
695
  readonly domains: readonly ["books.topolo.app"];
671
- readonly routes: readonly [];
696
+ readonly routes: readonly ["books.topolo.app"];
672
697
  readonly appId: "books";
673
698
  }, {
674
699
  readonly name: "topolo-books-api";
@@ -776,7 +801,7 @@ declare const APPLICATIONS: {
776
801
  readonly kind: "worker";
777
802
  readonly apiUrl: "https://campaigns.topolo.app";
778
803
  readonly domains: readonly ["campaigns.topolo.app"];
779
- readonly routes: readonly [];
804
+ readonly routes: readonly ["campaigns.topolo.app"];
780
805
  readonly appId: "campaigns";
781
806
  }, {
782
807
  readonly name: "topolo-campaigns-api";
@@ -875,7 +900,7 @@ declare const APPLICATIONS: {
875
900
  readonly kind: "worker";
876
901
  readonly apiUrl: "https://compose.topolo.app";
877
902
  readonly domains: readonly ["compose.topolo.app"];
878
- readonly routes: readonly [];
903
+ readonly routes: readonly ["compose.topolo.app"];
879
904
  readonly appId: "compose";
880
905
  }, {
881
906
  readonly name: "topolo-compose-api";
@@ -898,7 +923,7 @@ declare const APPLICATIONS: {
898
923
  readonly kind: "worker";
899
924
  readonly apiUrl: "https://consent.topolo.app";
900
925
  readonly domains: readonly ["consent.topolo.app"];
901
- readonly routes: readonly [];
926
+ readonly routes: readonly ["consent.topolo.app"];
902
927
  readonly appId: "consent";
903
928
  }, {
904
929
  readonly name: "topolo-consent-api";
@@ -928,10 +953,33 @@ declare const APPLICATIONS: {
928
953
  readonly kind: "worker";
929
954
  readonly apiUrl: "https://crm.topolo.app";
930
955
  readonly domains: readonly ["crm.topolo.app"];
931
- readonly routes: readonly [];
956
+ readonly routes: readonly ["crm.topolo.app"];
932
957
  readonly appId: "crm";
933
958
  }];
934
959
  };
960
+ readonly design: {
961
+ readonly id: "design";
962
+ readonly appDir: "TopoloDesign";
963
+ readonly name: "topolo-design";
964
+ readonly packageName: "@topolo-io/design";
965
+ readonly productionUrl: "https://design.topolo.app";
966
+ readonly services: readonly ["design"];
967
+ readonly deployTargets: readonly [{
968
+ readonly name: "topolo-design";
969
+ readonly kind: "worker";
970
+ readonly apiUrl: "https://design.topolo.app";
971
+ readonly domains: readonly ["design.topolo.app"];
972
+ readonly routes: readonly ["design.topolo.app"];
973
+ readonly appId: "design";
974
+ }, {
975
+ readonly name: "topolo-design-api";
976
+ readonly kind: "worker";
977
+ readonly apiUrl: null;
978
+ readonly domains: readonly [];
979
+ readonly routes: readonly [];
980
+ readonly appId: null;
981
+ }];
982
+ };
935
983
  readonly developers: {
936
984
  readonly id: "developers";
937
985
  readonly appDir: "TopoloDevelopers";
@@ -951,7 +999,7 @@ declare const APPLICATIONS: {
951
999
  readonly kind: "worker";
952
1000
  readonly apiUrl: "https://developers.topolo.app";
953
1001
  readonly domains: readonly ["developers.topolo.app"];
954
- readonly routes: readonly [];
1002
+ readonly routes: readonly ["developers.topolo.app"];
955
1003
  readonly appId: "developers";
956
1004
  }, {
957
1005
  readonly name: "topolo-developers-api";
@@ -974,7 +1022,7 @@ declare const APPLICATIONS: {
974
1022
  readonly kind: "worker";
975
1023
  readonly apiUrl: "https://director.topolo.app";
976
1024
  readonly domains: readonly ["director.topolo.app"];
977
- readonly routes: readonly [];
1025
+ readonly routes: readonly ["director.topolo.app"];
978
1026
  readonly appId: "director";
979
1027
  }, {
980
1028
  readonly name: "topolo-director-api";
@@ -1050,7 +1098,7 @@ declare const APPLICATIONS: {
1050
1098
  readonly kind: "worker";
1051
1099
  readonly apiUrl: "https://flow.topolo.app";
1052
1100
  readonly domains: readonly ["flow.topolo.app"];
1053
- readonly routes: readonly [];
1101
+ readonly routes: readonly ["flow.topolo.app"];
1054
1102
  readonly appId: "flow";
1055
1103
  }, {
1056
1104
  readonly name: "topolo-flow-api";
@@ -1073,7 +1121,7 @@ declare const APPLICATIONS: {
1073
1121
  readonly kind: "worker";
1074
1122
  readonly apiUrl: "https://forecast.topolo.app";
1075
1123
  readonly domains: readonly ["forecast.topolo.app"];
1076
- readonly routes: readonly [];
1124
+ readonly routes: readonly ["forecast.topolo.app"];
1077
1125
  readonly appId: "forecast";
1078
1126
  }, {
1079
1127
  readonly name: "topolo-forecast-api";
@@ -1096,7 +1144,7 @@ declare const APPLICATIONS: {
1096
1144
  readonly kind: "worker";
1097
1145
  readonly apiUrl: "https://forms.topolo.app";
1098
1146
  readonly domains: readonly ["forms.topolo.app"];
1099
- readonly routes: readonly [];
1147
+ readonly routes: readonly ["forms.topolo.app"];
1100
1148
  readonly appId: "forms";
1101
1149
  }, {
1102
1150
  readonly name: "topolo-forms-api";
@@ -1142,7 +1190,7 @@ declare const APPLICATIONS: {
1142
1190
  readonly kind: "worker";
1143
1191
  readonly apiUrl: "https://insights.topolo.app";
1144
1192
  readonly domains: readonly ["insights.topolo.app"];
1145
- readonly routes: readonly [];
1193
+ readonly routes: readonly ["insights.topolo.app"];
1146
1194
  readonly appId: "insights";
1147
1195
  }, {
1148
1196
  readonly name: "topolo-insights-api";
@@ -1165,7 +1213,7 @@ declare const APPLICATIONS: {
1165
1213
  readonly kind: "worker";
1166
1214
  readonly apiUrl: "https://inventory.topolo.app";
1167
1215
  readonly domains: readonly ["inventory.topolo.app"];
1168
- readonly routes: readonly [];
1216
+ readonly routes: readonly ["inventory.topolo.app"];
1169
1217
  readonly appId: "inventory";
1170
1218
  }, {
1171
1219
  readonly name: "topolo-inventory-api";
@@ -1411,7 +1459,7 @@ declare const APPLICATIONS: {
1411
1459
  readonly kind: "worker";
1412
1460
  readonly apiUrl: "https://pay.topolo.app";
1413
1461
  readonly domains: readonly ["pay.topolo.app"];
1414
- readonly routes: readonly [];
1462
+ readonly routes: readonly ["pay.topolo.app"];
1415
1463
  readonly appId: "pay";
1416
1464
  }, {
1417
1465
  readonly name: "topolo-pay-api";
@@ -1434,7 +1482,7 @@ declare const APPLICATIONS: {
1434
1482
  readonly kind: "worker";
1435
1483
  readonly apiUrl: "https://people.topolo.app";
1436
1484
  readonly domains: readonly ["people.topolo.app"];
1437
- readonly routes: readonly [];
1485
+ readonly routes: readonly ["people.topolo.app"];
1438
1486
  readonly appId: "people";
1439
1487
  }, {
1440
1488
  readonly name: "topolo-people-api";
@@ -1487,7 +1535,7 @@ declare const APPLICATIONS: {
1487
1535
  readonly kind: "worker";
1488
1536
  readonly apiUrl: "https://roadmapper.topolo.app";
1489
1537
  readonly domains: readonly ["roadmapper.topolo.app"];
1490
- readonly routes: readonly [];
1538
+ readonly routes: readonly ["roadmapper.topolo.app"];
1491
1539
  readonly appId: "roadmapper";
1492
1540
  }, {
1493
1541
  readonly name: "topolo-roadmapper-api";
@@ -1510,7 +1558,7 @@ declare const APPLICATIONS: {
1510
1558
  readonly kind: "worker";
1511
1559
  readonly apiUrl: "https://sign.topolo.app";
1512
1560
  readonly domains: readonly ["sign.topolo.app"];
1513
- readonly routes: readonly [];
1561
+ readonly routes: readonly ["sign.topolo.app"];
1514
1562
  readonly appId: "sign";
1515
1563
  }, {
1516
1564
  readonly name: "topolo-sign-api";
@@ -1593,7 +1641,7 @@ declare const APPLICATIONS: {
1593
1641
  readonly kind: "worker";
1594
1642
  readonly apiUrl: "https://spaces.topolo.app";
1595
1643
  readonly domains: readonly ["spaces.topolo.app"];
1596
- readonly routes: readonly [];
1644
+ readonly routes: readonly ["spaces.topolo.app"];
1597
1645
  readonly appId: "spaces";
1598
1646
  }, {
1599
1647
  readonly name: "topolo-spaces-api";
@@ -1678,7 +1726,7 @@ declare const APPLICATIONS: {
1678
1726
  readonly kind: "worker";
1679
1727
  readonly apiUrl: "https://survey.topolo.app";
1680
1728
  readonly domains: readonly ["survey.topolo.app"];
1681
- readonly routes: readonly [];
1729
+ readonly routes: readonly ["survey.topolo.app"];
1682
1730
  readonly appId: "survey";
1683
1731
  }, {
1684
1732
  readonly name: "topolo-survey-api";
@@ -2008,6 +2056,66 @@ declare class IdentityModule {
2008
2056
  whoami(): Promise<CredentialIntrospection>;
2009
2057
  }
2010
2058
 
2059
+ interface TopoloWorkspace {
2060
+ id: string;
2061
+ appId: string;
2062
+ organizationId: string;
2063
+ name: string;
2064
+ slug: string;
2065
+ status: string;
2066
+ isDefault: boolean;
2067
+ ownerUserId: string | null;
2068
+ createdByUserId: string | null;
2069
+ createdAt: number;
2070
+ updatedAt: number;
2071
+ archivedAt: number | null;
2072
+ accessRole: string;
2073
+ accessLevel: string;
2074
+ }
2075
+ interface TopoloWorkspacePolicy {
2076
+ mode: string;
2077
+ limit: number | null;
2078
+ remaining: number | null;
2079
+ userLimit: number | null;
2080
+ userRemaining: number | null;
2081
+ canCreate: boolean;
2082
+ reason: string;
2083
+ }
2084
+ interface TopoloWorkspaceListResult {
2085
+ success: boolean;
2086
+ message: string;
2087
+ data: {
2088
+ appId: string;
2089
+ organizationId: string;
2090
+ accessMode: string;
2091
+ canManageAll: boolean;
2092
+ workspaces: TopoloWorkspace[];
2093
+ policy: TopoloWorkspacePolicy;
2094
+ };
2095
+ timestamp?: string;
2096
+ }
2097
+ interface TopoloWorkspaceMutationResult {
2098
+ success: boolean;
2099
+ message: string;
2100
+ data: {
2101
+ workspace: TopoloWorkspace;
2102
+ };
2103
+ timestamp?: string;
2104
+ }
2105
+ declare class WorkspacesModule {
2106
+ private readonly client;
2107
+ constructor(client: TopoloClient);
2108
+ list(application: string): Promise<TopoloWorkspaceListResult>;
2109
+ create(application: string, input: {
2110
+ name: string;
2111
+ isDefault?: boolean;
2112
+ confirm?: boolean;
2113
+ }): Promise<TopoloWorkspaceMutationResult>;
2114
+ rename(application: string, workspaceId: string, name: string, confirm?: boolean): Promise<TopoloWorkspaceMutationResult>;
2115
+ setDefault(application: string, workspaceId: string, confirm?: boolean): Promise<TopoloWorkspaceMutationResult>;
2116
+ private resolveContext;
2117
+ }
2118
+
2011
2119
  type P2PPricingModel = 'free' | 'fixed' | 'metered' | 'quote' | 'invoice';
2012
2120
  interface P2PCapability {
2013
2121
  capability_id: string;
@@ -2433,8 +2541,9 @@ declare function validateTopoloWidgetResponse(response: unknown): TopoloWidgetVa
2433
2541
  declare function createTopolo(options: TopoloClientOptions): {
2434
2542
  client: TopoloClient;
2435
2543
  identity: IdentityModule;
2544
+ workspaces: WorkspacesModule;
2436
2545
  crm: CrmModule;
2437
2546
  };
2438
2547
  type Topolo = ReturnType<typeof createTopolo>;
2439
2548
 
2440
- export { ACTION_CATALOG_DIGEST_ALGORITHM, APPLICATIONS, APPLICATION_REQUIREMENTS, APPLICATION_REQUIREMENTS_VERSION, type ActionContractManifest, type ActionContractSource, type AgentIdentity, type AppApiId, type ApplicationCatalogEntry, type ApplicationDeployTarget, type ApplicationId, type ApplicationRequirement, type ApplicationRequirementAudit, type ApplicationRequirementFinding, type ApplicationRequirementMigrationItem, type ApplicationRequirementScope, type ApplicationRequirementScore, type ApplicationRequirementStatus, type ApplicationRequirementsAuditReport, type CredentialIntrospection, type CrmContactSummary, CrmModule, DEFAULT_APP_URLS, type DeviceAuthorizationResponse, IdentityModule, type ListContactsOptions, type ListContactsResult, type OAuthHelperOptions, type P2PActionDetail, type P2PActionRequestInput, type P2PActionRequestResult, type P2PActionRow, type P2PActionRun, type P2PCapability, type P2PConnection, type P2PHold, type P2PLedgerEntry, P2PModule, type P2PPolicy, type P2PPricingModel, type P2PSettlementBatch, type P2PSettlementGroup, type PublishCapabilityInput, type RequestOptions, type ServiceCatalogUrlEntry, TOPOLO_WIDGET_ENDPOINT, TOPOLO_WIDGET_REFRESH_INTERVAL_MS, type TokenResponse, type Topolo, type TopoloActionAgentContract, type TopoloActionCatalogEntry, type TopoloActionCatalogSummary, type TopoloActionDigestInput, type TopoloActionPlan, type TopoloActionUploadOptions, type TopoloActionValidationIssue, type TopoloActionValidationResult, type TopoloApiKeyResourceMetadata, TopoloAuthError, type TopoloBindableResource, type TopoloBindableResourceCatalog, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, TopoloConfirmationRequiredError, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, type TopoloInlineBase64UploadContract, type TopoloNotificationsWidget, TopoloOAuth, TopoloPermissionError, type TopoloQuickActionsWidget, type TopoloRecentActivityWidget, TopoloSdkError, type TopoloServiceCatalogEntry, type TopoloStatsWidget, type TopoloWidget, type TopoloWidgetActionItem, type TopoloWidgetActivityItem, type TopoloWidgetApiResponse, type TopoloWidgetBase, type TopoloWidgetConfig, type TopoloWidgetDraft, type TopoloWidgetMetric, type TopoloWidgetNotificationItem, type TopoloWidgetResponseOptions, type TopoloWidgetSnapshotMetadata, type TopoloWidgetSnapshotMetric, type TopoloWidgetType, type TopoloWidgetValidationResult, actionContractCompleteness, applicationRequirementScopes, auditAllApplicationRequirements, auditApplicationRequirements, createTopolo, createTopoloWidgetError, createTopoloWidgetResponse, defineTopoloChartWidget, defineTopoloNotificationsWidget, defineTopoloQuickActionsWidget, defineTopoloRecentActivityWidget, defineTopoloStatsWidget, digestTopoloActionCatalog, enrichActionContract, parseTopoloActionUploadContract, prepareTopoloActionBase64UploadInput, prepareTopoloActionUploadInput, requirementsForApplication, resolveCatalogServiceUrl, resolveServiceUrl, validateTopoloActionInput, validateTopoloWidgetResponse };
2549
+ export { ACTION_CATALOG_DIGEST_ALGORITHM, APPLICATIONS, APPLICATION_REQUIREMENTS, APPLICATION_REQUIREMENTS_VERSION, type ActionContractManifest, type ActionContractSource, type AgentIdentity, type AppApiId, type ApplicationCatalogEntry, type ApplicationDeployTarget, type ApplicationId, type ApplicationRequirement, type ApplicationRequirementAudit, type ApplicationRequirementFinding, type ApplicationRequirementMigrationItem, type ApplicationRequirementScope, type ApplicationRequirementScore, type ApplicationRequirementStatus, type ApplicationRequirementsAuditReport, type CredentialIntrospection, type CrmContactSummary, CrmModule, DEFAULT_APP_URLS, type DeviceAuthorizationResponse, IdentityModule, type ListContactsOptions, type ListContactsResult, type OAuthHelperOptions, type P2PActionDetail, type P2PActionRequestInput, type P2PActionRequestResult, type P2PActionRow, type P2PActionRun, type P2PCapability, type P2PConnection, type P2PHold, type P2PLedgerEntry, P2PModule, type P2PPolicy, type P2PPricingModel, type P2PSettlementBatch, type P2PSettlementGroup, type PublishCapabilityInput, type RequestOptions, type ServiceCatalogUrlEntry, TOPOLO_WIDGET_ENDPOINT, TOPOLO_WIDGET_REFRESH_INTERVAL_MS, type TokenResponse, type Topolo, type TopoloActionAgentContract, type TopoloActionCatalogEntry, type TopoloActionCatalogSummary, type TopoloActionDigestInput, type TopoloActionPlan, type TopoloActionUploadOptions, type TopoloActionValidationIssue, type TopoloActionValidationResult, type TopoloApiKeyResourceMetadata, TopoloAuthError, type TopoloBindableResource, type TopoloBindableResourceCatalog, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, TopoloConfirmationRequiredError, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, type TopoloInlineBase64UploadContract, type TopoloNotificationsWidget, TopoloOAuth, TopoloPermissionError, type TopoloQuickActionsWidget, type TopoloRecentActivityWidget, TopoloSdkError, type TopoloServiceCatalogEntry, type TopoloStatsWidget, type TopoloWidget, type TopoloWidgetActionItem, type TopoloWidgetActivityItem, type TopoloWidgetApiResponse, type TopoloWidgetBase, type TopoloWidgetConfig, type TopoloWidgetDraft, type TopoloWidgetMetric, type TopoloWidgetNotificationItem, type TopoloWidgetResponseOptions, type TopoloWidgetSnapshotMetadata, type TopoloWidgetSnapshotMetric, type TopoloWidgetType, type TopoloWidgetValidationResult, type TopoloWorkspace, type TopoloWorkspaceListResult, type TopoloWorkspaceMutationResult, type TopoloWorkspacePolicy, WorkspacesModule, actionContractCompleteness, applicationRequirementScopes, auditAllApplicationRequirements, auditApplicationRequirements, createTopolo, createTopoloWidgetError, createTopoloWidgetResponse, defineTopoloChartWidget, defineTopoloNotificationsWidget, defineTopoloQuickActionsWidget, defineTopoloRecentActivityWidget, defineTopoloStatsWidget, digestTopoloActionCatalog, enrichActionContract, parseTopoloActionUploadContract, prepareTopoloActionBase64UploadInput, prepareTopoloActionUploadInput, requirementsForApplication, resolveCatalogServiceUrl, resolveServiceUrl, validateTopoloActionInput, validateTopoloWidgetResponse };