@silencelaboratories/walletprovider-sdk 4.2.1 → 4.3.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/README.md +16 -9
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/policy.d.ts +15 -7
- package/dist/policyIntegration.d.ts +12 -4
- package/dist/setupMessage.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/policy.d.ts
CHANGED
|
@@ -201,17 +201,22 @@ export interface ConditionGroup {
|
|
|
201
201
|
* Either a single condition or a group of conditions
|
|
202
202
|
*/
|
|
203
203
|
export type ConditionOrGroup = Condition | ConditionGroup;
|
|
204
|
-
/** One external
|
|
204
|
+
/** One configured external-check operation referenced by a policy rule. */
|
|
205
205
|
export interface ExternalCheck {
|
|
206
|
+
/** Policy-defined identifier for this external check. Must be unique across all rules in the policy. */
|
|
206
207
|
check_id: string;
|
|
208
|
+
/** Integration identifier resolved by the party's integration registry. */
|
|
207
209
|
integration_id: string;
|
|
210
|
+
/** Operation to execute for the referenced integration. */
|
|
208
211
|
operation: string;
|
|
209
|
-
/**
|
|
212
|
+
/** Maximum duration allowed for this check, in milliseconds. */
|
|
210
213
|
duration_ms: number;
|
|
211
214
|
}
|
|
212
|
-
/**
|
|
215
|
+
/** External checks combined with boolean logic for one policy rule. */
|
|
213
216
|
export interface ExternalCheckGroup {
|
|
217
|
+
/** Logic applied only within this external-check group. */
|
|
214
218
|
logic: Logic;
|
|
219
|
+
/** Checks in policy evaluation order. */
|
|
215
220
|
checks: ExternalCheck[];
|
|
216
221
|
}
|
|
217
222
|
/**
|
|
@@ -287,13 +292,16 @@ export declare namespace StateControllerAggregationMethod {
|
|
|
287
292
|
/** Whether this aggregation can be applied to a stateful condition's transaction attribute. */
|
|
288
293
|
function supportsAttribute(method: StateControllerAggregationMethod, attr: string): boolean;
|
|
289
294
|
}
|
|
290
|
-
export type StateControllerFixedInterval = 'day' | 'week' | 'month';
|
|
295
|
+
export type StateControllerFixedInterval = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
291
296
|
export type StateControllerWindowConfig = {
|
|
292
297
|
type: 'rolling';
|
|
293
|
-
seconds: number;
|
|
294
|
-
} | {
|
|
295
|
-
type: 'fixed';
|
|
296
298
|
interval: StateControllerFixedInterval;
|
|
299
|
+
/**
|
|
300
|
+
* Number of `interval` units in the rolling window, e.g.
|
|
301
|
+
* `{ interval: 'day', count: 3 }` is a rolling 3-day window.
|
|
302
|
+
* Must be a positive integer.
|
|
303
|
+
*/
|
|
304
|
+
count: number;
|
|
297
305
|
};
|
|
298
306
|
export interface StateControllerPartitionField {
|
|
299
307
|
transaction_type: TransactionType;
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Selects which fields may be disclosed to an external-check provider. */
|
|
2
2
|
export interface PayloadProjection {
|
|
3
|
+
/** RFC 6901 JSON Pointers into the transaction; omission excludes this section. */
|
|
3
4
|
transaction?: string[];
|
|
5
|
+
/** RFC 6901 JSON Pointers into the policy integration context; omission excludes this section. */
|
|
4
6
|
context?: string[];
|
|
5
7
|
}
|
|
6
|
-
/**
|
|
8
|
+
/** A policy-selectable external-check operation; an integration may expose several. */
|
|
7
9
|
export interface OperationCatalogEntry {
|
|
10
|
+
/** Operation name referenced by policy rules. */
|
|
8
11
|
operation: string;
|
|
12
|
+
/** Human-readable description for policy authors. */
|
|
9
13
|
description: string;
|
|
14
|
+
/** Fields permitted in requests for this operation. */
|
|
10
15
|
payload_projection: PayloadProjection;
|
|
11
16
|
}
|
|
12
|
-
/** One integration
|
|
17
|
+
/** One provider integration and the operations it exposes to policy authors. */
|
|
13
18
|
export interface IntegrationCatalogEntry {
|
|
19
|
+
/** Integration identifier referenced by policy rules. */
|
|
14
20
|
integration_id: string;
|
|
21
|
+
/** Operations supported by this integration. */
|
|
15
22
|
operations: OperationCatalogEntry[];
|
|
16
23
|
}
|
|
17
|
-
/**
|
|
24
|
+
/** Policy-facing integration catalog; provider endpoints are omitted. */
|
|
18
25
|
export interface IntegrationCatalogResponse {
|
|
26
|
+
/** Integrations available for policy external checks. */
|
|
19
27
|
integrations: IntegrationCatalogEntry[];
|
|
20
28
|
}
|
package/dist/setupMessage.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare class SignSetupOpts implements EoaAuthPayload {
|
|
|
60
60
|
key_id: string;
|
|
61
61
|
message: string;
|
|
62
62
|
signAlg: string;
|
|
63
|
-
policy_integration_context?: string;
|
|
63
|
+
policy_integration_context?: string | undefined;
|
|
64
64
|
});
|
|
65
65
|
get eoaRequestSchema(): {
|
|
66
66
|
Request: {
|