@multiagency/sdk 0.3.1
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/CHANGES.md +21 -0
- package/LICENSE +21 -0
- package/README.md +142 -0
- package/THIRD-PARTY-NOTICES +127 -0
- package/bin/release-server.d.mts +29 -0
- package/bin/release-server.mjs +143 -0
- package/dist/compensation-contract.d.ts +370 -0
- package/dist/compensation-contract.js +51 -0
- package/dist/contract/agent-connection.d.ts +86 -0
- package/dist/contract/agent-connection.js +36 -0
- package/dist/contract/app-access.d.ts +141 -0
- package/dist/contract/app-access.js +57 -0
- package/dist/contract/app-client.d.ts +140 -0
- package/dist/contract/app-client.js +61 -0
- package/dist/contract/app-consent.d.ts +68 -0
- package/dist/contract/app-consent.js +91 -0
- package/dist/contract/assets.d.ts +6 -0
- package/dist/contract/assets.js +6 -0
- package/dist/contract/client.d.ts +347 -0
- package/dist/contract/client.js +81 -0
- package/dist/contract/gateway.d.ts +74 -0
- package/dist/contract/gateway.js +47 -0
- package/dist/contract/index.d.ts +26 -0
- package/dist/contract/index.js +25 -0
- package/dist/contract/inputs.d.ts +230 -0
- package/dist/contract/inputs.js +99 -0
- package/dist/contract/intents-account.d.ts +5 -0
- package/dist/contract/intents-account.js +8 -0
- package/dist/contract/orpc-client.js +2037 -0
- package/dist/contract/owner-capabilities.d.ts +81 -0
- package/dist/contract/owner-capabilities.js +33 -0
- package/dist/contract/owner-client.d.ts +99 -0
- package/dist/contract/owner-client.js +146 -0
- package/dist/contract/owner-contract.d.ts +1156 -0
- package/dist/contract/owner-contract.js +37 -0
- package/dist/contract/owner-inputs.d.ts +166 -0
- package/dist/contract/owner-inputs.js +1 -0
- package/dist/contract/owner-outputs.d.ts +5749 -0
- package/dist/contract/owner-outputs.js +751 -0
- package/dist/contract/package-version.d.ts +5 -0
- package/dist/contract/package-version.js +2 -0
- package/dist/contract/payee-entry.d.ts +10 -0
- package/dist/contract/payee-entry.js +10 -0
- package/dist/contract/payee.d.ts +326 -0
- package/dist/contract/payee.js +32 -0
- package/dist/contract/permissions.d.ts +20 -0
- package/dist/contract/permissions.js +64 -0
- package/dist/contract/proposals.d.ts +178 -0
- package/dist/contract/proposals.js +27 -0
- package/dist/contract/run-log-schema.d.ts +888 -0
- package/dist/contract/run-log-schema.js +150 -0
- package/dist/contract/run-progress-schema.d.ts +104 -0
- package/dist/contract/run-progress-schema.js +20 -0
- package/dist/payee-contract.d.ts +9 -0
- package/dist/payee-contract.js +15 -0
- package/package.json +58 -0
- package/provenance.json +61 -0
- package/schemas/agentConnection.json +76 -0
- package/schemas/agentConnectionIssue.json +22 -0
- package/schemas/agentConnectionList.json +88 -0
- package/schemas/agentConnectionStarted.json +90 -0
- package/schemas/compensationSend.json +40 -0
- package/schemas/errorBody.json +16 -0
- package/schemas/fileResult.json +67 -0
- package/schemas/invoicesView.json +130 -0
- package/schemas/ownerCompensationView.json +556 -0
- package/schemas/payeeCompensationView.json +546 -0
- package/schemas/payeeWorkOrderRequest.json +31 -0
- package/schemas/publicWorkOrder.json +94 -0
- package/schemas/reportCommand.json +82 -0
- package/schemas/requestRecord.json +149 -0
- package/schemas/session.json +20 -0
- package/schemas/workOrderList.json +43 -0
- package/schemas/workOrderRequestResult.json +20 -0
- package/skills/app-server/SKILL.md +190 -0
- package/skills/getting-started/SKILL.md +90 -0
- package/skills/owner-workflows/SKILL.md +157 -0
- package/skills/payee-workflows/SKILL.md +200 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"connection": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uuid",
|
|
11
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
12
|
+
},
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 80
|
|
17
|
+
},
|
|
18
|
+
"role": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"payee"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"permissions": {
|
|
25
|
+
"minItems": 1,
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"compensation.read",
|
|
31
|
+
"compensation.submit"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"host": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1
|
|
38
|
+
},
|
|
39
|
+
"instance": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1
|
|
42
|
+
},
|
|
43
|
+
"account": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 2
|
|
46
|
+
},
|
|
47
|
+
"agentId": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1
|
|
50
|
+
},
|
|
51
|
+
"createdAt": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "date-time",
|
|
54
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
55
|
+
},
|
|
56
|
+
"expiresAt": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "date-time",
|
|
59
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
60
|
+
},
|
|
61
|
+
"revoked": {
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"id",
|
|
67
|
+
"label",
|
|
68
|
+
"role",
|
|
69
|
+
"permissions",
|
|
70
|
+
"host",
|
|
71
|
+
"instance",
|
|
72
|
+
"account",
|
|
73
|
+
"agentId",
|
|
74
|
+
"createdAt",
|
|
75
|
+
"expiresAt",
|
|
76
|
+
"revoked"
|
|
77
|
+
],
|
|
78
|
+
"additionalProperties": false
|
|
79
|
+
},
|
|
80
|
+
"token": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"pattern": "^tac_[0-9a-f-]{36}\\.[A-Za-z0-9_-]{43}$"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": [
|
|
86
|
+
"connection",
|
|
87
|
+
"token"
|
|
88
|
+
],
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"type": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "send"
|
|
8
|
+
},
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "uuid",
|
|
12
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
13
|
+
},
|
|
14
|
+
"expectedPolicy": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"revision": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"minimum": 0,
|
|
20
|
+
"maximum": 9007199254740991
|
|
21
|
+
},
|
|
22
|
+
"digest": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"revision",
|
|
29
|
+
"digest"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"type",
|
|
36
|
+
"id",
|
|
37
|
+
"expectedPolicy"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"error": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"code": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"error"
|
|
14
|
+
],
|
|
15
|
+
"additionalProperties": false
|
|
16
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"anyOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"needs_agreement",
|
|
14
|
+
"refused",
|
|
15
|
+
"busy",
|
|
16
|
+
"prepared",
|
|
17
|
+
"waiting",
|
|
18
|
+
"paying",
|
|
19
|
+
"paid",
|
|
20
|
+
"failed",
|
|
21
|
+
"unknown",
|
|
22
|
+
"needs_review"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"revisionConflict": {
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"id",
|
|
31
|
+
"status"
|
|
32
|
+
],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"id": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"status": {
|
|
42
|
+
"anyOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": [
|
|
46
|
+
"requested",
|
|
47
|
+
"proposed",
|
|
48
|
+
"agreed",
|
|
49
|
+
"filed",
|
|
50
|
+
"declined"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "string",
|
|
55
|
+
"const": "busy"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"id",
|
|
62
|
+
"status"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"invoices": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"amount": {
|
|
14
|
+
"type": [
|
|
15
|
+
"string",
|
|
16
|
+
"null"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"note": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"filedAt": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"status": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"needs_agreement",
|
|
29
|
+
"refused",
|
|
30
|
+
"busy",
|
|
31
|
+
"prepared",
|
|
32
|
+
"waiting",
|
|
33
|
+
"paying",
|
|
34
|
+
"paid",
|
|
35
|
+
"failed",
|
|
36
|
+
"unknown",
|
|
37
|
+
"needs_review"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"revisionConflict": {
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"id",
|
|
46
|
+
"amount",
|
|
47
|
+
"note",
|
|
48
|
+
"filedAt",
|
|
49
|
+
"status",
|
|
50
|
+
"revisionConflict"
|
|
51
|
+
],
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"agreements": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"id": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"origin": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": [
|
|
66
|
+
"owner",
|
|
67
|
+
"payee"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"amount": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"note": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"submission": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"terms": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"maxAmount": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"until": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"maxAmount",
|
|
91
|
+
"until"
|
|
92
|
+
],
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
},
|
|
95
|
+
"status": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"enum": [
|
|
98
|
+
"requested",
|
|
99
|
+
"proposed",
|
|
100
|
+
"agreed",
|
|
101
|
+
"filed",
|
|
102
|
+
"declined"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"at": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"id",
|
|
111
|
+
"origin",
|
|
112
|
+
"amount",
|
|
113
|
+
"note",
|
|
114
|
+
"status",
|
|
115
|
+
"at"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"agreed": {
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"invoices",
|
|
126
|
+
"agreements",
|
|
127
|
+
"agreed"
|
|
128
|
+
],
|
|
129
|
+
"additionalProperties": false
|
|
130
|
+
}
|