Skip to content

Commit

Permalink
chore: Rename SDK to magicbell-swift-user-client (#14)
Browse files Browse the repository at this point in the history
* chore: renaming lib to magicbell-swift-user-client

* changeset

* chore: adjust update-version script
  • Loading branch information
stigi authored Dec 20, 2024
1 parent d96791e commit 6236c20
Show file tree
Hide file tree
Showing 47 changed files with 225 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "magicbell/magicbell-swift-client" }],
"changelog": ["@changesets/changelog-github", { "repo": "magicbell/magicbell-swift-user-client" }],
"commit": false,
"fixed": [],
"linked": [],
Expand Down
5 changes: 5 additions & 0 deletions .changeset/great-needles-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"magicbell-swift-user-client": minor
---

Renaming library to magicbell-swift-user-client
2 changes: 1 addition & 1 deletion .github/sync.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
magicbell/magicbell:
- source: docs-dist
dest: src/go/app/site/docs/mdx/03-libraries/magicbell-swift-client
dest: src/go/app/site/docs/mdx/03-libraries/magicbell-swift-user-client
4 changes: 2 additions & 2 deletions .github/workflows/regen.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Regen magicbell-swift-client
name: Regen

on:
workflow_dispatch:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
cp .build/release/sourcedocs /usr/local/bin
popd
- name: Regen `magicbell-swift-client`
- name: Regen
run: yarn codegen
env:
LIBLAB_TOKEN: ${{ secrets.LIBLAB_ACTION_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-discussion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
repo: magicbell/community
category: changelog
cycle: week
release-prefix: magicbell-swift-client
release-prefix: magicbell-swift-user-client
env:
GITHUB_TOKEN: ${{ secrets.BELLA_ACTION_TOKEN }}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# magicbell-swift-client
# magicbell-swift-user-client

## 0.2.0

Expand Down
12 changes: 6 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import PackageDescription

let package = Package(
name: "MagicBellClient",
name: "MagicBellUserClient",
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)],
products: [
.library(name: "MagicBellClient", targets: ["MagicBellClient"]),
.executable(name: "MagicBellClientExample", targets: ["MagicBellClientExample"]),
.library(name: "MagicBellUserClient", targets: ["MagicBellUserClient"]),
.executable(name: "Example", targets: ["Example"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-openapi-generator", from: "1.0.0"),
Expand All @@ -16,14 +16,14 @@ let package = Package(
],
targets: [
.target(
name: "MagicBellClient",
name: "MagicBellUserClient",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
]),
.executableTarget(
name: "MagicBellClientExample",
dependencies: ["MagicBellClient"]
name: "Example",
dependencies: ["MagicBellUserClient"]
)
]
)
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# MagicBellClient Swift SDK 0.2.0
# MagicBellUserClient Swift SDK 0.2.0

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

## About the API

OpenAPI 3.0.3 Specification for MagicBell API.

## Table of Contents

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

```swift
dependencies: [
.package(url: "https://github.com/magicbell/magicbell-swift-client", .upToNextMajor(from: "0.1.0"))
.package(url: "https://github.com/magicbell/magicbell-swift-user-client", .upToNextMajor(from: "0.1.0"))
]
```

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

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

```swift
import Foundation
import MagicBellClient
import MagicBellUserClient
import OpenAPIURLSession

let token = "YOUR_ACCESS_TOKEN"
Expand All @@ -84,7 +84,7 @@ let token = "YOUR_ACCESS_TOKEN"
struct MainApp {
static func main() async throws {

let client = MagicBellClient.Client(
let client = MagicBellUserClient.Client(
serverURL: try Servers.Server1.url(),
configuration: .init(dateTranscoder: .iso8601WithFractionalSeconds),
transport: URLSessionTransport(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
import MagicBellClient
import MagicBellUserClient
import OpenAPIURLSession

let token =
Expand All @@ -12,7 +12,7 @@ let fakeDeviceToken =
struct MainApp {
static func main() async throws {

let client = MagicBellClient.Client(
let client = MagicBellUserClient.Client(
serverURL: try Servers.Server1.url(),
configuration: .init(dateTranscoder: .iso8601WithFractionalSeconds),
transport: URLSessionTransport(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ public static var allCases: [Self]
```swift
public init?(rawValue: Swift.String)
```

#### Parameters

| Name | Description |
| ---- | ----------- |
| rawValue | The raw value to use for the new instance. |
Loading

0 comments on commit 6236c20

Please sign in to comment.