@slates/provider 1.0.0-rc.28 → 1.0.0-rc.29
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.cjs +2321 -1918
- package/dist/index.d.cts +35 -6
- package/dist/index.d.ts +35 -6
- package/dist/index.module.js +2312 -1918
- package/package.json +1 -1
- package/src/auth/redact.test.ts +29 -0
- package/src/auth/redact.ts +44 -21
- package/src/axios/trace.test.ts +305 -1
- package/src/axios/trace.ts +330 -16
- package/src/error/api.test.ts +123 -1
- package/src/error/api.ts +148 -0
- package/src/error/axios.ts +48 -13
- package/src/error/utils.test.ts +654 -0
- package/src/error/utils.ts +268 -13
package/dist/index.d.cts
CHANGED
|
@@ -41,17 +41,26 @@ declare let createTextAttachment: (content: string, mimeType?: string, attachmen
|
|
|
41
41
|
* the hub resolves these placeholders back to live secret values when it proxies an attachment.
|
|
42
42
|
*/
|
|
43
43
|
declare let AUTH_CONFIG_SECRET_PLACEHOLDER_PREFIX: string;
|
|
44
|
+
/** Decides whether an auth-config value (with its dotted path) may be replaced. */
|
|
45
|
+
type AuthConfigSecretFilter = (secret: string, path: string) => boolean;
|
|
44
46
|
/**
|
|
45
47
|
* Maps auth-config string leaves to `$$MT$secret$authConfig$<path>` placeholders.
|
|
46
48
|
* `redact` preserves whole-value substitution for HTTP traces; `redactEmbedded` also
|
|
47
49
|
* replaces embedded values in attachment credentials, terminating those placeholders with `$$`.
|
|
50
|
+
* Both accept a `wholeValue` filter so diagnostics (traces, error text) can skip
|
|
51
|
+
* non-secret fields such as account IDs, emails, or subdomains; attachment callers keep
|
|
52
|
+
* the default, because the hub resolves every placeholder back to its value.
|
|
48
53
|
*/
|
|
49
54
|
declare class AuthConfigSecretRedactor {
|
|
50
|
-
private readonly
|
|
55
|
+
private readonly secretToPaths;
|
|
51
56
|
constructor(authConfig: Record<string, unknown> | undefined);
|
|
52
|
-
redact<T>(value: T): T;
|
|
53
|
-
/**
|
|
54
|
-
|
|
57
|
+
redact<T>(value: T, wholeValue?: AuthConfigSecretFilter): T;
|
|
58
|
+
/**
|
|
59
|
+
* `embeddable` limits which secrets are also replaced inside longer strings;
|
|
60
|
+
* `wholeValue` limits which secrets replace a string that equals them exactly.
|
|
61
|
+
*/
|
|
62
|
+
redactEmbedded<T>(value: T, embeddable?: AuthConfigSecretFilter, wholeValue?: AuthConfigSecretFilter): T;
|
|
63
|
+
private placeholderFor;
|
|
55
64
|
private buildSecretMap;
|
|
56
65
|
private transform;
|
|
57
66
|
private isPlainObject;
|
|
@@ -932,6 +941,7 @@ type ApiErrorBuildHelpers = {
|
|
|
932
941
|
collectDetails: (value: unknown, details: string[], options?: ApiErrorDetailOptions) => void;
|
|
933
942
|
extractMessage: (error: unknown, options?: ApiErrorDetailOptions) => string;
|
|
934
943
|
getResponse: (error: unknown) => ApiErrorResponse | undefined;
|
|
944
|
+
getResponseWithBody: (error: unknown) => ApiErrorResponse | undefined;
|
|
935
945
|
getStatus: (error: unknown) => ApiErrorStatus | undefined;
|
|
936
946
|
isRecord: (value: unknown) => value is Record<string, unknown>;
|
|
937
947
|
statusLabelFor: (status?: ApiErrorStatus, statusText?: string) => string;
|
|
@@ -958,6 +968,25 @@ declare let isApiErrorRecord: (value: unknown) => value is Record<string, unknow
|
|
|
958
968
|
declare let collectApiErrorDetails: (value: unknown, details: string[], options?: ApiErrorDetailOptions) => void;
|
|
959
969
|
declare let getApiErrorResponse: (error: unknown) => ApiErrorResponse | undefined;
|
|
960
970
|
declare let getApiErrorStatus: (error: unknown) => ApiErrorStatus | undefined;
|
|
971
|
+
declare let getApiErrorResponseWithBody: (error: unknown) => ApiErrorResponse | undefined;
|
|
972
|
+
declare let API_ERROR_MAX_DETAILS: number;
|
|
973
|
+
declare let API_ERROR_MAX_MESSAGE_LENGTH: number;
|
|
974
|
+
declare let API_ERROR_TRUNCATED_PLACEHOLDER: string;
|
|
975
|
+
declare let looksLikeHtmlErrorBody: (value: string) => boolean;
|
|
976
|
+
declare let truncateApiErrorMessage: (value: string, maxLength?: number) => string;
|
|
977
|
+
type ApiErrorTextOptions = {
|
|
978
|
+
includeNumbers?: boolean;
|
|
979
|
+
};
|
|
980
|
+
declare let readApiErrorText: (value: unknown, options?: ApiErrorTextOptions) => string | undefined;
|
|
981
|
+
type BoundedApiErrorDetailOptions = ApiErrorTextOptions & {
|
|
982
|
+
maxDetails?: number;
|
|
983
|
+
field?: string;
|
|
984
|
+
};
|
|
985
|
+
declare let pushBoundedApiErrorDetail: (details: string[], value: unknown, options?: BoundedApiErrorDetailOptions) => void;
|
|
986
|
+
type DecodeApiErrorBodyOptions = {
|
|
987
|
+
maxBytes?: number;
|
|
988
|
+
};
|
|
989
|
+
declare let decodeApiErrorBody: (data: unknown, options?: DecodeApiErrorBodyOptions) => unknown;
|
|
961
990
|
declare let statusLabelForApiError: (status?: ApiErrorStatus, statusText?: string) => string;
|
|
962
991
|
declare let extractApiErrorMessage: (error: unknown, options?: ApiErrorDetailOptions & {
|
|
963
992
|
response?: ApiErrorResponse;
|
|
@@ -968,7 +997,7 @@ declare let createApiServiceError: (message: string, options?: {
|
|
|
968
997
|
upstreamCode?: string;
|
|
969
998
|
parent?: unknown;
|
|
970
999
|
}) => ServiceError<ErrorRecord<"bad_request", 400>>;
|
|
971
|
-
declare let buildApiServiceError: (error: unknown, options: BuildApiServiceErrorOptions) => ServiceError<
|
|
1000
|
+
declare let buildApiServiceError: (error: unknown, options: BuildApiServiceErrorOptions) => ServiceError<any>;
|
|
972
1001
|
|
|
973
1002
|
declare class SlateError extends Error {
|
|
974
1003
|
cause?: unknown;
|
|
@@ -1139,4 +1168,4 @@ declare let skipWebhook: (reason: string, response?: Response | SlateWebhookHttp
|
|
|
1139
1168
|
response: Response | SlateWebhookHttpResponseInit;
|
|
1140
1169
|
};
|
|
1141
1170
|
|
|
1142
|
-
export { AUTH_CONFIG_SECRET_PLACEHOLDER_PREFIX, type ApiErrorBuildHelpers, type ApiErrorDetailOptions, type ApiErrorResponse, type ApiErrorStatus, type ApiServiceError, AuthConfigSecretRedactor, type BuildApiServiceErrorOptions, type CreateHmacSignatureOptions, GET_FILE_URL_TOOL_ID, type GetFileUrlHandler, type GetFileUrlToolInput, type GetFileUrlToolOutput, type NormalizeOAuthTokenResponseOptions, type OAuthExpiresAtOptions, type OAuthRefreshTokenFallbackMode, type OAuthTokenResponse, Slate, SlateAction, SlateActionBuilder, type SlateActionCreateParameters, type SlateActionDocsReference, type SlateActionParameters, type SlateActionParametersAny, type SlateActionParametersTool, type SlateActionParametersTrigger, type SlateActionScopeClause, type SlateActionScopeClauseInput, type SlateActionScopeValue, type SlateActionScopes, type SlateActionScopesInput, type SlateActionType, SlateAdapter, type SlateAdapterCapability, SlateAdapterSpec, type SlateAdapterSpecParameters, type SlateAddAttachmentContent, type SlateAddAttachmentInput, type SlateAttachment, type SlateAttachmentInlineContent, type SlateAttachmentUploadReferenceContent, type SlateAttachmentUrlContent, SlateAuth, type SlateAuthDocsReference, type SlateAuthType, type SlateAuthWithCustomData, type SlateAuthWithNone, type SlateAuthWithOauth, type SlateAuthWithServiceAccount, type SlateAuthWithToken, type SlateAuthenticatedAxiosDefaults, type SlateAxiosDefaults, type SlateAxiosErrorAdapter, type SlateAxiosErrorOptions, SlateConfig, type SlateConfigDocsReference, SlateContext, SlateDeclarationError, SlateDefaultPollingIntervalSeconds, type SlateDirectUploadInput, type SlateDocsReference, SlateError, type SlateErrorInput, type SlateErrorIssue, type SlateErrorKind, type SlateErrorProviderInfo, type SlateErrorResponse, type SlateErrorUpstreamInfo, type SlateGatewayEvent, type SlateLiveInvocationInfo, type SlateLogEntry, type SlateLogFields, type SlateLogListener, type SlateLogMessageInput, type SlateLogType, SlateLogger, type SlateProviderDocsReference, SlatePublicContext, SlatePublicTool, type SlatePublicToolInvocationHandler, type SlatePublicToolParameters, type SlateServiceErrorData, SlateSpecification, type SlateSpecificationCreateParameters, type SlateSpecificationParameters, SlateTool, type SlateToolInvocationHandler, type SlateToolParameters, SlateTrigger, SlateTriggerGroup, SlateTriggerGroupBuilder, type SlateTriggerGroupCreateParameters, type SlateTriggerGroupGatewayConnectHandler, type SlateTriggerGroupGatewayParameters, type SlateTriggerGroupGatewayReceiveHandler, type SlateTriggerGroupParameters, type SlateTriggerGroupPollHandler, type SlateTriggerGroupPollingParameters, type SlateTriggerGroupRoutingMatchersHandler, type SlateTriggerGroupWebhookAutoRegistrationParameters, type SlateTriggerGroupWebhookManualRegistrationParameters, type SlateTriggerGroupWebhookParameters, type SlateTriggerMappingHandler, type SlateTriggerMatchesHandler, type SlateTriggerParameters, type SlateTriggerRoutingMatcher, type SlateTypedDocsReference, type SlateWebhookHttpResponseInit, type SlateWebhookManualFinishHandler, type SlateWebhookManualSetupHandler, type SlateWebhookProcessHandler, type SlateWebhookRegisterHandler, type SlateWebhookSkipped, type SlateWebhookTarget, type SlateWebhookTargetListHandler, type SlateWebhookTargetOwnership, type SlateWebhookUnregisterHandler, type VerifyHmacSignatureOptions, adapterSpec, allOf, anyOf, auth, axios, buildApiServiceError, collectApiErrorDetails, config, createApiServiceError, createAuthenticatedAxios, createAxios, createBase64Attachment, createHmacSignature, createSlateError, createTextAttachment, createUrlAttachment, extractApiErrorMessage, getApiErrorResponse, getApiErrorStatus, getBase64ByteLength, getCurrentContext, getFileUrlTool, getFileUrlToolInputSchema, getFileUrlToolOutputSchema, getGraphWebhookValidationResponse, getMetaWebhookVerificationResponse, getOAuthExpiresAtFromExpiresIn, getResponseHeaderValue, getServiceErrorData, graphWebhookHttp, inferSlateErrorFromAxios, isApiErrorRecord, isAxiosErrorLike, isServiceErrorData, isUrlEmbeddedCredential, mapServiceErrorCode, mapServiceErrorToSlateErrorInput, mergeScopes, metaWebhookHttp, normalizeOAuthTokenResponse, pickDefined, publicTool, redactUrlAttachmentSecrets, requestAxios, requestAxiosData, runWithContext, scopeClause, setIfDefined, skipWebhook, spec, statusLabelForApiError, tool, trigger, triggerGroup, uploadAttachmentDirect, validateScopes, verifyHmacSignature };
|
|
1171
|
+
export { API_ERROR_MAX_DETAILS, API_ERROR_MAX_MESSAGE_LENGTH, API_ERROR_TRUNCATED_PLACEHOLDER, AUTH_CONFIG_SECRET_PLACEHOLDER_PREFIX, type ApiErrorBuildHelpers, type ApiErrorDetailOptions, type ApiErrorResponse, type ApiErrorStatus, type ApiErrorTextOptions, type ApiServiceError, type AuthConfigSecretFilter, AuthConfigSecretRedactor, type BoundedApiErrorDetailOptions, type BuildApiServiceErrorOptions, type CreateHmacSignatureOptions, type DecodeApiErrorBodyOptions, GET_FILE_URL_TOOL_ID, type GetFileUrlHandler, type GetFileUrlToolInput, type GetFileUrlToolOutput, type NormalizeOAuthTokenResponseOptions, type OAuthExpiresAtOptions, type OAuthRefreshTokenFallbackMode, type OAuthTokenResponse, Slate, SlateAction, SlateActionBuilder, type SlateActionCreateParameters, type SlateActionDocsReference, type SlateActionParameters, type SlateActionParametersAny, type SlateActionParametersTool, type SlateActionParametersTrigger, type SlateActionScopeClause, type SlateActionScopeClauseInput, type SlateActionScopeValue, type SlateActionScopes, type SlateActionScopesInput, type SlateActionType, SlateAdapter, type SlateAdapterCapability, SlateAdapterSpec, type SlateAdapterSpecParameters, type SlateAddAttachmentContent, type SlateAddAttachmentInput, type SlateAttachment, type SlateAttachmentInlineContent, type SlateAttachmentUploadReferenceContent, type SlateAttachmentUrlContent, SlateAuth, type SlateAuthDocsReference, type SlateAuthType, type SlateAuthWithCustomData, type SlateAuthWithNone, type SlateAuthWithOauth, type SlateAuthWithServiceAccount, type SlateAuthWithToken, type SlateAuthenticatedAxiosDefaults, type SlateAxiosDefaults, type SlateAxiosErrorAdapter, type SlateAxiosErrorOptions, SlateConfig, type SlateConfigDocsReference, SlateContext, SlateDeclarationError, SlateDefaultPollingIntervalSeconds, type SlateDirectUploadInput, type SlateDocsReference, SlateError, type SlateErrorInput, type SlateErrorIssue, type SlateErrorKind, type SlateErrorProviderInfo, type SlateErrorResponse, type SlateErrorUpstreamInfo, type SlateGatewayEvent, type SlateLiveInvocationInfo, type SlateLogEntry, type SlateLogFields, type SlateLogListener, type SlateLogMessageInput, type SlateLogType, SlateLogger, type SlateProviderDocsReference, SlatePublicContext, SlatePublicTool, type SlatePublicToolInvocationHandler, type SlatePublicToolParameters, type SlateServiceErrorData, SlateSpecification, type SlateSpecificationCreateParameters, type SlateSpecificationParameters, SlateTool, type SlateToolInvocationHandler, type SlateToolParameters, SlateTrigger, SlateTriggerGroup, SlateTriggerGroupBuilder, type SlateTriggerGroupCreateParameters, type SlateTriggerGroupGatewayConnectHandler, type SlateTriggerGroupGatewayParameters, type SlateTriggerGroupGatewayReceiveHandler, type SlateTriggerGroupParameters, type SlateTriggerGroupPollHandler, type SlateTriggerGroupPollingParameters, type SlateTriggerGroupRoutingMatchersHandler, type SlateTriggerGroupWebhookAutoRegistrationParameters, type SlateTriggerGroupWebhookManualRegistrationParameters, type SlateTriggerGroupWebhookParameters, type SlateTriggerMappingHandler, type SlateTriggerMatchesHandler, type SlateTriggerParameters, type SlateTriggerRoutingMatcher, type SlateTypedDocsReference, type SlateWebhookHttpResponseInit, type SlateWebhookManualFinishHandler, type SlateWebhookManualSetupHandler, type SlateWebhookProcessHandler, type SlateWebhookRegisterHandler, type SlateWebhookSkipped, type SlateWebhookTarget, type SlateWebhookTargetListHandler, type SlateWebhookTargetOwnership, type SlateWebhookUnregisterHandler, type VerifyHmacSignatureOptions, adapterSpec, allOf, anyOf, auth, axios, buildApiServiceError, collectApiErrorDetails, config, createApiServiceError, createAuthenticatedAxios, createAxios, createBase64Attachment, createHmacSignature, createSlateError, createTextAttachment, createUrlAttachment, decodeApiErrorBody, extractApiErrorMessage, getApiErrorResponse, getApiErrorResponseWithBody, getApiErrorStatus, getBase64ByteLength, getCurrentContext, getFileUrlTool, getFileUrlToolInputSchema, getFileUrlToolOutputSchema, getGraphWebhookValidationResponse, getMetaWebhookVerificationResponse, getOAuthExpiresAtFromExpiresIn, getResponseHeaderValue, getServiceErrorData, graphWebhookHttp, inferSlateErrorFromAxios, isApiErrorRecord, isAxiosErrorLike, isServiceErrorData, isUrlEmbeddedCredential, looksLikeHtmlErrorBody, mapServiceErrorCode, mapServiceErrorToSlateErrorInput, mergeScopes, metaWebhookHttp, normalizeOAuthTokenResponse, pickDefined, publicTool, pushBoundedApiErrorDetail, readApiErrorText, redactUrlAttachmentSecrets, requestAxios, requestAxiosData, runWithContext, scopeClause, setIfDefined, skipWebhook, spec, statusLabelForApiError, tool, trigger, triggerGroup, truncateApiErrorMessage, uploadAttachmentDirect, validateScopes, verifyHmacSignature };
|
package/dist/index.d.ts
CHANGED
|
@@ -41,17 +41,26 @@ declare let createTextAttachment: (content: string, mimeType?: string, attachmen
|
|
|
41
41
|
* the hub resolves these placeholders back to live secret values when it proxies an attachment.
|
|
42
42
|
*/
|
|
43
43
|
declare let AUTH_CONFIG_SECRET_PLACEHOLDER_PREFIX: string;
|
|
44
|
+
/** Decides whether an auth-config value (with its dotted path) may be replaced. */
|
|
45
|
+
type AuthConfigSecretFilter = (secret: string, path: string) => boolean;
|
|
44
46
|
/**
|
|
45
47
|
* Maps auth-config string leaves to `$$MT$secret$authConfig$<path>` placeholders.
|
|
46
48
|
* `redact` preserves whole-value substitution for HTTP traces; `redactEmbedded` also
|
|
47
49
|
* replaces embedded values in attachment credentials, terminating those placeholders with `$$`.
|
|
50
|
+
* Both accept a `wholeValue` filter so diagnostics (traces, error text) can skip
|
|
51
|
+
* non-secret fields such as account IDs, emails, or subdomains; attachment callers keep
|
|
52
|
+
* the default, because the hub resolves every placeholder back to its value.
|
|
48
53
|
*/
|
|
49
54
|
declare class AuthConfigSecretRedactor {
|
|
50
|
-
private readonly
|
|
55
|
+
private readonly secretToPaths;
|
|
51
56
|
constructor(authConfig: Record<string, unknown> | undefined);
|
|
52
|
-
redact<T>(value: T): T;
|
|
53
|
-
/**
|
|
54
|
-
|
|
57
|
+
redact<T>(value: T, wholeValue?: AuthConfigSecretFilter): T;
|
|
58
|
+
/**
|
|
59
|
+
* `embeddable` limits which secrets are also replaced inside longer strings;
|
|
60
|
+
* `wholeValue` limits which secrets replace a string that equals them exactly.
|
|
61
|
+
*/
|
|
62
|
+
redactEmbedded<T>(value: T, embeddable?: AuthConfigSecretFilter, wholeValue?: AuthConfigSecretFilter): T;
|
|
63
|
+
private placeholderFor;
|
|
55
64
|
private buildSecretMap;
|
|
56
65
|
private transform;
|
|
57
66
|
private isPlainObject;
|
|
@@ -932,6 +941,7 @@ type ApiErrorBuildHelpers = {
|
|
|
932
941
|
collectDetails: (value: unknown, details: string[], options?: ApiErrorDetailOptions) => void;
|
|
933
942
|
extractMessage: (error: unknown, options?: ApiErrorDetailOptions) => string;
|
|
934
943
|
getResponse: (error: unknown) => ApiErrorResponse | undefined;
|
|
944
|
+
getResponseWithBody: (error: unknown) => ApiErrorResponse | undefined;
|
|
935
945
|
getStatus: (error: unknown) => ApiErrorStatus | undefined;
|
|
936
946
|
isRecord: (value: unknown) => value is Record<string, unknown>;
|
|
937
947
|
statusLabelFor: (status?: ApiErrorStatus, statusText?: string) => string;
|
|
@@ -958,6 +968,25 @@ declare let isApiErrorRecord: (value: unknown) => value is Record<string, unknow
|
|
|
958
968
|
declare let collectApiErrorDetails: (value: unknown, details: string[], options?: ApiErrorDetailOptions) => void;
|
|
959
969
|
declare let getApiErrorResponse: (error: unknown) => ApiErrorResponse | undefined;
|
|
960
970
|
declare let getApiErrorStatus: (error: unknown) => ApiErrorStatus | undefined;
|
|
971
|
+
declare let getApiErrorResponseWithBody: (error: unknown) => ApiErrorResponse | undefined;
|
|
972
|
+
declare let API_ERROR_MAX_DETAILS: number;
|
|
973
|
+
declare let API_ERROR_MAX_MESSAGE_LENGTH: number;
|
|
974
|
+
declare let API_ERROR_TRUNCATED_PLACEHOLDER: string;
|
|
975
|
+
declare let looksLikeHtmlErrorBody: (value: string) => boolean;
|
|
976
|
+
declare let truncateApiErrorMessage: (value: string, maxLength?: number) => string;
|
|
977
|
+
type ApiErrorTextOptions = {
|
|
978
|
+
includeNumbers?: boolean;
|
|
979
|
+
};
|
|
980
|
+
declare let readApiErrorText: (value: unknown, options?: ApiErrorTextOptions) => string | undefined;
|
|
981
|
+
type BoundedApiErrorDetailOptions = ApiErrorTextOptions & {
|
|
982
|
+
maxDetails?: number;
|
|
983
|
+
field?: string;
|
|
984
|
+
};
|
|
985
|
+
declare let pushBoundedApiErrorDetail: (details: string[], value: unknown, options?: BoundedApiErrorDetailOptions) => void;
|
|
986
|
+
type DecodeApiErrorBodyOptions = {
|
|
987
|
+
maxBytes?: number;
|
|
988
|
+
};
|
|
989
|
+
declare let decodeApiErrorBody: (data: unknown, options?: DecodeApiErrorBodyOptions) => unknown;
|
|
961
990
|
declare let statusLabelForApiError: (status?: ApiErrorStatus, statusText?: string) => string;
|
|
962
991
|
declare let extractApiErrorMessage: (error: unknown, options?: ApiErrorDetailOptions & {
|
|
963
992
|
response?: ApiErrorResponse;
|
|
@@ -968,7 +997,7 @@ declare let createApiServiceError: (message: string, options?: {
|
|
|
968
997
|
upstreamCode?: string;
|
|
969
998
|
parent?: unknown;
|
|
970
999
|
}) => ServiceError<ErrorRecord<"bad_request", 400>>;
|
|
971
|
-
declare let buildApiServiceError: (error: unknown, options: BuildApiServiceErrorOptions) => ServiceError<
|
|
1000
|
+
declare let buildApiServiceError: (error: unknown, options: BuildApiServiceErrorOptions) => ServiceError<any>;
|
|
972
1001
|
|
|
973
1002
|
declare class SlateError extends Error {
|
|
974
1003
|
cause?: unknown;
|
|
@@ -1139,4 +1168,4 @@ declare let skipWebhook: (reason: string, response?: Response | SlateWebhookHttp
|
|
|
1139
1168
|
response: Response | SlateWebhookHttpResponseInit;
|
|
1140
1169
|
};
|
|
1141
1170
|
|
|
1142
|
-
export { AUTH_CONFIG_SECRET_PLACEHOLDER_PREFIX, type ApiErrorBuildHelpers, type ApiErrorDetailOptions, type ApiErrorResponse, type ApiErrorStatus, type ApiServiceError, AuthConfigSecretRedactor, type BuildApiServiceErrorOptions, type CreateHmacSignatureOptions, GET_FILE_URL_TOOL_ID, type GetFileUrlHandler, type GetFileUrlToolInput, type GetFileUrlToolOutput, type NormalizeOAuthTokenResponseOptions, type OAuthExpiresAtOptions, type OAuthRefreshTokenFallbackMode, type OAuthTokenResponse, Slate, SlateAction, SlateActionBuilder, type SlateActionCreateParameters, type SlateActionDocsReference, type SlateActionParameters, type SlateActionParametersAny, type SlateActionParametersTool, type SlateActionParametersTrigger, type SlateActionScopeClause, type SlateActionScopeClauseInput, type SlateActionScopeValue, type SlateActionScopes, type SlateActionScopesInput, type SlateActionType, SlateAdapter, type SlateAdapterCapability, SlateAdapterSpec, type SlateAdapterSpecParameters, type SlateAddAttachmentContent, type SlateAddAttachmentInput, type SlateAttachment, type SlateAttachmentInlineContent, type SlateAttachmentUploadReferenceContent, type SlateAttachmentUrlContent, SlateAuth, type SlateAuthDocsReference, type SlateAuthType, type SlateAuthWithCustomData, type SlateAuthWithNone, type SlateAuthWithOauth, type SlateAuthWithServiceAccount, type SlateAuthWithToken, type SlateAuthenticatedAxiosDefaults, type SlateAxiosDefaults, type SlateAxiosErrorAdapter, type SlateAxiosErrorOptions, SlateConfig, type SlateConfigDocsReference, SlateContext, SlateDeclarationError, SlateDefaultPollingIntervalSeconds, type SlateDirectUploadInput, type SlateDocsReference, SlateError, type SlateErrorInput, type SlateErrorIssue, type SlateErrorKind, type SlateErrorProviderInfo, type SlateErrorResponse, type SlateErrorUpstreamInfo, type SlateGatewayEvent, type SlateLiveInvocationInfo, type SlateLogEntry, type SlateLogFields, type SlateLogListener, type SlateLogMessageInput, type SlateLogType, SlateLogger, type SlateProviderDocsReference, SlatePublicContext, SlatePublicTool, type SlatePublicToolInvocationHandler, type SlatePublicToolParameters, type SlateServiceErrorData, SlateSpecification, type SlateSpecificationCreateParameters, type SlateSpecificationParameters, SlateTool, type SlateToolInvocationHandler, type SlateToolParameters, SlateTrigger, SlateTriggerGroup, SlateTriggerGroupBuilder, type SlateTriggerGroupCreateParameters, type SlateTriggerGroupGatewayConnectHandler, type SlateTriggerGroupGatewayParameters, type SlateTriggerGroupGatewayReceiveHandler, type SlateTriggerGroupParameters, type SlateTriggerGroupPollHandler, type SlateTriggerGroupPollingParameters, type SlateTriggerGroupRoutingMatchersHandler, type SlateTriggerGroupWebhookAutoRegistrationParameters, type SlateTriggerGroupWebhookManualRegistrationParameters, type SlateTriggerGroupWebhookParameters, type SlateTriggerMappingHandler, type SlateTriggerMatchesHandler, type SlateTriggerParameters, type SlateTriggerRoutingMatcher, type SlateTypedDocsReference, type SlateWebhookHttpResponseInit, type SlateWebhookManualFinishHandler, type SlateWebhookManualSetupHandler, type SlateWebhookProcessHandler, type SlateWebhookRegisterHandler, type SlateWebhookSkipped, type SlateWebhookTarget, type SlateWebhookTargetListHandler, type SlateWebhookTargetOwnership, type SlateWebhookUnregisterHandler, type VerifyHmacSignatureOptions, adapterSpec, allOf, anyOf, auth, axios, buildApiServiceError, collectApiErrorDetails, config, createApiServiceError, createAuthenticatedAxios, createAxios, createBase64Attachment, createHmacSignature, createSlateError, createTextAttachment, createUrlAttachment, extractApiErrorMessage, getApiErrorResponse, getApiErrorStatus, getBase64ByteLength, getCurrentContext, getFileUrlTool, getFileUrlToolInputSchema, getFileUrlToolOutputSchema, getGraphWebhookValidationResponse, getMetaWebhookVerificationResponse, getOAuthExpiresAtFromExpiresIn, getResponseHeaderValue, getServiceErrorData, graphWebhookHttp, inferSlateErrorFromAxios, isApiErrorRecord, isAxiosErrorLike, isServiceErrorData, isUrlEmbeddedCredential, mapServiceErrorCode, mapServiceErrorToSlateErrorInput, mergeScopes, metaWebhookHttp, normalizeOAuthTokenResponse, pickDefined, publicTool, redactUrlAttachmentSecrets, requestAxios, requestAxiosData, runWithContext, scopeClause, setIfDefined, skipWebhook, spec, statusLabelForApiError, tool, trigger, triggerGroup, uploadAttachmentDirect, validateScopes, verifyHmacSignature };
|
|
1171
|
+
export { API_ERROR_MAX_DETAILS, API_ERROR_MAX_MESSAGE_LENGTH, API_ERROR_TRUNCATED_PLACEHOLDER, AUTH_CONFIG_SECRET_PLACEHOLDER_PREFIX, type ApiErrorBuildHelpers, type ApiErrorDetailOptions, type ApiErrorResponse, type ApiErrorStatus, type ApiErrorTextOptions, type ApiServiceError, type AuthConfigSecretFilter, AuthConfigSecretRedactor, type BoundedApiErrorDetailOptions, type BuildApiServiceErrorOptions, type CreateHmacSignatureOptions, type DecodeApiErrorBodyOptions, GET_FILE_URL_TOOL_ID, type GetFileUrlHandler, type GetFileUrlToolInput, type GetFileUrlToolOutput, type NormalizeOAuthTokenResponseOptions, type OAuthExpiresAtOptions, type OAuthRefreshTokenFallbackMode, type OAuthTokenResponse, Slate, SlateAction, SlateActionBuilder, type SlateActionCreateParameters, type SlateActionDocsReference, type SlateActionParameters, type SlateActionParametersAny, type SlateActionParametersTool, type SlateActionParametersTrigger, type SlateActionScopeClause, type SlateActionScopeClauseInput, type SlateActionScopeValue, type SlateActionScopes, type SlateActionScopesInput, type SlateActionType, SlateAdapter, type SlateAdapterCapability, SlateAdapterSpec, type SlateAdapterSpecParameters, type SlateAddAttachmentContent, type SlateAddAttachmentInput, type SlateAttachment, type SlateAttachmentInlineContent, type SlateAttachmentUploadReferenceContent, type SlateAttachmentUrlContent, SlateAuth, type SlateAuthDocsReference, type SlateAuthType, type SlateAuthWithCustomData, type SlateAuthWithNone, type SlateAuthWithOauth, type SlateAuthWithServiceAccount, type SlateAuthWithToken, type SlateAuthenticatedAxiosDefaults, type SlateAxiosDefaults, type SlateAxiosErrorAdapter, type SlateAxiosErrorOptions, SlateConfig, type SlateConfigDocsReference, SlateContext, SlateDeclarationError, SlateDefaultPollingIntervalSeconds, type SlateDirectUploadInput, type SlateDocsReference, SlateError, type SlateErrorInput, type SlateErrorIssue, type SlateErrorKind, type SlateErrorProviderInfo, type SlateErrorResponse, type SlateErrorUpstreamInfo, type SlateGatewayEvent, type SlateLiveInvocationInfo, type SlateLogEntry, type SlateLogFields, type SlateLogListener, type SlateLogMessageInput, type SlateLogType, SlateLogger, type SlateProviderDocsReference, SlatePublicContext, SlatePublicTool, type SlatePublicToolInvocationHandler, type SlatePublicToolParameters, type SlateServiceErrorData, SlateSpecification, type SlateSpecificationCreateParameters, type SlateSpecificationParameters, SlateTool, type SlateToolInvocationHandler, type SlateToolParameters, SlateTrigger, SlateTriggerGroup, SlateTriggerGroupBuilder, type SlateTriggerGroupCreateParameters, type SlateTriggerGroupGatewayConnectHandler, type SlateTriggerGroupGatewayParameters, type SlateTriggerGroupGatewayReceiveHandler, type SlateTriggerGroupParameters, type SlateTriggerGroupPollHandler, type SlateTriggerGroupPollingParameters, type SlateTriggerGroupRoutingMatchersHandler, type SlateTriggerGroupWebhookAutoRegistrationParameters, type SlateTriggerGroupWebhookManualRegistrationParameters, type SlateTriggerGroupWebhookParameters, type SlateTriggerMappingHandler, type SlateTriggerMatchesHandler, type SlateTriggerParameters, type SlateTriggerRoutingMatcher, type SlateTypedDocsReference, type SlateWebhookHttpResponseInit, type SlateWebhookManualFinishHandler, type SlateWebhookManualSetupHandler, type SlateWebhookProcessHandler, type SlateWebhookRegisterHandler, type SlateWebhookSkipped, type SlateWebhookTarget, type SlateWebhookTargetListHandler, type SlateWebhookTargetOwnership, type SlateWebhookUnregisterHandler, type VerifyHmacSignatureOptions, adapterSpec, allOf, anyOf, auth, axios, buildApiServiceError, collectApiErrorDetails, config, createApiServiceError, createAuthenticatedAxios, createAxios, createBase64Attachment, createHmacSignature, createSlateError, createTextAttachment, createUrlAttachment, decodeApiErrorBody, extractApiErrorMessage, getApiErrorResponse, getApiErrorResponseWithBody, getApiErrorStatus, getBase64ByteLength, getCurrentContext, getFileUrlTool, getFileUrlToolInputSchema, getFileUrlToolOutputSchema, getGraphWebhookValidationResponse, getMetaWebhookVerificationResponse, getOAuthExpiresAtFromExpiresIn, getResponseHeaderValue, getServiceErrorData, graphWebhookHttp, inferSlateErrorFromAxios, isApiErrorRecord, isAxiosErrorLike, isServiceErrorData, isUrlEmbeddedCredential, looksLikeHtmlErrorBody, mapServiceErrorCode, mapServiceErrorToSlateErrorInput, mergeScopes, metaWebhookHttp, normalizeOAuthTokenResponse, pickDefined, publicTool, pushBoundedApiErrorDetail, readApiErrorText, redactUrlAttachmentSecrets, requestAxios, requestAxiosData, runWithContext, scopeClause, setIfDefined, skipWebhook, spec, statusLabelForApiError, tool, trigger, triggerGroup, truncateApiErrorMessage, uploadAttachmentDirect, validateScopes, verifyHmacSignature };
|