@registrystack/client 0.29.0 → 0.31.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 +34 -5
- package/breg/client.d.ts +479 -14
- package/breg/client.js +163 -5
- package/breg/index.d.ts +174 -0
- package/casework/client.d.ts +471 -0
- package/casework/client.js +161 -0
- package/casework/index.d.ts +70 -0
- package/casework/index.js +3 -0
- package/evidence/client.d.ts +16 -0
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/native.js +2 -2
- package/package.json +8 -6
- package/relay/client.d.ts +16 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* auto-generated by NAPI-RS */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export declare class CaseworkClient {
|
|
4
|
+
constructor(config: CaseworkClientConfig)
|
|
5
|
+
description(token: string, profile: string): Promise<CaseworkOutcome>
|
|
6
|
+
createHostedItem(token: string, profile: string, idempotencyKey: string, request: any): Promise<CaseworkOutcome>
|
|
7
|
+
getHostedItem(token: string, profile: string, itemId: string): Promise<CaseworkOutcome>
|
|
8
|
+
addHostedNote(token: string, profile: string, itemId: string, expectedRevision: number, idempotencyKey: string, note: any): Promise<CaseworkOutcome>
|
|
9
|
+
requesterHostedNotes(token: string, profile: string, itemId: string, query?: any | undefined | null): Promise<CaseworkOutcome>
|
|
10
|
+
cancelHostedItem(token: string, profile: string, itemId: string, expectedRevision: number, idempotencyKey: string, cancellation: any): Promise<CaseworkOutcome>
|
|
11
|
+
hostedTerminalItems(token: string, profile: string, query?: any | undefined | null): Promise<CaseworkOutcome>
|
|
12
|
+
listHostedWorkItems(token: string, profile: string, query: any): Promise<CaseworkOutcome>
|
|
13
|
+
getHostedWorkItem(token: string, profile: string, itemId: string): Promise<CaseworkOutcome>
|
|
14
|
+
hostedWorkItemHistory(token: string, profile: string, itemId: string, query?: any | undefined | null): Promise<CaseworkOutcome>
|
|
15
|
+
hostedAccountabilityRecord(token: string, profile: string, eventId: string): Promise<CaseworkOutcome>
|
|
16
|
+
claimHostedWorkItem(token: string, profile: string, action: any, idempotencyKey: string): Promise<CaseworkOutcome>
|
|
17
|
+
releaseHostedWorkItem(token: string, profile: string, action: any, idempotencyKey: string): Promise<CaseworkOutcome>
|
|
18
|
+
decideHostedWorkItem(token: string, profile: string, action: any, idempotencyKey: string, decision: any): Promise<CaseworkOutcome>
|
|
19
|
+
listWorkItems(token: string, profile: string, sourceProfile: string, query: any): Promise<CaseworkOutcome>
|
|
20
|
+
nextWorkItem(token: string, profile: string, sourceProfile: string, query?: any | undefined | null): Promise<CaseworkOutcome>
|
|
21
|
+
getWorkItem(token: string, profile: string, sourceProfile: string, itemId: string): Promise<CaseworkOutcome>
|
|
22
|
+
previewTaskTemplates(token: string, profile: string, sourceProfile: string, itemId: string): Promise<CaseworkOutcome>
|
|
23
|
+
listTaskGrants(token: string, profile: string, sourceProfile: string, itemId: string): Promise<CaseworkOutcome>
|
|
24
|
+
approveTaskGrant(token: string, profile: string, sourceProfile: string, itemId: string, expectedRevision: number, idempotencyKey: string, approval: any): Promise<CaseworkOutcome>
|
|
25
|
+
revokeTaskGrant(token: string, profile: string, sourceProfile: string, itemId: string, grantId: string): Promise<CaseworkOutcome>
|
|
26
|
+
taskAssertion(token: string, grantId: string): Promise<CaseworkOutcome>
|
|
27
|
+
taskGrantStatus(token: string, grantId: string): Promise<CaseworkOutcome>
|
|
28
|
+
claimWorkItem(token: string, profile: string, sourceProfile: string, action: any, idempotencyKey: string): Promise<CaseworkOutcome>
|
|
29
|
+
releaseWorkItem(token: string, profile: string, sourceProfile: string, action: any, idempotencyKey: string): Promise<CaseworkOutcome>
|
|
30
|
+
getDraft(token: string, profile: string, sourceProfile: string, itemId: string): Promise<CaseworkOutcome>
|
|
31
|
+
saveDraft(token: string, profile: string, sourceProfile: string, itemId: string, expectedRevision: number, idempotencyKey: string, draft: any): Promise<CaseworkOutcome>
|
|
32
|
+
deleteDraft(token: string, profile: string, sourceProfile: string, itemId: string, expectedRevision: number, idempotencyKey: string): Promise<CaseworkOutcome>
|
|
33
|
+
decideWorkItem(token: string, profile: string, sourceProfile: string, action: any, idempotencyKey: string, decision: any): Promise<CaseworkOutcome>
|
|
34
|
+
recoverDecision(token: string, profile: string, sourceProfile: string, itemId: string, attemptId: string, recovery: any): Promise<CaseworkOutcome>
|
|
35
|
+
recoverDecisionByKey(token: string, profile: string, sourceProfile: string, itemId: string, idempotencyKey: string, recovery: any): Promise<CaseworkOutcome>
|
|
36
|
+
workItemHistory(token: string, profile: string, sourceProfile: string, itemId: string, query?: any | undefined | null): Promise<CaseworkOutcome>
|
|
37
|
+
holdings(token: string, profile: string, sourceProfile: string, query?: any | undefined | null): Promise<CaseworkOutcome>
|
|
38
|
+
directory(token: string, profile: string): Promise<CaseworkOutcome>
|
|
39
|
+
directoryTargets(token: string, profile: string, query: any): Promise<CaseworkOutcome>
|
|
40
|
+
bootstrapDirectory(token: string, profile: string, expectedRevision: number, idempotencyKey: string, bootstrap: any): Promise<CaseworkOutcome>
|
|
41
|
+
absences(token: string, profile: string, query?: any | undefined | null): Promise<CaseworkOutcome>
|
|
42
|
+
createAbsence(token: string, profile: string, expectedRevision: number, idempotencyKey: string, request: any): Promise<CaseworkOutcome>
|
|
43
|
+
updateAbsence(token: string, profile: string, absenceId: string, expectedRevision: number, idempotencyKey: string, request: any): Promise<CaseworkOutcome>
|
|
44
|
+
deleteAbsence(token: string, profile: string, absenceId: string, expectedRevision: number, idempotencyKey: string): Promise<CaseworkOutcome>
|
|
45
|
+
assignWorkItem(token: string, profile: string, itemId: string, expectedRevision: number, idempotencyKey: string, request: any, sourceProfile?: string | undefined | null): Promise<CaseworkOutcome>
|
|
46
|
+
delegateWorkItem(token: string, profile: string, itemId: string, expectedRevision: number, idempotencyKey: string, request: any, sourceProfile?: string | undefined | null): Promise<CaseworkOutcome>
|
|
47
|
+
previewCaseloadMove(token: string, profile: string, movement: any, query?: any | undefined | null, sourceProfile?: string | undefined | null): Promise<CaseworkOutcome>
|
|
48
|
+
applyCaseloadMove(token: string, profile: string, idempotencyKey: string, request: any, sourceProfile?: string | undefined | null): Promise<CaseworkOutcome>
|
|
49
|
+
updateDirectoryTeam(token: string, profile: string, teamId: string, expectedRevision: number, idempotencyKey: string, request: any): Promise<CaseworkOutcome>
|
|
50
|
+
workItemClocks(token: string, profile: string, sourceProfile: string, itemId: string): Promise<CaseworkOutcome>
|
|
51
|
+
holidayRevision(token: string, profile: string, holidaySet: string, revision: number): Promise<CaseworkOutcome>
|
|
52
|
+
createHolidayRevision(token: string, profile: string, idempotencyKey: string, request: any): Promise<CaseworkOutcome>
|
|
53
|
+
previewClockRecompute(token: string, profile: string, request: any): Promise<CaseworkOutcome>
|
|
54
|
+
applyClockRecompute(token: string, profile: string, idempotencyKey: string, request: any): Promise<CaseworkOutcome>
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface CaseworkClientConfig {
|
|
58
|
+
baseUrl: string
|
|
59
|
+
requestTimeoutMilliseconds?: number
|
|
60
|
+
connectTimeoutMilliseconds?: number
|
|
61
|
+
maxResponseBytes?: number
|
|
62
|
+
userAgent?: string
|
|
63
|
+
trustedRootCertificates?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface CaseworkOutcome {
|
|
67
|
+
kind: string
|
|
68
|
+
value: any
|
|
69
|
+
traceId: string
|
|
70
|
+
}
|
package/evidence/client.d.ts
CHANGED
|
@@ -82,7 +82,23 @@ export interface PrivateKeyJwtConfig {
|
|
|
82
82
|
tokenEndpoint: string
|
|
83
83
|
clientId: string
|
|
84
84
|
clientKey: Readonly<Record<string, unknown>>
|
|
85
|
+
/**
|
|
86
|
+
* The audience of the client assertion (who checks the client's
|
|
87
|
+
* authentication). Defaults to the token endpoint URL. This is not the
|
|
88
|
+
* `resource` of the token request.
|
|
89
|
+
*/
|
|
85
90
|
audience?: string
|
|
91
|
+
/**
|
|
92
|
+
* The RFC 8707 resource indicator the token is requested for: the resource
|
|
93
|
+
* server's registered identifier, not a URL to fetch.
|
|
94
|
+
*/
|
|
95
|
+
resource?: string
|
|
96
|
+
/**
|
|
97
|
+
* The scopes requested for the token, sent as one space-delimited `scope`
|
|
98
|
+
* parameter. A requested scope may narrow the client's registered
|
|
99
|
+
* permission set; it can never widen it.
|
|
100
|
+
*/
|
|
101
|
+
scopes?: ReadonlyArray<string>
|
|
86
102
|
assertionLifetimeSeconds?: number
|
|
87
103
|
refreshMarginSeconds?: number
|
|
88
104
|
requestTimeoutMs?: number
|
package/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import * as discovery from './discovery/client'
|
|
|
2
2
|
import * as evidence from './evidence/client'
|
|
3
3
|
import * as relay from './relay/client'
|
|
4
4
|
import * as breg from './breg/client'
|
|
5
|
+
import * as casework from './casework/client'
|
|
5
6
|
|
|
6
|
-
export { discovery, evidence, relay, breg }
|
|
7
|
+
export { discovery, evidence, relay, breg, casework }
|
package/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// One assignment per namespace, never a `module.exports` object literal: Node
|
|
4
4
|
// scans this file for these statements to synthesise the named exports an ESM
|
|
5
|
-
// consumer imports, and `require()` sees the same
|
|
5
|
+
// consumer imports, and `require()` sees the same five properties either way.
|
|
6
6
|
exports.discovery = require('./discovery/client');
|
|
7
7
|
exports.evidence = require('./evidence/client');
|
|
8
8
|
exports.relay = require('./relay/client');
|
|
9
9
|
exports.breg = require('./breg/client');
|
|
10
|
+
exports.casework = require('./casework/client');
|
package/native.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const PACKAGE_VERSION = '0.
|
|
4
|
-
const PRODUCTS = new Set(['discovery', 'evidence', 'relay', 'breg']);
|
|
3
|
+
const PACKAGE_VERSION = '0.31.0';
|
|
4
|
+
const PRODUCTS = new Set(['discovery', 'evidence', 'relay', 'breg', 'casework']);
|
|
5
5
|
|
|
6
6
|
function target() {
|
|
7
7
|
if (process.platform === 'darwin' && process.arch === 'arm64') return 'darwin-arm64';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@registrystack/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Unified Node.js client for Registry Stack products.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://docs.registrystack.org/reference/client-api/",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"discovery",
|
|
14
14
|
"evidence",
|
|
15
15
|
"relay",
|
|
16
|
-
"breg"
|
|
16
|
+
"breg",
|
|
17
|
+
"casework"
|
|
17
18
|
],
|
|
18
19
|
"publishConfig": {
|
|
19
20
|
"access": "public",
|
|
@@ -39,7 +40,8 @@
|
|
|
39
40
|
"discovery",
|
|
40
41
|
"evidence",
|
|
41
42
|
"relay",
|
|
42
|
-
"breg"
|
|
43
|
+
"breg",
|
|
44
|
+
"casework"
|
|
43
45
|
],
|
|
44
46
|
"engines": {
|
|
45
47
|
"node": ">=22.12.0"
|
|
@@ -55,8 +57,8 @@
|
|
|
55
57
|
"typescript": "6.0.3"
|
|
56
58
|
},
|
|
57
59
|
"optionalDependencies": {
|
|
58
|
-
"@registrystack/client-darwin-arm64": "0.
|
|
59
|
-
"@registrystack/client-linux-arm64-gnu": "0.
|
|
60
|
-
"@registrystack/client-linux-x64-gnu": "0.
|
|
60
|
+
"@registrystack/client-darwin-arm64": "0.31.0",
|
|
61
|
+
"@registrystack/client-linux-arm64-gnu": "0.31.0",
|
|
62
|
+
"@registrystack/client-linux-x64-gnu": "0.31.0"
|
|
61
63
|
}
|
|
62
64
|
}
|
package/relay/client.d.ts
CHANGED
|
@@ -14,7 +14,23 @@ export interface PrivateKeyJwtConfig {
|
|
|
14
14
|
tokenEndpoint: string
|
|
15
15
|
clientId: string
|
|
16
16
|
clientKey: PrivateJwk
|
|
17
|
+
/**
|
|
18
|
+
* The audience of the client assertion (who checks the client's
|
|
19
|
+
* authentication). Defaults to the token endpoint URL. This is not the
|
|
20
|
+
* `resource` of the token request.
|
|
21
|
+
*/
|
|
17
22
|
audience?: string | null
|
|
23
|
+
/**
|
|
24
|
+
* The RFC 8707 resource indicator the token is requested for: the resource
|
|
25
|
+
* server's registered identifier, not a URL to fetch.
|
|
26
|
+
*/
|
|
27
|
+
resource?: string | null
|
|
28
|
+
/**
|
|
29
|
+
* The scopes requested for the token, sent as one space-delimited `scope`
|
|
30
|
+
* parameter. A requested scope may narrow the client's registered
|
|
31
|
+
* permission set; it can never widen it.
|
|
32
|
+
*/
|
|
33
|
+
scopes?: ReadonlyArray<string> | null
|
|
18
34
|
assertionLifetimeSeconds?: SafeInteger | null
|
|
19
35
|
refreshMarginSeconds?: SafeInteger | null
|
|
20
36
|
requestTimeoutMilliseconds?: SafeInteger | null
|