@topolo/sdk 0.4.10 → 0.6.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/dist/index.cjs CHANGED
@@ -24,7 +24,7 @@ __export(index_exports, {
24
24
  APPLICATION_REQUIREMENTS: () => APPLICATION_REQUIREMENTS,
25
25
  APPLICATION_REQUIREMENTS_VERSION: () => APPLICATION_REQUIREMENTS_VERSION,
26
26
  CrmModule: () => CrmModule,
27
- DEFAULT_SERVICE_URLS: () => DEFAULT_SERVICE_URLS,
27
+ DEFAULT_APP_URLS: () => DEFAULT_APP_URLS,
28
28
  IdentityModule: () => IdentityModule,
29
29
  P2PModule: () => P2PModule,
30
30
  TOPOLO_WIDGET_ENDPOINT: () => TOPOLO_WIDGET_ENDPOINT,
@@ -112,7 +112,7 @@ var TopoloHttpError = class extends TopoloSdkError {
112
112
  };
113
113
 
114
114
  // src/services.generated.ts
115
- var SERVICES = {
115
+ var APP_API_URLS = {
116
116
  agent: "https://agent.topolo.app",
117
117
  auth: "https://auth.topolo.app",
118
118
  backup: "https://backup.topolo.app",
@@ -180,7 +180,7 @@ var APPLICATIONS = {
180
180
  "admin.topolo.app"
181
181
  ],
182
182
  "routes": [],
183
- "serviceId": null
183
+ "appId": null
184
184
  },
185
185
  {
186
186
  "name": "topolo-admin-api",
@@ -188,7 +188,7 @@ var APPLICATIONS = {
188
188
  "apiUrl": null,
189
189
  "domains": [],
190
190
  "routes": [],
191
- "serviceId": null
191
+ "appId": null
192
192
  }
193
193
  ]
194
194
  },
@@ -210,7 +210,7 @@ var APPLICATIONS = {
210
210
  "agent.topolo.app"
211
211
  ],
212
212
  "routes": [],
213
- "serviceId": "agent"
213
+ "appId": "agent"
214
214
  },
215
215
  {
216
216
  "name": "topolo-agent-api",
@@ -218,7 +218,7 @@ var APPLICATIONS = {
218
218
  "apiUrl": null,
219
219
  "domains": [],
220
220
  "routes": [],
221
- "serviceId": null
221
+ "appId": null
222
222
  }
223
223
  ]
224
224
  },
@@ -242,7 +242,7 @@ var APPLICATIONS = {
242
242
  "routes": [
243
243
  "auth.topolo.app"
244
244
  ],
245
- "serviceId": "auth"
245
+ "appId": "auth"
246
246
  }
247
247
  ]
248
248
  },
@@ -264,7 +264,7 @@ var APPLICATIONS = {
264
264
  "backup.topolo.app"
265
265
  ],
266
266
  "routes": [],
267
- "serviceId": "backup"
267
+ "appId": "backup"
268
268
  }
269
269
  ]
270
270
  },
@@ -286,7 +286,7 @@ var APPLICATIONS = {
286
286
  "books.topolo.app"
287
287
  ],
288
288
  "routes": [],
289
- "serviceId": "books"
289
+ "appId": "books"
290
290
  },
291
291
  {
292
292
  "name": "topolo-books-api",
@@ -294,7 +294,7 @@ var APPLICATIONS = {
294
294
  "apiUrl": null,
295
295
  "domains": [],
296
296
  "routes": [],
297
- "serviceId": null
297
+ "appId": null
298
298
  }
299
299
  ]
300
300
  },
@@ -316,7 +316,7 @@ var APPLICATIONS = {
316
316
  "bugfix.topolo.app"
317
317
  ],
318
318
  "routes": [],
319
- "serviceId": "bugfix"
319
+ "appId": "bugfix"
320
320
  }
321
321
  ]
322
322
  },
@@ -338,7 +338,7 @@ var APPLICATIONS = {
338
338
  "bytes.topolo.app"
339
339
  ],
340
340
  "routes": [],
341
- "serviceId": "bytes"
341
+ "appId": "bytes"
342
342
  },
343
343
  {
344
344
  "name": "topolo-bytes-api",
@@ -346,7 +346,7 @@ var APPLICATIONS = {
346
346
  "apiUrl": null,
347
347
  "domains": [],
348
348
  "routes": [],
349
- "serviceId": null
349
+ "appId": null
350
350
  }
351
351
  ]
352
352
  },
@@ -368,7 +368,7 @@ var APPLICATIONS = {
368
368
  "calendar.topolo.app"
369
369
  ],
370
370
  "routes": [],
371
- "serviceId": "calendar"
371
+ "appId": "calendar"
372
372
  },
373
373
  {
374
374
  "name": "topolo-calendar-api",
@@ -376,7 +376,7 @@ var APPLICATIONS = {
376
376
  "apiUrl": null,
377
377
  "domains": [],
378
378
  "routes": [],
379
- "serviceId": null
379
+ "appId": null
380
380
  }
381
381
  ]
382
382
  },
@@ -398,7 +398,7 @@ var APPLICATIONS = {
398
398
  "capacity.topolo.app"
399
399
  ],
400
400
  "routes": [],
401
- "serviceId": "capacity"
401
+ "appId": "capacity"
402
402
  }
403
403
  ]
404
404
  },
@@ -420,7 +420,7 @@ var APPLICATIONS = {
420
420
  "chat.topolo.app"
421
421
  ],
422
422
  "routes": [],
423
- "serviceId": "chat"
423
+ "appId": "chat"
424
424
  },
425
425
  {
426
426
  "name": "topolo-chat-api",
@@ -428,7 +428,7 @@ var APPLICATIONS = {
428
428
  "apiUrl": null,
429
429
  "domains": [],
430
430
  "routes": [],
431
- "serviceId": null
431
+ "appId": null
432
432
  }
433
433
  ]
434
434
  },
@@ -448,7 +448,7 @@ var APPLICATIONS = {
448
448
  "apiUrl": null,
449
449
  "domains": [],
450
450
  "routes": [],
451
- "serviceId": null
451
+ "appId": null
452
452
  },
453
453
  {
454
454
  "name": "topolo-commerce-guest-web",
@@ -458,7 +458,7 @@ var APPLICATIONS = {
458
458
  "guest.topolo.app"
459
459
  ],
460
460
  "routes": [],
461
- "serviceId": null
461
+ "appId": null
462
462
  },
463
463
  {
464
464
  "name": "topolo-commerce-ops-web",
@@ -468,7 +468,7 @@ var APPLICATIONS = {
468
468
  "commerce.topolo.app"
469
469
  ],
470
470
  "routes": [],
471
- "serviceId": "commerce"
471
+ "appId": "commerce"
472
472
  },
473
473
  {
474
474
  "name": "topolo-commerce-station-web",
@@ -478,7 +478,7 @@ var APPLICATIONS = {
478
478
  "station-commerce.topolo.app"
479
479
  ],
480
480
  "routes": [],
481
- "serviceId": null
481
+ "appId": null
482
482
  }
483
483
  ]
484
484
  },
@@ -500,7 +500,7 @@ var APPLICATIONS = {
500
500
  "compose.topolo.app"
501
501
  ],
502
502
  "routes": [],
503
- "serviceId": "compose"
503
+ "appId": "compose"
504
504
  },
505
505
  {
506
506
  "name": "topolo-compose-api",
@@ -508,7 +508,7 @@ var APPLICATIONS = {
508
508
  "apiUrl": null,
509
509
  "domains": [],
510
510
  "routes": [],
511
- "serviceId": null
511
+ "appId": null
512
512
  }
513
513
  ]
514
514
  },
@@ -530,7 +530,7 @@ var APPLICATIONS = {
530
530
  "consent.topolo.app"
531
531
  ],
532
532
  "routes": [],
533
- "serviceId": "consent"
533
+ "appId": "consent"
534
534
  },
535
535
  {
536
536
  "name": "topolo-consent-api",
@@ -538,7 +538,7 @@ var APPLICATIONS = {
538
538
  "apiUrl": null,
539
539
  "domains": [],
540
540
  "routes": [],
541
- "serviceId": null
541
+ "appId": null
542
542
  }
543
543
  ]
544
544
  },
@@ -558,7 +558,7 @@ var APPLICATIONS = {
558
558
  "apiUrl": null,
559
559
  "domains": [],
560
560
  "routes": [],
561
- "serviceId": null
561
+ "appId": null
562
562
  },
563
563
  {
564
564
  "name": "topolo-crm-app",
@@ -568,7 +568,7 @@ var APPLICATIONS = {
568
568
  "crm.topolo.app"
569
569
  ],
570
570
  "routes": [],
571
- "serviceId": "crm"
571
+ "appId": "crm"
572
572
  }
573
573
  ]
574
574
  },
@@ -588,7 +588,7 @@ var APPLICATIONS = {
588
588
  "apiUrl": null,
589
589
  "domains": [],
590
590
  "routes": [],
591
- "serviceId": null
591
+ "appId": null
592
592
  },
593
593
  {
594
594
  "name": "topolo-developers",
@@ -598,7 +598,7 @@ var APPLICATIONS = {
598
598
  "developers.topolo.app"
599
599
  ],
600
600
  "routes": [],
601
- "serviceId": "developers"
601
+ "appId": "developers"
602
602
  },
603
603
  {
604
604
  "name": "topolo-developers-api",
@@ -606,7 +606,7 @@ var APPLICATIONS = {
606
606
  "apiUrl": null,
607
607
  "domains": [],
608
608
  "routes": [],
609
- "serviceId": null
609
+ "appId": null
610
610
  }
611
611
  ]
612
612
  },
@@ -628,7 +628,7 @@ var APPLICATIONS = {
628
628
  "director.topolo.app"
629
629
  ],
630
630
  "routes": [],
631
- "serviceId": "director"
631
+ "appId": "director"
632
632
  },
633
633
  {
634
634
  "name": "topolo-director-api",
@@ -636,7 +636,7 @@ var APPLICATIONS = {
636
636
  "apiUrl": null,
637
637
  "domains": [],
638
638
  "routes": [],
639
- "serviceId": null
639
+ "appId": null
640
640
  }
641
641
  ]
642
642
  },
@@ -656,7 +656,7 @@ var APPLICATIONS = {
656
656
  "docs.topolo.app"
657
657
  ],
658
658
  "routes": [],
659
- "serviceId": null
659
+ "appId": null
660
660
  },
661
661
  {
662
662
  "name": "topolo-docs-api",
@@ -664,7 +664,7 @@ var APPLICATIONS = {
664
664
  "apiUrl": null,
665
665
  "domains": [],
666
666
  "routes": [],
667
- "serviceId": null
667
+ "appId": null
668
668
  }
669
669
  ]
670
670
  },
@@ -686,7 +686,7 @@ var APPLICATIONS = {
686
686
  "feed-analytics-api.topolo.app"
687
687
  ],
688
688
  "routes": [],
689
- "serviceId": null
689
+ "appId": null
690
690
  },
691
691
  {
692
692
  "name": "topolo-feed-api",
@@ -696,7 +696,7 @@ var APPLICATIONS = {
696
696
  "feed-api.topolo.app"
697
697
  ],
698
698
  "routes": [],
699
- "serviceId": null
699
+ "appId": null
700
700
  },
701
701
  {
702
702
  "name": "topolo-feed-web",
@@ -706,7 +706,7 @@ var APPLICATIONS = {
706
706
  "feed.topolo.app"
707
707
  ],
708
708
  "routes": [],
709
- "serviceId": "feed"
709
+ "appId": "feed"
710
710
  }
711
711
  ]
712
712
  },
@@ -728,7 +728,7 @@ var APPLICATIONS = {
728
728
  "flow.topolo.app"
729
729
  ],
730
730
  "routes": [],
731
- "serviceId": "flow"
731
+ "appId": "flow"
732
732
  },
733
733
  {
734
734
  "name": "topolo-flow-api",
@@ -736,7 +736,7 @@ var APPLICATIONS = {
736
736
  "apiUrl": null,
737
737
  "domains": [],
738
738
  "routes": [],
739
- "serviceId": null
739
+ "appId": null
740
740
  }
741
741
  ]
742
742
  },
@@ -758,7 +758,7 @@ var APPLICATIONS = {
758
758
  "forecast.topolo.app"
759
759
  ],
760
760
  "routes": [],
761
- "serviceId": "forecast"
761
+ "appId": "forecast"
762
762
  },
763
763
  {
764
764
  "name": "topolo-forecast-api",
@@ -766,7 +766,7 @@ var APPLICATIONS = {
766
766
  "apiUrl": null,
767
767
  "domains": [],
768
768
  "routes": [],
769
- "serviceId": null
769
+ "appId": null
770
770
  }
771
771
  ]
772
772
  },
@@ -788,7 +788,7 @@ var APPLICATIONS = {
788
788
  "forms.topolo.app"
789
789
  ],
790
790
  "routes": [],
791
- "serviceId": "forms"
791
+ "appId": "forms"
792
792
  },
793
793
  {
794
794
  "name": "topolo-forms-api",
@@ -796,7 +796,7 @@ var APPLICATIONS = {
796
796
  "apiUrl": null,
797
797
  "domains": [],
798
798
  "routes": [],
799
- "serviceId": null
799
+ "appId": null
800
800
  }
801
801
  ]
802
802
  },
@@ -818,7 +818,7 @@ var APPLICATIONS = {
818
818
  "home.topolo.app"
819
819
  ],
820
820
  "routes": [],
821
- "serviceId": "home"
821
+ "appId": "home"
822
822
  },
823
823
  {
824
824
  "name": "topolo-home-api",
@@ -826,7 +826,7 @@ var APPLICATIONS = {
826
826
  "apiUrl": null,
827
827
  "domains": [],
828
828
  "routes": [],
829
- "serviceId": null
829
+ "appId": null
830
830
  }
831
831
  ]
832
832
  },
@@ -848,7 +848,7 @@ var APPLICATIONS = {
848
848
  "insights.topolo.app"
849
849
  ],
850
850
  "routes": [],
851
- "serviceId": "insights"
851
+ "appId": "insights"
852
852
  },
853
853
  {
854
854
  "name": "topolo-insights-api",
@@ -856,7 +856,7 @@ var APPLICATIONS = {
856
856
  "apiUrl": null,
857
857
  "domains": [],
858
858
  "routes": [],
859
- "serviceId": null
859
+ "appId": null
860
860
  }
861
861
  ]
862
862
  },
@@ -878,7 +878,7 @@ var APPLICATIONS = {
878
878
  "inventory.topolo.app"
879
879
  ],
880
880
  "routes": [],
881
- "serviceId": "inventory"
881
+ "appId": "inventory"
882
882
  },
883
883
  {
884
884
  "name": "topolo-inventory-api",
@@ -886,7 +886,7 @@ var APPLICATIONS = {
886
886
  "apiUrl": null,
887
887
  "domains": [],
888
888
  "routes": [],
889
- "serviceId": null
889
+ "appId": null
890
890
  }
891
891
  ]
892
892
  },
@@ -908,7 +908,7 @@ var APPLICATIONS = {
908
908
  "learn.topolo.app"
909
909
  ],
910
910
  "routes": [],
911
- "serviceId": "learn"
911
+ "appId": "learn"
912
912
  },
913
913
  {
914
914
  "name": "topolo-learn-api",
@@ -916,7 +916,7 @@ var APPLICATIONS = {
916
916
  "apiUrl": null,
917
917
  "domains": [],
918
918
  "routes": [],
919
- "serviceId": null
919
+ "appId": null
920
920
  }
921
921
  ]
922
922
  },
@@ -940,7 +940,7 @@ var APPLICATIONS = {
940
940
  "routes": [
941
941
  "localize.topolo.app"
942
942
  ],
943
- "serviceId": "localize"
943
+ "appId": "localize"
944
944
  }
945
945
  ]
946
946
  },
@@ -962,7 +962,7 @@ var APPLICATIONS = {
962
962
  "mail.topolo.app"
963
963
  ],
964
964
  "routes": [],
965
- "serviceId": "mail"
965
+ "appId": "mail"
966
966
  },
967
967
  {
968
968
  "name": "topolo-mail-api",
@@ -970,7 +970,7 @@ var APPLICATIONS = {
970
970
  "apiUrl": null,
971
971
  "domains": [],
972
972
  "routes": [],
973
- "serviceId": null
973
+ "appId": null
974
974
  }
975
975
  ]
976
976
  },
@@ -990,7 +990,7 @@ var APPLICATIONS = {
990
990
  "apiUrl": null,
991
991
  "domains": [],
992
992
  "routes": [],
993
- "serviceId": null
993
+ "appId": null
994
994
  },
995
995
  {
996
996
  "name": "topolo-mdm-console",
@@ -1000,7 +1000,7 @@ var APPLICATIONS = {
1000
1000
  "mdm.topolo.app"
1001
1001
  ],
1002
1002
  "routes": [],
1003
- "serviceId": "mdm"
1003
+ "appId": "mdm"
1004
1004
  }
1005
1005
  ]
1006
1006
  },
@@ -1022,7 +1022,7 @@ var APPLICATIONS = {
1022
1022
  "messages.topolo.app"
1023
1023
  ],
1024
1024
  "routes": [],
1025
- "serviceId": "messages"
1025
+ "appId": "messages"
1026
1026
  },
1027
1027
  {
1028
1028
  "name": "topolo-messages-api",
@@ -1030,7 +1030,7 @@ var APPLICATIONS = {
1030
1030
  "apiUrl": null,
1031
1031
  "domains": [],
1032
1032
  "routes": [],
1033
- "serviceId": null
1033
+ "appId": null
1034
1034
  },
1035
1035
  {
1036
1036
  "name": "topolo-messages-dispatch",
@@ -1038,7 +1038,7 @@ var APPLICATIONS = {
1038
1038
  "apiUrl": null,
1039
1039
  "domains": [],
1040
1040
  "routes": [],
1041
- "serviceId": null
1041
+ "appId": null
1042
1042
  }
1043
1043
  ]
1044
1044
  },
@@ -1060,7 +1060,7 @@ var APPLICATIONS = {
1060
1060
  "nexus.topolo.app"
1061
1061
  ],
1062
1062
  "routes": [],
1063
- "serviceId": null
1063
+ "appId": null
1064
1064
  },
1065
1065
  {
1066
1066
  "name": "topolo-nexus-gateway",
@@ -1070,7 +1070,7 @@ var APPLICATIONS = {
1070
1070
  "nexus.topolo.app"
1071
1071
  ],
1072
1072
  "routes": [],
1073
- "serviceId": "nexus"
1073
+ "appId": "nexus"
1074
1074
  }
1075
1075
  ]
1076
1076
  },
@@ -1094,7 +1094,7 @@ var APPLICATIONS = {
1094
1094
  "routes": [
1095
1095
  "notify.topolo.app"
1096
1096
  ],
1097
- "serviceId": "notify"
1097
+ "appId": "notify"
1098
1098
  }
1099
1099
  ]
1100
1100
  },
@@ -1116,7 +1116,7 @@ var APPLICATIONS = {
1116
1116
  "observability-watch.topolo.app"
1117
1117
  ],
1118
1118
  "routes": [],
1119
- "serviceId": "observability_watch"
1119
+ "appId": "observability_watch"
1120
1120
  }
1121
1121
  ]
1122
1122
  },
@@ -1140,7 +1140,7 @@ var APPLICATIONS = {
1140
1140
  "routes": [
1141
1141
  "one.topolo.app/*"
1142
1142
  ],
1143
- "serviceId": null
1143
+ "appId": null
1144
1144
  },
1145
1145
  {
1146
1146
  "name": "topolo-one-api",
@@ -1152,7 +1152,7 @@ var APPLICATIONS = {
1152
1152
  "routes": [
1153
1153
  "www.topolo.app/*"
1154
1154
  ],
1155
- "serviceId": "one"
1155
+ "appId": "one"
1156
1156
  },
1157
1157
  {
1158
1158
  "name": "topolo-one-website",
@@ -1165,7 +1165,7 @@ var APPLICATIONS = {
1165
1165
  "topolo.io",
1166
1166
  "www.topolo.io"
1167
1167
  ],
1168
- "serviceId": null
1168
+ "appId": null
1169
1169
  }
1170
1170
  ]
1171
1171
  },
@@ -1187,7 +1187,7 @@ var APPLICATIONS = {
1187
1187
  "p2p.topolo.app"
1188
1188
  ],
1189
1189
  "routes": [],
1190
- "serviceId": "p2p"
1190
+ "appId": "p2p"
1191
1191
  },
1192
1192
  {
1193
1193
  "name": "topolo-p2p-api",
@@ -1195,7 +1195,7 @@ var APPLICATIONS = {
1195
1195
  "apiUrl": null,
1196
1196
  "domains": [],
1197
1197
  "routes": [],
1198
- "serviceId": null
1198
+ "appId": null
1199
1199
  }
1200
1200
  ]
1201
1201
  },
@@ -1217,7 +1217,7 @@ var APPLICATIONS = {
1217
1217
  "pay.topolo.app"
1218
1218
  ],
1219
1219
  "routes": [],
1220
- "serviceId": "pay"
1220
+ "appId": "pay"
1221
1221
  },
1222
1222
  {
1223
1223
  "name": "topolo-pay-api",
@@ -1225,7 +1225,7 @@ var APPLICATIONS = {
1225
1225
  "apiUrl": null,
1226
1226
  "domains": [],
1227
1227
  "routes": [],
1228
- "serviceId": null
1228
+ "appId": null
1229
1229
  }
1230
1230
  ]
1231
1231
  },
@@ -1247,7 +1247,7 @@ var APPLICATIONS = {
1247
1247
  "people.topolo.app"
1248
1248
  ],
1249
1249
  "routes": [],
1250
- "serviceId": "people"
1250
+ "appId": "people"
1251
1251
  },
1252
1252
  {
1253
1253
  "name": "topolo-people-api",
@@ -1255,7 +1255,7 @@ var APPLICATIONS = {
1255
1255
  "apiUrl": null,
1256
1256
  "domains": [],
1257
1257
  "routes": [],
1258
- "serviceId": null
1258
+ "appId": null
1259
1259
  }
1260
1260
  ]
1261
1261
  },
@@ -1280,7 +1280,7 @@ var APPLICATIONS = {
1280
1280
  "routes": [
1281
1281
  "api.ol0.me/*"
1282
1282
  ],
1283
- "serviceId": "quro.api"
1283
+ "appId": "quro.api"
1284
1284
  },
1285
1285
  {
1286
1286
  "name": "quro-redirect-system",
@@ -1292,7 +1292,7 @@ var APPLICATIONS = {
1292
1292
  "routes": [
1293
1293
  "ol0.me/*"
1294
1294
  ],
1295
- "serviceId": "quro.redirect"
1295
+ "appId": "quro.redirect"
1296
1296
  },
1297
1297
  {
1298
1298
  "name": "quro-ui",
@@ -1302,7 +1302,7 @@ var APPLICATIONS = {
1302
1302
  "quro.topolo.app"
1303
1303
  ],
1304
1304
  "routes": [],
1305
- "serviceId": null
1305
+ "appId": null
1306
1306
  }
1307
1307
  ]
1308
1308
  },
@@ -1324,7 +1324,7 @@ var APPLICATIONS = {
1324
1324
  "roadmapper.topolo.app"
1325
1325
  ],
1326
1326
  "routes": [],
1327
- "serviceId": "roadmapper"
1327
+ "appId": "roadmapper"
1328
1328
  },
1329
1329
  {
1330
1330
  "name": "topolo-roadmapper-api",
@@ -1332,7 +1332,7 @@ var APPLICATIONS = {
1332
1332
  "apiUrl": null,
1333
1333
  "domains": [],
1334
1334
  "routes": [],
1335
- "serviceId": null
1335
+ "appId": null
1336
1336
  }
1337
1337
  ]
1338
1338
  },
@@ -1354,7 +1354,7 @@ var APPLICATIONS = {
1354
1354
  "sign.topolo.app"
1355
1355
  ],
1356
1356
  "routes": [],
1357
- "serviceId": "sign"
1357
+ "appId": "sign"
1358
1358
  },
1359
1359
  {
1360
1360
  "name": "topolo-sign-api",
@@ -1362,7 +1362,7 @@ var APPLICATIONS = {
1362
1362
  "apiUrl": null,
1363
1363
  "domains": [],
1364
1364
  "routes": [],
1365
- "serviceId": null
1365
+ "appId": null
1366
1366
  }
1367
1367
  ]
1368
1368
  },
@@ -1384,7 +1384,7 @@ var APPLICATIONS = {
1384
1384
  "studio.topolo.app"
1385
1385
  ],
1386
1386
  "routes": [],
1387
- "serviceId": "social_studio"
1387
+ "appId": "social_studio"
1388
1388
  },
1389
1389
  {
1390
1390
  "name": "topolo-social-studio-api",
@@ -1392,7 +1392,7 @@ var APPLICATIONS = {
1392
1392
  "apiUrl": null,
1393
1393
  "domains": [],
1394
1394
  "routes": [],
1395
- "serviceId": null
1395
+ "appId": null
1396
1396
  },
1397
1397
  {
1398
1398
  "name": "topolo-social-studio-queue",
@@ -1400,7 +1400,7 @@ var APPLICATIONS = {
1400
1400
  "apiUrl": null,
1401
1401
  "domains": [],
1402
1402
  "routes": [],
1403
- "serviceId": null
1403
+ "appId": null
1404
1404
  }
1405
1405
  ]
1406
1406
  },
@@ -1422,7 +1422,7 @@ var APPLICATIONS = {
1422
1422
  "socialize.topolo.app"
1423
1423
  ],
1424
1424
  "routes": [],
1425
- "serviceId": "socialize"
1425
+ "appId": "socialize"
1426
1426
  },
1427
1427
  {
1428
1428
  "name": "topolo-socialize-api",
@@ -1432,7 +1432,7 @@ var APPLICATIONS = {
1432
1432
  "socialize-api.topolo.app"
1433
1433
  ],
1434
1434
  "routes": [],
1435
- "serviceId": null
1435
+ "appId": null
1436
1436
  },
1437
1437
  {
1438
1438
  "name": "topolo-socialize-scheduler",
@@ -1440,7 +1440,7 @@ var APPLICATIONS = {
1440
1440
  "apiUrl": null,
1441
1441
  "domains": [],
1442
1442
  "routes": [],
1443
- "serviceId": null
1443
+ "appId": null
1444
1444
  }
1445
1445
  ]
1446
1446
  },
@@ -1462,7 +1462,7 @@ var APPLICATIONS = {
1462
1462
  "spaces.topolo.app"
1463
1463
  ],
1464
1464
  "routes": [],
1465
- "serviceId": "spaces"
1465
+ "appId": "spaces"
1466
1466
  },
1467
1467
  {
1468
1468
  "name": "topolo-spaces-api",
@@ -1470,7 +1470,7 @@ var APPLICATIONS = {
1470
1470
  "apiUrl": null,
1471
1471
  "domains": [],
1472
1472
  "routes": [],
1473
- "serviceId": null
1473
+ "appId": null
1474
1474
  }
1475
1475
  ]
1476
1476
  },
@@ -1492,7 +1492,7 @@ var APPLICATIONS = {
1492
1492
  "status.topolo.app"
1493
1493
  ],
1494
1494
  "routes": [],
1495
- "serviceId": "status"
1495
+ "appId": "status"
1496
1496
  }
1497
1497
  ]
1498
1498
  },
@@ -1516,7 +1516,7 @@ var APPLICATIONS = {
1516
1516
  "routes": [
1517
1517
  "success.topolo.app"
1518
1518
  ],
1519
- "serviceId": "success"
1519
+ "appId": "success"
1520
1520
  },
1521
1521
  {
1522
1522
  "name": "topolo-success-api",
@@ -1524,7 +1524,7 @@ var APPLICATIONS = {
1524
1524
  "apiUrl": null,
1525
1525
  "domains": [],
1526
1526
  "routes": [],
1527
- "serviceId": null
1527
+ "appId": null
1528
1528
  }
1529
1529
  ]
1530
1530
  },
@@ -1548,7 +1548,7 @@ var APPLICATIONS = {
1548
1548
  "routes": [
1549
1549
  "support.topolo.app/*"
1550
1550
  ],
1551
- "serviceId": "support"
1551
+ "appId": "support"
1552
1552
  },
1553
1553
  {
1554
1554
  "name": "topolo-support-api",
@@ -1556,7 +1556,7 @@ var APPLICATIONS = {
1556
1556
  "apiUrl": null,
1557
1557
  "domains": [],
1558
1558
  "routes": [],
1559
- "serviceId": null
1559
+ "appId": null
1560
1560
  }
1561
1561
  ]
1562
1562
  },
@@ -1578,7 +1578,7 @@ var APPLICATIONS = {
1578
1578
  "survey.topolo.app"
1579
1579
  ],
1580
1580
  "routes": [],
1581
- "serviceId": "survey"
1581
+ "appId": "survey"
1582
1582
  },
1583
1583
  {
1584
1584
  "name": "topolo-survey-api",
@@ -1586,7 +1586,7 @@ var APPLICATIONS = {
1586
1586
  "apiUrl": null,
1587
1587
  "domains": [],
1588
1588
  "routes": [],
1589
- "serviceId": null
1589
+ "appId": null
1590
1590
  }
1591
1591
  ]
1592
1592
  },
@@ -1608,7 +1608,7 @@ var APPLICATIONS = {
1608
1608
  "voice.topolo.app"
1609
1609
  ],
1610
1610
  "routes": [],
1611
- "serviceId": "voice"
1611
+ "appId": "voice"
1612
1612
  },
1613
1613
  {
1614
1614
  "name": "topolo-voice-api",
@@ -1616,7 +1616,7 @@ var APPLICATIONS = {
1616
1616
  "apiUrl": null,
1617
1617
  "domains": [],
1618
1618
  "routes": [],
1619
- "serviceId": null
1619
+ "appId": null
1620
1620
  }
1621
1621
  ]
1622
1622
  },
@@ -1636,7 +1636,7 @@ var APPLICATIONS = {
1636
1636
  "apiUrl": null,
1637
1637
  "domains": [],
1638
1638
  "routes": [],
1639
- "serviceId": null
1639
+ "appId": null
1640
1640
  },
1641
1641
  {
1642
1642
  "name": "topolo-web-runtime",
@@ -1649,7 +1649,7 @@ var APPLICATIONS = {
1649
1649
  "*.sites.topolo.app/*",
1650
1650
  "sites.topolo.app"
1651
1651
  ],
1652
- "serviceId": null
1652
+ "appId": null
1653
1653
  },
1654
1654
  {
1655
1655
  "name": "topolo-web-studio",
@@ -1659,7 +1659,7 @@ var APPLICATIONS = {
1659
1659
  "web.topolo.app"
1660
1660
  ],
1661
1661
  "routes": [],
1662
- "serviceId": "web"
1662
+ "appId": "web"
1663
1663
  }
1664
1664
  ]
1665
1665
  }
@@ -1703,12 +1703,12 @@ var APPLICATION_REQUIREMENTS = [
1703
1703
  {
1704
1704
  id: "shared-auth-boundary",
1705
1705
  title: "Use the shared Topolo auth boundary",
1706
- summary: "Applications must derive identity, organization, scopes, and service entitlement from TopoloAuth rather than inventing parallel auth state.",
1706
+ summary: "Applications must derive identity, organization, scopes, and app entitlement from TopoloAuth rather than inventing parallel auth state.",
1707
1707
  appliesTo: ["browser", "api", "tooling", "agent_surface"],
1708
1708
  evidence: [
1709
1709
  "@topolo/auth-client or @topolo-io/worker-runtime is used where applicable",
1710
1710
  "No public command, tool, or SDK method accepts orgId",
1711
- "Service slug and Auth service registration are documented for protected services"
1711
+ "App slug and Auth app registration are documented for protected APIs"
1712
1712
  ],
1713
1713
  implementation: [
1714
1714
  "Use shared auth/runtime packages instead of copying token parsing, gateway, or browser storage flows",
@@ -1741,20 +1741,20 @@ var APPLICATION_REQUIREMENTS = [
1741
1741
  ]
1742
1742
  },
1743
1743
  {
1744
- id: "service-registration-and-scopes",
1745
- title: "Register protected APIs as platform services",
1746
- summary: "Callable app APIs need a stable service ID, service slug, permissions, role bundles, and API-key scopes before agents or users rely on them.",
1744
+ id: "app-registration-and-scopes",
1745
+ title: "Register protected APIs as platform apps",
1746
+ summary: "Callable app APIs need a stable app ID, app slug, permissions, role bundles, and API-key scopes before agents or users rely on them.",
1747
1747
  appliesTo: ["api"],
1748
1748
  evidence: [
1749
- "Auth service catalog contains the service ID and slug",
1750
- "Permissions, role bundles, and API-key scopes exist for the service",
1751
- "SDK, CLI, and MCP service discovery include the callable production API",
1752
- "CloudControl production HTTP targets classify agent reachability with sdk_service_id or agent_callable:false"
1749
+ "Auth app catalog contains the app ID and slug",
1750
+ "Permissions, role bundles, and API-key scopes exist for the app",
1751
+ "SDK, CLI, and MCP app discovery include the callable production API",
1752
+ "CloudControl production HTTP targets classify agent reachability with sdk_app_id or agent_callable:false"
1753
1753
  ],
1754
1754
  implementation: [
1755
- "Add production Worker api_url metadata and sdk_service_id for every agent-callable API target",
1755
+ "Add production Worker api_url metadata and sdk_app_id for every agent-callable API target",
1756
1756
  "Mark browser, documentation, and runtime-only Worker targets with agent_callable:false",
1757
- "Expose stable service IDs through generated DEFAULT_SERVICE_URLS and live catalog discovery",
1757
+ "Expose stable app IDs through generated DEFAULT_APP_URLS and live catalog discovery",
1758
1758
  "Keep typed SDK/CLI/MCP surfaces in sync when an API contract stabilizes"
1759
1759
  ]
1760
1760
  },
@@ -1863,7 +1863,7 @@ function applicationRequirementScopes(application) {
1863
1863
  const hasBrowserSurface = Boolean(application.productionUrl) || // String() keeps this guard valid after the Pages->Worker migration narrowed
1864
1864
  // the generated kind union to "worker" (no "pages" literal remains).
1865
1865
  application.deployTargets.some((target) => String(target.kind) === "pages");
1866
- const hasApiSurface = application.services.length > 0 || application.deployTargets.some((target) => Boolean(target.serviceId));
1866
+ const hasApiSurface = application.services.length > 0 || application.deployTargets.some((target) => Boolean(target.appId));
1867
1867
  if (hasBrowserSurface) scopes.add("browser");
1868
1868
  if (hasApiSurface) scopes.add("api");
1869
1869
  if (appId === "cli" || appId === "mcp" || appId === "cloudcontrol") {
@@ -1960,7 +1960,7 @@ function evaluateRequirement(application, requirement) {
1960
1960
  "Catalog metadata cannot verify shared shell, launcher, and account menu adoption.",
1961
1961
  evidence
1962
1962
  );
1963
- case "service-registration-and-scopes": {
1963
+ case "app-registration-and-scopes": {
1964
1964
  if (application.services.length > 0) {
1965
1965
  evidence.push(`services=${application.services.join(",")}`);
1966
1966
  return finding(
@@ -1970,7 +1970,7 @@ function evaluateRequirement(application, requirement) {
1970
1970
  evidence
1971
1971
  );
1972
1972
  }
1973
- return finding(requirement, "missing", "No SDK service ID is registered for this callable API surface.", evidence);
1973
+ return finding(requirement, "missing", "No SDK app API id is registered for this callable API surface.", evidence);
1974
1974
  }
1975
1975
  case "organization-scoped-data":
1976
1976
  return finding(
@@ -2057,7 +2057,7 @@ function statusRank(status) {
2057
2057
  }
2058
2058
 
2059
2059
  // src/services.ts
2060
- var DEFAULT_SERVICE_URLS = SERVICES;
2060
+ var DEFAULT_APP_URLS = APP_API_URLS;
2061
2061
  function resolveCatalogServiceUrl(entry, options = {}) {
2062
2062
  const keys = catalogServiceKeyCandidates(entry, options.serviceKey);
2063
2063
  const override = resolveServiceUrlOverride(keys, options.overrides);
@@ -2069,10 +2069,10 @@ function resolveCatalogServiceUrl(entry, options = {}) {
2069
2069
  function resolveServiceUrl(service, overrides) {
2070
2070
  const override = resolveServiceUrlOverride([service], overrides);
2071
2071
  if (override) return override;
2072
- return DEFAULT_SERVICE_URLS[service];
2072
+ return DEFAULT_APP_URLS[service];
2073
2073
  }
2074
2074
  function catalogServiceKeyCandidates(entry, preferred) {
2075
- const values = [preferred, entry.slug, entry.name, entry.serviceId].filter(
2075
+ const values = [preferred, entry.slug, entry.name, entry.appId].filter(
2076
2076
  (value) => typeof value === "string" && value.trim().length > 0
2077
2077
  );
2078
2078
  const keys = /* @__PURE__ */ new Set();
@@ -2100,7 +2100,7 @@ function resolveServiceUrlOverride(keys, overrides) {
2100
2100
  if (envStyle) return envStyle;
2101
2101
  }
2102
2102
  for (const key of keys) {
2103
- const envKey = `TOPOLO_SERVICE_URL_${key.replace(/\./g, "_").toUpperCase()}`;
2103
+ const envKey = `TOPOLO_APP_URL_${key.replace(/\./g, "_").toUpperCase()}`;
2104
2104
  const envValue = typeof process !== "undefined" ? process.env?.[envKey] : void 0;
2105
2105
  if (envValue) return envValue;
2106
2106
  }
@@ -2126,7 +2126,7 @@ var TopoloClient = class _TopoloClient {
2126
2126
  credential;
2127
2127
  agent;
2128
2128
  serviceUrls;
2129
- serviceIds;
2129
+ appIds;
2130
2130
  requireConfirmForWrites;
2131
2131
  timeoutMs;
2132
2132
  fetchImpl;
@@ -2134,18 +2134,18 @@ var TopoloClient = class _TopoloClient {
2134
2134
  serviceCatalogCache = null;
2135
2135
  actionCatalogCache = null;
2136
2136
  /**
2137
- * Process-wide cache for slug → service-id lookups. Keyed by
2137
+ * Process-wide cache for slug → app-id lookups. Keyed by
2138
2138
  * `${authBaseUrl}|${slug}` so multiple `TopoloClient` instances pointing at
2139
2139
  * the same Auth share, but staging vs prod don't poison each other.
2140
- * Cleared via `TopoloClient.clearServiceIdCache()` if a test needs it.
2140
+ * Cleared via `TopoloClient.clearAppIdCache()` if a test needs it.
2141
2141
  */
2142
- static serviceIdCache = /* @__PURE__ */ new Map();
2142
+ static appIdCache = /* @__PURE__ */ new Map();
2143
2143
  /**
2144
- * Drop the slug→service-id cache. Test-only — production callers should
2144
+ * Drop the slug→app-id cache. Test-only — production callers should
2145
2145
  * let the 5-minute TTL expire naturally.
2146
2146
  */
2147
- static clearServiceIdCache() {
2148
- _TopoloClient.serviceIdCache.clear();
2147
+ static clearAppIdCache() {
2148
+ _TopoloClient.appIdCache.clear();
2149
2149
  }
2150
2150
  constructor(options) {
2151
2151
  if (!options.credential) throw new TopoloAuthError("credential is required");
@@ -2153,7 +2153,7 @@ var TopoloClient = class _TopoloClient {
2153
2153
  this.credential = options.credential;
2154
2154
  this.agent = options.agent;
2155
2155
  this.serviceUrls = options.serviceUrls;
2156
- this.serviceIds = options.serviceIds;
2156
+ this.appIds = options.appIds;
2157
2157
  this.requireConfirmForWrites = options.requireConfirmForWrites !== false;
2158
2158
  this.timeoutMs = options.timeoutMs ?? 3e4;
2159
2159
  this.fetchImpl = options.fetch ?? fetch;
@@ -2189,8 +2189,8 @@ var TopoloClient = class _TopoloClient {
2189
2189
  const headers = new Headers();
2190
2190
  headers.set("Accept", "application/json");
2191
2191
  if (opts.body !== void 0) headers.set("Content-Type", "application/json");
2192
- const platformServiceId = resolveConfiguredServiceId(resolvedService.serviceKey, this.serviceIds);
2193
- if (platformServiceId) headers.set("X-Service-ID", platformServiceId);
2192
+ const platformAppId = resolveConfiguredAppId(resolvedService.serviceKey, this.appIds);
2193
+ if (platformAppId) headers.set("X-App-ID", platformAppId);
2194
2194
  applyAuthHeaders(headers, this.credential);
2195
2195
  const requestId = generateRequestId();
2196
2196
  applyAuditHeaders(headers, this.agent, requestId);
@@ -2287,7 +2287,7 @@ var TopoloClient = class _TopoloClient {
2287
2287
  const derived = deriveDevelopersFromAuth(resolveConfiguredServiceUrl("auth", this.serviceUrls));
2288
2288
  if (derived) return { serviceKey, baseUrl: derived };
2289
2289
  }
2290
- return { serviceKey, baseUrl: DEFAULT_SERVICE_URLS[serviceKey] };
2290
+ return { serviceKey, baseUrl: DEFAULT_APP_URLS[serviceKey] };
2291
2291
  }
2292
2292
  const live = await this.resolveLiveCallableService(serviceKey);
2293
2293
  if (live) {
@@ -2296,7 +2296,7 @@ var TopoloClient = class _TopoloClient {
2296
2296
  }
2297
2297
  throw new TopoloSdkError(
2298
2298
  "unknown_service",
2299
- `Unknown Topolo service "${service}". Run service discovery first and pass a callable service id or slug.`
2299
+ `Unknown Topolo app API "${service}". Run app discovery first and pass a callable app id or slug.`
2300
2300
  );
2301
2301
  }
2302
2302
  async resolveLiveCallableService(serviceKey) {
@@ -2310,7 +2310,7 @@ var TopoloClient = class _TopoloClient {
2310
2310
  return baseUrl ? { serviceKey, baseUrl } : null;
2311
2311
  }
2312
2312
  /**
2313
- * Resolve a service-slug → opaque service-id via caller config or TopoloAuth.
2313
+ * Resolve a service-slug → opaque app-id via caller config or TopoloAuth.
2314
2314
  *
2315
2315
  * Cache: 5 minutes per process per `(slug, auth_base_url)`. Negative
2316
2316
  * results (404) are cached for 60s so a typo doesn't hot-loop the
@@ -2321,16 +2321,16 @@ var TopoloClient = class _TopoloClient {
2321
2321
  * This keeps the resolver usable during early bootstrap before a caller
2322
2322
  * has acquired an access token.
2323
2323
  */
2324
- async getServiceIdBySlug(slug) {
2324
+ async getAppIdBySlug(slug) {
2325
2325
  if (typeof slug !== "string") return null;
2326
2326
  const normalized = slug.trim().toLowerCase();
2327
2327
  if (!normalized) return null;
2328
- const configuredServiceId = resolveConfiguredServiceId(normalized, this.serviceIds);
2329
- if (configuredServiceId) return configuredServiceId;
2328
+ const configuredAppId = resolveConfiguredAppId(normalized, this.appIds);
2329
+ if (configuredAppId) return configuredAppId;
2330
2330
  const authBase = resolveServiceUrl("developers", this.serviceUrls);
2331
2331
  const cacheKey = `${authBase}|${normalized}`;
2332
2332
  const now = Date.now();
2333
- const cached = _TopoloClient.serviceIdCache.get(cacheKey);
2333
+ const cached = _TopoloClient.appIdCache.get(cacheKey);
2334
2334
  if (cached && cached.expiresAt > now) {
2335
2335
  return cached.value;
2336
2336
  }
@@ -2348,7 +2348,7 @@ var TopoloClient = class _TopoloClient {
2348
2348
  return null;
2349
2349
  }
2350
2350
  if (res.status === 404) {
2351
- _TopoloClient.serviceIdCache.set(cacheKey, {
2351
+ _TopoloClient.appIdCache.set(cacheKey, {
2352
2352
  value: null,
2353
2353
  expiresAt: now + NEGATIVE_CACHE_TTL_MS
2354
2354
  });
@@ -2358,9 +2358,9 @@ var TopoloClient = class _TopoloClient {
2358
2358
  return null;
2359
2359
  }
2360
2360
  const body = await res.json().catch(() => null);
2361
- const serviceId = body?.data?.service_id;
2362
- const value = typeof serviceId === "string" && serviceId ? serviceId : null;
2363
- _TopoloClient.serviceIdCache.set(cacheKey, {
2361
+ const appId = body?.data?.app_id;
2362
+ const value = typeof appId === "string" && appId ? appId : null;
2363
+ _TopoloClient.appIdCache.set(cacheKey, {
2364
2364
  value,
2365
2365
  expiresAt: now + POSITIVE_CACHE_TTL_MS
2366
2366
  });
@@ -2392,8 +2392,8 @@ var TopoloClient = class _TopoloClient {
2392
2392
  const entries = [];
2393
2393
  for (const item of raw) {
2394
2394
  const s = item;
2395
- const serviceId = typeof s.service_id === "string" ? s.service_id : typeof s.id === "string" ? s.id : null;
2396
- if (!serviceId) continue;
2395
+ const appId = typeof s.app_id === "string" ? s.app_id : typeof s.id === "string" ? s.id : null;
2396
+ if (!appId) continue;
2397
2397
  const permissions = Array.isArray(s.granted_permissions) ? s.granted_permissions.filter((permission) => typeof permission === "string" && permission.trim().length > 0) : [];
2398
2398
  const catalogApiKeyResources = normalizeApiKeyResourceMetadataList(
2399
2399
  s.api_key_resources ?? s.apiKeyResources
@@ -2401,7 +2401,7 @@ var TopoloClient = class _TopoloClient {
2401
2401
  const apiKeyResource = normalizeApiKeyResourceMetadata(s.api_key_resource ?? s.apiKeyResource) ?? catalogApiKeyResources[0] ?? null;
2402
2402
  const apiKeyResources = catalogApiKeyResources.length > 0 ? catalogApiKeyResources : apiKeyResource ? [apiKeyResource] : [];
2403
2403
  entries.push({
2404
- serviceId,
2404
+ appId,
2405
2405
  slug: typeof s.app_slug === "string" ? s.app_slug : null,
2406
2406
  name: typeof s.name === "string" ? s.name : null,
2407
2407
  description: typeof s.description === "string" ? s.description : null,
@@ -2469,7 +2469,7 @@ var TopoloClient = class _TopoloClient {
2469
2469
  async callAction(action, input = {}, options = {}) {
2470
2470
  const entry = await this.getAction(action);
2471
2471
  const mapped = mapActionInput(entry, input);
2472
- const service = entry.serviceSlug || entry.serviceId;
2472
+ const service = entry.appSlug || entry.appId;
2473
2473
  return this.request({
2474
2474
  service,
2475
2475
  method: entry.method,
@@ -2490,7 +2490,7 @@ var TopoloClient = class _TopoloClient {
2490
2490
  listBundledServices() {
2491
2491
  const apps = Object.values(APPLICATIONS);
2492
2492
  return apps.map((app) => ({
2493
- serviceId: app.id,
2493
+ appId: app.id,
2494
2494
  slug: app.id,
2495
2495
  name: app.name ?? app.id,
2496
2496
  description: null,
@@ -2540,11 +2540,11 @@ var TopoloClient = class _TopoloClient {
2540
2540
  };
2541
2541
  }
2542
2542
  };
2543
- function resolveConfiguredServiceId(slug, serviceIds) {
2543
+ function resolveConfiguredAppId(slug, appIds) {
2544
2544
  for (const serviceKey of serviceKeyCandidates2(slug)) {
2545
- const configured = serviceIds?.[serviceKey];
2545
+ const configured = appIds?.[serviceKey];
2546
2546
  if (typeof configured === "string" && configured.trim()) return configured.trim();
2547
- const envKey = `TOPOLO_SERVICE_ID_${serviceKey.replace(/\./g, "_").toUpperCase()}`;
2547
+ const envKey = `TOPOLO_APP_ID_${serviceKey.replace(/\./g, "_").toUpperCase()}`;
2548
2548
  const envValue = typeof process !== "undefined" ? process.env?.[envKey] : void 0;
2549
2549
  if (typeof envValue === "string" && envValue.trim()) return envValue.trim();
2550
2550
  }
@@ -2628,7 +2628,7 @@ function catalogEntryMatches(entry, needle) {
2628
2628
  return catalogEntryLookupKeys(entry).includes(needle);
2629
2629
  }
2630
2630
  function catalogEntryLookupKeys(entry) {
2631
- const values = [entry.serviceId, entry.slug, entry.name].filter((value) => typeof value === "string" && value.trim().length > 0);
2631
+ const values = [entry.appId, entry.slug, entry.name].filter((value) => typeof value === "string" && value.trim().length > 0);
2632
2632
  const keys = /* @__PURE__ */ new Set();
2633
2633
  for (const value of values) {
2634
2634
  const normalized = normalizeLookupKey(value);
@@ -2644,10 +2644,10 @@ function normalizeActionCatalogEntry(item) {
2644
2644
  const a = item;
2645
2645
  const actionId = pickActionString(a.action_id) ?? pickActionString(a.actionId);
2646
2646
  const name = pickActionString(a.name);
2647
- const serviceId = pickActionString(a.service_id) ?? pickActionString(a.serviceId);
2647
+ const appId = pickActionString(a.app_id) ?? pickActionString(a.appId);
2648
2648
  const method = pickActionString(a.method)?.toUpperCase();
2649
2649
  const path = pickActionString(a.path);
2650
- if (!actionId || !name || !serviceId || !method || !path || !isHttpMethod(method)) {
2650
+ if (!actionId || !name || !appId || !method || !path || !isHttpMethod(method)) {
2651
2651
  return null;
2652
2652
  }
2653
2653
  return {
@@ -2656,9 +2656,9 @@ function normalizeActionCatalogEntry(item) {
2656
2656
  toolName: pickActionString(a.tool_name) ?? pickActionString(a.toolName) ?? null,
2657
2657
  title: pickActionString(a.title) ?? name,
2658
2658
  description: pickActionString(a.description) ?? "",
2659
- serviceId,
2660
- serviceSlug: pickActionString(a.service_slug) ?? pickActionString(a.serviceSlug) ?? null,
2661
- serviceName: pickActionString(a.service_name) ?? pickActionString(a.serviceName) ?? null,
2659
+ appId,
2660
+ appSlug: pickActionString(a.app_slug) ?? pickActionString(a.appSlug) ?? null,
2661
+ appName: pickActionString(a.app_name) ?? pickActionString(a.appName) ?? null,
2662
2662
  method,
2663
2663
  path,
2664
2664
  permissionName: pickActionString(a.permission_name) ?? pickActionString(a.permissionName) ?? "",
@@ -2775,6 +2775,7 @@ var CrmModule = class {
2775
2775
  constructor(client) {
2776
2776
  this.client = client;
2777
2777
  }
2778
+ client;
2778
2779
  async listContacts(options = {}) {
2779
2780
  const res = await this.client.request({
2780
2781
  service: "crm",
@@ -2822,6 +2823,7 @@ var IdentityModule = class {
2822
2823
  constructor(client) {
2823
2824
  this.client = client;
2824
2825
  }
2826
+ client;
2825
2827
  /** Returns the resolved user, organization, and permission set for the
2826
2828
  * current credential. Equivalent to `TopoloClient.introspect()` — exposed
2827
2829
  * on this module for symmetry with the other domain modules. */
@@ -2835,6 +2837,7 @@ var P2PModule = class {
2835
2837
  constructor(client) {
2836
2838
  this.client = client;
2837
2839
  }
2840
+ client;
2838
2841
  // Directory ----------------------------------------------------------------
2839
2842
  async listDirectory(options = {}) {
2840
2843
  const res = await this.client.request({
@@ -2866,7 +2869,6 @@ var P2PModule = class {
2866
2869
  capability_id: input.capability_id,
2867
2870
  publisher_org_id: input.publisher_org_id,
2868
2871
  app_id: input.app_id,
2869
- service_id: input.service_id,
2870
2872
  name: input.name,
2871
2873
  description: input.description,
2872
2874
  category: input.category,
@@ -3144,7 +3146,7 @@ function defineTopoloChartWidget(widget) {
3144
3146
  return { ...widget, type: "chart" };
3145
3147
  }
3146
3148
  function createTopoloWidgetResponse({
3147
- serviceId,
3149
+ appId,
3148
3150
  serviceName,
3149
3151
  widgets,
3150
3152
  now
@@ -3154,7 +3156,7 @@ function createTopoloWidgetResponse({
3154
3156
  success: true,
3155
3157
  widgets: widgets.map((widget) => ({
3156
3158
  ...widget,
3157
- serviceId: widget.serviceId?.trim() || serviceId,
3159
+ appId: widget.appId?.trim() || appId,
3158
3160
  serviceName: widget.serviceName?.trim() || serviceName,
3159
3161
  lastUpdated: widget.lastUpdated?.trim() || lastUpdated
3160
3162
  }))
@@ -3192,7 +3194,7 @@ function validateWidget(widget, path, errors) {
3192
3194
  errors.push(`${path} must be an object`);
3193
3195
  return;
3194
3196
  }
3195
- validateNonEmptyString(widget.serviceId, `${path}.serviceId`, errors);
3197
+ validateNonEmptyString(widget.appId, `${path}.appId`, errors);
3196
3198
  validateNonEmptyString(widget.serviceName, `${path}.serviceName`, errors);
3197
3199
  validateNonEmptyString(widget.lastUpdated, `${path}.lastUpdated`, errors);
3198
3200
  validateSnapshotMetadata(widget.snapshot, `${path}.snapshot`, errors);
@@ -3297,7 +3299,7 @@ function createTopolo(options) {
3297
3299
  APPLICATION_REQUIREMENTS,
3298
3300
  APPLICATION_REQUIREMENTS_VERSION,
3299
3301
  CrmModule,
3300
- DEFAULT_SERVICE_URLS,
3302
+ DEFAULT_APP_URLS,
3301
3303
  IdentityModule,
3302
3304
  P2PModule,
3303
3305
  TOPOLO_WIDGET_ENDPOINT,