{
  "openapi": "3.0.1",
  "info": {
    "title": "JAN Japan Release & Delay Checks — Beta",
    "description": "Reconcile JAN-coded order rows against official Good Smile Japan release schedules and delay notices. Returns dated evidence, repeat-delay history, manual change suggestions and unresolved review tasks. Beta; does not guarantee current schedules or overseas arrivals.",
    "version": "0.0",
    "x-build-id": "sZXSTytBJThsECeXw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amycole~jan-japan-release-delay-checks-beta/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amycole-jan-japan-release-delay-checks-beta",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/amycole~jan-japan-release-delay-checks-beta/runs": {
      "post": {
        "operationId": "runs-sync-amycole-jan-japan-release-delay-checks-beta",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/amycole~jan-japan-release-delay-checks-beta/run-sync": {
      "post": {
        "operationId": "run-sync-amycole-jan-japan-release-delay-checks-beta",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "historySince": {
            "title": "Requested announcement history start date",
            "type": "string",
            "description": "YYYY-MM-DD, inclusive publication date. When set, walk public older-notice links in both languages until before this date. This is separate from since, which filters returned events. Omit for a latest-index-only diagnostic run. Choose a date relevant to the watched orders; no fixed commercial lookback is assumed."
          },
          "maxHistoryPagesPerLanguage": {
            "title": "History page budget per language",
            "minimum": 1,
            "type": "integer",
            "description": "Operational budget, not a validated product coverage limit. If reached before the requested boundary, the result explicitly reports incomplete history and issues no safe cursor. Increase only after measuring cost.",
            "default": 80
          },
          "items": {
            "title": "Watched order rows",
            "type": "array",
            "description": "Objects with unique clientItemId and JAN as a 13-digit string. Optional knownSchedule: {value: YYYY-MM or YYYY-MM-DD, kind: japan_release_month / japan_dispatch / japan_wholesaler_arrival / japan_release_day}. Optional distributor: goodsmile (default)."
          },
          "since": {
            "title": "Notice publication date, inclusive",
            "type": "string",
            "description": "YYYY-MM-DD. Filters returned events only, does not prove archive coverage or detect all in-place edits. Pair with seenEventIds."
          },
          "seenEventIds": {
            "title": "Previously processed event IDs",
            "type": "array",
            "description": "Suppress processed canonical event IDs or verified equal-fact aliases from monthly summaries. Aliases do not certify corrections or batch identity. This prototype does not issue a safe next cursor.",
            "default": []
          },
          "noticeUrls": {
            "title": "Additional historical official notices",
            "type": "array",
            "description": "Public Good Smile /ja/news/NUMBER or /en/news/NUMBER URLs. Both language versions are checked. Supports verified month change, month advance, shipping-date change and named cancellation formats. Missing JAN stays unresolved in OUTPUT; explicit URLs do not prove complete history.",
            "default": []
          },
          "monthlyHistorySince": {
            "title": "Monthly-summary supplement start date",
            "type": "string",
            "description": "Optional YYYY-MM-DD, inclusive original announcement-section date. Enables the documented public Japanese support section as supplementary month-change history. May be earlier than historySince to add older month-change facts in bulk. It does not extend the verified linked range or certify older shipping changes/cancellations. Article edit timestamps are not event dates."
          },
          "maxMonthlySummaryPages": {
            "title": "Monthly-summary API page budget",
            "minimum": 1,
            "type": "integer",
            "description": "Operational page budget for the one public JA support section, 100 articles per page. Exhaustion, malformed article or unsafe pagination keeps this scope incomplete. Not a validated commercial limit.",
            "default": 3
          },
          "cacheMaxAgeSeconds": {
            "title": "Maximum source cache age, seconds",
            "minimum": 0,
            "type": "integer",
            "description": "Operational freshness allowance. 0 revalidates every checked source; expired entries use conditional HTTP when validators exist, otherwise a full GET. Required-source failures never fall back to stale bodies. Does not certify in-place edits, order batches or complete history.",
            "default": 3600
          },
          "stateStoreName": {
            "title": "Optional private named state store",
            "type": "string",
            "description": "Your own lowercase alphanumeric/hyphen name (1–63 chars), dedicated to this watch workflow. Reuse across sequential runs to retain identity bindings, source snapshots, pending change diagnostics and source cache. This is not a processed-order database. Concurrent runs using the same store are unsupported; the pre-write conflict check is not atomic. Omit to disable persistent state."
          },
          "seenChangeIds": {
            "title": "Acknowledged source diagnostic IDs",
            "type": "array",
            "description": "Explicitly acknowledge previously received sourceChanges IDs. Pending diagnostics remain visible until acknowledged, independently of since and seenEventIds. Acknowledgment is not proof that a schedule is valid or that a removed fact is a cancellation.",
            "default": []
          },
          "sourceReviewResolutions": {
            "title": "Explicit source review decisions",
            "type": "array",
            "description": "Requires stateStoreName. After inspecting sourceReviewFindings, submit [{changeId, reviewToken, decision: source_change_reviewed}]. Token must match facts checked this run. Closing a source-fact review does not acknowledge events, identify a cancellation, resolve batch/date conflicts or prove complete history. Changed/missing source facts reopen the review.",
            "default": []
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}