@getstackrun/sdk 0.19.0 → 1.0.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.
Files changed (116) hide show
  1. package/README.md +7 -1
  2. package/dist/agent-auth.d.ts.map +1 -1
  3. package/dist/agent-auth.js +4 -1
  4. package/dist/agent-auth.js.map +1 -1
  5. package/dist/authority-request.d.ts +7 -0
  6. package/dist/authority-request.d.ts.map +1 -0
  7. package/dist/authority-request.js +15 -0
  8. package/dist/authority-request.js.map +1 -0
  9. package/dist/browser-bootstrap-scope.test.d.ts +2 -0
  10. package/dist/browser-bootstrap-scope.test.d.ts.map +1 -0
  11. package/dist/browser-bootstrap-scope.test.js +47 -0
  12. package/dist/browser-bootstrap-scope.test.js.map +1 -0
  13. package/dist/browser-bootstrap.d.ts +4 -1
  14. package/dist/browser-bootstrap.d.ts.map +1 -1
  15. package/dist/browser-bootstrap.js +28 -4
  16. package/dist/browser-bootstrap.js.map +1 -1
  17. package/dist/client.d.ts +11 -1
  18. package/dist/client.d.ts.map +1 -1
  19. package/dist/client.js +24 -1
  20. package/dist/client.js.map +1 -1
  21. package/dist/index.d.ts +11 -4
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +12 -4
  24. package/dist/index.js.map +1 -1
  25. package/dist/services/authority-runtime.test.d.ts +2 -0
  26. package/dist/services/authority-runtime.test.d.ts.map +1 -0
  27. package/dist/services/authority-runtime.test.js +39 -0
  28. package/dist/services/authority-runtime.test.js.map +1 -0
  29. package/dist/services/authority.d.ts +373 -0
  30. package/dist/services/authority.d.ts.map +1 -0
  31. package/dist/services/authority.js +58 -0
  32. package/dist/services/authority.js.map +1 -0
  33. package/dist/services/authority.test.d.ts +2 -0
  34. package/dist/services/authority.test.d.ts.map +1 -0
  35. package/dist/services/authority.test.js +54 -0
  36. package/dist/services/authority.test.js.map +1 -0
  37. package/dist/services/delivery-methods.d.ts +21 -5
  38. package/dist/services/delivery-methods.d.ts.map +1 -1
  39. package/dist/services/delivery-methods.js +18 -10
  40. package/dist/services/delivery-methods.js.map +1 -1
  41. package/dist/services/delivery-methods.test.d.ts +2 -0
  42. package/dist/services/delivery-methods.test.d.ts.map +1 -0
  43. package/dist/services/delivery-methods.test.js +24 -0
  44. package/dist/services/delivery-methods.test.js.map +1 -0
  45. package/dist/services/dropoffs.d.ts +7 -4
  46. package/dist/services/dropoffs.d.ts.map +1 -1
  47. package/dist/services/dropoffs.js +7 -2
  48. package/dist/services/dropoffs.js.map +1 -1
  49. package/dist/services/dropoffs.test.d.ts +2 -0
  50. package/dist/services/dropoffs.test.d.ts.map +1 -0
  51. package/dist/services/dropoffs.test.js +31 -0
  52. package/dist/services/dropoffs.test.js.map +1 -0
  53. package/dist/services/evidence-packs.d.ts +7 -0
  54. package/dist/services/evidence-packs.d.ts.map +1 -1
  55. package/dist/services/evidence-packs.js +6 -1
  56. package/dist/services/evidence-packs.js.map +1 -1
  57. package/dist/services/evidence-packs.test.d.ts +2 -0
  58. package/dist/services/evidence-packs.test.d.ts.map +1 -0
  59. package/dist/services/evidence-packs.test.js +13 -0
  60. package/dist/services/evidence-packs.test.js.map +1 -0
  61. package/dist/services/identity.d.ts +4 -11
  62. package/dist/services/identity.d.ts.map +1 -1
  63. package/dist/services/identity.js +6 -3
  64. package/dist/services/identity.js.map +1 -1
  65. package/dist/services/identity.test.d.ts +2 -0
  66. package/dist/services/identity.test.d.ts.map +1 -0
  67. package/dist/services/identity.test.js +29 -0
  68. package/dist/services/identity.test.js.map +1 -0
  69. package/dist/services/llm.d.ts +20 -0
  70. package/dist/services/llm.d.ts.map +1 -1
  71. package/dist/services/llm.js +2 -0
  72. package/dist/services/llm.js.map +1 -1
  73. package/dist/services/llm.test.js +10 -0
  74. package/dist/services/llm.test.js.map +1 -1
  75. package/dist/services/missions.d.ts +60 -29
  76. package/dist/services/missions.d.ts.map +1 -1
  77. package/dist/services/missions.js +25 -30
  78. package/dist/services/missions.js.map +1 -1
  79. package/dist/services/missions.test.d.ts +2 -0
  80. package/dist/services/missions.test.d.ts.map +1 -0
  81. package/dist/services/missions.test.js +57 -0
  82. package/dist/services/missions.test.js.map +1 -0
  83. package/dist/services/partner-tenants.d.ts +1 -1
  84. package/dist/services/partner-tenants.d.ts.map +1 -1
  85. package/dist/services/passport-header-verify.d.ts +7 -11
  86. package/dist/services/passport-header-verify.d.ts.map +1 -1
  87. package/dist/services/passport-header-verify.js +9 -32
  88. package/dist/services/passport-header-verify.js.map +1 -1
  89. package/dist/services/passport-header-verify.test.js +27 -10
  90. package/dist/services/passport-header-verify.test.js.map +1 -1
  91. package/dist/services/pii-config.d.ts +62 -0
  92. package/dist/services/pii-config.d.ts.map +1 -0
  93. package/dist/services/pii-config.js +66 -0
  94. package/dist/services/pii-config.js.map +1 -0
  95. package/dist/services/proxy.d.ts.map +1 -1
  96. package/dist/services/proxy.js +2 -1
  97. package/dist/services/proxy.js.map +1 -1
  98. package/dist/services/skills.d.ts +12 -3
  99. package/dist/services/skills.d.ts.map +1 -1
  100. package/dist/services/skills.js +7 -1
  101. package/dist/services/skills.js.map +1 -1
  102. package/dist/services/team.d.ts +0 -5
  103. package/dist/services/team.d.ts.map +1 -1
  104. package/dist/services/team.js +0 -3
  105. package/dist/services/team.js.map +1 -1
  106. package/dist/services/usage.d.ts +8 -7
  107. package/dist/services/usage.d.ts.map +1 -1
  108. package/dist/services/usage.js +8 -7
  109. package/dist/services/usage.js.map +1 -1
  110. package/dist/types.d.ts +229 -20
  111. package/dist/types.d.ts.map +1 -1
  112. package/dist/verify-offline.d.ts +3 -0
  113. package/dist/verify-offline.d.ts.map +1 -1
  114. package/dist/verify-offline.js +54 -2
  115. package/dist/verify-offline.js.map +1 -1
  116. package/package.json +1 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,aAAa,CAAC;AAC7D,OAAO,EAA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AY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAE5B,wEAAwE;AACxE,uEAAuE;AACvE,uCAAuC;AACvC,OAAO,EACL,qBAAqB,GAGtB,MAAM,qBAAqB,CAAC;AAE7B,uEAAuE;AACvE,sEAAsE;AACtE,wEAAwE;AACxE,qEAAqE;AACrE,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GAExB,MAAM,sCAAsC,CAAC;AAK9C,kDAAkD;AAClD,OAAO,EACL,qBAAqB,GAMtB,MAAM,+BAA+B,CAAC;AAEvC,qEAAqE;AACrE,uEAAuE;AACvE,oEAAoE;AACpE,mEAAmE;AACnE,qEAAqE;AACrE,gDAAgD;AAChD,OAAO,EACL,iBAAiB,GAGlB,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=authority-runtime.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority-runtime.test.d.ts","sourceRoot":"","sources":["../../src/services/authority-runtime.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import { describe, expect, it, vi } from 'vitest';
2
+ import { ProxyService } from './proxy.js';
3
+ import { SkillService } from './skills.js';
4
+ const AUTHORITY_REQUEST_ID = 'authority_request_abc123';
5
+ function clientStub() {
6
+ return { post: vi.fn(async () => ({})) };
7
+ }
8
+ describe('runtime authority request threading', () => {
9
+ it('sends a proxy authority request id only as a header', async () => {
10
+ const client = clientStub();
11
+ const service = new ProxyService(client);
12
+ const input = { provider: 'slack', method: 'POST', url: 'https://slack.com/api/chat.postMessage' };
13
+ await service.request(input, { passportToken: 'passport', authorityRequestId: AUTHORITY_REQUEST_ID });
14
+ expect(client.post).toHaveBeenCalledWith('/v1/proxy', input, {
15
+ headers: {
16
+ 'X-Passport-Token': 'passport',
17
+ 'X-STACK-Authority-Request-Id': AUTHORITY_REQUEST_ID,
18
+ },
19
+ });
20
+ expect(input).not.toHaveProperty('authority_request_id');
21
+ });
22
+ it('sends a skill authority request id only as a header', async () => {
23
+ const client = clientStub();
24
+ const service = new SkillService(client);
25
+ const input = { agent_id: 'agt_x', input: { value: 1 }, passport_id: 'pas_x' };
26
+ await service.invoke('sk_x', input, { authorityRequestId: AUTHORITY_REQUEST_ID });
27
+ expect(client.post).toHaveBeenCalledWith('/v1/skills/sk_x/invoke', input, {
28
+ headers: { 'X-STACK-Authority-Request-Id': AUTHORITY_REQUEST_ID },
29
+ });
30
+ expect(input).not.toHaveProperty('authority_request_id');
31
+ });
32
+ it('fails closed on malformed authority request ids', async () => {
33
+ const client = clientStub();
34
+ const service = new ProxyService(client);
35
+ await expect(service.request({ provider: 'slack', method: 'GET', url: 'https://slack.com/api/auth.test' }, { authorityRequestId: 'short' })).rejects.toThrow(/authorityRequestId/);
36
+ expect(client.post).not.toHaveBeenCalled();
37
+ });
38
+ });
39
+ //# sourceMappingURL=authority-runtime.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority-runtime.test.js","sourceRoot":"","sources":["../../src/services/authority-runtime.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,oBAAoB,GAAG,0BAA0B,CAAC;AAExD,SAAS,UAAU;IACjB,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAA2B,CAAC;AACpE,CAAC;AAED,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;IACnD,EAAE,CAAC,qDAAqD,EAAE,KAAK,IAAI,EAAE;QACnE,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;QAC5B,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QACzC,MAAM,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AAM,MAAM,GAAG,UAAU,EAAE,CAAC;QAC5B,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QACzC,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,CAC1B,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,iCAAiC,EAAE,EAC5E,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAChC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,373 @@
1
+ import type { HttpClient } from '../client.js';
2
+ export type JsonValue = string | number | boolean | null | JsonValue[] | {
3
+ [key: string]: JsonValue;
4
+ };
5
+ export type JsonObject = Record<string, JsonValue>;
6
+ export type AuthorityPrincipalKind = 'person' | 'organisation';
7
+ export type AuthorityProofKind = 'identity' | 'capacity' | 'mandate' | 'consent' | 'signature' | 'domain' | 'workload';
8
+ export type AuthorityProofRole = 'principal_identity' | 'authoriser_identity' | 'authoriser_capacity' | 'mandate' | 'consent' | 'domain';
9
+ export type AuthorityDisclosureMode = 'predicate' | 'pairwise' | 'exact_private' | 'issuer_evidence' | 'status_only';
10
+ export type AuthorityConstraintOp = 'eq' | 'not_eq' | 'in' | 'not_in' | 'lt' | 'lte' | 'gt' | 'gte' | 'exists' | 'not_exists';
11
+ export interface AuthorityConstraint {
12
+ path: string;
13
+ op: AuthorityConstraintOp;
14
+ value?: string | number | boolean | Array<string | number | boolean>;
15
+ /** Opaque reference to a value retained in encrypted proof facts. */
16
+ value_ref?: string;
17
+ }
18
+ export interface AuthorityScope {
19
+ actions: Array<{
20
+ action_uri: string;
21
+ resource_refs?: string[];
22
+ constraints?: AuthorityConstraint[];
23
+ }>;
24
+ limits?: JsonObject;
25
+ }
26
+ export interface AuthorityDisclosurePolicy {
27
+ rules?: Array<{
28
+ fact_id: string;
29
+ mode: AuthorityDisclosureMode;
30
+ profile_version_id?: string;
31
+ required?: boolean;
32
+ }>;
33
+ principal_confirmation_required?: boolean;
34
+ max_retention_seconds?: number | null;
35
+ live_status_required?: boolean;
36
+ }
37
+ export interface AuthorityMutationOptions {
38
+ /** Stable key reused for an exact retry. Required by every authority mutation. */
39
+ idempotencyKey: string;
40
+ /** Governance step-up approval for protected operator mutations. */
41
+ governanceApprovalId?: string;
42
+ }
43
+ export interface CreateEnterpriseOidcAuthorityRequestInput {
44
+ organisation_name: string;
45
+ role_name: string;
46
+ role_claim_path: string;
47
+ role_claim_value: string;
48
+ agent_id: string;
49
+ mission_id?: string;
50
+ service_connection_id: string;
51
+ provider: string;
52
+ purpose: string;
53
+ http_method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
54
+ resource_path: string;
55
+ constraints?: AuthorityConstraint[];
56
+ expires_at: string | Date;
57
+ }
58
+ export interface EnterpriseOidcAuthorityRequest {
59
+ request_id: string;
60
+ status: 'pending' | 'rejected' | 'expired' | 'completed';
61
+ approval_url: string;
62
+ created_at: string;
63
+ expires_at: string;
64
+ completed_at?: string;
65
+ rejected_at?: string;
66
+ result?: {
67
+ binding_id: string;
68
+ binding_version: number;
69
+ binding_status: string;
70
+ organisation_principal_id: string;
71
+ approver_principal_id: string;
72
+ receiver_id: string;
73
+ identity_proof_id: string;
74
+ capacity_proof_id: string;
75
+ approval_request_id: string;
76
+ expires_at: string;
77
+ };
78
+ }
79
+ export interface CreateAuthorityPrincipalInput {
80
+ kind: AuthorityPrincipalKind;
81
+ label?: string;
82
+ }
83
+ export interface ImportAuthorityProofInput {
84
+ subject_principal_id: string;
85
+ represented_principal_id?: string;
86
+ profile_version_id: string;
87
+ proof_kind: AuthorityProofKind;
88
+ issuer_identifier: string;
89
+ schema_uri: string;
90
+ schema_version: string;
91
+ native_format: string;
92
+ /** Sensitive write-only provider evidence. It is never returned by safe reads. */
93
+ native_evidence: string;
94
+ }
95
+ export interface CreateAuthorityProofCollectionSessionInput {
96
+ subject_principal_id: string;
97
+ represented_principal_id?: string;
98
+ profile_version_id: string;
99
+ issuer_identifier: string;
100
+ native_format: string;
101
+ }
102
+ export interface AuthorityBindingProofInput {
103
+ proof_id: string;
104
+ proof_version: number;
105
+ role: AuthorityProofRole;
106
+ authoriser_principal_id?: string;
107
+ group_key: string;
108
+ weight?: number;
109
+ required?: boolean;
110
+ ordinal?: number;
111
+ }
112
+ export interface CreateAuthorityBindingInput {
113
+ principal_id: string;
114
+ agent_id: string;
115
+ agent_key_thumbprint?: string;
116
+ receiver_id: string;
117
+ receiver_profile_version_id: string;
118
+ domain_profile_version_id?: string;
119
+ mission_ids?: string[];
120
+ purpose_code: string;
121
+ purpose_statement?: string;
122
+ scope: AuthorityScope;
123
+ approval_policy: JsonObject;
124
+ disclosure_policy: AuthorityDisclosurePolicy;
125
+ delegation_policy: {
126
+ allow_further_delegation: boolean;
127
+ max_delegation_depth: number;
128
+ };
129
+ valid_from: string | Date;
130
+ expires_at: string | Date;
131
+ proofs: AuthorityBindingProofInput[];
132
+ }
133
+ export interface DelegateAuthorityBindingInput {
134
+ child_agent_id: string;
135
+ child_agent_key_thumbprint?: string;
136
+ mission_ids?: string[];
137
+ scope: AuthorityScope;
138
+ disclosure_policy: AuthorityDisclosurePolicy;
139
+ allow_further_delegation?: boolean;
140
+ max_delegation_depth: number;
141
+ valid_from: string | Date;
142
+ expires_at: string | Date;
143
+ }
144
+ export type CreateAuthorityApprovalRequestsInput = {
145
+ phase: 'activation';
146
+ } | {
147
+ phase: 'action' | 'presentation';
148
+ authority_use_id: string;
149
+ };
150
+ export type CreateAuthorityProfileVersionInput = {
151
+ profile_kind: 'proof' | 'domain';
152
+ profile_key: string;
153
+ version: number;
154
+ schema_uri: string;
155
+ schema_version: string;
156
+ adapter_key: string;
157
+ adapter_version: number;
158
+ config_json: JsonObject;
159
+ } | {
160
+ profile_kind: 'receiver';
161
+ profile_key: string;
162
+ version: number;
163
+ receiver_id: string;
164
+ schema_uri: string;
165
+ schema_version: string;
166
+ adapter_key: string;
167
+ adapter_version: number;
168
+ config_json: JsonObject;
169
+ };
170
+ export interface CreateAuthorityReceiverInput {
171
+ mode: 'native' | 'proxy_bridge';
172
+ canonical_identifier: string;
173
+ display_name: string;
174
+ proxy_service_connection_id?: string;
175
+ }
176
+ export interface AddAuthorityReceiverKeyInput {
177
+ key_id: string;
178
+ use: 'request_signing' | 'response_encryption' | 'receipt_signing' | 'transport_mtls';
179
+ algorithm: 'EdDSA' | 'ES256' | 'ECDH-ES+A256KW';
180
+ /** Public asymmetric JWK only; private and symmetric members are rejected. */
181
+ public_jwk: JsonObject;
182
+ valid_from: string | Date;
183
+ valid_until?: string | Date;
184
+ }
185
+ /** All SDK read models are the API's PII-free safe projections. */
186
+ export interface AuthorityPrincipal {
187
+ id: string;
188
+ kind: AuthorityPrincipalKind;
189
+ status: string;
190
+ created_at: string;
191
+ revoked_at?: string | null;
192
+ erased_at?: string | null;
193
+ }
194
+ export interface AuthorityProof {
195
+ id: string;
196
+ version: number;
197
+ subject_principal_id: string;
198
+ proof_kind: AuthorityProofKind;
199
+ status: string;
200
+ claim_id?: string | null;
201
+ created_at: string;
202
+ [key: string]: JsonValue | undefined;
203
+ }
204
+ export interface AuthorityBinding {
205
+ id: string;
206
+ version: number;
207
+ principal_id: string;
208
+ agent_id: string;
209
+ receiver_id: string;
210
+ status: string;
211
+ claim_id?: string | null;
212
+ created_at: string;
213
+ [key: string]: JsonValue | undefined;
214
+ }
215
+ export interface AuthorityReceiver {
216
+ id: string;
217
+ mode: 'native' | 'proxy_bridge';
218
+ status: string;
219
+ canonical_identifier: string;
220
+ display_name: string;
221
+ current_profile_version_id?: string | null;
222
+ created_at: string;
223
+ [key: string]: JsonValue | undefined;
224
+ }
225
+ export interface AuthorityApprovalRequest {
226
+ id: string;
227
+ binding_id: string;
228
+ binding_version: number;
229
+ phase: string;
230
+ status: string;
231
+ request_hash: string;
232
+ [key: string]: JsonValue | undefined;
233
+ }
234
+ export interface AuthorityUse {
235
+ id: string;
236
+ binding_id: string;
237
+ binding_version: number;
238
+ agent_id: string;
239
+ receiver_id: string;
240
+ status: string;
241
+ created_at: string;
242
+ [key: string]: JsonValue | undefined;
243
+ }
244
+ export interface AuthorityPresentation {
245
+ id: string;
246
+ authority_use_id: string;
247
+ status: string;
248
+ disclosure_manifest: JsonValue;
249
+ proof_refs: JsonValue;
250
+ expires_at: string;
251
+ [key: string]: JsonValue | undefined;
252
+ }
253
+ export interface AuthorityTombstone {
254
+ target_kind: string;
255
+ target_id: string;
256
+ target_version?: number | null;
257
+ tombstone_digest: string;
258
+ tombstone_claim_id: string;
259
+ [key: string]: JsonValue | undefined;
260
+ }
261
+ export type AuthoritySafeRecord = Record<string, JsonValue>;
262
+ export declare class AuthorityService {
263
+ private readonly client;
264
+ constructor(client: HttpClient);
265
+ createEnterpriseOidcRequest(input: CreateEnterpriseOidcAuthorityRequestInput, options: AuthorityMutationOptions): Promise<EnterpriseOidcAuthorityRequest>;
266
+ getEnterpriseOidcRequest(id: string): Promise<EnterpriseOidcAuthorityRequest>;
267
+ createPrincipal(input: CreateAuthorityPrincipalInput, options: AuthorityMutationOptions): Promise<{
268
+ principal: AuthorityPrincipal;
269
+ }>;
270
+ listPrincipals(): Promise<{
271
+ principals: AuthorityPrincipal[];
272
+ }>;
273
+ getPrincipal(id: string): Promise<{
274
+ principal: AuthorityPrincipal;
275
+ }>;
276
+ archivePrincipal(id: string, reasonCode: string, options: AuthorityMutationOptions): Promise<{
277
+ principal: AuthorityPrincipal;
278
+ }>;
279
+ erasePrincipal(id: string, options: AuthorityMutationOptions): Promise<{
280
+ tombstone: AuthorityTombstone;
281
+ }>;
282
+ importProof(input: ImportAuthorityProofInput, options: AuthorityMutationOptions): Promise<{
283
+ proof: AuthorityProof;
284
+ }>;
285
+ createProofCollectionSession(input: CreateAuthorityProofCollectionSessionInput, options: AuthorityMutationOptions): Promise<{
286
+ session: AuthoritySafeRecord;
287
+ }>;
288
+ getProofCollectionSession(id: string): Promise<{
289
+ session: AuthoritySafeRecord;
290
+ }>;
291
+ listProofs(): Promise<{
292
+ proofs: AuthorityProof[];
293
+ }>;
294
+ getProof(id: string, version?: number): Promise<{
295
+ proof: AuthorityProof;
296
+ }>;
297
+ revokeProof(id: string, reasonCode: string, options: AuthorityMutationOptions): Promise<{
298
+ proof: AuthorityProof;
299
+ }>;
300
+ eraseProof(id: string, options: AuthorityMutationOptions): Promise<{
301
+ proof: AuthorityProof;
302
+ }>;
303
+ createBinding(input: CreateAuthorityBindingInput, options: AuthorityMutationOptions): Promise<{
304
+ binding: AuthorityBinding;
305
+ }>;
306
+ listBindings(): Promise<{
307
+ bindings: AuthorityBinding[];
308
+ }>;
309
+ getBinding(id: string, version?: number): Promise<{
310
+ binding: AuthorityBinding;
311
+ }>;
312
+ createApprovalRequests(id: string, input: CreateAuthorityApprovalRequestsInput, options: AuthorityMutationOptions): Promise<{
313
+ approval_requests: AuthorityApprovalRequest[];
314
+ }>;
315
+ listApprovalRequests(id: string): Promise<{
316
+ approval_requests: AuthorityApprovalRequest[];
317
+ }>;
318
+ activateBinding(id: string, options: AuthorityMutationOptions, version?: number): Promise<{
319
+ binding: AuthorityBinding;
320
+ }>;
321
+ delegateBinding(id: string, input: DelegateAuthorityBindingInput, options: AuthorityMutationOptions): Promise<{
322
+ binding: AuthorityBinding;
323
+ }>;
324
+ revokeBinding(id: string, reasonCode: string, options: AuthorityMutationOptions): Promise<{
325
+ binding: AuthorityBinding;
326
+ }>;
327
+ eraseBinding(id: string, options: AuthorityMutationOptions): Promise<{
328
+ tombstone: AuthorityTombstone;
329
+ }>;
330
+ createReceiver(input: CreateAuthorityReceiverInput, options: AuthorityMutationOptions): Promise<{
331
+ receiver: AuthorityReceiver;
332
+ }>;
333
+ listReceivers(): Promise<{
334
+ receivers: AuthorityReceiver[];
335
+ }>;
336
+ getReceiver(id: string): Promise<{
337
+ receiver: AuthorityReceiver;
338
+ }>;
339
+ createReceiverVerificationChallenge(id: string, options: AuthorityMutationOptions): Promise<{
340
+ challenge: AuthoritySafeRecord;
341
+ }>;
342
+ verifyReceiver(id: string, options: AuthorityMutationOptions): Promise<{
343
+ receiver: AuthorityReceiver;
344
+ }>;
345
+ addReceiverKey(id: string, input: AddAuthorityReceiverKeyInput, options: AuthorityMutationOptions): Promise<{
346
+ key: AuthoritySafeRecord;
347
+ }>;
348
+ revokeReceiverKey(id: string, keyId: string, reasonCode: string, options: AuthorityMutationOptions): Promise<{
349
+ key: AuthoritySafeRecord;
350
+ }>;
351
+ createProfileVersion(input: CreateAuthorityProfileVersionInput, options: AuthorityMutationOptions): Promise<{
352
+ profile: AuthoritySafeRecord;
353
+ }>;
354
+ activateProfileVersion(id: string, profileKind: 'proof' | 'domain' | 'receiver', options: AuthorityMutationOptions): Promise<{
355
+ profile: AuthoritySafeRecord;
356
+ }>;
357
+ listUses(): Promise<{
358
+ uses: AuthorityUse[];
359
+ }>;
360
+ getUse(id: string): Promise<{
361
+ use: AuthorityUse;
362
+ }>;
363
+ listPresentations(): Promise<{
364
+ presentations: AuthorityPresentation[];
365
+ }>;
366
+ getPresentation(id: string): Promise<{
367
+ presentation: AuthorityPresentation;
368
+ }>;
369
+ erasePresentation(id: string, options: AuthorityMutationOptions): Promise<{
370
+ tombstone: AuthorityTombstone;
371
+ }>;
372
+ }
373
+ //# sourceMappingURL=authority.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority.d.ts","sourceRoot":"","sources":["../../src/services/authority.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACtG,MAAM,MA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wBAAwB;iBAAuC,mBAAmB;;IAC5K,QAAQ;cAAoC,YAAY,EAAE;;IAC1D,MAAM,CAAC,EAAE,EAAE,MAAM;aAAkC,YAAY;;IAC/D,iBAAiB;uBAA6C,qBAAqB,EAAE;;IACrF,eAAe,CAAC,EAAE,EAAE,MAAM;sBAA2C,qBAAqB;;IAC1F,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB;mBAAyC,kBAAkB;;CAC3H"}
@@ -0,0 +1,58 @@
1
+ function mutationHeaders(options) {
2
+ if (!/^[\x21-\x7e]{1,128}$/.test(options.idempotencyKey)) {
3
+ throw new Error('idempotencyKey must contain 1-128 visible ASCII characters');
4
+ }
5
+ return {
6
+ 'Idempotency-Key': options.idempotencyKey,
7
+ ...(options.governanceApprovalId ? { 'X-Governance-Approval': options.governanceApprovalId } : {}),
8
+ };
9
+ }
10
+ const versionQuery = (version) => ({ version: version === undefined ? undefined : String(version) });
11
+ export class AuthorityService {
12
+ client;
13
+ constructor(client) {
14
+ this.client = client;
15
+ }
16
+ createEnterpriseOidcRequest(input, options) {
17
+ return this.client.post('/v1/authority/enterprise-oidc/requests', { ...input, expires_at: input.expires_at instanceof Date ? input.expires_at.toISOString() : input.expires_at }, { headers: mutationHeaders(options) });
18
+ }
19
+ getEnterpriseOidcRequest(id) {
20
+ return this.client.get(`/v1/authority/enterprise-oidc/requests/${encodeURIComponent(id)}`);
21
+ }
22
+ createPrincipal(input, options) { return this.client.post('/v1/authority/principals', input, { headers: mutationHeaders(options) }); }
23
+ listPrincipals() { return this.client.get('/v1/authority/principals'); }
24
+ getPrincipal(id) { return this.client.get(`/v1/authority/principals/${id}`); }
25
+ archivePrincipal(id, reasonCode, options) { return this.client.post(`/v1/authority/principals/${id}/archive`, { reason_code: reasonCode }, { headers: mutationHeaders(options) }); }
26
+ erasePrincipal(id, options) { return this.client.post(`/v1/authority/principals/${id}/erase`, {}, { headers: mutationHeaders(options) }); }
27
+ importProof(input, options) { return this.client.post('/v1/authority/proofs/import', input, { headers: mutationHeaders(options) }); }
28
+ createProofCollectionSession(input, options) { return this.client.post('/v1/authority/proof-collection-sessions', input, { headers: mutationHeaders(options) }); }
29
+ getProofCollectionSession(id) { return this.client.get(`/v1/authority/proof-collection-sessions/${id}`); }
30
+ listProofs() { return this.client.get('/v1/authority/proofs'); }
31
+ getProof(id, version) { return this.client.get(`/v1/authority/proofs/${id}`, versionQuery(version)); }
32
+ revokeProof(id, reasonCode, options) { return this.client.post(`/v1/authority/proofs/${id}/revoke`, { reason_code: reasonCode }, { headers: mutationHeaders(options) }); }
33
+ eraseProof(id, options) { return this.client.post(`/v1/authority/proofs/${id}/erase`, {}, { headers: mutationHeaders(options) }); }
34
+ createBinding(input, options) { return this.client.post('/v1/authority/bindings', input, { headers: mutationHeaders(options) }); }
35
+ listBindings() { return this.client.get('/v1/authority/bindings'); }
36
+ getBinding(id, version) { return this.client.get(`/v1/authority/bindings/${id}`, versionQuery(version)); }
37
+ createApprovalRequests(id, input, options) { return this.client.post(`/v1/authority/bindings/${id}/approval-requests`, input, { headers: mutationHeaders(options) }); }
38
+ listApprovalRequests(id) { return this.client.get(`/v1/authority/bindings/${id}/approval-requests`); }
39
+ activateBinding(id, options, version) { return this.client.post(`/v1/authority/bindings/${id}/activate${version === undefined ? '' : `?version=${encodeURIComponent(String(version))}`}`, {}, { headers: mutationHeaders(options) }); }
40
+ delegateBinding(id, input, options) { return this.client.post(`/v1/authority/bindings/${id}/delegate`, input, { headers: mutationHeaders(options) }); }
41
+ revokeBinding(id, reasonCode, options) { return this.client.post(`/v1/authority/bindings/${id}/revoke`, { reason_code: reasonCode }, { headers: mutationHeaders(options) }); }
42
+ eraseBinding(id, options) { return this.client.post(`/v1/authority/bindings/${id}/erase`, {}, { headers: mutationHeaders(options) }); }
43
+ createReceiver(input, options) { return this.client.post('/v1/authority/receivers', input, { headers: mutationHeaders(options) }); }
44
+ listReceivers() { return this.client.get('/v1/authority/receivers'); }
45
+ getReceiver(id) { return this.client.get(`/v1/authority/receivers/${id}`); }
46
+ createReceiverVerificationChallenge(id, options) { return this.client.post(`/v1/authority/receivers/${id}/verification-challenges`, {}, { headers: mutationHeaders(options) }); }
47
+ verifyReceiver(id, options) { return this.client.post(`/v1/authority/receivers/${id}/verify`, {}, { headers: mutationHeaders(options) }); }
48
+ addReceiverKey(id, input, options) { return this.client.post(`/v1/authority/receivers/${id}/keys`, input, { headers: mutationHeaders(options) }); }
49
+ revokeReceiverKey(id, keyId, reasonCode, options) { return this.client.post(`/v1/authority/receivers/${id}/keys/${keyId}/revoke`, { reason_code: reasonCode }, { headers: mutationHeaders(options) }); }
50
+ createProfileVersion(input, options) { return this.client.post('/v1/authority/profile-versions', input, { headers: mutationHeaders(options) }); }
51
+ activateProfileVersion(id, profileKind, options) { return this.client.post(`/v1/authority/profile-versions/${id}/activate`, { profile_kind: profileKind }, { headers: mutationHeaders(options) }); }
52
+ listUses() { return this.client.get('/v1/authority/uses'); }
53
+ getUse(id) { return this.client.get(`/v1/authority/uses/${id}`); }
54
+ listPresentations() { return this.client.get('/v1/authority/presentations'); }
55
+ getPresentation(id) { return this.client.get(`/v1/authority/presentations/${id}`); }
56
+ erasePresentation(id, options) { return this.client.post(`/v1/authority/presentations/${id}/erase`, {}, { headers: mutationHeaders(options) }); }
57
+ }
58
+ //# sourceMappingURL=authority.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority.js","sourceRoot":"","sources":["../../src/services/authority.ts"],"names":[],"mappings":"AA8LA,SAAS,eAAe,CAAC,OAAiC;IACxD,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;IACD,OAAO;QACL,iBAAiB,EAAE,OAAO,CAAC,cAAc;QACzC,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,uBAAuB,EAAE,OA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IAAI,CAAC,MAAM,CAAC,IAAI,CAAmC,kCAAkC,EAAE,WAAW,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzS,QAAQ,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA2B,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACtF,MAAM,CAAC,EAAU,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAwB,sBAAsB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACjG,iBAAiB,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA6C,6BAA6B,CAAC,CAAC,CAAC,CAAC;IAC1H,eAAe,CAAC,EAAU,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA0C,+BAA+B,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACrI,iBAAiB,CAAC,EAAU,EAAE,OAAiC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAoC,+BAA+B,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACvN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=authority.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority.test.d.ts","sourceRoot":"","sources":["../../src/services/authority.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ import { describe, expect, it, vi } from 'vitest';
2
+ import { AuthorityService } from './authority.js';
3
+ function clientStub() {
4
+ return {
5
+ get: vi.fn(async () => ({})),
6
+ post: vi.fn(async () => ({})),
7
+ };
8
+ }
9
+ describe('AuthorityService', () => {
10
+ it('creates a human-approved OIDC Authority request without granting access', async () => {
11
+ const client = clientStub();
12
+ const service = new AuthorityService(client);
13
+ const expiresAt = new Date('2026-08-26T12:30:00.000Z');
14
+ await service.createEnterpriseOidcRequest({
15
+ organisation_name: 'Example AB',
16
+ role_name: 'CFO',
17
+ role_claim_path: 'roles',
18
+ role_claim_value: 'cfo',
19
+ agent_id: 'agt_finance',
20
+ service_connection_id: 'scon_stripe',
21
+ provider: 'stripe',
22
+ purpose: 'Send one approved payment',
23
+ http_method: 'POST',
24
+ resource_path: '/v1/payments',
25
+ expires_at: expiresAt,
26
+ }, { idempotencyKey: 'authority-request-1' });
27
+ expect(client.post).toHaveBeenCalledWith('/v1/authority/enterprise-oidc/requests', expect.objectContaining({ expires_at: expiresAt.toISOString() }), { headers: { 'Idempotency-Key': 'authority-request-1' } });
28
+ });
29
+ it('threads mandatory idempotency and governance headers on protected mutations', async () => {
30
+ const client = clientStub();
31
+ const service = new AuthorityService(client);
32
+ await service.eraseBinding('abn_x', {
33
+ idempotencyKey: 'authority-exact-retry-1',
34
+ governanceApprovalId: 'gov_x',
35
+ });
36
+ expect(client.post).toHaveBeenCalledWith('/v1/authority/bindings/abn_x/erase', {}, { headers: {
37
+ 'Idempotency-Key': 'authority-exact-retry-1',
38
+ 'X-Governance-Approval': 'gov_x',
39
+ } });
40
+ });
41
+ it('rejects malformed idempotency keys before making a request', async () => {
42
+ const client = clientStub();
43
+ const service = new AuthorityService(client);
44
+ expect(() => service.createPrincipal({ kind: 'person' }, { idempotencyKey: 'contains a space' })).toThrow(/idempotencyKey/);
45
+ expect(client.post).not.toHaveBeenCalled();
46
+ });
47
+ it('uses versioned safe-read routes without accepting an operator id', async () => {
48
+ const client = clientStub();
49
+ const service = new AuthorityService(client);
50
+ await service.getBinding('abn_x', 3);
51
+ expect(client.get).toHaveBeenCalledWith('/v1/authority/bindings/abn_x', { version: '3' });
52
+ });
53
+ });
54
+ //# sourceMappingURL=authority.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority.test.js","sourceRoot":"","sources":["../../src/services/authority.test.ts"],"names":[],"mappings":"AAAA,OAAO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