@workos/openapi-spec 0.149.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/open-api-spec.yaml +3 -23
- package/dist/types.d.ts +1 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -37,9 +37,12 @@ npm run sdk:resolve
|
|
|
37
37
|
# Generate SDK code. A live checkout as --output doubles as the baseline: its
|
|
38
38
|
# public API surface is extracted and handed to the emitter so names and
|
|
39
39
|
# positions callers depend on survive; --baseline-ref picks an older tag when
|
|
40
|
-
# HEAD is not the surface to preserve (a repair release after a broken one)
|
|
40
|
+
# HEAD is not the surface to preserve (a repair release after a broken one),
|
|
41
|
+
# and --baseline-mode restore lets that tag win every method it has when the
|
|
42
|
+
# broken release also reordered parameters.
|
|
41
43
|
npm run sdk:generate -- --lang python --output ~/workos/sdks/backend/python
|
|
42
44
|
npm run sdk:generate -- --lang php --output ~/workos/sdks/backend/workos-php --baseline-ref v9.4.0
|
|
45
|
+
npm run sdk:generate -- --lang kotlin --output ~/workos/workos-kotlin --baseline-ref v7.4.0 --baseline-mode restore
|
|
43
46
|
|
|
44
47
|
# Diff the current spec against the last-generated snapshot
|
|
45
48
|
npm run sdk:diff -- --lang python
|
|
@@ -82,9 +85,9 @@ npm run sdk:compat-summary -- --report .oagen/python/compat-report.json --output
|
|
|
82
85
|
|
|
83
86
|
The SDK PR workflow writes `.changelog-pending/*.md` fragments from deterministic release entries generated by [`scripts/sdk-release-metadata.mjs`](scripts/sdk-release-metadata.mjs). Entries answer three questions: where the change occurred (`scope`), how severe it is (`feat!`, `feat`, or `fix`), and what changed. Known scopes also include `docs_url`, which the changelog renderer uses to link scope names to WorkOS API reference pages.
|
|
84
87
|
|
|
85
|
-
Each entry includes `scope_sources` and `scope_candidates` so the chosen scope can be audited. Model and enum scope resolution uses parsed IR references when no explicit symbol taxonomy matches; if the symbol taxonomy and IR references disagree, the script emits a warning with both values. Automated runs pass `--strict-scopes`, which fails the workflow if a user-facing entry resolves to the fallback `sdk` scope or lacks `docs_url` metadata.
|
|
88
|
+
Each entry includes `scope_sources` and `scope_candidates` so the chosen scope can be audited. Model and enum scope resolution uses parsed IR references when no explicit symbol taxonomy matches; if the symbol taxonomy and IR references disagree, the script emits a warning with both values. SDK-surface param types that the emitters name from policy-resolved operations (`ListEventsParams` from `Events.list_events`, not the raw `list` the parsed IR carries) resolve through `--resolved-ops`, the JSON output of `oagen resolve --format json`. Automated runs pass `--strict-scopes`, which fails the workflow if a user-facing entry resolves to the fallback `sdk` scope or lacks `docs_url` metadata.
|
|
86
89
|
|
|
87
|
-
In automation, `.github/workflows/generate-prs.yml` provides the structured `oagen diff`, parsed old/new IR, compat report, and changed SDK files. The script outputs JSON entries; the workflow creates the PR and adds the PR link/number when writing the changelog fragment.
|
|
90
|
+
In automation, `.github/workflows/generate-prs.yml` provides the structured `oagen diff`, parsed old/new IR, policy-resolved operations, compat report, and changed SDK files. The script outputs JSON entries; the workflow creates the PR and adds the PR link/number when writing the changelog fragment.
|
|
88
91
|
|
|
89
92
|
For manual repair of existing fragments, pass the `openapi-spec` workflow commit that triggered the SDK PR. The script uses the spec state at that commit and diffs it against the previous spec-changing commit.
|
|
90
93
|
|
package/dist/open-api-spec.yaml
CHANGED
|
@@ -9520,21 +9520,11 @@ paths:
|
|
|
9520
9520
|
- directory-users
|
|
9521
9521
|
/events:
|
|
9522
9522
|
get:
|
|
9523
|
-
description:
|
|
9523
|
+
description: >-
|
|
9524
|
+
List events for the current environment. Events are returned oldest
|
|
9525
|
+
first; use `after` to page forward.
|
|
9524
9526
|
operationId: EventsController_list
|
|
9525
9527
|
parameters:
|
|
9526
|
-
- name: before
|
|
9527
|
-
required: false
|
|
9528
|
-
in: query
|
|
9529
|
-
description: >-
|
|
9530
|
-
An object ID that defines your place in the list. When the ID is not
|
|
9531
|
-
present, you are at the end of the list. For example, if you make a
|
|
9532
|
-
list request and receive 100 objects, ending with `"obj_123"`, your
|
|
9533
|
-
subsequent call can include `before="obj_123"` to fetch a new batch
|
|
9534
|
-
of objects before `"obj_123"`.
|
|
9535
|
-
schema:
|
|
9536
|
-
example: xxx_01HXYZ123456789ABCDEFGHIJ
|
|
9537
|
-
type: string
|
|
9538
9528
|
- name: after
|
|
9539
9529
|
required: false
|
|
9540
9530
|
in: query
|
|
@@ -9559,16 +9549,6 @@ paths:
|
|
|
9559
9549
|
default: 10
|
|
9560
9550
|
example: 10
|
|
9561
9551
|
type: integer
|
|
9562
|
-
- name: order
|
|
9563
|
-
required: false
|
|
9564
|
-
in: query
|
|
9565
|
-
description: >-
|
|
9566
|
-
Order the results by the creation time. Supported values are `"asc"`
|
|
9567
|
-
(ascending), `"desc"` (descending), and `"normal"` (descending with
|
|
9568
|
-
reversed cursor semantics where `before` fetches older records and
|
|
9569
|
-
`after` fetches newer records). Defaults to `normal`.
|
|
9570
|
-
schema:
|
|
9571
|
-
$ref: '#/components/schemas/PaginationOrder'
|
|
9572
9552
|
- name: events
|
|
9573
9553
|
required: true
|
|
9574
9554
|
in: query
|
package/dist/types.d.ts
CHANGED
|
@@ -1792,7 +1792,7 @@ export interface paths {
|
|
|
1792
1792
|
};
|
|
1793
1793
|
/**
|
|
1794
1794
|
* List events
|
|
1795
|
-
* @description List events for the current environment.
|
|
1795
|
+
* @description List events for the current environment. Events are returned oldest first; use `after` to page forward.
|
|
1796
1796
|
*/
|
|
1797
1797
|
get: operations["EventsController_list"];
|
|
1798
1798
|
put?: never;
|
|
@@ -30598,14 +30598,10 @@ export interface operations {
|
|
|
30598
30598
|
EventsController_list: {
|
|
30599
30599
|
parameters: {
|
|
30600
30600
|
query: {
|
|
30601
|
-
/** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. */
|
|
30602
|
-
before?: string;
|
|
30603
30601
|
/** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. */
|
|
30604
30602
|
after?: string;
|
|
30605
30603
|
/** @description Upper limit on the number of objects to return, between `1` and `100`. */
|
|
30606
30604
|
limit?: number;
|
|
30607
|
-
/** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. */
|
|
30608
|
-
order?: components["schemas"]["PaginationOrder"];
|
|
30609
30605
|
/** @description Filter events by one or more event types (e.g. `dsync.user.created`). */
|
|
30610
30606
|
events: string[];
|
|
30611
30607
|
/** @description ISO 8601 UTC timestamp with a `Z` suffix to filter events created after this date. Timezone offsets such as `+00:00` are not accepted. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workos/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.150.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^26.6.6",
|
|
60
|
-
"@workos/oagen": "^0.34.
|
|
61
|
-
"@workos/oagen-emitters": "^0.25.
|
|
60
|
+
"@workos/oagen": "^0.34.1",
|
|
61
|
+
"@workos/oagen-emitters": "^0.25.5",
|
|
62
62
|
"diff2html": "^3.4.56",
|
|
63
63
|
"husky": "^9.1.7",
|
|
64
64
|
"js-yaml": "^5.5.0",
|