@workos/openapi-spec 0.126.0 → 0.128.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.
@@ -1795,6 +1795,47 @@ paths:
1795
1795
  summary: Get an agent registration
1796
1796
  tags:
1797
1797
  - agents.registrations
1798
+ /agents/registrations/{id}/revoke:
1799
+ post:
1800
+ description: >-
1801
+ Revoke an agent registration by ID. Revocation is permanent: the
1802
+ registration, its identity assertions, and every access token or API key
1803
+ issued from it stop working, and the agent must register again. Revoking
1804
+ an already revoked registration succeeds and returns the original
1805
+ `revoked_at`. The registration is scoped to the environment of the API
1806
+ key used to authenticate the request.
1807
+ operationId: AgentAdminController_revokeRegistration
1808
+ parameters:
1809
+ - name: id
1810
+ required: true
1811
+ in: path
1812
+ description: The unique ID of the agent registration.
1813
+ schema:
1814
+ type: string
1815
+ example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY
1816
+ responses:
1817
+ '200':
1818
+ description: OK
1819
+ content:
1820
+ application/json:
1821
+ schema:
1822
+ $ref: '#/components/schemas/AgentRegistration'
1823
+ '404':
1824
+ description: Not Found
1825
+ content:
1826
+ application/json:
1827
+ schema:
1828
+ type: object
1829
+ properties:
1830
+ message:
1831
+ type: string
1832
+ description: A human-readable description of the error.
1833
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
1834
+ required:
1835
+ - message
1836
+ summary: Revoke an agent registration
1837
+ tags:
1838
+ - agents.registrations
1798
1839
  /agents/sessions:
1799
1840
  get:
1800
1841
  description: >-
@@ -18129,7 +18170,7 @@ paths:
18129
18170
  example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
18130
18171
  required:
18131
18172
  - message
18132
- summary: Revoke Portal Links
18173
+ summary: Revoke a Portal Link
18133
18174
  tags:
18134
18175
  - admin-portal
18135
18176
  /radar/attempts:
@@ -32526,6 +32567,15 @@ components:
32526
32567
  - revoked
32527
32568
  description: The current verification status of the registration.
32528
32569
  example: verified
32570
+ revoked_at:
32571
+ type:
32572
+ - string
32573
+ - 'null'
32574
+ format: date-time
32575
+ description: >-
32576
+ The timestamp when the registration was revoked, or `null` if it has
32577
+ not been revoked.
32578
+ example: null
32529
32579
  kind:
32530
32580
  type: string
32531
32581
  enum:
@@ -32622,6 +32672,7 @@ components:
32622
32672
  - agent_identity
32623
32673
  - organization_id
32624
32674
  - status
32675
+ - revoked_at
32625
32676
  - kind
32626
32677
  - claim
32627
32678
  - created_at
@@ -41513,6 +41564,34 @@ components:
41513
41564
  example:
41514
41565
  - beta
41515
41566
  - release
41567
+ owner:
41568
+ description: >-
41569
+ The previous owner of the flag, or `null` if it
41570
+ had none.
41571
+ oneOf:
41572
+ - type: object
41573
+ properties:
41574
+ email:
41575
+ type: string
41576
+ description: The email address of the flag owner.
41577
+ example: jane@example.com
41578
+ first_name:
41579
+ type:
41580
+ - string
41581
+ - 'null'
41582
+ description: The first name of the flag owner.
41583
+ example: Jane
41584
+ last_name:
41585
+ type:
41586
+ - string
41587
+ - 'null'
41588
+ description: The last name of the flag owner.
41589
+ example: Doe
41590
+ required:
41591
+ - email
41592
+ - first_name
41593
+ - last_name
41594
+ - type: 'null'
41516
41595
  enabled:
41517
41596
  type: boolean
41518
41597
  description: Whether the flag was previously enabled.
package/dist/services.mjs CHANGED
@@ -101,6 +101,11 @@ const serviceEndpoints = {
101
101
  "path": "/agents/registrations/{id}",
102
102
  "name": "get_registration"
103
103
  },
104
+ {
105
+ "method": "POST",
106
+ "path": "/agents/registrations/{id}/revoke",
107
+ "name": "revoke_registration"
108
+ },
104
109
  {
105
110
  "method": "GET",
106
111
  "path": "/agents/sessions",
package/dist/types.d.ts CHANGED
@@ -200,6 +200,26 @@ export interface paths {
200
200
  patch?: never;
201
201
  trace?: never;
202
202
  };
203
+ "/agents/registrations/{id}/revoke": {
204
+ parameters: {
205
+ query?: never;
206
+ header?: never;
207
+ path?: never;
208
+ cookie?: never;
209
+ };
210
+ get?: never;
211
+ put?: never;
212
+ /**
213
+ * Revoke an agent registration
214
+ * @description Revoke an agent registration by ID. Revocation is permanent: the registration, its identity assertions, and every access token or API key issued from it stop working, and the agent must register again. Revoking an already revoked registration succeeds and returns the original `revoked_at`. The registration is scoped to the environment of the API key used to authenticate the request.
215
+ */
216
+ post: operations["AgentAdminController_revokeRegistration"];
217
+ delete?: never;
218
+ options?: never;
219
+ head?: never;
220
+ patch?: never;
221
+ trace?: never;
222
+ };
203
223
  "/agents/sessions": {
204
224
  parameters: {
205
225
  query?: never;
@@ -2449,7 +2469,7 @@ export interface paths {
2449
2469
  get?: never;
2450
2470
  put?: never;
2451
2471
  /**
2452
- * Revoke Portal Links
2472
+ * Revoke a Portal Link
2453
2473
  * @description Revokes every Portal Link generated for the given organization with the given `external_user_id`, and immediately ends any Admin Portal sessions that were started from those links. Use this when an admin is deprovisioned from your application: unopened links stop working, and their already-open portal sessions are ended. Only links that were generated with an `external_user_id` can be revoked, so pass one to `generate_link` for every admin you may later need to deprovision.
2454
2474
  */
2455
2475
  post: operations["PortalSessionsController_revokeLink"];
@@ -6755,6 +6775,12 @@ export interface components {
6755
6775
  * @enum {string}
6756
6776
  */
6757
6777
  status: "unverified" | "verified" | "expired" | "revoked";
6778
+ /**
6779
+ * Format: date-time
6780
+ * @description The timestamp when the registration was revoked, or `null` if it has not been revoked.
6781
+ * @example null
6782
+ */
6783
+ revoked_at: string | null;
6758
6784
  /**
6759
6785
  * @description The kind of agent registration.
6760
6786
  * @example service_auth
@@ -13584,6 +13610,24 @@ export interface components {
13584
13610
  * ]
13585
13611
  */
13586
13612
  tags?: string[];
13613
+ /** @description The previous owner of the flag, or `null` if it had none. */
13614
+ owner?: {
13615
+ /**
13616
+ * @description The email address of the flag owner.
13617
+ * @example jane@example.com
13618
+ */
13619
+ email: string;
13620
+ /**
13621
+ * @description The first name of the flag owner.
13622
+ * @example Jane
13623
+ */
13624
+ first_name: string | null;
13625
+ /**
13626
+ * @description The last name of the flag owner.
13627
+ * @example Doe
13628
+ */
13629
+ last_name: string | null;
13630
+ } | null;
13587
13631
  /**
13588
13632
  * @description Whether the flag was previously enabled.
13589
13633
  * @example true
@@ -21979,6 +22023,44 @@ export interface operations {
21979
22023
  };
21980
22024
  };
21981
22025
  };
22026
+ AgentAdminController_revokeRegistration: {
22027
+ parameters: {
22028
+ query?: never;
22029
+ header?: never;
22030
+ path: {
22031
+ /** @description The unique ID of the agent registration. */
22032
+ id: string;
22033
+ };
22034
+ cookie?: never;
22035
+ };
22036
+ requestBody?: never;
22037
+ responses: {
22038
+ /** @description OK */
22039
+ 200: {
22040
+ headers: {
22041
+ [name: string]: unknown;
22042
+ };
22043
+ content: {
22044
+ "application/json": components["schemas"]["AgentRegistration"];
22045
+ };
22046
+ };
22047
+ /** @description Not Found */
22048
+ 404: {
22049
+ headers: {
22050
+ [name: string]: unknown;
22051
+ };
22052
+ content: {
22053
+ "application/json": {
22054
+ /**
22055
+ * @description A human-readable description of the error.
22056
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
22057
+ */
22058
+ message: string;
22059
+ };
22060
+ };
22061
+ };
22062
+ };
22063
+ };
21982
22064
  AgentInstanceSessionsController_list: {
21983
22065
  parameters: {
21984
22066
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.126.0",
3
+ "version": "0.128.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",