chore: add crates.io release workflow, crate READMEs and LICENSE
Add release-crates.yml, which verifies a v*.*.* tag against the workspace version, runs fmt, clippy and tests, and publishes the eight crates to crates.io in dependency order through trusted publishing. It then dispatches the GitHub release and MCP Registry workflows. Give every library crate a README and point its Cargo.toml at it, add the Apache-2.0 LICENSE, and change the copyright holder to PT Sigit Mitra Bangun. The root README now lists the reports crate. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Seto Elkahfi committed
Oct 12, 2026 at 00:45 UTC
431924dfe4e1c5f332f8c5d90c17941dfe097797
20 files changed
+610
-6
.github/workflows/release-crates.yml
new
+200
@@ -0,0 +1,200 @@
1
+name: Release crates.io
2
+
3
+# This is the only workflow that reacts to a tag push. It verifies the tag,
4
+# publishes every workspace crate to crates.io in dependency order, and then
5
+# dispatches the GitHub release and the MCP Registry release with the same
6
+# tag. Neither runs for a crate release that failed: the MCP Registry reads
7
+# the published crate, so it has to exist first.
8
+
9
+on:
10
+ push:
11
+ tags:
12
+ - "v*.*.*"
13
+ workflow_dispatch:
14
+ inputs:
15
+ tag:
16
+ description: "Release tag (e.g. v0.2.0)"
17
+ required: true
18
+
19
+permissions:
20
+ contents: read
21
+ actions: write
22
+
23
+concurrency:
24
+ group: release-crates-${{ github.ref }}
25
+ cancel-in-progress: false
26
+
27
+env:
28
+ CARGO_TERM_COLOR: always
29
+
30
+jobs:
31
+ verify:
32
+ name: Verify release
33
+ runs-on: ubuntu-latest
34
+ outputs:
35
+ version: ${{ steps.release.outputs.version }}
36
+ tag: ${{ steps.release.outputs.tag }}
37
+ steps:
38
+ - name: Checkout
39
+ uses: actions/checkout@v6
40
+ with:
41
+ ref: ${{ github.event.inputs.tag || github.ref }}
42
+
43
+ - name: Install Rust toolchain
44
+ uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
45
+ with:
46
+ toolchain: stable
47
+ components: clippy, rustfmt
48
+
49
+ - name: Cache cargo registry and build artifacts
50
+ uses: Swatinem/rust-cache@v2
51
+
52
+ - name: Set the release version
53
+ id: release
54
+ shell: bash
55
+ run: |
56
+ if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
57
+ release_tag="${GITHUB_REF_NAME}"
58
+ else
59
+ release_tag="${{ github.event.inputs.tag }}"
60
+ release_tag="${release_tag#refs/tags/}"
61
+ fi
62
+ release_version="${release_tag#v}"
63
+
64
+ echo "tag=${release_tag}" >> "$GITHUB_OUTPUT"
65
+ echo "version=${release_version}" >> "$GITHUB_OUTPUT"
66
+
67
+ - name: Ensure tag matches the workspace version
68
+ shell: bash
69
+ run: |
70
+ version="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n 1)"
71
+ if [ -z "$version" ]; then
72
+ echo "::error::Failed to read the workspace version from Cargo.toml"
73
+ exit 1
74
+ fi
75
+ if [ "$version" != "${{ steps.release.outputs.version }}" ]; then
76
+ echo "::error::Cargo.toml is ${version} but the tag is ${{ steps.release.outputs.version }}"
77
+ exit 1
78
+ fi
79
+
80
+ - name: Check formatting
81
+ run: cargo fmt --all -- --check
82
+
83
+ - name: Run clippy
84
+ run: cargo clippy --workspace --all-targets --locked -- -D warnings
85
+
86
+ - name: Run tests
87
+ run: cargo test --workspace --locked
88
+
89
+ # Each lower crate has to build alone: a crate that only compiles
90
+ # because a sibling's features leak in through the workspace would fail
91
+ # for every consumer of the published crate.
92
+ - name: Check the lower crates build alone
93
+ shell: bash
94
+ run: |
95
+ for crate in core aso pricing signing reports; do
96
+ cargo check -p "smbcloud-ascapi-${crate}" --locked
97
+ done
98
+
99
+ publish:
100
+ name: Publish to crates.io
101
+ runs-on: ubuntu-latest
102
+ needs: verify
103
+ environment:
104
+ name: crates-io
105
+ # OIDC is how we authenticate to crates.io (trusted publishing): each
106
+ # crate trusts a GitHub Actions token issued for this repository and
107
+ # workflow, so no long-lived registry token is stored.
108
+ permissions:
109
+ contents: read
110
+ id-token: write
111
+ steps:
112
+ - name: Checkout
113
+ uses: actions/checkout@v6
114
+ with:
115
+ ref: ${{ github.event.inputs.tag || github.ref }}
116
+
117
+ - name: Install Rust toolchain
118
+ uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
119
+ with:
120
+ toolchain: stable
121
+
122
+ - name: Cache cargo registry and build artifacts
123
+ uses: Swatinem/rust-cache@v2
124
+
125
+ - name: Authenticate to crates.io
126
+ id: auth
127
+ uses: rust-lang/crates-io-auth-action@v1
128
+
129
+ - name: Publish crates
130
+ env:
131
+ CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
132
+ shell: bash
133
+ run: |
134
+ version="${{ needs.verify.outputs.version }}"
135
+
136
+ # Dependency order: a crate can only be published once everything it
137
+ # depends on is on crates.io. core first, then the domain crates
138
+ # that only depend on core, then frontend, mcp, and the CLI last.
139
+ crates=(
140
+ core
141
+ aso
142
+ pricing
143
+ signing
144
+ reports
145
+ frontend
146
+ mcp
147
+ cli
148
+ )
149
+
150
+ for crate in "${crates[@]}"; do
151
+ name="smbcloud-ascapi-${crate}"
152
+
153
+ # Skipping versions that are already up makes a re-run after a
154
+ # partial failure pick up where it stopped: crates.io versions
155
+ # are immutable, so a second publish would only error.
156
+ if curl -sSf -H "User-Agent: smbcloudXYZ/smbcloud-ascapi release-workflow" \
157
+ "https://crates.io/api/v1/crates/${name}/${version}" >/dev/null 2>&1; then
158
+ echo "${name} ${version} is already on crates.io, skipping"
159
+ continue
160
+ fi
161
+
162
+ echo "Publishing ${name} ${version}"
163
+ # cargo waits for the crate to show up in the index before it
164
+ # returns, so the next crate can resolve this one.
165
+ cargo publish -p "${name}" --locked
166
+ done
167
+
168
+ dispatch-distributions:
169
+ name: Trigger distribution workflows
170
+ needs: [verify, publish]
171
+ runs-on: ubuntu-latest
172
+
173
+ steps:
174
+ - name: Trigger GitHub release
175
+ uses: actions/github-script@v7
176
+ with:
177
+ script: |
178
+ await github.rest.actions.createWorkflowDispatch({
179
+ owner: context.repo.owner,
180
+ repo: context.repo.repo,
181
+ workflow_id: 'release-github.yml',
182
+ ref: '${{ needs.verify.outputs.tag }}',
183
+ inputs: {
184
+ tag: '${{ needs.verify.outputs.tag }}'
185
+ }
186
+ })
187
+
188
+ - name: Trigger MCP Registry release
189
+ uses: actions/github-script@v7
190
+ with:
191
+ script: |
192
+ await github.rest.actions.createWorkflowDispatch({
193
+ owner: context.repo.owner,
194
+ repo: context.repo.repo,
195
+ workflow_id: 'release-mcp-registry.yml',
196
+ ref: '${{ needs.verify.outputs.tag }}',
197
+ inputs: {
198
+ tag: '${{ needs.verify.outputs.tag }}'
199
+ }
200
+ })
LICENSE
new
+202
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 PT Sigit Mitra Bangun
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
README.md
+4
-3
@@ -2,7 +2,7 @@
2
3
`smbcloud-ascapi` is the app stores coolest API.
4
5
-Seven crates, split by domain and layered so neither front end can drift
5
+Eight crates, split by domain and layered so neither front end can drift
6
from the other:
7
8
| Crate | What it is |
@@ -11,11 +11,12 @@ from the other:
11
| `smbcloud-ascapi-aso` | App Metadata: apps, app infos, versions, builds, pre-release versions, review submissions, bundle IDs, localizations, screenshots |
12
| `smbcloud-ascapi-pricing` | Pricing: app price schedules, and the per-territory prices joined with their price points and currencies |
13
| `smbcloud-ascapi-signing` | Code signing: certificates and provisioning profiles, plus local RSA key pair and CSR generation |
14
+| `smbcloud-ascapi-reports` | Sales reports: account-level sales data, as Apple's gzip-compressed TSV |
15
| `smbcloud-ascapi-frontend` | Operations both surfaces share, so the CLI and the MCP server agree by construction, plus the CLI's `xcrun altool` upload |
16
| `smbcloud-ascapi-mcp` | The MCP contract and stdio server |
17
| `smbcloud-ascapi-cli` | The `asc` binary: clap command tree, plus `--mcp` |
18
18
-`aso`, `pricing` and `signing` know nothing about each other, and neither knows
19
+`aso`, `pricing`, `signing` and `reports` know nothing about each other, and neither knows
20
anything about the front ends. Each adds its calls to
21
`smbcloud_ascapi_core::Client` as **extension traits**, since Rust only
22
allows inherent impls in the crate that defines a type:
@@ -29,4 +30,4 @@ MCP Registry name: `mcp-name: io.github.smbcloudXYZ/ascapi`
30
31
## Copyright
32
32
-© 2026 [Splitfire AB](https://5mb.app) ([smbCloud](https://smbcloud.xyz)).
33
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/aso/Cargo.toml
+1
@@ -6,6 +6,7 @@ authors.workspace = true
6
license.workspace = true
7
repository.workspace = true
8
description = "App Store Connect App Metadata resources: apps, app infos, versions, bundle IDs, localizations, and screenshots."
9
+readme = "README.md"
10
11
[lib]
12
path = "src/lib.rs"
crates/aso/README.md
new
+29
@@ -0,0 +1,29 @@
1
+# smbcloud-ascapi-aso
2
+
3
+App Store Connect's App Metadata resources: apps, app infos and their
4
+localizations, app store versions and their localizations, builds, beta
5
+groups and review details, review submissions, bundle IDs, and screenshots.
6
+
7
+Every call is an extension trait on `smbcloud_ascapi_core::Client`. Import
8
+the prelude to get all of them:
9
+
10
+```toml
11
+[dependencies]
12
+smbcloud-ascapi-core = "0.1"
13
+smbcloud-ascapi-aso = "0.1"
14
+```
15
+
16
+```rust
17
+use smbcloud_ascapi_core::{ApiKey, Client};
18
+use smbcloud_ascapi_aso::prelude::*;
19
+
20
+let api_key = ApiKey::from_p8_file("KEY_ID", "ISSUER_ID", "AuthKey.p8")?;
21
+let client = Client::new(api_key);
22
+let apps = client.list_apps(Some("com.example.app")).await?;
23
+```
24
+
25
+See the [API docs](https://docs.rs/smbcloud-ascapi-aso).
26
+
27
+## Copyright
28
+
29
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/cli/README.md
+1
-1
@@ -110,4 +110,4 @@ Two deliberate absences:
110
111
## Copyright
112
113
-© 2026 [Splitfire AB](https://5mb.app) ([smbCloud](https://smbcloud.xyz)).
113
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/core/Cargo.toml
+1
@@ -6,6 +6,7 @@ authors.workspace = true
6
license.workspace = true
7
repository.workspace = true
8
description = "Shared transport for the App Store Connect API: JWT auth, the HTTP client, JSON:API envelopes, and error types."
9
+readme = "README.md"
10
11
[lib]
12
path = "src/lib.rs"
crates/core/README.md
new
+26
@@ -0,0 +1,26 @@
1
+# smbcloud-ascapi-core
2
+
3
+Shared transport for the App Store Connect API: ES256 JWT auth, an HTTP
4
+client that caches tokens, JSON:API envelopes, and the error type.
5
+
6
+This is the base of the [smbcloud-ascapi](https://github.com/smbcloudXYZ/smbcloud-ascapi)
7
+workspace. The domain crates add their calls to `Client` as extension
8
+traits, so most users depend on one of those and get this one with it.
9
+
10
+```toml
11
+[dependencies]
12
+smbcloud-ascapi-core = "0.1"
13
+```
14
+
15
+```rust
16
+use smbcloud_ascapi_core::{ApiKey, Client};
17
+
18
+let api_key = ApiKey::from_p8_file("KEY_ID", "ISSUER_ID", "AuthKey.p8")?;
19
+let client = Client::new(api_key);
20
+```
21
+
22
+See the [API docs](https://docs.rs/smbcloud-ascapi-core).
23
+
24
+## Copyright
25
+
26
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/frontend/Cargo.toml
+1
@@ -6,6 +6,7 @@ authors.workspace = true
6
license.workspace = true
7
repository.workspace = true
8
description = "Shared operations behind the asc command line and MCP surfaces: credential resolution, result shaping, certificate issuance, and altool uploads."
9
+readme = "README.md"
10
11
[lib]
12
path = "src/lib.rs"
crates/frontend/README.md
new
+20
@@ -0,0 +1,20 @@
1
+# smbcloud-ascapi-frontend
2
+
3
+The operations the `asc` command line and its MCP server share: credential
4
+resolution from the environment, result shaping, certificate issuance,
5
+profile download, review submission, build processing waits, and the
6
+`xcrun altool` upload.
7
+
8
+Keeping this in one crate means the two front ends agree by construction.
9
+It also enforces the rule that results never carry key material or
10
+certificate bodies, since one of the consumers is a language model.
11
+
12
+This is an internal building block of
13
+[smbcloud-ascapi](https://github.com/smbcloudXYZ/smbcloud-ascapi). If you want
14
+the tool, install [`smbcloud-ascapi-cli`](https://crates.io/crates/smbcloud-ascapi-cli).
15
+
16
+See the [API docs](https://docs.rs/smbcloud-ascapi-frontend).
17
+
18
+## Copyright
19
+
20
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/mcp/Cargo.toml
+1
@@ -6,6 +6,7 @@ authors.workspace = true
6
license.workspace = true
7
repository.workspace = true
8
description = "MCP server exposing the App Store Connect operations from smbcloud-ascapi over stdio."
9
+readme = "README.md"
10
11
[lib]
12
path = "src/lib.rs"
crates/mcp/README.md
new
+23
@@ -0,0 +1,23 @@
1
+# smbcloud-ascapi-mcp
2
+
3
+The MCP contract and stdio server for App Store Connect, behind
4
+`asc --mcp`. It exposes the tool set the CLI has, minus certificate
5
+revocation, which stays on the command line on purpose: it invalidates every
6
+profile embedding the certificate, irreversibly.
7
+
8
+stdout belongs to the protocol, so nothing in this crate writes to it.
9
+Tool results never include private keys or certificate bodies.
10
+
11
+Most users want the binary:
12
+
13
+```bash
14
+cargo install smbcloud-ascapi-cli
15
+asc --mcp
16
+```
17
+
18
+Embedders can use `ascapi_mcp_tools!` and `AscapiMcpServer` to re-expose
19
+the same contract. See the [API docs](https://docs.rs/smbcloud-ascapi-mcp).
20
+
21
+## Copyright
22
+
23
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/mcp/src/requests.rs
+1
-1
@@ -98,7 +98,7 @@ pub struct AppStoreVersionCreateRequest {
98
pub platform: String,
99
/// Marketing version string, e.g. 1.2.0.
100
pub version_string: String,
101
- /// Copyright line, e.g. "2026 Splitfire AB". Optional.
101
+ /// Copyright line, e.g. "2026 PT Sigit Mitra Bangun". Optional.
102
#[serde(default)]
103
pub copyright: Option<String>,
104
}
crates/pricing/Cargo.toml
+1
@@ -6,6 +6,7 @@ authors.workspace = true
6
license.workspace = true
7
repository.workspace = true
8
description = "App Store Connect pricing resources: app price schedules, and the per-territory prices and price points hanging off them."
9
+readme = "README.md"
10
11
[lib]
12
path = "src/lib.rs"
crates/pricing/README.md
new
+31
@@ -0,0 +1,31 @@
1
+# smbcloud-ascapi-pricing
2
+
3
+App Store Connect pricing: an app's price schedule, and the per-territory
4
+prices and price points hanging off it.
5
+
6
+Reading a price takes a join across three resources, because an `appPrices`
7
+row carries no money of its own. This crate does the join, so you get one
8
+flat `TerritoryPrice` per territory with the amount and currency attached.
9
+
10
+```toml
11
+[dependencies]
12
+smbcloud-ascapi-core = "0.1"
13
+smbcloud-ascapi-pricing = "0.1"
14
+```
15
+
16
+```rust
17
+use smbcloud_ascapi_core::{ApiKey, Client};
18
+use smbcloud_ascapi_pricing::app_price::PriceKind;
19
+use smbcloud_ascapi_pricing::prelude::*;
20
+
21
+let client = Client::new(ApiKey::from_p8_file("KEY_ID", "ISSUER_ID", "AuthKey.p8")?);
22
+let prices = client
23
+ .list_app_prices("APP_ID", PriceKind::Automatic, Some("IDN"))
24
+ .await?;
25
+```
26
+
27
+See the [API docs](https://docs.rs/smbcloud-ascapi-pricing).
28
+
29
+## Copyright
30
+
31
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/reports/Cargo.toml
+1
@@ -6,6 +6,7 @@ authors.workspace = true
6
license.workspace = true
7
repository.workspace = true
8
description = "Sales report downloads through the App Store Connect API."
9
+readme = "README.md"
10
11
[lib]
12
path = "src/lib.rs"
crates/reports/README.md
new
+36
@@ -0,0 +1,36 @@
1
+# smbcloud-ascapi-reports
2
+
3
+Sales report downloads from App Store Connect.
4
+
5
+Apple returns these reports as gzip-compressed TSV rather than JSON:API.
6
+This crate owns the request shape and hands back the raw bytes; you decide
7
+how to persist or transform them.
8
+
9
+```toml
10
+[dependencies]
11
+smbcloud-ascapi-core = "0.1"
12
+smbcloud-ascapi-reports = "0.1"
13
+```
14
+
15
+```rust
16
+use smbcloud_ascapi_core::{ApiKey, Client};
17
+use smbcloud_ascapi_reports::{SalesReportRequest, SalesReportsApi};
18
+
19
+let client = Client::new(ApiKey::from_p8_file("KEY_ID", "ISSUER_ID", "AuthKey.p8")?);
20
+let gzipped_tsv = client
21
+ .download_sales_report(&SalesReportRequest {
22
+ vendor_number: "12345678".into(),
23
+ frequency: "DAILY".into(),
24
+ report_date: "2026-09-11".into(),
25
+ report_type: "SALES".into(),
26
+ report_subtype: "SUMMARY".into(),
27
+ version: None,
28
+ })
29
+ .await?;
30
+```
31
+
32
+See the [API docs](https://docs.rs/smbcloud-ascapi-reports).
33
+
34
+## Copyright
35
+
36
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/signing/Cargo.toml
+1
@@ -6,6 +6,7 @@ authors.workspace = true
6
license.workspace = true
7
repository.workspace = true
8
description = "Apple code signing through App Store Connect: certificates, plus local RSA key pair and CSR generation."
9
+readme = "README.md"
10
11
[lib]
12
path = "src/lib.rs"
crates/signing/README.md
new
+29
@@ -0,0 +1,29 @@
1
+# smbcloud-ascapi-signing
2
+
3
+Apple code signing through App Store Connect: certificates and provisioning
4
+profiles, plus local RSA key pair and CSR generation.
5
+
6
+Apple never receives or returns a private key. You generate the key pair
7
+locally, send Apple only a signing request, and keep the private key. A
8
+certificate whose key file is lost is permanently unusable, and an expired
9
+certificate cannot be renewed, only replaced.
10
+
11
+```toml
12
+[dependencies]
13
+smbcloud-ascapi-core = "0.1"
14
+smbcloud-ascapi-signing = "0.1"
15
+```
16
+
17
+```rust
18
+use smbcloud_ascapi_core::{ApiKey, Client};
19
+use smbcloud_ascapi_signing::prelude::*;
20
+
21
+let client = Client::new(ApiKey::from_p8_file("KEY_ID", "ISSUER_ID", "AuthKey.p8")?);
22
+```
23
+
24
+See the [API docs](https://docs.rs/smbcloud-ascapi-signing) for `csr`,
25
+`certificate` and `profile`.
26
+
27
+## Copyright
28
+
29
+© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
crates/signing/src/certificate.rs
+1
-1
@@ -98,7 +98,7 @@ impl CertificateType {
98
#[serde(rename_all = "camelCase")]
99
pub struct CertificateAttributes {
100
/// The certificate's common name, e.g.
101
- /// `Apple Distribution: Splitfire AB (2TQF86ZACD)`. This is what
101
+ /// `Apple Distribution: PT Sigit Mitra Bangun (2TQF86ZACD)`. This is what
102
/// `codesign --sign` matches when given a name rather than a hash.
103
pub name: Option<String>,
104
pub certificate_type: Option<CertificateType>,