@simpleapps-com/augur-api 2026.10.11 → 2026.10.13
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/{client-CbN48Fe1.d.mts → client-B10M0T65.d.mts} +26 -286
- package/dist/{client-CbN48Fe1.d.ts → client-B10M0T65.d.ts} +26 -286
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +15 -549
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -549
- package/dist/index.mjs.map +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -104,6 +104,29 @@ interface CallResult {
|
|
|
104
104
|
body: unknown;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/** One endpoint in the registry. */
|
|
108
|
+
interface EndpointEntry {
|
|
109
|
+
/** `camelCase(service).chain.action`, e.g. `items.invMast.doc.list` */
|
|
110
|
+
readonly id: string;
|
|
111
|
+
/** Kebab wire name, e.g. `open-search` */
|
|
112
|
+
readonly service: string;
|
|
113
|
+
readonly method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
114
|
+
/** Path template, e.g. `/inv-mast/{invMastUid}/doc` */
|
|
115
|
+
readonly path: string;
|
|
116
|
+
/** Path params in URL order */
|
|
117
|
+
readonly pathParams: readonly string[];
|
|
118
|
+
/** Path param → anchored regex its value MUST match; params without one are absent */
|
|
119
|
+
readonly pathPatterns: Readonly<Record<string, string>>;
|
|
120
|
+
readonly queryParams: readonly string[];
|
|
121
|
+
/** Alternative action names; an alias id is `service.chain.alias` */
|
|
122
|
+
readonly aliases: readonly string[];
|
|
123
|
+
readonly hasBody: boolean;
|
|
124
|
+
readonly auth: 'none' | 'site' | 'bearer';
|
|
125
|
+
readonly edgeCache: boolean;
|
|
126
|
+
/** Omitted unless set; a read is `readOnly ?? method === 'GET'` */
|
|
127
|
+
readonly readOnly?: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
107
130
|
/** A response as text, before any JSON parsing (what `call()` builds its result from). */
|
|
108
131
|
interface RawResponse {
|
|
109
132
|
status: number;
|
|
@@ -264,46 +287,6 @@ type HealthCheckData = v.InferOutput<typeof HealthCheckDataSchema>;
|
|
|
264
287
|
type PingData = v.InferOutput<typeof PingDataSchema>;
|
|
265
288
|
type WhoamiData = v.InferOutput<typeof WhoamiDataSchema>;
|
|
266
289
|
|
|
267
|
-
/**
|
|
268
|
-
* Interface for discovery metadata that AI agents can use to navigate services
|
|
269
|
-
*/
|
|
270
|
-
interface DiscoveryEndpoint$1 {
|
|
271
|
-
/** Complete API path (e.g., api.joomla.users.list) */
|
|
272
|
-
fullPath: string;
|
|
273
|
-
/** Service name (e.g., joomla, items) */
|
|
274
|
-
service: string;
|
|
275
|
-
/** Business domain (e.g., user-management, content-management) */
|
|
276
|
-
domain: string;
|
|
277
|
-
/** HTTP method (GET, POST, PUT, DELETE) */
|
|
278
|
-
method: string;
|
|
279
|
-
/** Endpoint URL path */
|
|
280
|
-
path: string;
|
|
281
|
-
/** Description of what this endpoint does */
|
|
282
|
-
description: string;
|
|
283
|
-
/** Array of search terms for AI navigation */
|
|
284
|
-
searchTerms: string[];
|
|
285
|
-
/** Related endpoints across services */
|
|
286
|
-
relatedEndpoints: string[];
|
|
287
|
-
/** Common usage patterns in natural language */
|
|
288
|
-
commonPatterns: string[];
|
|
289
|
-
/** Reference to data-only method alternative */
|
|
290
|
-
dataMethod?: string;
|
|
291
|
-
/** Whether this endpoint is discoverable by AI agents */
|
|
292
|
-
discoverable: boolean;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Interface for service discovery metadata
|
|
296
|
-
*/
|
|
297
|
-
interface ServiceDiscoveryMetadata {
|
|
298
|
-
/** Service name */
|
|
299
|
-
serviceName: string;
|
|
300
|
-
/** Service description */
|
|
301
|
-
description: string;
|
|
302
|
-
/** Base URL for the service */
|
|
303
|
-
baseUrl: string;
|
|
304
|
-
/** Array of discoverable endpoints */
|
|
305
|
-
endpoints: DiscoveryEndpoint$1[];
|
|
306
|
-
}
|
|
307
290
|
/**
|
|
308
291
|
* HTTP method types for API operations
|
|
309
292
|
*/
|
|
@@ -326,8 +309,6 @@ interface EndpointConfig {
|
|
|
326
309
|
paramsSchema?: v.GenericSchema;
|
|
327
310
|
/** Valibot schema for validating response data */
|
|
328
311
|
responseSchema: v.GenericSchema;
|
|
329
|
-
/** Whether this endpoint requires authentication (default: true) */
|
|
330
|
-
requiresAuth?: boolean;
|
|
331
312
|
}
|
|
332
313
|
/**
|
|
333
314
|
* Standard API response structure - REQUIRED for all services (8-field format)
|
|
@@ -480,42 +461,6 @@ declare abstract class BaseServiceClient {
|
|
|
480
461
|
* ```
|
|
481
462
|
*/
|
|
482
463
|
private buildEndpointPath;
|
|
483
|
-
/**
|
|
484
|
-
* Get discovery metadata for this service client
|
|
485
|
-
*
|
|
486
|
-
* Built from the endpoint registry, so it lists every endpoint this service
|
|
487
|
-
* exposes, including healthCheck, ping and whoami.
|
|
488
|
-
*
|
|
489
|
-
* @returns ServiceDiscoveryMetadata containing service info and endpoint metadata
|
|
490
|
-
*/
|
|
491
|
-
getDiscoveryMetadata(): ServiceDiscoveryMetadata;
|
|
492
|
-
/**
|
|
493
|
-
* Get service description - can be overridden by subclasses
|
|
494
|
-
*/
|
|
495
|
-
protected getServiceDescription(): string;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/** One endpoint in the registry. */
|
|
499
|
-
interface EndpointEntry {
|
|
500
|
-
/** `camelCase(service).chain.action`, e.g. `items.invMast.doc.list` */
|
|
501
|
-
readonly id: string;
|
|
502
|
-
/** Kebab wire name, e.g. `open-search` */
|
|
503
|
-
readonly service: string;
|
|
504
|
-
readonly method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
505
|
-
/** Path template, e.g. `/inv-mast/{invMastUid}/doc` */
|
|
506
|
-
readonly path: string;
|
|
507
|
-
/** Path params in URL order */
|
|
508
|
-
readonly pathParams: readonly string[];
|
|
509
|
-
/** Path param → anchored regex its value MUST match; params without one are absent */
|
|
510
|
-
readonly pathPatterns: Readonly<Record<string, string>>;
|
|
511
|
-
readonly queryParams: readonly string[];
|
|
512
|
-
/** Alternative action names; an alias id is `service.chain.alias` */
|
|
513
|
-
readonly aliases: readonly string[];
|
|
514
|
-
readonly hasBody: boolean;
|
|
515
|
-
readonly auth: 'none' | 'site' | 'bearer';
|
|
516
|
-
readonly edgeCache: boolean;
|
|
517
|
-
/** Omitted unless set; a read is `readOnly ?? method === 'GET'` */
|
|
518
|
-
readonly readOnly?: boolean;
|
|
519
464
|
}
|
|
520
465
|
|
|
521
466
|
/**
|
|
@@ -2138,7 +2083,6 @@ declare class JoomlaClient extends BaseServiceClient {
|
|
|
2138
2083
|
readonly usergroupsData: DataOnly<JoomlaClientSpec['usergroups']>;
|
|
2139
2084
|
readonly usersData: DataOnly<JoomlaClientSpec['users']>;
|
|
2140
2085
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
2141
|
-
protected getServiceDescription(): string;
|
|
2142
2086
|
}
|
|
2143
2087
|
|
|
2144
2088
|
/**
|
|
@@ -3363,7 +3307,6 @@ declare class CommerceClient extends BaseServiceClient {
|
|
|
3363
3307
|
readonly cartLineData: DataOnly<CommerceClientSpec['cartLine']>;
|
|
3364
3308
|
readonly checkoutData: DataOnly<CommerceClientSpec['checkout']>;
|
|
3365
3309
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
3366
|
-
protected getServiceDescription(): string;
|
|
3367
3310
|
}
|
|
3368
3311
|
|
|
3369
3312
|
/**
|
|
@@ -4756,7 +4699,6 @@ declare class PricingClient extends BaseServiceClient {
|
|
|
4756
4699
|
readonly taxEngineData: DataOnly<PricingClientSpec['taxEngine']>;
|
|
4757
4700
|
readonly webPricingData: DataOnly<PricingClientSpec['webPricing']>;
|
|
4758
4701
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
4759
|
-
protected getServiceDescription(): string;
|
|
4760
4702
|
}
|
|
4761
4703
|
|
|
4762
4704
|
/**
|
|
@@ -7641,7 +7583,6 @@ declare class VMIClient extends BaseServiceClient {
|
|
|
7641
7583
|
readonly sectionsData: DataOnly<VMIClientSpec['sections']>;
|
|
7642
7584
|
readonly warehouseData: DataOnly<VMIClientSpec['warehouse']>;
|
|
7643
7585
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
7644
|
-
protected getServiceDescription(): string;
|
|
7645
7586
|
}
|
|
7646
7587
|
|
|
7647
7588
|
/**
|
|
@@ -8730,7 +8671,6 @@ declare class OpenSearchClient extends BaseServiceClient {
|
|
|
8730
8671
|
readonly queryStringRedirectData: DataOnly<OpenSearchClientSpec['queryStringRedirect']>;
|
|
8731
8672
|
readonly suggestionsData: DataOnly<OpenSearchClientSpec['suggestions']>;
|
|
8732
8673
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
8733
|
-
protected getServiceDescription(): string;
|
|
8734
8674
|
}
|
|
8735
8675
|
|
|
8736
8676
|
/**
|
|
@@ -15864,7 +15804,6 @@ declare class ItemsClient extends BaseServiceClient {
|
|
|
15864
15804
|
readonly p21Data: DataOnly<ItemsClientSpec['p21']>;
|
|
15865
15805
|
readonly variantsData: DataOnly<ItemsClientSpec['variants']>;
|
|
15866
15806
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
15867
|
-
protected getServiceDescription(): string;
|
|
15868
15807
|
}
|
|
15869
15808
|
|
|
15870
15809
|
/**
|
|
@@ -17262,7 +17201,6 @@ declare class LegacyClient extends BaseServiceClient {
|
|
|
17262
17201
|
readonly itemCategoryData: DataOnly<LegacyClientSpec['itemCategory']>;
|
|
17263
17202
|
readonly legacyData: DataOnly<LegacyClientSpec['legacy']>;
|
|
17264
17203
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
17265
|
-
protected getServiceDescription(): string;
|
|
17266
17204
|
}
|
|
17267
17205
|
|
|
17268
17206
|
/**
|
|
@@ -17310,6 +17248,8 @@ interface FyxerTranscriptListParams extends EdgeCacheParams {
|
|
|
17310
17248
|
* (704,705); -1 for every status. Default: 704
|
|
17311
17249
|
*/
|
|
17312
17250
|
statusCd?: number | number[];
|
|
17251
|
+
/** Max characters of each transcript returned; -1 returns the full transcript (Default: 255) */
|
|
17252
|
+
transcriptLength?: number;
|
|
17313
17253
|
}
|
|
17314
17254
|
/** Params for GET /fyxer-transcript/{fyxerTranscriptHdrUid} */
|
|
17315
17255
|
type FyxerTranscriptGetParams = EdgeCacheParams;
|
|
@@ -18864,7 +18804,6 @@ declare class AgrSiteClient extends BaseServiceClient {
|
|
|
18864
18804
|
readonly settingsData: DataOnly<AgrSiteClientSpec['settings']>;
|
|
18865
18805
|
readonly usersData: DataOnly<AgrSiteClientSpec['users']>;
|
|
18866
18806
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
18867
|
-
protected getServiceDescription(): string;
|
|
18868
18807
|
}
|
|
18869
18808
|
|
|
18870
18809
|
/**
|
|
@@ -21606,7 +21545,6 @@ declare class CustomersClient extends BaseServiceClient {
|
|
|
21606
21545
|
readonly contactsUdData: DataOnly<CustomersClientSpec['contactsUd']>;
|
|
21607
21546
|
readonly customerData: DataOnly<CustomersClientSpec['customer']>;
|
|
21608
21547
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
21609
|
-
protected getServiceDescription(): string;
|
|
21610
21548
|
}
|
|
21611
21549
|
|
|
21612
21550
|
/**
|
|
@@ -22748,7 +22686,6 @@ declare class OrdersClient extends BaseServiceClient {
|
|
|
22748
22686
|
readonly poHdrData: DataOnly<OrdersClientSpec['poHdr']>;
|
|
22749
22687
|
readonly poLineData: DataOnly<OrdersClientSpec['poLine']>;
|
|
22750
22688
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
22751
|
-
protected getServiceDescription(): string;
|
|
22752
22689
|
}
|
|
22753
22690
|
|
|
22754
22691
|
/**
|
|
@@ -23803,7 +23740,6 @@ declare class P21PimClient extends BaseServiceClient {
|
|
|
23803
23740
|
readonly itemsData: DataOnly<P21PimClientSpec['items']>;
|
|
23804
23741
|
readonly podcastsData: DataOnly<P21PimClientSpec['podcasts']>;
|
|
23805
23742
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
23806
|
-
protected getServiceDescription(): string;
|
|
23807
23743
|
}
|
|
23808
23744
|
|
|
23809
23745
|
/**
|
|
@@ -25365,7 +25301,6 @@ declare class PaymentsClient extends BaseServiceClient {
|
|
|
25365
25301
|
readonly paytraceData: DataOnly<PaymentsClientSpec['paytrace']>;
|
|
25366
25302
|
readonly unifiedData: DataOnly<PaymentsClientSpec['unified']>;
|
|
25367
25303
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
25368
|
-
protected getServiceDescription(): string;
|
|
25369
25304
|
}
|
|
25370
25305
|
|
|
25371
25306
|
/**
|
|
@@ -26584,7 +26519,6 @@ declare class AgrInfoClient extends BaseServiceClient {
|
|
|
26584
26519
|
readonly sitesData: DataOnly<AgrInfoClientSpec['sites']>;
|
|
26585
26520
|
readonly workflowsData: DataOnly<AgrInfoClientSpec['workflows']>;
|
|
26586
26521
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
26587
|
-
protected getServiceDescription(): string;
|
|
26588
26522
|
}
|
|
26589
26523
|
|
|
26590
26524
|
/**
|
|
@@ -28743,7 +28677,6 @@ declare class AgrIntClient extends BaseServiceClient {
|
|
|
28743
28677
|
readonly rolesData: DataOnly<AgrIntClientSpec['roles']>;
|
|
28744
28678
|
readonly usersData: DataOnly<AgrIntClientSpec['users']>;
|
|
28745
28679
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
28746
|
-
protected getServiceDescription(): string;
|
|
28747
28680
|
}
|
|
28748
28681
|
|
|
28749
28682
|
/**
|
|
@@ -28766,7 +28699,6 @@ declare class AgrIntClient extends BaseServiceClient {
|
|
|
28766
28699
|
|
|
28767
28700
|
declare class AgrWorkClient extends BaseServiceClient {
|
|
28768
28701
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
28769
|
-
protected getServiceDescription(): string;
|
|
28770
28702
|
}
|
|
28771
28703
|
|
|
28772
28704
|
/**
|
|
@@ -28907,7 +28839,6 @@ declare class AvalaraClient extends BaseServiceClient {
|
|
|
28907
28839
|
readonly rates: AvalaraClientSpec['rates'];
|
|
28908
28840
|
readonly ratesData: DataOnly<AvalaraClientSpec['rates']>;
|
|
28909
28841
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
28910
|
-
protected getServiceDescription(): string;
|
|
28911
28842
|
}
|
|
28912
28843
|
|
|
28913
28844
|
/**
|
|
@@ -29148,7 +29079,6 @@ declare class BrandFolderClient extends BaseServiceClient {
|
|
|
29148
29079
|
readonly categories: BrandFolderClientSpec['categories'];
|
|
29149
29080
|
readonly categoriesData: DataOnly<BrandFolderClientSpec['categories']>;
|
|
29150
29081
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
29151
|
-
protected getServiceDescription(): string;
|
|
29152
29082
|
}
|
|
29153
29083
|
|
|
29154
29084
|
/**
|
|
@@ -29257,7 +29187,6 @@ declare class GregorovichClient extends BaseServiceClient {
|
|
|
29257
29187
|
readonly documents: GregorovichClientSpec['documents'];
|
|
29258
29188
|
readonly documentsData: DataOnly<GregorovichClientSpec['documents']>;
|
|
29259
29189
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
29260
|
-
protected getServiceDescription(): string;
|
|
29261
29190
|
}
|
|
29262
29191
|
|
|
29263
29192
|
/**
|
|
@@ -30208,7 +30137,6 @@ declare class LogisticsClient extends BaseServiceClient {
|
|
|
30208
30137
|
readonly speedshipData: DataOnly<LogisticsClientSpec['speedship']>;
|
|
30209
30138
|
readonly upsData: DataOnly<LogisticsClientSpec['ups']>;
|
|
30210
30139
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
30211
|
-
protected getServiceDescription(): string;
|
|
30212
30140
|
}
|
|
30213
30141
|
|
|
30214
30142
|
/**
|
|
@@ -30522,7 +30450,6 @@ declare class P21ApisClient extends BaseServiceClient {
|
|
|
30522
30450
|
readonly transUserData: DataOnly<P21ApisClientSpec['transUser']>;
|
|
30523
30451
|
readonly transWebDisplayTypeData: DataOnly<P21ApisClientSpec['transWebDisplayType']>;
|
|
30524
30452
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
30525
|
-
protected getServiceDescription(): string;
|
|
30526
30453
|
}
|
|
30527
30454
|
|
|
30528
30455
|
/**
|
|
@@ -31472,7 +31399,6 @@ declare class P21CoreClient extends BaseServiceClient {
|
|
|
31472
31399
|
readonly locationData: DataOnly<P21CoreClientSpec['location']>;
|
|
31473
31400
|
readonly paymentTypesData: DataOnly<P21CoreClientSpec['paymentTypes']>;
|
|
31474
31401
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
31475
|
-
protected getServiceDescription(): string;
|
|
31476
31402
|
}
|
|
31477
31403
|
|
|
31478
31404
|
/**
|
|
@@ -32777,7 +32703,6 @@ declare class P21SismClient extends BaseServiceClient {
|
|
|
32777
32703
|
readonly scheduledImportMasterData: DataOnly<P21SismClientSpec['scheduledImportMaster']>;
|
|
32778
32704
|
readonly scheduledImportMetadataData: DataOnly<P21SismClientSpec['scheduledImportMetadata']>;
|
|
32779
32705
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
32780
|
-
protected getServiceDescription(): string;
|
|
32781
32706
|
}
|
|
32782
32707
|
|
|
32783
32708
|
/**
|
|
@@ -32934,7 +32859,6 @@ declare class ShippingClient extends BaseServiceClient {
|
|
|
32934
32859
|
readonly rates: ShippingClientSpec['rates'];
|
|
32935
32860
|
readonly ratesData: DataOnly<ShippingClientSpec['rates']>;
|
|
32936
32861
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
32937
|
-
protected getServiceDescription(): string;
|
|
32938
32862
|
}
|
|
32939
32863
|
|
|
32940
32864
|
/**
|
|
@@ -33116,7 +33040,6 @@ declare class SmartyStreetsClient extends BaseServiceClient {
|
|
|
33116
33040
|
readonly us: SmartyStreetsClientSpec['us'];
|
|
33117
33041
|
readonly usData: DataOnly<SmartyStreetsClientSpec['us']>;
|
|
33118
33042
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
33119
|
-
protected getServiceDescription(): string;
|
|
33120
33043
|
}
|
|
33121
33044
|
|
|
33122
33045
|
/**
|
|
@@ -33251,7 +33174,6 @@ declare class UPSClient extends BaseServiceClient {
|
|
|
33251
33174
|
readonly ratesShop: UPSClientSpec['ratesShop'];
|
|
33252
33175
|
readonly ratesShopData: DataOnly<UPSClientSpec['ratesShop']>;
|
|
33253
33176
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
33254
|
-
protected getServiceDescription(): string;
|
|
33255
33177
|
}
|
|
33256
33178
|
|
|
33257
33179
|
/**
|
|
@@ -34968,40 +34890,8 @@ declare class Basecamp2Client extends BaseServiceClient {
|
|
|
34968
34890
|
readonly todosData: DataOnly<Basecamp2ClientSpec['todos']>;
|
|
34969
34891
|
readonly todosSummaryData: DataOnly<Basecamp2ClientSpec['todosSummary']>;
|
|
34970
34892
|
constructor(http: HTTPClient, baseUrl?: string);
|
|
34971
|
-
protected getServiceDescription(): string;
|
|
34972
34893
|
}
|
|
34973
34894
|
|
|
34974
|
-
/**
|
|
34975
|
-
* Interface for discovery endpoint information - re-export base discovery endpoint
|
|
34976
|
-
*/
|
|
34977
|
-
type DiscoveryEndpoint = DiscoveryEndpoint$1;
|
|
34978
|
-
|
|
34979
|
-
/**
|
|
34980
|
-
* Interface for service discovery results
|
|
34981
|
-
*/
|
|
34982
|
-
interface ServiceMap {
|
|
34983
|
-
/** Service name */
|
|
34984
|
-
serviceName: string;
|
|
34985
|
-
/** Service description */
|
|
34986
|
-
description: string;
|
|
34987
|
-
/** Base URL for the service */
|
|
34988
|
-
baseUrl: string;
|
|
34989
|
-
/** Number of discoverable endpoints */
|
|
34990
|
-
endpointCount: number;
|
|
34991
|
-
/** Array of discoverable endpoints */
|
|
34992
|
-
endpoints: DiscoveryEndpoint[];
|
|
34993
|
-
}
|
|
34994
|
-
/**
|
|
34995
|
-
* Interface for endpoint search results
|
|
34996
|
-
*/
|
|
34997
|
-
interface EndpointSearchResult {
|
|
34998
|
-
/** The matching endpoint */
|
|
34999
|
-
endpoint: DiscoveryEndpoint;
|
|
35000
|
-
/** Relevance score (0-1) */
|
|
35001
|
-
score: number;
|
|
35002
|
-
/** Reason why this endpoint matched */
|
|
35003
|
-
matchReason: string;
|
|
35004
|
-
}
|
|
35005
34895
|
/**
|
|
35006
34896
|
* Main client factory for accessing Augur microservices
|
|
35007
34897
|
*
|
|
@@ -35276,156 +35166,6 @@ declare class AugurAPI {
|
|
|
35276
35166
|
* @param siteId New site ID
|
|
35277
35167
|
*/
|
|
35278
35168
|
setSiteId(siteId: string): void;
|
|
35279
|
-
/**
|
|
35280
|
-
* Discover all available services and their capabilities
|
|
35281
|
-
*
|
|
35282
|
-
* Returns a complete service map showing all discoverable endpoints across
|
|
35283
|
-
* all microservices, enabling AI agents to understand the full API topology.
|
|
35284
|
-
*
|
|
35285
|
-
* @returns Promise<ServiceMap[]> Array of service maps with endpoint metadata
|
|
35286
|
-
*
|
|
35287
|
-
* @example
|
|
35288
|
-
* ```typescript
|
|
35289
|
-
* const api = new AugurAPI({ siteId: 'my-site', bearerToken: 'token' });
|
|
35290
|
-
* const services = await api.discover();
|
|
35291
|
-
*
|
|
35292
|
-
* // Find all user-related endpoints
|
|
35293
|
-
* const userEndpoints = services.flatMap(s => s.endpoints)
|
|
35294
|
-
* .filter(e => e.searchTerms.some(term => term.includes('user')));
|
|
35295
|
-
*
|
|
35296
|
-
* // Show service capabilities
|
|
35297
|
-
* services.forEach(service => {
|
|
35298
|
-
* console.log(`${service.serviceName}: ${service.endpointCount} endpoints`);
|
|
35299
|
-
* service.endpoints.forEach(endpoint => {
|
|
35300
|
-
* console.log(` ${endpoint.fullPath} - ${endpoint.description}`);
|
|
35301
|
-
* });
|
|
35302
|
-
* });
|
|
35303
|
-
* ```
|
|
35304
|
-
*/
|
|
35305
|
-
discover(): Promise<ServiceMap[]>;
|
|
35306
|
-
/**
|
|
35307
|
-
* Find endpoints by search term or functionality description
|
|
35308
|
-
*
|
|
35309
|
-
* Searches across all services to find endpoints that match the given search term.
|
|
35310
|
-
* Uses intelligent matching against endpoint descriptions, search terms, domains,
|
|
35311
|
-
* and common usage patterns.
|
|
35312
|
-
*
|
|
35313
|
-
* @param searchTerm The functionality or term to search for
|
|
35314
|
-
* @param options Search options for filtering and ranking
|
|
35315
|
-
* @returns Promise<EndpointSearchResult[]> Array of matching endpoints with relevance scores
|
|
35316
|
-
*
|
|
35317
|
-
* @example
|
|
35318
|
-
* ```typescript
|
|
35319
|
-
* const api = new AugurAPI({ siteId: 'my-site', bearerToken: 'token' });
|
|
35320
|
-
*
|
|
35321
|
-
* // Find user-related endpoints
|
|
35322
|
-
* const userEndpoints = await api.findEndpoint('users');
|
|
35323
|
-
* console.log(`Found ${userEndpoints.length} user-related endpoints`);
|
|
35324
|
-
*
|
|
35325
|
-
* // Find authentication endpoints
|
|
35326
|
-
* const authEndpoints = await api.findEndpoint('authentication');
|
|
35327
|
-
*
|
|
35328
|
-
* // Find inventory management
|
|
35329
|
-
* const inventoryEndpoints = await api.findEndpoint('inventory management');
|
|
35330
|
-
*
|
|
35331
|
-
* // Show results with scores
|
|
35332
|
-
* userEndpoints.forEach(result => {
|
|
35333
|
-
* console.log(`${result.endpoint.fullPath} (${result.score.toFixed(2)}) - ${result.matchReason}`);
|
|
35334
|
-
* });
|
|
35335
|
-
* ```
|
|
35336
|
-
*/
|
|
35337
|
-
findEndpoint(searchTerm: string, options?: {
|
|
35338
|
-
/** Minimum relevance score (0-1, default: 0.1) */
|
|
35339
|
-
minScore?: number;
|
|
35340
|
-
/** Maximum number of results (default: 10) */
|
|
35341
|
-
maxResults?: number;
|
|
35342
|
-
/** Filter by specific service */
|
|
35343
|
-
service?: string;
|
|
35344
|
-
/** Filter by business domain */
|
|
35345
|
-
domain?: string;
|
|
35346
|
-
/** Include only GET endpoints */
|
|
35347
|
-
readOnly?: boolean;
|
|
35348
|
-
}): Promise<EndpointSearchResult[]>;
|
|
35349
|
-
/**
|
|
35350
|
-
* Get endpoints filtered by service, domain, and method options
|
|
35351
|
-
*/
|
|
35352
|
-
private getFilteredEndpoints;
|
|
35353
|
-
/**
|
|
35354
|
-
* Search and score endpoints against search term
|
|
35355
|
-
*/
|
|
35356
|
-
private searchAndScoreEndpoints;
|
|
35357
|
-
/**
|
|
35358
|
-
* Check if endpoint has required fields
|
|
35359
|
-
*/
|
|
35360
|
-
private isValidEndpoint;
|
|
35361
|
-
/**
|
|
35362
|
-
* Calculate final score with domain filter adjustments
|
|
35363
|
-
*/
|
|
35364
|
-
private calculateFinalScore;
|
|
35365
|
-
/**
|
|
35366
|
-
* Calculate relevance score for an endpoint against a search term
|
|
35367
|
-
*/
|
|
35368
|
-
private calculateEndpointRelevance;
|
|
35369
|
-
/**
|
|
35370
|
-
* Process exact matches with appropriate combining logic
|
|
35371
|
-
*/
|
|
35372
|
-
private processExactMatches;
|
|
35373
|
-
/**
|
|
35374
|
-
* Check if match type should be exclusive (no combining)
|
|
35375
|
-
*/
|
|
35376
|
-
private isExclusiveMatch;
|
|
35377
|
-
/**
|
|
35378
|
-
* Check if match type can be combined with partial matches
|
|
35379
|
-
*/
|
|
35380
|
-
private isCombinableMatch;
|
|
35381
|
-
/**
|
|
35382
|
-
* Process fallback matches when no exact match found
|
|
35383
|
-
*/
|
|
35384
|
-
private processFallbackMatches;
|
|
35385
|
-
/**
|
|
35386
|
-
* Calculate exact field matches with high scores
|
|
35387
|
-
*/
|
|
35388
|
-
private calculateExactMatches;
|
|
35389
|
-
/**
|
|
35390
|
-
* Check for path substring matches
|
|
35391
|
-
*/
|
|
35392
|
-
private checkPathSubstringMatch;
|
|
35393
|
-
/**
|
|
35394
|
-
* Check for description substring matches
|
|
35395
|
-
*/
|
|
35396
|
-
private checkDescriptionSubstringMatch;
|
|
35397
|
-
/**
|
|
35398
|
-
* Check for other substring matches (domain, service)
|
|
35399
|
-
*/
|
|
35400
|
-
private checkOtherSubstringMatches;
|
|
35401
|
-
/**
|
|
35402
|
-
* Check for exact field matches
|
|
35403
|
-
*/
|
|
35404
|
-
private checkExactFieldMatches;
|
|
35405
|
-
/**
|
|
35406
|
-
* Check search terms and common patterns
|
|
35407
|
-
*/
|
|
35408
|
-
private checkSearchTermsAndPatterns;
|
|
35409
|
-
/**
|
|
35410
|
-
* Calculate partial word matches with lower scores
|
|
35411
|
-
*/
|
|
35412
|
-
private calculatePartialMatches;
|
|
35413
|
-
/**
|
|
35414
|
-
* Build searchable text from endpoint fields
|
|
35415
|
-
*/
|
|
35416
|
-
private buildSearchableText;
|
|
35417
|
-
/**
|
|
35418
|
-
* Count matching words in text
|
|
35419
|
-
*/
|
|
35420
|
-
private countWordMatches;
|
|
35421
|
-
/**
|
|
35422
|
-
* Build partial match result with score and reason
|
|
35423
|
-
*/
|
|
35424
|
-
private buildPartialMatchResult;
|
|
35425
|
-
/**
|
|
35426
|
-
* Calculate multi-word matches by finding the best match for each word
|
|
35427
|
-
*/
|
|
35428
|
-
private calculateMultiWordMatches;
|
|
35429
35169
|
}
|
|
35430
35170
|
|
|
35431
|
-
export {
|
|
35171
|
+
export { P21SismClient as $, AugurAPI as A, type BaseResponse$1 as B, type CallArgs as C, types$8 as D, type EndpointEntry as E, HealthCheckDataSchema as F, GregorovichClient as G, type HealthCheckData as H, ItemsClient as I, types$j as J, JoomlaClient as K, types$o as L, type Known as M, LegacyClient as N, types$i as O, LogisticsClient as P, types$7 as Q, OpenSearchClient as R, types$k as S, OrdersClient as T, types$f as U, P21ApisClient as V, types$6 as W, P21CoreClient as X, types$5 as Y, P21PimClient as Z, types$e as _, AgrInfoClient as a, types$4 as a0, PaginationParamsSchema as a1, PaymentsClient as a2, types$d as a3, type PingData as a4, PricingClient as a5, types$m as a6, type RequestConfig as a7, ShippingClient as a8, types$3 as a9, SmartyStreetsClient as aa, types$2 as ab, UPSClient as ac, types$1 as ad, VMIClient as ae, types$l as af, type WhoamiData as ag, WhoamiDataSchema as ah, AgrIntClient as b, types$b as c, AgrSiteClient as d, types$h as e, AgrWorkClient as f, type AugurAPIConfig as g, type AugurContext as h, type AugurRequestConfig as i, type AugurRequestError as j, type AugurResponse as k, AvalaraClient as l, types$a as m, BaseResponseSchema as n, Basecamp2Client as o, types as p, BrandFolderClient as q, types$9 as r, type CallResult as s, types$c as t, CommerceClient as u, types$n as v, ContextCreationError as w, CustomersClient as x, types$g as y, type Envelope as z };
|