Skip to content

Commit 05787b2

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 9f967a4. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 9f967a4 commit 05787b2

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

clients/algoliasearch-client-javascript/packages/ingestion/model/destinationCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export type DestinationCreate = {
1919
/**
2020
* The authentication UUID.
2121
*/
22-
authenticationID: string;
22+
authenticationID?: string;
2323
};

clients/algoliasearch-client-javascript/packages/ingestion/model/sourceCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export type SourceCreate = {
1313
/**
1414
* The authentication UUID.
1515
*/
16-
authenticationID: string;
16+
authenticationID?: string;
1717
};

clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ export function createIngestionClient({
269269
'Parameter `destinationCreate.input` is required when calling `createDestination`.'
270270
);
271271
}
272-
if (!destinationCreate.authenticationID) {
273-
throw new Error(
274-
'Parameter `destinationCreate.authenticationID` is required when calling `createDestination`.'
275-
);
276-
}
277272

278273
const requestPath = '/1/destinations';
279274
const headers: Headers = {};
@@ -322,11 +317,6 @@ export function createIngestionClient({
322317
'Parameter `sourceCreate.input` is required when calling `createSource`.'
323318
);
324319
}
325-
if (!sourceCreate.authenticationID) {
326-
throw new Error(
327-
'Parameter `sourceCreate.authenticationID` is required when calling `createSource`.'
328-
);
329-
}
330320

331321
const requestPath = '/1/sources';
332322
const headers: Headers = {};

specs/bundled/ingestion.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ components:
636636
- type
637637
- name
638638
- input
639-
- authenticationID
640639
DestinationCreateResponse:
641640
type: object
642641
additionalProperties: false
@@ -841,7 +840,6 @@ components:
841840
- type
842841
- name
843842
- input
844-
- authenticationID
845843
SourceCreateResponse:
846844
type: object
847845
additionalProperties: false

0 commit comments

Comments
 (0)