@topolo/sdk 0.2.8 → 0.2.10
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/dist/index.cjs +518 -114
- package/dist/index.d.cts +443 -107
- package/dist/index.d.ts +443 -107
- package/dist/index.js +517 -114
- package/package.json +1 -1
- package/src/application-requirements.ts +3 -1
- package/src/applications.generated.ts +271 -97
- package/src/index.ts +17 -0
- package/src/modules/p2p.test.ts +218 -0
- package/src/modules/p2p.ts +451 -0
- package/src/services.generated.ts +24 -14
- package/src/services.test.ts +12 -5
package/dist/index.d.cts
CHANGED
|
@@ -32,39 +32,44 @@ interface AgentIdentity {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
declare const SERVICES: {
|
|
35
|
-
readonly agent: "https://
|
|
35
|
+
readonly agent: "https://agent-api.topolo.app";
|
|
36
36
|
readonly auth: "https://auth.topolo.app";
|
|
37
37
|
readonly books: "https://books.topolo.app";
|
|
38
38
|
readonly bugfix: "https://bugfix.topolo.app";
|
|
39
|
-
readonly bytes: "https://
|
|
39
|
+
readonly bytes: "https://bytes-api.topolo.app";
|
|
40
40
|
readonly calendar: "https://calendar.topolo.app";
|
|
41
|
-
readonly capacity: "https://
|
|
41
|
+
readonly capacity: "https://capacity.topolo.app";
|
|
42
42
|
readonly chat: "https://chat.topolo.app";
|
|
43
|
-
readonly commerce: "https://
|
|
43
|
+
readonly commerce: "https://commerce-api.topolo.app";
|
|
44
44
|
readonly compose: "https://compose.topolo.app";
|
|
45
45
|
readonly crm: "https://crm-api.topolo.app";
|
|
46
|
-
readonly customer_success: "https://
|
|
47
|
-
readonly
|
|
46
|
+
readonly customer_success: "https://success.topolo.app";
|
|
47
|
+
readonly director: "https://director.topolo.app";
|
|
48
|
+
readonly feed: "https://feed-api.topolo.app";
|
|
48
49
|
readonly flow: "https://flow.topolo.app";
|
|
49
|
-
readonly forecast: "https://forecast-
|
|
50
|
+
readonly forecast: "https://forecast-api.topolo.app";
|
|
50
51
|
readonly forms: "https://forms.topolo.app";
|
|
51
52
|
readonly insights: "https://insights.topolo.app";
|
|
52
53
|
readonly inventory: "https://inventory.topolo.app";
|
|
53
|
-
readonly learn: "https://
|
|
54
|
+
readonly learn: "https://learn-api.topolo.app";
|
|
55
|
+
readonly localize: "https://localize.topolo.app";
|
|
54
56
|
readonly mail: "https://mail.topolo.app";
|
|
55
|
-
readonly mdm: "https://
|
|
57
|
+
readonly mdm: "https://mdm-api.topolo.app";
|
|
56
58
|
readonly messaging: "https://messages.topolo.app";
|
|
57
|
-
readonly nexus: "https://
|
|
59
|
+
readonly nexus: "https://nexus-api.topolo.app";
|
|
58
60
|
readonly notify: "https://notify.topolo.app";
|
|
59
61
|
readonly one: "https://one.topolo.app";
|
|
60
|
-
readonly
|
|
62
|
+
readonly "one.ai": "https://ai.one.topolo.app";
|
|
63
|
+
readonly p2p: "https://p2p.topolo.app";
|
|
64
|
+
readonly pay: "https://pay.topolo.app";
|
|
61
65
|
readonly people: "https://people.topolo.app";
|
|
62
66
|
readonly "quro.api": "https://api.ol0.me";
|
|
63
67
|
readonly "quro.redirect": "https://ol0.me";
|
|
64
68
|
readonly roadmapper: "https://roadmapper-api.topolo.app";
|
|
65
69
|
readonly sign: "https://sign.topolo.app";
|
|
66
|
-
readonly social_studio: "https://
|
|
67
|
-
readonly socialize: "https://socialize-
|
|
70
|
+
readonly social_studio: "https://studio-api.topolo.app";
|
|
71
|
+
readonly socialize: "https://socialize-api.topolo.app";
|
|
72
|
+
readonly status: "https://status.topolo.app";
|
|
68
73
|
readonly support: "https://support.topolo.app";
|
|
69
74
|
readonly survey: "https://survey.topolo.app";
|
|
70
75
|
readonly voice: "https://voice.topolo.app";
|
|
@@ -85,7 +90,7 @@ declare const APPLICATIONS: {
|
|
|
85
90
|
readonly name: "topoloadmin";
|
|
86
91
|
readonly kind: "pages";
|
|
87
92
|
readonly apiUrl: null;
|
|
88
|
-
readonly domains: readonly [];
|
|
93
|
+
readonly domains: readonly ["admin.topolo.app"];
|
|
89
94
|
readonly routes: readonly [];
|
|
90
95
|
readonly serviceId: null;
|
|
91
96
|
}];
|
|
@@ -101,14 +106,14 @@ declare const APPLICATIONS: {
|
|
|
101
106
|
readonly name: "topolo-agent";
|
|
102
107
|
readonly kind: "pages";
|
|
103
108
|
readonly apiUrl: null;
|
|
104
|
-
readonly domains: readonly [];
|
|
109
|
+
readonly domains: readonly ["agent.topolo.app"];
|
|
105
110
|
readonly routes: readonly [];
|
|
106
111
|
readonly serviceId: null;
|
|
107
112
|
}, {
|
|
108
113
|
readonly name: "topolo-agent-worker";
|
|
109
114
|
readonly kind: "worker";
|
|
110
|
-
readonly apiUrl: "https://
|
|
111
|
-
readonly domains: readonly [];
|
|
115
|
+
readonly apiUrl: "https://agent-api.topolo.app";
|
|
116
|
+
readonly domains: readonly ["agent-api.topolo.app"];
|
|
112
117
|
readonly routes: readonly [];
|
|
113
118
|
readonly serviceId: "agent";
|
|
114
119
|
}];
|
|
@@ -169,17 +174,17 @@ declare const APPLICATIONS: {
|
|
|
169
174
|
readonly productionUrl: "https://bytes.topolo.app";
|
|
170
175
|
readonly services: readonly ["bytes"];
|
|
171
176
|
readonly deployTargets: readonly [{
|
|
172
|
-
readonly name: "bytes";
|
|
177
|
+
readonly name: "topolo-bytes";
|
|
173
178
|
readonly kind: "pages";
|
|
174
179
|
readonly apiUrl: null;
|
|
175
|
-
readonly domains: readonly [];
|
|
180
|
+
readonly domains: readonly ["bytes.topolo.app"];
|
|
176
181
|
readonly routes: readonly [];
|
|
177
182
|
readonly serviceId: null;
|
|
178
183
|
}, {
|
|
179
|
-
readonly name: "
|
|
184
|
+
readonly name: "topolo-bytes-api";
|
|
180
185
|
readonly kind: "worker";
|
|
181
|
-
readonly apiUrl: "https://
|
|
182
|
-
readonly domains: readonly [];
|
|
186
|
+
readonly apiUrl: "https://bytes-api.topolo.app";
|
|
187
|
+
readonly domains: readonly ["bytes-api.topolo.app"];
|
|
183
188
|
readonly routes: readonly [];
|
|
184
189
|
readonly serviceId: "bytes";
|
|
185
190
|
}];
|
|
@@ -210,8 +215,8 @@ declare const APPLICATIONS: {
|
|
|
210
215
|
readonly deployTargets: readonly [{
|
|
211
216
|
readonly name: "topolo-capacity";
|
|
212
217
|
readonly kind: "worker";
|
|
213
|
-
readonly apiUrl: "https://
|
|
214
|
-
readonly domains: readonly ["capacity.topolo.app"
|
|
218
|
+
readonly apiUrl: "https://capacity.topolo.app";
|
|
219
|
+
readonly domains: readonly ["capacity.topolo.app"];
|
|
215
220
|
readonly routes: readonly [];
|
|
216
221
|
readonly serviceId: "capacity";
|
|
217
222
|
}];
|
|
@@ -244,7 +249,7 @@ declare const APPLICATIONS: {
|
|
|
244
249
|
readonly cloudcontrol: {
|
|
245
250
|
readonly id: "cloudcontrol";
|
|
246
251
|
readonly appDir: "TopoloCloudControl";
|
|
247
|
-
readonly name: "
|
|
252
|
+
readonly name: "cloudcontrol";
|
|
248
253
|
readonly packageName: "topolo-cloudcontrol";
|
|
249
254
|
readonly productionUrl: null;
|
|
250
255
|
readonly services: readonly [];
|
|
@@ -260,29 +265,29 @@ declare const APPLICATIONS: {
|
|
|
260
265
|
readonly deployTargets: readonly [{
|
|
261
266
|
readonly name: "topolo-commerce-api";
|
|
262
267
|
readonly kind: "worker";
|
|
263
|
-
readonly apiUrl: "https://
|
|
264
|
-
readonly domains: readonly ["
|
|
268
|
+
readonly apiUrl: "https://commerce-api.topolo.app";
|
|
269
|
+
readonly domains: readonly ["commerce-api.topolo.app"];
|
|
265
270
|
readonly routes: readonly [];
|
|
266
271
|
readonly serviceId: "commerce";
|
|
267
272
|
}, {
|
|
268
273
|
readonly name: "topolo-commerce-guest-web";
|
|
269
274
|
readonly kind: "pages";
|
|
270
275
|
readonly apiUrl: null;
|
|
271
|
-
readonly domains: readonly ["guest.topolo.app"
|
|
276
|
+
readonly domains: readonly ["guest.topolo.app"];
|
|
272
277
|
readonly routes: readonly [];
|
|
273
278
|
readonly serviceId: null;
|
|
274
279
|
}, {
|
|
275
280
|
readonly name: "topolo-commerce-ops-web";
|
|
276
281
|
readonly kind: "pages";
|
|
277
282
|
readonly apiUrl: null;
|
|
278
|
-
readonly domains: readonly ["commerce.topolo.app"
|
|
283
|
+
readonly domains: readonly ["commerce.topolo.app"];
|
|
279
284
|
readonly routes: readonly [];
|
|
280
285
|
readonly serviceId: null;
|
|
281
286
|
}, {
|
|
282
287
|
readonly name: "topolo-commerce-station-web";
|
|
283
288
|
readonly kind: "pages";
|
|
284
289
|
readonly apiUrl: null;
|
|
285
|
-
readonly domains: readonly ["station-commerce.topolo.app"
|
|
290
|
+
readonly domains: readonly ["station-commerce.topolo.app"];
|
|
286
291
|
readonly routes: readonly [];
|
|
287
292
|
readonly serviceId: null;
|
|
288
293
|
}];
|
|
@@ -311,37 +316,53 @@ declare const APPLICATIONS: {
|
|
|
311
316
|
readonly productionUrl: "https://crm.topolo.app";
|
|
312
317
|
readonly services: readonly ["crm"];
|
|
313
318
|
readonly deployTargets: readonly [{
|
|
314
|
-
readonly name: "topolo-crm-
|
|
315
|
-
readonly kind: "pages";
|
|
316
|
-
readonly apiUrl: null;
|
|
317
|
-
readonly domains: readonly [];
|
|
318
|
-
readonly routes: readonly [];
|
|
319
|
-
readonly serviceId: null;
|
|
320
|
-
}, {
|
|
321
|
-
readonly name: "topolo-crm-worker";
|
|
319
|
+
readonly name: "topolo-crm-api";
|
|
322
320
|
readonly kind: "worker";
|
|
323
321
|
readonly apiUrl: "https://crm-api.topolo.app";
|
|
324
|
-
readonly domains: readonly [];
|
|
322
|
+
readonly domains: readonly ["crm-api.topolo.app"];
|
|
325
323
|
readonly routes: readonly [];
|
|
326
324
|
readonly serviceId: "crm";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "topolo-crm-app";
|
|
327
|
+
readonly kind: "pages";
|
|
328
|
+
readonly apiUrl: null;
|
|
329
|
+
readonly domains: readonly ["crm.topolo.app"];
|
|
330
|
+
readonly routes: readonly [];
|
|
331
|
+
readonly serviceId: null;
|
|
327
332
|
}];
|
|
328
333
|
};
|
|
329
334
|
readonly customer_success: {
|
|
330
335
|
readonly id: "customer_success";
|
|
331
|
-
readonly appDir: "
|
|
332
|
-
readonly name: "topolo-
|
|
333
|
-
readonly packageName: "topolo-
|
|
334
|
-
readonly productionUrl: "https://
|
|
336
|
+
readonly appDir: "TopoloSuccess";
|
|
337
|
+
readonly name: "topolo-success";
|
|
338
|
+
readonly packageName: "topolo-success";
|
|
339
|
+
readonly productionUrl: "https://success.topolo.app";
|
|
335
340
|
readonly services: readonly ["customer_success"];
|
|
336
341
|
readonly deployTargets: readonly [{
|
|
337
|
-
readonly name: "topolo-
|
|
342
|
+
readonly name: "topolo-success";
|
|
338
343
|
readonly kind: "worker";
|
|
339
|
-
readonly apiUrl: "https://
|
|
340
|
-
readonly domains: readonly ["
|
|
341
|
-
readonly routes: readonly ["
|
|
344
|
+
readonly apiUrl: "https://success.topolo.app";
|
|
345
|
+
readonly domains: readonly ["success.topolo.app"];
|
|
346
|
+
readonly routes: readonly ["success.topolo.app"];
|
|
342
347
|
readonly serviceId: "customer_success";
|
|
343
348
|
}];
|
|
344
349
|
};
|
|
350
|
+
readonly d1_backup: {
|
|
351
|
+
readonly id: "d1_backup";
|
|
352
|
+
readonly appDir: "TopoloD1Backup";
|
|
353
|
+
readonly name: "topolo-d1-backup";
|
|
354
|
+
readonly packageName: "topolo-d1-backup";
|
|
355
|
+
readonly productionUrl: null;
|
|
356
|
+
readonly services: readonly [];
|
|
357
|
+
readonly deployTargets: readonly [{
|
|
358
|
+
readonly name: "topolo-d1-backup";
|
|
359
|
+
readonly kind: "worker";
|
|
360
|
+
readonly apiUrl: null;
|
|
361
|
+
readonly domains: readonly [];
|
|
362
|
+
readonly routes: readonly [];
|
|
363
|
+
readonly serviceId: null;
|
|
364
|
+
}];
|
|
365
|
+
};
|
|
345
366
|
readonly developers: {
|
|
346
367
|
readonly id: "developers";
|
|
347
368
|
readonly appDir: "TopoloDevelopers";
|
|
@@ -350,6 +371,13 @@ declare const APPLICATIONS: {
|
|
|
350
371
|
readonly productionUrl: "https://developers.topolo.app";
|
|
351
372
|
readonly services: readonly [];
|
|
352
373
|
readonly deployTargets: readonly [{
|
|
374
|
+
readonly name: "topolo-catalog-cron";
|
|
375
|
+
readonly kind: "worker";
|
|
376
|
+
readonly apiUrl: null;
|
|
377
|
+
readonly domains: readonly [];
|
|
378
|
+
readonly routes: readonly [];
|
|
379
|
+
readonly serviceId: null;
|
|
380
|
+
}, {
|
|
353
381
|
readonly name: "topolo-developers";
|
|
354
382
|
readonly kind: "pages";
|
|
355
383
|
readonly apiUrl: null;
|
|
@@ -358,6 +386,22 @@ declare const APPLICATIONS: {
|
|
|
358
386
|
readonly serviceId: null;
|
|
359
387
|
}];
|
|
360
388
|
};
|
|
389
|
+
readonly director: {
|
|
390
|
+
readonly id: "director";
|
|
391
|
+
readonly appDir: "TopoloDirector";
|
|
392
|
+
readonly name: "topolo-director";
|
|
393
|
+
readonly packageName: "topolo-director";
|
|
394
|
+
readonly productionUrl: "https://director.topolo.app";
|
|
395
|
+
readonly services: readonly ["director"];
|
|
396
|
+
readonly deployTargets: readonly [{
|
|
397
|
+
readonly name: "topolo-director";
|
|
398
|
+
readonly kind: "worker";
|
|
399
|
+
readonly apiUrl: "https://director.topolo.app";
|
|
400
|
+
readonly domains: readonly ["director.topolo.app"];
|
|
401
|
+
readonly routes: readonly ["director.topolo.app"];
|
|
402
|
+
readonly serviceId: "director";
|
|
403
|
+
}];
|
|
404
|
+
};
|
|
361
405
|
readonly docs: {
|
|
362
406
|
readonly id: "docs";
|
|
363
407
|
readonly appDir: "TopoloDocs";
|
|
@@ -378,22 +422,22 @@ declare const APPLICATIONS: {
|
|
|
378
422
|
readonly id: "feed";
|
|
379
423
|
readonly appDir: "TopoloFeed";
|
|
380
424
|
readonly name: "TopoloFeed";
|
|
381
|
-
readonly packageName:
|
|
382
|
-
readonly productionUrl: "https://
|
|
425
|
+
readonly packageName: "topolo-feed";
|
|
426
|
+
readonly productionUrl: "https://feed-api.topolo.app";
|
|
383
427
|
readonly services: readonly ["feed"];
|
|
384
428
|
readonly deployTargets: readonly [{
|
|
385
429
|
readonly name: "topolo-feed-analytics-api";
|
|
386
430
|
readonly kind: "worker";
|
|
387
|
-
readonly apiUrl: "https://
|
|
388
|
-
readonly domains: readonly ["
|
|
389
|
-
readonly routes: readonly ["
|
|
431
|
+
readonly apiUrl: "https://feed-analytics-api.topolo.app";
|
|
432
|
+
readonly domains: readonly ["feed-analytics-api.topolo.app"];
|
|
433
|
+
readonly routes: readonly ["feed-analytics-api.topolo.app"];
|
|
390
434
|
readonly serviceId: null;
|
|
391
435
|
}, {
|
|
392
436
|
readonly name: "topolo-feed-api";
|
|
393
437
|
readonly kind: "worker";
|
|
394
|
-
readonly apiUrl: "https://
|
|
395
|
-
readonly domains: readonly ["
|
|
396
|
-
readonly routes: readonly ["
|
|
438
|
+
readonly apiUrl: "https://feed-api.topolo.app";
|
|
439
|
+
readonly domains: readonly ["feed-api.topolo.app"];
|
|
440
|
+
readonly routes: readonly ["feed-api.topolo.app"];
|
|
397
441
|
readonly serviceId: "feed";
|
|
398
442
|
}];
|
|
399
443
|
};
|
|
@@ -421,17 +465,17 @@ declare const APPLICATIONS: {
|
|
|
421
465
|
readonly productionUrl: "https://forecast.topolo.app";
|
|
422
466
|
readonly services: readonly ["forecast"];
|
|
423
467
|
readonly deployTargets: readonly [{
|
|
424
|
-
readonly name: "forecast";
|
|
468
|
+
readonly name: "topolo-forecast";
|
|
425
469
|
readonly kind: "pages";
|
|
426
470
|
readonly apiUrl: null;
|
|
427
|
-
readonly domains: readonly [];
|
|
471
|
+
readonly domains: readonly ["forecast.topolo.app"];
|
|
428
472
|
readonly routes: readonly [];
|
|
429
473
|
readonly serviceId: null;
|
|
430
474
|
}, {
|
|
431
|
-
readonly name: "forecast-
|
|
475
|
+
readonly name: "topolo-forecast-api";
|
|
432
476
|
readonly kind: "worker";
|
|
433
|
-
readonly apiUrl: "https://forecast-
|
|
434
|
-
readonly domains: readonly [];
|
|
477
|
+
readonly apiUrl: "https://forecast-api.topolo.app";
|
|
478
|
+
readonly domains: readonly ["forecast-api.topolo.app"];
|
|
435
479
|
readonly routes: readonly [];
|
|
436
480
|
readonly serviceId: "forecast";
|
|
437
481
|
}];
|
|
@@ -492,21 +536,37 @@ declare const APPLICATIONS: {
|
|
|
492
536
|
readonly productionUrl: "https://learn.topolo.app";
|
|
493
537
|
readonly services: readonly ["learn"];
|
|
494
538
|
readonly deployTargets: readonly [{
|
|
495
|
-
readonly name: "
|
|
539
|
+
readonly name: "topolo-learn";
|
|
496
540
|
readonly kind: "pages";
|
|
497
541
|
readonly apiUrl: null;
|
|
498
542
|
readonly domains: readonly ["learn.topolo.app"];
|
|
499
543
|
readonly routes: readonly [];
|
|
500
544
|
readonly serviceId: null;
|
|
501
545
|
}, {
|
|
502
|
-
readonly name: "
|
|
546
|
+
readonly name: "topolo-learn-api";
|
|
503
547
|
readonly kind: "worker";
|
|
504
|
-
readonly apiUrl: "https://
|
|
505
|
-
readonly domains: readonly ["
|
|
548
|
+
readonly apiUrl: "https://learn-api.topolo.app";
|
|
549
|
+
readonly domains: readonly ["learn-api.topolo.app"];
|
|
506
550
|
readonly routes: readonly [];
|
|
507
551
|
readonly serviceId: "learn";
|
|
508
552
|
}];
|
|
509
553
|
};
|
|
554
|
+
readonly localize: {
|
|
555
|
+
readonly id: "localize";
|
|
556
|
+
readonly appDir: "TopoloLocalize";
|
|
557
|
+
readonly name: "topolo-localize";
|
|
558
|
+
readonly packageName: "topolo-localize";
|
|
559
|
+
readonly productionUrl: "https://localize.topolo.app";
|
|
560
|
+
readonly services: readonly ["localize"];
|
|
561
|
+
readonly deployTargets: readonly [{
|
|
562
|
+
readonly name: "topolo-localize";
|
|
563
|
+
readonly kind: "worker";
|
|
564
|
+
readonly apiUrl: "https://localize.topolo.app";
|
|
565
|
+
readonly domains: readonly ["localize.topolo.app"];
|
|
566
|
+
readonly routes: readonly ["localize.topolo.app"];
|
|
567
|
+
readonly serviceId: "localize";
|
|
568
|
+
}];
|
|
569
|
+
};
|
|
510
570
|
readonly mail: {
|
|
511
571
|
readonly id: "mail";
|
|
512
572
|
readonly appDir: "TopoloMail";
|
|
@@ -536,21 +596,21 @@ declare const APPLICATIONS: {
|
|
|
536
596
|
readonly id: "mdm";
|
|
537
597
|
readonly appDir: "TopoloMDM";
|
|
538
598
|
readonly name: "TopoloMDM";
|
|
539
|
-
readonly packageName:
|
|
599
|
+
readonly packageName: "topolo-mdm";
|
|
540
600
|
readonly productionUrl: "https://mdm.topolo.app";
|
|
541
601
|
readonly services: readonly ["mdm"];
|
|
542
602
|
readonly deployTargets: readonly [{
|
|
543
603
|
readonly name: "topolo-mdm-api";
|
|
544
604
|
readonly kind: "worker";
|
|
545
|
-
readonly apiUrl: "https://
|
|
546
|
-
readonly domains: readonly ["
|
|
547
|
-
readonly routes: readonly ["
|
|
605
|
+
readonly apiUrl: "https://mdm-api.topolo.app";
|
|
606
|
+
readonly domains: readonly ["mdm-api.topolo.app"];
|
|
607
|
+
readonly routes: readonly ["mdm-api.topolo.app"];
|
|
548
608
|
readonly serviceId: "mdm";
|
|
549
609
|
}, {
|
|
550
610
|
readonly name: "topolo-mdm-console";
|
|
551
611
|
readonly kind: "pages";
|
|
552
612
|
readonly apiUrl: null;
|
|
553
|
-
readonly domains: readonly ["mdm.topolo.app"
|
|
613
|
+
readonly domains: readonly ["mdm.topolo.app"];
|
|
554
614
|
readonly routes: readonly ["mdm.topolo.app"];
|
|
555
615
|
readonly serviceId: null;
|
|
556
616
|
}];
|
|
@@ -589,14 +649,14 @@ declare const APPLICATIONS: {
|
|
|
589
649
|
readonly name: "topolo-nexus-dashboard";
|
|
590
650
|
readonly kind: "pages";
|
|
591
651
|
readonly apiUrl: null;
|
|
592
|
-
readonly domains: readonly ["nexus.topolo.app"
|
|
652
|
+
readonly domains: readonly ["nexus.topolo.app"];
|
|
593
653
|
readonly routes: readonly [];
|
|
594
654
|
readonly serviceId: null;
|
|
595
655
|
}, {
|
|
596
656
|
readonly name: "topolo-nexus-gateway";
|
|
597
657
|
readonly kind: "worker";
|
|
598
|
-
readonly apiUrl: "https://
|
|
599
|
-
readonly domains: readonly ["
|
|
658
|
+
readonly apiUrl: "https://nexus-api.topolo.app";
|
|
659
|
+
readonly domains: readonly ["nexus-api.topolo.app"];
|
|
600
660
|
readonly routes: readonly [];
|
|
601
661
|
readonly serviceId: "nexus";
|
|
602
662
|
}];
|
|
@@ -617,43 +677,68 @@ declare const APPLICATIONS: {
|
|
|
617
677
|
readonly serviceId: "notify";
|
|
618
678
|
}];
|
|
619
679
|
};
|
|
680
|
+
readonly observability_watch: {
|
|
681
|
+
readonly id: "observability_watch";
|
|
682
|
+
readonly appDir: "TopoloObservabilityWatch";
|
|
683
|
+
readonly name: "topolo-observability-watch";
|
|
684
|
+
readonly packageName: "topolo-observability-watch";
|
|
685
|
+
readonly productionUrl: null;
|
|
686
|
+
readonly services: readonly [];
|
|
687
|
+
readonly deployTargets: readonly [];
|
|
688
|
+
};
|
|
620
689
|
readonly one: {
|
|
621
690
|
readonly id: "one";
|
|
622
691
|
readonly appDir: "TopoloOne";
|
|
623
692
|
readonly name: "topolo-oneclick-sso";
|
|
624
693
|
readonly packageName: "topolo-oneclick-sso";
|
|
625
694
|
readonly productionUrl: "https://one.topolo.app";
|
|
626
|
-
readonly services: readonly ["one"];
|
|
695
|
+
readonly services: readonly ["one", "one.ai"];
|
|
627
696
|
readonly deployTargets: readonly [{
|
|
628
697
|
readonly name: "ai-chat-rag";
|
|
629
698
|
readonly kind: "worker";
|
|
630
|
-
readonly apiUrl:
|
|
631
|
-
readonly domains: readonly ["ai
|
|
699
|
+
readonly apiUrl: "https://ai.one.topolo.app";
|
|
700
|
+
readonly domains: readonly ["ai.one.topolo.app"];
|
|
632
701
|
readonly routes: readonly [];
|
|
633
|
-
readonly serviceId:
|
|
702
|
+
readonly serviceId: "one.ai";
|
|
634
703
|
}, {
|
|
635
|
-
readonly name: "
|
|
704
|
+
readonly name: "topolo-one";
|
|
636
705
|
readonly kind: "pages";
|
|
637
706
|
readonly apiUrl: null;
|
|
638
|
-
readonly domains: readonly ["
|
|
707
|
+
readonly domains: readonly ["one.topolo.app"];
|
|
639
708
|
readonly routes: readonly [];
|
|
640
709
|
readonly serviceId: null;
|
|
641
710
|
}, {
|
|
642
|
-
readonly name: "
|
|
711
|
+
readonly name: "topolo-one-website";
|
|
643
712
|
readonly kind: "worker";
|
|
644
713
|
readonly apiUrl: null;
|
|
645
|
-
readonly domains: readonly ["
|
|
714
|
+
readonly domains: readonly ["topolo.io", "www.topolo.io"];
|
|
646
715
|
readonly routes: readonly [];
|
|
647
716
|
readonly serviceId: null;
|
|
648
717
|
}, {
|
|
649
|
-
readonly name: "
|
|
718
|
+
readonly name: "topolo-one-worker";
|
|
650
719
|
readonly kind: "worker";
|
|
651
720
|
readonly apiUrl: "https://one.topolo.app";
|
|
652
|
-
readonly domains: readonly [];
|
|
653
|
-
readonly routes: readonly ["one.topolo.app/*"];
|
|
721
|
+
readonly domains: readonly ["one.topolo.app", "topolo.app", "www.topolo.app"];
|
|
722
|
+
readonly routes: readonly ["one.topolo.app/*", "topolo.app", "www.topolo.app/*"];
|
|
654
723
|
readonly serviceId: "one";
|
|
655
724
|
}];
|
|
656
725
|
};
|
|
726
|
+
readonly p2p: {
|
|
727
|
+
readonly id: "p2p";
|
|
728
|
+
readonly appDir: "TopoloP2P";
|
|
729
|
+
readonly name: "topolo-p2p";
|
|
730
|
+
readonly packageName: "topolo-p2p";
|
|
731
|
+
readonly productionUrl: "https://p2p.topolo.app";
|
|
732
|
+
readonly services: readonly ["p2p"];
|
|
733
|
+
readonly deployTargets: readonly [{
|
|
734
|
+
readonly name: "topolo-p2p";
|
|
735
|
+
readonly kind: "worker";
|
|
736
|
+
readonly apiUrl: "https://p2p.topolo.app";
|
|
737
|
+
readonly domains: readonly ["p2p.topolo.app"];
|
|
738
|
+
readonly routes: readonly ["p2p.topolo.app"];
|
|
739
|
+
readonly serviceId: "p2p";
|
|
740
|
+
}];
|
|
741
|
+
};
|
|
657
742
|
readonly pay: {
|
|
658
743
|
readonly id: "pay";
|
|
659
744
|
readonly appDir: "TopoloPay";
|
|
@@ -664,8 +749,8 @@ declare const APPLICATIONS: {
|
|
|
664
749
|
readonly deployTargets: readonly [{
|
|
665
750
|
readonly name: "topolo-pay";
|
|
666
751
|
readonly kind: "worker";
|
|
667
|
-
readonly apiUrl: "https://
|
|
668
|
-
readonly domains: readonly [];
|
|
752
|
+
readonly apiUrl: "https://pay.topolo.app";
|
|
753
|
+
readonly domains: readonly ["pay.topolo.app"];
|
|
669
754
|
readonly routes: readonly [];
|
|
670
755
|
readonly serviceId: "pay";
|
|
671
756
|
}];
|
|
@@ -686,32 +771,41 @@ declare const APPLICATIONS: {
|
|
|
686
771
|
readonly serviceId: "people";
|
|
687
772
|
}];
|
|
688
773
|
};
|
|
774
|
+
readonly pulse: {
|
|
775
|
+
readonly id: "pulse";
|
|
776
|
+
readonly appDir: "TopoloPulse";
|
|
777
|
+
readonly name: "topolo-pulse";
|
|
778
|
+
readonly packageName: "topolo-pulse";
|
|
779
|
+
readonly productionUrl: null;
|
|
780
|
+
readonly services: readonly [];
|
|
781
|
+
readonly deployTargets: readonly [];
|
|
782
|
+
};
|
|
689
783
|
readonly quro: {
|
|
690
784
|
readonly id: "quro";
|
|
691
785
|
readonly appDir: "TopoloQuro";
|
|
692
786
|
readonly name: "TopoloQuro";
|
|
693
|
-
readonly packageName:
|
|
787
|
+
readonly packageName: "topolo-quro";
|
|
694
788
|
readonly productionUrl: "https://quro.topolo.app";
|
|
695
789
|
readonly services: readonly ["quro.api", "quro.redirect"];
|
|
696
790
|
readonly deployTargets: readonly [{
|
|
697
791
|
readonly name: "quro-api";
|
|
698
792
|
readonly kind: "worker";
|
|
699
793
|
readonly apiUrl: "https://api.ol0.me";
|
|
700
|
-
readonly domains: readonly [];
|
|
794
|
+
readonly domains: readonly ["api.ol0.me"];
|
|
701
795
|
readonly routes: readonly [];
|
|
702
796
|
readonly serviceId: "quro.api";
|
|
703
797
|
}, {
|
|
704
798
|
readonly name: "quro-redirect-system";
|
|
705
799
|
readonly kind: "worker";
|
|
706
800
|
readonly apiUrl: "https://ol0.me";
|
|
707
|
-
readonly domains: readonly [];
|
|
801
|
+
readonly domains: readonly ["ol0.me"];
|
|
708
802
|
readonly routes: readonly ["ol0.me/*"];
|
|
709
803
|
readonly serviceId: "quro.redirect";
|
|
710
804
|
}, {
|
|
711
805
|
readonly name: "quro-ui";
|
|
712
806
|
readonly kind: "pages";
|
|
713
807
|
readonly apiUrl: null;
|
|
714
|
-
readonly domains: readonly [];
|
|
808
|
+
readonly domains: readonly ["quro.topolo.app"];
|
|
715
809
|
readonly routes: readonly [];
|
|
716
810
|
readonly serviceId: null;
|
|
717
811
|
}];
|
|
@@ -724,14 +818,14 @@ declare const APPLICATIONS: {
|
|
|
724
818
|
readonly productionUrl: "https://roadmapper.topolo.app";
|
|
725
819
|
readonly services: readonly ["roadmapper"];
|
|
726
820
|
readonly deployTargets: readonly [{
|
|
727
|
-
readonly name: "roadmapper";
|
|
821
|
+
readonly name: "topolo-roadmapper";
|
|
728
822
|
readonly kind: "pages";
|
|
729
823
|
readonly apiUrl: null;
|
|
730
824
|
readonly domains: readonly ["roadmapper.topolo.app"];
|
|
731
825
|
readonly routes: readonly [];
|
|
732
826
|
readonly serviceId: null;
|
|
733
827
|
}, {
|
|
734
|
-
readonly name: "topolo-
|
|
828
|
+
readonly name: "topolo-roadmapper-api";
|
|
735
829
|
readonly kind: "worker";
|
|
736
830
|
readonly apiUrl: "https://roadmapper-api.topolo.app";
|
|
737
831
|
readonly domains: readonly ["roadmapper-api.topolo.app"];
|
|
@@ -766,14 +860,14 @@ declare const APPLICATIONS: {
|
|
|
766
860
|
readonly name: "topolo-social-studio";
|
|
767
861
|
readonly kind: "pages";
|
|
768
862
|
readonly apiUrl: null;
|
|
769
|
-
readonly domains: readonly [];
|
|
863
|
+
readonly domains: readonly ["studio.topolo.app"];
|
|
770
864
|
readonly routes: readonly [];
|
|
771
865
|
readonly serviceId: null;
|
|
772
866
|
}, {
|
|
773
867
|
readonly name: "topolo-social-studio-api";
|
|
774
868
|
readonly kind: "worker";
|
|
775
|
-
readonly apiUrl: "https://
|
|
776
|
-
readonly domains: readonly [];
|
|
869
|
+
readonly apiUrl: "https://studio-api.topolo.app";
|
|
870
|
+
readonly domains: readonly ["studio-api.topolo.app"];
|
|
777
871
|
readonly routes: readonly [];
|
|
778
872
|
readonly serviceId: "social_studio";
|
|
779
873
|
}, {
|
|
@@ -793,21 +887,21 @@ declare const APPLICATIONS: {
|
|
|
793
887
|
readonly productionUrl: "https://socialize.topolo.app";
|
|
794
888
|
readonly services: readonly ["socialize"];
|
|
795
889
|
readonly deployTargets: readonly [{
|
|
796
|
-
readonly name: "socialize";
|
|
890
|
+
readonly name: "topolo-socialize";
|
|
797
891
|
readonly kind: "pages";
|
|
798
892
|
readonly apiUrl: null;
|
|
799
|
-
readonly domains: readonly [];
|
|
893
|
+
readonly domains: readonly ["socialize.topolo.app"];
|
|
800
894
|
readonly routes: readonly [];
|
|
801
895
|
readonly serviceId: null;
|
|
802
896
|
}, {
|
|
803
|
-
readonly name: "socialize-
|
|
897
|
+
readonly name: "topolo-socialize-api";
|
|
804
898
|
readonly kind: "worker";
|
|
805
|
-
readonly apiUrl: "https://socialize-
|
|
806
|
-
readonly domains: readonly [];
|
|
899
|
+
readonly apiUrl: "https://socialize-api.topolo.app";
|
|
900
|
+
readonly domains: readonly ["socialize-api.topolo.app"];
|
|
807
901
|
readonly routes: readonly [];
|
|
808
902
|
readonly serviceId: "socialize";
|
|
809
903
|
}, {
|
|
810
|
-
readonly name: "socialize-
|
|
904
|
+
readonly name: "topolo-socialize-scheduler";
|
|
811
905
|
readonly kind: "worker";
|
|
812
906
|
readonly apiUrl: null;
|
|
813
907
|
readonly domains: readonly [];
|
|
@@ -815,6 +909,22 @@ declare const APPLICATIONS: {
|
|
|
815
909
|
readonly serviceId: null;
|
|
816
910
|
}];
|
|
817
911
|
};
|
|
912
|
+
readonly status: {
|
|
913
|
+
readonly id: "status";
|
|
914
|
+
readonly appDir: "TopoloStatus";
|
|
915
|
+
readonly name: "topolo-status";
|
|
916
|
+
readonly packageName: "topolo-status";
|
|
917
|
+
readonly productionUrl: "https://status.topolo.app";
|
|
918
|
+
readonly services: readonly ["status"];
|
|
919
|
+
readonly deployTargets: readonly [{
|
|
920
|
+
readonly name: "topolo-status";
|
|
921
|
+
readonly kind: "worker";
|
|
922
|
+
readonly apiUrl: "https://status.topolo.app";
|
|
923
|
+
readonly domains: readonly ["status.topolo.app"];
|
|
924
|
+
readonly routes: readonly ["status.topolo.app"];
|
|
925
|
+
readonly serviceId: "status";
|
|
926
|
+
}];
|
|
927
|
+
};
|
|
818
928
|
readonly support: {
|
|
819
929
|
readonly id: "support";
|
|
820
930
|
readonly appDir: "TopoloSupport";
|
|
@@ -871,21 +981,21 @@ declare const APPLICATIONS: {
|
|
|
871
981
|
readonly productionUrl: "https://web.topolo.app";
|
|
872
982
|
readonly services: readonly ["web"];
|
|
873
983
|
readonly deployTargets: readonly [{
|
|
874
|
-
readonly name: "
|
|
984
|
+
readonly name: "topolo-web-api";
|
|
875
985
|
readonly kind: "worker";
|
|
876
986
|
readonly apiUrl: "https://web-api.topolo.app";
|
|
877
987
|
readonly domains: readonly ["web-api.topolo.app"];
|
|
878
988
|
readonly routes: readonly [];
|
|
879
989
|
readonly serviceId: "web";
|
|
880
990
|
}, {
|
|
881
|
-
readonly name: "
|
|
991
|
+
readonly name: "topolo-web-runtime";
|
|
882
992
|
readonly kind: "worker";
|
|
883
993
|
readonly apiUrl: "https://sites.topolo.app";
|
|
884
994
|
readonly domains: readonly ["sites.topolo.app"];
|
|
885
995
|
readonly routes: readonly [];
|
|
886
996
|
readonly serviceId: null;
|
|
887
997
|
}, {
|
|
888
|
-
readonly name: "
|
|
998
|
+
readonly name: "topolo-web-studio";
|
|
889
999
|
readonly kind: "pages";
|
|
890
1000
|
readonly apiUrl: null;
|
|
891
1001
|
readonly domains: readonly ["web.topolo.app"];
|
|
@@ -898,7 +1008,7 @@ type ApplicationId = keyof typeof APPLICATIONS;
|
|
|
898
1008
|
type ApplicationCatalogEntry = (typeof APPLICATIONS)[ApplicationId];
|
|
899
1009
|
type ApplicationDeployTarget = ApplicationCatalogEntry['deployTargets'][number];
|
|
900
1010
|
|
|
901
|
-
declare const APPLICATION_REQUIREMENTS_VERSION = "2026-
|
|
1011
|
+
declare const APPLICATION_REQUIREMENTS_VERSION = "2026-05-01.1";
|
|
902
1012
|
type ApplicationRequirementScope = 'all' | 'browser' | 'api' | 'tooling' | 'agent_surface';
|
|
903
1013
|
interface ApplicationRequirement {
|
|
904
1014
|
id: string;
|
|
@@ -972,8 +1082,8 @@ declare const APPLICATION_REQUIREMENTS: readonly [{
|
|
|
972
1082
|
readonly title: "Use the shared shell, launcher, and account menu";
|
|
973
1083
|
readonly summary: "Browser applications should feel like one platform and should not create isolated navigation or account surfaces.";
|
|
974
1084
|
readonly appliesTo: readonly ["browser"];
|
|
975
|
-
readonly evidence: readonly ["@topolo/ui-kit is used for the platform shell where the app has authenticated UI", "The shared launcher/app switcher is reachable from authenticated app chrome", "Account menu and sign-out behavior use TopoloAppShell or TopoloAccountMenu"];
|
|
976
|
-
readonly implementation: readonly ["Use TopoloAppShell for authenticated app layouts", "Use TopoloAccountMenu when a partial-shell surface still needs account chrome", "Pass app-specific account actions as additive menu items instead of forking dropdowns", "Use shared design tokens and platform UI primitives before creating local equivalents", "Keep mobile and desktop shell behavior aligned with the platform UI kit"];
|
|
1085
|
+
readonly evidence: readonly ["@topolo/ui-kit is used for the platform shell where the app has authenticated UI", "The shared launcher/app switcher is reachable from authenticated app chrome", "Account menu and sign-out behavior use TopoloAppShell or TopoloAccountMenu", "Authenticated app body content stays inside the viewport on mobile and desktop widths"];
|
|
1086
|
+
readonly implementation: readonly ["Use TopoloAppShell for authenticated app layouts", "Use TopoloAccountMenu when a partial-shell surface still needs account chrome", "Pass app-specific account actions as additive menu items instead of forking dropdowns", "Use shared design tokens and platform UI primitives before creating local equivalents", "Keep mobile and desktop shell behavior aligned with the platform UI kit", "Constrain app-owned workspace wrappers with min-width: 0, width: auto, and viewport-aware max-width so shell padding cannot create page-level horizontal overflow"];
|
|
977
1087
|
}, {
|
|
978
1088
|
readonly id: "service-registration-and-scopes";
|
|
979
1089
|
readonly title: "Register protected APIs as platform services";
|
|
@@ -1225,6 +1335,232 @@ declare class IdentityModule {
|
|
|
1225
1335
|
whoami(): Promise<CredentialIntrospection>;
|
|
1226
1336
|
}
|
|
1227
1337
|
|
|
1338
|
+
type P2PPricingModel = 'free' | 'fixed' | 'metered' | 'quote' | 'invoice';
|
|
1339
|
+
interface P2PCapability {
|
|
1340
|
+
capability_id: string;
|
|
1341
|
+
publisher_org_id: string;
|
|
1342
|
+
app_id: string;
|
|
1343
|
+
service_id: string;
|
|
1344
|
+
name: string;
|
|
1345
|
+
description: string;
|
|
1346
|
+
category: string;
|
|
1347
|
+
pricing_model: P2PPricingModel;
|
|
1348
|
+
pricing_amount_minor: number | null;
|
|
1349
|
+
currency: string | null;
|
|
1350
|
+
requires_human_approval: boolean;
|
|
1351
|
+
supported_contexts: string[];
|
|
1352
|
+
trust_level: string;
|
|
1353
|
+
source_revision: string;
|
|
1354
|
+
synced_at: number;
|
|
1355
|
+
input_schema?: Record<string, unknown>;
|
|
1356
|
+
output_schema?: Record<string, unknown>;
|
|
1357
|
+
}
|
|
1358
|
+
interface PublishCapabilityInput {
|
|
1359
|
+
capability_id: string;
|
|
1360
|
+
publisher_org_id: string;
|
|
1361
|
+
app_id: string;
|
|
1362
|
+
service_id: string;
|
|
1363
|
+
name: string;
|
|
1364
|
+
description: string;
|
|
1365
|
+
category: string;
|
|
1366
|
+
pricing_model: P2PPricingModel;
|
|
1367
|
+
pricing_amount_minor?: number | null;
|
|
1368
|
+
currency?: string | null;
|
|
1369
|
+
requires_human_approval?: boolean;
|
|
1370
|
+
supported_contexts: string[];
|
|
1371
|
+
trust_level?: string;
|
|
1372
|
+
public_directory_visible: boolean;
|
|
1373
|
+
source_revision: string;
|
|
1374
|
+
input_schema?: Record<string, unknown>;
|
|
1375
|
+
output_schema?: Record<string, unknown>;
|
|
1376
|
+
/** Set when the caller is the platform P2P service publishing on behalf of another org. */
|
|
1377
|
+
acting_for_org_id?: string;
|
|
1378
|
+
}
|
|
1379
|
+
interface P2PActionRequestInput {
|
|
1380
|
+
capability_id: string;
|
|
1381
|
+
idempotency_key: string;
|
|
1382
|
+
inputs?: Record<string, unknown>;
|
|
1383
|
+
}
|
|
1384
|
+
interface P2PActionRow {
|
|
1385
|
+
request_id: string;
|
|
1386
|
+
buyer_org_id: string;
|
|
1387
|
+
seller_org_id: string;
|
|
1388
|
+
capability_id: string;
|
|
1389
|
+
initiating_principal_id: string;
|
|
1390
|
+
inputs: Record<string, unknown>;
|
|
1391
|
+
pricing_snapshot: Record<string, unknown>;
|
|
1392
|
+
state: string;
|
|
1393
|
+
policy_decision_id: string | null;
|
|
1394
|
+
idempotency_key: string;
|
|
1395
|
+
created_at: number;
|
|
1396
|
+
updated_at: number;
|
|
1397
|
+
capability: {
|
|
1398
|
+
name: string | null;
|
|
1399
|
+
category: string | null;
|
|
1400
|
+
pricing_model: string | null;
|
|
1401
|
+
pricing_amount_minor: number | null;
|
|
1402
|
+
currency: string | null;
|
|
1403
|
+
};
|
|
1404
|
+
run: P2PActionRun | null;
|
|
1405
|
+
}
|
|
1406
|
+
interface P2PActionRun {
|
|
1407
|
+
run_id: string;
|
|
1408
|
+
state: string;
|
|
1409
|
+
result: Record<string, unknown> | null;
|
|
1410
|
+
error: string | null;
|
|
1411
|
+
started_at: number | null;
|
|
1412
|
+
completed_at: number | null;
|
|
1413
|
+
updated_at: number;
|
|
1414
|
+
}
|
|
1415
|
+
interface P2PActionRequestResult {
|
|
1416
|
+
decision: string;
|
|
1417
|
+
idempotent: boolean;
|
|
1418
|
+
request: P2PActionRow;
|
|
1419
|
+
run: P2PActionRun | null;
|
|
1420
|
+
}
|
|
1421
|
+
interface P2PActionDetail {
|
|
1422
|
+
action: P2PActionRow;
|
|
1423
|
+
policy_decision: {
|
|
1424
|
+
decision_id: string;
|
|
1425
|
+
decision: string;
|
|
1426
|
+
rationale: string;
|
|
1427
|
+
policy_snapshot: Record<string, unknown>;
|
|
1428
|
+
created_at: number;
|
|
1429
|
+
} | null;
|
|
1430
|
+
ledger_entries: P2PLedgerEntry[];
|
|
1431
|
+
holds: P2PHold[];
|
|
1432
|
+
}
|
|
1433
|
+
interface P2PHold {
|
|
1434
|
+
hold_id: string;
|
|
1435
|
+
request_id: string;
|
|
1436
|
+
buyer_org_id: string;
|
|
1437
|
+
seller_org_id: string;
|
|
1438
|
+
ledger_entry_id: string | null;
|
|
1439
|
+
reason: string;
|
|
1440
|
+
status: 'active' | 'released' | 'disputed' | 'expired';
|
|
1441
|
+
release_after: number | null;
|
|
1442
|
+
released_at: number | null;
|
|
1443
|
+
created_at: number;
|
|
1444
|
+
updated_at: number;
|
|
1445
|
+
}
|
|
1446
|
+
interface P2PLedgerEntry {
|
|
1447
|
+
entry_id: string;
|
|
1448
|
+
request_id: string;
|
|
1449
|
+
capability_id: string;
|
|
1450
|
+
pricing_component: string;
|
|
1451
|
+
buyer_org_id: string;
|
|
1452
|
+
seller_org_id: string;
|
|
1453
|
+
initiating_principal_id: string;
|
|
1454
|
+
executing_principal_id: string;
|
|
1455
|
+
policy_decision_id: string;
|
|
1456
|
+
amount_minor: number;
|
|
1457
|
+
currency: string;
|
|
1458
|
+
audit_correlation_id: string;
|
|
1459
|
+
settlement_batch_id: string | null;
|
|
1460
|
+
created_at: number;
|
|
1461
|
+
}
|
|
1462
|
+
interface P2PPolicy {
|
|
1463
|
+
organization_id: string;
|
|
1464
|
+
auto_approve_under_minor: number;
|
|
1465
|
+
agent_spend_limit_minor_per_day: number;
|
|
1466
|
+
human_approval_threshold_minor: number;
|
|
1467
|
+
unknown_counterparty_requires_approval: boolean;
|
|
1468
|
+
blocked_capability_ids: string[];
|
|
1469
|
+
trusted_counterparty_org_ids: string[];
|
|
1470
|
+
updated_at: number | null;
|
|
1471
|
+
}
|
|
1472
|
+
interface P2PConnection {
|
|
1473
|
+
connection_id: string;
|
|
1474
|
+
organization_id?: string;
|
|
1475
|
+
counterparty_org_id: string;
|
|
1476
|
+
status: 'pending' | 'active' | 'suspended' | 'revoked';
|
|
1477
|
+
initiated_by_principal_id: string;
|
|
1478
|
+
created_at: number;
|
|
1479
|
+
updated_at: number;
|
|
1480
|
+
}
|
|
1481
|
+
interface P2PSettlementGroup {
|
|
1482
|
+
buyer_org_id: string;
|
|
1483
|
+
seller_org_id: string;
|
|
1484
|
+
currency: string;
|
|
1485
|
+
total_minor: number;
|
|
1486
|
+
line_items: Array<{
|
|
1487
|
+
entry_id: string;
|
|
1488
|
+
request_id: string;
|
|
1489
|
+
capability_id: string;
|
|
1490
|
+
pricing_component: string;
|
|
1491
|
+
amount_minor: number;
|
|
1492
|
+
audit_correlation_id: string;
|
|
1493
|
+
}>;
|
|
1494
|
+
}
|
|
1495
|
+
interface P2PSettlementBatch {
|
|
1496
|
+
batch_id: string;
|
|
1497
|
+
buyer_org_id: string;
|
|
1498
|
+
seller_org_id: string;
|
|
1499
|
+
currency: string;
|
|
1500
|
+
total_minor: number;
|
|
1501
|
+
trigger: string;
|
|
1502
|
+
pay_settlement_id: string | null;
|
|
1503
|
+
status: string;
|
|
1504
|
+
created_at: number;
|
|
1505
|
+
updated_at: number;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* P2P module — typed wrapper over the TopoloP2P HTTP API.
|
|
1509
|
+
*
|
|
1510
|
+
* Cross-org isolation: `requestAction`, `respondAction`, `completeAction`,
|
|
1511
|
+
* etc. all derive the buyer/seller org from the auth credential. There is
|
|
1512
|
+
* intentionally no `orgId` parameter on per-org reads.
|
|
1513
|
+
*
|
|
1514
|
+
* Mutating calls go through TopoloClient's `confirm: true` write guardrail.
|
|
1515
|
+
*/
|
|
1516
|
+
declare class P2PModule {
|
|
1517
|
+
private readonly client;
|
|
1518
|
+
constructor(client: TopoloClient);
|
|
1519
|
+
listDirectory(options?: {
|
|
1520
|
+
limit?: number;
|
|
1521
|
+
}): Promise<P2PCapability[]>;
|
|
1522
|
+
getCapability(capabilityId: string): Promise<P2PCapability | null>;
|
|
1523
|
+
publishCapability(input: PublishCapabilityInput): Promise<P2PCapability>;
|
|
1524
|
+
listActions(options?: {
|
|
1525
|
+
state?: string;
|
|
1526
|
+
limit?: number;
|
|
1527
|
+
}): Promise<P2PActionRow[]>;
|
|
1528
|
+
getAction(requestId: string): Promise<P2PActionDetail | null>;
|
|
1529
|
+
requestAction(input: P2PActionRequestInput): Promise<P2PActionRequestResult>;
|
|
1530
|
+
respondAction(requestId: string, response: 'accepted' | 'rejected' | 'approved' | 'quoted', extras?: Record<string, unknown>): Promise<P2PActionRow>;
|
|
1531
|
+
completeAction(requestId: string, result?: Record<string, unknown>): Promise<P2PActionRow>;
|
|
1532
|
+
disputeAction(requestId: string, reason: string): Promise<P2PActionRow>;
|
|
1533
|
+
getPolicy(): Promise<P2PPolicy>;
|
|
1534
|
+
updatePolicy(policy: Partial<Omit<P2PPolicy, 'organization_id' | 'updated_at'>>): Promise<P2PPolicy>;
|
|
1535
|
+
listConnections(): Promise<P2PConnection[]>;
|
|
1536
|
+
createConnection(counterpartyOrgId: string, options?: {
|
|
1537
|
+
status?: 'pending' | 'active' | 'suspended';
|
|
1538
|
+
}): Promise<P2PConnection>;
|
|
1539
|
+
revokeConnection(connectionId: string): Promise<void>;
|
|
1540
|
+
listLedger(): Promise<P2PLedgerEntry[]>;
|
|
1541
|
+
previewSettlements(filters?: Partial<{
|
|
1542
|
+
buyer_org_id: string;
|
|
1543
|
+
seller_org_id: string;
|
|
1544
|
+
currency: string;
|
|
1545
|
+
}>): Promise<P2PSettlementGroup[]>;
|
|
1546
|
+
createSettlement(filters?: Partial<{
|
|
1547
|
+
buyer_org_id: string;
|
|
1548
|
+
seller_org_id: string;
|
|
1549
|
+
currency: string;
|
|
1550
|
+
trigger: 'threshold' | 'schedule' | 'manual' | 'invoice' | 'delivery';
|
|
1551
|
+
}>): Promise<{
|
|
1552
|
+
batch: P2PSettlementBatch;
|
|
1553
|
+
group: P2PSettlementGroup;
|
|
1554
|
+
}>;
|
|
1555
|
+
releaseHold(holdId: string, resolution: 'buyer' | 'seller', options?: {
|
|
1556
|
+
reason?: string;
|
|
1557
|
+
}): Promise<{
|
|
1558
|
+
hold: P2PHold;
|
|
1559
|
+
resolution: 'buyer' | 'seller';
|
|
1560
|
+
cancel_entries: P2PLedgerEntry[];
|
|
1561
|
+
}>;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1228
1564
|
interface DeviceAuthorizationResponse {
|
|
1229
1565
|
device_code: string;
|
|
1230
1566
|
user_code: string;
|
|
@@ -1430,4 +1766,4 @@ declare function createTopolo(options: TopoloClientOptions): {
|
|
|
1430
1766
|
};
|
|
1431
1767
|
type Topolo = ReturnType<typeof createTopolo>;
|
|
1432
1768
|
|
|
1433
|
-
export { APPLICATIONS, APPLICATION_REQUIREMENTS, APPLICATION_REQUIREMENTS_VERSION, type AgentIdentity, type ApplicationCatalogEntry, type ApplicationDeployTarget, type ApplicationId, type ApplicationRequirement, type ApplicationRequirementAudit, type ApplicationRequirementFinding, type ApplicationRequirementMigrationItem, type ApplicationRequirementScope, type ApplicationRequirementScore, type ApplicationRequirementStatus, type ApplicationRequirementsAuditReport, type CredentialIntrospection, type CrmContactSummary, CrmModule, DEFAULT_SERVICE_URLS, type DeviceAuthorizationResponse, IdentityModule, type ListContactsOptions, type ListContactsResult, type OAuthHelperOptions, PLATFORM_SERVICE_IDS, type RequestOptions, type ServiceId, TOPOLO_WIDGET_ENDPOINT, TOPOLO_WIDGET_REFRESH_INTERVAL_MS, type TokenResponse, type Topolo, TopoloAuthError, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, type TopoloNotificationsWidget, TopoloOAuth, TopoloPermissionError, type TopoloQuickActionsWidget, type TopoloRecentActivityWidget, TopoloSdkError, type TopoloStatsWidget, type TopoloWidget, type TopoloWidgetActionItem, type TopoloWidgetActivityItem, type TopoloWidgetApiResponse, type TopoloWidgetBase, type TopoloWidgetConfig, type TopoloWidgetDraft, type TopoloWidgetMetric, type TopoloWidgetNotificationItem, type TopoloWidgetResponseOptions, type TopoloWidgetSnapshotMetadata, type TopoloWidgetSnapshotMetric, type TopoloWidgetType, type TopoloWidgetValidationResult, applicationRequirementScopes, auditAllApplicationRequirements, auditApplicationRequirements, createTopolo, createTopoloWidgetError, createTopoloWidgetResponse, defineTopoloChartWidget, defineTopoloNotificationsWidget, defineTopoloQuickActionsWidget, defineTopoloRecentActivityWidget, defineTopoloStatsWidget, requirementsForApplication, resolveServiceUrl, validateTopoloWidgetResponse };
|
|
1769
|
+
export { APPLICATIONS, APPLICATION_REQUIREMENTS, APPLICATION_REQUIREMENTS_VERSION, type AgentIdentity, type ApplicationCatalogEntry, type ApplicationDeployTarget, type ApplicationId, type ApplicationRequirement, type ApplicationRequirementAudit, type ApplicationRequirementFinding, type ApplicationRequirementMigrationItem, type ApplicationRequirementScope, type ApplicationRequirementScore, type ApplicationRequirementStatus, type ApplicationRequirementsAuditReport, type CredentialIntrospection, type CrmContactSummary, CrmModule, DEFAULT_SERVICE_URLS, type DeviceAuthorizationResponse, IdentityModule, type ListContactsOptions, type ListContactsResult, type OAuthHelperOptions, type P2PActionDetail, type P2PActionRequestInput, type P2PActionRequestResult, type P2PActionRow, type P2PActionRun, type P2PCapability, type P2PConnection, type P2PHold, type P2PLedgerEntry, P2PModule, type P2PPolicy, type P2PPricingModel, type P2PSettlementBatch, type P2PSettlementGroup, PLATFORM_SERVICE_IDS, type PublishCapabilityInput, type RequestOptions, type ServiceId, TOPOLO_WIDGET_ENDPOINT, TOPOLO_WIDGET_REFRESH_INTERVAL_MS, type TokenResponse, type Topolo, TopoloAuthError, type TopoloChartWidget, TopoloClient, type TopoloClientOptions, type TopoloCredential, type TopoloDebugEvent, TopoloHttpError, type TopoloNotificationsWidget, TopoloOAuth, TopoloPermissionError, type TopoloQuickActionsWidget, type TopoloRecentActivityWidget, TopoloSdkError, type TopoloStatsWidget, type TopoloWidget, type TopoloWidgetActionItem, type TopoloWidgetActivityItem, type TopoloWidgetApiResponse, type TopoloWidgetBase, type TopoloWidgetConfig, type TopoloWidgetDraft, type TopoloWidgetMetric, type TopoloWidgetNotificationItem, type TopoloWidgetResponseOptions, type TopoloWidgetSnapshotMetadata, type TopoloWidgetSnapshotMetric, type TopoloWidgetType, type TopoloWidgetValidationResult, applicationRequirementScopes, auditAllApplicationRequirements, auditApplicationRequirements, createTopolo, createTopoloWidgetError, createTopoloWidgetResponse, defineTopoloChartWidget, defineTopoloNotificationsWidget, defineTopoloQuickActionsWidget, defineTopoloRecentActivityWidget, defineTopoloStatsWidget, requirementsForApplication, resolveServiceUrl, validateTopoloWidgetResponse };
|