@@ -43,6 +43,12 @@ const config = {
4343 methods : [ "post" ] ,
4444 } ,
4545
46+ // Workflows endpoints
47+ {
48+ path : "/accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}/status" ,
49+ methods : [ "patch" ] ,
50+ } ,
51+
4652 // Durable Objects endpoints
4753 {
4854 path : "/accounts/{account_id}/workers/durable_objects/namespaces" ,
@@ -170,8 +176,8 @@ const config = {
170176
171177 // Schema properties not returned by local implementation
172178 schemaProperties : {
173- // Namespace response doesn't include supports_url_encoding locally
174- "workers-kv_namespace" : [ "supports_url_encoding" ] ,
179+ // Namespace response doesn't include jurisdiction or supports_url_encoding locally
180+ "workers-kv_namespace" : [ "jurisdiction" , " supports_url_encoding"] ,
175181 // D1 database response doesn't include created_at locally
176182 "d1_database-response" : [ "created_at" ] ,
177183 // D1 query meta doesn't include served_by fields locally
@@ -1512,119 +1518,6 @@ const config = {
15121518 tags : [ "Workflows" ] ,
15131519 } ,
15141520 } ,
1515- "/workflows/{workflow_name}/instances/{instance_id}/status" : {
1516- patch : {
1517- description :
1518- "Changes the status of a workflow instance (pause, resume, restart, terminate)." ,
1519- operationId : "workflows-change-instance-status" ,
1520- parameters : [
1521- {
1522- in : "path" ,
1523- name : "workflow_name" ,
1524- required : true ,
1525- schema : {
1526- $ref : "#/components/schemas/workflows_workflow-name" ,
1527- } ,
1528- } ,
1529- {
1530- in : "path" ,
1531- name : "instance_id" ,
1532- required : true ,
1533- schema : {
1534- $ref : "#/components/schemas/workflows_instance-id" ,
1535- } ,
1536- } ,
1537- ] ,
1538- requestBody : {
1539- required : true ,
1540- content : {
1541- "application/json" : {
1542- schema : {
1543- type : "object" ,
1544- required : [ "action" ] ,
1545- properties : {
1546- action : {
1547- type : "string" ,
1548- enum : [ "pause" , "resume" , "restart" , "terminate" ] ,
1549- description :
1550- "The action to perform on the workflow instance." ,
1551- } ,
1552- from : {
1553- type : "object" ,
1554- description :
1555- "The step to restart the instance from. Only valid when action is restart." ,
1556- required : [ "name" ] ,
1557- properties : {
1558- name : {
1559- type : "string" ,
1560- description : "The name of the step." ,
1561- } ,
1562- count : {
1563- type : "integer" ,
1564- minimum : 1 ,
1565- description :
1566- "The 1-based index of the step when multiple steps share the same name and type. Defaults to 1." ,
1567- } ,
1568- type : {
1569- type : "string" ,
1570- enum : [ "do" , "sleep" , "waitForEvent" ] ,
1571- description : "The step type. Defaults to do." ,
1572- } ,
1573- } ,
1574- } ,
1575- rollback : {
1576- type : "boolean" ,
1577- description :
1578- "The option to trigger rollbacks when terminating the workflow instance." ,
1579- } ,
1580- } ,
1581- } ,
1582- } ,
1583- } ,
1584- } ,
1585- responses : {
1586- "200" : {
1587- content : {
1588- "application/json" : {
1589- schema : {
1590- allOf : [
1591- {
1592- $ref : "#/components/schemas/workers_api-response-common" ,
1593- } ,
1594- {
1595- properties : {
1596- result : {
1597- type : "object" ,
1598- properties : {
1599- success : {
1600- type : "boolean" ,
1601- } ,
1602- } ,
1603- } ,
1604- } ,
1605- type : "object" ,
1606- } ,
1607- ] ,
1608- } ,
1609- } ,
1610- } ,
1611- description : "Change Workflow Instance Status response." ,
1612- } ,
1613- "4XX" : {
1614- content : {
1615- "application/json" : {
1616- schema : {
1617- $ref : "#/components/schemas/workers_api-response-common-failure" ,
1618- } ,
1619- } ,
1620- } ,
1621- description : "Change Workflow Instance Status response failure." ,
1622- } ,
1623- } ,
1624- summary : "Change Workflow Instance Status" ,
1625- tags : [ "Workflows" ] ,
1626- } ,
1627- } ,
16281521 "/workflows/{workflow_name}/instances/{instance_id}/events/{event_type}" :
16291522 {
16301523 post : {
0 commit comments