@capxul/observability 3.0.2 → 3.2.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 +7 -0
- package/dist/index.d.mts +420 -1
- package/dist/index.mjs +392 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ client has no session recording manager.
|
|
|
53
53
|
|
|
54
54
|
```ts
|
|
55
55
|
import {
|
|
56
|
+
CAPXUL_OPERATIONS,
|
|
56
57
|
PostHogTelemetryAdapter,
|
|
57
58
|
TELEMETRY_EVENT_SCHEMAS,
|
|
58
59
|
initializeCapxulBrowserAnalytics,
|
|
@@ -63,6 +64,12 @@ import {
|
|
|
63
64
|
} from "@capxul/observability";
|
|
64
65
|
```
|
|
65
66
|
|
|
67
|
+
`CAPXUL_OPERATIONS` is the closed vocabulary for stable operations that cross
|
|
68
|
+
an error or observation boundary. Use its values in production code. Use
|
|
69
|
+
`normalizeCapxulOperation` at trust boundaries. Unknown input becomes
|
|
70
|
+
`"unknown"`. JSON-RPC methods, Convex function paths, event names, span names,
|
|
71
|
+
and error codes remain separate vocabularies.
|
|
72
|
+
|
|
66
73
|
Catalog presence is not delivery proof. Some financial-operations events are
|
|
67
74
|
explicit planned targets; `FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS` records
|
|
68
75
|
which target events are not yet wired. Producer code and its tests are the
|
package/dist/index.d.mts
CHANGED
|
@@ -157,6 +157,424 @@ declare const SUPPORTED_CURRENCIES: readonly [{
|
|
|
157
157
|
}];
|
|
158
158
|
type SupportedCurrencyCode = (typeof SUPPORTED_CURRENCIES)[number]["code"];
|
|
159
159
|
//#endregion
|
|
160
|
+
//#region src/operations.d.ts
|
|
161
|
+
declare const CAPXUL_OPERATIONS: {
|
|
162
|
+
readonly account: {
|
|
163
|
+
readonly addressBook: {
|
|
164
|
+
readonly add: "account.addressBook.add";
|
|
165
|
+
readonly get: "account.addressBook.get";
|
|
166
|
+
readonly hide: "account.addressBook.hide";
|
|
167
|
+
readonly label: "account.addressBook.label";
|
|
168
|
+
readonly list: "account.addressBook.list";
|
|
169
|
+
readonly unhide: "account.addressBook.unhide";
|
|
170
|
+
};
|
|
171
|
+
readonly balance: "account.balance";
|
|
172
|
+
readonly faucetMint: "account.faucetMint";
|
|
173
|
+
readonly getLifecycle: "account.getLifecycle";
|
|
174
|
+
readonly readBalance: "account.readBalance";
|
|
175
|
+
readonly retrySetup: "account.retrySetup";
|
|
176
|
+
readonly status: "account.status";
|
|
177
|
+
readonly profile: {
|
|
178
|
+
readonly depositInstructions: "account.profile.depositInstructions";
|
|
179
|
+
readonly get: "account.profile.get";
|
|
180
|
+
};
|
|
181
|
+
readonly inbox: {
|
|
182
|
+
readonly approve: "account.inbox.approve";
|
|
183
|
+
readonly decline: "account.inbox.decline";
|
|
184
|
+
readonly list: "account.inbox.list";
|
|
185
|
+
};
|
|
186
|
+
readonly requests: {
|
|
187
|
+
readonly cancel: "account.requests.cancel";
|
|
188
|
+
readonly get: "account.requests.get";
|
|
189
|
+
readonly issue: "account.requests.issue";
|
|
190
|
+
readonly list: "account.requests.list";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
readonly accounts: {
|
|
194
|
+
readonly fund: "accounts.fund";
|
|
195
|
+
readonly read: "accounts.read";
|
|
196
|
+
};
|
|
197
|
+
readonly activity: {
|
|
198
|
+
readonly annotate: "activity.annotate";
|
|
199
|
+
readonly get: "activity.get";
|
|
200
|
+
readonly list: "activity.list";
|
|
201
|
+
readonly summary: "activity.summary";
|
|
202
|
+
};
|
|
203
|
+
readonly addressBook: {
|
|
204
|
+
readonly add: "addressBook.add";
|
|
205
|
+
readonly get: "addressBook.get";
|
|
206
|
+
readonly hide: "addressBook.hide";
|
|
207
|
+
readonly label: "addressBook.label";
|
|
208
|
+
readonly list: "addressBook.list";
|
|
209
|
+
readonly unhide: "addressBook.unhide";
|
|
210
|
+
};
|
|
211
|
+
readonly applications: {
|
|
212
|
+
readonly create: "applications.create";
|
|
213
|
+
};
|
|
214
|
+
readonly auth: {
|
|
215
|
+
readonly canSendOtp: "auth.canSendOtp";
|
|
216
|
+
readonly getSession: "auth.getSession";
|
|
217
|
+
readonly signIn: "auth.signIn";
|
|
218
|
+
readonly signOut: "auth.signOut";
|
|
219
|
+
readonly sendVerificationOtp: "auth.sendVerificationOTP";
|
|
220
|
+
readonly verifyOtp: "auth.verifyOtp";
|
|
221
|
+
};
|
|
222
|
+
readonly client: {
|
|
223
|
+
readonly createOrg: "createOrg";
|
|
224
|
+
readonly orgs: "orgs";
|
|
225
|
+
};
|
|
226
|
+
readonly credentials: {
|
|
227
|
+
readonly bootstrapClient: "credentials.bootstrapClient";
|
|
228
|
+
readonly mintQuickstartKey: "credentials.mintQuickstartKey";
|
|
229
|
+
};
|
|
230
|
+
readonly currentUser: {
|
|
231
|
+
readonly get: "currentUser.get";
|
|
232
|
+
};
|
|
233
|
+
readonly devIdentity: {
|
|
234
|
+
readonly seedFinancialOpsOrg: "devIdentity.seedFinancialOpsOrg";
|
|
235
|
+
};
|
|
236
|
+
readonly dev: {
|
|
237
|
+
readonly browserSeed: "dev.browserSeed";
|
|
238
|
+
};
|
|
239
|
+
readonly destinations: {
|
|
240
|
+
readonly add: "destinations.add";
|
|
241
|
+
readonly list: "destinations.list";
|
|
242
|
+
readonly remove: "destinations.remove";
|
|
243
|
+
};
|
|
244
|
+
readonly faucetSafe: {
|
|
245
|
+
readonly deploy: "FaucetSafe.deploy";
|
|
246
|
+
};
|
|
247
|
+
readonly financialOps: {
|
|
248
|
+
readonly addDestination: "financialOps.addDestination";
|
|
249
|
+
readonly approveRequest: "financialOps.approveRequest";
|
|
250
|
+
readonly cancelRequest: "financialOps.cancelRequest";
|
|
251
|
+
readonly createPayee: "financialOps.createPayee";
|
|
252
|
+
readonly declineRequest: "financialOps.declineRequest";
|
|
253
|
+
readonly emitPaymentWriterTelemetry: "financialOps.emitPaymentWriterTelemetry";
|
|
254
|
+
readonly issueRequest: "financialOps.issueRequest";
|
|
255
|
+
readonly recoverSettlementVerification: "financialOps.recoverSettlementVerification";
|
|
256
|
+
readonly removeDestination: "financialOps.removeDestination";
|
|
257
|
+
readonly verifySettlement: "financialOps.verifySettlement";
|
|
258
|
+
};
|
|
259
|
+
readonly holdings: {
|
|
260
|
+
readonly current: "holdings.current";
|
|
261
|
+
readonly primary: "holdings.primary";
|
|
262
|
+
};
|
|
263
|
+
readonly handles: {
|
|
264
|
+
readonly resolve: "handles.resolve";
|
|
265
|
+
};
|
|
266
|
+
readonly identity: {
|
|
267
|
+
readonly accountAt: "identity.AccountAt";
|
|
268
|
+
readonly accountClaimed: "identity.AccountClaimed";
|
|
269
|
+
readonly accountClaiming: "identity.AccountClaiming";
|
|
270
|
+
readonly accountDerived: "identity.AccountDerived";
|
|
271
|
+
readonly accountFailed: "identity.AccountFailed";
|
|
272
|
+
readonly attachOrganization: "identity.AttachOrganization";
|
|
273
|
+
readonly claimAccount: "identity.ClaimAccount";
|
|
274
|
+
readonly completeOnboarding: "identity.completeOnboarding";
|
|
275
|
+
readonly completeProfile: "identity.completeProfile";
|
|
276
|
+
readonly create: "identity.create";
|
|
277
|
+
readonly createOrganization: "identity.CreateOrganization";
|
|
278
|
+
readonly ensureAccount: "identity.EnsureAccount";
|
|
279
|
+
readonly leaveOrganization: "identity.LeaveOrganization";
|
|
280
|
+
readonly loadCurrent: "identity.loadCurrent";
|
|
281
|
+
readonly orgAt: "identity.OrgAt";
|
|
282
|
+
readonly orgFailed: "identity.OrgFailed";
|
|
283
|
+
readonly orgReady: "identity.OrgReady";
|
|
284
|
+
readonly otpFailed: "identity.OtpFailed";
|
|
285
|
+
readonly otpSent: "identity.OtpSent";
|
|
286
|
+
readonly readSession: "identity.ReadSession";
|
|
287
|
+
readonly requestOtp: "identity.RequestOtp";
|
|
288
|
+
readonly reset: "identity.Reset";
|
|
289
|
+
readonly restoreSession: "identity.RestoreSession";
|
|
290
|
+
readonly resumeOtpEntry: "identity.ResumeOtpEntry";
|
|
291
|
+
readonly retryAccount: "identity.RetryAccount";
|
|
292
|
+
readonly retryOrganization: "identity.RetryOrganization";
|
|
293
|
+
readonly sessionAbsent: "identity.SessionAbsent";
|
|
294
|
+
readonly sessionRead: "identity.SessionRead";
|
|
295
|
+
readonly sessionReadFailed: "identity.SessionReadFailed";
|
|
296
|
+
readonly sessionRestored: "identity.SessionRestored";
|
|
297
|
+
readonly signedOut: "identity.SignedOut";
|
|
298
|
+
readonly signOut: "identity.SignOut";
|
|
299
|
+
readonly signOutFailed: "identity.SignOutFailed";
|
|
300
|
+
readonly update: "identity.update";
|
|
301
|
+
readonly usernameAvailable: "identity.usernameAvailable";
|
|
302
|
+
readonly verified: "identity.Verified";
|
|
303
|
+
readonly verifyFailed: "identity.VerifyFailed";
|
|
304
|
+
readonly verifyOtp: "identity.VerifyOtp";
|
|
305
|
+
};
|
|
306
|
+
readonly media: {
|
|
307
|
+
readonly generateUploadUrl: "media.generateUploadUrl";
|
|
308
|
+
readonly setOrgLogo: "media.setOrgLogo";
|
|
309
|
+
readonly setProfileImage: "media.setProfileImage";
|
|
310
|
+
readonly uploadImage: "media.uploadImage";
|
|
311
|
+
};
|
|
312
|
+
readonly me: {
|
|
313
|
+
readonly depositInstructions: "me.depositInstructions";
|
|
314
|
+
readonly get: "me.get";
|
|
315
|
+
};
|
|
316
|
+
readonly moneyExecution: {
|
|
317
|
+
readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
|
|
318
|
+
readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
|
|
319
|
+
readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
|
|
320
|
+
readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
|
|
321
|
+
readonly submit: "moneyExecution.submit";
|
|
322
|
+
readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
|
|
323
|
+
readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
|
|
324
|
+
readonly submitPermissionExecution: "moneyExecution.submitPermissionExecution";
|
|
325
|
+
};
|
|
326
|
+
readonly movement: {
|
|
327
|
+
readonly emitDepositSettled: "movement.emitDepositSettled";
|
|
328
|
+
readonly scan: "movement.scan";
|
|
329
|
+
};
|
|
330
|
+
readonly inbox: {
|
|
331
|
+
readonly approve: "inbox.approve";
|
|
332
|
+
readonly decline: "inbox.decline";
|
|
333
|
+
readonly list: "inbox.list";
|
|
334
|
+
};
|
|
335
|
+
readonly offramp: {
|
|
336
|
+
readonly quote: "offramp.quote";
|
|
337
|
+
readonly status: "offramp.status";
|
|
338
|
+
};
|
|
339
|
+
readonly onboarding: {
|
|
340
|
+
readonly completePerson: "onboarding.completePerson";
|
|
341
|
+
};
|
|
342
|
+
readonly org: {
|
|
343
|
+
readonly account: {
|
|
344
|
+
readonly get: "org.account.get";
|
|
345
|
+
};
|
|
346
|
+
readonly auditLog: "org.auditLog";
|
|
347
|
+
readonly confirmBootstrap: "org.confirmBootstrap";
|
|
348
|
+
readonly createOrg: "org.createOrg";
|
|
349
|
+
readonly create: "org.create";
|
|
350
|
+
readonly detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations";
|
|
351
|
+
readonly expireInvitations: "org.expireInvitations";
|
|
352
|
+
readonly getLifecycle: "org.getLifecycle";
|
|
353
|
+
readonly getProofReceipt: "org.getProofReceipt";
|
|
354
|
+
readonly invite: "org.invite";
|
|
355
|
+
readonly inviteMember: "org.inviteMember";
|
|
356
|
+
readonly load: "org.load";
|
|
357
|
+
readonly me: "org.me";
|
|
358
|
+
readonly members: "org.members";
|
|
359
|
+
readonly orgs: "org.orgs";
|
|
360
|
+
readonly payment: "org.payment";
|
|
361
|
+
readonly permissions: {
|
|
362
|
+
readonly assign: "org.permissions.assign";
|
|
363
|
+
readonly change: "org.permissions.change";
|
|
364
|
+
readonly create: "org.permissions.create";
|
|
365
|
+
readonly get: "org.permissions.get";
|
|
366
|
+
readonly list: "org.permissions.list";
|
|
367
|
+
readonly replace: "org.permissions.replace";
|
|
368
|
+
readonly revoke: "org.permissions.revoke";
|
|
369
|
+
};
|
|
370
|
+
readonly payments: {
|
|
371
|
+
readonly pay: "org.payments.pay";
|
|
372
|
+
readonly payBatch: "org.payments.payBatch";
|
|
373
|
+
};
|
|
374
|
+
readonly payroll: {
|
|
375
|
+
readonly authorizeRun: "org.payroll.authorizeRun";
|
|
376
|
+
readonly groups: {
|
|
377
|
+
readonly list: "org.payroll.groups.list";
|
|
378
|
+
readonly remove: "org.payroll.groups.remove";
|
|
379
|
+
readonly save: "org.payroll.groups.save";
|
|
380
|
+
};
|
|
381
|
+
readonly runs: "org.payroll.runs";
|
|
382
|
+
readonly terms: "org.payroll.terms";
|
|
383
|
+
};
|
|
384
|
+
readonly addressBook: {
|
|
385
|
+
readonly add: "org.addressBook.add";
|
|
386
|
+
readonly get: "org.addressBook.get";
|
|
387
|
+
readonly hide: "org.addressBook.hide";
|
|
388
|
+
readonly label: "org.addressBook.label";
|
|
389
|
+
readonly list: "org.addressBook.list";
|
|
390
|
+
readonly unhide: "org.addressBook.unhide";
|
|
391
|
+
};
|
|
392
|
+
readonly inbox: {
|
|
393
|
+
readonly approve: "org.inbox.approve";
|
|
394
|
+
readonly decline: "org.inbox.decline";
|
|
395
|
+
readonly list: "org.inbox.list";
|
|
396
|
+
};
|
|
397
|
+
readonly lifecycle: {
|
|
398
|
+
readonly startOrResume: "org.lifecycle.startOrResume";
|
|
399
|
+
};
|
|
400
|
+
readonly prepareBootstrap: "org.prepareBootstrap";
|
|
401
|
+
readonly prepareFounderAccount: "org.prepareFounderAccount";
|
|
402
|
+
readonly profile: {
|
|
403
|
+
readonly depositInstructions: "org.profile.depositInstructions";
|
|
404
|
+
readonly get: "org.profile.get";
|
|
405
|
+
};
|
|
406
|
+
readonly readTreasury: "org.readTreasury";
|
|
407
|
+
readonly requests: {
|
|
408
|
+
readonly cancel: "org.requests.cancel";
|
|
409
|
+
readonly get: "org.requests.get";
|
|
410
|
+
readonly issue: "org.requests.issue";
|
|
411
|
+
readonly list: "org.requests.list";
|
|
412
|
+
};
|
|
413
|
+
readonly recordFailure: "org.recordFailure";
|
|
414
|
+
readonly recordProgress: "org.recordProgress";
|
|
415
|
+
readonly resendInviteToken: "org.resendInviteToken";
|
|
416
|
+
readonly resumeBootstrapSubmission: "org.resumeBootstrapSubmission";
|
|
417
|
+
readonly retry: "org.retry";
|
|
418
|
+
readonly retrySetup: "org.retrySetup";
|
|
419
|
+
readonly roles: "org.roles";
|
|
420
|
+
readonly startOrResume: "org.startOrResume";
|
|
421
|
+
readonly submitBootstrap: "org.submitBootstrap";
|
|
422
|
+
readonly treasury: "org.treasury";
|
|
423
|
+
};
|
|
424
|
+
readonly organization: {
|
|
425
|
+
readonly setup: "organization.setup";
|
|
426
|
+
};
|
|
427
|
+
readonly organizationPayments: {
|
|
428
|
+
readonly pay: "organizationPayments.pay";
|
|
429
|
+
readonly payBatch: "organizationPayments.payBatch";
|
|
430
|
+
readonly prepareExecution: "organizationPayments.prepareExecution";
|
|
431
|
+
};
|
|
432
|
+
readonly organizationSetup: {
|
|
433
|
+
readonly getProofReceipt: "organizationSetup.getProofReceipt";
|
|
434
|
+
};
|
|
435
|
+
readonly organizations: {
|
|
436
|
+
readonly detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations";
|
|
437
|
+
};
|
|
438
|
+
readonly payments: {
|
|
439
|
+
readonly cancel: "payments.cancel";
|
|
440
|
+
readonly claim: "payments.claim";
|
|
441
|
+
readonly createCommitment: "payments.createCommitment";
|
|
442
|
+
readonly get: "payments.get";
|
|
443
|
+
readonly ledger: "payments";
|
|
444
|
+
readonly list: "payments.list";
|
|
445
|
+
readonly pay: "payments.pay";
|
|
446
|
+
readonly prepareExecution: "payments.prepareExecution";
|
|
447
|
+
readonly prepareLifecycleExecution: "payments.prepareLifecycleExecution";
|
|
448
|
+
readonly redirect: "payments.redirect";
|
|
449
|
+
readonly submitCommandExecution: "payments.submitCommandExecution";
|
|
450
|
+
readonly submitExecution: "payments.submitExecution";
|
|
451
|
+
};
|
|
452
|
+
readonly paymentDocuments: {
|
|
453
|
+
readonly render: "paymentDocuments.render";
|
|
454
|
+
readonly verify: "paymentDocuments.verify";
|
|
455
|
+
};
|
|
456
|
+
readonly payees: {
|
|
457
|
+
readonly create: "payees.create";
|
|
458
|
+
readonly get: "payees.get";
|
|
459
|
+
readonly resolve: "payees.resolve";
|
|
460
|
+
};
|
|
461
|
+
readonly payroll: {
|
|
462
|
+
readonly authorizeRun: "payroll.authorizeRun";
|
|
463
|
+
readonly groups: {
|
|
464
|
+
readonly access: "payroll.groups";
|
|
465
|
+
readonly list: "payroll.groups.list";
|
|
466
|
+
readonly remove: "payroll.groups.remove";
|
|
467
|
+
readonly save: "payroll.groups.save";
|
|
468
|
+
};
|
|
469
|
+
readonly removeGroup: "payroll.removeGroup";
|
|
470
|
+
readonly runs: "payroll.runs";
|
|
471
|
+
readonly saveGroup: "payroll.saveGroup";
|
|
472
|
+
readonly terms: "payroll.terms";
|
|
473
|
+
};
|
|
474
|
+
readonly permission: {
|
|
475
|
+
readonly command: "permission.command";
|
|
476
|
+
readonly retryVerification: "permission.retryVerification";
|
|
477
|
+
readonly verify: "permission.verify";
|
|
478
|
+
readonly verifySubmitted: "permission.verifySubmitted";
|
|
479
|
+
};
|
|
480
|
+
readonly permissions: {
|
|
481
|
+
readonly assign: "permissions.assign";
|
|
482
|
+
readonly change: "permissions.change";
|
|
483
|
+
readonly create: "permissions.create";
|
|
484
|
+
readonly get: "permissions.get";
|
|
485
|
+
readonly list: "permissions.list";
|
|
486
|
+
readonly prepareExecution: "permissions.prepareExecution";
|
|
487
|
+
readonly replace: "permissions.replace";
|
|
488
|
+
readonly revoke: "permissions.revoke";
|
|
489
|
+
readonly submitExecution: "permissions.submitExecution";
|
|
490
|
+
};
|
|
491
|
+
readonly publishableKeys: {
|
|
492
|
+
readonly mint: "publishableKeys.mint";
|
|
493
|
+
readonly revoke: "publishableKeys.revoke";
|
|
494
|
+
readonly rotate: "publishableKeys.rotate";
|
|
495
|
+
};
|
|
496
|
+
readonly requests: {
|
|
497
|
+
readonly cancel: "requests.cancel";
|
|
498
|
+
readonly get: "requests.get";
|
|
499
|
+
readonly issue: "requests.issue";
|
|
500
|
+
readonly list: "requests.list";
|
|
501
|
+
};
|
|
502
|
+
readonly runtime: {
|
|
503
|
+
readonly assign: "assign";
|
|
504
|
+
readonly canSendOtp: "canSendOtp";
|
|
505
|
+
readonly cancelCommitment: "cancel_commitment";
|
|
506
|
+
readonly change: "change";
|
|
507
|
+
readonly claimCommitment: "claim_commitment";
|
|
508
|
+
readonly create: "create";
|
|
509
|
+
readonly createCapxulClient: "createCapxulClient";
|
|
510
|
+
readonly createCapxulClientWithOrgDeploymentSeams: "createCapxulClientWithOrgDeploymentSeams";
|
|
511
|
+
readonly createCommitment: "create_commitment";
|
|
512
|
+
readonly getConvexJwt: "getConvexJwt";
|
|
513
|
+
readonly getSession: "getSession";
|
|
514
|
+
readonly initialize: "initialize";
|
|
515
|
+
readonly mutation: "mutation";
|
|
516
|
+
readonly now: "now";
|
|
517
|
+
readonly port: "port";
|
|
518
|
+
readonly query: "query";
|
|
519
|
+
readonly redirectCommitment: "redirect_commitment";
|
|
520
|
+
readonly replace: "replace";
|
|
521
|
+
readonly resolve: "resolve";
|
|
522
|
+
readonly revoke: "revoke";
|
|
523
|
+
readonly send: "send";
|
|
524
|
+
readonly sendOtp: "sendOtp";
|
|
525
|
+
readonly signIn: "signIn";
|
|
526
|
+
readonly signOut: "signOut";
|
|
527
|
+
readonly sleep: "sleep";
|
|
528
|
+
readonly verifyOtp: "verifyOtp";
|
|
529
|
+
readonly wallet: "wallet";
|
|
530
|
+
};
|
|
531
|
+
readonly smartAccount: {
|
|
532
|
+
readonly claim: "smartAccount.claim";
|
|
533
|
+
readonly confirmDeployment: "smartAccount.confirmDeployment";
|
|
534
|
+
readonly loadCurrent: "smartAccount.loadCurrent";
|
|
535
|
+
readonly provision: "smartAccount.provision";
|
|
536
|
+
};
|
|
537
|
+
readonly system: {
|
|
538
|
+
readonly health: "system.health";
|
|
539
|
+
readonly ping: "system.ping";
|
|
540
|
+
readonly runtimeChain: "system.runtimeChain";
|
|
541
|
+
};
|
|
542
|
+
readonly targets: {
|
|
543
|
+
readonly resolve: {
|
|
544
|
+
readonly email: "targets.resolve.email";
|
|
545
|
+
readonly handle: "targets.resolve.handle";
|
|
546
|
+
readonly organization: "targets.resolve.organization";
|
|
547
|
+
readonly payee: "targets.resolve.payee";
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
readonly testUsdc: {
|
|
551
|
+
readonly mint: "TestUSDC.mint";
|
|
552
|
+
};
|
|
553
|
+
readonly _internal: {
|
|
554
|
+
readonly accounts: {
|
|
555
|
+
readonly fund: "_internal.accounts.fund";
|
|
556
|
+
};
|
|
557
|
+
readonly close: "_internal.close";
|
|
558
|
+
readonly identity: {
|
|
559
|
+
readonly completeProfile: "_internal.identity.completeProfile";
|
|
560
|
+
readonly runFacade: "_internal.identity.runFacade";
|
|
561
|
+
readonly send: "_internal.identity.send";
|
|
562
|
+
};
|
|
563
|
+
readonly organizationSetup: {
|
|
564
|
+
readonly getProofReceipt: "_internal.organizationSetup.getProofReceipt";
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
readonly tenancy: {
|
|
568
|
+
readonly revokeBackendTenancyConsent: "tenancy.revokeBackendTenancyConsent";
|
|
569
|
+
readonly seedBackendTenancy: "tenancy.seedBackendTenancy";
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
type StringLeaves<T> = T extends string ? T : T extends Readonly<Record<string, unknown>> ? { readonly [K in keyof T]: StringLeaves<T[K]>; }[keyof T] : never;
|
|
573
|
+
type CapxulOperation = StringLeaves<typeof CAPXUL_OPERATIONS>;
|
|
574
|
+
type NormalizedCapxulOperation = CapxulOperation | "unknown";
|
|
575
|
+
declare function isCapxulOperation(value: unknown): value is CapxulOperation;
|
|
576
|
+
declare function normalizeCapxulOperation(value: unknown): NormalizedCapxulOperation;
|
|
577
|
+
//#endregion
|
|
160
578
|
//#region src/telemetry-port.d.ts
|
|
161
579
|
/**
|
|
162
580
|
* Context for reporting handled errors via `reportHandledError`.
|
|
@@ -164,6 +582,7 @@ type SupportedCurrencyCode = (typeof SUPPORTED_CURRENCIES)[number]["code"];
|
|
|
164
582
|
*/
|
|
165
583
|
interface HandledErrorReportContext {
|
|
166
584
|
readonly layer?: string;
|
|
585
|
+
/** Host input is normalized at the reporting boundary. */
|
|
167
586
|
readonly operation?: string;
|
|
168
587
|
readonly failure_mode?: FailureMode;
|
|
169
588
|
readonly provider?: string;
|
|
@@ -2399,4 +2818,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
|
|
|
2399
2818
|
reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
|
|
2400
2819
|
}
|
|
2401
2820
|
//#endregion
|
|
2402
|
-
export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, maskCapturedNetworkRequest, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
|
2821
|
+
export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
package/dist/index.mjs
CHANGED
|
@@ -71,6 +71,397 @@ Object.fromEntries(SUPPORTED_CURRENCIES.map((currency) => [currency.code, curren
|
|
|
71
71
|
const APP_ID_RE = /^app_[0-7][0-9A-HJKMNP-TV-Z]{25}$/;
|
|
72
72
|
Math.floor(Number.MAX_SAFE_INTEGER / 1e3);
|
|
73
73
|
//#endregion
|
|
74
|
+
//#region src/operations.ts
|
|
75
|
+
const CAPXUL_OPERATIONS = {
|
|
76
|
+
account: {
|
|
77
|
+
addressBook: {
|
|
78
|
+
add: "account.addressBook.add",
|
|
79
|
+
get: "account.addressBook.get",
|
|
80
|
+
hide: "account.addressBook.hide",
|
|
81
|
+
label: "account.addressBook.label",
|
|
82
|
+
list: "account.addressBook.list",
|
|
83
|
+
unhide: "account.addressBook.unhide"
|
|
84
|
+
},
|
|
85
|
+
balance: "account.balance",
|
|
86
|
+
faucetMint: "account.faucetMint",
|
|
87
|
+
getLifecycle: "account.getLifecycle",
|
|
88
|
+
readBalance: "account.readBalance",
|
|
89
|
+
retrySetup: "account.retrySetup",
|
|
90
|
+
status: "account.status",
|
|
91
|
+
profile: {
|
|
92
|
+
depositInstructions: "account.profile.depositInstructions",
|
|
93
|
+
get: "account.profile.get"
|
|
94
|
+
},
|
|
95
|
+
inbox: {
|
|
96
|
+
approve: "account.inbox.approve",
|
|
97
|
+
decline: "account.inbox.decline",
|
|
98
|
+
list: "account.inbox.list"
|
|
99
|
+
},
|
|
100
|
+
requests: {
|
|
101
|
+
cancel: "account.requests.cancel",
|
|
102
|
+
get: "account.requests.get",
|
|
103
|
+
issue: "account.requests.issue",
|
|
104
|
+
list: "account.requests.list"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
accounts: {
|
|
108
|
+
fund: "accounts.fund",
|
|
109
|
+
read: "accounts.read"
|
|
110
|
+
},
|
|
111
|
+
activity: {
|
|
112
|
+
annotate: "activity.annotate",
|
|
113
|
+
get: "activity.get",
|
|
114
|
+
list: "activity.list",
|
|
115
|
+
summary: "activity.summary"
|
|
116
|
+
},
|
|
117
|
+
addressBook: {
|
|
118
|
+
add: "addressBook.add",
|
|
119
|
+
get: "addressBook.get",
|
|
120
|
+
hide: "addressBook.hide",
|
|
121
|
+
label: "addressBook.label",
|
|
122
|
+
list: "addressBook.list",
|
|
123
|
+
unhide: "addressBook.unhide"
|
|
124
|
+
},
|
|
125
|
+
applications: { create: "applications.create" },
|
|
126
|
+
auth: {
|
|
127
|
+
canSendOtp: "auth.canSendOtp",
|
|
128
|
+
getSession: "auth.getSession",
|
|
129
|
+
signIn: "auth.signIn",
|
|
130
|
+
signOut: "auth.signOut",
|
|
131
|
+
sendVerificationOtp: "auth.sendVerificationOTP",
|
|
132
|
+
verifyOtp: "auth.verifyOtp"
|
|
133
|
+
},
|
|
134
|
+
client: {
|
|
135
|
+
createOrg: "createOrg",
|
|
136
|
+
orgs: "orgs"
|
|
137
|
+
},
|
|
138
|
+
credentials: {
|
|
139
|
+
bootstrapClient: "credentials.bootstrapClient",
|
|
140
|
+
mintQuickstartKey: "credentials.mintQuickstartKey"
|
|
141
|
+
},
|
|
142
|
+
currentUser: { get: "currentUser.get" },
|
|
143
|
+
devIdentity: { seedFinancialOpsOrg: "devIdentity.seedFinancialOpsOrg" },
|
|
144
|
+
dev: { browserSeed: "dev.browserSeed" },
|
|
145
|
+
destinations: {
|
|
146
|
+
add: "destinations.add",
|
|
147
|
+
list: "destinations.list",
|
|
148
|
+
remove: "destinations.remove"
|
|
149
|
+
},
|
|
150
|
+
faucetSafe: { deploy: "FaucetSafe.deploy" },
|
|
151
|
+
financialOps: {
|
|
152
|
+
addDestination: "financialOps.addDestination",
|
|
153
|
+
approveRequest: "financialOps.approveRequest",
|
|
154
|
+
cancelRequest: "financialOps.cancelRequest",
|
|
155
|
+
createPayee: "financialOps.createPayee",
|
|
156
|
+
declineRequest: "financialOps.declineRequest",
|
|
157
|
+
emitPaymentWriterTelemetry: "financialOps.emitPaymentWriterTelemetry",
|
|
158
|
+
issueRequest: "financialOps.issueRequest",
|
|
159
|
+
recoverSettlementVerification: "financialOps.recoverSettlementVerification",
|
|
160
|
+
removeDestination: "financialOps.removeDestination",
|
|
161
|
+
verifySettlement: "financialOps.verifySettlement"
|
|
162
|
+
},
|
|
163
|
+
holdings: {
|
|
164
|
+
current: "holdings.current",
|
|
165
|
+
primary: "holdings.primary"
|
|
166
|
+
},
|
|
167
|
+
handles: { resolve: "handles.resolve" },
|
|
168
|
+
identity: {
|
|
169
|
+
accountAt: "identity.AccountAt",
|
|
170
|
+
accountClaimed: "identity.AccountClaimed",
|
|
171
|
+
accountClaiming: "identity.AccountClaiming",
|
|
172
|
+
accountDerived: "identity.AccountDerived",
|
|
173
|
+
accountFailed: "identity.AccountFailed",
|
|
174
|
+
attachOrganization: "identity.AttachOrganization",
|
|
175
|
+
claimAccount: "identity.ClaimAccount",
|
|
176
|
+
completeOnboarding: "identity.completeOnboarding",
|
|
177
|
+
completeProfile: "identity.completeProfile",
|
|
178
|
+
create: "identity.create",
|
|
179
|
+
createOrganization: "identity.CreateOrganization",
|
|
180
|
+
ensureAccount: "identity.EnsureAccount",
|
|
181
|
+
leaveOrganization: "identity.LeaveOrganization",
|
|
182
|
+
loadCurrent: "identity.loadCurrent",
|
|
183
|
+
orgAt: "identity.OrgAt",
|
|
184
|
+
orgFailed: "identity.OrgFailed",
|
|
185
|
+
orgReady: "identity.OrgReady",
|
|
186
|
+
otpFailed: "identity.OtpFailed",
|
|
187
|
+
otpSent: "identity.OtpSent",
|
|
188
|
+
readSession: "identity.ReadSession",
|
|
189
|
+
requestOtp: "identity.RequestOtp",
|
|
190
|
+
reset: "identity.Reset",
|
|
191
|
+
restoreSession: "identity.RestoreSession",
|
|
192
|
+
resumeOtpEntry: "identity.ResumeOtpEntry",
|
|
193
|
+
retryAccount: "identity.RetryAccount",
|
|
194
|
+
retryOrganization: "identity.RetryOrganization",
|
|
195
|
+
sessionAbsent: "identity.SessionAbsent",
|
|
196
|
+
sessionRead: "identity.SessionRead",
|
|
197
|
+
sessionReadFailed: "identity.SessionReadFailed",
|
|
198
|
+
sessionRestored: "identity.SessionRestored",
|
|
199
|
+
signedOut: "identity.SignedOut",
|
|
200
|
+
signOut: "identity.SignOut",
|
|
201
|
+
signOutFailed: "identity.SignOutFailed",
|
|
202
|
+
update: "identity.update",
|
|
203
|
+
usernameAvailable: "identity.usernameAvailable",
|
|
204
|
+
verified: "identity.Verified",
|
|
205
|
+
verifyFailed: "identity.VerifyFailed",
|
|
206
|
+
verifyOtp: "identity.VerifyOtp"
|
|
207
|
+
},
|
|
208
|
+
media: {
|
|
209
|
+
generateUploadUrl: "media.generateUploadUrl",
|
|
210
|
+
setOrgLogo: "media.setOrgLogo",
|
|
211
|
+
setProfileImage: "media.setProfileImage",
|
|
212
|
+
uploadImage: "media.uploadImage"
|
|
213
|
+
},
|
|
214
|
+
me: {
|
|
215
|
+
depositInstructions: "me.depositInstructions",
|
|
216
|
+
get: "me.get"
|
|
217
|
+
},
|
|
218
|
+
moneyExecution: {
|
|
219
|
+
prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution",
|
|
220
|
+
preparePaymentExecution: "moneyExecution.preparePaymentExecution",
|
|
221
|
+
preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution",
|
|
222
|
+
preparePermissionExecution: "moneyExecution.preparePermissionExecution",
|
|
223
|
+
submit: "moneyExecution.submit",
|
|
224
|
+
submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution",
|
|
225
|
+
submitPaymentExecution: "moneyExecution.submitPaymentExecution",
|
|
226
|
+
submitPermissionExecution: "moneyExecution.submitPermissionExecution"
|
|
227
|
+
},
|
|
228
|
+
movement: {
|
|
229
|
+
emitDepositSettled: "movement.emitDepositSettled",
|
|
230
|
+
scan: "movement.scan"
|
|
231
|
+
},
|
|
232
|
+
inbox: {
|
|
233
|
+
approve: "inbox.approve",
|
|
234
|
+
decline: "inbox.decline",
|
|
235
|
+
list: "inbox.list"
|
|
236
|
+
},
|
|
237
|
+
offramp: {
|
|
238
|
+
quote: "offramp.quote",
|
|
239
|
+
status: "offramp.status"
|
|
240
|
+
},
|
|
241
|
+
onboarding: { completePerson: "onboarding.completePerson" },
|
|
242
|
+
org: {
|
|
243
|
+
account: { get: "org.account.get" },
|
|
244
|
+
auditLog: "org.auditLog",
|
|
245
|
+
confirmBootstrap: "org.confirmBootstrap",
|
|
246
|
+
createOrg: "org.createOrg",
|
|
247
|
+
create: "org.create",
|
|
248
|
+
detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations",
|
|
249
|
+
expireInvitations: "org.expireInvitations",
|
|
250
|
+
getLifecycle: "org.getLifecycle",
|
|
251
|
+
getProofReceipt: "org.getProofReceipt",
|
|
252
|
+
invite: "org.invite",
|
|
253
|
+
inviteMember: "org.inviteMember",
|
|
254
|
+
load: "org.load",
|
|
255
|
+
me: "org.me",
|
|
256
|
+
members: "org.members",
|
|
257
|
+
orgs: "org.orgs",
|
|
258
|
+
payment: "org.payment",
|
|
259
|
+
permissions: {
|
|
260
|
+
assign: "org.permissions.assign",
|
|
261
|
+
change: "org.permissions.change",
|
|
262
|
+
create: "org.permissions.create",
|
|
263
|
+
get: "org.permissions.get",
|
|
264
|
+
list: "org.permissions.list",
|
|
265
|
+
replace: "org.permissions.replace",
|
|
266
|
+
revoke: "org.permissions.revoke"
|
|
267
|
+
},
|
|
268
|
+
payments: {
|
|
269
|
+
pay: "org.payments.pay",
|
|
270
|
+
payBatch: "org.payments.payBatch"
|
|
271
|
+
},
|
|
272
|
+
payroll: {
|
|
273
|
+
authorizeRun: "org.payroll.authorizeRun",
|
|
274
|
+
groups: {
|
|
275
|
+
list: "org.payroll.groups.list",
|
|
276
|
+
remove: "org.payroll.groups.remove",
|
|
277
|
+
save: "org.payroll.groups.save"
|
|
278
|
+
},
|
|
279
|
+
runs: "org.payroll.runs",
|
|
280
|
+
terms: "org.payroll.terms"
|
|
281
|
+
},
|
|
282
|
+
addressBook: {
|
|
283
|
+
add: "org.addressBook.add",
|
|
284
|
+
get: "org.addressBook.get",
|
|
285
|
+
hide: "org.addressBook.hide",
|
|
286
|
+
label: "org.addressBook.label",
|
|
287
|
+
list: "org.addressBook.list",
|
|
288
|
+
unhide: "org.addressBook.unhide"
|
|
289
|
+
},
|
|
290
|
+
inbox: {
|
|
291
|
+
approve: "org.inbox.approve",
|
|
292
|
+
decline: "org.inbox.decline",
|
|
293
|
+
list: "org.inbox.list"
|
|
294
|
+
},
|
|
295
|
+
lifecycle: { startOrResume: "org.lifecycle.startOrResume" },
|
|
296
|
+
prepareBootstrap: "org.prepareBootstrap",
|
|
297
|
+
prepareFounderAccount: "org.prepareFounderAccount",
|
|
298
|
+
profile: {
|
|
299
|
+
depositInstructions: "org.profile.depositInstructions",
|
|
300
|
+
get: "org.profile.get"
|
|
301
|
+
},
|
|
302
|
+
readTreasury: "org.readTreasury",
|
|
303
|
+
requests: {
|
|
304
|
+
cancel: "org.requests.cancel",
|
|
305
|
+
get: "org.requests.get",
|
|
306
|
+
issue: "org.requests.issue",
|
|
307
|
+
list: "org.requests.list"
|
|
308
|
+
},
|
|
309
|
+
recordFailure: "org.recordFailure",
|
|
310
|
+
recordProgress: "org.recordProgress",
|
|
311
|
+
resendInviteToken: "org.resendInviteToken",
|
|
312
|
+
resumeBootstrapSubmission: "org.resumeBootstrapSubmission",
|
|
313
|
+
retry: "org.retry",
|
|
314
|
+
retrySetup: "org.retrySetup",
|
|
315
|
+
roles: "org.roles",
|
|
316
|
+
startOrResume: "org.startOrResume",
|
|
317
|
+
submitBootstrap: "org.submitBootstrap",
|
|
318
|
+
treasury: "org.treasury"
|
|
319
|
+
},
|
|
320
|
+
organization: { setup: "organization.setup" },
|
|
321
|
+
organizationPayments: {
|
|
322
|
+
pay: "organizationPayments.pay",
|
|
323
|
+
payBatch: "organizationPayments.payBatch",
|
|
324
|
+
prepareExecution: "organizationPayments.prepareExecution"
|
|
325
|
+
},
|
|
326
|
+
organizationSetup: { getProofReceipt: "organizationSetup.getProofReceipt" },
|
|
327
|
+
organizations: { detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations" },
|
|
328
|
+
payments: {
|
|
329
|
+
cancel: "payments.cancel",
|
|
330
|
+
claim: "payments.claim",
|
|
331
|
+
createCommitment: "payments.createCommitment",
|
|
332
|
+
get: "payments.get",
|
|
333
|
+
ledger: "payments",
|
|
334
|
+
list: "payments.list",
|
|
335
|
+
pay: "payments.pay",
|
|
336
|
+
prepareExecution: "payments.prepareExecution",
|
|
337
|
+
prepareLifecycleExecution: "payments.prepareLifecycleExecution",
|
|
338
|
+
redirect: "payments.redirect",
|
|
339
|
+
submitCommandExecution: "payments.submitCommandExecution",
|
|
340
|
+
submitExecution: "payments.submitExecution"
|
|
341
|
+
},
|
|
342
|
+
paymentDocuments: {
|
|
343
|
+
render: "paymentDocuments.render",
|
|
344
|
+
verify: "paymentDocuments.verify"
|
|
345
|
+
},
|
|
346
|
+
payees: {
|
|
347
|
+
create: "payees.create",
|
|
348
|
+
get: "payees.get",
|
|
349
|
+
resolve: "payees.resolve"
|
|
350
|
+
},
|
|
351
|
+
payroll: {
|
|
352
|
+
authorizeRun: "payroll.authorizeRun",
|
|
353
|
+
groups: {
|
|
354
|
+
access: "payroll.groups",
|
|
355
|
+
list: "payroll.groups.list",
|
|
356
|
+
remove: "payroll.groups.remove",
|
|
357
|
+
save: "payroll.groups.save"
|
|
358
|
+
},
|
|
359
|
+
removeGroup: "payroll.removeGroup",
|
|
360
|
+
runs: "payroll.runs",
|
|
361
|
+
saveGroup: "payroll.saveGroup",
|
|
362
|
+
terms: "payroll.terms"
|
|
363
|
+
},
|
|
364
|
+
permission: {
|
|
365
|
+
command: "permission.command",
|
|
366
|
+
retryVerification: "permission.retryVerification",
|
|
367
|
+
verify: "permission.verify",
|
|
368
|
+
verifySubmitted: "permission.verifySubmitted"
|
|
369
|
+
},
|
|
370
|
+
permissions: {
|
|
371
|
+
assign: "permissions.assign",
|
|
372
|
+
change: "permissions.change",
|
|
373
|
+
create: "permissions.create",
|
|
374
|
+
get: "permissions.get",
|
|
375
|
+
list: "permissions.list",
|
|
376
|
+
prepareExecution: "permissions.prepareExecution",
|
|
377
|
+
replace: "permissions.replace",
|
|
378
|
+
revoke: "permissions.revoke",
|
|
379
|
+
submitExecution: "permissions.submitExecution"
|
|
380
|
+
},
|
|
381
|
+
publishableKeys: {
|
|
382
|
+
mint: "publishableKeys.mint",
|
|
383
|
+
revoke: "publishableKeys.revoke",
|
|
384
|
+
rotate: "publishableKeys.rotate"
|
|
385
|
+
},
|
|
386
|
+
requests: {
|
|
387
|
+
cancel: "requests.cancel",
|
|
388
|
+
get: "requests.get",
|
|
389
|
+
issue: "requests.issue",
|
|
390
|
+
list: "requests.list"
|
|
391
|
+
},
|
|
392
|
+
runtime: {
|
|
393
|
+
assign: "assign",
|
|
394
|
+
canSendOtp: "canSendOtp",
|
|
395
|
+
cancelCommitment: "cancel_commitment",
|
|
396
|
+
change: "change",
|
|
397
|
+
claimCommitment: "claim_commitment",
|
|
398
|
+
create: "create",
|
|
399
|
+
createCapxulClient: "createCapxulClient",
|
|
400
|
+
createCapxulClientWithOrgDeploymentSeams: "createCapxulClientWithOrgDeploymentSeams",
|
|
401
|
+
createCommitment: "create_commitment",
|
|
402
|
+
getConvexJwt: "getConvexJwt",
|
|
403
|
+
getSession: "getSession",
|
|
404
|
+
initialize: "initialize",
|
|
405
|
+
mutation: "mutation",
|
|
406
|
+
now: "now",
|
|
407
|
+
port: "port",
|
|
408
|
+
query: "query",
|
|
409
|
+
redirectCommitment: "redirect_commitment",
|
|
410
|
+
replace: "replace",
|
|
411
|
+
resolve: "resolve",
|
|
412
|
+
revoke: "revoke",
|
|
413
|
+
send: "send",
|
|
414
|
+
sendOtp: "sendOtp",
|
|
415
|
+
signIn: "signIn",
|
|
416
|
+
signOut: "signOut",
|
|
417
|
+
sleep: "sleep",
|
|
418
|
+
verifyOtp: "verifyOtp",
|
|
419
|
+
wallet: "wallet"
|
|
420
|
+
},
|
|
421
|
+
smartAccount: {
|
|
422
|
+
claim: "smartAccount.claim",
|
|
423
|
+
confirmDeployment: "smartAccount.confirmDeployment",
|
|
424
|
+
loadCurrent: "smartAccount.loadCurrent",
|
|
425
|
+
provision: "smartAccount.provision"
|
|
426
|
+
},
|
|
427
|
+
system: {
|
|
428
|
+
health: "system.health",
|
|
429
|
+
ping: "system.ping",
|
|
430
|
+
runtimeChain: "system.runtimeChain"
|
|
431
|
+
},
|
|
432
|
+
targets: { resolve: {
|
|
433
|
+
email: "targets.resolve.email",
|
|
434
|
+
handle: "targets.resolve.handle",
|
|
435
|
+
organization: "targets.resolve.organization",
|
|
436
|
+
payee: "targets.resolve.payee"
|
|
437
|
+
} },
|
|
438
|
+
testUsdc: { mint: "TestUSDC.mint" },
|
|
439
|
+
_internal: {
|
|
440
|
+
accounts: { fund: "_internal.accounts.fund" },
|
|
441
|
+
close: "_internal.close",
|
|
442
|
+
identity: {
|
|
443
|
+
completeProfile: "_internal.identity.completeProfile",
|
|
444
|
+
runFacade: "_internal.identity.runFacade",
|
|
445
|
+
send: "_internal.identity.send"
|
|
446
|
+
},
|
|
447
|
+
organizationSetup: { getProofReceipt: "_internal.organizationSetup.getProofReceipt" }
|
|
448
|
+
},
|
|
449
|
+
tenancy: {
|
|
450
|
+
revokeBackendTenancyConsent: "tenancy.revokeBackendTenancyConsent",
|
|
451
|
+
seedBackendTenancy: "tenancy.seedBackendTenancy"
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
function collectOperations(tree) {
|
|
455
|
+
return Object.values(tree).flatMap((value) => typeof value === "string" ? [value] : collectOperations(value));
|
|
456
|
+
}
|
|
457
|
+
const operations = new Set(collectOperations(CAPXUL_OPERATIONS));
|
|
458
|
+
function isCapxulOperation(value) {
|
|
459
|
+
return typeof value === "string" && operations.has(value);
|
|
460
|
+
}
|
|
461
|
+
function normalizeCapxulOperation(value) {
|
|
462
|
+
return isCapxulOperation(value) ? value : "unknown";
|
|
463
|
+
}
|
|
464
|
+
//#endregion
|
|
74
465
|
//#region src/index.ts
|
|
75
466
|
const TELEMETRY_EVENT_NAMES = [
|
|
76
467
|
"auth_otp_requested",
|
|
@@ -1618,4 +2009,4 @@ function rotr(value, bits) {
|
|
|
1618
2009
|
return value >>> bits | value << 32 - bits;
|
|
1619
2010
|
}
|
|
1620
2011
|
//#endregion
|
|
1621
|
-
export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, InMemoryTelemetryBusAdapter, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, maskCapturedNetworkRequest, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
|
2012
|
+
export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, InMemoryTelemetryBusAdapter, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|