@sekuire/sdk 0.1.23 → 0.1.25
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/a2a-client.d.ts +8 -0
- package/dist/a2a-delegator.d.ts +2 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.esm.js +19279 -186
- package/dist/index.js +19285 -192
- package/dist/llm/google.d.ts +2 -0
- package/dist/sdk.d.ts +3 -0
- package/package.json +10 -10
package/dist/a2a-client.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export interface A2AClientOptions {
|
|
|
13
13
|
timeout?: number;
|
|
14
14
|
/** Optional device fingerprint for API-key auth on task endpoints */
|
|
15
15
|
deviceFingerprint?: string;
|
|
16
|
+
/** Optional runtime token resolver for per-request credential sync */
|
|
17
|
+
tokenResolver?: () => string | undefined;
|
|
18
|
+
/** Optional callback to refresh credentials after runtime-token 401 */
|
|
19
|
+
onUnauthorized?: () => Promise<void>;
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
18
22
|
* A2A Protocol Client
|
|
@@ -45,6 +49,8 @@ export declare class A2AClient {
|
|
|
45
49
|
private runtimeToken;
|
|
46
50
|
private timeout;
|
|
47
51
|
private deviceFingerprint;
|
|
52
|
+
private tokenResolver?;
|
|
53
|
+
private onUnauthorized?;
|
|
48
54
|
constructor(options: A2AClientOptions);
|
|
49
55
|
setRuntimeToken(token: string): void;
|
|
50
56
|
/**
|
|
@@ -110,6 +116,8 @@ export declare class A2AClient {
|
|
|
110
116
|
private jsonRpc;
|
|
111
117
|
private fetch;
|
|
112
118
|
private fetchTask;
|
|
119
|
+
private doFetchTask;
|
|
120
|
+
private resolveRuntimeToken;
|
|
113
121
|
private taskAuthHeaders;
|
|
114
122
|
private isLikelyJwt;
|
|
115
123
|
}
|
package/dist/a2a-delegator.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface DelegatorConfig {
|
|
|
17
17
|
retryDelayMs?: number;
|
|
18
18
|
retryBackoffMultiplier?: number;
|
|
19
19
|
policyGateway?: PolicyGateway;
|
|
20
|
+
tokenResolver?: () => string | undefined;
|
|
21
|
+
onUnauthorized?: () => Promise<void>;
|
|
20
22
|
}
|
|
21
23
|
export interface DelegationRequest {
|
|
22
24
|
skill: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -305,6 +305,8 @@ interface DelegatorConfig {
|
|
|
305
305
|
retryDelayMs?: number;
|
|
306
306
|
retryBackoffMultiplier?: number;
|
|
307
307
|
policyGateway?: PolicyGateway;
|
|
308
|
+
tokenResolver?: () => string | undefined;
|
|
309
|
+
onUnauthorized?: () => Promise<void>;
|
|
308
310
|
}
|
|
309
311
|
interface DelegationRequest {
|
|
310
312
|
skill: string;
|
|
@@ -1079,6 +1081,9 @@ declare class SekuireSDK {
|
|
|
1079
1081
|
createDelegator(options?: {
|
|
1080
1082
|
timeout?: number;
|
|
1081
1083
|
pollInterval?: number;
|
|
1084
|
+
maxRetries?: number;
|
|
1085
|
+
retryDelayMs?: number;
|
|
1086
|
+
retryBackoffMultiplier?: number;
|
|
1082
1087
|
}): A2ATaskDelegator;
|
|
1083
1088
|
/**
|
|
1084
1089
|
* Get the agent ID.
|
|
@@ -2199,6 +2204,8 @@ declare class GoogleProvider extends BaseLLMProvider {
|
|
|
2199
2204
|
chatStream(messages: Message[], options?: ChatOptions): AsyncGenerator<ChatChunk>;
|
|
2200
2205
|
getProviderName(): string;
|
|
2201
2206
|
protected getMaxTokensForModel(model: string): number;
|
|
2207
|
+
private buildTools;
|
|
2208
|
+
private buildHistory;
|
|
2202
2209
|
}
|
|
2203
2210
|
|
|
2204
2211
|
declare class OllamaProvider extends BaseLLMProvider {
|
|
@@ -3362,6 +3369,10 @@ interface A2AClientOptions {
|
|
|
3362
3369
|
timeout?: number;
|
|
3363
3370
|
/** Optional device fingerprint for API-key auth on task endpoints */
|
|
3364
3371
|
deviceFingerprint?: string;
|
|
3372
|
+
/** Optional runtime token resolver for per-request credential sync */
|
|
3373
|
+
tokenResolver?: () => string | undefined;
|
|
3374
|
+
/** Optional callback to refresh credentials after runtime-token 401 */
|
|
3375
|
+
onUnauthorized?: () => Promise<void>;
|
|
3365
3376
|
}
|
|
3366
3377
|
/**
|
|
3367
3378
|
* A2A Protocol Client
|
|
@@ -3394,6 +3405,8 @@ declare class A2AClient {
|
|
|
3394
3405
|
private runtimeToken;
|
|
3395
3406
|
private timeout;
|
|
3396
3407
|
private deviceFingerprint;
|
|
3408
|
+
private tokenResolver?;
|
|
3409
|
+
private onUnauthorized?;
|
|
3397
3410
|
constructor(options: A2AClientOptions);
|
|
3398
3411
|
setRuntimeToken(token: string): void;
|
|
3399
3412
|
/**
|
|
@@ -3459,6 +3472,8 @@ declare class A2AClient {
|
|
|
3459
3472
|
private jsonRpc;
|
|
3460
3473
|
private fetch;
|
|
3461
3474
|
private fetchTask;
|
|
3475
|
+
private doFetchTask;
|
|
3476
|
+
private resolveRuntimeToken;
|
|
3462
3477
|
private taskAuthHeaders;
|
|
3463
3478
|
private isLikelyJwt;
|
|
3464
3479
|
}
|