Skip to content

Commit

Permalink
Point to latest stone and codegen (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlocke authored Aug 28, 2024
1 parent c250782 commit 3a22430
Show file tree
Hide file tree
Showing 13 changed files with 861 additions and 861 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public enum DropboxBaseRequestBox: CustomStringConvertible {
case files_paperCreate(UploadRequest<Files.PaperCreateResultSerializer, Files.PaperCreateErrorSerializer>)
case files_paperUpdate(UploadRequest<Files.PaperUpdateResultSerializer, Files.PaperUpdateErrorSerializer>)
case files_upload(UploadRequest<Files.FileMetadataSerializer, Files.UploadErrorSerializer>)
case files_uploadSessionAppendV2(UploadRequest<VoidSerializer, Files.UploadSessionAppendErrorSerializer>)
case files_uploadSessionAppend(UploadRequest<VoidSerializer, Files.UploadSessionAppendErrorSerializer>)
case files_uploadSessionAppendV2(UploadRequest<VoidSerializer, Files.UploadSessionAppendErrorSerializer>)
case files_uploadSessionFinish(UploadRequest<Files.FileMetadataSerializer, Files.UploadSessionFinishErrorSerializer>)
case files_uploadSessionStart(UploadRequest<Files.UploadSessionStartResultSerializer, Files.UploadSessionStartErrorSerializer>)
case paper_docsCreate(UploadRequest<Paper.PaperDocCreateUpdateResultSerializer, Paper.PaperDocCreateErrorSerializer>)
Expand Down Expand Up @@ -49,10 +49,10 @@ public enum DropboxBaseRequestBox: CustomStringConvertible {
return "files/paper/update"
case .files_upload:
return "files/upload"
case .files_uploadSessionAppendV2:
return "files/upload_session/append_v2"
case .files_uploadSessionAppend:
return "files/upload_session/append"
case .files_uploadSessionAppendV2:
return "files/upload_session/append_v2"
case .files_uploadSessionFinish:
return "files/upload_session/finish"
case .files_uploadSessionStart:
Expand Down
20 changes: 10 additions & 10 deletions Source/SwiftyDropbox/Shared/Generated/FileRequests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1784,27 +1784,27 @@ public class FileRequests {
style: .rpc
)
)
static let listV2 = Route(
name: "list_v2",
version: 2,
static let list_ = Route(
name: "list",
version: 1,
namespace: "file_requests",
deprecated: false,
argSerializer: FileRequests.ListFileRequestsArgSerializer(),
responseSerializer: FileRequests.ListFileRequestsV2ResultSerializer(),
argSerializer: Serialization._VoidSerializer,
responseSerializer: FileRequests.ListFileRequestsResultSerializer(),
errorSerializer: FileRequests.ListFileRequestsErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
style: .rpc
)
)
static let list_ = Route(
name: "list",
version: 1,
static let listV2 = Route(
name: "list_v2",
version: 2,
namespace: "file_requests",
deprecated: false,
argSerializer: Serialization._VoidSerializer,
responseSerializer: FileRequests.ListFileRequestsResultSerializer(),
argSerializer: FileRequests.ListFileRequestsArgSerializer(),
responseSerializer: FileRequests.ListFileRequestsV2ResultSerializer(),
errorSerializer: FileRequests.ListFileRequestsErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
Expand Down
26 changes: 13 additions & 13 deletions Source/SwiftyDropbox/Shared/Generated/FileRequestsRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,28 @@ public class FileRequestsRoutes: DropboxTransportClientOwning {
///
/// - scope: file_requests.read
///
/// - parameter limit: The maximum number of file requests that should be returned per request.
///
/// - returns: Through the response callback, the caller will receive a `FileRequests.ListFileRequestsV2Result`
/// object on success or a `FileRequests.ListFileRequestsError` object on failure.
@discardableResult public func listV2(limit: UInt64 = 1_000)
-> RpcRequest<FileRequests.ListFileRequestsV2ResultSerializer, FileRequests.ListFileRequestsErrorSerializer> {
let route = FileRequests.listV2
let serverArgs = FileRequests.ListFileRequestsArg(limit: limit)
return client.request(route, serverArgs: serverArgs)
/// - returns: Through the response callback, the caller will receive a `FileRequests.ListFileRequestsResult` object
/// on success or a `FileRequests.ListFileRequestsError` object on failure.
@discardableResult public func list_() -> RpcRequest<FileRequests.ListFileRequestsResultSerializer, FileRequests.ListFileRequestsErrorSerializer> {
let route = FileRequests.list_
return client.request(route)
}

/// Returns a list of file requests owned by this user. For apps with the app folder permission, this will only
/// return file requests with destinations in the app folder.
///
/// - scope: file_requests.read
///
/// - parameter limit: The maximum number of file requests that should be returned per request.
///
/// - returns: Through the response callback, the caller will receive a `FileRequests.ListFileRequestsResult` object
/// on success or a `FileRequests.ListFileRequestsError` object on failure.
@discardableResult public func list_() -> RpcRequest<FileRequests.ListFileRequestsResultSerializer, FileRequests.ListFileRequestsErrorSerializer> {
let route = FileRequests.list_
return client.request(route)
/// - returns: Through the response callback, the caller will receive a `FileRequests.ListFileRequestsV2Result`
/// object on success or a `FileRequests.ListFileRequestsError` object on failure.
@discardableResult public func listV2(limit: UInt64 = 1_000)
-> RpcRequest<FileRequests.ListFileRequestsV2ResultSerializer, FileRequests.ListFileRequestsErrorSerializer> {
let route = FileRequests.listV2
let serverArgs = FileRequests.ListFileRequestsArg(limit: limit)
return client.request(route, serverArgs: serverArgs)
}

/// Once a cursor has been retrieved from listV2, use this to paginate through all file requests. The cursor must
Expand Down
156 changes: 78 additions & 78 deletions Source/SwiftyDropbox/Shared/Generated/Files.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12012,20 +12012,6 @@ public class Files {
style: .upload
)
)
static let copyV2 = Route(
name: "copy_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Files.RelocationArgSerializer(),
responseSerializer: Files.RelocationResultSerializer(),
errorSerializer: Files.RelocationErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
style: .rpc
)
)
static let copy = Route(
name: "copy",
version: 1,
Expand All @@ -12040,14 +12026,14 @@ public class Files {
style: .rpc
)
)
static let copyBatchV2 = Route(
name: "copy_batch_v2",
static let copyV2 = Route(
name: "copy_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Files.RelocationBatchArgBaseSerializer(),
responseSerializer: Files.RelocationBatchV2LaunchSerializer(),
errorSerializer: Serialization._VoidSerializer,
argSerializer: Files.RelocationArgSerializer(),
responseSerializer: Files.RelocationResultSerializer(),
errorSerializer: Files.RelocationErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
Expand All @@ -12068,14 +12054,14 @@ public class Files {
style: .rpc
)
)
static let copyBatchCheckV2 = Route(
name: "copy_batch/check_v2",
static let copyBatchV2 = Route(
name: "copy_batch_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Async.PollArgSerializer(),
responseSerializer: Files.RelocationBatchV2JobStatusSerializer(),
errorSerializer: Async.PollErrorSerializer(),
argSerializer: Files.RelocationBatchArgBaseSerializer(),
responseSerializer: Files.RelocationBatchV2LaunchSerializer(),
errorSerializer: Serialization._VoidSerializer,
attributes: RouteAttributes(
auth: [.user],
host: .api,
Expand All @@ -12096,6 +12082,20 @@ public class Files {
style: .rpc
)
)
static let copyBatchCheckV2 = Route(
name: "copy_batch/check_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Async.PollArgSerializer(),
responseSerializer: Files.RelocationBatchV2JobStatusSerializer(),
errorSerializer: Async.PollErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
style: .rpc
)
)
static let copyReferenceGet = Route(
name: "copy_reference/get",
version: 1,
Expand Down Expand Up @@ -12124,27 +12124,27 @@ public class Files {
style: .rpc
)
)
static let createFolderV2 = Route(
name: "create_folder_v2",
version: 2,
static let createFolder = Route(
name: "create_folder",
version: 1,
namespace: "files",
deprecated: false,
deprecated: true,
argSerializer: Files.CreateFolderArgSerializer(),
responseSerializer: Files.CreateFolderResultSerializer(),
responseSerializer: Files.FolderMetadataSerializer(),
errorSerializer: Files.CreateFolderErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
style: .rpc
)
)
static let createFolder = Route(
name: "create_folder",
version: 1,
static let createFolderV2 = Route(
name: "create_folder_v2",
version: 2,
namespace: "files",
deprecated: true,
deprecated: false,
argSerializer: Files.CreateFolderArgSerializer(),
responseSerializer: Files.FolderMetadataSerializer(),
responseSerializer: Files.CreateFolderResultSerializer(),
errorSerializer: Files.CreateFolderErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
Expand Down Expand Up @@ -12180,27 +12180,27 @@ public class Files {
style: .rpc
)
)
static let deleteV2 = Route(
name: "delete_v2",
version: 2,
static let delete = Route(
name: "delete",
version: 1,
namespace: "files",
deprecated: false,
deprecated: true,
argSerializer: Files.DeleteArgSerializer(),
responseSerializer: Files.DeleteResultSerializer(),
responseSerializer: Files.MetadataSerializer(),
errorSerializer: Files.DeleteErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
style: .rpc
)
)
static let delete = Route(
name: "delete",
version: 1,
static let deleteV2 = Route(
name: "delete_v2",
version: 2,
namespace: "files",
deprecated: true,
deprecated: false,
argSerializer: Files.DeleteArgSerializer(),
responseSerializer: Files.MetadataSerializer(),
responseSerializer: Files.DeleteResultSerializer(),
errorSerializer: Files.DeleteErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
Expand Down Expand Up @@ -12474,20 +12474,6 @@ public class Files {
style: .rpc
)
)
static let moveV2 = Route(
name: "move_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Files.RelocationArgSerializer(),
responseSerializer: Files.RelocationResultSerializer(),
errorSerializer: Files.RelocationErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
style: .rpc
)
)
static let move = Route(
name: "move",
version: 1,
Expand All @@ -12502,14 +12488,14 @@ public class Files {
style: .rpc
)
)
static let moveBatchV2 = Route(
name: "move_batch_v2",
static let moveV2 = Route(
name: "move_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Files.MoveBatchArgSerializer(),
responseSerializer: Files.RelocationBatchV2LaunchSerializer(),
errorSerializer: Serialization._VoidSerializer,
argSerializer: Files.RelocationArgSerializer(),
responseSerializer: Files.RelocationResultSerializer(),
errorSerializer: Files.RelocationErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
Expand All @@ -12530,14 +12516,14 @@ public class Files {
style: .rpc
)
)
static let moveBatchCheckV2 = Route(
name: "move_batch/check_v2",
static let moveBatchV2 = Route(
name: "move_batch_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Async.PollArgSerializer(),
responseSerializer: Files.RelocationBatchV2JobStatusSerializer(),
errorSerializer: Async.PollErrorSerializer(),
argSerializer: Files.MoveBatchArgSerializer(),
responseSerializer: Files.RelocationBatchV2LaunchSerializer(),
errorSerializer: Serialization._VoidSerializer,
attributes: RouteAttributes(
auth: [.user],
host: .api,
Expand All @@ -12558,6 +12544,20 @@ public class Files {
style: .rpc
)
)
static let moveBatchCheckV2 = Route(
name: "move_batch/check_v2",
version: 2,
namespace: "files",
deprecated: false,
argSerializer: Async.PollArgSerializer(),
responseSerializer: Files.RelocationBatchV2JobStatusSerializer(),
errorSerializer: Async.PollErrorSerializer(),
attributes: RouteAttributes(
auth: [.user],
host: .api,
style: .rpc
)
)
static let paperCreate = Route(
name: "paper/create",
version: 1,
Expand Down Expand Up @@ -12838,12 +12838,12 @@ public class Files {
style: .upload
)
)
static let uploadSessionAppendV2 = Route(
name: "upload_session/append_v2",
version: 2,
static let uploadSessionAppend = Route(
name: "upload_session/append",
version: 1,
namespace: "files",
deprecated: false,
argSerializer: Files.UploadSessionAppendArgSerializer(),
deprecated: true,
argSerializer: Files.UploadSessionCursorSerializer(),
responseSerializer: Serialization._VoidSerializer,
errorSerializer: Files.UploadSessionAppendErrorSerializer(),
attributes: RouteAttributes(
Expand All @@ -12852,12 +12852,12 @@ public class Files {
style: .upload
)
)
static let uploadSessionAppend = Route(
name: "upload_session/append",
version: 1,
static let uploadSessionAppendV2 = Route(
name: "upload_session/append_v2",
version: 2,
namespace: "files",
deprecated: true,
argSerializer: Files.UploadSessionCursorSerializer(),
deprecated: false,
argSerializer: Files.UploadSessionAppendArgSerializer(),
responseSerializer: Serialization._VoidSerializer,
errorSerializer: Files.UploadSessionAppendErrorSerializer(),
attributes: RouteAttributes(
Expand Down
Loading

0 comments on commit 3a22430

Please sign in to comment.