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
4 changes: 2 additions & 2 deletions .github/workflows/reconcile-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
- name: Create pull-request token
if: steps.changes.outputs.changed == 'true'
id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
app-id: ${{ secrets.CB_SDK_BOT_APP_ID }}
private-key: ${{ secrets.CB_SDK_BOT_PEM_KEY }}
Expand All @@ -177,7 +177,7 @@ jobs:

- name: Create or update reconciliation PR
if: steps.changes.outputs.changed == 'true'
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8
with:
token: ${{ steps.app-token.outputs.token }}
base: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Create release PR approval token
if: steps.rp.outputs.release_created != 'true'
id: release-approval-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
app-id: ${{ secrets.CB_SDK_BOT_APP_ID }}
private-key: ${{ secrets.CB_SDK_BOT_PEM_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion TELEMETRY.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ A telemetry request has the following structure:
| `pcv` | When available | Product Catalog version (`v1` or `v2`) of the configured site. |
| `code_lang` | Code generation | Generated code language, such as `go` or `js`. |
| `agent` | When detected | Supported agent runtime: `claude-code`, `cursor`, `codex` (sandboxed runs) or `gemini-cli`, detected from environment variables those tools set. |
| `listen_phase` | `chargebee listen` | Tunnel lifecycle state: `established`, `closed`, or `error`. |
| `listen_phase` | `chargebee listen` | Tunnel lifecycle state: `established` (first connection), `reconnected` (connected again after a drop), `closed`, or `error` (a connection attempt failed, or the tunnel was refused and listen stopped). |
| `first_run` | First recorded event only | Date (`YYYY-MM-DD`) the first-run notice was shown. |

## What is Never Collected
Expand Down
12 changes: 6 additions & 6 deletions THIRD_PARTY_NOTICES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ in dist/index.js). This file reproduces each package's license so the
notice travels with the code it applies to. It is generated by
`bun run src/tools/third-party-notices.ts`; do not edit it by hand.

@chargebee/code-sample-generator@1.1.1 (SEE LICENSE IN LICENSE)
@chargebee/code-sample-generator@1.1.2 (SEE LICENSE IN LICENSE)
---------------------------------------------------------------
Licensed under Chargebee's generator EULA. The full text is shipped once, at
licenses/code-sample-generator.txt, and is not repeated here.

@clack/core@1.5.1 (MIT)
@clack/core@1.6.0 (MIT)
-----------------------
MIT License

Expand All @@ -24,7 +24,7 @@ The above copyright notice and this permission notice shall be included in all c

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@clack/prompts@1.8.1 (MIT)
@clack/prompts@1.9.0 (MIT)
--------------------------
MIT License

Expand All @@ -41,7 +41,7 @@ change-case@5.4.4 (MIT)
This package ships no LICENSE, LICENCE, or COPYING file. Its package.json
declares the SPDX license identifier "MIT".

chargebee@3.35.0 (MIT)
chargebee@3.37.0 (MIT)
----------------------
The MIT License

Expand All @@ -68,7 +68,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

commander@15.0.0 (MIT)
commander@15.1.0 (MIT)
----------------------
(The MIT License)

Expand Down Expand Up @@ -203,7 +203,7 @@ The above copyright notice and this permission notice shall be included in all c

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

sisteransi@1.0.5 (MIT)
sisteransi@2.0.0 (MIT)
----------------------
MIT License

Expand Down
20 changes: 10 additions & 10 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
"postinstall": "node scripts/postinstall.mjs"
},
"devDependencies": {
"@chargebee/code-sample-generator": "1.1.1",
"@chargebee/code-sample-generator": "1.1.2",
"@clack/prompts": "^1.8.1",
"@types/bun": "1.4.4",
"@types/bun": "1.4.5",
"chargebee": "^3.34.0",
"commander": "^15.0.0",
"typescript": "^7.0.2"
Expand Down
34 changes: 34 additions & 0 deletions src/commands/generated/docs-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,26 @@ export const docsOperationIds: Record<string, Record<string, { v1: string; v2: s
"v2": "update_a_feature"
}
},
"gateway-request-log": {
"list": {
"v1": "list_gateway_request_logs",
"v2": "list_gateway_request_logs"
},
"retrieve": {
"v1": "retrieve_a_gateway_request_log",
"v2": "retrieve_a_gateway_request_log"
}
},
"gateway-webhook-log": {
"list": {
"v1": "list_gateway_webhook_logs",
"v2": "list_gateway_webhook_logs"
},
"retrieve": {
"v1": "retrieve_a_gateway_webhook_log",
"v2": "retrieve_a_gateway_webhook_log"
}
},
"gift": {
"cancel": {
"v1": "cancel_a_gift",
Expand Down Expand Up @@ -1470,6 +1490,20 @@ export const docsOperationIds: Record<string, Record<string, { v1: string; v2: s
"v2": "update_an_order"
}
},
"organization-detail": {
"create": {
"v1": "update_organization_details",
"v2": "update_organization_details"
},
"list": {
"v1": "list_organization_details",
"v2": "list_organization_details"
},
"retrieve": {
"v1": "retrieve_organization_details",
"v2": "retrieve_organization_details"
}
},
"payment-intent": {
"create": {
"v1": "create_a_payment_intent",
Expand Down
64 changes: 64 additions & 0 deletions src/commands/generated/gateway_request_log.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// Code generated by src/tools/generate.ts from Chargebee SDK endpoints. DO NOT EDIT.
// Regenerate with: bun run generate

import { Option, type Command } from "commander";

import { getClient, ensureWriteAllowed } from "../../lib/api/sdk.js";
import { handleSdkError, printResult } from "../../lib/api/print.js";
import { assertResourceId, handleCodeSample } from "../../lib/api/generated-command.js";
import { warnBareListFilters } from "../../lib/codesample/index.js";
import { loadOperationParams, takeResourceId, readJsonMarker, warnBareJsonFilters } from "../../lib/api/stdin-params.js";

import { toSdkParams } from "../../lib/api/params.js";

export function registerGatewayRequestLog(parent: Command): void {
const cmd = parent
.command("gateway-request-log")
.alias("gateway_request_log")
.description("API operations for gateway request logs");

cmd
.command("list")
.argument("[json]", "'-' reads a JSON object from stdin.")
.description("List gateway request logs")
.option("-d, --data <pairs...>", "Parameters as key=value. List filters require an operator suffix (id[is]=…). Bare keys: limit, offset, include_deleted.")
.option("-s, --code-sample <lang>", "Generate code sample (curl, python, nodejs, go, ruby, java, php, dotnet, list)")
.addOption(new Option("--pc-version <version>", "Product catalog version for the code sample (v1 or v2)").hideHelp())
.addHelpText("after", "\n\u001b[1mLIST FILTERS\u001b[0m\n Filter fields need an operator suffix: [is], [in], [starts_with], [between], [gt], [lt], ...\n Pagination uses bare keys: -d limit=10\n See https://apidocs.chargebee.com/docs/api/list-ops\n Per-resource Filter Params: chargebee docs gateway-request-log list")
.addHelpText("after", "\n\u001b[1mDOCUMENTATION\u001b[0m\n chargebee docs gateway-request-log list\n")
.action(async (json: string | undefined, opts: { data?: string[]; codeSample?: string; pcVersion?: string }, command: Command) => {
const fromStdin = readJsonMarker(json, command);
const params = await loadOperationParams(opts.data ?? [], fromStdin, command, { method: "GET", jsonInput: false, opIdV2: "list_gateway_request_logs", opIdV1: "list_gateway_request_logs", pcVersionFlag: opts.pcVersion });
if (opts.codeSample) return handleCodeSample({ lang: opts.codeSample, opIdV2: "list_gateway_request_logs", opIdV1: "list_gateway_request_logs", method: "GET", uri: "/gateway_request_logs", dataFlags: opts.data ?? [], params, pcVersionFlag: opts.pcVersion });
if (fromStdin) warnBareJsonFilters(params, "gateway-request-log");
else warnBareListFilters(opts.data ?? [], "gateway-request-log");
try {
const client = await getClient();
const result = await (client as any).gatewayRequestLog.list(toSdkParams(params, "GET", true));
printResult(result);
} catch (e) { handleSdkError(e); }
});

cmd
.command("retrieve")
.argument("[gateway-request-log-log-id]", "Gateway request log log identifier.")
.argument("[json]", "'-' reads a JSON object from stdin.")
.description("Retrieve a gateway request log")
.option("-d, --data <pairs...>", "Request parameters in key=value format; repeat for multiple fields")
.option("-s, --code-sample <lang>", "Generate code sample (curl, python, nodejs, go, ruby, java, php, dotnet, list)")
.addOption(new Option("--pc-version <version>", "Product catalog version for the code sample (v1 or v2)").hideHelp())
.addHelpText("after", "\n\u001b[1mDOCUMENTATION\u001b[0m\n chargebee docs gateway-request-log retrieve\n")
.action(async (id: string | undefined, json: string | undefined, opts: { data?: string[]; codeSample?: string; pcVersion?: string }, command: Command) => {
const resource = takeResourceId(id, json, command);
const params = await loadOperationParams(opts.data ?? [], resource.fromStdin, command, { method: "GET", jsonInput: false, opIdV2: "retrieve_a_gateway_request_log", opIdV1: "retrieve_a_gateway_request_log", pcVersionFlag: opts.pcVersion });
if (opts.codeSample) return handleCodeSample({ lang: opts.codeSample, opIdV2: "retrieve_a_gateway_request_log", opIdV1: "retrieve_a_gateway_request_log", method: "GET", uri: "/gateway_request_logs/{id}", dataFlags: opts.data ?? [], params, resourceId: resource.id, pathParamName: "gateway-request-log-log-id", pcVersionFlag: opts.pcVersion });
if (!resource.id) command.error("error: missing required argument 'gateway-request-log-log-id'");
assertResourceId(resource.id, command);
try {
const client = await getClient();
const result = await (client as any).gatewayRequestLog.retrieve(resource.id, toSdkParams(params, "GET", false));
printResult(result);
} catch (e) { handleSdkError(e); }
});

}
Loading
Loading