@greensecurity/javascript-sdk 0.40.8-beta.31 → 0.40.8-beta.33

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 (54) hide show
  1. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  2. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  3. package/dist/commonjs/__tests__/zones.test.js +6 -4
  4. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/models/components/paymentprofile.d.ts +4 -4
  8. package/dist/commonjs/models/components/paymentprofile.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/paymentprofile.js +4 -4
  10. package/dist/commonjs/models/components/paymentprofile.js.map +1 -1
  11. package/dist/commonjs/models/components/vendor.d.ts +8 -8
  12. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/vendor.js +14 -8
  14. package/dist/commonjs/models/components/vendor.js.map +1 -1
  15. package/dist/esm/__tests__/webhooks.test.js +1 -1
  16. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  17. package/dist/esm/__tests__/zones.test.js +6 -4
  18. package/dist/esm/__tests__/zones.test.js.map +1 -1
  19. package/dist/esm/lib/config.d.ts +3 -3
  20. package/dist/esm/lib/config.js +3 -3
  21. package/dist/esm/models/components/paymentprofile.d.ts +4 -4
  22. package/dist/esm/models/components/paymentprofile.d.ts.map +1 -1
  23. package/dist/esm/models/components/paymentprofile.js +4 -4
  24. package/dist/esm/models/components/paymentprofile.js.map +1 -1
  25. package/dist/esm/models/components/vendor.d.ts +8 -8
  26. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  27. package/dist/esm/models/components/vendor.js +14 -8
  28. package/dist/esm/models/components/vendor.js.map +1 -1
  29. package/examples/package-lock.json +1 -1
  30. package/jsr.json +1 -1
  31. package/package.json +1 -1
  32. package/src/__tests__/webhooks.test.ts +1 -1
  33. package/src/__tests__/zones.test.ts +6 -4
  34. package/src/lib/config.ts +3 -3
  35. package/src/models/components/paymentprofile.ts +9 -9
  36. package/src/models/components/vendor.ts +24 -18
  37. package/.devcontainer/README.md +0 -35
  38. package/docs/sdks/alerts/README.md +0 -219
  39. package/docs/sdks/companies/README.md +0 -126
  40. package/docs/sdks/datarequests/README.md +0 -302
  41. package/docs/sdks/events/README.md +0 -1126
  42. package/docs/sdks/fhirconfigs/README.md +0 -551
  43. package/docs/sdks/greensecurity/README.md +0 -14
  44. package/docs/sdks/invoices/README.md +0 -324
  45. package/docs/sdks/mobiledevices/README.md +0 -100
  46. package/docs/sdks/organizations/README.md +0 -508
  47. package/docs/sdks/supportarticles/README.md +0 -249
  48. package/docs/sdks/systems/README.md +0 -136
  49. package/docs/sdks/users/README.md +0 -831
  50. package/docs/sdks/vendors/README.md +0 -4904
  51. package/docs/sdks/vendorscans/README.md +0 -104
  52. package/docs/sdks/webhooks/README.md +0 -352
  53. package/docs/sdks/zones/README.md +0 -344
  54. package/examples/README.md +0 -31
@@ -115,7 +115,7 @@ export type VendorVendorType = VendorType | number;
115
115
 
116
116
  export type Vendor22 = {};
117
117
 
118
- export type VendorPaymentProfile2 = Vendor22 | number;
118
+ export type VendorPaymentProfile2 = number | Vendor22;
119
119
 
120
120
  export type VendorPaymentProfile1 = {
121
121
  id?: number | undefined;
@@ -131,13 +131,13 @@ export type VendorPaymentProfile1 = {
131
131
  */
132
132
  export type PaymentProfilePaymentProfile =
133
133
  | VendorPaymentProfile1
134
- | Vendor22
135
- | number;
134
+ | number
135
+ | Vendor22;
136
136
 
137
137
  export type VendorPaymentProfile =
138
138
  | VendorPaymentProfile1
139
- | Vendor22
140
139
  | number
140
+ | Vendor22
141
141
  | number;
142
142
 
143
143
  export type CompanySummary = {
@@ -201,8 +201,8 @@ export type Vendor = {
201
201
  imageUrls?: ImageSet | null | undefined;
202
202
  paymentProfile?:
203
203
  | VendorPaymentProfile1
204
- | Vendor22
205
204
  | number
205
+ | Vendor22
206
206
  | number
207
207
  | null
208
208
  | undefined;
@@ -517,17 +517,17 @@ export const VendorPaymentProfile2$inboundSchema: z.ZodType<
517
517
  VendorPaymentProfile2,
518
518
  z.ZodTypeDef,
519
519
  unknown
520
- > = z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]);
520
+ > = z.union([z.number().int(), z.lazy(() => Vendor22$inboundSchema)]);
521
521
 
522
522
  /** @internal */
523
- export type VendorPaymentProfile2$Outbound = Vendor22$Outbound | number;
523
+ export type VendorPaymentProfile2$Outbound = number | Vendor22$Outbound;
524
524
 
525
525
  /** @internal */
526
526
  export const VendorPaymentProfile2$outboundSchema: z.ZodType<
527
527
  VendorPaymentProfile2$Outbound,
528
528
  z.ZodTypeDef,
529
529
  VendorPaymentProfile2
530
- > = z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]);
530
+ > = z.union([z.number().int(), z.lazy(() => Vendor22$outboundSchema)]);
531
531
 
532
532
  /**
533
533
  * @internal
@@ -652,14 +652,14 @@ export const PaymentProfilePaymentProfile$inboundSchema: z.ZodType<
652
652
  unknown
653
653
  > = z.union([
654
654
  z.lazy(() => VendorPaymentProfile1$inboundSchema),
655
- z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]),
655
+ z.union([z.number().int(), z.lazy(() => Vendor22$inboundSchema)]),
656
656
  ]);
657
657
 
658
658
  /** @internal */
659
659
  export type PaymentProfilePaymentProfile$Outbound =
660
660
  | VendorPaymentProfile1$Outbound
661
- | Vendor22$Outbound
662
- | number;
661
+ | number
662
+ | Vendor22$Outbound;
663
663
 
664
664
  /** @internal */
665
665
  export const PaymentProfilePaymentProfile$outboundSchema: z.ZodType<
@@ -668,7 +668,7 @@ export const PaymentProfilePaymentProfile$outboundSchema: z.ZodType<
668
668
  PaymentProfilePaymentProfile
669
669
  > = z.union([
670
670
  z.lazy(() => VendorPaymentProfile1$outboundSchema),
671
- z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]),
671
+ z.union([z.number().int(), z.lazy(() => Vendor22$outboundSchema)]),
672
672
  ]);
673
673
 
674
674
  /**
@@ -712,7 +712,7 @@ export const VendorPaymentProfile$inboundSchema: z.ZodType<
712
712
  > = z.union([
713
713
  z.union([
714
714
  z.lazy(() => VendorPaymentProfile1$inboundSchema),
715
- z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]),
715
+ z.union([z.number().int(), z.lazy(() => Vendor22$inboundSchema)]),
716
716
  ]),
717
717
  z.number().int(),
718
718
  ]);
@@ -720,8 +720,8 @@ export const VendorPaymentProfile$inboundSchema: z.ZodType<
720
720
  /** @internal */
721
721
  export type VendorPaymentProfile$Outbound =
722
722
  | VendorPaymentProfile1$Outbound
723
- | Vendor22$Outbound
724
723
  | number
724
+ | Vendor22$Outbound
725
725
  | number;
726
726
 
727
727
  /** @internal */
@@ -732,7 +732,7 @@ export const VendorPaymentProfile$outboundSchema: z.ZodType<
732
732
  > = z.union([
733
733
  z.union([
734
734
  z.lazy(() => VendorPaymentProfile1$outboundSchema),
735
- z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]),
735
+ z.union([z.number().int(), z.lazy(() => Vendor22$outboundSchema)]),
736
736
  ]),
737
737
  z.number().int(),
738
738
  ]);
@@ -1077,7 +1077,10 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
1077
1077
  z.union([
1078
1078
  z.union([
1079
1079
  z.lazy(() => VendorPaymentProfile1$inboundSchema),
1080
- z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]),
1080
+ z.union([
1081
+ z.number().int(),
1082
+ z.lazy(() => Vendor22$inboundSchema),
1083
+ ]),
1081
1084
  ]),
1082
1085
  z.number().int(),
1083
1086
  ]),
@@ -1159,8 +1162,8 @@ export type Vendor$Outbound = {
1159
1162
  image_urls?: ImageSet$Outbound | null | undefined;
1160
1163
  payment_profile?:
1161
1164
  | VendorPaymentProfile1$Outbound
1162
- | Vendor22$Outbound
1163
1165
  | number
1166
+ | Vendor22$Outbound
1164
1167
  | number
1165
1168
  | null
1166
1169
  | undefined;
@@ -1212,7 +1215,10 @@ export const Vendor$outboundSchema: z.ZodType<
1212
1215
  z.union([
1213
1216
  z.union([
1214
1217
  z.lazy(() => VendorPaymentProfile1$outboundSchema),
1215
- z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]),
1218
+ z.union([
1219
+ z.number().int(),
1220
+ z.lazy(() => Vendor22$outboundSchema),
1221
+ ]),
1216
1222
  ]),
1217
1223
  z.number().int(),
1218
1224
  ]),
@@ -1,35 +0,0 @@
1
-
2
- <div align="center">
3
- <a href="https://codespaces.new/repconnex/repconnex.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4
- </div>
5
- <br>
6
-
7
- > **Remember to shutdown a GitHub Codespace when it is not in use!**
8
-
9
- # Dev Containers Quick Start
10
-
11
- The default location for usage snippets is the `samples` directory.
12
-
13
- ## Running a Usage Sample
14
-
15
- A sample usage example has been provided in a `root.ts` file. As you work with the SDK, it's expected that you will modify these samples to fit your needs. To execute this particular snippet, use the command below.
16
-
17
- ```
18
- ts-node root.ts
19
- ```
20
-
21
- ## Generating Additional Usage Samples
22
-
23
- The speakeasy CLI allows you to generate more usage snippets. Here's how:
24
-
25
- - To generate a sample for a specific operation by providing an operation ID, use:
26
-
27
- ```
28
- speakeasy generate usage -s https://example.com/OVERWRITE_WHEN_SAMPLE_SPEC_IS_WRITTEN -l typescript -i {INPUT_OPERATION_ID} -o ./samples
29
- ```
30
-
31
- - To generate samples for an entire namespace (like a tag or group name), use:
32
-
33
- ```
34
- speakeasy generate usage -s https://example.com/OVERWRITE_WHEN_SAMPLE_SPEC_IS_WRITTEN -l typescript -n {INPUT_TAG_NAME} -o ./samples
35
- ```
@@ -1,219 +0,0 @@
1
- # Alerts
2
- (*alerts*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [listAlerts](#listalerts) - List alerts
9
- * [updateUserAlerts](#updateuseralerts) - Update user alerts
10
-
11
- ## listAlerts
12
-
13
- List alerts for user.
14
-
15
- ### Example Usage
16
-
17
- <!-- UsageSnippet language="typescript" operationID="listAlerts" method="get" path="/alerts" -->
18
- ```typescript
19
- import { GreenSecurity } from "@greensecurity/javascript-sdk";
20
-
21
- const greenSecurity = new GreenSecurity({
22
- security: {
23
- token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
24
- },
25
- });
26
-
27
- async function run() {
28
- const result = await greenSecurity.alerts.listAlerts({
29
- sort: "job",
30
- desc: true,
31
- itemsPerPage: 25,
32
- });
33
-
34
- for await (const page of result) {
35
- console.log(page);
36
- }
37
- }
38
-
39
- run();
40
- ```
41
-
42
- ### Standalone function
43
-
44
- The standalone function version of this method:
45
-
46
- ```typescript
47
- import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
48
- import { alertsListAlerts } from "@greensecurity/javascript-sdk/funcs/alertsListAlerts.js";
49
-
50
- // Use `GreenSecurityCore` for best tree-shaking performance.
51
- // You can create one instance of it to use across an application.
52
- const greenSecurity = new GreenSecurityCore({
53
- security: {
54
- token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
55
- },
56
- });
57
-
58
- async function run() {
59
- const res = await alertsListAlerts(greenSecurity, {
60
- sort: "job",
61
- desc: true,
62
- itemsPerPage: 25,
63
- });
64
- if (res.ok) {
65
- const { value: result } = res;
66
- for await (const page of result) {
67
- console.log(page);
68
- }
69
- } else {
70
- console.log("alertsListAlerts failed:", res.error);
71
- }
72
- }
73
-
74
- run();
75
- ```
76
-
77
- ### React hooks and utilities
78
-
79
- This method can be used in React components through the following hooks and
80
- associated utilities.
81
-
82
- > Check out [this guide][hook-guide] for information about each of the utilities
83
- > below and how to get started using React hooks.
84
-
85
- [hook-guide]: ../../../REACT_QUERY.md
86
-
87
- ```tsx
88
- import {
89
- // Query hooks for fetching data.
90
- useAlertsListAlerts,
91
- useAlertsListAlertsSuspense,
92
- // Query hooks suitable for building infinite scrolling or "load more" UIs.
93
- useAlertsListAlertsInfinite,
94
- useAlertsListAlertsInfiniteSuspense,
95
-
96
- // Utility for prefetching data during server-side rendering and in React
97
- // Server Components that will be immediately available to client components
98
- // using the hooks.
99
- prefetchAlertsListAlerts,
100
-
101
- // Utilities to invalidate the query cache for this query in response to
102
- // mutations and other user actions.
103
- invalidateAlertsListAlerts,
104
- invalidateAllAlertsListAlerts,
105
- } from "@greensecurity/javascript-sdk/react-query/alertsListAlerts.js";
106
- ```
107
-
108
- ### Parameters
109
-
110
- | Parameter | Type | Required | Description |
111
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
112
- | `request` | [operations.ListAlertsRequest](../../models/operations/listalertsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
113
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
114
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
115
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
116
-
117
- ### Response
118
-
119
- **Promise\<[operations.ListAlertsResponse](../../models/operations/listalertsresponse.md)\>**
120
-
121
- ### Errors
122
-
123
- | Error Type | Status Code | Content Type |
124
- | ----------------------- | ----------------------- | ----------------------- |
125
- | errors.ApiErrorResponse | 400, 401, 403 | application/json |
126
- | errors.ApiErrorResponse | 500 | application/json |
127
- | errors.APIError | 4XX, 5XX | \*/\* |
128
-
129
- ## updateUserAlerts
130
-
131
- Update user alerts
132
-
133
- ### Example Usage
134
-
135
- <!-- UsageSnippet language="typescript" operationID="updateUserAlerts" method="put" path="/user-alerts" -->
136
- ```typescript
137
- import { GreenSecurity } from "@greensecurity/javascript-sdk";
138
-
139
- const greenSecurity = new GreenSecurity({
140
- security: {
141
- token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
142
- },
143
- });
144
-
145
- async function run() {
146
- const result = await greenSecurity.alerts.updateUserAlerts({});
147
-
148
- console.log(result);
149
- }
150
-
151
- run();
152
- ```
153
-
154
- ### Standalone function
155
-
156
- The standalone function version of this method:
157
-
158
- ```typescript
159
- import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
160
- import { alertsUpdateUserAlerts } from "@greensecurity/javascript-sdk/funcs/alertsUpdateUserAlerts.js";
161
-
162
- // Use `GreenSecurityCore` for best tree-shaking performance.
163
- // You can create one instance of it to use across an application.
164
- const greenSecurity = new GreenSecurityCore({
165
- security: {
166
- token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
167
- },
168
- });
169
-
170
- async function run() {
171
- const res = await alertsUpdateUserAlerts(greenSecurity, {});
172
- if (res.ok) {
173
- const { value: result } = res;
174
- console.log(result);
175
- } else {
176
- console.log("alertsUpdateUserAlerts failed:", res.error);
177
- }
178
- }
179
-
180
- run();
181
- ```
182
-
183
- ### React hooks and utilities
184
-
185
- This method can be used in React components through the following hooks and
186
- associated utilities.
187
-
188
- > Check out [this guide][hook-guide] for information about each of the utilities
189
- > below and how to get started using React hooks.
190
-
191
- [hook-guide]: ../../../REACT_QUERY.md
192
-
193
- ```tsx
194
- import {
195
- // Mutation hook for triggering the API call.
196
- useAlertsUpdateUserAlertsMutation
197
- } from "@greensecurity/javascript-sdk/react-query/alertsUpdateUserAlerts.js";
198
- ```
199
-
200
- ### Parameters
201
-
202
- | Parameter | Type | Required | Description |
203
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
204
- | `request` | [operations.UpdateUserAlertsRequestBody](../../models/operations/updateuseralertsrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
205
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
206
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
207
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
208
-
209
- ### Response
210
-
211
- **Promise\<[operations.UpdateUserAlertsResponseBody](../../models/operations/updateuseralertsresponsebody.md)\>**
212
-
213
- ### Errors
214
-
215
- | Error Type | Status Code | Content Type |
216
- | ----------------------- | ----------------------- | ----------------------- |
217
- | errors.ApiErrorResponse | 400, 401, 403, 404 | application/json |
218
- | errors.ApiErrorResponse | 500 | application/json |
219
- | errors.APIError | 4XX, 5XX | \*/\* |
@@ -1,126 +0,0 @@
1
- # Companies
2
- (*companies*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [listOrSearchCompanies](#listorsearchcompanies) - List or search companies
9
-
10
- ## listOrSearchCompanies
11
-
12
- List or search companies.
13
-
14
- ### Example Usage
15
-
16
- <!-- UsageSnippet language="typescript" operationID="listOrSearchCompanies" method="get" path="/companies" -->
17
- ```typescript
18
- import { GreenSecurity } from "@greensecurity/javascript-sdk";
19
-
20
- const greenSecurity = new GreenSecurity({
21
- security: {
22
- token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
23
- },
24
- });
25
-
26
- async function run() {
27
- const result = await greenSecurity.companies.listOrSearchCompanies({
28
- sort: "job",
29
- desc: true,
30
- itemsPerPage: 25,
31
- });
32
-
33
- for await (const page of result) {
34
- console.log(page);
35
- }
36
- }
37
-
38
- run();
39
- ```
40
-
41
- ### Standalone function
42
-
43
- The standalone function version of this method:
44
-
45
- ```typescript
46
- import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
47
- import { companiesListOrSearchCompanies } from "@greensecurity/javascript-sdk/funcs/companiesListOrSearchCompanies.js";
48
-
49
- // Use `GreenSecurityCore` for best tree-shaking performance.
50
- // You can create one instance of it to use across an application.
51
- const greenSecurity = new GreenSecurityCore({
52
- security: {
53
- token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
54
- },
55
- });
56
-
57
- async function run() {
58
- const res = await companiesListOrSearchCompanies(greenSecurity, {
59
- sort: "job",
60
- desc: true,
61
- itemsPerPage: 25,
62
- });
63
- if (res.ok) {
64
- const { value: result } = res;
65
- for await (const page of result) {
66
- console.log(page);
67
- }
68
- } else {
69
- console.log("companiesListOrSearchCompanies failed:", res.error);
70
- }
71
- }
72
-
73
- run();
74
- ```
75
-
76
- ### React hooks and utilities
77
-
78
- This method can be used in React components through the following hooks and
79
- associated utilities.
80
-
81
- > Check out [this guide][hook-guide] for information about each of the utilities
82
- > below and how to get started using React hooks.
83
-
84
- [hook-guide]: ../../../REACT_QUERY.md
85
-
86
- ```tsx
87
- import {
88
- // Query hooks for fetching data.
89
- useCompaniesListOrSearchCompanies,
90
- useCompaniesListOrSearchCompaniesSuspense,
91
- // Query hooks suitable for building infinite scrolling or "load more" UIs.
92
- useCompaniesListOrSearchCompaniesInfinite,
93
- useCompaniesListOrSearchCompaniesInfiniteSuspense,
94
-
95
- // Utility for prefetching data during server-side rendering and in React
96
- // Server Components that will be immediately available to client components
97
- // using the hooks.
98
- prefetchCompaniesListOrSearchCompanies,
99
-
100
- // Utilities to invalidate the query cache for this query in response to
101
- // mutations and other user actions.
102
- invalidateCompaniesListOrSearchCompanies,
103
- invalidateAllCompaniesListOrSearchCompanies,
104
- } from "@greensecurity/javascript-sdk/react-query/companiesListOrSearchCompanies.js";
105
- ```
106
-
107
- ### Parameters
108
-
109
- | Parameter | Type | Required | Description |
110
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
111
- | `request` | [operations.ListOrSearchCompaniesRequest](../../models/operations/listorsearchcompaniesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
112
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
113
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
114
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
115
-
116
- ### Response
117
-
118
- **Promise\<[operations.ListOrSearchCompaniesResponse](../../models/operations/listorsearchcompaniesresponse.md)\>**
119
-
120
- ### Errors
121
-
122
- | Error Type | Status Code | Content Type |
123
- | ----------------------- | ----------------------- | ----------------------- |
124
- | errors.ApiErrorResponse | 400, 403 | application/json |
125
- | errors.ApiErrorResponse | 500 | application/json |
126
- | errors.APIError | 4XX, 5XX | \*/\* |