@topolo/sdk 0.9.6 → 0.9.8
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/README.md +12 -0
- package/dist/index.cjs +370 -46
- package/dist/index.d.cts +82 -8
- package/dist/index.d.ts +82 -8
- package/dist/index.js +367 -46
- package/dist/node/credential-store.cjs +30 -3
- package/dist/node/credential-store.js +30 -3
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -42,6 +42,39 @@ interface TopoloActionValidationResult {
|
|
|
42
42
|
}
|
|
43
43
|
declare function validateTopoloActionInput(schema: Record<string, unknown>, input: unknown): TopoloActionValidationResult;
|
|
44
44
|
|
|
45
|
+
interface TopoloInlineBase64UploadContract {
|
|
46
|
+
profile: 'inline-base64';
|
|
47
|
+
contentField: string;
|
|
48
|
+
contentTypeField: string;
|
|
49
|
+
fileNameField: string;
|
|
50
|
+
maxBytes: number;
|
|
51
|
+
acceptedContentTypes: string[];
|
|
52
|
+
}
|
|
53
|
+
interface TopoloUrlSessionUploadContract {
|
|
54
|
+
profile: 'url-session';
|
|
55
|
+
fileNameField: string;
|
|
56
|
+
contentTypeField: string;
|
|
57
|
+
sizeField: string;
|
|
58
|
+
maxBytes: number;
|
|
59
|
+
acceptedContentTypes: string[];
|
|
60
|
+
uploadUrlPath: string;
|
|
61
|
+
uploadMethod: 'PUT' | 'POST';
|
|
62
|
+
complete?: {
|
|
63
|
+
actionId: string;
|
|
64
|
+
inputField: string;
|
|
65
|
+
responsePath: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
type TopoloActionUploadContract = TopoloInlineBase64UploadContract | TopoloUrlSessionUploadContract;
|
|
69
|
+
interface TopoloActionUploadOptions {
|
|
70
|
+
fileName: string;
|
|
71
|
+
contentType: string;
|
|
72
|
+
completionInput?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
declare function parseTopoloActionUploadContract(value: unknown): TopoloActionUploadContract;
|
|
75
|
+
declare function prepareTopoloActionUploadInput(contractValue: unknown, content: Uint8Array | ArrayBuffer, input: Record<string, unknown>, options: TopoloActionUploadOptions): Record<string, unknown>;
|
|
76
|
+
declare function prepareTopoloActionBase64UploadInput(contractValue: unknown, contentBase64: string, input: Record<string, unknown>, options: TopoloActionUploadOptions): Record<string, unknown>;
|
|
77
|
+
|
|
45
78
|
interface TopoloClientOptions {
|
|
46
79
|
credential: TopoloCredential;
|
|
47
80
|
agent: AgentIdentity;
|
|
@@ -113,6 +146,8 @@ interface RequestOptions {
|
|
|
113
146
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
114
147
|
query?: Record<string, string | number | boolean | undefined>;
|
|
115
148
|
body?: unknown;
|
|
149
|
+
/** Raw body transport for upload-session URLs. Mutually exclusive with body. */
|
|
150
|
+
rawBody?: BodyInit;
|
|
116
151
|
/** Workspace-boundary resource context for resource-scoped API keys. */
|
|
117
152
|
resource?: {
|
|
118
153
|
resourceType: string;
|
|
@@ -223,6 +258,7 @@ interface TopoloActionAgentContract {
|
|
|
223
258
|
description?: string;
|
|
224
259
|
input?: Record<string, unknown>;
|
|
225
260
|
}>;
|
|
261
|
+
upload?: TopoloActionUploadContract;
|
|
226
262
|
[key: string]: unknown;
|
|
227
263
|
}
|
|
228
264
|
interface TopoloActionPlan {
|
|
@@ -356,6 +392,22 @@ declare class TopoloClient {
|
|
|
356
392
|
resourceId: string;
|
|
357
393
|
};
|
|
358
394
|
}): Promise<T>;
|
|
395
|
+
uploadAction<T = unknown>(action: string, content: Uint8Array | ArrayBuffer, input: Record<string, unknown>, options: TopoloActionUploadOptions & {
|
|
396
|
+
confirm?: boolean;
|
|
397
|
+
resource?: {
|
|
398
|
+
resourceType: string;
|
|
399
|
+
resourceId: string;
|
|
400
|
+
};
|
|
401
|
+
}): Promise<T>;
|
|
402
|
+
uploadActionBase64<T = unknown>(action: string, contentBase64: string, input: Record<string, unknown>, options: TopoloActionUploadOptions & {
|
|
403
|
+
confirm?: boolean;
|
|
404
|
+
resource?: {
|
|
405
|
+
resourceType: string;
|
|
406
|
+
resourceId: string;
|
|
407
|
+
};
|
|
408
|
+
}): Promise<T>;
|
|
409
|
+
private executeUrlSessionUpload;
|
|
410
|
+
private putUrlSessionContent;
|
|
359
411
|
validateActionInput(action: string, input?: Record<string, unknown>): Promise<{
|
|
360
412
|
action: TopoloActionCatalogEntry;
|
|
361
413
|
validation: TopoloActionValidationResult;
|
|
@@ -639,7 +691,7 @@ declare const APPLICATIONS: {
|
|
|
639
691
|
readonly kind: "worker";
|
|
640
692
|
readonly apiUrl: "https://brand.topolo.app";
|
|
641
693
|
readonly domains: readonly ["brand.topolo.app"];
|
|
642
|
-
readonly routes: readonly [];
|
|
694
|
+
readonly routes: readonly ["brand.topolo.app"];
|
|
643
695
|
readonly appId: "brand";
|
|
644
696
|
}, {
|
|
645
697
|
readonly name: "topolo-brand-api";
|
|
@@ -763,7 +815,7 @@ declare const APPLICATIONS: {
|
|
|
763
815
|
readonly kind: "worker";
|
|
764
816
|
readonly apiUrl: "https://chat.topolo.app";
|
|
765
817
|
readonly domains: readonly ["chat.topolo.app"];
|
|
766
|
-
readonly routes: readonly [];
|
|
818
|
+
readonly routes: readonly ["chat.topolo.app"];
|
|
767
819
|
readonly appId: "chat";
|
|
768
820
|
}, {
|
|
769
821
|
readonly name: "topolo-chat-api";
|
|
@@ -1175,7 +1227,7 @@ declare const APPLICATIONS: {
|
|
|
1175
1227
|
readonly kind: "worker";
|
|
1176
1228
|
readonly apiUrl: "https://mail.topolo.app";
|
|
1177
1229
|
readonly domains: readonly ["mail.topolo.app"];
|
|
1178
|
-
readonly routes: readonly [];
|
|
1230
|
+
readonly routes: readonly ["mail.topolo.app"];
|
|
1179
1231
|
readonly appId: "mail";
|
|
1180
1232
|
}, {
|
|
1181
1233
|
readonly name: "topolo-mail-api";
|
|
@@ -1419,7 +1471,7 @@ declare const APPLICATIONS: {
|
|
|
1419
1471
|
readonly kind: "worker";
|
|
1420
1472
|
readonly apiUrl: "https://quro.topolo.app";
|
|
1421
1473
|
readonly domains: readonly ["quro.topolo.app"];
|
|
1422
|
-
readonly routes: readonly [];
|
|
1474
|
+
readonly routes: readonly ["quro.topolo.app"];
|
|
1423
1475
|
readonly appId: null;
|
|
1424
1476
|
}];
|
|
1425
1477
|
};
|
|
@@ -1863,11 +1915,31 @@ declare class TopoloSdkError extends Error {
|
|
|
1863
1915
|
constructor(code: string, message: string);
|
|
1864
1916
|
}
|
|
1865
1917
|
declare class TopoloAuthError extends TopoloSdkError {
|
|
1866
|
-
|
|
1918
|
+
readonly status: number;
|
|
1919
|
+
readonly body: unknown;
|
|
1920
|
+
readonly service?: string;
|
|
1921
|
+
readonly path?: string;
|
|
1922
|
+
readonly requestId?: string;
|
|
1923
|
+
readonly retryAfter?: string;
|
|
1924
|
+
constructor(message: string, code?: string, options?: HttpErrorContext);
|
|
1867
1925
|
}
|
|
1868
1926
|
declare class TopoloPermissionError extends TopoloSdkError {
|
|
1869
1927
|
readonly required: string[];
|
|
1870
|
-
|
|
1928
|
+
readonly status: number;
|
|
1929
|
+
readonly body: unknown;
|
|
1930
|
+
readonly service?: string;
|
|
1931
|
+
readonly path?: string;
|
|
1932
|
+
readonly requestId?: string;
|
|
1933
|
+
readonly retryAfter?: string;
|
|
1934
|
+
constructor(message: string, required: string[], options?: HttpErrorContext);
|
|
1935
|
+
}
|
|
1936
|
+
interface HttpErrorContext {
|
|
1937
|
+
status?: number;
|
|
1938
|
+
body?: unknown;
|
|
1939
|
+
service?: string;
|
|
1940
|
+
path?: string;
|
|
1941
|
+
requestId?: string;
|
|
1942
|
+
retryAfter?: string;
|
|
1871
1943
|
}
|
|
1872
1944
|
declare class TopoloConfirmationRequiredError extends TopoloSdkError {
|
|
1873
1945
|
constructor(message: string);
|
|
@@ -1877,7 +1949,9 @@ declare class TopoloHttpError extends TopoloSdkError {
|
|
|
1877
1949
|
readonly body: unknown;
|
|
1878
1950
|
readonly service: string;
|
|
1879
1951
|
readonly path: string;
|
|
1880
|
-
|
|
1952
|
+
readonly requestId?: string;
|
|
1953
|
+
readonly retryAfter?: string;
|
|
1954
|
+
constructor(service: string, path: string, status: number, body: unknown, message?: string, options?: HttpErrorContext);
|
|
1881
1955
|
}
|
|
1882
1956
|
|
|
1883
1957
|
interface CrmContactSummary {
|
|
@@ -2363,4 +2437,4 @@ declare function createTopolo(options: TopoloClientOptions): {
|
|
|
2363
2437
|
};
|
|
2364
2438
|
type Topolo = ReturnType<typeof createTopolo>;
|
|
2365
2439
|
|
|
2366
|
-
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 TopoloActionValidationIssue, type TopoloActionValidationResult, type TopoloApiKeyResourceMetadata, TopoloAuthError, type TopoloBindableResource, type TopoloBindableResourceCatalog, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, TopoloConfirmationRequiredError, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, 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, requirementsForApplication, resolveCatalogServiceUrl, resolveServiceUrl, validateTopoloActionInput, validateTopoloWidgetResponse };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,39 @@ interface TopoloActionValidationResult {
|
|
|
42
42
|
}
|
|
43
43
|
declare function validateTopoloActionInput(schema: Record<string, unknown>, input: unknown): TopoloActionValidationResult;
|
|
44
44
|
|
|
45
|
+
interface TopoloInlineBase64UploadContract {
|
|
46
|
+
profile: 'inline-base64';
|
|
47
|
+
contentField: string;
|
|
48
|
+
contentTypeField: string;
|
|
49
|
+
fileNameField: string;
|
|
50
|
+
maxBytes: number;
|
|
51
|
+
acceptedContentTypes: string[];
|
|
52
|
+
}
|
|
53
|
+
interface TopoloUrlSessionUploadContract {
|
|
54
|
+
profile: 'url-session';
|
|
55
|
+
fileNameField: string;
|
|
56
|
+
contentTypeField: string;
|
|
57
|
+
sizeField: string;
|
|
58
|
+
maxBytes: number;
|
|
59
|
+
acceptedContentTypes: string[];
|
|
60
|
+
uploadUrlPath: string;
|
|
61
|
+
uploadMethod: 'PUT' | 'POST';
|
|
62
|
+
complete?: {
|
|
63
|
+
actionId: string;
|
|
64
|
+
inputField: string;
|
|
65
|
+
responsePath: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
type TopoloActionUploadContract = TopoloInlineBase64UploadContract | TopoloUrlSessionUploadContract;
|
|
69
|
+
interface TopoloActionUploadOptions {
|
|
70
|
+
fileName: string;
|
|
71
|
+
contentType: string;
|
|
72
|
+
completionInput?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
declare function parseTopoloActionUploadContract(value: unknown): TopoloActionUploadContract;
|
|
75
|
+
declare function prepareTopoloActionUploadInput(contractValue: unknown, content: Uint8Array | ArrayBuffer, input: Record<string, unknown>, options: TopoloActionUploadOptions): Record<string, unknown>;
|
|
76
|
+
declare function prepareTopoloActionBase64UploadInput(contractValue: unknown, contentBase64: string, input: Record<string, unknown>, options: TopoloActionUploadOptions): Record<string, unknown>;
|
|
77
|
+
|
|
45
78
|
interface TopoloClientOptions {
|
|
46
79
|
credential: TopoloCredential;
|
|
47
80
|
agent: AgentIdentity;
|
|
@@ -113,6 +146,8 @@ interface RequestOptions {
|
|
|
113
146
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
114
147
|
query?: Record<string, string | number | boolean | undefined>;
|
|
115
148
|
body?: unknown;
|
|
149
|
+
/** Raw body transport for upload-session URLs. Mutually exclusive with body. */
|
|
150
|
+
rawBody?: BodyInit;
|
|
116
151
|
/** Workspace-boundary resource context for resource-scoped API keys. */
|
|
117
152
|
resource?: {
|
|
118
153
|
resourceType: string;
|
|
@@ -223,6 +258,7 @@ interface TopoloActionAgentContract {
|
|
|
223
258
|
description?: string;
|
|
224
259
|
input?: Record<string, unknown>;
|
|
225
260
|
}>;
|
|
261
|
+
upload?: TopoloActionUploadContract;
|
|
226
262
|
[key: string]: unknown;
|
|
227
263
|
}
|
|
228
264
|
interface TopoloActionPlan {
|
|
@@ -356,6 +392,22 @@ declare class TopoloClient {
|
|
|
356
392
|
resourceId: string;
|
|
357
393
|
};
|
|
358
394
|
}): Promise<T>;
|
|
395
|
+
uploadAction<T = unknown>(action: string, content: Uint8Array | ArrayBuffer, input: Record<string, unknown>, options: TopoloActionUploadOptions & {
|
|
396
|
+
confirm?: boolean;
|
|
397
|
+
resource?: {
|
|
398
|
+
resourceType: string;
|
|
399
|
+
resourceId: string;
|
|
400
|
+
};
|
|
401
|
+
}): Promise<T>;
|
|
402
|
+
uploadActionBase64<T = unknown>(action: string, contentBase64: string, input: Record<string, unknown>, options: TopoloActionUploadOptions & {
|
|
403
|
+
confirm?: boolean;
|
|
404
|
+
resource?: {
|
|
405
|
+
resourceType: string;
|
|
406
|
+
resourceId: string;
|
|
407
|
+
};
|
|
408
|
+
}): Promise<T>;
|
|
409
|
+
private executeUrlSessionUpload;
|
|
410
|
+
private putUrlSessionContent;
|
|
359
411
|
validateActionInput(action: string, input?: Record<string, unknown>): Promise<{
|
|
360
412
|
action: TopoloActionCatalogEntry;
|
|
361
413
|
validation: TopoloActionValidationResult;
|
|
@@ -639,7 +691,7 @@ declare const APPLICATIONS: {
|
|
|
639
691
|
readonly kind: "worker";
|
|
640
692
|
readonly apiUrl: "https://brand.topolo.app";
|
|
641
693
|
readonly domains: readonly ["brand.topolo.app"];
|
|
642
|
-
readonly routes: readonly [];
|
|
694
|
+
readonly routes: readonly ["brand.topolo.app"];
|
|
643
695
|
readonly appId: "brand";
|
|
644
696
|
}, {
|
|
645
697
|
readonly name: "topolo-brand-api";
|
|
@@ -763,7 +815,7 @@ declare const APPLICATIONS: {
|
|
|
763
815
|
readonly kind: "worker";
|
|
764
816
|
readonly apiUrl: "https://chat.topolo.app";
|
|
765
817
|
readonly domains: readonly ["chat.topolo.app"];
|
|
766
|
-
readonly routes: readonly [];
|
|
818
|
+
readonly routes: readonly ["chat.topolo.app"];
|
|
767
819
|
readonly appId: "chat";
|
|
768
820
|
}, {
|
|
769
821
|
readonly name: "topolo-chat-api";
|
|
@@ -1175,7 +1227,7 @@ declare const APPLICATIONS: {
|
|
|
1175
1227
|
readonly kind: "worker";
|
|
1176
1228
|
readonly apiUrl: "https://mail.topolo.app";
|
|
1177
1229
|
readonly domains: readonly ["mail.topolo.app"];
|
|
1178
|
-
readonly routes: readonly [];
|
|
1230
|
+
readonly routes: readonly ["mail.topolo.app"];
|
|
1179
1231
|
readonly appId: "mail";
|
|
1180
1232
|
}, {
|
|
1181
1233
|
readonly name: "topolo-mail-api";
|
|
@@ -1419,7 +1471,7 @@ declare const APPLICATIONS: {
|
|
|
1419
1471
|
readonly kind: "worker";
|
|
1420
1472
|
readonly apiUrl: "https://quro.topolo.app";
|
|
1421
1473
|
readonly domains: readonly ["quro.topolo.app"];
|
|
1422
|
-
readonly routes: readonly [];
|
|
1474
|
+
readonly routes: readonly ["quro.topolo.app"];
|
|
1423
1475
|
readonly appId: null;
|
|
1424
1476
|
}];
|
|
1425
1477
|
};
|
|
@@ -1863,11 +1915,31 @@ declare class TopoloSdkError extends Error {
|
|
|
1863
1915
|
constructor(code: string, message: string);
|
|
1864
1916
|
}
|
|
1865
1917
|
declare class TopoloAuthError extends TopoloSdkError {
|
|
1866
|
-
|
|
1918
|
+
readonly status: number;
|
|
1919
|
+
readonly body: unknown;
|
|
1920
|
+
readonly service?: string;
|
|
1921
|
+
readonly path?: string;
|
|
1922
|
+
readonly requestId?: string;
|
|
1923
|
+
readonly retryAfter?: string;
|
|
1924
|
+
constructor(message: string, code?: string, options?: HttpErrorContext);
|
|
1867
1925
|
}
|
|
1868
1926
|
declare class TopoloPermissionError extends TopoloSdkError {
|
|
1869
1927
|
readonly required: string[];
|
|
1870
|
-
|
|
1928
|
+
readonly status: number;
|
|
1929
|
+
readonly body: unknown;
|
|
1930
|
+
readonly service?: string;
|
|
1931
|
+
readonly path?: string;
|
|
1932
|
+
readonly requestId?: string;
|
|
1933
|
+
readonly retryAfter?: string;
|
|
1934
|
+
constructor(message: string, required: string[], options?: HttpErrorContext);
|
|
1935
|
+
}
|
|
1936
|
+
interface HttpErrorContext {
|
|
1937
|
+
status?: number;
|
|
1938
|
+
body?: unknown;
|
|
1939
|
+
service?: string;
|
|
1940
|
+
path?: string;
|
|
1941
|
+
requestId?: string;
|
|
1942
|
+
retryAfter?: string;
|
|
1871
1943
|
}
|
|
1872
1944
|
declare class TopoloConfirmationRequiredError extends TopoloSdkError {
|
|
1873
1945
|
constructor(message: string);
|
|
@@ -1877,7 +1949,9 @@ declare class TopoloHttpError extends TopoloSdkError {
|
|
|
1877
1949
|
readonly body: unknown;
|
|
1878
1950
|
readonly service: string;
|
|
1879
1951
|
readonly path: string;
|
|
1880
|
-
|
|
1952
|
+
readonly requestId?: string;
|
|
1953
|
+
readonly retryAfter?: string;
|
|
1954
|
+
constructor(service: string, path: string, status: number, body: unknown, message?: string, options?: HttpErrorContext);
|
|
1881
1955
|
}
|
|
1882
1956
|
|
|
1883
1957
|
interface CrmContactSummary {
|
|
@@ -2363,4 +2437,4 @@ declare function createTopolo(options: TopoloClientOptions): {
|
|
|
2363
2437
|
};
|
|
2364
2438
|
type Topolo = ReturnType<typeof createTopolo>;
|
|
2365
2439
|
|
|
2366
|
-
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 TopoloActionValidationIssue, type TopoloActionValidationResult, type TopoloApiKeyResourceMetadata, TopoloAuthError, type TopoloBindableResource, type TopoloBindableResourceCatalog, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, TopoloConfirmationRequiredError, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, 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, requirementsForApplication, resolveCatalogServiceUrl, resolveServiceUrl, validateTopoloActionInput, validateTopoloWidgetResponse };
|
|
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 };
|