@hypelabs-llc/ts-sdk 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +18 -14
  2. package/dist/apiKeyAuthenticationProvider.d.ts +1 -1
  3. package/dist/apiKeyAuthenticationProvider.js +1 -1
  4. package/dist/{partnerClient.d.ts → connectClient.d.ts} +4 -4
  5. package/dist/{partnerClient.js → connectClient.js} +6 -6
  6. package/dist/generated/catalog/capabilities/index.d.ts +44 -0
  7. package/dist/generated/catalog/capabilities/index.js +22 -0
  8. package/dist/generated/catalog/datacenters/index.d.ts +45 -0
  9. package/dist/generated/catalog/datacenters/index.js +25 -0
  10. package/dist/generated/catalog/index.d.ts +39 -0
  11. package/dist/generated/catalog/index.js +39 -0
  12. package/dist/generated/{isps → catalog/isps}/index.d.ts +17 -6
  13. package/dist/generated/{isps → catalog/isps}/index.js +6 -3
  14. package/dist/generated/{locations → catalog/locations}/index.d.ts +14 -6
  15. package/dist/generated/{locations → catalog/locations}/index.js +6 -3
  16. package/dist/generated/{products → catalog/products}/index.d.ts +13 -7
  17. package/dist/generated/{products → catalog/products}/index.js +2 -2
  18. package/dist/generated/connectApiClient.d.ts +54 -0
  19. package/dist/generated/{partnerApiClient.js → connectApiClient.js} +10 -41
  20. package/dist/generated/customers/authenticate/index.d.ts +23 -8
  21. package/dist/generated/customers/authenticate/index.js +21 -3
  22. package/dist/generated/customers/authenticate/oauth/index.d.ts +30 -0
  23. package/dist/generated/customers/authenticate/oauth/index.js +28 -0
  24. package/dist/generated/customers/authenticate/telegram/index.d.ts +31 -0
  25. package/dist/generated/customers/authenticate/telegram/index.js +29 -0
  26. package/dist/generated/customers/index.d.ts +24 -6
  27. package/dist/generated/customers/index.js +8 -4
  28. package/dist/generated/customers/item/billing/index.d.ts +31 -0
  29. package/dist/generated/customers/item/billing/index.js +29 -0
  30. package/dist/generated/customers/item/defaults/index.d.ts +30 -0
  31. package/dist/generated/customers/item/defaults/index.js +28 -0
  32. package/dist/generated/customers/item/index.d.ts +53 -5
  33. package/dist/generated/customers/item/index.js +57 -5
  34. package/dist/generated/customers/item/kyc/index.d.ts +3 -2
  35. package/dist/generated/customers/item/kyc/index.js +5 -2
  36. package/dist/generated/customers/item/metadata/index.d.ts +30 -0
  37. package/dist/generated/customers/item/metadata/index.js +28 -0
  38. package/dist/generated/customers/item/password/index.d.ts +30 -0
  39. package/dist/generated/customers/item/password/index.js +28 -0
  40. package/dist/generated/customers/item/resetPassword/index.d.ts +28 -0
  41. package/dist/generated/customers/item/resetPassword/index.js +25 -0
  42. package/dist/generated/customers/item/sendVerification/index.d.ts +31 -0
  43. package/dist/generated/customers/item/sendVerification/index.js +29 -0
  44. package/dist/generated/incidents/index.d.ts +20 -6
  45. package/dist/generated/incidents/index.js +8 -4
  46. package/dist/generated/{organizations/item/members/item → incidents/item/dismiss}/index.d.ts +10 -8
  47. package/dist/generated/incidents/item/dismiss/index.js +25 -0
  48. package/dist/generated/incidents/item/index.d.ts +19 -11
  49. package/dist/generated/incidents/item/index.js +25 -8
  50. package/dist/generated/incidents/item/metadata/index.d.ts +30 -0
  51. package/dist/generated/incidents/item/metadata/index.js +28 -0
  52. package/dist/generated/incidents/item/resolve/index.d.ts +30 -0
  53. package/dist/generated/incidents/item/resolve/index.js +28 -0
  54. package/dist/generated/models/index.d.ts +1509 -983
  55. package/dist/generated/models/index.js +1341 -951
  56. package/dist/generated/orders/index.d.ts +28 -8
  57. package/dist/generated/orders/index.js +10 -4
  58. package/dist/generated/orders/item/extend/index.d.ts +8 -5
  59. package/dist/generated/orders/item/extend/index.js +8 -3
  60. package/dist/generated/orders/item/index.d.ts +39 -1
  61. package/dist/generated/orders/item/index.js +33 -0
  62. package/dist/generated/{activities → orders/item/proxies}/index.d.ts +10 -7
  63. package/dist/generated/orders/item/proxies/index.js +25 -0
  64. package/dist/generated/orders/preview/index.d.ts +7 -5
  65. package/dist/generated/orders/preview/index.js +7 -3
  66. package/dist/generated/orders/trial/index.d.ts +9 -6
  67. package/dist/generated/orders/trial/index.js +9 -4
  68. package/dist/generated/proxies/index.d.ts +5 -5
  69. package/dist/generated/proxies/item/annotations/index.d.ts +29 -0
  70. package/dist/generated/{organizations/item/pricing → proxies/item/annotations}/index.js +6 -6
  71. package/dist/generated/proxies/item/credentials/index.d.ts +10 -10
  72. package/dist/generated/proxies/item/credentials/index.js +4 -5
  73. package/dist/generated/proxies/item/index.d.ts +17 -2
  74. package/dist/generated/proxies/item/index.js +15 -0
  75. package/dist/generated/proxies/item/ipInfo/index.d.ts +29 -0
  76. package/dist/generated/proxies/item/ipInfo/index.js +26 -0
  77. package/dist/generated/proxies/item/ipRotation/index.d.ts +11 -6
  78. package/dist/generated/proxies/item/ipRotation/index.js +5 -0
  79. package/dist/generated/{systemAlert → proxies/item/ipRotation/link}/index.d.ts +9 -9
  80. package/dist/generated/proxies/item/ipRotation/link/index.js +22 -0
  81. package/dist/generated/proxies/item/ipRotation/trigger/index.d.ts +2 -2
  82. package/dist/generated/proxies/item/options/index.d.ts +42 -0
  83. package/dist/generated/proxies/item/options/index.js +34 -0
  84. package/dist/generated/proxies/item/ping/index.d.ts +4 -2
  85. package/dist/generated/proxies/item/ping/index.js +6 -2
  86. package/dist/generated/reviews/index.d.ts +4 -3
  87. package/dist/generated/reviews/index.js +5 -2
  88. package/dist/generated/reviews/item/approve/index.d.ts +1 -0
  89. package/dist/generated/reviews/item/approve/index.js +5 -2
  90. package/dist/generated/reviews/item/index.d.ts +7 -2
  91. package/dist/generated/reviews/item/index.js +12 -2
  92. package/dist/generated/reviews/item/metadata/index.d.ts +30 -0
  93. package/dist/generated/reviews/item/metadata/index.js +28 -0
  94. package/dist/index.d.ts +1 -1
  95. package/dist/index.js +1 -1
  96. package/package.json +2 -2
  97. package/dist/generated/activities/index.js +0 -22
  98. package/dist/generated/organizations/index.d.ts +0 -52
  99. package/dist/generated/organizations/index.js +0 -43
  100. package/dist/generated/organizations/item/balance/deposit/index.d.ts +0 -29
  101. package/dist/generated/organizations/item/balance/deposit/index.js +0 -25
  102. package/dist/generated/organizations/item/balance/index.d.ts +0 -36
  103. package/dist/generated/organizations/item/balance/index.js +0 -32
  104. package/dist/generated/organizations/item/billing/index.d.ts +0 -41
  105. package/dist/generated/organizations/item/billing/index.js +0 -31
  106. package/dist/generated/organizations/item/branding/index.d.ts +0 -29
  107. package/dist/generated/organizations/item/branding/index.js +0 -25
  108. package/dist/generated/organizations/item/email/index.d.ts +0 -41
  109. package/dist/generated/organizations/item/email/index.js +0 -31
  110. package/dist/generated/organizations/item/index.d.ts +0 -92
  111. package/dist/generated/organizations/item/index.js +0 -79
  112. package/dist/generated/organizations/item/infrastructure/dnsCheck/index.d.ts +0 -33
  113. package/dist/generated/organizations/item/infrastructure/dnsCheck/index.js +0 -22
  114. package/dist/generated/organizations/item/infrastructure/index.d.ts +0 -50
  115. package/dist/generated/organizations/item/infrastructure/index.js +0 -41
  116. package/dist/generated/organizations/item/members/index.d.ts +0 -38
  117. package/dist/generated/organizations/item/members/index.js +0 -33
  118. package/dist/generated/organizations/item/members/item/index.js +0 -16
  119. package/dist/generated/organizations/item/pricing/index.d.ts +0 -29
  120. package/dist/generated/partnerApiClient.d.ts +0 -84
  121. package/dist/generated/paymentProcessors/index.d.ts +0 -65
  122. package/dist/generated/paymentProcessors/index.js +0 -36
  123. package/dist/generated/systemAlert/index.js +0 -22
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  <p align="center">
2
- <img src="https://i.imgur.com/NtKvmk2.png" height="100" alt="HypeLabs" />
2
+ <img src="https://hypelabs.llc/logo.png" height="100" alt="HypeLabs" />
3
3
  </p>
4
4
  <h3 align="center">
5
- HypeLabs Partner SDK
5
+ HypeLabs Connect SDK
6
6
  </h3>
7
7
  <p align="center">
8
- The TypeScript client for the HypeLabs Partner API, for internal services. 🚀
8
+ The TypeScript client for the HypeLabs Connect API.
9
9
  </p>
10
10
  <p align="center">
11
11
  <a href="https://www.npmjs.com/package/@hypelabs-llc/ts-sdk"><img src="https://img.shields.io/npm/v/@hypelabs-llc/ts-sdk?color=cb3837&label=npm" /></a>
@@ -18,25 +18,29 @@
18
18
  ## Requirements
19
19
 
20
20
  - Node.js 18 or later
21
- - A HypeLabs Partner API key (`hl_live_…`)
21
+ - A HypeLabs Connect API key (`hl_live_…`)
22
22
 
23
23
  > The client authenticates with an API key, so run it **server-side** (Node, a backend, or a framework's
24
24
  > server runtime) — never ship your key to the browser.
25
25
 
26
26
  ## Install
27
27
 
28
- ```bash
29
- pnpm add @hypelabs-llc/ts-sdk
30
- ```
28
+ 1. **Add the package:**
29
+
30
+ ```bash
31
+ pnpm add @hypelabs-llc/ts-sdk
32
+ ```
33
+
34
+ 2. **Create your organization** on the [HypeLabs Console](https://console.hypelabs.network/?utm_source=github&utm_medium=readme&utm_campaign=ts-sdk) and generate an API key.
31
35
 
32
36
  ## Usage
33
37
 
34
38
  Create a client with your API key and call the API. Every call is async and returns typed models.
35
39
 
36
40
  ```ts
37
- import { createPartnerClient } from "@hypelabs-llc/ts-sdk";
41
+ import { createConnectClient } from "@hypelabs-llc/ts-sdk";
38
42
 
39
- const client = createPartnerClient(process.env.PARTNER_API_KEY!);
43
+ const client = createConnectClient(process.env.CONNECT_API_KEY!);
40
44
 
41
45
  const products = await client.products.get();
42
46
  for (const product of products ?? []) {
@@ -49,19 +53,19 @@ for (const product of products ?? []) {
49
53
  Keep one shared client in a server-only module so the key never reaches the browser:
50
54
 
51
55
  ```ts
52
- // lib/partner.ts
56
+ // lib/connect.ts
53
57
  import "server-only";
54
- import { createPartnerClient } from "@hypelabs-llc/ts-sdk";
58
+ import { createConnectClient } from "@hypelabs-llc/ts-sdk";
55
59
 
56
- export const partner = createPartnerClient(process.env.PARTNER_API_KEY!);
60
+ export const connect = createConnectClient(process.env.CONNECT_API_KEY!);
57
61
  ```
58
62
 
59
63
  ```tsx
60
64
  // app/products/page.tsx — a Server Component
61
- import { partner } from "@/lib/partner";
65
+ import { connect } from "@/lib/connect";
62
66
 
63
67
  export default async function Page() {
64
- const products = await partner.products.get();
68
+ const products = await connect.products.get();
65
69
  return <pre>{JSON.stringify(products, null, 2)}</pre>;
66
70
  }
67
71
  ```
@@ -1,6 +1,6 @@
1
1
  import type { AuthenticationProvider, RequestInformation } from "@microsoft/kiota-abstractions";
2
2
  /**
3
- * Authenticates every request with the Partner API's `X-Api-Key` header. Kiota calls this before each
3
+ * Authenticates every request with the Connect API's `X-Api-Key` header. Kiota calls this before each
4
4
  * outgoing request; the key is supplied once when the client is created.
5
5
  */
6
6
  export declare class ApiKeyAuthenticationProvider implements AuthenticationProvider {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Authenticates every request with the Partner API's `X-Api-Key` header. Kiota calls this before each
2
+ * Authenticates every request with the Connect API's `X-Api-Key` header. Kiota calls this before each
3
3
  * outgoing request; the key is supplied once when the client is created.
4
4
  */
5
5
  export class ApiKeyAuthenticationProvider {
@@ -1,15 +1,15 @@
1
1
  /**
2
- * The entry point to the HypeLabs Partner API. Create one with your API key and use the fluent request
2
+ * The entry point to the HypeLabs Connect API. Create one with your API key and use the fluent request
3
3
  * builders it returns — `client.products.get()`, `client.customers.post(...)`, and so on.
4
4
  *
5
5
  * ```ts
6
- * const client = createPartnerClient("hl_live_...");
6
+ * const client = createConnectClient("hl_live_...");
7
7
  * const products = await client.products.get();
8
8
  * ```
9
9
  *
10
10
  * The request adapter and the `X-Api-Key` authentication are wired up internally, so callers never touch
11
11
  * the generated Kiota plumbing directly.
12
12
  *
13
- * @param apiKey A Partner API key (e.g. `hl_live_…`).
13
+ * @param apiKey A Connect API key (e.g. `hl_live_…`).
14
14
  */
15
- export declare function createPartnerClient(apiKey: string): any;
15
+ export declare function createConnectClient(apiKey: string): any;
@@ -1,24 +1,24 @@
1
1
  import { DefaultRequestAdapter } from "@microsoft/kiota-bundle";
2
- import { createPartnerApiClient } from "./generated/partnerApiClient.js";
2
+ import { createConnectApiClient } from "./generated/connectApiClient.js";
3
3
  import { ApiKeyAuthenticationProvider } from "./apiKeyAuthenticationProvider.js";
4
4
  /**
5
- * The entry point to the HypeLabs Partner API. Create one with your API key and use the fluent request
5
+ * The entry point to the HypeLabs Connect API. Create one with your API key and use the fluent request
6
6
  * builders it returns — `client.products.get()`, `client.customers.post(...)`, and so on.
7
7
  *
8
8
  * ```ts
9
- * const client = createPartnerClient("hl_live_...");
9
+ * const client = createConnectClient("hl_live_...");
10
10
  * const products = await client.products.get();
11
11
  * ```
12
12
  *
13
13
  * The request adapter and the `X-Api-Key` authentication are wired up internally, so callers never touch
14
14
  * the generated Kiota plumbing directly.
15
15
  *
16
- * @param apiKey A Partner API key (e.g. `hl_live_…`).
16
+ * @param apiKey A Connect API key (e.g. `hl_live_…`).
17
17
  */
18
- export function createPartnerClient(apiKey) {
18
+ export function createConnectClient(apiKey) {
19
19
  if (!apiKey || !apiKey.trim()) {
20
20
  throw new Error("An API key is required.");
21
21
  }
22
22
  const adapter = new DefaultRequestAdapter(new ApiKeyAuthenticationProvider(apiKey));
23
- return createPartnerApiClient(adapter);
23
+ return createConnectApiClient(adapter);
24
24
  }
@@ -0,0 +1,44 @@
1
+ import { type Capability } from '../../models/index.js';
2
+ import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /catalog/capabilities
5
+ */
6
+ export interface CapabilitiesRequestBuilder extends BaseRequestBuilder<CapabilitiesRequestBuilder> {
7
+ /**
8
+ * Returns the sellable proxy capabilities (title, description, icon) with their stock for the selection.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Capability[]>}
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CapabilitiesRequestBuilderGetQueryParameters> | undefined): Promise<Capability[] | undefined>;
13
+ /**
14
+ * Returns the sellable proxy capabilities (title, description, icon) with their stock for the selection.
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CapabilitiesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Returns the sellable proxy capabilities (title, description, icon) with their stock for the selection.
22
+ */
23
+ export interface CapabilitiesRequestBuilderGetQueryParameters {
24
+ /**
25
+ * Narrow the stock to this datacenter (optional).
26
+ */
27
+ datacenterId?: Guid;
28
+ /**
29
+ * Narrow the stock to this ISP (optional).
30
+ */
31
+ ispId?: Guid;
32
+ /**
33
+ * Narrow the stock to this location (optional).
34
+ */
35
+ locationId?: Guid;
36
+ }
37
+ /**
38
+ * Uri template for the request builder.
39
+ */
40
+ export declare const CapabilitiesRequestBuilderUriTemplate = "{+baseurl}/catalog/capabilities{?datacenterId*,ispId*,locationId*}";
41
+ /**
42
+ * Metadata for all the requests in the request builder.
43
+ */
44
+ export declare const CapabilitiesRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createCapabilityFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const CapabilitiesRequestBuilderUriTemplate = "{+baseurl}/catalog/capabilities{?datacenterId*,ispId*,locationId*}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const CapabilitiesRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: CapabilitiesRequestBuilderUriTemplate,
16
+ responseBodyContentType: "text/plain;q=0.9",
17
+ adapterMethodName: "sendCollection",
18
+ responseBodyFactory: createCapabilityFromDiscriminatorValue,
19
+ },
20
+ };
21
+ /* tslint:enable */
22
+ /* eslint-enable */
@@ -0,0 +1,45 @@
1
+ import { type Datacenter } from '../../models/index.js';
2
+ import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /catalog/datacenters
5
+ */
6
+ export interface DatacentersRequestBuilder extends BaseRequestBuilder<DatacentersRequestBuilder> {
7
+ /**
8
+ * Returns the available datacenters for a product, location and ISP.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<Datacenter[]>}
11
+ * @throws {ApiResponse} error when the service returns a 404 status code
12
+ */
13
+ get(requestConfiguration?: RequestConfiguration<DatacentersRequestBuilderGetQueryParameters> | undefined): Promise<Datacenter[] | undefined>;
14
+ /**
15
+ * Returns the available datacenters for a product, location and ISP.
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {RequestInformation}
18
+ */
19
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<DatacentersRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
+ }
21
+ /**
22
+ * Returns the available datacenters for a product, location and ISP.
23
+ */
24
+ export interface DatacentersRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Identifier of the selected ISP.
27
+ */
28
+ ispId?: Guid;
29
+ /**
30
+ * Identifier of the selected location.
31
+ */
32
+ locationId?: Guid;
33
+ /**
34
+ * Identifier of the product being priced.
35
+ */
36
+ productId?: Guid;
37
+ }
38
+ /**
39
+ * Uri template for the request builder.
40
+ */
41
+ export declare const DatacentersRequestBuilderUriTemplate = "{+baseurl}/catalog/datacenters?ispId={ispId}&locationId={locationId}&productId={productId}";
42
+ /**
43
+ * Metadata for all the requests in the request builder.
44
+ */
45
+ export declare const DatacentersRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createApiResponseFromDiscriminatorValue, createDatacenterFromDiscriminatorValue } from '../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const DatacentersRequestBuilderUriTemplate = "{+baseurl}/catalog/datacenters?ispId={ispId}&locationId={locationId}&productId={productId}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const DatacentersRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: DatacentersRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 404: createApiResponseFromDiscriminatorValue,
19
+ },
20
+ adapterMethodName: "sendCollection",
21
+ responseBodyFactory: createDatacenterFromDiscriminatorValue,
22
+ },
23
+ };
24
+ /* tslint:enable */
25
+ /* eslint-enable */
@@ -0,0 +1,39 @@
1
+ import { type CapabilitiesRequestBuilder } from './capabilities/index.js';
2
+ import { type DatacentersRequestBuilder } from './datacenters/index.js';
3
+ import { type IspsRequestBuilder } from './isps/index.js';
4
+ import { type LocationsRequestBuilder } from './locations/index.js';
5
+ import { type ProductsRequestBuilder } from './products/index.js';
6
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
7
+ /**
8
+ * Builds and executes requests for operations under /catalog
9
+ */
10
+ export interface CatalogRequestBuilder extends BaseRequestBuilder<CatalogRequestBuilder> {
11
+ /**
12
+ * The capabilities property
13
+ */
14
+ get capabilities(): CapabilitiesRequestBuilder;
15
+ /**
16
+ * The datacenters property
17
+ */
18
+ get datacenters(): DatacentersRequestBuilder;
19
+ /**
20
+ * The isps property
21
+ */
22
+ get isps(): IspsRequestBuilder;
23
+ /**
24
+ * The locations property
25
+ */
26
+ get locations(): LocationsRequestBuilder;
27
+ /**
28
+ * The products property
29
+ */
30
+ get products(): ProductsRequestBuilder;
31
+ }
32
+ /**
33
+ * Uri template for the request builder.
34
+ */
35
+ export declare const CatalogRequestBuilderUriTemplate = "{+baseurl}/catalog";
36
+ /**
37
+ * Metadata for all the navigation properties in the request builder.
38
+ */
39
+ export declare const CatalogRequestBuilderNavigationMetadata: Record<Exclude<keyof CatalogRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { CapabilitiesRequestBuilderRequestsMetadata } from './capabilities/index.js';
6
+ // @ts-ignore
7
+ import { DatacentersRequestBuilderRequestsMetadata } from './datacenters/index.js';
8
+ // @ts-ignore
9
+ import { IspsRequestBuilderRequestsMetadata } from './isps/index.js';
10
+ // @ts-ignore
11
+ import { LocationsRequestBuilderRequestsMetadata } from './locations/index.js';
12
+ // @ts-ignore
13
+ import { ProductsRequestBuilderRequestsMetadata } from './products/index.js';
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export const CatalogRequestBuilderUriTemplate = "{+baseurl}/catalog";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export const CatalogRequestBuilderNavigationMetadata = {
22
+ capabilities: {
23
+ requestsMetadata: CapabilitiesRequestBuilderRequestsMetadata,
24
+ },
25
+ datacenters: {
26
+ requestsMetadata: DatacentersRequestBuilderRequestsMetadata,
27
+ },
28
+ isps: {
29
+ requestsMetadata: IspsRequestBuilderRequestsMetadata,
30
+ },
31
+ locations: {
32
+ requestsMetadata: LocationsRequestBuilderRequestsMetadata,
33
+ },
34
+ products: {
35
+ requestsMetadata: ProductsRequestBuilderRequestsMetadata,
36
+ },
37
+ };
38
+ /* tslint:enable */
39
+ /* eslint-enable */
@@ -1,33 +1,44 @@
1
- import { type Isp } from '../models/index.js';
1
+ import { type Isp } from '../../models/index.js';
2
2
  import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
- * Builds and executes requests for operations under /isps
4
+ * Builds and executes requests for operations under /catalog/isps
5
5
  */
6
6
  export interface IspsRequestBuilder extends BaseRequestBuilder<IspsRequestBuilder> {
7
7
  /**
8
- * Returns the available ISPs. Pass productId and/or locationId to narrow the results.
8
+ * Returns the available ISPs for a product and location. Options the organization has disabled are hidden unless includeDisabled is set.
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
10
  * @returns {Promise<Isp[]>}
11
+ * @throws {ApiResponse} error when the service returns a 404 status code
11
12
  */
12
13
  get(requestConfiguration?: RequestConfiguration<IspsRequestBuilderGetQueryParameters> | undefined): Promise<Isp[] | undefined>;
13
14
  /**
14
- * Returns the available ISPs. Pass productId and/or locationId to narrow the results.
15
+ * Returns the available ISPs for a product and location. Options the organization has disabled are hidden unless includeDisabled is set.
15
16
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
17
  * @returns {RequestInformation}
17
18
  */
18
19
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<IspsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
20
  }
20
21
  /**
21
- * Returns the available ISPs. Pass productId and/or locationId to narrow the results.
22
+ * Returns the available ISPs for a product and location. Options the organization has disabled are hidden unless includeDisabled is set.
22
23
  */
23
24
  export interface IspsRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Include options the organization has disabled (hidden by default).
27
+ */
28
+ includeDisabled?: boolean;
29
+ /**
30
+ * Identifier of the selected location.
31
+ */
24
32
  locationId?: Guid;
33
+ /**
34
+ * Identifier of the product being priced.
35
+ */
25
36
  productId?: Guid;
26
37
  }
27
38
  /**
28
39
  * Uri template for the request builder.
29
40
  */
30
- export declare const IspsRequestBuilderUriTemplate = "{+baseurl}/isps{?locationId*,productId*}";
41
+ export declare const IspsRequestBuilderUriTemplate = "{+baseurl}/catalog/isps?locationId={locationId}&productId={productId}{&includeDisabled*}";
31
42
  /**
32
43
  * Metadata for all the requests in the request builder.
33
44
  */
@@ -2,18 +2,21 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createIspFromDiscriminatorValue } from '../models/index.js';
5
+ import { createApiResponseFromDiscriminatorValue, createIspFromDiscriminatorValue } from '../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
9
- export const IspsRequestBuilderUriTemplate = "{+baseurl}/isps{?locationId*,productId*}";
9
+ export const IspsRequestBuilderUriTemplate = "{+baseurl}/catalog/isps?locationId={locationId}&productId={productId}{&includeDisabled*}";
10
10
  /**
11
11
  * Metadata for all the requests in the request builder.
12
12
  */
13
13
  export const IspsRequestBuilderRequestsMetadata = {
14
14
  get: {
15
15
  uriTemplate: IspsRequestBuilderUriTemplate,
16
- responseBodyContentType: "text/plain;q=0.9",
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 404: createApiResponseFromDiscriminatorValue,
19
+ },
17
20
  adapterMethodName: "sendCollection",
18
21
  responseBodyFactory: createIspFromDiscriminatorValue,
19
22
  },
@@ -1,32 +1,40 @@
1
- import { type Location } from '../models/index.js';
1
+ import { type Location } from '../../models/index.js';
2
2
  import { type BaseRequestBuilder, type Guid, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
- * Builds and executes requests for operations under /locations
4
+ * Builds and executes requests for operations under /catalog/locations
5
5
  */
6
6
  export interface LocationsRequestBuilder extends BaseRequestBuilder<LocationsRequestBuilder> {
7
7
  /**
8
- * Returns the available locations (with their ISPs). Pass productId to narrow to a product.
8
+ * Returns the available locations (with their ISPs) for a product. Options the organization has disabled are hidden unless includeDisabled is set.
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
10
  * @returns {Promise<Location[]>}
11
+ * @throws {ApiResponse} error when the service returns a 404 status code
11
12
  */
12
13
  get(requestConfiguration?: RequestConfiguration<LocationsRequestBuilderGetQueryParameters> | undefined): Promise<Location[] | undefined>;
13
14
  /**
14
- * Returns the available locations (with their ISPs). Pass productId to narrow to a product.
15
+ * Returns the available locations (with their ISPs) for a product. Options the organization has disabled are hidden unless includeDisabled is set.
15
16
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
17
  * @returns {RequestInformation}
17
18
  */
18
19
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<LocationsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
20
  }
20
21
  /**
21
- * Returns the available locations (with their ISPs). Pass productId to narrow to a product.
22
+ * Returns the available locations (with their ISPs) for a product. Options the organization has disabled are hidden unless includeDisabled is set.
22
23
  */
23
24
  export interface LocationsRequestBuilderGetQueryParameters {
25
+ /**
26
+ * Include options the organization has disabled (hidden by default).
27
+ */
28
+ includeDisabled?: boolean;
29
+ /**
30
+ * Identifier of the product whose locations to list.
31
+ */
24
32
  productId?: Guid;
25
33
  }
26
34
  /**
27
35
  * Uri template for the request builder.
28
36
  */
29
- export declare const LocationsRequestBuilderUriTemplate = "{+baseurl}/locations{?productId*}";
37
+ export declare const LocationsRequestBuilderUriTemplate = "{+baseurl}/catalog/locations?productId={productId}{&includeDisabled*}";
30
38
  /**
31
39
  * Metadata for all the requests in the request builder.
32
40
  */
@@ -2,18 +2,21 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createLocationFromDiscriminatorValue } from '../models/index.js';
5
+ import { createApiResponseFromDiscriminatorValue, createLocationFromDiscriminatorValue } from '../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
9
- export const LocationsRequestBuilderUriTemplate = "{+baseurl}/locations{?productId*}";
9
+ export const LocationsRequestBuilderUriTemplate = "{+baseurl}/catalog/locations?productId={productId}{&includeDisabled*}";
10
10
  /**
11
11
  * Metadata for all the requests in the request builder.
12
12
  */
13
13
  export const LocationsRequestBuilderRequestsMetadata = {
14
14
  get: {
15
15
  uriTemplate: LocationsRequestBuilderUriTemplate,
16
- responseBodyContentType: "text/plain;q=0.9",
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 404: createApiResponseFromDiscriminatorValue,
19
+ },
17
20
  adapterMethodName: "sendCollection",
18
21
  responseBodyFactory: createLocationFromDiscriminatorValue,
19
22
  },
@@ -1,26 +1,32 @@
1
- import { type Product } from '../models/index.js';
1
+ import { type Product } from '../../models/index.js';
2
2
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
- * Builds and executes requests for operations under /products
4
+ * Builds and executes requests for operations under /catalog/products
5
5
  */
6
6
  export interface ProductsRequestBuilder extends BaseRequestBuilder<ProductsRequestBuilder> {
7
7
  /**
8
- * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs.
8
+ * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs. Options the organization has disabled are hidden unless includeDisabled is set.
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
10
  * @returns {Promise<Product[]>}
11
11
  */
12
- get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Product[] | undefined>;
12
+ get(requestConfiguration?: RequestConfiguration<ProductsRequestBuilderGetQueryParameters> | undefined): Promise<Product[] | undefined>;
13
13
  /**
14
- * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs.
14
+ * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs. Options the organization has disabled are hidden unless includeDisabled is set.
15
15
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
16
  * @returns {RequestInformation}
17
17
  */
18
- toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProductsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Returns the commercial catalog (products, pricing) enriched with available locations and ISPs. Options the organization has disabled are hidden unless includeDisabled is set.
22
+ */
23
+ export interface ProductsRequestBuilderGetQueryParameters {
24
+ includeDisabled?: boolean;
19
25
  }
20
26
  /**
21
27
  * Uri template for the request builder.
22
28
  */
23
- export declare const ProductsRequestBuilderUriTemplate = "{+baseurl}/products";
29
+ export declare const ProductsRequestBuilderUriTemplate = "{+baseurl}/catalog/products{?includeDisabled*}";
24
30
  /**
25
31
  * Metadata for all the requests in the request builder.
26
32
  */
@@ -2,11 +2,11 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createProductFromDiscriminatorValue } from '../models/index.js';
5
+ import { createProductFromDiscriminatorValue } from '../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
9
- export const ProductsRequestBuilderUriTemplate = "{+baseurl}/products";
9
+ export const ProductsRequestBuilderUriTemplate = "{+baseurl}/catalog/products{?includeDisabled*}";
10
10
  /**
11
11
  * Metadata for all the requests in the request builder.
12
12
  */
@@ -0,0 +1,54 @@
1
+ import { type AnnouncementsRequestBuilder } from './announcements/index.js';
2
+ import { type CatalogRequestBuilder } from './catalog/index.js';
3
+ import { type CustomersRequestBuilder } from './customers/index.js';
4
+ import { type IncidentsRequestBuilder } from './incidents/index.js';
5
+ import { type OrdersRequestBuilder } from './orders/index.js';
6
+ import { type ProxiesRequestBuilder } from './proxies/index.js';
7
+ import { type ReviewsRequestBuilder } from './reviews/index.js';
8
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
9
+ /**
10
+ * The main entry point of the SDK, exposes the configuration and the fluent API.
11
+ */
12
+ export interface ConnectApiClient extends BaseRequestBuilder<ConnectApiClient> {
13
+ /**
14
+ * The announcements property
15
+ */
16
+ get announcements(): AnnouncementsRequestBuilder;
17
+ /**
18
+ * The catalog property
19
+ */
20
+ get catalog(): CatalogRequestBuilder;
21
+ /**
22
+ * The customers property
23
+ */
24
+ get customers(): CustomersRequestBuilder;
25
+ /**
26
+ * The incidents property
27
+ */
28
+ get incidents(): IncidentsRequestBuilder;
29
+ /**
30
+ * The orders property
31
+ */
32
+ get orders(): OrdersRequestBuilder;
33
+ /**
34
+ * The proxies property
35
+ */
36
+ get proxies(): ProxiesRequestBuilder;
37
+ /**
38
+ * The reviews property
39
+ */
40
+ get reviews(): ReviewsRequestBuilder;
41
+ }
42
+ /**
43
+ * Instantiates a new {@link ConnectApiClient} and sets the default values.
44
+ * @param requestAdapter The request adapter to use to execute the requests.
45
+ */
46
+ export declare function createConnectApiClient(requestAdapter: RequestAdapter): any;
47
+ /**
48
+ * Uri template for the request builder.
49
+ */
50
+ export declare const ConnectApiClientUriTemplate = "{+baseurl}";
51
+ /**
52
+ * Metadata for all the navigation properties in the request builder.
53
+ */
54
+ export declare const ConnectApiClientNavigationMetadata: Record<Exclude<keyof ConnectApiClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;