Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ partial void ProcessReingestAllStoresResponseContent(
PrepareReingestAllStoresRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
organizationId: organizationId,
storeIdentifier: storeIdentifier,
organizationId: organizationId!,
storeIdentifier: storeIdentifier!,
statuses: statuses,
billable: billable);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessDeleteApiKeyResponseContent(
PrepareDeleteApiKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
apiKeyId: apiKeyId);
apiKeyId: apiKeyId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ partial void ProcessRerollApiKeyResponseContent(
PrepareRerollApiKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
apiKeyId: apiKeyId);
apiKeyId: apiKeyId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessRetrieveApiKeyResponseContent(
PrepareRetrieveApiKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
apiKeyId: apiKeyId);
apiKeyId: apiKeyId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessRevokeApiKeyResponseContent(
PrepareRevokeApiKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
apiKeyId: apiKeyId);
apiKeyId: apiKeyId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ partial void ProcessUpdateApiKeyResponseContent(
PrepareUpdateApiKeyRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
apiKeyId: apiKeyId,
apiKeyId: apiKeyId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ partial void ProcessGetStoreCostHistogramResponseContent(
PrepareGetStoreCostHistogramRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storeId: storeId);
storeId: storeId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ partial void ProcessAuthorizeDataSourceResponseContent(
PrepareAuthorizeDataSourceRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId);
dataSourceId: dataSourceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ partial void ProcessCreateConnectorResponseContent(
PrepareCreateConnectorRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId,
dataSourceId: dataSourceId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ partial void ProcessDeleteConnectorResponseContent(
PrepareDeleteConnectorRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId,
connectorId: connectorId);
dataSourceId: dataSourceId!,
connectorId: connectorId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ partial void ProcessDeleteDataSourceResponseContent(
PrepareDeleteDataSourceRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId);
dataSourceId: dataSourceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ partial void ProcessGetConnectorResponseContent(
PrepareGetConnectorRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId,
connectorId: connectorId);
dataSourceId: dataSourceId!,
connectorId: connectorId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessGetDataSourceResponseContent(
PrepareGetDataSourceRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId);
dataSourceId: dataSourceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ partial void ProcessListConnectorsResponseContent(
PrepareListConnectorsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId,
dataSourceId: dataSourceId!,
limit: limit,
after: after,
before: before,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ partial void ProcessOauth2CallbackResponse(
PrepareOauth2CallbackRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
state: state,
code: code,
state: state!,
code: code!,
error: error,
errorDescription: errorDescription);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ partial void ProcessUpdateConnectorResponseContent(
PrepareUpdateConnectorRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId,
connectorId: connectorId,
dataSourceId: dataSourceId!,
connectorId: connectorId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ partial void ProcessUpdateDataSourceResponseContent(
PrepareUpdateDataSourceRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dataSourceId: dataSourceId,
dataSourceId: dataSourceId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessRetrieveExtractionJobResponseContent(
PrepareRetrieveExtractionJobRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
jobId: jobId);
jobId: jobId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ partial void ProcessAbortMultipartUploadResponseContent(
PrepareAbortMultipartUploadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
uploadId: uploadId);
uploadId: uploadId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ partial void ProcessCompleteMultipartUploadResponseContent(
PrepareCompleteMultipartUploadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
uploadId: uploadId,
uploadId: uploadId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,34 @@ partial void ProcessCreateFileResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>());
__contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Filename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentFile,
name: "\"file\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessDeleteFileResponseContent(
PrepareDeleteFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId);
fileId: fileId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessDownloadFileResponseContent(
PrepareDownloadFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId);
fileId: fileId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ partial void ProcessGetMultipartUploadResponseContent(
PrepareGetMultipartUploadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
uploadId: uploadId);
uploadId: uploadId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessRetrieveFileResponseContent(
PrepareRetrieveFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId);
fileId: fileId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,37 @@ partial void ProcessUpdateFileResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{fileId}"),
content: new global::System.Net.Http.StringContent(fileId.ToString() ?? string.Empty),
name: "\"file_id\"");
var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>());
__contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Filename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentFile,
name: "\"file\"",
Expand All @@ -179,7 +207,7 @@ partial void ProcessUpdateFileResponseContent(
PrepareUpdateFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId,
fileId: fileId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessCancelParsingJobResponseContent(
PrepareCancelParsingJobRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
jobId: jobId);
jobId: jobId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessDeleteParsingJobResponseContent(
PrepareDeleteParsingJobRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
jobId: jobId);
jobId: jobId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessRetrieveParsingJobResponseContent(
PrepareRetrieveParsingJobRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
jobId: jobId);
jobId: jobId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ partial void ProcessCreateSearchRuleResponseContent(
PrepareCreateSearchRuleRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storeIdentifier: storeIdentifier,
storeIdentifier: storeIdentifier!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ partial void ProcessCreateStoreFileResponseContent(
PrepareCreateStoreFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storeIdentifier: storeIdentifier,
storeIdentifier: storeIdentifier!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ partial void ProcessDeleteSearchRuleResponseContent(
PrepareDeleteSearchRuleRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storeIdentifier: storeIdentifier,
ruleId: ruleId);
storeIdentifier: storeIdentifier!,
ruleId: ruleId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent(
PrepareDeleteSpecificSearchRuleRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storeIdentifier: storeIdentifier,
ruleId: ruleId,
storeIdentifier: storeIdentifier!,
ruleId: ruleId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessDeleteStoreResponseContent(
PrepareDeleteStoreRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storeIdentifier: storeIdentifier);
storeIdentifier: storeIdentifier!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ partial void ProcessDeleteStoreFileResponseContent(
PrepareDeleteStoreFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
storeIdentifier: storeIdentifier,
fileIdentifier: fileIdentifier);
storeIdentifier: storeIdentifier!,
fileIdentifier: fileIdentifier!);

return __httpRequest;
}
Expand Down
Loading
Loading