Skip to content

Commit 6236c20

Browse files
authored
chore: Rename SDK to magicbell-swift-user-client (#14)
* chore: renaming lib to magicbell-swift-user-client * changeset * chore: adjust update-version script
1 parent d96791e commit 6236c20

File tree

47 files changed

+225
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+225
-28
lines changed

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": ["@changesets/changelog-github", { "repo": "magicbell/magicbell-swift-client" }],
3+
"changelog": ["@changesets/changelog-github", { "repo": "magicbell/magicbell-swift-user-client" }],
44
"commit": false,
55
"fixed": [],
66
"linked": [],

.changeset/great-needles-remember.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"magicbell-swift-user-client": minor
3+
---
4+
5+
Renaming library to magicbell-swift-user-client

.github/sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
magicbell/magicbell:
22
- source: docs-dist
3-
dest: src/go/app/site/docs/mdx/03-libraries/magicbell-swift-client
3+
dest: src/go/app/site/docs/mdx/03-libraries/magicbell-swift-user-client

.github/workflows/regen.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Regen magicbell-swift-client
1+
name: Regen
22

33
on:
44
workflow_dispatch:
@@ -32,7 +32,7 @@ jobs:
3232
cp .build/release/sourcedocs /usr/local/bin
3333
popd
3434
35-
- name: Regen `magicbell-swift-client`
35+
- name: Regen
3636
run: yarn codegen
3737
env:
3838
LIBLAB_TOKEN: ${{ secrets.LIBLAB_ACTION_TOKEN }}

.github/workflows/release-discussion.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
repo: magicbell/community
1919
category: changelog
2020
cycle: week
21-
release-prefix: magicbell-swift-client
21+
release-prefix: magicbell-swift-user-client
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.BELLA_ACTION_TOKEN }}

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# magicbell-swift-client
1+
# magicbell-swift-user-client
22

33
## 0.2.0
44

Package.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import PackageDescription
44

55
let package = Package(
6-
name: "MagicBellClient",
6+
name: "MagicBellUserClient",
77
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)],
88
products: [
9-
.library(name: "MagicBellClient", targets: ["MagicBellClient"]),
10-
.executable(name: "MagicBellClientExample", targets: ["MagicBellClientExample"]),
9+
.library(name: "MagicBellUserClient", targets: ["MagicBellUserClient"]),
10+
.executable(name: "Example", targets: ["Example"]),
1111
],
1212
dependencies: [
1313
.package(url: "https://github.com/apple/swift-openapi-generator", from: "1.0.0"),
@@ -16,14 +16,14 @@ let package = Package(
1616
],
1717
targets: [
1818
.target(
19-
name: "MagicBellClient",
19+
name: "MagicBellUserClient",
2020
dependencies: [
2121
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
2222
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
2323
]),
2424
.executableTarget(
25-
name: "MagicBellClientExample",
26-
dependencies: ["MagicBellClient"]
25+
name: "Example",
26+
dependencies: ["MagicBellUserClient"]
2727
)
2828
]
2929
)

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# MagicBellClient Swift SDK 0.2.0
1+
# MagicBellUserClient Swift SDK 0.2.0
22

3-
Welcome to the MagicBellClient SDK documentation. This guide will help you get started with integrating and using the MagicBellClient SDK in your project.
3+
Welcome to the MagicBellUserClient SDK documentation. This guide will help you get started with integrating and using the MagicBellUserClient SDK in your project.
44

55
## About the API
66

77
OpenAPI 3.0.3 Specification for MagicBell API.
88

99
## Table of Contents
1010

11-
- [MagicBellClient Swift SDK 0.2.0](#magicbellclient-swift-sdk-010)
11+
- [MagicBellUserClient Swift SDK 0.2.0](#magicbelluserclient-swift-sdk-020)
1212
- [About the API](#about-the-api)
1313
- [Table of Contents](#table-of-contents)
1414
- [Setup \& Configuration](#setup--configuration)
@@ -41,7 +41,7 @@ To install MagicBell using [Swift Package Manager](https://www.swift.org/package
4141

4242
```swift
4343
dependencies: [
44-
.package(url: "https://github.com/magicbell/magicbell-swift-client", .upToNextMajor(from: "0.1.0"))
44+
.package(url: "https://github.com/magicbell/magicbell-swift-user-client", .upToNextMajor(from: "0.1.0"))
4545
]
4646
```
4747

@@ -60,7 +60,7 @@ When you initialize the SDK, you can set the access token via the `Authenticatio
6060
```swift
6161
let authMiddleware = AuthenticationMiddleware(jwtToken: token)
6262

63-
let client = MagicBellClient.Client(
63+
let client = MagicBellUserClient.Client(
6464
serverURL: try Servers.Server1.url(),
6565
configuration: .init(dateTranscoder: .iso8601WithFractionalSeconds),
6666
transport: URLSessionTransport(),
@@ -75,7 +75,7 @@ Below is a comprehensive example demonstrating how to authenticate and call a si
7575

7676
```swift
7777
import Foundation
78-
import MagicBellClient
78+
import MagicBellUserClient
7979
import OpenAPIURLSession
8080

8181
let token = "YOUR_ACCESS_TOKEN"
@@ -84,7 +84,7 @@ let token = "YOUR_ACCESS_TOKEN"
8484
struct MainApp {
8585
static func main() async throws {
8686

87-
let client = MagicBellClient.Client(
87+
let client = MagicBellUserClient.Client(
8888
serverURL: try Servers.Server1.url(),
8989
configuration: .init(dateTranscoder: .iso8601WithFractionalSeconds),
9090
transport: URLSessionTransport(),

Sources/MagicBellClientExample/Main.swift Sources/Example/Main.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
2-
import MagicBellClient
2+
import MagicBellUserClient
33
import OpenAPIURLSession
44

55
let token =
@@ -12,7 +12,7 @@ let fakeDeviceToken =
1212
struct MainApp {
1313
static func main() async throws {
1414

15-
let client = MagicBellClient.Client(
15+
let client = MagicBellUserClient.Client(
1616
serverURL: try Servers.Server1.url(),
1717
configuration: .init(dateTranscoder: .iso8601WithFractionalSeconds),
1818
transport: URLSessionTransport(),

documentation/enums/Operations.discard_mobile_push_apns_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.discard_mobile_push_expo_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.discard_mobile_push_fcm_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.discard_slack_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.discard_teams_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.discard_web_push_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.finish_slack_installation.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_mobile_push_apns_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_mobile_push_apns_tokens.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_mobile_push_expo_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_mobile_push_expo_tokens.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_mobile_push_fcm_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_mobile_push_fcm_tokens.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_slack_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_slack_tokens.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_teams_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_teams_tokens.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_web_push_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.get_web_push_tokens.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.save_inbox_installation.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.save_mobile_push_apns_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

documentation/enums/Operations.save_mobile_push_expo_token.AcceptableContentType.md

+6
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ public static var allCases: [Self]
4949
```swift
5050
public init?(rawValue: Swift.String)
5151
```
52+
53+
#### Parameters
54+
55+
| Name | Description |
56+
| ---- | ----------- |
57+
| rawValue | The raw value to use for the new instance. |

0 commit comments

Comments
 (0)