@kontext-dev/js-sdk 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ai/index.cjs +12 -2
- package/dist/adapters/ai/index.cjs.map +1 -1
- package/dist/adapters/ai/index.js +12 -2
- package/dist/adapters/ai/index.js.map +1 -1
- package/dist/adapters/cloudflare/index.cjs +13 -0
- package/dist/adapters/cloudflare/index.cjs.map +1 -1
- package/dist/adapters/cloudflare/index.js +13 -0
- package/dist/adapters/cloudflare/index.js.map +1 -1
- package/dist/adapters/cloudflare/react.cjs +12 -2
- package/dist/adapters/cloudflare/react.cjs.map +1 -1
- package/dist/adapters/cloudflare/react.js +12 -2
- package/dist/adapters/cloudflare/react.js.map +1 -1
- package/dist/adapters/react/index.cjs +12 -2
- package/dist/adapters/react/index.cjs.map +1 -1
- package/dist/adapters/react/index.js +12 -2
- package/dist/adapters/react/index.js.map +1 -1
- package/dist/client/index.cjs +89 -68
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +2 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +90 -70
- package/dist/client/index.js.map +1 -1
- package/dist/errors.cjs +78 -0
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +7 -1
- package/dist/errors.d.ts +7 -1
- package/dist/errors.js +78 -1
- package/dist/errors.js.map +1 -1
- package/dist/index.cjs +124 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +125 -87
- package/dist/index.js.map +1 -1
- package/dist/{kontext-CgIBANFo.d.cts → kontext-CBPuE-hq.d.cts} +3 -0
- package/dist/{kontext-CgIBANFo.d.ts → kontext-CBPuE-hq.d.ts} +3 -0
- package/dist/management/index.cjs +15 -0
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +2 -2
- package/dist/management/index.d.ts +2 -2
- package/dist/management/index.js +15 -1
- package/dist/management/index.js.map +1 -1
- package/dist/mcp/index.cjs +13 -2
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.d.cts +3 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.js +14 -3
- package/dist/mcp/index.js.map +1 -1
- package/dist/oauth/index.cjs +12 -2
- package/dist/oauth/index.cjs.map +1 -1
- package/dist/oauth/index.d.cts +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/index.js +12 -2
- package/dist/oauth/index.js.map +1 -1
- package/dist/server/index.cjs +47 -20
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +48 -21
- package/dist/server/index.js.map +1 -1
- package/dist/{types-C6ep5fVw.d.cts → types-DicGI7ix.d.cts} +21 -1
- package/dist/{types-C6ep5fVw.d.ts → types-DicGI7ix.d.ts} +21 -1
- package/package.json +1 -1
|
@@ -92,6 +92,7 @@ interface Integration {
|
|
|
92
92
|
validationMessage?: string;
|
|
93
93
|
lastValidatedAt?: string;
|
|
94
94
|
userConnection?: ConnectionStatusResponse;
|
|
95
|
+
sharedConnection?: ConnectionStatusResponse;
|
|
95
96
|
createdAt: string;
|
|
96
97
|
updatedAt: string;
|
|
97
98
|
archivedAt?: string;
|
|
@@ -137,6 +138,20 @@ interface ConnectionStatusResponse {
|
|
|
137
138
|
status?: ConnectionStatus;
|
|
138
139
|
expiresAt?: string;
|
|
139
140
|
displayName?: string;
|
|
141
|
+
lastVerifiedAt?: string;
|
|
142
|
+
lastVerifiedStatus?: string;
|
|
143
|
+
verificationMessage?: string;
|
|
144
|
+
}
|
|
145
|
+
type TestConnectionStatus = "verified" | "auth_failed" | "unreachable" | "mcp_failed" | "no_credential";
|
|
146
|
+
interface TestConnectionResponse {
|
|
147
|
+
status: TestConnectionStatus;
|
|
148
|
+
message?: string;
|
|
149
|
+
toolCount?: number;
|
|
150
|
+
testedAt: string;
|
|
151
|
+
connection: {
|
|
152
|
+
connected: boolean;
|
|
153
|
+
expiresAt?: string;
|
|
154
|
+
};
|
|
140
155
|
}
|
|
141
156
|
interface ConnectionResponse {
|
|
142
157
|
connection: ConnectionStatusResponse;
|
|
@@ -339,6 +354,11 @@ declare const TOKEN_EXCHANGE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:toke
|
|
|
339
354
|
* RFC 8693 token type identifier for access tokens
|
|
340
355
|
*/
|
|
341
356
|
declare const TOKEN_TYPE_ACCESS_TOKEN = "urn:ietf:params:oauth:token-type:access_token";
|
|
357
|
+
/**
|
|
358
|
+
* Kontext custom token type: the subject_token is an end-user external ID.
|
|
359
|
+
* Used by confidential clients for the credential vault flow.
|
|
360
|
+
*/
|
|
361
|
+
declare const TOKEN_TYPE_USER_ID = "urn:kontext:user-id";
|
|
342
362
|
/**
|
|
343
363
|
* Request body for RFC 8693 token exchange
|
|
344
364
|
*/
|
|
@@ -396,4 +416,4 @@ interface KontextManagementClientConfig {
|
|
|
396
416
|
};
|
|
397
417
|
}
|
|
398
418
|
|
|
399
|
-
export { TOKEN_TYPE_ACCESS_TOKEN as $, type ApplicationResponse as A, type ConnectionResponse as B, type CreateServiceAccountInput as C, type ConnectionStatus as D, type ConnectionStatusResponse as E, type CreateApplicationOAuthInput as F, type Integration as G, type IntegrationAuthMode as H, type IntegrationResponse as I, type IntegrationCapabilities as J, type KontextManagementClientConfig as K, type ListServiceAccountsResponse as L, type McpEventListResponse as M, type IntegrationOAuthConfigInput as N, type IntegrationOAuthSummary as O, type PaginationParams as P, type IntegrationValidationStatus as Q, type RotateSecretResponse as R, type ServiceAccountResponse as S, type TokenExchangeRequest as T, type UpdateApplicationInput as U, type ValidateIntegrationResponse as V, type ListEventsResponse as W, type McpEvent as X, type OAuthTokens as Y, type ServiceAccount as Z, TOKEN_EXCHANGE_GRANT_TYPE as _, type TokenExchangeResponse as a, type Trace as
|
|
419
|
+
export { TOKEN_TYPE_ACCESS_TOKEN as $, type ApplicationResponse as A, type ConnectionResponse as B, type CreateServiceAccountInput as C, type ConnectionStatus as D, type ConnectionStatusResponse as E, type CreateApplicationOAuthInput as F, type Integration as G, type IntegrationAuthMode as H, type IntegrationResponse as I, type IntegrationCapabilities as J, type KontextManagementClientConfig as K, type ListServiceAccountsResponse as L, type McpEventListResponse as M, type IntegrationOAuthConfigInput as N, type IntegrationOAuthSummary as O, type PaginationParams as P, type IntegrationValidationStatus as Q, type RotateSecretResponse as R, type ServiceAccountResponse as S, type TokenExchangeRequest as T, type UpdateApplicationInput as U, type ValidateIntegrationResponse as V, type ListEventsResponse as W, type McpEvent as X, type OAuthTokens as Y, type ServiceAccount as Z, TOKEN_EXCHANGE_GRANT_TYPE as _, type TokenExchangeResponse as a, TOKEN_TYPE_USER_ID as a0, type TestConnectionResponse as a1, type TestConnectionStatus as a2, type Trace as a3, type TraceEvent as a4, type TraceStats as a5, type CreateServiceAccountResponse as b, type CreateApplicationInput as c, type CreateApplicationResponse as d, type ListApplicationsResponse as e, type ApplicationOAuthResponse as f, type UpdateApplicationOAuthInput as g, type RotateApplicationSecretResponse as h, type ApplicationIntegrationsResponse as i, type UpdateApplicationIntegrationsInput as j, type RevokeAllSessionsResponse as k, type CreateIntegrationInput as l, type CreateIntegrationResponse as m, type ListIntegrationsResponse as n, type UpdateIntegrationInput as o, type ListAgentSessionsResponse as p, type AgentSessionResponse as q, type ListTracesResponse as r, type TraceResponse as s, type TraceStatsResponse as t, type AddUserTokenInput as u, type AgentSession as v, type AgentSessionDerivedStatus as w, type AgentSessionStatus as x, type Application as y, type ApplicationOAuth as z };
|
|
@@ -92,6 +92,7 @@ interface Integration {
|
|
|
92
92
|
validationMessage?: string;
|
|
93
93
|
lastValidatedAt?: string;
|
|
94
94
|
userConnection?: ConnectionStatusResponse;
|
|
95
|
+
sharedConnection?: ConnectionStatusResponse;
|
|
95
96
|
createdAt: string;
|
|
96
97
|
updatedAt: string;
|
|
97
98
|
archivedAt?: string;
|
|
@@ -137,6 +138,20 @@ interface ConnectionStatusResponse {
|
|
|
137
138
|
status?: ConnectionStatus;
|
|
138
139
|
expiresAt?: string;
|
|
139
140
|
displayName?: string;
|
|
141
|
+
lastVerifiedAt?: string;
|
|
142
|
+
lastVerifiedStatus?: string;
|
|
143
|
+
verificationMessage?: string;
|
|
144
|
+
}
|
|
145
|
+
type TestConnectionStatus = "verified" | "auth_failed" | "unreachable" | "mcp_failed" | "no_credential";
|
|
146
|
+
interface TestConnectionResponse {
|
|
147
|
+
status: TestConnectionStatus;
|
|
148
|
+
message?: string;
|
|
149
|
+
toolCount?: number;
|
|
150
|
+
testedAt: string;
|
|
151
|
+
connection: {
|
|
152
|
+
connected: boolean;
|
|
153
|
+
expiresAt?: string;
|
|
154
|
+
};
|
|
140
155
|
}
|
|
141
156
|
interface ConnectionResponse {
|
|
142
157
|
connection: ConnectionStatusResponse;
|
|
@@ -339,6 +354,11 @@ declare const TOKEN_EXCHANGE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:toke
|
|
|
339
354
|
* RFC 8693 token type identifier for access tokens
|
|
340
355
|
*/
|
|
341
356
|
declare const TOKEN_TYPE_ACCESS_TOKEN = "urn:ietf:params:oauth:token-type:access_token";
|
|
357
|
+
/**
|
|
358
|
+
* Kontext custom token type: the subject_token is an end-user external ID.
|
|
359
|
+
* Used by confidential clients for the credential vault flow.
|
|
360
|
+
*/
|
|
361
|
+
declare const TOKEN_TYPE_USER_ID = "urn:kontext:user-id";
|
|
342
362
|
/**
|
|
343
363
|
* Request body for RFC 8693 token exchange
|
|
344
364
|
*/
|
|
@@ -396,4 +416,4 @@ interface KontextManagementClientConfig {
|
|
|
396
416
|
};
|
|
397
417
|
}
|
|
398
418
|
|
|
399
|
-
export { TOKEN_TYPE_ACCESS_TOKEN as $, type ApplicationResponse as A, type ConnectionResponse as B, type CreateServiceAccountInput as C, type ConnectionStatus as D, type ConnectionStatusResponse as E, type CreateApplicationOAuthInput as F, type Integration as G, type IntegrationAuthMode as H, type IntegrationResponse as I, type IntegrationCapabilities as J, type KontextManagementClientConfig as K, type ListServiceAccountsResponse as L, type McpEventListResponse as M, type IntegrationOAuthConfigInput as N, type IntegrationOAuthSummary as O, type PaginationParams as P, type IntegrationValidationStatus as Q, type RotateSecretResponse as R, type ServiceAccountResponse as S, type TokenExchangeRequest as T, type UpdateApplicationInput as U, type ValidateIntegrationResponse as V, type ListEventsResponse as W, type McpEvent as X, type OAuthTokens as Y, type ServiceAccount as Z, TOKEN_EXCHANGE_GRANT_TYPE as _, type TokenExchangeResponse as a, type Trace as
|
|
419
|
+
export { TOKEN_TYPE_ACCESS_TOKEN as $, type ApplicationResponse as A, type ConnectionResponse as B, type CreateServiceAccountInput as C, type ConnectionStatus as D, type ConnectionStatusResponse as E, type CreateApplicationOAuthInput as F, type Integration as G, type IntegrationAuthMode as H, type IntegrationResponse as I, type IntegrationCapabilities as J, type KontextManagementClientConfig as K, type ListServiceAccountsResponse as L, type McpEventListResponse as M, type IntegrationOAuthConfigInput as N, type IntegrationOAuthSummary as O, type PaginationParams as P, type IntegrationValidationStatus as Q, type RotateSecretResponse as R, type ServiceAccountResponse as S, type TokenExchangeRequest as T, type UpdateApplicationInput as U, type ValidateIntegrationResponse as V, type ListEventsResponse as W, type McpEvent as X, type OAuthTokens as Y, type ServiceAccount as Z, TOKEN_EXCHANGE_GRANT_TYPE as _, type TokenExchangeResponse as a, TOKEN_TYPE_USER_ID as a0, type TestConnectionResponse as a1, type TestConnectionStatus as a2, type Trace as a3, type TraceEvent as a4, type TraceStats as a5, type CreateServiceAccountResponse as b, type CreateApplicationInput as c, type CreateApplicationResponse as d, type ListApplicationsResponse as e, type ApplicationOAuthResponse as f, type UpdateApplicationOAuthInput as g, type RotateApplicationSecretResponse as h, type ApplicationIntegrationsResponse as i, type UpdateApplicationIntegrationsInput as j, type RevokeAllSessionsResponse as k, type CreateIntegrationInput as l, type CreateIntegrationResponse as m, type ListIntegrationsResponse as n, type UpdateIntegrationInput as o, type ListAgentSessionsResponse as p, type AgentSessionResponse as q, type ListTracesResponse as r, type TraceResponse as s, type TraceStatsResponse as t, type AddUserTokenInput as u, type AgentSession as v, type AgentSessionDerivedStatus as w, type AgentSessionStatus as x, type Application as y, type ApplicationOAuth as z };
|